@wavy/react-ui 0.0.18 → 0.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.d.ts +3 -1
- package/dist/main.js +3 -3
- package/package.json +1 -1
package/dist/main.d.ts
CHANGED
|
@@ -1463,7 +1463,8 @@ interface BasicOptionProps {
|
|
|
1463
1463
|
declare function BasicOption(props: BasicOptionProps): react_jsx_runtime.JSX.Element;
|
|
1464
1464
|
|
|
1465
1465
|
interface PageIndicatorProps {
|
|
1466
|
-
|
|
1466
|
+
/**@default 0 */
|
|
1467
|
+
currentPage?: number;
|
|
1467
1468
|
totalPages: number;
|
|
1468
1469
|
/**@default 5 */
|
|
1469
1470
|
maxIndicators?: number;
|
|
@@ -2314,6 +2315,7 @@ interface PageSliderProps<T> {
|
|
|
2314
2315
|
navCorners?: BasicDivProps["corners"];
|
|
2315
2316
|
/**@default 1 */
|
|
2316
2317
|
childFlexGrow?: number;
|
|
2318
|
+
disableShadow?: boolean;
|
|
2317
2319
|
onEcho?: (message?: string) => T;
|
|
2318
2320
|
/**The callback fired when the transition to the selected page has either `started` or `ended` */
|
|
2319
2321
|
onTransition?: (event: "start" | "end") => void;
|
package/dist/main.js
CHANGED
|
@@ -14,10 +14,10 @@ import'path';import'url';import {ClientOnly,IconButton,Skeleton,Span,Drawer,Tool
|
|
|
14
14
|
transparent ${n}
|
|
15
15
|
)
|
|
16
16
|
${r}
|
|
17
|
-
`}function Dm(e,r){return {display:"flex",justifyContent:"center",alignItems:"center",flexDirection:r?"column":"row",...e}}function Tm(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 Em(e){let r=typeof e.disabledCurves=="function"?e.disabledCurves():e.disabledCurves,t=n=>r==="both"||r===n?0:e.curveRadius||ce.md;return {borderTopLeftRadius:t("left"),borderBottomLeftRadius:t("left"),borderTopRightRadius:t("right"),borderBottomRightRadius:t("right")}}function Fm(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 Rm(e){return {...e,margin:0,padding:0}}function X(e,r={apply:true}){return r.apply?Ie(1,e):e}function zm(e,r={apply:true}){return r.apply?{...e,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}:e}function qt(e){let r=e;for(;r&&!Rr(r);)r=r.parentElement;return r}function Zt(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 b(e,r){if(!e||typeof e!="string")return;let t=r?.preference||"css",o=e.replaceAll(" ",""),{0:n,1:i}=o.split("["),l=()=>J[o],s=()=>i?Gi(te[n],parseFloat(i)):te[o];if(t==="css"){if(o in J)return l();if(n in te)return s()}else if(t==="res"){if(n in te)return s();if(o in J)return l()}return o}var Ui=e=>/^#([A-Fa-f0-9]{3,4}){1,2}$/.test(e),ji=e=>parseInt(e.repeat(2/e.length),16);function Gi(e,r=1){let t=(g,u)=>g.match(new RegExp(`.{${u}}`,"g")),o=g=>typeof g<"u"?g/255:typeof r!="number"||r<0||r>1?1:r;if(!Ui(e))throw new Error(`Invalid HEX: ${e}`);let n=Math.floor((e.length-1)/3),i=t(e.slice(1),n),[l,s,c,v]=i.map(ji);return `rgba(${l}, ${s}, ${c}, ${o(v)})`}function Om(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 Im(e){return window.matchMedia(`(max-width:${e})`).matches}function Am(e){return window.matchMedia(`(min-width:${e})`).matches}function Ie(e=2,r){return {...r,overflow:"hidden",width:"100%",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical"}}function Yi(e){return e*16}function Mm(e){return `${Yi(e)}px`}function Rr(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function Lm(e){let r=document.body,t=e.replace("var(","").replace(")","");return getComputedStyle(r).getPropertyValue(t)}a();var Ki=Object.freeze({"2xl":"1.75rem",xl:"1.5rem",lg:"1rem",md:"0.5rem",sm:"0.25rem",xs:"0.125rem","2xs":"0.1rem"}),de=Ki;a();var qi=Object.freeze({"2xl":"1.75rem",xl:"1.5rem",lg:"1.25rem",md:"1rem",sm:"0.85rem",xs:"0.75rem","2xs":"0.65rem"}),Y=qi;var dr=["top","right","bottom","left"],Qt=(e,r)=>`translate(${e}, ${r})`,eo=e=>`translateX(${e})`,ro=e=>`translateY(${e})`,Zi=(e,r)=>{let t=e.fontSize in Y?Y[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:`${b(e.scrollbarThumbColor||"inherit")} ${b(e.scrollbarThumbColor||"inherit")}`,transform:e.centerSelf===true?Qt("-50%","-50%"):e.centerSelf==="x"?eo("-50%"):e.centerSelf==="y"?ro("-50%"):e.translate?.x&&e.translate?.y?Qt(e.translate.x,e.translate.y):e.translate?.x?eo(e.translate.x):e.translate?.y?ro(e.translate.y):void 0,position:e.pos==="absolute"||e.centerSelf?"absolute":e.pos,padding:ta(e.padding),fontSize:t,fontWeight:e.fontWeight,border:e.border,borderColor:Qi(e.borderColor),borderWidth:ea(e.borderWidth,e.borderColor?"1px":void 0),borderStyle:ra(e.borderStyle,e.borderColor?"solid":void 0),lineHeight:t?`calc(${t} + (${t} * .15))`:void 0,borderRadius:oa(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:b(e.backgroundColor),color:b(e.color),gap:na(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,v=l[c];typeof v=="string"&&(v=v.trim()),!v&&v!==0&&delete l[c];}),(r||e.debug)&&console.log({props:e,style:l}),l};function Qi(e){if(!e)return;let r="transparent";return typeof e=="string"?b(e):dr.map(t=>{if(Array.isArray(e)){let{0:o,1:n}=e;return (Array.isArray(n)?n.includes(t):[t,"all"].includes(n))?b(o):r}return typeof e=="object"&&t in e?b(e[t]):r}).join(" ")}function ea(e,r){if(!e)return r;let t=0;return typeof e=="string"?e:dr.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 ra(e,r){if(!e)return r;let t=0;return typeof e=="string"?e:dr.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){let t=o=>o?o in de?de[o]:o:"0px";return e?typeof e=="string"?t(e):dr.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 oa(e){let t=n=>n?n in ce?ce[n]:n:"0px";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):"0px"}).join(" "):"0px"}function na(e){if(!(!e||typeof e!="string"))return e in de?de[e]:e}var C=Zi;var ua=["inherit","sm","md","lg","xl","2xl","xs"],fa=["sm","md","lg","xl","2xl","xs","2xs"];function to(e){let[r,t]=useState(false),o=e.disabled||r,n=async u=>{if(!o){if(!e.async)return e.onClick?.(u);t(true),await e.onClick?.(u),setTimeout(()=>t(false),e.pendingDelay||1);}},i=u=>{if(u){if(typeof u==typeof FaFolder){let y=S=>typeof S=="string"&&[...ua].includes(S);return jsx(Icon,{size:y(e.iconSize)?e.iconSize:void 0,boxSize:y(e.iconSize)?void 0:e.iconSize,as:u})}return u}},l=i(e.leadingEl),s=i(e.trailingEl),c=u=>typeof u=="string"&&[...fa].includes(u),{size:v,...g}=e;return jsxs(Button,{...se(e),disabled:o,size:c(v)?v:void 0,style:C({...g,size:c(v)?void 0:v,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?b(e.spinnerColor):"blue.500"})})]})}var ue=e=>r=>jsx(to,{...(()=>{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})()}),x=to;a();a();a();a();a();function fr(){return 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},fr.apply(null,arguments)}a();a();function oo(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 no={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 mr(e){var r=Object.create(null);return function(t){return r[t]===void 0&&(r[t]=e(t)),r[t]}}var va=/[A-Z]|^ms/g,ya=/_EMO_([^_]+?)_([^]*?)_EMO_/g,so=function(r){return r.charCodeAt(1)===45},io=function(r){return r!=null&&typeof r!="boolean"},zr=mr(function(e){return so(e)?e:e.replace(va,"-$&").toLowerCase()}),ao=function(r,t){switch(r){case "animation":case "animationName":if(typeof t=="string")return t.replace(ya,function(o,n,i){return K={name:n,styles:i,next:K},n})}return no[r]!==1&&!so(r)&&typeof t=="number"&&t!==0?t+"px":t};function Ae(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 K={name:n.name,styles:n.styles,next:K},n.name;var i=t;if(i.styles!==void 0){var l=i.next;if(l!==void 0)for(;l!==void 0;)K={name:l.name,styles:l.styles,next:K},l=l.next;var s=i.styles+";";return s}return pa(e,r,t)}case "function":{if(e!==void 0){var c=K,v=t(e);return K=c,Ae(e,r,v)}break}}var g=t;if(r==null)return g;var u=r[g];return u!==void 0?u:g}function pa(e,r,t){var o="";if(Array.isArray(t))for(var n=0;n<t.length;n++)o+=Ae(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]+"}":io(s)&&(o+=zr(i)+":"+ao(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++)io(l[c])&&(o+=zr(i)+":"+ao(i,l[c])+";");else {var v=Ae(e,r,l);switch(i){case "animation":case "animationName":{o+=zr(i)+":"+v+";";break}default:o+=i+"{"+v+"}";}}}}return o}var lo=/label:\s*([^\s;{]+)\s*(;|$)/g,K;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="";K=void 0;var i=e[0];if(i==null||i.raw===void 0)o=false,n+=Ae(t,r,i);else {var l=i;n+=l[0];}for(var s=1;s<e.length;s++)if(n+=Ae(t,r,e[s]),o){var c=i;n+=c[s];}lo.lastIndex=0;for(var v="",g;(g=lo.exec(n))!==null;)v+="-"+g[1];var u=oo(n)+v;return {name:u,styles:n,next:K}}a();var Ca=typeof document<"u",uo=function(r){return r()},_a=oe.useInsertionEffect?oe.useInsertionEffect:false,fo=Ca&&_a||uo;a();var Or=typeof document<"u";function mo(e,r,t){var o="";return t.split(" ").forEach(function(n){e[n]!==void 0?r.push(e[n]+";"):n&&(o+=n+" ");}),o}var Ir=function(r,t,o){var n=r.key+"-"+t.name;(o===false||Or===false&&r.compat!==void 0)&&r.registered[n]===void 0&&(r.registered[n]=t.styles);},go=function(r,t,o){Ir(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);!Or&&s!==void 0&&(i+=s),l=l.next;}while(l!==void 0);if(!Or&&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)-.*))$/,vo=mr(function(e){return ba.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});var xa=typeof document<"u",ka=vo,wa=function(r){return r!=="theme"},yo=function(r){return typeof r=="string"&&r.charCodeAt(0)>96?ka:wa},ho=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},Da=function(r){var t=r.cache,o=r.serialized,n=r.isStringTag;Ir(t,o,n);var i=fo(function(){return go(t,o,n)});if(!xa&&i!==void 0){for(var l,s=o.name,c=o.next;c!==void 0;)s+=" "+c.name,c=c.next;return oe.createElement("style",(l={},l["data-emotion"]=t.key+" "+s,l.dangerouslySetInnerHTML={__html:i},l.nonce=t.sheet.nonce,l))}return null},po=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=ho(r,t,o),c=s||yo(n),v=!c("as");return function(){var g=arguments,u=o&&r.__emotion_styles!==void 0?r.__emotion_styles.slice(0):[];if(i!==void 0&&u.push("label:"+i+";"),g[0]==null||g[0].raw===void 0)u.push.apply(u,g);else {var y=g[0];u.push(y[0]);for(var S=g.length,P=1;P<S;P++)u.push(g[P],y[P]);}var h=withEmotionCache(function(_,B,R){var z=v&&_.as||n,ke="",Wt=[],ir=_;if(_.theme==null){ir={};for(var Nt in _)ir[Nt]=_[Nt];ir.theme=oe.useContext(ThemeContext);}typeof _.className=="string"?ke=mo(B.registered,Wt,_.className):_.className!=null&&(ke=_.className+" ");var ar=co(u.concat(Wt),B.registered,ir);ke+=B.key+"-"+ar.name,l!==void 0&&(ke+=" "+l);var Pi=v&&s===void 0?yo(z):c,lr={};for(var sr in _)v&&sr==="as"||Pi(sr)&&(lr[sr]=_[sr]);return lr.className=ke,R&&(lr.ref=R),oe.createElement(oe.Fragment,null,oe.createElement(Da,{cache:B,serialized:ar,isStringTag:typeof z=="string"}),oe.createElement(z,lr))});return h.displayName=i!==void 0?i:"Styled("+(typeof n=="string"?n:n.displayName||n.name||"Component")+")",h.defaultProps=r.defaultProps,h.__emotion_real=h,h.__emotion_base=n,h.__emotion_styles=u,h.__emotion_forwardProp=s,Object.defineProperty(h,"toString",{value:function(){return "."+l}}),h.withComponent=function(_,B){var R=e(_,fr({},t,B,{shouldForwardProp:ho(h,B,true)}));return R.apply(void 0,u)},h}};Ri(Co());var Ta=["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"],we=po.bind(null);Ta.forEach(function(e){we[e]=we(e);});var Mr=class{static getStyle(r){if(r)return JSON.parse(JSON.stringify(r||{}),(t,o)=>t==="backgroundColor"||t==="color"?b(o):o)}static span=r=>we.span({...this.getStyle(r)});static div=r=>we.div({...this.getStyle(r)});static img=r=>we.img({...this.getStyle(r)})},De=Mr;function Oa(e){let r=useRef(null),[t,o]=useState(false),n=T({top:0,left:0});e.rememberScrollPos&&useEffect(()=>{let g=n.read();r.current&&[g.top,g.left].some(u=>!!u)&&(r.current.scrollTop=g?.top??0,r.current.scrollLeft=g?.left??0);},e.updateScrollPosDeps),(e.rememberScrollPos||e.overflowPadding)&&useEffect(()=>{r.current&&Rr(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=C({...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}}),v=De.div(e.css);if(!e.hide)return e.asChildren?e.children:jsx(v,{...se(e),ref:e.rememberScrollPos||e.overflowPadding?r:e.ref,draggable:e.draggable,onScroll:g=>{let u=r?.current?.scrollTop,y=r?.current?.scrollLeft;!t&&e.overflowPadding&&o(true),isEmpty(strictArray([u,y]))||n.upsert({top:u??0,left:y??0}),e.onScroll?.(g);},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=Oa;a();function Aa(e){let r=!!e.tint,t=De.img(e.sx);return jsx(t,{...se(e),loading:"lazy",decoding:"async",fetchPriority:"high",src:e.src,alt:e.alt,style:{...C(e),filter:r?`drop-shadow(0px 1000px 0 ${b(e.tint)})`:void 0,transform:r&&"translateY(-1000px)",objectFit:e.noFit?"none":e.fill?"fill":e.cover?"cover":e.scaleDown?"scale-down":"contain"}})}var fe=Aa;a();function Va(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(Lr,{index:n,item:o,bold:t,active:e.isItemActive(o),completed:e.isItemCompleted(o),onClick:r},o):jsxs(d,{width:"full",children:[jsx(Lr,{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(Lr,{index:l,fontSize:"sm",nested:true,item:i,active:e.isItemActive(i),completed:e.isItemCompleted(i),onClick:r},i))})]},o.label))})}function Lr(e){let r=te.white,t=J.onSurface,o=e.nested?t:J.tertiaryContainer,n=e.active?o:te.carlsbergGreen,i=e.active&&!e.nested?o:J["onSurface[0.25]"],l=e.nested?J["onSurface[0.4]"]:J["onSurface[0.5]"],s=J["onSurface[0.2]"],c=()=>e.onClick?.(e.item),v=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(v,{fontSize:"1rem"}):jsx(p,{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(v,{size:"1.25rem",opacity:.75})]})}var Vr=Va;a();function Wa(e){let r=i=>e.ellipsis?X(i):e.lineLimit?Ie(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=C({...e,color:e.fakeHyperlink||e.hyperlink?"hyperlink":e.color,cursor:e.link||e.hyperlink||e.clickable?"pointer":e.cursor}),n=De.span(e.sx);return jsx(n,{...se(e),ref:e.ref,style:r({...o,width:e.ellipsis?"100%":o.width,textAlign:o.textAlign||e.textAlign||"justify",fontStyle:o.fontStyle||e.italic?"italic":void 0,textDecoration:o.textDecoration||t()||void 0}),children:e.text||e.children})}var p=Wa;a();var Le=createContext(null);function Xa(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)),v=i.length===e.entries.length&&e.entries.length>0,g=(Array.isArray(e.children)?e.children:[e.children]).filter((P,h)=>h<2),u=()=>{let P=[];v||(P=e.entries.map((h,_)=>_)),e.onSelectedRowsChange?.(P),n||l(P);},y=P=>{let h=[...i];h.includes(P)?h=h.filter(_=>_!==P):h.push(P),e.onSelectedRowsChange?.(h),n||l(h);},S=()=>e.columnWeight?e.columns.map(P=>{let h=typeof P=="object"?P:{};return {...h,name:he(P),weight:"weight"in h?h.weight:e.columnWeight,textAlign:"textAlign"in h?h.textAlign:e.textAlign||"start"}}):e.columns;return useEffect(()=>{},[]),jsx(Le.Provider,{value:{...e,gridCols:s,selectedRowIndices:n?e.selectedRows:i,separatorColor:t,allRowsSelected:v,onSelectRowClick:y,onSelectAllRowsClick:u,columns:S(),padding:e.padding??"sm",columnGap:e.columnGap??e.gap??"lg",rowGap:e.rowGap??e.gap,onAutoColumnWidthsComputed:P=>{let h=e.columns.map(_=>{let B=P.get(he(_));return B?{..._,weight:`${B}px`}:_});c(o(h));}},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:g})})}function Ua(e){let r=useContext(Le),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=he(o);return jsx(p,{size:"full",borderColor:t&&n!==lastIndex(r.columns)?[t,"right"]:void 0,text:!e.formatColumnName||e.formatColumnName==="camelToLetter"?camelCaseToLetter(i):e.formatColumnName?.(i)??i,style:{flexGrow:1,textAlign:Me("textAlign",o)}},i+n)})]})}function ja(e){let r=useContext(Le),t=useRef(new Map);return useEffect(()=>()=>{t.current.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(Ga,{rowData:o,index:n,style:e.styleRow?.(n),styleCell:e.styleCell,onColWidthComputed:(i,l)=>{let s=t.current.get(i);(!s||l>s)&&t.current.set(i,l);},onCellRendered:i=>{let l=n===lastIndex(r.entries),s=i===lastIndex(r.columns);l&&s&&t.current.size>0&&r.onAutoColumnWidthsComputed(t.current);}},n))})}function Ga(e){let r=useContext(Le),t=r.selectedRowIndices.includes(e.index),o=()=>r.onSelectRowClick(e.index),{gap:n,padding:i,backgroundColor:l}=C({gap:r.columnGap,padding:r.padding??e.padding,backgroundColor:t?"onSurface[0.1]":"transparent"});return jsxs(d,{style:{gap:n,padding:i,backgroundColor:l,width:"100%",display:"grid",alignItems:"center",gridTemplateColumns:r.gridCols,...e.style},children:[r.selectable&&jsx(Bo,{selected:t,onClick:o}),r.columns.map((s,c,v)=>{let g=he(s),u=e.rowData[g],y=typeof s=="object"?s?.placeholder:void 0,S=()=>e.onCellRendered?.(c),P=c+he(s),h=Me("textAlign",s),_={textAlign:h,justifyContent:h,color:Me("color",s),opacity:Me("opacity",s,1),backgroundColor:Me("backgroundColor",s),...e.styleCell?.({cellIndex:e.index*r.columns.length+c,columnName:g,columnIndex:c,rowIndex:e.index,data:typeof u=="string"?u:null,siblingData:{previous:c===0?null:run(e.rowData[he(v[c-1])],B=>typeof B=="string"?B:null),next:c===v.length-1?null:run(e.rowData[he(v[c+1])],B=>typeof B=="string"?B:null)}})||{}};return typeof s=="object"&&s.weight==="auto"?jsx(Ya,{data:u,style:_,onRender:S,placeholder:y,onWidthComputed:B=>e.onColWidthComputed(g,B)},P):jsx(ko,{data:u,style:_,placeholder:y,onRender:S},P)})]})}function Bo(e){let r=useContext(Le),{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(Do,{padding:"sm",iconSize:".85rem",checked:e.selected,onChange:e.onClick})})}function Ya(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(ko,{noWrap:true,data:e.data,placeholder:e.placeholder,ref:r,style:e.style,onRender:e.onRender})}function ko(e){return useEffect(()=>{e.onRender?.();},[]),typeof e.data=="string"||!e.data?jsx(p,{ref:e.ref,children:e.data||"-",fade:e.data?1:.75,style:{...e.style,whiteSpace:e.noWrap?"nowrap":void 0,width:"100%"}}):e.ref?jsx("div",{ref:e.ref,style:{...e.style,width:"100%",overflow:"hidden"},children:e.data}):e.data}var he=e=>typeof e=="string"?e:e.name,Me=(e,r,t)=>typeof r=="object"&&e in r?r[e]:t,Ka={Root:Xa,Header:Ua,Body:ja},qa=Ka;a();a();function Qa(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:X({maxWidth:"100%",flex:"1",alignItems:"start",textAlign:"start"})})]})}var Wr=Qa;var Eo=createContext(null);function il(e){return jsx(Eo.Provider,{value:e,children:jsx(Te,{...e,backdropBlur:e.backdropBlur,padding:e.padding||"md",corners:e.corners||"md",displayAction:"click",content:jsx(al,{})})})}function al(){let e=useContext(Eo),r=Fo(),[t,o]=useState(e.isSelected?e.options.findIndex(i=>e.isSelected(i)):void 0),{triggerRerender:n}=L();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(Wr,{value:i?.value.toString(),disabled:i?.disabled,selected:s,onClick:c},l)})})}var He=il;a();function _v(e){let r=useRef(false),[t,o]=useState(e.currentPage),n=e.maxIndicators||5,i=n-1,l=e.totalPages-1,s=async g=>{if(g===t)return;let u=g===t+1,y=Math.abs(g-t)>1;r.current=y?null:u,y||(u?await e.onNextClick?.():await e.onPreviousClick?.()),await e.beforePageChange?.(g),o(g),await e.afterPageChange?.(g);},c=async()=>s(t-1),v=async()=>s(t+1);return jsxs(d,{row:true,align:"center",gap:e.gap||"1rem",children:[jsx(Ro,{icon:SlArrowLeft,disabled:e.disableNav||t===0,onClick:c}),jsx(d,{row:true,justify:"space-evenly",align:"center",gap:".5rem",spill:"hidden",style:{width:`calc(2.05rem * ${n})`},children:buildArray(e.totalPages,g=>{let u=t===g;return jsx(d,{cursor:e.disableNav?"default":"pointer",centerContent:true,size:"1.6rem",children:`${g+1}`,corners:"circle",fade:u?1:.5,borderColor:u?void 0:"onSurface[0.1]",backgroundColor:u?"primary":void 0,color:u?"onPrimary":void 0,fontSize:"xs",style:{userSelect:"none",transition:"transform 200ms linear",transform:`translateX(calc(${t<i?0:t===l?t-i:t-(i-1)} * 2.1rem * ${r?-1:1}))`,flexShrink:0},onClick:e.disableNav?void 0:()=>s(g)},g)})}),jsx(Ro,{icon:SlArrowRight,disabled:e.disableNav||t===e.totalPages-1,onClick:v})]})}function Ro(e){return jsx(x,{async:true,disabled:e.disabled,padding:0,iconSize:"1rem",leadingEl:e.icon,backgroundColor:"transparent",color:"onSurface",onClick:e.onClick})}a();var zo=createContext(null);function hl(e){let r=()=>{e.onClose?.();};if(e.controller?.isOpen!==false)return jsx(zo.Provider,{value:{sepColor:e.sepColor||"onSurface[0.1]"},children:jsxs(Drawer.Root,{open:e.controller?.isOpen,onExitComplete:r,children:[e.triggerElement&&jsx(Drawer.Trigger,{children:e.triggerElement}),jsxs(Cl,{container:e.container,children:[jsx(Drawer.Backdrop,{pos:e.container?"absolute":void 0,boxSize:e.container?"full":void 0}),jsx(Drawer.Positioner,{pos:e.container?"absolute":void 0,boxSize:e.container?"full":void 0,children:jsxs(Drawer.Content,{style:C({...e,spill:e.spill||"hidden",backgroundColor:e.backgroundColor,padding:e.padding??"md"}),children:[jsx(Drawer.CloseTrigger,{children:jsx(CloseButton,{})}),e.children]})})]})]})})}function pl(){let e=useContext(zo);return jsx(d,{backgroundColor:e.sepColor,width:"full",height:"1px"})}function Cl(e){return e.container?jsx(Portal,{container:e.container,children:e.children}):e.children}var Fv={Root:hl,Header:e=>jsx(Drawer.Header,{style:C({...e,width:e.width??"full"}),children:e.children}),Body:e=>jsx(Drawer.Body,{style:C({...e,width:e.width??"full"}),children:e.children}),Footer:e=>jsx(Drawer.Footer,{style:C({...e,width:e.width??"full"}),children:e.children}),Sep:pl,ActionTrigger:Drawer.ActionTrigger,CloseTrigger:Drawer.CloseTrigger};a();a();a();var Oo=["Google"],Io=["pdf","word","excel","img","txt","unknown"],Ao=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 Lo(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:_l(e.accepts),children:[jsx(FileUpload.HiddenInput,{onChange:r}),e.children,e.showList&&jsx(FileUpload.List,{...e.slotProps?.fileList})]})}var _l=e=>e.flatMap(r=>Ao[r]);function Gv(e){return jsx(Lo,{...e,children:jsxs(FileUpload.Dropzone,{borderRadius:"xl",height:"full",width:"full",overflow:"hidden",backgroundColor:b(e.backgroundColor||"transparent"),borderColor:b(e.borderColor||"outlineVariant"),color:b(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 $o=createContext(null);function ny(e){let r=T(null),t=T(e.defaultValue??""),[o,n]=useState(e.value??t.read()),[i,l]=useState(false),s=e.activationMode||"click",c=e.size||"md",v=z=>{e.value===void 0&&n(z),e.onChange?.(z);},g=()=>{v(t.read());},u=()=>{e.onEdit?.(),!e.preventDefault&&l(true);},y=(z={asClick:true})=>{r.upsert("cancel"),g(),z.asClick&&e.onCancelClick?.(),l(false);},S=z=>{z.preventDefault(),r.read()!=="save"&&g(),l(false);},P=(z=true)=>{t.upsert(o),z&&(r.upsert("save"),e.onSaveClick?.(o)),e.onSave?.(o),l(false);},h=()=>{r.upsert("edit"),e.onEditClick?.(),u();},_=()=>{P(false);},B=()=>{e.onContentClick?.(),u();},R={align:"center",gap:e.rowGap??"sm",width:e.width,maxWidth:"full"};return jsx($o.Provider,{value:{padding:".25rem",iconSize:e.iconSize||c},children:jsxs(d,{...R,asChildren:!e.label,row:false,align:"start",children:[e.label&&jsx(p,{text:e.label,fontSize:Y[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",validateInput:e.validateInput,width:e.inputWidth,focusColor:e.focusColor,size:e.inputSize||c,placeholder:e.placeholder,showCharCounter:e.showCharCounter,slotProps:{charCounter:{fontSize:e.charCounterFontSize}},onChange:v,onBlur:S,onEnterKeyPressed:_,onEscapeKeyPressed:()=>y({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"?()=>y({asClick:false}):void 0,onClick:s==="click"?B:void 0,children:jsx(Te,{...e.slotProps?.popover,allowInteractions:true,asChild:e.showPopoverOnHover===false?true:e.slotProps?.popover?.asChild??!!o,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:X({opacity:e.placeholder&&!o?.85:1,width:"100%"}),children:(e.formatContent?.(o)??o)||e.placeholder})})}),e.hideControls!==true&&(e.control||jsx(El,{editing:i,hideControl:typeof e.hideControls=="boolean"?void 0:e.hideControls,onCancel:y,onSave:P,onEdit:h}))]})]})})}function El(e){let r=t=>Array.isArray(e.hideControl)?e.hideControl.includes(t):e.hideControl===t;return e.editing?jsxs(Fragment,{children:[!r("cancel")&&jsx(Jr,{outlined:true,icon:LuX,onClick:e.onCancel}),!r("save")&&jsx(Jr,{preventDefault:true,outlined:true,icon:LuCheck,onClick:e.onSave})]}):r("edit")?void 0:jsx(Jr,{icon:LuPencilLine,onClick:e.onEdit})}function Jr(e){let{padding:r,iconSize:t}=useContext($o);return jsx(d,{asChildren:e.outlined,corners:"sm",css:{transition:"all 200ms linear",":hover":{backgroundColor:"onSurface[0.1]"}},children:jsx(x,{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 Ur=createContext(null);function zl(e){return jsx(Ur,{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 Ol(e){let{fade:r}=useContext(Ur);return jsx(d,{fade:e.disableFade?1:r,size:e.size||"4rem",children:e.element})}function Il(e){let{fade:r}=useContext(Ur);return jsxs(d,{align:"center",gap:e.gap||"sm",children:[jsx(p,{fontWeight:"bold",fontSize:e.titleFontSize||"lg",text:e.title}),jsx(p,{fade:r,fontSize:e.descriptionFontSize,text:e.description})]})}var hr={Root:zl,Indicator:Ol,Content:Il};a();function me(e){let r=()=>{if(!e.disableFallback){if(typeof e.fallback=="string")return jsx(Avatar.Fallback,{name:e.fallback});if(e.fallback&&oe__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:b(e.backgroundColor),color:b(e.color),children:[jsx(r,{}),jsx(Avatar.Image,{src:e.src})]})}a();function Uo(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 jo=createContext(null);function Xl(e){return jsx(jo.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 Go(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 Yo(e){return r=>jsx("span",{style:(()=>{let o=C({...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"?X(o):Ie(r.truncateStyle.lineCount,o)})(),children:r.value})}var Ul=Go(),jl=Go(),Gl=e=>{let{gap:r=e.gap}=useContext(jo);return jsx(d,{gap:r,...e,spill:e.spill||"hidden",maxWidth:e.maxWidth||"full",children:e.children})},Yl=Yo({fontWeight:"bold",fontSize:"xs",fade:.75}),Kl=Yo({fontSize:"sm"}),W={Root:Xl,LeadingAddOn:Ul,TrailingAddOn:jl,Content:Gl,Label:Yl,Item:Kl};a();function Ql(e){let r=()=>{if(typeof e.fallback=="string"||oe__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(fe,{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:C({fontSize:e.titleFontSize??"md"})}),e.description&&jsx("span",{children:e.description,style:C({fontSize:e.descriptionFontSize??"xs",fade:.5})})]}),e.children]})]})}function es(e){return jsx(d,{...e,width:e.width??"full",spill:e.spill||"hidden",children:e.children})}var Vy={Root:Ql,Content:es};a();function rs(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(me,{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:X(C({fontSize:e.titleFontSize??"sm",fontWeight:e.titleFontWeight,fade:e.titleFade}))}),jsx("span",{children:e.description,style:X(C({fade:e.descriptionFade??.5,fontSize:e.descriptionFontSize??"xs",fontWeight:e.descriptionFontWeight}))})]})]}),e.children]})}var Gy={Root:rs,Content:d};a();function Do(e){let[r,t]=useState(e.defaultChecked??false),o=e.checked??r,n=e.checked!==void 0,i=()=>{e.onClick?.(),n||(e.onChange?.(!o),t(!o));};return jsx(d,{cursor:e.disabled?"not-allowed":"pointer",fade:e.disabled?.5:1,size:e.size,corners:e.corners??"sm",padding:e.padding??"sm",backgroundColor:o?e.accentColor||"primaryContainer":"transparent",color:e.iconColor||"onPrimaryContainer",borderColor:e.borderColor||"onSurface[0.1]",style:{boxShadow:e.disableShadow?void 0:"rgba(0, 0, 0, 0.25) 0px 2px 4px 0px inset"},onClick:e.disabled?void 0:i,children:jsx(IoMdCheckmark,{size:e.iconSize,style:{opacity:o?1:0}})})}a();a();function as(e){let{triggerRerender:r}=L(),t=C({...e,padding:e.padding||"xl",corners:e.corners||"md",gap:e.gap||"lg"}),o=({open:i})=>{e.onOpenChange?.(i);},n=()=>{e.onClose?.(),e.controller?.hide?.(),e.rerenderOnClose&&r();};if(e.controller?.isOpen!==false)return jsxs(Dialog.Root,{unmountOnExit:e.unmountOnExit,open:e.controller?.isOpen,onEscapeKeyDown:e.closeOnEscape??true?e.controller?.hide:void 0,scrollBehavior:e.scrollBehavior,onInteractOutside:e.closeOnInteractOutside??true?e.controller?.hide:void 0,placement:e.placement||"center",closeOnEscape:e.closeOnEscape,closeOnInteractOutside:e.closeOnInteractOutside,onOpenChange: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 qr=(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})})},ls=qr("Header",{fontSize:"xl",fontWeight:"bold"}),ss=qr("Body",{gap:"md"}),cs=qr("Footer",{row:true,gap:"sm"}),ds=e=>jsx(Dialog.CloseTrigger,{asChild:true,children:e.wrap?jsx("div",{...e.slotProps?.divWrapper,children:e.children}):e.children}),us=e=>jsx(Dialog.ActionTrigger,{asChild:true,children:e.children}),w={Root:as,Header:ls,Body:ss,Footer:cs,CloseTrigger:ds,ActionTrigger:us};function yh(e){let r=e.severity||"error",t=b(r,{preference:"res"});return jsxs(w.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(w.Header,{fontSize:"2xl",children:e.title}),jsxs(w.Body,{fade:.75,children:[jsx("span",{children:e.message}),e.disclaimer&&jsx(qo,{width:"full",facade:o=>o==="error"?"warning":o,hideLabel:e.hideDisclaimerLabel,severity:r,message:e.disclaimer})]}),jsxs(w.Footer,{gap:"md",children:[jsx(w.ActionTrigger,{children:jsx(x,{size:"sm",fade:.75,color:"onSurface",backgroundColor:"transparent",text:e.cancelLabel||"Cancel",onClick:e.onCancelClick})}),jsx(x,{async:true,size:"sm",text:e.action.label,backgroundColor:t,color:"white",onClick:e.action.onClick})]})]})}a();var Qr=createContext(null);function Bh(e){let r=e.sections.flatMap(h=>typeof h=="object"?h.nestedItems:h),t=e.defaultSection?r.findIndex(h=>h===e.defaultSection):0,[o,n]=useState(t>=0?t:0),{triggerRerender:i}=L(),l=T([]),s=r[o],c=Array.isArray(e.ignoredSections)?e.ignoredSections:strictArray([e.ignoredSections]),v=o<=0;e.checkCompletionOnMount&&useEffect(()=>{r.forEach((h,_)=>{u(h,_);}),i();},[]);let g=(h=l.read())=>r.filter(_=>!h.includes(_)&&!c.includes(_)),u=(h=s,_=o)=>{let B=l.read();if(!c.includes(h)){if(e.isSectionComplete(h)&&!B.includes(h))B=[...B,h];else if(!e.isSectionComplete(h)&&B.includes(h))B=B.filter((R,z)=>z!==_);else return;l.upsert(B),e.onSectionsStatusChange?.(g(B),B);}},y=h=>{u(),n(r.findIndex(_=>_===h));},S=()=>{o>=r.length-1||(u(),n(o+1));},P=()=>{v||(u(),n(o-1));};return jsx(Qr.Provider,{value:{activeSection:s,completedSections:l.read(),rawSections:e.sections},children:jsx(w.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(w.Body,{grid:true,gap:"0px",width:"full",height:"full",spill:"hidden",gridCols:".45fr 1fr",children:[jsx(ys,{title:e.title,onSectionClick:y}),jsx(hs,{hideSubmitButton:e.hideSubmitButton,sectionMapper:e.sectionMapper,previousDisabled:v,onPreviousClick:P,onNextClick:S,incompleteSections:g(),onSubmitClick:e.onSubmit})]})})})}function ys(e){let{rawSections:r,activeSection:t,completedSections:o}=useContext(Qr);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(Vr,{width:"full",items:r,isItemActive:n=>t===n,isItemCompleted:n=>o.includes(n),onItemClick:e.onSectionClick})]})}function hs(e){let{activeSection:r}=useContext(Qr),{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(p,{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(rt,{disabled:e.previousDisabled,onClick:e.onPreviousClick}),r==="Submission"?!e.hideSubmitButton&&jsx(tt,{disabled:!!e.onSubmitClick,onClick:e.onSubmitClick}):jsx(et,{onClick:e.onNextClick})]})]})}a();a();var ps=ue({preset:{text:"Save",async:true}}),ot=ps;function Mh(e){let{triggerRerender:r}=L(),t=T(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(w.Root,{rerenderOnClose:true,width:e.width,closeButtonSize:e.closeButtonSize||"md",controller:e.controller,triggerElement:e.triggerElement,onClose:()=>r(),children:[jsx(w.Header,{fontSize:"2rem",children:e.title||"Edit Form"}),jsx(w.Body,{padding:"xs",children:Object.keys(e.fields).map(l=>{let s=l,c=e.fields[s],v=t.read()?.[s]??"",g=typeof c.label=="function"?c.label(l):!c.label||c.label==="prop-name"?e?.formatFieldPropName?.(l)??l:c.label,u=y=>t.upsert(S=>({...S||{},[s]:y}));return c.options?jsx(_s,{label:g,size:e.textfieldSize,defaultValue:v,disabled:c.disabled,placeholder:c.placeholder,options:c.options,onChange:u},l):jsx(G,{width:"full",placeholder:c.placeholder,label:g,size:e.textfieldSize,defaultValue:v,disabled:c.disabled,allowedChars:c.allowedChars||e.allowedChars,onChange:u},s)})}),jsxs(w.Footer,{children:[jsx(w.ActionTrigger,{children:jsx(Ue,{fade:.5,size:o,onClick:i})}),jsx(w.ActionTrigger,{children:jsx(ot,{size:o,onClick:n})})]})]})}function _s(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 ee={sidebar:"fv-sidebar",topbar:"fv-topbar",viewer:"fv-viewer"},Ge=createContext(null);function xs(e){let r=b(e.borderColor||"outline[0.1]"),t=ce.md;return jsx(Ge.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:`"${ee.topbar} ${ee.topbar}" "${ee.sidebar} ${ee.viewer}"`,boxShadow:"rgba(0, 0, 0, 0.35) 0px 5px 15px"},children:e.children})})}function Bs(e){let{navThickness:r}=useContext(Ge),t=Cr(e.file.typeAlias);return jsxs(d,{row:true,align:"center",children:[t&&jsx(t.filled,{style:C({size:r||e.styles?.icon?.size,color:"pdf",style:{padding:C({padding:e.styles?.icon?.padding||".65rem"})?.padding}})}),jsxs(d,{asChildren:e.hideFileMetadata,children:[jsx(p,{color:e.styles?.filename?.color,fontWeight:e.styles?.filename?.fontWeight,fontSize:e.styles?.filename?.fontSize||"1rem",text:e.file.name}),!e.hideFileMetadata&&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(p,{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(p,{fade:.75,text:format("file-size",e.file.sizeInBytes)})]})]})]})}function ks(e){let{navThickness:r}=useContext(Ge),{children:t,...o}=e;return jsx(d,{...o,row:true,id:ee.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:ee.topbar},children:e.children})}var rn=createContext(null);function ws(e){let{children:r,onOptionClick:t,...o}=e,{navThickness:n}=useContext(Ge);return jsx(rn.Provider,{value:{onOptionClick:i=>e.onOptionClick?.(i)},children:jsx(d,{...o,id:ee.sidebar,height:"full",width:n,align:"center",gap:o.gap||"md",padding:["md",["top","bottom"]],style:{...o.style,gridArea:ee.sidebar},children:e.children})})}function Ds(e){let{onOptionClick:r}=useContext(rn),t=()=>{e.onClick?.(),r(e.label);};return jsx(Te,{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 Ts(e){let{borderColor:r,corners:t}=useContext(Ge),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(`#${ee[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:ee.viewer,boxShadow:"rgba(50, 50, 93, 0.25) 0px 30px 60px -12px inset, rgba(0, 0, 0, 0.3) 0px 18px 36px -18px inset"},children:e.children})}function Es(e){let r=e.thickness||"0.0104in",t=e.length||"70%",o={horizontal:{height:r,width:t},vertical:{height:t,width:r}}[e.orientation||"vertical"];return jsx(d,{...o,backgroundColor:e.color||"outline[0.1]"})}var Uh={Root:xs,Sidebar:ws,SidebarOption:Ds,Topbar:ks,Viewer:Ts,Indicator:Bs,Sep:Es};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 on(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})}a();function nn(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 Dm(e,r){return {display:"flex",justifyContent:"center",alignItems:"center",flexDirection:r?"column":"row",...e}}function Tm(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 Em(e){let r=typeof e.disabledCurves=="function"?e.disabledCurves():e.disabledCurves,t=n=>r==="both"||r===n?0:e.curveRadius||ce.md;return {borderTopLeftRadius:t("left"),borderBottomLeftRadius:t("left"),borderTopRightRadius:t("right"),borderBottomRightRadius:t("right")}}function Fm(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 Rm(e){return {...e,margin:0,padding:0}}function X(e,r={apply:true}){return r.apply?Ie(1,e):e}function zm(e,r={apply:true}){return r.apply?{...e,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}:e}function qt(e){let r=e;for(;r&&!Rr(r);)r=r.parentElement;return r}function Zt(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 b(e,r){if(!e||typeof e!="string")return;let t=r?.preference||"css",o=e.replaceAll(" ",""),{0:n,1:i}=o.split("["),l=()=>J[o],s=()=>i?Gi(te[n],parseFloat(i)):te[o];if(t==="css"){if(o in J)return l();if(n in te)return s()}else if(t==="res"){if(n in te)return s();if(o in J)return l()}return o}var Ui=e=>/^#([A-Fa-f0-9]{3,4}){1,2}$/.test(e),ji=e=>parseInt(e.repeat(2/e.length),16);function Gi(e,r=1){let t=(g,u)=>g.match(new RegExp(`.{${u}}`,"g")),o=g=>typeof g<"u"?g/255:typeof r!="number"||r<0||r>1?1:r;if(!Ui(e))throw new Error(`Invalid HEX: ${e}`);let n=Math.floor((e.length-1)/3),i=t(e.slice(1),n),[l,s,c,v]=i.map(ji);return `rgba(${l}, ${s}, ${c}, ${o(v)})`}function Om(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 Im(e){return window.matchMedia(`(max-width:${e})`).matches}function Am(e){return window.matchMedia(`(min-width:${e})`).matches}function Ie(e=2,r){return {...r,overflow:"hidden",width:"100%",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical"}}function Yi(e){return e*16}function Mm(e){return `${Yi(e)}px`}function Rr(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function Lm(e){let r=document.body,t=e.replace("var(","").replace(")","");return getComputedStyle(r).getPropertyValue(t)}a();var Ki=Object.freeze({"2xl":"1.75rem",xl:"1.5rem",lg:"1rem",md:"0.5rem",sm:"0.25rem",xs:"0.125rem","2xs":"0.1rem"}),de=Ki;a();var qi=Object.freeze({"2xl":"1.75rem",xl:"1.5rem",lg:"1.25rem",md:"1rem",sm:"0.85rem",xs:"0.75rem","2xs":"0.65rem"}),Y=qi;var dr=["top","right","bottom","left"],Qt=(e,r)=>`translate(${e}, ${r})`,eo=e=>`translateX(${e})`,ro=e=>`translateY(${e})`,Zi=(e,r)=>{let t=e.fontSize in Y?Y[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:`${b(e.scrollbarThumbColor||"inherit")} ${b(e.scrollbarThumbColor||"inherit")}`,transform:e.centerSelf===true?Qt("-50%","-50%"):e.centerSelf==="x"?eo("-50%"):e.centerSelf==="y"?ro("-50%"):e.translate?.x&&e.translate?.y?Qt(e.translate.x,e.translate.y):e.translate?.x?eo(e.translate.x):e.translate?.y?ro(e.translate.y):void 0,position:e.pos==="absolute"||e.centerSelf?"absolute":e.pos,padding:ta(e.padding),fontSize:t,fontWeight:e.fontWeight,border:e.border,borderColor:Qi(e.borderColor),borderWidth:ea(e.borderWidth,e.borderColor?"1px":void 0),borderStyle:ra(e.borderStyle,e.borderColor?"solid":void 0),lineHeight:t?`calc(${t} + (${t} * .15))`:void 0,borderRadius:oa(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:b(e.backgroundColor),color:b(e.color),gap:na(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,v=l[c];typeof v=="string"&&(v=v.trim()),!v&&v!==0&&delete l[c];}),(r||e.debug)&&console.log({props:e,style:l}),l};function Qi(e){if(!e)return;let r="transparent";return typeof e=="string"?b(e):dr.map(t=>{if(Array.isArray(e)){let{0:o,1:n}=e;return (Array.isArray(n)?n.includes(t):[t,"all"].includes(n))?b(o):r}return typeof e=="object"&&t in e?b(e[t]):r}).join(" ")}function ea(e,r){if(!e)return r;let t=0;return typeof e=="string"?e:dr.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 ra(e,r){if(!e)return r;let t=0;return typeof e=="string"?e:dr.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){let t=o=>o?o in de?de[o]:o:"0px";return e?typeof e=="string"?t(e):dr.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 oa(e){let t=n=>n?n in ce?ce[n]:n:"0px";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):"0px"}).join(" "):"0px"}function na(e){if(!(!e||typeof e!="string"))return e in de?de[e]:e}var C=Zi;var ua=["inherit","sm","md","lg","xl","2xl","xs"],fa=["sm","md","lg","xl","2xl","xs","2xs"];function to(e){let[r,t]=useState(false),o=e.disabled||r,n=async u=>{if(!o){if(!e.async)return e.onClick?.(u);t(true),await e.onClick?.(u),setTimeout(()=>t(false),e.pendingDelay||1);}},i=u=>{if(u){if(typeof u==typeof FaFolder){let y=S=>typeof S=="string"&&[...ua].includes(S);return jsx(Icon,{size:y(e.iconSize)?e.iconSize:void 0,boxSize:y(e.iconSize)?void 0:e.iconSize,as:u})}return u}},l=i(e.leadingEl),s=i(e.trailingEl),c=u=>typeof u=="string"&&[...fa].includes(u),{size:v,...g}=e;return jsxs(Button,{...se(e),disabled:o,size:c(v)?v:void 0,style:C({...g,size:c(v)?void 0:v,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?b(e.spinnerColor):"blue.500"})})]})}var ue=e=>r=>jsx(to,{...(()=>{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})()}),x=to;a();a();a();a();a();function fr(){return 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},fr.apply(null,arguments)}a();a();function oo(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 no={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 mr(e){var r=Object.create(null);return function(t){return r[t]===void 0&&(r[t]=e(t)),r[t]}}var va=/[A-Z]|^ms/g,ya=/_EMO_([^_]+?)_([^]*?)_EMO_/g,so=function(r){return r.charCodeAt(1)===45},io=function(r){return r!=null&&typeof r!="boolean"},zr=mr(function(e){return so(e)?e:e.replace(va,"-$&").toLowerCase()}),ao=function(r,t){switch(r){case "animation":case "animationName":if(typeof t=="string")return t.replace(ya,function(o,n,i){return K={name:n,styles:i,next:K},n})}return no[r]!==1&&!so(r)&&typeof t=="number"&&t!==0?t+"px":t};function Ae(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 K={name:n.name,styles:n.styles,next:K},n.name;var i=t;if(i.styles!==void 0){var l=i.next;if(l!==void 0)for(;l!==void 0;)K={name:l.name,styles:l.styles,next:K},l=l.next;var s=i.styles+";";return s}return pa(e,r,t)}case "function":{if(e!==void 0){var c=K,v=t(e);return K=c,Ae(e,r,v)}break}}var g=t;if(r==null)return g;var u=r[g];return u!==void 0?u:g}function pa(e,r,t){var o="";if(Array.isArray(t))for(var n=0;n<t.length;n++)o+=Ae(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]+"}":io(s)&&(o+=zr(i)+":"+ao(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++)io(l[c])&&(o+=zr(i)+":"+ao(i,l[c])+";");else {var v=Ae(e,r,l);switch(i){case "animation":case "animationName":{o+=zr(i)+":"+v+";";break}default:o+=i+"{"+v+"}";}}}}return o}var lo=/label:\s*([^\s;{]+)\s*(;|$)/g,K;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="";K=void 0;var i=e[0];if(i==null||i.raw===void 0)o=false,n+=Ae(t,r,i);else {var l=i;n+=l[0];}for(var s=1;s<e.length;s++)if(n+=Ae(t,r,e[s]),o){var c=i;n+=c[s];}lo.lastIndex=0;for(var v="",g;(g=lo.exec(n))!==null;)v+="-"+g[1];var u=oo(n)+v;return {name:u,styles:n,next:K}}a();var Ca=typeof document<"u",uo=function(r){return r()},_a=oe.useInsertionEffect?oe.useInsertionEffect:false,fo=Ca&&_a||uo;a();var Or=typeof document<"u";function mo(e,r,t){var o="";return t.split(" ").forEach(function(n){e[n]!==void 0?r.push(e[n]+";"):n&&(o+=n+" ");}),o}var Ir=function(r,t,o){var n=r.key+"-"+t.name;(o===false||Or===false&&r.compat!==void 0)&&r.registered[n]===void 0&&(r.registered[n]=t.styles);},go=function(r,t,o){Ir(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);!Or&&s!==void 0&&(i+=s),l=l.next;}while(l!==void 0);if(!Or&&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)-.*))$/,vo=mr(function(e){return ba.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});var xa=typeof document<"u",ka=vo,wa=function(r){return r!=="theme"},yo=function(r){return typeof r=="string"&&r.charCodeAt(0)>96?ka:wa},ho=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},Da=function(r){var t=r.cache,o=r.serialized,n=r.isStringTag;Ir(t,o,n);var i=fo(function(){return go(t,o,n)});if(!xa&&i!==void 0){for(var l,s=o.name,c=o.next;c!==void 0;)s+=" "+c.name,c=c.next;return oe.createElement("style",(l={},l["data-emotion"]=t.key+" "+s,l.dangerouslySetInnerHTML={__html:i},l.nonce=t.sheet.nonce,l))}return null},po=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=ho(r,t,o),c=s||yo(n),v=!c("as");return function(){var g=arguments,u=o&&r.__emotion_styles!==void 0?r.__emotion_styles.slice(0):[];if(i!==void 0&&u.push("label:"+i+";"),g[0]==null||g[0].raw===void 0)u.push.apply(u,g);else {var y=g[0];u.push(y[0]);for(var S=g.length,P=1;P<S;P++)u.push(g[P],y[P]);}var h=withEmotionCache(function(_,B,R){var z=v&&_.as||n,ke="",Wt=[],ir=_;if(_.theme==null){ir={};for(var Nt in _)ir[Nt]=_[Nt];ir.theme=oe.useContext(ThemeContext);}typeof _.className=="string"?ke=mo(B.registered,Wt,_.className):_.className!=null&&(ke=_.className+" ");var ar=co(u.concat(Wt),B.registered,ir);ke+=B.key+"-"+ar.name,l!==void 0&&(ke+=" "+l);var Pi=v&&s===void 0?yo(z):c,lr={};for(var sr in _)v&&sr==="as"||Pi(sr)&&(lr[sr]=_[sr]);return lr.className=ke,R&&(lr.ref=R),oe.createElement(oe.Fragment,null,oe.createElement(Da,{cache:B,serialized:ar,isStringTag:typeof z=="string"}),oe.createElement(z,lr))});return h.displayName=i!==void 0?i:"Styled("+(typeof n=="string"?n:n.displayName||n.name||"Component")+")",h.defaultProps=r.defaultProps,h.__emotion_real=h,h.__emotion_base=n,h.__emotion_styles=u,h.__emotion_forwardProp=s,Object.defineProperty(h,"toString",{value:function(){return "."+l}}),h.withComponent=function(_,B){var R=e(_,fr({},t,B,{shouldForwardProp:ho(h,B,true)}));return R.apply(void 0,u)},h}};Ri(Co());var Ta=["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"],we=po.bind(null);Ta.forEach(function(e){we[e]=we(e);});var Mr=class{static getStyle(r){if(r)return JSON.parse(JSON.stringify(r||{}),(t,o)=>t==="backgroundColor"||t==="color"?b(o):o)}static span=r=>we.span({...this.getStyle(r)});static div=r=>we.div({...this.getStyle(r)});static img=r=>we.img({...this.getStyle(r)})},De=Mr;function Oa(e){let r=useRef(null),[t,o]=useState(false),n=T({top:0,left:0});e.rememberScrollPos&&useEffect(()=>{let g=n.read();r.current&&[g.top,g.left].some(u=>!!u)&&(r.current.scrollTop=g?.top??0,r.current.scrollLeft=g?.left??0);},e.updateScrollPosDeps),(e.rememberScrollPos||e.overflowPadding)&&useEffect(()=>{r.current&&Rr(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=C({...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}}),v=De.div(e.css);if(!e.hide)return e.asChildren?e.children:jsx(v,{...se(e),ref:e.rememberScrollPos||e.overflowPadding?r:e.ref,draggable:e.draggable,onScroll:g=>{let u=r?.current?.scrollTop,y=r?.current?.scrollLeft;!t&&e.overflowPadding&&o(true),isEmpty(strictArray([u,y]))||n.upsert({top:u??0,left:y??0}),e.onScroll?.(g);},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=Oa;a();function Aa(e){let r=!!e.tint,t=De.img(e.sx);return jsx(t,{...se(e),loading:"lazy",decoding:"async",fetchPriority:"high",src:e.src,alt:e.alt,style:{...C(e),filter:r?`drop-shadow(0px 1000px 0 ${b(e.tint)})`:void 0,transform:r&&"translateY(-1000px)",objectFit:e.noFit?"none":e.fill?"fill":e.cover?"cover":e.scaleDown?"scale-down":"contain"}})}var fe=Aa;a();function Va(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(Lr,{index:n,item:o,bold:t,active:e.isItemActive(o),completed:e.isItemCompleted(o),onClick:r},o):jsxs(d,{width:"full",children:[jsx(Lr,{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(Lr,{index:l,fontSize:"sm",nested:true,item:i,active:e.isItemActive(i),completed:e.isItemCompleted(i),onClick:r},i))})]},o.label))})}function Lr(e){let r=te.white,t=J.onSurface,o=e.nested?t:J.tertiaryContainer,n=e.active?o:te.carlsbergGreen,i=e.active&&!e.nested?o:J["onSurface[0.25]"],l=e.nested?J["onSurface[0.4]"]:J["onSurface[0.5]"],s=J["onSurface[0.2]"],c=()=>e.onClick?.(e.item),v=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(v,{fontSize:"1rem"}):jsx(p,{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(v,{size:"1.25rem",opacity:.75})]})}var Vr=Va;a();function Wa(e){let r=i=>e.ellipsis?X(i):e.lineLimit?Ie(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=C({...e,color:e.fakeHyperlink||e.hyperlink?"hyperlink":e.color,cursor:e.link||e.hyperlink||e.clickable?"pointer":e.cursor}),n=De.span(e.sx);return jsx(n,{...se(e),ref:e.ref,style:r({...o,width:e.ellipsis?"100%":o.width,textAlign:o.textAlign||e.textAlign||"justify",fontStyle:o.fontStyle||e.italic?"italic":void 0,textDecoration:o.textDecoration||t()||void 0}),children:e.text||e.children})}var p=Wa;a();var Le=createContext(null);function Xa(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)),v=i.length===e.entries.length&&e.entries.length>0,g=(Array.isArray(e.children)?e.children:[e.children]).filter((P,h)=>h<2),u=()=>{let P=[];v||(P=e.entries.map((h,_)=>_)),e.onSelectedRowsChange?.(P),n||l(P);},y=P=>{let h=[...i];h.includes(P)?h=h.filter(_=>_!==P):h.push(P),e.onSelectedRowsChange?.(h),n||l(h);},S=()=>e.columnWeight?e.columns.map(P=>{let h=typeof P=="object"?P:{};return {...h,name:he(P),weight:"weight"in h?h.weight:e.columnWeight,textAlign:"textAlign"in h?h.textAlign:e.textAlign||"start"}}):e.columns;return useEffect(()=>{},[]),jsx(Le.Provider,{value:{...e,gridCols:s,selectedRowIndices:n?e.selectedRows:i,separatorColor:t,allRowsSelected:v,onSelectRowClick:y,onSelectAllRowsClick:u,columns:S(),padding:e.padding??"sm",columnGap:e.columnGap??e.gap??"lg",rowGap:e.rowGap??e.gap,onAutoColumnWidthsComputed:P=>{let h=e.columns.map(_=>{let B=P.get(he(_));return B?{..._,weight:`${B}px`}:_});c(o(h));}},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:g})})}function Ua(e){let r=useContext(Le),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=he(o);return jsx(p,{size:"full",borderColor:t&&n!==lastIndex(r.columns)?[t,"right"]:void 0,text:!e.formatColumnName||e.formatColumnName==="camelToLetter"?camelCaseToLetter(i):e.formatColumnName?.(i)??i,style:{flexGrow:1,textAlign:Me("textAlign",o)}},i+n)})]})}function ja(e){let r=useContext(Le),t=useRef(new Map);return useEffect(()=>()=>{t.current.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(Ga,{rowData:o,index:n,style:e.styleRow?.(n),styleCell:e.styleCell,onColWidthComputed:(i,l)=>{let s=t.current.get(i);(!s||l>s)&&t.current.set(i,l);},onCellRendered:i=>{let l=n===lastIndex(r.entries),s=i===lastIndex(r.columns);l&&s&&t.current.size>0&&r.onAutoColumnWidthsComputed(t.current);}},n))})}function Ga(e){let r=useContext(Le),t=r.selectedRowIndices.includes(e.index),o=()=>r.onSelectRowClick(e.index),{gap:n,padding:i,backgroundColor:l}=C({gap:r.columnGap,padding:r.padding??e.padding,backgroundColor:t?"onSurface[0.1]":"transparent"});return jsxs(d,{style:{gap:n,padding:i,backgroundColor:l,width:"100%",display:"grid",alignItems:"center",gridTemplateColumns:r.gridCols,...e.style},children:[r.selectable&&jsx(Bo,{selected:t,onClick:o}),r.columns.map((s,c,v)=>{let g=he(s),u=e.rowData[g],y=typeof s=="object"?s?.placeholder:void 0,S=()=>e.onCellRendered?.(c),P=c+he(s),h=Me("textAlign",s),_={textAlign:h,justifyContent:h,color:Me("color",s),opacity:Me("opacity",s,1),backgroundColor:Me("backgroundColor",s),...e.styleCell?.({cellIndex:e.index*r.columns.length+c,columnName:g,columnIndex:c,rowIndex:e.index,data:typeof u=="string"?u:null,siblingData:{previous:c===0?null:run(e.rowData[he(v[c-1])],B=>typeof B=="string"?B:null),next:c===v.length-1?null:run(e.rowData[he(v[c+1])],B=>typeof B=="string"?B:null)}})||{}};return typeof s=="object"&&s.weight==="auto"?jsx(Ya,{data:u,style:_,onRender:S,placeholder:y,onWidthComputed:B=>e.onColWidthComputed(g,B)},P):jsx(ko,{data:u,style:_,placeholder:y,onRender:S},P)})]})}function Bo(e){let r=useContext(Le),{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(Do,{padding:"sm",iconSize:".85rem",checked:e.selected,onChange:e.onClick})})}function Ya(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(ko,{noWrap:true,data:e.data,placeholder:e.placeholder,ref:r,style:e.style,onRender:e.onRender})}function ko(e){return useEffect(()=>{e.onRender?.();},[]),typeof e.data=="string"||!e.data?jsx(p,{ref:e.ref,children:e.data||"-",fade:e.data?1:.75,style:{...e.style,whiteSpace:e.noWrap?"nowrap":void 0,width:"100%"}}):e.ref?jsx("div",{ref:e.ref,style:{...e.style,width:"100%",overflow:"hidden"},children:e.data}):e.data}var he=e=>typeof e=="string"?e:e.name,Me=(e,r,t)=>typeof r=="object"&&e in r?r[e]:t,Ka={Root:Xa,Header:Ua,Body:ja},qa=Ka;a();a();function Qa(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:X({maxWidth:"100%",flex:"1",alignItems:"start",textAlign:"start"})})]})}var Wr=Qa;var Eo=createContext(null);function il(e){return jsx(Eo.Provider,{value:e,children:jsx(Te,{...e,backdropBlur:e.backdropBlur,padding:e.padding||"md",corners:e.corners||"md",displayAction:"click",content:jsx(al,{})})})}function al(){let e=useContext(Eo),r=Fo(),[t,o]=useState(e.isSelected?e.options.findIndex(i=>e.isSelected(i)):void 0),{triggerRerender:n}=L();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(Wr,{value:i?.value.toString(),disabled:i?.disabled,selected:s,onClick:c},l)})})}var He=il;a();function _v(e){let r=useRef(false),[t,o]=useState(e.currentPage??0),n=e.maxIndicators||5,i=n-1,l=e.totalPages-1,s=async g=>{if(g===t)return;let u=g===t+1,y=Math.abs(g-t)>1;r.current=y?null:u,y||(u?await e.onNextClick?.():await e.onPreviousClick?.()),await e.beforePageChange?.(g),o(g),await e.afterPageChange?.(g);},c=async()=>s(t-1),v=async()=>s(t+1);return jsxs(d,{row:true,align:"center",gap:e.gap||"1rem",children:[jsx(Ro,{icon:SlArrowLeft,disabled:e.disableNav||t===0,onClick:c}),jsx(d,{row:true,justify:"space-evenly",align:"center",gap:".5rem",spill:"hidden",style:{width:`calc(2.05rem * ${n})`},children:buildArray(e.totalPages,g=>{let u=t===g;return jsx(d,{cursor:e.disableNav?"default":"pointer",centerContent:true,size:"1.6rem",children:`${g+1}`,corners:"circle",fade:u?1:.5,borderColor:u?void 0:"onSurface[0.1]",backgroundColor:u?"primary":void 0,color:u?"onPrimary":void 0,fontSize:"xs",style:{userSelect:"none",transition:"transform 200ms linear",transform:`translateX(calc(${t<i?0:t===l?t-i:t-(i-1)} * 2.1rem * ${r?-1:1}))`,flexShrink:0},onClick:e.disableNav?void 0:()=>s(g)},g)})}),jsx(Ro,{icon:SlArrowRight,disabled:e.disableNav||t===e.totalPages-1,onClick:v})]})}function Ro(e){return jsx(x,{async:true,disabled:e.disabled,padding:0,iconSize:"1rem",leadingEl:e.icon,backgroundColor:"transparent",color:"onSurface",onClick:e.onClick})}a();var zo=createContext(null);function hl(e){let r=()=>{e.onClose?.();};if(e.controller?.isOpen!==false)return jsx(zo.Provider,{value:{sepColor:e.sepColor||"onSurface[0.1]"},children:jsxs(Drawer.Root,{open:e.controller?.isOpen,onExitComplete:r,children:[e.triggerElement&&jsx(Drawer.Trigger,{children:e.triggerElement}),jsxs(Cl,{container:e.container,children:[jsx(Drawer.Backdrop,{pos:e.container?"absolute":void 0,boxSize:e.container?"full":void 0}),jsx(Drawer.Positioner,{pos:e.container?"absolute":void 0,boxSize:e.container?"full":void 0,children:jsxs(Drawer.Content,{style:C({...e,spill:e.spill||"hidden",backgroundColor:e.backgroundColor,padding:e.padding??"md"}),children:[jsx(Drawer.CloseTrigger,{children:jsx(CloseButton,{})}),e.children]})})]})]})})}function pl(){let e=useContext(zo);return jsx(d,{backgroundColor:e.sepColor,width:"full",height:"1px"})}function Cl(e){return e.container?jsx(Portal,{container:e.container,children:e.children}):e.children}var Fv={Root:hl,Header:e=>jsx(Drawer.Header,{style:C({...e,width:e.width??"full"}),children:e.children}),Body:e=>jsx(Drawer.Body,{style:C({...e,width:e.width??"full"}),children:e.children}),Footer:e=>jsx(Drawer.Footer,{style:C({...e,width:e.width??"full"}),children:e.children}),Sep:pl,ActionTrigger:Drawer.ActionTrigger,CloseTrigger:Drawer.CloseTrigger};a();a();a();var Oo=["Google"],Io=["pdf","word","excel","img","txt","unknown"],Ao=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 Lo(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:_l(e.accepts),children:[jsx(FileUpload.HiddenInput,{onChange:r}),e.children,e.showList&&jsx(FileUpload.List,{...e.slotProps?.fileList})]})}var _l=e=>e.flatMap(r=>Ao[r]);function Gv(e){return jsx(Lo,{...e,children:jsxs(FileUpload.Dropzone,{borderRadius:"xl",height:"full",width:"full",overflow:"hidden",backgroundColor:b(e.backgroundColor||"transparent"),borderColor:b(e.borderColor||"outlineVariant"),color:b(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 $o=createContext(null);function ny(e){let r=T(null),t=T(e.defaultValue??""),[o,n]=useState(e.value??t.read()),[i,l]=useState(false),s=e.activationMode||"click",c=e.size||"md",v=z=>{e.value===void 0&&n(z),e.onChange?.(z);},g=()=>{v(t.read());},u=()=>{e.onEdit?.(),!e.preventDefault&&l(true);},y=(z={asClick:true})=>{r.upsert("cancel"),g(),z.asClick&&e.onCancelClick?.(),l(false);},S=z=>{z.preventDefault(),r.read()!=="save"&&g(),l(false);},P=(z=true)=>{t.upsert(o),z&&(r.upsert("save"),e.onSaveClick?.(o)),e.onSave?.(o),l(false);},h=()=>{r.upsert("edit"),e.onEditClick?.(),u();},_=()=>{P(false);},B=()=>{e.onContentClick?.(),u();},R={align:"center",gap:e.rowGap??"sm",width:e.width,maxWidth:"full"};return jsx($o.Provider,{value:{padding:".25rem",iconSize:e.iconSize||c},children:jsxs(d,{...R,asChildren:!e.label,row:false,align:"start",children:[e.label&&jsx(p,{text:e.label,fontSize:Y[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",validateInput:e.validateInput,width:e.inputWidth,focusColor:e.focusColor,size:e.inputSize||c,placeholder:e.placeholder,showCharCounter:e.showCharCounter,slotProps:{charCounter:{fontSize:e.charCounterFontSize}},onChange:v,onBlur:S,onEnterKeyPressed:_,onEscapeKeyPressed:()=>y({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"?()=>y({asClick:false}):void 0,onClick:s==="click"?B:void 0,children:jsx(Te,{...e.slotProps?.popover,allowInteractions:true,asChild:e.showPopoverOnHover===false?true:e.slotProps?.popover?.asChild??!!o,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:X({opacity:e.placeholder&&!o?.85:1,width:"100%"}),children:(e.formatContent?.(o)??o)||e.placeholder})})}),e.hideControls!==true&&(e.control||jsx(El,{editing:i,hideControl:typeof e.hideControls=="boolean"?void 0:e.hideControls,onCancel:y,onSave:P,onEdit:h}))]})]})})}function El(e){let r=t=>Array.isArray(e.hideControl)?e.hideControl.includes(t):e.hideControl===t;return e.editing?jsxs(Fragment,{children:[!r("cancel")&&jsx(Jr,{outlined:true,icon:LuX,onClick:e.onCancel}),!r("save")&&jsx(Jr,{preventDefault:true,outlined:true,icon:LuCheck,onClick:e.onSave})]}):r("edit")?void 0:jsx(Jr,{icon:LuPencilLine,onClick:e.onEdit})}function Jr(e){let{padding:r,iconSize:t}=useContext($o);return jsx(d,{asChildren:e.outlined,corners:"sm",css:{transition:"all 200ms linear",":hover":{backgroundColor:"onSurface[0.1]"}},children:jsx(x,{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 Ur=createContext(null);function zl(e){return jsx(Ur,{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 Ol(e){let{fade:r}=useContext(Ur);return jsx(d,{fade:e.disableFade?1:r,size:e.size||"4rem",children:e.element})}function Il(e){let{fade:r}=useContext(Ur);return jsxs(d,{align:"center",gap:e.gap||"sm",children:[jsx(p,{fontWeight:"bold",fontSize:e.titleFontSize||"lg",text:e.title}),jsx(p,{fade:r,fontSize:e.descriptionFontSize,text:e.description})]})}var hr={Root:zl,Indicator:Ol,Content:Il};a();function me(e){let r=()=>{if(!e.disableFallback){if(typeof e.fallback=="string")return jsx(Avatar.Fallback,{name:e.fallback});if(e.fallback&&oe__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:b(e.backgroundColor),color:b(e.color),children:[jsx(r,{}),jsx(Avatar.Image,{src:e.src})]})}a();function Uo(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 jo=createContext(null);function Xl(e){return jsx(jo.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 Go(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 Yo(e){return r=>jsx("span",{style:(()=>{let o=C({...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"?X(o):Ie(r.truncateStyle.lineCount,o)})(),children:r.value})}var Ul=Go(),jl=Go(),Gl=e=>{let{gap:r=e.gap}=useContext(jo);return jsx(d,{gap:r,...e,spill:e.spill||"hidden",maxWidth:e.maxWidth||"full",children:e.children})},Yl=Yo({fontWeight:"bold",fontSize:"xs",fade:.75}),Kl=Yo({fontSize:"sm"}),W={Root:Xl,LeadingAddOn:Ul,TrailingAddOn:jl,Content:Gl,Label:Yl,Item:Kl};a();function Ql(e){let r=()=>{if(typeof e.fallback=="string"||oe__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(fe,{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:C({fontSize:e.titleFontSize??"md"})}),e.description&&jsx("span",{children:e.description,style:C({fontSize:e.descriptionFontSize??"xs",fade:.5})})]}),e.children]})]})}function es(e){return jsx(d,{...e,width:e.width??"full",spill:e.spill||"hidden",children:e.children})}var Vy={Root:Ql,Content:es};a();function rs(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(me,{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:X(C({fontSize:e.titleFontSize??"sm",fontWeight:e.titleFontWeight,fade:e.titleFade}))}),jsx("span",{children:e.description,style:X(C({fade:e.descriptionFade??.5,fontSize:e.descriptionFontSize??"xs",fontWeight:e.descriptionFontWeight}))})]})]}),e.children]})}var Gy={Root:rs,Content:d};a();function Do(e){let[r,t]=useState(e.defaultChecked??false),o=e.checked??r,n=e.checked!==void 0,i=()=>{e.onClick?.(),n||(e.onChange?.(!o),t(!o));};return jsx(d,{cursor:e.disabled?"not-allowed":"pointer",fade:e.disabled?.5:1,size:e.size,corners:e.corners??"sm",padding:e.padding??"sm",backgroundColor:o?e.accentColor||"primaryContainer":"transparent",color:e.iconColor||"onPrimaryContainer",borderColor:e.borderColor||"onSurface[0.1]",style:{boxShadow:e.disableShadow?void 0:"rgba(0, 0, 0, 0.25) 0px 2px 4px 0px inset"},onClick:e.disabled?void 0:i,children:jsx(IoMdCheckmark,{size:e.iconSize,style:{opacity:o?1:0}})})}a();a();function as(e){let{triggerRerender:r}=L(),t=C({...e,padding:e.padding||"xl",corners:e.corners||"md",gap:e.gap||"lg"}),o=({open:i})=>{e.onOpenChange?.(i);},n=()=>{e.onClose?.(),e.controller?.hide?.(),e.rerenderOnClose&&r();};if(e.controller?.isOpen!==false)return jsxs(Dialog.Root,{unmountOnExit:e.unmountOnExit,open:e.controller?.isOpen,onEscapeKeyDown:e.closeOnEscape??true?e.controller?.hide:void 0,scrollBehavior:e.scrollBehavior,onInteractOutside:e.closeOnInteractOutside??true?e.controller?.hide:void 0,placement:e.placement||"center",closeOnEscape:e.closeOnEscape,closeOnInteractOutside:e.closeOnInteractOutside,onOpenChange: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 qr=(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})})},ls=qr("Header",{fontSize:"xl",fontWeight:"bold"}),ss=qr("Body",{gap:"md"}),cs=qr("Footer",{row:true,gap:"sm"}),ds=e=>jsx(Dialog.CloseTrigger,{asChild:true,children:e.wrap?jsx("div",{...e.slotProps?.divWrapper,children:e.children}):e.children}),us=e=>jsx(Dialog.ActionTrigger,{asChild:true,children:e.children}),w={Root:as,Header:ls,Body:ss,Footer:cs,CloseTrigger:ds,ActionTrigger:us};function yh(e){let r=e.severity||"error",t=b(r,{preference:"res"});return jsxs(w.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(w.Header,{fontSize:"2xl",children:e.title}),jsxs(w.Body,{fade:.75,children:[jsx("span",{children:e.message}),e.disclaimer&&jsx(qo,{width:"full",facade:o=>o==="error"?"warning":o,hideLabel:e.hideDisclaimerLabel,severity:r,message:e.disclaimer})]}),jsxs(w.Footer,{gap:"md",children:[jsx(w.ActionTrigger,{children:jsx(x,{size:"sm",fade:.75,color:"onSurface",backgroundColor:"transparent",text:e.cancelLabel||"Cancel",onClick:e.onCancelClick})}),jsx(x,{async:true,size:"sm",text:e.action.label,backgroundColor:t,color:"white",onClick:e.action.onClick})]})]})}a();var Qr=createContext(null);function Bh(e){let r=e.sections.flatMap(h=>typeof h=="object"?h.nestedItems:h),t=e.defaultSection?r.findIndex(h=>h===e.defaultSection):0,[o,n]=useState(t>=0?t:0),{triggerRerender:i}=L(),l=T([]),s=r[o],c=Array.isArray(e.ignoredSections)?e.ignoredSections:strictArray([e.ignoredSections]),v=o<=0;e.checkCompletionOnMount&&useEffect(()=>{r.forEach((h,_)=>{u(h,_);}),i();},[]);let g=(h=l.read())=>r.filter(_=>!h.includes(_)&&!c.includes(_)),u=(h=s,_=o)=>{let B=l.read();if(!c.includes(h)){if(e.isSectionComplete(h)&&!B.includes(h))B=[...B,h];else if(!e.isSectionComplete(h)&&B.includes(h))B=B.filter((R,z)=>z!==_);else return;l.upsert(B),e.onSectionsStatusChange?.(g(B),B);}},y=h=>{u(),n(r.findIndex(_=>_===h));},S=()=>{o>=r.length-1||(u(),n(o+1));},P=()=>{v||(u(),n(o-1));};return jsx(Qr.Provider,{value:{activeSection:s,completedSections:l.read(),rawSections:e.sections},children:jsx(w.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(w.Body,{grid:true,gap:"0px",width:"full",height:"full",spill:"hidden",gridCols:".45fr 1fr",children:[jsx(ys,{title:e.title,onSectionClick:y}),jsx(hs,{hideSubmitButton:e.hideSubmitButton,sectionMapper:e.sectionMapper,previousDisabled:v,onPreviousClick:P,onNextClick:S,incompleteSections:g(),onSubmitClick:e.onSubmit})]})})})}function ys(e){let{rawSections:r,activeSection:t,completedSections:o}=useContext(Qr);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(Vr,{width:"full",items:r,isItemActive:n=>t===n,isItemCompleted:n=>o.includes(n),onItemClick:e.onSectionClick})]})}function hs(e){let{activeSection:r}=useContext(Qr),{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(p,{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(rt,{disabled:e.previousDisabled,onClick:e.onPreviousClick}),r==="Submission"?!e.hideSubmitButton&&jsx(tt,{disabled:!!e.onSubmitClick,onClick:e.onSubmitClick}):jsx(et,{onClick:e.onNextClick})]})]})}a();a();var ps=ue({preset:{text:"Save",async:true}}),ot=ps;function Mh(e){let{triggerRerender:r}=L(),t=T(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(w.Root,{rerenderOnClose:true,width:e.width,closeButtonSize:e.closeButtonSize||"md",controller:e.controller,triggerElement:e.triggerElement,onClose:()=>r(),children:[jsx(w.Header,{fontSize:"2rem",children:e.title||"Edit Form"}),jsx(w.Body,{padding:"xs",children:Object.keys(e.fields).map(l=>{let s=l,c=e.fields[s],v=t.read()?.[s]??"",g=typeof c.label=="function"?c.label(l):!c.label||c.label==="prop-name"?e?.formatFieldPropName?.(l)??l:c.label,u=y=>t.upsert(S=>({...S||{},[s]:y}));return c.options?jsx(_s,{label:g,size:e.textfieldSize,defaultValue:v,disabled:c.disabled,placeholder:c.placeholder,options:c.options,onChange:u},l):jsx(G,{width:"full",placeholder:c.placeholder,label:g,size:e.textfieldSize,defaultValue:v,disabled:c.disabled,allowedChars:c.allowedChars||e.allowedChars,onChange:u},s)})}),jsxs(w.Footer,{children:[jsx(w.ActionTrigger,{children:jsx(Ue,{fade:.5,size:o,onClick:i})}),jsx(w.ActionTrigger,{children:jsx(ot,{size:o,onClick:n})})]})]})}function _s(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 ee={sidebar:"fv-sidebar",topbar:"fv-topbar",viewer:"fv-viewer"},Ge=createContext(null);function xs(e){let r=b(e.borderColor||"outline[0.1]"),t=ce.md;return jsx(Ge.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:`"${ee.topbar} ${ee.topbar}" "${ee.sidebar} ${ee.viewer}"`,boxShadow:"rgba(0, 0, 0, 0.35) 0px 5px 15px"},children:e.children})})}function Bs(e){let{navThickness:r}=useContext(Ge),t=Cr(e.file.typeAlias);return jsxs(d,{row:true,align:"center",children:[t&&jsx(t.filled,{style:C({size:r||e.styles?.icon?.size,color:"pdf",style:{padding:C({padding:e.styles?.icon?.padding||".65rem"})?.padding}})}),jsxs(d,{asChildren:e.hideFileMetadata,children:[jsx(p,{color:e.styles?.filename?.color,fontWeight:e.styles?.filename?.fontWeight,fontSize:e.styles?.filename?.fontSize||"1rem",text:e.file.name}),!e.hideFileMetadata&&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(p,{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(p,{fade:.75,text:format("file-size",e.file.sizeInBytes)})]})]})]})}function ks(e){let{navThickness:r}=useContext(Ge),{children:t,...o}=e;return jsx(d,{...o,row:true,id:ee.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:ee.topbar},children:e.children})}var rn=createContext(null);function ws(e){let{children:r,onOptionClick:t,...o}=e,{navThickness:n}=useContext(Ge);return jsx(rn.Provider,{value:{onOptionClick:i=>e.onOptionClick?.(i)},children:jsx(d,{...o,id:ee.sidebar,height:"full",width:n,align:"center",gap:o.gap||"md",padding:["md",["top","bottom"]],style:{...o.style,gridArea:ee.sidebar},children:e.children})})}function Ds(e){let{onOptionClick:r}=useContext(rn),t=()=>{e.onClick?.(),r(e.label);};return jsx(Te,{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 Ts(e){let{borderColor:r,corners:t}=useContext(Ge),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(`#${ee[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:ee.viewer,boxShadow:"rgba(50, 50, 93, 0.25) 0px 30px 60px -12px inset, rgba(0, 0, 0, 0.3) 0px 18px 36px -18px inset"},children:e.children})}function Es(e){let r=e.thickness||"0.0104in",t=e.length||"70%",o={horizontal:{height:r,width:t},vertical:{height:t,width:r}}[e.orientation||"vertical"];return jsx(d,{...o,backgroundColor:e.color||"outline[0.1]"})}var Uh={Root:xs,Sidebar:ws,SidebarOption:Ds,Topbar:ks,Viewer:Ts,Indicator:Bs,Sep:Es};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 on(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})}a();function nn(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(p,{fontSize:".85rem",text:e.item.title}),e.item.description&&jsx(p,{fade:.5,fontSize:".75rem",text:e.item.description})]})]}),jsx(IoAdd,{size:"1.25rem"})]})}a();var ln=createContext(null);function Ls(e){let r=e.backgroundColor||"surfaceContainer",t=e.color||"onSurface",o=e.placement||"right-start";return jsx(ln.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(Vs,{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:b(r),color:b(t),style:C({gap:e.gap||"xs",padding:".5rem",corners:"md"}),children:Object.keys(e.items).map(n=>{let i=e.items[n];return i.subMenu?jsx(Ls,{...e,gutter:(e.gutter||0)+2,items:i.subMenu,wrapTrigger:false,children:jsx(an,{isTrigger:true,value:n})}):jsx(an,{...i,value:n})})})})})]})})}function Vs(e){return e.asChild?e.children:jsx(Portal,{children:e.children})}function an(e){let{color:r,onItemClick:t}=useContext(ln),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:b(e.backgroundColor||"transparent"),color:b(e.color||r),padding:".25rem",borderRadius:".35rem",cursor:"pointer",_hover:{transition:"all 200ms linear",backgroundColor:b(i),color:l?b(l):void 0},_active:e.sx?.[":active"]?{...C({...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();var un=createContext(null);function Tp(e){let[r,t]=useState(false),o=e.controller||fn(0),[n,i]=useState(o.defaultPage??0),l;useEffect(()=>{r?e.onTransition?.("start"):e.onTransition?.("end");},[r]),o.goTo=useCallback((g,u)=>{let y=u?.transition||"smooth",S=n;if(!(g===S||r||!u?.ignoreOutOfBoundsCheck&&!e.children[g]))if(l?.(S,g),e.onChange?.(S,g),y==="smooth"){t(true);let P=S,h=setInterval(()=>{g>S?P++:P--,i(P),P===g&&(clearInterval(h),t(false));},u?.transitionDuration||200);}else i(g);},[n,e.children,r]),o.echo=e.onEcho,o.isPageActive=useCallback(g=>g===n,[n]),o.onPageChange=useCallback(g=>{l=g;},[]),o.getActivePage=useCallback(()=>n,[n]),useEffect(()=>()=>{for(let u of Object.keys(o)){let y=u;typeof o[y]=="function"&&(o[y]=null);}l=null;},[]);let s=()=>o.goTo(n-1),c=()=>o.goTo(n+1),v=C({height:e.height,width:e.width,spill:e.spill,gap:e.gap});return jsx(un.Provider,{value:{...e,transitioning:r},children:jsxs("div",{style:{display:"flex",position:"relative",alignItems:"center",height:v.height,width:v.width??"100%",justifyContent:"center",gap:v.gap??".5rem",overflow:v.overflow,transition:"all 300ms ease-in-out",perspective:"500px",transformStyle:"preserve-3d"},children:[jsx(dn,{disabled:n<=0,inset:"left",onClick:s}),e.children.map((g,u)=>{let y=Math.sign(n-u),S=Math.abs(n-u)/3,P=Math.abs(n-u)>2;return jsx("div",{style:{position:"absolute",overflow:"hidden",opacity:
|
|
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(p,{fontSize:".85rem",text:e.item.title}),e.item.description&&jsx(p,{fade:.5,fontSize:".75rem",text:e.item.description})]})]}),jsx(IoAdd,{size:"1.25rem"})]})}a();var ln=createContext(null);function Ls(e){let r=e.backgroundColor||"surfaceContainer",t=e.color||"onSurface",o=e.placement||"right-start";return jsx(ln.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(Vs,{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:b(r),color:b(t),style:C({gap:e.gap||"xs",padding:".5rem",corners:"md"}),children:Object.keys(e.items).map(n=>{let i=e.items[n];return i.subMenu?jsx(Ls,{...e,gutter:(e.gutter||0)+2,items:i.subMenu,wrapTrigger:false,children:jsx(an,{isTrigger:true,value:n})}):jsx(an,{...i,value:n})})})})})]})})}function Vs(e){return e.asChild?e.children:jsx(Portal,{children:e.children})}function an(e){let{color:r,onItemClick:t}=useContext(ln),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:b(e.backgroundColor||"transparent"),color:b(e.color||r),padding:".25rem",borderRadius:".35rem",cursor:"pointer",_hover:{transition:"all 200ms linear",backgroundColor:b(i),color:l?b(l):void 0},_active:e.sx?.[":active"]?{...C({...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();var un=createContext(null);function Tp(e){let[r,t]=useState(false),o=e.controller||fn(0),[n,i]=useState(o.defaultPage??0),l;useEffect(()=>{r?e.onTransition?.("start"):e.onTransition?.("end");},[r]),o.goTo=useCallback((g,u)=>{let y=u?.transition||"smooth",S=n;if(!(g===S||r||!u?.ignoreOutOfBoundsCheck&&!e.children[g]))if(l?.(S,g),e.onChange?.(S,g),y==="smooth"){t(true);let P=S,h=setInterval(()=>{g>S?P++:P--,i(P),P===g&&(clearInterval(h),t(false));},u?.transitionDuration||200);}else i(g);},[n,e.children,r]),o.echo=e.onEcho,o.isPageActive=useCallback(g=>g===n,[n]),o.onPageChange=useCallback(g=>{l=g;},[]),o.getActivePage=useCallback(()=>n,[n]),useEffect(()=>()=>{for(let u of Object.keys(o)){let y=u;typeof o[y]=="function"&&(o[y]=null);}l=null;},[]);let s=()=>o.goTo(n-1),c=()=>o.goTo(n+1),v=C({height:e.height,width:e.width,spill:e.spill,gap:e.gap});return jsx(un.Provider,{value:{...e,transitioning:r},children:jsxs("div",{style:{display:"flex",position:"relative",alignItems:"center",height:v.height,width:v.width??"100%",justifyContent:"center",gap:v.gap??".5rem",overflow:v.overflow,transition:"all 300ms ease-in-out",perspective:"500px",transformStyle:"preserve-3d"},children:[!e.hideControls&&jsx(dn,{disabled:n<=0,inset:"left",onClick:s}),e.children.map((g,u)=>{let y=Math.sign(n-u),S=Math.abs(n-u)/3,P=Math.abs(n-u)>2;return jsx("div",{style:{position:"absolute",overflow:"hidden",opacity:u!==n&&e.hideInactivePages?0:1,transition:"all 0.3s ease-out",flexGrow:e.childFlexGrow??1,display:P?"none":"flex",justifyContent:"center",alignItems:"center",transform:`
|
|
21
21
|
scaleY(calc(1 + ${S} * -0.4))
|
|
22
22
|
translateZ(calc(${S} * -10rem))
|
|
23
|
-
translateX(calc(${y} * -5rem))`,filter:`blur(calc(${S} * .5rem))`,boxShadow:"rgba(0, 0, 0, 0.35) 0px 5px 15px"},children:typeof g=="function"?jsx(g,{isActive:u===n}):g},u)}),jsx(dn,{inset:"right",disabled:!hasIndex(e.children,n+1),onClick:c})]})})}function dn(e){let r=useContext(un),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 Sr=createContext(null);function Te(e){let r=T(e.open??false),{triggerRerender:t}=L(),o=`--${v4()}`,n=useRef(null),i=useRef(null),l=oe__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 v=e.placement||"bottom-left",g=["top","right","bottom","left"].includes(v),u=g?{positionArea:v}:Ks(e.anchorPoint||"top-left",Ys(v));if(!e.visibleOnScroll){let S=qt(n.current);S&&S.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 y={top:"bottom",right:"left",bottom:"top",left:"right"}[v.split("-")[0]];Object.assign(n.current?.style,{position:"absolute",positionAnchor:o,insetArea:e.insetArea,overflow:"hidden",[`margin-${y}`]:e.offset??".25rem",...u,...e.positionFallbacks?{positionTryFallbacks:e.positionFallbacks}:{},...C({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:e.boxShadow||"rgba(0, 0, 0, 0.35) 0px 5px 15px",scrollbarWidth:"thin"}})});},[]),useEffect(()=>{e.open&&n.current?.showPopover();let v=e.displayAction||"click";if(n.current?.addEventListener("beforetoggle",g=>{let u=g.newState==="open";u?e.onOpen?.():e.onClose?.(),e.onOpenChange?.(u),r.upsert(u),!u&&e.rerenderOnClose&&t();}),v==="click")i.current?.addEventListener("click",()=>{c(()=>n.current?.togglePopover());});else if(v==="hover"){let g,y=()=>{g&&(g=null),c(()=>n.current?.hidePopover(),"close");};i.current?.addEventListener("mouseover",()=>{c(()=>n.current?.showPopover(),"open");}),i.current?.addEventListener("mouseleave",()=>{e.allowInteractions?g=setTimeout(y,20):y();}),e.allowInteractions&&(n.current?.addEventListener("mouseenter",()=>{g&&clearTimeout(g);}),n.current?.addEventListener("mouseleave",y));}},[]);let s=(v,g)=>v==="match-anchor"?getComputedStyle(i.current)?.width:v??g,c=(v,g)=>{let u=200;typeof e.delay=="number"?u=e.delay:e.delay&&g in e.delay&&(u=e.delay[g]),setTimeout(v,u);};return jsxs(Sr.Provider,{value:{open:()=>{n.current?.showPopover();},close:()=>{n.current?.hidePopover();},isOpen:()=>r.read()},children:[l,jsx("div",{popover:e.displayAction==="script"?"manual":"auto",id:o,ref:n,className:"popover-transition",children:e.content})]})}var Ys=e=>{let{0:r,1:t}=e?.split("-");return t=t==="left"?"start":t==="right"?"end":t??r,{vertical:`anchor(${r})`,horizontal:`anchor(${t})`}},Ks=(e,r)=>{let{0:t,1:o}=e?.split("-");return {[t]:r.vertical,[o]:r.horizontal}};a();function Up(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 Cn(e){return jsx(Tag.Root,{opacity:e.opacity,padding:"1",color:b(e.color),height:"fit-content",flexShrink:0,display:"inline-flex",children:jsx(Tag.Label,{opacity:e.labelOpacity,children:e.label})})}a();function tC(e){let{height:r,width:t}=Zs(e.size),o=e.responsive??true,n={a4:95,a6:80}[e.size.toLowerCase()];return jsx(d,{id:e.id,spill:"hidden",backgroundColor:"paper",color:"onPaper",style:{...e.style,maxHeight:r,height:o?`${n}%`:r,width:o?void 0:t,aspectRatio:"1/sqrt(2)"},children:e.children})}var Zs=e=>({a4:{height:"297mm",width:"210mm"},a6:{height:"148mm",width:"105mm"}})[e.toLowerCase()];a();function bn(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(p,{style:{fontWeight:500},fontSize:".85rem",color:`${r[e.status]}[0.75]`,text:upperFirst(e.status)})]})}a();function gC(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 Bn=oe.forwardRef(function(r,t){let{showArrow:o,children:n,disabled:i,portalled:l=true,content:s,contentProps:c,portalRef:v,...g}=r;return i?n:jsxs(Tooltip.Root,{...g,children:[jsx(Tooltip.Trigger,{asChild:true,children:n}),jsx(Portal,{disabled:!l,container:v,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}=C({padding:e.padding||"sm",corners:e.corners||"sm",color:e.color||"onSurface",backgroundColor:e.backgroundColor||"onSurface[0.1]"});return jsx(Bn,{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?{...C(e.slotProps.spanWrapper)}:void 0,children:e.children}):e.children})}a();var ct=createContext(null);function cc(e){let r=T([]),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:b(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(ct.Provider,{value:{register:i,lineSeparatorColor:t},children:jsx(d,{grid:true,width:e.width??"fit-content",gridCols:"auto auto auto",justify:"end",style:{columnGap:e.columnGap||".5rem"},children:n})})}function dc(e){let[r,t]=useState(),{register:o}=useContext(ct),{indicator:n,leadingEl:i,trailingEl:l}=e.styles||{},{0:s,1:c}=Array.isArray(e.children)?e.children:[e.children];useEffect(()=>{let g=o();typeof g=="string"&&t(g);},[r]);let v=g=>r===g||r==="both";return jsxs(Fragment,{children:[jsx(wn,{disabled:e.disabled,style:{...i,align:i?.align||"end"},children:e.reverse?c:s}),jsxs(d,{align:"center",height:"full",children:[jsx(Dn,{hide:v("first")}),jsx(d,{style:{...C({...n||{},size:n?.size??".6rem",corners:n?.corners||"circle",backgroundColor:n?.backgroundColor||"onSurface",centerContent:n?.centerContent??true}),flexShrink:0},children:e.indicator}),jsx(Dn,{hide:v("last")})]}),jsx(wn,{disabled:e.disabled,style:l,children:e.reverse?s:c})]})}function wn(e){return jsx(d,{size:"full",style:{...C({...e.style||{},fade:e.disabled?.5:e.style?.fade}),justifyContent:"center",flexGrow:1},children:e.children})}function Dn(e){let{lineSeparatorColor:r}=useContext(ct);return jsx(d,{width:"1px",height:"full",backgroundColor:r,fade:e.hide?0:1})}var OC={Root:cc,Item:dc};a();function WC(e){let r=()=>jsx(Separator,{flex:"1",variant:e.variant,orientation:e.orientation,size:e.size,color:b(e.color)});return e.label?jsxs(HStack,{children:[["center","right"].includes(e.labelPosition)&&jsx(r,{}),jsx(Text,{flexShrink:"0",color:b(e.labelColor),children:e.label}),["center","left"].includes(e.labelPosition)&&jsx(r,{})]}):jsx(r,{})}a();a();var dt=(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=h=>typeof e.indent=="string"?e.indent:e.indent?.[h],v="md",{size:g,...u}=e,y={label:C({...e?.slotProps?.label,fade:e?.slotProps?.label?.fade||.75}),helperText:C({...e?.slotProps?.helperText}),root:C({width:e.width}),input:C({...u,width:"full",padding:{top:v,left:e.leadingContent?c("left")||s:v,right:e.trailingContent||e.showCharCounter?c("right")||s:v,bottom:v},corners:!e.corners&&e.corners!==0?".75rem":e.corners})},S=h=>{n.current.value=h,e.onChange(h,null);};useEffect(()=>{e.showCharCounter&&Object.assign(n.current?.style,{paddingRight:`calc(${getComputedStyle(i.current).width} + 7px)`});},[r,e.value]),useEffect(()=>{let h=_=>{if(e.format!=="currency")return;let B=_;if(B=B.replace(/[^0-9.]/g,"").replace(/\.{2,}/,"").split(".").filter((R,z)=>z<2).join("."),B&&takeLast(B.split(""))[0]!=="."){let R=parseFloat(B);if(!isNaN(R)){let z=new Intl.NumberFormat;S(z.format(R));}}};n.current?.addEventListener?.("beforeinput",_=>{let B=_.data,R=e.format==="currency"?/[0-9.]/:e.allowedChars||"all";R==="all"||Array.isArray(R)&&R.includes("all")||B===null||(!Array.isArray(R)&&!dt(B,R)||Array.isArray(R)&&R.some(z=>!dt(B,z)))&&_.preventDefault();}),n.current?.addEventListener?.("paste",_=>{h(_.target.value);}),n.current?.addEventListener?.("input",_=>{h(_.target.value);});},[n.current]);let P=h=>{e.onChange?.(h,void 0),e.onPasteClick?.(h);};return jsxs(Field.Root,{required:e.required,disabled:e.disabled,style:y.root,children:[e.label&&jsxs(Field.Label,{style:y.label,children:[e.label," ",jsx(Field.RequiredIndicator,{})]}),jsx(Cc,{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(p,{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:g,zIndex:1,variant:e.variant,onKeyDown:h=>{h.key==="Enter"?e.onEnterKeyPressed?.():h.key==="Escape"&&e.onEscapeKeyPressed?.();},value:e.value??r,overflow:"hidden",style:y.input,onFocus:e.onFocus,onBlur:e.onBlur,css:{"--focus-color":b(e.focusColor||"primary")},_placeholder:e.slotProps?.placeholder?.color?{color:b(e.slotProps.placeholder.color)}:void 0,onChange:h=>{let _=h.currentTarget.value;e.validateInput?.(_)!==false&&(e.onChange?.(_,h),o||t(_));},placeholder:e.placeholder})})}),e.helperText&&jsx(Field.HelperText,{style:y.helperText,children:e.helperText})]})}function Cc(e){return !e.useCopy&&!e.usePaste?e.children:jsxs("div",{style:{display:"flex",alignItems:"center",gap:de.sm,width:"100%"},children:[e.children,e.useCopy&&jsx(ze,{iconOnly:e.slotProps?.copyButton?.iconOnly,inputRef:e.elementRef}),e.usePaste&&jsx(zn,{iconOnly:e.slotProps?.pasteButton?.iconOnly,inputRef:e.elementRef,onClick:e.onPaste})]})}a();function qo(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:b(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(p,{fontWeight:"bold",fontSize:"xs",text:(e.facade?.(e.severity)||e.severity).toUpperCase()})]}),jsx("span",{ref:c=>{c&&t(Zt(c));},style:C({fontSize:e.fontSize||"sm",fade:e.hideLabel?1:.75,style:{paddingLeft:e.hideLabel?void 0:`calc(${i} + ${C({gap:l}).gap})`}}),children:e.message})]})}a();a();a();a();function In(e){return {FlyLeavingBox:xc}[e]}var gt=createContext(null);function wc(e){let r=T(e.attachments||[]),{triggerRerender:t}=L(),o=()=>{e.onClose?.(),e.rerenderOnClose&&t();};return jsx(gt.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(w.Root,{onClose:o,unmountOnExit:e.unmountOnExit,maxHeight:"30rem",width:"27rem",scrollBehavior:"inside",triggerElement:e.triggerElement,controller:e.controller,spill:"hidden",children:[jsx(w.Header,{style:{flexShrink:0},fontSize:"xxl",children:"Attachments"}),jsx(w.Body,{size:"full",padding:"sm",spill:"hidden",children:isEmpty(r.read())?jsx(Ec,{}):jsx(Dc,{})})]})})}function Dc(){let e=useContext(gt),r=T(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:u})=>u.toLowerCase().includes(t.toLowerCase())):n,s=isEmpty(l)&&!!t.trim(),c=u=>{i(y=>y.filter(({uid:S})=>S!==u.uid)),e?.onAttachmentDeleted?.(u),e?.attachmentsEventListener?.("delete",u);},v=(u,y)=>{let S=sanitizeLocalFile(y[0]);i([...n,S]),e?.onAttachmentAdded?.(S),e?.attachmentsEventListener("add",S);},g=u=>{e?.onOpenAttachment?.(u),e?.attachmentsEventListener?.("open",u);};return jsxs(Fragment,{children:[jsx(ht,{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((u,y,S)=>jsx(Tc,{scrollIntoView:r.read()===false&&y===S.length-1,value:u,hideDeleteButton:e.hideDeleteButton,hideOpenAttachmentButton:e.hideOpenAttachmentButton,disableDelete:typeof e?.deleteDisabled=="function"?e.deleteDisabled(u):e?.deleteDisabled,disableOpen:typeof e?.openDisabled=="function"?e.openDisabled(u):e?.openDisabled,onDelete:c,onOpen:g},u.uid))}),!e.hideUploadButton&&jsx(er,{getFilePath:e?.getFilePath,disabled:e?.uploadDisabled,fileClass:"attachment",size:"xs",width:"full",onAccept:v})]})}function Tc(e){let{typeAlias:r,path:t,name:o,sizeInBytes:n}=e.value,i=Cr(r);return jsxs(W.Root,{corners:"md",width:"full",sx:{cursor:"default",overflow:"hidden",transition:"all 300ms linear",":hover":{backgroundColor:"outline[0.1]"}},children:[jsx(W.LeadingAddOn,{size:"2rem",aspectRatio:1,color:r,padding:"sm",corners:"md",backgroundColor:"onSurface[0.1]",style:{flexShrink:0},children:r==="img"&&t.trim()?jsx(fe,{src:t.trim(),size:"full",corners:"md",spill:"hidden"}):jsx(i.outlined,{size:"100%"})}),jsxs(W.Content,{gap:"sm",width:"full",children:[jsx(W.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(p,{fontWeight:"bold",text:r.toUpperCase()}),jsx(d,{size:".25rem",corners:"circle",backgroundColor:"onSurface"}),jsx(p,{fade:.5,text:format("file-size",n)})]})]}),(!e.hideDeleteButton||!e.hideOpenAttachmentButton)&&jsxs(W.TrailingAddOn,{row:true,gap:"sm",align:"center",children:[!e.hideOpenAttachmentButton&&jsx(yt,{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 Ec(){let e=useContext(gt);return jsxs(hr.Root,{children:[jsx(hr.Indicator,{size:"7rem",disableFade:true,element:jsx(fe,{spill:"hidden",size:"full",src:In("FlyLeavingBox")})}),jsx(hr.Content,{title:"Attachments not found",description:"Upload an attachment and it will appear here."}),!e.hideUploadButton&&jsx(er,{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 vt=wc;function zc(e){let r=T(Array.isArray(e.attachments)?e.attachments:[]),{triggerRerender:t}=L(),o=n=>{r.upsert(n);};return jsx(Pr,{tooltip:"Attachments",placement:"right",children:jsx(Uo,{circleChild:true,asChild:!e.attachments,badge:jsx(on,{content:typeof e.attachments=="number"?e.attachments:r.read().length}),children:jsx(Oc,{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 Oc(e){let{asChild:r,children:t,unmountOnExit:o,onAttachmentsChange:n,onClose:i,...l}=e;return r?t:jsx(vt,{...l,unmountOnExit:o,triggerElement:t,onAttachmentsChange:n,onClose:i})}var pt=zc;a();var Ac=ue({preset:{text:"Cancel",leadingEl:null,trailingEl:null},optional:{backgroundColor:"transparent",color:"onSurface",fade:.75}}),Ue=Ac;a();function Vc(e){return jsx(x,{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=Vc;a();function Nc(e){let{iconOnly:r,...t}=e;return jsx(x,{...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=Nc;a();function Yc(e){let r=T(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 Kc=Yc;a();function qc(e){return jsx(x,{disabled:e.disabled,text:"Next",backgroundColor:"tertiaryContainer",color:"onTertiaryContainer",onClick:e.onClick})}var et=qc;a();function ed(e){return jsx(x,{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 yt=ed;a();function od(e){return jsx(x,{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 nd=od;a();function ld(e){let r=jsx(x,{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(Ct,{triggerElement:r,options:e.options}):r}var sd=ld;a();function cd(e){return jsx(x,{disabled:e.disabled,border:"onSurface[0.15]",color:"onSurface",backgroundColor:"transparent",text:"Previous",onClick:e.onClick})}var rt=cd;a();function fd(e){return jsx(x,{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 _t=fd;a();function md(e){return jsx(x,{async:true,disabled:e.disabled,text:`Submit ${e.class||""}`.trim(),onClick:e.onClick})}var tt=md;a();function yd(e){return jsx(x,{padding:"sm",gap:"sm",size:"xs",leadingEl:jsx(MdVerifiedUser,{}),backgroundColor:"primaryContainer",color:"onPrimaryContainer",text:"Verify",onClick:e.onClick})}var bt=yd;a();function pd(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:Kt({backgroundColor:e.backgroundColor||"onSurface",borderColor:e.wireColor||"surface[0.25]",tileSize:"1.5rem"})},children:[jsxs(d,{gap:"sm",color:"inherit",children:[e.label&&jsx(p,{fade:.75,fontSize:e.slotProps?.label?.fontSize||"sm",text:e.label,color:"inherit"}),jsxs(d,{row:true,align:"end",gap:"sm",children:[jsx(p,{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(p,{fontWeight:"bold",fade:.5,fontSize:e.slotProps?.currency?.fontSize||"sm",text:t})]})]}),e.children]})}var Cd=pd;a();function Sd(e){return jsxs(W.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(W.LeadingAddOn,{size:"2rem",padding:"sm",centerContent:true,corners:"md",backgroundColor:e.indicatorBackgroundColor||"surface[0.1]",style:{flexShrink:0},children:e.receiptPath?jsx(fe,{corners:"md",src:e.receiptPath,size:"full",spill:"hidden"}):jsx(TfiReceipt,{size:"100%"})}),jsxs(W.Content,{width:"full",gap:"xs",children:[jsx(W.Label,{value:"Your receipt",fade:.75,truncateStyle:"ellipsis"}),jsx(W.Item,{value:e.receiptName||(e.receiptPath?inferFilename(e.receiptPath):"unknown"),truncateStyle:"ellipsis"})]}),!e.hideDeleteButton&&jsx(W.TrailingAddOn,{children:jsx(Qe,{iconOnly:true,iconVariant:e.deleteIconVariant,iconSize:e.deleteButtonSize,backgroundColor:"transparent",color:"delete",onClick:e.onDeleteClick})})]})}var Pd=Sd;a();function Fd(e){let[r,t]=useState(e.selectedDate||new Date),o=T(r),n=e.minDate==="today"?new Date:Un(e.minDate)||new Date("Jan 1, 1920"),i=e.maxDate==="today"?new Date:!e.maxDate||e.maxDate==="end-of-year"?zd():Un(e.maxDate),l=u=>{t(u),e.onDateSelected?.(u);},s=u=>u.toDateString()===r.toDateString(),c=u=>u.toDateString()===new Date().toDateString(),v=u=>{let y=o.read();return y.getMonth()===u.getMonth()&&Id(u.getDate(),y.getMonth())},g=u=>o.upsert(u);return jsx(wd,{inline:true,required:e.required,allowSameDay:e.allowSameDay,minDate:n,maxDate:i,onMonthChange:g,onYearChange:g,renderCustomHeader:u=>jsx(Rd,{...u,minDate:n,maxDate:i}),form:e.formId,selected:r,onChange:l,calendarClassName:"calendar",weekDayClassName:()=>"calendar-week-day",dayClassName:u=>["calendar-date",s(u)?"selected":"unselected",c(u)?"today":"",v(u)?"":"out-of-bounds",Od(u,i)?"excluded":""].join(" ")})}function Rd(e){let r=["January","February","March","April","May","June","July","August","September","October","November","December"],t=r.filter((c,v)=>{let g=e.date.getFullYear();return g===e.minDate.getFullYear()?v>=e.minDate.getMonth():g===e.maxDate.getFullYear()?v<=e.maxDate.getMonth():true}),o=r[e.date.getMonth()],n=c=>{e.changeMonth(r.findIndex(v=>v===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(Xn,{label:o,isSelected:c=>o===c,options:t.map(c=>({value:c})),onOptionClick:n}),jsx(Xn,{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 Xn(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 Un=e=>{if(e)return e instanceof Date?e:new Date(e)};var zd=()=>{let e=new Date;return e.setMonth(11),e.setDate(31),e};var Od=(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},Id=(e,r)=>{let t=new Date;return t.setMonth(r),t.setDate(e),t.getMonth()===r};var Bt=memo(Fd);a();a();var Ad=ue({preset:{text:"Done"},optional:{backgroundColor:"onSurface",color:"surface"}}),jn=Ad;function Md(e){let r=T(null),{controller:t,triggerElement:o,backdropBlur:n,backgroundColor:i,...l}=e,s=e.actionButtonSize||"xs",c=u=>{r.upsert(u),e.onDateSelected?.(u);},v=()=>{let u=r.read();u&&e.onDoneClick?.(u);},g=u=>{e.onOpenChange?.(u);};return jsxs(w.Root,{hideCloseButton:true,onOpenChange:g,width:"max-content",controller:t,triggerElement:o,backgroundColor:i||"surface[0.25]",backdropBlur:n||".5rem",children:[e.title&&jsx(w.Header,{fontSize:e.titleFontSize,children:e.title}),jsx(w.Body,{children:jsx(Bt,{...l,selectedDate:e.selectedDate||r.read(),onDateSelected:c})}),jsxs(w.Footer,{children:[jsx(w.ActionTrigger,{children:jsx(Ue,{size:s,fade:.5})}),jsx(w.ActionTrigger,{children:jsx(jn,{size:s,onClick:v})})]})]})}var Ld=Md;a();function Jd(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(w.Root,{triggerElement:e.triggerElement,controller:e.controller,width:"22rem",children:[jsx(w.Header,{children:"Payment Options"}),jsx(w.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(p,{width:"full",fontSize:"sm",text:i.label}),i.description&&jsx("span",{children:i.description,style:{opacity:.75,fontSize:Y.xs}})]}),i.dropDownContent&&jsx(o,{})]}),i.dropDownContent&&r?.index===l&&jsx(n,{content:i.dropDownContent})]}),c]})})})]})}var Yn=e=>e,kP=e=>Yn({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}}),wP=()=>Yn({icon:RiSecurePaymentFill,label:"In App Payment",disabled:true,variables:{}}),Ct=Jd;a();var Kn=createContext(null);function kt(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"),c={title:C({fontSize:e.titleFontSize||"lg"}),description:C({fontSize:e.descriptionFontSize||"sm",fade:.5})},v=({fontSize:g,lineHeight:u,opacity:y})=>({fontSize:g,lineHeight:u,opacity:y});return jsx(Kn.Provider,{value:{color:i},children:jsxs(w.Root,{onClose:e.onClose,controller:r,width:e.width,minWidth:e.minWidth,maxWidth:e.maxWidth??"25rem",gap:"sm",unmountOnExit:e.unmountOnExit,borderColor:e.disableColorIndicator?void 0:[i,"left"],children:[jsxs(w.Body,{grid:true,gridCols:"auto 1fr",gap:"lg",children:[jsx(l,{color:b(i),size:typeof e.indicatorSize=="function"?e.indicatorSize(t?"success":"error"):e.indicatorSize??"2.75rem"}),jsxs(d,{width:"full",gap:"sm",spill:"hidden",padding:["md","top"],children:[jsx("span",{style:v(c.title),children:o}),jsx("span",{style:v(c.description),children:n})]})]}),jsxs(w.Footer,{row:true,gap:"md",align:"center",children:[jsx(w.ActionTrigger,{children:jsx(x,{size:"xs",backgroundColor:s?"transparent":"onSurface[0.1]",color:"onSurface[0.75]",text:"Dismiss",onClick:r.hide})}),s?jsx(Qd,{...s}):void 0]})]})})}function Qd(e){let{color:r}=useContext(Kn);return jsx(x,{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 qn=e=>r=>({disabled:r.disabled,async:true,label:e,leadingIcon:GrRotateLeft,onClick:r.onClick});kt.tryAgainButton=qn("Try Again");kt.retryButton=qn("Retry");var kr=kt;a();var wt="onPaper[0.1]",wr=", ";function tu(e){let r=T(typeof e.disableSend=="boolean"?e.disableSend:!!e.onSendClick),t=Qn(),o=T({subject:e.subject??"",body:e.body||"",recipients:e.recipients?.join?.(wr)??"",attachments:e.attachments||[]}),n=(s,c)=>{o.upsert(v=>({...v,[s]:c}));},i=()=>strictArray(o.read().recipients.split(wr)),l=async()=>{let{subject:s,body:c,attachments:v}=o.read(),g=await e.onSendClick({subject:s,body:{text:c,html:e.bodyToHtml?.(c)},recipients:i(),attachments:v});if(typeof g!="object")return;let{error:u,response:y}=g;if(typeof e.disableSend=="function"&&r.upsert(e.disableSend(g)),u)return t.show({error:u});y!=="success"?t.show({response:y}):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(kr,{unmountOnExit:true,disableColorIndicator:e.slotProps?.taskResultDialog?.disableColorIndicator,controller:t,indicator:"mail",actionButton:s=>s==="succes"?void 0:kr.tryAgainButton({disabled:r.read(),onClick:l})}),e.readOnly&&o.read().recipients?jsx(nu,{recipients:i()}):jsx(ou,{readOnly:e.readOnly,recipients:i(),onChange:s=>n("recipients",s)}),jsx(iu,{subject:o.read().subject,readOnly:e.readOnly,onChange:s=>n("subject",s)}),jsxs(d,{size:"full",gap:"sm",spill:"hidden",children:[jsx(au,{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(pt,{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(_t,{size:"2xs",disabled:r.read(),onClick:l})]})]})]})}function ou(e){let[r,t]=useState(false),o=n=>jsx(p,{text:n.value,cursor:"not-allowed",sx:{":hover":{textDecoration:"underline"}}});return jsx(Zn,{readOnly:e.readOnly,placeholder:"Recipients",defaultValue:e.recipients.join(wr),onFocus:e.readOnly?void 0:()=>t(true),onBlur:e.readOnly?void 0:()=>t(false),autoFocus:r,leadingContent:r?jsx(p,{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 nu(e){return jsxs(d,{width:"full",grid:true,gridCols:"1fr auto",gap:"md",justify:"space-between",borderColor:[wt,"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(me,{size:"2xs",backgroundColor:"sendBlue[0.25]",color:"sendBlue"}),jsx(p,{ellipsis:true,text:r})]}))}),jsx(Dt,{textToCopy:e.recipients.join(wr)})]})}function iu(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:[wt,"bottom"],children:[jsx(Zn,{disableSepColor:r,placeholder:"Subject",defaultValue:e.subject,readOnly:e.readOnly,onChange:e.onChange}),r&&jsx(Dt,{textToCopy:e.subject})]})}function au(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:`${b("onPaper")} transparent`,padding:".6rem",width:"100%",height:"100%",backgroundColor:"transparent",outline:"none",resize:"none",fontSize:Y.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(Dt,{textToCopy:e.defaultValue})})]})}function Zn(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":[wt,"bottom"],onChange:e.onChange})}function Dt(e){return jsx(ze,{iconOnly:true,iconSize:"xs",textToCopy:e.textToCopy,backgroundColor:"onPaper[0.1]",color:"onPaper",borderColor:"onPaper[0.25]"})}var lu=tu;a();a();function su(e){return jsxs(d,{row:true,gap:"md",children:[jsx(ti,{onClick:e.onNoClick}),jsx(ri,{onClick:e.onYesClick})]})}var Tt=su;function uu(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(Tt,{onNoClick:()=>{e.onNoClick?.(),e.onOptionClick?.("no");},onYesClick:()=>{e.onYesClick?.(),e?.onOptionClick?.("yes");}})]})}var fu=uu;a();function gu(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(zt,{value:r})})}):jsx(vu,{})})}function vu(){let e=r=>jsx(p,{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(p,{color:"jsonKey",text:'"JSON"'}),":",jsx(p,{color:"string",text:'"Viewer"'}),jsx(e,{value:" }"})]})})})})}var yu=["string","number","boolean"];function Ft(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(p,{color:r,text:typeof e.value=="string"?`"${e.value}"`:`${e.value}`})}function oi(e){return jsxs(Fragment,{children:[jsx(p,{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(zt,{indent:true,indentInitialBracket:true,value:r}):Array.isArray(r)?jsx(oi,{value:r}):jsx(Ft,{value:r})})),jsx(p,{color:"arrayBracket",text:"]"})]})}function zt(e){let r="1rem",t=e.indentMultiplier||2,o=e.indent?`calc(${r} * ${t})`:r,n=`calc(${o} / ${t})`;return jsxs(Fragment,{children:[jsx(p,{style:{paddingLeft:e.indentInitialBracket?n:void 0},color:"jsonBracket",text:"{"}),jsx("br",{}),Object.keys(e.value).map((i,l,s)=>{let c=i,v=e.value[c],g=()=>yu.includes(typeof v)?jsx(Ft,{value:v}):Array.isArray(v)?jsx(oi,{value:v}):typeof v=="object"?jsx(zt,{indent:true,value:v}):jsx(Ft,{value:`${v}`});return jsxs("span",{style:{paddingLeft:o,width:"100%"},children:[jsx(p,{color:"jsonKey",text:`"${c}"`})," : ",jsx(g,{}),l===s.length-1?"":",",jsx("br",{})]})}),jsx(p,{style:{paddingLeft:e.indent?n:void 0},color:"jsonBracket",text:"}"})]})}var Ot=gu;a();a();a();function bu(e){let r=getMimeTypes(distinct(strictArray(e.accepts?Array.isArray(e.accepts)?e.accepts:[e.accepts]:[...Io].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],v=[],g=[],u=y=>strictArray(y).map(S=>toObject(S,{uploadDate:"now",filepath:e.getFilePath?.(S)}));for(let y of c){if(v.length+g.length>=t)break;r.includes(y.type)?v.push(y):g.push(y);}isEmpty(v)||e.onAccept?.(v,u(v)),isEmpty(g)||e.onReject?.(g,u(g));},i=s=>{if(s.preventDefault(),!e.allowDrop||e.disabled)return;let c=[];if(s.dataTransfer.items?c=[...s.dataTransfer.items].filter(v=>v.kind==="file").map(v=>v.getAsFile()):c=[...s.dataTransfer.files],!isEmpty(c)){let v=new DataTransfer;c.forEach(g=>v.items.add(g)),n(c);}},l=()=>{e.disabled||o.current.click();};return jsxs("label",{className:e.className,style:{...C(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 ii=bu;function li(e){return r=>{let{size:t,fontSize:o,iconSize:n,fileClass:i,backgroundColor:l,accepts:s=e?.accepts,...c}=r||{};return jsx(ii,{spill:"hidden",corners:r.corners||"md",accepts:s,...c||{},allowDrop:false,children:jsx(x,{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 er=li({fileClass:"file"}),Mx=li({fileClass:"receipt",accepts:["img"]});function Du(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(p,{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(me,{size:"xl",fallback:e.fallback||IoMdImages,src:r||null}),jsx(er,{fileClass:"photo",accepts:["img"],getFilePath:e.getFilePath,onAccept:n})]})})}var Tu=Du;a();function Fu(e){let r=e.authProviders||[...Oo.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(p,{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(Ru,{provider:t,onClick:e.onAuthProviderClick}))})]})}function Ru(e){let r=(()=>{switch(e.provider){case "Google":return FcGoogle;default:return e.provider}})(),t=()=>e.onClick(e.provider);return jsx(x,{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 zu=Fu;a();a();var di={timestamp:Date.now(),status:"info",response:"Hello World!"};function Lu(e){useEffect(()=>{e.initialMessage&&(di.response=e.initialMessage);},[]);let r=[di,...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(Vu,{...t,scrollIntoView:o===lastIndex(r)},o)})})}function Vu(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:b(r[e.status])},children:`[${e.status}]`}),"\xA0",typeof e.response=="object"&&jsxs(Fragment,{children:[jsx(Cn,{labelOpacity:.75,label:e.response.tag}),"\xA0"]}),jsx("span",{style:{wordSpacing:"normal",backgroundColor:e.status==="info"?void 0:b(`${r[e.status]}[0.25]`),padding:"0px .2rem"},children:typeof e.response=="object"?e.response.message:e.response})]})}var At=Lu;function Xu(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(nn,{item:n,info:o})})}),jsx(At,{initialMessage:"Awaiting registration process...",logs:r})]})}var Uu=Xu;a();function Yu(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 ht=Yu;a();a();function qu(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(p,{fontWeight:"bold",text:camelCaseToLetter(t)+": "}),jsx("span",{style:{textDecoration:"underline",opacity:.75,fontWeight:"normal"},children:e.error[t]}),jsx("br",{})]})})})}):e.children}var Mt=qu;function ef(e){let r=T(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(Mt,{wrapChildren:true,asChild:t!=="error",error:r.read(),children:jsx(bn,{indicatorSize:".4rem",status:t})}),trailingContent:jsx(bt,{onClick:n})})}var Lt=ef;a();function of(e){return jsxs(d,{width:"full",row:true,align:"center",gap:"md",spill:"hidden",children:[jsx(me,{fallback:e.user.name,src:e.user.picture}),jsxs(d,{width:"full",spill:"hidden",fontSize:".85rem",style:{lineHeight:"1.1rem"},children:[jsx(p,{ellipsis:true,text:e.user.name}),jsx(p,{ellipsis:true,fade:"0.5",text:e.user.email})]}),jsx(IconButton,{variant:"outline",rounded:"full",size:"2xs",children:jsx(IoRemove,{})})]})}var nf=of;a();function gi(e){return r=>{let[t,o]=useState(false);return jsx(x,{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 zn=gi({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"})}}),ze=gi({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 yi(e){return r=>jsx(x,{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 yB=yi(BsPlus),hB=yi(BsDash);a();function hi(e){return r=>jsx(x,{...e.defaults,text:e.label,onClick:r.onClick})}var ri=hi({label:"Yes"}),ti=hi({label:"No",defaults:{variant:"outline"}});a();var wB=ue({preset:{leadingEl:IoMdDownload,text:"Download",trailingEl:null},optional:{backgroundColor:"sendBlue",color:"onSendBlue"}});a();a();function _f(e){let r=T(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(Lt,{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(ze,{textToCopy:o.payload}),jsx(Ot,{fullSize:true,json:o?o.payload:void 0})]})]})}var bf=_f;a();a();function Cr(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 Ci=(k=>(k.white="#FFF",k.black="#000",k.gray="#808080",k.pdf="#F40F02",k.word="#41A5EE",k.excel="#21A366",k.img="#8d481f",k.txt="#8c61a9",k.deepSkyBlue="#00BFFF",k.lightSkyBlue="#87CEFA",k.sendBlue="#0a57d0",k.onSendBlue="#c3dfff",k.book_it="#009688",k.stickyNote="#EFAD03",k.matteBlack="#28282B",k.navyBlue="#000080",k.teal="#008080",k.paper="#ffffff",k.onPaper="#28282B",k.paperVariant="#E6E6E6",k.success="#4BB543",k.hyperlink="#2979ff",k.gold="#d4af37",k.carlsbergGreen="#17B169",k.billsRed="#C60C30",k.info="#1565c0",k.error="#C60C30",k.warning="#f9a825",k.jsonKey="#D56C75",k.string="#59A779",k.number="#D19A5A",k.boolean="#56B6C2",k.jsonBracket="#FFCA1D",k.arrayBracket="#DA68A7",k.delete="#C60C30",k.pdf_table_header="#28282B",k))(Ci||{}),te=Ci;a();var Of=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)"}),J=Of;a();a();function iw(e,r){useEffect(()=>{let t=new AbortController;return e(),()=>{t.abort();}},r);}a();function dw(e,r){let t=useRef(true);useEffect(()=>{if(t.current)t.current=false;else return e()},r);}a();function pw(e,r,t){let[o,n]=useState({}),i=C(r);i={...i,...t?.inject?.()||{}};let l=document.getElementById("root")??document.body;return useEffect(()=>{t?.debug&&console.log({elementTag:e,props:r,style:o,timestamp:new Date().toLocaleTimeString()});},[o]),useEffect(()=>{let s=document.createElement(e),v=(Array.isArray(r.children)?r.children:[r.children]).map(y=>{let S=document.createElement(e);return S.innerHTML=Vf.renderToStaticMarkup(y),S});Object.assign(s.style,{...i,visibility:"hidden"}),v.forEach(y=>s.appendChild(y)),l.appendChild(s);let g=getComputedStyle(s),u=Object.keys(i).filter(y=>y in g&&typeof g[y]=="string").map(y=>{let P=g[y];return [y,y==="opacity"?P.toString():P===0?"0px":P]});n(Object.fromEntries(u)),l.removeChild(s);},[r]),{style:o}}a();function Qn(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)}}a();a();var Ht=class extends EventTarget{},Wf=new Ht,Fr=Wf;function Dw(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 Fr.addEventListener(e,i),()=>{Fr.removeEventListener(e,o.current.get(e)),o.current.delete(e);}},[e,n]),{data:r,emit:useCallback((i,l={skipRender:true})=>{n.current=!!l?.skipRender,Fr.dispatchEvent(new CustomEvent(e,{detail:i}));},[e]),addListener:useCallback(i=>{o.current.set(e,i);},[e])}}a();function T(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,v)=>v<l.length?l[v]!==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;}}}a();function fn(e=0){return {defaultPage:e,goTo:()=>null,echo:()=>null,getActivePage:()=>null,isPageActive:()=>null,onPageChange:()=>null}}a();function Fo(){return useContext(Sr)}a();function L(){let[,e]=useState(false);return {triggerRerender:()=>e(r=>!r)}}a();function Xw(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);}}]}a();export{pt as AttachmentsButton,vt as AttachmentsDialog,me as Avatar,Uo as Badge,x as BasicButton,d as BasicDiv,fe as BasicImg,Vr as BasicOl,Wr as BasicOption,He as BasicSelect,p as BasicSpan,qa as BasicTable,Bt as Calendar,Ld as CalendarDialog,Ue as CancelButton,W as Card,Do as Checkbox,te as ColorResources,yh as ConfirmationDialog,ze as CopyButton,J as CssColors,ce as CssShapes,de as CssSpacing,Qe as DeleteButton,w as Dialog,qo as Disclaimer,wB as DownloadButton,Fv as Drawer,$c as EditButton,ny as Editable,lu as EmailComposer,hr as EmptyState,Mt as ErrorTooltip,Kc as ExpandableButton,Bh as FancyFormDialog,Gv as FileDropzone,Uh as FileViewer,Y as FontSize,on as Indicator,nn as ItemInfo,Ot as JsonViewer,bf as JwtVerifier,Vy as MediaCard,Ls as Menu,Cd as MoneyDisplayCard,hB as NegativeButton,et as NextButton,ti as NoButton,yt as OpenButton,nd as OptionsButton,_v as PageIndicator,Tp as PageSlider,tC as Paper,zn as PasteButton,sd as PaymentOptionsButton,Ct as PaymentOptionsDialog,Tu as PictureUploader,Te as Popover,yB as PositiveButton,rt as PreviousButton,Gy as ProfileCard,Pd as ReceiptCard,ot as SaveButton,ht as SearchTextField,Up as SegmentedControls,_t as SendButton,WC as Separator,zu as SignInWidget,Mh as SimpleFormDialog,bn as Status,gC as Stepper,tt as SubmitButton,Cn as Tag,Uu as TaskLogger,kr as TaskResultDialog,At as Terminal,G as TextField,OC as Timeline,Pr as Tooltip,er as UploadButton,Mx as UploadReceiptButton,nf as UserProfile,bt as VerifyButton,Lt as VerifyTextField,Ji as WavyUi,ri as YesButton,Tt as YesNoButtonGroup,fu as YesOrNoForm,C as applyBasicStyle,kP as bankTransferPaymentOption,Tm as borderRadius,Bm as buildCSS,Lm as computedCssVariable,ji as convertHexUnitTo256,km as cssTransition,Yn as definePaymentOption,Em as disabledBorderRadius,Fm as dragElement,X as ellipsis,Dm as flexCenter,Cr as getFileIcon,Zs as getPaperDim,qt as getScrollParent,Gi as hexToRgba,wP as inAppPaymentOption,Rr as isOverflown,Zt as isSpanMultiLine,Ui as isValidHex,zm as nativeEllipsis,Rm as noSpaceStyle,Mm as remAsPx,Yi as remToPx,b as resolveBasicColor,Ie as restrictLineCount,Om as rgbToRgba,Im as screenHasMaxWidth,Am as screenHasMinWidth,wm as solidBorder,Kt as tiledBackground,iw as useAsyncEffect,pw as useComputedStyle,Dw as useEventEmitter,T as useManagedRef,Qn as useModalControls,fn as usePageSliderController,Fo as usePopoverContext,dw as usePostRenderEffect,L as useRerender,Xw as useSessionStorage};
|
|
23
|
+
translateX(calc(${y} * -5rem))`,filter:`blur(calc(${S} * .5rem))`,boxShadow:e.disableShadow?void 0:"rgba(0, 0, 0, 0.35) 0px 5px 15px"},children:typeof g=="function"?jsx(g,{isActive:u===n}):g},u)}),!e.hideControls&&jsx(dn,{inset:"right",disabled:!hasIndex(e.children,n+1),onClick:c})]})})}function dn(e){let r=useContext(un),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 Sr=createContext(null);function Te(e){let r=T(e.open??false),{triggerRerender:t}=L(),o=`--${v4()}`,n=useRef(null),i=useRef(null),l=oe__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 v=e.placement||"bottom-left",g=["top","right","bottom","left"].includes(v),u=g?{positionArea:v}:Ks(e.anchorPoint||"top-left",Ys(v));if(!e.visibleOnScroll){let S=qt(n.current);S&&S.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 y={top:"bottom",right:"left",bottom:"top",left:"right"}[v.split("-")[0]];Object.assign(n.current?.style,{position:"absolute",positionAnchor:o,insetArea:e.insetArea,overflow:"hidden",[`margin-${y}`]:e.offset??".25rem",...u,...e.positionFallbacks?{positionTryFallbacks:e.positionFallbacks}:{},...C({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:e.boxShadow||"rgba(0, 0, 0, 0.35) 0px 5px 15px",scrollbarWidth:"thin"}})});},[]),useEffect(()=>{e.open&&n.current?.showPopover();let v=e.displayAction||"click";if(n.current?.addEventListener("beforetoggle",g=>{let u=g.newState==="open";u?e.onOpen?.():e.onClose?.(),e.onOpenChange?.(u),r.upsert(u),!u&&e.rerenderOnClose&&t();}),v==="click")i.current?.addEventListener("click",()=>{c(()=>n.current?.togglePopover());});else if(v==="hover"){let g,y=()=>{g&&(g=null),c(()=>n.current?.hidePopover(),"close");};i.current?.addEventListener("mouseover",()=>{c(()=>n.current?.showPopover(),"open");}),i.current?.addEventListener("mouseleave",()=>{e.allowInteractions?g=setTimeout(y,20):y();}),e.allowInteractions&&(n.current?.addEventListener("mouseenter",()=>{g&&clearTimeout(g);}),n.current?.addEventListener("mouseleave",y));}},[]);let s=(v,g)=>v==="match-anchor"?getComputedStyle(i.current)?.width:v??g,c=(v,g)=>{let u=200;typeof e.delay=="number"?u=e.delay:e.delay&&g in e.delay&&(u=e.delay[g]),setTimeout(v,u);};return jsxs(Sr.Provider,{value:{open:()=>{n.current?.showPopover();},close:()=>{n.current?.hidePopover();},isOpen:()=>r.read()},children:[l,jsx("div",{popover:e.displayAction==="script"?"manual":"auto",id:o,ref:n,className:"popover-transition",children:e.content})]})}var Ys=e=>{let{0:r,1:t}=e?.split("-");return t=t==="left"?"start":t==="right"?"end":t??r,{vertical:`anchor(${r})`,horizontal:`anchor(${t})`}},Ks=(e,r)=>{let{0:t,1:o}=e?.split("-");return {[t]:r.vertical,[o]:r.horizontal}};a();function Up(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 Cn(e){return jsx(Tag.Root,{opacity:e.opacity,padding:"1",color:b(e.color),height:"fit-content",flexShrink:0,display:"inline-flex",children:jsx(Tag.Label,{opacity:e.labelOpacity,children:e.label})})}a();function tC(e){let{height:r,width:t}=Zs(e.size),o=e.responsive??true,n={a4:95,a6:80}[e.size.toLowerCase()];return jsx(d,{id:e.id,spill:"hidden",backgroundColor:"paper",color:"onPaper",style:{...e.style,maxHeight:r,height:o?`${n}%`:r,width:o?void 0:t,aspectRatio:"1/sqrt(2)"},children:e.children})}var Zs=e=>({a4:{height:"297mm",width:"210mm"},a6:{height:"148mm",width:"105mm"}})[e.toLowerCase()];a();function bn(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(p,{style:{fontWeight:500},fontSize:".85rem",color:`${r[e.status]}[0.75]`,text:upperFirst(e.status)})]})}a();function gC(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 Bn=oe.forwardRef(function(r,t){let{showArrow:o,children:n,disabled:i,portalled:l=true,content:s,contentProps:c,portalRef:v,...g}=r;return i?n:jsxs(Tooltip.Root,{...g,children:[jsx(Tooltip.Trigger,{asChild:true,children:n}),jsx(Portal,{disabled:!l,container:v,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}=C({padding:e.padding||"sm",corners:e.corners||"sm",color:e.color||"onSurface",backgroundColor:e.backgroundColor||"onSurface[0.1]"});return jsx(Bn,{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?{...C(e.slotProps.spanWrapper)}:void 0,children:e.children}):e.children})}a();var ct=createContext(null);function cc(e){let r=T([]),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:b(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(ct.Provider,{value:{register:i,lineSeparatorColor:t},children:jsx(d,{grid:true,width:e.width??"fit-content",gridCols:"auto auto auto",justify:"end",style:{columnGap:e.columnGap||".5rem"},children:n})})}function dc(e){let[r,t]=useState(),{register:o}=useContext(ct),{indicator:n,leadingEl:i,trailingEl:l}=e.styles||{},{0:s,1:c}=Array.isArray(e.children)?e.children:[e.children];useEffect(()=>{let g=o();typeof g=="string"&&t(g);},[r]);let v=g=>r===g||r==="both";return jsxs(Fragment,{children:[jsx(wn,{disabled:e.disabled,style:{...i,align:i?.align||"end"},children:e.reverse?c:s}),jsxs(d,{align:"center",height:"full",children:[jsx(Dn,{hide:v("first")}),jsx(d,{style:{...C({...n||{},size:n?.size??".6rem",corners:n?.corners||"circle",backgroundColor:n?.backgroundColor||"onSurface",centerContent:n?.centerContent??true}),flexShrink:0},children:e.indicator}),jsx(Dn,{hide:v("last")})]}),jsx(wn,{disabled:e.disabled,style:l,children:e.reverse?s:c})]})}function wn(e){return jsx(d,{size:"full",style:{...C({...e.style||{},fade:e.disabled?.5:e.style?.fade}),justifyContent:"center",flexGrow:1},children:e.children})}function Dn(e){let{lineSeparatorColor:r}=useContext(ct);return jsx(d,{width:"1px",height:"full",backgroundColor:r,fade:e.hide?0:1})}var OC={Root:cc,Item:dc};a();function WC(e){let r=()=>jsx(Separator,{flex:"1",variant:e.variant,orientation:e.orientation,size:e.size,color:b(e.color)});return e.label?jsxs(HStack,{children:[["center","right"].includes(e.labelPosition)&&jsx(r,{}),jsx(Text,{flexShrink:"0",color:b(e.labelColor),children:e.label}),["center","left"].includes(e.labelPosition)&&jsx(r,{})]}):jsx(r,{})}a();a();var dt=(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=h=>typeof e.indent=="string"?e.indent:e.indent?.[h],v="md",{size:g,...u}=e,y={label:C({...e?.slotProps?.label,fade:e?.slotProps?.label?.fade||.75}),helperText:C({...e?.slotProps?.helperText}),root:C({width:e.width}),input:C({...u,width:"full",padding:{top:v,left:e.leadingContent?c("left")||s:v,right:e.trailingContent||e.showCharCounter?c("right")||s:v,bottom:v},corners:!e.corners&&e.corners!==0?".75rem":e.corners})},S=h=>{n.current.value=h,e.onChange(h,null);};useEffect(()=>{e.showCharCounter&&Object.assign(n.current?.style,{paddingRight:`calc(${getComputedStyle(i.current).width} + 7px)`});},[r,e.value]),useEffect(()=>{let h=_=>{if(e.format!=="currency")return;let B=_;if(B=B.replace(/[^0-9.]/g,"").replace(/\.{2,}/,"").split(".").filter((R,z)=>z<2).join("."),B&&takeLast(B.split(""))[0]!=="."){let R=parseFloat(B);if(!isNaN(R)){let z=new Intl.NumberFormat;S(z.format(R));}}};n.current?.addEventListener?.("beforeinput",_=>{let B=_.data,R=e.format==="currency"?/[0-9.]/:e.allowedChars||"all";R==="all"||Array.isArray(R)&&R.includes("all")||B===null||(!Array.isArray(R)&&!dt(B,R)||Array.isArray(R)&&R.some(z=>!dt(B,z)))&&_.preventDefault();}),n.current?.addEventListener?.("paste",_=>{h(_.target.value);}),n.current?.addEventListener?.("input",_=>{h(_.target.value);});},[n.current]);let P=h=>{e.onChange?.(h,void 0),e.onPasteClick?.(h);};return jsxs(Field.Root,{required:e.required,disabled:e.disabled,style:y.root,children:[e.label&&jsxs(Field.Label,{style:y.label,children:[e.label," ",jsx(Field.RequiredIndicator,{})]}),jsx(Cc,{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(p,{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:g,zIndex:1,variant:e.variant,onKeyDown:h=>{h.key==="Enter"?e.onEnterKeyPressed?.():h.key==="Escape"&&e.onEscapeKeyPressed?.();},value:e.value??r,overflow:"hidden",style:y.input,onFocus:e.onFocus,onBlur:e.onBlur,css:{"--focus-color":b(e.focusColor||"primary")},_placeholder:e.slotProps?.placeholder?.color?{color:b(e.slotProps.placeholder.color)}:void 0,onChange:h=>{let _=h.currentTarget.value;e.validateInput?.(_)!==false&&(e.onChange?.(_,h),o||t(_));},placeholder:e.placeholder})})}),e.helperText&&jsx(Field.HelperText,{style:y.helperText,children:e.helperText})]})}function Cc(e){return !e.useCopy&&!e.usePaste?e.children:jsxs("div",{style:{display:"flex",alignItems:"center",gap:de.sm,width:"100%"},children:[e.children,e.useCopy&&jsx(ze,{iconOnly:e.slotProps?.copyButton?.iconOnly,inputRef:e.elementRef}),e.usePaste&&jsx(zn,{iconOnly:e.slotProps?.pasteButton?.iconOnly,inputRef:e.elementRef,onClick:e.onPaste})]})}a();function qo(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:b(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(p,{fontWeight:"bold",fontSize:"xs",text:(e.facade?.(e.severity)||e.severity).toUpperCase()})]}),jsx("span",{ref:c=>{c&&t(Zt(c));},style:C({fontSize:e.fontSize||"sm",fade:e.hideLabel?1:.75,style:{paddingLeft:e.hideLabel?void 0:`calc(${i} + ${C({gap:l}).gap})`}}),children:e.message})]})}a();a();a();a();function In(e){return {FlyLeavingBox:xc}[e]}var gt=createContext(null);function wc(e){let r=T(e.attachments||[]),{triggerRerender:t}=L(),o=()=>{e.onClose?.(),e.rerenderOnClose&&t();};return jsx(gt.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(w.Root,{onClose:o,unmountOnExit:e.unmountOnExit,maxHeight:"30rem",width:"27rem",scrollBehavior:"inside",triggerElement:e.triggerElement,controller:e.controller,spill:"hidden",children:[jsx(w.Header,{style:{flexShrink:0},fontSize:"xxl",children:"Attachments"}),jsx(w.Body,{size:"full",padding:"sm",spill:"hidden",children:isEmpty(r.read())?jsx(Ec,{}):jsx(Dc,{})})]})})}function Dc(){let e=useContext(gt),r=T(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:u})=>u.toLowerCase().includes(t.toLowerCase())):n,s=isEmpty(l)&&!!t.trim(),c=u=>{i(y=>y.filter(({uid:S})=>S!==u.uid)),e?.onAttachmentDeleted?.(u),e?.attachmentsEventListener?.("delete",u);},v=(u,y)=>{let S=sanitizeLocalFile(y[0]);i([...n,S]),e?.onAttachmentAdded?.(S),e?.attachmentsEventListener("add",S);},g=u=>{e?.onOpenAttachment?.(u),e?.attachmentsEventListener?.("open",u);};return jsxs(Fragment,{children:[jsx(ht,{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((u,y,S)=>jsx(Tc,{scrollIntoView:r.read()===false&&y===S.length-1,value:u,hideDeleteButton:e.hideDeleteButton,hideOpenAttachmentButton:e.hideOpenAttachmentButton,disableDelete:typeof e?.deleteDisabled=="function"?e.deleteDisabled(u):e?.deleteDisabled,disableOpen:typeof e?.openDisabled=="function"?e.openDisabled(u):e?.openDisabled,onDelete:c,onOpen:g},u.uid))}),!e.hideUploadButton&&jsx(er,{getFilePath:e?.getFilePath,disabled:e?.uploadDisabled,fileClass:"attachment",size:"xs",width:"full",onAccept:v})]})}function Tc(e){let{typeAlias:r,path:t,name:o,sizeInBytes:n}=e.value,i=Cr(r);return jsxs(W.Root,{corners:"md",width:"full",sx:{cursor:"default",overflow:"hidden",transition:"all 300ms linear",":hover":{backgroundColor:"outline[0.1]"}},children:[jsx(W.LeadingAddOn,{size:"2rem",aspectRatio:1,color:r,padding:"sm",corners:"md",backgroundColor:"onSurface[0.1]",style:{flexShrink:0},children:r==="img"&&t.trim()?jsx(fe,{src:t.trim(),size:"full",corners:"md",spill:"hidden"}):jsx(i.outlined,{size:"100%"})}),jsxs(W.Content,{gap:"sm",width:"full",children:[jsx(W.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(p,{fontWeight:"bold",text:r.toUpperCase()}),jsx(d,{size:".25rem",corners:"circle",backgroundColor:"onSurface"}),jsx(p,{fade:.5,text:format("file-size",n)})]})]}),(!e.hideDeleteButton||!e.hideOpenAttachmentButton)&&jsxs(W.TrailingAddOn,{row:true,gap:"sm",align:"center",children:[!e.hideOpenAttachmentButton&&jsx(yt,{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 Ec(){let e=useContext(gt);return jsxs(hr.Root,{children:[jsx(hr.Indicator,{size:"7rem",disableFade:true,element:jsx(fe,{spill:"hidden",size:"full",src:In("FlyLeavingBox")})}),jsx(hr.Content,{title:"Attachments not found",description:"Upload an attachment and it will appear here."}),!e.hideUploadButton&&jsx(er,{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 vt=wc;function zc(e){let r=T(Array.isArray(e.attachments)?e.attachments:[]),{triggerRerender:t}=L(),o=n=>{r.upsert(n);};return jsx(Pr,{tooltip:"Attachments",placement:"right",children:jsx(Uo,{circleChild:true,asChild:!e.attachments,badge:jsx(on,{content:typeof e.attachments=="number"?e.attachments:r.read().length}),children:jsx(Oc,{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 Oc(e){let{asChild:r,children:t,unmountOnExit:o,onAttachmentsChange:n,onClose:i,...l}=e;return r?t:jsx(vt,{...l,unmountOnExit:o,triggerElement:t,onAttachmentsChange:n,onClose:i})}var pt=zc;a();var Ac=ue({preset:{text:"Cancel",leadingEl:null,trailingEl:null},optional:{backgroundColor:"transparent",color:"onSurface",fade:.75}}),Ue=Ac;a();function Vc(e){return jsx(x,{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=Vc;a();function Nc(e){let{iconOnly:r,...t}=e;return jsx(x,{...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=Nc;a();function Yc(e){let r=T(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 Kc=Yc;a();function qc(e){return jsx(x,{disabled:e.disabled,text:"Next",backgroundColor:"tertiaryContainer",color:"onTertiaryContainer",onClick:e.onClick})}var et=qc;a();function ed(e){return jsx(x,{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 yt=ed;a();function od(e){return jsx(x,{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 nd=od;a();function ld(e){let r=jsx(x,{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(Ct,{triggerElement:r,options:e.options}):r}var sd=ld;a();function cd(e){return jsx(x,{disabled:e.disabled,border:"onSurface[0.15]",color:"onSurface",backgroundColor:"transparent",text:"Previous",onClick:e.onClick})}var rt=cd;a();function fd(e){return jsx(x,{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 _t=fd;a();function md(e){return jsx(x,{async:true,disabled:e.disabled,text:`Submit ${e.class||""}`.trim(),onClick:e.onClick})}var tt=md;a();function yd(e){return jsx(x,{padding:"sm",gap:"sm",size:"xs",leadingEl:jsx(MdVerifiedUser,{}),backgroundColor:"primaryContainer",color:"onPrimaryContainer",text:"Verify",onClick:e.onClick})}var bt=yd;a();function pd(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:Kt({backgroundColor:e.backgroundColor||"onSurface",borderColor:e.wireColor||"surface[0.25]",tileSize:"1.5rem"})},children:[jsxs(d,{gap:"sm",color:"inherit",children:[e.label&&jsx(p,{fade:.75,fontSize:e.slotProps?.label?.fontSize||"sm",text:e.label,color:"inherit"}),jsxs(d,{row:true,align:"end",gap:"sm",children:[jsx(p,{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(p,{fontWeight:"bold",fade:.5,fontSize:e.slotProps?.currency?.fontSize||"sm",text:t})]})]}),e.children]})}var Cd=pd;a();function Sd(e){return jsxs(W.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(W.LeadingAddOn,{size:"2rem",padding:"sm",centerContent:true,corners:"md",backgroundColor:e.indicatorBackgroundColor||"surface[0.1]",style:{flexShrink:0},children:e.receiptPath?jsx(fe,{corners:"md",src:e.receiptPath,size:"full",spill:"hidden"}):jsx(TfiReceipt,{size:"100%"})}),jsxs(W.Content,{width:"full",gap:"xs",children:[jsx(W.Label,{value:"Your receipt",fade:.75,truncateStyle:"ellipsis"}),jsx(W.Item,{value:e.receiptName||(e.receiptPath?inferFilename(e.receiptPath):"unknown"),truncateStyle:"ellipsis"})]}),!e.hideDeleteButton&&jsx(W.TrailingAddOn,{children:jsx(Qe,{iconOnly:true,iconVariant:e.deleteIconVariant,iconSize:e.deleteButtonSize,backgroundColor:"transparent",color:"delete",onClick:e.onDeleteClick})})]})}var Pd=Sd;a();function Fd(e){let[r,t]=useState(e.selectedDate||new Date),o=T(r),n=e.minDate==="today"?new Date:Un(e.minDate)||new Date("Jan 1, 1920"),i=e.maxDate==="today"?new Date:!e.maxDate||e.maxDate==="end-of-year"?zd():Un(e.maxDate),l=u=>{t(u),e.onDateSelected?.(u);},s=u=>u.toDateString()===r.toDateString(),c=u=>u.toDateString()===new Date().toDateString(),v=u=>{let y=o.read();return y.getMonth()===u.getMonth()&&Id(u.getDate(),y.getMonth())},g=u=>o.upsert(u);return jsx(wd,{inline:true,required:e.required,allowSameDay:e.allowSameDay,minDate:n,maxDate:i,onMonthChange:g,onYearChange:g,renderCustomHeader:u=>jsx(Rd,{...u,minDate:n,maxDate:i}),form:e.formId,selected:r,onChange:l,calendarClassName:"calendar",weekDayClassName:()=>"calendar-week-day",dayClassName:u=>["calendar-date",s(u)?"selected":"unselected",c(u)?"today":"",v(u)?"":"out-of-bounds",Od(u,i)?"excluded":""].join(" ")})}function Rd(e){let r=["January","February","March","April","May","June","July","August","September","October","November","December"],t=r.filter((c,v)=>{let g=e.date.getFullYear();return g===e.minDate.getFullYear()?v>=e.minDate.getMonth():g===e.maxDate.getFullYear()?v<=e.maxDate.getMonth():true}),o=r[e.date.getMonth()],n=c=>{e.changeMonth(r.findIndex(v=>v===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(Xn,{label:o,isSelected:c=>o===c,options:t.map(c=>({value:c})),onOptionClick:n}),jsx(Xn,{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 Xn(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 Un=e=>{if(e)return e instanceof Date?e:new Date(e)};var zd=()=>{let e=new Date;return e.setMonth(11),e.setDate(31),e};var Od=(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},Id=(e,r)=>{let t=new Date;return t.setMonth(r),t.setDate(e),t.getMonth()===r};var Bt=memo(Fd);a();a();var Ad=ue({preset:{text:"Done"},optional:{backgroundColor:"onSurface",color:"surface"}}),jn=Ad;function Md(e){let r=T(null),{controller:t,triggerElement:o,backdropBlur:n,backgroundColor:i,...l}=e,s=e.actionButtonSize||"xs",c=u=>{r.upsert(u),e.onDateSelected?.(u);},v=()=>{let u=r.read();u&&e.onDoneClick?.(u);},g=u=>{e.onOpenChange?.(u);};return jsxs(w.Root,{hideCloseButton:true,onOpenChange:g,width:"max-content",controller:t,triggerElement:o,backgroundColor:i||"surface[0.25]",backdropBlur:n||".5rem",children:[e.title&&jsx(w.Header,{fontSize:e.titleFontSize,children:e.title}),jsx(w.Body,{children:jsx(Bt,{...l,selectedDate:e.selectedDate||r.read(),onDateSelected:c})}),jsxs(w.Footer,{children:[jsx(w.ActionTrigger,{children:jsx(Ue,{size:s,fade:.5})}),jsx(w.ActionTrigger,{children:jsx(jn,{size:s,onClick:v})})]})]})}var Ld=Md;a();function Jd(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(w.Root,{triggerElement:e.triggerElement,controller:e.controller,width:"22rem",children:[jsx(w.Header,{children:"Payment Options"}),jsx(w.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(p,{width:"full",fontSize:"sm",text:i.label}),i.description&&jsx("span",{children:i.description,style:{opacity:.75,fontSize:Y.xs}})]}),i.dropDownContent&&jsx(o,{})]}),i.dropDownContent&&r?.index===l&&jsx(n,{content:i.dropDownContent})]}),c]})})})]})}var Yn=e=>e,kP=e=>Yn({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}}),wP=()=>Yn({icon:RiSecurePaymentFill,label:"In App Payment",disabled:true,variables:{}}),Ct=Jd;a();var Kn=createContext(null);function kt(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"),c={title:C({fontSize:e.titleFontSize||"lg"}),description:C({fontSize:e.descriptionFontSize||"sm",fade:.5})},v=({fontSize:g,lineHeight:u,opacity:y})=>({fontSize:g,lineHeight:u,opacity:y});return jsx(Kn.Provider,{value:{color:i},children:jsxs(w.Root,{onClose:e.onClose,controller:r,width:e.width,minWidth:e.minWidth,maxWidth:e.maxWidth??"25rem",gap:"sm",unmountOnExit:e.unmountOnExit,borderColor:e.disableColorIndicator?void 0:[i,"left"],children:[jsxs(w.Body,{grid:true,gridCols:"auto 1fr",gap:"lg",children:[jsx(l,{color:b(i),size:typeof e.indicatorSize=="function"?e.indicatorSize(t?"success":"error"):e.indicatorSize??"2.75rem"}),jsxs(d,{width:"full",gap:"sm",spill:"hidden",padding:["md","top"],children:[jsx("span",{style:v(c.title),children:o}),jsx("span",{style:v(c.description),children:n})]})]}),jsxs(w.Footer,{row:true,gap:"md",align:"center",children:[jsx(w.ActionTrigger,{children:jsx(x,{size:"xs",backgroundColor:s?"transparent":"onSurface[0.1]",color:"onSurface[0.75]",text:"Dismiss",onClick:r.hide})}),s?jsx(Qd,{...s}):void 0]})]})})}function Qd(e){let{color:r}=useContext(Kn);return jsx(x,{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 qn=e=>r=>({disabled:r.disabled,async:true,label:e,leadingIcon:GrRotateLeft,onClick:r.onClick});kt.tryAgainButton=qn("Try Again");kt.retryButton=qn("Retry");var kr=kt;a();var wt="onPaper[0.1]",wr=", ";function tu(e){let r=T(typeof e.disableSend=="boolean"?e.disableSend:!!e.onSendClick),t=Qn(),o=T({subject:e.subject??"",body:e.body||"",recipients:e.recipients?.join?.(wr)??"",attachments:e.attachments||[]}),n=(s,c)=>{o.upsert(v=>({...v,[s]:c}));},i=()=>strictArray(o.read().recipients.split(wr)),l=async()=>{let{subject:s,body:c,attachments:v}=o.read(),g=await e.onSendClick({subject:s,body:{text:c,html:e.bodyToHtml?.(c)},recipients:i(),attachments:v});if(typeof g!="object")return;let{error:u,response:y}=g;if(typeof e.disableSend=="function"&&r.upsert(e.disableSend(g)),u)return t.show({error:u});y!=="success"?t.show({response:y}):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(kr,{unmountOnExit:true,disableColorIndicator:e.slotProps?.taskResultDialog?.disableColorIndicator,controller:t,indicator:"mail",actionButton:s=>s==="succes"?void 0:kr.tryAgainButton({disabled:r.read(),onClick:l})}),e.readOnly&&o.read().recipients?jsx(nu,{recipients:i()}):jsx(ou,{readOnly:e.readOnly,recipients:i(),onChange:s=>n("recipients",s)}),jsx(iu,{subject:o.read().subject,readOnly:e.readOnly,onChange:s=>n("subject",s)}),jsxs(d,{size:"full",gap:"sm",spill:"hidden",children:[jsx(au,{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(pt,{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(_t,{size:"2xs",disabled:r.read(),onClick:l})]})]})]})}function ou(e){let[r,t]=useState(false),o=n=>jsx(p,{text:n.value,cursor:"not-allowed",sx:{":hover":{textDecoration:"underline"}}});return jsx(Zn,{readOnly:e.readOnly,placeholder:"Recipients",defaultValue:e.recipients.join(wr),onFocus:e.readOnly?void 0:()=>t(true),onBlur:e.readOnly?void 0:()=>t(false),autoFocus:r,leadingContent:r?jsx(p,{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 nu(e){return jsxs(d,{width:"full",grid:true,gridCols:"1fr auto",gap:"md",justify:"space-between",borderColor:[wt,"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(me,{size:"2xs",backgroundColor:"sendBlue[0.25]",color:"sendBlue"}),jsx(p,{ellipsis:true,text:r})]}))}),jsx(Dt,{textToCopy:e.recipients.join(wr)})]})}function iu(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:[wt,"bottom"],children:[jsx(Zn,{disableSepColor:r,placeholder:"Subject",defaultValue:e.subject,readOnly:e.readOnly,onChange:e.onChange}),r&&jsx(Dt,{textToCopy:e.subject})]})}function au(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:`${b("onPaper")} transparent`,padding:".6rem",width:"100%",height:"100%",backgroundColor:"transparent",outline:"none",resize:"none",fontSize:Y.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(Dt,{textToCopy:e.defaultValue})})]})}function Zn(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":[wt,"bottom"],onChange:e.onChange})}function Dt(e){return jsx(ze,{iconOnly:true,iconSize:"xs",textToCopy:e.textToCopy,backgroundColor:"onPaper[0.1]",color:"onPaper",borderColor:"onPaper[0.25]"})}var lu=tu;a();a();function su(e){return jsxs(d,{row:true,gap:"md",children:[jsx(ti,{onClick:e.onNoClick}),jsx(ri,{onClick:e.onYesClick})]})}var Tt=su;function uu(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(Tt,{onNoClick:()=>{e.onNoClick?.(),e.onOptionClick?.("no");},onYesClick:()=>{e.onYesClick?.(),e?.onOptionClick?.("yes");}})]})}var fu=uu;a();function gu(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(zt,{value:r})})}):jsx(vu,{})})}function vu(){let e=r=>jsx(p,{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(p,{color:"jsonKey",text:'"JSON"'}),":",jsx(p,{color:"string",text:'"Viewer"'}),jsx(e,{value:" }"})]})})})})}var yu=["string","number","boolean"];function Ft(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(p,{color:r,text:typeof e.value=="string"?`"${e.value}"`:`${e.value}`})}function oi(e){return jsxs(Fragment,{children:[jsx(p,{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(zt,{indent:true,indentInitialBracket:true,value:r}):Array.isArray(r)?jsx(oi,{value:r}):jsx(Ft,{value:r})})),jsx(p,{color:"arrayBracket",text:"]"})]})}function zt(e){let r="1rem",t=e.indentMultiplier||2,o=e.indent?`calc(${r} * ${t})`:r,n=`calc(${o} / ${t})`;return jsxs(Fragment,{children:[jsx(p,{style:{paddingLeft:e.indentInitialBracket?n:void 0},color:"jsonBracket",text:"{"}),jsx("br",{}),Object.keys(e.value).map((i,l,s)=>{let c=i,v=e.value[c],g=()=>yu.includes(typeof v)?jsx(Ft,{value:v}):Array.isArray(v)?jsx(oi,{value:v}):typeof v=="object"?jsx(zt,{indent:true,value:v}):jsx(Ft,{value:`${v}`});return jsxs("span",{style:{paddingLeft:o,width:"100%"},children:[jsx(p,{color:"jsonKey",text:`"${c}"`})," : ",jsx(g,{}),l===s.length-1?"":",",jsx("br",{})]})}),jsx(p,{style:{paddingLeft:e.indent?n:void 0},color:"jsonBracket",text:"}"})]})}var Ot=gu;a();a();a();function bu(e){let r=getMimeTypes(distinct(strictArray(e.accepts?Array.isArray(e.accepts)?e.accepts:[e.accepts]:[...Io].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],v=[],g=[],u=y=>strictArray(y).map(S=>toObject(S,{uploadDate:"now",filepath:e.getFilePath?.(S)}));for(let y of c){if(v.length+g.length>=t)break;r.includes(y.type)?v.push(y):g.push(y);}isEmpty(v)||e.onAccept?.(v,u(v)),isEmpty(g)||e.onReject?.(g,u(g));},i=s=>{if(s.preventDefault(),!e.allowDrop||e.disabled)return;let c=[];if(s.dataTransfer.items?c=[...s.dataTransfer.items].filter(v=>v.kind==="file").map(v=>v.getAsFile()):c=[...s.dataTransfer.files],!isEmpty(c)){let v=new DataTransfer;c.forEach(g=>v.items.add(g)),n(c);}},l=()=>{e.disabled||o.current.click();};return jsxs("label",{className:e.className,style:{...C(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 ii=bu;function li(e){return r=>{let{size:t,fontSize:o,iconSize:n,fileClass:i,backgroundColor:l,accepts:s=e?.accepts,...c}=r||{};return jsx(ii,{spill:"hidden",corners:r.corners||"md",accepts:s,...c||{},allowDrop:false,children:jsx(x,{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 er=li({fileClass:"file"}),Mx=li({fileClass:"receipt",accepts:["img"]});function Du(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(p,{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(me,{size:"xl",fallback:e.fallback||IoMdImages,src:r||null}),jsx(er,{fileClass:"photo",accepts:["img"],getFilePath:e.getFilePath,onAccept:n})]})})}var Tu=Du;a();function Fu(e){let r=e.authProviders||[...Oo.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(p,{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(Ru,{provider:t,onClick:e.onAuthProviderClick}))})]})}function Ru(e){let r=(()=>{switch(e.provider){case "Google":return FcGoogle;default:return e.provider}})(),t=()=>e.onClick(e.provider);return jsx(x,{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 zu=Fu;a();a();var di={timestamp:Date.now(),status:"info",response:"Hello World!"};function Lu(e){useEffect(()=>{e.initialMessage&&(di.response=e.initialMessage);},[]);let r=[di,...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(Vu,{...t,scrollIntoView:o===lastIndex(r)},o)})})}function Vu(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:b(r[e.status])},children:`[${e.status}]`}),"\xA0",typeof e.response=="object"&&jsxs(Fragment,{children:[jsx(Cn,{labelOpacity:.75,label:e.response.tag}),"\xA0"]}),jsx("span",{style:{wordSpacing:"normal",backgroundColor:e.status==="info"?void 0:b(`${r[e.status]}[0.25]`),padding:"0px .2rem"},children:typeof e.response=="object"?e.response.message:e.response})]})}var At=Lu;function Xu(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(nn,{item:n,info:o})})}),jsx(At,{initialMessage:"Awaiting registration process...",logs:r})]})}var Uu=Xu;a();function Yu(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 ht=Yu;a();a();function qu(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(p,{fontWeight:"bold",text:camelCaseToLetter(t)+": "}),jsx("span",{style:{textDecoration:"underline",opacity:.75,fontWeight:"normal"},children:e.error[t]}),jsx("br",{})]})})})}):e.children}var Mt=qu;function ef(e){let r=T(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(Mt,{wrapChildren:true,asChild:t!=="error",error:r.read(),children:jsx(bn,{indicatorSize:".4rem",status:t})}),trailingContent:jsx(bt,{onClick:n})})}var Lt=ef;a();function of(e){return jsxs(d,{width:"full",row:true,align:"center",gap:"md",spill:"hidden",children:[jsx(me,{fallback:e.user.name,src:e.user.picture}),jsxs(d,{width:"full",spill:"hidden",fontSize:".85rem",style:{lineHeight:"1.1rem"},children:[jsx(p,{ellipsis:true,text:e.user.name}),jsx(p,{ellipsis:true,fade:"0.5",text:e.user.email})]}),jsx(IconButton,{variant:"outline",rounded:"full",size:"2xs",children:jsx(IoRemove,{})})]})}var nf=of;a();function gi(e){return r=>{let[t,o]=useState(false);return jsx(x,{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 zn=gi({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"})}}),ze=gi({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 yi(e){return r=>jsx(x,{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 yB=yi(BsPlus),hB=yi(BsDash);a();function hi(e){return r=>jsx(x,{...e.defaults,text:e.label,onClick:r.onClick})}var ri=hi({label:"Yes"}),ti=hi({label:"No",defaults:{variant:"outline"}});a();var wB=ue({preset:{leadingEl:IoMdDownload,text:"Download",trailingEl:null},optional:{backgroundColor:"sendBlue",color:"onSendBlue"}});a();a();function _f(e){let r=T(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(Lt,{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(ze,{textToCopy:o.payload}),jsx(Ot,{fullSize:true,json:o?o.payload:void 0})]})]})}var bf=_f;a();a();function Cr(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 Ci=(k=>(k.white="#FFF",k.black="#000",k.gray="#808080",k.pdf="#F40F02",k.word="#41A5EE",k.excel="#21A366",k.img="#8d481f",k.txt="#8c61a9",k.deepSkyBlue="#00BFFF",k.lightSkyBlue="#87CEFA",k.sendBlue="#0a57d0",k.onSendBlue="#c3dfff",k.book_it="#009688",k.stickyNote="#EFAD03",k.matteBlack="#28282B",k.navyBlue="#000080",k.teal="#008080",k.paper="#ffffff",k.onPaper="#28282B",k.paperVariant="#E6E6E6",k.success="#4BB543",k.hyperlink="#2979ff",k.gold="#d4af37",k.carlsbergGreen="#17B169",k.billsRed="#C60C30",k.info="#1565c0",k.error="#C60C30",k.warning="#f9a825",k.jsonKey="#D56C75",k.string="#59A779",k.number="#D19A5A",k.boolean="#56B6C2",k.jsonBracket="#FFCA1D",k.arrayBracket="#DA68A7",k.delete="#C60C30",k.pdf_table_header="#28282B",k))(Ci||{}),te=Ci;a();var Of=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)"}),J=Of;a();a();function iw(e,r){useEffect(()=>{let t=new AbortController;return e(),()=>{t.abort();}},r);}a();function dw(e,r){let t=useRef(true);useEffect(()=>{if(t.current)t.current=false;else return e()},r);}a();function pw(e,r,t){let[o,n]=useState({}),i=C(r);i={...i,...t?.inject?.()||{}};let l=document.getElementById("root")??document.body;return useEffect(()=>{t?.debug&&console.log({elementTag:e,props:r,style:o,timestamp:new Date().toLocaleTimeString()});},[o]),useEffect(()=>{let s=document.createElement(e),v=(Array.isArray(r.children)?r.children:[r.children]).map(y=>{let S=document.createElement(e);return S.innerHTML=Vf.renderToStaticMarkup(y),S});Object.assign(s.style,{...i,visibility:"hidden"}),v.forEach(y=>s.appendChild(y)),l.appendChild(s);let g=getComputedStyle(s),u=Object.keys(i).filter(y=>y in g&&typeof g[y]=="string").map(y=>{let P=g[y];return [y,y==="opacity"?P.toString():P===0?"0px":P]});n(Object.fromEntries(u)),l.removeChild(s);},[r]),{style:o}}a();function Qn(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)}}a();a();var Ht=class extends EventTarget{},Wf=new Ht,Fr=Wf;function Dw(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 Fr.addEventListener(e,i),()=>{Fr.removeEventListener(e,o.current.get(e)),o.current.delete(e);}},[e,n]),{data:r,emit:useCallback((i,l={skipRender:true})=>{n.current=!!l?.skipRender,Fr.dispatchEvent(new CustomEvent(e,{detail:i}));},[e]),addListener:useCallback(i=>{o.current.set(e,i);},[e])}}a();function T(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,v)=>v<l.length?l[v]!==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;}}}a();function fn(e=0){return {defaultPage:e,goTo:()=>null,echo:()=>null,getActivePage:()=>null,isPageActive:()=>null,onPageChange:()=>null}}a();function Fo(){return useContext(Sr)}a();function L(){let[,e]=useState(false);return {triggerRerender:()=>e(r=>!r)}}a();function Xw(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);}}]}a();export{pt as AttachmentsButton,vt as AttachmentsDialog,me as Avatar,Uo as Badge,x as BasicButton,d as BasicDiv,fe as BasicImg,Vr as BasicOl,Wr as BasicOption,He as BasicSelect,p as BasicSpan,qa as BasicTable,Bt as Calendar,Ld as CalendarDialog,Ue as CancelButton,W as Card,Do as Checkbox,te as ColorResources,yh as ConfirmationDialog,ze as CopyButton,J as CssColors,ce as CssShapes,de as CssSpacing,Qe as DeleteButton,w as Dialog,qo as Disclaimer,wB as DownloadButton,Fv as Drawer,$c as EditButton,ny as Editable,lu as EmailComposer,hr as EmptyState,Mt as ErrorTooltip,Kc as ExpandableButton,Bh as FancyFormDialog,Gv as FileDropzone,Uh as FileViewer,Y as FontSize,on as Indicator,nn as ItemInfo,Ot as JsonViewer,bf as JwtVerifier,Vy as MediaCard,Ls as Menu,Cd as MoneyDisplayCard,hB as NegativeButton,et as NextButton,ti as NoButton,yt as OpenButton,nd as OptionsButton,_v as PageIndicator,Tp as PageSlider,tC as Paper,zn as PasteButton,sd as PaymentOptionsButton,Ct as PaymentOptionsDialog,Tu as PictureUploader,Te as Popover,yB as PositiveButton,rt as PreviousButton,Gy as ProfileCard,Pd as ReceiptCard,ot as SaveButton,ht as SearchTextField,Up as SegmentedControls,_t as SendButton,WC as Separator,zu as SignInWidget,Mh as SimpleFormDialog,bn as Status,gC as Stepper,tt as SubmitButton,Cn as Tag,Uu as TaskLogger,kr as TaskResultDialog,At as Terminal,G as TextField,OC as Timeline,Pr as Tooltip,er as UploadButton,Mx as UploadReceiptButton,nf as UserProfile,bt as VerifyButton,Lt as VerifyTextField,Ji as WavyUi,ri as YesButton,Tt as YesNoButtonGroup,fu as YesOrNoForm,C as applyBasicStyle,kP as bankTransferPaymentOption,Tm as borderRadius,Bm as buildCSS,Lm as computedCssVariable,ji as convertHexUnitTo256,km as cssTransition,Yn as definePaymentOption,Em as disabledBorderRadius,Fm as dragElement,X as ellipsis,Dm as flexCenter,Cr as getFileIcon,Zs as getPaperDim,qt as getScrollParent,Gi as hexToRgba,wP as inAppPaymentOption,Rr as isOverflown,Zt as isSpanMultiLine,Ui as isValidHex,zm as nativeEllipsis,Rm as noSpaceStyle,Mm as remAsPx,Yi as remToPx,b as resolveBasicColor,Ie as restrictLineCount,Om as rgbToRgba,Im as screenHasMaxWidth,Am as screenHasMinWidth,wm as solidBorder,Kt as tiledBackground,iw as useAsyncEffect,pw as useComputedStyle,Dw as useEventEmitter,T as useManagedRef,Qn as useModalControls,fn as usePageSliderController,Fo as usePopoverContext,dw as usePostRenderEffect,L as useRerender,Xw as useSessionStorage};
|