@wavy/react-ui 0.0.1 → 0.0.2
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/README.md +1 -1
- package/dist/main.d.ts +776 -762
- package/dist/main.js +4 -4
- package/package.json +2 -2
package/dist/main.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import'path';import'url';import {ClientOnly,IconButton,Skeleton,Span,Tooltip,Portal,
|
|
1
|
+
import'path';import'url';import {ClientOnly,IconButton,Skeleton,Span,Tooltip,Portal,Button,AbsoluteCenter,Spinner,FileUpload,Icon,Box,Avatar,Float,Dialog,CloseButton,Menu,SegmentGroup,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 re from'react';import re__default,{createContext,memo,useState,useRef,useEffect,useContext,useCallback}from'react';import {LuMoon,LuSun,LuCheck,LuUpload,LuX,LuPencilLine,LuChevronRight}from'react-icons/lu';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {FaAngleUp,FaAngleDown,FaRegFileImage,FaFileImage,FaRegFilePdf,FaFilePdf,FaFolder}from'react-icons/fa';import {buildArray,range,isEmpty,strictArray,camelCaseToLetter,lastIndex,format,hasIndex,upperFirst,sanitizeLocalFile,inferFilename,sort,readClipboardText,copyToClipboard,takeLast,getMimeTypes,distinct,toObject}from'@wavy/fn';import {withEmotionCache,ThemeContext}from'@emotion/react';import {IoMdCheckmark,IoMdSend,IoMdImages,IoMdDownload}from'react-icons/io';import {PiImageBrokenLight}from'react-icons/pi';import {IoChevronBack,IoChevronForward,IoChevronDown,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 {v4}from'uuid';import rc from'./assets/flyLeavesEmptyBox.png';import {MdMoreVert,MdVerifiedUser}from'react-icons/md';import {TfiReceipt}from'react-icons/tfi';import nd from'react-datepicker';import'react-datepicker/dist/react-datepicker.css';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';var gi=Object.create;var Wt=Object.defineProperty;var vi=Object.getOwnPropertyDescriptor;var yi=Object.getOwnPropertyNames;var hi=Object.getPrototypeOf,pi=Object.prototype.hasOwnProperty;var Ci=(e,r)=>()=>(e&&(r=e(e=0)),r);var _i=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var bi=(e,r,t,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of yi(r))!pi.call(e,n)&&n!==t&&Wt(e,n,{get:()=>r[n],enumerable:!(o=vi(r,n))||o.enumerable});return e};var Si=(e,r,t)=>(t=e!=null?gi(hi(e)):{},bi(!e||!e.__esModule?Wt(t,"default",{value:e,enumerable:true}):t,e));var a=Ci(()=>{});var ho=_i((k0,te)=>{a();function Fr(){return te.exports=Fr=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o]);}return e},te.exports.__esModule=true,te.exports.default=te.exports,Fr.apply(null,arguments)}te.exports=Fr,te.exports.__esModule=true,te.exports.default=te.exports;});a();a();a();a();a();function Jt(e){return jsx(ThemeProvider,{attribute:"class",disableTransitionOnChange:true,...e})}function Nt(){let{resolvedTheme:e,setTheme:r,forcedTheme:t}=useTheme();return {colorMode:t||e,setColorMode:r,toggleColorMode:()=>{r(e==="dark"?"light":"dark");}}}function Ei(){let{colorMode:e}=Nt();return e==="dark"?jsx(LuMoon,{}):jsx(LuSun,{})}re.forwardRef(function(r,t){let{toggleColorMode:o}=Nt();return jsx(ClientOnly,{fallback:jsx(Skeleton,{boxSize:"9"}),children:jsx(IconButton,{onClick:o,variant:"ghost","aria-label":"Toggle color mode",size:"sm",ref:t,...r,css:{_icon:{width:"5",height:"5"}},children:jsx(Ei,{})})})});re.forwardRef(function(r,t){return jsx(Span,{color:"fg",display:"contents",className:"chakra-theme light",colorPalette:"gray",colorScheme:"light",ref:t,...r})});re.forwardRef(function(r,t){return jsx(Span,{color:"fg",display:"contents",className:"chakra-theme dark",colorPalette:"gray",colorScheme:"dark",ref:t,...r})});function Ut(e){return jsx(ChakraProvider,{value:defaultSystem,children:jsx(Jt,{...e})})}function zi(e){return jsx(Ut,{children:e.children})}var Oi=zi;a();a();a();var ae=e=>{let t=Object.keys({id:0,onBlur:0,onFocus:0,onClick:0,className:0,onDoubleClick:0,ref:0,popoverTarget:0,popover:0}).filter(o=>o in e);return Object.fromEntries(t.map(o=>[o,e[o]]))};a();a();a();var Gt=(c=>(c.xs=".125rem",c.sm=".25rem",c.md=".5rem",c.lg="1rem",c.xl="1.5rem",c.xxl="2rem",c.circle="100%",c.popover="1rem",c))(Gt||{}),le=Gt;function fm(e){return {...e,backdropFilter:e?.backgroundBlur?`blur(${e.backgroundBlur})`:e?.backdropFilter}}function mm(e){let r={fast:"150ms",normal:"300ms",slow:"450ms"},t=e?.speed||"normal",o=e?.target||"all",n=e?.timing||"linear",i=e?.delay||"0";return `${o} ${r[t]} ${n} ${i}`}function gm(e){return `${e.thickness||"1px"} solid ${e.color}`}function jt(e){let r=C(e.backgroundColor),t=C(e.borderColor),o=e.tileBorderThickness||"1px",n=e.tileSize||"1.5rem";return `
|
|
2
2
|
${e.fader||"radial"}-gradient(transparent, ${r} 75%),
|
|
3
3
|
repeating-linear-gradient(
|
|
4
4
|
${t},
|
|
@@ -14,10 +14,10 @@ import'path';import'url';import {ClientOnly,IconButton,Skeleton,Span,Tooltip,Por
|
|
|
14
14
|
transparent ${n}
|
|
15
15
|
)
|
|
16
16
|
${r}
|
|
17
|
-
`}function m0(e,r){return {display:"flex",justifyContent:"center",alignItems:"center",flexDirection:r?"column":"row",...e}}function g0(e,r){let t=o=>"affectedCorners"in e&&typeof e.affectedCorners=="string"?o.includes(e.affectedCorners)?e.radius:void 0:"affectedCorners"in e?e.affectedCorners.includes(o)?e.radius:void 0:e[o];return {...r,borderTopLeftRadius:t("top-left"),borderTopRightRadius:t("top-right"),borderBottomLeftRadius:t("bottom-left"),borderBottomRightRadius:t("bottom-right")}}function v0(e){let r=typeof e.disabledCurves=="function"?e.disabledCurves():e.disabledCurves,t=n=>r==="both"||r===n?0:e.curveRadius||le.md;return {borderTopLeftRadius:t("left"),borderBottomLeftRadius:t("left"),borderTopRightRadius:t("right"),borderBottomRightRadius:t("right")}}function y0(e){let r=0,t=0,o=0,n=0;document.getElementById(e.id+"header")?document.getElementById(e.id+"header").onmousedown=i:e.onmousedown=i;function i(c){c.preventDefault(),o=c.clientX,n=c.clientY,document.onmouseup=s,document.onmousemove=l;}function l(c){c.preventDefault(),r=o-c.clientX,t=n-c.clientY,o=c.clientX,n=c.clientY,e.style.top=e.offsetTop-t+"px",e.style.left=e.offsetLeft-r+"px";}function s(){document.onmouseup=null,document.onmousemove=null;}}function h0(e){return {...e,margin:0,padding:0}}function G(e,r={apply:true}){return r.apply?ze(1,e):e}function p0(e,r={apply:true}){return r.apply?{...e,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}:e}function oo(e){let r=e;for(;r&&!wr(r);)r=r.parentElement;return r}function no(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 o=r.offsetHeight;return document.body.removeChild(r),e.offsetHeight>o+2}function C(e,r){if(!e||typeof e!="string")return;let t=r?.preference||"css",o=e.replaceAll(" ",""),{0:n,1:i}=o.split("["),l=()=>X[o],s=()=>i?Yi(re[n],parseFloat(i)):re[o];if(t==="css"){if(o in X)return l();if(n in re)return s()}else if(t==="res"){if(n in re)return s();if(o in X)return l()}return o}var Gi=e=>/^#([A-Fa-f0-9]{3,4}){1,2}$/.test(e),ji=e=>parseInt(e.repeat(2/e.length),16);function Yi(e,r=1){let t=(v,m)=>v.match(new RegExp(`.{${m}}`,"g")),o=v=>typeof v<"u"?v/255:typeof r!="number"||r<0||r>1?1:r;if(!Gi(e))throw new Error(`Invalid HEX: ${e}`);let n=Math.floor((e.length-1)/3),i=t(e.slice(1),n),[l,s,c,g]=i.map(ji);return `rgba(${l}, ${s}, ${c}, ${o(g)})`}function C0(e,r){let t=e.includes(",")?",":" ",o=e.split("").filter(n=>(t+"0123456789").includes(n)).join("").split(t);return o.length===3?o.push(`${r}`):o=o.with(3,`${r}`),"rgba("+o.join(t)+")"}function _0(e){return window.matchMedia(`(max-width:${e})`).matches}function b0(e){return window.matchMedia(`(min-width:${e})`).matches}function ze(e=2,r){return {...r,overflow:"hidden",width:"100%",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical"}}function Ki(e){return e*16}function S0(e){return `${Ki(e)}px`}function wr(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function x0(e){let r=document.body,t=e.replace("var(","").replace(")","");return getComputedStyle(r).getPropertyValue(t)}a();var qi=Object.freeze({"2xl":"1.75rem",xl:"1.5rem",lg:"1rem",md:"0.5rem",sm:"0.25rem",xs:"0.125rem","2xs":"0.1rem"}),se=qi;a();var Zi=Object.freeze({"2xl":"1.75rem",xl:"1.5rem",lg:"1.25rem",md:"1rem",sm:"0.85rem",xs:"0.75rem","2xs":"0.65rem"}),W=Zi;var cr=["top","right","bottom","left"],io=(e,r)=>`translate(${e}, ${r})`,ao=e=>`translateX(${e})`,lo=e=>`translateY(${e})`,Qi=(e,r)=>{let t=e.fontSize in W?W[e.fontSize]:e.fontSize,{overflowX:o,overflowY:n}=(()=>{let s=e?.spill||{};if(s)return {overflowX:typeof s=="string"?s:s?.x||"visible",overflowY:typeof s=="string"?s:s?.y||"visible"}})();function i(s){return e.style?.[s]?e.style[s]:(e.size||e.size===0)&&(s==="height"||s==="width")?e.size==="full"?"100%":e.size:e[s]==="full"?"100%":e[s]}let l={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:`${C(e.scrollbarThumbColor||"inherit")} ${C(e.scrollbarThumbColor||"inherit")}`,transform:e.centerSelf===true?io("-50%","-50%"):e.centerSelf==="x"?ao("-50%"):e.centerSelf==="y"?lo("-50%"):e.translate?.x&&e.translate?.y?io(e.translate.x,e.translate.y):e.translate?.x?ao(e.translate.x):e.translate?.y?lo(e.translate.y):void 0,position:e.pos==="absolute"||e.centerSelf?"absolute":e.pos,padding:oa(e.padding),fontSize:t,fontWeight:e.fontWeight,border:e.border,borderColor:ea(e.borderColor),borderWidth:ra(e.borderWidth,e.borderColor?"1px":void 0),borderStyle:ta(e.borderStyle,e.borderColor?"solid":void 0),lineHeight:t?`calc(${t} + (${t} * .15))`:void 0,borderRadius:na(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:C(e.backgroundColor),color:C(e.color),gap:ia(e.gap),overflowX:o,overflowY:n,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(l).forEach(s=>{let c=s,g=l[c];typeof g=="string"&&(g=g.trim()),!g&&g!==0&&delete l[c];}),(r||e.debug)&&console.log({props:e,style:l}),l};function ea(e){if(!e)return;let r="transparent";return typeof e=="string"?C(e):cr.map(t=>{if(Array.isArray(e)){let{0:o,1:n}=e;return (Array.isArray(n)?n.includes(t):[t,"all"].includes(n))?C(o):r}return typeof e=="object"&&t in e?C(e[t]):r}).join(" ")}function ra(e,r){if(!e)return r;let t=0;return typeof e=="string"?e:cr.map(o=>{if(Array.isArray(e)){let{0:n,1:i}=e;return (Array.isArray(i)?i.includes(o):[o,"all"].includes(i))?n:t}return typeof e=="object"&&o in e?e[o]:t}).join(" ")}function ta(e,r){if(!e)return r;let t=0;return typeof e=="string"?e:cr.map(o=>{if(Array.isArray(e)){let{0:n,1:i}=e;return (Array.isArray(i)?i.includes(o):[o,"all"].includes(i))?n:t}return typeof e=="object"&&o in e?e[o]:t}).join(" ")}function oa(e){let t=o=>o?o in se?se[o]:o:"0px";return e?typeof e=="string"?t(e):cr.map(o=>{if(Array.isArray(e)){let{0:n,1:i}=e;return (Array.isArray(i)?i.includes(o):i===o)?t(n):"0px"}return typeof e=="object"&&o in e?t(e[o]):"0px"}).join(" "):"0px"}function na(e){let t=n=>n?n in le?le[n]:n:0;return e?typeof e=="string"?t(e):["topLeft","topRight","bottomRight","bottomLeft"].map(n=>{let i=e?.[n];return n.includes("top")&&e?.top?t(e.top):n.includes("bottom")&&e?.bottom?t(e.bottom):i?t(i):0}).join(" "):0}function ia(e){if(!(!e||typeof e!="string"))return e in se?se[e]:e}var b=Qi;var so=createContext(null);function sa(e){return jsx(so.Provider,{value:{gap:e.gap},children:jsx(d,{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,children:e.children})})}function co(e){return r=>{let{children:t,className:o,row:n=true,spill:i="hidden",centerContent:l=true,align:s="center",...c}=r;return jsx(d,{className:o,...c,row:n,spill:i,centerContent:l,align:s,children:t})}}function uo(e){return r=>jsx("span",{style:(()=>{let o=b({...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"?o:r.truncateStyle==="ellipsis"?G(o):ze(r.truncateStyle.lineCount,o)})(),children:r.value})}var ca=co(),da=co(),ua=e=>{let{gap:r=e.gap}=useContext(so);return jsx(d,{gap:r,...e,spill:e.spill||"hidden",maxWidth:e.maxWidth||"full",children:e.children})},fa=uo({fontWeight:"bold",fontSize:"xs",fade:.75}),ma=uo({fontSize:"sm"}),ga={Root:sa,LeadingAddOn:ca,TrailingAddOn:da,Content:ua,Label:fa,Item:ma},M=ga;a();function fo(e){let r=()=>{if(typeof e.fallback=="string"||te__default.isValidElement(e.fallback))return e.fallback;let o=e.fallback||PiImageBrokenLight;return jsx(o,{size:"3rem"})};return jsxs(d,{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(d,{centerContent:true,height:e.mediaHeight??"7rem",width:"full",backgroundColor:"surface",color:"onSurface",borderColor:"surface",corners:{top:"lg"},spill:"hidden",children:e.src?jsx(ce,{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(d,{width:"full",gap:"md",padding:"md",align:"start",spill:"hidden",children:[jsxs(d,{width:"full",gap:0,spill:"hidden",children:[jsx("span",{children:e.title,style:b({fontSize:e.titleFontSize??"md"})}),e.description&&jsx("span",{children:e.description,style:b({fontSize:e.descriptionFontSize??"xs",fade:.5})})]}),e.children]})]})}fo.Content=e=>jsx(d,{...e,width:e.width??"full",spill:e.spill||"hidden",children:e.children});var ha=fo;a();a();a();a();a();a();function dr(){return dr=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o]);}return e},dr.apply(null,arguments)}a();a();function mo(e){for(var r=0,t,o=0,n=e.length;n>=4;++o,n-=4)t=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&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(n){case 3:r^=(e.charCodeAt(o+2)&255)<<16;case 2:r^=(e.charCodeAt(o+1)&255)<<8;case 1:r^=e.charCodeAt(o)&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)}a();var go={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};a();function ur(e){var r=Object.create(null);return function(t){return r[t]===void 0&&(r[t]=e(t)),r[t]}}var Ca=/[A-Z]|^ms/g,_a=/_EMO_([^_]+?)_([^]*?)_EMO_/g,po=function(r){return r.charCodeAt(1)===45},vo=function(r){return r!=null&&typeof r!="boolean"},Er=ur(function(e){return po(e)?e:e.replace(Ca,"-$&").toLowerCase()}),yo=function(r,t){switch(r){case "animation":case "animationName":if(typeof t=="string")return t.replace(_a,function(o,n,i){return j={name:n,styles:i,next:j},n})}return go[r]!==1&&!po(r)&&typeof t=="number"&&t!==0?t+"px":t};function Ie(e,r,t){if(t==null)return "";var o=t;if(o.__emotion_styles!==void 0)return o;switch(typeof t){case "boolean":return "";case "object":{var n=t;if(n.anim===1)return j={name:n.name,styles:n.styles,next:j},n.name;var i=t;if(i.styles!==void 0){var l=i.next;if(l!==void 0)for(;l!==void 0;)j={name:l.name,styles:l.styles,next:j},l=l.next;var s=i.styles+";";return s}return Sa(e,r,t)}case "function":{if(e!==void 0){var c=j,g=t(e);return j=c,Ie(e,r,g)}break}}var v=t;if(r==null)return v;var m=r[v];return m!==void 0?m:v}function Sa(e,r,t){var o="";if(Array.isArray(t))for(var n=0;n<t.length;n++)o+=Ie(e,r,t[n])+";";else for(var i in t){var l=t[i];if(typeof l!="object"){var s=l;r!=null&&r[s]!==void 0?o+=i+"{"+r[s]+"}":vo(s)&&(o+=Er(i)+":"+yo(i,s)+";");}else {if(Array.isArray(l)&&typeof l[0]=="string"&&(r==null||r[l[0]]===void 0))for(var c=0;c<l.length;c++)vo(l[c])&&(o+=Er(i)+":"+yo(i,l[c])+";");else {var g=Ie(e,r,l);switch(i){case "animation":case "animationName":{o+=Er(i)+":"+g+";";break}default:o+=i+"{"+g+"}";}}}}return o}var ho=/label:\s*([^\s;{]+)\s*(;|$)/g,j;function Co(e,r,t){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var o=true,n="";j=void 0;var i=e[0];if(i==null||i.raw===void 0)o=false,n+=Ie(t,r,i);else {var l=i;n+=l[0];}for(var s=1;s<e.length;s++)if(n+=Ie(t,r,e[s]),o){var c=i;n+=c[s];}ho.lastIndex=0;for(var g="",v;(v=ho.exec(n))!==null;)g+="-"+v[1];var m=mo(n)+g;return {name:m,styles:n,next:j}}a();var xa=typeof document<"u",_o=function(r){return r()},Pa=te.useInsertionEffect?te.useInsertionEffect:false,bo=xa&&Pa||_o;a();var Fr=typeof document<"u";function So(e,r,t){var o="";return t.split(" ").forEach(function(n){e[n]!==void 0?r.push(e[n]+";"):n&&(o+=n+" ");}),o}var Rr=function(r,t,o){var n=r.key+"-"+t.name;(o===false||Fr===false&&r.compat!==void 0)&&r.registered[n]===void 0&&(r.registered[n]=t.styles);},xo=function(r,t,o){Rr(r,t,o);var n=r.key+"-"+t.name;if(r.inserted[t.name]===void 0){var i="",l=t;do{var s=r.insert(t===l?"."+n:"",l,r.sheet,true);!Fr&&s!==void 0&&(i+=s),l=l.next;}while(l!==void 0);if(!Fr&&i.length!==0)return i}};a();var Ba=/^((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)-.*))$/,Po=ur(function(e){return Ba.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});var wa=typeof document<"u",Ea=Po,Fa=function(r){return r!=="theme"},Bo=function(r){return typeof r=="string"&&r.charCodeAt(0)>96?Ea:Fa},ko=function(r,t,o){var n;if(t){var i=t.shouldForwardProp;n=r.__emotion_forwardProp&&i?function(l){return r.__emotion_forwardProp(l)&&i(l)}:i;}return typeof n!="function"&&o&&(n=r.__emotion_forwardProp),n},Ra=function(r){var t=r.cache,o=r.serialized,n=r.isStringTag;Rr(t,o,n);var i=bo(function(){return xo(t,o,n)});if(!wa&&i!==void 0){for(var l,s=o.name,c=o.next;c!==void 0;)s+=" "+c.name,c=c.next;return te.createElement("style",(l={},l["data-emotion"]=t.key+" "+s,l.dangerouslySetInnerHTML={__html:i},l.nonce=t.sheet.nonce,l))}return null},Do=function e(r,t){var o=r.__emotion_real===r,n=o&&r.__emotion_base||r,i,l;t!==void 0&&(i=t.label,l=t.target);var s=ko(r,t,o),c=s||Bo(n),g=!c("as");return function(){var v=arguments,m=o&&r.__emotion_styles!==void 0?r.__emotion_styles.slice(0):[];if(i!==void 0&&m.push("label:"+i+";"),v[0]==null||v[0].raw===void 0)m.push.apply(m,v);else {var p=v[0];m.push(p[0]);for(var x=v.length,P=1;P<x;P++)m.push(v[P],p[P]);}var y=withEmotionCache(function(_,D,R){var z=g&&_.as||n,xe="",Ut=[],or=_;if(_.theme==null){or={};for(var Gt in _)or[Gt]=_[Gt];or.theme=te.useContext(ThemeContext);}typeof _.className=="string"?xe=So(D.registered,Ut,_.className):_.className!=null&&(xe=_.className+" ");var nr=Co(m.concat(Ut),D.registered,or);xe+=D.key+"-"+nr.name,l!==void 0&&(xe+=" "+l);var yi=g&&s===void 0?Bo(z):c,ir={};for(var ar in _)g&&ar==="as"||yi(ar)&&(ir[ar]=_[ar]);return ir.className=xe,R&&(ir.ref=R),te.createElement(te.Fragment,null,te.createElement(Ra,{cache:D,serialized:nr,isStringTag:typeof z=="string"}),te.createElement(z,ir))});return y.displayName=i!==void 0?i:"Styled("+(typeof n=="string"?n:n.displayName||n.name||"Component")+")",y.defaultProps=r.defaultProps,y.__emotion_real=y,y.__emotion_base=n,y.__emotion_styles=m,y.__emotion_forwardProp=s,Object.defineProperty(y,"toString",{value:function(){return "."+l}}),y.withComponent=function(_,D){var R=e(_,dr({},t,D,{shouldForwardProp:ko(y,D,true)}));return R.apply(void 0,m)},y}};Bi(wo());var za=["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"],Pe=Do.bind(null);za.forEach(function(e){Pe[e]=Pe(e);});var Or=class{static getStyle(r){if(r)return JSON.parse(JSON.stringify(r||{}),(t,o)=>t==="backgroundColor"||t==="color"?C(o):o)}static span=r=>Pe.span({...this.getStyle(r)});static div=r=>Pe.div({...this.getStyle(r)});static img=r=>Pe.img({...this.getStyle(r)})},Be=Or;a();var de=e=>{let t=Object.keys({id:0,onBlur:0,onFocus:0,onClick:0,className:0,onDoubleClick:0,ref:0,popoverTarget:0,popover:0}).filter(o=>o in e);return Object.fromEntries(t.map(o=>[o,e[o]]))};function Ma(e){let r=useRef(null),[t,o]=useState(false),n=w({top:0,left:0});e.rememberScrollPos&&useEffect(()=>{let v=n.read();r.current&&[v.top,v.left].some(m=>!!m)&&(r.current.scrollTop=v?.top??0,r.current.scrollLeft=v?.left??0);},e.updateScrollPosDeps),(e.rememberScrollPos||e.overflowPadding)&&useEffect(()=>{r.current&&wr(r.current)&&!t&&o(true);},[]);let i="10%",l=`linear-gradient(to bottom, transparent, black calc(${i}/4), black calc(100% - ${i}), transparent) `,s=e.decreaseYFaderPadding?"2vh":"5rem",c=b({...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?s:void 0,bottom:e.enableYFaders?s:void 0}}),g=Be.div(e.css);if(!e.hide)return e.asChildren?e.children:jsx(g,{...de(e),ref:e.rememberScrollPos||e.overflowPadding?r:e.ref,draggable:e.draggable,onScroll:v=>{let m=r?.current?.scrollTop,p=r?.current?.scrollLeft;!t&&e.overflowPadding&&o(true),isEmpty(strictArray([m,p]))||n.upsert({top:m??0,left:p??0}),e.onScroll?.(v);},style:{...c,display:e.grid?"grid":c.display||"flex",flexWrap:c.flexWrap||(e.flexWrap?"wrap":void 0),gridTemplateColumns:c?.gridTemplateColumns||e.gridCols||"1fr",gridTemplateRows:c?.gridTemplateRows||e.gridRows,WebkitMaskImage:e.enableYFaders&&l,maskImage:e.enableYFaders&&l},children:e.children})}var d=Ma;function Eo(e){let r={backgroundColor:"onSurface",color:"surface",padding:"md",corners:"lg"},t=i=>e[i]??r[i],o=i=>{if(!e.children)return e[i]||r[i]},n=e.disableBoxShadow?"none":e.style?.boxShadow||"rgba(0, 0, 0, 0.35) 0px 5px 15px";return jsxs(d,{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:n},children:[jsxs(d,{row:true,className:e.children?void 0:e.className,gap:"md",align:"center",height:o("height"),width:o("width"),backgroundColor:o("backgroundColor"),color:o("color"),padding:o("padding"),corners:o("corners"),spill:"hidden",style:e.children?void 0:{...e.style,boxShadow:n},children:[jsx(ee,{src:e.avatarSrc,size:e.avatarSize??"sm",fallback:e.avatarFallback,backgroundColor:e.avatarBackgroundColor,color:e.avatarColor}),jsxs(d,{width:"full",spill:"hidden",children:[jsx("span",{children:e.title,style:G(b({fontSize:e.titleFontSize??"sm",fontWeight:e.titleFontWeight,fade:e.titleFade}))}),jsx("span",{children:e.description,style:G(b({fade:e.descriptionFade??.5,fontSize:e.descriptionFontSize??"xs",fontWeight:e.descriptionFontWeight}))})]})]}),e.children]})}Eo.Content=d;var Va=Eo;a();function Ja(e){let[r,t]=useState(e.checked??false),o=()=>{e.onChange?.(!r),e.onClick?.(),t(!r);};return jsx(d,{clickable:true,size:e.size,corners:e.corners??"sm",padding:e.padding??"sm",backgroundColor:r?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:o,children:jsx(IoMdCheckmark,{size:e.iconSize,style:{opacity:r?1:0}})})}var Hr=Ja;a();a();function Ua(e){let{triggerRerender:r}=I(),t=b({...e,padding:e.padding||"xl",corners:e.corners||"md",gap:e.gap||"lg"}),o=({open:i})=>{e.onOpenChange?.(i);},n=()=>{e.onClose?.(),e.rerenderOnClose&&r();};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:o,onExitComplete:n,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 Lr=(e,r)=>t=>{let o=Dialog[e],n={...t,spill:t.spill||"hidden"};return Object.keys(r||{}).forEach(i=>{let l=i;n?.[l]||(n=Object.assign(n,{[l]:r[l]}));}),jsx(o,{width:"full",height:"full",overflow:"hidden",children:jsx(d,{...n,children:t.children})})},Ga=Lr("Header",{fontSize:"xl",fontWeight:"bold"}),ja=Lr("Body",{gap:"md"}),Ya=Lr("Footer",{row:true,gap:"sm"}),Ka=e=>jsx(Dialog.CloseTrigger,{asChild:true,children:e.wrap?jsx("div",{...e.slotProps?.divWrapper,children:e.children}):e.children}),qa=e=>jsx(Dialog.ActionTrigger,{asChild:true,children:e.children}),Za={Root:Ua,Header:Ga,Body:ja,Footer:Ya,CloseTrigger:Ka,ActionTrigger:qa},k=Za;function Qa(e){let r=e.severity||"error",t=C(r,{preference:"res"});return jsxs(k.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(k.Header,{fontSize:"2xl",children:e.title}),jsxs(k.Body,{fade:.75,children:[jsx("span",{children:e.message}),e.disclaimer&&jsx(Wr,{width:"full",facade:o=>o==="error"?"warning":o,hideLabel:e.hideDisclaimerLabel,severity:r,message:e.disclaimer})]}),jsxs(k.Footer,{gap:"md",children:[jsx(k.ActionTrigger,{children:jsx(S,{size:"sm",fade:.75,color:"onSurface",backgroundColor:"transparent",text:e.cancelLabel||"Cancel",onClick:e.onCancelClick})}),jsx(S,{async:true,size:"sm",text:e.action.label,backgroundColor:t,color:"white",onClick:e.action.onClick})]})]})}var el=Qa;a();var $r=createContext(null);function il(e){let r=e.sections.flatMap(y=>typeof y=="object"?y.nestedItems:y),t=e.defaultSection?r.findIndex(y=>y===e.defaultSection):0,[o,n]=useState(t>=0?t:0),{triggerRerender:i}=I(),l=w([]),s=r[o],c=Array.isArray(e.ignoredSections)?e.ignoredSections:strictArray([e.ignoredSections]),g=o<=0;e.checkCompletionOnMount&&useEffect(()=>{r.forEach((y,_)=>{m(y,_);}),i();},[]);let v=(y=l.read())=>r.filter(_=>!y.includes(_)&&!c.includes(_)),m=(y=s,_=o)=>{let D=l.read();if(!c.includes(y)){if(e.isSectionComplete(y)&&!D.includes(y))D=[...D,y];else if(!e.isSectionComplete(y)&&D.includes(y))D=D.filter((R,z)=>z!==_);else return;l.upsert(D),e.onSectionsStatusChange?.(v(D),D);}},p=y=>{m(),n(r.findIndex(_=>_===y));},x=()=>{o>=r.length-1||(m(),n(o+1));},P=()=>{g||(m(),n(o-1));};return jsx($r.Provider,{value:{activeSection:s,completedSections:l.read(),rawSections:e.sections},children:jsx(k.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(k.Body,{grid:true,gap:"0px",width:"full",height:"full",spill:"hidden",gridCols:".45fr 1fr",children:[jsx(al,{title:e.title,onSectionClick:p}),jsx(ll,{hideSubmitButton:e.hideSubmitButton,sectionMapper:e.sectionMapper,previousDisabled:g,onPreviousClick:P,onNextClick:x,incompleteSections:v(),onSubmitClick:e.onSubmit})]})})})}function al(e){let{rawSections:r,activeSection:t,completedSections:o}=useContext($r);return jsxs(d,{size:"full",padding:"xl",backgroundColor:"surfaceContainer",gap:e.title?"xl":void 0,spill:"hidden",children:[e.title&&jsx(d,{fontSize:"lg",fontWeight:"bold",spill:"hidden",children:e.title}),jsx(Jr,{width:"full",items:r,isItemActive:n=>t===n,isItemCompleted:n=>o.includes(n),onItemClick:e.onSectionClick})]})}function ll(e){let{activeSection:r}=useContext($r),{title:t,description:o,element:n}=e.sectionMapper[r],i=typeof n=="function"?jsx(n,{incompleteSections:e.incompleteSections}):n;return jsxs(d,{size:"full",backgroundColor:"surfaceContainer[0.5]",padding:"3rem",gap:"xl",grid:true,gridRows:"auto 1fr auto",justify:"space-between",spill:"hidden",children:[jsxs(d,{children:[jsx(h,{text:t,fontSize:"xl",fontWeight:"bold"}),jsx("span",{children:o,style:{opacity:.75}})]}),jsx(d,{size:"full",gap:"lg",children:i}),jsxs(d,{row:true,width:"full",align:"center",justify:"space-between",children:[jsx(Xr,{disabled:e.previousDisabled,onClick:e.onPreviousClick}),r==="Submission"?!e.hideSubmitButton&&jsx(Ur,{disabled:!!e.onSubmitClick,onClick:e.onSubmitClick}):jsx(Nr,{onClick:e.onNextClick})]})]})}var sl=il;a();a();a();function dl(e){return jsxs(d,{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",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.selected&&jsx(LuCheck,{style:{flexShrink:0}}),jsx("span",{children:e.value.toString(),style:G({maxWidth:"100%",flex:"1",alignItems:"start",textAlign:"start"})})]})}var Gr=dl;var Oo=createContext(null);function yl(e){return jsx(Oo.Provider,{value:e,children:jsx(ge,{...e,backdropBlur:e.backdropBlur,padding:e.padding||"md",corners:e.corners||"md",displayAction:"click",content:jsx(hl,{})})})}function hl(){let e=useContext(Oo),r=jr(),[t,o]=useState(e.isSelected?e.options.findIndex(i=>e.isSelected(i)):void 0),{triggerRerender:n}=I();return useEffect(()=>{setTimeout(()=>{n();},10);},[]),jsx(d,{spill:"auto",gap:e.gap||"sm",children:e.options.map((i,l)=>{let s=l===t,c=()=>{i.onClick?.(),e.onOptionClick?.(i,l,e.options),o(l),r.close();};return (!i||!i?.value)&&console.error(`Index ${l} is not defined in ${e.options.join()}`),jsx(Gr,{value:i?.value.toString(),disabled:i?.disabled,selected:s,onClick:c},l)})})}var Me=yl;a();a();var Pl=["inherit","sm","md","lg","xl","2xl","xs"],Bl=["sm","md","lg","xl","2xl","xs","2xs"];function Io(e){let[r,t]=useState(false),o=e.disabled||r,n=async m=>{if(!o){if(!e.async)return e.onClick?.(m);t(true),await e.onClick?.(m),setTimeout(()=>t(false),e.pendingDelay||1);}},i=m=>{if(m){if(typeof m==typeof FaFolder){let p=x=>typeof x=="string"&&[...Pl].includes(x);return jsx(Icon,{size:p(e.iconSize)?e.iconSize:void 0,boxSize:p(e.iconSize)?void 0:e.iconSize,as:m})}return m}},l=i(e.leadingEl),s=i(e.trailingEl),c=m=>typeof m=="string"&&[...Bl].includes(m),{size:g,...v}=e;return jsxs(Button,{...de(e),disabled:o,size:c(g)?g:void 0,style:b({...v,size:c(g)?void 0:g,clickable:!o,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:o?e.disabledOpacity||.5:e.fade||1,pos:r?"relative":e.pos,height:e.height||"fit-content",width:e.width||"fit-content"}),onClick:n,onMouseDown:e.onMouseDown,children:[l,e.text,e.children,s,r&&jsx(AbsoluteCenter,{children:jsx(Spinner,{size:"sm",animationDuration:"slowest",borderWidth:".1rem",color:e.spinnerColor?C(e.spinnerColor):"blue.500"})})]})}var De=e=>r=>jsx(Io,{...(()=>{let o={...r,...e.preset};for(let n of Object.keys(e.optional||{})){let i=n,l=i in o,s=[void 0,null].includes(o[i]);(!l||s)&&(o[i]=e.optional[i]);}return o})()}),S=Io;var Dl=De({preset:{text:"Save",async:true}}),Yr=Dl;function Tl(e){let{triggerRerender:r}=I(),t=w(Object.fromEntries(Object.entries(e.fields).map(([l,s])=>[l,typeof s=="object"&&"defaultValue"in s?s.defaultValue:e.defaultValue?.[l]??""]))),o=e.actionButtionSize||"lg",n=()=>{e.onSave?.(t.read());},i=()=>{e.onCancel?.();};return jsxs(k.Root,{rerenderOnClose:true,width:e.width,closeButtonSize:e.closeButtonSize||"md",controller:e.controller,triggerElement:e.triggerElement,onClose:()=>r(),children:[jsx(k.Header,{fontSize:"2rem",children:e.title||"Edit Form"}),jsx(k.Body,{padding:"xs",children:Object.keys(e.fields).map(l=>{let s=l,c=e.fields[s],g=t.read()?.[s]??"",v=typeof c.label=="function"?c.label(l):!c.label||c.label==="prop-name"?e.formatFieldPropName?.(l)??l:c.label,m=p=>t.upsert(x=>({...x||{},[s]:p}));return c.options?jsx(El,{label:v,size:e.textfieldSize,defaultValue:g,disabled:c.disabled,placeholder:c.placeholder,options:c.options,onChange:m},l):jsx(U,{width:"full",placeholder:c.placeholder,label:v,size:e.textfieldSize,defaultValue:g,disabled:c.disabled,allowedChars:c.allowedChars||e.allowedChars,onChange:m},s)})}),jsxs(k.Footer,{children:[jsx(k.ActionTrigger,{children:jsx(Le,{fade:.5,size:o,onClick:i})}),jsx(k.ActionTrigger,{children:jsx(Yr,{size:o,onClick:n})})]})]})}function El(e){let[r,t]=useState(e.defaultValue),o=({value:n})=>{e.onChange(n),t(n);};return jsx(Me,{wrap:true,asChild:e.disabled,width:"match-anchor",maxHeight:"10rem",isSelected:({value:n})=>r===n,options:e.options.map(n=>({value:n.trim()})),onOptionClick:o,slotProps:{divWrapper:{style:{width:"100%"}}},children:jsx(U,{readOnly:true,size:e.size,disabled:e.disabled,label:e.label,width:"full",value:r,placeholder:e.placeholder})})}var Fl=Tl;a();a();function zl(e){let r=i=>e.ellipsis?G(i):e.lineLimit?ze(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(),o=b({...e,color:e.fakeHyperlink||e.hyperlink?"hyperlink":e.color,cursor:e.link||e.hyperlink||e.clickable?"pointer":e.cursor}),n=Be.span(e.sx);return jsx(n,{...de(e),ref:e.ref,style:r({...o,width:e.ellipsis?"100%":o.width,textAlign:e.textAlign||"justify",fontStyle:e.italic?"italic":void 0,textDecoration:t()||void 0}),children:e.text||e.children})}var h=zl;function Ll(e){let[r,t]=useState(false),n={error:BsExclamationCircle,info:BsInfoCircle,warning:BsExclamationTriangle}[e.severity],i=e.iconSize||"1rem",l=e.gap||"md",s=jsx(n,{size:i,style:{flexShrink:0}});return jsxs(d,{row:e.hideLabel,top:e.top,left:e.left,right:e.right,bottom:e.bottom,pos:e.pos,width:e.width,gap:e.hideLabel?l:void 0,corners:"md",backgroundColor:C(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?s:jsxs(d,{row:true,gap:l,align:"center",children:[s,jsx(h,{fontWeight:"bold",fontSize:"xs",text:(e.facade?.(e.severity)||e.severity).toUpperCase()})]}),jsx("span",{ref:c=>{c&&t(no(c));},style:b({fontSize:e.fontSize||"sm",fade:e.hideLabel?1:.75,style:{paddingLeft:e.hideLabel?void 0:`calc(${i} + ${b({gap:l}).gap})`}}),children:e.message})]})}var Wr=Ll;a();a();a();var Mo=["Google"],Lo=["pdf","word","excel","img","txt","unknown"],Vo=Object.freeze({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:[]});function Vl(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:Wl(e.accepts),children:[jsx(FileUpload.HiddenInput,{onChange:r}),e.children,e.showList&&jsx(FileUpload.List,{...e.slotProps?.fileList})]})}var Wl=e=>e.flatMap(r=>Vo[r]),$o=Vl;function Xl(e){return jsx($o,{...e,children:jsxs(FileUpload.Dropzone,{borderRadius:"xl",height:"full",width:"full",overflow:"hidden",backgroundColor:C(e.backgroundColor||"transparent"),borderColor:C(e.borderColor||"outlineVariant"),color:C(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"})]})})]})})}var Ul=Xl;a();var Go=createContext(null);function Ql(e){let r=w(null),t=w(e.defaultValue??""),[o,n]=useState(e.value??t.read()),[i,l]=useState(false),s=e.activationMode||"click",c=e.size||"md",g=z=>{e.value===void 0&&n(z),e.onChange?.(z);},v=()=>{g(t.read());},m=()=>{e.onEdit?.(),!e.preventDefault&&l(true);},p=(z={asClick:true})=>{r.upsert("cancel"),v(),z.asClick&&e.onCancelClick?.(),l(false);},x=z=>{z.preventDefault(),r.read()!=="save"&&v(),l(false);},P=(z=true)=>{t.upsert(o),z&&(r.upsert("save"),e.onSaveClick?.(o)),e.onSave?.(o),l(false);},y=()=>{r.upsert("edit"),e.onEditClick?.(),m();},_=()=>{P(false);},D=()=>{e.onContentClick?.(),m();},R={align:"center",gap:e.rowGap??"sm",width:e.width,maxWidth:"full"};return jsx(Go.Provider,{value:{padding:".25rem",iconSize:e.iconSize||c},children:jsxs(d,{...R,asChildren:!e.label,row:false,align:"start",children:[e.label&&jsx(h,{text:e.label,fontSize:W[c],fade:i?.75:.5,style:{transition:"all 200ms linear"}}),jsxs(d,{...R,grid:true,gap:e.columnGap??R.gap,gridCols:e.hideControls===true||Array.isArray(e.hideControls)&&["cancel","save","edit"].every(z=>e.hideControls.includes(z))?"1fr":e.control?"1fr auto":i?"1fr auto auto":"1fr auto",justify:e.spaceBetween?"space-between":void 0,children:[i?jsx(d,{width:"full",align:"center",gap:"md",children:jsx(U,{autoFocus:true,allowedChars:e.allowedChars,maxChars:e.maxChars,value:o,corners:"md",width:e.inputWidth,focusColor:e.focusColor,size:e.inputSize||c,placeholder:e.placeholder,showCharCounter:e.showCharCounter,onChange:g,onBlur:x,onEnterKeyPressed:_,onEscapeKeyPressed:()=>p({asClick:false})})}):jsx(d,{spill:"hidden",width:"full",padding:e.contentPadding??["md",["top","bottom"]],corners:"sm",fontSize:e.fontSize||c,cursor:"text",css:{transition:"all 200ms linear",":hover":{backgroundColor:"onSurface[0.1]"}},onDoubleClick:s==="dblclick"?()=>p({asClick:false}):void 0,onClick:s==="click"?D:void 0,children:jsx(ge,{...e.slotProps?.popover,allowInteractions:true,asChild:e.showPopoverOnHover?!!o:e.slotProps?.popover?.asChild,content:(e.slotProps?.popover?.content||e.renderPopoverContent?.(o))??o,displayAction:"hover",maxWidth:e.slotProps?.popover?.maxWidth||"10rem",maxHeight:e.slotProps?.popover?.maxHeight||"5rem",children:jsx("span",{style:G({opacity:e.placeholder&&!o?.85:1,width:"100%"}),children:o||e.placeholder})})}),e.hideControls!==true&&(e.control||jsx(es,{editing:i,hideControl:typeof e.hideControls=="boolean"?void 0:e.hideControls,onCancel:p,onSave:P,onEdit:y}))]})]})})}function es(e){let r=t=>Array.isArray(e.hideControl)?e.hideControl.includes(t):e.hideControl===t;return e.editing?jsxs(Fragment,{children:[!r("cancel")&&jsx(Zr,{outlined:true,icon:LuX,onClick:e.onCancel}),!r("save")&&jsx(Zr,{preventDefault:true,outlined:true,icon:LuCheck,onClick:e.onSave})]}):r("edit")?void 0:jsx(Zr,{icon:LuPencilLine,onClick:e.onEdit})}function Zr(e){let{padding:r,iconSize:t}=useContext(Go);return jsx(d,{asChildren:e.outlined,corners:"sm",css:{transition:"all 200ms linear",":hover":{backgroundColor:"onSurface[0.1]"}},children:jsx(S,{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:o=>{o.preventDefault();}})})}var rs=Ql;a();var et=createContext(null);function ns(e){return jsx(et,{value:e.itemFade?{fade:e.itemFade}:{fade:.5},children:jsx(d,{...e,size:e.size??"full",centerContent:e.centerContent??true,gap:e.gap||"lg",children:e.children})})}function is(e){let{fade:r}=useContext(et);return jsx(d,{fade:e.disableFade?1:r,size:e.size||"4rem",children:e.element})}function as(e){let{fade:r}=useContext(et);return jsxs(d,{align:"center",gap:e.gap||"sm",children:[jsx(h,{fontWeight:"bold",fontSize:e.titleFontSize||"lg",text:e.title}),jsx(h,{fade:r,fontSize:e.descriptionFontSize,text:e.description})]})}var ls={Root:ns,Indicator:is,Content:as},We=ls;a();var q={sidebar:"fv-sidebar",topbar:"fv-topbar",viewer:"fv-viewer"},Je=createContext(null);function fs(e){let r=C(e.borderColor||"outline[0.1]"),t=le.md;return jsx(Je.Provider,{value:{borderColor:r,corners:t,navThickness:e.navThickness||"3rem"},children:jsx(d,{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:`"${q.topbar} ${q.topbar}" "${q.sidebar} ${q.viewer}"`,boxShadow:"rgba(0, 0, 0, 0.35) 0px 5px 15px"},children:e.children})})}function ms(e){let{navThickness:r}=useContext(Je),t=gr(e.file.typeAlias);return jsxs(d,{row:true,align:"center",children:[jsx(t.filled,{style:b({size:r||e.styles?.icon?.size,color:"pdf",style:{padding:b({padding:e.styles?.icon?.padding||".65rem"})?.padding}})}),jsxs(d,{children:[jsx(h,{color:e.styles?.filename?.color,fontWeight:e.styles?.filename?.fontWeight,fontSize:e.styles?.filename?.fontSize||"1rem",text:e.file.name}),jsxs(d,{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(h,{fontWeight:"bold",text:(e.file.ext||e.file.typeAlias)?.toUpperCase()}),jsx(d,{size:e.styles?.fileMetadataSeparator?.size||".3rem",corners:e.styles?.fileMetadataSeparator?.corners??"circle",backgroundColor:e.styles?.fileMetadataSeparator?.color||"onSurface"}),jsx(h,{fade:.75,text:format("file-size",e.file.sizeInBytes)})]})]})]})}function gs(e){let{navThickness:r}=useContext(Je),{children:t,...o}=e;return jsx(d,{...o,row:true,id:q.topbar,height:r,width:"full",align:"center",gap:e.gap??"md",padding:e.children?["md","right"]:void 0,justify:e.justify||"space-between",style:{...e.style,gridArea:q.topbar},children:e.children})}var Ko=createContext(null);function vs(e){let{children:r,onOptionClick:t,...o}=e,{navThickness:n}=useContext(Je);return jsx(Ko.Provider,{value:{onOptionClick:i=>e.onOptionClick?.(i)},children:jsx(d,{...o,id:q.sidebar,height:"full",width:n,align:"center",gap:o.gap||"md",padding:["md",["top","bottom"]],style:{...o.style,gridArea:q.sidebar},children:e.children})})}function ys(e){let{onOptionClick:r}=useContext(Ko),t=()=>{e.onClick?.(),r(e.label);};return jsx(ge,{displayAction:"hover",placement:"right",fontSize:"sm",content:e.label,asChild:e.disabled,children:jsx(d,{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 hs(e){let{borderColor:r,corners:t}=useContext(Je),o=useRef(null);useEffect(()=>{n();let i=new MutationObserver(l=>{for(let s of l)s.type==="childList"&&n();});return i.observe(o.current?.parentNode,{childList:true}),()=>{i.disconnect();}},[]);let n=()=>{let i=["sidebar","topbar"],l=o.current?.parentElement,s=i.filter(c=>l?.querySelector(`#${q[c]}`));i.every(c=>s.includes(c))?Object.assign(o.current?.style,{borderRadius:`${t} 0 0 0`,borderColor:`${r} transparent transparent ${r}`}):s.includes("sidebar")?Object.assign(o.current?.style,{borderRadius:`${t} 0 0 ${t}`,borderLeftColor:r}):s.includes("topbar")?Object.assign(o.current?.style,{borderRadius:0,borderTopColor:r}):Object.assign(o.current?.style,{borderRadius:t,borderColor:r});};return jsx(d,{ref:o,size:"full",centerContent:e.centerContent??true,backgroundColor:e.backgroundColor||"onSurface[0.1]",color:e.color||"onSurface",spill:"hidden",borderColor:"transparent",style:{gridArea:q.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})}var ps={Root:fs,Sidebar:vs,SidebarOption:ys,Topbar:gs,Viewer:hs,Indicator:ms},Cs=ps;a();function _s(e){let r=!!e.tint,t=Be.img(e.sx);return jsx(t,{...de(e),loading:"lazy",decoding:"async",fetchPriority:"high",src:e.src,alt:e.alt,style:{...b(e),filter:r?`drop-shadow(0px 1000px 0 ${C(e.tint)})`:void 0,transform:r&&"translateY(-1000px)",objectFit:e.noFit?"none":e.fill?"fill":e.cover?"cover":e.scaleDown?"scale-down":"contain"}})}var ce=_s;a();function xs(e){let r=o=>e.onItemClick?.(o),t=e.bold??e.items.some(o=>typeof o=="object");return jsx(d,{gap:e.gap||"md",width:e.width,height:e.height,children:e.items.map((o,n)=>typeof o=="string"?jsx(tt,{index:n,item:o,bold:t,active:e.isItemActive(o),completed:e.isItemCompleted(o),onClick:r},o):jsxs(d,{width:"full",children:[jsx(tt,{index:n,bold:t,item:o.label,active:o.nestedItems.some(i=>e.isItemActive(i)),completed:o.nestedItems.every(i=>e.isItemCompleted(i)),onClick:o.nestedItems?.[0]?()=>r(o.nestedItems[0]):void 0}),jsx(d,{width:"full",children:o.nestedItems.map((i,l)=>jsx(tt,{index:l,fontSize:"sm",nested:true,item:i,active:e.isItemActive(i),completed:e.isItemCompleted(i),onClick:r},i))})]},o.label))})}function tt(e){let r=re.white,t=X.onSurface,o=e.nested?t:X.tertiaryContainer,n=e.active?o:re.carlsbergGreen,i=e.active&&!e.nested?o:X["onSurface[0.25]"],l=e.nested?X["onSurface[0.4]"]:X["onSurface[0.5]"],s=X["onSurface[0.2]"],c=()=>e.onClick?.(e.item),g=IoMdCheckmark;return jsxs(d,{row:true,gap:"md",clickable:true,width:"full",fontSize:e.fontSize||"md",align:"center",onClick:c,css:{transition:"all 300ms linear",color:e.completed&&!(e.nested&&e.active)?i:e.active?o:l,borderColor:e.completed?n:e.active?o:s,":hover":e.active?void 0:{color:t,borderColor:e.completed&&!e.nested?void 0:t}},children:[jsx(d,{corners:"circle",centerContent:true,size:"1.5rem",style:{textAlign:"center",flexShrink:0},borderColor:"inherit",backgroundColor:e.completed?n:void 0,color:e.completed?r:"inherit",fade:e.nested?0:1,padding:e.completed?void 0:"md",children:e.completed?jsx(g,{fontSize:"1rem"}):jsx(h,{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(g,{size:"1.25rem",opacity:.75})]})}var Jr=xs;a();var Xe=createContext(null);function Ds(e){let r=e.columnWeight||"1fr",t=["none",0].includes(e.separatorColor)?void 0:e.separatorColor??"onSurface[0.25]",o=P=>(e.selectable?"auto ":"")+P.map(_=>typeof _=="string"||!_.weight?r:_.weight).join(" "),n=!!e.selectedRows,[i,l]=useState(e.defaultSelectedRows||[]),[s,c]=useState(o(e.columns)),g=i.length===e.entries.length&&e.entries.length>0,v=(Array.isArray(e.children)?e.children:[e.children]).filter((P,y)=>y<2),m=()=>{let P=[];g||(P=e.entries.map((y,_)=>_)),e.onSelectedRowsChange?.(P),n||l(P);},p=P=>{let y=[...i];y.includes(P)?y=y.filter(_=>_!==P):y.push(P),e.onSelectedRowsChange?.(y),n||l(y);},x=()=>e.columnWeight?e.columns.map(P=>{let y=typeof P=="object"?P:{};return {...y,name:Ne(P),weight:"weight"in y?y.weight:e.columnWeight}}):e.columns;return jsx(Xe.Provider,{value:{...e,gridCols:s,selectedRowIndices:n?e.selectedRows:i,separatorColor:t,allRowsSelected:g,onSelectRowClick:p,onSelectAllRowsClick:m,columns:x(),padding:e.padding??"sm",columnGap:e.columnGap??e.gap??"lg",rowGap:e.rowGap??e.gap,onAutoColumnWidthsComputed:P=>{let y=e.columns.map(_=>{let D=P.get(Ne(_));return D?{..._,weight:`${D}px`}:_});c(o(y));}},children:jsx(d,{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"'},children:v})})}function ws(e){let r=useContext(Xe),t=e.separatorColor||r.separatorColor;return jsxs(d,{grid:true,gridCols:r.gridCols,gap:r.columnGap,borderColor:e.borderColor||(t?[t,"bottom"]:void 0),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"},children:[r.selectable&&jsx(Qo,{selected:r.allRowsSelected,onClick:r.onSelectAllRowsClick}),r.columns.map((o,n)=>{let i=Ne(o);return jsx(h,{size:"full",borderColor:t&&n!==lastIndex(r.columns)?[t,"right"]:void 0,textAlign:e.textAlign??r.textAlign,text:!e.formatColumnName||e.formatColumnName==="camelToLetter"?camelCaseToLetter(i):e.formatColumnName?.(i)??i,style:{flexGrow:1}},i+n)})]})}function Ts(e){let r=useContext(Xe),t=new Map;return useEffect(()=>()=>{t.clear();},[]),jsx(d,{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((o,n)=>jsx(Es,{rowData:o,index:n,onColWidthComputed:(i,l)=>{let s=t.get(i);(!s||l>s)&&t.set(i,l);},onCellRendered:i=>{let l=n===lastIndex(r.entries),s=i===lastIndex(r.columns);l&&s&&t.size>0&&r.onAutoColumnWidthsComputed(t);}},n))})}function Es(e){let r=useContext(Xe),t=r.selectedRowIndices.includes(e.index),o=()=>{r.onSelectRowClick(e.index);};return jsxs(d,{width:"full",grid:true,align:"center",gridCols:r.gridCols,gap:r.columnGap,padding:r.padding??e.padding,backgroundColor:t?"onSurface[0.1]":"transparent",children:[r.selectable&&jsx(Qo,{selected:t,onClick:o}),r.columns.map((n,i)=>{let l=Ne(n),s=e.rowData[l],c=typeof n=="object"?n?.placeholder:void 0,g=()=>{e.onCellRendered?.(i);},v=i+Ne(n);return typeof n=="object"&&n.weight==="auto"?jsx(Fs,{data:s,placeholder:c,onWidthComputed:m=>e.onColWidthComputed(l,m),onRender:g},v):jsx(en,{placeholder:c,data:s,onRender:g},v)})]})}function Qo(e){let r=useContext(Xe),{disableSeparator:t,separatorColor:o}=r.slotProps?.selectColumn||{},n=o||r.separatorColor;return jsx(d,{padding:t?void 0:["md","right"],borderColor:n&&!t?[n,"right"]:void 0,children:jsx(Hr,{padding:"sm",iconSize:".85rem",checked:e.selected,onChange:e.onClick})})}function Fs(e){let r=useRef(null);return useEffect(()=>{r.current?e.onWidthComputed(parseFloat(getComputedStyle(r.current).width)):console.error(new Error("Failed to compute style for an Auto cell",{cause:{data:e.data,cellRef:r}}));},[]),jsx(en,{data:e.data,placeholder:e.placeholder,noWrap:true,ref:r,onRender:e.onRender})}function en(e){return useEffect(()=>{e.onRender?.();},[]),typeof e.data=="string"?jsx(h,{style:{whiteSpace:e.noWrap?"nowrap":void 0},ref:e.ref,children:e.data}):e.data?e.ref?jsx("div",{ref:e.ref,style:{width:"100%",overflow:"hidden"},children:e.data}):e.data:jsx(h,{ref:e.ref,fade:.75,width:"full",text:e.placeholder??"-"})}var Ne=e=>typeof e=="string"?e:e.name,Rs={Root:Ds,Header:ws,Body:Ts},zs=Rs;a();var tn=(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))(tn||{});function Os(e){let r=tn[e.size||"sm"];return jsx(d,{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})}var it=Os;a();function Ms(e){return jsxs(d,{row:true,clickable:true,width:"full",align:"center",justify:"space-between",corners:"lg",backgroundColor:"surfaceVariant[0.1]",padding:"lg",onClick:()=>{let t=(o,n=false)=>typeof o=="string"?o:Object.entries(o).map(([i,l],s,c)=>`${n?" ":""}${i}: ${[void 0,null,""].includes(l)?null:typeof l=="object"?`{
|
|
17
|
+
`}function vm(e,r){return {display:"flex",justifyContent:"center",alignItems:"center",flexDirection:r?"column":"row",...e}}function ym(e,r){let t=o=>"affectedCorners"in e&&typeof e.affectedCorners=="string"?o.includes(e.affectedCorners)?e.radius:void 0:"affectedCorners"in e?e.affectedCorners.includes(o)?e.radius:void 0:e[o];return {...r,borderTopLeftRadius:t("top-left"),borderTopRightRadius:t("top-right"),borderBottomLeftRadius:t("bottom-left"),borderBottomRightRadius:t("bottom-right")}}function hm(e){let r=typeof e.disabledCurves=="function"?e.disabledCurves():e.disabledCurves,t=n=>r==="both"||r===n?0:e.curveRadius||le.md;return {borderTopLeftRadius:t("left"),borderBottomLeftRadius:t("left"),borderTopRightRadius:t("right"),borderBottomRightRadius:t("right")}}function pm(e){let r=0,t=0,o=0,n=0;document.getElementById(e.id+"header")?document.getElementById(e.id+"header").onmousedown=i:e.onmousedown=i;function i(c){c.preventDefault(),o=c.clientX,n=c.clientY,document.onmouseup=s,document.onmousemove=l;}function l(c){c.preventDefault(),r=o-c.clientX,t=n-c.clientY,o=c.clientX,n=c.clientY,e.style.top=e.offsetTop-t+"px",e.style.left=e.offsetLeft-r+"px";}function s(){document.onmouseup=null,document.onmousemove=null;}}function Cm(e){return {...e,margin:0,padding:0}}function U(e,r={apply:true}){return r.apply?Re(1,e):e}function _m(e,r={apply:true}){return r.apply?{...e,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}:e}function Yt(e){let r=e;for(;r&&!Dr(r);)r=r.parentElement;return r}function Kt(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 o=r.offsetHeight;return document.body.removeChild(r),e.offsetHeight>o+2}function C(e,r){if(!e||typeof e!="string")return;let t=r?.preference||"css",o=e.replaceAll(" ",""),{0:n,1:i}=o.split("["),l=()=>X[o],s=()=>i?Mi(ee[n],parseFloat(i)):ee[o];if(t==="css"){if(o in X)return l();if(n in ee)return s()}else if(t==="res"){if(n in ee)return s();if(o in X)return l()}return o}var Ai=e=>/^#([A-Fa-f0-9]{3,4}){1,2}$/.test(e),Hi=e=>parseInt(e.repeat(2/e.length),16);function Mi(e,r=1){let t=(v,m)=>v.match(new RegExp(`.{${m}}`,"g")),o=v=>typeof v<"u"?v/255:typeof r!="number"||r<0||r>1?1:r;if(!Ai(e))throw new Error(`Invalid HEX: ${e}`);let n=Math.floor((e.length-1)/3),i=t(e.slice(1),n),[l,s,c,g]=i.map(Hi);return `rgba(${l}, ${s}, ${c}, ${o(g)})`}function bm(e,r){let t=e.includes(",")?",":" ",o=e.split("").filter(n=>(t+"0123456789").includes(n)).join("").split(t);return o.length===3?o.push(`${r}`):o=o.with(3,`${r}`),"rgba("+o.join(t)+")"}function Sm(e){return window.matchMedia(`(max-width:${e})`).matches}function xm(e){return window.matchMedia(`(min-width:${e})`).matches}function Re(e=2,r){return {...r,overflow:"hidden",width:"100%",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical"}}function Li(e){return e*16}function Pm(e){return `${Li(e)}px`}function Dr(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function Bm(e){let r=document.body,t=e.replace("var(","").replace(")","");return getComputedStyle(r).getPropertyValue(t)}a();var Vi=Object.freeze({"2xl":"1.75rem",xl:"1.5rem",lg:"1rem",md:"0.5rem",sm:"0.25rem",xs:"0.125rem","2xs":"0.1rem"}),se=Vi;a();var Wi=Object.freeze({"2xl":"1.75rem",xl:"1.5rem",lg:"1.25rem",md:"1rem",sm:"0.85rem",xs:"0.75rem","2xs":"0.65rem"}),V=Wi;var ar=["top","right","bottom","left"],qt=(e,r)=>`translate(${e}, ${r})`,Zt=e=>`translateX(${e})`,Qt=e=>`translateY(${e})`,$i=(e,r)=>{let t=e.fontSize in V?V[e.fontSize]:e.fontSize,{overflowX:o,overflowY:n}=(()=>{let s=e?.spill||{};if(s)return {overflowX:typeof s=="string"?s:s?.x||"visible",overflowY:typeof s=="string"?s:s?.y||"visible"}})();function i(s){return e.style?.[s]?e.style[s]:(e.size||e.size===0)&&(s==="height"||s==="width")?e.size==="full"?"100%":e.size:e[s]==="full"?"100%":e[s]}let l={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:`${C(e.scrollbarThumbColor||"inherit")} ${C(e.scrollbarThumbColor||"inherit")}`,transform:e.centerSelf===true?qt("-50%","-50%"):e.centerSelf==="x"?Zt("-50%"):e.centerSelf==="y"?Qt("-50%"):e.translate?.x&&e.translate?.y?qt(e.translate.x,e.translate.y):e.translate?.x?Zt(e.translate.x):e.translate?.y?Qt(e.translate.y):void 0,position:e.pos==="absolute"||e.centerSelf?"absolute":e.pos,padding:Ui(e.padding),fontSize:t,fontWeight:e.fontWeight,border:e.border,borderColor:Ji(e.borderColor),borderWidth:Ni(e.borderWidth,e.borderColor?"1px":void 0),borderStyle:Xi(e.borderStyle,e.borderColor?"solid":void 0),lineHeight:t?`calc(${t} + (${t} * .15))`:void 0,borderRadius:Gi(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:C(e.backgroundColor),color:C(e.color),gap:ji(e.gap),overflowX:o,overflowY:n,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(l).forEach(s=>{let c=s,g=l[c];typeof g=="string"&&(g=g.trim()),!g&&g!==0&&delete l[c];}),(r||e.debug)&&console.log({props:e,style:l}),l};function Ji(e){if(!e)return;let r="transparent";return typeof e=="string"?C(e):ar.map(t=>{if(Array.isArray(e)){let{0:o,1:n}=e;return (Array.isArray(n)?n.includes(t):[t,"all"].includes(n))?C(o):r}return typeof e=="object"&&t in e?C(e[t]):r}).join(" ")}function Ni(e,r){if(!e)return r;let t=0;return typeof e=="string"?e:ar.map(o=>{if(Array.isArray(e)){let{0:n,1:i}=e;return (Array.isArray(i)?i.includes(o):[o,"all"].includes(i))?n:t}return typeof e=="object"&&o in e?e[o]:t}).join(" ")}function Xi(e,r){if(!e)return r;let t=0;return typeof e=="string"?e:ar.map(o=>{if(Array.isArray(e)){let{0:n,1:i}=e;return (Array.isArray(i)?i.includes(o):[o,"all"].includes(i))?n:t}return typeof e=="object"&&o in e?e[o]:t}).join(" ")}function Ui(e){let t=o=>o?o in se?se[o]:o:"0px";return e?typeof e=="string"?t(e):ar.map(o=>{if(Array.isArray(e)){let{0:n,1:i}=e;return (Array.isArray(i)?i.includes(o):i===o)?t(n):"0px"}return typeof e=="object"&&o in e?t(e[o]):"0px"}).join(" "):"0px"}function Gi(e){let t=n=>n?n in le?le[n]:n:0;return e?typeof e=="string"?t(e):["topLeft","topRight","bottomRight","bottomLeft"].map(n=>{let i=e?.[n];return n.includes("top")&&e?.top?t(e.top):n.includes("bottom")&&e?.bottom?t(e.bottom):i?t(i):0}).join(" "):0}function ji(e){if(!(!e||typeof e!="string"))return e in se?se[e]:e}var b=$i;var ra=["inherit","sm","md","lg","xl","2xl","xs"],ta=["sm","md","lg","xl","2xl","xs","2xs"];function eo(e){let[r,t]=useState(false),o=e.disabled||r,n=async m=>{if(!o){if(!e.async)return e.onClick?.(m);t(true),await e.onClick?.(m),setTimeout(()=>t(false),e.pendingDelay||1);}},i=m=>{if(m){if(typeof m==typeof FaFolder){let p=x=>typeof x=="string"&&[...ra].includes(x);return jsx(Icon,{size:p(e.iconSize)?e.iconSize:void 0,boxSize:p(e.iconSize)?void 0:e.iconSize,as:m})}return m}},l=i(e.leadingEl),s=i(e.trailingEl),c=m=>typeof m=="string"&&[...ta].includes(m),{size:g,...v}=e;return jsxs(Button,{...ae(e),disabled:o,size:c(g)?g:void 0,style:b({...v,size:c(g)?void 0:g,clickable:!o,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:o?e.disabledOpacity||.5:e.fade||1,pos:r?"relative":e.pos,height:e.height||"fit-content",width:e.width||"fit-content"}),onClick:n,onMouseDown:e.onMouseDown,children:[l,e.text,e.children,s,r&&jsx(AbsoluteCenter,{children:jsx(Spinner,{size:"sm",animationDuration:"slowest",borderWidth:".1rem",color:e.spinnerColor?C(e.spinnerColor):"blue.500"})})]})}var ce=e=>r=>jsx(eo,{...(()=>{let o={...r,...e.preset};for(let n of Object.keys(e.optional||{})){let i=n,l=i in o,s=[void 0,null].includes(o[i]);(!l||s)&&(o[i]=e.optional[i]);}return o})()}),S=eo;a();a();a();a();a();function sr(){return sr=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o]);}return e},sr.apply(null,arguments)}a();a();function ro(e){for(var r=0,t,o=0,n=e.length;n>=4;++o,n-=4)t=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&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(n){case 3:r^=(e.charCodeAt(o+2)&255)<<16;case 2:r^=(e.charCodeAt(o+1)&255)<<8;case 1:r^=e.charCodeAt(o)&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)}a();var to={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};a();function cr(e){var r=Object.create(null);return function(t){return r[t]===void 0&&(r[t]=e(t)),r[t]}}var ia=/[A-Z]|^ms/g,aa=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ao=function(r){return r.charCodeAt(1)===45},oo=function(r){return r!=null&&typeof r!="boolean"},wr=cr(function(e){return ao(e)?e:e.replace(ia,"-$&").toLowerCase()}),no=function(r,t){switch(r){case "animation":case "animationName":if(typeof t=="string")return t.replace(aa,function(o,n,i){return j={name:n,styles:i,next:j},n})}return to[r]!==1&&!ao(r)&&typeof t=="number"&&t!==0?t+"px":t};function ze(e,r,t){if(t==null)return "";var o=t;if(o.__emotion_styles!==void 0)return o;switch(typeof t){case "boolean":return "";case "object":{var n=t;if(n.anim===1)return j={name:n.name,styles:n.styles,next:j},n.name;var i=t;if(i.styles!==void 0){var l=i.next;if(l!==void 0)for(;l!==void 0;)j={name:l.name,styles:l.styles,next:j},l=l.next;var s=i.styles+";";return s}return sa(e,r,t)}case "function":{if(e!==void 0){var c=j,g=t(e);return j=c,ze(e,r,g)}break}}var v=t;if(r==null)return v;var m=r[v];return m!==void 0?m:v}function sa(e,r,t){var o="";if(Array.isArray(t))for(var n=0;n<t.length;n++)o+=ze(e,r,t[n])+";";else for(var i in t){var l=t[i];if(typeof l!="object"){var s=l;r!=null&&r[s]!==void 0?o+=i+"{"+r[s]+"}":oo(s)&&(o+=wr(i)+":"+no(i,s)+";");}else {if(Array.isArray(l)&&typeof l[0]=="string"&&(r==null||r[l[0]]===void 0))for(var c=0;c<l.length;c++)oo(l[c])&&(o+=wr(i)+":"+no(i,l[c])+";");else {var g=ze(e,r,l);switch(i){case "animation":case "animationName":{o+=wr(i)+":"+g+";";break}default:o+=i+"{"+g+"}";}}}}return o}var io=/label:\s*([^\s;{]+)\s*(;|$)/g,j;function lo(e,r,t){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var o=true,n="";j=void 0;var i=e[0];if(i==null||i.raw===void 0)o=false,n+=ze(t,r,i);else {var l=i;n+=l[0];}for(var s=1;s<e.length;s++)if(n+=ze(t,r,e[s]),o){var c=i;n+=c[s];}io.lastIndex=0;for(var g="",v;(v=io.exec(n))!==null;)g+="-"+v[1];var m=ro(n)+g;return {name:m,styles:n,next:j}}a();var ca=typeof document<"u",so=function(r){return r()},da=re.useInsertionEffect?re.useInsertionEffect:false,co=ca&&da||so;a();var Tr=typeof document<"u";function uo(e,r,t){var o="";return t.split(" ").forEach(function(n){e[n]!==void 0?r.push(e[n]+";"):n&&(o+=n+" ");}),o}var Er=function(r,t,o){var n=r.key+"-"+t.name;(o===false||Tr===false&&r.compat!==void 0)&&r.registered[n]===void 0&&(r.registered[n]=t.styles);},fo=function(r,t,o){Er(r,t,o);var n=r.key+"-"+t.name;if(r.inserted[t.name]===void 0){var i="",l=t;do{var s=r.insert(t===l?"."+n:"",l,r.sheet,true);!Tr&&s!==void 0&&(i+=s),l=l.next;}while(l!==void 0);if(!Tr&&i.length!==0)return i}};a();var ua=/^((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)-.*))$/,mo=cr(function(e){return ua.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});var ga=typeof document<"u",ya=mo,ha=function(r){return r!=="theme"},go=function(r){return typeof r=="string"&&r.charCodeAt(0)>96?ya:ha},vo=function(r,t,o){var n;if(t){var i=t.shouldForwardProp;n=r.__emotion_forwardProp&&i?function(l){return r.__emotion_forwardProp(l)&&i(l)}:i;}return typeof n!="function"&&o&&(n=r.__emotion_forwardProp),n},pa=function(r){var t=r.cache,o=r.serialized,n=r.isStringTag;Er(t,o,n);var i=co(function(){return fo(t,o,n)});if(!ga&&i!==void 0){for(var l,s=o.name,c=o.next;c!==void 0;)s+=" "+c.name,c=c.next;return re.createElement("style",(l={},l["data-emotion"]=t.key+" "+s,l.dangerouslySetInnerHTML={__html:i},l.nonce=t.sheet.nonce,l))}return null},yo=function e(r,t){var o=r.__emotion_real===r,n=o&&r.__emotion_base||r,i,l;t!==void 0&&(i=t.label,l=t.target);var s=vo(r,t,o),c=s||go(n),g=!c("as");return function(){var v=arguments,m=o&&r.__emotion_styles!==void 0?r.__emotion_styles.slice(0):[];if(i!==void 0&&m.push("label:"+i+";"),v[0]==null||v[0].raw===void 0)m.push.apply(m,v);else {var p=v[0];m.push(p[0]);for(var x=v.length,P=1;P<x;P++)m.push(v[P],p[P]);}var y=withEmotionCache(function(_,D,R){var z=g&&_.as||n,xe="",Lt=[],rr=_;if(_.theme==null){rr={};for(var Vt in _)rr[Vt]=_[Vt];rr.theme=re.useContext(ThemeContext);}typeof _.className=="string"?xe=uo(D.registered,Lt,_.className):_.className!=null&&(xe=_.className+" ");var tr=lo(m.concat(Lt),D.registered,rr);xe+=D.key+"-"+tr.name,l!==void 0&&(xe+=" "+l);var mi=g&&s===void 0?go(z):c,or={};for(var nr in _)g&&nr==="as"||mi(nr)&&(or[nr]=_[nr]);return or.className=xe,R&&(or.ref=R),re.createElement(re.Fragment,null,re.createElement(pa,{cache:D,serialized:tr,isStringTag:typeof z=="string"}),re.createElement(z,or))});return y.displayName=i!==void 0?i:"Styled("+(typeof n=="string"?n:n.displayName||n.name||"Component")+")",y.defaultProps=r.defaultProps,y.__emotion_real=y,y.__emotion_base=n,y.__emotion_styles=m,y.__emotion_forwardProp=s,Object.defineProperty(y,"toString",{value:function(){return "."+l}}),y.withComponent=function(_,D){var R=e(_,sr({},t,D,{shouldForwardProp:vo(y,D,true)}));return R.apply(void 0,m)},y}};Si(ho());var Ca=["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"],Pe=yo.bind(null);Ca.forEach(function(e){Pe[e]=Pe(e);});var Rr=class{static getStyle(r){if(r)return JSON.parse(JSON.stringify(r||{}),(t,o)=>t==="backgroundColor"||t==="color"?C(o):o)}static span=r=>Pe.span({...this.getStyle(r)});static div=r=>Pe.div({...this.getStyle(r)});static img=r=>Pe.img({...this.getStyle(r)})},Be=Rr;function Pa(e){let r=useRef(null),[t,o]=useState(false),n=w({top:0,left:0});e.rememberScrollPos&&useEffect(()=>{let v=n.read();r.current&&[v.top,v.left].some(m=>!!m)&&(r.current.scrollTop=v?.top??0,r.current.scrollLeft=v?.left??0);},e.updateScrollPosDeps),(e.rememberScrollPos||e.overflowPadding)&&useEffect(()=>{r.current&&Dr(r.current)&&!t&&o(true);},[]);let i="10%",l=`linear-gradient(to bottom, transparent, black calc(${i}/4), black calc(100% - ${i}), transparent) `,s=e.decreaseYFaderPadding?"2vh":"5rem",c=b({...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?s:void 0,bottom:e.enableYFaders?s:void 0}}),g=Be.div(e.css);if(!e.hide)return e.asChildren?e.children:jsx(g,{...ae(e),ref:e.rememberScrollPos||e.overflowPadding?r:e.ref,draggable:e.draggable,onScroll:v=>{let m=r?.current?.scrollTop,p=r?.current?.scrollLeft;!t&&e.overflowPadding&&o(true),isEmpty(strictArray([m,p]))||n.upsert({top:m??0,left:p??0}),e.onScroll?.(v);},style:{...c,display:e.grid?"grid":c.display||"flex",flexWrap:c.flexWrap||(e.flexWrap?"wrap":void 0),gridTemplateColumns:c?.gridTemplateColumns||e.gridCols||"1fr",gridTemplateRows:c?.gridTemplateRows||e.gridRows,WebkitMaskImage:e.enableYFaders&&l,maskImage:e.enableYFaders&&l},children:e.children})}var d=Pa;a();function ka(e){let r=!!e.tint,t=Be.img(e.sx);return jsx(t,{...ae(e),loading:"lazy",decoding:"async",fetchPriority:"high",src:e.src,alt:e.alt,style:{...b(e),filter:r?`drop-shadow(0px 1000px 0 ${C(e.tint)})`:void 0,transform:r&&"translateY(-1000px)",objectFit:e.noFit?"none":e.fill?"fill":e.cover?"cover":e.scaleDown?"scale-down":"contain"}})}var de=ka;a();function Ta(e){let r=o=>e.onItemClick?.(o),t=e.bold??e.items.some(o=>typeof o=="object");return jsx(d,{gap:e.gap||"md",width:e.width,height:e.height,children:e.items.map((o,n)=>typeof o=="string"?jsx(zr,{index:n,item:o,bold:t,active:e.isItemActive(o),completed:e.isItemCompleted(o),onClick:r},o):jsxs(d,{width:"full",children:[jsx(zr,{index:n,bold:t,item:o.label,active:o.nestedItems.some(i=>e.isItemActive(i)),completed:o.nestedItems.every(i=>e.isItemCompleted(i)),onClick:o.nestedItems?.[0]?()=>r(o.nestedItems[0]):void 0}),jsx(d,{width:"full",children:o.nestedItems.map((i,l)=>jsx(zr,{index:l,fontSize:"sm",nested:true,item:i,active:e.isItemActive(i),completed:e.isItemCompleted(i),onClick:r},i))})]},o.label))})}function zr(e){let r=ee.white,t=X.onSurface,o=e.nested?t:X.tertiaryContainer,n=e.active?o:ee.carlsbergGreen,i=e.active&&!e.nested?o:X["onSurface[0.25]"],l=e.nested?X["onSurface[0.4]"]:X["onSurface[0.5]"],s=X["onSurface[0.2]"],c=()=>e.onClick?.(e.item),g=IoMdCheckmark;return jsxs(d,{row:true,gap:"md",clickable:true,width:"full",fontSize:e.fontSize||"md",align:"center",onClick:c,css:{transition:"all 300ms linear",color:e.completed&&!(e.nested&&e.active)?i:e.active?o:l,borderColor:e.completed?n:e.active?o:s,":hover":e.active?void 0:{color:t,borderColor:e.completed&&!e.nested?void 0:t}},children:[jsx(d,{corners:"circle",centerContent:true,size:"1.5rem",style:{textAlign:"center",flexShrink:0},borderColor:"inherit",backgroundColor:e.completed?n:void 0,color:e.completed?r:"inherit",fade:e.nested?0:1,padding:e.completed?void 0:"md",children:e.completed?jsx(g,{fontSize:"1rem"}):jsx(h,{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(g,{size:"1.25rem",opacity:.75})]})}var Or=Ta;a();function Fa(e){let r=i=>e.ellipsis?U(i):e.lineLimit?Re(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(),o=b({...e,color:e.fakeHyperlink||e.hyperlink?"hyperlink":e.color,cursor:e.link||e.hyperlink||e.clickable?"pointer":e.cursor}),n=Be.span(e.sx);return jsx(n,{...ae(e),ref:e.ref,style:r({...o,width:e.ellipsis?"100%":o.width,textAlign:e.textAlign||"justify",fontStyle:e.italic?"italic":void 0,textDecoration:t()||void 0}),children:e.text||e.children})}var h=Fa;a();var Ie=createContext(null);function Aa(e){let r=e.columnWeight||"1fr",t=["none",0].includes(e.separatorColor)?void 0:e.separatorColor??"onSurface[0.25]",o=P=>(e.selectable?"auto ":"")+P.map(_=>typeof _=="string"||!_.weight?r:_.weight).join(" "),n=!!e.selectedRows,[i,l]=useState(e.defaultSelectedRows||[]),[s,c]=useState(o(e.columns)),g=i.length===e.entries.length&&e.entries.length>0,v=(Array.isArray(e.children)?e.children:[e.children]).filter((P,y)=>y<2),m=()=>{let P=[];g||(P=e.entries.map((y,_)=>_)),e.onSelectedRowsChange?.(P),n||l(P);},p=P=>{let y=[...i];y.includes(P)?y=y.filter(_=>_!==P):y.push(P),e.onSelectedRowsChange?.(y),n||l(y);},x=()=>e.columnWeight?e.columns.map(P=>{let y=typeof P=="object"?P:{};return {...y,name:Oe(P),weight:"weight"in y?y.weight:e.columnWeight}}):e.columns;return jsx(Ie.Provider,{value:{...e,gridCols:s,selectedRowIndices:n?e.selectedRows:i,separatorColor:t,allRowsSelected:g,onSelectRowClick:p,onSelectAllRowsClick:m,columns:x(),padding:e.padding??"sm",columnGap:e.columnGap??e.gap??"lg",rowGap:e.rowGap??e.gap,onAutoColumnWidthsComputed:P=>{let y=e.columns.map(_=>{let D=P.get(Oe(_));return D?{..._,weight:`${D}px`}:_});c(o(y));}},children:jsx(d,{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"'},children:v})})}function Ha(e){let r=useContext(Ie),t=e.separatorColor||r.separatorColor;return jsxs(d,{grid:true,gridCols:r.gridCols,gap:r.columnGap,borderColor:e.borderColor||(t?[t,"bottom"]:void 0),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"},children:[r.selectable&&jsx(bo,{selected:r.allRowsSelected,onClick:r.onSelectAllRowsClick}),r.columns.map((o,n)=>{let i=Oe(o);return jsx(h,{size:"full",borderColor:t&&n!==lastIndex(r.columns)?[t,"right"]:void 0,textAlign:e.textAlign??r.textAlign,text:!e.formatColumnName||e.formatColumnName==="camelToLetter"?camelCaseToLetter(i):e.formatColumnName?.(i)??i,style:{flexGrow:1}},i+n)})]})}function Ma(e){let r=useContext(Ie),t=new Map;return useEffect(()=>()=>{t.clear();},[]),jsx(d,{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((o,n)=>jsx(La,{rowData:o,index:n,onColWidthComputed:(i,l)=>{let s=t.get(i);(!s||l>s)&&t.set(i,l);},onCellRendered:i=>{let l=n===lastIndex(r.entries),s=i===lastIndex(r.columns);l&&s&&t.size>0&&r.onAutoColumnWidthsComputed(t);}},n))})}function La(e){let r=useContext(Ie),t=r.selectedRowIndices.includes(e.index),o=()=>{r.onSelectRowClick(e.index);};return jsxs(d,{width:"full",grid:true,align:"center",gridCols:r.gridCols,gap:r.columnGap,padding:r.padding??e.padding,backgroundColor:t?"onSurface[0.1]":"transparent",children:[r.selectable&&jsx(bo,{selected:t,onClick:o}),r.columns.map((n,i)=>{let l=Oe(n),s=e.rowData[l],c=typeof n=="object"?n?.placeholder:void 0,g=()=>{e.onCellRendered?.(i);},v=i+Oe(n);return typeof n=="object"&&n.weight==="auto"?jsx(Va,{data:s,placeholder:c,onWidthComputed:m=>e.onColWidthComputed(l,m),onRender:g},v):jsx(So,{placeholder:c,data:s,onRender:g},v)})]})}function bo(e){let r=useContext(Ie),{disableSeparator:t,separatorColor:o}=r.slotProps?.selectColumn||{},n=o||r.separatorColor;return jsx(d,{padding:t?void 0:["md","right"],borderColor:n&&!t?[n,"right"]:void 0,children:jsx(Po,{padding:"sm",iconSize:".85rem",checked:e.selected,onChange:e.onClick})})}function Va(e){let r=useRef(null);return useEffect(()=>{r.current?e.onWidthComputed(parseFloat(getComputedStyle(r.current).width)):console.error(new Error("Failed to compute style for an Auto cell",{cause:{data:e.data,cellRef:r}}));},[]),jsx(So,{data:e.data,placeholder:e.placeholder,noWrap:true,ref:r,onRender:e.onRender})}function So(e){return useEffect(()=>{e.onRender?.();},[]),typeof e.data=="string"?jsx(h,{style:{whiteSpace:e.noWrap?"nowrap":void 0},ref:e.ref,children:e.data}):e.data?e.ref?jsx("div",{ref:e.ref,style:{width:"100%",overflow:"hidden"},children:e.data}):e.data:jsx(h,{ref:e.ref,fade:.75,width:"full",text:e.placeholder??"-"})}var Oe=e=>typeof e=="string"?e:e.name,Wa={Root:Aa,Header:Ha,Body:Ma},$a=Wa;a();a();function Na(e){return jsxs(d,{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",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.selected&&jsx(LuCheck,{style:{flexShrink:0}}),jsx("span",{children:e.value.toString(),style:U({maxWidth:"100%",flex:"1",alignItems:"start",textAlign:"start"})})]})}var Hr=Na;var ko=createContext(null);function Ka(e){return jsx(ko.Provider,{value:e,children:jsx(ke,{...e,backdropBlur:e.backdropBlur,padding:e.padding||"md",corners:e.corners||"md",displayAction:"click",content:jsx(qa,{})})})}function qa(){let e=useContext(ko),r=Mr(),[t,o]=useState(e.isSelected?e.options.findIndex(i=>e.isSelected(i)):void 0),{triggerRerender:n}=A();return useEffect(()=>{setTimeout(()=>{n();},10);},[]),jsx(d,{spill:"auto",gap:e.gap||"sm",children:e.options.map((i,l)=>{let s=l===t,c=()=>{i.onClick?.(),e.onOptionClick?.(i,l,e.options),o(l),r.close();};return (!i||!i?.value)&&console.error(`Index ${l} is not defined in ${e.options.join()}`),jsx(Hr,{value:i?.value.toString(),disabled:i?.disabled,selected:s,onClick:c},l)})})}var He=Ka;a();a();a();var Do=["Google"],wo=["pdf","word","excel","img","txt","unknown"],To=Object.freeze({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:[]});function Fo(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:Za(e.accepts),children:[jsx(FileUpload.HiddenInput,{onChange:r}),e.children,e.showList&&jsx(FileUpload.List,{...e.slotProps?.fileList})]})}var Za=e=>e.flatMap(r=>To[r]);function mv(e){return jsx(Fo,{...e,children:jsxs(FileUpload.Dropzone,{borderRadius:"xl",height:"full",width:"full",overflow:"hidden",backgroundColor:C(e.backgroundColor||"transparent"),borderColor:C(e.borderColor||"outlineVariant"),color:C(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"})]})})]})})}a();var Ao=createContext(null);function xv(e){let r=w(null),t=w(e.defaultValue??""),[o,n]=useState(e.value??t.read()),[i,l]=useState(false),s=e.activationMode||"click",c=e.size||"md",g=z=>{e.value===void 0&&n(z),e.onChange?.(z);},v=()=>{g(t.read());},m=()=>{e.onEdit?.(),!e.preventDefault&&l(true);},p=(z={asClick:true})=>{r.upsert("cancel"),v(),z.asClick&&e.onCancelClick?.(),l(false);},x=z=>{z.preventDefault(),r.read()!=="save"&&v(),l(false);},P=(z=true)=>{t.upsert(o),z&&(r.upsert("save"),e.onSaveClick?.(o)),e.onSave?.(o),l(false);},y=()=>{r.upsert("edit"),e.onEditClick?.(),m();},_=()=>{P(false);},D=()=>{e.onContentClick?.(),m();},R={align:"center",gap:e.rowGap??"sm",width:e.width,maxWidth:"full"};return jsx(Ao.Provider,{value:{padding:".25rem",iconSize:e.iconSize||c},children:jsxs(d,{...R,asChildren:!e.label,row:false,align:"start",children:[e.label&&jsx(h,{text:e.label,fontSize:V[c],fade:i?.75:.5,style:{transition:"all 200ms linear"}}),jsxs(d,{...R,grid:true,gap:e.columnGap??R.gap,gridCols:e.hideControls===true||Array.isArray(e.hideControls)&&["cancel","save","edit"].every(z=>e.hideControls.includes(z))?"1fr":e.control?"1fr auto":i?"1fr auto auto":"1fr auto",justify:e.spaceBetween?"space-between":void 0,children:[i?jsx(d,{width:"full",align:"center",gap:"md",children:jsx(G,{autoFocus:true,allowedChars:e.allowedChars,maxChars:e.maxChars,value:o,corners:"md",width:e.inputWidth,focusColor:e.focusColor,size:e.inputSize||c,placeholder:e.placeholder,showCharCounter:e.showCharCounter,onChange:g,onBlur:x,onEnterKeyPressed:_,onEscapeKeyPressed:()=>p({asClick:false})})}):jsx(d,{spill:"hidden",width:"full",padding:e.contentPadding??["md",["top","bottom"]],corners:"sm",fontSize:e.fontSize||c,cursor:"text",css:{transition:"all 200ms linear",":hover":{backgroundColor:"onSurface[0.1]"}},onDoubleClick:s==="dblclick"?()=>p({asClick:false}):void 0,onClick:s==="click"?D:void 0,children:jsx(ke,{...e.slotProps?.popover,allowInteractions:true,asChild:e.showPopoverOnHover?!!o:e.slotProps?.popover?.asChild,content:(e.slotProps?.popover?.content||e.renderPopoverContent?.(o))??o,displayAction:"hover",maxWidth:e.slotProps?.popover?.maxWidth||"10rem",maxHeight:e.slotProps?.popover?.maxHeight||"5rem",children:jsx("span",{style:U({opacity:e.placeholder&&!o?.85:1,width:"100%"}),children:o||e.placeholder})})}),e.hideControls!==true&&(e.control||jsx(sl,{editing:i,hideControl:typeof e.hideControls=="boolean"?void 0:e.hideControls,onCancel:p,onSave:P,onEdit:y}))]})]})})}function sl(e){let r=t=>Array.isArray(e.hideControl)?e.hideControl.includes(t):e.hideControl===t;return e.editing?jsxs(Fragment,{children:[!r("cancel")&&jsx(Vr,{outlined:true,icon:LuX,onClick:e.onCancel}),!r("save")&&jsx(Vr,{preventDefault:true,outlined:true,icon:LuCheck,onClick:e.onSave})]}):r("edit")?void 0:jsx(Vr,{icon:LuPencilLine,onClick:e.onEdit})}function Vr(e){let{padding:r,iconSize:t}=useContext(Ao);return jsx(d,{asChildren:e.outlined,corners:"sm",css:{transition:"all 200ms linear",":hover":{backgroundColor:"onSurface[0.1]"}},children:jsx(S,{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:o=>{o.preventDefault();}})})}a();var $r=createContext(null);function ul(e){return jsx($r,{value:e.itemFade?{fade:e.itemFade}:{fade:.5},children:jsx(d,{...e,size:e.size??"full",centerContent:e.centerContent??true,gap:e.gap||"lg",children:e.children})})}function fl(e){let{fade:r}=useContext($r);return jsx(d,{fade:e.disableFade?1:r,size:e.size||"4rem",children:e.element})}function ml(e){let{fade:r}=useContext($r);return jsxs(d,{align:"center",gap:e.gap||"sm",children:[jsx(h,{fontWeight:"bold",fontSize:e.titleFontSize||"lg",text:e.title}),jsx(h,{fade:r,fontSize:e.descriptionFontSize,text:e.description})]})}var fr={Root:ul,Indicator:fl,Content:ml};a();function ue(e){let r=()=>{if(!e.disableFallback){if(typeof e.fallback=="string")return jsx(Avatar.Fallback,{name:e.fallback});if(e.fallback&&re__default.isValidElement(e.fallback))return e.fallback;if(e.fallback){let t=e.fallback;return jsx(t,{size:"50%"})}return jsx(Avatar.Fallback,{})}};return jsxs(Avatar.Root,{size:e.size||"md",backgroundColor:C(e.backgroundColor),color:C(e.color),children:[jsx(r,{}),jsx(Avatar.Image,{src:e.src})]})}a();function Lo(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})]})}a();var Vo=createContext(null);function xl(e){return jsx(Vo.Provider,{value:{gap:e.gap},children:jsx(d,{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,children:e.children})})}function Wo(e){return r=>{let{children:t,className:o,row:n=true,spill:i="hidden",centerContent:l=true,align:s="center",...c}=r;return jsx(d,{className:o,...c,row:n,spill:i,centerContent:l,align:s,children:t})}}function $o(e){return r=>jsx("span",{style:(()=>{let o=b({...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"?o:r.truncateStyle==="ellipsis"?U(o):Re(r.truncateStyle.lineCount,o)})(),children:r.value})}var Pl=Wo(),Bl=Wo(),kl=e=>{let{gap:r=e.gap}=useContext(Vo);return jsx(d,{gap:r,...e,spill:e.spill||"hidden",maxWidth:e.maxWidth||"full",children:e.children})},Dl=$o({fontWeight:"bold",fontSize:"xs",fade:.75}),wl=$o({fontSize:"sm"}),$={Root:xl,LeadingAddOn:Pl,TrailingAddOn:Bl,Content:kl,Label:Dl,Item:wl};a();function Fl(e){let r=()=>{if(typeof e.fallback=="string"||re__default.isValidElement(e.fallback))return e.fallback;let o=e.fallback||PiImageBrokenLight;return jsx(o,{size:"3rem"})};return jsxs(d,{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(d,{centerContent:true,height:e.mediaHeight??"7rem",width:"full",backgroundColor:"surface",color:"onSurface",borderColor:"surface",corners:{top:"lg"},spill:"hidden",children:e.src?jsx(de,{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(d,{width:"full",gap:"md",padding:"md",align:"start",spill:"hidden",children:[jsxs(d,{width:"full",gap:0,spill:"hidden",children:[jsx("span",{children:e.title,style:b({fontSize:e.titleFontSize??"md"})}),e.description&&jsx("span",{children:e.description,style:b({fontSize:e.descriptionFontSize??"xs",fade:.5})})]}),e.children]})]})}function Rl(e){return jsx(d,{...e,width:e.width??"full",spill:e.spill||"hidden",children:e.children})}var ny={Root:Fl,Content:Rl};a();function zl(e){let r={backgroundColor:"onSurface",color:"surface",padding:"md",corners:"lg"},t=i=>e[i]??r[i],o=i=>{if(!e.children)return e[i]||r[i]},n=e.disableBoxShadow?"none":e.style?.boxShadow||"rgba(0, 0, 0, 0.35) 0px 5px 15px";return jsxs(d,{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:n},children:[jsxs(d,{row:true,className:e.children?void 0:e.className,gap:"md",align:"center",height:o("height"),width:o("width"),backgroundColor:o("backgroundColor"),color:o("color"),padding:o("padding"),corners:o("corners"),spill:"hidden",style:e.children?void 0:{...e.style,boxShadow:n},children:[jsx(ue,{src:e.avatarSrc,size:e.avatarSize??"sm",fallback:e.avatarFallback,backgroundColor:e.avatarBackgroundColor,color:e.avatarColor}),jsxs(d,{width:"full",spill:"hidden",children:[jsx("span",{children:e.title,style:U(b({fontSize:e.titleFontSize??"sm",fontWeight:e.titleFontWeight,fade:e.titleFade}))}),jsx("span",{children:e.description,style:U(b({fade:e.descriptionFade??.5,fontSize:e.descriptionFontSize??"xs",fontWeight:e.descriptionFontWeight}))})]})]}),e.children]})}var my={Root:zl,Content:d};a();function Po(e){let[r,t]=useState(e.checked??false),o=()=>{e.onChange?.(!r),e.onClick?.(),t(!r);};return jsx(d,{clickable:true,size:e.size,corners:e.corners??"sm",padding:e.padding??"sm",backgroundColor:r?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:o,children:jsx(IoMdCheckmark,{size:e.iconSize,style:{opacity:r?1:0}})})}a();a();function Ml(e){let{triggerRerender:r}=A(),t=b({...e,padding:e.padding||"xl",corners:e.corners||"md",gap:e.gap||"lg"}),o=({open:i})=>{e.onOpenChange?.(i);},n=()=>{e.onClose?.(),e.rerenderOnClose&&r();};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:o,onExitComplete:n,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 Gr=(e,r)=>t=>{let o=Dialog[e],n={...t,spill:t.spill||"hidden"};return Object.keys(r||{}).forEach(i=>{let l=i;n?.[l]||(n=Object.assign(n,{[l]:r[l]}));}),jsx(o,{width:"full",height:"full",overflow:"hidden",children:jsx(d,{...n,children:t.children})})},Ll=Gr("Header",{fontSize:"xl",fontWeight:"bold"}),Vl=Gr("Body",{gap:"md"}),Wl=Gr("Footer",{row:true,gap:"sm"}),$l=e=>jsx(Dialog.CloseTrigger,{asChild:true,children:e.wrap?jsx("div",{...e.slotProps?.divWrapper,children:e.children}):e.children}),Jl=e=>jsx(Dialog.ActionTrigger,{asChild:true,children:e.children}),k={Root:Ml,Header:Ll,Body:Vl,Footer:Wl,CloseTrigger:$l,ActionTrigger:Jl};function Iy(e){let r=e.severity||"error",t=C(r,{preference:"res"});return jsxs(k.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(k.Header,{fontSize:"2xl",children:e.title}),jsxs(k.Body,{fade:.75,children:[jsx("span",{children:e.message}),e.disclaimer&&jsx(No,{width:"full",facade:o=>o==="error"?"warning":o,hideLabel:e.hideDisclaimerLabel,severity:r,message:e.disclaimer})]}),jsxs(k.Footer,{gap:"md",children:[jsx(k.ActionTrigger,{children:jsx(S,{size:"sm",fade:.75,color:"onSurface",backgroundColor:"transparent",text:e.cancelLabel||"Cancel",onClick:e.onCancelClick})}),jsx(S,{async:true,size:"sm",text:e.action.label,backgroundColor:t,color:"white",onClick:e.action.onClick})]})]})}a();var Yr=createContext(null);function Ny(e){let r=e.sections.flatMap(y=>typeof y=="object"?y.nestedItems:y),t=e.defaultSection?r.findIndex(y=>y===e.defaultSection):0,[o,n]=useState(t>=0?t:0),{triggerRerender:i}=A(),l=w([]),s=r[o],c=Array.isArray(e.ignoredSections)?e.ignoredSections:strictArray([e.ignoredSections]),g=o<=0;e.checkCompletionOnMount&&useEffect(()=>{r.forEach((y,_)=>{m(y,_);}),i();},[]);let v=(y=l.read())=>r.filter(_=>!y.includes(_)&&!c.includes(_)),m=(y=s,_=o)=>{let D=l.read();if(!c.includes(y)){if(e.isSectionComplete(y)&&!D.includes(y))D=[...D,y];else if(!e.isSectionComplete(y)&&D.includes(y))D=D.filter((R,z)=>z!==_);else return;l.upsert(D),e.onSectionsStatusChange?.(v(D),D);}},p=y=>{m(),n(r.findIndex(_=>_===y));},x=()=>{o>=r.length-1||(m(),n(o+1));},P=()=>{g||(m(),n(o-1));};return jsx(Yr.Provider,{value:{activeSection:s,completedSections:l.read(),rawSections:e.sections},children:jsx(k.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(k.Body,{grid:true,gap:"0px",width:"full",height:"full",spill:"hidden",gridCols:".45fr 1fr",children:[jsx(jl,{title:e.title,onSectionClick:p}),jsx(Yl,{hideSubmitButton:e.hideSubmitButton,sectionMapper:e.sectionMapper,previousDisabled:g,onPreviousClick:P,onNextClick:x,incompleteSections:v(),onSubmitClick:e.onSubmit})]})})})}function jl(e){let{rawSections:r,activeSection:t,completedSections:o}=useContext(Yr);return jsxs(d,{size:"full",padding:"xl",backgroundColor:"surfaceContainer",gap:e.title?"xl":void 0,spill:"hidden",children:[e.title&&jsx(d,{fontSize:"lg",fontWeight:"bold",spill:"hidden",children:e.title}),jsx(Or,{width:"full",items:r,isItemActive:n=>t===n,isItemCompleted:n=>o.includes(n),onItemClick:e.onSectionClick})]})}function Yl(e){let{activeSection:r}=useContext(Yr),{title:t,description:o,element:n}=e.sectionMapper[r],i=typeof n=="function"?jsx(n,{incompleteSections:e.incompleteSections}):n;return jsxs(d,{size:"full",backgroundColor:"surfaceContainer[0.5]",padding:"3rem",gap:"xl",grid:true,gridRows:"auto 1fr auto",justify:"space-between",spill:"hidden",children:[jsxs(d,{children:[jsx(h,{text:t,fontSize:"xl",fontWeight:"bold"}),jsx("span",{children:o,style:{opacity:.75}})]}),jsx(d,{size:"full",gap:"lg",children:i}),jsxs(d,{row:true,width:"full",align:"center",justify:"space-between",children:[jsx(qr,{disabled:e.previousDisabled,onClick:e.onPreviousClick}),r==="Submission"?!e.hideSubmitButton&&jsx(Zr,{disabled:!!e.onSubmitClick,onClick:e.onSubmitClick}):jsx(Kr,{onClick:e.onNextClick})]})]})}a();a();var Kl=ce({preset:{text:"Save",async:true}}),Qr=Kl;function th(e){let{triggerRerender:r}=A(),t=w(Object.fromEntries(Object.entries(e.fields).map(([l,s])=>[l,typeof s=="object"&&"defaultValue"in s?s.defaultValue:e.defaultValue?.[l]??""]))),o=e.actionButtionSize||"lg",n=()=>{e.onSave?.(t.read());},i=()=>{e.onCancel?.();};return jsxs(k.Root,{rerenderOnClose:true,width:e.width,closeButtonSize:e.closeButtonSize||"md",controller:e.controller,triggerElement:e.triggerElement,onClose:()=>r(),children:[jsx(k.Header,{fontSize:"2rem",children:e.title||"Edit Form"}),jsx(k.Body,{padding:"xs",children:Object.keys(e.fields).map(l=>{let s=l,c=e.fields[s],g=t.read()?.[s]??"",v=typeof c.label=="function"?c.label(l):!c.label||c.label==="prop-name"?e.formatFieldPropName?.(l)??l:c.label,m=p=>t.upsert(x=>({...x||{},[s]:p}));return c.options?jsx(Zl,{label:v,size:e.textfieldSize,defaultValue:g,disabled:c.disabled,placeholder:c.placeholder,options:c.options,onChange:m},l):jsx(G,{width:"full",placeholder:c.placeholder,label:v,size:e.textfieldSize,defaultValue:g,disabled:c.disabled,allowedChars:c.allowedChars||e.allowedChars,onChange:m},s)})}),jsxs(k.Footer,{children:[jsx(k.ActionTrigger,{children:jsx($e,{fade:.5,size:o,onClick:i})}),jsx(k.ActionTrigger,{children:jsx(Qr,{size:o,onClick:n})})]})]})}function Zl(e){let[r,t]=useState(e.defaultValue),o=({value:n})=>{e.onChange(n),t(n);};return jsx(He,{wrap:true,asChild:e.disabled,width:"match-anchor",maxHeight:"10rem",isSelected:({value:n})=>r===n,options:e.options.map(n=>({value:n.trim()})),onOptionClick:o,slotProps:{divWrapper:{style:{width:"100%"}}},children:jsx(G,{readOnly:true,size:e.size,disabled:e.disabled,label:e.label,width:"full",value:r,placeholder:e.placeholder})})}a();var Z={sidebar:"fv-sidebar",topbar:"fv-topbar",viewer:"fv-viewer"},Ne=createContext(null);function ts(e){let r=C(e.borderColor||"outline[0.1]"),t=le.md;return jsx(Ne.Provider,{value:{borderColor:r,corners:t,navThickness:e.navThickness||"3rem"},children:jsx(d,{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:`"${Z.topbar} ${Z.topbar}" "${Z.sidebar} ${Z.viewer}"`,boxShadow:"rgba(0, 0, 0, 0.35) 0px 5px 15px"},children:e.children})})}function os(e){let{navThickness:r}=useContext(Ne),t=gr(e.file.typeAlias);return jsxs(d,{row:true,align:"center",children:[jsx(t.filled,{style:b({size:r||e.styles?.icon?.size,color:"pdf",style:{padding:b({padding:e.styles?.icon?.padding||".65rem"})?.padding}})}),jsxs(d,{children:[jsx(h,{color:e.styles?.filename?.color,fontWeight:e.styles?.filename?.fontWeight,fontSize:e.styles?.filename?.fontSize||"1rem",text:e.file.name}),jsxs(d,{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(h,{fontWeight:"bold",text:(e.file.ext||e.file.typeAlias)?.toUpperCase()}),jsx(d,{size:e.styles?.fileMetadataSeparator?.size||".3rem",corners:e.styles?.fileMetadataSeparator?.corners??"circle",backgroundColor:e.styles?.fileMetadataSeparator?.color||"onSurface"}),jsx(h,{fade:.75,text:format("file-size",e.file.sizeInBytes)})]})]})]})}function ns(e){let{navThickness:r}=useContext(Ne),{children:t,...o}=e;return jsx(d,{...o,row:true,id:Z.topbar,height:r,width:"full",align:"center",gap:e.gap??"md",padding:e.children?["md","right"]:void 0,justify:e.justify||"space-between",style:{...e.style,gridArea:Z.topbar},children:e.children})}var jo=createContext(null);function is(e){let{children:r,onOptionClick:t,...o}=e,{navThickness:n}=useContext(Ne);return jsx(jo.Provider,{value:{onOptionClick:i=>e.onOptionClick?.(i)},children:jsx(d,{...o,id:Z.sidebar,height:"full",width:n,align:"center",gap:o.gap||"md",padding:["md",["top","bottom"]],style:{...o.style,gridArea:Z.sidebar},children:e.children})})}function as(e){let{onOptionClick:r}=useContext(jo),t=()=>{e.onClick?.(),r(e.label);};return jsx(ke,{displayAction:"hover",placement:"right",fontSize:"sm",content:e.label,asChild:e.disabled,children:jsx(d,{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 ls(e){let{borderColor:r,corners:t}=useContext(Ne),o=useRef(null);useEffect(()=>{n();let i=new MutationObserver(l=>{for(let s of l)s.type==="childList"&&n();});return i.observe(o.current?.parentNode,{childList:true}),()=>{i.disconnect();}},[]);let n=()=>{let i=["sidebar","topbar"],l=o.current?.parentElement,s=i.filter(c=>l?.querySelector(`#${Z[c]}`));i.every(c=>s.includes(c))?Object.assign(o.current?.style,{borderRadius:`${t} 0 0 0`,borderColor:`${r} transparent transparent ${r}`}):s.includes("sidebar")?Object.assign(o.current?.style,{borderRadius:`${t} 0 0 ${t}`,borderLeftColor:r}):s.includes("topbar")?Object.assign(o.current?.style,{borderRadius:0,borderTopColor:r}):Object.assign(o.current?.style,{borderRadius:t,borderColor:r});};return jsx(d,{ref:o,size:"full",centerContent:e.centerContent??true,backgroundColor:e.backgroundColor||"onSurface[0.1]",color:e.color||"onSurface",spill:"hidden",borderColor:"transparent",style:{gridArea:Z.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})}var uh={Root:ts,Sidebar:is,SidebarOption:as,Topbar:ns,Viewer:ls,Indicator:os};a();var Yo=(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))(Yo||{});function Ko(e){let r=Yo[e.size||"sm"];return jsx(d,{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})}a();function qo(e){return jsxs(d,{row:true,clickable:true,width:"full",align:"center",justify:"space-between",corners:"lg",backgroundColor:"surfaceVariant[0.1]",padding:"lg",onClick:()=>{let t=(o,n=false)=>typeof o=="string"?o:Object.entries(o).map(([i,l],s,c)=>`${n?" ":""}${i}: ${[void 0,null,""].includes(l)?null:typeof l=="object"?`{
|
|
18
18
|
${t(l,true)}
|
|
19
19
|
}`:l}`+(s===lastIndex(c)?"":",")).join(`
|
|
20
|
-
`);alert(t(typeof e.info=="function"?e.info():e.info));},children:[jsxs(d,{row:true,align:"center",gap:"md",children:[e.item.icon&&jsx(e.item.icon,{size:"1.5rem",style:{borderRadius:"1.5rem"}}),jsxs(d,{gap:"sm",children:[jsx(h,{fontSize:".85rem",text:e.item.title}),e.item.description&&jsx(h,{fade:.5,fontSize:".75rem",text:e.item.description})]})]}),jsx(IoAdd,{size:"1.25rem"})]})}
|
|
20
|
+
`);alert(t(typeof e.info=="function"?e.info():e.info));},children:[jsxs(d,{row:true,align:"center",gap:"md",children:[e.item.icon&&jsx(e.item.icon,{size:"1.5rem",style:{borderRadius:"1.5rem"}}),jsxs(d,{gap:"sm",children:[jsx(h,{fontSize:".85rem",text:e.item.title}),e.item.description&&jsx(h,{fade:.5,fontSize:".75rem",text:e.item.description})]})]}),jsx(IoAdd,{size:"1.25rem"})]})}a();var Qo=createContext(null);function vs(e){let r=e.backgroundColor||"surfaceContainer",t=e.color||"onSurface",o=e.placement||"right-start";return jsx(Qo.Provider,{value:{color:t,placement:o,onItemClick:e.onItemClick},children:jsxs(Menu.Root,{positioning:{placement:o,hideWhenDetached:true},children:[jsx(Menu.Trigger,{asChild:true,children:e.wrapTrigger?jsx("div",{...e.slotProps?.divWrapper,children:e.children}):e.children}),jsx(ys,{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:C(r),color:C(t),style:b({gap:e.gap||"xs",padding:".5rem",corners:"md"}),children:Object.keys(e.items).map(n=>{let i=e.items[n];return i.subMenu?jsx(vs,{...e,gutter:(e.gutter||0)+2,items:i.subMenu,wrapTrigger:false,children:jsx(Zo,{isTrigger:true,value:n})}):jsx(Zo,{...i,value:n})})})})})]})})}function ys(e){return e.asChild?e.children:jsx(Portal,{children:e.children})}function Zo(e){let{color:r,onItemClick:t}=useContext(Qo),o=()=>{if(e.trailingEl)return "command"in e.trailingEl?jsx(Menu.ItemCommand,{children:e.trailingEl.command}):e.trailingEl},n=()=>{e.onClick?.(e.value),t?.(e.value);},{backgroundColor:i="onSurface[0.1]",color:l}=e.sx?.[":hover"]||{},s={disabled:e.disabled,backgroundColor:C(e.backgroundColor||"transparent"),color:C(e.color||r),padding:".25rem",borderRadius:".35rem",cursor:"pointer",_hover:{transition:"all 200ms linear",backgroundColor:C(i),color:l?C(l):void 0},_active:e.sx?.[":active"]?{...b({...e.sx[":active"]}),transition:"all 200ms linear"}:void 0,onClick:n};return e.isTrigger?jsxs(Menu.TriggerItem,{...s,alignItems:"center",justifyContent:"space-between",children:[e.value," ",jsx(LuChevronRight,{})]}):jsxs(Menu.Item,{...s,value:e.value,children:[e.leadingEl,jsx(d,{style:{flexGrow:1},asChildren:!e.leadingEl&&!e.trailingEl,children:e.value}),jsx(o,{})]})}a();a();function hs(e=0){return {defaultPage:e,goTo:()=>null,echo:()=>null,getActivePage:()=>null,isPageActive:()=>null,onPageChange:()=>null}}var ot=hs;var on=createContext(null);function Qh(e){let[r,t]=useState(false),o=e.controller||ot(0),[n,i]=useState(o.defaultPage??0),l;useEffect(()=>{r?e.onTransition?.("start"):e.onTransition?.("end");},[r]),o.goTo=useCallback((v,m)=>{let p=m?.transition||"smooth",x=n;if(!(v===x||r||!m?.ignoreOutOfBoundsCheck&&!e.children[v]))if(l?.(x,v),e.onChange?.(x,v),p==="smooth"){t(true);let P=x,y=setInterval(()=>{v>x?P++:P--,i(P),P===v&&(clearInterval(y),t(false));},m?.transitionDuration||200);}else i(v);},[n,e.children,r]),o.echo=e.onEcho,o.isPageActive=useCallback(v=>v===n,[n]),o.onPageChange=useCallback(v=>{l=v;},[]),o.getActivePage=useCallback(()=>n,[n]),useEffect(()=>()=>{for(let m of Object.keys(o)){let p=m;typeof o[p]=="function"&&(o[p]=null);}l=null;},[]);let s=()=>o.goTo(n-1),c=()=>o.goTo(n+1),g=b({height:e.height,width:e.width,spill:e.spill,gap:e.gap});return jsx(on.Provider,{value:{...e,transitioning:r},children:jsxs("div",{style:{display:"flex",position:"relative",alignItems:"center",height:g.height,width:g.width??"100%",justifyContent:"center",gap:g.gap??".5rem",overflow:g.overflow,transition:"all 300ms ease-in-out",perspective:"500px",transformStyle:"preserve-3d"},children:[jsx(tn,{disabled:n<=0,inset:"left",onClick:s}),e.children.map((v,m)=>{let p=Math.sign(n-m),x=Math.abs(n-m)/3,P=Math.abs(n-m)>2;return jsx("div",{style:{position:"absolute",overflow:"hidden",transition:"all 0.3s ease-out",flexGrow:e.childFlexGrow??1,display:P?"none":"flex",justifyContent:"center",alignItems:"center",transform:`
|
|
21
21
|
scaleY(calc(1 + ${x} * -0.4))
|
|
22
22
|
translateZ(calc(${x} * -10rem))
|
|
23
|
-
translateX(calc(${p} * -5rem))`,filter:`blur(calc(${x} * .5rem))`,boxShadow:"rgba(0, 0, 0, 0.35) 0px 5px 15px"},children:typeof v=="function"?jsx(v,{isActive:m===n}):v},m)}),jsx(cn,{inset:"right",disabled:!hasIndex(e.children,n+1),onClick:c})]})})}function cn(e){let r=useContext(dn),t=e.inset==="left"?BsArrowLeft:BsArrowRight,o=e.disabled||r.transitioning;return jsx(d,{fade:o?.5:1,cursor:o?"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 > *":o?void 0:{animation:"squish 300ms ease-in-out"},":active":o?void 0:{scale:.9,opacity:.75}},onClick:o?void 0:e.onClick,children:jsx(t,{size:r.navIconSize})})}var Zs=qs;a();a();var pr=createContext(null);function oc(e){let r=w(e.defaultOpen??false),{triggerRerender:t}=I(),o=`--${v4()}`,n=useRef(null),i=useRef(null),l=te__default.cloneElement(e.wrap?jsx("div",{...e.slotProps?.divWrapper,children:e.children}):e.children,{ref:i,popoverTarget:o});if(e.asChild)return e.children;useEffect(()=>{let g=e.placement||"bottom-left",v=["top","right","bottom","left"].includes(g),m=v?{positionArea:g}:ic(e.anchorPoint||"top-left",nc(g));if(!e.visibleOnScroll){let x=oo(n.current);x&&x.addEventListener("scroll",P=>{n.current?.hidePopover(),Object.assign(n.current?.style,{transform:`translateX(-${P.target?.scrollLeft}px)`});});}Object.assign(i.current?.style,{anchorName:o});let p={top:"bottom",right:"left",bottom:"top",left:"right"}[g.split("-")[0]];Object.assign(n.current?.style,{position:"absolute",positionAnchor:o,insetArea:e.insetArea,overflow:"hidden",[`margin-${p}`]:e.offset??".25rem",...m,...e.positionFallbacks?{positionTryFallbacks:e.positionFallbacks}:{},...b({minHeight:e.minHeight,maxHeight:e.maxHeight,height:e.height,minWidth:s(e.minWidth),maxWidth:s(e.maxWidth),width:s(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:"rgba(0, 0, 0, 0.35) 0px 5px 15px",scrollbarWidth:"thin"}})});},[]),useEffect(()=>{e.defaultOpen&&n.current?.showPopover();let g=e.displayAction||"click";if(n.current?.addEventListener("beforetoggle",v=>{let m=v.newState==="open";m?e.onOpen?.():e.onClose?.(),e.onOpenChange?.(m),r.upsert(m),!m&&e.rerenderOnClose&&t();}),g==="click")i.current?.addEventListener("click",()=>{c(()=>n.current?.togglePopover());});else {let v,p=()=>{v&&(v=null),c(()=>n.current?.hidePopover(),"close");};i.current?.addEventListener("mouseover",()=>{c(()=>n.current?.showPopover(),"open");}),i.current?.addEventListener("mouseleave",()=>{e.allowInteractions?v=setTimeout(p,20):p();}),e.allowInteractions&&(n.current?.addEventListener("mouseenter",()=>{v&&clearTimeout(v);}),n.current?.addEventListener("mouseleave",p));}},[]);let s=(g,v)=>g==="match-anchor"?getComputedStyle(i.current)?.width:g??v,c=(g,v)=>{let m=200;typeof e.delay=="number"?m=e.delay:e.delay&&v in e.delay&&(m=e.delay[v]),setTimeout(g,m);};return jsxs(pr.Provider,{value:{open:()=>{n.current?.showPopover();},close:()=>{n.current?.hidePopover();},isOpen:()=>r.read()},children:[l,jsx("div",{popover:"auto",id:o,ref:n,className:"popover-transition",children:e.content})]})}var nc=e=>{let{0:r,1:t}=e?.split("-");return t=t==="left"?"start":t==="right"?"end":t??r,{vertical:`anchor(${r})`,horizontal:`anchor(${t})`}},ic=(e,r)=>{let{0:t,1:o}=e?.split("-");return {[t]:r.vertical,[o]:r.horizontal}},ge=oc;a();function lc(e){let r=t=>{e.onChange?.(t.value);};return jsxs(SegmentGroup.Root,{size:e.size,width:e.width,defaultValue:e.defaultValue,value:e.value,onValueChange:r,children:[jsx(SegmentGroup.Indicator,{}),e.controls.map(t=>{let o=typeof t=="string"?t:t.value;return jsxs(SegmentGroup.Item,{padding:"3",value:o,children:[jsx(SegmentGroup.ItemText,{children:o}),jsx(SegmentGroup.ItemHiddenInput,{})]},o)})]})}var sc=lc;a();function fc(e){let r=()=>jsx(Separator,{flex:"1",variant:e.variant,orientation:e.orientation,size:e.size,color:C(e.color)});return e.label?jsxs(HStack,{children:[["center","right"].includes(e.labelPosition)&&jsx(r,{}),jsx(Text,{flexShrink:"0",color:C(e.labelColor),children:e.label}),["center","left"].includes(e.labelPosition)&&jsx(r,{})]}):jsx(r,{})}var mc=fc;a();function yc(e){let r={pending:"gray",success:"carlsbergGreen",error:"error"},t=e.indicatorSize||".3rem";return jsxs(d,{row:true,disableSelection:true,align:"center",gap:"md",corners:"md",padding:"sm",backgroundColor:`${r[e.status]}[0.5]`,style:{zIndex:3},children:[jsx(d,{corners:t,size:t,backgroundColor:r[e.status]}),!e.indicatorOnly&&jsx(h,{style:{fontWeight:500},fontSize:".85rem",color:`${r[e.status]}[0.75]`,text:upperFirst(e.status)})]})}var ut=yc;a();function bc(e){return jsxs(({children:t})=>{let o={...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,...o,children:t}):jsx(Steps.Root,{...o,count:e.steps.length,children:t})},{children:[jsx(Steps.List,{opacity:e.nested?.7:1,children:e.steps.map((t,o)=>jsxs(Steps.Item,{index:o,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,{})]},o))}),jsxs(Stack,{justifyContent:"space-between",height:"full",width:"full",overflow:"hidden",children:[e.steps.map((t,o)=>jsx(Steps.Content,{height:"full",width:"full",index:o,overflow:"hidden",children:typeof t.description=="function"?jsx(t.description,{}):t.description},o)),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"})})]})]})]})}var Sc=bc;a();function xc(e){return jsx(Tag.Root,{opacity:e.opacity,padding:"1",color:C(e.color),height:"fit-content",flexShrink:0,display:"inline-flex",children:jsx(Tag.Label,{opacity:e.labelOpacity,children:e.label})})}var ft=xc;a();a();var mt=(e,r)=>{let t=o=>!!o.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 wc(e){let[r,t]=useState(e.defaultValue??""),o=e.value!==void 0,n=e.ref||useRef(null),i=useRef(null),l=e.maxChars??1/0,s="2rem",c=y=>typeof e.indent=="string"?e.indent:e.indent?.[y],g="md",{size:v,...m}=e,p={label:b({...e?.slotProps?.label,fade:e?.slotProps?.label?.fade||.75}),helperText:b({...e?.slotProps?.helperText}),root:b({width:e.width}),input:b({...m,width:"full",padding:{top:g,left:e.leadingContent?c("left")||s:g,right:e.trailingContent||e.showCharCounter?c("right")||s:g,bottom:g},corners:!e.corners&&e.corners!==0?".75rem":e.corners})},x=y=>{n.current.value=y,e.onChange(y,null);};useEffect(()=>{e.showCharCounter&&Object.assign(n.current?.style,{paddingRight:`calc(${getComputedStyle(i.current).width} + 7px)`});},[r,e.value]),useEffect(()=>{let y=_=>{if(e.format!=="currency")return;let D=_;if(D=D.replace(/[^0-9.]/g,"").replace(/\.{2,}/,"").split(".").filter((R,z)=>z<2).join("."),D&&takeLast(D.split(""))[0]!=="."){let R=parseFloat(D);if(!isNaN(R)){let z=new Intl.NumberFormat;x(z.format(R));}}};n.current?.addEventListener?.("beforeinput",_=>{let D=_.data,R=e.format==="currency"?/[0-9.]/:e.allowedChars||"all";R==="all"||Array.isArray(R)&&R.includes("all")||D===null||(!Array.isArray(R)&&!mt(D,R)||Array.isArray(R)&&R.some(z=>!mt(D,z)))&&_.preventDefault();}),n.current?.addEventListener?.("paste",_=>{y(_.target.value);}),n.current?.addEventListener?.("input",_=>{y(_.target.value);});},[n.current]);let P=y=>{e.onChange?.(y,void 0),e.onPasteClick?.(y);};return jsxs(Field.Root,{required:e.required,disabled:e.disabled,style:p.root,children:[e.label&&jsxs(Field.Label,{style:p.label,children:[e.label," ",jsx(Field.RequiredIndicator,{})]}),jsx(Tc,{elementRef:n,useCopy:e.allowCopyText,usePaste:e.allowPasteText,onPaste:P,slotProps:e.slotProps,children:jsx(InputGroup,{startElement:e.leadingContent,startElementProps:e.slotProps?.leadingContent||{padding:"2"},endElement:e.showCharCounter?jsx(h,{ref:i,fade:.5,fontSize:e.slotProps?.charCounter?.fontSize||(n.current?getComputedStyle(n.current).fontSize:void 0),text:`${(e.value??r).length}/${l}`}):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||n,width:"full",autoFocus:e.autoFocus,size:v,zIndex:1,variant:e.variant,onKeyDown:y=>{y.key==="Enter"?e.onEnterKeyPressed?.():y.key==="Escape"&&e.onEscapeKeyPressed?.();},value:e.value??r,overflow:"hidden",style:p.input,onFocus:e.onFocus,onBlur:e.onBlur,css:{"--focus-color":C(e.focusColor||"primary")},_placeholder:e.slotProps?.placeholder?.color?{color:C(e.slotProps.placeholder.color)}:void 0,onChange:y=>{let _=y.currentTarget.value;e.onChange?.(_,y),o||t(_);},placeholder:e.placeholder})})}),e.helperText&&jsx(Field.HelperText,{style:p.helperText,children:e.helperText})]})}function Tc(e){return !e.useCopy&&!e.usePaste?e.children:jsxs("div",{style:{display:"flex",alignItems:"center",gap:se.sm,width:"100%"},children:[e.children,e.useCopy&&jsx(Te,{iconOnly:e.slotProps?.copyButton?.iconOnly,inputRef:e.elementRef}),e.usePaste&&jsx(bn,{iconOnly:e.slotProps?.pasteButton?.iconOnly,inputRef:e.elementRef,onClick:e.onPaste})]})}var U=wc;a();var yt=createContext(null);function zc(e){let r=w([]),t=e.lineSeparatorColor||"onSurface[0.5]",o=Array.isArray(e.children)?e.children:[e.children],n=o.length===1?o:o.map((l,s)=>s===0||!e.rowGap?l:jsxs(Fragment,{children:[jsx("p",{}),jsx(d,{width:"full",align:"center",children:jsx("p",{style:{width:"1px",height:e.rowGap,backgroundColor:C(t)}})}),jsx("p",{}),l]})),i=()=>{if(o.length===1)return "both";let l=[...r.read(),0];if(r.upsert(l),l.length===1)return "first";if(l.length===o.length)return "last"};return jsx(yt.Provider,{value:{register:i,lineSeparatorColor:t},children:jsx(d,{grid:true,width:e.width??"fit-content",gridCols:"auto auto auto",style:{columnGap:e.columnGap||".5rem"},children:n})})}function Oc(e){let[r,t]=useState(),{register:o}=useContext(yt),{indicator:n,before:i,after:l}=e.styles||{};useEffect(()=>{let c=o();typeof c=="string"&&t(c);},[r]);let s=c=>r===c||r==="both";return jsxs(Fragment,{children:[jsx(Sn,{disabled:e.disabled,style:{...i,align:i.align||"end"},children:e.before}),jsxs(d,{align:"center",height:"full",children:[jsx(xn,{hide:s("first")}),jsx(d,{style:{...b({...n||{},size:n?.size??".6rem",corners:n?.corners||"circle",backgroundColor:n?.backgroundColor||"onSurface"}),flexShrink:0},children:e.indicator}),jsx(xn,{hide:s("last")})]}),jsx(Sn,{disabled:e.disabled,style:l,children:e.after})]})}function Sn(e){return jsx(d,{size:"full",style:{...b({...e.style||{},fade:e.disabled?.5:e.style.fade}),justifyContent:"center",flexGrow:1},children:e.children})}function xn(e){let{lineSeparatorColor:r}=useContext(yt);return jsx(d,{width:"1px",height:"full",backgroundColor:r,fade:e.hide?0:1})}var Ic={Root:zc,Item:Oc},Ac=Ic;a();a();var wn=te.forwardRef(function(r,t){let{showArrow:o,children:n,disabled:i,portalled:l=true,content:s,contentProps:c,portalRef:g,...v}=r;return i?n:jsxs(Tooltip.Root,{...v,children:[jsx(Tooltip.Trigger,{asChild:true,children:n}),jsx(Portal,{disabled:!l,container:g,children:jsx(Tooltip.Positioner,{children:jsxs(Tooltip.Content,{ref:t,...c,children:[o&&jsx(Tooltip.Arrow,{children:jsx(Tooltip.ArrowTip,{})}),s]})})})]})});function Mc(e){if(e.asChild)return e.children;let{padding:r,borderRadius:t,color:o,backgroundColor:n}=b({padding:e.padding||"sm",corners:e.corners||"sm",color:e.color||"onSurface",backgroundColor:e.backgroundColor||"onSurface[0.1]"});return jsx(wn,{positioning:{placement:e.placement},showArrow:e.arrow,openDelay:e.delay?.open,closeDelay:e.delay?.close,content:e.tooltip,contentProps:{padding:r,color:o,borderRadius:t,style:{backdropFilter:"blur(.25rem)"},css:{"--tooltip-bg":n}},children:e.wrapChildren?jsx("span",{style:e.slotProps?.spanWrapper?{...b(e.slotProps.spanWrapper)}:void 0,children:e.children}):e.children})}var Ke=Mc;a();function Lc(e){let r=e.responsive??true,t={A4:{},A6:r?{maxHeight:"148mm",height:"60vh",aspectRatio:"1/sqrt(2)"}:{height:"148mm",width:"105mm"}}[e.size];return jsx(d,{id:e.id,spill:"hidden",backgroundColor:"paper",color:"onPaper",style:{...t,...e.style},children:e.children})}var Vc=Lc;a();a();a();a();function En(e){return {FlyLeavingBox:$c}[e]}var pt=createContext(null);function Xc(e){let r=w(e.attachments||[]),{triggerRerender:t}=I(),o=()=>{e.onClose?.(),e.rerenderOnClose&&t();};return jsx(pt.Provider,{value:{...e,attachmentsEventListener:(n,i)=>{let l=r.read();n==="add"&&(l=[...l,i]),n==="delete"&&(l=l.filter(({uid:s})=>s!==i.uid)),r.upsert(l),e.onAttachmentsChange?.(l),n==="delete"&&isEmpty(l)&&t(),e.attachmentsEventListener?.(n,i);},attachments:r.read(),rerender:t},children:jsxs(k.Root,{onClose:o,unmountOnExit:e.unmountOnExit,maxHeight:"30rem",width:"27rem",scrollBehavior:"inside",triggerElement:e.triggerElement,controller:e.controller,spill:"hidden",children:[jsx(k.Header,{style:{flexShrink:0},fontSize:"xxl",children:"Attachments"}),jsx(k.Body,{size:"full",padding:"sm",spill:"hidden",children:isEmpty(r.read())?jsx(jc,{}):jsx(Uc,{})})]})})}function Uc(){let e=useContext(pt),r=w(void 0),[t,o]=useState(""),[n,i]=useState(e?.attachments||[]);useEffect(()=>{r.upsert(true);},[]),useEffect(()=>{r.read()===true&&r.upsert(false);});let l=t.trim()?n.filter(({name:m})=>m.toLowerCase().includes(t.toLowerCase())):n,s=isEmpty(l)&&!!t.trim(),c=m=>{i(p=>p.filter(({uid:x})=>x!==m.uid)),e?.onAttachmentDeleted?.(m),e?.attachmentsEventListener?.("delete",m);},g=(m,p)=>{let x=sanitizeLocalFile(p[0]);i([...n,x]),e?.onAttachmentAdded?.(x),e?.attachmentsEventListener("add",x);},v=m=>{e?.onOpenAttachment?.(m),e?.attachmentsEventListener?.("open",m);};return jsxs(Fragment,{children:[jsx(bt,{width:"full",value:t,onChange:o}),jsx(d,{size:"full",maxHeight:"10rem",spill:"auto",padding:s?"lg":void 0,centerContent:s,children:s?jsx("span",{style:{opacity:.75},children:`"${t}" not found`}):l.map((m,p,x)=>jsx(Gc,{scrollIntoView:r.read()===false&&p===x.length-1,value:m,hideDeleteButton:e.hideDeleteButton,hideOpenAttachmentButton:e.hideOpenAttachmentButton,disableDelete:typeof e?.deleteDisabled=="function"?e.deleteDisabled(m):e?.deleteDisabled,disableOpen:typeof e?.openDisabled=="function"?e.openDisabled(m):e?.openDisabled,onDelete:c,onOpen:v},m.uid))}),!e.hideUploadButton&&jsx(Ze,{getFilePath:e?.getFilePath,disabled:e?.uploadDisabled,fileClass:"attachment",size:"xs",width:"full",onAccept:g})]})}function Gc(e){let{typeAlias:r,path:t,name:o,sizeInBytes:n}=e.value,i=gr(r);return jsxs(M.Root,{corners:"md",width:"full",sx:{cursor:"default",overflow:"hidden",transition:"all 300ms linear",":hover":{backgroundColor:"outline[0.1]"}},children:[jsx(M.LeadingAddOn,{size:"2rem",aspectRatio:1,color:r,padding:"sm",corners:"md",backgroundColor:"onSurface[0.1]",style:{flexShrink:0},children:r==="img"&&t.trim()?jsx(ce,{src:t.trim(),size:"full",corners:"md",spill:"hidden"}):jsx(i.outlined,{size:"100%"})}),jsxs(M.Content,{gap:"sm",width:"full",children:[jsx(M.Item,{truncateStyle:"ellipsis",value:o}),jsxs(d,{ref:l=>l&&e.scrollIntoView&&l.scrollIntoView({behavior:"instant"}),fade:.7,row:true,align:"center",gap:"sm",fontSize:"xxs",children:[jsx(h,{fontWeight:"bold",text:r.toUpperCase()}),jsx(d,{size:".25rem",corners:"circle",backgroundColor:"onSurface"}),jsx(h,{fade:.5,text:format("file-size",n)})]})]}),(!e.hideDeleteButton||!e.hideOpenAttachmentButton)&&jsxs(M.TrailingAddOn,{row:true,gap:"sm",align:"center",children:[!e.hideOpenAttachmentButton&&jsx(_t,{iconOnly:true,disabled:e.disableOpen,borderColor:"transparent",size:"sm",onClick:()=>e.onOpen?.(e.value)}),!e.hideDeleteButton&&jsx(qe,{iconOnly:true,disabled:e.disableDelete,backgroundColor:"transparent",color:"delete",size:"sm",onClick:()=>e.onDelete?.(e.value)})]})]})}function jc(){let e=useContext(pt);return jsxs(We.Root,{children:[jsx(We.Indicator,{size:"7rem",disableFade:true,element:jsx(ce,{spill:"hidden",size:"full",src:En("FlyLeavingBox")})}),jsx(We.Content,{title:"Attachments not found",description:"Upload an attachment and it will appear here."}),!e.hideUploadButton&&jsx(Ze,{disabled:e.uploadDisabled,getFilePath:e.getFilePath,fileClass:"attachment",backgroundColor:"secondaryContainer",color:"onSecondaryContainer",accepts:e.accepts,onAccept:(r,t)=>{t.forEach(o=>{e?.attachmentsEventListener?.("add",sanitizeLocalFile(o));}),e.rerender();}})]})}var Ct=Xc;function qc(e){let r=w(Array.isArray(e.attachments)?e.attachments:[]),{triggerRerender:t}=I(),o=n=>{r.upsert(n);};return jsx(Ke,{tooltip:"Attachments",placement:"right",children:jsx(Dr,{circleChild:true,asChild:!e.attachments,badge:jsx(it,{content:typeof e.attachments=="number"?e.attachments:r.read().length}),children:jsx(Zc,{asChild:!Array.isArray(e.attachments),attachments:r.read(),onAttachmentsChange:o,onClose:t,...e.slotProps?.attachmentsDialog,children:jsxs(d,{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 Zc(e){let{asChild:r,children:t,unmountOnExit:o,onAttachmentsChange:n,onClose:i,...l}=e;return r?t:jsx(Ct,{...l,unmountOnExit:o,triggerElement:t,onAttachmentsChange:n,onClose:i})}var St=qc;a();var ed=De({preset:{text:"Cancel",leadingEl:null,trailingEl:null},optional:{backgroundColor:"transparent",color:"onSurface"}}),Le=ed;a();function od(e){return jsx(S,{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 qe=od;a();function ad(e){let{iconOnly:r,...t}=e;return jsx(S,{...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 ld=ad;a();function md(e){let r=w(e.initialState==="expanded"),t=e.icon||"chevron",o=t==="chevron"?BsChevronBarExpand:BsArrowsAngleExpand,n=t==="chevron"?BsChevronBarContract:BsArrowsAngleContract,i=r.read()?n:o;return jsx(d,{clickable:true,onClick:()=>{r.upsert(s=>(s?e.onContract():e.onExpand(),!s));},children:jsx(i,{})})}var gd=md;a();function vd(e){return jsx(S,{disabled:e.disabled,text:"Next",backgroundColor:"tertiaryContainer",color:"onTertiaryContainer",onClick:e.onClick})}var Nr=vd;a();function pd(e){return jsx(S,{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 _t=pd;a();function bd(e){return jsx(S,{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 Sd=bd;a();function Bd(e){let r=jsx(S,{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(xt,{triggerElement:r,options:e.options}):r}var kd=Bd;a();function Dd(e){return jsx(S,{disabled:e.disabled,border:"onSurface[0.15]",color:"onSurface",backgroundColor:"transparent",text:"Previous",onClick:e.onClick})}var Xr=Dd;a();function Ed(e){return jsx(S,{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 Pt=Ed;a();function Fd(e){return jsx(S,{async:true,disabled:e.disabled,text:`Submit ${e.class||""}`.trim(),onClick:e.onClick})}var Ur=Fd;a();function Od(e){return jsx(S,{padding:"sm",gap:"sm",size:"xs",leadingEl:jsx(MdVerifiedUser,{}),backgroundColor:"primaryContainer",color:"onPrimaryContainer",text:"Verify",onClick:e.onClick})}var Bt=Od;a();function Ad(e){let r="rgba(0, 0, 0, 0.35) 0px 5px 15px",t=e.currency||"JMD";return jsxs(d,{width:e.width,gap:e.gap||"md",padding:"1.5rem",color:e.color||"surface",corners:e.corners||"lg",style:{boxShadow:r,background:to({backgroundColor:e.backgroundColor||"onSurface",borderColor:e.wireColor||"surface[0.25]",tileSize:"1.5rem"})},children:[jsxs(d,{gap:"sm",color:"inherit",children:[e.label&&jsx(h,{fade:.75,fontSize:e.slotProps?.label?.fontSize||"sm",text:e.label,color:"inherit"}),jsxs(d,{row:true,align:"end",gap:"sm",children:[jsx(h,{fontWeight:"bold",fontSize:e.slotProps?.fee?.fontSize||"xl",text:format("money",e.amount,{truncate:typeof e.truncateFee=="boolean"?e.truncateFee:e.truncateFee?.(e.amount)})}),jsx(h,{fontWeight:"bold",fade:.5,fontSize:e.slotProps?.currency?.fontSize||"sm",text:t})]})]}),e.children]})}var Hd=Ad;a();function Vd(e){return jsxs(M.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(M.LeadingAddOn,{size:"2rem",padding:"sm",centerContent:true,corners:"md",backgroundColor:e.indicatorBackgroundColor||"surface[0.1]",style:{flexShrink:0},children:e.receiptPath?jsx(ce,{corners:"md",src:e.receiptPath,size:"full",spill:"hidden"}):jsx(TfiReceipt,{size:"100%"})}),jsxs(M.Content,{width:"full",gap:"xs",children:[jsx(M.Label,{value:"Your receipt",fade:.75,truncateStyle:"ellipsis"}),jsx(M.Item,{value:e.receiptName||(e.receiptPath?inferFilename(e.receiptPath):"unknown"),truncateStyle:"ellipsis"})]}),!e.hideDeleteButton&&jsx(M.TrailingAddOn,{children:jsx(qe,{iconOnly:true,iconVariant:e.deleteIconVariant,iconSize:e.deleteButtonSize,backgroundColor:"transparent",color:"delete",onClick:e.onDeleteClick})})]})}var Wd=Vd;a();function Yd(e){let[r,t]=useState(e.selectedDate||new Date),o=w(r),n=e.minDate==="today"?new Date:Wn(e.minDate)||new Date("Jan 1, 1920"),i=e.maxDate==="today"?new Date:!e.maxDate||e.maxDate==="end-of-year"?qd():Wn(e.maxDate),l=m=>{t(m),e.onDateSelected?.(m);},s=m=>m.toDateString()===r.toDateString(),c=m=>m.toDateString()===new Date().toDateString(),g=m=>{let p=o.read();return p.getMonth()===m.getMonth()&&Qd(m.getDate(),p.getMonth())},v=m=>o.upsert(m);return jsx(Xd,{inline:true,required:e.required,allowSameDay:e.allowSameDay,minDate:n,maxDate:i,onMonthChange:v,onYearChange:v,renderCustomHeader:m=>jsx(Kd,{...m,minDate:n,maxDate:i}),form:e.formId,selected:r,onChange:l,calendarClassName:"calendar",weekDayClassName:()=>"calendar-week-day",dayClassName:m=>["calendar-date",s(m)?"selected":"unselected",c(m)?"today":"",g(m)?"":"out-of-bounds",Zd(m,i)?"excluded":""].join(" ")})}function Kd(e){let r=["January","February","March","April","May","June","July","August","September","October","November","December"],t=r.filter((c,g)=>{let v=e.date.getFullYear();return v===e.minDate.getFullYear()?g>=e.minDate.getMonth():v===e.maxDate.getFullYear()?g<=e.maxDate.getMonth():true}),o=r[e.date.getMonth()],n=c=>{e.changeMonth(r.findIndex(g=>g===c));},i=c=>{e.changeYear(parseInt(c));},l=()=>range(e.minDate.getFullYear(),e.maxDate.getFullYear()+1),s=c=>["calendar-chevron","calendar-nav",c?"disabled":""].join(" ");return jsxs(d,{width:"full",row:true,align:"center",justify:"space-between",padding:["md","bottom"],children:[jsx(IoChevronBack,{className:s(e.prevMonthButtonDisabled),onClick:e.prevMonthButtonDisabled?void 0:e.decreaseMonth}),jsxs(d,{row:true,align:"center",gap:"md",children:[jsx(Vn,{label:o,isSelected:c=>o===c,options:t.map(c=>({value:c})),onOptionClick:n}),jsx(Vn,{label:`${e.date.getFullYear()}`,isSelected:c=>`${e.date.getFullYear()}`===c,options:l().map(c=>({value:c.toString()})).toReversed(),onOptionClick:i})]}),jsx(IoChevronForward,{className:s(e.nextMonthButtonDisabled),onClick:e.nextMonthButtonDisabled?void 0:e.increaseMonth})]})}function Vn(e){return jsx(Me,{isSelected:({value:r})=>e.isSelected(r),onOptionClick:({value:r})=>e.onOptionClick(r),options:e.options,maxHeight:"10rem",children:jsxs("div",{style:{display:"inline-flex",gap:".25rem",alignItems:"center",cursor:"pointer",borderRadius:".5rem",fontSize:"1.1rem",fontWeight:"bold"},children:[jsx("span",{style:{},children:e.label}),jsx(IoChevronDown,{className:"calendar-chevron"})]})})}var Wn=e=>{if(e)return e instanceof Date?e:new Date(e)};var qd=()=>{let e=new Date;return e.setMonth(11),e.setDate(31),e};var Zd=(e,r)=>{let t={year:e.getFullYear(),month:e.getMonth(),date:e.getDate()},o={year:r.getFullYear(),month:r.getMonth(),date:r.getDate()};if(t.year>o.year)return true;if(t.year===o.year){if(t.month>o.month)return true;if(t.month===o.month)return t.date>o.date}return false},Qd=(e,r)=>{let t=new Date;return t.setMonth(r),t.setDate(e),t.getMonth()===r};var Tt=memo(Yd);a();a();var eu=De({preset:{text:"Done"},optional:{backgroundColor:"onSurface",color:"surface"}}),$n=eu;function ru(e){let r=w(null),{controller:t,triggerElement:o,backdropBlur:n,backgroundColor:i,...l}=e,s=e.actionButtonSize||"xs",c=m=>{r.upsert(m),e.onDateSelected?.(m);},g=()=>{e.onDoneClick?.(r.read());},v=m=>{e.onOpenChange?.(m);};return jsxs(k.Root,{hideCloseButton:true,onOpenChange:v,width:"max-content",controller:t,triggerElement:o,backgroundColor:i||"surface[0.25]",backdropBlur:n||".5rem",children:[e.title&&jsx(k.Header,{fontSize:e.titleFontSize,children:e.title}),jsx(k.Body,{children:jsx(Tt,{...l,selectedDate:e.selectedDate||r.read(),onDateSelected:c})}),jsxs(k.Footer,{children:[jsx(k.ActionTrigger,{children:jsx(Le,{size:s,fade:.5})}),jsx(k.ActionTrigger,{children:jsx($n,{size:s,onClick:g})})]})]})}var tu=ru;a();function su(e){let[r,t]=useState(),o=r?FaAngleUp:FaAngleDown,n=i=>{if(i.content)return typeof i.content=="string"?jsx("span",{children:i.content}):jsx(d,{fade:.75,padding:["md",["left","right","bottom"]],fontSize:"xs",children:Object.keys(i.content).map(l=>jsxs("span",{children:[jsxs("strong",{children:[l,":"]}),"\xA0",i.content[l]]}))})};return jsxs(k.Root,{triggerElement:e.triggerElement,controller:e.controller,width:"22rem",children:[jsx(k.Header,{children:"Payment Options"}),jsx(k.Body,{gap:"sm",width:"full",children:e.options.map((i,l)=>{let s=i.variables?i?.["pre-element"]?.(i.variables):void 0,c=i.variables?i?.["post-element"]?.(i.variables):void 0;return jsxs(Fragment,{children:[s,jsxs(d,{width:"full",css:{backgroundColor:r?.index===l?"onSurface[0.1]":void 0},corners:"md",asChildren:!i.dropDownContent,children:[jsxs(d,{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===l?void 0:{backgroundColor:"onSurface[0.1]"}},onClick:()=>{i.onClick?.(i.variables),i.dropDownContent&&t(r?void 0:{index:l});},children:[jsx(i.icon,{size:"1.5rem"}),jsxs(d,{asChildren:!i.description,width:"full",children:[jsx(h,{width:"full",fontSize:"sm",text:i.label}),i.description&&jsx("span",{children:i.description,style:{opacity:.75,fontSize:W.xs}})]}),i.dropDownContent&&jsx(o,{})]}),i.dropDownContent&&r?.index===l&&jsx(n,{content:i.dropDownContent})]}),c]})})})]})}var Nn=e=>e,Fx=e=>Nn({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}}),Rx=()=>Nn({icon:RiSecurePaymentFill,label:"In App Payment",disabled:true,variables:{}}),xt=su;a();var Xn=createContext(null);function Et(e){let r=e.controller,t=!!r.value?.response,{title:o,message:n}=r.value?.response||r.value?.error||{},i=t?"carlsbergGreen":"billsRed",l=(()=>{if(r.value)return !e.indicator||e.indicator==="normal"?t?BsCheck2Circle:IoWarningOutline:e.indicator==="mail"?t?RiMailSendLine:RiMailCloseLine:e.indicator(t?"success":"error")})(),s=e.actionButton?.(t?"succes":"error");return jsx(Xn.Provider,{value:{color:i},children:jsxs(k.Root,{controller:r,width:"25rem",gap:"sm",unmountOnExit:e.unmountOnExit,borderColor:e.disableColorIndicator?void 0:[i,"left"],children:[jsxs(k.Body,{grid:true,gridCols:"auto 1fr",gap:"lg",children:[jsx(l,{color:C(i),size:"2.75rem"}),jsxs(d,{width:"full",gap:"sm",spill:"hidden",padding:["md","top"],children:[jsx("span",{style:{fontSize:W.lg},children:o}),jsx("span",{style:{fontSize:W.sm,opacity:.5},children:n})]})]}),jsxs(k.Footer,{row:true,gap:"md",align:"center",children:[jsx(S,{size:"xs",backgroundColor:s?"transparent":"onSurface[0.1]",color:"onSurface[0.75]",text:"Dismiss",onClick:r.hide}),s&&jsx(hu,{...s})]})]})})}function hu(e){let{color:r}=useContext(Xn);return jsx(S,{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 Un=e=>r=>({disabled:r.disabled,async:true,label:e,leadingIcon:GrRotateLeft,onClick:r.onClick});Et.tryAgainButton=Un("Try Again");Et.retryButton=Un("Retry");var br=Et;a();var Ft="onPaper[0.1]",Sr=", ";function _u(e){let r=w(typeof e.disableSend=="boolean"?e.disableSend:!!e.onSendClick),t=zt(),o=w({subject:e.subject??"",body:e.body||"",recipients:e.recipients?.join?.(Sr)??"",attachments:e.attachments||[]}),n=(s,c)=>{o.upsert(g=>({...g,[s]:c}));},i=()=>strictArray(o.read().recipients.split(Sr)),l=async()=>{let{subject:s,body:c,attachments:g}=o.read(),v=await e.onSendClick({subject:s,body:{text:c,html:e.bodyToHtml?.(c)},recipients:i(),attachments:g});if(typeof v!="object")return;let{error:m,response:p}=v;if(typeof e.disableSend=="function"&&r.upsert(e.disableSend(v)),m)return t.show({error:m});p!=="success"?t.show({response:p}):t.show({response:{title:"Successfully sent email!",message:"Your email was successfully sent to the intended recipients."}});};return jsxs(d,{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(br,{unmountOnExit:true,disableColorIndicator:e.slotProps?.taskResultDialog?.disableColorIndicator,controller:t,indicator:"mail",actionButton:s=>s==="succes"?void 0:br.tryAgainButton({disabled:r.read(),onClick:l})}),e.readOnly&&o.read().recipients?jsx(Su,{recipients:i()}):jsx(bu,{readOnly:e.readOnly,recipients:i(),onChange:s=>n("recipients",s)}),jsx(xu,{subject:o.read().subject,readOnly:e.readOnly,onChange:s=>n("subject",s)}),jsxs(d,{size:"full",gap:"sm",spill:"hidden",children:[jsx(Pu,{defaultValue:o.read().body,readOnly:e.readOnly,onChange:s=>n("body",s)}),jsxs(d,{width:"full",row:true,align:"center",justify:"space-between",gap:"md",children:[jsx(St,{attachments:o.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(Pt,{size:"2xs",disabled:r.read(),onClick:l})]})]})]})}function bu(e){let[r,t]=useState(false),o=n=>jsx(h,{text:n.value,cursor:"not-allowed",sx:{":hover":{textDecoration:"underline"}}});return jsx(Gn,{readOnly:e.readOnly,placeholder:"Recipients",defaultValue:e.recipients.join(Sr),onFocus:e.readOnly?void 0:()=>t(true),onBlur:e.readOnly?void 0:()=>t(false),autoFocus:r,leadingContent:r?jsx(h,{fontSize:"xs",text:"To:"}):void 0,trailingContent:jsxs(d,{row:true,gap:"sm",fontSize:"xs",children:[jsx(o,{value:"Cc"}),jsx(o,{value:"Bcc"})]}),indent:{right:"3rem"},onChange:e.onChange})}function Su(e){return jsxs(d,{width:"full",grid:true,gridCols:"1fr auto",gap:"md",justify:"space-between",borderColor:[Ft,"bottom"],children:[jsx(d,{row:true,width:"full",gap:"md",spill:"hidden",padding:["sm","bottom"],children:e.recipients.map(r=>jsxs(d,{row:true,align:"center",gap:"sm",fontSize:"xs",color:"onPaper",borderColor:"onPaper[0.1]",padding:"xs",corners:"xl",spill:"hidden",children:[jsx(ee,{size:"2xs",backgroundColor:"sendBlue[0.25]",color:"sendBlue"}),jsx(h,{ellipsis:true,text:r})]}))}),jsx(Rt,{textToCopy:e.recipients.join(Sr)})]})}function xu(e){let r=!!(e.readOnly&&e.subject);return jsxs(d,{row:true,width:"full",gap:"md",justify:"space-between",align:"center",padding:["xs",["top","bottom"]],asChildren:!r,borderColor:[Ft,"bottom"],children:[jsx(Gn,{disableSepColor:r,placeholder:"Subject",defaultValue:e.subject,readOnly:e.readOnly,onChange:e.onChange}),r&&jsx(Rt,{textToCopy:e.subject})]})}function Pu(e){let r=!!(e.defaultValue&&e.readOnly);return jsxs(d,{pos:"relative",size:"full",asChildren:!r,children:[jsx("textarea",{defaultValue:e.defaultValue,readOnly:e.readOnly,style:{position:r?"relative":void 0,scrollbarColor:`${C("onPaper")} transparent`,padding:".6rem",width:"100%",height:"100%",backgroundColor:"transparent",outline:"none",resize:"none",fontSize:W.xs,zIndex:1,flexShrink:r?0:1},onChange:t=>e.onChange(t.target.value)}),r&&jsx(d,{pos:"absolute",top:"72.5%",left:"85%",style:{zIndex:2},children:jsx(Rt,{textToCopy:e.defaultValue})})]})}function Gn(e){return jsx(U,{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":[Ft,"bottom"],onChange:e.onChange})}function Rt(e){return jsx(Te,{iconOnly:true,iconSize:"xs",textToCopy:e.textToCopy,backgroundColor:"onPaper[0.1]",color:"onPaper",borderColor:"onPaper[0.25]"})}var Bu=_u;a();a();function ku(e){return jsxs(d,{row:true,gap:"md",children:[jsx(Kn,{onClick:e.onNoClick}),jsx(Yn,{onClick:e.onYesClick})]})}var Ot=ku;function Tu(e){return jsxs(d,{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(Ot,{onNoClick:()=>{e.onNoClick?.(),e.onOptionClick?.("no");},onYesClick:()=>{e.onYesClick?.(),e?.onOptionClick?.("yes");}})]})}var Eu=Tu;a();function Ru(e){let r=e.json?JSON.parse(e.json):void 0;return jsx(d,{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(Mt,{value:r})})}):jsx(zu,{})})}function zu(){let e=r=>jsx(h,{fontSize:"2rem",color:"jsonBracket",text:r.value});return jsx(d,{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(h,{color:"jsonKey",text:'"JSON"'}),":",jsx(h,{color:"string",text:'"Viewer"'}),jsx(e,{value:" }"})]})})})})}var Ou=["string","number","boolean"];function At(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(h,{color:r,text:typeof e.value=="string"?`"${e.value}"`:`${e.value}`})}function qn(e){return jsxs(Fragment,{children:[jsx(h,{width:"full",color:"arrayBracket",text:"["}),e.value.map((r,t)=>jsx(n=>{let i=e.value.some(l=>typeof l=="object");return jsxs(Fragment,{children:[i&&jsx("br",{}),n.children,t===e.value.length-1?"":", ",i&&t===e.value.length-1&&jsx("br",{})]})},{children:typeof r=="object"?jsx(Mt,{indent:true,indentInitialBracket:true,value:r}):Array.isArray(r)?jsx(qn,{value:r}):jsx(At,{value:r})})),jsx(h,{color:"arrayBracket",text:"]"})]})}function Mt(e){let r="1rem",t=e.indentMultiplier||2,o=e.indent?`calc(${r} * ${t})`:r,n=`calc(${o} / ${t})`;return jsxs(Fragment,{children:[jsx(h,{style:{paddingLeft:e.indentInitialBracket?n:void 0},color:"jsonBracket",text:"{"}),jsx("br",{}),Object.keys(e.value).map((i,l,s)=>{let c=i,g=e.value[c],v=()=>Ou.includes(typeof g)?jsx(At,{value:g}):Array.isArray(g)?jsx(qn,{value:g}):typeof g=="object"?jsx(Mt,{indent:true,value:g}):jsx(At,{value:`${g}`});return jsxs("span",{style:{paddingLeft:o,width:"100%"},children:[jsx(h,{color:"jsonKey",text:`"${c}"`})," : ",jsx(v,{}),l===s.length-1?"":",",jsx("br",{})]})}),jsx(h,{style:{paddingLeft:e.indent?n:void 0},color:"jsonBracket",text:"}"})]})}var Lt=Ru;a();a();a();function Lu(e){let r=getMimeTypes(distinct(strictArray(e.accepts?Array.isArray(e.accepts)?e.accepts:[e.accepts]:[...Lo].filter(s=>s!=="unknown")))),t=e.multiple?1/0:e.maxFiles??1,o=useRef(null),n=(...s)=>{if(e.disabled)return;let c="target"in s[0]?s[0].target.files:s[0],g=[],v=[],m=p=>strictArray(p).map(x=>toObject(x,{uploadDate:"now",filepath:e.getFilePath?.(x)}));for(let p of c){if(g.length+v.length>=t)break;r.includes(p.type)?g.push(p):v.push(p);}isEmpty(g)||e.onAccept?.(g,m(g)),isEmpty(v)||e.onReject?.(v,m(v));},i=s=>{if(s.preventDefault(),!e.allowDrop||e.disabled)return;let c=[];if(s.dataTransfer.items?c=[...s.dataTransfer.items].filter(g=>g.kind==="file").map(g=>g.getAsFile()):c=[...s.dataTransfer.files],!isEmpty(c)){let g=new DataTransfer;c.forEach(v=>g.items.add(v)),n(c);}},l=()=>{e.disabled||o.current.click();};return jsxs("label",{className:e.className,style:{...b(e),userSelect:e.disableSelection?"none":void 0,cursor:"pointer"},onDrop:i,onDragOver:s=>s.preventDefault(),onClick:l,children:[e.children,jsx("input",{id:"file",type:"file",ref:o,style:{display:"none"},onChange:n,accept:r.join(", "),multiple:e.multiple})]})}var Qn=Lu;function ri(e){return r=>{let{size:t,fontSize:o,iconSize:n,fileClass:i,backgroundColor:l,accepts:s=e?.accepts,...c}=r||{};return jsx(Qn,{spill:"hidden",corners:r.corners||"md",accepts:s,...c||{},allowDrop:false,children:jsx(S,{debug:r.debug,disabled:r.disabled,width:r.width,backgroundColor:l,corners:r.corners||"md",borderColor:r.borderColor,color:r.color,variant:"outline",fontSize:o,leadingEl:HiUpload,iconSize:n,size:t||"sm",text:`Upload ${r.hideFileClass?"":i||e?.fileClass}`.trim(),style:{flexShrink:0}})})}}var Ze=ri({fileClass:"file"}),VP=ri({fileClass:"receipt",accepts:["img"]});function Uu(e){let[r,t]=useState(e.defaultPicture?.path);useEffect(()=>{console.log(r);},[r]);let o=({children:i})=>e.label?jsxs(d,{gap:e.rowGap||"md",children:[jsx(h,{fontSize:e.slotProps?.label?.fontSize||"sm",fontWeight:e.slotProps?.label?.fontWeight||"bold",fade:e.slotProps?.label?.fade||.75,text:e.label}),i]}):i,n=(i,l)=>{let s=l[0];t(s.path),e.onChange?.(s);};return jsx(o,{children:jsxs(d,{row:true,gap:e.columnGap||"lg",align:"center",children:[jsx(ee,{size:"xl",fallback:e.fallback||IoMdImages,src:r||null}),jsx(Ze,{fileClass:"photo",accepts:["img"],getFilePath:e.getFilePath,onAccept:n})]})})}var Gu=Uu;a();function Yu(e){let r=e.authProviders||[...Mo.values()];return jsxs(d,{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(d,{width:"full",color:"inherit",children:[jsx(h,{fontWeight:"bold",fontSize:"1.55rem",text:"Sign In"}),jsx("span",{style:{opacity:.75,fontSize:".95rem"},children:"Select a sign-in method to continue."})]}),jsx(d,{width:"full",color:"inherit",children:r.map(t=>jsx(Ku,{provider:t,onClick:e.onAuthProviderClick}))})]})}function Ku(e){let r=(()=>{switch(e.provider){case "Google":return FcGoogle;default:return e.provider}})(),t=()=>e.onClick(e.provider);return jsx(S,{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 qu=Yu;a();a();var ni={timestamp:Date.now(),status:"info",response:"Hello World!"};function tf(e){useEffect(()=>{e.initialMessage&&(ni.response=e.initialMessage);},[]);let r=[ni,...e.logs];return jsx(d,{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,o)=>jsx(of,{...t,scrollIntoView:o===lastIndex(r)},o)})})}function of(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:C(r[e.status])},children:`[${e.status}]`}),"\xA0",typeof e.response=="object"&&jsxs(Fragment,{children:[jsx(ft,{labelOpacity:.75,label:e.response.tag}),"\xA0"]}),jsx("span",{style:{wordSpacing:"normal",backgroundColor:e.status==="info"?void 0:C(`${r[e.status]}[0.25]`),padding:"0px .2rem"},children:typeof e.response=="object"?e.response.message:e.response})]})}var Wt=tf;function df(e){let[r,t]=useState(e.defaultTasks||[]);return useEffect(()=>e.onSnapshot(o=>{let n=Array.isArray(o)?o:"logs"in o?o.logs:null;t(n?sort(n,"timestamp","asc"):[...r,o]);}),[]),jsxs(d,{size:"full",grid:true,gridRows:"1fr .85fr",spill:"hidden",maxHeight:"full",children:[jsx(d,{size:"full",spill:{x:"hidden",y:"auto"},gap:"lg",style:{flexShrink:0},maxHeight:"full",children:jsx(For,{each:e.relatedTaskData,children:({content:o,...n})=>jsx(lt,{item:n,info:o})})}),jsx(Wt,{initialMessage:"Awaiting registration process...",logs:r})]})}var uf=df;a();function gf(e){return jsx(U,{disabled:e.disabled,allowCopyText:e.allowCopy,allowPasteText:e.allowPaste,defaultValue:e.defaultValue,value:e.value,width:e.width||"20rem",backgroundColor:"onSurface[0.1]",leadingContent:jsx(CiSearch,{size:"1.15rem"}),placeholder:e.placeholder||"Search...",onEnterKeyPressed:e.onEnterKeyPressed,onChange:e.onChange})}var bt=gf;a();a();function yf(e){return e.error?jsx(Ke,{...e,tooltip:jsx("span",{children:Object.keys(e.error).map(r=>{let t=r;return jsxs("span",{children:[jsx(h,{fontWeight:"bold",text:camelCaseToLetter(t)+": "}),jsx("span",{style:{textDecoration:"underline",opacity:.75,fontWeight:"normal"},children:e.error[t]}),jsx("br",{})]})})})}):e.children}var $t=yf;function Cf(e){let r=w(e?.verifyError),[t,o]=useState(e?.defaultStatus||"pending"),n=async()=>{let i=await e.onVerifyClick();if(console.log({verifyReq:i}),i.response)return o("success");r.upsert(i.error),o("error");};return jsx(U,{...e,leadingAdornment:jsx($t,{wrapChildren:true,asChild:t!=="error",error:r.read(),children:jsx(ut,{indicatorSize:".4rem",status:t})}),trailingContent:jsx(Bt,{onClick:n})})}var Jt=Cf;a();function Sf(e){return jsxs(d,{width:"full",row:true,align:"center",gap:"md",spill:"hidden",children:[jsx(ee,{fallback:e.user.name,src:e.user.picture}),jsxs(d,{width:"full",spill:"hidden",fontSize:".85rem",style:{lineHeight:"1.1rem"},children:[jsx(h,{ellipsis:true,text:e.user.name}),jsx(h,{ellipsis:true,fade:"0.5",text:e.user.email})]}),jsx(IconButton,{variant:"outline",rounded:"full",size:"2xs",children:jsx(IoRemove,{})})]})}var xf=Sf;a();function si(e){return r=>{let[t,o]=useState(false);return jsx(S,{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:n}=await e.handleOnClick(r);if(n)return console.error(new Error(n.message,{cause:n}));o(true),setTimeout(()=>o(false),3e3);}})}}var bn=si({actionIcon:ImPaste,label:e=>e?"Pasted!":"Paste",handleOnClick:async({inputRef:e,onClick:r})=>{let{error:t,response:o}=await readClipboardText();return t?{error:t}:(e?.current&&(e.current.value=o.text),r?.(o.text),{response:"success"})}}),Te=si({actionIcon:IoCopyOutline,label:e=>e?"Copied!":"Copy",handleOnClick:async({textToCopy:e,inputRef:r,onClick:t})=>{t?.();let o=e?typeof e=="function"?e():e:r?.current?.value;if(!o)return {error:{errorCode:"BAD_REQUEST",title:"Failed to copy text.",message:"Failed to find the text to copy."}};let{error:n}=await copyToClipboard(o);return n?{error:n}:{response:"success"}}});a();function di(e){return r=>jsx(S,{disabled:r.disabled,size:r.size,padding:r.padding,corners:"circle",backgroundColor:r.backgroundColor||"onSurface[0.25]",color:r.color||"surface",fontSize:r.iconSize,onClick:r.onClick,children:jsx(Icon,{as:e,boxSize:r.iconSize})})}var C5=di(BsPlus),_5=di(BsDash);a();function ui(e){return r=>jsx(S,{...e.defaults,text:e.label,onClick:r.onClick})}var Yn=ui({label:"Yes"}),Kn=ui({label:"No",defaults:{variant:"outline"}});a();a();function Hf(e){let r=w(e.defaulValue?.token||""),t=useRef(null),[o,n]=useState(e.defaulValue?.status),i=async()=>{let s=await e.onVerifyClick?.(r.read());return n(s),s.verified?{response:"success"}:{error:s.error}},l=s=>{r.upsert(s),e.onTokenChange?.(s);};return jsxs(d,{size:"full",spill:"hidden",maxHeight:"full",gap:"lg",children:[jsx(Jt,{allowCopyText:true,allowPasteText:true,required:true,defaultStatus:o?o.verified?"success":"error":"pending",ref:t,placeholder:e.hint,defaultValue:r.read(),onPasteClick:l,onChange:l,onVerifyClick:i}),jsxs(d,{size:"full",spill:"hidden",gap:"sm",children:[o&&jsx(Te,{textToCopy:o.payload}),jsx(Lt,{fullSize:true,json:o?o.payload:void 0})]})]})}var Mf=Hf;a();a();function gr(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}}a();a();a();a();var mi=(B=>(B.white="#FFF",B.black="#000",B.gray="#808080",B.pdf="#F40F02",B.word="#41A5EE",B.excel="#21A366",B.img="#8d481f",B.txt="#8c61a9",B.deepSkyBlue="#00BFFF",B.lightSkyBlue="#87CEFA",B.sendBlue="#0a57d0",B.onSendBlue="#c3dfff",B.book_it="#009688",B.stickyNote="#EFAD03",B.matteBlack="#28282B",B.navyBlue="#000080",B.teal="#008080",B.paper="#ffffff",B.onPaper="#28282B",B.paperVariant="#E6E6E6",B.success="#4BB543",B.hyperlink="#2979ff",B.gold="#d4af37",B.carlsbergGreen="#17B169",B.billsRed="#C60C30",B.info="#1565c0",B.error="#C60C30",B.warning="#f9a825",B.jsonKey="#D56C75",B.string="#59A779",B.number="#D19A5A",B.boolean="#56B6C2",B.jsonBracket="#FFCA1D",B.arrayBracket="#DA68A7",B.delete="#C60C30",B.pdf_table_header="#28282B",B))(mi||{}),re=mi;a();var qf=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)"}),X=qf;a();a();a();function Qf(e,r){useEffect(()=>{let t=new AbortController;return e(),()=>{t.abort();}},r);}var em=Qf;a();function om(e,r){let t=useRef(true);useEffect(()=>{if(t.current)t.current=false;else return e()},r);}var nm=om;a();function am(e){let[r,t]=useState(e);return {value:r,isOpen:!!r,show:(...o)=>{o[0]===void 0&&typeof r!="boolean"||t(typeof r=="boolean"?true:o[0]);},hide:()=>t(typeof r=="boolean"?false:void 0)}}var zt=am;a();a();var Xt=class extends EventTarget{},lm=new Xt,kr=lm;function dm(e){let[r,t]=useState(),o=useRef(new Map),n=useRef(false);return useEffect(()=>{let i=l=>{if(o.current.get(e)?.(l),n.current){n.current=false;return}t(l.detail);};return kr.addEventListener(e,i),()=>{kr.removeEventListener(e,o.current.get(e)),o.current.delete(e);}},[e,n]),{data:r,emit:useCallback((i,l={skipRender:true})=>{n.current=!!l?.skipRender,kr.dispatchEvent(new CustomEvent(e,{detail:i}));},[e]),addListener:useCallback(i=>{o.current.set(e,i);},[e])}}var um=dm;a();function gm(e){let r=useRef({current:e,previous:void 0});return {debug:()=>{let t=r.current.previous,o=r.current.current,n=()=>{if(Array.isArray(t)){let l=t;return {from:t,to:o,difference:o.filter((c,g)=>g<l.length?l[g]!==c:false)}}switch(typeof t){case "string":return {from:t,to:o,difference:o.replace(t,"")};case "object":return {from:t,to:o,difference:Object.fromEntries(Object.keys(t).map(l=>{let s=l;if(o[s]!==t[s])return [s,o[s]]}).filter(l=>!!l))};default:throw new Error("Not yet implemented bro!")}},i=250;return console.log(buildArray(i,l=>l===0||l===i?"/":"*").join(""),n()),n()},upsert:t=>{let o=typeof t=="function"?t(r.current.current):t,n=r.current.current;r.current={current:o,previous:n};},read:()=>r.current.current,delete:()=>{r.current=void 0;}}}var w=gm;a();function ym(){return useContext(pr)}var jr=ym;a();function pm(){let[,e]=useState(false);return {triggerRerender:()=>{e(true),setTimeout(()=>e(false),10);}}}var I=pm;a();function _m(e,r){let[t,o]=useState(()=>{try{let l=window.sessionStorage.getItem(e);return l?JSON.parse(l):r}catch(l){return console.log(l),r}});return [t,l=>{try{let s=l instanceof Function?l(t):l;o(s),window.sessionStorage.setItem(e,JSON.stringify(s));}catch(s){console.log(s);}},()=>{try{o(r),window.sessionStorage.removeItem(e);}catch(l){console.log(l);}}]}var bm=_m;a();export{St as AttachmentsButton,Ct as AttachmentsDialog,ee as BasicAvatar,Dr as BasicBadge,S as BasicButton,M as BasicCard,el as BasicConfirmationDialog,k as BasicDialog,Wr as BasicDisclaimer,d as BasicDiv,Ul as BasicDropzone,sl as BasicFormDialog,ce as BasicImg,it as BasicIndicator,lt as BasicItemInfo,ha as BasicMediaCard,Ns as BasicMenu,Jr as BasicOl,Gr as BasicOption,ge as BasicPopover,Va as BasicProfileCard,sc as BasicSegmentedControls,Me as BasicSelect,mc as BasicSeparator,h as BasicSpan,ut as BasicStatus,Sc as BasicStepper,zs as BasicTable,ft as BasicTag,Ac as BasicTimeline,Ke as BasicTooltip,Tt as Calendar,tu as CalendarDialog,Le as CancelButton,Hr as Checkbox,re as ColorResources,Te as CopyButton,X as CssColors,le as CssShapes,se as CssSpacing,qe as DeleteButton,ld as EditButton,rs as Editable,Bu as EmailComposer,We as EmptyState,$t as ErrorTooltip,gd as ExpandableButton,Cs as FileViewer,W as FontSize,Lt as JsonViewer,Mf as JwtVerifier,Hd as MoneyDisplayCard,_5 as NegativeButton,Nr as NextButton,Kn as NoButton,_t as OpenButton,Sd as OptionsButton,Zs as PageSlider,Vc as Paper,bn as PasteButton,kd as PaymentOptionsButton,xt as PaymentOptionsDialog,Gu as PictureUploader,C5 as PositiveButton,Xr as PreviousButton,Wd as ReceiptCard,Yr as SaveButton,bt as SearchTextField,Pt as SendButton,qu as SignInWidget,Fl as SimpleFormDialog,Ur as SubmitButton,uf as TaskLogger,br as TaskResultDialog,Wt as Terminal,U as TextField,Ze as UploadButton,VP as UploadReceiptButton,xf as UserProfile,Bt as VerifyButton,Jt as VerifyTextField,Hi as WavyUi,Yn as YesButton,Ot as YesNoButtonGroup,Eu as YesOrNoForm,b as applyBasicStyle,Fx as bankTransferPaymentOption,g0 as borderRadius,d0 as buildCSS,x0 as computedCssVariable,ji as convertHexUnitTo256,u0 as cssTransition,Nn as definePaymentOption,v0 as disabledBorderRadius,y0 as dragElement,G as ellipsis,m0 as flexCenter,gr as getFileIcon,oo as getScrollParent,Yi as hexToRgba,Rx as inAppPaymentOption,wr as isOverflown,no as isSpanMultiLine,Gi as isValidHex,p0 as nativeEllipsis,h0 as noSpaceStyle,S0 as remAsPx,Ki as remToPx,C as resolveBasicColor,ze as restrictLineCount,C0 as rgbToRgba,_0 as screenHasMaxWidth,b0 as screenHasMinWidth,f0 as solidBorder,to as tiledBackground,em as useAsyncEffect,nm as useChangeEffect,zt as useDialogController,um as useEventEmitter,w as useManagedRef,ct as usePageSliderController,jr as usePopoverContext,I as useRerender,bm as useSessionStorage};
|
|
23
|
+
translateX(calc(${p} * -5rem))`,filter:`blur(calc(${x} * .5rem))`,boxShadow:"rgba(0, 0, 0, 0.35) 0px 5px 15px"},children:typeof v=="function"?jsx(v,{isActive:m===n}):v},m)}),jsx(tn,{inset:"right",disabled:!hasIndex(e.children,n+1),onClick:c})]})})}function tn(e){let r=useContext(on),t=e.inset==="left"?BsArrowLeft:BsArrowRight,o=e.disabled||r.transitioning;return jsx(d,{fade:o?.5:1,cursor:o?"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 > *":o?void 0:{animation:"squish 300ms ease-in-out"},":active":o?void 0:{scale:.9,opacity:.75}},onClick:o?void 0:e.onClick,children:jsx(t,{size:r.navIconSize})})}a();a();var hr=createContext(null);function ke(e){let r=w(e.defaultOpen??false),{triggerRerender:t}=A(),o=`--${v4()}`,n=useRef(null),i=useRef(null),l=re__default.cloneElement(e.wrap?jsx("div",{...e.slotProps?.divWrapper,children:e.children}):e.children,{ref:i,popoverTarget:o});if(e.asChild)return e.children;useEffect(()=>{let g=e.placement||"bottom-left",v=["top","right","bottom","left"].includes(g),m=v?{positionArea:g}:ws(e.anchorPoint||"top-left",Ds(g));if(!e.visibleOnScroll){let x=Yt(n.current);x&&x.addEventListener("scroll",P=>{n.current?.hidePopover(),Object.assign(n.current?.style,{transform:`translateX(-${P.target?.scrollLeft}px)`});});}Object.assign(i.current?.style,{anchorName:o});let p={top:"bottom",right:"left",bottom:"top",left:"right"}[g.split("-")[0]];Object.assign(n.current?.style,{position:"absolute",positionAnchor:o,insetArea:e.insetArea,overflow:"hidden",[`margin-${p}`]:e.offset??".25rem",...m,...e.positionFallbacks?{positionTryFallbacks:e.positionFallbacks}:{},...b({minHeight:e.minHeight,maxHeight:e.maxHeight,height:e.height,minWidth:s(e.minWidth),maxWidth:s(e.maxWidth),width:s(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:"rgba(0, 0, 0, 0.35) 0px 5px 15px",scrollbarWidth:"thin"}})});},[]),useEffect(()=>{e.defaultOpen&&n.current?.showPopover();let g=e.displayAction||"click";if(n.current?.addEventListener("beforetoggle",v=>{let m=v.newState==="open";m?e.onOpen?.():e.onClose?.(),e.onOpenChange?.(m),r.upsert(m),!m&&e.rerenderOnClose&&t();}),g==="click")i.current?.addEventListener("click",()=>{c(()=>n.current?.togglePopover());});else {let v,p=()=>{v&&(v=null),c(()=>n.current?.hidePopover(),"close");};i.current?.addEventListener("mouseover",()=>{c(()=>n.current?.showPopover(),"open");}),i.current?.addEventListener("mouseleave",()=>{e.allowInteractions?v=setTimeout(p,20):p();}),e.allowInteractions&&(n.current?.addEventListener("mouseenter",()=>{v&&clearTimeout(v);}),n.current?.addEventListener("mouseleave",p));}},[]);let s=(g,v)=>g==="match-anchor"?getComputedStyle(i.current)?.width:g??v,c=(g,v)=>{let m=200;typeof e.delay=="number"?m=e.delay:e.delay&&v in e.delay&&(m=e.delay[v]),setTimeout(g,m);};return jsxs(hr.Provider,{value:{open:()=>{n.current?.showPopover();},close:()=>{n.current?.hidePopover();},isOpen:()=>r.read()},children:[l,jsx("div",{popover:"auto",id:o,ref:n,className:"popover-transition",children:e.content})]})}var Ds=e=>{let{0:r,1:t}=e?.split("-");return t=t==="left"?"start":t==="right"?"end":t??r,{vertical:`anchor(${r})`,horizontal:`anchor(${t})`}},ws=(e,r)=>{let{0:t,1:o}=e?.split("-");return {[t]:r.vertical,[o]:r.horizontal}};a();function yp(e){let r=t=>{e.onChange?.(t.value);};return jsxs(SegmentGroup.Root,{size:e.size,width:e.width,defaultValue:e.defaultValue,value:e.value,onValueChange:r,children:[jsx(SegmentGroup.Indicator,{}),e.controls.map(t=>{let o=typeof t=="string"?t:t.value;return jsxs(SegmentGroup.Item,{padding:"3",value:o,children:[jsx(SegmentGroup.ItemText,{children:o}),jsx(SegmentGroup.ItemHiddenInput,{})]},o)})]})}a();function un(e){return jsx(Tag.Root,{opacity:e.opacity,padding:"1",color:C(e.color),height:"fit-content",flexShrink:0,display:"inline-flex",children:jsx(Tag.Label,{opacity:e.labelOpacity,children:e.label})})}a();function kp(e){let r=e.responsive??true,t={A4:{},A6:r?{maxHeight:"148mm",height:"60vh",aspectRatio:"1/sqrt(2)"}:{height:"148mm",width:"105mm"}}[e.size];return jsx(d,{id:e.id,spill:"hidden",backgroundColor:"paper",color:"onPaper",style:{...t,...e.style},children:e.children})}a();function mn(e){let r={pending:"gray",success:"carlsbergGreen",error:"error"},t=e.indicatorSize||".3rem";return jsxs(d,{row:true,disableSelection:true,align:"center",gap:"md",corners:"md",padding:"sm",backgroundColor:`${r[e.status]}[0.5]`,style:{zIndex:3},children:[jsx(d,{corners:t,size:t,backgroundColor:r[e.status]}),!e.indicatorOnly&&jsx(h,{style:{fontWeight:500},fontSize:".85rem",color:`${r[e.status]}[0.75]`,text:upperFirst(e.status)})]})}a();function Mp(e){return jsxs(({children:t})=>{let o={...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,...o,children:t}):jsx(Steps.Root,{...o,count:e.steps.length,children:t})},{children:[jsx(Steps.List,{opacity:e.nested?.7:1,children:e.steps.map((t,o)=>jsxs(Steps.Item,{index:o,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,{})]},o))}),jsxs(Stack,{justifyContent:"space-between",height:"full",width:"full",overflow:"hidden",children:[e.steps.map((t,o)=>jsx(Steps.Content,{height:"full",width:"full",index:o,overflow:"hidden",children:typeof t.description=="function"?jsx(t.description,{}):t.description},o)),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"})})]})]})]})}a();a();var hn=re.forwardRef(function(r,t){let{showArrow:o,children:n,disabled:i,portalled:l=true,content:s,contentProps:c,portalRef:g,...v}=r;return i?n:jsxs(Tooltip.Root,{...v,children:[jsx(Tooltip.Trigger,{asChild:true,children:n}),jsx(Portal,{disabled:!l,container:g,children:jsx(Tooltip.Positioner,{children:jsxs(Tooltip.Content,{ref:t,...c,children:[o&&jsx(Tooltip.Arrow,{children:jsx(Tooltip.ArrowTip,{})}),s]})})})]})});function pr(e){if(e.asChild)return e.children;let{padding:r,borderRadius:t,color:o,backgroundColor:n}=b({padding:e.padding||"sm",corners:e.corners||"sm",color:e.color||"onSurface",backgroundColor:e.backgroundColor||"onSurface[0.1]"});return jsx(hn,{positioning:{placement:e.placement},showArrow:e.arrow,openDelay:e.delay?.open,closeDelay:e.delay?.close,content:e.tooltip,contentProps:{padding:r,color:o,borderRadius:t,style:{backdropFilter:"blur(.25rem)"},css:{"--tooltip-bg":n}},children:e.wrapChildren?jsx("span",{style:e.slotProps?.spanWrapper?{...b(e.slotProps.spanWrapper)}:void 0,children:e.children}):e.children})}a();var at=createContext(null);function Vs(e){let r=w([]),t=e.lineSeparatorColor||"onSurface[0.5]",o=Array.isArray(e.children)?e.children:[e.children],n=o.length===1?o:o.map((l,s)=>s===0||!e.rowGap?l:jsxs(Fragment,{children:[jsx("p",{}),jsx(d,{width:"full",align:"center",children:jsx("p",{style:{width:"1px",height:e.rowGap,backgroundColor:C(t)}})}),jsx("p",{}),l]})),i=()=>{if(o.length===1)return "both";let l=[...r.read(),0];if(r.upsert(l),l.length===1)return "first";if(l.length===o.length)return "last"};return jsx(at.Provider,{value:{register:i,lineSeparatorColor:t},children:jsx(d,{grid:true,width:e.width??"fit-content",gridCols:"auto auto auto",style:{columnGap:e.columnGap||".5rem"},children:n})})}function Ws(e){let[r,t]=useState(),{register:o}=useContext(at),{indicator:n,before:i,after:l}=e.styles||{};useEffect(()=>{let c=o();typeof c=="string"&&t(c);},[r]);let s=c=>r===c||r==="both";return jsxs(Fragment,{children:[jsx(Cn,{disabled:e.disabled,style:{...i,align:i.align||"end"},children:e.before}),jsxs(d,{align:"center",height:"full",children:[jsx(_n,{hide:s("first")}),jsx(d,{style:{...b({...n||{},size:n?.size??".6rem",corners:n?.corners||"circle",backgroundColor:n?.backgroundColor||"onSurface"}),flexShrink:0},children:e.indicator}),jsx(_n,{hide:s("last")})]}),jsx(Cn,{disabled:e.disabled,style:l,children:e.after})]})}function Cn(e){return jsx(d,{size:"full",style:{...b({...e.style||{},fade:e.disabled?.5:e.style.fade}),justifyContent:"center",flexGrow:1},children:e.children})}function _n(e){let{lineSeparatorColor:r}=useContext(at);return jsx(d,{width:"1px",height:"full",backgroundColor:r,fade:e.hide?0:1})}var oC={Root:Vs,Item:Ws};a();function dC(e){let r=()=>jsx(Separator,{flex:"1",variant:e.variant,orientation:e.orientation,size:e.size,color:C(e.color)});return e.label?jsxs(HStack,{children:[["center","right"].includes(e.labelPosition)&&jsx(r,{}),jsx(Text,{flexShrink:"0",color:C(e.labelColor),children:e.label}),["center","left"].includes(e.labelPosition)&&jsx(r,{})]}):jsx(r,{})}a();a();var lt=(e,r)=>{let t=o=>!!o.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 G(e){let[r,t]=useState(e.defaultValue??""),o=e.value!==void 0,n=e.ref||useRef(null),i=useRef(null),l=e.maxChars??1/0,s="2rem",c=y=>typeof e.indent=="string"?e.indent:e.indent?.[y],g="md",{size:v,...m}=e,p={label:b({...e?.slotProps?.label,fade:e?.slotProps?.label?.fade||.75}),helperText:b({...e?.slotProps?.helperText}),root:b({width:e.width}),input:b({...m,width:"full",padding:{top:g,left:e.leadingContent?c("left")||s:g,right:e.trailingContent||e.showCharCounter?c("right")||s:g,bottom:g},corners:!e.corners&&e.corners!==0?".75rem":e.corners})},x=y=>{n.current.value=y,e.onChange(y,null);};useEffect(()=>{e.showCharCounter&&Object.assign(n.current?.style,{paddingRight:`calc(${getComputedStyle(i.current).width} + 7px)`});},[r,e.value]),useEffect(()=>{let y=_=>{if(e.format!=="currency")return;let D=_;if(D=D.replace(/[^0-9.]/g,"").replace(/\.{2,}/,"").split(".").filter((R,z)=>z<2).join("."),D&&takeLast(D.split(""))[0]!=="."){let R=parseFloat(D);if(!isNaN(R)){let z=new Intl.NumberFormat;x(z.format(R));}}};n.current?.addEventListener?.("beforeinput",_=>{let D=_.data,R=e.format==="currency"?/[0-9.]/:e.allowedChars||"all";R==="all"||Array.isArray(R)&&R.includes("all")||D===null||(!Array.isArray(R)&&!lt(D,R)||Array.isArray(R)&&R.some(z=>!lt(D,z)))&&_.preventDefault();}),n.current?.addEventListener?.("paste",_=>{y(_.target.value);}),n.current?.addEventListener?.("input",_=>{y(_.target.value);});},[n.current]);let P=y=>{e.onChange?.(y,void 0),e.onPasteClick?.(y);};return jsxs(Field.Root,{required:e.required,disabled:e.disabled,style:p.root,children:[e.label&&jsxs(Field.Label,{style:p.label,children:[e.label," ",jsx(Field.RequiredIndicator,{})]}),jsx(Ks,{elementRef:n,useCopy:e.allowCopyText,usePaste:e.allowPasteText,onPaste:P,slotProps:e.slotProps,children:jsx(InputGroup,{startElement:e.leadingContent,startElementProps:e.slotProps?.leadingContent||{padding:"2"},endElement:e.showCharCounter?jsx(h,{ref:i,fade:.5,fontSize:e.slotProps?.charCounter?.fontSize||(n.current?getComputedStyle(n.current).fontSize:void 0),text:`${(e.value??r).length}/${l}`}):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||n,width:"full",autoFocus:e.autoFocus,size:v,zIndex:1,variant:e.variant,onKeyDown:y=>{y.key==="Enter"?e.onEnterKeyPressed?.():y.key==="Escape"&&e.onEscapeKeyPressed?.();},value:e.value??r,overflow:"hidden",style:p.input,onFocus:e.onFocus,onBlur:e.onBlur,css:{"--focus-color":C(e.focusColor||"primary")},_placeholder:e.slotProps?.placeholder?.color?{color:C(e.slotProps.placeholder.color)}:void 0,onChange:y=>{let _=y.currentTarget.value;e.onChange?.(_,y),o||t(_);},placeholder:e.placeholder})})}),e.helperText&&jsx(Field.HelperText,{style:p.helperText,children:e.helperText})]})}function Ks(e){return !e.useCopy&&!e.usePaste?e.children:jsxs("div",{style:{display:"flex",alignItems:"center",gap:se.sm,width:"100%"},children:[e.children,e.useCopy&&jsx(Ee,{iconOnly:e.slotProps?.copyButton?.iconOnly,inputRef:e.elementRef}),e.usePaste&&jsx(Bn,{iconOnly:e.slotProps?.pasteButton?.iconOnly,inputRef:e.elementRef,onClick:e.onPaste})]})}a();function No(e){let[r,t]=useState(false),n={error:BsExclamationCircle,info:BsInfoCircle,warning:BsExclamationTriangle}[e.severity],i=e.iconSize||"1rem",l=e.gap||"md",s=jsx(n,{size:i,style:{flexShrink:0}});return jsxs(d,{row:e.hideLabel,top:e.top,left:e.left,right:e.right,bottom:e.bottom,pos:e.pos,width:e.width,gap:e.hideLabel?l:void 0,corners:"md",backgroundColor:C(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?s:jsxs(d,{row:true,gap:l,align:"center",children:[s,jsx(h,{fontWeight:"bold",fontSize:"xs",text:(e.facade?.(e.severity)||e.severity).toUpperCase()})]}),jsx("span",{ref:c=>{c&&t(Kt(c));},style:b({fontSize:e.fontSize||"sm",fade:e.hideLabel?1:.75,style:{paddingLeft:e.hideLabel?void 0:`calc(${i} + ${b({gap:l}).gap})`}}),children:e.message})]})}a();a();a();a();function Dn(e){return {FlyLeavingBox:rc}[e]}var ut=createContext(null);function nc(e){let r=w(e.attachments||[]),{triggerRerender:t}=A(),o=()=>{e.onClose?.(),e.rerenderOnClose&&t();};return jsx(ut.Provider,{value:{...e,attachmentsEventListener:(n,i)=>{let l=r.read();n==="add"&&(l=[...l,i]),n==="delete"&&(l=l.filter(({uid:s})=>s!==i.uid)),r.upsert(l),e.onAttachmentsChange?.(l),n==="delete"&&isEmpty(l)&&t(),e.attachmentsEventListener?.(n,i);},attachments:r.read(),rerender:t},children:jsxs(k.Root,{onClose:o,unmountOnExit:e.unmountOnExit,maxHeight:"30rem",width:"27rem",scrollBehavior:"inside",triggerElement:e.triggerElement,controller:e.controller,spill:"hidden",children:[jsx(k.Header,{style:{flexShrink:0},fontSize:"xxl",children:"Attachments"}),jsx(k.Body,{size:"full",padding:"sm",spill:"hidden",children:isEmpty(r.read())?jsx(lc,{}):jsx(ic,{})})]})})}function ic(){let e=useContext(ut),r=w(void 0),[t,o]=useState(""),[n,i]=useState(e?.attachments||[]);useEffect(()=>{r.upsert(true);},[]),useEffect(()=>{r.read()===true&&r.upsert(false);});let l=t.trim()?n.filter(({name:m})=>m.toLowerCase().includes(t.toLowerCase())):n,s=isEmpty(l)&&!!t.trim(),c=m=>{i(p=>p.filter(({uid:x})=>x!==m.uid)),e?.onAttachmentDeleted?.(m),e?.attachmentsEventListener?.("delete",m);},g=(m,p)=>{let x=sanitizeLocalFile(p[0]);i([...n,x]),e?.onAttachmentAdded?.(x),e?.attachmentsEventListener("add",x);},v=m=>{e?.onOpenAttachment?.(m),e?.attachmentsEventListener?.("open",m);};return jsxs(Fragment,{children:[jsx(gt,{width:"full",value:t,onChange:o}),jsx(d,{size:"full",maxHeight:"10rem",spill:"auto",padding:s?"lg":void 0,centerContent:s,children:s?jsx("span",{style:{opacity:.75},children:`"${t}" not found`}):l.map((m,p,x)=>jsx(ac,{scrollIntoView:r.read()===false&&p===x.length-1,value:m,hideDeleteButton:e.hideDeleteButton,hideOpenAttachmentButton:e.hideOpenAttachmentButton,disableDelete:typeof e?.deleteDisabled=="function"?e.deleteDisabled(m):e?.deleteDisabled,disableOpen:typeof e?.openDisabled=="function"?e.openDisabled(m):e?.openDisabled,onDelete:c,onOpen:v},m.uid))}),!e.hideUploadButton&&jsx(Ke,{getFilePath:e?.getFilePath,disabled:e?.uploadDisabled,fileClass:"attachment",size:"xs",width:"full",onAccept:g})]})}function ac(e){let{typeAlias:r,path:t,name:o,sizeInBytes:n}=e.value,i=gr(r);return jsxs($.Root,{corners:"md",width:"full",sx:{cursor:"default",overflow:"hidden",transition:"all 300ms linear",":hover":{backgroundColor:"outline[0.1]"}},children:[jsx($.LeadingAddOn,{size:"2rem",aspectRatio:1,color:r,padding:"sm",corners:"md",backgroundColor:"onSurface[0.1]",style:{flexShrink:0},children:r==="img"&&t.trim()?jsx(de,{src:t.trim(),size:"full",corners:"md",spill:"hidden"}):jsx(i.outlined,{size:"100%"})}),jsxs($.Content,{gap:"sm",width:"full",children:[jsx($.Item,{truncateStyle:"ellipsis",value:o}),jsxs(d,{ref:l=>l&&e.scrollIntoView&&l.scrollIntoView({behavior:"instant"}),fade:.7,row:true,align:"center",gap:"sm",fontSize:"xxs",children:[jsx(h,{fontWeight:"bold",text:r.toUpperCase()}),jsx(d,{size:".25rem",corners:"circle",backgroundColor:"onSurface"}),jsx(h,{fade:.5,text:format("file-size",n)})]})]}),(!e.hideDeleteButton||!e.hideOpenAttachmentButton)&&jsxs($.TrailingAddOn,{row:true,gap:"sm",align:"center",children:[!e.hideOpenAttachmentButton&&jsx(mt,{iconOnly:true,disabled:e.disableOpen,borderColor:"transparent",size:"sm",onClick:()=>e.onOpen?.(e.value)}),!e.hideDeleteButton&&jsx(Ye,{iconOnly:true,disabled:e.disableDelete,backgroundColor:"transparent",color:"delete",size:"sm",onClick:()=>e.onDelete?.(e.value)})]})]})}function lc(){let e=useContext(ut);return jsxs(fr.Root,{children:[jsx(fr.Indicator,{size:"7rem",disableFade:true,element:jsx(de,{spill:"hidden",size:"full",src:Dn("FlyLeavingBox")})}),jsx(fr.Content,{title:"Attachments not found",description:"Upload an attachment and it will appear here."}),!e.hideUploadButton&&jsx(Ke,{disabled:e.uploadDisabled,getFilePath:e.getFilePath,fileClass:"attachment",backgroundColor:"secondaryContainer",color:"onSecondaryContainer",accepts:e.accepts,onAccept:(r,t)=>{t.forEach(o=>{e?.attachmentsEventListener?.("add",sanitizeLocalFile(o));}),e.rerender();}})]})}var ft=nc;function dc(e){let r=w(Array.isArray(e.attachments)?e.attachments:[]),{triggerRerender:t}=A(),o=n=>{r.upsert(n);};return jsx(pr,{tooltip:"Attachments",placement:"right",children:jsx(Lo,{circleChild:true,asChild:!e.attachments,badge:jsx(Ko,{content:typeof e.attachments=="number"?e.attachments:r.read().length}),children:jsx(uc,{asChild:!Array.isArray(e.attachments),attachments:r.read(),onAttachmentsChange:o,onClose:t,...e.slotProps?.attachmentsDialog,children:jsxs(d,{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 uc(e){let{asChild:r,children:t,unmountOnExit:o,onAttachmentsChange:n,onClose:i,...l}=e;return r?t:jsx(ft,{...l,unmountOnExit:o,triggerElement:t,onAttachmentsChange:n,onClose:i})}var vt=dc;a();var mc=ce({preset:{text:"Cancel",leadingEl:null,trailingEl:null},optional:{backgroundColor:"transparent",color:"onSurface",fade:.75}}),$e=mc;a();function yc(e){return jsx(S,{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 Ye=yc;a();function Cc(e){let{iconOnly:r,...t}=e;return jsx(S,{...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 _c=Cc;a();function kc(e){let r=w(e.initialState==="expanded"),t=e.icon||"chevron",o=t==="chevron"?BsChevronBarExpand:BsArrowsAngleExpand,n=t==="chevron"?BsChevronBarContract:BsArrowsAngleContract,i=r.read()?n:o;return jsx(d,{clickable:true,onClick:()=>{r.upsert(s=>(s?e.onContract():e.onExpand(),!s));},children:jsx(i,{})})}var Dc=kc;a();function wc(e){return jsx(S,{disabled:e.disabled,text:"Next",backgroundColor:"tertiaryContainer",color:"onTertiaryContainer",onClick:e.onClick})}var Kr=wc;a();function Fc(e){return jsx(S,{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 mt=Fc;a();function Oc(e){return jsx(S,{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 Ic=Oc;a();function Mc(e){let r=jsx(S,{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(yt,{triggerElement:r,options:e.options}):r}var Lc=Mc;a();function Vc(e){return jsx(S,{disabled:e.disabled,border:"onSurface[0.15]",color:"onSurface",backgroundColor:"transparent",text:"Previous",onClick:e.onClick})}var qr=Vc;a();function Jc(e){return jsx(S,{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 ht=Jc;a();function Nc(e){return jsx(S,{async:true,disabled:e.disabled,text:`Submit ${e.class||""}`.trim(),onClick:e.onClick})}var Zr=Nc;a();function Gc(e){return jsx(S,{padding:"sm",gap:"sm",size:"xs",leadingEl:jsx(MdVerifiedUser,{}),backgroundColor:"primaryContainer",color:"onPrimaryContainer",text:"Verify",onClick:e.onClick})}var pt=Gc;a();function Yc(e){let r="rgba(0, 0, 0, 0.35) 0px 5px 15px",t=e.currency||"JMD";return jsxs(d,{width:e.width,gap:e.gap||"md",padding:"1.5rem",color:e.color||"surface",corners:e.corners||"lg",style:{boxShadow:r,background:jt({backgroundColor:e.backgroundColor||"onSurface",borderColor:e.wireColor||"surface[0.25]",tileSize:"1.5rem"})},children:[jsxs(d,{gap:"sm",color:"inherit",children:[e.label&&jsx(h,{fade:.75,fontSize:e.slotProps?.label?.fontSize||"sm",text:e.label,color:"inherit"}),jsxs(d,{row:true,align:"end",gap:"sm",children:[jsx(h,{fontWeight:"bold",fontSize:e.slotProps?.fee?.fontSize||"xl",text:format("money",e.amount,{truncate:typeof e.truncateFee=="boolean"?e.truncateFee:e.truncateFee?.(e.amount)})}),jsx(h,{fontWeight:"bold",fade:.5,fontSize:e.slotProps?.currency?.fontSize||"sm",text:t})]})]}),e.children]})}var Kc=Yc;a();function Qc(e){return jsxs($.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($.LeadingAddOn,{size:"2rem",padding:"sm",centerContent:true,corners:"md",backgroundColor:e.indicatorBackgroundColor||"surface[0.1]",style:{flexShrink:0},children:e.receiptPath?jsx(de,{corners:"md",src:e.receiptPath,size:"full",spill:"hidden"}):jsx(TfiReceipt,{size:"100%"})}),jsxs($.Content,{width:"full",gap:"xs",children:[jsx($.Label,{value:"Your receipt",fade:.75,truncateStyle:"ellipsis"}),jsx($.Item,{value:e.receiptName||(e.receiptPath?inferFilename(e.receiptPath):"unknown"),truncateStyle:"ellipsis"})]}),!e.hideDeleteButton&&jsx($.TrailingAddOn,{children:jsx(Ye,{iconOnly:true,iconVariant:e.deleteIconVariant,iconSize:e.deleteButtonSize,backgroundColor:"transparent",color:"delete",onClick:e.onDeleteClick})})]})}var ed=Qc;a();function sd(e){let[r,t]=useState(e.selectedDate||new Date),o=w(r),n=e.minDate==="today"?new Date:Mn(e.minDate)||new Date("Jan 1, 1920"),i=e.maxDate==="today"?new Date:!e.maxDate||e.maxDate==="end-of-year"?dd():Mn(e.maxDate),l=m=>{t(m),e.onDateSelected?.(m);},s=m=>m.toDateString()===r.toDateString(),c=m=>m.toDateString()===new Date().toDateString(),g=m=>{let p=o.read();return p.getMonth()===m.getMonth()&&fd(m.getDate(),p.getMonth())},v=m=>o.upsert(m);return jsx(nd,{inline:true,required:e.required,allowSameDay:e.allowSameDay,minDate:n,maxDate:i,onMonthChange:v,onYearChange:v,renderCustomHeader:m=>jsx(cd,{...m,minDate:n,maxDate:i}),form:e.formId,selected:r,onChange:l,calendarClassName:"calendar",weekDayClassName:()=>"calendar-week-day",dayClassName:m=>["calendar-date",s(m)?"selected":"unselected",c(m)?"today":"",g(m)?"":"out-of-bounds",ud(m,i)?"excluded":""].join(" ")})}function cd(e){let r=["January","February","March","April","May","June","July","August","September","October","November","December"],t=r.filter((c,g)=>{let v=e.date.getFullYear();return v===e.minDate.getFullYear()?g>=e.minDate.getMonth():v===e.maxDate.getFullYear()?g<=e.maxDate.getMonth():true}),o=r[e.date.getMonth()],n=c=>{e.changeMonth(r.findIndex(g=>g===c));},i=c=>{e.changeYear(parseInt(c));},l=()=>range(e.minDate.getFullYear(),e.maxDate.getFullYear()+1),s=c=>["calendar-chevron","calendar-nav",c?"disabled":""].join(" ");return jsxs(d,{width:"full",row:true,align:"center",justify:"space-between",padding:["md","bottom"],children:[jsx(IoChevronBack,{className:s(e.prevMonthButtonDisabled),onClick:e.prevMonthButtonDisabled?void 0:e.decreaseMonth}),jsxs(d,{row:true,align:"center",gap:"md",children:[jsx(Hn,{label:o,isSelected:c=>o===c,options:t.map(c=>({value:c})),onOptionClick:n}),jsx(Hn,{label:`${e.date.getFullYear()}`,isSelected:c=>`${e.date.getFullYear()}`===c,options:l().map(c=>({value:c.toString()})).toReversed(),onOptionClick:i})]}),jsx(IoChevronForward,{className:s(e.nextMonthButtonDisabled),onClick:e.nextMonthButtonDisabled?void 0:e.increaseMonth})]})}function Hn(e){return jsx(He,{isSelected:({value:r})=>e.isSelected(r),onOptionClick:({value:r})=>e.onOptionClick(r),options:e.options,maxHeight:"10rem",children:jsxs("div",{style:{display:"inline-flex",gap:".25rem",alignItems:"center",cursor:"pointer",borderRadius:".5rem",fontSize:"1.1rem",fontWeight:"bold"},children:[jsx("span",{style:{},children:e.label}),jsx(IoChevronDown,{className:"calendar-chevron"})]})})}var Mn=e=>{if(e)return e instanceof Date?e:new Date(e)};var dd=()=>{let e=new Date;return e.setMonth(11),e.setDate(31),e};var ud=(e,r)=>{let t={year:e.getFullYear(),month:e.getMonth(),date:e.getDate()},o={year:r.getFullYear(),month:r.getMonth(),date:r.getDate()};if(t.year>o.year)return true;if(t.year===o.year){if(t.month>o.month)return true;if(t.month===o.month)return t.date>o.date}return false},fd=(e,r)=>{let t=new Date;return t.setMonth(r),t.setDate(e),t.getMonth()===r};var St=memo(sd);a();a();var md=ce({preset:{text:"Done"},optional:{backgroundColor:"onSurface",color:"surface"}}),Ln=md;function gd(e){let r=w(null),{controller:t,triggerElement:o,backdropBlur:n,backgroundColor:i,...l}=e,s=e.actionButtonSize||"xs",c=m=>{r.upsert(m),e.onDateSelected?.(m);},g=()=>{e.onDoneClick?.(r.read());},v=m=>{e.onOpenChange?.(m);};return jsxs(k.Root,{hideCloseButton:true,onOpenChange:v,width:"max-content",controller:t,triggerElement:o,backgroundColor:i||"surface[0.25]",backdropBlur:n||".5rem",children:[e.title&&jsx(k.Header,{fontSize:e.titleFontSize,children:e.title}),jsx(k.Body,{children:jsx(St,{...l,selectedDate:e.selectedDate||r.read(),onDateSelected:c})}),jsxs(k.Footer,{children:[jsx(k.ActionTrigger,{children:jsx($e,{size:s,fade:.5})}),jsx(k.ActionTrigger,{children:jsx(Ln,{size:s,onClick:g})})]})]})}var vd=gd;a();function bd(e){let[r,t]=useState(),o=r?FaAngleUp:FaAngleDown,n=i=>{if(i.content)return typeof i.content=="string"?jsx("span",{children:i.content}):jsx(d,{fade:.75,padding:["md",["left","right","bottom"]],fontSize:"xs",children:Object.keys(i.content).map(l=>jsxs("span",{children:[jsxs("strong",{children:[l,":"]}),"\xA0",i.content[l]]}))})};return jsxs(k.Root,{triggerElement:e.triggerElement,controller:e.controller,width:"22rem",children:[jsx(k.Header,{children:"Payment Options"}),jsx(k.Body,{gap:"sm",width:"full",children:e.options.map((i,l)=>{let s=i.variables?i?.["pre-element"]?.(i.variables):void 0,c=i.variables?i?.["post-element"]?.(i.variables):void 0;return jsxs(Fragment,{children:[s,jsxs(d,{width:"full",css:{backgroundColor:r?.index===l?"onSurface[0.1]":void 0},corners:"md",asChildren:!i.dropDownContent,children:[jsxs(d,{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===l?void 0:{backgroundColor:"onSurface[0.1]"}},onClick:()=>{i.onClick?.(i.variables),i.dropDownContent&&t(r?void 0:{index:l});},children:[jsx(i.icon,{size:"1.5rem"}),jsxs(d,{asChildren:!i.description,width:"full",children:[jsx(h,{width:"full",fontSize:"sm",text:i.label}),i.description&&jsx("span",{children:i.description,style:{opacity:.75,fontSize:V.xs}})]}),i.dropDownContent&&jsx(o,{})]}),i.dropDownContent&&r?.index===l&&jsx(n,{content:i.dropDownContent})]}),c]})})})]})}var Wn=e=>e,GS=e=>Wn({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}}),jS=()=>Wn({icon:RiSecurePaymentFill,label:"In App Payment",disabled:true,variables:{}}),yt=bd;a();var $n=createContext(null);function xt(e){let r=e.controller,t=!!r.value?.response,{title:o,message:n}=r.value?.response||r.value?.error||{},i=t?"carlsbergGreen":"billsRed",l=(()=>{if(r.value)return !e.indicator||e.indicator==="normal"?t?BsCheck2Circle:IoWarningOutline:e.indicator==="mail"?t?RiMailSendLine:RiMailCloseLine:e.indicator(t?"success":"error")})(),s=e.actionButton?.(t?"succes":"error");return jsx($n.Provider,{value:{color:i},children:jsxs(k.Root,{controller:r,width:"25rem",gap:"sm",unmountOnExit:e.unmountOnExit,borderColor:e.disableColorIndicator?void 0:[i,"left"],children:[jsxs(k.Body,{grid:true,gridCols:"auto 1fr",gap:"lg",children:[jsx(l,{color:C(i),size:"2.75rem"}),jsxs(d,{width:"full",gap:"sm",spill:"hidden",padding:["md","top"],children:[jsx("span",{style:{fontSize:V.lg},children:o}),jsx("span",{style:{fontSize:V.sm,opacity:.5},children:n})]})]}),jsxs(k.Footer,{row:true,gap:"md",align:"center",children:[jsx(S,{size:"xs",backgroundColor:s?"transparent":"onSurface[0.1]",color:"onSurface[0.75]",text:"Dismiss",onClick:r.hide}),s&&jsx(Ed,{...s})]})]})})}function Ed(e){let{color:r}=useContext($n);return jsx(S,{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 Jn=e=>r=>({disabled:r.disabled,async:true,label:e,leadingIcon:GrRotateLeft,onClick:r.onClick});xt.tryAgainButton=Jn("Try Again");xt.retryButton=Jn("Retry");var br=xt;a();var Pt="onPaper[0.1]",Sr=", ";function zd(e){let r=w(typeof e.disableSend=="boolean"?e.disableSend:!!e.onSendClick),t=kt(),o=w({subject:e.subject??"",body:e.body||"",recipients:e.recipients?.join?.(Sr)??"",attachments:e.attachments||[]}),n=(s,c)=>{o.upsert(g=>({...g,[s]:c}));},i=()=>strictArray(o.read().recipients.split(Sr)),l=async()=>{let{subject:s,body:c,attachments:g}=o.read(),v=await e.onSendClick({subject:s,body:{text:c,html:e.bodyToHtml?.(c)},recipients:i(),attachments:g});if(typeof v!="object")return;let{error:m,response:p}=v;if(typeof e.disableSend=="function"&&r.upsert(e.disableSend(v)),m)return t.show({error:m});p!=="success"?t.show({response:p}):t.show({response:{title:"Successfully sent email!",message:"Your email was successfully sent to the intended recipients."}});};return jsxs(d,{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(br,{unmountOnExit:true,disableColorIndicator:e.slotProps?.taskResultDialog?.disableColorIndicator,controller:t,indicator:"mail",actionButton:s=>s==="succes"?void 0:br.tryAgainButton({disabled:r.read(),onClick:l})}),e.readOnly&&o.read().recipients?jsx(Id,{recipients:i()}):jsx(Od,{readOnly:e.readOnly,recipients:i(),onChange:s=>n("recipients",s)}),jsx(Ad,{subject:o.read().subject,readOnly:e.readOnly,onChange:s=>n("subject",s)}),jsxs(d,{size:"full",gap:"sm",spill:"hidden",children:[jsx(Hd,{defaultValue:o.read().body,readOnly:e.readOnly,onChange:s=>n("body",s)}),jsxs(d,{width:"full",row:true,align:"center",justify:"space-between",gap:"md",children:[jsx(vt,{attachments:o.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(ht,{size:"2xs",disabled:r.read(),onClick:l})]})]})]})}function Od(e){let[r,t]=useState(false),o=n=>jsx(h,{text:n.value,cursor:"not-allowed",sx:{":hover":{textDecoration:"underline"}}});return jsx(Nn,{readOnly:e.readOnly,placeholder:"Recipients",defaultValue:e.recipients.join(Sr),onFocus:e.readOnly?void 0:()=>t(true),onBlur:e.readOnly?void 0:()=>t(false),autoFocus:r,leadingContent:r?jsx(h,{fontSize:"xs",text:"To:"}):void 0,trailingContent:jsxs(d,{row:true,gap:"sm",fontSize:"xs",children:[jsx(o,{value:"Cc"}),jsx(o,{value:"Bcc"})]}),indent:{right:"3rem"},onChange:e.onChange})}function Id(e){return jsxs(d,{width:"full",grid:true,gridCols:"1fr auto",gap:"md",justify:"space-between",borderColor:[Pt,"bottom"],children:[jsx(d,{row:true,width:"full",gap:"md",spill:"hidden",padding:["sm","bottom"],children:e.recipients.map(r=>jsxs(d,{row:true,align:"center",gap:"sm",fontSize:"xs",color:"onPaper",borderColor:"onPaper[0.1]",padding:"xs",corners:"xl",spill:"hidden",children:[jsx(ue,{size:"2xs",backgroundColor:"sendBlue[0.25]",color:"sendBlue"}),jsx(h,{ellipsis:true,text:r})]}))}),jsx(Bt,{textToCopy:e.recipients.join(Sr)})]})}function Ad(e){let r=!!(e.readOnly&&e.subject);return jsxs(d,{row:true,width:"full",gap:"md",justify:"space-between",align:"center",padding:["xs",["top","bottom"]],asChildren:!r,borderColor:[Pt,"bottom"],children:[jsx(Nn,{disableSepColor:r,placeholder:"Subject",defaultValue:e.subject,readOnly:e.readOnly,onChange:e.onChange}),r&&jsx(Bt,{textToCopy:e.subject})]})}function Hd(e){let r=!!(e.defaultValue&&e.readOnly);return jsxs(d,{pos:"relative",size:"full",asChildren:!r,children:[jsx("textarea",{defaultValue:e.defaultValue,readOnly:e.readOnly,style:{position:r?"relative":void 0,scrollbarColor:`${C("onPaper")} transparent`,padding:".6rem",width:"100%",height:"100%",backgroundColor:"transparent",outline:"none",resize:"none",fontSize:V.xs,zIndex:1,flexShrink:r?0:1},onChange:t=>e.onChange(t.target.value)}),r&&jsx(d,{pos:"absolute",top:"72.5%",left:"85%",style:{zIndex:2},children:jsx(Bt,{textToCopy:e.defaultValue})})]})}function Nn(e){return jsx(G,{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":[Pt,"bottom"],onChange:e.onChange})}function Bt(e){return jsx(Ee,{iconOnly:true,iconSize:"xs",textToCopy:e.textToCopy,backgroundColor:"onPaper[0.1]",color:"onPaper",borderColor:"onPaper[0.25]"})}var Md=zd;a();a();function Ld(e){return jsxs(d,{row:true,gap:"md",children:[jsx(Gn,{onClick:e.onNoClick}),jsx(Un,{onClick:e.onYesClick})]})}var Dt=Ld;function $d(e){return jsxs(d,{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(Dt,{onNoClick:()=>{e.onNoClick?.(),e.onOptionClick?.("no");},onYesClick:()=>{e.onYesClick?.(),e?.onOptionClick?.("yes");}})]})}var Jd=$d;a();function Xd(e){let r=e.json?JSON.parse(e.json):void 0;return jsx(d,{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(Ft,{value:r})})}):jsx(Ud,{})})}function Ud(){let e=r=>jsx(h,{fontSize:"2rem",color:"jsonBracket",text:r.value});return jsx(d,{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(h,{color:"jsonKey",text:'"JSON"'}),":",jsx(h,{color:"string",text:'"Viewer"'}),jsx(e,{value:" }"})]})})})})}var Gd=["string","number","boolean"];function Tt(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(h,{color:r,text:typeof e.value=="string"?`"${e.value}"`:`${e.value}`})}function jn(e){return jsxs(Fragment,{children:[jsx(h,{width:"full",color:"arrayBracket",text:"["}),e.value.map((r,t)=>jsx(n=>{let i=e.value.some(l=>typeof l=="object");return jsxs(Fragment,{children:[i&&jsx("br",{}),n.children,t===e.value.length-1?"":", ",i&&t===e.value.length-1&&jsx("br",{})]})},{children:typeof r=="object"?jsx(Ft,{indent:true,indentInitialBracket:true,value:r}):Array.isArray(r)?jsx(jn,{value:r}):jsx(Tt,{value:r})})),jsx(h,{color:"arrayBracket",text:"]"})]})}function Ft(e){let r="1rem",t=e.indentMultiplier||2,o=e.indent?`calc(${r} * ${t})`:r,n=`calc(${o} / ${t})`;return jsxs(Fragment,{children:[jsx(h,{style:{paddingLeft:e.indentInitialBracket?n:void 0},color:"jsonBracket",text:"{"}),jsx("br",{}),Object.keys(e.value).map((i,l,s)=>{let c=i,g=e.value[c],v=()=>Gd.includes(typeof g)?jsx(Tt,{value:g}):Array.isArray(g)?jsx(jn,{value:g}):typeof g=="object"?jsx(Ft,{indent:true,value:g}):jsx(Tt,{value:`${g}`});return jsxs("span",{style:{paddingLeft:o,width:"100%"},children:[jsx(h,{color:"jsonKey",text:`"${c}"`})," : ",jsx(v,{}),l===s.length-1?"":",",jsx("br",{})]})}),jsx(h,{style:{paddingLeft:e.indent?n:void 0},color:"jsonBracket",text:"}"})]})}var Rt=Xd;a();a();a();function Zd(e){let r=getMimeTypes(distinct(strictArray(e.accepts?Array.isArray(e.accepts)?e.accepts:[e.accepts]:[...wo].filter(s=>s!=="unknown")))),t=e.multiple?1/0:e.maxFiles??1,o=useRef(null),n=(...s)=>{if(e.disabled)return;let c="target"in s[0]?s[0].target.files:s[0],g=[],v=[],m=p=>strictArray(p).map(x=>toObject(x,{uploadDate:"now",filepath:e.getFilePath?.(x)}));for(let p of c){if(g.length+v.length>=t)break;r.includes(p.type)?g.push(p):v.push(p);}isEmpty(g)||e.onAccept?.(g,m(g)),isEmpty(v)||e.onReject?.(v,m(v));},i=s=>{if(s.preventDefault(),!e.allowDrop||e.disabled)return;let c=[];if(s.dataTransfer.items?c=[...s.dataTransfer.items].filter(g=>g.kind==="file").map(g=>g.getAsFile()):c=[...s.dataTransfer.files],!isEmpty(c)){let g=new DataTransfer;c.forEach(v=>g.items.add(v)),n(c);}},l=()=>{e.disabled||o.current.click();};return jsxs("label",{className:e.className,style:{...b(e),userSelect:e.disableSelection?"none":void 0,cursor:"pointer"},onDrop:i,onDragOver:s=>s.preventDefault(),onClick:l,children:[e.children,jsx("input",{id:"file",type:"file",ref:o,style:{display:"none"},onChange:n,accept:r.join(", "),multiple:e.multiple})]})}var Kn=Zd;function Zn(e){return r=>{let{size:t,fontSize:o,iconSize:n,fileClass:i,backgroundColor:l,accepts:s=e?.accepts,...c}=r||{};return jsx(Kn,{spill:"hidden",corners:r.corners||"md",accepts:s,...c||{},allowDrop:false,children:jsx(S,{debug:r.debug,disabled:r.disabled,width:r.width,backgroundColor:l,corners:r.corners||"md",borderColor:r.borderColor,color:r.color,variant:"outline",fontSize:o,leadingEl:HiUpload,iconSize:n,size:t||"sm",text:`Upload ${r.hideFileClass?"":i||e?.fileClass}`.trim(),style:{flexShrink:0}})})}}var Ke=Zn({fileClass:"file"}),rP=Zn({fileClass:"receipt",accepts:["img"]});function iu(e){let[r,t]=useState(e.defaultPicture?.path);useEffect(()=>{console.log(r);},[r]);let o=({children:i})=>e.label?jsxs(d,{gap:e.rowGap||"md",children:[jsx(h,{fontSize:e.slotProps?.label?.fontSize||"sm",fontWeight:e.slotProps?.label?.fontWeight||"bold",fade:e.slotProps?.label?.fade||.75,text:e.label}),i]}):i,n=(i,l)=>{let s=l[0];t(s.path),e.onChange?.(s);};return jsx(o,{children:jsxs(d,{row:true,gap:e.columnGap||"lg",align:"center",children:[jsx(ue,{size:"xl",fallback:e.fallback||IoMdImages,src:r||null}),jsx(Ke,{fileClass:"photo",accepts:["img"],getFilePath:e.getFilePath,onAccept:n})]})})}var au=iu;a();function su(e){let r=e.authProviders||[...Do.values()];return jsxs(d,{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(d,{width:"full",color:"inherit",children:[jsx(h,{fontWeight:"bold",fontSize:"1.55rem",text:"Sign In"}),jsx("span",{style:{opacity:.75,fontSize:".95rem"},children:"Select a sign-in method to continue."})]}),jsx(d,{width:"full",color:"inherit",children:r.map(t=>jsx(cu,{provider:t,onClick:e.onAuthProviderClick}))})]})}function cu(e){let r=(()=>{switch(e.provider){case "Google":return FcGoogle;default:return e.provider}})(),t=()=>e.onClick(e.provider);return jsx(S,{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 du=su;a();a();var ri={timestamp:Date.now(),status:"info",response:"Hello World!"};function vu(e){useEffect(()=>{e.initialMessage&&(ri.response=e.initialMessage);},[]);let r=[ri,...e.logs];return jsx(d,{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,o)=>jsx(yu,{...t,scrollIntoView:o===lastIndex(r)},o)})})}function yu(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:C(r[e.status])},children:`[${e.status}]`}),"\xA0",typeof e.response=="object"&&jsxs(Fragment,{children:[jsx(un,{labelOpacity:.75,label:e.response.tag}),"\xA0"]}),jsx("span",{style:{wordSpacing:"normal",backgroundColor:e.status==="info"?void 0:C(`${r[e.status]}[0.25]`),padding:"0px .2rem"},children:typeof e.response=="object"?e.response.message:e.response})]})}var Ot=vu;function Su(e){let[r,t]=useState(e.defaultTasks||[]);return useEffect(()=>e.onSnapshot(o=>{let n=Array.isArray(o)?o:"logs"in o?o.logs:null;t(n?sort(n,"timestamp","asc"):[...r,o]);}),[]),jsxs(d,{size:"full",grid:true,gridRows:"1fr .85fr",spill:"hidden",maxHeight:"full",children:[jsx(d,{size:"full",spill:{x:"hidden",y:"auto"},gap:"lg",style:{flexShrink:0},maxHeight:"full",children:jsx(For,{each:e.relatedTaskData,children:({content:o,...n})=>jsx(qo,{item:n,info:o})})}),jsx(Ot,{initialMessage:"Awaiting registration process...",logs:r})]})}var xu=Su;a();function ku(e){return jsx(G,{disabled:e.disabled,allowCopyText:e.allowCopy,allowPasteText:e.allowPaste,defaultValue:e.defaultValue,value:e.value,width:e.width||"20rem",backgroundColor:"onSurface[0.1]",leadingContent:jsx(CiSearch,{size:"1.15rem"}),placeholder:e.placeholder||"Search...",onEnterKeyPressed:e.onEnterKeyPressed,onChange:e.onChange})}var gt=ku;a();a();function wu(e){return e.error?jsx(pr,{...e,tooltip:jsx("span",{children:Object.keys(e.error).map(r=>{let t=r;return jsxs("span",{children:[jsx(h,{fontWeight:"bold",text:camelCaseToLetter(t)+": "}),jsx("span",{style:{textDecoration:"underline",opacity:.75,fontWeight:"normal"},children:e.error[t]}),jsx("br",{})]})})})}):e.children}var It=wu;function Fu(e){let r=w(e?.verifyError),[t,o]=useState(e?.defaultStatus||"pending"),n=async()=>{let i=await e.onVerifyClick();if(console.log({verifyReq:i}),i.response)return o("success");r.upsert(i.error),o("error");};return jsx(G,{...e,leadingAdornment:jsx(It,{wrapChildren:true,asChild:t!=="error",error:r.read(),children:jsx(mn,{indicatorSize:".4rem",status:t})}),trailingContent:jsx(pt,{onClick:n})})}var At=Fu;a();function Ou(e){return jsxs(d,{width:"full",row:true,align:"center",gap:"md",spill:"hidden",children:[jsx(ue,{fallback:e.user.name,src:e.user.picture}),jsxs(d,{width:"full",spill:"hidden",fontSize:".85rem",style:{lineHeight:"1.1rem"},children:[jsx(h,{ellipsis:true,text:e.user.name}),jsx(h,{ellipsis:true,fade:"0.5",text:e.user.email})]}),jsx(IconButton,{variant:"outline",rounded:"full",size:"2xs",children:jsx(IoRemove,{})})]})}var Iu=Ou;a();function ii(e){return r=>{let[t,o]=useState(false);return jsx(S,{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:n}=await e.handleOnClick(r);if(n)return console.error(new Error(n.message,{cause:n}));o(true),setTimeout(()=>o(false),3e3);}})}}var Bn=ii({actionIcon:ImPaste,label:e=>e?"Pasted!":"Paste",handleOnClick:async({inputRef:e,onClick:r})=>{let{error:t,response:o}=await readClipboardText();return t?{error:t}:(e?.current&&(e.current.value=o.text),r?.(o.text),{response:"success"})}}),Ee=ii({actionIcon:IoCopyOutline,label:e=>e?"Copied!":"Copy",handleOnClick:async({textToCopy:e,inputRef:r,onClick:t})=>{t?.();let o=e?typeof e=="function"?e():e:r?.current?.value;if(!o)return {error:{errorCode:"BAD_REQUEST",title:"Failed to copy text.",message:"Failed to find the text to copy."}};let{error:n}=await copyToClipboard(o);return n?{error:n}:{response:"success"}}});a();function li(e){return r=>jsx(S,{disabled:r.disabled,size:r.size,padding:r.padding,corners:"circle",backgroundColor:r.backgroundColor||"onSurface[0.25]",color:r.color||"surface",fontSize:r.iconSize,onClick:r.onClick,children:jsx(Icon,{as:e,boxSize:r.iconSize})})}var O5=li(BsPlus),I5=li(BsDash);a();function si(e){return r=>jsx(S,{...e.defaults,text:e.label,onClick:r.onClick})}var Un=si({label:"Yes"}),Gn=si({label:"No",defaults:{variant:"outline"}});a();var X5=ce({preset:{leadingEl:IoMdDownload,text:"Download",trailingEl:null},optional:{backgroundColor:"sendBlue",color:"onSendBlue"}});a();a();function Ku(e){let r=w(e.defaulValue?.token||""),t=useRef(null),[o,n]=useState(e.defaulValue?.status),i=async()=>{let s=await e.onVerifyClick?.(r.read());return n(s),s.verified?{response:"success"}:{error:s.error}},l=s=>{r.upsert(s),e.onTokenChange?.(s);};return jsxs(d,{size:"full",spill:"hidden",maxHeight:"full",gap:"lg",children:[jsx(At,{allowCopyText:true,allowPasteText:true,required:true,defaultStatus:o?o.verified?"success":"error":"pending",ref:t,placeholder:e.hint,defaultValue:r.read(),onPasteClick:l,onChange:l,onVerifyClick:i}),jsxs(d,{size:"full",spill:"hidden",gap:"sm",children:[o&&jsx(Ee,{textToCopy:o.payload}),jsx(Rt,{fullSize:true,json:o?o.payload:void 0})]})]})}var qu=Ku;a();a();function gr(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}}a();a();a();a();var di=(B=>(B.white="#FFF",B.black="#000",B.gray="#808080",B.pdf="#F40F02",B.word="#41A5EE",B.excel="#21A366",B.img="#8d481f",B.txt="#8c61a9",B.deepSkyBlue="#00BFFF",B.lightSkyBlue="#87CEFA",B.sendBlue="#0a57d0",B.onSendBlue="#c3dfff",B.book_it="#009688",B.stickyNote="#EFAD03",B.matteBlack="#28282B",B.navyBlue="#000080",B.teal="#008080",B.paper="#ffffff",B.onPaper="#28282B",B.paperVariant="#E6E6E6",B.success="#4BB543",B.hyperlink="#2979ff",B.gold="#d4af37",B.carlsbergGreen="#17B169",B.billsRed="#C60C30",B.info="#1565c0",B.error="#C60C30",B.warning="#f9a825",B.jsonKey="#D56C75",B.string="#59A779",B.number="#D19A5A",B.boolean="#56B6C2",B.jsonBracket="#FFCA1D",B.arrayBracket="#DA68A7",B.delete="#C60C30",B.pdf_table_header="#28282B",B))(di||{}),ee=di;a();var uf=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)"}),X=uf;a();a();a();function mf(e,r){useEffect(()=>{let t=new AbortController;return e(),()=>{t.abort();}},r);}var gf=mf;a();function hf(e,r){let t=useRef(true);useEffect(()=>{if(t.current)t.current=false;else return e()},r);}var pf=hf;a();function _f(e){let[r,t]=useState(e);return {value:r,isOpen:!!r,show:(...o)=>{o[0]===void 0&&typeof r!="boolean"||t(typeof r=="boolean"?true:o[0]);},hide:()=>t(typeof r=="boolean"?false:void 0)}}var kt=_f;a();a();var Mt=class extends EventTarget{},bf=new Mt,kr=bf;function Pf(e){let[r,t]=useState(),o=useRef(new Map),n=useRef(false);return useEffect(()=>{let i=l=>{if(o.current.get(e)?.(l),n.current){n.current=false;return}t(l.detail);};return kr.addEventListener(e,i),()=>{kr.removeEventListener(e,o.current.get(e)),o.current.delete(e);}},[e,n]),{data:r,emit:useCallback((i,l={skipRender:true})=>{n.current=!!l?.skipRender,kr.dispatchEvent(new CustomEvent(e,{detail:i}));},[e]),addListener:useCallback(i=>{o.current.set(e,i);},[e])}}var Bf=Pf;a();function wf(e){let r=useRef({current:e,previous:void 0});return {debug:()=>{let t=r.current.previous,o=r.current.current,n=()=>{if(Array.isArray(t)){let l=t;return {from:t,to:o,difference:o.filter((c,g)=>g<l.length?l[g]!==c:false)}}switch(typeof t){case "string":return {from:t,to:o,difference:o.replace(t,"")};case "object":return {from:t,to:o,difference:Object.fromEntries(Object.keys(t).map(l=>{let s=l;if(o[s]!==t[s])return [s,o[s]]}).filter(l=>!!l))};default:throw new Error("Not yet implemented bro!")}},i=250;return console.log(buildArray(i,l=>l===0||l===i?"/":"*").join(""),n()),n()},upsert:t=>{let o=typeof t=="function"?t(r.current.current):t,n=r.current.current;r.current={current:o,previous:n};},read:()=>r.current.current,delete:()=>{r.current=void 0;}}}var w=wf;a();function Ef(){return useContext(hr)}var Mr=Ef;a();function Rf(){let[,e]=useState(false);return {triggerRerender:()=>{e(true),setTimeout(()=>e(false),10);}}}var A=Rf;a();function Of(e,r){let[t,o]=useState(()=>{try{let l=window.sessionStorage.getItem(e);return l?JSON.parse(l):r}catch(l){return console.log(l),r}});return [t,l=>{try{let s=l instanceof Function?l(t):l;o(s),window.sessionStorage.setItem(e,JSON.stringify(s));}catch(s){console.log(s);}},()=>{try{o(r),window.sessionStorage.removeItem(e);}catch(l){console.log(l);}}]}var If=Of;a();export{vt as AttachmentsButton,ft as AttachmentsDialog,ue as Avatar,Lo as Badge,S as BasicButton,d as BasicDiv,de as BasicImg,Or as BasicOl,Hr as BasicOption,He as BasicSelect,h as BasicSpan,$a as BasicTable,St as Calendar,vd as CalendarDialog,$e as CancelButton,$ as Card,Po as Checkbox,ee as ColorResources,Iy as ConfirmationDialog,Ee as CopyButton,X as CssColors,le as CssShapes,se as CssSpacing,Ye as DeleteButton,k as Dialog,No as Disclaimer,X5 as DownloadButton,_c as EditButton,xv as Editable,Md as EmailComposer,fr as EmptyState,It as ErrorTooltip,Dc as ExpandableButton,Ny as FancyFormDialog,mv as FileDropzone,uh as FileViewer,V as FontSize,Ko as Indicator,qo as ItemInfo,Rt as JsonViewer,qu as JwtVerifier,ny as MediaCard,vs as Menu,Kc as MoneyDisplayCard,I5 as NegativeButton,Kr as NextButton,Gn as NoButton,mt as OpenButton,Ic as OptionsButton,Qh as PageSlider,kp as Paper,Bn as PasteButton,Lc as PaymentOptionsButton,yt as PaymentOptionsDialog,au as PictureUploader,ke as Popover,O5 as PositiveButton,qr as PreviousButton,my as ProfileCard,ed as ReceiptCard,Qr as SaveButton,gt as SearchTextField,yp as SegmentedControls,ht as SendButton,dC as Separator,du as SignInWidget,th as SimpleFormDialog,mn as Status,Mp as Stepper,Zr as SubmitButton,un as Tag,xu as TaskLogger,br as TaskResultDialog,Ot as Terminal,G as TextField,oC as Timeline,pr as Tooltip,Ke as UploadButton,rP as UploadReceiptButton,Iu as UserProfile,pt as VerifyButton,At as VerifyTextField,Oi as WavyUi,Un as YesButton,Dt as YesNoButtonGroup,Jd as YesOrNoForm,b as applyBasicStyle,GS as bankTransferPaymentOption,ym as borderRadius,fm as buildCSS,Bm as computedCssVariable,Hi as convertHexUnitTo256,mm as cssTransition,Wn as definePaymentOption,hm as disabledBorderRadius,pm as dragElement,U as ellipsis,vm as flexCenter,gr as getFileIcon,Yt as getScrollParent,Mi as hexToRgba,jS as inAppPaymentOption,Dr as isOverflown,Kt as isSpanMultiLine,Ai as isValidHex,_m as nativeEllipsis,Cm as noSpaceStyle,Pm as remAsPx,Li as remToPx,C as resolveBasicColor,Re as restrictLineCount,bm as rgbToRgba,Sm as screenHasMaxWidth,xm as screenHasMinWidth,gm as solidBorder,jt as tiledBackground,gf as useAsyncEffect,pf as useChangeEffect,kt as useDialogController,Bf as useEventEmitter,w as useManagedRef,ot as usePageSliderController,Mr as usePopoverContext,A as useRerender,If as useSessionStorage};
|