@wavy/react-ui 0.0.63 → 0.0.65

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.js CHANGED
@@ -1,4 +1,4 @@
1
- import'path';import'url';import {ClientOnly,IconButton,Skeleton,Span,Drawer,Tooltip,Portal,Button,AbsoluteCenter,Spinner,Switch,AvatarGroup,CloseButton,FileUpload,Icon,Box,Avatar,Float,Dialog,Menu,SegmentGroup,useSegmentGroupItemContext,Tag,Steps,Stack,ButtonGroup,HStack,Text,Field,InputGroup,Input,For,Separator,ChakraProvider,defaultSystem}from'@chakra-ui/react';export{useSteps}from'@chakra-ui/react';import {useTheme,ThemeProvider}from'next-themes';import*as Be from'react';import Be__default,{createContext,useRef,useEffect,useState,useContext,Activity,useCallback}from'react';import {LuMoon,LuSun,LuCheck,LuUpload,LuX,LuPencilLine,LuChevronRight}from'react-icons/lu';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {v4}from'uuid';import {FaAngleUp,FaAngleDown,FaRegFileImage,FaFileImage,FaRegFilePdf,FaFilePdf,FaFolder}from'react-icons/fa';import {isEmpty,strictArray,camelCaseToLetter,lastIndex,run,coerceIn,buildArray,format,hasIndex,upperFirst,parseFileSize,parseMoney,inferFilename,range,castReturn,sort,readClipboardText,copyToClipboard,takeLast,castArray,getMimeTypes,distinct,toObject}from'@wavy/fn';import {withEmotionCache,ThemeContext}from'@emotion/react';import {IoMdCheckmark,IoMdSend,IoMdImages,IoMdDownload}from'react-icons/io';import {SlArrowLeft,SlArrowRight}from'react-icons/sl';import {PiInfinityBold,PiImageBrokenLight}from'react-icons/pi';import {IoAdd,IoOpenOutline,IoWarningOutline,IoRemove,IoCheckmark,IoCopyOutline}from'react-icons/io5';import {BsArrowLeft,BsArrowRight,BsExclamationTriangle,BsInfoCircle,BsExclamationCircle,BsPaperclip,BsTrash,BsTrashFill,BsChevronBarContract,BsArrowsAngleContract,BsChevronBarExpand,BsArrowsAngleExpand,BsCreditCard2FrontFill,BsCheck2Circle,BsPlus,BsDash}from'react-icons/bs';import Ah from'./assets/flyLeavesEmptyBox.png';import {MdMoreVert,MdVerifiedUser}from'react-icons/md';import {TfiReceipt}from'react-icons/tfi';import {LiaAngleLeftSolid,LiaAngleDownSolid}from'react-icons/lia';import {RiBankFill,RiSecurePaymentFill,RiMailSendLine,RiMailCloseLine,RiFileTextLine,RiFileTextFill,RiFileWord2Line,RiFileWord2Fill,RiFileExcel2Line,RiFileExcel2Fill}from'react-icons/ri';import {GrRotateLeft}from'react-icons/gr';import {HiUpload}from'react-icons/hi';import {FcGoogle}from'react-icons/fc';import {CiSearch}from'react-icons/ci';import {ImPaste}from'react-icons/im';import {AiOutlineFileUnknown,AiFillFileUnknown}from'react-icons/ai';import'./main.css';import Xb from'react-dom/server';var Cd=Object.create;var hn=Object.defineProperty;var Pd=Object.getOwnPropertyDescriptor;var kd=Object.getOwnPropertyNames;var $d=Object.getPrototypeOf,wd=Object.prototype.hasOwnProperty;var zd=(e,r)=>()=>(e&&(r=e(e=0)),r);var Dd=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Id=(e,r)=>{for(var t in r)hn(e,t,{get:r[t],enumerable:true});},Bd=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of kd(r))!wd.call(e,o)&&o!==t&&hn(e,o,{get:()=>r[o],enumerable:!(n=Pd(r,o))||n.enumerable});return e};var Od=(e,r,t)=>(t=e!=null?Cd($d(e)):{},Bd(!e||!e.__esModule?hn(t,"default",{value:e,enumerable:true}):t,e));var c=zd(()=>{});var ji=Dd((uS,Oe)=>{c();function Sn(){return Oe.exports=Sn=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n]);}return e},Oe.exports.__esModule=true,Oe.exports.default=Oe.exports,Sn.apply(null,arguments)}Oe.exports=Sn,Oe.exports.__esModule=true,Oe.exports.default=Oe.exports;});c();c();c();c();c();function ii(e){return jsx(ThemeProvider,{attribute:"class",disableTransitionOnChange:true,...e})}function ai(){let{resolvedTheme:e,setTheme:r,forcedTheme:t}=useTheme();return {colorMode:t||e,setColorMode:r,toggleColorMode:()=>{r(e==="dark"?"light":"dark");}}}function Ud(){let{colorMode:e}=ai();return e==="dark"?jsx(LuMoon,{}):jsx(LuSun,{})}Be.forwardRef(function(r,t){let{toggleColorMode:n}=ai();return jsx(ClientOnly,{fallback:jsx(Skeleton,{boxSize:"9"}),children:jsx(IconButton,{onClick:n,variant:"ghost","aria-label":"Toggle color mode",size:"sm",ref:t,...r,css:{_icon:{width:"5",height:"5"}},children:jsx(Ud,{})})})});Be.forwardRef(function(r,t){return jsx(Span,{color:"fg",display:"contents",className:"chakra-theme light",colorPalette:"gray",colorScheme:"light",ref:t,...r})});Be.forwardRef(function(r,t){return jsx(Span,{color:"fg",display:"contents",className:"chakra-theme dark",colorPalette:"gray",colorScheme:"dark",ref:t,...r})});function li(e){return jsx(ChakraProvider,{value:defaultSystem,children:jsx(ii,{...e})})}c();c();var _t=createContext(null);function ui(e){let r=Math.abs(e.maxListeners)??1/0,t=useRef(new Map);return useEffect(()=>{e.clearRegistry&&t.current.clear();},[e.clearRegistry]),useEffect(()=>()=>{t.current.clear();},[]),jsx(_t.Provider,{value:{emit:(n,o)=>{let i=t.current.get(n)||[];for(let{method:a}of i)a?.(o);},on:(n,o)=>{let i=v4(),a=t.current.get(n)||[];if(a.length>=r){if(e.onListenerRejected)return e.onListenerRejected(n),()=>{};throw new Error(`Max listeners reached for event: '${n}'`,{cause:`${n} is only allowed to have ${r} listeners, but an attempt was made to register ${r+1} listeners.`})}return t.current.set(n,[...a,{uid:i,method:o}]),e.onListenerAccepted?.(n),()=>{let s=t.current.get(n)||[];s.length===0?t.current.delete(n):t.current.set(n,s.filter(({uid:u})=>u!==i));}},dettach:n=>t.current.has(n)?(t.current.delete(n),true):false,listeners:n=>t.current.get(n)?.length},children:e.children})}function Hd(e){return jsx(li,{children:jsx(ui,{children:e.children})})}var Xd=Hd;c();c();c();var je=e=>{let t=Object.keys({id:0,onBlur:0,onFocus:0,onClick:0,className:0,onDoubleClick:0,ref:0,popoverTarget:0,popover:0}).filter(n=>n in e);return Object.fromEntries(t.map(n=>[n,e[n]]))};c();c();c();var mi=(s=>(s.xs=".125rem",s.sm=".25rem",s.md=".5rem",s.lg="1rem",s.xl="1.5rem",s.xxl="2rem",s.circle="100%",s.popover="1rem",s))(mi||{}),ge=mi;function Y0(e){return {...e,backdropFilter:e?.backgroundBlur?`blur(${e.backgroundBlur})`:e?.backdropFilter}}function q0(e){let r={fast:"150ms",normal:"300ms",slow:"450ms"},t=e?.speed||"normal",n=e?.target||"all",o=e?.timing||"linear",i=e?.delay||"0";return `${n} ${r[t]} ${o} ${i}`}function Q0(e){return `${e.thickness||"1px"} solid ${e.color}`}function fi(e){let r=x(e.backgroundColor),t=x(e.borderColor),n=e.tileBorderThickness||"1px",o=e.tileSize||"1.5rem";return `
1
+ import'path';import'url';import {ClientOnly,IconButton,Skeleton,Span,Drawer,Tooltip,Portal,Button,AbsoluteCenter,Spinner,Switch,AvatarGroup,CloseButton,FileUpload,Icon,Box,Avatar,Float,Dialog,Menu,SegmentGroup,useSegmentGroupItemContext,Tag,Steps,Stack,ButtonGroup,HStack,Text,Field,InputGroup,Input,For,Separator,ChakraProvider,defaultSystem}from'@chakra-ui/react';export{useSteps}from'@chakra-ui/react';import {useTheme,ThemeProvider}from'next-themes';import*as Ie from'react';import Ie__default,{createContext,useRef,useEffect,useState,useContext,Activity,useCallback}from'react';import {LuMoon,LuSun,LuCheck,LuUpload,LuX,LuPencilLine,LuChevronRight}from'react-icons/lu';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {v4}from'uuid';import {FaAngleUp,FaAngleDown,FaRegFileImage,FaFileImage,FaRegFilePdf,FaFilePdf,FaFolder}from'react-icons/fa';import {isEmpty,strictArray,camelCaseToLetter,lastIndex,run,coerceIn,buildArray,format,hasIndex,upperFirst,parseFileSize,parseMoney,inferFilename,range,castReturn,sort,readClipboardText,copyToClipboard,takeLast,castArray,getMimeTypes,distinct,toObject}from'@wavy/fn';import {withEmotionCache,ThemeContext}from'@emotion/react';import {IoMdCheckmark,IoMdSend,IoMdImages,IoMdDownload}from'react-icons/io';import {SlArrowLeft,SlArrowRight}from'react-icons/sl';import {PiInfinityBold,PiImageBrokenLight}from'react-icons/pi';import {IoAdd,IoOpenOutline,IoWarningOutline,IoRemove,IoCheckmark,IoCopyOutline}from'react-icons/io5';import {BsArrowLeft,BsArrowRight,BsExclamationTriangle,BsInfoCircle,BsExclamationCircle,BsPaperclip,BsTrash,BsTrashFill,BsChevronBarContract,BsArrowsAngleContract,BsChevronBarExpand,BsArrowsAngleExpand,BsCreditCard2FrontFill,BsCheck2Circle,BsPlus,BsDash}from'react-icons/bs';import Uh from'./assets/flyLeavesEmptyBox.png';import {MdMoreVert,MdVerifiedUser}from'react-icons/md';import {TfiReceipt}from'react-icons/tfi';import {LiaAngleLeftSolid,LiaAngleDownSolid}from'react-icons/lia';import {RiBankFill,RiSecurePaymentFill,RiMailSendLine,RiMailCloseLine,RiFileTextLine,RiFileTextFill,RiFileWord2Line,RiFileWord2Fill,RiFileExcel2Line,RiFileExcel2Fill}from'react-icons/ri';import {GrRotateLeft}from'react-icons/gr';import {HiUpload}from'react-icons/hi';import {FcGoogle}from'react-icons/fc';import {CiSearch}from'react-icons/ci';import {ImPaste}from'react-icons/im';import {AiOutlineFileUnknown,AiFillFileUnknown}from'react-icons/ai';import'./main.css';import Gb from'react-dom/server';var Pd=Object.create;var hn=Object.defineProperty;var kd=Object.getOwnPropertyDescriptor;var $d=Object.getOwnPropertyNames;var wd=Object.getPrototypeOf,zd=Object.prototype.hasOwnProperty;var Dd=(e,r)=>()=>(e&&(r=e(e=0)),r);var Bd=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Id=(e,r)=>{for(var t in r)hn(e,t,{get:r[t],enumerable:true});},Od=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of $d(r))!zd.call(e,o)&&o!==t&&hn(e,o,{get:()=>r[o],enumerable:!(n=kd(r,o))||n.enumerable});return e};var Td=(e,r,t)=>(t=e!=null?Pd(wd(e)):{},Od(!e||!e.__esModule?hn(t,"default",{value:e,enumerable:true}):t,e));var c=Dd(()=>{});var Ni=Bd((mS,Oe)=>{c();function Sn(){return Oe.exports=Sn=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n]);}return e},Oe.exports.__esModule=true,Oe.exports.default=Oe.exports,Sn.apply(null,arguments)}Oe.exports=Sn,Oe.exports.__esModule=true,Oe.exports.default=Oe.exports;});c();c();c();c();c();function ii(e){return jsx(ThemeProvider,{attribute:"class",disableTransitionOnChange:true,...e})}function ai(){let{resolvedTheme:e,setTheme:r,forcedTheme:t}=useTheme();return {colorMode:t||e,setColorMode:r,toggleColorMode:()=>{r(e==="dark"?"light":"dark");}}}function Ld(){let{colorMode:e}=ai();return e==="dark"?jsx(LuMoon,{}):jsx(LuSun,{})}Ie.forwardRef(function(r,t){let{toggleColorMode:n}=ai();return jsx(ClientOnly,{fallback:jsx(Skeleton,{boxSize:"9"}),children:jsx(IconButton,{onClick:n,variant:"ghost","aria-label":"Toggle color mode",size:"sm",ref:t,...r,css:{_icon:{width:"5",height:"5"}},children:jsx(Ld,{})})})});Ie.forwardRef(function(r,t){return jsx(Span,{color:"fg",display:"contents",className:"chakra-theme light",colorPalette:"gray",colorScheme:"light",ref:t,...r})});Ie.forwardRef(function(r,t){return jsx(Span,{color:"fg",display:"contents",className:"chakra-theme dark",colorPalette:"gray",colorScheme:"dark",ref:t,...r})});function li(e){return jsx(ChakraProvider,{value:defaultSystem,children:jsx(ii,{...e})})}c();c();var _t=createContext(null);function ui(e){let r=Math.abs(e.maxListeners)??1/0,t=useRef(new Map);return useEffect(()=>{e.clearRegistry&&t.current.clear();},[e.clearRegistry]),useEffect(()=>()=>{t.current.clear();},[]),jsx(_t.Provider,{value:{emit:(n,o)=>{let i=t.current.get(n)||[];for(let{method:a}of i)a?.(o);},on:(n,o)=>{let i=v4(),a=t.current.get(n)||[];if(a.length>=r){if(e.onListenerRejected)return e.onListenerRejected(n),()=>{};throw new Error(`Max listeners reached for event: '${n}'`,{cause:`${n} is only allowed to have ${r} listeners, but an attempt was made to register ${r+1} listeners.`})}return t.current.set(n,[...a,{uid:i,method:o}]),e.onListenerAccepted?.(n),()=>{let s=t.current.get(n)||[];s.length===0?t.current.delete(n):t.current.set(n,s.filter(({uid:u})=>u!==i));}},dettach:n=>t.current.has(n)?(t.current.delete(n),true):false,listeners:n=>t.current.get(n)?.length},children:e.children})}function Xd(e){return jsx(li,{children:jsx(ui,{children:e.children})})}var Gd=Xd;c();c();c();var je=e=>{let t=Object.keys({id:0,onBlur:0,onFocus:0,onClick:0,className:0,onDoubleClick:0,ref:0,popoverTarget:0,popover:0}).filter(n=>n in e);return Object.fromEntries(t.map(n=>[n,e[n]]))};c();c();c();var mi=(s=>(s.xs=".125rem",s.sm=".25rem",s.md=".5rem",s.lg="1rem",s.xl="1.5rem",s.xxl="2rem",s.circle="100%",s.popover="1rem",s))(mi||{}),ge=mi;function q0(e){return {...e,backdropFilter:e?.backgroundBlur?`blur(${e.backgroundBlur})`:e?.backdropFilter}}function Q0(e){let r={fast:"150ms",normal:"300ms",slow:"450ms"},t=e?.speed||"normal",n=e?.target||"all",o=e?.timing||"linear",i=e?.delay||"0";return `${n} ${r[t]} ${o} ${i}`}function ex(e){return `${e.thickness||"1px"} solid ${e.color}`}function fi(e){let r=x(e.backgroundColor),t=x(e.borderColor),n=e.tileBorderThickness||"1px",o=e.tileSize||"1.5rem";return `
2
2
  ${e.fader||"radial"}-gradient(transparent, ${r} 75%),
3
3
  repeating-linear-gradient(
4
4
  ${t},
@@ -14,9 +14,9 @@ import'path';import'url';import {ClientOnly,IconButton,Skeleton,Span,Drawer,Tool
14
14
  transparent ${o}
15
15
  )
16
16
  ${r}
17
- `}function ex(e,r){return {display:"flex",justifyContent:"center",alignItems:"center",flexDirection:r?"column":"row",...e}}function rx(e,r){let t=n=>"affectedCorners"in e&&typeof e.affectedCorners=="string"?n.includes(e.affectedCorners)?e.radius:void 0:"affectedCorners"in e?e.affectedCorners.includes(n)?e.radius:void 0:e[n];return {...r,borderTopLeftRadius:t("top-left"),borderTopRightRadius:t("top-right"),borderBottomLeftRadius:t("bottom-left"),borderBottomRightRadius:t("bottom-right")}}function tx(e){let r=typeof e.disabledCurves=="function"?e.disabledCurves():e.disabledCurves,t=o=>r==="both"||r===o?0:e.curveRadius||ge.md;return {borderTopLeftRadius:t("left"),borderBottomLeftRadius:t("left"),borderTopRightRadius:t("right"),borderBottomRightRadius:t("right")}}function nx(e){let r=0,t=0,n=0,o=0;document.getElementById(e.id+"header")?document.getElementById(e.id+"header").onmousedown=i:e.onmousedown=i;function i(s){s.preventDefault(),n=s.clientX,o=s.clientY,document.onmouseup=l,document.onmousemove=a;}function a(s){s.preventDefault(),r=n-s.clientX,t=o-s.clientY,n=s.clientX,o=s.clientY,e.style.top=e.offsetTop-t+"px",e.style.left=e.offsetLeft-r+"px";}function l(){document.onmouseup=null,document.onmousemove=null;}}function ox(e){return {...e,margin:0,padding:0}}function ve(e,r={apply:true}){return r.apply?Br(1,e):e}function pi(e,r={apply:true}){return r.apply?{...e,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}:e}function gi(e){let r=e;for(;r&&!yn(r);)r=r.parentElement;return r}function vi(e){let r=document.createElement("span");r.textContent="A",r.style.visibility="hidden",r.style.position="absolute";let t=getComputedStyle(e);r.style.fontFamily=t.fontFamily,r.style.fontSize=t.fontSize,r.style.lineHeight=t.lineHeight,document.body.appendChild(r);let n=r.offsetHeight;return document.body.removeChild(r),e.offsetHeight>n+2}function x(e,r){if(!e||typeof e!="string")return e;let t=r?.preference||"css",n=e.replaceAll(" ",""),{0:o,1:i}=n.split("["),a=()=>pe[n],l=()=>i?Yd(Ie[o],parseFloat(i)):Ie[n];if(t==="css"){if(n in pe)return a();if(o in Ie)return l()}else if(t==="res"){if(o in Ie)return l();if(n in pe)return a()}return n}var hi=e=>new DOMParser().parseFromString(e,"text/html").body.textContent||"",Gd=e=>/^#([A-Fa-f0-9]{3,4}){1,2}$/.test(e),Kd=e=>parseInt(e.repeat(2/e.length),16);function Yd(e,r=1){let t=(f,p)=>f.match(new RegExp(`.{${p}}`,"g")),n=f=>typeof f<"u"?f/255:typeof r!="number"||r<0||r>1?1:r;if(!Gd(e))throw new Error(`Invalid HEX: ${e}`);let o=Math.floor((e.length-1)/3),i=t(e.slice(1),o),[a,l,s,u]=i.map(Kd);return `rgba(${a}, ${l}, ${s}, ${n(u)})`}function ix(e,r){let t=e.includes(",")?",":" ",n=e.split("").filter(o=>(t+"0123456789").includes(o)).join("").split(t);return n.length===3?n.push(`${r}`):n=n.with(3,`${r}`),"rgba("+n.join(t)+")"}function ax(e){return window.matchMedia(`(max-width:${e})`).matches}function cx(e){return window.matchMedia(`(min-width:${e})`).matches}function Br(e=2,r){return {...r,overflow:"hidden",width:"100%",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical"}}function qd(e){return e*16}function lx(e){return `${qd(e)}px`}function yn(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function sx(e){let r=document.body,t=e.replace("var(","").replace(")","");return getComputedStyle(r).getPropertyValue(t)}c();var Qd=Object.freeze({"2xl":"1.75rem",xl:"1.5rem",lg:"1rem",md:"0.5rem",sm:"0.25rem",xs:"0.125rem","2xs":"0.1rem"}),H=Qd;c();var em=Object.freeze({"2xl":"1.75rem",xl:"1.5rem",lg:"1.25rem",md:"1rem",sm:"0.85rem",xs:"0.75rem","2xs":"0.65rem"}),R=em;var bt=["top","right","bottom","left"],yi=(e,r)=>`translate(${e}, ${r})`,_i=e=>`translateX(${e})`,bi=e=>`translateY(${e})`,rm=(e,r)=>{let t=e.fontSize in R?R[e.fontSize]:e.fontSize,{overflowX:n,overflowY:o}=(()=>{let l=e?.spill||{};if(l)return {overflowX:typeof l=="string"?l:l?.x||"visible",overflowY:typeof l=="string"?l:l?.y||"visible"}})();function i(l){return e.style?.[l]?e.style[l]:(e.size||e.size===0)&&(l==="height"||l==="width")?e.size==="full"?"100%":e.size:e[l]==="full"?"100%":e[l]}let a={top:e.centerSelf===true||e.centerSelf==="y"?"50%":e.top,left:e.centerSelf===true||e.centerSelf==="x"?"50%":e.left,right:e.right,bottom:e.bottom,cursor:e.clickable?"pointer":e.cursor,scrollbarColor:[e.scrollbarColor?.thumb,e.scrollbarColor?.track].map(l=>l||"inherit").join(" "),transform:e.centerSelf===true?yi("-50%","-50%"):e.centerSelf==="x"?_i("-50%"):e.centerSelf==="y"?bi("-50%"):e.translate?.x&&e.translate?.y?yi(e.translate.x,e.translate.y):e.translate?.x?_i(e.translate.x):e.translate?.y?bi(e.translate.y):void 0,position:e.pos==="absolute"||e.centerSelf?"absolute":e.pos,padding:im(e.padding),fontSize:t,fontWeight:e.fontWeight,border:e.border,borderColor:tm(e.borderColor),borderWidth:nm(e.borderWidth,e.borderColor?"1px":void 0),borderStyle:om(e.borderStyle,e.borderColor?"solid":void 0),lineHeight:t?`calc(${t} + (${t} * .15))`:void 0,borderRadius:am(e.corners),userSelect:e.disableSelection?"none":e.allowTextSelection?"text":void 0,minHeight:i("minHeight"),minWidth:i("minWidth"),maxHeight:i("maxHeight"),maxWidth:i("maxWidth"),height:i("height"),width:i("width"),display:e.hide?"none":void 0,flexDirection:e.row?"row":"column",flex:e.flex,backgroundColor:x(e.backgroundColor),color:x(e.color),gap:cm(e.gap),overflowX:n,overflowY:o,aspectRatio:e.aspectRatio,opacity:e.fade,alignItems:e.centerContent?"center":e.align||"start",justifyContent:e.centerContent?"center":e.justify||"start",backdropFilter:e.backdropBlur?`blur(${e.backdropBlur})`:void 0,filter:e.blur?`blur(${e.blur})`:void 0,...e.style};return Object.keys(a).forEach(l=>{let s=l,u=a[s];typeof u=="string"&&(u=u.trim()),!u&&u!==0&&delete a[s];}),(r||e.debug)&&console.log({props:e,style:a}),a};function tm(e){if(!e)return;let r="transparent";return typeof e=="string"?x(e):bt.map(t=>{if(Array.isArray(e)){let{0:n,1:o}=e;return (Array.isArray(o)?o.includes(t):[t,"all"].includes(o))?x(n):r}return typeof e=="object"&&t in e?x(e[t]):r}).join(" ")}function nm(e,r){if(!e)return r;let t=0;return typeof e=="string"?e:bt.map(n=>{if(Array.isArray(e)){let{0:o,1:i}=e;return (Array.isArray(i)?i.includes(n):[n,"all"].includes(i))?o:t}return typeof e=="object"&&n in e?e[n]:t}).join(" ")}function om(e,r){if(!e)return r;let t=0;return typeof e=="string"?e:bt.map(n=>{if(Array.isArray(e)){let{0:o,1:i}=e;return (Array.isArray(i)?i.includes(n):[n,"all"].includes(i))?o:t}return typeof e=="object"&&n in e?e[n]:t}).join(" ")}function im(e){let t=n=>n?n in H?H[n]:n:"0px";return e?typeof e=="string"?t(e):bt.map(n=>{if(Array.isArray(e)){let{0:o,1:i}=e;return (Array.isArray(i)?i.includes(n):i===n)?t(o):"0px"}return typeof e=="object"&&n in e?t(e[n]):"0px"}).join(" "):"0px"}function am(e){let t=o=>o?o in ge?ge[o]:o:"0px";return e?typeof e=="string"?t(e):["topLeft","topRight","bottomRight","bottomLeft"].map(o=>{let i=e?.[o];return o.includes("top")&&e?.top?t(e.top):o.includes("bottom")&&e?.bottom?t(e.bottom):i?t(i):"0px"}).join(" "):"0px"}function cm(e){if(!(!e||typeof e!="string"))return e in H?H[e]:e}var k=rm;var pm=["inherit","sm","md","lg","xl","2xl","xs"],gm=["sm","md","lg","xl","2xl","xs","2xs"];function xi(e){let[r,t]=useState(false),n=e.disabled||r,o=async p=>{if(!n){if(!e.async)return e.onClick?.(p);t(true),await e.onClick?.(p),setTimeout(()=>t(false),e.pendingDelay||1);}},i=p=>{if(p){if(typeof p==typeof FaFolder){let h=y=>typeof y=="string"&&[...pm].includes(y);return jsx(Icon,{size:h(e.iconSize)?e.iconSize:void 0,boxSize:h(e.iconSize)?void 0:e.iconSize,as:p})}return p}},a=i(e.leadingEl),l=i(e.trailingEl),s=p=>typeof p=="string"&&[...gm].includes(p),{size:u,...f}=e;return jsxs(Button,{...je(e),disabled:n,size:s(u)?u:void 0,style:k({...f,size:s(u)?void 0:u,clickable:!n,row:true,centerContent:true,gap:e.gap||"md",corners:e.corners||"md",padding:e.padding||"md",color:e.color||(e.variant==="outline"?"onSurface":"onPrimary"),backgroundColor:e.backgroundColor||(e.variant==="outline"?"transparent":"primary"),border:e.border,borderColor:e.borderColor||(e.variant==="outline"?"onSurface[0.1]":void 0),fade:n?e.disabledOpacity||.5:e.fade||1,pos:r?"relative":e.pos,height:e.height||"fit-content",width:e.width||"fit-content"}),onClick:o,onMouseDown:e.onMouseDown,children:[a,e.text,e.children,l,r&&jsx(AbsoluteCenter,{children:jsx(Spinner,{size:"sm",animationDuration:"slowest",borderWidth:".1rem",color:e.spinnerColor?x(e.spinnerColor):"blue.500"})})]})}var Ne=e=>r=>jsx(xi,{...(()=>{let n={...r,...e.preset};for(let o of Object.keys(e.optional||{})){let i=o,a=i in n,l=[void 0,null].includes(n[i]);(!a||l)&&(n[i]=e.optional[i]);}return n})()}),T=xi;c();c();c();c();c();function St(){return St=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n]);}return e},St.apply(null,arguments)}c();c();function Si(e){for(var r=0,t,n=0,o=e.length;o>=4;++n,o-=4)t=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,t=(t&65535)*1540483477+((t>>>16)*59797<<16),t^=t>>>24,r=(t&65535)*1540483477+((t>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(o){case 3:r^=(e.charCodeAt(n+2)&255)<<16;case 2:r^=(e.charCodeAt(n+1)&255)<<8;case 1:r^=e.charCodeAt(n)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16);}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}c();var Ci={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};c();function Ct(e){var r=Object.create(null);return function(t){return r[t]===void 0&&(r[t]=e(t)),r[t]}}var ym=/[A-Z]|^ms/g,_m=/_EMO_([^_]+?)_([^]*?)_EMO_/g,wi=function(r){return r.charCodeAt(1)===45},Pi=function(r){return r!=null&&typeof r!="boolean"},_n=Ct(function(e){return wi(e)?e:e.replace(ym,"-$&").toLowerCase()}),ki=function(r,t){switch(r){case "animation":case "animationName":if(typeof t=="string")return t.replace(_m,function(n,o,i){return Se={name:o,styles:i,next:Se},o})}return Ci[r]!==1&&!wi(r)&&typeof t=="number"&&t!==0?t+"px":t};function Or(e,r,t){if(t==null)return "";var n=t;if(n.__emotion_styles!==void 0)return n;switch(typeof t){case "boolean":return "";case "object":{var o=t;if(o.anim===1)return Se={name:o.name,styles:o.styles,next:Se},o.name;var i=t;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)Se={name:a.name,styles:a.styles,next:Se},a=a.next;var l=i.styles+";";return l}return xm(e,r,t)}case "function":{if(e!==void 0){var s=Se,u=t(e);return Se=s,Or(e,r,u)}break}}var f=t;if(r==null)return f;var p=r[f];return p!==void 0?p:f}function xm(e,r,t){var n="";if(Array.isArray(t))for(var o=0;o<t.length;o++)n+=Or(e,r,t[o])+";";else for(var i in t){var a=t[i];if(typeof a!="object"){var l=a;r!=null&&r[l]!==void 0?n+=i+"{"+r[l]+"}":Pi(l)&&(n+=_n(i)+":"+ki(i,l)+";");}else {if(Array.isArray(a)&&typeof a[0]=="string"&&(r==null||r[a[0]]===void 0))for(var s=0;s<a.length;s++)Pi(a[s])&&(n+=_n(i)+":"+ki(i,a[s])+";");else {var u=Or(e,r,a);switch(i){case "animation":case "animationName":{n+=_n(i)+":"+u+";";break}default:n+=i+"{"+u+"}";}}}}return n}var $i=/label:\s*([^\s;{]+)\s*(;|$)/g,Se;function zi(e,r,t){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=true,o="";Se=void 0;var i=e[0];if(i==null||i.raw===void 0)n=false,o+=Or(t,r,i);else {var a=i;o+=a[0];}for(var l=1;l<e.length;l++)if(o+=Or(t,r,e[l]),n){var s=i;o+=s[l];}$i.lastIndex=0;for(var u="",f;(f=$i.exec(o))!==null;)u+="-"+f[1];var p=Si(o)+u;return {name:p,styles:o,next:Se}}c();var Sm=typeof document<"u",Di=function(r){return r()},Cm=Be.useInsertionEffect?Be.useInsertionEffect:false,Ii=Sm&&Cm||Di;c();var bn=typeof document<"u";function Bi(e,r,t){var n="";return t.split(" ").forEach(function(o){e[o]!==void 0?r.push(e[o]+";"):o&&(n+=o+" ");}),n}var xn=function(r,t,n){var o=r.key+"-"+t.name;(n===false||bn===false&&r.compat!==void 0)&&r.registered[o]===void 0&&(r.registered[o]=t.styles);},Oi=function(r,t,n){xn(r,t,n);var o=r.key+"-"+t.name;if(r.inserted[t.name]===void 0){var i="",a=t;do{var l=r.insert(t===a?"."+o:"",a,r.sheet,true);!bn&&l!==void 0&&(i+=l),a=a.next;}while(a!==void 0);if(!bn&&i.length!==0)return i}};c();var Pm=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Ti=Ct(function(e){return Pm.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});var wm=typeof document<"u",Dm=Ti,Im=function(r){return r!=="theme"},Ei=function(r){return typeof r=="string"&&r.charCodeAt(0)>96?Dm:Im},Ri=function(r,t,n){var o;if(t){var i=t.shouldForwardProp;o=r.__emotion_forwardProp&&i?function(a){return r.__emotion_forwardProp(a)&&i(a)}:i;}return typeof o!="function"&&n&&(o=r.__emotion_forwardProp),o},Bm=function(r){var t=r.cache,n=r.serialized,o=r.isStringTag;xn(t,n,o);var i=Ii(function(){return Oi(t,n,o)});if(!wm&&i!==void 0){for(var a,l=n.name,s=n.next;s!==void 0;)l+=" "+s.name,s=s.next;return Be.createElement("style",(a={},a["data-emotion"]=t.key+" "+l,a.dangerouslySetInnerHTML={__html:i},a.nonce=t.sheet.nonce,a))}return null},Fi=function e(r,t){var n=r.__emotion_real===r,o=n&&r.__emotion_base||r,i,a;t!==void 0&&(i=t.label,a=t.target);var l=Ri(r,t,n),s=l||Ei(o),u=!s("as");return function(){var f=arguments,p=n&&r.__emotion_styles!==void 0?r.__emotion_styles.slice(0):[];if(i!==void 0&&p.push("label:"+i+";"),f[0]==null||f[0].raw===void 0)p.push.apply(p,f);else {var h=f[0];p.push(h[0]);for(var y=f.length,z=1;z<y;z++)p.push(f[z],h[z]);}var b=withEmotionCache(function(S,$,w){var P=u&&S.as||o,j="",ee=[],Fe=S;if(S.theme==null){Fe={};for(var Dr in S)Fe[Dr]=S[Dr];Fe.theme=Be.useContext(ThemeContext);}typeof S.className=="string"?j=Bi($.registered,ee,S.className):S.className!=null&&(j=S.className+" ");var sr=zi(p.concat(ee),$.registered,Fe);j+=$.key+"-"+sr.name,a!==void 0&&(j+=" "+a);var Ir=u&&l===void 0?Ei(P):s,ur={};for(var Ye in S)u&&Ye==="as"||Ir(Ye)&&(ur[Ye]=S[Ye]);return ur.className=j,w&&(ur.ref=w),Be.createElement(Be.Fragment,null,Be.createElement(Bm,{cache:$,serialized:sr,isStringTag:typeof P=="string"}),Be.createElement(P,ur))});return b.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",b.defaultProps=r.defaultProps,b.__emotion_real=b,b.__emotion_base=o,b.__emotion_styles=p,b.__emotion_forwardProp=l,Object.defineProperty(b,"toString",{value:function(){return "."+a}}),b.withComponent=function(S,$){var w=e(S,St({},t,$,{shouldForwardProp:Ri(b,$,true)}));return w.apply(void 0,p)},b}};Od(ji());var Om=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],dr=Fi.bind(null);Om.forEach(function(e){dr[e]=dr(e);});var Cn=class{static getStyle(r){if(r)return JSON.parse(JSON.stringify(r||{}),(t,n)=>t==="backgroundColor"||t==="color"?x(n):n)}static span=r=>dr.span({...this.getStyle(r)});static div=r=>dr.div({...this.getStyle(r)});static img=r=>dr.img({...this.getStyle(r)})},mr=Cn;function jm(e){let r=useRef(null),[t,n]=useState(false),o=A({defaultValue:{top:0,left:0}});e.rememberScrollPos&&useEffect(()=>{let f=o.read();r.current&&[f.top,f.left].some(p=>!!p)&&(r.current.scrollTop=f?.top??0,r.current.scrollLeft=f?.left??0);},e.updateScrollPosDeps),(e.rememberScrollPos||e.overflowPadding)&&useEffect(()=>{r.current&&yn(r.current)&&!t&&n(true);},[]);let i="10%",a=`linear-gradient(to bottom, transparent, black calc(${i}/4), black calc(100% - ${i}), transparent) `,l=e.decreaseYFaderPadding?"2vh":"5rem",s=k({...e,spill:e.spill==="hidden"?"hidden":e.spill||(e.rememberScrollPos?"auto":void 0),padding:e.padding||{right:e.overflowPadding&&t?e.overflowPadding:void 0,top:e.enableYFaders?l:void 0,bottom:e.enableYFaders?l:void 0}}),u=mr.div(e.css);if(!e.hide)return e.asChildren?e.children:jsx(u,{...je(e),ref:e.rememberScrollPos||e.overflowPadding?r:e.ref,draggable:e.draggable,onScroll:f=>{let p=r?.current?.scrollTop,h=r?.current?.scrollLeft;!t&&e.overflowPadding&&n(true),isEmpty(strictArray([p,h]))||o.upsert({top:p??0,left:h??0}),e.onScroll?.(f);},style:{...s,display:e.grid?"grid":s.display||"flex",flexWrap:s.flexWrap||(e.flexWrap?"wrap":void 0),gridTemplateColumns:s?.gridTemplateColumns||e.gridCols||"1fr",gridTemplateRows:s?.gridTemplateRows||e.gridRows,WebkitMaskImage:e.enableYFaders&&a,maskImage:e.enableYFaders&&a},children:e.children})}var g=jm;c();function Am(e){let r=!!e.tint,t=mr.img(e.sx);return jsx(t,{...je(e),loading:"lazy",decoding:"async",fetchPriority:"high",src:e.src,alt:e.alt,style:{...k(e),filter:r?`drop-shadow(0px 1000px 0 ${x(e.tint)})`:void 0,transform:r&&"translateY(-1000px)",objectFit:e.noFit?"none":e.fill?"fill":e.cover?"cover":e.scaleDown?"scale-down":"contain"}})}var Ae=Am;c();function Zm(e){let r=n=>e.onItemClick?.(n),t=e.bold??e.items.some(n=>typeof n=="object");return jsx(g,{gap:e.gap||"md",width:e.width,height:e.height,children:e.items.map((n,o)=>typeof n=="string"?jsx(Pn,{index:o,item:n,bold:t,active:e.isItemActive(n),completed:e.isItemCompleted(n),onClick:r},n):jsxs(g,{width:"full",children:[jsx(Pn,{index:o,bold:t,item:n.label,active:n.nestedItems.some(i=>e.isItemActive(i)),completed:n.nestedItems.every(i=>e.isItemCompleted(i)),onClick:n.nestedItems?.[0]?()=>r(n.nestedItems[0]):void 0}),jsx(g,{width:"full",children:n.nestedItems.map((i,a)=>jsx(Pn,{index:a,fontSize:"sm",nested:true,item:i,active:e.isItemActive(i),completed:e.isItemCompleted(i),onClick:r},i))})]},n.label))})}function Pn(e){let r=Ie.white,t=pe.onSurface,n=e.nested?t:pe.tertiaryContainer,o=e.active?n:Ie.carlsbergGreen,i=e.active&&!e.nested?n:pe["onSurface[0.25]"],a=e.nested?pe["onSurface[0.4]"]:pe["onSurface[0.5]"],l=pe["onSurface[0.2]"],s=()=>e.onClick?.(e.item),u=IoMdCheckmark;return jsxs(g,{row:true,gap:"md",clickable:true,width:"full",fontSize:e.fontSize||"md",align:"center",onClick:s,css:{transition:"all 300ms linear",color:e.completed&&!(e.nested&&e.active)?i:e.active?n:a,borderColor:e.completed?o:e.active?n:l,":hover":e.active?void 0:{color:t,borderColor:e.completed&&!e.nested?void 0:t}},children:[jsx(g,{corners:"circle",centerContent:true,size:"1.5rem",style:{textAlign:"center",flexShrink:0},borderColor:"inherit",backgroundColor:e.completed?o:void 0,color:e.completed?r:"inherit",fade:e.nested?0:1,padding:e.completed?void 0:"md",children:e.completed?jsx(u,{fontSize:"1rem"}):jsx(C,{fontWeight:"bold",textAlign:"center",centerContent:true,text:`${e.index+1}`,style:{lineHeight:"0"}})}),jsx("span",{style:{width:"100%",fontWeight:e.bold?"bold":void 0,opacity:e.completed&&!e.active?e.nested?.5:.75:1},children:e.item}),e.completed&&e.nested&&jsx(u,{size:"1.25rem",opacity:.75})]})}var kn=Zm;c();function Mm(e){let r=i=>e.ellipsis==="native"?pi(i):e.ellipsis?ve(i):e.lineLimit?Br(e.lineLimit,i):i,t=()=>strictArray([e.underline||e.link||e.fakeHyperlink||e.hyperlink?"underline":void 0,e.strikeThrough?"line-through":void 0]).join(" ").trim(),n=k({...e,color:e.fakeHyperlink||e.hyperlink?"hyperlink":e.color,cursor:e.link||e.hyperlink||e.clickable?"pointer":e.cursor}),o=mr.span(e.sx);return jsx(o,{...je(e),ref:e.ref,style:r({...n,width:e.ellipsis?"100%":n.width,textAlign:n.textAlign||e.textAlign||"justify",fontStyle:n.fontStyle||e.italic?"italic":void 0,textDecoration:n.textDecoration||t()||void 0}),children:e.text||e.children})}var C=Mm;c();var kt="1px",Mi=6,pr=createContext(null);function Xm(e){let r=e.defaultColumnWeight||"1fr",t=["none",0].includes(e.separatorColor)?void 0:e.separatorColor??"onSurface[0.25]",n=!!e.selectedRows,[o,i]=useState(e.defaultSelectedRows||[]),a=()=>e.columns.map(w=>{let P=typeof w=="object"?w:{};return {...P,name:fr(w),weight:"weight"in P?P.weight:r,textAlign:"textAlign"in P?P.textAlign:e.textAlign||"start"}}),l=w=>(e.selectable?`auto ${kt}`:"")+a().map(j=>{let ee=j.weight||r;return ee==="auto"?w.find(Fe=>Fe.name===j.name)?.weight||"auto":ee}).join(` ${kt} `),[s,u]=useState(l(a())),f=o.length===e.entries.length&&e.entries.length>0,p=useRef(null),h=useRef(false),y=(Array.isArray(e.children)?e.children:[e.children]).filter((w,P)=>P<2),z=()=>{let w=[];f||(w=e.entries.map((P,j)=>j)),e.onSelectedRowsChange?.(w),n||i(w);},b=w=>{let P=[...o];P.includes(w)?P=P.filter(j=>j!==w):P.push(w),e.onSelectedRowsChange?.(P),n||i(P);},S=w=>{p.current?(w.forEach((P,j)=>{(p.current.get(j)||0)<P&&p.current.set(j,P);}),$()):(p.current=w,y.length===1&&$());},$=()=>{if(h.current){h.current=false;return}let w=a().map(P=>{let j=p.current.get(P.name);return j?{...P,weight:`${j}px`}:P});h.current=true,p.current=null,u(l(w));};return jsx(pr.Provider,{value:{...e,gridCols:s,justify:e.justify||"space-between",selectedRowIndices:n?e.selectedRows:o,separatorColor:t,allRowsSelected:f,onSelectRowClick:b,onSelectAllRowsClick:z,columns:a(),padding:e.padding??"sm",columnGap:e.columnGap??e.gap??"lg",rowGap:e.rowGap??e.gap,onColWidthsComputed:S},children:jsx(g,{grid:true,gridRows:"auto auto",corners:e.corners,height:e.height,width:e.width,minHeight:e.minHeight,maxHeight:e.maxHeight,minWidth:e.minWidth,maxWidth:e.maxWidth,color:e.color,fontSize:e.fontSize,fontWeight:e.fontWeight,backgroundColor:e.backgroundColor,spill:e.spill,style:{gridTemplateAreas:'"header" "body"',...e.style||{}},children:y})})}function Gm(e){let r=useContext(pr),t=e.separatorColor||r.separatorColor,n=useRef(new Map);return jsxs(g,{grid:true,gridCols:r.gridCols,gap:r.columnGap,borderColor:e.borderColor||(t!==0&&t!=="none"?[t,"bottom"]:void 0),borderWidth:kt,spill:"hidden",padding:e.padding??r.padding,corners:e.corners??(r.separatorColor?0:void 0),color:e.color,backgroundColor:e.backgroundColor,fontWeight:e.fontWeight,fontSize:e.fontSize,align:"center",width:"full",style:{gridArea:"header",justifyContent:r.justify},children:[r.selectable&&jsx(Wi,{selected:r.allRowsSelected,onClick:r.onSelectAllRowsClick}),r.columns.map((o,i,a)=>{let l=fr(o);return jsxs(Be__default.Fragment,{children:[jsx(C,{ref:s=>{s&&(n.current.set(l,parseFloat(getComputedStyle(s).width)+Mi),i===lastIndex(a)&&r.onColWidthsComputed(n.current));},text:!e.formatColumnName||e.formatColumnName==="camelToLetter"?camelCaseToLetter(l):e.formatColumnName?.(l)??camelCaseToLetter(l),style:{flexGrow:1,textAlign:Tr("textAlign",o)}}),i!==a.length-1&&jsx(wn,{color:e.separatorColor})]},l+i)})]})}function Km(e){let r=useContext(pr),t=useRef(new Map);return useEffect(()=>()=>{t.current.clear();},[]),jsx(g,{width:"full",gap:r.rowGap,padding:e.padding??(r.rowGap?[r.rowGap,"top"]:void 0),color:e.color,fontSize:e.fontSize,style:{paddingTop:r.rowGap,gridArea:"body"},children:r.entries.map((n,o)=>jsx(Ym,{rowData:n,index:o,style:e.styleRow?.(o),styleCell:e.styleCell,onColWidthComputed:(i,a)=>{let l=t.current.get(i);(!l||a>l)&&t.current.set(i,a);},onCellRendered:i=>{let a=o===lastIndex(r.entries),l=i===lastIndex(r.columns);a&&l&&t.current.size>0&&r.onColWidthsComputed(t.current);}},o))})}function Ym(e){let r=useContext(pr),t=r.selectedRowIndices.includes(e.index),n=()=>r.onSelectRowClick(e.index),{gap:o,padding:i,backgroundColor:a}=k({gap:r.columnGap,padding:r.padding??e.padding,backgroundColor:t?"onSurface[0.1]":"transparent"});return jsxs(g,{spill:"hidden",justify:"space-between",style:{gap:o,padding:i,backgroundColor:a,width:"100%",display:"grid",alignItems:"center",gridTemplateColumns:r.gridCols,...e.style,justifyContent:r.justify},children:[r.selectable&&jsx(Wi,{selected:t,onClick:n}),r.columns.map((l,s,u)=>{let f=fr(l),p=e.rowData[f],h=typeof l=="object"?l?.placeholder:void 0,y=()=>e.onCellRendered?.(s),z=s+fr(l),b=Tr("textAlign",l),S={textAlign:b,justifyContent:b,color:Tr("color",l),opacity:Tr("opacity",l,1),backgroundColor:Tr("backgroundColor",l),...e.styleCell?.({cellIndex:e.index*r.columns.length+s,columnName:f,columnIndex:s,rowIndex:e.index,data:typeof p=="string"?p:null,siblingData:{previous:s===0?null:run(e.rowData[fr(u[s-1])],$=>typeof $=="string"?$:null),next:s===u.length-1?null:run(e.rowData[fr(u[s+1])],$=>typeof $=="string"?$:null)}})||{}};return typeof l=="object"&&l.weight==="auto"?jsxs(Fragment,{children:[jsx(qm,{data:p,style:S,onRender:y,placeholder:h,onWidthComputed:$=>e.onColWidthComputed(f,$)},z),s!==u.length-1&&jsx(wn,{})]}):jsxs(Fragment,{children:[jsx(Ji,{data:p,style:S,placeholder:h,onRender:y},z),s!==u.length-1&&jsx(wn,{})]})})]})}function qm(e){let r=useRef(null);return useEffect(()=>{r.current?e.onWidthComputed(parseFloat(getComputedStyle(r.current).width)+Mi):console.error(new Error("Failed to compute style for an Auto cell",{cause:{data:e.data,cellRef:r}}));},[]),jsx(Ji,{noWrap:true,data:e.data,placeholder:e.placeholder,ref:r,style:e.style,onRender:e.onRender})}function Ji(e){return useEffect(()=>{e.onRender?.();},[]),typeof e.data=="string"||!e.data?jsx(C,{ref:e.ref,children:e.data||"-",fade:e.data?1:.75,style:{...e.style,whiteSpace:e.noWrap?"nowrap":void 0,width:"100%"}}):e.ref?jsx("div",{ref:e.ref,style:{...e.style,width:"100%",overflow:"hidden"},children:e.data}):e.data}function wn(e){let r=useContext(pr),t=e.color||r.separatorColor;return jsx(g,{width:kt,height:"full",backgroundColor:t==="none"||t===0?"transparent":t})}function Wi(e){let r=useContext(pr),{disableSeparator:t,separatorColor:n}=r.slotProps?.selectColumn||{},o=n||r.separatorColor;return jsx(g,{padding:t?void 0:["md","right"],borderColor:o&&!t?[o,"right"]:void 0,children:jsx(Hi,{padding:"sm",iconSize:".85rem",checked:e.selected,onChange:e.onClick})})}var fr=e=>typeof e=="string"?e:e.name,Tr=(e,r,t)=>typeof r=="object"&&e in r?r[e]:t,Qm={Root:Xm,Header:Gm,Body:Km},ef=Qm;c();c();function tf(e){return jsxs(g,{row:true,ref:r=>{r&&!e.scrollIntoView&&e.selected&&r.scrollIntoView(true);},gap:"sm",align:"center",fade:e.disabled?.5:1,width:e.width??"full",corners:e.corners??"md",padding:e.padding??"sm",fontSize:e.fontSize||"sm",fontWeight:e.fontWeight,cursor:e.disabled?"not-allowed":"pointer",css:{...e.sx,transition:e.sx?.transition||"all 200ms linear",color:e.color||e.sx?.color||(e.selected?"surface":"onSurface"),backgroundColor:e.backgroundColor||e.sx?.backgroundColor||(e.selected?"onSurface":void 0),":hover":e.disabled||e.selected?void 0:{...e.sx?.[":hover"],backgroundColor:e.sx?.[":hover"]?.backgroundColor||"onSurface[0.1]"}},onClick:e.disabled?void 0:e.onClick,children:[!e.hideSelectedTick&&e.selected&&jsx(LuCheck,{style:{flexShrink:0}}),e.leadingEl,jsx("span",{children:e.formatOption?.(`${e.value}`)||`${e.value}`,style:ve({maxWidth:"100%",flex:"1",alignItems:"start",textAlign:"start"})}),e.trailingEl]})}var Dn=tf;var Gi=createContext(null);function sf(e){return jsx(Gi.Provider,{value:{...e,options:e.options.map(r=>typeof r=="string"||typeof r=="number"?{value:r.toString(),leadingEl:e.defaultLeadingEl,trailingEl:e.defaultTrailingEl}:{...r,leadingEl:r.leadingEl||e.defaultLeadingEl,trailingEl:r.trailingEl||e.defaultTrailingEl})},children:jsx(gr,{...e,backdropBlur:e.backdropBlur,padding:e.padding||"md",corners:e.corners||"md",displayAction:"click",content:jsx(uf,{})})})}function uf(){let e=useContext(Gi),r=Ki(),[t,n]=useState(e.isSelected?e.options.findIndex((i,a)=>e.isSelected(i,a,e.options)):void 0),{triggerRerender:o}=G();return useEffect(()=>{setTimeout(()=>{o();},10);},[]),jsx(g,{spill:"auto",gap:e.gap||"sm",children:e.options.map((i,a)=>{let l=a===t,s=()=>{i.onClick?.(),e.onOptionClick?.(i,a,e.options),n(a),r.close();};return (!i||!i?.value)&&console.error(`Index ${a} is not defined in ${e.options.join()}`),jsx(Dn,{scrollIntoView:l,fontSize:e.fontSize,fontWeight:e.fontWeight,formatOption:e.formatOption,hideSelectedTick:e.hideSelectedTick,leadingEl:i.leadingEl,trailingEl:i.trailingEl,value:i?.value.toString(),disabled:i?.disabled,selected:l,onClick:s},a)})})}var Nr=sf;c();function XC(e){let r=A({defaultValue:e.defaultChecked,reactive:true}),t=e.checked??r.read(),n=i=>{if(i)return {...i||{},backgroundColor:x(i.backgroundColor),color:x(i.color),borderColor:x(i.borderColor),fontSize:i.fontSize in R?R[i.fontSize]:i.fontSize}},o=({checked:i})=>{e.disabled||(typeof e.checked!="boolean"&&r.upsert(i),e.onChange?.(i));};return jsxs(Switch.Root,{disabled:e.disabled,checked:t,size:e.size,variant:e.variant,onCheckedChange:o,children:[jsx(Switch.HiddenInput,{}),jsxs(Switch.Control,{style:n(e.trackStyle?.(t)),children:[jsx(Switch.Thumb,{style:n(e.thumbStyle?.(t)),children:e.thumbIndicator&&jsx(Switch.ThumbIndicator,{fallback:e.thumbIndicator?.off,children:e.thumbIndicator?.on})}),e.trackIndicator&&jsx(Switch.Indicator,{fallback:e.trackIndicator?.off,children:e.trackIndicator?.on})]}),jsx(Activity,{mode:e.label?"visible":"hidden",children:jsx(Switch.Label,{children:typeof e.label=="function"?e.label(t):e.label,style:n(e.labelStyle?.(t))})})]})}c();function tP(e){let[r,t]=useState(true);return useEffect(()=>{setTimeout(async()=>{e.isDataLoaded&&await new Promise(n=>{for(;!e.isDataLoaded(););n();}),t(false);},e.delay||300);},[]),jsxs(Fragment,{children:[jsx(Activity,{mode:r?"visible":"hidden",children:e.LoadingScreen?jsx(e.LoadingScreen,{}):jsx(g,{size:"full",centerContent:true,children:jsx(Spinner,{})})}),jsx(Activity,{mode:r?"hidden":"visible",children:jsx(e.children,{})})]})}c();function sP(e){let r=e.style?.borderRadius||e.corners||"md";return jsx(g,{...e,spill:e.spill||"hidden",borderColor:e.borderColor||"onSurface[0.1]",width:e.width||"full",height:e.height||".7rem",corners:r,style:{...e.style||{},boxShadow:e.style?.boxShadow||"rgba(50, 50, 93, 0.25) 0px 30px 60px -12px inset, rgba(0, 0, 0, 0.3) 0px 18px 36px -18px inset"},children:jsx(g,{corners:r,width:`${coerceIn([e.value],0,1)[0]*100}%`,height:"full",backgroundColor:e.accentColor||"seed",style:{boxShadow:"rgba(0, 0, 0, 0.35) 0px 5px 15px"}})})}c();function gP(e){return jsx(AvatarGroup,{stacking:e.stacking,children:e.children})}c();var xf=["sm","md","lg","xl","xs"];function xP(e){let{animationDelay:r,animationDirection:t,animationDuration:n="slowest",size:o="sm"}=e,i=a=>a&&typeof a=="string"&&[...xf].includes(a);return jsx(Spinner,{size:i(o)?o:void 0,animationDelay:r,animationDirection:t,animationDuration:n,color:x(e.color||"seed"),borderWidth:e.thickness||".1rem",style:{padding:i(o)?void 0:o}})}c();function DP(e){let r=useRef(false),[t,n]=useState(e.currentPage??0),o=e.maxIndicators||5,i=o-1,a=e.totalPages-1,l=async f=>{if(f===t)return;let p=f===t+1,h=Math.abs(f-t)>1;r.current=h?null:p,h||(p?await e.onNextClick?.():await e.onPreviousClick?.()),await e.beforePageChange?.(f),n(f),await e.afterPageChange?.(f);},s=async()=>l(t-1),u=async()=>l(t+1);return jsxs(g,{row:true,align:"center",gap:e.gap||"1rem",children:[jsx(ea,{icon:SlArrowLeft,disabled:e.disableNav||t===0,onClick:s}),jsx(g,{row:true,justify:a>i?"space-evenly":void 0,align:"center",gap:".5rem",spill:"hidden",style:{width:`calc(2.05rem * ${o})`},children:buildArray(e.totalPages,f=>{let p=t===f;return jsx(g,{cursor:e.disableNav?"default":"pointer",centerContent:true,size:"1.6rem",children:`${f+1}`,corners:"circle",fade:p?1:.5,borderColor:p?void 0:"onSurface[0.1]",backgroundColor:p?"primary":void 0,color:p?"onPrimary":void 0,fontSize:"xs",style:{userSelect:"none",transition:"transform 200ms linear",transform:`translateX(calc(${t<i?0:t===a?t-i:t-(i-1)} * 2.1rem * ${r?-1:1}))`,flexShrink:0},onClick:e.disableNav?void 0:()=>l(f)},f)})}),jsx(ea,{icon:SlArrowRight,disabled:e.disableNav||t===e.totalPages-1,onClick:u})]})}function ea(e){return jsx(T,{async:true,disabled:e.disabled,padding:0,iconSize:"1rem",leadingEl:e.icon,backgroundColor:"transparent",color:"onSurface",onClick:e.onClick})}c();var ra=createContext(null);function Tf(e){let r=()=>{e.onClose?.();};if(e.controller?.isOpen!==false)return jsx(ra.Provider,{value:{sepColor:e.sepColor||"onSurface[0.1]"},children:jsxs(Drawer.Root,{open:e.controller?.isOpen,onExitComplete:r,children:[e.triggerElement&&jsx(Drawer.Trigger,{children:e.triggerElement}),jsxs(Rf,{container:e.container,children:[jsx(Drawer.Backdrop,{pos:e.container?"absolute":void 0,boxSize:e.container?"full":void 0}),jsx(Drawer.Positioner,{pos:e.container?"absolute":void 0,boxSize:e.container?"full":void 0,children:jsxs(Drawer.Content,{style:k({...e,spill:e.spill||"hidden",backgroundColor:e.backgroundColor,padding:e.padding??"md"}),children:[jsx(Drawer.CloseTrigger,{children:jsx(CloseButton,{})}),e.children]})})]})]})})}function Ef(){let e=useContext(ra);return jsx(g,{backgroundColor:e.sepColor,width:"full",height:"1px"})}function Rf(e){return e.container?jsx(Portal,{container:e.container,children:e.children}):e.children}var UP={Root:Tf,Header:e=>jsx(Drawer.Header,{style:k({...e,width:e.width??"full"}),children:e.children}),Body:e=>jsx(Drawer.Body,{style:k({...e,width:e.width??"full"}),children:e.children}),Footer:e=>jsx(Drawer.Footer,{style:k({...e,width:e.width??"full"}),children:e.children}),Sep:Ef,ActionTrigger:Drawer.ActionTrigger,CloseTrigger:Drawer.CloseTrigger};c();c();c();c();c();function v(e,r,t){function n(l,s){if(l._zod||Object.defineProperty(l,"_zod",{value:{def:s,constr:a,traits:new Set},enumerable:false}),l._zod.traits.has(e))return;l._zod.traits.add(e),r(l,s);let u=a.prototype,f=Object.keys(u);for(let p=0;p<f.length;p++){let h=f[p];h in l||(l[h]=u[h].bind(l));}}let o=t?.Parent??Object;class i extends o{}Object.defineProperty(i,"name",{value:e});function a(l){var s;let u=t?.Parent?new i:this;n(u,l),(s=u._zod).deferred??(s.deferred=[]);for(let f of u._zod.deferred)f();return u}return Object.defineProperty(a,"init",{value:n}),Object.defineProperty(a,Symbol.hasInstance,{value:l=>t?.Parent&&l instanceof t.Parent?true:l?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}var Pe=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");}},yr=class extends Error{constructor(r){super(`Encountered unidirectional transform during encode: ${r}`),this.name="ZodEncodeError";}},$t={};function ke(e){return $t}c();c();var _={};Id(_,{BIGINT_FORMAT_RANGES:()=>ia,Class:()=>On,NUMBER_FORMAT_RANGES:()=>Nn,aborted:()=>Me,allowsEval:()=>Rn,assert:()=>Uf,assertEqual:()=>Ff,assertIs:()=>Nf,assertNever:()=>Af,assertNotEqual:()=>jf,assignProp:()=>Ue,base64ToUint8Array:()=>ca,base64urlToUint8Array:()=>np,cached:()=>Zr,captureStackTrace:()=>zt,cleanEnum:()=>tp,cleanRegex:()=>Mr,clone:()=>_e,cloneDef:()=>Zf,createTransparentProxy:()=>Xf,defineLazy:()=>U,esc:()=>wt,escapeRegex:()=>Ve,extend:()=>Yf,finalizeIssue:()=>be,floatSafeRemainder:()=>Tn,getElementAtPath:()=>Vf,getEnumValues:()=>Lr,getLengthableOrigin:()=>Jr,getParsedType:()=>Hf,getSizableOrigin:()=>aa,hexToUint8Array:()=>ip,isObject:()=>_r,isPlainObject:()=>Ze,issue:()=>xr,joinValues:()=>B,jsonStringifyReplacer:()=>br,merge:()=>Qf,mergeDefs:()=>Le,normalizeParams:()=>D,nullish:()=>Vr,numKeys:()=>Wf,objectClone:()=>Lf,omit:()=>Kf,optionalKeys:()=>jn,partial:()=>ep,pick:()=>Gf,prefixIssues:()=>Te,primitiveTypes:()=>oa,promiseAllObject:()=>Mf,propertyKeyTypes:()=>Fn,randomString:()=>Jf,required:()=>rp,safeExtend:()=>qf,shallowClone:()=>na,slugify:()=>En,stringifyPrimitive:()=>I,uint8ArrayToBase64:()=>la,uint8ArrayToBase64url:()=>op,uint8ArrayToHex:()=>ap,unwrapMessage:()=>Ur});c();function Ff(e){return e}function jf(e){return e}function Nf(e){}function Af(e){throw new Error("Unexpected value in exhaustive check")}function Uf(e){}function Lr(e){let r=Object.values(e).filter(n=>typeof n=="number");return Object.entries(e).filter(([n,o])=>r.indexOf(+n)===-1).map(([n,o])=>o)}function B(e,r="|"){return e.map(t=>I(t)).join(r)}function br(e,r){return typeof r=="bigint"?r.toString():r}function Zr(e){return {get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function Vr(e){return e==null}function Mr(e){let r=e.startsWith("^")?1:0,t=e.endsWith("$")?e.length-1:e.length;return e.slice(r,t)}function Tn(e,r){let t=(e.toString().split(".")[1]||"").length,n=r.toString(),o=(n.split(".")[1]||"").length;if(o===0&&/\d?e-\d?/.test(n)){let s=n.match(/\d?e-(\d?)/);s?.[1]&&(o=Number.parseInt(s[1]));}let i=t>o?t:o,a=Number.parseInt(e.toFixed(i).replace(".","")),l=Number.parseInt(r.toFixed(i).replace(".",""));return a%l/10**i}var ta=Symbol("evaluating");function U(e,r,t){let n;Object.defineProperty(e,r,{get(){if(n!==ta)return n===void 0&&(n=ta,n=t()),n},set(o){Object.defineProperty(e,r,{value:o});},configurable:true});}function Lf(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function Ue(e,r,t){Object.defineProperty(e,r,{value:t,writable:true,enumerable:true,configurable:true});}function Le(...e){let r={};for(let t of e){let n=Object.getOwnPropertyDescriptors(t);Object.assign(r,n);}return Object.defineProperties({},r)}function Zf(e){return Le(e._zod.def)}function Vf(e,r){return r?r.reduce((t,n)=>t?.[n],e):e}function Mf(e){let r=Object.keys(e),t=r.map(n=>e[n]);return Promise.all(t).then(n=>{let o={};for(let i=0;i<r.length;i++)o[r[i]]=n[i];return o})}function Jf(e=10){let r="abcdefghijklmnopqrstuvwxyz",t="";for(let n=0;n<e;n++)t+=r[Math.floor(Math.random()*r.length)];return t}function wt(e){return JSON.stringify(e)}function En(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var zt="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function _r(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var Rn=Zr(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return false;try{let e=Function;return new e(""),!0}catch{return false}});function Ze(e){if(_r(e)===false)return false;let r=e.constructor;if(r===void 0||typeof r!="function")return true;let t=r.prototype;return !(_r(t)===false||Object.prototype.hasOwnProperty.call(t,"isPrototypeOf")===false)}function na(e){return Ze(e)?{...e}:Array.isArray(e)?[...e]:e}function Wf(e){let r=0;for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&r++;return r}var Hf=e=>{let r=typeof e;switch(r){case "undefined":return "undefined";case "string":return "string";case "number":return Number.isNaN(e)?"nan":"number";case "boolean":return "boolean";case "function":return "function";case "bigint":return "bigint";case "symbol":return "symbol";case "object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${r}`)}},Fn=new Set(["string","number","symbol"]),oa=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Ve(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function _e(e,r,t){let n=new e._zod.constr(r??e._zod.def);return (!r||t?.parent)&&(n._zod.parent=e),n}function D(e){let r=e;if(!r)return {};if(typeof r=="string")return {error:()=>r};if(r?.message!==void 0){if(r?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");r.error=r.message;}return delete r.message,typeof r.error=="string"?{...r,error:()=>r.error}:r}function Xf(e){let r;return new Proxy({},{get(t,n,o){return r??(r=e()),Reflect.get(r,n,o)},set(t,n,o,i){return r??(r=e()),Reflect.set(r,n,o,i)},has(t,n){return r??(r=e()),Reflect.has(r,n)},deleteProperty(t,n){return r??(r=e()),Reflect.deleteProperty(r,n)},ownKeys(t){return r??(r=e()),Reflect.ownKeys(r)},getOwnPropertyDescriptor(t,n){return r??(r=e()),Reflect.getOwnPropertyDescriptor(r,n)},defineProperty(t,n,o){return r??(r=e()),Reflect.defineProperty(r,n,o)}})}function I(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function jn(e){return Object.keys(e).filter(r=>e[r]._zod.optin==="optional"&&e[r]._zod.optout==="optional")}var Nn={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},ia={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Gf(e,r){let t=e._zod.def,n=Le(e._zod.def,{get shape(){let o={};for(let i in r){if(!(i in t.shape))throw new Error(`Unrecognized key: "${i}"`);r[i]&&(o[i]=t.shape[i]);}return Ue(this,"shape",o),o},checks:[]});return _e(e,n)}function Kf(e,r){let t=e._zod.def,n=Le(e._zod.def,{get shape(){let o={...e._zod.def.shape};for(let i in r){if(!(i in t.shape))throw new Error(`Unrecognized key: "${i}"`);r[i]&&delete o[i];}return Ue(this,"shape",o),o},checks:[]});return _e(e,n)}function Yf(e,r){if(!Ze(r))throw new Error("Invalid input to extend: expected a plain object");let t=e._zod.def.checks;if(t&&t.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");let o=Le(e._zod.def,{get shape(){let i={...e._zod.def.shape,...r};return Ue(this,"shape",i),i},checks:[]});return _e(e,o)}function qf(e,r){if(!Ze(r))throw new Error("Invalid input to safeExtend: expected a plain object");let t={...e._zod.def,get shape(){let n={...e._zod.def.shape,...r};return Ue(this,"shape",n),n},checks:e._zod.def.checks};return _e(e,t)}function Qf(e,r){let t=Le(e._zod.def,{get shape(){let n={...e._zod.def.shape,...r._zod.def.shape};return Ue(this,"shape",n),n},get catchall(){return r._zod.def.catchall},checks:[]});return _e(e,t)}function ep(e,r,t){let n=Le(r._zod.def,{get shape(){let o=r._zod.def.shape,i={...o};if(t)for(let a in t){if(!(a in o))throw new Error(`Unrecognized key: "${a}"`);t[a]&&(i[a]=e?new e({type:"optional",innerType:o[a]}):o[a]);}else for(let a in o)i[a]=e?new e({type:"optional",innerType:o[a]}):o[a];return Ue(this,"shape",i),i},checks:[]});return _e(r,n)}function rp(e,r,t){let n=Le(r._zod.def,{get shape(){let o=r._zod.def.shape,i={...o};if(t)for(let a in t){if(!(a in i))throw new Error(`Unrecognized key: "${a}"`);t[a]&&(i[a]=new e({type:"nonoptional",innerType:o[a]}));}else for(let a in o)i[a]=new e({type:"nonoptional",innerType:o[a]});return Ue(this,"shape",i),i},checks:[]});return _e(r,n)}function Me(e,r=0){if(e.aborted===true)return true;for(let t=r;t<e.issues.length;t++)if(e.issues[t]?.continue!==true)return true;return false}function Te(e,r){return r.map(t=>{var n;return (n=t).path??(n.path=[]),t.path.unshift(e),t})}function Ur(e){return typeof e=="string"?e:e?.message}function be(e,r,t){let n={...e,path:e.path??[]};if(!e.message){let o=Ur(e.inst?._zod.def?.error?.(e))??Ur(r?.error?.(e))??Ur(t.customError?.(e))??Ur(t.localeError?.(e))??"Invalid input";n.message=o;}return delete n.inst,delete n.continue,r?.reportInput||delete n.input,n}function aa(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Jr(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function xr(...e){let[r,t,n]=e;return typeof r=="string"?{message:r,code:"custom",input:t,inst:n}:{...r}}function tp(e){return Object.entries(e).filter(([r,t])=>Number.isNaN(Number.parseInt(r,10))).map(r=>r[1])}function ca(e){let r=atob(e),t=new Uint8Array(r.length);for(let n=0;n<r.length;n++)t[n]=r.charCodeAt(n);return t}function la(e){let r="";for(let t=0;t<e.length;t++)r+=String.fromCharCode(e[t]);return btoa(r)}function np(e){let r=e.replace(/-/g,"+").replace(/_/g,"/"),t="=".repeat((4-r.length%4)%4);return ca(r+t)}function op(e){return la(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function ip(e){let r=e.replace(/^0x/,"");if(r.length%2!==0)throw new Error("Invalid hex string length");let t=new Uint8Array(r.length/2);for(let n=0;n<r.length;n+=2)t[n/2]=Number.parseInt(r.slice(n,n+2),16);return t}function ap(e){return Array.from(e).map(r=>r.toString(16).padStart(2,"0")).join("")}var On=class{constructor(...r){}};var sa=(e,r)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:false}),Object.defineProperty(e,"issues",{value:r,enumerable:false}),e.message=JSON.stringify(r,br,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:false});},Dt=v("$ZodError",sa),An=v("$ZodError",sa,{Parent:Error});function ua(e,r=t=>t.message){let t={},n=[];for(let o of e.issues)o.path.length>0?(t[o.path[0]]=t[o.path[0]]||[],t[o.path[0]].push(r(o))):n.push(r(o));return {formErrors:n,fieldErrors:t}}function da(e,r=t=>t.message){let t={_errors:[]},n=o=>{for(let i of o.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(a=>n({issues:a}));else if(i.code==="invalid_key")n({issues:i.issues});else if(i.code==="invalid_element")n({issues:i.issues});else if(i.path.length===0)t._errors.push(r(i));else {let a=t,l=0;for(;l<i.path.length;){let s=i.path[l];l===i.path.length-1?(a[s]=a[s]||{_errors:[]},a[s]._errors.push(r(i))):a[s]=a[s]||{_errors:[]},a=a[s],l++;}}};return n(e),t}var It=e=>(r,t,n,o)=>{let i=n?Object.assign(n,{async:false}):{async:false},a=r._zod.run({value:t,issues:[]},i);if(a instanceof Promise)throw new Pe;if(a.issues.length){let l=new(o?.Err??e)(a.issues.map(s=>be(s,i,ke())));throw zt(l,o?.callee),l}return a.value};var Bt=e=>async(r,t,n,o)=>{let i=n?Object.assign(n,{async:true}):{async:true},a=r._zod.run({value:t,issues:[]},i);if(a instanceof Promise&&(a=await a),a.issues.length){let l=new(o?.Err??e)(a.issues.map(s=>be(s,i,ke())));throw zt(l,o?.callee),l}return a.value};var Wr=e=>(r,t,n)=>{let o=n?{...n,async:false}:{async:false},i=r._zod.run({value:t,issues:[]},o);if(i instanceof Promise)throw new Pe;return i.issues.length?{success:false,error:new(e??Dt)(i.issues.map(a=>be(a,o,ke())))}:{success:true,data:i.value}},ma=Wr(An),Hr=e=>async(r,t,n)=>{let o=n?Object.assign(n,{async:true}):{async:true},i=r._zod.run({value:t,issues:[]},o);return i instanceof Promise&&(i=await i),i.issues.length?{success:false,error:new e(i.issues.map(a=>be(a,o,ke())))}:{success:true,data:i.value}},fa=Hr(An),pa=e=>(r,t,n)=>{let o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return It(e)(r,t,o)};var ga=e=>(r,t,n)=>It(e)(r,t,n);var va=e=>async(r,t,n)=>{let o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Bt(e)(r,t,o)};var ha=e=>async(r,t,n)=>Bt(e)(r,t,n);var ya=e=>(r,t,n)=>{let o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Wr(e)(r,t,o)};var _a=e=>(r,t,n)=>Wr(e)(r,t,n);var ba=e=>async(r,t,n)=>{let o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Hr(e)(r,t,o)};var xa=e=>async(r,t,n)=>Hr(e)(r,t,n);c();c();c();var Sa=/^[cC][^\s-]{8,}$/,Ca=/^[0-9a-z]+$/,Pa=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,ka=/^[0-9a-vA-V]{20}$/,$a=/^[A-Za-z0-9]{27}$/,wa=/^[a-zA-Z0-9_-]{21}$/,za=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/;var Da=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Un=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/;var Ia=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/;var lp="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Ba(){return new RegExp(lp,"u")}var Oa=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Ta=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/;var Ea=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Ra=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Fa=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Ln=/^[A-Za-z0-9_-]*$/;var ja=/^\+(?:[0-9]){6,14}[0-9]$/,Na="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",Aa=new RegExp(`^${Na}$`);function Ua(e){let r="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${r}`:e.precision===0?`${r}:[0-5]\\d`:`${r}:[0-5]\\d\\.\\d{${e.precision}}`:`${r}(?::[0-5]\\d(?:\\.\\d+)?)?`}function La(e){return new RegExp(`^${Ua(e)}$`)}function Za(e){let r=Ua({precision:e.precision}),t=["Z"];e.local&&t.push(""),e.offset&&t.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let n=`${r}(?:${t.join("|")})`;return new RegExp(`^${Na}T(?:${n})$`)}var Va=e=>{let r=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${r}$`)};var Ma=/^-?\d+$/,Ja=/^-?\d+(?:\.\d+)?/;var Wa=/^[^A-Z]*$/,Ha=/^[^a-z]*$/;var Q=v("$ZodCheck",(e,r)=>{var t;e._zod??(e._zod={}),e._zod.def=r,(t=e._zod).onattach??(t.onattach=[]);}),Xa={number:"number",bigint:"bigint",object:"date"},Zn=v("$ZodCheckLessThan",(e,r)=>{Q.init(e,r);let t=Xa[typeof r.value];e._zod.onattach.push(n=>{let o=n._zod.bag,i=(r.inclusive?o.maximum:o.exclusiveMaximum)??Number.POSITIVE_INFINITY;r.value<i&&(r.inclusive?o.maximum=r.value:o.exclusiveMaximum=r.value);}),e._zod.check=n=>{(r.inclusive?n.value<=r.value:n.value<r.value)||n.issues.push({origin:t,code:"too_big",maximum:r.value,input:n.value,inclusive:r.inclusive,inst:e,continue:!r.abort});};}),Vn=v("$ZodCheckGreaterThan",(e,r)=>{Q.init(e,r);let t=Xa[typeof r.value];e._zod.onattach.push(n=>{let o=n._zod.bag,i=(r.inclusive?o.minimum:o.exclusiveMinimum)??Number.NEGATIVE_INFINITY;r.value>i&&(r.inclusive?o.minimum=r.value:o.exclusiveMinimum=r.value);}),e._zod.check=n=>{(r.inclusive?n.value>=r.value:n.value>r.value)||n.issues.push({origin:t,code:"too_small",minimum:r.value,input:n.value,inclusive:r.inclusive,inst:e,continue:!r.abort});};}),Ga=v("$ZodCheckMultipleOf",(e,r)=>{Q.init(e,r),e._zod.onattach.push(t=>{var n;(n=t._zod.bag).multipleOf??(n.multipleOf=r.value);}),e._zod.check=t=>{if(typeof t.value!=typeof r.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof t.value=="bigint"?t.value%r.value===BigInt(0):Tn(t.value,r.value)===0)||t.issues.push({origin:typeof t.value,code:"not_multiple_of",divisor:r.value,input:t.value,inst:e,continue:!r.abort});};}),Ka=v("$ZodCheckNumberFormat",(e,r)=>{Q.init(e,r),r.format=r.format||"float64";let t=r.format?.includes("int"),n=t?"int":"number",[o,i]=Nn[r.format];e._zod.onattach.push(a=>{let l=a._zod.bag;l.format=r.format,l.minimum=o,l.maximum=i,t&&(l.pattern=Ma);}),e._zod.check=a=>{let l=a.value;if(t){if(!Number.isInteger(l)){a.issues.push({expected:n,format:r.format,code:"invalid_type",continue:false,input:l,inst:e});return}if(!Number.isSafeInteger(l)){l>0?a.issues.push({input:l,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,continue:!r.abort}):a.issues.push({input:l,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,continue:!r.abort});return}}l<o&&a.issues.push({origin:"number",input:l,code:"too_small",minimum:o,inclusive:true,inst:e,continue:!r.abort}),l>i&&a.issues.push({origin:"number",input:l,code:"too_big",maximum:i,inst:e});};});var Ya=v("$ZodCheckMaxLength",(e,r)=>{var t;Q.init(e,r),(t=e._zod.def).when??(t.when=n=>{let o=n.value;return !Vr(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{let o=n._zod.bag.maximum??Number.POSITIVE_INFINITY;r.maximum<o&&(n._zod.bag.maximum=r.maximum);}),e._zod.check=n=>{let o=n.value;if(o.length<=r.maximum)return;let a=Jr(o);n.issues.push({origin:a,code:"too_big",maximum:r.maximum,inclusive:true,input:o,inst:e,continue:!r.abort});};}),qa=v("$ZodCheckMinLength",(e,r)=>{var t;Q.init(e,r),(t=e._zod.def).when??(t.when=n=>{let o=n.value;return !Vr(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{let o=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;r.minimum>o&&(n._zod.bag.minimum=r.minimum);}),e._zod.check=n=>{let o=n.value;if(o.length>=r.minimum)return;let a=Jr(o);n.issues.push({origin:a,code:"too_small",minimum:r.minimum,inclusive:true,input:o,inst:e,continue:!r.abort});};}),Qa=v("$ZodCheckLengthEquals",(e,r)=>{var t;Q.init(e,r),(t=e._zod.def).when??(t.when=n=>{let o=n.value;return !Vr(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{let o=n._zod.bag;o.minimum=r.length,o.maximum=r.length,o.length=r.length;}),e._zod.check=n=>{let o=n.value,i=o.length;if(i===r.length)return;let a=Jr(o),l=i>r.length;n.issues.push({origin:a,...l?{code:"too_big",maximum:r.length}:{code:"too_small",minimum:r.length},inclusive:true,exact:true,input:n.value,inst:e,continue:!r.abort});};}),Xr=v("$ZodCheckStringFormat",(e,r)=>{var t,n;Q.init(e,r),e._zod.onattach.push(o=>{let i=o._zod.bag;i.format=r.format,r.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(r.pattern));}),r.pattern?(t=e._zod).check??(t.check=o=>{r.pattern.lastIndex=0,!r.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:r.format,input:o.value,...r.pattern?{pattern:r.pattern.toString()}:{},inst:e,continue:!r.abort});}):(n=e._zod).check??(n.check=()=>{});}),ec=v("$ZodCheckRegex",(e,r)=>{Xr.init(e,r),e._zod.check=t=>{r.pattern.lastIndex=0,!r.pattern.test(t.value)&&t.issues.push({origin:"string",code:"invalid_format",format:"regex",input:t.value,pattern:r.pattern.toString(),inst:e,continue:!r.abort});};}),rc=v("$ZodCheckLowerCase",(e,r)=>{r.pattern??(r.pattern=Wa),Xr.init(e,r);}),tc=v("$ZodCheckUpperCase",(e,r)=>{r.pattern??(r.pattern=Ha),Xr.init(e,r);}),nc=v("$ZodCheckIncludes",(e,r)=>{Q.init(e,r);let t=Ve(r.includes),n=new RegExp(typeof r.position=="number"?`^.{${r.position}}${t}`:t);r.pattern=n,e._zod.onattach.push(o=>{let i=o._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n);}),e._zod.check=o=>{o.value.includes(r.includes,r.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:r.includes,input:o.value,inst:e,continue:!r.abort});};}),oc=v("$ZodCheckStartsWith",(e,r)=>{Q.init(e,r);let t=new RegExp(`^${Ve(r.prefix)}.*`);r.pattern??(r.pattern=t),e._zod.onattach.push(n=>{let o=n._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(t);}),e._zod.check=n=>{n.value.startsWith(r.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:r.prefix,input:n.value,inst:e,continue:!r.abort});};}),ic=v("$ZodCheckEndsWith",(e,r)=>{Q.init(e,r);let t=new RegExp(`.*${Ve(r.suffix)}$`);r.pattern??(r.pattern=t),e._zod.onattach.push(n=>{let o=n._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(t);}),e._zod.check=n=>{n.value.endsWith(r.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:r.suffix,input:n.value,inst:e,continue:!r.abort});};});var ac=v("$ZodCheckOverwrite",(e,r)=>{Q.init(e,r),e._zod.check=t=>{t.value=r.tx(t.value);};});c();var Tt=class{constructor(r=[]){this.content=[],this.indent=0,this&&(this.args=r);}indented(r){this.indent+=1,r(this),this.indent-=1;}write(r){if(typeof r=="function"){r(this,{execution:"sync"}),r(this,{execution:"async"});return}let n=r.split(`
17
+ `}function rx(e,r){return {display:"flex",justifyContent:"center",alignItems:"center",flexDirection:r?"column":"row",...e}}function tx(e,r){let t=n=>"affectedCorners"in e&&typeof e.affectedCorners=="string"?n.includes(e.affectedCorners)?e.radius:void 0:"affectedCorners"in e?e.affectedCorners.includes(n)?e.radius:void 0:e[n];return {...r,borderTopLeftRadius:t("top-left"),borderTopRightRadius:t("top-right"),borderBottomLeftRadius:t("bottom-left"),borderBottomRightRadius:t("bottom-right")}}function nx(e){let r=typeof e.disabledCurves=="function"?e.disabledCurves():e.disabledCurves,t=o=>r==="both"||r===o?0:e.curveRadius||ge.md;return {borderTopLeftRadius:t("left"),borderBottomLeftRadius:t("left"),borderTopRightRadius:t("right"),borderBottomRightRadius:t("right")}}function ox(e){let r=0,t=0,n=0,o=0;document.getElementById(e.id+"header")?document.getElementById(e.id+"header").onmousedown=i:e.onmousedown=i;function i(s){s.preventDefault(),n=s.clientX,o=s.clientY,document.onmouseup=l,document.onmousemove=a;}function a(s){s.preventDefault(),r=n-s.clientX,t=o-s.clientY,n=s.clientX,o=s.clientY,e.style.top=e.offsetTop-t+"px",e.style.left=e.offsetLeft-r+"px";}function l(){document.onmouseup=null,document.onmousemove=null;}}function ix(e){return {...e,margin:0,padding:0}}function ve(e,r={apply:true}){return r.apply?Ir(1,e):e}function pi(e,r={apply:true}){return r.apply?{...e,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}:e}function gi(e){let r=e;for(;r&&!yn(r);)r=r.parentElement;return r}function vi(e){let r=document.createElement("span");r.textContent="A",r.style.visibility="hidden",r.style.position="absolute";let t=getComputedStyle(e);r.style.fontFamily=t.fontFamily,r.style.fontSize=t.fontSize,r.style.lineHeight=t.lineHeight,document.body.appendChild(r);let n=r.offsetHeight;return document.body.removeChild(r),e.offsetHeight>n+2}function hi(e){return e&&(e in T?T[e]:e.split(" ").map(r=>r in T?T[r]:r).join(" "))}function ax(e){return e&&(e in U?U[e]:e.split(" ").map(r=>r in U?U[r]:r).join(" "))}function x(e,r){if(!e||typeof e!="string")return e;e=e.replaceAll(" ","");let t=r?.preference||"css",{0:n,1:o}=e.split("["),i=()=>pe[e],a=()=>o?qd(Be[n],parseFloat(o)):Be[e];if(t==="css"){if(e in pe)return i();if(n in Be)return a()}else if(t==="res"){if(n in Be)return a();if(e in pe)return i()}return e}var yi=e=>new DOMParser().parseFromString(e,"text/html").body.textContent||"",Kd=e=>/^#([A-Fa-f0-9]{3,4}){1,2}$/.test(e),Yd=e=>parseInt(e.repeat(2/e.length),16);function qd(e,r=1){let t=(f,p)=>f.match(new RegExp(`.{${p}}`,"g")),n=f=>typeof f<"u"?f/255:typeof r!="number"||r<0||r>1?1:r;if(!Kd(e))throw new Error(`Invalid HEX: ${e}`);let o=Math.floor((e.length-1)/3),i=t(e.slice(1),o),[a,l,s,u]=i.map(Yd);return `rgba(${a}, ${l}, ${s}, ${n(u)})`}function cx(e,r){let t=e.includes(",")?",":" ",n=e.split("").filter(o=>(t+"0123456789").includes(o)).join("").split(t);return n.length===3?n.push(`${r}`):n=n.with(3,`${r}`),"rgba("+n.join(t)+")"}function lx(e){return window.matchMedia(`(max-width:${e})`).matches}function sx(e){return window.matchMedia(`(min-width:${e})`).matches}function Ir(e=2,r){return {...r,overflow:"hidden",width:"100%",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical"}}function Qd(e){return e*16}function ux(e){return `${Qd(e)}px`}function yn(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function dx(e){let r=document.body,t=e.replace("var(","").replace(")","");return getComputedStyle(r).getPropertyValue(t)}c();var em=Object.freeze({"2xl":"1.75rem",xl:"1.5rem",lg:"1rem",md:"0.5rem",sm:"0.25rem",xs:"0.125rem","2xs":"0.1rem"}),U=em;c();var rm=Object.freeze({"2xl":"1.75rem",xl:"1.5rem",lg:"1.25rem",md:"1rem",sm:"0.85rem",xs:"0.75rem","2xs":"0.65rem"}),T=rm;var bt=["top","right","bottom","left"],_i=(e,r)=>`translate(${e}, ${r})`,bi=e=>`translateX(${e})`,xi=e=>`translateY(${e})`,tm=(e,r)=>{let t=e.fontSize in T?T[e.fontSize]:e.fontSize,{overflowX:n,overflowY:o}=(()=>{let l=e?.spill||{};if(l)return {overflowX:typeof l=="string"?l:l?.x||"visible",overflowY:typeof l=="string"?l:l?.y||"visible"}})();function i(l){return e.style?.[l]?e.style[l]:(e.size||e.size===0)&&(l==="height"||l==="width")?e.size==="full"?"100%":e.size:e[l]==="full"?"100%":e[l]}let a={top:e.centerSelf===true||e.centerSelf==="y"?"50%":e.top,left:e.centerSelf===true||e.centerSelf==="x"?"50%":e.left,right:e.right,bottom:e.bottom,cursor:e.clickable?"pointer":e.cursor,scrollbarColor:[e.scrollbarColor?.thumb,e.scrollbarColor?.track].map(l=>l||"inherit").join(" "),transform:e.centerSelf===true?_i("-50%","-50%"):e.centerSelf==="x"?bi("-50%"):e.centerSelf==="y"?xi("-50%"):e.translate?.x&&e.translate?.y?_i(e.translate.x,e.translate.y):e.translate?.x?bi(e.translate.x):e.translate?.y?xi(e.translate.y):void 0,position:e.pos==="absolute"||e.centerSelf?"absolute":e.pos,padding:am(e.padding),fontSize:t,fontWeight:e.fontWeight,border:e.border,borderColor:nm(e.borderColor),borderWidth:om(e.borderWidth,e.borderColor?"1px":void 0),borderStyle:im(e.borderStyle,e.borderColor?"solid":void 0),lineHeight:t?`calc(${t} + (${t} * .15))`:void 0,borderRadius:cm(e.corners),userSelect:e.disableSelection?"none":e.allowTextSelection?"text":void 0,minHeight:i("minHeight"),minWidth:i("minWidth"),maxHeight:i("maxHeight"),maxWidth:i("maxWidth"),height:i("height"),width:i("width"),display:e.hide?"none":void 0,flexDirection:e.row?"row":"column",flex:e.flex,backgroundColor:x(e.backgroundColor),color:x(e.color),gap:lm(e.gap),overflowX:n,overflowY:o,aspectRatio:e.aspectRatio,opacity:e.fade,alignItems:e.centerContent?"center":e.align||"start",justifyContent:e.centerContent?"center":e.justify||"start",backdropFilter:e.backdropBlur?`blur(${e.backdropBlur})`:void 0,filter:e.blur?`blur(${e.blur})`:void 0,...e.style};return Object.keys(a).forEach(l=>{let s=l,u=a[s];typeof u=="string"&&(u=u.trim()),!u&&u!==0&&delete a[s];}),(r||e.debug)&&console.log({props:e,style:a}),a};function nm(e){if(!e)return;let r="transparent";return typeof e=="string"?x(e):bt.map(t=>{if(Array.isArray(e)){let{0:n,1:o}=e;return (Array.isArray(o)?o.includes(t):[t,"all"].includes(o))?x(n):r}return typeof e=="object"&&t in e?x(e[t]):r}).join(" ")}function om(e,r){if(!e)return r;let t=0;return typeof e=="string"?e:bt.map(n=>{if(Array.isArray(e)){let{0:o,1:i}=e;return (Array.isArray(i)?i.includes(n):[n,"all"].includes(i))?o:t}return typeof e=="object"&&n in e?e[n]:t}).join(" ")}function im(e,r){if(!e)return r;let t=0;return typeof e=="string"?e:bt.map(n=>{if(Array.isArray(e)){let{0:o,1:i}=e;return (Array.isArray(i)?i.includes(n):[n,"all"].includes(i))?o:t}return typeof e=="object"&&n in e?e[n]:t}).join(" ")}function am(e){let t=n=>n?n in U?U[n]:n:"0px";return e?typeof e=="string"?t(e):bt.map(n=>{if(Array.isArray(e)){let{0:o,1:i}=e;return (Array.isArray(i)?i.includes(n):i===n)?t(o):"0px"}return typeof e=="object"&&n in e?t(e[n]):"0px"}).join(" "):"0px"}function cm(e){let t=o=>o?o in ge?ge[o]:o:"0px";return e?typeof e=="string"?t(e):["topLeft","topRight","bottomRight","bottomLeft"].map(o=>{let i=e?.[o];return o.includes("top")&&e?.top?t(e.top):o.includes("bottom")&&e?.bottom?t(e.bottom):i?t(i):"0px"}).join(" "):"0px"}function lm(e){if(!(!e||typeof e!="string"))return e in U?U[e]:e}var k=tm;var gm=["inherit","sm","md","lg","xl","2xl","xs"],vm=["sm","md","lg","xl","2xl","xs","2xs"];function Si(e){let[r,t]=useState(false),n=e.disabled||r,o=async p=>{if(!n){if(!e.async)return e.onClick?.(p);t(true),await e.onClick?.(p),setTimeout(()=>t(false),e.pendingDelay||1);}},i=p=>{if(p){if(typeof p==typeof FaFolder){let h=y=>typeof y=="string"&&[...gm].includes(y);return jsx(Icon,{size:h(e.iconSize)?e.iconSize:void 0,boxSize:h(e.iconSize)?void 0:e.iconSize,as:p})}return p}},a=i(e.leadingEl),l=i(e.trailingEl),s=p=>typeof p=="string"&&[...vm].includes(p),{size:u,...f}=e;return jsxs(Button,{...je(e),disabled:n,size:s(u)?u:void 0,style:k({...f,size:s(u)?void 0:u,clickable:!n,row:true,centerContent:true,gap:e.gap||"md",corners:e.corners||"md",padding:e.padding||"md",color:e.color||(e.variant==="outline"?"onSurface":"onPrimary"),backgroundColor:e.backgroundColor||(e.variant==="outline"?"transparent":"primary"),border:e.border,borderColor:e.borderColor||(e.variant==="outline"?"onSurface[0.1]":void 0),fade:n?e.disabledOpacity||.5:e.fade||1,pos:r?"relative":e.pos,height:e.height||"fit-content",width:e.width||"fit-content"}),onClick:o,onMouseDown:e.onMouseDown,children:[a,e.text,e.children,l,r&&jsx(AbsoluteCenter,{children:jsx(Spinner,{size:"sm",animationDuration:"slowest",borderWidth:".1rem",color:e.spinnerColor?x(e.spinnerColor):"blue.500"})})]})}var Ne=e=>r=>jsx(Si,{...(()=>{let n={...r,...e.preset};for(let o of Object.keys(e.optional||{})){let i=o,a=i in n,l=[void 0,null].includes(n[i]);(!a||l)&&(n[i]=e.optional[i]);}return n})()}),E=Si;c();c();c();c();c();function St(){return St=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n]);}return e},St.apply(null,arguments)}c();c();function Ci(e){for(var r=0,t,n=0,o=e.length;o>=4;++n,o-=4)t=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,t=(t&65535)*1540483477+((t>>>16)*59797<<16),t^=t>>>24,r=(t&65535)*1540483477+((t>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(o){case 3:r^=(e.charCodeAt(n+2)&255)<<16;case 2:r^=(e.charCodeAt(n+1)&255)<<8;case 1:r^=e.charCodeAt(n)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16);}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}c();var Pi={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};c();function Ct(e){var r=Object.create(null);return function(t){return r[t]===void 0&&(r[t]=e(t)),r[t]}}var _m=/[A-Z]|^ms/g,bm=/_EMO_([^_]+?)_([^]*?)_EMO_/g,zi=function(r){return r.charCodeAt(1)===45},ki=function(r){return r!=null&&typeof r!="boolean"},_n=Ct(function(e){return zi(e)?e:e.replace(_m,"-$&").toLowerCase()}),$i=function(r,t){switch(r){case "animation":case "animationName":if(typeof t=="string")return t.replace(bm,function(n,o,i){return Se={name:o,styles:i,next:Se},o})}return Pi[r]!==1&&!zi(r)&&typeof t=="number"&&t!==0?t+"px":t};function Or(e,r,t){if(t==null)return "";var n=t;if(n.__emotion_styles!==void 0)return n;switch(typeof t){case "boolean":return "";case "object":{var o=t;if(o.anim===1)return Se={name:o.name,styles:o.styles,next:Se},o.name;var i=t;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)Se={name:a.name,styles:a.styles,next:Se},a=a.next;var l=i.styles+";";return l}return Sm(e,r,t)}case "function":{if(e!==void 0){var s=Se,u=t(e);return Se=s,Or(e,r,u)}break}}var f=t;if(r==null)return f;var p=r[f];return p!==void 0?p:f}function Sm(e,r,t){var n="";if(Array.isArray(t))for(var o=0;o<t.length;o++)n+=Or(e,r,t[o])+";";else for(var i in t){var a=t[i];if(typeof a!="object"){var l=a;r!=null&&r[l]!==void 0?n+=i+"{"+r[l]+"}":ki(l)&&(n+=_n(i)+":"+$i(i,l)+";");}else {if(Array.isArray(a)&&typeof a[0]=="string"&&(r==null||r[a[0]]===void 0))for(var s=0;s<a.length;s++)ki(a[s])&&(n+=_n(i)+":"+$i(i,a[s])+";");else {var u=Or(e,r,a);switch(i){case "animation":case "animationName":{n+=_n(i)+":"+u+";";break}default:n+=i+"{"+u+"}";}}}}return n}var wi=/label:\s*([^\s;{]+)\s*(;|$)/g,Se;function Di(e,r,t){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=true,o="";Se=void 0;var i=e[0];if(i==null||i.raw===void 0)n=false,o+=Or(t,r,i);else {var a=i;o+=a[0];}for(var l=1;l<e.length;l++)if(o+=Or(t,r,e[l]),n){var s=i;o+=s[l];}wi.lastIndex=0;for(var u="",f;(f=wi.exec(o))!==null;)u+="-"+f[1];var p=Ci(o)+u;return {name:p,styles:o,next:Se}}c();var Cm=typeof document<"u",Bi=function(r){return r()},Pm=Ie.useInsertionEffect?Ie.useInsertionEffect:false,Ii=Cm&&Pm||Bi;c();var bn=typeof document<"u";function Oi(e,r,t){var n="";return t.split(" ").forEach(function(o){e[o]!==void 0?r.push(e[o]+";"):o&&(n+=o+" ");}),n}var xn=function(r,t,n){var o=r.key+"-"+t.name;(n===false||bn===false&&r.compat!==void 0)&&r.registered[o]===void 0&&(r.registered[o]=t.styles);},Ti=function(r,t,n){xn(r,t,n);var o=r.key+"-"+t.name;if(r.inserted[t.name]===void 0){var i="",a=t;do{var l=r.insert(t===a?"."+o:"",a,r.sheet,true);!bn&&l!==void 0&&(i+=l),a=a.next;}while(a!==void 0);if(!bn&&i.length!==0)return i}};c();var km=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Ei=Ct(function(e){return km.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});var zm=typeof document<"u",Bm=Ei,Im=function(r){return r!=="theme"},Ri=function(r){return typeof r=="string"&&r.charCodeAt(0)>96?Bm:Im},Fi=function(r,t,n){var o;if(t){var i=t.shouldForwardProp;o=r.__emotion_forwardProp&&i?function(a){return r.__emotion_forwardProp(a)&&i(a)}:i;}return typeof o!="function"&&n&&(o=r.__emotion_forwardProp),o},Om=function(r){var t=r.cache,n=r.serialized,o=r.isStringTag;xn(t,n,o);var i=Ii(function(){return Ti(t,n,o)});if(!zm&&i!==void 0){for(var a,l=n.name,s=n.next;s!==void 0;)l+=" "+s.name,s=s.next;return Ie.createElement("style",(a={},a["data-emotion"]=t.key+" "+l,a.dangerouslySetInnerHTML={__html:i},a.nonce=t.sheet.nonce,a))}return null},ji=function e(r,t){var n=r.__emotion_real===r,o=n&&r.__emotion_base||r,i,a;t!==void 0&&(i=t.label,a=t.target);var l=Fi(r,t,n),s=l||Ri(o),u=!s("as");return function(){var f=arguments,p=n&&r.__emotion_styles!==void 0?r.__emotion_styles.slice(0):[];if(i!==void 0&&p.push("label:"+i+";"),f[0]==null||f[0].raw===void 0)p.push.apply(p,f);else {var h=f[0];p.push(h[0]);for(var y=f.length,z=1;z<y;z++)p.push(f[z],h[z]);}var b=withEmotionCache(function(S,$,w){var P=u&&S.as||o,j="",ee=[],Fe=S;if(S.theme==null){Fe={};for(var Dr in S)Fe[Dr]=S[Dr];Fe.theme=Ie.useContext(ThemeContext);}typeof S.className=="string"?j=Oi($.registered,ee,S.className):S.className!=null&&(j=S.className+" ");var sr=Di(p.concat(ee),$.registered,Fe);j+=$.key+"-"+sr.name,a!==void 0&&(j+=" "+a);var Br=u&&l===void 0?Ri(P):s,ur={};for(var Ye in S)u&&Ye==="as"||Br(Ye)&&(ur[Ye]=S[Ye]);return ur.className=j,w&&(ur.ref=w),Ie.createElement(Ie.Fragment,null,Ie.createElement(Om,{cache:$,serialized:sr,isStringTag:typeof P=="string"}),Ie.createElement(P,ur))});return b.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",b.defaultProps=r.defaultProps,b.__emotion_real=b,b.__emotion_base=o,b.__emotion_styles=p,b.__emotion_forwardProp=l,Object.defineProperty(b,"toString",{value:function(){return "."+a}}),b.withComponent=function(S,$){var w=e(S,St({},t,$,{shouldForwardProp:Fi(b,$,true)}));return w.apply(void 0,p)},b}};Td(Ni());var Tm=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],dr=ji.bind(null);Tm.forEach(function(e){dr[e]=dr(e);});var Cn=class{static getStyle(r){if(r)return JSON.parse(JSON.stringify(r||{}),(t,n)=>t==="backgroundColor"||t==="color"?x(n):n)}static span=r=>dr.span({...this.getStyle(r)});static div=r=>dr.div({...this.getStyle(r)});static img=r=>dr.img({...this.getStyle(r)})},mr=Cn;function Nm(e){let r=useRef(null),[t,n]=useState(false),o=A({defaultValue:{top:0,left:0}});e.rememberScrollPos&&useEffect(()=>{let f=o.read();r.current&&[f.top,f.left].some(p=>!!p)&&(r.current.scrollTop=f?.top??0,r.current.scrollLeft=f?.left??0);},e.updateScrollPosDeps),(e.rememberScrollPos||e.overflowPadding)&&useEffect(()=>{r.current&&yn(r.current)&&!t&&n(true);},[]);let i="10%",a=`linear-gradient(to bottom, transparent, black calc(${i}/4), black calc(100% - ${i}), transparent) `,l=e.decreaseYFaderPadding?"2vh":"5rem",s=k({...e,spill:e.spill==="hidden"?"hidden":e.spill||(e.rememberScrollPos?"auto":void 0),padding:e.padding||{right:e.overflowPadding&&t?e.overflowPadding:void 0,top:e.enableYFaders?l:void 0,bottom:e.enableYFaders?l:void 0}}),u=mr.div(e.css);if(!e.hide)return e.asChildren?e.children:jsx(u,{...je(e),ref:e.rememberScrollPos||e.overflowPadding?r:e.ref,draggable:e.draggable,onScroll:f=>{let p=r?.current?.scrollTop,h=r?.current?.scrollLeft;!t&&e.overflowPadding&&n(true),isEmpty(strictArray([p,h]))||o.upsert({top:p??0,left:h??0}),e.onScroll?.(f);},style:{...s,display:e.grid?"grid":s.display||"flex",flexWrap:s.flexWrap||(e.flexWrap?"wrap":void 0),gridTemplateColumns:s?.gridTemplateColumns||e.gridCols||"1fr",gridTemplateRows:s?.gridTemplateRows||e.gridRows,WebkitMaskImage:e.enableYFaders&&a,maskImage:e.enableYFaders&&a},children:e.children})}var g=Nm;c();function Um(e){let r=!!e.tint,t=mr.img(e.sx);return jsx(t,{...je(e),loading:"lazy",decoding:"async",fetchPriority:"high",src:e.src,alt:e.alt,style:{...k(e),filter:r?`drop-shadow(0px 1000px 0 ${x(e.tint)})`:void 0,transform:r&&"translateY(-1000px)",objectFit:e.noFit?"none":e.fill?"fill":e.cover?"cover":e.scaleDown?"scale-down":"contain"}})}var Ae=Um;c();function Vm(e){let r=n=>e.onItemClick?.(n),t=e.bold??e.items.some(n=>typeof n=="object");return jsx(g,{gap:e.gap||"md",width:e.width,height:e.height,children:e.items.map((n,o)=>typeof n=="string"?jsx(Pn,{index:o,item:n,bold:t,active:e.isItemActive(n),completed:e.isItemCompleted(n),onClick:r},n):jsxs(g,{width:"full",children:[jsx(Pn,{index:o,bold:t,item:n.label,active:n.nestedItems.some(i=>e.isItemActive(i)),completed:n.nestedItems.every(i=>e.isItemCompleted(i)),onClick:n.nestedItems?.[0]?()=>r(n.nestedItems[0]):void 0}),jsx(g,{width:"full",children:n.nestedItems.map((i,a)=>jsx(Pn,{index:a,fontSize:"sm",nested:true,item:i,active:e.isItemActive(i),completed:e.isItemCompleted(i),onClick:r},i))})]},n.label))})}function Pn(e){let r=Be.white,t=pe.onSurface,n=e.nested?t:pe.tertiaryContainer,o=e.active?n:Be.carlsbergGreen,i=e.active&&!e.nested?n:pe["onSurface[0.25]"],a=e.nested?pe["onSurface[0.4]"]:pe["onSurface[0.5]"],l=pe["onSurface[0.2]"],s=()=>e.onClick?.(e.item),u=IoMdCheckmark;return jsxs(g,{row:true,gap:"md",clickable:true,width:"full",fontSize:e.fontSize||"md",align:"center",onClick:s,css:{transition:"all 300ms linear",color:e.completed&&!(e.nested&&e.active)?i:e.active?n:a,borderColor:e.completed?o:e.active?n:l,":hover":e.active?void 0:{color:t,borderColor:e.completed&&!e.nested?void 0:t}},children:[jsx(g,{corners:"circle",centerContent:true,size:"1.5rem",style:{textAlign:"center",flexShrink:0},borderColor:"inherit",backgroundColor:e.completed?o:void 0,color:e.completed?r:"inherit",fade:e.nested?0:1,padding:e.completed?void 0:"md",children:e.completed?jsx(u,{fontSize:"1rem"}):jsx(C,{fontWeight:"bold",textAlign:"center",centerContent:true,text:`${e.index+1}`,style:{lineHeight:"0"}})}),jsx("span",{style:{width:"100%",fontWeight:e.bold?"bold":void 0,opacity:e.completed&&!e.active?e.nested?.5:.75:1},children:e.item}),e.completed&&e.nested&&jsx(u,{size:"1.25rem",opacity:.75})]})}var kn=Vm;c();function Jm(e){let r=i=>e.ellipsis==="native"?pi(i):e.ellipsis?ve(i):e.lineLimit?Ir(e.lineLimit,i):i,t=()=>strictArray([e.underline||e.link||e.fakeHyperlink||e.hyperlink?"underline":void 0,e.strikeThrough?"line-through":void 0]).join(" ").trim(),n=k({...e,color:e.fakeHyperlink||e.hyperlink?"hyperlink":e.color,cursor:e.link||e.hyperlink||e.clickable?"pointer":e.cursor}),o=mr.span(e.sx);return jsx(o,{...je(e),ref:e.ref,style:r({...n,width:e.ellipsis?"100%":n.width,textAlign:n.textAlign||e.textAlign||"justify",fontStyle:n.fontStyle||e.italic?"italic":void 0,textDecoration:n.textDecoration||t()||void 0}),children:e.text||e.children})}var C=Jm;c();var kt="1px",Ji=6,pr=createContext(null);function Gm(e){let r=e.defaultColumnWeight||"1fr",t=["none",0].includes(e.separatorColor)?void 0:e.separatorColor??"onSurface[0.25]",n=!!e.selectedRows,[o,i]=useState(e.defaultSelectedRows||[]),a=()=>e.columns.map(w=>{let P=typeof w=="object"?w:{};return {...P,name:fr(w),weight:"weight"in P?P.weight:r,textAlign:"textAlign"in P?P.textAlign:e.textAlign||"start"}}),l=w=>(e.selectable?`auto ${kt}`:"")+a().map(j=>{let ee=j.weight||r;return ee==="auto"?w.find(Fe=>Fe.name===j.name)?.weight||"auto":ee}).join(` ${kt} `),[s,u]=useState(l(a())),f=o.length===e.entries.length&&e.entries.length>0,p=useRef(null),h=useRef(false),y=(Array.isArray(e.children)?e.children:[e.children]).filter((w,P)=>P<2),z=()=>{let w=[];f||(w=e.entries.map((P,j)=>j)),e.onSelectedRowsChange?.(w),n||i(w);},b=w=>{let P=[...o];P.includes(w)?P=P.filter(j=>j!==w):P.push(w),e.onSelectedRowsChange?.(P),n||i(P);},S=w=>{p.current?(w.forEach((P,j)=>{(p.current.get(j)||0)<P&&p.current.set(j,P);}),$()):(p.current=w,y.length===1&&$());},$=()=>{if(h.current){h.current=false;return}let w=a().map(P=>{let j=p.current.get(P.name);return j?{...P,weight:`${j}px`}:P});h.current=true,p.current=null,u(l(w));};return jsx(pr.Provider,{value:{...e,gridCols:s,justify:e.justify||"space-between",selectedRowIndices:n?e.selectedRows:o,separatorColor:t,allRowsSelected:f,onSelectRowClick:b,onSelectAllRowsClick:z,columns:a(),padding:e.padding??"sm",columnGap:e.columnGap??e.gap??"lg",rowGap:e.rowGap??e.gap,onColWidthsComputed:S},children:jsx(g,{grid:true,gridRows:"auto auto",corners:e.corners,height:e.height,width:e.width,minHeight:e.minHeight,maxHeight:e.maxHeight,minWidth:e.minWidth,maxWidth:e.maxWidth,color:e.color,fontSize:e.fontSize,fontWeight:e.fontWeight,backgroundColor:e.backgroundColor,spill:e.spill,style:{gridTemplateAreas:'"header" "body"',...e.style||{}},children:y})})}function Km(e){let r=useContext(pr),t=e.separatorColor||r.separatorColor,n=useRef(new Map);return jsxs(g,{grid:true,gridCols:r.gridCols,gap:r.columnGap,borderColor:e.borderColor||(t!==0&&t!=="none"?[t,"bottom"]:void 0),borderWidth:kt,spill:"hidden",padding:e.padding??r.padding,corners:e.corners??(r.separatorColor?0:void 0),color:e.color,backgroundColor:e.backgroundColor,fontWeight:e.fontWeight,fontSize:e.fontSize,align:"center",width:"full",style:{gridArea:"header",justifyContent:r.justify},children:[r.selectable&&jsx(Hi,{selected:r.allRowsSelected,onClick:r.onSelectAllRowsClick}),r.columns.map((o,i,a)=>{let l=fr(o);return jsxs(Ie__default.Fragment,{children:[jsx(C,{ref:s=>{s&&(n.current.set(l,parseFloat(getComputedStyle(s).width)+Ji),i===lastIndex(a)&&r.onColWidthsComputed(n.current));},text:!e.formatColumnName||e.formatColumnName==="camelToLetter"?camelCaseToLetter(l):e.formatColumnName?.(l)??camelCaseToLetter(l),style:{flexGrow:1,textAlign:Tr("textAlign",o)}}),i!==a.length-1&&jsx(wn,{color:e.separatorColor})]},l+i)})]})}function Ym(e){let r=useContext(pr),t=useRef(new Map);return useEffect(()=>()=>{t.current.clear();},[]),jsx(g,{width:"full",gap:r.rowGap,padding:e.padding??(r.rowGap?[r.rowGap,"top"]:void 0),color:e.color,fontSize:e.fontSize,style:{paddingTop:r.rowGap,gridArea:"body"},children:r.entries.map((n,o)=>jsx(qm,{rowData:n,index:o,style:e.styleRow?.(o),styleCell:e.styleCell,onColWidthComputed:(i,a)=>{let l=t.current.get(i);(!l||a>l)&&t.current.set(i,a);},onCellRendered:i=>{let a=o===lastIndex(r.entries),l=i===lastIndex(r.columns);a&&l&&t.current.size>0&&r.onColWidthsComputed(t.current);}},o))})}function qm(e){let r=useContext(pr),t=r.selectedRowIndices.includes(e.index),n=()=>r.onSelectRowClick(e.index),{gap:o,padding:i,backgroundColor:a}=k({gap:r.columnGap,padding:r.padding??e.padding,backgroundColor:t?"onSurface[0.1]":"transparent"});return jsxs(g,{spill:"hidden",justify:"space-between",style:{gap:o,padding:i,backgroundColor:a,width:"100%",display:"grid",alignItems:"center",gridTemplateColumns:r.gridCols,...e.style,justifyContent:r.justify},children:[r.selectable&&jsx(Hi,{selected:t,onClick:n}),r.columns.map((l,s,u)=>{let f=fr(l),p=e.rowData[f],h=typeof l=="object"?l?.placeholder:void 0,y=()=>e.onCellRendered?.(s),z=s+fr(l),b=Tr("textAlign",l),S={textAlign:b,justifyContent:b,color:Tr("color",l),opacity:Tr("opacity",l,1),backgroundColor:Tr("backgroundColor",l),...e.styleCell?.({cellIndex:e.index*r.columns.length+s,columnName:f,columnIndex:s,rowIndex:e.index,data:typeof p=="string"?p:null,siblingData:{previous:s===0?null:run(e.rowData[fr(u[s-1])],$=>typeof $=="string"?$:null),next:s===u.length-1?null:run(e.rowData[fr(u[s+1])],$=>typeof $=="string"?$:null)}})||{}};return typeof l=="object"&&l.weight==="auto"?jsxs(Fragment,{children:[jsx(Qm,{data:p,style:S,onRender:y,placeholder:h,onWidthComputed:$=>e.onColWidthComputed(f,$)},z),s!==u.length-1&&jsx(wn,{})]}):jsxs(Fragment,{children:[jsx(Wi,{data:p,style:S,placeholder:h,onRender:y},z),s!==u.length-1&&jsx(wn,{})]})})]})}function Qm(e){let r=useRef(null);return useEffect(()=>{r.current?e.onWidthComputed(parseFloat(getComputedStyle(r.current).width)+Ji):console.error(new Error("Failed to compute style for an Auto cell",{cause:{data:e.data,cellRef:r}}));},[]),jsx(Wi,{noWrap:true,data:e.data,placeholder:e.placeholder,ref:r,style:e.style,onRender:e.onRender})}function Wi(e){return useEffect(()=>{e.onRender?.();},[]),typeof e.data=="string"||!e.data?jsx(C,{ref:e.ref,children:e.data||"-",fade:e.data?1:.75,style:{...e.style,whiteSpace:e.noWrap?"nowrap":void 0,width:"100%"}}):e.ref?jsx("div",{ref:e.ref,style:{...e.style,width:"100%",overflow:"hidden"},children:e.data}):e.data}function wn(e){let r=useContext(pr),t=e.color||r.separatorColor;return jsx(g,{width:kt,height:"full",backgroundColor:t==="none"||t===0?"transparent":t})}function Hi(e){let r=useContext(pr),{disableSeparator:t,separatorColor:n}=r.slotProps?.selectColumn||{},o=n||r.separatorColor;return jsx(g,{padding:t?void 0:["md","right"],borderColor:o&&!t?[o,"right"]:void 0,children:jsx(Xi,{padding:"sm",iconSize:".85rem",checked:e.selected,onChange:e.onClick})})}var fr=e=>typeof e=="string"?e:e.name,Tr=(e,r,t)=>typeof r=="object"&&e in r?r[e]:t,ef={Root:Gm,Header:Km,Body:Ym},rf=ef;c();c();function nf(e){return jsxs(g,{row:true,ref:r=>{r&&!e.scrollIntoView&&e.selected&&r.scrollIntoView(true);},gap:"sm",align:"center",fade:e.disabled?.5:1,width:e.width??"full",corners:e.corners??"md",padding:e.padding??"sm",fontSize:e.fontSize||"sm",fontWeight:e.fontWeight,cursor:e.disabled?"not-allowed":"pointer",css:{...e.sx,transition:e.sx?.transition||"all 200ms linear",color:e.color||e.sx?.color||(e.selected?"surface":"onSurface"),backgroundColor:e.backgroundColor||e.sx?.backgroundColor||(e.selected?"onSurface":void 0),":hover":e.disabled||e.selected?void 0:{...e.sx?.[":hover"],backgroundColor:e.sx?.[":hover"]?.backgroundColor||"onSurface[0.1]"}},onClick:e.disabled?void 0:e.onClick,children:[!e.hideSelectedTick&&e.selected&&jsx(LuCheck,{style:{flexShrink:0}}),e.leadingEl,jsx("span",{children:e.formatOption?.(`${e.value}`)||`${e.value}`,style:ve({maxWidth:"100%",flex:"1",alignItems:"start",textAlign:"start"})}),e.trailingEl]})}var Dn=nf;var Ki=createContext(null);function uf(e){return jsx(Ki.Provider,{value:{...e,options:e.options.map(r=>typeof r=="string"||typeof r=="number"?{value:r.toString(),leadingEl:e.defaultLeadingEl,trailingEl:e.defaultTrailingEl}:{...r,leadingEl:r.leadingEl||e.defaultLeadingEl,trailingEl:r.trailingEl||e.defaultTrailingEl})},children:jsx(gr,{...e,backdropBlur:e.backdropBlur,padding:e.padding||"md",corners:e.corners||"md",displayAction:"click",content:jsx(df,{})})})}function df(){let e=useContext(Ki),r=Yi(),[t,n]=useState(e.isSelected?e.options.findIndex((i,a)=>e.isSelected(i,a,e.options)):void 0),{triggerRerender:o}=G();return useEffect(()=>{setTimeout(()=>{o();},10);},[]),jsx(g,{spill:"auto",gap:e.gap||"sm",children:e.options.map((i,a)=>{let l=a===t,s=()=>{i.onClick?.(),e.onOptionClick?.(i,a,e.options),n(a),r.close();};return (!i||!i?.value)&&console.error(`Index ${a} is not defined in ${e.options.join()}`),jsx(Dn,{scrollIntoView:l,fontSize:e.fontSize,fontWeight:e.fontWeight,formatOption:e.formatOption,hideSelectedTick:e.hideSelectedTick,leadingEl:i.leadingEl,trailingEl:i.trailingEl,value:i?.value.toString(),disabled:i?.disabled,selected:l,onClick:s},a)})})}var Nr=uf;c();function KC(e){let r=A({defaultValue:e.defaultChecked,reactive:true}),t=e.checked??r.read(),n=i=>{if(i)return {...i||{},backgroundColor:x(i.backgroundColor),color:x(i.color),borderColor:x(i.borderColor),fontSize:i.fontSize in T?T[i.fontSize]:i.fontSize}},o=({checked:i})=>{e.disabled||(typeof e.checked!="boolean"&&r.upsert(i),e.onChange?.(i));};return jsxs(Switch.Root,{disabled:e.disabled,checked:t,size:e.size,variant:e.variant,onCheckedChange:o,children:[jsx(Switch.HiddenInput,{}),jsxs(Switch.Control,{style:n(e.trackStyle?.(t)),children:[jsx(Switch.Thumb,{style:n(e.thumbStyle?.(t)),children:e.thumbIndicator&&jsx(Switch.ThumbIndicator,{fallback:e.thumbIndicator?.off,children:e.thumbIndicator?.on})}),e.trackIndicator&&jsx(Switch.Indicator,{fallback:e.trackIndicator?.off,children:e.trackIndicator?.on})]}),jsx(Activity,{mode:e.label?"visible":"hidden",children:jsx(Switch.Label,{children:typeof e.label=="function"?e.label(t):e.label,style:n(e.labelStyle?.(t))})})]})}c();function oP(e){let[r,t]=useState(true);return useEffect(()=>{setTimeout(async()=>{e.isDataLoaded&&await new Promise(n=>{for(;!e.isDataLoaded(););n();}),t(false);},e.delay||300);},[]),jsxs(Fragment,{children:[jsx(Activity,{mode:r?"visible":"hidden",children:e.LoadingScreen?jsx(e.LoadingScreen,{}):jsx(g,{size:"full",centerContent:true,children:jsx(Spinner,{})})}),jsx(Activity,{mode:r?"hidden":"visible",children:jsx(e.children,{})})]})}c();function dP(e){let r=e.style?.borderRadius||e.corners||"md";return jsx(g,{...e,spill:e.spill||"hidden",borderColor:e.borderColor||"onSurface[0.1]",width:e.width||"full",height:e.height||".7rem",corners:r,style:{...e.style||{},boxShadow:e.style?.boxShadow||"rgba(50, 50, 93, 0.25) 0px 30px 60px -12px inset, rgba(0, 0, 0, 0.3) 0px 18px 36px -18px inset"},children:jsx(g,{corners:r,width:`${coerceIn([e.value],0,1)[0]*100}%`,height:"full",backgroundColor:e.accentColor||"seed",style:{boxShadow:"rgba(0, 0, 0, 0.35) 0px 5px 15px"}})})}c();function hP(e){return jsx(AvatarGroup,{stacking:e.stacking,children:e.children})}c();var Sf=["sm","md","lg","xl","xs"];function CP(e){let{animationDelay:r,animationDirection:t,animationDuration:n="slowest",size:o="sm"}=e,i=a=>a&&typeof a=="string"&&[...Sf].includes(a);return jsx(Spinner,{size:i(o)?o:void 0,animationDelay:r,animationDirection:t,animationDuration:n,color:x(e.color||"seed"),borderWidth:e.thickness||".1rem",style:{padding:i(o)?void 0:o}})}c();function IP(e){let r=useRef(false),[t,n]=useState(e.currentPage??0),o=e.maxIndicators||5,i=o-1,a=e.totalPages-1,l=async f=>{if(f===t)return;let p=f===t+1,h=Math.abs(f-t)>1;r.current=h?null:p,h||(p?await e.onNextClick?.():await e.onPreviousClick?.()),await e.beforePageChange?.(f),n(f),await e.afterPageChange?.(f);},s=async()=>l(t-1),u=async()=>l(t+1);return jsxs(g,{row:true,align:"center",gap:e.gap||"1rem",children:[jsx(ra,{icon:SlArrowLeft,disabled:e.disableNav||t===0,onClick:s}),jsx(g,{row:true,justify:a>i?"space-evenly":void 0,align:"center",gap:".5rem",spill:"hidden",style:{width:`calc(2.05rem * ${o})`},children:buildArray(e.totalPages,f=>{let p=t===f;return jsx(g,{cursor:e.disableNav?"default":"pointer",centerContent:true,size:"1.6rem",children:`${f+1}`,corners:"circle",fade:p?1:.5,borderColor:p?void 0:"onSurface[0.1]",backgroundColor:p?"primary":void 0,color:p?"onPrimary":void 0,fontSize:"xs",style:{userSelect:"none",transition:"transform 200ms linear",transform:`translateX(calc(${t<i?0:t===a?t-i:t-(i-1)} * 2.1rem * ${r?-1:1}))`,flexShrink:0},onClick:e.disableNav?void 0:()=>l(f)},f)})}),jsx(ra,{icon:SlArrowRight,disabled:e.disableNav||t===e.totalPages-1,onClick:u})]})}function ra(e){return jsx(E,{async:true,disabled:e.disabled,padding:0,iconSize:"1rem",leadingEl:e.icon,backgroundColor:"transparent",color:"onSurface",onClick:e.onClick})}c();var ta=createContext(null);function Ef(e){let r=()=>{e.onClose?.();};if(e.controller?.isOpen!==false)return jsx(ta.Provider,{value:{sepColor:e.sepColor||"onSurface[0.1]"},children:jsxs(Drawer.Root,{open:e.controller?.isOpen,onExitComplete:r,children:[e.triggerElement&&jsx(Drawer.Trigger,{children:e.triggerElement}),jsxs(Ff,{container:e.container,children:[jsx(Drawer.Backdrop,{pos:e.container?"absolute":void 0,boxSize:e.container?"full":void 0}),jsx(Drawer.Positioner,{pos:e.container?"absolute":void 0,boxSize:e.container?"full":void 0,children:jsxs(Drawer.Content,{style:k({...e,spill:e.spill||"hidden",backgroundColor:e.backgroundColor,padding:e.padding??"md"}),children:[jsx(Drawer.CloseTrigger,{children:jsx(CloseButton,{})}),e.children]})})]})]})})}function Rf(){let e=useContext(ta);return jsx(g,{backgroundColor:e.sepColor,width:"full",height:"1px"})}function Ff(e){return e.container?jsx(Portal,{container:e.container,children:e.children}):e.children}var ZP={Root:Ef,Header:e=>jsx(Drawer.Header,{style:k({...e,width:e.width??"full"}),children:e.children}),Body:e=>jsx(Drawer.Body,{style:k({...e,width:e.width??"full"}),children:e.children}),Footer:e=>jsx(Drawer.Footer,{style:k({...e,width:e.width??"full"}),children:e.children}),Sep:Rf,ActionTrigger:Drawer.ActionTrigger,CloseTrigger:Drawer.CloseTrigger};c();c();c();c();c();function v(e,r,t){function n(l,s){if(l._zod||Object.defineProperty(l,"_zod",{value:{def:s,constr:a,traits:new Set},enumerable:false}),l._zod.traits.has(e))return;l._zod.traits.add(e),r(l,s);let u=a.prototype,f=Object.keys(u);for(let p=0;p<f.length;p++){let h=f[p];h in l||(l[h]=u[h].bind(l));}}let o=t?.Parent??Object;class i extends o{}Object.defineProperty(i,"name",{value:e});function a(l){var s;let u=t?.Parent?new i:this;n(u,l),(s=u._zod).deferred??(s.deferred=[]);for(let f of u._zod.deferred)f();return u}return Object.defineProperty(a,"init",{value:n}),Object.defineProperty(a,Symbol.hasInstance,{value:l=>t?.Parent&&l instanceof t.Parent?true:l?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}var Pe=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");}},yr=class extends Error{constructor(r){super(`Encountered unidirectional transform during encode: ${r}`),this.name="ZodEncodeError";}},$t={};function ke(e){return $t}c();c();var _={};Id(_,{BIGINT_FORMAT_RANGES:()=>aa,Class:()=>On,NUMBER_FORMAT_RANGES:()=>Nn,aborted:()=>Me,allowsEval:()=>Rn,assert:()=>Lf,assertEqual:()=>jf,assertIs:()=>Af,assertNever:()=>Uf,assertNotEqual:()=>Nf,assignProp:()=>Ue,base64ToUint8Array:()=>la,base64urlToUint8Array:()=>op,cached:()=>Zr,captureStackTrace:()=>zt,cleanEnum:()=>np,cleanRegex:()=>Mr,clone:()=>_e,cloneDef:()=>Vf,createTransparentProxy:()=>Gf,defineLazy:()=>L,esc:()=>wt,escapeRegex:()=>Ve,extend:()=>qf,finalizeIssue:()=>be,floatSafeRemainder:()=>Tn,getElementAtPath:()=>Mf,getEnumValues:()=>Lr,getLengthableOrigin:()=>Jr,getParsedType:()=>Xf,getSizableOrigin:()=>ca,hexToUint8Array:()=>ap,isObject:()=>_r,isPlainObject:()=>Ze,issue:()=>xr,joinValues:()=>I,jsonStringifyReplacer:()=>br,merge:()=>ep,mergeDefs:()=>Le,normalizeParams:()=>D,nullish:()=>Vr,numKeys:()=>Hf,objectClone:()=>Zf,omit:()=>Yf,optionalKeys:()=>jn,partial:()=>rp,pick:()=>Kf,prefixIssues:()=>Te,primitiveTypes:()=>ia,promiseAllObject:()=>Jf,propertyKeyTypes:()=>Fn,randomString:()=>Wf,required:()=>tp,safeExtend:()=>Qf,shallowClone:()=>oa,slugify:()=>En,stringifyPrimitive:()=>B,uint8ArrayToBase64:()=>sa,uint8ArrayToBase64url:()=>ip,uint8ArrayToHex:()=>cp,unwrapMessage:()=>Ur});c();function jf(e){return e}function Nf(e){return e}function Af(e){}function Uf(e){throw new Error("Unexpected value in exhaustive check")}function Lf(e){}function Lr(e){let r=Object.values(e).filter(n=>typeof n=="number");return Object.entries(e).filter(([n,o])=>r.indexOf(+n)===-1).map(([n,o])=>o)}function I(e,r="|"){return e.map(t=>B(t)).join(r)}function br(e,r){return typeof r=="bigint"?r.toString():r}function Zr(e){return {get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function Vr(e){return e==null}function Mr(e){let r=e.startsWith("^")?1:0,t=e.endsWith("$")?e.length-1:e.length;return e.slice(r,t)}function Tn(e,r){let t=(e.toString().split(".")[1]||"").length,n=r.toString(),o=(n.split(".")[1]||"").length;if(o===0&&/\d?e-\d?/.test(n)){let s=n.match(/\d?e-(\d?)/);s?.[1]&&(o=Number.parseInt(s[1]));}let i=t>o?t:o,a=Number.parseInt(e.toFixed(i).replace(".","")),l=Number.parseInt(r.toFixed(i).replace(".",""));return a%l/10**i}var na=Symbol("evaluating");function L(e,r,t){let n;Object.defineProperty(e,r,{get(){if(n!==na)return n===void 0&&(n=na,n=t()),n},set(o){Object.defineProperty(e,r,{value:o});},configurable:true});}function Zf(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function Ue(e,r,t){Object.defineProperty(e,r,{value:t,writable:true,enumerable:true,configurable:true});}function Le(...e){let r={};for(let t of e){let n=Object.getOwnPropertyDescriptors(t);Object.assign(r,n);}return Object.defineProperties({},r)}function Vf(e){return Le(e._zod.def)}function Mf(e,r){return r?r.reduce((t,n)=>t?.[n],e):e}function Jf(e){let r=Object.keys(e),t=r.map(n=>e[n]);return Promise.all(t).then(n=>{let o={};for(let i=0;i<r.length;i++)o[r[i]]=n[i];return o})}function Wf(e=10){let r="abcdefghijklmnopqrstuvwxyz",t="";for(let n=0;n<e;n++)t+=r[Math.floor(Math.random()*r.length)];return t}function wt(e){return JSON.stringify(e)}function En(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var zt="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function _r(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var Rn=Zr(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return false;try{let e=Function;return new e(""),!0}catch{return false}});function Ze(e){if(_r(e)===false)return false;let r=e.constructor;if(r===void 0||typeof r!="function")return true;let t=r.prototype;return !(_r(t)===false||Object.prototype.hasOwnProperty.call(t,"isPrototypeOf")===false)}function oa(e){return Ze(e)?{...e}:Array.isArray(e)?[...e]:e}function Hf(e){let r=0;for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&r++;return r}var Xf=e=>{let r=typeof e;switch(r){case "undefined":return "undefined";case "string":return "string";case "number":return Number.isNaN(e)?"nan":"number";case "boolean":return "boolean";case "function":return "function";case "bigint":return "bigint";case "symbol":return "symbol";case "object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${r}`)}},Fn=new Set(["string","number","symbol"]),ia=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Ve(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function _e(e,r,t){let n=new e._zod.constr(r??e._zod.def);return (!r||t?.parent)&&(n._zod.parent=e),n}function D(e){let r=e;if(!r)return {};if(typeof r=="string")return {error:()=>r};if(r?.message!==void 0){if(r?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");r.error=r.message;}return delete r.message,typeof r.error=="string"?{...r,error:()=>r.error}:r}function Gf(e){let r;return new Proxy({},{get(t,n,o){return r??(r=e()),Reflect.get(r,n,o)},set(t,n,o,i){return r??(r=e()),Reflect.set(r,n,o,i)},has(t,n){return r??(r=e()),Reflect.has(r,n)},deleteProperty(t,n){return r??(r=e()),Reflect.deleteProperty(r,n)},ownKeys(t){return r??(r=e()),Reflect.ownKeys(r)},getOwnPropertyDescriptor(t,n){return r??(r=e()),Reflect.getOwnPropertyDescriptor(r,n)},defineProperty(t,n,o){return r??(r=e()),Reflect.defineProperty(r,n,o)}})}function B(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function jn(e){return Object.keys(e).filter(r=>e[r]._zod.optin==="optional"&&e[r]._zod.optout==="optional")}var Nn={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},aa={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Kf(e,r){let t=e._zod.def,n=Le(e._zod.def,{get shape(){let o={};for(let i in r){if(!(i in t.shape))throw new Error(`Unrecognized key: "${i}"`);r[i]&&(o[i]=t.shape[i]);}return Ue(this,"shape",o),o},checks:[]});return _e(e,n)}function Yf(e,r){let t=e._zod.def,n=Le(e._zod.def,{get shape(){let o={...e._zod.def.shape};for(let i in r){if(!(i in t.shape))throw new Error(`Unrecognized key: "${i}"`);r[i]&&delete o[i];}return Ue(this,"shape",o),o},checks:[]});return _e(e,n)}function qf(e,r){if(!Ze(r))throw new Error("Invalid input to extend: expected a plain object");let t=e._zod.def.checks;if(t&&t.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");let o=Le(e._zod.def,{get shape(){let i={...e._zod.def.shape,...r};return Ue(this,"shape",i),i},checks:[]});return _e(e,o)}function Qf(e,r){if(!Ze(r))throw new Error("Invalid input to safeExtend: expected a plain object");let t={...e._zod.def,get shape(){let n={...e._zod.def.shape,...r};return Ue(this,"shape",n),n},checks:e._zod.def.checks};return _e(e,t)}function ep(e,r){let t=Le(e._zod.def,{get shape(){let n={...e._zod.def.shape,...r._zod.def.shape};return Ue(this,"shape",n),n},get catchall(){return r._zod.def.catchall},checks:[]});return _e(e,t)}function rp(e,r,t){let n=Le(r._zod.def,{get shape(){let o=r._zod.def.shape,i={...o};if(t)for(let a in t){if(!(a in o))throw new Error(`Unrecognized key: "${a}"`);t[a]&&(i[a]=e?new e({type:"optional",innerType:o[a]}):o[a]);}else for(let a in o)i[a]=e?new e({type:"optional",innerType:o[a]}):o[a];return Ue(this,"shape",i),i},checks:[]});return _e(r,n)}function tp(e,r,t){let n=Le(r._zod.def,{get shape(){let o=r._zod.def.shape,i={...o};if(t)for(let a in t){if(!(a in i))throw new Error(`Unrecognized key: "${a}"`);t[a]&&(i[a]=new e({type:"nonoptional",innerType:o[a]}));}else for(let a in o)i[a]=new e({type:"nonoptional",innerType:o[a]});return Ue(this,"shape",i),i},checks:[]});return _e(r,n)}function Me(e,r=0){if(e.aborted===true)return true;for(let t=r;t<e.issues.length;t++)if(e.issues[t]?.continue!==true)return true;return false}function Te(e,r){return r.map(t=>{var n;return (n=t).path??(n.path=[]),t.path.unshift(e),t})}function Ur(e){return typeof e=="string"?e:e?.message}function be(e,r,t){let n={...e,path:e.path??[]};if(!e.message){let o=Ur(e.inst?._zod.def?.error?.(e))??Ur(r?.error?.(e))??Ur(t.customError?.(e))??Ur(t.localeError?.(e))??"Invalid input";n.message=o;}return delete n.inst,delete n.continue,r?.reportInput||delete n.input,n}function ca(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Jr(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function xr(...e){let[r,t,n]=e;return typeof r=="string"?{message:r,code:"custom",input:t,inst:n}:{...r}}function np(e){return Object.entries(e).filter(([r,t])=>Number.isNaN(Number.parseInt(r,10))).map(r=>r[1])}function la(e){let r=atob(e),t=new Uint8Array(r.length);for(let n=0;n<r.length;n++)t[n]=r.charCodeAt(n);return t}function sa(e){let r="";for(let t=0;t<e.length;t++)r+=String.fromCharCode(e[t]);return btoa(r)}function op(e){let r=e.replace(/-/g,"+").replace(/_/g,"/"),t="=".repeat((4-r.length%4)%4);return la(r+t)}function ip(e){return sa(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function ap(e){let r=e.replace(/^0x/,"");if(r.length%2!==0)throw new Error("Invalid hex string length");let t=new Uint8Array(r.length/2);for(let n=0;n<r.length;n+=2)t[n/2]=Number.parseInt(r.slice(n,n+2),16);return t}function cp(e){return Array.from(e).map(r=>r.toString(16).padStart(2,"0")).join("")}var On=class{constructor(...r){}};var ua=(e,r)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:false}),Object.defineProperty(e,"issues",{value:r,enumerable:false}),e.message=JSON.stringify(r,br,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:false});},Dt=v("$ZodError",ua),An=v("$ZodError",ua,{Parent:Error});function da(e,r=t=>t.message){let t={},n=[];for(let o of e.issues)o.path.length>0?(t[o.path[0]]=t[o.path[0]]||[],t[o.path[0]].push(r(o))):n.push(r(o));return {formErrors:n,fieldErrors:t}}function ma(e,r=t=>t.message){let t={_errors:[]},n=o=>{for(let i of o.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(a=>n({issues:a}));else if(i.code==="invalid_key")n({issues:i.issues});else if(i.code==="invalid_element")n({issues:i.issues});else if(i.path.length===0)t._errors.push(r(i));else {let a=t,l=0;for(;l<i.path.length;){let s=i.path[l];l===i.path.length-1?(a[s]=a[s]||{_errors:[]},a[s]._errors.push(r(i))):a[s]=a[s]||{_errors:[]},a=a[s],l++;}}};return n(e),t}var Bt=e=>(r,t,n,o)=>{let i=n?Object.assign(n,{async:false}):{async:false},a=r._zod.run({value:t,issues:[]},i);if(a instanceof Promise)throw new Pe;if(a.issues.length){let l=new(o?.Err??e)(a.issues.map(s=>be(s,i,ke())));throw zt(l,o?.callee),l}return a.value};var It=e=>async(r,t,n,o)=>{let i=n?Object.assign(n,{async:true}):{async:true},a=r._zod.run({value:t,issues:[]},i);if(a instanceof Promise&&(a=await a),a.issues.length){let l=new(o?.Err??e)(a.issues.map(s=>be(s,i,ke())));throw zt(l,o?.callee),l}return a.value};var Wr=e=>(r,t,n)=>{let o=n?{...n,async:false}:{async:false},i=r._zod.run({value:t,issues:[]},o);if(i instanceof Promise)throw new Pe;return i.issues.length?{success:false,error:new(e??Dt)(i.issues.map(a=>be(a,o,ke())))}:{success:true,data:i.value}},fa=Wr(An),Hr=e=>async(r,t,n)=>{let o=n?Object.assign(n,{async:true}):{async:true},i=r._zod.run({value:t,issues:[]},o);return i instanceof Promise&&(i=await i),i.issues.length?{success:false,error:new e(i.issues.map(a=>be(a,o,ke())))}:{success:true,data:i.value}},pa=Hr(An),ga=e=>(r,t,n)=>{let o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Bt(e)(r,t,o)};var va=e=>(r,t,n)=>Bt(e)(r,t,n);var ha=e=>async(r,t,n)=>{let o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return It(e)(r,t,o)};var ya=e=>async(r,t,n)=>It(e)(r,t,n);var _a=e=>(r,t,n)=>{let o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Wr(e)(r,t,o)};var ba=e=>(r,t,n)=>Wr(e)(r,t,n);var xa=e=>async(r,t,n)=>{let o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Hr(e)(r,t,o)};var Sa=e=>async(r,t,n)=>Hr(e)(r,t,n);c();c();c();var Ca=/^[cC][^\s-]{8,}$/,Pa=/^[0-9a-z]+$/,ka=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,$a=/^[0-9a-vA-V]{20}$/,wa=/^[A-Za-z0-9]{27}$/,za=/^[a-zA-Z0-9_-]{21}$/,Da=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/;var Ba=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Un=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/;var Ia=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/;var sp="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Oa(){return new RegExp(sp,"u")}var Ta=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Ea=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/;var Ra=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Fa=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,ja=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Ln=/^[A-Za-z0-9_-]*$/;var Na=/^\+(?:[0-9]){6,14}[0-9]$/,Aa="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",Ua=new RegExp(`^${Aa}$`);function La(e){let r="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${r}`:e.precision===0?`${r}:[0-5]\\d`:`${r}:[0-5]\\d\\.\\d{${e.precision}}`:`${r}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Za(e){return new RegExp(`^${La(e)}$`)}function Va(e){let r=La({precision:e.precision}),t=["Z"];e.local&&t.push(""),e.offset&&t.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let n=`${r}(?:${t.join("|")})`;return new RegExp(`^${Aa}T(?:${n})$`)}var Ma=e=>{let r=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${r}$`)};var Ja=/^-?\d+$/,Wa=/^-?\d+(?:\.\d+)?/;var Ha=/^[^A-Z]*$/,Xa=/^[^a-z]*$/;var Q=v("$ZodCheck",(e,r)=>{var t;e._zod??(e._zod={}),e._zod.def=r,(t=e._zod).onattach??(t.onattach=[]);}),Ga={number:"number",bigint:"bigint",object:"date"},Zn=v("$ZodCheckLessThan",(e,r)=>{Q.init(e,r);let t=Ga[typeof r.value];e._zod.onattach.push(n=>{let o=n._zod.bag,i=(r.inclusive?o.maximum:o.exclusiveMaximum)??Number.POSITIVE_INFINITY;r.value<i&&(r.inclusive?o.maximum=r.value:o.exclusiveMaximum=r.value);}),e._zod.check=n=>{(r.inclusive?n.value<=r.value:n.value<r.value)||n.issues.push({origin:t,code:"too_big",maximum:r.value,input:n.value,inclusive:r.inclusive,inst:e,continue:!r.abort});};}),Vn=v("$ZodCheckGreaterThan",(e,r)=>{Q.init(e,r);let t=Ga[typeof r.value];e._zod.onattach.push(n=>{let o=n._zod.bag,i=(r.inclusive?o.minimum:o.exclusiveMinimum)??Number.NEGATIVE_INFINITY;r.value>i&&(r.inclusive?o.minimum=r.value:o.exclusiveMinimum=r.value);}),e._zod.check=n=>{(r.inclusive?n.value>=r.value:n.value>r.value)||n.issues.push({origin:t,code:"too_small",minimum:r.value,input:n.value,inclusive:r.inclusive,inst:e,continue:!r.abort});};}),Ka=v("$ZodCheckMultipleOf",(e,r)=>{Q.init(e,r),e._zod.onattach.push(t=>{var n;(n=t._zod.bag).multipleOf??(n.multipleOf=r.value);}),e._zod.check=t=>{if(typeof t.value!=typeof r.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof t.value=="bigint"?t.value%r.value===BigInt(0):Tn(t.value,r.value)===0)||t.issues.push({origin:typeof t.value,code:"not_multiple_of",divisor:r.value,input:t.value,inst:e,continue:!r.abort});};}),Ya=v("$ZodCheckNumberFormat",(e,r)=>{Q.init(e,r),r.format=r.format||"float64";let t=r.format?.includes("int"),n=t?"int":"number",[o,i]=Nn[r.format];e._zod.onattach.push(a=>{let l=a._zod.bag;l.format=r.format,l.minimum=o,l.maximum=i,t&&(l.pattern=Ja);}),e._zod.check=a=>{let l=a.value;if(t){if(!Number.isInteger(l)){a.issues.push({expected:n,format:r.format,code:"invalid_type",continue:false,input:l,inst:e});return}if(!Number.isSafeInteger(l)){l>0?a.issues.push({input:l,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,continue:!r.abort}):a.issues.push({input:l,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,continue:!r.abort});return}}l<o&&a.issues.push({origin:"number",input:l,code:"too_small",minimum:o,inclusive:true,inst:e,continue:!r.abort}),l>i&&a.issues.push({origin:"number",input:l,code:"too_big",maximum:i,inst:e});};});var qa=v("$ZodCheckMaxLength",(e,r)=>{var t;Q.init(e,r),(t=e._zod.def).when??(t.when=n=>{let o=n.value;return !Vr(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{let o=n._zod.bag.maximum??Number.POSITIVE_INFINITY;r.maximum<o&&(n._zod.bag.maximum=r.maximum);}),e._zod.check=n=>{let o=n.value;if(o.length<=r.maximum)return;let a=Jr(o);n.issues.push({origin:a,code:"too_big",maximum:r.maximum,inclusive:true,input:o,inst:e,continue:!r.abort});};}),Qa=v("$ZodCheckMinLength",(e,r)=>{var t;Q.init(e,r),(t=e._zod.def).when??(t.when=n=>{let o=n.value;return !Vr(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{let o=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;r.minimum>o&&(n._zod.bag.minimum=r.minimum);}),e._zod.check=n=>{let o=n.value;if(o.length>=r.minimum)return;let a=Jr(o);n.issues.push({origin:a,code:"too_small",minimum:r.minimum,inclusive:true,input:o,inst:e,continue:!r.abort});};}),ec=v("$ZodCheckLengthEquals",(e,r)=>{var t;Q.init(e,r),(t=e._zod.def).when??(t.when=n=>{let o=n.value;return !Vr(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{let o=n._zod.bag;o.minimum=r.length,o.maximum=r.length,o.length=r.length;}),e._zod.check=n=>{let o=n.value,i=o.length;if(i===r.length)return;let a=Jr(o),l=i>r.length;n.issues.push({origin:a,...l?{code:"too_big",maximum:r.length}:{code:"too_small",minimum:r.length},inclusive:true,exact:true,input:n.value,inst:e,continue:!r.abort});};}),Xr=v("$ZodCheckStringFormat",(e,r)=>{var t,n;Q.init(e,r),e._zod.onattach.push(o=>{let i=o._zod.bag;i.format=r.format,r.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(r.pattern));}),r.pattern?(t=e._zod).check??(t.check=o=>{r.pattern.lastIndex=0,!r.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:r.format,input:o.value,...r.pattern?{pattern:r.pattern.toString()}:{},inst:e,continue:!r.abort});}):(n=e._zod).check??(n.check=()=>{});}),rc=v("$ZodCheckRegex",(e,r)=>{Xr.init(e,r),e._zod.check=t=>{r.pattern.lastIndex=0,!r.pattern.test(t.value)&&t.issues.push({origin:"string",code:"invalid_format",format:"regex",input:t.value,pattern:r.pattern.toString(),inst:e,continue:!r.abort});};}),tc=v("$ZodCheckLowerCase",(e,r)=>{r.pattern??(r.pattern=Ha),Xr.init(e,r);}),nc=v("$ZodCheckUpperCase",(e,r)=>{r.pattern??(r.pattern=Xa),Xr.init(e,r);}),oc=v("$ZodCheckIncludes",(e,r)=>{Q.init(e,r);let t=Ve(r.includes),n=new RegExp(typeof r.position=="number"?`^.{${r.position}}${t}`:t);r.pattern=n,e._zod.onattach.push(o=>{let i=o._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n);}),e._zod.check=o=>{o.value.includes(r.includes,r.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:r.includes,input:o.value,inst:e,continue:!r.abort});};}),ic=v("$ZodCheckStartsWith",(e,r)=>{Q.init(e,r);let t=new RegExp(`^${Ve(r.prefix)}.*`);r.pattern??(r.pattern=t),e._zod.onattach.push(n=>{let o=n._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(t);}),e._zod.check=n=>{n.value.startsWith(r.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:r.prefix,input:n.value,inst:e,continue:!r.abort});};}),ac=v("$ZodCheckEndsWith",(e,r)=>{Q.init(e,r);let t=new RegExp(`.*${Ve(r.suffix)}$`);r.pattern??(r.pattern=t),e._zod.onattach.push(n=>{let o=n._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(t);}),e._zod.check=n=>{n.value.endsWith(r.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:r.suffix,input:n.value,inst:e,continue:!r.abort});};});var cc=v("$ZodCheckOverwrite",(e,r)=>{Q.init(e,r),e._zod.check=t=>{t.value=r.tx(t.value);};});c();var Tt=class{constructor(r=[]){this.content=[],this.indent=0,this&&(this.args=r);}indented(r){this.indent+=1,r(this),this.indent-=1;}write(r){if(typeof r=="function"){r(this,{execution:"sync"}),r(this,{execution:"async"});return}let n=r.split(`
18
18
  `).filter(a=>a),o=Math.min(...n.map(a=>a.length-a.trimStart().length)),i=n.map(a=>a.slice(o)).map(a=>" ".repeat(this.indent*2)+a);for(let a of i)this.content.push(a);}compile(){let r=Function,t=this?.args,o=[...(this?.content??[""]).map(i=>` ${i}`)];return new r(...t,o.join(`
19
- `))}};c();var lc={major:4,minor:2,patch:1};var M=v("$ZodType",(e,r)=>{var t;e??(e={}),e._zod.def=r,e._zod.bag=e._zod.bag||{},e._zod.version=lc;let n=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&n.unshift(e);for(let o of n)for(let i of o._zod.onattach)i(e);if(n.length===0)(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse;});else {let o=(a,l,s)=>{let u=Me(a),f;for(let p of l){if(p._zod.def.when){if(!p._zod.def.when(a))continue}else if(u)continue;let h=a.issues.length,y=p._zod.check(a);if(y instanceof Promise&&s?.async===false)throw new Pe;if(f||y instanceof Promise)f=(f??Promise.resolve()).then(async()=>{await y,a.issues.length!==h&&(u||(u=Me(a,h)));});else {if(a.issues.length===h)continue;u||(u=Me(a,h));}}return f?f.then(()=>a):a},i=(a,l,s)=>{if(Me(a))return a.aborted=true,a;let u=o(l,n,s);if(u instanceof Promise){if(s.async===false)throw new Pe;return u.then(f=>e._zod.parse(f,s))}return e._zod.parse(u,s)};e._zod.run=(a,l)=>{if(l.skipChecks)return e._zod.parse(a,l);if(l.direction==="backward"){let u=e._zod.parse({value:a.value,issues:[]},{...l,skipChecks:true});return u instanceof Promise?u.then(f=>i(f,a,l)):i(u,a,l)}let s=e._zod.parse(a,l);if(s instanceof Promise){if(l.async===false)throw new Pe;return s.then(u=>o(u,n,l))}return o(s,n,l)};}e["~standard"]={validate:o=>{try{let i=ma(e,o);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return fa(e,o).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1};}),Gr=v("$ZodString",(e,r)=>{M.init(e,r),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Va(e._zod.bag),e._zod.parse=(t,n)=>{if(r.coerce)try{t.value=String(t.value);}catch{}return typeof t.value=="string"||t.issues.push({expected:"string",code:"invalid_type",input:t.value,inst:e}),t};}),Z=v("$ZodStringFormat",(e,r)=>{Xr.init(e,r),Gr.init(e,r);}),hc=v("$ZodGUID",(e,r)=>{r.pattern??(r.pattern=Da),Z.init(e,r);}),yc=v("$ZodUUID",(e,r)=>{if(r.version){let n={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[r.version];if(n===void 0)throw new Error(`Invalid UUID version: "${r.version}"`);r.pattern??(r.pattern=Un(n));}else r.pattern??(r.pattern=Un());Z.init(e,r);}),_c=v("$ZodEmail",(e,r)=>{r.pattern??(r.pattern=Ia),Z.init(e,r);}),bc=v("$ZodURL",(e,r)=>{Z.init(e,r),e._zod.check=t=>{try{let n=t.value.trim(),o=new URL(n);r.hostname&&(r.hostname.lastIndex=0,r.hostname.test(o.hostname)||t.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:r.hostname.source,input:t.value,inst:e,continue:!r.abort})),r.protocol&&(r.protocol.lastIndex=0,r.protocol.test(o.protocol.endsWith(":")?o.protocol.slice(0,-1):o.protocol)||t.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:r.protocol.source,input:t.value,inst:e,continue:!r.abort})),r.normalize?t.value=o.href:t.value=n;return}catch{t.issues.push({code:"invalid_format",format:"url",input:t.value,inst:e,continue:!r.abort});}};}),xc=v("$ZodEmoji",(e,r)=>{r.pattern??(r.pattern=Ba()),Z.init(e,r);}),Sc=v("$ZodNanoID",(e,r)=>{r.pattern??(r.pattern=wa),Z.init(e,r);}),Cc=v("$ZodCUID",(e,r)=>{r.pattern??(r.pattern=Sa),Z.init(e,r);}),Pc=v("$ZodCUID2",(e,r)=>{r.pattern??(r.pattern=Ca),Z.init(e,r);}),kc=v("$ZodULID",(e,r)=>{r.pattern??(r.pattern=Pa),Z.init(e,r);}),$c=v("$ZodXID",(e,r)=>{r.pattern??(r.pattern=ka),Z.init(e,r);}),wc=v("$ZodKSUID",(e,r)=>{r.pattern??(r.pattern=$a),Z.init(e,r);}),zc=v("$ZodISODateTime",(e,r)=>{r.pattern??(r.pattern=Za(r)),Z.init(e,r);}),Dc=v("$ZodISODate",(e,r)=>{r.pattern??(r.pattern=Aa),Z.init(e,r);}),Ic=v("$ZodISOTime",(e,r)=>{r.pattern??(r.pattern=La(r)),Z.init(e,r);}),Bc=v("$ZodISODuration",(e,r)=>{r.pattern??(r.pattern=za),Z.init(e,r);}),Oc=v("$ZodIPv4",(e,r)=>{r.pattern??(r.pattern=Oa),Z.init(e,r),e._zod.bag.format="ipv4";}),Tc=v("$ZodIPv6",(e,r)=>{r.pattern??(r.pattern=Ta),Z.init(e,r),e._zod.bag.format="ipv6",e._zod.check=t=>{try{new URL(`http://[${t.value}]`);}catch{t.issues.push({code:"invalid_format",format:"ipv6",input:t.value,inst:e,continue:!r.abort});}};});var Ec=v("$ZodCIDRv4",(e,r)=>{r.pattern??(r.pattern=Ea),Z.init(e,r);}),Rc=v("$ZodCIDRv6",(e,r)=>{r.pattern??(r.pattern=Ra),Z.init(e,r),e._zod.check=t=>{let n=t.value.split("/");try{if(n.length!==2)throw new Error;let[o,i]=n;if(!i)throw new Error;let a=Number(i);if(`${a}`!==i)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${o}]`);}catch{t.issues.push({code:"invalid_format",format:"cidrv6",input:t.value,inst:e,continue:!r.abort});}};});function Fc(e){if(e==="")return true;if(e.length%4!==0)return false;try{return atob(e),!0}catch{return false}}var jc=v("$ZodBase64",(e,r)=>{r.pattern??(r.pattern=Fa),Z.init(e,r),e._zod.bag.contentEncoding="base64",e._zod.check=t=>{Fc(t.value)||t.issues.push({code:"invalid_format",format:"base64",input:t.value,inst:e,continue:!r.abort});};});function sp(e){if(!Ln.test(e))return false;let r=e.replace(/[-_]/g,n=>n==="-"?"+":"/"),t=r.padEnd(Math.ceil(r.length/4)*4,"=");return Fc(t)}var Nc=v("$ZodBase64URL",(e,r)=>{r.pattern??(r.pattern=Ln),Z.init(e,r),e._zod.bag.contentEncoding="base64url",e._zod.check=t=>{sp(t.value)||t.issues.push({code:"invalid_format",format:"base64url",input:t.value,inst:e,continue:!r.abort});};}),Ac=v("$ZodE164",(e,r)=>{r.pattern??(r.pattern=ja),Z.init(e,r);});function up(e,r=null){try{let t=e.split(".");if(t.length!==3)return !1;let[n]=t;if(!n)return !1;let o=JSON.parse(atob(n));return !("typ"in o&&o?.typ!=="JWT"||!o.alg||r&&(!("alg"in o)||o.alg!==r))}catch{return false}}var Uc=v("$ZodJWT",(e,r)=>{Z.init(e,r),e._zod.check=t=>{up(t.value,r.alg)||t.issues.push({code:"invalid_format",format:"jwt",input:t.value,inst:e,continue:!r.abort});};});var Jn=v("$ZodNumber",(e,r)=>{M.init(e,r),e._zod.pattern=e._zod.bag.pattern??Ja,e._zod.parse=(t,n)=>{if(r.coerce)try{t.value=Number(t.value);}catch{}let o=t.value;if(typeof o=="number"&&!Number.isNaN(o)&&Number.isFinite(o))return t;let i=typeof o=="number"?Number.isNaN(o)?"NaN":Number.isFinite(o)?void 0:"Infinity":void 0;return t.issues.push({expected:"number",code:"invalid_type",input:o,inst:e,...i?{received:i}:{}}),t};}),Lc=v("$ZodNumberFormat",(e,r)=>{Ka.init(e,r),Jn.init(e,r);});var Zc=v("$ZodUnknown",(e,r)=>{M.init(e,r),e._zod.parse=t=>t;}),Vc=v("$ZodNever",(e,r)=>{M.init(e,r),e._zod.parse=(t,n)=>(t.issues.push({expected:"never",code:"invalid_type",input:t.value,inst:e}),t);});function sc(e,r,t){e.issues.length&&r.issues.push(...Te(t,e.issues)),r.value[t]=e.value;}var Mc=v("$ZodArray",(e,r)=>{M.init(e,r),e._zod.parse=(t,n)=>{let o=t.value;if(!Array.isArray(o))return t.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),t;t.value=Array(o.length);let i=[];for(let a=0;a<o.length;a++){let l=o[a],s=r.element._zod.run({value:l,issues:[]},n);s instanceof Promise?i.push(s.then(u=>sc(u,t,a))):sc(s,t,a);}return i.length?Promise.all(i).then(()=>t):t};});function Rt(e,r,t,n){e.issues.length&&r.issues.push(...Te(t,e.issues)),e.value===void 0?t in n&&(r.value[t]=void 0):r.value[t]=e.value;}function Jc(e){let r=Object.keys(e.shape);for(let n of r)if(!e.shape?.[n]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${n}": expected a Zod schema`);let t=jn(e.shape);return {...e,keys:r,keySet:new Set(r),numKeys:r.length,optionalKeys:new Set(t)}}function Wc(e,r,t,n,o,i){let a=[],l=o.keySet,s=o.catchall._zod,u=s.def.type;for(let f in r){if(l.has(f))continue;if(u==="never"){a.push(f);continue}let p=s.run({value:r[f],issues:[]},n);p instanceof Promise?e.push(p.then(h=>Rt(h,t,f,r))):Rt(p,t,f,r);}return a.length&&t.issues.push({code:"unrecognized_keys",keys:a,input:r,inst:i}),e.length?Promise.all(e).then(()=>t):t}var dp=v("$ZodObject",(e,r)=>{if(M.init(e,r),!Object.getOwnPropertyDescriptor(r,"shape")?.get){let l=r.shape;Object.defineProperty(r,"shape",{get:()=>{let s={...l};return Object.defineProperty(r,"shape",{value:s}),s}});}let n=Zr(()=>Jc(r));U(e._zod,"propValues",()=>{let l=r.shape,s={};for(let u in l){let f=l[u]._zod;if(f.values){s[u]??(s[u]=new Set);for(let p of f.values)s[u].add(p);}}return s});let o=_r,i=r.catchall,a;e._zod.parse=(l,s)=>{a??(a=n.value);let u=l.value;if(!o(u))return l.issues.push({expected:"object",code:"invalid_type",input:u,inst:e}),l;l.value={};let f=[],p=a.shape;for(let h of a.keys){let z=p[h]._zod.run({value:u[h],issues:[]},s);z instanceof Promise?f.push(z.then(b=>Rt(b,l,h,u))):Rt(z,l,h,u);}return i?Wc(f,u,l,s,n.value,e):f.length?Promise.all(f).then(()=>l):l};}),Hc=v("$ZodObjectJIT",(e,r)=>{dp.init(e,r);let t=e._zod.parse,n=Zr(()=>Jc(r)),o=h=>{let y=new Tt(["shape","payload","ctx"]),z=n.value,b=P=>{let j=wt(P);return `shape[${j}]._zod.run({ value: input[${j}], issues: [] }, ctx)`};y.write("const input = payload.value;");let S=Object.create(null),$=0;for(let P of z.keys)S[P]=`key_${$++}`;y.write("const newResult = {};");for(let P of z.keys){let j=S[P],ee=wt(P);y.write(`const ${j} = ${b(P)};`),y.write(`
19
+ `))}};c();var sc={major:4,minor:2,patch:1};var J=v("$ZodType",(e,r)=>{var t;e??(e={}),e._zod.def=r,e._zod.bag=e._zod.bag||{},e._zod.version=sc;let n=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&n.unshift(e);for(let o of n)for(let i of o._zod.onattach)i(e);if(n.length===0)(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse;});else {let o=(a,l,s)=>{let u=Me(a),f;for(let p of l){if(p._zod.def.when){if(!p._zod.def.when(a))continue}else if(u)continue;let h=a.issues.length,y=p._zod.check(a);if(y instanceof Promise&&s?.async===false)throw new Pe;if(f||y instanceof Promise)f=(f??Promise.resolve()).then(async()=>{await y,a.issues.length!==h&&(u||(u=Me(a,h)));});else {if(a.issues.length===h)continue;u||(u=Me(a,h));}}return f?f.then(()=>a):a},i=(a,l,s)=>{if(Me(a))return a.aborted=true,a;let u=o(l,n,s);if(u instanceof Promise){if(s.async===false)throw new Pe;return u.then(f=>e._zod.parse(f,s))}return e._zod.parse(u,s)};e._zod.run=(a,l)=>{if(l.skipChecks)return e._zod.parse(a,l);if(l.direction==="backward"){let u=e._zod.parse({value:a.value,issues:[]},{...l,skipChecks:true});return u instanceof Promise?u.then(f=>i(f,a,l)):i(u,a,l)}let s=e._zod.parse(a,l);if(s instanceof Promise){if(l.async===false)throw new Pe;return s.then(u=>o(u,n,l))}return o(s,n,l)};}e["~standard"]={validate:o=>{try{let i=fa(e,o);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return pa(e,o).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1};}),Gr=v("$ZodString",(e,r)=>{J.init(e,r),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Ma(e._zod.bag),e._zod.parse=(t,n)=>{if(r.coerce)try{t.value=String(t.value);}catch{}return typeof t.value=="string"||t.issues.push({expected:"string",code:"invalid_type",input:t.value,inst:e}),t};}),V=v("$ZodStringFormat",(e,r)=>{Xr.init(e,r),Gr.init(e,r);}),yc=v("$ZodGUID",(e,r)=>{r.pattern??(r.pattern=Ba),V.init(e,r);}),_c=v("$ZodUUID",(e,r)=>{if(r.version){let n={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[r.version];if(n===void 0)throw new Error(`Invalid UUID version: "${r.version}"`);r.pattern??(r.pattern=Un(n));}else r.pattern??(r.pattern=Un());V.init(e,r);}),bc=v("$ZodEmail",(e,r)=>{r.pattern??(r.pattern=Ia),V.init(e,r);}),xc=v("$ZodURL",(e,r)=>{V.init(e,r),e._zod.check=t=>{try{let n=t.value.trim(),o=new URL(n);r.hostname&&(r.hostname.lastIndex=0,r.hostname.test(o.hostname)||t.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:r.hostname.source,input:t.value,inst:e,continue:!r.abort})),r.protocol&&(r.protocol.lastIndex=0,r.protocol.test(o.protocol.endsWith(":")?o.protocol.slice(0,-1):o.protocol)||t.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:r.protocol.source,input:t.value,inst:e,continue:!r.abort})),r.normalize?t.value=o.href:t.value=n;return}catch{t.issues.push({code:"invalid_format",format:"url",input:t.value,inst:e,continue:!r.abort});}};}),Sc=v("$ZodEmoji",(e,r)=>{r.pattern??(r.pattern=Oa()),V.init(e,r);}),Cc=v("$ZodNanoID",(e,r)=>{r.pattern??(r.pattern=za),V.init(e,r);}),Pc=v("$ZodCUID",(e,r)=>{r.pattern??(r.pattern=Ca),V.init(e,r);}),kc=v("$ZodCUID2",(e,r)=>{r.pattern??(r.pattern=Pa),V.init(e,r);}),$c=v("$ZodULID",(e,r)=>{r.pattern??(r.pattern=ka),V.init(e,r);}),wc=v("$ZodXID",(e,r)=>{r.pattern??(r.pattern=$a),V.init(e,r);}),zc=v("$ZodKSUID",(e,r)=>{r.pattern??(r.pattern=wa),V.init(e,r);}),Dc=v("$ZodISODateTime",(e,r)=>{r.pattern??(r.pattern=Va(r)),V.init(e,r);}),Bc=v("$ZodISODate",(e,r)=>{r.pattern??(r.pattern=Ua),V.init(e,r);}),Ic=v("$ZodISOTime",(e,r)=>{r.pattern??(r.pattern=Za(r)),V.init(e,r);}),Oc=v("$ZodISODuration",(e,r)=>{r.pattern??(r.pattern=Da),V.init(e,r);}),Tc=v("$ZodIPv4",(e,r)=>{r.pattern??(r.pattern=Ta),V.init(e,r),e._zod.bag.format="ipv4";}),Ec=v("$ZodIPv6",(e,r)=>{r.pattern??(r.pattern=Ea),V.init(e,r),e._zod.bag.format="ipv6",e._zod.check=t=>{try{new URL(`http://[${t.value}]`);}catch{t.issues.push({code:"invalid_format",format:"ipv6",input:t.value,inst:e,continue:!r.abort});}};});var Rc=v("$ZodCIDRv4",(e,r)=>{r.pattern??(r.pattern=Ra),V.init(e,r);}),Fc=v("$ZodCIDRv6",(e,r)=>{r.pattern??(r.pattern=Fa),V.init(e,r),e._zod.check=t=>{let n=t.value.split("/");try{if(n.length!==2)throw new Error;let[o,i]=n;if(!i)throw new Error;let a=Number(i);if(`${a}`!==i)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${o}]`);}catch{t.issues.push({code:"invalid_format",format:"cidrv6",input:t.value,inst:e,continue:!r.abort});}};});function jc(e){if(e==="")return true;if(e.length%4!==0)return false;try{return atob(e),!0}catch{return false}}var Nc=v("$ZodBase64",(e,r)=>{r.pattern??(r.pattern=ja),V.init(e,r),e._zod.bag.contentEncoding="base64",e._zod.check=t=>{jc(t.value)||t.issues.push({code:"invalid_format",format:"base64",input:t.value,inst:e,continue:!r.abort});};});function up(e){if(!Ln.test(e))return false;let r=e.replace(/[-_]/g,n=>n==="-"?"+":"/"),t=r.padEnd(Math.ceil(r.length/4)*4,"=");return jc(t)}var Ac=v("$ZodBase64URL",(e,r)=>{r.pattern??(r.pattern=Ln),V.init(e,r),e._zod.bag.contentEncoding="base64url",e._zod.check=t=>{up(t.value)||t.issues.push({code:"invalid_format",format:"base64url",input:t.value,inst:e,continue:!r.abort});};}),Uc=v("$ZodE164",(e,r)=>{r.pattern??(r.pattern=Na),V.init(e,r);});function dp(e,r=null){try{let t=e.split(".");if(t.length!==3)return !1;let[n]=t;if(!n)return !1;let o=JSON.parse(atob(n));return !("typ"in o&&o?.typ!=="JWT"||!o.alg||r&&(!("alg"in o)||o.alg!==r))}catch{return false}}var Lc=v("$ZodJWT",(e,r)=>{V.init(e,r),e._zod.check=t=>{dp(t.value,r.alg)||t.issues.push({code:"invalid_format",format:"jwt",input:t.value,inst:e,continue:!r.abort});};});var Jn=v("$ZodNumber",(e,r)=>{J.init(e,r),e._zod.pattern=e._zod.bag.pattern??Wa,e._zod.parse=(t,n)=>{if(r.coerce)try{t.value=Number(t.value);}catch{}let o=t.value;if(typeof o=="number"&&!Number.isNaN(o)&&Number.isFinite(o))return t;let i=typeof o=="number"?Number.isNaN(o)?"NaN":Number.isFinite(o)?void 0:"Infinity":void 0;return t.issues.push({expected:"number",code:"invalid_type",input:o,inst:e,...i?{received:i}:{}}),t};}),Zc=v("$ZodNumberFormat",(e,r)=>{Ya.init(e,r),Jn.init(e,r);});var Vc=v("$ZodUnknown",(e,r)=>{J.init(e,r),e._zod.parse=t=>t;}),Mc=v("$ZodNever",(e,r)=>{J.init(e,r),e._zod.parse=(t,n)=>(t.issues.push({expected:"never",code:"invalid_type",input:t.value,inst:e}),t);});function uc(e,r,t){e.issues.length&&r.issues.push(...Te(t,e.issues)),r.value[t]=e.value;}var Jc=v("$ZodArray",(e,r)=>{J.init(e,r),e._zod.parse=(t,n)=>{let o=t.value;if(!Array.isArray(o))return t.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),t;t.value=Array(o.length);let i=[];for(let a=0;a<o.length;a++){let l=o[a],s=r.element._zod.run({value:l,issues:[]},n);s instanceof Promise?i.push(s.then(u=>uc(u,t,a))):uc(s,t,a);}return i.length?Promise.all(i).then(()=>t):t};});function Rt(e,r,t,n){e.issues.length&&r.issues.push(...Te(t,e.issues)),e.value===void 0?t in n&&(r.value[t]=void 0):r.value[t]=e.value;}function Wc(e){let r=Object.keys(e.shape);for(let n of r)if(!e.shape?.[n]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${n}": expected a Zod schema`);let t=jn(e.shape);return {...e,keys:r,keySet:new Set(r),numKeys:r.length,optionalKeys:new Set(t)}}function Hc(e,r,t,n,o,i){let a=[],l=o.keySet,s=o.catchall._zod,u=s.def.type;for(let f in r){if(l.has(f))continue;if(u==="never"){a.push(f);continue}let p=s.run({value:r[f],issues:[]},n);p instanceof Promise?e.push(p.then(h=>Rt(h,t,f,r))):Rt(p,t,f,r);}return a.length&&t.issues.push({code:"unrecognized_keys",keys:a,input:r,inst:i}),e.length?Promise.all(e).then(()=>t):t}var mp=v("$ZodObject",(e,r)=>{if(J.init(e,r),!Object.getOwnPropertyDescriptor(r,"shape")?.get){let l=r.shape;Object.defineProperty(r,"shape",{get:()=>{let s={...l};return Object.defineProperty(r,"shape",{value:s}),s}});}let n=Zr(()=>Wc(r));L(e._zod,"propValues",()=>{let l=r.shape,s={};for(let u in l){let f=l[u]._zod;if(f.values){s[u]??(s[u]=new Set);for(let p of f.values)s[u].add(p);}}return s});let o=_r,i=r.catchall,a;e._zod.parse=(l,s)=>{a??(a=n.value);let u=l.value;if(!o(u))return l.issues.push({expected:"object",code:"invalid_type",input:u,inst:e}),l;l.value={};let f=[],p=a.shape;for(let h of a.keys){let z=p[h]._zod.run({value:u[h],issues:[]},s);z instanceof Promise?f.push(z.then(b=>Rt(b,l,h,u))):Rt(z,l,h,u);}return i?Hc(f,u,l,s,n.value,e):f.length?Promise.all(f).then(()=>l):l};}),Xc=v("$ZodObjectJIT",(e,r)=>{mp.init(e,r);let t=e._zod.parse,n=Zr(()=>Wc(r)),o=h=>{let y=new Tt(["shape","payload","ctx"]),z=n.value,b=P=>{let j=wt(P);return `shape[${j}]._zod.run({ value: input[${j}], issues: [] }, ctx)`};y.write("const input = payload.value;");let S=Object.create(null),$=0;for(let P of z.keys)S[P]=`key_${$++}`;y.write("const newResult = {};");for(let P of z.keys){let j=S[P],ee=wt(P);y.write(`const ${j} = ${b(P)};`),y.write(`
20
20
  if (${j}.issues.length) {
21
21
  payload.issues = payload.issues.concat(${j}.issues.map(iss => ({
22
22
  ...iss,
@@ -33,13 +33,13 @@ import'path';import'url';import {ClientOnly,IconButton,Skeleton,Span,Drawer,Tool
33
33
  newResult[${ee}] = ${j}.value;
34
34
  }
35
35
 
36
- `);}y.write("payload.value = newResult;"),y.write("return payload;");let w=y.compile();return (P,j)=>w(h,P,j)},i,a=_r,l=!$t.jitless,u=l&&Rn.value,f=r.catchall,p;e._zod.parse=(h,y)=>{p??(p=n.value);let z=h.value;return a(z)?l&&u&&y?.async===false&&y.jitless!==true?(i||(i=o(r.shape)),h=i(h,y),f?Wc([],z,h,y,p,e):h):t(h,y):(h.issues.push({expected:"object",code:"invalid_type",input:z,inst:e}),h)};});function uc(e,r,t,n){for(let i of e)if(i.issues.length===0)return r.value=i.value,r;let o=e.filter(i=>!Me(i));return o.length===1?(r.value=o[0].value,o[0]):(r.issues.push({code:"invalid_union",input:r.value,inst:t,errors:e.map(i=>i.issues.map(a=>be(a,n,ke())))}),r)}var Xc=v("$ZodUnion",(e,r)=>{M.init(e,r),U(e._zod,"optin",()=>r.options.some(o=>o._zod.optin==="optional")?"optional":void 0),U(e._zod,"optout",()=>r.options.some(o=>o._zod.optout==="optional")?"optional":void 0),U(e._zod,"values",()=>{if(r.options.every(o=>o._zod.values))return new Set(r.options.flatMap(o=>Array.from(o._zod.values)))}),U(e._zod,"pattern",()=>{if(r.options.every(o=>o._zod.pattern)){let o=r.options.map(i=>i._zod.pattern);return new RegExp(`^(${o.map(i=>Mr(i.source)).join("|")})$`)}});let t=r.options.length===1,n=r.options[0]._zod.run;e._zod.parse=(o,i)=>{if(t)return n(o,i);let a=false,l=[];for(let s of r.options){let u=s._zod.run({value:o.value,issues:[]},i);if(u instanceof Promise)l.push(u),a=true;else {if(u.issues.length===0)return u;l.push(u);}}return a?Promise.all(l).then(s=>uc(s,o,e,i)):uc(l,o,e,i)};});var Gc=v("$ZodIntersection",(e,r)=>{M.init(e,r),e._zod.parse=(t,n)=>{let o=t.value,i=r.left._zod.run({value:o,issues:[]},n),a=r.right._zod.run({value:o,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([s,u])=>dc(t,s,u)):dc(t,i,a)};});function Mn(e,r){if(e===r)return {valid:true,data:e};if(e instanceof Date&&r instanceof Date&&+e==+r)return {valid:true,data:e};if(Ze(e)&&Ze(r)){let t=Object.keys(r),n=Object.keys(e).filter(i=>t.indexOf(i)!==-1),o={...e,...r};for(let i of n){let a=Mn(e[i],r[i]);if(!a.valid)return {valid:false,mergeErrorPath:[i,...a.mergeErrorPath]};o[i]=a.data;}return {valid:true,data:o}}if(Array.isArray(e)&&Array.isArray(r)){if(e.length!==r.length)return {valid:false,mergeErrorPath:[]};let t=[];for(let n=0;n<e.length;n++){let o=e[n],i=r[n],a=Mn(o,i);if(!a.valid)return {valid:false,mergeErrorPath:[n,...a.mergeErrorPath]};t.push(a.data);}return {valid:true,data:t}}return {valid:false,mergeErrorPath:[]}}function dc(e,r,t){if(r.issues.length&&e.issues.push(...r.issues),t.issues.length&&e.issues.push(...t.issues),Me(e))return e;let n=Mn(r.value,t.value);if(!n.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(n.mergeErrorPath)}`);return e.value=n.data,e}var Kc=v("$ZodRecord",(e,r)=>{M.init(e,r),e._zod.parse=(t,n)=>{let o=t.value;if(!Ze(o))return t.issues.push({expected:"record",code:"invalid_type",input:o,inst:e}),t;let i=[],a=r.keyType._zod.values;if(a){t.value={};let l=new Set;for(let u of a)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){l.add(typeof u=="number"?u.toString():u);let f=r.valueType._zod.run({value:o[u],issues:[]},n);f instanceof Promise?i.push(f.then(p=>{p.issues.length&&t.issues.push(...Te(u,p.issues)),t.value[u]=p.value;})):(f.issues.length&&t.issues.push(...Te(u,f.issues)),t.value[u]=f.value);}let s;for(let u in o)l.has(u)||(s=s??[],s.push(u));s&&s.length>0&&t.issues.push({code:"unrecognized_keys",input:o,inst:e,keys:s});}else {t.value={};for(let l of Reflect.ownKeys(o)){if(l==="__proto__")continue;let s=r.keyType._zod.run({value:l,issues:[]},n);if(s instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(s.issues.length){r.mode==="loose"?t.value[l]=o[l]:t.issues.push({code:"invalid_key",origin:"record",issues:s.issues.map(f=>be(f,n,ke())),input:l,path:[l],inst:e});continue}let u=r.valueType._zod.run({value:o[l],issues:[]},n);u instanceof Promise?i.push(u.then(f=>{f.issues.length&&t.issues.push(...Te(l,f.issues)),t.value[s.value]=f.value;})):(u.issues.length&&t.issues.push(...Te(l,u.issues)),t.value[s.value]=u.value);}}return i.length?Promise.all(i).then(()=>t):t};});var Yc=v("$ZodEnum",(e,r)=>{M.init(e,r);let t=Lr(r.entries),n=new Set(t);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.filter(o=>Fn.has(typeof o)).map(o=>typeof o=="string"?Ve(o):o.toString()).join("|")})$`),e._zod.parse=(o,i)=>{let a=o.value;return n.has(a)||o.issues.push({code:"invalid_value",values:t,input:a,inst:e}),o};});var qc=v("$ZodTransform",(e,r)=>{M.init(e,r),e._zod.parse=(t,n)=>{if(n.direction==="backward")throw new yr(e.constructor.name);let o=r.transform(t.value,t);if(n.async)return (o instanceof Promise?o:Promise.resolve(o)).then(a=>(t.value=a,t));if(o instanceof Promise)throw new Pe;return t.value=o,t};});function mc(e,r){return e.issues.length&&r===void 0?{issues:[],value:void 0}:e}var Qc=v("$ZodOptional",(e,r)=>{M.init(e,r),e._zod.optin="optional",e._zod.optout="optional",U(e._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,void 0]):void 0),U(e._zod,"pattern",()=>{let t=r.innerType._zod.pattern;return t?new RegExp(`^(${Mr(t.source)})?$`):void 0}),e._zod.parse=(t,n)=>{if(r.innerType._zod.optin==="optional"){let o=r.innerType._zod.run(t,n);return o instanceof Promise?o.then(i=>mc(i,t.value)):mc(o,t.value)}return t.value===void 0?t:r.innerType._zod.run(t,n)};}),el=v("$ZodNullable",(e,r)=>{M.init(e,r),U(e._zod,"optin",()=>r.innerType._zod.optin),U(e._zod,"optout",()=>r.innerType._zod.optout),U(e._zod,"pattern",()=>{let t=r.innerType._zod.pattern;return t?new RegExp(`^(${Mr(t.source)}|null)$`):void 0}),U(e._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,null]):void 0),e._zod.parse=(t,n)=>t.value===null?t:r.innerType._zod.run(t,n);}),rl=v("$ZodDefault",(e,r)=>{M.init(e,r),e._zod.optin="optional",U(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(t,n)=>{if(n.direction==="backward")return r.innerType._zod.run(t,n);if(t.value===void 0)return t.value=r.defaultValue,t;let o=r.innerType._zod.run(t,n);return o instanceof Promise?o.then(i=>fc(i,r)):fc(o,r)};});function fc(e,r){return e.value===void 0&&(e.value=r.defaultValue),e}var tl=v("$ZodPrefault",(e,r)=>{M.init(e,r),e._zod.optin="optional",U(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(t,n)=>(n.direction==="backward"||t.value===void 0&&(t.value=r.defaultValue),r.innerType._zod.run(t,n));}),nl=v("$ZodNonOptional",(e,r)=>{M.init(e,r),U(e._zod,"values",()=>{let t=r.innerType._zod.values;return t?new Set([...t].filter(n=>n!==void 0)):void 0}),e._zod.parse=(t,n)=>{let o=r.innerType._zod.run(t,n);return o instanceof Promise?o.then(i=>pc(i,e)):pc(o,e)};});function pc(e,r){return !e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:r}),e}var ol=v("$ZodCatch",(e,r)=>{M.init(e,r),U(e._zod,"optin",()=>r.innerType._zod.optin),U(e._zod,"optout",()=>r.innerType._zod.optout),U(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(t,n)=>{if(n.direction==="backward")return r.innerType._zod.run(t,n);let o=r.innerType._zod.run(t,n);return o instanceof Promise?o.then(i=>(t.value=i.value,i.issues.length&&(t.value=r.catchValue({...t,error:{issues:i.issues.map(a=>be(a,n,ke()))},input:t.value}),t.issues=[]),t)):(t.value=o.value,o.issues.length&&(t.value=r.catchValue({...t,error:{issues:o.issues.map(i=>be(i,n,ke()))},input:t.value}),t.issues=[]),t)};});var il=v("$ZodPipe",(e,r)=>{M.init(e,r),U(e._zod,"values",()=>r.in._zod.values),U(e._zod,"optin",()=>r.in._zod.optin),U(e._zod,"optout",()=>r.out._zod.optout),U(e._zod,"propValues",()=>r.in._zod.propValues),e._zod.parse=(t,n)=>{if(n.direction==="backward"){let i=r.out._zod.run(t,n);return i instanceof Promise?i.then(a=>Et(a,r.in,n)):Et(i,r.in,n)}let o=r.in._zod.run(t,n);return o instanceof Promise?o.then(i=>Et(i,r.out,n)):Et(o,r.out,n)};});function Et(e,r,t){return e.issues.length?(e.aborted=true,e):r._zod.run({value:e.value,issues:e.issues},t)}var al=v("$ZodReadonly",(e,r)=>{M.init(e,r),U(e._zod,"propValues",()=>r.innerType._zod.propValues),U(e._zod,"values",()=>r.innerType._zod.values),U(e._zod,"optin",()=>r.innerType?._zod?.optin),U(e._zod,"optout",()=>r.innerType?._zod?.optout),e._zod.parse=(t,n)=>{if(n.direction==="backward")return r.innerType._zod.run(t,n);let o=r.innerType._zod.run(t,n);return o instanceof Promise?o.then(gc):gc(o)};});function gc(e){return e.value=Object.freeze(e.value),e}var cl=v("$ZodCustom",(e,r)=>{Q.init(e,r),M.init(e,r),e._zod.parse=(t,n)=>t,e._zod.check=t=>{let n=t.value,o=r.fn(n);if(o instanceof Promise)return o.then(i=>vc(i,t,n,e));vc(o,t,n,e);};});function vc(e,r,t,n){if(!e){let o={code:"custom",input:t,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(o.params=n._zod.def.params),r.issues.push(xr(o));}}c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();var ll,Wn=class{constructor(){this._map=new WeakMap,this._idmap=new Map;}add(r,...t){let n=t[0];if(this._map.set(r,n),n&&typeof n=="object"&&"id"in n){if(this._idmap.has(n.id))throw new Error(`ID ${n.id} already exists in the registry`);this._idmap.set(n.id,r);}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(r){let t=this._map.get(r);return t&&typeof t=="object"&&"id"in t&&this._idmap.delete(t.id),this._map.delete(r),this}get(r){let t=r._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let o={...n,...this._map.get(r)};return Object.keys(o).length?o:void 0}return this._map.get(r)}has(r){return this._map.has(r)}};function vp(){return new Wn}(ll=globalThis).__zod_globalRegistry??(ll.__zod_globalRegistry=vp());var Je=globalThis.__zod_globalRegistry;c();function sl(e,r){return new e({type:"string",...D(r)})}function Hn(e,r){return new e({type:"string",format:"email",check:"string_format",abort:false,...D(r)})}function Xn(e,r){return new e({type:"string",format:"guid",check:"string_format",abort:false,...D(r)})}function ul(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:false,...D(r)})}function dl(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:false,version:"v4",...D(r)})}function ml(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:false,version:"v6",...D(r)})}function fl(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:false,version:"v7",...D(r)})}function pl(e,r){return new e({type:"string",format:"url",check:"string_format",abort:false,...D(r)})}function gl(e,r){return new e({type:"string",format:"emoji",check:"string_format",abort:false,...D(r)})}function vl(e,r){return new e({type:"string",format:"nanoid",check:"string_format",abort:false,...D(r)})}function hl(e,r){return new e({type:"string",format:"cuid",check:"string_format",abort:false,...D(r)})}function yl(e,r){return new e({type:"string",format:"cuid2",check:"string_format",abort:false,...D(r)})}function _l(e,r){return new e({type:"string",format:"ulid",check:"string_format",abort:false,...D(r)})}function bl(e,r){return new e({type:"string",format:"xid",check:"string_format",abort:false,...D(r)})}function xl(e,r){return new e({type:"string",format:"ksuid",check:"string_format",abort:false,...D(r)})}function Sl(e,r){return new e({type:"string",format:"ipv4",check:"string_format",abort:false,...D(r)})}function Cl(e,r){return new e({type:"string",format:"ipv6",check:"string_format",abort:false,...D(r)})}function Pl(e,r){return new e({type:"string",format:"cidrv4",check:"string_format",abort:false,...D(r)})}function kl(e,r){return new e({type:"string",format:"cidrv6",check:"string_format",abort:false,...D(r)})}function $l(e,r){return new e({type:"string",format:"base64",check:"string_format",abort:false,...D(r)})}function wl(e,r){return new e({type:"string",format:"base64url",check:"string_format",abort:false,...D(r)})}function zl(e,r){return new e({type:"string",format:"e164",check:"string_format",abort:false,...D(r)})}function Dl(e,r){return new e({type:"string",format:"jwt",check:"string_format",abort:false,...D(r)})}function Il(e,r){return new e({type:"string",format:"datetime",check:"string_format",offset:false,local:false,precision:null,...D(r)})}function Bl(e,r){return new e({type:"string",format:"date",check:"string_format",...D(r)})}function Ol(e,r){return new e({type:"string",format:"time",check:"string_format",precision:null,...D(r)})}function Tl(e,r){return new e({type:"string",format:"duration",check:"string_format",...D(r)})}function El(e,r){return new e({type:"number",checks:[],...D(r)})}function Rl(e,r){return new e({type:"number",check:"number_format",abort:false,format:"safeint",...D(r)})}function Fl(e){return new e({type:"unknown"})}function jl(e,r){return new e({type:"never",...D(r)})}function Ft(e,r){return new Zn({check:"less_than",...D(r),value:e,inclusive:false})}function Kr(e,r){return new Zn({check:"less_than",...D(r),value:e,inclusive:true})}function jt(e,r){return new Vn({check:"greater_than",...D(r),value:e,inclusive:false})}function Yr(e,r){return new Vn({check:"greater_than",...D(r),value:e,inclusive:true})}function Nt(e,r){return new Ga({check:"multiple_of",...D(r),value:e})}function At(e,r){return new Ya({check:"max_length",...D(r),maximum:e})}function Sr(e,r){return new qa({check:"min_length",...D(r),minimum:e})}function Ut(e,r){return new Qa({check:"length_equals",...D(r),length:e})}function Gn(e,r){return new ec({check:"string_format",format:"regex",...D(r),pattern:e})}function Kn(e){return new rc({check:"string_format",format:"lowercase",...D(e)})}function Yn(e){return new tc({check:"string_format",format:"uppercase",...D(e)})}function qn(e,r){return new nc({check:"string_format",format:"includes",...D(r),includes:e})}function Qn(e,r){return new oc({check:"string_format",format:"starts_with",...D(r),prefix:e})}function eo(e,r){return new ic({check:"string_format",format:"ends_with",...D(r),suffix:e})}function We(e){return new ac({check:"overwrite",tx:e})}function ro(e){return We(r=>r.normalize(e))}function to(){return We(e=>e.trim())}function no(){return We(e=>e.toLowerCase())}function oo(){return We(e=>e.toUpperCase())}function io(){return We(e=>En(e))}function Nl(e,r,t){return new e({type:"array",element:r,...D(t)})}function Al(e,r,t){return new e({type:"custom",check:"custom",fn:r,...D(t)})}function Ul(e){let r=bp(t=>(t.addIssue=n=>{if(typeof n=="string")t.issues.push(xr(n,t.value,r._zod.def));else {let o=n;o.fatal&&(o.continue=false),o.code??(o.code="custom"),o.input??(o.input=t.value),o.inst??(o.inst=r),o.continue??(o.continue=!r._zod.def.abort),t.issues.push(xr(o));}},e(t.value,t)));return r}function bp(e,r){let t=new Q({check:"custom",...D(r)});return t._zod.check=e,t}c();function Lt(e){let r=e?.target??"draft-2020-12";return r==="draft-4"&&(r="draft-04"),r==="draft-7"&&(r="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??Je,target:r,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function X(e,r,t={path:[],schemaPath:[]}){var n;let o=e._zod.def,i=r.seen.get(e);if(i)return i.count++,t.schemaPath.includes(e)&&(i.cycle=t.path),i.schema;let a={schema:{},count:1,cycle:void 0,path:t.path};r.seen.set(e,a);let l=e._zod.toJSONSchema?.();if(l)a.schema=l;else {let f={...t,schemaPath:[...t.schemaPath,e],path:t.path},p=e._zod.parent;if(p)a.ref=p,X(p,r,f),r.seen.get(p).isParent=true;else if(e._zod.processJSONSchema)e._zod.processJSONSchema(r,a.schema,f);else {let h=a.schema,y=r.processors[o.type];if(!y)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${o.type}`);y(e,r,h,f);}}let s=r.metadataRegistry.get(e);return s&&Object.assign(a.schema,s),r.io==="input"&&te(e)&&(delete a.schema.examples,delete a.schema.default),r.io==="input"&&a.schema._prefault&&((n=a.schema).default??(n.default=a.schema._prefault)),delete a.schema._prefault,r.seen.get(e).schema}function Zt(e,r){let t=e.seen.get(r);if(!t)throw new Error("Unprocessed schema. This is a bug in Zod.");let n=i=>{let a=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let f=e.external.registry.get(i[0])?.id,p=e.external.uri??(y=>y);if(f)return {ref:p(f)};let h=i[1].defId??i[1].schema.id??`schema${e.counter++}`;return i[1].defId=h,{defId:h,ref:`${p("__shared")}#/${a}/${h}`}}if(i[1]===t)return {ref:"#"};let s=`#/${a}/`,u=i[1].schema.id??`__schema${e.counter++}`;return {defId:u,ref:s+u}},o=i=>{if(i[1].schema.$ref)return;let a=i[1],{ref:l,defId:s}=n(i);a.def={...a.schema},s&&(a.defId=s);let u=a.schema;for(let f in u)delete u[f];u.$ref=l;};if(e.cycles==="throw")for(let i of e.seen.entries()){let a=i[1];if(a.cycle)throw new Error(`Cycle detected: #/${a.cycle?.join("/")}/<root>
36
+ `);}y.write("payload.value = newResult;"),y.write("return payload;");let w=y.compile();return (P,j)=>w(h,P,j)},i,a=_r,l=!$t.jitless,u=l&&Rn.value,f=r.catchall,p;e._zod.parse=(h,y)=>{p??(p=n.value);let z=h.value;return a(z)?l&&u&&y?.async===false&&y.jitless!==true?(i||(i=o(r.shape)),h=i(h,y),f?Hc([],z,h,y,p,e):h):t(h,y):(h.issues.push({expected:"object",code:"invalid_type",input:z,inst:e}),h)};});function dc(e,r,t,n){for(let i of e)if(i.issues.length===0)return r.value=i.value,r;let o=e.filter(i=>!Me(i));return o.length===1?(r.value=o[0].value,o[0]):(r.issues.push({code:"invalid_union",input:r.value,inst:t,errors:e.map(i=>i.issues.map(a=>be(a,n,ke())))}),r)}var Gc=v("$ZodUnion",(e,r)=>{J.init(e,r),L(e._zod,"optin",()=>r.options.some(o=>o._zod.optin==="optional")?"optional":void 0),L(e._zod,"optout",()=>r.options.some(o=>o._zod.optout==="optional")?"optional":void 0),L(e._zod,"values",()=>{if(r.options.every(o=>o._zod.values))return new Set(r.options.flatMap(o=>Array.from(o._zod.values)))}),L(e._zod,"pattern",()=>{if(r.options.every(o=>o._zod.pattern)){let o=r.options.map(i=>i._zod.pattern);return new RegExp(`^(${o.map(i=>Mr(i.source)).join("|")})$`)}});let t=r.options.length===1,n=r.options[0]._zod.run;e._zod.parse=(o,i)=>{if(t)return n(o,i);let a=false,l=[];for(let s of r.options){let u=s._zod.run({value:o.value,issues:[]},i);if(u instanceof Promise)l.push(u),a=true;else {if(u.issues.length===0)return u;l.push(u);}}return a?Promise.all(l).then(s=>dc(s,o,e,i)):dc(l,o,e,i)};});var Kc=v("$ZodIntersection",(e,r)=>{J.init(e,r),e._zod.parse=(t,n)=>{let o=t.value,i=r.left._zod.run({value:o,issues:[]},n),a=r.right._zod.run({value:o,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([s,u])=>mc(t,s,u)):mc(t,i,a)};});function Mn(e,r){if(e===r)return {valid:true,data:e};if(e instanceof Date&&r instanceof Date&&+e==+r)return {valid:true,data:e};if(Ze(e)&&Ze(r)){let t=Object.keys(r),n=Object.keys(e).filter(i=>t.indexOf(i)!==-1),o={...e,...r};for(let i of n){let a=Mn(e[i],r[i]);if(!a.valid)return {valid:false,mergeErrorPath:[i,...a.mergeErrorPath]};o[i]=a.data;}return {valid:true,data:o}}if(Array.isArray(e)&&Array.isArray(r)){if(e.length!==r.length)return {valid:false,mergeErrorPath:[]};let t=[];for(let n=0;n<e.length;n++){let o=e[n],i=r[n],a=Mn(o,i);if(!a.valid)return {valid:false,mergeErrorPath:[n,...a.mergeErrorPath]};t.push(a.data);}return {valid:true,data:t}}return {valid:false,mergeErrorPath:[]}}function mc(e,r,t){if(r.issues.length&&e.issues.push(...r.issues),t.issues.length&&e.issues.push(...t.issues),Me(e))return e;let n=Mn(r.value,t.value);if(!n.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(n.mergeErrorPath)}`);return e.value=n.data,e}var Yc=v("$ZodRecord",(e,r)=>{J.init(e,r),e._zod.parse=(t,n)=>{let o=t.value;if(!Ze(o))return t.issues.push({expected:"record",code:"invalid_type",input:o,inst:e}),t;let i=[],a=r.keyType._zod.values;if(a){t.value={};let l=new Set;for(let u of a)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){l.add(typeof u=="number"?u.toString():u);let f=r.valueType._zod.run({value:o[u],issues:[]},n);f instanceof Promise?i.push(f.then(p=>{p.issues.length&&t.issues.push(...Te(u,p.issues)),t.value[u]=p.value;})):(f.issues.length&&t.issues.push(...Te(u,f.issues)),t.value[u]=f.value);}let s;for(let u in o)l.has(u)||(s=s??[],s.push(u));s&&s.length>0&&t.issues.push({code:"unrecognized_keys",input:o,inst:e,keys:s});}else {t.value={};for(let l of Reflect.ownKeys(o)){if(l==="__proto__")continue;let s=r.keyType._zod.run({value:l,issues:[]},n);if(s instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(s.issues.length){r.mode==="loose"?t.value[l]=o[l]:t.issues.push({code:"invalid_key",origin:"record",issues:s.issues.map(f=>be(f,n,ke())),input:l,path:[l],inst:e});continue}let u=r.valueType._zod.run({value:o[l],issues:[]},n);u instanceof Promise?i.push(u.then(f=>{f.issues.length&&t.issues.push(...Te(l,f.issues)),t.value[s.value]=f.value;})):(u.issues.length&&t.issues.push(...Te(l,u.issues)),t.value[s.value]=u.value);}}return i.length?Promise.all(i).then(()=>t):t};});var qc=v("$ZodEnum",(e,r)=>{J.init(e,r);let t=Lr(r.entries),n=new Set(t);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.filter(o=>Fn.has(typeof o)).map(o=>typeof o=="string"?Ve(o):o.toString()).join("|")})$`),e._zod.parse=(o,i)=>{let a=o.value;return n.has(a)||o.issues.push({code:"invalid_value",values:t,input:a,inst:e}),o};});var Qc=v("$ZodTransform",(e,r)=>{J.init(e,r),e._zod.parse=(t,n)=>{if(n.direction==="backward")throw new yr(e.constructor.name);let o=r.transform(t.value,t);if(n.async)return (o instanceof Promise?o:Promise.resolve(o)).then(a=>(t.value=a,t));if(o instanceof Promise)throw new Pe;return t.value=o,t};});function fc(e,r){return e.issues.length&&r===void 0?{issues:[],value:void 0}:e}var el=v("$ZodOptional",(e,r)=>{J.init(e,r),e._zod.optin="optional",e._zod.optout="optional",L(e._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,void 0]):void 0),L(e._zod,"pattern",()=>{let t=r.innerType._zod.pattern;return t?new RegExp(`^(${Mr(t.source)})?$`):void 0}),e._zod.parse=(t,n)=>{if(r.innerType._zod.optin==="optional"){let o=r.innerType._zod.run(t,n);return o instanceof Promise?o.then(i=>fc(i,t.value)):fc(o,t.value)}return t.value===void 0?t:r.innerType._zod.run(t,n)};}),rl=v("$ZodNullable",(e,r)=>{J.init(e,r),L(e._zod,"optin",()=>r.innerType._zod.optin),L(e._zod,"optout",()=>r.innerType._zod.optout),L(e._zod,"pattern",()=>{let t=r.innerType._zod.pattern;return t?new RegExp(`^(${Mr(t.source)}|null)$`):void 0}),L(e._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,null]):void 0),e._zod.parse=(t,n)=>t.value===null?t:r.innerType._zod.run(t,n);}),tl=v("$ZodDefault",(e,r)=>{J.init(e,r),e._zod.optin="optional",L(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(t,n)=>{if(n.direction==="backward")return r.innerType._zod.run(t,n);if(t.value===void 0)return t.value=r.defaultValue,t;let o=r.innerType._zod.run(t,n);return o instanceof Promise?o.then(i=>pc(i,r)):pc(o,r)};});function pc(e,r){return e.value===void 0&&(e.value=r.defaultValue),e}var nl=v("$ZodPrefault",(e,r)=>{J.init(e,r),e._zod.optin="optional",L(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(t,n)=>(n.direction==="backward"||t.value===void 0&&(t.value=r.defaultValue),r.innerType._zod.run(t,n));}),ol=v("$ZodNonOptional",(e,r)=>{J.init(e,r),L(e._zod,"values",()=>{let t=r.innerType._zod.values;return t?new Set([...t].filter(n=>n!==void 0)):void 0}),e._zod.parse=(t,n)=>{let o=r.innerType._zod.run(t,n);return o instanceof Promise?o.then(i=>gc(i,e)):gc(o,e)};});function gc(e,r){return !e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:r}),e}var il=v("$ZodCatch",(e,r)=>{J.init(e,r),L(e._zod,"optin",()=>r.innerType._zod.optin),L(e._zod,"optout",()=>r.innerType._zod.optout),L(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(t,n)=>{if(n.direction==="backward")return r.innerType._zod.run(t,n);let o=r.innerType._zod.run(t,n);return o instanceof Promise?o.then(i=>(t.value=i.value,i.issues.length&&(t.value=r.catchValue({...t,error:{issues:i.issues.map(a=>be(a,n,ke()))},input:t.value}),t.issues=[]),t)):(t.value=o.value,o.issues.length&&(t.value=r.catchValue({...t,error:{issues:o.issues.map(i=>be(i,n,ke()))},input:t.value}),t.issues=[]),t)};});var al=v("$ZodPipe",(e,r)=>{J.init(e,r),L(e._zod,"values",()=>r.in._zod.values),L(e._zod,"optin",()=>r.in._zod.optin),L(e._zod,"optout",()=>r.out._zod.optout),L(e._zod,"propValues",()=>r.in._zod.propValues),e._zod.parse=(t,n)=>{if(n.direction==="backward"){let i=r.out._zod.run(t,n);return i instanceof Promise?i.then(a=>Et(a,r.in,n)):Et(i,r.in,n)}let o=r.in._zod.run(t,n);return o instanceof Promise?o.then(i=>Et(i,r.out,n)):Et(o,r.out,n)};});function Et(e,r,t){return e.issues.length?(e.aborted=true,e):r._zod.run({value:e.value,issues:e.issues},t)}var cl=v("$ZodReadonly",(e,r)=>{J.init(e,r),L(e._zod,"propValues",()=>r.innerType._zod.propValues),L(e._zod,"values",()=>r.innerType._zod.values),L(e._zod,"optin",()=>r.innerType?._zod?.optin),L(e._zod,"optout",()=>r.innerType?._zod?.optout),e._zod.parse=(t,n)=>{if(n.direction==="backward")return r.innerType._zod.run(t,n);let o=r.innerType._zod.run(t,n);return o instanceof Promise?o.then(vc):vc(o)};});function vc(e){return e.value=Object.freeze(e.value),e}var ll=v("$ZodCustom",(e,r)=>{Q.init(e,r),J.init(e,r),e._zod.parse=(t,n)=>t,e._zod.check=t=>{let n=t.value,o=r.fn(n);if(o instanceof Promise)return o.then(i=>hc(i,t,n,e));hc(o,t,n,e);};});function hc(e,r,t,n){if(!e){let o={code:"custom",input:t,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(o.params=n._zod.def.params),r.issues.push(xr(o));}}c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();var sl,Wn=class{constructor(){this._map=new WeakMap,this._idmap=new Map;}add(r,...t){let n=t[0];if(this._map.set(r,n),n&&typeof n=="object"&&"id"in n){if(this._idmap.has(n.id))throw new Error(`ID ${n.id} already exists in the registry`);this._idmap.set(n.id,r);}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(r){let t=this._map.get(r);return t&&typeof t=="object"&&"id"in t&&this._idmap.delete(t.id),this._map.delete(r),this}get(r){let t=r._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let o={...n,...this._map.get(r)};return Object.keys(o).length?o:void 0}return this._map.get(r)}has(r){return this._map.has(r)}};function hp(){return new Wn}(sl=globalThis).__zod_globalRegistry??(sl.__zod_globalRegistry=hp());var Je=globalThis.__zod_globalRegistry;c();function ul(e,r){return new e({type:"string",...D(r)})}function Hn(e,r){return new e({type:"string",format:"email",check:"string_format",abort:false,...D(r)})}function Xn(e,r){return new e({type:"string",format:"guid",check:"string_format",abort:false,...D(r)})}function dl(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:false,...D(r)})}function ml(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:false,version:"v4",...D(r)})}function fl(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:false,version:"v6",...D(r)})}function pl(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:false,version:"v7",...D(r)})}function gl(e,r){return new e({type:"string",format:"url",check:"string_format",abort:false,...D(r)})}function vl(e,r){return new e({type:"string",format:"emoji",check:"string_format",abort:false,...D(r)})}function hl(e,r){return new e({type:"string",format:"nanoid",check:"string_format",abort:false,...D(r)})}function yl(e,r){return new e({type:"string",format:"cuid",check:"string_format",abort:false,...D(r)})}function _l(e,r){return new e({type:"string",format:"cuid2",check:"string_format",abort:false,...D(r)})}function bl(e,r){return new e({type:"string",format:"ulid",check:"string_format",abort:false,...D(r)})}function xl(e,r){return new e({type:"string",format:"xid",check:"string_format",abort:false,...D(r)})}function Sl(e,r){return new e({type:"string",format:"ksuid",check:"string_format",abort:false,...D(r)})}function Cl(e,r){return new e({type:"string",format:"ipv4",check:"string_format",abort:false,...D(r)})}function Pl(e,r){return new e({type:"string",format:"ipv6",check:"string_format",abort:false,...D(r)})}function kl(e,r){return new e({type:"string",format:"cidrv4",check:"string_format",abort:false,...D(r)})}function $l(e,r){return new e({type:"string",format:"cidrv6",check:"string_format",abort:false,...D(r)})}function wl(e,r){return new e({type:"string",format:"base64",check:"string_format",abort:false,...D(r)})}function zl(e,r){return new e({type:"string",format:"base64url",check:"string_format",abort:false,...D(r)})}function Dl(e,r){return new e({type:"string",format:"e164",check:"string_format",abort:false,...D(r)})}function Bl(e,r){return new e({type:"string",format:"jwt",check:"string_format",abort:false,...D(r)})}function Il(e,r){return new e({type:"string",format:"datetime",check:"string_format",offset:false,local:false,precision:null,...D(r)})}function Ol(e,r){return new e({type:"string",format:"date",check:"string_format",...D(r)})}function Tl(e,r){return new e({type:"string",format:"time",check:"string_format",precision:null,...D(r)})}function El(e,r){return new e({type:"string",format:"duration",check:"string_format",...D(r)})}function Rl(e,r){return new e({type:"number",checks:[],...D(r)})}function Fl(e,r){return new e({type:"number",check:"number_format",abort:false,format:"safeint",...D(r)})}function jl(e){return new e({type:"unknown"})}function Nl(e,r){return new e({type:"never",...D(r)})}function Ft(e,r){return new Zn({check:"less_than",...D(r),value:e,inclusive:false})}function Kr(e,r){return new Zn({check:"less_than",...D(r),value:e,inclusive:true})}function jt(e,r){return new Vn({check:"greater_than",...D(r),value:e,inclusive:false})}function Yr(e,r){return new Vn({check:"greater_than",...D(r),value:e,inclusive:true})}function Nt(e,r){return new Ka({check:"multiple_of",...D(r),value:e})}function At(e,r){return new qa({check:"max_length",...D(r),maximum:e})}function Sr(e,r){return new Qa({check:"min_length",...D(r),minimum:e})}function Ut(e,r){return new ec({check:"length_equals",...D(r),length:e})}function Gn(e,r){return new rc({check:"string_format",format:"regex",...D(r),pattern:e})}function Kn(e){return new tc({check:"string_format",format:"lowercase",...D(e)})}function Yn(e){return new nc({check:"string_format",format:"uppercase",...D(e)})}function qn(e,r){return new oc({check:"string_format",format:"includes",...D(r),includes:e})}function Qn(e,r){return new ic({check:"string_format",format:"starts_with",...D(r),prefix:e})}function eo(e,r){return new ac({check:"string_format",format:"ends_with",...D(r),suffix:e})}function We(e){return new cc({check:"overwrite",tx:e})}function ro(e){return We(r=>r.normalize(e))}function to(){return We(e=>e.trim())}function no(){return We(e=>e.toLowerCase())}function oo(){return We(e=>e.toUpperCase())}function io(){return We(e=>En(e))}function Al(e,r,t){return new e({type:"array",element:r,...D(t)})}function Ul(e,r,t){return new e({type:"custom",check:"custom",fn:r,...D(t)})}function Ll(e){let r=xp(t=>(t.addIssue=n=>{if(typeof n=="string")t.issues.push(xr(n,t.value,r._zod.def));else {let o=n;o.fatal&&(o.continue=false),o.code??(o.code="custom"),o.input??(o.input=t.value),o.inst??(o.inst=r),o.continue??(o.continue=!r._zod.def.abort),t.issues.push(xr(o));}},e(t.value,t)));return r}function xp(e,r){let t=new Q({check:"custom",...D(r)});return t._zod.check=e,t}c();function Lt(e){let r=e?.target??"draft-2020-12";return r==="draft-4"&&(r="draft-04"),r==="draft-7"&&(r="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??Je,target:r,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function X(e,r,t={path:[],schemaPath:[]}){var n;let o=e._zod.def,i=r.seen.get(e);if(i)return i.count++,t.schemaPath.includes(e)&&(i.cycle=t.path),i.schema;let a={schema:{},count:1,cycle:void 0,path:t.path};r.seen.set(e,a);let l=e._zod.toJSONSchema?.();if(l)a.schema=l;else {let f={...t,schemaPath:[...t.schemaPath,e],path:t.path},p=e._zod.parent;if(p)a.ref=p,X(p,r,f),r.seen.get(p).isParent=true;else if(e._zod.processJSONSchema)e._zod.processJSONSchema(r,a.schema,f);else {let h=a.schema,y=r.processors[o.type];if(!y)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${o.type}`);y(e,r,h,f);}}let s=r.metadataRegistry.get(e);return s&&Object.assign(a.schema,s),r.io==="input"&&te(e)&&(delete a.schema.examples,delete a.schema.default),r.io==="input"&&a.schema._prefault&&((n=a.schema).default??(n.default=a.schema._prefault)),delete a.schema._prefault,r.seen.get(e).schema}function Zt(e,r){let t=e.seen.get(r);if(!t)throw new Error("Unprocessed schema. This is a bug in Zod.");let n=i=>{let a=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let f=e.external.registry.get(i[0])?.id,p=e.external.uri??(y=>y);if(f)return {ref:p(f)};let h=i[1].defId??i[1].schema.id??`schema${e.counter++}`;return i[1].defId=h,{defId:h,ref:`${p("__shared")}#/${a}/${h}`}}if(i[1]===t)return {ref:"#"};let s=`#/${a}/`,u=i[1].schema.id??`__schema${e.counter++}`;return {defId:u,ref:s+u}},o=i=>{if(i[1].schema.$ref)return;let a=i[1],{ref:l,defId:s}=n(i);a.def={...a.schema},s&&(a.defId=s);let u=a.schema;for(let f in u)delete u[f];u.$ref=l;};if(e.cycles==="throw")for(let i of e.seen.entries()){let a=i[1];if(a.cycle)throw new Error(`Cycle detected: #/${a.cycle?.join("/")}/<root>
37
37
 
38
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let i of e.seen.entries()){let a=i[1];if(r===i[0]){o(i);continue}if(e.external){let s=e.external.registry.get(i[0])?.id;if(r!==i[0]&&s){o(i);continue}}if(e.metadataRegistry.get(i[0])?.id){o(i);continue}if(a.cycle){o(i);continue}if(a.count>1&&e.reused==="ref"){o(i);continue}}}function Vt(e,r){let t=e.seen.get(r);if(!t)throw new Error("Unprocessed schema. This is a bug in Zod.");let n=a=>{let l=e.seen.get(a),s=l.def??l.schema,u={...s};if(l.ref===null)return;let f=l.ref;if(l.ref=null,f){n(f);let p=e.seen.get(f).schema;p.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(s.allOf=s.allOf??[],s.allOf.push(p)):(Object.assign(s,p),Object.assign(s,u));}l.isParent||e.override({zodSchema:a,jsonSchema:s,path:l.path??[]});};for(let a of [...e.seen.entries()].reverse())n(a[0]);let o={};if(e.target==="draft-2020-12"?o.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?o.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?o.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let a=e.external.registry.get(r)?.id;if(!a)throw new Error("Schema is missing an `id` property");o.$id=e.external.uri(a);}Object.assign(o,t.def??t.schema);let i=e.external?.defs??{};for(let a of e.seen.entries()){let l=a[1];l.def&&l.defId&&(i[l.defId]=l.def);}e.external||Object.keys(i).length>0&&(e.target==="draft-2020-12"?o.$defs=i:o.definitions=i);try{let a=JSON.parse(JSON.stringify(o));return Object.defineProperty(a,"~standard",{value:{...r["~standard"],jsonSchema:{input:qr(r,"input"),output:qr(r,"output")}},enumerable:!1,writable:!1}),a}catch{throw new Error("Error converting schema to JSON.")}}function te(e,r){let t=r??{seen:new Set};if(t.seen.has(e))return false;t.seen.add(e);let n=e._zod.def;if(n.type==="transform")return true;if(n.type==="array")return te(n.element,t);if(n.type==="set")return te(n.valueType,t);if(n.type==="lazy")return te(n.getter(),t);if(n.type==="promise"||n.type==="optional"||n.type==="nonoptional"||n.type==="nullable"||n.type==="readonly"||n.type==="default"||n.type==="prefault")return te(n.innerType,t);if(n.type==="intersection")return te(n.left,t)||te(n.right,t);if(n.type==="record"||n.type==="map")return te(n.keyType,t)||te(n.valueType,t);if(n.type==="pipe")return te(n.in,t)||te(n.out,t);if(n.type==="object"){for(let o in n.shape)if(te(n.shape[o],t))return true;return false}if(n.type==="union"){for(let o of n.options)if(te(o,t))return true;return false}if(n.type==="tuple"){for(let o of n.items)if(te(o,t))return true;return !!(n.rest&&te(n.rest,t))}return false}var Ll=(e,r={})=>t=>{let n=Lt({...t,processors:r});return X(e,n),Zt(n,e),Vt(n,e)},qr=(e,r)=>t=>{let{libraryOptions:n,target:o}=t??{},i=Lt({...n??{},target:o,io:r,processors:{}});return X(e,i),Zt(i,e),Vt(i,e)};c();var xp={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Zl=(e,r,t,n)=>{let o=t;o.type="string";let{minimum:i,maximum:a,format:l,patterns:s,contentEncoding:u}=e._zod.bag;if(typeof i=="number"&&(o.minLength=i),typeof a=="number"&&(o.maxLength=a),l&&(o.format=xp[l]??l,o.format===""&&delete o.format),u&&(o.contentEncoding=u),s&&s.size>0){let f=[...s];f.length===1?o.pattern=f[0].source:f.length>1&&(o.allOf=[...f.map(p=>({...r.target==="draft-07"||r.target==="draft-04"||r.target==="openapi-3.0"?{type:"string"}:{},pattern:p.source}))]);}},Vl=(e,r,t,n)=>{let o=t,{minimum:i,maximum:a,format:l,multipleOf:s,exclusiveMaximum:u,exclusiveMinimum:f}=e._zod.bag;typeof l=="string"&&l.includes("int")?o.type="integer":o.type="number",typeof f=="number"&&(r.target==="draft-04"||r.target==="openapi-3.0"?(o.minimum=f,o.exclusiveMinimum=true):o.exclusiveMinimum=f),typeof i=="number"&&(o.minimum=i,typeof f=="number"&&r.target!=="draft-04"&&(f>=i?delete o.minimum:delete o.exclusiveMinimum)),typeof u=="number"&&(r.target==="draft-04"||r.target==="openapi-3.0"?(o.maximum=u,o.exclusiveMaximum=true):o.exclusiveMaximum=u),typeof a=="number"&&(o.maximum=a,typeof u=="number"&&r.target!=="draft-04"&&(u<=a?delete o.maximum:delete o.exclusiveMaximum)),typeof s=="number"&&(o.multipleOf=s);};var Ml=(e,r,t,n)=>{t.not={};};var Jl=(e,r,t,n)=>{};var Wl=(e,r,t,n)=>{let o=e._zod.def,i=Lr(o.entries);i.every(a=>typeof a=="number")&&(t.type="number"),i.every(a=>typeof a=="string")&&(t.type="string"),t.enum=i;};var Hl=(e,r,t,n)=>{if(r.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")};var Xl=(e,r,t,n)=>{if(r.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")};var Gl=(e,r,t,n)=>{let o=t,i=e._zod.def,{minimum:a,maximum:l}=e._zod.bag;typeof a=="number"&&(o.minItems=a),typeof l=="number"&&(o.maxItems=l),o.type="array",o.items=X(i.element,r,{...n,path:[...n.path,"items"]});},Kl=(e,r,t,n)=>{let o=t,i=e._zod.def;o.type="object",o.properties={};let a=i.shape;for(let u in a)o.properties[u]=X(a[u],r,{...n,path:[...n.path,"properties",u]});let l=new Set(Object.keys(a)),s=new Set([...l].filter(u=>{let f=i.shape[u]._zod;return r.io==="input"?f.optin===void 0:f.optout===void 0}));s.size>0&&(o.required=Array.from(s)),i.catchall?._zod.def.type==="never"?o.additionalProperties=false:i.catchall?i.catchall&&(o.additionalProperties=X(i.catchall,r,{...n,path:[...n.path,"additionalProperties"]})):r.io==="output"&&(o.additionalProperties=false);},Yl=(e,r,t,n)=>{let o=e._zod.def,i=o.inclusive===false,a=o.options.map((l,s)=>X(l,r,{...n,path:[...n.path,i?"oneOf":"anyOf",s]}));i?t.oneOf=a:t.anyOf=a;},ql=(e,r,t,n)=>{let o=e._zod.def,i=X(o.left,r,{...n,path:[...n.path,"allOf",0]}),a=X(o.right,r,{...n,path:[...n.path,"allOf",1]}),l=u=>"allOf"in u&&Object.keys(u).length===1,s=[...l(i)?i.allOf:[i],...l(a)?a.allOf:[a]];t.allOf=s;};var Ql=(e,r,t,n)=>{let o=t,i=e._zod.def;o.type="object",(r.target==="draft-07"||r.target==="draft-2020-12")&&(o.propertyNames=X(i.keyType,r,{...n,path:[...n.path,"propertyNames"]})),o.additionalProperties=X(i.valueType,r,{...n,path:[...n.path,"additionalProperties"]});},es=(e,r,t,n)=>{let o=e._zod.def,i=X(o.innerType,r,n),a=r.seen.get(e);r.target==="openapi-3.0"?(a.ref=o.innerType,t.nullable=true):t.anyOf=[i,{type:"null"}];},rs=(e,r,t,n)=>{let o=e._zod.def;X(o.innerType,r,n);let i=r.seen.get(e);i.ref=o.innerType;},ts=(e,r,t,n)=>{let o=e._zod.def;X(o.innerType,r,n);let i=r.seen.get(e);i.ref=o.innerType,t.default=JSON.parse(JSON.stringify(o.defaultValue));},ns=(e,r,t,n)=>{let o=e._zod.def;X(o.innerType,r,n);let i=r.seen.get(e);i.ref=o.innerType,r.io==="input"&&(t._prefault=JSON.parse(JSON.stringify(o.defaultValue)));},os=(e,r,t,n)=>{let o=e._zod.def;X(o.innerType,r,n);let i=r.seen.get(e);i.ref=o.innerType;let a;try{a=o.catchValue(void 0);}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}t.default=a;},is=(e,r,t,n)=>{let o=e._zod.def,i=r.io==="input"?o.in._zod.def.type==="transform"?o.out:o.in:o.out;X(i,r,n);let a=r.seen.get(e);a.ref=i;},as=(e,r,t,n)=>{let o=e._zod.def;X(o.innerType,r,n);let i=r.seen.get(e);i.ref=o.innerType,t.readOnly=true;};var cs=(e,r,t,n)=>{let o=e._zod.def;X(o.innerType,r,n);let i=r.seen.get(e);i.ref=o.innerType;};c();c();c();c();c();var zp=v("ZodISODateTime",(e,r)=>{zc.init(e,r),V.init(e,r);});function ls(e){return Il(zp,e)}var Dp=v("ZodISODate",(e,r)=>{Dc.init(e,r),V.init(e,r);});function ss(e){return Bl(Dp,e)}var Ip=v("ZodISOTime",(e,r)=>{Ic.init(e,r),V.init(e,r);});function us(e){return Ol(Ip,e)}var Bp=v("ZodISODuration",(e,r)=>{Bc.init(e,r),V.init(e,r);});function ds(e){return Tl(Bp,e)}c();c();var ms=(e,r)=>{Dt.init(e,r),e.name="ZodError",Object.defineProperties(e,{format:{value:t=>da(e,t)},flatten:{value:t=>ua(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,br,2);}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,br,2);}},isEmpty:{get(){return e.issues.length===0}}});};v("ZodError",ms);var ce=v("ZodError",ms,{Parent:Error});var fs=It(ce),ps=Bt(ce),gs=Wr(ce),vs=Hr(ce),hs=pa(ce),ys=ga(ce),_s=va(ce),bs=ha(ce),xs=ya(ce),Ss=_a(ce),Cs=ba(ce),Ps=xa(ce);var K=v("ZodType",(e,r)=>(M.init(e,r),Object.assign(e["~standard"],{jsonSchema:{input:qr(e,"input"),output:qr(e,"output")}}),e.toJSONSchema=Ll(e,{}),e.def=r,e.type=r.type,Object.defineProperty(e,"_def",{value:r}),e.check=(...t)=>e.clone(_.mergeDefs(r,{checks:[...r.checks??[],...t.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]})),e.clone=(t,n)=>_e(e,t,n),e.brand=()=>e,e.register=((t,n)=>(t.add(e,n),e)),e.parse=(t,n)=>fs(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>gs(e,t,n),e.parseAsync=async(t,n)=>ps(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>vs(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>hs(e,t,n),e.decode=(t,n)=>ys(e,t,n),e.encodeAsync=async(t,n)=>_s(e,t,n),e.decodeAsync=async(t,n)=>bs(e,t,n),e.safeEncode=(t,n)=>xs(e,t,n),e.safeDecode=(t,n)=>Ss(e,t,n),e.safeEncodeAsync=async(t,n)=>Cs(e,t,n),e.safeDecodeAsync=async(t,n)=>Ps(e,t,n),e.refine=(t,n)=>e.check(Cg(t,n)),e.superRefine=t=>e.check(Pg(t)),e.overwrite=t=>e.check(We(t)),e.optional=()=>zs(e),e.nullable=()=>Ds(e),e.nullish=()=>zs(Ds(e)),e.nonoptional=t=>vg(e,t),e.array=()=>Wt(e),e.or=t=>ig([e,t]),e.and=t=>cg(e,t),e.transform=t=>Is(e,ug(t)),e.default=t=>fg(e,t),e.prefault=t=>gg(e,t),e.catch=t=>yg(e,t),e.pipe=t=>Is(e,t),e.readonly=()=>xg(e),e.describe=t=>{let n=e.clone();return Je.add(n,{description:t}),n},Object.defineProperty(e,"description",{get(){return Je.get(e)?.description},configurable:true}),e.meta=(...t)=>{if(t.length===0)return Je.get(e);let n=e.clone();return Je.add(n,t[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),Bs=v("_ZodString",(e,r)=>{Gr.init(e,r),K.init(e,r),e._zod.processJSONSchema=(n,o,i)=>Zl(e,n,o);let t=e._zod.bag;e.format=t.format??null,e.minLength=t.minimum??null,e.maxLength=t.maximum??null,e.regex=(...n)=>e.check(Gn(...n)),e.includes=(...n)=>e.check(qn(...n)),e.startsWith=(...n)=>e.check(Qn(...n)),e.endsWith=(...n)=>e.check(eo(...n)),e.min=(...n)=>e.check(Sr(...n)),e.max=(...n)=>e.check(At(...n)),e.length=(...n)=>e.check(Ut(...n)),e.nonempty=(...n)=>e.check(Sr(1,...n)),e.lowercase=n=>e.check(Kn(n)),e.uppercase=n=>e.check(Yn(n)),e.trim=()=>e.check(to()),e.normalize=(...n)=>e.check(ro(...n)),e.toLowerCase=()=>e.check(no()),e.toUpperCase=()=>e.check(oo()),e.slugify=()=>e.check(io());}),Rp=v("ZodString",(e,r)=>{Gr.init(e,r),Bs.init(e,r),e.email=t=>e.check(Hn(Os,t)),e.url=t=>e.check(pl(Fp,t)),e.jwt=t=>e.check(Dl(Yp,t)),e.emoji=t=>e.check(gl(jp,t)),e.guid=t=>e.check(Xn(ks,t)),e.uuid=t=>e.check(ul(Jt,t)),e.uuidv4=t=>e.check(dl(Jt,t)),e.uuidv6=t=>e.check(ml(Jt,t)),e.uuidv7=t=>e.check(fl(Jt,t)),e.nanoid=t=>e.check(vl(Np,t)),e.guid=t=>e.check(Xn(ks,t)),e.cuid=t=>e.check(hl(Ap,t)),e.cuid2=t=>e.check(yl(Up,t)),e.ulid=t=>e.check(_l(Lp,t)),e.base64=t=>e.check($l(Xp,t)),e.base64url=t=>e.check(wl(Gp,t)),e.xid=t=>e.check(bl(Zp,t)),e.ksuid=t=>e.check(xl(Vp,t)),e.ipv4=t=>e.check(Sl(Mp,t)),e.ipv6=t=>e.check(Cl(Jp,t)),e.cidrv4=t=>e.check(Pl(Wp,t)),e.cidrv6=t=>e.check(kl(Hp,t)),e.e164=t=>e.check(zl(Kp,t)),e.datetime=t=>e.check(ls(t)),e.date=t=>e.check(ss(t)),e.time=t=>e.check(us(t)),e.duration=t=>e.check(ds(t));});function L(e){return sl(Rp,e)}var V=v("ZodStringFormat",(e,r)=>{Z.init(e,r),Bs.init(e,r);}),Os=v("ZodEmail",(e,r)=>{_c.init(e,r),V.init(e,r);});function Ts(e){return Hn(Os,e)}var ks=v("ZodGUID",(e,r)=>{hc.init(e,r),V.init(e,r);});var Jt=v("ZodUUID",(e,r)=>{yc.init(e,r),V.init(e,r);});var Fp=v("ZodURL",(e,r)=>{bc.init(e,r),V.init(e,r);});var jp=v("ZodEmoji",(e,r)=>{xc.init(e,r),V.init(e,r);});var Np=v("ZodNanoID",(e,r)=>{Sc.init(e,r),V.init(e,r);});var Ap=v("ZodCUID",(e,r)=>{Cc.init(e,r),V.init(e,r);});var Up=v("ZodCUID2",(e,r)=>{Pc.init(e,r),V.init(e,r);});var Lp=v("ZodULID",(e,r)=>{kc.init(e,r),V.init(e,r);});var Zp=v("ZodXID",(e,r)=>{$c.init(e,r),V.init(e,r);});var Vp=v("ZodKSUID",(e,r)=>{wc.init(e,r),V.init(e,r);});var Mp=v("ZodIPv4",(e,r)=>{Oc.init(e,r),V.init(e,r);});var Jp=v("ZodIPv6",(e,r)=>{Tc.init(e,r),V.init(e,r);});var Wp=v("ZodCIDRv4",(e,r)=>{Ec.init(e,r),V.init(e,r);});var Hp=v("ZodCIDRv6",(e,r)=>{Rc.init(e,r),V.init(e,r);});var Xp=v("ZodBase64",(e,r)=>{jc.init(e,r),V.init(e,r);});var Gp=v("ZodBase64URL",(e,r)=>{Nc.init(e,r),V.init(e,r);});var Kp=v("ZodE164",(e,r)=>{Ac.init(e,r),V.init(e,r);});var Yp=v("ZodJWT",(e,r)=>{Uc.init(e,r),V.init(e,r);});var Es=v("ZodNumber",(e,r)=>{Jn.init(e,r),K.init(e,r),e._zod.processJSONSchema=(n,o,i)=>Vl(e,n,o),e.gt=(n,o)=>e.check(jt(n,o)),e.gte=(n,o)=>e.check(Yr(n,o)),e.min=(n,o)=>e.check(Yr(n,o)),e.lt=(n,o)=>e.check(Ft(n,o)),e.lte=(n,o)=>e.check(Kr(n,o)),e.max=(n,o)=>e.check(Kr(n,o)),e.int=n=>e.check($s(n)),e.safe=n=>e.check($s(n)),e.positive=n=>e.check(jt(0,n)),e.nonnegative=n=>e.check(Yr(0,n)),e.negative=n=>e.check(Ft(0,n)),e.nonpositive=n=>e.check(Kr(0,n)),e.multipleOf=(n,o)=>e.check(Nt(n,o)),e.step=(n,o)=>e.check(Nt(n,o)),e.finite=()=>e;let t=e._zod.bag;e.minValue=Math.max(t.minimum??Number.NEGATIVE_INFINITY,t.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(t.maximum??Number.POSITIVE_INFINITY,t.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(t.format??"").includes("int")||Number.isSafeInteger(t.multipleOf??.5),e.isFinite=true,e.format=t.format??null;});function Cr(e){return El(Es,e)}var qp=v("ZodNumberFormat",(e,r)=>{Lc.init(e,r),Es.init(e,r);});function $s(e){return Rl(qp,e)}var Qp=v("ZodUnknown",(e,r)=>{Zc.init(e,r),K.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Jl();});function ws(){return Fl(Qp)}var eg=v("ZodNever",(e,r)=>{Vc.init(e,r),K.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Ml(e,t,n);});function rg(e){return jl(eg,e)}var tg=v("ZodArray",(e,r)=>{Mc.init(e,r),K.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Gl(e,t,n,o),e.element=r.element,e.min=(t,n)=>e.check(Sr(t,n)),e.nonempty=t=>e.check(Sr(1,t)),e.max=(t,n)=>e.check(At(t,n)),e.length=(t,n)=>e.check(Ut(t,n)),e.unwrap=()=>e.element;});function Wt(e,r){return Nl(tg,e,r)}var ng=v("ZodObject",(e,r)=>{Hc.init(e,r),K.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Kl(e,t,n,o),_.defineLazy(e,"shape",()=>r.shape),e.keyof=()=>ie(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:ws()}),e.loose=()=>e.clone({...e._zod.def,catchall:ws()}),e.strict=()=>e.clone({...e._zod.def,catchall:rg()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>_.extend(e,t),e.safeExtend=t=>_.safeExtend(e,t),e.merge=t=>_.merge(e,t),e.pick=t=>_.pick(e,t),e.omit=t=>_.omit(e,t),e.partial=(...t)=>_.partial(Rs,e,t[0]),e.required=(...t)=>_.required(Fs,e,t[0]);});function le(e,r){let t={type:"object",shape:e??{},..._.normalizeParams(r)};return new ng(t)}var og=v("ZodUnion",(e,r)=>{Xc.init(e,r),K.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Yl(e,t,n,o),e.options=r.options;});function ig(e,r){return new og({type:"union",options:e,..._.normalizeParams(r)})}var ag=v("ZodIntersection",(e,r)=>{Gc.init(e,r),K.init(e,r),e._zod.processJSONSchema=(t,n,o)=>ql(e,t,n,o);});function cg(e,r){return new ag({type:"intersection",left:e,right:r})}var lg=v("ZodRecord",(e,r)=>{Kc.init(e,r),K.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Ql(e,t,n,o),e.keyType=r.keyType,e.valueType=r.valueType;});function Ht(e,r,t){return new lg({type:"record",keyType:e,valueType:r,..._.normalizeParams(t)})}var ao=v("ZodEnum",(e,r)=>{Yc.init(e,r),K.init(e,r),e._zod.processJSONSchema=(n,o,i)=>Wl(e,n,o),e.enum=r.entries,e.options=Object.values(r.entries);let t=new Set(Object.keys(r.entries));e.extract=(n,o)=>{let i={};for(let a of n)if(t.has(a))i[a]=r.entries[a];else throw new Error(`Key ${a} not found in enum`);return new ao({...r,checks:[],..._.normalizeParams(o),entries:i})},e.exclude=(n,o)=>{let i={...r.entries};for(let a of n)if(t.has(a))delete i[a];else throw new Error(`Key ${a} not found in enum`);return new ao({...r,checks:[],..._.normalizeParams(o),entries:i})};});function ie(e,r){let t=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new ao({type:"enum",entries:t,..._.normalizeParams(r)})}var sg=v("ZodTransform",(e,r)=>{qc.init(e,r),K.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Xl(e,t),e._zod.parse=(t,n)=>{if(n.direction==="backward")throw new yr(e.constructor.name);t.addIssue=i=>{if(typeof i=="string")t.issues.push(_.issue(i,t.value,r));else {let a=i;a.fatal&&(a.continue=false),a.code??(a.code="custom"),a.input??(a.input=t.value),a.inst??(a.inst=e),t.issues.push(_.issue(a));}};let o=r.transform(t.value,t);return o instanceof Promise?o.then(i=>(t.value=i,t)):(t.value=o,t)};});function ug(e){return new sg({type:"transform",transform:e})}var Rs=v("ZodOptional",(e,r)=>{Qc.init(e,r),K.init(e,r),e._zod.processJSONSchema=(t,n,o)=>cs(e,t,n,o),e.unwrap=()=>e._zod.def.innerType;});function zs(e){return new Rs({type:"optional",innerType:e})}var dg=v("ZodNullable",(e,r)=>{el.init(e,r),K.init(e,r),e._zod.processJSONSchema=(t,n,o)=>es(e,t,n,o),e.unwrap=()=>e._zod.def.innerType;});function Ds(e){return new dg({type:"nullable",innerType:e})}var mg=v("ZodDefault",(e,r)=>{rl.init(e,r),K.init(e,r),e._zod.processJSONSchema=(t,n,o)=>ts(e,t,n,o),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap;});function fg(e,r){return new mg({type:"default",innerType:e,get defaultValue(){return typeof r=="function"?r():_.shallowClone(r)}})}var pg=v("ZodPrefault",(e,r)=>{tl.init(e,r),K.init(e,r),e._zod.processJSONSchema=(t,n,o)=>ns(e,t,n,o),e.unwrap=()=>e._zod.def.innerType;});function gg(e,r){return new pg({type:"prefault",innerType:e,get defaultValue(){return typeof r=="function"?r():_.shallowClone(r)}})}var Fs=v("ZodNonOptional",(e,r)=>{nl.init(e,r),K.init(e,r),e._zod.processJSONSchema=(t,n,o)=>rs(e,t,n,o),e.unwrap=()=>e._zod.def.innerType;});function vg(e,r){return new Fs({type:"nonoptional",innerType:e,..._.normalizeParams(r)})}var hg=v("ZodCatch",(e,r)=>{ol.init(e,r),K.init(e,r),e._zod.processJSONSchema=(t,n,o)=>os(e,t,n,o),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap;});function yg(e,r){return new hg({type:"catch",innerType:e,catchValue:typeof r=="function"?r:()=>r})}var _g=v("ZodPipe",(e,r)=>{il.init(e,r),K.init(e,r),e._zod.processJSONSchema=(t,n,o)=>is(e,t,n,o),e.in=r.in,e.out=r.out;});function Is(e,r){return new _g({type:"pipe",in:e,out:r})}var bg=v("ZodReadonly",(e,r)=>{al.init(e,r),K.init(e,r),e._zod.processJSONSchema=(t,n,o)=>as(e,t,n,o),e.unwrap=()=>e._zod.def.innerType;});function xg(e){return new bg({type:"readonly",innerType:e})}var Sg=v("ZodCustom",(e,r)=>{cl.init(e,r),K.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Hl(e,t);});function Cg(e,r={}){return Al(Sg,e,r)}function Pg(e){return Ul(e)}var js=ie(["Google"]),Gt=ie(["pdf","word","excel","img","txt","unknown"]);Gt.exclude(["unknown"]);var kg=le({lastModified:Cr().nullable(),uid:L().trim().optional(),uploadDate:Cr().optional(),sizeInBytes:Cr(),name:L().trim(),path:L().trim(),extension:L().trim().startsWith(".").lowercase(),description:L().trim().optional(),mime:L().trim().includes("/"),alias:Gt}),Ns={txt:["text/plain"],img:["image/jpeg","image/png","image/jpg"],excel:["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.ms-excel","application/vnd.ms-excel.sheet.macroEnabled.12"],word:["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/msword","application/vnd.microsoft.portable-executable"],pdf:["application/pdf"],unknown:[]},$g=L().regex(/^(\+\d{1,2}\s)?\(?\d{3}\)?[\s.-]\d{3}[\s.-]\d{4}$/),wg=ie(["first","last"]),zg=Ht(wg,L().trim()),Xt=L().trim();le({streetAddress:Xt,city:Xt.optional(),parish:Xt,country:Xt});var Dg=le({name:zg,photoUrl:L().nullish(),email:Ts(),phoneNumber:$g.optional()});le({uid:L(),...Dg.shape});le({body:le({text:L().trim(),html:L().optional()}),recipients:Wt(L().trim()),subject:L().trim(),attachments:Wt(kg)});le({timestamp:Cr(),status:ie(["success","error","info"]),response:L().trim().or(Ht(ie(["tag","message"]),L().trim()))});var Ig=ie(["BAD_REQUEST","NOT_FOUND","OUT_OF_BOUNDS","INVALID","INTERNAL_ERROR","MISSING_PERMISSIONS","PROHIBITED_ACTION","INCOMPLETE_FORM","SERVER_ERROR","REQUEST_TIMEDOUT","UNKNOWN","UNVERIFIED","INVALID_TOKEN","CANCELLED"]);le({code:Ig,title:L().optional(),message:L().trim(),cause:L().optional()});le({title:L().trim(),message:L().trim()});ie(["success","pending","error"]);ie(["JMD"]);function Us(e){let r=t=>{e.onChange(t.currentTarget.files);};return jsxs(FileUpload.Root,{alignItems:"stretch",width:e.width,maxWidth:e.maxWidth||"xl",maxFiles:e.maxFiles||(e.multiple?1/0:1),overflow:"hidden",height:e.height,accept:Bg(e.accepts),children:[jsx(FileUpload.HiddenInput,{onChange:r}),e.children,e.showList&&jsx(FileUpload.List,{...e.slotProps?.fileList})]})}var Bg=e=>e.flatMap(r=>Ns[r]);function SI(e){return jsx(Us,{...e,children:jsxs(FileUpload.Dropzone,{borderRadius:"xl",height:"full",width:"full",overflow:"hidden",backgroundColor:x(e.backgroundColor||"transparent"),borderColor:x(e.borderColor||"outlineVariant"),color:x(e.color||"onSurface"),cursor:"pointer",children:[jsx(Icon,{size:"md",color:"fg.muted",children:jsx(LuUpload,{})}),jsx(FileUpload.DropzoneContent,{maxHeight:"100%",overflow:"hidden",children:e.content||jsxs(Fragment,{children:[jsx(Box,{children:"Drag and drop files here"}),jsx(Box,{color:"fg.muted",children:".png, .jpg up to 5MB"})]})})]})})}c();var Js=createContext(null);function OI(e){let r=A({defaultValue:null}),t=A({defaultValue:e.defaultValue??""}),[n,o]=useState(e.value??t.read()),[i,a]=useState(false),l=e.activationMode||"click",s=e.size||"md",u=P=>{e.readOnly||(e.value===void 0&&o(P),e.onChange?.(P));},f=()=>{u(t.read());},p=()=>{e.readOnly||(e.onEdit?.(),!e.preventDefault&&a(true));},h=(P={asClick:true})=>{r.upsert("cancel"),f(),P.asClick&&e.onCancelClick?.(),a(false);},y=P=>{P.preventDefault(),a(false);},z=(P=true)=>{t.upsert(n),P&&(r.upsert("save"),e.onSaveClick?.(n)),e.onSave?.(n),a(false);},b=()=>{r.upsert("edit"),e.onEditClick?.(),p();},S=()=>{z(false);},$=()=>{e.onContentClick?.(),p();},w={align:"center",gap:e.rowGap??"sm",width:e.width,maxWidth:"full"};return jsx(Js.Provider,{value:{padding:".25rem",iconSize:e.iconSize||s},children:jsxs(g,{...w,asChildren:!e.label,row:false,align:"start",children:[e.label&&jsx(C,{text:e.label,fontSize:R[s],fade:i?.75:.5,style:{transition:"all 200ms linear"}}),jsxs(g,{...w,grid:true,gap:e.columnGap??w.gap,gridCols:e.hideControls===true||Array.isArray(e.hideControls)&&["cancel","save","edit"].every(P=>e.hideControls.includes(P))?"1fr":e.control?"1fr auto":i?"1fr auto auto":"1fr auto",justify:e.spaceBetween?"space-between":void 0,children:[i&&!e.readOnly?jsx(g,{width:"full",align:"center",gap:"md",children:jsx(xe,{autoFocus:true,disableTransition:true,readOnly:e.readOnly,allowedChars:e.allowedChars,maxChars:e.maxChars,value:n,corners:"md",validateInput:e.validateInput,width:e.inputWidth,focusColor:e.focusColor,size:e.inputSize||s,placeholder:e.placeholder,showCharCounter:e.showCharCounter,slotProps:{charCounter:{fontSize:e.charCounterFontSize}},onChange:u,onBlur:y,onEnterKeyPressed:S,onEscapeKeyPressed:()=>h({asClick:false})})}):jsx(g,{spill:"hidden",width:"full",padding:e.contentPadding??["md",["top","bottom"]],corners:"sm",fontSize:e.fontSize||s,cursor:"text",css:{transition:"all 200ms linear",":hover":e.readOnly?void 0:{backgroundColor:"onSurface[0.1]"}},onDoubleClick:l==="dblclick"?()=>h({asClick:false}):void 0,onClick:l==="click"?$:void 0,children:jsx(gr,{...e.slotProps?.popover,allowInteractions:true,asChild:e.showPopoverOnHover===false||e.slotProps?.popover?.asChild===true?true:!!n,content:(e.slotProps?.popover?.content||e.renderPopoverContent?.(n))??n,displayAction:"hover",maxWidth:e.slotProps?.popover?.maxWidth||"10rem",maxHeight:e.slotProps?.popover?.maxHeight||"5rem",children:jsx("span",{style:ve({opacity:e.placeholder&&!n?.85:1,width:"100%"}),children:(e.formatContent?.(n)??n)||e.placeholder})})}),e.hideControls!==true&&(e.control||jsx(Lg,{editing:i,hideControl:typeof e.hideControls=="boolean"?void 0:e.hideControls,onCancel:h,onSave:z,onEdit:b}))]})]})})}function Lg(e){let r=t=>Array.isArray(e.hideControl)?e.hideControl.includes(t):e.hideControl===t;return e.editing?jsxs(Fragment,{children:[!r("cancel")&&jsx(lo,{outlined:true,icon:LuX,onClick:e.onCancel}),!r("save")&&jsx(lo,{preventDefault:true,outlined:true,icon:LuCheck,onClick:e.onSave})]}):r("edit")?void 0:jsx(lo,{icon:LuPencilLine,onClick:e.onEdit})}function lo(e){let{padding:r,iconSize:t}=useContext(Js);return jsx(g,{asChildren:e.outlined,corners:"sm",css:{transition:"all 200ms linear",":hover":{backgroundColor:"onSurface[0.1]"}},children:jsx(T,{size:t,padding:r,leadingEl:e.icon,backgroundColor:"transparent",borderColor:e.outlined?"onSurface[0.25]":void 0,onClick:e.onClick,aspectRatio:1,color:"onSurface",corners:"sm",onMouseDown:n=>{n.preventDefault();}})})}c();var uo=createContext(null);function Mg(e){return jsx(uo,{value:e.itemFade?{fade:e.itemFade}:{fade:.5},children:jsx(g,{...e,size:e.size??"full",centerContent:e.centerContent??true,gap:e.gap||"lg",children:e.children})})}function Jg(e){let{fade:r}=useContext(uo);return jsx(g,{fade:e.disableFade?1:r,size:e.size||"4rem",children:e.element})}function Wg(e){let{fade:r}=useContext(uo);return jsxs(g,{align:"center",gap:e.gap||"sm",children:[jsx(C,{fontWeight:"bold",fontSize:e.titleFontSize||"lg",text:e.title}),jsx(C,{fade:r,fontSize:e.descriptionFontSize,text:e.description})]})}var Kt={Root:Mg,Indicator:Jg,Content:Wg};c();function He(e){let r=()=>{let t={...e.fallbackStyle,display:e.fallbackStyle?.display||"flex",alignItems:e.fallbackStyle?.alignItems||"center",justifyContent:e.fallbackStyle?.justifyContent||"center"};if(!e.disableFallback){if(typeof e.fallback=="string")return jsx(Avatar.Fallback,{name:e.fallback,style:t});if(e.fallback&&Be__default.isValidElement(e.fallback))return e.fallback;if(e.fallback){let n=e.fallback;return jsx(n,{size:"50%",style:t})}return jsx(Avatar.Fallback,{style:t})}};return jsxs(Avatar.Root,{size:e.size||"md",backgroundColor:x(e.backgroundColor),color:x(e.color),style:e.style,children:[jsx(r,{}),jsx(Avatar.Image,{src:e.src})]})}c();function Xs(e){let r=useRef(null),t=useRef(null);return e.asChild?e.children:jsxs(Box,{position:"relative",ref:r,children:[e.children,jsx(Float,{ref:t,offset:e.offset||(e.circleChild?".25rem":void 0),placement:e.placement,children:e.badge})]})}c();var Gs=createContext(null);function tv(e){return jsx(Gs.Provider,{value:{gap:e.gap},children:jsx(g,{row:true,clickable:e.clickable,gap:e.gap??"md",padding:e.padding??"md",corners:e.corners??"lg",height:e.height,width:e.width,maxWidth:e.maxWidth,minWidth:e.minWidth,backgroundColor:e.backgroundColor,color:e.color,align:"center",style:e.style,spill:e.spill??"hidden",css:e.sx,onClick:e.onClick,children:e.children})})}function Ks(e){return r=>{let{children:t,className:n,row:o=true,spill:i="hidden",centerContent:a=true,align:l="center",...s}=r;return jsx(g,{className:n,...s,row:o,spill:i,centerContent:a,align:l,children:t})}}function Ys(e){return r=>jsx("span",{style:(()=>{let n=k({...e,fontSize:r.fontSize||e.fontSize,fontWeight:r.fontWeight||e.fontWeight,fade:r.fade||e.fade,color:r.color||e.color||"inherit"});return !r.truncateStyle||r.truncateStyle==="none"?n:r.truncateStyle==="ellipsis"?ve(n):Br(r.truncateStyle.lineCount,n)})(),children:r.value})}var nv=Ks(),ov=Ks(),iv=e=>{let{gap:r=e.gap}=useContext(Gs);return jsx(g,{gap:r,...e,spill:e.spill||"hidden",maxWidth:e.maxWidth||"full",children:e.children})},av=Ys({fontWeight:"bold",fontSize:"xs",fade:.75}),cv=Ys({fontSize:"sm"}),ue={Root:tv,LeadingAddOn:nv,TrailingAddOn:ov,Content:iv,Label:av,Item:cv};c();function uv(e){let r=()=>{if(typeof e.fallback=="string"||Be__default.isValidElement(e.fallback))return e.fallback;let n=e.fallback||PiImageBrokenLight;return jsx(n,{size:"3rem"})};return jsxs(g,{className:e.className,padding:"1px",corners:"lg",backgroundColor:"onSurface",color:"surface",gap:"sm",spill:"hidden",fade:e.fade,height:e.height??"fit-content",width:e.width??"14rem",style:{...e.style,boxShadow:"rgba(0, 0, 0, 0.35) 0px 5px 15px"},children:[jsx(g,{centerContent:true,height:e.mediaHeight??"7rem",width:"full",backgroundColor:"surface",color:"onSurface",borderColor:"surface",corners:{top:"lg"},spill:"hidden",children:e.src?jsx(Ae,{cover:e.coverImg??true,size:e.imgSize??"full",corners:e.imgCorners??"md",spill:"hidden",src:e.src,style:{boxShadow:"rgba(0, 0, 0, 0.24) 0px 3px 8px"}}):jsx(r,{})}),jsxs(g,{width:"full",gap:"md",padding:"md",align:"start",spill:"hidden",children:[jsxs(g,{width:"full",gap:0,spill:"hidden",children:[jsx("span",{children:e.title,style:k({fontSize:e.titleFontSize??"md"})}),e.description&&jsx("span",{children:e.description,style:k({fontSize:e.descriptionFontSize??"xs",fade:.5})})]}),e.children]})]})}function dv(e){return jsx(g,{...e,width:e.width??"full",spill:e.spill||"hidden",children:e.children})}var fB={Root:uv,Content:dv};c();function mv(e){let r={backgroundColor:"onSurface",color:"surface",padding:"md",corners:"lg"},t=i=>e[i]??r[i],n=i=>{if(!e.children)return e[i]||r[i]},o=e.disableBoxShadow?"none":e.style?.boxShadow||"rgba(0, 0, 0, 0.35) 0px 5px 15px";return jsxs(g,{className:e.className,asChildren:!e.children,height:t("height"),width:t("width"),backgroundColor:t("backgroundColor"),color:t("color"),padding:t("padding"),corners:t("corners"),gap:"md",spill:"hidden",style:{...e.style,boxShadow:o},children:[jsxs(g,{row:true,className:e.children?void 0:e.className,gap:"md",align:"center",height:n("height"),width:n("width"),backgroundColor:n("backgroundColor"),color:n("color"),padding:n("padding"),corners:n("corners"),spill:"hidden",style:e.children?void 0:{...e.style,boxShadow:o},children:[jsx(He,{src:e.avatarSrc,size:e.avatarSize??"sm",fallback:e.avatarFallback,backgroundColor:e.avatarBackgroundColor,color:e.avatarColor}),jsxs(g,{width:"full",spill:"hidden",children:[jsx("span",{children:e.title,style:ve(k({fontSize:e.titleFontSize??"sm",fontWeight:e.titleFontWeight,fade:e.titleFade}))}),jsx("span",{children:e.description,style:ve(k({fade:e.descriptionFade??.5,fontSize:e.descriptionFontSize??"xs",fontWeight:e.descriptionFontWeight}))})]})]}),e.children]})}var SB={Root:mv,Content:g};c();function Hi(e){let[r,t]=useState(e.defaultChecked??false),n=e.checked??r,o=e.checked!==void 0,i=()=>{e.onClick?.(),o||(e.onChange?.(!n),t(!n));};return jsx(g,{centerContent:true,cursor:e.disabled?"not-allowed":"pointer",fade:e.disabled?.5:1,size:e.size,corners:e.corners??"sm",padding:e.padding??"sm",backgroundColor:n?e.accentColor||"primaryContainer":"transparent",color:e.iconColor||"onPrimaryContainer",borderColor:e.borderColor||"onSurface[0.1]",style:{boxShadow:e.disableShadow?void 0:"rgba(0, 0, 0, 0.25) 0px 2px 4px 0px inset"},onClick:e.disabled?void 0:i,children:jsx(IoMdCheckmark,{size:e.iconSize,style:{opacity:n?1:0}})})}c();c();function hv(e){let{triggerRerender:r}=G(),t=k({...e,padding:e.padding||"xl",corners:e.corners||"md",gap:e.gap||"lg"}),n=({open:i})=>{e.onOpenChange?.(i),i||e.onClose?.();},o=()=>{e.controller?.hide?.(),e.rerenderOnClose&&r();};if(e.controller?.isOpen!==false)return jsxs(Dialog.Root,{unmountOnExit:e.unmountOnExit,open:e.controller?.isOpen,onEscapeKeyDown:e.closeOnEscape??true?e.controller?.hide:void 0,scrollBehavior:e.scrollBehavior,onInteractOutside:e.closeOnInteractOutside??true?e.controller?.hide:void 0,placement:e.placement||"center",closeOnEscape:e.closeOnEscape,closeOnInteractOutside:e.closeOnInteractOutside,onOpenChange:n,onExitComplete:o,motionPreset:e.enterAnimation||"slide-in-bottom",children:[e.triggerElement&&jsx(Dialog.Trigger,{asChild:true,children:e.triggerElement}),jsxs(Portal,{children:[jsx(Dialog.Backdrop,{}),jsx(Dialog.Positioner,{children:jsxs(Dialog.Content,{style:t,children:[e.children,!e.hideCloseButton&&jsx(Dialog.CloseTrigger,{asChild:true,children:jsx(CloseButton,{size:e.closeButtonSize||"sm",onClick:e.controller?.hide})})]})})]})]})}var vo=(e,r)=>t=>{let n=Dialog[e],o={...t,spill:t.spill||"hidden"};return Object.keys(r||{}).forEach(i=>{let a=i;o?.[a]||(o=Object.assign(o,{[a]:r[a]}));}),jsx(n,{width:"full",height:"full",overflow:"hidden",children:jsx(g,{...o,children:t.children})})},yv=vo("Header",{fontSize:"xl",fontWeight:"bold"}),_v=vo("Body",{gap:"md"}),bv=vo("Footer",{row:true,gap:"sm"}),xv=e=>jsx(Dialog.CloseTrigger,{asChild:true,children:e.wrap?jsx("div",{...e.slotProps?.divWrapper,children:e.children}):e.children}),Sv=e=>jsx(Dialog.ActionTrigger,{asChild:true,children:e.children}),F={Root:hv,Header:yv,Body:_v,Footer:bv,CloseTrigger:xv,ActionTrigger:Sv};function VB(e){let r=e.severity||"error",t=x(r,{preference:"res"});return jsxs(F.Root,{controller:e.controller,width:e.width??"25rem",height:e.height,minHeight:e.minHeight,maxHeight:e.maxHeight,minWidth:e.minWidth,maxWidth:e.maxWidth,triggerElement:e.triggerElement,children:[jsx(F.Header,{fontSize:"2xl",children:e.title}),jsxs(F.Body,{fade:.75,children:[jsx("span",{children:e.message.split(`
39
- `).map(n=>jsxs(Fragment,{children:[n,jsx("br",{})]}))}),e.disclaimer&&jsx(Qs,{width:"full",facade:n=>n==="error"?"warning":n,hideLabel:e.hideDisclaimerLabel,severity:r,message:e.disclaimer})]}),jsxs(F.Footer,{gap:"md",children:[jsx(F.ActionTrigger,{children:jsx(T,{size:"sm",fade:.75,color:"onSurface",backgroundColor:"transparent",text:e.cancelLabel||"Cancel",onClick:e.onCancelClick})}),jsx(T,{async:true,size:"sm",text:e.action.label,backgroundColor:t,color:"white",onClick:e.action.onClick})]})]})}c();var ho=createContext(null);function qB(e){let r=e.sections.flatMap(b=>typeof b=="object"?b.nestedItems:b),t=e.defaultSection?r.findIndex(b=>b===e.defaultSection):0,[n,o]=useState(t>=0?t:0),{triggerRerender:i}=G(),a=A({defaultValue:[]}),l=r[n],s=Array.isArray(e.ignoredSections)?e.ignoredSections:strictArray([e.ignoredSections]),u=n<=0;e.checkCompletionOnMount&&useEffect(()=>{r.forEach((b,S)=>{p(b,S);}),i();},[]);let f=(b=a.read())=>r.filter(S=>!b.includes(S)&&!s.includes(S)),p=(b=l,S=n)=>{let $=a.read();if(!s.includes(b)){if(e.isSectionComplete(b)&&!$.includes(b))$=[...$,b];else if(!e.isSectionComplete(b)&&$.includes(b))$=$.filter((w,P)=>P!==S);else return;a.upsert($),e.onSectionsStatusChange?.(f($),$);}},h=b=>{p(),o(r.findIndex(S=>S===b));},y=()=>{n>=r.length-1||(p(),o(n+1));},z=()=>{u||(p(),o(n-1));};return jsx(ho.Provider,{value:{activeSection:l,completedSections:a.read(),rawSections:e.sections},children:jsx(F.Root,{controller:e.controller,triggerElement:e.triggerElement,unmountOnExit:e.unmountOnExit,height:"30rem",width:"45rem",maxWidth:"45rem",backdropBlur:"1rem",padding:"0px",rerenderOnClose:e.rerenderOnClose,backgroundColor:"transparent",spill:"hidden",children:jsxs(F.Body,{grid:true,gap:"0px",width:"full",height:"full",spill:"hidden",gridCols:".45fr 1fr",children:[jsx(zv,{title:e.title,onSectionClick:h}),jsx(Dv,{hideSubmitButton:e.hideSubmitButton,sectionMapper:e.sectionMapper,previousDisabled:u,onPreviousClick:z,onNextClick:y,incompleteSections:f(),onSubmitClick:e.onSubmit})]})})})}function zv(e){let{rawSections:r,activeSection:t,completedSections:n}=useContext(ho);return jsxs(g,{size:"full",padding:"xl",backgroundColor:"surfaceContainer",gap:e.title?"xl":void 0,spill:"hidden",children:[e.title&&jsx(g,{fontSize:"lg",fontWeight:"bold",spill:"hidden",children:e.title}),jsx(kn,{width:"full",items:r,isItemActive:o=>t===o,isItemCompleted:o=>n.includes(o),onItemClick:e.onSectionClick})]})}function Dv(e){let{activeSection:r}=useContext(ho),{title:t,description:n,element:o}=e.sectionMapper[r],i=typeof o=="function"?jsx(o,{incompleteSections:e.incompleteSections}):o;return jsxs(g,{size:"full",backgroundColor:"surfaceContainer[0.5]",padding:"3rem",gap:"xl",grid:true,gridRows:"auto 1fr auto",justify:"space-between",spill:"hidden",children:[jsxs(g,{children:[jsx(C,{text:t,fontSize:"xl",fontWeight:"bold"}),jsx("span",{children:n,style:{opacity:.75}})]}),jsx(g,{size:"full",gap:"lg",children:i}),jsxs(g,{row:true,width:"full",align:"center",justify:"space-between",children:[jsx(_o,{disabled:e.previousDisabled,onClick:e.onPreviousClick}),r==="Submission"?!e.hideSubmitButton&&jsx(bo,{disabled:!!e.onSubmitClick,onClick:e.onSubmitClick}):jsx(yo,{onClick:e.onNextClick})]})]})}c();c();var Iv=Ne({preset:{text:"Save",async:true}}),xo=Iv;function uO(e){let{triggerRerender:r}=G(),t=A({defaultValue:Object.fromEntries(Object.entries(e.fields).map(([a,l])=>[a,typeof l=="object"&&"defaultValue"in l?l.defaultValue:e.defaultValue?.[a]??""]))}),n=e.actionButtionSize||"lg",o=()=>{e.onSave?.(t.read());},i=()=>{e.onCancel?.();};return jsxs(F.Root,{rerenderOnClose:true,width:e.width,closeButtonSize:e.closeButtonSize||"md",controller:e.controller,triggerElement:e.triggerElement,onClose:()=>r(),children:[jsx(F.Header,{fontSize:"2rem",children:e.title||"Edit Form"}),jsx(F.Body,{padding:"xs",children:Object.keys(e.fields).map(a=>{let l=a,s=e.fields[l],u=t.read()?.[l]??"",f=typeof s.label=="function"?s.label(a):!s.label||s.label==="prop-name"?e?.formatFieldPropName?.(a)??a:s.label,p=h=>t.upsert(y=>({...y||{},[l]:h}));return s.options?jsx(Ov,{label:f,size:e.textfieldSize,defaultValue:u,disabled:s.disabled,placeholder:s.placeholder,options:s.options,onChange:p},a):jsx(xe,{width:"full",placeholder:s.placeholder,label:f,size:e.textfieldSize,defaultValue:u,disabled:s.disabled,allowedChars:s.allowedChars||e.allowedChars,onChange:p},l)})}),jsxs(F.Footer,{children:[jsx(F.ActionTrigger,{children:jsx(ot,{fade:.5,size:n,onClick:i})}),jsx(F.ActionTrigger,{children:jsx(xo,{size:n,onClick:o})})]})]})}function Ov(e){let[r,t]=useState(e.defaultValue),n=({value:o})=>{e.onChange(o),t(o);};return jsx(Nr,{wrap:true,asChild:e.disabled,width:"match-anchor",maxHeight:"10rem",isSelected:({value:o})=>r===o,options:e.options.map(o=>({value:o.trim()})),onOptionClick:n,slotProps:{divWrapper:{style:{width:"100%"}}},children:jsx(xe,{readOnly:true,size:e.size,disabled:e.disabled,label:e.label,width:"full",value:r,placeholder:e.placeholder})})}c();var ze={sidebar:"fv-sidebar",topbar:"fv-topbar",viewer:"fv-viewer"},at=createContext(null);function Fv(e){let r=x(e.borderColor||"outline[0.1]"),t=ge.md;return jsx(at.Provider,{value:{borderColor:r,corners:t,navThickness:e.navThickness||"3rem"},children:jsx(g,{minHeight:e.minHeight,maxHeight:e.maxHeight,minWidth:e.minWidth,maxWidth:e.maxWidth,corners:t,size:e.size,backgroundColor:e.backgroundColor??"surfaceContainer",height:e.height??"30rem",width:e.width??"40rem",spill:"hidden",grid:true,gridCols:"auto 1fr",gridRows:"auto 1fr",borderColor:r,style:{gridTemplateAreas:`"${ze.topbar} ${ze.topbar}" "${ze.sidebar} ${ze.viewer}"`,boxShadow:"rgba(0, 0, 0, 0.35) 0px 5px 15px"},children:e.children})})}function jv(e){let{navThickness:r}=useContext(at),t=Qt(e.file.alias);return jsxs(g,{...e,row:true,align:"center",maxWidth:e.maxWidth||"45%",children:[t&&jsx(t.filled,{style:k({size:r||e.styles?.icon?.size,color:"pdf",style:{padding:k({padding:e.styles?.icon?.padding||".65rem"})?.padding,paddingLeft:`calc(.65rem - ${H.md})`}})}),jsxs(g,{asChildren:e.hideFileMetadata,children:[jsx(C,{ellipsis:true,color:e.styles?.filename?.color,fontWeight:e.styles?.filename?.fontWeight,fontSize:e.styles?.filename?.fontSize||"1rem",text:e.file.name}),!e.hideFileMetadata&&jsxs(g,{row:true,fontSize:e.styles?.fileMetadata?.fontSize||".7rem",gap:e.styles?.fileMetadata?.gap??"sm",fade:e.styles?.fileMetadata?.fade??.5,color:e.styles?.fileMetadata?.color,align:"center",children:[jsx(C,{fontWeight:"bold",text:(e.file.extension||e.file.alias)?.toUpperCase()}),jsx(g,{size:e.styles?.fileMetadataSeparator?.size||".3rem",corners:e.styles?.fileMetadataSeparator?.corners??"circle",backgroundColor:e.styles?.fileMetadataSeparator?.color||"onSurface"}),jsx(C,{fade:.75,text:format("file-size",e.file.sizeInBytes)})]})]})]})}function Nv(e){let{navThickness:r}=useContext(at),{children:t,...n}=e;return jsx(g,{...n,row:true,id:ze.topbar,height:r,width:"full",align:"center",gap:e.gap??"md",justify:e.justify||"space-between",style:{...e.style||{},padding:e.style?.padding||"0px .5rem",gridArea:ze.topbar},children:e.children})}var nu=createContext(null);function Av(e){let{children:r,onOptionClick:t,...n}=e,{navThickness:o}=useContext(at);return jsx(nu.Provider,{value:{onOptionClick:i=>e.onOptionClick?.(i)},children:jsx(g,{...n,id:ze.sidebar,height:"full",width:o,align:"center",gap:n.gap||"md",padding:["md",["top","bottom"]],style:{...n.style,gridArea:ze.sidebar},children:e.children})})}function Uv(e){let{onOptionClick:r}=useContext(nu),t=()=>{e.onClick?.(),r(e.label);};return jsx(gr,{displayAction:"hover",placement:"right",fontSize:"sm",content:e.label,asChild:e.disabled,children:jsx(g,{fade:e.disabled?.5:1,cursor:e.disabled?"not-allowed":e.selected?"default":"pointer",corners:e.corners??"md",padding:e.padding??"md",borderColor:e.selected?"onPrimaryContainer[0.1]":"transparent",css:{transition:"background-color 200ms linear",backgroundColor:e.backgroundColor?.(e.selected)??(e.selected?"primaryContainer":"outline[0.1]"),color:e.color?.(e.selected)??(e.selected?"onPrimaryContainer":"onSurface"),":hover":e.selected?void 0:{...e.css?.[":hover"],backgroundColor:e.css?.[":hover"].backgroundColor||"outline[0.25]"}},onClick:e.disabled?void 0:t,children:jsx(e.icon,{size:e.iconSize??"1.1rem"})})})}function Lv(e){let{borderColor:r,corners:t}=useContext(at),n=useRef(null);useEffect(()=>{o();let i=new MutationObserver(a=>{for(let l of a)l.type==="childList"&&o();});return i.observe(n.current?.parentNode,{childList:true}),()=>{i.disconnect();}},[]);let o=()=>{let i=["sidebar","topbar"],a=n.current?.parentElement,l=i.filter(s=>a?.querySelector(`#${ze[s]}`));i.every(s=>l.includes(s))?Object.assign(n.current?.style,{borderRadius:`${t} 0 0 0`,borderColor:`${r} transparent transparent ${r}`}):l.includes("sidebar")?Object.assign(n.current?.style,{borderRadius:`${t} 0 0 ${t}`,borderLeftColor:r}):l.includes("topbar")?Object.assign(n.current?.style,{borderRadius:0,borderTopColor:r}):Object.assign(n.current?.style,{borderRadius:t,borderColor:r});};return jsx(g,{ref:n,size:"full",centerContent:e.centerContent??true,backgroundColor:e.backgroundColor||"onSurface[0.1]",color:e.color||"onSurface",spill:"hidden",borderColor:"transparent",style:{gridArea:ze.viewer,boxShadow:"rgba(50, 50, 93, 0.25) 0px 30px 60px -12px inset, rgba(0, 0, 0, 0.3) 0px 18px 36px -18px inset"},children:e.children})}function Zv(e){let r=e.thickness||"0.0104in",t=e.length||"70%",n={horizontal:{height:r,width:t},vertical:{height:t,width:r}}[e.orientation||"vertical"];return jsx(g,{...n,backgroundColor:e.color||"outline[0.1]"})}var _O={Root:Fv,Sidebar:Av,SidebarOption:Uv,Topbar:Nv,Viewer:Lv,Indicator:jv,Sep:Zv};c();var ou=(i=>(i["2xl"]="2rem",i.xl="1.75rem",i.lg="1.5rem",i.md="1.25rem",i.sm="1rem",i.xs=".85rem",i["2xs"]=".5rem",i))(ou||{});function iu(e){let r=ou[e.size||"sm"];return jsx(g,{hide:e.hide||e.content!==void 0&&!e.content,padding:e.padding||"xs",fontSize:e.fontSize||"xxs",corners:r,size:r,centerContent:true,backgroundColor:e.backgroundColor||"orange",color:e.color||"white",children:e.content})}c();function au(e){return jsxs(g,{row:true,clickable:true,width:"full",align:"center",justify:"space-between",corners:"lg",backgroundColor:"surfaceVariant[0.1]",padding:"lg",onClick:()=>{let t=(n,o=false)=>typeof n=="string"?n:Object.entries(n).map(([i,a],l,s)=>`${o?" ":""}${i}: ${[void 0,null,""].includes(a)?null:typeof a=="object"?`{
38
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let i of e.seen.entries()){let a=i[1];if(r===i[0]){o(i);continue}if(e.external){let s=e.external.registry.get(i[0])?.id;if(r!==i[0]&&s){o(i);continue}}if(e.metadataRegistry.get(i[0])?.id){o(i);continue}if(a.cycle){o(i);continue}if(a.count>1&&e.reused==="ref"){o(i);continue}}}function Vt(e,r){let t=e.seen.get(r);if(!t)throw new Error("Unprocessed schema. This is a bug in Zod.");let n=a=>{let l=e.seen.get(a),s=l.def??l.schema,u={...s};if(l.ref===null)return;let f=l.ref;if(l.ref=null,f){n(f);let p=e.seen.get(f).schema;p.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(s.allOf=s.allOf??[],s.allOf.push(p)):(Object.assign(s,p),Object.assign(s,u));}l.isParent||e.override({zodSchema:a,jsonSchema:s,path:l.path??[]});};for(let a of [...e.seen.entries()].reverse())n(a[0]);let o={};if(e.target==="draft-2020-12"?o.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?o.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?o.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let a=e.external.registry.get(r)?.id;if(!a)throw new Error("Schema is missing an `id` property");o.$id=e.external.uri(a);}Object.assign(o,t.def??t.schema);let i=e.external?.defs??{};for(let a of e.seen.entries()){let l=a[1];l.def&&l.defId&&(i[l.defId]=l.def);}e.external||Object.keys(i).length>0&&(e.target==="draft-2020-12"?o.$defs=i:o.definitions=i);try{let a=JSON.parse(JSON.stringify(o));return Object.defineProperty(a,"~standard",{value:{...r["~standard"],jsonSchema:{input:qr(r,"input"),output:qr(r,"output")}},enumerable:!1,writable:!1}),a}catch{throw new Error("Error converting schema to JSON.")}}function te(e,r){let t=r??{seen:new Set};if(t.seen.has(e))return false;t.seen.add(e);let n=e._zod.def;if(n.type==="transform")return true;if(n.type==="array")return te(n.element,t);if(n.type==="set")return te(n.valueType,t);if(n.type==="lazy")return te(n.getter(),t);if(n.type==="promise"||n.type==="optional"||n.type==="nonoptional"||n.type==="nullable"||n.type==="readonly"||n.type==="default"||n.type==="prefault")return te(n.innerType,t);if(n.type==="intersection")return te(n.left,t)||te(n.right,t);if(n.type==="record"||n.type==="map")return te(n.keyType,t)||te(n.valueType,t);if(n.type==="pipe")return te(n.in,t)||te(n.out,t);if(n.type==="object"){for(let o in n.shape)if(te(n.shape[o],t))return true;return false}if(n.type==="union"){for(let o of n.options)if(te(o,t))return true;return false}if(n.type==="tuple"){for(let o of n.items)if(te(o,t))return true;return !!(n.rest&&te(n.rest,t))}return false}var Zl=(e,r={})=>t=>{let n=Lt({...t,processors:r});return X(e,n),Zt(n,e),Vt(n,e)},qr=(e,r)=>t=>{let{libraryOptions:n,target:o}=t??{},i=Lt({...n??{},target:o,io:r,processors:{}});return X(e,i),Zt(i,e),Vt(i,e)};c();var Sp={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Vl=(e,r,t,n)=>{let o=t;o.type="string";let{minimum:i,maximum:a,format:l,patterns:s,contentEncoding:u}=e._zod.bag;if(typeof i=="number"&&(o.minLength=i),typeof a=="number"&&(o.maxLength=a),l&&(o.format=Sp[l]??l,o.format===""&&delete o.format),u&&(o.contentEncoding=u),s&&s.size>0){let f=[...s];f.length===1?o.pattern=f[0].source:f.length>1&&(o.allOf=[...f.map(p=>({...r.target==="draft-07"||r.target==="draft-04"||r.target==="openapi-3.0"?{type:"string"}:{},pattern:p.source}))]);}},Ml=(e,r,t,n)=>{let o=t,{minimum:i,maximum:a,format:l,multipleOf:s,exclusiveMaximum:u,exclusiveMinimum:f}=e._zod.bag;typeof l=="string"&&l.includes("int")?o.type="integer":o.type="number",typeof f=="number"&&(r.target==="draft-04"||r.target==="openapi-3.0"?(o.minimum=f,o.exclusiveMinimum=true):o.exclusiveMinimum=f),typeof i=="number"&&(o.minimum=i,typeof f=="number"&&r.target!=="draft-04"&&(f>=i?delete o.minimum:delete o.exclusiveMinimum)),typeof u=="number"&&(r.target==="draft-04"||r.target==="openapi-3.0"?(o.maximum=u,o.exclusiveMaximum=true):o.exclusiveMaximum=u),typeof a=="number"&&(o.maximum=a,typeof u=="number"&&r.target!=="draft-04"&&(u<=a?delete o.maximum:delete o.exclusiveMaximum)),typeof s=="number"&&(o.multipleOf=s);};var Jl=(e,r,t,n)=>{t.not={};};var Wl=(e,r,t,n)=>{};var Hl=(e,r,t,n)=>{let o=e._zod.def,i=Lr(o.entries);i.every(a=>typeof a=="number")&&(t.type="number"),i.every(a=>typeof a=="string")&&(t.type="string"),t.enum=i;};var Xl=(e,r,t,n)=>{if(r.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")};var Gl=(e,r,t,n)=>{if(r.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")};var Kl=(e,r,t,n)=>{let o=t,i=e._zod.def,{minimum:a,maximum:l}=e._zod.bag;typeof a=="number"&&(o.minItems=a),typeof l=="number"&&(o.maxItems=l),o.type="array",o.items=X(i.element,r,{...n,path:[...n.path,"items"]});},Yl=(e,r,t,n)=>{let o=t,i=e._zod.def;o.type="object",o.properties={};let a=i.shape;for(let u in a)o.properties[u]=X(a[u],r,{...n,path:[...n.path,"properties",u]});let l=new Set(Object.keys(a)),s=new Set([...l].filter(u=>{let f=i.shape[u]._zod;return r.io==="input"?f.optin===void 0:f.optout===void 0}));s.size>0&&(o.required=Array.from(s)),i.catchall?._zod.def.type==="never"?o.additionalProperties=false:i.catchall?i.catchall&&(o.additionalProperties=X(i.catchall,r,{...n,path:[...n.path,"additionalProperties"]})):r.io==="output"&&(o.additionalProperties=false);},ql=(e,r,t,n)=>{let o=e._zod.def,i=o.inclusive===false,a=o.options.map((l,s)=>X(l,r,{...n,path:[...n.path,i?"oneOf":"anyOf",s]}));i?t.oneOf=a:t.anyOf=a;},Ql=(e,r,t,n)=>{let o=e._zod.def,i=X(o.left,r,{...n,path:[...n.path,"allOf",0]}),a=X(o.right,r,{...n,path:[...n.path,"allOf",1]}),l=u=>"allOf"in u&&Object.keys(u).length===1,s=[...l(i)?i.allOf:[i],...l(a)?a.allOf:[a]];t.allOf=s;};var es=(e,r,t,n)=>{let o=t,i=e._zod.def;o.type="object",(r.target==="draft-07"||r.target==="draft-2020-12")&&(o.propertyNames=X(i.keyType,r,{...n,path:[...n.path,"propertyNames"]})),o.additionalProperties=X(i.valueType,r,{...n,path:[...n.path,"additionalProperties"]});},rs=(e,r,t,n)=>{let o=e._zod.def,i=X(o.innerType,r,n),a=r.seen.get(e);r.target==="openapi-3.0"?(a.ref=o.innerType,t.nullable=true):t.anyOf=[i,{type:"null"}];},ts=(e,r,t,n)=>{let o=e._zod.def;X(o.innerType,r,n);let i=r.seen.get(e);i.ref=o.innerType;},ns=(e,r,t,n)=>{let o=e._zod.def;X(o.innerType,r,n);let i=r.seen.get(e);i.ref=o.innerType,t.default=JSON.parse(JSON.stringify(o.defaultValue));},os=(e,r,t,n)=>{let o=e._zod.def;X(o.innerType,r,n);let i=r.seen.get(e);i.ref=o.innerType,r.io==="input"&&(t._prefault=JSON.parse(JSON.stringify(o.defaultValue)));},is=(e,r,t,n)=>{let o=e._zod.def;X(o.innerType,r,n);let i=r.seen.get(e);i.ref=o.innerType;let a;try{a=o.catchValue(void 0);}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}t.default=a;},as=(e,r,t,n)=>{let o=e._zod.def,i=r.io==="input"?o.in._zod.def.type==="transform"?o.out:o.in:o.out;X(i,r,n);let a=r.seen.get(e);a.ref=i;},cs=(e,r,t,n)=>{let o=e._zod.def;X(o.innerType,r,n);let i=r.seen.get(e);i.ref=o.innerType,t.readOnly=true;};var ls=(e,r,t,n)=>{let o=e._zod.def;X(o.innerType,r,n);let i=r.seen.get(e);i.ref=o.innerType;};c();c();c();c();c();var Dp=v("ZodISODateTime",(e,r)=>{Dc.init(e,r),M.init(e,r);});function ss(e){return Il(Dp,e)}var Bp=v("ZodISODate",(e,r)=>{Bc.init(e,r),M.init(e,r);});function us(e){return Ol(Bp,e)}var Ip=v("ZodISOTime",(e,r)=>{Ic.init(e,r),M.init(e,r);});function ds(e){return Tl(Ip,e)}var Op=v("ZodISODuration",(e,r)=>{Oc.init(e,r),M.init(e,r);});function ms(e){return El(Op,e)}c();c();var fs=(e,r)=>{Dt.init(e,r),e.name="ZodError",Object.defineProperties(e,{format:{value:t=>ma(e,t)},flatten:{value:t=>da(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,br,2);}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,br,2);}},isEmpty:{get(){return e.issues.length===0}}});};v("ZodError",fs);var ce=v("ZodError",fs,{Parent:Error});var ps=Bt(ce),gs=It(ce),vs=Wr(ce),hs=Hr(ce),ys=ga(ce),_s=va(ce),bs=ha(ce),xs=ya(ce),Ss=_a(ce),Cs=ba(ce),Ps=xa(ce),ks=Sa(ce);var K=v("ZodType",(e,r)=>(J.init(e,r),Object.assign(e["~standard"],{jsonSchema:{input:qr(e,"input"),output:qr(e,"output")}}),e.toJSONSchema=Zl(e,{}),e.def=r,e.type=r.type,Object.defineProperty(e,"_def",{value:r}),e.check=(...t)=>e.clone(_.mergeDefs(r,{checks:[...r.checks??[],...t.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]})),e.clone=(t,n)=>_e(e,t,n),e.brand=()=>e,e.register=((t,n)=>(t.add(e,n),e)),e.parse=(t,n)=>ps(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>vs(e,t,n),e.parseAsync=async(t,n)=>gs(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>hs(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>ys(e,t,n),e.decode=(t,n)=>_s(e,t,n),e.encodeAsync=async(t,n)=>bs(e,t,n),e.decodeAsync=async(t,n)=>xs(e,t,n),e.safeEncode=(t,n)=>Ss(e,t,n),e.safeDecode=(t,n)=>Cs(e,t,n),e.safeEncodeAsync=async(t,n)=>Ps(e,t,n),e.safeDecodeAsync=async(t,n)=>ks(e,t,n),e.refine=(t,n)=>e.check(Pg(t,n)),e.superRefine=t=>e.check(kg(t)),e.overwrite=t=>e.check(We(t)),e.optional=()=>Ds(e),e.nullable=()=>Bs(e),e.nullish=()=>Ds(Bs(e)),e.nonoptional=t=>hg(e,t),e.array=()=>Wt(e),e.or=t=>ag([e,t]),e.and=t=>lg(e,t),e.transform=t=>Is(e,dg(t)),e.default=t=>pg(e,t),e.prefault=t=>vg(e,t),e.catch=t=>_g(e,t),e.pipe=t=>Is(e,t),e.readonly=()=>Sg(e),e.describe=t=>{let n=e.clone();return Je.add(n,{description:t}),n},Object.defineProperty(e,"description",{get(){return Je.get(e)?.description},configurable:true}),e.meta=(...t)=>{if(t.length===0)return Je.get(e);let n=e.clone();return Je.add(n,t[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),Os=v("_ZodString",(e,r)=>{Gr.init(e,r),K.init(e,r),e._zod.processJSONSchema=(n,o,i)=>Vl(e,n,o);let t=e._zod.bag;e.format=t.format??null,e.minLength=t.minimum??null,e.maxLength=t.maximum??null,e.regex=(...n)=>e.check(Gn(...n)),e.includes=(...n)=>e.check(qn(...n)),e.startsWith=(...n)=>e.check(Qn(...n)),e.endsWith=(...n)=>e.check(eo(...n)),e.min=(...n)=>e.check(Sr(...n)),e.max=(...n)=>e.check(At(...n)),e.length=(...n)=>e.check(Ut(...n)),e.nonempty=(...n)=>e.check(Sr(1,...n)),e.lowercase=n=>e.check(Kn(n)),e.uppercase=n=>e.check(Yn(n)),e.trim=()=>e.check(to()),e.normalize=(...n)=>e.check(ro(...n)),e.toLowerCase=()=>e.check(no()),e.toUpperCase=()=>e.check(oo()),e.slugify=()=>e.check(io());}),Fp=v("ZodString",(e,r)=>{Gr.init(e,r),Os.init(e,r),e.email=t=>e.check(Hn(Ts,t)),e.url=t=>e.check(gl(jp,t)),e.jwt=t=>e.check(Bl(qp,t)),e.emoji=t=>e.check(vl(Np,t)),e.guid=t=>e.check(Xn($s,t)),e.uuid=t=>e.check(dl(Jt,t)),e.uuidv4=t=>e.check(ml(Jt,t)),e.uuidv6=t=>e.check(fl(Jt,t)),e.uuidv7=t=>e.check(pl(Jt,t)),e.nanoid=t=>e.check(hl(Ap,t)),e.guid=t=>e.check(Xn($s,t)),e.cuid=t=>e.check(yl(Up,t)),e.cuid2=t=>e.check(_l(Lp,t)),e.ulid=t=>e.check(bl(Zp,t)),e.base64=t=>e.check(wl(Gp,t)),e.base64url=t=>e.check(zl(Kp,t)),e.xid=t=>e.check(xl(Vp,t)),e.ksuid=t=>e.check(Sl(Mp,t)),e.ipv4=t=>e.check(Cl(Jp,t)),e.ipv6=t=>e.check(Pl(Wp,t)),e.cidrv4=t=>e.check(kl(Hp,t)),e.cidrv6=t=>e.check($l(Xp,t)),e.e164=t=>e.check(Dl(Yp,t)),e.datetime=t=>e.check(ss(t)),e.date=t=>e.check(us(t)),e.time=t=>e.check(ds(t)),e.duration=t=>e.check(ms(t));});function Z(e){return ul(Fp,e)}var M=v("ZodStringFormat",(e,r)=>{V.init(e,r),Os.init(e,r);}),Ts=v("ZodEmail",(e,r)=>{bc.init(e,r),M.init(e,r);});function Es(e){return Hn(Ts,e)}var $s=v("ZodGUID",(e,r)=>{yc.init(e,r),M.init(e,r);});var Jt=v("ZodUUID",(e,r)=>{_c.init(e,r),M.init(e,r);});var jp=v("ZodURL",(e,r)=>{xc.init(e,r),M.init(e,r);});var Np=v("ZodEmoji",(e,r)=>{Sc.init(e,r),M.init(e,r);});var Ap=v("ZodNanoID",(e,r)=>{Cc.init(e,r),M.init(e,r);});var Up=v("ZodCUID",(e,r)=>{Pc.init(e,r),M.init(e,r);});var Lp=v("ZodCUID2",(e,r)=>{kc.init(e,r),M.init(e,r);});var Zp=v("ZodULID",(e,r)=>{$c.init(e,r),M.init(e,r);});var Vp=v("ZodXID",(e,r)=>{wc.init(e,r),M.init(e,r);});var Mp=v("ZodKSUID",(e,r)=>{zc.init(e,r),M.init(e,r);});var Jp=v("ZodIPv4",(e,r)=>{Tc.init(e,r),M.init(e,r);});var Wp=v("ZodIPv6",(e,r)=>{Ec.init(e,r),M.init(e,r);});var Hp=v("ZodCIDRv4",(e,r)=>{Rc.init(e,r),M.init(e,r);});var Xp=v("ZodCIDRv6",(e,r)=>{Fc.init(e,r),M.init(e,r);});var Gp=v("ZodBase64",(e,r)=>{Nc.init(e,r),M.init(e,r);});var Kp=v("ZodBase64URL",(e,r)=>{Ac.init(e,r),M.init(e,r);});var Yp=v("ZodE164",(e,r)=>{Uc.init(e,r),M.init(e,r);});var qp=v("ZodJWT",(e,r)=>{Lc.init(e,r),M.init(e,r);});var Rs=v("ZodNumber",(e,r)=>{Jn.init(e,r),K.init(e,r),e._zod.processJSONSchema=(n,o,i)=>Ml(e,n,o),e.gt=(n,o)=>e.check(jt(n,o)),e.gte=(n,o)=>e.check(Yr(n,o)),e.min=(n,o)=>e.check(Yr(n,o)),e.lt=(n,o)=>e.check(Ft(n,o)),e.lte=(n,o)=>e.check(Kr(n,o)),e.max=(n,o)=>e.check(Kr(n,o)),e.int=n=>e.check(ws(n)),e.safe=n=>e.check(ws(n)),e.positive=n=>e.check(jt(0,n)),e.nonnegative=n=>e.check(Yr(0,n)),e.negative=n=>e.check(Ft(0,n)),e.nonpositive=n=>e.check(Kr(0,n)),e.multipleOf=(n,o)=>e.check(Nt(n,o)),e.step=(n,o)=>e.check(Nt(n,o)),e.finite=()=>e;let t=e._zod.bag;e.minValue=Math.max(t.minimum??Number.NEGATIVE_INFINITY,t.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(t.maximum??Number.POSITIVE_INFINITY,t.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(t.format??"").includes("int")||Number.isSafeInteger(t.multipleOf??.5),e.isFinite=true,e.format=t.format??null;});function Cr(e){return Rl(Rs,e)}var Qp=v("ZodNumberFormat",(e,r)=>{Zc.init(e,r),Rs.init(e,r);});function ws(e){return Fl(Qp,e)}var eg=v("ZodUnknown",(e,r)=>{Vc.init(e,r),K.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Wl();});function zs(){return jl(eg)}var rg=v("ZodNever",(e,r)=>{Mc.init(e,r),K.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Jl(e,t,n);});function tg(e){return Nl(rg,e)}var ng=v("ZodArray",(e,r)=>{Jc.init(e,r),K.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Kl(e,t,n,o),e.element=r.element,e.min=(t,n)=>e.check(Sr(t,n)),e.nonempty=t=>e.check(Sr(1,t)),e.max=(t,n)=>e.check(At(t,n)),e.length=(t,n)=>e.check(Ut(t,n)),e.unwrap=()=>e.element;});function Wt(e,r){return Al(ng,e,r)}var og=v("ZodObject",(e,r)=>{Xc.init(e,r),K.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Yl(e,t,n,o),_.defineLazy(e,"shape",()=>r.shape),e.keyof=()=>ie(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:zs()}),e.loose=()=>e.clone({...e._zod.def,catchall:zs()}),e.strict=()=>e.clone({...e._zod.def,catchall:tg()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>_.extend(e,t),e.safeExtend=t=>_.safeExtend(e,t),e.merge=t=>_.merge(e,t),e.pick=t=>_.pick(e,t),e.omit=t=>_.omit(e,t),e.partial=(...t)=>_.partial(Fs,e,t[0]),e.required=(...t)=>_.required(js,e,t[0]);});function le(e,r){let t={type:"object",shape:e??{},..._.normalizeParams(r)};return new og(t)}var ig=v("ZodUnion",(e,r)=>{Gc.init(e,r),K.init(e,r),e._zod.processJSONSchema=(t,n,o)=>ql(e,t,n,o),e.options=r.options;});function ag(e,r){return new ig({type:"union",options:e,..._.normalizeParams(r)})}var cg=v("ZodIntersection",(e,r)=>{Kc.init(e,r),K.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Ql(e,t,n,o);});function lg(e,r){return new cg({type:"intersection",left:e,right:r})}var sg=v("ZodRecord",(e,r)=>{Yc.init(e,r),K.init(e,r),e._zod.processJSONSchema=(t,n,o)=>es(e,t,n,o),e.keyType=r.keyType,e.valueType=r.valueType;});function Ht(e,r,t){return new sg({type:"record",keyType:e,valueType:r,..._.normalizeParams(t)})}var ao=v("ZodEnum",(e,r)=>{qc.init(e,r),K.init(e,r),e._zod.processJSONSchema=(n,o,i)=>Hl(e,n,o),e.enum=r.entries,e.options=Object.values(r.entries);let t=new Set(Object.keys(r.entries));e.extract=(n,o)=>{let i={};for(let a of n)if(t.has(a))i[a]=r.entries[a];else throw new Error(`Key ${a} not found in enum`);return new ao({...r,checks:[],..._.normalizeParams(o),entries:i})},e.exclude=(n,o)=>{let i={...r.entries};for(let a of n)if(t.has(a))delete i[a];else throw new Error(`Key ${a} not found in enum`);return new ao({...r,checks:[],..._.normalizeParams(o),entries:i})};});function ie(e,r){let t=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new ao({type:"enum",entries:t,..._.normalizeParams(r)})}var ug=v("ZodTransform",(e,r)=>{Qc.init(e,r),K.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Gl(e,t),e._zod.parse=(t,n)=>{if(n.direction==="backward")throw new yr(e.constructor.name);t.addIssue=i=>{if(typeof i=="string")t.issues.push(_.issue(i,t.value,r));else {let a=i;a.fatal&&(a.continue=false),a.code??(a.code="custom"),a.input??(a.input=t.value),a.inst??(a.inst=e),t.issues.push(_.issue(a));}};let o=r.transform(t.value,t);return o instanceof Promise?o.then(i=>(t.value=i,t)):(t.value=o,t)};});function dg(e){return new ug({type:"transform",transform:e})}var Fs=v("ZodOptional",(e,r)=>{el.init(e,r),K.init(e,r),e._zod.processJSONSchema=(t,n,o)=>ls(e,t,n,o),e.unwrap=()=>e._zod.def.innerType;});function Ds(e){return new Fs({type:"optional",innerType:e})}var mg=v("ZodNullable",(e,r)=>{rl.init(e,r),K.init(e,r),e._zod.processJSONSchema=(t,n,o)=>rs(e,t,n,o),e.unwrap=()=>e._zod.def.innerType;});function Bs(e){return new mg({type:"nullable",innerType:e})}var fg=v("ZodDefault",(e,r)=>{tl.init(e,r),K.init(e,r),e._zod.processJSONSchema=(t,n,o)=>ns(e,t,n,o),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap;});function pg(e,r){return new fg({type:"default",innerType:e,get defaultValue(){return typeof r=="function"?r():_.shallowClone(r)}})}var gg=v("ZodPrefault",(e,r)=>{nl.init(e,r),K.init(e,r),e._zod.processJSONSchema=(t,n,o)=>os(e,t,n,o),e.unwrap=()=>e._zod.def.innerType;});function vg(e,r){return new gg({type:"prefault",innerType:e,get defaultValue(){return typeof r=="function"?r():_.shallowClone(r)}})}var js=v("ZodNonOptional",(e,r)=>{ol.init(e,r),K.init(e,r),e._zod.processJSONSchema=(t,n,o)=>ts(e,t,n,o),e.unwrap=()=>e._zod.def.innerType;});function hg(e,r){return new js({type:"nonoptional",innerType:e,..._.normalizeParams(r)})}var yg=v("ZodCatch",(e,r)=>{il.init(e,r),K.init(e,r),e._zod.processJSONSchema=(t,n,o)=>is(e,t,n,o),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap;});function _g(e,r){return new yg({type:"catch",innerType:e,catchValue:typeof r=="function"?r:()=>r})}var bg=v("ZodPipe",(e,r)=>{al.init(e,r),K.init(e,r),e._zod.processJSONSchema=(t,n,o)=>as(e,t,n,o),e.in=r.in,e.out=r.out;});function Is(e,r){return new bg({type:"pipe",in:e,out:r})}var xg=v("ZodReadonly",(e,r)=>{cl.init(e,r),K.init(e,r),e._zod.processJSONSchema=(t,n,o)=>cs(e,t,n,o),e.unwrap=()=>e._zod.def.innerType;});function Sg(e){return new xg({type:"readonly",innerType:e})}var Cg=v("ZodCustom",(e,r)=>{ll.init(e,r),K.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Xl(e,t);});function Pg(e,r={}){return Ul(Cg,e,r)}function kg(e){return Ll(e)}var Ns=ie(["Google"]),Gt=ie(["pdf","word","excel","img","txt","unknown"]);Gt.exclude(["unknown"]);var $g=le({lastModified:Cr().nullable(),uid:Z().trim().optional(),uploadDate:Cr().optional(),sizeInBytes:Cr(),name:Z().trim(),path:Z().trim(),extension:Z().trim().startsWith(".").lowercase(),description:Z().trim().optional(),mime:Z().trim().includes("/"),alias:Gt}),As={txt:["text/plain"],img:["image/jpeg","image/png","image/jpg"],excel:["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.ms-excel","application/vnd.ms-excel.sheet.macroEnabled.12"],word:["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/msword","application/vnd.microsoft.portable-executable"],pdf:["application/pdf"],unknown:[]},wg=Z().regex(/^(\+\d{1,2}\s)?\(?\d{3}\)?[\s.-]\d{3}[\s.-]\d{4}$/),zg=ie(["first","last"]),Dg=Ht(zg,Z().trim()),Xt=Z().trim();le({streetAddress:Xt,city:Xt.optional(),parish:Xt,country:Xt});var Bg=le({name:Dg,photoUrl:Z().nullish(),email:Es(),phoneNumber:wg.optional()});le({uid:Z(),...Bg.shape});le({body:le({text:Z().trim(),html:Z().optional()}),recipients:Wt(Z().trim()),subject:Z().trim(),attachments:Wt($g)});le({timestamp:Cr(),status:ie(["success","error","info"]),response:Z().trim().or(Ht(ie(["tag","message"]),Z().trim()))});var Ig=ie(["BAD_REQUEST","NOT_FOUND","OUT_OF_BOUNDS","INVALID","INTERNAL_ERROR","MISSING_PERMISSIONS","PROHIBITED_ACTION","INCOMPLETE_FORM","SERVER_ERROR","REQUEST_TIMEDOUT","UNKNOWN","UNVERIFIED","INVALID_TOKEN","CANCELLED"]);le({code:Ig,title:Z().optional(),message:Z().trim(),cause:Z().optional()});le({title:Z().trim(),message:Z().trim()});ie(["success","pending","error"]);ie(["JMD"]);function Ls(e){let r=t=>{e.onChange(t.currentTarget.files);};return jsxs(FileUpload.Root,{alignItems:"stretch",width:e.width,maxWidth:e.maxWidth||"xl",maxFiles:e.maxFiles||(e.multiple?1/0:1),overflow:"hidden",height:e.height,accept:Og(e.accepts),children:[jsx(FileUpload.HiddenInput,{onChange:r}),e.children,e.showList&&jsx(FileUpload.List,{...e.slotProps?.fileList})]})}var Og=e=>e.flatMap(r=>As[r]);function PB(e){return jsx(Ls,{...e,children:jsxs(FileUpload.Dropzone,{borderRadius:"xl",height:"full",width:"full",overflow:"hidden",backgroundColor:x(e.backgroundColor||"transparent"),borderColor:x(e.borderColor||"outlineVariant"),color:x(e.color||"onSurface"),cursor:"pointer",children:[jsx(Icon,{size:"md",color:"fg.muted",children:jsx(LuUpload,{})}),jsx(FileUpload.DropzoneContent,{maxHeight:"100%",overflow:"hidden",children:e.content||jsxs(Fragment,{children:[jsx(Box,{children:"Drag and drop files here"}),jsx(Box,{color:"fg.muted",children:".png, .jpg up to 5MB"})]})})]})})}c();var Ws=createContext(null);function EB(e){let r=A({defaultValue:null}),t=A({defaultValue:e.defaultValue??""}),[n,o]=useState(e.value??t.read()),[i,a]=useState(false),l=e.activationMode||"click",s=e.size||"md",u=P=>{e.readOnly||(e.value===void 0&&o(P),e.onChange?.(P));},f=()=>{u(t.read());},p=()=>{e.readOnly||(e.onEdit?.(),!e.preventDefault&&a(true));},h=(P={asClick:true})=>{r.upsert("cancel"),f(),P.asClick&&e.onCancelClick?.(),a(false);},y=P=>{P.preventDefault(),a(false);},z=(P=true)=>{t.upsert(n),P&&(r.upsert("save"),e.onSaveClick?.(n)),e.onSave?.(n),a(false);},b=()=>{r.upsert("edit"),e.onEditClick?.(),p();},S=()=>{z(false);},$=()=>{e.onContentClick?.(),p();},w={align:"center",gap:e.rowGap??"sm",width:e.width,maxWidth:"full"};return jsx(Ws.Provider,{value:{padding:".25rem",iconSize:e.iconSize||s},children:jsxs(g,{...w,asChildren:!e.label,row:false,align:"start",children:[e.label&&jsx(C,{text:e.label,fontSize:T[s],fade:i?.75:.5,style:{transition:"all 200ms linear"}}),jsxs(g,{...w,grid:true,gap:e.columnGap??w.gap,gridCols:e.hideControls===true||Array.isArray(e.hideControls)&&["cancel","save","edit"].every(P=>e.hideControls.includes(P))?"1fr":e.control?"1fr auto":i?"1fr auto auto":"1fr auto",justify:e.spaceBetween?"space-between":void 0,children:[i&&!e.readOnly?jsx(g,{width:"full",align:"center",gap:"md",children:jsx(xe,{autoFocus:true,disableTransition:true,readOnly:e.readOnly,allowedChars:e.allowedChars,maxChars:e.maxChars,value:n,corners:"md",validateInput:e.validateInput,width:e.inputWidth,focusColor:e.focusColor,size:e.inputSize||s,placeholder:e.placeholder,showCharCounter:e.showCharCounter,slotProps:{charCounter:{fontSize:e.charCounterFontSize}},onChange:u,onBlur:y,onEnterKeyPressed:S,onEscapeKeyPressed:()=>h({asClick:false})})}):jsx(g,{spill:"hidden",width:"full",padding:e.contentPadding??["md",["top","bottom"]],corners:"sm",fontSize:e.fontSize||s,cursor:"text",css:{transition:"all 200ms linear",":hover":e.readOnly?void 0:{backgroundColor:"onSurface[0.1]"}},onDoubleClick:l==="dblclick"?()=>h({asClick:false}):void 0,onClick:l==="click"?$:void 0,children:jsx(gr,{...e.slotProps?.popover,allowInteractions:true,asChild:e.showPopoverOnHover===false||e.slotProps?.popover?.asChild===true?true:!!n,content:(e.slotProps?.popover?.content||e.renderPopoverContent?.(n))??n,displayAction:"hover",maxWidth:e.slotProps?.popover?.maxWidth||"10rem",maxHeight:e.slotProps?.popover?.maxHeight||"5rem",children:jsx("span",{style:ve({opacity:e.placeholder&&!n?.85:1,width:"100%"}),children:(e.formatContent?.(n)??n)||e.placeholder})})}),e.hideControls!==true&&(e.control||jsx(Zg,{editing:i,hideControl:typeof e.hideControls=="boolean"?void 0:e.hideControls,onCancel:h,onSave:z,onEdit:b}))]})]})})}function Zg(e){let r=t=>Array.isArray(e.hideControl)?e.hideControl.includes(t):e.hideControl===t;return e.editing?jsxs(Fragment,{children:[!r("cancel")&&jsx(lo,{outlined:true,icon:LuX,onClick:e.onCancel}),!r("save")&&jsx(lo,{preventDefault:true,outlined:true,icon:LuCheck,onClick:e.onSave})]}):r("edit")?void 0:jsx(lo,{icon:LuPencilLine,onClick:e.onEdit})}function lo(e){let{padding:r,iconSize:t}=useContext(Ws);return jsx(g,{asChildren:e.outlined,corners:"sm",css:{transition:"all 200ms linear",":hover":{backgroundColor:"onSurface[0.1]"}},children:jsx(E,{size:t,padding:r,leadingEl:e.icon,backgroundColor:"transparent",borderColor:e.outlined?"onSurface[0.25]":void 0,onClick:e.onClick,aspectRatio:1,color:"onSurface",corners:"sm",onMouseDown:n=>{n.preventDefault();}})})}c();var uo=createContext(null);function Jg(e){return jsx(uo,{value:e.itemFade?{fade:e.itemFade}:{fade:.5},children:jsx(g,{...e,size:e.size??"full",centerContent:e.centerContent??true,gap:e.gap||"lg",children:e.children})})}function Wg(e){let{fade:r}=useContext(uo);return jsx(g,{fade:e.disableFade?1:r,size:e.size||"4rem",children:e.element})}function Hg(e){let{fade:r}=useContext(uo);return jsxs(g,{align:"center",gap:e.gap||"sm",style:e.style,children:[jsx(C,{fontWeight:"bold",fontSize:e.titleFontSize||"lg",text:e.title,style:e.titleStyle}),jsx("span",{children:e.description,style:{...e.descriptionStyle,opacity:e.descriptionStyle?.opacity??r,textAlign:e.descriptionStyle?.textAlign||"center",fontSize:e.descriptionStyle?.fontSize||hi(e.descriptionFontSize||"md"),get lineHeight(){return e.descriptionStyle?.lineHeight||this.fontSize}}})]})}var Kt={Root:Jg,Indicator:Wg,Content:Hg};c();function He(e){let r=()=>{let t={...e.fallbackStyle,display:e.fallbackStyle?.display||"flex",alignItems:e.fallbackStyle?.alignItems||"center",justifyContent:e.fallbackStyle?.justifyContent||"center"};if(!e.disableFallback){if(typeof e.fallback=="string")return jsx(Avatar.Fallback,{name:e.fallback,style:t});if(e.fallback&&Ie__default.isValidElement(e.fallback))return e.fallback;if(e.fallback){let n=e.fallback;return jsx(n,{size:"50%",style:t})}return jsx(Avatar.Fallback,{style:t})}};return jsxs(Avatar.Root,{size:e.size||"md",backgroundColor:x(e.backgroundColor),color:x(e.color),style:e.style,children:[jsx(r,{}),jsx(Avatar.Image,{src:e.src})]})}c();function Gs(e){let r=useRef(null),t=useRef(null);return e.asChild?e.children:jsxs(Box,{position:"relative",ref:r,children:[e.children,jsx(Float,{ref:t,offset:e.offset||(e.circleChild?".25rem":void 0),placement:e.placement,children:e.badge})]})}c();var Ks=createContext(null);function nv(e){return jsx(Ks.Provider,{value:{gap:e.gap},children:jsx(g,{row:true,clickable:e.clickable,gap:e.gap??"md",padding:e.padding??"md",corners:e.corners??"lg",height:e.height,width:e.width,maxWidth:e.maxWidth,minWidth:e.minWidth,backgroundColor:e.backgroundColor,color:e.color,align:"center",style:e.style,spill:e.spill??"hidden",css:e.sx,onClick:e.onClick,children:e.children})})}function Ys(e){return r=>{let{children:t,className:n,row:o=true,spill:i="hidden",centerContent:a=true,align:l="center",...s}=r;return jsx(g,{className:n,...s,row:o,spill:i,centerContent:a,align:l,children:t})}}function qs(e){return r=>jsx("span",{style:(()=>{let n=k({...e,fontSize:r.fontSize||e.fontSize,fontWeight:r.fontWeight||e.fontWeight,fade:r.fade||e.fade,color:r.color||e.color||"inherit"});return !r.truncateStyle||r.truncateStyle==="none"?n:r.truncateStyle==="ellipsis"?ve(n):Ir(r.truncateStyle.lineCount,n)})(),children:r.value})}var ov=Ys(),iv=Ys(),av=e=>{let{gap:r=e.gap}=useContext(Ks);return jsx(g,{gap:r,...e,spill:e.spill||"hidden",maxWidth:e.maxWidth||"full",children:e.children})},cv=qs({fontWeight:"bold",fontSize:"xs",fade:.75}),lv=qs({fontSize:"sm"}),ue={Root:nv,LeadingAddOn:ov,TrailingAddOn:iv,Content:av,Label:cv,Item:lv};c();function dv(e){let r=()=>{if(typeof e.fallback=="string"||Ie__default.isValidElement(e.fallback))return e.fallback;let n=e.fallback||PiImageBrokenLight;return jsx(n,{size:"3rem"})};return jsxs(g,{className:e.className,padding:"1px",corners:"lg",backgroundColor:"onSurface",color:"surface",gap:"sm",spill:"hidden",fade:e.fade,height:e.height??"fit-content",width:e.width??"14rem",style:{...e.style,boxShadow:"rgba(0, 0, 0, 0.35) 0px 5px 15px"},children:[jsx(g,{centerContent:true,height:e.mediaHeight??"7rem",width:"full",backgroundColor:"surface",color:"onSurface",borderColor:"surface",corners:{top:"lg"},spill:"hidden",children:e.src?jsx(Ae,{cover:e.coverImg??true,size:e.imgSize??"full",corners:e.imgCorners??"md",spill:"hidden",src:e.src,style:{boxShadow:"rgba(0, 0, 0, 0.24) 0px 3px 8px"}}):jsx(r,{})}),jsxs(g,{width:"full",gap:"md",padding:"md",align:"start",spill:"hidden",children:[jsxs(g,{width:"full",gap:0,spill:"hidden",children:[jsx("span",{children:e.title,style:k({fontSize:e.titleFontSize??"md"})}),e.description&&jsx("span",{children:e.description,style:k({fontSize:e.descriptionFontSize??"xs",fade:.5})})]}),e.children]})]})}function mv(e){return jsx(g,{...e,width:e.width??"full",spill:e.spill||"hidden",children:e.children})}var gI={Root:dv,Content:mv};c();function fv(e){let r={backgroundColor:"onSurface",color:"surface",padding:"md",corners:"lg"},t=i=>e[i]??r[i],n=i=>{if(!e.children)return e[i]||r[i]},o=e.disableBoxShadow?"none":e.style?.boxShadow||"rgba(0, 0, 0, 0.35) 0px 5px 15px";return jsxs(g,{className:e.className,asChildren:!e.children,height:t("height"),width:t("width"),backgroundColor:t("backgroundColor"),color:t("color"),padding:t("padding"),corners:t("corners"),gap:"md",spill:"hidden",style:{...e.style,boxShadow:o},children:[jsxs(g,{row:true,className:e.children?void 0:e.className,gap:"md",align:"center",height:n("height"),width:n("width"),backgroundColor:n("backgroundColor"),color:n("color"),padding:n("padding"),corners:n("corners"),spill:"hidden",style:e.children?void 0:{...e.style,boxShadow:o},children:[jsx(He,{src:e.avatarSrc,size:e.avatarSize??"sm",fallback:e.avatarFallback,backgroundColor:e.avatarBackgroundColor,color:e.avatarColor}),jsxs(g,{width:"full",spill:"hidden",children:[jsx("span",{children:e.title,style:ve(k({fontSize:e.titleFontSize??"sm",fontWeight:e.titleFontWeight,fade:e.titleFade}))}),jsx("span",{children:e.description,style:ve(k({fade:e.descriptionFade??.5,fontSize:e.descriptionFontSize??"xs",fontWeight:e.descriptionFontWeight}))})]})]}),e.children]})}var PI={Root:fv,Content:g};c();function Xi(e){let[r,t]=useState(e.defaultChecked??false),n=e.checked??r,o=e.checked!==void 0,i=()=>{e.onClick?.(),o||(e.onChange?.(!n),t(!n));};return jsx(g,{centerContent:true,cursor:e.disabled?"not-allowed":"pointer",fade:e.disabled?.5:1,size:e.size,corners:e.corners??"sm",padding:e.padding??"sm",backgroundColor:n?e.accentColor||"primaryContainer":"transparent",color:e.iconColor||"onPrimaryContainer",borderColor:e.borderColor||"onSurface[0.1]",style:{boxShadow:e.disableShadow?void 0:"rgba(0, 0, 0, 0.25) 0px 2px 4px 0px inset"},onClick:e.disabled?void 0:i,children:jsx(IoMdCheckmark,{size:e.iconSize,style:{opacity:n?1:0}})})}c();c();function yv(e){let{triggerRerender:r}=G(),t=k({...e,padding:e.padding||"xl",corners:e.corners||"md",gap:e.gap||"lg"}),n=({open:i})=>{e.onOpenChange?.(i),i||e.onClose?.();},o=()=>{e.controller?.hide?.(),e.rerenderOnClose&&r();};if(e.controller?.isOpen!==false)return jsxs(Dialog.Root,{unmountOnExit:e.unmountOnExit,open:e.controller?.isOpen,onEscapeKeyDown:e.closeOnEscape??true?e.controller?.hide:void 0,scrollBehavior:e.scrollBehavior,onInteractOutside:e.closeOnInteractOutside??true?e.controller?.hide:void 0,placement:e.placement||"center",closeOnEscape:e.closeOnEscape,closeOnInteractOutside:e.closeOnInteractOutside,onOpenChange:n,onExitComplete:o,motionPreset:e.enterAnimation||"slide-in-bottom",children:[e.triggerElement&&jsx(Dialog.Trigger,{asChild:true,children:e.triggerElement}),jsxs(Portal,{children:[jsx(Dialog.Backdrop,{}),jsx(Dialog.Positioner,{children:jsxs(Dialog.Content,{style:t,children:[e.children,!e.hideCloseButton&&jsx(Dialog.CloseTrigger,{asChild:true,children:jsx(CloseButton,{size:e.closeButtonSize||"sm",onClick:e.controller?.hide})})]})})]})]})}var vo=(e,r)=>t=>{let n=Dialog[e],o={...t,spill:t.spill||"hidden"};return Object.keys(r||{}).forEach(i=>{let a=i;o?.[a]||(o=Object.assign(o,{[a]:r[a]}));}),jsx(n,{width:"full",height:"full",overflow:"hidden",children:jsx(g,{...o,children:t.children})})},_v=vo("Header",{fontSize:"xl",fontWeight:"bold"}),bv=vo("Body",{gap:"md"}),xv=vo("Footer",{row:true,gap:"sm"}),Sv=e=>jsx(Dialog.CloseTrigger,{asChild:true,children:e.wrap?jsx("div",{...e.slotProps?.divWrapper,children:e.children}):e.children}),Cv=e=>jsx(Dialog.ActionTrigger,{asChild:true,children:e.children}),F={Root:yv,Header:_v,Body:bv,Footer:xv,CloseTrigger:Sv,ActionTrigger:Cv};function JI(e){let r=e.severity||"error",t=x(r,{preference:"res"});return jsxs(F.Root,{controller:e.controller,width:e.width??"25rem",height:e.height,minHeight:e.minHeight,maxHeight:e.maxHeight,minWidth:e.minWidth,maxWidth:e.maxWidth,triggerElement:e.triggerElement,children:[jsx(F.Header,{fontSize:"2xl",children:e.title}),jsxs(F.Body,{fade:.75,children:[jsx("span",{children:e.message.split(`
39
+ `).map(n=>jsxs(Fragment,{children:[n,jsx("br",{})]}))}),e.disclaimer&&jsx(eu,{width:"full",facade:n=>n==="error"?"warning":n,hideLabel:e.hideDisclaimerLabel,severity:r,message:e.disclaimer})]}),jsxs(F.Footer,{gap:"md",children:[jsx(F.ActionTrigger,{children:jsx(E,{size:"sm",fade:.75,color:"onSurface",backgroundColor:"transparent",text:e.cancelLabel||"Cancel",onClick:e.onCancelClick})}),jsx(E,{async:true,size:"sm",text:e.action.label,backgroundColor:t,color:"white",onClick:e.action.onClick})]})]})}c();var ho=createContext(null);function eO(e){let r=e.sections.flatMap(b=>typeof b=="object"?b.nestedItems:b),t=e.defaultSection?r.findIndex(b=>b===e.defaultSection):0,[n,o]=useState(t>=0?t:0),{triggerRerender:i}=G(),a=A({defaultValue:[]}),l=r[n],s=Array.isArray(e.ignoredSections)?e.ignoredSections:strictArray([e.ignoredSections]),u=n<=0;e.checkCompletionOnMount&&useEffect(()=>{r.forEach((b,S)=>{p(b,S);}),i();},[]);let f=(b=a.read())=>r.filter(S=>!b.includes(S)&&!s.includes(S)),p=(b=l,S=n)=>{let $=a.read();if(!s.includes(b)){if(e.isSectionComplete(b)&&!$.includes(b))$=[...$,b];else if(!e.isSectionComplete(b)&&$.includes(b))$=$.filter((w,P)=>P!==S);else return;a.upsert($),e.onSectionsStatusChange?.(f($),$);}},h=b=>{p(),o(r.findIndex(S=>S===b));},y=()=>{n>=r.length-1||(p(),o(n+1));},z=()=>{u||(p(),o(n-1));};return jsx(ho.Provider,{value:{activeSection:l,completedSections:a.read(),rawSections:e.sections},children:jsx(F.Root,{controller:e.controller,triggerElement:e.triggerElement,unmountOnExit:e.unmountOnExit,height:"30rem",width:"45rem",maxWidth:"45rem",backdropBlur:"1rem",padding:"0px",rerenderOnClose:e.rerenderOnClose,backgroundColor:"transparent",spill:"hidden",children:jsxs(F.Body,{grid:true,gap:"0px",width:"full",height:"full",spill:"hidden",gridCols:".45fr 1fr",children:[jsx(Dv,{title:e.title,onSectionClick:h}),jsx(Bv,{hideSubmitButton:e.hideSubmitButton,sectionMapper:e.sectionMapper,previousDisabled:u,onPreviousClick:z,onNextClick:y,incompleteSections:f(),onSubmitClick:e.onSubmit})]})})})}function Dv(e){let{rawSections:r,activeSection:t,completedSections:n}=useContext(ho);return jsxs(g,{size:"full",padding:"xl",backgroundColor:"surfaceContainer",gap:e.title?"xl":void 0,spill:"hidden",children:[e.title&&jsx(g,{fontSize:"lg",fontWeight:"bold",spill:"hidden",children:e.title}),jsx(kn,{width:"full",items:r,isItemActive:o=>t===o,isItemCompleted:o=>n.includes(o),onItemClick:e.onSectionClick})]})}function Bv(e){let{activeSection:r}=useContext(ho),{title:t,description:n,element:o}=e.sectionMapper[r],i=typeof o=="function"?jsx(o,{incompleteSections:e.incompleteSections}):o;return jsxs(g,{size:"full",backgroundColor:"surfaceContainer[0.5]",padding:"3rem",gap:"xl",grid:true,gridRows:"auto 1fr auto",justify:"space-between",spill:"hidden",children:[jsxs(g,{children:[jsx(C,{text:t,fontSize:"xl",fontWeight:"bold"}),jsx("span",{children:n,style:{opacity:.75}})]}),jsx(g,{size:"full",gap:"lg",children:i}),jsxs(g,{row:true,width:"full",align:"center",justify:"space-between",children:[jsx(_o,{disabled:e.previousDisabled,onClick:e.onPreviousClick}),r==="Submission"?!e.hideSubmitButton&&jsx(bo,{disabled:!!e.onSubmitClick,onClick:e.onSubmitClick}):jsx(yo,{onClick:e.onNextClick})]})]})}c();c();var Iv=Ne({preset:{text:"Save",async:true}}),xo=Iv;function mO(e){let{triggerRerender:r}=G(),t=A({defaultValue:Object.fromEntries(Object.entries(e.fields).map(([a,l])=>[a,typeof l=="object"&&"defaultValue"in l?l.defaultValue:e.defaultValue?.[a]??""]))}),n=e.actionButtionSize||"lg",o=()=>{e.onSave?.(t.read());},i=()=>{e.onCancel?.();};return jsxs(F.Root,{rerenderOnClose:true,width:e.width,closeButtonSize:e.closeButtonSize||"md",controller:e.controller,triggerElement:e.triggerElement,onClose:()=>r(),children:[jsx(F.Header,{fontSize:"2rem",children:e.title||"Edit Form"}),jsx(F.Body,{padding:"xs",children:Object.keys(e.fields).map(a=>{let l=a,s=e.fields[l],u=t.read()?.[l]??"",f=typeof s.label=="function"?s.label(a):!s.label||s.label==="prop-name"?e?.formatFieldPropName?.(a)??a:s.label,p=h=>t.upsert(y=>({...y||{},[l]:h}));return s.options?jsx(Tv,{label:f,size:e.textfieldSize,defaultValue:u,disabled:s.disabled,placeholder:s.placeholder,options:s.options,onChange:p},a):jsx(xe,{width:"full",placeholder:s.placeholder,label:f,size:e.textfieldSize,defaultValue:u,disabled:s.disabled,allowedChars:s.allowedChars||e.allowedChars,onChange:p},l)})}),jsxs(F.Footer,{children:[jsx(F.ActionTrigger,{children:jsx(ot,{fade:.5,size:n,onClick:i})}),jsx(F.ActionTrigger,{children:jsx(xo,{size:n,onClick:o})})]})]})}function Tv(e){let[r,t]=useState(e.defaultValue),n=({value:o})=>{e.onChange(o),t(o);};return jsx(Nr,{wrap:true,asChild:e.disabled,width:"match-anchor",maxHeight:"10rem",isSelected:({value:o})=>r===o,options:e.options.map(o=>({value:o.trim()})),onOptionClick:n,slotProps:{divWrapper:{style:{width:"100%"}}},children:jsx(xe,{readOnly:true,size:e.size,disabled:e.disabled,label:e.label,width:"full",value:r,placeholder:e.placeholder})})}c();var ze={sidebar:"fv-sidebar",topbar:"fv-topbar",viewer:"fv-viewer"},at=createContext(null);function jv(e){let r=x(e.borderColor||"outline[0.1]"),t=ge.md;return jsx(at.Provider,{value:{borderColor:r,corners:t,navThickness:e.navThickness||"3rem"},children:jsx(g,{minHeight:e.minHeight,maxHeight:e.maxHeight,minWidth:e.minWidth,maxWidth:e.maxWidth,corners:t,size:e.size,backgroundColor:e.backgroundColor??"surfaceContainer",height:e.height??"30rem",width:e.width??"40rem",spill:"hidden",grid:true,gridCols:"auto 1fr",gridRows:"auto 1fr",borderColor:r,style:{gridTemplateAreas:`"${ze.topbar} ${ze.topbar}" "${ze.sidebar} ${ze.viewer}"`,boxShadow:"rgba(0, 0, 0, 0.35) 0px 5px 15px"},children:e.children})})}function Nv(e){let{navThickness:r}=useContext(at),t=Qt(e.file.alias);return jsxs(g,{...e,row:true,align:"center",maxWidth:e.maxWidth||"45%",children:[t&&jsx(t.filled,{style:k({size:r||e.styles?.icon?.size,color:"pdf",style:{padding:k({padding:e.styles?.icon?.padding||".65rem"})?.padding,paddingLeft:`calc(.65rem - ${U.md})`}})}),jsxs(g,{asChildren:e.hideFileMetadata,children:[jsx(C,{ellipsis:true,color:e.styles?.filename?.color,fontWeight:e.styles?.filename?.fontWeight,fontSize:e.styles?.filename?.fontSize||"1rem",text:e.file.name}),!e.hideFileMetadata&&jsxs(g,{row:true,fontSize:e.styles?.fileMetadata?.fontSize||".7rem",gap:e.styles?.fileMetadata?.gap??"sm",fade:e.styles?.fileMetadata?.fade??.5,color:e.styles?.fileMetadata?.color,align:"center",children:[jsx(C,{fontWeight:"bold",text:(e.file.extension||e.file.alias)?.toUpperCase()}),jsx(g,{size:e.styles?.fileMetadataSeparator?.size||".3rem",corners:e.styles?.fileMetadataSeparator?.corners??"circle",backgroundColor:e.styles?.fileMetadataSeparator?.color||"onSurface"}),jsx(C,{fade:.75,text:format("file-size",e.file.sizeInBytes)})]})]})]})}function Av(e){let{navThickness:r}=useContext(at),{children:t,...n}=e;return jsx(g,{...n,row:true,id:ze.topbar,height:r,width:"full",align:"center",gap:e.gap??"md",justify:e.justify||"space-between",style:{...e.style||{},padding:e.style?.padding||"0px .5rem",gridArea:ze.topbar},children:e.children})}var ou=createContext(null);function Uv(e){let{children:r,onOptionClick:t,...n}=e,{navThickness:o}=useContext(at);return jsx(ou.Provider,{value:{onOptionClick:i=>e.onOptionClick?.(i)},children:jsx(g,{...n,id:ze.sidebar,height:"full",width:o,align:"center",gap:n.gap||"md",padding:["md",["top","bottom"]],style:{...n.style,gridArea:ze.sidebar},children:e.children})})}function Lv(e){let{onOptionClick:r}=useContext(ou),t=()=>{e.onClick?.(),r(e.label);};return jsx(gr,{displayAction:"hover",placement:"right",fontSize:"sm",content:e.label,asChild:e.disabled,children:jsx(g,{fade:e.disabled?.5:1,cursor:e.disabled?"not-allowed":e.selected?"default":"pointer",corners:e.corners??"md",padding:e.padding??"md",borderColor:e.selected?"onPrimaryContainer[0.1]":"transparent",css:{transition:"background-color 200ms linear",backgroundColor:e.backgroundColor?.(e.selected)??(e.selected?"primaryContainer":"outline[0.1]"),color:e.color?.(e.selected)??(e.selected?"onPrimaryContainer":"onSurface"),":hover":e.selected?void 0:{...e.css?.[":hover"],backgroundColor:e.css?.[":hover"].backgroundColor||"outline[0.25]"}},onClick:e.disabled?void 0:t,children:jsx(e.icon,{size:e.iconSize??"1.1rem"})})})}function Zv(e){let{borderColor:r,corners:t}=useContext(at),n=useRef(null);useEffect(()=>{o();let i=new MutationObserver(a=>{for(let l of a)l.type==="childList"&&o();});return i.observe(n.current?.parentNode,{childList:true}),()=>{i.disconnect();}},[]);let o=()=>{let i=["sidebar","topbar"],a=n.current?.parentElement,l=i.filter(s=>a?.querySelector(`#${ze[s]}`));i.every(s=>l.includes(s))?Object.assign(n.current?.style,{borderRadius:`${t} 0 0 0`,borderColor:`${r} transparent transparent ${r}`}):l.includes("sidebar")?Object.assign(n.current?.style,{borderRadius:`${t} 0 0 ${t}`,borderLeftColor:r}):l.includes("topbar")?Object.assign(n.current?.style,{borderRadius:0,borderTopColor:r}):Object.assign(n.current?.style,{borderRadius:t,borderColor:r});};return jsx(g,{ref:n,size:"full",centerContent:e.centerContent??true,backgroundColor:e.backgroundColor||"onSurface[0.1]",color:e.color||"onSurface",spill:"hidden",borderColor:"transparent",style:{gridArea:ze.viewer,boxShadow:"rgba(50, 50, 93, 0.25) 0px 30px 60px -12px inset, rgba(0, 0, 0, 0.3) 0px 18px 36px -18px inset"},children:e.children})}function Vv(e){let r=e.thickness||"0.0104in",t=e.length||"70%",n={horizontal:{height:r,width:t},vertical:{height:t,width:r}}[e.orientation||"vertical"];return jsx(g,{...n,backgroundColor:e.color||"outline[0.1]"})}var xO={Root:jv,Sidebar:Uv,SidebarOption:Lv,Topbar:Av,Viewer:Zv,Indicator:Nv,Sep:Vv};c();var iu=(i=>(i["2xl"]="2rem",i.xl="1.75rem",i.lg="1.5rem",i.md="1.25rem",i.sm="1rem",i.xs=".85rem",i["2xs"]=".5rem",i))(iu||{});function au(e){let r=iu[e.size||"sm"];return jsx(g,{hide:e.hide||e.content!==void 0&&!e.content,padding:e.padding||"xs",fontSize:e.fontSize||"xxs",corners:r,size:r,centerContent:true,backgroundColor:e.backgroundColor||"orange",color:e.color||"white",children:e.content})}c();function cu(e){return jsxs(g,{row:true,clickable:true,width:"full",align:"center",justify:"space-between",corners:"lg",backgroundColor:"surfaceVariant[0.1]",padding:"lg",onClick:()=>{let t=(n,o=false)=>typeof n=="string"?n:Object.entries(n).map(([i,a],l,s)=>`${o?" ":""}${i}: ${[void 0,null,""].includes(a)?null:typeof a=="object"?`{
40
40
  ${t(a,true)}
41
41
  }`:a}`+(l===lastIndex(s)?"":",")).join(`
42
- `);alert(t(typeof e.info=="function"?e.info():e.info));},children:[jsxs(g,{row:true,align:"center",gap:"md",children:[e.item.icon&&jsx(e.item.icon,{size:"1.5rem",style:{borderRadius:"1.5rem"}}),jsxs(g,{gap:"sm",children:[jsx(C,{fontSize:".85rem",text:e.item.title}),e.item.description&&jsx(C,{fade:.5,fontSize:".75rem",text:e.item.description})]})]}),jsx(IoAdd,{size:"1.25rem"})]})}c();var lu=createContext(null);function Kv(e){let r=e.backgroundColor||"surfaceContainer",t=e.color||"onSurface",n=e.placement||"right-start";return jsx(lu.Provider,{value:{color:t,placement:n,onItemClick:e.onItemClick},children:jsxs(Menu.Root,{positioning:{placement:n,hideWhenDetached:true},children:[jsx(Menu.Trigger,{asChild:true,children:e.wrapTrigger?jsx("div",{...e.slotProps?.divWrapper,children:e.children}):e.children}),jsx(Yv,{children:jsx(Menu.Positioner,{children:jsx(Menu.Content,{h:e.height,w:e.width,maxH:e.maxHeight,maxW:e.maxWidth,minH:e.minHeight,minW:e.minWidth,backgroundColor:x(r),color:x(t),style:k({gap:e.gap||"xs",padding:".5rem",corners:"md"}),children:Object.keys(e.items).map(o=>{let i=e.items[o];return i.subMenu?jsx(Kv,{...e,gutter:(e.gutter||0)+2,items:i.subMenu,wrapTrigger:false,children:jsx(cu,{isTrigger:true,value:o})}):jsx(cu,{...i,value:o})})})})})]})})}function Yv(e){return e.asChild?e.children:jsx(Portal,{children:e.children})}function cu(e){let{color:r,onItemClick:t}=useContext(lu),n=()=>{if(e.trailingEl)return "command"in e.trailingEl?jsx(Menu.ItemCommand,{children:e.trailingEl.command}):e.trailingEl},o=()=>{e.onClick?.(e.value),t?.(e.value);},{backgroundColor:i="onSurface[0.1]",color:a}=e.sx?.[":hover"]||{},l={disabled:e.disabled,backgroundColor:x(e.backgroundColor||"transparent"),color:x(e.color||r),padding:".25rem",borderRadius:".35rem",cursor:"pointer",_hover:{transition:"all 200ms linear",backgroundColor:x(i),color:a?x(a):void 0},_active:e.sx?.[":active"]?{...k({...e.sx[":active"]}),transition:"all 200ms linear"}:void 0,onClick:o};return e.isTrigger?jsxs(Menu.TriggerItem,{...l,alignItems:"center",justifyContent:"space-between",children:[e.value," ",jsx(LuChevronRight,{})]}):jsxs(Menu.Item,{...l,value:e.value,children:[e.leadingEl,jsx(g,{style:{flexGrow:1},asChildren:!e.leadingEl&&!e.trailingEl,children:e.value}),jsx(n,{})]})}c();var mu=createContext(null);function tT(e){let[r,t]=useState(false),n=e.controller||fu(0),[o,i]=useState(n.defaultPage??0),a;useEffect(()=>{r?e.onTransition?.("start"):e.onTransition?.("end");},[r]),n.goTo=useCallback((f,p)=>{let h=p?.transition||"smooth",y=o;if(!(f===y||r||!p?.ignoreOutOfBoundsCheck&&!e.children[f]))if(a?.(y,f),e.onChange?.(y,f),h==="smooth"){t(true);let z=y,b=setInterval(()=>{f>y?z++:z--,i(z),z===f&&(clearInterval(b),t(false));},p?.transitionDuration||200);}else i(f);},[o,e.children,r]),n.echo=e.onEcho,n.isPageActive=useCallback(f=>f===o,[o]),n.onPageChange=useCallback(f=>{a=f;},[]),n.getActivePage=useCallback(()=>o,[o]),useEffect(()=>()=>{for(let p of Object.keys(n)){let h=p;typeof n[h]=="function"&&(n[h]=null);}a=null;},[]);let l=()=>n.goTo(o-1),s=()=>n.goTo(o+1),u=k({height:e.height,width:e.width,spill:e.spill,gap:e.gap});return jsx(mu.Provider,{value:{...e,transitioning:r},children:jsxs("div",{style:{display:"flex",position:"relative",alignItems:"center",height:u.height,width:u.width??"100%",justifyContent:"center",gap:u.gap??".5rem",overflow:u.overflow,transition:"all 300ms ease-in-out",perspective:"500px",transformStyle:"preserve-3d"},children:[!e.hideControls&&jsx(du,{disabled:o<=0,inset:"left",onClick:l}),e.children.map((f,p)=>{let h=Math.sign(o-p),y=Math.abs(o-p)/3,z=Math.abs(o-p)>(e.maxDisplayed??2);return jsx("div",{style:{overflow:"hidden",boxShadow:e.disableShadow?void 0:"rgba(0, 0, 0, 0.35) 0px 5px 15px",...e.slotProps?.childWrapperStyle||{},display:z?"none":"flex",position:"absolute",opacity:p!==o&&e.hideInactivePages?0:1,transition:"all 0.3s ease-out",flexGrow:e.childFlexGrow??1,justifyContent:"center",alignItems:"center",transform:`
42
+ `);alert(t(typeof e.info=="function"?e.info():e.info));},children:[jsxs(g,{row:true,align:"center",gap:"md",children:[e.item.icon&&jsx(e.item.icon,{size:"1.5rem",style:{borderRadius:"1.5rem"}}),jsxs(g,{gap:"sm",children:[jsx(C,{fontSize:".85rem",text:e.item.title}),e.item.description&&jsx(C,{fade:.5,fontSize:".75rem",text:e.item.description})]})]}),jsx(IoAdd,{size:"1.25rem"})]})}c();var su=createContext(null);function Yv(e){let r=e.backgroundColor||"surfaceContainer",t=e.color||"onSurface",n=e.placement||"right-start";return jsx(su.Provider,{value:{color:t,placement:n,onItemClick:e.onItemClick},children:jsxs(Menu.Root,{positioning:{placement:n,hideWhenDetached:true},children:[jsx(Menu.Trigger,{asChild:true,children:e.wrapTrigger?jsx("div",{...e.slotProps?.divWrapper,children:e.children}):e.children}),jsx(qv,{children:jsx(Menu.Positioner,{children:jsx(Menu.Content,{h:e.height,w:e.width,maxH:e.maxHeight,maxW:e.maxWidth,minH:e.minHeight,minW:e.minWidth,backgroundColor:x(r),color:x(t),style:k({gap:e.gap||"xs",padding:".5rem",corners:"md"}),children:Object.keys(e.items).map(o=>{let i=e.items[o];return i.subMenu?jsx(Yv,{...e,gutter:(e.gutter||0)+2,items:i.subMenu,wrapTrigger:false,children:jsx(lu,{isTrigger:true,value:o})}):jsx(lu,{...i,value:o})})})})})]})})}function qv(e){return e.asChild?e.children:jsx(Portal,{children:e.children})}function lu(e){let{color:r,onItemClick:t}=useContext(su),n=()=>{if(e.trailingEl)return "command"in e.trailingEl?jsx(Menu.ItemCommand,{children:e.trailingEl.command}):e.trailingEl},o=()=>{e.onClick?.(e.value),t?.(e.value);},{backgroundColor:i="onSurface[0.1]",color:a}=e.sx?.[":hover"]||{},l={disabled:e.disabled,backgroundColor:x(e.backgroundColor||"transparent"),color:x(e.color||r),padding:".25rem",borderRadius:".35rem",cursor:"pointer",_hover:{transition:"all 200ms linear",backgroundColor:x(i),color:a?x(a):void 0},_active:e.sx?.[":active"]?{...k({...e.sx[":active"]}),transition:"all 200ms linear"}:void 0,onClick:o};return e.isTrigger?jsxs(Menu.TriggerItem,{...l,alignItems:"center",justifyContent:"space-between",children:[e.value," ",jsx(LuChevronRight,{})]}):jsxs(Menu.Item,{...l,value:e.value,children:[e.leadingEl,jsx(g,{style:{flexGrow:1},asChildren:!e.leadingEl&&!e.trailingEl,children:e.value}),jsx(n,{})]})}c();var fu=createContext(null);function oT(e){let[r,t]=useState(false),n=e.controller||pu(0),[o,i]=useState(n.defaultPage??0),a;useEffect(()=>{r?e.onTransition?.("start"):e.onTransition?.("end");},[r]),n.goTo=useCallback((f,p)=>{let h=p?.transition||"smooth",y=o;if(!(f===y||r||!p?.ignoreOutOfBoundsCheck&&!e.children[f]))if(a?.(y,f),e.onChange?.(y,f),h==="smooth"){t(true);let z=y,b=setInterval(()=>{f>y?z++:z--,i(z),z===f&&(clearInterval(b),t(false));},p?.transitionDuration||200);}else i(f);},[o,e.children,r]),n.echo=e.onEcho,n.isPageActive=useCallback(f=>f===o,[o]),n.onPageChange=useCallback(f=>{a=f;},[]),n.getActivePage=useCallback(()=>o,[o]),useEffect(()=>()=>{for(let p of Object.keys(n)){let h=p;typeof n[h]=="function"&&(n[h]=null);}a=null;},[]);let l=()=>n.goTo(o-1),s=()=>n.goTo(o+1),u=k({height:e.height,width:e.width,spill:e.spill,gap:e.gap});return jsx(fu.Provider,{value:{...e,transitioning:r},children:jsxs("div",{style:{display:"flex",position:"relative",alignItems:"center",height:u.height,width:u.width??"100%",justifyContent:"center",gap:u.gap??".5rem",overflow:u.overflow,transition:"all 300ms ease-in-out",perspective:"500px",transformStyle:"preserve-3d"},children:[!e.hideControls&&jsx(mu,{disabled:o<=0,inset:"left",onClick:l}),e.children.map((f,p)=>{let h=Math.sign(o-p),y=Math.abs(o-p)/3,z=Math.abs(o-p)>(e.maxDisplayed??2);return jsx("div",{style:{overflow:"hidden",boxShadow:e.disableShadow?void 0:"rgba(0, 0, 0, 0.35) 0px 5px 15px",...e.slotProps?.childWrapperStyle||{},display:z?"none":"flex",position:"absolute",opacity:p!==o&&e.hideInactivePages?0:1,transition:"all 0.3s ease-out",flexGrow:e.childFlexGrow??1,justifyContent:"center",alignItems:"center",transform:`
43
43
  scaleY(calc(1 + ${y} * -0.4))
44
44
  translateZ(calc(${y} * -10rem))
45
- translateX(calc(${h} * -5rem))`,filter:`blur(calc(${y} * .5rem))`},children:typeof f=="function"?jsx(f,{isActive:p===o}):f},p)}),!e.hideControls&&jsx(du,{inset:"right",disabled:!hasIndex(e.children,o+1),onClick:s})]})})}function du(e){let r=useContext(mu),t=e.inset==="left"?BsArrowLeft:BsArrowRight,n=e.disabled||r.transitioning;return jsx(g,{fade:n?.5:1,cursor:n?"not-allowed":"pointer",pos:"absolute",centerSelf:"y",centerContent:true,borderColor:r.navBorderColor,padding:r.navPadding??"md",backgroundColor:r.navBackgroundColor||"onSurface",color:r.navIconColor||"surface",corners:r.navCorners??"circle",size:r.navSize,css:{[e.inset]:"1rem",zIndex:2,transition:"all 300ms ease-in-out",boxShadow:"rgba(0, 0, 0, 0.16) 0px 1px 4px",":hover > *":n?void 0:{animation:"squish 300ms ease-in-out"},":active":n?void 0:{scale:.9,opacity:.75}},onClick:n?void 0:e.onClick,children:jsx(t,{size:r.navIconSize})})}c();c();var tn=createContext(null);function gr(e){let r=A({defaultValue:e.open??false}),{triggerRerender:t}=G(),n=`--${v4()}`,o=useRef(null),i=useRef(null),a=Be__default.cloneElement(e.wrap?jsx("div",{...e.slotProps?.divWrapper,children:e.children}):e.children,{ref:i,popoverTarget:n});if(e.asChild)return e.children;useEffect(()=>{let u=e.placement||"bottom-left",f=["top","right","bottom","left"].includes(u),p=f?{positionArea:u}:lh(e.anchorPoint||"top-left",ch(u));if(!e.visibleOnScroll){let y=gi(o.current);y&&y.addEventListener("scroll",z=>{o.current?.hidePopover(),Object.assign(o.current?.style,{transform:`translateX(-${z.target?.scrollLeft}px)`});});}Object.assign(i.current?.style,{anchorName:n});let h={top:"bottom",right:"left",bottom:"top",left:"right"}[u.split("-")[0]];Object.assign(o.current?.style,{position:"absolute",positionAnchor:n,insetArea:e.insetArea,overflow:"hidden",[`margin-${h}`]:e.offset??".25rem",...p,...e.positionFallbacks?{positionTryFallbacks:e.positionFallbacks}:{},...k({minHeight:e.minHeight,maxHeight:e.maxHeight,height:e.height,minWidth:l(e.minWidth),maxWidth:l(e.maxWidth),width:l(e.width,"max-content"),backgroundColor:e.backgroundColor||"surfaceContainer",color:e.color||"onSurface",borderColor:e.borderColor||"onSurface[0.1]",gap:e.gap,padding:e.padding??"md",corners:e.corners??"md",fontSize:e.fontSize,fontWeight:e.fontWeight,spill:e.spill||"auto",backdropBlur:e.backdropBlur,style:{boxShadow:e.boxShadow||"rgba(0, 0, 0, 0.35) 0px 5px 15px",scrollbarWidth:"thin"}})});},[]),useEffect(()=>{e.open&&o.current?.showPopover();let u=e.displayAction||"click";if(o.current?.addEventListener("beforetoggle",f=>{let p=f.newState==="open";p?e.onOpen?.():e.onClose?.(),e.onOpenChange?.(p),r.upsert(p),!p&&e.rerenderOnClose&&t();}),u==="click")i.current?.addEventListener("click",()=>{s(()=>o.current?.togglePopover());});else if(u==="hover"){let f,h=()=>{f&&(f=null),s(()=>o.current?.hidePopover(),"close");};i.current?.addEventListener("mouseover",()=>{s(()=>o.current?.showPopover(),"open");}),i.current?.addEventListener("mouseleave",()=>{e.allowInteractions?f=setTimeout(h,20):h();}),e.allowInteractions&&(o.current?.addEventListener("mouseenter",()=>{f&&clearTimeout(f);}),o.current?.addEventListener("mouseleave",h));}},[]);let l=(u,f)=>u==="match-anchor"?getComputedStyle(i.current)?.width:u??f,s=(u,f)=>{let p=200;typeof e.delay=="number"?p=e.delay:e.delay&&f in e.delay&&(p=e.delay[f]),setTimeout(u,p);};return jsxs(tn.Provider,{value:{open:()=>{o.current?.showPopover();},close:()=>{o.current?.hidePopover();},isOpen:()=>r.read()},children:[a,jsx("div",{popover:e.displayAction==="script"?"manual":"auto",id:n,ref:o,className:"popover-transition",children:e.content})]})}var ch=e=>{let{0:r,1:t}=e?.split("-");return t=t==="left"?"start":t==="right"?"end":t??r,{vertical:`anchor(${r})`,horizontal:`anchor(${t})`}},lh=(e,r)=>{let{0:t,1:n}=e?.split("-");return {[t]:r.vertical,[n]:r.horizontal}};c();function xT(e){let r=n=>{e.onChange?.(n.value);},t=e.controls[0];return jsxs(SegmentGroup.Root,{size:e.size,width:e.width,defaultValue:e.defaultValue||(typeof t=="string"?t:t?.value),value:e.value,onValueChange:r,style:{backgroundColor:e.backgroundColor?x(e.backgroundColor):void 0,boxShadow:e.borderColor?`${x(e.borderColor)} 0px 0px 0px 1px`:void 0,gap:e.gap in H?H[e.gap]:e.gap},children:[jsx(SegmentGroup.Indicator,{backgroundColor:e.indicatorColor?x(e.indicatorColor):void 0}),e.controls.map(n=>{let o=typeof n=="string"?n:n.value;return jsxs(SegmentGroup.Item,{cursor:"pointer",padding:e.padding in H?H[e.padding]:e.padding||".5rem",value:o,style:{height:"fit-content",border:0},children:[jsx(dh,{selectedColor:e.selectedColor,color:e.color,fontSize:e.fontSize}),jsx(SegmentGroup.ItemHiddenInput,{style:{border:0}})]},o)})]})}function dh(e){let r=useSegmentGroupItemContext();return jsx(SegmentGroup.ItemText,{style:{fontSize:e.fontSize in R?R[e.fontSize]:e.fontSize,border:0,color:x(r.checked&&e.selectedColor?e.selectedColor:e.color)},children:r.value})}c();function bu(e){return jsx(Tag.Root,{opacity:e.opacity,padding:"1",color:x(e.color),height:"fit-content",flexShrink:0,display:"inline-flex",children:jsx(Tag.Label,{opacity:e.labelOpacity,children:e.label})})}c();function BT(e){return jsx(g,{id:e.id,style:fh({size:e.size,responsive:e.responsive,style:e.style}),children:e.children})}var mh=e=>({a4:{height:"297mm",width:"210mm"},a6:{height:"148mm",width:"105mm"}})[e.toLowerCase()],fh=e=>{let{height:r,width:t}=mh(e.size),n={a4:95,a6:80}[e.size.toLowerCase()],o=e.responsive??true;return {...e?.style||{},maxHeight:r,height:o?`${n}%`:r,width:o?void 0:t,aspectRatio:"1/sqrt(2)",backgroundColor:x("paper"),color:x("onPaper"),overflow:"hidden"}};c();function Su(e){let r={pending:"gray",success:"carlsbergGreen",error:"error"},t=e.indicatorSize||".3rem";return jsxs(g,{row:true,disableSelection:true,align:"center",gap:"md",corners:"md",padding:"sm",backgroundColor:`${r[e.status]}[0.5]`,style:{zIndex:3},children:[jsx(g,{corners:t,size:t,backgroundColor:r[e.status]}),!e.indicatorOnly&&jsx(C,{style:{fontWeight:500},fontSize:".85rem",color:`${r[e.status]}[0.75]`,text:upperFirst(e.status)})]})}c();function VT(e){return jsxs(({children:t})=>{let n={...e,paddingLeft:typeof e.indent=="boolean"?"11":e.indent,height:"full",width:"full",gap:"7",overflow:"hidden",style:{backgroundColor:e.showBg?"red":"transparent"},colorPalette:e.colorScheme};return e.value?jsx(Steps.RootProvider,{value:e.value,...n,children:t}):jsx(Steps.Root,{...n,count:e.steps.length,children:t})},{children:[jsx(Steps.List,{opacity:e.nested?.7:1,children:e.steps.map((t,n)=>jsxs(Steps.Item,{index:n,title:t.title,children:[jsxs(Steps.Trigger,{children:[jsx(Steps.Indicator,{children:t.icon&&jsx(Steps.Status,{incomplete:jsx(t.icon,{}),complete:jsx(LuCheck,{})})}),jsx(Steps.Title,{children:t.title})]}),jsx(Steps.Separator,{})]},n))}),jsxs(Stack,{justifyContent:"space-between",height:"full",width:"full",overflow:"hidden",children:[e.steps.map((t,n)=>jsx(Steps.Content,{height:"full",width:"full",index:n,overflow:"hidden",children:typeof t.description=="function"?jsx(t.description,{}):t.description},n)),e.completedel!=="none"&&jsx(Steps.CompletedContent,{height:"full",width:"full",overflow:"hidden",children:e.completedel||"All steps are complete!"}),e.footer?jsx(e.footer,{PrevTrigger:({children:t})=>jsx(Steps.PrevTrigger,{asChild:true,children:t}),NextTrigger:({children:t})=>jsx(Steps.NextTrigger,{asChild:true,children:t})}):jsxs(ButtonGroup,{size:"sm",variant:"outline",children:[jsx(Steps.PrevTrigger,{asChild:true,children:jsx(Button,{children:"Prev"})}),jsx(Steps.NextTrigger,{asChild:true,children:jsx(Button,{children:"Next"})})]})]})]})}c();c();var $u=Be.forwardRef(function(r,t){let{showArrow:n,children:o,disabled:i,portalled:a=true,content:l,contentProps:s,portalRef:u,...f}=r;return i?o:jsxs(Tooltip.Root,{...f,children:[jsx(Tooltip.Trigger,{asChild:true,children:o}),jsx(Portal,{disabled:!a,container:u,children:jsx(Tooltip.Positioner,{children:jsxs(Tooltip.Content,{ref:t,...s,children:[n&&jsx(Tooltip.Arrow,{children:jsx(Tooltip.ArrowTip,{})}),l]})})})]})});function on(e){if(e.asChild)return e.children;let{padding:r,borderRadius:t,color:n,backgroundColor:o}=k({padding:e.padding||"sm",corners:e.corners||"sm",color:e.color||"onSurface",backgroundColor:e.backgroundColor||"onSurface[0.1]"});return jsx($u,{positioning:{placement:e.placement},showArrow:e.arrow,openDelay:e.delay?.open,closeDelay:e.delay?.close,content:e.tooltip,contentProps:{padding:r,color:n,borderRadius:t,style:{backdropFilter:"blur(.25rem)"},css:{"--tooltip-bg":o}},children:e.wrapChildren?jsx("span",{style:e.slotProps?.spanWrapper?{...k(e.slotProps.spanWrapper)}:void 0,children:e.children}):e.children})}c();var $o=createContext(null);function Ph(e){let r=A({defaultValue:[]}),t=e.lineSeparatorColor||"onSurface[0.5]",n=Array.isArray(e.children)?e.children:[e.children],o=n.length===1?n:n.map((a,l)=>l===0||!e.rowGap?a:jsxs(Fragment,{children:[jsx("p",{}),jsx(g,{width:"full",align:"center",children:jsx("p",{style:{width:"1px",height:e.rowGap,backgroundColor:x(t)}})}),jsx("p",{}),a]})),i=()=>{if(n.length===1)return "both";let a=[...r.read(),0];if(r.upsert(a),a.length===1)return "first";if(a.length===n.length)return "last"};return jsx($o.Provider,{value:{register:i,lineSeparatorColor:t},children:jsx(g,{grid:true,width:e.width??"fit-content",gridCols:"auto auto auto",justify:"end",style:{columnGap:e.columnGap||".5rem"},children:o})})}function kh(e){let[r,t]=useState(),{register:n}=useContext($o),{indicator:o,leadingEl:i,trailingEl:a}=e.styles||{},{0:l,1:s}=Array.isArray(e.children)?e.children:[e.children];useEffect(()=>{let f=n();typeof f=="string"&&t(f);},[r]);let u=f=>r===f||r==="both";return jsxs(Fragment,{children:[jsx(zu,{disabled:e.disabled,style:{...i,align:i?.align||"end"},children:e.reverse?s:l}),jsxs(g,{align:"center",height:"full",children:[jsx(Du,{hide:u("first")}),jsx(g,{style:{...k({...o||{},size:o?.size??".6rem",corners:o?.corners||"circle",backgroundColor:o?.backgroundColor||"onSurface",centerContent:o?.centerContent??true}),flexShrink:0},children:e.indicator}),jsx(Du,{hide:u("last")})]}),jsx(zu,{disabled:e.disabled,style:a,children:e.reverse?l:s})]})}function zu(e){return jsx(g,{size:"full",style:{...k({...e.style||{},fade:e.disabled?.5:e.style?.fade}),justifyContent:"center",flexGrow:1},children:e.children})}function Du(e){let{lineSeparatorColor:r}=useContext($o);return jsx(g,{width:"1px",height:"full",backgroundColor:r,fade:e.hide?0:1})}var sE={Root:Ph,Item:kh};c();function vE(e){let r=()=>jsx(Separator,{flex:"1",variant:e.variant,orientation:e.orientation,size:e.size,color:x(e.color)});return e.label?jsxs(HStack,{children:[["center","right"].includes(e.labelPosition)&&jsx(r,{}),jsx(Text,{flexShrink:"0",color:x(e.labelColor),children:e.label}),["center","left"].includes(e.labelPosition)&&jsx(r,{})]}):jsx(r,{})}c();c();var wo=(e,r)=>{let t=n=>!!n.exec(e);if(typeof r!="string")return t(r);switch(r){case "number":return t(/[0-9]/g);case "symbol":case "space":return t(/\s/g);case "letter":return t(/[a-zA-Z]/);case "uppercaseLetter":return t(/[A-Z]/);case "lowercaseLetter":return t(/[a-z]/);case "all":return true;default:return r}};function xe(e){let[r,t]=useState(e.defaultValue??""),n=e.value!==void 0,o=e.ref||useRef(null),i=useRef(null),a=e.maxChars??1/0,l="2rem",s=b=>typeof e.indent=="string"?e.indent:e.indent?.[b],u="md",{size:f,...p}=e,h={label:k({...e?.slotProps?.label,row:true,fade:e?.slotProps?.label?.fade||.75,fontSize:e.slotProps?.label?.fontSize||(typeof f=="string"&&f in R?f:void 0)}),helperText:k({...e?.slotProps?.helperText}),root:k({width:e.width}),input:k({...p,width:"full",padding:{top:u,left:e.leadingContent?s("left")||l:u,right:e.trailingContent||e.showCharCounter?s("right")||l:u,bottom:u},corners:!e.corners&&e.corners!==0?".75rem":e.corners,style:{boxShadow:"none",...e.style}})},y=b=>{o.current.value=b,e.onChange(b,null);};useEffect(()=>{e.showCharCounter&&Object.assign(o.current?.style,{paddingRight:`calc(${getComputedStyle(i.current).width} + 7px)`});},[r,e.value]),useEffect(()=>{let b=S=>{if(e.format!=="currency")return;let $=S;if($=$.replace(/[^0-9.]/g,"").replace(/\.{2,}/,"").split(".").filter((w,P)=>P<2).join("."),$&&takeLast($.split(""))[0]!=="."){let w=parseFloat($);if(!isNaN(w)){let P=new Intl.NumberFormat;y(P.format(w));}}};o.current?.addEventListener?.("beforeinput",S=>{let $=S.data,w=e.format==="currency"?/[0-9.]/:e.allowedChars||"all";w==="all"||Array.isArray(w)&&w.includes("all")||$===null||(!Array.isArray(w)&&!wo($,w)||Array.isArray(w)&&w.some(P=>!wo($,P)))&&S.preventDefault();}),o.current?.addEventListener?.("paste",S=>{b(S.target.value);}),o.current?.addEventListener?.("input",S=>{b(S.target.value);});},[o.current]);let z=b=>{e.onChange?.(b,void 0),e.onPasteClick?.(b);};return jsxs(Field.Root,{required:e.required,disabled:e.disabled,css:{boxShadow:"none","--focus-color":"transparent","--error-color":"transparent"},style:{...h.root,boxShadow:"none"},children:[(e.label||e.required)&&jsxs(Field.Label,{style:{...h.label},children:[e.required?e.label||"required":e.label," ",e.required&&jsx(Field.RequiredIndicator,{})]}),jsx(Eh,{elementRef:o,useCopy:e.allowCopyText,usePaste:e.allowPasteText,onPaste:z,slotProps:e.slotProps,children:jsx(InputGroup,{css:{boxShadow:"none","--focus-color":"transparent","--error-color":"transparent"},startElement:e.leadingContent,startElementProps:e.slotProps?.leadingContent||{padding:"2"},endElement:e.showCharCounter?jsx(C,{ref:i,fade:.5,fontSize:e.slotProps?.charCounter?.fontSize||(typeof e.size=="string"&&e.size in R?R[e.size]:void 0),text:`${(e.value??r).length}/${a}`}):e.trailingContent,endElementProps:e.slotProps?.trailingContent||{padding:"1"},startAddon:e.leadingAdornment,startAddonProps:{...e.slotProps?.leadingAdornment,padding:e.slotProps?.leadingAdornment?.padding||"1",borderRadius:"xl"},endAddon:e.trailingAdornment,endAddonProps:{...e.slotProps?.trailingAdornment,padding:e.slotProps?.trailingAdornment?.padding||"1",borderRadius:"xl"},gapX:".5rem",children:jsx(Input,{maxLength:e.maxChars,readOnly:e.readOnly,ref:e.pureRef||o,width:"full",autoFocus:e.autoFocus,size:f,zIndex:1,variant:e.variant,css:{transition:e.disableTransition?"none":"all 200ms ease-in","--focus-color":x(e.focusColor||"primary")},onKeyDown:b=>{b.key==="Enter"?e.onEnterKeyPressed?.():b.key==="Escape"&&e.onEscapeKeyPressed?.();},value:e.value??r,overflow:"hidden",style:h.input,onFocus:e.onFocus,onBlur:e.onBlur,_placeholder:e.slotProps?.placeholder?.color?{color:x(e.slotProps.placeholder.color)}:void 0,onChange:b=>{let S=b.currentTarget.value;switch(e.allowHtmlInput||(S=hi(S)),e.trimOnChange){case "start":S=S.trimStart();break;case "end":S=S.trimEnd();break;case true:S=S.trim();break}e.validateInput?.(S)!==false&&(e.onChange?.(S,b),n||t(S));},placeholder:e.placeholder})})}),e.helperText&&jsx(Field.HelperText,{style:h.helperText,children:e.helperText})]})}function Eh(e){return !e.useCopy&&!e.usePaste?e.children:jsxs("div",{style:{display:"flex",alignItems:"center",gap:H.sm,width:"100%"},children:[e.children,e.useCopy&&jsx($r,{iconOnly:e.slotProps?.copyButton?.iconOnly,inputRef:e.elementRef}),e.usePaste&&jsx(Eu,{iconOnly:e.slotProps?.pasteButton?.iconOnly,inputRef:e.elementRef,onClick:e.onPaste})]})}c();function Qs(e){let[r,t]=useState(false),o={error:BsExclamationCircle,info:BsInfoCircle,warning:BsExclamationTriangle}[e.severity],i=e.iconSize||"1rem",a=e.gap||"md",l=jsx(o,{size:i,style:{flexShrink:0}});return jsxs(g,{row:e.hideLabel,top:e.top,left:e.left,right:e.right,bottom:e.bottom,pos:e.pos,width:e.width,gap:e.hideLabel?a:void 0,corners:"md",backgroundColor:x(e.severity+"[0.5]",{preference:"res"}),color:"white",padding:"md",align:r||!e.hideLabel?"start":"center",style:{boxShadow:e.disableShadow?"none":"rgba(0, 0, 0, 0.35) 0px 5px 15px"},children:[e.hideLabel?l:jsxs(g,{row:true,gap:a,align:"center",children:[l,jsx(C,{fontWeight:"bold",fontSize:"xs",text:(e.facade?.(e.severity)||e.severity).toUpperCase()})]}),jsx("span",{ref:s=>{s&&t(vi(s));},style:k({fontSize:e.fontSize||"sm",fade:e.hideLabel?1:.75,style:{paddingLeft:e.hideLabel?void 0:`calc(${i} + ${k({gap:a}).gap})`}}),children:e.message})]})}c();c();c();c();function Fu(e){return {FlyLeavingBox:Ah}[e]}var Bo=createContext(null);function Zh(e){let r=A({defaultValue:e.attachments||[]}),{triggerRerender:t}=G(),n=()=>{e.onClose?.(),e.rerenderOnClose&&t();};return jsx(Bo.Provider,{value:{...e,attachmentsEventListener:(o,i)=>{let a=r.read();o==="add"&&(a=[...a,i]),o==="delete"&&(a=a.filter(({uid:l})=>l!==i.uid)),r.upsert(a),e.onAttachmentsChange?.(a),o==="delete"&&isEmpty(a)&&t(),e.attachmentsEventListener?.(o,i);},attachments:r.read(),rerender:t},children:jsxs(F.Root,{onClose:n,unmountOnExit:e.unmountOnExit,maxHeight:"30rem",width:"27rem",scrollBehavior:"inside",triggerElement:e.triggerElement,controller:e.controller,spill:"hidden",children:[jsx(F.Header,{style:{flexShrink:0},fontSize:"xxl",children:"Attachments"}),jsx(F.Body,{size:"full",padding:"sm",spill:"hidden",children:isEmpty(r.read())?jsx(Jh,{}):jsx(Vh,{})})]})})}function Vh(){let e=useContext(Bo),r=A(void 0),[t,n]=useState(""),[o,i]=useState(e?.attachments||[]);useEffect(()=>{r.upsert(true);},[]),useEffect(()=>{r.read()===true&&r.upsert(false);});let a=t.trim()?o.filter(({name:p})=>p.toLowerCase().includes(t.toLowerCase())):o,l=isEmpty(a)&&!!t.trim(),s=p=>{i(h=>h.filter(({uid:y})=>y!==p.uid)),e?.onAttachmentDeleted?.(p),e?.attachmentsEventListener?.("delete",p);},u=(p,h)=>{let y=h[0];i([...o,y]),e?.onAttachmentAdded?.(y),e?.attachmentsEventListener("add",y);},f=p=>{e?.onOpenAttachment?.(p),e?.attachmentsEventListener?.("open",p);};return jsxs(Fragment,{children:[jsx(Eo,{width:"full",value:t,onChange:n}),jsx(g,{size:"full",maxHeight:"10rem",spill:"auto",padding:l?"lg":void 0,centerContent:l,children:l?jsx("span",{style:{opacity:.75},children:`"${t}" not found`}):a.map((p,h,y)=>jsx(Mh,{scrollIntoView:r.read()===false&&h===y.length-1,value:p,hideDeleteButton:e.hideDeleteButton,hideOpenAttachmentButton:e.hideOpenAttachmentButton,disableDelete:typeof e?.deleteDisabled=="function"?e.deleteDisabled(p):e?.deleteDisabled,disableOpen:typeof e?.openDisabled=="function"?e.openDisabled(p):e?.openDisabled,onDelete:s,onOpen:f},p.uid))}),!e.hideUploadButton&&jsx(mt,{getFilePath:e?.getFilePath,disabled:e?.uploadDisabled,fileClass:"attachment",size:"xs",width:"full",onAccept:u})]})}function Mh(e){let{alias:r,path:t,name:n,sizeInBytes:o}=e.value,i=Qt(r);return jsxs(ue.Root,{corners:"md",width:"full",sx:{cursor:"default",overflow:"hidden",transition:"all 300ms linear",":hover":{backgroundColor:"outline[0.1]"}},children:[jsx(ue.LeadingAddOn,{size:"2rem",aspectRatio:1,color:r,padding:"sm",corners:"md",backgroundColor:"onSurface[0.1]",style:{flexShrink:0},children:r==="img"&&t.trim()?jsx(Ae,{src:t.trim(),size:"full",corners:"md",spill:"hidden"}):jsx(i.outlined,{size:"100%"})}),jsxs(ue.Content,{gap:"sm",width:"full",children:[jsx(ue.Item,{truncateStyle:"ellipsis",value:n}),jsxs(g,{ref:a=>a&&e.scrollIntoView&&a.scrollIntoView({behavior:"instant"}),fade:.7,row:true,align:"center",gap:"sm",fontSize:"xxs",children:[jsx(C,{fontWeight:"bold",text:r.toUpperCase()}),jsx(g,{size:".25rem",corners:"circle",backgroundColor:"onSurface"}),jsx(C,{fade:.5,text:parseFileSize(o)})]})]}),(!e.hideDeleteButton||!e.hideOpenAttachmentButton)&&jsxs(ue.TrailingAddOn,{row:true,gap:"sm",align:"center",children:[!e.hideOpenAttachmentButton&&jsx(To,{iconOnly:true,disabled:e.disableOpen,borderColor:"transparent",size:"sm",onClick:()=>e.onOpen?.(e.value)}),!e.hideDeleteButton&&jsx(dt,{iconOnly:true,disabled:e.disableDelete,backgroundColor:"transparent",color:"delete",size:"sm",onClick:()=>e.onDelete?.(e.value)})]})]})}function Jh(){let e=useContext(Bo);return jsxs(Kt.Root,{children:[jsx(Kt.Indicator,{size:"7rem",disableFade:true,element:jsx(Ae,{spill:"hidden",size:"full",src:Fu("FlyLeavingBox")})}),jsx(Kt.Content,{title:"Attachments not found",description:"Upload an attachment and it will appear here."}),!e.hideUploadButton&&jsx(mt,{disabled:e.uploadDisabled,getFilePath:e.getFilePath,fileClass:"attachment",backgroundColor:"secondaryContainer",color:"onSecondaryContainer",accepts:e.accepts,onAccept:(r,t)=>{t.forEach(n=>{e?.attachmentsEventListener?.("add",n);}),e.rerender();}})]})}var Oo=Zh;function Xh(e){let r=A({defaultValue:Array.isArray(e.attachments)?e.attachments:[]}),{triggerRerender:t}=G(),n=o=>{r.upsert(o);};return jsx(on,{tooltip:"Attachments",placement:"right",children:jsx(Xs,{circleChild:true,asChild:!e.attachments,badge:jsx(iu,{content:typeof e.attachments=="number"?e.attachments:r.read().length}),children:jsx(Gh,{asChild:!Array.isArray(e.attachments),attachments:r.read(),onAttachmentsChange:n,onClose:t,...e.slotProps?.attachmentsDialog,children:jsxs(g,{row:true,gap:"xs",fontSize:"xs",color:"onPaper",align:"center",corners:e.corners||"md",padding:"md",clickable:true,backgroundColor:"onPaper[0.1]",onClick:e.onClick,children:[jsx(BsPaperclip,{size:"1rem"}),!e.iconOnly&&"Attachments"]})})})})}function Gh(e){let{asChild:r,children:t,unmountOnExit:n,onAttachmentsChange:o,onClose:i,...a}=e;return r?t:jsx(Oo,{...a,unmountOnExit:n,triggerElement:t,onAttachmentsChange:o,onClose:i})}var Ro=Xh;c();var Yh=Ne({preset:{text:"Cancel",leadingEl:null,trailingEl:null},optional:{backgroundColor:"transparent",color:"onSurface",fade:.75}}),ot=Yh;c();function ey(e){return jsx(T,{disabled:e.disabled,size:e.size,corners:e.corners,gap:e.gap,iconSize:e.iconSize,fontSize:e.fontSize,leadingEl:!e.iconVariant||e.iconVariant==="outlined"?BsTrash:BsTrashFill,backgroundColor:e.backgroundColor||"delete",color:e.color||"white",text:e.iconOnly?void 0:"Delete",onClick:e.onClick})}var dt=ey;c();function ny(e){let{iconOnly:r,...t}=e;return jsx(T,{...t,leadingEl:LuPencilLine,text:r?void 0:"Edit",backgroundColor:e.backgroundColor||"transparent",borderColor:e.borderColor||"onSurface[0.25]",color:e.color||"onSurface",corners:e.corners||"sm"})}var oy=ny;c();function uy(e){let r=A({defaultValue:e.initialState==="expanded"}),t=e.icon||"chevron",n=t==="chevron"?BsChevronBarExpand:BsArrowsAngleExpand,o=t==="chevron"?BsChevronBarContract:BsArrowsAngleContract,i=r.read()?o:n;return jsx(g,{clickable:true,onClick:()=>{r.upsert(l=>(l?e.onContract():e.onExpand(),!l));},children:jsx(i,{})})}var dy=uy;c();function my(e){return jsx(T,{disabled:e.disabled,text:"Next",backgroundColor:"tertiaryContainer",color:"onTertiaryContainer",onClick:e.onClick})}var yo=my;c();function gy(e){return jsx(T,{disabled:e.disabled,leadingEl:IoOpenOutline,size:e.size,corners:e.corners,iconSize:e.iconSize,fontSize:e.fontSize,borderColor:e.borderColor||"onSurface[0.1]",backgroundColor:e.backgroundColor||"transparent",color:e.color||"onSurface",text:e.iconOnly?void 0:"Open",onClick:e.onClick})}var To=gy;c();function yy(e){return jsx(T,{disabled:e.disabled,leadingEl:MdMoreVert,size:e.size,borderColor:e.borderColor||"onSurface[0.1]",color:e.color||"onSurface",backgroundColor:e.backgroundColor||"transparent",iconSize:e.iconSize||"sm",text:e.iconOnly?void 0:"Options",onClick:e.onClick})}var _y=yy;c();function Sy(e){let r=jsx(T,{disabled:e.disabled,width:e.width,backgroundColor:e.backgroundColor||"blue",color:e.color||"white",fontSize:e.fontSize||"xs",iconSize:e.iconSize||"sm",leadingEl:BsCreditCard2FrontFill,text:"Payment options",onClick:e.onClick});return e.options?jsx(Fo,{triggerElement:r,options:e.options}):r}var Cy=Sy;c();function Py(e){return jsx(T,{disabled:e.disabled,border:"onSurface[0.15]",color:"onSurface",backgroundColor:"transparent",text:"Previous",onClick:e.onClick})}var _o=Py;c();function wy(e){return jsx(T,{async:true,disabled:e.disabled,size:e.size,color:"white[0.85]",spinnerColor:"gray",trailingEl:jsx(IoMdSend,{}),backgroundColor:"sendBlue",text:e.iconOnly?void 0:"Send",onClick:e.onClick,corners:"xl"})}var jo=wy;c();function zy(e){return jsx(T,{async:true,disabled:e.disabled,text:`Submit ${e.class||""}`.trim(),onClick:e.onClick})}var bo=zy;c();function By(e){return jsx(T,{padding:"sm",gap:"sm",size:"xs",leadingEl:jsx(MdVerifiedUser,{}),backgroundColor:"primaryContainer",color:"onPrimaryContainer",text:"Verify",onClick:e.onClick})}var No=By;c();function Ey(e){let r="rgba(0, 0, 0, 0.35) 0px 5px 15px",t=e.currency||"JMD",n=e.slotProps?.fee?.fontSize||"xl";return jsxs(g,{width:e.width,gap:e.gap||"md",padding:e.padding||"1.5rem",color:e.color||"surface",corners:e.corners||"lg",style:{...e.style,boxShadow:r,background:fi({backgroundColor:e.backgroundColor||"onSurface",borderColor:e.wireColor||"surface[0.25]",tileSize:"1.5rem"})},children:[jsxs(g,{gap:"sm",color:"inherit",children:[e.label&&jsx(C,{fade:.75,fontSize:e.slotProps?.label?.fontSize||"sm",text:e.label,color:"inherit"}),jsxs(g,{row:true,align:"end",gap:"sm",children:[jsxs(g,{row:true,gap:"sm",align:"center",asChildren:e.amount!==1/0,children:[jsx(C,{fontWeight:"bold",fontSize:n,text:e.amount===1/0?"$":parseMoney(e.amount,{truncate:typeof e.truncateFee=="boolean"?e.truncateFee:e.truncateFee?.(e.amount)})}),e.amount===1/0&&jsx(PiInfinityBold,{style:{fontWeight:"bold",fontSize:n in R?R[n]:n}})]}),jsx(C,{fontWeight:"bold",fade:.5,fontSize:e.slotProps?.currency?.fontSize||"sm",text:t})]})]}),e.children]})}var Ry=Ey;c();function Ny(e){return jsxs(ue.Root,{backgroundColor:e.backgroundColor||"onSurface",color:e.color||"surface",width:e.width,maxWidth:e.maxWidth,minWidth:e.minWidth,corners:e.corners||"lg",style:{boxShadow:"rgba(0, 0, 0, 0.35) 0px 5px 15px"},children:[jsx(ue.LeadingAddOn,{size:"2rem",padding:"sm",centerContent:true,corners:"md",backgroundColor:e.indicatorBackgroundColor||"surface[0.1]",style:{flexShrink:0},children:e.receiptPath?jsx(Ae,{corners:"md",src:e.receiptPath,size:"full",spill:"hidden"}):jsx(TfiReceipt,{size:"100%"})}),jsxs(ue.Content,{width:"full",gap:"xs",children:[jsx(ue.Label,{value:"Your receipt",fade:.75,truncateStyle:"ellipsis"}),jsx(ue.Item,{value:e.receiptName||(e.receiptPath?inferFilename(e.receiptPath):"unknown"),truncateStyle:"ellipsis"})]}),!e.hideDeleteButton&&jsx(ue.TrailingAddOn,{children:jsx(dt,{iconOnly:true,iconVariant:e.deleteIconVariant,iconSize:e.deleteButtonSize,backgroundColor:"transparent",color:"delete",onClick:e.onDeleteClick})})]})}var Ay=Ny;c();c();var Uy=Ne({preset:{text:"Done"},optional:{backgroundColor:"onSurface",color:"surface"}}),Ju=Uy;c();function sn(e){let[r,t]=useState(e.selectedDate||new Date),[n,o]=useState(new Date(r)),i=useRef(false);Hu(()=>{i.current=false,e.onDateSelected?.(r);},[r]);let a=()=>{let O=new Date(n);return O.setMonth(n.getMonth()-1),O},l=()=>{let O=new Date(n);return O.setMonth(n.getMonth()+1),O},s=()=>{let O=new Date(n);return O.setDate(1),O.getDay()},u=()=>{let O=new Date(n);return O.setDate(Jy(O)),O.getDay()},f=O=>{let re=new Date;return O===re.getDate()&&n.getMonth()===re.getMonth()&&n.getFullYear()===re.getFullYear()},p=O=>{if(O===r.getDate())return;i.current=true;let re=new Date(n);re.setDate(O),t(re);},h=O=>{if(O===n.getMonth())return;let re=new Date(n);re.setMonth(O),o(re);},y=O=>{if(O===n.getFullYear())return;let re=new Date(n);re.setFullYear(O),o(re);},z=()=>{let O=new Date(n);O.setMonth(O.getMonth()+1),o(O);},b=()=>{let O=new Date(n);O.setMonth(O.getMonth()-1),o(O);},{fontSize:S,arrowSize:$,gap:w,...P}=e,j=new Date(e.minDate==="today"?Date.now():e.minDate||new Date("Jan 1, 1900")),ee=new Date(e.maxDate==="today"?Date.now():e.maxDate==="end-of-year"?`Dec 31 ${new Date().getFullYear()}`:e.maxDate||"Jan 1, 2050"),Fe=Ao(n),Dr=e.gap||"lg",sr="repeat(7, 1fr)",Ir=e.fontSize in R?R[e.fontSize]:e.fontSize||R.xs,ur=e.arrowSize in R?R[e.arrowSize]:e.arrowSize||"1.2rem",Ye=`calc(${Ir} * 1.14)`,ti=e.yearFontSize in R?R[e.yearFontSize]:e.yearFontSize||Ye,ni=e.monthFontSize in R?R[e.monthFontSize]:e.monthFontSize||Ye;return jsxs(g,{...P,gap:Dr,style:{userSelect:"none",...e.style},children:[jsx(ir,{arrowSize:ur,monthFontSize:e.monthFontSize==="match-year"?ti:ni,yearFontSize:e.yearFontSize==="match-month"?ni:ti,minDate:j,maxDate:ee,activeDate:n,goNextMonth:z,goPreviousMonth:b,onMonthChange:h,onYearChange:y}),jsx(Xu,{in:true,duration:"300ms",skipAnimation:e.disableAnimations||i.current,children:jsxs(g,{grid:true,width:"full",gridCols:sr,style:{gap:e.dateGap in H?H[e.dateGap]:e.dateGap||H.sm},children:[sn.DAYS_OF_WEEK.map(O=>jsx(C,{text:O,fontSize:Ir,fontWeight:"bold",textAlign:"center",fade:.75,padding:[Dr,"bottom"]})),[...s()>0?Ao(a()).slice(-s()):[],...Fe,...u()<6?Ao(l()).slice(0,6-u()):[]].map((O,re)=>{let ht=O>7&&re<6||O<7&&re>14||n.getMonth()===j.getMonth()&&n.getFullYear()===j.getFullYear()&&O<j.getDate()||n.getMonth()===ee.getMonth()&&n.getFullYear()===ee.getFullYear()&&O>ee.getDate(),vn=O===r.getDate()&&n.getMonth()===r.getMonth()&&n.getFullYear()===r.getFullYear();return jsx(g,{centerContent:true,aspectRatio:1,fade:ht?.5:1,style:{padding:e.datePadding in H?H[e.datePadding]:e.datePadding||H.sm,borderRadius:e.dateCorners in ge?ge[e.dateCorners]:e.dateCorners||".5rem"},css:{cursor:ht?"not-allowed":"pointer",backgroundColor:vn?"primaryContainer":f(O)?"primaryContainer[0.5]":void 0,color:vn?"onPrimaryContainer":f(O)?"onPrimaryContainer[0.75]":void 0,border:"1px solid transparent",transition:"all 300ms linear",borderColor:vn?x("onPrimaryContainer"):void 0,":hover":ht?void 0:{borderColor:x("onPrimaryContainer[0.5]")}},onClick:ht?void 0:()=>p(O),children:jsx(C,{fontSize:Ir,text:`${O}`,textAlign:"center"})})})]})})]})}function ir(e){let r=["January","February","March","April","May","June","July","August","September","October","November","December"],t=r.filter((o,i)=>{let a=e.activeDate?.getFullYear?.();return a===e.minDate?.getFullYear?.()?i>=e.minDate.getMonth():a===e.maxDate?.getFullYear?.()?i<=e.maxDate.getMonth():true}),n=range(e.minDate.getFullYear(),e.maxDate.getFullYear()+1).reverse();return jsxs(g,{row:true,gap:"md",width:"full",align:"center",justify:"space-between",children:[jsx(ir.Nav,{arrowSize:e.arrowSize,disabled:e.minDate.getMonth()>=e.activeDate.getMonth()&&e.minDate.getFullYear()>=e.activeDate.getFullYear(),direction:"left",onClick:e.goPreviousMonth}),jsxs(g,{row:true,gap:"md",children:[jsx(ir.Dropdown,{fontSize:e.monthFontSize,arrowSize:e.arrowSize,selectedOption:r[e.activeDate.getMonth()],options:t,onSelectedChange:o=>e.onMonthChange(r.findIndex(i=>i===o))}),jsx(ir.Dropdown,{arrowSize:e.arrowSize,fontSize:e.yearFontSize,selectedOption:e.activeDate.getFullYear().toString(),options:n.map(o=>o.toString()),onSelectedChange:o=>e.onYearChange(parseInt(o))})]}),jsx(ir.Nav,{arrowSize:e.arrowSize,disabled:e.maxDate.getMonth()<=e.activeDate.getMonth()&&e.maxDate.getFullYear()<=e.activeDate.getFullYear(),direction:"right",onClick:e.goNextMonth})]})}ir.Nav=e=>jsx(LiaAngleLeftSolid,{size:e.arrowSize,style:{cursor:e.disabled?"not-allowed":"pointer",color:x("primary"),opacity:e.disabled?.5:1,transform:e.direction==="right"?"rotate(180deg)":void 0},onClick:e.disabled?void 0:e.onClick});ir.Dropdown=e=>{let[r,t]=useState(e.selectedOption),n=o=>{e.onSelectedChange?.(o.value),t(o.value);};return jsx(Nr,{wrap:true,fontSize:`calc(${e.fontSize} * .76)`,maxHeight:"10rem",isSelected:o=>o.value===r,options:e.options,onOptionClick:n,children:jsxs(g,{row:true,align:"center",gap:"sm",cursor:"pointer",children:[jsx(C,{fontSize:e.fontSize,fontWeight:"bold",text:r}),jsx(LiaAngleDownSolid,{size:`calc(${e.arrowSize} * .625)`,style:{color:x("primary")}})]})})};sn.DAYS_OF_WEEK=["Su","Mo","Tu","We","Th","Fr","Sa"];var Ao=e=>{let r=[],t=new Date(castReturn(e));for(t.setDate(1),r.push(1);;){let n=t.getDate()+1;if(t.setDate(n),t.getMonth()===castReturn(e).getMonth())r.push(n);else break}return r},Jy=e=>{let r=new Date(e);for(;r.getMonth()===e.getMonth();)r.setDate(r.getDate()+1);return r.setDate(r.getDate()-1),r.getDate()};function Wy(e){let r=A({defaultValue:null}),{controller:t,triggerElement:n,backdropBlur:o,backgroundColor:i,...a}=e,l=e.actionButtonSize||"xs",s=p=>{r.upsert(p),e.onDateSelected?.(p);},u=()=>{let p=r.read();p&&e.onDoneClick?.(p);},f=p=>{e.onOpenChange?.(p);};return jsxs(F.Root,{hideCloseButton:true,onOpenChange:f,width:"max-content",controller:t,triggerElement:n,backgroundColor:i||"surface[0.25]",backdropBlur:o||".5rem",children:[e.title&&jsx(F.Header,{fontSize:e.titleFontSize,children:e.title}),jsx(F.Body,{children:jsx(sn,{...a,selectedDate:e.selectedDate||r.read(),onDateSelected:s})}),jsxs(F.Footer,{children:[jsx(F.ActionTrigger,{children:jsx(ot,{size:l,fade:.5})}),jsx(F.ActionTrigger,{children:jsx(Ju,{size:l,onClick:u})})]})]})}var Hy=Wy;c();function Qy(e){let[r,t]=useState(),n=r?FaAngleUp:FaAngleDown,o=i=>{if(i.content)return typeof i.content=="string"?jsx("span",{children:i.content}):jsx(g,{fade:.75,padding:["md",["left","right","bottom"]],fontSize:"xs",children:Object.keys(i.content).map(a=>jsxs("span",{children:[jsxs("strong",{children:[a,":"]}),"\xA0",i.content[a]]}))})};return jsxs(F.Root,{triggerElement:e.triggerElement,controller:e.controller,width:"22rem",children:[jsx(F.Header,{children:"Payment Options"}),jsx(F.Body,{gap:"sm",width:"full",children:e.options.map((i,a)=>{let l=i.variables?i?.["pre-element"]?.(i.variables):void 0,s=i.variables?i?.["post-element"]?.(i.variables):void 0;return jsxs(Fragment,{children:[l,jsxs(g,{width:"full",css:{backgroundColor:r?.index===a?"onSurface[0.1]":void 0},corners:"md",asChildren:!i.dropDownContent,children:[jsxs(g,{row:true,gap:"md",width:"full",align:"center",fade:i.disabled?.5:1,cursor:i.disabled?"not-allowed":"pointer",padding:"md",corners:"md",css:{transition:"all 300ms linear",":hover":i.disabled||r?.index===a?void 0:{backgroundColor:"onSurface[0.1]"}},onClick:()=>{i.onClick?.(i.variables),i.dropDownContent&&t(r?void 0:{index:a});},children:[jsx(i.icon,{size:"1.5rem"}),jsxs(g,{asChildren:!i.description,width:"full",children:[jsx(C,{width:"full",fontSize:"sm",text:i.label}),i.description&&jsx("span",{children:i.description,style:{opacity:.75,fontSize:R.xs}})]}),i.dropDownContent&&jsx(n,{})]}),i.dropDownContent&&r?.index===a&&jsx(o,{content:i.dropDownContent})]}),s]})})})]})}var Ku=e=>e,nR=e=>Ku({icon:RiBankFill,label:"Bank Transfer",dropDownContent:{"Name On Account":e.accountName,Bank:e.bank,"Account type":e.accountType,"Account #":`${e.accountNo}`,"Transit #":`${e.transitNo}`,Branch:e.branch,"Transfer currency":e.transferCurrency}}),oR=()=>Ku({icon:RiSecurePaymentFill,label:"In App Payment",disabled:true,variables:{}}),Fo=Qy;c();var Yu=createContext(null);function Lo(e){let r=e.controller,t=!!r.value?.response,{title:n,message:o}=r.value?.response||r.value?.error||{},i=t?"carlsbergGreen":"billsRed",a=(()=>{if(r?.value)return !e.indicator||e.indicator==="normal"?t?BsCheck2Circle:IoWarningOutline:e.indicator==="mail"?t?RiMailSendLine:RiMailCloseLine:e.indicator(t?"success":"error")})(),l=e.actionButton?.(t?"succes":"error"),s={title:k({fontSize:e.titleFontSize||"lg"}),description:k({fontSize:e.descriptionFontSize||"sm",fade:.5})},u=({fontSize:f,lineHeight:p,opacity:h})=>({fontSize:f,lineHeight:p,opacity:h});return jsx(Yu.Provider,{value:{color:i},children:jsxs(F.Root,{onClose:e.onClose,controller:r,width:e.width,minWidth:e.minWidth,maxWidth:e.maxWidth??"25rem",gap:"sm",unmountOnExit:e.unmountOnExit,borderColor:e.disableColorIndicator?void 0:[i,"left"],children:[jsxs(F.Body,{grid:true,gridCols:"auto 1fr",gap:"lg",children:[jsx(a,{color:x(i),size:typeof e.indicatorSize=="function"?e.indicatorSize(t?"success":"error"):e.indicatorSize??"2.75rem"}),jsxs(g,{width:"full",gap:"sm",spill:"hidden",padding:["md","top"],children:[jsx("span",{style:u(s.title),children:n}),jsx("span",{style:u(s.description),children:o})]})]}),jsxs(F.Footer,{row:true,gap:"md",align:"center",children:[jsx(F.ActionTrigger,{children:jsx(T,{size:"xs",backgroundColor:l?"transparent":"onSurface[0.1]",color:"onSurface[0.75]",text:"Dismiss",onClick:r.hide})}),l?jsx(l_,{...l}):void 0]})]})})}function l_(e){let{color:r}=useContext(Yu);return jsx(T,{async:e.async,disabled:e.disabled,backgroundColor:r,leadingEl:e.leadingIcon,color:"white",size:"xs",trailingEl:e.trailingIcon,text:e.label,onClick:e.onClick})}var qu=e=>r=>({disabled:r.disabled,async:true,label:e,leadingIcon:GrRotateLeft,onClick:r.onClick});Lo.tryAgainButton=qu("Try Again");Lo.retryButton=qu("Retry");var dn=Lo;c();var Zo="onPaper[0.1]",Vo=", ";function d_(e){let r=A({defaultValue:typeof e.disableSend=="boolean"?e.disableSend:!!e.onSendClick}),t=ed(),n=A({defaultValue:{subject:e.subject??"",body:{text:e.body||""},recipients:e.recipients||[],attachments:e.attachments||[]}}),o=(l,s)=>{n.upsert(u=>({...u,[l]:s}));},i=()=>strictArray(n.read().recipients),a=async()=>{let{subject:l,body:{text:s},attachments:u}=n.read(),f=await e.onSendClick({subject:l,body:{text:s,html:e.bodyToHtml?.(s)},recipients:i(),attachments:u});if(typeof f!="object")return;let{error:p,response:h}=f;if(typeof e.disableSend=="function"&&r.upsert(e.disableSend(f)),p)return t.show({error:p});h!=="success"?t.show({response:h}):t.show({response:{title:"Successfully sent email!",message:"Your email was successfully sent to the intended recipients."}});};return jsxs(g,{height:e.height||"15rem",width:e.width||"22rem",backgroundColor:"paper",color:"onPaper",corners:"md",padding:"md",spill:"hidden",style:{boxShadow:"rgba(0, 0, 0, 0.35) 0px 5px 15px"},children:[jsx(dn,{unmountOnExit:true,disableColorIndicator:e.slotProps?.taskResultDialog?.disableColorIndicator,controller:t,indicator:"mail",actionButton:l=>l==="succes"?void 0:dn.tryAgainButton({disabled:r.read(),onClick:a})}),e.readOnly&&n.read().recipients?jsx(f_,{recipients:i()}):jsx(m_,{readOnly:e.readOnly,recipients:i(),onChange:l=>o("recipients",l.split(Vo))}),jsx(p_,{subject:n.read().subject,readOnly:e.readOnly,onChange:l=>o("subject",l)}),jsxs(g,{size:"full",gap:"sm",spill:"hidden",children:[jsx(g_,{defaultValue:n.read().body.text,readOnly:e.readOnly,onChange:l=>o("body",{text:l})}),jsxs(g,{width:"full",row:true,align:"center",justify:"space-between",gap:"md",children:[jsx(Ro,{attachments:n.read().attachments,corners:"lg",slotProps:{attachmentsDialog:{...e.slotProps?.attachmentsDialog,unmountOnExit:true,uploadDisabled:e.readOnly||e.slotProps?.attachmentsDialog?.uploadDisabled,deleteDisabled:e.readOnly||e.slotProps?.attachmentsDialog?.deleteDisabled}}}),jsx(jo,{size:"2xs",disabled:r.read(),onClick:a})]})]})]})}function m_(e){let[r,t]=useState(false),n=o=>jsx(C,{text:o.value,cursor:"not-allowed",sx:{":hover":{textDecoration:"underline"}}});return jsx(Qu,{readOnly:e.readOnly,placeholder:"Recipients",defaultValue:e.recipients.join(Vo),onFocus:e.readOnly?void 0:()=>t(true),onBlur:e.readOnly?void 0:()=>t(false),autoFocus:r,leadingContent:r?jsx(C,{fontSize:"xs",text:"To:"}):void 0,trailingContent:jsxs(g,{row:true,gap:"sm",fontSize:"xs",children:[jsx(n,{value:"Cc"}),jsx(n,{value:"Bcc"})]}),indent:{right:"3rem"},onChange:e.onChange})}function f_(e){return jsxs(g,{width:"full",grid:true,gridCols:"1fr auto",gap:"md",justify:"space-between",borderColor:[Zo,"bottom"],children:[jsx(g,{row:true,width:"full",gap:"md",spill:"hidden",padding:["sm","bottom"],children:e.recipients.map(r=>jsxs(g,{row:true,align:"center",gap:"sm",fontSize:"xs",color:"onPaper",borderColor:"onPaper[0.1]",padding:"xs",corners:"xl",spill:"hidden",children:[jsx(He,{size:"2xs",backgroundColor:"sendBlue[0.25]",color:"sendBlue"}),jsx(C,{ellipsis:true,text:r})]}))}),jsx(Mo,{textToCopy:e.recipients.join(Vo)})]})}function p_(e){let r=!!(e.readOnly&&e.subject);return jsxs(g,{row:true,width:"full",gap:"md",justify:"space-between",align:"center",padding:["xs",["top","bottom"]],asChildren:!r,borderColor:[Zo,"bottom"],children:[jsx(Qu,{disableSepColor:r,placeholder:"Subject",defaultValue:e.subject,readOnly:e.readOnly,onChange:e.onChange}),r&&jsx(Mo,{textToCopy:e.subject})]})}function g_(e){let r=!!(e.defaultValue&&e.readOnly);return jsxs(g,{pos:"relative",size:"full",asChildren:!r,children:[jsx("textarea",{defaultValue:e.defaultValue,readOnly:e.readOnly,style:{position:r?"relative":void 0,scrollbarColor:`${x("onPaper")} transparent`,padding:".6rem",width:"100%",height:"100%",backgroundColor:"transparent",outline:"none",resize:"none",fontSize:R.xs,zIndex:1,flexShrink:r?0:1},onChange:t=>e.onChange(t.target.value)}),r&&jsx(g,{pos:"absolute",top:"72.5%",left:"85%",style:{zIndex:2},children:jsx(Mo,{textToCopy:e.defaultValue})})]})}function Qu(e){return jsx(xe,{size:"xs",readOnly:e.readOnly,corners:0,defaultValue:e.defaultValue,autoFocus:e.autoFocus,focusColor:"transparent",onFocus:e.onFocus,onBlur:e.onBlur,indent:e.indent,placeholder:e.placeholder,leadingContent:e.leadingContent,trailingContent:e.trailingContent,borderColor:e.disableSepColor?"transparent":[Zo,"bottom"],onChange:e.onChange})}function Mo(e){return jsx($r,{iconOnly:true,iconSize:"xs",textToCopy:e.textToCopy,backgroundColor:"onPaper[0.1]",color:"onPaper",borderColor:"onPaper[0.25]"})}var v_=d_;c();c();function h_(e){return jsxs(g,{row:true,gap:"md",children:[jsx(nd,{onClick:e.onNoClick}),jsx(td,{onClick:e.onYesClick})]})}var Jo=h_;function b_(e){return jsxs(g,{centerContent:true,size:"full",gap:"md",children:[e.icon&&jsx(e.icon,{opacity:.15,size:"5rem"}),jsx(Text,{fontSize:"1.5rem",opacity:.75,children:e.question}),jsx(Jo,{onNoClick:()=>{e.onNoClick?.(),e.onOptionClick?.("no");},onYesClick:()=>{e.onYesClick?.(),e?.onOptionClick?.("yes");}})]})}var x_=b_;c();function C_(e){let r=e.json?JSON.parse(e.json):void 0;return jsx(g,{size:e.fullSize?"full":void 0,height:e.height||"25rem",width:e.width||"35rem",pos:"relative",centerContent:!e.json,padding:"lg",corners:"md",borderColor:"outlineVariant[0.25]",style:{overflow:"auto",backgroundImage:"radial-gradient(circle at 1px 1px, rgba(255,255,255, .1) 1px, transparent 0)",backgroundSize:"20px 20px"},children:e.json?jsx("pre",{style:{width:"100%"},children:jsx("code",{children:jsx(Go,{value:r})})}):jsx(P_,{})})}function P_(){let e=r=>jsx(C,{fontSize:"2rem",color:"jsonBracket",text:r.value});return jsx(g,{centerContent:true,corners:"md",gap:"md",padding:"xl",children:jsx("pre",{children:jsx("code",{children:jsxs("span",{style:{fontSize:"1.5rem"},children:[jsx(e,{value:"{ "}),jsx(C,{color:"jsonKey",text:'"JSON"'}),":",jsx(C,{color:"string",text:'"Viewer"'}),jsx(e,{value:" }"})]})})})})}var k_=["string","number","boolean"];function Ho(e){let r=(()=>{let t=typeof e.value;if(t==="string")return "string";if(t==="number")return "number";if(t==="boolean")return "boolean"})();return jsx(C,{color:r,text:typeof e.value=="string"?`"${e.value}"`:`${e.value}`})}function od(e){return jsxs(Fragment,{children:[jsx(C,{width:"full",color:"arrayBracket",text:"["}),e.value.map((r,t)=>jsx(o=>{let i=e.value.some(a=>typeof a=="object");return jsxs(Fragment,{children:[i&&jsx("br",{}),o.children,t===e.value.length-1?"":", ",i&&t===e.value.length-1&&jsx("br",{})]})},{children:typeof r=="object"?jsx(Go,{indent:true,indentInitialBracket:true,value:r}):Array.isArray(r)?jsx(od,{value:r}):jsx(Ho,{value:r})})),jsx(C,{color:"arrayBracket",text:"]"})]})}function Go(e){let r="1rem",t=e.indentMultiplier||2,n=e.indent?`calc(${r} * ${t})`:r,o=`calc(${n} / ${t})`;return jsxs(Fragment,{children:[jsx(C,{style:{paddingLeft:e.indentInitialBracket?o:void 0},color:"jsonBracket",text:"{"}),jsx("br",{}),Object.keys(e.value).map((i,a,l)=>{let s=i,u=e.value[s],f=()=>k_.includes(typeof u)?jsx(Ho,{value:u}):Array.isArray(u)?jsx(od,{value:u}):typeof u=="object"?jsx(Go,{indent:true,value:u}):jsx(Ho,{value:`${u}`});return jsxs("span",{style:{paddingLeft:n,width:"100%"},children:[jsx(C,{color:"jsonKey",text:`"${s}"`})," : ",jsx(f,{}),a===l.length-1?"":",",jsx("br",{})]})}),jsx(C,{style:{paddingLeft:e.indent?o:void 0},color:"jsonBracket",text:"}"})]})}var Ko=C_;c();c();c();function B_(e){let r=e.accepts?castArray(e.accepts):[...Gt.options].filter(s=>s!=="unknown");console.log({accepts:e.accepts,_accepts:r});let t=getMimeTypes(distinct(strictArray(r))),n=e.multiple?1/0:e.maxFiles??1,o=useRef(null),i=(...s)=>{if(e.disabled)return;let u="target"in s[0]?s[0].target.files:s[0],f=[],p=[],h=y=>strictArray(y).map(z=>toObject(z,{uploadDate:"now",filepath:e.getFilePath?.(z)}));for(let y of u){if(f.length+p.length>=n)break;t.includes(y.type)?f.push(y):p.push(y);}isEmpty(f)||e.onAccept?.(f,h(f)),isEmpty(p)||e.onReject?.(p,h(p));},a=s=>{if(s.preventDefault(),!e.allowDrop||e.disabled)return;let u=[];if(s.dataTransfer.items?u=[...s.dataTransfer.items].filter(f=>f.kind==="file").map(f=>f.getAsFile()):u=[...s.dataTransfer.files],!isEmpty(u)){let f=new DataTransfer;u.forEach(p=>f.items.add(p)),i(u);}},l=()=>{e.disabled||o.current.click();};return jsxs("label",{className:e.className,style:{...k(e),userSelect:e.disableSelection?"none":void 0,cursor:"pointer"},onDrop:a,onDragOver:s=>s.preventDefault(),onClick:l,children:[e.children,jsx("input",{id:"file",type:"file",ref:o,style:{display:"none"},onChange:i,accept:t.join(", "),multiple:e.multiple})]})}var ad=B_;function ld(e){return r=>{let{size:t,fontSize:n,iconSize:o,fileClass:i,backgroundColor:a,accepts:l=e?.accepts,...s}=r||{};return jsx(ad,{spill:"hidden",corners:r.corners||"md",accepts:l,...s||{},allowDrop:false,children:jsx(T,{debug:r.debug,disabled:r.disabled,width:r.width,backgroundColor:a,corners:r.corners||"md",borderColor:r.borderColor,color:r.color,variant:"outline",fontSize:n,leadingEl:HiUpload,iconSize:o,size:t||"sm",text:`Upload ${r.hideFileClass?"":i||e?.fileClass}`.trim(),style:{flexShrink:0}})})}}var mt=ld({fileClass:"file"}),pF=ld({fileClass:"receipt",accepts:["img"]});function j_(e){let[r,t]=useState(e.defaultPicture?.path),n=({children:i})=>e.label?jsxs(g,{gap:e.rowGap||"md",children:[jsx(C,{fontSize:e.slotProps?.label?.fontSize||"sm",fontWeight:e.slotProps?.label?.fontWeight||"bold",fade:e.slotProps?.label?.fade||.75,text:e.label}),i]}):i,o=(i,a)=>{let l=a[0];t(l.path),e.onChange?.(l);};return jsx(n,{children:jsxs(g,{row:true,gap:e.columnGap||"lg",align:"center",children:[jsx(He,{size:"xl",fallback:e.fallback||IoMdImages,src:r||null,style:e.slotProps?.avatar?.style}),jsx(mt,{size:e.slotProps?.uploadButton?.size,fileClass:"photo",accepts:["img"],getFilePath:e.getFilePath,onAccept:o})]})})}var N_=j_;c();function U_(e){let r=e.authProviders||js.options;return jsxs(g,{padding:"1.75rem",corners:"lg",gap:"xl",width:e.width,borderColor:e.glassy?void 0:"outlineVariant",backgroundColor:e.backgroundColor||(e.glassy?"onSurface[0.1]":"surfaceContainer"),backdropBlur:e.glassy?".5rem":void 0,color:e.color||"onSurface",style:{boxShadow:"rgba(0, 0, 0, 0.35) 0px 5px 15px",zIndex:e.zIndex},children:[e.header||jsxs(g,{width:"full",color:"inherit",children:[jsx(C,{fontWeight:"bold",fontSize:"1.55rem",text:"Sign In"}),jsx("span",{style:{opacity:.75,fontSize:".95rem"},children:"Select a sign-in method to continue."})]}),jsx(g,{width:"full",color:"inherit",children:r.map(t=>jsx(L_,{provider:t,onClick:e.onAuthProviderClick}))})]})}function L_(e){let r=(()=>{switch(e.provider){case "Google":return FcGoogle;default:return e.provider}})(),t=()=>e.onClick(e.provider);return jsx(T,{async:true,width:"full",pendingDelay:1e3,borderColor:"outlineVariant",backgroundColor:"transparent",color:"inherit",padding:".75rem",iconSize:"md",leadingEl:r,text:`Continue with ${e.provider}`,style:{boxShadow:"rgba(0, 0, 0, 0.25) 0px 3px 8px"},onClick:t})}var Z_=U_;c();c();var dd={timestamp:Date.now(),status:"info",response:"Hello World!"};function H_(e){useEffect(()=>{e.initialMessage&&(dd.response=e.initialMessage);},[]);let r=[dd,...e.logs];return jsx(g,{size:"full",spill:{x:"hidden",y:"auto"},padding:"lg",corners:"md",borderColor:"outlineVariant",backgroundColor:"outlineVariant[0.1]",gap:"sm",maxHeight:"full",children:jsx(For,{each:r,children:(t,n)=>jsx(X_,{...t,scrollIntoView:n===lastIndex(r)},n)})})}function X_(e){let r={error:"error",success:"carlsbergGreen",info:"teal"};return jsxs("span",{ref:t=>{t&&e.scrollIntoView&&t.scrollIntoView();},style:{fontSize:".85rem",wordSpacing:".25rem"},children:[jsx("span",{style:{opacity:.5,wordSpacing:"normal"},children:format("date",e.timestamp,"hh:mm:ss A")}),"\xA0",jsx("span",{style:{fontWeight:"bold",color:x(r[e.status])},children:`[${e.status}]`}),"\xA0",typeof e.response=="object"&&jsxs(Fragment,{children:[jsx(bu,{labelOpacity:.75,label:e.response.tag}),"\xA0"]}),jsx("span",{style:{wordSpacing:"normal",backgroundColor:e.status==="info"?void 0:x(`${r[e.status]}[0.25]`),padding:"0px .2rem"},children:typeof e.response=="object"?e.response.message:e.response})]})}var qo=H_;function eb(e){let[r,t]=useState(e.defaultTasks||[]);return useEffect(()=>e.onSnapshot(n=>{let o=Array.isArray(n)?n:"logs"in n?n.logs:null;t(o?sort(o,"timestamp","asc"):[...r,n]);}),[]),jsxs(g,{size:"full",grid:true,gridRows:"1fr .85fr",spill:"hidden",maxHeight:"full",children:[jsx(g,{size:"full",spill:{x:"hidden",y:"auto"},gap:"lg",style:{flexShrink:0},maxHeight:"full",children:jsx(For,{each:e.relatedTaskData,children:({content:n,...o})=>jsx(au,{item:o,info:n})})}),jsx(qo,{initialMessage:"Awaiting registration process...",logs:r})]})}var rb=eb;c();function ob(e){return jsx(xe,{...e,leadingAdornment:null,width:e.width||"20rem",backgroundColor:e.backgroundColor||"onSurface[0.1]",leadingContent:jsx(CiSearch,{size:e.searchIconSize||"1.15rem"}),placeholder:e.placeholder||"Search..."})}var Eo=ob;c();c();function ab(e){return e.error?jsx(on,{...e,tooltip:jsx("span",{children:Object.keys(e.error).map(r=>{let t=r;return jsxs("span",{children:[jsx(C,{fontWeight:"bold",text:camelCaseToLetter(t)+": "}),jsx("span",{style:{textDecoration:"underline",opacity:.75,fontWeight:"normal"},children:e.error[t]}),jsx("br",{})]})})})}):e.children}var Qo=ab;function sb(e){let r=A({defaultValue:e?.verifyError}),[t,n]=useState(e?.defaultStatus||"pending"),o=async()=>{let i=await e.onVerifyClick();if(console.log({verifyReq:i}),i.response)return n("success");r.upsert(i.error),n("error");};return jsx(xe,{...e,leadingAdornment:jsx(Qo,{wrapChildren:true,asChild:t!=="error",error:r.read(),children:jsx(Su,{indicatorSize:".4rem",status:t})}),trailingContent:jsx(No,{onClick:o})})}var ei=sb;c();function gd(e){let r=format("name",e.name),t=({value:n,default:o={}})=>{let{fade:i=o.fade,fontSize:a=o.fontSize||e.fontSize||".85rem",fontWeight:l=o.fontWeight,lineHeight:s=o.lineHeight=a,style:u}=e.slotProps?.[n]||{};return jsx(C,{ellipsis:true,fade:i,fontSize:a,fontWeight:l,text:n==="name"?r:e.email,style:{...u||{},lineHeight:u?.lineHeight||(s in R?R[s]:s)}})};return jsxs(g,{row:true,align:"center",spill:"hidden",gap:e.columnGap??e.gap??"md",width:e.fullWidth?"full":void 0,style:e.style,children:[jsx(He,{size:e.slotProps?.avatar?.size,fallback:e.useDefaultFallback?void 0:r,src:e.picture,backgroundColor:e.slotProps?.avatar?.backgroundColor,color:e.slotProps?.avatar?.color,style:e.slotProps?.avatar?.style,fallbackStyle:e.slotProps?.avatar?.fallbackStyle}),jsxs(g,{gap:e.rowGap??e.gap,width:"full",spill:"hidden",children:[jsx(t,{value:"name"}),jsx(t,{value:"email",default:{fade:.5}})]}),e.trailingEl]})}gd.RemoveButton=e=>jsx(IconButton,{variant:"outline",rounded:"full",size:"2xs",onClick:e.onClick,children:jsx(IoRemove,{})});var fb=gd;c();function vd(e){return r=>{let[t,n]=useState(false);return jsx(T,{borderColor:r.borderColor||"onSurface[0.25]",backgroundColor:r.backgroundColor||"onSurface[0.1]",color:r.color||"onSurface",size:r.size||"xs",fontSize:r.fontSize,iconSize:r.iconSize,backdropBlur:".1rem",leadingEl:t?IoCheckmark:e.actionIcon,text:r.iconOnly?void 0:e.label(t),onClick:async()=>{if(t)return;let{error:o}=await e.handleOnClick(r);if(o)return console.error(new Error(o.message,{cause:o}));n(true),setTimeout(()=>n(false),3e3);}})}}var Eu=vd({actionIcon:ImPaste,label:e=>e?"Pasted!":"Paste",handleOnClick:async({inputRef:e,onClick:r})=>{let{error:t,response:n}=await readClipboardText();return t?{error:t}:(e?.current&&(e.current.value=n.text),r?.(n.text),{response:"success"})}}),$r=vd({actionIcon:IoCopyOutline,label:e=>e?"Copied!":"Copy",handleOnClick:async({textToCopy:e,inputRef:r,onClick:t})=>{t?.();let n=e?typeof e=="function"?e():e:r?.current?.value;if(!n)return {error:{code:"BAD_REQUEST",title:"Failed to copy text.",message:"Failed to find the text to copy."}};let{error:o}=await copyToClipboard(n);return o?{error:o}:{response:"success"}}});c();function yd(e){return r=>jsx(T,{disabled:r.disabled,size:r.size,padding:r.padding,corners:"circle",backgroundColor:r.backgroundColor||"onSurface[0.1]",color:r.color||"onSurface",fontSize:r.iconSize,onClick:r.onClick,children:jsx(Icon,{as:e,boxSize:r.iconSize})})}var rN=yd(BsPlus),tN=yd(BsDash);c();function _d(e){return r=>jsx(T,{...e.defaults,text:e.label,onClick:r.onClick})}var td=_d({label:"Yes"}),nd=_d({label:"No",defaults:{variant:"outline"}});c();var mN=Ne({preset:{leadingEl:IoMdDownload,text:"Download",trailingEl:null},optional:{backgroundColor:"sendBlue",color:"onSendBlue"}});c();c();function zb(e){let r=A({defaultValue:e.defaulValue?.token||""}),t=useRef(null),[n,o]=useState(e.defaulValue?.status),i=async()=>{let l=await e.onVerifyClick?.(r.read());return o(l),l.verified?{response:"success"}:{error:l.error}},a=l=>{r.upsert(l),e.onTokenChange?.(l);};return jsxs(g,{size:"full",spill:"hidden",maxHeight:"full",gap:"lg",children:[jsx(ei,{allowCopyText:true,allowPasteText:true,required:true,defaultStatus:n?n.verified?"success":"error":"pending",ref:t,placeholder:e.hint,defaultValue:r.read(),onPasteClick:a,onChange:a,onVerifyClick:i}),jsxs(g,{size:"full",spill:"hidden",gap:"sm",children:[n&&jsx($r,{textToCopy:n.payload}),jsx(Ko,{fullSize:true,json:n?n.payload:void 0})]})]})}var Db=zb;c();c();function Qt(e){switch(e){case "excel":return {filled:RiFileExcel2Fill,outlined:RiFileExcel2Line};case "word":return {filled:RiFileWord2Fill,outlined:RiFileWord2Line};case "pdf":return {filled:FaFilePdf,outlined:FaRegFilePdf};case "img":return {filled:FaFileImage,outlined:FaRegFileImage};case "txt":return {filled:RiFileTextFill,outlined:RiFileTextLine};case "unknown":return {filled:AiFillFileUnknown,outlined:AiOutlineFileUnknown};default:return e}}c();c();c();c();var xd=(E=>(E.white="#FFF",E.black="#000",E.gray="#808080",E.pdf="#F40F02",E.word="#41A5EE",E.excel="#21A366",E.img="#8d481f",E.txt="#8c61a9",E.deepSkyBlue="#00BFFF",E.lightSkyBlue="#87CEFA",E.sendBlue="#0a57d0",E.onSendBlue="#c3dfff",E.book_it="#009688",E.stickyNote="#EFAD03",E.matteBlack="#28282B",E.navyBlue="#000080",E.teal="#008080",E.paper="#ffffff",E.onPaper="#28282B",E.paperVariant="#E6E6E6",E.success="#4BB543",E.hyperlink="#2979ff",E.gold="#d4af37",E.carlsbergGreen="#17B169",E.billsRed="#C60C30",E.info="#1565c0",E.error="#C60C30",E.warning="#f9a825",E.jsonKey="#D56C75",E.string="#59A779",E.number="#D19A5A",E.boolean="#56B6C2",E.jsonBracket="#FFCA1D",E.arrayBracket="#DA68A7",E.delete="#C60C30",E.pdf_table_header="#28282B",E))(xd||{}),Ie=xd;c();var Zb=Object.freeze({"primary[0.1]":"var(--primary__100)","primary[0.15]":"var(--primary__150)","primary[0.2]":"var(--primary__200)","primary[0.25]":"var(--primary__250)","primary[0.3]":"var(--primary__300)","primary[0.35]":"var(--primary__350)","primary[0.4]":"var(--primary__400)","primary[0.45]":"var(--primary__450)","primary[0.5]":"var(--primary__500)","primary[0.55]":"var(--primary__550)","primary[0.6]":"var(--primary__600)","primary[0.65]":"var(--primary__650)","primary[0.7]":"var(--primary__700)","primary[0.75]":"var(--primary__750)","primary[0.8]":"var(--primary__800)","primary[0.85]":"var(--primary__850)","primary[0.9]":"var(--primary__900)","primary[0.95]":"var(--primary__950)",primary:"var(--primary)","surfaceTint[0.1]":"var(--surface-tint__100)","surfaceTint[0.15]":"var(--surface-tint__150)","surfaceTint[0.2]":"var(--surface-tint__200)","surfaceTint[0.25]":"var(--surface-tint__250)","surfaceTint[0.3]":"var(--surface-tint__300)","surfaceTint[0.35]":"var(--surface-tint__350)","surfaceTint[0.4]":"var(--surface-tint__400)","surfaceTint[0.45]":"var(--surface-tint__450)","surfaceTint[0.5]":"var(--surface-tint__500)","surfaceTint[0.55]":"var(--surface-tint__550)","surfaceTint[0.6]":"var(--surface-tint__600)","surfaceTint[0.65]":"var(--surface-tint__650)","surfaceTint[0.7]":"var(--surface-tint__700)","surfaceTint[0.75]":"var(--surface-tint__750)","surfaceTint[0.8]":"var(--surface-tint__800)","surfaceTint[0.85]":"var(--surface-tint__850)","surfaceTint[0.9]":"var(--surface-tint__900)","surfaceTint[0.95]":"var(--surface-tint__950)",surfaceTint:"var(--surface-tint)","onPrimary[0.1]":"var(--on-primary__100)","onPrimary[0.15]":"var(--on-primary__150)","onPrimary[0.2]":"var(--on-primary__200)","onPrimary[0.25]":"var(--on-primary__250)","onPrimary[0.3]":"var(--on-primary__300)","onPrimary[0.35]":"var(--on-primary__350)","onPrimary[0.4]":"var(--on-primary__400)","onPrimary[0.45]":"var(--on-primary__450)","onPrimary[0.5]":"var(--on-primary__500)","onPrimary[0.55]":"var(--on-primary__550)","onPrimary[0.6]":"var(--on-primary__600)","onPrimary[0.65]":"var(--on-primary__650)","onPrimary[0.7]":"var(--on-primary__700)","onPrimary[0.75]":"var(--on-primary__750)","onPrimary[0.8]":"var(--on-primary__800)","onPrimary[0.85]":"var(--on-primary__850)","onPrimary[0.9]":"var(--on-primary__900)","onPrimary[0.95]":"var(--on-primary__950)",onPrimary:"var(--on-primary)","primaryContainer[0.1]":"var(--primary-container__100)","primaryContainer[0.15]":"var(--primary-container__150)","primaryContainer[0.2]":"var(--primary-container__200)","primaryContainer[0.25]":"var(--primary-container__250)","primaryContainer[0.3]":"var(--primary-container__300)","primaryContainer[0.35]":"var(--primary-container__350)","primaryContainer[0.4]":"var(--primary-container__400)","primaryContainer[0.45]":"var(--primary-container__450)","primaryContainer[0.5]":"var(--primary-container__500)","primaryContainer[0.55]":"var(--primary-container__550)","primaryContainer[0.6]":"var(--primary-container__600)","primaryContainer[0.65]":"var(--primary-container__650)","primaryContainer[0.7]":"var(--primary-container__700)","primaryContainer[0.75]":"var(--primary-container__750)","primaryContainer[0.8]":"var(--primary-container__800)","primaryContainer[0.85]":"var(--primary-container__850)","primaryContainer[0.9]":"var(--primary-container__900)","primaryContainer[0.95]":"var(--primary-container__950)",primaryContainer:"var(--primary-container)","onPrimaryContainer[0.1]":"var(--on-primary-container__100)","onPrimaryContainer[0.15]":"var(--on-primary-container__150)","onPrimaryContainer[0.2]":"var(--on-primary-container__200)","onPrimaryContainer[0.25]":"var(--on-primary-container__250)","onPrimaryContainer[0.3]":"var(--on-primary-container__300)","onPrimaryContainer[0.35]":"var(--on-primary-container__350)","onPrimaryContainer[0.4]":"var(--on-primary-container__400)","onPrimaryContainer[0.45]":"var(--on-primary-container__450)","onPrimaryContainer[0.5]":"var(--on-primary-container__500)","onPrimaryContainer[0.55]":"var(--on-primary-container__550)","onPrimaryContainer[0.6]":"var(--on-primary-container__600)","onPrimaryContainer[0.65]":"var(--on-primary-container__650)","onPrimaryContainer[0.7]":"var(--on-primary-container__700)","onPrimaryContainer[0.75]":"var(--on-primary-container__750)","onPrimaryContainer[0.8]":"var(--on-primary-container__800)","onPrimaryContainer[0.85]":"var(--on-primary-container__850)","onPrimaryContainer[0.9]":"var(--on-primary-container__900)","onPrimaryContainer[0.95]":"var(--on-primary-container__950)",onPrimaryContainer:"var(--on-primary-container)","secondary[0.1]":"var(--secondary__100)","secondary[0.15]":"var(--secondary__150)","secondary[0.2]":"var(--secondary__200)","secondary[0.25]":"var(--secondary__250)","secondary[0.3]":"var(--secondary__300)","secondary[0.35]":"var(--secondary__350)","secondary[0.4]":"var(--secondary__400)","secondary[0.45]":"var(--secondary__450)","secondary[0.5]":"var(--secondary__500)","secondary[0.55]":"var(--secondary__550)","secondary[0.6]":"var(--secondary__600)","secondary[0.65]":"var(--secondary__650)","secondary[0.7]":"var(--secondary__700)","secondary[0.75]":"var(--secondary__750)","secondary[0.8]":"var(--secondary__800)","secondary[0.85]":"var(--secondary__850)","secondary[0.9]":"var(--secondary__900)","secondary[0.95]":"var(--secondary__950)",secondary:"var(--secondary)","onSecondary[0.1]":"var(--on-secondary__100)","onSecondary[0.15]":"var(--on-secondary__150)","onSecondary[0.2]":"var(--on-secondary__200)","onSecondary[0.25]":"var(--on-secondary__250)","onSecondary[0.3]":"var(--on-secondary__300)","onSecondary[0.35]":"var(--on-secondary__350)","onSecondary[0.4]":"var(--on-secondary__400)","onSecondary[0.45]":"var(--on-secondary__450)","onSecondary[0.5]":"var(--on-secondary__500)","onSecondary[0.55]":"var(--on-secondary__550)","onSecondary[0.6]":"var(--on-secondary__600)","onSecondary[0.65]":"var(--on-secondary__650)","onSecondary[0.7]":"var(--on-secondary__700)","onSecondary[0.75]":"var(--on-secondary__750)","onSecondary[0.8]":"var(--on-secondary__800)","onSecondary[0.85]":"var(--on-secondary__850)","onSecondary[0.9]":"var(--on-secondary__900)","onSecondary[0.95]":"var(--on-secondary__950)",onSecondary:"var(--on-secondary)","secondaryContainer[0.1]":"var(--secondary-container__100)","secondaryContainer[0.15]":"var(--secondary-container__150)","secondaryContainer[0.2]":"var(--secondary-container__200)","secondaryContainer[0.25]":"var(--secondary-container__250)","secondaryContainer[0.3]":"var(--secondary-container__300)","secondaryContainer[0.35]":"var(--secondary-container__350)","secondaryContainer[0.4]":"var(--secondary-container__400)","secondaryContainer[0.45]":"var(--secondary-container__450)","secondaryContainer[0.5]":"var(--secondary-container__500)","secondaryContainer[0.55]":"var(--secondary-container__550)","secondaryContainer[0.6]":"var(--secondary-container__600)","secondaryContainer[0.65]":"var(--secondary-container__650)","secondaryContainer[0.7]":"var(--secondary-container__700)","secondaryContainer[0.75]":"var(--secondary-container__750)","secondaryContainer[0.8]":"var(--secondary-container__800)","secondaryContainer[0.85]":"var(--secondary-container__850)","secondaryContainer[0.9]":"var(--secondary-container__900)","secondaryContainer[0.95]":"var(--secondary-container__950)",secondaryContainer:"var(--secondary-container)","onSecondaryContainer[0.1]":"var(--on-secondary-container__100)","onSecondaryContainer[0.15]":"var(--on-secondary-container__150)","onSecondaryContainer[0.2]":"var(--on-secondary-container__200)","onSecondaryContainer[0.25]":"var(--on-secondary-container__250)","onSecondaryContainer[0.3]":"var(--on-secondary-container__300)","onSecondaryContainer[0.35]":"var(--on-secondary-container__350)","onSecondaryContainer[0.4]":"var(--on-secondary-container__400)","onSecondaryContainer[0.45]":"var(--on-secondary-container__450)","onSecondaryContainer[0.5]":"var(--on-secondary-container__500)","onSecondaryContainer[0.55]":"var(--on-secondary-container__550)","onSecondaryContainer[0.6]":"var(--on-secondary-container__600)","onSecondaryContainer[0.65]":"var(--on-secondary-container__650)","onSecondaryContainer[0.7]":"var(--on-secondary-container__700)","onSecondaryContainer[0.75]":"var(--on-secondary-container__750)","onSecondaryContainer[0.8]":"var(--on-secondary-container__800)","onSecondaryContainer[0.85]":"var(--on-secondary-container__850)","onSecondaryContainer[0.9]":"var(--on-secondary-container__900)","onSecondaryContainer[0.95]":"var(--on-secondary-container__950)",onSecondaryContainer:"var(--on-secondary-container)","tertiary[0.1]":"var(--tertiary__100)","tertiary[0.15]":"var(--tertiary__150)","tertiary[0.2]":"var(--tertiary__200)","tertiary[0.25]":"var(--tertiary__250)","tertiary[0.3]":"var(--tertiary__300)","tertiary[0.35]":"var(--tertiary__350)","tertiary[0.4]":"var(--tertiary__400)","tertiary[0.45]":"var(--tertiary__450)","tertiary[0.5]":"var(--tertiary__500)","tertiary[0.55]":"var(--tertiary__550)","tertiary[0.6]":"var(--tertiary__600)","tertiary[0.65]":"var(--tertiary__650)","tertiary[0.7]":"var(--tertiary__700)","tertiary[0.75]":"var(--tertiary__750)","tertiary[0.8]":"var(--tertiary__800)","tertiary[0.85]":"var(--tertiary__850)","tertiary[0.9]":"var(--tertiary__900)","tertiary[0.95]":"var(--tertiary__950)",tertiary:"var(--tertiary)","onTertiary[0.1]":"var(--on-tertiary__100)","onTertiary[0.15]":"var(--on-tertiary__150)","onTertiary[0.2]":"var(--on-tertiary__200)","onTertiary[0.25]":"var(--on-tertiary__250)","onTertiary[0.3]":"var(--on-tertiary__300)","onTertiary[0.35]":"var(--on-tertiary__350)","onTertiary[0.4]":"var(--on-tertiary__400)","onTertiary[0.45]":"var(--on-tertiary__450)","onTertiary[0.5]":"var(--on-tertiary__500)","onTertiary[0.55]":"var(--on-tertiary__550)","onTertiary[0.6]":"var(--on-tertiary__600)","onTertiary[0.65]":"var(--on-tertiary__650)","onTertiary[0.7]":"var(--on-tertiary__700)","onTertiary[0.75]":"var(--on-tertiary__750)","onTertiary[0.8]":"var(--on-tertiary__800)","onTertiary[0.85]":"var(--on-tertiary__850)","onTertiary[0.9]":"var(--on-tertiary__900)","onTertiary[0.95]":"var(--on-tertiary__950)",onTertiary:"var(--on-tertiary)","tertiaryContainer[0.1]":"var(--tertiary-container__100)","tertiaryContainer[0.15]":"var(--tertiary-container__150)","tertiaryContainer[0.2]":"var(--tertiary-container__200)","tertiaryContainer[0.25]":"var(--tertiary-container__250)","tertiaryContainer[0.3]":"var(--tertiary-container__300)","tertiaryContainer[0.35]":"var(--tertiary-container__350)","tertiaryContainer[0.4]":"var(--tertiary-container__400)","tertiaryContainer[0.45]":"var(--tertiary-container__450)","tertiaryContainer[0.5]":"var(--tertiary-container__500)","tertiaryContainer[0.55]":"var(--tertiary-container__550)","tertiaryContainer[0.6]":"var(--tertiary-container__600)","tertiaryContainer[0.65]":"var(--tertiary-container__650)","tertiaryContainer[0.7]":"var(--tertiary-container__700)","tertiaryContainer[0.75]":"var(--tertiary-container__750)","tertiaryContainer[0.8]":"var(--tertiary-container__800)","tertiaryContainer[0.85]":"var(--tertiary-container__850)","tertiaryContainer[0.9]":"var(--tertiary-container__900)","tertiaryContainer[0.95]":"var(--tertiary-container__950)",tertiaryContainer:"var(--tertiary-container)","onTertiaryContainer[0.1]":"var(--on-tertiary-container__100)","onTertiaryContainer[0.15]":"var(--on-tertiary-container__150)","onTertiaryContainer[0.2]":"var(--on-tertiary-container__200)","onTertiaryContainer[0.25]":"var(--on-tertiary-container__250)","onTertiaryContainer[0.3]":"var(--on-tertiary-container__300)","onTertiaryContainer[0.35]":"var(--on-tertiary-container__350)","onTertiaryContainer[0.4]":"var(--on-tertiary-container__400)","onTertiaryContainer[0.45]":"var(--on-tertiary-container__450)","onTertiaryContainer[0.5]":"var(--on-tertiary-container__500)","onTertiaryContainer[0.55]":"var(--on-tertiary-container__550)","onTertiaryContainer[0.6]":"var(--on-tertiary-container__600)","onTertiaryContainer[0.65]":"var(--on-tertiary-container__650)","onTertiaryContainer[0.7]":"var(--on-tertiary-container__700)","onTertiaryContainer[0.75]":"var(--on-tertiary-container__750)","onTertiaryContainer[0.8]":"var(--on-tertiary-container__800)","onTertiaryContainer[0.85]":"var(--on-tertiary-container__850)","onTertiaryContainer[0.9]":"var(--on-tertiary-container__900)","onTertiaryContainer[0.95]":"var(--on-tertiary-container__950)",onTertiaryContainer:"var(--on-tertiary-container)","error[0.1]":"var(--error__100)","error[0.15]":"var(--error__150)","error[0.2]":"var(--error__200)","error[0.25]":"var(--error__250)","error[0.3]":"var(--error__300)","error[0.35]":"var(--error__350)","error[0.4]":"var(--error__400)","error[0.45]":"var(--error__450)","error[0.5]":"var(--error__500)","error[0.55]":"var(--error__550)","error[0.6]":"var(--error__600)","error[0.65]":"var(--error__650)","error[0.7]":"var(--error__700)","error[0.75]":"var(--error__750)","error[0.8]":"var(--error__800)","error[0.85]":"var(--error__850)","error[0.9]":"var(--error__900)","error[0.95]":"var(--error__950)",error:"var(--error)","onError[0.1]":"var(--on-error__100)","onError[0.15]":"var(--on-error__150)","onError[0.2]":"var(--on-error__200)","onError[0.25]":"var(--on-error__250)","onError[0.3]":"var(--on-error__300)","onError[0.35]":"var(--on-error__350)","onError[0.4]":"var(--on-error__400)","onError[0.45]":"var(--on-error__450)","onError[0.5]":"var(--on-error__500)","onError[0.55]":"var(--on-error__550)","onError[0.6]":"var(--on-error__600)","onError[0.65]":"var(--on-error__650)","onError[0.7]":"var(--on-error__700)","onError[0.75]":"var(--on-error__750)","onError[0.8]":"var(--on-error__800)","onError[0.85]":"var(--on-error__850)","onError[0.9]":"var(--on-error__900)","onError[0.95]":"var(--on-error__950)",onError:"var(--on-error)","errorContainer[0.1]":"var(--error-container__100)","errorContainer[0.15]":"var(--error-container__150)","errorContainer[0.2]":"var(--error-container__200)","errorContainer[0.25]":"var(--error-container__250)","errorContainer[0.3]":"var(--error-container__300)","errorContainer[0.35]":"var(--error-container__350)","errorContainer[0.4]":"var(--error-container__400)","errorContainer[0.45]":"var(--error-container__450)","errorContainer[0.5]":"var(--error-container__500)","errorContainer[0.55]":"var(--error-container__550)","errorContainer[0.6]":"var(--error-container__600)","errorContainer[0.65]":"var(--error-container__650)","errorContainer[0.7]":"var(--error-container__700)","errorContainer[0.75]":"var(--error-container__750)","errorContainer[0.8]":"var(--error-container__800)","errorContainer[0.85]":"var(--error-container__850)","errorContainer[0.9]":"var(--error-container__900)","errorContainer[0.95]":"var(--error-container__950)",errorContainer:"var(--error-container)","onErrorContainer[0.1]":"var(--on-error-container__100)","onErrorContainer[0.15]":"var(--on-error-container__150)","onErrorContainer[0.2]":"var(--on-error-container__200)","onErrorContainer[0.25]":"var(--on-error-container__250)","onErrorContainer[0.3]":"var(--on-error-container__300)","onErrorContainer[0.35]":"var(--on-error-container__350)","onErrorContainer[0.4]":"var(--on-error-container__400)","onErrorContainer[0.45]":"var(--on-error-container__450)","onErrorContainer[0.5]":"var(--on-error-container__500)","onErrorContainer[0.55]":"var(--on-error-container__550)","onErrorContainer[0.6]":"var(--on-error-container__600)","onErrorContainer[0.65]":"var(--on-error-container__650)","onErrorContainer[0.7]":"var(--on-error-container__700)","onErrorContainer[0.75]":"var(--on-error-container__750)","onErrorContainer[0.8]":"var(--on-error-container__800)","onErrorContainer[0.85]":"var(--on-error-container__850)","onErrorContainer[0.9]":"var(--on-error-container__900)","onErrorContainer[0.95]":"var(--on-error-container__950)",onErrorContainer:"var(--on-error-container)","background[0.1]":"var(--background__100)","background[0.15]":"var(--background__150)","background[0.2]":"var(--background__200)","background[0.25]":"var(--background__250)","background[0.3]":"var(--background__300)","background[0.35]":"var(--background__350)","background[0.4]":"var(--background__400)","background[0.45]":"var(--background__450)","background[0.5]":"var(--background__500)","background[0.55]":"var(--background__550)","background[0.6]":"var(--background__600)","background[0.65]":"var(--background__650)","background[0.7]":"var(--background__700)","background[0.75]":"var(--background__750)","background[0.8]":"var(--background__800)","background[0.85]":"var(--background__850)","background[0.9]":"var(--background__900)","background[0.95]":"var(--background__950)",background:"var(--background)","onBackground[0.1]":"var(--on-background__100)","onBackground[0.15]":"var(--on-background__150)","onBackground[0.2]":"var(--on-background__200)","onBackground[0.25]":"var(--on-background__250)","onBackground[0.3]":"var(--on-background__300)","onBackground[0.35]":"var(--on-background__350)","onBackground[0.4]":"var(--on-background__400)","onBackground[0.45]":"var(--on-background__450)","onBackground[0.5]":"var(--on-background__500)","onBackground[0.55]":"var(--on-background__550)","onBackground[0.6]":"var(--on-background__600)","onBackground[0.65]":"var(--on-background__650)","onBackground[0.7]":"var(--on-background__700)","onBackground[0.75]":"var(--on-background__750)","onBackground[0.8]":"var(--on-background__800)","onBackground[0.85]":"var(--on-background__850)","onBackground[0.9]":"var(--on-background__900)","onBackground[0.95]":"var(--on-background__950)",onBackground:"var(--on-background)","surface[0.1]":"var(--surface__100)","surface[0.15]":"var(--surface__150)","surface[0.2]":"var(--surface__200)","surface[0.25]":"var(--surface__250)","surface[0.3]":"var(--surface__300)","surface[0.35]":"var(--surface__350)","surface[0.4]":"var(--surface__400)","surface[0.45]":"var(--surface__450)","surface[0.5]":"var(--surface__500)","surface[0.55]":"var(--surface__550)","surface[0.6]":"var(--surface__600)","surface[0.65]":"var(--surface__650)","surface[0.7]":"var(--surface__700)","surface[0.75]":"var(--surface__750)","surface[0.8]":"var(--surface__800)","surface[0.85]":"var(--surface__850)","surface[0.9]":"var(--surface__900)","surface[0.95]":"var(--surface__950)",surface:"var(--surface)","onSurface[0.1]":"var(--on-surface__100)","onSurface[0.15]":"var(--on-surface__150)","onSurface[0.2]":"var(--on-surface__200)","onSurface[0.25]":"var(--on-surface__250)","onSurface[0.3]":"var(--on-surface__300)","onSurface[0.35]":"var(--on-surface__350)","onSurface[0.4]":"var(--on-surface__400)","onSurface[0.45]":"var(--on-surface__450)","onSurface[0.5]":"var(--on-surface__500)","onSurface[0.55]":"var(--on-surface__550)","onSurface[0.6]":"var(--on-surface__600)","onSurface[0.65]":"var(--on-surface__650)","onSurface[0.7]":"var(--on-surface__700)","onSurface[0.75]":"var(--on-surface__750)","onSurface[0.8]":"var(--on-surface__800)","onSurface[0.85]":"var(--on-surface__850)","onSurface[0.9]":"var(--on-surface__900)","onSurface[0.95]":"var(--on-surface__950)",onSurface:"var(--on-surface)","surfaceVariant[0.1]":"var(--surface-variant__100)","surfaceVariant[0.15]":"var(--surface-variant__150)","surfaceVariant[0.2]":"var(--surface-variant__200)","surfaceVariant[0.25]":"var(--surface-variant__250)","surfaceVariant[0.3]":"var(--surface-variant__300)","surfaceVariant[0.35]":"var(--surface-variant__350)","surfaceVariant[0.4]":"var(--surface-variant__400)","surfaceVariant[0.45]":"var(--surface-variant__450)","surfaceVariant[0.5]":"var(--surface-variant__500)","surfaceVariant[0.55]":"var(--surface-variant__550)","surfaceVariant[0.6]":"var(--surface-variant__600)","surfaceVariant[0.65]":"var(--surface-variant__650)","surfaceVariant[0.7]":"var(--surface-variant__700)","surfaceVariant[0.75]":"var(--surface-variant__750)","surfaceVariant[0.8]":"var(--surface-variant__800)","surfaceVariant[0.85]":"var(--surface-variant__850)","surfaceVariant[0.9]":"var(--surface-variant__900)","surfaceVariant[0.95]":"var(--surface-variant__950)",surfaceVariant:"var(--surface-variant)","onSurfaceVariant[0.1]":"var(--on-surface-variant__100)","onSurfaceVariant[0.15]":"var(--on-surface-variant__150)","onSurfaceVariant[0.2]":"var(--on-surface-variant__200)","onSurfaceVariant[0.25]":"var(--on-surface-variant__250)","onSurfaceVariant[0.3]":"var(--on-surface-variant__300)","onSurfaceVariant[0.35]":"var(--on-surface-variant__350)","onSurfaceVariant[0.4]":"var(--on-surface-variant__400)","onSurfaceVariant[0.45]":"var(--on-surface-variant__450)","onSurfaceVariant[0.5]":"var(--on-surface-variant__500)","onSurfaceVariant[0.55]":"var(--on-surface-variant__550)","onSurfaceVariant[0.6]":"var(--on-surface-variant__600)","onSurfaceVariant[0.65]":"var(--on-surface-variant__650)","onSurfaceVariant[0.7]":"var(--on-surface-variant__700)","onSurfaceVariant[0.75]":"var(--on-surface-variant__750)","onSurfaceVariant[0.8]":"var(--on-surface-variant__800)","onSurfaceVariant[0.85]":"var(--on-surface-variant__850)","onSurfaceVariant[0.9]":"var(--on-surface-variant__900)","onSurfaceVariant[0.95]":"var(--on-surface-variant__950)",onSurfaceVariant:"var(--on-surface-variant)","outline[0.1]":"var(--outline__100)","outline[0.15]":"var(--outline__150)","outline[0.2]":"var(--outline__200)","outline[0.25]":"var(--outline__250)","outline[0.3]":"var(--outline__300)","outline[0.35]":"var(--outline__350)","outline[0.4]":"var(--outline__400)","outline[0.45]":"var(--outline__450)","outline[0.5]":"var(--outline__500)","outline[0.55]":"var(--outline__550)","outline[0.6]":"var(--outline__600)","outline[0.65]":"var(--outline__650)","outline[0.7]":"var(--outline__700)","outline[0.75]":"var(--outline__750)","outline[0.8]":"var(--outline__800)","outline[0.85]":"var(--outline__850)","outline[0.9]":"var(--outline__900)","outline[0.95]":"var(--outline__950)",outline:"var(--outline)","outlineVariant[0.1]":"var(--outline-variant__100)","outlineVariant[0.15]":"var(--outline-variant__150)","outlineVariant[0.2]":"var(--outline-variant__200)","outlineVariant[0.25]":"var(--outline-variant__250)","outlineVariant[0.3]":"var(--outline-variant__300)","outlineVariant[0.35]":"var(--outline-variant__350)","outlineVariant[0.4]":"var(--outline-variant__400)","outlineVariant[0.45]":"var(--outline-variant__450)","outlineVariant[0.5]":"var(--outline-variant__500)","outlineVariant[0.55]":"var(--outline-variant__550)","outlineVariant[0.6]":"var(--outline-variant__600)","outlineVariant[0.65]":"var(--outline-variant__650)","outlineVariant[0.7]":"var(--outline-variant__700)","outlineVariant[0.75]":"var(--outline-variant__750)","outlineVariant[0.8]":"var(--outline-variant__800)","outlineVariant[0.85]":"var(--outline-variant__850)","outlineVariant[0.9]":"var(--outline-variant__900)","outlineVariant[0.95]":"var(--outline-variant__950)",outlineVariant:"var(--outline-variant)","shadow[0.1]":"var(--shadow__100)","shadow[0.15]":"var(--shadow__150)","shadow[0.2]":"var(--shadow__200)","shadow[0.25]":"var(--shadow__250)","shadow[0.3]":"var(--shadow__300)","shadow[0.35]":"var(--shadow__350)","shadow[0.4]":"var(--shadow__400)","shadow[0.45]":"var(--shadow__450)","shadow[0.5]":"var(--shadow__500)","shadow[0.55]":"var(--shadow__550)","shadow[0.6]":"var(--shadow__600)","shadow[0.65]":"var(--shadow__650)","shadow[0.7]":"var(--shadow__700)","shadow[0.75]":"var(--shadow__750)","shadow[0.8]":"var(--shadow__800)","shadow[0.85]":"var(--shadow__850)","shadow[0.9]":"var(--shadow__900)","shadow[0.95]":"var(--shadow__950)",shadow:"var(--shadow)","scrim[0.1]":"var(--scrim__100)","scrim[0.15]":"var(--scrim__150)","scrim[0.2]":"var(--scrim__200)","scrim[0.25]":"var(--scrim__250)","scrim[0.3]":"var(--scrim__300)","scrim[0.35]":"var(--scrim__350)","scrim[0.4]":"var(--scrim__400)","scrim[0.45]":"var(--scrim__450)","scrim[0.5]":"var(--scrim__500)","scrim[0.55]":"var(--scrim__550)","scrim[0.6]":"var(--scrim__600)","scrim[0.65]":"var(--scrim__650)","scrim[0.7]":"var(--scrim__700)","scrim[0.75]":"var(--scrim__750)","scrim[0.8]":"var(--scrim__800)","scrim[0.85]":"var(--scrim__850)","scrim[0.9]":"var(--scrim__900)","scrim[0.95]":"var(--scrim__950)",scrim:"var(--scrim)","inverseSurface[0.1]":"var(--inverse-surface__100)","inverseSurface[0.15]":"var(--inverse-surface__150)","inverseSurface[0.2]":"var(--inverse-surface__200)","inverseSurface[0.25]":"var(--inverse-surface__250)","inverseSurface[0.3]":"var(--inverse-surface__300)","inverseSurface[0.35]":"var(--inverse-surface__350)","inverseSurface[0.4]":"var(--inverse-surface__400)","inverseSurface[0.45]":"var(--inverse-surface__450)","inverseSurface[0.5]":"var(--inverse-surface__500)","inverseSurface[0.55]":"var(--inverse-surface__550)","inverseSurface[0.6]":"var(--inverse-surface__600)","inverseSurface[0.65]":"var(--inverse-surface__650)","inverseSurface[0.7]":"var(--inverse-surface__700)","inverseSurface[0.75]":"var(--inverse-surface__750)","inverseSurface[0.8]":"var(--inverse-surface__800)","inverseSurface[0.85]":"var(--inverse-surface__850)","inverseSurface[0.9]":"var(--inverse-surface__900)","inverseSurface[0.95]":"var(--inverse-surface__950)",inverseSurface:"var(--inverse-surface)","inverseOnSurface[0.1]":"var(--inverse-on-surface__100)","inverseOnSurface[0.15]":"var(--inverse-on-surface__150)","inverseOnSurface[0.2]":"var(--inverse-on-surface__200)","inverseOnSurface[0.25]":"var(--inverse-on-surface__250)","inverseOnSurface[0.3]":"var(--inverse-on-surface__300)","inverseOnSurface[0.35]":"var(--inverse-on-surface__350)","inverseOnSurface[0.4]":"var(--inverse-on-surface__400)","inverseOnSurface[0.45]":"var(--inverse-on-surface__450)","inverseOnSurface[0.5]":"var(--inverse-on-surface__500)","inverseOnSurface[0.55]":"var(--inverse-on-surface__550)","inverseOnSurface[0.6]":"var(--inverse-on-surface__600)","inverseOnSurface[0.65]":"var(--inverse-on-surface__650)","inverseOnSurface[0.7]":"var(--inverse-on-surface__700)","inverseOnSurface[0.75]":"var(--inverse-on-surface__750)","inverseOnSurface[0.8]":"var(--inverse-on-surface__800)","inverseOnSurface[0.85]":"var(--inverse-on-surface__850)","inverseOnSurface[0.9]":"var(--inverse-on-surface__900)","inverseOnSurface[0.95]":"var(--inverse-on-surface__950)",inverseOnSurface:"var(--inverse-on-surface)","inversePrimary[0.1]":"var(--inverse-primary__100)","inversePrimary[0.15]":"var(--inverse-primary__150)","inversePrimary[0.2]":"var(--inverse-primary__200)","inversePrimary[0.25]":"var(--inverse-primary__250)","inversePrimary[0.3]":"var(--inverse-primary__300)","inversePrimary[0.35]":"var(--inverse-primary__350)","inversePrimary[0.4]":"var(--inverse-primary__400)","inversePrimary[0.45]":"var(--inverse-primary__450)","inversePrimary[0.5]":"var(--inverse-primary__500)","inversePrimary[0.55]":"var(--inverse-primary__550)","inversePrimary[0.6]":"var(--inverse-primary__600)","inversePrimary[0.65]":"var(--inverse-primary__650)","inversePrimary[0.7]":"var(--inverse-primary__700)","inversePrimary[0.75]":"var(--inverse-primary__750)","inversePrimary[0.8]":"var(--inverse-primary__800)","inversePrimary[0.85]":"var(--inverse-primary__850)","inversePrimary[0.9]":"var(--inverse-primary__900)","inversePrimary[0.95]":"var(--inverse-primary__950)",inversePrimary:"var(--inverse-primary)","primaryFixed[0.1]":"var(--primary-fixed__100)","primaryFixed[0.15]":"var(--primary-fixed__150)","primaryFixed[0.2]":"var(--primary-fixed__200)","primaryFixed[0.25]":"var(--primary-fixed__250)","primaryFixed[0.3]":"var(--primary-fixed__300)","primaryFixed[0.35]":"var(--primary-fixed__350)","primaryFixed[0.4]":"var(--primary-fixed__400)","primaryFixed[0.45]":"var(--primary-fixed__450)","primaryFixed[0.5]":"var(--primary-fixed__500)","primaryFixed[0.55]":"var(--primary-fixed__550)","primaryFixed[0.6]":"var(--primary-fixed__600)","primaryFixed[0.65]":"var(--primary-fixed__650)","primaryFixed[0.7]":"var(--primary-fixed__700)","primaryFixed[0.75]":"var(--primary-fixed__750)","primaryFixed[0.8]":"var(--primary-fixed__800)","primaryFixed[0.85]":"var(--primary-fixed__850)","primaryFixed[0.9]":"var(--primary-fixed__900)","primaryFixed[0.95]":"var(--primary-fixed__950)",primaryFixed:"var(--primary-fixed)","onPrimaryFixed[0.1]":"var(--on-primary-fixed__100)","onPrimaryFixed[0.15]":"var(--on-primary-fixed__150)","onPrimaryFixed[0.2]":"var(--on-primary-fixed__200)","onPrimaryFixed[0.25]":"var(--on-primary-fixed__250)","onPrimaryFixed[0.3]":"var(--on-primary-fixed__300)","onPrimaryFixed[0.35]":"var(--on-primary-fixed__350)","onPrimaryFixed[0.4]":"var(--on-primary-fixed__400)","onPrimaryFixed[0.45]":"var(--on-primary-fixed__450)","onPrimaryFixed[0.5]":"var(--on-primary-fixed__500)","onPrimaryFixed[0.55]":"var(--on-primary-fixed__550)","onPrimaryFixed[0.6]":"var(--on-primary-fixed__600)","onPrimaryFixed[0.65]":"var(--on-primary-fixed__650)","onPrimaryFixed[0.7]":"var(--on-primary-fixed__700)","onPrimaryFixed[0.75]":"var(--on-primary-fixed__750)","onPrimaryFixed[0.8]":"var(--on-primary-fixed__800)","onPrimaryFixed[0.85]":"var(--on-primary-fixed__850)","onPrimaryFixed[0.9]":"var(--on-primary-fixed__900)","onPrimaryFixed[0.95]":"var(--on-primary-fixed__950)",onPrimaryFixed:"var(--on-primary-fixed)","primaryFixedDim[0.1]":"var(--primary-fixed-dim__100)","primaryFixedDim[0.15]":"var(--primary-fixed-dim__150)","primaryFixedDim[0.2]":"var(--primary-fixed-dim__200)","primaryFixedDim[0.25]":"var(--primary-fixed-dim__250)","primaryFixedDim[0.3]":"var(--primary-fixed-dim__300)","primaryFixedDim[0.35]":"var(--primary-fixed-dim__350)","primaryFixedDim[0.4]":"var(--primary-fixed-dim__400)","primaryFixedDim[0.45]":"var(--primary-fixed-dim__450)","primaryFixedDim[0.5]":"var(--primary-fixed-dim__500)","primaryFixedDim[0.55]":"var(--primary-fixed-dim__550)","primaryFixedDim[0.6]":"var(--primary-fixed-dim__600)","primaryFixedDim[0.65]":"var(--primary-fixed-dim__650)","primaryFixedDim[0.7]":"var(--primary-fixed-dim__700)","primaryFixedDim[0.75]":"var(--primary-fixed-dim__750)","primaryFixedDim[0.8]":"var(--primary-fixed-dim__800)","primaryFixedDim[0.85]":"var(--primary-fixed-dim__850)","primaryFixedDim[0.9]":"var(--primary-fixed-dim__900)","primaryFixedDim[0.95]":"var(--primary-fixed-dim__950)",primaryFixedDim:"var(--primary-fixed-dim)","onPrimaryFixedVariant[0.1]":"var(--on-primary-fixed-variant__100)","onPrimaryFixedVariant[0.15]":"var(--on-primary-fixed-variant__150)","onPrimaryFixedVariant[0.2]":"var(--on-primary-fixed-variant__200)","onPrimaryFixedVariant[0.25]":"var(--on-primary-fixed-variant__250)","onPrimaryFixedVariant[0.3]":"var(--on-primary-fixed-variant__300)","onPrimaryFixedVariant[0.35]":"var(--on-primary-fixed-variant__350)","onPrimaryFixedVariant[0.4]":"var(--on-primary-fixed-variant__400)","onPrimaryFixedVariant[0.45]":"var(--on-primary-fixed-variant__450)","onPrimaryFixedVariant[0.5]":"var(--on-primary-fixed-variant__500)","onPrimaryFixedVariant[0.55]":"var(--on-primary-fixed-variant__550)","onPrimaryFixedVariant[0.6]":"var(--on-primary-fixed-variant__600)","onPrimaryFixedVariant[0.65]":"var(--on-primary-fixed-variant__650)","onPrimaryFixedVariant[0.7]":"var(--on-primary-fixed-variant__700)","onPrimaryFixedVariant[0.75]":"var(--on-primary-fixed-variant__750)","onPrimaryFixedVariant[0.8]":"var(--on-primary-fixed-variant__800)","onPrimaryFixedVariant[0.85]":"var(--on-primary-fixed-variant__850)","onPrimaryFixedVariant[0.9]":"var(--on-primary-fixed-variant__900)","onPrimaryFixedVariant[0.95]":"var(--on-primary-fixed-variant__950)",onPrimaryFixedVariant:"var(--on-primary-fixed-variant)","secondaryFixed[0.1]":"var(--secondary-fixed__100)","secondaryFixed[0.15]":"var(--secondary-fixed__150)","secondaryFixed[0.2]":"var(--secondary-fixed__200)","secondaryFixed[0.25]":"var(--secondary-fixed__250)","secondaryFixed[0.3]":"var(--secondary-fixed__300)","secondaryFixed[0.35]":"var(--secondary-fixed__350)","secondaryFixed[0.4]":"var(--secondary-fixed__400)","secondaryFixed[0.45]":"var(--secondary-fixed__450)","secondaryFixed[0.5]":"var(--secondary-fixed__500)","secondaryFixed[0.55]":"var(--secondary-fixed__550)","secondaryFixed[0.6]":"var(--secondary-fixed__600)","secondaryFixed[0.65]":"var(--secondary-fixed__650)","secondaryFixed[0.7]":"var(--secondary-fixed__700)","secondaryFixed[0.75]":"var(--secondary-fixed__750)","secondaryFixed[0.8]":"var(--secondary-fixed__800)","secondaryFixed[0.85]":"var(--secondary-fixed__850)","secondaryFixed[0.9]":"var(--secondary-fixed__900)","secondaryFixed[0.95]":"var(--secondary-fixed__950)",secondaryFixed:"var(--secondary-fixed)","onSecondaryFixed[0.1]":"var(--on-secondary-fixed__100)","onSecondaryFixed[0.15]":"var(--on-secondary-fixed__150)","onSecondaryFixed[0.2]":"var(--on-secondary-fixed__200)","onSecondaryFixed[0.25]":"var(--on-secondary-fixed__250)","onSecondaryFixed[0.3]":"var(--on-secondary-fixed__300)","onSecondaryFixed[0.35]":"var(--on-secondary-fixed__350)","onSecondaryFixed[0.4]":"var(--on-secondary-fixed__400)","onSecondaryFixed[0.45]":"var(--on-secondary-fixed__450)","onSecondaryFixed[0.5]":"var(--on-secondary-fixed__500)","onSecondaryFixed[0.55]":"var(--on-secondary-fixed__550)","onSecondaryFixed[0.6]":"var(--on-secondary-fixed__600)","onSecondaryFixed[0.65]":"var(--on-secondary-fixed__650)","onSecondaryFixed[0.7]":"var(--on-secondary-fixed__700)","onSecondaryFixed[0.75]":"var(--on-secondary-fixed__750)","onSecondaryFixed[0.8]":"var(--on-secondary-fixed__800)","onSecondaryFixed[0.85]":"var(--on-secondary-fixed__850)","onSecondaryFixed[0.9]":"var(--on-secondary-fixed__900)","onSecondaryFixed[0.95]":"var(--on-secondary-fixed__950)",onSecondaryFixed:"var(--on-secondary-fixed)","secondaryFixedDim[0.1]":"var(--secondary-fixed-dim__100)","secondaryFixedDim[0.15]":"var(--secondary-fixed-dim__150)","secondaryFixedDim[0.2]":"var(--secondary-fixed-dim__200)","secondaryFixedDim[0.25]":"var(--secondary-fixed-dim__250)","secondaryFixedDim[0.3]":"var(--secondary-fixed-dim__300)","secondaryFixedDim[0.35]":"var(--secondary-fixed-dim__350)","secondaryFixedDim[0.4]":"var(--secondary-fixed-dim__400)","secondaryFixedDim[0.45]":"var(--secondary-fixed-dim__450)","secondaryFixedDim[0.5]":"var(--secondary-fixed-dim__500)","secondaryFixedDim[0.55]":"var(--secondary-fixed-dim__550)","secondaryFixedDim[0.6]":"var(--secondary-fixed-dim__600)","secondaryFixedDim[0.65]":"var(--secondary-fixed-dim__650)","secondaryFixedDim[0.7]":"var(--secondary-fixed-dim__700)","secondaryFixedDim[0.75]":"var(--secondary-fixed-dim__750)","secondaryFixedDim[0.8]":"var(--secondary-fixed-dim__800)","secondaryFixedDim[0.85]":"var(--secondary-fixed-dim__850)","secondaryFixedDim[0.9]":"var(--secondary-fixed-dim__900)","secondaryFixedDim[0.95]":"var(--secondary-fixed-dim__950)",secondaryFixedDim:"var(--secondary-fixed-dim)","onSecondaryFixedVariant[0.1]":"var(--on-secondary-fixed-variant__100)","onSecondaryFixedVariant[0.15]":"var(--on-secondary-fixed-variant__150)","onSecondaryFixedVariant[0.2]":"var(--on-secondary-fixed-variant__200)","onSecondaryFixedVariant[0.25]":"var(--on-secondary-fixed-variant__250)","onSecondaryFixedVariant[0.3]":"var(--on-secondary-fixed-variant__300)","onSecondaryFixedVariant[0.35]":"var(--on-secondary-fixed-variant__350)","onSecondaryFixedVariant[0.4]":"var(--on-secondary-fixed-variant__400)","onSecondaryFixedVariant[0.45]":"var(--on-secondary-fixed-variant__450)","onSecondaryFixedVariant[0.5]":"var(--on-secondary-fixed-variant__500)","onSecondaryFixedVariant[0.55]":"var(--on-secondary-fixed-variant__550)","onSecondaryFixedVariant[0.6]":"var(--on-secondary-fixed-variant__600)","onSecondaryFixedVariant[0.65]":"var(--on-secondary-fixed-variant__650)","onSecondaryFixedVariant[0.7]":"var(--on-secondary-fixed-variant__700)","onSecondaryFixedVariant[0.75]":"var(--on-secondary-fixed-variant__750)","onSecondaryFixedVariant[0.8]":"var(--on-secondary-fixed-variant__800)","onSecondaryFixedVariant[0.85]":"var(--on-secondary-fixed-variant__850)","onSecondaryFixedVariant[0.9]":"var(--on-secondary-fixed-variant__900)","onSecondaryFixedVariant[0.95]":"var(--on-secondary-fixed-variant__950)",onSecondaryFixedVariant:"var(--on-secondary-fixed-variant)","tertiaryFixed[0.1]":"var(--tertiary-fixed__100)","tertiaryFixed[0.15]":"var(--tertiary-fixed__150)","tertiaryFixed[0.2]":"var(--tertiary-fixed__200)","tertiaryFixed[0.25]":"var(--tertiary-fixed__250)","tertiaryFixed[0.3]":"var(--tertiary-fixed__300)","tertiaryFixed[0.35]":"var(--tertiary-fixed__350)","tertiaryFixed[0.4]":"var(--tertiary-fixed__400)","tertiaryFixed[0.45]":"var(--tertiary-fixed__450)","tertiaryFixed[0.5]":"var(--tertiary-fixed__500)","tertiaryFixed[0.55]":"var(--tertiary-fixed__550)","tertiaryFixed[0.6]":"var(--tertiary-fixed__600)","tertiaryFixed[0.65]":"var(--tertiary-fixed__650)","tertiaryFixed[0.7]":"var(--tertiary-fixed__700)","tertiaryFixed[0.75]":"var(--tertiary-fixed__750)","tertiaryFixed[0.8]":"var(--tertiary-fixed__800)","tertiaryFixed[0.85]":"var(--tertiary-fixed__850)","tertiaryFixed[0.9]":"var(--tertiary-fixed__900)","tertiaryFixed[0.95]":"var(--tertiary-fixed__950)",tertiaryFixed:"var(--tertiary-fixed)","onTertiaryFixed[0.1]":"var(--on-tertiary-fixed__100)","onTertiaryFixed[0.15]":"var(--on-tertiary-fixed__150)","onTertiaryFixed[0.2]":"var(--on-tertiary-fixed__200)","onTertiaryFixed[0.25]":"var(--on-tertiary-fixed__250)","onTertiaryFixed[0.3]":"var(--on-tertiary-fixed__300)","onTertiaryFixed[0.35]":"var(--on-tertiary-fixed__350)","onTertiaryFixed[0.4]":"var(--on-tertiary-fixed__400)","onTertiaryFixed[0.45]":"var(--on-tertiary-fixed__450)","onTertiaryFixed[0.5]":"var(--on-tertiary-fixed__500)","onTertiaryFixed[0.55]":"var(--on-tertiary-fixed__550)","onTertiaryFixed[0.6]":"var(--on-tertiary-fixed__600)","onTertiaryFixed[0.65]":"var(--on-tertiary-fixed__650)","onTertiaryFixed[0.7]":"var(--on-tertiary-fixed__700)","onTertiaryFixed[0.75]":"var(--on-tertiary-fixed__750)","onTertiaryFixed[0.8]":"var(--on-tertiary-fixed__800)","onTertiaryFixed[0.85]":"var(--on-tertiary-fixed__850)","onTertiaryFixed[0.9]":"var(--on-tertiary-fixed__900)","onTertiaryFixed[0.95]":"var(--on-tertiary-fixed__950)",onTertiaryFixed:"var(--on-tertiary-fixed)","tertiaryFixedDim[0.1]":"var(--tertiary-fixed-dim__100)","tertiaryFixedDim[0.15]":"var(--tertiary-fixed-dim__150)","tertiaryFixedDim[0.2]":"var(--tertiary-fixed-dim__200)","tertiaryFixedDim[0.25]":"var(--tertiary-fixed-dim__250)","tertiaryFixedDim[0.3]":"var(--tertiary-fixed-dim__300)","tertiaryFixedDim[0.35]":"var(--tertiary-fixed-dim__350)","tertiaryFixedDim[0.4]":"var(--tertiary-fixed-dim__400)","tertiaryFixedDim[0.45]":"var(--tertiary-fixed-dim__450)","tertiaryFixedDim[0.5]":"var(--tertiary-fixed-dim__500)","tertiaryFixedDim[0.55]":"var(--tertiary-fixed-dim__550)","tertiaryFixedDim[0.6]":"var(--tertiary-fixed-dim__600)","tertiaryFixedDim[0.65]":"var(--tertiary-fixed-dim__650)","tertiaryFixedDim[0.7]":"var(--tertiary-fixed-dim__700)","tertiaryFixedDim[0.75]":"var(--tertiary-fixed-dim__750)","tertiaryFixedDim[0.8]":"var(--tertiary-fixed-dim__800)","tertiaryFixedDim[0.85]":"var(--tertiary-fixed-dim__850)","tertiaryFixedDim[0.9]":"var(--tertiary-fixed-dim__900)","tertiaryFixedDim[0.95]":"var(--tertiary-fixed-dim__950)",tertiaryFixedDim:"var(--tertiary-fixed-dim)","onTertiaryFixedVariant[0.1]":"var(--on-tertiary-fixed-variant__100)","onTertiaryFixedVariant[0.15]":"var(--on-tertiary-fixed-variant__150)","onTertiaryFixedVariant[0.2]":"var(--on-tertiary-fixed-variant__200)","onTertiaryFixedVariant[0.25]":"var(--on-tertiary-fixed-variant__250)","onTertiaryFixedVariant[0.3]":"var(--on-tertiary-fixed-variant__300)","onTertiaryFixedVariant[0.35]":"var(--on-tertiary-fixed-variant__350)","onTertiaryFixedVariant[0.4]":"var(--on-tertiary-fixed-variant__400)","onTertiaryFixedVariant[0.45]":"var(--on-tertiary-fixed-variant__450)","onTertiaryFixedVariant[0.5]":"var(--on-tertiary-fixed-variant__500)","onTertiaryFixedVariant[0.55]":"var(--on-tertiary-fixed-variant__550)","onTertiaryFixedVariant[0.6]":"var(--on-tertiary-fixed-variant__600)","onTertiaryFixedVariant[0.65]":"var(--on-tertiary-fixed-variant__650)","onTertiaryFixedVariant[0.7]":"var(--on-tertiary-fixed-variant__700)","onTertiaryFixedVariant[0.75]":"var(--on-tertiary-fixed-variant__750)","onTertiaryFixedVariant[0.8]":"var(--on-tertiary-fixed-variant__800)","onTertiaryFixedVariant[0.85]":"var(--on-tertiary-fixed-variant__850)","onTertiaryFixedVariant[0.9]":"var(--on-tertiary-fixed-variant__900)","onTertiaryFixedVariant[0.95]":"var(--on-tertiary-fixed-variant__950)",onTertiaryFixedVariant:"var(--on-tertiary-fixed-variant)","surfaceDim[0.1]":"var(--surface-dim__100)","surfaceDim[0.15]":"var(--surface-dim__150)","surfaceDim[0.2]":"var(--surface-dim__200)","surfaceDim[0.25]":"var(--surface-dim__250)","surfaceDim[0.3]":"var(--surface-dim__300)","surfaceDim[0.35]":"var(--surface-dim__350)","surfaceDim[0.4]":"var(--surface-dim__400)","surfaceDim[0.45]":"var(--surface-dim__450)","surfaceDim[0.5]":"var(--surface-dim__500)","surfaceDim[0.55]":"var(--surface-dim__550)","surfaceDim[0.6]":"var(--surface-dim__600)","surfaceDim[0.65]":"var(--surface-dim__650)","surfaceDim[0.7]":"var(--surface-dim__700)","surfaceDim[0.75]":"var(--surface-dim__750)","surfaceDim[0.8]":"var(--surface-dim__800)","surfaceDim[0.85]":"var(--surface-dim__850)","surfaceDim[0.9]":"var(--surface-dim__900)","surfaceDim[0.95]":"var(--surface-dim__950)",surfaceDim:"var(--surface-dim)","surfaceBright[0.1]":"var(--surface-bright__100)","surfaceBright[0.15]":"var(--surface-bright__150)","surfaceBright[0.2]":"var(--surface-bright__200)","surfaceBright[0.25]":"var(--surface-bright__250)","surfaceBright[0.3]":"var(--surface-bright__300)","surfaceBright[0.35]":"var(--surface-bright__350)","surfaceBright[0.4]":"var(--surface-bright__400)","surfaceBright[0.45]":"var(--surface-bright__450)","surfaceBright[0.5]":"var(--surface-bright__500)","surfaceBright[0.55]":"var(--surface-bright__550)","surfaceBright[0.6]":"var(--surface-bright__600)","surfaceBright[0.65]":"var(--surface-bright__650)","surfaceBright[0.7]":"var(--surface-bright__700)","surfaceBright[0.75]":"var(--surface-bright__750)","surfaceBright[0.8]":"var(--surface-bright__800)","surfaceBright[0.85]":"var(--surface-bright__850)","surfaceBright[0.9]":"var(--surface-bright__900)","surfaceBright[0.95]":"var(--surface-bright__950)",surfaceBright:"var(--surface-bright)","surfaceContainerLowest[0.1]":"var(--surface-container-lowest__100)","surfaceContainerLowest[0.15]":"var(--surface-container-lowest__150)","surfaceContainerLowest[0.2]":"var(--surface-container-lowest__200)","surfaceContainerLowest[0.25]":"var(--surface-container-lowest__250)","surfaceContainerLowest[0.3]":"var(--surface-container-lowest__300)","surfaceContainerLowest[0.35]":"var(--surface-container-lowest__350)","surfaceContainerLowest[0.4]":"var(--surface-container-lowest__400)","surfaceContainerLowest[0.45]":"var(--surface-container-lowest__450)","surfaceContainerLowest[0.5]":"var(--surface-container-lowest__500)","surfaceContainerLowest[0.55]":"var(--surface-container-lowest__550)","surfaceContainerLowest[0.6]":"var(--surface-container-lowest__600)","surfaceContainerLowest[0.65]":"var(--surface-container-lowest__650)","surfaceContainerLowest[0.7]":"var(--surface-container-lowest__700)","surfaceContainerLowest[0.75]":"var(--surface-container-lowest__750)","surfaceContainerLowest[0.8]":"var(--surface-container-lowest__800)","surfaceContainerLowest[0.85]":"var(--surface-container-lowest__850)","surfaceContainerLowest[0.9]":"var(--surface-container-lowest__900)","surfaceContainerLowest[0.95]":"var(--surface-container-lowest__950)",surfaceContainerLowest:"var(--surface-container-lowest)","surfaceContainerLow[0.1]":"var(--surface-container-low__100)","surfaceContainerLow[0.15]":"var(--surface-container-low__150)","surfaceContainerLow[0.2]":"var(--surface-container-low__200)","surfaceContainerLow[0.25]":"var(--surface-container-low__250)","surfaceContainerLow[0.3]":"var(--surface-container-low__300)","surfaceContainerLow[0.35]":"var(--surface-container-low__350)","surfaceContainerLow[0.4]":"var(--surface-container-low__400)","surfaceContainerLow[0.45]":"var(--surface-container-low__450)","surfaceContainerLow[0.5]":"var(--surface-container-low__500)","surfaceContainerLow[0.55]":"var(--surface-container-low__550)","surfaceContainerLow[0.6]":"var(--surface-container-low__600)","surfaceContainerLow[0.65]":"var(--surface-container-low__650)","surfaceContainerLow[0.7]":"var(--surface-container-low__700)","surfaceContainerLow[0.75]":"var(--surface-container-low__750)","surfaceContainerLow[0.8]":"var(--surface-container-low__800)","surfaceContainerLow[0.85]":"var(--surface-container-low__850)","surfaceContainerLow[0.9]":"var(--surface-container-low__900)","surfaceContainerLow[0.95]":"var(--surface-container-low__950)",surfaceContainerLow:"var(--surface-container-low)","surfaceContainer[0.1]":"var(--surface-container__100)","surfaceContainer[0.15]":"var(--surface-container__150)","surfaceContainer[0.2]":"var(--surface-container__200)","surfaceContainer[0.25]":"var(--surface-container__250)","surfaceContainer[0.3]":"var(--surface-container__300)","surfaceContainer[0.35]":"var(--surface-container__350)","surfaceContainer[0.4]":"var(--surface-container__400)","surfaceContainer[0.45]":"var(--surface-container__450)","surfaceContainer[0.5]":"var(--surface-container__500)","surfaceContainer[0.55]":"var(--surface-container__550)","surfaceContainer[0.6]":"var(--surface-container__600)","surfaceContainer[0.65]":"var(--surface-container__650)","surfaceContainer[0.7]":"var(--surface-container__700)","surfaceContainer[0.75]":"var(--surface-container__750)","surfaceContainer[0.8]":"var(--surface-container__800)","surfaceContainer[0.85]":"var(--surface-container__850)","surfaceContainer[0.9]":"var(--surface-container__900)","surfaceContainer[0.95]":"var(--surface-container__950)",surfaceContainer:"var(--surface-container)","surfaceContainerHigh[0.1]":"var(--surface-container-high__100)","surfaceContainerHigh[0.15]":"var(--surface-container-high__150)","surfaceContainerHigh[0.2]":"var(--surface-container-high__200)","surfaceContainerHigh[0.25]":"var(--surface-container-high__250)","surfaceContainerHigh[0.3]":"var(--surface-container-high__300)","surfaceContainerHigh[0.35]":"var(--surface-container-high__350)","surfaceContainerHigh[0.4]":"var(--surface-container-high__400)","surfaceContainerHigh[0.45]":"var(--surface-container-high__450)","surfaceContainerHigh[0.5]":"var(--surface-container-high__500)","surfaceContainerHigh[0.55]":"var(--surface-container-high__550)","surfaceContainerHigh[0.6]":"var(--surface-container-high__600)","surfaceContainerHigh[0.65]":"var(--surface-container-high__650)","surfaceContainerHigh[0.7]":"var(--surface-container-high__700)","surfaceContainerHigh[0.75]":"var(--surface-container-high__750)","surfaceContainerHigh[0.8]":"var(--surface-container-high__800)","surfaceContainerHigh[0.85]":"var(--surface-container-high__850)","surfaceContainerHigh[0.9]":"var(--surface-container-high__900)","surfaceContainerHigh[0.95]":"var(--surface-container-high__950)",surfaceContainerHigh:"var(--surface-container-high)","surfaceContainerHighest[0.1]":"var(--surface-container-highest__100)","surfaceContainerHighest[0.15]":"var(--surface-container-highest__150)","surfaceContainerHighest[0.2]":"var(--surface-container-highest__200)","surfaceContainerHighest[0.25]":"var(--surface-container-highest__250)","surfaceContainerHighest[0.3]":"var(--surface-container-highest__300)","surfaceContainerHighest[0.35]":"var(--surface-container-highest__350)","surfaceContainerHighest[0.4]":"var(--surface-container-highest__400)","surfaceContainerHighest[0.45]":"var(--surface-container-highest__450)","surfaceContainerHighest[0.5]":"var(--surface-container-highest__500)","surfaceContainerHighest[0.55]":"var(--surface-container-highest__550)","surfaceContainerHighest[0.6]":"var(--surface-container-highest__600)","surfaceContainerHighest[0.65]":"var(--surface-container-highest__650)","surfaceContainerHighest[0.7]":"var(--surface-container-highest__700)","surfaceContainerHighest[0.75]":"var(--surface-container-highest__750)","surfaceContainerHighest[0.8]":"var(--surface-container-highest__800)","surfaceContainerHighest[0.85]":"var(--surface-container-highest__850)","surfaceContainerHighest[0.9]":"var(--surface-container-highest__900)","surfaceContainerHighest[0.95]":"var(--surface-container-highest__950)",surfaceContainerHighest:"var(--surface-container-highest)","themelessSurface[0.1]":"var(--themeless-surface__100)","themelessSurface[0.15]":"var(--themeless-surface__150)","themelessSurface[0.2]":"var(--themeless-surface__200)","themelessSurface[0.25]":"var(--themeless-surface__250)","themelessSurface[0.3]":"var(--themeless-surface__300)","themelessSurface[0.35]":"var(--themeless-surface__350)","themelessSurface[0.4]":"var(--themeless-surface__400)","themelessSurface[0.45]":"var(--themeless-surface__450)","themelessSurface[0.5]":"var(--themeless-surface__500)","themelessSurface[0.55]":"var(--themeless-surface__550)","themelessSurface[0.6]":"var(--themeless-surface__600)","themelessSurface[0.65]":"var(--themeless-surface__650)","themelessSurface[0.7]":"var(--themeless-surface__700)","themelessSurface[0.75]":"var(--themeless-surface__750)","themelessSurface[0.8]":"var(--themeless-surface__800)","themelessSurface[0.85]":"var(--themeless-surface__850)","themelessSurface[0.9]":"var(--themeless-surface__900)","themelessSurface[0.95]":"var(--themeless-surface__950)",themelessSurface:"var(--themeless-surface)","themelessOnSurface[0.1]":"var(--themeless-on-surface__100)","themelessOnSurface[0.15]":"var(--themeless-on-surface__150)","themelessOnSurface[0.2]":"var(--themeless-on-surface__200)","themelessOnSurface[0.25]":"var(--themeless-on-surface__250)","themelessOnSurface[0.3]":"var(--themeless-on-surface__300)","themelessOnSurface[0.35]":"var(--themeless-on-surface__350)","themelessOnSurface[0.4]":"var(--themeless-on-surface__400)","themelessOnSurface[0.45]":"var(--themeless-on-surface__450)","themelessOnSurface[0.5]":"var(--themeless-on-surface__500)","themelessOnSurface[0.55]":"var(--themeless-on-surface__550)","themelessOnSurface[0.6]":"var(--themeless-on-surface__600)","themelessOnSurface[0.65]":"var(--themeless-on-surface__650)","themelessOnSurface[0.7]":"var(--themeless-on-surface__700)","themelessOnSurface[0.75]":"var(--themeless-on-surface__750)","themelessOnSurface[0.8]":"var(--themeless-on-surface__800)","themelessOnSurface[0.85]":"var(--themeless-on-surface__850)","themelessOnSurface[0.9]":"var(--themeless-on-surface__900)","themelessOnSurface[0.95]":"var(--themeless-on-surface__950)",themelessOnSurface:"var(--themeless-on-surface)","seed[0.1]":"var(--seed__100)","seed[0.15]":"var(--seed__150)","seed[0.2]":"var(--seed__200)","seed[0.25]":"var(--seed__250)","seed[0.3]":"var(--seed__300)","seed[0.35]":"var(--seed__350)","seed[0.4]":"var(--seed__400)","seed[0.45]":"var(--seed__450)","seed[0.5]":"var(--seed__500)","seed[0.55]":"var(--seed__550)","seed[0.6]":"var(--seed__600)","seed[0.65]":"var(--seed__650)","seed[0.7]":"var(--seed__700)","seed[0.75]":"var(--seed__750)","seed[0.8]":"var(--seed__800)","seed[0.85]":"var(--seed__850)","seed[0.9]":"var(--seed__900)","seed[0.95]":"var(--seed__950)",seed:"var(--seed)"}),pe=Zb;c();c();function MA(e,r){useEffect(()=>{let t=new AbortController;return e(),()=>{t.abort();}},r);}c();function Hu(e,r){let t=useRef(true);useEffect(()=>{if(t.current)t.current=false;else return e()},r);}c();function tU(e){let[r,t]=useState({}),n=k(e.style);n={...n,...e?.inject?.()||{}};let o=document.getElementById("root")??document.body;return useEffect(()=>{let i=e.tag||"div",a=document.createElement(i),s=(Array.isArray(e.style.children)?e.style.children:[e.style.children]).map(p=>{let h=document.createElement(i);return h.innerHTML=Xb.renderToStaticMarkup(p),h});Object.assign(a.style,{...n,visibility:"hidden"}),s.forEach(p=>a.appendChild(p)),o.appendChild(a);let u=getComputedStyle(a),f=Object.keys(n).filter(p=>p in u&&typeof u[p]=="string").map(p=>{let y=u[p];return [p,p==="opacity"?y.toString():y===0?"0px":y]});t(Object.fromEntries(f)),o.removeChild(a);},[e.style]),{style:r}}c();function ed(e){let[r,t]=useState(e);return {value:r,isOpen:!!r,show:(...n)=>{n[0]===void 0&&typeof r!="boolean"||t(typeof r=="boolean"?true:n[0]);},hide:()=>{t(typeof r=="boolean"?false:void 0);}}}c();c();function G(){let[,e]=useState(false);return {triggerRerender:()=>e(r=>!r)}}function A(e){let r=e?.persist?.storage==="local-storage"?localStorage:sessionStorage,t=new Error("Failed to store value of type 'function', in useStore."),n=castReturn(e?.defaultValue),{triggerRerender:o}=G(),i=useRef({fresh:(()=>{if(typeof n=="function")throw console.error(t),t;if(e?.persist?.key){let p=JSON.parse(r.getItem(e.persist.key));return p??n}return n})(),stale:null}),a=useRef(false);return useEffect(()=>()=>{e?.persist?.deleteOnUnmount&&e.persist.key&&r.removeItem(e.persist.key);},[]),{debug:()=>{let p=i.current.stale,h=i.current.fresh,y=()=>{if(Array.isArray(p)){let b=p;return {from:p,to:h,difference:h.filter(($,w)=>w<b.length?b[w]!==$:false)}}switch(typeof p){case "string":return {from:p,to:h,difference:h.replace(p,"")};case "object":return {from:p,to:h,difference:Object.fromEntries(Object.keys(p).map(b=>{let S=b;if(h[S]!==p[S])return [S,h[S]]}).filter(b=>!!b))};default:throw new Error("Not yet implemented bro!")}},z=250;return console.log(buildArray(z,b=>b===0||b===z?"/":"*").join(""),y()),y()},upsert:(p,...h)=>{let{skipOnChange:y=false,skipRender:z=false,skipValidation:b=false,skipTransform:S=false}=h[0]||{},$=typeof p=="function"?p(i.current.fresh):p,w=i.current.fresh;if(e?.readOnly===true||e?.readOnly==="lazy"&&a.current)throw console.error("Updating a readOnly store is prohibited"),new Error("Updating a readOnly store is prohibited",{cause:`Attempt to change ${e?.defaultValue} -> ${$}`});if(e?.readOnly==="lazy"&&!a.current&&(a.current=true),!S&&e?.transform&&($=e.transform($)),typeof $=="function")throw console.error(t),t;if(JSON.stringify($)!==JSON.stringify(w)){if(!b&&e?.validate?.($)===false){e?.onValidationFail?.($);return}i.current={fresh:$,stale:w},e?.persist?.key&&r.setItem(e.persist.key,JSON.stringify($)),y||e?.onChange?.($,w),!z&&e.reactive&&o();}},read:()=>structuredClone(i.current.fresh),delete:()=>{let p=structuredClone(i.current.fresh),h=structuredClone(i.current.stale);i.current.fresh=n,i.current.stale=null,e?.onDelete?.(p,h),e?.persist?.key&&r.removeItem(e.persist.key);}}}c();function fu(e=0){return {defaultPage:e,goTo:()=>null,echo:()=>null,getActivePage:()=>null,isPageActive:()=>null,onPageChange:()=>null}}c();function Ki(){return useContext(tn)}c();function CU(e,r){let[t,n]=useState(()=>{try{let a=window.sessionStorage.getItem(e);return a?JSON.parse(a):r}catch(a){return console.log(a),r}});return [t,a=>{try{let l=a instanceof Function?a(t):a;n(l),window.sessionStorage.setItem(e,JSON.stringify(l));}catch(l){console.log(l);}},()=>{try{n(r),window.sessionStorage.removeItem(e);}catch(a){console.log(a);}}]}c();function DU(e){let r=useContext(_t),{triggerRerender:t}=G(),n=s=>{throw new Error("Invalid key used in useEvent",{cause:`${s} with type "${typeof s}" provided, but a key with type "string" was expected.`})};return {emit:(s,...u)=>{if(typeof s!="string")return n(s);r.emit(s,u?.[0]),e?.rerenderOnEmit&&t();},on:(s,u,f)=>{if(typeof s!="string")return n(s);let p=r.on(s,u);return f?.rerender&&t(),p},listeners:s=>typeof s!="string"?n(s):r.listeners(s),dettach:s=>typeof s!="string"?n(s):r.dettach(s)}}c();function RU(e){let{triggerRerender:r}=G(),t=useRef(castReturn(e)),n=(o,i={skipRender:false})=>{t.current=typeof o=="function"?o(t.current):o,i.skipRender||r();};return [t.current,n]}c();function gn(e){useEffect(()=>{e.skipAnimation||Object.assign(e.ref.current.style,{opacity:e.in?1:0,animationName:e.animationName(e.in),animationIterationCount:1,animationTimingFunction:e.in?"ease-in":"ease-out",animationDuration:e.duration||"300ms",animationDelay:typeof e.delay=="object"?e.in?e.delay?.exit:e.delay?.enter:e.delay});},[e.in,e.skipAnimation]);}c();c();c();function Xu(e){let r=useRef(null),t=Be__default.cloneElement(e.children,{ref:r});return gn({ref:r,in:e.in,delay:e.delay,duration:e.duration,skipAnimation:e.skipAnimation,animationName:n=>n?"fadeInOpacity":"fadeOutOpacity"}),t}c();function g2(e){let r=useRef(null),t=Be__default.cloneElement(e.children,{ref:r});return gn({ref:r,in:e.in,delay:e.delay,duration:e.duration,skipAnimation:e.skipAnimation,animationName:n=>n?"fadeInOpacity, scaleIn":"fadeOutOpacity, scaleOut"}),t}export{Ro as AttachmentsButton,Oo as AttachmentsDialog,He as Avatar,gP as AvatarGroup,Xs as Badge,T as BasicButton,g as BasicDiv,Ae as BasicImg,kn as BasicOl,Dn as BasicOption,Nr as BasicSelect,C as BasicSpan,ef as BasicTable,sn as Calendar,Hy as CalendarDialog,ot as CancelButton,ue as Card,Hi as Checkbox,Ie as ColorResources,VB as ConfirmationDialog,$r as CopyButton,pe as CssColors,ge as CssShapes,H as CssSpacing,tP as Debounce,dt as DeleteButton,F as Dialog,Qs as Disclaimer,mN as DownloadButton,UP as Drawer,oy as EditButton,OI as Editable,v_ as EmailComposer,Kt as EmptyState,Qo as ErrorTooltip,ui as EventContainer,dy as ExpandableButton,Xu as Fade,qB as FancyFormDialog,SI as FileDropzone,_O as FileViewer,R as FontSize,iu as Indicator,au as ItemInfo,Ko as JsonViewer,Db as JwtVerifier,fB as MediaCard,Kv as Menu,Ry as MoneyDisplayCard,tN as NegativeButton,yo as NextButton,nd as NoButton,To as OpenButton,_y as OptionsButton,DP as PageIndicator,tT as PageSlider,BT as Paper,Eu as PasteButton,Cy as PaymentOptionsButton,Fo as PaymentOptionsDialog,N_ as PictureUploader,gr as Popover,rN as PositiveButton,_o as PreviousButton,SB as ProfileCard,sP as ProgressBar,Ay as ReceiptCard,xo as SaveButton,g2 as Scale,Eo as SearchTextField,xT as SegmentedControls,jo as SendButton,vE as Separator,Z_ as SignInWidget,uO as SimpleFormDialog,xP as Spinner,Su as Status,VT as Stepper,bo as SubmitButton,XC as Switch,bu as Tag,rb as TaskLogger,dn as TaskResultDialog,qo as Terminal,xe as TextField,sE as Timeline,on as Tooltip,mt as UploadButton,pF as UploadReceiptButton,fb as UserProfile,No as VerifyButton,ei as VerifyTextField,Xd as WavyUi,td as YesButton,Jo as YesNoButtonGroup,x_ as YesOrNoForm,k as applyBasicStyle,nR as bankTransferPaymentOption,rx as borderRadius,Y0 as buildCSS,sx as computedCssVariable,Kd as convertHexUnitTo256,q0 as cssTransition,Ku as definePaymentOption,tx as disabledBorderRadius,nx as dragElement,ve as ellipsis,ex as flexCenter,Qt as getFileIcon,mh as getPaperDim,gi as getScrollParent,Yd as hexToRgba,oR as inAppPaymentOption,yn as isOverflown,vi as isSpanMultiLine,Gd as isValidHex,pi as nativeEllipsis,ox as noSpaceStyle,fh as paperStyle,lx as remAsPx,qd as remToPx,x as resolveBasicColor,Br as restrictLineCount,ix as rgbToRgba,ax as screenHasMaxWidth,cx as screenHasMinWidth,Q0 as solidBorder,hi as stripHtml,fi as tiledBackground,gn as useAnimation,MA as useAsyncEffect,tU as useComputedStyle,DU as useEvent,ed as useModalControls,fu as usePageSliderController,Ki as usePopoverContext,Hu as usePostRenderEffect,G as useRerender,CU as useSessionStorage,RU as useSmartState,A as useStore};
45
+ translateX(calc(${h} * -5rem))`,filter:`blur(calc(${y} * .5rem))`},children:typeof f=="function"?jsx(f,{isActive:p===o}):f},p)}),!e.hideControls&&jsx(mu,{inset:"right",disabled:!hasIndex(e.children,o+1),onClick:s})]})})}function mu(e){let r=useContext(fu),t=e.inset==="left"?BsArrowLeft:BsArrowRight,n=e.disabled||r.transitioning;return jsx(g,{fade:n?.5:1,cursor:n?"not-allowed":"pointer",pos:"absolute",centerSelf:"y",centerContent:true,borderColor:r.navBorderColor,padding:r.navPadding??"md",backgroundColor:r.navBackgroundColor||"onSurface",color:r.navIconColor||"surface",corners:r.navCorners??"circle",size:r.navSize,css:{[e.inset]:"1rem",zIndex:2,transition:"all 300ms ease-in-out",boxShadow:"rgba(0, 0, 0, 0.16) 0px 1px 4px",":hover > *":n?void 0:{animation:"squish 300ms ease-in-out"},":active":n?void 0:{scale:.9,opacity:.75}},onClick:n?void 0:e.onClick,children:jsx(t,{size:r.navIconSize})})}c();c();var tn=createContext(null);function gr(e){let r=A({defaultValue:e.open??false}),{triggerRerender:t}=G(),n=`--${v4()}`,o=useRef(null),i=useRef(null),a=Ie__default.cloneElement(e.wrap?jsx("div",{...e.slotProps?.divWrapper,children:e.children}):e.children,{ref:i,popoverTarget:n});if(e.asChild)return e.children;useEffect(()=>{let u=e.placement||"bottom-left",f=["top","right","bottom","left"].includes(u),p=f?{positionArea:u}:sh(e.anchorPoint||"top-left",lh(u));if(!e.visibleOnScroll){let y=gi(o.current);y&&y.addEventListener("scroll",z=>{o.current?.hidePopover(),Object.assign(o.current?.style,{transform:`translateX(-${z.target?.scrollLeft}px)`});});}Object.assign(i.current?.style,{anchorName:n});let h={top:"bottom",right:"left",bottom:"top",left:"right"}[u.split("-")[0]];Object.assign(o.current?.style,{position:"absolute",positionAnchor:n,insetArea:e.insetArea,overflow:"hidden",[`margin-${h}`]:e.offset??".25rem",...p,...e.positionFallbacks?{positionTryFallbacks:e.positionFallbacks}:{},...k({minHeight:e.minHeight,maxHeight:e.maxHeight,height:e.height,minWidth:l(e.minWidth),maxWidth:l(e.maxWidth),width:l(e.width,"max-content"),backgroundColor:e.backgroundColor||"surfaceContainer",color:e.color||"onSurface",borderColor:e.borderColor||"onSurface[0.1]",gap:e.gap,padding:e.padding??"md",corners:e.corners??"md",fontSize:e.fontSize,fontWeight:e.fontWeight,spill:e.spill||"auto",backdropBlur:e.backdropBlur,style:{boxShadow:e.boxShadow||"rgba(0, 0, 0, 0.35) 0px 5px 15px",scrollbarWidth:"thin"}})});},[]),useEffect(()=>{e.open&&o.current?.showPopover();let u=e.displayAction||"click";if(o.current?.addEventListener("beforetoggle",f=>{let p=f.newState==="open";p?e.onOpen?.():e.onClose?.(),e.onOpenChange?.(p),r.upsert(p),!p&&e.rerenderOnClose&&t();}),u==="click")i.current?.addEventListener("click",()=>{s(()=>o.current?.togglePopover());});else if(u==="hover"){let f,h=()=>{f&&(f=null),s(()=>o.current?.hidePopover(),"close");};i.current?.addEventListener("mouseover",()=>{s(()=>o.current?.showPopover(),"open");}),i.current?.addEventListener("mouseleave",()=>{e.allowInteractions?f=setTimeout(h,20):h();}),e.allowInteractions&&(o.current?.addEventListener("mouseenter",()=>{f&&clearTimeout(f);}),o.current?.addEventListener("mouseleave",h));}},[]);let l=(u,f)=>u==="match-anchor"?getComputedStyle(i.current)?.width:u??f,s=(u,f)=>{let p=200;typeof e.delay=="number"?p=e.delay:e.delay&&f in e.delay&&(p=e.delay[f]),setTimeout(u,p);};return jsxs(tn.Provider,{value:{open:()=>{o.current?.showPopover();},close:()=>{o.current?.hidePopover();},isOpen:()=>r.read()},children:[a,jsx("div",{popover:e.displayAction==="script"?"manual":"auto",id:n,ref:o,className:"popover-transition",children:e.content})]})}var lh=e=>{let{0:r,1:t}=e?.split("-");return t=t==="left"?"start":t==="right"?"end":t??r,{vertical:`anchor(${r})`,horizontal:`anchor(${t})`}},sh=(e,r)=>{let{0:t,1:n}=e?.split("-");return {[t]:r.vertical,[n]:r.horizontal}};c();function ST(e){let r=e.controls[0],t=n=>{e.onChange?.(n.value);};return jsxs(SegmentGroup.Root,{size:e.size,width:e.width,defaultValue:e.defaultValue||(typeof r=="string"?r:r?.value),value:e.value,onValueChange:t,style:{backgroundColor:e.backgroundColor?x(e.backgroundColor):void 0,boxShadow:e.borderColor?`${x(e.borderColor)} 0px 0px 0px 1px`:void 0,gap:e.gap in U?U[e.gap]:e.gap,...e.style},children:[jsx(SegmentGroup.Indicator,{backgroundColor:e.indicatorColor?x(e.indicatorColor):void 0,style:e.indicatorStyle}),e.controls.map(n=>{let o=typeof n=="string"?n:n.value;return jsxs(SegmentGroup.Item,{value:o,cursor:"pointer",padding:e.padding in U?U[e.padding]:e.padding||".5rem",style:{height:"fit-content",border:0,...e.itemStyle},children:[jsx(mh,{selectedColor:e.selectedColor,color:e.color,fontSize:e.fontSize}),jsx(SegmentGroup.ItemHiddenInput,{style:{border:0}})]},o)})]})}function mh(e){let r=useSegmentGroupItemContext();return jsx(SegmentGroup.ItemText,{style:{fontSize:e.fontSize in T?T[e.fontSize]:e.fontSize,border:0,color:x(r.checked&&e.selectedColor?e.selectedColor:e.color)},children:r.value})}c();function xu(e){return jsx(Tag.Root,{opacity:e.opacity,padding:"1",color:x(e.color),height:"fit-content",flexShrink:0,display:"inline-flex",children:jsx(Tag.Label,{opacity:e.labelOpacity,children:e.label})})}c();function OT(e){return jsx(g,{id:e.id,style:ph({size:e.size,responsive:e.responsive,style:e.style}),children:e.children})}var fh=e=>({a4:{height:"297mm",width:"210mm"},a6:{height:"148mm",width:"105mm"}})[e.toLowerCase()],ph=e=>{let{height:r,width:t}=fh(e.size),n={a4:95,a6:80}[e.size.toLowerCase()],o=e.responsive??true;return {...e?.style||{},maxHeight:r,height:o?`${n}%`:r,width:o?void 0:t,aspectRatio:"1/sqrt(2)",backgroundColor:x("paper"),color:x("onPaper"),overflow:"hidden"}};c();function Cu(e){let r={pending:"gray",success:"carlsbergGreen",error:"error"},t=e.indicatorSize||".3rem";return jsxs(g,{row:true,disableSelection:true,align:"center",gap:"md",corners:"md",padding:"sm",backgroundColor:`${r[e.status]}[0.5]`,style:{zIndex:3},children:[jsx(g,{corners:t,size:t,backgroundColor:r[e.status]}),!e.indicatorOnly&&jsx(C,{style:{fontWeight:500},fontSize:".85rem",color:`${r[e.status]}[0.75]`,text:upperFirst(e.status)})]})}c();function MT(e){return jsxs(({children:t})=>{let n={...e,paddingLeft:typeof e.indent=="boolean"?"11":e.indent,height:"full",width:"full",gap:"7",overflow:"hidden",style:{backgroundColor:e.showBg?"red":"transparent"},colorPalette:e.colorScheme};return e.value?jsx(Steps.RootProvider,{value:e.value,...n,children:t}):jsx(Steps.Root,{...n,count:e.steps.length,children:t})},{children:[jsx(Steps.List,{opacity:e.nested?.7:1,children:e.steps.map((t,n)=>jsxs(Steps.Item,{index:n,title:t.title,children:[jsxs(Steps.Trigger,{children:[jsx(Steps.Indicator,{children:t.icon&&jsx(Steps.Status,{incomplete:jsx(t.icon,{}),complete:jsx(LuCheck,{})})}),jsx(Steps.Title,{children:t.title})]}),jsx(Steps.Separator,{})]},n))}),jsxs(Stack,{justifyContent:"space-between",height:"full",width:"full",overflow:"hidden",children:[e.steps.map((t,n)=>jsx(Steps.Content,{height:"full",width:"full",index:n,overflow:"hidden",children:typeof t.description=="function"?jsx(t.description,{}):t.description},n)),e.completedel!=="none"&&jsx(Steps.CompletedContent,{height:"full",width:"full",overflow:"hidden",children:e.completedel||"All steps are complete!"}),e.footer?jsx(e.footer,{PrevTrigger:({children:t})=>jsx(Steps.PrevTrigger,{asChild:true,children:t}),NextTrigger:({children:t})=>jsx(Steps.NextTrigger,{asChild:true,children:t})}):jsxs(ButtonGroup,{size:"sm",variant:"outline",children:[jsx(Steps.PrevTrigger,{asChild:true,children:jsx(Button,{children:"Prev"})}),jsx(Steps.NextTrigger,{asChild:true,children:jsx(Button,{children:"Next"})})]})]})]})}c();c();var wu=Ie.forwardRef(function(r,t){let{showArrow:n,children:o,disabled:i,portalled:a=true,content:l,contentProps:s,portalRef:u,...f}=r;return i?o:jsxs(Tooltip.Root,{...f,children:[jsx(Tooltip.Trigger,{asChild:true,children:o}),jsx(Portal,{disabled:!a,container:u,children:jsx(Tooltip.Positioner,{children:jsxs(Tooltip.Content,{ref:t,...s,children:[n&&jsx(Tooltip.Arrow,{children:jsx(Tooltip.ArrowTip,{})}),l]})})})]})});function on(e){if(e.asChild)return e.children;let{padding:r,borderRadius:t,color:n,backgroundColor:o}=k({padding:e.padding||"sm",corners:e.corners||"sm",color:e.color||"onSurface",backgroundColor:e.backgroundColor||"onSurface[0.1]"});return jsx(wu,{positioning:{placement:e.placement},showArrow:e.arrow,openDelay:e.delay?.open,closeDelay:e.delay?.close,content:e.tooltip,contentProps:{padding:r,color:n,borderRadius:t,style:{backdropFilter:"blur(.25rem)"},css:{"--tooltip-bg":o}},children:e.wrapChildren?jsx("span",{style:e.slotProps?.spanWrapper?{...k(e.slotProps.spanWrapper)}:void 0,children:e.children}):e.children})}c();var $o=createContext(null);function kh(e){let r=A({defaultValue:[]}),t=e.lineSeparatorColor||"onSurface[0.5]",n=Array.isArray(e.children)?e.children:[e.children],o=n.length===1?n:n.map((a,l)=>l===0||!e.rowGap?a:jsxs(Fragment,{children:[jsx("p",{}),jsx(g,{width:"full",align:"center",children:jsx("p",{style:{width:"1px",height:e.rowGap,backgroundColor:x(t)}})}),jsx("p",{}),a]})),i=()=>{if(n.length===1)return "both";let a=[...r.read(),0];if(r.upsert(a),a.length===1)return "first";if(a.length===n.length)return "last"};return jsx($o.Provider,{value:{register:i,lineSeparatorColor:t},children:jsx(g,{grid:true,width:e.width??"fit-content",gridCols:"auto auto auto",justify:"end",style:{columnGap:e.columnGap||".5rem"},children:o})})}function $h(e){let[r,t]=useState(),{register:n}=useContext($o),{indicator:o,leadingEl:i,trailingEl:a}=e.styles||{},{0:l,1:s}=Array.isArray(e.children)?e.children:[e.children];useEffect(()=>{let f=n();typeof f=="string"&&t(f);},[r]);let u=f=>r===f||r==="both";return jsxs(Fragment,{children:[jsx(Du,{disabled:e.disabled,style:{...i,align:i?.align||"end"},children:e.reverse?s:l}),jsxs(g,{align:"center",height:"full",children:[jsx(Bu,{hide:u("first")}),jsx(g,{style:{...k({...o||{},size:o?.size??".6rem",corners:o?.corners||"circle",backgroundColor:o?.backgroundColor||"onSurface",centerContent:o?.centerContent??true}),flexShrink:0},children:e.indicator}),jsx(Bu,{hide:u("last")})]}),jsx(Du,{disabled:e.disabled,style:a,children:e.reverse?l:s})]})}function Du(e){return jsx(g,{size:"full",style:{...k({...e.style||{},fade:e.disabled?.5:e.style?.fade}),justifyContent:"center",flexGrow:1},children:e.children})}function Bu(e){let{lineSeparatorColor:r}=useContext($o);return jsx(g,{width:"1px",height:"full",backgroundColor:r,fade:e.hide?0:1})}var uE={Root:kh,Item:$h};c();function hE(e){let r=()=>jsx(Separator,{flex:"1",variant:e.variant,orientation:e.orientation,size:e.size,color:x(e.color)});return e.label?jsxs(HStack,{children:[["center","right"].includes(e.labelPosition)&&jsx(r,{}),jsx(Text,{flexShrink:"0",color:x(e.labelColor),children:e.label}),["center","left"].includes(e.labelPosition)&&jsx(r,{})]}):jsx(r,{})}c();c();var wo=(e,r)=>{let t=n=>!!n.exec(e);if(typeof r!="string")return t(r);switch(r){case "number":return t(/[0-9]/g);case "symbol":case "space":return t(/\s/g);case "letter":return t(/[a-zA-Z]/);case "uppercaseLetter":return t(/[A-Z]/);case "lowercaseLetter":return t(/[a-z]/);case "all":return true;default:return r}};function xe(e){let[r,t]=useState(e.defaultValue??""),n=e.value!==void 0,o=e.ref||useRef(null),i=useRef(null),a=e.maxChars??1/0,l="2rem",s=b=>typeof e.indent=="string"?e.indent:e.indent?.[b],u="md",{size:f,...p}=e,h={label:k({...e?.slotProps?.label,row:true,fade:e?.slotProps?.label?.fade||.75,fontSize:e.slotProps?.label?.fontSize||(typeof f=="string"&&f in T?f:void 0)}),helperText:k({...e?.slotProps?.helperText}),root:k({width:e.width}),input:k({...p,width:"full",padding:{top:u,left:e.leadingContent?s("left")||l:u,right:e.trailingContent||e.showCharCounter?s("right")||l:u,bottom:u},corners:!e.corners&&e.corners!==0?".75rem":e.corners,style:{boxShadow:"none",...e.style}})},y=b=>{o.current.value=b,e.onChange(b,null);};useEffect(()=>{e.showCharCounter&&Object.assign(o.current?.style,{paddingRight:`calc(${getComputedStyle(i.current).width} + 7px)`});},[r,e.value]),useEffect(()=>{let b=S=>{if(e.format!=="currency")return;let $=S;if($=$.replace(/[^0-9.]/g,"").replace(/\.{2,}/,"").split(".").filter((w,P)=>P<2).join("."),$&&takeLast($.split(""))[0]!=="."){let w=parseFloat($);if(!isNaN(w)){let P=new Intl.NumberFormat;y(P.format(w));}}};o.current?.addEventListener?.("beforeinput",S=>{let $=S.data,w=e.format==="currency"?/[0-9.]/:e.allowedChars||"all";w==="all"||Array.isArray(w)&&w.includes("all")||$===null||(!Array.isArray(w)&&!wo($,w)||Array.isArray(w)&&w.some(P=>!wo($,P)))&&S.preventDefault();}),o.current?.addEventListener?.("paste",S=>{b(S.target.value);}),o.current?.addEventListener?.("input",S=>{b(S.target.value);});},[o.current]);let z=b=>{e.onChange?.(b,void 0),e.onPasteClick?.(b);};return jsxs(Field.Root,{required:e.required,disabled:e.disabled,css:{boxShadow:"none","--focus-color":"transparent","--error-color":"transparent"},style:{...h.root,boxShadow:"none"},children:[(e.label||e.required)&&jsxs(Field.Label,{style:{...h.label},children:[e.required?e.label||"required":e.label," ",e.required&&jsx(Field.RequiredIndicator,{})]}),jsx(Rh,{elementRef:o,useCopy:e.allowCopyText,usePaste:e.allowPasteText,onPaste:z,slotProps:e.slotProps,children:jsx(InputGroup,{css:{boxShadow:"none","--focus-color":"transparent","--error-color":"transparent"},startElement:e.leadingContent,startElementProps:e.slotProps?.leadingContent||{padding:"2"},endElement:e.showCharCounter?jsx(C,{ref:i,fade:.5,fontSize:e.slotProps?.charCounter?.fontSize||(typeof e.size=="string"&&e.size in T?T[e.size]:void 0),text:`${(e.value??r).length}/${a}`}):e.trailingContent,endElementProps:e.slotProps?.trailingContent||{padding:"1"},startAddon:e.leadingAdornment,startAddonProps:{...e.slotProps?.leadingAdornment,padding:e.slotProps?.leadingAdornment?.padding||"1",borderRadius:"xl"},endAddon:e.trailingAdornment,endAddonProps:{...e.slotProps?.trailingAdornment,padding:e.slotProps?.trailingAdornment?.padding||"1",borderRadius:"xl"},gapX:".5rem",children:jsx(Input,{maxLength:e.maxChars,readOnly:e.readOnly,ref:e.pureRef||o,width:"full",autoFocus:e.autoFocus,size:f,zIndex:1,variant:e.variant,css:{transition:e.disableTransition?"none":"all 200ms ease-in","--focus-color":x(e.focusColor||"primary")},onKeyDown:b=>{b.key==="Enter"?e.onEnterKeyPressed?.():b.key==="Escape"&&e.onEscapeKeyPressed?.();},value:e.value??r,overflow:"hidden",style:h.input,onFocus:e.onFocus,onBlur:e.onBlur,_placeholder:e.slotProps?.placeholder?.color?{color:x(e.slotProps.placeholder.color)}:void 0,onChange:b=>{let S=b.currentTarget.value;switch(e.allowHtmlInput||(S=yi(S)),e.trimOnChange){case "start":S=S.trimStart();break;case "end":S=S.trimEnd();break;case true:S=S.trim();break}e.validateInput?.(S)!==false&&(e.onChange?.(S,b),n||t(S));},placeholder:e.placeholder})})}),e.helperText&&jsx(Field.HelperText,{style:h.helperText,children:e.helperText})]})}function Rh(e){return !e.useCopy&&!e.usePaste?e.children:jsxs("div",{style:{display:"flex",alignItems:"center",gap:U.sm,width:"100%"},children:[e.children,e.useCopy&&jsx($r,{iconOnly:e.slotProps?.copyButton?.iconOnly,inputRef:e.elementRef}),e.usePaste&&jsx(Ru,{iconOnly:e.slotProps?.pasteButton?.iconOnly,inputRef:e.elementRef,onClick:e.onPaste})]})}c();function eu(e){let[r,t]=useState(false),o={error:BsExclamationCircle,info:BsInfoCircle,warning:BsExclamationTriangle}[e.severity],i=e.iconSize||"1rem",a=e.gap||"md",l=jsx(o,{size:i,style:{flexShrink:0}});return jsxs(g,{row:e.hideLabel,top:e.top,left:e.left,right:e.right,bottom:e.bottom,pos:e.pos,width:e.width,gap:e.hideLabel?a:void 0,corners:"md",backgroundColor:x(e.severity+"[0.5]",{preference:"res"}),color:"white",padding:"md",align:r||!e.hideLabel?"start":"center",style:{boxShadow:e.disableShadow?"none":"rgba(0, 0, 0, 0.35) 0px 5px 15px"},children:[e.hideLabel?l:jsxs(g,{row:true,gap:a,align:"center",children:[l,jsx(C,{fontWeight:"bold",fontSize:"xs",text:(e.facade?.(e.severity)||e.severity).toUpperCase()})]}),jsx("span",{ref:s=>{s&&t(vi(s));},style:k({fontSize:e.fontSize||"sm",fade:e.hideLabel?1:.75,style:{paddingLeft:e.hideLabel?void 0:`calc(${i} + ${k({gap:a}).gap})`}}),children:e.message})]})}c();c();c();c();function ju(e){return {FlyLeavingBox:Uh}[e]}var Io=createContext(null);function Vh(e){let r=A({defaultValue:e.attachments||[]}),{triggerRerender:t}=G(),n=()=>{e.onClose?.(),e.rerenderOnClose&&t();};return jsx(Io.Provider,{value:{...e,attachmentsEventListener:(o,i)=>{let a=r.read();o==="add"&&(a=[...a,i]),o==="delete"&&(a=a.filter(({uid:l})=>l!==i.uid)),r.upsert(a),e.onAttachmentsChange?.(a),o==="delete"&&isEmpty(a)&&t(),e.attachmentsEventListener?.(o,i);},attachments:r.read(),rerender:t},children:jsxs(F.Root,{onClose:n,unmountOnExit:e.unmountOnExit,maxHeight:"30rem",width:"27rem",scrollBehavior:"inside",triggerElement:e.triggerElement,controller:e.controller,spill:"hidden",children:[jsx(F.Header,{style:{flexShrink:0},fontSize:"2xl",children:"Attachments"}),jsx(F.Body,{size:"full",padding:"sm",spill:"hidden",children:isEmpty(r.read())?jsx(Wh,{}):jsx(Mh,{})})]})})}function Mh(){let e=useContext(Io),r=A(void 0),[t,n]=useState(""),[o,i]=useState(e?.attachments||[]);useEffect(()=>{r.upsert(true);},[]),useEffect(()=>{r.read()===true&&r.upsert(false);});let a=t.trim()?o.filter(({name:p})=>p.toLowerCase().includes(t.toLowerCase())):o,l=isEmpty(a)&&!!t.trim(),s=p=>{i(h=>h.filter(({uid:y})=>y!==p.uid)),e?.onAttachmentDeleted?.(p),e?.attachmentsEventListener?.("delete",p);},u=(p,h)=>{let y=h[0];i([...o,y]),e?.onAttachmentAdded?.(y),e?.attachmentsEventListener("add",y);},f=p=>{e?.onOpenAttachment?.(p),e?.attachmentsEventListener?.("open",p);};return jsxs(Fragment,{children:[jsx(Eo,{width:"full",value:t,onChange:n}),jsx(g,{size:"full",maxHeight:"10rem",spill:"auto",padding:l?"lg":void 0,centerContent:l,children:l?jsx("span",{style:{opacity:.75},children:`"${t}" not found`}):a.map((p,h,y)=>jsx(Jh,{scrollIntoView:r.read()===false&&h===y.length-1,value:p,hideDeleteButton:e.hideDeleteButton,hideOpenAttachmentButton:e.hideOpenAttachmentButton,disableDelete:typeof e?.deleteDisabled=="function"?e.deleteDisabled(p):e?.deleteDisabled,disableOpen:typeof e?.openDisabled=="function"?e.openDisabled(p):e?.openDisabled,onDelete:s,onOpen:f},p.uid))}),!e.hideUploadButton&&jsx(mt,{getFilePath:e?.getFilePath,disabled:e?.uploadDisabled,fileClass:"attachment",size:"xs",width:"full",onAccept:u})]})}function Jh(e){let{alias:r,path:t,name:n,sizeInBytes:o}=e.value,i=Qt(r);return jsxs(ue.Root,{corners:"md",width:"full",sx:{cursor:"default",overflow:"hidden",transition:"all 300ms linear",":hover":{backgroundColor:"outline[0.1]"}},children:[jsx(ue.LeadingAddOn,{size:"2rem",aspectRatio:1,color:r,padding:"sm",corners:"md",backgroundColor:"onSurface[0.1]",style:{flexShrink:0},children:r==="img"&&t.trim()?jsx(Ae,{src:t.trim(),size:"full",corners:"md",spill:"hidden"}):jsx(i.outlined,{size:"100%"})}),jsxs(ue.Content,{gap:"sm",width:"full",children:[jsx(ue.Item,{truncateStyle:"ellipsis",value:n}),jsxs(g,{ref:a=>a&&e.scrollIntoView&&a.scrollIntoView({behavior:"instant"}),fade:.7,row:true,align:"center",gap:"sm",fontSize:"xxs",children:[jsx(C,{fontWeight:"bold",text:r.toUpperCase()}),jsx(g,{size:".25rem",corners:"circle",backgroundColor:"onSurface"}),jsx(C,{fade:.5,text:parseFileSize(o)})]})]}),(!e.hideDeleteButton||!e.hideOpenAttachmentButton)&&jsxs(ue.TrailingAddOn,{row:true,gap:"sm",align:"center",children:[!e.hideOpenAttachmentButton&&jsx(To,{iconOnly:true,disabled:e.disableOpen,borderColor:"transparent",size:"sm",onClick:()=>e.onOpen?.(e.value)}),!e.hideDeleteButton&&jsx(dt,{iconOnly:true,disabled:e.disableDelete,backgroundColor:"transparent",color:"delete",size:"sm",onClick:()=>e.onDelete?.(e.value)})]})]})}function Wh(){let e=useContext(Io);return jsxs(Kt.Root,{children:[jsx(Kt.Indicator,{size:"7rem",disableFade:true,element:jsx(Ae,{spill:"hidden",size:"full",src:ju("FlyLeavingBox")})}),jsx(Kt.Content,{title:"Attachments not found",description:"Upload an attachment and it will appear here."}),!e.hideUploadButton&&jsx(mt,{disabled:e.uploadDisabled,getFilePath:e.getFilePath,fileClass:"attachment",backgroundColor:"secondaryContainer",color:"onSecondaryContainer",accepts:e.accepts,onAccept:(r,t)=>{t.forEach(n=>{e?.attachmentsEventListener?.("add",n);}),e.rerender();}})]})}var Oo=Vh;function Gh(e){let r=A({defaultValue:Array.isArray(e.attachments)?e.attachments:[]}),{triggerRerender:t}=G(),n=o=>{r.upsert(o);};return jsx(on,{tooltip:"Attachments",placement:"right",children:jsx(Gs,{circleChild:true,asChild:!e.attachments,badge:jsx(au,{content:typeof e.attachments=="number"?e.attachments:r.read().length}),children:jsx(Kh,{asChild:!Array.isArray(e.attachments),attachments:r.read(),onAttachmentsChange:n,onClose:t,...e.slotProps?.attachmentsDialog,children:jsxs(g,{row:true,gap:"xs",fontSize:"xs",color:"onPaper",align:"center",corners:e.corners||"md",padding:"md",clickable:true,backgroundColor:"onPaper[0.1]",onClick:e.onClick,children:[jsx(BsPaperclip,{size:"1rem"}),!e.iconOnly&&"Attachments"]})})})})}function Kh(e){let{asChild:r,children:t,unmountOnExit:n,onAttachmentsChange:o,onClose:i,...a}=e;return r?t:jsx(Oo,{...a,unmountOnExit:n,triggerElement:t,onAttachmentsChange:o,onClose:i})}var Ro=Gh;c();var qh=Ne({preset:{text:"Cancel",leadingEl:null,trailingEl:null},optional:{backgroundColor:"transparent",color:"onSurface",fade:.75}}),ot=qh;c();function ry(e){return jsx(E,{disabled:e.disabled,size:e.size,corners:e.corners,gap:e.gap,iconSize:e.iconSize,fontSize:e.fontSize,leadingEl:!e.iconVariant||e.iconVariant==="outlined"?BsTrash:BsTrashFill,backgroundColor:e.backgroundColor||"delete",color:e.color||"white",text:e.iconOnly?void 0:"Delete",onClick:e.onClick})}var dt=ry;c();function oy(e){let{iconOnly:r,...t}=e;return jsx(E,{...t,leadingEl:LuPencilLine,text:r?void 0:"Edit",backgroundColor:e.backgroundColor||"transparent",borderColor:e.borderColor||"onSurface[0.25]",color:e.color||"onSurface",corners:e.corners||"sm"})}var iy=oy;c();function dy(e){let r=A({defaultValue:e.initialState==="expanded"}),t=e.icon||"chevron",n=t==="chevron"?BsChevronBarExpand:BsArrowsAngleExpand,o=t==="chevron"?BsChevronBarContract:BsArrowsAngleContract,i=r.read()?o:n;return jsx(g,{clickable:true,onClick:()=>{r.upsert(l=>(l?e.onContract():e.onExpand(),!l));},children:jsx(i,{})})}var my=dy;c();function fy(e){return jsx(E,{disabled:e.disabled,text:"Next",backgroundColor:"tertiaryContainer",color:"onTertiaryContainer",onClick:e.onClick})}var yo=fy;c();function vy(e){return jsx(E,{disabled:e.disabled,leadingEl:IoOpenOutline,size:e.size,corners:e.corners,iconSize:e.iconSize,fontSize:e.fontSize,borderColor:e.borderColor||"onSurface[0.1]",backgroundColor:e.backgroundColor||"transparent",color:e.color||"onSurface",text:e.iconOnly?void 0:"Open",onClick:e.onClick})}var To=vy;c();function _y(e){return jsx(E,{disabled:e.disabled,leadingEl:MdMoreVert,size:e.size,borderColor:e.borderColor||"onSurface[0.1]",color:e.color||"onSurface",backgroundColor:e.backgroundColor||"transparent",iconSize:e.iconSize||"sm",text:e.iconOnly?void 0:"Options",onClick:e.onClick})}var by=_y;c();function Cy(e){let r=jsx(E,{disabled:e.disabled,width:e.width,backgroundColor:e.backgroundColor||"blue",color:e.color||"white",fontSize:e.fontSize||"xs",iconSize:e.iconSize||"sm",leadingEl:BsCreditCard2FrontFill,text:"Payment options",onClick:e.onClick});return e.options?jsx(Fo,{triggerElement:r,options:e.options}):r}var Py=Cy;c();function ky(e){return jsx(E,{disabled:e.disabled,border:"onSurface[0.15]",color:"onSurface",backgroundColor:"transparent",text:"Previous",onClick:e.onClick})}var _o=ky;c();function zy(e){return jsx(E,{async:true,disabled:e.disabled,size:e.size,color:"white[0.85]",spinnerColor:"gray",trailingEl:jsx(IoMdSend,{}),backgroundColor:"sendBlue",text:e.iconOnly?void 0:"Send",onClick:e.onClick,corners:"xl"})}var jo=zy;c();function Dy(e){return jsx(E,{async:true,disabled:e.disabled,text:`Submit ${e.class||""}`.trim(),onClick:e.onClick})}var bo=Dy;c();function Oy(e){return jsx(E,{padding:"sm",gap:"sm",size:"xs",leadingEl:jsx(MdVerifiedUser,{}),backgroundColor:"primaryContainer",color:"onPrimaryContainer",text:"Verify",onClick:e.onClick})}var No=Oy;c();function Ry(e){let r="rgba(0, 0, 0, 0.35) 0px 5px 15px",t=e.currency||"JMD",n=e.slotProps?.fee?.fontSize||"xl";return jsxs(g,{width:e.width,gap:e.gap||"md",padding:e.padding||"1.5rem",color:e.color||"surface",corners:e.corners||"lg",style:{...e.style,boxShadow:r,background:fi({backgroundColor:e.backgroundColor||"onSurface",borderColor:e.wireColor||"surface[0.25]",tileSize:e.tileSize||"1.5rem"})},children:[jsxs(g,{gap:"sm",color:"inherit",children:[e.label&&jsx(C,{fade:.75,fontSize:e.slotProps?.label?.fontSize||"sm",text:e.label,color:"inherit"}),jsxs(g,{row:true,align:"end",gap:"sm",children:[jsxs(g,{row:true,gap:"sm",align:"center",asChildren:e.amount!==1/0,children:[jsx(C,{fontWeight:"bold",fontSize:n,text:e.amount===1/0?"$":parseMoney(e.amount,{truncate:typeof e.truncateFee=="boolean"?e.truncateFee:e.truncateFee?.(e.amount)})}),e.amount===1/0&&jsx(PiInfinityBold,{style:{fontWeight:"bold",fontSize:n in T?T[n]:n}})]}),jsx(C,{fontWeight:"bold",fade:.5,fontSize:e.slotProps?.currency?.fontSize||"sm",text:t})]})]}),e.children]})}var Fy=Ry;c();function Ay(e){return jsxs(ue.Root,{backgroundColor:e.backgroundColor||"onSurface",color:e.color||"surface",width:e.width,maxWidth:e.maxWidth,minWidth:e.minWidth,corners:e.corners||"lg",style:{boxShadow:"rgba(0, 0, 0, 0.35) 0px 5px 15px"},children:[jsx(ue.LeadingAddOn,{size:"2rem",padding:"sm",centerContent:true,corners:"md",backgroundColor:e.indicatorBackgroundColor||"surface[0.1]",style:{flexShrink:0},children:e.receiptPath?jsx(Ae,{corners:"md",src:e.receiptPath,size:"full",spill:"hidden"}):jsx(TfiReceipt,{size:"100%"})}),jsxs(ue.Content,{width:"full",gap:"xs",children:[jsx(ue.Label,{value:"Your receipt",fade:.75,truncateStyle:"ellipsis"}),jsx(ue.Item,{value:e.receiptName||(e.receiptPath?inferFilename(e.receiptPath):"unknown"),truncateStyle:"ellipsis"})]}),!e.hideDeleteButton&&jsx(ue.TrailingAddOn,{children:jsx(dt,{iconOnly:true,iconVariant:e.deleteIconVariant,iconSize:e.deleteButtonSize,backgroundColor:"transparent",color:"delete",onClick:e.onDeleteClick})})]})}var Uy=Ay;c();c();var Ly=Ne({preset:{text:"Done"},optional:{backgroundColor:"onSurface",color:"surface"}}),Wu=Ly;c();function sn(e){let[r,t]=useState(e.selectedDate||new Date),[n,o]=useState(new Date(r)),i=useRef(false);Xu(()=>{i.current=false,e.onDateSelected?.(r);},[r]);let a=()=>{let O=new Date(n);return O.setMonth(n.getMonth()-1),O},l=()=>{let O=new Date(n);return O.setMonth(n.getMonth()+1),O},s=()=>{let O=new Date(n);return O.setDate(1),O.getDay()},u=()=>{let O=new Date(n);return O.setDate(Wy(O)),O.getDay()},f=O=>{let re=new Date;return O===re.getDate()&&n.getMonth()===re.getMonth()&&n.getFullYear()===re.getFullYear()},p=O=>{if(O===r.getDate())return;i.current=true;let re=new Date(n);re.setDate(O),t(re);},h=O=>{if(O===n.getMonth())return;let re=new Date(n);re.setMonth(O),o(re);},y=O=>{if(O===n.getFullYear())return;let re=new Date(n);re.setFullYear(O),o(re);},z=()=>{let O=new Date(n);O.setMonth(O.getMonth()+1),o(O);},b=()=>{let O=new Date(n);O.setMonth(O.getMonth()-1),o(O);},{fontSize:S,arrowSize:$,gap:w,...P}=e,j=new Date(e.minDate==="today"?Date.now():e.minDate||new Date("Jan 1, 1900")),ee=new Date(e.maxDate==="today"?Date.now():e.maxDate==="end-of-year"?`Dec 31 ${new Date().getFullYear()}`:e.maxDate||"Jan 1, 2050"),Fe=Ao(n),Dr=e.gap||"lg",sr="repeat(7, 1fr)",Br=e.fontSize in T?T[e.fontSize]:e.fontSize||T.xs,ur=e.arrowSize in T?T[e.arrowSize]:e.arrowSize||"1.2rem",Ye=`calc(${Br} * 1.14)`,ti=e.yearFontSize in T?T[e.yearFontSize]:e.yearFontSize||Ye,ni=e.monthFontSize in T?T[e.monthFontSize]:e.monthFontSize||Ye;return jsxs(g,{...P,gap:Dr,style:{userSelect:"none",...e.style},children:[jsx(ir,{arrowSize:ur,monthFontSize:e.monthFontSize==="match-year"?ti:ni,yearFontSize:e.yearFontSize==="match-month"?ni:ti,minDate:j,maxDate:ee,activeDate:n,goNextMonth:z,goPreviousMonth:b,onMonthChange:h,onYearChange:y}),jsx(Gu,{in:true,duration:"300ms",skipAnimation:e.disableAnimations||i.current,children:jsxs(g,{grid:true,width:"full",gridCols:sr,style:{gap:e.dateGap in U?U[e.dateGap]:e.dateGap||U.sm},children:[sn.DAYS_OF_WEEK.map(O=>jsx(C,{text:O,fontSize:Br,fontWeight:"bold",textAlign:"center",fade:.75,padding:[Dr,"bottom"]})),[...s()>0?Ao(a()).slice(-s()):[],...Fe,...u()<6?Ao(l()).slice(0,6-u()):[]].map((O,re)=>{let ht=O>7&&re<6||O<7&&re>14||n.getMonth()===j.getMonth()&&n.getFullYear()===j.getFullYear()&&O<j.getDate()||n.getMonth()===ee.getMonth()&&n.getFullYear()===ee.getFullYear()&&O>ee.getDate(),vn=O===r.getDate()&&n.getMonth()===r.getMonth()&&n.getFullYear()===r.getFullYear();return jsx(g,{centerContent:true,aspectRatio:1,fade:ht?.5:1,style:{padding:e.datePadding in U?U[e.datePadding]:e.datePadding||U.sm,borderRadius:e.dateCorners in ge?ge[e.dateCorners]:e.dateCorners||".5rem"},css:{cursor:ht?"not-allowed":"pointer",backgroundColor:vn?"primaryContainer":f(O)?"primaryContainer[0.5]":void 0,color:vn?"onPrimaryContainer":f(O)?"onPrimaryContainer[0.75]":void 0,border:"1px solid transparent",transition:"all 300ms linear",borderColor:vn?x("onPrimaryContainer"):void 0,":hover":ht?void 0:{borderColor:x("onPrimaryContainer[0.5]")}},onClick:ht?void 0:()=>p(O),children:jsx(C,{fontSize:Br,text:`${O}`,textAlign:"center"})})})]})})]})}function ir(e){let r=["January","February","March","April","May","June","July","August","September","October","November","December"],t=r.filter((o,i)=>{let a=e.activeDate?.getFullYear?.();return a===e.minDate?.getFullYear?.()?i>=e.minDate.getMonth():a===e.maxDate?.getFullYear?.()?i<=e.maxDate.getMonth():true}),n=range(e.minDate.getFullYear(),e.maxDate.getFullYear()+1).reverse();return jsxs(g,{row:true,gap:"md",width:"full",align:"center",justify:"space-between",children:[jsx(ir.Nav,{arrowSize:e.arrowSize,disabled:e.minDate.getMonth()>=e.activeDate.getMonth()&&e.minDate.getFullYear()>=e.activeDate.getFullYear(),direction:"left",onClick:e.goPreviousMonth}),jsxs(g,{row:true,gap:"md",children:[jsx(ir.Dropdown,{fontSize:e.monthFontSize,arrowSize:e.arrowSize,selectedOption:r[e.activeDate.getMonth()],options:t,onSelectedChange:o=>e.onMonthChange(r.findIndex(i=>i===o))}),jsx(ir.Dropdown,{arrowSize:e.arrowSize,fontSize:e.yearFontSize,selectedOption:e.activeDate.getFullYear().toString(),options:n.map(o=>o.toString()),onSelectedChange:o=>e.onYearChange(parseInt(o))})]}),jsx(ir.Nav,{arrowSize:e.arrowSize,disabled:e.maxDate.getMonth()<=e.activeDate.getMonth()&&e.maxDate.getFullYear()<=e.activeDate.getFullYear(),direction:"right",onClick:e.goNextMonth})]})}ir.Nav=e=>jsx(LiaAngleLeftSolid,{size:e.arrowSize,style:{cursor:e.disabled?"not-allowed":"pointer",color:x("primary"),opacity:e.disabled?.5:1,transform:e.direction==="right"?"rotate(180deg)":void 0},onClick:e.disabled?void 0:e.onClick});ir.Dropdown=e=>{let[r,t]=useState(e.selectedOption),n=o=>{e.onSelectedChange?.(o.value),t(o.value);};return jsx(Nr,{wrap:true,fontSize:`calc(${e.fontSize} * .76)`,maxHeight:"10rem",isSelected:o=>o.value===r,options:e.options,onOptionClick:n,children:jsxs(g,{row:true,align:"center",gap:"sm",cursor:"pointer",children:[jsx(C,{fontSize:e.fontSize,fontWeight:"bold",text:r}),jsx(LiaAngleDownSolid,{size:`calc(${e.arrowSize} * .625)`,style:{color:x("primary")}})]})})};sn.DAYS_OF_WEEK=["Su","Mo","Tu","We","Th","Fr","Sa"];var Ao=e=>{let r=[],t=new Date(castReturn(e));for(t.setDate(1),r.push(1);;){let n=t.getDate()+1;if(t.setDate(n),t.getMonth()===castReturn(e).getMonth())r.push(n);else break}return r},Wy=e=>{let r=new Date(e);for(;r.getMonth()===e.getMonth();)r.setDate(r.getDate()+1);return r.setDate(r.getDate()-1),r.getDate()};function Hy(e){let r=A({defaultValue:null}),{controller:t,triggerElement:n,backdropBlur:o,backgroundColor:i,...a}=e,l=e.actionButtonSize||"xs",s=p=>{r.upsert(p),e.onDateSelected?.(p);},u=()=>{let p=r.read();p&&e.onDoneClick?.(p);},f=p=>{e.onOpenChange?.(p);};return jsxs(F.Root,{hideCloseButton:true,onOpenChange:f,width:"max-content",controller:t,triggerElement:n,backgroundColor:i||"surface[0.25]",backdropBlur:o||".5rem",children:[e.title&&jsx(F.Header,{fontSize:e.titleFontSize,children:e.title}),jsx(F.Body,{children:jsx(sn,{...a,selectedDate:e.selectedDate||r.read(),onDateSelected:s})}),jsxs(F.Footer,{children:[jsx(F.ActionTrigger,{children:jsx(ot,{size:l,fade:.5})}),jsx(F.ActionTrigger,{children:jsx(Wu,{size:l,onClick:u})})]})]})}var Xy=Hy;c();function e_(e){let[r,t]=useState(),n=r?FaAngleUp:FaAngleDown,o=i=>{if(i.content)return typeof i.content=="string"?jsx("span",{children:i.content}):jsx(g,{fade:.75,padding:["md",["left","right","bottom"]],fontSize:"xs",children:Object.keys(i.content).map(a=>jsxs("span",{children:[jsxs("strong",{children:[a,":"]}),"\xA0",i.content[a]]}))})};return jsxs(F.Root,{triggerElement:e.triggerElement,controller:e.controller,width:"22rem",children:[jsx(F.Header,{children:"Payment Options"}),jsx(F.Body,{gap:"sm",width:"full",children:e.options.map((i,a)=>{let l=i.variables?i?.["pre-element"]?.(i.variables):void 0,s=i.variables?i?.["post-element"]?.(i.variables):void 0;return jsxs(Fragment,{children:[l,jsxs(g,{width:"full",css:{backgroundColor:r?.index===a?"onSurface[0.1]":void 0},corners:"md",asChildren:!i.dropDownContent,children:[jsxs(g,{row:true,gap:"md",width:"full",align:"center",fade:i.disabled?.5:1,cursor:i.disabled?"not-allowed":"pointer",padding:"md",corners:"md",css:{transition:"all 300ms linear",":hover":i.disabled||r?.index===a?void 0:{backgroundColor:"onSurface[0.1]"}},onClick:()=>{i.onClick?.(i.variables),i.dropDownContent&&t(r?void 0:{index:a});},children:[jsx(i.icon,{size:"1.5rem"}),jsxs(g,{asChildren:!i.description,width:"full",children:[jsx(C,{width:"full",fontSize:"sm",text:i.label}),i.description&&jsx("span",{children:i.description,style:{opacity:.75,fontSize:T.xs}})]}),i.dropDownContent&&jsx(n,{})]}),i.dropDownContent&&r?.index===a&&jsx(o,{content:i.dropDownContent})]}),s]})})})]})}var Yu=e=>e,oR=e=>Yu({icon:RiBankFill,label:"Bank Transfer",dropDownContent:{"Name On Account":e.accountName,Bank:e.bank,"Account type":e.accountType,"Account #":`${e.accountNo}`,"Transit #":`${e.transitNo}`,Branch:e.branch,"Transfer currency":e.transferCurrency}}),iR=()=>Yu({icon:RiSecurePaymentFill,label:"In App Payment",disabled:true,variables:{}}),Fo=e_;c();var qu=createContext(null);function Lo(e){let r=e.controller,t=!!r.value?.response,{title:n,message:o}=r.value?.response||r.value?.error||{},i=t?"carlsbergGreen":"billsRed",a=(()=>{if(r?.value)return !e.indicator||e.indicator==="normal"?t?BsCheck2Circle:IoWarningOutline:e.indicator==="mail"?t?RiMailSendLine:RiMailCloseLine:e.indicator(t?"success":"error")})(),l=e.actionButton?.(t?"succes":"error"),s={title:k({fontSize:e.titleFontSize||"lg"}),description:k({fontSize:e.descriptionFontSize||"sm",fade:.5})},u=({fontSize:f,lineHeight:p,opacity:h})=>({fontSize:f,lineHeight:p,opacity:h});return jsx(qu.Provider,{value:{color:i},children:jsxs(F.Root,{onClose:e.onClose,controller:r,width:e.width,minWidth:e.minWidth,maxWidth:e.maxWidth??"25rem",gap:"sm",unmountOnExit:e.unmountOnExit,borderColor:e.disableColorIndicator?void 0:[i,"left"],children:[jsxs(F.Body,{grid:true,gridCols:"auto 1fr",gap:"lg",children:[jsx(a,{color:x(i),size:typeof e.indicatorSize=="function"?e.indicatorSize(t?"success":"error"):e.indicatorSize??"2.75rem"}),jsxs(g,{width:"full",gap:"sm",spill:"hidden",padding:["md","top"],children:[jsx("span",{style:u(s.title),children:n}),jsx("span",{style:u(s.description),children:o})]})]}),jsxs(F.Footer,{row:true,gap:"md",align:"center",children:[jsx(F.ActionTrigger,{children:jsx(E,{size:"xs",backgroundColor:l?"transparent":"onSurface[0.1]",color:"onSurface[0.75]",text:"Dismiss",onClick:r.hide})}),l?jsx(s_,{...l}):void 0]})]})})}function s_(e){let{color:r}=useContext(qu);return jsx(E,{async:e.async,disabled:e.disabled,backgroundColor:r,leadingEl:e.leadingIcon,color:"white",size:"xs",trailingEl:e.trailingIcon,text:e.label,onClick:e.onClick})}var Qu=e=>r=>({disabled:r.disabled,async:true,label:e,leadingIcon:GrRotateLeft,onClick:r.onClick});Lo.tryAgainButton=Qu("Try Again");Lo.retryButton=Qu("Retry");var dn=Lo;c();var Zo="onPaper[0.1]",Vo=", ";function m_(e){let r=A({defaultValue:typeof e.disableSend=="boolean"?e.disableSend:!!e.onSendClick}),t=rd(),n=A({defaultValue:{subject:e.subject??"",body:{text:e.body||""},recipients:e.recipients||[],attachments:e.attachments||[]}}),o=(l,s)=>{n.upsert(u=>({...u,[l]:s}));},i=()=>strictArray(n.read().recipients),a=async()=>{let{subject:l,body:{text:s},attachments:u}=n.read(),f=await e.onSendClick({subject:l,body:{text:s,html:e.bodyToHtml?.(s)},recipients:i(),attachments:u});if(typeof f!="object")return;let{error:p,response:h}=f;if(typeof e.disableSend=="function"&&r.upsert(e.disableSend(f)),p)return t.show({error:p});h!=="success"?t.show({response:h}):t.show({response:{title:"Successfully sent email!",message:"Your email was successfully sent to the intended recipients."}});};return jsxs(g,{height:e.height||"15rem",width:e.width||"22rem",backgroundColor:"paper",color:"onPaper",corners:"md",padding:"md",spill:"hidden",style:{boxShadow:"rgba(0, 0, 0, 0.35) 0px 5px 15px"},children:[jsx(dn,{unmountOnExit:true,disableColorIndicator:e.slotProps?.taskResultDialog?.disableColorIndicator,controller:t,indicator:"mail",actionButton:l=>l==="succes"?void 0:dn.tryAgainButton({disabled:r.read(),onClick:a})}),e.readOnly&&n.read().recipients?jsx(p_,{recipients:i()}):jsx(f_,{readOnly:e.readOnly,recipients:i(),onChange:l=>o("recipients",l.split(Vo))}),jsx(g_,{subject:n.read().subject,readOnly:e.readOnly,onChange:l=>o("subject",l)}),jsxs(g,{size:"full",gap:"sm",spill:"hidden",children:[jsx(v_,{defaultValue:n.read().body.text,readOnly:e.readOnly,onChange:l=>o("body",{text:l})}),jsxs(g,{width:"full",row:true,align:"center",justify:"space-between",gap:"md",children:[jsx(Ro,{attachments:n.read().attachments,corners:"lg",slotProps:{attachmentsDialog:{...e.slotProps?.attachmentsDialog,unmountOnExit:true,uploadDisabled:e.readOnly||e.slotProps?.attachmentsDialog?.uploadDisabled,deleteDisabled:e.readOnly||e.slotProps?.attachmentsDialog?.deleteDisabled}}}),jsx(jo,{size:"2xs",disabled:r.read(),onClick:a})]})]})]})}function f_(e){let[r,t]=useState(false),n=o=>jsx(C,{text:o.value,cursor:"not-allowed",sx:{":hover":{textDecoration:"underline"}}});return jsx(ed,{readOnly:e.readOnly,placeholder:"Recipients",defaultValue:e.recipients.join(Vo),onFocus:e.readOnly?void 0:()=>t(true),onBlur:e.readOnly?void 0:()=>t(false),autoFocus:r,leadingContent:r?jsx(C,{fontSize:"xs",text:"To:"}):void 0,trailingContent:jsxs(g,{row:true,gap:"sm",fontSize:"xs",children:[jsx(n,{value:"Cc"}),jsx(n,{value:"Bcc"})]}),indent:{right:"3rem"},onChange:e.onChange})}function p_(e){return jsxs(g,{width:"full",grid:true,gridCols:"1fr auto",gap:"md",justify:"space-between",borderColor:[Zo,"bottom"],children:[jsx(g,{row:true,width:"full",gap:"md",spill:"hidden",padding:["sm","bottom"],children:e.recipients.map(r=>jsxs(g,{row:true,align:"center",gap:"sm",fontSize:"xs",color:"onPaper",borderColor:"onPaper[0.1]",padding:"xs",corners:"xl",spill:"hidden",children:[jsx(He,{size:"2xs",backgroundColor:"sendBlue[0.25]",color:"sendBlue"}),jsx(C,{ellipsis:true,text:r})]}))}),jsx(Mo,{textToCopy:e.recipients.join(Vo)})]})}function g_(e){let r=!!(e.readOnly&&e.subject);return jsxs(g,{row:true,width:"full",gap:"md",justify:"space-between",align:"center",padding:["xs",["top","bottom"]],asChildren:!r,borderColor:[Zo,"bottom"],children:[jsx(ed,{disableSepColor:r,placeholder:"Subject",defaultValue:e.subject,readOnly:e.readOnly,onChange:e.onChange}),r&&jsx(Mo,{textToCopy:e.subject})]})}function v_(e){let r=!!(e.defaultValue&&e.readOnly);return jsxs(g,{pos:"relative",size:"full",asChildren:!r,children:[jsx("textarea",{defaultValue:e.defaultValue,readOnly:e.readOnly,style:{position:r?"relative":void 0,scrollbarColor:`${x("onPaper")} transparent`,padding:".6rem",width:"100%",height:"100%",backgroundColor:"transparent",outline:"none",resize:"none",fontSize:T.xs,zIndex:1,flexShrink:r?0:1},onChange:t=>e.onChange(t.target.value)}),r&&jsx(g,{pos:"absolute",top:"72.5%",left:"85%",style:{zIndex:2},children:jsx(Mo,{textToCopy:e.defaultValue})})]})}function ed(e){return jsx(xe,{size:"xs",readOnly:e.readOnly,corners:0,defaultValue:e.defaultValue,autoFocus:e.autoFocus,focusColor:"transparent",onFocus:e.onFocus,onBlur:e.onBlur,indent:e.indent,placeholder:e.placeholder,leadingContent:e.leadingContent,trailingContent:e.trailingContent,borderColor:e.disableSepColor?"transparent":[Zo,"bottom"],onChange:e.onChange})}function Mo(e){return jsx($r,{iconOnly:true,iconSize:"xs",textToCopy:e.textToCopy,backgroundColor:"onPaper[0.1]",color:"onPaper",borderColor:"onPaper[0.25]"})}var h_=m_;c();c();function y_(e){return jsxs(g,{row:true,gap:"md",children:[jsx(od,{onClick:e.onNoClick}),jsx(nd,{onClick:e.onYesClick})]})}var Jo=y_;function x_(e){return jsxs(g,{centerContent:true,size:"full",gap:"md",children:[e.icon&&jsx(e.icon,{opacity:.15,size:"5rem"}),jsx(Text,{fontSize:"1.5rem",opacity:.75,children:e.question}),jsx(Jo,{onNoClick:()=>{e.onNoClick?.(),e.onOptionClick?.("no");},onYesClick:()=>{e.onYesClick?.(),e?.onOptionClick?.("yes");}})]})}var S_=x_;c();function P_(e){let r=e.json?JSON.parse(e.json):void 0;return jsx(g,{size:e.fullSize?"full":void 0,height:e.height||"25rem",width:e.width||"35rem",pos:"relative",centerContent:!e.json,padding:"lg",corners:"md",borderColor:"outlineVariant[0.25]",style:{overflow:"auto",backgroundImage:"radial-gradient(circle at 1px 1px, rgba(255,255,255, .1) 1px, transparent 0)",backgroundSize:"20px 20px"},children:e.json?jsx("pre",{style:{width:"100%"},children:jsx("code",{children:jsx(Go,{value:r})})}):jsx(k_,{})})}function k_(){let e=r=>jsx(C,{fontSize:"2rem",color:"jsonBracket",text:r.value});return jsx(g,{centerContent:true,corners:"md",gap:"md",padding:"xl",children:jsx("pre",{children:jsx("code",{children:jsxs("span",{style:{fontSize:"1.5rem"},children:[jsx(e,{value:"{ "}),jsx(C,{color:"jsonKey",text:'"JSON"'}),":",jsx(C,{color:"string",text:'"Viewer"'}),jsx(e,{value:" }"})]})})})})}var $_=["string","number","boolean"];function Ho(e){let r=(()=>{let t=typeof e.value;if(t==="string")return "string";if(t==="number")return "number";if(t==="boolean")return "boolean"})();return jsx(C,{color:r,text:typeof e.value=="string"?`"${e.value}"`:`${e.value}`})}function id(e){return jsxs(Fragment,{children:[jsx(C,{width:"full",color:"arrayBracket",text:"["}),e.value.map((r,t)=>jsx(o=>{let i=e.value.some(a=>typeof a=="object");return jsxs(Fragment,{children:[i&&jsx("br",{}),o.children,t===e.value.length-1?"":", ",i&&t===e.value.length-1&&jsx("br",{})]})},{children:typeof r=="object"?jsx(Go,{indent:true,indentInitialBracket:true,value:r}):Array.isArray(r)?jsx(id,{value:r}):jsx(Ho,{value:r})})),jsx(C,{color:"arrayBracket",text:"]"})]})}function Go(e){let r="1rem",t=e.indentMultiplier||2,n=e.indent?`calc(${r} * ${t})`:r,o=`calc(${n} / ${t})`;return jsxs(Fragment,{children:[jsx(C,{style:{paddingLeft:e.indentInitialBracket?o:void 0},color:"jsonBracket",text:"{"}),jsx("br",{}),Object.keys(e.value).map((i,a,l)=>{let s=i,u=e.value[s],f=()=>$_.includes(typeof u)?jsx(Ho,{value:u}):Array.isArray(u)?jsx(id,{value:u}):typeof u=="object"?jsx(Go,{indent:true,value:u}):jsx(Ho,{value:`${u}`});return jsxs("span",{style:{paddingLeft:n,width:"100%"},children:[jsx(C,{color:"jsonKey",text:`"${s}"`})," : ",jsx(f,{}),a===l.length-1?"":",",jsx("br",{})]})}),jsx(C,{style:{paddingLeft:e.indent?o:void 0},color:"jsonBracket",text:"}"})]})}var Ko=P_;c();c();c();function O_(e){let r=e.accepts?castArray(e.accepts):[...Gt.options].filter(s=>s!=="unknown");console.log({accepts:e.accepts,_accepts:r});let t=getMimeTypes(distinct(strictArray(r))),n=e.multiple?1/0:e.maxFiles??1,o=useRef(null),i=(...s)=>{if(e.disabled)return;let u="target"in s[0]?s[0].target.files:s[0],f=[],p=[],h=y=>strictArray(y).map(z=>toObject(z,{uploadDate:"now",filepath:e.getFilePath?.(z)}));for(let y of u){if(f.length+p.length>=n)break;t.includes(y.type)?f.push(y):p.push(y);}isEmpty(f)||e.onAccept?.(f,h(f)),isEmpty(p)||e.onReject?.(p,h(p));},a=s=>{if(s.preventDefault(),!e.allowDrop||e.disabled)return;let u=[];if(s.dataTransfer.items?u=[...s.dataTransfer.items].filter(f=>f.kind==="file").map(f=>f.getAsFile()):u=[...s.dataTransfer.files],!isEmpty(u)){let f=new DataTransfer;u.forEach(p=>f.items.add(p)),i(u);}},l=()=>{e.disabled||o.current.click();};return jsxs("label",{className:e.className,style:{...k(e),userSelect:e.disableSelection?"none":void 0,cursor:"pointer"},onDrop:a,onDragOver:s=>s.preventDefault(),onClick:l,children:[e.children,jsx("input",{id:"file",type:"file",ref:o,style:{display:"none"},onChange:i,accept:t.join(", "),multiple:e.multiple})]})}var cd=O_;function sd(e){return r=>{let{size:t,fontSize:n,iconSize:o,fileClass:i,backgroundColor:a,accepts:l=e?.accepts,...s}=r||{};return jsx(cd,{spill:"hidden",corners:r.corners||"md",accepts:l,...s||{},allowDrop:false,children:jsx(E,{debug:r.debug,disabled:r.disabled,width:r.width,backgroundColor:a,corners:r.corners||"md",borderColor:r.borderColor,color:r.color,variant:"outline",fontSize:n,leadingEl:HiUpload,iconSize:o,size:t||"sm",text:`Upload ${r.hideFileClass?"":i||e?.fileClass}`.trim(),style:{flexShrink:0}})})}}var mt=sd({fileClass:"file"}),gF=sd({fileClass:"receipt",accepts:["img"]});function N_(e){let[r,t]=useState(e.defaultPicture?.path),n=({children:i})=>e.label?jsxs(g,{gap:e.rowGap||"md",children:[jsx(C,{fontSize:e.slotProps?.label?.fontSize||"sm",fontWeight:e.slotProps?.label?.fontWeight||"bold",fade:e.slotProps?.label?.fade||.75,text:e.label}),i]}):i,o=(i,a)=>{let l=a[0];t(l.path),e.onChange?.(l);};return jsx(n,{children:jsxs(g,{row:true,gap:e.columnGap||"lg",align:"center",children:[jsx(He,{size:"xl",fallback:e.fallback||IoMdImages,src:r||null,style:e.slotProps?.avatar?.style}),jsx(mt,{size:e.slotProps?.uploadButton?.size,fileClass:"photo",accepts:["img"],getFilePath:e.getFilePath,onAccept:o})]})})}var A_=N_;c();function L_(e){let r=e.authProviders||Ns.options;return jsxs(g,{padding:"1.75rem",corners:"lg",gap:"xl",width:e.width,borderColor:e.glassy?void 0:"outlineVariant",backgroundColor:e.backgroundColor||(e.glassy?"onSurface[0.1]":"surfaceContainer"),backdropBlur:e.glassy?".5rem":void 0,color:e.color||"onSurface",style:{boxShadow:"rgba(0, 0, 0, 0.35) 0px 5px 15px",zIndex:e.zIndex},children:[e.header||jsxs(g,{width:"full",color:"inherit",children:[jsx(C,{fontWeight:"bold",fontSize:"1.55rem",text:"Sign In"}),jsx("span",{style:{opacity:.75,fontSize:".95rem"},children:"Select a sign-in method to continue."})]}),jsx(g,{width:"full",color:"inherit",children:r.map(t=>jsx(Z_,{provider:t,onClick:e.onAuthProviderClick}))})]})}function Z_(e){let r=(()=>{switch(e.provider){case "Google":return FcGoogle;default:return e.provider}})(),t=()=>e.onClick(e.provider);return jsx(E,{async:true,width:"full",pendingDelay:1e3,borderColor:"outlineVariant",backgroundColor:"transparent",color:"inherit",padding:".75rem",iconSize:"md",leadingEl:r,text:`Continue with ${e.provider}`,style:{boxShadow:"rgba(0, 0, 0, 0.25) 0px 3px 8px"},onClick:t})}var V_=L_;c();c();var md={timestamp:Date.now(),status:"info",response:"Hello World!"};function X_(e){useEffect(()=>{e.initialMessage&&(md.response=e.initialMessage);},[]);let r=[md,...e.logs];return jsx(g,{size:"full",spill:{x:"hidden",y:"auto"},padding:"lg",corners:"md",borderColor:"outlineVariant",backgroundColor:"outlineVariant[0.1]",gap:"sm",maxHeight:"full",children:jsx(For,{each:r,children:(t,n)=>jsx(G_,{...t,scrollIntoView:n===lastIndex(r)},n)})})}function G_(e){let r={error:"error",success:"carlsbergGreen",info:"teal"};return jsxs("span",{ref:t=>{t&&e.scrollIntoView&&t.scrollIntoView();},style:{fontSize:".85rem",wordSpacing:".25rem"},children:[jsx("span",{style:{opacity:.5,wordSpacing:"normal"},children:format("date",e.timestamp,"hh:mm:ss A")}),"\xA0",jsx("span",{style:{fontWeight:"bold",color:x(r[e.status])},children:`[${e.status}]`}),"\xA0",typeof e.response=="object"&&jsxs(Fragment,{children:[jsx(xu,{labelOpacity:.75,label:e.response.tag}),"\xA0"]}),jsx("span",{style:{wordSpacing:"normal",backgroundColor:e.status==="info"?void 0:x(`${r[e.status]}[0.25]`),padding:"0px .2rem"},children:typeof e.response=="object"?e.response.message:e.response})]})}var qo=X_;function rb(e){let[r,t]=useState(e.defaultTasks||[]);return useEffect(()=>e.onSnapshot(n=>{let o=Array.isArray(n)?n:"logs"in n?n.logs:null;t(o?sort(o,"timestamp","asc"):[...r,n]);}),[]),jsxs(g,{size:"full",grid:true,gridRows:"1fr .85fr",spill:"hidden",maxHeight:"full",children:[jsx(g,{size:"full",spill:{x:"hidden",y:"auto"},gap:"lg",style:{flexShrink:0},maxHeight:"full",children:jsx(For,{each:e.relatedTaskData,children:({content:n,...o})=>jsx(cu,{item:o,info:n})})}),jsx(qo,{initialMessage:"Awaiting registration process...",logs:r})]})}var tb=rb;c();function ib(e){return jsx(xe,{...e,leadingAdornment:null,width:e.width||"20rem",backgroundColor:e.backgroundColor||"onSurface[0.1]",leadingContent:jsx(CiSearch,{size:e.searchIconSize||"1.15rem"}),placeholder:e.placeholder||"Search..."})}var Eo=ib;c();c();function cb(e){return e.error?jsx(on,{...e,tooltip:jsx("span",{children:Object.keys(e.error).map(r=>{let t=r;return jsxs("span",{children:[jsx(C,{fontWeight:"bold",text:camelCaseToLetter(t)+": "}),jsx("span",{style:{textDecoration:"underline",opacity:.75,fontWeight:"normal"},children:e.error[t]}),jsx("br",{})]})})})}):e.children}var Qo=cb;function ub(e){let r=A({defaultValue:e?.verifyError}),[t,n]=useState(e?.defaultStatus||"pending"),o=async()=>{let i=await e.onVerifyClick();if(console.log({verifyReq:i}),i.response)return n("success");r.upsert(i.error),n("error");};return jsx(xe,{...e,leadingAdornment:jsx(Qo,{wrapChildren:true,asChild:t!=="error",error:r.read(),children:jsx(Cu,{indicatorSize:".4rem",status:t})}),trailingContent:jsx(No,{onClick:o})})}var ei=ub;c();function vd(e){let r=format("name",e.name),t=({value:n,default:o={}})=>{let{fade:i=o.fade,fontSize:a=o.fontSize||e.fontSize||".85rem",fontWeight:l=o.fontWeight,lineHeight:s=o.lineHeight=a,style:u}=e.slotProps?.[n]||{};return jsx(C,{ellipsis:true,fade:i,fontSize:a,fontWeight:l,text:n==="name"?r:e.email,style:{...u||{},lineHeight:u?.lineHeight||(s in T?T[s]:s)}})};return jsxs(g,{row:true,align:"center",spill:"hidden",gap:e.columnGap??e.gap??"md",width:e.fullWidth?"full":void 0,style:e.style,children:[jsx(He,{size:e.slotProps?.avatar?.size,fallback:e.useDefaultFallback?void 0:r,src:e.picture,backgroundColor:e.slotProps?.avatar?.backgroundColor,color:e.slotProps?.avatar?.color,style:e.slotProps?.avatar?.style,fallbackStyle:e.slotProps?.avatar?.fallbackStyle}),jsxs(g,{gap:e.rowGap??e.gap,width:"full",spill:"hidden",children:[jsx(t,{value:"name"}),jsx(t,{value:"email",default:{fade:.5}})]}),e.trailingEl]})}vd.RemoveButton=e=>jsx(IconButton,{variant:"outline",rounded:"full",size:"2xs",onClick:e.onClick,children:jsx(IoRemove,{})});var pb=vd;c();function hd(e){return r=>{let[t,n]=useState(false);return jsx(E,{borderColor:r.borderColor||"onSurface[0.25]",backgroundColor:r.backgroundColor||"onSurface[0.1]",color:r.color||"onSurface",size:r.size||"xs",fontSize:r.fontSize,iconSize:r.iconSize,backdropBlur:".1rem",leadingEl:t?IoCheckmark:e.actionIcon,text:r.iconOnly?void 0:e.label(t),onClick:async()=>{if(t)return;let{error:o}=await e.handleOnClick(r);if(o)return console.error(new Error(o.message,{cause:o}));n(true),setTimeout(()=>n(false),3e3);}})}}var Ru=hd({actionIcon:ImPaste,label:e=>e?"Pasted!":"Paste",handleOnClick:async({inputRef:e,onClick:r})=>{let{error:t,response:n}=await readClipboardText();return t?{error:t}:(e?.current&&(e.current.value=n.text),r?.(n.text),{response:"success"})}}),$r=hd({actionIcon:IoCopyOutline,label:e=>e?"Copied!":"Copy",handleOnClick:async({textToCopy:e,inputRef:r,onClick:t})=>{t?.();let n=e?typeof e=="function"?e():e:r?.current?.value;if(!n)return {error:{code:"BAD_REQUEST",title:"Failed to copy text.",message:"Failed to find the text to copy."}};let{error:o}=await copyToClipboard(n);return o?{error:o}:{response:"success"}}});c();function _d(e){return r=>jsx(E,{disabled:r.disabled,size:r.size,padding:r.padding,corners:"circle",backgroundColor:r.backgroundColor||"onSurface[0.1]",color:r.color||"onSurface",fontSize:r.iconSize,onClick:r.onClick,children:jsx(Icon,{as:e,boxSize:r.iconSize})})}var tN=_d(BsPlus),nN=_d(BsDash);c();function bd(e){return r=>jsx(E,{...e.defaults,text:e.label,onClick:r.onClick})}var nd=bd({label:"Yes"}),od=bd({label:"No",defaults:{variant:"outline"}});c();var fN=Ne({preset:{leadingEl:IoMdDownload,text:"Download",trailingEl:null},optional:{backgroundColor:"sendBlue",color:"onSendBlue"}});c();c();function Db(e){let r=A({defaultValue:e.defaulValue?.token||""}),t=useRef(null),[n,o]=useState(e.defaulValue?.status),i=async()=>{let l=await e.onVerifyClick?.(r.read());return o(l),l.verified?{response:"success"}:{error:l.error}},a=l=>{r.upsert(l),e.onTokenChange?.(l);};return jsxs(g,{size:"full",spill:"hidden",maxHeight:"full",gap:"lg",children:[jsx(ei,{allowCopyText:true,allowPasteText:true,required:true,defaultStatus:n?n.verified?"success":"error":"pending",ref:t,placeholder:e.hint,defaultValue:r.read(),onPasteClick:a,onChange:a,onVerifyClick:i}),jsxs(g,{size:"full",spill:"hidden",gap:"sm",children:[n&&jsx($r,{textToCopy:n.payload}),jsx(Ko,{fullSize:true,json:n?n.payload:void 0})]})]})}var Bb=Db;c();c();function Qt(e){switch(e){case "excel":return {filled:RiFileExcel2Fill,outlined:RiFileExcel2Line};case "word":return {filled:RiFileWord2Fill,outlined:RiFileWord2Line};case "pdf":return {filled:FaFilePdf,outlined:FaRegFilePdf};case "img":return {filled:FaFileImage,outlined:FaRegFileImage};case "txt":return {filled:RiFileTextFill,outlined:RiFileTextLine};case "unknown":return {filled:AiFillFileUnknown,outlined:AiOutlineFileUnknown};default:return e}}c();c();c();c();var Sd=(R=>(R.white="#FFF",R.black="#000",R.gray="#808080",R.pdf="#F40F02",R.word="#41A5EE",R.excel="#21A366",R.img="#8d481f",R.txt="#8c61a9",R.deepSkyBlue="#00BFFF",R.lightSkyBlue="#87CEFA",R.sendBlue="#0a57d0",R.onSendBlue="#c3dfff",R.book_it="#009688",R.stickyNote="#EFAD03",R.matteBlack="#28282B",R.navyBlue="#000080",R.teal="#008080",R.paper="#ffffff",R.onPaper="#28282B",R.paperVariant="#E6E6E6",R.success="#4BB543",R.hyperlink="#2979ff",R.gold="#d4af37",R.carlsbergGreen="#17B169",R.billsRed="#C60C30",R.info="#1565c0",R.error="#C60C30",R.warning="#f9a825",R.jsonKey="#D56C75",R.string="#59A779",R.number="#D19A5A",R.boolean="#56B6C2",R.jsonBracket="#FFCA1D",R.arrayBracket="#DA68A7",R.delete="#C60C30",R.pdf_table_header="#28282B",R))(Sd||{}),Be=Sd;c();var Vb=Object.freeze({"primary[0.1]":"var(--primary__100)","primary[0.15]":"var(--primary__150)","primary[0.2]":"var(--primary__200)","primary[0.25]":"var(--primary__250)","primary[0.3]":"var(--primary__300)","primary[0.35]":"var(--primary__350)","primary[0.4]":"var(--primary__400)","primary[0.45]":"var(--primary__450)","primary[0.5]":"var(--primary__500)","primary[0.55]":"var(--primary__550)","primary[0.6]":"var(--primary__600)","primary[0.65]":"var(--primary__650)","primary[0.7]":"var(--primary__700)","primary[0.75]":"var(--primary__750)","primary[0.8]":"var(--primary__800)","primary[0.85]":"var(--primary__850)","primary[0.9]":"var(--primary__900)","primary[0.95]":"var(--primary__950)",primary:"var(--primary)","surfaceTint[0.1]":"var(--surface-tint__100)","surfaceTint[0.15]":"var(--surface-tint__150)","surfaceTint[0.2]":"var(--surface-tint__200)","surfaceTint[0.25]":"var(--surface-tint__250)","surfaceTint[0.3]":"var(--surface-tint__300)","surfaceTint[0.35]":"var(--surface-tint__350)","surfaceTint[0.4]":"var(--surface-tint__400)","surfaceTint[0.45]":"var(--surface-tint__450)","surfaceTint[0.5]":"var(--surface-tint__500)","surfaceTint[0.55]":"var(--surface-tint__550)","surfaceTint[0.6]":"var(--surface-tint__600)","surfaceTint[0.65]":"var(--surface-tint__650)","surfaceTint[0.7]":"var(--surface-tint__700)","surfaceTint[0.75]":"var(--surface-tint__750)","surfaceTint[0.8]":"var(--surface-tint__800)","surfaceTint[0.85]":"var(--surface-tint__850)","surfaceTint[0.9]":"var(--surface-tint__900)","surfaceTint[0.95]":"var(--surface-tint__950)",surfaceTint:"var(--surface-tint)","onPrimary[0.1]":"var(--on-primary__100)","onPrimary[0.15]":"var(--on-primary__150)","onPrimary[0.2]":"var(--on-primary__200)","onPrimary[0.25]":"var(--on-primary__250)","onPrimary[0.3]":"var(--on-primary__300)","onPrimary[0.35]":"var(--on-primary__350)","onPrimary[0.4]":"var(--on-primary__400)","onPrimary[0.45]":"var(--on-primary__450)","onPrimary[0.5]":"var(--on-primary__500)","onPrimary[0.55]":"var(--on-primary__550)","onPrimary[0.6]":"var(--on-primary__600)","onPrimary[0.65]":"var(--on-primary__650)","onPrimary[0.7]":"var(--on-primary__700)","onPrimary[0.75]":"var(--on-primary__750)","onPrimary[0.8]":"var(--on-primary__800)","onPrimary[0.85]":"var(--on-primary__850)","onPrimary[0.9]":"var(--on-primary__900)","onPrimary[0.95]":"var(--on-primary__950)",onPrimary:"var(--on-primary)","primaryContainer[0.1]":"var(--primary-container__100)","primaryContainer[0.15]":"var(--primary-container__150)","primaryContainer[0.2]":"var(--primary-container__200)","primaryContainer[0.25]":"var(--primary-container__250)","primaryContainer[0.3]":"var(--primary-container__300)","primaryContainer[0.35]":"var(--primary-container__350)","primaryContainer[0.4]":"var(--primary-container__400)","primaryContainer[0.45]":"var(--primary-container__450)","primaryContainer[0.5]":"var(--primary-container__500)","primaryContainer[0.55]":"var(--primary-container__550)","primaryContainer[0.6]":"var(--primary-container__600)","primaryContainer[0.65]":"var(--primary-container__650)","primaryContainer[0.7]":"var(--primary-container__700)","primaryContainer[0.75]":"var(--primary-container__750)","primaryContainer[0.8]":"var(--primary-container__800)","primaryContainer[0.85]":"var(--primary-container__850)","primaryContainer[0.9]":"var(--primary-container__900)","primaryContainer[0.95]":"var(--primary-container__950)",primaryContainer:"var(--primary-container)","onPrimaryContainer[0.1]":"var(--on-primary-container__100)","onPrimaryContainer[0.15]":"var(--on-primary-container__150)","onPrimaryContainer[0.2]":"var(--on-primary-container__200)","onPrimaryContainer[0.25]":"var(--on-primary-container__250)","onPrimaryContainer[0.3]":"var(--on-primary-container__300)","onPrimaryContainer[0.35]":"var(--on-primary-container__350)","onPrimaryContainer[0.4]":"var(--on-primary-container__400)","onPrimaryContainer[0.45]":"var(--on-primary-container__450)","onPrimaryContainer[0.5]":"var(--on-primary-container__500)","onPrimaryContainer[0.55]":"var(--on-primary-container__550)","onPrimaryContainer[0.6]":"var(--on-primary-container__600)","onPrimaryContainer[0.65]":"var(--on-primary-container__650)","onPrimaryContainer[0.7]":"var(--on-primary-container__700)","onPrimaryContainer[0.75]":"var(--on-primary-container__750)","onPrimaryContainer[0.8]":"var(--on-primary-container__800)","onPrimaryContainer[0.85]":"var(--on-primary-container__850)","onPrimaryContainer[0.9]":"var(--on-primary-container__900)","onPrimaryContainer[0.95]":"var(--on-primary-container__950)",onPrimaryContainer:"var(--on-primary-container)","secondary[0.1]":"var(--secondary__100)","secondary[0.15]":"var(--secondary__150)","secondary[0.2]":"var(--secondary__200)","secondary[0.25]":"var(--secondary__250)","secondary[0.3]":"var(--secondary__300)","secondary[0.35]":"var(--secondary__350)","secondary[0.4]":"var(--secondary__400)","secondary[0.45]":"var(--secondary__450)","secondary[0.5]":"var(--secondary__500)","secondary[0.55]":"var(--secondary__550)","secondary[0.6]":"var(--secondary__600)","secondary[0.65]":"var(--secondary__650)","secondary[0.7]":"var(--secondary__700)","secondary[0.75]":"var(--secondary__750)","secondary[0.8]":"var(--secondary__800)","secondary[0.85]":"var(--secondary__850)","secondary[0.9]":"var(--secondary__900)","secondary[0.95]":"var(--secondary__950)",secondary:"var(--secondary)","onSecondary[0.1]":"var(--on-secondary__100)","onSecondary[0.15]":"var(--on-secondary__150)","onSecondary[0.2]":"var(--on-secondary__200)","onSecondary[0.25]":"var(--on-secondary__250)","onSecondary[0.3]":"var(--on-secondary__300)","onSecondary[0.35]":"var(--on-secondary__350)","onSecondary[0.4]":"var(--on-secondary__400)","onSecondary[0.45]":"var(--on-secondary__450)","onSecondary[0.5]":"var(--on-secondary__500)","onSecondary[0.55]":"var(--on-secondary__550)","onSecondary[0.6]":"var(--on-secondary__600)","onSecondary[0.65]":"var(--on-secondary__650)","onSecondary[0.7]":"var(--on-secondary__700)","onSecondary[0.75]":"var(--on-secondary__750)","onSecondary[0.8]":"var(--on-secondary__800)","onSecondary[0.85]":"var(--on-secondary__850)","onSecondary[0.9]":"var(--on-secondary__900)","onSecondary[0.95]":"var(--on-secondary__950)",onSecondary:"var(--on-secondary)","secondaryContainer[0.1]":"var(--secondary-container__100)","secondaryContainer[0.15]":"var(--secondary-container__150)","secondaryContainer[0.2]":"var(--secondary-container__200)","secondaryContainer[0.25]":"var(--secondary-container__250)","secondaryContainer[0.3]":"var(--secondary-container__300)","secondaryContainer[0.35]":"var(--secondary-container__350)","secondaryContainer[0.4]":"var(--secondary-container__400)","secondaryContainer[0.45]":"var(--secondary-container__450)","secondaryContainer[0.5]":"var(--secondary-container__500)","secondaryContainer[0.55]":"var(--secondary-container__550)","secondaryContainer[0.6]":"var(--secondary-container__600)","secondaryContainer[0.65]":"var(--secondary-container__650)","secondaryContainer[0.7]":"var(--secondary-container__700)","secondaryContainer[0.75]":"var(--secondary-container__750)","secondaryContainer[0.8]":"var(--secondary-container__800)","secondaryContainer[0.85]":"var(--secondary-container__850)","secondaryContainer[0.9]":"var(--secondary-container__900)","secondaryContainer[0.95]":"var(--secondary-container__950)",secondaryContainer:"var(--secondary-container)","onSecondaryContainer[0.1]":"var(--on-secondary-container__100)","onSecondaryContainer[0.15]":"var(--on-secondary-container__150)","onSecondaryContainer[0.2]":"var(--on-secondary-container__200)","onSecondaryContainer[0.25]":"var(--on-secondary-container__250)","onSecondaryContainer[0.3]":"var(--on-secondary-container__300)","onSecondaryContainer[0.35]":"var(--on-secondary-container__350)","onSecondaryContainer[0.4]":"var(--on-secondary-container__400)","onSecondaryContainer[0.45]":"var(--on-secondary-container__450)","onSecondaryContainer[0.5]":"var(--on-secondary-container__500)","onSecondaryContainer[0.55]":"var(--on-secondary-container__550)","onSecondaryContainer[0.6]":"var(--on-secondary-container__600)","onSecondaryContainer[0.65]":"var(--on-secondary-container__650)","onSecondaryContainer[0.7]":"var(--on-secondary-container__700)","onSecondaryContainer[0.75]":"var(--on-secondary-container__750)","onSecondaryContainer[0.8]":"var(--on-secondary-container__800)","onSecondaryContainer[0.85]":"var(--on-secondary-container__850)","onSecondaryContainer[0.9]":"var(--on-secondary-container__900)","onSecondaryContainer[0.95]":"var(--on-secondary-container__950)",onSecondaryContainer:"var(--on-secondary-container)","tertiary[0.1]":"var(--tertiary__100)","tertiary[0.15]":"var(--tertiary__150)","tertiary[0.2]":"var(--tertiary__200)","tertiary[0.25]":"var(--tertiary__250)","tertiary[0.3]":"var(--tertiary__300)","tertiary[0.35]":"var(--tertiary__350)","tertiary[0.4]":"var(--tertiary__400)","tertiary[0.45]":"var(--tertiary__450)","tertiary[0.5]":"var(--tertiary__500)","tertiary[0.55]":"var(--tertiary__550)","tertiary[0.6]":"var(--tertiary__600)","tertiary[0.65]":"var(--tertiary__650)","tertiary[0.7]":"var(--tertiary__700)","tertiary[0.75]":"var(--tertiary__750)","tertiary[0.8]":"var(--tertiary__800)","tertiary[0.85]":"var(--tertiary__850)","tertiary[0.9]":"var(--tertiary__900)","tertiary[0.95]":"var(--tertiary__950)",tertiary:"var(--tertiary)","onTertiary[0.1]":"var(--on-tertiary__100)","onTertiary[0.15]":"var(--on-tertiary__150)","onTertiary[0.2]":"var(--on-tertiary__200)","onTertiary[0.25]":"var(--on-tertiary__250)","onTertiary[0.3]":"var(--on-tertiary__300)","onTertiary[0.35]":"var(--on-tertiary__350)","onTertiary[0.4]":"var(--on-tertiary__400)","onTertiary[0.45]":"var(--on-tertiary__450)","onTertiary[0.5]":"var(--on-tertiary__500)","onTertiary[0.55]":"var(--on-tertiary__550)","onTertiary[0.6]":"var(--on-tertiary__600)","onTertiary[0.65]":"var(--on-tertiary__650)","onTertiary[0.7]":"var(--on-tertiary__700)","onTertiary[0.75]":"var(--on-tertiary__750)","onTertiary[0.8]":"var(--on-tertiary__800)","onTertiary[0.85]":"var(--on-tertiary__850)","onTertiary[0.9]":"var(--on-tertiary__900)","onTertiary[0.95]":"var(--on-tertiary__950)",onTertiary:"var(--on-tertiary)","tertiaryContainer[0.1]":"var(--tertiary-container__100)","tertiaryContainer[0.15]":"var(--tertiary-container__150)","tertiaryContainer[0.2]":"var(--tertiary-container__200)","tertiaryContainer[0.25]":"var(--tertiary-container__250)","tertiaryContainer[0.3]":"var(--tertiary-container__300)","tertiaryContainer[0.35]":"var(--tertiary-container__350)","tertiaryContainer[0.4]":"var(--tertiary-container__400)","tertiaryContainer[0.45]":"var(--tertiary-container__450)","tertiaryContainer[0.5]":"var(--tertiary-container__500)","tertiaryContainer[0.55]":"var(--tertiary-container__550)","tertiaryContainer[0.6]":"var(--tertiary-container__600)","tertiaryContainer[0.65]":"var(--tertiary-container__650)","tertiaryContainer[0.7]":"var(--tertiary-container__700)","tertiaryContainer[0.75]":"var(--tertiary-container__750)","tertiaryContainer[0.8]":"var(--tertiary-container__800)","tertiaryContainer[0.85]":"var(--tertiary-container__850)","tertiaryContainer[0.9]":"var(--tertiary-container__900)","tertiaryContainer[0.95]":"var(--tertiary-container__950)",tertiaryContainer:"var(--tertiary-container)","onTertiaryContainer[0.1]":"var(--on-tertiary-container__100)","onTertiaryContainer[0.15]":"var(--on-tertiary-container__150)","onTertiaryContainer[0.2]":"var(--on-tertiary-container__200)","onTertiaryContainer[0.25]":"var(--on-tertiary-container__250)","onTertiaryContainer[0.3]":"var(--on-tertiary-container__300)","onTertiaryContainer[0.35]":"var(--on-tertiary-container__350)","onTertiaryContainer[0.4]":"var(--on-tertiary-container__400)","onTertiaryContainer[0.45]":"var(--on-tertiary-container__450)","onTertiaryContainer[0.5]":"var(--on-tertiary-container__500)","onTertiaryContainer[0.55]":"var(--on-tertiary-container__550)","onTertiaryContainer[0.6]":"var(--on-tertiary-container__600)","onTertiaryContainer[0.65]":"var(--on-tertiary-container__650)","onTertiaryContainer[0.7]":"var(--on-tertiary-container__700)","onTertiaryContainer[0.75]":"var(--on-tertiary-container__750)","onTertiaryContainer[0.8]":"var(--on-tertiary-container__800)","onTertiaryContainer[0.85]":"var(--on-tertiary-container__850)","onTertiaryContainer[0.9]":"var(--on-tertiary-container__900)","onTertiaryContainer[0.95]":"var(--on-tertiary-container__950)",onTertiaryContainer:"var(--on-tertiary-container)","error[0.1]":"var(--error__100)","error[0.15]":"var(--error__150)","error[0.2]":"var(--error__200)","error[0.25]":"var(--error__250)","error[0.3]":"var(--error__300)","error[0.35]":"var(--error__350)","error[0.4]":"var(--error__400)","error[0.45]":"var(--error__450)","error[0.5]":"var(--error__500)","error[0.55]":"var(--error__550)","error[0.6]":"var(--error__600)","error[0.65]":"var(--error__650)","error[0.7]":"var(--error__700)","error[0.75]":"var(--error__750)","error[0.8]":"var(--error__800)","error[0.85]":"var(--error__850)","error[0.9]":"var(--error__900)","error[0.95]":"var(--error__950)",error:"var(--error)","onError[0.1]":"var(--on-error__100)","onError[0.15]":"var(--on-error__150)","onError[0.2]":"var(--on-error__200)","onError[0.25]":"var(--on-error__250)","onError[0.3]":"var(--on-error__300)","onError[0.35]":"var(--on-error__350)","onError[0.4]":"var(--on-error__400)","onError[0.45]":"var(--on-error__450)","onError[0.5]":"var(--on-error__500)","onError[0.55]":"var(--on-error__550)","onError[0.6]":"var(--on-error__600)","onError[0.65]":"var(--on-error__650)","onError[0.7]":"var(--on-error__700)","onError[0.75]":"var(--on-error__750)","onError[0.8]":"var(--on-error__800)","onError[0.85]":"var(--on-error__850)","onError[0.9]":"var(--on-error__900)","onError[0.95]":"var(--on-error__950)",onError:"var(--on-error)","errorContainer[0.1]":"var(--error-container__100)","errorContainer[0.15]":"var(--error-container__150)","errorContainer[0.2]":"var(--error-container__200)","errorContainer[0.25]":"var(--error-container__250)","errorContainer[0.3]":"var(--error-container__300)","errorContainer[0.35]":"var(--error-container__350)","errorContainer[0.4]":"var(--error-container__400)","errorContainer[0.45]":"var(--error-container__450)","errorContainer[0.5]":"var(--error-container__500)","errorContainer[0.55]":"var(--error-container__550)","errorContainer[0.6]":"var(--error-container__600)","errorContainer[0.65]":"var(--error-container__650)","errorContainer[0.7]":"var(--error-container__700)","errorContainer[0.75]":"var(--error-container__750)","errorContainer[0.8]":"var(--error-container__800)","errorContainer[0.85]":"var(--error-container__850)","errorContainer[0.9]":"var(--error-container__900)","errorContainer[0.95]":"var(--error-container__950)",errorContainer:"var(--error-container)","onErrorContainer[0.1]":"var(--on-error-container__100)","onErrorContainer[0.15]":"var(--on-error-container__150)","onErrorContainer[0.2]":"var(--on-error-container__200)","onErrorContainer[0.25]":"var(--on-error-container__250)","onErrorContainer[0.3]":"var(--on-error-container__300)","onErrorContainer[0.35]":"var(--on-error-container__350)","onErrorContainer[0.4]":"var(--on-error-container__400)","onErrorContainer[0.45]":"var(--on-error-container__450)","onErrorContainer[0.5]":"var(--on-error-container__500)","onErrorContainer[0.55]":"var(--on-error-container__550)","onErrorContainer[0.6]":"var(--on-error-container__600)","onErrorContainer[0.65]":"var(--on-error-container__650)","onErrorContainer[0.7]":"var(--on-error-container__700)","onErrorContainer[0.75]":"var(--on-error-container__750)","onErrorContainer[0.8]":"var(--on-error-container__800)","onErrorContainer[0.85]":"var(--on-error-container__850)","onErrorContainer[0.9]":"var(--on-error-container__900)","onErrorContainer[0.95]":"var(--on-error-container__950)",onErrorContainer:"var(--on-error-container)","background[0.1]":"var(--background__100)","background[0.15]":"var(--background__150)","background[0.2]":"var(--background__200)","background[0.25]":"var(--background__250)","background[0.3]":"var(--background__300)","background[0.35]":"var(--background__350)","background[0.4]":"var(--background__400)","background[0.45]":"var(--background__450)","background[0.5]":"var(--background__500)","background[0.55]":"var(--background__550)","background[0.6]":"var(--background__600)","background[0.65]":"var(--background__650)","background[0.7]":"var(--background__700)","background[0.75]":"var(--background__750)","background[0.8]":"var(--background__800)","background[0.85]":"var(--background__850)","background[0.9]":"var(--background__900)","background[0.95]":"var(--background__950)",background:"var(--background)","onBackground[0.1]":"var(--on-background__100)","onBackground[0.15]":"var(--on-background__150)","onBackground[0.2]":"var(--on-background__200)","onBackground[0.25]":"var(--on-background__250)","onBackground[0.3]":"var(--on-background__300)","onBackground[0.35]":"var(--on-background__350)","onBackground[0.4]":"var(--on-background__400)","onBackground[0.45]":"var(--on-background__450)","onBackground[0.5]":"var(--on-background__500)","onBackground[0.55]":"var(--on-background__550)","onBackground[0.6]":"var(--on-background__600)","onBackground[0.65]":"var(--on-background__650)","onBackground[0.7]":"var(--on-background__700)","onBackground[0.75]":"var(--on-background__750)","onBackground[0.8]":"var(--on-background__800)","onBackground[0.85]":"var(--on-background__850)","onBackground[0.9]":"var(--on-background__900)","onBackground[0.95]":"var(--on-background__950)",onBackground:"var(--on-background)","surface[0.1]":"var(--surface__100)","surface[0.15]":"var(--surface__150)","surface[0.2]":"var(--surface__200)","surface[0.25]":"var(--surface__250)","surface[0.3]":"var(--surface__300)","surface[0.35]":"var(--surface__350)","surface[0.4]":"var(--surface__400)","surface[0.45]":"var(--surface__450)","surface[0.5]":"var(--surface__500)","surface[0.55]":"var(--surface__550)","surface[0.6]":"var(--surface__600)","surface[0.65]":"var(--surface__650)","surface[0.7]":"var(--surface__700)","surface[0.75]":"var(--surface__750)","surface[0.8]":"var(--surface__800)","surface[0.85]":"var(--surface__850)","surface[0.9]":"var(--surface__900)","surface[0.95]":"var(--surface__950)",surface:"var(--surface)","onSurface[0.1]":"var(--on-surface__100)","onSurface[0.15]":"var(--on-surface__150)","onSurface[0.2]":"var(--on-surface__200)","onSurface[0.25]":"var(--on-surface__250)","onSurface[0.3]":"var(--on-surface__300)","onSurface[0.35]":"var(--on-surface__350)","onSurface[0.4]":"var(--on-surface__400)","onSurface[0.45]":"var(--on-surface__450)","onSurface[0.5]":"var(--on-surface__500)","onSurface[0.55]":"var(--on-surface__550)","onSurface[0.6]":"var(--on-surface__600)","onSurface[0.65]":"var(--on-surface__650)","onSurface[0.7]":"var(--on-surface__700)","onSurface[0.75]":"var(--on-surface__750)","onSurface[0.8]":"var(--on-surface__800)","onSurface[0.85]":"var(--on-surface__850)","onSurface[0.9]":"var(--on-surface__900)","onSurface[0.95]":"var(--on-surface__950)",onSurface:"var(--on-surface)","surfaceVariant[0.1]":"var(--surface-variant__100)","surfaceVariant[0.15]":"var(--surface-variant__150)","surfaceVariant[0.2]":"var(--surface-variant__200)","surfaceVariant[0.25]":"var(--surface-variant__250)","surfaceVariant[0.3]":"var(--surface-variant__300)","surfaceVariant[0.35]":"var(--surface-variant__350)","surfaceVariant[0.4]":"var(--surface-variant__400)","surfaceVariant[0.45]":"var(--surface-variant__450)","surfaceVariant[0.5]":"var(--surface-variant__500)","surfaceVariant[0.55]":"var(--surface-variant__550)","surfaceVariant[0.6]":"var(--surface-variant__600)","surfaceVariant[0.65]":"var(--surface-variant__650)","surfaceVariant[0.7]":"var(--surface-variant__700)","surfaceVariant[0.75]":"var(--surface-variant__750)","surfaceVariant[0.8]":"var(--surface-variant__800)","surfaceVariant[0.85]":"var(--surface-variant__850)","surfaceVariant[0.9]":"var(--surface-variant__900)","surfaceVariant[0.95]":"var(--surface-variant__950)",surfaceVariant:"var(--surface-variant)","onSurfaceVariant[0.1]":"var(--on-surface-variant__100)","onSurfaceVariant[0.15]":"var(--on-surface-variant__150)","onSurfaceVariant[0.2]":"var(--on-surface-variant__200)","onSurfaceVariant[0.25]":"var(--on-surface-variant__250)","onSurfaceVariant[0.3]":"var(--on-surface-variant__300)","onSurfaceVariant[0.35]":"var(--on-surface-variant__350)","onSurfaceVariant[0.4]":"var(--on-surface-variant__400)","onSurfaceVariant[0.45]":"var(--on-surface-variant__450)","onSurfaceVariant[0.5]":"var(--on-surface-variant__500)","onSurfaceVariant[0.55]":"var(--on-surface-variant__550)","onSurfaceVariant[0.6]":"var(--on-surface-variant__600)","onSurfaceVariant[0.65]":"var(--on-surface-variant__650)","onSurfaceVariant[0.7]":"var(--on-surface-variant__700)","onSurfaceVariant[0.75]":"var(--on-surface-variant__750)","onSurfaceVariant[0.8]":"var(--on-surface-variant__800)","onSurfaceVariant[0.85]":"var(--on-surface-variant__850)","onSurfaceVariant[0.9]":"var(--on-surface-variant__900)","onSurfaceVariant[0.95]":"var(--on-surface-variant__950)",onSurfaceVariant:"var(--on-surface-variant)","outline[0.1]":"var(--outline__100)","outline[0.15]":"var(--outline__150)","outline[0.2]":"var(--outline__200)","outline[0.25]":"var(--outline__250)","outline[0.3]":"var(--outline__300)","outline[0.35]":"var(--outline__350)","outline[0.4]":"var(--outline__400)","outline[0.45]":"var(--outline__450)","outline[0.5]":"var(--outline__500)","outline[0.55]":"var(--outline__550)","outline[0.6]":"var(--outline__600)","outline[0.65]":"var(--outline__650)","outline[0.7]":"var(--outline__700)","outline[0.75]":"var(--outline__750)","outline[0.8]":"var(--outline__800)","outline[0.85]":"var(--outline__850)","outline[0.9]":"var(--outline__900)","outline[0.95]":"var(--outline__950)",outline:"var(--outline)","outlineVariant[0.1]":"var(--outline-variant__100)","outlineVariant[0.15]":"var(--outline-variant__150)","outlineVariant[0.2]":"var(--outline-variant__200)","outlineVariant[0.25]":"var(--outline-variant__250)","outlineVariant[0.3]":"var(--outline-variant__300)","outlineVariant[0.35]":"var(--outline-variant__350)","outlineVariant[0.4]":"var(--outline-variant__400)","outlineVariant[0.45]":"var(--outline-variant__450)","outlineVariant[0.5]":"var(--outline-variant__500)","outlineVariant[0.55]":"var(--outline-variant__550)","outlineVariant[0.6]":"var(--outline-variant__600)","outlineVariant[0.65]":"var(--outline-variant__650)","outlineVariant[0.7]":"var(--outline-variant__700)","outlineVariant[0.75]":"var(--outline-variant__750)","outlineVariant[0.8]":"var(--outline-variant__800)","outlineVariant[0.85]":"var(--outline-variant__850)","outlineVariant[0.9]":"var(--outline-variant__900)","outlineVariant[0.95]":"var(--outline-variant__950)",outlineVariant:"var(--outline-variant)","shadow[0.1]":"var(--shadow__100)","shadow[0.15]":"var(--shadow__150)","shadow[0.2]":"var(--shadow__200)","shadow[0.25]":"var(--shadow__250)","shadow[0.3]":"var(--shadow__300)","shadow[0.35]":"var(--shadow__350)","shadow[0.4]":"var(--shadow__400)","shadow[0.45]":"var(--shadow__450)","shadow[0.5]":"var(--shadow__500)","shadow[0.55]":"var(--shadow__550)","shadow[0.6]":"var(--shadow__600)","shadow[0.65]":"var(--shadow__650)","shadow[0.7]":"var(--shadow__700)","shadow[0.75]":"var(--shadow__750)","shadow[0.8]":"var(--shadow__800)","shadow[0.85]":"var(--shadow__850)","shadow[0.9]":"var(--shadow__900)","shadow[0.95]":"var(--shadow__950)",shadow:"var(--shadow)","scrim[0.1]":"var(--scrim__100)","scrim[0.15]":"var(--scrim__150)","scrim[0.2]":"var(--scrim__200)","scrim[0.25]":"var(--scrim__250)","scrim[0.3]":"var(--scrim__300)","scrim[0.35]":"var(--scrim__350)","scrim[0.4]":"var(--scrim__400)","scrim[0.45]":"var(--scrim__450)","scrim[0.5]":"var(--scrim__500)","scrim[0.55]":"var(--scrim__550)","scrim[0.6]":"var(--scrim__600)","scrim[0.65]":"var(--scrim__650)","scrim[0.7]":"var(--scrim__700)","scrim[0.75]":"var(--scrim__750)","scrim[0.8]":"var(--scrim__800)","scrim[0.85]":"var(--scrim__850)","scrim[0.9]":"var(--scrim__900)","scrim[0.95]":"var(--scrim__950)",scrim:"var(--scrim)","inverseSurface[0.1]":"var(--inverse-surface__100)","inverseSurface[0.15]":"var(--inverse-surface__150)","inverseSurface[0.2]":"var(--inverse-surface__200)","inverseSurface[0.25]":"var(--inverse-surface__250)","inverseSurface[0.3]":"var(--inverse-surface__300)","inverseSurface[0.35]":"var(--inverse-surface__350)","inverseSurface[0.4]":"var(--inverse-surface__400)","inverseSurface[0.45]":"var(--inverse-surface__450)","inverseSurface[0.5]":"var(--inverse-surface__500)","inverseSurface[0.55]":"var(--inverse-surface__550)","inverseSurface[0.6]":"var(--inverse-surface__600)","inverseSurface[0.65]":"var(--inverse-surface__650)","inverseSurface[0.7]":"var(--inverse-surface__700)","inverseSurface[0.75]":"var(--inverse-surface__750)","inverseSurface[0.8]":"var(--inverse-surface__800)","inverseSurface[0.85]":"var(--inverse-surface__850)","inverseSurface[0.9]":"var(--inverse-surface__900)","inverseSurface[0.95]":"var(--inverse-surface__950)",inverseSurface:"var(--inverse-surface)","inverseOnSurface[0.1]":"var(--inverse-on-surface__100)","inverseOnSurface[0.15]":"var(--inverse-on-surface__150)","inverseOnSurface[0.2]":"var(--inverse-on-surface__200)","inverseOnSurface[0.25]":"var(--inverse-on-surface__250)","inverseOnSurface[0.3]":"var(--inverse-on-surface__300)","inverseOnSurface[0.35]":"var(--inverse-on-surface__350)","inverseOnSurface[0.4]":"var(--inverse-on-surface__400)","inverseOnSurface[0.45]":"var(--inverse-on-surface__450)","inverseOnSurface[0.5]":"var(--inverse-on-surface__500)","inverseOnSurface[0.55]":"var(--inverse-on-surface__550)","inverseOnSurface[0.6]":"var(--inverse-on-surface__600)","inverseOnSurface[0.65]":"var(--inverse-on-surface__650)","inverseOnSurface[0.7]":"var(--inverse-on-surface__700)","inverseOnSurface[0.75]":"var(--inverse-on-surface__750)","inverseOnSurface[0.8]":"var(--inverse-on-surface__800)","inverseOnSurface[0.85]":"var(--inverse-on-surface__850)","inverseOnSurface[0.9]":"var(--inverse-on-surface__900)","inverseOnSurface[0.95]":"var(--inverse-on-surface__950)",inverseOnSurface:"var(--inverse-on-surface)","inversePrimary[0.1]":"var(--inverse-primary__100)","inversePrimary[0.15]":"var(--inverse-primary__150)","inversePrimary[0.2]":"var(--inverse-primary__200)","inversePrimary[0.25]":"var(--inverse-primary__250)","inversePrimary[0.3]":"var(--inverse-primary__300)","inversePrimary[0.35]":"var(--inverse-primary__350)","inversePrimary[0.4]":"var(--inverse-primary__400)","inversePrimary[0.45]":"var(--inverse-primary__450)","inversePrimary[0.5]":"var(--inverse-primary__500)","inversePrimary[0.55]":"var(--inverse-primary__550)","inversePrimary[0.6]":"var(--inverse-primary__600)","inversePrimary[0.65]":"var(--inverse-primary__650)","inversePrimary[0.7]":"var(--inverse-primary__700)","inversePrimary[0.75]":"var(--inverse-primary__750)","inversePrimary[0.8]":"var(--inverse-primary__800)","inversePrimary[0.85]":"var(--inverse-primary__850)","inversePrimary[0.9]":"var(--inverse-primary__900)","inversePrimary[0.95]":"var(--inverse-primary__950)",inversePrimary:"var(--inverse-primary)","primaryFixed[0.1]":"var(--primary-fixed__100)","primaryFixed[0.15]":"var(--primary-fixed__150)","primaryFixed[0.2]":"var(--primary-fixed__200)","primaryFixed[0.25]":"var(--primary-fixed__250)","primaryFixed[0.3]":"var(--primary-fixed__300)","primaryFixed[0.35]":"var(--primary-fixed__350)","primaryFixed[0.4]":"var(--primary-fixed__400)","primaryFixed[0.45]":"var(--primary-fixed__450)","primaryFixed[0.5]":"var(--primary-fixed__500)","primaryFixed[0.55]":"var(--primary-fixed__550)","primaryFixed[0.6]":"var(--primary-fixed__600)","primaryFixed[0.65]":"var(--primary-fixed__650)","primaryFixed[0.7]":"var(--primary-fixed__700)","primaryFixed[0.75]":"var(--primary-fixed__750)","primaryFixed[0.8]":"var(--primary-fixed__800)","primaryFixed[0.85]":"var(--primary-fixed__850)","primaryFixed[0.9]":"var(--primary-fixed__900)","primaryFixed[0.95]":"var(--primary-fixed__950)",primaryFixed:"var(--primary-fixed)","onPrimaryFixed[0.1]":"var(--on-primary-fixed__100)","onPrimaryFixed[0.15]":"var(--on-primary-fixed__150)","onPrimaryFixed[0.2]":"var(--on-primary-fixed__200)","onPrimaryFixed[0.25]":"var(--on-primary-fixed__250)","onPrimaryFixed[0.3]":"var(--on-primary-fixed__300)","onPrimaryFixed[0.35]":"var(--on-primary-fixed__350)","onPrimaryFixed[0.4]":"var(--on-primary-fixed__400)","onPrimaryFixed[0.45]":"var(--on-primary-fixed__450)","onPrimaryFixed[0.5]":"var(--on-primary-fixed__500)","onPrimaryFixed[0.55]":"var(--on-primary-fixed__550)","onPrimaryFixed[0.6]":"var(--on-primary-fixed__600)","onPrimaryFixed[0.65]":"var(--on-primary-fixed__650)","onPrimaryFixed[0.7]":"var(--on-primary-fixed__700)","onPrimaryFixed[0.75]":"var(--on-primary-fixed__750)","onPrimaryFixed[0.8]":"var(--on-primary-fixed__800)","onPrimaryFixed[0.85]":"var(--on-primary-fixed__850)","onPrimaryFixed[0.9]":"var(--on-primary-fixed__900)","onPrimaryFixed[0.95]":"var(--on-primary-fixed__950)",onPrimaryFixed:"var(--on-primary-fixed)","primaryFixedDim[0.1]":"var(--primary-fixed-dim__100)","primaryFixedDim[0.15]":"var(--primary-fixed-dim__150)","primaryFixedDim[0.2]":"var(--primary-fixed-dim__200)","primaryFixedDim[0.25]":"var(--primary-fixed-dim__250)","primaryFixedDim[0.3]":"var(--primary-fixed-dim__300)","primaryFixedDim[0.35]":"var(--primary-fixed-dim__350)","primaryFixedDim[0.4]":"var(--primary-fixed-dim__400)","primaryFixedDim[0.45]":"var(--primary-fixed-dim__450)","primaryFixedDim[0.5]":"var(--primary-fixed-dim__500)","primaryFixedDim[0.55]":"var(--primary-fixed-dim__550)","primaryFixedDim[0.6]":"var(--primary-fixed-dim__600)","primaryFixedDim[0.65]":"var(--primary-fixed-dim__650)","primaryFixedDim[0.7]":"var(--primary-fixed-dim__700)","primaryFixedDim[0.75]":"var(--primary-fixed-dim__750)","primaryFixedDim[0.8]":"var(--primary-fixed-dim__800)","primaryFixedDim[0.85]":"var(--primary-fixed-dim__850)","primaryFixedDim[0.9]":"var(--primary-fixed-dim__900)","primaryFixedDim[0.95]":"var(--primary-fixed-dim__950)",primaryFixedDim:"var(--primary-fixed-dim)","onPrimaryFixedVariant[0.1]":"var(--on-primary-fixed-variant__100)","onPrimaryFixedVariant[0.15]":"var(--on-primary-fixed-variant__150)","onPrimaryFixedVariant[0.2]":"var(--on-primary-fixed-variant__200)","onPrimaryFixedVariant[0.25]":"var(--on-primary-fixed-variant__250)","onPrimaryFixedVariant[0.3]":"var(--on-primary-fixed-variant__300)","onPrimaryFixedVariant[0.35]":"var(--on-primary-fixed-variant__350)","onPrimaryFixedVariant[0.4]":"var(--on-primary-fixed-variant__400)","onPrimaryFixedVariant[0.45]":"var(--on-primary-fixed-variant__450)","onPrimaryFixedVariant[0.5]":"var(--on-primary-fixed-variant__500)","onPrimaryFixedVariant[0.55]":"var(--on-primary-fixed-variant__550)","onPrimaryFixedVariant[0.6]":"var(--on-primary-fixed-variant__600)","onPrimaryFixedVariant[0.65]":"var(--on-primary-fixed-variant__650)","onPrimaryFixedVariant[0.7]":"var(--on-primary-fixed-variant__700)","onPrimaryFixedVariant[0.75]":"var(--on-primary-fixed-variant__750)","onPrimaryFixedVariant[0.8]":"var(--on-primary-fixed-variant__800)","onPrimaryFixedVariant[0.85]":"var(--on-primary-fixed-variant__850)","onPrimaryFixedVariant[0.9]":"var(--on-primary-fixed-variant__900)","onPrimaryFixedVariant[0.95]":"var(--on-primary-fixed-variant__950)",onPrimaryFixedVariant:"var(--on-primary-fixed-variant)","secondaryFixed[0.1]":"var(--secondary-fixed__100)","secondaryFixed[0.15]":"var(--secondary-fixed__150)","secondaryFixed[0.2]":"var(--secondary-fixed__200)","secondaryFixed[0.25]":"var(--secondary-fixed__250)","secondaryFixed[0.3]":"var(--secondary-fixed__300)","secondaryFixed[0.35]":"var(--secondary-fixed__350)","secondaryFixed[0.4]":"var(--secondary-fixed__400)","secondaryFixed[0.45]":"var(--secondary-fixed__450)","secondaryFixed[0.5]":"var(--secondary-fixed__500)","secondaryFixed[0.55]":"var(--secondary-fixed__550)","secondaryFixed[0.6]":"var(--secondary-fixed__600)","secondaryFixed[0.65]":"var(--secondary-fixed__650)","secondaryFixed[0.7]":"var(--secondary-fixed__700)","secondaryFixed[0.75]":"var(--secondary-fixed__750)","secondaryFixed[0.8]":"var(--secondary-fixed__800)","secondaryFixed[0.85]":"var(--secondary-fixed__850)","secondaryFixed[0.9]":"var(--secondary-fixed__900)","secondaryFixed[0.95]":"var(--secondary-fixed__950)",secondaryFixed:"var(--secondary-fixed)","onSecondaryFixed[0.1]":"var(--on-secondary-fixed__100)","onSecondaryFixed[0.15]":"var(--on-secondary-fixed__150)","onSecondaryFixed[0.2]":"var(--on-secondary-fixed__200)","onSecondaryFixed[0.25]":"var(--on-secondary-fixed__250)","onSecondaryFixed[0.3]":"var(--on-secondary-fixed__300)","onSecondaryFixed[0.35]":"var(--on-secondary-fixed__350)","onSecondaryFixed[0.4]":"var(--on-secondary-fixed__400)","onSecondaryFixed[0.45]":"var(--on-secondary-fixed__450)","onSecondaryFixed[0.5]":"var(--on-secondary-fixed__500)","onSecondaryFixed[0.55]":"var(--on-secondary-fixed__550)","onSecondaryFixed[0.6]":"var(--on-secondary-fixed__600)","onSecondaryFixed[0.65]":"var(--on-secondary-fixed__650)","onSecondaryFixed[0.7]":"var(--on-secondary-fixed__700)","onSecondaryFixed[0.75]":"var(--on-secondary-fixed__750)","onSecondaryFixed[0.8]":"var(--on-secondary-fixed__800)","onSecondaryFixed[0.85]":"var(--on-secondary-fixed__850)","onSecondaryFixed[0.9]":"var(--on-secondary-fixed__900)","onSecondaryFixed[0.95]":"var(--on-secondary-fixed__950)",onSecondaryFixed:"var(--on-secondary-fixed)","secondaryFixedDim[0.1]":"var(--secondary-fixed-dim__100)","secondaryFixedDim[0.15]":"var(--secondary-fixed-dim__150)","secondaryFixedDim[0.2]":"var(--secondary-fixed-dim__200)","secondaryFixedDim[0.25]":"var(--secondary-fixed-dim__250)","secondaryFixedDim[0.3]":"var(--secondary-fixed-dim__300)","secondaryFixedDim[0.35]":"var(--secondary-fixed-dim__350)","secondaryFixedDim[0.4]":"var(--secondary-fixed-dim__400)","secondaryFixedDim[0.45]":"var(--secondary-fixed-dim__450)","secondaryFixedDim[0.5]":"var(--secondary-fixed-dim__500)","secondaryFixedDim[0.55]":"var(--secondary-fixed-dim__550)","secondaryFixedDim[0.6]":"var(--secondary-fixed-dim__600)","secondaryFixedDim[0.65]":"var(--secondary-fixed-dim__650)","secondaryFixedDim[0.7]":"var(--secondary-fixed-dim__700)","secondaryFixedDim[0.75]":"var(--secondary-fixed-dim__750)","secondaryFixedDim[0.8]":"var(--secondary-fixed-dim__800)","secondaryFixedDim[0.85]":"var(--secondary-fixed-dim__850)","secondaryFixedDim[0.9]":"var(--secondary-fixed-dim__900)","secondaryFixedDim[0.95]":"var(--secondary-fixed-dim__950)",secondaryFixedDim:"var(--secondary-fixed-dim)","onSecondaryFixedVariant[0.1]":"var(--on-secondary-fixed-variant__100)","onSecondaryFixedVariant[0.15]":"var(--on-secondary-fixed-variant__150)","onSecondaryFixedVariant[0.2]":"var(--on-secondary-fixed-variant__200)","onSecondaryFixedVariant[0.25]":"var(--on-secondary-fixed-variant__250)","onSecondaryFixedVariant[0.3]":"var(--on-secondary-fixed-variant__300)","onSecondaryFixedVariant[0.35]":"var(--on-secondary-fixed-variant__350)","onSecondaryFixedVariant[0.4]":"var(--on-secondary-fixed-variant__400)","onSecondaryFixedVariant[0.45]":"var(--on-secondary-fixed-variant__450)","onSecondaryFixedVariant[0.5]":"var(--on-secondary-fixed-variant__500)","onSecondaryFixedVariant[0.55]":"var(--on-secondary-fixed-variant__550)","onSecondaryFixedVariant[0.6]":"var(--on-secondary-fixed-variant__600)","onSecondaryFixedVariant[0.65]":"var(--on-secondary-fixed-variant__650)","onSecondaryFixedVariant[0.7]":"var(--on-secondary-fixed-variant__700)","onSecondaryFixedVariant[0.75]":"var(--on-secondary-fixed-variant__750)","onSecondaryFixedVariant[0.8]":"var(--on-secondary-fixed-variant__800)","onSecondaryFixedVariant[0.85]":"var(--on-secondary-fixed-variant__850)","onSecondaryFixedVariant[0.9]":"var(--on-secondary-fixed-variant__900)","onSecondaryFixedVariant[0.95]":"var(--on-secondary-fixed-variant__950)",onSecondaryFixedVariant:"var(--on-secondary-fixed-variant)","tertiaryFixed[0.1]":"var(--tertiary-fixed__100)","tertiaryFixed[0.15]":"var(--tertiary-fixed__150)","tertiaryFixed[0.2]":"var(--tertiary-fixed__200)","tertiaryFixed[0.25]":"var(--tertiary-fixed__250)","tertiaryFixed[0.3]":"var(--tertiary-fixed__300)","tertiaryFixed[0.35]":"var(--tertiary-fixed__350)","tertiaryFixed[0.4]":"var(--tertiary-fixed__400)","tertiaryFixed[0.45]":"var(--tertiary-fixed__450)","tertiaryFixed[0.5]":"var(--tertiary-fixed__500)","tertiaryFixed[0.55]":"var(--tertiary-fixed__550)","tertiaryFixed[0.6]":"var(--tertiary-fixed__600)","tertiaryFixed[0.65]":"var(--tertiary-fixed__650)","tertiaryFixed[0.7]":"var(--tertiary-fixed__700)","tertiaryFixed[0.75]":"var(--tertiary-fixed__750)","tertiaryFixed[0.8]":"var(--tertiary-fixed__800)","tertiaryFixed[0.85]":"var(--tertiary-fixed__850)","tertiaryFixed[0.9]":"var(--tertiary-fixed__900)","tertiaryFixed[0.95]":"var(--tertiary-fixed__950)",tertiaryFixed:"var(--tertiary-fixed)","onTertiaryFixed[0.1]":"var(--on-tertiary-fixed__100)","onTertiaryFixed[0.15]":"var(--on-tertiary-fixed__150)","onTertiaryFixed[0.2]":"var(--on-tertiary-fixed__200)","onTertiaryFixed[0.25]":"var(--on-tertiary-fixed__250)","onTertiaryFixed[0.3]":"var(--on-tertiary-fixed__300)","onTertiaryFixed[0.35]":"var(--on-tertiary-fixed__350)","onTertiaryFixed[0.4]":"var(--on-tertiary-fixed__400)","onTertiaryFixed[0.45]":"var(--on-tertiary-fixed__450)","onTertiaryFixed[0.5]":"var(--on-tertiary-fixed__500)","onTertiaryFixed[0.55]":"var(--on-tertiary-fixed__550)","onTertiaryFixed[0.6]":"var(--on-tertiary-fixed__600)","onTertiaryFixed[0.65]":"var(--on-tertiary-fixed__650)","onTertiaryFixed[0.7]":"var(--on-tertiary-fixed__700)","onTertiaryFixed[0.75]":"var(--on-tertiary-fixed__750)","onTertiaryFixed[0.8]":"var(--on-tertiary-fixed__800)","onTertiaryFixed[0.85]":"var(--on-tertiary-fixed__850)","onTertiaryFixed[0.9]":"var(--on-tertiary-fixed__900)","onTertiaryFixed[0.95]":"var(--on-tertiary-fixed__950)",onTertiaryFixed:"var(--on-tertiary-fixed)","tertiaryFixedDim[0.1]":"var(--tertiary-fixed-dim__100)","tertiaryFixedDim[0.15]":"var(--tertiary-fixed-dim__150)","tertiaryFixedDim[0.2]":"var(--tertiary-fixed-dim__200)","tertiaryFixedDim[0.25]":"var(--tertiary-fixed-dim__250)","tertiaryFixedDim[0.3]":"var(--tertiary-fixed-dim__300)","tertiaryFixedDim[0.35]":"var(--tertiary-fixed-dim__350)","tertiaryFixedDim[0.4]":"var(--tertiary-fixed-dim__400)","tertiaryFixedDim[0.45]":"var(--tertiary-fixed-dim__450)","tertiaryFixedDim[0.5]":"var(--tertiary-fixed-dim__500)","tertiaryFixedDim[0.55]":"var(--tertiary-fixed-dim__550)","tertiaryFixedDim[0.6]":"var(--tertiary-fixed-dim__600)","tertiaryFixedDim[0.65]":"var(--tertiary-fixed-dim__650)","tertiaryFixedDim[0.7]":"var(--tertiary-fixed-dim__700)","tertiaryFixedDim[0.75]":"var(--tertiary-fixed-dim__750)","tertiaryFixedDim[0.8]":"var(--tertiary-fixed-dim__800)","tertiaryFixedDim[0.85]":"var(--tertiary-fixed-dim__850)","tertiaryFixedDim[0.9]":"var(--tertiary-fixed-dim__900)","tertiaryFixedDim[0.95]":"var(--tertiary-fixed-dim__950)",tertiaryFixedDim:"var(--tertiary-fixed-dim)","onTertiaryFixedVariant[0.1]":"var(--on-tertiary-fixed-variant__100)","onTertiaryFixedVariant[0.15]":"var(--on-tertiary-fixed-variant__150)","onTertiaryFixedVariant[0.2]":"var(--on-tertiary-fixed-variant__200)","onTertiaryFixedVariant[0.25]":"var(--on-tertiary-fixed-variant__250)","onTertiaryFixedVariant[0.3]":"var(--on-tertiary-fixed-variant__300)","onTertiaryFixedVariant[0.35]":"var(--on-tertiary-fixed-variant__350)","onTertiaryFixedVariant[0.4]":"var(--on-tertiary-fixed-variant__400)","onTertiaryFixedVariant[0.45]":"var(--on-tertiary-fixed-variant__450)","onTertiaryFixedVariant[0.5]":"var(--on-tertiary-fixed-variant__500)","onTertiaryFixedVariant[0.55]":"var(--on-tertiary-fixed-variant__550)","onTertiaryFixedVariant[0.6]":"var(--on-tertiary-fixed-variant__600)","onTertiaryFixedVariant[0.65]":"var(--on-tertiary-fixed-variant__650)","onTertiaryFixedVariant[0.7]":"var(--on-tertiary-fixed-variant__700)","onTertiaryFixedVariant[0.75]":"var(--on-tertiary-fixed-variant__750)","onTertiaryFixedVariant[0.8]":"var(--on-tertiary-fixed-variant__800)","onTertiaryFixedVariant[0.85]":"var(--on-tertiary-fixed-variant__850)","onTertiaryFixedVariant[0.9]":"var(--on-tertiary-fixed-variant__900)","onTertiaryFixedVariant[0.95]":"var(--on-tertiary-fixed-variant__950)",onTertiaryFixedVariant:"var(--on-tertiary-fixed-variant)","surfaceDim[0.1]":"var(--surface-dim__100)","surfaceDim[0.15]":"var(--surface-dim__150)","surfaceDim[0.2]":"var(--surface-dim__200)","surfaceDim[0.25]":"var(--surface-dim__250)","surfaceDim[0.3]":"var(--surface-dim__300)","surfaceDim[0.35]":"var(--surface-dim__350)","surfaceDim[0.4]":"var(--surface-dim__400)","surfaceDim[0.45]":"var(--surface-dim__450)","surfaceDim[0.5]":"var(--surface-dim__500)","surfaceDim[0.55]":"var(--surface-dim__550)","surfaceDim[0.6]":"var(--surface-dim__600)","surfaceDim[0.65]":"var(--surface-dim__650)","surfaceDim[0.7]":"var(--surface-dim__700)","surfaceDim[0.75]":"var(--surface-dim__750)","surfaceDim[0.8]":"var(--surface-dim__800)","surfaceDim[0.85]":"var(--surface-dim__850)","surfaceDim[0.9]":"var(--surface-dim__900)","surfaceDim[0.95]":"var(--surface-dim__950)",surfaceDim:"var(--surface-dim)","surfaceBright[0.1]":"var(--surface-bright__100)","surfaceBright[0.15]":"var(--surface-bright__150)","surfaceBright[0.2]":"var(--surface-bright__200)","surfaceBright[0.25]":"var(--surface-bright__250)","surfaceBright[0.3]":"var(--surface-bright__300)","surfaceBright[0.35]":"var(--surface-bright__350)","surfaceBright[0.4]":"var(--surface-bright__400)","surfaceBright[0.45]":"var(--surface-bright__450)","surfaceBright[0.5]":"var(--surface-bright__500)","surfaceBright[0.55]":"var(--surface-bright__550)","surfaceBright[0.6]":"var(--surface-bright__600)","surfaceBright[0.65]":"var(--surface-bright__650)","surfaceBright[0.7]":"var(--surface-bright__700)","surfaceBright[0.75]":"var(--surface-bright__750)","surfaceBright[0.8]":"var(--surface-bright__800)","surfaceBright[0.85]":"var(--surface-bright__850)","surfaceBright[0.9]":"var(--surface-bright__900)","surfaceBright[0.95]":"var(--surface-bright__950)",surfaceBright:"var(--surface-bright)","surfaceContainerLowest[0.1]":"var(--surface-container-lowest__100)","surfaceContainerLowest[0.15]":"var(--surface-container-lowest__150)","surfaceContainerLowest[0.2]":"var(--surface-container-lowest__200)","surfaceContainerLowest[0.25]":"var(--surface-container-lowest__250)","surfaceContainerLowest[0.3]":"var(--surface-container-lowest__300)","surfaceContainerLowest[0.35]":"var(--surface-container-lowest__350)","surfaceContainerLowest[0.4]":"var(--surface-container-lowest__400)","surfaceContainerLowest[0.45]":"var(--surface-container-lowest__450)","surfaceContainerLowest[0.5]":"var(--surface-container-lowest__500)","surfaceContainerLowest[0.55]":"var(--surface-container-lowest__550)","surfaceContainerLowest[0.6]":"var(--surface-container-lowest__600)","surfaceContainerLowest[0.65]":"var(--surface-container-lowest__650)","surfaceContainerLowest[0.7]":"var(--surface-container-lowest__700)","surfaceContainerLowest[0.75]":"var(--surface-container-lowest__750)","surfaceContainerLowest[0.8]":"var(--surface-container-lowest__800)","surfaceContainerLowest[0.85]":"var(--surface-container-lowest__850)","surfaceContainerLowest[0.9]":"var(--surface-container-lowest__900)","surfaceContainerLowest[0.95]":"var(--surface-container-lowest__950)",surfaceContainerLowest:"var(--surface-container-lowest)","surfaceContainerLow[0.1]":"var(--surface-container-low__100)","surfaceContainerLow[0.15]":"var(--surface-container-low__150)","surfaceContainerLow[0.2]":"var(--surface-container-low__200)","surfaceContainerLow[0.25]":"var(--surface-container-low__250)","surfaceContainerLow[0.3]":"var(--surface-container-low__300)","surfaceContainerLow[0.35]":"var(--surface-container-low__350)","surfaceContainerLow[0.4]":"var(--surface-container-low__400)","surfaceContainerLow[0.45]":"var(--surface-container-low__450)","surfaceContainerLow[0.5]":"var(--surface-container-low__500)","surfaceContainerLow[0.55]":"var(--surface-container-low__550)","surfaceContainerLow[0.6]":"var(--surface-container-low__600)","surfaceContainerLow[0.65]":"var(--surface-container-low__650)","surfaceContainerLow[0.7]":"var(--surface-container-low__700)","surfaceContainerLow[0.75]":"var(--surface-container-low__750)","surfaceContainerLow[0.8]":"var(--surface-container-low__800)","surfaceContainerLow[0.85]":"var(--surface-container-low__850)","surfaceContainerLow[0.9]":"var(--surface-container-low__900)","surfaceContainerLow[0.95]":"var(--surface-container-low__950)",surfaceContainerLow:"var(--surface-container-low)","surfaceContainer[0.1]":"var(--surface-container__100)","surfaceContainer[0.15]":"var(--surface-container__150)","surfaceContainer[0.2]":"var(--surface-container__200)","surfaceContainer[0.25]":"var(--surface-container__250)","surfaceContainer[0.3]":"var(--surface-container__300)","surfaceContainer[0.35]":"var(--surface-container__350)","surfaceContainer[0.4]":"var(--surface-container__400)","surfaceContainer[0.45]":"var(--surface-container__450)","surfaceContainer[0.5]":"var(--surface-container__500)","surfaceContainer[0.55]":"var(--surface-container__550)","surfaceContainer[0.6]":"var(--surface-container__600)","surfaceContainer[0.65]":"var(--surface-container__650)","surfaceContainer[0.7]":"var(--surface-container__700)","surfaceContainer[0.75]":"var(--surface-container__750)","surfaceContainer[0.8]":"var(--surface-container__800)","surfaceContainer[0.85]":"var(--surface-container__850)","surfaceContainer[0.9]":"var(--surface-container__900)","surfaceContainer[0.95]":"var(--surface-container__950)",surfaceContainer:"var(--surface-container)","surfaceContainerHigh[0.1]":"var(--surface-container-high__100)","surfaceContainerHigh[0.15]":"var(--surface-container-high__150)","surfaceContainerHigh[0.2]":"var(--surface-container-high__200)","surfaceContainerHigh[0.25]":"var(--surface-container-high__250)","surfaceContainerHigh[0.3]":"var(--surface-container-high__300)","surfaceContainerHigh[0.35]":"var(--surface-container-high__350)","surfaceContainerHigh[0.4]":"var(--surface-container-high__400)","surfaceContainerHigh[0.45]":"var(--surface-container-high__450)","surfaceContainerHigh[0.5]":"var(--surface-container-high__500)","surfaceContainerHigh[0.55]":"var(--surface-container-high__550)","surfaceContainerHigh[0.6]":"var(--surface-container-high__600)","surfaceContainerHigh[0.65]":"var(--surface-container-high__650)","surfaceContainerHigh[0.7]":"var(--surface-container-high__700)","surfaceContainerHigh[0.75]":"var(--surface-container-high__750)","surfaceContainerHigh[0.8]":"var(--surface-container-high__800)","surfaceContainerHigh[0.85]":"var(--surface-container-high__850)","surfaceContainerHigh[0.9]":"var(--surface-container-high__900)","surfaceContainerHigh[0.95]":"var(--surface-container-high__950)",surfaceContainerHigh:"var(--surface-container-high)","surfaceContainerHighest[0.1]":"var(--surface-container-highest__100)","surfaceContainerHighest[0.15]":"var(--surface-container-highest__150)","surfaceContainerHighest[0.2]":"var(--surface-container-highest__200)","surfaceContainerHighest[0.25]":"var(--surface-container-highest__250)","surfaceContainerHighest[0.3]":"var(--surface-container-highest__300)","surfaceContainerHighest[0.35]":"var(--surface-container-highest__350)","surfaceContainerHighest[0.4]":"var(--surface-container-highest__400)","surfaceContainerHighest[0.45]":"var(--surface-container-highest__450)","surfaceContainerHighest[0.5]":"var(--surface-container-highest__500)","surfaceContainerHighest[0.55]":"var(--surface-container-highest__550)","surfaceContainerHighest[0.6]":"var(--surface-container-highest__600)","surfaceContainerHighest[0.65]":"var(--surface-container-highest__650)","surfaceContainerHighest[0.7]":"var(--surface-container-highest__700)","surfaceContainerHighest[0.75]":"var(--surface-container-highest__750)","surfaceContainerHighest[0.8]":"var(--surface-container-highest__800)","surfaceContainerHighest[0.85]":"var(--surface-container-highest__850)","surfaceContainerHighest[0.9]":"var(--surface-container-highest__900)","surfaceContainerHighest[0.95]":"var(--surface-container-highest__950)",surfaceContainerHighest:"var(--surface-container-highest)","themelessSurface[0.1]":"var(--themeless-surface__100)","themelessSurface[0.15]":"var(--themeless-surface__150)","themelessSurface[0.2]":"var(--themeless-surface__200)","themelessSurface[0.25]":"var(--themeless-surface__250)","themelessSurface[0.3]":"var(--themeless-surface__300)","themelessSurface[0.35]":"var(--themeless-surface__350)","themelessSurface[0.4]":"var(--themeless-surface__400)","themelessSurface[0.45]":"var(--themeless-surface__450)","themelessSurface[0.5]":"var(--themeless-surface__500)","themelessSurface[0.55]":"var(--themeless-surface__550)","themelessSurface[0.6]":"var(--themeless-surface__600)","themelessSurface[0.65]":"var(--themeless-surface__650)","themelessSurface[0.7]":"var(--themeless-surface__700)","themelessSurface[0.75]":"var(--themeless-surface__750)","themelessSurface[0.8]":"var(--themeless-surface__800)","themelessSurface[0.85]":"var(--themeless-surface__850)","themelessSurface[0.9]":"var(--themeless-surface__900)","themelessSurface[0.95]":"var(--themeless-surface__950)",themelessSurface:"var(--themeless-surface)","themelessOnSurface[0.1]":"var(--themeless-on-surface__100)","themelessOnSurface[0.15]":"var(--themeless-on-surface__150)","themelessOnSurface[0.2]":"var(--themeless-on-surface__200)","themelessOnSurface[0.25]":"var(--themeless-on-surface__250)","themelessOnSurface[0.3]":"var(--themeless-on-surface__300)","themelessOnSurface[0.35]":"var(--themeless-on-surface__350)","themelessOnSurface[0.4]":"var(--themeless-on-surface__400)","themelessOnSurface[0.45]":"var(--themeless-on-surface__450)","themelessOnSurface[0.5]":"var(--themeless-on-surface__500)","themelessOnSurface[0.55]":"var(--themeless-on-surface__550)","themelessOnSurface[0.6]":"var(--themeless-on-surface__600)","themelessOnSurface[0.65]":"var(--themeless-on-surface__650)","themelessOnSurface[0.7]":"var(--themeless-on-surface__700)","themelessOnSurface[0.75]":"var(--themeless-on-surface__750)","themelessOnSurface[0.8]":"var(--themeless-on-surface__800)","themelessOnSurface[0.85]":"var(--themeless-on-surface__850)","themelessOnSurface[0.9]":"var(--themeless-on-surface__900)","themelessOnSurface[0.95]":"var(--themeless-on-surface__950)",themelessOnSurface:"var(--themeless-on-surface)","seed[0.1]":"var(--seed__100)","seed[0.15]":"var(--seed__150)","seed[0.2]":"var(--seed__200)","seed[0.25]":"var(--seed__250)","seed[0.3]":"var(--seed__300)","seed[0.35]":"var(--seed__350)","seed[0.4]":"var(--seed__400)","seed[0.45]":"var(--seed__450)","seed[0.5]":"var(--seed__500)","seed[0.55]":"var(--seed__550)","seed[0.6]":"var(--seed__600)","seed[0.65]":"var(--seed__650)","seed[0.7]":"var(--seed__700)","seed[0.75]":"var(--seed__750)","seed[0.8]":"var(--seed__800)","seed[0.85]":"var(--seed__850)","seed[0.9]":"var(--seed__900)","seed[0.95]":"var(--seed__950)",seed:"var(--seed)"}),pe=Vb;c();c();function JA(e,r){useEffect(()=>{let t=new AbortController;return e(),()=>{t.abort();}},r);}c();function Xu(e,r){let t=useRef(true);useEffect(()=>{if(t.current)t.current=false;else return e()},r);}c();function nU(e){let[r,t]=useState({}),n=k(e.style);n={...n,...e?.inject?.()||{}};let o=document.getElementById("root")??document.body;return useEffect(()=>{let i=e.tag||"div",a=document.createElement(i),s=(Array.isArray(e.style.children)?e.style.children:[e.style.children]).map(p=>{let h=document.createElement(i);return h.innerHTML=Gb.renderToStaticMarkup(p),h});Object.assign(a.style,{...n,visibility:"hidden"}),s.forEach(p=>a.appendChild(p)),o.appendChild(a);let u=getComputedStyle(a),f=Object.keys(n).filter(p=>p in u&&typeof u[p]=="string").map(p=>{let y=u[p];return [p,p==="opacity"?y.toString():y===0?"0px":y]});t(Object.fromEntries(f)),o.removeChild(a);},[e.style]),{style:r}}c();function rd(e){let[r,t]=useState(e);return {value:r,isOpen:!!r,show:(...n)=>{n[0]===void 0&&typeof r!="boolean"||t(typeof r=="boolean"?true:n[0]);},hide:()=>{t(typeof r=="boolean"?false:void 0);}}}c();c();function G(){let[,e]=useState(false);return {triggerRerender:()=>e(r=>!r)}}function A(e){let r=e?.persist?.storage==="local-storage"?localStorage:sessionStorage,t=new Error("Failed to store value of type 'function', in useStore."),n=castReturn(e?.defaultValue),{triggerRerender:o}=G(),i=useRef({fresh:(()=>{if(typeof n=="function")throw console.error(t),t;if(e?.persist?.key){let p=JSON.parse(r.getItem(e.persist.key));return p??n}return n})(),stale:null}),a=useRef(false);return useEffect(()=>()=>{e?.persist?.deleteOnUnmount&&e.persist.key&&r.removeItem(e.persist.key);},[]),{debug:()=>{let p=i.current.stale,h=i.current.fresh,y=()=>{if(Array.isArray(p)){let b=p;return {from:p,to:h,difference:h.filter(($,w)=>w<b.length?b[w]!==$:false)}}switch(typeof p){case "string":return {from:p,to:h,difference:h.replace(p,"")};case "object":return {from:p,to:h,difference:Object.fromEntries(Object.keys(p).map(b=>{let S=b;if(h[S]!==p[S])return [S,h[S]]}).filter(b=>!!b))};default:throw new Error("Not yet implemented bro!")}},z=250;return console.log(buildArray(z,b=>b===0||b===z?"/":"*").join(""),y()),y()},upsert:(p,...h)=>{let{skipOnChange:y=false,skipRender:z=false,skipValidation:b=false,skipTransform:S=false}=h[0]||{},$=typeof p=="function"?p(i.current.fresh):p,w=i.current.fresh;if(e?.readOnly===true||e?.readOnly==="lazy"&&a.current)throw console.error("Updating a readOnly store is prohibited"),new Error("Updating a readOnly store is prohibited",{cause:`Attempt to change ${e?.defaultValue} -> ${$}`});if(e?.readOnly==="lazy"&&!a.current&&(a.current=true),!S&&e?.transform&&($=e.transform($)),typeof $=="function")throw console.error(t),t;if(JSON.stringify($)!==JSON.stringify(w)){if(!b&&e?.validate?.($)===false){e?.onValidationFail?.($);return}i.current={fresh:$,stale:w},e?.persist?.key&&r.setItem(e.persist.key,JSON.stringify($)),y||e?.onChange?.($,w),!z&&e.reactive&&o();}},read:()=>structuredClone(i.current.fresh),delete:()=>{let p=structuredClone(i.current.fresh),h=structuredClone(i.current.stale);i.current.fresh=n,i.current.stale=null,e?.onDelete?.(p,h),e?.persist?.key&&r.removeItem(e.persist.key);}}}c();function pu(e=0){return {defaultPage:e,goTo:()=>null,echo:()=>null,getActivePage:()=>null,isPageActive:()=>null,onPageChange:()=>null}}c();function Yi(){return useContext(tn)}c();function PU(e,r){let[t,n]=useState(()=>{try{let a=window.sessionStorage.getItem(e);return a?JSON.parse(a):r}catch(a){return console.log(a),r}});return [t,a=>{try{let l=a instanceof Function?a(t):a;n(l),window.sessionStorage.setItem(e,JSON.stringify(l));}catch(l){console.log(l);}},()=>{try{n(r),window.sessionStorage.removeItem(e);}catch(a){console.log(a);}}]}c();function BU(e){let r=useContext(_t),{triggerRerender:t}=G(),n=s=>{throw new Error("Invalid key used in useEvent",{cause:`${s} with type "${typeof s}" provided, but a key with type "string" was expected.`})};return {emit:(s,...u)=>{if(typeof s!="string")return n(s);r.emit(s,u?.[0]),e?.rerenderOnEmit&&t();},on:(s,u,f)=>{if(typeof s!="string")return n(s);let p=r.on(s,u);return f?.rerender&&t(),p},listeners:s=>typeof s!="string"?n(s):r.listeners(s),dettach:s=>typeof s!="string"?n(s):r.dettach(s)}}c();function FU(e){let{triggerRerender:r}=G(),t=useRef(castReturn(e)),n=(o,i={skipRender:false})=>{t.current=typeof o=="function"?o(t.current):o,i.skipRender||r();};return [t.current,n]}c();function gn(e){useEffect(()=>{e.skipAnimation||Object.assign(e.ref.current.style,{opacity:e.in?1:0,animationName:e.animationName(e.in),animationIterationCount:1,animationTimingFunction:e.in?"ease-in":"ease-out",animationDuration:e.duration||"300ms",animationDelay:typeof e.delay=="object"?e.in?e.delay?.exit:e.delay?.enter:e.delay});},[e.in,e.skipAnimation]);}c();c();c();function Gu(e){let r=useRef(null),t=Ie__default.cloneElement(e.children,{ref:r});return gn({ref:r,in:e.in,delay:e.delay,duration:e.duration,skipAnimation:e.skipAnimation,animationName:n=>n?"fadeInOpacity":"fadeOutOpacity"}),t}c();function v2(e){let r=useRef(null),t=Ie__default.cloneElement(e.children,{ref:r});return gn({ref:r,in:e.in,delay:e.delay,duration:e.duration,skipAnimation:e.skipAnimation,animationName:n=>n?"fadeInOpacity, scaleIn":"fadeOutOpacity, scaleOut"}),t}export{Ro as AttachmentsButton,Oo as AttachmentsDialog,He as Avatar,hP as AvatarGroup,Gs as Badge,E as BasicButton,g as BasicDiv,Ae as BasicImg,kn as BasicOl,Dn as BasicOption,Nr as BasicSelect,C as BasicSpan,rf as BasicTable,sn as Calendar,Xy as CalendarDialog,ot as CancelButton,ue as Card,Xi as Checkbox,Be as ColorResources,JI as ConfirmationDialog,$r as CopyButton,pe as CssColors,ge as CssShapes,U as CssSpacing,oP as Debounce,dt as DeleteButton,F as Dialog,eu as Disclaimer,fN as DownloadButton,ZP as Drawer,iy as EditButton,EB as Editable,h_ as EmailComposer,Kt as EmptyState,Qo as ErrorTooltip,ui as EventContainer,my as ExpandableButton,Gu as Fade,eO as FancyFormDialog,PB as FileDropzone,xO as FileViewer,T as FontSize,au as Indicator,cu as ItemInfo,Ko as JsonViewer,Bb as JwtVerifier,gI as MediaCard,Yv as Menu,Fy as MoneyDisplayCard,nN as NegativeButton,yo as NextButton,od as NoButton,To as OpenButton,by as OptionsButton,IP as PageIndicator,oT as PageSlider,OT as Paper,Ru as PasteButton,Py as PaymentOptionsButton,Fo as PaymentOptionsDialog,A_ as PictureUploader,gr as Popover,tN as PositiveButton,_o as PreviousButton,PI as ProfileCard,dP as ProgressBar,Uy as ReceiptCard,xo as SaveButton,v2 as Scale,Eo as SearchTextField,ST as SegmentedControls,jo as SendButton,hE as Separator,V_ as SignInWidget,mO as SimpleFormDialog,CP as Spinner,Cu as Status,MT as Stepper,bo as SubmitButton,KC as Switch,xu as Tag,tb as TaskLogger,dn as TaskResultDialog,qo as Terminal,xe as TextField,uE as Timeline,on as Tooltip,mt as UploadButton,gF as UploadReceiptButton,pb as UserProfile,No as VerifyButton,ei as VerifyTextField,Gd as WavyUi,nd as YesButton,Jo as YesNoButtonGroup,S_ as YesOrNoForm,k as applyBasicStyle,oR as bankTransferPaymentOption,tx as borderRadius,q0 as buildCSS,dx as computedCssVariable,Yd as convertHexUnitTo256,Q0 as cssTransition,Yu as definePaymentOption,nx as disabledBorderRadius,ox as dragElement,ve as ellipsis,rx as flexCenter,Qt as getFileIcon,fh as getPaperDim,gi as getScrollParent,qd as hexToRgba,iR as inAppPaymentOption,yn as isOverflown,vi as isSpanMultiLine,Kd as isValidHex,pi as nativeEllipsis,ix as noSpaceStyle,ph as paperStyle,ux as remAsPx,Qd as remToPx,x as resolveBasicColor,hi as resolveFontSize,ax as resolveSpace,Ir as restrictLineCount,cx as rgbToRgba,lx as screenHasMaxWidth,sx as screenHasMinWidth,ex as solidBorder,yi as stripHtml,fi as tiledBackground,gn as useAnimation,JA as useAsyncEffect,nU as useComputedStyle,BU as useEvent,rd as useModalControls,pu as usePageSliderController,Yi as usePopoverContext,Xu as usePostRenderEffect,G as useRerender,PU as useSessionStorage,FU as useSmartState,A as useStore};