@texturehq/edges 5.0.0 → 5.0.1
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/index.cjs +9 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +100 -2
- package/dist/index.d.ts +100 -2
- package/dist/index.js +9 -9
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
'use strict';var reactAriaComponents=require('react-aria-components'),Ke=require('react'),tailwindMerge=require('tailwind-merge'),jsxRuntime=require('react/jsx-runtime'),Tm=require('@phosphor-icons/react'),luxon=require('luxon'),reactVirtual=require('@tanstack/react-virtual'),rw=require('@phosphor-icons/react/ssr'),reactAria=require('react-aria'),reactStately=require('react-stately'),lucideReact=require('lucide-react'),framerMotion=require('framer-motion'),rk=require('react-ace'),reactColorful=require('react-colorful'),curve=require('@visx/curve'),shape=require('@visx/shape'),gradient=require('@visx/gradient'),group=require('@visx/group'),scale=require('@visx/scale'),d3Array=require('d3-array'),axis=require('@visx/axis'),responsive=require('@visx/responsive'),zoom=require('@visx/zoom'),yT=require('papaparse'),brush=require('@visx/brush'),pattern=require('@visx/pattern'),d3Scale=require('d3-scale'),d3Time=require('d3-time'),dateFns=require('date-fns'),date=require('@internationalized/date'),core=require('@dnd-kit/core'),sortable=require('@dnd-kit/sortable'),utilities=require('@dnd-kit/utilities'),reactDom=require('react-dom'),$M=require('react-map-gl'),server=require('react-dom/server'),fD=require('@tiptap/extension-link'),react=require('@tiptap/react'),menus=require('@tiptap/react/menus'),hD=require('@tiptap/starter-kit'),LA=require('fuse.js');var _documentCurrentScript=typeof document!=='undefined'?document.currentScript:null;function _interopDefault(e){return e&&e.__esModule?e:{default:e}}function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var Ke__namespace=/*#__PURE__*/_interopNamespace(Ke);var Tm__namespace=/*#__PURE__*/_interopNamespace(Tm);var rw__namespace=/*#__PURE__*/_interopNamespace(rw);var rk__default=/*#__PURE__*/_interopDefault(rk);var yT__default=/*#__PURE__*/_interopDefault(yT);var $M__default=/*#__PURE__*/_interopDefault($M);var fD__default=/*#__PURE__*/_interopDefault(fD);var hD__default=/*#__PURE__*/_interopDefault(hD);var LA__default=/*#__PURE__*/_interopDefault(LA);var SC=Object.create;var _c=Object.defineProperty;var wC=Object.getOwnPropertyDescriptor;var NC=Object.getOwnPropertyNames;var kC=Object.getPrototypeOf,TC=Object.prototype.hasOwnProperty;var PC=(e,t,r)=>t in e?_c(e,t,{enumerable:true,configurable:true,writable:true,value:r}):e[t]=r;var RC=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var EC=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of NC(t))!TC.call(e,n)&&n!==r&&_c(e,n,{get:()=>t[n],enumerable:!(o=wC(t,n))||o.enumerable});return e};var Sm=(e,t,r)=>(r=e!=null?SC(kC(e)):{},EC(_c(r,"default",{value:e,enumerable:true}),e));var di=(e,t,r)=>PC(e,typeof t!="symbol"?t+"":t,r);var Iu=RC((Du,Au)=>{(function(e,t){typeof define=="function"&&define.amd?define([],t):typeof Du<"u"?t():(t(),e.FileSaver={});})(Du,function(){function e(s,c){return typeof c>"u"?c={autoBom:false}:typeof c!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),c={autoBom:!c}),c.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(s.type)?new Blob(["\uFEFF",s],{type:s.type}):s}function t(s,c,l){var d=new XMLHttpRequest;d.open("GET",s),d.responseType="blob",d.onload=function(){i(d.response,c,l);},d.onerror=function(){console.error("could not download file");},d.send();}function r(s){var c=new XMLHttpRequest;c.open("HEAD",s,false);try{c.send();}catch{}return 200<=c.status&&299>=c.status}function o(s){try{s.dispatchEvent(new MouseEvent("click"));}catch{var c=document.createEvent("MouseEvents");c.initMouseEvent("click",true,true,window,0,0,0,80,20,false,false,false,false,0,null),s.dispatchEvent(c);}}var n=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:void 0,a=n.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),i=n.saveAs||(typeof window!="object"||window!==n?function(){}:"download"in HTMLAnchorElement.prototype&&!a?function(s,c,l){var d=n.URL||n.webkitURL,u=document.createElement("a");c=c||s.name||"download",u.download=c,u.rel="noopener",typeof s=="string"?(u.href=s,u.origin===location.origin?o(u):r(u.href)?t(s,c,l):o(u,u.target="_blank")):(u.href=d.createObjectURL(s),setTimeout(function(){d.revokeObjectURL(u.href);},4e4),setTimeout(function(){o(u);},0));}:"msSaveOrOpenBlob"in navigator?function(s,c,l){if(c=c||s.name||"download",typeof s!="string")navigator.msSaveOrOpenBlob(e(s,l),c);else if(r(s))t(s,c,l);else {var d=document.createElement("a");d.href=s,d.target="_blank",setTimeout(function(){o(d);});}}:function(s,c,l,d){if(d=d||open("","_blank"),d&&(d.document.title=d.document.body.innerText="downloading..."),typeof s=="string")return t(s,c,l);var u=s.type==="application/octet-stream",m=/constructor/i.test(n.HTMLElement)||n.safari,p=/CriOS\/[\d]+/.test(navigator.userAgent);if((p||u&&m||a)&&typeof FileReader<"u"){var f=new FileReader;f.onloadend=function(){var b=f.result;b=p?b:b.replace(/^data:[^;]*;/,"data:attachment/file;"),d?d.location.href=b:location=b,d=null;},f.readAsDataURL(s);}else {var g=n.URL||n.webkitURL,h=g.createObjectURL(s);d?d.location=h:location.href=h,d=null,setTimeout(function(){g.revokeObjectURL(h);},4e4);}});n.saveAs=i.saveAs=i,typeof Au<"u"&&(Au.exports=i);});});function _t(e,t=false){let[r,o]=Ke.useState(t);return Ke.useEffect(()=>{if(typeof window>"u")return;let n=window.matchMedia(e);o(n.matches);let a=i=>{o(i.matches);};return n.addEventListener("change",a),()=>{n.removeEventListener("change",a);}},[e]),r}var vn={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"};function $t(e="base"){let t=_t(`(min-width: ${vn.sm})`,e!=="base"),r=_t(`(min-width: ${vn.md})`,["md","lg","xl","2xl"].includes(e)),o=_t(`(min-width: ${vn.lg})`,["lg","xl","2xl"].includes(e)),n=_t(`(min-width: ${vn.xl})`,["xl","2xl"].includes(e)),a=_t(`(min-width: ${vn["2xl"]})`,e==="2xl"),i=!r,s=r,c="base";return a?c="2xl":n?c="xl":o?c="lg":r?c="md":t&&(c="sm"),{current:c,isSm:t,isMd:r,isLg:o,isXl:n,is2Xl:a,isMobile:i,isDesktop:s}}function st(e,t){let r=Ke.forwardRef(({size:o=24,color:n="currentColor",className:a,mirrored:i,alt:s,...c},l)=>{let d=!!s||"aria-label"in c;return jsxRuntime.jsx("svg",{ref:l,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 256 256",fill:n,className:a,transform:i?"scale(-1, 1)":void 0,"aria-hidden":d?void 0:true,role:d?"img":void 0,"aria-label":s,...c,children:t})});return r.displayName=e,r}var ws=()=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("path",{d:"M12 128h44M200 128h44",fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round"}),jsxRuntime.jsx("circle",{cx:"76",cy:"128",r:"20",fill:"none",stroke:"currentColor",strokeWidth:"16"}),jsxRuntime.jsx("circle",{cx:"180",cy:"128",r:"20",fill:"none",stroke:"currentColor",strokeWidth:"16"})]}),wm=()=>jsxRuntime.jsx("path",{d:"M166 120 88 70",fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round"}),Nm=()=>jsxRuntime.jsx("path",{d:"M162 122 92 128",fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round"}),km=()=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("path",{d:"M112 85.7 A32 32 0 1 1 144 85.7",fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round"}),jsxRuntime.jsx("circle",{cx:"128",cy:"58",r:"8",fill:"currentColor",stroke:"none"})]}),IC=st("TextureRecloser",jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("rect",{x:"36",y:"36",width:"184",height:"184",fill:"none",stroke:"currentColor",strokeWidth:"16"}),jsxRuntime.jsx("text",{x:"128",y:"126",textAnchor:"middle",dominantBaseline:"central",fontFamily:"ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif",fontSize:"140",fontWeight:"700",fill:"currentColor",stroke:"none",children:"R"})]})),FC=st("TextureFuse",jsxRuntime.jsx("path",{d:"M20 128h72q18 -84 36 0q18 84 36 0h72",fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round",strokeLinejoin:"round"})),BC=st("TextureBreaker",jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("rect",{x:"36",y:"36",width:"184",height:"184",fill:"none",stroke:"currentColor",strokeWidth:"16"}),jsxRuntime.jsx("text",{x:"128",y:"126",textAnchor:"middle",dominantBaseline:"central",fontFamily:"ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif",fontSize:"140",fontWeight:"700",fill:"currentColor",stroke:"none",children:"B"})]})),VC=st("TextureSource",jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("path",{d:"M4 128h40M212 128h40",fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round"}),jsxRuntime.jsx("circle",{cx:"128",cy:"128",r:"84",fill:"none",stroke:"currentColor",strokeWidth:"16"}),jsxRuntime.jsx("path",{d:"M92 128q18 -84 36 0q18 84 36 0",fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round",strokeLinejoin:"round"})]})),zC=st("TextureCapacitor",jsxRuntime.jsx(jsxRuntime.Fragment,{children:jsxRuntime.jsx("path",{d:"M4 128h106M146 128h106M110 72v112M146 72v112",fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round"})})),OC=st("TextureRegulator",jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("circle",{cx:"128",cy:"128",r:"92",fill:"none",stroke:"currentColor",strokeWidth:"16"}),jsxRuntime.jsx("text",{x:"128",y:"126",textAnchor:"middle",dominantBaseline:"central",fontFamily:"ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif",fontSize:"128",fontWeight:"700",fill:"currentColor",stroke:"none",children:"V"})]})),HC=st("TextureSwitch",jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(ws,{}),jsxRuntime.jsx(wm,{})]})),GC=st("TextureSwitchClosed",jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(ws,{}),jsxRuntime.jsx(Nm,{})]})),WC=st("TextureOpenPoint",jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("path",{d:"M112 52 C 74 92, 74 164, 112 204",fill:"none",stroke:"currentColor",strokeWidth:"18",strokeLinecap:"round"}),jsxRuntime.jsx("path",{d:"M144 52 C 182 92, 182 164, 144 204",fill:"none",stroke:"currentColor",strokeWidth:"18",strokeLinecap:"round"})]})),UC=st("TextureSectionalizerOpen",jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(ws,{}),jsxRuntime.jsx(wm,{}),jsxRuntime.jsx(km,{})]})),KC=st("TextureSectionalizerClosed",jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(ws,{}),jsxRuntime.jsx(Nm,{}),jsxRuntime.jsx(km,{})]})),YC=st("TextureTransformer",jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("path",{d:"M40 64H88A22 22 0 0 1 88 108A22 22 0 0 1 88 152A22 22 0 0 1 88 196H40",fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round",strokeLinejoin:"round"}),jsxRuntime.jsx("path",{d:"M216 64H168A22 22 0 0 0 168 108A22 22 0 0 0 168 152A22 22 0 0 0 168 196H216",fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round",strokeLinejoin:"round"})]})),ba={1:[128],2:[110,146],3:[92,128,164]},$c=e=>jsxRuntime.jsx("path",{d:`M24 ${e}h208`,fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round"},e),ed=e=>jsxRuntime.jsx("path",{d:`M24 ${e}h208`,fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round",pathLength:100,strokeDasharray:"20 20"},e),JC=st("TextureSinglePhaseOverheadLine",jsxRuntime.jsx(jsxRuntime.Fragment,{children:ba[1].map($c)})),XC=st("TextureTwoPhaseOverheadLine",jsxRuntime.jsx(jsxRuntime.Fragment,{children:ba[2].map($c)})),jC=st("TextureThreePhaseOverheadLine",jsxRuntime.jsx(jsxRuntime.Fragment,{children:ba[3].map($c)})),qC=st("TextureSinglePhaseUndergroundLine",jsxRuntime.jsx(jsxRuntime.Fragment,{children:ba[1].map(ed)})),QC=st("TextureTwoPhaseUndergroundLine",jsxRuntime.jsx(jsxRuntime.Fragment,{children:ba[2].map(ed)})),ZC=st("TextureThreePhaseUndergroundLine",jsxRuntime.jsx(jsxRuntime.Fragment,{children:ba[3].map(ed)})),_C=st("TextureSupportStructure",jsxRuntime.jsx("circle",{cx:"128",cy:"128",r:"40",fill:"currentColor",stroke:"none"})),xa={TextureRecloser:IC,TextureFuse:FC,TextureBreaker:BC,TextureSource:VC,TextureCapacitor:zC,TextureRegulator:OC,TextureSwitch:HC,TextureSwitchClosed:GC,TextureOpenPoint:WC,TextureSectionalizerOpen:UC,TextureSectionalizerClosed:KC,TextureTransformer:YC,TextureSinglePhaseOverheadLine:JC,TextureTwoPhaseOverheadLine:XC,TextureThreePhaseOverheadLine:jC,TextureSinglePhaseUndergroundLine:qC,TextureTwoPhaseUndergroundLine:QC,TextureThreePhaseUndergroundLine:ZC,TextureSupportStructure:_C};if(process.env.NODE_ENV==="development")for(let e of Object.keys(xa))e in Tm__namespace&&console.error(`Custom icon "${e}" collides with a Phosphor icon of the same name. Rename it (use the "Texture" prefix) to keep the icon namespace unambiguous.`);var ha={xs:16,sm:20,md:24,lg:32,xl:40,"2xl":48},F=Ke.memo(({name:e,size:t="md",color:r,weight:o="regular",className:n,ariaLabel:a,...i})=>{let s=xa[e]??Tm__namespace[e];if(!s)return process.env.NODE_ENV==="development"&&console.error(`Icon "${e}" not found in @phosphor-icons/react or the custom icon registry`),null;let c=typeof t=="string"&&t in ha?ha[t]:t,l=tailwindMerge.twMerge("inline-block flex-shrink-0",!r&&"text-current",n);return jsxRuntime.jsx(s,{...i,size:c,color:r,weight:o,className:l,"aria-label":a||`${e} icon`,"data-testid":`icon-${e}`})});F.displayName="Icon";var $C=Ke.memo(({variant:e="subtle",shape:t="square",containerSize:r,containerClassName:o,size:n="md",className:a,name:i,color:s,weight:c,ariaLabel:l,ref:d,...u})=>{let m=typeof n=="string"&&n in ha?ha[n]:n,p=r?typeof r=="string"&&r in ha?ha[r]:r:m*1.75,f=tailwindMerge.twMerge("inline-flex items-center justify-center flex-shrink-0",t==="circle"?"rounded-full":"rounded-lg",e==="subtle"&&"bg-background-muted",e==="solid"&&"bg-action-brand text-[color:var(--color-action-brand-text)]",e==="outline"&&"border-2 border-current",o);return jsxRuntime.jsx("div",{className:f,style:{width:p,height:p},children:jsxRuntime.jsx(F,{...u,name:i,size:n,color:s,weight:c,className:a,ariaLabel:l})})});$C.displayName="IconWithContainer";function br({transparent:e=false,className:t,children:r,...o}){return jsxRuntime.jsx(reactAriaComponents.ModalOverlay,{...o,className:reactAriaComponents.composeRenderProps(t,(n,a)=>tailwindMerge.twMerge("fixed inset-0 z-50","outline-none focus:outline-none focus-visible:outline-none ring-0 focus:ring-0 focus-visible:ring-0",e?"bg-transparent":["bg-gradient-to-br from-background-modal/20 via-background-modal/15 to-background-modal/20","backdrop-blur-[2px]","supports-[backdrop-filter]:bg-background-modal/15"].join(" "),a.isEntering&&["animate-in fade-in","duration-300 ease-out"].join(" "),a.isExiting&&["animate-out fade-out","duration-200 ease-in"].join(" "),n)),children:r})}function d0({isEntering:e,isExiting:t,className:r="",disableGroup:o=false}){let n=[!o&&"group","bg-background-surface","forced-colors:bg-[Canvas]","shadow-lg","rounded-[var(--control-border-radius)]","bg-clip-padding","border","border-border-default","outline-none"].filter(Boolean).join(" "),a=e?["animate-in","fade-in","placement-bottom:slide-in-from-top-1","placement-top:slide-in-from-bottom-1","placement-left:slide-in-from-right-1","placement-right:slide-in-from-left-1","ease-out","duration-200"].join(" "):"",i=t?["animate-out","fade-out","placement-bottom:slide-out-to-top-1","placement-top:slide-out-to-bottom-1","placement-left:slide-out-to-right-1","placement-right:slide-out-to-left-1","ease-in","duration-150"].join(" "):"";return [n,a,i,r].filter(Boolean).join(" ")}function ft({children:e,showArrow:t=false,withBackdrop:r=false,className:o,isDismissable:n=true,disableGroup:a=false,...i}){let c=reactAriaComponents.useSlottedContext(reactAriaComponents.PopoverContext)?.trigger==="SubmenuTrigger",l=t?12:8;l=c?l-6:l;let d=jsxRuntime.jsxs(reactAriaComponents.Popover,{offset:l,...i,className:reactAriaComponents.composeRenderProps(o,(u,m)=>d0({...m,className:u,disableGroup:a})),children:[t&&jsxRuntime.jsx(reactAriaComponents.OverlayArrow,{children:jsxRuntime.jsx("svg",{width:12,height:12,viewBox:"0 0 12 12",className:"block fill-background-surface stroke-border-default stroke-1 group-placement-left:-rotate-90 group-placement-right:rotate-90 group-placement-bottom:rotate-180 forced-colors:fill-[Canvas] forced-colors:stroke-[ButtonBorder]",children:jsxRuntime.jsx("path",{d:"M0 0 L6 6 L12 0"})})}),e]});return r?jsxRuntime.jsx(br,{isDismissable:n,children:jsxRuntime.jsx(reactAriaComponents.Modal,{className:"outline-none focus:outline-none focus-visible:outline-none ring-0 focus:ring-0 focus-visible:ring-0",isDismissable:n,children:d})}):d}function Ns(e=true){let[t,r]=Ke.useState(null);return Ke.useEffect(()=>{if(!e){r(null);return}let o=typeof window<"u"?window.visualViewport:null;if(!o)return;let n=()=>{let a=Math.max(0,window.innerHeight-o.height-(o.offsetTop??0));r({height:o.height,keyboardOffset:a});};return n(),o.addEventListener("resize",n),o.addEventListener("scroll",n),()=>{o.removeEventListener("resize",n),o.removeEventListener("scroll",n);}},[e]),t}var g0={"--color-brand-primary":["--color-action-brand","--color-text-link-default","--action-brand-background"],"--color-brand-dark":["--color-action-brand-hover","--color-text-link-hover","--action-brand-hover"],"--color-action-brand":["--color-text-link-default","--action-brand-background"],"--color-action-brand-hover":["--color-text-link-hover","--action-brand-hover"]};function Em(e){let t={...e};for(let[r,o]of Object.entries(g0))if(e[r])for(let n of o)e[n]||(t[n]=e[r]);return t}function Mm(e){return e.replace(/[{}<>]/g,"")}function Lm(e){return Object.entries(e).map(([t,r])=>`${Mm(t)}: ${Mm(r)};`).join(" ")}function Am({variables:e,darkVariables:t,children:r}){let n=Ke.useId().replace(/:/g,""),a=e&&Object.keys(e).length>0,i=t&&Object.keys(t).length>0;if(!a&&!i)return jsxRuntime.jsx(jsxRuntime.Fragment,{children:r});let s=a?Em(e):null,c=i?Em(t):null,l=s?`[data-brand-scope="${n}"] { ${Lm(s)} }`:"",d=c?`.theme-dark [data-brand-scope="${n}"] { ${Lm(c)} }`:"",u=[l,d].filter(Boolean).join(`
|
|
2
|
-
`);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("style",{dangerouslySetInnerHTML:{__html:u}}),jsxRuntime.jsx("div",{"data-brand-scope":n,children:r})]})}var ya=new Map,x0=8;function h0(e){if(!e.startsWith("var("))return e;let t=e.slice(4,e.lastIndexOf(")")).trim(),r=t.indexOf(",");return (r===-1?t:t.slice(0,r)).trim()}var Mt=(e,t="#000000")=>typeof window>"u"?t:Im(e,t,0);function Im(e,t,r){if(r>x0)return t;let o=e.startsWith("var(")?h0(e):e.startsWith("--")?e:`--${e}`;if(!e.startsWith("--")&&!e.startsWith("var(")&&!o.startsWith("--color-")&&(o=`--color-${o.slice(2)}`),ya.has(o))return ya.get(o);try{let n=document.body||document.documentElement,i=getComputedStyle(n).getPropertyValue(o).trim();if(i){if(i.startsWith("var(")){let l=Im(i,t,r+1);return ya.set(o,l),l}return ya.set(o,i),i}let s=document.createElement("div");s.style.color=`var(${o})`,document.body.appendChild(s);let c=getComputedStyle(s).color;return document.body.removeChild(s),c&&c!=="rgb(0, 0, 0)"?(ya.set(o,c),c):t}catch(n){return console.warn(`Failed to resolve color for ${e}:`,n),t}}var ks=()=>{ya.clear();},To=()=>{let e=[];for(let t=1;t<=12;t++){let r=Mt(`--color-viz-categorical-${t}`,"");r&&e.push(r);}return e.length===0?Fm():e},Fm=()=>["#5424db","#d92361","#e86a00","#5d89ff","#9a47e2","#f24cb8","#0ba286","#9c28af","#036e45","#52a119","#ff513d","#046691"],pi=()=>Mt("--color-viz-default","#444ae1"),y0=(e,t)=>{let r={},o=To();return e.forEach((n,a)=>{t&&t[n]?r[n]=t[n]:r[n]=o[a%o.length];}),r},Bm=e=>{let t=e.match(/\d+/g);if(!t||t.length<3)return true;let[r,o,n]=t.map(Number);return (.299*r+.587*o+.114*n)/255>.5},v0=e=>Bm(e)?Mt("--color-text-primary","#333333"):Mt("--color-text-inverse","#ffffff"),Vm=(e,t)=>{if(!e||typeof e!="object")return console.warn("[Colors] Invalid GeoJSON data provided to extractUniqueValues"),[];if(!("type"in e)||e.type!=="FeatureCollection"&&e.type!=="Feature")return console.warn("[Colors] Data is not valid GeoJSON (missing type or invalid type)"),[];let r=new Set,o="features"in e?e.features:[e];if(!Array.isArray(o)||o.length===0)return console.warn("[Colors] No features found in GeoJSON data"),[];let n=0;return o.forEach(a=>{if(!(!a||typeof a!="object")&&a.properties&&t in a.properties){n++;let i=a.properties[t];i!=null&&r.add(i);}}),n===0&&console.warn(`[Colors] Property "${t}" not found on any features. Available properties: ${o[0]?.properties?Object.keys(o[0].properties).join(", "):"none"}`),Array.from(r).sort()},od=e=>{let t=To(),r={};return e.forEach((o,n)=>{r[o]=t[n%t.length];}),r};var nd=(e,t)=>{if(!e||typeof e!="object")return console.warn("[Colors] Invalid GeoJSON data provided to extractNumericValues"),[];if(!("type"in e)||e.type!=="FeatureCollection"&&e.type!=="Feature")return console.warn("[Colors] Data is not valid GeoJSON (missing type or invalid type)"),[];let r="features"in e?e.features:[e];if(!Array.isArray(r)||r.length===0)return console.warn("[Colors] No features found in GeoJSON data"),[];let o=new Set,n=0;return r.forEach(a=>{if(!(!a||typeof a!="object")&&a.properties&&t in a.properties){n++;let i=a.properties[t];typeof i=="number"&&!isNaN(i)&&o.add(i);}}),n===0&&console.warn(`[Colors] Property "${t}" not found on any features. Available properties: ${r[0]?.properties?Object.keys(r[0].properties).join(", "):"none"}`),Array.from(o).sort((a,i)=>a-i)},ad=e=>e.length===0?(console.warn("[Colors] Cannot calculate bounds from empty array"),{min:0,max:1}):{min:e[0],max:e[e.length-1]},zm=(e,t)=>{if(typeof t=="number")return t;if(e.length===0)return console.warn("[Colors] Cannot calculate center from empty array, defaulting to 0"),0;if(t==="median"){let r=Math.floor(e.length/2);return e.length%2===0?(e[r-1]+e[r])/2:e[r]}return e.reduce((r,o)=>r+o,0)/e.length},mi=(e="viridis")=>{let o=`viz-sequential-${{redYellowGreen:"red-yellow-green"}[e]||e}`,n=[];for(let a=1;a<=10;a++){let i=`${o}-${a}`,s=Mt(i);n.push(s);}return n},fi=(e="redYellowBlue")=>{let o=`viz-diverging-${{orangeYellowSeafoam:"orange-yellow-seafoam",redYellowBlue:"red-yellow-blue",redBlue:"red-blue"}[e]||e}`,n=[];for(let a=1;a<=10;a++){let i=`${o}-${a}`,s=Mt(i);n.push(s);}return n},gi=(e,t,r,o="viridis")=>{let n=mi(o);if(e<=t)return n[0];if(e>=r)return n[n.length-1];if(t===r)return n[Math.floor(n.length/2)];let i=(e-t)/(r-t)*(n.length-1),s=Math.floor(i);return n[s]},bi=(e,t,r,o,n="redYellowBlue")=>{let a=fi(n),i=4;if(e<=t)return a[0];if(e>=r)return a[a.length-1];if(e===o||t===r)return a[i];if(e<o){let c=(e-t)/(o-t)*i,l=Math.floor(c);return a[Math.min(l,i)]}else {let s=(e-o)/(r-o),c=i+s*(a.length-1-i),l=Math.floor(c);return a[Math.min(l,a.length-1)]}};var id=Ke.createContext({mode:"system",colorMode:"light",isDarkTheme:false,toggleTheme:()=>{}}),Wt=()=>Ke.useContext(id);function k0(){return typeof window>"u"?"light":window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Gm(){if(typeof window>"u")return "system";let e=localStorage.getItem("colorModePreference");return e==="light"||e==="dark"||e==="system"?e:"system"}function Wm(e){return e==="system"?k0():e}var Km=({children:e})=>{let[t,r]=Ke.useState(Gm),[o,n]=Ke.useState(()=>Wm(Gm())),a=o==="dark",i=Ke.useCallback(c=>{c==="dark"?(document.documentElement.classList.add("theme-dark"),document.body.classList.add("theme-dark")):(document.documentElement.classList.remove("theme-dark"),document.body.classList.remove("theme-dark")),ks();},[]);Ke.useEffect(()=>{ks();let c=Wm(t);if(n(c),i(c),t==="system"){let l=window.matchMedia("(prefers-color-scheme: dark)"),d=u=>{let m=u.matches?"dark":"light";n(m),i(m);};return l.addEventListener("change",d),()=>{l.removeEventListener("change",d);}}},[t,i]);let s=Ke.useCallback(()=>{r(c=>{let l=c==="system"?"light":c==="light"?"dark":"system";return localStorage.setItem("colorModePreference",l),l});},[]);return jsxRuntime.jsx(id.Provider,{value:{mode:t,colorMode:o,isDarkTheme:a,toggleTheme:s},children:e})};function er(...e){return e.filter(Boolean).join(" ")}var sd=class{constructor(){di(this,"formatters",new Map);}register(t,r){this.formatters.set(t,r);}format(t,r,...o){let n=this.formatters.get(t);return n?n(r,...o):(console.warn(`No formatter registered for key: ${t}`),null)}has(t){return this.formatters.has(t)}keys(){return Array.from(this.formatters.keys())}unregister(t){this.formatters.delete(t);}clear(){this.formatters.clear();}},re=new sd;var Go=(e,t="Yes",r="No")=>e==null?null:e?t:r,T0=e=>Go(e,"Enabled","Disabled"),P0=e=>Go(e,"On","Off"),R0=e=>Go(e,"Active","Inactive"),E0=e=>Go(e,"True","False"),M0=e=>Go(e,"\u2713","\u2717"),Wo=e=>{if(e==null)return null;if(typeof e=="boolean")return e;if(typeof e=="string"){let t=e.toLowerCase().trim();return t==="true"||t==="yes"||t==="1"||t==="on"||t==="enabled"?true:t==="false"||t==="no"||t==="0"||t==="off"||t==="disabled"?false:null}return typeof e=="number"?e!==0:null},Ym=(e,t)=>{if(t.hideWhenNull&&e==null)return null;if(e==null)return t.nullText??null;let r=Wo(e);return r===null?t.nullText??null:Go(r,t.trueText??"Yes",t.falseText??"No")};re.register("boolean",(e,t,r)=>{let o=Wo(e);return o!==null?Go(o,typeof t=="string"?t:"Yes",typeof r=="string"?r:"No"):null});re.register("yesNo",e=>{let t=Wo(e);return t!==null?Go(t,"Yes","No"):null});re.register("enabledDisabled",e=>{let t=Wo(e);return t!==null?T0(t):null});re.register("onOff",e=>{let t=Wo(e);return t!==null?P0(t):null});re.register("activeInactive",e=>{let t=Wo(e);return t!==null?R0(t):null});re.register("trueFalse",e=>{let t=Wo(e);return t!==null?E0(t):null});re.register("checkmark",e=>{let t=Wo(e);return t!==null?M0(t):null});var ce=e=>e==null,Jm=(e,t=0)=>ce(e)?null:`${e.toFixed(t)}%`,Xm=(e,t=0)=>Jm(e,t)??"\u2014",L0=e=>ce(e)?null:Math.round(e).toString(),D0=(e,t=1)=>ce(e)?null:e.toFixed(t),A0=(e,t,r=true)=>{if(ce(e))return null;let o={useGrouping:r};return t!==void 0&&(o.minimumFractionDigits=t,o.maximumFractionDigits=t),new Intl.NumberFormat("en-US",o).format(e)},I0=(e,t="short")=>ce(e)?null:new Intl.NumberFormat("en-US",{notation:"compact",compactDisplay:t}).format(e),F0=(e,t=2)=>ce(e)?null:e.toExponential(t),jm=(e,t="USD",r)=>{if(ce(e))return null;let o={style:"currency",currency:t,currencyDisplay:r?.currencyDisplay??"symbol",useGrouping:r?.thousandsSeparator??true};return r?.minimumFractionDigits!==void 0&&(o.minimumFractionDigits=r.minimumFractionDigits),r?.maximumFractionDigits!==void 0&&(o.maximumFractionDigits=r.maximumFractionDigits),new Intl.NumberFormat("en-US",o).format(e)},qm=(e,t)=>{if(t.hideWhenNull&&e==null||t.hideWhenZero&&e===0)return null;if(e==null)return t.nullText??null;let r=typeof e=="string"?parseFloat(e):Number(e);if(isNaN(r))return t.nullText??null;let o={useGrouping:t.thousandsSeparator??false};return t.decimals!==void 0&&(o.minimumFractionDigits=t.decimals,o.maximumFractionDigits=t.decimals),t.notation&&(o.notation=t.notation,t.notation==="compact"&&t.compactDisplay&&(o.compactDisplay=t.compactDisplay)),t.sign&&(o.signDisplay=t.sign),new Intl.NumberFormat("en-US",o).format(r)},Qm=(e,t)=>{if(t.hideWhenNull&&e==null||t.hideWhenZero&&e===0)return null;if(e==null)return t.nullText??null;let r=typeof e=="string"?parseFloat(e):Number(e);return isNaN(r)?t.nullText??null:jm(r,t.currency,t)};re.register("percentage",(e,t)=>typeof e=="number"?Jm(e,typeof t=="number"?t:0):null);re.register("integer",e=>typeof e=="number"?L0(e):null);re.register("float",(e,t)=>typeof e=="number"?D0(e,typeof t=="number"?t:1):null);re.register("number",(e,t,r)=>{let o=typeof e=="string"?parseFloat(e):Number(e);return isNaN(o)?null:A0(o,typeof t=="number"?t:void 0,typeof r=="boolean"?r:true)});re.register("compact",(e,t)=>typeof e=="number"?I0(e,t==="long"?"long":"short"):null);re.register("scientific",(e,t)=>typeof e=="number"?F0(e,typeof t=="number"?t:2):null);re.register("currency",(e,t,r)=>typeof e=="number"?jm(e,typeof t=="string"?t:"USD",typeof r=="object"&&r!==null?r:{}):null);function YI(e,t=1){return ce(e)?null:Math.abs(e)>=1e3?`${(e/1e3).toFixed(t)} MWh`:`${e.toFixed(t)} kWh`}function JI(e,t=1){return ce(e)?null:Math.abs(e)>=1e3?`${(e/1e3).toFixed(t)} MW`:`${e.toFixed(t)} kW`}function no({value:e,formatter:t,emptyClassName:r="text-text-secondary",emptyText:o="\u2014"}){if(e==null)return jsxRuntime.jsx("span",{className:r,children:o});if(typeof t=="function")return t(e);if(t&&typeof t=="object"){let n=xr(e,t);return e instanceof Date&&n?jsxRuntime.jsx("time",{dateTime:e.toISOString(),title:e.toISOString(),children:n}):n||jsxRuntime.jsx("span",{className:r,children:o})}if(!t){if(typeof e=="string")return e;if(e instanceof Date){let n=xr(e,{type:"date"});return jsxRuntime.jsx("time",{dateTime:e.toISOString(),title:e.toISOString(),children:n})}if(typeof e=="number")return xr(e,{type:"number"});if(typeof e=="boolean")return xr(e,{type:"boolean"})}return String(e)}function QI(e,t,r){return Ke__namespace.default.useCallback(o=>no({value:o,formatter:e,emptyClassName:t,emptyText:r}),[e,t,r])}var ld=(e,t=0)=>{if(ce(e))return null;let r=e*1e3;return t===0?`${Math.round(r)} mA`:`${r.toFixed(t)} mA`},Ps=(e,t=1)=>ce(e)?null:`${e.toFixed(t)} A`,cd=(e,t=2)=>ce(e)?null:`${(e/1e3).toFixed(t)} kA`,V0=(e,t)=>{if(ce(e))return null;let r=Math.abs(e);return r>=1e3?cd(e,t??2):r<1?ld(e,t??0):Ps(e,t??1)},dd=(e,t)=>{if(t.hideWhenNull&&e==null||t.hideWhenZero&&e===0)return null;if(e==null)return t.nullText??null;let r=typeof e=="string"?parseFloat(e):Number(e);if(isNaN(r))return t.nullText??null;let o=t.decimals;if(t.unit)switch(t.unit){case "kA":return cd(r,o??2);case "mA":return ld(r,o??0);case "A":return Ps(r,o??1)}return t.autoScale!==false?V0(r,o):Ps(r,o??1)};re.register("current",dd);var t5=ld,r5=Ps,o5=cd;var Cn=e=>{if(e==null)return null;if(e instanceof Date)return luxon.DateTime.fromJSDate(e);if(typeof e=="string"){let t=luxon.DateTime.fromISO(e);return t.isValid?t:null}if(typeof e=="number"){let t=luxon.DateTime.fromMillis(e);return t.isValid?t:null}return null},z0=(e,t=false,r)=>{if(!e)return null;let o=Cn(e);if(!o)return "Invalid Date";let n=r?o.setZone(r):o;return t?n.toLocaleString(luxon.DateTime.DATETIME_SHORT):n.toLocaleString(luxon.DateTime.DATE_SHORT)},Rs=e=>{if(!e)return null;let t=Cn(e);return t?t.toRelative():"Invalid Date"},O0=(e,t)=>{if(!e)return null;let r=Cn(e);return r?(t?r.setZone(t):r).toLocaleString(luxon.DateTime.DATETIME_MED_WITH_WEEKDAY):"Invalid Date"},H0=e=>{if(!e)return null;let t=Cn(e);return t?t.toISO():null},G0=(e,t,r)=>{if(!e)return null;let o=Cn(e);return o?(r?o.setZone(r):o).toFormat(t):"Invalid Date"},s5=e=>{let t=Cn(e);return t?{year:t.year,month:t.month,day:t.day,weekday:t.weekday,hour:t.hour,minute:t.minute,second:t.second,millisecond:t.millisecond,weekdayShort:t.weekdayShort,weekdayLong:t.weekdayLong,monthShort:t.monthShort,monthLong:t.monthLong}:null},Zm=(e,t)=>{if(t.hideWhenNull&&e==null)return null;if(e==null)return t.nullText??null;let r=Cn(e);if(!r)return t.nullText??"Invalid Date";let o=t.timezone?r.setZone(t.timezone):r;if(t.relative)return o.toRelative();if(t.format)return o.toFormat(t.format);if(t.dateStyle||t.timeStyle){let n={};if(t.dateStyle)switch(t.dateStyle){case "short":n.date=luxon.DateTime.DATE_SHORT;break;case "medium":n.date=luxon.DateTime.DATE_MED;break;case "long":n.date=luxon.DateTime.DATE_FULL;break;case "full":n.date=luxon.DateTime.DATE_HUGE;break}if(t.timeStyle)switch(t.timeStyle){case "short":n.time=luxon.DateTime.TIME_SIMPLE;break;case "medium":n.time=luxon.DateTime.TIME_WITH_SECONDS;break;case "long":case "full":n.time=luxon.DateTime.TIME_WITH_SHORT_OFFSET;break}if(n.date&&n.time)return o.toLocaleString({...n.date,...n.time});if(n.date)return o.toLocaleString(n.date);if(n.time)return o.toLocaleString(n.time)}return o.toLocaleString(luxon.DateTime.DATETIME_SHORT)};re.register("date",(e,t,r)=>z0(e,typeof t=="boolean"?t:false,typeof r=="string"?r:void 0));re.register("relativeTime",e=>Rs(e));re.register("fullDateTime",(e,t)=>O0(e,typeof t=="string"?t:void 0));re.register("isoString",e=>H0(e));re.register("customDateFormat",(e,t,r)=>typeof t=="string"?G0(e,t,typeof r=="string"?r:void 0):null);var ud=(e,t=1)=>ce(e)?null:`${e.toFixed(t)} m`,W0=(e,t=1)=>ce(e)?null:`${(e*100).toFixed(t)} cm`,U0=(e,t=0)=>ce(e)?null:`${(e*1e3).toFixed(t)} mm`,pd=(e,t=1)=>ce(e)?null:`${(e/1e3).toFixed(t)} km`,md=(e,t=0)=>ce(e)?null:`${e.toFixed(t)} ft`,K0=(e,t=1)=>ce(e)?null:`${e.toFixed(t)} in`,fd=(e,t=1)=>ce(e)?null:`${e.toFixed(t)} mi`,gd=(e,t=0)=>ce(e)?null:`${e.toFixed(t)} yd`,u5=(e,t=1)=>ce(e)?null:`${e.toFixed(t)} nm`,p5=e=>e*3.28084,m5=e=>e/3.28084,f5=e=>e*1.60934,g5=e=>e/1.60934,b5=e=>e/5280,_m=e=>e*5280,x5=e=>e/1609.34,h5=e=>e*1609.34,y5=e=>e*.9144,v5=e=>e/.9144,C5=e=>e*2.54,S5=e=>e/2.54,$m=(e,t=false,r=1)=>{if(ce(e))return null;let o=Math.abs(e);return t?o>=1e3?pd(e,r):o<.01?U0(e,0):o<1?W0(e,r):ud(e,r):o<.01?md(_m(e),0):o<.1?gd(_m(e)/3,0):fd(e,r)},ef=(e,t)=>{if(t.hideWhenNull&&e==null||t.hideWhenZero&&e===0)return null;if(e==null)return t.nullText??null;let r=typeof e=="string"?parseFloat(e):Number(e);if(isNaN(r))return t.nullText??null;let o=t.decimals??1;if(t.autoScale){let n=t.unit==="m"||t.unit==="km";return $m(r,n,o)}switch(t.unit){case "km":return pd(r,o);case "ft":return md(r,o);case "mi":return fd(r,o);case "yd":return gd(r,o);default:return ud(r,o)}};re.register("miles",(e,t)=>typeof e=="number"?fd(e,typeof t=="number"?t:1):null);re.register("kilometers",(e,t)=>typeof e=="number"?pd(e,typeof t=="number"?t:1):null);re.register("meters",(e,t)=>typeof e=="number"?ud(e,typeof t=="number"?t:1):null);re.register("feet",(e,t)=>typeof e=="number"?md(e,typeof t=="number"?t:0):null);re.register("yards",(e,t)=>typeof e=="number"?gd(e,typeof t=="number"?t:0):null);re.register("inches",(e,t)=>typeof e=="number"?K0(e,typeof t=="number"?t:1):null);re.register("autoScaleDistance",(e,t,r)=>typeof e=="number"?$m(e,typeof t=="boolean"?t:false,typeof r=="number"?r:1):null);var bd=(e,t=1)=>ce(e)?null:`${e.toFixed(t)} Wh`,xd=(e,t=1)=>ce(e)?null:`${(e/1e3).toFixed(t)} kWh`,tf=(e,t=1)=>ce(e)?null:`${(e/1e6).toFixed(t)} MWh`,rf=(e,t=1)=>ce(e)?null:`${(e/1e9).toFixed(t)} GWh`,hd=e=>{let t=Math.abs(e);return t>=1e9?"GWh":t>=1e6?"MWh":t>=1e3?"kWh":"Wh"},of=(e,t=1)=>{if(ce(e))return null;switch(hd(e)){case "GWh":return rf(e,t);case "MWh":return tf(e,t);case "kWh":return xd(e,t);default:return bd(e,t)}},yd={Wh:1,kWh:1e3,MWh:1e6,GWh:1e9},vd=(e,t)=>{if(t.hideWhenNull&&e==null||t.hideWhenZero&&e===0)return null;if(e==null)return t.nullText??null;let r=typeof e=="string"?parseFloat(e):Number(e);if(isNaN(r))return t.nullText??null;let o=t.sourceUnit?r*yd[t.sourceUnit]:r,n=t.decimals??1;if(t.unit)switch(t.unit){case "GWh":return rf(o,n);case "MWh":return tf(o,n);case "kWh":return xd(o,n);case "Wh":return bd(o,n)}return t.autoScale!==false?of(o,n):bd(o,n)};re.register("kWh",e=>typeof e=="number"?xd(e):null);re.register("autoScaleEnergy",(e,t)=>typeof e=="number"?of(e,typeof t=="number"?t:1):null);re.register("energy",vd);var Es=e=>{if(!e)return null;let t=e.replace(/\D/g,"");return t.length===10?t.replace(/(\d{3})(\d{3})(\d{4})/,"($1) $2-$3"):t.length===11&&t.startsWith("1")?t.replace(/1(\d{3})(\d{3})(\d{4})/,"+1 ($1) $2-$3"):e},Cd=e=>{if(!e)return null;let t=e.replace(/[^\d+]/g,"");return t.startsWith("+")?t.length===12&&t.startsWith("+1")?t.replace(/\+1(\d{3})(\d{3})(\d{4})/,"+1 ($1) $2-$3"):t.length===13&&t.startsWith("+44")?t.replace(/\+44(\d{2})(\d{4})(\d{4})/,"+44 $1 $2 $3"):t.replace(/(\+\d{1,3})(\d{3,4})(\d{3,4})(\d{3,4})?/,"$1 $2 $3 $4").trim():Es(e)},va=e=>e?e.startsWith("+")||e.length>11?Cd(e):Es(e):null,nf=(e,t)=>{if(t.hideWhenNull&&e==null)return null;if(e==null)return t.nullText??null;let r=String(e);if(t.international)return Cd(r);switch(t.country){case "US":case "CA":return Es(r);default:return va(r)}};re.register("phoneNumber",e=>typeof e=="string"?va(e):null);re.register("usPhone",e=>typeof e=="string"?Es(e):null);re.register("internationalPhone",e=>typeof e=="string"?Cd(e):null);var Ms=(e,t=0)=>ce(e)?null:t===0?`${Math.round(e)} W`:`${e.toFixed(t)} W`,Sd=(e,t=1)=>ce(e)?null:`${(e/1e3).toFixed(t)} kW`,wd=(e,t=1)=>ce(e)?null:`${(e/1e6).toFixed(t)} MW`,Nd=(e,t=2)=>ce(e)?null:`${(e/1e9).toFixed(t)} GW`,Y0=(e,t)=>{if(ce(e))return null;let r=Math.abs(e);return r>=1e9?Nd(e,t??2):r>=1e6?wd(e,t??1):r>=1e3?Sd(e,t??1):Ms(e,t??0)},kd=(e,t)=>{if(t.hideWhenNull&&e==null||t.hideWhenZero&&e===0)return null;if(e==null)return t.nullText??null;let r=typeof e=="string"?parseFloat(e):Number(e);if(isNaN(r))return t.nullText??null;let o=t.decimals;if(t.unit)switch(t.unit){case "GW":return Nd(r,o??2);case "MW":return wd(r,o??1);case "kW":return Sd(r,o??1);case "W":return Ms(r,o??0)}return t.autoScale!==false?Y0(r,o):Ms(r,o??0)};re.register("power",kd);var L5=Ms,D5=Sd,A5=wd,I5=Nd;var Td=(e,t=1)=>ce(e)?null:`${(e*1e3).toFixed(t)} m\u03A9`,Ls=(e,t=1)=>ce(e)?null:`${e.toFixed(t)} \u03A9`,af=(e,t=1)=>ce(e)?null:`${(e/1e3).toFixed(t)} k\u03A9`,sf=(e,t=2)=>ce(e)?null:`${(e/1e6).toFixed(t)} M\u03A9`,J0=(e,t)=>{if(ce(e))return null;let r=Math.abs(e);return r>=1e6?sf(e,t??2):r>=1e3?af(e,t??1):r<1?Td(e,t??1):Ls(e,t??1)},Pd=(e,t)=>{if(t.hideWhenNull&&e==null||t.hideWhenZero&&e===0)return null;if(e==null)return t.nullText??null;let r=typeof e=="string"?parseFloat(e):Number(e);if(isNaN(r))return t.nullText??null;let o=t.decimals;if(t.unit)switch(t.unit){case "M\u03A9":return sf(r,o??2);case "k\u03A9":return af(r,o??1);case "m\u03A9":return Td(r,o??1);case "\u03A9":return Ls(r,o??1)}return t.autoScale!==false?J0(r,o):Ls(r,o??1)};re.register("resistance",Pd);re.register("ohms",e=>typeof e=="number"?Ls(e):null);re.register("milliohms",e=>typeof e=="number"?Td(e):null);var lf=e=>{switch(e){case "FAHRENHEIT":return "F";case "CELSIUS":return "C";case "KELVIN":return "K";default:return "F"}},cf=(e,t=0)=>ce(e)?null:`${e.toFixed(t)}\xB0F`,df=(e,t=true,r=0)=>ce(e)?null:`${(t?(e-32)*(5/9):e).toFixed(r)}\xB0C`,uf=(e,t=true,r=0)=>ce(e)?null:`${(t?(e-32)*(5/9)+273.15:e+273.15).toFixed(r)}K`,X0=e=>e*9/5+32,j0=e=>(e-32)*(5/9),G5=e=>e+273.15,q0=e=>e-273.15,W5=e=>j0(e)+273.15,U5=e=>X0(q0(e)),pf=(e,t="F",r=0)=>{if(ce(e))return null;switch(typeof t=="string"&&t.length>1?lf(t):t){case "C":return df(e,true,r);case "K":return uf(e,true,r);default:return cf(e,r)}},mf=(e,t)=>{if(t.hideWhenNull&&e==null)return null;if(e==null)return t.nullText??null;let r=typeof e=="string"?parseFloat(e):Number(e);if(isNaN(r))return t.nullText??null;let o=t.decimals??0,n=t.unit??"F";if(t.showUnit===false)switch(typeof n=="string"&&n.length>1?lf(n):n){case "C":return ((r-32)*.5555555555555556).toFixed(o);case "K":return ((r-32)*.5555555555555556+273.15).toFixed(o);default:return r.toFixed(o)}return pf(r,n,o)};re.register("temperature",(e,t,r)=>typeof e=="number"?pf(e,typeof t=="string"?t:"F",typeof r=="number"?r:0):null);re.register("fahrenheit",(e,t)=>typeof e=="number"?cf(e,typeof t=="number"?t:0):null);re.register("celsius",(e,t,r)=>typeof e=="number"?df(e,typeof t=="boolean"?t:true,typeof r=="number"?r:0):null);re.register("kelvin",(e,t,r)=>typeof e=="number"?uf(e,typeof t=="boolean"?t:true,typeof r=="number"?r:0):null);var Q0=(e,t)=>!!(t.hideWhenNull&&e==null||t.hideWhenZero&&e===0),ff=e=>e?.toUpperCase()??"",gf=e=>e?.toLowerCase()??"",bf=e=>e?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():"",xf=e=>{if(!e)return "";let t=new Set(["a","an","the","and","but","or","for","nor","on","at","of","to","with","in","as","by"]);return e.toLowerCase().split(/\s+/).map((r,o)=>t.has(r)&&o!==0?r:r.charAt(0).toUpperCase()+r.slice(1)).join(" ")},hf=e=>e?e.split(/\s+/).map(t=>t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()).join(" "):"",yf=e=>e?e.charAt(0).toUpperCase()+e.slice(1):"",vf=e=>e?e.replace(/([A-Z])/g," $1").replace(/^./,t=>t.toUpperCase()).trim():"",Cf=e=>e?e.toLowerCase().split("_").map(t=>yf(t)).join(" "):"",Z0=e=>e?e.includes("_")?Cf(e):e.toUpperCase()===e?yf(e.toLowerCase()):vf(e):"",Ca=(e,t=16)=>{if(!e)return "";if(t<5||e.length<=t)return e;let r=t-3,o=Math.ceil(r/2),n=Math.floor(r/2);return `${e.slice(0,o)}...${e.slice(-n)}`},Ds=(e,t=8)=>e?e.length<=t?e:`...${e.slice(-t)}`:"",As=(e,t=16,r="...")=>e?e.length<=t?e:e.slice(0,t)+r:"",_0=e=>{if(!e)return "";let t=e.toString(),r=t.slice(-4),o=t.length-4;return o>0?"*".repeat(o)+r:t},Sf=(e,t)=>{if(Q0(e,t))return null;if(e==null)return t.nullText??null;let r=String(e);if(t.transform&&(Array.isArray(t.transform)?t.transform:[t.transform]).forEach(n=>{switch(n){case "uppercase":r=ff(r);break;case "lowercase":r=gf(r);break;case "capitalize":r=hf(r);break;case "titleCase":r=xf(r);break;case "sentenceCase":r=bf(r);break}}),t.truncate){let{length:o,position:n,ellipsis:a="..."}=t.truncate;switch(n){case "start":r=Ds(r,o);break;case "middle":r=Ca(r,o);break;case "end":r=As(r,o,a);break}}return r};re.register("uppercase",e=>ff(String(e)));re.register("lowercase",e=>gf(String(e)));re.register("sentenceCase",e=>bf(String(e)));re.register("titleCase",e=>xf(String(e)));re.register("capitalize",e=>hf(String(e)));re.register("camelCaseToWords",e=>vf(String(e)));re.register("snakeCaseToWords",e=>Cf(String(e)));re.register("enumToSentenceCase",e=>Z0(String(e)));re.register("truncateMiddle",(e,t)=>Ca(String(e),typeof t=="number"?t:16));re.register("truncateStart",(e,t)=>Ds(String(e),typeof t=="number"?t:8));re.register("truncateEnd",(e,t,r)=>As(String(e),typeof t=="number"?t:16,typeof r=="string"?r:"..."));re.register("secret",e=>_0(String(e)));var Rd=(e,t=0)=>{if(ce(e))return null;let r=e*1e3;return t===0?`${Math.round(r)} mV`:`${r.toFixed(t)} mV`},Is=(e,t=0)=>ce(e)?null:t===0?`${Math.round(e)} V`:`${e.toFixed(t)} V`,Ed=(e,t=1)=>ce(e)?null:`${(e/1e3).toFixed(t)} kV`,$0=(e,t)=>{if(ce(e))return null;let r=Math.abs(e);return r>=1e3?Ed(e,t??1):r<1?Rd(e,t??0):Is(e,t??0)},Md=(e,t)=>{if(t.hideWhenNull&&e==null||t.hideWhenZero&&e===0)return null;if(e==null)return t.nullText??null;let r=typeof e=="string"?parseFloat(e):Number(e);if(isNaN(r))return t.nullText??null;let o=t.decimals;if(t.unit)switch(t.unit){case "kV":return Ed(r,o??1);case "mV":return Rd(r,o??0);case "V":return Is(r,o??0)}return t.autoScale!==false?$0(r,o):Is(r,o??0)};re.register("voltage",Md);var q5=Rd,Q5=Is,Z5=Ed;var eS=(e,t)=>{if(e==null)return t.nullText??null;if(t.hideWhenNull&&e===null)return null;let r=typeof e=="number"?e:Number(e);return Number.isNaN(r)?t.nullText??null:Xm(r,t.decimals??0)},xr=(e,t)=>{switch(t.type){case "text":return Sf(e,t);case "number":return qm(e,t);case "percentage":return eS(e,t);case "currency":return Qm(e,t);case "date":return Zm(e,t);case "boolean":return Ym(e,t);case "energy":return vd(e,t);case "power":return kd(e,t);case "voltage":return Md(e,t);case "current":return dd(e,t);case "resistance":return Pd(e,t);case "temperature":return mf(e,t);case "distance":return ef(e,t);case "phone":return nf(e,t);case "custom":{let r=t;return r.hideWhenNull&&e==null?null:e==null?r.nullText??null:r.formatter(e,r.options)}default:return e!=null?String(e):null}};var Sa={power:"W",energy:"Wh",voltage:"V",current:"A",resistance:"\u03A9",distance:"m"},tS=new Set(["number","power","energy","voltage","current","resistance","temperature","distance","percentage"]);function Ld(e){if(!e)return null;switch(e.type){case "percentage":return "%";case "power":return e.unit??Sa.power;case "energy":return e.unit??e.sourceUnit??Sa.energy;case "voltage":return e.unit??Sa.voltage;case "current":return e.unit??Sa.current;case "resistance":return e.unit??Sa.resistance;case "temperature":{let t=typeof e.unit=="string"?e.unit:"F";return t==="C"||t==="CELSIUS"?"\xB0C":t==="F"||t==="FAHRENHEIT"?"\xB0F":t==="K"||t==="KELVIN"?"K":t}case "distance":return e.unit??Sa.distance;default:return null}}function wf(e,t){if(!tS.has(t.type))return null;let r;if(typeof e=="number")r=e;else if(typeof e=="string"){let n=parseFloat(e);if(Number.isNaN(n))return null;r=n;}else return null;let o=Ld(t);if(o!==null){let n;if(t.type==="percentage")n=t;else if(t.type==="energy")n=t.unit?{...t,autoScale:false}:{...t,unit:t.sourceUnit??"Wh",autoScale:false};else if(t.type==="temperature")n={...t};else {let s=t.unit;n={...t,unit:s??o,autoScale:false};}let a=xr(r,n);if(!a)return "";if(typeof a=="string"&&a.startsWith("device."))return null;let i=String(a);return i.endsWith(` ${o}`)?i.slice(0,-(o.length+1)):i.endsWith(o)?i.slice(0,-o.length):i}if(t.type==="number"){let n=xr(r,t);return n?String(n):""}return String(r)}var f4=(e,t)=>({type:e,...t});function wn(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function Sn(e,t){return wn(e)?t.format(e):""}function Nf(e){if(!wn(e.start)||!wn(e.end))return ()=>"";if((e.end.getTime()-e.start.getTime())/(1e3*60*60)<=720){let i=new Intl.DateTimeFormat("en",{month:"short",day:"numeric",hour:"numeric",minute:"2-digit"});return s=>Sn(s,i)}let r=e.start.getFullYear(),o=e.end.getFullYear(),n=r!==o,a=new Intl.DateTimeFormat("en",{month:"short",day:"numeric",hour:"numeric",minute:"2-digit",...n&&{year:"numeric"}});return i=>Sn(i,a)}var rS=864e5;function kf(e,t){let r=t?.compact??false,o=e<5*rS,n=a=>{let i=a.getHours(),s=i>=12?"PM":"AM";return {displayHour:i%12||12,period:s}};return a=>{if(!wn(a))return "";let i=a.getHours()===0&&a.getMinutes()===0&&a.getSeconds()===0&&a.getMilliseconds()===0;if(i&&a.getDate()===1)return a.getMonth()===0?String(a.getFullYear()):a.toLocaleDateString("en",{month:"short"});if(i){let d=a.getDate();if(o){let u=a.toLocaleDateString("en",{weekday:"short"});return r?`${u.charAt(0)}${d}`:`${u} ${d}`}return r?`${a.getMonth()+1}/${d}`:`${a.toLocaleDateString("en",{month:"short"})} ${d}`}let{displayHour:s,period:c}=n(a);if(a.getMinutes()===0&&a.getSeconds()===0)return r?`${s}${c.charAt(0).toLowerCase()}`:`${s} ${c}`;let l=String(a.getMinutes()).padStart(2,"0");return r?`${s}:${l}${c.charAt(0).toLowerCase()}`:`${s}:${l} ${c}`}}function Dd(e,t){if(!wn(e.start)||!wn(e.end))return ()=>"";let r=(e.end.getTime()-e.start.getTime())/(1e3*60*60),o=t?.compact??false,n=l=>d=>wn(d)?l(d):"";if(r<=24){if(o)return n(d=>{let u=d.getHours(),m=u>=12?"pm":"am";return `${u%12||12}${m}`});let l=new Intl.DateTimeFormat("en",{hour:"numeric",minute:"2-digit"});return d=>Sn(d,l)}if(r<=48){if(o)return n(d=>{let u=d.getMonth()+1,m=d.getDate(),p=d.getHours(),f=p>=12?"p":"a",g=p%12||12;return `${u}/${m} ${g}${f}`});let l=new Intl.DateTimeFormat("en",{month:"short",day:"numeric",hour:"numeric"});return d=>Sn(d,l)}if(r<=168){if(o)return n(d=>{let u=d.getDate();return `${d.toLocaleDateString("en",{weekday:"short"}).charAt(0)}${u}`});let l=new Intl.DateTimeFormat("en",{weekday:"short",day:"numeric"});return d=>Sn(d,l)}if(r<=720){if(o)return n(d=>{let u=d.getMonth()+1,m=d.getDate();return `${u}/${m}`});let l=new Intl.DateTimeFormat("en",{month:"short",day:"numeric"});return d=>Sn(d,l)}let a=e.start.getFullYear(),i=e.end.getFullYear(),s=a!==i;if(o)return n(l=>{let d=l.getMonth()+1,u=l.getDate(),m=s?`/${l.getFullYear().toString().slice(-2)}`:"";return `${d}/${u}${m}`});let c=new Intl.DateTimeFormat("en",{month:"short",day:"numeric",...s&&{year:"numeric"}});return l=>Sn(l,c)}var ao={displayXl:"text-display-xl",displayLg:"text-display-lg",displayMd:"text-display-md",displaySm:"text-display-sm",headingXl:"text-heading-xl",headingLg:"text-heading-lg",headingMd:"text-heading-md",headingSm:"text-heading-sm",bodyLg:"text-body-lg",bodyMd:"text-body-md",bodySm:"text-body-sm",labelLg:"text-label-lg",labelMd:"text-label-md",labelSm:"text-label-sm",code:"text-code",agent:"text-agent"};function yt(e,...t){return er(ao[e],...t)}function Ze(e=false){return `${e?"outline outline-1 outline-border-input data-[focus-visible]:outline-2 data-[focus-visible]:outline-action-default data-[focus-visible]:outline-offset-0 invalid:outline-2 invalid:outline-feedback-error-border group-invalid:outline-2 group-invalid:outline-feedback-error-border forced-colors:focus:outline-[Highlight] forced-colors:focus:outline-2 forced-colors:focus:outline-offset-2":"outline-none data-[focus-visible]:outline data-[focus-visible]:outline-2 data-[focus-visible]:outline-action-default data-[focus-visible]:outline-offset-0 invalid:outline-2 invalid:outline-feedback-error-border group-invalid:outline-2 group-invalid:outline-feedback-error-border forced-colors:focus:outline-[Highlight] forced-colors:focus:outline-2 forced-colors:focus:outline-offset-2"}`}function ke(e,t){return reactAriaComponents.composeRenderProps(e,r=>tailwindMerge.twMerge(t,r))}var Ye={sm:{text:"text-[length:var(--control-text-sm)]",height:"h-[var(--control-sm-height)]",padding:"px-[var(--control-padding-sm)]",paddingY:"py-[var(--control-gap-sm)]",gap:"gap-[var(--control-gap-sm)]"},md:{text:"text-[length:var(--control-text-md)]",height:"h-[var(--control-md-height)]",padding:"px-[var(--control-padding-md)]",paddingY:"py-[var(--control-gap-md)]",gap:"gap-[var(--control-gap-md)]"},lg:{text:"text-[length:var(--control-text-lg)]",height:"h-[var(--control-lg-height)]",padding:"px-[var(--control-padding-lg)]",paddingY:"py-[var(--control-gap-lg)]",gap:"gap-[var(--control-gap-lg)]"},xl:{text:"text-[length:var(--control-text-xl)]",height:"h-[var(--control-xl-height)]",padding:"px-[var(--control-padding-xl)]",paddingY:"py-[var(--control-gap-xl)]",gap:"gap-[var(--control-gap-xl)]"}};var sS="flex font-medium justify-center items-center gap-2 text-center transition rounded-[var(--control-border-radius)] whitespace-nowrap box-border",lS="bg-action-primary text-[color:var(--color-action-primary-text)] hover:bg-action-primary-hover forced-colors:bg-[ButtonText] forced-colors:text-[ButtonFace] border-2 border-transparent",cS={primary:lS,secondary:"bg-action-secondary text-[color:var(--color-action-secondary-text)] border-2 border-border-muted hover:bg-action-secondary-hover forced-colors:border-[ButtonBorder] forced-colors:bg-[ButtonFace] forced-colors:text-[ButtonText]",ghost:"border-none text-text-primary hover:bg-text-primary/5 forced-colors:text-[ButtonText] forced-colors:hover:bg-[ButtonFace]",destructive:"bg-transparent text-feedback-error-text border-2 border-border-muted hover:bg-feedback-error-background/50 forced-colors:border-[ButtonBorder] forced-colors:bg-[ButtonFace] forced-colors:text-[Mark]",link:"!text-action-primary hover:text-action-primary/90 hover:underline hover:decoration-2 hover:underline-offset-4",icon:"border-none text-text-primary hover:bg-background-hover hover:text-text-primary forced-colors:text-[ButtonText] forced-colors:hover:bg-[ButtonFace] p-1 flex-shrink-0 rounded-[var(--control-border-radius)]",unstyled:"bg-transparent"},Pf={full:"w-full",default:"w-fit"},dS="opacity-50 cursor-not-allowed pointer-events-none",uS="opacity-100 cursor-pointer",pS={"top-right":"-right-2 -top-2","top-left":"-left-2 -top-2","bottom-right":"-right-2 -bottom-2","bottom-left":"-left-2 -bottom-2"},mS={primary:"bg-action-primary text-[color:var(--color-action-primary-text)]",destructive:"bg-feedback-error-border text-text-inverse"};function fS(e){return !e||e==="default"||e==="brand"?"primary":e}function gS(e){let{variant:t="primary",size:r="md",isDisabled:o,fullWidth:n=false,isLoading:a=false}=e,i=fS(t),s=i==="unstyled"?"":`${sS} ${cS[i]}`;i!=="unstyled"&&(s+=` ${Ye[r].text} ${Ye[r].height} ${Ye[r].padding} ${Ye[r].gap}`),o||a?s+=` ${dS}`:s+=` ${uS}`,n?s+=` ${Pf.full}`:s+=` ${Pf.default}`;let c=i==="primary"?"focus-visible:outline-action-primary":void 0;return [s,Ze(),c].filter(Boolean).join(" ")}function _(e){let{icon:t,children:r,isLoading:o=false,loadingText:n,loadingIndicator:a,size:i="md",iconPosition:s="left",iconWeight:c,href:l,className:d,badgeNumber:u,badgeVariant:m="primary",badgePosition:p="top-right",style:f,target:g,rel:h,...b}=e,y=t?jsxRuntime.jsx(F,{name:t,size:i,weight:c}):null,x=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s==="left"&&y,typeof r=="function"?null:r,s==="right"&&y]}),v=jsxRuntime.jsxs("div",{className:"relative inline-flex items-center justify-center",children:[jsxRuntime.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:a||jsxRuntime.jsx(F,{name:"CircleNotch",size:i,className:"animate-spin","aria-hidden":"true"})}),jsxRuntime.jsx("div",{className:"invisible","aria-hidden":"true",children:x}),n&&jsxRuntime.jsx("span",{className:"sr-only",role:"status","aria-live":"polite",children:n})]}),S=(u??0)>0,w=tailwindMerge.twMerge(gS(e),d),k=l?{href:l,target:g,rel:h,...b}:{};if(l){let{onPress:T,onPressStart:E,onPressEnd:I,onPressChange:R,onPressUp:L,onAuxClick:M,onContextMenu:V,onDoubleClick:z,...U}=b;Object.assign(k,U);}let P=l?jsxRuntime.jsx(reactAriaComponents.Link,{...k,...o&&{"aria-busy":true},style:S?void 0:f,className:w,children:o?v:typeof r=="function"?(function(T){return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s==="left"&&y,r(T),s==="right"&&y]})}):x}):jsxRuntime.jsx(reactAriaComponents.Button,{...b,...o&&{"aria-busy":true},style:S?void 0:f,className:w,children:o?v:typeof r=="function"?(function(T){return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s==="left"&&y,r(T),s==="right"&&y]})}):x});return S?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("relative flex",d),style:f,children:[P,jsxRuntime.jsx("span",{className:`absolute ${pS[p]} flex h-5 w-5 items-center justify-center rounded-full ${mS[m]} text-xs font-medium`,"aria-label":`${u} items`,children:u})]}):P}function Id({action:e,defaultVariant:t,defaultSize:r="lg"}){let o=!!e.formId;return jsxRuntime.jsx(_,{type:o?"submit":"button",form:o?e.formId:void 0,size:e.size||r,variant:e.variant||t,onPress:o?void 0:e.onPress,isLoading:e.isLoading,isDisabled:e.isDisabled,children:e.label})}function Ko({primaryAction:e,secondaryAction:t,tertiaryAction:r,footerContent:o}){let n=e||t||r;return !n&&!o?null:jsxRuntime.jsxs("div",{className:`flex w-full flex-col items-center justify-center border-t p-4 ${o?"h-28":""}`,children:[o&&jsxRuntime.jsx("div",{className:"flex h-10 justify-center",children:o}),n&&jsxRuntime.jsxs("div",{className:"flex w-full items-center justify-between gap-3",children:[jsxRuntime.jsx("div",{children:r&&jsxRuntime.jsx(Id,{action:r,defaultVariant:"destructive"})}),jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[t&&jsxRuntime.jsx(Id,{action:t,defaultVariant:"secondary"}),e&&jsxRuntime.jsx(Id,{action:e,defaultVariant:"primary"})]})]})]})}var bS={heading:{sm:ao.headingSm,md:ao.headingMd,lg:ao.headingLg,xl:ao.headingXl},display:{sm:ao.displaySm,md:ao.displayMd,lg:ao.displayLg,xl:ao.displayXl}},xS={page:"h-16 leading-[62px]"};function rr({tag:e="h1",variant:t="heading",size:r="lg",height:o,className:n="",children:a}){let i=r==="xs"?"sm":r,s=bS[t][i],c=o?xS[o]:"";return jsxRuntime.jsx(e,{className:er(s,"text-text-primary",c,n),children:a})}var Jt=({title:e,onClose:t,hideCloseIcon:r=false,titleAlign:o="left",hasBackArrow:n=false,onBack:a,headerContent:i})=>jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("relative flex h-16 w-full flex-shrink-0 items-center justify-between border-b px-6",e&&"border-b",o==="center"?"justify-center":""),children:[n&&jsxRuntime.jsx(_,{variant:"icon",onPress:a,className:"absolute left-6","aria-label":"Go back",children:jsxRuntime.jsx(F,{name:"CaretLeft","data-testid":"back-arrow"})}),i||jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[e&&jsxRuntime.jsx(rr,{size:"xs",children:e}),t&&!r&&jsxRuntime.jsx(_,{variant:"icon",onPress:t,"aria-label":"Close dialog",children:jsxRuntime.jsx(F,{name:"X","data-testid":"close-button"})})]})]});var Vd=48,yi=Ke.createContext(false);function Yo({children:e}){return jsxRuntime.jsx(yi.Provider,{value:true,children:e})}function Mf({children:e}){return jsxRuntime.jsx(yi.Provider,{value:false,children:e})}function ka(e,t){let r=Ke.useContext(yi),{ref:o,height:n}=kS();return {headerRef:o,headerHeight:!r||e||t?n||Vd:0}}function Lf(){return !Ke.useContext(yi)}function kS(){let[e,t]=Ke.useState(0),r=Ke.useRef(null),o=Ke.useRef(null),n=Ke.useCallback(a=>{if(o.current?.disconnect(),o.current=null,r.current=a,!a){t(0);return}let i=()=>t(r.current?.offsetHeight??0);i(),o.current=new ResizeObserver(i),o.current.observe(a);},[]);return Ke.useEffect(()=>()=>o.current?.disconnect(),[]),{ref:n,height:e}}function Ta({title:e,controls:t,actions:r,containerRef:o,marginLeft:n=0,marginRight:a=0}){let s=!Ke.useContext(yi);return !s&&!t&&!r?null:jsxRuntime.jsxs("div",{ref:o,"data-chart-header":"",className:"flex min-h-[32px] shrink-0 flex-wrap items-center justify-between gap-3 pb-4",style:{marginLeft:n,marginRight:a},children:[s?jsxRuntime.jsx("h3",{className:"truncate text-sm font-medium text-text-primary",children:e}):jsxRuntime.jsx("span",{}),t?jsxRuntime.jsx("div",{"data-chart-header-controls":"",className:"flex min-w-0 flex-1 items-center justify-end",children:t}):null,r?jsxRuntime.jsx("div",{"data-chart-header-actions":"",className:"flex shrink-0 items-center gap-1 -mt-[9px]",children:r}):null]})}var K=({width:e,height:t,variant:r="rect",animation:o="pulse",gradient:n=false,flex:a=false,stack:i,responsive:s,delay:c=0,adjustAnimationSpeedBasedOnWidth:l=false,ariaLabel:d,className:u,"data-testid":m})=>{let[p,f]=Ke.useState(c===0);if(Ke.useEffect(()=>{if(c>0){let S=setTimeout(()=>f(true),c);return ()=>clearTimeout(S)}},[c]),!p)return null;let g=n?"bg-gradient-to-r from-[var(--color-skeleton-base)] via-[var(--color-skeleton-highlight)] to-[var(--color-skeleton-base)]":"bg-[var(--color-skeleton-base)]",h=l&&e?(()=>{let S=typeof e=="number"?e:parseFloat(String(e));return isNaN(S)?"":`animation-duration-[${Math.max(.8,S/100)}s]`})():"",b=o==="pulse"?`animate-pulse ${h}`:o==="wave"?`relative overflow-hidden before:absolute before:inset-0 before:bg-gradient-to-r before:from-transparent before:via-[var(--color-skeleton-wave)] before:to-transparent before:animate-wave ${h}`:"",y="rounded-sm";r==="circle"&&(y="rounded-full"),r==="text"&&(y="h-4 w-full rounded-sm");let x=a?"flex-1 min-w-0":"",v=s?Object.entries(s).map(([S,w])=>`${S}:w-[${w}]`).join(" "):"";return i?jsxRuntime.jsx("div",{className:"space-y-2","data-testid":m,children:i.map((S,w)=>jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(g,b,y,x,v,u),style:{width:S,height:t}},w))}):jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(g,b,y,x,v,u),style:{width:e,height:t},role:"presentation","aria-hidden":!d,"aria-label":d??void 0,"data-testid":m})},Af=({count:e=1,children:t,className:r,"data-testid":o})=>jsxRuntime.jsx("div",{className:r,"data-testid":o,children:Array.from({length:e}).map((n,a)=>jsxRuntime.jsx("div",{children:t},a))});var ES={outlined:"bg-background-surface border border-border-default",elevated:"bg-background-surface border-0 shadow-md",filled:"bg-background-muted border-0",ghost:"bg-transparent border-0 shadow-none"},MS="rounded-lg",zd={square:"aspect-square",video:"aspect-video",wide:"aspect-[2/1]",auto:""},LS={start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between"};function DS(e){return Ke__namespace.default.Children.toArray(e).some(t=>Ke__namespace.default.isValidElement(t)&&t.type===Fs&&!!t.props.title)}function Je({variant:e="outlined",className:t,children:r,isLoading:o=false,layout:n="default"}){let a=DS(r)?jsxRuntime.jsx(Yo,{children:r}):r;return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-full overflow-hidden",ES[e],MS,n==="flex"&&"flex flex-col",t),"data-testid":"card",children:o?jsxRuntime.jsx(K,{width:"100%",height:"100%",className:"rounded-none"}):a})}function Fs({title:e,subtitle:t,actions:r,leading:o,className:n,isLoading:a=false}){return a?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("p-6 pb-4",n),children:[jsxRuntime.jsxs("div",{className:"flex justify-between items-start mb-1",children:[jsxRuntime.jsx(K,{width:120,height:20}),jsxRuntime.jsx(K,{width:24,height:24})]}),t&&jsxRuntime.jsx(K,{width:200,height:16})]}):!e&&!t&&!r&&!o?null:jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("p-6 pb-4",n),children:jsxRuntime.jsxs("div",{className:"flex justify-between items-start gap-4",children:[o&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:o}),jsxRuntime.jsxs("div",{className:"min-w-0 flex-1",children:[e&&jsxRuntime.jsx("div",{className:"mb-1",children:typeof e=="string"?jsxRuntime.jsx(rr,{tag:"h3",size:"sm",className:"text-text-primary",children:e}):e}),t&&jsxRuntime.jsx("div",{className:yt("bodySm","text-text-secondary"),children:t})]}),r&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:r})]})})}function Od({src:e,alt:t,aspectRatio:r="auto",className:o,children:n,isLoading:a=false}){return a?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("bg-background-muted",zd[r],o),children:jsxRuntime.jsx(K,{width:"100%",height:"100%"})}):n?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-hidden",zd[r],o),children:n}):e?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-hidden",zd[r],o),children:jsxRuntime.jsx("img",{src:e,alt:t||"",className:"w-full h-full object-cover",loading:"lazy"})}):null}function Hd({className:e,children:t,isLoading:r=false,fill:o=false,style:n}){let i=e?.match(/p(?:t|b|l|r|x|y)?-(?:\d+(?:\.\d+)?|px|\[.+?\])/)?"":"px-6 py-4";return r?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(i,o&&"flex-1 flex flex-col min-h-0",e),style:n,children:jsxRuntime.jsxs("div",{className:"space-y-2",children:[jsxRuntime.jsx(K,{width:"100%",height:16}),jsxRuntime.jsx(K,{width:"80%",height:16}),jsxRuntime.jsx(K,{width:"60%",height:16})]})}):t?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(i,"text-text-primary",o&&"flex-1 flex flex-col min-h-0",e),style:n,children:t}):null}function Gd({className:e,children:t,align:r="end",isLoading:o=false}){return o?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("px-6 py-4 flex gap-2 justify-end",e),children:[jsxRuntime.jsx(K,{width:80,height:32}),jsxRuntime.jsx(K,{width:60,height:32})]}):t?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("px-6 py-4 flex items-center gap-2",LS[r],e),children:t}):null}Je.Header=Fs;Je.Media=Od;Je.Content=Hd;Je.Footer=Gd;var Kr=class extends Ke.Component{constructor(){super(...arguments);di(this,"state",{hasError:false});di(this,"handleRetry",()=>{this.setState({hasError:false,error:void 0}),typeof window<"u"&&window.location.reload();});}static getDerivedStateFromError(r){return {hasError:true,error:r}}componentDidCatch(r,o){console.error("Error Boundary caught an error:",r,o);}render(){return this.state.hasError?this.props.fallback?this.props.fallback:jsxRuntime.jsxs(Je,{children:[this.props.title&&jsxRuntime.jsx(Je.Header,{title:this.props.title}),jsxRuntime.jsx(Je.Content,{children:jsxRuntime.jsxs("div",{className:"flex flex-col items-center justify-center gap-4","data-testid":"error-boundary",children:[jsxRuntime.jsx("p",{className:"text-feedback-error-text",children:this.state.error?.message||"Something went wrong"}),jsxRuntime.jsx("button",{className:"rounded bg-action-default px-4 py-2 text-[color:var(--color-action-default-text)] hover:bg-action-default-hover",onClick:this.handleRetry,children:"Retry"})]})})]}):this.props.children}};var BS=.3,VS=.5;function gt({children:e,title:t,headerContent:r,titleAlign:o="left",hideCloseIcon:n=false,hasBackArrow:a=false,onBack:i,isOpen:s,onClose:c,isDismissable:l=true,transparentOverlay:d=false,primaryAction:u,secondaryAction:m,footerContent:p,maxHeight:f="80vh",height:g,maxWidth:h="640px",contentPadding:b=true,showHandle:y=true,animationVariant:x="scale",className:v}){let[S,w]=Ke.useState(false),[k,P]=Ke.useState(0),[T,E]=Ke.useState(false),I=Ns(s),R=I?.height??null,L=I?.keyboardOffset??0,M=Ke.useRef(null),V=Ke.useRef(null),z=Ke.useRef(null),U=Ke.useRef({isDragging:false,startY:0,startTime:0,pointerId:null});Ke.useEffect(()=>{if(s){let A=setTimeout(()=>{w(true),setTimeout(()=>w(false),600);},400);return ()=>clearTimeout(A)}},[s]),Ke.useEffect(()=>{s||(P(0),E(false),U.current={isDragging:false,startY:0,startTime:0,pointerId:null});},[s]),Ke.useEffect(()=>{let A=V.current;if(!A||!s)return;let W=null,N=C=>{let D=C.target;D&&["INPUT","TEXTAREA","SELECT"].includes(D.tagName)&&(W&&clearTimeout(W),W=setTimeout(()=>{D.scrollIntoView({block:"nearest",behavior:"smooth"});},320));};return A.addEventListener("focusin",N),()=>{A.removeEventListener("focusin",N),W&&clearTimeout(W);}},[s]);let Q=Ke.useCallback(A=>{l&&(A.pointerType!=="touch"&&A.pointerType!=="pen"||(z.current&&(clearTimeout(z.current),z.current=null),U.current={isDragging:true,startY:A.clientY,startTime:Date.now(),pointerId:A.pointerId},E(false),A.currentTarget.setPointerCapture(A.pointerId)));},[l]),Z=Ke.useCallback(A=>{let{isDragging:W,startY:N,pointerId:C}=U.current;if(!W||A.pointerId!==C)return;let D=A.clientY-N;P(Math.max(0,D));},[]),H=Ke.useCallback(A=>{let{isDragging:W,startY:N,startTime:C,pointerId:D}=U.current;if(!W||A.pointerId!==D)return;let B=A.clientY-N,X=Date.now()-C,ee=B/X;U.current={isDragging:false,startY:0,startTime:0,pointerId:null};let $=(M.current?.getBoundingClientRect().height??0)*BS;(B>$||ee>VS&&B>50)&&l?(c?.(),P(0)):(E(true),P(0),z.current=setTimeout(()=>{E(false),z.current=null;},200));},[l,c]);if(!s)return null;let j=t||r,G=u||m||p;return jsxRuntime.jsx(Kr,{children:jsxRuntime.jsx(br,{isOpen:s,onOpenChange:A=>{A||c?.();},isDismissable:l,transparent:d,style:{paddingBottom:L>0?`${L}px`:void 0,transition:"padding-bottom 0.25s ease-out"},className:"flex items-end justify-center p-0 sm:p-4",children:jsxRuntime.jsx(reactAriaComponents.Modal,{className:"w-full max-w-full p-0 sm:p-2 outline-none focus:outline-none focus-visible:outline-none ring-0 focus:ring-0 focus-visible:ring-0",isDismissable:l,children:jsxRuntime.jsx("div",{ref:M,className:tailwindMerge.twMerge("w-full",T&&"transition-transform duration-200"),style:{transform:k>0?`translateY(${k}px)`:void 0},children:jsxRuntime.jsxs(reactAriaComponents.Dialog,{className:tailwindMerge.twMerge("relative flex w-full flex-col overflow-hidden","bg-background-surface","shadow-2xl shadow-black/30 dark:shadow-black/60","border-t border-x border-border-default/40","outline-none focus:outline-none focus-visible:outline-none ring-0 focus:ring-0 focus-visible:ring-0 focus:shadow-none","origin-bottom",x==="scale"?"animate-[tray-enter-scale_400ms_cubic-bezier(0.32,0.72,0,1)]":"animate-[tray-enter_400ms_cubic-bezier(0.32,0.72,0,1)]",x==="scale"?"data-[exiting]:animate-[tray-exit-scale_250ms_cubic-bezier(0.32,0,0.67,0)]":"data-[exiting]:animate-[tray-exit_250ms_cubic-bezier(0.32,0,0.67,0)]",v),style:{maxWidth:h,...g?{height:g}:{maxHeight:/\d/.test(f)?R!==null?`min(${f}, ${Math.max(R-8,0)}px, 100dvh)`:`min(${f}, 100dvh)`:f}},children:[y&&jsxRuntime.jsx("div",{className:"absolute top-0 left-0 right-0 h-8 z-10 flex justify-center items-start pt-2 touch-none cursor-grab active:cursor-grabbing",onPointerDown:Q,onPointerMove:Z,onPointerUp:H,onPointerCancel:H,children:jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("h-1 w-12 rounded-full bg-border-muted transition-all duration-300","hover:bg-border-default hover:w-16",S&&"animate-[handle-wiggle_0.6s_ease-in-out]")})}),j&&(a?jsxRuntime.jsx(Jt,{title:t,headerContent:r,titleAlign:o,hideCloseIcon:n||!c,hasBackArrow:true,onBack:i??(()=>{}),onClose:c||(()=>{})}):jsxRuntime.jsx(Jt,{title:t,headerContent:r,titleAlign:o,hideCloseIcon:n||!c,onClose:c||(()=>{})})),jsxRuntime.jsx("div",{ref:V,className:tailwindMerge.twMerge("flex-1 min-h-0 overflow-y-auto overscroll-contain",b?"p-4":"p-0"),children:e}),G&&jsxRuntime.jsx(Ko,{primaryAction:u,secondaryAction:m,footerContent:p})]})})})})})}gt.displayName="Tray";function Ra({children:e,items:t,className:r,align:o="left",textAlign:n="left",size:a="md",onAction:i,header:s,footer:c,useMobileTray:l=true,popoverClassName:d}){let[u,m]=Ke.useState(false),{isMobile:p}=$t();if(l&&p){let g=Ke__namespace.default.isValidElement(e)?Ke__namespace.default.cloneElement(e,{onPress:()=>m(true)}):e,y=(x=>{if(typeof x=="string")return x;if(Ke__namespace.default.isValidElement(x)){let v=x.props;if(typeof v.children=="string")return v.children;if(Array.isArray(v.children))return v.children.find(w=>typeof w=="string")||""}return ""})(e)||"Actions";return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:r,children:g}),jsxRuntime.jsx(gt,{isOpen:u,onClose:()=>m(false),title:y,contentPadding:false,headerContent:s,footerContent:c,children:jsxRuntime.jsx("div",{className:"flex flex-col",children:t.map(x=>{let v=x.href&&!x.disabled?"a":"button";return jsxRuntime.jsxs(v,{...x.href&&!x.disabled?{href:x.href}:{},onClick:()=>{x.disabled||(x.onAction?x.onAction():i?.(x),m(false));},disabled:x.disabled,"data-testid":x.testId,className:tailwindMerge.twMerge("flex w-full items-center text-start transition-colors",!x.noPadding&&"px-6 py-3","border-b border-border-muted last:border-0",x.variant==="destructive"?"text-feedback-error-text hover:bg-feedback-error-background active:bg-feedback-error-background/80":"text-text-primary hover:bg-background-hover active:bg-background-hover/80",x.disabled&&"opacity-50 cursor-not-allowed"),children:[x.iconName&&jsxRuntime.jsx(F,{name:x.iconName,size:20,className:"mr-3 flex-shrink-0"}),jsxRuntime.jsx("div",{className:"flex flex-1 flex-col",children:x.render?x.render():jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("span",{className:x.subtitle?"font-medium":"",children:x.name}),x.subtitle&&jsxRuntime.jsx("span",{className:"text-sm text-text-secondary",children:x.subtitle})]})})]},x.id)})})})]})}return jsxRuntime.jsx("div",{className:r,children:jsxRuntime.jsxs(reactAriaComponents.MenuTrigger,{children:[e,jsxRuntime.jsx(ft,{className:tailwindMerge.twMerge("w-fit min-w-[180px] overflow-auto rounded-[var(--control-border-radius)] border border-border-default","bg-background-surface shadow-lg","animate-in fade-in zoom-in-97","duration-200 ease-out","data-[exiting]:animate-out data-[exiting]:fade-out data-[exiting]:zoom-out-97","data-[exiting]:duration-150 data-[exiting]:ease-in",o==="right"?"origin-top-right":"origin-top-left",d),placement:o==="right"?"bottom end":"bottom start",children:jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex min-w-[180px] flex-col gap-1 py-1",d),children:[s?jsxRuntime.jsx("div",{className:"px-3 pb-2 pt-3",children:s}):null,jsxRuntime.jsx(reactAriaComponents.Menu,{className:"!outline-none",children:t.map(g=>jsxRuntime.jsx(WS,{id:g.id,href:g.href,onAction:()=>{g.onAction?g.onAction():i?.(g);},textAlign:n,size:a,iconName:g.iconName,isDisabled:g.disabled,variant:g.variant,subtitle:g.subtitle,render:g.render,noPadding:g.noPadding,"data-testid":g.testId,children:g.name},g.id))}),c?jsxRuntime.jsx("div",{className:"px-3 pb-3 pt-2",children:c}):null]})})]})})}function WS({textAlign:e="left",iconName:t,size:r="md",isDisabled:o,children:n,variant:a="default",subtitle:i,render:s,noPadding:c,...l}){let d={sm:"px-3 py-2 text-sm",md:i?"px-4 py-2.5 text-base":"px-4 py-2 text-base"},u="text-text-primary hover:bg-background-hover data-[focused]:bg-background-hover data-[focus-visible]:ring-2 data-[focus-visible]:ring-action-primary data-[focus-visible]:ring-inset",m={primary:u,default:u,destructive:"text-feedback-error-text hover:bg-feedback-error-background data-[focused]:bg-feedback-error-background data-[focus-visible]:ring-2 data-[focus-visible]:ring-feedback-error-border data-[focus-visible]:ring-inset"};return s?jsxRuntime.jsx(reactAriaComponents.MenuItem,{...l,isDisabled:o,className:tailwindMerge.twMerge("group box-border flex w-full cursor-pointer items-center rounded-sm outline-none transition-colors",!c&&d[r],m[a],e==="right"?"justify-end":"justify-start",o&&"pointer-events-none opacity-50"),children:s()}):jsxRuntime.jsxs(reactAriaComponents.MenuItem,{...l,isDisabled:o,className:tailwindMerge.twMerge("group box-border flex w-full cursor-pointer items-center rounded-sm outline-none transition-colors",!c&&d[r],m[a],e==="right"?"justify-end":"justify-start",o&&"pointer-events-none opacity-50"),children:[t&&e==="left"&&jsxRuntime.jsx(F,{name:t,size:r==="sm"?16:20,className:"mr-3 flex-shrink-0"}),jsxRuntime.jsxs("div",{className:"flex flex-1 flex-col",children:[jsxRuntime.jsx("span",{className:i?"font-medium":"",children:n}),i&&jsxRuntime.jsx("span",{className:"text-sm text-text-secondary",children:i})]}),t&&e==="right"&&jsxRuntime.jsx(F,{name:t,size:r==="sm"?16:20,className:"ml-3 flex-shrink-0"})]})}var Po=({className:e,size:t=24,color:r="text-action-brand"})=>jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("inline-block animate-spin rounded-full border-2 border-solid border-current border-r-transparent",r,e),style:{width:t,height:t},role:"status","aria-label":"loading",children:jsxRuntime.jsx("span",{className:"sr-only",children:"Loading..."})});function Mr({state:e,message:t,className:r,customIndicator:o}){if(e!=="loading-more")return null;let n=jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center justify-center gap-2 py-4","text-text-secondary",r),"aria-label":t||"Loading",children:[jsxRuntime.jsx(Po,{size:20,color:"text-text-secondary"}),t&&jsxRuntime.jsx("span",{className:"text-sm","aria-hidden":"true",children:t})]});return o||n}function Jo({items:e,onLoadMore:t,hasMore:r,isLoading:o=false,loadingState:n,enableVirtualization:a,estimatedItemSize:i=50,overscan:s=5,scrollElement:c,loadMoreThreshold:l=100}){let d=Ke.useRef(null),u=Ke.useRef(null),m=Ke.useRef(false),[p,f]=Ke.useState(0);Ke.useEffect(()=>{u.current&&(c||d.current)&&f(P=>P+1);},[c,e.length]);let g=n||(o?e.length===0?"loading":"loading-more":"idle"),h=g==="loading",b=g==="loading-more",y=a!==void 0?a:e.length>=100,x=reactVirtual.useVirtualizer({count:e.length,getScrollElement:()=>c||d.current,estimateSize:()=>i,overscan:s}),v=y?x:null,S=y?x.getVirtualItems():[];Ke.useEffect(()=>{let P=u.current,T=c||d.current;if(!P||!T||!r||o||!t)return;let E=new IntersectionObserver(I=>{let[R]=I;R?.isIntersecting&&!m.current&&r&&t&&(m.current=true,Promise.resolve(t()).finally(()=>{m.current=false;}));},{root:T,rootMargin:`0px 0px ${l}px 0px`,threshold:0});return E.observe(P),()=>{E.disconnect();}},[r,o,t,c,l,p]);let w=Ke.useCallback((P,T)=>{v?v.scrollToIndex(P,T):d.current&&d.current.children[P]?.scrollIntoView({behavior:"smooth",block:T?.align||"start"});},[v]),k=Ke.useCallback(()=>{v?v.scrollToIndex(0,{align:"start"}):d.current&&d.current.scrollTo({top:0,behavior:"smooth"});},[v]);return {virtualizer:v,virtualItems:S,computedLoadingState:g,isInitialLoad:h,isLoadingMore:b,scrollRef:d,loadMoreRef:u,scrollToIndex:w,scrollToTop:k}}var Ea=Ke.createContext({variant:"timeline",size:"md"});function Kf(){return Ke.useContext(Ea)}function Os(e){return Ke.isValidElement(e)&&e.type===Ws}function _S(e){return Ke.isValidElement(e)&&e.type===Gs}function jd({variant:e="timeline",size:t="md",className:r,children:o,items:n,renderItem:a,isLoading:i=false,loadingState:s,error:c=null,renderLoadingSkeleton:l,loadingSkeletonCount:d=5,emptyMessage:u="No activity found.",onLoadMore:m,hasMore:p=false,enableVirtualization:f,estimatedItemSize:g,loadingIndicator:h,height:b,maxHeight:y,...x}){let v=Ke.useRef(null),{isMobile:S}=$t(),w=S?"stacked":e,k=n!==void 0&&a!==void 0,{scrollRef:P,loadMoreRef:T,virtualizer:E,virtualItems:I,isLoadingMore:R,computedLoadingState:L}=Jo({items:n||[],onLoadMore:k?m:void 0,hasMore:k?p:false,isLoading:i,loadingState:s,enableVirtualization:k?f:false,estimatedItemSize:g||(w==="stacked"?120:150),overscan:5}),M=k&&P?P:v,V=Ke.useMemo(()=>({variant:w,size:t}),[w,t]),z=w==="timeline"?t==="sm"?"gap-4":"gap-6":"gap-0",U=w==="stacked"?"divide-y divide-border-subtle rounded-lg border border-border-subtle bg-background-surface":"",Q={};if(k&&m&&(b?(Q.height=typeof b=="number"?`${b}px`:b,Q.overflowY="auto"):y?(Q.maxHeight=typeof y=="number"?`${y}px`:y,Q.overflowY="auto"):(Q.height="600px",Q.overflowY="auto")),k){let j=L==="loading"||i&&(!n||n.length===0);if(j){let A=l?jsxRuntime.jsx(jsxRuntime.Fragment,{children:Array.from({length:d}).map((W,N)=>jsxRuntime.jsx("div",{children:l()},`skeleton-${N}`))}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:Array.from({length:d}).map((W,N)=>{let C=t==="sm"?"gap-2":"gap-3";if(w==="timeline"){let D=t==="sm"?"pt-3":"pt-4",B=t==="sm"?"p-3":"p-4";return jsxRuntime.jsxs("div",{className:"group relative grid items-start gap-4 grid-cols-[3rem_1fr]",children:[jsxRuntime.jsxs("div",{className:`relative flex h-full flex-col items-center ${D}`,children:[jsxRuntime.jsx(K,{width:32,height:32,variant:"circle"}),N<d-1&&jsxRuntime.jsx("span",{className:"absolute top-[2rem] left-1/2 w-0 border-l-2 border-dotted -translate-x-1/2 h-[calc(100%+2.5rem)] border-border-muted"})]}),jsxRuntime.jsxs("div",{className:`min-w-0 flex flex-col ${C} ${B} rounded-md border border-border-subtle bg-background-surface`,children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-3",children:[jsxRuntime.jsx(K,{width:"50%",height:16}),jsxRuntime.jsx(K,{width:"15%",height:12})]}),jsxRuntime.jsx(K,{width:"85%",height:t==="sm"?14:15}),jsxRuntime.jsx(K,{width:"70%",height:t==="sm"?14:15})]})]},`skeleton-${N}`)}else return jsxRuntime.jsxs("div",{className:`flex flex-col ${t==="sm"?"px-3 py-3":"px-4 py-4"}`,children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[jsxRuntime.jsx(K,{width:24,height:24,variant:"circle"}),jsxRuntime.jsx(K,{width:"50%",height:16})]}),jsxRuntime.jsxs("div",{className:`mt-3 flex flex-col ${C}`,children:[jsxRuntime.jsx(K,{width:"85%",height:t==="sm"?14:15}),jsxRuntime.jsx(K,{width:"70%",height:t==="sm"?14:15}),jsxRuntime.jsx(K,{width:"20%",height:12})]})]},`skeleton-${N}`)})});return jsxRuntime.jsx(Ea.Provider,{value:V,children:jsxRuntime.jsx("div",{ref:M,"data-slot":"feed","data-variant":w,className:tailwindMerge.twMerge("flex flex-col",z,U,r),style:Q,...x,children:A})})}if(c)return jsxRuntime.jsx(Ea.Provider,{value:V,children:jsxRuntime.jsx("div",{ref:M,"data-slot":"feed","data-variant":w,className:tailwindMerge.twMerge("flex flex-col",z,U,r),style:Q,...x,children:jsxRuntime.jsx("div",{className:"p-4 text-center text-feedback-error-text",children:c})})});if(!n||n.length===0)return jsxRuntime.jsx(Ea.Provider,{value:V,children:jsxRuntime.jsx("div",{ref:M,"data-slot":"feed","data-variant":w,className:tailwindMerge.twMerge("flex flex-col",z,U,r),style:Q,...x,children:jsxRuntime.jsx("div",{className:"p-4 text-center text-text-secondary",children:u})})});let G=E?I?.map(A=>({virtualItem:A,item:n[A.index],index:A.index}))||[]:n.map((A,W)=>({item:A,index:W,virtualItem:null}));return jsxRuntime.jsx(Ea.Provider,{value:V,children:jsxRuntime.jsxs("div",{ref:M,"data-slot":"feed","data-variant":w,className:tailwindMerge.twMerge("flex flex-col",z,U,r),style:{...Q,position:E?"relative":void 0},...x,children:[E?jsxRuntime.jsxs("div",{style:{height:`${E.getTotalSize()}px`,position:"relative"},children:[G.map(({item:A,index:W,virtualItem:N})=>{if(!A||!N)return null;let C=a(A,W),D=w==="timeline"&&Ke.isValidElement(C)&&Os(C)?Ke.cloneElement(C,{showConnector:W!==n.length-1}):C;return jsxRuntime.jsx("div",{style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${N.start}px)`},"data-index":N.index,ref:E.measureElement,children:D},`item-${W}`)}),R&&jsxRuntime.jsx("div",{style:{position:"absolute",top:`${E.getTotalSize()}px`,left:0,width:"100%"},children:h||jsxRuntime.jsx(Mr,{state:"loading-more"})})]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[G.map(({item:A,index:W})=>{let N=a(A,W);if(w==="timeline"&&Ke.isValidElement(N)&&Os(N)){let C=W===n.length-1;return jsxRuntime.jsx("div",{children:Ke.cloneElement(N,{showConnector:!C})},`item-${W}`)}return jsxRuntime.jsx("div",{children:N},`item-${W}`)}),R&&(h||jsxRuntime.jsx(Mr,{state:"loading-more"}))]}),m&&p&&!j&&jsxRuntime.jsx("div",{ref:T,style:E?{position:"absolute",top:`${E.getTotalSize()}px`,left:0,width:"100%",height:1}:{height:1,width:"100%"}})]})})}let Z=Ke.Children.toArray(o),H=Z.map((j,G)=>{if(Os(j)){let A=j.props.showConnector??(w==="timeline"&&G<Z.length-1),W=w==="timeline"&&G>0;return Ke.cloneElement(j,{showConnector:A,showIncomingConnector:W})}if(_S(j)){let A=G===Z.length-1;return Ke.cloneElement(j,{__isLastGroup:A,__isFirstGroup:G===0})}return j});return jsxRuntime.jsx(Ea.Provider,{value:V,children:jsxRuntime.jsx("div",{"data-slot":"feed","data-variant":w,className:tailwindMerge.twMerge("flex flex-col",z,U,r),...x,children:H})})}jd.displayName="ActivityFeed";function Gs(e){let{variant:t,size:r}=Kf(),{title:o,description:n,actions:a,children:i,className:s,__isLastGroup:c=false,__isFirstGroup:l=false,...d}=e,u=Ke.Children.toArray(i),m=u.map((g,h)=>{if(Os(g)){let b=g.props.showConnector??(t==="timeline"&&!(c&&h===u.length-1));return Ke.cloneElement(g,{showConnector:b,showIncomingConnector:t==="timeline"&&!(l&&h===0)})}return g}),p=t==="timeline"?"pl-[3rem]":r==="sm"?"px-3":"px-4",f=r==="sm"?"gap-3":"gap-4";return jsxRuntime.jsxs("section",{"data-slot":"group",className:tailwindMerge.twMerge("flex flex-col",s),...d,children:[(o||n||a)&&jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("mb-2 flex flex-wrap items-end justify-between gap-2",p),children:[jsxRuntime.jsxs("div",{className:"flex min-w-0 flex-col gap-1",children:[o&&jsxRuntime.jsx("span",{className:"text-xs font-semibold uppercase tracking-wide text-text-secondary",children:o}),n&&jsxRuntime.jsx("span",{className:"text-sm text-text-secondary",children:n})]}),a&&jsxRuntime.jsx("div",{className:"flex flex-shrink-0 items-center gap-2",children:a})]}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex flex-col",f),children:m})]})}Gs.displayName="ActivityFeedGroup";var Wf={neutral:"bg-background-muted text-text-secondary border-border-muted",brand:"bg-background-muted text-action-brand border-action-brand/30",success:"bg-background-muted text-feedback-success-text border-feedback-success-border/40",warning:"bg-background-muted text-feedback-warning-text border-feedback-warning-border/40",danger:"bg-background-muted text-feedback-error-text border-feedback-error-border/40",info:"bg-background-muted text-feedback-info-text border-feedback-info-border/40"},$S={neutral:"bg-background-subtle",brand:"bg-action-brand/5",success:"bg-feedback-success-background",warning:"bg-feedback-warning-background",danger:"bg-feedback-error-background",info:"bg-feedback-info-background"},ew={neutral:"border-border-muted",brand:"border-action-brand",success:"border-feedback-success-border",warning:"border-feedback-warning-border",danger:"border-feedback-error-border",info:"border-feedback-info-border"};function Ws(e){let{variant:t,size:r}=Kf(),{title:o,description:n,timestamp:a,meta:i,media:s,actions:c,visual:l,icon:d,iconWeight:u,tone:m="neutral",surface:p,isHighlighted:f=false,showConnector:g=true,hideIndicator:h=false,interactive:b,className:y,children:x,onKeyDown:v,showIncomingConnector:S,...w}=e,k=l??(d?jsxRuntime.jsx(F,{name:d,weight:u||"fill",className:"h-4 w-4"}):null),P=p??(t==="stacked"?"minimal":"subtle"),T=r==="sm"?"gap-2":"gap-3",E="text-xs text-text-secondary",I=r==="sm"?"text-sm":"text-[15px]",R="text-xs text-text-secondary",L=b??typeof w.onClick=="function",M=G=>{if(!L){v?.(G);return}G.key===" "?G.preventDefault():G.key==="Enter"&&(G.preventDefault(),G.currentTarget.click()),v?.(G);},V=G=>{L&&G.key===" "&&(G.preventDefault(),G.currentTarget.click());},z=L?tailwindMerge.twMerge("group cursor-pointer",Ze()):void 0,Q=jsxRuntime.jsxs("div",{"data-slot":"connector",className:tailwindMerge.twMerge("relative flex h-full flex-col items-center",P==="minimal"?r==="sm"?"pt-2":"pt-3":r==="sm"?"pt-3":"pt-4"),children:[jsxRuntime.jsx("span",{"data-slot":"indicator",className:tailwindMerge.twMerge("relative z-10 flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-full border text-sm font-medium shadow-sm ring-2 ring-background-surface",Wf[m]),children:k}),t==="timeline"&&g&&jsxRuntime.jsx("span",{"data-slot":"separator",className:"absolute top-[2rem] left-1/2 w-0 border-l-2 border-dotted -translate-x-1/2 h-[calc(100%+2.5rem)] border-border-muted"})]}),Z=f?tailwindMerge.twMerge($S[m],P==="minimal"?"rounded-md border border-border-muted":ew[m]):"";if(t==="stacked")return jsxRuntime.jsxs("div",{"data-slot":"item","data-variant":"stacked",role:L?"button":void 0,tabIndex:L?0:void 0,className:tailwindMerge.twMerge("flex flex-col",r==="sm"?"px-3 py-3":"px-4 py-4",{minimal:"",subtle:"bg-background-subtle",solid:"bg-background-muted"}[P],Z,z,L?"transition-colors hover:bg-background-subtle/80":"",y),onKeyDown:M,onKeyUp:V,...w,children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[!h&&jsxRuntime.jsx("span",{"data-slot":"indicator",className:tailwindMerge.twMerge("flex h-6 w-6 flex-shrink-0 items-center justify-center rounded-full border text-sm font-medium shadow-sm ring-2 ring-background-surface",Wf[m]),children:k}),jsxRuntime.jsx("div",{"data-slot":"title",className:"min-w-0 flex-1 text-sm font-semibold text-text-primary",children:o})]}),jsxRuntime.jsxs("div",{"data-slot":"content",className:tailwindMerge.twMerge("mt-3 flex flex-col",T),children:[n&&jsxRuntime.jsx("div",{"data-slot":"description",className:tailwindMerge.twMerge("text-text-secondary",I),children:n}),i&&jsxRuntime.jsx("div",{className:R,children:i}),s&&jsxRuntime.jsx("div",{className:"flex flex-col gap-2 text-sm text-text-secondary",children:s}),x,c&&jsxRuntime.jsx("div",{className:"flex flex-wrap gap-2 pt-1",children:c}),a&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("-mt-1.5",E),children:a})]})]});let H=P==="minimal"?r==="sm"?"py-2":"py-3":r==="sm"?"p-3":"p-4",j={minimal:"",subtle:"rounded-md border border-border-subtle bg-background-surface",solid:"rounded-md bg-background-muted shadow-sm"};return jsxRuntime.jsxs("div",{"data-slot":"item","data-variant":"timeline",role:L?"button":void 0,tabIndex:L?0:void 0,className:tailwindMerge.twMerge("group relative grid items-start gap-4 grid-cols-[3rem_1fr]",z,y),onKeyDown:M,onKeyUp:V,...w,children:[h?jsxRuntime.jsx("div",{}):Q,jsxRuntime.jsxs("div",{"data-slot":"content",className:tailwindMerge.twMerge("min-w-0 flex flex-col",T,H,j[P],Z,L?"transition-colors group-hover:bg-background-subtle/70":""),children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-3",children:[jsxRuntime.jsx("div",{"data-slot":"title",className:"min-w-0 flex-1 text-sm font-semibold text-text-primary",children:o}),a&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-shrink-0",E),children:a})]}),n&&jsxRuntime.jsx("div",{"data-slot":"description",className:tailwindMerge.twMerge("text-text-secondary",I),children:n}),i&&jsxRuntime.jsx("div",{className:R,children:i}),s&&jsxRuntime.jsx("div",{className:"flex flex-col gap-2 text-sm text-text-secondary",children:s}),x,c&&jsxRuntime.jsx("div",{className:"flex flex-wrap gap-2 pt-2",children:c})]})]})}Ws.displayName="ActivityItem";function or({isOpen:e,onClose:t,title:r,headerContent:o,titleAlign:n="left",hideCloseIcon:a=false,hasBackArrow:i=false,onBack:s,children:c,primaryAction:l,secondaryAction:d,tertiaryAction:u,footerContent:m,transparentOverlay:p=false,maxWidth:f="600px",minWidth:g="400px",maxHeight:h="85vh",height:b,mobileMaxHeight:y="90vh",mobileHeight:x,contentPadding:v=true,className:S}){let w=_t("(max-width: 767px)"),k=Ns(w&&e===void 0),P=k?.height??null,T=k?.keyboardOffset??0,E=Ke.useRef(null),I=Ke.useCallback(()=>{E.current&&E.current.scrollTop!==0&&(E.current.scrollTop=0);},[]),R=Ke.useRef(null),L=Ke.useRef(null);Ke.useEffect(()=>{let Q=L.current;if(!Q||!w)return;let Z=null,H=j=>{let G=j.target;G&&["INPUT","TEXTAREA","SELECT"].includes(G.tagName)&&(Z&&clearTimeout(Z),Z=setTimeout(()=>{G.scrollIntoView({block:"nearest",behavior:"smooth"});},320));};return Q.addEventListener("focusin",H),()=>{Q.removeEventListener("focusin",H),Z&&clearTimeout(Z);}},[w]);let M=Ke.useCallback(()=>{R.current&&R.current.scrollTop!==0&&(R.current.scrollTop=0);},[]);if(e===false)return null;let V=r||o,z=l||d||u||m,U=e!==void 0;return w?U?jsxRuntime.jsx(gt,{isOpen:e,onClose:t,title:r,headerContent:o,titleAlign:n,hideCloseIcon:a,hasBackArrow:i,onBack:s,primaryAction:l,secondaryAction:d,footerContent:m,transparentOverlay:p,maxHeight:y,height:x,maxWidth:f,contentPadding:v,showHandle:true,animationVariant:"scale",className:S,children:c}):jsxRuntime.jsx(Kr,{children:jsxRuntime.jsx(br,{isDismissable:true,transparent:p,style:{paddingBottom:T>0?`${T}px`:void 0,transition:"padding-bottom 0.25s ease-out"},className:"flex items-end justify-center",children:jsxRuntime.jsx(reactAriaComponents.Modal,{className:"w-full p-0 outline-none focus:outline-none focus-visible:outline-none ring-0 focus:ring-0 focus-visible:ring-0",children:jsxRuntime.jsxs(reactAriaComponents.Dialog,{ref:E,onScroll:I,className:tailwindMerge.twMerge("relative flex w-full flex-col","bg-background-surface","shadow-2xl shadow-black/20","border-t border-x border-border-default/40","rounded-t-xl","overflow-hidden","animate-in slide-in-from-bottom","duration-300 ease-out","data-[exiting]:animate-out data-[exiting]:slide-out-to-bottom","data-[exiting]:duration-200 data-[exiting]:ease-in",S),style:{...x?{height:x}:{maxHeight:/\d/.test(y)?P!==null?`min(${y}, ${Math.max(P-8,0)}px, 100dvh)`:`min(${y}, 100dvh)`:y}},children:[jsxRuntime.jsx("div",{className:"flex justify-center pt-2",children:jsxRuntime.jsx("div",{className:"h-1.5 w-12 rounded-full bg-border-muted"})}),V&&(i?jsxRuntime.jsx(Jt,{title:r,headerContent:o,titleAlign:n,hideCloseIcon:a||!t,hasBackArrow:true,onBack:s,onClose:t||(()=>{})}):jsxRuntime.jsx(Jt,{title:r,headerContent:o,titleAlign:n,hideCloseIcon:a||!t,onClose:t||(()=>{})})),jsxRuntime.jsx("div",{ref:L,className:tailwindMerge.twMerge("flex-1 min-h-0 overflow-y-auto overscroll-contain",v?"px-6 py-6":"p-0"),children:c}),z&&jsxRuntime.jsx(Ko,{primaryAction:l,secondaryAction:d,tertiaryAction:u,footerContent:m})]})})})}):jsxRuntime.jsx(Kr,{children:jsxRuntime.jsx(br,{...U?{isOpen:e,onOpenChange:Q=>{!Q&&t&&t();}}:{},isDismissable:true,transparent:p,className:"flex items-center justify-center",children:jsxRuntime.jsx(reactAriaComponents.Modal,{className:"w-full p-4 outline-none focus:outline-none focus-visible:outline-none ring-0 focus:ring-0 focus-visible:ring-0",style:{maxWidth:f},children:jsxRuntime.jsxs(reactAriaComponents.Dialog,{ref:R,onScroll:M,className:tailwindMerge.twMerge("relative flex w-full flex-col","bg-background-surface","shadow-2xl shadow-black/20","border border-border-default/50","rounded-md","overflow-hidden","outline-none focus:outline-none focus-visible:outline-none ring-0 focus:ring-0","animate-in fade-in zoom-in-96 slide-in-from-bottom-2","duration-300 ease-out","data-[exiting]:animate-out data-[exiting]:fade-out data-[exiting]:zoom-out-95","data-[exiting]:duration-200 data-[exiting]:ease-in",S),style:{minWidth:g,...b?{height:b}:{maxHeight:h}},children:[V&&(i?jsxRuntime.jsx(Jt,{title:r,headerContent:o,titleAlign:n,hideCloseIcon:a||!t,hasBackArrow:true,onBack:s,onClose:t||(()=>{})}):jsxRuntime.jsx(Jt,{title:r,headerContent:o,titleAlign:n,hideCloseIcon:a||!t,onClose:t||(()=>{})})),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-1 min-h-0 overflow-y-auto",v?"px-6 py-6":"p-0"),children:c}),z&&jsxRuntime.jsx(Ko,{primaryAction:l,secondaryAction:d,tertiaryAction:u,footerContent:m})]})})})})}function Qf({isOpen:e,onClose:t,title:r,message:o,confirmLabel:n="OK",confirmVariant:a="primary",maxWidth:i="400px",minWidth:s="320px"}){return jsxRuntime.jsx(or,{isOpen:e,onClose:t,title:r,maxWidth:i,minWidth:s,primaryAction:{label:n,onPress:t,variant:a},children:jsxRuntime.jsx("div",{className:"text-text-primary",children:o})})}var Xo={xs:16,sm:20,md:24,lg:32,xl:40,"2xl":48},hr=Ke.memo(({name:e,size:t="md",color:r,weight:o="regular",className:n,ariaLabel:a,...i})=>{let s=rw__namespace[e];if(!s)return null;let c=typeof t=="string"?t in Xo?Xo[t]:Xo.md:t,l=tailwindMerge.twMerge("inline-block flex-shrink-0",!r&&"text-current",n);return jsxRuntime.jsx(s,{...i,size:c,color:r,weight:o,className:l,"aria-label":a||`${e} icon`,"data-testid":`icon-${e}`})});hr.displayName="IconSSR";var ow=Ke.memo(({variant:e="subtle",shape:t="square",containerSize:r,containerClassName:o,size:n="md",className:a,name:i,color:s,weight:c,ariaLabel:l,ref:d,...u})=>{let m=typeof n=="string"?n in Xo?Xo[n]:Xo.md:n,p=r?typeof r=="string"?r in Xo?Xo[r]:m*1.75:r:m*1.75,f=tailwindMerge.twMerge("inline-flex items-center justify-center flex-shrink-0",t==="circle"?"rounded-full":"rounded-lg",e==="subtle"&&"bg-background-muted",e==="solid"&&"bg-action-brand text-[color:var(--color-action-brand-text)]",e==="outline"&&"border-2 border-current",o);return jsxRuntime.jsx("div",{className:f,style:{width:p,height:p},children:jsxRuntime.jsx(hr,{...u,name:i,size:n,color:s,weight:c,className:a,ariaLabel:l})})});ow.displayName="IconSSRWithContainer";var Ma=({className:e,showWordmark:t=true,width:r,fill:o})=>{let n,a;if(o?o.startsWith("fill-")?a=o:n=o:e?a=e:n="var(--color-text-primary)",t){let c=r||270,l=c/270*80;return jsxRuntime.jsxs("svg",{width:c,height:l,viewBox:"0 0 270 80",xmlns:"http://www.w3.org/2000/svg",className:a,style:n?{fill:n}:void 0,children:[jsxRuntime.jsxs("g",{clipPath:"url(#clip0_796_283)",children:[jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.223654 20.2934C0.417233 19.8234 0.873598 19.517 1.37984 19.517H20.5909C21.282 19.517 21.8422 20.0798 21.8422 20.774V40.049C21.8422 40.5572 21.5375 41.0155 21.0702 41.2102C20.6028 41.405 20.0647 41.2977 19.7067 40.9385L0.495628 21.6635C0.137428 21.3041 0.030075 20.7633 0.223654 20.2934ZM4.40349 22.0311L19.3396 37.017V22.0311H4.40349Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.6458 20.2934C38.8394 19.8234 39.2958 19.517 39.802 19.517H59.013C59.7041 19.517 60.2642 20.0798 60.2642 20.774V40.049C60.2642 40.5572 59.9597 41.0155 59.4923 41.2102C59.025 41.405 58.4867 41.2977 58.1289 40.9385L38.9178 21.6635C38.5595 21.3041 38.4522 20.7633 38.6458 20.2934ZM42.8255 22.0311L57.7618 37.017V22.0311H42.8255Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.4347 58.8447C19.6283 58.3747 20.0847 58.0685 20.5909 58.0685H39.802C40.493 58.0685 41.0532 58.6312 41.0532 59.3255V78.6005C41.0532 79.1087 40.7486 79.567 40.2813 79.7617C39.8139 79.9562 39.2757 79.849 38.9178 79.49L19.7067 60.215C19.3485 59.8555 19.2411 59.3147 19.4347 58.8447ZM23.6146 60.5825L38.5508 75.5682V60.5825H23.6146Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.3227 58.1643C39.79 57.9695 40.3283 58.0768 40.6861 58.436L59.8972 77.711C60.2555 78.0703 60.3628 78.6113 60.1692 79.081C59.9756 79.551 59.5192 79.8575 59.013 79.8575H39.802C39.1109 79.8575 38.5508 79.2948 38.5508 78.6005V59.3255C38.5508 58.8173 38.8554 58.359 39.3227 58.1643ZM41.0532 62.3575V77.3433H55.9893L41.0532 62.3575Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.3227 19.6129C39.79 19.4182 40.3283 19.5254 40.6861 19.8846L59.8972 39.1595C60.2555 39.519 60.3628 40.0598 60.1692 40.5298C59.9756 40.9995 59.5192 41.306 59.013 41.306H39.802C39.1109 41.306 38.5508 40.7433 38.5508 40.049V20.7741C38.5508 20.2658 38.8554 19.8075 39.3227 19.6129ZM41.0532 23.8061V38.792H55.9893L41.0532 23.8061Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.3227 38.8885C39.79 38.694 40.3283 38.8012 40.6861 39.1602L59.8972 58.4352C60.2555 58.7945 60.3628 59.3355 60.1692 59.8055C59.9756 60.2752 59.5192 60.5817 59.013 60.5817H39.802C39.1109 60.5817 38.5508 60.019 38.5508 59.3247V40.0497C38.5508 39.5415 38.8554 39.0832 39.3227 38.8885ZM41.0532 43.0817V58.0675H55.9893L41.0532 43.0817Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.6458 39.569C38.8394 39.0992 39.2958 38.7927 39.802 38.7927H59.013C59.7041 38.7927 60.2642 39.3555 60.2642 40.0497V59.3247C60.2642 59.833 59.9597 60.2912 59.4923 60.486C59.025 60.6805 58.4867 60.5732 58.1289 60.2142L38.9178 40.9392C38.5595 40.5797 38.4522 40.039 38.6458 39.569ZM42.8255 41.3067L57.7618 56.2927V41.3067H42.8255Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.6458 58.8447C38.8394 58.3747 39.2958 58.0685 39.802 58.0685H59.013C59.7041 58.0685 60.2642 58.6312 60.2642 59.3255V78.6005C60.2642 79.1087 59.9597 79.567 59.4923 79.7617C59.025 79.9562 58.4867 79.849 58.1289 79.49L38.9178 60.215C38.5595 59.8555 38.4522 59.3147 38.6458 58.8447ZM42.8255 60.5825L57.7618 75.5682V60.5825H42.8255Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M58.5338 19.6129C59.0011 19.4182 59.5394 19.5254 59.8972 19.8846L79.1083 39.1595C79.4666 39.519 79.5739 40.0598 79.3803 40.5298C79.1867 40.9995 78.7303 41.306 78.2241 41.306H59.013C58.322 41.306 57.7618 40.7433 57.7618 40.049V20.7741C57.7618 20.2658 58.0664 19.8075 58.5338 19.6129ZM60.2643 23.8061V38.792H75.2006L60.2643 23.8061Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M58.5338 0.338803C59.0011 0.144135 59.5394 0.251385 59.8972 0.610565L79.1083 19.8855C79.4666 20.2449 79.5739 20.7857 79.3803 21.2556C79.1867 21.7256 78.7303 22.032 78.2241 22.032H59.013C58.322 22.032 57.7618 21.4692 57.7618 20.775V1.50003C57.7618 0.99174 58.0664 0.533468 58.5338 0.338803ZM60.2643 4.53208V19.5179H75.2006L60.2643 4.53208Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M57.8569 20.2934C58.0505 19.8234 58.5069 19.517 59.013 19.517H78.2241C78.9151 19.517 79.4753 20.0798 79.4753 20.774V40.049C79.4753 40.5572 79.1707 41.0155 78.7034 41.2102C78.236 41.405 77.6978 41.2977 77.3399 40.9385L58.1289 21.6635C57.7705 21.3041 57.6633 20.7633 57.8569 20.2934ZM62.0365 22.0311L76.9729 37.017V22.0311H62.0365Z"}),jsxRuntime.jsx("path",{d:"M269.838 49.4457H249.005C249.266 51.801 250.162 53.6985 251.695 55.1377C253.225 56.577 255.134 57.2967 257.416 57.2967C259.307 57.2967 260.887 56.8715 262.159 56.021C263.463 55.1377 264.408 53.9927 264.996 52.5862H269.251C268.502 54.9415 267.084 56.937 264.996 58.5725C262.943 60.208 260.414 61.026 257.416 61.026C255.069 61.026 252.917 60.4697 250.961 59.3575C249.037 58.2127 247.504 56.6587 246.363 54.696C245.255 52.7332 244.7 50.558 244.7 48.17C244.7 45.782 245.255 43.6067 246.363 41.644C247.504 39.6812 249.037 38.1437 250.961 37.0315C252.917 35.8867 255.069 35.3142 257.416 35.3142C259.73 35.3142 261.833 35.8702 263.724 36.9825C265.615 38.0947 267.098 39.6485 268.176 41.644C269.283 43.6395 269.838 45.913 269.838 48.4645V49.4457ZM257.416 39.0432C255.263 39.0432 253.439 39.6812 251.939 40.957C250.47 42.2327 249.542 43.9337 249.152 46.06H265.583C265.192 43.9992 264.262 42.3145 262.796 41.006C261.36 39.6975 259.568 39.0432 257.416 39.0432Z"}),jsxRuntime.jsx("path",{d:"M228.356 60.5352V35.8049H232.219V39.7794H232.464C233.05 38.5689 233.963 37.5712 235.202 36.7862C236.474 35.9684 237.974 35.5594 239.701 35.5594H243.125V39.4359H239.701C237.517 39.4359 235.757 40.1554 234.42 41.5949C233.083 43.0342 232.414 44.9152 232.414 47.2377V60.5352H228.356Z"}),jsxRuntime.jsx("path",{d:"M208.607 61.0259C205.64 61.0259 203.326 60.1262 201.663 58.3272C200 56.4952 199.169 53.8947 199.169 50.5252V35.8047H203.228V49.8874C203.228 52.2427 203.766 54.0744 204.842 55.3829C205.95 56.6587 207.532 57.2967 209.586 57.2967C211.02 57.2967 212.308 56.9694 213.449 56.3152C214.623 55.6284 215.536 54.6959 216.188 53.5184C216.84 52.3407 217.166 50.9997 217.166 49.4949V35.8047H221.225V60.5352H217.313V56.5607H217.068C216.286 57.9019 215.161 58.9814 213.694 59.7992C212.226 60.6169 210.531 61.0259 208.607 61.0259Z"}),jsxRuntime.jsx("path",{d:"M186.736 39.534V56.806H194.756V60.5352H182.677V39.534H177.199V35.8047H182.677V29.5732H186.736V35.8047H193.24V39.534H186.736Z"}),jsxRuntime.jsx("path",{d:"M156.585 60.5352H151.988L158.394 48.0227L152.33 35.8047H156.976L162.062 46.0599H165.388L170.474 35.8047H175.022L168.958 48.0227L175.365 60.5352H170.67L165.29 49.7892H162.013L156.585 60.5352Z"}),jsxRuntime.jsx("path",{d:"M150.138 49.1315H129.304C129.565 51.4867 130.461 53.3842 131.994 54.8235C133.526 56.2627 135.433 56.9825 137.715 56.9825C139.606 56.9825 141.188 56.5572 142.459 55.7067C143.763 54.8235 144.709 53.6785 145.296 52.272H149.551C148.801 54.6272 147.382 56.6227 145.296 58.2582C143.242 59.8937 140.715 60.7118 137.715 60.7118C135.368 60.7118 133.216 60.1555 131.26 59.0432C129.336 57.8985 127.804 56.3445 126.663 54.3817C125.554 52.419 125 50.2437 125 47.8557C125 45.4677 125.554 43.2925 126.663 41.3298C127.804 39.367 129.336 37.8295 131.26 36.7173C133.216 35.5725 135.368 35 137.715 35C140.03 35 142.133 35.556 144.024 36.6682C145.915 37.7805 147.399 39.3342 148.475 41.3298C149.583 43.3252 150.138 45.5987 150.138 48.1502V49.1315ZM137.715 38.729C135.564 38.729 133.738 39.367 132.238 40.6427C130.771 41.9185 129.842 43.6195 129.45 45.7458H145.883C145.491 43.685 144.562 42.0002 143.095 40.6917C141.661 39.3832 139.867 38.729 137.715 38.729Z"}),jsxRuntime.jsx("path",{d:"M116.961 60.5353H112.559V30.4072H101.164V26.1875H128.307V30.4072H116.961V60.5353Z"})]}),jsxRuntime.jsx("defs",{children:jsxRuntime.jsx("clipPath",{id:"clip0_796_283",children:jsxRuntime.jsx("rect",{width:"270",height:"80",fill:"white"})})})]})}let i=r||80;return jsxRuntime.jsxs("svg",{width:i,height:i,viewBox:"0 0 80 80",xmlns:"http://www.w3.org/2000/svg",className:a,style:n?{fill:n}:void 0,children:[jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.223654 20.2934C0.417233 19.8234 0.873598 19.517 1.37984 19.517H20.5909C21.282 19.517 21.8422 20.0798 21.8422 20.774V40.049C21.8422 40.5572 21.5375 41.0155 21.0702 41.2102C20.6028 41.405 20.0647 41.2977 19.7067 40.9385L0.495628 21.6635C0.137428 21.3041 0.030075 20.7633 0.223654 20.2934ZM4.40349 22.0311L19.3396 37.017V22.0311H4.40349Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.6458 20.2934C38.8394 19.8234 39.2958 19.517 39.802 19.517H59.013C59.7041 19.517 60.2642 20.0798 60.2642 20.774V40.049C60.2642 40.5572 59.9597 41.0155 59.4923 41.2102C59.025 41.405 58.4867 41.2977 58.1289 40.9385L38.9178 21.6635C38.5595 21.3041 38.4522 20.7633 38.6458 20.2934ZM42.8255 22.0311L57.7618 37.017V22.0311H42.8255Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.4347 58.8447C19.6283 58.3747 20.0847 58.0685 20.5909 58.0685H39.802C40.493 58.0685 41.0532 58.6312 41.0532 59.3255V78.6005C41.0532 79.1087 40.7486 79.567 40.2813 79.7617C39.8139 79.9562 39.2757 79.849 38.9178 79.49L19.7067 60.215C19.3485 59.8555 19.2411 59.3147 19.4347 58.8447ZM23.6146 60.5825L38.5508 75.5682V60.5825H23.6146Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.3227 58.1643C39.79 57.9695 40.3283 58.0768 40.6861 58.436L59.8972 77.711C60.2555 78.0703 60.3628 78.6113 60.1692 79.081C59.9756 79.551 59.5192 79.8575 59.013 79.8575H39.802C39.1109 79.8575 38.5508 79.2948 38.5508 78.6005V59.3255C38.5508 58.8173 38.8554 58.359 39.3227 58.1643ZM41.0532 62.3575V77.3433H55.9893L41.0532 62.3575Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.3227 19.6129C39.79 19.4182 40.3283 19.5254 40.6861 19.8846L59.8972 39.1595C60.2555 39.519 60.3628 40.0598 60.1692 40.5298C59.9756 40.9995 59.5192 41.306 59.013 41.306H39.802C39.1109 41.306 38.5508 40.7433 38.5508 40.049V20.7741C38.5508 20.2658 38.8554 19.8075 39.3227 19.6129ZM41.0532 23.8061V38.792H55.9893L41.0532 23.8061Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.3227 38.8885C39.79 38.694 40.3283 38.8012 40.6861 39.1602L59.8972 58.4352C60.2555 58.7945 60.3628 59.3355 60.1692 59.8055C59.9756 60.2752 59.5192 60.5817 59.013 60.5817H39.802C39.1109 60.5817 38.5508 60.019 38.5508 59.3247V40.0497C38.5508 39.5415 38.8554 39.0832 39.3227 38.8885ZM41.0532 43.0817V58.0675H55.9893L41.0532 43.0817Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.6458 39.569C38.8394 39.0992 39.2958 38.7927 39.802 38.7927H59.013C59.7041 38.7927 60.2642 39.3555 60.2642 40.0497V59.3247C60.2642 59.833 59.9597 60.2912 59.4923 60.486C59.025 60.6805 58.4867 60.5732 58.1289 60.2142L38.9178 40.9392C38.5595 40.5797 38.4522 40.039 38.6458 39.569ZM42.8255 41.3067L57.7618 56.2927V41.3067H42.8255Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.6458 58.8447C38.8394 58.3747 39.2958 58.0685 39.802 58.0685H59.013C59.7041 58.0685 60.2642 58.6312 60.2642 59.3255V78.6005C60.2642 79.1087 59.9597 79.567 59.4923 79.7617C59.025 79.9562 58.4867 79.849 58.1289 79.49L38.9178 60.215C38.5595 59.8555 38.4522 59.3147 38.6458 58.8447ZM42.8255 60.5825L57.7618 75.5682V60.5825H42.8255Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M58.5338 19.6129C59.0011 19.4182 59.5394 19.5254 59.8972 19.8846L79.1083 39.1595C79.4666 39.519 79.5739 40.0598 79.3803 40.5298C79.1867 40.9995 78.7303 41.306 78.2241 41.306H59.013C58.322 41.306 57.7618 40.7433 57.7618 40.049V20.7741C57.7618 20.2658 58.0664 19.8075 58.5338 19.6129ZM60.2643 23.8061V38.792H75.2006L60.2643 23.8061Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M58.5338 0.338803C59.0011 0.144135 59.5394 0.251385 59.8972 0.610565L79.1083 19.8855C79.4666 20.2449 79.5739 20.7857 79.3803 21.2556C79.1867 21.7256 78.7303 22.032 78.2241 22.032H59.013C58.322 22.032 57.7618 21.4692 57.7618 20.775V1.50003C57.7618 0.99174 58.0664 0.533468 58.5338 0.338803ZM60.2643 4.53208V19.5179H75.2006L60.2643 4.53208Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M57.8569 20.2934C58.0505 19.8234 58.5069 19.517 59.013 19.517H78.2241C78.9151 19.517 79.4753 20.0798 79.4753 20.774V40.049C79.4753 40.5572 79.1707 41.0155 78.7034 41.2102C78.236 41.405 77.6978 41.2977 77.3399 40.9385L58.1289 21.6635C57.7705 21.3041 57.6633 20.7633 57.8569 20.2934ZM62.0365 22.0311L76.9729 37.017V22.0311H62.0365Z"})]})};var Ks=({topItems:e=[],bottomItems:t=[],bottomContent:r,logo:o,showLogo:n=true,linkComponent:a="a",className:i="",mobileMenuId:s="app-mobile-menu",sidebarCollapseId:c="app-sidebar-collapse"})=>{let l=p=>p.length>0&&"items"in p[0],d=p=>l(p)?p:[{id:"default-section",items:p}],u=(p,f,g)=>jsxRuntime.jsxs("div",{className:"space-y-0.5",children:[p.title&&jsxRuntime.jsx("div",{className:"px-6 py-1 text-xs font-medium text-text-secondary uppercase tracking-wider",children:p.title}),jsxRuntime.jsx("div",{className:"space-y-0.5",children:p.items.map(h=>m(h))}),f<g-1&&jsxRuntime.jsx("div",{className:"border-b border-border-subtle mx-6 my-2"})]},p.id),m=(p,f=false)=>{if(p.children&&p.children.length>0){let b=`category-${p.id}`;return jsxRuntime.jsxs("div",{className:"group/category",children:[jsxRuntime.jsx("input",{type:"checkbox",id:b,className:"peer/category hidden",defaultChecked:p.isExpanded,"aria-hidden":"true"}),jsxRuntime.jsxs("label",{htmlFor:b,className:"flex items-center gap-3 px-6 py-1 text-text-primary hover:bg-background-hover hover:text-text-primary cursor-pointer transition-all duration-200",children:[p.icon&&jsxRuntime.jsx("span",{className:"flex-shrink-0 w-3.5 h-3.5 flex items-center justify-center transition-all duration-200",children:p.icon}),jsxRuntime.jsx("span",{className:"transition-all duration-200",children:p.label}),jsxRuntime.jsx("span",{className:"flex-1"}),jsxRuntime.jsx("svg",{className:"w-4 h-4 transform transition-transform duration-200 peer-checked/category:rotate-180 ml-auto",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]}),jsxRuntime.jsx("div",{className:"hidden peer-checked/category:block bg-background-subtle border-l-2 border-border-subtle ml-6",children:p.children.map(y=>m(y,true))})]},p.id)}let g={href:p.href||"#",className:`flex items-center gap-3 transition-all duration-200 hover:bg-background-hover ${f?"pl-8 pr-6 py-1 text-sm":"px-6 py-1"} ${p.isActive?`bg-action-brand/10 text-action-brand ${f?"":"border-l-2 border-action-brand"}`:"text-text-primary hover:text-text-primary"}`,"aria-current":p.isActive?"page":void 0},h=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[p.icon&&!f&&jsxRuntime.jsx("span",{className:"flex-shrink-0 w-3.5 h-3.5 flex items-center justify-center transition-all duration-200",children:p.icon}),jsxRuntime.jsx("span",{className:"transition-all duration-200",children:p.label})]});return a==="a"?jsxRuntime.jsx("a",{...g,children:h},p.id):jsxRuntime.jsx(a,{...g,children:h},p.id)};return jsxRuntime.jsxs("div",{className:`flex flex-col h-full ${i}`,children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between h-[60px] px-6 border-b border-border-default",children:[n&&jsxRuntime.jsx("div",{className:"relative top-[-1px] transition-all duration-200",children:o||jsxRuntime.jsx(Ma,{showWordmark:true,width:120})}),jsxRuntime.jsx("label",{htmlFor:c,className:"hidden md:flex items-center justify-center w-8 h-8 rounded hover:bg-background-hover cursor-pointer transition-all duration-200 relative top-[-1px]","aria-label":"Collapse sidebar",children:jsxRuntime.jsx(hr,{name:"Sidebar",size:"sm"})}),jsxRuntime.jsx("label",{htmlFor:s,className:"md:hidden flex items-center justify-center w-8 h-8 rounded hover:bg-background-hover cursor-pointer transition-colors","aria-label":"Close menu",children:jsxRuntime.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),jsxRuntime.jsxs("nav",{className:"flex-1 flex flex-col overflow-hidden",children:[e&&e.length>0&&jsxRuntime.jsx("div",{className:"flex-1 overflow-y-auto py-2 scrollbar-hide",children:d(e).map((p,f,g)=>u(p,f,g.length))}),t&&t.length>0&&jsxRuntime.jsx("div",{className:"flex-shrink-0 border-t bg-background-muted/30",children:jsxRuntime.jsx("div",{className:"mt-2 pb-2 space-y-0.5",children:t.map(p=>m(p))})}),r&&jsxRuntime.jsx("div",{className:"flex-shrink-0 border-t border-border-default",children:jsxRuntime.jsx("div",{children:r})})]})]})};function Pn(e){return e.id??e.href??e.label}function _d(e,t,r=[]){for(let o of e){if(o.href===t||o.id===t)return o.children?.length&&o.pushOnSelect!==false?[...r,Pn(o)]:r;if(o.children?.length){let n=_d(o.children,t,[...r,Pn(o)]);if(n)return n}}return null}function rg(e,t){let r=[],o=e;for(let n of t){let a=o.find(i=>Pn(i)===n);if(!a)break;r.push(a),o=a.children??[];}return r}function aw(e,t,r){let o=t.length>0?[...e,...t]:e,n=[{path:[],items:e,bottomItems:t.length>0?t:void 0}],a=rg(o,r),i=[];for(let s of a){if(!s.children?.length)break;i=[...i,Pn(s)],n.push({path:i,parent:s,items:s.children});}return n}var iw=({href:e,...t})=>jsxRuntime.jsx("a",{href:e,...t}),$f=[];function sw(e){let t=[];for(let r of e){let o=r.items??[];o.length!==0&&(t.length>0&&t.push({id:`__divider__${r.id}`,label:"",divider:true}),r.title&&t.push({id:`__group__${r.id}`,label:r.title,groupLabel:true}),t.push(...o));}return t}function lw(e,t){if(process.env.NODE_ENV==="production"||t.length===0)return;let r=new Map;for(let o of e)o.id&&r.set(o.id,"id"),o.href&&!r.has(o.href)&&r.set(o.href,"href");for(let o of t){let n=null;o.id&&r.has(o.id)?n=r.get(o.id)==="id"?`id "${o.id}"`:`id "${o.id}" (matches an items \`href\`)`:o.href&&r.has(o.href)&&(n=r.get(o.href)==="href"?`href "${o.href}"`:`href "${o.href}" (matches an items \`id\`)`),n&&console.warn(`[StackNav] L1 ${n} appears in both \`items\` and \`bottomItems\`. Stack tokens and value lookups will resolve to the \`items\` entry, making the bottomItems entry unreachable. L1 ids and hrefs must be unique across both arrays.`);}}function cw(e){if(!e)return {};let t={};return e.background!==void 0&&(t["--edges-stack-nav-background"]=e.background),e.activeBackground!==void 0&&(t["--edges-stack-nav-row-active-background"]=e.activeBackground),e.activeColor!==void 0&&(t["--edges-stack-nav-row-active-color"]=e.activeColor),e.hoverBackground!==void 0&&(t["--edges-stack-nav-row-hover-background"]=e.hoverBackground),e.borderColor!==void 0&&(t["--edges-stack-nav-border-color"]=e.borderColor),t}function La({items:e,groups:t,bottomItems:r,value:o,defaultStack:n,stack:a,onStackChange:i,onSelect:s,linkComponent:c=iw,renderRow:l,showLogo:d=false,logo:u,header:m,footer:p,mobileMenuId:f,sidebarCollapseId:g,rootLabel:h,sticky:b=true,width:y=260,ariaLabel:x="Navigation",theme:v,animated:S=true,style:w,className:k}){process.env.NODE_ENV!=="production"&&t&&e&&console.warn("[StackNav] Both `items` and `groups` were provided. `groups` takes precedence and `items` is ignored.");let P=Ke__namespace.useMemo(()=>t?sw(t):e??$f,[t,e]),T=r??$f,E=Ke__namespace.useMemo(()=>T.length>0?[...P,...T]:P,[P,T]);Ke__namespace.useEffect(()=>{lw(P,T);},[P,T]);let[I,R]=Ke__namespace.useState(()=>a!==void 0?a:n!==void 0?n:o?_d(E,o)??[]:[]),L=a??I,M=Ke__namespace.useCallback(A=>{a===void 0&&R(A),i?.(A);},[a,i]),V=Ke__namespace.useRef(false);Ke__namespace.useEffect(()=>{if(a!==void 0||!V.current&&(V.current=true,n!==void 0)||!o)return;let A=_d(E,o);R(W=>{let N=A??[];return mw(W,N)?W:N});},[o,E,a,n]);let z=Ke__namespace.useMemo(()=>aw(P,T,L),[P,T,L]),U=Ke__namespace.useCallback((A,W)=>{A.children?.length&&M([...W,Pn(A)]);},[M]),Q=Ke__namespace.useCallback(()=>{M(L.slice(0,-1));},[L,M]),Z=Ke__namespace.useCallback((A,W)=>{let N=rg(E,L);if(s?.(W,N),!!W.children?.length){let D=z[z.length-1]?.path??[];U(W,D);}W.href||A.preventDefault();},[E,L,s,U,z]),H=Ke__namespace.useCallback(A=>o?A.href===o||A.id===o:false,[o]),j=b?"sticky top-0 h-[100dvh]":"",G={...y!=null?{width:y}:{},...cw(v),...w};return jsxRuntime.jsxs("aside",{role:"navigation","aria-label":x,"data-edges-stack-nav":"",className:tailwindMerge.twMerge("edges-stack-nav flex flex-col flex-shrink-0 overflow-hidden",S&&"edges-stack-nav--animated",j,k),style:G,children:[d?jsxRuntime.jsxs("div",{className:"edges-stack-nav__logo",children:[jsxRuntime.jsx("div",{className:"relative top-[-1px]",children:u??jsxRuntime.jsx(Ma,{showWordmark:true,width:120})}),g?jsxRuntime.jsx("label",{htmlFor:g,className:"hidden md:flex items-center justify-center w-8 h-8 rounded hover:bg-background-hover cursor-pointer transition-all duration-200 relative top-[-1px]","aria-label":"Collapse sidebar",children:jsxRuntime.jsx(hr,{name:"Sidebar",size:"sm"})}):null,f?jsxRuntime.jsx("label",{htmlFor:f,className:"md:hidden flex items-center justify-center w-8 h-8 rounded hover:bg-background-hover cursor-pointer transition-colors","aria-label":"Close menu",children:jsxRuntime.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}):null]}):null,m?jsxRuntime.jsx("div",{className:"edges-stack-nav__header",children:m}):null,jsxRuntime.jsx("div",{className:"relative flex-1 overflow-hidden",children:z.map((A,W)=>{let N=A.path.length,C=W===z.length-1,D=W<z.length-1,B=N===0?"__root__":A.path.join("/");return jsxRuntime.jsx(dw,{pane:A,parentPath:A.path.slice(0,-1),depth:N,isTop:C,isAbove:D,rootLabel:h,LinkComponent:c,renderRow:l,isActive:H,onSelect:Z,onBack:Q,animated:S},B)})}),p?jsxRuntime.jsx("div",{className:"edges-stack-nav__footer",children:p}):null]})}function dw({pane:e,depth:t,isTop:r,isAbove:o,rootLabel:n,LinkComponent:a,renderRow:i,isActive:s,onSelect:c,onBack:l,animated:d}){let u=r?"edges-stack-nav__pane--top":o?"edges-stack-nav__pane--above":"edges-stack-nav__pane--below";return jsxRuntime.jsxs("nav",{"aria-label":e.parent?.label??n??"Navigation","aria-hidden":r?void 0:true,inert:r?void 0:true,className:tailwindMerge.twMerge("edges-stack-nav__pane absolute inset-0 flex flex-col gap-px overflow-y-auto px-2 py-3",!d&&"edges-stack-nav__pane--instant",u),children:[t>0&&e.parent?jsxRuntime.jsxs("button",{type:"button",className:"edges-stack-nav__back edges-stack-nav__row flex w-full cursor-pointer items-center gap-2 rounded-sm border-0 bg-transparent px-3 py-2 mb-2 text-left text-sm font-semibold text-text-primary",onClick:l,"aria-label":`Back from ${e.parent.label}`,children:[jsxRuntime.jsx(pw,{}),jsxRuntime.jsx("span",{children:e.parent.label})]}):n?jsxRuntime.jsx("div",{className:"px-3 pb-1.5 text-[10px] font-semibold uppercase tracking-[0.08em] text-text-secondary",children:n}):null,e.items.map(m=>jsxRuntime.jsx(eg,{item:m,LinkComponent:a,renderRow:i,isActive:s(m),onSelect:c},Pn(m))),e.bottomItems&&e.bottomItems.length>0?jsxRuntime.jsx("div",{className:"edges-stack-nav__bottom-items mt-auto flex flex-col gap-px pt-3",children:e.bottomItems.map(m=>jsxRuntime.jsx(eg,{item:m,LinkComponent:a,renderRow:i,isActive:s(m),onSelect:c},Pn(m)))}):null]})}function eg({item:e,LinkComponent:t,renderRow:r,isActive:o,onSelect:n}){if(e.divider)return jsxRuntime.jsx("div",{className:"edges-stack-nav__divider my-2",role:"separator"});if(e.groupLabel)return jsxRuntime.jsx("div",{className:"px-3 pt-6 pb-1.5 text-[10px] font-semibold uppercase tracking-[0.08em] text-text-secondary",children:e.label});let a=!!e.children?.length,i=tailwindMerge.twMerge("edges-stack-nav__row flex items-center justify-between gap-3 rounded-sm px-3 py-2 text-sm font-normal text-text-primary no-underline cursor-pointer text-left bg-transparent border-0 transition-colors",o&&"edges-stack-nav__row--active font-semibold");if(r)return jsxRuntime.jsx(jsxRuntime.Fragment,{children:r({item:e,isActive:o,hasChildren:a,select:c=>n(c,e),LinkComponent:t,className:i})});let s=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("span",{className:"flex min-w-0 items-center gap-2",children:[e.leading??e.icon?jsxRuntime.jsx("span",{className:"inline-flex items-center flex-shrink-0",children:e.leading??e.icon}):null,jsxRuntime.jsx("span",{className:"truncate",children:e.label})]}),jsxRuntime.jsxs("span",{className:"flex flex-shrink-0 items-center gap-2 text-text-secondary",children:[e.trailing,a?jsxRuntime.jsx(uw,{}):null]})]});return e.href?jsxRuntime.jsx(t,{href:e.href,"aria-label":e.ariaLabel,className:i,"aria-current":o?"page":void 0,onClick:c=>n(c,e),children:s}):jsxRuntime.jsx("button",{type:"button",className:i,"aria-label":e.ariaLabel,onClick:c=>{n(c,e);},children:s})}function uw(){return jsxRuntime.jsx("svg",{width:12,height:12,viewBox:"0 0 12 12",fill:"none","aria-hidden":"true",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",children:jsxRuntime.jsx("path",{d:"M4.5 3 7.5 6 4.5 9"})})}function pw(){return jsxRuntime.jsx("svg",{width:14,height:14,viewBox:"0 0 14 14",fill:"none","aria-hidden":"true",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",children:jsxRuntime.jsx("path",{d:"M8.5 3 4.5 7 8.5 11"})})}function mw(e,t){if(e===t)return true;if(e.length!==t.length)return false;for(let r=0;r<e.length;r+=1)if(e[r]!==t[r])return false;return true}var wi=({rightContent:e,centerContent:t,showMobileMenu:r=true,avatar:o,showColorModeSwitcher:n=false,toggleTheme:a,isDarkThemeEnabled:i=false,colorMode:s,actions:c,className:l="",mobileMenuId:d="app-mobile-menu"})=>{let u=()=>{switch(s||(i?"dark":"light")){case "system":return jsxRuntime.jsx(hr,{name:"Monitor",size:"sm"});case "light":return jsxRuntime.jsx(hr,{name:"Sun",size:"sm"});case "dark":return jsxRuntime.jsx(hr,{name:"Moon",size:"sm"})}},m=()=>{switch(s||(i?"dark":"light")){case "system":return "Switch to light mode";case "light":return "Switch to dark mode";case "dark":return "Switch to system mode";default:return "Toggle theme"}};return jsxRuntime.jsx("header",{className:`h-[60px] bg-background-surface border-b ${l}`,children:jsxRuntime.jsxs("div",{className:"relative flex h-full items-center",children:[jsxRuntime.jsx("div",{className:"flex items-center h-full flex-shrink-0",children:r&&jsxRuntime.jsx("label",{htmlFor:d,className:"md:hidden cursor-pointer","aria-label":"Open menu",children:jsxRuntime.jsx("div",{className:"flex h-full w-14 flex-col items-center justify-center border-r hover:bg-background-hover transition-colors",children:jsxRuntime.jsx(hr,{name:"List",size:"sm"})})})}),t&&jsxRuntime.jsx("div",{className:"flex-1 flex justify-end md:justify-center md:px-4 min-w-0",children:jsxRuntime.jsx("div",{className:"w-full md:max-w-4xl min-w-0",children:t})}),!t&&jsxRuntime.jsx("div",{className:"flex-1"}),jsxRuntime.jsxs("div",{className:"flex items-center gap-4 pr-4 flex-shrink-0 ml-4",children:[e,n&&a&&jsxRuntime.jsx("button",{type:"button",onClick:a,className:"flex items-center justify-center w-8 h-8 rounded hover:bg-background-hover transition-colors","aria-label":m(),children:u()}),c,o&&jsxRuntime.jsx("div",{className:"flex items-center",children:o})]})]})})};function ng({sideNav:e,stackNav:t,topNav:r,children:o,contentPaddingX:n,contentPaddingY:a,showSidebarBorder:i=true,mainClassName:s,enableJsEnhancements:c=false}){let l="app-mobile-menu",d="app-sidebar-collapse";return Ke.useEffect(()=>{if(!c)return;let u=document.getElementById(d),m=document.getElementById(l),p=document.querySelector("[data-app-shell]"),f=document.getElementById("app-sidebar");if(!u||!p||!f)return;let g=null,h=false;try{let E=localStorage.getItem("sidebar-collapsed");E!==null&&(u.checked=E==="true");}catch{}let b=()=>{try{localStorage.setItem("sidebar-collapsed",String(u.checked));}catch{}u.checked?h=true:(g&&(clearTimeout(g),g=null),p.removeAttribute("data-peek"),h=false);};u.addEventListener("change",b);let y=E=>{E.key==="Escape"&&(m&&(m.checked=false),p.removeAttribute("data-peek"));};document.addEventListener("keydown",y);let x=null;m&&(x=()=>{document.body.style.overflow=m.checked?"hidden":"";},m.addEventListener("change",x));let v=E=>{let R=E.target.closest("a");R&&R.href&&window.innerWidth<768&&m&&setTimeout(()=>{m.checked=false,document.body.style.overflow="";},100);};f.addEventListener("click",v);let S=16,w=200,k=()=>{g&&(clearTimeout(g),g=null),p.getAttribute("data-peek")!=="true"&&p.setAttribute("data-peek","true");},P=()=>{g&&clearTimeout(g),g=setTimeout(()=>{p.removeAttribute("data-peek"),g=null;},w);},T=E=>{if(window.innerWidth<768||!u.checked)return;let I=f.contains(E.target);if(h&&!I&&(h=false),h)return;E.clientX<=S||I?k():p.getAttribute("data-peek")==="true"&&P();};return document.addEventListener("mousemove",T),()=>{u.removeEventListener("change",b),document.removeEventListener("keydown",y),m&&x&&m.removeEventListener("change",x),f.removeEventListener("click",v),document.removeEventListener("mousemove",T),g&&clearTimeout(g);}},[c,l,d]),jsxRuntime.jsxs("div",{className:"min-h-[100dvh] bg-background text-text-primary relative","data-app-shell":"",children:[jsxRuntime.jsx("input",{type:"checkbox",id:d,className:"sr-only peer/sidebar","aria-hidden":"true"}),jsxRuntime.jsx("a",{href:"#app-content",className:"sr-only focus:not-sr-only focus:absolute focus:left-4 focus:top-4 z-50 rounded px-3 py-2 bg-background-surface shadow",children:"Skip to content"}),jsxRuntime.jsx(wi,{...r,mobileMenuId:l,className:["sticky top-0 flex-shrink-0 z-30 md:hidden",r?.className].filter(Boolean).join(" ")}),jsxRuntime.jsxs("div",{className:"flex w-full h-[calc(100dvh-60px)] md:h-[100dvh] relative overflow-hidden",children:[jsxRuntime.jsx("input",{type:"checkbox",id:l,className:"sr-only peer/mobile","aria-hidden":"true"}),jsxRuntime.jsx("label",{htmlFor:l,className:"fixed inset-0 bg-background-modal z-[55] opacity-0 pointer-events-none peer-checked/mobile:opacity-100 peer-checked/mobile:pointer-events-auto transition-opacity md:hidden","aria-label":"Close menu"}),jsxRuntime.jsx("div",{"aria-hidden":"true","data-peek-zone":"",className:"hidden md:block fixed left-0 top-0 bottom-0 w-4 z-[70] pointer-events-none"}),jsxRuntime.jsx("label",{htmlFor:d,"data-expand-rail":"",className:"hidden fixed left-3 top-3 z-[75] items-center justify-center w-9 h-9 rounded-md bg-background-surface border border-border-default shadow-sm hover:bg-background-hover cursor-pointer transition-all duration-200","aria-label":"Expand sidebar",children:jsxRuntime.jsx(hr,{name:"Sidebar",size:"sm"})}),jsxRuntime.jsx("aside",{id:"app-sidebar","data-app-sidebar":"",className:["bg-background-surface","border-r border-border-default","transition-transform duration-300 ease-in-out md:transition-[transform,width] md:duration-300 md:ease-in-out","fixed md:relative","left-0 top-0 bottom-0","z-[60] md:z-10","w-full md:w-64","h-[100dvh] md:h-full","-translate-x-full","peer-checked/mobile:translate-x-0","md:translate-x-0",i?"":"!border-r-0",(t??e)?.className||""].filter(Boolean).join(" "),children:t?jsxRuntime.jsx(La,{...t,mobileMenuId:l,sidebarCollapseId:d,sticky:false,width:null,className:["h-full !border-r-0",t.className].filter(Boolean).join(" ")}):jsxRuntime.jsx(Ks,{...e,mobileMenuId:l,sidebarCollapseId:d,className:"h-full"})}),jsxRuntime.jsxs("div",{className:"flex-1 flex flex-col h-full overflow-hidden",children:[jsxRuntime.jsx("div",{className:"sticky top-0 flex-shrink-0 hidden md:block z-20","data-top-nav-wrapper":"",children:jsxRuntime.jsx(wi,{...r,className:r?.className})}),jsxRuntime.jsx("main",{id:"app-content",className:["flex-1 overflow-y-auto overflow-x-hidden bg-background-body scrollbar-visible",n,a,s||""].join(" "),role:"main",children:o})]})]}),jsxRuntime.jsx("style",{dangerouslySetInnerHTML:{__html:`
|
|
1
|
+
'use strict';var reactAriaComponents=require('react-aria-components'),Je=require('react'),tailwindMerge=require('tailwind-merge'),jsxRuntime=require('react/jsx-runtime'),Lm=require('@phosphor-icons/react'),luxon=require('luxon'),reactVirtual=require('@tanstack/react-virtual'),sw=require('@phosphor-icons/react/ssr'),reactAria=require('react-aria'),reactStately=require('react-stately'),lucideReact=require('lucide-react'),framerMotion=require('framer-motion'),sk=require('react-ace'),reactColorful=require('react-colorful'),curve=require('@visx/curve'),shape=require('@visx/shape'),gradient=require('@visx/gradient'),group=require('@visx/group'),scale=require('@visx/scale'),d3Array=require('d3-array'),axis=require('@visx/axis'),responsive=require('@visx/responsive'),zoom=require('@visx/zoom'),NT=require('papaparse'),brush=require('@visx/brush'),pattern=require('@visx/pattern'),d3Scale=require('d3-scale'),d3Time=require('d3-time'),dateFns=require('date-fns'),date=require('@internationalized/date'),core=require('@dnd-kit/core'),sortable=require('@dnd-kit/sortable'),utilities=require('@dnd-kit/utilities'),reactDom=require('react-dom'),lL=require('react-map-gl'),server=require('react-dom/server'),wD=require('@tiptap/extension-link'),react=require('@tiptap/react'),menus=require('@tiptap/react/menus'),PD=require('@tiptap/starter-kit'),HA=require('fuse.js');var _documentCurrentScript=typeof document!=='undefined'?document.currentScript:null;function _interopDefault(e){return e&&e.__esModule?e:{default:e}}function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var Je__namespace=/*#__PURE__*/_interopNamespace(Je);var Lm__namespace=/*#__PURE__*/_interopNamespace(Lm);var sw__namespace=/*#__PURE__*/_interopNamespace(sw);var sk__default=/*#__PURE__*/_interopDefault(sk);var NT__default=/*#__PURE__*/_interopDefault(NT);var lL__default=/*#__PURE__*/_interopDefault(lL);var wD__default=/*#__PURE__*/_interopDefault(wD);var PD__default=/*#__PURE__*/_interopDefault(PD);var HA__default=/*#__PURE__*/_interopDefault(HA);var PC=Object.create;var ad=Object.defineProperty;var RC=Object.getOwnPropertyDescriptor;var EC=Object.getOwnPropertyNames;var MC=Object.getPrototypeOf,LC=Object.prototype.hasOwnProperty;var DC=(e,t,r)=>t in e?ad(e,t,{enumerable:true,configurable:true,writable:true,value:r}):e[t]=r;var AC=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var IC=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of EC(t))!LC.call(e,n)&&n!==r&&ad(e,n,{get:()=>t[n],enumerable:!(o=RC(t,n))||o.enumerable});return e};var Pm=(e,t,r)=>(r=e!=null?PC(MC(e)):{},IC(ad(r,"default",{value:e,enumerable:true}),e));var pi=(e,t,r)=>DC(e,typeof t!="symbol"?t+"":t,r);var Gu=AC((Ou,Hu)=>{(function(e,t){typeof define=="function"&&define.amd?define([],t):typeof Ou<"u"?t():(t(),e.FileSaver={});})(Ou,function(){function e(s,c){return typeof c>"u"?c={autoBom:false}:typeof c!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),c={autoBom:!c}),c.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(s.type)?new Blob(["\uFEFF",s],{type:s.type}):s}function t(s,c,l){var d=new XMLHttpRequest;d.open("GET",s),d.responseType="blob",d.onload=function(){i(d.response,c,l);},d.onerror=function(){console.error("could not download file");},d.send();}function r(s){var c=new XMLHttpRequest;c.open("HEAD",s,false);try{c.send();}catch{}return 200<=c.status&&299>=c.status}function o(s){try{s.dispatchEvent(new MouseEvent("click"));}catch{var c=document.createEvent("MouseEvents");c.initMouseEvent("click",true,true,window,0,0,0,80,20,false,false,false,false,0,null),s.dispatchEvent(c);}}var n=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:void 0,a=n.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),i=n.saveAs||(typeof window!="object"||window!==n?function(){}:"download"in HTMLAnchorElement.prototype&&!a?function(s,c,l){var d=n.URL||n.webkitURL,u=document.createElement("a");c=c||s.name||"download",u.download=c,u.rel="noopener",typeof s=="string"?(u.href=s,u.origin===location.origin?o(u):r(u.href)?t(s,c,l):o(u,u.target="_blank")):(u.href=d.createObjectURL(s),setTimeout(function(){d.revokeObjectURL(u.href);},4e4),setTimeout(function(){o(u);},0));}:"msSaveOrOpenBlob"in navigator?function(s,c,l){if(c=c||s.name||"download",typeof s!="string")navigator.msSaveOrOpenBlob(e(s,l),c);else if(r(s))t(s,c,l);else {var d=document.createElement("a");d.href=s,d.target="_blank",setTimeout(function(){o(d);});}}:function(s,c,l,d){if(d=d||open("","_blank"),d&&(d.document.title=d.document.body.innerText="downloading..."),typeof s=="string")return t(s,c,l);var u=s.type==="application/octet-stream",m=/constructor/i.test(n.HTMLElement)||n.safari,p=/CriOS\/[\d]+/.test(navigator.userAgent);if((p||u&&m||a)&&typeof FileReader<"u"){var f=new FileReader;f.onloadend=function(){var b=f.result;b=p?b:b.replace(/^data:[^;]*;/,"data:attachment/file;"),d?d.location.href=b:location=b,d=null;},f.readAsDataURL(s);}else {var g=n.URL||n.webkitURL,y=g.createObjectURL(s);d?d.location=y:location.href=y,d=null,setTimeout(function(){g.revokeObjectURL(y);},4e4);}});n.saveAs=i.saveAs=i,typeof Hu<"u"&&(Hu.exports=i);});});function rr(e,t=false){let[r,o]=Je.useState(t);return Je.useEffect(()=>{if(typeof window>"u")return;let n=window.matchMedia(e);o(n.matches);let a=i=>{o(i.matches);};return n.addEventListener("change",a),()=>{n.removeEventListener("change",a);}},[e]),r}var wn={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"};function or(e="base"){let t=rr(`(min-width: ${wn.sm})`,e!=="base"),r=rr(`(min-width: ${wn.md})`,["md","lg","xl","2xl"].includes(e)),o=rr(`(min-width: ${wn.lg})`,["lg","xl","2xl"].includes(e)),n=rr(`(min-width: ${wn.xl})`,["xl","2xl"].includes(e)),a=rr(`(min-width: ${wn["2xl"]})`,e==="2xl"),i=!r,s=r,c="base";return a?c="2xl":n?c="xl":o?c="lg":r?c="md":t&&(c="sm"),{current:c,isSm:t,isMd:r,isLg:o,isXl:n,is2Xl:a,isMobile:i,isDesktop:s}}function ct(e,t){let r=Je.forwardRef(({size:o=24,color:n="currentColor",className:a,mirrored:i,alt:s,...c},l)=>{let d=!!s||"aria-label"in c;return jsxRuntime.jsx("svg",{ref:l,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 256 256",fill:n,className:a,transform:i?"scale(-1, 1)":void 0,"aria-hidden":d?void 0:true,role:d?"img":void 0,"aria-label":s,...c,children:t})});return r.displayName=e,r}var Ps=()=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("path",{d:"M12 128h44M200 128h44",fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round"}),jsxRuntime.jsx("circle",{cx:"76",cy:"128",r:"20",fill:"none",stroke:"currentColor",strokeWidth:"16"}),jsxRuntime.jsx("circle",{cx:"180",cy:"128",r:"20",fill:"none",stroke:"currentColor",strokeWidth:"16"})]}),Rm=()=>jsxRuntime.jsx("path",{d:"M166 120 88 70",fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round"}),Em=()=>jsxRuntime.jsx("path",{d:"M162 122 92 128",fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round"}),Mm=()=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("path",{d:"M112 85.7 A32 32 0 1 1 144 85.7",fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round"}),jsxRuntime.jsx("circle",{cx:"128",cy:"58",r:"8",fill:"currentColor",stroke:"none"})]}),OC=ct("TextureRecloser",jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("rect",{x:"36",y:"36",width:"184",height:"184",fill:"none",stroke:"currentColor",strokeWidth:"16"}),jsxRuntime.jsx("text",{x:"128",y:"126",textAnchor:"middle",dominantBaseline:"central",fontFamily:"ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif",fontSize:"140",fontWeight:"700",fill:"currentColor",stroke:"none",children:"R"})]})),HC=ct("TextureFuse",jsxRuntime.jsx("path",{d:"M20 128h72q18 -84 36 0q18 84 36 0h72",fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round",strokeLinejoin:"round"})),GC=ct("TextureBreaker",jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("rect",{x:"36",y:"36",width:"184",height:"184",fill:"none",stroke:"currentColor",strokeWidth:"16"}),jsxRuntime.jsx("text",{x:"128",y:"126",textAnchor:"middle",dominantBaseline:"central",fontFamily:"ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif",fontSize:"140",fontWeight:"700",fill:"currentColor",stroke:"none",children:"B"})]})),WC=ct("TextureSource",jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("path",{d:"M4 128h40M212 128h40",fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round"}),jsxRuntime.jsx("circle",{cx:"128",cy:"128",r:"84",fill:"none",stroke:"currentColor",strokeWidth:"16"}),jsxRuntime.jsx("path",{d:"M92 128q18 -84 36 0q18 84 36 0",fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round",strokeLinejoin:"round"})]})),UC=ct("TextureCapacitor",jsxRuntime.jsx(jsxRuntime.Fragment,{children:jsxRuntime.jsx("path",{d:"M4 128h106M146 128h106M110 72v112M146 72v112",fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round"})})),KC=ct("TextureRegulator",jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("circle",{cx:"128",cy:"128",r:"92",fill:"none",stroke:"currentColor",strokeWidth:"16"}),jsxRuntime.jsx("text",{x:"128",y:"126",textAnchor:"middle",dominantBaseline:"central",fontFamily:"ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif",fontSize:"128",fontWeight:"700",fill:"currentColor",stroke:"none",children:"V"})]})),YC=ct("TextureSwitch",jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Ps,{}),jsxRuntime.jsx(Rm,{})]})),JC=ct("TextureSwitchClosed",jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Ps,{}),jsxRuntime.jsx(Em,{})]})),XC=ct("TextureOpenPoint",jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("path",{d:"M112 52 C 74 92, 74 164, 112 204",fill:"none",stroke:"currentColor",strokeWidth:"18",strokeLinecap:"round"}),jsxRuntime.jsx("path",{d:"M144 52 C 182 92, 182 164, 144 204",fill:"none",stroke:"currentColor",strokeWidth:"18",strokeLinecap:"round"})]})),jC=ct("TextureSectionalizerOpen",jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Ps,{}),jsxRuntime.jsx(Rm,{}),jsxRuntime.jsx(Mm,{})]})),qC=ct("TextureSectionalizerClosed",jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Ps,{}),jsxRuntime.jsx(Em,{}),jsxRuntime.jsx(Mm,{})]})),QC=ct("TextureTransformer",jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("path",{d:"M40 64H88A22 22 0 0 1 88 108A22 22 0 0 1 88 152A22 22 0 0 1 88 196H40",fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round",strokeLinejoin:"round"}),jsxRuntime.jsx("path",{d:"M216 64H168A22 22 0 0 0 168 108A22 22 0 0 0 168 152A22 22 0 0 0 168 196H216",fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round",strokeLinejoin:"round"})]})),va={1:[128],2:[110,146],3:[92,128,164]},id=e=>jsxRuntime.jsx("path",{d:`M24 ${e}h208`,fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round"},e),sd=e=>jsxRuntime.jsx("path",{d:`M24 ${e}h208`,fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round",pathLength:100,strokeDasharray:"20 20"},e),ZC=ct("TextureSinglePhaseOverheadLine",jsxRuntime.jsx(jsxRuntime.Fragment,{children:va[1].map(id)})),_C=ct("TextureTwoPhaseOverheadLine",jsxRuntime.jsx(jsxRuntime.Fragment,{children:va[2].map(id)})),$C=ct("TextureThreePhaseOverheadLine",jsxRuntime.jsx(jsxRuntime.Fragment,{children:va[3].map(id)})),e0=ct("TextureSinglePhaseUndergroundLine",jsxRuntime.jsx(jsxRuntime.Fragment,{children:va[1].map(sd)})),t0=ct("TextureTwoPhaseUndergroundLine",jsxRuntime.jsx(jsxRuntime.Fragment,{children:va[2].map(sd)})),r0=ct("TextureThreePhaseUndergroundLine",jsxRuntime.jsx(jsxRuntime.Fragment,{children:va[3].map(sd)})),o0=ct("TextureSupportStructure",jsxRuntime.jsx("circle",{cx:"128",cy:"128",r:"40",fill:"currentColor",stroke:"none"})),Ca={TextureRecloser:OC,TextureFuse:HC,TextureBreaker:GC,TextureSource:WC,TextureCapacitor:UC,TextureRegulator:KC,TextureSwitch:YC,TextureSwitchClosed:JC,TextureOpenPoint:XC,TextureSectionalizerOpen:jC,TextureSectionalizerClosed:qC,TextureTransformer:QC,TextureSinglePhaseOverheadLine:ZC,TextureTwoPhaseOverheadLine:_C,TextureThreePhaseOverheadLine:$C,TextureSinglePhaseUndergroundLine:e0,TextureTwoPhaseUndergroundLine:t0,TextureThreePhaseUndergroundLine:r0,TextureSupportStructure:o0};if(process.env.NODE_ENV==="development")for(let e of Object.keys(Ca))e in Lm__namespace&&console.error(`Custom icon "${e}" collides with a Phosphor icon of the same name. Rename it (use the "Texture" prefix) to keep the icon namespace unambiguous.`);var Sa={xs:16,sm:20,md:24,lg:32,xl:40,"2xl":48},V=Je.memo(({name:e,size:t="md",color:r,weight:o="regular",className:n,ariaLabel:a,...i})=>{let s=Ca[e]??Lm__namespace[e];if(!s)return process.env.NODE_ENV==="development"&&console.error(`Icon "${e}" not found in @phosphor-icons/react or the custom icon registry`),null;let c=typeof t=="string"&&t in Sa?Sa[t]:t,l=tailwindMerge.twMerge("inline-block flex-shrink-0",!r&&"text-current",n);return jsxRuntime.jsx(s,{...i,size:c,color:r,weight:o,className:l,"aria-label":a||`${e} icon`,"data-testid":`icon-${e}`})});V.displayName="Icon";var n0=Je.memo(({variant:e="subtle",shape:t="square",containerSize:r,containerClassName:o,size:n="md",className:a,name:i,color:s,weight:c,ariaLabel:l,ref:d,...u})=>{let m=typeof n=="string"&&n in Sa?Sa[n]:n,p=r?typeof r=="string"&&r in Sa?Sa[r]:r:m*1.75,f=tailwindMerge.twMerge("inline-flex items-center justify-center flex-shrink-0",t==="circle"?"rounded-full":"rounded-lg",e==="subtle"&&"bg-background-muted",e==="solid"&&"bg-action-brand text-[color:var(--color-action-brand-text)]",e==="outline"&&"border-2 border-current",o);return jsxRuntime.jsx("div",{className:f,style:{width:p,height:p},children:jsxRuntime.jsx(V,{...u,name:i,size:n,color:s,weight:c,className:a,ariaLabel:l})})});n0.displayName="IconWithContainer";function vr({transparent:e=false,className:t,children:r,...o}){return jsxRuntime.jsx(reactAriaComponents.ModalOverlay,{...o,className:reactAriaComponents.composeRenderProps(t,(n,a)=>tailwindMerge.twMerge("fixed inset-0 z-50","outline-none focus:outline-none focus-visible:outline-none ring-0 focus:ring-0 focus-visible:ring-0",e?"bg-transparent":["bg-gradient-to-br from-background-modal/20 via-background-modal/15 to-background-modal/20","backdrop-blur-[2px]","supports-[backdrop-filter]:bg-background-modal/15"].join(" "),a.isEntering&&["animate-in fade-in","duration-300 ease-out"].join(" "),a.isExiting&&["animate-out fade-out","duration-200 ease-in"].join(" "),n)),children:r})}function g0({isEntering:e,isExiting:t,className:r="",disableGroup:o=false}){let n=[!o&&"group","bg-background-surface","forced-colors:bg-[Canvas]","shadow-lg","rounded-[var(--control-border-radius)]","bg-clip-padding","border","border-border-default","outline-none"].filter(Boolean).join(" "),a=e?["animate-in","fade-in","placement-bottom:slide-in-from-top-1","placement-top:slide-in-from-bottom-1","placement-left:slide-in-from-right-1","placement-right:slide-in-from-left-1","ease-out","duration-200"].join(" "):"",i=t?["animate-out","fade-out","placement-bottom:slide-out-to-top-1","placement-top:slide-out-to-bottom-1","placement-left:slide-out-to-right-1","placement-right:slide-out-to-left-1","ease-in","duration-150"].join(" "):"";return [n,a,i,r].filter(Boolean).join(" ")}function gt({children:e,showArrow:t=false,withBackdrop:r=false,className:o,isDismissable:n=true,disableGroup:a=false,...i}){let c=reactAriaComponents.useSlottedContext(reactAriaComponents.PopoverContext)?.trigger==="SubmenuTrigger",l=t?12:8;l=c?l-6:l;let d=jsxRuntime.jsxs(reactAriaComponents.Popover,{offset:l,...i,className:reactAriaComponents.composeRenderProps(o,(u,m)=>g0({...m,className:u,disableGroup:a})),children:[t&&jsxRuntime.jsx(reactAriaComponents.OverlayArrow,{children:jsxRuntime.jsx("svg",{width:12,height:12,viewBox:"0 0 12 12",className:"block fill-background-surface stroke-border-default stroke-1 group-placement-left:-rotate-90 group-placement-right:rotate-90 group-placement-bottom:rotate-180 forced-colors:fill-[Canvas] forced-colors:stroke-[ButtonBorder]",children:jsxRuntime.jsx("path",{d:"M0 0 L6 6 L12 0"})})}),e]});return r?jsxRuntime.jsx(vr,{isDismissable:n,children:jsxRuntime.jsx(reactAriaComponents.Modal,{className:"outline-none focus:outline-none focus-visible:outline-none ring-0 focus:ring-0 focus-visible:ring-0",isDismissable:n,children:d})}):d}function Rs(e=true){let[t,r]=Je.useState(null);return Je.useEffect(()=>{if(!e){r(null);return}let o=typeof window<"u"?window.visualViewport:null;if(!o)return;let n=()=>{let a=Math.max(0,window.innerHeight-o.height-(o.offsetTop??0));r({height:o.height,keyboardOffset:a});};return n(),o.addEventListener("resize",n),o.addEventListener("scroll",n),()=>{o.removeEventListener("resize",n),o.removeEventListener("scroll",n);}},[e]),t}var v0={"--color-brand-primary":["--color-action-brand","--color-text-link-default","--action-brand-background"],"--color-brand-dark":["--color-action-brand-hover","--color-text-link-hover","--action-brand-hover"],"--color-action-brand":["--color-text-link-default","--action-brand-background"],"--color-action-brand-hover":["--color-text-link-hover","--action-brand-hover"]};function Im(e){let t={...e};for(let[r,o]of Object.entries(v0))if(e[r])for(let n of o)e[n]||(t[n]=e[r]);return t}function Fm(e){return e.replace(/[{}<>]/g,"")}function Bm(e){return Object.entries(e).map(([t,r])=>`${Fm(t)}: ${Fm(r)};`).join(" ")}function zm({variables:e,darkVariables:t,children:r}){let n=Je.useId().replace(/:/g,""),a=e&&Object.keys(e).length>0,i=t&&Object.keys(t).length>0;if(!a&&!i)return jsxRuntime.jsx(jsxRuntime.Fragment,{children:r});let s=a?Im(e):null,c=i?Im(t):null,l=s?`[data-brand-scope="${n}"] { ${Bm(s)} }`:"",d=c?`.theme-dark [data-brand-scope="${n}"] { ${Bm(c)} }`:"",u=[l,d].filter(Boolean).join(`
|
|
2
|
+
`);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("style",{dangerouslySetInnerHTML:{__html:u}}),jsxRuntime.jsx("div",{"data-brand-scope":n,children:r})]})}var wa=new Map,S0=8;function w0(e){if(!e.startsWith("var("))return e;let t=e.slice(4,e.lastIndexOf(")")).trim(),r=t.indexOf(",");return (r===-1?t:t.slice(0,r)).trim()}var Dt=(e,t="#000000")=>typeof window>"u"?t:Om(e,t,0);function Om(e,t,r){if(r>S0)return t;let o=e.startsWith("var(")?w0(e):e.startsWith("--")?e:`--${e}`;if(!e.startsWith("--")&&!e.startsWith("var(")&&!o.startsWith("--color-")&&(o=`--color-${o.slice(2)}`),wa.has(o))return wa.get(o);try{let n=document.body||document.documentElement,i=getComputedStyle(n).getPropertyValue(o).trim();if(i){if(i.startsWith("var(")){let l=Om(i,t,r+1);return wa.set(o,l),l}return wa.set(o,i),i}let s=document.createElement("div");s.style.color=`var(${o})`,document.body.appendChild(s);let c=getComputedStyle(s).color;return document.body.removeChild(s),c&&c!=="rgb(0, 0, 0)"?(wa.set(o,c),c):t}catch(n){return console.warn(`Failed to resolve color for ${e}:`,n),t}}var Es=()=>{wa.clear();},Eo=()=>{let e=[];for(let t=1;t<=12;t++){let r=Dt(`--color-viz-categorical-${t}`,"");r&&e.push(r);}return e.length===0?Hm():e},Hm=()=>["#5424db","#d92361","#e86a00","#5d89ff","#9a47e2","#f24cb8","#0ba286","#9c28af","#036e45","#52a119","#ff513d","#046691"],fi=()=>Dt("--color-viz-default","#444ae1"),N0=(e,t)=>{let r={},o=Eo();return e.forEach((n,a)=>{t&&t[n]?r[n]=t[n]:r[n]=o[a%o.length];}),r},Gm=e=>{let t=e.match(/\d+/g);if(!t||t.length<3)return true;let[r,o,n]=t.map(Number);return (.299*r+.587*o+.114*n)/255>.5},k0=e=>Gm(e)?Dt("--color-text-primary","#333333"):Dt("--color-text-inverse","#ffffff"),Wm=(e,t)=>{if(!e||typeof e!="object")return console.warn("[Colors] Invalid GeoJSON data provided to extractUniqueValues"),[];if(!("type"in e)||e.type!=="FeatureCollection"&&e.type!=="Feature")return console.warn("[Colors] Data is not valid GeoJSON (missing type or invalid type)"),[];let r=new Set,o="features"in e?e.features:[e];if(!Array.isArray(o)||o.length===0)return console.warn("[Colors] No features found in GeoJSON data"),[];let n=0;return o.forEach(a=>{if(!(!a||typeof a!="object")&&a.properties&&t in a.properties){n++;let i=a.properties[t];i!=null&&r.add(i);}}),n===0&&console.warn(`[Colors] Property "${t}" not found on any features. Available properties: ${o[0]?.properties?Object.keys(o[0].properties).join(", "):"none"}`),Array.from(r).sort()},dd=e=>{let t=Eo(),r={};return e.forEach((o,n)=>{r[o]=t[n%t.length];}),r};var ud=(e,t)=>{if(!e||typeof e!="object")return console.warn("[Colors] Invalid GeoJSON data provided to extractNumericValues"),[];if(!("type"in e)||e.type!=="FeatureCollection"&&e.type!=="Feature")return console.warn("[Colors] Data is not valid GeoJSON (missing type or invalid type)"),[];let r="features"in e?e.features:[e];if(!Array.isArray(r)||r.length===0)return console.warn("[Colors] No features found in GeoJSON data"),[];let o=new Set,n=0;return r.forEach(a=>{if(!(!a||typeof a!="object")&&a.properties&&t in a.properties){n++;let i=a.properties[t];typeof i=="number"&&!isNaN(i)&&o.add(i);}}),n===0&&console.warn(`[Colors] Property "${t}" not found on any features. Available properties: ${r[0]?.properties?Object.keys(r[0].properties).join(", "):"none"}`),Array.from(o).sort((a,i)=>a-i)},pd=e=>e.length===0?(console.warn("[Colors] Cannot calculate bounds from empty array"),{min:0,max:1}):{min:e[0],max:e[e.length-1]},Um=(e,t)=>{if(typeof t=="number")return t;if(e.length===0)return console.warn("[Colors] Cannot calculate center from empty array, defaulting to 0"),0;if(t==="median"){let r=Math.floor(e.length/2);return e.length%2===0?(e[r-1]+e[r])/2:e[r]}return e.reduce((r,o)=>r+o,0)/e.length},gi=(e="viridis")=>{let o=`viz-sequential-${{redYellowGreen:"red-yellow-green"}[e]||e}`,n=[];for(let a=1;a<=10;a++){let i=`${o}-${a}`,s=Dt(i);n.push(s);}return n},bi=(e="redYellowBlue")=>{let o=`viz-diverging-${{orangeYellowSeafoam:"orange-yellow-seafoam",redYellowBlue:"red-yellow-blue",redBlue:"red-blue"}[e]||e}`,n=[];for(let a=1;a<=10;a++){let i=`${o}-${a}`,s=Dt(i);n.push(s);}return n},xi=(e,t,r,o="viridis")=>{let n=gi(o);if(e<=t)return n[0];if(e>=r)return n[n.length-1];if(t===r)return n[Math.floor(n.length/2)];let i=(e-t)/(r-t)*(n.length-1),s=Math.floor(i);return n[s]},hi=(e,t,r,o,n="redYellowBlue")=>{let a=bi(n),i=4;if(e<=t)return a[0];if(e>=r)return a[a.length-1];if(e===o||t===r)return a[i];if(e<o){let c=(e-t)/(o-t)*i,l=Math.floor(c);return a[Math.min(l,i)]}else {let s=(e-o)/(r-o),c=i+s*(a.length-1-i),l=Math.floor(c);return a[Math.min(l,a.length-1)]}};var md=Je.createContext({mode:"system",colorMode:"light",isDarkTheme:false,toggleTheme:()=>{}}),Yt=()=>Je.useContext(md);function M0(){return typeof window>"u"?"light":window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Jm(){if(typeof window>"u")return "system";let e=localStorage.getItem("colorModePreference");return e==="light"||e==="dark"||e==="system"?e:"system"}function Xm(e){return e==="system"?M0():e}var qm=({children:e})=>{let[t,r]=Je.useState(Jm),[o,n]=Je.useState(()=>Xm(Jm())),a=o==="dark",i=Je.useCallback(c=>{c==="dark"?(document.documentElement.classList.add("theme-dark"),document.body.classList.add("theme-dark")):(document.documentElement.classList.remove("theme-dark"),document.body.classList.remove("theme-dark")),Es();},[]);Je.useEffect(()=>{Es();let c=Xm(t);if(n(c),i(c),t==="system"){let l=window.matchMedia("(prefers-color-scheme: dark)"),d=u=>{let m=u.matches?"dark":"light";n(m),i(m);};return l.addEventListener("change",d),()=>{l.removeEventListener("change",d);}}},[t,i]);let s=Je.useCallback(()=>{r(c=>{let l=c==="system"?"light":c==="light"?"dark":"system";return localStorage.setItem("colorModePreference",l),l});},[]);return jsxRuntime.jsx(md.Provider,{value:{mode:t,colorMode:o,isDarkTheme:a,toggleTheme:s},children:e})};function nr(...e){return e.filter(Boolean).join(" ")}var fd=class{constructor(){pi(this,"formatters",new Map);}register(t,r){this.formatters.set(t,r);}format(t,r,...o){let n=this.formatters.get(t);return n?n(r,...o):(console.warn(`No formatter registered for key: ${t}`),null)}has(t){return this.formatters.has(t)}keys(){return Array.from(this.formatters.keys())}unregister(t){this.formatters.delete(t);}clear(){this.formatters.clear();}},ne=new fd;var Ko=(e,t="Yes",r="No")=>e==null?null:e?t:r,L0=e=>Ko(e,"Enabled","Disabled"),D0=e=>Ko(e,"On","Off"),A0=e=>Ko(e,"Active","Inactive"),I0=e=>Ko(e,"True","False"),F0=e=>Ko(e,"\u2713","\u2717"),Yo=e=>{if(e==null)return null;if(typeof e=="boolean")return e;if(typeof e=="string"){let t=e.toLowerCase().trim();return t==="true"||t==="yes"||t==="1"||t==="on"||t==="enabled"?true:t==="false"||t==="no"||t==="0"||t==="off"||t==="disabled"?false:null}return typeof e=="number"?e!==0:null},Qm=(e,t)=>{if(t.hideWhenNull&&e==null)return null;if(e==null)return t.nullText??null;let r=Yo(e);return r===null?t.nullText??null:Ko(r,t.trueText??"Yes",t.falseText??"No")};ne.register("boolean",(e,t,r)=>{let o=Yo(e);return o!==null?Ko(o,typeof t=="string"?t:"Yes",typeof r=="string"?r:"No"):null});ne.register("yesNo",e=>{let t=Yo(e);return t!==null?Ko(t,"Yes","No"):null});ne.register("enabledDisabled",e=>{let t=Yo(e);return t!==null?L0(t):null});ne.register("onOff",e=>{let t=Yo(e);return t!==null?D0(t):null});ne.register("activeInactive",e=>{let t=Yo(e);return t!==null?A0(t):null});ne.register("trueFalse",e=>{let t=Yo(e);return t!==null?I0(t):null});ne.register("checkmark",e=>{let t=Yo(e);return t!==null?F0(t):null});var fe=e=>e==null,Zm=(e,t=0)=>fe(e)?null:`${e.toFixed(t)}%`,_m=(e,t=0)=>Zm(e,t)??"\u2014",B0=e=>fe(e)?null:Math.round(e).toString(),V0=(e,t=1)=>fe(e)?null:e.toFixed(t),z0=(e,t,r=true)=>{if(fe(e))return null;let o={useGrouping:r};return t!==void 0&&(o.minimumFractionDigits=t,o.maximumFractionDigits=t),new Intl.NumberFormat("en-US",o).format(e)},O0=(e,t="short")=>fe(e)?null:new Intl.NumberFormat("en-US",{notation:"compact",compactDisplay:t}).format(e),H0=(e,t=2)=>fe(e)?null:e.toExponential(t),$m=(e,t="USD",r)=>{if(fe(e))return null;let o={style:"currency",currency:t,currencyDisplay:r?.currencyDisplay??"symbol",useGrouping:r?.thousandsSeparator??true};return r?.minimumFractionDigits!==void 0&&(o.minimumFractionDigits=r.minimumFractionDigits),r?.maximumFractionDigits!==void 0&&(o.maximumFractionDigits=r.maximumFractionDigits),new Intl.NumberFormat("en-US",o).format(e)},ef=(e,t)=>{if(t.hideWhenNull&&e==null||t.hideWhenZero&&e===0)return null;if(e==null)return t.nullText??null;let r=typeof e=="string"?parseFloat(e):Number(e);if(isNaN(r))return t.nullText??null;let o={useGrouping:t.thousandsSeparator??false};return t.decimals!==void 0&&(o.minimumFractionDigits=t.decimals,o.maximumFractionDigits=t.decimals),t.notation&&(o.notation=t.notation,t.notation==="compact"&&t.compactDisplay&&(o.compactDisplay=t.compactDisplay)),t.sign&&(o.signDisplay=t.sign),new Intl.NumberFormat("en-US",o).format(r)},tf=(e,t)=>{if(t.hideWhenNull&&e==null||t.hideWhenZero&&e===0)return null;if(e==null)return t.nullText??null;let r=typeof e=="string"?parseFloat(e):Number(e);return isNaN(r)?t.nullText??null:$m(r,t.currency,t)};ne.register("percentage",(e,t)=>typeof e=="number"?Zm(e,typeof t=="number"?t:0):null);ne.register("integer",e=>typeof e=="number"?B0(e):null);ne.register("float",(e,t)=>typeof e=="number"?V0(e,typeof t=="number"?t:1):null);ne.register("number",(e,t,r)=>{let o=typeof e=="string"?parseFloat(e):Number(e);return isNaN(o)?null:z0(o,typeof t=="number"?t:void 0,typeof r=="boolean"?r:true)});ne.register("compact",(e,t)=>typeof e=="number"?O0(e,t==="long"?"long":"short"):null);ne.register("scientific",(e,t)=>typeof e=="number"?H0(e,typeof t=="number"?t:2):null);ne.register("currency",(e,t,r)=>typeof e=="number"?$m(e,typeof t=="string"?t:"USD",typeof r=="object"&&r!==null?r:{}):null);function e5(e,t=1){return fe(e)?null:Math.abs(e)>=1e3?`${(e/1e3).toFixed(t)} MWh`:`${e.toFixed(t)} kWh`}function t5(e,t=1){return fe(e)?null:Math.abs(e)>=1e3?`${(e/1e3).toFixed(t)} MW`:`${e.toFixed(t)} kW`}function ao({value:e,formatter:t,emptyClassName:r="text-text-secondary",emptyText:o="\u2014"}){if(e==null)return jsxRuntime.jsx("span",{className:r,children:o});if(typeof t=="function")return t(e);if(t&&typeof t=="object"){let n=Cr(e,t);return e instanceof Date&&n?jsxRuntime.jsx("time",{dateTime:e.toISOString(),title:e.toISOString(),children:n}):n||jsxRuntime.jsx("span",{className:r,children:o})}if(!t){if(typeof e=="string")return e;if(e instanceof Date){let n=Cr(e,{type:"date"});return jsxRuntime.jsx("time",{dateTime:e.toISOString(),title:e.toISOString(),children:n})}if(typeof e=="number")return Cr(e,{type:"number"});if(typeof e=="boolean")return Cr(e,{type:"boolean"})}return String(e)}function a5(e,t,r){return Je__namespace.default.useCallback(o=>ao({value:o,formatter:e,emptyClassName:t,emptyText:r}),[e,t,r])}var gd=(e,t=0)=>{if(fe(e))return null;let r=e*1e3;return t===0?`${Math.round(r)} mA`:`${r.toFixed(t)} mA`},Ls=(e,t=1)=>fe(e)?null:`${e.toFixed(t)} A`,bd=(e,t=2)=>fe(e)?null:`${(e/1e3).toFixed(t)} kA`,W0=(e,t)=>{if(fe(e))return null;let r=Math.abs(e);return r>=1e3?bd(e,t??2):r<1?gd(e,t??0):Ls(e,t??1)},xd=(e,t)=>{if(t.hideWhenNull&&e==null||t.hideWhenZero&&e===0)return null;if(e==null)return t.nullText??null;let r=typeof e=="string"?parseFloat(e):Number(e);if(isNaN(r))return t.nullText??null;let o=t.decimals;if(t.unit)switch(t.unit){case "kA":return bd(r,o??2);case "mA":return gd(r,o??0);case "A":return Ls(r,o??1)}return t.autoScale!==false?W0(r,o):Ls(r,o??1)};ne.register("current",xd);var d5=gd,u5=Ls,p5=bd;var Nn=e=>{if(e==null)return null;if(e instanceof Date)return luxon.DateTime.fromJSDate(e);if(typeof e=="string"){let t=luxon.DateTime.fromISO(e);return t.isValid?t:null}if(typeof e=="number"){let t=luxon.DateTime.fromMillis(e);return t.isValid?t:null}return null},U0=(e,t=false,r)=>{if(!e)return null;let o=Nn(e);if(!o)return "Invalid Date";let n=r?o.setZone(r):o;return t?n.toLocaleString(luxon.DateTime.DATETIME_SHORT):n.toLocaleString(luxon.DateTime.DATE_SHORT)},Ds=e=>{if(!e)return null;let t=Nn(e);return t?t.toRelative():"Invalid Date"},K0=(e,t)=>{if(!e)return null;let r=Nn(e);return r?(t?r.setZone(t):r).toLocaleString(luxon.DateTime.DATETIME_MED_WITH_WEEKDAY):"Invalid Date"},Y0=e=>{if(!e)return null;let t=Nn(e);return t?t.toISO():null},J0=(e,t,r)=>{if(!e)return null;let o=Nn(e);return o?(r?o.setZone(r):o).toFormat(t):"Invalid Date"},b5=e=>{let t=Nn(e);return t?{year:t.year,month:t.month,day:t.day,weekday:t.weekday,hour:t.hour,minute:t.minute,second:t.second,millisecond:t.millisecond,weekdayShort:t.weekdayShort,weekdayLong:t.weekdayLong,monthShort:t.monthShort,monthLong:t.monthLong}:null},rf=(e,t)=>{if(t.hideWhenNull&&e==null)return null;if(e==null)return t.nullText??null;let r=Nn(e);if(!r)return t.nullText??"Invalid Date";let o=t.timezone?r.setZone(t.timezone):r;if(t.relative)return o.toRelative();if(t.format)return o.toFormat(t.format);if(t.dateStyle||t.timeStyle){let n={};if(t.dateStyle)switch(t.dateStyle){case "short":n.date=luxon.DateTime.DATE_SHORT;break;case "medium":n.date=luxon.DateTime.DATE_MED;break;case "long":n.date=luxon.DateTime.DATE_FULL;break;case "full":n.date=luxon.DateTime.DATE_HUGE;break}if(t.timeStyle)switch(t.timeStyle){case "short":n.time=luxon.DateTime.TIME_SIMPLE;break;case "medium":n.time=luxon.DateTime.TIME_WITH_SECONDS;break;case "long":case "full":n.time=luxon.DateTime.TIME_WITH_SHORT_OFFSET;break}if(n.date&&n.time)return o.toLocaleString({...n.date,...n.time});if(n.date)return o.toLocaleString(n.date);if(n.time)return o.toLocaleString(n.time)}return o.toLocaleString(luxon.DateTime.DATETIME_SHORT)};ne.register("date",(e,t,r)=>U0(e,typeof t=="boolean"?t:false,typeof r=="string"?r:void 0));ne.register("relativeTime",e=>Ds(e));ne.register("fullDateTime",(e,t)=>K0(e,typeof t=="string"?t:void 0));ne.register("isoString",e=>Y0(e));ne.register("customDateFormat",(e,t,r)=>typeof t=="string"?J0(e,t,typeof r=="string"?r:void 0):null);var hd=(e,t=1)=>fe(e)?null:`${e.toFixed(t)} m`,X0=(e,t=1)=>fe(e)?null:`${(e*100).toFixed(t)} cm`,j0=(e,t=0)=>fe(e)?null:`${(e*1e3).toFixed(t)} mm`,yd=(e,t=1)=>fe(e)?null:`${(e/1e3).toFixed(t)} km`,vd=(e,t=0)=>fe(e)?null:`${e.toFixed(t)} ft`,q0=(e,t=1)=>fe(e)?null:`${e.toFixed(t)} in`,Cd=(e,t=1)=>fe(e)?null:`${e.toFixed(t)} mi`,Sd=(e,t=0)=>fe(e)?null:`${e.toFixed(t)} yd`,v5=(e,t=1)=>fe(e)?null:`${e.toFixed(t)} nm`,C5=e=>e*3.28084,S5=e=>e/3.28084,w5=e=>e*1.60934,N5=e=>e/1.60934,k5=e=>e/5280,of=e=>e*5280,T5=e=>e/1609.34,P5=e=>e*1609.34,R5=e=>e*.9144,E5=e=>e/.9144,M5=e=>e*2.54,L5=e=>e/2.54,nf=(e,t=false,r=1)=>{if(fe(e))return null;let o=Math.abs(e);return t?o>=1e3?yd(e,r):o<.01?j0(e,0):o<1?X0(e,r):hd(e,r):o<.01?vd(of(e),0):o<.1?Sd(of(e)/3,0):Cd(e,r)},af=(e,t)=>{if(t.hideWhenNull&&e==null||t.hideWhenZero&&e===0)return null;if(e==null)return t.nullText??null;let r=typeof e=="string"?parseFloat(e):Number(e);if(isNaN(r))return t.nullText??null;let o=t.decimals??1;if(t.autoScale){let n=t.unit==="m"||t.unit==="km";return nf(r,n,o)}switch(t.unit){case "km":return yd(r,o);case "ft":return vd(r,o);case "mi":return Cd(r,o);case "yd":return Sd(r,o);default:return hd(r,o)}};ne.register("miles",(e,t)=>typeof e=="number"?Cd(e,typeof t=="number"?t:1):null);ne.register("kilometers",(e,t)=>typeof e=="number"?yd(e,typeof t=="number"?t:1):null);ne.register("meters",(e,t)=>typeof e=="number"?hd(e,typeof t=="number"?t:1):null);ne.register("feet",(e,t)=>typeof e=="number"?vd(e,typeof t=="number"?t:0):null);ne.register("yards",(e,t)=>typeof e=="number"?Sd(e,typeof t=="number"?t:0):null);ne.register("inches",(e,t)=>typeof e=="number"?q0(e,typeof t=="number"?t:1):null);ne.register("autoScaleDistance",(e,t,r)=>typeof e=="number"?nf(e,typeof t=="boolean"?t:false,typeof r=="number"?r:1):null);var wd=(e,t=1)=>fe(e)?null:`${e.toFixed(t)} Wh`,Nd=(e,t=1)=>fe(e)?null:`${(e/1e3).toFixed(t)} kWh`,sf=(e,t=1)=>fe(e)?null:`${(e/1e6).toFixed(t)} MWh`,lf=(e,t=1)=>fe(e)?null:`${(e/1e9).toFixed(t)} GWh`,kd=e=>{let t=Math.abs(e);return t>=1e9?"GWh":t>=1e6?"MWh":t>=1e3?"kWh":"Wh"},cf=(e,t=1)=>{if(fe(e))return null;switch(kd(e)){case "GWh":return lf(e,t);case "MWh":return sf(e,t);case "kWh":return Nd(e,t);default:return wd(e,t)}},Td={Wh:1,kWh:1e3,MWh:1e6,GWh:1e9},Pd=(e,t)=>{if(t.hideWhenNull&&e==null||t.hideWhenZero&&e===0)return null;if(e==null)return t.nullText??null;let r=typeof e=="string"?parseFloat(e):Number(e);if(isNaN(r))return t.nullText??null;let o=t.sourceUnit?r*Td[t.sourceUnit]:r,n=t.decimals??1;if(t.unit)switch(t.unit){case "GWh":return lf(o,n);case "MWh":return sf(o,n);case "kWh":return Nd(o,n);case "Wh":return wd(o,n)}return t.autoScale!==false?cf(o,n):wd(o,n)};ne.register("kWh",e=>typeof e=="number"?Nd(e):null);ne.register("autoScaleEnergy",(e,t)=>typeof e=="number"?cf(e,typeof t=="number"?t:1):null);ne.register("energy",Pd);var As=e=>{if(!e)return null;let t=e.replace(/\D/g,"");return t.length===10?t.replace(/(\d{3})(\d{3})(\d{4})/,"($1) $2-$3"):t.length===11&&t.startsWith("1")?t.replace(/1(\d{3})(\d{3})(\d{4})/,"+1 ($1) $2-$3"):e},Rd=e=>{if(!e)return null;let t=e.replace(/[^\d+]/g,"");return t.startsWith("+")?t.length===12&&t.startsWith("+1")?t.replace(/\+1(\d{3})(\d{3})(\d{4})/,"+1 ($1) $2-$3"):t.length===13&&t.startsWith("+44")?t.replace(/\+44(\d{2})(\d{4})(\d{4})/,"+44 $1 $2 $3"):t.replace(/(\+\d{1,3})(\d{3,4})(\d{3,4})(\d{3,4})?/,"$1 $2 $3 $4").trim():As(e)},Na=e=>e?e.startsWith("+")||e.length>11?Rd(e):As(e):null,df=(e,t)=>{if(t.hideWhenNull&&e==null)return null;if(e==null)return t.nullText??null;let r=String(e);if(t.international)return Rd(r);switch(t.country){case "US":case "CA":return As(r);default:return Na(r)}};ne.register("phoneNumber",e=>typeof e=="string"?Na(e):null);ne.register("usPhone",e=>typeof e=="string"?As(e):null);ne.register("internationalPhone",e=>typeof e=="string"?Rd(e):null);var Is=(e,t=0)=>fe(e)?null:t===0?`${Math.round(e)} W`:`${e.toFixed(t)} W`,Ed=(e,t=1)=>fe(e)?null:`${(e/1e3).toFixed(t)} kW`,Md=(e,t=1)=>fe(e)?null:`${(e/1e6).toFixed(t)} MW`,Ld=(e,t=2)=>fe(e)?null:`${(e/1e9).toFixed(t)} GW`,Q0=(e,t)=>{if(fe(e))return null;let r=Math.abs(e);return r>=1e9?Ld(e,t??2):r>=1e6?Md(e,t??1):r>=1e3?Ed(e,t??1):Is(e,t??0)},Dd=(e,t)=>{if(t.hideWhenNull&&e==null||t.hideWhenZero&&e===0)return null;if(e==null)return t.nullText??null;let r=typeof e=="string"?parseFloat(e):Number(e);if(isNaN(r))return t.nullText??null;let o=t.decimals;if(t.unit)switch(t.unit){case "GW":return Ld(r,o??2);case "MW":return Md(r,o??1);case "kW":return Ed(r,o??1);case "W":return Is(r,o??0)}return t.autoScale!==false?Q0(r,o):Is(r,o??0)};ne.register("power",Dd);var H5=Is,G5=Ed,W5=Md,U5=Ld;var Ad=(e,t=1)=>fe(e)?null:`${(e*1e3).toFixed(t)} m\u03A9`,Fs=(e,t=1)=>fe(e)?null:`${e.toFixed(t)} \u03A9`,uf=(e,t=1)=>fe(e)?null:`${(e/1e3).toFixed(t)} k\u03A9`,pf=(e,t=2)=>fe(e)?null:`${(e/1e6).toFixed(t)} M\u03A9`,Z0=(e,t)=>{if(fe(e))return null;let r=Math.abs(e);return r>=1e6?pf(e,t??2):r>=1e3?uf(e,t??1):r<1?Ad(e,t??1):Fs(e,t??1)},Id=(e,t)=>{if(t.hideWhenNull&&e==null||t.hideWhenZero&&e===0)return null;if(e==null)return t.nullText??null;let r=typeof e=="string"?parseFloat(e):Number(e);if(isNaN(r))return t.nullText??null;let o=t.decimals;if(t.unit)switch(t.unit){case "M\u03A9":return pf(r,o??2);case "k\u03A9":return uf(r,o??1);case "m\u03A9":return Ad(r,o??1);case "\u03A9":return Fs(r,o??1)}return t.autoScale!==false?Z0(r,o):Fs(r,o??1)};ne.register("resistance",Id);ne.register("ohms",e=>typeof e=="number"?Fs(e):null);ne.register("milliohms",e=>typeof e=="number"?Ad(e):null);var mf=e=>{switch(e){case "FAHRENHEIT":return "F";case "CELSIUS":return "C";case "KELVIN":return "K";default:return "F"}},ff=(e,t=0)=>fe(e)?null:`${e.toFixed(t)}\xB0F`,gf=(e,t=true,r=0)=>fe(e)?null:`${(t?(e-32)*(5/9):e).toFixed(r)}\xB0C`,bf=(e,t=true,r=0)=>fe(e)?null:`${(t?(e-32)*(5/9)+273.15:e+273.15).toFixed(r)}K`,_0=e=>e*9/5+32,$0=e=>(e-32)*(5/9),Q5=e=>e+273.15,eS=e=>e-273.15,Z5=e=>$0(e)+273.15,_5=e=>_0(eS(e)),xf=(e,t="F",r=0)=>{if(fe(e))return null;switch(typeof t=="string"&&t.length>1?mf(t):t){case "C":return gf(e,true,r);case "K":return bf(e,true,r);default:return ff(e,r)}},hf=(e,t)=>{if(t.hideWhenNull&&e==null)return null;if(e==null)return t.nullText??null;let r=typeof e=="string"?parseFloat(e):Number(e);if(isNaN(r))return t.nullText??null;let o=t.decimals??0,n=t.unit??"F";if(t.showUnit===false)switch(typeof n=="string"&&n.length>1?mf(n):n){case "C":return ((r-32)*.5555555555555556).toFixed(o);case "K":return ((r-32)*.5555555555555556+273.15).toFixed(o);default:return r.toFixed(o)}return xf(r,n,o)};ne.register("temperature",(e,t,r)=>typeof e=="number"?xf(e,typeof t=="string"?t:"F",typeof r=="number"?r:0):null);ne.register("fahrenheit",(e,t)=>typeof e=="number"?ff(e,typeof t=="number"?t:0):null);ne.register("celsius",(e,t,r)=>typeof e=="number"?gf(e,typeof t=="boolean"?t:true,typeof r=="number"?r:0):null);ne.register("kelvin",(e,t,r)=>typeof e=="number"?bf(e,typeof t=="boolean"?t:true,typeof r=="number"?r:0):null);var tS=(e,t)=>!!(t.hideWhenNull&&e==null||t.hideWhenZero&&e===0),yf=e=>e?.toUpperCase()??"",vf=e=>e?.toLowerCase()??"",Cf=e=>e?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():"",Sf=e=>{if(!e)return "";let t=new Set(["a","an","the","and","but","or","for","nor","on","at","of","to","with","in","as","by"]);return e.toLowerCase().split(/\s+/).map((r,o)=>t.has(r)&&o!==0?r:r.charAt(0).toUpperCase()+r.slice(1)).join(" ")},wf=e=>e?e.split(/\s+/).map(t=>t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()).join(" "):"",Nf=e=>e?e.charAt(0).toUpperCase()+e.slice(1):"",kf=e=>e?e.replace(/([A-Z])/g," $1").replace(/^./,t=>t.toUpperCase()).trim():"",Tf=e=>e?e.toLowerCase().split("_").map(t=>Nf(t)).join(" "):"",rS=e=>e?e.includes("_")?Tf(e):e.toUpperCase()===e?Nf(e.toLowerCase()):kf(e):"",ka=(e,t=16)=>{if(!e)return "";if(t<5||e.length<=t)return e;let r=t-3,o=Math.ceil(r/2),n=Math.floor(r/2);return `${e.slice(0,o)}...${e.slice(-n)}`},Bs=(e,t=8)=>e?e.length<=t?e:`...${e.slice(-t)}`:"",Vs=(e,t=16,r="...")=>e?e.length<=t?e:e.slice(0,t)+r:"",oS=e=>{if(!e)return "";let t=e.toString(),r=t.slice(-4),o=t.length-4;return o>0?"*".repeat(o)+r:t},Pf=(e,t)=>{if(tS(e,t))return null;if(e==null)return t.nullText??null;let r=String(e);if(t.transform&&(Array.isArray(t.transform)?t.transform:[t.transform]).forEach(n=>{switch(n){case "uppercase":r=yf(r);break;case "lowercase":r=vf(r);break;case "capitalize":r=wf(r);break;case "titleCase":r=Sf(r);break;case "sentenceCase":r=Cf(r);break}}),t.truncate){let{length:o,position:n,ellipsis:a="..."}=t.truncate;switch(n){case "start":r=Bs(r,o);break;case "middle":r=ka(r,o);break;case "end":r=Vs(r,o,a);break}}return r};ne.register("uppercase",e=>yf(String(e)));ne.register("lowercase",e=>vf(String(e)));ne.register("sentenceCase",e=>Cf(String(e)));ne.register("titleCase",e=>Sf(String(e)));ne.register("capitalize",e=>wf(String(e)));ne.register("camelCaseToWords",e=>kf(String(e)));ne.register("snakeCaseToWords",e=>Tf(String(e)));ne.register("enumToSentenceCase",e=>rS(String(e)));ne.register("truncateMiddle",(e,t)=>ka(String(e),typeof t=="number"?t:16));ne.register("truncateStart",(e,t)=>Bs(String(e),typeof t=="number"?t:8));ne.register("truncateEnd",(e,t,r)=>Vs(String(e),typeof t=="number"?t:16,typeof r=="string"?r:"..."));ne.register("secret",e=>oS(String(e)));var Fd=(e,t=0)=>{if(fe(e))return null;let r=e*1e3;return t===0?`${Math.round(r)} mV`:`${r.toFixed(t)} mV`},zs=(e,t=0)=>fe(e)?null:t===0?`${Math.round(e)} V`:`${e.toFixed(t)} V`,Bd=(e,t=1)=>fe(e)?null:`${(e/1e3).toFixed(t)} kV`,nS=(e,t)=>{if(fe(e))return null;let r=Math.abs(e);return r>=1e3?Bd(e,t??1):r<1?Fd(e,t??0):zs(e,t??0)},Vd=(e,t)=>{if(t.hideWhenNull&&e==null||t.hideWhenZero&&e===0)return null;if(e==null)return t.nullText??null;let r=typeof e=="string"?parseFloat(e):Number(e);if(isNaN(r))return t.nullText??null;let o=t.decimals;if(t.unit)switch(t.unit){case "kV":return Bd(r,o??1);case "mV":return Fd(r,o??0);case "V":return zs(r,o??0)}return t.autoScale!==false?nS(r,o):zs(r,o??0)};ne.register("voltage",Vd);var n4=Fd,a4=zs,i4=Bd;var aS=(e,t)=>{if(e==null)return t.nullText??null;if(t.hideWhenNull&&e===null)return null;let r=typeof e=="number"?e:Number(e);return Number.isNaN(r)?t.nullText??null:_m(r,t.decimals??0)},Cr=(e,t)=>{switch(t.type){case "text":return Pf(e,t);case "number":return ef(e,t);case "percentage":return aS(e,t);case "currency":return tf(e,t);case "date":return rf(e,t);case "boolean":return Qm(e,t);case "energy":return Pd(e,t);case "power":return Dd(e,t);case "voltage":return Vd(e,t);case "current":return xd(e,t);case "resistance":return Id(e,t);case "temperature":return hf(e,t);case "distance":return af(e,t);case "phone":return df(e,t);case "custom":{let r=t;return r.hideWhenNull&&e==null?null:e==null?r.nullText??null:r.formatter(e,r.options)}default:return e!=null?String(e):null}};var Ta={power:"W",energy:"Wh",voltage:"V",current:"A",resistance:"\u03A9",distance:"m"},iS=new Set(["number","power","energy","voltage","current","resistance","temperature","distance","percentage"]);function zd(e){if(!e)return null;switch(e.type){case "percentage":return "%";case "power":return e.unit??Ta.power;case "energy":return e.unit??e.sourceUnit??Ta.energy;case "voltage":return e.unit??Ta.voltage;case "current":return e.unit??Ta.current;case "resistance":return e.unit??Ta.resistance;case "temperature":{let t=typeof e.unit=="string"?e.unit:"F";return t==="C"||t==="CELSIUS"?"\xB0C":t==="F"||t==="FAHRENHEIT"?"\xB0F":t==="K"||t==="KELVIN"?"K":t}case "distance":return e.unit??Ta.distance;default:return null}}function Rf(e,t){if(!iS.has(t.type))return null;let r;if(typeof e=="number")r=e;else if(typeof e=="string"){let n=parseFloat(e);if(Number.isNaN(n))return null;r=n;}else return null;let o=zd(t);if(o!==null){let n;if(t.type==="percentage")n=t;else if(t.type==="energy")n=t.unit?{...t,autoScale:false}:{...t,unit:t.sourceUnit??"Wh",autoScale:false};else if(t.type==="temperature")n={...t};else {let s=t.unit;n={...t,unit:s??o,autoScale:false};}let a=Cr(r,n);if(!a)return "";if(typeof a=="string"&&a.startsWith("device."))return null;let i=String(a);return i.endsWith(` ${o}`)?i.slice(0,-(o.length+1)):i.endsWith(o)?i.slice(0,-o.length):i}if(t.type==="number"){let n=Cr(r,t);return n?String(n):""}return String(r)}var w4=(e,t)=>({type:e,...t});function Tn(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function kn(e,t){return Tn(e)?t.format(e):""}function Ef(e){if(!Tn(e.start)||!Tn(e.end))return ()=>"";if((e.end.getTime()-e.start.getTime())/(1e3*60*60)<=720){let i=new Intl.DateTimeFormat("en",{month:"short",day:"numeric",hour:"numeric",minute:"2-digit"});return s=>kn(s,i)}let r=e.start.getFullYear(),o=e.end.getFullYear(),n=r!==o,a=new Intl.DateTimeFormat("en",{month:"short",day:"numeric",hour:"numeric",minute:"2-digit",...n&&{year:"numeric"}});return i=>kn(i,a)}var sS=864e5;function Mf(e,t){let r=t?.compact??false,o=e<5*sS,n=a=>{let i=a.getHours(),s=i>=12?"PM":"AM";return {displayHour:i%12||12,period:s}};return a=>{if(!Tn(a))return "";let i=a.getHours()===0&&a.getMinutes()===0&&a.getSeconds()===0&&a.getMilliseconds()===0;if(i&&a.getDate()===1)return a.getMonth()===0?String(a.getFullYear()):a.toLocaleDateString("en",{month:"short"});if(i){let d=a.getDate();if(o){let u=a.toLocaleDateString("en",{weekday:"short"});return r?`${u.charAt(0)}${d}`:`${u} ${d}`}return r?`${a.getMonth()+1}/${d}`:`${a.toLocaleDateString("en",{month:"short"})} ${d}`}let{displayHour:s,period:c}=n(a);if(a.getMinutes()===0&&a.getSeconds()===0)return r?`${s}${c.charAt(0).toLowerCase()}`:`${s} ${c}`;let l=String(a.getMinutes()).padStart(2,"0");return r?`${s}:${l}${c.charAt(0).toLowerCase()}`:`${s}:${l} ${c}`}}function Od(e,t){if(!Tn(e.start)||!Tn(e.end))return ()=>"";let r=(e.end.getTime()-e.start.getTime())/(1e3*60*60),o=t?.compact??false,n=l=>d=>Tn(d)?l(d):"";if(r<=24){if(o)return n(d=>{let u=d.getHours(),m=u>=12?"pm":"am";return `${u%12||12}${m}`});let l=new Intl.DateTimeFormat("en",{hour:"numeric",minute:"2-digit"});return d=>kn(d,l)}if(r<=48){if(o)return n(d=>{let u=d.getMonth()+1,m=d.getDate(),p=d.getHours(),f=p>=12?"p":"a",g=p%12||12;return `${u}/${m} ${g}${f}`});let l=new Intl.DateTimeFormat("en",{month:"short",day:"numeric",hour:"numeric"});return d=>kn(d,l)}if(r<=168){if(o)return n(d=>{let u=d.getDate();return `${d.toLocaleDateString("en",{weekday:"short"}).charAt(0)}${u}`});let l=new Intl.DateTimeFormat("en",{weekday:"short",day:"numeric"});return d=>kn(d,l)}if(r<=720){if(o)return n(d=>{let u=d.getMonth()+1,m=d.getDate();return `${u}/${m}`});let l=new Intl.DateTimeFormat("en",{month:"short",day:"numeric"});return d=>kn(d,l)}let a=e.start.getFullYear(),i=e.end.getFullYear(),s=a!==i;if(o)return n(l=>{let d=l.getMonth()+1,u=l.getDate(),m=s?`/${l.getFullYear().toString().slice(-2)}`:"";return `${d}/${u}${m}`});let c=new Intl.DateTimeFormat("en",{month:"short",day:"numeric",...s&&{year:"numeric"}});return l=>kn(l,c)}var io={displayXl:"text-display-xl",displayLg:"text-display-lg",displayMd:"text-display-md",displaySm:"text-display-sm",headingXl:"text-heading-xl",headingLg:"text-heading-lg",headingMd:"text-heading-md",headingSm:"text-heading-sm",bodyLg:"text-body-lg",bodyMd:"text-body-md",bodySm:"text-body-sm",labelLg:"text-label-lg",labelMd:"text-label-md",labelSm:"text-label-sm",code:"text-code",agent:"text-agent"};function vt(e,...t){return nr(io[e],...t)}function $e(e=false){return `${e?"outline outline-1 outline-border-input data-[focus-visible]:outline-2 data-[focus-visible]:outline-action-default data-[focus-visible]:outline-offset-0 invalid:outline-2 invalid:outline-feedback-error-border group-invalid:outline-2 group-invalid:outline-feedback-error-border forced-colors:focus:outline-[Highlight] forced-colors:focus:outline-2 forced-colors:focus:outline-offset-2":"outline-none data-[focus-visible]:outline data-[focus-visible]:outline-2 data-[focus-visible]:outline-action-default data-[focus-visible]:outline-offset-0 invalid:outline-2 invalid:outline-feedback-error-border group-invalid:outline-2 group-invalid:outline-feedback-error-border forced-colors:focus:outline-[Highlight] forced-colors:focus:outline-2 forced-colors:focus:outline-offset-2"}`}function Ee(e,t){return reactAriaComponents.composeRenderProps(e,r=>tailwindMerge.twMerge(t,r))}var je={sm:{text:"text-[length:var(--control-text-sm)]",height:"h-[var(--control-sm-height)]",padding:"px-[var(--control-padding-sm)]",paddingY:"py-[var(--control-gap-sm)]",gap:"gap-[var(--control-gap-sm)]"},md:{text:"text-[length:var(--control-text-md)]",height:"h-[var(--control-md-height)]",padding:"px-[var(--control-padding-md)]",paddingY:"py-[var(--control-gap-md)]",gap:"gap-[var(--control-gap-md)]"},lg:{text:"text-[length:var(--control-text-lg)]",height:"h-[var(--control-lg-height)]",padding:"px-[var(--control-padding-lg)]",paddingY:"py-[var(--control-gap-lg)]",gap:"gap-[var(--control-gap-lg)]"},xl:{text:"text-[length:var(--control-text-xl)]",height:"h-[var(--control-xl-height)]",padding:"px-[var(--control-padding-xl)]",paddingY:"py-[var(--control-gap-xl)]",gap:"gap-[var(--control-gap-xl)]"}};var pS="flex font-medium justify-center items-center gap-2 text-center transition rounded-[var(--control-border-radius)] whitespace-nowrap box-border",mS="bg-action-primary text-[color:var(--color-action-primary-text)] hover:bg-action-primary-hover forced-colors:bg-[ButtonText] forced-colors:text-[ButtonFace] border-2 border-transparent",fS={primary:mS,secondary:"bg-action-secondary text-[color:var(--color-action-secondary-text)] border-2 border-border-muted hover:bg-action-secondary-hover forced-colors:border-[ButtonBorder] forced-colors:bg-[ButtonFace] forced-colors:text-[ButtonText]",ghost:"border-none text-text-primary hover:bg-text-primary/5 forced-colors:text-[ButtonText] forced-colors:hover:bg-[ButtonFace]",destructive:"bg-transparent text-feedback-error-text border-2 border-border-muted hover:bg-feedback-error-background/50 forced-colors:border-[ButtonBorder] forced-colors:bg-[ButtonFace] forced-colors:text-[Mark]",link:"!text-action-primary hover:text-action-primary/90 hover:underline hover:decoration-2 hover:underline-offset-4",icon:"border-none text-text-primary hover:bg-background-hover hover:text-text-primary forced-colors:text-[ButtonText] forced-colors:hover:bg-[ButtonFace] p-1 flex-shrink-0 rounded-[var(--control-border-radius)]",unstyled:"bg-transparent"},Df={full:"w-full",default:"w-fit"},gS="opacity-50 cursor-not-allowed pointer-events-none",bS="opacity-100 cursor-pointer",xS={"top-right":"-right-2 -top-2","top-left":"-left-2 -top-2","bottom-right":"-right-2 -bottom-2","bottom-left":"-left-2 -bottom-2"},hS={primary:"bg-action-primary text-[color:var(--color-action-primary-text)]",destructive:"bg-feedback-error-border text-text-inverse"};function yS(e){return !e||e==="default"||e==="brand"?"primary":e}function vS(e){let{variant:t="primary",size:r="md",isDisabled:o,fullWidth:n=false,isLoading:a=false}=e,i=yS(t),s=i==="unstyled"?"":`${pS} ${fS[i]}`;i!=="unstyled"&&(s+=` ${je[r].text} ${je[r].height} ${je[r].padding} ${je[r].gap}`),o||a?s+=` ${gS}`:s+=` ${bS}`,n?s+=` ${Df.full}`:s+=` ${Df.default}`;let c=i==="primary"?"focus-visible:outline-action-primary":void 0;return [s,$e(),c].filter(Boolean).join(" ")}function _(e){let{icon:t,children:r,isLoading:o=false,loadingText:n,loadingIndicator:a,size:i="md",iconPosition:s="left",iconWeight:c,href:l,className:d,badgeNumber:u,badgeVariant:m="primary",badgePosition:p="top-right",style:f,target:g,rel:y,...b}=e,h=t?jsxRuntime.jsx(V,{name:t,size:i,weight:c}):null,x=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s==="left"&&h,typeof r=="function"?null:r,s==="right"&&h]}),v=jsxRuntime.jsxs("div",{className:"relative inline-flex items-center justify-center",children:[jsxRuntime.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:a||jsxRuntime.jsx(V,{name:"CircleNotch",size:i,className:"animate-spin","aria-hidden":"true"})}),jsxRuntime.jsx("div",{className:"invisible","aria-hidden":"true",children:x}),n&&jsxRuntime.jsx("span",{className:"sr-only",role:"status","aria-live":"polite",children:n})]}),S=(u??0)>0,w=tailwindMerge.twMerge(vS(e),d),P=l?{href:l,target:g,rel:y,...b}:{};if(l){let{onPress:k,onPressStart:R,onPressEnd:I,onPressChange:E,onPressUp:L,onAuxClick:M,onContextMenu:F,onDoubleClick:z,...W}=b;Object.assign(P,W);}let T=l?jsxRuntime.jsx(reactAriaComponents.Link,{...P,...o&&{"aria-busy":true},style:S?void 0:f,className:w,children:o?v:typeof r=="function"?(function(k){return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s==="left"&&h,r(k),s==="right"&&h]})}):x}):jsxRuntime.jsx(reactAriaComponents.Button,{...b,...o&&{"aria-busy":true},style:S?void 0:f,className:w,children:o?v:typeof r=="function"?(function(k){return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s==="left"&&h,r(k),s==="right"&&h]})}):x});return S?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("relative flex",d),style:f,children:[T,jsxRuntime.jsx("span",{className:`absolute ${xS[p]} flex h-5 w-5 items-center justify-center rounded-full ${hS[m]} text-xs font-medium`,"aria-label":`${u} items`,children:u})]}):T}function Gd({action:e,defaultVariant:t,defaultSize:r="lg"}){let o=!!e.formId;return jsxRuntime.jsx(_,{type:o?"submit":"button",form:o?e.formId:void 0,size:e.size||r,variant:e.variant||t,onPress:o?void 0:e.onPress,isLoading:e.isLoading,isDisabled:e.isDisabled,children:e.label})}function Xo({primaryAction:e,secondaryAction:t,tertiaryAction:r,footerContent:o}){let n=e||t||r;return !n&&!o?null:jsxRuntime.jsxs("div",{className:`flex w-full flex-col items-center justify-center border-t p-4 ${o?"h-28":""}`,children:[o&&jsxRuntime.jsx("div",{className:"flex h-10 justify-center",children:o}),n&&jsxRuntime.jsxs("div",{className:"flex w-full items-center justify-between gap-3",children:[jsxRuntime.jsx("div",{children:r&&jsxRuntime.jsx(Gd,{action:r,defaultVariant:"destructive"})}),jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[t&&jsxRuntime.jsx(Gd,{action:t,defaultVariant:"secondary"}),e&&jsxRuntime.jsx(Gd,{action:e,defaultVariant:"primary"})]})]})]})}var CS={heading:{sm:io.headingSm,md:io.headingMd,lg:io.headingLg,xl:io.headingXl},display:{sm:io.displaySm,md:io.displayMd,lg:io.displayLg,xl:io.displayXl}},SS={page:"h-16 leading-[62px]"};function ir({tag:e="h1",variant:t="heading",size:r="lg",height:o,className:n="",children:a}){let i=r==="xs"?"sm":r,s=CS[t][i],c=o?SS[o]:"";return jsxRuntime.jsx(e,{className:nr(s,"text-text-primary",c,n),children:a})}var qt=({title:e,onClose:t,hideCloseIcon:r=false,titleAlign:o="left",hasBackArrow:n=false,onBack:a,headerContent:i})=>jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("relative flex h-16 w-full flex-shrink-0 items-center justify-between border-b px-6",e&&"border-b",o==="center"?"justify-center":""),children:[n&&jsxRuntime.jsx(_,{variant:"icon",onPress:a,className:"absolute left-6","aria-label":"Go back",children:jsxRuntime.jsx(V,{name:"CaretLeft","data-testid":"back-arrow"})}),i||jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[e&&jsxRuntime.jsx(ir,{size:"xs",children:e}),t&&!r&&jsxRuntime.jsx(_,{variant:"icon",onPress:t,"aria-label":"Close dialog",children:jsxRuntime.jsx(V,{name:"X","data-testid":"close-button"})})]})]});var Kd=48,Ci=Je.createContext(false);function jo({children:e}){return jsxRuntime.jsx(Ci.Provider,{value:true,children:e})}function Ff({children:e}){return jsxRuntime.jsx(Ci.Provider,{value:false,children:e})}function Ea(e,t){let r=Je.useContext(Ci),{ref:o,height:n}=MS();return {headerRef:o,headerHeight:!r||e||t?n||Kd:0}}function Bf(){return !Je.useContext(Ci)}function MS(){let[e,t]=Je.useState(0),r=Je.useRef(null),o=Je.useRef(null),n=Je.useCallback(a=>{if(o.current?.disconnect(),o.current=null,r.current=a,!a){t(0);return}let i=()=>t(r.current?.offsetHeight??0);i(),o.current=new ResizeObserver(i),o.current.observe(a);},[]);return Je.useEffect(()=>()=>o.current?.disconnect(),[]),{ref:n,height:e}}function Ma({title:e,controls:t,actions:r,containerRef:o,marginLeft:n=0,marginRight:a=0}){let s=!Je.useContext(Ci);return !s&&!t&&!r?null:jsxRuntime.jsxs("div",{ref:o,"data-chart-header":"",className:"flex min-h-[32px] shrink-0 flex-wrap items-center justify-between gap-3 pb-4",style:{marginLeft:n,marginRight:a},children:[s?jsxRuntime.jsx("h3",{className:"truncate text-sm font-medium text-text-primary",children:e}):jsxRuntime.jsx("span",{}),t?jsxRuntime.jsx("div",{"data-chart-header-controls":"",className:"flex min-w-0 flex-1 items-center justify-end",children:t}):null,r?jsxRuntime.jsx("div",{"data-chart-header-actions":"",className:"flex shrink-0 items-center gap-1 -mt-[9px]",children:r}):null]})}var U=({width:e,height:t,variant:r="rect",animation:o="pulse",gradient:n=false,flex:a=false,stack:i,responsive:s,delay:c=0,adjustAnimationSpeedBasedOnWidth:l=false,ariaLabel:d,className:u,"data-testid":m})=>{let[p,f]=Je.useState(c===0);if(Je.useEffect(()=>{if(c>0){let S=setTimeout(()=>f(true),c);return ()=>clearTimeout(S)}},[c]),!p)return null;let g=n?"bg-gradient-to-r from-[var(--color-skeleton-base)] via-[var(--color-skeleton-highlight)] to-[var(--color-skeleton-base)]":"bg-[var(--color-skeleton-base)]",y=l&&e?(()=>{let S=typeof e=="number"?e:parseFloat(String(e));return isNaN(S)?"":`animation-duration-[${Math.max(.8,S/100)}s]`})():"",b=o==="pulse"?`animate-pulse ${y}`:o==="wave"?`relative overflow-hidden before:absolute before:inset-0 before:bg-gradient-to-r before:from-transparent before:via-[var(--color-skeleton-wave)] before:to-transparent before:animate-wave ${y}`:"",h="rounded-sm";r==="circle"&&(h="rounded-full"),r==="text"&&(h="h-4 w-full rounded-sm");let x=a?"flex-1 min-w-0":"",v=s?Object.entries(s).map(([S,w])=>`${S}:w-[${w}]`).join(" "):"";return i?jsxRuntime.jsx("div",{className:"space-y-2","data-testid":m,children:i.map((S,w)=>jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(g,b,h,x,v,u),style:{width:S,height:t}},w))}):jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(g,b,h,x,v,u),style:{width:e,height:t},role:"presentation","aria-hidden":!d,"aria-label":d??void 0,"data-testid":m})},zf=({count:e=1,children:t,className:r,"data-testid":o})=>jsxRuntime.jsx("div",{className:r,"data-testid":o,children:Array.from({length:e}).map((n,a)=>jsxRuntime.jsx("div",{children:t},a))});var IS={outlined:"bg-background-surface border border-border-default",elevated:"bg-background-surface border-0 shadow-md",filled:"bg-background-muted border-0",ghost:"bg-transparent border-0 shadow-none"},FS="rounded-lg",Yd={square:"aspect-square",video:"aspect-video",wide:"aspect-[2/1]",auto:""},BS={start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between"};function VS(e){return Je__namespace.default.Children.toArray(e).some(t=>Je__namespace.default.isValidElement(t)&&t.type===Os&&!!t.props.title)}function qe({variant:e="outlined",className:t,children:r,isLoading:o=false,layout:n="default"}){let a=VS(r)?jsxRuntime.jsx(jo,{children:r}):r;return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-full overflow-hidden",IS[e],FS,n==="flex"&&"flex flex-col",t),"data-testid":"card",children:o?jsxRuntime.jsx(U,{width:"100%",height:"100%",className:"rounded-none"}):a})}function Os({title:e,subtitle:t,actions:r,leading:o,className:n,isLoading:a=false}){return a?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("p-6 pb-4",n),children:[jsxRuntime.jsxs("div",{className:"flex justify-between items-start mb-1",children:[jsxRuntime.jsx(U,{width:120,height:20}),jsxRuntime.jsx(U,{width:24,height:24})]}),t&&jsxRuntime.jsx(U,{width:200,height:16})]}):!e&&!t&&!r&&!o?null:jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("p-6 pb-4",n),children:jsxRuntime.jsxs("div",{className:"flex justify-between items-start gap-4",children:[o&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:o}),jsxRuntime.jsxs("div",{className:"min-w-0 flex-1",children:[e&&jsxRuntime.jsx("div",{className:"mb-1",children:typeof e=="string"?jsxRuntime.jsx(ir,{tag:"h3",size:"sm",className:"text-text-primary",children:e}):e}),t&&jsxRuntime.jsx("div",{className:vt("bodySm","text-text-secondary"),children:t})]}),r&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:r})]})})}function Jd({src:e,alt:t,aspectRatio:r="auto",className:o,children:n,isLoading:a=false}){return a?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("bg-background-muted",Yd[r],o),children:jsxRuntime.jsx(U,{width:"100%",height:"100%"})}):n?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-hidden",Yd[r],o),children:n}):e?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-hidden",Yd[r],o),children:jsxRuntime.jsx("img",{src:e,alt:t||"",className:"w-full h-full object-cover",loading:"lazy"})}):null}function Xd({className:e,children:t,isLoading:r=false,fill:o=false,style:n}){let i=e?.match(/p(?:t|b|l|r|x|y)?-(?:\d+(?:\.\d+)?|px|\[.+?\])/)?"":"px-6 py-4";return r?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(i,o&&"flex-1 flex flex-col min-h-0",e),style:n,children:jsxRuntime.jsxs("div",{className:"space-y-2",children:[jsxRuntime.jsx(U,{width:"100%",height:16}),jsxRuntime.jsx(U,{width:"80%",height:16}),jsxRuntime.jsx(U,{width:"60%",height:16})]})}):t?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(i,"text-text-primary",o&&"flex-1 flex flex-col min-h-0",e),style:n,children:t}):null}function jd({className:e,children:t,align:r="end",isLoading:o=false}){return o?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("px-6 py-4 flex gap-2 justify-end",e),children:[jsxRuntime.jsx(U,{width:80,height:32}),jsxRuntime.jsx(U,{width:60,height:32})]}):t?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("px-6 py-4 flex items-center gap-2",BS[r],e),children:t}):null}qe.Header=Os;qe.Media=Jd;qe.Content=Xd;qe.Footer=jd;var Jr=class extends Je.Component{constructor(){super(...arguments);pi(this,"state",{hasError:false});pi(this,"handleRetry",()=>{this.setState({hasError:false,error:void 0}),typeof window<"u"&&window.location.reload();});}static getDerivedStateFromError(r){return {hasError:true,error:r}}componentDidCatch(r,o){console.error("Error Boundary caught an error:",r,o);}render(){return this.state.hasError?this.props.fallback?this.props.fallback:jsxRuntime.jsxs(qe,{children:[this.props.title&&jsxRuntime.jsx(qe.Header,{title:this.props.title}),jsxRuntime.jsx(qe.Content,{children:jsxRuntime.jsxs("div",{className:"flex flex-col items-center justify-center gap-4","data-testid":"error-boundary",children:[jsxRuntime.jsx("p",{className:"text-feedback-error-text",children:this.state.error?.message||"Something went wrong"}),jsxRuntime.jsx("button",{className:"rounded bg-action-default px-4 py-2 text-[color:var(--color-action-default-text)] hover:bg-action-default-hover",onClick:this.handleRetry,children:"Retry"})]})})]}):this.props.children}};var GS=.3,WS=.5;function bt({children:e,title:t,headerContent:r,titleAlign:o="left",hideCloseIcon:n=false,hasBackArrow:a=false,onBack:i,isOpen:s,onClose:c,isDismissable:l=true,transparentOverlay:d=false,primaryAction:u,secondaryAction:m,footerContent:p,maxHeight:f="80vh",height:g,maxWidth:y="640px",contentPadding:b=true,showHandle:h=true,animationVariant:x="scale",className:v}){let[S,w]=Je.useState(false),[P,T]=Je.useState(0),[k,R]=Je.useState(false),I=Rs(s),E=I?.height??null,L=I?.keyboardOffset??0,M=Je.useRef(null),F=Je.useRef(null),z=Je.useRef(null),W=Je.useRef({isDragging:false,startY:0,startTime:0,pointerId:null});Je.useEffect(()=>{if(s){let A=setTimeout(()=>{w(true),setTimeout(()=>w(false),600);},400);return ()=>clearTimeout(A)}},[s]),Je.useEffect(()=>{s||(T(0),R(false),W.current={isDragging:false,startY:0,startTime:0,pointerId:null});},[s]),Je.useEffect(()=>{let A=F.current;if(!A||!s)return;let G=null,N=C=>{let D=C.target;D&&["INPUT","TEXTAREA","SELECT"].includes(D.tagName)&&(G&&clearTimeout(G),G=setTimeout(()=>{D.scrollIntoView({block:"nearest",behavior:"smooth"});},320));};return A.addEventListener("focusin",N),()=>{A.removeEventListener("focusin",N),G&&clearTimeout(G);}},[s]);let X=Je.useCallback(A=>{l&&(A.pointerType!=="touch"&&A.pointerType!=="pen"||(z.current&&(clearTimeout(z.current),z.current=null),W.current={isDragging:true,startY:A.clientY,startTime:Date.now(),pointerId:A.pointerId},R(false),A.currentTarget.setPointerCapture(A.pointerId)));},[l]),Z=Je.useCallback(A=>{let{isDragging:G,startY:N,pointerId:C}=W.current;if(!G||A.pointerId!==C)return;let D=A.clientY-N;T(Math.max(0,D));},[]),O=Je.useCallback(A=>{let{isDragging:G,startY:N,startTime:C,pointerId:D}=W.current;if(!G||A.pointerId!==D)return;let B=A.clientY-N,Y=Date.now()-C,re=B/Y;W.current={isDragging:false,startY:0,startTime:0,pointerId:null};let $=(M.current?.getBoundingClientRect().height??0)*GS;(B>$||re>WS&&B>50)&&l?(c?.(),T(0)):(R(true),T(0),z.current=setTimeout(()=>{R(false),z.current=null;},200));},[l,c]);if(!s)return null;let j=t||r,H=u||m||p;return jsxRuntime.jsx(Jr,{children:jsxRuntime.jsx(vr,{isOpen:s,onOpenChange:A=>{A||c?.();},isDismissable:l,transparent:d,style:{paddingBottom:L>0?`${L}px`:void 0,transition:"padding-bottom 0.25s ease-out"},className:"flex items-end justify-center p-0 sm:p-4",children:jsxRuntime.jsx(reactAriaComponents.Modal,{className:"w-full max-w-full p-0 sm:p-2 outline-none focus:outline-none focus-visible:outline-none ring-0 focus:ring-0 focus-visible:ring-0",isDismissable:l,children:jsxRuntime.jsx("div",{ref:M,className:tailwindMerge.twMerge("w-full",k&&"transition-transform duration-200"),style:{transform:P>0?`translateY(${P}px)`:void 0},children:jsxRuntime.jsxs(reactAriaComponents.Dialog,{className:tailwindMerge.twMerge("relative flex w-full flex-col overflow-hidden","bg-background-surface","shadow-2xl shadow-black/30 dark:shadow-black/60","border-t border-x border-border-default/40","outline-none focus:outline-none focus-visible:outline-none ring-0 focus:ring-0 focus-visible:ring-0 focus:shadow-none","origin-bottom",x==="scale"?"animate-[tray-enter-scale_400ms_cubic-bezier(0.32,0.72,0,1)]":"animate-[tray-enter_400ms_cubic-bezier(0.32,0.72,0,1)]",x==="scale"?"data-[exiting]:animate-[tray-exit-scale_250ms_cubic-bezier(0.32,0,0.67,0)]":"data-[exiting]:animate-[tray-exit_250ms_cubic-bezier(0.32,0,0.67,0)]",v),style:{maxWidth:y,...g?{height:g}:{maxHeight:/\d/.test(f)?E!==null?`min(${f}, ${Math.max(E-8,0)}px, 100dvh)`:`min(${f}, 100dvh)`:f}},children:[h&&jsxRuntime.jsx("div",{className:"absolute top-0 left-0 right-0 h-8 z-10 flex justify-center items-start pt-2 touch-none cursor-grab active:cursor-grabbing",onPointerDown:X,onPointerMove:Z,onPointerUp:O,onPointerCancel:O,children:jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("h-1 w-12 rounded-full bg-border-muted transition-all duration-300","hover:bg-border-default hover:w-16",S&&"animate-[handle-wiggle_0.6s_ease-in-out]")})}),j&&(a?jsxRuntime.jsx(qt,{title:t,headerContent:r,titleAlign:o,hideCloseIcon:n||!c,hasBackArrow:true,onBack:i??(()=>{}),onClose:c||(()=>{})}):jsxRuntime.jsx(qt,{title:t,headerContent:r,titleAlign:o,hideCloseIcon:n||!c,onClose:c||(()=>{})})),jsxRuntime.jsx("div",{ref:F,className:tailwindMerge.twMerge("flex-1 min-h-0 overflow-y-auto overscroll-contain",b?"p-4":"p-0"),children:e}),H&&jsxRuntime.jsx(Xo,{primaryAction:u,secondaryAction:m,footerContent:p})]})})})})})}bt.displayName="Tray";function Da({children:e,items:t,className:r,align:o="left",textAlign:n="left",size:a="md",onAction:i,header:s,footer:c,useMobileTray:l=true,popoverClassName:d}){let[u,m]=Je.useState(false),{isMobile:p}=or();if(l&&p){let g=Je__namespace.default.isValidElement(e)?Je__namespace.default.cloneElement(e,{onPress:()=>m(true)}):e,h=(x=>{if(typeof x=="string")return x;if(Je__namespace.default.isValidElement(x)){let v=x.props;if(typeof v.children=="string")return v.children;if(Array.isArray(v.children))return v.children.find(w=>typeof w=="string")||""}return ""})(e)||"Actions";return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:r,children:g}),jsxRuntime.jsx(bt,{isOpen:u,onClose:()=>m(false),title:h,contentPadding:false,headerContent:s,footerContent:c,children:jsxRuntime.jsx("div",{className:"flex flex-col",children:t.map(x=>{let v=x.href&&!x.disabled?"a":"button";return jsxRuntime.jsxs(v,{...x.href&&!x.disabled?{href:x.href}:{},onClick:()=>{x.disabled||(x.onAction?x.onAction():i?.(x),m(false));},disabled:x.disabled,"data-testid":x.testId,className:tailwindMerge.twMerge("flex w-full items-center text-start transition-colors",!x.noPadding&&"px-6 py-3","border-b border-border-muted last:border-0",x.variant==="destructive"?"text-feedback-error-text hover:bg-feedback-error-background active:bg-feedback-error-background/80":"text-text-primary hover:bg-background-hover active:bg-background-hover/80",x.disabled&&"opacity-50 cursor-not-allowed"),children:[x.iconName&&jsxRuntime.jsx(V,{name:x.iconName,size:20,className:"mr-3 flex-shrink-0"}),jsxRuntime.jsx("div",{className:"flex flex-1 flex-col",children:x.render?x.render():jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("span",{className:x.subtitle?"font-medium":"",children:x.name}),x.subtitle&&jsxRuntime.jsx("span",{className:"text-sm text-text-secondary",children:x.subtitle})]})})]},x.id)})})})]})}return jsxRuntime.jsx("div",{className:r,children:jsxRuntime.jsxs(reactAriaComponents.MenuTrigger,{children:[e,jsxRuntime.jsx(gt,{className:tailwindMerge.twMerge("w-fit min-w-[180px] overflow-auto rounded-[var(--control-border-radius)] border border-border-default","bg-background-surface shadow-lg","animate-in fade-in zoom-in-97","duration-200 ease-out","data-[exiting]:animate-out data-[exiting]:fade-out data-[exiting]:zoom-out-97","data-[exiting]:duration-150 data-[exiting]:ease-in",o==="right"?"origin-top-right":"origin-top-left",d),placement:o==="right"?"bottom end":"bottom start",children:jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex min-w-[180px] flex-col gap-1 py-1",d),children:[s?jsxRuntime.jsx("div",{className:"px-3 pb-2 pt-3",children:s}):null,jsxRuntime.jsx(reactAriaComponents.Menu,{className:"!outline-none",children:t.map(g=>jsxRuntime.jsx(XS,{id:g.id,href:g.href,onAction:()=>{g.onAction?g.onAction():i?.(g);},textAlign:n,size:a,iconName:g.iconName,isDisabled:g.disabled,variant:g.variant,subtitle:g.subtitle,render:g.render,noPadding:g.noPadding,"data-testid":g.testId,children:g.name},g.id))}),c?jsxRuntime.jsx("div",{className:"px-3 pb-3 pt-2",children:c}):null]})})]})})}function XS({textAlign:e="left",iconName:t,size:r="md",isDisabled:o,children:n,variant:a="default",subtitle:i,render:s,noPadding:c,...l}){let d={sm:"px-3 py-2 text-sm",md:i?"px-4 py-2.5 text-base":"px-4 py-2 text-base"},u="text-text-primary hover:bg-background-hover data-[focused]:bg-background-hover data-[focus-visible]:ring-2 data-[focus-visible]:ring-action-primary data-[focus-visible]:ring-inset",m={primary:u,default:u,destructive:"text-feedback-error-text hover:bg-feedback-error-background data-[focused]:bg-feedback-error-background data-[focus-visible]:ring-2 data-[focus-visible]:ring-feedback-error-border data-[focus-visible]:ring-inset"};return s?jsxRuntime.jsx(reactAriaComponents.MenuItem,{...l,isDisabled:o,className:tailwindMerge.twMerge("group box-border flex w-full cursor-pointer items-center rounded-sm outline-none transition-colors",!c&&d[r],m[a],e==="right"?"justify-end":"justify-start",o&&"pointer-events-none opacity-50"),children:s()}):jsxRuntime.jsxs(reactAriaComponents.MenuItem,{...l,isDisabled:o,className:tailwindMerge.twMerge("group box-border flex w-full cursor-pointer items-center rounded-sm outline-none transition-colors",!c&&d[r],m[a],e==="right"?"justify-end":"justify-start",o&&"pointer-events-none opacity-50"),children:[t&&e==="left"&&jsxRuntime.jsx(V,{name:t,size:r==="sm"?16:20,className:"mr-3 flex-shrink-0"}),jsxRuntime.jsxs("div",{className:"flex flex-1 flex-col",children:[jsxRuntime.jsx("span",{className:i?"font-medium":"",children:n}),i&&jsxRuntime.jsx("span",{className:"text-sm text-text-secondary",children:i})]}),t&&e==="right"&&jsxRuntime.jsx(V,{name:t,size:r==="sm"?16:20,className:"ml-3 flex-shrink-0"})]})}var Mo=({className:e,size:t=24,color:r="text-action-brand"})=>jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("inline-block animate-spin rounded-full border-2 border-solid border-current border-r-transparent",r,e),style:{width:t,height:t},role:"status","aria-label":"loading",children:jsxRuntime.jsx("span",{className:"sr-only",children:"Loading..."})});function Ir({state:e,message:t,className:r,customIndicator:o}){if(e!=="loading-more")return null;let n=jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center justify-center gap-2 py-4","text-text-secondary",r),"aria-label":t||"Loading",children:[jsxRuntime.jsx(Mo,{size:20,color:"text-text-secondary"}),t&&jsxRuntime.jsx("span",{className:"text-sm","aria-hidden":"true",children:t})]});return o||n}function qo({items:e,onLoadMore:t,hasMore:r,isLoading:o=false,loadingState:n,enableVirtualization:a,estimatedItemSize:i=50,overscan:s=5,scrollElement:c,loadMoreThreshold:l=100}){let d=Je.useRef(null),u=Je.useRef(null),m=Je.useRef(false),[p,f]=Je.useState(0);Je.useEffect(()=>{u.current&&(c||d.current)&&f(T=>T+1);},[c,e.length]);let g=n||(o?e.length===0?"loading":"loading-more":"idle"),y=g==="loading",b=g==="loading-more",h=a!==void 0?a:e.length>=100,x=reactVirtual.useVirtualizer({count:e.length,getScrollElement:()=>c||d.current,estimateSize:()=>i,overscan:s}),v=h?x:null,S=h?x.getVirtualItems():[];Je.useEffect(()=>{let T=u.current,k=c||d.current;if(!T||!k||!r||o||!t)return;let R=new IntersectionObserver(I=>{let[E]=I;E?.isIntersecting&&!m.current&&r&&t&&(m.current=true,Promise.resolve(t()).finally(()=>{m.current=false;}));},{root:k,rootMargin:`0px 0px ${l}px 0px`,threshold:0});return R.observe(T),()=>{R.disconnect();}},[r,o,t,c,l,p]);let w=Je.useCallback((T,k)=>{v?v.scrollToIndex(T,k):d.current&&d.current.children[T]?.scrollIntoView({behavior:"smooth",block:k?.align||"start"});},[v]),P=Je.useCallback(()=>{v?v.scrollToIndex(0,{align:"start"}):d.current&&d.current.scrollTo({top:0,behavior:"smooth"});},[v]);return {virtualizer:v,virtualItems:S,computedLoadingState:g,isInitialLoad:y,isLoadingMore:b,scrollRef:d,loadMoreRef:u,scrollToIndex:w,scrollToTop:P}}var Aa=Je.createContext({variant:"timeline",size:"md"});function qf(){return Je.useContext(Aa)}function Us(e){return Je.isValidElement(e)&&e.type===Js}function ow(e){return Je.isValidElement(e)&&e.type===Ys}function tu({variant:e="timeline",size:t="md",className:r,children:o,items:n,renderItem:a,isLoading:i=false,loadingState:s,error:c=null,renderLoadingSkeleton:l,loadingSkeletonCount:d=5,emptyMessage:u="No activity found.",onLoadMore:m,hasMore:p=false,enableVirtualization:f,estimatedItemSize:g,loadingIndicator:y,height:b,maxHeight:h,...x}){let v=Je.useRef(null),{isMobile:S}=or(),w=S?"stacked":e,P=n!==void 0&&a!==void 0,{scrollRef:T,loadMoreRef:k,virtualizer:R,virtualItems:I,isLoadingMore:E,computedLoadingState:L}=qo({items:n||[],onLoadMore:P?m:void 0,hasMore:P?p:false,isLoading:i,loadingState:s,enableVirtualization:P?f:false,estimatedItemSize:g||(w==="stacked"?120:150),overscan:5}),M=P&&T?T:v,F=Je.useMemo(()=>({variant:w,size:t}),[w,t]),z=w==="timeline"?t==="sm"?"gap-4":"gap-6":"gap-0",W=w==="stacked"?"divide-y divide-border-subtle rounded-lg border border-border-subtle bg-background-surface":"",X={};if(P&&m&&(b?(X.height=typeof b=="number"?`${b}px`:b,X.overflowY="auto"):h?(X.maxHeight=typeof h=="number"?`${h}px`:h,X.overflowY="auto"):(X.height="600px",X.overflowY="auto")),P){let j=L==="loading"||i&&(!n||n.length===0);if(j){let A=l?jsxRuntime.jsx(jsxRuntime.Fragment,{children:Array.from({length:d}).map((G,N)=>jsxRuntime.jsx("div",{children:l()},`skeleton-${N}`))}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:Array.from({length:d}).map((G,N)=>{let C=t==="sm"?"gap-2":"gap-3";if(w==="timeline"){let D=t==="sm"?"pt-3":"pt-4",B=t==="sm"?"p-3":"p-4";return jsxRuntime.jsxs("div",{className:"group relative grid items-start gap-4 grid-cols-[3rem_1fr]",children:[jsxRuntime.jsxs("div",{className:`relative flex h-full flex-col items-center ${D}`,children:[jsxRuntime.jsx(U,{width:32,height:32,variant:"circle"}),N<d-1&&jsxRuntime.jsx("span",{className:"absolute top-[2rem] left-1/2 w-0 border-l-2 border-dotted -translate-x-1/2 h-[calc(100%+2.5rem)] border-border-muted"})]}),jsxRuntime.jsxs("div",{className:`min-w-0 flex flex-col ${C} ${B} rounded-md border border-border-subtle bg-background-surface`,children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-3",children:[jsxRuntime.jsx(U,{width:"50%",height:16}),jsxRuntime.jsx(U,{width:"15%",height:12})]}),jsxRuntime.jsx(U,{width:"85%",height:t==="sm"?14:15}),jsxRuntime.jsx(U,{width:"70%",height:t==="sm"?14:15})]})]},`skeleton-${N}`)}else return jsxRuntime.jsxs("div",{className:`flex flex-col ${t==="sm"?"px-3 py-3":"px-4 py-4"}`,children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[jsxRuntime.jsx(U,{width:24,height:24,variant:"circle"}),jsxRuntime.jsx(U,{width:"50%",height:16})]}),jsxRuntime.jsxs("div",{className:`mt-3 flex flex-col ${C}`,children:[jsxRuntime.jsx(U,{width:"85%",height:t==="sm"?14:15}),jsxRuntime.jsx(U,{width:"70%",height:t==="sm"?14:15}),jsxRuntime.jsx(U,{width:"20%",height:12})]})]},`skeleton-${N}`)})});return jsxRuntime.jsx(Aa.Provider,{value:F,children:jsxRuntime.jsx("div",{ref:M,"data-slot":"feed","data-variant":w,className:tailwindMerge.twMerge("flex flex-col",z,W,r),style:X,...x,children:A})})}if(c)return jsxRuntime.jsx(Aa.Provider,{value:F,children:jsxRuntime.jsx("div",{ref:M,"data-slot":"feed","data-variant":w,className:tailwindMerge.twMerge("flex flex-col",z,W,r),style:X,...x,children:jsxRuntime.jsx("div",{className:"p-4 text-center text-feedback-error-text",children:c})})});if(!n||n.length===0)return jsxRuntime.jsx(Aa.Provider,{value:F,children:jsxRuntime.jsx("div",{ref:M,"data-slot":"feed","data-variant":w,className:tailwindMerge.twMerge("flex flex-col",z,W,r),style:X,...x,children:jsxRuntime.jsx("div",{className:"p-4 text-center text-text-secondary",children:u})})});let H=R?I?.map(A=>({virtualItem:A,item:n[A.index],index:A.index}))||[]:n.map((A,G)=>({item:A,index:G,virtualItem:null}));return jsxRuntime.jsx(Aa.Provider,{value:F,children:jsxRuntime.jsxs("div",{ref:M,"data-slot":"feed","data-variant":w,className:tailwindMerge.twMerge("flex flex-col",z,W,r),style:{...X,position:R?"relative":void 0},...x,children:[R?jsxRuntime.jsxs("div",{style:{height:`${R.getTotalSize()}px`,position:"relative"},children:[H.map(({item:A,index:G,virtualItem:N})=>{if(!A||!N)return null;let C=a(A,G),D=w==="timeline"&&Je.isValidElement(C)&&Us(C)?Je.cloneElement(C,{showConnector:G!==n.length-1}):C;return jsxRuntime.jsx("div",{style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${N.start}px)`},"data-index":N.index,ref:R.measureElement,children:D},`item-${G}`)}),E&&jsxRuntime.jsx("div",{style:{position:"absolute",top:`${R.getTotalSize()}px`,left:0,width:"100%"},children:y||jsxRuntime.jsx(Ir,{state:"loading-more"})})]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[H.map(({item:A,index:G})=>{let N=a(A,G);if(w==="timeline"&&Je.isValidElement(N)&&Us(N)){let C=G===n.length-1;return jsxRuntime.jsx("div",{children:Je.cloneElement(N,{showConnector:!C})},`item-${G}`)}return jsxRuntime.jsx("div",{children:N},`item-${G}`)}),E&&(y||jsxRuntime.jsx(Ir,{state:"loading-more"}))]}),m&&p&&!j&&jsxRuntime.jsx("div",{ref:k,style:R?{position:"absolute",top:`${R.getTotalSize()}px`,left:0,width:"100%",height:1}:{height:1,width:"100%"}})]})})}let Z=Je.Children.toArray(o),O=Z.map((j,H)=>{if(Us(j)){let A=j.props.showConnector??(w==="timeline"&&H<Z.length-1),G=w==="timeline"&&H>0;return Je.cloneElement(j,{showConnector:A,showIncomingConnector:G})}if(ow(j)){let A=H===Z.length-1;return Je.cloneElement(j,{__isLastGroup:A,__isFirstGroup:H===0})}return j});return jsxRuntime.jsx(Aa.Provider,{value:F,children:jsxRuntime.jsx("div",{"data-slot":"feed","data-variant":w,className:tailwindMerge.twMerge("flex flex-col",z,W,r),...x,children:O})})}tu.displayName="ActivityFeed";function Ys(e){let{variant:t,size:r}=qf(),{title:o,description:n,actions:a,children:i,className:s,__isLastGroup:c=false,__isFirstGroup:l=false,...d}=e,u=Je.Children.toArray(i),m=u.map((g,y)=>{if(Us(g)){let b=g.props.showConnector??(t==="timeline"&&!(c&&y===u.length-1));return Je.cloneElement(g,{showConnector:b,showIncomingConnector:t==="timeline"&&!(l&&y===0)})}return g}),p=t==="timeline"?"pl-[3rem]":r==="sm"?"px-3":"px-4",f=r==="sm"?"gap-3":"gap-4";return jsxRuntime.jsxs("section",{"data-slot":"group",className:tailwindMerge.twMerge("flex flex-col",s),...d,children:[(o||n||a)&&jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("mb-2 flex flex-wrap items-end justify-between gap-2",p),children:[jsxRuntime.jsxs("div",{className:"flex min-w-0 flex-col gap-1",children:[o&&jsxRuntime.jsx("span",{className:"text-xs font-semibold uppercase tracking-wide text-text-secondary",children:o}),n&&jsxRuntime.jsx("span",{className:"text-sm text-text-secondary",children:n})]}),a&&jsxRuntime.jsx("div",{className:"flex flex-shrink-0 items-center gap-2",children:a})]}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex flex-col",f),children:m})]})}Ys.displayName="ActivityFeedGroup";var Xf={neutral:"bg-background-muted text-text-secondary border-border-muted",brand:"bg-background-muted text-action-brand border-action-brand/30",success:"bg-background-muted text-feedback-success-text border-feedback-success-border/40",warning:"bg-background-muted text-feedback-warning-text border-feedback-warning-border/40",danger:"bg-background-muted text-feedback-error-text border-feedback-error-border/40",info:"bg-background-muted text-feedback-info-text border-feedback-info-border/40"},nw={neutral:"bg-background-subtle",brand:"bg-action-brand/5",success:"bg-feedback-success-background",warning:"bg-feedback-warning-background",danger:"bg-feedback-error-background",info:"bg-feedback-info-background"},aw={neutral:"border-border-muted",brand:"border-action-brand",success:"border-feedback-success-border",warning:"border-feedback-warning-border",danger:"border-feedback-error-border",info:"border-feedback-info-border"};function Js(e){let{variant:t,size:r}=qf(),{title:o,description:n,timestamp:a,meta:i,media:s,actions:c,visual:l,icon:d,iconWeight:u,tone:m="neutral",surface:p,isHighlighted:f=false,showConnector:g=true,hideIndicator:y=false,interactive:b,className:h,children:x,onKeyDown:v,showIncomingConnector:S,...w}=e,P=l??(d?jsxRuntime.jsx(V,{name:d,weight:u||"fill",className:"h-4 w-4"}):null),T=p??(t==="stacked"?"minimal":"subtle"),k=r==="sm"?"gap-2":"gap-3",R="text-xs text-text-secondary",I=r==="sm"?"text-sm":"text-[15px]",E="text-xs text-text-secondary",L=b??typeof w.onClick=="function",M=H=>{if(!L){v?.(H);return}H.key===" "?H.preventDefault():H.key==="Enter"&&(H.preventDefault(),H.currentTarget.click()),v?.(H);},F=H=>{L&&H.key===" "&&(H.preventDefault(),H.currentTarget.click());},z=L?tailwindMerge.twMerge("group cursor-pointer",$e()):void 0,X=jsxRuntime.jsxs("div",{"data-slot":"connector",className:tailwindMerge.twMerge("relative flex h-full flex-col items-center",T==="minimal"?r==="sm"?"pt-2":"pt-3":r==="sm"?"pt-3":"pt-4"),children:[jsxRuntime.jsx("span",{"data-slot":"indicator",className:tailwindMerge.twMerge("relative z-10 flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-full border text-sm font-medium shadow-sm ring-2 ring-background-surface",Xf[m]),children:P}),t==="timeline"&&g&&jsxRuntime.jsx("span",{"data-slot":"separator",className:"absolute top-[2rem] left-1/2 w-0 border-l-2 border-dotted -translate-x-1/2 h-[calc(100%+2.5rem)] border-border-muted"})]}),Z=f?tailwindMerge.twMerge(nw[m],T==="minimal"?"rounded-md border border-border-muted":aw[m]):"";if(t==="stacked")return jsxRuntime.jsxs("div",{"data-slot":"item","data-variant":"stacked",role:L?"button":void 0,tabIndex:L?0:void 0,className:tailwindMerge.twMerge("flex flex-col",r==="sm"?"px-3 py-3":"px-4 py-4",{minimal:"",subtle:"bg-background-subtle",solid:"bg-background-muted"}[T],Z,z,L?"transition-colors hover:bg-background-subtle/80":"",h),onKeyDown:M,onKeyUp:F,...w,children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[!y&&jsxRuntime.jsx("span",{"data-slot":"indicator",className:tailwindMerge.twMerge("flex h-6 w-6 flex-shrink-0 items-center justify-center rounded-full border text-sm font-medium shadow-sm ring-2 ring-background-surface",Xf[m]),children:P}),jsxRuntime.jsx("div",{"data-slot":"title",className:"min-w-0 flex-1 text-sm font-semibold text-text-primary",children:o})]}),jsxRuntime.jsxs("div",{"data-slot":"content",className:tailwindMerge.twMerge("mt-3 flex flex-col",k),children:[n&&jsxRuntime.jsx("div",{"data-slot":"description",className:tailwindMerge.twMerge("text-text-secondary",I),children:n}),i&&jsxRuntime.jsx("div",{className:E,children:i}),s&&jsxRuntime.jsx("div",{className:"flex flex-col gap-2 text-sm text-text-secondary",children:s}),x,c&&jsxRuntime.jsx("div",{className:"flex flex-wrap gap-2 pt-1",children:c}),a&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("-mt-1.5",R),children:a})]})]});let O=T==="minimal"?r==="sm"?"py-2":"py-3":r==="sm"?"p-3":"p-4",j={minimal:"",subtle:"rounded-md border border-border-subtle bg-background-surface",solid:"rounded-md bg-background-muted shadow-sm"};return jsxRuntime.jsxs("div",{"data-slot":"item","data-variant":"timeline",role:L?"button":void 0,tabIndex:L?0:void 0,className:tailwindMerge.twMerge("group relative grid items-start gap-4 grid-cols-[3rem_1fr]",z,h),onKeyDown:M,onKeyUp:F,...w,children:[y?jsxRuntime.jsx("div",{}):X,jsxRuntime.jsxs("div",{"data-slot":"content",className:tailwindMerge.twMerge("min-w-0 flex flex-col",k,O,j[T],Z,L?"transition-colors group-hover:bg-background-subtle/70":""),children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-3",children:[jsxRuntime.jsx("div",{"data-slot":"title",className:"min-w-0 flex-1 text-sm font-semibold text-text-primary",children:o}),a&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-shrink-0",R),children:a})]}),n&&jsxRuntime.jsx("div",{"data-slot":"description",className:tailwindMerge.twMerge("text-text-secondary",I),children:n}),i&&jsxRuntime.jsx("div",{className:E,children:i}),s&&jsxRuntime.jsx("div",{className:"flex flex-col gap-2 text-sm text-text-secondary",children:s}),x,c&&jsxRuntime.jsx("div",{className:"flex flex-wrap gap-2 pt-2",children:c})]})]})}Js.displayName="ActivityItem";function sr({isOpen:e,onClose:t,title:r,headerContent:o,titleAlign:n="left",hideCloseIcon:a=false,hasBackArrow:i=false,onBack:s,children:c,primaryAction:l,secondaryAction:d,tertiaryAction:u,footerContent:m,transparentOverlay:p=false,maxWidth:f="600px",minWidth:g="400px",maxHeight:y="85vh",height:b,mobileMaxHeight:h="90vh",mobileHeight:x,contentPadding:v=true,className:S}){let w=rr("(max-width: 767px)"),P=Rs(w&&e===void 0),T=P?.height??null,k=P?.keyboardOffset??0,R=Je.useRef(null),I=Je.useCallback(()=>{R.current&&R.current.scrollTop!==0&&(R.current.scrollTop=0);},[]),E=Je.useRef(null),L=Je.useRef(null);Je.useEffect(()=>{let X=L.current;if(!X||!w)return;let Z=null,O=j=>{let H=j.target;H&&["INPUT","TEXTAREA","SELECT"].includes(H.tagName)&&(Z&&clearTimeout(Z),Z=setTimeout(()=>{H.scrollIntoView({block:"nearest",behavior:"smooth"});},320));};return X.addEventListener("focusin",O),()=>{X.removeEventListener("focusin",O),Z&&clearTimeout(Z);}},[w]);let M=Je.useCallback(()=>{E.current&&E.current.scrollTop!==0&&(E.current.scrollTop=0);},[]);if(e===false)return null;let F=r||o,z=l||d||u||m,W=e!==void 0;return w?W?jsxRuntime.jsx(bt,{isOpen:e,onClose:t,title:r,headerContent:o,titleAlign:n,hideCloseIcon:a,hasBackArrow:i,onBack:s,primaryAction:l,secondaryAction:d,footerContent:m,transparentOverlay:p,maxHeight:h,height:x,maxWidth:f,contentPadding:v,showHandle:true,animationVariant:"scale",className:S,children:c}):jsxRuntime.jsx(Jr,{children:jsxRuntime.jsx(vr,{isDismissable:true,transparent:p,style:{paddingBottom:k>0?`${k}px`:void 0,transition:"padding-bottom 0.25s ease-out"},className:"flex items-end justify-center",children:jsxRuntime.jsx(reactAriaComponents.Modal,{className:"w-full p-0 outline-none focus:outline-none focus-visible:outline-none ring-0 focus:ring-0 focus-visible:ring-0",children:jsxRuntime.jsxs(reactAriaComponents.Dialog,{ref:R,onScroll:I,className:tailwindMerge.twMerge("relative flex w-full flex-col","bg-background-surface","shadow-2xl shadow-black/20","border-t border-x border-border-default/40","rounded-t-xl","overflow-hidden","animate-in slide-in-from-bottom","duration-300 ease-out","data-[exiting]:animate-out data-[exiting]:slide-out-to-bottom","data-[exiting]:duration-200 data-[exiting]:ease-in",S),style:{...x?{height:x}:{maxHeight:/\d/.test(h)?T!==null?`min(${h}, ${Math.max(T-8,0)}px, 100dvh)`:`min(${h}, 100dvh)`:h}},children:[jsxRuntime.jsx("div",{className:"flex justify-center pt-2",children:jsxRuntime.jsx("div",{className:"h-1.5 w-12 rounded-full bg-border-muted"})}),F&&(i?jsxRuntime.jsx(qt,{title:r,headerContent:o,titleAlign:n,hideCloseIcon:a||!t,hasBackArrow:true,onBack:s,onClose:t||(()=>{})}):jsxRuntime.jsx(qt,{title:r,headerContent:o,titleAlign:n,hideCloseIcon:a||!t,onClose:t||(()=>{})})),jsxRuntime.jsx("div",{ref:L,className:tailwindMerge.twMerge("flex-1 min-h-0 overflow-y-auto overscroll-contain",v?"px-6 py-6":"p-0"),children:c}),z&&jsxRuntime.jsx(Xo,{primaryAction:l,secondaryAction:d,tertiaryAction:u,footerContent:m})]})})})}):jsxRuntime.jsx(Jr,{children:jsxRuntime.jsx(vr,{...W?{isOpen:e,onOpenChange:X=>{!X&&t&&t();}}:{},isDismissable:true,transparent:p,className:"flex items-center justify-center",children:jsxRuntime.jsx(reactAriaComponents.Modal,{className:"w-full p-4 outline-none focus:outline-none focus-visible:outline-none ring-0 focus:ring-0 focus-visible:ring-0",style:{maxWidth:f},children:jsxRuntime.jsxs(reactAriaComponents.Dialog,{ref:E,onScroll:M,className:tailwindMerge.twMerge("relative flex w-full flex-col","bg-background-surface","shadow-2xl shadow-black/20","border border-border-default/50","rounded-md","overflow-hidden","outline-none focus:outline-none focus-visible:outline-none ring-0 focus:ring-0","animate-in fade-in zoom-in-96 slide-in-from-bottom-2","duration-300 ease-out","data-[exiting]:animate-out data-[exiting]:fade-out data-[exiting]:zoom-out-95","data-[exiting]:duration-200 data-[exiting]:ease-in",S),style:{minWidth:g,...b?{height:b}:{maxHeight:y}},children:[F&&(i?jsxRuntime.jsx(qt,{title:r,headerContent:o,titleAlign:n,hideCloseIcon:a||!t,hasBackArrow:true,onBack:s,onClose:t||(()=>{})}):jsxRuntime.jsx(qt,{title:r,headerContent:o,titleAlign:n,hideCloseIcon:a||!t,onClose:t||(()=>{})})),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-1 min-h-0 overflow-y-auto",v?"px-6 py-6":"p-0"),children:c}),z&&jsxRuntime.jsx(Xo,{primaryAction:l,secondaryAction:d,tertiaryAction:u,footerContent:m})]})})})})}function tg({isOpen:e,onClose:t,title:r,message:o,confirmLabel:n="OK",confirmVariant:a="primary",maxWidth:i="400px",minWidth:s="320px"}){return jsxRuntime.jsx(sr,{isOpen:e,onClose:t,title:r,maxWidth:i,minWidth:s,primaryAction:{label:n,onPress:t,variant:a},children:jsxRuntime.jsx("div",{className:"text-text-primary",children:o})})}var Qo={xs:16,sm:20,md:24,lg:32,xl:40,"2xl":48},Sr=Je.memo(({name:e,size:t="md",color:r,weight:o="regular",className:n,ariaLabel:a,...i})=>{let s=sw__namespace[e];if(!s)return null;let c=typeof t=="string"?t in Qo?Qo[t]:Qo.md:t,l=tailwindMerge.twMerge("inline-block flex-shrink-0",!r&&"text-current",n);return jsxRuntime.jsx(s,{...i,size:c,color:r,weight:o,className:l,"aria-label":a||`${e} icon`,"data-testid":`icon-${e}`})});Sr.displayName="IconSSR";var lw=Je.memo(({variant:e="subtle",shape:t="square",containerSize:r,containerClassName:o,size:n="md",className:a,name:i,color:s,weight:c,ariaLabel:l,ref:d,...u})=>{let m=typeof n=="string"?n in Qo?Qo[n]:Qo.md:n,p=r?typeof r=="string"?r in Qo?Qo[r]:m*1.75:r:m*1.75,f=tailwindMerge.twMerge("inline-flex items-center justify-center flex-shrink-0",t==="circle"?"rounded-full":"rounded-lg",e==="subtle"&&"bg-background-muted",e==="solid"&&"bg-action-brand text-[color:var(--color-action-brand-text)]",e==="outline"&&"border-2 border-current",o);return jsxRuntime.jsx("div",{className:f,style:{width:p,height:p},children:jsxRuntime.jsx(Sr,{...u,name:i,size:n,color:s,weight:c,className:a,ariaLabel:l})})});lw.displayName="IconSSRWithContainer";var Ia=({className:e,showWordmark:t=true,width:r,fill:o})=>{let n,a;if(o?o.startsWith("fill-")?a=o:n=o:e?a=e:n="var(--color-text-primary)",t){let c=r||270,l=c/270*80;return jsxRuntime.jsxs("svg",{width:c,height:l,viewBox:"0 0 270 80",xmlns:"http://www.w3.org/2000/svg",className:a,style:n?{fill:n}:void 0,children:[jsxRuntime.jsxs("g",{clipPath:"url(#clip0_796_283)",children:[jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.223654 20.2934C0.417233 19.8234 0.873598 19.517 1.37984 19.517H20.5909C21.282 19.517 21.8422 20.0798 21.8422 20.774V40.049C21.8422 40.5572 21.5375 41.0155 21.0702 41.2102C20.6028 41.405 20.0647 41.2977 19.7067 40.9385L0.495628 21.6635C0.137428 21.3041 0.030075 20.7633 0.223654 20.2934ZM4.40349 22.0311L19.3396 37.017V22.0311H4.40349Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.6458 20.2934C38.8394 19.8234 39.2958 19.517 39.802 19.517H59.013C59.7041 19.517 60.2642 20.0798 60.2642 20.774V40.049C60.2642 40.5572 59.9597 41.0155 59.4923 41.2102C59.025 41.405 58.4867 41.2977 58.1289 40.9385L38.9178 21.6635C38.5595 21.3041 38.4522 20.7633 38.6458 20.2934ZM42.8255 22.0311L57.7618 37.017V22.0311H42.8255Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.4347 58.8447C19.6283 58.3747 20.0847 58.0685 20.5909 58.0685H39.802C40.493 58.0685 41.0532 58.6312 41.0532 59.3255V78.6005C41.0532 79.1087 40.7486 79.567 40.2813 79.7617C39.8139 79.9562 39.2757 79.849 38.9178 79.49L19.7067 60.215C19.3485 59.8555 19.2411 59.3147 19.4347 58.8447ZM23.6146 60.5825L38.5508 75.5682V60.5825H23.6146Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.3227 58.1643C39.79 57.9695 40.3283 58.0768 40.6861 58.436L59.8972 77.711C60.2555 78.0703 60.3628 78.6113 60.1692 79.081C59.9756 79.551 59.5192 79.8575 59.013 79.8575H39.802C39.1109 79.8575 38.5508 79.2948 38.5508 78.6005V59.3255C38.5508 58.8173 38.8554 58.359 39.3227 58.1643ZM41.0532 62.3575V77.3433H55.9893L41.0532 62.3575Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.3227 19.6129C39.79 19.4182 40.3283 19.5254 40.6861 19.8846L59.8972 39.1595C60.2555 39.519 60.3628 40.0598 60.1692 40.5298C59.9756 40.9995 59.5192 41.306 59.013 41.306H39.802C39.1109 41.306 38.5508 40.7433 38.5508 40.049V20.7741C38.5508 20.2658 38.8554 19.8075 39.3227 19.6129ZM41.0532 23.8061V38.792H55.9893L41.0532 23.8061Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.3227 38.8885C39.79 38.694 40.3283 38.8012 40.6861 39.1602L59.8972 58.4352C60.2555 58.7945 60.3628 59.3355 60.1692 59.8055C59.9756 60.2752 59.5192 60.5817 59.013 60.5817H39.802C39.1109 60.5817 38.5508 60.019 38.5508 59.3247V40.0497C38.5508 39.5415 38.8554 39.0832 39.3227 38.8885ZM41.0532 43.0817V58.0675H55.9893L41.0532 43.0817Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.6458 39.569C38.8394 39.0992 39.2958 38.7927 39.802 38.7927H59.013C59.7041 38.7927 60.2642 39.3555 60.2642 40.0497V59.3247C60.2642 59.833 59.9597 60.2912 59.4923 60.486C59.025 60.6805 58.4867 60.5732 58.1289 60.2142L38.9178 40.9392C38.5595 40.5797 38.4522 40.039 38.6458 39.569ZM42.8255 41.3067L57.7618 56.2927V41.3067H42.8255Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.6458 58.8447C38.8394 58.3747 39.2958 58.0685 39.802 58.0685H59.013C59.7041 58.0685 60.2642 58.6312 60.2642 59.3255V78.6005C60.2642 79.1087 59.9597 79.567 59.4923 79.7617C59.025 79.9562 58.4867 79.849 58.1289 79.49L38.9178 60.215C38.5595 59.8555 38.4522 59.3147 38.6458 58.8447ZM42.8255 60.5825L57.7618 75.5682V60.5825H42.8255Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M58.5338 19.6129C59.0011 19.4182 59.5394 19.5254 59.8972 19.8846L79.1083 39.1595C79.4666 39.519 79.5739 40.0598 79.3803 40.5298C79.1867 40.9995 78.7303 41.306 78.2241 41.306H59.013C58.322 41.306 57.7618 40.7433 57.7618 40.049V20.7741C57.7618 20.2658 58.0664 19.8075 58.5338 19.6129ZM60.2643 23.8061V38.792H75.2006L60.2643 23.8061Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M58.5338 0.338803C59.0011 0.144135 59.5394 0.251385 59.8972 0.610565L79.1083 19.8855C79.4666 20.2449 79.5739 20.7857 79.3803 21.2556C79.1867 21.7256 78.7303 22.032 78.2241 22.032H59.013C58.322 22.032 57.7618 21.4692 57.7618 20.775V1.50003C57.7618 0.99174 58.0664 0.533468 58.5338 0.338803ZM60.2643 4.53208V19.5179H75.2006L60.2643 4.53208Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M57.8569 20.2934C58.0505 19.8234 58.5069 19.517 59.013 19.517H78.2241C78.9151 19.517 79.4753 20.0798 79.4753 20.774V40.049C79.4753 40.5572 79.1707 41.0155 78.7034 41.2102C78.236 41.405 77.6978 41.2977 77.3399 40.9385L58.1289 21.6635C57.7705 21.3041 57.6633 20.7633 57.8569 20.2934ZM62.0365 22.0311L76.9729 37.017V22.0311H62.0365Z"}),jsxRuntime.jsx("path",{d:"M269.838 49.4457H249.005C249.266 51.801 250.162 53.6985 251.695 55.1377C253.225 56.577 255.134 57.2967 257.416 57.2967C259.307 57.2967 260.887 56.8715 262.159 56.021C263.463 55.1377 264.408 53.9927 264.996 52.5862H269.251C268.502 54.9415 267.084 56.937 264.996 58.5725C262.943 60.208 260.414 61.026 257.416 61.026C255.069 61.026 252.917 60.4697 250.961 59.3575C249.037 58.2127 247.504 56.6587 246.363 54.696C245.255 52.7332 244.7 50.558 244.7 48.17C244.7 45.782 245.255 43.6067 246.363 41.644C247.504 39.6812 249.037 38.1437 250.961 37.0315C252.917 35.8867 255.069 35.3142 257.416 35.3142C259.73 35.3142 261.833 35.8702 263.724 36.9825C265.615 38.0947 267.098 39.6485 268.176 41.644C269.283 43.6395 269.838 45.913 269.838 48.4645V49.4457ZM257.416 39.0432C255.263 39.0432 253.439 39.6812 251.939 40.957C250.47 42.2327 249.542 43.9337 249.152 46.06H265.583C265.192 43.9992 264.262 42.3145 262.796 41.006C261.36 39.6975 259.568 39.0432 257.416 39.0432Z"}),jsxRuntime.jsx("path",{d:"M228.356 60.5352V35.8049H232.219V39.7794H232.464C233.05 38.5689 233.963 37.5712 235.202 36.7862C236.474 35.9684 237.974 35.5594 239.701 35.5594H243.125V39.4359H239.701C237.517 39.4359 235.757 40.1554 234.42 41.5949C233.083 43.0342 232.414 44.9152 232.414 47.2377V60.5352H228.356Z"}),jsxRuntime.jsx("path",{d:"M208.607 61.0259C205.64 61.0259 203.326 60.1262 201.663 58.3272C200 56.4952 199.169 53.8947 199.169 50.5252V35.8047H203.228V49.8874C203.228 52.2427 203.766 54.0744 204.842 55.3829C205.95 56.6587 207.532 57.2967 209.586 57.2967C211.02 57.2967 212.308 56.9694 213.449 56.3152C214.623 55.6284 215.536 54.6959 216.188 53.5184C216.84 52.3407 217.166 50.9997 217.166 49.4949V35.8047H221.225V60.5352H217.313V56.5607H217.068C216.286 57.9019 215.161 58.9814 213.694 59.7992C212.226 60.6169 210.531 61.0259 208.607 61.0259Z"}),jsxRuntime.jsx("path",{d:"M186.736 39.534V56.806H194.756V60.5352H182.677V39.534H177.199V35.8047H182.677V29.5732H186.736V35.8047H193.24V39.534H186.736Z"}),jsxRuntime.jsx("path",{d:"M156.585 60.5352H151.988L158.394 48.0227L152.33 35.8047H156.976L162.062 46.0599H165.388L170.474 35.8047H175.022L168.958 48.0227L175.365 60.5352H170.67L165.29 49.7892H162.013L156.585 60.5352Z"}),jsxRuntime.jsx("path",{d:"M150.138 49.1315H129.304C129.565 51.4867 130.461 53.3842 131.994 54.8235C133.526 56.2627 135.433 56.9825 137.715 56.9825C139.606 56.9825 141.188 56.5572 142.459 55.7067C143.763 54.8235 144.709 53.6785 145.296 52.272H149.551C148.801 54.6272 147.382 56.6227 145.296 58.2582C143.242 59.8937 140.715 60.7118 137.715 60.7118C135.368 60.7118 133.216 60.1555 131.26 59.0432C129.336 57.8985 127.804 56.3445 126.663 54.3817C125.554 52.419 125 50.2437 125 47.8557C125 45.4677 125.554 43.2925 126.663 41.3298C127.804 39.367 129.336 37.8295 131.26 36.7173C133.216 35.5725 135.368 35 137.715 35C140.03 35 142.133 35.556 144.024 36.6682C145.915 37.7805 147.399 39.3342 148.475 41.3298C149.583 43.3252 150.138 45.5987 150.138 48.1502V49.1315ZM137.715 38.729C135.564 38.729 133.738 39.367 132.238 40.6427C130.771 41.9185 129.842 43.6195 129.45 45.7458H145.883C145.491 43.685 144.562 42.0002 143.095 40.6917C141.661 39.3832 139.867 38.729 137.715 38.729Z"}),jsxRuntime.jsx("path",{d:"M116.961 60.5353H112.559V30.4072H101.164V26.1875H128.307V30.4072H116.961V60.5353Z"})]}),jsxRuntime.jsx("defs",{children:jsxRuntime.jsx("clipPath",{id:"clip0_796_283",children:jsxRuntime.jsx("rect",{width:"270",height:"80",fill:"white"})})})]})}let i=r||80;return jsxRuntime.jsxs("svg",{width:i,height:i,viewBox:"0 0 80 80",xmlns:"http://www.w3.org/2000/svg",className:a,style:n?{fill:n}:void 0,children:[jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.223654 20.2934C0.417233 19.8234 0.873598 19.517 1.37984 19.517H20.5909C21.282 19.517 21.8422 20.0798 21.8422 20.774V40.049C21.8422 40.5572 21.5375 41.0155 21.0702 41.2102C20.6028 41.405 20.0647 41.2977 19.7067 40.9385L0.495628 21.6635C0.137428 21.3041 0.030075 20.7633 0.223654 20.2934ZM4.40349 22.0311L19.3396 37.017V22.0311H4.40349Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.6458 20.2934C38.8394 19.8234 39.2958 19.517 39.802 19.517H59.013C59.7041 19.517 60.2642 20.0798 60.2642 20.774V40.049C60.2642 40.5572 59.9597 41.0155 59.4923 41.2102C59.025 41.405 58.4867 41.2977 58.1289 40.9385L38.9178 21.6635C38.5595 21.3041 38.4522 20.7633 38.6458 20.2934ZM42.8255 22.0311L57.7618 37.017V22.0311H42.8255Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.4347 58.8447C19.6283 58.3747 20.0847 58.0685 20.5909 58.0685H39.802C40.493 58.0685 41.0532 58.6312 41.0532 59.3255V78.6005C41.0532 79.1087 40.7486 79.567 40.2813 79.7617C39.8139 79.9562 39.2757 79.849 38.9178 79.49L19.7067 60.215C19.3485 59.8555 19.2411 59.3147 19.4347 58.8447ZM23.6146 60.5825L38.5508 75.5682V60.5825H23.6146Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.3227 58.1643C39.79 57.9695 40.3283 58.0768 40.6861 58.436L59.8972 77.711C60.2555 78.0703 60.3628 78.6113 60.1692 79.081C59.9756 79.551 59.5192 79.8575 59.013 79.8575H39.802C39.1109 79.8575 38.5508 79.2948 38.5508 78.6005V59.3255C38.5508 58.8173 38.8554 58.359 39.3227 58.1643ZM41.0532 62.3575V77.3433H55.9893L41.0532 62.3575Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.3227 19.6129C39.79 19.4182 40.3283 19.5254 40.6861 19.8846L59.8972 39.1595C60.2555 39.519 60.3628 40.0598 60.1692 40.5298C59.9756 40.9995 59.5192 41.306 59.013 41.306H39.802C39.1109 41.306 38.5508 40.7433 38.5508 40.049V20.7741C38.5508 20.2658 38.8554 19.8075 39.3227 19.6129ZM41.0532 23.8061V38.792H55.9893L41.0532 23.8061Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.3227 38.8885C39.79 38.694 40.3283 38.8012 40.6861 39.1602L59.8972 58.4352C60.2555 58.7945 60.3628 59.3355 60.1692 59.8055C59.9756 60.2752 59.5192 60.5817 59.013 60.5817H39.802C39.1109 60.5817 38.5508 60.019 38.5508 59.3247V40.0497C38.5508 39.5415 38.8554 39.0832 39.3227 38.8885ZM41.0532 43.0817V58.0675H55.9893L41.0532 43.0817Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.6458 39.569C38.8394 39.0992 39.2958 38.7927 39.802 38.7927H59.013C59.7041 38.7927 60.2642 39.3555 60.2642 40.0497V59.3247C60.2642 59.833 59.9597 60.2912 59.4923 60.486C59.025 60.6805 58.4867 60.5732 58.1289 60.2142L38.9178 40.9392C38.5595 40.5797 38.4522 40.039 38.6458 39.569ZM42.8255 41.3067L57.7618 56.2927V41.3067H42.8255Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.6458 58.8447C38.8394 58.3747 39.2958 58.0685 39.802 58.0685H59.013C59.7041 58.0685 60.2642 58.6312 60.2642 59.3255V78.6005C60.2642 79.1087 59.9597 79.567 59.4923 79.7617C59.025 79.9562 58.4867 79.849 58.1289 79.49L38.9178 60.215C38.5595 59.8555 38.4522 59.3147 38.6458 58.8447ZM42.8255 60.5825L57.7618 75.5682V60.5825H42.8255Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M58.5338 19.6129C59.0011 19.4182 59.5394 19.5254 59.8972 19.8846L79.1083 39.1595C79.4666 39.519 79.5739 40.0598 79.3803 40.5298C79.1867 40.9995 78.7303 41.306 78.2241 41.306H59.013C58.322 41.306 57.7618 40.7433 57.7618 40.049V20.7741C57.7618 20.2658 58.0664 19.8075 58.5338 19.6129ZM60.2643 23.8061V38.792H75.2006L60.2643 23.8061Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M58.5338 0.338803C59.0011 0.144135 59.5394 0.251385 59.8972 0.610565L79.1083 19.8855C79.4666 20.2449 79.5739 20.7857 79.3803 21.2556C79.1867 21.7256 78.7303 22.032 78.2241 22.032H59.013C58.322 22.032 57.7618 21.4692 57.7618 20.775V1.50003C57.7618 0.99174 58.0664 0.533468 58.5338 0.338803ZM60.2643 4.53208V19.5179H75.2006L60.2643 4.53208Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M57.8569 20.2934C58.0505 19.8234 58.5069 19.517 59.013 19.517H78.2241C78.9151 19.517 79.4753 20.0798 79.4753 20.774V40.049C79.4753 40.5572 79.1707 41.0155 78.7034 41.2102C78.236 41.405 77.6978 41.2977 77.3399 40.9385L58.1289 21.6635C57.7705 21.3041 57.6633 20.7633 57.8569 20.2934ZM62.0365 22.0311L76.9729 37.017V22.0311H62.0365Z"})]})};var js=({topItems:e=[],bottomItems:t=[],bottomContent:r,logo:o,showLogo:n=true,linkComponent:a="a",className:i="",mobileMenuId:s="app-mobile-menu",sidebarCollapseId:c="app-sidebar-collapse"})=>{let l=p=>p.length>0&&"items"in p[0],d=p=>l(p)?p:[{id:"default-section",items:p}],u=(p,f,g)=>jsxRuntime.jsxs("div",{className:"space-y-0.5",children:[p.title&&jsxRuntime.jsx("div",{className:"px-6 py-1 text-xs font-medium text-text-secondary uppercase tracking-wider",children:p.title}),jsxRuntime.jsx("div",{className:"space-y-0.5",children:p.items.map(y=>m(y))}),f<g-1&&jsxRuntime.jsx("div",{className:"border-b border-border-subtle mx-6 my-2"})]},p.id),m=(p,f=false)=>{if(p.children&&p.children.length>0){let b=`category-${p.id}`;return jsxRuntime.jsxs("div",{className:"group/category",children:[jsxRuntime.jsx("input",{type:"checkbox",id:b,className:"peer/category hidden",defaultChecked:p.isExpanded,"aria-hidden":"true"}),jsxRuntime.jsxs("label",{htmlFor:b,className:"flex items-center gap-3 px-6 py-1 text-text-primary hover:bg-background-hover hover:text-text-primary cursor-pointer transition-all duration-200",children:[p.icon&&jsxRuntime.jsx("span",{className:"flex-shrink-0 w-3.5 h-3.5 flex items-center justify-center transition-all duration-200",children:p.icon}),jsxRuntime.jsx("span",{className:"transition-all duration-200",children:p.label}),jsxRuntime.jsx("span",{className:"flex-1"}),jsxRuntime.jsx("svg",{className:"w-4 h-4 transform transition-transform duration-200 peer-checked/category:rotate-180 ml-auto",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]}),jsxRuntime.jsx("div",{className:"hidden peer-checked/category:block bg-background-subtle border-l-2 border-border-subtle ml-6",children:p.children.map(h=>m(h,true))})]},p.id)}let g={href:p.href||"#",className:`flex items-center gap-3 transition-all duration-200 hover:bg-background-hover ${f?"pl-8 pr-6 py-1 text-sm":"px-6 py-1"} ${p.isActive?`bg-action-brand/10 text-action-brand ${f?"":"border-l-2 border-action-brand"}`:"text-text-primary hover:text-text-primary"}`,"aria-current":p.isActive?"page":void 0},y=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[p.icon&&!f&&jsxRuntime.jsx("span",{className:"flex-shrink-0 w-3.5 h-3.5 flex items-center justify-center transition-all duration-200",children:p.icon}),jsxRuntime.jsx("span",{className:"transition-all duration-200",children:p.label})]});return a==="a"?jsxRuntime.jsx("a",{...g,children:y},p.id):jsxRuntime.jsx(a,{...g,children:y},p.id)};return jsxRuntime.jsxs("div",{className:`flex flex-col h-full ${i}`,children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between h-[60px] px-6 border-b border-border-default",children:[n&&jsxRuntime.jsx("div",{className:"relative top-[-1px] transition-all duration-200",children:o||jsxRuntime.jsx(Ia,{showWordmark:true,width:120})}),jsxRuntime.jsx("label",{htmlFor:c,className:"hidden md:flex items-center justify-center w-8 h-8 rounded hover:bg-background-hover cursor-pointer transition-all duration-200 relative top-[-1px]","aria-label":"Collapse sidebar",children:jsxRuntime.jsx(Sr,{name:"Sidebar",size:"sm"})}),jsxRuntime.jsx("label",{htmlFor:s,className:"md:hidden flex items-center justify-center w-8 h-8 rounded hover:bg-background-hover cursor-pointer transition-colors","aria-label":"Close menu",children:jsxRuntime.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),jsxRuntime.jsxs("nav",{className:"flex-1 flex flex-col overflow-hidden",children:[e&&e.length>0&&jsxRuntime.jsx("div",{className:"flex-1 overflow-y-auto py-2 scrollbar-hide",children:d(e).map((p,f,g)=>u(p,f,g.length))}),t&&t.length>0&&jsxRuntime.jsx("div",{className:"flex-shrink-0 border-t bg-background-muted/30",children:jsxRuntime.jsx("div",{className:"mt-2 pb-2 space-y-0.5",children:t.map(p=>m(p))})}),r&&jsxRuntime.jsx("div",{className:"flex-shrink-0 border-t border-border-default",children:jsxRuntime.jsx("div",{children:r})})]})]})};function Mn(e){return e.id??e.href??e.label}function au(e,t,r=[]){for(let o of e){if(o.href===t||o.id===t)return o.children?.length&&o.pushOnSelect!==false?[...r,Mn(o)]:r;if(o.children?.length){let n=au(o.children,t,[...r,Mn(o)]);if(n)return n}}return null}function sg(e,t){let r=[],o=e;for(let n of t){let a=o.find(i=>Mn(i)===n);if(!a)break;r.push(a),o=a.children??[];}return r}function dw(e,t,r){let o=t.length>0?[...e,...t]:e,n=[{path:[],items:e,bottomItems:t.length>0?t:void 0}],a=sg(o,r),i=[];for(let s of a){if(!s.children?.length)break;i=[...i,Mn(s)],n.push({path:i,parent:s,items:s.children});}return n}var uw=({href:e,...t})=>jsxRuntime.jsx("a",{href:e,...t}),ng=[];function pw(e){let t=[];for(let r of e){let o=r.items??[];o.length!==0&&(t.length>0&&t.push({id:`__divider__${r.id}`,label:"",divider:true}),r.title&&t.push({id:`__group__${r.id}`,label:r.title,groupLabel:true}),t.push(...o));}return t}function mw(e,t){if(process.env.NODE_ENV==="production"||t.length===0)return;let r=new Map;for(let o of e)o.id&&r.set(o.id,"id"),o.href&&!r.has(o.href)&&r.set(o.href,"href");for(let o of t){let n=null;o.id&&r.has(o.id)?n=r.get(o.id)==="id"?`id "${o.id}"`:`id "${o.id}" (matches an items \`href\`)`:o.href&&r.has(o.href)&&(n=r.get(o.href)==="href"?`href "${o.href}"`:`href "${o.href}" (matches an items \`id\`)`),n&&console.warn(`[StackNav] L1 ${n} appears in both \`items\` and \`bottomItems\`. Stack tokens and value lookups will resolve to the \`items\` entry, making the bottomItems entry unreachable. L1 ids and hrefs must be unique across both arrays.`);}}function fw(e){if(!e)return {};let t={};return e.background!==void 0&&(t["--edges-stack-nav-background"]=e.background),e.activeBackground!==void 0&&(t["--edges-stack-nav-row-active-background"]=e.activeBackground),e.activeColor!==void 0&&(t["--edges-stack-nav-row-active-color"]=e.activeColor),e.hoverBackground!==void 0&&(t["--edges-stack-nav-row-hover-background"]=e.hoverBackground),e.borderColor!==void 0&&(t["--edges-stack-nav-border-color"]=e.borderColor),t}function Fa({items:e,groups:t,bottomItems:r,value:o,defaultStack:n,stack:a,onStackChange:i,onSelect:s,linkComponent:c=uw,renderRow:l,showLogo:d=false,logo:u,header:m,footer:p,mobileMenuId:f,sidebarCollapseId:g,rootLabel:y,sticky:b=true,width:h=260,ariaLabel:x="Navigation",theme:v,animated:S=true,style:w,className:P}){process.env.NODE_ENV!=="production"&&t&&e&&console.warn("[StackNav] Both `items` and `groups` were provided. `groups` takes precedence and `items` is ignored.");let T=Je__namespace.useMemo(()=>t?pw(t):e??ng,[t,e]),k=r??ng,R=Je__namespace.useMemo(()=>k.length>0?[...T,...k]:T,[T,k]);Je__namespace.useEffect(()=>{mw(T,k);},[T,k]);let[I,E]=Je__namespace.useState(()=>a!==void 0?a:n!==void 0?n:o?au(R,o)??[]:[]),L=a??I,M=Je__namespace.useCallback(A=>{a===void 0&&E(A),i?.(A);},[a,i]),F=Je__namespace.useRef(false);Je__namespace.useEffect(()=>{if(a!==void 0||!F.current&&(F.current=true,n!==void 0)||!o)return;let A=au(R,o);E(G=>{let N=A??[];return hw(G,N)?G:N});},[o,R,a,n]);let z=Je__namespace.useMemo(()=>dw(T,k,L),[T,k,L]),W=Je__namespace.useCallback((A,G)=>{A.children?.length&&M([...G,Mn(A)]);},[M]),X=Je__namespace.useCallback(()=>{M(L.slice(0,-1));},[L,M]),Z=Je__namespace.useCallback((A,G)=>{let N=sg(R,L);if(s?.(G,N),!!G.children?.length){let D=z[z.length-1]?.path??[];W(G,D);}G.href||A.preventDefault();},[R,L,s,W,z]),O=Je__namespace.useCallback(A=>o?A.href===o||A.id===o:false,[o]),j=b?"sticky top-0 h-[100dvh]":"",H={...h!=null?{width:h}:{},...fw(v),...w};return jsxRuntime.jsxs("aside",{role:"navigation","aria-label":x,"data-edges-stack-nav":"",className:tailwindMerge.twMerge("edges-stack-nav flex flex-col flex-shrink-0 overflow-hidden",S&&"edges-stack-nav--animated",j,P),style:H,children:[d?jsxRuntime.jsxs("div",{className:"edges-stack-nav__logo",children:[jsxRuntime.jsx("div",{className:"relative top-[-1px]",children:u??jsxRuntime.jsx(Ia,{showWordmark:true,width:120})}),g?jsxRuntime.jsx("label",{htmlFor:g,className:"hidden md:flex items-center justify-center w-8 h-8 rounded hover:bg-background-hover cursor-pointer transition-all duration-200 relative top-[-1px]","aria-label":"Collapse sidebar",children:jsxRuntime.jsx(Sr,{name:"Sidebar",size:"sm"})}):null,f?jsxRuntime.jsx("label",{htmlFor:f,className:"md:hidden flex items-center justify-center w-8 h-8 rounded hover:bg-background-hover cursor-pointer transition-colors","aria-label":"Close menu",children:jsxRuntime.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}):null]}):null,m?jsxRuntime.jsx("div",{className:"edges-stack-nav__header",children:m}):null,jsxRuntime.jsx("div",{className:"relative flex-1 overflow-hidden",children:z.map((A,G)=>{let N=A.path.length,C=G===z.length-1,D=G<z.length-1,B=N===0?"__root__":A.path.join("/");return jsxRuntime.jsx(gw,{pane:A,parentPath:A.path.slice(0,-1),depth:N,isTop:C,isAbove:D,rootLabel:y,LinkComponent:c,renderRow:l,isActive:O,onSelect:Z,onBack:X,animated:S},B)})}),p?jsxRuntime.jsx("div",{className:"edges-stack-nav__footer",children:p}):null]})}function gw({pane:e,depth:t,isTop:r,isAbove:o,rootLabel:n,LinkComponent:a,renderRow:i,isActive:s,onSelect:c,onBack:l,animated:d}){let u=r?"edges-stack-nav__pane--top":o?"edges-stack-nav__pane--above":"edges-stack-nav__pane--below";return jsxRuntime.jsxs("nav",{"aria-label":e.parent?.label??n??"Navigation","aria-hidden":r?void 0:true,inert:r?void 0:true,className:tailwindMerge.twMerge("edges-stack-nav__pane absolute inset-0 flex flex-col gap-px overflow-y-auto px-2 py-3",!d&&"edges-stack-nav__pane--instant",u),children:[t>0&&e.parent?jsxRuntime.jsxs("button",{type:"button",className:"edges-stack-nav__back edges-stack-nav__row flex w-full cursor-pointer items-center gap-2 rounded-sm border-0 bg-transparent px-3 py-2 mb-2 text-left text-sm font-semibold text-text-primary",onClick:l,"aria-label":`Back from ${e.parent.label}`,children:[jsxRuntime.jsx(xw,{}),jsxRuntime.jsx("span",{children:e.parent.label})]}):n?jsxRuntime.jsx("div",{className:"px-3 pb-1.5 text-[10px] font-semibold uppercase tracking-[0.08em] text-text-secondary",children:n}):null,e.items.map(m=>jsxRuntime.jsx(ag,{item:m,LinkComponent:a,renderRow:i,isActive:s(m),onSelect:c},Mn(m))),e.bottomItems&&e.bottomItems.length>0?jsxRuntime.jsx("div",{className:"edges-stack-nav__bottom-items mt-auto flex flex-col gap-px pt-3",children:e.bottomItems.map(m=>jsxRuntime.jsx(ag,{item:m,LinkComponent:a,renderRow:i,isActive:s(m),onSelect:c},Mn(m)))}):null]})}function ag({item:e,LinkComponent:t,renderRow:r,isActive:o,onSelect:n}){if(e.divider)return jsxRuntime.jsx("div",{className:"edges-stack-nav__divider my-2",role:"separator"});if(e.groupLabel)return jsxRuntime.jsx("div",{className:"px-3 pt-6 pb-1.5 text-[10px] font-semibold uppercase tracking-[0.08em] text-text-secondary",children:e.label});let a=!!e.children?.length,i=tailwindMerge.twMerge("edges-stack-nav__row flex items-center justify-between gap-3 rounded-sm px-3 py-2 text-sm font-normal text-text-primary no-underline cursor-pointer text-left bg-transparent border-0 transition-colors",o&&"edges-stack-nav__row--active font-semibold");if(r)return jsxRuntime.jsx(jsxRuntime.Fragment,{children:r({item:e,isActive:o,hasChildren:a,select:c=>n(c,e),LinkComponent:t,className:i})});let s=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("span",{className:"flex min-w-0 items-center gap-2",children:[e.leading??e.icon?jsxRuntime.jsx("span",{className:"inline-flex items-center flex-shrink-0",children:e.leading??e.icon}):null,jsxRuntime.jsx("span",{className:"truncate",children:e.label})]}),jsxRuntime.jsxs("span",{className:"flex flex-shrink-0 items-center gap-2 text-text-secondary",children:[e.trailing,a?jsxRuntime.jsx(bw,{}):null]})]});return e.href?jsxRuntime.jsx(t,{href:e.href,"aria-label":e.ariaLabel,className:i,"aria-current":o?"page":void 0,onClick:c=>n(c,e),children:s}):jsxRuntime.jsx("button",{type:"button",className:i,"aria-label":e.ariaLabel,onClick:c=>{n(c,e);},children:s})}function bw(){return jsxRuntime.jsx("svg",{width:12,height:12,viewBox:"0 0 12 12",fill:"none","aria-hidden":"true",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",children:jsxRuntime.jsx("path",{d:"M4.5 3 7.5 6 4.5 9"})})}function xw(){return jsxRuntime.jsx("svg",{width:14,height:14,viewBox:"0 0 14 14",fill:"none","aria-hidden":"true",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",children:jsxRuntime.jsx("path",{d:"M8.5 3 4.5 7 8.5 11"})})}function hw(e,t){if(e===t)return true;if(e.length!==t.length)return false;for(let r=0;r<e.length;r+=1)if(e[r]!==t[r])return false;return true}var ki=({rightContent:e,centerContent:t,showMobileMenu:r=true,avatar:o,showColorModeSwitcher:n=false,toggleTheme:a,isDarkThemeEnabled:i=false,colorMode:s,actions:c,className:l="",mobileMenuId:d="app-mobile-menu"})=>{let u=()=>{switch(s||(i?"dark":"light")){case "system":return jsxRuntime.jsx(Sr,{name:"Monitor",size:"sm"});case "light":return jsxRuntime.jsx(Sr,{name:"Sun",size:"sm"});case "dark":return jsxRuntime.jsx(Sr,{name:"Moon",size:"sm"})}},m=()=>{switch(s||(i?"dark":"light")){case "system":return "Switch to light mode";case "light":return "Switch to dark mode";case "dark":return "Switch to system mode";default:return "Toggle theme"}};return jsxRuntime.jsx("header",{className:`h-[60px] bg-background-surface border-b ${l}`,children:jsxRuntime.jsxs("div",{className:"relative flex h-full items-center",children:[jsxRuntime.jsx("div",{className:"flex items-center h-full flex-shrink-0",children:r&&jsxRuntime.jsx("label",{htmlFor:d,className:"md:hidden cursor-pointer","aria-label":"Open menu",children:jsxRuntime.jsx("div",{className:"flex h-full w-14 flex-col items-center justify-center border-r hover:bg-background-hover transition-colors",children:jsxRuntime.jsx(Sr,{name:"List",size:"sm"})})})}),t&&jsxRuntime.jsx("div",{className:"flex-1 flex justify-end md:justify-center md:px-4 min-w-0",children:jsxRuntime.jsx("div",{className:"w-full md:max-w-4xl min-w-0",children:t})}),!t&&jsxRuntime.jsx("div",{className:"flex-1"}),jsxRuntime.jsxs("div",{className:"flex items-center gap-4 pr-4 flex-shrink-0 ml-4",children:[e,n&&a&&jsxRuntime.jsx("button",{type:"button",onClick:a,className:"flex items-center justify-center w-8 h-8 rounded hover:bg-background-hover transition-colors","aria-label":m(),children:u()}),c,o&&jsxRuntime.jsx("div",{className:"flex items-center",children:o})]})]})})};function cg({sideNav:e,stackNav:t,topNav:r,children:o,contentPaddingX:n,contentPaddingY:a,showSidebarBorder:i=true,mainClassName:s,enableJsEnhancements:c=false}){let l="app-mobile-menu",d="app-sidebar-collapse";return Je.useEffect(()=>{if(!c)return;let u=document.getElementById(d),m=document.getElementById(l),p=document.querySelector("[data-app-shell]"),f=document.getElementById("app-sidebar");if(!u||!p||!f)return;let g=null,y=false;try{let R=localStorage.getItem("sidebar-collapsed");R!==null&&(u.checked=R==="true");}catch{}let b=()=>{try{localStorage.setItem("sidebar-collapsed",String(u.checked));}catch{}u.checked?y=true:(g&&(clearTimeout(g),g=null),p.removeAttribute("data-peek"),y=false);};u.addEventListener("change",b);let h=R=>{R.key==="Escape"&&(m&&(m.checked=false),p.removeAttribute("data-peek"));};document.addEventListener("keydown",h);let x=null;m&&(x=()=>{document.body.style.overflow=m.checked?"hidden":"";},m.addEventListener("change",x));let v=R=>{let E=R.target.closest("a");E&&E.href&&window.innerWidth<768&&m&&setTimeout(()=>{m.checked=false,document.body.style.overflow="";},100);};f.addEventListener("click",v);let S=16,w=200,P=()=>{g&&(clearTimeout(g),g=null),p.getAttribute("data-peek")!=="true"&&p.setAttribute("data-peek","true");},T=()=>{g&&clearTimeout(g),g=setTimeout(()=>{p.removeAttribute("data-peek"),g=null;},w);},k=R=>{if(window.innerWidth<768||!u.checked)return;let I=f.contains(R.target);if(y&&!I&&(y=false),y)return;R.clientX<=S||I?P():p.getAttribute("data-peek")==="true"&&T();};return document.addEventListener("mousemove",k),()=>{u.removeEventListener("change",b),document.removeEventListener("keydown",h),m&&x&&m.removeEventListener("change",x),f.removeEventListener("click",v),document.removeEventListener("mousemove",k),g&&clearTimeout(g);}},[c,l,d]),jsxRuntime.jsxs("div",{className:"min-h-[100dvh] bg-background text-text-primary relative","data-app-shell":"",children:[jsxRuntime.jsx("input",{type:"checkbox",id:d,className:"sr-only peer/sidebar","aria-hidden":"true"}),jsxRuntime.jsx("a",{href:"#app-content",className:"sr-only focus:not-sr-only focus:absolute focus:left-4 focus:top-4 z-50 rounded px-3 py-2 bg-background-surface shadow",children:"Skip to content"}),jsxRuntime.jsx(ki,{...r,mobileMenuId:l,className:["sticky top-0 flex-shrink-0 z-30 md:hidden",r?.className].filter(Boolean).join(" ")}),jsxRuntime.jsxs("div",{className:"flex w-full h-[calc(100dvh-60px)] md:h-[100dvh] relative overflow-hidden",children:[jsxRuntime.jsx("input",{type:"checkbox",id:l,className:"sr-only peer/mobile","aria-hidden":"true"}),jsxRuntime.jsx("label",{htmlFor:l,className:"fixed inset-0 bg-background-modal z-[55] opacity-0 pointer-events-none peer-checked/mobile:opacity-100 peer-checked/mobile:pointer-events-auto transition-opacity md:hidden","aria-label":"Close menu"}),jsxRuntime.jsx("div",{"aria-hidden":"true","data-peek-zone":"",className:"hidden md:block fixed left-0 top-0 bottom-0 w-4 z-[70] pointer-events-none"}),jsxRuntime.jsx("label",{htmlFor:d,"data-expand-rail":"",className:"hidden fixed left-3 top-3 z-[75] items-center justify-center w-9 h-9 rounded-md bg-background-surface border border-border-default shadow-sm hover:bg-background-hover cursor-pointer transition-all duration-200","aria-label":"Expand sidebar",children:jsxRuntime.jsx(Sr,{name:"Sidebar",size:"sm"})}),jsxRuntime.jsx("aside",{id:"app-sidebar","data-app-sidebar":"",className:["bg-background-surface","border-r border-border-default","transition-transform duration-300 ease-in-out md:transition-[transform,width] md:duration-300 md:ease-in-out","fixed md:relative","left-0 top-0 bottom-0","z-[60] md:z-10","w-full md:w-64","h-[100dvh] md:h-full","-translate-x-full","peer-checked/mobile:translate-x-0","md:translate-x-0",i?"":"!border-r-0",(t??e)?.className||""].filter(Boolean).join(" "),children:t?jsxRuntime.jsx(Fa,{...t,mobileMenuId:l,sidebarCollapseId:d,sticky:false,width:null,className:["h-full !border-r-0",t.className].filter(Boolean).join(" ")}):jsxRuntime.jsx(js,{...e,mobileMenuId:l,sidebarCollapseId:d,className:"h-full"})}),jsxRuntime.jsxs("div",{className:"flex-1 flex flex-col h-full overflow-hidden",children:[jsxRuntime.jsx("div",{className:"sticky top-0 flex-shrink-0 hidden md:block z-20","data-top-nav-wrapper":"",children:jsxRuntime.jsx(ki,{...r,className:r?.className})}),jsxRuntime.jsx("main",{id:"app-content",className:["flex-1 overflow-y-auto overflow-x-hidden bg-background-body scrollbar-visible",n,a,s||""].join(" "),role:"main",children:o})]})]}),jsxRuntime.jsx("style",{dangerouslySetInnerHTML:{__html:`
|
|
3
3
|
@media (min-width: 768px) {
|
|
4
4
|
/* Collapsed: hide the rail offscreen, surface the floating expand
|
|
5
5
|
button, and let the edge zone receive hover events. */
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
z-index: 50;
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
-
`}})]})}function jo(e,t=300){let[r,o]=Ke.useState(e);return Ke.useEffect(()=>{let n=setTimeout(()=>o(e),t);return ()=>clearTimeout(n)},[e,t]),r}function Ys(e,t=300){let[r,o]=Ke.useState(false);return Ke.useEffect(()=>{if(e){let n=setTimeout(()=>{o(true);},t);return ()=>clearTimeout(n)}o(false);},[e,t]),r}var ww=({isEntering:e,isExiting:t,className:r})=>["max-w-[200px] group bg-action-default border border-action-default-hover text-[color:var(--color-action-default-text)] text-sm rounded-lg drop-shadow-lg will-change-transform px-3 py-1",e?"animate-in fade-in placement-bottom:slide-in-from-top-0.5 placement-top:slide-in-from-bottom-0.5 placement-left:slide-in-from-right-0.5 placement-right:slide-in-from-left-0.5 ease-out duration-200":"",t?"animate-out fade-out placement-bottom:slide-out-to-top-0.5 placement-top:slide-out-to-bottom-0.5 placement-left:slide-out-to-right-0.5 placement-right:slide-out-to-left-0.5 ease-in duration-150":"",r].filter(Boolean).join(" ");function nr({children:e,content:t,...r}){return jsxRuntime.jsxs(reactAriaComponents.TooltipTrigger,{delay:200,children:[e,jsxRuntime.jsxs(reactAriaComponents.Tooltip,{...r,offset:10,className:reactAriaComponents.composeRenderProps(r.className,(o,n)=>ww({...n,className:o})),children:[jsxRuntime.jsx(reactAriaComponents.OverlayArrow,{children:jsxRuntime.jsx("svg",{width:8,height:8,viewBox:"0 0 8 8",className:"fill-action-default stroke-action-default-hover group-placement-left:-rotate-90 group-placement-right:rotate-90 group-placement-bottom:rotate-180 forced-colors:fill-[Canvas] forced-colors:stroke-[ButtonBorder]",children:jsxRuntime.jsx("path",{d:"M0 0 L4 4 L8 0"})})}),t]})]})}function Dr(){let[e,t]=Ke__namespace.default.useState(false),r=Ke__namespace.default.useCallback((n,a)=>{t(true),a?.(n);},[]),o=Ke__namespace.default.useCallback((n,a)=>{t(false),a?.(n);},[]);return {isFocused:e,handleFocus:r,handleBlur:o}}var wt=Ke__namespace.default.forwardRef(({children:e,className:t},r)=>jsxRuntime.jsx("div",{ref:r,className:tailwindMerge.twMerge("relative w-full",t),children:e}));wt.displayName="InputWrapper";function Ni({onClick:e,size:t="md",className:r}){return jsxRuntime.jsx("button",{type:"button",onClick:o=>{o.preventDefault(),o.stopPropagation(),e();},className:tailwindMerge.twMerge("absolute right-2 top-[48%] -translate-y-1/2 transform text-text-secondary hover:text-text-primary cursor-pointer",r),"aria-label":"Clear input",onMouseDown:o=>{o.preventDefault(),o.stopPropagation();},children:jsxRuntime.jsx(F,{name:"X",size:t==="sm"?16:20})})}function qo(e){let{isInvalid:t,isDisabled:r,isFocused:o}=e,n="border rounded-[var(--control-border-radius)] !outline-none ";return r?`${n} border-border-muted`:t&&o?`${n} border-feedback-error-border shadow-[inset_0_0_0_1px_var(--color-feedback-error-border)]`:t?`${n} border-feedback-error-border`:o?`${n} border-border-focus shadow-[inset_0_0_0_1px_var(--color-border-focus)]`:`${n} border-border-input`}function ig(e){return e.isDisabled?"bg-background-muted":e.transparent?"bg-transparent":"bg-background-input"}function Nw(e){return e==="sm"?"!text-base md:!text-[length:var(--control-text-sm)]":e==="md"?"!text-base md:!text-[length:var(--control-text-md)]":""}function Ut(e){let{isInvalid:t,isDisabled:r,isFocused:o,transparent:n,size:a="md",className:i}=e;return tailwindMerge.twMerge("w-full",qo({isInvalid:t,isDisabled:r,isFocused:o}),ig({transparent:n,isDisabled:r}),Ye[a].text,Ye[a].height,Ye[a].padding,Nw(a),i)}function kw(e){let{size:t="md",isFocusWithin:r,isInvalid:o,isDisabled:n,transparent:a,className:i}=e;return tailwindMerge.twMerge("group flex items-center rounded-[var(--control-border-radius)] overflow-hidden",ig({transparent:a,isDisabled:n}),Ye[t].height,qo({isFocused:r,isInvalid:o,isDisabled:n}),i)}function Ue({children:e,size:t="md",tooltip:r,description:o,descriptionPlacement:n="below",isRequired:a,className:i,htmlFor:s}){let c=r||o&&n==="tooltip",l=r||o,d=o&&n==="inline",u=jsxRuntime.jsxs("label",{htmlFor:s,className:tailwindMerge.twMerge(Ye[t].text,"!text-text-label font-semibold flex items-center gap-1",i),children:[e,a&&jsxRuntime.jsx("span",{children:"*"}),c&&jsxRuntime.jsx("span",{className:"inline-flex items-center text-text-secondary",children:jsxRuntime.jsx(F,{name:"Info",size:t==="sm"?16:20})}),d&&jsxRuntime.jsx("span",{className:"text-text-secondary font-normal ml-1",children:o})]});return c&&l?jsxRuntime.jsx(nr,{content:l,children:u}):u}function Te({size:e="md",className:t,children:r,...o}){return jsxRuntime.jsx("div",{...o,className:tailwindMerge.twMerge("leading-[2.25] text-text-secondary",Ye[e].text,t),children:r})}function fe({children:e,size:t="md",className:r}){return jsxRuntime.jsx("div",{role:"alert",className:tailwindMerge.twMerge(Ye[t].text,"text-feedback-error-text",r),children:e})}function Xs({size:e="md",isInvalid:t,isDisabled:r,isFocused:o,transparent:n,className:a,...i}){return jsxRuntime.jsx("input",{className:Ut({isInvalid:t,isDisabled:r,isFocused:o,transparent:n,size:e,className:a}),...i})}function sg(e){let{children:t,...r}=e;return jsxRuntime.jsx("div",{...r,className:kw(e),children:typeof t=="function"?t(e):t})}var iu=Ke.createContext("md");function pg(){return Ke.useContext(iu)}function ou(e="md"){let t=e==="sm"?"!text-base md:!text-[length:var(--control-text-sm)]":e==="md"?"!text-base md:!text-[length:var(--control-text-md)]":"";return `flex-1 text-start data-[placeholder]:text-text-disabled overflow-hidden text-ellipsis whitespace-nowrap ${Ye[e].text} ${t}`}function Lw(){let e=Ke__namespace.default.useCallback((r,o)=>{o?.(r);},[]),t=Ke__namespace.default.useCallback((r,o)=>{o?.(r);},[]);return {handleFocus:e,handleBlur:t}}function Ro({label:e,description:t,errorMessage:r,children:o,items:n,renderItem:a,renderSelectedValue:i,size:s="md",selectedKey:c,defaultSelectedKey:l,onSelectionChange:d,placeholder:u,showErrors:m=false,tooltip:p,isRequired:f,transparent:g,reserveErrorSpace:h=false,placement:b="bottom start",shouldFlip:y=true,menuWidth:x="match",descriptionPlacement:v="below",useMobileTray:S=true,...w}){let[k,P]=Ke.useState(null),[T,E]=Ke.useState(null),[I,R]=Ke.useState(false),L=c??k??l,{handleFocus:M,handleBlur:V}=Lw(),{isMobile:z}=$t(),U=S&&z,Q=Ke__namespace.default.useMemo(()=>!i||!L||!n?null:Array.from(n).find(W=>W.id===L)??null,[i,L,n]),Z=A=>{d&&A!==null&&d(A),d||P(A);},H=Ke.useRef(null),j=Ke.useRef(null),G=()=>{U&&R(!I);};return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(reactAriaComponents.Select,{...w,selectedKey:L,defaultSelectedKey:l,onSelectionChange:Z,placeholder:u,className:ke(w.className,"group flex w-full flex-col"),ref:H,onOpenChange:A=>{U||(A&&j.current?E(j.current.offsetWidth):A||H.current?.blur());},children:({isDisabled:A,isInvalid:W,isOpen:N})=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(Ue,{size:s,tooltip:p,description:v==="tooltip"||v==="inline"?t:void 0,descriptionPlacement:v,isRequired:f,children:e}),jsxRuntime.jsx(wt,{children:jsxRuntime.jsx("div",{ref:j,children:jsxRuntime.jsxs(_,{variant:"unstyled",className:tailwindMerge.twMerge(Ut({isInvalid:W||m&&!!r,isDisabled:A,isFocused:U?I:N,transparent:g,size:s}),"flex items-center text-start gap-4 cursor-pointer pl-[var(--control-padding-sm)]"),onFocus:C=>M(C,w.onFocus),onBlur:C=>V(C,w.onBlur),onPress:U?G:void 0,"data-open":U?I:N,children:[i&&Q?jsxRuntime.jsx("div",{className:ou(s),children:i(Q)}):U&&L?jsxRuntime.jsx("div",{className:ou(s),children:n?Array.from(n).find(B=>B.id===L)?.label:String(L)}):jsxRuntime.jsx(reactAriaComponents.SelectValue,{className:ou(s)}),jsxRuntime.jsx(F,{name:"CaretDown","aria-hidden":true,className:tailwindMerge.twMerge("h-4 w-4 text-text-primary group-disabled:text-text-disabled forced-colors:text-[ButtonText] transition-transform",(U?I:N)&&"rotate-180")})]})})}),h?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:m?jsxRuntime.jsx(fe,{size:s,className:"text-feedback-error-text",children:typeof r=="function"&&w.validationResult?r(w.validationResult):typeof r=="string"?r:null}):t&&v==="below"?jsxRuntime.jsx(Te,{size:s,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:m?jsxRuntime.jsx(fe,{size:s,className:"mt-1 text-feedback-error-text",children:typeof r=="function"&&w.validationResult?r(w.validationResult):typeof r=="string"?r:null}):t&&v==="below"?jsxRuntime.jsx(Te,{size:s,className:"mt-1",children:t}):null}),U?null:jsxRuntime.jsx(ft,{className:"bg-background-input shadow-xl border border-border-input/20 backdrop-blur-sm rounded-[var(--control-border-radius)]",style:{width:x==="match"&&T?`${T}px`:void 0,minWidth:x==="auto"&&T?`${T}px`:void 0,maxWidth:x==="auto"?"min(600px, 90vw)":void 0},placement:b,shouldFlip:y,children:jsxRuntime.jsx(iu.Provider,{value:"md",children:jsxRuntime.jsx(reactAriaComponents.ListBox,{items:n,className:"w-full max-h-[300px] overflow-auto bg-background-input p-0 outline-0",children:a&&n?C=>jsxRuntime.jsx(ar,{id:C.id,textValue:C.label,children:jsxRuntime.jsx("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap min-w-0 flex-1",children:a(C)})},C.id):o})})})]})}),U&&jsxRuntime.jsx(gt,{isOpen:I,onClose:()=>R(false),title:e??"Select an option",contentPadding:false,children:jsxRuntime.jsx(iu.Provider,{value:"md",children:jsxRuntime.jsx(reactAriaComponents.ListBox,{items:n,className:"w-full bg-background-surface p-0 outline-0 [&_[role=option]]:border-b [&_[role=option]]:border-border-default [&_[role=option]:last-child]:border-0 [&_[role=option]]:!px-6 [&_[role=option]]:!py-4 [&_[role=option]]:rounded-none",selectionMode:"single",selectedKeys:L!=null?[L]:[],onSelectionChange:A=>{let W=Array.from(A)[0];W!=null&&(Z(W),R(false));},children:a&&n?A=>jsxRuntime.jsx(ar,{id:A.id,textValue:A.label,children:jsxRuntime.jsx("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap min-w-0 flex-1",children:a(A)})},A.id):o})})})]})}function ar({size:e,className:t,...r}){let o=pg(),n=e??o;return jsxRuntime.jsx(reactAriaComponents.ListBoxItem,{...r,className:tailwindMerge.twMerge("flex cursor-default items-center gap-2 rounded-sm px-3 outline-none text-text-primary data-[focused]:bg-background-hover data-[focus-visible]:ring-2 data-[focus-visible]:ring-action-default data-[focus-visible]:ring-inset data-[selected]:bg-background-selected data-[selected]:font-medium overflow-hidden",Ye[n].paddingY,Ye[n].text,t)})}var Uw=[],Kw={sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6",xl:"h-7 w-7"},Yw={sm:"pl-8",md:"pl-10",lg:"pl-11",xl:"pl-13"},fg={sm:"py-1",md:"py-2",lg:"py-3",xl:"py-4"},lu=(e,t,r)=>{if(e==null||e==="")return "";let n=(r?r.flatMap(a=>a.items):t||[]).find(a=>a.id===e);return n?n.name:""};async function Jw(e,t,r){try{let o=e.url.replace("{q}",t),n=new URLSearchParams;e.extraParams&&Object.entries(e.extraParams).forEach(([c,l])=>{n.append(c,l.toString());});let a=`${o}${n.toString()?"?"+n.toString():""}`,i=await fetch(a,{method:"GET",headers:e.headers,signal:r});if(!i.ok)throw new Error(`HTTP error! status: ${i.status}`);let s=await i.json();return {items:e.transformResponse(s)}}catch(o){if(o instanceof Error&&o.name==="AbortError")return {items:[]};console.error("Error in REST request:",o);let n=o instanceof Error?o.message:"Unknown error occurred";return {items:[],error:n}}}async function Xw(e,t,r){try{let o=e.graphqlQuery.replace(`$${e.variableKey||"filter"}`,`"${t}"`),n=await fetch(e.url,{method:"POST",headers:{"Content-Type":"application/json",...e.headers},body:JSON.stringify({query:o}),signal:r});if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);let a=await n.json();if(a.errors)throw new Error(a.errors[0]?.message||"GraphQL error occurred");return e.responsePath&&(a=e.responsePath.split(".").reduce((i,s)=>i?.[s],a)),{items:e.transformResponse(a)}}catch(o){if(o instanceof Error&&o.name==="AbortError")return {items:[]};console.error("Error in GraphQL request:",o);let n=o instanceof Error?o.message:"Unknown error occurred";return {items:[],error:n}}}function Qs({label:e,staticItems:t=Uw,sections:r,selectedKey:o,defaultSelectedKey:n,onSelectionChange:a,requestConfig:i,defaultFilter:s,placeholder:c,errorMessage:l,description:d,size:u="md",tooltip:m,isRequired:p,isDisabled:f,isInvalid:g,validationResult:h,showErrors:b=true,renderItem:y,renderLeftIcon:x,renderSection:v,autoFocus:S=false,reserveErrorSpace:w=false,hideChevron:k=false,useMobileTray:P=true,className:T}){let E=Ke__namespace.default.useRef(null),I=Ke__namespace.default.useRef(null),[R,L]=Ke__namespace.default.useState(),[M,V]=Ke.useState(()=>lu(o||n,t,r)),[z,U]=Ke.useState(false),[Q,Z]=Ke.useState(false),H=jo(M),{contains:j}=reactAria.useFilter({sensitivity:"base"}),[G,A]=Ke.useState(),{isMobile:W}=$t(),N=P&&W,C=Ye[u].text,D=reactStately.useAsyncList({async load({signal:te,filterText:ne=""}){if(!i)return {items:[]};if(!i.url||i.shouldLoad&&!i.shouldLoad(ne))return {items:[]};try{let oe;return i.requestType==="GraphQL"?oe=await Xw(i,ne,te):oe=await Jw(i,ne,te),A(oe.error),{items:oe.items}}catch(oe){return oe instanceof Error&&oe.name==="AbortError"?{items:[]}:(console.error("Error loading items:",oe),A(oe instanceof Error?oe.message:"Unknown error occurred"),{items:[]})}},initialFilterText:""}),B=i&&H!==""?D:null,X=false,ee=Ke.useRef("");Ke.useEffect(()=>{S&&U(true);},[S]),Ke.useEffect(()=>{let te=lu(o,t,r);te!==M&&V(te);},[o,t,r]),Ke.useEffect(()=>{let te=()=>{E.current&&L(E.current.offsetWidth);};return te(),window.addEventListener("resize",te),()=>window.removeEventListener("resize",te)},[]),Ke.useEffect(()=>{H===""?ee.current="":B&&H!==ee.current&&(ee.current=H,B.setFilterText(H));},[H,B]),X=Ys(!!B?.isLoading,300);let le=Ke__namespace.default.useMemo(()=>{if(!N||!M)return B?B.items:t;let te=B?B.items:t,ne=s??(i?()=>true:j);return te.filter(oe=>ne(oe.name,M))},[N,M,B,t,s,j]),$=te=>{let ne=lu(te,t,r);V(ne),a&&a(te);},ae=te=>{V(te);},Ve=()=>{N&&Z(true);};return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(reactAriaComponents.ComboBox,{onSelectionChange:$,selectedKey:o||void 0,defaultSelectedKey:n||void 0,items:B?B.items:r?r.flatMap(te=>te.items):t,className:ke(T,"group flex flex-col w-full"),menuTrigger:N?"manual":i?"input":"focus",allowsEmptyCollection:!!i,isDisabled:f,isInvalid:g||!!l,inputValue:M,onInputChange:ae,autoFocus:S&&!N,defaultFilter:s??(i?()=>true:j),"aria-label":e||c||"Autocomplete",children:te=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(Ue,{size:u,tooltip:m,isRequired:p,children:e}),jsxRuntime.jsxs(wt,{ref:E,children:[x?jsxRuntime.jsx("div",{className:"pointer-events-none absolute left-3 top-[45%] -translate-y-1/2 z-10",children:x(X)}):jsxRuntime.jsx("div",{className:"pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 z-10 flex items-center",children:X?jsxRuntime.jsx(Po,{size:16,color:"text-text-secondary"}):jsxRuntime.jsx(F,{name:"MagnifyingGlass",className:`${Kw[u]} text-text-secondary`})}),jsxRuntime.jsx(reactAriaComponents.Input,{className:Ut({isInvalid:g||!!l,isDisabled:f,isFocused:z||(N?Q:te.isOpen),size:u,className:tailwindMerge.twMerge(Yw[u],M&&!f||!k&&!M?"pr-10":"pr-3",N&&"cursor-pointer",T)}),placeholder:c,disabled:f,onFocus:ne=>{U(true),N&&(ne.currentTarget.blur(),Ve());},onBlur:()=>{U(false);},onClick:N?Ve:void 0,readOnly:N,"aria-label":e||c||"Autocomplete"}),M&&!f&&jsxRuntime.jsx(Ni,{onClick:()=>{V(""),a?.(null);},size:u}),!k&&!M&&jsxRuntime.jsx(reactAriaComponents.Button,{className:"absolute right-3 top-[46%] -translate-y-1/2 transform text-text-secondary hover:text-text-primary","aria-label":"Toggle menu",isDisabled:f,children:({isPressed:ne})=>jsxRuntime.jsx(F,{name:ne?"CaretUp":"CaretDown",className:"h-4 w-4"})})]}),w?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:b&&G?jsxRuntime.jsx(fe,{size:u,className:"text-feedback-error-text",children:G}):b&&typeof l=="string"?jsxRuntime.jsx(fe,{size:u,className:"text-feedback-error-text",children:l}):b&&typeof l=="function"&&h?jsxRuntime.jsx(fe,{size:u,className:"text-feedback-error-text",children:l(h)}):d?jsxRuntime.jsx(Te,{size:u,children:d}):null}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[d&&jsxRuntime.jsx(Te,{size:u,className:"mt-1",children:d}),b&&G&&jsxRuntime.jsx(fe,{size:u,className:"text-feedback-error-text mt-1",children:G}),b&&typeof l=="string"&&jsxRuntime.jsx(fe,{size:u,className:"text-feedback-error-text mt-1",children:l}),b&&typeof l=="function"&&h&&jsxRuntime.jsx(fe,{size:u,className:"text-feedback-error-text mt-1",children:l(h)})]}),!N&&jsxRuntime.jsx(ft,{className:"bg-background-input shadow-xl border border-border-input/20 backdrop-blur-sm ring-1 ring-black/5 rounded-[var(--control-border-radius)]",style:{minWidth:R?`${R}px`:void 0,zIndex:9999},children:jsxRuntime.jsx(reactAriaComponents.ListBox,{"aria-label":e||c||"Suggestions",className:`max-h-[300px] overflow-auto bg-background-input outline-none ${C}`,children:r?r.map(ne=>{let oe=ne.items.map(pe=>jsxRuntime.jsx(ar,{id:pe.id,textValue:pe.name,size:u,className:`flex cursor-default items-center gap-2 px-3 ${fg[u]} text-text-primary outline-none data-[focused]:bg-background-hover data-[selected]:bg-background-selected data-[selected]:font-medium data-[focus-visible]:ring-0`,children:y?y(pe):pe.name},pe.id));if(v){let pe=v(ne,oe);return Ke__namespace.default.isValidElement(pe)&&pe.type===reactAriaComponents.ListBoxSection?pe:jsxRuntime.jsx(reactAriaComponents.ListBoxSection,{children:pe},ne.name)}return jsxRuntime.jsxs(reactAriaComponents.ListBoxSection,{children:[jsxRuntime.jsx(reactAriaComponents.Header,{className:"px-3 py-1 text-sm font-bold text-text-secondary",children:ne.name}),oe]},ne.name)}):ne=>jsxRuntime.jsx(ar,{id:ne.id,textValue:ne.name,size:u,className:`flex cursor-default items-center gap-2 px-3 ${fg[u]} text-text-primary outline-none data-[focused]:bg-background-hover data-[selected]:bg-background-selected data-[selected]:font-medium data-[focus-visible]:ring-0`,children:y?y(ne):ne.name},ne.id)})})]})}),N&&jsxRuntime.jsx(gt,{isOpen:Q,onClose:()=>Z(false),title:e??c??"Search",contentPadding:false,height:"80vh",children:jsxRuntime.jsxs("div",{className:"flex flex-col h-full",children:[jsxRuntime.jsx("div",{className:"p-4 border-b border-border-default",children:jsxRuntime.jsxs(wt,{children:[jsxRuntime.jsx("div",{className:"pointer-events-none absolute left-3 top-[45%] -translate-y-1/2 z-10 flex items-center",children:X?jsxRuntime.jsx(Po,{size:16,color:"text-text-secondary"}):jsxRuntime.jsx(F,{name:"MagnifyingGlass",className:"h-4 w-4 text-text-secondary"})}),jsxRuntime.jsx("input",{ref:I,type:"text",value:M,onChange:te=>ae(te.target.value),placeholder:c,autoFocus:true,className:Ut({isInvalid:false,isDisabled:false,isFocused:true,size:"md",className:"pl-10 pr-10"})}),M&&jsxRuntime.jsx(Ni,{onClick:()=>{V(""),a?.(null);},size:"md"})]})}),jsxRuntime.jsx("div",{className:"flex-1 overflow-auto",children:jsxRuntime.jsx(reactAriaComponents.ListBox,{"aria-label":e||c||"Suggestions",items:le,selectedKeys:o?[o]:[],selectionMode:"single",onSelectionChange:te=>{let ne=Array.from(te)[0];ne&&($(ne),Z(false));},className:"bg-background-input outline-none",children:te=>jsxRuntime.jsx(ar,{id:te.id,textValue:te.name,size:"md",className:"flex cursor-default items-center gap-2 px-4 py-3 text-text-primary outline-none data-[focused]:bg-background-hover data-[selected]:bg-background-selected data-[selected]:font-medium data-[focus-visible]:ring-0",children:y?y(te):te.name},te.id)})})]})})]})}function Eo({src:e,alt:t,firstName:r,lastName:o,fullName:n,onClick:a,size:i="md",shape:s="circle",variant:c="user",className:l,status:d,bordered:u=false,piiEntity:m}){let[p,f]=Ke.useState(false),g=Ke.useCallback(()=>f(true),[]);Ke.useEffect(()=>{f(false);},[e]);let h={xs:"h-6 w-6 text-xs",sm:"h-8 w-8 text-sm",md:"h-10 w-10 text-base",lg:"h-12 w-12 text-lg",xl:"h-16 w-16 text-xl"},b={xs:"h-1.5 w-1.5",sm:"h-2 w-2",md:"h-2.5 w-2.5",lg:"h-3 w-3",xl:"h-4 w-4"},y={xs:"bottom-0 right-0",sm:"bottom-0 right-0",md:"bottom-0 right-0",lg:"bottom-0.5 right-0.5",xl:"bottom-1 right-1"},x={online:"bg-feedback-success-background border-feedback-success-border",offline:"bg-text-secondary border-border-muted",away:"bg-feedback-warning-background border-feedback-warning-border",busy:"bg-feedback-error-background border-feedback-error-border"},v={user:"bg-feedback-info-background text-feedback-info-text",team:"bg-feedback-info-background text-feedback-info-text",organization:"bg-feedback-success-background text-feedback-success-text"},S=s==="circle"?"rounded-full":"rounded-md",w=tailwindMerge.twMerge("relative inline-flex items-center justify-center overflow-hidden transition-opacity outline-none",h[i],S,a&&"cursor-pointer hover:opacity-80",u&&"ring-2 ring-background-surface",l),P=(()=>{if(r||o){let R=r?.[0]||"",L=o?.[0]||"";return (R+L).toUpperCase()}if(n){let R=n.split(" "),L=R[0]?.[0]||"",M=R[R.length-1]?.[0]||"";return L===M?L.toUpperCase():(L+M).toUpperCase()}return ""})(),T=()=>{let R={xs:14,sm:16,md:20,lg:24,xl:32}[i];switch(c){case "team":return jsxRuntime.jsx(lucideReact.Users,{size:R});case "organization":return jsxRuntime.jsx(lucideReact.Building2,{size:R});default:return jsxRuntime.jsx(lucideReact.User,{size:R})}},E=R=>{if(m)return c==="organization"?R?"organization-logo":"initials":R?"avatar":"initials"},I=()=>e&&!p?jsxRuntime.jsx("img",{src:e,alt:t||n||"Avatar",className:"h-full w-full object-cover",onError:g,"data-pii-type":E(true),"data-pii-entity":m}):P?jsxRuntime.jsx("span",{className:"font-semibold","data-pii-type":E(false),"data-pii-entity":m,children:P}):T();return jsxRuntime.jsxs("div",{className:"relative inline-block",children:[jsxRuntime.jsx("div",{"data-avatar":true,className:tailwindMerge.twMerge(w,!e||p?v[c]:""),onClick:a,role:a?"button":void 0,tabIndex:a?0:void 0,children:I()}),d&&jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("absolute border-2 border-background-surface",S,b[i],y[i],x[d]),"aria-label":`Status: ${d}`})]})}var tN={default:"bg-feedback-info-background text-feedback-info-text",success:"bg-feedback-success-background text-feedback-success-text",error:"bg-feedback-error-background text-feedback-error-text",warning:"bg-feedback-warning-background text-feedback-warning-text",info:"bg-feedback-info-background text-feedback-info-text",primary:"bg-action-primary/10 text-action-primary border border-action-primary/20",brand:"bg-action-primary/10 text-action-primary border border-action-primary/20",secondary:"bg-action-secondary text-[color:var(--color-action-secondary-text)] border border-border-muted",neutral:"bg-background-muted text-text-secondary",charging:"bg-state-charging text-state-charging-text",discharging:"bg-state-discharging text-state-discharging-text",heat:"bg-state-heat text-state-heat-text",cool:"bg-state-cool text-state-cool-text",eco:"bg-state-eco text-state-eco-text",auto:"bg-state-auto text-state-auto-text",on:"bg-state-on text-state-on-text",off:"bg-state-off text-state-off-text",idle:"bg-state-idle text-state-idle-text",circulate:"bg-state-circulate text-state-circulate-text",unknown:"bg-state-unknown text-state-unknown-text",connected:"bg-feedback-success-background text-feedback-success-text",disconnected:"bg-feedback-error-background text-feedback-error-text",importing:"bg-state-importing text-state-importing-text",exporting:"bg-state-exporting text-state-exporting-text"},rN={xs:"px-1.5 py-0.5 text-xs",sm:"px-2.5 py-1.5 text-xs",md:"px-3.5 py-2 text-sm",lg:"px-4 py-2.5 text-base"},oN={pill:"rounded-full",rounded:"rounded-lg",square:"rounded-sm"},nN={xs:"w-1 h-1",sm:"w-1.5 h-1.5",md:"w-2 h-2",lg:"w-2.5 h-2.5"};function lt({children:e,variant:t="default",size:r="sm",shape:o="square",dot:n=false,dotPosition:a="left",dotPulse:i=false,title:s,className:c}){let l=n&&jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("rounded-full bg-current opacity-75",nN[r],i&&"animate-pulse"),"aria-hidden":"true"});return jsxRuntime.jsxs("span",{title:s,className:tailwindMerge.twMerge("inline-flex items-center gap-1.5 font-medium",rN[r],oN[o],tN[t],c),children:[n&&a==="left"&&l,e,n&&a==="right"&&l]})}var at=({href:e,children:t,className:r="",external:o=false,title:n,variant:a="secondary",onClick:i,asButton:s=false,onPress:c,showArrow:l=false,alwaysUnderlined:d=false,LinkComponent:u,"data-pii-type":m,"data-pii-entity":p})=>{let f={...m&&{"data-pii-type":m},...p&&{"data-pii-entity":p}},g=o?{target:"_blank",rel:"noopener noreferrer"}:{},v=`${`${d?"underline decoration-1 underline-offset-4 decoration-current":"hover:underline hover:decoration-1 hover:underline-offset-4 hover:decoration-current"} cursor-pointer`} ${{primary:"text-action-primary hover:text-action-primary-hover visited:text-action-primary",secondary:"text-text-link-default hover:text-text-link-hover visited:text-text-link-default",muted:"text-text-secondary hover:text-text-secondary visited:text-text-secondary",unstyled:""}[a==="brand"?"primary":a==="default"?"secondary":a]} ${r}`,S=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[t,l&&jsxRuntime.jsxs("span",{children:["\xA0","\u2192"]})]});return s?jsxRuntime.jsx("button",{type:"button",className:v,onClick:c,title:n,...f,children:S}):u&&e?jsxRuntime.jsx(u,{href:e,className:v,title:n,onClick:i,...g,...f,children:S}):jsxRuntime.jsx("a",{href:e||"#",className:v,...g,...f,title:n,onClick:i,children:S})};var fN={info:{subtle:{container:"bg-feedback-info-background border-l-4 border-l-feedback-info-border",iconColor:"text-feedback-info-border",titleColor:"text-text-primary",bodyColor:"text-text-primary"},bold:{container:"bg-feedback-info-border border-feedback-info-border",iconColor:"text-text-inverse",titleColor:"text-text-inverse",bodyColor:"text-text-inverse/90"},icon:lucideReact.Info},success:{subtle:{container:"bg-feedback-success-background border-l-4 border-l-feedback-success-border",iconColor:"text-feedback-success-border",titleColor:"text-text-primary",bodyColor:"text-text-primary"},bold:{container:"bg-feedback-success-border border-feedback-success-border",iconColor:"text-text-inverse",titleColor:"text-text-inverse",bodyColor:"text-text-inverse/90"},icon:lucideReact.CheckCircle},warning:{subtle:{container:"bg-feedback-warning-background border-l-4 border-l-feedback-warning-border",iconColor:"text-feedback-warning-border",titleColor:"text-text-primary",bodyColor:"text-text-primary"},bold:{container:"bg-feedback-warning-border border-feedback-warning-border",iconColor:"text-text-inverse",titleColor:"text-text-inverse",bodyColor:"text-text-inverse/90"},icon:lucideReact.AlertCircle},error:{subtle:{container:"bg-feedback-error-background border-l-4 border-l-feedback-error-border",iconColor:"text-feedback-error-border",titleColor:"text-text-primary",bodyColor:"text-text-primary"},bold:{container:"bg-feedback-error-border border-feedback-error-border",iconColor:"text-text-inverse",titleColor:"text-text-inverse",bodyColor:"text-text-inverse/90"},icon:lucideReact.XCircle},discovery:{subtle:{container:"bg-background-muted border-l-4 border-l-action-brand",iconColor:"text-action-brand",titleColor:"text-text-primary",bodyColor:"text-text-primary"},bold:{container:"bg-action-brand border-action-brand",iconColor:"text-text-inverse",titleColor:"text-text-inverse",bodyColor:"text-text-inverse/90"},icon:lucideReact.Lightbulb}};function _s({variant:e="info",appearance:t="subtle",title:r,children:o,dismissible:n=false,onDismiss:a,primaryAction:i,secondaryAction:s,icon:c,hideIcon:l=false,className:d,testId:u}){let m=fN[e],p=m[t],f=m.icon,g=!!(i||s),h=!!(r||o);return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex gap-3 rounded-sm border p-4",p.container,d),role:"region","aria-live":"polite","data-testid":u,children:[!l&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-shrink-0",p.iconColor),"aria-hidden":"true",children:c||jsxRuntime.jsx(f,{className:"h-5 w-5"})}),jsxRuntime.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-3",children:[h&&jsxRuntime.jsxs("div",{className:"flex-1",children:[r&&jsxRuntime.jsx("div",{className:er(yt("headingSm"),p.titleColor),children:r}),o&&jsxRuntime.jsx("div",{className:er(yt("bodySm"),r?"mt-1":"",p.bodyColor),children:o})]}),g&&jsxRuntime.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[i&&(i.asLink?jsxRuntime.jsx(at,{asButton:true,onPress:i.onPress,variant:t==="bold"?"unstyled":"default",className:t==="bold"?"text-text-inverse hover:text-text-inverse/80":"",children:i.label}):jsxRuntime.jsx(_,{size:"sm",variant:"primary",onPress:i.onPress,className:t==="bold"?"bg-background-surface text-text-primary hover:bg-background-surface/90":"",children:i.label})),s&&(s.asLink?jsxRuntime.jsx(at,{asButton:true,onPress:s.onPress,variant:t==="bold"?"unstyled":"default",className:t==="bold"?"text-text-inverse hover:text-text-inverse/80":"",children:s.label}):jsxRuntime.jsx(_,{size:"sm",variant:"secondary",onPress:s.onPress,className:t==="bold"?"border-text-inverse/30 text-text-inverse hover:bg-text-inverse/10":"",children:s.label}))]})]}),n&&jsxRuntime.jsx("button",{type:"button",onClick:a,className:tailwindMerge.twMerge("flex h-8 w-8 flex-shrink-0 items-center justify-center self-start rounded-md transition-colors hover:bg-background-modal/10",p.iconColor,Ze()),"aria-label":"Dismiss banner",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"})})]})}function hg({isOpen:e=true,position:t="sticky",className:r,...o}){let n=t==="fixed"?"fixed top-0 left-0 right-0 z-50":"sticky top-0 z-50",a=r?`${r} !rounded-none`:"!rounded-none";return jsxRuntime.jsx(framerMotion.AnimatePresence,{children:e&&jsxRuntime.jsx(framerMotion.motion.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2,ease:"easeInOut"},className:n,children:jsxRuntime.jsx(_s,{...o,className:a})})})}function Da(){let[e,t]=Ke.useState({width:0,height:0}),r=Ke.useRef(null),o=Ke.useRef(void 0),n=Ke.useCallback(a=>{if(r.current&&(r.current.disconnect(),r.current=null),o.current&&(cancelAnimationFrame(o.current),o.current=void 0),!a){t({width:0,height:0});return}let i=a.getBoundingClientRect();t({width:i.width,height:i.height}),r.current=new ResizeObserver(s=>{o.current&&cancelAnimationFrame(o.current),o.current=requestAnimationFrame(c=>{for(let l of s){let{width:d,height:u}=l.contentRect;t(m=>m.width!==d||m.height!==u?{width:d,height:u}:m);}});}),r.current.observe(a);},[]);return Ke.useEffect(()=>()=>{o.current&&cancelAnimationFrame(o.current),r.current&&r.current.disconnect();},[]),{ref:n,width:e.width,height:e.height}}function Qo({value:e,children:t,className:r,size:o="sm",iconPosition:n="right"}){let[a,i]=Ke.useState(false),l=jsxRuntime.jsx(_,{variant:"icon",size:o,onPress:()=>{let u=e||(typeof t=="string"?t:"");navigator.clipboard.writeText(u),i(true),setTimeout(()=>{i(false);},2e3);},className:"!px-2 relative",style:{top:"0.5px"},children:jsxRuntime.jsx(F,{name:"Copy",size:o==="sm"?14:16})}),d=a?jsxRuntime.jsx(nr,{content:"Copied!",children:l}):l;return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("inline-flex items-center gap-0.5",r),children:[n==="left"&&d,t,n==="right"&&d]})}function $s(e){let{children:t,maxWidth:r=600,className:o,...n}=e,{ref:a,width:i}=Da(),[s,c]=Ke__namespace.default.useState(false),[l,d]=Ke__namespace.default.useState(false),u=Ke__namespace.default.useRef(false),m=Ke__namespace.default.useMemo(()=>t&&!e.items&&typeof t!="function"?Ke__namespace.default.Children.toArray(t):null,[t,e.items]);if(Ke__namespace.default.useEffect(()=>{m&&m.length>=4&&i>0&&!u.current?(u.current=true,c(i>r),d(true)):(!m||m&&m.length<4)&&d(true);let p=setTimeout(()=>{l||d(true);},100);return ()=>clearTimeout(p)},[i,r,m,l]),m&&s&&m.length>=4){let p=m[0],f=m.slice(1,-2),g=m.slice(-2),h=f.map(b=>{if(Ke__namespace.default.isValidElement(b)){let y=b.props;if(typeof y.children=="string")return {label:y.children,href:y.href}}return {label:"..."}});return jsxRuntime.jsxs(reactAriaComponents.Breadcrumbs,{...n,ref:a,className:tailwindMerge.twMerge("flex gap-2",l?"opacity-100":"opacity-0",o),children:[p,jsxRuntime.jsx(wN,{items:h}),g]})}return jsxRuntime.jsx(reactAriaComponents.Breadcrumbs,{...n,ref:a,className:tailwindMerge.twMerge("flex gap-2",l?"opacity-100":"opacity-0",o),children:t})}function wN({items:e}){let t=e.map((r,o)=>({id:`breadcrumb-${o}`,name:r.label,href:r.href}));return jsxRuntime.jsx(reactAriaComponents.Breadcrumb,{className:"flex items-center gap-2",children:jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(Ra,{items:t,align:"left",size:"sm",children:jsxRuntime.jsx(_,{variant:"icon",size:"sm",icon:"DotsThree","aria-label":"Show hidden breadcrumbs",className:"px-0.5"})}),jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4 text-text-secondary"})]})})}function el(e){let{className:t,children:r,href:o,copyable:n,copyValue:a,...i}=e;return jsxRuntime.jsx(reactAriaComponents.Breadcrumb,{className:ke(t,"flex items-center gap-2"),...i,children:s=>{let c=s.isCurrent,l=typeof r=="function"?r(s):r;return jsxRuntime.jsx(jsxRuntime.Fragment,{children:c?n?jsxRuntime.jsx(Qo,{value:a||(typeof l=="string"?l:void 0),size:"sm",iconPosition:"right",children:jsxRuntime.jsx("span",{className:"max-w-[200px] truncate font-semibold text-text-primary sm:max-w-none",children:l})}):jsxRuntime.jsx("span",{className:"max-w-[200px] truncate font-semibold text-text-primary sm:max-w-none",children:l}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(at,{variant:"muted",href:o,className:"max-w-[150px] truncate sm:max-w-[300px] md:max-w-none",children:l}),jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4 shrink-0 text-text-secondary"})]})})}})}function AN({isSelected:e,isDisabled:t}){let r=[Ze,"w-9 h-9 text-sm cursor-default rounded-sm flex items-center justify-center forced-color-adjust-none font-semibold"];return t?r.push("text-text-disabled forced-colors:text-[GrayText]"):e?r.push("bg-action-default text-text-inverse invalid:bg-feedback-error-border forced-colors:bg-[Highlight] forced-colors:invalid:bg-[Mark] forced-colors:text-[HighlightText]"):r.push("text-text-primary hover:bg-background-hover pressed:bg-background-selected"),r.join(" ")}function Aa({errorMessage:e,...t}){return jsxRuntime.jsxs(reactAriaComponents.Calendar,{...t,children:[jsxRuntime.jsx(tl,{}),jsxRuntime.jsxs(reactAriaComponents.CalendarGrid,{className:"border-separate [border-spacing:0] [&_td]:p-0 [&_td]:!border-0",children:[jsxRuntime.jsx(rl,{}),jsxRuntime.jsx(reactAriaComponents.CalendarGridBody,{children:r=>jsxRuntime.jsx(reactAriaComponents.CalendarCell,{date:r,className:({isSelected:o,isDisabled:n})=>`${AN({isSelected:o,isDisabled:n})} border-0`})})]}),e&&jsxRuntime.jsx(reactAriaComponents.Text,{slot:"errorMessage",className:"text-sm text-feedback-error-text",children:e})]})}function tl(){let{direction:e}=reactAriaComponents.useLocale(),t=18;return jsxRuntime.jsxs("header",{className:"flex w-full items-center gap-1 px-1 pb-4",children:[jsxRuntime.jsx(_,{variant:"icon",slot:"previous",className:"pl-0",children:e==="rtl"?jsxRuntime.jsx(F,{name:"CaretRight","aria-hidden":true,size:t}):jsxRuntime.jsx(F,{name:"CaretLeft","aria-hidden":true,size:t})}),jsxRuntime.jsx(reactAriaComponents.Heading,{className:"text-md mx-2 flex-1 text-center font-semibold text-text-primary"}),jsxRuntime.jsx(_,{variant:"icon",slot:"next",className:"pr-0",children:e==="rtl"?jsxRuntime.jsx(F,{name:"CaretLeft","aria-hidden":true,size:t}):jsxRuntime.jsx(F,{name:"CaretRight","aria-hidden":true,size:t})})]})}function rl(){return jsxRuntime.jsx(reactAriaComponents.CalendarGridHeader,{children:e=>jsxRuntime.jsx(reactAriaComponents.CalendarHeaderCell,{className:"text-xs font-semibold text-text-secondary",children:e})})}var kg=Ke__namespace.createContext(null);function Zo(){let e=Ke__namespace.useContext(kg);if(!e)throw new Error("Carousel components must be used within a CarouselRoot");return e}function Tg({page:e,defaultPage:t=0,onPageChange:r,orientation:o="horizontal",loop:n=false,autoplay:a=false,autoplayDelay:i=4e3,allowMouseDrag:s=false,spacing:c="1rem",slidesPerView:l=1,slidesPerMove:d=1,className:u,children:m,...p}){let f=e!==void 0,[g,h]=Ke__namespace.useState(t),b=f?e:g,y=Ke__namespace.useRef(null),[x,v]=Ke__namespace.useState(0),[S,w]=Ke__namespace.useState(typeof a=="boolean"?a:!!a),[k,P]=Ke__namespace.useState(false),T=Ke__namespace.useRef(null),E=Ke__namespace.useRef(null),I=typeof a=="object"&&a!==null&&a.delay?a.delay:i;Ke__namespace.useEffect(()=>{if(y.current){let C=Math.max(1,Math.floor(Number(l)||1)),D=y.current.children;if(D.length===0){v(0);return}let B=Math.ceil(D.length/C);v(B);}},[m,l]);let R=Ke__namespace.useRef(-1);Ke__namespace.useEffect(()=>{if(b!==R.current&&y.current){let C=Array.from(y.current.children);if(C.length===0)return;let D=b*l,B=Math.min(D,C.length-1),X=C[B];X&&typeof X.scrollIntoView=="function"&&(X.scrollIntoView({behavior:"smooth",block:o==="vertical"?"start":"nearest",inline:o==="horizontal"?"start":"nearest"}),R.current=b);}},[b,l,o]);let L=Ke__namespace.useCallback(C=>{let D=C;n?D<0?D=x-1:D>=x&&(D=0):D=Math.max(0,Math.min(C,x-1)),f||h(D),r?.(D);},[f,n,r,x]),M=Ke__namespace.useCallback(()=>{L(b+d);},[b,L,d]),V=Ke__namespace.useCallback(()=>{L(b-d);},[b,L,d]),z=Ke__namespace.useRef(M);Ke__namespace.useEffect(()=>{z.current=M;},[M]);let U=x>0&&(n||b<x-1),Q=x>0&&(n||b>0),Z=Ke__namespace.useCallback(()=>{w(C=>!C);},[]);Ke__namespace.useEffect(()=>{if(S&&x>1)return T.current=setInterval(()=>{z.current();},I),()=>{T.current&&(clearInterval(T.current),T.current=null);}},[S,x,I]);let H=Ke__namespace.useCallback(()=>{T.current&&(clearInterval(T.current),T.current=null);},[]),j=Ke__namespace.useCallback(()=>{S&&x>1&&(T.current=setInterval(()=>{z.current();},I));},[S,x,I]),G=Ke__namespace.useCallback(C=>{if(!s)return;P(true);let D="touches"in C&&C.touches&&C.touches.length>0?C.touches[0].clientX:"clientX"in C?C.clientX:0,B="touches"in C&&C.touches&&C.touches.length>0?C.touches[0].clientY:"clientY"in C?C.clientY:0;E.current={x:D,y:B};},[s]),A=Ke__namespace.useCallback(C=>{if(!k||!E.current)return;let D="touches"in C&&C.touches&&C.touches.length>0?C.touches[0].clientX:"clientX"in C?C.clientX:0,B="touches"in C&&C.touches&&C.touches.length>0?C.touches[0].clientY:"clientY"in C?C.clientY:0,X=D-E.current.x,ee=B-E.current.y,le=50;o==="horizontal"&&Math.abs(X)>le?(X>0?V():M(),P(false),E.current=null):o==="vertical"&&Math.abs(ee)>le&&(ee>0?V():M(),P(false),E.current=null);},[k,o,M,V]),W=Ke__namespace.useCallback(()=>{P(false),E.current=null;},[]),N={currentPage:b,totalPages:x,orientation:o,loop:n,spacing:c,slidesPerView:l,goToPage:L,goToNext:M,goToPrev:V,canGoNext:U,canGoPrev:Q,isAutoplayActive:S,toggleAutoplay:Z,itemsRef:y,isDragging:k,allowMouseDrag:s,handleDragStart:G,handleDragMove:A,handleDragEnd:W};return jsxRuntime.jsx(kg.Provider,{value:N,children:jsxRuntime.jsx("div",{...p,className:tailwindMerge.twMerge("relative w-full",o==="vertical"?"h-full":"",u),onMouseEnter:H,onMouseLeave:j,children:m})})}function Pg({className:e,children:t,...r}){let{itemsRef:o,orientation:n,spacing:a,isDragging:i,allowMouseDrag:s,handleDragStart:c,handleDragMove:l,handleDragEnd:d}=Zo();return jsxRuntime.jsx("div",{ref:o,...r,className:tailwindMerge.twMerge("flex overflow-x-auto overflow-y-hidden snap-x snap-mandatory scrollbar-hide scroll-smooth",n==="vertical"&&"flex-col overflow-y-auto overflow-x-hidden snap-y",s&&i&&"cursor-grabbing select-none",s&&!i&&"cursor-grab",e),style:{gap:a,"--carousel-spacing":a,...r.style},onMouseDown:c,onMouseMove:l,onMouseUp:d,onMouseLeave:d,onTouchStart:c,onTouchMove:l,onTouchEnd:d,children:t})}function Rg({index:e,className:t,children:r,...o}){let{orientation:n,slidesPerView:a}=Zo();return jsxRuntime.jsx("div",{...o,"data-index":e,className:tailwindMerge.twMerge("shrink-0 snap-start",n==="horizontal"?"h-full":"w-full",t),style:{width:n==="horizontal"?`calc((100% - (${a-1} * var(--carousel-spacing, 1rem))) / ${a})`:void 0,height:n==="vertical"?`calc((100% - (${a-1} * var(--carousel-spacing, 1rem))) / ${a})`:void 0,...o.style},children:r})}function Eg({className:e,children:t,...r}){return jsxRuntime.jsx("div",{...r,className:tailwindMerge.twMerge("flex items-center justify-center gap-4 mt-4",e),children:t})}function Mg({className:e,children:t,...r}){let{goToPrev:o,canGoPrev:n}=Zo();return jsxRuntime.jsx("button",{type:"button",...r,onClick:a=>{o(),r.onClick?.(a);},disabled:!n||r.disabled,"aria-label":"Previous slide",className:tailwindMerge.twMerge("inline-flex items-center justify-center rounded-md","h-10 w-10","bg-background-input border border-border-input","text-text-primary hover:bg-background-muted","transition-colors duration-200","disabled:opacity-40 disabled:cursor-not-allowed","focus-visible:outline focus-visible:outline-2 focus-visible:outline-action-default",e),children:t||jsxRuntime.jsx(F,{name:"CaretLeft",size:"sm"})})}function Lg({className:e,children:t,...r}){let{goToNext:o,canGoNext:n}=Zo();return jsxRuntime.jsx("button",{type:"button",...r,onClick:a=>{o(),r.onClick?.(a);},disabled:!n||r.disabled,"aria-label":"Next slide",className:tailwindMerge.twMerge("inline-flex items-center justify-center rounded-md","h-10 w-10","bg-background-input border border-border-input","text-text-primary hover:bg-background-muted","transition-colors duration-200","disabled:opacity-40 disabled:cursor-not-allowed","focus-visible:outline focus-visible:outline-2 focus-visible:outline-action-default",e),children:t||jsxRuntime.jsx(F,{name:"CaretRight",size:"sm"})})}function bu({index:e,className:t,children:r,...o}){let{currentPage:n,goToPage:a}=Zo(),i=n===e;return jsxRuntime.jsx("button",{type:"button",...o,onClick:s=>{a(e),o.onClick?.(s);},"aria-label":`Go to slide ${e+1}`,"aria-current":i,className:tailwindMerge.twMerge("h-2 rounded-full transition-all duration-200",i?"w-6 bg-action-brand":"w-2 bg-border-muted hover:bg-border-input","focus-visible:outline focus-visible:outline-2 focus-visible:outline-action-default",t),children:r})}function Dg({className:e,...t}){let{totalPages:r}=Zo();return jsxRuntime.jsx("div",{...t,className:tailwindMerge.twMerge("flex items-center gap-2",e),role:"group","aria-label":"Carousel indicators",children:Array.from({length:r},(o,n)=>jsxRuntime.jsx(bu,{index:n},n))})}function Ag({className:e,children:t,...r}){let{isAutoplayActive:o,toggleAutoplay:n}=Zo();return jsxRuntime.jsx("button",{type:"button",...r,onClick:a=>{n(),r.onClick?.(a);},"aria-label":o?"Pause autoplay":"Start autoplay",className:tailwindMerge.twMerge("inline-flex items-center justify-center rounded-md","h-10 w-10","bg-background-input border border-border-input","text-text-primary hover:bg-background-muted","transition-colors duration-200","focus-visible:outline focus-visible:outline-2 focus-visible:outline-action-default",e),children:t||jsxRuntime.jsx(F,{name:o?"Pause":"Play",size:"sm"})})}function Ig({className:e,...t}){let{currentPage:r,totalPages:o}=Zo();return jsxRuntime.jsxs("div",{...t,className:tailwindMerge.twMerge("text-sm text-text-secondary tabular-nums",e),"aria-live":"polite","aria-atomic":"true",children:[r+1," / ",o]})}var HN="focus:ring-action-primary",GN="bg-action-primary border-action-primary text-[color:var(--color-action-primary-text)] hover:bg-action-primary-hover hover:border-action-primary-hover";function xu(e){return jsxRuntime.jsxs(reactAriaComponents.CheckboxGroup,{...e,className:ke(e.className,"flex flex-col gap-2"),children:[jsxRuntime.jsx(Ue,{children:e.label}),e.children,e.description&&jsxRuntime.jsx(Te,{children:e.description}),jsxRuntime.jsx(fe,{children:typeof e.errorMessage=="function"?void 0:e.errorMessage})]})}function WN({isDisabled:e}){return `relative flex gap-2 items-center group text-sm transition ${e?"text-text-disabled":"text-text-secondary"}`}function UN({isSelected:e,isInvalid:t,isDisabled:r,isIndeterminate:o}){let n="w-5 h-5 flex-shrink-0 rounded-[var(--control-border-radius)] flex items-center justify-center border-2 transition ring-offset-2 focus:ring-2",a=HN,i="";return r?i="border-border-muted bg-background-muted":t?i="border-feedback-error-border bg-feedback-error-background":e||o?i=GN:i="bg-background-input border-border-input hover:border-border-focus",`${n} ${a} ${i}`}var Fg="w-4 h-4 text-current group-disabled:text-text-disabled";function Mo(e){let{children:t,variant:r,...o}=e;return jsxRuntime.jsx(reactAriaComponents.Checkbox,{...o,className:reactAriaComponents.composeRenderProps(e.className,(n,a)=>`${WN(a)} ${n||""}`),children:n=>{let{isSelected:a,isIndeterminate:i,...s}=n,c=jsxRuntime.jsx("div",{className:UN({isSelected:a,isIndeterminate:i,...s}),children:i?jsxRuntime.jsx(lucideReact.Minus,{"aria-hidden":true,className:Fg}):a?jsxRuntime.jsx(lucideReact.Check,{"aria-hidden":true,className:Fg}):null});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[c,typeof t=="function"?t(n):t]})}})}var JN={primary:"bg-action-primary/10 text-action-primary border border-action-primary/20 hover:bg-action-primary/15",secondary:"bg-action-secondary text-[color:var(--color-action-secondary-text)] border border-border-muted hover:bg-action-secondary-hover",info:"bg-feedback-info-background text-feedback-info-text border border-feedback-info-border hover:bg-feedback-info-background/80"};function Vg(e){return !e||e==="default"?"secondary":e==="brand"?"primary":e}var XN={xs:"px-1.5 py-[2px] gap-0.5",sm:"px-2 py-1 gap-1",md:"px-3 py-1.5 gap-1.5",lg:"px-3 py-2 gap-2",xl:"px-4 py-2.5 gap-2"},jN="opacity-75 cursor-not-allowed pointer-events-none";function zg(e){let{variant:t,size:r,isDisabled:o,isClickable:n,className:a}=e,i=r==="xs"?"text-xs":Ye[r].text;return tailwindMerge.twMerge("inline-flex items-center justify-center rounded-full font-medium transition-colors","whitespace-nowrap select-none",XN[r],i,JN[t],n&&!o&&"cursor-pointer",o&&jN,a)}function uo({children:e,onRemove:t,removeLabel:r="Remove",size:o="md",variant:n="secondary",isRemovable:a=true,isDisabled:i=false,className:s,onClick:c}){let l=!!c&&!i,d=a&&t&&!i,u=h=>{h.stopPropagation(),h.preventDefault(),t&&!i&&t();},m=()=>{c&&!i&&c();},p=o==="xs"?10:o==="sm"?12:o==="md"?14:16,g=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("span",{className:"truncate",children:e}),d?l?jsxRuntime.jsx("span",{onClick:u,onKeyDown:h=>{(h.key==="Enter"||h.key===" ")&&(h.preventDefault(),u(h));},role:"button",tabIndex:0,className:"flex-shrink-0 rounded-full p-0.5 hover:bg-text-primary/10 transition-colors cursor-pointer","aria-label":r,title:r,children:jsxRuntime.jsx(F,{name:"X",size:p,className:"text-current opacity-70 hover:opacity-100"})}):jsxRuntime.jsx("button",{type:"button",onClick:u,className:"flex-shrink-0 rounded-full p-0.5 hover:bg-text-primary/10 transition-colors cursor-pointer","aria-label":r,title:r,tabIndex:-1,children:jsxRuntime.jsx(F,{name:"X",size:p,className:"text-current opacity-70 hover:opacity-100"})}):null]});return l?jsxRuntime.jsx("button",{type:"button",onClick:m,className:zg({variant:Vg(n),size:o,isDisabled:i,isClickable:l,className:s}),disabled:i,children:g}):jsxRuntime.jsx("span",{className:zg({variant:Vg(n),size:o,isDisabled:i,isClickable:l,className:s}),children:g})}function Gg({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a=false,isDisabled:i=false,isInvalid:s=false,validationResult:c,placeholder:l="Add items...",selectedItems:d=[],onItemsChange:u,staticItems:m,fetchSuggestions:p,chipVariant:f="secondary",showErrors:g=true,className:h}){let[b,y]=Ke.useState(""),[x,v]=Ke.useState([]),[S,w]=Ke.useState(false),[k,P]=Ke.useState(false),[T,E]=Ke.useState(-1),I=jo(b,300),R=Ke.useRef(null),L=Ke.useRef(null),{isFocused:M,handleFocus:V,handleBlur:z}=Dr(),U=Ke.useId(),Q=Ke.useCallback(N=>{if(!u||!N.trim())return;let C=N.trim();if(d.includes(C)){y(""),P(false),v([]),E(-1);return}u([...d,C]),y(""),P(false),v([]),E(-1),R.current?.focus();},[d,u]),Z=Ke.useCallback(N=>{u&&u(d.filter(C=>C!==N));},[d,u]);Ke.useEffect(()=>{if(!p)return;let N=true;return (async()=>{let D=I.trim();if(!D){N&&(w(false),v([]),P(false));return}w(true);try{let B=await p(D);if(!N)return;v(B),P(!0);}catch(B){if(!N)return;console.error("Error fetching suggestions:",B),v([]),P(false);}finally{N&&w(false);}})(),()=>{N=false;}},[I,p]),Ke.useEffect(()=>{if(p||!m)return;if(!I.trim()){v([]),P(false);return}let N=m.filter(C=>C.name.toLowerCase().includes(I.toLowerCase())).map(C=>C.id);v(N),P(N.length>0||I.trim().length>0);},[I,m,p]);let H=Ke.useMemo(()=>{let N=x.filter(C=>!d.includes(C));return b.trim()&&!N.includes(b.trim())&&!d.includes(b.trim())?[...N,`Create tag: "${b.trim()}"`]:N},[x,b,d]),j=Ke.useCallback(N=>{y(N.target.value),E(-1),N.target.value&&P(true);},[]),G=Ke.useCallback(N=>{i||(N.startsWith("Create tag:")?Q(b):Q(N));},[Q,b,i]),A=Ke.useCallback(N=>{if(!i)switch(N.key){case "Enter":case ",":if(N.preventDefault(),T>=0&&T<H.length){let C=H[T];C.startsWith("Create tag:")?Q(b):Q(C);}else b.trim()&&Q(b.trim());break;case "Backspace":!b&&d.length>0&&(N.preventDefault(),Z(d[d.length-1]));break;case "ArrowDown":N.preventDefault(),k&&E(C=>C<H.length-1?C+1:C);break;case "ArrowUp":N.preventDefault(),k&&E(C=>C>0?C-1:-1);break;case "Escape":P(false),E(-1);break}},[i,b,d,H,T,k,Q,Z]);Ke.useEffect(()=>{let N=C=>{L.current&&C.target instanceof Node&&!L.current.contains(C.target)&&P(false);};return document.addEventListener("mousedown",N),()=>document.removeEventListener("mousedown",N)},[]);let W=()=>tailwindMerge.twMerge("flex items-center gap-1.5 rounded-md overflow-x-auto overflow-y-hidden","[&::-webkit-scrollbar]:hidden [-ms-overflow-style:none] [scrollbar-width:none]",qo({isInvalid:s,isDisabled:i,isFocused:M}),"bg-background-input",o==="sm"&&"px-2 py-1 h-[32px]",o==="md"&&"px-2.5 py-1.5 h-[40px]",o==="lg"&&"px-3 py-2 h-[44px]",o==="xl"&&"px-3.5 py-2.5 h-[48px]",i&&"opacity-50 cursor-not-allowed bg-background-muted");return jsxRuntime.jsxs("div",{ref:L,className:tailwindMerge.twMerge("relative flex flex-col gap-1",h),children:[e&&jsxRuntime.jsx(Ue,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(wt,{children:jsxRuntime.jsxs("div",{className:W(),onClick:()=>!i&&R.current?.focus(),children:[d.map(N=>jsxRuntime.jsx(uo,{variant:f,size:"xs",onRemove:()=>Z(N),isDisabled:i,className:"shrink-0 max-h-full",children:N},N)),jsxRuntime.jsx("input",{ref:R,type:"text",role:"combobox","aria-expanded":k,"aria-haspopup":"listbox","aria-controls":U,"aria-autocomplete":"list",value:b,onChange:j,onKeyDown:A,onFocus:N=>V(N),onBlur:N=>z(N),placeholder:d.length===0?l:"",disabled:i,className:"flex-1 min-w-[120px] h-full !border-0 !outline-none !ring-0 bg-transparent text-text-primary text-sm placeholder:text-text-disabled disabled:cursor-not-allowed focus:!ring-0 focus:!outline-none focus:!border-0 focus-visible:!ring-0 focus-visible:!outline-none focus-visible:!border-0",style:{boxShadow:"none",WebkitAppearance:"none",appearance:"none",border:"none",outline:"none"}})]})}),k&&(b||H.length>0)&&jsxRuntime.jsx("div",{id:U,role:"listbox",className:tailwindMerge.twMerge("absolute z-50 mt-1 rounded-lg border border-border-default","max-h-60 overflow-auto bg-background-surface shadow-lg","left-0 right-0 top-full"),children:S?jsxRuntime.jsx("div",{className:"px-3 py-2 text-sm text-text-secondary",children:"Loading..."}):H.length>0?H.map((N,C)=>jsxRuntime.jsx("div",{role:"option","aria-selected":C===T,className:tailwindMerge.twMerge("cursor-pointer px-3 py-2 text-sm transition-colors","hover:bg-background-hover",C===T&&"bg-background-selected",N.startsWith("Create tag:")&&"italic text-text-secondary"),onClick:()=>G(N),children:N},N)):b&&jsxRuntime.jsx("div",{className:"px-3 py-2 text-sm text-text-secondary",children:"No suggestions found"})}),t&&jsxRuntime.jsx(Te,{size:o,className:"mt-1",children:t}),g&&typeof r=="string"&&jsxRuntime.jsx(fe,{size:o,className:"text-feedback-error-text mt-1",children:r}),g&&typeof r=="function"&&c&&jsxRuntime.jsx(fe,{size:o,className:"text-feedback-error-text mt-1",children:r(c)})]})}var nk={json:()=>import('ace-builds/src-noconflict/mode-json'),javascript:()=>import('ace-builds/src-noconflict/mode-javascript'),typescript:()=>import('ace-builds/src-noconflict/mode-typescript'),html:()=>import('ace-builds/src-noconflict/mode-html'),css:()=>import('ace-builds/src-noconflict/mode-css'),markdown:()=>import('ace-builds/src-noconflict/mode-markdown'),yaml:()=>import('ace-builds/src-noconflict/mode-yaml'),xml:()=>import('ace-builds/src-noconflict/mode-xml'),python:()=>import('ace-builds/src-noconflict/mode-python'),sql:()=>import('ace-builds/src-noconflict/mode-sql')},ak={github:()=>import('ace-builds/src-noconflict/theme-github'),github_dark:()=>import('ace-builds/src-noconflict/theme-github_dark')},ik={"ext-language-tools":()=>import('ace-builds/src-noconflict/ext-language_tools')},Ri=new Set;async function yu(e,t){Ri.has(e)||(await t(),Ri.add(e));}async function sk(e,t,r){await Promise.all([yu(`language:${e}`,nk[e]),yu(`theme:${t}`,ak[t]),r?yu("extension:language-tools",ik["ext-language-tools"]):void 0]);}function Ug(e,t,r){let o=Ri.has(`language:${e}`)&&Ri.has(`theme:${t}`);return r?o&&Ri.has("extension:language-tools"):o}function Kg({value:e,readOnly:t=false,onChange:r,language:o="json",theme:n="github_dark",height:a,width:i="100%",className:s,lineHeight:c=19,minLines:l=3,maxLines:d=50,showLineNumbers:u=true,showGutter:m=true,fontSize:p=14,wrapEnabled:f=false}){let g=Ke.useRef(null),[h,b]=Ke.useState(()=>Ug(o,n,!t)),y=Ke.useMemo(()=>{if(a)return a;let x=(e.match(/\n/g)||[]).length+1;return `${Math.max(l,Math.min(x,d))*c+10}px`},[e,a,c,l,d]);return Ke.useEffect(()=>{let x=false,v=!t;return Ug(o,n,v)?(b(true),()=>{x=true;}):(b(false),sk(o,n,v).then(()=>{x||b(true);}).catch(S=>{x||b(true),console.error("Failed to load Ace editor resources",S);}),()=>{x=true;})},[o,t,n]),Ke.useEffect(()=>{h&&g.current?.editor&&g.current.editor.resize();},[y,h]),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-hidden rounded-md border border-border-input",s),style:{width:i,height:y},children:h?jsxRuntime.jsx(rk__default.default,{ref:g,mode:o,theme:n,value:e,onChange:r,readOnly:t,width:"100%",height:"100%",fontSize:p,showPrintMargin:false,showGutter:m,highlightActiveLine:!t,setOptions:{useWorker:true,showLineNumbers:u,tabSize:2,enableBasicAutocompletion:!t,enableLiveAutocompletion:!t,enableSnippets:!t,showFoldWidgets:true,wrap:f},editorProps:{$blockScrolling:true}}):jsxRuntime.jsx("div",{className:"flex h-full w-full items-center justify-center bg-surface-muted text-foreground-muted",children:"Loading editor\u2026"})})}var Jg=Ke__namespace.createContext({variant:"contained",density:"comfortable",showDividers:true}),Xg=Ke__namespace.createContext(null),pk={contained:"rounded-lg border border-border-default bg-background-surface overflow-hidden",bordered:"rounded-lg border border-border-default bg-background-surface",plain:"bg-transparent"},Yg={true:"divide-y divide-border-default",false:"gap-3"},mk={comfortable:"px-5 py-3",compact:"px-4 py-2.5"},fk={comfortable:"px-5 pt-0",compact:"px-4 pt-0"},gk={comfortable:"h-4 w-4",compact:"h-3.5 w-3.5"};function wu(){return Ke__namespace.useContext(Jg)}function bk(e){let t=Ke__namespace.useContext(Xg);if(!t)throw new Error(`${e} must be used within a <CollapseItem>`);return t}function xk({variant:e,showDividers:t,className:r}){let o="group/collapse-item w-full transition-colors",n={contained:"bg-background-surface",bordered:"bg-background-surface",plain:"bg-transparent"},a=t?"":"rounded-lg border border-border-default bg-background-surface overflow-hidden";return tailwindMerge.twMerge(o,n[e],a,r)}function hk({isDisabled:e,isPressed:t,density:r,variant:o,showDividers:n,className:a}){let i="group/collapse-header flex w-full items-start gap-4 text-left transition-colors duration-150",s=e?"cursor-not-allowed text-text-disabled":"cursor-pointer text-text-primary",c=t&&!e?"bg-background-hover":"",l=mk[r];return tailwindMerge.twMerge(i,Ze(),l,s,c,o==="plain"&&n?"px-0":"",a)}function yk({density:e,showDividers:t,className:r}){let o="text-text-primary",n=fk[e];return tailwindMerge.twMerge(o,n,t?"":"rounded-b-lg",r)}function Ia({variant:e="contained",density:t="comfortable",showDividers:r=true,className:o,...n}){let a=Ke__namespace.useMemo(()=>({variant:e,density:t,showDividers:r}),[e,t,r]),i=tailwindMerge.twMerge("flex w-full flex-col",pk[e],r?Yg.true:Yg.false,e==="plain"&&r?"border-y border-border-default/60":"");return jsxRuntime.jsx(Jg.Provider,{value:a,children:jsxRuntime.jsx(reactAriaComponents.DisclosureGroup,{...n,className:ke(o,i)})})}function $o({className:e,children:t,...r}){let{variant:o,showDividers:n}=wu();return jsxRuntime.jsx(reactAriaComponents.Disclosure,{...r,className:reactAriaComponents.composeRenderProps(e,a=>xk({variant:o,showDividers:n,className:a})),children:a=>jsxRuntime.jsx(Xg.Provider,{value:a,children:t})})}$o.displayName="CollapseItem";function en({title:e,description:t,startContent:r,endContent:o,indicator:n,indicatorPosition:a="end",showIndicator:i=true,keepIndicatorSpace:s=false,children:c,className:l,...d}){let u=bk("CollapseHeader"),{density:m,variant:p,showDividers:f}=wu(),g=gk[m];return jsxRuntime.jsx(reactAriaComponents.Button,{...d,slot:"trigger","data-expanded":u.isExpanded?"true":void 0,className:reactAriaComponents.composeRenderProps(l,(h,b)=>hk({isDisabled:b.isDisabled??false,isPressed:b.isPressed??false,density:m,variant:p,showDividers:f,className:h})),children:h=>{let b=h.isDisabled??false,y=i?typeof n=="function"?n({isExpanded:u.isExpanded,isDisabled:b}):n??jsxRuntime.jsx(F,{name:"CaretDown",size:m==="compact"?"xs":"sm",weight:"bold","aria-hidden":"true",className:tailwindMerge.twMerge("text-text-secondary transition-transform duration-200",u.isExpanded?"rotate-180":"rotate-0")}):null,x=y?jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("flex flex-shrink-0 items-center justify-center text-text-secondary",g),"aria-hidden":"true",children:y}):s?jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("flex flex-shrink-0 items-center justify-center",g),"aria-hidden":"true"}):null;return jsxRuntime.jsxs("div",{className:"flex w-full items-center gap-4",children:[a==="start"&&x,r&&jsxRuntime.jsx("div",{className:"flex flex-shrink-0 items-center text-text-secondary",children:r}),jsxRuntime.jsxs("div",{className:"flex min-w-0 flex-1 items-start gap-3",children:[c??jsxRuntime.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-1 text-left",children:[e&&jsxRuntime.jsx("span",{className:"truncate font-medium text-text-primary",children:e}),t&&jsxRuntime.jsx("span",{className:"text-sm text-text-secondary",children:t})]}),o&&jsxRuntime.jsx("div",{className:"flex flex-shrink-0 items-center text-sm text-text-secondary",children:o})]}),a==="end"&&x]})}})}en.displayName="CollapseHeader";function tn({className:e,children:t,...r}){let{density:o,showDividers:n}=wu();return jsxRuntime.jsx(reactAriaComponents.DisclosurePanel,{...r,className:reactAriaComponents.composeRenderProps(e,a=>yk({density:o,showDividers:n,className:a})),children:jsxRuntime.jsx(Yo,{children:t})})}tn.displayName="CollapseContent";function Fa(e){if(!e)return false;let t=e.startsWith("#")?e.slice(1):e;return /^[0-9A-Fa-f]{3}$|^[0-9A-Fa-f]{6}$/.test(t)}function ku(e){if(!e)return "";let t=e.startsWith("#")?e.slice(1):e;return t.length===3&&(t=t.split("").map(r=>r+r).join("")),`#${t.toUpperCase()}`}function wk({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,transparent:i,className:s,validationResult:c,value:l,defaultValue:d,onChange:u,placeholder:m="#000000",showColorSwatch:p=true,reserveErrorSpace:f=true,...g}){let[h,b]=Ke.useState(d||""),[y,x]=Ke.useState(l||d||""),[v,S]=Ke.useState(false),[w,k]=Ke.useState(null),{isFocused:P,handleFocus:T,handleBlur:E}=Dr(),I=l!==void 0?l:h;Ke.useEffect(()=>{l!==void 0&&x(l);},[l]);let R=I?!Fa(I):false,L=Ke.useCallback(z=>{if(x(z),Fa(z)){let U=ku(z);u?u(U):b(U);}else z===""&&(u?u(""):b(""));},[u]),M=Ke.useCallback(z=>{let U=ku(z);x(U),u?u(U):b(U);},[u]),V=Ke.useCallback(z=>{if(Fa(y)){let U=ku(y);x(U),u&&U!==I?u(U):!u&&U!==h&&b(U);}E(z,g.onBlur);},[y,I,h,u,E,g.onBlur]);return jsxRuntime.jsx(reactAriaComponents.TextField,{...g,isRequired:a,className:ke(s,"group flex flex-col"),children:({isDisabled:z})=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(Ue,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(wt,{children:jsxRuntime.jsxs("div",{className:"flex gap-2",children:[jsxRuntime.jsxs("div",{className:"flex-1 relative",children:[jsxRuntime.jsx(Xs,{size:o,disabled:z,type:"text",value:y,placeholder:m,onFocus:U=>T(U,g.onFocus),onBlur:V,onChange:U=>L(U.target.value),className:tailwindMerge.twMerge(Ut({isInvalid:R,isDisabled:z,isFocused:P,size:o,transparent:i}),p?"pr-12":"pr-3","pl-3")}),p&&jsxRuntime.jsx("div",{className:"absolute right-3 top-1/2 -translate-y-1/2 pointer-events-none",style:{width:Ye[o].height},children:jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-6 h-6 rounded border shadow-sm",Fa(I)?"border-border-default":"border-border-default bg-background-muted"),style:Fa(I)?{backgroundColor:I}:void 0,"aria-hidden":"true",children:!Fa(I)&&jsxRuntime.jsx("div",{className:"w-full h-full flex items-center justify-center",children:jsxRuntime.jsx("div",{className:"w-3 h-3 rounded-full border-2 border-border-muted"})})})})]}),jsxRuntime.jsx("div",{ref:k,children:jsxRuntime.jsx(_,{variant:"secondary",size:o,icon:"Palette",onPress:()=>S(!v),isDisabled:z,className:"flex-shrink-0",children:"Pick"})})]})}),f?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(fe,{size:o,children:r}):typeof r=="function"&&c?jsxRuntime.jsx(fe,{size:o,children:r(c)}):t?jsxRuntime.jsx(Te,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(fe,{size:o,className:"mt-1",children:r}):typeof r=="function"&&c?jsxRuntime.jsx(fe,{size:o,className:"mt-1",children:r(c)}):t?jsxRuntime.jsx(Te,{size:o,className:"mt-1",children:t}):null}),v&&w&&jsxRuntime.jsx(ft,{triggerRef:{current:w},isOpen:v,onOpenChange:S,placement:"bottom end",className:"bg-background-input shadow-xl border border-border-input/20 backdrop-blur-sm rounded-lg p-4",children:jsxRuntime.jsxs("div",{className:"flex flex-col gap-4",children:[jsxRuntime.jsx(reactColorful.HexColorPicker,{color:I||"#000000",onChange:M,style:{width:"200px",height:"200px"}}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("div",{className:"w-10 h-10 rounded border border-border-default shadow-sm flex-shrink-0",style:{backgroundColor:I||"#000000"}}),jsxRuntime.jsx("div",{className:"flex-1 text-text-primary text-[length:var(--control-text-sm)] font-mono",children:I||"#000000"})]})]})})]})})}function Qg({isOpen:e,onClose:t,onConfirm:r,title:o,message:n,confirmLabel:a="Confirm",cancelLabel:i="Cancel",confirmVariant:s,isDestructive:c=false,isLoading:l=false,maxWidth:d="500px",minWidth:u="400px"}){return jsxRuntime.jsx(or,{isOpen:e,onClose:t,title:o,maxWidth:d,minWidth:u,primaryAction:{label:a,onPress:()=>{r();},variant:s??(c?"destructive":"primary"),isLoading:l},secondaryAction:{label:i,onPress:t,variant:"secondary",isDisabled:l},children:jsxRuntime.jsx("div",{className:"text-text-primary",children:n})})}function Zg({isConnected:e,connectedAt:t,disconnectedAt:r,showTimestamp:o=false,isLoading:n,size:a="sm",shape:i="pill",...s}){if(n)return jsxRuntime.jsx(K,{className:"inline-flex h-6 w-24"});let c=e?"Connected":"Disconnected",l=e?"success":"neutral",d=null;if(o){if(e&&t)d=Rs(t);else if(!e&&r){let u=Rs(r);d=u?`Offline ${u}`:null;}}return jsxRuntime.jsxs("div",{className:"inline-flex flex-col gap-1",children:[jsxRuntime.jsx(lt,{variant:l,size:a,shape:i,dot:e,dotPulse:e,...s,children:c}),d&&jsxRuntime.jsx("span",{className:"text-xs text-text-secondary",children:d})]})}function _g({firstName:e,lastName:t,email:r,phone:o,avatarUrl:n,href:a,LinkComponent:i,variant:s="outlined",layout:c="horizontal",showEmail:l=true,showPhone:d=false,isLoading:u=false,className:m,contentClassName:p,piiEntity:f}){let g=`${e} ${t}`.trim(),h=({children:y,className:x})=>a?i?jsxRuntime.jsx(i,{href:a,className:x,children:y}):jsxRuntime.jsx(at,{href:a,variant:"unstyled",className:tailwindMerge.twMerge("hover:underline",x),asButton:false,children:y}):jsxRuntime.jsx("span",{className:x,children:y}),b=c==="vertical";return u?jsxRuntime.jsx(Je,{variant:s,className:tailwindMerge.twMerge("flex flex-col",m),children:jsxRuntime.jsx(Je.Content,{className:"flex items-center flex-1",children:jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("w-full",b?"flex flex-col items-center gap-4":"flex items-center gap-4"),children:[jsxRuntime.jsx(K,{width:56,height:56,className:"rounded flex-shrink-0"}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge(b?"w-full text-center":"flex-1","space-y-2"),children:[jsxRuntime.jsx(K,{width:"70%",height:20,className:tailwindMerge.twMerge(b&&"mx-auto")}),jsxRuntime.jsx(K,{width:"100%",height:16,className:tailwindMerge.twMerge(b&&"mx-auto")})]})]})})}):jsxRuntime.jsx(Je,{variant:s,className:tailwindMerge.twMerge("group/card flex flex-col",m),children:jsxRuntime.jsx(Je.Content,{className:tailwindMerge.twMerge("flex items-center flex-1",a&&"cursor-pointer",p),children:jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("relative w-full",b?"flex flex-col items-center gap-4 text-center":"flex items-center gap-4"),children:[jsxRuntime.jsx(Eo,{firstName:e,lastName:t,src:n,size:"xl",variant:"user",shape:"square",className:"flex-shrink-0",piiEntity:f}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge(b?"w-full":"flex-1 min-w-0"),children:[a&&jsxRuntime.jsx(h,{className:"after:absolute after:inset-0",children:jsxRuntime.jsx("span",{className:"sr-only",children:g})}),jsxRuntime.jsx("span",{className:"text-lg font-semibold leading-tight text-text-primary block mb-1.5 group-hover/card:text-text-brand transition-colors","data-pii-type":f?"full-name":void 0,"data-pii-entity":f,children:g}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("space-y-0.5",b&&"flex flex-col items-center"),children:[l&&r&&jsxRuntime.jsxs("div",{className:"flex items-center gap-2.5 text-text-primary",children:[jsxRuntime.jsx(F,{name:"Envelope",size:16,className:"text-text-secondary flex-shrink-0"}),jsxRuntime.jsx(at,{href:`mailto:${r}`,variant:"unstyled",className:tailwindMerge.twMerge("text-sm leading-relaxed text-text-primary relative z-20",b?"":"truncate"),"data-pii-type":f?"email":void 0,"data-pii-entity":f,children:r})]}),d&&o&&jsxRuntime.jsxs("div",{className:"flex items-center gap-2.5 text-text-primary",children:[jsxRuntime.jsx(F,{name:"Phone",size:16,className:"text-text-secondary flex-shrink-0"}),jsxRuntime.jsx(at,{href:`tel:${o}`,variant:"unstyled",className:tailwindMerge.twMerge("text-sm leading-relaxed text-text-primary relative z-20",b?"":"truncate"),"data-pii-type":f?"phone":void 0,"data-pii-entity":f,children:va(o)})]})]})]})]})})})}function al({firstName:e,lastName:t,email:r,avatarUrl:o,layout:n="stacked",size:a="md",href:i,LinkComponent:s,linkVariant:c="unstyled",emphasis:l="normal",showEmail:d=false,badge:u,avatarShape:m,isLoading:p=false,className:f,piiEntity:g}){let h=m??(n==="inline"?"circle":"square"),y={xs:{avatarSize:"xs",gap:"gap-1.5",textSize:"text-xs",secondaryTextSize:"text-xs",skeletonAvatar:24,skeletonText:80,skeletonSecondary:60},sm:{avatarSize:"sm",gap:"gap-2",textSize:"text-sm",secondaryTextSize:"text-xs",skeletonAvatar:32,skeletonText:96,skeletonSecondary:72},md:{avatarSize:"md",gap:"gap-3",textSize:"text-base",secondaryTextSize:"text-sm",skeletonAvatar:40,skeletonText:128,skeletonSecondary:96},lg:{avatarSize:"lg",gap:"gap-3",textSize:"text-lg",secondaryTextSize:"text-base",skeletonAvatar:48,skeletonText:160,skeletonSecondary:120}}[a],x=`${e} ${t}`.trim(),S={strong:"font-semibold text-text-primary",high:"font-semibold text-text-primary",normal:"text-text-primary",low:"text-text-secondary"}[l],w=({children:k,className:P})=>i?s?jsxRuntime.jsx(s,{href:i,className:P,children:k}):jsxRuntime.jsx(at,{href:i,variant:c,className:tailwindMerge.twMerge("hover:underline",P),asButton:false,children:k}):jsxRuntime.jsx("span",{className:P,children:k});return p?n==="inline"?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",y.gap,f),children:[jsxRuntime.jsx(K,{width:y.skeletonAvatar,height:y.skeletonAvatar,className:"flex-shrink-0 rounded-full"}),jsxRuntime.jsx(K,{width:y.skeletonText,height:y.skeletonAvatar*.5})]}):jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",y.gap,f),children:[jsxRuntime.jsx(K,{width:y.skeletonAvatar,height:y.skeletonAvatar,className:"flex-shrink-0 rounded-full"}),jsxRuntime.jsxs("div",{className:"flex flex-col gap-1",children:[jsxRuntime.jsx(K,{width:y.skeletonText,height:16}),d&&jsxRuntime.jsx(K,{width:y.skeletonSecondary,height:12})]})]}):n==="inline"?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",y.gap,f),children:[jsxRuntime.jsxs(w,{className:tailwindMerge.twMerge("flex items-center",y.gap),children:[jsxRuntime.jsx(Eo,{firstName:e,lastName:t,src:o,size:y.avatarSize,variant:"user",shape:h,className:"flex-shrink-0",piiEntity:g}),jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("leading-normal truncate hover:text-text-primary",S,y.textSize,i&&"hover:underline hover:decoration-1 hover:underline-offset-4"),"data-pii-type":g?"full-name":void 0,"data-pii-entity":g,children:x})]}),u]}):jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center justify-start",y.gap,f),children:[jsxRuntime.jsx(Eo,{firstName:e,lastName:t,src:o,size:y.avatarSize,variant:"user",shape:h,className:"flex-shrink-0",piiEntity:g}),jsxRuntime.jsxs("div",{className:"flex flex-col items-start min-w-0",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(w,{className:tailwindMerge.twMerge("leading-normal truncate hover:text-text-primary",S,y.textSize,i&&"hover:underline hover:decoration-1 hover:underline-offset-4"),children:jsxRuntime.jsx("span",{"data-pii-type":g?"full-name":void 0,"data-pii-entity":g,children:x})}),u]}),d&&r&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-text-secondary leading-normal truncate",y.secondaryTextSize),"data-pii-type":g?"email":void 0,"data-pii-entity":g,children:r})]})]})}var Pu=Ke.createContext(null);function $g(e){let t=Ke.useContext(Pu),r=Ke.useRef(null),o=e??r,[n,a]=Ke.useState(()=>t||{current:"xl",isSm:true,isMd:true,isLg:true,isXl:true,is2Xl:false,isMobile:false,isDesktop:true});return Ke.useEffect(()=>{if(t){a(t);return}let i=o.current;if(!i||typeof ResizeObserver>"u")return;let s=()=>{let l=i.offsetWidth,d=l>=640,u=l>=768,m=l>=1024,p=l>=1280,f=l>=1536,g="base";f?g="2xl":p?g="xl":m?g="lg":u?g="md":d&&(g="sm"),a({current:g,isSm:d,isMd:u,isLg:m,isXl:p,is2Xl:f,isMobile:!u,isDesktop:u});};s();let c=new ResizeObserver(s);return c.observe(i),()=>c.disconnect()},[t,o]),n}function tb({children:e,className:t}){let r=Ke.useRef(null),[o,n]=Ke.useState({current:"base",isSm:false,isMd:false,isLg:false,isXl:false,is2Xl:false,isMobile:true,isDesktop:false});return Ke.useEffect(()=>{let a=r.current;if(!a||typeof ResizeObserver>"u")return;let i=()=>{let c=a.offsetWidth,l=c>=640,d=c>=768,u=c>=1024,m=c>=1280,p=c>=1536,f="base";p?f="2xl":m?f="xl":u?f="lg":d?f="md":l&&(f="sm"),n({current:f,isSm:l,isMd:d,isLg:u,isXl:m,is2Xl:p,isMobile:!d,isDesktop:d});};i();let s=new ResizeObserver(i);return s.observe(a),()=>s.disconnect()},[]),jsxRuntime.jsx(Pu.Provider,{value:o,children:jsxRuntime.jsx("div",{ref:r,className:t,style:{width:"100%"},children:e})})}var il={duration:.5,ease:"easeInOut"},Ar=Ke.createContext(null),Bn=()=>{let e=Ke.useContext(Ar);if(!e)throw new Error("useChartContext must be used within a ChartContextProvider");return e};function sl(e,t){if(t<=0||e.length<2)return e;let r=[e[0]];for(let o=1;o<e.length;o++)e[o].xValue.getTime()-e[o-1].xValue.getTime()>t&&r.push(null),r.push(e[o]);return r}var on=({data:e,color:t="var(--color-viz-default)",baseline:r,fillOpacity:o=.1,showLine:n=true,maxGapMs:a,animate:i=true})=>{let s=Ke.useId(),c=Ke.useId(),{xScale:l,yScale:d,animationSettings:u}=Bn(),m=l.range(),p=d.range(),f=(v,S)=>typeof r=="function"?r(v,S):r??0,g=v=>v.chartYValue??v.yValue,h=a!=null?sl(e,a):e,b=i?void 0:"non-scaling-stroke",y={transformOrigin:`0 ${p[0]}px`,transformBox:"fill-box",isolation:"isolate"},x=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[r===void 0?jsxRuntime.jsx(shape.AreaClosed,{data:h,x:v=>v?l(v.xValue):0,y:v=>v?d(g(v)):0,yScale:d,defined:v=>v!=null,fill:`url(#${s})`,curve:curve.curveLinear}):jsxRuntime.jsx(shape.Area,{data:h,x:v=>v?l(v.xValue):0,y0:(v,S)=>v?d(f(v,S)):0,y1:v=>v?d(g(v)):0,defined:v=>v!=null,fill:t,fillOpacity:o,curve:curve.curveLinear}),n?jsxRuntime.jsx(shape.LinePath,{data:h,x:v=>v?l(v.xValue):0,y:v=>v?d(g(v)):0,defined:v=>v!=null,stroke:t,strokeWidth:3,vectorEffect:b,curve:curve.curveLinear}):null]});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("defs",{children:[jsxRuntime.jsxs("linearGradient",{id:s,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[jsxRuntime.jsx("stop",{offset:"50%",stopColor:t,stopOpacity:o}),jsxRuntime.jsx("stop",{offset:"100%",stopColor:t,stopOpacity:0})]}),i&&jsxRuntime.jsx("clipPath",{id:c,children:jsxRuntime.jsx("rect",{x:m[0],y:p[1],width:m[1]-m[0],height:p[0]-p[1]})})]}),i?jsxRuntime.jsx("g",{clipPath:`url(#${c})`,children:jsxRuntime.jsx(framerMotion.motion.g,{initial:{scaleY:0},animate:{scaleY:1},transition:{duration:u.duration,ease:u.ease},style:y,children:x})}):jsxRuntime.jsx("g",{style:y,children:x})]})};var cl=({data:e,color:t="var(--color-viz-default)",opacity:r=1,categoryColors:o={}})=>{let{xScale:n,yScale:a,animationSettings:i}=Bn(),s=Ke.useId(),c=n.range(),l=a.range(),d=[...e].sort((p,f)=>p.xValue.getTime()-f.xValue.getTime());if(d.length===0)return null;let u=d.length>1?d[1].xValue.getTime()-d[0].xValue.getTime():15*6e4,m=Math.abs(n(new Date(d[0].xValue.getTime()+u))-n(d[0].xValue));return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("defs",{children:jsxRuntime.jsx("clipPath",{id:s,children:jsxRuntime.jsx("rect",{x:c[0],y:l[1],width:c[1]-c[0],height:l[0]-l[1]})})}),jsxRuntime.jsx("g",{clipPath:`url(#${s})`,children:jsxRuntime.jsx(framerMotion.motion.g,{initial:{scaleY:0},animate:{scaleY:1},transition:{duration:i.duration,ease:i.ease},style:{transformOrigin:`0 ${a(0)}px`,isolation:"isolate"},children:d.map((p,f)=>{let g=n(p.xValue),h=p.chartYValue??p.yValue,b=p.baselineValue??0,y=a(h),x=a(b),v=Math.min(y,x),S=Math.abs(y-x),w=d[f+1],k=w?Math.abs(n(w.xValue)-g):m,P=p.category&&o[p.category]?o[p.category]:t;return jsxRuntime.jsx(shape.Bar,{x:g-k/2,y:v,width:k,height:S,fill:P,opacity:r,rx:1},p.xValue.getTime())})})})]})};function qk(e){return e>=1e9?"GW":e>=1e6?"MW":e>=1e3?"kW":"W"}function Qk(e){return e>=1e3?"kA":e<1?"mA":"A"}function Zk(e){return e>=1e3?"kV":e<1?"mV":"V"}function _k(e){return e>=1e6?"M\u03A9":e>=1e3?"k\u03A9":e<1?"m\u03A9":"\u03A9"}function Va(e,t){if(typeof e!="object"||e===null)return e;switch(e.type){case "energy":{if(e.unit||e.autoScale===false)return e;let r=e.sourceUnit?yd[e.sourceUnit]:1;return {...e,unit:hd(t*r)}}case "power":return e.unit||e.autoScale===false?e:{...e,unit:qk(t)};case "current":return e.unit||e.autoScale===false?e:{...e,unit:Qk(t)};case "voltage":return e.unit||e.autoScale===false?e:{...e,unit:Zk(t)};case "resistance":return e.unit||e.autoScale===false?e:{...e,unit:_k(t)};default:return e}}var $k=e=>e.baselineValue??0,ze={top:8,right:0,bottom:50,left:60};function Jr(e={type:"number"}){let t=i=>{if(i==null)return "-";let s=no({value:i,formatter:e});if(s===null)return "-";if(typeof s=="string")return s;if(typeof s=="number")return s.toString();if(typeof s=="object"&&s!==null&&"props"in s){let c=d=>{if(d==null)return "";if(typeof d=="string")return d;if(typeof d=="number")return d.toString();if(typeof d=="object"&&"props"in d){let u=d.props;if(u?.children)return Array.isArray(u.children)?u.children.map(c).join(""):c(u.children)}return ""};return c(s)||i.toString()}return i.toString()},r=i=>{if(i==null)return "-";if(typeof e=="string"){let s=no({value:i,formatter:e});return s===null?"-":String(s)}if(typeof e=="object"&&e.type)switch(e.type){case "energy":case "power":case "voltage":case "current":case "resistance":case "temperature":case "distance":return t(i);case "currency":return t(i);default:return t(i)}return t(i)},o,n,a;return typeof e=="object"&&e.type&&e.type==="number"&&("min"in e&&(o=e.min),"max"in e&&(n=e.max)),{format:t,tickFormat:r,min:o,max:n,tickInterval:a}}var Eu=(e,t)=>{let r=d3Array.extent(e,o=>o.xValue);return scale.scaleTime({range:[ze.left,t-ze.right],domain:r,nice:true})},Mi=(e,t,r,o)=>{let n=Jr(r);if(o)return scale.scaleLinear({range:[t-ze.bottom,ze.top],domain:o,nice:true});let a=d3Array.min(e,l=>Math.min(l.yValue,l.chartYValue??l.yValue,l.baselineValue??l.yValue))||0,i=d3Array.max(e,l=>Math.max(l.yValue,l.chartYValue??l.yValue,l.baselineValue??l.yValue))||0,s=n.min!==void 0?n.min:a>=0?0:a*1.1,c=n.max!==void 0?n.max:i<=0?0:i*1.1;return scale.scaleLinear({range:[t-ze.bottom,ze.top],domain:[s,c],nice:true})};function eT(e,t=12,r="system-ui"){if(typeof window>"u"||typeof document>"u")return e.length*(t*.6);let o=document.createElement("canvas"),n=null;try{n=o.getContext("2d");}catch{return e.length*(t*.6)}return n?(n.font=`${t}px ${r}`,n.measureText(e).width):e.length*(t*.6)}function za(e,t=12,r="system-ui"){return e.length===0?0:Math.max(...e.map(o=>eT(o,t,r)))}function Li(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function tT(e,t,r=12,o=false){if(!Li(t[0])||!Li(t[1]))return console.warn("ChartAxis: Invalid date in domain, skipping tick calculation"),[];let n=t[0].getTime(),a=t[1].getTime(),i=a-n;if(i===0||i<1e3)return [t[0]];let s=Dd({start:t[0],end:t[1]},{compact:o}),l=[t[0],new Date((t[0].getTime()+t[1].getTime())/2),t[1]].map(y=>s(y)),d=za(l,r),m=d+d,p=Math.floor(e/m),f=Math.max(2,Math.min(8,p));if(f<=2)return [t[0],t[1]];let g=[t[0]],h=i/36e5,b;h<=1?b=6e4:h<=6?b=5*6e4:h<=48?b=60*6e4:h<=168?b=360*6e4:b=1440*6e4;for(let y=1;y<f-1;y++){let x=y/(f-1),v=n+i*x,S=Math.round(v/b)*b,w=g[g.length-1].getTime(),k=S>w?S:w+b;if(k>=a)break;g.push(new Date(k));}return g.push(t[1]),g}var rT=({top:e,scale:t,width:r})=>{let o=t.domain(),n=[o[0],o[o.length-1]],a=Li(n[0])&&Li(n[1]),i=r<400,s=a?n[0].getTime():0,c=a?n[1].getTime():0,l=Ke.useMemo(()=>a?Dd({start:n[0],end:n[1]},{compact:i}):()=>"",[s,c,i,a]),d=Ke.useMemo(()=>tT(r,n,12,i),[r,s,c,i]);return d.length===0?null:jsxRuntime.jsx(axis.Axis,{orientation:"bottom",top:e,scale:t,tickValues:d,tickFormat:u=>{let m=u;return Li(m)?l(m):""},stroke:"var(--color-border-muted)",tickStroke:"var(--color-border-muted)",tickLabelProps:(u,m,p)=>({fill:"var(--color-text-secondary)",fontSize:12,textAnchor:m===0?"start":m===p.length-1?"end":"middle"}),rangePadding:0})};function Oa(e,t=12){let r=t*2.5,o=Math.floor(e/r);return Math.max(2,Math.min(6,o))}var Mu=12,oT=({left:e,scale:t,yFormatter:r,height:o})=>{let n=Jr(r),a=Ke.useMemo(()=>!o||o<=0?5:Oa(o),[o]);return jsxRuntime.jsx(axis.Axis,{orientation:"left",left:e,scale:t,numTicks:a,tickFormat:i=>(n.tickFormat||n.format)(i),stroke:"var(--color-border-muted)",tickStroke:"var(--color-border-muted)",tickLabelProps:i=>{let s={fill:"var(--color-text-secondary)",fontSize:Mu,textAnchor:"end"},c=t(i),[l,d]=t.range(),u=Math.min(l,d),m=Math.max(l,d);return c-u<Mu/2?{...s,verticalAnchor:"start"}:m-c<Mu/2?{...s,verticalAnchor:"end"}:{...s,dy:"0.33em"}}})},nT=({top:e,scale:t})=>jsxRuntime.jsx(axis.Axis,{orientation:"bottom",top:e,scale:t,stroke:"var(--color-border-muted)",tickStroke:"var(--color-border-muted)",tickLabelProps:()=>({fill:"var(--color-text-secondary)",fontSize:12,textAnchor:"middle",dy:"0.25em"})}),aT=({left:e,scale:t})=>jsxRuntime.jsx(axis.Axis,{orientation:"left",left:e,scale:t,stroke:"var(--color-border-muted)",tickStroke:"var(--color-border-muted)",tickLabelProps:()=>({fill:"var(--color-text-secondary)",fontSize:12,textAnchor:"end",dx:"-0.25em",dy:"0.33em"})}),iT=({top:e,scale:t,yFormatter:r,width:o})=>{let n=Jr(r),a=Ke.useMemo(()=>{if(!o||o<=0)return 5;let s=Math.floor(o/60);return Math.max(2,Math.min(8,s))},[o]);return jsxRuntime.jsx(axis.Axis,{orientation:"bottom",top:e,scale:t,numTicks:a,tickFormat:i=>(n.tickFormat||n.format)(i),stroke:"var(--color-border-muted)",tickStroke:"var(--color-border-muted)",tickLabelProps:()=>({fill:"var(--color-text-secondary)",fontSize:12,textAnchor:"middle",dy:"0.25em"})})},Ir={Bottom:rT,Left:oT,CategoryBottom:nT,CategoryLeft:aT,NumericBottom:iT};var nn=({data:e,formatter:t,label:r,categoryLabels:o})=>{if(!e)return null;let n=Ke__namespace.default.useContext(Ar),a=o??n?.categoryLabels,i=n?.xScale,s=n?.width,c=n?.height,l=Jr(t),d=y=>{if(y.baselineValue===void 0)return l.format(y.value);let x=Math.min(y.baselineValue,y.value),v=Math.max(y.baselineValue,y.value);return `${l.format(x)} \u2013 ${l.format(v)}`},u=Ke__namespace.default.useRef(null),[m,p]=Ke__namespace.default.useState({x:0,y:0,translate:"translate(-50%, -100%)"});Ke__namespace.default.useEffect(()=>{if(!u.current)return;let x=u.current.getBoundingClientRect(),v=s??window.innerWidth,S=c??window.innerHeight,w=e.x,k=e.y,P=16,T=e.x+x.width+P<=v,E=e.x-x.width-P>=0,I;e.position==="left"?I=E||!T:I=!T&&E;let R=I?"translate(calc(-100% - 16px), -50%)":"translate(16px, -50%)";if(!T&&!E){let L=v-e.x,M=e.x;L<=M?(w=v,R="translate(-100%, -50%)"):(w=0,R="translate(0, -50%)");}k-x.height/2<0?k=x.height/2:k+x.height/2>S&&(k=S-x.height/2),p({x:w,y:k,translate:R});},[e.x,e.y,e.position,s,c]);let f=i?.domain(),h=f&&f.length===2&&f.every(y=>y instanceof Date)?Nf({start:f[0],end:f[1]}):null,b=r||(h&&e.xValue instanceof Date?h(e.xValue):String(e.xValue));return jsxRuntime.jsx(framerMotion.AnimatePresence,{children:jsxRuntime.jsxs(framerMotion.motion.div,{ref:u,role:"tooltip","aria-live":"polite",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},"data-testid":"tooltip",className:"pointer-events-none absolute z-50 rounded-lg bg-background-surface p-4 text-sm shadow-xl ring-1 ring-border-default whitespace-nowrap",style:{left:m.x,top:m.y,transform:m.translate},children:[jsxRuntime.jsx("div",{className:"mb-1 font-medium text-text-primary",children:b}),e.isEvent?jsxRuntime.jsxs("div",{className:"space-y-2",children:[e.series.length>1&&jsxRuntime.jsx("ul",{className:"list-none p-0 border-b border-border-default pb-2",children:e.series.slice(0,-1).map(y=>jsxRuntime.jsxs("li",{className:"py-0.5",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsxs("span",{className:"font-medium text-text-primary",children:[y.label,":"]}),jsxRuntime.jsx("span",{className:"text-text-secondary",children:d(y)})]}),y.category&&jsxRuntime.jsxs("div",{className:"mt-0.5 flex items-center gap-2",children:[jsxRuntime.jsx("div",{className:"h-3 w-3",style:{backgroundColor:y.categoryColor||y.color,borderRadius:"1px"}}),jsxRuntime.jsx("span",{className:"text-sm text-text-secondary",children:a?.[y.category]||y.category})]}),y.extraTooltipRows&&y.extraTooltipRows.length>0&&jsxRuntime.jsx("div",{className:"mt-0.5 space-y-0.5",children:y.extraTooltipRows.map(x=>jsxRuntime.jsxs("div",{className:"flex items-center gap-2 text-sm text-text-secondary",children:[jsxRuntime.jsxs("span",{children:[x.label,":"]}),jsxRuntime.jsx("span",{className:"font-medium text-text-primary",children:x.value})]},x.label))})]},y.label))}),(()=>{let y=e.series[e.series.length-1],x=e.eventItems?.length?e.eventItems:[{label:y.label,color:y.color,metadata:e.eventMetadata}];return jsxRuntime.jsx("div",{className:"space-y-2",children:x.map((v,S)=>jsxRuntime.jsxs("div",{children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("div",{className:"h-2 w-2 rounded-full",style:{backgroundColor:v.color}}),jsxRuntime.jsx("span",{className:"font-medium text-text-primary",children:v.label})]}),v.metadata&&Object.keys(v.metadata).length>0&&jsxRuntime.jsx("div",{className:"ml-4 mt-1 space-y-0.5 text-xs text-text-secondary",children:Object.entries(v.metadata).map(([w,k])=>jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsxs("span",{className:"capitalize",children:[w,":"]}),jsxRuntime.jsx("span",{className:"font-medium",children:k})]},w))})]},`${v.label}-${S}`))})})()]}):jsxRuntime.jsx("ul",{className:"list-none p-0",children:e.series.map(y=>jsxRuntime.jsxs("li",{className:"py-0.5",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsxs("span",{className:"font-medium text-text-primary",children:[y.label,":"]}),jsxRuntime.jsx("span",{className:"text-text-secondary",children:d(y)})]}),y.category&&jsxRuntime.jsxs("div",{className:"mt-0.5 flex items-center gap-2",children:[jsxRuntime.jsx("div",{className:"h-3 w-3",style:{backgroundColor:y.categoryColor||y.color,borderRadius:"1px"}}),jsxRuntime.jsx("span",{className:"text-sm text-text-secondary",children:a?.[y.category]||y.category})]}),y.extraTooltipRows&&y.extraTooltipRows.length>0&&jsxRuntime.jsx("div",{className:"mt-0.5 space-y-0.5",children:y.extraTooltipRows.map(x=>jsxRuntime.jsxs("div",{className:"flex items-center gap-2 text-sm text-text-secondary",children:[jsxRuntime.jsxs("span",{children:[x.label,":"]}),jsxRuntime.jsx("span",{className:"font-medium text-text-primary",children:x.value})]},x.label))})]},y.label))})]})})};var gT={top:20,right:20,bottom:50,left:60},ub=({data:e,width:t,height:r,margin:o=gT,color:n,yFormatter:a={type:"number"},showGrid:i=true,showAxes:s=true,animate:c=true,barRadius:l=4,barPadding:d=.3,onBarClick:u,onBarHover:m,activeIndex:p,className:f,style:g,"aria-label":h,orientation:b="horizontal",showTooltip:y=true})=>{let[x,v]=Ke.useState(null),[S,w]=Ke.useState(null),[k,P]=Ke.useState(null),[T,E]=Ke.useState(t??600),[I,R]=Ke.useState(r??300),L=Ke.useRef(null),M=p??x,V=Ke.useId(),z=n||"var(--color-viz-default)";Ke.useEffect(()=>{if(t!==void 0&&r!==void 0){E(t),R(r);return}if(!L.current)return;let G=new ResizeObserver(A=>{for(let W of A)t===void 0&&E(W.contentRect.width),r===void 0&&R(W.contentRect.height);});return G.observe(L.current),t===void 0&&E(L.current.offsetWidth),r===void 0&&R(L.current.offsetHeight||300),()=>{G.disconnect();}},[t,r]);let{xScale:U,yScale:Q,innerWidth:Z,innerHeight:H}=Ke.useMemo(()=>{let G=T-o.left-o.right,A=I-o.top-o.bottom;if(b==="horizontal"){let N=d3Array.max(e,C=>C.value)||0;return {xScale:scale.scaleLinear({range:[0,G],domain:[0,N*1.1],nice:true}),yScale:scale.scaleBand({range:[0,A],domain:e.map(C=>C.label),padding:d}),innerWidth:G,innerHeight:A}}let W=d3Array.max(e,N=>N.value)||0;return {xScale:scale.scaleBand({range:[0,G],domain:e.map(N=>N.label),padding:d}),yScale:scale.scaleLinear({range:[A,0],domain:[0,W*1.1],nice:true}),innerWidth:G,innerHeight:A}},[e,T,I,o,d,b]);if(e.length===0)return jsxRuntime.jsx("div",{ref:L,className:tailwindMerge.twMerge("flex h-full min-h-[200px] w-full items-center justify-center rounded-lg border border-dashed border-border-default bg-background-surface text-sm font-medium text-text-secondary",f),style:r!==void 0?{height:r,...g}:g,children:"No data available"});let j=(G,A)=>{if(v(G),m?.(A,G),G!==null&&A){let W,N;if(b==="horizontal"){let D=U(A.value),B=Q(A.label)||0,X=Q.bandwidth();W=o.left+D,N=o.top+B+X/2;}else {let D=U,B=Q,X=D(A.label)??0,ee=D.bandwidth(),le=B(A.value);W=o.left+X+ee/2,N=o.top+le;}let C=W>T/2;P(A.label),w({xValue:new Date,series:[{label:"Value",value:A.value,color:A.color||z}],x:W,y:N,position:C?"left":"right"});}else w(null),P(null);};return jsxRuntime.jsxs("div",{ref:L,className:tailwindMerge.twMerge("relative h-full w-full overflow-hidden rounded-lg bg-background-surface",f),style:r!==void 0?{height:r,...g}:g,"aria-label":h,role:"img",children:[jsxRuntime.jsxs("svg",{width:T,height:I,children:[jsxRuntime.jsx("defs",{children:jsxRuntime.jsx(gradient.LinearGradient,{id:`${V}-bar`,from:z,to:z,toOpacity:.85})}),jsxRuntime.jsxs(group.Group,{left:o.left,top:o.top,children:[i&&jsxRuntime.jsx("g",{className:"grid-lines",children:(b==="horizontal"?U.ticks(5):Q.ticks(5)).map(G=>{let A=b==="horizontal"?0:Q(G),W=b==="horizontal"?U(G):0;return jsxRuntime.jsx("line",{x1:b==="horizontal"?W:0,y1:b==="horizontal"?0:A,x2:b==="horizontal"?W:Z,y2:b==="horizontal"?H:A,stroke:"var(--color-border-default)",strokeOpacity:.5,strokeDasharray:"2,3"},G)})}),e.map((G,A)=>{let W=M===A||M==null,N=G.color||`url(#${V}-bar)`;if(b==="horizontal"){let $=U(G.value),ae=Q.bandwidth(),Ve=Q(G.label)||0;return jsxRuntime.jsx(framerMotion.motion.rect,{x:0,y:Ve,width:$,height:ae,fill:N,rx:l,ry:l,initial:c?{width:0,opacity:.5}:void 0,animate:{width:$,opacity:W?1:.5},transition:{duration:.5,delay:A*.05,ease:"easeOut",opacity:{duration:.15,delay:0}},style:{cursor:u||m?"pointer":"default"},onMouseEnter:()=>j(A,G),onMouseLeave:()=>j(null,null),onClick:()=>u?.(G,A)},G.label)}let C=U,D=Q,B=C.bandwidth(),X=C(G.label)??0,ee=D(G.value),le=Math.max(0,H-ee);return c?jsxRuntime.jsx(framerMotion.motion.rect,{x:X,width:B,fill:N,rx:l,ry:l,initial:{y:H,height:0,opacity:.5},animate:{y:ee,height:le,opacity:W?1:.5},transition:{duration:.5,delay:A*.05,ease:"easeOut",opacity:{duration:.15,delay:0}},style:{cursor:u||m?"pointer":"default"},onMouseEnter:()=>j(A,G),onMouseLeave:()=>j(null,null),onClick:()=>u?.(G,A)},G.label):jsxRuntime.jsx("rect",{x:X,y:ee,width:B,height:le,fill:N,rx:l,ry:l,opacity:W?1:.5,style:{cursor:u||m?"pointer":"default",transition:"opacity 150ms ease-out"},onMouseEnter:()=>j(A,G),onMouseLeave:()=>j(null,null),onClick:()=>u?.(G,A)},G.label)}),s&&b==="vertical"&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Ir.CategoryBottom,{top:H,scale:U}),jsxRuntime.jsx(Ir.Left,{left:0,scale:Q,yFormatter:a,height:H})]}),s&&b==="horizontal"&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Ir.NumericBottom,{top:H,scale:U,yFormatter:a,width:Z}),jsxRuntime.jsx(Ir.CategoryLeft,{left:0,scale:Q})]})]})]}),y&&jsxRuntime.jsx(nn,{data:S,formatter:a,label:k??void 0})]})};var pb=({item:e,onToggle:t})=>{let r=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:"h-3 w-3 shrink-0",style:{backgroundColor:e.fill,borderRadius:"1px",opacity:e.isHidden?.35:1}}),jsxRuntime.jsx("span",{className:`text-sm whitespace-nowrap ${e.isHidden?"text-text-disabled line-through":"text-text-secondary"}`,children:e.category})]});return t?jsxRuntime.jsx("button",{type:"button",className:"flex items-center gap-2 shrink-0 rounded-sm focus:outline-none focus:ring-2 focus:ring-border-focus disabled:cursor-not-allowed disabled:opacity-60","aria-pressed":!e.isHidden,"aria-label":`${e.isHidden?"Show":"Hide"} ${e.category}`,disabled:e.isDisabled,onClick:()=>t(e.category),children:r}):jsxRuntime.jsx("div",{className:"flex items-center gap-2 shrink-0",children:r})},hT=({items:e,onToggle:t})=>e.length===0?null:jsxRuntime.jsx("div",{className:"flex items-center gap-3 flex-wrap",children:e.map(r=>jsxRuntime.jsx(pb,{item:r,onToggle:t},r.category))}),Ga=({items:e,onExport:t,marginLeft:r=0,marginRight:o=0,isZoomed:n=false,onResetZoom:a,onLegendItemToggle:i})=>{let[s,c]=Ke__namespace.default.useState(false),[l,d]=Ke__namespace.default.useState(null),[u,m]=Ke__namespace.default.useState(false),[p,f]=Ke__namespace.default.useState(false),g=Ke__namespace.default.useCallback(async b=>{c(true),d(b),f(false);try{await t(b);}catch(y){console.error("Export failed:",y);}finally{c(false),d(null);}},[t]),h=Ke__namespace.default.useCallback(async b=>{await g(b);},[g]);return jsxRuntime.jsxs("div",{className:"mt-4 flex items-center justify-between gap-3 min-h-[32px]",style:{marginLeft:r,marginRight:o},children:[jsxRuntime.jsx("div",{className:"hidden sm:block flex-1 min-w-0",children:jsxRuntime.jsx(hT,{items:e,onToggle:i})}),jsxRuntime.jsx("div",{className:"sm:hidden flex items-center gap-3",children:e.length>0&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{onClick:()=>m(true),className:"text-sm text-text-secondary hover:text-text-primary transition-colors underline decoration-dotted underline-offset-4",children:"Legend"}),jsxRuntime.jsx(gt,{isOpen:u,onClose:()=>m(false),title:"Legend",children:jsxRuntime.jsx("div",{className:"grid grid-cols-1 gap-3 p-4",children:e.map(b=>jsxRuntime.jsx(pb,{item:b,onToggle:i},b.category))})})]})}),jsxRuntime.jsxs("div",{className:"sm:hidden flex items-center gap-2 shrink-0",children:[n&&a&&jsxRuntime.jsx(_,{variant:"secondary",size:"sm",onPress:a,children:jsxRuntime.jsx(F,{name:"ArrowsOut",size:16})}),jsxRuntime.jsx(_,{variant:"secondary",size:"sm",onPress:()=>f(true),isDisabled:s,children:jsxRuntime.jsx(F,{name:"Export",size:16})}),jsxRuntime.jsx(gt,{isOpen:p,onClose:()=>f(false),title:"Export Chart",contentPadding:false,children:jsxRuntime.jsxs("div",{className:"flex flex-col",children:[jsxRuntime.jsxs("button",{onClick:()=>g("csv"),disabled:s,className:"flex items-center gap-3 px-6 py-4 text-left hover:bg-background-hover active:bg-background-muted transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:[jsxRuntime.jsx(F,{name:"List",size:20,className:"text-text-secondary"}),jsxRuntime.jsx("span",{className:"text-sm text-text-primary",children:l==="csv"?"Exporting...":"Export as CSV"})]}),jsxRuntime.jsxs("button",{onClick:()=>g("svg"),disabled:s,className:"flex items-center gap-3 px-6 py-4 text-left hover:bg-background-hover active:bg-background-muted transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:[jsxRuntime.jsx(F,{name:"Code",size:20,className:"text-text-secondary"}),jsxRuntime.jsx("span",{className:"text-sm text-text-primary",children:l==="svg"?"Exporting...":"Export as SVG"})]}),jsxRuntime.jsxs("button",{onClick:()=>g("png"),disabled:s,className:"flex items-center gap-3 px-6 py-4 text-left hover:bg-background-hover active:bg-background-muted transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:[jsxRuntime.jsx(F,{name:"DownloadSimple",size:20,className:"text-text-secondary"}),jsxRuntime.jsx("span",{className:"text-sm text-text-primary",children:l==="png"?"Exporting...":"Export as PNG"})]})]})})]}),jsxRuntime.jsxs("div",{className:"hidden sm:flex items-center gap-2 shrink-0",children:[n&&a&&jsxRuntime.jsxs(_,{variant:"secondary",size:"sm",onPress:a,children:[jsxRuntime.jsx(F,{name:"ArrowsOut",size:16}),jsxRuntime.jsx("span",{className:"hidden sm:inline",children:"Reset Zoom"})]}),jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{children:[jsxRuntime.jsxs(_,{variant:"secondary",size:"sm",isDisabled:s,children:[jsxRuntime.jsx(F,{name:"Export",size:16}),s?"Exporting...":"Export"]}),jsxRuntime.jsx(ft,{placement:"top end",className:"min-w-48 p-1 bg-background-surface rounded-lg shadow-xl ring-1 ring-border-default",children:jsxRuntime.jsxs(reactAriaComponents.Menu,{onAction:h,className:"outline-none",children:[jsxRuntime.jsx(reactAriaComponents.MenuItem,{id:"csv",className:"flex items-center gap-2 px-3 py-2 text-sm text-text-primary rounded cursor-pointer hover:bg-background-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus focus-visible:ring-offset-1 focus-visible:ring-offset-background-surface data-[focused]:bg-background-hover data-[focused]:ring-2 data-[focused]:ring-border-focus data-[focused]:ring-offset-1 data-[focused]:ring-offset-background-surface",isDisabled:s,children:jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(F,{name:"List",size:14}),l==="csv"?"Exporting...":"Export as CSV"]})}),jsxRuntime.jsx(reactAriaComponents.MenuItem,{id:"svg",className:"flex items-center gap-2 px-3 py-2 text-sm text-text-primary rounded cursor-pointer hover:bg-background-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus focus-visible:ring-offset-1 focus-visible:ring-offset-background-surface data-[focused]:bg-background-hover data-[focused]:ring-2 data-[focused]:ring-border-focus data-[focused]:ring-offset-1 data-[focused]:ring-offset-background-surface",isDisabled:s,children:jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(F,{name:"Code",size:14}),l==="svg"?"Exporting...":"Export as SVG"]})}),jsxRuntime.jsx(reactAriaComponents.MenuItem,{id:"png",className:"flex items-center gap-2 px-3 py-2 text-sm text-text-primary rounded cursor-pointer hover:bg-background-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus focus-visible:ring-offset-1 focus-visible:ring-offset-background-surface data-[focused]:bg-background-hover data-[focused]:ring-2 data-[focused]:ring-border-focus data-[focused]:ring-offset-1 data-[focused]:ring-offset-background-surface",isDisabled:s,children:jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(F,{name:"DownloadSimple",size:14}),l==="png"?"Exporting...":"Export as PNG"]})})]})})]})]})]})};var pl=Sm(Iu());var fb=["stroke","fill","color","stop-color","flood-color","lighting-color"],gb=/var\s*\(/;function bb(e,t){let r=[e,...Array.from(e.querySelectorAll("*"))],o=[t,...Array.from(t.querySelectorAll("*"))],n=Math.min(r.length,o.length);for(let a=0;a<n;a++){let i=r[a],s=o[a];if(!(i instanceof Element)||!(s instanceof Element))continue;let c=window.getComputedStyle(i);for(let l of fb){let d=s.getAttribute(l);if(d&&gb.test(d)){let u=c.getPropertyValue(l);u&&s.setAttribute(l,u.trim());}}if(s instanceof HTMLElement||s instanceof SVGElement)for(let l of fb){let d=l,u=s.style.getPropertyValue(d);if(u&&gb.test(u)){let m=c.getPropertyValue(d);m&&s.style.setProperty(d,m.trim());}}}}function Fu(e,t,r=true){let o=e||"chart";if(r){let n=new Date().toISOString().replace(/[:.]/g,"-").slice(0,-5);return `${o}-${n}.${t}`}return `${o}.${t}`}async function Bu(e,t,r={},o){let n=Array.isArray(t[0])?t:[t];try{switch(e){case "csv":await vT(n,r);break;case "svg":await CT(o,r);break;case "png":await ST(o,r);break;default:throw new Error(`Unsupported export type: ${e}`)}}catch(a){throw console.error("Export failed:",a),new Error(`Failed to export chart as ${e}: ${a instanceof Error?a.message:"Unknown error"}`)}}async function vT(e,t){try{let r=t.yFormat?Ld(t.yFormat):null,o=t.yFormat,n=m=>{if(m==null||m==="")return "";if(!o)return typeof m=="number"?m:String(m);let p=wf(m,o);return p===null?typeof m=="number"?m:String(m):p},a=new Map;e.forEach(m=>{m.forEach(p=>{let f=p.xValue.getTime();a.has(f)||a.set(f,p.xValue);});});let i=Array.from(a.values()).sort((m,p)=>m.getTime()-p.getTime()),s=e.map((m,p)=>{let f=t.seriesLabels?.[p]||`Series ${p+1}`;return r&&!f.includes(`(${r})`)?`${f} (${r})`:f}),c=i.map(m=>{let p={[t.xLabel||"Date"]:m.toLocaleString("en-US",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"})};return e.forEach((f,g)=>{let h=s[g],b=f.find(y=>y.xValue.getTime()===m.getTime());p[h]=b?n(b.yValue):"",b?.category&&(p[`${h} Category`]=b.category);}),p}),l=yT__default.default.unparse(c,{header:!0,skipEmptyLines:!0}),d=new Blob([l],{type:"text/csv;charset=utf-8;"}),u=Fu(t.filename||"chart-data","csv",t.timestamp!==!1);(0,pl.saveAs)(d,u);}catch(r){throw new Error(`CSV export failed: ${r instanceof Error?r.message:"Unknown error"}`)}}async function CT(e,t){if(!e.current)throw new Error("SVG element not found");try{let r=e.current,o=r.cloneNode(!0);if(bb(r,o),!o.querySelector("rect[data-background]")){let l=document.createElementNS("http://www.w3.org/2000/svg","rect");l.setAttribute("width",o.getAttribute("width")||"100%"),l.setAttribute("height",o.getAttribute("height")||"100%"),l.setAttribute("fill","white"),l.setAttribute("data-background","true"),o.insertBefore(l,o.firstChild);}let i=new XMLSerializer().serializeToString(o);i.includes("<?xml")||(i=`<?xml version="1.0" encoding="UTF-8"?>
|
|
28
|
-
`+i),i.includes("xmlns=")||(i=i.replace("<svg",'<svg xmlns="http://www.w3.org/2000/svg"'));let s=new Blob([i],{type:"image/svg+xml;charset=utf-8"}),c=Fu(t.filename||"chart","svg",t.timestamp!==!1);(0,pl.saveAs)(s,c);}catch(r){throw new Error(`SVG export failed: ${r instanceof Error?r.message:"Unknown error"}`)}}async function ST(e,t,r=2){if(!e.current)throw new Error("SVG element not found");let o="";try{let n=e.current,a=n.getBoundingClientRect(),i=n.cloneNode(!0);bb(n,i),i.setAttribute("width",String(a.width)),i.setAttribute("height",String(a.height)),i.removeAttribute("transform");let s=i.getElementsByTagName("text");Array.from(s).forEach(m=>{m.style.fontFamily||(m.style.fontFamily="system-ui, -apple-system, sans-serif"),m.style.fontSize||(m.style.fontSize="12px");});let c=document.createElementNS("http://www.w3.org/2000/svg","rect");c.setAttribute("width",String(a.width)),c.setAttribute("height",String(a.height)),c.setAttribute("fill","white"),i.insertBefore(c,i.firstChild);let d=new XMLSerializer().serializeToString(i);d.includes("xmlns=")||(d=d.replace("<svg",'<svg xmlns="http://www.w3.org/2000/svg"'));let u=new Blob([d],{type:"image/svg+xml;charset=utf-8"});return o=URL.createObjectURL(u),new Promise((m,p)=>{let f=new Image,g=setTimeout(()=>{o&&URL.revokeObjectURL(o),p(new Error("Image loading timeout"));},1e4);f.onload=()=>{clearTimeout(g);try{let h=document.createElement("canvas");h.width=a.width*r,h.height=a.height*r;let b=h.getContext("2d");if(!b)throw new Error("Canvas context not available");b.imageSmoothingEnabled=!0,b.imageSmoothingQuality="high",b.scale(r,r),b.fillStyle="white",b.fillRect(0,0,a.width,a.height),b.drawImage(f,0,0,a.width,a.height),h.toBlob(y=>{if(y){let x=Fu(t.filename||"chart","png",t.timestamp!==!1);(0,pl.saveAs)(y,x),m();}else p(new Error("Failed to create PNG blob"));o&&URL.revokeObjectURL(o);},"image/png",1);}catch(h){o&&URL.revokeObjectURL(o),p(h);}},f.onerror=()=>{clearTimeout(g),o&&URL.revokeObjectURL(o),p(new Error("Failed to load SVG as image"));},f.src=o;})}catch(n){throw o&&URL.revokeObjectURL(o),new Error(`PNG export failed: ${n instanceof Error?n.message:"Unknown error"}`)}}function wT(e){if(typeof window>"u")return false;switch(e){case "csv":return true;case "svg":return typeof XMLSerializer<"u";case "png":return typeof HTMLCanvasElement<"u"&&typeof HTMLCanvasElement.prototype.toBlob=="function";default:return false}}function NT(e){return {csv:"CSV Spreadsheet",svg:"SVG Vector Image",png:"PNG Image"}[e]||"Unknown Format"}function ml({datasets:e,metadata:t,svgRef:r}){return Ke.useCallback(async o=>{try{await Bu(o,e,t,r);}catch(n){throw console.error("Chart export failed:",n),n}},[e,t,r])}var Vu=({data:e,seriesMetadata:t,width:r,height:o,onBrushChange:n,brushRegion:a,margin:i=ze,yDomain:s})=>{let c=Ke.useRef(null),l=Ke.useRef(false),d=Ke.useMemo(()=>e.flat(),[e]),u=Ke.useMemo(()=>({top:10,bottom:15,left:i.left,right:i.right}),[i]),m=r-u.left-u.right,p=Ke.useMemo(()=>{if(d.length===0)return scale.scaleTime({domain:[new Date,new Date],range:[0,m]});let y=new Date(Math.min(...d.map(v=>v.xValue.getTime()))),x=new Date(Math.max(...d.map(v=>v.xValue.getTime())));return scale.scaleTime({domain:[y,x],range:[0,m]})},[d,m]),f=Ke.useMemo(()=>{let y=d.length>0?Math.max(0,...d.map(x=>x.yValue)):1;return scale.scaleLinear({domain:s??[0,y],range:[o-u.bottom,u.top]})},[d,o,s,u.top,u.bottom]),g=y=>{if(l.current)return;if(!y){n(null);return}let{x0:x,x1:v}=y;if(x===v)return;let S=new Date(x),w=new Date(v);if(!(Number.isNaN(S.getTime())||Number.isNaN(w.getTime()))){if(d.length>0){let k=Math.min(...d.map(R=>R.xValue.getTime())),P=Math.max(...d.map(R=>R.xValue.getTime())),E=(P-k)*.05;if(Math.abs(S.getTime()-k)<E&&Math.abs(w.getTime()-P)<E){n(null);return}}n([S,w]);}},h=Ke.useMemo(()=>{if(d.length!==0)return {start:{x:0,y:u.top},end:{x:m,y:o-u.bottom}}},[m,o,d]);Ke.useEffect(()=>{if(!c.current||d.length===0)return;let y=c.current.state;if(y?.isBrushing||y?.activeHandle)return;let x=Math.min(...d.map(T=>T.xValue.getTime())),v=Math.max(...d.map(T=>T.xValue.getTime())),S=a?a[0]:new Date(x),w=a?a[1]:new Date(v),k=c.current.state?.extent;if(k){let T=p.invert(k.x0),E=p.invert(k.x1),I=Math.abs(T.getTime()-S.getTime()),R=Math.abs(E.getTime()-w.getTime());if(I<1e3&&R<1e3)return}l.current=true;let P=T=>{let E=c.current.getExtent({x:p(S),y:u.top},{x:p(w),y:o-u.bottom});return {...T,start:{y:E.y0,x:E.x0},end:{y:E.y1,x:E.x1},extent:E}};c.current.updateBrush(P),setTimeout(()=>{l.current=false;},50);},[a,p,o,d]);let b={fill:"url(#brush_pattern)",fillOpacity:.15,stroke:"var(--color-border-focus)",strokeWidth:1.5,strokeOpacity:.3};return jsxRuntime.jsx("div",{className:"mt-2",children:jsxRuntime.jsxs("svg",{width:r,height:o,children:[jsxRuntime.jsx(pattern.PatternLines,{id:"brush_pattern",height:8,width:8,stroke:"var(--color-text-secondary)",strokeWidth:1,orientation:["diagonal"]}),jsxRuntime.jsxs("g",{transform:`translate(${u.left}, 0)`,children:[e.map((y,x)=>jsxRuntime.jsx(shape.LinePath,{data:y,x:v=>p(v.xValue),y:v=>f(v.yValue),stroke:t[x]?.color||"var(--color-gray-500)",strokeWidth:1.5,opacity:.8},`brush-series-${x}`)),jsxRuntime.jsx(brush.Brush,{xScale:p,yScale:f,width:m,height:o-u.top-u.bottom,margin:{top:u.top,bottom:u.bottom,left:0,right:0},handleSize:8,innerRef:c,resizeTriggerAreas:["left","right"],brushDirection:"horizontal",initialBrushPosition:h,onChange:g,onClick:()=>n(null),selectedBoxStyle:b,useWindowMoveEvents:true})]})]})})};function Do(e){switch(e){case "command":return Mt("--color-action-brand","#111111");case "success":return Mt("--color-feedback-success-border","#278a4a");case "warning":return Mt("--color-feedback-warning-border","#c88420");case "error":return Mt("--color-feedback-error-border","#c42d2d");case "alert":return Mt("--color-feedback-warning-border","#c88420");default:return Mt("--color-text-secondary","#525250")}}function gl({events:e,color:t,showLabels:r=false}){let o=Ke.useContext(Ar),[n,a]=Ke.useState(null);if(!o)return console.warn("ChartEventMarkers must be used within a ChartContainer"),null;let{xScale:i,yScale:s,height:c,tooltip:l,datasets:d,seriesMetadata:u,seriesTypes:m,categoryColors:p}=o,f=e.filter(b=>{let y=i(b.timestamp);return y>=ze.left&&y<=i.range()[1]}),g=Ke.useCallback((b,y)=>{a(y);let x=i(b.timestamp),v=x>(i.range()[1]-ze.right-ze.left)/2+ze.left,S=[];d&&u&&d.forEach((P,T)=>{if(P.length===0)return;let E=d3Array.bisector(V=>V.xValue).left,I=E(P,b.timestamp),R=P[I-1],L=P[I],M;if(!R)M=L;else if(!L)M=R;else {let V=Math.abs(b.timestamp.getTime()-R.xValue.getTime()),z=Math.abs(b.timestamp.getTime()-L.xValue.getTime());M=V<z?R:L;}M&&u[T]&&S.push({label:u[T].label,value:M.yValue,color:u[T].color,type:m?.[T]||"line",...M.category&&{category:M.category,categoryColor:p?.[M.category]}});});let k=f.filter(P=>Math.abs(i(P.timestamp)-x)<=10).map(P=>({label:P.label,color:t||Do(P.type),metadata:P.metadata}));S.push({label:k.length>1?`${k.length} events`:b.label,value:0,color:t||Do(b.type),type:"event"}),l.show({xValue:b.timestamp,series:S,x,y:S.length>1&&typeof S[0].value=="number"?s(S[0].value):c/2,position:v?"left":"right",isEvent:true,eventMetadata:b.metadata,eventItems:k});},[i,s,c,l,t,d,u,m,p,f]),h=Ke.useCallback(()=>{a(null),l.hide();},[l]);return f.length===0?null:jsxRuntime.jsx("g",{className:"chart-event-markers","data-testid":"chart-event-markers",children:f.map((b,y)=>{let x=i(b.timestamp),v=t||Do(b.type),S=n===y;return jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("line",{x1:x,y1:ze.top,x2:x,y2:c-ze.bottom,stroke:v,strokeWidth:S?3:2,strokeDasharray:"4 4",strokeOpacity:S?.9:.6,pointerEvents:"none"}),jsxRuntime.jsx("circle",{cx:x,cy:ze.top,r:S?5:4,fill:v,stroke:"var(--color-background-surface)",strokeWidth:2,pointerEvents:"none"}),jsxRuntime.jsx("circle",{cx:x,cy:c-ze.bottom,r:S?5:4,fill:v,stroke:"var(--color-background-surface)",strokeWidth:2,pointerEvents:"none"}),r&&jsxRuntime.jsx("text",{x,y:ze.top-8,textAnchor:"middle",fill:"var(--color-text-secondary)",fontSize:11,fontWeight:500,pointerEvents:"none",children:b.label}),jsxRuntime.jsx("rect",{x:x-10,y:ze.top,width:20,height:c-ze.top-ze.bottom,fill:"transparent",style:{cursor:"pointer"},onMouseEnter:()=>g(b,y),onMouseLeave:h})]},`${b.timestamp.getTime()}-${y}`)})})}function bl({spans:e,opacity:t=.25,color:r}){let o=Ke.useContext(Ar),[n,a]=Ke.useState(null),i=o?.xScale,s=o?.height,c=o?.tooltip,[l,d]=i?.domain()??[new Date(0),new Date(0)],[u,m]=i?.range()??[0,0],p=Ke.useCallback((S,w)=>{if(!i||!c)return;a(w);let k=S.start<l?l:S.start,P=S.end>d?d:S.end,T=(i(k)+i(P))/2,E=T>(m-u)/2+u,R=e.filter(L=>L.end>L.start&&L.start<S.end&&L.end>S.start).map(L=>({label:L.label,color:L.color??r??Do(L.type),metadata:L.metadata}));c.show({xValue:S.start,series:[{label:R.length>1?`${R.length} scheduled commands`:S.label,value:0,color:S.color??r??Do(S.type),type:"event"}],x:T,y:(s??0)/2,position:E?"left":"right",isEvent:true,eventMetadata:S.metadata,eventItems:R});},[i,s,c,r,l,d,u,m,e]),f=Ke.useCallback(()=>{a(null),c?.hide();},[c]);if(!o)return console.warn("ChartEventSpans must be used within a ChartContainer"),null;let{xScale:g,height:h}=o,b=ze.top,x=h-ze.bottom-b,v=e.filter(S=>S.end>S.start);return v.length===0?null:jsxRuntime.jsx("g",{className:"chart-event-spans","data-testid":"chart-event-spans",children:v.map((S,w)=>{let k=S.start<l?l:S.start,P=S.end>d?d:S.end;if(k>=d||P<=l)return null;let T=g(k),I=g(P)-T;if(I<=0)return null;let R=S.color??r??Do(S.type);return jsxRuntime.jsx("rect",{x:T,y:b,width:I,height:x,fill:R,fillOpacity:n===w?Math.min((t??.25)*1.8,1):t??.25,pointerEvents:"all",style:{cursor:"pointer"},onMouseEnter:()=>p(S,w),onMouseLeave:f},`${S.start.getTime()}-${S.end.getTime()}-${w}`)})})}var Nb=Ke.createContext(false);function GT({children:e}){return jsxRuntime.jsx(Nb.Provider,{value:true,children:e})}function Vi(e){let t=Ke.useContext(Nb),[r,o]=Ke.useState(false),[n,a]=Ke.useState(null),i=Ke.useRef(null),s=Ke.useCallback(u=>{if(i.current?.disconnect(),i.current=null,!u||typeof ResizeObserver>"u")return;let m=new ResizeObserver(([p])=>{if(!p)return;let{width:f,height:g}=p.contentRect;a(h=>h&&h.width===f&&h.height===g?h:{width:f,height:g});});m.observe(u),i.current=m;},[]);Ke.useEffect(()=>()=>i.current?.disconnect(),[]);let c=Ke.useCallback(()=>{o(false),a(null);},[]),l=t?null:jsxRuntime.jsx(_,{variant:"icon",size:"sm",icon:"ArrowsOutSimple","aria-label":`Expand ${e} chart`,onPress:()=>o(true)}),d=Ke.useCallback(u=>r&&!t?jsxRuntime.jsx(or,{isOpen:true,onClose:c,title:e,contentPadding:false,maxWidth:"min(1200px, 100vw)",minWidth:"min(360px, 100vw)",height:"82vh",mobileHeight:"82vh",children:jsxRuntime.jsx("div",{ref:s,className:"h-full w-full p-4",children:u})}):u,[r,t,c,e,s]);return {isExpanded:r,action:l,expandedSize:n,present:d}}var Vn=({data:e,color:t="var(--color-viz-default)",strokeWidth:r=3,strokeDasharray:o,categoryColors:n={},maxGapMs:a,animate:i=true})=>{let{xScale:s,yScale:c,animationSettings:l}=Bn(),d=c.range(),u=Object.keys(n).length>0,m=x=>x.category?n[x.category]??t:t,p=x=>x.chartYValue??x.yValue,f=e.length===1?e[0]:void 0,g=a!=null?sl(e,a):e,h=i?void 0:"non-scaling-stroke",b=f?jsxRuntime.jsx("circle",{cx:s(f.xValue),cy:c(p(f)),r,fill:u?m(f):t}):u?e.slice(0,-1).map((x,v)=>{let S=e[v+1];return a!=null&&a>0&&S.xValue.getTime()-x.xValue.getTime()>a?null:jsxRuntime.jsx(shape.LinePath,{data:[x,S],x:w=>s(w.xValue),y:w=>c(p(w)),stroke:m(x),strokeWidth:r,strokeDasharray:o,strokeLinecap:"round",vectorEffect:h,curve:curve.curveLinear},`${x.xValue.getTime()}-${S.xValue.getTime()}`)}):jsxRuntime.jsx(shape.LinePath,{data:g,x:x=>x?s(x.xValue):0,y:x=>x?c(p(x)):0,defined:x=>x!=null,stroke:t,strokeWidth:r,strokeDasharray:o,strokeLinecap:"round",vectorEffect:h,curve:curve.curveLinear}),y={transformOrigin:`0 ${d[0]}px`,transformBox:"fill-box",isolation:"isolate"};return i?jsxRuntime.jsx(framerMotion.motion.g,{initial:{scaleY:0},animate:{scaleY:1},transition:{duration:l.duration,ease:l.ease},style:y,children:b}):jsxRuntime.jsx("g",{style:y,children:b})};var Mb=e=>e.type===on||e.type===Vn||e.type===cl,qT=e=>e.type===gl||e.type===bl,QT=(e,t,r)=>{if(!e.tooltipRange||e.baseline===void 0)return;let o=typeof e.baseline=="function"?e.baseline(t,r):e.baseline;return typeof o=="number"&&Number.isFinite(o)&&o!==t.yValue?o:void 0},ZT=d3Array.bisector(e=>e.xValue).left,_T=()=>jsxRuntime.jsx("div",{className:"flex h-full items-center justify-center",children:jsxRuntime.jsx("p",{className:"text-text-secondary",children:"No data available"})}),$T=()=>jsxRuntime.jsxs("div",{className:"flex h-full flex-col gap-4 p-4",children:[jsxRuntime.jsx(K,{className:"h-full w-full"}),jsxRuntime.jsxs("div",{className:"flex gap-4",children:[jsxRuntime.jsx(K,{className:"h-4 w-24"}),jsxRuntime.jsx(K,{className:"h-4 w-24"})]})]}),eP=({parentWidth:e,parentHeight:t,yFormatter:r={type:"number"},yDomain:o,referenceLines:n,isLoading:a=false,enableZoom:i=false,enableBrush:s=false,brushHeight:c=60,onZoomChange:l,zoomDomain:d,hiddenSeriesLabels:u,onHiddenSeriesChange:m,hideBottomBar:p=false,headerActions:f,headerControls:g,title:h,children:b})=>{let y=u!==void 0,x=d!==void 0,[v,S]=Ke.useState(null),[w,k]=Ke.useState(null),P=x?d:w,[T,E]=Ke.useState(()=>new Set),I=y?u:T,R=Ke.useRef(null),L=Ke.useId(),M=Ke.useRef(0),V=Ke.useRef(""),z=Ke.useRef(null),{colorMode:U}=Wt(),Q=Ke.useMemo(()=>To(),[U]),Z=Ke.useMemo(()=>pi(),[U]),{datasets:H,seriesMetadata:j,categoryInfo:G,categoryColors:A,categoryLabels:W,seriesTypes:N}=Ke.useMemo(()=>{let ie=Ke.Children.toArray(b).filter(Le=>Ke.isValidElement(Le)&&Mb(Le)),Ae=ie.filter(Le=>Le.props.data).length,Se=[],Fe=[],Qe=[],it=null,Me=null;ie.forEach((Le,ht)=>{let De=Le.props;if(!De.data)return;Se.push(De.data);let ga=("color"in De&&De.color?De.color:void 0)||(Ae===1?Z:Q[ht%Q.length]),yn=Le.type===on;Fe.push({label:"label"in De&&De.label||`Series ${Se.length}`,color:ga,...yn&&"baseline"in De&&De.baseline!==void 0?{baseline:De.baseline,tooltipRange:"tooltipRange"in De&&De.tooltipRange||false}:{}});let Zc=yn?"area":Le.type===Vn?"line":"bar";Qe.push(Zc),"categoryColors"in De&&De.categoryColors&&(it=De.categoryColors),"categoryLabels"in De&&De.categoryLabels&&(Me=De.categoryLabels);});let ot=null;if(it){let Le=new Set;Se.forEach(ht=>{ht.forEach(De=>{De.category&&Le.add(De.category);});}),ot=Array.from(Le).map(ht=>({label:Me?.[ht]||ht,color:it[ht]||"#6b7280"}));}return {datasets:Se,seriesMetadata:Fe,categoryInfo:ot,categoryColors:it,categoryLabels:Me,seriesTypes:Qe}},[b,Z,Q,U]),C=Vi(h),D=C.expandedSize?.width??e,B=C.expandedSize?.height??t,ee=!p?C.action:null,le=f||ee?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[f,ee]}):void 0,{headerRef:$,headerHeight:ae}=ka(!!le,!!g),Ve=p?0:60,te=s?c+8:0,ne=B-ae-Ve-te,oe=Math.max(100,ne),pe=Ke.useCallback(J=>J?I.has(J):false,[I]),Re=Ke.useMemo(()=>j.map((J,ie)=>pe(J.label)?null:ie).filter(J=>J!==null),[j,pe]),rt=Ke.useMemo(()=>Re.map(J=>H[J]).filter(J=>!!J),[H,Re]),Bt=Ke.useMemo(()=>Re.map(J=>j[J]).filter(J=>!!J),[j,Re]),to=Ke.useMemo(()=>Re.map(J=>N[J]).filter(J=>!!J),[N,Re]),Wr=to.findIndex(J=>J==="bar"),me=Wr!==-1,ve=Ke.useCallback((J,ie)=>{let Ae=J.has(ie);if(!Ae&&j.reduce((Qe,it)=>J.has(it.label)||it.label===ie?Qe:Qe+1,0)<1)return J;let Se=new Set(J);return Ae?Se.delete(ie):Se.add(ie),Se},[j]),O=Ke.useCallback(J=>{if(y){let ie=u;if(!ie.has(J)&&j.reduce((Fe,Qe)=>ie.has(Qe.label)||Qe.label===J?Fe:Fe+1,0)<1){S(null);return}m?.(Se=>ve(Se,J));}else E(ie=>ve(ie,J));S(null);},[y,u,m,j,ve]),Y=Ke.useMemo(()=>j.map(J=>J.label).join(""),[j]),ge=Ke.useRef(Y);Ke.useEffect(()=>{ge.current!==Y&&(ge.current=Y,y||E(J=>J.size===0?J:new Set));},[Y,y]);let se=Ke.useMemo(()=>rt.flat(),[rt]),q=Ke.useMemo(()=>{if(se.length===0)return null;let J=[...se].sort((ie,Ae)=>ie.xValue.getTime()-Ae.xValue.getTime());return [J[0].xValue,J[J.length-1].xValue]},[se]),xe=P||q,Ge=Ke.useCallback(J=>{x?l?.(J):k(J);},[x,l]),mt=Ke.useMemo(()=>xe?H.map(ie=>ie.filter(Ae=>Ae.xValue>=xe[0]&&Ae.xValue<=xe[1])):H,[H,xe]),qe=Ke.useMemo(()=>Re.map(J=>mt[J]??[]),[Re,mt]);Ke.useEffect(()=>{l&&l(P);},[P,l]);let ro=Ke.useMemo(()=>Re.flatMap(J=>mt[J]??[]),[mt,Re]),Ee=Ke.useMemo(()=>Mi(ro,oe,r,o),[ro,oe,r,o]),fa=Ke.useRef(JSON.stringify(r)),oo=Ke.useRef(null),Ur=Ke.useMemo(()=>{let[J,ie]=Ee.domain(),Ae=Math.max(Math.abs(J),Math.abs(ie)),Se=JSON.stringify(r);if(Se!==fa.current&&(fa.current=Se,oo.current=null),oo.current!==null)return oo.current;if(Ae===0)return Va(r,0);let Fe=Va(r,Ae);return oo.current=Fe,Fe},[Ee,r]),ci=Ke.useMemo(()=>{let J=oe-ze.top-ze.bottom;return Oa(J)},[oe]),Ne=Ke.useMemo(()=>{let J=Jr(Ur),ie=J.tickFormat||J.format,Se=Ee.ticks(ci).map(it=>ie(it)),Fe=za(Se,12,"system-ui"),Qe=Math.ceil(Fe)+12;return {...ze,left:Math.max(Qe,30),right:8}},[Ee,Ur,ci]),gr=Ke.useMemo(()=>xe?scale.scaleTime({domain:xe,range:[Ne.left,D-Ne.right]}):Eu(se,D),[xe,se,D,Ne]),dC=Ke.useCallback(J=>{if(!q)return;let{scaleX:ie,translateX:Ae}=J,Se=D-Ne.left-Ne.right,[Fe,Qe]=q,it=Qe.getTime()-Fe.getTime();if(it<=0){Ge(null);return}let Me=-Ae,ot=Me+Se,Le=Se*ie/it,ht=Me/Le,De=ot/Le,hn=new Date(Fe.getTime()+ht),ga=new Date(Fe.getTime()+De),yn=Math.abs(hn.getTime()-Fe.getTime()),Zc=Math.abs(ga.getTime()-Qe.getTime()),Cm=it*.02;yn<Cm&&Zc<Cm?Ge(null):Ge([hn,ga]);},[q,D,Ne,Ge]),uC=Ke.useCallback(J=>{let{left:ie}=R.current?.getBoundingClientRect()||{left:0},Ae=J.clientX-ie;if(J.timeStamp-(M.current||0)<16)return;M.current=J.timeStamp;let Se=gr.invert(Ae),Fe=qe.map((Me,ot)=>{if(!Me||Me.length===0)return null;let Le=ZT(Me,Se,1);if(Le===0)return {point:Me[0],index:0,datasetIndex:ot};if(Le>=Me.length)return {point:Me[Me.length-1],index:Me.length-1,datasetIndex:ot};let ht=Me[Le-1],De=Me[Le];if(!ht||!De)return null;let hn=Math.abs(ht.xValue.getTime()-Se.getTime()),ga=Math.abs(De.xValue.getTime()-Se.getTime()),yn=hn<ga;return {point:yn?ht:De,index:yn?Le-1:Le,datasetIndex:ot}}).filter(Me=>Me!==null&&Bt[Me.datasetIndex]!==void 0).map(({point:Me,index:ot,datasetIndex:Le})=>({label:Bt[Le].label,value:Me.yValue,baselineValue:QT(Bt[Le],Me,ot),color:Bt[Le].color,point:Me,type:to[Le]}));if(Fe.length===0){S(null);return}let Qe=gr(Fe[0].point.xValue),it=Qe>(D-Ne.right-Ne.left)/2+Ne.left;S({xValue:Fe[0].point.xValue,series:Fe.map(({label:Me,value:ot,baselineValue:Le,color:ht,point:De,type:hn})=>({label:Me,value:ot,...Le!==void 0?{baselineValue:Le}:{},chartY:De.chartYValue??ot,showMarker:De.showTooltipMarker??true,color:ht,type:hn,category:De.category,categoryColor:De.category&&A?A[De.category]:void 0,...De.extraTooltipRows&&De.extraTooltipRows.length>0?{extraTooltipRows:De.extraTooltipRows}:{}})),x:Qe,y:Ee(Fe[0].point.chartYValue??Fe[0].value),position:it?"left":"right"});},[qe,Bt,to,gr,Ee,D,A,Ne]),pC=()=>{S(null);},mC=Ke.useCallback(()=>{Ge(null),z.current&&z.current.reset();},[Ge]),fC=Ke.useCallback(J=>{let ie={scaleX:1,scaleY:1,translateX:0,translateY:0,skewX:0,skewY:0};if(!J||!q)return ie;let[Ae,Se]=q,Fe=Se.getTime()-Ae.getTime();if(Fe<=0)return ie;let[Qe,it]=J,Me=it.getTime()-Qe.getTime();if(Me<=0)return ie;let ot=Fe/Me,Le=D-Ne.left-Ne.right,ht=Qe.getTime()-Ae.getTime();return {scaleX:ot,scaleY:1,translateX:-(ht/Fe)*Le*ot,translateY:0,skewX:0,skewY:0}},[q,D,Ne]),Ss=Ke.useCallback(J=>{if(!(z.current&&q))return;let[ie,Ae]=q,Se=Ae.getTime()-ie.getTime();if(Se<=0){z.current.reset();return}if(!J){z.current.reset();return}let[Fe,Qe]=J,it=Qe.getTime()-Fe.getTime();if(it<=0){z.current.reset();return}let Me=Se/it,ot=D-Ne.left-Ne.right,ht=-((Fe.getTime()-ie.getTime())/Se)*ot*Me;z.current.setTransformMatrix({scaleX:Me,scaleY:1,translateX:ht,translateY:0,skewX:0,skewY:0});},[q,D,Ne]),gC=Ke.useCallback(J=>{Ge(J),Ss(J);},[Ge,Ss]);Ke.useEffect(()=>{x&&Ss(d??null);},[x,d,Ss]);let bC={width:D,height:oe,xScale:gr,yScale:Ee,yFormatter:Ur,animationSettings:il,tooltip:{data:v,show:S,hide:()=>S(null)},datasets:qe,seriesMetadata:Bt,seriesTypes:to,categoryColors:A||void 0,categoryLabels:W||void 0},xC=Ke.Children.toArray(b),xm=0,hm=[],ym=[],qc=[];xC.forEach(J=>{if(!Ke.isValidElement(J)){qc.push(J);return}if(qT(J))ym.push(J);else if(Mb(J)){let ie=xm;xm++;let Ae=J.props,Se=j[ie]?.label;if(pe(Se))return;hm.push(Ke__namespace.default.cloneElement(J,{...Ae,data:mt[ie]||Ae.data,color:j[ie]?.color}));}else qc.push(J);});let hC=Re.length,yC=(G||j).map(J=>{let ie=!G&&pe(J.label);return {category:J.label,fill:J.color,isHidden:ie,isDisabled:!G&&!ie&&hC<=1}}),vC=typeof r=="object"&&r!==null&&typeof r.type=="string",CC=ml({datasets:rt,metadata:{xLabel:"Date",yLabel:"Value",seriesLabels:Bt.map(J=>J.label),timestamp:true,...vC?{yFormat:r}:{}},svgRef:R}),Qc=jsxRuntime.jsx(Ta,{title:h,controls:g,actions:le,containerRef:$,marginRight:Ne.right});if(a)return C.present(jsxRuntime.jsxs("div",{className:"relative flex h-full flex-col",children:[Qc,jsxRuntime.jsx($T,{})]}));if(H.length===0)return C.present(jsxRuntime.jsxs("div",{className:"relative flex h-full flex-col",children:[Qc,jsxRuntime.jsx(_T,{})]}));let vm=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("title",{children:h}),jsxRuntime.jsx("g",{children:Ee.ticks(ci).map(J=>{let ie=Math.abs(J)<Number.EPSILON;return jsxRuntime.jsx(shape.Line,{from:{x:Ne.left,y:Ee(J)},to:{x:D-Ne.right,y:Ee(J)},stroke:ie?"var(--color-border-default)":"var(--color-border-muted)",strokeWidth:ie?1.5:1},`grid-line-${J}`)})}),jsxRuntime.jsx("defs",{children:jsxRuntime.jsx("clipPath",{id:L,children:jsxRuntime.jsx("rect",{x:gr.range()[0],y:Ee.range()[1],width:gr.range()[1]-gr.range()[0],height:Ee.range()[0]-Ee.range()[1]})})}),jsxRuntime.jsx("g",{clipPath:`url(#${L})`,children:hm}),qc,n&&n.length>0&&jsxRuntime.jsx("g",{children:n.map(J=>{let ie=Ee(J.value),Ae=J.color??"var(--color-error-base)";return jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx(shape.Line,{from:{x:Ne.left,y:ie},to:{x:D-Ne.right,y:ie},stroke:Ae,strokeWidth:1.5,strokeDasharray:"6 4"}),J.label&&jsxRuntime.jsx("text",{x:D-Ne.right-4,y:ie-4,textAnchor:"end",fontSize:11,fill:Ae,children:J.label})]},`ref-line-${J.value}`)})}),jsxRuntime.jsx(Ir.Bottom,{top:oe-Ne.bottom,scale:gr,width:D-Ne.left-Ne.right}),jsxRuntime.jsx(Ir.Left,{left:Ne.left,scale:Ee,yFormatter:Ur,height:oe-Ne.top-Ne.bottom}),v&&!v.isEvent&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[me?(()=>{let J=rt[Wr]??[];if(J.length===0)return null;let ie=[...J].sort((Le,ht)=>Le.xValue.getTime()-ht.xValue.getTime()),Ae=ie.findIndex(Le=>Le.xValue.getTime()===v.xValue.getTime()),Se=ie[Ae+1],Fe=ie.length>1&&Se?Se.xValue.getTime()-v.xValue.getTime():15*6e4,Qe=Math.abs(gr(new Date(v.xValue.getTime()+Fe))-gr(v.xValue)),Me=gr(v.xValue)-Qe/2,ot=Ee.range();return jsxRuntime.jsx("rect",{x:Me,y:ot[1],width:Qe,height:ot[0]-ot[1],className:"fill-background-muted",opacity:.5,pointerEvents:"none",style:{transition:"all 100ms ease-out"}})})():null,v.series.filter(J=>J.type!=="bar"&&J.showMarker!==false).map(J=>jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("circle",{cx:gr(v.xValue),cy:Ee(J.chartY??J.value),r:8,fill:"white",stroke:J.color,strokeWidth:2,style:{transition:"all 100ms ease-out"}}),jsxRuntime.jsx("circle",{cx:gr(v.xValue),cy:Ee(J.chartY??J.value),r:4,fill:J.color,style:{transition:"all 100ms ease-out"}})]},`highlight-${J.label}`))]}),jsxRuntime.jsx("rect",{x:Ne.left,y:Ne.top,width:D-Ne.left-Ne.right,height:oe-Ne.top-Ne.bottom,fill:"transparent",style:{cursor:i?"grab":"crosshair",touchAction:"none"},onMouseMove:uC,onMouseLeave:pC}),ym]});return C.present(jsxRuntime.jsx("div",{className:"relative flex h-full flex-col",children:jsxRuntime.jsxs(Ar.Provider,{value:bC,children:[Qc,i?jsxRuntime.jsx(zoom.Zoom,{initialTransformMatrix:fC(P),width:D,height:oe,scaleXMin:1,scaleXMax:20,scaleYMin:1,scaleYMax:1,constrain:J=>{let{scaleX:ie,translateX:Ae}=J,Se=Math.max(1,Math.min(20,ie)),Fe=1,Qe=D-Ne.left-Ne.right,it=0,Me=Qe*(1-Se),ot=Math.max(Me,Math.min(it,Ae));return {...J,scaleX:Se,scaleY:Fe,translateX:ot,translateY:0}},children:J=>{if(z.current=J,J.transformMatrix){let{scaleX:ie,translateX:Ae}=J.transformMatrix,Se=`${ie.toFixed(4)}-${Ae.toFixed(2)}`;Se!==V.current&&(V.current=Se,setTimeout(()=>{dC(J.transformMatrix);},0));}return jsxRuntime.jsx("svg",{width:D,height:oe,className:"overflow-visible",ref:ie=>{R.current=ie,J.containerRef.current!==ie&&(J.containerRef.current=ie);},role:"img","aria-label":h,style:{cursor:J.isDragging?"grabbing":"grab",touchAction:"none"},onMouseDown:J.dragStart,onMouseMove:J.dragMove,onMouseUp:J.dragEnd,onMouseLeave:()=>{J.isDragging&&J.dragEnd();},onTouchStart:J.dragStart,onTouchMove:J.dragMove,onTouchEnd:J.dragEnd,children:vm})}},`zoom-${Math.round(D)}x${Math.round(oe)}`):jsxRuntime.jsx("svg",{width:D,height:oe,className:"overflow-visible",ref:R,role:"img","aria-label":h,children:vm}),jsxRuntime.jsx(nn,{data:v,formatter:Ur}),s&&q&&jsxRuntime.jsx(Vu,{data:rt,seriesMetadata:Bt,width:D,height:c,onBrushChange:gC,brushRegion:P,margin:Ne,...o?{yDomain:o}:{}}),!p&&jsxRuntime.jsx(Ga,{onExport:CC,items:yC,marginLeft:0,marginRight:Ne.right,isZoomed:P!==null,onResetZoom:mC,onLegendItemToggle:G?void 0:O})]})}))},Lb=responsive.withParentSize(eP);var iP=e=>e.toLocaleString(),sP=e=>`${Math.round(e*100)}%`,Fb=({data:e,width:t=800,height:r=400,padding:o=0,barGap:n=30,formatValue:a=iP,formatPercentage:i=sP,color:s,showScale:c=true,showOverallConversion:l=true,overallConversionLabel:d="Overall Conversion:",activeStageId:u,onStageClick:m,onStageHover:p,className:f,style:g,"aria-label":h="Funnel chart"})=>{let[b,y]=Ke.useState(null),[x,v]=Ke.useState(t),S=Ke.useRef(null),w=u??b,k=Ke.useId(),P=s||"var(--color-viz-default)";Ke.useEffect(()=>{if(!S.current)return;let M=new ResizeObserver(V=>{for(let z of V)v(z.contentRect.width);});return M.observe(S.current),()=>{M.disconnect();}},[]);let{layout:T,overallConversion:E}=Ke.useMemo(()=>{if(e.length===0)return {layout:[],overallConversion:0};let M=e[0].value,V=l?60:0,z=r-o*2-V,U=(e.length-1)*n,Q=(z-U)/e.length,Z=e.map((j,G)=>{let A=o+V+G*(Q+n),W=M===0?0:j.value/M,N=W,C=G===0?null:e[G-1].value,D=C==null||C===0?0:1-j.value/C;return {stage:j,index:G,y:A,barHeight:Q,widthPercent:W,conversionRate:N,dropOff:D}}),H=M===0?0:e[e.length-1].value/M;return {layout:Z,overallConversion:H,maxValue:M}},[e,x,r,o,n,c,l]);if(e.length===0)return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex h-full min-h-[280px] w-full items-center justify-center rounded-lg border border-dashed border-border-default bg-background-surface text-sm font-medium text-text-secondary",f),style:{width:t,height:r,...g},children:"No funnel data available"});let I=c?60:0,R=o+I,L=x-o*2-I;return jsxRuntime.jsx("div",{ref:S,className:tailwindMerge.twMerge("relative w-full overflow-hidden rounded-lg bg-background-surface",f),style:{height:r,...g},"aria-label":h,role:"img",children:jsxRuntime.jsxs("svg",{width:"100%",height:r,className:"relative",children:[jsxRuntime.jsxs("defs",{children:[jsxRuntime.jsx(gradient.LinearGradient,{id:`${k}-bar`,from:P,to:P,toOpacity:.85}),jsxRuntime.jsx(gradient.LinearGradient,{id:`${k}-bg`,from:P,to:P,fromOpacity:.01,toOpacity:.15,x1:"0",y1:"0",x2:"1",y2:"0"})]}),l&&jsxRuntime.jsxs("text",{x:R,y:o+20,className:"fill-text-primary text-sm font-medium",children:[jsxRuntime.jsx("tspan",{className:"fill-text-secondary",children:d})," ",i(E)]}),c&&jsxRuntime.jsx("g",{children:T.map(M=>{let V=M.y+M.barHeight/2;return jsxRuntime.jsx("text",{x:o+I-12,y:V,textAnchor:"end",dominantBaseline:"middle",className:"fill-text-secondary text-xs",children:i(M.conversionRate)},M.stage.id)})}),T.map(M=>{let V=w===M.stage.id,z=L*M.widthPercent;return jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("rect",{x:R,y:M.y,width:L,height:M.barHeight,fill:`url(#${k}-bg)`,rx:4}),jsxRuntime.jsx(framerMotion.motion.rect,{x:R,y:M.y,width:z,height:M.barHeight,fill:`url(#${k}-bar)`,rx:4,initial:{width:0},animate:{width:z},transition:{duration:.6,delay:M.index*.1,ease:"easeOut"},opacity:V||w==null?1:.5,style:{cursor:m||p?"pointer":"default",transition:"opacity 150ms ease"},onMouseEnter:()=>{y(M.stage.id),p?.(M.stage);},onMouseLeave:()=>{y(null),p?.(null);},onClick:()=>m?.(M.stage)}),jsxRuntime.jsx("rect",{x:R+10,y:M.y+M.barHeight/2-10,width:70,height:20,className:"fill-background-surface stroke-border-default",strokeWidth:1,rx:4,style:{pointerEvents:"none"}}),jsxRuntime.jsx("text",{x:R+16,y:M.y+M.barHeight/2+4,className:"fill-text-primary text-xs font-semibold",style:{pointerEvents:"none"},children:a(M.stage.value)}),jsxRuntime.jsxs("text",{x:R,y:M.y-8,className:"fill-text-secondary text-xs",style:{pointerEvents:"none"},children:[jsxRuntime.jsx("tspan",{children:M.index+1})," ",M.stage.label]}),M.stage.secondaryValue&&jsxRuntime.jsx("text",{x:R+16,y:M.y-24,className:"fill-text-secondary text-xs",style:{pointerEvents:"none"},children:M.stage.secondaryValue}),M.index>0&&M.dropOff>0&&jsxRuntime.jsxs("text",{x:R+L,y:M.y-8,textAnchor:"end",className:"fill-text-secondary text-xs",children:[i(M.dropOff)," drop"]}),M.stage.annotation&&jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("rect",{x:R+z+8,y:M.y+8,width:60,height:24,rx:3,className:"fill-background-muted"}),jsxRuntime.jsx("text",{x:R+z+16,y:M.y+20,className:"fill-text-secondary text-xs font-medium",children:M.stage.annotation})]})]},M.stage.id)})]})})};function Bb(){let e=new Map;return {publish(t,r){for(let[o,n]of e)o!==t&&n(r);},subscribe(t,r){return e.set(t,r),()=>{e.delete(t);}}}}var cP=d3Array.bisector(e=>e.xValue).left,dP=(e,t,r)=>{if(!e.tooltipRange||e.baseline===void 0)return;let o=typeof e.baseline=="function"?e.baseline(t,r):e.baseline;return typeof o=="number"&&Number.isFinite(o)&&o!==t.yValue?o:void 0};function Vb(e){let{mouseX:t,datasets:r,seriesMetadata:o,seriesTypes:n,xScale:a,yScale:i,plotLeft:s,plotRight:c}=e,l=a.invert(t),d=r.map((p,f)=>{if(!p||p.length===0)return null;let g=cP(p,l,1);if(g===0)return {point:p[0],index:0,datasetIndex:f};if(g>=p.length)return {point:p[p.length-1],index:p.length-1,datasetIndex:f};let h=p[g-1],b=p[g];if(!h||!b)return null;let y=Math.abs(h.xValue.getTime()-l.getTime()),x=Math.abs(b.xValue.getTime()-l.getTime()),v=y<x;return {point:v?h:b,index:v?g-1:g,datasetIndex:f}}).filter(p=>p!==null&&o[p.datasetIndex]!==void 0).map(({point:p,index:f,datasetIndex:g})=>({label:o[g].label,value:p.yValue,baselineValue:dP(o[g],p,f),color:o[g].color,point:p,type:n[g]}));if(d.length===0)return null;let u=a(d[0].point.xValue),m=u>(s+c)/2;return {xValue:d[0].point.xValue,series:d.map(({label:p,value:f,baselineValue:g,color:h,point:b,type:y})=>({label:p,value:f,...g!==void 0?{baselineValue:g}:{},chartY:b.chartYValue??f,showMarker:b.showTooltipMarker??true,color:h,type:y,...b.category!==void 0?{category:b.category}:{},...b.extraTooltipRows&&b.extraTooltipRows.length>0?{extraTooltipRows:b.extraTooltipRows}:{}})),x:u,y:i(d[0].point.chartYValue??d[0].value),position:m?"left":"right"}}var Hb=e=>e instanceof Date&&!Number.isNaN(e.getTime()),fP=160;function hl(e,t,r){let[o,n]=Ke.useState(null);Ke.useImperativeHandle(r,()=>({setPreview:n}),[]);let[a,i]=e.range(),s=Ke.useMemo(()=>o?d3Scale.scaleTime().domain([new Date(o[0]),new Date(o[1])]).range([a,i]):e,[o,e,a,i]),c=s.domain(),l=c[0],d=c[c.length-1],u=Hb(l)&&Hb(d),m=t<400,p=Math.max(2,Math.min(8,Math.floor(t/(m?70:110)))),f=Ke.useMemo(()=>{if(!u)return [];let g=i-a;if(g<=0)return s.ticks(p);let[h,b]=s.domain(),y=h.getTime(),x=b.getTime(),v=(x-y)/g,S=Math.min(fP,g),w=S*v,k=d3Scale.scaleTime().domain([new Date(y-w),new Date(x+w)]).range([a-S,i+S]),P=d3Time.timeTickInterval(h,b,p);if(P)return k.ticks(P);let T=Math.max(2,Math.round(p*(g+2*S)/g));return k.ticks(T)},[s,p,u,a,i]);return {activeScale:s,ticks:f,start:l,end:d,valid:u,compact:m,rangeStart:a,rangeEnd:i}}var hP=6,Gb=20,Uu=Ke.forwardRef(({top:e,scale:t,width:r},o)=>{let{activeScale:n,ticks:a,start:i,end:s,valid:c,compact:l,rangeStart:d,rangeEnd:u}=hl(t,r,o),m=a.length>=2?a[1].getTime()-a[0].getTime():s.getTime()-i.getTime(),p=Ke.useMemo(()=>c?kf(m,{compact:l}):()=>"",[m,l,c]),f=Ke.useId(),g=Math.min(d,u),h=Math.abs(u-d);return jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("line",{x1:d,x2:u,y1:e,y2:e,stroke:"var(--color-border-muted)",strokeWidth:1}),a.length>0&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("defs",{children:jsxRuntime.jsx("clipPath",{id:f,children:jsxRuntime.jsx("rect",{x:g,y:e-4,width:h,height:Gb+16})})}),jsxRuntime.jsx("g",{clipPath:`url(#${f})`,children:a.map(b=>jsxRuntime.jsxs("g",{transform:`translate(${n(b)},${e})`,children:[jsxRuntime.jsx("line",{x1:0,x2:0,y1:0,y2:hP,stroke:"var(--color-border-muted)",strokeWidth:1}),jsxRuntime.jsx("text",{x:0,y:Gb,textAnchor:"middle",fontSize:12,fill:"var(--color-text-secondary)",children:p(b)})]},b.getTime()))})]})]})});Uu.displayName="LiveTimeAxisBottom";var Ku=Ke.forwardRef(({scale:e,width:t,top:r,bottom:o},n)=>{let{activeScale:a,ticks:i,rangeStart:s,rangeEnd:c}=hl(e,t,n),l=Ke.useId(),d=Math.min(s,c),u=Math.abs(c-s);return jsxRuntime.jsxs("g",{"aria-hidden":"true",children:[jsxRuntime.jsx("defs",{children:jsxRuntime.jsx("clipPath",{id:l,children:jsxRuntime.jsx("rect",{x:d,y:r,width:u,height:o-r})})}),jsxRuntime.jsx("g",{clipPath:`url(#${l})`,children:i.map(m=>{let p=a(m);return jsxRuntime.jsx("line",{x1:p,x2:p,y1:r,y2:o,stroke:"var(--color-border-muted)",strokeWidth:1},m.getTime())})})]})});Ku.displayName="LiveTimeGridlines";function yl(e,t,r){let o=e[1]-e[0],n=t/Math.max(1,r)*o;return [e[0]-n,e[1]-n]}function Wb(e,t,r){let o=e[1]-e[0],n=e[0]+t*o,a=o/r,i=n-t*a;return [i,i+a]}function Yu(e,t,r=16,o=800){return t===1?e*r:t===2?e*o:e}var Ub=(e,t,r,o,n)=>{let a=t!==1?Wb(e,r,t):e;return o!==0&&(a=yl(a,o,n)),a},Kb=(e,t)=>{if(!t)return e;let r=e[1]-e[0];if(r>=t[1]-t[0])return [t[0],t[1]];let[o,n]=e;return n>t[1]&&(n=t[1],o=n-r),o<t[0]&&(o=t[0],n=o+r),[o,n]},NP=e=>typeof requestAnimationFrame=="function"?requestAnimationFrame(e):setTimeout(()=>e(0),0),kP=e=>{typeof cancelAnimationFrame=="function"?cancelAnimationFrame(e):clearTimeout(e);};function Yb(e){let{groupRef:t}=e,r=Ke.useRef({xDomain:e.xDomain,plotWidthPx:e.plotWidthPx,plotLeftPx:e.plotLeftPx??0});r.current={xDomain:e.xDomain,plotWidthPx:e.plotWidthPx,plotLeftPx:e.plotLeftPx??0};let o=Ke.useRef(e.onCommit);o.current=e.onCommit;let n=Ke.useRef(e.panBoundsMs);n.current=e.panBoundsMs;let a=Ke.useRef(e.settleMs??140);a.current=e.settleMs??140;let i=Ke.useRef(e.zoomIntent??(R=>R.ctrlKey));i.current=e.zoomIntent??(R=>R.ctrlKey);let s=Ke.useRef(e.onGestureStart);s.current=e.onGestureStart;let c=Ke.useRef(e.onFramePreview);c.current=e.onFramePreview;let l=Ke.useRef(null),d=Ke.useRef({scale:1,cursorFrac:.5,panDxPx:0,timer:null}),u=Ke.useRef(null),m=Ke.useRef(null),p=Ke.useRef(false),f=Ke.useCallback((R,L,M)=>{m.current={translateX:R,scaleX:L,preview:M},u.current==null&&(u.current=NP(()=>{u.current=null;let V=m.current;V!=null&&(t.current?.setAttribute("transform",`translate(${V.translateX},0) scale(${V.scaleX},1)`),c.current?.(V.preview));}));},[t]),g=Ke.useCallback(()=>{u.current!=null&&(kP(u.current),u.current=null),m.current=null,t.current?.removeAttribute("transform"),c.current?.(null);},[t]),h=Ke.useCallback(()=>{p.current||(p.current=true,s.current?.());},[]),b=Ke.useCallback(()=>{p.current=false;},[]),y=Ke.useCallback(()=>{d.current.timer!=null&&(clearTimeout(d.current.timer),d.current.timer=null);},[]),x=Ke.useCallback(()=>{d.current={scale:1,cursorFrac:.5,panDxPx:0,timer:null};},[]),v=Ke.useCallback(()=>{let{xDomain:R,plotWidthPx:L}=r.current,{scale:M,cursorFrac:V,panDxPx:z}=d.current;M===1&&z===0||o.current(Kb(Ub(R,M,V,z,L),n.current));},[]),S=Ke.useCallback(()=>{d.current.timer!=null&&(y(),v(),x(),g());},[y,v,x,g]),w=Ke.useCallback(R=>{S(),R.currentTarget.setPointerCapture?.(R.pointerId),l.current={startX:R.clientX,dxPx:0},h();},[S,h]),k=Ke.useCallback(R=>{if(!l.current)return;l.current.dxPx=R.clientX-l.current.startX;let{xDomain:L,plotWidthPx:M}=r.current;f(l.current.dxPx,1,yl(L,l.current.dxPx,M));},[f]),P=Ke.useCallback(R=>{if(!l.current)return;let{dxPx:L}=l.current;l.current=null,g(),b(),L!==0&&o.current(Kb(yl(r.current.xDomain,L,r.current.plotWidthPx),n.current));},[g,b]),T=Ke.useCallback(()=>{l.current&&(l.current=null,g(),b());},[g,b]),E=Ke.useRef(null),I=Ke.useCallback(R=>{if(E.current?.(),E.current=null,!R)return;let L=M=>{if(l.current)return;let{plotWidthPx:V,plotLeftPx:z}=r.current,U=Yu(M.deltaY,M.deltaMode),Q=Yu(M.deltaX,M.deltaMode),Z=i.current(M);if(!Z&&Q===0)return;if(M.preventDefault(),h(),Z){let A=Math.min(1,Math.max(0,(M.clientX-R.getBoundingClientRect().left)/Math.max(1,V)));d.current.scale*=Math.exp(-U/200),d.current.cursorFrac=A;}else d.current.panDxPx-=Q;let{scale:H,cursorFrac:j,panDxPx:G}=d.current;f((z+j*V)*(1-H)+G,H,Ub(r.current.xDomain,H,j,G,V)),y(),d.current.timer=setTimeout(()=>{v(),x(),g(),b();},a.current);};R.addEventListener("wheel",L,{passive:false}),E.current=()=>R.removeEventListener("wheel",L);},[f,g,y,v,x,h,b]);return Ke.useEffect(()=>()=>{E.current?.(),E.current=null,g(),d.current.timer!=null&&clearTimeout(d.current.timer);},[g]),{onPointerDown:w,onPointerMove:k,onPointerUp:P,onPointerCancel:T,wheelTargetRef:I,gestureActiveRef:p}}var qb=e=>e.type===on||e.type===Vn,LP=({children:e,title:t,headerActions:r,headerControls:o,viewport:n,panBounds:a,onViewportChange:i,onPlotWidthChange:s,yFormatter:c={type:"number"},yDomain:l,referenceLines:d,cameraSync:u,parentWidth:m=0,parentHeight:p=0})=>{let[f,g]=Ke.useState(null),h=Ke.useRef(null),b=Ke.useRef(0),y=Ke.useId(),x=Ke.useRef(null),v=Ke.useRef(null),S=Ke.useRef(null),{colorMode:w}=Wt(),k=Ke.useMemo(()=>To(),[w]),P=Ke.useMemo(()=>pi(),[w]),{datasets:T,seriesMetadata:E,seriesTypes:I}=Ke.useMemo(()=>{let q=Ke.Children.toArray(e).filter(qe=>Ke.isValidElement(qe)&&qb(qe)),be=q.filter(qe=>qe.props.data).length,xe=[],Ge=[],mt=[];return q.forEach((qe,ro)=>{let Ee=qe.props;if(!Ee.data)return;xe.push(Ee.data);let oo=("color"in Ee&&Ee.color?Ee.color:void 0)||(be===1?P:k[ro%k.length]),Ur=qe.type===on;Ge.push({label:"label"in Ee&&Ee.label||`Series ${xe.length}`,color:oo,...Ur&&"baseline"in Ee&&Ee.baseline!==void 0?{baseline:Ee.baseline,tooltipRange:"tooltipRange"in Ee&&Ee.tooltipRange||false}:{}}),mt.push(Ur?"area":"line");}),{datasets:xe,seriesMetadata:Ge,seriesTypes:mt}},[e,P,k]),R=Vi(t),L=R.expandedSize?.width??m,M=r||R.action?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[r,R.action]}):void 0,{headerRef:V,headerHeight:z}=ka(!!M,!!o),U=Math.max(100,(R.expandedSize?.height??p)-z-60),Q=Ke.useMemo(()=>[new Date(n.startMs),new Date(n.endMs)],[n.startMs,n.endMs]),Z=Ke.useMemo(()=>{let q=T.flat(),be=q.filter(xe=>{let Ge=xe.xValue.getTime();return Ge>=n.startMs&&Ge<=n.endMs});return be.length>0?be:q},[T,n.startMs,n.endMs]),H=Ke.useMemo(()=>{let q=Mi(Z,U,c,l);if(!l){let[be,xe]=q.domain();xe>be&&q.domain([be,xe+(xe-be)*.05]);}return q},[Z,U,c,l]),j=Ke.useRef(JSON.stringify(c)),G=Ke.useRef(null),A=Ke.useMemo(()=>{let[q,be]=H.domain(),xe=Math.max(Math.abs(q),Math.abs(be)),Ge=JSON.stringify(c);if(Ge!==j.current&&(j.current=Ge,G.current=null),G.current!==null)return G.current;if(xe===0)return Va(c,0);let mt=Va(c,xe);return G.current=mt,mt},[H,c]),W=Ke.useMemo(()=>{let q=U-ze.top-ze.bottom;return Oa(q)},[U]),N=Ke.useMemo(()=>{let q=Jr(A),be=q.tickFormat||q.format,Ge=H.ticks(W).map(ro=>be(ro)),mt=za(Ge,12,"system-ui"),qe=Math.ceil(mt)+12;return {...ze,left:Math.max(qe,30)}},[H,A,W]),C=Ke.useMemo(()=>scale.scaleTime({domain:Q,range:[N.left,L-N.right]}),[Q,L,N]),D=Ke.useMemo(()=>[n.startMs,n.endMs],[n.startMs,n.endMs]),B=Ke.useMemo(()=>a?[a.startMs,a.endMs]:void 0,[a]),X=Ke.useCallback(q=>{i({startMs:q[0],endMs:q[1]});},[i]),ee=L-N.left-N.right,le=Ke.useCallback(()=>g(null),[]),$=Ke.useRef({}),ae=Ke.useRef(u);ae.current=u;let Ve=Ke.useCallback(q=>{v.current?.setPreview(q),S.current?.setPreview(q),ae.current?.publish($.current,q);},[]),{onPointerDown:te,onPointerMove:ne,onPointerUp:oe,onPointerCancel:pe,wheelTargetRef:Re,gestureActiveRef:rt}=Yb({xDomain:D,plotWidthPx:ee,plotLeftPx:N.left,groupRef:x,onCommit:X,onGestureStart:le,onFramePreview:Ve,...B?{panBoundsMs:B}:{}}),Bt=Ke.useRef({startMs:n.startMs,endMs:n.endMs,left:0,width:0});Bt.current={startMs:n.startMs,endMs:n.endMs,left:N.left,width:ee},Ke.useEffect(()=>{if(!u)return;let q=()=>{x.current?.removeAttribute("transform"),v.current?.setPreview(null),S.current?.setPreview(null);},be=Ge=>{if(rt.current)return;if(Ge==null){q();return}let{startMs:mt,endMs:qe,left:ro,width:Ee}=Bt.current,fa=qe-mt,oo=Ge[1]-Ge[0];if(fa<=0||oo<=0||Ee<=0)return;let Ur=fa/oo,ci=ro*(1-Ur)+(mt-Ge[0])*Ee/oo;x.current?.setAttribute("transform",`translate(${ci},0) scale(${Ur},1)`),v.current?.setPreview(Ge),S.current?.setPreview(Ge);},xe=u.subscribe($.current,be);return ()=>{xe(),rt.current||q();}},[u,rt]),Ke.useEffect(()=>{s?.(Math.max(0,L-N.left-N.right));},[L,N,s]);let to=Ke.useCallback(q=>{if(rt.current)return;let{left:be}=h.current?.getBoundingClientRect()||{left:0},xe=q.clientX-be;q.timeStamp-(b.current||0)<16||(b.current=q.timeStamp,g(Vb({mouseX:xe,datasets:T,seriesMetadata:E,seriesTypes:I,xScale:C,yScale:H,plotLeft:N.left,plotRight:L-N.right})));},[T,E,I,C,H,L,N,rt]),Wr=Ke.useCallback(()=>g(null),[]),me={width:L,height:U,xScale:C,yScale:H,yFormatter:A,animationSettings:il,tooltip:{data:f,show:g,hide:()=>g(null)},datasets:T,seriesMetadata:E,seriesTypes:I},ve=0,O=[];Ke.Children.toArray(e).forEach(q=>{if(!Ke.isValidElement(q)){O.push(q);return}if(qb(q)){let be=ve;ve++;let xe=q.props;O.push(Ke__namespace.default.cloneElement(q,{...xe,color:E[be]?.color,animate:false}));}else O.push(q);});let Y=E.map(q=>({category:q.label,fill:q.color})),ge=ml({datasets:T,metadata:{xLabel:"Date",yLabel:"Value",seriesLabels:E.map(q=>q.label),timestamp:true},svgRef:h}),se=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("title",{children:t}),jsxRuntime.jsx("g",{children:H.ticks(W).map(q=>{let be=Math.abs(q)<Number.EPSILON;return jsxRuntime.jsx(shape.Line,{from:{x:N.left,y:H(q)},to:{x:L-N.right,y:H(q)},stroke:be?"var(--color-border-default)":"var(--color-border-muted)",strokeWidth:be?1.5:1},`grid-line-${q}`)})}),jsxRuntime.jsx(Ku,{ref:S,scale:C,width:L-N.left-N.right,top:H.range()[1],bottom:H.range()[0]}),jsxRuntime.jsx("defs",{children:jsxRuntime.jsx("clipPath",{id:y,children:jsxRuntime.jsx("rect",{x:C.range()[0],y:H.range()[1],width:C.range()[1]-C.range()[0],height:H.range()[0]-H.range()[1]})})}),jsxRuntime.jsx("g",{clipPath:`url(#${y})`,children:jsxRuntime.jsx("g",{"data-camera-plot-group":"",ref:x,children:O})}),d&&d.length>0&&jsxRuntime.jsx("g",{children:d.map(q=>{let be=H(q.value),xe=q.color??"var(--color-error-base)";return jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx(shape.Line,{from:{x:N.left,y:be},to:{x:L-N.right,y:be},stroke:xe,strokeWidth:1.5,strokeDasharray:"6 4"}),q.label&&jsxRuntime.jsx("text",{x:L-N.right-4,y:be-4,textAnchor:"end",fontSize:11,fill:xe,children:q.label})]},`ref-line-${q.value}`)})}),jsxRuntime.jsx(Uu,{ref:v,top:U-N.bottom,scale:C,width:L-N.left-N.right}),jsxRuntime.jsx(Ir.Left,{left:N.left,scale:H,yFormatter:A,height:U-N.top-N.bottom}),f&&!f.isEvent&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(shape.Line,{"data-testid":"chart-hover-crosshair",from:{x:C(f.xValue),y:H.range()[1]},to:{x:C(f.xValue),y:H.range()[0]},stroke:"var(--color-text-secondary)",strokeWidth:1,strokeDasharray:"3 3",opacity:.7}),f.series.filter(q=>q.type!=="bar"&&q.showMarker!==false).map(q=>jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("circle",{cx:C(f.xValue),cy:H(q.chartY??q.value),r:8,fill:"white",stroke:q.color,strokeWidth:2,style:{transition:"all 100ms ease-out"}}),jsxRuntime.jsx("circle",{cx:C(f.xValue),cy:H(q.chartY??q.value),r:4,fill:q.color,style:{transition:"all 100ms ease-out"}})]},`highlight-${q.label}`))]}),jsxRuntime.jsx("rect",{"data-camera-surface":"",x:N.left,y:N.top,width:L-N.left-N.right,height:U-N.top-N.bottom,fill:"transparent",style:{cursor:"grab",touchAction:"none"},onMouseMove:to,onMouseLeave:Wr,onPointerDown:te,onPointerMove:ne,onPointerUp:oe,onPointerCancel:pe,ref:Re})]});return R.present(jsxRuntime.jsx("div",{className:"relative flex h-full flex-col",children:jsxRuntime.jsxs(Ar.Provider,{value:me,children:[jsxRuntime.jsx(Ta,{title:t,controls:o,actions:M,containerRef:V,marginRight:N.right}),jsxRuntime.jsx("svg",{width:L,height:U,className:"overflow-visible",ref:h,role:"img","aria-label":t,children:se}),jsxRuntime.jsx(nn,{data:f,formatter:A}),jsxRuntime.jsx(Ga,{onExport:ge,items:Y,marginLeft:0,marginRight:N.right})]})}))},vl=responsive.withParentSize(LP);function Cl(e,t,r,o){if(r.length===0)throw new Error("tierForViewport: resolution ladder is empty");let n=[...r].sort((s,c)=>s.bucketMs-c.bucketMs),a=e/Math.max(1,t*o.targetPointsPerPx),i=Math.max(o.nativeMs,a);return n.find(s=>s.bucketMs>=i)??n[n.length-1]}function DP(e,t){return Math.floor(e/t.tileSpanMs)}function an(e,t,r){let o=DP(e.startMs,t)-r,n=Math.ceil(e.endMs/t.tileSpanMs)-1+r,a=[];for(let i=o;i<=n;i++)a.push({tierId:t.id,index:i,startMs:i*t.tileSpanMs,endMs:(i+1)*t.tileSpanMs});return a}var dr=(e,t)=>`${e}:${t}`;var Qb={erroredTiles:0};function ju(e,t){let r=new Map,o=new Map,n=new Map,a=0;for(let d of e){let u=t.get(dr(d.tierId,d.index));if(u){if(u.status==="error"){a+=1;continue}if(u.data){for(let m of u.data.line)r.set(m.xValue.getTime(),m);for(let m of u.data.band??[])o.set(m.xValue.getTime(),m);for(let[m,p]of Object.entries(u.data.lines??{})){let f=n.get(m);f||(f=new Map,n.set(m,f));for(let g of p)f.set(g.xValue.getTime(),g);}}}}let i=(d,u)=>d.xValue.getTime()-u.xValue.getTime(),s=[...r.values()].sort(i),c=[...o.values()].sort(i),l=Object.fromEntries([...n.entries()].map(([d,u])=>[d,[...u.values()].sort(i)]));return {line:s,band:c,lines:l,coverage:{earliestMs:s.length?s[0].xValue.getTime():void 0,latestMs:s.length?s[s.length-1].xValue.getTime():void 0,erroredTiles:a}}}function AP(e,t,r){let o=an(e,t,0);return o.length===0?false:o.every(n=>{let a=r.get(dr(n.tierId,n.index));return a!=null&&(a.status==="loaded"||a.status==="empty")})}function Zb(e,t,r){return an(e,t,0).some(n=>{let a=r.get(dr(n.tierId,n.index));return a?.status==="loaded"&&(a.data?.line.length??0)>0})}function IP(e,t){if(!e.line.length)return false;let r=e.coverage.earliestMs,o=e.coverage.latestMs;return r==null||o==null?false:r<t.endMs&&o>t.startMs}function _b({viewport:e,targetTier:t,ladder:r,store:o,overscanTiles:n,prev:a}){let i=AP(e,t,o);if(i&&Zb(e,t,o)){let c=an(e,t,n),{line:l,band:d,lines:u,coverage:m}=ju(c,o);return {line:l,band:d,lines:u,renderTier:t,targetTier:t,isFallback:false,isStale:false,coverage:m}}let s=r.findIndex(c=>c.id===t.id);for(let c=s+1;c<r.length;c++){let l=r[c];if(Zb(e,l,o)){let d=an(e,l,n),{line:u,band:m,lines:p,coverage:f}=ju(d,o);return {line:u,band:m,lines:p,renderTier:l,targetTier:t,isFallback:true,isStale:false,coverage:f}}}if(i){let c=an(e,t,n),{line:l,band:d,lines:u,coverage:m}=ju(c,o);return {line:l,band:d,lines:u,renderTier:t,targetTier:t,isFallback:false,isStale:false,coverage:m}}return a?IP(a,e)?{...a,targetTier:t,isFallback:true,isStale:false}:{line:a.line,band:a.band,lines:a.lines,renderTier:null,targetTier:t,isFallback:true,isStale:true,coverage:Qb}:{line:[],band:[],lines:{},renderTier:null,targetTier:t,isFallback:false,isStale:false,coverage:Qb}}var $b=new Map;function ex(e,t){switch(t.type){case "reset":return new Map;case "request":{let r=new Map(e);for(let o of t.ids){let n=r.get(o);(!n||n.status==="error")&&r.set(o,{status:"loading"});}return r}case "fulfilled":{let r=new Map(e);return r.set(t.id,{status:t.data.line.length>0?"loaded":"empty",data:t.data}),r}case "failed":{let r=new Map(e);return r.set(t.id,{status:"error",error:t.error}),r}default:return e}}function rx({refs:e,refsKey:t,store:r,tier:o,viewport:n,fetchTile:a,dispatch:i,concurrency:s,maxFutureMs:c}){let l=Ke.useRef(e);l.current=e;let d=Ke.useRef(n);d.current=n;let u=Ke.useRef(new Map),m=Ke.useCallback(()=>{for(let p of u.current.values())p.ac.abort();u.current.clear();},[]);return Ke.useEffect(()=>{for(let[b,y]of u.current)y.tierId!==o.id&&(y.ac.abort(),u.current.delete(b));let p=l.current.filter(b=>{let y=dr(b.tierId,b.index),x=r.get(y);return x?x.status==="loading"&&!u.current.has(y):true}),f=(d.current.startMs+d.current.endMs)/2;p.sort((b,y)=>Math.abs((b.startMs+b.endMs)/2-f)-Math.abs((y.startMs+y.endMs)/2-f));let g=Math.max(0,s-u.current.size),h=p.slice(0,g);if(h.length!==0){i({type:"request",ids:h.map(b=>dr(b.tierId,b.index))});for(let b of h){let y=dr(b.tierId,b.index),x=new AbortController;u.current.set(y,{ac:x,tierId:b.tierId});let v=c!=null?Math.min(b.endMs,c):b.endMs;a(o,b.startMs,v,x.signal).then(S=>{x.signal.aborted||i({type:"fulfilled",id:y,data:S});}).catch(S=>{if(!x.signal.aborted){let w=S instanceof Error?S.message:String(S);i({type:"failed",id:y,error:new Error(`tile fetch failed (tile ${y}, tier ${o.id}): ${w}`)});}}).finally(()=>{u.current.delete(y);});}}},[t,r,a,o,i,s,c]),Ke.useEffect(()=>m,[m]),{abortAll:m}}var ax=1.3,VP=25e4,zP=3;function OP(e,t,r){let o=t.tileSpanMs/t.bucketMs,n=Math.max(1,Math.floor(VP/o/r));return Math.min(Math.max(1,Math.ceil(.5*e/t.tileSpanMs)),n)}function sx(e){let{fetchTile:t,ladder:r,nativeMs:o,viewport:n,widthPx:a,maxFutureMs:i,targetPointsPerPx:s=1,concurrency:c=3,tileCostSeriesCount:l=zP,resetKey:d}=e,u=Ke.useMemo(()=>({targetPointsPerPx:s,nativeMs:o}),[s,o]),[m,p]=Ke.useState(()=>Cl(n.endMs-n.startMs,Math.max(1,a),r,u)),[f,g]=Ke.useReducer(ex,$b),h=Ke.useRef(n.endMs-n.startMs),b=Ke.useRef(u);Ke.useEffect(()=>{let z=n.endMs-n.startMs,U=Cl(z,Math.max(1,a),r,u);if(U.id===m.id){b.current=u;return}let Z=Cl(z,Math.max(1,a),r,b.current).id!==U.id,H=z/h.current;(Z||H>ax||H<1/ax)&&(h.current=z,b.current=u,p(U));},[n,a,r,m.id,u]);let y=n.endMs-n.startMs,x=Ke.useMemo(()=>OP(y,m,l),[y,m,l]),v=Ke.useMemo(()=>an(n,m,x),[n,m,x]),S=Ke.useMemo(()=>v.map(z=>dr(z.tierId,z.index)).join(","),[v]),w=Ke.useRef(v);w.current=v;let k=Ke.useRef(n);k.current=n;let P=Ke.useRef(f);P.current=f;let{abortAll:T}=rx({refs:v,refsKey:S,store:f,tier:m,viewport:n,fetchTile:t,dispatch:g,concurrency:c,...i!=null?{maxFutureMs:i}:{}}),E=Ke.useRef(null),I=Ke.useRef(false);Ke.useEffect(()=>{if(!I.current){I.current=true;return}T(),E.current=null,g({type:"reset"});},[T,d]);let R=Ke.useMemo(()=>w.current.map(z=>`${dr(z.tierId,z.index)}:${f.get(dr(z.tierId,z.index))?.status??"\u2205"}`).join("|"),[S,f]),L=Ke.useMemo(()=>{let z=_b({viewport:k.current,targetTier:m,ladder:r,store:P.current,overscanTiles:x,prev:E.current});return E.current=z,z},[R,m,r,x,n.startMs,n.endMs]),M=Ke.useMemo(()=>w.current.some(z=>P.current.get(dr(z.tierId,z.index))?.status==="loading"),[R]),V=Ke.useMemo(()=>{let z=w.current[0];return z?P.current.get(dr(z.tierId,z.index))?.status==="empty":false},[R]);return {tier:m,series:L,loading:M,atDataStart:V}}function Qu(e){let{initialViewport:t,...r}=e,[o,n]=Ke.useState(t),a=sx({...r,viewport:o}),i=Ke.useCallback(c=>n(c),[]),s=Ke.useCallback(c=>n(c),[]);return {viewport:o,onViewportChange:i,jumpTo:s,...a}}var HP={sm:"gap-4 px-6 py-8",md:"gap-5 px-8 py-12",lg:"gap-6 px-10 py-16"},GP={sm:"xs",md:"sm",lg:"md"},WP={sm:yt("bodySm"),md:yt("bodySm"),lg:yt("bodyMd")},UP={sm:"h-10 w-10",md:"h-12 w-12",lg:"h-16 w-16"},KP={sm:20,md:24,lg:32},YP={center:"items-center text-center [&_.empty-state-actions]:justify-center [&_.empty-state-actions]:text-center",start:"items-start text-left [&_.empty-state-actions]:justify-start [&_.empty-state-actions]:text-left"},JP={mesh:"radial-gradient(at 20% 20%, rgba(68, 74, 225, 0.06) 0px, transparent 45%), radial-gradient(at 80% 80%, rgba(68, 74, 225, 0.045) 0px, transparent 45%), radial-gradient(at 50% 50%, rgba(68, 74, 225, 0.03) 0px, transparent 50%)","top-fade":"linear-gradient(to bottom, rgba(68, 74, 225, 0.06) 0%, rgba(68, 74, 225, 0.02) 60%, transparent 100%)",center:"radial-gradient(ellipse 600px 400px at center, rgba(68, 74, 225, 0.06) 0px, transparent 60%)",corners:"radial-gradient(at 0% 0%, rgba(68, 74, 225, 0.06) 0px, transparent 40%), radial-gradient(at 100% 100%, rgba(68, 74, 225, 0.045) 0px, transparent 40%)",bottom:"radial-gradient(ellipse 700px 300px at 50% 100%, rgba(68, 74, 225, 0.06) 0px, transparent 60%)",asymmetric:"radial-gradient(at 15% 30%, rgba(68, 74, 225, 0.06) 0px, transparent 45%), radial-gradient(at 85% 70%, rgba(68, 74, 225, 0.04) 0px, transparent 50%)"};function Sl({icon:e,title:t,description:r,primaryAction:o,secondaryAction:n,actions:a,size:i="md",alignment:s="center",variant:c="default",spotlightPattern:l="mesh",fullHeight:d=false,className:u}){let m=i==="sm"?"sm":"md",p=c==="spotlight",f=p?{background:JP[l]}:void 0,g=()=>a?jsxRuntime.jsx("div",{className:"empty-state-actions mt-2 flex flex-wrap items-center gap-3",children:a}):o||n?jsxRuntime.jsxs("div",{className:"empty-state-actions mt-2 flex flex-col gap-3",children:[o&&(o.href?jsxRuntime.jsx(_,{variant:"secondary",size:m,onPress:o.onPress,isDisabled:o.isDisabled,isLoading:o.isLoading,href:o.href,children:o.label}):jsxRuntime.jsx(_,{variant:"secondary",size:m,onPress:o.onPress,isDisabled:o.isDisabled,isLoading:o.isLoading,children:o.label})),n&&jsxRuntime.jsx(at,{href:n.href||"#",variant:"muted",onPress:n.onPress,className:yt("labelMd"),children:n.label})]}):null;return jsxRuntime.jsxs("section",{"data-testid":"empty-state",role:"status","aria-live":"polite",className:tailwindMerge.twMerge("flex w-full flex-col rounded-xl text-text-primary",HP[i],YP[s],d?"h-full justify-center":"",p?"relative overflow-hidden":"",u),style:f,children:[e&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex items-center justify-center rounded-full border border-border-muted bg-background-muted text-text-secondary",UP[i]),children:jsxRuntime.jsx(F,{name:e,size:KP[i]})}),jsxRuntime.jsx(rr,{size:GP[i],tag:"h2",className:"text-text-secondary",children:t}),r&&jsxRuntime.jsx("p",{className:tailwindMerge.twMerge("max-w-xs text-text-secondary whitespace-pre-line",WP[i]),children:r}),g()]})}var jP=1440*60*1e3,qP=[{id:"5y",label:"5 years",days:5*365},{id:"year",label:"Year",days:365},{id:"month",label:"Month",days:30},{id:"week",label:"Week",days:7},{id:"day",label:"24h",days:1}],QP=[{id:"day",days:1},{id:"week",days:7},{id:"month",days:30}];function cx(e,t=Date.now){return QP.map(({id:r,days:o})=>({id:r,label:e[r],getRange:()=>{let n=new Date(t());return {after:dateFns.subDays(n,o),before:n}}}))}function wl(e=Date.now){return qP.map(({id:t,label:r,days:o})=>({id:t,label:r,getRange:()=>{let n=e();return {after:new Date(n-o*jP),before:new Date(n)}}}))}function r1({selectionState:e,isDisabled:t}){let r=`${Ze} w-full h-full flex items-center justify-center rounded-sm forced-color-adjust-none font-semibold`,o={none:"text-text-primary group-hover:bg-background-muted group-pressed:bg-background-muted",middle:["bg-background-selected group-hover:bg-background-muted forced-colors:group-hover:bg-[Highlight]","group-invalid:group-hover:bg-feedback-error-background forced-colors:group-invalid:group-hover:bg-[Mark]","group-pressed:bg-background-muted forced-colors:group-pressed:bg-[Highlight] forced-colors:text-[HighlightText]","group-invalid:group-pressed:bg-feedback-error-background forced-colors:group-invalid:group-pressed:bg-[Mark]"].join(" "),cap:"bg-action-default text-[color:var(--color-action-default-text)] group-invalid:bg-feedback-error-border forced-colors:bg-[Highlight] forced-colors:group-invalid:bg-[Mark] forced-colors:text-[HighlightText]"},n=t?"text-text-disabled forced-colors:text-text-disabled font-light":"";return [r,o[e],n].filter(Boolean).join(" ")}function Ya({errorMessage:e,...t}){return jsxRuntime.jsxs(reactAriaComponents.RangeCalendar,{...t,children:[jsxRuntime.jsx(tl,{}),jsxRuntime.jsxs(reactAriaComponents.CalendarGrid,{className:"w-full border-separate [border-spacing:0] [&_td]:p-0 [&_td]:!border-0",children:[jsxRuntime.jsx(rl,{}),jsxRuntime.jsx(reactAriaComponents.CalendarGridBody,{children:r=>jsxRuntime.jsx(reactAriaComponents.CalendarCell,{date:r,className:"selection-start:rounded-s-full selection-end:rounded-e-full [td:last-child_&]:rounded-e-end group h-9 w-9 cursor-default text-sm border-0 outside-month:text-text-disabled invalid:selected:bg-feedback-error-background forced-colors:selected:bg-[Highlight] forced-colors:selected:text-[HighlightText] forced-colors:invalid:selected:bg-[Mark] [td:first-child_&]:rounded-s-full [&]:border-0",children:({formattedDate:o,isSelected:n,isSelectionStart:a,isSelectionEnd:i,isFocusVisible:s,isDisabled:c})=>jsxRuntime.jsx("span",{className:r1({selectionState:n&&(a||i)?"cap":n?"middle":"none",isDisabled:c}),children:o})})})]}),e&&jsxRuntime.jsx(reactAriaComponents.Text,{slot:"errorMessage",className:"text-sm text-feedback-error-text",children:e})]})}function ux(e){return e==="brand"?"primary":e==="default"||e==="secondary"||!e?"subtle":e}var n1={sm:"h-[var(--control-sm-height)] text-xs",md:"h-[var(--control-md-height)] text-sm",lg:"h-[var(--control-lg-height)] text-base",xl:"h-[var(--control-xl-height)] text-lg"},a1={sm:14,md:16,lg:18,xl:20},i1=({isSelected:e,isFirst:t,isLast:r,isDisabled:o,variant:n="subtle"})=>{let a=ux(n),i=a==="primary"?"focus-visible:outline-action-primary":"focus-visible:outline-[color:var(--color-action-secondary-text)]";return a==="subtle"?tailwindMerge.twMerge(Ze(),"focus-visible:outline-[color:var(--color-action-secondary-text)]","px-3 text-center transition cursor-pointer forced-color-adjust-none -ml-px first:ml-0 flex items-center justify-center h-full gap-2",e?"bg-background-muted text-text-primary font-medium forced-colors:!bg-[Highlight] forced-colors:!text-[HighlightText]":"text-text-secondary hover:bg-background-hover pressed:bg-background-hover forced-colors:!bg-[ButtonFace] forced-colors:!text-[ButtonText]",!r&&"border-r border-border-muted",o&&"bg-background-muted text-text-disabled forced-colors:!bg-[ButtonFace] forced-colors:!text-[GrayText] border-border-muted forced-colors:border-[GrayText] cursor-not-allowed"):tailwindMerge.twMerge(Ze(),i,"px-3 text-center transition cursor-pointer forced-color-adjust-none -ml-px first:ml-0 flex items-center justify-center h-full gap-2",e?"bg-action-primary text-[color:var(--color-action-primary-text)] font-semibold forced-colors:!bg-[Highlight] forced-colors:!text-[HighlightText]":"text-text-secondary hover:bg-background-hover pressed:bg-background-hover forced-colors:!bg-[ButtonFace] forced-colors:!text-[ButtonText] hover:font-semibold",!r&&"border-r border-border-muted",o&&"bg-background-muted text-text-disabled forced-colors:!bg-[ButtonFace] forced-colors:!text-[GrayText] border-border-muted forced-colors:border-[GrayText] cursor-not-allowed")};function kl({options:e,value:t,onChange:r,size:o="md",className:n,isDisabled:a,variant:i="subtle",iconOnly:s=false,"aria-label":c}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("inline-flex overflow-hidden rounded-[var(--control-border-radius)]",ux(i)==="subtle"?"border border-border-muted":"border-2 border-border-muted",n1[o],n),role:"group","aria-label":c,children:e.map((l,d)=>{let u=s&&!!l.icon;return jsxRuntime.jsxs(reactAriaComponents.ToggleButton,{isSelected:t===l.id,onChange:()=>r(l.id),className:i1({isSelected:t===l.id,isFirst:d===0,isLast:d===e.length-1,isDisabled:a,variant:i}),isDisabled:a,"aria-label":l.label,children:[l.icon&&jsxRuntime.jsx(F,{name:l.icon,size:a1[o]}),u?jsxRuntime.jsx("span",{className:"sr-only",children:l.label}):jsxRuntime.jsx("span",{className:"inline-flex flex-col items-center after:content-[attr(data-label)] after:font-semibold after:h-0 after:overflow-hidden after:invisible","data-label":l.label,children:l.label})]},l.id)})})}function d1(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function ep(e){return d1(e)?e:(console.warn("Invalid date detected in TimeControls, using fallback:",e),new Date)}var xx=120*1e3,u1=.02,hx={FIVE_MINUTES:0,FIFTEEN_MINUTES:1,HOUR:2,DAY:3,WEEK:4,MONTH:5,YEAR:6},p1=[{id:"FIFTEEN_MINUTES",label:"15m"},{id:"HOUR",label:"1h"},{id:"DAY",label:"1d"},{id:"WEEK",label:"1w"}];function Tl({dateRange:e,onDateRangeChange:t,windowSize:r,onWindowSizeChange:o,showWindowSize:n=true,showRangeSelector:a=true,allowDatePicker:i=false,lockWindowSize:s=false,showReset:c=true,restrictToSingleDay:l=false,presetRanges:d=[],windowSizeOptions:u=p1,autoAdjustWindowSize:m=false,className:p}){let[f,g]=Ke.useState(0),h=Ke.useRef(null),[b,y]=Ke.useState(false),[x,v]=Ke.useState(null),S=N=>{let D=(N.before.getTime()-N.after.getTime())/(1e3*60*60);return D<=24?"FIFTEEN_MINUTES":D<=72||D<=168?"HOUR":("DAY")};Ke.useEffect(()=>{if(m&&!b&&o){let N=S(e);o(N);}},[e,m,b,o]);let w=N=>{let C;for(let D of d){let B=D.getRange(),X=(B.before.getTime()-B.after.getTime())*u1,ee=Math.abs(B.after.getTime()-N.after.getTime()),le=Math.abs(B.before.getTime()-N.before.getTime());if(ee>X||le>X)continue;let $=ee+le;(!C||$<C.distance)&&(C={id:D.id,distance:$});}return C?.id},k=x&&d.some(N=>N.id===x.id)&&Math.abs(x.after-e.after.getTime())<=xx&&Math.abs(x.before-e.before.getTime())<=xx?x.id:w(e),P=ep(e.after),T=ep(e.before),E=new Date(T.getTime()-1),I={start:date.fromDate(P,date.getLocalTimeZone()),end:date.fromDate(E,date.getLocalTimeZone())};Ke.useEffect(()=>{let N=new ResizeObserver(C=>{for(let D of C)g(D.contentRect.width);});return h.current&&N.observe(h.current),()=>{h.current&&N.unobserve(h.current);}},[]);let R=[...u].sort((N,C)=>hx[N.id]-hx[C.id]),L=N=>{let C=N.toString(),D=d.find(B=>B.id===C);if(D){let B=D.getRange();v({id:C,after:B.after.getTime(),before:B.before.getTime()}),y(false),t(B,{presetId:C});}},M=N=>{if(N?.start&&N?.end){v(null);let C=new Date(N.start.year,N.start.month-1,N.start.day,0,0,0,0),D=new Date(N.end.year,N.end.month-1,N.end.day+1,0,0,0,0);t({after:C,before:D});}},V=N=>{if(N){v(null);let C=new Date(N.year,N.month-1,N.day,0,0,0,0),D=new Date(N.year,N.month-1,N.day+1,0,0,0,0);t({after:C,before:D});}},z=N=>{o&&(y(true),o(N.toString()));},U=()=>{d.length>0&&L(d[0].id);},Q=N=>ep(N).toLocaleDateString("en-US"),Z=R.map(N=>({id:N.id,label:N.label,value:N.id})),H=d.map(N=>({id:N.id,label:N.label,value:N.id})),j=s?jsxRuntime.jsx("div",{className:"flex items-center rounded-md border border-border-muted bg-background-muted px-3 py-2 text-sm text-text-secondary",children:R.find(N=>N.id===r)?.label||r}):jsxRuntime.jsx(Ro,{className:"w-full md:w-auto",selectedKey:r,onSelectionChange:z,items:Z,size:"md","aria-label":"Select Window Size",children:N=>jsxRuntime.jsx(ar,{id:N.id,"aria-label":N.label,size:"md",children:N.label},N.id)}),G=c&&!k&&d.length>0,A=l?jsxRuntime.jsx("div",{className:"flex items-center",children:jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{children:[jsxRuntime.jsxs(_,{className:"border-l pl-2 pr-2 hover:border-border-default hover:bg-background-muted hover:text-text-link-hover",variant:"secondary",children:[jsxRuntime.jsx(F,{name:"CalendarBlank",size:18}),jsxRuntime.jsx("span",{className:"ml-2 hidden md:block",children:Q(e.after)})]}),jsxRuntime.jsx(ft,{className:"z-50 w-auto p-3",disableGroup:true,children:jsxRuntime.jsx(Aa,{"aria-label":"Select date",value:date.parseDate(P.toISOString().split("T")[0]),onChange:V})})]})}):jsxRuntime.jsxs("div",{className:"flex items-center",children:[jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{children:[jsxRuntime.jsxs(_,{className:tailwindMerge.twMerge("border-l pl-2 pr-2 hover:border-border-default hover:bg-background-muted hover:text-text-link-hover",G&&"rounded-r-none"),variant:"secondary",children:[jsxRuntime.jsx(F,{name:"CalendarBlank",size:18}),!k&&jsxRuntime.jsx("span",{className:"ml-2 hidden md:block",children:`${Q(e.after)} - ${Q(E)}`})]}),jsxRuntime.jsx(ft,{className:"z-50 w-auto p-3",disableGroup:true,children:jsxRuntime.jsx(Ya,{"aria-label":"Date range calendar",value:I,onChange:M})})]}),G&&jsxRuntime.jsx(_,{variant:"ghost",size:"md",onPress:U,children:"Reset"})]}),W=f<600;return jsxRuntime.jsx("div",{ref:h,className:tailwindMerge.twMerge("flex w-full flex-wrap items-center justify-between gap-4",p),children:W?jsxRuntime.jsxs("div",{className:"flex w-full justify-between",children:[jsxRuntime.jsxs("div",{className:"flex items-center",children:[i&&A,a&&d.length>0&&jsxRuntime.jsx(Ro,{selectedKey:k??"",onSelectionChange:L,items:H,size:"md","aria-label":"Select Date Range",children:N=>jsxRuntime.jsx(ar,{id:N.id,size:"md",children:N.label},N.id)})]}),jsxRuntime.jsx("div",{className:"flex items-center",children:n&&r&&j})]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-4",children:[i&&A,a&&d.length>0&&jsxRuntime.jsx(kl,{options:d.map(N=>({id:N.id,label:N.label})),value:k??"",onChange:L,size:"sm",variant:"secondary","aria-label":"Select Date Range"})]}),jsxRuntime.jsx("div",{className:"flex items-center",children:n&&r&&j})]})})}var x1=1440*60*1e3,h1=6e4,yx=(e,t)=>({startMs:t-e*x1,endMs:t}),y1=e=>({after:new Date(e.startMs),before:new Date(e.endMs)});function vx({source:e,title:t,initialRange:r,viewportEnd:o,yFormatter:n,yDomain:a,referenceLines:i,emptyState:s,presetRanges:c,tierToWindow:l,windowSizeOptions:d,height:u=360,hint:m,dataBounds:p,children:f}){let[g,h]=Ke.useState(900),b=p?.endMs,[y,x]=Ke.useState(()=>b??Date.now());Ke.useEffect(()=>{if(b!=null){x(b);return}x(Date.now());let te=setInterval(()=>x(Date.now()),h1);return ()=>clearInterval(te)},[b]);let v=o?.getTime()??b,S=r?.days??30,w=Ke.useMemo(()=>yx(S,v??Date.now()),[S,v]),k=y,P=Ke.useMemo(()=>({startMs:p?.startMs??0,endMs:y}),[p?.startMs,y]),T=te=>{let ne=Math.min(te.endMs-te.startMs,P.endMs-P.startMs),oe=Math.max(Math.min(te.endMs,P.endMs),P.startMs+ne);return {startMs:oe-ne,endMs:oe}},[E,I]=Ke.useState(null),[R,L]=Ke.useState(null),M=E??w,V=Qu({fetchTile:e.fetchTile,ladder:e.ladder,nativeMs:e.nativeMs,initialViewport:w,widthPx:g,maxFutureMs:k,tileCostSeriesCount:e.tileCostSeriesCount,resetKey:e.resetKey}),z=Ke.useMemo(()=>wl(()=>v??Date.now()),[v]),U=c??z,Q=()=>{if(R&&"presetId"in R){let te=U.find(ne=>ne.id===R.presetId);if(te){let ne=te.getRange();return {startMs:ne.after.getTime(),endMs:ne.before.getTime()}}}return R&&"range"in R?R.range:yx(S,v??Date.now())},{line:Z,coverage:H,renderTier:j,targetTier:G,isFallback:A,isStale:W}=V.series,N=j?j.bucketMs*1.5:0,C=te=>te==null?"\u2014":new Date(te).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),D=(te,ne)=>{let oe=ne-te<1728e5?{month:"short",day:"numeric",hour:"numeric",minute:"2-digit"}:{month:"short",day:"numeric",year:"numeric"},pe=new Intl.DateTimeFormat("en-US",oe);return `${pe.format(new Date(te))} \u2013 ${pe.format(new Date(ne))}`},B=V.viewport.startMs!==M.startMs||V.viewport.endMs!==M.endMs,X=W||V.loading&&H.earliestMs==null,ee=(V.viewport.endMs-V.viewport.startMs)*.03,le=!X&&H.earliestMs!=null&&H.earliestMs>V.viewport.startMs+ee,$=!V.loading&&H.earliestMs==null&&H.latestMs==null&&Z.length===0&&!W,ae=f({series:V.series,gapMs:N}),Ve=Ke.isValidElement(ae)&&ae.type===Ke.Fragment?ae.props.children:ae;return jsxRuntime.jsxs("div",{className:"flex flex-col gap-3",children:[jsxRuntime.jsx(Tl,{dateRange:y1(V.viewport),onDateRangeChange:(te,ne)=>{let oe=T({startMs:te.after.getTime(),endMs:te.before.getTime()});L(ne?.presetId?{presetId:ne.presetId}:{range:oe}),I(oe),V.jumpTo(oe);},windowSize:l[G.id],windowSizeOptions:d,lockWindowSize:true,presetRanges:U,allowDatePicker:true,showReset:false}),jsxRuntime.jsxs("div",{className:"flex flex-wrap items-center gap-3 text-xs text-text-secondary",children:[jsxRuntime.jsxs("span",{children:["Window"," ",jsxRuntime.jsx("span",{className:"font-medium text-text-primary",children:D(V.viewport.startMs,V.viewport.endMs)})]}),jsxRuntime.jsx("span",{className:"text-text-tertiary",children:"\u2022"}),jsxRuntime.jsxs("span",{children:["Resolution ",jsxRuntime.jsx("span",{className:"font-medium text-text-primary",children:j?.id??G.id}),A&&jsxRuntime.jsxs("span",{className:"text-text-tertiary",children:[" \xB7 loading ",G.id]})]}),V.loading&&jsxRuntime.jsx("span",{className:"text-text-tertiary",children:"loading\u2026"}),le&&jsxRuntime.jsxs("span",{className:"text-text-tertiary",children:["showing available history from ",C(H.earliestMs)]}),!le&&!X&&V.atDataStart&&jsxRuntime.jsx("span",{className:"text-text-tertiary",children:"no earlier data loaded"}),B&&jsxRuntime.jsx(_,{variant:"ghost",size:"sm",onPress:()=>{let te=T(Q());I(te),V.jumpTo(te);},children:"\u27F2 Reset"})]}),jsxRuntime.jsx("div",{className:"relative overflow-hidden rounded-md border border-border-subtle",style:{height:u},children:$?jsxRuntime.jsx(Sl,{title:s.title,description:s.description}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(vl,{title:t,viewport:V.viewport,panBounds:P,onViewportChange:V.onViewportChange,onPlotWidthChange:h,...n&&{yFormatter:n},...a&&{yDomain:a},...i&&{referenceLines:i},children:Ve}),V.loading&&jsxRuntime.jsx("div",{className:"pointer-events-none absolute inset-x-0 top-0 h-0.5 animate-pulse bg-[var(--color-viz-categorical-1)] opacity-60"})]})}),m&&jsxRuntime.jsx("p",{className:"text-xs text-text-tertiary",children:m})]})}function Gi({count:e,label:t="results",isLoading:r=false,className:o=""}){if(r)return jsxRuntime.jsx("div",{className:`flex items-center ${o}`,children:jsxRuntime.jsx(K,{width:80,height:16})});let n=t.endsWith("s")?t.slice(0,-1):t,a=e===1?n:t;return jsxRuntime.jsxs("div",{className:`text-sm text-text-secondary whitespace-nowrap ${o}`,children:[e.toLocaleString()," ",a]})}var k1=e=>{let t=Ut({isInvalid:e.isInvalid,isDisabled:e.isDisabled,isFocused:e.isFocused,transparent:e.transparent,size:e.size}),r=[e.showSearchIcon?"":"pl-3",e.isClearable&&e.hasValue||e.isPassword?"pr-8":"pr-3"].join(" ");return tailwindMerge.twMerge(t,r,e.className)};function Vr({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,transparent:i,showSearchIcon:s,isClearable:c,onClear:l,type:d,validationResult:u,reserveErrorSpace:m=true,isLoading:p=false,descriptionPlacement:f="below",...g}){let[h,b]=Ke__namespace.default.useState(false),{isFocused:y,handleFocus:x,handleBlur:v}=Dr(),S=d==="password",w=Ys(p,300);return jsxRuntime.jsx(reactAriaComponents.TextField,{...g,isRequired:a,className:ke(g.className,"group flex flex-col"),children:({isDisabled:k,isInvalid:P})=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(Ue,{size:o,tooltip:n,description:f==="tooltip"||f==="inline"?t:void 0,descriptionPlacement:f,isRequired:a,children:e}),jsxRuntime.jsxs(wt,{children:[s&&jsxRuntime.jsx("div",{className:"pointer-events-none absolute top-1/2 -translate-y-1/2 transform flex items-center z-10",style:{left:9},children:(()=>{let T={sm:14,md:16,lg:18,xl:20}[o];return w?jsxRuntime.jsx(Po,{size:T,color:"text-text-secondary"}):jsxRuntime.jsx(F,{name:"MagnifyingGlass",size:T,className:`transition-colors ${y?"text-action-brand":"text-text-secondary"}`})})()}),jsxRuntime.jsx(Xs,{size:o,disabled:k,type:S?h?"text":"password":d,name:g.name,autoComplete:g.autoComplete,value:g.value,defaultValue:g.defaultValue,placeholder:g.placeholder,onFocus:T=>x(T,g.onFocus),onBlur:T=>v(T,g.onBlur),onChange:T=>g.onChange?.(T.target.value),style:s?{paddingLeft:{sm:28,md:32,lg:36,xl:37}[o]}:void 0,className:k1({isInvalid:P,isDisabled:k,isFocused:y,size:o,transparent:i,showSearchIcon:s,isClearable:c,hasValue:!!g.value,isPassword:S,className:typeof g.className=="string"?g.className:void 0})}),c&&g.value&&!k&&jsxRuntime.jsx(Ni,{onClick:()=>{l?l():g.onChange&&g.onChange("");},size:o}),S&&!k&&jsxRuntime.jsx("button",{type:"button",onClick:()=>b(!h),className:"absolute right-3 top-1/2 -translate-y-1/2 transform text-text-secondary hover:text-text-primary","aria-label":h?"Hide password":"Show password",onMouseDown:T=>{T.preventDefault(),T.stopPropagation();},children:jsxRuntime.jsx(F,{name:h?"EyeSlash":"Eye",size:o==="sm"?16:20,className:"text-text-primary"})})]}),m?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(fe,{size:o,children:r}):typeof r=="function"&&u?jsxRuntime.jsx(fe,{size:o,children:r(u)}):t&&f==="below"?jsxRuntime.jsx(Te,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(fe,{size:o,className:"mt-1",children:r}):typeof r=="function"&&u?jsxRuntime.jsx(fe,{size:o,className:"mt-1",children:r(u)}):t&&f==="below"?jsxRuntime.jsx(Te,{size:o,className:"mt-1",children:t}):null})]})})}function Un({value:e,onChange:t,onClear:r,placeholder:o="Search...",size:n="sm",className:a="",isLoading:i=false}){return jsxRuntime.jsx("div",{className:`flex-1 min-w-0 sm:max-w-sm ${a}`,children:jsxRuntime.jsx(Vr,{value:e,onChange:t,placeholder:o,showSearchIcon:true,isClearable:!!e&&!!r,onClear:r,size:n,"aria-label":o,reserveErrorSpace:false,isLoading:i})})}function Wi({value:e,options:t,onChange:r,direction:o,onDirectionChange:n,showLabel:a=true,size:i="sm",className:s="",compact:c=false}){let[l,d]=Ke.useState(false),u=o!==void 0&&n!==void 0,m=t.find(p=>p.value===e);return c?jsxRuntime.jsxs("div",{className:`flex items-center gap-2 ${s}`,children:[jsxRuntime.jsx(_,{variant:"secondary",size:i,icon:"ArrowsDownUp","aria-label":`Sort by: ${m?.label||"Select"}`,onPress:()=>d(true)}),jsxRuntime.jsx(gt,{isOpen:l,onClose:()=>d(false),title:"Sort by",contentPadding:false,children:jsxRuntime.jsx(reactAriaComponents.ListBox,{items:t.map(p=>({id:p.value,label:p.label,value:p.value})),className:"w-full bg-background-surface p-0 outline-0 [&_[role=option]]:border-b [&_[role=option]]:border-border-default [&_[role=option]:last-child]:border-0 [&_[role=option]]:!px-6 [&_[role=option]]:!py-4 [&_[role=option]]:rounded-none",selectionMode:"single",selectedKeys:e?[e]:[],onSelectionChange:p=>{let f=Array.from(p)[0];f!=null&&(r(f),d(false));},children:p=>jsxRuntime.jsx(ar,{id:p.id,textValue:p.label,children:jsxRuntime.jsx("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap min-w-0 flex-1",children:p.label})},p.id)})})]}):jsxRuntime.jsxs("div",{className:`flex items-center gap-2 ${s}`,children:[a&&jsxRuntime.jsx("span",{className:"text-sm text-text-secondary whitespace-nowrap",children:"Sort by:"}),jsxRuntime.jsx(Ro,{selectedKey:e,onSelectionChange:p=>r(p),size:i,className:"min-w-32",items:t.map(p=>({id:p.value,label:p.label,value:p.value})),renderItem:p=>p.label,"aria-label":"Sort by",reserveErrorSpace:false}),u&&jsxRuntime.jsx(_,{variant:"ghost",size:i,onClick:()=>n(o==="asc"?"desc":"asc"),"aria-label":`Sort ${o==="asc"?"descending":"ascending"}`,className:"p-1.5",children:o==="asc"?jsxRuntime.jsx(lucideReact.ArrowUp,{className:"w-4 h-4"}):jsxRuntime.jsx(lucideReact.ArrowDown,{className:"w-4 h-4"})})]})}function kx({search:e,searchMobileMode:t="expanded",filters:r=[],onRemoveFilter:o,onClearAllFilters:n,onManageFilters:a,exportControl:i,maxVisibleFilterChips:s=3,sort:c,resultsCount:l,leftControls:d,onManageColumns:u,columnPicker:m,customControls:p,actions:f,interactionMode:g="auto",sticky:h,stickyTop:b="0",zIndex:y=10,className:x="",style:v}){let S=r.length>0;if(!(e||S||a||c||l||d||u||m||p||f||i))return null;let k=h?"sticky bg-background-surface":"",P=h?{top:b,zIndex:y}:{};return jsxRuntime.jsxs("div",{className:`@container flex flex-col gap-3 bg-background-surface py-3 border-b border-border-default ${k} ${x}`,style:{...v,...P},children:[jsxRuntime.jsxs("div",{className:"hidden @[640px]:flex @[640px]:items-center @[640px]:justify-between @[640px]:gap-4",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0",children:[d,d&&l&&jsxRuntime.jsx("div",{className:"h-4 w-px bg-border-default"}),l&&jsxRuntime.jsx(Gi,{count:l.count,label:l.label,isLoading:l.isLoading}),l&&c&&jsxRuntime.jsx("div",{className:"h-4 w-px bg-border-default"}),c&&jsxRuntime.jsx(Wi,{value:c.value,options:c.options,onChange:c.onChange,showLabel:c.showLabel,direction:c.direction,onDirectionChange:c.onDirectionChange}),u?jsxRuntime.jsx(_,{variant:"secondary",size:"sm",icon:"Columns",onClick:u,children:"Columns"}):m,S&&o&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[r.slice(0,s).map(T=>jsxRuntime.jsxs(uo,{variant:"primary",size:"sm",onRemove:()=>o(T.id),isRemovable:true,children:[T.label,": ",T.value]},T.id)),r.length>s&&a&&jsxRuntime.jsxs(_,{variant:"ghost",size:"sm",onClick:a,className:"text-text-secondary hover:text-text-primary whitespace-nowrap",children:["+",r.length-s," more"]}),n&&jsxRuntime.jsx(_,{variant:"ghost",size:"sm",onClick:n,className:"text-text-secondary hover:text-text-primary whitespace-nowrap",children:"Clear all"})]})]}),jsxRuntime.jsx("div",{className:"flex items-center gap-3 flex-shrink-0",children:p||jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[f&&f.items.length>0&&jsxRuntime.jsx(jsxRuntime.Fragment,{children:f.items.map(T=>jsxRuntime.jsx(_,{variant:T.variant||"secondary",size:"sm",icon:T.icon,onPress:T.onClick,isDisabled:T.disabled,children:T.label},T.id))}),e&&jsxRuntime.jsx("div",{className:"w-64",children:jsxRuntime.jsx(Un,{value:e.value,onChange:e.onChange,onClear:e.onClear,placeholder:e.placeholder,isLoading:e.isLoading})}),a&&jsxRuntime.jsx(_,{variant:"secondary",size:"sm",icon:"Sliders",badgeNumber:r.length>0?r.length:void 0,onClick:a,children:"Filters"}),i&&jsxRuntime.jsx(_,{variant:"secondary",size:"sm",icon:"Upload",onClick:i.onClick,isDisabled:i.isDisabled,children:i.label})]})})]}),jsxRuntime.jsxs("div",{className:"@[640px]:hidden",children:[jsxRuntime.jsx("div",{className:"flex flex-col gap-3 mb-3",children:jsxRuntime.jsx("div",{className:"flex items-center gap-3",children:p?jsxRuntime.jsx("div",{className:"flex-1",children:p}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[f&&f.items.length>0&&jsxRuntime.jsx(Ra,{items:f.items.map(T=>({id:T.id,name:T.label,iconName:T.icon,variant:T.variant==="destructive"?"destructive":"primary",disabled:T.disabled,onAction:T.onClick})),align:"left",size:"sm",children:jsxRuntime.jsx(_,{variant:"secondary",size:"sm",icon:"DotsThreeVertical","aria-label":f.menuLabel||"Actions"})}),e&&jsxRuntime.jsx("div",{className:"flex-1",children:jsxRuntime.jsx(Un,{value:e.value,onChange:e.onChange,onClear:e.onClear,placeholder:e.placeholder,isLoading:e.isLoading})}),a&&jsxRuntime.jsx(_,{variant:"secondary",size:"sm",icon:"Sliders",badgeNumber:r.length>0?r.length:void 0,onClick:a,"aria-label":`Filters${r.length>0?` (${r.length} active)`:""}`}),i&&jsxRuntime.jsx(_,{variant:"secondary",size:"sm",icon:"Upload",onClick:i.onClick,isDisabled:i.isDisabled,children:i.label})]})})}),jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-3",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[d,l&&jsxRuntime.jsx(Gi,{count:l.count,label:l.label,isLoading:l.isLoading})]}),jsxRuntime.jsx("div",{className:"flex items-center gap-2",children:c&&jsxRuntime.jsx(Wi,{value:c.value,options:c.options,onChange:c.onChange,showLabel:false,direction:c.direction,onDirectionChange:c.onDirectionChange,compact:g!=="desktop"})})]})]})]})}function Tx({filters:e,onRemove:t,onClearAll:r,onManageFilters:o,maxVisibleChips:n=3,mode:a="chips",showManageButton:i=true,size:s="sm",className:c=""}){let l=e.length>0,d=e.slice(0,n),u=Math.max(0,e.length-n),m=u>0,p=a==="button"&&!!o,f=a==="chips"&&i&&!!o;if(!l&&!p&&!f)return null;let g=p&&jsxRuntime.jsxs(_,{variant:"secondary",size:s,onClick:o,className:"whitespace-nowrap",children:[e.length," ",e.length===1?"filter":"filters"]}),h=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[f&&jsxRuntime.jsx(_,{variant:"secondary",size:s,icon:"Sliders",onClick:o,className:"whitespace-nowrap",children:"Filters"}),l&&d.map(y=>jsxRuntime.jsxs(uo,{variant:"secondary",size:s,onRemove:()=>t(y.id),isRemovable:true,children:[y.label,": ",y.value]},y.id)),l&&m&&o&&jsxRuntime.jsxs(_,{variant:"ghost",size:s,onClick:o,className:"text-text-secondary hover:text-text-primary whitespace-nowrap",children:["+",u," more"]}),l&&r&&jsxRuntime.jsx(_,{variant:"ghost",size:s,onClick:r,className:"text-text-secondary hover:text-text-primary whitespace-nowrap",children:"Clear all"})]}),b=a==="button"?g:h;return jsxRuntime.jsx("div",{className:`flex flex-wrap items-center gap-2 ${c}`,children:b})}function D1(e,t,r){return {field:e,operator:t,value:r}}function A1(e,t="AND"){return {logic:t,conditions:e}}function Ui(){return {logic:"AND",conditions:[]}}function Ml(e){return !e||e.conditions.length===0?true:e.conditions.every(t=>"conditions"in t?Ml(t):false)}function I1(e,t){if(!e)return [];let r=new Map(t?.map(i=>[i.field,i])),o=new Map;function n(i){if("conditions"in i)i.conditions.forEach(s=>n(s));else {let s=o.get(i.field)||[];s.push(i),o.set(i.field,s);}}e.conditions.forEach(i=>n(i));let a=[];for(let[i,s]of o.entries()){let c=r.get(i),l=c?.label||i,d=[],u=[],m=[];for(let p of s)p.operator==="in"&&Array.isArray(p.value)?d.push(...p.value):p.operator==="eq"?typeof p.value!="boolean"&&!Array.isArray(p.value)?d.push(p.value):m.push(p):["gte","gt","lte","lt"].includes(p.operator)?u.push({operator:p.operator,value:typeof p.value=="boolean"||Array.isArray(p.value)?String(p.value):p.value}):m.push(p);if(d.length>0){let f=Array.from(new Set(d)).map(g=>c?.values?.find(b=>String(b.value)===String(g))?.label??g);a.push({id:`${i}-in`,label:l,value:f.join(", ")});}if(u.length>0){let p=u.find(g=>g.operator==="gte"||g.operator==="gt"),f=u.find(g=>g.operator==="lte"||g.operator==="lt");if(p&&f){let g=p.operator==="gte"?"\u2265":">",h=f.operator==="lte"?"\u2264":"<";a.push({id:`${i}-range`,label:l,value:`${g} ${p.value} and ${h} ${f.value}`});}else for(let g of u){let h;g.operator==="gte"?h="\u2265":g.operator==="gt"?h=">":g.operator==="lte"?h="\u2264":h="<",a.push({id:`${i}-${g.operator}`,label:l,value:`${h} ${g.value}`});}}for(let p of m){let f;p.operator==="neq"?f=`\u2260 ${p.value}`:p.operator==="contains"?f=`contains "${p.value}"`:p.operator==="startsWith"?f=`starts with "${p.value}"`:p.operator==="endsWith"?f=`ends with "${p.value}"`:f=String(p.value),a.push({id:`${i}-${p.operator}`,label:l,value:f});}}return a}function cn(e,t){let r=e||Ui();return {...r,conditions:[...r.conditions,t]}}function Kn(e,t){if(!e)return Ui();let r=e.conditions.filter(o=>"conditions"in o?Kn(o,t).conditions.length>0:o.field!==t);return {...e,conditions:r}}function Yn(e){if(!e)return [];let t=new Set;function r(o){"conditions"in o?o.conditions.forEach(r):t.add(o.field);}return e.conditions.forEach(r),Array.from(t)}function Rx({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,isDisabled:i,isInvalid:s,showCalendar:c=true,reserveErrorSpace:l=true,validationResult:d,className:u,...m}){let[p,f]=Ke.useState(false),g=h=>{m.onChange&&h&&m.onChange(h),f(false);};return jsxRuntime.jsxs(reactAriaComponents.DateField,{...m,isDisabled:i,isRequired:a,isInvalid:s,className:ke(u,"flex flex-col gap-1"),children:[e&&jsxRuntime.jsx(Ue,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(wt,{children:jsxRuntime.jsxs("div",{className:"relative w-full",children:[jsxRuntime.jsx(Ki,{size:o,isDisabled:i,isInvalid:s,hasCalendar:c}),c&&!i&&jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{isOpen:p,onOpenChange:f,children:[jsxRuntime.jsx(_,{variant:"unstyled",className:"absolute right-2 top-1/2 -translate-y-1/2 flex h-8 w-8 items-center justify-center rounded hover:bg-background-hover text-text-secondary hover:text-text-primary transition-colors","aria-label":"Open calendar",children:jsxRuntime.jsx(F,{name:"Calendar",size:18})}),jsxRuntime.jsx(reactAriaComponents.Popover,{className:"bg-background-surface rounded-lg border border-border-default shadow-xl",children:jsxRuntime.jsx(reactAriaComponents.Dialog,{className:"p-4 outline-none",children:jsxRuntime.jsx(Aa,{value:m.value,onChange:g,minValue:m.minValue,maxValue:m.maxValue,isDisabled:i,isReadOnly:m.isReadOnly,isDateUnavailable:m.isDateUnavailable})})})]})]})}),l?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(fe,{size:o,children:r}):typeof r=="function"&&d?jsxRuntime.jsx(fe,{size:o,children:r(d)}):t?jsxRuntime.jsx(Te,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(fe,{size:o,className:"mt-1",children:r}):typeof r=="function"&&d?jsxRuntime.jsx(fe,{size:o,className:"mt-1",children:r(d)}):t?jsxRuntime.jsx(Te,{size:o,className:"mt-1",children:t}):null})]})}function W1({isPlaceholder:e,isDisabled:t,size:r="md"}){return tailwindMerge.twMerge("inline-block box-content px-0.5 rounded outline-none tabular-nums text-center transition-colors",{sm:"text-base md:text-xs",md:"text-base md:text-sm",lg:"text-base",xl:"text-lg"}[r],e?"text-text-disabled italic":"text-text-primary",t?"text-text-disabled cursor-not-allowed":"cursor-text",!t&&"hover:bg-background-hover","data-[focused]:bg-background-selected data-[focused]:text-text-primary")}function Ki({size:e="md",isDisabled:t,isInvalid:r,hasCalendar:o,className:n,...a}){return jsxRuntime.jsx(reactAriaComponents.DateInput,{className:tailwindMerge.twMerge(qo({isInvalid:r,isDisabled:t}),"px-3 py-2 flex items-center gap-0.5 w-full",o&&"pr-10",n),...a,children:i=>jsxRuntime.jsx(reactAriaComponents.DateSegment,{segment:i,className:W1({isPlaceholder:i.isPlaceholder,isDisabled:!i.isEditable||t,size:e})})})}function Ll({label:e,description:t,errorMessage:r,...o}){return jsxRuntime.jsxs(reactAriaComponents.DateRangePicker,{...o,className:ke(o.className,"group flex flex-col gap-1"),children:[e&&jsxRuntime.jsx(Ue,{children:e}),jsxRuntime.jsxs(sg,{className:"w-auto min-w-[208px]",children:[jsxRuntime.jsx(Ki,{slot:"start",className:"px-2 py-1.5 text-sm"}),jsxRuntime.jsx("span",{"aria-hidden":"true",className:"text-text-primary group-disabled:text-text-disabled forced-colors:text-[ButtonText] group-disabled:forced-colors:text-[GrayText]",children:"\u2013"}),jsxRuntime.jsx(Ki,{slot:"end",className:"flex-1 px-2 py-1.5 text-sm"}),jsxRuntime.jsx(_,{variant:"icon",className:"mr-1 w-6 rounded outline-offset-0",children:jsxRuntime.jsx(lucideReact.CalendarIcon,{"aria-hidden":true,className:"h-4 w-4"})})]}),t&&jsxRuntime.jsx(Te,{children:t}),typeof r=="string"?jsxRuntime.jsx(fe,{children:r}):null,jsxRuntime.jsx(ft,{children:jsxRuntime.jsx(Ya,{})})]})}var Z1=e=>{let t=Ut({isInvalid:e.isInvalid,isDisabled:e.isDisabled,isFocused:e.isFocused,transparent:e.transparent,size:e.size});return tailwindMerge.twMerge(t,"pr-9","[appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",e.className)};function Yi({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,transparent:i,validationResult:s,reserveErrorSpace:c=true,descriptionPlacement:l="below",...d}){let u=Ke.useId(),{isFocused:m,handleFocus:p,handleBlur:f}=Dr();return jsxRuntime.jsx(reactAriaComponents.NumberField,{...d,id:u,isRequired:a,className:ke(d.className,"group flex flex-col gap-1"),step:d.step??1,onChange:g=>{typeof g=="number"&&(d.maxValue!=null&&g>d.maxValue?d.onChange?.(d.maxValue):d.minValue!=null&&g<d.minValue?d.onChange?.(d.minValue):d.onChange?.(g));},isInvalid:!!r||typeof d.value=="number"&&(d.maxValue!=null&&d.value>d.maxValue||d.minValue!=null&&d.value<d.minValue),children:({isDisabled:g,isInvalid:h})=>jsxRuntime.jsxs("div",{className:"flex flex-col gap-1",children:[e&&jsxRuntime.jsx(Ue,{size:o,tooltip:n,description:l==="tooltip"||l==="inline"?t:void 0,descriptionPlacement:l,isRequired:a,htmlFor:u,children:e}),jsxRuntime.jsx("div",{className:"relative",children:jsxRuntime.jsxs(reactAriaComponents.Group,{className:"relative",children:[jsxRuntime.jsx(reactAriaComponents.Input,{onFocus:y=>p(y,d.onFocus),onBlur:y=>f(y,d.onBlur),className:Z1({isInvalid:h||!!r,isDisabled:g,isFocused:m,transparent:i,size:o,className:typeof d.className=="string"?d.className:void 0})}),jsxRuntime.jsxs("div",{className:"absolute inset-y-[2px] right-[2px] flex flex-col divide-y divide-border-default border-l border-border-default overflow-hidden rounded-r-[calc(var(--control-border-radius)-2px)]",children:[jsxRuntime.jsx(reactAriaComponents.Button,{slot:"increment",isDisabled:g,className:"flex h-1/2 w-7 items-center justify-center bg-background-input hover:bg-background-input-hover active:bg-background-input-active disabled:cursor-not-allowed disabled:opacity-50",children:jsxRuntime.jsx(F,{name:"CaretUp",size:14})}),jsxRuntime.jsx(reactAriaComponents.Button,{slot:"decrement",isDisabled:g,className:"flex h-1/2 w-7 items-center justify-center bg-background-input hover:bg-background-input-hover active:bg-background-input-active disabled:cursor-not-allowed disabled:opacity-50",children:jsxRuntime.jsx(F,{name:"CaretDown",size:14})})]})]})}),c?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:r?jsxRuntime.jsx(fe,{size:o,children:typeof r=="function"?r(s):r}):t&&l==="below"?jsxRuntime.jsx(Te,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:r?jsxRuntime.jsx(fe,{size:o,className:"mt-1",children:typeof r=="function"?r(s):r}):t&&l==="below"?jsxRuntime.jsx(Te,{size:o,className:"mt-1",children:t}):null})]})})}var ip={sm:{track:"h-4 w-7",handle:"h-3.5 w-3.5",text:"text-xs"},md:{track:"h-5 w-9",handle:"h-4 w-4",text:"text-sm"},lg:{track:"h-6 w-11",handle:"h-5 w-5",text:"text-base"},xl:{track:"h-7 w-14",handle:"h-6 w-6",text:"text-lg"}};function eR({isSelected:e,isDisabled:t,size:r="md"}){let o="flex px-px items-center shrink-0 cursor-default rounded-full transition duration-200 ease-in-out shadow-inner border border-transparent",n=ip[r].track,a=Ze,i="focus-visible:outline-action-primary",s="";return e?s="bg-action-primary forced-colors:!bg-[Highlight] group-pressed:bg-action-primary-hover":s="bg-border-input group-pressed:bg-border-focus",[o,n,a,i,s,t?"bg-background-muted forced-colors:group-selected:!bg-[GrayText] forced-colors:border-[GrayText]":""].filter(Boolean).join(" ")}function tR({isSelected:e,isDisabled:t,size:r="md"}){let o="transform rounded-full bg-background-surface outline-none shadow transition duration-200 ease-in-out",n=ip[r].handle;return [o,n,e?"translate-x-[100%]":"translate-x-0",t?"forced-colors:outline-[GrayText]":""].filter(Boolean).join(" ")}function Dl({children:e,variant:t="primary",size:r="md",...o}){return jsxRuntime.jsx(reactAriaComponents.Switch,{...o,className:ke(o.className,`relative group flex items-center gap-2 ${ip[r].text} text-text-primary transition disabled:text-text-disabled forced-colors:disabled:text-[GrayText]`),children:n=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:eR({...n,size:r}),children:jsxRuntime.jsx("span",{className:tR({...n,size:r})})}),e]})})}function Lx(e){return new Intl.NumberFormat("en-US").format(e)}function Dx({isOpen:e,onClose:t,facetConfigs:r,facetCounts:o={},currentFilters:n,onApply:a,onClear:i,title:s="Filters",resultCount:c}){let[l,d]=Ke.useState(n),[u,m]=Ke.useState({}),[p,f]=Ke.useState({}),[g,h]=Ke.useState(null),{isMobile:b}=$t(),y=Ke.useMemo(()=>r.some(C=>C.group),[r]),{groups:x,ungroupedFacets:v,facetsByGroup:S}=Ke.useMemo(()=>{let C=new Set,D=[],B={};for(let X of r)X.group?(C.has(X.group)||(C.add(X.group),B[X.group]=[]),B[X.group].push(X)):D.push(X);return {groups:Array.from(C),ungroupedFacets:D,facetsByGroup:B}},[r]);Ke.useEffect(()=>{e&&(d(n),m({}),f({}),h(!b&&x.length>0?x[0]:null));},[e,n,x,b]);let w=Ke.useMemo(()=>!l||Ml(l)?0:Yn(l).length,[l]),k=()=>{a(l),t();},P=()=>{let C=Ui();d(C),i?i():a(C),t();},T=C=>{if(!l)return [];if(!Yn(l).includes(C))return [];let B=[];function X(ee){if(ee)for(let le of ee.conditions)"conditions"in le?X(le):le.field===C&&le.operator==="in"&&Array.isArray(le.value)&&B.push(...le.value.map(String));}return X(l),B},E=(C,D,B)=>{let X=Kn(l,C);D!==void 0&&(X=cn(X,{field:C,operator:"gte",value:D})),B!==void 0&&(X=cn(X,{field:C,operator:"lte",value:B})),d(X);},I=C=>{if(!l)return;let D;function B(X){if(X)for(let ee of X.conditions)"conditions"in ee?B(ee):ee.field===C&&ee.operator==="eq"&&typeof ee.value=="boolean"&&(D=ee.value);}return B(l),D},R=(C,D)=>{let B=Kn(l,C);D!==void 0&&(B=cn(B,{field:C,operator:"eq",value:D})),d(B);},L=(C,D,B)=>{let X=Kn(l,C);D&&(X=cn(X,{field:C,operator:"gte",value:D.toString()})),B&&(X=cn(X,{field:C,operator:"lte",value:B.toString()})),d(X);},M=C=>{let D=S[C]||[],B=l?Yn(l):[];return D.filter(X=>B.includes(X.field)).length},V="pr-9 bg-background-muted/50",z="border-t border-border-muted",U="text-sm font-medium text-text-link-default",Q=C=>jsxRuntime.jsx("span",{className:U,children:C}),Z=C=>{let D=o[C.field]||{},B=u[C.field]||"",X=[];C.values?X=C.values.map($=>({value:String($.value),label:$.label,count:D[String($.value)]})):X=Object.entries(D).map(([$,ae])=>({value:$,label:$,count:ae}));let ee=X.length;if(B){let $=B.toLowerCase();X=X.filter(ae=>ae.label.toLowerCase().includes($));}X.sort(($,ae)=>$.count!==void 0&&ae.count!==void 0&&ae.count!==$.count?ae.count-$.count:$.label.localeCompare(ae.label));let le=C.type||"string";if(le==="string"||!C.type){let $=T(C.field),ae=C.searchThreshold??10,Ve=C.maxVisibleOptions??50,te=p[C.field]??false,ne=te||X.length<=Ve?X:X.slice(0,Ve),oe=X.length>Ve&&!te;return jsxRuntime.jsxs($o,{id:C.field,children:[jsxRuntime.jsx(en,{title:C.label,description:C.description,className:V,endContent:$.length>0?Q(`${$.length} selected`):void 0}),jsxRuntime.jsx(tn,{className:z,children:jsxRuntime.jsxs("div",{className:"space-y-4 pt-4 pb-4",children:[ee>ae&&jsxRuntime.jsx(Un,{value:B,onChange:pe=>m(Re=>({...Re,[C.field]:pe})),onClear:()=>m(pe=>({...pe,[C.field]:""})),placeholder:`Search ${C.label.toLowerCase()}...`,size:"sm",className:"w-full !max-w-none pr-4"}),jsxRuntime.jsx(xu,{value:$,onChange:pe=>{let Re=Kn(l,C.field);pe.length>0&&(Re=cn(Re,{field:C.field,operator:"in",value:pe})),d(Re);},children:jsxRuntime.jsx("div",{className:"space-y-1.5",children:ne.map(pe=>jsxRuntime.jsx("div",{className:"rounded-md py-2 pr-4 transition-colors hover:bg-background-hover",children:jsxRuntime.jsx(Mo,{value:pe.value,children:jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-3 flex-1",children:[C.renderLabel?C.renderLabel(pe.value,pe.label):jsxRuntime.jsx("span",{className:"text-sm font-medium text-text-primary",children:pe.label}),pe.count!==void 0&&jsxRuntime.jsx("span",{className:"text-xs font-medium text-text-secondary tabular-nums",children:Lx(pe.count)})]})})},pe.value))})}),oe&&jsxRuntime.jsx("div",{className:"pt-2 border-t border-border-muted",children:jsxRuntime.jsxs(_,{variant:"ghost",size:"sm",onPress:()=>f(pe=>({...pe,[C.field]:true})),className:"w-full",children:["Show all ",X.length," options"]})}),te&&X.length>Ve&&jsxRuntime.jsx("div",{className:"pt-2 border-t border-border-muted",children:jsxRuntime.jsx(_,{variant:"ghost",size:"sm",onPress:()=>f(pe=>({...pe,[C.field]:false})),className:"w-full",children:"Show less"})})]})})]},C.field)}if(le==="number"){let $,ae,Ve=ne=>{if(ne)for(let oe of ne.conditions)"conditions"in oe?Ve(oe):oe.field===C.field&&(oe.operator==="gte"&&typeof oe.value=="number"&&($=oe.value),oe.operator==="lte"&&typeof oe.value=="number"&&(ae=oe.value));};Ve(l);let te=$!==void 0||ae!==void 0;return jsxRuntime.jsxs($o,{id:C.field,children:[jsxRuntime.jsx(en,{title:C.label,description:C.description,className:V,endContent:te?Q($!==void 0&&ae!==void 0?`${$} - ${ae}`:$!==void 0?`\u2265 ${$}`:`\u2264 ${ae}`):void 0}),jsxRuntime.jsx(tn,{className:z,children:jsxRuntime.jsxs("div",{className:"grid grid-cols-2 gap-4 pt-4 pb-4",children:[jsxRuntime.jsx(Yi,{label:"Min",value:$,onChange:ne=>E(C.field,ne,ae)},`${C.field}-min`),jsxRuntime.jsx(Yi,{label:"Max",value:ae,onChange:ne=>E(C.field,$,ne)},`${C.field}-max`)]})})]},C.field)}if(le==="boolean"){let $=I(C.field);return jsxRuntime.jsxs($o,{id:C.field,children:[jsxRuntime.jsx(en,{title:C.label,description:C.description,className:V,endContent:$!==void 0?Q($?"Yes":"No"):void 0}),jsxRuntime.jsx(tn,{className:z,children:jsxRuntime.jsxs("div",{className:"flex items-center justify-between pt-4 pb-4",children:[jsxRuntime.jsx("span",{className:"text-sm font-medium text-text-primary",children:$!==void 0?$?"Enabled":"Disabled":"No filter applied"}),jsxRuntime.jsx(Dl,{size:"lg",isSelected:$??false,onChange:ae=>R(C.field,ae?true:void 0),children:$?"Yes":"No"})]})})]},C.field)}if(le==="date"){let $,ae,Ve=Re=>{if(Re)for(let rt of Re.conditions)"conditions"in rt?Ve(rt):rt.field===C.field&&(rt.operator==="gte"&&($=String(rt.value)),rt.operator==="lte"&&(ae=String(rt.value)));};Ve(l);let te=$!==void 0||ae!==void 0,ne=Re=>{if(Re)try{return /^\d{4}-\d{2}-\d{2}$/.test(Re)?date.parseDate(Re):void 0}catch{return}},oe=ne($),pe=ne(ae);return jsxRuntime.jsxs($o,{id:C.field,children:[jsxRuntime.jsx(en,{title:C.label,description:C.description,className:V,endContent:te?Q("Date range selected"):void 0}),jsxRuntime.jsx(tn,{className:z,children:jsxRuntime.jsx("div",{className:"pt-4 pb-4",children:jsxRuntime.jsx(Ll,{label:"Date Range",value:oe&&pe?{start:oe,end:pe}:void 0,onChange:Re=>{Re?L(C.field,Re.start,Re.end):L(C.field,void 0,void 0);}})})})]},C.field)}return null},H=()=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[v.map(C=>{let B=(l?Yn(l):[]).includes(C.field);return jsxRuntime.jsxs("button",{type:"button",onClick:()=>h(`__ungrouped__${C.field}`),className:"flex items-center justify-between px-6 py-3 text-left hover:bg-background-hover border-b border-border-muted transition-colors",children:[jsxRuntime.jsx("span",{className:"text-sm font-medium text-text-primary",children:C.label}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[B&&jsxRuntime.jsx("span",{className:U,children:"1 active"}),jsxRuntime.jsx(F,{name:"CaretRight",size:"sm",className:"text-text-secondary"})]})]},C.field)}),x.map(C=>{let D=M(C);return jsxRuntime.jsxs("button",{type:"button",onClick:()=>h(C),className:"flex items-center justify-between px-6 py-3 text-left hover:bg-background-hover border-b border-border-muted transition-colors",children:[jsxRuntime.jsx("span",{className:"text-sm font-medium text-text-primary",children:C}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[D>0&&jsxRuntime.jsxs("span",{className:U,children:[D," active"]}),jsxRuntime.jsx(F,{name:"CaretRight",size:"sm",className:"text-text-secondary"})]})]},C)})]}),j=C=>{if(C.startsWith("__ungrouped__")){let B=C.replace("__ungrouped__",""),X=v.find(ee=>ee.field===B);return X?jsxRuntime.jsx(Ia,{variant:"contained",density:"comfortable",showDividers:true,defaultExpandedKeys:[X.field],children:Z(X)}):null}let D=S[C]||[];return D.length===0?null:jsxRuntime.jsx(Ia,{variant:"contained",density:"comfortable",showDividers:true,defaultExpandedKeys:[D[0].field],children:D.map(B=>Z(B))})},G=()=>{if(g){let C=g.startsWith("__ungrouped__")&&v.find(D=>D.field===g.replace("__ungrouped__",""))?.label||g;return jsxRuntime.jsxs("div",{className:"flex flex-col h-full",children:[jsxRuntime.jsxs("button",{type:"button",onClick:()=>h(null),className:"flex items-center gap-2 px-4 py-3 border-b border-border-muted hover:bg-background-hover transition-colors",children:[jsxRuntime.jsx(F,{name:"CaretLeft",size:"sm",className:"text-text-secondary"}),jsxRuntime.jsx("span",{className:"text-sm font-medium text-text-primary",children:C})]}),jsxRuntime.jsx("div",{className:"flex-1 overflow-y-auto",children:j(g)})]})}return H()},A=()=>jsxRuntime.jsxs("div",{className:"flex h-full",children:[jsxRuntime.jsxs("div",{className:"w-48 flex-shrink-0 border-r border-border-muted overflow-y-auto bg-background-muted/30",children:[v.map(C=>{let B=(l?Yn(l):[]).includes(C.field),X=g===`__ungrouped__${C.field}`;return jsxRuntime.jsxs("button",{type:"button",onClick:()=>h(`__ungrouped__${C.field}`),className:`flex items-center justify-between w-full px-4 py-3 text-left border-b border-border-muted transition-colors ${X?"bg-background-selected":"hover:bg-background-hover"}`,children:[jsxRuntime.jsx("span",{className:`text-sm truncate ${X?"font-semibold text-text-primary":"font-medium text-text-primary"}`,children:C.label}),B&&jsxRuntime.jsx("span",{className:"w-2 h-2 rounded-full bg-action-primary flex-shrink-0 ml-2"})]},C.field)}),x.map(C=>{let D=M(C),B=g===C;return jsxRuntime.jsxs("button",{type:"button",onClick:()=>h(C),className:`flex items-center justify-between w-full px-4 py-3 text-left border-b border-border-muted transition-colors ${B?"bg-background-selected":"hover:bg-background-hover"}`,children:[jsxRuntime.jsx("span",{className:`text-sm truncate ${B?"font-semibold text-text-primary":"font-medium text-text-primary"}`,children:C}),D>0&&jsxRuntime.jsx("span",{className:"w-2 h-2 rounded-full bg-action-primary flex-shrink-0 ml-2"})]},C)})]}),jsxRuntime.jsx("div",{className:"flex-1 overflow-y-auto",children:g?j(g):jsxRuntime.jsx("div",{className:"flex items-center justify-center h-full text-text-secondary text-sm",children:"Select a category to view filters"})})]}),W=()=>jsxRuntime.jsx(Ia,{variant:"contained",density:"comfortable",showDividers:true,defaultExpandedKeys:[r[0].field],children:r.map(C=>Z(C))});return jsxRuntime.jsx(or,{isOpen:e,onClose:t,title:y&&b&&g?g.startsWith("__ungrouped__")?v.find(C=>C.field===g.replace("__ungrouped__",""))?.label||s:g:w>0?`${s} (${w} active)`:s,hideCloseIcon:false,primaryAction:{label:"Apply filters",onPress:k,variant:"primary"},secondaryAction:{label:"Clear all",onPress:P},maxWidth:y?"800px":"700px",height:"600px",mobileHeight:"85vh",contentPadding:false,footerContent:c!==void 0?jsxRuntime.jsxs("div",{className:"text-sm text-text-secondary text-center",children:[jsxRuntime.jsx("span",{className:"font-semibold text-text-primary",children:Lx(c)})," ",c===1?"result":"results"," with current filters"]}):void 0,children:r.length===0?jsxRuntime.jsx("div",{className:"py-12 text-center",children:jsxRuntime.jsx("div",{className:"text-sm font-medium text-text-secondary",children:"No filters available"})}):y?b?G():A():W()})}function lp(e="left"){switch(e){case "center":return "justify-center text-center";case "right":return "justify-end text-right";default:return "justify-start text-left"}}function zr(e="normal",t){return tailwindMerge.twMerge({strong:"font-semibold text-text-primary",high:"font-semibold text-text-primary",normal:"text-text-primary",low:"text-text-secondary"}[e],t&&"hover:text-action-primary cursor-pointer transition-colors")}function Pe(e="left",t){return tailwindMerge.twMerge("flex items-center gap-1 min-w-0 overflow-hidden",lp(e),t)}function Fl(e,t="\u2014"){return e==null||e===""?t:String(e)}var dn={xs:"h-4 w-12",sm:"h-4 w-20",md:"h-4 w-24",lg:"h-4 w-32",xl:"h-4 w-40"};function Yt(e="normal"){return {strong:dn.lg,high:dn.lg,normal:dn.md,low:dn.sm}[e]}function ue(e,...t){return typeof e=="function"?e(...t):e}function Ax(e="neutral",t="sm"){return tailwindMerge.twMerge("inline-flex items-center rounded-full font-medium",t==="sm"?"px-2 py-0.5 text-xs":"px-2.5 py-1 text-sm",{success:"bg-feedback-success-background text-feedback-success-text",error:"bg-feedback-error-background text-feedback-error-text",warning:"bg-feedback-warning-background text-feedback-warning-text",info:"bg-feedback-info-background text-feedback-info-text",neutral:"bg-background-muted text-text-secondary"}[e])}function Ix(e){return e?"success":"neutral"}function Bl(e,t=false){return t?e>0?"text-feedback-success-text":e<0?"text-feedback-error-text":"text-text-primary":"text-text-primary"}function cp(e="hover",t="secondary"){let r={primary:"text-action-primary hover:text-action-primary-hover visited:text-action-primary",secondary:"text-text-link-default hover:text-text-link-hover visited:text-text-link-default",default:"text-text-link-default hover:text-text-link-hover visited:text-text-link-default",brand:"text-action-primary hover:text-action-primary-hover visited:text-action-primary",muted:"text-text-secondary hover:text-text-secondary visited:text-text-secondary",unstyled:""},o={visible:"underline underline-offset-4 decoration-1 cursor-pointer",hover:"hover:underline hover:underline-offset-4 hover:decoration-1 cursor-pointer transition-colors",none:"cursor-pointer"},n=r[t],a=o[e]||"";return `${n} ${a}`.trim()}function ho(e,t,r,o="hover",n="secondary",a,i){if(!t)return e;let s=typeof t=="function"&&r?t(r):t,c=cp(o,n);return jsxRuntime.jsx("a",{href:s,className:tailwindMerge.twMerge(c,a==="strong"||a==="high"?"font-semibold":"",i),onClick:d=>{d.metaKey||d.ctrlKey;},children:e})}function Fx({row:e,context:t,actions:r,align:o="right",size:n="sm"}){let{isLoading:a}=t;if(a)return jsxRuntime.jsx(K,{className:dn.sm});let s=(typeof r=="function"?r(e):r).filter(l=>!ue(l.hidden,e));if(s.length===0)return null;let c=Pe(o);return jsxRuntime.jsx("div",{className:c,children:s.map(l=>{let d=ue(l.disabled,e);return l.variant==="icon"||!l.label?jsxRuntime.jsx(_,{variant:"icon",size:n,onPress:()=>{l.onClick(e);},isDisabled:d,"aria-label":l.label||l.id,children:jsxRuntime.jsx(F,{name:l.icon||"DotsThree",size:n==="sm"?16:20})},l.id):jsxRuntime.jsxs(_,{variant:l.variant||"secondary",size:n,onPress:()=>{l.onClick(e);},isDisabled:d,children:[l.icon&&jsxRuntime.jsx(F,{name:l.icon,size:n==="sm"?14:16}),l.label]},l.id)})})}function Vx({value:e,row:t,context:r,variant:o="default",label:n,size:a="sm",shape:i="square",dot:s,dotPosition:c="left",dotPulse:l,align:d="left",emptyText:u="\u2014",className:m,maxVisible:p=2,maxLabelLength:f}){let{isLoading:g}=r,h=(w,k)=>{if(!f||w.length<=f)return jsxRuntime.jsx(jsxRuntime.Fragment,{children:w});let P=w.slice(0,f-1)+"\u2026";return jsxRuntime.jsx(nr,{content:k,children:jsxRuntime.jsx("span",{children:P})})};if(g)return jsxRuntime.jsx(K,{className:Yt("normal")});if(e==null||e==="")return jsxRuntime.jsx("div",{className:Pe(d,"text-text-secondary"),children:u});if(Array.isArray(e)&&e.length===0)return jsxRuntime.jsx("div",{className:Pe(d,"text-text-secondary"),children:u});let b=Pe(d,m);if(Array.isArray(e)){let w=e.slice(0,p),k=e.slice(p),P=k.length>0;return jsxRuntime.jsx("div",{className:b,children:jsxRuntime.jsxs("div",{className:"flex items-center gap-1",children:[w.map((T,E)=>{let I=ue(o,T,t),R=n!==void 0?ue(n,T,t):String(T),L=ue(s,T,t),M=ue(l,T,t);return jsxRuntime.jsx("span",{className:"flex-shrink-0 whitespace-nowrap",children:jsxRuntime.jsx(lt,{variant:I,size:a,shape:i,dot:L,dotPosition:c,dotPulse:M,children:h(R,R)})},E)}),P&&jsxRuntime.jsx(nr,{content:k.join(", "),children:jsxRuntime.jsx("span",{className:"flex-shrink-0 whitespace-nowrap",children:jsxRuntime.jsxs(lt,{variant:"neutral",size:a,shape:i,children:["+",k.length]})})})]})})}let y=ue(o,e,t),x=n!==void 0?ue(n,e,t):String(e),v=ue(s,e,t),S=ue(l,e,t);return jsxRuntime.jsx("div",{className:b,children:jsxRuntime.jsx(lt,{variant:y,size:a,shape:i,dot:v,dotPosition:c,dotPulse:S,children:h(x,x)})})}function zx({value:e,context:t,format:r="icon",trueText:o="Yes",falseText:n="No",trueIcon:a="Check",falseIcon:i="X",showFalse:s=true,align:c="center",emphasis:l="normal",className:d}){let{isLoading:u}=t;if(u)return jsxRuntime.jsx(K,{className:Yt(l)});let m=!!e;if(!m&&!s)return jsxRuntime.jsx("div",{className:Pe(c,d)});let p=Pe(c,d);switch(r){case "icon":return jsxRuntime.jsx("div",{className:p,children:jsxRuntime.jsx(F,{name:m?a:i,size:16,className:m?"text-feedback-success-text":"text-text-disabled"})});case "text":return jsxRuntime.jsx("div",{className:p,children:jsxRuntime.jsx("span",{className:zr(l),children:m?o:n})});case "badge":return jsxRuntime.jsx("div",{className:p,children:jsxRuntime.jsx(lt,{variant:m?"success":"neutral",size:"sm",children:m?o:n})});default:return null}}function Hx({row:e,context:t,firstName:r,lastName:o,email:n,avatarUrl:a,layout:i="stacked",size:s="sm",href:c,LinkComponent:l,linkVariant:d="secondary",showEmail:u=false,badge:m,emphasis:p="normal",align:f="left",className:g,piiEntity:h}){let{isLoading:b}=t,y=ue(r,e),x=ue(o,e),v=ue(n,e),S=ue(a,e),w=ue(c,e),k=ue(m,e),P=ue(h,e),T=Pe(f,g);return jsxRuntime.jsx("div",{className:T,children:jsxRuntime.jsx(al,{firstName:y,lastName:x,email:v,avatarUrl:S,layout:i,size:s,href:w,LinkComponent:l,linkVariant:d,showEmail:u,badge:k,emphasis:p,isLoading:b,piiEntity:P})})}function Gx({value:e,row:t,context:r,render:o,className:n}){let a=o(e,t,r);return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("h-full w-full",n),children:a})}function Wx({value:e,row:t,context:r,format:o="date",customFormat:n,emptyText:a="\u2014",align:i="left",emphasis:s="normal",href:c,linkBehavior:l="hover",className:d}){let{isLoading:u}=r;if(u)return jsxRuntime.jsx(K,{className:Yt(s)});if(!e)return jsxRuntime.jsx("div",{className:Pe(i,"text-text-secondary"),children:a});let m=e instanceof Date?e:new Date(e);if(isNaN(m.getTime()))return jsxRuntime.jsx("div",{className:Pe(i,"text-text-secondary"),children:a});let p;switch(o){case "date":p=m.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"});break;case "time":p=m.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit"});break;case "datetime":p=m.toLocaleString("en-US",{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"});break;case "relative":p=pR(m);break;case "custom":p=n?m.toLocaleString("en-US",n):m.toISOString();break;default:p=m.toLocaleDateString();}let f=Pe(i,tailwindMerge.twMerge(zr(s),d)),g=ue(c,t);return g?jsxRuntime.jsx("div",{className:f,children:ho(p,g,t,l)}):jsxRuntime.jsx("div",{className:f,children:p})}function pR(e){let r=new Date().getTime()-e.getTime(),o=Math.floor(r/1e3),n=Math.floor(o/60),a=Math.floor(n/60),i=Math.floor(a/24);return o<60?"just now":n<60?`${n} minute${n!==1?"s":""} ago`:a<24?`${a} hour${a!==1?"s":""} ago`:i<7?`${i} day${i!==1?"s":""} ago`:e.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"})}var fR={up:"ArrowUp",down:"ArrowDown",flat:"Minus"},gR={positive:"text-feedback-success-text",negative:"text-feedback-error-text",neutral:"text-text-secondary"};function dp(e){return e>0?"up":e<0?"down":"flat"}function bR(e,t,r){switch(e){case "percent":return {type:"percentage",decimals:t};case "currency":return {type:"currency",currency:r,minimumFractionDigits:t,maximumFractionDigits:t};case "compact":return {type:"number",notation:"compact",decimals:t,thousandsSeparator:true};default:return {type:"number",decimals:t,thousandsSeparator:true}}}function Ux({value:e,row:t,context:r,direction:o,tone:n="neutral",format:a="number",decimals:i=0,currency:s="USD",showIcon:c=true,align:l="right",emphasis:d="normal",emptyText:u="\u2014",className:m}){let{isLoading:p}=r;if(p)return jsxRuntime.jsx(K,{className:Yt(d)});let f=typeof e=="number"?e:Number(e);if(e==null||e===""||!Number.isFinite(f))return jsxRuntime.jsx("div",{className:Pe(l,"text-text-secondary"),children:u});let g=ue(o,t)??dp(f),h=ue(n,t)??"neutral",b=xr(f,bR(a,i,s))??u,y=f>0?"+":"",v=Pe(l,tailwindMerge.twMerge(d==="strong"||d==="high"?"font-semibold":void 0,m,gR[h]));return jsxRuntime.jsxs("div",{className:v,children:[c&&jsxRuntime.jsx(F,{name:fR[g],size:"xs","aria-hidden":true}),jsxRuntime.jsx("span",{children:`${y}${b}`})]})}function zl({manufacturer:e,model:t,deviceType:r,deviceTypeIconName:o,logoUrl:n,layout:a="stacked",size:i="md",href:s,LinkComponent:c,linkVariant:l="unstyled",showDeviceTypeIcon:d=true,showLogo:u=true,emphasis:m="normal",isLoading:p=false,className:f,piiEntity:g}){let[h,b]=Ke.useState(false),y=o||(r?yR(r):"DeviceMobile"),v={xs:{iconSize:28,logoSize:"w-7 h-7",gap:"gap-1.5",textSize:"text-xs",secondaryTextSize:"text-xs",iconInTextSize:12,skeletonIcon:28,skeletonText:80,skeletonSecondary:60},sm:{iconSize:32,logoSize:"w-8 h-8",gap:"gap-2",textSize:"text-sm",secondaryTextSize:"text-xs",iconInTextSize:14,skeletonIcon:32,skeletonText:96,skeletonSecondary:72},md:{iconSize:32,logoSize:"w-9 h-9",gap:"gap-3",textSize:"text-base",secondaryTextSize:"text-sm",iconInTextSize:16,skeletonIcon:36,skeletonText:128,skeletonSecondary:96},lg:{iconSize:40,logoSize:"w-10 h-10",gap:"gap-3",textSize:"text-lg",secondaryTextSize:"text-base",iconInTextSize:18,skeletonIcon:40,skeletonText:160,skeletonSecondary:120}}[i],S=n&&!h&&u,k={strong:"font-semibold text-text-primary",high:"font-semibold text-text-primary",normal:"text-text-primary",low:"text-text-secondary"}[m],P=({children:T,className:E})=>s?c?jsxRuntime.jsx(c,{href:s,className:E,children:T}):jsxRuntime.jsx(at,{href:s,variant:l,className:tailwindMerge.twMerge("hover:underline",E),asButton:false,children:T}):jsxRuntime.jsx("span",{className:E,children:T});if(p)return a==="inline"?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",v.gap,f),children:[jsxRuntime.jsx(K,{width:v.skeletonIcon,height:v.skeletonIcon,className:"flex-shrink-0 rounded"}),jsxRuntime.jsx(K,{width:v.skeletonText,height:v.skeletonIcon*.6})]}):jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",v.gap,f),children:[jsxRuntime.jsx(K,{width:v.skeletonIcon,height:v.skeletonIcon,className:"flex-shrink-0"}),jsxRuntime.jsxs("div",{className:"flex flex-col gap-1",children:[jsxRuntime.jsx(K,{width:v.skeletonText,height:16}),jsxRuntime.jsx(K,{width:v.skeletonSecondary,height:12})]})]});if(a==="inline"){let T=`${e} ${t}`;return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",v.gap,f),children:[jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-shrink-0 flex items-center justify-center rounded border border-border-muted",v.logoSize),children:S?jsxRuntime.jsx("img",{src:n,alt:`${e} logo`,className:"w-full h-full object-contain",onError:()=>b(true)}):jsxRuntime.jsx(F,{name:y,size:v.iconSize*.6,className:"text-text-secondary"})}),jsxRuntime.jsx(P,{className:tailwindMerge.twMerge("truncate leading-normal hover:text-text-primary",k,v.textSize,s&&"hover:underline hover:decoration-1 hover:underline-offset-4"),children:jsxRuntime.jsx("span",{"data-pii-type":g?"device-name":void 0,"data-pii-entity":g,children:T})})]})}return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center justify-start",v.gap,f),children:[u&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-shrink-0 flex items-center justify-center rounded border border-border-muted",v.logoSize),children:S?jsxRuntime.jsx("img",{src:n,alt:`${e} logo`,className:"w-full h-full object-contain",onError:()=>b(true)}):jsxRuntime.jsx(F,{name:y,size:v.iconSize*.6,className:"text-text-secondary"})}),jsxRuntime.jsxs("div",{className:"flex flex-col items-start min-w-0",children:[jsxRuntime.jsx(P,{className:tailwindMerge.twMerge("truncate leading-normal hover:text-text-primary",k,v.textSize,s&&"hover:underline hover:decoration-1 hover:underline-offset-4"),children:jsxRuntime.jsx("span",{"data-pii-type":g?"device-name":void 0,"data-pii-entity":g,children:e})}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center gap-1.5 text-text-secondary leading-normal",v.secondaryTextSize),children:[d&&jsxRuntime.jsx(F,{name:y,size:v.iconInTextSize,className:"flex-shrink-0"}),jsxRuntime.jsx("span",{className:"truncate","data-pii-type":g?"device-name":void 0,"data-pii-entity":g,children:t})]})]})]})}function yR(e){switch(e){case "battery":return "BatteryHigh";case "charger":return "ChargingStation";case "inverter":return "Power";case "thermostat":return "ThermometerSimple";case "vehicle":return "CarSimple";case "water_heater":return "DropHalfBottom";case "meter":return "Gauge";default:return "DeviceMobile"}}function Yx({row:e,context:t,manufacturer:r,model:o,deviceType:n,logoUrl:a,layout:i="stacked",size:s="sm",href:c,LinkComponent:l,linkVariant:d="secondary",showDeviceTypeIcon:u=true,showLogo:m=true,emphasis:p="normal",align:f="left",className:g,piiEntity:h}){let{isLoading:b}=t,y=ue(r,e),x=ue(o,e),v=ue(n,e),S=ue(a,e),w=ue(c,e),k=ue(h,e),P=Pe(f,g);return jsxRuntime.jsx("div",{className:P,children:jsxRuntime.jsx(zl,{manufacturer:y,model:x,deviceType:v,logoUrl:S,layout:i,size:s,href:w,LinkComponent:l,linkVariant:d,showDeviceTypeIcon:u,showLogo:m,emphasis:p,isLoading:b,piiEntity:k})})}var hY={charging:"percentage",discharging:"percentage",on:"kW",idle:void 0,off:void 0,heat:"temperature",cool:"temperature",auto:"temperature",eco:"temperature",circulate:void 0,unknown:void 0,connected:void 0,disconnected:void 0},vR=["charging","discharging","heat","cool","on","circulate","connected"],CR={unknown:"Unknown",on:"On",off:"Off",idle:"Idle",charging:"Charging",discharging:"Discharging",heat:"Heating",eco:"Eco Mode",cool:"Cooling",auto:"Auto",circulate:"Circulating",connected:"Connected",disconnected:"Disconnected"};function up(e){return vR.includes(e)}function pp(e){return CR[e]}function Xn({state:e,label:t,icon:r,isLoading:o,size:n="sm",shape:a="pill",dot:i,dotPulse:s,fixedWidth:c,className:l,...d}){if(o)return jsxRuntime.jsx(K,{className:"inline-flex h-6 w-20"});let u=t??pp(e),m=up(e);return jsxRuntime.jsxs(lt,{variant:e,size:n,shape:a,dot:i??m,dotPulse:s??m,className:c?`w-28 justify-center ${l||""}`:l,...d,children:[r&&jsxRuntime.jsx(F,{name:r,size:n==="sm"?12:n==="md"?14:16}),u]})}var wR={importing:"Importing",exporting:"Exporting",idle:"Idle",unknown:"Unknown"};function Xx(e){return wR[e]}var NR={importing:"ArrowDown",exporting:"ArrowUp"};function Hl({state:e,label:t,showIcon:r=false,isLoading:o,size:n="sm",shape:a="pill",fixedWidth:i,className:s,...c}){if(o)return jsxRuntime.jsx(K,{className:"inline-flex h-6 w-24"});let l=t??Xx(e),d=NR[e],u=n==="sm"?12:n==="md"?14:16;return r&&d?jsxRuntime.jsx(lt,{variant:e,size:n,shape:a,className:`w-6 justify-center ${s||""}`,...c,children:jsxRuntime.jsx(F,{name:d,size:u})}):jsxRuntime.jsx(lt,{variant:e,size:n,shape:a,className:i?`w-28 justify-center ${s||""}`:s,...c,children:l})}function Gl({state:e,stateLabel:t,metric:r,metricFormatter:o,secondaryState:n,layout:a="horizontal",isLoading:i,size:s="sm",shape:c="pill",icon:l,fixedWidth:d,secondaryStateIconOnly:u=false,className:m}){if(i)return jsxRuntime.jsx(K,{className:tailwindMerge.twMerge("inline-flex h-6 w-32",m)});let p=r!=null&&o?xr(r,o):null,f=a==="horizontal",g=o&&!p;return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("inline-flex items-center",f?"gap-2":"flex-col gap-1",m),children:[(p||g)&&jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("font-medium inline-block",p?"text-text-primary":"text-text-secondary",s==="sm"&&"text-xs min-w-12",s==="md"&&"text-sm min-w-14",s==="lg"&&"text-base min-w-16"),children:p||"\u2014"}),jsxRuntime.jsx(Xn,{state:e,label:t,icon:l,size:s,shape:c,fixedWidth:d}),n&&jsxRuntime.jsx(jsxRuntime.Fragment,{children:n==="importing"||n==="exporting"?jsxRuntime.jsx(Hl,{state:n,size:s,shape:c,fixedWidth:d,showIcon:u}):jsxRuntime.jsx(Xn,{state:n,size:s,shape:c,fixedWidth:d})})]})}function jx({value:e,row:t,context:r,metric:o,metricFormatter:n,secondaryState:a,size:i="sm",shape:s="pill",label:c,icon:l,fixedWidth:d=true,align:u="left",compact:m=false,className:p}){let{isLoading:f}=r;if(f){let v={pill:"rounded-full",rounded:"rounded-lg",square:"rounded-sm"}[s],S=o!=null||n!=null;return jsxRuntime.jsx("div",{className:"flex items-center gap-2",children:S?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(K,{className:"h-4 w-12"}),jsxRuntime.jsx(K,{className:`h-6 w-24 ${v}`}),jsxRuntime.jsx(K,{className:`h-6 w-20 ${v}`})]}):jsxRuntime.jsx(K,{className:`h-6 w-24 ${v}`})})}if(!e)return jsxRuntime.jsx("div",{className:Pe(u,p),children:jsxRuntime.jsx("span",{className:"text-text-secondary",children:"\u2014"})});let g=ue(o,t),h=ue(a,t),b=typeof c=="function"?c(e,t):c,y=Pe(u,p);return g!=null||n?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(y),children:jsxRuntime.jsx(Gl,{state:e,stateLabel:b,metric:g,metricFormatter:n,secondaryState:h||void 0,size:i,shape:s,icon:l,fixedWidth:d,secondaryStateIconOnly:m,layout:"horizontal"})}):jsxRuntime.jsx("div",{className:y,children:jsxRuntime.jsx(Xn,{state:e,label:b,icon:l,size:i,shape:s,fixedWidth:d})})}function Qx({value:e,row:t,context:r,formatter:o,align:n="left",emphasis:a="normal",href:i,linkBehavior:s="hover",className:c,emptyText:l="\u2014",emptyClassName:d="text-text-secondary"}){let{isLoading:u}=r;if(u)return jsxRuntime.jsx(K,{className:Yt(a)});let m=no({value:e,formatter:o,emptyText:l,emptyClassName:d}),p=zr(a),f=Pe(n,tailwindMerge.twMerge(p,c)),g=jsxRuntime.jsx("div",{className:f,children:m}),h=ue(i,t);return h?ho(g,h,t,s):g}var fp=Ke__namespace.default.memo(({value:e,min:t,max:r,color:o="var(--color-viz-default)",backgroundColor:n="var(--color-background-muted)",colorScale:a,showLabel:i=true,formatLabel:s,height:c=20,minWidth:l=4,segments:d,segmentGap:u=2,barWidth:m,context:p})=>{let f=Ke.useMemo(()=>r===t?100:Math.max(0,Math.min(100,(e-t)/(r-t)*100)),[e,t,r]),g=Ke.useMemo(()=>o==="auto"&&a?a.type==="diverging"&&a.center!==void 0?bi(e,t,r,a.center,a.scheme):gi(e,t,r,a.scheme):o,[o,a,e,t,r]);if(p.isLoading)return jsxRuntime.jsx("div",{className:"flex items-center gap-2 w-full",style:{height:c},children:jsxRuntime.jsx("div",{className:"h-full flex-1 animate-pulse bg-border-default rounded"})});if(d&&d>0){let y=`calc((100% - ${u*(d-1)}px) / ${d})`,x=Math.ceil(f/100*d),v={height:c,...m&&{width:typeof m=="number"?`${m}px`:m,flexShrink:0}};return jsxRuntime.jsxs("div",{className:"flex items-center gap-2 w-full",children:[jsxRuntime.jsx("div",{className:`flex gap-0.5 ${m?"":"flex-1"}`,style:v,children:Array.from({length:d}).map((S,w)=>{let k=w<x;return jsxRuntime.jsx("div",{className:"rounded-sm",style:{width:y,backgroundColor:k?g:n==="none"?"transparent":n,marginRight:w<d-1?`${u}px`:0}},w)})}),i&&jsxRuntime.jsx("span",{className:"text-sm text-text-primary whitespace-nowrap",children:s?s(e):e.toLocaleString()})]})}let h={height:c,backgroundColor:n==="none"?"transparent":n,...m&&{width:typeof m=="number"?`${m}px`:m,flexShrink:0}};return jsxRuntime.jsxs("div",{className:"flex items-center gap-2 w-full",children:[jsxRuntime.jsx("div",{className:`relative rounded-sm ${m?"":"flex-1"}`,style:h,children:jsxRuntime.jsx("div",{className:"absolute left-0 top-0 h-full rounded-sm",style:{width:`${f}%`,minWidth:f>0?l:0,backgroundColor:g}})}),i&&jsxRuntime.jsx("span",{className:"text-sm text-text-primary whitespace-nowrap",children:s?s(e):e.toLocaleString()})]})});fp.displayName="HorizontalBarCell";var gp=Ke__namespace.default.memo(({value:e,data:t,color:r="var(--color-viz-default)",categoryColors:o,context:n,width:a,height:i=40})=>{let s=e||t||[],c=h=>"xValue"in h?h.xValue:h.x,l=h=>"yValue"in h?h.yValue:h.y,d=a||100,u=i,{xScale:m,yScale:p,barWidth:f}=Ke.useMemo(()=>{if(s.length===0)return {xScale:scale.scaleTime({range:[0,d],domain:[new Date,new Date]}),yScale:scale.scaleLinear({range:[u,0],domain:[0,1]}),barWidth:2};let h=d3Array.extent(s,k=>c(k)),b=d3Array.min(s,k=>l(k))??0,y=d3Array.max(s,k=>l(k))??0,x=b<0?b:0,v=scale.scaleTime({range:[0,d],domain:h}),S=scale.scaleLinear({range:[u,0],domain:[x,y*1.05]}),w=s.length>1?d/s.length*.8:8;return {xScale:v,yScale:S,barWidth:Math.max(2,w)}},[s,d,u]);if(n.isLoading)return jsxRuntime.jsx("div",{className:"flex items-center gap-0.5",style:{width:d,height:u},children:Array.from({length:5}).map((h,b)=>jsxRuntime.jsx("div",{className:"flex-1 animate-pulse bg-border-default rounded"},b))});if(!s||s.length===0)return jsxRuntime.jsx("div",{className:"flex items-center justify-center text-text-secondary text-xs",style:{width:d,height:u},children:"No data"});let g=p(0);return jsxRuntime.jsx("svg",{width:d,height:u,children:s.map((h,b)=>{let y=l(h),x=m(c(h)),v=p(y),S=Math.abs(g-v),w=h.category&&o?.[h.category]?o[h.category]:r;return jsxRuntime.jsx(shape.Bar,{x:x-f/2,y:y>=0?v:g,width:f,height:S,fill:w,rx:1},`bar-${b}`)})})});gp.displayName="MiniBarCell";function th({value:e,row:t,context:r,format:o="number",decimals:n=0,prefix:a,suffix:i,emptyText:s="\u2014",align:c="right",emphasis:l="normal",href:d,linkBehavior:u="hover",showPositiveSign:m=false,colorCode:p=false,className:f}){let{isLoading:g}=r;if(g)return jsxRuntime.jsx(K,{className:Yt(l)});if(e==null||isNaN(Number(e)))return jsxRuntime.jsx("div",{className:Pe(c,"text-text-secondary"),children:s});let h=Number(e),b;switch(o){case "currency":b=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:n,maximumFractionDigits:n}).format(h);break;case "percent":b=new Intl.NumberFormat("en-US",{style:"percent",minimumFractionDigits:n,maximumFractionDigits:n}).format(h/100);break;case "compact":b=new Intl.NumberFormat("en-US",{notation:"compact",minimumFractionDigits:n>0?1:0,maximumFractionDigits:n}).format(h);break;default:b=new Intl.NumberFormat("en-US",{minimumFractionDigits:n,maximumFractionDigits:n}).format(h);}let x=`${m&&h>0?"+":""}${b}`,v=p?Bl(h,true):zr(l),S=Pe(c,tailwindMerge.twMerge(v,f)),w=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[a&&jsxRuntime.jsx("span",{className:"text-text-secondary",children:a}),jsxRuntime.jsx("span",{children:x}),i&&jsxRuntime.jsx("span",{className:"text-text-secondary",children:i})]}),k=ue(d,t);return k?jsxRuntime.jsx("div",{className:S,children:ho(w,k,t,u)}):jsxRuntime.jsx("div",{className:S,children:w})}var bp=Ke__namespace.default.memo(({value:e,showLabel:t=true,color:r="var(--color-viz-categorical-1)",backgroundColor:o="var(--color-background-muted)",height:n=20,segments:a,segmentGap:i=2,colorScale:s,context:c})=>{let l=Ke.useMemo(()=>Math.max(0,Math.min(100,e)),[e]),d=Ke.useMemo(()=>r==="auto"&&s?s.type==="diverging"&&s.center!==void 0?bi(e,0,100,s.center,s.scheme):gi(e,0,100,s.scheme):r,[r,s,e]);if(c.isLoading)return jsxRuntime.jsx("div",{className:"flex items-center gap-2",style:{height:n},children:jsxRuntime.jsx("div",{className:"h-full w-full animate-pulse bg-border-default rounded"})});if(a&&a>0){let m=`calc((100% - ${i*(a-1)}px) / ${a})`,p=Math.ceil(l/100*a);return jsxRuntime.jsxs("div",{className:"flex items-center gap-2 w-full",children:[jsxRuntime.jsx("div",{className:"flex gap-0.5 flex-1",style:{height:n},children:Array.from({length:a}).map((f,g)=>{let h=g<p,b=d;if(r==="auto"&&s&&h){let y=(g+1)/a*100;s.type==="diverging"&&s.center!==void 0?b=bi(y,0,100,s.center,s.scheme):b=gi(y,0,100,s.scheme);}return jsxRuntime.jsx("div",{className:"rounded-sm",style:{width:m,backgroundColor:h?b:o==="none"?"transparent":o,marginRight:g<a-1?`${i}px`:0}},g)})}),t&&jsxRuntime.jsxs("span",{className:"text-sm text-text-primary whitespace-nowrap",children:[l.toFixed(0),"%"]})]})}return jsxRuntime.jsxs("div",{className:"flex items-center gap-2 w-full",children:[jsxRuntime.jsx("div",{className:"relative flex-1 rounded-sm",style:{height:n,backgroundColor:o==="none"?"transparent":o},children:jsxRuntime.jsx("div",{className:"absolute left-0 top-0 h-full rounded-sm transition-all duration-300",style:{width:`${l}%`,backgroundColor:d}})}),t&&jsxRuntime.jsxs("span",{className:"text-sm text-text-primary whitespace-nowrap",children:[l.toFixed(0),"%"]})]})});bp.displayName="PercentBarCell";function oh({row:e,context:t,isSelected:r=false,onSelect:o,isDisabled:n=false,align:a="center"}){let{isLoading:i}=t;if(i)return jsxRuntime.jsx("div",{className:Pe(a),children:jsxRuntime.jsx(K,{className:"h-4 w-4 rounded"})});let s=ue(n,e),c=Pe(a);return jsxRuntime.jsx("div",{className:c,children:jsxRuntime.jsx(Mo,{isSelected:r,onChange:l=>{o?.(e,l);},isDisabled:s,"aria-label":"Select row"})})}function Kl({streetAddress:e,city:t,state:r,postalCode:o,layout:n="stacked",size:a="md",href:i,LinkComponent:s,linkVariant:c="unstyled",emphasis:l="normal",isLoading:d=false,className:u,piiEntity:m}){let f={xs:{iconSize:16,iconContainerSize:"w-7 h-7",gap:"gap-1.5",textSize:"text-xs",secondaryTextSize:"text-xs",skeletonIconStacked:28,skeletonIconInline:16,skeletonText:80,skeletonSecondary:60},sm:{iconSize:20,iconContainerSize:"w-8 h-8",gap:"gap-2",textSize:"text-sm",secondaryTextSize:"text-xs",skeletonIconStacked:32,skeletonIconInline:20,skeletonText:96,skeletonSecondary:72},md:{iconSize:24,iconContainerSize:"w-9 h-9",gap:"gap-3",textSize:"text-base",secondaryTextSize:"text-sm",skeletonIconStacked:36,skeletonIconInline:24,skeletonText:128,skeletonSecondary:96},lg:{iconSize:28,iconContainerSize:"w-10 h-10",gap:"gap-3",textSize:"text-lg",secondaryTextSize:"text-base",skeletonIconStacked:40,skeletonIconInline:28,skeletonText:160,skeletonSecondary:120}}[a],h={strong:"font-semibold text-text-primary",high:"font-semibold text-text-primary",normal:"text-text-primary",low:"text-text-secondary"}[l],b=[];t&&b.push(t),r&&o?b.push(`${r} ${o}`):r?b.push(r):o&&b.push(o);let y=b.join(", "),x=({children:S,className:w})=>i?s?jsxRuntime.jsx(s,{href:i,className:w,children:S}):jsxRuntime.jsx(at,{href:i,variant:c,className:tailwindMerge.twMerge("hover:underline",w),asButton:false,children:S}):jsxRuntime.jsx("span",{className:w,children:S});if(d)return n==="inline"?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",f.gap,u),children:[jsxRuntime.jsx(K,{width:f.skeletonIconInline,height:f.skeletonIconInline,className:"flex-shrink-0 rounded"}),jsxRuntime.jsx(K,{width:f.skeletonText,height:f.skeletonIconInline*.8})]}):jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",f.gap,u),children:[jsxRuntime.jsx(K,{width:f.skeletonIconStacked,height:f.skeletonIconStacked,className:"flex-shrink-0 rounded"}),jsxRuntime.jsxs("div",{className:"flex flex-col gap-1",children:[jsxRuntime.jsx(K,{width:f.skeletonText,height:16}),jsxRuntime.jsx(K,{width:f.skeletonSecondary,height:12})]})]});if(n==="inline")return jsxRuntime.jsxs(x,{className:tailwindMerge.twMerge("flex items-center",f.gap,i&&"hover:bg-background-hover transition-colors",u),children:[jsxRuntime.jsx(F,{name:"MapPin",size:f.iconSize,className:"text-text-secondary flex-shrink-0"}),jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("leading-normal truncate hover:text-text-primary",h,f.textSize,i&&"hover:underline hover:decoration-1 hover:underline-offset-4"),"data-pii-type":m?"address":void 0,"data-pii-entity":m,children:e})]});let v=()=>{if(m){if(t&&r&&o)return "city-state-zip";if(t&&r)return "city-state";if(t)return "city";if(r)return "state";if(o)return "postal-code"}};return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center justify-start",f.gap,u),children:[jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-shrink-0 flex items-center justify-center rounded border border-border-muted",f.iconContainerSize),children:jsxRuntime.jsx(F,{name:"MapPin",size:f.iconSize,className:"text-text-secondary"})}),jsxRuntime.jsxs("div",{className:"flex flex-col items-start min-w-0",children:[jsxRuntime.jsx(x,{className:tailwindMerge.twMerge("leading-normal truncate hover:text-text-primary",h,f.textSize,i&&"hover:underline hover:decoration-1 hover:underline-offset-4"),children:jsxRuntime.jsx("span",{"data-pii-type":m?"address":void 0,"data-pii-entity":m,children:e})}),y&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-text-secondary leading-normal truncate",f.secondaryTextSize),"data-pii-type":v(),"data-pii-entity":m,children:y})]})]})}function ah({row:e,context:t,streetAddress:r,city:o,state:n,postalCode:a,layout:i="stacked",size:s="sm",href:c,LinkComponent:l,linkVariant:d="secondary",emphasis:u="normal",align:m="left",className:p,piiEntity:f}){let{isLoading:g}=t,h=ue(r,e),b=ue(o,e),y=ue(n,e),x=ue(a,e),v=ue(c,e),S=ue(f,e),w=Pe(m,p);return jsxRuntime.jsx("div",{className:w,children:jsxRuntime.jsx(Kl,{streetAddress:h,city:b,state:y,postalCode:x,layout:i,size:s,href:v,LinkComponent:l,linkVariant:d,emphasis:u,isLoading:g,piiEntity:S})})}var xp=Ke__namespace.default.memo(({value:e,data:t,type:r="line",color:o="var(--color-viz-default)",strokeWidth:n=2,categoryColors:a,context:i,width:s,height:c=40})=>{let l=e||t||[],d=s||100,u=c,{xScale:m,yScale:p}=Ke.useMemo(()=>{if(l.length===0)return {xScale:scale.scaleTime({range:[0,d],domain:[new Date,new Date]}),yScale:scale.scaleLinear({range:[u,0],domain:[0,1]})};let g=d3Array.extent(l,x=>x.xValue),h=d3Array.min(l,x=>x.yValue)||0,b=d3Array.max(l,x=>x.yValue)||0,y=(b-h)*.1||1;return {xScale:scale.scaleTime({range:[0,d],domain:g}),yScale:scale.scaleLinear({range:[u,0],domain:[h-y,b+y]})}},[l,d,u]);if(i.isLoading)return jsxRuntime.jsx("div",{className:"flex items-center",style:{width:d,height:u},children:jsxRuntime.jsx("div",{className:"h-1 w-full animate-pulse bg-border-default rounded"})});if(!l||l.length===0)return jsxRuntime.jsx("div",{className:"flex items-center justify-center text-text-secondary text-xs",style:{width:d,height:u},children:"No data"});let f=a&&l[0]?.category&&a[l[0].category]?a[l[0].category]:o;return jsxRuntime.jsxs("svg",{width:d,height:u,className:"overflow-visible",children:[(r==="area"||r==="both")&&jsxRuntime.jsx(shape.AreaClosed,{data:l,x:g=>m(g.xValue),y:g=>p(g.yValue),yScale:p,fill:f,fillOpacity:.15,curve:curve.curveLinear}),(r==="line"||r==="both")&&jsxRuntime.jsx(shape.LinePath,{data:l,x:g=>m(g.xValue),y:g=>p(g.yValue),stroke:f,strokeWidth:n,strokeLinecap:"round",curve:curve.curveLinear})]})});xp.displayName="SparklineCell";function ch({value:e,row:t,context:r,prefix:o,suffix:n,emptyText:a="\u2014",href:i,linkBehavior:s="hover",linkVariant:c="secondary",emphasis:l="normal",truncate:d=true,copyable:u=false,align:m="left",className:p,piiType:f,piiEntity:g}){let{isLoading:h}=r;if(h)return jsxRuntime.jsx(K,{className:Yt(l)});let b=Fl(e,a),y=ue(i,t),x=ue(g,t),v=b,S=false,w=false;if(d&&b&&typeof b=="string")if(typeof d=="boolean")w=true;else {let{position:M="end",length:V=16,ellipsis:z="...",tooltip:U=true}=d;if(b.length>V){switch(M){case "start":v=Ds(b,V);break;case "middle":v=Ca(b,V);break;case "end":v=As(b,V,z);break}S=U;}}let k=f&&x?{"data-pii-type":f,"data-pii-entity":x}:{},P=Object.keys(k).length>0,T=jsxRuntime.jsx("span",{className:w?"truncate":"",...k,children:v}),E=S?jsxRuntime.jsx(nr,{content:P?jsxRuntime.jsx("span",{...k,children:String(b)}):String(b),children:T}):T,I=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[o&&jsxRuntime.jsx("span",{className:"text-text-secondary",children:o}),E,n&&jsxRuntime.jsx("span",{className:"text-text-secondary",children:n})]}),R=I;if(u&&b&&b!==a){let M=typeof u=="function"?u(t):String(b);R=jsxRuntime.jsx(Qo,{value:M,size:"sm",children:I});}if(y){let M=Pe(m,p);return jsxRuntime.jsx("div",{className:M,children:ho(R,y,t,s,c,l)})}let L=Pe(m,tailwindMerge.twMerge(zr(l),p));return jsxRuntime.jsx("div",{className:L,children:R})}var $R={sm:"sm:hidden",md:"md:hidden",lg:"lg:hidden",xl:"xl:hidden"},e2={sm:"hidden sm:grid",md:"hidden md:grid",lg:"hidden lg:grid",xl:"hidden xl:grid"};function Yl(e,t){return t.accessor?typeof t.accessor=="function"?t.accessor(e):e[t.accessor]:null}function Jl(e,t,r,o){if(r.cell){let n=r.cell,a=typeof r.cellProps=="function"?r.cellProps(e,t):r.cellProps;return jsxRuntime.jsx(n,{value:e,row:t,context:o,...a})}return r.render?r.render(e,t,o):e?.toString()??"\u2014"}function jl({row:e,columns:t,density:r,isLoading:o,onClick:n}){let a=t.filter(u=>u.mobile!==false).map(u=>{let m=u.mobile===false?null:u.mobile;return {...u,mobilePriority:m?.priority??2,mobileFormat:m?.format??"secondary",showLabel:m?.label??m?.format==="secondary",icon:m?.icon}}).sort((u,m)=>u.mobilePriority-m.mobilePriority),i=a.filter(u=>u.mobilePriority===1||u.mobileFormat==="primary"),s=a.filter(u=>u.mobilePriority===2&&u.mobileFormat!=="primary"),c=a.filter(u=>u.mobileFormat==="badge"),l={isLoading:!!o,rowIndex:0,columnIndex:0,density:r};return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("border-b border-border-default bg-background-surface transition-colors",n&&"cursor-pointer hover:bg-background-hover active:bg-background-pressed",{compact:"px-3 py-2",default:"px-4 py-3",relaxed:"px-4 py-4"}[r]),onClick:n,role:n?"button":void 0,tabIndex:n?0:void 0,children:[i.length>0&&jsxRuntime.jsxs("div",{className:"mb-2 flex items-start justify-between",children:[jsxRuntime.jsx("div",{className:"flex-1",children:i.map(u=>{let m=Yl(e,u);return jsxRuntime.jsx("div",{className:"font-medium text-text-primary [&>*]:!justify-start [&>*]:!text-left",children:Jl(m,e,u,l)},u.id)})}),c.length>0&&jsxRuntime.jsx("div",{className:"ml-2 flex flex-wrap gap-1",children:c.map(u=>{let m=Yl(e,u);return jsxRuntime.jsx("div",{className:"inline-flex",children:Jl(m,e,u,l)},u.id)})})]}),s.length>0&&jsxRuntime.jsx("div",{className:"space-y-1",children:s.map(u=>{let m=Yl(e,u),p=u.showLabel&&u.label;return jsxRuntime.jsxs("div",{className:"flex items-center text-sm text-text-secondary",children:[u.icon&&jsxRuntime.jsx(F,{name:u.icon,className:"mr-1.5 h-4 w-4 flex-shrink-0"}),p&&jsxRuntime.jsxs("span",{className:"mr-1 font-medium",children:[u.label,":"]}),jsxRuntime.jsx("span",{className:"truncate [&>*]:!justify-start [&>*]:!text-left",children:Jl(m,e,u,l)})]},u.id)})})]})}function ql({row:e,columns:t,density:r,isLoading:o,onClick:n}){let a=t.filter(c=>c.mobile!==false),i={isLoading:!!o,rowIndex:0,columnIndex:0,density:r};return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("border-b border-border-default bg-background-surface transition-colors",n&&"cursor-pointer hover:bg-background-hover active:bg-background-pressed",{compact:"px-3 py-2",default:"px-4 py-3",relaxed:"px-4 py-4"}[r]),onClick:n,role:n?"button":void 0,tabIndex:n?0:void 0,children:jsxRuntime.jsx("div",{className:"space-y-2",children:a.map((c,l)=>{let d=Yl(e,c),u=l===0;return jsxRuntime.jsxs("div",{children:[!u&&jsxRuntime.jsx("div",{className:"text-xs text-text-secondary",children:c.label}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(u?"font-medium text-text-primary":"text-sm text-text-primary","[&>*]:!justify-start [&>*]:!text-left"),children:Jl(d,e,c,i)})]},c.id)})})})}function dh(e="md"){return {mobile:$R[e],desktop:e2[e]}}function uh({density:e}){return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("border-b border-border-default bg-background-surface",{compact:"px-3 py-2",default:"px-4 py-3",relaxed:"px-4 py-4"}[e]),children:[jsxRuntime.jsx("div",{className:"mb-2 h-5 w-3/4 animate-pulse rounded bg-background-muted"}),jsxRuntime.jsxs("div",{className:"space-y-1",children:[jsxRuntime.jsx("div",{className:"h-4 w-1/2 animate-pulse rounded bg-background-muted"}),jsxRuntime.jsx("div",{className:"h-4 w-2/3 animate-pulse rounded bg-background-muted"})]})]})}var m2={compact:"py-1.5 px-3 text-sm",default:"py-3 px-4 text-sm",relaxed:"py-4 px-4 text-base"},f2={left:"text-left justify-start",center:"text-center justify-center",right:"text-right justify-end"};function g2(e){let t={};return e.width!==void 0&&(t.width=typeof e.width=="number"?`${e.width}px`:e.width),e.minWidth!==void 0&&(t.minWidth=typeof e.minWidth=="number"?`${e.minWidth}px`:e.minWidth),e.maxWidth!==void 0&&(t.maxWidth=typeof e.maxWidth=="number"?`${e.maxWidth}px`:e.maxWidth),e.flex!==void 0&&(t.flex=`${e.flex} 1 0`),t}function b2({column:e,sortConfig:t,onSort:r,stickyHeader:o,stickyFirstColumn:n,isFirstColumn:a,density:i="default",isLoading:s=false}){let c=e.reorderable!==false,{attributes:l,listeners:d,setNodeRef:u,transform:m,transition:p,isDragging:f}=sortable.useSortable({id:e.id,disabled:!c||s}),g=t?.columnId===e.id,h=g?t.direction:null,b=n&&a,y={...g2(e),transform:utilities.CSS.Transform.toString(m),transition:p,opacity:f?.8:1,zIndex:f?50:void 0};return jsxRuntime.jsx("div",{ref:u,className:tailwindMerge.twMerge("flex items-center border-b border-border-default bg-background-surface",e.sortable?"gap-2":"gap-1",m2[i],f2[e.align||"left"],o&&"sticky top-0 z-10",b&&"sticky left-0 z-20 shadow-[2px_0_4px_-2px_rgba(0,0,0,0.1)]",o&&b&&"z-30",e.sortable&&!s&&"hover:bg-background-hover",s&&"cursor-not-allowed opacity-60",g?"font-bold text-text-primary":"font-medium text-text-secondary",f&&"bg-background-hover"),style:y,role:"columnheader","aria-sort":g?h==="asc"?"ascending":"descending":"none","aria-disabled":s,...l,...d,children:s?jsxRuntime.jsx(K,{className:"h-4 w-24"}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("span",{className:"flex-1 truncate cursor-pointer",onClick:()=>!s&&e.sortable&&r(e.id),children:e.label}),e.sortable&&jsxRuntime.jsx("button",{type:"button",className:"flex flex-shrink-0 cursor-pointer",onClick:()=>!s&&r(e.id),"aria-label":`Sort by ${e.label}`,children:g?jsxRuntime.jsx(F,{name:h==="asc"?"CaretUp":"CaretDown",size:14,weight:"bold",className:"text-text-primary"}):jsxRuntime.jsx(F,{name:"CaretUpDown",size:12,className:"text-text-secondary opacity-40"})})]})})}function mh({columns:e,columnOrder:t,onColumnOrderChange:r,sortConfig:o,onSort:n,stickyHeader:a,stickyFirstColumn:i,density:s="default",isLoading:c=false}){let l=core.useSensors(core.useSensor(core.PointerSensor,{activationConstraint:{distance:5}}),core.useSensor(core.KeyboardSensor,{coordinateGetter:sortable.sortableKeyboardCoordinates})),d=new Map(e.map(p=>[p.id,p])),u=p=>{let{active:f,over:g}=p;if(g&&f.id!==g.id){let h=t.indexOf(f.id),b=t.indexOf(g.id);if(d.get(g.id)?.reorderable===false)return;let x=0;for(let k=0;k<t.length&&d.get(t[k])?.reorderable===false;k++)x=k+1;if(b<x)return;let v=Math.min(h,b),S=Math.max(h,b);for(let k=v;k<=S;k++){if(k===h)continue;if(d.get(t[k])?.reorderable===false)return}let w=sortable.arrayMove(t,h,b);r(w);}},m=t.map(p=>d.get(p)).filter(p=>p!==void 0);return jsxRuntime.jsx(core.DndContext,{sensors:l,collisionDetection:core.closestCenter,onDragEnd:u,children:jsxRuntime.jsx(sortable.SortableContext,{items:t,strategy:sortable.horizontalListSortingStrategy,children:jsxRuntime.jsx("div",{className:"contents",role:"rowgroup",children:m.map((p,f)=>jsxRuntime.jsx(b2,{column:p,sortConfig:o,onSort:n,stickyHeader:a,stickyFirstColumn:i,isFirstColumn:f===0,density:s,isLoading:c},p.id))})})})}var Cp={compact:"py-1.5 px-3 text-sm",default:"py-3 px-4 text-sm",relaxed:"py-4 px-4 text-base"},Sp={left:"text-left justify-start",center:"text-center justify-center",right:"text-right justify-end"},S2={full:"w-full",auto:"w-auto inline-block",contained:"w-full max-w-6xl mx-auto"},w2={auto:"table-auto",fixed:"table-fixed",responsive:"table-auto"};function wp(e){let t={};return e.width!==void 0&&(t.width=typeof e.width=="number"?`${e.width}px`:e.width),e.minWidth!==void 0&&(t.minWidth=typeof e.minWidth=="number"?`${e.minWidth}px`:e.minWidth),e.maxWidth!==void 0&&(t.maxWidth=typeof e.maxWidth=="number"?`${e.maxWidth}px`:e.maxWidth),e.flex!==void 0&&(t.flex=`${e.flex} 1 0`),t}function N2(e,t){return t.accessor?typeof t.accessor=="function"?t.accessor(e):e[t.accessor]:null}function k2({column:e,sortConfig:t,onSort:r,stickyHeader:o,stickyFirstColumn:n,isFirstColumn:a,density:i="default",isLoading:s=false}){let c=t?.columnId===e.id,l=c?t.direction:null,d=n&&a;return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex items-center border-b border-border-default bg-background-surface",e.sortable?"gap-2":"gap-1",Cp[i],Sp[e.align||"left"],o&&"sticky top-0 z-10",d&&"sticky left-0 z-20 shadow-[2px_0_4px_-2px_rgba(0,0,0,0.1)]",o&&d&&"z-30",e.sortable&&!s&&"cursor-pointer hover:bg-background-hover",s&&"cursor-not-allowed opacity-60",c?"font-bold text-text-primary":"font-medium text-text-secondary"),onClick:()=>!s&&e.sortable&&r(e.id),role:"columnheader","aria-sort":c?l==="asc"?"ascending":"descending":"none","aria-disabled":s,style:wp(e),children:s?jsxRuntime.jsx(K,{className:"h-4 w-24"}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("span",{className:"truncate",children:e.label}),e.sortable&&jsxRuntime.jsx("div",{className:"flex flex-shrink-0",children:c?jsxRuntime.jsx(F,{name:l==="asc"?"CaretUp":"CaretDown",size:14,weight:"bold",className:"text-text-primary"}):jsxRuntime.jsx(F,{name:"CaretUpDown",size:12,className:"text-text-secondary opacity-40"})})]})})}function T2({column:e,row:t,rowIndex:r,columnIndex:o,isHovered:n,density:a="default",className:i,stickyFirstColumn:s}){let c=s&&o===0,l=N2(t,e),d={isLoading:false,isHovered:n,rowIndex:r,columnIndex:o,density:a},u;if(e.cell){let m=e.cell,p=typeof e.cellProps=="function"?e.cellProps(l,t):e.cellProps;u=jsxRuntime.jsx(m,{value:l,row:t,context:d,...p});}else e.render?u=e.render(l,t,d):u=jsxRuntime.jsx("span",{className:"truncate",children:l?.toString()??""});if(e.popover){let m=e.popover,p,f="top",g=false,h="hover";typeof m=="string"?p=m:typeof m=="function"?p=m(l,t):(p=typeof m.content=="function"?m.content(l,t):m.content,f=m.placement||"top",g=m.showArrow??false,h=m.trigger||"hover"),u=jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{...h==="hover"?{trigger:"longPress"}:{},children:[jsxRuntime.jsx("div",{className:"cursor-help",children:u}),jsxRuntime.jsx(ft,{placement:f,showArrow:g,children:jsxRuntime.jsx("div",{className:"p-2",children:p})})]});}return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex items-center border-b border-border-default bg-background-surface",e.noCellPadding?"":Cp[a],Sp[e.align||"left"],c&&"sticky left-0 z-10 shadow-[2px_0_4px_-2px_rgba(0,0,0,0.1)]",i),role:"cell",style:wp(e),children:u})}function P2({column:e,rowIndex:t,columnIndex:r,density:o="default",stickyFirstColumn:n}){let a=n&&r===0,i={isLoading:true,rowIndex:t,columnIndex:r,density:o},s;if(e.cell){let c=e.cell,l=typeof e.cellProps=="function"?e.cellProps(null,{}):e.cellProps;s=jsxRuntime.jsx(c,{value:null,row:{},context:i,...l});}else e.render?s=e.render(null,{},i):s=jsxRuntime.jsx(K,{className:"h-4 w-full max-w-[200px]"});return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex items-center border-b border-border-default bg-background-surface",e.noCellPadding?"":Cp[o],Sp[e.align||"left"],a&&"sticky left-0 z-10 shadow-[2px_0_4px_-2px_rgba(0,0,0,0.1)]"),role:"cell",style:wp(e),children:s})}function R2(e,t){let r=new Set(["BUTTON","A","INPUT","SELECT","TEXTAREA"]),o=new Set(["button","link","checkbox","switch","menuitem","option"]),n=e;for(;n&&n!==t;){if(r.has(n.tagName))return true;let a=n.getAttribute("role");if(a&&o.has(a))return true;n=n.parentElement;}return false}function fh({columns:e,row:t,rowIndex:r,density:o="default",onClick:n,stickyFirstColumn:a}){let[i,s]=Ke.useState(false),c=Ke.useCallback(l=>{if(!n)return;let d=l.target,u=l.currentTarget;R2(d,u)||n(t);},[n,t]);return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("contents group",n&&"cursor-pointer"),role:"row",onClick:c,onMouseEnter:()=>s(true),onMouseLeave:()=>s(false),children:e.map((l,d)=>jsxRuntime.jsx(T2,{column:l,row:t,rowIndex:r,columnIndex:d,isHovered:i,density:o,className:n?"group-hover:bg-background-hover":"",stickyFirstColumn:a},l.id))})}function gh({columns:e,rowIndex:t,density:r="default",stickyFirstColumn:o}){return jsxRuntime.jsx("div",{className:"contents",role:"row",children:e.map((n,a)=>jsxRuntime.jsx(P2,{column:n,rowIndex:t,columnIndex:a,density:r,stickyFirstColumn:o},n.id))})}function bh({columns:e,data:t,className:r,density:o="default",width:n="full",height:a,maxHeight:i,layout:s="auto",mobileRenderer:c="auto",customMobileRowRender:l,mobileBreakpoint:d="md",isLoading:u=false,loadingState:m,loadingRowCount:p=5,onLoadMore:f,hasMore:g=false,enableVirtualization:h,estimatedRowHeight:b,loadingIndicator:y,stickyHeader:x=false,stickyFirstColumn:v=false,onRowClick:S,getRowId:w,hideHeader:k=false,sortConfig:P,onSort:T,"aria-label":E,enableColumnReorder:I=false,columnOrder:R,onColumnOrderChange:L}){let[M,V]=Ke.useState(null),z=P!==void 0,U=z?P:M,Q=Ke.useRef(null),Z=Ke.useMemo(()=>e.map(me=>me.id),[e]),[H,j]=Ke.useState(Z),G=R!==void 0,A=G?R:H;Ke.useEffect(()=>{G||j(me=>{let ve=e.map(q=>q.id),O=new Set(ve),Y=new Set(me),ge=me.filter(q=>O.has(q)),se=ve.filter(q=>!Y.has(q));return [...ge,...se]});},[e,G]);let W=Ke.useCallback(me=>{G||j(me),L?.(me);},[G,L]),N=Ke.useMemo(()=>{if(!I&&!R)return e;let me=new Map(e.map(ve=>[ve.id,ve]));return A.map(ve=>me.get(ve)).filter(ve=>ve!==void 0)},[e,A,I,R]),C=Jo({items:t,onLoadMore:f,hasMore:g,isLoading:u,loadingState:m,enableVirtualization:h,estimatedItemSize:b||(o==="compact"?40:o==="relaxed"?60:48),overscan:5}),D=f?C:null,B=D?.scrollRef??Q,{loadMoreRef:X,virtualizer:ee,virtualItems:le,isLoadingMore:$,computedLoadingState:ae}=D||{},{gridTemplateColumns:Ve,totalMinWidth:te}=Ke.useMemo(()=>{let me=0;return {gridTemplateColumns:N.map(O=>{if(O.minWidth?me+=typeof O.minWidth=="number"?O.minWidth:0:O.width&&typeof O.width=="number"&&(me+=O.width),O.width)return typeof O.width=="number"?`${O.width}px`:O.width;if(O.flex)return `${O.flex}fr`;if(O.minWidth&&O.maxWidth){let Y=typeof O.minWidth=="number"?`${O.minWidth}px`:O.minWidth,ge=typeof O.maxWidth=="number"?`${O.maxWidth}px`:O.maxWidth;return `minmax(${Y}, ${ge})`}return O.minWidth?`minmax(${typeof O.minWidth=="number"?`${O.minWidth}px`:O.minWidth}, 1fr)`:O.maxWidth?`minmax(0, ${typeof O.maxWidth=="number"?`${O.maxWidth}px`:O.maxWidth})`:"1fr"}).join(" "),totalMinWidth:me}},[N]),ne=Ke.useCallback(me=>{if(!e.find(Y=>Y.id===me)?.sortable)return;let O;U?.columnId===me?O={columnId:me,direction:U.direction==="asc"?"desc":"asc"}:O={columnId:me,direction:"asc"},z||V(O),T?.(O);},[e,U,T,z]),oe=ae==="loading"||u&&t.length===0,pe={};a?(pe.height=typeof a=="number"?`${a}px`:a,pe.overflowY="auto"):i?(pe.maxHeight=typeof i=="number"?`${i}px`:i,pe.overflowY="auto"):f&&(pe.height="600px",pe.overflowY="auto");let Re=tailwindMerge.twMerge(S2[n],!f&&(s==="responsive"?"overflow-x-auto scrollbar-visible":"overflow-auto scrollbar-visible"),r),rt=dh(d),Bt=c!=="none",to=(me,ve)=>Bt?c==="custom"&&l?l(me,ve):jsxRuntime.jsx(c==="cards"?ql:jl,{row:me,columns:N,density:o,isLoading:u,onClick:S?()=>S(me):void 0}):null,Wr=ee?le?.map(me=>({virtualItem:me,row:t[me.index],index:me.index}))||[]:t.map((me,ve)=>({row:me,index:ve,virtualItem:null}));return jsxRuntime.jsxs("div",{ref:B,className:Re,style:{...pe,position:ee?"relative":void 0},children:[jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("grid border-separate border-spacing-0",w2[s],n==="auto"?"inline-grid w-auto":"w-full",Bt&&rt.desktop),role:"table","aria-label":E,style:{gridTemplateColumns:Ve,minWidth:te>0?`${te}px`:void 0},children:[!k&&(I?jsxRuntime.jsx(mh,{columns:e,columnOrder:A,onColumnOrderChange:W,sortConfig:U,onSort:ne,stickyHeader:x,stickyFirstColumn:v,density:o,isLoading:oe}):jsxRuntime.jsx("div",{className:"contents",role:"rowgroup",children:N.map((me,ve)=>jsxRuntime.jsx(k2,{column:me,sortConfig:U,onSort:ne,stickyHeader:x,stickyFirstColumn:v,isFirstColumn:ve===0,density:o,isLoading:oe},me.id))})),ee?jsxRuntime.jsx("div",{className:"col-span-full",style:{gridColumn:"1 / -1",height:`${ee.getTotalSize()}px`,position:"relative"},role:"rowgroup",children:oe?Array.from({length:p}).map((me,ve)=>jsxRuntime.jsx("div",{className:"contents",children:jsxRuntime.jsx(gh,{columns:N,rowIndex:ve,density:o,stickyFirstColumn:v})},`loading-${ve}`)):t.length>0?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[Wr.map(({row:me,index:ve,virtualItem:O})=>{if(!me||!O)return null;let Y=w?w(me):`row-${ve}`;return jsxRuntime.jsx("div",{style:{position:"absolute",top:0,left:0,width:"100%",display:"grid",gridTemplateColumns:Ve,transform:`translateY(${O.start}px)`},"data-index":O.index,ref:ee.measureElement,children:jsxRuntime.jsx(fh,{columns:N,row:me,rowIndex:ve,density:o,onClick:S,stickyFirstColumn:v})},Y)}),$&&jsxRuntime.jsx("div",{style:{position:"absolute",top:`${ee.getTotalSize()}px`,left:0,width:"100%"},children:y||jsxRuntime.jsx(Mr,{state:"loading-more"})})]}):jsxRuntime.jsx("div",{className:"py-12 text-center text-text-secondary",children:"No data available"})}):jsxRuntime.jsx("div",{className:"contents",role:"rowgroup",children:oe?Array.from({length:p}).map((me,ve)=>jsxRuntime.jsx(gh,{columns:N,rowIndex:ve,density:o,stickyFirstColumn:v},`loading-${ve}`)):t.length>0?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[Wr.map(({row:me,index:ve})=>{if(!me)return null;let O=w?w(me):`row-${ve}`;return jsxRuntime.jsx(fh,{columns:N,row:me,rowIndex:ve,density:o,onClick:S,stickyFirstColumn:v},O)}),$&&jsxRuntime.jsx("div",{className:"col-span-full",style:{gridColumn:"1 / -1"},children:y||jsxRuntime.jsx(Mr,{state:"loading-more"})})]}):jsxRuntime.jsx("div",{className:"col-span-full py-12 text-center text-text-secondary",role:"row",children:jsxRuntime.jsx("div",{role:"cell",children:"No data available"})})})]}),Bt&&jsxRuntime.jsx("div",{className:rt.mobile,children:oe?Array.from({length:p}).map((me,ve)=>jsxRuntime.jsx(uh,{density:o},`mobile-loading-${ve}`)):t.length>0?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[Wr.map(({row:me,index:ve})=>{if(!me)return null;let O=w?w(me):`mobile-row-${ve}`;return jsxRuntime.jsx("div",{className:"border-b border-border-default last:border-b-0",children:to(me,ve)},O)}),$&&(y||jsxRuntime.jsx(Mr,{state:"loading-more"}))]}):jsxRuntime.jsx("div",{className:"py-12 text-center text-text-secondary",children:"No data available"})}),f&&g&&!oe&&(ee?jsxRuntime.jsx("div",{ref:X,style:{position:"absolute",top:`${ee.getTotalSize()}px`,left:0,width:"100%",height:1}}):jsxRuntime.jsx("div",{ref:X,className:"h-px w-full"}))]})}function hh({status:e,alertCount:t,showCount:r=false,isLoading:o,size:n="sm",shape:a="pill",...i}){if(o)return jsxRuntime.jsx(K,{className:"inline-flex h-6 w-20"});let s={healthy:"success",warning:"warning",error:"error",unknown:"neutral"},c={healthy:"Healthy",warning:"Warning",error:"Error",unknown:"Unknown"},l=e==="warning"||e==="error",d=r&&t?`${c[e]} (${t})`:c[e];return jsxRuntime.jsx(lt,{variant:s[e],size:n,shape:a,dot:l,dotPulse:l,...i,children:d})}var M2={battery:"BatteryHigh",charger:"ChargingStation",thermostat:"ThermometerSimple",inverter:"Power",vehicle:"Car",water_heater:"DropHalfBottom",meter:"Gauge",gateway:"WifiHigh",other:"Cube",unknown:"Question"},L2={battery:"Battery",charger:"Charger",thermostat:"Thermostat",inverter:"Inverter",vehicle:"Vehicle",water_heater:"Water Heater",meter:"Meter",gateway:"Gateway",other:"Other",unknown:"Unknown"};function vh({deviceType:e,iconName:t,size:r="md",showLabel:o=false,className:n}){let a=t||(e?M2[e]:"Question"),i=e?L2[e]:void 0;return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("inline-flex items-center",o?"flex-col gap-1":"gap-0",n),children:[jsxRuntime.jsx(F,{name:a,size:r}),o&&i&&jsxRuntime.jsx("span",{className:"text-xs text-text-secondary",children:i})]})}function Qi({children:e,title:t,headerContent:r,titleAlign:o="left",hideCloseIcon:n=false,hasBackArrow:a=false,onBack:i,isOpen:s,slideInFrom:c="right",transparentOverlay:l=false,onClose:d,className:u,primaryAction:m,secondaryAction:p,tertiaryAction:f,footerContent:g,contentPadding:h=true,maxWidth:b="400px"}){if(!s)return null;let y=t||r,x=m||p||f||g;return jsxRuntime.jsx(Kr,{children:jsxRuntime.jsx(br,{isOpen:s,onOpenChange:v=>!v&&d?.(),isDismissable:true,transparent:l,children:jsxRuntime.jsx(reactAriaComponents.Modal,{className:"outline-none focus:outline-none focus-visible:outline-none ring-0 focus:ring-0 focus-visible:ring-0",children:jsxRuntime.jsxs(reactAriaComponents.Dialog,{className:tailwindMerge.twMerge("fixed top-0 bottom-0 flex flex-col bg-background-surface shadow-xl overflow-hidden",c==="right"?"right-0":"left-0",c==="right"?"animate-in slide-in-from-right duration-300 ease-out":"animate-in slide-in-from-left duration-300 ease-out","data-[exiting]:animate-out",c==="right"?"data-[exiting]:slide-out-to-right":"data-[exiting]:slide-out-to-left","data-[exiting]:duration-200 data-[exiting]:ease-in","outline-none focus-visible:outline focus-visible:outline-2 focus-visible:outline-action-default focus-visible:outline-offset-0",u),style:{maxWidth:b,width:"100%"},children:[y&&(a&&i?jsxRuntime.jsx(Jt,{title:t,headerContent:r,titleAlign:o,hideCloseIcon:n,hasBackArrow:true,onBack:i,onClose:d}):jsxRuntime.jsx(Jt,{title:t,headerContent:r,titleAlign:o,hideCloseIcon:n,onClose:d})),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-1 overflow-y-auto overscroll-contain",h?"px-6 py-6":"p-0"),children:e}),x&&jsxRuntime.jsx(Ko,{primaryAction:m,secondaryAction:p,tertiaryAction:f,footerContent:g})]})})})})}Qi.displayName="Drawer";function Sh({status:e,programName:t,isLoading:r,size:o="sm",shape:n="pill",...a}){if(r)return jsxRuntime.jsx(K,{className:"inline-flex h-6 w-20"});let i={enrolled:"success",eligible:"info",pending:"warning",not_eligible:"neutral",opted_out:"neutral"},s={enrolled:"Enrolled",eligible:"Eligible",pending:"Pending",not_eligible:"Not Eligible",opted_out:"Opted Out"},c=jsxRuntime.jsx(lt,{variant:i[e],size:o,shape:n,...a,children:s[e]});return t?jsxRuntime.jsx(nr,{content:t,children:c}):c}function Nh({value:e,onChange:t,onUrlChange:r,accept:o="image/*",maxSize:n,isDisabled:a=false,onUpload:i,className:s,showPreview:c=true,placeholder:l="Drop files here or click to browse"}){let[d,u]=Ke.useState(false),[m,p]=Ke.useState(false),[f,g]=Ke.useState(null),[h,b]=Ke.useState(e),y=Ke.useRef(null),x=async w=>{if(g(null),n&&w.size>n){g(`File size must be less than ${(n/1024/1024).toFixed(2)}MB`);return}if(c&&w.type.startsWith("image/")){let k=new FileReader;k.onloadend=()=>{b(k.result);},k.readAsDataURL(w);}if(i){p(true);try{let k=await i(w);b(k),r?.(k);}catch(k){g("Failed to upload file"),console.error("Upload error:",k);}finally{p(false);}}t?.(w,h);},v=async w=>{try{let k=w.items;if(k.length>0){let P=k[0];if(P.kind==="file"){let T=await P.getFile();T&&x(T);}}}catch(k){g("Failed to upload file"),console.error("Upload error:",k);}finally{u(false);}},S=()=>{b(void 0),g(null),t?.(null),r?.(""),y.current&&(y.current.value="");};return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("w-full",s),children:[jsxRuntime.jsxs(reactAriaComponents.DropZone,{className:tailwindMerge.twMerge("relative flex min-h-[200px] w-full flex-col items-center justify-center rounded-lg border-2 border-dashed transition-colors",d?"border-action-brand bg-action-brand/5":"border-border-muted hover:border-border-default",a&&"pointer-events-none opacity-50",f&&"border-feedback-error-border bg-feedback-error-background/50"),onDrop:v,onDropEnter:()=>u(true),onDropExit:()=>u(false),children:[h?jsxRuntime.jsxs("div",{className:"relative flex h-full w-full items-center justify-center p-4",children:[c&&(h.startsWith("data:image")||h.startsWith("http"))?jsxRuntime.jsx("img",{src:h,alt:"Preview",className:"max-h-48 max-w-full rounded-md object-contain"}):jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-2",children:[jsxRuntime.jsx(lucideReact.Image,{className:"h-12 w-12 text-text-secondary"}),jsxRuntime.jsx("span",{className:"text-sm text-text-secondary",children:"File uploaded"})]}),!a&&jsxRuntime.jsx(_,{variant:"icon",size:"sm",onPress:S,className:"absolute right-2 top-2 bg-background-surface shadow-md",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"})})]}):jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-4 p-6",children:[jsxRuntime.jsx(lucideReact.Upload,{className:"h-12 w-12 text-text-secondary"}),jsxRuntime.jsxs("div",{className:"text-center",children:[jsxRuntime.jsx("p",{className:"text-sm text-text-primary",children:l}),jsxRuntime.jsx("p",{className:"mt-1 text-xs text-text-secondary",children:o==="image/*"?"PNG, JPG, GIF up to 10MB":`Accepts ${o}`})]}),jsxRuntime.jsx(reactAriaComponents.FileTrigger,{acceptedFileTypes:o.split(","),onSelect:w=>{let k=Array.from(w||[]);k.length>0&&x(k[0]);},children:jsxRuntime.jsx(_,{variant:"secondary",size:"sm",isDisabled:a,children:"Choose File"})})]}),m&&jsxRuntime.jsx("div",{className:"absolute inset-0 flex items-center justify-center rounded-lg bg-background-surface/80",children:jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-2",children:[jsxRuntime.jsx("div",{className:"h-8 w-8 animate-spin rounded-full border-2 border-action-brand border-t-transparent"}),jsxRuntime.jsx("span",{className:"text-sm text-text-secondary",children:"Uploading..."})]})})]}),f&&jsxRuntime.jsx("p",{className:"mt-2 text-sm text-feedback-error-text",children:f})]})}function Th({version:e,isLatest:t,updateAvailable:r,isLoading:o,size:n="sm",shape:a="rounded",...i}){if(o)return jsxRuntime.jsx(K,{className:"inline-flex h-6 w-16"});let s="neutral",c=e;return t?s="success":r&&(s="warning",c=`${e} (Update)`),jsxRuntime.jsx(lt,{variant:s,size:n,shape:a,...i,children:c})}function Qa(e){return jsxRuntime.jsx(reactAriaComponents.Form,{validationBehavior:"aria",...e,className:tailwindMerge.twMerge("flex flex-col gap-6",e.className)})}function Rh({placeholder:e="Search...",value:t,onChange:r,isOpen:o,onOpenChange:n,trigger:a,children:i,showShortcutHint:s=true,showInput:c=true,className:l}){let[d,u]=Ke.useState(false),m=_t("(max-width: 767px)"),p=o!==void 0?o:d,f=Ke.useCallback(y=>{n?n(y):u(y);},[n]);Ke.useEffect(()=>{let y=x=>{(x.metaKey||x.ctrlKey)&&x.key==="k"&&(x.preventDefault(),f(!p)),x.key==="Escape"&&p&&f(false);};return window.addEventListener("keydown",y),()=>window.removeEventListener("keydown",y)},[p,f]);let g=Ke.useCallback(y=>{r?.(y);},[r]),h=jsxRuntime.jsxs("button",{type:"button",className:"flex items-center gap-2 px-3 py-2 text-sm text-text-secondary hover:text-text-primary hover:bg-background-hover rounded-md transition-colors","aria-label":"Open search",children:[jsxRuntime.jsx(F,{name:"MagnifyingGlass",size:18}),!m&&s&&jsxRuntime.jsxs("span",{className:"hidden md:flex items-center gap-1 text-xs",children:[jsxRuntime.jsx("kbd",{className:"px-1.5 py-0.5 bg-background-muted border border-border-muted rounded text-xs",children:navigator.platform.includes("Mac")?"\u2318":"Ctrl"}),jsxRuntime.jsx("kbd",{className:"px-1.5 py-0.5 bg-background-muted border border-border-muted rounded text-xs",children:"K"})]})]}),b=a===null||Ke.isValidElement(a)&&a.type===Ke.Fragment&&!a.props.children;return m?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[!b&&(a?jsxRuntime.jsx("button",{type:"button",onClick:()=>f(true),className:"appearance-none bg-transparent border-none p-0 cursor-pointer",children:a}):jsxRuntime.jsx("button",{type:"button",onClick:()=>f(true),className:"appearance-none bg-transparent border-none p-0 cursor-pointer",children:h})),jsxRuntime.jsx(gt,{isOpen:p,onClose:()=>f(false),hideCloseIcon:false,contentPadding:false,maxHeight:"90vh",children:jsxRuntime.jsxs("div",{className:"flex flex-col h-full",children:[c&&jsxRuntime.jsx("div",{className:"p-4 border-b border-border-muted flex-shrink-0",children:jsxRuntime.jsx(Vr,{value:t,onChange:g,placeholder:e,showSearchIcon:true,isClearable:!!t,onClear:()=>r?.(""),reserveErrorSpace:false,className:l,autoFocus:true})}),jsxRuntime.jsx("div",{className:"flex-1 min-h-0 overflow-hidden",children:i})]})})]}):b?null:jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{isOpen:p,onOpenChange:f,children:[a||h,jsxRuntime.jsx(ft,{placement:"bottom",className:"w-[600px] max-w-[90vw] bg-background-surface shadow-xl border border-border-default rounded-lg overflow-hidden",children:jsxRuntime.jsxs("div",{className:"flex flex-col",children:[c&&jsxRuntime.jsx("div",{className:"p-4 border-b border-border-muted",children:jsxRuntime.jsx(Vr,{value:t,onChange:g,placeholder:e,showSearchIcon:true,isClearable:!!t,onClear:()=>r?.(""),reserveErrorSpace:false,className:l,autoFocus:true})}),jsxRuntime.jsx("div",{className:"max-h-[500px] overflow-hidden",children:i})]})})]})}function Lh({placeholder:e="Search...",value:t,onChange:r,isOpen:o,onOpenChange:n,children:a,maxHeight:i="400px",variant:s="default",className:c}){let[l,d]=Ke.useState(false),u=_t("(max-width: 767px)"),m=Ke.useRef(null),p=Ke.useRef(null),f=o!==void 0?o:l,g=Ke.useCallback(E=>{n?n(E):d(E);},[n]);Ke.useEffect(()=>{let E=I=>{(I.metaKey||I.ctrlKey)&&I.key==="k"&&(I.preventDefault(),g(!f)),I.key==="Escape"&&f&&g(false);};return window.addEventListener("keydown",E),()=>window.removeEventListener("keydown",E)},[f,g]),Ke.useEffect(()=>{f&&!u&&m.current&&setTimeout(()=>{m.current?.querySelector("input")?.focus();},0);},[f,u]),Ke.useEffect(()=>{if(!f||u)return;let E=I=>{let R=I.target,L=m.current?.contains(R),M=p.current?.contains(R);!L&&!M&&g(false);};return document.addEventListener("mousedown",E,true),()=>document.removeEventListener("mousedown",E,true)},[f,u,g]);let h=E=>{r?.(E);},b=Ke.useCallback(()=>{g(false);},[g]),y=Ke.useCallback(()=>{r?.("");},[r]),[x,v]=Ke.useState(null);Ke.useEffect(()=>{if(f&&!u&&m.current){let E=null,I=()=>{let L=m.current?.getBoundingClientRect();L&&v({top:L.bottom+8,left:L.left,width:L.width});},R=()=>{E===null&&(E=requestAnimationFrame(()=>{I(),E=null;}));};return I(),window.addEventListener("resize",R),window.addEventListener("scroll",R,true),()=>{window.removeEventListener("resize",R),window.removeEventListener("scroll",R,true),E!==null&&cancelAnimationFrame(E);}}},[f,u]);let S=Ke.useCallback(()=>{g(true);},[g]);if(u)return jsxRuntime.jsxs("div",{className:c,children:[jsxRuntime.jsx("button",{type:"button",onClick:S,className:"flex items-center justify-center w-10 h-10 rounded-lg hover:bg-background-hover transition-colors","aria-label":"Open search",children:jsxRuntime.jsx(F,{name:"MagnifyingGlass",size:"md"})}),jsxRuntime.jsxs(gt,{isOpen:f,onClose:b,contentPadding:false,height:"80vh",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2 px-4 pt-4",children:[jsxRuntime.jsx("div",{className:"flex-1",children:jsxRuntime.jsx(Vr,{value:t,onChange:h,placeholder:e,showSearchIcon:true,isClearable:!!t,onClear:y,reserveErrorSpace:false,autoFocus:true})}),jsxRuntime.jsx(_,{variant:"icon",onPress:b,"aria-label":"Close search",className:"flex-shrink-0",children:jsxRuntime.jsx(F,{name:"X",size:"md"})})]}),jsxRuntime.jsx("div",{className:"mt-4",children:a})]})]},"mobile");let w=E=>{let R=E.target.tagName==="INPUT";if(E.key==="ArrowDown"&&f&&R){E.preventDefault();let L=p.current?.querySelector("[data-search-result]");L&&L.focus();}},k=E=>{let I=E.target;if(!I.hasAttribute("data-search-result"))return;let L=Array.from(p.current?.querySelectorAll("[data-search-result]")||[]),M=L.indexOf(I);if(E.key==="ArrowDown"){E.preventDefault(),E.stopPropagation();let V=Math.min(M+1,L.length-1);L[V]?.focus();}else if(E.key==="ArrowUp")if(E.preventDefault(),E.stopPropagation(),M===0)m.current?.querySelector("input")?.focus();else {let V=Math.max(M-1,0);L[V]?.focus();}else E.key==="Escape"&&(E.preventDefault(),E.stopPropagation(),g(false),m.current?.querySelector("input")?.focus());},P=f&&x&&typeof document<"u"?reactDom.createPortal(jsxRuntime.jsx("div",{ref:p,style:{position:"fixed",top:`${x.top}px`,left:`${x.left}px`,width:`${x.width}px`,zIndex:9999},role:"listbox",onKeyDown:k,children:jsxRuntime.jsx("div",{className:"bg-background-surface shadow-2xl border border-border-default rounded-lg overflow-hidden animate-in fade-in zoom-in-95 duration-200",children:jsxRuntime.jsx("div",{className:"overflow-y-auto",style:{maxHeight:i},children:a})})}),document.body):null,T=s==="elevated"?"bg-background-muted/50 border-border-subtle/50 focus-within:bg-background-body focus-within:border-border-focus focus-within:shadow-md backdrop-blur-sm transition-all duration-200":"";return jsxRuntime.jsxs("div",{ref:m,className:`relative w-full ${c||""}`,onKeyDown:w,children:[jsxRuntime.jsx(Vr,{value:t,onChange:h,placeholder:e,showSearchIcon:true,isClearable:!!t,onClear:()=>r?.(""),reserveErrorSpace:false,className:T,onFocus:()=>g(true)}),P]},"desktop")}function Dh({message:e="No results found",suggestion:t,icon:r="MagnifyingGlass",className:o=""}){return jsxRuntime.jsxs("div",{className:`flex flex-col items-center justify-center py-12 px-4 text-center ${o}`,children:[jsxRuntime.jsx("div",{className:"text-text-secondary mb-3",children:jsxRuntime.jsx(F,{name:r,size:48})}),jsxRuntime.jsx("p",{className:"text-base font-medium text-text-primary mb-1",children:e}),t&&jsxRuntime.jsx("p",{className:"text-sm text-text-secondary max-w-xs",children:t})]})}function Ih({count:e=3,className:t=""}){return jsxRuntime.jsx("div",{className:`flex flex-col ${t}`,children:Array.from({length:e}).map((r,o)=>jsxRuntime.jsxs("div",{className:"flex items-center gap-3 px-4 py-2.5",children:[jsxRuntime.jsx(K,{width:20,height:20,variant:"circle"}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0 space-y-2",children:[jsxRuntime.jsx(K,{width:"60%",height:16}),jsxRuntime.jsx(K,{width:"40%",height:12})]}),jsxRuntime.jsx(K,{width:16,height:16})]},o))})}function Bh({title:e,count:t,isLoading:r,footer:o,children:n,className:a}){return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex flex-col",a),children:[jsxRuntime.jsxs("div",{className:"flex items-baseline gap-1.5 px-4 pt-4 pb-2 border-t border-border-muted first:border-t-0",children:[jsxRuntime.jsx("h3",{className:"text-sm font-semibold text-text-primary",children:e}),!r&&t!==void 0&&jsxRuntime.jsx("span",{className:"text-xs text-text-secondary",children:t}),r&&jsxRuntime.jsx("span",{className:"text-xs text-text-secondary animate-pulse",children:"Loading..."})]}),jsxRuntime.jsx("div",{className:"flex flex-col",children:n}),o&&jsxRuntime.jsx("div",{className:"px-4 py-2 border-t border-border-subtle",children:o})]})}function Vh({id:e,title:t,subtitle:r,metadata:o,icon:n,customIcon:a,onSelect:i,isFocused:s=false,className:c,testId:l}){return jsxRuntime.jsxs("div",{role:"option",tabIndex:0,onClick:()=>{i?.(e);},onKeyDown:m=>{let p=m.currentTarget;switch(m.key){case "Enter":case " ":{m.preventDefault(),i?.(e);break}case "ArrowDown":{m.preventDefault();let f=Array.from(document.querySelectorAll("[data-search-result]")),g=f.indexOf(p);g!==-1&&g<f.length-1&&f[g+1].focus();break}case "ArrowUp":{m.preventDefault();let f=Array.from(document.querySelectorAll("[data-search-result]")),g=f.indexOf(p);if(g>0)f[g-1].focus();else {let h=document.querySelector('input[type="text"][placeholder*="Search"]');h&&h.focus();}break}case "Escape":{m.preventDefault();let f=document.querySelector('input[type="text"][placeholder*="Search"]');f&&f.focus();break}}},"data-testid":l,"data-search-result":true,className:tailwindMerge.twMerge("group flex items-center gap-3 px-4 py-3 cursor-pointer outline-none transition-colors","text-text-primary hover:bg-background-hover","focus-visible:bg-background-muted focus-visible:outline-none","data-[focused]:bg-background-hover",s&&"bg-background-hover",c),"data-focused":s||void 0,children:[a?jsxRuntime.jsx("div",{className:"flex-shrink-0",children:a}):n?jsxRuntime.jsx("div",{className:"flex-shrink-0 text-text-secondary",children:jsxRuntime.jsx(F,{name:n,size:20})}):null,jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsxs("div",{className:"flex items-baseline gap-2",children:[jsxRuntime.jsx("span",{className:"font-medium text-text-primary truncate",children:t}),o&&jsxRuntime.jsx("span",{className:"text-xs text-text-secondary flex-shrink-0",children:o})]}),r&&jsxRuntime.jsx("div",{className:"text-sm text-text-secondary truncate mt-0.5",children:r})]}),jsxRuntime.jsx("div",{className:"flex-shrink-0 opacity-0 group-hover:opacity-100 group-focus-visible:opacity-100 group-data-[focused]:opacity-100 transition-opacity",children:jsxRuntime.jsx(F,{name:"ArrowRight",size:16,className:"text-text-secondary"})})]})}function zh({children:e,maxHeight:t="400px",className:r}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-y-auto overscroll-contain","divide-y divide-border-muted",r),style:{maxHeight:t},children:e})}function Hh({placeholder:e="Search...",onClick:t,showShortcut:r=true,variant:o="default",className:n=""}){let a=typeof navigator<"u"&&navigator.platform.includes("Mac");return jsxRuntime.jsxs("button",{type:"button",onClick:t,className:`
|
|
27
|
+
`}})]})}function Zo(e,t=300){let[r,o]=Je.useState(e);return Je.useEffect(()=>{let n=setTimeout(()=>o(e),t);return ()=>clearTimeout(n)},[e,t]),r}function qs(e,t=300){let[r,o]=Je.useState(false);return Je.useEffect(()=>{if(e){let n=setTimeout(()=>{o(true);},t);return ()=>clearTimeout(n)}o(false);},[e,t]),r}var Rw=({isEntering:e,isExiting:t,className:r})=>["max-w-[200px] group bg-action-default border border-action-default-hover text-[color:var(--color-action-default-text)] text-sm rounded-lg drop-shadow-lg will-change-transform px-3 py-1",e?"animate-in fade-in placement-bottom:slide-in-from-top-0.5 placement-top:slide-in-from-bottom-0.5 placement-left:slide-in-from-right-0.5 placement-right:slide-in-from-left-0.5 ease-out duration-200":"",t?"animate-out fade-out placement-bottom:slide-out-to-top-0.5 placement-top:slide-out-to-bottom-0.5 placement-left:slide-out-to-right-0.5 placement-right:slide-out-to-left-0.5 ease-in duration-150":"",r].filter(Boolean).join(" ");function lr({children:e,content:t,...r}){return jsxRuntime.jsxs(reactAriaComponents.TooltipTrigger,{delay:200,children:[e,jsxRuntime.jsxs(reactAriaComponents.Tooltip,{...r,offset:10,className:reactAriaComponents.composeRenderProps(r.className,(o,n)=>Rw({...n,className:o})),children:[jsxRuntime.jsx(reactAriaComponents.OverlayArrow,{children:jsxRuntime.jsx("svg",{width:8,height:8,viewBox:"0 0 8 8",className:"fill-action-default stroke-action-default-hover group-placement-left:-rotate-90 group-placement-right:rotate-90 group-placement-bottom:rotate-180 forced-colors:fill-[Canvas] forced-colors:stroke-[ButtonBorder]",children:jsxRuntime.jsx("path",{d:"M0 0 L4 4 L8 0"})})}),t]})]})}function Br(){let[e,t]=Je__namespace.default.useState(false),r=Je__namespace.default.useCallback((n,a)=>{t(true),a?.(n);},[]),o=Je__namespace.default.useCallback((n,a)=>{t(false),a?.(n);},[]);return {isFocused:e,handleFocus:r,handleBlur:o}}var kt=Je__namespace.default.forwardRef(({children:e,className:t},r)=>jsxRuntime.jsx("div",{ref:r,className:tailwindMerge.twMerge("relative w-full",t),children:e}));kt.displayName="InputWrapper";function Ti({onClick:e,size:t="md",className:r}){return jsxRuntime.jsx("button",{type:"button",onClick:o=>{o.preventDefault(),o.stopPropagation(),e();},className:tailwindMerge.twMerge("absolute right-2 top-[48%] -translate-y-1/2 transform text-text-secondary hover:text-text-primary cursor-pointer",r),"aria-label":"Clear input",onMouseDown:o=>{o.preventDefault(),o.stopPropagation();},children:jsxRuntime.jsx(V,{name:"X",size:t==="sm"?16:20})})}function _o(e){let{isInvalid:t,isDisabled:r,isFocused:o}=e,n="border rounded-[var(--control-border-radius)] !outline-none ";return r?`${n} border-border-muted`:t&&o?`${n} border-feedback-error-border shadow-[inset_0_0_0_1px_var(--color-feedback-error-border)]`:t?`${n} border-feedback-error-border`:o?`${n} border-border-focus shadow-[inset_0_0_0_1px_var(--color-border-focus)]`:`${n} border-border-input`}function ug(e){return e.isDisabled?"bg-background-muted":e.transparent?"bg-transparent":"bg-background-input"}function Ew(e){return e==="sm"?"!text-base md:!text-[length:var(--control-text-sm)]":e==="md"?"!text-base md:!text-[length:var(--control-text-md)]":""}function Jt(e){let{isInvalid:t,isDisabled:r,isFocused:o,transparent:n,size:a="md",className:i}=e;return tailwindMerge.twMerge("w-full",_o({isInvalid:t,isDisabled:r,isFocused:o}),ug({transparent:n,isDisabled:r}),je[a].text,je[a].height,je[a].padding,Ew(a),i)}function Mw(e){let{size:t="md",isFocusWithin:r,isInvalid:o,isDisabled:n,transparent:a,className:i}=e;return tailwindMerge.twMerge("group flex items-center rounded-[var(--control-border-radius)] overflow-hidden",ug({transparent:a,isDisabled:n}),je[t].height,_o({isFocused:r,isInvalid:o,isDisabled:n}),i)}function Ye({children:e,size:t="md",tooltip:r,description:o,descriptionPlacement:n="below",isRequired:a,className:i,htmlFor:s}){let c=r||o&&n==="tooltip",l=r||o,d=o&&n==="inline",u=jsxRuntime.jsxs("label",{htmlFor:s,className:tailwindMerge.twMerge(je[t].text,"!text-text-label font-semibold flex items-center gap-1",i),children:[e,a&&jsxRuntime.jsx("span",{children:"*"}),c&&jsxRuntime.jsx("span",{className:"inline-flex items-center text-text-secondary",children:jsxRuntime.jsx(V,{name:"Info",size:t==="sm"?16:20})}),d&&jsxRuntime.jsx("span",{className:"text-text-secondary font-normal ml-1",children:o})]});return c&&l?jsxRuntime.jsx(lr,{content:l,children:u}):u}function Me({size:e="md",className:t,children:r,...o}){return jsxRuntime.jsx("div",{...o,className:tailwindMerge.twMerge("leading-[2.25] text-text-secondary",je[e].text,t),children:r})}function xe({children:e,size:t="md",className:r}){return jsxRuntime.jsx("div",{role:"alert",className:tailwindMerge.twMerge(je[t].text,"text-feedback-error-text",r),children:e})}function Zs({size:e="md",isInvalid:t,isDisabled:r,isFocused:o,transparent:n,className:a,...i}){return jsxRuntime.jsx("input",{className:Jt({isInvalid:t,isDisabled:r,isFocused:o,transparent:n,size:e,className:a}),...i})}function pg(e){let{children:t,...r}=e;return jsxRuntime.jsx("div",{...r,className:Mw(e),children:typeof t=="function"?t(e):t})}var mu=Je.createContext("md");function xg(){return Je.useContext(mu)}function du(e="md"){let t=e==="sm"?"!text-base md:!text-[length:var(--control-text-sm)]":e==="md"?"!text-base md:!text-[length:var(--control-text-md)]":"";return `flex-1 text-start data-[placeholder]:text-text-disabled overflow-hidden text-ellipsis whitespace-nowrap ${je[e].text} ${t}`}function Bw(){let e=Je__namespace.default.useCallback((r,o)=>{o?.(r);},[]),t=Je__namespace.default.useCallback((r,o)=>{o?.(r);},[]);return {handleFocus:e,handleBlur:t}}function Lo({label:e,description:t,errorMessage:r,children:o,items:n,renderItem:a,renderSelectedValue:i,size:s="md",selectedKey:c,defaultSelectedKey:l,onSelectionChange:d,placeholder:u,showErrors:m=false,tooltip:p,isRequired:f,transparent:g,reserveErrorSpace:y=false,placement:b="bottom start",shouldFlip:h=true,menuWidth:x="match",descriptionPlacement:v="below",useMobileTray:S=true,...w}){let[P,T]=Je.useState(null),[k,R]=Je.useState(null),[I,E]=Je.useState(false),L=c??P??l,{handleFocus:M,handleBlur:F}=Bw(),{isMobile:z}=or(),W=S&&z,X=Je__namespace.default.useMemo(()=>!i||!L||!n?null:Array.from(n).find(G=>G.id===L)??null,[i,L,n]),Z=A=>{d&&A!==null&&d(A),d||T(A);},O=Je.useRef(null),j=Je.useRef(null),H=()=>{W&&E(!I);};return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(reactAriaComponents.Select,{...w,selectedKey:L,defaultSelectedKey:l,onSelectionChange:Z,placeholder:u,className:Ee(w.className,"group flex w-full flex-col"),ref:O,onOpenChange:A=>{W||(A&&j.current?R(j.current.offsetWidth):A||O.current?.blur());},children:({isDisabled:A,isInvalid:G,isOpen:N})=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(Ye,{size:s,tooltip:p,description:v==="tooltip"||v==="inline"?t:void 0,descriptionPlacement:v,isRequired:f,children:e}),jsxRuntime.jsx(kt,{children:jsxRuntime.jsx("div",{ref:j,children:jsxRuntime.jsxs(_,{variant:"unstyled",className:tailwindMerge.twMerge(Jt({isInvalid:G||m&&!!r,isDisabled:A,isFocused:W?I:N,transparent:g,size:s}),"flex items-center text-start gap-4 cursor-pointer pl-[var(--control-padding-sm)]"),onFocus:C=>M(C,w.onFocus),onBlur:C=>F(C,w.onBlur),onPress:W?H:void 0,"data-open":W?I:N,children:[i&&X?jsxRuntime.jsx("div",{className:du(s),children:i(X)}):W&&L?jsxRuntime.jsx("div",{className:du(s),children:n?Array.from(n).find(B=>B.id===L)?.label:String(L)}):jsxRuntime.jsx(reactAriaComponents.SelectValue,{className:du(s)}),jsxRuntime.jsx(V,{name:"CaretDown","aria-hidden":true,className:tailwindMerge.twMerge("h-4 w-4 text-text-primary group-disabled:text-text-disabled forced-colors:text-[ButtonText] transition-transform",(W?I:N)&&"rotate-180")})]})})}),y?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:m?jsxRuntime.jsx(xe,{size:s,className:"text-feedback-error-text",children:typeof r=="function"&&w.validationResult?r(w.validationResult):typeof r=="string"?r:null}):t&&v==="below"?jsxRuntime.jsx(Me,{size:s,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:m?jsxRuntime.jsx(xe,{size:s,className:"mt-1 text-feedback-error-text",children:typeof r=="function"&&w.validationResult?r(w.validationResult):typeof r=="string"?r:null}):t&&v==="below"?jsxRuntime.jsx(Me,{size:s,className:"mt-1",children:t}):null}),W?null:jsxRuntime.jsx(gt,{className:"bg-background-input shadow-xl border border-border-input/20 backdrop-blur-sm rounded-[var(--control-border-radius)]",style:{width:x==="match"&&k?`${k}px`:void 0,minWidth:x==="auto"&&k?`${k}px`:void 0,maxWidth:x==="auto"?"min(600px, 90vw)":void 0},placement:b,shouldFlip:h,children:jsxRuntime.jsx(mu.Provider,{value:"md",children:jsxRuntime.jsx(reactAriaComponents.ListBox,{items:n,className:"w-full max-h-[300px] overflow-auto bg-background-input p-0 outline-0",children:a&&n?C=>jsxRuntime.jsx(cr,{id:C.id,textValue:C.label,children:jsxRuntime.jsx("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap min-w-0 flex-1",children:a(C)})},C.id):o})})})]})}),W&&jsxRuntime.jsx(bt,{isOpen:I,onClose:()=>E(false),title:e??"Select an option",contentPadding:false,children:jsxRuntime.jsx(mu.Provider,{value:"md",children:jsxRuntime.jsx(reactAriaComponents.ListBox,{items:n,className:"w-full bg-background-surface p-0 outline-0 [&_[role=option]]:border-b [&_[role=option]]:border-border-default [&_[role=option]:last-child]:border-0 [&_[role=option]]:!px-6 [&_[role=option]]:!py-4 [&_[role=option]]:rounded-none",selectionMode:"single",selectedKeys:L!=null?[L]:[],onSelectionChange:A=>{let G=Array.from(A)[0];G!=null&&(Z(G),E(false));},children:a&&n?A=>jsxRuntime.jsx(cr,{id:A.id,textValue:A.label,children:jsxRuntime.jsx("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap min-w-0 flex-1",children:a(A)})},A.id):o})})})]})}function cr({size:e,className:t,...r}){let o=xg(),n=e??o;return jsxRuntime.jsx(reactAriaComponents.ListBoxItem,{...r,className:tailwindMerge.twMerge("flex cursor-default items-center gap-2 rounded-sm px-3 outline-none text-text-primary data-[focused]:bg-background-hover data-[focus-visible]:ring-2 data-[focus-visible]:ring-action-default data-[focus-visible]:ring-inset data-[selected]:bg-background-selected data-[selected]:font-medium overflow-hidden",je[n].paddingY,je[n].text,t)})}var jw=[],qw={sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6",xl:"h-7 w-7"},Qw={sm:"pl-8",md:"pl-10",lg:"pl-11",xl:"pl-13"},yg={sm:"py-1",md:"py-2",lg:"py-3",xl:"py-4"},gu=(e,t,r)=>{if(e==null||e==="")return "";let n=(r?r.flatMap(a=>a.items):t||[]).find(a=>a.id===e);return n?n.name:""};async function Zw(e,t,r){try{let o=e.url.replace("{q}",t),n=new URLSearchParams;e.extraParams&&Object.entries(e.extraParams).forEach(([c,l])=>{n.append(c,l.toString());});let a=`${o}${n.toString()?"?"+n.toString():""}`,i=await fetch(a,{method:"GET",headers:e.headers,signal:r});if(!i.ok)throw new Error(`HTTP error! status: ${i.status}`);let s=await i.json();return {items:e.transformResponse(s)}}catch(o){if(o instanceof Error&&o.name==="AbortError")return {items:[]};console.error("Error in REST request:",o);let n=o instanceof Error?o.message:"Unknown error occurred";return {items:[],error:n}}}async function _w(e,t,r){try{let o=e.graphqlQuery.replace(`$${e.variableKey||"filter"}`,`"${t}"`),n=await fetch(e.url,{method:"POST",headers:{"Content-Type":"application/json",...e.headers},body:JSON.stringify({query:o}),signal:r});if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);let a=await n.json();if(a.errors)throw new Error(a.errors[0]?.message||"GraphQL error occurred");return e.responsePath&&(a=e.responsePath.split(".").reduce((i,s)=>i?.[s],a)),{items:e.transformResponse(a)}}catch(o){if(o instanceof Error&&o.name==="AbortError")return {items:[]};console.error("Error in GraphQL request:",o);let n=o instanceof Error?o.message:"Unknown error occurred";return {items:[],error:n}}}function el({label:e,staticItems:t=jw,sections:r,selectedKey:o,defaultSelectedKey:n,onSelectionChange:a,requestConfig:i,defaultFilter:s,placeholder:c,errorMessage:l,description:d,size:u="md",tooltip:m,isRequired:p,isDisabled:f,isInvalid:g,validationResult:y,showErrors:b=true,renderItem:h,renderLeftIcon:x,renderSection:v,autoFocus:S=false,reserveErrorSpace:w=false,hideChevron:P=false,useMobileTray:T=true,className:k}){let R=Je__namespace.default.useRef(null),I=Je__namespace.default.useRef(null),[E,L]=Je__namespace.default.useState(),[M,F]=Je.useState(()=>gu(o||n,t,r)),[z,W]=Je.useState(false),[X,Z]=Je.useState(false),O=Zo(M),{contains:j}=reactAria.useFilter({sensitivity:"base"}),[H,A]=Je.useState(),{isMobile:G}=or(),N=T&&G,C=je[u].text,D=reactStately.useAsyncList({async load({signal:te,filterText:ae=""}){if(!i)return {items:[]};if(!i.url||i.shouldLoad&&!i.shouldLoad(ae))return {items:[]};try{let ie;return i.requestType==="GraphQL"?ie=await _w(i,ae,te):ie=await Zw(i,ae,te),A(ie.error),{items:ie.items}}catch(ie){return ie instanceof Error&&ie.name==="AbortError"?{items:[]}:(console.error("Error loading items:",ie),A(ie instanceof Error?ie.message:"Unknown error occurred"),{items:[]})}},initialFilterText:""}),B=i&&O!==""?D:null,Y=false,re=Je.useRef("");Je.useEffect(()=>{S&&W(true);},[S]),Je.useEffect(()=>{let te=gu(o,t,r);te!==M&&F(te);},[o,t,r]),Je.useEffect(()=>{let te=()=>{R.current&&L(R.current.offsetWidth);};return te(),window.addEventListener("resize",te),()=>window.removeEventListener("resize",te)},[]),Je.useEffect(()=>{O===""?re.current="":B&&O!==re.current&&(re.current=O,B.setFilterText(O));},[O,B]),Y=qs(!!B?.isLoading,300);let ue=Je__namespace.default.useMemo(()=>{if(!N||!M)return B?B.items:t;let te=B?B.items:t,ae=s??(i?()=>true:j);return te.filter(ie=>ae(ie.name,M))},[N,M,B,t,s,j]),$=te=>{let ae=gu(te,t,r);F(ae),a&&a(te);},se=te=>{F(te);},He=()=>{N&&Z(true);};return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(reactAriaComponents.ComboBox,{onSelectionChange:$,selectedKey:o||void 0,defaultSelectedKey:n||void 0,items:B?B.items:r?r.flatMap(te=>te.items):t,className:Ee(k,"group flex flex-col w-full"),menuTrigger:N?"manual":i?"input":"focus",allowsEmptyCollection:!!i,isDisabled:f,isInvalid:g||!!l,inputValue:M,onInputChange:se,autoFocus:S&&!N,defaultFilter:s??(i?()=>true:j),"aria-label":e||c||"Autocomplete",children:te=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(Ye,{size:u,tooltip:m,isRequired:p,children:e}),jsxRuntime.jsxs(kt,{ref:R,children:[x?jsxRuntime.jsx("div",{className:"pointer-events-none absolute left-3 top-[45%] -translate-y-1/2 z-10",children:x(Y)}):jsxRuntime.jsx("div",{className:"pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 z-10 flex items-center",children:Y?jsxRuntime.jsx(Mo,{size:16,color:"text-text-secondary"}):jsxRuntime.jsx(V,{name:"MagnifyingGlass",className:`${qw[u]} text-text-secondary`})}),jsxRuntime.jsx(reactAriaComponents.Input,{className:Jt({isInvalid:g||!!l,isDisabled:f,isFocused:z||(N?X:te.isOpen),size:u,className:tailwindMerge.twMerge(Qw[u],M&&!f||!P&&!M?"pr-10":"pr-3",N&&"cursor-pointer",k)}),placeholder:c,disabled:f,onFocus:ae=>{W(true),N&&(ae.currentTarget.blur(),He());},onBlur:()=>{W(false);},onClick:N?He:void 0,readOnly:N,"aria-label":e||c||"Autocomplete"}),M&&!f&&jsxRuntime.jsx(Ti,{onClick:()=>{F(""),a?.(null);},size:u}),!P&&!M&&jsxRuntime.jsx(reactAriaComponents.Button,{className:"absolute right-3 top-[46%] -translate-y-1/2 transform text-text-secondary hover:text-text-primary","aria-label":"Toggle menu",isDisabled:f,children:({isPressed:ae})=>jsxRuntime.jsx(V,{name:ae?"CaretUp":"CaretDown",className:"h-4 w-4"})})]}),w?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:b&&H?jsxRuntime.jsx(xe,{size:u,className:"text-feedback-error-text",children:H}):b&&typeof l=="string"?jsxRuntime.jsx(xe,{size:u,className:"text-feedback-error-text",children:l}):b&&typeof l=="function"&&y?jsxRuntime.jsx(xe,{size:u,className:"text-feedback-error-text",children:l(y)}):d?jsxRuntime.jsx(Me,{size:u,children:d}):null}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[d&&jsxRuntime.jsx(Me,{size:u,className:"mt-1",children:d}),b&&H&&jsxRuntime.jsx(xe,{size:u,className:"text-feedback-error-text mt-1",children:H}),b&&typeof l=="string"&&jsxRuntime.jsx(xe,{size:u,className:"text-feedback-error-text mt-1",children:l}),b&&typeof l=="function"&&y&&jsxRuntime.jsx(xe,{size:u,className:"text-feedback-error-text mt-1",children:l(y)})]}),!N&&jsxRuntime.jsx(gt,{className:"bg-background-input shadow-xl border border-border-input/20 backdrop-blur-sm ring-1 ring-black/5 rounded-[var(--control-border-radius)]",style:{minWidth:E?`${E}px`:void 0,zIndex:9999},children:jsxRuntime.jsx(reactAriaComponents.ListBox,{"aria-label":e||c||"Suggestions",className:`max-h-[300px] overflow-auto bg-background-input outline-none ${C}`,children:r?r.map(ae=>{let ie=ae.items.map(ye=>jsxRuntime.jsx(cr,{id:ye.id,textValue:ye.name,size:u,className:`flex cursor-default items-center gap-2 px-3 ${yg[u]} text-text-primary outline-none data-[focused]:bg-background-hover data-[selected]:bg-background-selected data-[selected]:font-medium data-[focus-visible]:ring-0`,children:h?h(ye):ye.name},ye.id));if(v){let ye=v(ae,ie);return Je__namespace.default.isValidElement(ye)&&ye.type===reactAriaComponents.ListBoxSection?ye:jsxRuntime.jsx(reactAriaComponents.ListBoxSection,{children:ye},ae.name)}return jsxRuntime.jsxs(reactAriaComponents.ListBoxSection,{children:[jsxRuntime.jsx(reactAriaComponents.Header,{className:"px-3 py-1 text-sm font-bold text-text-secondary",children:ae.name}),ie]},ae.name)}):ae=>jsxRuntime.jsx(cr,{id:ae.id,textValue:ae.name,size:u,className:`flex cursor-default items-center gap-2 px-3 ${yg[u]} text-text-primary outline-none data-[focused]:bg-background-hover data-[selected]:bg-background-selected data-[selected]:font-medium data-[focus-visible]:ring-0`,children:h?h(ae):ae.name},ae.id)})})]})}),N&&jsxRuntime.jsx(bt,{isOpen:X,onClose:()=>Z(false),title:e??c??"Search",contentPadding:false,height:"80vh",children:jsxRuntime.jsxs("div",{className:"flex flex-col h-full",children:[jsxRuntime.jsx("div",{className:"p-4 border-b border-border-default",children:jsxRuntime.jsxs(kt,{children:[jsxRuntime.jsx("div",{className:"pointer-events-none absolute left-3 top-[45%] -translate-y-1/2 z-10 flex items-center",children:Y?jsxRuntime.jsx(Mo,{size:16,color:"text-text-secondary"}):jsxRuntime.jsx(V,{name:"MagnifyingGlass",className:"h-4 w-4 text-text-secondary"})}),jsxRuntime.jsx("input",{ref:I,type:"text",value:M,onChange:te=>se(te.target.value),placeholder:c,autoFocus:true,className:Jt({isInvalid:false,isDisabled:false,isFocused:true,size:"md",className:"pl-10 pr-10"})}),M&&jsxRuntime.jsx(Ti,{onClick:()=>{F(""),a?.(null);},size:"md"})]})}),jsxRuntime.jsx("div",{className:"flex-1 overflow-auto",children:jsxRuntime.jsx(reactAriaComponents.ListBox,{"aria-label":e||c||"Suggestions",items:ue,selectedKeys:o?[o]:[],selectionMode:"single",onSelectionChange:te=>{let ae=Array.from(te)[0];ae&&($(ae),Z(false));},className:"bg-background-input outline-none",children:te=>jsxRuntime.jsx(cr,{id:te.id,textValue:te.name,size:"md",className:"flex cursor-default items-center gap-2 px-4 py-3 text-text-primary outline-none data-[focused]:bg-background-hover data-[selected]:bg-background-selected data-[selected]:font-medium data-[focus-visible]:ring-0",children:h?h(te):te.name},te.id)})})]})})]})}function Do({src:e,alt:t,firstName:r,lastName:o,fullName:n,onClick:a,size:i="md",shape:s="circle",variant:c="user",className:l,status:d,bordered:u=false,piiEntity:m}){let[p,f]=Je.useState(false),g=Je.useCallback(()=>f(true),[]);Je.useEffect(()=>{f(false);},[e]);let y={xs:"h-6 w-6 text-xs",sm:"h-8 w-8 text-sm",md:"h-10 w-10 text-base",lg:"h-12 w-12 text-lg",xl:"h-16 w-16 text-xl"},b={xs:"h-1.5 w-1.5",sm:"h-2 w-2",md:"h-2.5 w-2.5",lg:"h-3 w-3",xl:"h-4 w-4"},h={xs:"bottom-0 right-0",sm:"bottom-0 right-0",md:"bottom-0 right-0",lg:"bottom-0.5 right-0.5",xl:"bottom-1 right-1"},x={online:"bg-feedback-success-background border-feedback-success-border",offline:"bg-text-secondary border-border-muted",away:"bg-feedback-warning-background border-feedback-warning-border",busy:"bg-feedback-error-background border-feedback-error-border"},v={user:"bg-feedback-info-background text-feedback-info-text",team:"bg-feedback-info-background text-feedback-info-text",organization:"bg-feedback-success-background text-feedback-success-text"},S=s==="circle"?"rounded-full":"rounded-md",w=tailwindMerge.twMerge("relative inline-flex items-center justify-center overflow-hidden transition-opacity outline-none",y[i],S,a&&"cursor-pointer hover:opacity-80",u&&"ring-2 ring-background-surface",l),T=(()=>{if(r||o){let E=r?.[0]||"",L=o?.[0]||"";return (E+L).toUpperCase()}if(n){let E=n.split(" "),L=E[0]?.[0]||"",M=E[E.length-1]?.[0]||"";return L===M?L.toUpperCase():(L+M).toUpperCase()}return ""})(),k=()=>{let E={xs:14,sm:16,md:20,lg:24,xl:32}[i];switch(c){case "team":return jsxRuntime.jsx(lucideReact.Users,{size:E});case "organization":return jsxRuntime.jsx(lucideReact.Building2,{size:E});default:return jsxRuntime.jsx(lucideReact.User,{size:E})}},R=E=>{if(m)return c==="organization"?E?"organization-logo":"initials":E?"avatar":"initials"},I=()=>e&&!p?jsxRuntime.jsx("img",{src:e,alt:t||n||"Avatar",className:"h-full w-full object-cover",onError:g,"data-pii-type":R(true),"data-pii-entity":m}):T?jsxRuntime.jsx("span",{className:"font-semibold","data-pii-type":R(false),"data-pii-entity":m,children:T}):k();return jsxRuntime.jsxs("div",{className:"relative inline-block",children:[jsxRuntime.jsx("div",{"data-avatar":true,className:tailwindMerge.twMerge(w,!e||p?v[c]:""),onClick:a,role:a?"button":void 0,tabIndex:a?0:void 0,children:I()}),d&&jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("absolute border-2 border-background-surface",S,b[i],h[i],x[d]),"aria-label":`Status: ${d}`})]})}var iN={default:"bg-feedback-info-background text-feedback-info-text",success:"bg-feedback-success-background text-feedback-success-text",error:"bg-feedback-error-background text-feedback-error-text",warning:"bg-feedback-warning-background text-feedback-warning-text",info:"bg-feedback-info-background text-feedback-info-text",primary:"bg-action-primary/10 text-action-primary border border-action-primary/20",brand:"bg-action-primary/10 text-action-primary border border-action-primary/20",secondary:"bg-action-secondary text-[color:var(--color-action-secondary-text)] border border-border-muted",neutral:"bg-background-muted text-text-secondary",charging:"bg-state-charging text-state-charging-text",discharging:"bg-state-discharging text-state-discharging-text",heat:"bg-state-heat text-state-heat-text",cool:"bg-state-cool text-state-cool-text",eco:"bg-state-eco text-state-eco-text",auto:"bg-state-auto text-state-auto-text",on:"bg-state-on text-state-on-text",off:"bg-state-off text-state-off-text",idle:"bg-state-idle text-state-idle-text",circulate:"bg-state-circulate text-state-circulate-text",unknown:"bg-state-unknown text-state-unknown-text",connected:"bg-feedback-success-background text-feedback-success-text",disconnected:"bg-feedback-error-background text-feedback-error-text",importing:"bg-state-importing text-state-importing-text",exporting:"bg-state-exporting text-state-exporting-text"},sN={xs:"px-1.5 py-0.5 text-xs",sm:"px-2.5 py-1.5 text-xs",md:"px-3.5 py-2 text-sm",lg:"px-4 py-2.5 text-base"},lN={pill:"rounded-full",rounded:"rounded-lg",square:"rounded-sm"},cN={xs:"w-1 h-1",sm:"w-1.5 h-1.5",md:"w-2 h-2",lg:"w-2.5 h-2.5"};function dt({children:e,variant:t="default",size:r="sm",shape:o="square",dot:n=false,dotPosition:a="left",dotPulse:i=false,title:s,className:c}){let l=n&&jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("rounded-full bg-current opacity-75",cN[r],i&&"animate-pulse"),"aria-hidden":"true"});return jsxRuntime.jsxs("span",{title:s,className:tailwindMerge.twMerge("inline-flex items-center gap-1.5 font-medium",sN[r],lN[o],iN[t],c),children:[n&&a==="left"&&l,e,n&&a==="right"&&l]})}var st=({href:e,children:t,className:r="",external:o=false,title:n,variant:a="secondary",onClick:i,asButton:s=false,onPress:c,showArrow:l=false,alwaysUnderlined:d=false,LinkComponent:u,"data-pii-type":m,"data-pii-entity":p})=>{let f={...m&&{"data-pii-type":m},...p&&{"data-pii-entity":p}},g=o?{target:"_blank",rel:"noopener noreferrer"}:{},v=`${`${d?"underline decoration-1 underline-offset-4 decoration-current":"hover:underline hover:decoration-1 hover:underline-offset-4 hover:decoration-current"} cursor-pointer`} ${{primary:"text-action-primary hover:text-action-primary-hover visited:text-action-primary",secondary:"text-text-link-default hover:text-text-link-hover visited:text-text-link-default",muted:"text-text-secondary hover:text-text-secondary visited:text-text-secondary",unstyled:""}[a==="brand"?"primary":a==="default"?"secondary":a]} ${r}`,S=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[t,l&&jsxRuntime.jsxs("span",{children:["\xA0","\u2192"]})]});return s?jsxRuntime.jsx("button",{type:"button",className:v,onClick:c,title:n,...f,children:S}):u&&e?jsxRuntime.jsx(u,{href:e,className:v,title:n,onClick:i,...g,...f,children:S}):jsxRuntime.jsx("a",{href:e||"#",className:v,...g,...f,title:n,onClick:i,children:S})};var yN={info:{subtle:{container:"bg-feedback-info-background border-l-4 border-l-feedback-info-border",iconColor:"text-feedback-info-border",titleColor:"text-text-primary",bodyColor:"text-text-primary"},bold:{container:"bg-feedback-info-border border-feedback-info-border",iconColor:"text-text-inverse",titleColor:"text-text-inverse",bodyColor:"text-text-inverse/90"},icon:lucideReact.Info},success:{subtle:{container:"bg-feedback-success-background border-l-4 border-l-feedback-success-border",iconColor:"text-feedback-success-border",titleColor:"text-text-primary",bodyColor:"text-text-primary"},bold:{container:"bg-feedback-success-border border-feedback-success-border",iconColor:"text-text-inverse",titleColor:"text-text-inverse",bodyColor:"text-text-inverse/90"},icon:lucideReact.CheckCircle},warning:{subtle:{container:"bg-feedback-warning-background border-l-4 border-l-feedback-warning-border",iconColor:"text-feedback-warning-border",titleColor:"text-text-primary",bodyColor:"text-text-primary"},bold:{container:"bg-feedback-warning-border border-feedback-warning-border",iconColor:"text-text-inverse",titleColor:"text-text-inverse",bodyColor:"text-text-inverse/90"},icon:lucideReact.AlertCircle},error:{subtle:{container:"bg-feedback-error-background border-l-4 border-l-feedback-error-border",iconColor:"text-feedback-error-border",titleColor:"text-text-primary",bodyColor:"text-text-primary"},bold:{container:"bg-feedback-error-border border-feedback-error-border",iconColor:"text-text-inverse",titleColor:"text-text-inverse",bodyColor:"text-text-inverse/90"},icon:lucideReact.XCircle},discovery:{subtle:{container:"bg-background-muted border-l-4 border-l-action-brand",iconColor:"text-action-brand",titleColor:"text-text-primary",bodyColor:"text-text-primary"},bold:{container:"bg-action-brand border-action-brand",iconColor:"text-text-inverse",titleColor:"text-text-inverse",bodyColor:"text-text-inverse/90"},icon:lucideReact.Lightbulb}};function rl({variant:e="info",appearance:t="subtle",title:r,children:o,dismissible:n=false,onDismiss:a,primaryAction:i,secondaryAction:s,icon:c,hideIcon:l=false,className:d,testId:u}){let m=yN[e],p=m[t],f=m.icon,g=!!(i||s),y=!!(r||o);return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex gap-3 rounded-sm border p-4",p.container,d),role:"region","aria-live":"polite","data-testid":u,children:[!l&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-shrink-0",p.iconColor),"aria-hidden":"true",children:c||jsxRuntime.jsx(f,{className:"h-5 w-5"})}),jsxRuntime.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-3",children:[y&&jsxRuntime.jsxs("div",{className:"flex-1",children:[r&&jsxRuntime.jsx("div",{className:nr(vt("headingSm"),p.titleColor),children:r}),o&&jsxRuntime.jsx("div",{className:nr(vt("bodySm"),r?"mt-1":"",p.bodyColor),children:o})]}),g&&jsxRuntime.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[i&&(i.asLink?jsxRuntime.jsx(st,{asButton:true,onPress:i.onPress,variant:t==="bold"?"unstyled":"default",className:t==="bold"?"text-text-inverse hover:text-text-inverse/80":"",children:i.label}):jsxRuntime.jsx(_,{size:"sm",variant:"primary",onPress:i.onPress,className:t==="bold"?"bg-background-surface text-text-primary hover:bg-background-surface/90":"",children:i.label})),s&&(s.asLink?jsxRuntime.jsx(st,{asButton:true,onPress:s.onPress,variant:t==="bold"?"unstyled":"default",className:t==="bold"?"text-text-inverse hover:text-text-inverse/80":"",children:s.label}):jsxRuntime.jsx(_,{size:"sm",variant:"secondary",onPress:s.onPress,className:t==="bold"?"border-text-inverse/30 text-text-inverse hover:bg-text-inverse/10":"",children:s.label}))]})]}),n&&jsxRuntime.jsx("button",{type:"button",onClick:a,className:tailwindMerge.twMerge("flex h-8 w-8 flex-shrink-0 items-center justify-center self-start rounded-md transition-colors hover:bg-background-modal/10",p.iconColor,$e()),"aria-label":"Dismiss banner",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"})})]})}function wg({isOpen:e=true,position:t="sticky",className:r,...o}){let n=t==="fixed"?"fixed top-0 left-0 right-0 z-50":"sticky top-0 z-50",a=r?`${r} !rounded-none`:"!rounded-none";return jsxRuntime.jsx(framerMotion.AnimatePresence,{children:e&&jsxRuntime.jsx(framerMotion.motion.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2,ease:"easeInOut"},className:n,children:jsxRuntime.jsx(rl,{...o,className:a})})})}function Ba(){let[e,t]=Je.useState({width:0,height:0}),r=Je.useRef(null),o=Je.useRef(void 0),n=Je.useCallback(a=>{if(r.current&&(r.current.disconnect(),r.current=null),o.current&&(cancelAnimationFrame(o.current),o.current=void 0),!a){t({width:0,height:0});return}let i=a.getBoundingClientRect();t({width:i.width,height:i.height}),r.current=new ResizeObserver(s=>{o.current&&cancelAnimationFrame(o.current),o.current=requestAnimationFrame(c=>{for(let l of s){let{width:d,height:u}=l.contentRect;t(m=>m.width!==d||m.height!==u?{width:d,height:u}:m);}});}),r.current.observe(a);},[]);return Je.useEffect(()=>()=>{o.current&&cancelAnimationFrame(o.current),r.current&&r.current.disconnect();},[]),{ref:n,width:e.width,height:e.height}}function $o({value:e,children:t,className:r,size:o="sm",iconPosition:n="right"}){let[a,i]=Je.useState(false),l=jsxRuntime.jsx(_,{variant:"icon",size:o,onPress:()=>{let u=e||(typeof t=="string"?t:"");navigator.clipboard.writeText(u),i(true),setTimeout(()=>{i(false);},2e3);},className:"!px-2 relative",style:{top:"0.5px"},children:jsxRuntime.jsx(V,{name:"Copy",size:o==="sm"?14:16})}),d=a?jsxRuntime.jsx(lr,{content:"Copied!",children:l}):l;return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("inline-flex items-center gap-0.5",r),children:[n==="left"&&d,t,n==="right"&&d]})}function ol(e){let{children:t,maxWidth:r=600,className:o,...n}=e,{ref:a,width:i}=Ba(),[s,c]=Je__namespace.default.useState(false),[l,d]=Je__namespace.default.useState(false),u=Je__namespace.default.useRef(false),m=Je__namespace.default.useMemo(()=>t&&!e.items&&typeof t!="function"?Je__namespace.default.Children.toArray(t):null,[t,e.items]);if(Je__namespace.default.useEffect(()=>{m&&m.length>=4&&i>0&&!u.current?(u.current=true,c(i>r),d(true)):(!m||m&&m.length<4)&&d(true);let p=setTimeout(()=>{l||d(true);},100);return ()=>clearTimeout(p)},[i,r,m,l]),m&&s&&m.length>=4){let p=m[0],f=m.slice(1,-2),g=m.slice(-2),y=f.map(b=>{if(Je__namespace.default.isValidElement(b)){let h=b.props;if(typeof h.children=="string")return {label:h.children,href:h.href}}return {label:"..."}});return jsxRuntime.jsxs(reactAriaComponents.Breadcrumbs,{...n,ref:a,className:tailwindMerge.twMerge("flex gap-2",l?"opacity-100":"opacity-0",o),children:[p,jsxRuntime.jsx(RN,{items:y}),g]})}return jsxRuntime.jsx(reactAriaComponents.Breadcrumbs,{...n,ref:a,className:tailwindMerge.twMerge("flex gap-2",l?"opacity-100":"opacity-0",o),children:t})}function RN({items:e}){let t=e.map((r,o)=>({id:`breadcrumb-${o}`,name:r.label,href:r.href}));return jsxRuntime.jsx(reactAriaComponents.Breadcrumb,{className:"flex items-center gap-2",children:jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(Da,{items:t,align:"left",size:"sm",children:jsxRuntime.jsx(_,{variant:"icon",size:"sm",icon:"DotsThree","aria-label":"Show hidden breadcrumbs",className:"px-0.5"})}),jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4 text-text-secondary"})]})})}function nl(e){let{className:t,children:r,href:o,copyable:n,copyValue:a,...i}=e;return jsxRuntime.jsx(reactAriaComponents.Breadcrumb,{className:Ee(t,"flex items-center gap-2"),...i,children:s=>{let c=s.isCurrent,l=typeof r=="function"?r(s):r;return jsxRuntime.jsx(jsxRuntime.Fragment,{children:c?n?jsxRuntime.jsx($o,{value:a||(typeof l=="string"?l:void 0),size:"sm",iconPosition:"right",children:jsxRuntime.jsx("span",{className:"max-w-[200px] truncate font-semibold text-text-primary sm:max-w-none",children:l})}):jsxRuntime.jsx("span",{className:"max-w-[200px] truncate font-semibold text-text-primary sm:max-w-none",children:l}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(st,{variant:"muted",href:o,className:"max-w-[150px] truncate sm:max-w-[300px] md:max-w-none",children:l}),jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4 shrink-0 text-text-secondary"})]})})}})}function zN({isSelected:e,isDisabled:t}){let r=[$e,"w-9 h-9 text-sm cursor-default rounded-sm flex items-center justify-center forced-color-adjust-none font-semibold"];return t?r.push("text-text-disabled forced-colors:text-[GrayText]"):e?r.push("bg-action-default text-text-inverse invalid:bg-feedback-error-border forced-colors:bg-[Highlight] forced-colors:invalid:bg-[Mark] forced-colors:text-[HighlightText]"):r.push("text-text-primary hover:bg-background-hover pressed:bg-background-selected"),r.join(" ")}function Va({errorMessage:e,...t}){return jsxRuntime.jsxs(reactAriaComponents.Calendar,{...t,children:[jsxRuntime.jsx(al,{}),jsxRuntime.jsxs(reactAriaComponents.CalendarGrid,{className:"border-separate [border-spacing:0] [&_td]:p-0 [&_td]:!border-0",children:[jsxRuntime.jsx(il,{}),jsxRuntime.jsx(reactAriaComponents.CalendarGridBody,{children:r=>jsxRuntime.jsx(reactAriaComponents.CalendarCell,{date:r,className:({isSelected:o,isDisabled:n})=>`${zN({isSelected:o,isDisabled:n})} border-0`})})]}),e&&jsxRuntime.jsx(reactAriaComponents.Text,{slot:"errorMessage",className:"text-sm text-feedback-error-text",children:e})]})}function al(){let{direction:e}=reactAriaComponents.useLocale(),t=18;return jsxRuntime.jsxs("header",{className:"flex w-full items-center gap-1 px-1 pb-4",children:[jsxRuntime.jsx(_,{variant:"icon",slot:"previous",className:"pl-0",children:e==="rtl"?jsxRuntime.jsx(V,{name:"CaretRight","aria-hidden":true,size:t}):jsxRuntime.jsx(V,{name:"CaretLeft","aria-hidden":true,size:t})}),jsxRuntime.jsx(reactAriaComponents.Heading,{className:"text-md mx-2 flex-1 text-center font-semibold text-text-primary"}),jsxRuntime.jsx(_,{variant:"icon",slot:"next",className:"pr-0",children:e==="rtl"?jsxRuntime.jsx(V,{name:"CaretLeft","aria-hidden":true,size:t}):jsxRuntime.jsx(V,{name:"CaretRight","aria-hidden":true,size:t})})]})}function il(){return jsxRuntime.jsx(reactAriaComponents.CalendarGridHeader,{children:e=>jsxRuntime.jsx(reactAriaComponents.CalendarHeaderCell,{className:"text-xs font-semibold text-text-secondary",children:e})})}var Mg=Je__namespace.createContext(null);function en(){let e=Je__namespace.useContext(Mg);if(!e)throw new Error("Carousel components must be used within a CarouselRoot");return e}function Lg({page:e,defaultPage:t=0,onPageChange:r,orientation:o="horizontal",loop:n=false,autoplay:a=false,autoplayDelay:i=4e3,allowMouseDrag:s=false,spacing:c="1rem",slidesPerView:l=1,slidesPerMove:d=1,className:u,children:m,...p}){let f=e!==void 0,[g,y]=Je__namespace.useState(t),b=f?e:g,h=Je__namespace.useRef(null),[x,v]=Je__namespace.useState(0),[S,w]=Je__namespace.useState(typeof a=="boolean"?a:!!a),[P,T]=Je__namespace.useState(false),k=Je__namespace.useRef(null),R=Je__namespace.useRef(null),I=typeof a=="object"&&a!==null&&a.delay?a.delay:i;Je__namespace.useEffect(()=>{if(h.current){let C=Math.max(1,Math.floor(Number(l)||1)),D=h.current.children;if(D.length===0){v(0);return}let B=Math.ceil(D.length/C);v(B);}},[m,l]);let E=Je__namespace.useRef(-1);Je__namespace.useEffect(()=>{if(b!==E.current&&h.current){let C=Array.from(h.current.children);if(C.length===0)return;let D=b*l,B=Math.min(D,C.length-1),Y=C[B];Y&&typeof Y.scrollIntoView=="function"&&(Y.scrollIntoView({behavior:"smooth",block:o==="vertical"?"start":"nearest",inline:o==="horizontal"?"start":"nearest"}),E.current=b);}},[b,l,o]);let L=Je__namespace.useCallback(C=>{let D=C;n?D<0?D=x-1:D>=x&&(D=0):D=Math.max(0,Math.min(C,x-1)),f||y(D),r?.(D);},[f,n,r,x]),M=Je__namespace.useCallback(()=>{L(b+d);},[b,L,d]),F=Je__namespace.useCallback(()=>{L(b-d);},[b,L,d]),z=Je__namespace.useRef(M);Je__namespace.useEffect(()=>{z.current=M;},[M]);let W=x>0&&(n||b<x-1),X=x>0&&(n||b>0),Z=Je__namespace.useCallback(()=>{w(C=>!C);},[]);Je__namespace.useEffect(()=>{if(S&&x>1)return k.current=setInterval(()=>{z.current();},I),()=>{k.current&&(clearInterval(k.current),k.current=null);}},[S,x,I]);let O=Je__namespace.useCallback(()=>{k.current&&(clearInterval(k.current),k.current=null);},[]),j=Je__namespace.useCallback(()=>{S&&x>1&&(k.current=setInterval(()=>{z.current();},I));},[S,x,I]),H=Je__namespace.useCallback(C=>{if(!s)return;T(true);let D="touches"in C&&C.touches&&C.touches.length>0?C.touches[0].clientX:"clientX"in C?C.clientX:0,B="touches"in C&&C.touches&&C.touches.length>0?C.touches[0].clientY:"clientY"in C?C.clientY:0;R.current={x:D,y:B};},[s]),A=Je__namespace.useCallback(C=>{if(!P||!R.current)return;let D="touches"in C&&C.touches&&C.touches.length>0?C.touches[0].clientX:"clientX"in C?C.clientX:0,B="touches"in C&&C.touches&&C.touches.length>0?C.touches[0].clientY:"clientY"in C?C.clientY:0,Y=D-R.current.x,re=B-R.current.y,ue=50;o==="horizontal"&&Math.abs(Y)>ue?(Y>0?F():M(),T(false),R.current=null):o==="vertical"&&Math.abs(re)>ue&&(re>0?F():M(),T(false),R.current=null);},[P,o,M,F]),G=Je__namespace.useCallback(()=>{T(false),R.current=null;},[]),N={currentPage:b,totalPages:x,orientation:o,loop:n,spacing:c,slidesPerView:l,goToPage:L,goToNext:M,goToPrev:F,canGoNext:W,canGoPrev:X,isAutoplayActive:S,toggleAutoplay:Z,itemsRef:h,isDragging:P,allowMouseDrag:s,handleDragStart:H,handleDragMove:A,handleDragEnd:G};return jsxRuntime.jsx(Mg.Provider,{value:N,children:jsxRuntime.jsx("div",{...p,className:tailwindMerge.twMerge("relative w-full",o==="vertical"?"h-full":"",u),onMouseEnter:O,onMouseLeave:j,children:m})})}function Dg({className:e,children:t,...r}){let{itemsRef:o,orientation:n,spacing:a,isDragging:i,allowMouseDrag:s,handleDragStart:c,handleDragMove:l,handleDragEnd:d}=en();return jsxRuntime.jsx("div",{ref:o,...r,className:tailwindMerge.twMerge("flex overflow-x-auto overflow-y-hidden snap-x snap-mandatory scrollbar-hide scroll-smooth",n==="vertical"&&"flex-col overflow-y-auto overflow-x-hidden snap-y",s&&i&&"cursor-grabbing select-none",s&&!i&&"cursor-grab",e),style:{gap:a,"--carousel-spacing":a,...r.style},onMouseDown:c,onMouseMove:l,onMouseUp:d,onMouseLeave:d,onTouchStart:c,onTouchMove:l,onTouchEnd:d,children:t})}function Ag({index:e,className:t,children:r,...o}){let{orientation:n,slidesPerView:a}=en();return jsxRuntime.jsx("div",{...o,"data-index":e,className:tailwindMerge.twMerge("shrink-0 snap-start",n==="horizontal"?"h-full":"w-full",t),style:{width:n==="horizontal"?`calc((100% - (${a-1} * var(--carousel-spacing, 1rem))) / ${a})`:void 0,height:n==="vertical"?`calc((100% - (${a-1} * var(--carousel-spacing, 1rem))) / ${a})`:void 0,...o.style},children:r})}function Ig({className:e,children:t,...r}){return jsxRuntime.jsx("div",{...r,className:tailwindMerge.twMerge("flex items-center justify-center gap-4 mt-4",e),children:t})}function Fg({className:e,children:t,...r}){let{goToPrev:o,canGoPrev:n}=en();return jsxRuntime.jsx("button",{type:"button",...r,onClick:a=>{o(),r.onClick?.(a);},disabled:!n||r.disabled,"aria-label":"Previous slide",className:tailwindMerge.twMerge("inline-flex items-center justify-center rounded-md","h-10 w-10","bg-background-input border border-border-input","text-text-primary hover:bg-background-muted","transition-colors duration-200","disabled:opacity-40 disabled:cursor-not-allowed","focus-visible:outline focus-visible:outline-2 focus-visible:outline-action-default",e),children:t||jsxRuntime.jsx(V,{name:"CaretLeft",size:"sm"})})}function Bg({className:e,children:t,...r}){let{goToNext:o,canGoNext:n}=en();return jsxRuntime.jsx("button",{type:"button",...r,onClick:a=>{o(),r.onClick?.(a);},disabled:!n||r.disabled,"aria-label":"Next slide",className:tailwindMerge.twMerge("inline-flex items-center justify-center rounded-md","h-10 w-10","bg-background-input border border-border-input","text-text-primary hover:bg-background-muted","transition-colors duration-200","disabled:opacity-40 disabled:cursor-not-allowed","focus-visible:outline focus-visible:outline-2 focus-visible:outline-action-default",e),children:t||jsxRuntime.jsx(V,{name:"CaretRight",size:"sm"})})}function wu({index:e,className:t,children:r,...o}){let{currentPage:n,goToPage:a}=en(),i=n===e;return jsxRuntime.jsx("button",{type:"button",...o,onClick:s=>{a(e),o.onClick?.(s);},"aria-label":`Go to slide ${e+1}`,"aria-current":i,className:tailwindMerge.twMerge("h-2 rounded-full transition-all duration-200",i?"w-6 bg-action-brand":"w-2 bg-border-muted hover:bg-border-input","focus-visible:outline focus-visible:outline-2 focus-visible:outline-action-default",t),children:r})}function Vg({className:e,...t}){let{totalPages:r}=en();return jsxRuntime.jsx("div",{...t,className:tailwindMerge.twMerge("flex items-center gap-2",e),role:"group","aria-label":"Carousel indicators",children:Array.from({length:r},(o,n)=>jsxRuntime.jsx(wu,{index:n},n))})}function zg({className:e,children:t,...r}){let{isAutoplayActive:o,toggleAutoplay:n}=en();return jsxRuntime.jsx("button",{type:"button",...r,onClick:a=>{n(),r.onClick?.(a);},"aria-label":o?"Pause autoplay":"Start autoplay",className:tailwindMerge.twMerge("inline-flex items-center justify-center rounded-md","h-10 w-10","bg-background-input border border-border-input","text-text-primary hover:bg-background-muted","transition-colors duration-200","focus-visible:outline focus-visible:outline-2 focus-visible:outline-action-default",e),children:t||jsxRuntime.jsx(V,{name:o?"Pause":"Play",size:"sm"})})}function Og({className:e,...t}){let{currentPage:r,totalPages:o}=en();return jsxRuntime.jsxs("div",{...t,className:tailwindMerge.twMerge("text-sm text-text-secondary tabular-nums",e),"aria-live":"polite","aria-atomic":"true",children:[r+1," / ",o]})}var YN="focus:ring-action-primary",JN="bg-action-primary border-action-primary text-[color:var(--color-action-primary-text)] hover:bg-action-primary-hover hover:border-action-primary-hover";function Nu(e){return jsxRuntime.jsxs(reactAriaComponents.CheckboxGroup,{...e,className:Ee(e.className,"flex flex-col gap-2"),children:[jsxRuntime.jsx(Ye,{children:e.label}),e.children,e.description&&jsxRuntime.jsx(Me,{children:e.description}),jsxRuntime.jsx(xe,{children:typeof e.errorMessage=="function"?void 0:e.errorMessage})]})}function XN({isDisabled:e}){return `relative flex gap-2 items-center group text-sm transition ${e?"text-text-disabled":"text-text-secondary"}`}function jN({isSelected:e,isInvalid:t,isDisabled:r,isIndeterminate:o}){let n="w-5 h-5 flex-shrink-0 rounded-[var(--control-border-radius)] flex items-center justify-center border-2 transition ring-offset-2 focus:ring-2",a=YN,i="";return r?i="border-border-muted bg-background-muted":t?i="border-feedback-error-border bg-feedback-error-background":e||o?i=JN:i="bg-background-input border-border-input hover:border-border-focus",`${n} ${a} ${i}`}var Hg="w-4 h-4 text-current group-disabled:text-text-disabled";function Xr(e){let{children:t,variant:r,...o}=e;return jsxRuntime.jsx(reactAriaComponents.Checkbox,{...o,className:reactAriaComponents.composeRenderProps(e.className,(n,a)=>`${XN(a)} ${n||""}`),children:n=>{let{isSelected:a,isIndeterminate:i,...s}=n,c=jsxRuntime.jsx("div",{className:jN({isSelected:a,isIndeterminate:i,...s}),children:i?jsxRuntime.jsx(lucideReact.Minus,{"aria-hidden":true,className:Hg}):a?jsxRuntime.jsx(lucideReact.Check,{"aria-hidden":true,className:Hg}):null});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[c,typeof t=="function"?t(n):t]})}})}var ZN={primary:"bg-action-primary/10 text-action-primary border border-action-primary/20 hover:bg-action-primary/15",secondary:"bg-action-secondary text-[color:var(--color-action-secondary-text)] border border-border-muted hover:bg-action-secondary-hover",info:"bg-feedback-info-background text-feedback-info-text border border-feedback-info-border hover:bg-feedback-info-background/80"};function Wg(e){return !e||e==="default"?"secondary":e==="brand"?"primary":e}var _N={xs:"px-1.5 py-[2px] gap-0.5",sm:"px-2 py-1 gap-1",md:"px-3 py-1.5 gap-1.5",lg:"px-3 py-2 gap-2",xl:"px-4 py-2.5 gap-2"},$N="opacity-75 cursor-not-allowed pointer-events-none";function Ug(e){let{variant:t,size:r,isDisabled:o,isClickable:n,className:a}=e,i=r==="xs"?"text-xs":je[r].text;return tailwindMerge.twMerge("inline-flex items-center justify-center rounded-full font-medium transition-colors","whitespace-nowrap select-none",_N[r],i,ZN[t],n&&!o&&"cursor-pointer",o&&$N,a)}function po({children:e,onRemove:t,removeLabel:r="Remove",size:o="md",variant:n="secondary",isRemovable:a=true,isDisabled:i=false,className:s,onClick:c}){let l=!!c&&!i,d=a&&t&&!i,u=y=>{y.stopPropagation(),y.preventDefault(),t&&!i&&t();},m=()=>{c&&!i&&c();},p=o==="xs"?10:o==="sm"?12:o==="md"?14:16,g=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("span",{className:"truncate",children:e}),d?l?jsxRuntime.jsx("span",{onClick:u,onKeyDown:y=>{(y.key==="Enter"||y.key===" ")&&(y.preventDefault(),u(y));},role:"button",tabIndex:0,className:"flex-shrink-0 rounded-full p-0.5 hover:bg-text-primary/10 transition-colors cursor-pointer","aria-label":r,title:r,children:jsxRuntime.jsx(V,{name:"X",size:p,className:"text-current opacity-70 hover:opacity-100"})}):jsxRuntime.jsx("button",{type:"button",onClick:u,className:"flex-shrink-0 rounded-full p-0.5 hover:bg-text-primary/10 transition-colors cursor-pointer","aria-label":r,title:r,tabIndex:-1,children:jsxRuntime.jsx(V,{name:"X",size:p,className:"text-current opacity-70 hover:opacity-100"})}):null]});return l?jsxRuntime.jsx("button",{type:"button",onClick:m,className:Ug({variant:Wg(n),size:o,isDisabled:i,isClickable:l,className:s}),disabled:i,children:g}):jsxRuntime.jsx("span",{className:Ug({variant:Wg(n),size:o,isDisabled:i,isClickable:l,className:s}),children:g})}function Jg({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a=false,isDisabled:i=false,isInvalid:s=false,validationResult:c,placeholder:l="Add items...",selectedItems:d=[],onItemsChange:u,staticItems:m,fetchSuggestions:p,chipVariant:f="secondary",showErrors:g=true,className:y}){let[b,h]=Je.useState(""),[x,v]=Je.useState([]),[S,w]=Je.useState(false),[P,T]=Je.useState(false),[k,R]=Je.useState(-1),I=Zo(b,300),E=Je.useRef(null),L=Je.useRef(null),{isFocused:M,handleFocus:F,handleBlur:z}=Br(),W=Je.useId(),X=Je.useCallback(N=>{if(!u||!N.trim())return;let C=N.trim();if(d.includes(C)){h(""),T(false),v([]),R(-1);return}u([...d,C]),h(""),T(false),v([]),R(-1),E.current?.focus();},[d,u]),Z=Je.useCallback(N=>{u&&u(d.filter(C=>C!==N));},[d,u]);Je.useEffect(()=>{if(!p)return;let N=true;return (async()=>{let D=I.trim();if(!D){N&&(w(false),v([]),T(false));return}w(true);try{let B=await p(D);if(!N)return;v(B),T(!0);}catch(B){if(!N)return;console.error("Error fetching suggestions:",B),v([]),T(false);}finally{N&&w(false);}})(),()=>{N=false;}},[I,p]),Je.useEffect(()=>{if(p||!m)return;if(!I.trim()){v([]),T(false);return}let N=m.filter(C=>C.name.toLowerCase().includes(I.toLowerCase())).map(C=>C.id);v(N),T(N.length>0||I.trim().length>0);},[I,m,p]);let O=Je.useMemo(()=>{let N=x.filter(C=>!d.includes(C));return b.trim()&&!N.includes(b.trim())&&!d.includes(b.trim())?[...N,`Create tag: "${b.trim()}"`]:N},[x,b,d]),j=Je.useCallback(N=>{h(N.target.value),R(-1),N.target.value&&T(true);},[]),H=Je.useCallback(N=>{i||(N.startsWith("Create tag:")?X(b):X(N));},[X,b,i]),A=Je.useCallback(N=>{if(!i)switch(N.key){case "Enter":case ",":if(N.preventDefault(),k>=0&&k<O.length){let C=O[k];C.startsWith("Create tag:")?X(b):X(C);}else b.trim()&&X(b.trim());break;case "Backspace":!b&&d.length>0&&(N.preventDefault(),Z(d[d.length-1]));break;case "ArrowDown":N.preventDefault(),P&&R(C=>C<O.length-1?C+1:C);break;case "ArrowUp":N.preventDefault(),P&&R(C=>C>0?C-1:-1);break;case "Escape":T(false),R(-1);break}},[i,b,d,O,k,P,X,Z]);Je.useEffect(()=>{let N=C=>{L.current&&C.target instanceof Node&&!L.current.contains(C.target)&&T(false);};return document.addEventListener("mousedown",N),()=>document.removeEventListener("mousedown",N)},[]);let G=()=>tailwindMerge.twMerge("flex items-center gap-1.5 rounded-md overflow-x-auto overflow-y-hidden","[&::-webkit-scrollbar]:hidden [-ms-overflow-style:none] [scrollbar-width:none]",_o({isInvalid:s,isDisabled:i,isFocused:M}),"bg-background-input",o==="sm"&&"px-2 py-1 h-[32px]",o==="md"&&"px-2.5 py-1.5 h-[40px]",o==="lg"&&"px-3 py-2 h-[44px]",o==="xl"&&"px-3.5 py-2.5 h-[48px]",i&&"opacity-50 cursor-not-allowed bg-background-muted");return jsxRuntime.jsxs("div",{ref:L,className:tailwindMerge.twMerge("relative flex flex-col gap-1",y),children:[e&&jsxRuntime.jsx(Ye,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(kt,{children:jsxRuntime.jsxs("div",{className:G(),onClick:()=>!i&&E.current?.focus(),children:[d.map(N=>jsxRuntime.jsx(po,{variant:f,size:"xs",onRemove:()=>Z(N),isDisabled:i,className:"shrink-0 max-h-full",children:N},N)),jsxRuntime.jsx("input",{ref:E,type:"text",role:"combobox","aria-expanded":P,"aria-haspopup":"listbox","aria-controls":W,"aria-autocomplete":"list",value:b,onChange:j,onKeyDown:A,onFocus:N=>F(N),onBlur:N=>z(N),placeholder:d.length===0?l:"",disabled:i,className:"flex-1 min-w-[120px] h-full !border-0 !outline-none !ring-0 bg-transparent text-text-primary text-sm placeholder:text-text-disabled disabled:cursor-not-allowed focus:!ring-0 focus:!outline-none focus:!border-0 focus-visible:!ring-0 focus-visible:!outline-none focus-visible:!border-0",style:{boxShadow:"none",WebkitAppearance:"none",appearance:"none",border:"none",outline:"none"}})]})}),P&&(b||O.length>0)&&jsxRuntime.jsx("div",{id:W,role:"listbox",className:tailwindMerge.twMerge("absolute z-50 mt-1 rounded-lg border border-border-default","max-h-60 overflow-auto bg-background-surface shadow-lg","left-0 right-0 top-full"),children:S?jsxRuntime.jsx("div",{className:"px-3 py-2 text-sm text-text-secondary",children:"Loading..."}):O.length>0?O.map((N,C)=>jsxRuntime.jsx("div",{role:"option","aria-selected":C===k,className:tailwindMerge.twMerge("cursor-pointer px-3 py-2 text-sm transition-colors","hover:bg-background-hover",C===k&&"bg-background-selected",N.startsWith("Create tag:")&&"italic text-text-secondary"),onClick:()=>H(N),children:N},N)):b&&jsxRuntime.jsx("div",{className:"px-3 py-2 text-sm text-text-secondary",children:"No suggestions found"})}),t&&jsxRuntime.jsx(Me,{size:o,className:"mt-1",children:t}),g&&typeof r=="string"&&jsxRuntime.jsx(xe,{size:o,className:"text-feedback-error-text mt-1",children:r}),g&&typeof r=="function"&&c&&jsxRuntime.jsx(xe,{size:o,className:"text-feedback-error-text mt-1",children:r(c)})]})}var ck={json:()=>import('ace-builds/src-noconflict/mode-json'),javascript:()=>import('ace-builds/src-noconflict/mode-javascript'),typescript:()=>import('ace-builds/src-noconflict/mode-typescript'),html:()=>import('ace-builds/src-noconflict/mode-html'),css:()=>import('ace-builds/src-noconflict/mode-css'),markdown:()=>import('ace-builds/src-noconflict/mode-markdown'),yaml:()=>import('ace-builds/src-noconflict/mode-yaml'),xml:()=>import('ace-builds/src-noconflict/mode-xml'),python:()=>import('ace-builds/src-noconflict/mode-python'),sql:()=>import('ace-builds/src-noconflict/mode-sql')},dk={github:()=>import('ace-builds/src-noconflict/theme-github'),github_dark:()=>import('ace-builds/src-noconflict/theme-github_dark')},uk={"ext-language-tools":()=>import('ace-builds/src-noconflict/ext-language_tools')},Mi=new Set;async function Tu(e,t){Mi.has(e)||(await t(),Mi.add(e));}async function pk(e,t,r){await Promise.all([Tu(`language:${e}`,ck[e]),Tu(`theme:${t}`,dk[t]),r?Tu("extension:language-tools",uk["ext-language-tools"]):void 0]);}function jg(e,t,r){let o=Mi.has(`language:${e}`)&&Mi.has(`theme:${t}`);return r?o&&Mi.has("extension:language-tools"):o}function qg({value:e,readOnly:t=false,onChange:r,language:o="json",theme:n="github_dark",height:a,width:i="100%",className:s,lineHeight:c=19,minLines:l=3,maxLines:d=50,showLineNumbers:u=true,showGutter:m=true,fontSize:p=14,wrapEnabled:f=false}){let g=Je.useRef(null),[y,b]=Je.useState(()=>jg(o,n,!t)),h=Je.useMemo(()=>{if(a)return a;let x=(e.match(/\n/g)||[]).length+1;return `${Math.max(l,Math.min(x,d))*c+10}px`},[e,a,c,l,d]);return Je.useEffect(()=>{let x=false,v=!t;return jg(o,n,v)?(b(true),()=>{x=true;}):(b(false),pk(o,n,v).then(()=>{x||b(true);}).catch(S=>{x||b(true),console.error("Failed to load Ace editor resources",S);}),()=>{x=true;})},[o,t,n]),Je.useEffect(()=>{y&&g.current?.editor&&g.current.editor.resize();},[h,y]),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-hidden rounded-md border border-border-input",s),style:{width:i,height:h},children:y?jsxRuntime.jsx(sk__default.default,{ref:g,mode:o,theme:n,value:e,onChange:r,readOnly:t,width:"100%",height:"100%",fontSize:p,showPrintMargin:false,showGutter:m,highlightActiveLine:!t,setOptions:{useWorker:true,showLineNumbers:u,tabSize:2,enableBasicAutocompletion:!t,enableLiveAutocompletion:!t,enableSnippets:!t,showFoldWidgets:true,wrap:f},editorProps:{$blockScrolling:true}}):jsxRuntime.jsx("div",{className:"flex h-full w-full items-center justify-center bg-surface-muted text-foreground-muted",children:"Loading editor\u2026"})})}var Zg=Je__namespace.createContext({variant:"contained",density:"comfortable",showDividers:true}),_g=Je__namespace.createContext(null),xk={contained:"rounded-lg border border-border-default bg-background-surface overflow-hidden",bordered:"rounded-lg border border-border-default bg-background-surface",plain:"bg-transparent"},Qg={true:"divide-y divide-border-default",false:"gap-3"},hk={comfortable:"px-5 py-3",compact:"px-4 py-2.5"},yk={comfortable:"px-5 pt-0",compact:"px-4 pt-0"},vk={comfortable:"h-4 w-4",compact:"h-3.5 w-3.5"};function Mu(){return Je__namespace.useContext(Zg)}function Ck(e){let t=Je__namespace.useContext(_g);if(!t)throw new Error(`${e} must be used within a <CollapseItem>`);return t}function Sk({variant:e,showDividers:t,className:r}){let o="group/collapse-item w-full transition-colors",n={contained:"bg-background-surface",bordered:"bg-background-surface",plain:"bg-transparent"},a=t?"":"rounded-lg border border-border-default bg-background-surface overflow-hidden";return tailwindMerge.twMerge(o,n[e],a,r)}function wk({isDisabled:e,isPressed:t,density:r,variant:o,showDividers:n,className:a}){let i="group/collapse-header flex w-full items-start gap-4 text-left transition-colors duration-150",s=e?"cursor-not-allowed text-text-disabled":"cursor-pointer text-text-primary",c=t&&!e?"bg-background-hover":"",l=hk[r];return tailwindMerge.twMerge(i,$e(),l,s,c,o==="plain"&&n?"px-0":"",a)}function Nk({density:e,showDividers:t,className:r}){let o="text-text-primary",n=yk[e];return tailwindMerge.twMerge(o,n,t?"":"rounded-b-lg",r)}function za({variant:e="contained",density:t="comfortable",showDividers:r=true,className:o,...n}){let a=Je__namespace.useMemo(()=>({variant:e,density:t,showDividers:r}),[e,t,r]),i=tailwindMerge.twMerge("flex w-full flex-col",xk[e],r?Qg.true:Qg.false,e==="plain"&&r?"border-y border-border-default/60":"");return jsxRuntime.jsx(Zg.Provider,{value:a,children:jsxRuntime.jsx(reactAriaComponents.DisclosureGroup,{...n,className:Ee(o,i)})})}function rn({className:e,children:t,...r}){let{variant:o,showDividers:n}=Mu();return jsxRuntime.jsx(reactAriaComponents.Disclosure,{...r,className:reactAriaComponents.composeRenderProps(e,a=>Sk({variant:o,showDividers:n,className:a})),children:a=>jsxRuntime.jsx(_g.Provider,{value:a,children:t})})}rn.displayName="CollapseItem";function on({title:e,description:t,startContent:r,endContent:o,indicator:n,indicatorPosition:a="end",showIndicator:i=true,keepIndicatorSpace:s=false,children:c,className:l,...d}){let u=Ck("CollapseHeader"),{density:m,variant:p,showDividers:f}=Mu(),g=vk[m];return jsxRuntime.jsx(reactAriaComponents.Button,{...d,slot:"trigger","data-expanded":u.isExpanded?"true":void 0,className:reactAriaComponents.composeRenderProps(l,(y,b)=>wk({isDisabled:b.isDisabled??false,isPressed:b.isPressed??false,density:m,variant:p,showDividers:f,className:y})),children:y=>{let b=y.isDisabled??false,h=i?typeof n=="function"?n({isExpanded:u.isExpanded,isDisabled:b}):n??jsxRuntime.jsx(V,{name:"CaretDown",size:m==="compact"?"xs":"sm",weight:"bold","aria-hidden":"true",className:tailwindMerge.twMerge("text-text-secondary transition-transform duration-200",u.isExpanded?"rotate-180":"rotate-0")}):null,x=h?jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("flex flex-shrink-0 items-center justify-center text-text-secondary",g),"aria-hidden":"true",children:h}):s?jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("flex flex-shrink-0 items-center justify-center",g),"aria-hidden":"true"}):null;return jsxRuntime.jsxs("div",{className:"flex w-full items-center gap-4",children:[a==="start"&&x,r&&jsxRuntime.jsx("div",{className:"flex flex-shrink-0 items-center text-text-secondary",children:r}),jsxRuntime.jsxs("div",{className:"flex min-w-0 flex-1 items-start gap-3",children:[c??jsxRuntime.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-1 text-left",children:[e&&jsxRuntime.jsx("span",{className:"truncate font-medium text-text-primary",children:e}),t&&jsxRuntime.jsx("span",{className:"text-sm text-text-secondary",children:t})]}),o&&jsxRuntime.jsx("div",{className:"flex flex-shrink-0 items-center text-sm text-text-secondary",children:o})]}),a==="end"&&x]})}})}on.displayName="CollapseHeader";function nn({className:e,children:t,...r}){let{density:o,showDividers:n}=Mu();return jsxRuntime.jsx(reactAriaComponents.DisclosurePanel,{...r,className:reactAriaComponents.composeRenderProps(e,a=>Nk({density:o,showDividers:n,className:a})),children:jsxRuntime.jsx(jo,{children:t})})}nn.displayName="CollapseContent";function Oa(e){if(!e)return false;let t=e.startsWith("#")?e.slice(1):e;return /^[0-9A-Fa-f]{3}$|^[0-9A-Fa-f]{6}$/.test(t)}function Du(e){if(!e)return "";let t=e.startsWith("#")?e.slice(1):e;return t.length===3&&(t=t.split("").map(r=>r+r).join("")),`#${t.toUpperCase()}`}function Rk({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,transparent:i,className:s,validationResult:c,value:l,defaultValue:d,onChange:u,placeholder:m="#000000",showColorSwatch:p=true,reserveErrorSpace:f=true,...g}){let[y,b]=Je.useState(d||""),[h,x]=Je.useState(l||d||""),[v,S]=Je.useState(false),[w,P]=Je.useState(null),{isFocused:T,handleFocus:k,handleBlur:R}=Br(),I=l!==void 0?l:y;Je.useEffect(()=>{l!==void 0&&x(l);},[l]);let E=I?!Oa(I):false,L=Je.useCallback(z=>{if(x(z),Oa(z)){let W=Du(z);u?u(W):b(W);}else z===""&&(u?u(""):b(""));},[u]),M=Je.useCallback(z=>{let W=Du(z);x(W),u?u(W):b(W);},[u]),F=Je.useCallback(z=>{if(Oa(h)){let W=Du(h);x(W),u&&W!==I?u(W):!u&&W!==y&&b(W);}R(z,g.onBlur);},[h,I,y,u,R,g.onBlur]);return jsxRuntime.jsx(reactAriaComponents.TextField,{...g,isRequired:a,className:Ee(s,"group flex flex-col"),children:({isDisabled:z})=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(Ye,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(kt,{children:jsxRuntime.jsxs("div",{className:"flex gap-2",children:[jsxRuntime.jsxs("div",{className:"flex-1 relative",children:[jsxRuntime.jsx(Zs,{size:o,disabled:z,type:"text",value:h,placeholder:m,onFocus:W=>k(W,g.onFocus),onBlur:F,onChange:W=>L(W.target.value),className:tailwindMerge.twMerge(Jt({isInvalid:E,isDisabled:z,isFocused:T,size:o,transparent:i}),p?"pr-12":"pr-3","pl-3")}),p&&jsxRuntime.jsx("div",{className:"absolute right-3 top-1/2 -translate-y-1/2 pointer-events-none",style:{width:je[o].height},children:jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-6 h-6 rounded border shadow-sm",Oa(I)?"border-border-default":"border-border-default bg-background-muted"),style:Oa(I)?{backgroundColor:I}:void 0,"aria-hidden":"true",children:!Oa(I)&&jsxRuntime.jsx("div",{className:"w-full h-full flex items-center justify-center",children:jsxRuntime.jsx("div",{className:"w-3 h-3 rounded-full border-2 border-border-muted"})})})})]}),jsxRuntime.jsx("div",{ref:P,children:jsxRuntime.jsx(_,{variant:"secondary",size:o,icon:"Palette",onPress:()=>S(!v),isDisabled:z,className:"flex-shrink-0",children:"Pick"})})]})}),f?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(xe,{size:o,children:r}):typeof r=="function"&&c?jsxRuntime.jsx(xe,{size:o,children:r(c)}):t?jsxRuntime.jsx(Me,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(xe,{size:o,className:"mt-1",children:r}):typeof r=="function"&&c?jsxRuntime.jsx(xe,{size:o,className:"mt-1",children:r(c)}):t?jsxRuntime.jsx(Me,{size:o,className:"mt-1",children:t}):null}),v&&w&&jsxRuntime.jsx(gt,{triggerRef:{current:w},isOpen:v,onOpenChange:S,placement:"bottom end",className:"bg-background-input shadow-xl border border-border-input/20 backdrop-blur-sm rounded-lg p-4",children:jsxRuntime.jsxs("div",{className:"flex flex-col gap-4",children:[jsxRuntime.jsx(reactColorful.HexColorPicker,{color:I||"#000000",onChange:M,style:{width:"200px",height:"200px"}}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("div",{className:"w-10 h-10 rounded border border-border-default shadow-sm flex-shrink-0",style:{backgroundColor:I||"#000000"}}),jsxRuntime.jsx("div",{className:"flex-1 text-text-primary text-[length:var(--control-text-sm)] font-mono",children:I||"#000000"})]})]})})]})})}function tb({isOpen:e,onClose:t,onConfirm:r,title:o,message:n,confirmLabel:a="Confirm",cancelLabel:i="Cancel",confirmVariant:s,isDestructive:c=false,isLoading:l=false,maxWidth:d="500px",minWidth:u="400px"}){return jsxRuntime.jsx(sr,{isOpen:e,onClose:t,title:o,maxWidth:d,minWidth:u,primaryAction:{label:a,onPress:()=>{r();},variant:s??(c?"destructive":"primary"),isLoading:l},secondaryAction:{label:i,onPress:t,variant:"secondary",isDisabled:l},children:jsxRuntime.jsx("div",{className:"text-text-primary",children:n})})}function rb({isConnected:e,connectedAt:t,disconnectedAt:r,showTimestamp:o=false,isLoading:n,size:a="sm",shape:i="pill",...s}){if(n)return jsxRuntime.jsx(U,{className:"inline-flex h-6 w-24"});let c=e?"Connected":"Disconnected",l=e?"success":"neutral",d=null;if(o){if(e&&t)d=Ds(t);else if(!e&&r){let u=Ds(r);d=u?`Offline ${u}`:null;}}return jsxRuntime.jsxs("div",{className:"inline-flex flex-col gap-1",children:[jsxRuntime.jsx(dt,{variant:l,size:a,shape:i,dot:e,dotPulse:e,...s,children:c}),d&&jsxRuntime.jsx("span",{className:"text-xs text-text-secondary",children:d})]})}function ob({firstName:e,lastName:t,email:r,phone:o,avatarUrl:n,href:a,LinkComponent:i,variant:s="outlined",layout:c="horizontal",showEmail:l=true,showPhone:d=false,isLoading:u=false,className:m,contentClassName:p,piiEntity:f}){let g=`${e} ${t}`.trim(),y=({children:h,className:x})=>a?i?jsxRuntime.jsx(i,{href:a,className:x,children:h}):jsxRuntime.jsx(st,{href:a,variant:"unstyled",className:tailwindMerge.twMerge("hover:underline",x),asButton:false,children:h}):jsxRuntime.jsx("span",{className:x,children:h}),b=c==="vertical";return u?jsxRuntime.jsx(qe,{variant:s,className:tailwindMerge.twMerge("flex flex-col",m),children:jsxRuntime.jsx(qe.Content,{className:"flex items-center flex-1",children:jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("w-full",b?"flex flex-col items-center gap-4":"flex items-center gap-4"),children:[jsxRuntime.jsx(U,{width:56,height:56,className:"rounded flex-shrink-0"}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge(b?"w-full text-center":"flex-1","space-y-2"),children:[jsxRuntime.jsx(U,{width:"70%",height:20,className:tailwindMerge.twMerge(b&&"mx-auto")}),jsxRuntime.jsx(U,{width:"100%",height:16,className:tailwindMerge.twMerge(b&&"mx-auto")})]})]})})}):jsxRuntime.jsx(qe,{variant:s,className:tailwindMerge.twMerge("group/card flex flex-col",m),children:jsxRuntime.jsx(qe.Content,{className:tailwindMerge.twMerge("flex items-center flex-1",a&&"cursor-pointer",p),children:jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("relative w-full",b?"flex flex-col items-center gap-4 text-center":"flex items-center gap-4"),children:[jsxRuntime.jsx(Do,{firstName:e,lastName:t,src:n,size:"xl",variant:"user",shape:"square",className:"flex-shrink-0",piiEntity:f}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge(b?"w-full":"flex-1 min-w-0"),children:[a&&jsxRuntime.jsx(y,{className:"after:absolute after:inset-0",children:jsxRuntime.jsx("span",{className:"sr-only",children:g})}),jsxRuntime.jsx("span",{className:"text-lg font-semibold leading-tight text-text-primary block mb-1.5 group-hover/card:text-text-brand transition-colors","data-pii-type":f?"full-name":void 0,"data-pii-entity":f,children:g}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("space-y-0.5",b&&"flex flex-col items-center"),children:[l&&r&&jsxRuntime.jsxs("div",{className:"flex items-center gap-2.5 text-text-primary",children:[jsxRuntime.jsx(V,{name:"Envelope",size:16,className:"text-text-secondary flex-shrink-0"}),jsxRuntime.jsx(st,{href:`mailto:${r}`,variant:"unstyled",className:tailwindMerge.twMerge("text-sm leading-relaxed text-text-primary relative z-20",b?"":"truncate"),"data-pii-type":f?"email":void 0,"data-pii-entity":f,children:r})]}),d&&o&&jsxRuntime.jsxs("div",{className:"flex items-center gap-2.5 text-text-primary",children:[jsxRuntime.jsx(V,{name:"Phone",size:16,className:"text-text-secondary flex-shrink-0"}),jsxRuntime.jsx(st,{href:`tel:${o}`,variant:"unstyled",className:tailwindMerge.twMerge("text-sm leading-relaxed text-text-primary relative z-20",b?"":"truncate"),"data-pii-type":f?"phone":void 0,"data-pii-entity":f,children:Na(o)})]})]})]})]})})})}function cl({firstName:e,lastName:t,email:r,avatarUrl:o,layout:n="stacked",size:a="md",href:i,LinkComponent:s,linkVariant:c="unstyled",emphasis:l="normal",showEmail:d=false,badge:u,avatarShape:m,isLoading:p=false,className:f,piiEntity:g}){let y=m??(n==="inline"?"circle":"square"),h={xs:{avatarSize:"xs",gap:"gap-1.5",textSize:"text-xs",secondaryTextSize:"text-xs",skeletonAvatar:24,skeletonText:80,skeletonSecondary:60},sm:{avatarSize:"sm",gap:"gap-2",textSize:"text-sm",secondaryTextSize:"text-xs",skeletonAvatar:32,skeletonText:96,skeletonSecondary:72},md:{avatarSize:"md",gap:"gap-3",textSize:"text-base",secondaryTextSize:"text-sm",skeletonAvatar:40,skeletonText:128,skeletonSecondary:96},lg:{avatarSize:"lg",gap:"gap-3",textSize:"text-lg",secondaryTextSize:"text-base",skeletonAvatar:48,skeletonText:160,skeletonSecondary:120}}[a],x=`${e} ${t}`.trim(),S={strong:"font-semibold text-text-primary",high:"font-semibold text-text-primary",normal:"text-text-primary",low:"text-text-secondary"}[l],w=({children:P,className:T})=>i?s?jsxRuntime.jsx(s,{href:i,className:T,children:P}):jsxRuntime.jsx(st,{href:i,variant:c,className:tailwindMerge.twMerge("hover:underline",T),asButton:false,children:P}):jsxRuntime.jsx("span",{className:T,children:P});return p?n==="inline"?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",h.gap,f),children:[jsxRuntime.jsx(U,{width:h.skeletonAvatar,height:h.skeletonAvatar,className:"flex-shrink-0 rounded-full"}),jsxRuntime.jsx(U,{width:h.skeletonText,height:h.skeletonAvatar*.5})]}):jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",h.gap,f),children:[jsxRuntime.jsx(U,{width:h.skeletonAvatar,height:h.skeletonAvatar,className:"flex-shrink-0 rounded-full"}),jsxRuntime.jsxs("div",{className:"flex flex-col gap-1",children:[jsxRuntime.jsx(U,{width:h.skeletonText,height:16}),d&&jsxRuntime.jsx(U,{width:h.skeletonSecondary,height:12})]})]}):n==="inline"?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",h.gap,f),children:[jsxRuntime.jsxs(w,{className:tailwindMerge.twMerge("flex items-center",h.gap),children:[jsxRuntime.jsx(Do,{firstName:e,lastName:t,src:o,size:h.avatarSize,variant:"user",shape:y,className:"flex-shrink-0",piiEntity:g}),jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("leading-normal truncate hover:text-text-primary",S,h.textSize,i&&"hover:underline hover:decoration-1 hover:underline-offset-4"),"data-pii-type":g?"full-name":void 0,"data-pii-entity":g,children:x})]}),u]}):jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center justify-start",h.gap,f),children:[jsxRuntime.jsx(Do,{firstName:e,lastName:t,src:o,size:h.avatarSize,variant:"user",shape:y,className:"flex-shrink-0",piiEntity:g}),jsxRuntime.jsxs("div",{className:"flex flex-col items-start min-w-0",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(w,{className:tailwindMerge.twMerge("leading-normal truncate hover:text-text-primary",S,h.textSize,i&&"hover:underline hover:decoration-1 hover:underline-offset-4"),children:jsxRuntime.jsx("span",{"data-pii-type":g?"full-name":void 0,"data-pii-entity":g,children:x})}),u]}),d&&r&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-text-secondary leading-normal truncate",h.secondaryTextSize),"data-pii-type":g?"email":void 0,"data-pii-entity":g,children:r})]})]})}var Iu=Je.createContext(null);function nb(e){let t=Je.useContext(Iu),r=Je.useRef(null),o=e??r,[n,a]=Je.useState(()=>t||{current:"xl",isSm:true,isMd:true,isLg:true,isXl:true,is2Xl:false,isMobile:false,isDesktop:true});return Je.useEffect(()=>{if(t){a(t);return}let i=o.current;if(!i||typeof ResizeObserver>"u")return;let s=()=>{let l=i.offsetWidth,d=l>=640,u=l>=768,m=l>=1024,p=l>=1280,f=l>=1536,g="base";f?g="2xl":p?g="xl":m?g="lg":u?g="md":d&&(g="sm"),a({current:g,isSm:d,isMd:u,isLg:m,isXl:p,is2Xl:f,isMobile:!u,isDesktop:u});};s();let c=new ResizeObserver(s);return c.observe(i),()=>c.disconnect()},[t,o]),n}function ib({children:e,className:t}){let r=Je.useRef(null),[o,n]=Je.useState({current:"base",isSm:false,isMd:false,isLg:false,isXl:false,is2Xl:false,isMobile:true,isDesktop:false});return Je.useEffect(()=>{let a=r.current;if(!a||typeof ResizeObserver>"u")return;let i=()=>{let c=a.offsetWidth,l=c>=640,d=c>=768,u=c>=1024,m=c>=1280,p=c>=1536,f="base";p?f="2xl":m?f="xl":u?f="lg":d?f="md":l&&(f="sm"),n({current:f,isSm:l,isMd:d,isLg:u,isXl:m,is2Xl:p,isMobile:!d,isDesktop:d});};i();let s=new ResizeObserver(i);return s.observe(a),()=>s.disconnect()},[]),jsxRuntime.jsx(Iu.Provider,{value:o,children:jsxRuntime.jsx("div",{ref:r,className:t,style:{width:"100%"},children:e})})}var dl={duration:.5,ease:"easeInOut"},Vr=Je.createContext(null),On=()=>{let e=Je.useContext(Vr);if(!e)throw new Error("useChartContext must be used within a ChartContextProvider");return e};function ul(e,t){if(t<=0||e.length<2)return e;let r=[e[0]];for(let o=1;o<e.length;o++)e[o].xValue.getTime()-e[o-1].xValue.getTime()>t&&r.push(null),r.push(e[o]);return r}var sn=({data:e,color:t="var(--color-viz-default)",baseline:r,fillOpacity:o=.1,showLine:n=true,maxGapMs:a,animate:i=true})=>{let s=Je.useId(),c=Je.useId(),{xScale:l,yScale:d,animationSettings:u}=On(),m=l.range(),p=d.range(),f=(v,S)=>typeof r=="function"?r(v,S):r??0,g=v=>v.chartYValue??v.yValue,y=a!=null?ul(e,a):e,b=i?void 0:"non-scaling-stroke",h={transformOrigin:`0 ${p[0]}px`,transformBox:"fill-box",isolation:"isolate"},x=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[r===void 0?jsxRuntime.jsx(shape.AreaClosed,{data:y,x:v=>v?l(v.xValue):0,y:v=>v?d(g(v)):0,yScale:d,defined:v=>v!=null,fill:`url(#${s})`,curve:curve.curveLinear}):jsxRuntime.jsx(shape.Area,{data:y,x:v=>v?l(v.xValue):0,y0:(v,S)=>v?d(f(v,S)):0,y1:v=>v?d(g(v)):0,defined:v=>v!=null,fill:t,fillOpacity:o,curve:curve.curveLinear}),n?jsxRuntime.jsx(shape.LinePath,{data:y,x:v=>v?l(v.xValue):0,y:v=>v?d(g(v)):0,defined:v=>v!=null,stroke:t,strokeWidth:3,vectorEffect:b,curve:curve.curveLinear}):null]});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("defs",{children:[jsxRuntime.jsxs("linearGradient",{id:s,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[jsxRuntime.jsx("stop",{offset:"50%",stopColor:t,stopOpacity:o}),jsxRuntime.jsx("stop",{offset:"100%",stopColor:t,stopOpacity:0})]}),i&&jsxRuntime.jsx("clipPath",{id:c,children:jsxRuntime.jsx("rect",{x:m[0],y:p[1],width:m[1]-m[0],height:p[0]-p[1]})})]}),i?jsxRuntime.jsx("g",{clipPath:`url(#${c})`,children:jsxRuntime.jsx(framerMotion.motion.g,{initial:{scaleY:0},animate:{scaleY:1},transition:{duration:u.duration,ease:u.ease},style:h,children:x})}):jsxRuntime.jsx("g",{style:h,children:x})]})};var ml=({data:e,color:t="var(--color-viz-default)",opacity:r=1,categoryColors:o={}})=>{let{xScale:n,yScale:a,animationSettings:i}=On(),s=Je.useId(),c=n.range(),l=a.range(),d=[...e].sort((p,f)=>p.xValue.getTime()-f.xValue.getTime());if(d.length===0)return null;let u=d.length>1?d[1].xValue.getTime()-d[0].xValue.getTime():15*6e4,m=Math.abs(n(new Date(d[0].xValue.getTime()+u))-n(d[0].xValue));return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("defs",{children:jsxRuntime.jsx("clipPath",{id:s,children:jsxRuntime.jsx("rect",{x:c[0],y:l[1],width:c[1]-c[0],height:l[0]-l[1]})})}),jsxRuntime.jsx("g",{clipPath:`url(#${s})`,children:jsxRuntime.jsx(framerMotion.motion.g,{initial:{scaleY:0},animate:{scaleY:1},transition:{duration:i.duration,ease:i.ease},style:{transformOrigin:`0 ${a(0)}px`,isolation:"isolate"},children:d.map((p,f)=>{let g=n(p.xValue),y=p.chartYValue??p.yValue,b=p.baselineValue??0,h=a(y),x=a(b),v=Math.min(h,x),S=Math.abs(h-x),w=d[f+1],P=w?Math.abs(n(w.xValue)-g):m,T=p.category&&o[p.category]?o[p.category]:t;return jsxRuntime.jsx(shape.Bar,{x:g-P/2,y:v,width:P,height:S,fill:T,opacity:r,rx:1},p.xValue.getTime())})})})]})};function eT(e){return e>=1e9?"GW":e>=1e6?"MW":e>=1e3?"kW":"W"}function tT(e){return e>=1e3?"kA":e<1?"mA":"A"}function rT(e){return e>=1e3?"kV":e<1?"mV":"V"}function oT(e){return e>=1e6?"M\u03A9":e>=1e3?"k\u03A9":e<1?"m\u03A9":"\u03A9"}function Ga(e,t){if(typeof e!="object"||e===null)return e;switch(e.type){case "energy":{if(e.unit||e.autoScale===false)return e;let r=e.sourceUnit?Td[e.sourceUnit]:1;return {...e,unit:kd(t*r)}}case "power":return e.unit||e.autoScale===false?e:{...e,unit:eT(t)};case "current":return e.unit||e.autoScale===false?e:{...e,unit:tT(t)};case "voltage":return e.unit||e.autoScale===false?e:{...e,unit:rT(t)};case "resistance":return e.unit||e.autoScale===false?e:{...e,unit:oT(t)};default:return e}}var nT=e=>e.baselineValue??0,Oe={top:8,right:0,bottom:50,left:60};function qr(e={type:"number"}){let t=i=>{if(i==null)return "-";let s=ao({value:i,formatter:e});if(s===null)return "-";if(typeof s=="string")return s;if(typeof s=="number")return s.toString();if(typeof s=="object"&&s!==null&&"props"in s){let c=d=>{if(d==null)return "";if(typeof d=="string")return d;if(typeof d=="number")return d.toString();if(typeof d=="object"&&"props"in d){let u=d.props;if(u?.children)return Array.isArray(u.children)?u.children.map(c).join(""):c(u.children)}return ""};return c(s)||i.toString()}return i.toString()},r=i=>{if(i==null)return "-";if(typeof e=="string"){let s=ao({value:i,formatter:e});return s===null?"-":String(s)}if(typeof e=="object"&&e.type)switch(e.type){case "energy":case "power":case "voltage":case "current":case "resistance":case "temperature":case "distance":return t(i);case "currency":return t(i);default:return t(i)}return t(i)},o,n,a;return typeof e=="object"&&e.type&&e.type==="number"&&("min"in e&&(o=e.min),"max"in e&&(n=e.max)),{format:t,tickFormat:r,min:o,max:n,tickInterval:a}}var Bu=(e,t)=>{let r=d3Array.extent(e,o=>o.xValue);return scale.scaleTime({range:[Oe.left,t-Oe.right],domain:r,nice:true})},Di=(e,t,r,o)=>{let n=qr(r);if(o)return scale.scaleLinear({range:[t-Oe.bottom,Oe.top],domain:o,nice:true});let a=d3Array.min(e,l=>Math.min(l.yValue,l.chartYValue??l.yValue,l.baselineValue??l.yValue))||0,i=d3Array.max(e,l=>Math.max(l.yValue,l.chartYValue??l.yValue,l.baselineValue??l.yValue))||0,s=n.min!==void 0?n.min:a>=0?0:a*1.1,c=n.max!==void 0?n.max:i<=0?0:i*1.1;return scale.scaleLinear({range:[t-Oe.bottom,Oe.top],domain:[s,c],nice:true})};function aT(e,t=12,r="system-ui"){if(typeof window>"u"||typeof document>"u")return e.length*(t*.6);let o=document.createElement("canvas"),n=null;try{n=o.getContext("2d");}catch{return e.length*(t*.6)}return n?(n.font=`${t}px ${r}`,n.measureText(e).width):e.length*(t*.6)}function Wa(e,t=12,r="system-ui"){return e.length===0?0:Math.max(...e.map(o=>aT(o,t,r)))}function Ai(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function iT(e,t,r=12,o=false){if(!Ai(t[0])||!Ai(t[1]))return console.warn("ChartAxis: Invalid date in domain, skipping tick calculation"),[];let n=t[0].getTime(),a=t[1].getTime(),i=a-n;if(i===0||i<1e3)return [t[0]];let s=Od({start:t[0],end:t[1]},{compact:o}),l=[t[0],new Date((t[0].getTime()+t[1].getTime())/2),t[1]].map(h=>s(h)),d=Wa(l,r),m=d+d,p=Math.floor(e/m),f=Math.max(2,Math.min(8,p));if(f<=2)return [t[0],t[1]];let g=[t[0]],y=i/36e5,b;y<=1?b=6e4:y<=6?b=5*6e4:y<=48?b=60*6e4:y<=168?b=360*6e4:b=1440*6e4;for(let h=1;h<f-1;h++){let x=h/(f-1),v=n+i*x,S=Math.round(v/b)*b,w=g[g.length-1].getTime(),P=S>w?S:w+b;if(P>=a)break;g.push(new Date(P));}return g.push(t[1]),g}var sT=({top:e,scale:t,width:r})=>{let o=t.domain(),n=[o[0],o[o.length-1]],a=Ai(n[0])&&Ai(n[1]),i=r<400,s=a?n[0].getTime():0,c=a?n[1].getTime():0,l=Je.useMemo(()=>a?Od({start:n[0],end:n[1]},{compact:i}):()=>"",[s,c,i,a]),d=Je.useMemo(()=>iT(r,n,12,i),[r,s,c,i]);return d.length===0?null:jsxRuntime.jsx(axis.Axis,{orientation:"bottom",top:e,scale:t,tickValues:d,tickFormat:u=>{let m=u;return Ai(m)?l(m):""},stroke:"var(--color-border-muted)",tickStroke:"var(--color-border-muted)",tickLabelProps:(u,m,p)=>({fill:"var(--color-text-secondary)",fontSize:12,textAnchor:m===0?"start":m===p.length-1?"end":"middle"}),rangePadding:0})};function Ua(e,t=12){let r=t*2.5,o=Math.floor(e/r);return Math.max(2,Math.min(6,o))}var Vu=12,lT=({left:e,scale:t,yFormatter:r,height:o})=>{let n=qr(r),a=Je.useMemo(()=>!o||o<=0?5:Ua(o),[o]);return jsxRuntime.jsx(axis.Axis,{orientation:"left",left:e,scale:t,numTicks:a,tickFormat:i=>(n.tickFormat||n.format)(i),stroke:"var(--color-border-muted)",tickStroke:"var(--color-border-muted)",tickLabelProps:i=>{let s={fill:"var(--color-text-secondary)",fontSize:Vu,textAnchor:"end"},c=t(i),[l,d]=t.range(),u=Math.min(l,d),m=Math.max(l,d);return c-u<Vu/2?{...s,verticalAnchor:"start"}:m-c<Vu/2?{...s,verticalAnchor:"end"}:{...s,dy:"0.33em"}}})},cT=({top:e,scale:t})=>jsxRuntime.jsx(axis.Axis,{orientation:"bottom",top:e,scale:t,stroke:"var(--color-border-muted)",tickStroke:"var(--color-border-muted)",tickLabelProps:()=>({fill:"var(--color-text-secondary)",fontSize:12,textAnchor:"middle",dy:"0.25em"})}),dT=({left:e,scale:t})=>jsxRuntime.jsx(axis.Axis,{orientation:"left",left:e,scale:t,stroke:"var(--color-border-muted)",tickStroke:"var(--color-border-muted)",tickLabelProps:()=>({fill:"var(--color-text-secondary)",fontSize:12,textAnchor:"end",dx:"-0.25em",dy:"0.33em"})}),uT=({top:e,scale:t,yFormatter:r,width:o})=>{let n=qr(r),a=Je.useMemo(()=>{if(!o||o<=0)return 5;let s=Math.floor(o/60);return Math.max(2,Math.min(8,s))},[o]);return jsxRuntime.jsx(axis.Axis,{orientation:"bottom",top:e,scale:t,numTicks:a,tickFormat:i=>(n.tickFormat||n.format)(i),stroke:"var(--color-border-muted)",tickStroke:"var(--color-border-muted)",tickLabelProps:()=>({fill:"var(--color-text-secondary)",fontSize:12,textAnchor:"middle",dy:"0.25em"})})},zr={Bottom:sT,Left:lT,CategoryBottom:cT,CategoryLeft:dT,NumericBottom:uT};var ln=({data:e,formatter:t,label:r,categoryLabels:o})=>{if(!e)return null;let n=Je__namespace.default.useContext(Vr),a=o??n?.categoryLabels,i=n?.xScale,s=n?.width,c=n?.height,l=qr(t),d=h=>{if(h.baselineValue===void 0)return l.format(h.value);let x=Math.min(h.baselineValue,h.value),v=Math.max(h.baselineValue,h.value);return `${l.format(x)} \u2013 ${l.format(v)}`},u=Je__namespace.default.useRef(null),[m,p]=Je__namespace.default.useState({x:0,y:0,translate:"translate(-50%, -100%)"});Je__namespace.default.useEffect(()=>{if(!u.current)return;let x=u.current.getBoundingClientRect(),v=s??window.innerWidth,S=c??window.innerHeight,w=e.x,P=e.y,T=16,k=e.x+x.width+T<=v,R=e.x-x.width-T>=0,I;e.position==="left"?I=R||!k:I=!k&&R;let E=I?"translate(calc(-100% - 16px), -50%)":"translate(16px, -50%)";if(!k&&!R){let L=v-e.x,M=e.x;L<=M?(w=v,E="translate(-100%, -50%)"):(w=0,E="translate(0, -50%)");}P-x.height/2<0?P=x.height/2:P+x.height/2>S&&(P=S-x.height/2),p({x:w,y:P,translate:E});},[e.x,e.y,e.position,s,c]);let f=i?.domain(),y=f&&f.length===2&&f.every(h=>h instanceof Date)?Ef({start:f[0],end:f[1]}):null,b=r||(y&&e.xValue instanceof Date?y(e.xValue):String(e.xValue));return jsxRuntime.jsx(framerMotion.AnimatePresence,{children:jsxRuntime.jsxs(framerMotion.motion.div,{ref:u,role:"tooltip","aria-live":"polite",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},"data-testid":"tooltip",className:"pointer-events-none absolute z-50 rounded-lg bg-background-surface p-4 text-sm shadow-xl ring-1 ring-border-default whitespace-nowrap",style:{left:m.x,top:m.y,transform:m.translate},children:[jsxRuntime.jsx("div",{className:"mb-1 font-medium text-text-primary",children:b}),e.isEvent?jsxRuntime.jsxs("div",{className:"space-y-2",children:[e.series.length>1&&jsxRuntime.jsx("ul",{className:"list-none p-0 border-b border-border-default pb-2",children:e.series.slice(0,-1).map(h=>jsxRuntime.jsxs("li",{className:"py-0.5",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsxs("span",{className:"font-medium text-text-primary",children:[h.label,":"]}),jsxRuntime.jsx("span",{className:"text-text-secondary",children:d(h)})]}),h.category&&jsxRuntime.jsxs("div",{className:"mt-0.5 flex items-center gap-2",children:[jsxRuntime.jsx("div",{className:"h-3 w-3",style:{backgroundColor:h.categoryColor||h.color,borderRadius:"1px"}}),jsxRuntime.jsx("span",{className:"text-sm text-text-secondary",children:a?.[h.category]||h.category})]}),h.extraTooltipRows&&h.extraTooltipRows.length>0&&jsxRuntime.jsx("div",{className:"mt-0.5 space-y-0.5",children:h.extraTooltipRows.map(x=>jsxRuntime.jsxs("div",{className:"flex items-center gap-2 text-sm text-text-secondary",children:[jsxRuntime.jsxs("span",{children:[x.label,":"]}),jsxRuntime.jsx("span",{className:"font-medium text-text-primary",children:x.value})]},x.label))})]},h.label))}),(()=>{let h=e.series[e.series.length-1],x=e.eventItems?.length?e.eventItems:[{label:h.label,color:h.color,metadata:e.eventMetadata}];return jsxRuntime.jsx("div",{className:"space-y-2",children:x.map((v,S)=>jsxRuntime.jsxs("div",{children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("div",{className:"h-2 w-2 rounded-full",style:{backgroundColor:v.color}}),jsxRuntime.jsx("span",{className:"font-medium text-text-primary",children:v.label})]}),v.metadata&&Object.keys(v.metadata).length>0&&jsxRuntime.jsx("div",{className:"ml-4 mt-1 space-y-0.5 text-xs text-text-secondary",children:Object.entries(v.metadata).map(([w,P])=>jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsxs("span",{className:"capitalize",children:[w,":"]}),jsxRuntime.jsx("span",{className:"font-medium",children:P})]},w))})]},`${v.label}-${S}`))})})()]}):jsxRuntime.jsx("ul",{className:"list-none p-0",children:e.series.map(h=>jsxRuntime.jsxs("li",{className:"py-0.5",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsxs("span",{className:"font-medium text-text-primary",children:[h.label,":"]}),jsxRuntime.jsx("span",{className:"text-text-secondary",children:d(h)})]}),h.category&&jsxRuntime.jsxs("div",{className:"mt-0.5 flex items-center gap-2",children:[jsxRuntime.jsx("div",{className:"h-3 w-3",style:{backgroundColor:h.categoryColor||h.color,borderRadius:"1px"}}),jsxRuntime.jsx("span",{className:"text-sm text-text-secondary",children:a?.[h.category]||h.category})]}),h.extraTooltipRows&&h.extraTooltipRows.length>0&&jsxRuntime.jsx("div",{className:"mt-0.5 space-y-0.5",children:h.extraTooltipRows.map(x=>jsxRuntime.jsxs("div",{className:"flex items-center gap-2 text-sm text-text-secondary",children:[jsxRuntime.jsxs("span",{children:[x.label,":"]}),jsxRuntime.jsx("span",{className:"font-medium text-text-primary",children:x.value})]},x.label))})]},h.label))})]})})};var vT={top:20,right:20,bottom:50,left:60},bb=({data:e,width:t,height:r,margin:o=vT,color:n,yFormatter:a={type:"number"},showGrid:i=true,showAxes:s=true,animate:c=true,barRadius:l=4,barPadding:d=.3,onBarClick:u,onBarHover:m,activeIndex:p,className:f,style:g,"aria-label":y,orientation:b="horizontal",showTooltip:h=true})=>{let[x,v]=Je.useState(null),[S,w]=Je.useState(null),[P,T]=Je.useState(null),[k,R]=Je.useState(t??600),[I,E]=Je.useState(r??300),L=Je.useRef(null),M=p??x,F=Je.useId(),z=n||"var(--color-viz-default)";Je.useEffect(()=>{if(t!==void 0&&r!==void 0){R(t),E(r);return}if(!L.current)return;let H=new ResizeObserver(A=>{for(let G of A)t===void 0&&R(G.contentRect.width),r===void 0&&E(G.contentRect.height);});return H.observe(L.current),t===void 0&&R(L.current.offsetWidth),r===void 0&&E(L.current.offsetHeight||300),()=>{H.disconnect();}},[t,r]);let{xScale:W,yScale:X,innerWidth:Z,innerHeight:O}=Je.useMemo(()=>{let H=k-o.left-o.right,A=I-o.top-o.bottom;if(b==="horizontal"){let N=d3Array.max(e,C=>C.value)||0;return {xScale:scale.scaleLinear({range:[0,H],domain:[0,N*1.1],nice:true}),yScale:scale.scaleBand({range:[0,A],domain:e.map(C=>C.label),padding:d}),innerWidth:H,innerHeight:A}}let G=d3Array.max(e,N=>N.value)||0;return {xScale:scale.scaleBand({range:[0,H],domain:e.map(N=>N.label),padding:d}),yScale:scale.scaleLinear({range:[A,0],domain:[0,G*1.1],nice:true}),innerWidth:H,innerHeight:A}},[e,k,I,o,d,b]);if(e.length===0)return jsxRuntime.jsx("div",{ref:L,className:tailwindMerge.twMerge("flex h-full min-h-[200px] w-full items-center justify-center rounded-lg border border-dashed border-border-default bg-background-surface text-sm font-medium text-text-secondary",f),style:r!==void 0?{height:r,...g}:g,children:"No data available"});let j=(H,A)=>{if(v(H),m?.(A,H),H!==null&&A){let G,N;if(b==="horizontal"){let D=W(A.value),B=X(A.label)||0,Y=X.bandwidth();G=o.left+D,N=o.top+B+Y/2;}else {let D=W,B=X,Y=D(A.label)??0,re=D.bandwidth(),ue=B(A.value);G=o.left+Y+re/2,N=o.top+ue;}let C=G>k/2;T(A.label),w({xValue:new Date,series:[{label:"Value",value:A.value,color:A.color||z}],x:G,y:N,position:C?"left":"right"});}else w(null),T(null);};return jsxRuntime.jsxs("div",{ref:L,className:tailwindMerge.twMerge("relative h-full w-full overflow-hidden rounded-lg bg-background-surface",f),style:r!==void 0?{height:r,...g}:g,"aria-label":y,role:"img",children:[jsxRuntime.jsxs("svg",{width:k,height:I,children:[jsxRuntime.jsx("defs",{children:jsxRuntime.jsx(gradient.LinearGradient,{id:`${F}-bar`,from:z,to:z,toOpacity:.85})}),jsxRuntime.jsxs(group.Group,{left:o.left,top:o.top,children:[i&&jsxRuntime.jsx("g",{className:"grid-lines",children:(b==="horizontal"?W.ticks(5):X.ticks(5)).map(H=>{let A=b==="horizontal"?0:X(H),G=b==="horizontal"?W(H):0;return jsxRuntime.jsx("line",{x1:b==="horizontal"?G:0,y1:b==="horizontal"?0:A,x2:b==="horizontal"?G:Z,y2:b==="horizontal"?O:A,stroke:"var(--color-border-default)",strokeOpacity:.5,strokeDasharray:"2,3"},H)})}),e.map((H,A)=>{let G=M===A||M==null,N=H.color||`url(#${F}-bar)`;if(b==="horizontal"){let $=W(H.value),se=X.bandwidth(),He=X(H.label)||0;return jsxRuntime.jsx(framerMotion.motion.rect,{x:0,y:He,width:$,height:se,fill:N,rx:l,ry:l,initial:c?{width:0,opacity:.5}:void 0,animate:{width:$,opacity:G?1:.5},transition:{duration:.5,delay:A*.05,ease:"easeOut",opacity:{duration:.15,delay:0}},style:{cursor:u||m?"pointer":"default"},onMouseEnter:()=>j(A,H),onMouseLeave:()=>j(null,null),onClick:()=>u?.(H,A)},H.label)}let C=W,D=X,B=C.bandwidth(),Y=C(H.label)??0,re=D(H.value),ue=Math.max(0,O-re);return c?jsxRuntime.jsx(framerMotion.motion.rect,{x:Y,width:B,fill:N,rx:l,ry:l,initial:{y:O,height:0,opacity:.5},animate:{y:re,height:ue,opacity:G?1:.5},transition:{duration:.5,delay:A*.05,ease:"easeOut",opacity:{duration:.15,delay:0}},style:{cursor:u||m?"pointer":"default"},onMouseEnter:()=>j(A,H),onMouseLeave:()=>j(null,null),onClick:()=>u?.(H,A)},H.label):jsxRuntime.jsx("rect",{x:Y,y:re,width:B,height:ue,fill:N,rx:l,ry:l,opacity:G?1:.5,style:{cursor:u||m?"pointer":"default",transition:"opacity 150ms ease-out"},onMouseEnter:()=>j(A,H),onMouseLeave:()=>j(null,null),onClick:()=>u?.(H,A)},H.label)}),s&&b==="vertical"&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(zr.CategoryBottom,{top:O,scale:W}),jsxRuntime.jsx(zr.Left,{left:0,scale:X,yFormatter:a,height:O})]}),s&&b==="horizontal"&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(zr.NumericBottom,{top:O,scale:W,yFormatter:a,width:Z}),jsxRuntime.jsx(zr.CategoryLeft,{left:0,scale:X})]})]})]}),h&&jsxRuntime.jsx(ln,{data:S,formatter:a,label:P??void 0})]})};var xb=({item:e,onToggle:t})=>{let r=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:"h-3 w-3 shrink-0",style:{backgroundColor:e.fill,borderRadius:"1px",opacity:e.isHidden?.35:1}}),jsxRuntime.jsx("span",{className:`text-sm whitespace-nowrap ${e.isHidden?"text-text-disabled line-through":"text-text-secondary"}`,children:e.category})]});return t?jsxRuntime.jsx("button",{type:"button",className:"flex items-center gap-2 shrink-0 rounded-sm focus:outline-none focus:ring-2 focus:ring-border-focus disabled:cursor-not-allowed disabled:opacity-60","aria-pressed":!e.isHidden,"aria-label":`${e.isHidden?"Show":"Hide"} ${e.category}`,disabled:e.isDisabled,onClick:()=>t(e.category),children:r}):jsxRuntime.jsx("div",{className:"flex items-center gap-2 shrink-0",children:r})},wT=({items:e,onToggle:t})=>e.length===0?null:jsxRuntime.jsx("div",{className:"flex items-center gap-3 flex-wrap",children:e.map(r=>jsxRuntime.jsx(xb,{item:r,onToggle:t},r.category))}),Ya=({items:e,onExport:t,marginLeft:r=0,marginRight:o=0,isZoomed:n=false,onResetZoom:a,onLegendItemToggle:i})=>{let[s,c]=Je__namespace.default.useState(false),[l,d]=Je__namespace.default.useState(null),[u,m]=Je__namespace.default.useState(false),[p,f]=Je__namespace.default.useState(false),g=Je__namespace.default.useCallback(async b=>{c(true),d(b),f(false);try{await t(b);}catch(h){console.error("Export failed:",h);}finally{c(false),d(null);}},[t]),y=Je__namespace.default.useCallback(async b=>{await g(b);},[g]);return jsxRuntime.jsxs("div",{className:"mt-4 flex items-center justify-between gap-3 min-h-[32px]",style:{marginLeft:r,marginRight:o},children:[jsxRuntime.jsx("div",{className:"hidden sm:block flex-1 min-w-0",children:jsxRuntime.jsx(wT,{items:e,onToggle:i})}),jsxRuntime.jsx("div",{className:"sm:hidden flex items-center gap-3",children:e.length>0&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{onClick:()=>m(true),className:"text-sm text-text-secondary hover:text-text-primary transition-colors underline decoration-dotted underline-offset-4",children:"Legend"}),jsxRuntime.jsx(bt,{isOpen:u,onClose:()=>m(false),title:"Legend",children:jsxRuntime.jsx("div",{className:"grid grid-cols-1 gap-3 p-4",children:e.map(b=>jsxRuntime.jsx(xb,{item:b,onToggle:i},b.category))})})]})}),jsxRuntime.jsxs("div",{className:"sm:hidden flex items-center gap-2 shrink-0",children:[n&&a&&jsxRuntime.jsx(_,{variant:"secondary",size:"sm",onPress:a,children:jsxRuntime.jsx(V,{name:"ArrowsOut",size:16})}),jsxRuntime.jsx(_,{variant:"secondary",size:"sm",onPress:()=>f(true),isDisabled:s,children:jsxRuntime.jsx(V,{name:"Export",size:16})}),jsxRuntime.jsx(bt,{isOpen:p,onClose:()=>f(false),title:"Export Chart",contentPadding:false,children:jsxRuntime.jsxs("div",{className:"flex flex-col",children:[jsxRuntime.jsxs("button",{onClick:()=>g("csv"),disabled:s,className:"flex items-center gap-3 px-6 py-4 text-left hover:bg-background-hover active:bg-background-muted transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:[jsxRuntime.jsx(V,{name:"List",size:20,className:"text-text-secondary"}),jsxRuntime.jsx("span",{className:"text-sm text-text-primary",children:l==="csv"?"Exporting...":"Export as CSV"})]}),jsxRuntime.jsxs("button",{onClick:()=>g("svg"),disabled:s,className:"flex items-center gap-3 px-6 py-4 text-left hover:bg-background-hover active:bg-background-muted transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:[jsxRuntime.jsx(V,{name:"Code",size:20,className:"text-text-secondary"}),jsxRuntime.jsx("span",{className:"text-sm text-text-primary",children:l==="svg"?"Exporting...":"Export as SVG"})]}),jsxRuntime.jsxs("button",{onClick:()=>g("png"),disabled:s,className:"flex items-center gap-3 px-6 py-4 text-left hover:bg-background-hover active:bg-background-muted transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:[jsxRuntime.jsx(V,{name:"DownloadSimple",size:20,className:"text-text-secondary"}),jsxRuntime.jsx("span",{className:"text-sm text-text-primary",children:l==="png"?"Exporting...":"Export as PNG"})]})]})})]}),jsxRuntime.jsxs("div",{className:"hidden sm:flex items-center gap-2 shrink-0",children:[n&&a&&jsxRuntime.jsxs(_,{variant:"secondary",size:"sm",onPress:a,children:[jsxRuntime.jsx(V,{name:"ArrowsOut",size:16}),jsxRuntime.jsx("span",{className:"hidden sm:inline",children:"Reset Zoom"})]}),jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{children:[jsxRuntime.jsxs(_,{variant:"secondary",size:"sm",isDisabled:s,children:[jsxRuntime.jsx(V,{name:"Export",size:16}),s?"Exporting...":"Export"]}),jsxRuntime.jsx(gt,{placement:"top end",className:"min-w-48 p-1 bg-background-surface rounded-lg shadow-xl ring-1 ring-border-default",children:jsxRuntime.jsxs(reactAriaComponents.Menu,{onAction:y,className:"outline-none",children:[jsxRuntime.jsx(reactAriaComponents.MenuItem,{id:"csv",className:"flex items-center gap-2 px-3 py-2 text-sm text-text-primary rounded cursor-pointer hover:bg-background-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus focus-visible:ring-offset-1 focus-visible:ring-offset-background-surface data-[focused]:bg-background-hover data-[focused]:ring-2 data-[focused]:ring-border-focus data-[focused]:ring-offset-1 data-[focused]:ring-offset-background-surface",isDisabled:s,children:jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(V,{name:"List",size:14}),l==="csv"?"Exporting...":"Export as CSV"]})}),jsxRuntime.jsx(reactAriaComponents.MenuItem,{id:"svg",className:"flex items-center gap-2 px-3 py-2 text-sm text-text-primary rounded cursor-pointer hover:bg-background-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus focus-visible:ring-offset-1 focus-visible:ring-offset-background-surface data-[focused]:bg-background-hover data-[focused]:ring-2 data-[focused]:ring-border-focus data-[focused]:ring-offset-1 data-[focused]:ring-offset-background-surface",isDisabled:s,children:jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(V,{name:"Code",size:14}),l==="svg"?"Exporting...":"Export as SVG"]})}),jsxRuntime.jsx(reactAriaComponents.MenuItem,{id:"png",className:"flex items-center gap-2 px-3 py-2 text-sm text-text-primary rounded cursor-pointer hover:bg-background-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus focus-visible:ring-offset-1 focus-visible:ring-offset-background-surface data-[focused]:bg-background-hover data-[focused]:ring-2 data-[focused]:ring-border-focus data-[focused]:ring-offset-1 data-[focused]:ring-offset-background-surface",isDisabled:s,children:jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(V,{name:"DownloadSimple",size:14}),l==="png"?"Exporting...":"Export as PNG"]})})]})})]})]})]})};var bl=Pm(Gu());var yb=["stroke","fill","color","stop-color","flood-color","lighting-color"],vb=/var\s*\(/;function Cb(e,t){let r=[e,...Array.from(e.querySelectorAll("*"))],o=[t,...Array.from(t.querySelectorAll("*"))],n=Math.min(r.length,o.length);for(let a=0;a<n;a++){let i=r[a],s=o[a];if(!(i instanceof Element)||!(s instanceof Element))continue;let c=window.getComputedStyle(i);for(let l of yb){let d=s.getAttribute(l);if(d&&vb.test(d)){let u=c.getPropertyValue(l);u&&s.setAttribute(l,u.trim());}}if(s instanceof HTMLElement||s instanceof SVGElement)for(let l of yb){let d=l,u=s.style.getPropertyValue(d);if(u&&vb.test(u)){let m=c.getPropertyValue(d);m&&s.style.setProperty(d,m.trim());}}}}function Wu(e,t,r=true){let o=e||"chart";if(r){let n=new Date().toISOString().replace(/[:.]/g,"-").slice(0,-5);return `${o}-${n}.${t}`}return `${o}.${t}`}async function Uu(e,t,r={},o){let n=Array.isArray(t[0])?t:[t];try{switch(e){case "csv":await kT(n,r);break;case "svg":await TT(o,r);break;case "png":await PT(o,r);break;default:throw new Error(`Unsupported export type: ${e}`)}}catch(a){throw console.error("Export failed:",a),new Error(`Failed to export chart as ${e}: ${a instanceof Error?a.message:"Unknown error"}`)}}async function kT(e,t){try{let r=t.yFormat?zd(t.yFormat):null,o=t.yFormat,n=m=>{if(m==null||m==="")return "";if(!o)return typeof m=="number"?m:String(m);let p=Rf(m,o);return p===null?typeof m=="number"?m:String(m):p},a=new Map;e.forEach(m=>{m.forEach(p=>{let f=p.xValue.getTime();a.has(f)||a.set(f,p.xValue);});});let i=Array.from(a.values()).sort((m,p)=>m.getTime()-p.getTime()),s=e.map((m,p)=>{let f=t.seriesLabels?.[p]||`Series ${p+1}`;return r&&!f.includes(`(${r})`)?`${f} (${r})`:f}),c=i.map(m=>{let p={[t.xLabel||"Date"]:m.toLocaleString("en-US",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"})};return e.forEach((f,g)=>{let y=s[g],b=f.find(h=>h.xValue.getTime()===m.getTime());p[y]=b?n(b.yValue):"",b?.category&&(p[`${y} Category`]=b.category);}),p}),l=NT__default.default.unparse(c,{header:!0,skipEmptyLines:!0}),d=new Blob([l],{type:"text/csv;charset=utf-8;"}),u=Wu(t.filename||"chart-data","csv",t.timestamp!==!1);(0,bl.saveAs)(d,u);}catch(r){throw new Error(`CSV export failed: ${r instanceof Error?r.message:"Unknown error"}`)}}async function TT(e,t){if(!e.current)throw new Error("SVG element not found");try{let r=e.current,o=r.cloneNode(!0);if(Cb(r,o),!o.querySelector("rect[data-background]")){let l=document.createElementNS("http://www.w3.org/2000/svg","rect");l.setAttribute("width",o.getAttribute("width")||"100%"),l.setAttribute("height",o.getAttribute("height")||"100%"),l.setAttribute("fill","white"),l.setAttribute("data-background","true"),o.insertBefore(l,o.firstChild);}let i=new XMLSerializer().serializeToString(o);i.includes("<?xml")||(i=`<?xml version="1.0" encoding="UTF-8"?>
|
|
28
|
+
`+i),i.includes("xmlns=")||(i=i.replace("<svg",'<svg xmlns="http://www.w3.org/2000/svg"'));let s=new Blob([i],{type:"image/svg+xml;charset=utf-8"}),c=Wu(t.filename||"chart","svg",t.timestamp!==!1);(0,bl.saveAs)(s,c);}catch(r){throw new Error(`SVG export failed: ${r instanceof Error?r.message:"Unknown error"}`)}}async function PT(e,t,r=2){if(!e.current)throw new Error("SVG element not found");let o="";try{let n=e.current,a=n.getBoundingClientRect(),i=n.cloneNode(!0);Cb(n,i),i.setAttribute("width",String(a.width)),i.setAttribute("height",String(a.height)),i.removeAttribute("transform");let s=i.getElementsByTagName("text");Array.from(s).forEach(m=>{m.style.fontFamily||(m.style.fontFamily="system-ui, -apple-system, sans-serif"),m.style.fontSize||(m.style.fontSize="12px");});let c=document.createElementNS("http://www.w3.org/2000/svg","rect");c.setAttribute("width",String(a.width)),c.setAttribute("height",String(a.height)),c.setAttribute("fill","white"),i.insertBefore(c,i.firstChild);let d=new XMLSerializer().serializeToString(i);d.includes("xmlns=")||(d=d.replace("<svg",'<svg xmlns="http://www.w3.org/2000/svg"'));let u=new Blob([d],{type:"image/svg+xml;charset=utf-8"});return o=URL.createObjectURL(u),new Promise((m,p)=>{let f=new Image,g=setTimeout(()=>{o&&URL.revokeObjectURL(o),p(new Error("Image loading timeout"));},1e4);f.onload=()=>{clearTimeout(g);try{let y=document.createElement("canvas");y.width=a.width*r,y.height=a.height*r;let b=y.getContext("2d");if(!b)throw new Error("Canvas context not available");b.imageSmoothingEnabled=!0,b.imageSmoothingQuality="high",b.scale(r,r),b.fillStyle="white",b.fillRect(0,0,a.width,a.height),b.drawImage(f,0,0,a.width,a.height),y.toBlob(h=>{if(h){let x=Wu(t.filename||"chart","png",t.timestamp!==!1);(0,bl.saveAs)(h,x),m();}else p(new Error("Failed to create PNG blob"));o&&URL.revokeObjectURL(o);},"image/png",1);}catch(y){o&&URL.revokeObjectURL(o),p(y);}},f.onerror=()=>{clearTimeout(g),o&&URL.revokeObjectURL(o),p(new Error("Failed to load SVG as image"));},f.src=o;})}catch(n){throw o&&URL.revokeObjectURL(o),new Error(`PNG export failed: ${n instanceof Error?n.message:"Unknown error"}`)}}function RT(e){if(typeof window>"u")return false;switch(e){case "csv":return true;case "svg":return typeof XMLSerializer<"u";case "png":return typeof HTMLCanvasElement<"u"&&typeof HTMLCanvasElement.prototype.toBlob=="function";default:return false}}function ET(e){return {csv:"CSV Spreadsheet",svg:"SVG Vector Image",png:"PNG Image"}[e]||"Unknown Format"}function xl({datasets:e,metadata:t,svgRef:r}){return Je.useCallback(async o=>{try{await Uu(o,e,t,r);}catch(n){throw console.error("Chart export failed:",n),n}},[e,t,r])}var Ku=({data:e,seriesMetadata:t,width:r,height:o,onBrushChange:n,brushRegion:a,margin:i=Oe,yDomain:s})=>{let c=Je.useRef(null),l=Je.useRef(false),d=Je.useMemo(()=>e.flat(),[e]),u=Je.useMemo(()=>({top:10,bottom:15,left:i.left,right:i.right}),[i]),m=r-u.left-u.right,p=Je.useMemo(()=>{if(d.length===0)return scale.scaleTime({domain:[new Date,new Date],range:[0,m]});let h=new Date(Math.min(...d.map(v=>v.xValue.getTime()))),x=new Date(Math.max(...d.map(v=>v.xValue.getTime())));return scale.scaleTime({domain:[h,x],range:[0,m]})},[d,m]),f=Je.useMemo(()=>{let h=d.length>0?Math.max(0,...d.map(x=>x.yValue)):1;return scale.scaleLinear({domain:s??[0,h],range:[o-u.bottom,u.top]})},[d,o,s,u.top,u.bottom]),g=h=>{if(l.current)return;if(!h){n(null);return}let{x0:x,x1:v}=h;if(x===v)return;let S=new Date(x),w=new Date(v);if(!(Number.isNaN(S.getTime())||Number.isNaN(w.getTime()))){if(d.length>0){let P=Math.min(...d.map(E=>E.xValue.getTime())),T=Math.max(...d.map(E=>E.xValue.getTime())),R=(T-P)*.05;if(Math.abs(S.getTime()-P)<R&&Math.abs(w.getTime()-T)<R){n(null);return}}n([S,w]);}},y=Je.useMemo(()=>{if(d.length!==0)return {start:{x:0,y:u.top},end:{x:m,y:o-u.bottom}}},[m,o,d]);Je.useEffect(()=>{if(!c.current||d.length===0)return;let h=c.current.state;if(h?.isBrushing||h?.activeHandle)return;let x=Math.min(...d.map(k=>k.xValue.getTime())),v=Math.max(...d.map(k=>k.xValue.getTime())),S=a?a[0]:new Date(x),w=a?a[1]:new Date(v),P=c.current.state?.extent;if(P){let k=p.invert(P.x0),R=p.invert(P.x1),I=Math.abs(k.getTime()-S.getTime()),E=Math.abs(R.getTime()-w.getTime());if(I<1e3&&E<1e3)return}l.current=true;let T=k=>{let R=c.current.getExtent({x:p(S),y:u.top},{x:p(w),y:o-u.bottom});return {...k,start:{y:R.y0,x:R.x0},end:{y:R.y1,x:R.x1},extent:R}};c.current.updateBrush(T),setTimeout(()=>{l.current=false;},50);},[a,p,o,d]);let b={fill:"url(#brush_pattern)",fillOpacity:.15,stroke:"var(--color-border-focus)",strokeWidth:1.5,strokeOpacity:.3};return jsxRuntime.jsx("div",{className:"mt-2",children:jsxRuntime.jsxs("svg",{width:r,height:o,children:[jsxRuntime.jsx(pattern.PatternLines,{id:"brush_pattern",height:8,width:8,stroke:"var(--color-text-secondary)",strokeWidth:1,orientation:["diagonal"]}),jsxRuntime.jsxs("g",{transform:`translate(${u.left}, 0)`,children:[e.map((h,x)=>jsxRuntime.jsx(shape.LinePath,{data:h,x:v=>p(v.xValue),y:v=>f(v.yValue),stroke:t[x]?.color||"var(--color-gray-500)",strokeWidth:1.5,opacity:.8},`brush-series-${x}`)),jsxRuntime.jsx(brush.Brush,{xScale:p,yScale:f,width:m,height:o-u.top-u.bottom,margin:{top:u.top,bottom:u.bottom,left:0,right:0},handleSize:8,innerRef:c,resizeTriggerAreas:["left","right"],brushDirection:"horizontal",initialBrushPosition:y,onChange:g,onClick:()=>n(null),selectedBoxStyle:b,useWindowMoveEvents:true})]})]})})};function Io(e){switch(e){case "command":return Dt("--color-action-brand","#111111");case "success":return Dt("--color-feedback-success-border","#278a4a");case "warning":return Dt("--color-feedback-warning-border","#c88420");case "error":return Dt("--color-feedback-error-border","#c42d2d");case "alert":return Dt("--color-feedback-warning-border","#c88420");default:return Dt("--color-text-secondary","#525250")}}function yl({events:e,color:t,showLabels:r=false}){let o=Je.useContext(Vr),[n,a]=Je.useState(null);if(!o)return console.warn("ChartEventMarkers must be used within a ChartContainer"),null;let{xScale:i,yScale:s,height:c,tooltip:l,datasets:d,seriesMetadata:u,seriesTypes:m,categoryColors:p}=o,f=e.filter(b=>{let h=i(b.timestamp);return h>=Oe.left&&h<=i.range()[1]}),g=Je.useCallback((b,h)=>{a(h);let x=i(b.timestamp),v=x>(i.range()[1]-Oe.right-Oe.left)/2+Oe.left,S=[];d&&u&&d.forEach((T,k)=>{if(T.length===0)return;let R=d3Array.bisector(F=>F.xValue).left,I=R(T,b.timestamp),E=T[I-1],L=T[I],M;if(!E)M=L;else if(!L)M=E;else {let F=Math.abs(b.timestamp.getTime()-E.xValue.getTime()),z=Math.abs(b.timestamp.getTime()-L.xValue.getTime());M=F<z?E:L;}M&&u[k]&&S.push({label:u[k].label,value:M.yValue,color:u[k].color,type:m?.[k]||"line",...M.category&&{category:M.category,categoryColor:p?.[M.category]}});});let P=f.filter(T=>Math.abs(i(T.timestamp)-x)<=10).map(T=>({label:T.label,color:t||Io(T.type),metadata:T.metadata}));S.push({label:P.length>1?`${P.length} events`:b.label,value:0,color:t||Io(b.type),type:"event"}),l.show({xValue:b.timestamp,series:S,x,y:S.length>1&&typeof S[0].value=="number"?s(S[0].value):c/2,position:v?"left":"right",isEvent:true,eventMetadata:b.metadata,eventItems:P});},[i,s,c,l,t,d,u,m,p,f]),y=Je.useCallback(()=>{a(null),l.hide();},[l]);return f.length===0?null:jsxRuntime.jsx("g",{className:"chart-event-markers","data-testid":"chart-event-markers",children:f.map((b,h)=>{let x=i(b.timestamp),v=t||Io(b.type),S=n===h;return jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("line",{x1:x,y1:Oe.top,x2:x,y2:c-Oe.bottom,stroke:v,strokeWidth:S?3:2,strokeDasharray:"4 4",strokeOpacity:S?.9:.6,pointerEvents:"none"}),jsxRuntime.jsx("circle",{cx:x,cy:Oe.top,r:S?5:4,fill:v,stroke:"var(--color-background-surface)",strokeWidth:2,pointerEvents:"none"}),jsxRuntime.jsx("circle",{cx:x,cy:c-Oe.bottom,r:S?5:4,fill:v,stroke:"var(--color-background-surface)",strokeWidth:2,pointerEvents:"none"}),r&&jsxRuntime.jsx("text",{x,y:Oe.top-8,textAnchor:"middle",fill:"var(--color-text-secondary)",fontSize:11,fontWeight:500,pointerEvents:"none",children:b.label}),jsxRuntime.jsx("rect",{x:x-10,y:Oe.top,width:20,height:c-Oe.top-Oe.bottom,fill:"transparent",style:{cursor:"pointer"},onMouseEnter:()=>g(b,h),onMouseLeave:y})]},`${b.timestamp.getTime()}-${h}`)})})}function vl({spans:e,opacity:t=.25,color:r}){let o=Je.useContext(Vr),[n,a]=Je.useState(null),i=o?.xScale,s=o?.height,c=o?.tooltip,[l,d]=i?.domain()??[new Date(0),new Date(0)],[u,m]=i?.range()??[0,0],p=Je.useCallback((S,w)=>{if(!i||!c)return;a(w);let P=S.start<l?l:S.start,T=S.end>d?d:S.end,k=(i(P)+i(T))/2,R=k>(m-u)/2+u,E=e.filter(L=>L.end>L.start&&L.start<S.end&&L.end>S.start).map(L=>({label:L.label,color:L.color??r??Io(L.type),metadata:L.metadata}));c.show({xValue:S.start,series:[{label:E.length>1?`${E.length} scheduled commands`:S.label,value:0,color:S.color??r??Io(S.type),type:"event"}],x:k,y:(s??0)/2,position:R?"left":"right",isEvent:true,eventMetadata:S.metadata,eventItems:E});},[i,s,c,r,l,d,u,m,e]),f=Je.useCallback(()=>{a(null),c?.hide();},[c]);if(!o)return console.warn("ChartEventSpans must be used within a ChartContainer"),null;let{xScale:g,height:y}=o,b=Oe.top,x=y-Oe.bottom-b,v=e.filter(S=>S.end>S.start);return v.length===0?null:jsxRuntime.jsx("g",{className:"chart-event-spans","data-testid":"chart-event-spans",children:v.map((S,w)=>{let P=S.start<l?l:S.start,T=S.end>d?d:S.end;if(P>=d||T<=l)return null;let k=g(P),I=g(T)-k;if(I<=0)return null;let E=S.color??r??Io(S.type);return jsxRuntime.jsx("rect",{x:k,y:b,width:I,height:x,fill:E,fillOpacity:n===w?Math.min((t??.25)*1.8,1):t??.25,pointerEvents:"all",style:{cursor:"pointer"},onMouseEnter:()=>p(S,w),onMouseLeave:f},`${S.start.getTime()}-${S.end.getTime()}-${w}`)})})}var Eb=Je.createContext(false);function JT({children:e}){return jsxRuntime.jsx(Eb.Provider,{value:true,children:e})}function Oi(e){let t=Je.useContext(Eb),[r,o]=Je.useState(false),[n,a]=Je.useState(null),i=Je.useRef(null),s=Je.useCallback(u=>{if(i.current?.disconnect(),i.current=null,!u||typeof ResizeObserver>"u")return;let m=new ResizeObserver(([p])=>{if(!p)return;let{width:f,height:g}=p.contentRect;a(y=>y&&y.width===f&&y.height===g?y:{width:f,height:g});});m.observe(u),i.current=m;},[]);Je.useEffect(()=>()=>i.current?.disconnect(),[]);let c=Je.useCallback(()=>{o(false),a(null);},[]),l=t?null:jsxRuntime.jsx(_,{variant:"icon",size:"sm",icon:"ArrowsOutSimple","aria-label":`Expand ${e} chart`,onPress:()=>o(true)}),d=Je.useCallback(u=>r&&!t?jsxRuntime.jsx(sr,{isOpen:true,onClose:c,title:e,contentPadding:false,maxWidth:"min(1200px, 100vw)",minWidth:"min(360px, 100vw)",height:"82vh",mobileHeight:"82vh",children:jsxRuntime.jsx("div",{ref:s,className:"h-full w-full p-4",children:u})}):u,[r,t,c,e,s]);return {isExpanded:r,action:l,expandedSize:n,present:d}}var Hn=({data:e,color:t="var(--color-viz-default)",strokeWidth:r=3,strokeDasharray:o,categoryColors:n={},maxGapMs:a,animate:i=true})=>{let{xScale:s,yScale:c,animationSettings:l}=On(),d=c.range(),u=Object.keys(n).length>0,m=x=>x.category?n[x.category]??t:t,p=x=>x.chartYValue??x.yValue,f=e.length===1?e[0]:void 0,g=a!=null?ul(e,a):e,y=i?void 0:"non-scaling-stroke",b=f?jsxRuntime.jsx("circle",{cx:s(f.xValue),cy:c(p(f)),r,fill:u?m(f):t}):u?e.slice(0,-1).map((x,v)=>{let S=e[v+1];return a!=null&&a>0&&S.xValue.getTime()-x.xValue.getTime()>a?null:jsxRuntime.jsx(shape.LinePath,{data:[x,S],x:w=>s(w.xValue),y:w=>c(p(w)),stroke:m(x),strokeWidth:r,strokeDasharray:o,strokeLinecap:"round",vectorEffect:y,curve:curve.curveLinear},`${x.xValue.getTime()}-${S.xValue.getTime()}`)}):jsxRuntime.jsx(shape.LinePath,{data:g,x:x=>x?s(x.xValue):0,y:x=>x?c(p(x)):0,defined:x=>x!=null,stroke:t,strokeWidth:r,strokeDasharray:o,strokeLinecap:"round",vectorEffect:y,curve:curve.curveLinear}),h={transformOrigin:`0 ${d[0]}px`,transformBox:"fill-box",isolation:"isolate"};return i?jsxRuntime.jsx(framerMotion.motion.g,{initial:{scaleY:0},animate:{scaleY:1},transition:{duration:l.duration,ease:l.ease},style:h,children:b}):jsxRuntime.jsx("g",{style:h,children:b})};var Fb=e=>e.type===sn||e.type===Hn||e.type===ml,eP=e=>e.type===yl||e.type===vl,tP=(e,t,r)=>{if(!e.tooltipRange||e.baseline===void 0)return;let o=typeof e.baseline=="function"?e.baseline(t,r):e.baseline;return typeof o=="number"&&Number.isFinite(o)&&o!==t.yValue?o:void 0},rP=d3Array.bisector(e=>e.xValue).left,oP=()=>jsxRuntime.jsx("div",{className:"flex h-full items-center justify-center",children:jsxRuntime.jsx("p",{className:"text-text-secondary",children:"No data available"})}),nP=()=>jsxRuntime.jsxs("div",{className:"flex h-full flex-col gap-4 p-4",children:[jsxRuntime.jsx(U,{className:"h-full w-full"}),jsxRuntime.jsxs("div",{className:"flex gap-4",children:[jsxRuntime.jsx(U,{className:"h-4 w-24"}),jsxRuntime.jsx(U,{className:"h-4 w-24"})]})]}),aP=({parentWidth:e,parentHeight:t,yFormatter:r={type:"number"},yDomain:o,referenceLines:n,isLoading:a=false,enableZoom:i=false,enableBrush:s=false,brushHeight:c=60,onZoomChange:l,zoomDomain:d,hiddenSeriesLabels:u,onHiddenSeriesChange:m,hideBottomBar:p=false,headerActions:f,headerControls:g,title:y,children:b})=>{let h=u!==void 0,x=d!==void 0,[v,S]=Je.useState(null),[w,P]=Je.useState(null),T=x?d:w,[k,R]=Je.useState(()=>new Set),I=h?u:k,E=Je.useRef(null),L=Je.useId(),M=Je.useRef(0),F=Je.useRef(""),z=Je.useRef(null),{colorMode:W}=Yt(),X=Je.useMemo(()=>Eo(),[W]),Z=Je.useMemo(()=>fi(),[W]),{datasets:O,seriesMetadata:j,categoryInfo:H,categoryColors:A,categoryLabels:G,seriesTypes:N}=Je.useMemo(()=>{let de=Je.Children.toArray(b).filter(Ae=>Je.isValidElement(Ae)&&Fb(Ae)),Fe=de.filter(Ae=>Ae.props.data).length,ke=[],Ve=[],_e=[],lt=null,De=null;de.forEach((Ae,yt)=>{let Ie=Ae.props;if(!Ie.data)return;ke.push(Ie.data);let ya=("color"in Ie&&Ie.color?Ie.color:void 0)||(Fe===1?Z:X[yt%X.length]),Sn=Ae.type===sn;Ve.push({label:"label"in Ie&&Ie.label||`Series ${ke.length}`,color:ya,...Sn&&"baseline"in Ie&&Ie.baseline!==void 0?{baseline:Ie.baseline,tooltipRange:"tooltipRange"in Ie&&Ie.tooltipRange||false}:{}});let nd=Sn?"area":Ae.type===Hn?"line":"bar";_e.push(nd),"categoryColors"in Ie&&Ie.categoryColors&&(lt=Ie.categoryColors),"categoryLabels"in Ie&&Ie.categoryLabels&&(De=Ie.categoryLabels);});let at=null;if(lt){let Ae=new Set;ke.forEach(yt=>{yt.forEach(Ie=>{Ie.category&&Ae.add(Ie.category);});}),at=Array.from(Ae).map(yt=>({label:De?.[yt]||yt,color:lt[yt]||"#6b7280"}));}return {datasets:ke,seriesMetadata:Ve,categoryInfo:at,categoryColors:lt,categoryLabels:De,seriesTypes:_e}},[b,Z,X,W]),C=Oi(y),D=C.expandedSize?.width??e,B=C.expandedSize?.height??t,re=!p?C.action:null,ue=f||re?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[f,re]}):void 0,{headerRef:$,headerHeight:se}=Ea(!!ue,!!g),He=p?0:60,te=s?c+8:0,ae=B-se-He-te,ie=Math.max(100,ae),ye=Je.useCallback(K=>K?I.has(K):false,[I]),Le=Je.useMemo(()=>j.map((K,de)=>ye(K.label)?null:de).filter(K=>K!==null),[j,ye]),Ue=Je.useMemo(()=>Le.map(K=>O[K]).filter(K=>!!K),[O,Le]),jt=Je.useMemo(()=>Le.map(K=>j[K]).filter(K=>!!K),[j,Le]),Yr=Je.useMemo(()=>Le.map(K=>N[K]).filter(K=>!!K),[N,Le]),Po=Yr.findIndex(K=>K==="bar"),Uo=Po!==-1,Ot=Je.useCallback((K,de)=>{let Fe=K.has(de);if(!Fe&&j.reduce((_e,lt)=>K.has(lt.label)||lt.label===de?_e:_e+1,0)<1)return K;let ke=new Set(K);return Fe?ke.delete(de):ke.add(de),ke},[j]),Q=Je.useCallback(K=>{if(h){let de=u;if(!de.has(K)&&j.reduce((Ve,_e)=>de.has(_e.label)||_e.label===K?Ve:Ve+1,0)<1){S(null);return}m?.(ke=>Ot(ke,K));}else R(de=>Ot(de,K));S(null);},[h,u,m,j,Ot]),J=Je.useMemo(()=>j.map(K=>K.label).join(""),[j]),ve=Je.useRef(J);Je.useEffect(()=>{ve.current!==J&&(ve.current=J,h||R(K=>K.size===0?K:new Set));},[J,h]);let ce=Je.useMemo(()=>Ue.flat(),[Ue]),q=Je.useMemo(()=>{if(ce.length===0)return null;let K=[...ce].sort((de,Fe)=>de.xValue.getTime()-Fe.xValue.getTime());return [K[0].xValue,K[K.length-1].xValue]},[ce]),ge=T||q,Pe=Je.useCallback(K=>{x?l?.(K):P(K);},[x,l]),nt=Je.useMemo(()=>ge?O.map(de=>de.filter(Fe=>Fe.xValue>=ge[0]&&Fe.xValue<=ge[1])):O,[O,ge]),Xe=Je.useMemo(()=>Le.map(K=>nt[K]??[]),[Le,nt]);Je.useEffect(()=>{l&&l(T);},[T,l]);let tr=Je.useMemo(()=>Le.flatMap(K=>nt[K]??[]),[nt,Le]),Re=Je.useMemo(()=>Di(tr,ie,r,o),[tr,ie,r,o]),no=Je.useRef(JSON.stringify(r)),ee=Je.useRef(null),pe=Je.useMemo(()=>{let[K,de]=Re.domain(),Fe=Math.max(Math.abs(K),Math.abs(de)),ke=JSON.stringify(r);if(ke!==no.current&&(no.current=ke,ee.current=null),ee.current!==null)return ee.current;if(Fe===0)return Ga(r,0);let Ve=Ga(r,Fe);return ee.current=Ve,Ve},[Re,r]),oe=Je.useMemo(()=>{let K=ie-Oe.top-Oe.bottom;return Ua(K)},[ie]),le=Je.useMemo(()=>{let K=qr(pe),de=K.tickFormat||K.format,ke=Re.ticks(oe).map(lt=>de(lt)),Ve=Wa(ke,12,"system-ui"),_e=Math.ceil(Ve)+12;return {...Oe,left:Math.max(_e,30),right:8}},[Re,pe,oe]),wt=Je.useMemo(()=>ge?scale.scaleTime({domain:ge,range:[le.left,D-le.right]}):Bu(ce,D),[ge,ce,D,le]),ks=Je.useCallback(K=>{if(!q)return;let{scaleX:de,translateX:Fe}=K,ke=D-le.left-le.right,[Ve,_e]=q,lt=_e.getTime()-Ve.getTime();if(lt<=0){Pe(null);return}let De=-Fe,at=De+ke,Ae=ke*de/lt,yt=De/Ae,Ie=at/Ae,Cn=new Date(Ve.getTime()+yt),ya=new Date(Ve.getTime()+Ie),Sn=Math.abs(Cn.getTime()-Ve.getTime()),nd=Math.abs(ya.getTime()-_e.getTime()),Tm=lt*.02;Sn<Tm&&nd<Tm?Pe(null):Pe([Cn,ya]);},[q,D,le,Pe]),Ro=Je.useCallback(K=>{let{left:de}=E.current?.getBoundingClientRect()||{left:0},Fe=K.clientX-de;if(K.timeStamp-(M.current||0)<16)return;M.current=K.timeStamp;let ke=wt.invert(Fe),Ve=Xe.map((De,at)=>{if(!De||De.length===0)return null;let Ae=rP(De,ke,1);if(Ae===0)return {point:De[0],index:0,datasetIndex:at};if(Ae>=De.length)return {point:De[De.length-1],index:De.length-1,datasetIndex:at};let yt=De[Ae-1],Ie=De[Ae];if(!yt||!Ie)return null;let Cn=Math.abs(yt.xValue.getTime()-ke.getTime()),ya=Math.abs(Ie.xValue.getTime()-ke.getTime()),Sn=Cn<ya;return {point:Sn?yt:Ie,index:Sn?Ae-1:Ae,datasetIndex:at}}).filter(De=>De!==null&&jt[De.datasetIndex]!==void 0).map(({point:De,index:at,datasetIndex:Ae})=>({label:jt[Ae].label,value:De.yValue,baselineValue:tP(jt[Ae],De,at),color:jt[Ae].color,point:De,type:Yr[Ae]}));if(Ve.length===0){S(null);return}let _e=wt(Ve[0].point.xValue),lt=_e>(D-le.right-le.left)/2+le.left;S({xValue:Ve[0].point.xValue,series:Ve.map(({label:De,value:at,baselineValue:Ae,color:yt,point:Ie,type:Cn})=>({label:De,value:at,...Ae!==void 0?{baselineValue:Ae}:{},chartY:Ie.chartYValue??at,showMarker:Ie.showTooltipMarker??true,color:yt,type:Cn,category:Ie.category,categoryColor:Ie.category&&A?A[Ie.category]:void 0,...Ie.extraTooltipRows&&Ie.extraTooltipRows.length>0?{extraTooltipRows:Ie.extraTooltipRows}:{}})),x:_e,y:Re(Ve[0].point.chartYValue??Ve[0].value),position:lt?"left":"right"});},[Xe,jt,Yr,wt,Re,D,A,le]),xC=()=>{S(null);},hC=Je.useCallback(()=>{Pe(null),z.current&&z.current.reset();},[Pe]),yC=Je.useCallback(K=>{let de={scaleX:1,scaleY:1,translateX:0,translateY:0,skewX:0,skewY:0};if(!K||!q)return de;let[Fe,ke]=q,Ve=ke.getTime()-Fe.getTime();if(Ve<=0)return de;let[_e,lt]=K,De=lt.getTime()-_e.getTime();if(De<=0)return de;let at=Ve/De,Ae=D-le.left-le.right,yt=_e.getTime()-Fe.getTime();return {scaleX:at,scaleY:1,translateX:-(yt/Ve)*Ae*at,translateY:0,skewX:0,skewY:0}},[q,D,le]),Ts=Je.useCallback(K=>{if(!(z.current&&q))return;let[de,Fe]=q,ke=Fe.getTime()-de.getTime();if(ke<=0){z.current.reset();return}if(!K){z.current.reset();return}let[Ve,_e]=K,lt=_e.getTime()-Ve.getTime();if(lt<=0){z.current.reset();return}let De=ke/lt,at=D-le.left-le.right,yt=-((Ve.getTime()-de.getTime())/ke)*at*De;z.current.setTransformMatrix({scaleX:De,scaleY:1,translateX:yt,translateY:0,skewX:0,skewY:0});},[q,D,le]),vC=Je.useCallback(K=>{Pe(K),Ts(K);},[Pe,Ts]);Je.useEffect(()=>{x&&Ts(d??null);},[x,d,Ts]);let CC={width:D,height:ie,xScale:wt,yScale:Re,yFormatter:pe,animationSettings:dl,tooltip:{data:v,show:S,hide:()=>S(null)},datasets:Xe,seriesMetadata:jt,seriesTypes:Yr,categoryColors:A||void 0,categoryLabels:G||void 0},SC=Je.Children.toArray(b),Sm=0,wm=[],Nm=[],rd=[];SC.forEach(K=>{if(!Je.isValidElement(K)){rd.push(K);return}if(eP(K))Nm.push(K);else if(Fb(K)){let de=Sm;Sm++;let Fe=K.props,ke=j[de]?.label;if(ye(ke))return;wm.push(Je__namespace.default.cloneElement(K,{...Fe,data:nt[de]||Fe.data,color:j[de]?.color}));}else rd.push(K);});let wC=Le.length,NC=(H||j).map(K=>{let de=!H&&ye(K.label);return {category:K.label,fill:K.color,isHidden:de,isDisabled:!H&&!de&&wC<=1}}),kC=typeof r=="object"&&r!==null&&typeof r.type=="string",TC=xl({datasets:Ue,metadata:{xLabel:"Date",yLabel:"Value",seriesLabels:jt.map(K=>K.label),timestamp:true,...kC?{yFormat:r}:{}},svgRef:E}),od=jsxRuntime.jsx(Ma,{title:y,controls:g,actions:ue,containerRef:$,marginRight:le.right});if(a)return C.present(jsxRuntime.jsxs("div",{className:"relative flex h-full flex-col",children:[od,jsxRuntime.jsx(nP,{})]}));if(O.length===0)return C.present(jsxRuntime.jsxs("div",{className:"relative flex h-full flex-col",children:[od,jsxRuntime.jsx(oP,{})]}));let km=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("title",{children:y}),jsxRuntime.jsx("g",{children:Re.ticks(oe).map(K=>{let de=Math.abs(K)<Number.EPSILON;return jsxRuntime.jsx(shape.Line,{from:{x:le.left,y:Re(K)},to:{x:D-le.right,y:Re(K)},stroke:de?"var(--color-border-default)":"var(--color-border-muted)",strokeWidth:de?1.5:1},`grid-line-${K}`)})}),jsxRuntime.jsx("defs",{children:jsxRuntime.jsx("clipPath",{id:L,children:jsxRuntime.jsx("rect",{x:wt.range()[0],y:Re.range()[1],width:wt.range()[1]-wt.range()[0],height:Re.range()[0]-Re.range()[1]})})}),jsxRuntime.jsx("g",{clipPath:`url(#${L})`,children:wm}),rd,n&&n.length>0&&jsxRuntime.jsx("g",{children:n.map(K=>{let de=Re(K.value),Fe=K.color??"var(--color-error-base)";return jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx(shape.Line,{from:{x:le.left,y:de},to:{x:D-le.right,y:de},stroke:Fe,strokeWidth:1.5,strokeDasharray:"6 4"}),K.label&&jsxRuntime.jsx("text",{x:D-le.right-4,y:de-4,textAnchor:"end",fontSize:11,fill:Fe,children:K.label})]},`ref-line-${K.value}`)})}),jsxRuntime.jsx(zr.Bottom,{top:ie-le.bottom,scale:wt,width:D-le.left-le.right}),jsxRuntime.jsx(zr.Left,{left:le.left,scale:Re,yFormatter:pe,height:ie-le.top-le.bottom}),v&&!v.isEvent&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[Uo?(()=>{let K=Ue[Po]??[];if(K.length===0)return null;let de=[...K].sort((Ae,yt)=>Ae.xValue.getTime()-yt.xValue.getTime()),Fe=de.findIndex(Ae=>Ae.xValue.getTime()===v.xValue.getTime()),ke=de[Fe+1],Ve=de.length>1&&ke?ke.xValue.getTime()-v.xValue.getTime():15*6e4,_e=Math.abs(wt(new Date(v.xValue.getTime()+Ve))-wt(v.xValue)),De=wt(v.xValue)-_e/2,at=Re.range();return jsxRuntime.jsx("rect",{x:De,y:at[1],width:_e,height:at[0]-at[1],className:"fill-background-muted",opacity:.5,pointerEvents:"none",style:{transition:"all 100ms ease-out"}})})():null,v.series.filter(K=>K.type!=="bar"&&K.showMarker!==false).map(K=>jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("circle",{cx:wt(v.xValue),cy:Re(K.chartY??K.value),r:8,fill:"white",stroke:K.color,strokeWidth:2,style:{transition:"all 100ms ease-out"}}),jsxRuntime.jsx("circle",{cx:wt(v.xValue),cy:Re(K.chartY??K.value),r:4,fill:K.color,style:{transition:"all 100ms ease-out"}})]},`highlight-${K.label}`))]}),jsxRuntime.jsx("rect",{x:le.left,y:le.top,width:D-le.left-le.right,height:ie-le.top-le.bottom,fill:"transparent",style:{cursor:i?"grab":"crosshair",touchAction:"none"},onMouseMove:Ro,onMouseLeave:xC}),Nm]});return C.present(jsxRuntime.jsx("div",{className:"relative flex h-full flex-col",children:jsxRuntime.jsxs(Vr.Provider,{value:CC,children:[od,i?jsxRuntime.jsx(zoom.Zoom,{initialTransformMatrix:yC(T),width:D,height:ie,scaleXMin:1,scaleXMax:20,scaleYMin:1,scaleYMax:1,constrain:K=>{let{scaleX:de,translateX:Fe}=K,ke=Math.max(1,Math.min(20,de)),Ve=1,_e=D-le.left-le.right,lt=0,De=_e*(1-ke),at=Math.max(De,Math.min(lt,Fe));return {...K,scaleX:ke,scaleY:Ve,translateX:at,translateY:0}},children:K=>{if(z.current=K,K.transformMatrix){let{scaleX:de,translateX:Fe}=K.transformMatrix,ke=`${de.toFixed(4)}-${Fe.toFixed(2)}`;ke!==F.current&&(F.current=ke,setTimeout(()=>{ks(K.transformMatrix);},0));}return jsxRuntime.jsx("svg",{width:D,height:ie,className:"overflow-visible",ref:de=>{E.current=de,K.containerRef.current!==de&&(K.containerRef.current=de);},role:"img","aria-label":y,style:{cursor:K.isDragging?"grabbing":"grab",touchAction:"none"},onMouseDown:K.dragStart,onMouseMove:K.dragMove,onMouseUp:K.dragEnd,onMouseLeave:()=>{K.isDragging&&K.dragEnd();},onTouchStart:K.dragStart,onTouchMove:K.dragMove,onTouchEnd:K.dragEnd,children:km})}},`zoom-${Math.round(D)}x${Math.round(ie)}`):jsxRuntime.jsx("svg",{width:D,height:ie,className:"overflow-visible",ref:E,role:"img","aria-label":y,children:km}),jsxRuntime.jsx(ln,{data:v,formatter:pe}),s&&q&&jsxRuntime.jsx(Ku,{data:Ue,seriesMetadata:jt,width:D,height:c,onBrushChange:vC,brushRegion:T,margin:le,...o?{yDomain:o}:{}}),!p&&jsxRuntime.jsx(Ya,{onExport:TC,items:NC,marginLeft:0,marginRight:le.right,isZoomed:T!==null,onResetZoom:hC,onLegendItemToggle:H?void 0:Q})]})}))},Bb=responsive.withParentSize(aP);var uP=e=>e.toLocaleString(),pP=e=>`${Math.round(e*100)}%`,Hb=({data:e,width:t=800,height:r=400,padding:o=0,barGap:n=30,formatValue:a=uP,formatPercentage:i=pP,color:s,showScale:c=true,showOverallConversion:l=true,overallConversionLabel:d="Overall Conversion:",activeStageId:u,onStageClick:m,onStageHover:p,className:f,style:g,"aria-label":y="Funnel chart"})=>{let[b,h]=Je.useState(null),[x,v]=Je.useState(t),S=Je.useRef(null),w=u??b,P=Je.useId(),T=s||"var(--color-viz-default)";Je.useEffect(()=>{if(!S.current)return;let M=new ResizeObserver(F=>{for(let z of F)v(z.contentRect.width);});return M.observe(S.current),()=>{M.disconnect();}},[]);let{layout:k,overallConversion:R}=Je.useMemo(()=>{if(e.length===0)return {layout:[],overallConversion:0};let M=e[0].value,F=l?60:0,z=r-o*2-F,W=(e.length-1)*n,X=(z-W)/e.length,Z=e.map((j,H)=>{let A=o+F+H*(X+n),G=M===0?0:j.value/M,N=G,C=H===0?null:e[H-1].value,D=C==null||C===0?0:1-j.value/C;return {stage:j,index:H,y:A,barHeight:X,widthPercent:G,conversionRate:N,dropOff:D}}),O=M===0?0:e[e.length-1].value/M;return {layout:Z,overallConversion:O,maxValue:M}},[e,x,r,o,n,c,l]);if(e.length===0)return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex h-full min-h-[280px] w-full items-center justify-center rounded-lg border border-dashed border-border-default bg-background-surface text-sm font-medium text-text-secondary",f),style:{width:t,height:r,...g},children:"No funnel data available"});let I=c?60:0,E=o+I,L=x-o*2-I;return jsxRuntime.jsx("div",{ref:S,className:tailwindMerge.twMerge("relative w-full overflow-hidden rounded-lg bg-background-surface",f),style:{height:r,...g},"aria-label":y,role:"img",children:jsxRuntime.jsxs("svg",{width:"100%",height:r,className:"relative",children:[jsxRuntime.jsxs("defs",{children:[jsxRuntime.jsx(gradient.LinearGradient,{id:`${P}-bar`,from:T,to:T,toOpacity:.85}),jsxRuntime.jsx(gradient.LinearGradient,{id:`${P}-bg`,from:T,to:T,fromOpacity:.01,toOpacity:.15,x1:"0",y1:"0",x2:"1",y2:"0"})]}),l&&jsxRuntime.jsxs("text",{x:E,y:o+20,className:"fill-text-primary text-sm font-medium",children:[jsxRuntime.jsx("tspan",{className:"fill-text-secondary",children:d})," ",i(R)]}),c&&jsxRuntime.jsx("g",{children:k.map(M=>{let F=M.y+M.barHeight/2;return jsxRuntime.jsx("text",{x:o+I-12,y:F,textAnchor:"end",dominantBaseline:"middle",className:"fill-text-secondary text-xs",children:i(M.conversionRate)},M.stage.id)})}),k.map(M=>{let F=w===M.stage.id,z=L*M.widthPercent;return jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("rect",{x:E,y:M.y,width:L,height:M.barHeight,fill:`url(#${P}-bg)`,rx:4}),jsxRuntime.jsx(framerMotion.motion.rect,{x:E,y:M.y,width:z,height:M.barHeight,fill:`url(#${P}-bar)`,rx:4,initial:{width:0},animate:{width:z},transition:{duration:.6,delay:M.index*.1,ease:"easeOut"},opacity:F||w==null?1:.5,style:{cursor:m||p?"pointer":"default",transition:"opacity 150ms ease"},onMouseEnter:()=>{h(M.stage.id),p?.(M.stage);},onMouseLeave:()=>{h(null),p?.(null);},onClick:()=>m?.(M.stage)}),jsxRuntime.jsx("rect",{x:E+10,y:M.y+M.barHeight/2-10,width:70,height:20,className:"fill-background-surface stroke-border-default",strokeWidth:1,rx:4,style:{pointerEvents:"none"}}),jsxRuntime.jsx("text",{x:E+16,y:M.y+M.barHeight/2+4,className:"fill-text-primary text-xs font-semibold",style:{pointerEvents:"none"},children:a(M.stage.value)}),jsxRuntime.jsxs("text",{x:E,y:M.y-8,className:"fill-text-secondary text-xs",style:{pointerEvents:"none"},children:[jsxRuntime.jsx("tspan",{children:M.index+1})," ",M.stage.label]}),M.stage.secondaryValue&&jsxRuntime.jsx("text",{x:E+16,y:M.y-24,className:"fill-text-secondary text-xs",style:{pointerEvents:"none"},children:M.stage.secondaryValue}),M.index>0&&M.dropOff>0&&jsxRuntime.jsxs("text",{x:E+L,y:M.y-8,textAnchor:"end",className:"fill-text-secondary text-xs",children:[i(M.dropOff)," drop"]}),M.stage.annotation&&jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("rect",{x:E+z+8,y:M.y+8,width:60,height:24,rx:3,className:"fill-background-muted"}),jsxRuntime.jsx("text",{x:E+z+16,y:M.y+20,className:"fill-text-secondary text-xs font-medium",children:M.stage.annotation})]})]},M.stage.id)})]})})};function Gb(){let e=new Map;return {publish(t,r){for(let[o,n]of e)o!==t&&n(r);},subscribe(t,r){return e.set(t,r),()=>{e.delete(t);}}}}var fP=d3Array.bisector(e=>e.xValue).left,gP=(e,t,r)=>{if(!e.tooltipRange||e.baseline===void 0)return;let o=typeof e.baseline=="function"?e.baseline(t,r):e.baseline;return typeof o=="number"&&Number.isFinite(o)&&o!==t.yValue?o:void 0};function Wb(e){let{mouseX:t,datasets:r,seriesMetadata:o,seriesTypes:n,xScale:a,yScale:i,plotLeft:s,plotRight:c}=e,l=a.invert(t),d=r.map((p,f)=>{if(!p||p.length===0)return null;let g=fP(p,l,1);if(g===0)return {point:p[0],index:0,datasetIndex:f};if(g>=p.length)return {point:p[p.length-1],index:p.length-1,datasetIndex:f};let y=p[g-1],b=p[g];if(!y||!b)return null;let h=Math.abs(y.xValue.getTime()-l.getTime()),x=Math.abs(b.xValue.getTime()-l.getTime()),v=h<x;return {point:v?y:b,index:v?g-1:g,datasetIndex:f}}).filter(p=>p!==null&&o[p.datasetIndex]!==void 0).map(({point:p,index:f,datasetIndex:g})=>({label:o[g].label,value:p.yValue,baselineValue:gP(o[g],p,f),color:o[g].color,point:p,type:n[g]}));if(d.length===0)return null;let u=a(d[0].point.xValue),m=u>(s+c)/2;return {xValue:d[0].point.xValue,series:d.map(({label:p,value:f,baselineValue:g,color:y,point:b,type:h})=>({label:p,value:f,...g!==void 0?{baselineValue:g}:{},chartY:b.chartYValue??f,showMarker:b.showTooltipMarker??true,color:y,type:h,...b.category!==void 0?{category:b.category}:{},...b.extraTooltipRows&&b.extraTooltipRows.length>0?{extraTooltipRows:b.extraTooltipRows}:{}})),x:u,y:i(d[0].point.chartYValue??d[0].value),position:m?"left":"right"}}var Yb=e=>e instanceof Date&&!Number.isNaN(e.getTime()),yP=160;function Sl(e,t,r){let[o,n]=Je.useState(null);Je.useImperativeHandle(r,()=>({setPreview:n}),[]);let[a,i]=e.range(),s=Je.useMemo(()=>o?d3Scale.scaleTime().domain([new Date(o[0]),new Date(o[1])]).range([a,i]):e,[o,e,a,i]),c=s.domain(),l=c[0],d=c[c.length-1],u=Yb(l)&&Yb(d),m=t<400,p=Math.max(2,Math.min(8,Math.floor(t/(m?70:110)))),f=Je.useMemo(()=>{if(!u)return [];let g=i-a;if(g<=0)return s.ticks(p);let[y,b]=s.domain(),h=y.getTime(),x=b.getTime(),v=(x-h)/g,S=Math.min(yP,g),w=S*v,P=d3Scale.scaleTime().domain([new Date(h-w),new Date(x+w)]).range([a-S,i+S]),T=d3Time.timeTickInterval(y,b,p);if(T)return P.ticks(T);let k=Math.max(2,Math.round(p*(g+2*S)/g));return P.ticks(k)},[s,p,u,a,i]);return {activeScale:s,ticks:f,start:l,end:d,valid:u,compact:m,rangeStart:a,rangeEnd:i}}var wP=6,Jb=20,Qu=Je.forwardRef(({top:e,scale:t,width:r},o)=>{let{activeScale:n,ticks:a,start:i,end:s,valid:c,compact:l,rangeStart:d,rangeEnd:u}=Sl(t,r,o),m=a.length>=2?a[1].getTime()-a[0].getTime():s.getTime()-i.getTime(),p=Je.useMemo(()=>c?Mf(m,{compact:l}):()=>"",[m,l,c]),f=Je.useId(),g=Math.min(d,u),y=Math.abs(u-d);return jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("line",{x1:d,x2:u,y1:e,y2:e,stroke:"var(--color-border-muted)",strokeWidth:1}),a.length>0&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("defs",{children:jsxRuntime.jsx("clipPath",{id:f,children:jsxRuntime.jsx("rect",{x:g,y:e-4,width:y,height:Jb+16})})}),jsxRuntime.jsx("g",{clipPath:`url(#${f})`,children:a.map(b=>jsxRuntime.jsxs("g",{transform:`translate(${n(b)},${e})`,children:[jsxRuntime.jsx("line",{x1:0,x2:0,y1:0,y2:wP,stroke:"var(--color-border-muted)",strokeWidth:1}),jsxRuntime.jsx("text",{x:0,y:Jb,textAnchor:"middle",fontSize:12,fill:"var(--color-text-secondary)",children:p(b)})]},b.getTime()))})]})]})});Qu.displayName="LiveTimeAxisBottom";var Zu=Je.forwardRef(({scale:e,width:t,top:r,bottom:o},n)=>{let{activeScale:a,ticks:i,rangeStart:s,rangeEnd:c}=Sl(e,t,n),l=Je.useId(),d=Math.min(s,c),u=Math.abs(c-s);return jsxRuntime.jsxs("g",{"aria-hidden":"true",children:[jsxRuntime.jsx("defs",{children:jsxRuntime.jsx("clipPath",{id:l,children:jsxRuntime.jsx("rect",{x:d,y:r,width:u,height:o-r})})}),jsxRuntime.jsx("g",{clipPath:`url(#${l})`,children:i.map(m=>{let p=a(m);return jsxRuntime.jsx("line",{x1:p,x2:p,y1:r,y2:o,stroke:"var(--color-border-muted)",strokeWidth:1},m.getTime())})})]})});Zu.displayName="LiveTimeGridlines";function wl(e,t,r){let o=e[1]-e[0],n=t/Math.max(1,r)*o;return [e[0]-n,e[1]-n]}function Xb(e,t,r){let o=e[1]-e[0],n=e[0]+t*o,a=o/r,i=n-t*a;return [i,i+a]}function _u(e,t,r=16,o=800){return t===1?e*r:t===2?e*o:e}var jb=(e,t,r,o,n)=>{let a=t!==1?Xb(e,r,t):e;return o!==0&&(a=wl(a,o,n)),a},qb=(e,t)=>{if(!t)return e;let r=e[1]-e[0];if(r>=t[1]-t[0])return [t[0],t[1]];let[o,n]=e;return n>t[1]&&(n=t[1],o=n-r),o<t[0]&&(o=t[0],n=o+r),[o,n]},EP=e=>typeof requestAnimationFrame=="function"?requestAnimationFrame(e):setTimeout(()=>e(0),0),MP=e=>{typeof cancelAnimationFrame=="function"?cancelAnimationFrame(e):clearTimeout(e);};function Qb(e){let{groupRef:t}=e,r=Je.useRef({xDomain:e.xDomain,plotWidthPx:e.plotWidthPx,plotLeftPx:e.plotLeftPx??0});r.current={xDomain:e.xDomain,plotWidthPx:e.plotWidthPx,plotLeftPx:e.plotLeftPx??0};let o=Je.useRef(e.onCommit);o.current=e.onCommit;let n=Je.useRef(e.panBoundsMs);n.current=e.panBoundsMs;let a=Je.useRef(e.settleMs??140);a.current=e.settleMs??140;let i=Je.useRef(e.zoomIntent??(E=>E.ctrlKey));i.current=e.zoomIntent??(E=>E.ctrlKey);let s=Je.useRef(e.onGestureStart);s.current=e.onGestureStart;let c=Je.useRef(e.onFramePreview);c.current=e.onFramePreview;let l=Je.useRef(null),d=Je.useRef({scale:1,cursorFrac:.5,panDxPx:0,timer:null}),u=Je.useRef(null),m=Je.useRef(null),p=Je.useRef(false),f=Je.useCallback((E,L,M)=>{m.current={translateX:E,scaleX:L,preview:M},u.current==null&&(u.current=EP(()=>{u.current=null;let F=m.current;F!=null&&(t.current?.setAttribute("transform",`translate(${F.translateX},0) scale(${F.scaleX},1)`),c.current?.(F.preview));}));},[t]),g=Je.useCallback(()=>{u.current!=null&&(MP(u.current),u.current=null),m.current=null,t.current?.removeAttribute("transform"),c.current?.(null);},[t]),y=Je.useCallback(()=>{p.current||(p.current=true,s.current?.());},[]),b=Je.useCallback(()=>{p.current=false;},[]),h=Je.useCallback(()=>{d.current.timer!=null&&(clearTimeout(d.current.timer),d.current.timer=null);},[]),x=Je.useCallback(()=>{d.current={scale:1,cursorFrac:.5,panDxPx:0,timer:null};},[]),v=Je.useCallback(()=>{let{xDomain:E,plotWidthPx:L}=r.current,{scale:M,cursorFrac:F,panDxPx:z}=d.current;M===1&&z===0||o.current(qb(jb(E,M,F,z,L),n.current));},[]),S=Je.useCallback(()=>{d.current.timer!=null&&(h(),v(),x(),g());},[h,v,x,g]),w=Je.useCallback(E=>{S(),E.currentTarget.setPointerCapture?.(E.pointerId),l.current={startX:E.clientX,dxPx:0},y();},[S,y]),P=Je.useCallback(E=>{if(!l.current)return;l.current.dxPx=E.clientX-l.current.startX;let{xDomain:L,plotWidthPx:M}=r.current;f(l.current.dxPx,1,wl(L,l.current.dxPx,M));},[f]),T=Je.useCallback(E=>{if(!l.current)return;let{dxPx:L}=l.current;l.current=null,g(),b(),L!==0&&o.current(qb(wl(r.current.xDomain,L,r.current.plotWidthPx),n.current));},[g,b]),k=Je.useCallback(()=>{l.current&&(l.current=null,g(),b());},[g,b]),R=Je.useRef(null),I=Je.useCallback(E=>{if(R.current?.(),R.current=null,!E)return;let L=M=>{if(l.current)return;let{plotWidthPx:F,plotLeftPx:z}=r.current,W=_u(M.deltaY,M.deltaMode),X=_u(M.deltaX,M.deltaMode),Z=i.current(M);if(!Z&&X===0)return;if(M.preventDefault(),y(),Z){let A=Math.min(1,Math.max(0,(M.clientX-E.getBoundingClientRect().left)/Math.max(1,F)));d.current.scale*=Math.exp(-W/200),d.current.cursorFrac=A;}else d.current.panDxPx-=X;let{scale:O,cursorFrac:j,panDxPx:H}=d.current;f((z+j*F)*(1-O)+H,O,jb(r.current.xDomain,O,j,H,F)),h(),d.current.timer=setTimeout(()=>{v(),x(),g(),b();},a.current);};E.addEventListener("wheel",L,{passive:false}),R.current=()=>E.removeEventListener("wheel",L);},[f,g,h,v,x,y,b]);return Je.useEffect(()=>()=>{R.current?.(),R.current=null,g(),d.current.timer!=null&&clearTimeout(d.current.timer);},[g]),{onPointerDown:w,onPointerMove:P,onPointerUp:T,onPointerCancel:k,wheelTargetRef:I,gestureActiveRef:p}}var ex=e=>e.type===sn||e.type===Hn,BP=({children:e,title:t,headerActions:r,headerControls:o,viewport:n,panBounds:a,onViewportChange:i,onPlotWidthChange:s,yFormatter:c={type:"number"},yDomain:l,referenceLines:d,cameraSync:u,parentWidth:m=0,parentHeight:p=0})=>{let[f,g]=Je.useState(null),y=Je.useRef(null),b=Je.useRef(0),h=Je.useId(),x=Je.useRef(null),v=Je.useRef(null),S=Je.useRef(null),{colorMode:w}=Yt(),P=Je.useMemo(()=>Eo(),[w]),T=Je.useMemo(()=>fi(),[w]),{datasets:k,seriesMetadata:R,seriesTypes:I}=Je.useMemo(()=>{let q=Je.Children.toArray(e).filter(Xe=>Je.isValidElement(Xe)&&ex(Xe)),he=q.filter(Xe=>Xe.props.data).length,ge=[],Pe=[],nt=[];return q.forEach((Xe,tr)=>{let Re=Xe.props;if(!Re.data)return;ge.push(Re.data);let ee=("color"in Re&&Re.color?Re.color:void 0)||(he===1?T:P[tr%P.length]),pe=Xe.type===sn;Pe.push({label:"label"in Re&&Re.label||`Series ${ge.length}`,color:ee,...pe&&"baseline"in Re&&Re.baseline!==void 0?{baseline:Re.baseline,tooltipRange:"tooltipRange"in Re&&Re.tooltipRange||false}:{}}),nt.push(pe?"area":"line");}),{datasets:ge,seriesMetadata:Pe,seriesTypes:nt}},[e,T,P]),E=Oi(t),L=E.expandedSize?.width??m,M=r||E.action?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[r,E.action]}):void 0,{headerRef:F,headerHeight:z}=Ea(!!M,!!o),W=Math.max(100,(E.expandedSize?.height??p)-z-60),X=Je.useMemo(()=>[new Date(n.startMs),new Date(n.endMs)],[n.startMs,n.endMs]),Z=Je.useMemo(()=>{let q=k.flat(),he=q.filter(ge=>{let Pe=ge.xValue.getTime();return Pe>=n.startMs&&Pe<=n.endMs});return he.length>0?he:q},[k,n.startMs,n.endMs]),O=Je.useMemo(()=>{let q=Di(Z,W,c,l);if(!l){let[he,ge]=q.domain();ge>he&&q.domain([he,ge+(ge-he)*.05]);}return q},[Z,W,c,l]),j=Je.useRef(JSON.stringify(c)),H=Je.useRef(null),A=Je.useMemo(()=>{let[q,he]=O.domain(),ge=Math.max(Math.abs(q),Math.abs(he)),Pe=JSON.stringify(c);if(Pe!==j.current&&(j.current=Pe,H.current=null),H.current!==null)return H.current;if(ge===0)return Ga(c,0);let nt=Ga(c,ge);return H.current=nt,nt},[O,c]),G=Je.useMemo(()=>{let q=W-Oe.top-Oe.bottom;return Ua(q)},[W]),N=Je.useMemo(()=>{let q=qr(A),he=q.tickFormat||q.format,Pe=O.ticks(G).map(tr=>he(tr)),nt=Wa(Pe,12,"system-ui"),Xe=Math.ceil(nt)+12;return {...Oe,left:Math.max(Xe,30)}},[O,A,G]),C=Je.useMemo(()=>scale.scaleTime({domain:X,range:[N.left,L-N.right]}),[X,L,N]),D=Je.useMemo(()=>[n.startMs,n.endMs],[n.startMs,n.endMs]),B=Je.useMemo(()=>a?[a.startMs,a.endMs]:void 0,[a]),Y=Je.useCallback(q=>{i({startMs:q[0],endMs:q[1]});},[i]),re=L-N.left-N.right,ue=Je.useCallback(()=>g(null),[]),$=Je.useRef({}),se=Je.useRef(u);se.current=u;let He=Je.useCallback(q=>{v.current?.setPreview(q),S.current?.setPreview(q),se.current?.publish($.current,q);},[]),{onPointerDown:te,onPointerMove:ae,onPointerUp:ie,onPointerCancel:ye,wheelTargetRef:Le,gestureActiveRef:Ue}=Qb({xDomain:D,plotWidthPx:re,plotLeftPx:N.left,groupRef:x,onCommit:Y,onGestureStart:ue,onFramePreview:He,...B?{panBoundsMs:B}:{}}),jt=Je.useRef({startMs:n.startMs,endMs:n.endMs,left:0,width:0});jt.current={startMs:n.startMs,endMs:n.endMs,left:N.left,width:re},Je.useEffect(()=>{if(!u)return;let q=()=>{x.current?.removeAttribute("transform"),v.current?.setPreview(null),S.current?.setPreview(null);},he=Pe=>{if(Ue.current)return;if(Pe==null){q();return}let{startMs:nt,endMs:Xe,left:tr,width:Re}=jt.current,no=Xe-nt,ee=Pe[1]-Pe[0];if(no<=0||ee<=0||Re<=0)return;let pe=no/ee,oe=tr*(1-pe)+(nt-Pe[0])*Re/ee;x.current?.setAttribute("transform",`translate(${oe},0) scale(${pe},1)`),v.current?.setPreview(Pe),S.current?.setPreview(Pe);},ge=u.subscribe($.current,he);return ()=>{ge(),Ue.current||q();}},[u,Ue]),Je.useEffect(()=>{s?.(Math.max(0,L-N.left-N.right));},[L,N,s]);let Yr=Je.useCallback(q=>{if(Ue.current)return;let{left:he}=y.current?.getBoundingClientRect()||{left:0},ge=q.clientX-he;q.timeStamp-(b.current||0)<16||(b.current=q.timeStamp,g(Wb({mouseX:ge,datasets:k,seriesMetadata:R,seriesTypes:I,xScale:C,yScale:O,plotLeft:N.left,plotRight:L-N.right})));},[k,R,I,C,O,L,N,Ue]),Po=Je.useCallback(()=>g(null),[]),Uo={width:L,height:W,xScale:C,yScale:O,yFormatter:A,animationSettings:dl,tooltip:{data:f,show:g,hide:()=>g(null)},datasets:k,seriesMetadata:R,seriesTypes:I},Ot=0,Q=[];Je.Children.toArray(e).forEach(q=>{if(!Je.isValidElement(q)){Q.push(q);return}if(ex(q)){let he=Ot;Ot++;let ge=q.props;Q.push(Je__namespace.default.cloneElement(q,{...ge,color:R[he]?.color,animate:false}));}else Q.push(q);});let J=R.map(q=>({category:q.label,fill:q.color})),ve=xl({datasets:k,metadata:{xLabel:"Date",yLabel:"Value",seriesLabels:R.map(q=>q.label),timestamp:true},svgRef:y}),ce=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("title",{children:t}),jsxRuntime.jsx("g",{children:O.ticks(G).map(q=>{let he=Math.abs(q)<Number.EPSILON;return jsxRuntime.jsx(shape.Line,{from:{x:N.left,y:O(q)},to:{x:L-N.right,y:O(q)},stroke:he?"var(--color-border-default)":"var(--color-border-muted)",strokeWidth:he?1.5:1},`grid-line-${q}`)})}),jsxRuntime.jsx(Zu,{ref:S,scale:C,width:L-N.left-N.right,top:O.range()[1],bottom:O.range()[0]}),jsxRuntime.jsx("defs",{children:jsxRuntime.jsx("clipPath",{id:h,children:jsxRuntime.jsx("rect",{x:C.range()[0],y:O.range()[1],width:C.range()[1]-C.range()[0],height:O.range()[0]-O.range()[1]})})}),jsxRuntime.jsx("g",{clipPath:`url(#${h})`,children:jsxRuntime.jsx("g",{"data-camera-plot-group":"",ref:x,children:Q})}),d&&d.length>0&&jsxRuntime.jsx("g",{children:d.map(q=>{let he=O(q.value),ge=q.color??"var(--color-error-base)";return jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx(shape.Line,{from:{x:N.left,y:he},to:{x:L-N.right,y:he},stroke:ge,strokeWidth:1.5,strokeDasharray:"6 4"}),q.label&&jsxRuntime.jsx("text",{x:L-N.right-4,y:he-4,textAnchor:"end",fontSize:11,fill:ge,children:q.label})]},`ref-line-${q.value}`)})}),jsxRuntime.jsx(Qu,{ref:v,top:W-N.bottom,scale:C,width:L-N.left-N.right}),jsxRuntime.jsx(zr.Left,{left:N.left,scale:O,yFormatter:A,height:W-N.top-N.bottom}),f&&!f.isEvent&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(shape.Line,{"data-testid":"chart-hover-crosshair",from:{x:C(f.xValue),y:O.range()[1]},to:{x:C(f.xValue),y:O.range()[0]},stroke:"var(--color-text-secondary)",strokeWidth:1,strokeDasharray:"3 3",opacity:.7}),f.series.filter(q=>q.type!=="bar"&&q.showMarker!==false).map(q=>jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("circle",{cx:C(f.xValue),cy:O(q.chartY??q.value),r:8,fill:"white",stroke:q.color,strokeWidth:2,style:{transition:"all 100ms ease-out"}}),jsxRuntime.jsx("circle",{cx:C(f.xValue),cy:O(q.chartY??q.value),r:4,fill:q.color,style:{transition:"all 100ms ease-out"}})]},`highlight-${q.label}`))]}),jsxRuntime.jsx("rect",{"data-camera-surface":"",x:N.left,y:N.top,width:L-N.left-N.right,height:W-N.top-N.bottom,fill:"transparent",style:{cursor:"grab",touchAction:"none"},onMouseMove:Yr,onMouseLeave:Po,onPointerDown:te,onPointerMove:ae,onPointerUp:ie,onPointerCancel:ye,ref:Le})]});return E.present(jsxRuntime.jsx("div",{className:"relative flex h-full flex-col",children:jsxRuntime.jsxs(Vr.Provider,{value:Uo,children:[jsxRuntime.jsx(Ma,{title:t,controls:o,actions:M,containerRef:F,marginRight:N.right}),jsxRuntime.jsx("svg",{width:L,height:W,className:"overflow-visible",ref:y,role:"img","aria-label":t,children:ce}),jsxRuntime.jsx(ln,{data:f,formatter:A}),jsxRuntime.jsx(Ya,{onExport:ve,items:J,marginLeft:0,marginRight:N.right})]})}))},Nl=responsive.withParentSize(BP);function kl(e,t,r,o){if(r.length===0)throw new Error("tierForViewport: resolution ladder is empty");let n=[...r].sort((s,c)=>s.bucketMs-c.bucketMs),a=e/Math.max(1,t*o.targetPointsPerPx),i=Math.max(o.nativeMs,a);return n.find(s=>s.bucketMs>=i)??n[n.length-1]}function VP(e,t){return Math.floor(e/t.tileSpanMs)}function cn(e,t,r){let o=VP(e.startMs,t)-r,n=Math.ceil(e.endMs/t.tileSpanMs)-1+r,a=[];for(let i=o;i<=n;i++)a.push({tierId:t.id,index:i,startMs:i*t.tileSpanMs,endMs:(i+1)*t.tileSpanMs});return a}var fr=(e,t)=>`${e}:${t}`;var tx={erroredTiles:0};function tp(e,t){let r=new Map,o=new Map,n=new Map,a=0;for(let d of e){let u=t.get(fr(d.tierId,d.index));if(u){if(u.status==="error"){a+=1;continue}if(u.data){for(let m of u.data.line)r.set(m.xValue.getTime(),m);for(let m of u.data.band??[])o.set(m.xValue.getTime(),m);for(let[m,p]of Object.entries(u.data.lines??{})){let f=n.get(m);f||(f=new Map,n.set(m,f));for(let g of p)f.set(g.xValue.getTime(),g);}}}}let i=(d,u)=>d.xValue.getTime()-u.xValue.getTime(),s=[...r.values()].sort(i),c=[...o.values()].sort(i),l=Object.fromEntries([...n.entries()].map(([d,u])=>[d,[...u.values()].sort(i)]));return {line:s,band:c,lines:l,coverage:{earliestMs:s.length?s[0].xValue.getTime():void 0,latestMs:s.length?s[s.length-1].xValue.getTime():void 0,erroredTiles:a}}}function zP(e,t,r){let o=cn(e,t,0);return o.length===0?false:o.every(n=>{let a=r.get(fr(n.tierId,n.index));return a!=null&&(a.status==="loaded"||a.status==="empty")})}function rx(e,t,r){return cn(e,t,0).some(n=>{let a=r.get(fr(n.tierId,n.index));return a?.status==="loaded"&&(a.data?.line.length??0)>0})}function OP(e,t){if(!e.line.length)return false;let r=e.coverage.earliestMs,o=e.coverage.latestMs;return r==null||o==null?false:r<t.endMs&&o>t.startMs}function ox({viewport:e,targetTier:t,ladder:r,store:o,overscanTiles:n,prev:a}){let i=zP(e,t,o);if(i&&rx(e,t,o)){let c=cn(e,t,n),{line:l,band:d,lines:u,coverage:m}=tp(c,o);return {line:l,band:d,lines:u,renderTier:t,targetTier:t,isFallback:false,isStale:false,coverage:m}}let s=r.findIndex(c=>c.id===t.id);for(let c=s+1;c<r.length;c++){let l=r[c];if(rx(e,l,o)){let d=cn(e,l,n),{line:u,band:m,lines:p,coverage:f}=tp(d,o);return {line:u,band:m,lines:p,renderTier:l,targetTier:t,isFallback:true,isStale:false,coverage:f}}}if(i){let c=cn(e,t,n),{line:l,band:d,lines:u,coverage:m}=tp(c,o);return {line:l,band:d,lines:u,renderTier:t,targetTier:t,isFallback:false,isStale:false,coverage:m}}return a?OP(a,e)?{...a,targetTier:t,isFallback:true,isStale:false}:{line:a.line,band:a.band,lines:a.lines,renderTier:null,targetTier:t,isFallback:true,isStale:true,coverage:tx}:{line:[],band:[],lines:{},renderTier:null,targetTier:t,isFallback:false,isStale:false,coverage:tx}}var nx=new Map;function ax(e,t){switch(t.type){case "reset":return new Map;case "request":{let r=new Map(e);for(let o of t.ids){let n=r.get(o);(!n||n.status==="error")&&r.set(o,{status:"loading"});}return r}case "fulfilled":{let r=new Map(e);return r.set(t.id,{status:t.data.line.length>0?"loaded":"empty",data:t.data}),r}case "failed":{let r=new Map(e);return r.set(t.id,{status:"error",error:t.error}),r}default:return e}}function sx({refs:e,refsKey:t,store:r,tier:o,viewport:n,fetchTile:a,dispatch:i,concurrency:s,maxFutureMs:c}){let l=Je.useRef(e);l.current=e;let d=Je.useRef(n);d.current=n;let u=Je.useRef(new Map),m=Je.useCallback(()=>{for(let p of u.current.values())p.ac.abort();u.current.clear();},[]);return Je.useEffect(()=>{for(let[b,h]of u.current)h.tierId!==o.id&&(h.ac.abort(),u.current.delete(b));let p=l.current.filter(b=>{let h=fr(b.tierId,b.index),x=r.get(h);return x?x.status==="loading"&&!u.current.has(h):true}),f=(d.current.startMs+d.current.endMs)/2;p.sort((b,h)=>Math.abs((b.startMs+b.endMs)/2-f)-Math.abs((h.startMs+h.endMs)/2-f));let g=Math.max(0,s-u.current.size),y=p.slice(0,g);if(y.length!==0){i({type:"request",ids:y.map(b=>fr(b.tierId,b.index))});for(let b of y){let h=fr(b.tierId,b.index),x=new AbortController;u.current.set(h,{ac:x,tierId:b.tierId});let v=c!=null?Math.min(b.endMs,c):b.endMs;a(o,b.startMs,v,x.signal).then(S=>{x.signal.aborted||i({type:"fulfilled",id:h,data:S});}).catch(S=>{if(!x.signal.aborted){let w=S instanceof Error?S.message:String(S);i({type:"failed",id:h,error:new Error(`tile fetch failed (tile ${h}, tier ${o.id}): ${w}`)});}}).finally(()=>{u.current.delete(h);});}}},[t,r,a,o,i,s,c]),Je.useEffect(()=>m,[m]),{abortAll:m}}var dx=1.3,WP=25e4,UP=3;function KP(e,t,r){let o=t.tileSpanMs/t.bucketMs,n=Math.max(1,Math.floor(WP/o/r));return Math.min(Math.max(1,Math.ceil(.5*e/t.tileSpanMs)),n)}function px(e){let{fetchTile:t,ladder:r,nativeMs:o,viewport:n,widthPx:a,maxFutureMs:i,targetPointsPerPx:s=1,concurrency:c=3,tileCostSeriesCount:l=UP,resetKey:d}=e,u=Je.useMemo(()=>({targetPointsPerPx:s,nativeMs:o}),[s,o]),[m,p]=Je.useState(()=>kl(n.endMs-n.startMs,Math.max(1,a),r,u)),[f,g]=Je.useReducer(ax,nx),y=Je.useRef(n.endMs-n.startMs),b=Je.useRef(u);Je.useEffect(()=>{let z=n.endMs-n.startMs,W=kl(z,Math.max(1,a),r,u);if(W.id===m.id){b.current=u;return}let Z=kl(z,Math.max(1,a),r,b.current).id!==W.id,O=z/y.current;(Z||O>dx||O<1/dx)&&(y.current=z,b.current=u,p(W));},[n,a,r,m.id,u]);let h=n.endMs-n.startMs,x=Je.useMemo(()=>KP(h,m,l),[h,m,l]),v=Je.useMemo(()=>cn(n,m,x),[n,m,x]),S=Je.useMemo(()=>v.map(z=>fr(z.tierId,z.index)).join(","),[v]),w=Je.useRef(v);w.current=v;let P=Je.useRef(n);P.current=n;let T=Je.useRef(f);T.current=f;let{abortAll:k}=sx({refs:v,refsKey:S,store:f,tier:m,viewport:n,fetchTile:t,dispatch:g,concurrency:c,...i!=null?{maxFutureMs:i}:{}}),R=Je.useRef(null),I=Je.useRef(false);Je.useEffect(()=>{if(!I.current){I.current=true;return}k(),R.current=null,g({type:"reset"});},[k,d]);let E=Je.useMemo(()=>w.current.map(z=>`${fr(z.tierId,z.index)}:${f.get(fr(z.tierId,z.index))?.status??"\u2205"}`).join("|"),[S,f]),L=Je.useMemo(()=>{let z=ox({viewport:P.current,targetTier:m,ladder:r,store:T.current,overscanTiles:x,prev:R.current});return R.current=z,z},[E,m,r,x,n.startMs,n.endMs]),M=Je.useMemo(()=>w.current.some(z=>T.current.get(fr(z.tierId,z.index))?.status==="loading"),[E]),F=Je.useMemo(()=>{let z=w.current[0];return z?T.current.get(fr(z.tierId,z.index))?.status==="empty":false},[E]);return {tier:m,series:L,loading:M,atDataStart:F}}function op(e){let{initialViewport:t,...r}=e,[o,n]=Je.useState(t),a=px({...r,viewport:o}),i=Je.useCallback(c=>n(c),[]),s=Je.useCallback(c=>n(c),[]);return {viewport:o,onViewportChange:i,jumpTo:s,...a}}var YP={sm:"gap-4 px-6 py-8",md:"gap-5 px-8 py-12",lg:"gap-6 px-10 py-16"},JP={sm:"xs",md:"sm",lg:"md"},XP={sm:vt("bodySm"),md:vt("bodySm"),lg:vt("bodyMd")},jP={sm:"h-10 w-10",md:"h-12 w-12",lg:"h-16 w-16"},qP={sm:20,md:24,lg:32},QP={center:"items-center text-center [&_.empty-state-actions]:justify-center [&_.empty-state-actions]:text-center",start:"items-start text-left [&_.empty-state-actions]:justify-start [&_.empty-state-actions]:text-left"},ZP={mesh:"radial-gradient(at 20% 20%, rgba(68, 74, 225, 0.06) 0px, transparent 45%), radial-gradient(at 80% 80%, rgba(68, 74, 225, 0.045) 0px, transparent 45%), radial-gradient(at 50% 50%, rgba(68, 74, 225, 0.03) 0px, transparent 50%)","top-fade":"linear-gradient(to bottom, rgba(68, 74, 225, 0.06) 0%, rgba(68, 74, 225, 0.02) 60%, transparent 100%)",center:"radial-gradient(ellipse 600px 400px at center, rgba(68, 74, 225, 0.06) 0px, transparent 60%)",corners:"radial-gradient(at 0% 0%, rgba(68, 74, 225, 0.06) 0px, transparent 40%), radial-gradient(at 100% 100%, rgba(68, 74, 225, 0.045) 0px, transparent 40%)",bottom:"radial-gradient(ellipse 700px 300px at 50% 100%, rgba(68, 74, 225, 0.06) 0px, transparent 60%)",asymmetric:"radial-gradient(at 15% 30%, rgba(68, 74, 225, 0.06) 0px, transparent 45%), radial-gradient(at 85% 70%, rgba(68, 74, 225, 0.04) 0px, transparent 50%)"};function Tl({icon:e,title:t,description:r,primaryAction:o,secondaryAction:n,actions:a,size:i="md",alignment:s="center",variant:c="default",spotlightPattern:l="mesh",fullHeight:d=false,className:u}){let m=i==="sm"?"sm":"md",p=c==="spotlight",f=p?{background:ZP[l]}:void 0,g=()=>a?jsxRuntime.jsx("div",{className:"empty-state-actions mt-2 flex flex-wrap items-center gap-3",children:a}):o||n?jsxRuntime.jsxs("div",{className:"empty-state-actions mt-2 flex flex-col gap-3",children:[o&&(o.href?jsxRuntime.jsx(_,{variant:"secondary",size:m,onPress:o.onPress,isDisabled:o.isDisabled,isLoading:o.isLoading,href:o.href,children:o.label}):jsxRuntime.jsx(_,{variant:"secondary",size:m,onPress:o.onPress,isDisabled:o.isDisabled,isLoading:o.isLoading,children:o.label})),n&&jsxRuntime.jsx(st,{href:n.href||"#",variant:"muted",onPress:n.onPress,className:vt("labelMd"),children:n.label})]}):null;return jsxRuntime.jsxs("section",{"data-testid":"empty-state",role:"status","aria-live":"polite",className:tailwindMerge.twMerge("flex w-full flex-col rounded-xl text-text-primary",YP[i],QP[s],d?"h-full justify-center":"",p?"relative overflow-hidden":"",u),style:f,children:[e&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex items-center justify-center rounded-full border border-border-muted bg-background-muted text-text-secondary",jP[i]),children:jsxRuntime.jsx(V,{name:e,size:qP[i]})}),jsxRuntime.jsx(ir,{size:JP[i],tag:"h2",className:"text-text-secondary",children:t}),r&&jsxRuntime.jsx("p",{className:tailwindMerge.twMerge("max-w-xs text-text-secondary whitespace-pre-line",XP[i]),children:r}),g()]})}var $P=1440*60*1e3,e1=[{id:"5y",label:"5 years",days:5*365},{id:"year",label:"Year",days:365},{id:"month",label:"Month",days:30},{id:"week",label:"Week",days:7},{id:"day",label:"24h",days:1}],t1=[{id:"day",days:1},{id:"week",days:7},{id:"month",days:30}];function fx(e,t=Date.now){return t1.map(({id:r,days:o})=>({id:r,label:e[r],getRange:()=>{let n=new Date(t());return {after:dateFns.subDays(n,o),before:n}}}))}function Pl(e=Date.now){return e1.map(({id:t,label:r,days:o})=>({id:t,label:r,getRange:()=>{let n=e();return {after:new Date(n-o*$P),before:new Date(n)}}}))}function s1({selectionState:e,isDisabled:t}){let r=`${$e} w-full h-full flex items-center justify-center rounded-sm forced-color-adjust-none font-semibold`,o={none:"text-text-primary group-hover:bg-background-muted group-pressed:bg-background-muted",middle:["bg-background-selected group-hover:bg-background-muted forced-colors:group-hover:bg-[Highlight]","group-invalid:group-hover:bg-feedback-error-background forced-colors:group-invalid:group-hover:bg-[Mark]","group-pressed:bg-background-muted forced-colors:group-pressed:bg-[Highlight] forced-colors:text-[HighlightText]","group-invalid:group-pressed:bg-feedback-error-background forced-colors:group-invalid:group-pressed:bg-[Mark]"].join(" "),cap:"bg-action-default text-[color:var(--color-action-default-text)] group-invalid:bg-feedback-error-border forced-colors:bg-[Highlight] forced-colors:group-invalid:bg-[Mark] forced-colors:text-[HighlightText]"},n=t?"text-text-disabled forced-colors:text-text-disabled font-light":"";return [r,o[e],n].filter(Boolean).join(" ")}function qa({errorMessage:e,...t}){return jsxRuntime.jsxs(reactAriaComponents.RangeCalendar,{...t,children:[jsxRuntime.jsx(al,{}),jsxRuntime.jsxs(reactAriaComponents.CalendarGrid,{className:"w-full border-separate [border-spacing:0] [&_td]:p-0 [&_td]:!border-0",children:[jsxRuntime.jsx(il,{}),jsxRuntime.jsx(reactAriaComponents.CalendarGridBody,{children:r=>jsxRuntime.jsx(reactAriaComponents.CalendarCell,{date:r,className:"selection-start:rounded-s-full selection-end:rounded-e-full [td:last-child_&]:rounded-e-end group h-9 w-9 cursor-default text-sm border-0 outside-month:text-text-disabled invalid:selected:bg-feedback-error-background forced-colors:selected:bg-[Highlight] forced-colors:selected:text-[HighlightText] forced-colors:invalid:selected:bg-[Mark] [td:first-child_&]:rounded-s-full [&]:border-0",children:({formattedDate:o,isSelected:n,isSelectionStart:a,isSelectionEnd:i,isFocusVisible:s,isDisabled:c})=>jsxRuntime.jsx("span",{className:s1({selectionState:n&&(a||i)?"cap":n?"middle":"none",isDisabled:c}),children:o})})})]}),e&&jsxRuntime.jsx(reactAriaComponents.Text,{slot:"errorMessage",className:"text-sm text-feedback-error-text",children:e})]})}function bx(e){return e==="brand"?"primary":e==="default"||e==="secondary"||!e?"subtle":e}var c1={sm:"h-[var(--control-sm-height)] text-xs",md:"h-[var(--control-md-height)] text-sm",lg:"h-[var(--control-lg-height)] text-base",xl:"h-[var(--control-xl-height)] text-lg"},d1={sm:14,md:16,lg:18,xl:20},u1=({isSelected:e,isFirst:t,isLast:r,isDisabled:o,variant:n="subtle"})=>{let a=bx(n),i=a==="primary"?"focus-visible:outline-action-primary":"focus-visible:outline-[color:var(--color-action-secondary-text)]";return a==="subtle"?tailwindMerge.twMerge($e(),"focus-visible:outline-[color:var(--color-action-secondary-text)]","px-3 text-center transition cursor-pointer forced-color-adjust-none -ml-px first:ml-0 flex items-center justify-center h-full gap-2",e?"bg-background-muted text-text-primary font-medium forced-colors:!bg-[Highlight] forced-colors:!text-[HighlightText]":"text-text-secondary hover:bg-background-hover pressed:bg-background-hover forced-colors:!bg-[ButtonFace] forced-colors:!text-[ButtonText]",!r&&"border-r border-border-muted",o&&"bg-background-muted text-text-disabled forced-colors:!bg-[ButtonFace] forced-colors:!text-[GrayText] border-border-muted forced-colors:border-[GrayText] cursor-not-allowed"):tailwindMerge.twMerge($e(),i,"px-3 text-center transition cursor-pointer forced-color-adjust-none -ml-px first:ml-0 flex items-center justify-center h-full gap-2",e?"bg-action-primary text-[color:var(--color-action-primary-text)] font-semibold forced-colors:!bg-[Highlight] forced-colors:!text-[HighlightText]":"text-text-secondary hover:bg-background-hover pressed:bg-background-hover forced-colors:!bg-[ButtonFace] forced-colors:!text-[ButtonText] hover:font-semibold",!r&&"border-r border-border-muted",o&&"bg-background-muted text-text-disabled forced-colors:!bg-[ButtonFace] forced-colors:!text-[GrayText] border-border-muted forced-colors:border-[GrayText] cursor-not-allowed")};function El({options:e,value:t,onChange:r,size:o="md",className:n,isDisabled:a,variant:i="subtle",iconOnly:s=false,"aria-label":c}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("inline-flex overflow-hidden rounded-[var(--control-border-radius)]",bx(i)==="subtle"?"border border-border-muted":"border-2 border-border-muted",c1[o],n),role:"group","aria-label":c,children:e.map((l,d)=>{let u=s&&!!l.icon;return jsxRuntime.jsxs(reactAriaComponents.ToggleButton,{isSelected:t===l.id,onChange:()=>r(l.id),className:u1({isSelected:t===l.id,isFirst:d===0,isLast:d===e.length-1,isDisabled:a,variant:i}),isDisabled:a,"aria-label":l.label,children:[l.icon&&jsxRuntime.jsx(V,{name:l.icon,size:d1[o]}),u?jsxRuntime.jsx("span",{className:"sr-only",children:l.label}):jsxRuntime.jsx("span",{className:"inline-flex flex-col items-center after:content-[attr(data-label)] after:font-semibold after:h-0 after:overflow-hidden after:invisible","data-label":l.label,children:l.label})]},l.id)})})}function g1(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function sp(e){return g1(e)?e:(console.warn("Invalid date detected in TimeControls, using fallback:",e),new Date)}var Sx=120*1e3,b1=.02,wx={FIVE_MINUTES:0,FIFTEEN_MINUTES:1,HOUR:2,DAY:3,WEEK:4,MONTH:5,YEAR:6},x1=[{id:"FIFTEEN_MINUTES",label:"15m"},{id:"HOUR",label:"1h"},{id:"DAY",label:"1d"},{id:"WEEK",label:"1w"}];function Ml({dateRange:e,onDateRangeChange:t,windowSize:r,onWindowSizeChange:o,showWindowSize:n=true,showRangeSelector:a=true,allowDatePicker:i=false,lockWindowSize:s=false,showReset:c=true,restrictToSingleDay:l=false,presetRanges:d=[],windowSizeOptions:u=x1,autoAdjustWindowSize:m=false,className:p}){let[f,g]=Je.useState(0),y=Je.useRef(null),[b,h]=Je.useState(false),[x,v]=Je.useState(null),S=N=>{let D=(N.before.getTime()-N.after.getTime())/(1e3*60*60);return D<=24?"FIFTEEN_MINUTES":D<=72||D<=168?"HOUR":("DAY")};Je.useEffect(()=>{if(m&&!b&&o){let N=S(e);o(N);}},[e,m,b,o]);let w=N=>{let C;for(let D of d){let B=D.getRange(),Y=(B.before.getTime()-B.after.getTime())*b1,re=Math.abs(B.after.getTime()-N.after.getTime()),ue=Math.abs(B.before.getTime()-N.before.getTime());if(re>Y||ue>Y)continue;let $=re+ue;(!C||$<C.distance)&&(C={id:D.id,distance:$});}return C?.id},P=x&&d.some(N=>N.id===x.id)&&Math.abs(x.after-e.after.getTime())<=Sx&&Math.abs(x.before-e.before.getTime())<=Sx?x.id:w(e),T=sp(e.after),k=sp(e.before),R=new Date(k.getTime()-1),I={start:date.fromDate(T,date.getLocalTimeZone()),end:date.fromDate(R,date.getLocalTimeZone())};Je.useEffect(()=>{let N=new ResizeObserver(C=>{for(let D of C)g(D.contentRect.width);});return y.current&&N.observe(y.current),()=>{y.current&&N.unobserve(y.current);}},[]);let E=[...u].sort((N,C)=>wx[N.id]-wx[C.id]),L=N=>{let C=N.toString(),D=d.find(B=>B.id===C);if(D){let B=D.getRange();v({id:C,after:B.after.getTime(),before:B.before.getTime()}),h(false),t(B,{presetId:C});}},M=N=>{if(N?.start&&N?.end){v(null);let C=new Date(N.start.year,N.start.month-1,N.start.day,0,0,0,0),D=new Date(N.end.year,N.end.month-1,N.end.day+1,0,0,0,0);t({after:C,before:D});}},F=N=>{if(N){v(null);let C=new Date(N.year,N.month-1,N.day,0,0,0,0),D=new Date(N.year,N.month-1,N.day+1,0,0,0,0);t({after:C,before:D});}},z=N=>{o&&(h(true),o(N.toString()));},W=()=>{d.length>0&&L(d[0].id);},X=N=>sp(N).toLocaleDateString("en-US"),Z=E.map(N=>({id:N.id,label:N.label,value:N.id})),O=d.map(N=>({id:N.id,label:N.label,value:N.id})),j=s?jsxRuntime.jsx("div",{className:"flex items-center rounded-md border border-border-muted bg-background-muted px-3 py-2 text-sm text-text-secondary",children:E.find(N=>N.id===r)?.label||r}):jsxRuntime.jsx(Lo,{className:"w-full md:w-auto",selectedKey:r,onSelectionChange:z,items:Z,size:"md","aria-label":"Select Window Size",children:N=>jsxRuntime.jsx(cr,{id:N.id,"aria-label":N.label,size:"md",children:N.label},N.id)}),H=c&&!P&&d.length>0,A=l?jsxRuntime.jsx("div",{className:"flex items-center",children:jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{children:[jsxRuntime.jsxs(_,{className:"border-l pl-2 pr-2 hover:border-border-default hover:bg-background-muted hover:text-text-link-hover",variant:"secondary",children:[jsxRuntime.jsx(V,{name:"CalendarBlank",size:18}),jsxRuntime.jsx("span",{className:"ml-2 hidden md:block",children:X(e.after)})]}),jsxRuntime.jsx(gt,{className:"z-50 w-auto p-3",disableGroup:true,children:jsxRuntime.jsx(Va,{"aria-label":"Select date",value:date.parseDate(T.toISOString().split("T")[0]),onChange:F})})]})}):jsxRuntime.jsxs("div",{className:"flex items-center",children:[jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{children:[jsxRuntime.jsxs(_,{className:tailwindMerge.twMerge("border-l pl-2 pr-2 hover:border-border-default hover:bg-background-muted hover:text-text-link-hover",H&&"rounded-r-none"),variant:"secondary",children:[jsxRuntime.jsx(V,{name:"CalendarBlank",size:18}),!P&&jsxRuntime.jsx("span",{className:"ml-2 hidden md:block",children:`${X(e.after)} - ${X(R)}`})]}),jsxRuntime.jsx(gt,{className:"z-50 w-auto p-3",disableGroup:true,children:jsxRuntime.jsx(qa,{"aria-label":"Date range calendar",value:I,onChange:M})})]}),H&&jsxRuntime.jsx(_,{variant:"ghost",size:"md",onPress:W,children:"Reset"})]}),G=f<600;return jsxRuntime.jsx("div",{ref:y,className:tailwindMerge.twMerge("flex w-full flex-wrap items-center justify-between gap-4",p),children:G?jsxRuntime.jsxs("div",{className:"flex w-full justify-between",children:[jsxRuntime.jsxs("div",{className:"flex items-center",children:[i&&A,a&&d.length>0&&jsxRuntime.jsx(Lo,{selectedKey:P??"",onSelectionChange:L,items:O,size:"md","aria-label":"Select Date Range",children:N=>jsxRuntime.jsx(cr,{id:N.id,size:"md",children:N.label},N.id)})]}),jsxRuntime.jsx("div",{className:"flex items-center",children:n&&r&&j})]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-4",children:[i&&A,a&&d.length>0&&jsxRuntime.jsx(El,{options:d.map(N=>({id:N.id,label:N.label})),value:P??"",onChange:L,size:"sm",variant:"secondary","aria-label":"Select Date Range"})]}),jsxRuntime.jsx("div",{className:"flex items-center",children:n&&r&&j})]})})}var S1=1440*60*1e3,w1=6e4,Nx=(e,t)=>({startMs:t-e*S1,endMs:t}),N1=e=>({after:new Date(e.startMs),before:new Date(e.endMs)});function kx({source:e,title:t,initialRange:r,viewportEnd:o,yFormatter:n,yDomain:a,referenceLines:i,emptyState:s,presetRanges:c,tierToWindow:l,windowSizeOptions:d,height:u=360,hint:m,dataBounds:p,children:f}){let[g,y]=Je.useState(900),b=p?.endMs,[h,x]=Je.useState(()=>b??Date.now());Je.useEffect(()=>{if(b!=null){x(b);return}x(Date.now());let te=setInterval(()=>x(Date.now()),w1);return ()=>clearInterval(te)},[b]);let v=o?.getTime()??b,S=r?.days??30,w=Je.useMemo(()=>Nx(S,v??Date.now()),[S,v]),P=h,T=Je.useMemo(()=>({startMs:p?.startMs??0,endMs:h}),[p?.startMs,h]),k=te=>{let ae=Math.min(te.endMs-te.startMs,T.endMs-T.startMs),ie=Math.max(Math.min(te.endMs,T.endMs),T.startMs+ae);return {startMs:ie-ae,endMs:ie}},[R,I]=Je.useState(null),[E,L]=Je.useState(null),M=R??w,F=op({fetchTile:e.fetchTile,ladder:e.ladder,nativeMs:e.nativeMs,initialViewport:w,widthPx:g,maxFutureMs:P,tileCostSeriesCount:e.tileCostSeriesCount,resetKey:e.resetKey}),z=Je.useMemo(()=>Pl(()=>v??Date.now()),[v]),W=c??z,X=()=>{if(E&&"presetId"in E){let te=W.find(ae=>ae.id===E.presetId);if(te){let ae=te.getRange();return {startMs:ae.after.getTime(),endMs:ae.before.getTime()}}}return E&&"range"in E?E.range:Nx(S,v??Date.now())},{line:Z,coverage:O,renderTier:j,targetTier:H,isFallback:A,isStale:G}=F.series,N=j?j.bucketMs*1.5:0,C=te=>te==null?"\u2014":new Date(te).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),D=(te,ae)=>{let ie=ae-te<1728e5?{month:"short",day:"numeric",hour:"numeric",minute:"2-digit"}:{month:"short",day:"numeric",year:"numeric"},ye=new Intl.DateTimeFormat("en-US",ie);return `${ye.format(new Date(te))} \u2013 ${ye.format(new Date(ae))}`},B=F.viewport.startMs!==M.startMs||F.viewport.endMs!==M.endMs,Y=G||F.loading&&O.earliestMs==null,re=(F.viewport.endMs-F.viewport.startMs)*.03,ue=!Y&&O.earliestMs!=null&&O.earliestMs>F.viewport.startMs+re,$=!F.loading&&O.earliestMs==null&&O.latestMs==null&&Z.length===0&&!G,se=f({series:F.series,gapMs:N}),He=Je.isValidElement(se)&&se.type===Je.Fragment?se.props.children:se;return jsxRuntime.jsxs("div",{className:"flex flex-col gap-3",children:[jsxRuntime.jsx(Ml,{dateRange:N1(F.viewport),onDateRangeChange:(te,ae)=>{let ie=k({startMs:te.after.getTime(),endMs:te.before.getTime()});L(ae?.presetId?{presetId:ae.presetId}:{range:ie}),I(ie),F.jumpTo(ie);},windowSize:l[H.id],windowSizeOptions:d,lockWindowSize:true,presetRanges:W,allowDatePicker:true,showReset:false}),jsxRuntime.jsxs("div",{className:"flex flex-wrap items-center gap-3 text-xs text-text-secondary",children:[jsxRuntime.jsxs("span",{children:["Window"," ",jsxRuntime.jsx("span",{className:"font-medium text-text-primary",children:D(F.viewport.startMs,F.viewport.endMs)})]}),jsxRuntime.jsx("span",{className:"text-text-tertiary",children:"\u2022"}),jsxRuntime.jsxs("span",{children:["Resolution ",jsxRuntime.jsx("span",{className:"font-medium text-text-primary",children:j?.id??H.id}),A&&jsxRuntime.jsxs("span",{className:"text-text-tertiary",children:[" \xB7 loading ",H.id]})]}),F.loading&&jsxRuntime.jsx("span",{className:"text-text-tertiary",children:"loading\u2026"}),ue&&jsxRuntime.jsxs("span",{className:"text-text-tertiary",children:["showing available history from ",C(O.earliestMs)]}),!ue&&!Y&&F.atDataStart&&jsxRuntime.jsx("span",{className:"text-text-tertiary",children:"no earlier data loaded"}),B&&jsxRuntime.jsx(_,{variant:"ghost",size:"sm",onPress:()=>{let te=k(X());I(te),F.jumpTo(te);},children:"\u27F2 Reset"})]}),jsxRuntime.jsx("div",{className:"relative overflow-hidden rounded-md border border-border-subtle",style:{height:u},children:$?jsxRuntime.jsx(Tl,{title:s.title,description:s.description}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Nl,{title:t,viewport:F.viewport,panBounds:T,onViewportChange:F.onViewportChange,onPlotWidthChange:y,...n&&{yFormatter:n},...a&&{yDomain:a},...i&&{referenceLines:i},children:He}),F.loading&&jsxRuntime.jsx("div",{className:"pointer-events-none absolute inset-x-0 top-0 h-0.5 animate-pulse bg-[var(--color-viz-categorical-1)] opacity-60"})]})}),m&&jsxRuntime.jsx("p",{className:"text-xs text-text-tertiary",children:m})]})}function Ui({count:e,label:t="results",isLoading:r=false,className:o=""}){if(r)return jsxRuntime.jsx("div",{className:`flex items-center ${o}`,children:jsxRuntime.jsx(U,{width:80,height:16})});let n=t.endsWith("s")?t.slice(0,-1):t,a=e===1?n:t;return jsxRuntime.jsxs("div",{className:`text-sm text-text-secondary whitespace-nowrap ${o}`,children:[e.toLocaleString()," ",a]})}var M1=e=>{let t=Jt({isInvalid:e.isInvalid,isDisabled:e.isDisabled,isFocused:e.isFocused,transparent:e.transparent,size:e.size}),r=[e.showSearchIcon?"":"pl-3",e.isClearable&&e.hasValue||e.isPassword?"pr-8":"pr-3"].join(" ");return tailwindMerge.twMerge(t,r,e.className)};function Gr({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,transparent:i,showSearchIcon:s,isClearable:c,onClear:l,type:d,validationResult:u,reserveErrorSpace:m=true,isLoading:p=false,descriptionPlacement:f="below",...g}){let[y,b]=Je__namespace.default.useState(false),{isFocused:h,handleFocus:x,handleBlur:v}=Br(),S=d==="password",w=qs(p,300);return jsxRuntime.jsx(reactAriaComponents.TextField,{...g,isRequired:a,className:Ee(g.className,"group flex flex-col"),children:({isDisabled:P,isInvalid:T})=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(Ye,{size:o,tooltip:n,description:f==="tooltip"||f==="inline"?t:void 0,descriptionPlacement:f,isRequired:a,children:e}),jsxRuntime.jsxs(kt,{children:[s&&jsxRuntime.jsx("div",{className:"pointer-events-none absolute top-1/2 -translate-y-1/2 transform flex items-center z-10",style:{left:9},children:(()=>{let k={sm:14,md:16,lg:18,xl:20}[o];return w?jsxRuntime.jsx(Mo,{size:k,color:"text-text-secondary"}):jsxRuntime.jsx(V,{name:"MagnifyingGlass",size:k,className:`transition-colors ${h?"text-action-brand":"text-text-secondary"}`})})()}),jsxRuntime.jsx(Zs,{size:o,disabled:P,type:S?y?"text":"password":d,name:g.name,autoComplete:g.autoComplete,value:g.value,defaultValue:g.defaultValue,placeholder:g.placeholder,onFocus:k=>x(k,g.onFocus),onBlur:k=>v(k,g.onBlur),onChange:k=>g.onChange?.(k.target.value),style:s?{paddingLeft:{sm:28,md:32,lg:36,xl:37}[o]}:void 0,className:M1({isInvalid:T,isDisabled:P,isFocused:h,size:o,transparent:i,showSearchIcon:s,isClearable:c,hasValue:!!g.value,isPassword:S,className:typeof g.className=="string"?g.className:void 0})}),c&&g.value&&!P&&jsxRuntime.jsx(Ti,{onClick:()=>{l?l():g.onChange&&g.onChange("");},size:o}),S&&!P&&jsxRuntime.jsx("button",{type:"button",onClick:()=>b(!y),className:"absolute right-3 top-1/2 -translate-y-1/2 transform text-text-secondary hover:text-text-primary","aria-label":y?"Hide password":"Show password",onMouseDown:k=>{k.preventDefault(),k.stopPropagation();},children:jsxRuntime.jsx(V,{name:y?"EyeSlash":"Eye",size:o==="sm"?16:20,className:"text-text-primary"})})]}),m?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(xe,{size:o,children:r}):typeof r=="function"&&u?jsxRuntime.jsx(xe,{size:o,children:r(u)}):t&&f==="below"?jsxRuntime.jsx(Me,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(xe,{size:o,className:"mt-1",children:r}):typeof r=="function"&&u?jsxRuntime.jsx(xe,{size:o,className:"mt-1",children:r(u)}):t&&f==="below"?jsxRuntime.jsx(Me,{size:o,className:"mt-1",children:t}):null})]})})}function Jn({value:e,onChange:t,onClear:r,placeholder:o="Search...",size:n="sm",className:a="",isLoading:i=false}){return jsxRuntime.jsx("div",{className:`flex-1 min-w-0 sm:max-w-sm ${a}`,children:jsxRuntime.jsx(Gr,{value:e,onChange:t,placeholder:o,showSearchIcon:true,isClearable:!!e&&!!r,onClear:r,size:n,"aria-label":o,reserveErrorSpace:false,isLoading:i})})}function Ki({value:e,options:t,onChange:r,direction:o,onDirectionChange:n,showLabel:a=true,size:i="sm",className:s="",compact:c=false}){let[l,d]=Je.useState(false),u=o!==void 0&&n!==void 0,m=t.find(p=>p.value===e);return c?jsxRuntime.jsxs("div",{className:`flex items-center gap-2 ${s}`,children:[jsxRuntime.jsx(_,{variant:"secondary",size:i,icon:"ArrowsDownUp","aria-label":`Sort by: ${m?.label||"Select"}`,onPress:()=>d(true)}),jsxRuntime.jsx(bt,{isOpen:l,onClose:()=>d(false),title:"Sort by",contentPadding:false,children:jsxRuntime.jsx(reactAriaComponents.ListBox,{items:t.map(p=>({id:p.value,label:p.label,value:p.value})),className:"w-full bg-background-surface p-0 outline-0 [&_[role=option]]:border-b [&_[role=option]]:border-border-default [&_[role=option]:last-child]:border-0 [&_[role=option]]:!px-6 [&_[role=option]]:!py-4 [&_[role=option]]:rounded-none",selectionMode:"single",selectedKeys:e?[e]:[],onSelectionChange:p=>{let f=Array.from(p)[0];f!=null&&(r(f),d(false));},children:p=>jsxRuntime.jsx(cr,{id:p.id,textValue:p.label,children:jsxRuntime.jsx("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap min-w-0 flex-1",children:p.label})},p.id)})})]}):jsxRuntime.jsxs("div",{className:`flex items-center gap-2 ${s}`,children:[a&&jsxRuntime.jsx("span",{className:"text-sm text-text-secondary whitespace-nowrap",children:"Sort by:"}),jsxRuntime.jsx(Lo,{selectedKey:e,onSelectionChange:p=>r(p),size:i,className:"min-w-32",items:t.map(p=>({id:p.value,label:p.label,value:p.value})),renderItem:p=>p.label,"aria-label":"Sort by",reserveErrorSpace:false}),u&&jsxRuntime.jsx(_,{variant:"ghost",size:i,onClick:()=>n(o==="asc"?"desc":"asc"),"aria-label":`Sort ${o==="asc"?"descending":"ascending"}`,className:"p-1.5",children:o==="asc"?jsxRuntime.jsx(lucideReact.ArrowUp,{className:"w-4 h-4"}):jsxRuntime.jsx(lucideReact.ArrowDown,{className:"w-4 h-4"})})]})}function Mx({search:e,searchMobileMode:t="expanded",filters:r=[],onRemoveFilter:o,onClearAllFilters:n,onManageFilters:a,exportControl:i,maxVisibleFilterChips:s=3,sort:c,resultsCount:l,leftControls:d,onManageColumns:u,columnPicker:m,customControls:p,actions:f,interactionMode:g="auto",sticky:y,stickyTop:b="0",zIndex:h=10,className:x="",style:v}){let S=r.length>0;if(!(e||S||a||c||l||d||u||m||p||f||i))return null;let P=y?"sticky bg-background-surface":"",T=y?{top:b,zIndex:h}:{};return jsxRuntime.jsxs("div",{className:`@container flex flex-col gap-3 bg-background-surface py-3 border-b border-border-default ${P} ${x}`,style:{...v,...T},children:[jsxRuntime.jsxs("div",{className:"hidden @[640px]:flex @[640px]:items-center @[640px]:justify-between @[640px]:gap-4",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0",children:[d,d&&l&&jsxRuntime.jsx("div",{className:"h-4 w-px bg-border-default"}),l&&jsxRuntime.jsx(Ui,{count:l.count,label:l.label,isLoading:l.isLoading}),l&&c&&jsxRuntime.jsx("div",{className:"h-4 w-px bg-border-default"}),c&&jsxRuntime.jsx(Ki,{value:c.value,options:c.options,onChange:c.onChange,showLabel:c.showLabel,direction:c.direction,onDirectionChange:c.onDirectionChange}),u?jsxRuntime.jsx(_,{variant:"secondary",size:"sm",icon:"Columns",onClick:u,children:"Columns"}):m,S&&o&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[r.slice(0,s).map(k=>jsxRuntime.jsxs(po,{variant:"primary",size:"sm",onRemove:()=>o(k.id),isRemovable:true,children:[k.label,": ",k.value]},k.id)),r.length>s&&a&&jsxRuntime.jsxs(_,{variant:"ghost",size:"sm",onClick:a,className:"text-text-secondary hover:text-text-primary whitespace-nowrap",children:["+",r.length-s," more"]}),n&&jsxRuntime.jsx(_,{variant:"ghost",size:"sm",onClick:n,className:"text-text-secondary hover:text-text-primary whitespace-nowrap",children:"Clear all"})]})]}),jsxRuntime.jsx("div",{className:"flex items-center gap-3 flex-shrink-0",children:p||jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[f&&f.items.length>0&&jsxRuntime.jsx(jsxRuntime.Fragment,{children:f.items.map(k=>jsxRuntime.jsx(_,{variant:k.variant||"secondary",size:"sm",icon:k.icon,onPress:k.onClick,isDisabled:k.disabled,children:k.label},k.id))}),e&&jsxRuntime.jsx("div",{className:"w-64",children:jsxRuntime.jsx(Jn,{value:e.value,onChange:e.onChange,onClear:e.onClear,placeholder:e.placeholder,isLoading:e.isLoading})}),a&&jsxRuntime.jsx(_,{variant:"secondary",size:"sm",icon:"Sliders",badgeNumber:r.length>0?r.length:void 0,onClick:a,children:"Filters"}),i&&jsxRuntime.jsx(_,{variant:"secondary",size:"sm",icon:"Upload",onClick:i.onClick,isDisabled:i.isDisabled,children:i.label})]})})]}),jsxRuntime.jsxs("div",{className:"@[640px]:hidden",children:[jsxRuntime.jsx("div",{className:"flex flex-col gap-3 mb-3",children:jsxRuntime.jsx("div",{className:"flex items-center gap-3",children:p?jsxRuntime.jsx("div",{className:"flex-1",children:p}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[f&&f.items.length>0&&jsxRuntime.jsx(Da,{items:f.items.map(k=>({id:k.id,name:k.label,iconName:k.icon,variant:k.variant==="destructive"?"destructive":"primary",disabled:k.disabled,onAction:k.onClick})),align:"left",size:"sm",children:jsxRuntime.jsx(_,{variant:"secondary",size:"sm",icon:"DotsThreeVertical","aria-label":f.menuLabel||"Actions"})}),e&&jsxRuntime.jsx("div",{className:"flex-1",children:jsxRuntime.jsx(Jn,{value:e.value,onChange:e.onChange,onClear:e.onClear,placeholder:e.placeholder,isLoading:e.isLoading})}),a&&jsxRuntime.jsx(_,{variant:"secondary",size:"sm",icon:"Sliders",badgeNumber:r.length>0?r.length:void 0,onClick:a,"aria-label":`Filters${r.length>0?` (${r.length} active)`:""}`}),i&&jsxRuntime.jsx(_,{variant:"secondary",size:"sm",icon:"Upload",onClick:i.onClick,isDisabled:i.isDisabled,children:i.label})]})})}),jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-3",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[d,l&&jsxRuntime.jsx(Ui,{count:l.count,label:l.label,isLoading:l.isLoading})]}),jsxRuntime.jsx("div",{className:"flex items-center gap-2",children:c&&jsxRuntime.jsx(Ki,{value:c.value,options:c.options,onChange:c.onChange,showLabel:false,direction:c.direction,onDirectionChange:c.onDirectionChange,compact:g!=="desktop"})})]})]})]})}function Lx({filters:e,onRemove:t,onClearAll:r,onManageFilters:o,maxVisibleChips:n=3,mode:a="chips",showManageButton:i=true,size:s="sm",className:c=""}){let l=e.length>0,d=e.slice(0,n),u=Math.max(0,e.length-n),m=u>0,p=a==="button"&&!!o,f=a==="chips"&&i&&!!o;if(!l&&!p&&!f)return null;let g=p&&jsxRuntime.jsxs(_,{variant:"secondary",size:s,onClick:o,className:"whitespace-nowrap",children:[e.length," ",e.length===1?"filter":"filters"]}),y=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[f&&jsxRuntime.jsx(_,{variant:"secondary",size:s,icon:"Sliders",onClick:o,className:"whitespace-nowrap",children:"Filters"}),l&&d.map(h=>jsxRuntime.jsxs(po,{variant:"secondary",size:s,onRemove:()=>t(h.id),isRemovable:true,children:[h.label,": ",h.value]},h.id)),l&&m&&o&&jsxRuntime.jsxs(_,{variant:"ghost",size:s,onClick:o,className:"text-text-secondary hover:text-text-primary whitespace-nowrap",children:["+",u," more"]}),l&&r&&jsxRuntime.jsx(_,{variant:"ghost",size:s,onClick:r,className:"text-text-secondary hover:text-text-primary whitespace-nowrap",children:"Clear all"})]}),b=a==="button"?g:y;return jsxRuntime.jsx("div",{className:`flex flex-wrap items-center gap-2 ${c}`,children:b})}function V1(e,t,r){return {field:e,operator:t,value:r}}function z1(e,t="AND"){return {logic:t,conditions:e}}function Yi(){return {logic:"AND",conditions:[]}}function Il(e){return !e||e.conditions.length===0?true:e.conditions.every(t=>"conditions"in t?Il(t):false)}function O1(e,t){if(!e)return [];let r=new Map(t?.map(i=>[i.field,i])),o=new Map;function n(i){if("conditions"in i)i.conditions.forEach(s=>n(s));else {let s=o.get(i.field)||[];s.push(i),o.set(i.field,s);}}e.conditions.forEach(i=>n(i));let a=[];for(let[i,s]of o.entries()){let c=r.get(i),l=c?.label||i,d=[],u=[],m=[];for(let p of s)p.operator==="in"&&Array.isArray(p.value)?d.push(...p.value):p.operator==="eq"?typeof p.value!="boolean"&&!Array.isArray(p.value)?d.push(p.value):m.push(p):["gte","gt","lte","lt"].includes(p.operator)?u.push({operator:p.operator,value:typeof p.value=="boolean"||Array.isArray(p.value)?String(p.value):p.value}):m.push(p);if(d.length>0){let f=Array.from(new Set(d)).map(g=>c?.values?.find(b=>String(b.value)===String(g))?.label??g);a.push({id:`${i}-in`,label:l,value:f.join(", ")});}if(u.length>0){let p=u.find(g=>g.operator==="gte"||g.operator==="gt"),f=u.find(g=>g.operator==="lte"||g.operator==="lt");if(p&&f){let g=p.operator==="gte"?"\u2265":">",y=f.operator==="lte"?"\u2264":"<";a.push({id:`${i}-range`,label:l,value:`${g} ${p.value} and ${y} ${f.value}`});}else for(let g of u){let y;g.operator==="gte"?y="\u2265":g.operator==="gt"?y=">":g.operator==="lte"?y="\u2264":y="<",a.push({id:`${i}-${g.operator}`,label:l,value:`${y} ${g.value}`});}}for(let p of m){let f;p.operator==="neq"?f=`\u2260 ${p.value}`:p.operator==="contains"?f=`contains "${p.value}"`:p.operator==="startsWith"?f=`starts with "${p.value}"`:p.operator==="endsWith"?f=`ends with "${p.value}"`:f=String(p.value),a.push({id:`${i}-${p.operator}`,label:l,value:f});}}return a}function pn(e,t){let r=e||Yi();return {...r,conditions:[...r.conditions,t]}}function Xn(e,t){if(!e)return Yi();let r=e.conditions.filter(o=>"conditions"in o?Xn(o,t).conditions.length>0:o.field!==t);return {...e,conditions:r}}function jn(e){if(!e)return [];let t=new Set;function r(o){"conditions"in o?o.conditions.forEach(r):t.add(o.field);}return e.conditions.forEach(r),Array.from(t)}function Ax({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,isDisabled:i,isInvalid:s,showCalendar:c=true,reserveErrorSpace:l=true,validationResult:d,className:u,...m}){let[p,f]=Je.useState(false),g=y=>{m.onChange&&y&&m.onChange(y),f(false);};return jsxRuntime.jsxs(reactAriaComponents.DateField,{...m,isDisabled:i,isRequired:a,isInvalid:s,className:Ee(u,"flex flex-col gap-1"),children:[e&&jsxRuntime.jsx(Ye,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(kt,{children:jsxRuntime.jsxs("div",{className:"relative w-full",children:[jsxRuntime.jsx(Ji,{size:o,isDisabled:i,isInvalid:s,hasCalendar:c}),c&&!i&&jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{isOpen:p,onOpenChange:f,children:[jsxRuntime.jsx(_,{variant:"unstyled",className:"absolute right-2 top-1/2 -translate-y-1/2 flex h-8 w-8 items-center justify-center rounded hover:bg-background-hover text-text-secondary hover:text-text-primary transition-colors","aria-label":"Open calendar",children:jsxRuntime.jsx(V,{name:"Calendar",size:18})}),jsxRuntime.jsx(reactAriaComponents.Popover,{className:"bg-background-surface rounded-lg border border-border-default shadow-xl",children:jsxRuntime.jsx(reactAriaComponents.Dialog,{className:"p-4 outline-none",children:jsxRuntime.jsx(Va,{value:m.value,onChange:g,minValue:m.minValue,maxValue:m.maxValue,isDisabled:i,isReadOnly:m.isReadOnly,isDateUnavailable:m.isDateUnavailable})})})]})]})}),l?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(xe,{size:o,children:r}):typeof r=="function"&&d?jsxRuntime.jsx(xe,{size:o,children:r(d)}):t?jsxRuntime.jsx(Me,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(xe,{size:o,className:"mt-1",children:r}):typeof r=="function"&&d?jsxRuntime.jsx(xe,{size:o,className:"mt-1",children:r(d)}):t?jsxRuntime.jsx(Me,{size:o,className:"mt-1",children:t}):null})]})}function X1({isPlaceholder:e,isDisabled:t,size:r="md"}){return tailwindMerge.twMerge("inline-block box-content px-0.5 rounded outline-none tabular-nums text-center transition-colors",{sm:"text-base md:text-xs",md:"text-base md:text-sm",lg:"text-base",xl:"text-lg"}[r],e?"text-text-disabled italic":"text-text-primary",t?"text-text-disabled cursor-not-allowed":"cursor-text",!t&&"hover:bg-background-hover","data-[focused]:bg-background-selected data-[focused]:text-text-primary")}function Ji({size:e="md",isDisabled:t,isInvalid:r,hasCalendar:o,className:n,...a}){return jsxRuntime.jsx(reactAriaComponents.DateInput,{className:tailwindMerge.twMerge(_o({isInvalid:r,isDisabled:t}),"px-3 py-2 flex items-center gap-0.5 w-full",o&&"pr-10",n),...a,children:i=>jsxRuntime.jsx(reactAriaComponents.DateSegment,{segment:i,className:X1({isPlaceholder:i.isPlaceholder,isDisabled:!i.isEditable||t,size:e})})})}function Fl({label:e,description:t,errorMessage:r,...o}){return jsxRuntime.jsxs(reactAriaComponents.DateRangePicker,{...o,className:Ee(o.className,"group flex flex-col gap-1"),children:[e&&jsxRuntime.jsx(Ye,{children:e}),jsxRuntime.jsxs(pg,{className:"w-auto min-w-[208px]",children:[jsxRuntime.jsx(Ji,{slot:"start",className:"px-2 py-1.5 text-sm"}),jsxRuntime.jsx("span",{"aria-hidden":"true",className:"text-text-primary group-disabled:text-text-disabled forced-colors:text-[ButtonText] group-disabled:forced-colors:text-[GrayText]",children:"\u2013"}),jsxRuntime.jsx(Ji,{slot:"end",className:"flex-1 px-2 py-1.5 text-sm"}),jsxRuntime.jsx(_,{variant:"icon",className:"mr-1 w-6 rounded outline-offset-0",children:jsxRuntime.jsx(lucideReact.CalendarIcon,{"aria-hidden":true,className:"h-4 w-4"})})]}),t&&jsxRuntime.jsx(Me,{children:t}),typeof r=="string"?jsxRuntime.jsx(xe,{children:r}):null,jsxRuntime.jsx(gt,{children:jsxRuntime.jsx(qa,{})})]})}var rR=e=>{let t=Jt({isInvalid:e.isInvalid,isDisabled:e.isDisabled,isFocused:e.isFocused,transparent:e.transparent,size:e.size});return tailwindMerge.twMerge(t,"pr-9","[appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",e.className)};function Xi({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,transparent:i,validationResult:s,reserveErrorSpace:c=true,descriptionPlacement:l="below",...d}){let u=Je.useId(),{isFocused:m,handleFocus:p,handleBlur:f}=Br();return jsxRuntime.jsx(reactAriaComponents.NumberField,{...d,id:u,isRequired:a,className:Ee(d.className,"group flex flex-col gap-1"),step:d.step??1,onChange:g=>{typeof g=="number"&&(d.maxValue!=null&&g>d.maxValue?d.onChange?.(d.maxValue):d.minValue!=null&&g<d.minValue?d.onChange?.(d.minValue):d.onChange?.(g));},isInvalid:!!r||typeof d.value=="number"&&(d.maxValue!=null&&d.value>d.maxValue||d.minValue!=null&&d.value<d.minValue),children:({isDisabled:g,isInvalid:y})=>jsxRuntime.jsxs("div",{className:"flex flex-col gap-1",children:[e&&jsxRuntime.jsx(Ye,{size:o,tooltip:n,description:l==="tooltip"||l==="inline"?t:void 0,descriptionPlacement:l,isRequired:a,htmlFor:u,children:e}),jsxRuntime.jsx("div",{className:"relative",children:jsxRuntime.jsxs(reactAriaComponents.Group,{className:"relative",children:[jsxRuntime.jsx(reactAriaComponents.Input,{onFocus:h=>p(h,d.onFocus),onBlur:h=>f(h,d.onBlur),className:rR({isInvalid:y||!!r,isDisabled:g,isFocused:m,transparent:i,size:o,className:typeof d.className=="string"?d.className:void 0})}),jsxRuntime.jsxs("div",{className:"absolute inset-y-[2px] right-[2px] flex flex-col divide-y divide-border-default border-l border-border-default overflow-hidden rounded-r-[calc(var(--control-border-radius)-2px)]",children:[jsxRuntime.jsx(reactAriaComponents.Button,{slot:"increment",isDisabled:g,className:"flex h-1/2 w-7 items-center justify-center bg-background-input hover:bg-background-input-hover active:bg-background-input-active disabled:cursor-not-allowed disabled:opacity-50",children:jsxRuntime.jsx(V,{name:"CaretUp",size:14})}),jsxRuntime.jsx(reactAriaComponents.Button,{slot:"decrement",isDisabled:g,className:"flex h-1/2 w-7 items-center justify-center bg-background-input hover:bg-background-input-hover active:bg-background-input-active disabled:cursor-not-allowed disabled:opacity-50",children:jsxRuntime.jsx(V,{name:"CaretDown",size:14})})]})]})}),c?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:r?jsxRuntime.jsx(xe,{size:o,children:typeof r=="function"?r(s):r}):t&&l==="below"?jsxRuntime.jsx(Me,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:r?jsxRuntime.jsx(xe,{size:o,className:"mt-1",children:typeof r=="function"?r(s):r}):t&&l==="below"?jsxRuntime.jsx(Me,{size:o,className:"mt-1",children:t}):null})]})})}var mp={sm:{track:"h-4 w-7",handle:"h-3.5 w-3.5",text:"text-xs"},md:{track:"h-5 w-9",handle:"h-4 w-4",text:"text-sm"},lg:{track:"h-6 w-11",handle:"h-5 w-5",text:"text-base"},xl:{track:"h-7 w-14",handle:"h-6 w-6",text:"text-lg"}};function aR({isSelected:e,isDisabled:t,size:r="md"}){let o="flex px-px items-center shrink-0 cursor-default rounded-full transition duration-200 ease-in-out shadow-inner border border-transparent",n=mp[r].track,a=$e,i="focus-visible:outline-action-primary",s="";return e?s="bg-action-primary forced-colors:!bg-[Highlight] group-pressed:bg-action-primary-hover":s="bg-border-input group-pressed:bg-border-focus",[o,n,a,i,s,t?"bg-background-muted forced-colors:group-selected:!bg-[GrayText] forced-colors:border-[GrayText]":""].filter(Boolean).join(" ")}function iR({isSelected:e,isDisabled:t,size:r="md"}){let o="transform rounded-full bg-background-surface outline-none shadow transition duration-200 ease-in-out",n=mp[r].handle;return [o,n,e?"translate-x-[100%]":"translate-x-0",t?"forced-colors:outline-[GrayText]":""].filter(Boolean).join(" ")}function Bl({children:e,variant:t="primary",size:r="md",...o}){return jsxRuntime.jsx(reactAriaComponents.Switch,{...o,className:Ee(o.className,`relative group flex items-center gap-2 ${mp[r].text} text-text-primary transition disabled:text-text-disabled forced-colors:disabled:text-[GrayText]`),children:n=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:aR({...n,size:r}),children:jsxRuntime.jsx("span",{className:iR({...n,size:r})})}),e]})})}function Bx(e){return new Intl.NumberFormat("en-US").format(e)}function Vx({isOpen:e,onClose:t,facetConfigs:r,facetCounts:o={},currentFilters:n,onApply:a,onClear:i,title:s="Filters",resultCount:c}){let[l,d]=Je.useState(n),[u,m]=Je.useState({}),[p,f]=Je.useState({}),[g,y]=Je.useState(null),{isMobile:b}=or(),h=Je.useMemo(()=>r.some(C=>C.group),[r]),{groups:x,ungroupedFacets:v,facetsByGroup:S}=Je.useMemo(()=>{let C=new Set,D=[],B={};for(let Y of r)Y.group?(C.has(Y.group)||(C.add(Y.group),B[Y.group]=[]),B[Y.group].push(Y)):D.push(Y);return {groups:Array.from(C),ungroupedFacets:D,facetsByGroup:B}},[r]);Je.useEffect(()=>{e&&(d(n),m({}),f({}),y(!b&&x.length>0?x[0]:null));},[e,n,x,b]);let w=Je.useMemo(()=>!l||Il(l)?0:jn(l).length,[l]),P=()=>{a(l),t();},T=()=>{let C=Yi();d(C),i?i():a(C),t();},k=C=>{if(!l)return [];if(!jn(l).includes(C))return [];let B=[];function Y(re){if(re)for(let ue of re.conditions)"conditions"in ue?Y(ue):ue.field===C&&ue.operator==="in"&&Array.isArray(ue.value)&&B.push(...ue.value.map(String));}return Y(l),B},R=(C,D,B)=>{let Y=Xn(l,C);D!==void 0&&(Y=pn(Y,{field:C,operator:"gte",value:D})),B!==void 0&&(Y=pn(Y,{field:C,operator:"lte",value:B})),d(Y);},I=C=>{if(!l)return;let D;function B(Y){if(Y)for(let re of Y.conditions)"conditions"in re?B(re):re.field===C&&re.operator==="eq"&&typeof re.value=="boolean"&&(D=re.value);}return B(l),D},E=(C,D)=>{let B=Xn(l,C);D!==void 0&&(B=pn(B,{field:C,operator:"eq",value:D})),d(B);},L=(C,D,B)=>{let Y=Xn(l,C);D&&(Y=pn(Y,{field:C,operator:"gte",value:D.toString()})),B&&(Y=pn(Y,{field:C,operator:"lte",value:B.toString()})),d(Y);},M=C=>{let D=S[C]||[],B=l?jn(l):[];return D.filter(Y=>B.includes(Y.field)).length},F="pr-9 bg-background-muted/50",z="border-t border-border-muted",W="text-sm font-medium text-text-link-default",X=C=>jsxRuntime.jsx("span",{className:W,children:C}),Z=C=>{let D=o[C.field]||{},B=u[C.field]||"",Y=[];C.values?Y=C.values.map($=>({value:String($.value),label:$.label,count:D[String($.value)]})):Y=Object.entries(D).map(([$,se])=>({value:$,label:$,count:se}));let re=Y.length;if(B){let $=B.toLowerCase();Y=Y.filter(se=>se.label.toLowerCase().includes($));}Y.sort(($,se)=>$.count!==void 0&&se.count!==void 0&&se.count!==$.count?se.count-$.count:$.label.localeCompare(se.label));let ue=C.type||"string";if(ue==="string"||!C.type){let $=k(C.field),se=C.searchThreshold??10,He=C.maxVisibleOptions??50,te=p[C.field]??false,ae=te||Y.length<=He?Y:Y.slice(0,He),ie=Y.length>He&&!te;return jsxRuntime.jsxs(rn,{id:C.field,children:[jsxRuntime.jsx(on,{title:C.label,description:C.description,className:F,endContent:$.length>0?X(`${$.length} selected`):void 0}),jsxRuntime.jsx(nn,{className:z,children:jsxRuntime.jsxs("div",{className:"space-y-4 pt-4 pb-4",children:[re>se&&jsxRuntime.jsx(Jn,{value:B,onChange:ye=>m(Le=>({...Le,[C.field]:ye})),onClear:()=>m(ye=>({...ye,[C.field]:""})),placeholder:`Search ${C.label.toLowerCase()}...`,size:"sm",className:"w-full !max-w-none pr-4"}),jsxRuntime.jsx(Nu,{value:$,onChange:ye=>{let Le=Xn(l,C.field);ye.length>0&&(Le=pn(Le,{field:C.field,operator:"in",value:ye})),d(Le);},children:jsxRuntime.jsx("div",{className:"space-y-1.5",children:ae.map(ye=>jsxRuntime.jsx("div",{className:"rounded-md py-2 pr-4 transition-colors hover:bg-background-hover",children:jsxRuntime.jsx(Xr,{value:ye.value,children:jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-3 flex-1",children:[C.renderLabel?C.renderLabel(ye.value,ye.label):jsxRuntime.jsx("span",{className:"text-sm font-medium text-text-primary",children:ye.label}),ye.count!==void 0&&jsxRuntime.jsx("span",{className:"text-xs font-medium text-text-secondary tabular-nums",children:Bx(ye.count)})]})})},ye.value))})}),ie&&jsxRuntime.jsx("div",{className:"pt-2 border-t border-border-muted",children:jsxRuntime.jsxs(_,{variant:"ghost",size:"sm",onPress:()=>f(ye=>({...ye,[C.field]:true})),className:"w-full",children:["Show all ",Y.length," options"]})}),te&&Y.length>He&&jsxRuntime.jsx("div",{className:"pt-2 border-t border-border-muted",children:jsxRuntime.jsx(_,{variant:"ghost",size:"sm",onPress:()=>f(ye=>({...ye,[C.field]:false})),className:"w-full",children:"Show less"})})]})})]},C.field)}if(ue==="number"){let $,se,He=ae=>{if(ae)for(let ie of ae.conditions)"conditions"in ie?He(ie):ie.field===C.field&&(ie.operator==="gte"&&typeof ie.value=="number"&&($=ie.value),ie.operator==="lte"&&typeof ie.value=="number"&&(se=ie.value));};He(l);let te=$!==void 0||se!==void 0;return jsxRuntime.jsxs(rn,{id:C.field,children:[jsxRuntime.jsx(on,{title:C.label,description:C.description,className:F,endContent:te?X($!==void 0&&se!==void 0?`${$} - ${se}`:$!==void 0?`\u2265 ${$}`:`\u2264 ${se}`):void 0}),jsxRuntime.jsx(nn,{className:z,children:jsxRuntime.jsxs("div",{className:"grid grid-cols-2 gap-4 pt-4 pb-4",children:[jsxRuntime.jsx(Xi,{label:"Min",value:$,onChange:ae=>R(C.field,ae,se)},`${C.field}-min`),jsxRuntime.jsx(Xi,{label:"Max",value:se,onChange:ae=>R(C.field,$,ae)},`${C.field}-max`)]})})]},C.field)}if(ue==="boolean"){let $=I(C.field);return jsxRuntime.jsxs(rn,{id:C.field,children:[jsxRuntime.jsx(on,{title:C.label,description:C.description,className:F,endContent:$!==void 0?X($?"Yes":"No"):void 0}),jsxRuntime.jsx(nn,{className:z,children:jsxRuntime.jsxs("div",{className:"flex items-center justify-between pt-4 pb-4",children:[jsxRuntime.jsx("span",{className:"text-sm font-medium text-text-primary",children:$!==void 0?$?"Enabled":"Disabled":"No filter applied"}),jsxRuntime.jsx(Bl,{size:"lg",isSelected:$??false,onChange:se=>E(C.field,se?true:void 0),children:$?"Yes":"No"})]})})]},C.field)}if(ue==="date"){let $,se,He=Le=>{if(Le)for(let Ue of Le.conditions)"conditions"in Ue?He(Ue):Ue.field===C.field&&(Ue.operator==="gte"&&($=String(Ue.value)),Ue.operator==="lte"&&(se=String(Ue.value)));};He(l);let te=$!==void 0||se!==void 0,ae=Le=>{if(Le)try{return /^\d{4}-\d{2}-\d{2}$/.test(Le)?date.parseDate(Le):void 0}catch{return}},ie=ae($),ye=ae(se);return jsxRuntime.jsxs(rn,{id:C.field,children:[jsxRuntime.jsx(on,{title:C.label,description:C.description,className:F,endContent:te?X("Date range selected"):void 0}),jsxRuntime.jsx(nn,{className:z,children:jsxRuntime.jsx("div",{className:"pt-4 pb-4",children:jsxRuntime.jsx(Fl,{label:"Date Range",value:ie&&ye?{start:ie,end:ye}:void 0,onChange:Le=>{Le?L(C.field,Le.start,Le.end):L(C.field,void 0,void 0);}})})})]},C.field)}return null},O=()=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[v.map(C=>{let B=(l?jn(l):[]).includes(C.field);return jsxRuntime.jsxs("button",{type:"button",onClick:()=>y(`__ungrouped__${C.field}`),className:"flex items-center justify-between px-6 py-3 text-left hover:bg-background-hover border-b border-border-muted transition-colors",children:[jsxRuntime.jsx("span",{className:"text-sm font-medium text-text-primary",children:C.label}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[B&&jsxRuntime.jsx("span",{className:W,children:"1 active"}),jsxRuntime.jsx(V,{name:"CaretRight",size:"sm",className:"text-text-secondary"})]})]},C.field)}),x.map(C=>{let D=M(C);return jsxRuntime.jsxs("button",{type:"button",onClick:()=>y(C),className:"flex items-center justify-between px-6 py-3 text-left hover:bg-background-hover border-b border-border-muted transition-colors",children:[jsxRuntime.jsx("span",{className:"text-sm font-medium text-text-primary",children:C}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[D>0&&jsxRuntime.jsxs("span",{className:W,children:[D," active"]}),jsxRuntime.jsx(V,{name:"CaretRight",size:"sm",className:"text-text-secondary"})]})]},C)})]}),j=C=>{if(C.startsWith("__ungrouped__")){let B=C.replace("__ungrouped__",""),Y=v.find(re=>re.field===B);return Y?jsxRuntime.jsx(za,{variant:"contained",density:"comfortable",showDividers:true,defaultExpandedKeys:[Y.field],children:Z(Y)}):null}let D=S[C]||[];return D.length===0?null:jsxRuntime.jsx(za,{variant:"contained",density:"comfortable",showDividers:true,defaultExpandedKeys:[D[0].field],children:D.map(B=>Z(B))})},H=()=>{if(g){let C=g.startsWith("__ungrouped__")&&v.find(D=>D.field===g.replace("__ungrouped__",""))?.label||g;return jsxRuntime.jsxs("div",{className:"flex flex-col h-full",children:[jsxRuntime.jsxs("button",{type:"button",onClick:()=>y(null),className:"flex items-center gap-2 px-4 py-3 border-b border-border-muted hover:bg-background-hover transition-colors",children:[jsxRuntime.jsx(V,{name:"CaretLeft",size:"sm",className:"text-text-secondary"}),jsxRuntime.jsx("span",{className:"text-sm font-medium text-text-primary",children:C})]}),jsxRuntime.jsx("div",{className:"flex-1 overflow-y-auto",children:j(g)})]})}return O()},A=()=>jsxRuntime.jsxs("div",{className:"flex h-full",children:[jsxRuntime.jsxs("div",{className:"w-48 flex-shrink-0 border-r border-border-muted overflow-y-auto bg-background-muted/30",children:[v.map(C=>{let B=(l?jn(l):[]).includes(C.field),Y=g===`__ungrouped__${C.field}`;return jsxRuntime.jsxs("button",{type:"button",onClick:()=>y(`__ungrouped__${C.field}`),className:`flex items-center justify-between w-full px-4 py-3 text-left border-b border-border-muted transition-colors ${Y?"bg-background-selected":"hover:bg-background-hover"}`,children:[jsxRuntime.jsx("span",{className:`text-sm truncate ${Y?"font-semibold text-text-primary":"font-medium text-text-primary"}`,children:C.label}),B&&jsxRuntime.jsx("span",{className:"w-2 h-2 rounded-full bg-action-primary flex-shrink-0 ml-2"})]},C.field)}),x.map(C=>{let D=M(C),B=g===C;return jsxRuntime.jsxs("button",{type:"button",onClick:()=>y(C),className:`flex items-center justify-between w-full px-4 py-3 text-left border-b border-border-muted transition-colors ${B?"bg-background-selected":"hover:bg-background-hover"}`,children:[jsxRuntime.jsx("span",{className:`text-sm truncate ${B?"font-semibold text-text-primary":"font-medium text-text-primary"}`,children:C}),D>0&&jsxRuntime.jsx("span",{className:"w-2 h-2 rounded-full bg-action-primary flex-shrink-0 ml-2"})]},C)})]}),jsxRuntime.jsx("div",{className:"flex-1 overflow-y-auto",children:g?j(g):jsxRuntime.jsx("div",{className:"flex items-center justify-center h-full text-text-secondary text-sm",children:"Select a category to view filters"})})]}),G=()=>jsxRuntime.jsx(za,{variant:"contained",density:"comfortable",showDividers:true,defaultExpandedKeys:[r[0].field],children:r.map(C=>Z(C))});return jsxRuntime.jsx(sr,{isOpen:e,onClose:t,title:h&&b&&g?g.startsWith("__ungrouped__")?v.find(C=>C.field===g.replace("__ungrouped__",""))?.label||s:g:w>0?`${s} (${w} active)`:s,hideCloseIcon:false,primaryAction:{label:"Apply filters",onPress:P,variant:"primary"},secondaryAction:{label:"Clear all",onPress:T},maxWidth:h?"800px":"700px",height:"600px",mobileHeight:"85vh",contentPadding:false,footerContent:c!==void 0?jsxRuntime.jsxs("div",{className:"text-sm text-text-secondary text-center",children:[jsxRuntime.jsx("span",{className:"font-semibold text-text-primary",children:Bx(c)})," ",c===1?"result":"results"," with current filters"]}):void 0,children:r.length===0?jsxRuntime.jsx("div",{className:"py-12 text-center",children:jsxRuntime.jsx("div",{className:"text-sm font-medium text-text-secondary",children:"No filters available"})}):h?b?H():A():G()})}function gp(e="left"){switch(e){case "center":return "justify-center text-center";case "right":return "justify-end text-right";default:return "justify-start text-left"}}function br(e="normal",t){return tailwindMerge.twMerge({strong:"font-semibold text-text-primary",high:"font-semibold text-text-primary",normal:"text-text-primary",low:"text-text-secondary"}[e],t&&"hover:text-action-primary cursor-pointer transition-colors")}function Ne(e="left",t){return tailwindMerge.twMerge("flex items-center gap-1 min-w-0 overflow-hidden",gp(e),t)}function Ol(e,t="\u2014"){return e==null||e===""?t:String(e)}var mn={xs:"h-4 w-12",sm:"h-4 w-20",md:"h-4 w-24",lg:"h-4 w-32",xl:"h-4 w-40"};function zt(e="normal"){return {strong:mn.lg,high:mn.lg,normal:mn.md,low:mn.sm}[e]}function me(e,...t){return typeof e=="function"?e(...t):e}function zx(e="neutral",t="sm"){return tailwindMerge.twMerge("inline-flex items-center rounded-full font-medium",t==="sm"?"px-2 py-0.5 text-xs":"px-2.5 py-1 text-sm",{success:"bg-feedback-success-background text-feedback-success-text",error:"bg-feedback-error-background text-feedback-error-text",warning:"bg-feedback-warning-background text-feedback-warning-text",info:"bg-feedback-info-background text-feedback-info-text",neutral:"bg-background-muted text-text-secondary"}[e])}function Ox(e){return e?"success":"neutral"}function Hl(e,t=false){return t?e>0?"text-feedback-success-text":e<0?"text-feedback-error-text":"text-text-primary":"text-text-primary"}function bp(e="hover",t="secondary"){let r={primary:"text-action-primary hover:text-action-primary-hover visited:text-action-primary",secondary:"text-text-link-default hover:text-text-link-hover visited:text-text-link-default",default:"text-text-link-default hover:text-text-link-hover visited:text-text-link-default",brand:"text-action-primary hover:text-action-primary-hover visited:text-action-primary",muted:"text-text-secondary hover:text-text-secondary visited:text-text-secondary",unstyled:""},o={visible:"underline underline-offset-4 decoration-1 cursor-pointer",hover:"hover:underline hover:underline-offset-4 hover:decoration-1 cursor-pointer transition-colors",none:"cursor-pointer"},n=r[t],a=o[e]||"";return `${n} ${a}`.trim()}function yo(e,t,r,o="hover",n="secondary",a,i){if(!t)return e;let s=typeof t=="function"&&r?t(r):t,c=bp(o,n);return jsxRuntime.jsx("a",{href:s,className:tailwindMerge.twMerge(c,a==="strong"||a==="high"?"font-semibold":"",i),onClick:d=>{d.metaKey||d.ctrlKey;},children:e})}function Hx({row:e,context:t,actions:r,align:o="right",size:n="sm"}){let{isLoading:a}=t;if(a)return jsxRuntime.jsx(U,{className:mn.sm});let s=(typeof r=="function"?r(e):r).filter(l=>!me(l.hidden,e));if(s.length===0)return null;let c=Ne(o);return jsxRuntime.jsx("div",{className:c,children:s.map(l=>{let d=me(l.disabled,e);return l.variant==="icon"||!l.label?jsxRuntime.jsx(_,{variant:"icon",size:n,onPress:()=>{l.onClick(e);},isDisabled:d,"aria-label":l.label||l.id,children:jsxRuntime.jsx(V,{name:l.icon||"DotsThree",size:n==="sm"?16:20})},l.id):jsxRuntime.jsxs(_,{variant:l.variant||"secondary",size:n,onPress:()=>{l.onClick(e);},isDisabled:d,children:[l.icon&&jsxRuntime.jsx(V,{name:l.icon,size:n==="sm"?14:16}),l.label]},l.id)})})}function Wx({value:e,row:t,context:r,variant:o="default",label:n,size:a="sm",shape:i="square",dot:s,dotPosition:c="left",dotPulse:l,align:d="left",emptyText:u="\u2014",className:m,maxVisible:p=2,maxLabelLength:f}){let{isLoading:g}=r,y=(w,P)=>{if(!f||w.length<=f)return jsxRuntime.jsx(jsxRuntime.Fragment,{children:w});let T=w.slice(0,f-1)+"\u2026";return jsxRuntime.jsx(lr,{content:P,children:jsxRuntime.jsx("span",{children:T})})};if(g)return jsxRuntime.jsx(U,{className:zt("normal")});if(e==null||e==="")return jsxRuntime.jsx("div",{className:Ne(d,"text-text-secondary"),children:u});if(Array.isArray(e)&&e.length===0)return jsxRuntime.jsx("div",{className:Ne(d,"text-text-secondary"),children:u});let b=Ne(d,m);if(Array.isArray(e)){let w=e.slice(0,p),P=e.slice(p),T=P.length>0;return jsxRuntime.jsx("div",{className:b,children:jsxRuntime.jsxs("div",{className:"flex items-center gap-1",children:[w.map((k,R)=>{let I=me(o,k,t),E=n!==void 0?me(n,k,t):String(k),L=me(s,k,t),M=me(l,k,t);return jsxRuntime.jsx("span",{className:"flex-shrink-0 whitespace-nowrap",children:jsxRuntime.jsx(dt,{variant:I,size:a,shape:i,dot:L,dotPosition:c,dotPulse:M,children:y(E,E)})},R)}),T&&jsxRuntime.jsx(lr,{content:P.join(", "),children:jsxRuntime.jsx("span",{className:"flex-shrink-0 whitespace-nowrap",children:jsxRuntime.jsxs(dt,{variant:"neutral",size:a,shape:i,children:["+",P.length]})})})]})})}let h=me(o,e,t),x=n!==void 0?me(n,e,t):String(e),v=me(s,e,t),S=me(l,e,t);return jsxRuntime.jsx("div",{className:b,children:jsxRuntime.jsx(dt,{variant:h,size:a,shape:i,dot:v,dotPosition:c,dotPulse:S,children:y(x,x)})})}function Ux({value:e,context:t,format:r="icon",trueText:o="Yes",falseText:n="No",trueIcon:a="Check",falseIcon:i="X",showFalse:s=true,align:c="center",emphasis:l="normal",className:d}){let{isLoading:u}=t;if(u)return jsxRuntime.jsx(U,{className:zt(l)});let m=!!e;if(!m&&!s)return jsxRuntime.jsx("div",{className:Ne(c,d)});let p=Ne(c,d);switch(r){case "icon":return jsxRuntime.jsx("div",{className:p,children:jsxRuntime.jsx(V,{name:m?a:i,size:16,className:m?"text-feedback-success-text":"text-text-disabled"})});case "text":return jsxRuntime.jsx("div",{className:p,children:jsxRuntime.jsx("span",{className:br(l),children:m?o:n})});case "badge":return jsxRuntime.jsx("div",{className:p,children:jsxRuntime.jsx(dt,{variant:m?"success":"neutral",size:"sm",children:m?o:n})});default:return null}}function Yx({row:e,context:t,firstName:r,lastName:o,email:n,avatarUrl:a,layout:i="stacked",size:s="sm",href:c,LinkComponent:l,linkVariant:d="secondary",showEmail:u=false,badge:m,emphasis:p="normal",align:f="left",className:g,piiEntity:y}){let{isLoading:b}=t,h=me(r,e),x=me(o,e),v=me(n,e),S=me(a,e),w=me(c,e),P=me(m,e),T=me(y,e),k=Ne(f,g);return jsxRuntime.jsx("div",{className:k,children:jsxRuntime.jsx(cl,{firstName:h,lastName:x,email:v,avatarUrl:S,layout:i,size:s,href:w,LinkComponent:l,linkVariant:d,showEmail:u,badge:P,emphasis:p,isLoading:b,piiEntity:T})})}function Jx({value:e,row:t,context:r,render:o,className:n}){let a=o(e,t,r);return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("h-full w-full",n),children:a})}function Xx({value:e,row:t,context:r,format:o="date",customFormat:n,emptyText:a="\u2014",align:i="left",emphasis:s="normal",href:c,linkBehavior:l="hover",className:d}){let{isLoading:u}=r;if(u)return jsxRuntime.jsx(U,{className:zt(s)});if(!e)return jsxRuntime.jsx("div",{className:Ne(i,"text-text-secondary"),children:a});let m=e instanceof Date?e:new Date(e);if(isNaN(m.getTime()))return jsxRuntime.jsx("div",{className:Ne(i,"text-text-secondary"),children:a});let p;switch(o){case "date":p=m.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"});break;case "time":p=m.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit"});break;case "datetime":p=m.toLocaleString("en-US",{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"});break;case "relative":p=xR(m);break;case "custom":p=n?m.toLocaleString("en-US",n):m.toISOString();break;default:p=m.toLocaleDateString();}let f=Ne(i,tailwindMerge.twMerge(br(s),d)),g=me(c,t);return g?jsxRuntime.jsx("div",{className:f,children:yo(p,g,t,l)}):jsxRuntime.jsx("div",{className:f,children:p})}function xR(e){let r=new Date().getTime()-e.getTime(),o=Math.floor(r/1e3),n=Math.floor(o/60),a=Math.floor(n/60),i=Math.floor(a/24);return o<60?"just now":n<60?`${n} minute${n!==1?"s":""} ago`:a<24?`${a} hour${a!==1?"s":""} ago`:i<7?`${i} day${i!==1?"s":""} ago`:e.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"})}var yR={up:"ArrowUp",down:"ArrowDown",flat:"Minus"},vR={positive:"text-feedback-success-text",negative:"text-feedback-error-text",neutral:"text-text-secondary"};function xp(e){return e>0?"up":e<0?"down":"flat"}function CR(e,t,r){switch(e){case "percent":return {type:"percentage",decimals:t};case "currency":return {type:"currency",currency:r,minimumFractionDigits:t,maximumFractionDigits:t};case "compact":return {type:"number",notation:"compact",decimals:t,thousandsSeparator:true};default:return {type:"number",decimals:t,thousandsSeparator:true}}}function jx({value:e,row:t,context:r,direction:o,tone:n="neutral",format:a="number",decimals:i=0,currency:s="USD",showIcon:c=true,align:l="right",emphasis:d="normal",emptyText:u="\u2014",className:m}){let{isLoading:p}=r;if(p)return jsxRuntime.jsx(U,{className:zt(d)});let f=typeof e=="number"?e:Number(e);if(e==null||e===""||!Number.isFinite(f))return jsxRuntime.jsx("div",{className:Ne(l,"text-text-secondary"),children:u});let g=me(o,t)??xp(f),y=me(n,t)??"neutral",b=Cr(f,CR(a,i,s))??u,h=f>0?"+":"",v=Ne(l,tailwindMerge.twMerge(d==="strong"||d==="high"?"font-semibold":void 0,m,vR[y]));return jsxRuntime.jsxs("div",{className:v,children:[c&&jsxRuntime.jsx(V,{name:yR[g],size:"xs","aria-hidden":true}),jsxRuntime.jsx("span",{children:`${h}${b}`})]})}function Wl({manufacturer:e,model:t,deviceType:r,deviceTypeIconName:o,logoUrl:n,layout:a="stacked",size:i="md",href:s,LinkComponent:c,linkVariant:l="unstyled",showDeviceTypeIcon:d=true,showLogo:u=true,emphasis:m="normal",isLoading:p=false,className:f,piiEntity:g}){let[y,b]=Je.useState(false),h=o||(r?NR(r):"DeviceMobile"),v={xs:{iconSize:28,logoSize:"w-7 h-7",gap:"gap-1.5",textSize:"text-xs",secondaryTextSize:"text-xs",iconInTextSize:12,skeletonIcon:28,skeletonText:80,skeletonSecondary:60},sm:{iconSize:32,logoSize:"w-8 h-8",gap:"gap-2",textSize:"text-sm",secondaryTextSize:"text-xs",iconInTextSize:14,skeletonIcon:32,skeletonText:96,skeletonSecondary:72},md:{iconSize:32,logoSize:"w-9 h-9",gap:"gap-3",textSize:"text-base",secondaryTextSize:"text-sm",iconInTextSize:16,skeletonIcon:36,skeletonText:128,skeletonSecondary:96},lg:{iconSize:40,logoSize:"w-10 h-10",gap:"gap-3",textSize:"text-lg",secondaryTextSize:"text-base",iconInTextSize:18,skeletonIcon:40,skeletonText:160,skeletonSecondary:120}}[i],S=n&&!y&&u,P={strong:"font-semibold text-text-primary",high:"font-semibold text-text-primary",normal:"text-text-primary",low:"text-text-secondary"}[m],T=({children:k,className:R})=>s?c?jsxRuntime.jsx(c,{href:s,className:R,children:k}):jsxRuntime.jsx(st,{href:s,variant:l,className:tailwindMerge.twMerge("hover:underline",R),asButton:false,children:k}):jsxRuntime.jsx("span",{className:R,children:k});if(p)return a==="inline"?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",v.gap,f),children:[jsxRuntime.jsx(U,{width:v.skeletonIcon,height:v.skeletonIcon,className:"flex-shrink-0 rounded"}),jsxRuntime.jsx(U,{width:v.skeletonText,height:v.skeletonIcon*.6})]}):jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",v.gap,f),children:[jsxRuntime.jsx(U,{width:v.skeletonIcon,height:v.skeletonIcon,className:"flex-shrink-0"}),jsxRuntime.jsxs("div",{className:"flex flex-col gap-1",children:[jsxRuntime.jsx(U,{width:v.skeletonText,height:16}),jsxRuntime.jsx(U,{width:v.skeletonSecondary,height:12})]})]});if(a==="inline"){let k=`${e} ${t}`;return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",v.gap,f),children:[jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-shrink-0 flex items-center justify-center rounded border border-border-muted",v.logoSize),children:S?jsxRuntime.jsx("img",{src:n,alt:`${e} logo`,className:"w-full h-full object-contain",onError:()=>b(true)}):jsxRuntime.jsx(V,{name:h,size:v.iconSize*.6,className:"text-text-secondary"})}),jsxRuntime.jsx(T,{className:tailwindMerge.twMerge("truncate leading-normal hover:text-text-primary",P,v.textSize,s&&"hover:underline hover:decoration-1 hover:underline-offset-4"),children:jsxRuntime.jsx("span",{"data-pii-type":g?"device-name":void 0,"data-pii-entity":g,children:k})})]})}return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center justify-start",v.gap,f),children:[u&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-shrink-0 flex items-center justify-center rounded border border-border-muted",v.logoSize),children:S?jsxRuntime.jsx("img",{src:n,alt:`${e} logo`,className:"w-full h-full object-contain",onError:()=>b(true)}):jsxRuntime.jsx(V,{name:h,size:v.iconSize*.6,className:"text-text-secondary"})}),jsxRuntime.jsxs("div",{className:"flex flex-col items-start min-w-0",children:[jsxRuntime.jsx(T,{className:tailwindMerge.twMerge("truncate leading-normal hover:text-text-primary",P,v.textSize,s&&"hover:underline hover:decoration-1 hover:underline-offset-4"),children:jsxRuntime.jsx("span",{"data-pii-type":g?"device-name":void 0,"data-pii-entity":g,children:e})}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center gap-1.5 text-text-secondary leading-normal",v.secondaryTextSize),children:[d&&jsxRuntime.jsx(V,{name:h,size:v.iconInTextSize,className:"flex-shrink-0"}),jsxRuntime.jsx("span",{className:"truncate","data-pii-type":g?"device-name":void 0,"data-pii-entity":g,children:t})]})]})]})}function NR(e){switch(e){case "battery":return "BatteryHigh";case "charger":return "ChargingStation";case "inverter":return "Power";case "thermostat":return "ThermometerSimple";case "vehicle":return "CarSimple";case "water_heater":return "DropHalfBottom";case "meter":return "Gauge";default:return "DeviceMobile"}}function Qx({row:e,context:t,manufacturer:r,model:o,deviceType:n,logoUrl:a,layout:i="stacked",size:s="sm",href:c,LinkComponent:l,linkVariant:d="secondary",showDeviceTypeIcon:u=true,showLogo:m=true,emphasis:p="normal",align:f="left",className:g,piiEntity:y}){let{isLoading:b}=t,h=me(r,e),x=me(o,e),v=me(n,e),S=me(a,e),w=me(c,e),P=me(y,e),T=Ne(f,g);return jsxRuntime.jsx("div",{className:T,children:jsxRuntime.jsx(Wl,{manufacturer:h,model:x,deviceType:v,logoUrl:S,layout:i,size:s,href:w,LinkComponent:l,linkVariant:d,showDeviceTypeIcon:u,showLogo:m,emphasis:p,isLoading:b,piiEntity:P})})}var PY={charging:"percentage",discharging:"percentage",on:"kW",idle:void 0,off:void 0,heat:"temperature",cool:"temperature",auto:"temperature",eco:"temperature",circulate:void 0,unknown:void 0,connected:void 0,disconnected:void 0},kR=["charging","discharging","heat","cool","on","circulate","connected"],TR={unknown:"Unknown",on:"On",off:"Off",idle:"Idle",charging:"Charging",discharging:"Discharging",heat:"Heating",eco:"Eco Mode",cool:"Cooling",auto:"Auto",circulate:"Circulating",connected:"Connected",disconnected:"Disconnected"};function hp(e){return kR.includes(e)}function yp(e){return TR[e]}function Qn({state:e,label:t,icon:r,isLoading:o,size:n="sm",shape:a="pill",dot:i,dotPulse:s,fixedWidth:c,className:l,...d}){if(o)return jsxRuntime.jsx(U,{className:"inline-flex h-6 w-20"});let u=t??yp(e),m=hp(e);return jsxRuntime.jsxs(dt,{variant:e,size:n,shape:a,dot:i??m,dotPulse:s??m,className:c?`w-28 justify-center ${l||""}`:l,...d,children:[r&&jsxRuntime.jsx(V,{name:r,size:n==="sm"?12:n==="md"?14:16}),u]})}var RR={importing:"Importing",exporting:"Exporting",idle:"Idle",unknown:"Unknown"};function _x(e){return RR[e]}var ER={importing:"ArrowDown",exporting:"ArrowUp"};function Kl({state:e,label:t,showIcon:r=false,isLoading:o,size:n="sm",shape:a="pill",fixedWidth:i,className:s,...c}){if(o)return jsxRuntime.jsx(U,{className:"inline-flex h-6 w-24"});let l=t??_x(e),d=ER[e],u=n==="sm"?12:n==="md"?14:16;return r&&d?jsxRuntime.jsx(dt,{variant:e,size:n,shape:a,className:`w-6 justify-center ${s||""}`,...c,children:jsxRuntime.jsx(V,{name:d,size:u})}):jsxRuntime.jsx(dt,{variant:e,size:n,shape:a,className:i?`w-28 justify-center ${s||""}`:s,...c,children:l})}function Yl({state:e,stateLabel:t,metric:r,metricFormatter:o,secondaryState:n,layout:a="horizontal",isLoading:i,size:s="sm",shape:c="pill",icon:l,fixedWidth:d,secondaryStateIconOnly:u=false,className:m}){if(i)return jsxRuntime.jsx(U,{className:tailwindMerge.twMerge("inline-flex h-6 w-32",m)});let p=r!=null&&o?Cr(r,o):null,f=a==="horizontal",g=o&&!p;return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("inline-flex items-center",f?"gap-2":"flex-col gap-1",m),children:[(p||g)&&jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("font-medium inline-block",p?"text-text-primary":"text-text-secondary",s==="sm"&&"text-xs min-w-12",s==="md"&&"text-sm min-w-14",s==="lg"&&"text-base min-w-16"),children:p||"\u2014"}),jsxRuntime.jsx(Qn,{state:e,label:t,icon:l,size:s,shape:c,fixedWidth:d}),n&&jsxRuntime.jsx(jsxRuntime.Fragment,{children:n==="importing"||n==="exporting"?jsxRuntime.jsx(Kl,{state:n,size:s,shape:c,fixedWidth:d,showIcon:u}):jsxRuntime.jsx(Qn,{state:n,size:s,shape:c,fixedWidth:d})})]})}function $x({value:e,row:t,context:r,metric:o,metricFormatter:n,secondaryState:a,size:i="sm",shape:s="pill",label:c,icon:l,fixedWidth:d=true,align:u="left",compact:m=false,className:p}){let{isLoading:f}=r;if(f){let v={pill:"rounded-full",rounded:"rounded-lg",square:"rounded-sm"}[s],S=o!=null||n!=null;return jsxRuntime.jsx("div",{className:"flex items-center gap-2",children:S?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(U,{className:"h-4 w-12"}),jsxRuntime.jsx(U,{className:`h-6 w-24 ${v}`}),jsxRuntime.jsx(U,{className:`h-6 w-20 ${v}`})]}):jsxRuntime.jsx(U,{className:`h-6 w-24 ${v}`})})}if(!e)return jsxRuntime.jsx("div",{className:Ne(u,p),children:jsxRuntime.jsx("span",{className:"text-text-secondary",children:"\u2014"})});let g=me(o,t),y=me(a,t),b=typeof c=="function"?c(e,t):c,h=Ne(u,p);return g!=null||n?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(h),children:jsxRuntime.jsx(Yl,{state:e,stateLabel:b,metric:g,metricFormatter:n,secondaryState:y||void 0,size:i,shape:s,icon:l,fixedWidth:d,secondaryStateIconOnly:m,layout:"horizontal"})}):jsxRuntime.jsx("div",{className:h,children:jsxRuntime.jsx(Qn,{state:e,label:b,icon:l,size:i,shape:s,fixedWidth:d})})}function th({value:e,row:t,context:r,formatter:o,align:n="left",emphasis:a="normal",href:i,linkBehavior:s="hover",className:c,emptyText:l="\u2014",emptyClassName:d="text-text-secondary"}){let{isLoading:u}=r;if(u)return jsxRuntime.jsx(U,{className:zt(a)});let m=ao({value:e,formatter:o,emptyText:l,emptyClassName:d}),p=br(a),f=Ne(n,tailwindMerge.twMerge(p,c)),g=jsxRuntime.jsx("div",{className:f,children:m}),y=me(i,t);return y?yo(g,y,t,s):g}var Cp=Je__namespace.default.memo(({value:e,min:t,max:r,color:o="var(--color-viz-default)",backgroundColor:n="var(--color-background-muted)",colorScale:a,showLabel:i=true,formatLabel:s,height:c=20,minWidth:l=4,segments:d,segmentGap:u=2,barWidth:m,context:p})=>{let f=Je.useMemo(()=>r===t?100:Math.max(0,Math.min(100,(e-t)/(r-t)*100)),[e,t,r]),g=Je.useMemo(()=>o==="auto"&&a?a.type==="diverging"&&a.center!==void 0?hi(e,t,r,a.center,a.scheme):xi(e,t,r,a.scheme):o,[o,a,e,t,r]);if(p.isLoading)return jsxRuntime.jsx("div",{className:"flex items-center gap-2 w-full",style:{height:c},children:jsxRuntime.jsx("div",{className:"h-full flex-1 animate-pulse bg-border-default rounded"})});if(d&&d>0){let h=`calc((100% - ${u*(d-1)}px) / ${d})`,x=Math.ceil(f/100*d),v={height:c,...m&&{width:typeof m=="number"?`${m}px`:m,flexShrink:0}};return jsxRuntime.jsxs("div",{className:"flex items-center gap-2 w-full",children:[jsxRuntime.jsx("div",{className:`flex gap-0.5 ${m?"":"flex-1"}`,style:v,children:Array.from({length:d}).map((S,w)=>{let P=w<x;return jsxRuntime.jsx("div",{className:"rounded-sm",style:{width:h,backgroundColor:P?g:n==="none"?"transparent":n,marginRight:w<d-1?`${u}px`:0}},w)})}),i&&jsxRuntime.jsx("span",{className:"text-sm text-text-primary whitespace-nowrap",children:s?s(e):e.toLocaleString()})]})}let y={height:c,backgroundColor:n==="none"?"transparent":n,...m&&{width:typeof m=="number"?`${m}px`:m,flexShrink:0}};return jsxRuntime.jsxs("div",{className:"flex items-center gap-2 w-full",children:[jsxRuntime.jsx("div",{className:`relative rounded-sm ${m?"":"flex-1"}`,style:y,children:jsxRuntime.jsx("div",{className:"absolute left-0 top-0 h-full rounded-sm",style:{width:`${f}%`,minWidth:f>0?l:0,backgroundColor:g}})}),i&&jsxRuntime.jsx("span",{className:"text-sm text-text-primary whitespace-nowrap",children:s?s(e):e.toLocaleString()})]})});Cp.displayName="HorizontalBarCell";var Sp=Je__namespace.default.memo(({value:e,data:t,color:r="var(--color-viz-default)",categoryColors:o,context:n,width:a,height:i=40})=>{let s=e||t||[],c=y=>"xValue"in y?y.xValue:y.x,l=y=>"yValue"in y?y.yValue:y.y,d=a||100,u=i,{xScale:m,yScale:p,barWidth:f}=Je.useMemo(()=>{if(s.length===0)return {xScale:scale.scaleTime({range:[0,d],domain:[new Date,new Date]}),yScale:scale.scaleLinear({range:[u,0],domain:[0,1]}),barWidth:2};let y=d3Array.extent(s,P=>c(P)),b=d3Array.min(s,P=>l(P))??0,h=d3Array.max(s,P=>l(P))??0,x=b<0?b:0,v=scale.scaleTime({range:[0,d],domain:y}),S=scale.scaleLinear({range:[u,0],domain:[x,h*1.05]}),w=s.length>1?d/s.length*.8:8;return {xScale:v,yScale:S,barWidth:Math.max(2,w)}},[s,d,u]);if(n.isLoading)return jsxRuntime.jsx("div",{className:"flex items-center gap-0.5",style:{width:d,height:u},children:Array.from({length:5}).map((y,b)=>jsxRuntime.jsx("div",{className:"flex-1 animate-pulse bg-border-default rounded"},b))});if(!s||s.length===0)return jsxRuntime.jsx("div",{className:"flex items-center justify-center text-text-secondary text-xs",style:{width:d,height:u},children:"No data"});let g=p(0);return jsxRuntime.jsx("svg",{width:d,height:u,children:s.map((y,b)=>{let h=l(y),x=m(c(y)),v=p(h),S=Math.abs(g-v),w=y.category&&o?.[y.category]?o[y.category]:r;return jsxRuntime.jsx(shape.Bar,{x:x-f/2,y:h>=0?v:g,width:f,height:S,fill:w,rx:1},`bar-${b}`)})})});Sp.displayName="MiniBarCell";function ih({value:e,row:t,context:r,format:o="number",decimals:n=0,prefix:a,suffix:i,emptyText:s="\u2014",align:c="right",emphasis:l="normal",href:d,linkBehavior:u="hover",showPositiveSign:m=false,colorCode:p=false,className:f}){let{isLoading:g}=r;if(g)return jsxRuntime.jsx(U,{className:zt(l)});if(e==null||isNaN(Number(e)))return jsxRuntime.jsx("div",{className:Ne(c,"text-text-secondary"),children:s});let y=Number(e),b;switch(o){case "currency":b=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:n,maximumFractionDigits:n}).format(y);break;case "percent":b=new Intl.NumberFormat("en-US",{style:"percent",minimumFractionDigits:n,maximumFractionDigits:n}).format(y/100);break;case "compact":b=new Intl.NumberFormat("en-US",{notation:"compact",minimumFractionDigits:n>0?1:0,maximumFractionDigits:n}).format(y);break;default:b=new Intl.NumberFormat("en-US",{minimumFractionDigits:n,maximumFractionDigits:n}).format(y);}let x=`${m&&y>0?"+":""}${b}`,v=p?Hl(y,true):br(l),S=Ne(c,tailwindMerge.twMerge(v,f)),w=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[a&&jsxRuntime.jsx("span",{className:"text-text-secondary",children:a}),jsxRuntime.jsx("span",{children:x}),i&&jsxRuntime.jsx("span",{className:"text-text-secondary",children:i})]}),P=me(d,t);return P?jsxRuntime.jsx("div",{className:S,children:yo(w,P,t,u)}):jsxRuntime.jsx("div",{className:S,children:w})}var wp=Je__namespace.default.memo(({value:e,showLabel:t=true,color:r="var(--color-viz-categorical-1)",backgroundColor:o="var(--color-background-muted)",height:n=20,segments:a,segmentGap:i=2,colorScale:s,context:c})=>{let l=Je.useMemo(()=>Math.max(0,Math.min(100,e)),[e]),d=Je.useMemo(()=>r==="auto"&&s?s.type==="diverging"&&s.center!==void 0?hi(e,0,100,s.center,s.scheme):xi(e,0,100,s.scheme):r,[r,s,e]);if(c.isLoading)return jsxRuntime.jsx("div",{className:"flex items-center gap-2",style:{height:n},children:jsxRuntime.jsx("div",{className:"h-full w-full animate-pulse bg-border-default rounded"})});if(a&&a>0){let m=`calc((100% - ${i*(a-1)}px) / ${a})`,p=Math.ceil(l/100*a);return jsxRuntime.jsxs("div",{className:"flex items-center gap-2 w-full",children:[jsxRuntime.jsx("div",{className:"flex gap-0.5 flex-1",style:{height:n},children:Array.from({length:a}).map((f,g)=>{let y=g<p,b=d;if(r==="auto"&&s&&y){let h=(g+1)/a*100;s.type==="diverging"&&s.center!==void 0?b=hi(h,0,100,s.center,s.scheme):b=xi(h,0,100,s.scheme);}return jsxRuntime.jsx("div",{className:"rounded-sm",style:{width:m,backgroundColor:y?b:o==="none"?"transparent":o,marginRight:g<a-1?`${i}px`:0}},g)})}),t&&jsxRuntime.jsxs("span",{className:"text-sm text-text-primary whitespace-nowrap",children:[l.toFixed(0),"%"]})]})}return jsxRuntime.jsxs("div",{className:"flex items-center gap-2 w-full",children:[jsxRuntime.jsx("div",{className:"relative flex-1 rounded-sm",style:{height:n,backgroundColor:o==="none"?"transparent":o},children:jsxRuntime.jsx("div",{className:"absolute left-0 top-0 h-full rounded-sm transition-all duration-300",style:{width:`${l}%`,backgroundColor:d}})}),t&&jsxRuntime.jsxs("span",{className:"text-sm text-text-primary whitespace-nowrap",children:[l.toFixed(0),"%"]})]})});wp.displayName="PercentBarCell";var jR="\u2013",lh="\u200A";function ch(e){if(e==null||e==="")return;let t=typeof e=="number"?e:Number(e);return Number.isFinite(t)?t:void 0}function dh({row:e,context:t,min:r,max:o,decimals:n=0,unit:a,emptyText:i="\u2014",align:s="right",emphasis:c="normal",className:l}){let{isLoading:d}=t;if(d)return jsxRuntime.jsx(U,{className:zt(c)});let u=ch(me(r,e)),m=ch(me(o,e));if(u===void 0&&m===void 0)return jsxRuntime.jsx("div",{className:Ne(s,"text-text-secondary"),children:i});let p=y=>new Intl.NumberFormat("en-US",{minimumFractionDigits:n,maximumFractionDigits:n}).format(y),f=u!==void 0&&m!==void 0?`${p(u)}${lh}${jR}${lh}${p(m)}`:p(u!==void 0?u:m),g=Ne(s,tailwindMerge.twMerge("tabular-nums",br(c),l));return jsxRuntime.jsxs("div",{className:g,children:[jsxRuntime.jsx("span",{children:f}),a&&jsxRuntime.jsx("span",{className:"text-text-secondary",children:a})]})}function ql({row:e,context:t,isSelected:r=false,onSelect:o,isDisabled:n=false,align:a="center"}){let{isLoading:i}=t;if(i)return jsxRuntime.jsx("div",{className:Ne(a),children:jsxRuntime.jsx(U,{className:"h-4 w-4 rounded"})});let s=me(n,e),c=Ne(a);return jsxRuntime.jsx("div",{className:c,children:jsxRuntime.jsx(Xr,{isSelected:r,onChange:l=>{o?.(e,l);},isDisabled:s,"aria-label":"Select row"})})}function Ql({streetAddress:e,city:t,state:r,postalCode:o,layout:n="stacked",size:a="md",href:i,LinkComponent:s,linkVariant:c="unstyled",emphasis:l="normal",isLoading:d=false,className:u,piiEntity:m}){let f={xs:{iconSize:16,iconContainerSize:"w-7 h-7",gap:"gap-1.5",textSize:"text-xs",secondaryTextSize:"text-xs",skeletonIconStacked:28,skeletonIconInline:16,skeletonText:80,skeletonSecondary:60},sm:{iconSize:20,iconContainerSize:"w-8 h-8",gap:"gap-2",textSize:"text-sm",secondaryTextSize:"text-xs",skeletonIconStacked:32,skeletonIconInline:20,skeletonText:96,skeletonSecondary:72},md:{iconSize:24,iconContainerSize:"w-9 h-9",gap:"gap-3",textSize:"text-base",secondaryTextSize:"text-sm",skeletonIconStacked:36,skeletonIconInline:24,skeletonText:128,skeletonSecondary:96},lg:{iconSize:28,iconContainerSize:"w-10 h-10",gap:"gap-3",textSize:"text-lg",secondaryTextSize:"text-base",skeletonIconStacked:40,skeletonIconInline:28,skeletonText:160,skeletonSecondary:120}}[a],y={strong:"font-semibold text-text-primary",high:"font-semibold text-text-primary",normal:"text-text-primary",low:"text-text-secondary"}[l],b=[];t&&b.push(t),r&&o?b.push(`${r} ${o}`):r?b.push(r):o&&b.push(o);let h=b.join(", "),x=({children:S,className:w})=>i?s?jsxRuntime.jsx(s,{href:i,className:w,children:S}):jsxRuntime.jsx(st,{href:i,variant:c,className:tailwindMerge.twMerge("hover:underline",w),asButton:false,children:S}):jsxRuntime.jsx("span",{className:w,children:S});if(d)return n==="inline"?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",f.gap,u),children:[jsxRuntime.jsx(U,{width:f.skeletonIconInline,height:f.skeletonIconInline,className:"flex-shrink-0 rounded"}),jsxRuntime.jsx(U,{width:f.skeletonText,height:f.skeletonIconInline*.8})]}):jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",f.gap,u),children:[jsxRuntime.jsx(U,{width:f.skeletonIconStacked,height:f.skeletonIconStacked,className:"flex-shrink-0 rounded"}),jsxRuntime.jsxs("div",{className:"flex flex-col gap-1",children:[jsxRuntime.jsx(U,{width:f.skeletonText,height:16}),jsxRuntime.jsx(U,{width:f.skeletonSecondary,height:12})]})]});if(n==="inline")return jsxRuntime.jsxs(x,{className:tailwindMerge.twMerge("flex items-center",f.gap,i&&"hover:bg-background-hover transition-colors",u),children:[jsxRuntime.jsx(V,{name:"MapPin",size:f.iconSize,className:"text-text-secondary flex-shrink-0"}),jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("leading-normal truncate hover:text-text-primary",y,f.textSize,i&&"hover:underline hover:decoration-1 hover:underline-offset-4"),"data-pii-type":m?"address":void 0,"data-pii-entity":m,children:e})]});let v=()=>{if(m){if(t&&r&&o)return "city-state-zip";if(t&&r)return "city-state";if(t)return "city";if(r)return "state";if(o)return "postal-code"}};return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center justify-start",f.gap,u),children:[jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-shrink-0 flex items-center justify-center rounded border border-border-muted",f.iconContainerSize),children:jsxRuntime.jsx(V,{name:"MapPin",size:f.iconSize,className:"text-text-secondary"})}),jsxRuntime.jsxs("div",{className:"flex flex-col items-start min-w-0",children:[jsxRuntime.jsx(x,{className:tailwindMerge.twMerge("leading-normal truncate hover:text-text-primary",y,f.textSize,i&&"hover:underline hover:decoration-1 hover:underline-offset-4"),children:jsxRuntime.jsx("span",{"data-pii-type":m?"address":void 0,"data-pii-entity":m,children:e})}),h&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-text-secondary leading-normal truncate",f.secondaryTextSize),"data-pii-type":v(),"data-pii-entity":m,children:h})]})]})}function ph({row:e,context:t,streetAddress:r,city:o,state:n,postalCode:a,layout:i="stacked",size:s="sm",href:c,LinkComponent:l,linkVariant:d="secondary",emphasis:u="normal",align:m="left",className:p,piiEntity:f}){let{isLoading:g}=t,y=me(r,e),b=me(o,e),h=me(n,e),x=me(a,e),v=me(c,e),S=me(f,e),w=Ne(m,p);return jsxRuntime.jsx("div",{className:w,children:jsxRuntime.jsx(Ql,{streetAddress:y,city:b,state:h,postalCode:x,layout:i,size:s,href:v,LinkComponent:l,linkVariant:d,emphasis:u,isLoading:g,piiEntity:S})})}var Np=Je__namespace.default.memo(({value:e,data:t,type:r="line",color:o="var(--color-viz-default)",strokeWidth:n=2,categoryColors:a,context:i,width:s,height:c=40})=>{let l=e||t||[],d=s||100,u=c,{xScale:m,yScale:p}=Je.useMemo(()=>{if(l.length===0)return {xScale:scale.scaleTime({range:[0,d],domain:[new Date,new Date]}),yScale:scale.scaleLinear({range:[u,0],domain:[0,1]})};let g=d3Array.extent(l,x=>x.xValue),y=d3Array.min(l,x=>x.yValue)||0,b=d3Array.max(l,x=>x.yValue)||0,h=(b-y)*.1||1;return {xScale:scale.scaleTime({range:[0,d],domain:g}),yScale:scale.scaleLinear({range:[u,0],domain:[y-h,b+h]})}},[l,d,u]);if(i.isLoading)return jsxRuntime.jsx("div",{className:"flex items-center",style:{width:d,height:u},children:jsxRuntime.jsx("div",{className:"h-1 w-full animate-pulse bg-border-default rounded"})});if(!l||l.length===0)return jsxRuntime.jsx("div",{className:"flex items-center justify-center text-text-secondary text-xs",style:{width:d,height:u},children:"No data"});let f=a&&l[0]?.category&&a[l[0].category]?a[l[0].category]:o;return jsxRuntime.jsxs("svg",{width:d,height:u,className:"overflow-visible",children:[(r==="area"||r==="both")&&jsxRuntime.jsx(shape.AreaClosed,{data:l,x:g=>m(g.xValue),y:g=>p(g.yValue),yScale:p,fill:f,fillOpacity:.15,curve:curve.curveLinear}),(r==="line"||r==="both")&&jsxRuntime.jsx(shape.LinePath,{data:l,x:g=>m(g.xValue),y:g=>p(g.yValue),stroke:f,strokeWidth:n,strokeLinecap:"round",curve:curve.curveLinear})]})});Np.displayName="SparklineCell";function bh({value:e,row:t,context:r,prefix:o,suffix:n,emptyText:a="\u2014",href:i,linkBehavior:s="hover",linkVariant:c="secondary",emphasis:l="normal",truncate:d=true,copyable:u=false,align:m="left",className:p,piiType:f,piiEntity:g}){let{isLoading:y}=r;if(y)return jsxRuntime.jsx(U,{className:zt(l)});let b=Ol(e,a),h=me(i,t),x=me(g,t),v=b,S=false,w=false;if(d&&b&&typeof b=="string")if(typeof d=="boolean")w=true;else {let{position:M="end",length:F=16,ellipsis:z="...",tooltip:W=true}=d;if(b.length>F){switch(M){case "start":v=Bs(b,F);break;case "middle":v=ka(b,F);break;case "end":v=Vs(b,F,z);break}S=W;}}let P=f&&x?{"data-pii-type":f,"data-pii-entity":x}:{},T=Object.keys(P).length>0,k=jsxRuntime.jsx("span",{className:w?"truncate":"",...P,children:v}),R=S?jsxRuntime.jsx(lr,{content:T?jsxRuntime.jsx("span",{...P,children:String(b)}):String(b),children:k}):k,I=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[o&&jsxRuntime.jsx("span",{className:"text-text-secondary",children:o}),R,n&&jsxRuntime.jsx("span",{className:"text-text-secondary",children:n})]}),E=I;if(u&&b&&b!==a){let M=typeof u=="function"?u(t):String(b);E=jsxRuntime.jsx($o,{value:M,size:"sm",children:I});}if(h){let M=Ne(m,p);return jsxRuntime.jsx("div",{className:M,children:yo(E,h,t,s,c,l)})}let L=Ne(m,tailwindMerge.twMerge(br(l),p));return jsxRuntime.jsx("div",{className:L,children:E})}var s2={sm:"sm:hidden",md:"md:hidden",lg:"lg:hidden",xl:"xl:hidden"},l2={sm:"hidden sm:grid",md:"hidden md:grid",lg:"hidden lg:grid",xl:"hidden xl:grid"};function Zl(e,t){return t.accessor?typeof t.accessor=="function"?t.accessor(e):e[t.accessor]:null}function _l(e,t,r,o){if(r.cell){let n=r.cell,a=typeof r.cellProps=="function"?r.cellProps(e,t):r.cellProps;return jsxRuntime.jsx(n,{value:e,row:t,context:o,...a})}return r.render?r.render(e,t,o):e?.toString()??"\u2014"}function ec({row:e,columns:t,density:r,isLoading:o,onClick:n}){let a=t.filter(u=>u.mobile!==false).map(u=>{let m=u.mobile===false?null:u.mobile;return {...u,mobilePriority:m?.priority??2,mobileFormat:m?.format??"secondary",showLabel:m?.label??m?.format==="secondary",icon:m?.icon}}).sort((u,m)=>u.mobilePriority-m.mobilePriority),i=a.filter(u=>u.mobilePriority===1||u.mobileFormat==="primary"),s=a.filter(u=>u.mobilePriority===2&&u.mobileFormat!=="primary"),c=a.filter(u=>u.mobileFormat==="badge"),l={isLoading:!!o,rowIndex:0,columnIndex:0,density:r};return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("border-b border-border-default bg-background-surface transition-colors",n&&"cursor-pointer hover:bg-background-hover active:bg-background-pressed",{compact:"px-3 py-2",default:"px-4 py-3",relaxed:"px-4 py-4"}[r]),onClick:n,role:n?"button":void 0,tabIndex:n?0:void 0,children:[i.length>0&&jsxRuntime.jsxs("div",{className:"mb-2 flex items-start justify-between",children:[jsxRuntime.jsx("div",{className:"flex-1",children:i.map(u=>{let m=Zl(e,u);return jsxRuntime.jsx("div",{className:"font-medium text-text-primary [&>*]:!justify-start [&>*]:!text-left",children:_l(m,e,u,l)},u.id)})}),c.length>0&&jsxRuntime.jsx("div",{className:"ml-2 flex flex-wrap gap-1",children:c.map(u=>{let m=Zl(e,u);return jsxRuntime.jsx("div",{className:"inline-flex",children:_l(m,e,u,l)},u.id)})})]}),s.length>0&&jsxRuntime.jsx("div",{className:"space-y-1",children:s.map(u=>{let m=Zl(e,u),p=u.showLabel&&u.label;return jsxRuntime.jsxs("div",{className:"flex items-center text-sm text-text-secondary",children:[u.icon&&jsxRuntime.jsx(V,{name:u.icon,className:"mr-1.5 h-4 w-4 flex-shrink-0"}),p&&jsxRuntime.jsxs("span",{className:"mr-1 font-medium",children:[u.label,":"]}),jsxRuntime.jsx("span",{className:"truncate [&>*]:!justify-start [&>*]:!text-left",children:_l(m,e,u,l)})]},u.id)})})]})}function tc({row:e,columns:t,density:r,isLoading:o,onClick:n}){let a=t.filter(c=>c.mobile!==false),i={isLoading:!!o,rowIndex:0,columnIndex:0,density:r};return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("border-b border-border-default bg-background-surface transition-colors",n&&"cursor-pointer hover:bg-background-hover active:bg-background-pressed",{compact:"px-3 py-2",default:"px-4 py-3",relaxed:"px-4 py-4"}[r]),onClick:n,role:n?"button":void 0,tabIndex:n?0:void 0,children:jsxRuntime.jsx("div",{className:"space-y-2",children:a.map((c,l)=>{let d=Zl(e,c),u=l===0;return jsxRuntime.jsxs("div",{children:[!u&&jsxRuntime.jsx("div",{className:"text-xs text-text-secondary",children:c.label}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(u?"font-medium text-text-primary":"text-sm text-text-primary","[&>*]:!justify-start [&>*]:!text-left"),children:_l(d,e,c,i)})]},c.id)})})})}function xh(e="md"){return {mobile:s2[e],desktop:l2[e]}}function hh({density:e}){return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("border-b border-border-default bg-background-surface",{compact:"px-3 py-2",default:"px-4 py-3",relaxed:"px-4 py-4"}[e]),children:[jsxRuntime.jsx("div",{className:"mb-2 h-5 w-3/4 animate-pulse rounded bg-background-muted"}),jsxRuntime.jsxs("div",{className:"space-y-1",children:[jsxRuntime.jsx("div",{className:"h-4 w-1/2 animate-pulse rounded bg-background-muted"}),jsxRuntime.jsx("div",{className:"h-4 w-2/3 animate-pulse rounded bg-background-muted"})]})]})}var C2={compact:"py-1.5 px-3 text-sm",default:"py-3 px-4 text-sm",relaxed:"py-4 px-4 text-base"},S2={left:"text-left justify-start",center:"text-center justify-center",right:"text-right justify-end"};function w2(e){let t={};return e.width!==void 0&&(t.width=typeof e.width=="number"?`${e.width}px`:e.width),e.minWidth!==void 0&&(t.minWidth=typeof e.minWidth=="number"?`${e.minWidth}px`:e.minWidth),e.maxWidth!==void 0&&(t.maxWidth=typeof e.maxWidth=="number"?`${e.maxWidth}px`:e.maxWidth),e.flex!==void 0&&(t.flex=`${e.flex} 1 0`),t}function N2({column:e,sortConfig:t,onSort:r,stickyHeader:o,stickyFirstColumn:n,isFirstColumn:a,density:i="default",isLoading:s=false,headerContent:c}){let l=e.reorderable!==false,{attributes:d,listeners:u,setNodeRef:m,transform:p,transition:f,isDragging:g}=sortable.useSortable({id:e.id,disabled:!l||s}),y=t?.columnId===e.id,b=y?t.direction:null,h=n&&a,x={...w2(e),transform:utilities.CSS.Transform.toString(p),transition:f,opacity:g?.8:1,zIndex:g?50:void 0};return jsxRuntime.jsx("div",{ref:m,className:tailwindMerge.twMerge("flex items-center border-b border-border-default bg-background-surface",e.sortable?"gap-2":"gap-1",C2[i],S2[e.align||"left"],o&&"sticky top-0 z-10",h&&"sticky left-0 z-20 shadow-[2px_0_4px_-2px_rgba(0,0,0,0.1)]",o&&h&&"z-30",e.sortable&&!s&&"hover:bg-background-hover",s&&"cursor-not-allowed opacity-60",y?"font-bold text-text-primary":"font-medium text-text-secondary",g&&"bg-background-hover"),style:x,role:"columnheader","aria-sort":y?b==="asc"?"ascending":"descending":"none","aria-disabled":s,...d,...u,children:s?jsxRuntime.jsx(U,{className:"h-4 w-24"}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[c??jsxRuntime.jsx("span",{className:"flex-1 truncate cursor-pointer",onClick:()=>!s&&e.sortable&&r(e.id),children:e.label}),e.sortable&&jsxRuntime.jsx("button",{type:"button",className:"flex flex-shrink-0 cursor-pointer",onClick:()=>!s&&r(e.id),"aria-label":`Sort by ${e.label}`,children:y?jsxRuntime.jsx(V,{name:b==="asc"?"CaretUp":"CaretDown",size:14,weight:"bold",className:"text-text-primary"}):jsxRuntime.jsx(V,{name:"CaretUpDown",size:12,className:"text-text-secondary opacity-40"})})]})})}function vh({columns:e,columnOrder:t,onColumnOrderChange:r,sortConfig:o,onSort:n,stickyHeader:a,stickyFirstColumn:i,density:s="default",isLoading:c=false,renderHeaderContent:l}){let d=core.useSensors(core.useSensor(core.PointerSensor,{activationConstraint:{distance:5}}),core.useSensor(core.KeyboardSensor,{coordinateGetter:sortable.sortableKeyboardCoordinates})),u=new Map(e.map(f=>[f.id,f])),m=f=>{let{active:g,over:y}=f;if(y&&g.id!==y.id){let b=t.indexOf(g.id),h=t.indexOf(y.id);if(u.get(y.id)?.reorderable===false)return;let v=0;for(let T=0;T<t.length&&u.get(t[T])?.reorderable===false;T++)v=T+1;if(h<v)return;let S=Math.min(b,h),w=Math.max(b,h);for(let T=S;T<=w;T++){if(T===b)continue;if(u.get(t[T])?.reorderable===false)return}let P=sortable.arrayMove(t,b,h);r(P);}},p=t.map(f=>u.get(f)).filter(f=>f!==void 0);return jsxRuntime.jsx(core.DndContext,{sensors:d,collisionDetection:core.closestCenter,onDragEnd:m,children:jsxRuntime.jsx(sortable.SortableContext,{items:t,strategy:sortable.horizontalListSortingStrategy,children:jsxRuntime.jsx("div",{className:"contents",role:"rowgroup",children:p.map((f,g)=>jsxRuntime.jsx(N2,{column:f,sortConfig:o,onSort:n,stickyHeader:a,stickyFirstColumn:i,isFirstColumn:g===0,density:s,isLoading:c,headerContent:l?.(f)},f.id))})})})}var rc="__select",M2=new Set,Tp={compact:"py-1.5 px-3 text-sm",default:"py-3 px-4 text-sm",relaxed:"py-4 px-4 text-base"},Pp={left:"text-left justify-start",center:"text-center justify-center",right:"text-right justify-end"},L2={full:"w-full",auto:"w-auto inline-block",contained:"w-full max-w-6xl mx-auto"},D2={auto:"table-auto",fixed:"table-fixed",responsive:"table-auto"};function Rp(e){let t={};return e.width!==void 0&&(t.width=typeof e.width=="number"?`${e.width}px`:e.width),e.minWidth!==void 0&&(t.minWidth=typeof e.minWidth=="number"?`${e.minWidth}px`:e.minWidth),e.maxWidth!==void 0&&(t.maxWidth=typeof e.maxWidth=="number"?`${e.maxWidth}px`:e.maxWidth),e.flex!==void 0&&(t.flex=`${e.flex} 1 0`),t}function A2(e,t){return t.accessor?typeof t.accessor=="function"?t.accessor(e):e[t.accessor]:null}function I2({column:e,sortConfig:t,onSort:r,stickyHeader:o,stickyFirstColumn:n,isFirstColumn:a,density:i="default",isLoading:s=false,headerContent:c}){let l=t?.columnId===e.id,d=l?t.direction:null,u=n&&a;return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex items-center border-b border-border-default bg-background-surface",e.sortable?"gap-2":"gap-1",Tp[i],Pp[e.align||"left"],o&&"sticky top-0 z-10",u&&"sticky left-0 z-20 shadow-[2px_0_4px_-2px_rgba(0,0,0,0.1)]",o&&u&&"z-30",e.sortable&&!s&&"cursor-pointer hover:bg-background-hover",s&&"cursor-not-allowed opacity-60",l?"font-bold text-text-primary":"font-medium text-text-secondary"),onClick:()=>!s&&e.sortable&&r(e.id),role:"columnheader","aria-sort":l?d==="asc"?"ascending":"descending":"none","aria-disabled":s,style:Rp(e),children:s?jsxRuntime.jsx(U,{className:"h-4 w-24"}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[c??jsxRuntime.jsx("span",{className:"truncate",children:e.label}),e.sortable&&jsxRuntime.jsx("div",{className:"flex flex-shrink-0",children:l?jsxRuntime.jsx(V,{name:d==="asc"?"CaretUp":"CaretDown",size:14,weight:"bold",className:"text-text-primary"}):jsxRuntime.jsx(V,{name:"CaretUpDown",size:12,className:"text-text-secondary opacity-40"})})]})})}function F2({column:e,row:t,rowIndex:r,columnIndex:o,isHovered:n,isSelected:a,density:i="default",className:s,stickyFirstColumn:c}){let l=c&&o===0,d=A2(t,e),u={isLoading:false,isHovered:n,...a===void 0?{}:{isSelected:a},rowIndex:r,columnIndex:o,density:i},m;if(e.cell){let p=e.cell,f=typeof e.cellProps=="function"?e.cellProps(d,t):e.cellProps;m=jsxRuntime.jsx(p,{value:d,row:t,context:u,...f});}else e.render?m=e.render(d,t,u):m=jsxRuntime.jsx("span",{className:"truncate",children:d?.toString()??""});if(e.popover){let p=e.popover,f,g="top",y=false,b="hover";typeof p=="string"?f=p:typeof p=="function"?f=p(d,t):(f=typeof p.content=="function"?p.content(d,t):p.content,g=p.placement||"top",y=p.showArrow??false,b=p.trigger||"hover"),m=jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{...b==="hover"?{trigger:"longPress"}:{},children:[jsxRuntime.jsx("div",{className:"cursor-help",children:m}),jsxRuntime.jsx(gt,{placement:g,showArrow:y,children:jsxRuntime.jsx("div",{className:"p-2",children:f})})]});}return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex items-center border-b border-border-default bg-background-surface",e.noCellPadding?"":Tp[i],Pp[e.align||"left"],l&&"sticky left-0 z-10 shadow-[2px_0_4px_-2px_rgba(0,0,0,0.1)]",s),role:"cell",style:Rp(e),children:m})}function B2({column:e,rowIndex:t,columnIndex:r,density:o="default",stickyFirstColumn:n}){let a=n&&r===0,i={isLoading:true,rowIndex:t,columnIndex:r,density:o},s;if(e.cell){let c=e.cell,l=typeof e.cellProps=="function"?e.cellProps(null,{}):e.cellProps;s=jsxRuntime.jsx(c,{value:null,row:{},context:i,...l});}else e.render?s=e.render(null,{},i):s=jsxRuntime.jsx(U,{className:"h-4 w-full max-w-[200px]"});return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex items-center border-b border-border-default bg-background-surface",e.noCellPadding?"":Tp[o],Pp[e.align||"left"],a&&"sticky left-0 z-10 shadow-[2px_0_4px_-2px_rgba(0,0,0,0.1)]"),role:"cell",style:Rp(e),children:s})}function V2(e,t){let r=new Set(["BUTTON","A","INPUT","SELECT","TEXTAREA"]),o=new Set(["button","link","checkbox","switch","menuitem","option"]),n=e;for(;n&&n!==t;){if(r.has(n.tagName))return true;let a=n.getAttribute("role");if(a&&o.has(a))return true;n=n.parentElement;}return false}function Ch({columns:e,row:t,rowIndex:r,density:o="default",onClick:n,stickyFirstColumn:a,isSelected:i}){let[s,c]=Je.useState(false),l=Je.useCallback(d=>{if(!n)return;let u=d.target,m=d.currentTarget;V2(u,m)||n(t);},[n,t]);return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("contents group",n&&"cursor-pointer"),role:"row","aria-selected":i===void 0?void 0:i,onClick:l,onMouseEnter:()=>c(true),onMouseLeave:()=>c(false),children:e.map((d,u)=>jsxRuntime.jsx(F2,{column:d,row:t,rowIndex:r,columnIndex:u,isHovered:s,isSelected:i,density:o,className:tailwindMerge.twMerge(n?"group-hover:bg-background-hover":"",i&&"bg-background-selected"),stickyFirstColumn:a},d.id))})}function Sh({columns:e,rowIndex:t,density:r="default",stickyFirstColumn:o}){return jsxRuntime.jsx("div",{className:"contents",role:"row",children:e.map((n,a)=>jsxRuntime.jsx(B2,{column:n,rowIndex:t,columnIndex:a,density:r,stickyFirstColumn:o},n.id))})}function wh({columns:e,data:t,className:r,density:o="default",width:n="full",height:a,maxHeight:i,layout:s="auto",mobileRenderer:c="auto",customMobileRowRender:l,mobileBreakpoint:d="md",isLoading:u=false,loadingState:m,loadingRowCount:p=5,onLoadMore:f,hasMore:g=false,enableVirtualization:y,estimatedRowHeight:b,loadingIndicator:h,stickyHeader:x=false,stickyFirstColumn:v=false,onRowClick:S,getRowId:w,selectedRowIds:P,onSelectionChange:T,selectionMode:k="multi",hideHeader:R=false,sortConfig:I,onSort:E,"aria-label":L,enableColumnReorder:M=false,columnOrder:F,onColumnOrderChange:z}){let W=T!==void 0,X=P??M2,Z=Je.useCallback((ee,pe)=>{if(w)return w(ee);let oe=ee.id;return typeof oe=="string"&&oe.length>0?oe:typeof oe=="number"&&Number.isFinite(oe)?String(oe):`row-${pe}`},[w]),O=Je.useMemo(()=>t.map((ee,pe)=>Z(ee,pe)),[t,Z]),j=Je.useCallback((ee,pe)=>{if(!T)return;if(k==="single"){T(pe?new Set([ee]):new Set);return}let oe=new Set(X);pe?oe.add(ee):oe.delete(ee),T(oe);},[T,X,k]),H=O.filter(ee=>X.has(ee)).length,A=O.length>0&&H===O.length,G=H>0&&!A,N=Je.useCallback(ee=>{if(!T)return;let pe=new Set(X);for(let oe of O)ee?pe.add(oe):pe.delete(oe);T(pe);},[T,O,X]),C=Je.useMemo(()=>W?[{id:rc,label:"",width:44,align:"center",sortable:false,reorderable:false,exportable:false,mobile:false,render:(pe,oe,le)=>{let wt=Z(oe,le.rowIndex);return jsxRuntime.jsx(ql,{value:void 0,row:oe,context:le,isSelected:X.has(wt),onSelect:(ks,Ro)=>j(wt,Ro)})}},...e]:e,[e,W,X,Z,j]),D=W&&k==="multi"?jsxRuntime.jsx(Xr,{isSelected:A,isIndeterminate:G,onChange:ee=>N(ee),isDisabled:O.length===0,"aria-label":A?"Deselect all rows on this page":"Select all rows on this page"}):void 0,B=Je.useCallback(ee=>ee.id===rc?D:void 0,[D]),[Y,re]=Je.useState(null),ue=I!==void 0,$=ue?I:Y,se=Je.useRef(null),He=Je.useMemo(()=>C.map(ee=>ee.id),[C]),[te,ae]=Je.useState(He),ie=F!==void 0,ye=ie?F:te;Je.useEffect(()=>{ie||ae(ee=>{let pe=C.map(Ro=>Ro.id),oe=new Set(pe),le=new Set(ee),wt=ee.filter(Ro=>oe.has(Ro)),ks=pe.filter(Ro=>!le.has(Ro));return [...wt,...ks]});},[C,ie]);let Le=Je.useCallback(ee=>{ie||ae(ee),z?.(ee);},[ie,z]),Ue=Je.useMemo(()=>{if(!M&&!F)return C;let ee=new Map(C.map(le=>[le.id,le])),pe=ye.map(le=>ee.get(le)).filter(le=>le!==void 0),oe=ee.get(rc);return oe&&!pe.some(le=>le.id===rc)?[oe,...pe]:pe},[C,ye,M,F]),jt=qo({items:t,onLoadMore:f,hasMore:g,isLoading:u,loadingState:m,enableVirtualization:y,estimatedItemSize:b||(o==="compact"?40:o==="relaxed"?60:48),overscan:5}),Yr=f?jt:null,Po=Yr?.scrollRef??se,{loadMoreRef:Uo,virtualizer:Ot,virtualItems:Q,isLoadingMore:J,computedLoadingState:ve}=Yr||{},{gridTemplateColumns:ce,totalMinWidth:q}=Je.useMemo(()=>{let ee=0;return {gridTemplateColumns:Ue.map(oe=>{if(oe.minWidth?ee+=typeof oe.minWidth=="number"?oe.minWidth:0:oe.width&&typeof oe.width=="number"&&(ee+=oe.width),oe.width)return typeof oe.width=="number"?`${oe.width}px`:oe.width;if(oe.flex)return `${oe.flex}fr`;if(oe.minWidth&&oe.maxWidth){let le=typeof oe.minWidth=="number"?`${oe.minWidth}px`:oe.minWidth,wt=typeof oe.maxWidth=="number"?`${oe.maxWidth}px`:oe.maxWidth;return `minmax(${le}, ${wt})`}return oe.minWidth?`minmax(${typeof oe.minWidth=="number"?`${oe.minWidth}px`:oe.minWidth}, 1fr)`:oe.maxWidth?`minmax(0, ${typeof oe.maxWidth=="number"?`${oe.maxWidth}px`:oe.maxWidth})`:"1fr"}).join(" "),totalMinWidth:ee}},[Ue]),he=Je.useCallback(ee=>{if(!C.find(le=>le.id===ee)?.sortable)return;let oe;$?.columnId===ee?oe={columnId:ee,direction:$.direction==="asc"?"desc":"asc"}:oe={columnId:ee,direction:"asc"},ue||re(oe),E?.(oe);},[C,$,E,ue]),ge=ve==="loading"||u&&t.length===0,Pe={};a?(Pe.height=typeof a=="number"?`${a}px`:a,Pe.overflowY="auto"):i?(Pe.maxHeight=typeof i=="number"?`${i}px`:i,Pe.overflowY="auto"):f&&(Pe.height="600px",Pe.overflowY="auto");let nt=tailwindMerge.twMerge(L2[n],!f&&(s==="responsive"?"overflow-x-auto scrollbar-visible":"overflow-auto scrollbar-visible"),r),Xe=xh(d),tr=c!=="none",Re=(ee,pe)=>tr?c==="custom"&&l?l(ee,pe):jsxRuntime.jsx(c==="cards"?tc:ec,{row:ee,columns:Ue,density:o,isLoading:u,onClick:S?()=>S(ee):void 0}):null,no=Ot?Q?.map(ee=>({virtualItem:ee,row:t[ee.index],index:ee.index}))||[]:t.map((ee,pe)=>({row:ee,index:pe,virtualItem:null}));return jsxRuntime.jsxs("div",{ref:Po,className:nt,style:{...Pe,position:Ot?"relative":void 0},children:[jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("grid border-separate border-spacing-0",D2[s],n==="auto"?"inline-grid w-auto":"w-full",tr&&Xe.desktop),role:"table","aria-label":L,style:{gridTemplateColumns:ce,minWidth:q>0?`${q}px`:void 0},children:[!R&&(M?jsxRuntime.jsx(vh,{columns:C,columnOrder:ye,onColumnOrderChange:Le,sortConfig:$,onSort:he,stickyHeader:x,stickyFirstColumn:v,density:o,isLoading:ge,renderHeaderContent:B}):jsxRuntime.jsx("div",{className:"contents",role:"rowgroup",children:Ue.map((ee,pe)=>jsxRuntime.jsx(I2,{column:ee,sortConfig:$,onSort:he,stickyHeader:x,stickyFirstColumn:v,isFirstColumn:pe===0,density:o,isLoading:ge,headerContent:B(ee)},ee.id))})),Ot?jsxRuntime.jsx("div",{className:"col-span-full",style:{gridColumn:"1 / -1",height:`${Ot.getTotalSize()}px`,position:"relative"},role:"rowgroup",children:ge?Array.from({length:p}).map((ee,pe)=>jsxRuntime.jsx("div",{className:"contents",children:jsxRuntime.jsx(Sh,{columns:Ue,rowIndex:pe,density:o,stickyFirstColumn:v})},`loading-${pe}`)):t.length>0?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[no.map(({row:ee,index:pe,virtualItem:oe})=>{if(!ee||!oe)return null;let le=w?w(ee):`row-${pe}`;return jsxRuntime.jsx("div",{style:{position:"absolute",top:0,left:0,width:"100%",display:"grid",gridTemplateColumns:ce,transform:`translateY(${oe.start}px)`},"data-index":oe.index,ref:Ot.measureElement,children:jsxRuntime.jsx(Ch,{columns:Ue,row:ee,rowIndex:pe,density:o,onClick:S,stickyFirstColumn:v,isSelected:W?X.has(Z(ee,pe)):void 0})},le)}),J&&jsxRuntime.jsx("div",{style:{position:"absolute",top:`${Ot.getTotalSize()}px`,left:0,width:"100%"},children:h||jsxRuntime.jsx(Ir,{state:"loading-more"})})]}):jsxRuntime.jsx("div",{className:"py-12 text-center text-text-secondary",children:"No data available"})}):jsxRuntime.jsx("div",{className:"contents",role:"rowgroup",children:ge?Array.from({length:p}).map((ee,pe)=>jsxRuntime.jsx(Sh,{columns:Ue,rowIndex:pe,density:o,stickyFirstColumn:v},`loading-${pe}`)):t.length>0?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[no.map(({row:ee,index:pe})=>{if(!ee)return null;let oe=w?w(ee):`row-${pe}`;return jsxRuntime.jsx(Ch,{columns:Ue,row:ee,rowIndex:pe,density:o,onClick:S,stickyFirstColumn:v,isSelected:W?X.has(Z(ee,pe)):void 0},oe)}),J&&jsxRuntime.jsx("div",{className:"col-span-full",style:{gridColumn:"1 / -1"},children:h||jsxRuntime.jsx(Ir,{state:"loading-more"})})]}):jsxRuntime.jsx("div",{className:"col-span-full py-12 text-center text-text-secondary",role:"row",children:jsxRuntime.jsx("div",{role:"cell",children:"No data available"})})})]}),tr&&jsxRuntime.jsx("div",{className:Xe.mobile,children:ge?Array.from({length:p}).map((ee,pe)=>jsxRuntime.jsx(hh,{density:o},`mobile-loading-${pe}`)):t.length>0?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[no.map(({row:ee,index:pe})=>{if(!ee)return null;let oe=w?w(ee):`mobile-row-${pe}`;return jsxRuntime.jsx("div",{className:"border-b border-border-default last:border-b-0",children:Re(ee,pe)},oe)}),J&&(h||jsxRuntime.jsx(Ir,{state:"loading-more"}))]}):jsxRuntime.jsx("div",{className:"py-12 text-center text-text-secondary",children:"No data available"})}),f&&g&&!ge&&(Ot?jsxRuntime.jsx("div",{ref:Uo,style:{position:"absolute",top:`${Ot.getTotalSize()}px`,left:0,width:"100%",height:1}}):jsxRuntime.jsx("div",{ref:Uo,className:"h-px w-full"}))]})}function kh({status:e,alertCount:t,showCount:r=false,isLoading:o,size:n="sm",shape:a="pill",...i}){if(o)return jsxRuntime.jsx(U,{className:"inline-flex h-6 w-20"});let s={healthy:"success",warning:"warning",error:"error",unknown:"neutral"},c={healthy:"Healthy",warning:"Warning",error:"Error",unknown:"Unknown"},l=e==="warning"||e==="error",d=r&&t?`${c[e]} (${t})`:c[e];return jsxRuntime.jsx(dt,{variant:s[e],size:n,shape:a,dot:l,dotPulse:l,...i,children:d})}var O2={battery:"BatteryHigh",charger:"ChargingStation",thermostat:"ThermometerSimple",inverter:"Power",vehicle:"Car",water_heater:"DropHalfBottom",meter:"Gauge",gateway:"WifiHigh",other:"Cube",unknown:"Question"},H2={battery:"Battery",charger:"Charger",thermostat:"Thermostat",inverter:"Inverter",vehicle:"Vehicle",water_heater:"Water Heater",meter:"Meter",gateway:"Gateway",other:"Other",unknown:"Unknown"};function Ph({deviceType:e,iconName:t,size:r="md",showLabel:o=false,className:n}){let a=t||(e?O2[e]:"Question"),i=e?H2[e]:void 0;return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("inline-flex items-center",o?"flex-col gap-1":"gap-0",n),children:[jsxRuntime.jsx(V,{name:a,size:r}),o&&i&&jsxRuntime.jsx("span",{className:"text-xs text-text-secondary",children:i})]})}function $i({children:e,title:t,headerContent:r,titleAlign:o="left",hideCloseIcon:n=false,hasBackArrow:a=false,onBack:i,isOpen:s,slideInFrom:c="right",transparentOverlay:l=false,onClose:d,className:u,primaryAction:m,secondaryAction:p,tertiaryAction:f,footerContent:g,contentPadding:y=true,maxWidth:b="400px"}){if(!s)return null;let h=t||r,x=m||p||f||g;return jsxRuntime.jsx(Jr,{children:jsxRuntime.jsx(vr,{isOpen:s,onOpenChange:v=>!v&&d?.(),isDismissable:true,transparent:l,children:jsxRuntime.jsx(reactAriaComponents.Modal,{className:"outline-none focus:outline-none focus-visible:outline-none ring-0 focus:ring-0 focus-visible:ring-0",children:jsxRuntime.jsxs(reactAriaComponents.Dialog,{className:tailwindMerge.twMerge("fixed top-0 bottom-0 flex flex-col bg-background-surface shadow-xl overflow-hidden",c==="right"?"right-0":"left-0",c==="right"?"animate-in slide-in-from-right duration-300 ease-out":"animate-in slide-in-from-left duration-300 ease-out","data-[exiting]:animate-out",c==="right"?"data-[exiting]:slide-out-to-right":"data-[exiting]:slide-out-to-left","data-[exiting]:duration-200 data-[exiting]:ease-in","outline-none focus-visible:outline focus-visible:outline-2 focus-visible:outline-action-default focus-visible:outline-offset-0",u),style:{maxWidth:b,width:"100%"},children:[h&&(a&&i?jsxRuntime.jsx(qt,{title:t,headerContent:r,titleAlign:o,hideCloseIcon:n,hasBackArrow:true,onBack:i,onClose:d}):jsxRuntime.jsx(qt,{title:t,headerContent:r,titleAlign:o,hideCloseIcon:n,onClose:d})),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-1 overflow-y-auto overscroll-contain",y?"px-6 py-6":"p-0"),children:e}),x&&jsxRuntime.jsx(Xo,{primaryAction:m,secondaryAction:p,tertiaryAction:f,footerContent:g})]})})})})}$i.displayName="Drawer";function Eh({status:e,programName:t,isLoading:r,size:o="sm",shape:n="pill",...a}){if(r)return jsxRuntime.jsx(U,{className:"inline-flex h-6 w-20"});let i={enrolled:"success",eligible:"info",pending:"warning",not_eligible:"neutral",opted_out:"neutral"},s={enrolled:"Enrolled",eligible:"Eligible",pending:"Pending",not_eligible:"Not Eligible",opted_out:"Opted Out"},c=jsxRuntime.jsx(dt,{variant:i[e],size:o,shape:n,...a,children:s[e]});return t?jsxRuntime.jsx(lr,{content:t,children:c}):c}function Lh({value:e,onChange:t,onUrlChange:r,accept:o="image/*",maxSize:n,isDisabled:a=false,onUpload:i,className:s,showPreview:c=true,placeholder:l="Drop files here or click to browse"}){let[d,u]=Je.useState(false),[m,p]=Je.useState(false),[f,g]=Je.useState(null),[y,b]=Je.useState(e),h=Je.useRef(null),x=async w=>{if(g(null),n&&w.size>n){g(`File size must be less than ${(n/1024/1024).toFixed(2)}MB`);return}if(c&&w.type.startsWith("image/")){let P=new FileReader;P.onloadend=()=>{b(P.result);},P.readAsDataURL(w);}if(i){p(true);try{let P=await i(w);b(P),r?.(P);}catch(P){g("Failed to upload file"),console.error("Upload error:",P);}finally{p(false);}}t?.(w,y);},v=async w=>{try{let P=w.items;if(P.length>0){let T=P[0];if(T.kind==="file"){let k=await T.getFile();k&&x(k);}}}catch(P){g("Failed to upload file"),console.error("Upload error:",P);}finally{u(false);}},S=()=>{b(void 0),g(null),t?.(null),r?.(""),h.current&&(h.current.value="");};return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("w-full",s),children:[jsxRuntime.jsxs(reactAriaComponents.DropZone,{className:tailwindMerge.twMerge("relative flex min-h-[200px] w-full flex-col items-center justify-center rounded-lg border-2 border-dashed transition-colors",d?"border-action-brand bg-action-brand/5":"border-border-muted hover:border-border-default",a&&"pointer-events-none opacity-50",f&&"border-feedback-error-border bg-feedback-error-background/50"),onDrop:v,onDropEnter:()=>u(true),onDropExit:()=>u(false),children:[y?jsxRuntime.jsxs("div",{className:"relative flex h-full w-full items-center justify-center p-4",children:[c&&(y.startsWith("data:image")||y.startsWith("http"))?jsxRuntime.jsx("img",{src:y,alt:"Preview",className:"max-h-48 max-w-full rounded-md object-contain"}):jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-2",children:[jsxRuntime.jsx(lucideReact.Image,{className:"h-12 w-12 text-text-secondary"}),jsxRuntime.jsx("span",{className:"text-sm text-text-secondary",children:"File uploaded"})]}),!a&&jsxRuntime.jsx(_,{variant:"icon",size:"sm",onPress:S,className:"absolute right-2 top-2 bg-background-surface shadow-md",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"})})]}):jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-4 p-6",children:[jsxRuntime.jsx(lucideReact.Upload,{className:"h-12 w-12 text-text-secondary"}),jsxRuntime.jsxs("div",{className:"text-center",children:[jsxRuntime.jsx("p",{className:"text-sm text-text-primary",children:l}),jsxRuntime.jsx("p",{className:"mt-1 text-xs text-text-secondary",children:o==="image/*"?"PNG, JPG, GIF up to 10MB":`Accepts ${o}`})]}),jsxRuntime.jsx(reactAriaComponents.FileTrigger,{acceptedFileTypes:o.split(","),onSelect:w=>{let P=Array.from(w||[]);P.length>0&&x(P[0]);},children:jsxRuntime.jsx(_,{variant:"secondary",size:"sm",isDisabled:a,children:"Choose File"})})]}),m&&jsxRuntime.jsx("div",{className:"absolute inset-0 flex items-center justify-center rounded-lg bg-background-surface/80",children:jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-2",children:[jsxRuntime.jsx("div",{className:"h-8 w-8 animate-spin rounded-full border-2 border-action-brand border-t-transparent"}),jsxRuntime.jsx("span",{className:"text-sm text-text-secondary",children:"Uploading..."})]})})]}),f&&jsxRuntime.jsx("p",{className:"mt-2 text-sm text-feedback-error-text",children:f})]})}function Ah({version:e,isLatest:t,updateAvailable:r,isLoading:o,size:n="sm",shape:a="rounded",...i}){if(o)return jsxRuntime.jsx(U,{className:"inline-flex h-6 w-16"});let s="neutral",c=e;return t?s="success":r&&(s="warning",c=`${e} (Update)`),jsxRuntime.jsx(dt,{variant:s,size:n,shape:a,...i,children:c})}function $a(e){return jsxRuntime.jsx(reactAriaComponents.Form,{validationBehavior:"aria",...e,className:tailwindMerge.twMerge("flex flex-col gap-6",e.className)})}function Fh({placeholder:e="Search...",value:t,onChange:r,isOpen:o,onOpenChange:n,trigger:a,children:i,showShortcutHint:s=true,showInput:c=true,className:l}){let[d,u]=Je.useState(false),m=rr("(max-width: 767px)"),p=o!==void 0?o:d,f=Je.useCallback(h=>{n?n(h):u(h);},[n]);Je.useEffect(()=>{let h=x=>{(x.metaKey||x.ctrlKey)&&x.key==="k"&&(x.preventDefault(),f(!p)),x.key==="Escape"&&p&&f(false);};return window.addEventListener("keydown",h),()=>window.removeEventListener("keydown",h)},[p,f]);let g=Je.useCallback(h=>{r?.(h);},[r]),y=jsxRuntime.jsxs("button",{type:"button",className:"flex items-center gap-2 px-3 py-2 text-sm text-text-secondary hover:text-text-primary hover:bg-background-hover rounded-md transition-colors","aria-label":"Open search",children:[jsxRuntime.jsx(V,{name:"MagnifyingGlass",size:18}),!m&&s&&jsxRuntime.jsxs("span",{className:"hidden md:flex items-center gap-1 text-xs",children:[jsxRuntime.jsx("kbd",{className:"px-1.5 py-0.5 bg-background-muted border border-border-muted rounded text-xs",children:navigator.platform.includes("Mac")?"\u2318":"Ctrl"}),jsxRuntime.jsx("kbd",{className:"px-1.5 py-0.5 bg-background-muted border border-border-muted rounded text-xs",children:"K"})]})]}),b=a===null||Je.isValidElement(a)&&a.type===Je.Fragment&&!a.props.children;return m?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[!b&&(a?jsxRuntime.jsx("button",{type:"button",onClick:()=>f(true),className:"appearance-none bg-transparent border-none p-0 cursor-pointer",children:a}):jsxRuntime.jsx("button",{type:"button",onClick:()=>f(true),className:"appearance-none bg-transparent border-none p-0 cursor-pointer",children:y})),jsxRuntime.jsx(bt,{isOpen:p,onClose:()=>f(false),hideCloseIcon:false,contentPadding:false,maxHeight:"90vh",children:jsxRuntime.jsxs("div",{className:"flex flex-col h-full",children:[c&&jsxRuntime.jsx("div",{className:"p-4 border-b border-border-muted flex-shrink-0",children:jsxRuntime.jsx(Gr,{value:t,onChange:g,placeholder:e,showSearchIcon:true,isClearable:!!t,onClear:()=>r?.(""),reserveErrorSpace:false,className:l,autoFocus:true})}),jsxRuntime.jsx("div",{className:"flex-1 min-h-0 overflow-hidden",children:i})]})})]}):b?null:jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{isOpen:p,onOpenChange:f,children:[a||y,jsxRuntime.jsx(gt,{placement:"bottom",className:"w-[600px] max-w-[90vw] bg-background-surface shadow-xl border border-border-default rounded-lg overflow-hidden",children:jsxRuntime.jsxs("div",{className:"flex flex-col",children:[c&&jsxRuntime.jsx("div",{className:"p-4 border-b border-border-muted",children:jsxRuntime.jsx(Gr,{value:t,onChange:g,placeholder:e,showSearchIcon:true,isClearable:!!t,onClear:()=>r?.(""),reserveErrorSpace:false,className:l,autoFocus:true})}),jsxRuntime.jsx("div",{className:"max-h-[500px] overflow-hidden",children:i})]})})]})}function zh({placeholder:e="Search...",value:t,onChange:r,isOpen:o,onOpenChange:n,children:a,maxHeight:i="400px",variant:s="default",className:c}){let[l,d]=Je.useState(false),u=rr("(max-width: 767px)"),m=Je.useRef(null),p=Je.useRef(null),f=o!==void 0?o:l,g=Je.useCallback(R=>{n?n(R):d(R);},[n]);Je.useEffect(()=>{let R=I=>{(I.metaKey||I.ctrlKey)&&I.key==="k"&&(I.preventDefault(),g(!f)),I.key==="Escape"&&f&&g(false);};return window.addEventListener("keydown",R),()=>window.removeEventListener("keydown",R)},[f,g]),Je.useEffect(()=>{f&&!u&&m.current&&setTimeout(()=>{m.current?.querySelector("input")?.focus();},0);},[f,u]),Je.useEffect(()=>{if(!f||u)return;let R=I=>{let E=I.target,L=m.current?.contains(E),M=p.current?.contains(E);!L&&!M&&g(false);};return document.addEventListener("mousedown",R,true),()=>document.removeEventListener("mousedown",R,true)},[f,u,g]);let y=R=>{r?.(R);},b=Je.useCallback(()=>{g(false);},[g]),h=Je.useCallback(()=>{r?.("");},[r]),[x,v]=Je.useState(null);Je.useEffect(()=>{if(f&&!u&&m.current){let R=null,I=()=>{let L=m.current?.getBoundingClientRect();L&&v({top:L.bottom+8,left:L.left,width:L.width});},E=()=>{R===null&&(R=requestAnimationFrame(()=>{I(),R=null;}));};return I(),window.addEventListener("resize",E),window.addEventListener("scroll",E,true),()=>{window.removeEventListener("resize",E),window.removeEventListener("scroll",E,true),R!==null&&cancelAnimationFrame(R);}}},[f,u]);let S=Je.useCallback(()=>{g(true);},[g]);if(u)return jsxRuntime.jsxs("div",{className:c,children:[jsxRuntime.jsx("button",{type:"button",onClick:S,className:"flex items-center justify-center w-10 h-10 rounded-lg hover:bg-background-hover transition-colors","aria-label":"Open search",children:jsxRuntime.jsx(V,{name:"MagnifyingGlass",size:"md"})}),jsxRuntime.jsxs(bt,{isOpen:f,onClose:b,contentPadding:false,height:"80vh",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2 px-4 pt-4",children:[jsxRuntime.jsx("div",{className:"flex-1",children:jsxRuntime.jsx(Gr,{value:t,onChange:y,placeholder:e,showSearchIcon:true,isClearable:!!t,onClear:h,reserveErrorSpace:false,autoFocus:true})}),jsxRuntime.jsx(_,{variant:"icon",onPress:b,"aria-label":"Close search",className:"flex-shrink-0",children:jsxRuntime.jsx(V,{name:"X",size:"md"})})]}),jsxRuntime.jsx("div",{className:"mt-4",children:a})]})]},"mobile");let w=R=>{let E=R.target.tagName==="INPUT";if(R.key==="ArrowDown"&&f&&E){R.preventDefault();let L=p.current?.querySelector("[data-search-result]");L&&L.focus();}},P=R=>{let I=R.target;if(!I.hasAttribute("data-search-result"))return;let L=Array.from(p.current?.querySelectorAll("[data-search-result]")||[]),M=L.indexOf(I);if(R.key==="ArrowDown"){R.preventDefault(),R.stopPropagation();let F=Math.min(M+1,L.length-1);L[F]?.focus();}else if(R.key==="ArrowUp")if(R.preventDefault(),R.stopPropagation(),M===0)m.current?.querySelector("input")?.focus();else {let F=Math.max(M-1,0);L[F]?.focus();}else R.key==="Escape"&&(R.preventDefault(),R.stopPropagation(),g(false),m.current?.querySelector("input")?.focus());},T=f&&x&&typeof document<"u"?reactDom.createPortal(jsxRuntime.jsx("div",{ref:p,style:{position:"fixed",top:`${x.top}px`,left:`${x.left}px`,width:`${x.width}px`,zIndex:9999},role:"listbox",onKeyDown:P,children:jsxRuntime.jsx("div",{className:"bg-background-surface shadow-2xl border border-border-default rounded-lg overflow-hidden animate-in fade-in zoom-in-95 duration-200",children:jsxRuntime.jsx("div",{className:"overflow-y-auto",style:{maxHeight:i},children:a})})}),document.body):null,k=s==="elevated"?"bg-background-muted/50 border-border-subtle/50 focus-within:bg-background-body focus-within:border-border-focus focus-within:shadow-md backdrop-blur-sm transition-all duration-200":"";return jsxRuntime.jsxs("div",{ref:m,className:`relative w-full ${c||""}`,onKeyDown:w,children:[jsxRuntime.jsx(Gr,{value:t,onChange:y,placeholder:e,showSearchIcon:true,isClearable:!!t,onClear:()=>r?.(""),reserveErrorSpace:false,className:k,onFocus:()=>g(true)}),T]},"desktop")}function Oh({message:e="No results found",suggestion:t,icon:r="MagnifyingGlass",className:o=""}){return jsxRuntime.jsxs("div",{className:`flex flex-col items-center justify-center py-12 px-4 text-center ${o}`,children:[jsxRuntime.jsx("div",{className:"text-text-secondary mb-3",children:jsxRuntime.jsx(V,{name:r,size:48})}),jsxRuntime.jsx("p",{className:"text-base font-medium text-text-primary mb-1",children:e}),t&&jsxRuntime.jsx("p",{className:"text-sm text-text-secondary max-w-xs",children:t})]})}function Gh({count:e=3,className:t=""}){return jsxRuntime.jsx("div",{className:`flex flex-col ${t}`,children:Array.from({length:e}).map((r,o)=>jsxRuntime.jsxs("div",{className:"flex items-center gap-3 px-4 py-2.5",children:[jsxRuntime.jsx(U,{width:20,height:20,variant:"circle"}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0 space-y-2",children:[jsxRuntime.jsx(U,{width:"60%",height:16}),jsxRuntime.jsx(U,{width:"40%",height:12})]}),jsxRuntime.jsx(U,{width:16,height:16})]},o))})}function Uh({title:e,count:t,isLoading:r,footer:o,children:n,className:a}){return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex flex-col",a),children:[jsxRuntime.jsxs("div",{className:"flex items-baseline gap-1.5 px-4 pt-4 pb-2 border-t border-border-muted first:border-t-0",children:[jsxRuntime.jsx("h3",{className:"text-sm font-semibold text-text-primary",children:e}),!r&&t!==void 0&&jsxRuntime.jsx("span",{className:"text-xs text-text-secondary",children:t}),r&&jsxRuntime.jsx("span",{className:"text-xs text-text-secondary animate-pulse",children:"Loading..."})]}),jsxRuntime.jsx("div",{className:"flex flex-col",children:n}),o&&jsxRuntime.jsx("div",{className:"px-4 py-2 border-t border-border-subtle",children:o})]})}function Kh({id:e,title:t,subtitle:r,metadata:o,icon:n,customIcon:a,onSelect:i,isFocused:s=false,className:c,testId:l}){return jsxRuntime.jsxs("div",{role:"option",tabIndex:0,onClick:()=>{i?.(e);},onKeyDown:m=>{let p=m.currentTarget;switch(m.key){case "Enter":case " ":{m.preventDefault(),i?.(e);break}case "ArrowDown":{m.preventDefault();let f=Array.from(document.querySelectorAll("[data-search-result]")),g=f.indexOf(p);g!==-1&&g<f.length-1&&f[g+1].focus();break}case "ArrowUp":{m.preventDefault();let f=Array.from(document.querySelectorAll("[data-search-result]")),g=f.indexOf(p);if(g>0)f[g-1].focus();else {let y=document.querySelector('input[type="text"][placeholder*="Search"]');y&&y.focus();}break}case "Escape":{m.preventDefault();let f=document.querySelector('input[type="text"][placeholder*="Search"]');f&&f.focus();break}}},"data-testid":l,"data-search-result":true,className:tailwindMerge.twMerge("group flex items-center gap-3 px-4 py-3 cursor-pointer outline-none transition-colors","text-text-primary hover:bg-background-hover","focus-visible:bg-background-muted focus-visible:outline-none","data-[focused]:bg-background-hover",s&&"bg-background-hover",c),"data-focused":s||void 0,children:[a?jsxRuntime.jsx("div",{className:"flex-shrink-0",children:a}):n?jsxRuntime.jsx("div",{className:"flex-shrink-0 text-text-secondary",children:jsxRuntime.jsx(V,{name:n,size:20})}):null,jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsxs("div",{className:"flex items-baseline gap-2",children:[jsxRuntime.jsx("span",{className:"font-medium text-text-primary truncate",children:t}),o&&jsxRuntime.jsx("span",{className:"text-xs text-text-secondary flex-shrink-0",children:o})]}),r&&jsxRuntime.jsx("div",{className:"text-sm text-text-secondary truncate mt-0.5",children:r})]}),jsxRuntime.jsx("div",{className:"flex-shrink-0 opacity-0 group-hover:opacity-100 group-focus-visible:opacity-100 group-data-[focused]:opacity-100 transition-opacity",children:jsxRuntime.jsx(V,{name:"ArrowRight",size:16,className:"text-text-secondary"})})]})}function Yh({children:e,maxHeight:t="400px",className:r}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-y-auto overscroll-contain","divide-y divide-border-muted",r),style:{maxHeight:t},children:e})}function Xh({placeholder:e="Search...",onClick:t,showShortcut:r=true,variant:o="default",className:n=""}){let a=typeof navigator<"u"&&navigator.platform.includes("Mac");return jsxRuntime.jsxs("button",{type:"button",onClick:t,className:`
|
|
29
29
|
flex items-center gap-3 w-full px-4 py-2.5 rounded-lg
|
|
30
30
|
transition-all duration-200 cursor-text
|
|
31
31
|
${{default:`
|
|
@@ -37,12 +37,12 @@
|
|
|
37
37
|
backdrop-blur-sm
|
|
38
38
|
`}[o]}
|
|
39
39
|
${n}
|
|
40
|
-
`,"aria-label":"Open search",children:[jsxRuntime.jsx(F,{name:"MagnifyingGlass",size:18,className:"flex-shrink-0 transition-colors text-text-secondary"}),jsxRuntime.jsx("span",{className:`flex-1 text-left text-sm transition-colors ${o==="elevated"?"text-text-secondary font-normal":"text-text-disabled"}`,children:e}),r&&jsxRuntime.jsxs("div",{className:"hidden sm:flex items-center gap-1 flex-shrink-0",children:[jsxRuntime.jsx("kbd",{className:`px-2 py-1 text-xs font-medium rounded transition-colors ${o==="elevated"?"bg-background-surface/80 border border-border-muted text-text-secondary":"bg-background-muted border border-border-muted"}`,children:a?"\u2318":"Ctrl"}),jsxRuntime.jsx("kbd",{className:`px-2 py-1 text-xs font-medium rounded transition-colors ${o==="elevated"?"bg-background-surface/80 border border-border-muted text-text-secondary":"bg-background-muted border border-border-muted"}`,children:"K"})]})]})}var oE={1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",7:"grid-cols-7",8:"grid-cols-8",9:"grid-cols-9",10:"grid-cols-10",11:"grid-cols-11",12:"grid-cols-12",none:"grid-cols-none"},nE={sm:{1:"sm:grid-cols-1",2:"sm:grid-cols-2",3:"sm:grid-cols-3",4:"sm:grid-cols-4",5:"sm:grid-cols-5",6:"sm:grid-cols-6",7:"sm:grid-cols-7",8:"sm:grid-cols-8",9:"sm:grid-cols-9",10:"sm:grid-cols-10",11:"sm:grid-cols-11",12:"sm:grid-cols-12",none:"sm:grid-cols-none"},md:{1:"md:grid-cols-1",2:"md:grid-cols-2",3:"md:grid-cols-3",4:"md:grid-cols-4",5:"md:grid-cols-5",6:"md:grid-cols-6",7:"md:grid-cols-7",8:"md:grid-cols-8",9:"md:grid-cols-9",10:"md:grid-cols-10",11:"md:grid-cols-11",12:"md:grid-cols-12",none:"md:grid-cols-none"},lg:{1:"lg:grid-cols-1",2:"lg:grid-cols-2",3:"lg:grid-cols-3",4:"lg:grid-cols-4",5:"lg:grid-cols-5",6:"lg:grid-cols-6",7:"lg:grid-cols-7",8:"lg:grid-cols-8",9:"lg:grid-cols-9",10:"lg:grid-cols-10",11:"lg:grid-cols-11",12:"lg:grid-cols-12",none:"lg:grid-cols-none"},xl:{1:"xl:grid-cols-1",2:"xl:grid-cols-2",3:"xl:grid-cols-3",4:"xl:grid-cols-4",5:"xl:grid-cols-5",6:"xl:grid-cols-6",7:"xl:grid-cols-7",8:"xl:grid-cols-8",9:"xl:grid-cols-9",10:"xl:grid-cols-10",11:"xl:grid-cols-11",12:"xl:grid-cols-12",none:"xl:grid-cols-none"},"2xl":{1:"2xl:grid-cols-1",2:"2xl:grid-cols-2",3:"2xl:grid-cols-3",4:"2xl:grid-cols-4",5:"2xl:grid-cols-5",6:"2xl:grid-cols-6",7:"2xl:grid-cols-7",8:"2xl:grid-cols-8",9:"2xl:grid-cols-9",10:"2xl:grid-cols-10",11:"2xl:grid-cols-11",12:"2xl:grid-cols-12",none:"2xl:grid-cols-none"}},aE={none:"gap-0",xs:"gap-x-2 gap-y-1",sm:"gap-x-3 gap-y-2",md:"gap-x-4 gap-y-3",lg:"gap-x-6 gap-y-4",xl:"gap-x-8 gap-y-6","2xl":"gap-x-12 gap-y-8"},iE={none:"gap-x-0",xs:"gap-x-2",sm:"gap-x-3",md:"gap-x-4",lg:"gap-x-6",xl:"gap-x-8","2xl":"gap-x-12"},sE={none:"gap-y-0",xs:"gap-y-1",sm:"gap-y-2",md:"gap-y-3",lg:"gap-y-4",xl:"gap-y-6","2xl":"gap-y-8"},lE={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},cE={start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},dE={row:"grid-flow-row",col:"grid-flow-col",dense:"grid-flow-dense","row-dense":"grid-flow-row-dense","col-dense":"grid-flow-col-dense"},uE={1:"col-span-1",2:"col-span-2",3:"col-span-3",4:"col-span-4",5:"col-span-5",6:"col-span-6",7:"col-span-7",8:"col-span-8",9:"col-span-9",10:"col-span-10",11:"col-span-11",12:"col-span-12",full:"col-span-full",auto:"col-auto"},pE={sm:{1:"sm:col-span-1",2:"sm:col-span-2",3:"sm:col-span-3",4:"sm:col-span-4",5:"sm:col-span-5",6:"sm:col-span-6",7:"sm:col-span-7",8:"sm:col-span-8",9:"sm:col-span-9",10:"sm:col-span-10",11:"sm:col-span-11",12:"sm:col-span-12",full:"sm:col-span-full",auto:"sm:col-auto"},md:{1:"md:col-span-1",2:"md:col-span-2",3:"md:col-span-3",4:"md:col-span-4",5:"md:col-span-5",6:"md:col-span-6",7:"md:col-span-7",8:"md:col-span-8",9:"md:col-span-9",10:"md:col-span-10",11:"md:col-span-11",12:"md:col-span-12",full:"md:col-span-full",auto:"md:col-auto"},lg:{1:"lg:col-span-1",2:"lg:col-span-2",3:"lg:col-span-3",4:"lg:col-span-4",5:"lg:col-span-5",6:"lg:col-span-6",7:"lg:col-span-7",8:"lg:col-span-8",9:"lg:col-span-9",10:"lg:col-span-10",11:"lg:col-span-11",12:"lg:col-span-12",full:"lg:col-span-full",auto:"lg:col-auto"},xl:{1:"xl:col-span-1",2:"xl:col-span-2",3:"xl:col-span-3",4:"xl:col-span-4",5:"xl:col-span-5",6:"xl:col-span-6",7:"xl:col-span-7",8:"xl:col-span-8",9:"xl:col-span-9",10:"xl:col-span-10",11:"xl:col-span-11",12:"xl:col-span-12",full:"xl:col-span-full",auto:"xl:col-auto"},"2xl":{1:"2xl:col-span-1",2:"2xl:col-span-2",3:"2xl:col-span-3",4:"2xl:col-span-4",5:"2xl:col-span-5",6:"2xl:col-span-6",7:"2xl:col-span-7",8:"2xl:col-span-8",9:"2xl:col-span-9",10:"2xl:col-span-10",11:"2xl:col-span-11",12:"2xl:col-span-12",full:"2xl:col-span-full",auto:"2xl:col-auto"}};function Wh(e,t,r){if(!e)return "";if(typeof e!="object")return t[e]||"";let o=[];return "base"in e&&e.base!==void 0&&o.push(t[e.base]),Object.entries(r).forEach(([n,a])=>{let i=e[n];i!==void 0&&o.push(a[i]);}),o.join(" ")}function Tp({cols:e=1,gap:t="md",gapX:r,gapY:o,align:n="stretch",justify:a="start",flow:i="row",autoFit:s,autoFill:c,className:l,children:d}){let u=tailwindMerge.twMerge("grid",s||c?"":Wh(e,oE,nE),!r&&!o&&aE[t],r&&iE[r],o&&sE[o],lE[n],cE[a],dE[i],l),m={};return s?m.gridTemplateColumns=`repeat(auto-fit, minmax(${s}, 1fr))`:c&&(m.gridTemplateColumns=`repeat(auto-fill, minmax(${c}, 1fr))`),jsxRuntime.jsx("div",{className:u,style:m,children:d})}function mE({span:e,className:t,children:r}){let o=tailwindMerge.twMerge(Wh(e,uE,pE),t);return jsxRuntime.jsx("div",{className:o,children:r})}Tp.Item=mE;function fE(e,t){return Ke__namespace.default.isValidElement(e)?e:no({value:e,formatter:t,emptyClassName:"text-text-secondary",emptyText:"\u2014"})}function gE(e){if(e.thresholds&&e.value!==null&&e.value!==void 0){for(let t of e.thresholds)if(t.when(e.value))return t.tone}return e.tone}var bE={neutral:"text-text-primary",success:"text-feedback-success",warning:"text-feedback-warning",error:"text-feedback-error",info:"text-feedback-info"},xE=24,hE=20;function yE({item:e,dense:t,valueAlign:r}){let o=gE(e),n=o?bE[o]:"",a=e.stackOnMobile,i=typeof e.value=="string"&&e.value.length>xE&&!e.formatter&&!Ke__namespace.default.isValidElement(e.value),s=fE(e.value,e.formatter),c=i?Ca(e.value,hE):null,l=typeof e.copyable=="function"?e.copyable(e.value):String(e.value),d=e.piiType&&e.piiEntity?{"data-pii-type":e.piiType,"data-pii-entity":e.piiEntity}:{},u=Object.keys(d).length>0,m=i?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(nr,{content:u?jsxRuntime.jsx("span",{...d,children:String(e.value)}):String(e.value),children:jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("md:hidden",e.href?"hover:underline cursor-pointer":""),...d,children:c})}),jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("hidden md:inline",e.href?"hover:underline cursor-pointer":""),...d,children:s})]}):jsxRuntime.jsx("span",{className:e.href?"hover:underline cursor-pointer":"",...d,children:s}),p=e.copyable?jsxRuntime.jsx(Qo,{value:l,size:"sm",children:jsxRuntime.jsx("span",{className:"sr-only",children:"Copy"})}):null,f=e.copyable&&(e.copyIconPosition==="left"||!e.copyIconPosition),g=e.copyable&&e.copyIconPosition==="right",b=jsxRuntime.jsxs("dd",{className:tailwindMerge.twMerge(t?"text-sm":"text-base","font-medium",a?r==="start"?"text-left":"text-left sm:text-right":r==="start"?"text-left":"text-right",n,e.disabled&&"opacity-50","overflow-hidden min-w-0"),children:[jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("inline-flex items-center gap-1 max-w-full",r==="start"?"justify-start":"justify-end"),children:[jsxRuntime.jsxs("span",{className:"inline-flex items-center gap-1 min-w-0",children:[m,e.iconRight]}),g&&p]}),e.meta&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-xs text-text-secondary mt-0.5",r==="start"?"text-left":"text-right"),children:e.meta})]}),y=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("dt",{className:tailwindMerge.twMerge(t?"text-xs":"text-sm","text-text-secondary truncate","flex items-center gap-1",e.disabled&&"opacity-50"),children:[e.iconLeft,jsxRuntime.jsx("span",{title:typeof e.label=="string"?e.label:void 0,children:e.label}),e.tooltip&&jsxRuntime.jsx(F,{name:"Question",size:10,className:"text-text-secondary","aria-label":"More information"})]}),f&&jsxRuntime.jsx("div",{className:"flex items-center",children:p}),e.href?jsxRuntime.jsx("a",{href:e.href,onClick:e.onAction,className:"block",children:b}):b]});return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("grid",a?"items-start sm:items-center":f?"items-center":"items-start",a?f?"grid-cols-1 gap-y-1 sm:grid-cols-[minmax(120px,1fr)_auto_auto] sm:gap-x-1 sm:gap-y-0":t?"grid-cols-1 gap-y-1 sm:grid-cols-[minmax(120px,1fr)_1fr] sm:gap-x-2 sm:gap-y-0":"grid-cols-1 gap-y-1 sm:grid-cols-[minmax(120px,1fr)_1fr] sm:gap-x-4 sm:gap-y-0":f?"grid-cols-[minmax(120px,1fr)_auto_auto] gap-x-1":t?"grid-cols-[minmax(120px,1fr)_1fr] gap-x-2":"grid-cols-[minmax(120px,1fr)_1fr] gap-x-4"),children:y})}function oc({items:e,layout:t="one-column",dense:r=false,valueAlign:o="end",showDividers:n=false,skeleton:a=false,empty:i=false,error:s,className:c}){return a?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("grid",t==="two-column"?"md:grid-cols-2 gap-x-6":"grid-cols-1",r?"gap-y-1":"gap-y-2",c),children:Array.from({length:e.length||4}).map((l,d)=>jsxRuntime.jsxs("div",{className:"grid grid-cols-[1fr_auto] items-start gap-x-4",children:[jsxRuntime.jsx(K,{className:"h-4 w-24"}),jsxRuntime.jsx(K,{className:"h-5 w-16"})]},d))}):s?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-sm text-feedback-error",c),children:s}):i||!e.length?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-sm text-text-secondary",c),children:"No data available"}):jsxRuntime.jsx("dl",{className:tailwindMerge.twMerge("grid",t==="two-column"?"md:grid-cols-2 gap-x-6":"grid-cols-1",r?"gap-y-1":"gap-y-2",c),children:e.map((l,d)=>jsxRuntime.jsxs(Ke__namespace.default.Fragment,{children:[n&&d>0&&t==="one-column"&&jsxRuntime.jsx("div",{className:"col-span-full border-t border-border-default -mt-1 mb-1"}),jsxRuntime.jsx(yE,{item:l,dense:r,valueAlign:o})]},l.id))})}function Yh({node:e,renderNodeList:t}){let r=e.children||[],o=e.metadata&&Object.keys(e.metadata).length>0;return jsxRuntime.jsxs("div",{className:"flex flex-col h-full",children:[jsxRuntime.jsx("div",{className:"flex-shrink-0 px-4 py-4",children:jsxRuntime.jsx("h3",{className:"font-semibold text-text-primary text-lg",children:e.name})}),o&&jsxRuntime.jsx("div",{className:"flex-shrink-0 border-y border-border-default px-4 py-4 bg-background-muted",children:jsxRuntime.jsx(oc,{items:Object.entries(e.metadata||{}).map(([n,a])=>({id:n,label:n,value:a??"\u2014"})),dense:true,layout:"one-column",valueAlign:"end",showDividers:true})}),r.length>0&&jsxRuntime.jsx("div",{className:"flex-1 overflow-auto",children:t(r,false)})]})}var dt={xs:{node:"px-2 py-2 text-xs",icon:"xs",bullet:24,spacing:{x:8,y:8}},sm:{node:"px-3 py-2.5 text-sm",icon:"xs",bullet:28,spacing:{x:12,y:10}},md:{node:"px-4 py-3 text-base",icon:"sm",bullet:32,spacing:{x:16,y:12}}};var Rp=Ke__namespace.createContext(null);function Jh(){let e=Ke__namespace.useContext(Rp);if(!e)throw new Error("Hierarchy components must be used within HierarchyExplorer");return e}function jh({node:e,renderNode:t}){let{selectedId:r,selectNode:o,navigateToNode:n,variant:a,size:i,showBullets:s,rootNodeId:c,stickyRootNode:l,navigationStack:d,setRootNodeSticky:u,useSplitLayout:m}=Jh(),p=Ke__namespace.useRef(null),f=Ke__namespace.useRef(null),g=r===e.id,h=e.disabled||false,b=!!(e.children&&e.children.length>0),y=!!(e.metadata&&Object.keys(e.metadata).length>0),x=b||y,v=c!==void 0&&e.id!==void 0&&c===e.id&&d.length===0;Ke__namespace.useLayoutEffect(()=>{v&&l&&p.current&&f.current===null&&requestAnimationFrame(()=>{p.current&&(f.current=p.current.offsetTop);});},[v,l]),Ke__namespace.useEffect(()=>{if(!v||!l||!p.current)return;let I=p.current.parentElement;for(;I;){let L=window.getComputedStyle(I).overflowY;if(L==="auto"||L==="scroll")break;I=I.parentElement;}if(!I)return;let R=()=>{if(!p.current||f.current===null)return;let L=I.getBoundingClientRect(),M=I.scrollTop,V=L.height,z=p.current.offsetHeight,Q=f.current-M,Z=Q+z,H=Q<0,j=Z>V;H?u("top",e):j?u("bottom",e):u(null,null);};return I.addEventListener("scroll",R),R(),()=>{I.removeEventListener("scroll",R);}},[v,l,e,u]);let S=()=>{h||(m?o(e):x?n(e):o(e));},w=I=>{h||(I.key==="Enter"||I.key===" ")&&(I.preventDefault(),S());},k={isSelected:g,isDisabled:h,hasChildren:b,hasMetadata:y,level:0},P=tailwindMerge.twMerge("relative cursor-pointer group",h&&"opacity-50 cursor-not-allowed"),T=tailwindMerge.twMerge("absolute inset-0 transition-colors",v&&!g&&!h&&"group-hover:bg-background-hover",v&&g&&!h&&a==="subtle"&&"bg-background-selected group-hover:bg-background-hover",v&&g&&h&&a==="subtle"&&"bg-background-selected",v&&g&&!h&&a==="solid"&&"bg-action-brand group-hover:bg-action-brand-hover",v&&g&&h&&a==="solid"&&"bg-action-brand",!v&&a==="subtle"&&!g&&!h&&"group-hover:bg-background-hover",!v&&a==="subtle"&&g&&!h&&"bg-background-selected group-hover:bg-background-hover",!v&&a==="subtle"&&g&&h&&"bg-background-selected",!v&&a==="solid"&&!g&&!h&&"group-hover:bg-background-hover",!v&&a==="solid"&&g&&!h&&"bg-action-brand group-hover:bg-action-brand-hover",!v&&a==="solid"&&g&&h&&"bg-action-brand"),E=tailwindMerge.twMerge("relative flex items-center gap-2 text-text-primary hover:text-text-primary transition-colors",dt[i].node,v&&!g&&"font-semibold",a==="subtle"&&g&&"text-text-link-default",a==="solid"&&g&&"text-[color:var(--color-action-brand-text)]");return jsxRuntime.jsxs("div",{ref:p,className:P,onClick:S,onKeyDown:w,role:"treeitem","aria-selected":g,"aria-disabled":h,tabIndex:0,"data-node-id":e.id,children:[jsxRuntime.jsx("div",{className:T}),jsxRuntime.jsxs("div",{className:E,children:[s&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("relative rounded-full flex items-center justify-center flex-shrink-0 z-20",v&&"bg-action-brand border-action-brand",!v&&"bg-background-muted border border-border-default"),style:{width:dt[i].bullet,height:dt[i].bullet},children:e.icon&&jsxRuntime.jsx(F,{name:e.icon,size:dt[i].icon,weight:v?"fill":"regular",className:v?"text-[color:var(--color-action-brand-text)]":"text-text-primary"})}),jsxRuntime.jsx("div",{className:"flex-1 min-w-0",children:t?t(e,k):jsxRuntime.jsx("span",{className:"truncate",children:e.name})}),x&&!m&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:jsxRuntime.jsx(F,{name:"CaretRight",size:dt[i].icon,className:"text-text-secondary"})})]})]})}function Qh({items:e,showConnector:t=false,scrollContainerRef:r,showBullets:o,size:n,renderNode:a}){return jsxRuntime.jsxs("div",{className:"relative",ref:t&&r?r:void 0,children:[o&&e.length>0&&t&&jsxRuntime.jsx("div",{className:"absolute w-px bg-text-secondary z-10 pointer-events-none",style:{left:`${dt[n].spacing.x+dt[n].bullet/2}px`,top:`${dt[n].spacing.y+dt[n].bullet/2}px`,bottom:`${dt[n].spacing.y+dt[n].bullet/2}px`},"aria-hidden":"true"}),e.map(i=>jsxRuntime.jsx(jh,{node:i,renderNode:a},i.id))]})}function es({children:e,mode:t="sync",presenceKey:r}){let o=r!==void 0&&Ke__namespace.default.isValidElement(e)?Ke__namespace.default.cloneElement(e,{key:r}):r!==void 0?jsxRuntime.jsx("div",{children:e},r):e;return jsxRuntime.jsx(framerMotion.AnimatePresence,{mode:t,children:o})}function $h(){let[e,t]=Ke.useState(()=>typeof window>"u"?false:window.matchMedia("(prefers-reduced-motion: reduce)").matches);return Ke.useEffect(()=>{let r=window.matchMedia("(prefers-reduced-motion: reduce)");t(r.matches);let o=n=>{t(n.matches);};return r.addEventListener("change",o),()=>{r.removeEventListener("change",o);}},[]),e}var TE={instant:0,fast:150,normal:250,slow:350,slower:500},Ep={xs:"4px",sm:"8px",md:"16px"};function PE(e){return e?typeof e=="string"&&e in Ep?Ep[e]:typeof e=="number"?`${e}px`:e:Ep.sm}function ts({children:e,direction:t,distance:r="sm",duration:o="normal",delay:n=0,className:a}){let i=$h(),s=typeof o=="number"?o:TE[o],c=PE(r),l=p=>{switch(t){case "left":return {x:`-${p}`};case "right":return {x:p};case "up":return {y:`-${p}`};case "down":return {y:p}}},d=i?{opacity:0}:{opacity:0,...l(c)},u={opacity:1,x:0,y:0},m=i?{opacity:0}:{opacity:0,...l(c)};return jsxRuntime.jsx(framerMotion.motion.div,{className:a,initial:d,animate:u,exit:m,transition:{duration:i?0:s/1e3,delay:i?0:n/1e3,ease:[.4,0,.2,1]},children:e})}function ic({navigationStack:e,onNavigateBack:t,size:r}){let o=e.length===1?"Back to main":`Back to ${e[e.length-2]?.name}`;return jsxRuntime.jsx("div",{className:"sticky top-0 z-10 bg-background-surface border-b border-border-default flex-shrink-0",children:jsxRuntime.jsxs("button",{type:"button",onClick:t,className:tailwindMerge.twMerge("w-full flex items-center gap-2 transition-colors text-left group",dt[r].node),children:[jsxRuntime.jsx(F,{name:"CaretLeft",size:dt[r].icon,className:"text-text-secondary group-hover:text-text-primary transition-colors"}),jsxRuntime.jsx("span",{className:"font-medium text-text-primary group-hover:text-text-link-hover transition-colors",children:o})]})})}function sc({node:e,position:t,selectedId:r,variant:o,size:n,showBullets:a}){let i=r===e.id;return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("absolute z-30 left-0 right-0 border-border-default transition-all duration-200 bg-background-surface",dt[n].node,i?o==="subtle"?"text-text-link-default":"bg-action-brand text-[color:var(--color-action-brand-text)]":"font-semibold",t==="top"&&"top-0 border-b shadow-[0_4px_6px_-1px_rgba(0,0,0,0.1)]",t==="bottom"&&"bottom-0 border-t shadow-[0_-4px_6px_-1px_rgba(0,0,0,0.1)]"),children:[i&&o==="subtle"&&jsxRuntime.jsx("div",{className:"absolute inset-0 bg-background-selected"}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2 cursor-pointer relative z-10",children:[a&&jsxRuntime.jsx("div",{className:"flex-shrink-0 rounded-full flex items-center justify-center bg-action-brand border-action-brand",style:{width:dt[n].bullet,height:dt[n].bullet},children:e.icon&&jsxRuntime.jsx(F,{name:e.icon,size:dt[n].icon,weight:"fill",className:"text-[color:var(--color-action-brand-text)]"})}),jsxRuntime.jsx("div",{className:"flex-1 min-w-0",children:jsxRuntime.jsx("span",{className:"truncate",children:e.name})})]})]})}function ty({currentItems:e,currentParent:t,navigationStack:r,selectedId:o,variant:n,size:a,showBullets:i,slideDirection:s,viewKey:c,hasHeight:l,rootNodeStickyState:d,renderNodeList:u,renderDetailContent:m,onNavigateBack:p}){return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[r.length===0&&d.position&&d.node&&jsxRuntime.jsx(sc,{node:d.node,position:d.position,selectedId:o,variant:n,size:a,showBullets:i}),r.length>0&&jsxRuntime.jsx(ic,{navigationStack:r,onNavigateBack:p,size:a}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("relative",l&&"overflow-auto h-full"),children:jsxRuntime.jsx(es,{mode:"wait",presenceKey:c,children:r.length===0?u(e,true):jsxRuntime.jsx(ts,{direction:s,distance:"100%",duration:"normal",children:m(t)})})})]})}function Lp(e,t){for(let r of e){if(r.id===t)return r;if(r.children&&r.children.length>0){let o=Lp(r.children,t);if(o)return o}}return null}function lc(e){if(e!==void 0)return typeof e=="number"?`${e}px`:e}function ry(e,t){if(process.env.NODE_ENV!=="development")return;let r=new Set,o=(n,a="root")=>{for(let i=0;i<n.length;i++){let s=n[i],c=`${a}[${i}]`;s.id?r.has(s.id)?console.warn(`[HierarchyExplorer] Duplicate node ID found: "${s.id}". Each node must have a unique ID.`):r.add(s.id):console.warn(`[HierarchyExplorer] Node at ${c} is missing an "id" field. Node name: "${s.name||"(unnamed)"}"`),s.children&&o(s.children,`${c}.children`);}};o(e),t&&!r.has(t)&&console.warn(`[HierarchyExplorer] Root node ID "${t}" not found in data. No node will be highlighted as root.`);}function ny({data:e,currentItems:t,navigationStack:r,selectedId:o,variant:n,size:a,showBullets:i,rootNodeStickyState:s,renderNodeList:c,renderDetailContent:l,renderEmptyState:d,onNavigateBack:u}){let m=o?Lp(e,o):null;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{className:"flex-1 min-w-0 border-r border-border-default flex flex-col relative",children:[r.length===0&&s.position&&s.node&&jsxRuntime.jsx(sc,{node:s.node,position:s.position,selectedId:o,variant:n,size:a,showBullets:i}),r.length>0&&jsxRuntime.jsx(ic,{navigationStack:r,onNavigateBack:u,size:a}),jsxRuntime.jsx("div",{className:"flex-1 overflow-auto",children:c(t,r.length===0)})]}),jsxRuntime.jsx("div",{className:"flex-1 min-w-0 overflow-auto bg-background-body",children:jsxRuntime.jsx(es,{mode:"wait",presenceKey:m?.id||"empty",children:m?jsxRuntime.jsx(ts,{direction:"left",duration:"fast",children:l(m)}):d?d():jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-text-secondary text-center",dt[a].node,"py-8"),children:"Select an item to view details"})})})]})}function ay({data:e,renderNode:t,onNodeSelect:r,onNavigate:o,selectedId:n,rootNodeId:a,stickyRootNode:i=true,height:s,minHeight:c,maxHeight:l,variant:d="subtle",size:u="md",showBullets:m=true,layout:p="auto",splitBreakpoint:f=768,renderEmptyState:g,renderDetailView:h,className:b,"aria-label":y="Hierarchy explorer"}){let[x,v]=Ke__namespace.useState(null),[S,w]=Ke__namespace.useState([]),[k,P]=Ke__namespace.useState("left"),[T,E]=Ke__namespace.useState({position:null,node:null}),{ref:I,width:R}=Da(),L=Ke__namespace.useMemo(()=>p==="split"?true:p==="single"?false:R>=f,[p,R,f]),M=n!==void 0?n:x;Ke__namespace.useEffect(()=>{ry(e,a);},[e,a]);let V=S.length>0?S[S.length-1]:null,z=V?V.children||[]:e,U=Ke__namespace.useCallback(B=>{P("left"),w(X=>[...X,B]),o?.(B,[...S,B]);},[S,o]),Q=Ke__namespace.useCallback(()=>{P("right"),w(B=>{let X=B.slice(0,-1);return o?.(X.length>0?X[X.length-1]:null,X),X});},[o]),Z=Ke__namespace.useCallback(B=>{n===void 0&&v(B.id),r?.(B,[...S,B]);},[n,S,r]),H=Ke__namespace.useCallback((B,X)=>{E({position:B,node:X});},[]),j=Ke__namespace.useMemo(()=>({selectedId:M,selectNode:Z,navigateToNode:U,navigateBack:Q,rootNodeId:a,stickyRootNode:i,variant:d,size:u,showBullets:m,onNodeSelect:r,onNavigate:o,navigationStack:S,setRootNodeSticky:H,useSplitLayout:L}),[M,Z,U,Q,a,i,d,u,m,r,o,S,H,L]),G=Ke__namespace.useRef(null);Ke__namespace.useEffect(()=>{if(!a||!G.current||S.length>0||L)return;let B=G.current,X=setTimeout(()=>{let ee=B.querySelector(`[data-node-id="${a}"]`);ee&&ee.scrollIntoView({behavior:"auto",block:"center",inline:"nearest"});},100);return ()=>clearTimeout(X)},[a,S.length,L]);let A={height:lc(s),minHeight:lc(c),maxHeight:lc(l)},W=s!==void 0||l!==void 0,N=V?V.id:"root",C=Ke__namespace.useCallback((B,X=false)=>jsxRuntime.jsx(Qh,{items:B,showConnector:X,scrollContainerRef:X?G:null,showBullets:m,size:u,renderNode:t}),[m,u,t]),D=Ke__namespace.useCallback(B=>B?h?h(B,C):jsxRuntime.jsx(Yh,{node:B,renderNodeList:C}):null,[h,C]);return jsxRuntime.jsx(Rp.Provider,{value:j,children:jsxRuntime.jsx("div",{ref:I,className:tailwindMerge.twMerge("select-none bg-background-surface rounded-lg border border-border-default relative",W&&"overflow-hidden",!W&&"h-full flex flex-col",L&&!W&&"flex-row",L&&W&&"flex",b),style:A,role:"tree","aria-label":y,children:L?jsxRuntime.jsx(ny,{data:e,currentItems:z,navigationStack:S,selectedId:M,variant:d,size:u,showBullets:m,rootNodeStickyState:T,renderNodeList:C,renderDetailContent:D,renderEmptyState:g,onNavigateBack:Q}):jsxRuntime.jsx(ty,{currentItems:z,currentParent:V,navigationStack:S,selectedId:M,variant:d,size:u,showBullets:m,slideDirection:k,viewKey:N,hasHeight:W,rootNodeStickyState:T,renderNodeList:C,renderDetailContent:D,onNavigateBack:Q})})})}function WE({isEntering:e,isExiting:t,className:r=""}){let o=["group","bg-background-surface","forced-colors:bg-[Canvas]","text-text-primary","shadow-lg","rounded-[var(--control-border-radius)]","bg-clip-padding","border","border-border-default","outline-none","p-4","min-w-[260px]","max-w-[360px]"].filter(Boolean).join(" "),n=e?["animate-in","fade-in","zoom-in-95","placement-bottom:slide-in-from-top-1","placement-top:slide-in-from-bottom-1","placement-left:slide-in-from-right-1","placement-right:slide-in-from-left-1","ease-out","duration-200"].join(" "):"",a=t?["animate-out","fade-out","zoom-out-95","placement-bottom:slide-out-to-top-1","placement-top:slide-out-to-bottom-1","placement-left:slide-out-to-right-1","placement-right:slide-out-to-left-1","ease-in","duration-150"].join(" "):"";return [o,n,a,r].filter(Boolean).join(" ")}var iy=({children:e,delay:t=700,closeDelay:r=0,isOpen:o,defaultOpen:n,onOpenChange:a,isDisabled:i=false,...s})=>jsxRuntime.jsx(reactAriaComponents.TooltipTrigger,{delay:t,closeDelay:r,isOpen:o,defaultOpen:n,onOpenChange:a,isDisabled:i,...s,children:e}),sy=({children:e,className:t,showArrow:r=false,offset:o,...n})=>jsxRuntime.jsxs(reactAriaComponents.Tooltip,{...n,offset:o??(r?12:8),className:reactAriaComponents.composeRenderProps(t,(i,s)=>WE({...s,className:i})),children:[r&&jsxRuntime.jsx(reactAriaComponents.OverlayArrow,{children:jsxRuntime.jsx("svg",{width:12,height:12,viewBox:"0 0 12 12",className:"block fill-background-surface stroke-border-default stroke-1 group-placement-left:-rotate-90 group-placement-right:rotate-90 group-placement-bottom:rotate-180 forced-colors:fill-[Canvas] forced-colors:stroke-[ButtonBorder]",children:jsxRuntime.jsx("path",{d:"M0 0 L6 6 L12 0"})})}),e]});sy.displayName="HoverCardContent";var UE=Object.assign(iy,{Root:iy,Content:sy});var JE={md:{fontFamily:"var(--font-family-brand)",fontSize:24,lineHeight:1,letterSpacing:"-0.02em"},lg:{fontFamily:"var(--font-family-brand)",fontSize:34,lineHeight:1.1}},XE={md:{fontSize:12},lg:{fontSize:16}},jE={fontSize:11};function qE(e,t){return no({value:e,formatter:t,emptyClassName:"text-text-secondary",emptyText:"\u2014"})}function QE(e,t="upIsGood"){if(e===0)return "text-text-secondary";let r=e>0;return t==="upIsGood"?r?"text-feedback-success-text":"text-feedback-error-text":r?"text-feedback-error-text":"text-feedback-success-text"}function ZE({points:e,className:t,ariaLabel:r}){let i=e.map(p=>typeof p.y=="number"?p.y:0);if(i.length===0)return null;let s=Math.min(...i),l=Math.max(...i)-s,d=p=>l===0?20/2:18-(p-s)/l*16,u=60/Math.max(e.length-1,1),m=e.map((p,f)=>{let g=2+f*u,h=d(typeof p.y=="number"?p.y:0);return `${f===0?"M":"L"} ${g} ${h}`}).join(" ");return jsxRuntime.jsx("svg",{width:64,height:20,role:"img","aria-label":r,className:tailwindMerge.twMerge("overflow-visible",t),children:jsxRuntime.jsx("path",{d:m,fill:"none",strokeWidth:"1.5",className:"stroke-border-muted"})})}var ly=100,ra=30,cy=1.5,dy=4,_E=12;function $E(e,t){if(e.length<=t)return e;let r=(e.length-1)/(t-1),o=[];for(let n=0;n<t;n++)o.push(e[Math.round(n*r)]);return o}function eM(e){if(e.length<2)return e.length===1?`M ${e[0][0]} ${e[0][1]}`:"";let t=`M ${e[0][0]} ${e[0][1]}`;for(let r=0;r<e.length-1;r++){let o=e[r-1]??e[r],n=e[r],a=e[r+1],i=e[r+2]??a,s=n[0]+(a[0]-o[0])/6,c=n[1]+(a[1]-o[1])/6,l=a[0]-(i[0]-n[0])/6,d=a[1]-(i[1]-n[1])/6;t+=` C ${s} ${c} ${l} ${d} ${a[0]} ${a[1]}`;}return t}function tM({points:e,gradientId:t,tone:r,className:o}){if(!e||e.length<2)return null;let n=$E(e,_E),a=n.map(h=>typeof h.y=="number"?h.y:0),i=Math.min(...a),c=Math.max(...a)-i,l=h=>c===0?ra/2:ra-dy-(h-i)/c*(ra-2*dy),d=(ly-2*cy)/Math.max(n.length-1,1),u=n.map((h,b)=>[cy+b*d,l(typeof h.y=="number"?h.y:0)]),m=eM(u),p=u[u.length-1],f=u[0],g=`${m} L ${p[0]} ${ra} L ${f[0]} ${ra} Z`;return jsxRuntime.jsxs("svg",{width:"100%",height:ra,viewBox:`0 0 ${ly} ${ra}`,preserveAspectRatio:"none",role:"img","aria-label":"Trend",className:tailwindMerge.twMerge("mt-2 block w-full",r,o),children:[jsxRuntime.jsx("defs",{children:jsxRuntime.jsxs("linearGradient",{id:t,x1:"0",y1:"0",x2:"0",y2:"1",children:[jsxRuntime.jsx("stop",{offset:"0%",stopColor:"currentColor",stopOpacity:.22}),jsxRuntime.jsx("stop",{offset:"100%",stopColor:"currentColor",stopOpacity:0})]})}),jsxRuntime.jsx("path",{d:g,fill:`url(#${t})`,stroke:"none"}),jsxRuntime.jsx("path",{d:m,fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"})]})}function uy({label:e,value:t,formatter:r,delta:o,deltaPeriodLabel:n,deltaIntent:a="upIsGood",trend:i,status:s,helpText:c,size:l="md",orientation:d="vertical",isLoading:u,empty:m,error:p,onClick:f,className:g,labelClassName:h,renderValue:b,renderDelta:y,renderTrend:x,unit:v,sub:S,dashed:w,sparkVariant:k="line",sparkTone:P,tileValueSize:T}){let E=Ke.useId(),R={sm:{label:yt("labelSm"),value:yt("displaySm"),delta:yt("labelSm"),gap:"gap-1"},md:{label:yt("labelMd"),value:yt("displayMd"),delta:yt("bodySm"),gap:"gap-2"},lg:{label:yt("labelLg"),value:yt("displayLg"),delta:yt("bodyMd"),gap:"gap-3"}}[l],L=Q=>T?jsxRuntime.jsxs("span",{style:JE[T],className:w?"opacity-45":void 0,children:[Q,v?jsxRuntime.jsxs("span",{className:"text-text-secondary",style:XE[T],children:[" ",v]}):null]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[Q,v?jsxRuntime.jsxs("span",{className:"text-text-secondary",children:[" ",v]}):null]}),M=u?jsxRuntime.jsx(K,{className:"h-7 w-20"}):m?jsxRuntime.jsx("span",{className:"text-text-secondary",children:"\u2014"}):p?jsxRuntime.jsx("span",{className:yt("bodySm","text-feedback-error"),children:typeof p=="string"?p:"Error"}):w?L("\u2014"):b?b(t):L(T?t:qE(t,r)),V=y?y(o):o!==void 0&&!u&&!m&&!p&&!w?jsxRuntime.jsxs("div",{className:er(R.delta,QE(o,a),"flex items-center gap-1"),children:[o>0&&jsxRuntime.jsx(F,{name:"ArrowUp",size:12}),o<0&&jsxRuntime.jsx(F,{name:"ArrowDown",size:12}),o===0&&jsxRuntime.jsx(F,{name:"Minus",size:12}),jsxRuntime.jsxs("span",{children:[o>0?"+":"",Math.abs(o).toFixed(1),"%"]}),n&&jsxRuntime.jsxs("span",{className:"text-text-secondary",children:["\xB7 ",n]})]}):u&&o!==void 0?jsxRuntime.jsx(K,{className:"h-4 w-24"}):null,z=x?x(i):i&&i.length>0&&!u&&!p&&!w?k==="area"?jsxRuntime.jsx(tM,{points:i,gradientId:E,tone:P,className:m?"opacity-30":""}):jsxRuntime.jsx(ZE,{points:i,ariaLabel:`${e} trend`,className:m?"opacity-30":""}):u&&i!==void 0?jsxRuntime.jsx(K,{className:"h-5 w-16"}):null,U=S&&!u&&!p?jsxRuntime.jsx("div",{className:"text-text-secondary",style:jE,children:S}):null;return jsxRuntime.jsxs("section",{className:tailwindMerge.twMerge("flex min-w-0",d==="horizontal"?`items-center ${R.gap}`:`flex-col ${R.gap}`,f&&"cursor-pointer hover:bg-background-muted rounded-lg px-3 py-2 -mx-3 -my-2 transition-colors",g),"aria-labelledby":`kpi-${e}`,onClick:f,children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("h3",{id:`kpi-${e}`,className:tailwindMerge.twMerge(er(R.label,"text-text-secondary truncate"),h),children:u?jsxRuntime.jsx(K,{className:"h-4 w-24"}):e}),c&&!u&&jsxRuntime.jsx(F,{name:"Question",size:12,className:"text-text-secondary cursor-help","aria-label":"Help"})]}),jsxRuntime.jsxs("div",{className:"flex items-baseline gap-2",children:[jsxRuntime.jsx("output",{className:er(T?void 0:R.value,p?"text-feedback-error":"text-text-primary"),"aria-label":`Value: ${t}`,children:M}),s&&!u&&!p&&jsxRuntime.jsx(lt,{variant:s.tone||"neutral",size:"sm",children:s.value})]}),U,(V||z)&&jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[V,z]})]})}var py={xs:"gap-2",sm:"gap-3",md:"gap-4",lg:"gap-6",xl:"gap-8"},my={start:"items-start",center:"items-center",stretch:"items-stretch"};function fy(e){if(typeof e=="number")return `grid-cols-${e}`;let t=[];return e.base!==void 0&&t.push(`grid-cols-${e.base}`),e.sm!==void 0&&t.push(`sm:grid-cols-${e.sm}`),e.md!==void 0&&t.push(`md:grid-cols-${e.md}`),e.lg!==void 0&&t.push(`lg:grid-cols-${e.lg}`),e.xl!==void 0&&t.push(`xl:grid-cols-${e.xl}`),e["2xl"]!==void 0&&t.push(`2xl:grid-cols-${e["2xl"]}`),t.join(" ")}function Ip({children:e,cols:t={base:1,sm:2,md:3,lg:4},gap:r="md",align:o="stretch",equalizeHeights:n=true,header:a,isLoading:i,scrollOnMobile:s=false,scrollItemMinWidth:c="140px",className:l}){let d=i?Ke__namespace.default.Children.map(e,p=>Ke__namespace.default.isValidElement(p)&&p.type&&typeof p.type!="string"&&"displayName"in p.type?Ke__namespace.default.cloneElement(p,{isLoading:true}):p):e,u=s?Ke__namespace.default.Children.map(d,p=>jsxRuntime.jsx("div",{className:"shrink-0",style:{minWidth:c},children:p})):d,m=s?tailwindMerge.twMerge("flex overflow-x-auto pb-2 -mb-2",py[r],"sm:grid sm:overflow-visible sm:pb-0 sm:-mb-0",fy({...typeof t=="object"?t:{base:t},base:void 0}),my[o],n&&"sm:auto-rows-fr"):tailwindMerge.twMerge("grid",fy(t),py[r],my[o],n&&"auto-rows-fr","w-full");return jsxRuntime.jsxs("section",{className:tailwindMerge.twMerge("w-full",l),"aria-label":"Key metrics",children:[a&&jsxRuntime.jsx("div",{className:"mb-4",children:a}),jsxRuntime.jsx("div",{className:m,children:s?u:d})]})}Ip.displayName="KpiGroup";function xy({items:e,renderItem:t,selectedId:r,onSelect:o,onHoverChange:n,isLoading:a=false,loadingState:i,error:s=null,renderLoadingSkeleton:c,loadingSkeletonCount:l=5,emptyMessage:d="No results found.",variant:u="relaxed",showDividers:m=true,onLoadMore:p,hasMore:f=false,enableVirtualization:g,estimatedItemSize:h=60,loadingIndicator:b,"aria-label":y,className:x="",style:v}){let[S,w]=Ke.useState(null),k=Ke.useRef(null),P=Ke.useRef(new Map),{scrollRef:T,loadMoreRef:E,virtualizer:I,virtualItems:R,isLoadingMore:L,computedLoadingState:M}=Jo({items:e,onLoadMore:p,hasMore:f,isLoading:a,loadingState:i,enableVirtualization:g,estimatedItemSize:h,overscan:5}),V=T??k,z=Ke.useCallback((C,D)=>{o?.(C,D);},[o]),U=Ke.useCallback((C,D)=>{w(C),n?.(C,D);},[n]),Q=Ke.useCallback((C,D)=>{let B=C?.id;return typeof B=="string"&&B?B:`item-${D}`},[]),Z=Ke.useCallback(C=>{if(!V.current||e.length===0)return;let D=document.activeElement,B=e.findIndex(($,ae)=>{let Ve=Q($,ae),te=P.current.get(Ve);return te&&(te===D||te.contains(D))}),X=B;switch(C.key){case "ArrowDown":C.preventDefault(),X=B===-1?0:Math.min(B+1,e.length-1);break;case "ArrowUp":C.preventDefault(),X=B===-1?0:Math.max(B-1,0);break;case "Home":C.preventDefault(),X=0;break;case "End":C.preventDefault(),X=e.length-1;break;default:return}let ee=Q(e[X],X);P.current.get(ee)?.focus();},[e,Q,V]),H=["flex flex-col","bg-background-surface","focus:outline-none focus:ring-2 focus:ring-border-focus focus:ring-offset-2"],j={dense:"gap-0",relaxed:"gap-0"},G=m?"divide-y divide-border-muted":"",A=[...H,j[u],G,x].filter(Boolean).join(" ");if(M==="loading"||a&&e.length===0){let C=c?jsxRuntime.jsx(jsxRuntime.Fragment,{children:Array.from({length:l}).map((D,B)=>jsxRuntime.jsx("div",{children:c()},`skeleton-${B}`))}):jsxRuntime.jsx(Af,{count:l,className:"space-y-0",children:jsxRuntime.jsxs("div",{className:"flex items-center gap-3 px-4 py-3",children:[jsxRuntime.jsx(K,{width:16,height:16,variant:"circle"}),jsxRuntime.jsxs("div",{className:"flex-1 space-y-2",children:[jsxRuntime.jsx(K,{width:"75%",height:16}),jsxRuntime.jsx(K,{width:"50%",height:14})]}),jsxRuntime.jsx(K,{width:60,height:20})]})});return jsxRuntime.jsx("div",{ref:V,className:A,style:v,role:"listbox","aria-label":y,"aria-busy":"true","aria-live":"polite",children:C})}if(s)return jsxRuntime.jsx("div",{ref:V,className:A,style:v,role:"listbox","aria-label":y,"aria-live":"polite",children:jsxRuntime.jsx("div",{className:"p-4 text-center text-feedback-error-text",children:s})});if(e.length===0)return jsxRuntime.jsx("div",{ref:V,className:A,style:v,role:"listbox","aria-label":y,"aria-live":"polite",children:jsxRuntime.jsx("div",{className:"p-4 text-center text-text-secondary",children:d})});let N=I?R?.map(C=>({virtualItem:C,item:e[C.index],index:C.index}))||[]:e.map((C,D)=>({item:C,index:D,virtualItem:null}));return jsxRuntime.jsxs("div",{ref:V,className:A,style:{...v,...p&&{overflow:"auto",height:v?.height||"600px"}},role:"listbox","aria-label":y,"aria-live":"polite",onKeyDown:Z,tabIndex:0,children:[I&&jsxRuntime.jsxs("div",{style:{height:`${I.getTotalSize()}px`,width:"100%",position:"relative"},children:[N.map(({virtualItem:C,item:D,index:B})=>{if(!C)return null;let X=Q(D,B),ee=r===X,le=S===X,$={id:X,role:"option","aria-selected":ee,"aria-current":ee?"page":void 0,tabIndex:ee||r==null&&B===0?0:-1,onClick:ae=>z(ae,D),onMouseEnter:ae=>U(ae,D),onMouseLeave:ae=>U(null),onFocus:ae=>U(ae,D),onBlur:ae=>U(null),ref:ae=>{ae?P.current.set(X,ae):P.current.delete(X);}};return jsxRuntime.jsx("div",{"data-index":C.index,ref:I.measureElement,style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${C.start}px)`},children:t({item:D,index:B,isSelected:ee,isHovered:le,rowProps:$})},X)}),p&&f&&jsxRuntime.jsx("div",{ref:E,style:{position:"absolute",top:`${I.getTotalSize()}px`,left:0,width:"100%",height:1,pointerEvents:"none"}}),L&&jsxRuntime.jsx("div",{style:{position:"absolute",top:`${I.getTotalSize()}px`,left:0,width:"100%"},children:b||jsxRuntime.jsx(Mr,{state:"loading-more"})})]}),!I&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[N.map(({item:C,index:D})=>{let B=Q(C,D),X=r===B,ee=S===B,le={id:B,role:"option","aria-selected":X,"aria-current":X?"page":void 0,tabIndex:X||r==null&&D===0?0:-1,onClick:$=>z($,C),onMouseEnter:$=>U($,C),onMouseLeave:$=>U(null),onFocus:$=>U($,C),onBlur:$=>U(null),ref:$=>{$?P.current.set(B,$):P.current.delete(B);}};return jsxRuntime.jsx("div",{children:t({item:C,index:D,isSelected:X,isHovered:ee,rowProps:le})},B)}),p&&f&&jsxRuntime.jsx("div",{ref:E,style:{height:1}}),L&&(b||jsxRuntime.jsx(Mr,{state:"loading-more"}))]})]})}function yy({id:e,title:t,subtitle:r,meta:o,leading:n,trailing:a,isSelected:i=false,isHovered:s=false,disabled:c=false,href:l,size:d="md",onClick:u,onMouseEnter:m,onMouseLeave:p,className:f="",style:g,piiTitleType:h,piiSubtitleType:b,piiEntity:y}){let x=()=>{!c&&u&&u(e);},v=()=>{!c&&m&&m(e);},S=()=>{!c&&p&&p(e);},k={sm:{container:"px-3 py-2 gap-2",title:"text-sm leading-tight",subtitle:"text-xs leading-tight",meta:"text-xs leading-tight",subtitleSpacing:"mt-1",metaSpacing:"mt-1"},md:{container:"px-4 py-3 gap-3",title:"text-base leading-tight",subtitle:"text-sm leading-tight",meta:"text-sm leading-tight",subtitleSpacing:"mt-1",metaSpacing:"mt-1"},lg:{container:"px-4 py-4 gap-3",title:"text-lg leading-tight",subtitle:"text-base leading-tight",meta:"text-sm leading-tight",subtitleSpacing:"mt-1",metaSpacing:"mt-1"},xl:{container:"px-5 py-5 gap-4",title:"text-xl leading-tight",subtitle:"text-base leading-tight",meta:"text-base leading-tight",subtitleSpacing:"mt-1.5",metaSpacing:"mt-1.5"}}[d],P=["flex items-center w-full text-left transition-all duration-200 ease-in-out",k.container,"border-l-2 border-l-transparent","rounded-sm",Ze()],T=[s&&!i&&"bg-background-hover",i&&"bg-action-default/5 border-l-action-default shadow-sm",c&&"opacity-50 cursor-not-allowed",!c&&!i&&"hover:bg-background-hover"],E=[...P,...T,f].filter(Boolean).join(" "),I=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[n&&jsxRuntime.jsx("div",{className:"flex-shrink-0 flex items-center justify-center",children:n}),jsxRuntime.jsx("div",{className:"flex-1 min-w-0",children:jsxRuntime.jsx("div",{className:"flex items-start justify-between gap-2",children:jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsx("div",{className:`text-text-primary font-medium truncate ${k.title}`,title:typeof t=="string"?t:void 0,"data-pii-type":h&&y?h:void 0,"data-pii-entity":h&&y?y:void 0,children:t}),r&&jsxRuntime.jsx("div",{className:`text-text-secondary truncate ${k.subtitle} ${k.subtitleSpacing}`,title:typeof r=="string"?r:void 0,"data-pii-type":b&&y?b:void 0,"data-pii-entity":b&&y?y:void 0,children:r}),o&&jsxRuntime.jsx("div",{className:`text-text-secondary ${k.meta} ${k.metaSpacing}`,children:o})]})})}),a&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:a})]});return l?jsxRuntime.jsx("a",{href:l,className:E,style:g,onMouseEnter:v,onMouseLeave:S,"aria-selected":i,"aria-current":i?"page":void 0,tabIndex:c?-1:0,children:I}):jsxRuntime.jsx("button",{type:"button",className:E,style:g,onClick:x,onMouseEnter:v,onMouseLeave:S,disabled:c,"aria-selected":i,tabIndex:c?-1:0,children:I})}function vy({header:e,children:t,footer:r,width:o="md",tone:n="neutral",elevation:a="sm",showDivider:i=true,"aria-label":s,"aria-labelledby":c,className:l="",style:d}){let u={sm:"w-64",md:"w-80",lg:"w-96",xl:"w-[28rem]","2xl":"w-[32rem]",auto:"w-auto"},m={neutral:"bg-background-surface",subtle:"bg-background-subtle",brand:"bg-background-brand"},p={none:"",sm:"shadow-sm",md:"shadow-md"},f=tailwindMerge.twMerge("flex flex-col h-full",u[o],m[n],p[a],i&&"border-r border-border-muted",l);return jsxRuntime.jsxs("div",{className:f,style:d,role:"complementary","aria-label":s,"aria-labelledby":c,children:[e&&jsxRuntime.jsx("div",{className:"flex-shrink-0 sticky top-0 z-10 bg-inherit border-b border-border-muted",children:e}),jsxRuntime.jsx("div",{className:"flex-1 overflow-y-auto overflow-x-hidden",children:t}),r&&jsxRuntime.jsx("div",{className:"flex-shrink-0 border-t border-border-muted bg-inherit",children:r})]})}function cM({children:e,...t}){return jsxRuntime.jsx(reactAriaComponents.ListBox,{...t,className:ke(t.className,"outline-0"),children:e})}function mc(){try{if(typeof process<"u"){let e=process.env.MAPBOX_ACCESS_TOKEN;if(e)return e}}catch{}try{if(typeof process<"u"){let e=process.env.NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN;if(e)return e}}catch{}try{let e=undefined.VITE_MAPBOX_ACCESS_TOKEN;if(e)return e}catch{}}function fc(e,t){let[r,o]=Ke.useState(()=>{if(typeof window>"u")return t;try{let i=window.localStorage.getItem(e);return i?JSON.parse(i):t}catch(i){return console.error(`Error reading localStorage key "${e}":`,i),t}});Ke.useEffect(()=>{if(!(typeof window>"u"))try{window.localStorage.setItem(e,JSON.stringify(r));}catch(i){console.error(`Error writing to localStorage key "${e}":`,i);}},[e,r]);let n=Ke.useCallback(i=>{try{o(s=>i instanceof Function?i(s):i);}catch(s){console.error(`Error setting value for localStorage key "${e}":`,s);}},[e]),a=Ke.useCallback(()=>{try{typeof window<"u"&&window.localStorage.removeItem(e),o(t);}catch(i){console.error(`Error removing localStorage key "${e}":`,i);}},[e,t]);return [r,n,a]}var Bp=[{type:"navigation",position:"bottom-right",showCompass:true,showGeolocate:true,showResetZoom:true}];function Sy(e="top-right"){switch(e){case "top-left":return "absolute top-4 left-4 z-10";case "top-right":return "absolute top-4 right-4 z-10";case "bottom-left":return "absolute bottom-4 left-4 z-10";case "bottom-right":return "absolute bottom-4 right-4 z-10";default:return "absolute top-4 right-4 z-10"}}var fM="h-12 w-12 md:h-10 md:w-10 p-0 bg-background-surface hover:bg-background-hover shadow-lg border border-border";function wy(e){return tailwindMerge.twMerge(fM,e)}var Ny="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJcAAACXCAYAAAAYn8l5AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABtCSURBVHgB7Z2Jkty0GoV7hlz2HcIeSPGkPCmELRC2sO8kN5+L03XmR7IlW3LbSZ+qrp7pdtuydPTvki9u3Lhx/7ASLi4uDvfv973cvXv3Dn/++efh2rVrx2vyAo899tjwThu8Hfo+1d5SLLkv2vXzzz8fnnvuucPff/99eFhw7bAi/vnnn8Pl5eWVz3IDOHewGKgnnnjiCoEgHH///vvvh8cff3z4nrbE63lb+LvFQHMe2jR2P7p2bNMe4f24Grk02LkOjCQTCfmNE3KKdLo5l1jCk08+efjtt98OP/300yAlUgRTW3RdiLkEJZOEa4hccfItuWaN5O2B1cg1daNxEHzg4wCj8koGLXVOCMbnP/zww+GZZ54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TznacNJ/CbCpqTjwKTE7jMs3QHaRzUkyvCvTdKQmzuGyfyqHEKJkOQJmBwazq0Nl88X77Dk09SoHR6YU2RxMUSDP8fw6bxvv7AnkLrBK/29eNS5r4U+x8EA6nBlsj0ETm9gjUO7p5DqPDOkOIptbQgNDeH/unQWDz/ZdA0zBOJ/f1sXQI6QyPqxtnMII3/NEh9kJGEBI+zqmyVwLXglLm+u3o6W6t8oiBZc1pwpF3Z/Tq1kX1oKDcglalt0Mq5G+Zzha8dbY+rvA7Erz2Jf1VQQm9t9zxzU0kLlDp2uX9IwZVZxyO2G19y9ieD165lH9Fosk8DI5sufSSLSZBQSF3maHFuDcVGsLHjqrgKZLUX5JqjGehdg3ULYhq7fAkpy5voaGxxtFgmygtNBJMSfalN4Ghq0DVGhNw+TbZUJBvl6KdlImJXLsphrcJtyi/rBx7bNiPF3drqCfiaI7S/0yAfzPgdNJKqQ+lwh1XfSmYClPT+R2b/03chQhh/fQH7Dav+EOO2oojEn8WdyuYzZbw6+e/WpX6eGYK0xR3BJhumCL/0lYS1EWShiFKXp4HOjIdwcvzNzjuNg4uobmh3lmZNljg+RHIokP7iJ+//S9/0JF4UWgALQSUifcPn+AvCxKcp8u7vR5XAiSC3WYDByQWZ1myzFUtOgbu577+f5ZPq/B5Pf+nAAAAAElFTkSuQmCC";function gc(e){return e.selection?.mode==="single"}function gn(e){let t=[],r=o=>{o.layerId&&t.push(o.layerId);for(let n of o.children??[])r(n);};return r(e),t}function Vp(e,t){let r=gn(e);if(r.length===0)return "unchecked";let o=0;for(let n of r)t(n)&&o++;return o===0?"unchecked":gc(e)||o===r.length?"checked":"indeterminate"}var oa=(e,t)=>Object.fromEntries(e.map(r=>[r,t]));function Ey(e,t){let r=gn(e);if(!(Vp(e,t)!=="checked"))return oa(r,false);if(gc(e)){let n=e.children?.[0],a=n?gn(n):[];return {...oa(r,false),...oa(a,true)}}return oa(r,true)}function My(e,t,r){let o=e.children?.find(s=>s.id===t);if(!o)return {};let n=gn(e),a=gn(o);return a.length>0&&a.every(r)?e.selection?.mode==="single"&&e.selection.allowNone?oa(a,false):{}:{...oa(n,false),...oa(a,true)}}function zp(e,t){for(let r of e){if(r.id===t)return r;let o=zp(r.children??[],t);if(o)return o}}function Op(e,t){for(let r of e){if(r.children?.some(n=>n.id===t))return r;let o=Op(r.children??[],t);if(o)return o}}function Ly(e){let t=new Set,r=new Set,o=new Set,n=(i,s)=>{i&&(s.has(i)?o.add(i):s.add(i));},a=i=>{n(i.id,t),n(i.layerId,r);for(let s of i.children??[])a(s);};for(let i of e)a(i);return [...o]}function Ay(e){return e.map(t=>({id:t.id,label:t.label,...t.children?.length?{children:Ay(t.children)}:{}}))}function Iy(e){let t=e.length;for(let r of e)r.children?.length&&(t=Math.max(t,Iy(r.children)));return t}function Dy({type:e,color:t}){let r=t?{backgroundColor:t}:void 0;switch(e){case "line":return jsxRuntime.jsx("span",{className:"inline-block h-0.5 w-4 flex-shrink-0 rounded-full",style:r});case "polygon":return jsxRuntime.jsx("span",{className:"inline-block h-2.5 w-3.5 flex-shrink-0 rounded-sm border border-border",style:r});case "pin":return jsxRuntime.jsx("span",{className:"inline-block h-2.5 w-2.5 flex-shrink-0 rotate-45 rounded-full rounded-bl-none border border-border",style:r});default:return jsxRuntime.jsx("span",{className:"inline-block h-2.5 w-2.5 flex-shrink-0 rounded-full border border-border",style:r})}}function gM({isSelected:e,onPress:t,label:r}){return jsxRuntime.jsx("button",{type:"button",role:"radio","aria-checked":e,"aria-label":r,onClick:t,className:`grid h-4 w-4 flex-shrink-0 cursor-pointer place-items-center rounded-full border-2 bg-transparent p-0 ${e?"border-action-primary":"border-border-default"}`,children:e?jsxRuntime.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-action-primary"}):null})}function bM(){return jsxRuntime.jsx("svg",{width:12,height:12,viewBox:"0 0 12 12",fill:"none","aria-hidden":"true",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",className:"flex-shrink-0 text-text-secondary",children:jsxRuntime.jsx("path",{d:"M4.5 2.5 8 6l-3.5 3.5"})})}var xM=41,hM=44,yM=132,vM=360;function Fy({tree:e,layers:t,onVisibilityChange:r}){let o=new Map(t.map(s=>[s.id,s])),n=s=>{let c=o.get(s);return !!c&&c.visible!==false};if(process.env.NODE_ENV!=="production"){let s=Ly(e);s.length>0&&console.warn(`[LayersPanel] Duplicate id(s) in \`layerTree\`: ${s.join(", ")}. Row lookups and pane keys resolve to the first match, so the later entry is unreachable. Node ids must be unique among node ids, and layer ids unique among layer ids.`);let c=e.flatMap(gn).filter(l=>!o.has(l));c.length>0&&console.warn(`[LayersPanel] \`layerTree\` references layer id(s) not present in \`layers\`: ${c.join(", ")}. Those rows render as hidden and cannot be turned on.`);}let a=Ay(e),i=Math.min(vM,Math.max(yM,Iy(e)*xM+hM));return jsxRuntime.jsx("div",{className:"overflow-hidden",style:{height:i},"data-layers-panel":"",children:jsxRuntime.jsx(La,{items:a,ariaLabel:"Map layers",animated:false,width:null,sticky:false,theme:{background:"transparent",borderColor:"transparent"},className:"h-full w-full",renderRow:({item:s,hasChildren:c,select:l})=>{let d=zp(e,s.id);if(!d)return null;let u=Vp(d,n),p=(d.layerId?o.get(d.layerId):void 0)?.legend,f=gn(d),g=f.filter(n).length,h=c&&u==="indeterminate"?`${g} of ${f.length} on`:null,b=Op(e,d.id),y=!!b&&gc(b),x=w=>{Object.keys(w).length>0&&r?.(w);},v=y?jsxRuntime.jsx(gM,{isSelected:u!=="unchecked",onPress:()=>x(My(b,d.id,n)),label:d.label}):jsxRuntime.jsx(Mo,{isSelected:u==="checked",isIndeterminate:u==="indeterminate",onChange:()=>x(Ey(d,n)),"aria-label":d.label}),S=jsxRuntime.jsxs("span",{className:"flex min-w-0 flex-1 flex-col text-left",children:[jsxRuntime.jsx("span",{className:`truncate text-sm ${u==="unchecked"?"text-text-secondary":"text-text-primary"}`,children:d.label}),h?jsxRuntime.jsx("span",{className:"text-[10px] text-text-secondary",children:h}):null]});return jsxRuntime.jsxs("div",{className:"edges-layers-panel__row flex cursor-default items-center gap-2 py-2.5",children:[v,c?jsxRuntime.jsxs("button",{type:"button",onClick:l,className:"flex min-w-0 flex-1 cursor-pointer items-center gap-2 border-0 bg-transparent p-0 text-left","aria-label":`Open ${d.label}`,children:[p?jsxRuntime.jsx(Dy,{type:p.swatch,color:p.color}):null,S,jsxRuntime.jsx(bM,{})]}):jsxRuntime.jsxs("span",{className:"flex min-w-0 flex-1 items-center gap-2",children:[p?jsxRuntime.jsx(Dy,{type:p.swatch,color:p.color}):null,S]})]})}})})}function bn({position:e="top-right",className:t,style:r,children:o}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(Sy(e),t),style:r,children:o})}function Rr({icon:e,iconSize:t=24,onPress:r,isDisabled:o=false,className:n,iconClassName:a="text-text-primary",variant:i="secondary",isActive:s=false,ariaLabel:c,iconWeight:l="regular",...d}){let u=tailwindMerge.twMerge(wy(),s&&"bg-action-brand hover:bg-action-brand-hover border-action-brand",n),m=tailwindMerge.twMerge(a,s&&"text-text-inverse");return jsxRuntime.jsx(_,{...d,className:u,onPress:r,variant:i,size:"sm",isDisabled:o,"aria-label":c,"aria-pressed":s||void 0,type:"button",children:jsxRuntime.jsx(F,{name:e,size:t,className:m,weight:l})})}var TM=e=>[{id:"streets",name:"Streets",description:"Standard street map with traffic data",preview:e?Py:Ry},{id:"satellite",name:"Satellite",description:"Aerial imagery with street labels",preview:Ty},{id:"neutral",name:"Neutral",description:"Clean design with light/dark variants",preview:e?Ny:ky}];function PM({type:e,color:t}){let r="inline-block",o=t?{backgroundColor:t}:{};switch(e){case "dot":return jsxRuntime.jsx("span",{className:`${r} h-3 w-3 rounded-full border border-border`,style:o});case "line":return jsxRuntime.jsx("span",{className:`${r} h-0.5 w-6 rounded-full`,style:o});case "polygon":return jsxRuntime.jsx("span",{className:`${r} h-3 w-4 rounded-sm border border-border`,style:o});case "pin":return jsxRuntime.jsx("span",{className:`${r} h-3 w-3 rounded-full rounded-bl-none border border-border transform rotate-45`,style:o});default:return null}}function zy({position:e="bottom-left",className:t,style:r,currentMapType:o="streets",onMapTypeChange:n,layers:a=[],onLayerToggle:i,onClearAll:s,onLayerVariantChange:c,layerTree:l,onVisibilityChange:d}){let{isDarkTheme:u}=Wt(),{isMobile:m}=$t(),[p,f]=Ke.useState(false),g=TM(u),h=x=>{n?.(x);},b=a.filter(x=>x.legend),y=jsxRuntime.jsxs("div",{className:m?"space-y-6 pb-6":"space-y-6",children:[jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("div",{className:"text-sm font-semibold text-text-primary mb-3",children:"Map type"}),jsxRuntime.jsx("div",{className:"grid grid-cols-3 gap-3",children:g.map(x=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>h(x.id),className:"flex flex-col items-center space-y-2 p-3 rounded-lg text-center hover:bg-background-muted transition-colors border border-transparent "+(o===x.id?"bg-background-muted border-border":"hover:border-border"),children:[jsxRuntime.jsx("div",{className:"w-12 h-12 rounded-lg overflow-hidden bg-background-surface "+(o===x.id?"border-2 border-action-default":"border border-border-default"),children:jsxRuntime.jsx("img",{src:x.preview,alt:`${x.name} map preview`,className:"w-full h-full object-cover"})}),jsxRuntime.jsx("div",{className:"text-sm "+(o===x.id?"font-bold text-text-primary":"font-normal text-text-secondary"),children:x.name})]},x.id))})]}),l?.length?jsxRuntime.jsxs("div",{children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between mb-3",children:[jsxRuntime.jsx("div",{className:"text-sm font-semibold text-text-primary",children:"Map details"}),s&&jsxRuntime.jsx("button",{type:"button",onClick:s,className:"text-xs text-text-secondary hover:text-text-primary transition-colors",children:"Clear all"})]}),jsxRuntime.jsx(Fy,{tree:l,layers:a,onVisibilityChange:d})]}):null,!l?.length&&b.length>0&&jsxRuntime.jsxs("div",{children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between mb-3",children:[jsxRuntime.jsx("div",{className:"text-sm font-semibold text-text-primary",children:"Map details"}),s&&jsxRuntime.jsx("button",{type:"button",onClick:s,className:"text-xs text-text-secondary hover:text-text-primary transition-colors",children:"Clear all"})]}),jsxRuntime.jsx("div",{className:"space-y-2",children:b.map(x=>{let v=x.visible!==false,S=x.legend?.variants;return jsxRuntime.jsxs("div",{className:S?"space-y-1.5":void 0,children:[jsxRuntime.jsx(Mo,{isSelected:v,onChange:()=>i?.(x.id),children:jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[x.legend&&jsxRuntime.jsx(PM,{type:x.legend.swatch,color:x.legend.color}),jsxRuntime.jsx("span",{className:"text-sm text-text-primary",children:x.legend?.label})]})}),S&&jsxRuntime.jsx("div",{className:"pl-6",children:jsxRuntime.jsx(Ro,{"aria-label":`${x.legend?.label} mode`,size:"sm",isDisabled:!v,items:S.options.map(w=>({...w,value:w.id})),renderItem:w=>w.label,selectedKey:S.selectedId,onSelectionChange:w=>c?.(x.id,String(w))})})]},x.id)})})]})]});return jsxRuntime.jsx(bn,{position:e,className:t,style:r,children:jsxRuntime.jsx("div",{className:"relative",children:m?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Rr,{icon:"Stack",ariaLabel:"Map layers and settings",onPress:()=>f(true)}),jsxRuntime.jsx(gt,{isOpen:p,onClose:()=>f(false),title:"Map layers",animationVariant:"scale",children:y})]}):jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{children:[jsxRuntime.jsx(Rr,{icon:"Stack",ariaLabel:"Map layers and settings"}),jsxRuntime.jsx(ft,{placement:"top start",children:jsxRuntime.jsx(reactAriaComponents.Dialog,{"aria-label":"Map layers and settings",className:"p-4 min-w-80 bg-background-surface border border-border rounded-lg shadow-xl focus:outline-none focus:ring-0",children:y})})]})})})}function Hy({position:e="top-right",className:t,style:r,onToggle:o,isActive:n=false}){return jsxRuntime.jsx(bn,{position:e,className:tailwindMerge.twMerge("md:hidden",t),style:r,children:jsxRuntime.jsx(Rr,{icon:"ListDashes",onPress:o,isActive:n,ariaLabel:n?"Hide list view":"Show list view"})})}var LM={sm:"gap-2",md:"gap-4",lg:"gap-6"};function xc({position:e="top-right",className:t,style:r,children:o,orientation:n="vertical",spacing:a="md"}){return jsxRuntime.jsx(bn,{position:e,style:r,children:jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex",n==="vertical"?"flex-col":"flex-row",LM[a],t),children:o})})}function Wy({mapRef:e,position:t="bottom-right",className:r,style:o,showCompass:n=true,showGeolocate:a=true,showResetZoom:i=true,onResetZoom:s,onCompassClick:c,onGeolocateClick:l}){let[d,u]=Ke.useState(false),m=Ke.useRef(true);Ke.useEffect(()=>()=>{m.current=false;},[]);let p=()=>{c?c():e.current&&e.current.easeTo({bearing:0,duration:500});},f=async()=>{if(!d)if(l)l();else {if(!navigator.geolocation){console.warn("Geolocation is not supported by this browser.");return}if(navigator.permissions?.query)try{if((await navigator.permissions.query({name:"geolocation"})).state==="denied"){console.warn("Geolocation permission was previously denied. Please enable location services in your browser settings.");return}}catch{}u(true),navigator.geolocation.getCurrentPosition(x=>{if(!m.current)return;let{latitude:v,longitude:S}=x.coords;e.current&&e.current.flyTo({center:[S,v],zoom:15,duration:2e3}),u(false);},x=>{if(m.current){switch(console.warn("Geolocation error:",{code:x.code,message:x.message,PERMISSION_DENIED:x.PERMISSION_DENIED,POSITION_UNAVAILABLE:x.POSITION_UNAVAILABLE,TIMEOUT:x.TIMEOUT}),x.code){case x.PERMISSION_DENIED:console.warn("Location access denied. Please enable location services in your browser settings.");break;case x.POSITION_UNAVAILABLE:console.warn("Location information unavailable.");break;case x.TIMEOUT:console.warn("Location request timed out.");break;default:console.warn("Error getting location:",x.message);break}u(false);}},{enableHighAccuracy:true,timeout:1e4,maximumAge:0});}};if(!n&&!a&&!i)return null;let g=!i&&n,h=!i&&!n&&a,b=!a&&n;return jsxRuntime.jsxs(xc,{position:t,className:r,style:o,spacing:"sm",children:[i&&jsxRuntime.jsx(Rr,{icon:"ArrowsOut",onPress:s,ariaLabel:"Reset zoom to show all points",className:tailwindMerge.twMerge(!(!a&&!n&&i)&&"rounded-b-none",n&&"border-b-0")}),n&&jsxRuntime.jsx(Rr,{icon:"Compass",onPress:p,ariaLabel:"Reset map orientation",className:tailwindMerge.twMerge(!g&&"rounded-t-none border-t-0",!b&&"rounded-b-none border-b-0")}),a&&jsxRuntime.jsx(Rr,{icon:d?"Spinner":"NavigationArrow",onPress:f,isDisabled:d,ariaLabel:"Go to my location",iconClassName:tailwindMerge.twMerge("text-text-primary",d&&"animate-spin"),className:tailwindMerge.twMerge(!h&&"rounded-t-none border-t-0",!h&&n&&"lg:rounded-t lg:border-t")})]})}function Jy({position:e="top-left",className:t,style:r,onSearch:o,placeholder:n="Search places...",showSearchInput:a=true}){let[i,s]=Ke.useState(false),[c,l]=Ke.useState(""),d=()=>{a?s(!i):o&&o("");},u=p=>{p.preventDefault(),o&&c.trim()&&(o(c.trim()),s(false));},m=p=>{p.key==="Escape"&&s(false);};return jsxRuntime.jsx(bn,{position:e,className:t,style:r,children:jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx(Rr,{icon:"MagnifyingGlass",onPress:d,ariaLabel:"Search"}),i&&a&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("absolute top-12 left-0 min-w-64","bg-background-surface border border-border rounded-lg shadow-xl p-3"),children:jsxRuntime.jsx("form",{onSubmit:u,children:jsxRuntime.jsxs("div",{className:"flex items-center space-x-2",children:[jsxRuntime.jsx("input",{type:"text",value:c,onChange:p=>l(p.target.value),onKeyDown:m,placeholder:n,className:tailwindMerge.twMerge("flex-1 px-3 py-2 text-sm rounded border","bg-background border-border text-text-primary placeholder:text-text-secondary","focus:outline-none focus:ring-2 focus:ring-action-brand"),autoFocus:true}),jsxRuntime.jsx(_,{type:"submit",variant:"primary",size:"sm",className:"px-3 py-2",children:"Search"})]})})})]})})}var BM={navigation:"bottom-right",layers:"bottom-left",search:"top-left",list:"top-right",custom:"top-right"};function Gp(e){return e.position??BM[e.type]}function Xy(e,t,r){let o=Gp(e),n=e.id??`${e.type}-${t}`;switch(e.type){case "navigation":{let i=e.showResetZoom!==false&&r.showResetButton;return jsxRuntime.jsx(Wy,{mapRef:r.mapRef,position:o,showCompass:e.showCompass,showGeolocate:e.showGeolocate,showResetZoom:i,onResetZoom:e.onResetZoom,onCompassClick:e.onCompassClick,onGeolocateClick:e.onGeolocateClick,style:e.style,className:e.className},n)}case "layers":return jsxRuntime.jsx(zy,{position:o,currentMapType:e.currentMapType,onMapTypeChange:e.onMapTypeChange,layers:e.layers??r.layers,onLayerToggle:e.onLayerToggle,onClearAll:e.onClearAll,onLayerVariantChange:e.onLayerVariantChange,layerTree:e.layerTree,onVisibilityChange:e.onVisibilityChange,style:e.style,className:e.className},n);case "search":return jsxRuntime.jsx(Jy,{position:o,onSearch:e.onSearch,placeholder:e.placeholder,showSearchInput:e.showSearchInput,style:e.style,className:e.className},n);case "list":return jsxRuntime.jsx(Hy,{position:o,onToggle:e.onToggle,isActive:e.isActive,style:e.style,className:e.className},n);case "custom":return jsxRuntime.jsx("div",{children:e.render(r)},n);default:return null}}function Wp(e,t){let r=e.reduce((n,a,i)=>{let s=Gp(a);return n[s]||(n[s]=[]),n[s].push({control:a,index:i}),n},{}),o=[];for(let[n,a]of Object.entries(r)){if(a.length===1){o.push(Xy(a[0].control,a[0].index,t));continue}let i={position:"static",top:"auto",right:"auto",bottom:"auto",left:"auto"};o.push(jsxRuntime.jsx(xc,{position:n,spacing:"sm",children:a.map(({control:s,index:c})=>{let l={...s,style:{...s.style,...i}};return Xy(l,c,t)})},`group-${n}`));}return o}var Up={vector:e=>({kind:"vector",...e}),geojson:e=>({kind:"geojson",...e}),customPins:e=>({kind:"customPins",...e}),raster:e=>({kind:"raster",...e}),clusteredVector:e=>({kind:"clusteredVector",...e})};function Kp(e){return e.kind==="vector"}function Yp(e){return e.kind==="geojson"}function Jp(e){return e.kind==="customPins"}function Xp(e){return e.kind==="raster"}var as=(e,t)=>({id:e,label:t,kind:"sequential",hint:"Low \u2192 High",stops:()=>mi(e),toColorSpec:({by:r,scale:o="auto"})=>({by:r,palette:"sequential",scheme:e,scale:o})}),jp=(e,t)=>({id:e,label:t,kind:"diverging",hint:"Low \u2192 Mid \u2192 High",stops:()=>fi(e),toColorSpec:({by:r,scale:o="auto",center:n=0})=>({by:r,palette:"diverging",scheme:e,center:n,scale:o})}),yc=[as("viridis","Viridis"),as("magma","Magma"),as("cerulean","Cerulean"),as("forest","Forest"),as("rose","Rose")],vc=[jp("redYellowBlue","Red \u2192 Blue"),jp("orangeYellowSeafoam","Orange \u2192 Seafoam"),jp("redBlue","Red / Blue")],Cc={id:"categorical",label:"Categorical",kind:"categorical",hint:"Distinct per value",stops:()=>To(),toColorSpec:({by:e})=>({by:e,palette:"categorical",scale:"auto"})},is=[...yc,...vc,Cc];function qp(e){return is.find(t=>t.id===e)}function Qp(e){return is.filter(t=>t.kind===e)}function Qy(e){return !e.includes("{z}")}function ss(e,t="streets"){let r=[...e].sort((o,n)=>(o.z??0)-(n.z??0));return jsxRuntime.jsx(jsxRuntime.Fragment,{children:r.map(o=>{if(!o.visible&&o.visible!==void 0)return null;switch(o.kind){case "vector":return jsxRuntime.jsx(zM,{spec:o,mapType:t},o.id);case "geojson":return jsxRuntime.jsx(HM,{spec:o,mapType:t},o.id);case "customPins":return jsxRuntime.jsx(GM,{spec:o,mapType:t},o.id);case "raster":return jsxRuntime.jsx(WM,{spec:o},o.id);case "clusteredVector":return jsxRuntime.jsx(OM,{spec:o,mapType:t},o.id);default:return console.warn("[Layers] Unknown layer kind:",o.kind),null}})})}function zM({spec:e,mapType:t}){let{colorMode:r}=Wt(),o=Ke.useMemo(()=>{let c=_y(e.style,e.renderAs,r,t);if(e.hideChipWhen&&e.renderAs==="circle"){let l=c,d=l["circle-opacity"]??1,u=l["circle-stroke-opacity"]??1;return {...c,"circle-opacity":["case",e.hideChipWhen,0,d],"circle-stroke-opacity":["case",e.hideChipWhen,0,u]}}return c},[e.style,e.renderAs,e.hideChipWhen,r,t]),n=Ke.useMemo(()=>({visibility:e.visible===false?"none":"visible"}),[e.visible]),a={id:e.id,type:Zy(e.renderAs),"source-layer":e.sourceLayer,paint:o,layout:n};e.filter!==void 0&&(a.filter=e.filter),e.minZoom!==void 0&&(a.minzoom=e.minZoom),e.maxZoom!==void 0&&(a.maxzoom=e.maxZoom);let i=Qy(e.tileset),s={id:`${e.id}-source`,type:"vector"};return e.promoteId!==void 0&&(s.promoteId=e.promoteId),i?s.url=e.tileset:(s.tiles=[e.tileset],s.minzoom=0,s.maxzoom=22),jsxRuntime.jsx($M.Source,{...s,children:jsxRuntime.jsx($M.Layer,{...a})},`${e.tileset}:${e.renderAs}`)}function OM({spec:e}){let{colorMode:t,isDarkTheme:r}=Wt(),o=1.25,n=9,a=3,i=n*1.4,s=.2,c=[0,5],l=Ke.useMemo(()=>r?{clusters:e.clusterStyle?.color?Or(e.clusterStyle.color):"#000000",shadow:e.clusterStyle?.shadowColor||"rgba(0, 0, 0, 0.5)",point:{fill:e.pointStyle?.color?Or(e.pointStyle.color):"#000000",stroke:e.pointStyle?.borderColor||"#ffffff",shadow:"rgba(0, 0, 0, 0.5)"},text:{onCluster:"#ffffff"},selected:{fill:e.selectedStyle?.color?Or(e.selectedStyle.color):"#444ae1"}}:{clusters:e.clusterStyle?.color?Or(e.clusterStyle.color):"#000000",shadow:e.clusterStyle?.shadowColor||"rgba(0, 0, 0, 0.3)",point:{fill:e.pointStyle?.color?Or(e.pointStyle.color):"#000000",stroke:e.pointStyle?.borderColor||"#ffffff",shadow:"rgba(0, 0, 0, 0.3)"},text:{onCluster:"#ffffff"},selected:{fill:e.selectedStyle?.color?Or(e.selectedStyle.color):"#444ae1"}},[r,t,e.clusterStyle,e.pointStyle,e.selectedStyle]),d=10,u=30,m=Math.log(2),p=Math.log(2e3),f=(e.clusterStyle?.sizes?.length??0)>0,g=Ke.useMemo(()=>f?e.clusterStyle.sizes.map(({threshold:S,radius:w})=>({threshold:S,radius:w,color:l.clusters})):[{threshold:30,radius:20,color:l.clusters},{threshold:200,radius:35,color:l.clusters},{threshold:1e3,radius:50,color:l.clusters}],[f,e.clusterStyle?.sizes,l.clusters]),h=S=>f?["step",["get","point_count"],S[0].radius,...S.flatMap(({threshold:w,radius:k})=>[w,k])]:["interpolate",["linear"],["ln",["max",2,["get","point_count"]]],m,d,p,u],b=S=>f?["step",["get","point_count"],S[0].radius*o,...S.flatMap(({threshold:w,radius:k})=>[w,k*o])]:["interpolate",["linear"],["ln",["max",2,["get","point_count"]]],m,d*o,p,u*o],y=Qy(e.tileset),x={id:`${e.id}-source`,type:"vector"};y?x.url=e.tileset:(x.tiles=[e.tileset],x.minzoom=0,x.maxzoom=22);let v=Ke.useMemo(()=>{let S=e.pointStyle?.radius??n,w=e.pointStyle?.borderWidth??a,k=e.selectedStyle?.radius??n*1.5,P=T=>{let E={...T};return e.minZoom!==void 0&&(E.minzoom=e.minZoom),e.maxZoom!==void 0&&(E.maxzoom=e.maxZoom),E};return [P({id:`${e.id}-cluster-shadows`,type:"circle","source-layer":e.sourceLayer,filter:["==",["get","cluster"],true],paint:{"circle-radius":b(g),"circle-color":l.shadow,"circle-blur":.5,"circle-translate":[0,8]}}),P({id:`${e.id}-points-shadow`,type:"circle","source-layer":e.sourceLayer,filter:["all",["!=",["get","cluster"],true],["!=",["get","id"],e.selectedId||"selected"]],paint:{"circle-radius":i,"circle-color":l.point.shadow,"circle-blur":s,"circle-translate":c}}),P({id:`${e.id}-clusters`,type:"circle","source-layer":e.sourceLayer,filter:["==",["get","cluster"],true],paint:{"circle-radius":h(g),"circle-color":["step",["get","point_count"],g[0].color,...g.flatMap(({threshold:T,color:E})=>[T,E])]}}),P({id:`${e.id}-cluster-count`,type:"symbol","source-layer":e.sourceLayer,filter:["==",["get","cluster"],true],layout:{"text-field":["case",["has","point_count_abbreviated"],["get","point_count_abbreviated"],["to-string",["get","point_count"]]],"text-font":["DIN Offc Pro Medium","Arial Unicode MS Bold"],"text-size":14,"text-offset":[0,.1]},paint:{"text-color":l.text.onCluster}}),P({id:`${e.id}-points`,type:"circle","source-layer":e.sourceLayer,filter:["all",["!=",["get","cluster"],true],["!=",["get","id"],e.selectedId||"selected"]],paint:{"circle-radius":S,"circle-color":l.point.fill,"circle-stroke-width":w,"circle-stroke-color":l.point.stroke}}),P({id:`${e.id}-selected-point`,type:"circle","source-layer":e.sourceLayer,filter:["==",["get","id"],e.selectedId||"selected"],paint:{"circle-radius":k,"circle-color":l.selected.fill,"circle-stroke-width":w,"circle-stroke-color":"#ffffff"}}),...e.pointStyle?.icon?[P({id:`${e.id}-points-icon`,type:"symbol","source-layer":e.sourceLayer,filter:["all",["!=",["get","cluster"],true],["!=",["get","id"],e.selectedId||"selected"]],layout:{"icon-image":e.pointStyle.icon.name,"icon-size":jy(S,e.pointStyle.icon.size),"icon-allow-overlap":true,"icon-ignore-placement":true}}),P({id:`${e.id}-selected-point-icon`,type:"symbol","source-layer":e.sourceLayer,filter:["==",["get","id"],e.selectedId||"selected"],layout:{"icon-image":e.pointStyle.icon.name,"icon-size":jy(k,e.pointStyle.icon.size),"icon-allow-overlap":true,"icon-ignore-placement":true}})]:[]]},[e.id,e.sourceLayer,e.selectedId,e.minZoom,e.maxZoom,e.pointStyle,e.selectedStyle,g,l,n,a,i,s]);return jsxRuntime.jsx($M.Source,{...x,children:v.map(S=>jsxRuntime.jsx($M.Layer,{...S},S.id))},e.tileset)}function HM({spec:e,mapType:t}){let{colorMode:r}=Wt(),o=Ke.useMemo(()=>typeof e.data=="string"?null:e.data,[e.data]),n=Ke.useMemo(()=>_y(e.style,e.renderAs,r,t,o),[e.style,e.renderAs,r,t,o]),a=Ke.useMemo(()=>({visibility:e.visible===false?"none":"visible"}),[e.visible]),i=Ke.useMemo(()=>(typeof e.data=="string",e.data),[e.data]),s={id:`${e.id}-source`,type:"geojson",data:i};e.cluster?.enabled&&(s.cluster=true,s.clusterRadius=e.cluster.radius??50,s.clusterMaxZoom=e.cluster.maxZoom??14);let c={id:e.id,type:Zy(e.renderAs),paint:n,layout:a};return e.minZoom!==void 0&&(c.minzoom=e.minZoom),e.maxZoom!==void 0&&(c.maxzoom=e.maxZoom),jsxRuntime.jsx($M.Source,{...s,children:jsxRuntime.jsx($M.Layer,{...c})})}function GM({spec:e,mapType:t}){let r=e.pin;return jsxRuntime.jsx(jsxRuntime.Fragment,{children:e.data.map((o,n)=>{let[a,i]=e.getPosition(o),s=e.pinProps?e.pinProps(o):{};return jsxRuntime.jsx($M.Marker,{longitude:a,latitude:i,anchor:"bottom",children:jsxRuntime.jsx(r,{...s})},`${e.id}-${n}`)})})}function WM({spec:e}){let t=Ke.useMemo(()=>{if(!e.style)return {};let n={};return e.style.opacity!==void 0&&(n["raster-opacity"]=e.style.opacity),e.style.brightnessMin!==void 0&&(n["raster-brightness-min"]=e.style.brightnessMin),e.style.brightnessMax!==void 0&&(n["raster-brightness-max"]=e.style.brightnessMax),e.style.contrast!==void 0&&(n["raster-contrast"]=e.style.contrast),e.style.saturation!==void 0&&(n["raster-saturation"]=e.style.saturation),e.style.hueRotate!==void 0&&(n["raster-hue-rotate"]=e.style.hueRotate),e.style.fadeDuration!==void 0&&(n["raster-fade-duration"]=e.style.fadeDuration),n},[e.style]),r={id:`${e.id}-source`,type:"raster",tiles:[e.tileset]};e.tileSize&&(r.tileSize=e.tileSize);let o={id:e.id,type:"raster",paint:t};return e.minZoom!==void 0&&(o.minzoom=e.minZoom),e.maxZoom!==void 0&&(o.maxzoom=e.maxZoom),jsxRuntime.jsx($M.Source,{...r,children:jsxRuntime.jsx($M.Layer,{...o})},e.tileset)}var _r="#666";function jy(e,t){let r=t??64;return e*2/r}function Zy(e){switch(e){case "line":return "line";case "fill":return "fill";case "circle":return "circle";case "symbol":return "symbol";case "heatmap":return "heatmap";default:return "circle"}}function _y(e,t,r,o,n){if(!e)return {};let a={};if(e.color){let i=Or(e.color,r,n);switch(t){case "line":a["line-color"]=i;break;case "fill":a["fill-color"]=i;break;case "circle":a["circle-color"]=i;break}}if(e.width&&t==="line"&&(a["line-width"]=Sc(e.width)),e.radius&&t==="circle"&&(a["circle-radius"]=Sc(e.radius)),e.opacity!==void 0)switch(t){case "line":a["line-opacity"]=e.opacity;break;case "fill":a["fill-opacity"]=e.opacity;break;case "circle":a["circle-opacity"]=e.opacity;break}if(e.fillOpacity!==void 0&&t==="fill"&&(a["fill-opacity"]=e.fillOpacity),t==="fill"&&e.borderWidth&&(a["fill-outline-color"]=e.borderColor?Or(e.borderColor,r,n):Or(e.color||"#000",r,n)),t==="circle"&&e.borderWidth){a["circle-stroke-width"]=e.borderWidth;let i=e.borderColor?Or(e.borderColor,r,n):Mt(`map-${o}-border`,"#ffffff");a["circle-stroke-color"]=i;}return t==="heatmap"&&(e.weight!==void 0&&(a["heatmap-weight"]=typeof e.weight=="string"?["get",e.weight]:Sc(e.weight)),e.intensity!==void 0&&(a["heatmap-intensity"]=e.intensity),e.radius!==void 0&&(a["heatmap-radius"]=Sc(e.radius)),e.opacity!==void 0&&(a["heatmap-opacity"]=e.opacity)),a}function UM(e,t){let r=e.by,o=e.mapping,n=["match",["get",r]];for(let[i,s]of Object.entries(o))n.push(i),n.push(Or(s));let a=e.fallback?Or(e.fallback):_r;return n.push(a),n}function KM(e,t){let r=Vm(t,e);r.length>20&&console.warn(`[Layers] Categorical auto-assignment found ${r.length} unique values for property "${e}". The 6-color palette will repeat ${Math.ceil(r.length/6)} times. Consider using explicit color mapping or reducing categories.`);let o=od(r),n=["match",["get",e]];for(let[a,i]of Object.entries(o))n.push(a),n.push(i);return n.push(_r),n}function YM(e,t="viridis",r,o){let n=nd(r,e),a;if(o&&o!=="auto")a=o;else {if(a=ad(n),n.length===0)return console.warn(`[Layers] No numeric values found for property "${e}"`),_r;console.log(`[Layers] Auto-calculated sequential scale for "${e}": ${a.min} to ${a.max}`);}let i=mi(t),s=["interpolate",["linear"],["get",e]];return i.forEach((c,l)=>{let d=l/(i.length-1),u=a.min+d*(a.max-a.min);s.push(u,c);}),s}function JM(e,t="redYellowBlue",r,o,n){let a=nd(r,e),i=zm(a,o),s;if(n&&n!=="auto")s=n;else {if(s=ad(a),a.length===0)return console.warn(`[Layers] No numeric values found for property "${e}"`),_r;console.log(`[Layers] Auto-calculated diverging scale for "${e}": ${s.min} \u2190 ${i} \u2192 ${s.max}`);}let c=fi(t),l=4,d=["interpolate",["linear"],["get",e]];for(let u=0;u<=l;u++){let m=u/l,p=s.min+m*(i-s.min);d.push(p,c[u]);}for(let u=l+1;u<c.length;u++){let m=(u-l)/(c.length-1-l),p=i+m*(s.max-i);d.push(p,c[u]);}return d}function qy(e){if(!(e.startsWith("var(")||e.startsWith("--")||e.startsWith("color-")))return e;let r=Mt(e,_r);return r.includes("var(")?_r:r}function Or(e,t,r){if(typeof e=="string")return qy(e);if("token"in e)return Mt(e.token,_r);if("hex"in e)return qy(e.hex);if("by"in e){if("palette"in e){if(e.palette==="categorical")return r?KM(e.by,r):(console.warn("[Layers] Categorical auto-assignment requires GeoJSON data (not URL-based data)"),_r);if(e.palette==="sequential")return r?YM(e.by,e.scheme,r,e.scale):(console.warn("[Layers] Sequential palette requires GeoJSON data (not URL-based data)"),_r);if(e.palette==="diverging")return r?JM(e.by,e.scheme,r,e.center,e.scale):(console.warn("[Layers] Diverging palette requires GeoJSON data (not URL-based data)"),_r)}if("mapping"in e)return UM(e)}return _r}function Sc(e){return typeof e=="number"?e:"byZoom"in e?["interpolate",["linear"],["zoom"],...e.byZoom.flatMap(([t,r])=>[t,r])]:e}var kc=null;function Tc(){return typeof window>"u"||process.env.NODE_ENV==="test"||typeof process<"u"&&process.env?.CHROMATIC||typeof ({ url: (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href)) })<"u"&&undefined?.CHROMATIC?Promise.resolve():(kc||(kc=import('mapbox-gl/dist/mapbox-gl.css').then(()=>{}).catch(t=>{console.error("Failed to load Mapbox CSS",t),kc=null;})),kc)}function Pc(){return jsxRuntime.jsx("div",{className:"absolute inset-0 z-50 bg-background-surface/90 backdrop-blur-sm pointer-events-none","data-testid":"map-loading-overlay",children:jsxRuntime.jsx("div",{className:"absolute inset-0 opacity-20",children:jsxRuntime.jsx("div",{className:"h-full w-full",style:{backgroundImage:`
|
|
40
|
+
`,"aria-label":"Open search",children:[jsxRuntime.jsx(V,{name:"MagnifyingGlass",size:18,className:"flex-shrink-0 transition-colors text-text-secondary"}),jsxRuntime.jsx("span",{className:`flex-1 text-left text-sm transition-colors ${o==="elevated"?"text-text-secondary font-normal":"text-text-disabled"}`,children:e}),r&&jsxRuntime.jsxs("div",{className:"hidden sm:flex items-center gap-1 flex-shrink-0",children:[jsxRuntime.jsx("kbd",{className:`px-2 py-1 text-xs font-medium rounded transition-colors ${o==="elevated"?"bg-background-surface/80 border border-border-muted text-text-secondary":"bg-background-muted border border-border-muted"}`,children:a?"\u2318":"Ctrl"}),jsxRuntime.jsx("kbd",{className:`px-2 py-1 text-xs font-medium rounded transition-colors ${o==="elevated"?"bg-background-surface/80 border border-border-muted text-text-secondary":"bg-background-muted border border-border-muted"}`,children:"K"})]})]})}var pE={1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",7:"grid-cols-7",8:"grid-cols-8",9:"grid-cols-9",10:"grid-cols-10",11:"grid-cols-11",12:"grid-cols-12",none:"grid-cols-none"},mE={sm:{1:"sm:grid-cols-1",2:"sm:grid-cols-2",3:"sm:grid-cols-3",4:"sm:grid-cols-4",5:"sm:grid-cols-5",6:"sm:grid-cols-6",7:"sm:grid-cols-7",8:"sm:grid-cols-8",9:"sm:grid-cols-9",10:"sm:grid-cols-10",11:"sm:grid-cols-11",12:"sm:grid-cols-12",none:"sm:grid-cols-none"},md:{1:"md:grid-cols-1",2:"md:grid-cols-2",3:"md:grid-cols-3",4:"md:grid-cols-4",5:"md:grid-cols-5",6:"md:grid-cols-6",7:"md:grid-cols-7",8:"md:grid-cols-8",9:"md:grid-cols-9",10:"md:grid-cols-10",11:"md:grid-cols-11",12:"md:grid-cols-12",none:"md:grid-cols-none"},lg:{1:"lg:grid-cols-1",2:"lg:grid-cols-2",3:"lg:grid-cols-3",4:"lg:grid-cols-4",5:"lg:grid-cols-5",6:"lg:grid-cols-6",7:"lg:grid-cols-7",8:"lg:grid-cols-8",9:"lg:grid-cols-9",10:"lg:grid-cols-10",11:"lg:grid-cols-11",12:"lg:grid-cols-12",none:"lg:grid-cols-none"},xl:{1:"xl:grid-cols-1",2:"xl:grid-cols-2",3:"xl:grid-cols-3",4:"xl:grid-cols-4",5:"xl:grid-cols-5",6:"xl:grid-cols-6",7:"xl:grid-cols-7",8:"xl:grid-cols-8",9:"xl:grid-cols-9",10:"xl:grid-cols-10",11:"xl:grid-cols-11",12:"xl:grid-cols-12",none:"xl:grid-cols-none"},"2xl":{1:"2xl:grid-cols-1",2:"2xl:grid-cols-2",3:"2xl:grid-cols-3",4:"2xl:grid-cols-4",5:"2xl:grid-cols-5",6:"2xl:grid-cols-6",7:"2xl:grid-cols-7",8:"2xl:grid-cols-8",9:"2xl:grid-cols-9",10:"2xl:grid-cols-10",11:"2xl:grid-cols-11",12:"2xl:grid-cols-12",none:"2xl:grid-cols-none"}},fE={none:"gap-0",xs:"gap-x-2 gap-y-1",sm:"gap-x-3 gap-y-2",md:"gap-x-4 gap-y-3",lg:"gap-x-6 gap-y-4",xl:"gap-x-8 gap-y-6","2xl":"gap-x-12 gap-y-8"},gE={none:"gap-x-0",xs:"gap-x-2",sm:"gap-x-3",md:"gap-x-4",lg:"gap-x-6",xl:"gap-x-8","2xl":"gap-x-12"},bE={none:"gap-y-0",xs:"gap-y-1",sm:"gap-y-2",md:"gap-y-3",lg:"gap-y-4",xl:"gap-y-6","2xl":"gap-y-8"},xE={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},hE={start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},yE={row:"grid-flow-row",col:"grid-flow-col",dense:"grid-flow-dense","row-dense":"grid-flow-row-dense","col-dense":"grid-flow-col-dense"},vE={1:"col-span-1",2:"col-span-2",3:"col-span-3",4:"col-span-4",5:"col-span-5",6:"col-span-6",7:"col-span-7",8:"col-span-8",9:"col-span-9",10:"col-span-10",11:"col-span-11",12:"col-span-12",full:"col-span-full",auto:"col-auto"},CE={sm:{1:"sm:col-span-1",2:"sm:col-span-2",3:"sm:col-span-3",4:"sm:col-span-4",5:"sm:col-span-5",6:"sm:col-span-6",7:"sm:col-span-7",8:"sm:col-span-8",9:"sm:col-span-9",10:"sm:col-span-10",11:"sm:col-span-11",12:"sm:col-span-12",full:"sm:col-span-full",auto:"sm:col-auto"},md:{1:"md:col-span-1",2:"md:col-span-2",3:"md:col-span-3",4:"md:col-span-4",5:"md:col-span-5",6:"md:col-span-6",7:"md:col-span-7",8:"md:col-span-8",9:"md:col-span-9",10:"md:col-span-10",11:"md:col-span-11",12:"md:col-span-12",full:"md:col-span-full",auto:"md:col-auto"},lg:{1:"lg:col-span-1",2:"lg:col-span-2",3:"lg:col-span-3",4:"lg:col-span-4",5:"lg:col-span-5",6:"lg:col-span-6",7:"lg:col-span-7",8:"lg:col-span-8",9:"lg:col-span-9",10:"lg:col-span-10",11:"lg:col-span-11",12:"lg:col-span-12",full:"lg:col-span-full",auto:"lg:col-auto"},xl:{1:"xl:col-span-1",2:"xl:col-span-2",3:"xl:col-span-3",4:"xl:col-span-4",5:"xl:col-span-5",6:"xl:col-span-6",7:"xl:col-span-7",8:"xl:col-span-8",9:"xl:col-span-9",10:"xl:col-span-10",11:"xl:col-span-11",12:"xl:col-span-12",full:"xl:col-span-full",auto:"xl:col-auto"},"2xl":{1:"2xl:col-span-1",2:"2xl:col-span-2",3:"2xl:col-span-3",4:"2xl:col-span-4",5:"2xl:col-span-5",6:"2xl:col-span-6",7:"2xl:col-span-7",8:"2xl:col-span-8",9:"2xl:col-span-9",10:"2xl:col-span-10",11:"2xl:col-span-11",12:"2xl:col-span-12",full:"2xl:col-span-full",auto:"2xl:col-auto"}};function qh(e,t,r){if(!e)return "";if(typeof e!="object")return t[e]||"";let o=[];return "base"in e&&e.base!==void 0&&o.push(t[e.base]),Object.entries(r).forEach(([n,a])=>{let i=e[n];i!==void 0&&o.push(a[i]);}),o.join(" ")}function Lp({cols:e=1,gap:t="md",gapX:r,gapY:o,align:n="stretch",justify:a="start",flow:i="row",autoFit:s,autoFill:c,className:l,children:d}){let u=tailwindMerge.twMerge("grid",s||c?"":qh(e,pE,mE),!r&&!o&&fE[t],r&&gE[r],o&&bE[o],xE[n],hE[a],yE[i],l),m={};return s?m.gridTemplateColumns=`repeat(auto-fit, minmax(${s}, 1fr))`:c&&(m.gridTemplateColumns=`repeat(auto-fill, minmax(${c}, 1fr))`),jsxRuntime.jsx("div",{className:u,style:m,children:d})}function SE({span:e,className:t,children:r}){let o=tailwindMerge.twMerge(qh(e,vE,CE),t);return jsxRuntime.jsx("div",{className:o,children:r})}Lp.Item=SE;function wE(e,t){return Je__namespace.default.isValidElement(e)?e:ao({value:e,formatter:t,emptyClassName:"text-text-secondary",emptyText:"\u2014"})}function NE(e){if(e.thresholds&&e.value!==null&&e.value!==void 0){for(let t of e.thresholds)if(t.when(e.value))return t.tone}return e.tone}var kE={neutral:"text-text-primary",success:"text-feedback-success",warning:"text-feedback-warning",error:"text-feedback-error",info:"text-feedback-info"},TE=24,PE=20;function RE({item:e,dense:t,valueAlign:r}){let o=NE(e),n=o?kE[o]:"",a=e.stackOnMobile,i=typeof e.value=="string"&&e.value.length>TE&&!e.formatter&&!Je__namespace.default.isValidElement(e.value),s=wE(e.value,e.formatter),c=i?ka(e.value,PE):null,l=typeof e.copyable=="function"?e.copyable(e.value):String(e.value),d=e.piiType&&e.piiEntity?{"data-pii-type":e.piiType,"data-pii-entity":e.piiEntity}:{},u=Object.keys(d).length>0,m=i?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(lr,{content:u?jsxRuntime.jsx("span",{...d,children:String(e.value)}):String(e.value),children:jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("md:hidden",e.href?"hover:underline cursor-pointer":""),...d,children:c})}),jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("hidden md:inline",e.href?"hover:underline cursor-pointer":""),...d,children:s})]}):jsxRuntime.jsx("span",{className:e.href?"hover:underline cursor-pointer":"",...d,children:s}),p=e.copyable?jsxRuntime.jsx($o,{value:l,size:"sm",children:jsxRuntime.jsx("span",{className:"sr-only",children:"Copy"})}):null,f=e.copyable&&(e.copyIconPosition==="left"||!e.copyIconPosition),g=e.copyable&&e.copyIconPosition==="right",b=jsxRuntime.jsxs("dd",{className:tailwindMerge.twMerge(t?"text-sm":"text-base","font-medium",a?r==="start"?"text-left":"text-left sm:text-right":r==="start"?"text-left":"text-right",n,e.disabled&&"opacity-50","overflow-hidden min-w-0"),children:[jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("inline-flex items-center gap-1 max-w-full",r==="start"?"justify-start":"justify-end"),children:[jsxRuntime.jsxs("span",{className:"inline-flex items-center gap-1 min-w-0",children:[m,e.iconRight]}),g&&p]}),e.meta&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-xs text-text-secondary mt-0.5",r==="start"?"text-left":"text-right"),children:e.meta})]}),h=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("dt",{className:tailwindMerge.twMerge(t?"text-xs":"text-sm","text-text-secondary truncate","flex items-center gap-1",e.disabled&&"opacity-50"),children:[e.iconLeft,jsxRuntime.jsx("span",{title:typeof e.label=="string"?e.label:void 0,children:e.label}),e.tooltip&&jsxRuntime.jsx(V,{name:"Question",size:10,className:"text-text-secondary","aria-label":"More information"})]}),f&&jsxRuntime.jsx("div",{className:"flex items-center",children:p}),e.href?jsxRuntime.jsx("a",{href:e.href,onClick:e.onAction,className:"block",children:b}):b]});return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("grid",a?"items-start sm:items-center":f?"items-center":"items-start",a?f?"grid-cols-1 gap-y-1 sm:grid-cols-[minmax(120px,1fr)_auto_auto] sm:gap-x-1 sm:gap-y-0":t?"grid-cols-1 gap-y-1 sm:grid-cols-[minmax(120px,1fr)_1fr] sm:gap-x-2 sm:gap-y-0":"grid-cols-1 gap-y-1 sm:grid-cols-[minmax(120px,1fr)_1fr] sm:gap-x-4 sm:gap-y-0":f?"grid-cols-[minmax(120px,1fr)_auto_auto] gap-x-1":t?"grid-cols-[minmax(120px,1fr)_1fr] gap-x-2":"grid-cols-[minmax(120px,1fr)_1fr] gap-x-4"),children:h})}function dc({items:e,layout:t="one-column",dense:r=false,valueAlign:o="end",showDividers:n=false,skeleton:a=false,empty:i=false,error:s,className:c}){return a?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("grid",t==="two-column"?"md:grid-cols-2 gap-x-6":"grid-cols-1",r?"gap-y-1":"gap-y-2",c),children:Array.from({length:e.length||4}).map((l,d)=>jsxRuntime.jsxs("div",{className:"grid grid-cols-[1fr_auto] items-start gap-x-4",children:[jsxRuntime.jsx(U,{className:"h-4 w-24"}),jsxRuntime.jsx(U,{className:"h-5 w-16"})]},d))}):s?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-sm text-feedback-error",c),children:s}):i||!e.length?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-sm text-text-secondary",c),children:"No data available"}):jsxRuntime.jsx("dl",{className:tailwindMerge.twMerge("grid",t==="two-column"?"md:grid-cols-2 gap-x-6":"grid-cols-1",r?"gap-y-1":"gap-y-2",c),children:e.map((l,d)=>jsxRuntime.jsxs(Je__namespace.default.Fragment,{children:[n&&d>0&&t==="one-column"&&jsxRuntime.jsx("div",{className:"col-span-full border-t border-border-default -mt-1 mb-1"}),jsxRuntime.jsx(RE,{item:l,dense:r,valueAlign:o})]},l.id))})}function _h({node:e,renderNodeList:t}){let r=e.children||[],o=e.metadata&&Object.keys(e.metadata).length>0;return jsxRuntime.jsxs("div",{className:"flex flex-col h-full",children:[jsxRuntime.jsx("div",{className:"flex-shrink-0 px-4 py-4",children:jsxRuntime.jsx("h3",{className:"font-semibold text-text-primary text-lg",children:e.name})}),o&&jsxRuntime.jsx("div",{className:"flex-shrink-0 border-y border-border-default px-4 py-4 bg-background-muted",children:jsxRuntime.jsx(dc,{items:Object.entries(e.metadata||{}).map(([n,a])=>({id:n,label:n,value:a??"\u2014"})),dense:true,layout:"one-column",valueAlign:"end",showDividers:true})}),r.length>0&&jsxRuntime.jsx("div",{className:"flex-1 overflow-auto",children:t(r,false)})]})}var pt={xs:{node:"px-2 py-2 text-xs",icon:"xs",bullet:24,spacing:{x:8,y:8}},sm:{node:"px-3 py-2.5 text-sm",icon:"xs",bullet:28,spacing:{x:12,y:10}},md:{node:"px-4 py-3 text-base",icon:"sm",bullet:32,spacing:{x:16,y:12}}};var Ap=Je__namespace.createContext(null);function $h(){let e=Je__namespace.useContext(Ap);if(!e)throw new Error("Hierarchy components must be used within HierarchyExplorer");return e}function ty({node:e,renderNode:t}){let{selectedId:r,selectNode:o,navigateToNode:n,variant:a,size:i,showBullets:s,rootNodeId:c,stickyRootNode:l,navigationStack:d,setRootNodeSticky:u,useSplitLayout:m}=$h(),p=Je__namespace.useRef(null),f=Je__namespace.useRef(null),g=r===e.id,y=e.disabled||false,b=!!(e.children&&e.children.length>0),h=!!(e.metadata&&Object.keys(e.metadata).length>0),x=b||h,v=c!==void 0&&e.id!==void 0&&c===e.id&&d.length===0;Je__namespace.useLayoutEffect(()=>{v&&l&&p.current&&f.current===null&&requestAnimationFrame(()=>{p.current&&(f.current=p.current.offsetTop);});},[v,l]),Je__namespace.useEffect(()=>{if(!v||!l||!p.current)return;let I=p.current.parentElement;for(;I;){let L=window.getComputedStyle(I).overflowY;if(L==="auto"||L==="scroll")break;I=I.parentElement;}if(!I)return;let E=()=>{if(!p.current||f.current===null)return;let L=I.getBoundingClientRect(),M=I.scrollTop,F=L.height,z=p.current.offsetHeight,X=f.current-M,Z=X+z,O=X<0,j=Z>F;O?u("top",e):j?u("bottom",e):u(null,null);};return I.addEventListener("scroll",E),E(),()=>{I.removeEventListener("scroll",E);}},[v,l,e,u]);let S=()=>{y||(m?o(e):x?n(e):o(e));},w=I=>{y||(I.key==="Enter"||I.key===" ")&&(I.preventDefault(),S());},P={isSelected:g,isDisabled:y,hasChildren:b,hasMetadata:h,level:0},T=tailwindMerge.twMerge("relative cursor-pointer group",y&&"opacity-50 cursor-not-allowed"),k=tailwindMerge.twMerge("absolute inset-0 transition-colors",v&&!g&&!y&&"group-hover:bg-background-hover",v&&g&&!y&&a==="subtle"&&"bg-background-selected group-hover:bg-background-hover",v&&g&&y&&a==="subtle"&&"bg-background-selected",v&&g&&!y&&a==="solid"&&"bg-action-brand group-hover:bg-action-brand-hover",v&&g&&y&&a==="solid"&&"bg-action-brand",!v&&a==="subtle"&&!g&&!y&&"group-hover:bg-background-hover",!v&&a==="subtle"&&g&&!y&&"bg-background-selected group-hover:bg-background-hover",!v&&a==="subtle"&&g&&y&&"bg-background-selected",!v&&a==="solid"&&!g&&!y&&"group-hover:bg-background-hover",!v&&a==="solid"&&g&&!y&&"bg-action-brand group-hover:bg-action-brand-hover",!v&&a==="solid"&&g&&y&&"bg-action-brand"),R=tailwindMerge.twMerge("relative flex items-center gap-2 text-text-primary hover:text-text-primary transition-colors",pt[i].node,v&&!g&&"font-semibold",a==="subtle"&&g&&"text-text-link-default",a==="solid"&&g&&"text-[color:var(--color-action-brand-text)]");return jsxRuntime.jsxs("div",{ref:p,className:T,onClick:S,onKeyDown:w,role:"treeitem","aria-selected":g,"aria-disabled":y,tabIndex:0,"data-node-id":e.id,children:[jsxRuntime.jsx("div",{className:k}),jsxRuntime.jsxs("div",{className:R,children:[s&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("relative rounded-full flex items-center justify-center flex-shrink-0 z-20",v&&"bg-action-brand border-action-brand",!v&&"bg-background-muted border border-border-default"),style:{width:pt[i].bullet,height:pt[i].bullet},children:e.icon&&jsxRuntime.jsx(V,{name:e.icon,size:pt[i].icon,weight:v?"fill":"regular",className:v?"text-[color:var(--color-action-brand-text)]":"text-text-primary"})}),jsxRuntime.jsx("div",{className:"flex-1 min-w-0",children:t?t(e,P):jsxRuntime.jsx("span",{className:"truncate",children:e.name})}),x&&!m&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:jsxRuntime.jsx(V,{name:"CaretRight",size:pt[i].icon,className:"text-text-secondary"})})]})]})}function oy({items:e,showConnector:t=false,scrollContainerRef:r,showBullets:o,size:n,renderNode:a}){return jsxRuntime.jsxs("div",{className:"relative",ref:t&&r?r:void 0,children:[o&&e.length>0&&t&&jsxRuntime.jsx("div",{className:"absolute w-px bg-text-secondary z-10 pointer-events-none",style:{left:`${pt[n].spacing.x+pt[n].bullet/2}px`,top:`${pt[n].spacing.y+pt[n].bullet/2}px`,bottom:`${pt[n].spacing.y+pt[n].bullet/2}px`},"aria-hidden":"true"}),e.map(i=>jsxRuntime.jsx(ty,{node:i,renderNode:a},i.id))]})}function os({children:e,mode:t="sync",presenceKey:r}){let o=r!==void 0&&Je__namespace.default.isValidElement(e)?Je__namespace.default.cloneElement(e,{key:r}):r!==void 0?jsxRuntime.jsx("div",{children:e},r):e;return jsxRuntime.jsx(framerMotion.AnimatePresence,{mode:t,children:o})}function iy(){let[e,t]=Je.useState(()=>typeof window>"u"?false:window.matchMedia("(prefers-reduced-motion: reduce)").matches);return Je.useEffect(()=>{let r=window.matchMedia("(prefers-reduced-motion: reduce)");t(r.matches);let o=n=>{t(n.matches);};return r.addEventListener("change",o),()=>{r.removeEventListener("change",o);}},[]),e}var FE={instant:0,fast:150,normal:250,slow:350,slower:500},Ip={xs:"4px",sm:"8px",md:"16px"};function BE(e){return e?typeof e=="string"&&e in Ip?Ip[e]:typeof e=="number"?`${e}px`:e:Ip.sm}function ns({children:e,direction:t,distance:r="sm",duration:o="normal",delay:n=0,className:a}){let i=iy(),s=typeof o=="number"?o:FE[o],c=BE(r),l=p=>{switch(t){case "left":return {x:`-${p}`};case "right":return {x:p};case "up":return {y:`-${p}`};case "down":return {y:p}}},d=i?{opacity:0}:{opacity:0,...l(c)},u={opacity:1,x:0,y:0},m=i?{opacity:0}:{opacity:0,...l(c)};return jsxRuntime.jsx(framerMotion.motion.div,{className:a,initial:d,animate:u,exit:m,transition:{duration:i?0:s/1e3,delay:i?0:n/1e3,ease:[.4,0,.2,1]},children:e})}function mc({navigationStack:e,onNavigateBack:t,size:r}){let o=e.length===1?"Back to main":`Back to ${e[e.length-2]?.name}`;return jsxRuntime.jsx("div",{className:"sticky top-0 z-10 bg-background-surface border-b border-border-default flex-shrink-0",children:jsxRuntime.jsxs("button",{type:"button",onClick:t,className:tailwindMerge.twMerge("w-full flex items-center gap-2 transition-colors text-left group",pt[r].node),children:[jsxRuntime.jsx(V,{name:"CaretLeft",size:pt[r].icon,className:"text-text-secondary group-hover:text-text-primary transition-colors"}),jsxRuntime.jsx("span",{className:"font-medium text-text-primary group-hover:text-text-link-hover transition-colors",children:o})]})})}function fc({node:e,position:t,selectedId:r,variant:o,size:n,showBullets:a}){let i=r===e.id;return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("absolute z-30 left-0 right-0 border-border-default transition-all duration-200 bg-background-surface",pt[n].node,i?o==="subtle"?"text-text-link-default":"bg-action-brand text-[color:var(--color-action-brand-text)]":"font-semibold",t==="top"&&"top-0 border-b shadow-[0_4px_6px_-1px_rgba(0,0,0,0.1)]",t==="bottom"&&"bottom-0 border-t shadow-[0_-4px_6px_-1px_rgba(0,0,0,0.1)]"),children:[i&&o==="subtle"&&jsxRuntime.jsx("div",{className:"absolute inset-0 bg-background-selected"}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2 cursor-pointer relative z-10",children:[a&&jsxRuntime.jsx("div",{className:"flex-shrink-0 rounded-full flex items-center justify-center bg-action-brand border-action-brand",style:{width:pt[n].bullet,height:pt[n].bullet},children:e.icon&&jsxRuntime.jsx(V,{name:e.icon,size:pt[n].icon,weight:"fill",className:"text-[color:var(--color-action-brand-text)]"})}),jsxRuntime.jsx("div",{className:"flex-1 min-w-0",children:jsxRuntime.jsx("span",{className:"truncate",children:e.name})})]})]})}function ly({currentItems:e,currentParent:t,navigationStack:r,selectedId:o,variant:n,size:a,showBullets:i,slideDirection:s,viewKey:c,hasHeight:l,rootNodeStickyState:d,renderNodeList:u,renderDetailContent:m,onNavigateBack:p}){return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[r.length===0&&d.position&&d.node&&jsxRuntime.jsx(fc,{node:d.node,position:d.position,selectedId:o,variant:n,size:a,showBullets:i}),r.length>0&&jsxRuntime.jsx(mc,{navigationStack:r,onNavigateBack:p,size:a}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("relative",l&&"overflow-auto h-full"),children:jsxRuntime.jsx(os,{mode:"wait",presenceKey:c,children:r.length===0?u(e,true):jsxRuntime.jsx(ns,{direction:s,distance:"100%",duration:"normal",children:m(t)})})})]})}function Bp(e,t){for(let r of e){if(r.id===t)return r;if(r.children&&r.children.length>0){let o=Bp(r.children,t);if(o)return o}}return null}function gc(e){if(e!==void 0)return typeof e=="number"?`${e}px`:e}function cy(e,t){if(process.env.NODE_ENV!=="development")return;let r=new Set,o=(n,a="root")=>{for(let i=0;i<n.length;i++){let s=n[i],c=`${a}[${i}]`;s.id?r.has(s.id)?console.warn(`[HierarchyExplorer] Duplicate node ID found: "${s.id}". Each node must have a unique ID.`):r.add(s.id):console.warn(`[HierarchyExplorer] Node at ${c} is missing an "id" field. Node name: "${s.name||"(unnamed)"}"`),s.children&&o(s.children,`${c}.children`);}};o(e),t&&!r.has(t)&&console.warn(`[HierarchyExplorer] Root node ID "${t}" not found in data. No node will be highlighted as root.`);}function uy({data:e,currentItems:t,navigationStack:r,selectedId:o,variant:n,size:a,showBullets:i,rootNodeStickyState:s,renderNodeList:c,renderDetailContent:l,renderEmptyState:d,onNavigateBack:u}){let m=o?Bp(e,o):null;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{className:"flex-1 min-w-0 border-r border-border-default flex flex-col relative",children:[r.length===0&&s.position&&s.node&&jsxRuntime.jsx(fc,{node:s.node,position:s.position,selectedId:o,variant:n,size:a,showBullets:i}),r.length>0&&jsxRuntime.jsx(mc,{navigationStack:r,onNavigateBack:u,size:a}),jsxRuntime.jsx("div",{className:"flex-1 overflow-auto",children:c(t,r.length===0)})]}),jsxRuntime.jsx("div",{className:"flex-1 min-w-0 overflow-auto bg-background-body",children:jsxRuntime.jsx(os,{mode:"wait",presenceKey:m?.id||"empty",children:m?jsxRuntime.jsx(ns,{direction:"left",duration:"fast",children:l(m)}):d?d():jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-text-secondary text-center",pt[a].node,"py-8"),children:"Select an item to view details"})})})]})}function py({data:e,renderNode:t,onNodeSelect:r,onNavigate:o,selectedId:n,rootNodeId:a,stickyRootNode:i=true,height:s,minHeight:c,maxHeight:l,variant:d="subtle",size:u="md",showBullets:m=true,layout:p="auto",splitBreakpoint:f=768,renderEmptyState:g,renderDetailView:y,className:b,"aria-label":h="Hierarchy explorer"}){let[x,v]=Je__namespace.useState(null),[S,w]=Je__namespace.useState([]),[P,T]=Je__namespace.useState("left"),[k,R]=Je__namespace.useState({position:null,node:null}),{ref:I,width:E}=Ba(),L=Je__namespace.useMemo(()=>p==="split"?true:p==="single"?false:E>=f,[p,E,f]),M=n!==void 0?n:x;Je__namespace.useEffect(()=>{cy(e,a);},[e,a]);let F=S.length>0?S[S.length-1]:null,z=F?F.children||[]:e,W=Je__namespace.useCallback(B=>{T("left"),w(Y=>[...Y,B]),o?.(B,[...S,B]);},[S,o]),X=Je__namespace.useCallback(()=>{T("right"),w(B=>{let Y=B.slice(0,-1);return o?.(Y.length>0?Y[Y.length-1]:null,Y),Y});},[o]),Z=Je__namespace.useCallback(B=>{n===void 0&&v(B.id),r?.(B,[...S,B]);},[n,S,r]),O=Je__namespace.useCallback((B,Y)=>{R({position:B,node:Y});},[]),j=Je__namespace.useMemo(()=>({selectedId:M,selectNode:Z,navigateToNode:W,navigateBack:X,rootNodeId:a,stickyRootNode:i,variant:d,size:u,showBullets:m,onNodeSelect:r,onNavigate:o,navigationStack:S,setRootNodeSticky:O,useSplitLayout:L}),[M,Z,W,X,a,i,d,u,m,r,o,S,O,L]),H=Je__namespace.useRef(null);Je__namespace.useEffect(()=>{if(!a||!H.current||S.length>0||L)return;let B=H.current,Y=setTimeout(()=>{let re=B.querySelector(`[data-node-id="${a}"]`);re&&re.scrollIntoView({behavior:"auto",block:"center",inline:"nearest"});},100);return ()=>clearTimeout(Y)},[a,S.length,L]);let A={height:gc(s),minHeight:gc(c),maxHeight:gc(l)},G=s!==void 0||l!==void 0,N=F?F.id:"root",C=Je__namespace.useCallback((B,Y=false)=>jsxRuntime.jsx(oy,{items:B,showConnector:Y,scrollContainerRef:Y?H:null,showBullets:m,size:u,renderNode:t}),[m,u,t]),D=Je__namespace.useCallback(B=>B?y?y(B,C):jsxRuntime.jsx(_h,{node:B,renderNodeList:C}):null,[y,C]);return jsxRuntime.jsx(Ap.Provider,{value:j,children:jsxRuntime.jsx("div",{ref:I,className:tailwindMerge.twMerge("select-none bg-background-surface rounded-lg border border-border-default relative",G&&"overflow-hidden",!G&&"h-full flex flex-col",L&&!G&&"flex-row",L&&G&&"flex",b),style:A,role:"tree","aria-label":h,children:L?jsxRuntime.jsx(uy,{data:e,currentItems:z,navigationStack:S,selectedId:M,variant:d,size:u,showBullets:m,rootNodeStickyState:k,renderNodeList:C,renderDetailContent:D,renderEmptyState:g,onNavigateBack:X}):jsxRuntime.jsx(ly,{currentItems:z,currentParent:F,navigationStack:S,selectedId:M,variant:d,size:u,showBullets:m,slideDirection:P,viewKey:N,hasHeight:G,rootNodeStickyState:k,renderNodeList:C,renderDetailContent:D,onNavigateBack:X})})})}function ZE({isEntering:e,isExiting:t,className:r=""}){let o=["group","bg-background-surface","forced-colors:bg-[Canvas]","text-text-primary","shadow-lg","rounded-[var(--control-border-radius)]","bg-clip-padding","border","border-border-default","outline-none","p-4","min-w-[260px]","max-w-[360px]"].filter(Boolean).join(" "),n=e?["animate-in","fade-in","zoom-in-95","placement-bottom:slide-in-from-top-1","placement-top:slide-in-from-bottom-1","placement-left:slide-in-from-right-1","placement-right:slide-in-from-left-1","ease-out","duration-200"].join(" "):"",a=t?["animate-out","fade-out","zoom-out-95","placement-bottom:slide-out-to-top-1","placement-top:slide-out-to-bottom-1","placement-left:slide-out-to-right-1","placement-right:slide-out-to-left-1","ease-in","duration-150"].join(" "):"";return [o,n,a,r].filter(Boolean).join(" ")}var my=({children:e,delay:t=700,closeDelay:r=0,isOpen:o,defaultOpen:n,onOpenChange:a,isDisabled:i=false,...s})=>jsxRuntime.jsx(reactAriaComponents.TooltipTrigger,{delay:t,closeDelay:r,isOpen:o,defaultOpen:n,onOpenChange:a,isDisabled:i,...s,children:e}),fy=({children:e,className:t,showArrow:r=false,offset:o,...n})=>jsxRuntime.jsxs(reactAriaComponents.Tooltip,{...n,offset:o??(r?12:8),className:reactAriaComponents.composeRenderProps(t,(i,s)=>ZE({...s,className:i})),children:[r&&jsxRuntime.jsx(reactAriaComponents.OverlayArrow,{children:jsxRuntime.jsx("svg",{width:12,height:12,viewBox:"0 0 12 12",className:"block fill-background-surface stroke-border-default stroke-1 group-placement-left:-rotate-90 group-placement-right:rotate-90 group-placement-bottom:rotate-180 forced-colors:fill-[Canvas] forced-colors:stroke-[ButtonBorder]",children:jsxRuntime.jsx("path",{d:"M0 0 L6 6 L12 0"})})}),e]});fy.displayName="HoverCardContent";var _E=Object.assign(my,{Root:my,Content:fy});var tM={md:{fontFamily:"var(--font-family-brand)",fontSize:24,lineHeight:1,letterSpacing:"-0.02em"},lg:{fontFamily:"var(--font-family-brand)",fontSize:34,lineHeight:1.1}},rM={md:{fontSize:12},lg:{fontSize:16}},oM={fontSize:11};function nM(e,t){return ao({value:e,formatter:t,emptyClassName:"text-text-secondary",emptyText:"\u2014"})}function aM(e,t="upIsGood"){if(e===0)return "text-text-secondary";let r=e>0;return t==="upIsGood"?r?"text-feedback-success-text":"text-feedback-error-text":r?"text-feedback-error-text":"text-feedback-success-text"}function iM({points:e,className:t,ariaLabel:r}){let i=e.map(p=>typeof p.y=="number"?p.y:0);if(i.length===0)return null;let s=Math.min(...i),l=Math.max(...i)-s,d=p=>l===0?20/2:18-(p-s)/l*16,u=60/Math.max(e.length-1,1),m=e.map((p,f)=>{let g=2+f*u,y=d(typeof p.y=="number"?p.y:0);return `${f===0?"M":"L"} ${g} ${y}`}).join(" ");return jsxRuntime.jsx("svg",{width:64,height:20,role:"img","aria-label":r,className:tailwindMerge.twMerge("overflow-visible",t),children:jsxRuntime.jsx("path",{d:m,fill:"none",strokeWidth:"1.5",className:"stroke-border-muted"})})}var gy=100,sa=30,by=1.5,xy=4,sM=12;function lM(e,t){if(e.length<=t)return e;let r=(e.length-1)/(t-1),o=[];for(let n=0;n<t;n++)o.push(e[Math.round(n*r)]);return o}function cM(e){if(e.length<2)return e.length===1?`M ${e[0][0]} ${e[0][1]}`:"";let t=`M ${e[0][0]} ${e[0][1]}`;for(let r=0;r<e.length-1;r++){let o=e[r-1]??e[r],n=e[r],a=e[r+1],i=e[r+2]??a,s=n[0]+(a[0]-o[0])/6,c=n[1]+(a[1]-o[1])/6,l=a[0]-(i[0]-n[0])/6,d=a[1]-(i[1]-n[1])/6;t+=` C ${s} ${c} ${l} ${d} ${a[0]} ${a[1]}`;}return t}function dM({points:e,gradientId:t,tone:r,className:o}){if(!e||e.length<2)return null;let n=lM(e,sM),a=n.map(y=>typeof y.y=="number"?y.y:0),i=Math.min(...a),c=Math.max(...a)-i,l=y=>c===0?sa/2:sa-xy-(y-i)/c*(sa-2*xy),d=(gy-2*by)/Math.max(n.length-1,1),u=n.map((y,b)=>[by+b*d,l(typeof y.y=="number"?y.y:0)]),m=cM(u),p=u[u.length-1],f=u[0],g=`${m} L ${p[0]} ${sa} L ${f[0]} ${sa} Z`;return jsxRuntime.jsxs("svg",{width:"100%",height:sa,viewBox:`0 0 ${gy} ${sa}`,preserveAspectRatio:"none",role:"img","aria-label":"Trend",className:tailwindMerge.twMerge("mt-2 block w-full",r,o),children:[jsxRuntime.jsx("defs",{children:jsxRuntime.jsxs("linearGradient",{id:t,x1:"0",y1:"0",x2:"0",y2:"1",children:[jsxRuntime.jsx("stop",{offset:"0%",stopColor:"currentColor",stopOpacity:.22}),jsxRuntime.jsx("stop",{offset:"100%",stopColor:"currentColor",stopOpacity:0})]})}),jsxRuntime.jsx("path",{d:g,fill:`url(#${t})`,stroke:"none"}),jsxRuntime.jsx("path",{d:m,fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"})]})}function hy({label:e,value:t,formatter:r,delta:o,deltaPeriodLabel:n,deltaIntent:a="upIsGood",trend:i,status:s,helpText:c,size:l="md",orientation:d="vertical",isLoading:u,empty:m,error:p,onClick:f,className:g,labelClassName:y,renderValue:b,renderDelta:h,renderTrend:x,unit:v,sub:S,dashed:w,sparkVariant:P="line",sparkTone:T,tileValueSize:k}){let R=Je.useId(),E={sm:{label:vt("labelSm"),value:vt("displaySm"),delta:vt("labelSm"),gap:"gap-1"},md:{label:vt("labelMd"),value:vt("displayMd"),delta:vt("bodySm"),gap:"gap-2"},lg:{label:vt("labelLg"),value:vt("displayLg"),delta:vt("bodyMd"),gap:"gap-3"}}[l],L=X=>k?jsxRuntime.jsxs("span",{style:tM[k],className:w?"opacity-45":void 0,children:[X,v?jsxRuntime.jsxs("span",{className:"text-text-secondary",style:rM[k],children:[" ",v]}):null]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[X,v?jsxRuntime.jsxs("span",{className:"text-text-secondary",children:[" ",v]}):null]}),M=u?jsxRuntime.jsx(U,{className:"h-7 w-20"}):m?jsxRuntime.jsx("span",{className:"text-text-secondary",children:"\u2014"}):p?jsxRuntime.jsx("span",{className:vt("bodySm","text-feedback-error"),children:typeof p=="string"?p:"Error"}):w?L("\u2014"):b?b(t):L(k?t:nM(t,r)),F=h?h(o):o!==void 0&&!u&&!m&&!p&&!w?jsxRuntime.jsxs("div",{className:nr(E.delta,aM(o,a),"flex items-center gap-1"),children:[o>0&&jsxRuntime.jsx(V,{name:"ArrowUp",size:12}),o<0&&jsxRuntime.jsx(V,{name:"ArrowDown",size:12}),o===0&&jsxRuntime.jsx(V,{name:"Minus",size:12}),jsxRuntime.jsxs("span",{children:[o>0?"+":"",Math.abs(o).toFixed(1),"%"]}),n&&jsxRuntime.jsxs("span",{className:"text-text-secondary",children:["\xB7 ",n]})]}):u&&o!==void 0?jsxRuntime.jsx(U,{className:"h-4 w-24"}):null,z=x?x(i):i&&i.length>0&&!u&&!p&&!w?P==="area"?jsxRuntime.jsx(dM,{points:i,gradientId:R,tone:T,className:m?"opacity-30":""}):jsxRuntime.jsx(iM,{points:i,ariaLabel:`${e} trend`,className:m?"opacity-30":""}):u&&i!==void 0?jsxRuntime.jsx(U,{className:"h-5 w-16"}):null,W=S&&!u&&!p?jsxRuntime.jsx("div",{className:"text-text-secondary",style:oM,children:S}):null;return jsxRuntime.jsxs("section",{className:tailwindMerge.twMerge("flex min-w-0",d==="horizontal"?`items-center ${E.gap}`:`flex-col ${E.gap}`,f&&"cursor-pointer hover:bg-background-muted rounded-lg px-3 py-2 -mx-3 -my-2 transition-colors",g),"aria-labelledby":`kpi-${e}`,onClick:f,children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("h3",{id:`kpi-${e}`,className:tailwindMerge.twMerge(nr(E.label,"text-text-secondary truncate"),y),children:u?jsxRuntime.jsx(U,{className:"h-4 w-24"}):e}),c&&!u&&jsxRuntime.jsx(V,{name:"Question",size:12,className:"text-text-secondary cursor-help","aria-label":"Help"})]}),jsxRuntime.jsxs("div",{className:"flex items-baseline gap-2",children:[jsxRuntime.jsx("output",{className:nr(k?void 0:E.value,p?"text-feedback-error":"text-text-primary"),"aria-label":`Value: ${t}`,children:M}),s&&!u&&!p&&jsxRuntime.jsx(dt,{variant:s.tone||"neutral",size:"sm",children:s.value})]}),W,(F||z)&&jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[F,z]})]})}var yy={xs:"gap-2",sm:"gap-3",md:"gap-4",lg:"gap-6",xl:"gap-8"},vy={start:"items-start",center:"items-center",stretch:"items-stretch"};function Cy(e){if(typeof e=="number")return `grid-cols-${e}`;let t=[];return e.base!==void 0&&t.push(`grid-cols-${e.base}`),e.sm!==void 0&&t.push(`sm:grid-cols-${e.sm}`),e.md!==void 0&&t.push(`md:grid-cols-${e.md}`),e.lg!==void 0&&t.push(`lg:grid-cols-${e.lg}`),e.xl!==void 0&&t.push(`xl:grid-cols-${e.xl}`),e["2xl"]!==void 0&&t.push(`2xl:grid-cols-${e["2xl"]}`),t.join(" ")}function Op({children:e,cols:t={base:1,sm:2,md:3,lg:4},gap:r="md",align:o="stretch",equalizeHeights:n=true,header:a,isLoading:i,scrollOnMobile:s=false,scrollItemMinWidth:c="140px",className:l}){let d=i?Je__namespace.default.Children.map(e,p=>Je__namespace.default.isValidElement(p)&&p.type&&typeof p.type!="string"&&"displayName"in p.type?Je__namespace.default.cloneElement(p,{isLoading:true}):p):e,u=s?Je__namespace.default.Children.map(d,p=>jsxRuntime.jsx("div",{className:"shrink-0",style:{minWidth:c},children:p})):d,m=s?tailwindMerge.twMerge("flex overflow-x-auto pb-2 -mb-2",yy[r],"sm:grid sm:overflow-visible sm:pb-0 sm:-mb-0",Cy({...typeof t=="object"?t:{base:t},base:void 0}),vy[o],n&&"sm:auto-rows-fr"):tailwindMerge.twMerge("grid",Cy(t),yy[r],vy[o],n&&"auto-rows-fr","w-full");return jsxRuntime.jsxs("section",{className:tailwindMerge.twMerge("w-full",l),"aria-label":"Key metrics",children:[a&&jsxRuntime.jsx("div",{className:"mb-4",children:a}),jsxRuntime.jsx("div",{className:m,children:s?u:d})]})}Op.displayName="KpiGroup";function Ny({items:e,renderItem:t,selectedId:r,onSelect:o,onHoverChange:n,isLoading:a=false,loadingState:i,error:s=null,renderLoadingSkeleton:c,loadingSkeletonCount:l=5,emptyMessage:d="No results found.",variant:u="relaxed",showDividers:m=true,onLoadMore:p,hasMore:f=false,enableVirtualization:g,estimatedItemSize:y=60,loadingIndicator:b,"aria-label":h,className:x="",style:v}){let[S,w]=Je.useState(null),P=Je.useRef(null),T=Je.useRef(new Map),{scrollRef:k,loadMoreRef:R,virtualizer:I,virtualItems:E,isLoadingMore:L,computedLoadingState:M}=qo({items:e,onLoadMore:p,hasMore:f,isLoading:a,loadingState:i,enableVirtualization:g,estimatedItemSize:y,overscan:5}),F=k??P,z=Je.useCallback((C,D)=>{o?.(C,D);},[o]),W=Je.useCallback((C,D)=>{w(C),n?.(C,D);},[n]),X=Je.useCallback((C,D)=>{let B=C?.id;return typeof B=="string"&&B?B:`item-${D}`},[]),Z=Je.useCallback(C=>{if(!F.current||e.length===0)return;let D=document.activeElement,B=e.findIndex(($,se)=>{let He=X($,se),te=T.current.get(He);return te&&(te===D||te.contains(D))}),Y=B;switch(C.key){case "ArrowDown":C.preventDefault(),Y=B===-1?0:Math.min(B+1,e.length-1);break;case "ArrowUp":C.preventDefault(),Y=B===-1?0:Math.max(B-1,0);break;case "Home":C.preventDefault(),Y=0;break;case "End":C.preventDefault(),Y=e.length-1;break;default:return}let re=X(e[Y],Y);T.current.get(re)?.focus();},[e,X,F]),O=["flex flex-col","bg-background-surface","focus:outline-none focus:ring-2 focus:ring-border-focus focus:ring-offset-2"],j={dense:"gap-0",relaxed:"gap-0"},H=m?"divide-y divide-border-muted":"",A=[...O,j[u],H,x].filter(Boolean).join(" ");if(M==="loading"||a&&e.length===0){let C=c?jsxRuntime.jsx(jsxRuntime.Fragment,{children:Array.from({length:l}).map((D,B)=>jsxRuntime.jsx("div",{children:c()},`skeleton-${B}`))}):jsxRuntime.jsx(zf,{count:l,className:"space-y-0",children:jsxRuntime.jsxs("div",{className:"flex items-center gap-3 px-4 py-3",children:[jsxRuntime.jsx(U,{width:16,height:16,variant:"circle"}),jsxRuntime.jsxs("div",{className:"flex-1 space-y-2",children:[jsxRuntime.jsx(U,{width:"75%",height:16}),jsxRuntime.jsx(U,{width:"50%",height:14})]}),jsxRuntime.jsx(U,{width:60,height:20})]})});return jsxRuntime.jsx("div",{ref:F,className:A,style:v,role:"listbox","aria-label":h,"aria-busy":"true","aria-live":"polite",children:C})}if(s)return jsxRuntime.jsx("div",{ref:F,className:A,style:v,role:"listbox","aria-label":h,"aria-live":"polite",children:jsxRuntime.jsx("div",{className:"p-4 text-center text-feedback-error-text",children:s})});if(e.length===0)return jsxRuntime.jsx("div",{ref:F,className:A,style:v,role:"listbox","aria-label":h,"aria-live":"polite",children:jsxRuntime.jsx("div",{className:"p-4 text-center text-text-secondary",children:d})});let N=I?E?.map(C=>({virtualItem:C,item:e[C.index],index:C.index}))||[]:e.map((C,D)=>({item:C,index:D,virtualItem:null}));return jsxRuntime.jsxs("div",{ref:F,className:A,style:{...v,...p&&{overflow:"auto",height:v?.height||"600px"}},role:"listbox","aria-label":h,"aria-live":"polite",onKeyDown:Z,tabIndex:0,children:[I&&jsxRuntime.jsxs("div",{style:{height:`${I.getTotalSize()}px`,width:"100%",position:"relative"},children:[N.map(({virtualItem:C,item:D,index:B})=>{if(!C)return null;let Y=X(D,B),re=r===Y,ue=S===Y,$={id:Y,role:"option","aria-selected":re,"aria-current":re?"page":void 0,tabIndex:re||r==null&&B===0?0:-1,onClick:se=>z(se,D),onMouseEnter:se=>W(se,D),onMouseLeave:se=>W(null),onFocus:se=>W(se,D),onBlur:se=>W(null),ref:se=>{se?T.current.set(Y,se):T.current.delete(Y);}};return jsxRuntime.jsx("div",{"data-index":C.index,ref:I.measureElement,style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${C.start}px)`},children:t({item:D,index:B,isSelected:re,isHovered:ue,rowProps:$})},Y)}),p&&f&&jsxRuntime.jsx("div",{ref:R,style:{position:"absolute",top:`${I.getTotalSize()}px`,left:0,width:"100%",height:1,pointerEvents:"none"}}),L&&jsxRuntime.jsx("div",{style:{position:"absolute",top:`${I.getTotalSize()}px`,left:0,width:"100%"},children:b||jsxRuntime.jsx(Ir,{state:"loading-more"})})]}),!I&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[N.map(({item:C,index:D})=>{let B=X(C,D),Y=r===B,re=S===B,ue={id:B,role:"option","aria-selected":Y,"aria-current":Y?"page":void 0,tabIndex:Y||r==null&&D===0?0:-1,onClick:$=>z($,C),onMouseEnter:$=>W($,C),onMouseLeave:$=>W(null),onFocus:$=>W($,C),onBlur:$=>W(null),ref:$=>{$?T.current.set(B,$):T.current.delete(B);}};return jsxRuntime.jsx("div",{children:t({item:C,index:D,isSelected:Y,isHovered:re,rowProps:ue})},B)}),p&&f&&jsxRuntime.jsx("div",{ref:R,style:{height:1}}),L&&(b||jsxRuntime.jsx(Ir,{state:"loading-more"}))]})]})}function Ty({id:e,title:t,subtitle:r,meta:o,leading:n,trailing:a,isSelected:i=false,isHovered:s=false,disabled:c=false,href:l,size:d="md",onClick:u,onMouseEnter:m,onMouseLeave:p,className:f="",style:g,piiTitleType:y,piiSubtitleType:b,piiEntity:h}){let x=()=>{!c&&u&&u(e);},v=()=>{!c&&m&&m(e);},S=()=>{!c&&p&&p(e);},P={sm:{container:"px-3 py-2 gap-2",title:"text-sm leading-tight",subtitle:"text-xs leading-tight",meta:"text-xs leading-tight",subtitleSpacing:"mt-1",metaSpacing:"mt-1"},md:{container:"px-4 py-3 gap-3",title:"text-base leading-tight",subtitle:"text-sm leading-tight",meta:"text-sm leading-tight",subtitleSpacing:"mt-1",metaSpacing:"mt-1"},lg:{container:"px-4 py-4 gap-3",title:"text-lg leading-tight",subtitle:"text-base leading-tight",meta:"text-sm leading-tight",subtitleSpacing:"mt-1",metaSpacing:"mt-1"},xl:{container:"px-5 py-5 gap-4",title:"text-xl leading-tight",subtitle:"text-base leading-tight",meta:"text-base leading-tight",subtitleSpacing:"mt-1.5",metaSpacing:"mt-1.5"}}[d],T=["flex items-center w-full text-left transition-all duration-200 ease-in-out",P.container,"border-l-2 border-l-transparent","rounded-sm",$e()],k=[s&&!i&&"bg-background-hover",i&&"bg-action-default/5 border-l-action-default shadow-sm",c&&"opacity-50 cursor-not-allowed",!c&&!i&&"hover:bg-background-hover"],R=[...T,...k,f].filter(Boolean).join(" "),I=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[n&&jsxRuntime.jsx("div",{className:"flex-shrink-0 flex items-center justify-center",children:n}),jsxRuntime.jsx("div",{className:"flex-1 min-w-0",children:jsxRuntime.jsx("div",{className:"flex items-start justify-between gap-2",children:jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsx("div",{className:`text-text-primary font-medium truncate ${P.title}`,title:typeof t=="string"?t:void 0,"data-pii-type":y&&h?y:void 0,"data-pii-entity":y&&h?h:void 0,children:t}),r&&jsxRuntime.jsx("div",{className:`text-text-secondary truncate ${P.subtitle} ${P.subtitleSpacing}`,title:typeof r=="string"?r:void 0,"data-pii-type":b&&h?b:void 0,"data-pii-entity":b&&h?h:void 0,children:r}),o&&jsxRuntime.jsx("div",{className:`text-text-secondary ${P.meta} ${P.metaSpacing}`,children:o})]})})}),a&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:a})]});return l?jsxRuntime.jsx("a",{href:l,className:R,style:g,onMouseEnter:v,onMouseLeave:S,"aria-selected":i,"aria-current":i?"page":void 0,tabIndex:c?-1:0,children:I}):jsxRuntime.jsx("button",{type:"button",className:R,style:g,onClick:x,onMouseEnter:v,onMouseLeave:S,disabled:c,"aria-selected":i,tabIndex:c?-1:0,children:I})}function Py({header:e,children:t,footer:r,width:o="md",tone:n="neutral",elevation:a="sm",showDivider:i=true,"aria-label":s,"aria-labelledby":c,className:l="",style:d}){let u={sm:"w-64",md:"w-80",lg:"w-96",xl:"w-[28rem]","2xl":"w-[32rem]",auto:"w-auto"},m={neutral:"bg-background-surface",subtle:"bg-background-subtle",brand:"bg-background-brand"},p={none:"",sm:"shadow-sm",md:"shadow-md"},f=tailwindMerge.twMerge("flex flex-col h-full",u[o],m[n],p[a],i&&"border-r border-border-muted",l);return jsxRuntime.jsxs("div",{className:f,style:d,role:"complementary","aria-label":s,"aria-labelledby":c,children:[e&&jsxRuntime.jsx("div",{className:"flex-shrink-0 sticky top-0 z-10 bg-inherit border-b border-border-muted",children:e}),jsxRuntime.jsx("div",{className:"flex-1 overflow-y-auto overflow-x-hidden",children:t}),r&&jsxRuntime.jsx("div",{className:"flex-shrink-0 border-t border-border-muted bg-inherit",children:r})]})}function hM({children:e,...t}){return jsxRuntime.jsx(reactAriaComponents.ListBox,{...t,className:Ee(t.className,"outline-0"),children:e})}function vc(){try{if(typeof process<"u"){let e=process.env.MAPBOX_ACCESS_TOKEN;if(e)return e}}catch{}try{if(typeof process<"u"){let e=process.env.NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN;if(e)return e}}catch{}try{let e=undefined.VITE_MAPBOX_ACCESS_TOKEN;if(e)return e}catch{}}function Cc(e,t){let[r,o]=Je.useState(()=>{if(typeof window>"u")return t;try{let i=window.localStorage.getItem(e);return i?JSON.parse(i):t}catch(i){return console.error(`Error reading localStorage key "${e}":`,i),t}});Je.useEffect(()=>{if(!(typeof window>"u"))try{window.localStorage.setItem(e,JSON.stringify(r));}catch(i){console.error(`Error writing to localStorage key "${e}":`,i);}},[e,r]);let n=Je.useCallback(i=>{try{o(s=>i instanceof Function?i(s):i);}catch(s){console.error(`Error setting value for localStorage key "${e}":`,s);}},[e]),a=Je.useCallback(()=>{try{typeof window<"u"&&window.localStorage.removeItem(e),o(t);}catch(i){console.error(`Error removing localStorage key "${e}":`,i);}},[e,t]);return [r,n,a]}var Gp=[{type:"navigation",position:"bottom-right",showCompass:true,showGeolocate:true,showResetZoom:true}];function Ey(e="top-right"){switch(e){case "top-left":return "absolute top-4 left-4 z-10";case "top-right":return "absolute top-4 right-4 z-10";case "bottom-left":return "absolute bottom-4 left-4 z-10";case "bottom-right":return "absolute bottom-4 right-4 z-10";default:return "absolute top-4 right-4 z-10"}}var wM="h-12 w-12 md:h-10 md:w-10 p-0 bg-background-surface hover:bg-background-hover shadow-lg border border-border";function My(e){return tailwindMerge.twMerge(wM,e)}var Ly="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJcAAACXCAYAAAAYn8l5AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABtCSURBVHgB7Z2Jkty0GoV7hlz2HcIeSPGkPCmELRC2sO8kN5+L03XmR7IlW3LbSZ+qrp7pdtuydPTvki9u3Lhx/7ASLi4uDvfv973cvXv3Dn/++efh2rVrx2vyAo899tjwThu8Hfo+1d5SLLkv2vXzzz8fnnvuucPff/99eFhw7bAi/vnnn8Pl5eWVz3IDOHewGKgnnnjiCoEgHH///vvvh8cff3z4nrbE63lb+LvFQHMe2jR2P7p2bNMe4f24Grk02LkOjCQTCfmNE3KKdLo5l1jCk08+efjtt98OP/300yAlUgRTW3RdiLkEJZOEa4hccfItuWaN5O2B1cg1daNxEHzg4wCj8koGLXVOCMbnP/zww+GZZ54ZpIoGV8eLoC3IVYNWZPDzRIncG36t5dNkZ5CKfPHFFw9//PHH4ddffz3aYi7tJGkjkXvZjCJy6/P7/bRAzaTeJblaSJO//vrr8PTTTw/2F1IMSCX5gHAtV1VzpEBJe//3v/8NNl4vKdNDKo4dM5gVhxXR21OsgWwc3l944YXBFsPglxQDfM9rjXbTDqnnhwWrkStlYJ8aag8Ekv31448/DpJK3021me9RnU7KiOhktAh9zMWaE3zVUMSWgdSAIHiRxJxQU5CmVAWPOQAMaAxrOIH1++hYtIYb92sY+o+cQT8FpBgEo/NRlaWhgVpCxOPXkFqRzL2vdSZXgGyxp556avh/KrApD692sOLxiqttyS51zGnX7skVbZnUaw5EsGjkp64P5kgub5u80q2mf+b04y5trik7KEb0UyRz20Z/x2MgGHYXYYsS9Zg7TwqRjIqrtYxHtVJ9c891TW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yi/rBx7bNiPF3drqCfiaI7S/0yAfzPgdNJKqQ+lwh1XfSmYClPT+R2b/03chQhh/fQH7Dav+EOO2oojEn8WdyuYzZbw6+e/WpX6eGYK0xR3BJhumCL/0lYS1EWShiFKXp4HOjIdwcvzNzjuNg4uobmh3lmZNljg+RHIokP7iJ+//S9/0JF4UWgALQSUifcPn+AvCxKcp8u7vR5XAiSC3WYDByQWZ1myzFUtOgbu577+f5ZPq/B5Pf+nAAAAAElFTkSuQmCC";function Sc(e){return e.selection?.mode==="single"}function hn(e){let t=[],r=o=>{o.layerId&&t.push(o.layerId);for(let n of o.children??[])r(n);};return r(e),t}function Wp(e,t){let r=hn(e);if(r.length===0)return "unchecked";let o=0;for(let n of r)t(n)&&o++;return o===0?"unchecked":Sc(e)||o===r.length?"checked":"indeterminate"}var la=(e,t)=>Object.fromEntries(e.map(r=>[r,t]));function By(e,t){let r=hn(e);if(!(Wp(e,t)!=="checked"))return la(r,false);if(Sc(e)){let n=e.children?.[0],a=n?hn(n):[];return {...la(r,false),...la(a,true)}}return la(r,true)}function Vy(e,t,r){let o=e.children?.find(s=>s.id===t);if(!o)return {};let n=hn(e),a=hn(o);return a.length>0&&a.every(r)?e.selection?.mode==="single"&&e.selection.allowNone?la(a,false):{}:{...la(n,false),...la(a,true)}}function Up(e,t){for(let r of e){if(r.id===t)return r;let o=Up(r.children??[],t);if(o)return o}}function Kp(e,t){for(let r of e){if(r.children?.some(n=>n.id===t))return r;let o=Kp(r.children??[],t);if(o)return o}}function zy(e){let t=new Set,r=new Set,o=new Set,n=(i,s)=>{i&&(s.has(i)?o.add(i):s.add(i));},a=i=>{n(i.id,t),n(i.layerId,r);for(let s of i.children??[])a(s);};for(let i of e)a(i);return [...o]}function Hy(e){return e.map(t=>({id:t.id,label:t.label,...t.children?.length?{children:Hy(t.children)}:{}}))}function Gy(e){let t=e.length;for(let r of e)r.children?.length&&(t=Math.max(t,Gy(r.children)));return t}function Oy({type:e,color:t}){let r=t?{backgroundColor:t}:void 0;switch(e){case "line":return jsxRuntime.jsx("span",{className:"inline-block h-0.5 w-4 flex-shrink-0 rounded-full",style:r});case "polygon":return jsxRuntime.jsx("span",{className:"inline-block h-2.5 w-3.5 flex-shrink-0 rounded-sm border border-border",style:r});case "pin":return jsxRuntime.jsx("span",{className:"inline-block h-2.5 w-2.5 flex-shrink-0 rotate-45 rounded-full rounded-bl-none border border-border",style:r});default:return jsxRuntime.jsx("span",{className:"inline-block h-2.5 w-2.5 flex-shrink-0 rounded-full border border-border",style:r})}}function NM({isSelected:e,onPress:t,label:r}){return jsxRuntime.jsx("button",{type:"button",role:"radio","aria-checked":e,"aria-label":r,onClick:t,className:`grid h-4 w-4 flex-shrink-0 cursor-pointer place-items-center rounded-full border-2 bg-transparent p-0 ${e?"border-action-primary":"border-border-default"}`,children:e?jsxRuntime.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-action-primary"}):null})}function kM(){return jsxRuntime.jsx("svg",{width:12,height:12,viewBox:"0 0 12 12",fill:"none","aria-hidden":"true",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",className:"flex-shrink-0 text-text-secondary",children:jsxRuntime.jsx("path",{d:"M4.5 2.5 8 6l-3.5 3.5"})})}var TM=41,PM=44,RM=132,EM=360;function Wy({tree:e,layers:t,onVisibilityChange:r}){let o=new Map(t.map(s=>[s.id,s])),n=s=>{let c=o.get(s);return !!c&&c.visible!==false};if(process.env.NODE_ENV!=="production"){let s=zy(e);s.length>0&&console.warn(`[LayersPanel] Duplicate id(s) in \`layerTree\`: ${s.join(", ")}. Row lookups and pane keys resolve to the first match, so the later entry is unreachable. Node ids must be unique among node ids, and layer ids unique among layer ids.`);let c=e.flatMap(hn).filter(l=>!o.has(l));c.length>0&&console.warn(`[LayersPanel] \`layerTree\` references layer id(s) not present in \`layers\`: ${c.join(", ")}. Those rows render as hidden and cannot be turned on.`);}let a=Hy(e),i=Math.min(EM,Math.max(RM,Gy(e)*TM+PM));return jsxRuntime.jsx("div",{className:"overflow-hidden",style:{height:i},"data-layers-panel":"",children:jsxRuntime.jsx(Fa,{items:a,ariaLabel:"Map layers",animated:false,width:null,sticky:false,theme:{background:"transparent",borderColor:"transparent"},className:"h-full w-full",renderRow:({item:s,hasChildren:c,select:l})=>{let d=Up(e,s.id);if(!d)return null;let u=Wp(d,n),p=(d.layerId?o.get(d.layerId):void 0)?.legend,f=hn(d),g=f.filter(n).length,y=c&&u==="indeterminate"?`${g} of ${f.length} on`:null,b=Kp(e,d.id),h=!!b&&Sc(b),x=w=>{Object.keys(w).length>0&&r?.(w);},v=h?jsxRuntime.jsx(NM,{isSelected:u!=="unchecked",onPress:()=>x(Vy(b,d.id,n)),label:d.label}):jsxRuntime.jsx(Xr,{isSelected:u==="checked",isIndeterminate:u==="indeterminate",onChange:()=>x(By(d,n)),"aria-label":d.label}),S=jsxRuntime.jsxs("span",{className:"flex min-w-0 flex-1 flex-col text-left",children:[jsxRuntime.jsx("span",{className:`truncate text-sm ${u==="unchecked"?"text-text-secondary":"text-text-primary"}`,children:d.label}),y?jsxRuntime.jsx("span",{className:"text-[10px] text-text-secondary",children:y}):null]});return jsxRuntime.jsxs("div",{className:"edges-layers-panel__row flex cursor-default items-center gap-2 py-2.5",children:[v,c?jsxRuntime.jsxs("button",{type:"button",onClick:l,className:"flex min-w-0 flex-1 cursor-pointer items-center gap-2 border-0 bg-transparent p-0 text-left","aria-label":`Open ${d.label}`,children:[p?jsxRuntime.jsx(Oy,{type:p.swatch,color:p.color}):null,S,jsxRuntime.jsx(kM,{})]}):jsxRuntime.jsxs("span",{className:"flex min-w-0 flex-1 items-center gap-2",children:[p?jsxRuntime.jsx(Oy,{type:p.swatch,color:p.color}):null,S]})]})}})})}function yn({position:e="top-right",className:t,style:r,children:o}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(Ey(e),t),style:r,children:o})}function Dr({icon:e,iconSize:t=24,onPress:r,isDisabled:o=false,className:n,iconClassName:a="text-text-primary",variant:i="secondary",isActive:s=false,ariaLabel:c,iconWeight:l="regular",...d}){let u=tailwindMerge.twMerge(My(),s&&"bg-action-brand hover:bg-action-brand-hover border-action-brand",n),m=tailwindMerge.twMerge(a,s&&"text-text-inverse");return jsxRuntime.jsx(_,{...d,className:u,onPress:r,variant:i,size:"sm",isDisabled:o,"aria-label":c,"aria-pressed":s||void 0,type:"button",children:jsxRuntime.jsx(V,{name:e,size:t,className:m,weight:l})})}var FM=e=>[{id:"streets",name:"Streets",description:"Standard street map with traffic data",preview:e?Iy:Fy},{id:"satellite",name:"Satellite",description:"Aerial imagery with street labels",preview:Ay},{id:"neutral",name:"Neutral",description:"Clean design with light/dark variants",preview:e?Ly:Dy}];function BM({type:e,color:t}){let r="inline-block",o=t?{backgroundColor:t}:{};switch(e){case "dot":return jsxRuntime.jsx("span",{className:`${r} h-3 w-3 rounded-full border border-border`,style:o});case "line":return jsxRuntime.jsx("span",{className:`${r} h-0.5 w-6 rounded-full`,style:o});case "polygon":return jsxRuntime.jsx("span",{className:`${r} h-3 w-4 rounded-sm border border-border`,style:o});case "pin":return jsxRuntime.jsx("span",{className:`${r} h-3 w-3 rounded-full rounded-bl-none border border-border transform rotate-45`,style:o});default:return null}}function Yy({position:e="bottom-left",className:t,style:r,currentMapType:o="streets",onMapTypeChange:n,layers:a=[],onLayerToggle:i,onClearAll:s,onLayerVariantChange:c,layerTree:l,onVisibilityChange:d}){let{isDarkTheme:u}=Yt(),{isMobile:m}=or(),[p,f]=Je.useState(false),g=FM(u),y=x=>{n?.(x);},b=a.filter(x=>x.legend),h=jsxRuntime.jsxs("div",{className:m?"space-y-6 pb-6":"space-y-6",children:[jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("div",{className:"text-sm font-semibold text-text-primary mb-3",children:"Map type"}),jsxRuntime.jsx("div",{className:"grid grid-cols-3 gap-3",children:g.map(x=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>y(x.id),className:"flex flex-col items-center space-y-2 p-3 rounded-lg text-center hover:bg-background-muted transition-colors border border-transparent "+(o===x.id?"bg-background-muted border-border":"hover:border-border"),children:[jsxRuntime.jsx("div",{className:"w-12 h-12 rounded-lg overflow-hidden bg-background-surface "+(o===x.id?"border-2 border-action-default":"border border-border-default"),children:jsxRuntime.jsx("img",{src:x.preview,alt:`${x.name} map preview`,className:"w-full h-full object-cover"})}),jsxRuntime.jsx("div",{className:"text-sm "+(o===x.id?"font-bold text-text-primary":"font-normal text-text-secondary"),children:x.name})]},x.id))})]}),l?.length?jsxRuntime.jsxs("div",{children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between mb-3",children:[jsxRuntime.jsx("div",{className:"text-sm font-semibold text-text-primary",children:"Map details"}),s&&jsxRuntime.jsx("button",{type:"button",onClick:s,className:"text-xs text-text-secondary hover:text-text-primary transition-colors",children:"Clear all"})]}),jsxRuntime.jsx(Wy,{tree:l,layers:a,onVisibilityChange:d})]}):null,!l?.length&&b.length>0&&jsxRuntime.jsxs("div",{children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between mb-3",children:[jsxRuntime.jsx("div",{className:"text-sm font-semibold text-text-primary",children:"Map details"}),s&&jsxRuntime.jsx("button",{type:"button",onClick:s,className:"text-xs text-text-secondary hover:text-text-primary transition-colors",children:"Clear all"})]}),jsxRuntime.jsx("div",{className:"space-y-2",children:b.map(x=>{let v=x.visible!==false,S=x.legend?.variants;return jsxRuntime.jsxs("div",{className:S?"space-y-1.5":void 0,children:[jsxRuntime.jsx(Xr,{isSelected:v,onChange:()=>i?.(x.id),children:jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[x.legend&&jsxRuntime.jsx(BM,{type:x.legend.swatch,color:x.legend.color}),jsxRuntime.jsx("span",{className:"text-sm text-text-primary",children:x.legend?.label})]})}),S&&jsxRuntime.jsx("div",{className:"pl-6",children:jsxRuntime.jsx(Lo,{"aria-label":`${x.legend?.label} mode`,size:"sm",isDisabled:!v,items:S.options.map(w=>({...w,value:w.id})),renderItem:w=>w.label,selectedKey:S.selectedId,onSelectionChange:w=>c?.(x.id,String(w))})})]},x.id)})})]})]});return jsxRuntime.jsx(yn,{position:e,className:t,style:r,children:jsxRuntime.jsx("div",{className:"relative",children:m?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Dr,{icon:"Stack",ariaLabel:"Map layers and settings",onPress:()=>f(true)}),jsxRuntime.jsx(bt,{isOpen:p,onClose:()=>f(false),title:"Map layers",animationVariant:"scale",children:h})]}):jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{children:[jsxRuntime.jsx(Dr,{icon:"Stack",ariaLabel:"Map layers and settings"}),jsxRuntime.jsx(gt,{placement:"top start",children:jsxRuntime.jsx(reactAriaComponents.Dialog,{"aria-label":"Map layers and settings",className:"p-4 min-w-80 bg-background-surface border border-border rounded-lg shadow-xl focus:outline-none focus:ring-0",children:h})})]})})})}function Xy({position:e="top-right",className:t,style:r,onToggle:o,isActive:n=false}){return jsxRuntime.jsx(yn,{position:e,className:tailwindMerge.twMerge("md:hidden",t),style:r,children:jsxRuntime.jsx(Dr,{icon:"ListDashes",onPress:o,isActive:n,ariaLabel:n?"Hide list view":"Show list view"})})}var HM={sm:"gap-2",md:"gap-4",lg:"gap-6"};function Nc({position:e="top-right",className:t,style:r,children:o,orientation:n="vertical",spacing:a="md"}){return jsxRuntime.jsx(yn,{position:e,style:r,children:jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex",n==="vertical"?"flex-col":"flex-row",HM[a],t),children:o})})}function qy({mapRef:e,position:t="bottom-right",className:r,style:o,showCompass:n=true,showGeolocate:a=true,showResetZoom:i=true,onResetZoom:s,onCompassClick:c,onGeolocateClick:l}){let[d,u]=Je.useState(false),m=Je.useRef(true);Je.useEffect(()=>()=>{m.current=false;},[]);let p=()=>{c?c():e.current&&e.current.easeTo({bearing:0,duration:500});},f=async()=>{if(!d)if(l)l();else {if(!navigator.geolocation){console.warn("Geolocation is not supported by this browser.");return}if(navigator.permissions?.query)try{if((await navigator.permissions.query({name:"geolocation"})).state==="denied"){console.warn("Geolocation permission was previously denied. Please enable location services in your browser settings.");return}}catch{}u(true),navigator.geolocation.getCurrentPosition(x=>{if(!m.current)return;let{latitude:v,longitude:S}=x.coords;e.current&&e.current.flyTo({center:[S,v],zoom:15,duration:2e3}),u(false);},x=>{if(m.current){switch(console.warn("Geolocation error:",{code:x.code,message:x.message,PERMISSION_DENIED:x.PERMISSION_DENIED,POSITION_UNAVAILABLE:x.POSITION_UNAVAILABLE,TIMEOUT:x.TIMEOUT}),x.code){case x.PERMISSION_DENIED:console.warn("Location access denied. Please enable location services in your browser settings.");break;case x.POSITION_UNAVAILABLE:console.warn("Location information unavailable.");break;case x.TIMEOUT:console.warn("Location request timed out.");break;default:console.warn("Error getting location:",x.message);break}u(false);}},{enableHighAccuracy:true,timeout:1e4,maximumAge:0});}};if(!n&&!a&&!i)return null;let g=!i&&n,y=!i&&!n&&a,b=!a&&n;return jsxRuntime.jsxs(Nc,{position:t,className:r,style:o,spacing:"sm",children:[i&&jsxRuntime.jsx(Dr,{icon:"ArrowsOut",onPress:s,ariaLabel:"Reset zoom to show all points",className:tailwindMerge.twMerge(!(!a&&!n&&i)&&"rounded-b-none",n&&"border-b-0")}),n&&jsxRuntime.jsx(Dr,{icon:"Compass",onPress:p,ariaLabel:"Reset map orientation",className:tailwindMerge.twMerge(!g&&"rounded-t-none border-t-0",!b&&"rounded-b-none border-b-0")}),a&&jsxRuntime.jsx(Dr,{icon:d?"Spinner":"NavigationArrow",onPress:f,isDisabled:d,ariaLabel:"Go to my location",iconClassName:tailwindMerge.twMerge("text-text-primary",d&&"animate-spin"),className:tailwindMerge.twMerge(!y&&"rounded-t-none border-t-0",!y&&n&&"lg:rounded-t lg:border-t")})]})}function $y({position:e="top-left",className:t,style:r,onSearch:o,placeholder:n="Search places...",showSearchInput:a=true}){let[i,s]=Je.useState(false),[c,l]=Je.useState(""),d=()=>{a?s(!i):o&&o("");},u=p=>{p.preventDefault(),o&&c.trim()&&(o(c.trim()),s(false));},m=p=>{p.key==="Escape"&&s(false);};return jsxRuntime.jsx(yn,{position:e,className:t,style:r,children:jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx(Dr,{icon:"MagnifyingGlass",onPress:d,ariaLabel:"Search"}),i&&a&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("absolute top-12 left-0 min-w-64","bg-background-surface border border-border rounded-lg shadow-xl p-3"),children:jsxRuntime.jsx("form",{onSubmit:u,children:jsxRuntime.jsxs("div",{className:"flex items-center space-x-2",children:[jsxRuntime.jsx("input",{type:"text",value:c,onChange:p=>l(p.target.value),onKeyDown:m,placeholder:n,className:tailwindMerge.twMerge("flex-1 px-3 py-2 text-sm rounded border","bg-background border-border text-text-primary placeholder:text-text-secondary","focus:outline-none focus:ring-2 focus:ring-action-brand"),autoFocus:true}),jsxRuntime.jsx(_,{type:"submit",variant:"primary",size:"sm",className:"px-3 py-2",children:"Search"})]})})})]})})}var YM={navigation:"bottom-right",layers:"bottom-left",search:"top-left",list:"top-right",custom:"top-right"};function Jp(e){return e.position??YM[e.type]}function ev(e,t,r){let o=Jp(e),n=e.id??`${e.type}-${t}`;switch(e.type){case "navigation":{let i=e.showResetZoom!==false&&r.showResetButton;return jsxRuntime.jsx(qy,{mapRef:r.mapRef,position:o,showCompass:e.showCompass,showGeolocate:e.showGeolocate,showResetZoom:i,onResetZoom:e.onResetZoom,onCompassClick:e.onCompassClick,onGeolocateClick:e.onGeolocateClick,style:e.style,className:e.className},n)}case "layers":return jsxRuntime.jsx(Yy,{position:o,currentMapType:e.currentMapType,onMapTypeChange:e.onMapTypeChange,layers:e.layers??r.layers,onLayerToggle:e.onLayerToggle,onClearAll:e.onClearAll,onLayerVariantChange:e.onLayerVariantChange,layerTree:e.layerTree,onVisibilityChange:e.onVisibilityChange,style:e.style,className:e.className},n);case "search":return jsxRuntime.jsx($y,{position:o,onSearch:e.onSearch,placeholder:e.placeholder,showSearchInput:e.showSearchInput,style:e.style,className:e.className},n);case "list":return jsxRuntime.jsx(Xy,{position:o,onToggle:e.onToggle,isActive:e.isActive,style:e.style,className:e.className},n);case "custom":return jsxRuntime.jsx("div",{children:e.render(r)},n);default:return null}}function Xp(e,t){let r=e.reduce((n,a,i)=>{let s=Jp(a);return n[s]||(n[s]=[]),n[s].push({control:a,index:i}),n},{}),o=[];for(let[n,a]of Object.entries(r)){if(a.length===1){o.push(ev(a[0].control,a[0].index,t));continue}let i={position:"static",top:"auto",right:"auto",bottom:"auto",left:"auto"};o.push(jsxRuntime.jsx(Nc,{position:n,spacing:"sm",children:a.map(({control:s,index:c})=>{let l={...s,style:{...s.style,...i}};return ev(l,c,t)})},`group-${n}`));}return o}var jp={vector:e=>({kind:"vector",...e}),geojson:e=>({kind:"geojson",...e}),customPins:e=>({kind:"customPins",...e}),raster:e=>({kind:"raster",...e}),clusteredVector:e=>({kind:"clusteredVector",...e})};function qp(e){return e.kind==="vector"}function Qp(e){return e.kind==="geojson"}function Zp(e){return e.kind==="customPins"}function _p(e){return e.kind==="raster"}var ls=(e,t)=>({id:e,label:t,kind:"sequential",hint:"Low \u2192 High",stops:()=>gi(e),toColorSpec:({by:r,scale:o="auto"})=>({by:r,palette:"sequential",scheme:e,scale:o})}),$p=(e,t)=>({id:e,label:t,kind:"diverging",hint:"Low \u2192 Mid \u2192 High",stops:()=>bi(e),toColorSpec:({by:r,scale:o="auto",center:n=0})=>({by:r,palette:"diverging",scheme:e,center:n,scale:o})}),Tc=[ls("viridis","Viridis"),ls("magma","Magma"),ls("cerulean","Cerulean"),ls("forest","Forest"),ls("rose","Rose")],Pc=[$p("redYellowBlue","Red \u2192 Blue"),$p("orangeYellowSeafoam","Orange \u2192 Seafoam"),$p("redBlue","Red / Blue")],Rc={id:"categorical",label:"Categorical",kind:"categorical",hint:"Distinct per value",stops:()=>Eo(),toColorSpec:({by:e})=>({by:e,palette:"categorical",scale:"auto"})},cs=[...Tc,...Pc,Rc];function em(e){return cs.find(t=>t.id===e)}function tm(e){return cs.filter(t=>t.kind===e)}function ov(e){return !e.includes("{z}")}function ds(e,t="streets"){let r=[...e].sort((o,n)=>(o.z??0)-(n.z??0));return jsxRuntime.jsx(jsxRuntime.Fragment,{children:r.map(o=>{if(!o.visible&&o.visible!==void 0)return null;switch(o.kind){case "vector":return jsxRuntime.jsx(XM,{spec:o,mapType:t},o.id);case "geojson":return jsxRuntime.jsx(qM,{spec:o,mapType:t},o.id);case "customPins":return jsxRuntime.jsx(QM,{spec:o,mapType:t},o.id);case "raster":return jsxRuntime.jsx(ZM,{spec:o},o.id);case "clusteredVector":return jsxRuntime.jsx(jM,{spec:o,mapType:t},o.id);default:return console.warn("[Layers] Unknown layer kind:",o.kind),null}})})}function XM({spec:e,mapType:t}){let{colorMode:r}=Yt(),o=Je.useMemo(()=>{let c=av(e.style,e.renderAs,r,t);if(e.hideChipWhen&&e.renderAs==="circle"){let l=c,d=l["circle-opacity"]??1,u=l["circle-stroke-opacity"]??1;return {...c,"circle-opacity":["case",e.hideChipWhen,0,d],"circle-stroke-opacity":["case",e.hideChipWhen,0,u]}}return c},[e.style,e.renderAs,e.hideChipWhen,r,t]),n=Je.useMemo(()=>({visibility:e.visible===false?"none":"visible"}),[e.visible]),a={id:e.id,type:nv(e.renderAs),"source-layer":e.sourceLayer,paint:o,layout:n};e.filter!==void 0&&(a.filter=e.filter),e.minZoom!==void 0&&(a.minzoom=e.minZoom),e.maxZoom!==void 0&&(a.maxzoom=e.maxZoom);let i=ov(e.tileset),s={id:`${e.id}-source`,type:"vector"};return e.promoteId!==void 0&&(s.promoteId=e.promoteId),i?s.url=e.tileset:(s.tiles=[e.tileset],s.minzoom=0,s.maxzoom=22),jsxRuntime.jsx(lL.Source,{...s,children:jsxRuntime.jsx(lL.Layer,{...a})},`${e.tileset}:${e.renderAs}`)}function jM({spec:e}){let{colorMode:t,isDarkTheme:r}=Yt(),o=1.25,n=9,a=3,i=n*1.4,s=.2,c=[0,5],l=Je.useMemo(()=>r?{clusters:e.clusterStyle?.color?Wr(e.clusterStyle.color):"#000000",shadow:e.clusterStyle?.shadowColor||"rgba(0, 0, 0, 0.5)",point:{fill:e.pointStyle?.color?Wr(e.pointStyle.color):"#000000",stroke:e.pointStyle?.borderColor||"#ffffff",shadow:"rgba(0, 0, 0, 0.5)"},text:{onCluster:"#ffffff"},selected:{fill:e.selectedStyle?.color?Wr(e.selectedStyle.color):"#444ae1"}}:{clusters:e.clusterStyle?.color?Wr(e.clusterStyle.color):"#000000",shadow:e.clusterStyle?.shadowColor||"rgba(0, 0, 0, 0.3)",point:{fill:e.pointStyle?.color?Wr(e.pointStyle.color):"#000000",stroke:e.pointStyle?.borderColor||"#ffffff",shadow:"rgba(0, 0, 0, 0.3)"},text:{onCluster:"#ffffff"},selected:{fill:e.selectedStyle?.color?Wr(e.selectedStyle.color):"#444ae1"}},[r,t,e.clusterStyle,e.pointStyle,e.selectedStyle]),d=10,u=30,m=Math.log(2),p=Math.log(2e3),f=(e.clusterStyle?.sizes?.length??0)>0,g=Je.useMemo(()=>f?e.clusterStyle.sizes.map(({threshold:S,radius:w})=>({threshold:S,radius:w,color:l.clusters})):[{threshold:30,radius:20,color:l.clusters},{threshold:200,radius:35,color:l.clusters},{threshold:1e3,radius:50,color:l.clusters}],[f,e.clusterStyle?.sizes,l.clusters]),y=S=>f?["step",["get","point_count"],S[0].radius,...S.flatMap(({threshold:w,radius:P})=>[w,P])]:["interpolate",["linear"],["ln",["max",2,["get","point_count"]]],m,d,p,u],b=S=>f?["step",["get","point_count"],S[0].radius*o,...S.flatMap(({threshold:w,radius:P})=>[w,P*o])]:["interpolate",["linear"],["ln",["max",2,["get","point_count"]]],m,d*o,p,u*o],h=ov(e.tileset),x={id:`${e.id}-source`,type:"vector"};h?x.url=e.tileset:(x.tiles=[e.tileset],x.minzoom=0,x.maxzoom=22);let v=Je.useMemo(()=>{let S=e.pointStyle?.radius??n,w=e.pointStyle?.borderWidth??a,P=e.selectedStyle?.radius??n*1.5,T=k=>{let R={...k};return e.minZoom!==void 0&&(R.minzoom=e.minZoom),e.maxZoom!==void 0&&(R.maxzoom=e.maxZoom),R};return [T({id:`${e.id}-cluster-shadows`,type:"circle","source-layer":e.sourceLayer,filter:["==",["get","cluster"],true],paint:{"circle-radius":b(g),"circle-color":l.shadow,"circle-blur":.5,"circle-translate":[0,8]}}),T({id:`${e.id}-points-shadow`,type:"circle","source-layer":e.sourceLayer,filter:["all",["!=",["get","cluster"],true],["!=",["get","id"],e.selectedId||"selected"]],paint:{"circle-radius":i,"circle-color":l.point.shadow,"circle-blur":s,"circle-translate":c}}),T({id:`${e.id}-clusters`,type:"circle","source-layer":e.sourceLayer,filter:["==",["get","cluster"],true],paint:{"circle-radius":y(g),"circle-color":["step",["get","point_count"],g[0].color,...g.flatMap(({threshold:k,color:R})=>[k,R])]}}),T({id:`${e.id}-cluster-count`,type:"symbol","source-layer":e.sourceLayer,filter:["==",["get","cluster"],true],layout:{"text-field":["case",["has","point_count_abbreviated"],["get","point_count_abbreviated"],["to-string",["get","point_count"]]],"text-font":["DIN Offc Pro Medium","Arial Unicode MS Bold"],"text-size":14,"text-offset":[0,.1]},paint:{"text-color":l.text.onCluster}}),T({id:`${e.id}-points`,type:"circle","source-layer":e.sourceLayer,filter:["all",["!=",["get","cluster"],true],["!=",["get","id"],e.selectedId||"selected"]],paint:{"circle-radius":S,"circle-color":l.point.fill,"circle-stroke-width":w,"circle-stroke-color":l.point.stroke}}),T({id:`${e.id}-selected-point`,type:"circle","source-layer":e.sourceLayer,filter:["==",["get","id"],e.selectedId||"selected"],paint:{"circle-radius":P,"circle-color":l.selected.fill,"circle-stroke-width":w,"circle-stroke-color":"#ffffff"}}),...e.pointStyle?.icon?[T({id:`${e.id}-points-icon`,type:"symbol","source-layer":e.sourceLayer,filter:["all",["!=",["get","cluster"],true],["!=",["get","id"],e.selectedId||"selected"]],layout:{"icon-image":e.pointStyle.icon.name,"icon-size":tv(S,e.pointStyle.icon.size),"icon-allow-overlap":true,"icon-ignore-placement":true}}),T({id:`${e.id}-selected-point-icon`,type:"symbol","source-layer":e.sourceLayer,filter:["==",["get","id"],e.selectedId||"selected"],layout:{"icon-image":e.pointStyle.icon.name,"icon-size":tv(P,e.pointStyle.icon.size),"icon-allow-overlap":true,"icon-ignore-placement":true}})]:[]]},[e.id,e.sourceLayer,e.selectedId,e.minZoom,e.maxZoom,e.pointStyle,e.selectedStyle,g,l,n,a,i,s]);return jsxRuntime.jsx(lL.Source,{...x,children:v.map(S=>jsxRuntime.jsx(lL.Layer,{...S},S.id))},e.tileset)}function qM({spec:e,mapType:t}){let{colorMode:r}=Yt(),o=Je.useMemo(()=>typeof e.data=="string"?null:e.data,[e.data]),n=Je.useMemo(()=>av(e.style,e.renderAs,r,t,o),[e.style,e.renderAs,r,t,o]),a=Je.useMemo(()=>({visibility:e.visible===false?"none":"visible"}),[e.visible]),i=Je.useMemo(()=>(typeof e.data=="string",e.data),[e.data]),s={id:`${e.id}-source`,type:"geojson",data:i};e.cluster?.enabled&&(s.cluster=true,s.clusterRadius=e.cluster.radius??50,s.clusterMaxZoom=e.cluster.maxZoom??14);let c={id:e.id,type:nv(e.renderAs),paint:n,layout:a};return e.minZoom!==void 0&&(c.minzoom=e.minZoom),e.maxZoom!==void 0&&(c.maxzoom=e.maxZoom),jsxRuntime.jsx(lL.Source,{...s,children:jsxRuntime.jsx(lL.Layer,{...c})})}function QM({spec:e,mapType:t}){let r=e.pin;return jsxRuntime.jsx(jsxRuntime.Fragment,{children:e.data.map((o,n)=>{let[a,i]=e.getPosition(o),s=e.pinProps?e.pinProps(o):{};return jsxRuntime.jsx(lL.Marker,{longitude:a,latitude:i,anchor:"bottom",children:jsxRuntime.jsx(r,{...s})},`${e.id}-${n}`)})})}function ZM({spec:e}){let t=Je.useMemo(()=>{if(!e.style)return {};let n={};return e.style.opacity!==void 0&&(n["raster-opacity"]=e.style.opacity),e.style.brightnessMin!==void 0&&(n["raster-brightness-min"]=e.style.brightnessMin),e.style.brightnessMax!==void 0&&(n["raster-brightness-max"]=e.style.brightnessMax),e.style.contrast!==void 0&&(n["raster-contrast"]=e.style.contrast),e.style.saturation!==void 0&&(n["raster-saturation"]=e.style.saturation),e.style.hueRotate!==void 0&&(n["raster-hue-rotate"]=e.style.hueRotate),e.style.fadeDuration!==void 0&&(n["raster-fade-duration"]=e.style.fadeDuration),n},[e.style]),r={id:`${e.id}-source`,type:"raster",tiles:[e.tileset]};e.tileSize&&(r.tileSize=e.tileSize);let o={id:e.id,type:"raster",paint:t};return e.minZoom!==void 0&&(o.minzoom=e.minZoom),e.maxZoom!==void 0&&(o.maxzoom=e.maxZoom),jsxRuntime.jsx(lL.Source,{...r,children:jsxRuntime.jsx(lL.Layer,{...o})},e.tileset)}var to="#666";function tv(e,t){let r=t??64;return e*2/r}function nv(e){switch(e){case "line":return "line";case "fill":return "fill";case "circle":return "circle";case "symbol":return "symbol";case "heatmap":return "heatmap";default:return "circle"}}function av(e,t,r,o,n){if(!e)return {};let a={};if(e.color){let i=Wr(e.color,r,n);switch(t){case "line":a["line-color"]=i;break;case "fill":a["fill-color"]=i;break;case "circle":a["circle-color"]=i;break}}if(e.width&&t==="line"&&(a["line-width"]=Ec(e.width)),e.radius&&t==="circle"&&(a["circle-radius"]=Ec(e.radius)),e.opacity!==void 0)switch(t){case "line":a["line-opacity"]=e.opacity;break;case "fill":a["fill-opacity"]=e.opacity;break;case "circle":a["circle-opacity"]=e.opacity;break}if(e.fillOpacity!==void 0&&t==="fill"&&(a["fill-opacity"]=e.fillOpacity),t==="fill"&&e.borderWidth&&(a["fill-outline-color"]=e.borderColor?Wr(e.borderColor,r,n):Wr(e.color||"#000",r,n)),t==="circle"&&e.borderWidth){a["circle-stroke-width"]=e.borderWidth;let i=e.borderColor?Wr(e.borderColor,r,n):Dt(`map-${o}-border`,"#ffffff");a["circle-stroke-color"]=i;}return t==="heatmap"&&(e.weight!==void 0&&(a["heatmap-weight"]=typeof e.weight=="string"?["get",e.weight]:Ec(e.weight)),e.intensity!==void 0&&(a["heatmap-intensity"]=e.intensity),e.radius!==void 0&&(a["heatmap-radius"]=Ec(e.radius)),e.opacity!==void 0&&(a["heatmap-opacity"]=e.opacity)),a}function _M(e,t){let r=e.by,o=e.mapping,n=["match",["get",r]];for(let[i,s]of Object.entries(o))n.push(i),n.push(Wr(s));let a=e.fallback?Wr(e.fallback):to;return n.push(a),n}function $M(e,t){let r=Wm(t,e);r.length>20&&console.warn(`[Layers] Categorical auto-assignment found ${r.length} unique values for property "${e}". The 6-color palette will repeat ${Math.ceil(r.length/6)} times. Consider using explicit color mapping or reducing categories.`);let o=dd(r),n=["match",["get",e]];for(let[a,i]of Object.entries(o))n.push(a),n.push(i);return n.push(to),n}function eL(e,t="viridis",r,o){let n=ud(r,e),a;if(o&&o!=="auto")a=o;else {if(a=pd(n),n.length===0)return console.warn(`[Layers] No numeric values found for property "${e}"`),to;console.log(`[Layers] Auto-calculated sequential scale for "${e}": ${a.min} to ${a.max}`);}let i=gi(t),s=["interpolate",["linear"],["get",e]];return i.forEach((c,l)=>{let d=l/(i.length-1),u=a.min+d*(a.max-a.min);s.push(u,c);}),s}function tL(e,t="redYellowBlue",r,o,n){let a=ud(r,e),i=Um(a,o),s;if(n&&n!=="auto")s=n;else {if(s=pd(a),a.length===0)return console.warn(`[Layers] No numeric values found for property "${e}"`),to;console.log(`[Layers] Auto-calculated diverging scale for "${e}": ${s.min} \u2190 ${i} \u2192 ${s.max}`);}let c=bi(t),l=4,d=["interpolate",["linear"],["get",e]];for(let u=0;u<=l;u++){let m=u/l,p=s.min+m*(i-s.min);d.push(p,c[u]);}for(let u=l+1;u<c.length;u++){let m=(u-l)/(c.length-1-l),p=i+m*(s.max-i);d.push(p,c[u]);}return d}function rv(e){if(!(e.startsWith("var(")||e.startsWith("--")||e.startsWith("color-")))return e;let r=Dt(e,to);return r.includes("var(")?to:r}function Wr(e,t,r){if(typeof e=="string")return rv(e);if("token"in e)return Dt(e.token,to);if("hex"in e)return rv(e.hex);if("by"in e){if("palette"in e){if(e.palette==="categorical")return r?$M(e.by,r):(console.warn("[Layers] Categorical auto-assignment requires GeoJSON data (not URL-based data)"),to);if(e.palette==="sequential")return r?eL(e.by,e.scheme,r,e.scale):(console.warn("[Layers] Sequential palette requires GeoJSON data (not URL-based data)"),to);if(e.palette==="diverging")return r?tL(e.by,e.scheme,r,e.center,e.scale):(console.warn("[Layers] Diverging palette requires GeoJSON data (not URL-based data)"),to)}if("mapping"in e)return _M(e)}return to}function Ec(e){return typeof e=="number"?e:"byZoom"in e?["interpolate",["linear"],["zoom"],...e.byZoom.flatMap(([t,r])=>[t,r])]:e}var Dc=null;function Ac(){return typeof window>"u"||process.env.NODE_ENV==="test"||typeof process<"u"&&process.env?.CHROMATIC||typeof ({ url: (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href)) })<"u"&&undefined?.CHROMATIC?Promise.resolve():(Dc||(Dc=import('mapbox-gl/dist/mapbox-gl.css').then(()=>{}).catch(t=>{console.error("Failed to load Mapbox CSS",t),Dc=null;})),Dc)}function Ic(){return jsxRuntime.jsx("div",{className:"absolute inset-0 z-50 bg-background-surface/90 backdrop-blur-sm pointer-events-none","data-testid":"map-loading-overlay",children:jsxRuntime.jsx("div",{className:"absolute inset-0 opacity-20",children:jsxRuntime.jsx("div",{className:"h-full w-full",style:{backgroundImage:`
|
|
41
41
|
linear-gradient(rgba(0,0,0,0.15) 1px, transparent 1px),
|
|
42
42
|
linear-gradient(90deg, rgba(0,0,0,0.15) 1px, transparent 1px)
|
|
43
|
-
`,backgroundSize:"30px 30px"}})})})}var tv="color-mix(in srgb, var(--color-map-neutral-border) 8%, transparent)",XM={backgroundImage:`linear-gradient(to right, ${tv} 1px, transparent 1px), linear-gradient(to bottom, ${tv} 1px, transparent 1px)`,backgroundSize:"24px 24px"},jM={backgroundColor:"color-mix(in srgb, var(--color-map-marker-default) 12%, transparent)"};function Rc({style:e,className:t,message:r="Map requires Mapbox token",schematic:o=false,showMarker:n=true}){return o?jsxRuntime.jsxs("div",{style:e,"data-testid":"map-schematic",className:tailwindMerge.twMerge("relative overflow-hidden border border-map-neutral-border bg-background-muted",t),children:[jsxRuntime.jsx("div",{"aria-hidden":"true",className:"absolute inset-0",style:XM}),n?jsxRuntime.jsxs("div",{className:"absolute inset-0 flex items-center justify-center",children:[jsxRuntime.jsx("span",{"aria-hidden":"true",className:"absolute h-24 w-24 rounded-full",style:jM}),jsxRuntime.jsx(F,{name:"MapPin",size:36,weight:"fill",className:"relative text-map-marker-default"})]}):null]}):jsxRuntime.jsx("div",{style:e,className:tailwindMerge.twMerge("flex items-center justify-center bg-background-muted text-text-secondary",t),children:jsxRuntime.jsxs("div",{className:"text-center",children:[jsxRuntime.jsx(F,{name:"MapPin",size:48,className:"mx-auto mb-2 opacity-50"}),jsxRuntime.jsx("p",{className:"text-sm",children:r})]})})}var rv={streets:"streets",satellite:"satellite",neutral:"neutral"},Ec="streets";function Mc(e,t){switch(e){case "streets":return t?"mapbox://styles/victor-texture/clzwxtrng005s01p93rtr04op":"mapbox://styles/mapbox/streets-v12";case "satellite":return "mapbox://styles/mapbox/satellite-streets-v12";case "neutral":return t?"mapbox://styles/mapbox/dark-v11":"mapbox://styles/mapbox/light-v11";default:return t?"mapbox://styles/victor-texture/clzwxtrng005s01p93rtr04op":"mapbox://styles/mapbox/streets-v12"}}function ov({longitude:e,latitude:t,showPulse:r=true,accuracy:o}){return jsxRuntime.jsx($M.Marker,{longitude:e,latitude:t,anchor:"center",children:jsxRuntime.jsxs("div",{className:"relative flex items-center justify-center",children:[r&&jsxRuntime.jsx("div",{className:"absolute h-12 w-12 animate-[ping_2s_ease-in-out_infinite] rounded-full bg-action-brand opacity-30",style:{animationDelay:"0s"}}),jsxRuntime.jsx("div",{className:"relative z-10 flex h-5 w-5 items-center justify-center rounded-full bg-background-surface shadow-lg",children:jsxRuntime.jsx("div",{className:"h-3 w-3 rounded-full bg-action-brand"})}),o&&o>0&&jsxRuntime.jsx("div",{className:"pointer-events-none absolute rounded-full border border-action-brand/20 bg-action-brand/10",style:{width:`${Math.min(o/2,100)}px`,height:`${Math.min(o/2,100)}px`}})]})})}var ds=Ke__namespace.default.forwardRef(({initialViewState:e,viewState:t,onViewStateChange:r,scrollEnabled:o=true,className:n,previewMode:a=false,previewModeCta:i,onPreviewModePress:s,mapType:c=Ec,layers:l=[],mapboxAccessToken:d,transformRequest:u,isLoading:m=false,onLoad:p,controls:f="default",showUserLocation:g=true,onUserLocationChange:h,children:b,additionalInteractiveLayerIds:y=[],onMapClick:x,showMarker:v=false,markerLocation:S},w)=>{let k=d??mc();if(!k)return jsxRuntime.jsx("div",{className:`relative ${n||""}`,style:{width:"100%",height:"100%"},children:jsxRuntime.jsx(Rc,{className:"w-full h-full",message:"Map unavailable"})});let{isDarkTheme:P}=Wt(),T=Ke.useRef(null),E=Ke.useRef(null),[I,R]=Ke.useState(false),[L,M]=Ke.useState(false);Ke.useEffect(()=>{Tc();},[]);let[V,z]=Ke.useState(false),U=Ke.useRef(0),[Q,Z]=Ke.useState(null),[H,j]=Ke.useState(null),G=Ke.useRef(null),A=Ke.useRef(null),[W,N]=fc("interactiveMap.trackingLocation",false),[C,D]=Ke.useState(false);Ke.useEffect(()=>{if(!navigator.geolocation){D(true);return}if(W){if(!navigator.permissions?.query){D(true);return}navigator.permissions.query({name:"geolocation"}).then(O=>{O.state!=="granted"&&N(false),D(true);}).catch(()=>{D(true);});}else D(true);},[]),Ke.useEffect(()=>{let O=setTimeout(()=>{I||M(true);},200);return ()=>clearTimeout(O)},[I]),Ke.useEffect(()=>{A.current=null;},[c,P]),Ke.useEffect(()=>{if(I)return;let O=setInterval(()=>{if(T.current?.loaded()){R(true),M(false);let Y=T.current.getMap?.();Y&&A.current!==Y&&(A.current=Y,p?.()),clearInterval(O);}},200);return ()=>clearInterval(O)},[I,p]),Ke.useEffect(()=>{if(C){if(!W||a){G.current!==null&&(navigator.geolocation.clearWatch(G.current),G.current=null);return}if(!navigator.geolocation){console.warn("Geolocation is not supported by this browser.");return}return G.current=navigator.geolocation.watchPosition(O=>{let Y={latitude:O.coords.latitude,longitude:O.coords.longitude,accuracy:O.coords.accuracy};j(Y),h?.(Y);},O=>{console.warn("Geolocation error:",O.message),j(null),h?.(null);},{enableHighAccuracy:true,maximumAge:3e4,timeout:3e4}),()=>{G.current!==null&&(navigator.geolocation.clearWatch(G.current),G.current=null);}}},[W,a,h,C]);let B=Ke.useCallback(()=>{R(true),M(false);let O=T.current?.getMap?.();O&&A.current!==O&&(A.current=O,p?.());},[p]),X=Ke.useCallback(()=>{T.current&&e&&(z(false),U.current=0,T.current.flyTo({center:[e.longitude||0,e.latitude||0],zoom:e.zoom||0,bearing:e.bearing||0,pitch:e.pitch||0,duration:1e3}));},[e]),ee=Ke.useMemo(()=>f===false||f===null?[]:f==="default"||f===void 0?Bp:f,[f]),le=Ke.useCallback(()=>{if(!navigator.geolocation){console.warn("Geolocation is not supported by this browser.");return}N(true),navigator.geolocation.getCurrentPosition(O=>{let{latitude:Y,longitude:ge}=O.coords;T.current&&T.current.jumpTo({center:[ge,Y],zoom:15});},O=>{console.warn("Geolocation error:",O.message),O.code===O.PERMISSION_DENIED&&N(false);},{enableHighAccuracy:true,timeout:1e4,maximumAge:0});},[]),$=Ke.useMemo(()=>{if(a)return null;let O=ee.map(Y=>Y.type==="navigation"?{...Y,onResetZoom:Y.onResetZoom||X,onGeolocateClick:Y.onGeolocateClick||le}:Y);return Wp(O,{mapRef:T,layers:l,showResetButton:V})},[ee,T,a,l,X,V,le]),ae=Ke.useMemo(()=>{let O=[];return l.filter(Y=>Y.events?.onClick||Y.events?.onMouseEnter||Y.events?.onMouseLeave||Y.tooltip).forEach(Y=>{Y.kind==="clusteredVector"?(O.push(`${Y.id}-clusters`),O.push(`${Y.id}-points`),O.push(`${Y.id}-selected-point`)):O.push(Y.id);}),[...O,...y]},[l,y]),Ve=Ke.useMemo(()=>{let O=new Map;return l.forEach(Y=>{Y.events&&(O.set(Y.id,Y.events),Y.kind==="clusteredVector"&&(O.set(`${Y.id}-clusters`,Y.events),O.set(`${Y.id}-points`,Y.events),O.set(`${Y.id}-selected-point`,Y.events)));}),O},[l]),te=Ke.useMemo(()=>{let O=new Map;return l.forEach(Y=>{Y.tooltip&&(O.set(Y.id,Y.tooltip),Y.kind==="clusteredVector"&&(O.set(`${Y.id}-clusters`,Y.tooltip),O.set(`${Y.id}-points`,Y.tooltip),O.set(`${Y.id}-selected-point`,Y.tooltip)));}),O},[l]),ne=Ke.useMemo(()=>{let O=new Map;return l.forEach(Y=>{Y.kind==="clusteredVector"&&(O.set(Y.id,Y),O.set(`${Y.id}-clusters`,Y),O.set(`${Y.id}-points`,Y),O.set(`${Y.id}-selected-point`,Y));}),O},[l]),oe=Ke.useMemo(()=>{if(!v)return null;let O=S?.longitude??t?.longitude??e?.longitude,Y=S?.latitude??t?.latitude??e?.latitude;return O===void 0||Y===void 0?null:{longitude:O,latitude:Y}},[v,S,t,e]),pe=Ke.useCallback(O=>{if(a)return;let Y=O.features?.[0];if(!Y||!Y.layer)return;let ge=Y.layer.id,se=Ve.get(ge),q=te.get(ge),be;Y.geometry.type==="Point"?be=Y.geometry.coordinates:be=[O.lngLat.lng,O.lngLat.lat];let xe={id:Y.id??Y.properties?.id,lngLat:be,properties:Y.properties||{},layerId:ge},Ge=ne.get(ge),mt=Y.properties?.cluster===true;if(Ge&&mt){let qe=T.current;if(qe){let ro=qe.getZoom(),Ee=Math.min(ro+3,18);qe.flyTo({center:be,zoom:Ee,duration:1e3});}return}if(se?.onClick&&se.onClick(xe),q&&q.trigger==="click"){let qe;Ge&&"cluster"in q?q.point&&(qe=q.point(xe)):"content"in q&&(qe=typeof q.content=="function"?q.content(xe):q.content),qe&&Z({feature:xe,content:qe,bare:q.bare});}x&&x(O);},[Ve,te,a,x,ne,T,ae]),Re=Ke.useCallback(O=>{let Y=O.features?.[0];if(!Y||!Y.layer)return null;let ge=Y.layer.id,se=te.get(ge);if(!se||se.trigger!=="hover"&&se.trigger!==void 0)return null;let q;Y.geometry.type==="Point"?q=Y.geometry.coordinates:q=[O.lngLat.lng,O.lngLat.lat];let be={id:Y.id??Y.properties?.id,lngLat:q,properties:Y.properties||{},layerId:ge},xe;if(ne.get(ge)&&"cluster"in se){let mt=Y.properties?.cluster===true;if(mt&&se.cluster){let qe=Y.properties?.point_count||0;xe=se.cluster(qe,be);}else !mt&&se.point?xe=se.point(be):xe=mt?`${Y.properties?.point_count||0} items`:null;}else "content"in se&&(xe=typeof se.content=="function"?se.content(be):se.content);return xe?{feature:be,content:xe,bare:se.bare}:null},[te,ne]),rt=Ke.useCallback(O=>{if(a)return;let Y=O.features?.[0];if(!Y||!Y.layer)return;let ge=Y.layer.id,se=Ve.get(ge);if(se?.onMouseEnter){let be;Y.geometry.type==="Point"?be=Y.geometry.coordinates:be=[O.lngLat.lng,O.lngLat.lat];let xe={id:Y.id??Y.properties?.id,lngLat:be,properties:Y.properties||{},layerId:ge};se.onMouseEnter(xe);}let q=Re(O);q&&Z(q),T.current&&(T.current.getCanvas().style.cursor="pointer");},[Ve,a,T,Re]),Bt=Ke.useCallback(O=>{if(a)return;let Y=O.features?.[0];if(!Y||!Y.layer)return;let ge=Re(O);if(ge){Z(se=>se&&se.feature.layerId===ge.feature.layerId&&se.feature.id===ge.feature.id?se:ge);return}Z(se=>{if(!se)return se;let q=te.get(se.feature.layerId);return q&&(q.trigger==="hover"||q.trigger===void 0)?null:se});},[a,Re,te]),to=Ke.useCallback(()=>{if(!a){if(Ve.forEach(O=>{O.onMouseLeave?.();}),Q){let O=Q.feature.layerId,Y=l.find(ge=>ge.id===O);if(!Y){let ge=O.replace(/-(?:clusters|points|selected-point|cluster-shadows|points-shadow|cluster-count)$/,"");Y=l.find(se=>se.id===ge);}Y?.tooltip&&(Y.tooltip.trigger||"hover")==="hover"&&Z(null);}T.current&&(T.current.getCanvas().style.cursor="");}},[Ve,a,T,Q,l]),Wr=Ke.useCallback((O,Y)=>{for(let ge of l)if(ge.tooltip&&!(Y&&ge.id!==Y)){if(ge.kind==="geojson"){if(typeof ge.data=="string")continue;let se=ge.data,be=(se.type==="FeatureCollection"?se.features:[se]).find(xe=>xe.id===O);if(be&&be.geometry.type==="Point")return {id:be.id,lngLat:be.geometry.coordinates,properties:be.properties||{},layerId:ge.id}}else if(ge.kind==="customPins"){let se=ge.data.find(q=>q.id===O||q._id===O||q.key===O);if(se)return {id:O,lngLat:ge.getPosition(se),properties:se,layerId:ge.id}}}return null},[l]);Ke.useImperativeHandle(w,()=>({showTooltip:(O,Y)=>{let ge=Wr(O,Y);if(!ge)return;let se=l.find(q=>q.id===ge.layerId);if(se?.tooltip&&"content"in se.tooltip){let q=typeof se.tooltip.content=="function"?se.tooltip.content(ge):se.tooltip.content;Z({feature:ge,content:q,bare:se.tooltip.bare});}},hideTooltip:()=>{Z(null);},getMap:()=>T.current,markMapAsMoved:()=>{z(true);}}),[Wr,l]);let me=(O,Y)=>u?u(O,Y):{url:O},ve=m||L;return jsxRuntime.jsx("div",{ref:E,className:tailwindMerge.twMerge("relative flex h-full w-full overflow-hidden",a&&"cursor-pointer",n),onClick:a?s:void 0,children:jsxRuntime.jsxs("div",{style:{flex:1},children:[jsxRuntime.jsxs($M__default.default,{ref:T,initialViewState:e,...t&&t,style:{width:"100%",height:"100%"},mapStyle:Mc(c,P),styleDiffing:false,mapboxAccessToken:k,transformRequest:me,onLoad:B,onMove:a?void 0:O=>{if(O.originalEvent&&I){let Y=O.originalEvent.type,ge=Math.abs((O.viewState.latitude??0)-(e?.latitude??0)),se=Math.abs((O.viewState.longitude??0)-(e?.longitude??0)),q=Math.abs((O.viewState.zoom??0)-(e?.zoom??0));e&&(ge>1e-4||se>1e-4||q>.1)&&(Y==="mousemove"||Y==="touchmove"||Y==="pointermove"?z(true):(Y==="wheel"||Y==="mousewheel")&&(U.current+=1,U.current>=3&&z(true)));}r?.(O.viewState);},onClick:a?void 0:pe,onMouseMove:a?void 0:Bt,onMouseEnter:a?void 0:rt,onMouseLeave:a?void 0:to,interactiveLayerIds:a?[]:ae,scrollZoom:a?false:o,dragPan:!a,dragRotate:!a,doubleClickZoom:!a,interactive:!a,attributionControl:false,children:[jsxRuntime.jsx($M.AttributionControl,{position:"top-left"}),$,ss(l,c),b,oe&&jsxRuntime.jsx($M.Marker,{longitude:oe.longitude,latitude:oe.latitude,anchor:"bottom",children:jsxRuntime.jsx(F,{name:"MapPin",size:36,className:"text-map-marker-default",weight:"fill"})}),g&&H&&jsxRuntime.jsx(ov,{longitude:H.longitude,latitude:H.latitude,accuracy:H.accuracy}),Q&&jsxRuntime.jsx($M.Popup,{longitude:Q.feature.lngLat[0],latitude:Q.feature.lngLat[1],offset:15,closeButton:false,closeOnClick:false,className:Q.bare?"map-tooltip map-tooltip-bare":"map-tooltip",maxWidth:"none",children:Q.content})]},`map-${c}-${P}`),ve&&jsxRuntime.jsx(Pc,{}),a&&i&&jsxRuntime.jsx("div",{className:"absolute bottom-8 right-8 z-10",children:i})]})})});ds.displayName="InteractiveMap";async function av(e,t,r,o={}){if(e.hasImage(t))return;let n=o.size??64,a=o.color??"#2c2a26",i=o.weight??"regular",s=server.renderToStaticMarkup(Ke.createElement(r,{size:n,color:a,weight:i})),c=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(s)}`;await new Promise((l,d)=>{let u=new Image(n,n);u.onload=()=>{try{e.hasImage(t)||e.addImage(t,u,{sdf:!1}),l();}catch(m){d(m instanceof Error?m:new Error(`Failed to addImage "${t}": ${String(m)}`));}},u.onerror=m=>{d(m instanceof Error?m:new Error(`Failed to load icon "${t}"`));},u.src=c;});}function ni({width:e="100%",height:t="100%",initialViewState:r={longitude:-122.4194,latitude:37.7749,zoom:14},isLoading:o=false,mapType:n="streets",layers:a=[],mapboxAccessToken:i,showMarker:s=true,showAttribution:c=false,onLoad:l,className:d,showExpandToggle:u=false,expandedMapTitle:m="Explore map",expandedMapAddressLabel:p,schematicPlaceholder:f=false}){let g=i??mc(),{isDarkTheme:h}=Wt(),[b,y]=Ke.useState(false),[x,v]=Ke.useState(false),[S,w]=Ke.useState(false),k=Ke.useRef(null),P=Ke.useRef(null),T=Ke.useCallback(()=>w(true),[]),E=Ke.useCallback(()=>w(false),[]);Ke.useEffect(()=>{Tc();},[]);let I={width:typeof e=="number"?`${e}px`:e,height:typeof t=="number"?`${t}px`:t};Ke.useEffect(()=>{let M=setTimeout(()=>{b||v(true);},200);return ()=>clearTimeout(M)},[b]);let R=Ke.useCallback(()=>{y(true),v(false),l?.();},[l]);Ke.useEffect(()=>{if(!P.current)return;let M=new ResizeObserver(()=>{k.current&&k.current.resize();});return M.observe(P.current),()=>{M.disconnect();}},[]);let L=o||x;return g?jsxRuntime.jsxs("div",{ref:P,style:I,className:`relative ${d||""}`,children:[jsxRuntime.jsxs($M__default.default,{ref:k,mapboxAccessToken:g,initialViewState:r,style:{width:"100%",height:"100%"},mapStyle:Mc(n,h),onLoad:R,scrollZoom:false,dragPan:false,dragRotate:false,doubleClickZoom:false,touchZoomRotate:false,interactive:false,attributionControl:false,children:[c&&jsxRuntime.jsx($M.AttributionControl,{position:"top-left"}),ss(a,n),s&&r.longitude!==void 0&&r.latitude!==void 0&&jsxRuntime.jsx($M.Marker,{longitude:r.longitude,latitude:r.latitude,anchor:"bottom",children:jsxRuntime.jsx(F,{name:"MapPin",size:36,className:"text-map-marker-default",weight:"fill"})})]}),u&&jsxRuntime.jsx("div",{className:"absolute top-4 right-4 z-20",children:jsxRuntime.jsx(Rr,{icon:"ArrowsOutSimple",ariaLabel:"Expand map to fullscreen",onPress:T})}),u&&jsxRuntime.jsx(or,{isOpen:S,onClose:E,title:m,contentPadding:false,maxWidth:"min(1100px, 100vw)",minWidth:"min(360px, 100vw)",height:"80vh",mobileHeight:"82vh",children:jsxRuntime.jsxs("div",{className:"flex flex-col h-full",children:[jsxRuntime.jsx("div",{className:"flex-1 min-h-0 overflow-hidden sm:mx-4 sm:mt-4 sm:rounded-xl sm:border sm:border-border-default",children:jsxRuntime.jsx(ds,{initialViewState:r,mapType:n,mapboxAccessToken:g,showMarker:s,markerLocation:r.longitude!==void 0&&r.latitude!==void 0?{latitude:r.latitude,longitude:r.longitude}:void 0,layers:a})}),p&&jsxRuntime.jsx("p",{className:"text-sm text-text-secondary px-4 py-3 flex-shrink-0",children:p})]})}),L&&jsxRuntime.jsx(Pc,{})]}):jsxRuntime.jsx(Rc,{style:I,className:d,schematic:f,showMarker:s})}var uL={xs:{bar:"h-1 w-14",text:"text-xs",icon:"h-2.5 w-2.5"},sm:{bar:"h-1.5 w-48",text:"text-xs",icon:"h-3 w-3"},md:{bar:"h-2 w-64",text:"text-sm",icon:"h-4 w-4"},lg:{bar:"h-3 w-80",text:"text-base",icon:"h-5 w-5"}};function sv({label:e,size:t="md",variant:r="default",showWarningIndicator:o=true,warningThreshold:n=80,hideValueText:a=false,className:i,...s}){let c=uL[t],l=a&&e&&!s["aria-label"]&&!s["aria-labelledby"]?{"aria-label":e}:{};return jsxRuntime.jsx(reactAriaComponents.Meter,{...s,...l,className:ke(i,"flex flex-col gap-1"),children:({percentage:d,valueText:u})=>{let m=o&&d>=n,p=r==="default"?pL(d):r;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[!a&&jsxRuntime.jsxs("div",{className:"flex justify-between gap-2",children:[e&&jsxRuntime.jsx(Ue,{children:e}),jsxRuntime.jsxs("span",{className:tailwindMerge.twMerge(c.text,m?"text-feedback-error-text":"text-text-secondary"),children:[m&&jsxRuntime.jsx(lucideReact.AlertTriangle,{"aria-label":"Warning: High value",className:tailwindMerge.twMerge("inline-block align-text-bottom mr-1",c.icon)}),u]})]}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("relative rounded-full bg-background-muted","ring-1 ring-inset ring-border-muted",c.bar),children:jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("absolute left-0 top-0 h-full rounded-full transition-all duration-300","forced-colors:bg-[Highlight]",mL(p)),style:{width:`${Math.min(100,Math.max(0,d))}%`},role:"presentation","aria-hidden":"true"})})]})}})}function pL(e){return e<50?"success":e<70?"info":e<90?"warning":"error"}function mL(e){switch(e){case "success":return "bg-feedback-success-text";case "warning":return "bg-feedback-warning-text";case "error":return "bg-feedback-error-text";case "info":return "bg-feedback-info-text";case "neutral":return "bg-text-subtle";default:return "bg-action-brand"}}var Dc="bg-background-surface border-l-[3px] border-y border-r border-border-default text-text-primary",hL={success:{container:Dc,iconName:"CheckCircle",iconColor:"text-feedback-success-text",borderColor:"var(--color-feedback-success-border)"},error:{container:Dc,iconName:"XCircle",iconColor:"text-feedback-error-text",borderColor:"var(--color-feedback-error-border)"},warning:{container:Dc,iconName:"Warning",iconColor:"text-feedback-warning-text",borderColor:"var(--color-feedback-warning-border)"},info:{container:Dc,iconName:"Info",iconColor:"text-feedback-info-text",borderColor:"var(--color-feedback-info-border)"}};function Ic({id:e,message:t,variant:r="info",duration:o=5e3,dismissible:n=true,onDismiss:a,className:i}){let{container:s,iconName:c,iconColor:l,borderColor:d}=hL[r];return Ke.useEffect(()=>{if(o>0){let u=setTimeout(()=>{a?.();},o);return ()=>clearTimeout(u)}},[o,a]),jsxRuntime.jsxs(framerMotion.motion.div,{layout:true,initial:{opacity:0,y:-20,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,scale:.95,transition:{duration:.2}},className:tailwindMerge.twMerge("pointer-events-auto flex items-center gap-3 rounded-lg p-4 shadow-lg",s,i),style:{borderLeftColor:d},children:[jsxRuntime.jsx(F,{name:c,size:20,className:l}),jsxRuntime.jsx("p",{className:"flex-1 select-text text-sm font-medium",children:t}),n&&jsxRuntime.jsx("button",{type:"button",onClick:a,className:"flex-shrink-0 rounded-md p-1 transition-colors hover:bg-background-hover","aria-label":"Dismiss notification",children:jsxRuntime.jsx(F,{name:"X",size:16})})]})}var kL={"top-left":"top-4 left-4 items-start","top-center":"top-4 left-1/2 -translate-x-1/2 items-start","top-right":"top-4 right-4 items-end","bottom-left":"bottom-4 left-4 items-start","bottom-center":"bottom-4 left-1/2 -translate-x-1/2 items-start","bottom-right":"bottom-4 right-4 items-end"};function Fc({notices:e,onDismiss:t,position:r="bottom-center",className:o}){let[n,a]=Ke.useState(false);if(Ke.useEffect(()=>{a(true);},[]),!n)return null;let i=jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("pointer-events-none fixed z-50 flex flex-col gap-2",kL[r],o),"aria-live":"polite","aria-atomic":"true",children:jsxRuntime.jsx(framerMotion.AnimatePresence,{mode:"sync",children:e.map(s=>jsxRuntime.jsx(Ic,{id:s.id,message:s.message,variant:s.variant,duration:s.duration,dismissible:s.dismissible,onDismiss:()=>t(s.id)},s.id))})});return reactDom.createPortal(i,document.body)}var lv=Ke.createContext(void 0);function cv({children:e,position:t="bottom-center",maxNotices:r=5,defaultDuration:o=5e3,defaultDismissible:n=true}){let[a,i]=Ke.useState([]),s=Ke.useCallback((u,m)=>{let p=`notice-${Date.now()}-${Math.random()}`,f={id:p,message:u,variant:m?.variant||"info",duration:m?.duration??o,dismissible:m?.dismissible??n};return i(g=>{let h=[...g,f];return h.length>r?h.slice(-r):h}),p},[r,o,n]),c=Ke.useCallback(u=>{i(m=>m.filter(p=>p.id!==u));},[]),l=Ke.useCallback(()=>{i([]);},[]),d={notices:a,addNotice:s,removeNotice:c,clearNotices:l};return jsxRuntime.jsxs(lv.Provider,{value:d,children:[e,jsxRuntime.jsx(Fc,{notices:a,onDismiss:c,position:t})]})}function dv(){let e=Ke.useContext(lv);if(!e)throw new Error("useNoticeContext must be used within a NoticeProvider");return e}function uv(){let{addNotice:e,removeNotice:t,clearNotices:r}=dv(),o=Ke.useCallback((c,l)=>e(c,l),[e]),n=Ke.useCallback((c,l)=>e(c,{...l,variant:"success"}),[e]),a=Ke.useCallback((c,l)=>e(c,{...l,variant:"error"}),[e]),i=Ke.useCallback((c,l)=>e(c,{...l,variant:"warning"}),[e]),s=Ke.useCallback((c,l)=>e(c,{...l,variant:"info"}),[e]);return {show:o,success:n,error:a,warning:i,info:s,dismiss:t,clear:r}}var DL={plain:"",contained:"bg-background-surface rounded-lg border border-border-default p-6",bordered:"border-y border-border-default py-6"},AL={none:"",sm:"my-4",md:"my-6 md:my-8",lg:"my-8 md:my-12"};function ai({id:e,title:t,description:r,actions:o,variant:n="plain",spacing:a="none",withDivider:i=false,headingAs:s="h2",className:c,children:l}){let d=Ke__namespace.default.useId(),u=e?`${e}-heading`:d,m=t||r||o;return jsxRuntime.jsxs("section",{id:e,className:tailwindMerge.twMerge(AL[a],DL[n],c),"aria-labelledby":t?u:void 0,children:[m&&jsxRuntime.jsxs("header",{id:u,className:tailwindMerge.twMerge("flex flex-col sm:flex-row sm:items-start sm:justify-between gap-4",i&&"border-b border-border-default pb-4 mb-6",!i&&l&&"mb-6"),children:[jsxRuntime.jsxs("div",{className:"min-w-0 flex-1",children:[t&&jsxRuntime.jsx(rr,{tag:s,size:"md",className:"text-text-primary",children:t}),r&&jsxRuntime.jsx("p",{className:"mt-2 text-base text-text-secondary",children:r})]}),o&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:o})]}),l&&jsxRuntime.jsx("div",{className:"",children:t?jsxRuntime.jsx(Yo,{children:l}):l})]})}ai.displayName="Section";function Vc({sections:e,activeSection:t,onSectionChange:r,orientation:o="responsive",className:n,scrollBehavior:a="smooth",stickyTop:i="1.5rem",heading:s,sectionIdPrefix:c="section-",filterSection:l,scrollContainerId:d}){let u=Ke__namespace.useRef(null),m=Ke__namespace.useRef(null),[p,f]=Ke__namespace.useState(e[0]?.id||null),g=t??p,h=Ke__namespace.useCallback(()=>d?document.getElementById(d):null,[d]),b=Ke__namespace.useCallback(w=>document.getElementById(`${c}${w}`)??document.getElementById(w),[c]);Ke__namespace.useEffect(()=>{let w=window.location.hash;if(!w)return;let k=w.slice(1),P=k.startsWith(c)?k.slice(c.length):k,T=e.find(E=>E.id===P);T&&requestAnimationFrame(()=>{let E=b(T.id);if(!E)return;let I=h();if(I){let R=I.getBoundingClientRect(),L=E.getBoundingClientRect(),M=I.scrollTop+(L.top-R.top);I.scrollTo({top:Math.max(0,M),behavior:"instant"});}else E.scrollIntoView({behavior:"instant",block:"start"});r?r(T.id):f(T.id);});},[]),Ke__namespace.useEffect(()=>{if(t!==void 0&&r)return;let w=E=>{if(!E)return false;let I=window.getComputedStyle(E);return I.display!=="none"&&I.visibility!=="hidden"&&I.opacity!=="0"},k=()=>{let E=w(u.current),I=w(m.current);if(!E&&!I)return null;let R=h(),L=new IntersectionObserver(M=>{M.forEach(V=>{if(V.isIntersecting){let z=V.target.id.replace(c,"");r?r(z):f(z);}});},{root:R??void 0,rootMargin:"-20% 0px -70% 0px",threshold:0});return e.forEach(M=>{let V=b(M.id);V&&L.observe(V);}),L},P=k(),T=()=>{P&&P.disconnect(),P=k();};return window.addEventListener("resize",T),()=>{P&&P.disconnect(),window.removeEventListener("resize",T);}},[e,c,t,r,o,h,b]);let y=Ke__namespace.useMemo(()=>l?e.filter(l):e,[e,l]),x=Ke__namespace.useCallback((w,k)=>{w.preventDefault();let P=b(k);if(P){let T=h();if(T){let E=T.getBoundingClientRect(),I=P.getBoundingClientRect(),R=T.scrollTop+(I.top-E.top),L=Math.max(0,T.scrollHeight-T.clientHeight);T.scrollTo({top:Math.max(0,Math.min(R,L)),behavior:a});}else {let E=P.getBoundingClientRect().top+window.scrollY,I=Math.max(0,document.documentElement.scrollHeight-window.innerHeight),R=Math.max(0,Math.min(E,I));window.scrollTo({top:R,behavior:a});}window.history.pushState&&window.history.pushState(null,"",`#${c}${k}`),r?r(k):f(k);}},[c,a,r,h,b]);if(y.length===0)return null;let v=o==="vertical"?"":o==="horizontal"?"hidden":"hidden lg:block",S=o==="horizontal"?"":o==="vertical"?"hidden":"lg:hidden";return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("nav",{ref:u,className:tailwindMerge.twMerge(v,n),"aria-label":"Section navigation",children:jsxRuntime.jsxs("div",{className:"space-y-1",style:{position:"sticky",top:i},children:[s?jsxRuntime.jsx("div",{className:"px-3 pb-2 text-label-sm font-semibold uppercase tracking-wide text-text-tertiary",children:s}):null,y.map(w=>{let k=g===w.id;return jsxRuntime.jsx("a",{href:`#${c}${w.id}`,onClick:P=>x(P,w.id),className:tailwindMerge.twMerge("block w-full text-left px-3 py-2 rounded-md text-sm transition-colors no-underline",k?"bg-background-muted text-text-primary font-semibold":"text-text-secondary hover:text-text-primary hover:bg-background-hover"),"aria-current":k?"page":void 0,children:jsxRuntime.jsxs("span",{className:"flex items-center justify-between gap-2",children:[jsxRuntime.jsx("span",{children:w.label}),w.count!==void 0&&jsxRuntime.jsx("span",{className:"text-xs tabular-nums text-text-secondary",children:w.count})]})},w.id)})]})}),jsxRuntime.jsx("nav",{ref:m,className:tailwindMerge.twMerge(S,"overflow-x-auto scrollbar-hide sticky top-0 z-10 py-4 -mt-4",n),"aria-label":"Section navigation",children:jsxRuntime.jsx("div",{className:"flex gap-2 min-w-max",children:y.map(w=>{let k=g===w.id;return jsxRuntime.jsx("a",{href:`#${c}${w.id}`,onClick:P=>x(P,w.id),className:tailwindMerge.twMerge("inline-block px-4 py-2 rounded-md text-sm whitespace-nowrap transition-colors no-underline",k?"bg-background-muted text-text-primary font-semibold":"text-text-secondary hover:text-text-primary hover:bg-background-hover"),"aria-current":k?"page":void 0,children:jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("span",{children:w.label}),w.count!==void 0&&jsxRuntime.jsxs("span",{className:"text-xs tabular-nums text-text-secondary",children:["(",w.count,")"]})]})},w.id)})})})]})}function mv(e){return "primary"}var zc=Ke__namespace.createContext({variant:"primary"});function OL({orientation:e,className:t=""}){return `flex flex-col w-full ${{horizontal:"",vertical:"flex-row"}[e]||""} ${t}`.trim()}function Hc({variant:e="primary",...t}){let r=mv();return jsxRuntime.jsx(zc.Provider,{value:{variant:r},children:jsxRuntime.jsx("div",{className:"w-full h-auto",children:jsxRuntime.jsx(reactAriaComponents.Tabs,{...t,className:reactAriaComponents.composeRenderProps(t.className,(o,n)=>OL({...n,className:o}))})})})}function HL({orientation:e,sticky:t=false,className:r=""}){let o="flex gap-10 relative after:absolute after:bottom-0 after:left-0 after:right-0 after:h-[2px] after:bg-border-muted",n={horizontal:"flex-row w-full flex-nowrap overflow-x-auto scrollbar-hide",vertical:"flex-col items-start"},a=t?"sticky top-0 bg-background-surface z-10":"";return `${o} ${n[e]||""} ${a} ${r}`.trim()}function Gc({variant:e,sticky:t=false,...r}){let o=Ke__namespace.useContext(zc),n=mv(e??o.variant);return jsxRuntime.jsx(zc.Provider,{value:{variant:n},children:jsxRuntime.jsx(reactAriaComponents.TabList,{...r,className:reactAriaComponents.composeRenderProps(r.className,(a,i)=>HL({...i,sticky:t,className:a||""}))})})}function GL({isSelected:e,isDisabled:t,variant:r,className:o=""}){let n="flex items-center cursor-default px-1 py-2 font-medium transition-all hover:cursor-pointer relative shrink-0 whitespace-nowrap",a=`${Ze()} ${r==="primary"?"focus-visible:outline-action-primary":""}`.trim(),i="";return t?i="text-text-disabled forced-colors:text-[GrayText] cursor-not-allowed":e?i="text-action-primary border-b-2 border-action-primary z-10 forced-colors:bg-[Highlight]":i="text-text-disabled hover:text-text-secondary",`${n} ${a} ${i} ${o}`.trim()}function Wc(e){let{variant:t}=Ke__namespace.useContext(zc);return jsxRuntime.jsx(reactAriaComponents.Tab,{...e,"data-testid":e.id?`tab-${e.id}`:void 0,className:reactAriaComponents.composeRenderProps(e.className,(r,o)=>GL({...o,className:r,isSelected:o.isSelected,variant:t}))})}function WL({className:e=""}){let t="block w-full mt-4 text-text-primary",r=Ze();return `${t} ${r} ${e}`.trim()}function fv(e){return jsxRuntime.jsx(reactAriaComponents.TabPanel,{...e,className:reactAriaComponents.composeRenderProps(e.className,(t,r)=>WL({...r,className:t||""}))})}function ia({children:e,maxWidth:t=1400,paddingXClass:r="px-4 md:px-6",paddingYClass:o="pt-8 pb-14 md:pt-12 md:pb-28",className:n}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(`w-full ${r} ${o}`,n),style:{marginInline:"auto",maxWidth:t},children:e})}function UL({title:e,subtitle:t,breadcrumbs:r,breadcrumbsNode:o,media:n,actions:a,metadata:i,headingAs:s,sticky:c,stickyTop:l="0",zIndex:d=10,isLoading:u=false,className:m}){let p=c?"sticky bg-background-body":"",f=c?{top:l,zIndex:d}:{};return u?jsxRuntime.jsxs("header",{className:tailwindMerge.twMerge("mb-8 md:mb-12",p,m),style:f,"aria-labelledby":"page-title",children:[o||r?.length?jsxRuntime.jsx("div",{className:"mb-2 md:mb-4",children:jsxRuntime.jsx(K,{className:"h-4 w-32"})}):null,jsxRuntime.jsxs("div",{className:"flex flex-col md:flex-row md:items-start md:justify-between gap-4",children:[jsxRuntime.jsxs("div",{className:"min-w-0 flex-1",children:[jsxRuntime.jsx("div",{id:"page-title",children:jsxRuntime.jsx(K,{className:"h-8 w-64"})}),t?jsxRuntime.jsx(K,{className:"mt-2 h-5 w-48"}):null,i?jsxRuntime.jsx(K,{className:"mt-2 h-4 w-40"}):null,a?.length?jsxRuntime.jsx("div",{className:"mt-6 flex flex-col items-stretch gap-3 md:hidden",children:a.map((g,h)=>jsxRuntime.jsx(K,{className:"h-9 w-full"},h))}):null]}),a?.length?jsxRuntime.jsx("div",{className:"hidden md:flex md:items-start gap-2 shrink-0",children:a.map((g,h)=>jsxRuntime.jsx(K,{className:"h-9 w-24"},h))}):null]}),n?jsxRuntime.jsx("div",{className:"mt-4 md:mt-6",children:jsxRuntime.jsx(K,{className:"h-64 w-full"})}):null]}):jsxRuntime.jsxs("header",{className:tailwindMerge.twMerge("mb-8 md:mb-12",p,m),style:f,"aria-labelledby":"page-title",children:[o?jsxRuntime.jsx("div",{className:"mb-2 md:mb-4",children:o}):r?.length?jsxRuntime.jsx("div",{className:"mb-2 md:mb-4",children:jsxRuntime.jsx($s,{children:r.map((g,h)=>{let{label:b,...y}=g;return jsxRuntime.jsx(el,{...y,children:b},`${b}-${h}`)})})}):null,jsxRuntime.jsxs("div",{className:"flex flex-col md:flex-row md:items-start md:justify-between gap-4",children:[jsxRuntime.jsxs("div",{className:"min-w-0 flex-1",children:[jsxRuntime.jsx("div",{id:"page-title",children:jsxRuntime.jsx(rr,{tag:s||"h1",size:"xl",children:e})}),t?jsxRuntime.jsx("p",{className:"mt-2 text-base md:text-lg text-text-secondary",children:t}):null,i?jsxRuntime.jsx("div",{className:"mt-2 text-sm text-text-secondary",children:i}):null,a?.length?jsxRuntime.jsx("div",{className:"mt-6 flex flex-col items-stretch gap-3 md:hidden",children:a.map((g,h)=>jsxRuntime.jsx(Ke__namespace.default.Fragment,{children:g},h))}):null]}),a?.length?jsxRuntime.jsx("div",{className:"hidden md:flex md:items-start gap-2 shrink-0",children:a.map((g,h)=>jsxRuntime.jsx(Ke__namespace.default.Fragment,{children:g},h))}):null]}),n?jsxRuntime.jsx("div",{className:"mt-4 md:mt-6",children:n}):null]})}function KL({tabs:e,value:t,defaultValue:r,onChange:o,className:n,children:a}){let i=s=>{o?.(s);};return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("mb-3 md:mb-4 border-b-2 border-border-muted",n),children:jsxRuntime.jsxs(Hc,{selectedKey:t,defaultSelectedKey:r||e[0]?.id,onSelectionChange:i,children:[jsxRuntime.jsx(Gc,{className:"after:bg-transparent",children:e.map(s=>jsxRuntime.jsx(Wc,{id:s.id,isDisabled:s.disabled,children:s.label},s.id))}),a]})})}function YL({children:e,className:t,withSectionNav:r,navWidth:o="240px",gap:n="2rem",activeSection:a,onSectionChange:i,scrollBehavior:s,sectionIdPrefix:c="section-",scrollContainerId:l,navHeading:d,navStickyTop:u}){return r?jsxRuntime.jsx(XL,{position:r,navWidth:o,gap:n,activeSection:a,onSectionChange:i,scrollBehavior:s,sectionIdPrefix:c,scrollContainerId:l,navHeading:d,navStickyTop:u,className:t,children:e}):jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-full space-y-8 md:space-y-12",t),children:e})}function JL({children:e,sticky:t=true,className:r}){return jsxRuntime.jsx("aside",{className:tailwindMerge.twMerge(t?"lg:sticky lg:top-20":"",r),children:e})}function XL({activeSection:e,onSectionChange:t,position:r,navWidth:o,gap:n,children:a,className:i,scrollBehavior:s,sectionIdPrefix:c,scrollContainerId:l,navHeading:d,navStickyTop:u}){let m=Ke__namespace.default.useMemo(()=>{let x=[];return Ke__namespace.default.Children.forEach(a,v=>{if(Ke__namespace.default.isValidElement(v)&&(v.type===ai||typeof v.type=="object"&&v.type?.displayName==="Section"||typeof v.type=="function"&&v.type?.displayName==="Section")){let S=v.props;S.id?x.push({id:S.id,label:S.navLabel||(typeof S.title=="string"?S.title:`Section ${S.id}`)}):process.env.NODE_ENV==="development"&&console.warn("Section component used within PageLayout.Content with withSectionNav must have an id prop");}}),x},[a]),p=Ke__namespace.default.useMemo(()=>{let x=Ke__namespace.default.Children.map(a,v=>{if(Ke__namespace.default.isValidElement(v)&&(v.type===ai||typeof v.type=="object"&&v.type?.displayName==="Section"||typeof v.type=="function"&&v.type?.displayName==="Section")){let S=v.props;if(S.id)return Ke__namespace.default.cloneElement(v,{...S,id:`${c}${S.id}`})}return v});return jsxRuntime.jsx("div",{className:"space-y-8 md:space-y-12",children:x})},[a,c]),f=(x,v)=>jsxRuntime.jsx(Vc,{sections:m,activeSection:e,onSectionChange:t,orientation:x,scrollBehavior:s,sectionIdPrefix:c,scrollContainerId:l,heading:d,className:v});if(r==="above")return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("space-y-4",i),children:[jsxRuntime.jsx("div",{className:"sticky top-0 z-10 bg-background-body",children:f("horizontal")}),p]});let g=r==="left"?"var(--nav-width) 1fr":"1fr var(--nav-width)",h=u?"":"top-20",b=u?{top:u}:void 0,y=tailwindMerge.twMerge("hidden lg:block sticky self-start",h);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:"lg:hidden sticky top-0 z-10 mt-3 mb-4 bg-background-body border-b border-border-default shadow-sm",children:f("horizontal","py-3 mt-0")}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("lg:grid",i),style:{gridTemplateColumns:g,gap:n,"--nav-width":o},children:[r==="left"&&jsxRuntime.jsx("nav",{className:y,style:b,children:f("vertical")}),p,r==="right"&&jsxRuntime.jsx("nav",{className:y,style:b,children:f("vertical")})]})]})}function jL({children:e,className:t}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-1 overflow-auto min-h-0",t),children:e})}ia.Header=UL;ia.Tabs=KL;ia.Content=YL;ia.Aside=JL;ia.ScrollableContent=jL;function QL(e){return typeof e=="object"&&e!==null&&"features"in e&&Array.isArray(e.features)&&"type"in e&&typeof e.type=="string"}var ZL=process.env.NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN||"";function xv({label:e,selectedKey:t,defaultSelectedKey:r,onSelectionChange:o,placeholder:n="Enter a location...",errorMessage:a,description:i,size:s="md",tooltip:c,isRequired:l,isDisabled:d,showErrors:u=true,autoFocus:m=false,onSelect:p,searchTypes:f=["place","address"],defaultFilter:g,validationResult:h,countryRestrictions:b,proximity:y="ip",hideCountry:x=false,showIcon:v=true,useMobileTray:S=true,className:w}){let k=Ke.useRef(new WeakMap),P=Ke.useRef([]),T={requestType:"REST",method:"GET",url:"https://api.mapbox.com/geocoding/v5/mapbox.places/{q}.json",extraParams:{access_token:ZL,types:f.join(","),limit:"5",...b?.length?{country:b.join(",").toLowerCase()}:{},...y?{proximity:y==="ip"?"ip":y.join(",")}:{}},shouldLoad:R=>R.length>0,transformResponse:R=>{if(!QL(R))return [];let L=R.features.map(M=>{let V={id:M.id,name:M.place_name};return k.current.set(V,{type:M.place_type[0],center:M.center,context:M.context,address:M.address,text:M.text,properties:M.properties}),V});return L.length>0&&(P.current=L),L}},E=R=>{let L=k.current.get(R),M=R.name.split(", "),V=M[0],z=M.slice(1);x&&z.length>0&&(z=z.slice(0,-1));let U=z.join(", ");return jsxRuntime.jsxs("div",{className:"flex items-center gap-3 py-0.5",children:[v&&jsxRuntime.jsx(F,{name:L?.type==="address"?"MapPin":L?.type==="place"?"Buildings":L?.type==="region"?"MapPinArea":L?.type==="country"?"Flag":"Circle",className:"h-5 w-5 flex-shrink-0 text-text-secondary"}),jsxRuntime.jsxs("div",{className:"flex min-w-0 flex-col",children:[jsxRuntime.jsx("span",{className:"truncate font-medium text-text-primary",children:V}),U&&jsxRuntime.jsx("span",{className:"truncate text-sm text-text-secondary",children:U})]})]})},I=R=>R?jsxRuntime.jsx(F,{name:"CircleNotch",className:"h-4 w-4 animate-spin text-text-secondary"}):jsxRuntime.jsx(F,{name:"MagnifyingGlass",className:"h-4 w-4 text-text-secondary"});return jsxRuntime.jsx(Qs,{"data-testid":"autocomplete","data-config":JSON.stringify({types:f.join(","),country:b?.join(",")?.toLowerCase(),proximity:y==="ip"?"ip":y?.join(",")}),label:e||void 0,selectedKey:t,defaultSelectedKey:r,onSelectionChange:R=>{if(o?.(R),R){let M=P.current.find(V=>V.id===R);if(M){let V=k.current.get(M);V&&p({id:M.id,place_name:M.name,place_type:[V.type],center:V.center,context:V.context,address:V.address,text:V.text,properties:V.properties});}}},requestConfig:T,placeholder:n,errorMessage:a,description:i,size:s,tooltip:c,isRequired:l,isDisabled:d,showErrors:u,autoFocus:m,renderItem:E,renderLeftIcon:I,defaultFilter:g,validationResult:h,hideChevron:true,useMobileTray:S,className:w})}function yv({label:e,rightLabel:t,progressWidth:r=64,hideLabels:o=false,...n}){return jsxRuntime.jsx(reactAriaComponents.ProgressBar,{...n,className:ke(n.className,"flex flex-col gap-1"),children:({percentage:a,valueText:i,isIndeterminate:s})=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[!o&&jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-2",children:[jsxRuntime.jsx("span",{className:"text-sm text-text-primary",children:e}),jsxRuntime.jsx("span",{className:"text-sm text-text-primary",children:t||i})]}),jsxRuntime.jsx("div",{className:`relative h-2 w-${r} overflow-hidden rounded-full bg-background-muted outline-none`,children:jsxRuntime.jsx("div",{className:`absolute top-0 h-full rounded-full bg-action-default forced-colors:bg-[Highlight] ${s?"left-full duration-1000 ease-out animate-in slide-out-to-right-full repeat-infinite [--tw-enter-translate-x:calc(-16rem-100%)]":"left-0"}`,style:{width:(s?40:a)+"%"}})})]})})}function vv({as:e="div",size:t="md",tone:r="editorial",className:o="",children:n,...a}){let i=t==="md"?"":`prose-${t}`,s=r==="editorial"?"":`prose-${r}`;return jsxRuntime.jsx(e,{className:er("prose",i,s,o),...a,children:n})}function nD(e="2"){return {1:"p-2 text-xs",2:"p-3 text-sm",3:"p-4 text-base"}[e]}function aD(e){return e?"border-action-primary text-action-primary":"border-border text-text-primary"}function iD(){return "opacity-50 cursor-not-allowed"}function Cv({value:e,isDisabled:t,className:r,children:o,size:n="2",variant:a="primary"}){return jsxRuntime.jsx(reactAriaComponents.Radio,{value:e,isDisabled:t,className:ke(r,"relative flex items-center justify-center cursor-pointer transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-action-primary focus:ring-offset-2 rounded-lg min-h-[44px]"),children:({isSelected:s,isDisabled:c})=>jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex items-center justify-center w-full h-full transition-all duration-200 rounded-lg border-2 bg-background-surface",!(t||c)&&!s&&"hover:bg-background-hover hover:border-border-hover",nD(n),aD(s),(t||c)&&iD(),r),children:o})})}function Sv({value:e,defaultValue:t,onChange:r,isDisabled:o,isReadOnly:n,isRequired:a,className:i,children:s,size:c="2",variant:l="primary",columns:d="repeat(auto-fit, minmax(160px, 1fr))",gap:u="1"}){return jsxRuntime.jsx(reactAriaComponents.RadioGroup,{value:e,defaultValue:t,onChange:r,isDisabled:o,isReadOnly:n,isRequired:a,className:ke(i,"grid"),style:{gridTemplateColumns:/^\d+$/.test(String(d))?`repeat(${d}, minmax(0, 1fr))`:d,gap:u==="1"?"0.25rem":u==="2"?"0.5rem":u==="3"?"0.75rem":u==="4"?"1rem":typeof u=="number"?`${u}px`:u},children:Ke__namespace.default.Children.map(s,m=>Ke__namespace.default.isValidElement(m)?Ke__namespace.default.cloneElement(m,{size:c,variant:l}):m)})}function uD(e){return "primary"}var wv=Ke.createContext({variant:"primary"});function Nv(e){let{variant:t="primary",...r}=e,o=uD();return jsxRuntime.jsx(wv.Provider,{value:{variant:o},children:jsxRuntime.jsxs(reactAriaComponents.RadioGroup,{...r,className:ke(e.className,"group flex flex-col gap-2"),children:[jsxRuntime.jsx(Ue,{children:e.label}),jsxRuntime.jsx("div",{className:`flex ${r.orientation==="horizontal"?"flex-row gap-4":"flex-col gap-2"}`,children:e.children}),e.description&&jsxRuntime.jsx(Te,{children:e.description}),jsxRuntime.jsx(fe,{children:typeof e.errorMessage=="function"&&e.validationResult?e.errorMessage(e.validationResult):typeof e.errorMessage=="string"?e.errorMessage:null})]})})}function pD({isSelected:e,isInvalid:t,isDisabled:r}){let n=[Ze(),"focus-visible:outline-action-primary","w-5 h-5 rounded-full border-2 bg-background-surface transition-all"];return r?n.push("border-border-muted forced-colors:!border-[GrayText]"):t?n.push("border-feedback-error-border group-pressed:border-feedback-error-border dark:group-pressed:border-feedback-error-border forced-colors:!border-[Mark]"):e?n.push("border-[7px] border-action-primary forced-colors:!border-[Highlight] group-pressed:border-action-primary-hover dark:group-pressed:border-action-primary-hover"):n.push("border-border-default group-pressed:border-border-focus dark:group-pressed:border-border-focus"),n.join(" ")}function kv(e){return Ke.useContext(wv),jsxRuntime.jsx(reactAriaComponents.Radio,{...e,className:ke(e.className,"relative group flex items-center gap-2 text-sm text-text-primary transition disabled:text-text-secondary dark:text-text-primary dark:disabled:text-text-secondary forced-colors:disabled:text-[GrayText]"),children:t=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:pD(t)}),e.children]})})}var SD={sm:{toolbar:"p-1.5",contentWrapper:"min-h-[100px]",contentPadding:"p-3",placeholderPos:"left-3 top-3",prose:"prose-xs",h1:"[&_.ProseMirror_h1]:mb-2 [&_.ProseMirror_h1]:text-base [&_.ProseMirror_h1]:font-bold",h2:"[&_.ProseMirror_h2]:mb-1.5 [&_.ProseMirror_h2]:text-sm [&_.ProseMirror_h2]:font-semibold",p:"[&_.ProseMirror_p]:mb-1",list:"[&_.ProseMirror_ul]:mb-1 [&_.ProseMirror_ul]:ml-4 [&_.ProseMirror_ol]:mb-1 [&_.ProseMirror_ol]:ml-4",li:"[&_.ProseMirror_li]:mb-0.5",placeholderText:"text-xs"},md:{toolbar:"p-2",contentWrapper:"min-h-[200px]",contentPadding:"p-4",placeholderPos:"left-4 top-4",prose:"prose-sm",h1:"[&_.ProseMirror_h1]:mb-4 [&_.ProseMirror_h1]:text-2xl [&_.ProseMirror_h1]:font-bold",h2:"[&_.ProseMirror_h2]:mb-3 [&_.ProseMirror_h2]:text-xl [&_.ProseMirror_h2]:font-semibold",p:"[&_.ProseMirror_p]:mb-2",list:"[&_.ProseMirror_ul]:mb-2 [&_.ProseMirror_ul]:ml-6 [&_.ProseMirror_ol]:mb-2 [&_.ProseMirror_ol]:ml-6",li:"[&_.ProseMirror_li]:mb-1",placeholderText:"text-sm"},lg:{toolbar:"p-2.5",contentWrapper:"min-h-[250px]",contentPadding:"p-5",placeholderPos:"left-5 top-5",prose:"prose-base",h1:"[&_.ProseMirror_h1]:mb-5 [&_.ProseMirror_h1]:text-3xl [&_.ProseMirror_h1]:font-bold",h2:"[&_.ProseMirror_h2]:mb-4 [&_.ProseMirror_h2]:text-2xl [&_.ProseMirror_h2]:font-semibold",p:"[&_.ProseMirror_p]:mb-3",list:"[&_.ProseMirror_ul]:mb-3 [&_.ProseMirror_ul]:ml-6 [&_.ProseMirror_ol]:mb-3 [&_.ProseMirror_ol]:ml-6",li:"[&_.ProseMirror_li]:mb-1.5",placeholderText:"text-base"},xl:{toolbar:"p-3",contentWrapper:"min-h-[300px]",contentPadding:"p-6",placeholderPos:"left-6 top-6",prose:"prose-lg",h1:"[&_.ProseMirror_h1]:mb-6 [&_.ProseMirror_h1]:text-4xl [&_.ProseMirror_h1]:font-bold",h2:"[&_.ProseMirror_h2]:mb-5 [&_.ProseMirror_h2]:text-3xl [&_.ProseMirror_h2]:font-semibold",p:"[&_.ProseMirror_p]:mb-3",list:"[&_.ProseMirror_ul]:mb-3 [&_.ProseMirror_ul]:ml-8 [&_.ProseMirror_ol]:mb-3 [&_.ProseMirror_ol]:ml-8",li:"[&_.ProseMirror_li]:mb-2",placeholderText:"text-lg"}},li=({isActive:e=false,onPress:t,children:r})=>jsxRuntime.jsx(_,{variant:e?"secondary":"ghost",size:"sm",onPress:t,className:"p-1",children:r});function wD({initialUrl:e,isOpen:t,onClose:r,onSubmit:o}){let[n,a]=Ke.useState(e);return Ke__namespace.default.useEffect(()=>{a(e);},[e]),jsxRuntime.jsx(br,{isDismissable:true,isOpen:t,onOpenChange:s=>!s&&r(),children:jsxRuntime.jsx(reactAriaComponents.Modal,{className:"flex items-center justify-center p-4 outline-none focus:outline-none focus-visible:outline-none ring-0 focus:ring-0 focus-visible:ring-0",children:jsxRuntime.jsx(reactAriaComponents.Dialog,{className:"relative bg-background-surface rounded-lg shadow-xl max-w-md w-full",children:jsxRuntime.jsxs("form",{onSubmit:s=>{s.preventDefault(),o(n),r();},children:[jsxRuntime.jsx(Jt,{title:"Insert Link",onClose:r}),jsxRuntime.jsx("div",{className:"p-6",children:jsxRuntime.jsx(Vr,{label:"URL",type:"url",value:n,onChange:a,autoFocus:true,className:"w-full"})}),jsxRuntime.jsxs("div",{className:"flex justify-end gap-2 border-t border-border-muted p-4",children:[jsxRuntime.jsx(_,{variant:"secondary",onPress:r,children:"Cancel"}),jsxRuntime.jsx(_,{type:"submit",children:"Save"})]})]})})})})}function Rv({initialContent:e="",onChange:t,className:r,isDisabled:o=false,placeholder:n="Start typing...",id:a,size:i="md",headingLevels:s=[1,2]}){let c=SD[i],[l,d]=Ke.useState(false),u=react.useEditor({immediatelyRender:false,extensions:[hD__default.default.configure({heading:s.length>0?{levels:s}:false}),fD__default.default.configure({openOnClick:false,HTMLAttributes:{class:"text-text-link-default hover:text-text-link-hover underline decoration-text-link-default/30 hover:decoration-text-link-hover cursor-pointer"}})],content:e,editable:!o,onUpdate:({editor:f})=>{t?.(f.getHTML());},editorProps:{attributes:{class:tailwindMerge.twMerge(`prose ${c.prose} max-w-none`,"focus:outline-none","[&>*:first-child]:mt-0 [&>*:last-child]:mb-0")}}}),m=()=>{d(true);},p=f=>{f===""?u?.chain().focus().unsetLink().run():u?.chain().focus().setLink({href:f}).run();};return u?jsxRuntime.jsxs("div",{id:a,"data-richtexteditor":true,className:tailwindMerge.twMerge("flex flex-col rounded-md border border-border-input bg-background-input","outline-none focus-within:outline-none focus-within:border-border-input focus-within:ring-0 focus-within:shadow-none",o&&"opacity-50",r),style:{outline:"none"},children:[!o&&u&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs(menus.BubbleMenu,{editor:u,shouldShow:({editor:f})=>f.isActive("link")&&!l,className:"flex items-center gap-1 rounded-md border border-border-input bg-background-surface p-1 shadow-md",children:[jsxRuntime.jsxs(_,{variant:"ghost",size:"sm",className:"h-8 px-2",onPress:()=>{let f=u.getAttributes("link").href;f&&window.open(f,"_blank","noopener,noreferrer");},children:[jsxRuntime.jsx(F,{name:"ArrowSquareOut",className:"mr-1 h-4 w-4"}),"Open"]}),jsxRuntime.jsxs(_,{variant:"ghost",size:"sm",className:"h-8 px-2",onPress:m,children:[jsxRuntime.jsx(F,{name:"PencilSimple",className:"mr-1 h-4 w-4"}),"Edit"]}),jsxRuntime.jsxs(_,{variant:"ghost",size:"sm",className:"h-8 px-2",onPress:()=>u.chain().focus().unsetLink().run(),children:[jsxRuntime.jsx(F,{name:"X",className:"mr-1 h-4 w-4"}),"Remove"]})]}),jsxRuntime.jsx(wD,{isOpen:l,onClose:()=>d(false),onSubmit:p,initialUrl:u.getAttributes("link").href||""})]}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center gap-1 border-b border-border-input",c.toolbar),children:[s.map(f=>jsxRuntime.jsx(li,{isActive:u.isActive("heading",{level:f}),onPress:()=>u.chain().focus().toggleHeading({level:f}).run(),children:jsxRuntime.jsxs("span",{className:"text-xs font-bold",children:["H",f]})},f)),jsxRuntime.jsx(li,{isActive:u.isActive("bold"),onPress:()=>u.chain().focus().toggleBold().run(),children:jsxRuntime.jsx("span",{className:"text-xs font-bold",children:"B"})}),jsxRuntime.jsx(li,{isActive:u.isActive("italic"),onPress:()=>u.chain().focus().toggleItalic().run(),children:jsxRuntime.jsx("span",{className:"text-xs italic",children:"I"})}),jsxRuntime.jsx("div",{className:"mx-1 h-4 w-px bg-border-muted"}),jsxRuntime.jsx(li,{isActive:u.isActive("bulletList"),onPress:()=>u.chain().focus().toggleBulletList().run(),children:jsxRuntime.jsx(F,{name:"ListBullets",className:"h-4 w-4"})}),jsxRuntime.jsx(li,{isActive:u.isActive("orderedList"),onPress:()=>u.chain().focus().toggleOrderedList().run(),children:jsxRuntime.jsx(F,{name:"ListNumbers",className:"h-4 w-4"})}),jsxRuntime.jsx("div",{className:"mx-1 h-4 w-px bg-border-muted"}),jsxRuntime.jsx(li,{isActive:u.isActive("link"),onPress:m,children:jsxRuntime.jsx(F,{name:"PaperclipHorizontal",className:"h-4 w-4"})})]}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("relative w-full outline-none focus:outline-none",c.contentWrapper),children:[jsxRuntime.jsx(react.EditorContent,{editor:u,className:tailwindMerge.twMerge("w-full outline-none focus:outline-none",c.contentPadding,"[&_.ProseMirror]:min-h-[inherit]","[&_.ProseMirror]:outline-none [&_.ProseMirror]:focus:outline-none",c.h1,c.h2,c.p,"[&_.ProseMirror_ul]:list-disc","[&_.ProseMirror_ol]:list-decimal",c.list,c.li,"[&_.ProseMirror_blockquote]:border-l-4 [&_.ProseMirror_blockquote]:border-border-muted [&_.ProseMirror_blockquote]:pl-4 [&_.ProseMirror_blockquote]:italic","[&_.ProseMirror_code]:rounded [&_.ProseMirror_code]:bg-background-muted [&_.ProseMirror_code]:px-1 [&_.ProseMirror_code]:py-0.5 [&_.ProseMirror_code]:font-mono [&_.ProseMirror_code]:text-sm","[&_.ProseMirror_pre]:rounded-md [&_.ProseMirror_pre]:bg-background-muted [&_.ProseMirror_pre]:p-3 [&_.ProseMirror_pre]:font-mono [&_.ProseMirror_pre]:text-sm","[&_.ProseMirror_hr]:border-border-muted",o&&"pointer-events-none")}),u.isEmpty&&!o&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("pointer-events-none absolute text-text-secondary",c.placeholderPos,c.placeholderText),children:n})]})]}):null}function Ev({streetAddress:e,city:t,state:r,postalCode:o,longitude:n,latitude:a,href:i,LinkComponent:s,variant:c="outlined",layout:l="stacked",showMap:d=true,mapHeight:u=200,mapboxAccessToken:m,isLoading:p=false,className:f,contentClassName:g,showMapExpandToggle:h=false,expandedMapTitle:b="Explore map",expandedMapAddressLabel:y,piiEntity:x}){let v=[];t&&v.push(t),r&&o?v.push(`${r} ${o}`):r?v.push(r):o&&v.push(o);let S=v.join(", "),w=y||[e,S].filter(Boolean).join(", "),k=d&&n!==void 0&&a!==void 0,P=({children:E,className:I})=>i?s?jsxRuntime.jsx(s,{href:i,className:I,children:E}):jsxRuntime.jsx(at,{href:i,variant:"unstyled",className:tailwindMerge.twMerge("hover:underline",I),asButton:false,children:E}):jsxRuntime.jsx("span",{className:I,children:E});if(p){let E=l==="row";return jsxRuntime.jsxs(Je,{variant:c,className:tailwindMerge.twMerge(E?"flex flex-col md:flex-row":"flex flex-col",f),children:[k&&jsxRuntime.jsx(Je.Media,{aspectRatio:"auto",className:tailwindMerge.twMerge(E&&"md:order-2 md:flex-[2] md:min-w-0"),children:jsxRuntime.jsx(K,{width:"100%",height:u})}),jsxRuntime.jsxs(Je.Content,{className:tailwindMerge.twMerge("space-y-2 px-4 md:px-6",E&&"md:order-1 md:flex-[1] md:flex-shrink-0 md:flex md:flex-col md:justify-center"),children:[jsxRuntime.jsx(K,{width:"100%",height:16}),jsxRuntime.jsx(K,{width:"80%",height:16})]})]})}let T=l==="row";return jsxRuntime.jsxs(Je,{variant:c,className:tailwindMerge.twMerge("group/card relative",i&&"cursor-pointer",T?"flex flex-col md:flex-row":"flex flex-col",f),children:[i&&jsxRuntime.jsx(P,{className:"after:absolute after:inset-0 after:z-10",children:jsxRuntime.jsx("span",{className:"sr-only",children:e})}),k&&jsxRuntime.jsx(Je.Media,{aspectRatio:"auto",className:tailwindMerge.twMerge(T&&"md:order-2 md:flex-[2] md:min-w-0"),children:jsxRuntime.jsx(ni,{height:u,initialViewState:{longitude:n,latitude:a,zoom:14},showMarker:true,mapboxAccessToken:m,showExpandToggle:h,expandedMapTitle:b,expandedMapAddressLabel:w})}),jsxRuntime.jsx(Je.Content,{className:tailwindMerge.twMerge("px-4 md:px-6",T&&"md:order-1 md:flex-[1] md:flex-shrink-0 md:flex md:flex-col md:justify-center",g),children:jsxRuntime.jsxs("div",{className:"flex flex-col gap-1 min-w-0 text-left",children:[jsxRuntime.jsx("span",{className:"text-xl font-semibold leading-tight text-text-primary group-hover/card:text-text-brand transition-colors","data-pii-type":x?"address":void 0,"data-pii-entity":x,children:e}),S&&jsxRuntime.jsx("span",{className:"text-lg font-normal leading-relaxed text-text-secondary","data-pii-type":x?"city-state-zip":void 0,"data-pii-entity":x,children:S})]})})]})}function Lv({site:e,contact:t,LinkComponent:r,variant:o="outlined",layout:n="stacked",showMap:a=true,mapHeight:i=200,mapboxAccessToken:s,showEmail:c=true,showPhone:l=false,isLoading:d=false,className:u,contentClassName:m,fullHeight:p=false,showMapExpandToggle:f=false,expandedMapTitle:g="Explore map",expandedMapAddressLabel:h}){let b=[];e.city&&b.push(e.city),e.state&&e.postalCode?b.push(`${e.state} ${e.postalCode}`):e.state?b.push(e.state):e.postalCode&&b.push(e.postalCode);let y=b.join(", "),x=h||[e.streetAddress,y].filter(Boolean).join(", "),v=a&&e.longitude!==void 0&&e.latitude!==void 0,S=t?`${t.firstName} ${t.lastName}`.trim():"",w=({children:P,href:T,className:E})=>T?r?jsxRuntime.jsx(r,{href:T,className:E,children:P}):jsxRuntime.jsx(at,{href:T,variant:"unstyled",className:tailwindMerge.twMerge("hover:underline",E),asButton:false,children:P}):jsxRuntime.jsx("span",{className:E,children:P});if(d){let P=n==="row";return jsxRuntime.jsxs(Je,{variant:o,className:tailwindMerge.twMerge(p&&"h-full",P?"flex flex-col md:flex-row":"flex flex-col",u),children:[v&&jsxRuntime.jsx(Je.Media,{aspectRatio:"auto",className:tailwindMerge.twMerge(P&&"md:order-2 md:flex-[2] md:min-w-0",p&&"flex-1"),children:jsxRuntime.jsx(K,{width:"100%",height:p?"100%":i})}),jsxRuntime.jsxs(Je.Content,{className:tailwindMerge.twMerge("space-y-4 px-4 py-4",P&&"md:order-1 md:flex-[1] md:flex-shrink-0 md:flex md:flex-col md:justify-center"),children:[jsxRuntime.jsxs("div",{className:"space-y-2",children:[jsxRuntime.jsx(K,{width:"100%",height:16}),jsxRuntime.jsx(K,{width:"80%",height:16})]}),t&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:"border-t border-border-default"}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(K,{width:40,height:40,className:"rounded flex-shrink-0"}),jsxRuntime.jsxs("div",{className:"flex-1 space-y-1",children:[jsxRuntime.jsx(K,{width:"50%",height:14}),jsxRuntime.jsx(K,{width:"100%",height:12})]})]})]})]})]})}let k=n==="row";return jsxRuntime.jsxs(Je,{variant:o,className:tailwindMerge.twMerge("group/card relative",e.href&&"cursor-pointer",p&&"h-full",k?"flex flex-col md:flex-row":"flex flex-col",u),children:[e.href&&jsxRuntime.jsx(w,{href:e.href,className:"after:absolute after:inset-0 after:z-10",children:jsxRuntime.jsx("span",{className:"sr-only",children:e.streetAddress})}),v&&jsxRuntime.jsx(Je.Media,{aspectRatio:"auto",className:tailwindMerge.twMerge(k&&"md:order-2 md:flex-[2] md:min-w-0",p&&"flex-1"),children:jsxRuntime.jsx(ni,{height:p?"100%":i,initialViewState:{longitude:e.longitude,latitude:e.latitude,zoom:14},showMarker:true,mapboxAccessToken:s,showExpandToggle:f,expandedMapTitle:g,expandedMapAddressLabel:x})}),jsxRuntime.jsxs(Je.Content,{className:tailwindMerge.twMerge("space-y-4 px-4 py-4",k&&"md:order-1 md:flex-[1] md:flex-shrink-0 md:flex md:flex-col md:justify-center",m),children:[jsxRuntime.jsxs("div",{className:"flex flex-col gap-1 min-w-0 text-left",children:[jsxRuntime.jsx("span",{className:"text-xl font-semibold leading-tight text-text-primary group-hover/card:text-text-brand transition-colors","data-pii-type":e.piiEntity?"address":void 0,"data-pii-entity":e.piiEntity,children:e.streetAddress}),y&&jsxRuntime.jsx("span",{className:"text-lg font-normal leading-relaxed text-text-secondary","data-pii-type":e.piiEntity?"city-state-zip":void 0,"data-pii-entity":e.piiEntity,children:y})]}),t&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:"border-t border-border-default"}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2 relative",children:[jsxRuntime.jsx(Eo,{firstName:t.firstName,lastName:t.lastName,src:t.avatarUrl,size:"md",variant:"user",shape:"square",className:"flex-shrink-0",piiEntity:t.piiEntity}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[t.href?jsxRuntime.jsx(w,{href:t.href,className:"text-sm font-semibold leading-tight text-text-primary block mb-0.5 hover:text-text-brand transition-colors relative z-20",children:jsxRuntime.jsx("span",{"data-pii-type":t.piiEntity?"full-name":void 0,"data-pii-entity":t.piiEntity,children:S})}):jsxRuntime.jsx("span",{className:"text-sm font-semibold leading-tight text-text-primary block mb-0.5","data-pii-type":t.piiEntity?"full-name":void 0,"data-pii-entity":t.piiEntity,children:S}),jsxRuntime.jsxs("div",{className:"space-y-0.5",children:[c&&t.email&&jsxRuntime.jsxs("div",{className:"flex items-center gap-1.5 text-text-primary",children:[jsxRuntime.jsx(F,{name:"Envelope",size:12,className:"text-text-secondary flex-shrink-0"}),jsxRuntime.jsx(at,{href:`mailto:${t.email}`,variant:"unstyled",className:"text-xs leading-tight truncate text-text-primary relative z-20","data-pii-type":t.piiEntity?"email":void 0,"data-pii-entity":t.piiEntity,children:t.email})]}),l&&t.phone&&jsxRuntime.jsxs("div",{className:"flex items-center gap-1.5 text-text-primary",children:[jsxRuntime.jsx(F,{name:"Phone",size:12,className:"text-text-secondary flex-shrink-0"}),jsxRuntime.jsx(at,{href:`tel:${t.phone}`,variant:"unstyled",className:"text-xs leading-tight truncate text-text-primary relative z-20","data-pii-type":t.piiEntity?"phone":void 0,"data-pii-entity":t.piiEntity,children:va(t.phone)})]})]})]})]})]})]})]})}function Dv({label:e,description:t,tooltip:r,errorMessage:o,size:n="md",className:a,value:i,defaultValue:s=0,onChange:c,min:l=0,max:d=100,step:u=1,disabled:m,showValue:p=true}){let f=typeof i=="number",[g,h]=Ke__namespace.default.useState(s),b=f?i:g,y=Math.min(Math.max(b,l),d),x=Math.max(d-l,1e-5),v=(y-l)/x*100;return jsxRuntime.jsxs("div",{className:ke(a,"group flex w-full flex-col gap-1"),children:[e&&jsxRuntime.jsx(Ue,{size:n,tooltip:r,className:"mb-1",children:e}),jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[jsxRuntime.jsxs("div",{className:"relative w-full select-none",children:[jsxRuntime.jsx("div",{className:"h-1.5 w-full rounded-full bg-background-muted"}),jsxRuntime.jsx("div",{className:"pointer-events-none absolute left-0 top-1/2 h-1.5 -translate-y-1/2 rounded-full bg-action-brand",style:{width:`${v}%`},"aria-hidden":true}),jsxRuntime.jsx("input",{type:"range",min:l,max:d,step:u,value:b,disabled:m,"aria-invalid":!!o,onChange:S=>{let w=Number(S.currentTarget.value);f||h(w),c?.(w);},className:tailwindMerge.twMerge("absolute inset-0 w-full cursor-pointer appearance-none bg-transparent outline-none","[&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:h-4 [&::-webkit-slider-thumb]:w-4 [&::-webkit-slider-thumb]:rounded-full [&::-webkit-slider-thumb]:bg-background-input [&::-webkit-slider-thumb]:border [&::-webkit-slider-thumb]:border-border-input","hover:[&::-webkit-slider-thumb]:shadow-sm focus-visible:[&::-webkit-slider-thumb]:outline-2 focus-visible:[&::-webkit-slider-thumb]:outline-action-default","[&::-moz-range-thumb]:h-4 [&::-moz-range-thumb]:w-4 [&::-moz-range-thumb]:rounded-full [&::-moz-range-thumb]:bg-background-input [&::-moz-range-thumb]:border [&::-moz-range-thumb]:border-border-input","hover:[&::-moz-range-thumb]:shadow-sm focus-visible:[&::-moz-range-thumb]:outline-2 focus-visible:[&::-moz-range-thumb]:outline-action-default",m?"cursor-not-allowed opacity-60":void 0)})]}),p&&jsxRuntime.jsx("div",{className:"min-w-10 text-right text-sm text-text-primary tabular-nums",children:Math.round(y)})]}),t&&jsxRuntime.jsx(Te,{className:"mt-2 text-text-secondary",children:t}),o&&jsxRuntime.jsx(fe,{className:"mt-1",children:o})]})}var ED=Ke__namespace.default.createContext({orientation:"horizontal",isResizing:false});function Iv(e,t){return e===void 0?t:e}function MD(e,t){return typeof e=="number"?e:typeof e=="string"&&e.endsWith("%")?Number.parseFloat(e)/100*t:Number.parseFloat(e.toString())}function Kc({asideWidth:e,asideHeight:t,minAsideWidth:r=240,minAsideHeight:o=200,minMainWidth:n=400,minMainHeight:a=300,orientation:i="horizontal",resizable:s=false,onAsideResize:c,onResizeStart:l,onResizeEnd:d,className:u,dividerClassName:m,children:p}){let f=Ke.useRef(null),[g,h]=Ke.useState(false),b=i==="horizontal"?400:300,y=Iv(i==="horizontal"?e:t,b),[x,v]=Ke.useState(null),S=Ke.useCallback(R=>{if(!f.current||!g)return;let L=f.current.getBoundingClientRect(),M=i==="horizontal"?L.width:L.height,V=i==="horizontal"?R.clientX:R.clientY,U=(i==="horizontal"?L.right:L.bottom)-V,Q=M-U,Z=i==="horizontal"?r:o,H=i==="horizontal"?n:a;U<Z||Q<H||(v(U),c?.(U));},[g,i,r,o,n,a,c]),w=Ke.useCallback(()=>{h(false),d?.();},[d]),k=Ke.useCallback(R=>{R.preventDefault(),R.stopPropagation(),h(true),l?.();},[l]);Ke.useEffect(()=>{if(g)return document.addEventListener("mousemove",S),document.addEventListener("mouseup",w),document.body.style.cursor=i==="horizontal"?"col-resize":"row-resize",document.body.style.userSelect="none",()=>{document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",w),document.body.style.cursor="",document.body.style.userSelect="";}},[g,S,w,i]);let P=Ke__namespace.default.Children.toArray(p).find(R=>Ke__namespace.default.isValidElement(R)&&R.type===Bv),T=Ke__namespace.default.Children.toArray(p).find(R=>Ke__namespace.default.isValidElement(R)&&R.type===Vv),E=x??y,I=typeof E=="number"?`${E}px`:E;return jsxRuntime.jsx(ED.Provider,{value:{orientation:i,isResizing:g},children:jsxRuntime.jsxs("div",{ref:f,className:tailwindMerge.twMerge("flex w-full h-full",i==="horizontal"?"flex-row":"flex-col",u),children:[jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-auto flex-1",i==="horizontal"?"h-full":"w-full"),children:P}),s&&jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("relative group flex-shrink-0",i==="horizontal"?"w-2 -mx-1 cursor-col-resize":"h-2 -my-1 cursor-row-resize",m),onMouseDown:k,role:"separator","aria-orientation":i,"aria-label":"Resize divider",tabIndex:0,onKeyDown:R=>{if(!f.current)return;let L=f.current.getBoundingClientRect(),M=i==="horizontal"?L.width:L.height,V=x??MD(y,M),z=20,U=i==="horizontal"?r:o,Q=i==="horizontal"?n:a;if(i==="horizontal"){if(R.key==="ArrowLeft"){let Z=Math.min(V+z,M-Q);v(Z),c?.(Z);}else if(R.key==="ArrowRight"){let Z=Math.max(V-z,U);v(Z),c?.(Z);}}else if(R.key==="ArrowUp"){let Z=Math.min(V+z,M-Q);v(Z),c?.(Z);}else if(R.key==="ArrowDown"){let Z=Math.max(V-z,U);v(Z),c?.(Z);}},children:[jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("absolute bg-border-default transition-all",i==="horizontal"?"left-1/2 -translate-x-1/2 w-px h-full group-hover:w-1":"top-1/2 -translate-y-1/2 h-px w-full group-hover:h-1","group-hover:bg-action-brand/50",g&&"bg-action-brand",g&&(i==="horizontal"?"w-1":"h-1"))}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("absolute",i==="horizontal"?"top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-1 h-8":"top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-8 h-1","bg-border-muted rounded-full opacity-0 group-hover:opacity-100 transition-opacity")})]}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-auto flex-shrink-0",i==="horizontal"?"h-full":"w-full"),style:{[i==="horizontal"?"width":"height"]:I},children:T})]})})}function Bv({className:e,children:t}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-full h-full",e),children:t})}function Vv({className:e,children:t}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-full h-full",e),children:t})}Kc.Main=Bv;Kc.Aside=Vv;var DD=e=>{let t=Ut({isInvalid:e.isInvalid,isDisabled:e.isDisabled,isFocused:e.isFocused,transparent:e.transparent,size:e.size}),r=`min-h-[100px] py-2 ${e.isDisabled?"resize-none":e.isResizable?"resize-y":"resize-none"}`;return tailwindMerge.twMerge(t,r,e.className)};function zv({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,required:a,transparent:i,isInvalid:s,isDisabled:c,isResizable:l=false,className:d,validationResult:u,reserveErrorSpace:m=true,...p}){let{isFocused:f,handleFocus:g,handleBlur:h}=Dr();return jsxRuntime.jsx("div",{className:"group flex flex-col",children:jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(Ue,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(wt,{children:jsxRuntime.jsx("textarea",{...p,required:a,onFocus:b=>{p.onFocus&&p.onFocus(b),g(b);},onBlur:b=>{p.onBlur&&p.onBlur(b),h(b);},className:DD({isInvalid:s,isDisabled:c,isResizable:l,isFocused:f,size:o,transparent:i,className:d}),disabled:c})}),m?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(fe,{size:o,children:r}):typeof r=="function"&&u?jsxRuntime.jsx(fe,{size:o,children:r(u)}):t?jsxRuntime.jsx(Te,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(fe,{size:o,className:"mt-1",children:r}):typeof r=="function"&&u?jsxRuntime.jsx(fe,{size:o,className:"mt-1",children:r(u)}):t?jsxRuntime.jsx(Te,{size:o,className:"mt-1",children:t}):null})]})})}function Wv({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,required:a,transparent:i,isInvalid:s,isDisabled:c,isResizable:l=false,className:d,validationResult:u,value:m="",onChange:p,chips:f=[],onChipsChange:g,triggerPattern:h="{{",onTriggerDetected:b,onTriggerDismissed:y,renderChip:x,chipVariant:v="primary",chipSize:S,...w}){let k=Ke.useRef(null),{isFocused:P,handleFocus:T,handleBlur:E}=Dr(),I=S||"sm",R=Ke.useRef(null),L=Ke.useCallback(H=>{let j="",G=A=>{if(A.nodeType===Node.TEXT_NODE){if(!A.parentElement?.closest("[data-chip-id]")){let N=A.textContent||"";j+=N;}}else if(A.nodeType===Node.ELEMENT_NODE){let W=A;if(W.hasAttribute("data-chip-id")){let N=W.getAttribute("data-chip-id");j+=`{{${N}}}`;return}else if(W.tagName==="BR"){j+=`
|
|
44
|
-
`;return}else
|
|
43
|
+
`,backgroundSize:"30px 30px"}})})})}var lv="color-mix(in srgb, var(--color-map-neutral-border) 8%, transparent)",rL={backgroundImage:`linear-gradient(to right, ${lv} 1px, transparent 1px), linear-gradient(to bottom, ${lv} 1px, transparent 1px)`,backgroundSize:"24px 24px"},oL={backgroundColor:"color-mix(in srgb, var(--color-map-marker-default) 12%, transparent)"};function Fc({style:e,className:t,message:r="Map requires Mapbox token",schematic:o=false,showMarker:n=true}){return o?jsxRuntime.jsxs("div",{style:e,"data-testid":"map-schematic",className:tailwindMerge.twMerge("relative overflow-hidden border border-map-neutral-border bg-background-muted",t),children:[jsxRuntime.jsx("div",{"aria-hidden":"true",className:"absolute inset-0",style:rL}),n?jsxRuntime.jsxs("div",{className:"absolute inset-0 flex items-center justify-center",children:[jsxRuntime.jsx("span",{"aria-hidden":"true",className:"absolute h-24 w-24 rounded-full",style:oL}),jsxRuntime.jsx(V,{name:"MapPin",size:36,weight:"fill",className:"relative text-map-marker-default"})]}):null]}):jsxRuntime.jsx("div",{style:e,className:tailwindMerge.twMerge("flex items-center justify-center bg-background-muted text-text-secondary",t),children:jsxRuntime.jsxs("div",{className:"text-center",children:[jsxRuntime.jsx(V,{name:"MapPin",size:48,className:"mx-auto mb-2 opacity-50"}),jsxRuntime.jsx("p",{className:"text-sm",children:r})]})})}var cv={streets:"streets",satellite:"satellite",neutral:"neutral"},Bc="streets";function Vc(e,t){switch(e){case "streets":return t?"mapbox://styles/victor-texture/clzwxtrng005s01p93rtr04op":"mapbox://styles/mapbox/streets-v12";case "satellite":return "mapbox://styles/mapbox/satellite-streets-v12";case "neutral":return t?"mapbox://styles/mapbox/dark-v11":"mapbox://styles/mapbox/light-v11";default:return t?"mapbox://styles/victor-texture/clzwxtrng005s01p93rtr04op":"mapbox://styles/mapbox/streets-v12"}}function dv({longitude:e,latitude:t,showPulse:r=true,accuracy:o}){return jsxRuntime.jsx(lL.Marker,{longitude:e,latitude:t,anchor:"center",children:jsxRuntime.jsxs("div",{className:"relative flex items-center justify-center",children:[r&&jsxRuntime.jsx("div",{className:"absolute h-12 w-12 animate-[ping_2s_ease-in-out_infinite] rounded-full bg-action-brand opacity-30",style:{animationDelay:"0s"}}),jsxRuntime.jsx("div",{className:"relative z-10 flex h-5 w-5 items-center justify-center rounded-full bg-background-surface shadow-lg",children:jsxRuntime.jsx("div",{className:"h-3 w-3 rounded-full bg-action-brand"})}),o&&o>0&&jsxRuntime.jsx("div",{className:"pointer-events-none absolute rounded-full border border-action-brand/20 bg-action-brand/10",style:{width:`${Math.min(o/2,100)}px`,height:`${Math.min(o/2,100)}px`}})]})})}var ms=Je__namespace.default.forwardRef(({initialViewState:e,viewState:t,onViewStateChange:r,scrollEnabled:o=true,className:n,previewMode:a=false,previewModeCta:i,onPreviewModePress:s,mapType:c=Bc,layers:l=[],mapboxAccessToken:d,transformRequest:u,isLoading:m=false,onLoad:p,controls:f="default",showUserLocation:g=true,onUserLocationChange:y,children:b,additionalInteractiveLayerIds:h=[],onMapClick:x,showMarker:v=false,markerLocation:S},w)=>{let P=d??vc();if(!P)return jsxRuntime.jsx("div",{className:`relative ${n||""}`,style:{width:"100%",height:"100%"},children:jsxRuntime.jsx(Fc,{className:"w-full h-full",message:"Map unavailable"})});let{isDarkTheme:T}=Yt(),k=Je.useRef(null),R=Je.useRef(null),[I,E]=Je.useState(false),[L,M]=Je.useState(false);Je.useEffect(()=>{Ac();},[]);let[F,z]=Je.useState(false),W=Je.useRef(0),[X,Z]=Je.useState(null),[O,j]=Je.useState(null),H=Je.useRef(null),A=Je.useRef(null),[G,N]=Cc("interactiveMap.trackingLocation",false),[C,D]=Je.useState(false);Je.useEffect(()=>{if(!navigator.geolocation){D(true);return}if(G){if(!navigator.permissions?.query){D(true);return}navigator.permissions.query({name:"geolocation"}).then(Q=>{Q.state!=="granted"&&N(false),D(true);}).catch(()=>{D(true);});}else D(true);},[]),Je.useEffect(()=>{let Q=setTimeout(()=>{I||M(true);},200);return ()=>clearTimeout(Q)},[I]),Je.useEffect(()=>{A.current=null;},[c,T]),Je.useEffect(()=>{if(I)return;let Q=setInterval(()=>{if(k.current?.loaded()){E(true),M(false);let J=k.current.getMap?.();J&&A.current!==J&&(A.current=J,p?.()),clearInterval(Q);}},200);return ()=>clearInterval(Q)},[I,p]),Je.useEffect(()=>{if(C){if(!G||a){H.current!==null&&(navigator.geolocation.clearWatch(H.current),H.current=null);return}if(!navigator.geolocation){console.warn("Geolocation is not supported by this browser.");return}return H.current=navigator.geolocation.watchPosition(Q=>{let J={latitude:Q.coords.latitude,longitude:Q.coords.longitude,accuracy:Q.coords.accuracy};j(J),y?.(J);},Q=>{console.warn("Geolocation error:",Q.message),j(null),y?.(null);},{enableHighAccuracy:true,maximumAge:3e4,timeout:3e4}),()=>{H.current!==null&&(navigator.geolocation.clearWatch(H.current),H.current=null);}}},[G,a,y,C]);let B=Je.useCallback(()=>{E(true),M(false);let Q=k.current?.getMap?.();Q&&A.current!==Q&&(A.current=Q,p?.());},[p]),Y=Je.useCallback(()=>{k.current&&e&&(z(false),W.current=0,k.current.flyTo({center:[e.longitude||0,e.latitude||0],zoom:e.zoom||0,bearing:e.bearing||0,pitch:e.pitch||0,duration:1e3}));},[e]),re=Je.useMemo(()=>f===false||f===null?[]:f==="default"||f===void 0?Gp:f,[f]),ue=Je.useCallback(()=>{if(!navigator.geolocation){console.warn("Geolocation is not supported by this browser.");return}N(true),navigator.geolocation.getCurrentPosition(Q=>{let{latitude:J,longitude:ve}=Q.coords;k.current&&k.current.jumpTo({center:[ve,J],zoom:15});},Q=>{console.warn("Geolocation error:",Q.message),Q.code===Q.PERMISSION_DENIED&&N(false);},{enableHighAccuracy:true,timeout:1e4,maximumAge:0});},[]),$=Je.useMemo(()=>{if(a)return null;let Q=re.map(J=>J.type==="navigation"?{...J,onResetZoom:J.onResetZoom||Y,onGeolocateClick:J.onGeolocateClick||ue}:J);return Xp(Q,{mapRef:k,layers:l,showResetButton:F})},[re,k,a,l,Y,F,ue]),se=Je.useMemo(()=>{let Q=[];return l.filter(J=>J.events?.onClick||J.events?.onMouseEnter||J.events?.onMouseLeave||J.tooltip).forEach(J=>{J.kind==="clusteredVector"?(Q.push(`${J.id}-clusters`),Q.push(`${J.id}-points`),Q.push(`${J.id}-selected-point`)):Q.push(J.id);}),[...Q,...h]},[l,h]),He=Je.useMemo(()=>{let Q=new Map;return l.forEach(J=>{J.events&&(Q.set(J.id,J.events),J.kind==="clusteredVector"&&(Q.set(`${J.id}-clusters`,J.events),Q.set(`${J.id}-points`,J.events),Q.set(`${J.id}-selected-point`,J.events)));}),Q},[l]),te=Je.useMemo(()=>{let Q=new Map;return l.forEach(J=>{J.tooltip&&(Q.set(J.id,J.tooltip),J.kind==="clusteredVector"&&(Q.set(`${J.id}-clusters`,J.tooltip),Q.set(`${J.id}-points`,J.tooltip),Q.set(`${J.id}-selected-point`,J.tooltip)));}),Q},[l]),ae=Je.useMemo(()=>{let Q=new Map;return l.forEach(J=>{J.kind==="clusteredVector"&&(Q.set(J.id,J),Q.set(`${J.id}-clusters`,J),Q.set(`${J.id}-points`,J),Q.set(`${J.id}-selected-point`,J));}),Q},[l]),ie=Je.useMemo(()=>{if(!v)return null;let Q=S?.longitude??t?.longitude??e?.longitude,J=S?.latitude??t?.latitude??e?.latitude;return Q===void 0||J===void 0?null:{longitude:Q,latitude:J}},[v,S,t,e]),ye=Je.useCallback(Q=>{if(a)return;let J=Q.features?.[0];if(!J||!J.layer)return;let ve=J.layer.id,ce=He.get(ve),q=te.get(ve),he;J.geometry.type==="Point"?he=J.geometry.coordinates:he=[Q.lngLat.lng,Q.lngLat.lat];let ge={id:J.id??J.properties?.id,lngLat:he,properties:J.properties||{},layerId:ve},Pe=ae.get(ve),nt=J.properties?.cluster===true;if(Pe&&nt){let Xe=k.current;if(Xe){let tr=Xe.getZoom(),Re=Math.min(tr+3,18);Xe.flyTo({center:he,zoom:Re,duration:1e3});}return}if(ce?.onClick&&ce.onClick(ge),q&&q.trigger==="click"){let Xe;Pe&&"cluster"in q?q.point&&(Xe=q.point(ge)):"content"in q&&(Xe=typeof q.content=="function"?q.content(ge):q.content),Xe&&Z({feature:ge,content:Xe,bare:q.bare});}x&&x(Q);},[He,te,a,x,ae,k,se]),Le=Je.useCallback(Q=>{let J=Q.features?.[0];if(!J||!J.layer)return null;let ve=J.layer.id,ce=te.get(ve);if(!ce||ce.trigger!=="hover"&&ce.trigger!==void 0)return null;let q;J.geometry.type==="Point"?q=J.geometry.coordinates:q=[Q.lngLat.lng,Q.lngLat.lat];let he={id:J.id??J.properties?.id,lngLat:q,properties:J.properties||{},layerId:ve},ge;if(ae.get(ve)&&"cluster"in ce){let nt=J.properties?.cluster===true;if(nt&&ce.cluster){let Xe=J.properties?.point_count||0;ge=ce.cluster(Xe,he);}else !nt&&ce.point?ge=ce.point(he):ge=nt?`${J.properties?.point_count||0} items`:null;}else "content"in ce&&(ge=typeof ce.content=="function"?ce.content(he):ce.content);return ge?{feature:he,content:ge,bare:ce.bare}:null},[te,ae]),Ue=Je.useCallback(Q=>{if(a)return;let J=Q.features?.[0];if(!J||!J.layer)return;let ve=J.layer.id,ce=He.get(ve);if(ce?.onMouseEnter){let he;J.geometry.type==="Point"?he=J.geometry.coordinates:he=[Q.lngLat.lng,Q.lngLat.lat];let ge={id:J.id??J.properties?.id,lngLat:he,properties:J.properties||{},layerId:ve};ce.onMouseEnter(ge);}let q=Le(Q);q&&Z(q),k.current&&(k.current.getCanvas().style.cursor="pointer");},[He,a,k,Le]),jt=Je.useCallback(Q=>{if(a)return;let J=Q.features?.[0];if(!J||!J.layer)return;let ve=Le(Q);if(ve){Z(ce=>ce&&ce.feature.layerId===ve.feature.layerId&&ce.feature.id===ve.feature.id?ce:ve);return}Z(ce=>{if(!ce)return ce;let q=te.get(ce.feature.layerId);return q&&(q.trigger==="hover"||q.trigger===void 0)?null:ce});},[a,Le,te]),Yr=Je.useCallback(()=>{if(!a){if(He.forEach(Q=>{Q.onMouseLeave?.();}),X){let Q=X.feature.layerId,J=l.find(ve=>ve.id===Q);if(!J){let ve=Q.replace(/-(?:clusters|points|selected-point|cluster-shadows|points-shadow|cluster-count)$/,"");J=l.find(ce=>ce.id===ve);}J?.tooltip&&(J.tooltip.trigger||"hover")==="hover"&&Z(null);}k.current&&(k.current.getCanvas().style.cursor="");}},[He,a,k,X,l]),Po=Je.useCallback((Q,J)=>{for(let ve of l)if(ve.tooltip&&!(J&&ve.id!==J)){if(ve.kind==="geojson"){if(typeof ve.data=="string")continue;let ce=ve.data,he=(ce.type==="FeatureCollection"?ce.features:[ce]).find(ge=>ge.id===Q);if(he&&he.geometry.type==="Point")return {id:he.id,lngLat:he.geometry.coordinates,properties:he.properties||{},layerId:ve.id}}else if(ve.kind==="customPins"){let ce=ve.data.find(q=>q.id===Q||q._id===Q||q.key===Q);if(ce)return {id:Q,lngLat:ve.getPosition(ce),properties:ce,layerId:ve.id}}}return null},[l]);Je.useImperativeHandle(w,()=>({showTooltip:(Q,J)=>{let ve=Po(Q,J);if(!ve)return;let ce=l.find(q=>q.id===ve.layerId);if(ce?.tooltip&&"content"in ce.tooltip){let q=typeof ce.tooltip.content=="function"?ce.tooltip.content(ve):ce.tooltip.content;Z({feature:ve,content:q,bare:ce.tooltip.bare});}},hideTooltip:()=>{Z(null);},getMap:()=>k.current,markMapAsMoved:()=>{z(true);}}),[Po,l]);let Uo=(Q,J)=>u?u(Q,J):{url:Q},Ot=m||L;return jsxRuntime.jsx("div",{ref:R,className:tailwindMerge.twMerge("relative flex h-full w-full overflow-hidden",a&&"cursor-pointer",n),onClick:a?s:void 0,children:jsxRuntime.jsxs("div",{style:{flex:1},children:[jsxRuntime.jsxs(lL__default.default,{ref:k,initialViewState:e,...t&&t,style:{width:"100%",height:"100%"},mapStyle:Vc(c,T),styleDiffing:false,mapboxAccessToken:P,transformRequest:Uo,onLoad:B,onMove:a?void 0:Q=>{if(Q.originalEvent&&I){let J=Q.originalEvent.type,ve=Math.abs((Q.viewState.latitude??0)-(e?.latitude??0)),ce=Math.abs((Q.viewState.longitude??0)-(e?.longitude??0)),q=Math.abs((Q.viewState.zoom??0)-(e?.zoom??0));e&&(ve>1e-4||ce>1e-4||q>.1)&&(J==="mousemove"||J==="touchmove"||J==="pointermove"?z(true):(J==="wheel"||J==="mousewheel")&&(W.current+=1,W.current>=3&&z(true)));}r?.(Q.viewState);},onClick:a?void 0:ye,onMouseMove:a?void 0:jt,onMouseEnter:a?void 0:Ue,onMouseLeave:a?void 0:Yr,interactiveLayerIds:a?[]:se,scrollZoom:a?false:o,dragPan:!a,dragRotate:!a,doubleClickZoom:!a,interactive:!a,attributionControl:false,children:[jsxRuntime.jsx(lL.AttributionControl,{position:"top-left"}),$,ds(l,c),b,ie&&jsxRuntime.jsx(lL.Marker,{longitude:ie.longitude,latitude:ie.latitude,anchor:"bottom",children:jsxRuntime.jsx(V,{name:"MapPin",size:36,className:"text-map-marker-default",weight:"fill"})}),g&&O&&jsxRuntime.jsx(dv,{longitude:O.longitude,latitude:O.latitude,accuracy:O.accuracy}),X&&jsxRuntime.jsx(lL.Popup,{longitude:X.feature.lngLat[0],latitude:X.feature.lngLat[1],offset:15,closeButton:false,closeOnClick:false,className:X.bare?"map-tooltip map-tooltip-bare":"map-tooltip",maxWidth:"none",children:X.content})]},`map-${c}-${T}`),Ot&&jsxRuntime.jsx(Ic,{}),a&&i&&jsxRuntime.jsx("div",{className:"absolute bottom-8 right-8 z-10",children:i})]})})});ms.displayName="InteractiveMap";async function pv(e,t,r,o={}){if(e.hasImage(t))return;let n=o.size??64,a=o.color??"#2c2a26",i=o.weight??"regular",s=server.renderToStaticMarkup(Je.createElement(r,{size:n,color:a,weight:i})),c=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(s)}`;await new Promise((l,d)=>{let u=new Image(n,n);u.onload=()=>{try{e.hasImage(t)||e.addImage(t,u,{sdf:!1}),l();}catch(m){d(m instanceof Error?m:new Error(`Failed to addImage "${t}": ${String(m)}`));}},u.onerror=m=>{d(m instanceof Error?m:new Error(`Failed to load icon "${t}"`));},u.src=c;});}function si({width:e="100%",height:t="100%",initialViewState:r={longitude:-122.4194,latitude:37.7749,zoom:14},isLoading:o=false,mapType:n="streets",layers:a=[],mapboxAccessToken:i,showMarker:s=true,showAttribution:c=false,onLoad:l,className:d,showExpandToggle:u=false,expandedMapTitle:m="Explore map",expandedMapAddressLabel:p,schematicPlaceholder:f=false}){let g=i??vc(),{isDarkTheme:y}=Yt(),[b,h]=Je.useState(false),[x,v]=Je.useState(false),[S,w]=Je.useState(false),P=Je.useRef(null),T=Je.useRef(null),k=Je.useCallback(()=>w(true),[]),R=Je.useCallback(()=>w(false),[]);Je.useEffect(()=>{Ac();},[]);let I={width:typeof e=="number"?`${e}px`:e,height:typeof t=="number"?`${t}px`:t};Je.useEffect(()=>{let M=setTimeout(()=>{b||v(true);},200);return ()=>clearTimeout(M)},[b]);let E=Je.useCallback(()=>{h(true),v(false),l?.();},[l]);Je.useEffect(()=>{if(!T.current)return;let M=new ResizeObserver(()=>{P.current&&P.current.resize();});return M.observe(T.current),()=>{M.disconnect();}},[]);let L=o||x;return g?jsxRuntime.jsxs("div",{ref:T,style:I,className:`relative ${d||""}`,children:[jsxRuntime.jsxs(lL__default.default,{ref:P,mapboxAccessToken:g,initialViewState:r,style:{width:"100%",height:"100%"},mapStyle:Vc(n,y),onLoad:E,scrollZoom:false,dragPan:false,dragRotate:false,doubleClickZoom:false,touchZoomRotate:false,interactive:false,attributionControl:false,children:[c&&jsxRuntime.jsx(lL.AttributionControl,{position:"top-left"}),ds(a,n),s&&r.longitude!==void 0&&r.latitude!==void 0&&jsxRuntime.jsx(lL.Marker,{longitude:r.longitude,latitude:r.latitude,anchor:"bottom",children:jsxRuntime.jsx(V,{name:"MapPin",size:36,className:"text-map-marker-default",weight:"fill"})})]}),u&&jsxRuntime.jsx("div",{className:"absolute top-4 right-4 z-20",children:jsxRuntime.jsx(Dr,{icon:"ArrowsOutSimple",ariaLabel:"Expand map to fullscreen",onPress:k})}),u&&jsxRuntime.jsx(sr,{isOpen:S,onClose:R,title:m,contentPadding:false,maxWidth:"min(1100px, 100vw)",minWidth:"min(360px, 100vw)",height:"80vh",mobileHeight:"82vh",children:jsxRuntime.jsxs("div",{className:"flex flex-col h-full",children:[jsxRuntime.jsx("div",{className:"flex-1 min-h-0 overflow-hidden sm:mx-4 sm:mt-4 sm:rounded-xl sm:border sm:border-border-default",children:jsxRuntime.jsx(ms,{initialViewState:r,mapType:n,mapboxAccessToken:g,showMarker:s,markerLocation:r.longitude!==void 0&&r.latitude!==void 0?{latitude:r.latitude,longitude:r.longitude}:void 0,layers:a})}),p&&jsxRuntime.jsx("p",{className:"text-sm text-text-secondary px-4 py-3 flex-shrink-0",children:p})]})}),L&&jsxRuntime.jsx(Ic,{})]}):jsxRuntime.jsx(Fc,{style:I,className:d,schematic:f,showMarker:s})}var vL={xs:{bar:"h-1 w-14",text:"text-xs",icon:"h-2.5 w-2.5"},sm:{bar:"h-1.5 w-48",text:"text-xs",icon:"h-3 w-3"},md:{bar:"h-2 w-64",text:"text-sm",icon:"h-4 w-4"},lg:{bar:"h-3 w-80",text:"text-base",icon:"h-5 w-5"}};function fv({label:e,size:t="md",variant:r="default",showWarningIndicator:o=true,warningThreshold:n=80,hideValueText:a=false,className:i,...s}){let c=vL[t],l=a&&e&&!s["aria-label"]&&!s["aria-labelledby"]?{"aria-label":e}:{};return jsxRuntime.jsx(reactAriaComponents.Meter,{...s,...l,className:Ee(i,"flex flex-col gap-1"),children:({percentage:d,valueText:u})=>{let m=o&&d>=n,p=r==="default"?CL(d):r;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[!a&&jsxRuntime.jsxs("div",{className:"flex justify-between gap-2",children:[e&&jsxRuntime.jsx(Ye,{children:e}),jsxRuntime.jsxs("span",{className:tailwindMerge.twMerge(c.text,m?"text-feedback-error-text":"text-text-secondary"),children:[m&&jsxRuntime.jsx(lucideReact.AlertTriangle,{"aria-label":"Warning: High value",className:tailwindMerge.twMerge("inline-block align-text-bottom mr-1",c.icon)}),u]})]}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("relative rounded-full bg-background-muted","ring-1 ring-inset ring-border-muted",c.bar),children:jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("absolute left-0 top-0 h-full rounded-full transition-all duration-300","forced-colors:bg-[Highlight]",SL(p)),style:{width:`${Math.min(100,Math.max(0,d))}%`},role:"presentation","aria-hidden":"true"})})]})}})}function CL(e){return e<50?"success":e<70?"info":e<90?"warning":"error"}function SL(e){switch(e){case "success":return "bg-feedback-success-text";case "warning":return "bg-feedback-warning-text";case "error":return "bg-feedback-error-text";case "info":return "bg-feedback-info-text";case "neutral":return "bg-text-subtle";default:return "bg-action-brand"}}var Oc="bg-background-surface border-l-[3px] border-y border-r border-border-default text-text-primary",PL={success:{container:Oc,iconName:"CheckCircle",iconColor:"text-feedback-success-text",borderColor:"var(--color-feedback-success-border)"},error:{container:Oc,iconName:"XCircle",iconColor:"text-feedback-error-text",borderColor:"var(--color-feedback-error-border)"},warning:{container:Oc,iconName:"Warning",iconColor:"text-feedback-warning-text",borderColor:"var(--color-feedback-warning-border)"},info:{container:Oc,iconName:"Info",iconColor:"text-feedback-info-text",borderColor:"var(--color-feedback-info-border)"}};function Gc({id:e,message:t,variant:r="info",duration:o=5e3,dismissible:n=true,onDismiss:a,className:i}){let{container:s,iconName:c,iconColor:l,borderColor:d}=PL[r];return Je.useEffect(()=>{if(o>0){let u=setTimeout(()=>{a?.();},o);return ()=>clearTimeout(u)}},[o,a]),jsxRuntime.jsxs(framerMotion.motion.div,{layout:true,initial:{opacity:0,y:-20,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,scale:.95,transition:{duration:.2}},className:tailwindMerge.twMerge("pointer-events-auto flex items-center gap-3 rounded-lg p-4 shadow-lg",s,i),style:{borderLeftColor:d},children:[jsxRuntime.jsx(V,{name:c,size:20,className:l}),jsxRuntime.jsx("p",{className:"flex-1 select-text text-sm font-medium",children:t}),n&&jsxRuntime.jsx("button",{type:"button",onClick:a,className:"flex-shrink-0 rounded-md p-1 transition-colors hover:bg-background-hover","aria-label":"Dismiss notification",children:jsxRuntime.jsx(V,{name:"X",size:16})})]})}var IL={"top-left":"top-4 left-4 items-start","top-center":"top-4 left-1/2 -translate-x-1/2 items-start","top-right":"top-4 right-4 items-end","bottom-left":"bottom-4 left-4 items-start","bottom-center":"bottom-4 left-1/2 -translate-x-1/2 items-start","bottom-right":"bottom-4 right-4 items-end"};function Wc({notices:e,onDismiss:t,position:r="bottom-center",className:o}){let[n,a]=Je.useState(false);if(Je.useEffect(()=>{a(true);},[]),!n)return null;let i=jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("pointer-events-none fixed z-50 flex flex-col gap-2",IL[r],o),"aria-live":"polite","aria-atomic":"true",children:jsxRuntime.jsx(framerMotion.AnimatePresence,{mode:"sync",children:e.map(s=>jsxRuntime.jsx(Gc,{id:s.id,message:s.message,variant:s.variant,duration:s.duration,dismissible:s.dismissible,onDismiss:()=>t(s.id)},s.id))})});return reactDom.createPortal(i,document.body)}var gv=Je.createContext(void 0);function bv({children:e,position:t="bottom-center",maxNotices:r=5,defaultDuration:o=5e3,defaultDismissible:n=true}){let[a,i]=Je.useState([]),s=Je.useCallback((u,m)=>{let p=`notice-${Date.now()}-${Math.random()}`,f={id:p,message:u,variant:m?.variant||"info",duration:m?.duration??o,dismissible:m?.dismissible??n};return i(g=>{let y=[...g,f];return y.length>r?y.slice(-r):y}),p},[r,o,n]),c=Je.useCallback(u=>{i(m=>m.filter(p=>p.id!==u));},[]),l=Je.useCallback(()=>{i([]);},[]),d={notices:a,addNotice:s,removeNotice:c,clearNotices:l};return jsxRuntime.jsxs(gv.Provider,{value:d,children:[e,jsxRuntime.jsx(Wc,{notices:a,onDismiss:c,position:t})]})}function xv(){let e=Je.useContext(gv);if(!e)throw new Error("useNoticeContext must be used within a NoticeProvider");return e}function hv(){let{addNotice:e,removeNotice:t,clearNotices:r}=xv(),o=Je.useCallback((c,l)=>e(c,l),[e]),n=Je.useCallback((c,l)=>e(c,{...l,variant:"success"}),[e]),a=Je.useCallback((c,l)=>e(c,{...l,variant:"error"}),[e]),i=Je.useCallback((c,l)=>e(c,{...l,variant:"warning"}),[e]),s=Je.useCallback((c,l)=>e(c,{...l,variant:"info"}),[e]);return {show:o,success:n,error:a,warning:i,info:s,dismiss:t,clear:r}}var GL={plain:"",contained:"bg-background-surface rounded-lg border border-border-default p-6",bordered:"border-y border-border-default py-6"},WL={none:"",sm:"my-4",md:"my-6 md:my-8",lg:"my-8 md:my-12"};function li({id:e,title:t,description:r,actions:o,variant:n="plain",spacing:a="none",withDivider:i=false,headingAs:s="h2",className:c,children:l}){let d=Je__namespace.default.useId(),u=e?`${e}-heading`:d,m=t||r||o;return jsxRuntime.jsxs("section",{id:e,className:tailwindMerge.twMerge(WL[a],GL[n],c),"aria-labelledby":t?u:void 0,children:[m&&jsxRuntime.jsxs("header",{id:u,className:tailwindMerge.twMerge("flex flex-col sm:flex-row sm:items-start sm:justify-between gap-4",i&&"border-b border-border-default pb-4 mb-6",!i&&l&&"mb-6"),children:[jsxRuntime.jsxs("div",{className:"min-w-0 flex-1",children:[t&&jsxRuntime.jsx(ir,{tag:s,size:"md",className:"text-text-primary",children:t}),r&&jsxRuntime.jsx("p",{className:"mt-2 text-base text-text-secondary",children:r})]}),o&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:o})]}),l&&jsxRuntime.jsx("div",{className:"",children:t?jsxRuntime.jsx(jo,{children:l}):l})]})}li.displayName="Section";function Kc({sections:e,activeSection:t,onSectionChange:r,orientation:o="responsive",className:n,scrollBehavior:a="smooth",stickyTop:i="1.5rem",heading:s,sectionIdPrefix:c="section-",filterSection:l,scrollContainerId:d}){let u=Je__namespace.useRef(null),m=Je__namespace.useRef(null),[p,f]=Je__namespace.useState(e[0]?.id||null),g=t??p,y=Je__namespace.useCallback(()=>d?document.getElementById(d):null,[d]),b=Je__namespace.useCallback(w=>document.getElementById(`${c}${w}`)??document.getElementById(w),[c]);Je__namespace.useEffect(()=>{let w=window.location.hash;if(!w)return;let P=w.slice(1),T=P.startsWith(c)?P.slice(c.length):P,k=e.find(R=>R.id===T);k&&requestAnimationFrame(()=>{let R=b(k.id);if(!R)return;let I=y();if(I){let E=I.getBoundingClientRect(),L=R.getBoundingClientRect(),M=I.scrollTop+(L.top-E.top);I.scrollTo({top:Math.max(0,M),behavior:"instant"});}else R.scrollIntoView({behavior:"instant",block:"start"});r?r(k.id):f(k.id);});},[]),Je__namespace.useEffect(()=>{if(t!==void 0&&r)return;let w=R=>{if(!R)return false;let I=window.getComputedStyle(R);return I.display!=="none"&&I.visibility!=="hidden"&&I.opacity!=="0"},P=()=>{let R=w(u.current),I=w(m.current);if(!R&&!I)return null;let E=y(),L=new IntersectionObserver(M=>{M.forEach(F=>{if(F.isIntersecting){let z=F.target.id.replace(c,"");r?r(z):f(z);}});},{root:E??void 0,rootMargin:"-20% 0px -70% 0px",threshold:0});return e.forEach(M=>{let F=b(M.id);F&&L.observe(F);}),L},T=P(),k=()=>{T&&T.disconnect(),T=P();};return window.addEventListener("resize",k),()=>{T&&T.disconnect(),window.removeEventListener("resize",k);}},[e,c,t,r,o,y,b]);let h=Je__namespace.useMemo(()=>l?e.filter(l):e,[e,l]),x=Je__namespace.useCallback((w,P)=>{w.preventDefault();let T=b(P);if(T){let k=y();if(k){let R=k.getBoundingClientRect(),I=T.getBoundingClientRect(),E=k.scrollTop+(I.top-R.top),L=Math.max(0,k.scrollHeight-k.clientHeight);k.scrollTo({top:Math.max(0,Math.min(E,L)),behavior:a});}else {let R=T.getBoundingClientRect().top+window.scrollY,I=Math.max(0,document.documentElement.scrollHeight-window.innerHeight),E=Math.max(0,Math.min(R,I));window.scrollTo({top:E,behavior:a});}window.history.pushState&&window.history.pushState(null,"",`#${c}${P}`),r?r(P):f(P);}},[c,a,r,y,b]);if(h.length===0)return null;let v=o==="vertical"?"":o==="horizontal"?"hidden":"hidden lg:block",S=o==="horizontal"?"":o==="vertical"?"hidden":"lg:hidden";return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("nav",{ref:u,className:tailwindMerge.twMerge(v,n),"aria-label":"Section navigation",children:jsxRuntime.jsxs("div",{className:"space-y-1",style:{position:"sticky",top:i},children:[s?jsxRuntime.jsx("div",{className:"px-3 pb-2 text-label-sm font-semibold uppercase tracking-wide text-text-tertiary",children:s}):null,h.map(w=>{let P=g===w.id;return jsxRuntime.jsx("a",{href:`#${c}${w.id}`,onClick:T=>x(T,w.id),className:tailwindMerge.twMerge("block w-full text-left px-3 py-2 rounded-md text-sm transition-colors no-underline",P?"bg-background-muted text-text-primary font-semibold":"text-text-secondary hover:text-text-primary hover:bg-background-hover"),"aria-current":P?"page":void 0,children:jsxRuntime.jsxs("span",{className:"flex items-center justify-between gap-2",children:[jsxRuntime.jsx("span",{children:w.label}),w.count!==void 0&&jsxRuntime.jsx("span",{className:"text-xs tabular-nums text-text-secondary",children:w.count})]})},w.id)})]})}),jsxRuntime.jsx("nav",{ref:m,className:tailwindMerge.twMerge(S,"overflow-x-auto scrollbar-hide sticky top-0 z-10 py-4 -mt-4",n),"aria-label":"Section navigation",children:jsxRuntime.jsx("div",{className:"flex gap-2 min-w-max",children:h.map(w=>{let P=g===w.id;return jsxRuntime.jsx("a",{href:`#${c}${w.id}`,onClick:T=>x(T,w.id),className:tailwindMerge.twMerge("inline-block px-4 py-2 rounded-md text-sm whitespace-nowrap transition-colors no-underline",P?"bg-background-muted text-text-primary font-semibold":"text-text-secondary hover:text-text-primary hover:bg-background-hover"),"aria-current":P?"page":void 0,children:jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("span",{children:w.label}),w.count!==void 0&&jsxRuntime.jsxs("span",{className:"text-xs tabular-nums text-text-secondary",children:["(",w.count,")"]})]})},w.id)})})})]})}function vv(e){return "primary"}var Yc=Je__namespace.createContext({variant:"primary"});function jL({orientation:e,className:t=""}){return `flex flex-col w-full ${{horizontal:"",vertical:"flex-row"}[e]||""} ${t}`.trim()}function Xc({variant:e="primary",...t}){let r=vv();return jsxRuntime.jsx(Yc.Provider,{value:{variant:r},children:jsxRuntime.jsx("div",{className:"w-full h-auto",children:jsxRuntime.jsx(reactAriaComponents.Tabs,{...t,className:reactAriaComponents.composeRenderProps(t.className,(o,n)=>jL({...n,className:o}))})})})}function qL({orientation:e,sticky:t=false,className:r=""}){let o="flex gap-10 relative after:absolute after:bottom-0 after:left-0 after:right-0 after:h-[2px] after:bg-border-muted",n={horizontal:"flex-row w-full flex-nowrap overflow-x-auto scrollbar-hide",vertical:"flex-col items-start"},a=t?"sticky top-0 bg-background-surface z-10":"";return `${o} ${n[e]||""} ${a} ${r}`.trim()}function jc({variant:e,sticky:t=false,...r}){let o=Je__namespace.useContext(Yc),n=vv(e??o.variant);return jsxRuntime.jsx(Yc.Provider,{value:{variant:n},children:jsxRuntime.jsx(reactAriaComponents.TabList,{...r,className:reactAriaComponents.composeRenderProps(r.className,(a,i)=>qL({...i,sticky:t,className:a||""}))})})}function QL({isSelected:e,isDisabled:t,variant:r,className:o=""}){let n="flex items-center cursor-default px-1 py-2 font-medium transition-all hover:cursor-pointer relative shrink-0 whitespace-nowrap",a=`${$e()} ${r==="primary"?"focus-visible:outline-action-primary":""}`.trim(),i="";return t?i="text-text-disabled forced-colors:text-[GrayText] cursor-not-allowed":e?i="text-action-primary border-b-2 border-action-primary z-10 forced-colors:bg-[Highlight]":i="text-text-disabled hover:text-text-secondary",`${n} ${a} ${i} ${o}`.trim()}function qc(e){let{variant:t}=Je__namespace.useContext(Yc);return jsxRuntime.jsx(reactAriaComponents.Tab,{...e,"data-testid":e.id?`tab-${e.id}`:void 0,className:reactAriaComponents.composeRenderProps(e.className,(r,o)=>QL({...o,className:r,isSelected:o.isSelected,variant:t}))})}function ZL({className:e=""}){let t="block w-full mt-4 text-text-primary",r=$e();return `${t} ${r} ${e}`.trim()}function Cv(e){return jsxRuntime.jsx(reactAriaComponents.TabPanel,{...e,className:reactAriaComponents.composeRenderProps(e.className,(t,r)=>ZL({...r,className:t||""}))})}function ua({children:e,maxWidth:t=1400,paddingXClass:r="px-4 md:px-6",paddingYClass:o="pt-8 pb-14 md:pt-12 md:pb-28",className:n}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(`w-full ${r} ${o}`,n),style:{marginInline:"auto",maxWidth:t},children:e})}function _L({title:e,subtitle:t,breadcrumbs:r,breadcrumbsNode:o,media:n,actions:a,metadata:i,headingAs:s,sticky:c,stickyTop:l="0",zIndex:d=10,isLoading:u=false,className:m}){let p=c?"sticky bg-background-body":"",f=c?{top:l,zIndex:d}:{};return u?jsxRuntime.jsxs("header",{className:tailwindMerge.twMerge("mb-8 md:mb-12",p,m),style:f,"aria-labelledby":"page-title",children:[o||r?.length?jsxRuntime.jsx("div",{className:"mb-2 md:mb-4",children:jsxRuntime.jsx(U,{className:"h-4 w-32"})}):null,jsxRuntime.jsxs("div",{className:"flex flex-col md:flex-row md:items-start md:justify-between gap-4",children:[jsxRuntime.jsxs("div",{className:"min-w-0 flex-1",children:[jsxRuntime.jsx("div",{id:"page-title",children:jsxRuntime.jsx(U,{className:"h-8 w-64"})}),t?jsxRuntime.jsx(U,{className:"mt-2 h-5 w-48"}):null,i?jsxRuntime.jsx(U,{className:"mt-2 h-4 w-40"}):null,a?.length?jsxRuntime.jsx("div",{className:"mt-6 flex flex-col items-stretch gap-3 md:hidden",children:a.map((g,y)=>jsxRuntime.jsx(U,{className:"h-9 w-full"},y))}):null]}),a?.length?jsxRuntime.jsx("div",{className:"hidden md:flex md:items-start gap-2 shrink-0",children:a.map((g,y)=>jsxRuntime.jsx(U,{className:"h-9 w-24"},y))}):null]}),n?jsxRuntime.jsx("div",{className:"mt-4 md:mt-6",children:jsxRuntime.jsx(U,{className:"h-64 w-full"})}):null]}):jsxRuntime.jsxs("header",{className:tailwindMerge.twMerge("mb-8 md:mb-12",p,m),style:f,"aria-labelledby":"page-title",children:[o?jsxRuntime.jsx("div",{className:"mb-2 md:mb-4",children:o}):r?.length?jsxRuntime.jsx("div",{className:"mb-2 md:mb-4",children:jsxRuntime.jsx(ol,{children:r.map((g,y)=>{let{label:b,...h}=g;return jsxRuntime.jsx(nl,{...h,children:b},`${b}-${y}`)})})}):null,jsxRuntime.jsxs("div",{className:"flex flex-col md:flex-row md:items-start md:justify-between gap-4",children:[jsxRuntime.jsxs("div",{className:"min-w-0 flex-1",children:[jsxRuntime.jsx("div",{id:"page-title",children:jsxRuntime.jsx(ir,{tag:s||"h1",size:"xl",children:e})}),t?jsxRuntime.jsx("p",{className:"mt-2 text-base md:text-lg text-text-secondary",children:t}):null,i?jsxRuntime.jsx("div",{className:"mt-2 text-sm text-text-secondary",children:i}):null,a?.length?jsxRuntime.jsx("div",{className:"mt-6 flex flex-col items-stretch gap-3 md:hidden",children:a.map((g,y)=>jsxRuntime.jsx(Je__namespace.default.Fragment,{children:g},y))}):null]}),a?.length?jsxRuntime.jsx("div",{className:"hidden md:flex md:items-start gap-2 shrink-0",children:a.map((g,y)=>jsxRuntime.jsx(Je__namespace.default.Fragment,{children:g},y))}):null]}),n?jsxRuntime.jsx("div",{className:"mt-4 md:mt-6",children:n}):null]})}function $L({tabs:e,value:t,defaultValue:r,onChange:o,className:n,children:a}){let i=s=>{o?.(s);};return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("mb-3 md:mb-4 border-b-2 border-border-muted",n),children:jsxRuntime.jsxs(Xc,{selectedKey:t,defaultSelectedKey:r||e[0]?.id,onSelectionChange:i,children:[jsxRuntime.jsx(jc,{className:"after:bg-transparent",children:e.map(s=>jsxRuntime.jsx(qc,{id:s.id,isDisabled:s.disabled,children:s.label},s.id))}),a]})})}function eD({children:e,className:t,withSectionNav:r,navWidth:o="240px",gap:n="2rem",activeSection:a,onSectionChange:i,scrollBehavior:s,sectionIdPrefix:c="section-",scrollContainerId:l,navHeading:d,navStickyTop:u}){return r?jsxRuntime.jsx(rD,{position:r,navWidth:o,gap:n,activeSection:a,onSectionChange:i,scrollBehavior:s,sectionIdPrefix:c,scrollContainerId:l,navHeading:d,navStickyTop:u,className:t,children:e}):jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-full space-y-8 md:space-y-12",t),children:e})}function tD({children:e,sticky:t=true,className:r}){return jsxRuntime.jsx("aside",{className:tailwindMerge.twMerge(t?"lg:sticky lg:top-20":"",r),children:e})}function rD({activeSection:e,onSectionChange:t,position:r,navWidth:o,gap:n,children:a,className:i,scrollBehavior:s,sectionIdPrefix:c,scrollContainerId:l,navHeading:d,navStickyTop:u}){let m=Je__namespace.default.useMemo(()=>{let x=[];return Je__namespace.default.Children.forEach(a,v=>{if(Je__namespace.default.isValidElement(v)&&(v.type===li||typeof v.type=="object"&&v.type?.displayName==="Section"||typeof v.type=="function"&&v.type?.displayName==="Section")){let S=v.props;S.id?x.push({id:S.id,label:S.navLabel||(typeof S.title=="string"?S.title:`Section ${S.id}`)}):process.env.NODE_ENV==="development"&&console.warn("Section component used within PageLayout.Content with withSectionNav must have an id prop");}}),x},[a]),p=Je__namespace.default.useMemo(()=>{let x=Je__namespace.default.Children.map(a,v=>{if(Je__namespace.default.isValidElement(v)&&(v.type===li||typeof v.type=="object"&&v.type?.displayName==="Section"||typeof v.type=="function"&&v.type?.displayName==="Section")){let S=v.props;if(S.id)return Je__namespace.default.cloneElement(v,{...S,id:`${c}${S.id}`})}return v});return jsxRuntime.jsx("div",{className:"space-y-8 md:space-y-12",children:x})},[a,c]),f=(x,v)=>jsxRuntime.jsx(Kc,{sections:m,activeSection:e,onSectionChange:t,orientation:x,scrollBehavior:s,sectionIdPrefix:c,scrollContainerId:l,heading:d,className:v});if(r==="above")return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("space-y-4",i),children:[jsxRuntime.jsx("div",{className:"sticky top-0 z-10 bg-background-body",children:f("horizontal")}),p]});let g=r==="left"?"var(--nav-width) 1fr":"1fr var(--nav-width)",y=u?"":"top-20",b=u?{top:u}:void 0,h=tailwindMerge.twMerge("hidden lg:block sticky self-start",y);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:"lg:hidden sticky top-0 z-10 mt-3 mb-4 bg-background-body border-b border-border-default shadow-sm",children:f("horizontal","py-3 mt-0")}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("lg:grid",i),style:{gridTemplateColumns:g,gap:n,"--nav-width":o},children:[r==="left"&&jsxRuntime.jsx("nav",{className:h,style:b,children:f("vertical")}),p,r==="right"&&jsxRuntime.jsx("nav",{className:h,style:b,children:f("vertical")})]})]})}function oD({children:e,className:t}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-1 overflow-auto min-h-0",t),children:e})}ua.Header=_L;ua.Tabs=$L;ua.Content=eD;ua.Aside=tD;ua.ScrollableContent=oD;function aD(e){return typeof e=="object"&&e!==null&&"features"in e&&Array.isArray(e.features)&&"type"in e&&typeof e.type=="string"}var iD=process.env.NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN||"";function Nv({label:e,selectedKey:t,defaultSelectedKey:r,onSelectionChange:o,placeholder:n="Enter a location...",errorMessage:a,description:i,size:s="md",tooltip:c,isRequired:l,isDisabled:d,showErrors:u=true,autoFocus:m=false,onSelect:p,searchTypes:f=["place","address"],defaultFilter:g,validationResult:y,countryRestrictions:b,proximity:h="ip",hideCountry:x=false,showIcon:v=true,useMobileTray:S=true,className:w}){let P=Je.useRef(new WeakMap),T=Je.useRef([]),k={requestType:"REST",method:"GET",url:"https://api.mapbox.com/geocoding/v5/mapbox.places/{q}.json",extraParams:{access_token:iD,types:f.join(","),limit:"5",...b?.length?{country:b.join(",").toLowerCase()}:{},...h?{proximity:h==="ip"?"ip":h.join(",")}:{}},shouldLoad:E=>E.length>0,transformResponse:E=>{if(!aD(E))return [];let L=E.features.map(M=>{let F={id:M.id,name:M.place_name};return P.current.set(F,{type:M.place_type[0],center:M.center,context:M.context,address:M.address,text:M.text,properties:M.properties}),F});return L.length>0&&(T.current=L),L}},R=E=>{let L=P.current.get(E),M=E.name.split(", "),F=M[0],z=M.slice(1);x&&z.length>0&&(z=z.slice(0,-1));let W=z.join(", ");return jsxRuntime.jsxs("div",{className:"flex items-center gap-3 py-0.5",children:[v&&jsxRuntime.jsx(V,{name:L?.type==="address"?"MapPin":L?.type==="place"?"Buildings":L?.type==="region"?"MapPinArea":L?.type==="country"?"Flag":"Circle",className:"h-5 w-5 flex-shrink-0 text-text-secondary"}),jsxRuntime.jsxs("div",{className:"flex min-w-0 flex-col",children:[jsxRuntime.jsx("span",{className:"truncate font-medium text-text-primary",children:F}),W&&jsxRuntime.jsx("span",{className:"truncate text-sm text-text-secondary",children:W})]})]})},I=E=>E?jsxRuntime.jsx(V,{name:"CircleNotch",className:"h-4 w-4 animate-spin text-text-secondary"}):jsxRuntime.jsx(V,{name:"MagnifyingGlass",className:"h-4 w-4 text-text-secondary"});return jsxRuntime.jsx(el,{"data-testid":"autocomplete","data-config":JSON.stringify({types:f.join(","),country:b?.join(",")?.toLowerCase(),proximity:h==="ip"?"ip":h?.join(",")}),label:e||void 0,selectedKey:t,defaultSelectedKey:r,onSelectionChange:E=>{if(o?.(E),E){let M=T.current.find(F=>F.id===E);if(M){let F=P.current.get(M);F&&p({id:M.id,place_name:M.name,place_type:[F.type],center:F.center,context:F.context,address:F.address,text:F.text,properties:F.properties});}}},requestConfig:k,placeholder:n,errorMessage:a,description:i,size:s,tooltip:c,isRequired:l,isDisabled:d,showErrors:u,autoFocus:m,renderItem:R,renderLeftIcon:I,defaultFilter:g,validationResult:y,hideChevron:true,useMobileTray:S,className:w})}function Tv({label:e,rightLabel:t,progressWidth:r=64,hideLabels:o=false,...n}){return jsxRuntime.jsx(reactAriaComponents.ProgressBar,{...n,className:Ee(n.className,"flex flex-col gap-1"),children:({percentage:a,valueText:i,isIndeterminate:s})=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[!o&&jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-2",children:[jsxRuntime.jsx("span",{className:"text-sm text-text-primary",children:e}),jsxRuntime.jsx("span",{className:"text-sm text-text-primary",children:t||i})]}),jsxRuntime.jsx("div",{className:`relative h-2 w-${r} overflow-hidden rounded-full bg-background-muted outline-none`,children:jsxRuntime.jsx("div",{className:`absolute top-0 h-full rounded-full bg-action-default forced-colors:bg-[Highlight] ${s?"left-full duration-1000 ease-out animate-in slide-out-to-right-full repeat-infinite [--tw-enter-translate-x:calc(-16rem-100%)]":"left-0"}`,style:{width:(s?40:a)+"%"}})})]})})}function Pv({as:e="div",size:t="md",tone:r="editorial",className:o="",children:n,...a}){let i=t==="md"?"":`prose-${t}`,s=r==="editorial"?"":`prose-${r}`;return jsxRuntime.jsx(e,{className:nr("prose",i,s,o),...a,children:n})}function mD(e="2"){return {1:"p-2 text-xs",2:"p-3 text-sm",3:"p-4 text-base"}[e]}function fD(e){return e?"border-action-primary text-action-primary":"border-border text-text-primary"}function gD(){return "opacity-50 cursor-not-allowed"}function Rv({value:e,isDisabled:t,className:r,children:o,size:n="2",variant:a="primary"}){return jsxRuntime.jsx(reactAriaComponents.Radio,{value:e,isDisabled:t,className:Ee(r,"relative flex items-center justify-center cursor-pointer transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-action-primary focus:ring-offset-2 rounded-lg min-h-[44px]"),children:({isSelected:s,isDisabled:c})=>jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex items-center justify-center w-full h-full transition-all duration-200 rounded-lg border-2 bg-background-surface",!(t||c)&&!s&&"hover:bg-background-hover hover:border-border-hover",mD(n),fD(s),(t||c)&&gD(),r),children:o})})}function Ev({value:e,defaultValue:t,onChange:r,isDisabled:o,isReadOnly:n,isRequired:a,className:i,children:s,size:c="2",variant:l="primary",columns:d="repeat(auto-fit, minmax(160px, 1fr))",gap:u="1"}){return jsxRuntime.jsx(reactAriaComponents.RadioGroup,{value:e,defaultValue:t,onChange:r,isDisabled:o,isReadOnly:n,isRequired:a,className:Ee(i,"grid"),style:{gridTemplateColumns:/^\d+$/.test(String(d))?`repeat(${d}, minmax(0, 1fr))`:d,gap:u==="1"?"0.25rem":u==="2"?"0.5rem":u==="3"?"0.75rem":u==="4"?"1rem":typeof u=="number"?`${u}px`:u},children:Je__namespace.default.Children.map(s,m=>Je__namespace.default.isValidElement(m)?Je__namespace.default.cloneElement(m,{size:c,variant:l}):m)})}function vD(e){return "primary"}var Mv=Je.createContext({variant:"primary"});function Lv(e){let{variant:t="primary",...r}=e,o=vD();return jsxRuntime.jsx(Mv.Provider,{value:{variant:o},children:jsxRuntime.jsxs(reactAriaComponents.RadioGroup,{...r,className:Ee(e.className,"group flex flex-col gap-2"),children:[jsxRuntime.jsx(Ye,{children:e.label}),jsxRuntime.jsx("div",{className:`flex ${r.orientation==="horizontal"?"flex-row gap-4":"flex-col gap-2"}`,children:e.children}),e.description&&jsxRuntime.jsx(Me,{children:e.description}),jsxRuntime.jsx(xe,{children:typeof e.errorMessage=="function"&&e.validationResult?e.errorMessage(e.validationResult):typeof e.errorMessage=="string"?e.errorMessage:null})]})})}function CD({isSelected:e,isInvalid:t,isDisabled:r}){let n=[$e(),"focus-visible:outline-action-primary","w-5 h-5 rounded-full border-2 bg-background-surface transition-all"];return r?n.push("border-border-muted forced-colors:!border-[GrayText]"):t?n.push("border-feedback-error-border group-pressed:border-feedback-error-border dark:group-pressed:border-feedback-error-border forced-colors:!border-[Mark]"):e?n.push("border-[7px] border-action-primary forced-colors:!border-[Highlight] group-pressed:border-action-primary-hover dark:group-pressed:border-action-primary-hover"):n.push("border-border-default group-pressed:border-border-focus dark:group-pressed:border-border-focus"),n.join(" ")}function Dv(e){return Je.useContext(Mv),jsxRuntime.jsx(reactAriaComponents.Radio,{...e,className:Ee(e.className,"relative group flex items-center gap-2 text-sm text-text-primary transition disabled:text-text-secondary dark:text-text-primary dark:disabled:text-text-secondary forced-colors:disabled:text-[GrayText]"),children:t=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:CD(t)}),e.children]})})}var LD={sm:{toolbar:"p-1.5",contentWrapper:"min-h-[100px]",contentPadding:"p-3",placeholderPos:"left-3 top-3",prose:"prose-xs",h1:"[&_.ProseMirror_h1]:mb-2 [&_.ProseMirror_h1]:text-base [&_.ProseMirror_h1]:font-bold",h2:"[&_.ProseMirror_h2]:mb-1.5 [&_.ProseMirror_h2]:text-sm [&_.ProseMirror_h2]:font-semibold",p:"[&_.ProseMirror_p]:mb-1",list:"[&_.ProseMirror_ul]:mb-1 [&_.ProseMirror_ul]:ml-4 [&_.ProseMirror_ol]:mb-1 [&_.ProseMirror_ol]:ml-4",li:"[&_.ProseMirror_li]:mb-0.5",placeholderText:"text-xs"},md:{toolbar:"p-2",contentWrapper:"min-h-[200px]",contentPadding:"p-4",placeholderPos:"left-4 top-4",prose:"prose-sm",h1:"[&_.ProseMirror_h1]:mb-4 [&_.ProseMirror_h1]:text-2xl [&_.ProseMirror_h1]:font-bold",h2:"[&_.ProseMirror_h2]:mb-3 [&_.ProseMirror_h2]:text-xl [&_.ProseMirror_h2]:font-semibold",p:"[&_.ProseMirror_p]:mb-2",list:"[&_.ProseMirror_ul]:mb-2 [&_.ProseMirror_ul]:ml-6 [&_.ProseMirror_ol]:mb-2 [&_.ProseMirror_ol]:ml-6",li:"[&_.ProseMirror_li]:mb-1",placeholderText:"text-sm"},lg:{toolbar:"p-2.5",contentWrapper:"min-h-[250px]",contentPadding:"p-5",placeholderPos:"left-5 top-5",prose:"prose-base",h1:"[&_.ProseMirror_h1]:mb-5 [&_.ProseMirror_h1]:text-3xl [&_.ProseMirror_h1]:font-bold",h2:"[&_.ProseMirror_h2]:mb-4 [&_.ProseMirror_h2]:text-2xl [&_.ProseMirror_h2]:font-semibold",p:"[&_.ProseMirror_p]:mb-3",list:"[&_.ProseMirror_ul]:mb-3 [&_.ProseMirror_ul]:ml-6 [&_.ProseMirror_ol]:mb-3 [&_.ProseMirror_ol]:ml-6",li:"[&_.ProseMirror_li]:mb-1.5",placeholderText:"text-base"},xl:{toolbar:"p-3",contentWrapper:"min-h-[300px]",contentPadding:"p-6",placeholderPos:"left-6 top-6",prose:"prose-lg",h1:"[&_.ProseMirror_h1]:mb-6 [&_.ProseMirror_h1]:text-4xl [&_.ProseMirror_h1]:font-bold",h2:"[&_.ProseMirror_h2]:mb-5 [&_.ProseMirror_h2]:text-3xl [&_.ProseMirror_h2]:font-semibold",p:"[&_.ProseMirror_p]:mb-3",list:"[&_.ProseMirror_ul]:mb-3 [&_.ProseMirror_ul]:ml-8 [&_.ProseMirror_ol]:mb-3 [&_.ProseMirror_ol]:ml-8",li:"[&_.ProseMirror_li]:mb-2",placeholderText:"text-lg"}},ui=({isActive:e=false,onPress:t,children:r})=>jsxRuntime.jsx(_,{variant:e?"secondary":"ghost",size:"sm",onPress:t,className:"p-1",children:r});function DD({initialUrl:e,isOpen:t,onClose:r,onSubmit:o}){let[n,a]=Je.useState(e);return Je__namespace.default.useEffect(()=>{a(e);},[e]),jsxRuntime.jsx(vr,{isDismissable:true,isOpen:t,onOpenChange:s=>!s&&r(),children:jsxRuntime.jsx(reactAriaComponents.Modal,{className:"flex items-center justify-center p-4 outline-none focus:outline-none focus-visible:outline-none ring-0 focus:ring-0 focus-visible:ring-0",children:jsxRuntime.jsx(reactAriaComponents.Dialog,{className:"relative bg-background-surface rounded-lg shadow-xl max-w-md w-full",children:jsxRuntime.jsxs("form",{onSubmit:s=>{s.preventDefault(),o(n),r();},children:[jsxRuntime.jsx(qt,{title:"Insert Link",onClose:r}),jsxRuntime.jsx("div",{className:"p-6",children:jsxRuntime.jsx(Gr,{label:"URL",type:"url",value:n,onChange:a,autoFocus:true,className:"w-full"})}),jsxRuntime.jsxs("div",{className:"flex justify-end gap-2 border-t border-border-muted p-4",children:[jsxRuntime.jsx(_,{variant:"secondary",onPress:r,children:"Cancel"}),jsxRuntime.jsx(_,{type:"submit",children:"Save"})]})]})})})})}function Fv({initialContent:e="",onChange:t,className:r,isDisabled:o=false,placeholder:n="Start typing...",id:a,size:i="md",headingLevels:s=[1,2]}){let c=LD[i],[l,d]=Je.useState(false),u=react.useEditor({immediatelyRender:false,extensions:[PD__default.default.configure({heading:s.length>0?{levels:s}:false}),wD__default.default.configure({openOnClick:false,HTMLAttributes:{class:"text-text-link-default hover:text-text-link-hover underline decoration-text-link-default/30 hover:decoration-text-link-hover cursor-pointer"}})],content:e,editable:!o,onUpdate:({editor:f})=>{t?.(f.getHTML());},editorProps:{attributes:{class:tailwindMerge.twMerge(`prose ${c.prose} max-w-none`,"focus:outline-none","[&>*:first-child]:mt-0 [&>*:last-child]:mb-0")}}}),m=()=>{d(true);},p=f=>{f===""?u?.chain().focus().unsetLink().run():u?.chain().focus().setLink({href:f}).run();};return u?jsxRuntime.jsxs("div",{id:a,"data-richtexteditor":true,className:tailwindMerge.twMerge("flex flex-col rounded-md border border-border-input bg-background-input","outline-none focus-within:outline-none focus-within:border-border-input focus-within:ring-0 focus-within:shadow-none",o&&"opacity-50",r),style:{outline:"none"},children:[!o&&u&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs(menus.BubbleMenu,{editor:u,shouldShow:({editor:f})=>f.isActive("link")&&!l,className:"flex items-center gap-1 rounded-md border border-border-input bg-background-surface p-1 shadow-md",children:[jsxRuntime.jsxs(_,{variant:"ghost",size:"sm",className:"h-8 px-2",onPress:()=>{let f=u.getAttributes("link").href;f&&window.open(f,"_blank","noopener,noreferrer");},children:[jsxRuntime.jsx(V,{name:"ArrowSquareOut",className:"mr-1 h-4 w-4"}),"Open"]}),jsxRuntime.jsxs(_,{variant:"ghost",size:"sm",className:"h-8 px-2",onPress:m,children:[jsxRuntime.jsx(V,{name:"PencilSimple",className:"mr-1 h-4 w-4"}),"Edit"]}),jsxRuntime.jsxs(_,{variant:"ghost",size:"sm",className:"h-8 px-2",onPress:()=>u.chain().focus().unsetLink().run(),children:[jsxRuntime.jsx(V,{name:"X",className:"mr-1 h-4 w-4"}),"Remove"]})]}),jsxRuntime.jsx(DD,{isOpen:l,onClose:()=>d(false),onSubmit:p,initialUrl:u.getAttributes("link").href||""})]}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center gap-1 border-b border-border-input",c.toolbar),children:[s.map(f=>jsxRuntime.jsx(ui,{isActive:u.isActive("heading",{level:f}),onPress:()=>u.chain().focus().toggleHeading({level:f}).run(),children:jsxRuntime.jsxs("span",{className:"text-xs font-bold",children:["H",f]})},f)),jsxRuntime.jsx(ui,{isActive:u.isActive("bold"),onPress:()=>u.chain().focus().toggleBold().run(),children:jsxRuntime.jsx("span",{className:"text-xs font-bold",children:"B"})}),jsxRuntime.jsx(ui,{isActive:u.isActive("italic"),onPress:()=>u.chain().focus().toggleItalic().run(),children:jsxRuntime.jsx("span",{className:"text-xs italic",children:"I"})}),jsxRuntime.jsx("div",{className:"mx-1 h-4 w-px bg-border-muted"}),jsxRuntime.jsx(ui,{isActive:u.isActive("bulletList"),onPress:()=>u.chain().focus().toggleBulletList().run(),children:jsxRuntime.jsx(V,{name:"ListBullets",className:"h-4 w-4"})}),jsxRuntime.jsx(ui,{isActive:u.isActive("orderedList"),onPress:()=>u.chain().focus().toggleOrderedList().run(),children:jsxRuntime.jsx(V,{name:"ListNumbers",className:"h-4 w-4"})}),jsxRuntime.jsx("div",{className:"mx-1 h-4 w-px bg-border-muted"}),jsxRuntime.jsx(ui,{isActive:u.isActive("link"),onPress:m,children:jsxRuntime.jsx(V,{name:"PaperclipHorizontal",className:"h-4 w-4"})})]}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("relative w-full outline-none focus:outline-none",c.contentWrapper),children:[jsxRuntime.jsx(react.EditorContent,{editor:u,className:tailwindMerge.twMerge("w-full outline-none focus:outline-none",c.contentPadding,"[&_.ProseMirror]:min-h-[inherit]","[&_.ProseMirror]:outline-none [&_.ProseMirror]:focus:outline-none",c.h1,c.h2,c.p,"[&_.ProseMirror_ul]:list-disc","[&_.ProseMirror_ol]:list-decimal",c.list,c.li,"[&_.ProseMirror_blockquote]:border-l-4 [&_.ProseMirror_blockquote]:border-border-muted [&_.ProseMirror_blockquote]:pl-4 [&_.ProseMirror_blockquote]:italic","[&_.ProseMirror_code]:rounded [&_.ProseMirror_code]:bg-background-muted [&_.ProseMirror_code]:px-1 [&_.ProseMirror_code]:py-0.5 [&_.ProseMirror_code]:font-mono [&_.ProseMirror_code]:text-sm","[&_.ProseMirror_pre]:rounded-md [&_.ProseMirror_pre]:bg-background-muted [&_.ProseMirror_pre]:p-3 [&_.ProseMirror_pre]:font-mono [&_.ProseMirror_pre]:text-sm","[&_.ProseMirror_hr]:border-border-muted",o&&"pointer-events-none")}),u.isEmpty&&!o&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("pointer-events-none absolute text-text-secondary",c.placeholderPos,c.placeholderText),children:n})]})]}):null}function Bv({streetAddress:e,city:t,state:r,postalCode:o,longitude:n,latitude:a,href:i,LinkComponent:s,variant:c="outlined",layout:l="stacked",showMap:d=true,mapHeight:u=200,mapboxAccessToken:m,isLoading:p=false,className:f,contentClassName:g,showMapExpandToggle:y=false,expandedMapTitle:b="Explore map",expandedMapAddressLabel:h,piiEntity:x}){let v=[];t&&v.push(t),r&&o?v.push(`${r} ${o}`):r?v.push(r):o&&v.push(o);let S=v.join(", "),w=h||[e,S].filter(Boolean).join(", "),P=d&&n!==void 0&&a!==void 0,T=({children:R,className:I})=>i?s?jsxRuntime.jsx(s,{href:i,className:I,children:R}):jsxRuntime.jsx(st,{href:i,variant:"unstyled",className:tailwindMerge.twMerge("hover:underline",I),asButton:false,children:R}):jsxRuntime.jsx("span",{className:I,children:R});if(p){let R=l==="row";return jsxRuntime.jsxs(qe,{variant:c,className:tailwindMerge.twMerge(R?"flex flex-col md:flex-row":"flex flex-col",f),children:[P&&jsxRuntime.jsx(qe.Media,{aspectRatio:"auto",className:tailwindMerge.twMerge(R&&"md:order-2 md:flex-[2] md:min-w-0"),children:jsxRuntime.jsx(U,{width:"100%",height:u})}),jsxRuntime.jsxs(qe.Content,{className:tailwindMerge.twMerge("space-y-2 px-4 md:px-6",R&&"md:order-1 md:flex-[1] md:flex-shrink-0 md:flex md:flex-col md:justify-center"),children:[jsxRuntime.jsx(U,{width:"100%",height:16}),jsxRuntime.jsx(U,{width:"80%",height:16})]})]})}let k=l==="row";return jsxRuntime.jsxs(qe,{variant:c,className:tailwindMerge.twMerge("group/card relative",i&&"cursor-pointer",k?"flex flex-col md:flex-row":"flex flex-col",f),children:[i&&jsxRuntime.jsx(T,{className:"after:absolute after:inset-0 after:z-10",children:jsxRuntime.jsx("span",{className:"sr-only",children:e})}),P&&jsxRuntime.jsx(qe.Media,{aspectRatio:"auto",className:tailwindMerge.twMerge(k&&"md:order-2 md:flex-[2] md:min-w-0"),children:jsxRuntime.jsx(si,{height:u,initialViewState:{longitude:n,latitude:a,zoom:14},showMarker:true,mapboxAccessToken:m,showExpandToggle:y,expandedMapTitle:b,expandedMapAddressLabel:w})}),jsxRuntime.jsx(qe.Content,{className:tailwindMerge.twMerge("px-4 md:px-6",k&&"md:order-1 md:flex-[1] md:flex-shrink-0 md:flex md:flex-col md:justify-center",g),children:jsxRuntime.jsxs("div",{className:"flex flex-col gap-1 min-w-0 text-left",children:[jsxRuntime.jsx("span",{className:"text-xl font-semibold leading-tight text-text-primary group-hover/card:text-text-brand transition-colors","data-pii-type":x?"address":void 0,"data-pii-entity":x,children:e}),S&&jsxRuntime.jsx("span",{className:"text-lg font-normal leading-relaxed text-text-secondary","data-pii-type":x?"city-state-zip":void 0,"data-pii-entity":x,children:S})]})})]})}function zv({site:e,contact:t,LinkComponent:r,variant:o="outlined",layout:n="stacked",showMap:a=true,mapHeight:i=200,mapboxAccessToken:s,showEmail:c=true,showPhone:l=false,isLoading:d=false,className:u,contentClassName:m,fullHeight:p=false,showMapExpandToggle:f=false,expandedMapTitle:g="Explore map",expandedMapAddressLabel:y}){let b=[];e.city&&b.push(e.city),e.state&&e.postalCode?b.push(`${e.state} ${e.postalCode}`):e.state?b.push(e.state):e.postalCode&&b.push(e.postalCode);let h=b.join(", "),x=y||[e.streetAddress,h].filter(Boolean).join(", "),v=a&&e.longitude!==void 0&&e.latitude!==void 0,S=t?`${t.firstName} ${t.lastName}`.trim():"",w=({children:T,href:k,className:R})=>k?r?jsxRuntime.jsx(r,{href:k,className:R,children:T}):jsxRuntime.jsx(st,{href:k,variant:"unstyled",className:tailwindMerge.twMerge("hover:underline",R),asButton:false,children:T}):jsxRuntime.jsx("span",{className:R,children:T});if(d){let T=n==="row";return jsxRuntime.jsxs(qe,{variant:o,className:tailwindMerge.twMerge(p&&"h-full",T?"flex flex-col md:flex-row":"flex flex-col",u),children:[v&&jsxRuntime.jsx(qe.Media,{aspectRatio:"auto",className:tailwindMerge.twMerge(T&&"md:order-2 md:flex-[2] md:min-w-0",p&&"flex-1"),children:jsxRuntime.jsx(U,{width:"100%",height:p?"100%":i})}),jsxRuntime.jsxs(qe.Content,{className:tailwindMerge.twMerge("space-y-4 px-4 py-4",T&&"md:order-1 md:flex-[1] md:flex-shrink-0 md:flex md:flex-col md:justify-center"),children:[jsxRuntime.jsxs("div",{className:"space-y-2",children:[jsxRuntime.jsx(U,{width:"100%",height:16}),jsxRuntime.jsx(U,{width:"80%",height:16})]}),t&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:"border-t border-border-default"}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(U,{width:40,height:40,className:"rounded flex-shrink-0"}),jsxRuntime.jsxs("div",{className:"flex-1 space-y-1",children:[jsxRuntime.jsx(U,{width:"50%",height:14}),jsxRuntime.jsx(U,{width:"100%",height:12})]})]})]})]})]})}let P=n==="row";return jsxRuntime.jsxs(qe,{variant:o,className:tailwindMerge.twMerge("group/card relative",e.href&&"cursor-pointer",p&&"h-full",P?"flex flex-col md:flex-row":"flex flex-col",u),children:[e.href&&jsxRuntime.jsx(w,{href:e.href,className:"after:absolute after:inset-0 after:z-10",children:jsxRuntime.jsx("span",{className:"sr-only",children:e.streetAddress})}),v&&jsxRuntime.jsx(qe.Media,{aspectRatio:"auto",className:tailwindMerge.twMerge(P&&"md:order-2 md:flex-[2] md:min-w-0",p&&"flex-1"),children:jsxRuntime.jsx(si,{height:p?"100%":i,initialViewState:{longitude:e.longitude,latitude:e.latitude,zoom:14},showMarker:true,mapboxAccessToken:s,showExpandToggle:f,expandedMapTitle:g,expandedMapAddressLabel:x})}),jsxRuntime.jsxs(qe.Content,{className:tailwindMerge.twMerge("space-y-4 px-4 py-4",P&&"md:order-1 md:flex-[1] md:flex-shrink-0 md:flex md:flex-col md:justify-center",m),children:[jsxRuntime.jsxs("div",{className:"flex flex-col gap-1 min-w-0 text-left",children:[jsxRuntime.jsx("span",{className:"text-xl font-semibold leading-tight text-text-primary group-hover/card:text-text-brand transition-colors","data-pii-type":e.piiEntity?"address":void 0,"data-pii-entity":e.piiEntity,children:e.streetAddress}),h&&jsxRuntime.jsx("span",{className:"text-lg font-normal leading-relaxed text-text-secondary","data-pii-type":e.piiEntity?"city-state-zip":void 0,"data-pii-entity":e.piiEntity,children:h})]}),t&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:"border-t border-border-default"}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2 relative",children:[jsxRuntime.jsx(Do,{firstName:t.firstName,lastName:t.lastName,src:t.avatarUrl,size:"md",variant:"user",shape:"square",className:"flex-shrink-0",piiEntity:t.piiEntity}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[t.href?jsxRuntime.jsx(w,{href:t.href,className:"text-sm font-semibold leading-tight text-text-primary block mb-0.5 hover:text-text-brand transition-colors relative z-20",children:jsxRuntime.jsx("span",{"data-pii-type":t.piiEntity?"full-name":void 0,"data-pii-entity":t.piiEntity,children:S})}):jsxRuntime.jsx("span",{className:"text-sm font-semibold leading-tight text-text-primary block mb-0.5","data-pii-type":t.piiEntity?"full-name":void 0,"data-pii-entity":t.piiEntity,children:S}),jsxRuntime.jsxs("div",{className:"space-y-0.5",children:[c&&t.email&&jsxRuntime.jsxs("div",{className:"flex items-center gap-1.5 text-text-primary",children:[jsxRuntime.jsx(V,{name:"Envelope",size:12,className:"text-text-secondary flex-shrink-0"}),jsxRuntime.jsx(st,{href:`mailto:${t.email}`,variant:"unstyled",className:"text-xs leading-tight truncate text-text-primary relative z-20","data-pii-type":t.piiEntity?"email":void 0,"data-pii-entity":t.piiEntity,children:t.email})]}),l&&t.phone&&jsxRuntime.jsxs("div",{className:"flex items-center gap-1.5 text-text-primary",children:[jsxRuntime.jsx(V,{name:"Phone",size:12,className:"text-text-secondary flex-shrink-0"}),jsxRuntime.jsx(st,{href:`tel:${t.phone}`,variant:"unstyled",className:"text-xs leading-tight truncate text-text-primary relative z-20","data-pii-type":t.piiEntity?"phone":void 0,"data-pii-entity":t.piiEntity,children:Na(t.phone)})]})]})]})]})]})]})]})}function Ov({label:e,description:t,tooltip:r,errorMessage:o,size:n="md",className:a,value:i,defaultValue:s=0,onChange:c,min:l=0,max:d=100,step:u=1,disabled:m,showValue:p=true}){let f=typeof i=="number",[g,y]=Je__namespace.default.useState(s),b=f?i:g,h=Math.min(Math.max(b,l),d),x=Math.max(d-l,1e-5),v=(h-l)/x*100;return jsxRuntime.jsxs("div",{className:Ee(a,"group flex w-full flex-col gap-1"),children:[e&&jsxRuntime.jsx(Ye,{size:n,tooltip:r,className:"mb-1",children:e}),jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[jsxRuntime.jsxs("div",{className:"relative w-full select-none",children:[jsxRuntime.jsx("div",{className:"h-1.5 w-full rounded-full bg-background-muted"}),jsxRuntime.jsx("div",{className:"pointer-events-none absolute left-0 top-1/2 h-1.5 -translate-y-1/2 rounded-full bg-action-brand",style:{width:`${v}%`},"aria-hidden":true}),jsxRuntime.jsx("input",{type:"range",min:l,max:d,step:u,value:b,disabled:m,"aria-invalid":!!o,onChange:S=>{let w=Number(S.currentTarget.value);f||y(w),c?.(w);},className:tailwindMerge.twMerge("absolute inset-0 w-full cursor-pointer appearance-none bg-transparent outline-none","[&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:h-4 [&::-webkit-slider-thumb]:w-4 [&::-webkit-slider-thumb]:rounded-full [&::-webkit-slider-thumb]:bg-background-input [&::-webkit-slider-thumb]:border [&::-webkit-slider-thumb]:border-border-input","hover:[&::-webkit-slider-thumb]:shadow-sm focus-visible:[&::-webkit-slider-thumb]:outline-2 focus-visible:[&::-webkit-slider-thumb]:outline-action-default","[&::-moz-range-thumb]:h-4 [&::-moz-range-thumb]:w-4 [&::-moz-range-thumb]:rounded-full [&::-moz-range-thumb]:bg-background-input [&::-moz-range-thumb]:border [&::-moz-range-thumb]:border-border-input","hover:[&::-moz-range-thumb]:shadow-sm focus-visible:[&::-moz-range-thumb]:outline-2 focus-visible:[&::-moz-range-thumb]:outline-action-default",m?"cursor-not-allowed opacity-60":void 0)})]}),p&&jsxRuntime.jsx("div",{className:"min-w-10 text-right text-sm text-text-primary tabular-nums",children:Math.round(h)})]}),t&&jsxRuntime.jsx(Me,{className:"mt-2 text-text-secondary",children:t}),o&&jsxRuntime.jsx(xe,{className:"mt-1",children:o})]})}var zD=Je__namespace.default.createContext({orientation:"horizontal",isResizing:false});function Gv(e,t){return e===void 0?t:e}function OD(e,t){return typeof e=="number"?e:typeof e=="string"&&e.endsWith("%")?Number.parseFloat(e)/100*t:Number.parseFloat(e.toString())}function Zc({asideWidth:e,asideHeight:t,minAsideWidth:r=240,minAsideHeight:o=200,minMainWidth:n=400,minMainHeight:a=300,orientation:i="horizontal",resizable:s=false,onAsideResize:c,onResizeStart:l,onResizeEnd:d,className:u,dividerClassName:m,children:p}){let f=Je.useRef(null),[g,y]=Je.useState(false),b=i==="horizontal"?400:300,h=Gv(i==="horizontal"?e:t,b),[x,v]=Je.useState(null),S=Je.useCallback(E=>{if(!f.current||!g)return;let L=f.current.getBoundingClientRect(),M=i==="horizontal"?L.width:L.height,F=i==="horizontal"?E.clientX:E.clientY,W=(i==="horizontal"?L.right:L.bottom)-F,X=M-W,Z=i==="horizontal"?r:o,O=i==="horizontal"?n:a;W<Z||X<O||(v(W),c?.(W));},[g,i,r,o,n,a,c]),w=Je.useCallback(()=>{y(false),d?.();},[d]),P=Je.useCallback(E=>{E.preventDefault(),E.stopPropagation(),y(true),l?.();},[l]);Je.useEffect(()=>{if(g)return document.addEventListener("mousemove",S),document.addEventListener("mouseup",w),document.body.style.cursor=i==="horizontal"?"col-resize":"row-resize",document.body.style.userSelect="none",()=>{document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",w),document.body.style.cursor="",document.body.style.userSelect="";}},[g,S,w,i]);let T=Je__namespace.default.Children.toArray(p).find(E=>Je__namespace.default.isValidElement(E)&&E.type===Uv),k=Je__namespace.default.Children.toArray(p).find(E=>Je__namespace.default.isValidElement(E)&&E.type===Kv),R=x??h,I=typeof R=="number"?`${R}px`:R;return jsxRuntime.jsx(zD.Provider,{value:{orientation:i,isResizing:g},children:jsxRuntime.jsxs("div",{ref:f,className:tailwindMerge.twMerge("flex w-full h-full",i==="horizontal"?"flex-row":"flex-col",u),children:[jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-auto flex-1",i==="horizontal"?"h-full":"w-full"),children:T}),s&&jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("relative group flex-shrink-0",i==="horizontal"?"w-2 -mx-1 cursor-col-resize":"h-2 -my-1 cursor-row-resize",m),onMouseDown:P,role:"separator","aria-orientation":i,"aria-label":"Resize divider",tabIndex:0,onKeyDown:E=>{if(!f.current)return;let L=f.current.getBoundingClientRect(),M=i==="horizontal"?L.width:L.height,F=x??OD(h,M),z=20,W=i==="horizontal"?r:o,X=i==="horizontal"?n:a;if(i==="horizontal"){if(E.key==="ArrowLeft"){let Z=Math.min(F+z,M-X);v(Z),c?.(Z);}else if(E.key==="ArrowRight"){let Z=Math.max(F-z,W);v(Z),c?.(Z);}}else if(E.key==="ArrowUp"){let Z=Math.min(F+z,M-X);v(Z),c?.(Z);}else if(E.key==="ArrowDown"){let Z=Math.max(F-z,W);v(Z),c?.(Z);}},children:[jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("absolute bg-border-default transition-all",i==="horizontal"?"left-1/2 -translate-x-1/2 w-px h-full group-hover:w-1":"top-1/2 -translate-y-1/2 h-px w-full group-hover:h-1","group-hover:bg-action-brand/50",g&&"bg-action-brand",g&&(i==="horizontal"?"w-1":"h-1"))}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("absolute",i==="horizontal"?"top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-1 h-8":"top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-8 h-1","bg-border-muted rounded-full opacity-0 group-hover:opacity-100 transition-opacity")})]}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-auto flex-shrink-0",i==="horizontal"?"h-full":"w-full"),style:{[i==="horizontal"?"width":"height"]:I},children:k})]})})}function Uv({className:e,children:t}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-full h-full",e),children:t})}function Kv({className:e,children:t}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-full h-full",e),children:t})}Zc.Main=Uv;Zc.Aside=Kv;var GD=e=>{let t=Jt({isInvalid:e.isInvalid,isDisabled:e.isDisabled,isFocused:e.isFocused,transparent:e.transparent,size:e.size}),r=`min-h-[100px] py-2 ${e.isDisabled?"resize-none":e.isResizable?"resize-y":"resize-none"}`;return tailwindMerge.twMerge(t,r,e.className)};function Yv({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,required:a,transparent:i,isInvalid:s,isDisabled:c,isResizable:l=false,className:d,validationResult:u,reserveErrorSpace:m=true,...p}){let{isFocused:f,handleFocus:g,handleBlur:y}=Br();return jsxRuntime.jsx("div",{className:"group flex flex-col",children:jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(Ye,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(kt,{children:jsxRuntime.jsx("textarea",{...p,required:a,onFocus:b=>{p.onFocus&&p.onFocus(b),g(b);},onBlur:b=>{p.onBlur&&p.onBlur(b),y(b);},className:GD({isInvalid:s,isDisabled:c,isResizable:l,isFocused:f,size:o,transparent:i,className:d}),disabled:c})}),m?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(xe,{size:o,children:r}):typeof r=="function"&&u?jsxRuntime.jsx(xe,{size:o,children:r(u)}):t?jsxRuntime.jsx(Me,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(xe,{size:o,className:"mt-1",children:r}):typeof r=="function"&&u?jsxRuntime.jsx(xe,{size:o,className:"mt-1",children:r(u)}):t?jsxRuntime.jsx(Me,{size:o,className:"mt-1",children:t}):null})]})})}function qv({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,required:a,transparent:i,isInvalid:s,isDisabled:c,isResizable:l=false,className:d,validationResult:u,value:m="",onChange:p,chips:f=[],onChipsChange:g,triggerPattern:y="{{",onTriggerDetected:b,onTriggerDismissed:h,renderChip:x,chipVariant:v="primary",chipSize:S,...w}){let P=Je.useRef(null),{isFocused:T,handleFocus:k,handleBlur:R}=Br(),I=S||"sm",E=Je.useRef(null),L=Je.useCallback(O=>{let j="",H=A=>{if(A.nodeType===Node.TEXT_NODE){if(!A.parentElement?.closest("[data-chip-id]")){let N=A.textContent||"";j+=N;}}else if(A.nodeType===Node.ELEMENT_NODE){let G=A;if(G.hasAttribute("data-chip-id")){let N=G.getAttribute("data-chip-id");j+=`{{${N}}}`;return}else if(G.tagName==="BR"){j+=`
|
|
44
|
+
`;return}else G.tagName;}for(let G=0;G<A.childNodes.length;G++)H(A.childNodes[G]);};return H(O),j},[]),M=Je.useCallback((O,j)=>{let H=document.createTreeWalker(O,NodeFilter.SHOW_TEXT,{acceptNode:D=>{let B=D.parentElement;return B&&B.closest("[data-chip-id]")?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}}),A=H.nextNode(),G=Math.max(0,j);for(;A;){let D=A.nodeValue||"";if(D.length>=G){let B=document.createRange();B.setStart(A,G),B.collapse(true);let Y=window.getSelection();Y?.removeAllRanges(),Y?.addRange(B);return}G-=D.length,A=H.nextNode();}let N=window.getSelection(),C=document.createRange();C.selectNodeContents(O),C.collapse(false),N?.removeAllRanges(),N?.addRange(C);},[]);Je.useEffect(()=>{P.current&&!m&&P.current.textContent!==""&&(P.current.textContent="");},[m]),Je.useLayoutEffect(()=>{if(P.current){if(m===""){if(T)try{P.current.focus({preventScroll:!0}),M(P.current,0);}catch{}return}if(E.current!=null)try{M(P.current,E.current);}finally{E.current=null;}}},[m,M,T]);let F=Je.useCallback((O,j)=>{if(p?.(O),O===""){h?.();return}if(y&&b&&j!==void 0){let H=O.slice(0,j),A=typeof y=="string"?new RegExp(`\\${y}([^\\s]*)$`):y,G=H.match(A);if(G){let N=G[1]||"",C=j-G[0].length;b({query:N,position:j,startIndex:C});}else h?.();}},[p,y,b,h]),z=Je.useCallback(O=>{if(!g||!p)return;let j=f.filter(A=>A.id!==O);g(j);let H=m.replace(new RegExp(`\\{\\{${O}\\}\\}`,"g"),"");p(H);},[f,g,m,p]),W=Je.useCallback(O=>x?x(O,()=>z(O.id)):jsxRuntime.jsx(po,{variant:v,size:I,onRemove:c?void 0:()=>z(O.id),isDisabled:c,className:"py-0.5 px-1.5 gap-1 text-xs leading-none rounded-md",children:O.label},O.id),[x,v,I,z,c]),X=()=>{let O=Jt({isInvalid:s,isDisabled:c,isFocused:T,transparent:i,size:o}),j=`min-h-[100px] py-2 px-3 ${c?"resize-none":l?"resize-y":"resize-none"}`,H=tailwindMerge.twMerge("focus:outline-none overflow-auto","[&_[data-chip-id]::selection]:bg-action-primary/20","[&:empty]:before:content-[attr(data-placeholder)] [&:empty]:before:text-text-disabled [&:empty]:before:pointer-events-none");return tailwindMerge.twMerge(O,j,H,d)},Z=()=>m?m.split(/(\{\{[^}]+\}\})/g).map((j,H)=>{let A=j.match(/\{\{([^}]+)\}\}/);if(A){let G=A[1],N=f.find(C=>C.id===G);if(N)return jsxRuntime.jsx("span",{className:"inline-block align-baseline cursor-pointer",contentEditable:false,suppressContentEditableWarning:true,"data-chip-id":G,style:{userSelect:"none",verticalAlign:"baseline",lineHeight:"1"},onClick:C=>{C.preventDefault();let D=window.getSelection(),B=document.createRange();B.selectNode(C.currentTarget),D?.removeAllRanges(),D?.addRange(B);},children:W(N)},`chip-${G}-${H}`)}return j.includes(`
|
|
45
45
|
`)?j.split(`
|
|
46
|
-
`).map((
|
|
47
|
-
`).length-1&&jsxRuntime.jsx("br",{})]},`line-${G}-${N}`)):j}):null;return jsxRuntime.jsx("div",{className:"group flex flex-col",children:jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(Ue,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(wt,{children:jsxRuntime.jsx("div",{ref:k,contentEditable:!c,suppressContentEditableWarning:true,onInput:H=>{if(c)return;let j=H.target,G=j.querySelector("[data-chip-id]")!==null,A;if(G?(A=L(j),A=A.replace(/(\{\{[^}]+\}\})\s{2,}/g,"$1 ").replace(/\s{2,}(\{\{[^}]+\}\})/g," $1")):A=j.textContent||"",A===""){try{let C=document.createRange();C.selectNodeContents(j),C.collapse(!0);let D=window.getSelection();D?.removeAllRanges(),D?.addRange(C),R.current=0;}catch{}V("",0);return}if(A===m)return;let W=window.getSelection(),N=0;if(W&&W.rangeCount>0)try{let C=W.getRangeAt(0);if(G){let D=0,B=!1,X=ee=>{if(B)return !0;if(ee===C.startContainer)return D+=C.startOffset,B=!0,!0;if(ee.nodeType===Node.TEXT_NODE){if(!ee.parentElement?.closest("[data-chip-id]")){if(ee.contains(C.startContainer))return D+=C.startOffset,B=!0,!0;D+=(ee.textContent||"").length;}}else if(ee.nodeType===Node.ELEMENT_NODE){let le=ee;if(le.hasAttribute("data-chip-id")){if(le.contains(C.startContainer)||le===C.startContainer){let ae=le.getAttribute("data-chip-id");return D+=`{{${ae}}}`.length,B=!0,!0}let $=le.getAttribute("data-chip-id");return D+=`{{${$}}}`.length,!1}else if(le.tagName==="BR")return le===C.startContainer?(B=!0,!0):(D+=1,!1)}for(let le=0;le<ee.childNodes.length;le++)if(X(ee.childNodes[le]))return !0;return !1};X(j),N=D;}else {let D=document.createRange();D.setStart(j,0),D.setEnd(C.startContainer,C.startOffset),N=D.toString().length;}}catch{N=A.length;}R.current=N,V(A,N);},onKeyDown:H=>{if(c)return;let j=window.getSelection();if(!(!j||j.rangeCount===0))try{let G=j.getRangeAt(0),A=G.commonAncestorContainer;if(H.key==="ArrowLeft"||H.key==="ArrowRight"){let W=A.nodeType===Node.TEXT_NODE?A.parentElement?.closest("[data-chip-id]"):A.closest("[data-chip-id]");if(W){H.preventDefault();try{let N=document.createRange(),C=window.getSelection();H.key==="ArrowLeft"?N.setStartBefore(W):N.setStartAfter(W),N.collapse(!0),C?.removeAllRanges(),C?.addRange(N);}catch{}}}if(H.key==="Backspace"){let W=null;if(W=(A.nodeType===Node.TEXT_NODE?A.parentElement?.closest("[data-chip-id]"):A.closest("[data-chip-id]"))||null,!W)if(A.nodeType===Node.TEXT_NODE){let N=A;if(G.startOffset===0&&N.parentElement){let C=N.previousSibling;if(C&&C.nodeType===Node.ELEMENT_NODE){let D=C.closest("[data-chip-id]");D&&(W=D);}}}else {let N=A;if(G.startOffset>0){let C=N.childNodes[G.startOffset-1];if(C&&C.nodeType===Node.ELEMENT_NODE){let D=C.closest("[data-chip-id]");D&&(W=D);}}}if(W){H.preventDefault(),H.stopPropagation();let N=W.getAttribute("data-chip-id");if(!N)return;let C=`{{${N}}}`,D=m.indexOf(C);if(D!==-1){let B=m.slice(0,D)+m.slice(D+C.length),X=f.filter(ee=>ee.id!==N);R.current=D;try{window.getSelection()?.removeAllRanges();}catch{}g?.(X),p?.(B);}}}}catch{}},onFocus:H=>{c||(w.onFocus&&w.onFocus(H),T(H));},onBlur:H=>{c||(w.onBlur&&w.onBlur(H),E(H));},className:Q(),style:{whiteSpace:"pre-wrap",wordBreak:"break-word",...w.style},"data-placeholder":w.placeholder,children:Z()},m===""?"empty":"content")}),t&&jsxRuntime.jsx(Te,{size:o,className:"mt-3",children:t}),typeof r=="string"&&jsxRuntime.jsx(fe,{size:o,className:"mt-1",children:r}),typeof r=="function"&&u&&jsxRuntime.jsx(fe,{size:o,className:"mt-1",children:r(u)})]})})}function GD({isPlaceholder:e,isDisabled:t,size:r="md"}){return tailwindMerge.twMerge("inline-block box-content px-0.5 rounded outline-none tabular-nums text-center transition-colors",{sm:"text-base md:text-xs",md:"text-base md:text-sm",lg:"text-base",xl:"text-lg"}[r],e?"text-text-disabled italic":"text-text-primary",t?"text-text-disabled cursor-not-allowed":"cursor-text",!t&&"hover:bg-background-hover","data-[focused]:bg-background-selected data-[focused]:text-text-primary")}function Kv({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,isDisabled:i,isInvalid:s,reserveErrorSpace:c=true,validationResult:l,className:d,descriptionPlacement:u="below",...m}){return jsxRuntime.jsxs(reactAriaComponents.TimeField,{...m,isDisabled:i,isRequired:a,isInvalid:s,className:ke(d,"flex flex-col gap-1"),children:[e&&jsxRuntime.jsx(Ue,{size:o,tooltip:n,description:u==="tooltip"||u==="inline"?t:void 0,descriptionPlacement:u,isRequired:a,children:e}),jsxRuntime.jsx(wt,{children:jsxRuntime.jsx(reactAriaComponents.DateInput,{className:tailwindMerge.twMerge(qo({isInvalid:s,isDisabled:i}),"px-3 py-2 flex items-center gap-0.5 w-full"),children:p=>jsxRuntime.jsx(reactAriaComponents.DateSegment,{segment:p,className:GD({isPlaceholder:p.isPlaceholder,isDisabled:!p.isEditable||i,size:o})})})}),c?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(fe,{size:o,children:r}):typeof r=="function"&&l?jsxRuntime.jsx(fe,{size:o,children:r(l)}):t&&u==="below"?jsxRuntime.jsx(Te,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(fe,{size:o,className:"mt-1",children:r}):typeof r=="function"&&l?jsxRuntime.jsx(fe,{size:o,className:"mt-1",children:r(l)}):t&&u==="below"?jsxRuntime.jsx(Te,{size:o,className:"mt-1",children:t}):null})]})}function Yv({children:e,className:t=""}){return jsxRuntime.jsx("div",{className:`flex flex-col ${t}`.trim(),role:"list",children:e})}function Jv({children:e,variant:t="default",icon:r,label:o,isLast:n=false,className:a=""}){let s={default:{dot:"bg-border-default border-border-default",line:"bg-border-default",label:"text-text-secondary",content:"text-text-primary"},active:{dot:"bg-text-primary border-text-primary",line:"bg-border-default",label:"text-text-secondary",content:"text-text-primary font-medium"},muted:{dot:"bg-border-muted border-border-muted",line:"bg-border-muted",label:"text-text-secondary",content:"text-text-secondary"},success:{dot:"bg-feedback-success-border border-feedback-success-border",line:"bg-border-default",label:"text-text-secondary",content:"text-text-primary"},error:{dot:"bg-feedback-error-border border-feedback-error-border",line:"bg-border-default",label:"text-text-secondary",content:"text-text-primary"},warning:{dot:"bg-feedback-warning-border border-feedback-warning-border",line:"bg-border-default",label:"text-text-secondary",content:"text-text-primary"},info:{dot:"bg-feedback-info-border border-feedback-info-border",line:"bg-border-default",label:"text-text-secondary",content:"text-text-primary"}}[t];return jsxRuntime.jsxs("div",{className:`flex gap-3 ${a}`.trim(),role:"listitem",children:[jsxRuntime.jsxs("div",{className:"flex flex-col items-center",style:{width:"20px"},children:[jsxRuntime.jsx("div",{className:`flex items-center justify-center rounded-full border-2 ${s.dot}`,style:{width:"20px",height:"20px",flexShrink:0},children:r&&jsxRuntime.jsx(F,{name:r,size:12,className:"text-background-body"})}),!n&&jsxRuntime.jsx("div",{className:`w-0.5 flex-1 ${s.line}`,style:{minHeight:"24px"}})]}),jsxRuntime.jsxs("div",{className:"flex-1 pb-6",children:[o&&jsxRuntime.jsx("div",{className:`text-xs mb-1 ${s.label}`,children:o}),jsxRuntime.jsx("div",{className:`text-sm ${s.content}`,children:e})]})]})}function JD(e){return "primary"}var XD="flex font-medium justify-center items-center gap-2 text-center transition whitespace-nowrap box-border",Xv={primary:{selected:"bg-action-primary text-[color:var(--color-action-primary-text)] hover:bg-action-primary-hover forced-colors:bg-[ButtonText] forced-colors:text-[ButtonFace] border-2 border-transparent",unselected:"bg-transparent text-action-primary border-2 border-border-muted hover:bg-text-primary/[0.05] forced-colors:border-[ButtonBorder] forced-colors:bg-[ButtonFace] forced-colors:text-[ButtonText]"}},jD="opacity-[--control-hover-opacity] cursor-not-allowed pointer-events-none grayscale",qD="opacity-100 cursor-pointer",QD={"top-right":"-right-2 -top-2","top-left":"-left-2 -top-2","bottom-right":"-right-2 -bottom-2","bottom-left":"-left-2 -bottom-2"},ZD={primary:"bg-action-primary text-[color:var(--color-action-primary-text)]",destructive:"bg-feedback-error-border text-text-inverse"};function _D(e){let{variant:t="primary",size:r="md",isDisabled:o,isSelected:n,borderRadius:a,borderRight:i,borderLeft:s}=e,c=JD(),l=`${XD} ${n?Xv[c].selected:Xv[c].unselected}`;return l+=` ${Ye[r].text} ${Ye[r].height} ${Ye[r].padding} ${Ye[r].gap}`,l+=` ${o?jD:qD}`,a==="left"&&(l+=" rounded-l-sm"),a==="right"&&(l+=" rounded-r-sm"),i&&(l+=" border-r"),s&&(l+=" border-l"),l+=` ${Ze()}`,(l+=" focus-visible:outline-action-primary"),tailwindMerge.twMerge(l)}function qv(e){let{className:t,children:r,onPress:o,icon:n,iconPosition:a="left",iconWeight:i,isLoading:s=false,loadingText:c,loadingIndicator:l,size:d="md",badgeNumber:u,badgeVariant:m="primary",badgePosition:p="top-right",...f}=e,g=n?jsxRuntime.jsx(F,{name:n,size:d,weight:i}):null,h=()=>{let y=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[a==="left"&&g,r,a==="right"&&g]});return s?jsxRuntime.jsxs("div",{className:"relative inline-flex items-center justify-center",children:[jsxRuntime.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:l||jsxRuntime.jsx(F,{name:"CircleNotch",size:d,className:"animate-spin","aria-hidden":"true"})}),jsxRuntime.jsx("div",{className:"invisible","aria-hidden":"true",children:y}),c&&jsxRuntime.jsx("span",{className:"sr-only",role:"status","aria-live":"polite",children:c})]}):y},b=jsxRuntime.jsx(reactAriaComponents.ToggleButton,{onPress:o,...f,className:tailwindMerge.twMerge(_D(e),t),"aria-busy":s,children:h()});return u&&u>0?jsxRuntime.jsxs("div",{className:"relative",children:[b,jsxRuntime.jsx("span",{className:`absolute ${QD[p]} flex h-5 w-5 items-center justify-center rounded-full ${ZD[m]} text-xs`,"aria-label":`${u} items`,children:u})]}):b}var eA={open:{className:"text-feedback-success-border",token:"--color-feedback-success-border",label:"Open"},closed:{className:"text-feedback-error-border",token:"--color-feedback-error-border",label:"Closed"}},tA={platform:{label:"Platform",description:"Core product objects that structure the Texture workspace.",icon:"Stack",order:0},grid:{label:"Grid Elements",description:"Physical utility-grid infrastructure imported from a customer's GIS export.",icon:"TreeStructure",order:1},device:{label:"Devices",description:"Behind-the-meter connected energy devices.",icon:"Lightning",order:2}},rA=["energized","customerName","gs_max_continuous_current"],oA=["CAPACITOR.nominalVoltage","NODE.nominalVoltage","REGULATOR.outputVoltagePhA","REGULATOR.outputVoltagePhB","REGULATOR.outputVoltagePhC","GENERATOR.outputVoltage","MOTOR.voltage"],pt={TRANSFORMER:[{key:"capacityKva",label:"kVA Rating",format:{type:"power",unit:"kVA",decimals:0}},{key:"primaryVoltageKv",label:"Primary Voltage",format:{type:"voltage",unit:"kV",decimals:1}},{key:"outputVoltageKv",label:"Output Voltage",format:{type:"voltage",unit:"kV",decimals:2}}],CONSUMER:[{key:"meterNumber",label:"Meter Number",format:{type:"text"}}],SOURCE:[{key:"voltageKv",label:"Nominal Voltage",format:{type:"voltage",unit:"kV",decimals:1}},{key:"substationNumber",label:"Substation Number",format:{type:"text"}}],SWITCH:[{key:"switchId",label:"Switch ID",format:{type:"text"}},{key:"ratedCurrent",label:"Rated Current",format:{type:"number",unit:"A",decimals:0}},{key:"normalState",label:"Normal State",format:{type:"text"}}],CAPACITOR:[{key:"unitSizeKvar",label:"Capacity",format:{type:"power",unit:"kVar",decimals:1}},{key:"nominalVoltage",label:"Nominal Voltage",format:{type:"voltage",unit:"V",decimals:0}}],OVERCURRENT_DEVICE:[{key:"ratedCurrent",label:"Rated Current",format:{type:"number",unit:"A",decimals:0}},{key:"deviceType",label:"Device Type",format:{type:"text"}}],REGULATOR:[{key:"outputVoltagePhA",label:"Output Voltage Phase A",format:{type:"voltage",unit:"V",decimals:0}},{key:"outputVoltagePhB",label:"Output Voltage Phase B",format:{type:"voltage",unit:"V",decimals:0}},{key:"outputVoltagePhC",label:"Output Voltage Phase C",format:{type:"voltage",unit:"V",decimals:0}},{key:"ratedPower",label:"Rated Power",format:{type:"power",unit:"kVA",decimals:1}}],OVERHEAD_LINE:[{key:"impedanceLength",label:"Length",format:{type:"distance",unit:"ft",decimals:0}},{key:"conductorDescPhA",label:"Conductor Phase A",format:{type:"text"}},{key:"conductorDescPhB",label:"Conductor Phase B",format:{type:"text"}},{key:"conductorDescPhC",label:"Conductor Phase C",format:{type:"text"}}],UNDERGROUND_LINE:[{key:"impedanceLength",label:"Length",format:{type:"distance",unit:"ft",decimals:0}},{key:"conductorDescPhA",label:"Conductor Phase A",format:{type:"text"}},{key:"conductorDescPhB",label:"Conductor Phase B",format:{type:"text"}},{key:"conductorDescPhC",label:"Conductor Phase C",format:{type:"text"}}],NODE:[{key:"nominalVoltage",label:"Nominal Voltage",format:{type:"voltage",unit:"V",decimals:0}}],GENERATOR:[{key:"ratedPower",label:"Rated Power",format:{type:"power",unit:"kW",decimals:1}},{key:"outputVoltage",label:"Output Voltage",format:{type:"voltage",unit:"V",decimals:0}}],MOTOR:[{key:"ratedPower",label:"Rated Power",format:{type:"power",unit:"kW",decimals:1}},{key:"voltage",label:"Voltage",format:{type:"voltage",unit:"V",decimals:0}}]},ma={app:{icon:"AppWindow",category:"platform",archetype:"platform",detailPage:false,label:{singular:"App",plural:"Apps"},description:"Workspace tools and third-party integrations"},site:{icon:"MapPin",category:"platform",archetype:"platform",detailPage:true,label:{singular:"Site",plural:"Sites"},description:"Physical location housing energy systems"},device:{icon:"ShareNetwork",category:"platform",archetype:"platform",detailPage:false,label:{singular:"Device",plural:"Devices"},description:"Connected, controllable energy device"},customer:{icon:"Users",category:"platform",archetype:"platform",detailPage:true,label:{singular:"Customer",plural:"Customers"},description:"End customer or owner of one or more sites"},contact:{icon:"Users",category:"platform",archetype:"platform",detailPage:false,label:{singular:"Contact",plural:"Contacts"},description:"Person associated with a customer or site"},program:{icon:"ClipboardText",category:"platform",archetype:"platform",detailPage:false,label:{singular:"Program",plural:"Programs"},description:"Demand-response or virtual power plant program"},workflow:{icon:"FlowArrow",category:"platform",archetype:"platform",detailPage:false,label:{singular:"Workflow",plural:"Workflows"},description:"Automated rule that runs in response to events"},collection:{icon:"Stack",category:"platform",archetype:"platform",detailPage:false,label:{singular:"Collection",plural:"Collections"},description:"Named group of related entities or records"},board:{icon:"SquaresFour",category:"platform",archetype:"platform",detailPage:false,label:{singular:"Board",plural:"Boards"},description:"Dashboard for monitoring metrics and devices"},report:{icon:"ChartLine",category:"platform",archetype:"platform",detailPage:false,label:{singular:"Report",plural:"Reports"},description:"Saved analytics view or generated report"},event:{icon:"ClockCounterClockwise",category:"platform",archetype:"platform",detailPage:false,label:{singular:"Event",plural:"Events"},description:"Recorded system event or logged activity"},alert:{icon:"Warning",category:"platform",archetype:"platform",detailPage:false,label:{singular:"Alert",plural:"Alerts"},description:"Notification raised when attention is needed"},monitor:{icon:"Pulse",category:"platform",archetype:"platform",detailPage:false,label:{singular:"Monitor",plural:"Monitors"},description:"Rule that watches a metric against a threshold"},command:{icon:"Play",category:"platform",archetype:"platform",detailPage:false,label:{singular:"Command",plural:"Commands"},description:"Control action issued to a connected device"},source:{icon:"TextureSource",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:pt.SOURCE},label:{singular:"Source",plural:"Sources"},description:"Upstream feed where the network originates"},substation:{icon:"TextureSource",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:pt.SOURCE},label:{singular:"Substation",plural:"Substations"},description:"Facility that steps down transmission voltage"},capacitor:{icon:"TextureCapacitor",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:pt.CAPACITOR},label:{singular:"Capacitor",plural:"Capacitors"},description:"Capacitor bank for power-factor and voltage support"},switch:{icon:"TextureSwitchClosed",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:pt.SWITCH},label:{singular:"Switch",plural:"Switches"},description:"Sectionalizing or disconnect switch on the line",states:{open:{icon:"TextureSwitch",color:"open"},closed:{icon:"TextureSwitchClosed",color:"closed"}}},sectionalizer:{icon:"TextureSectionalizerClosed",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:pt.SWITCH},label:{singular:"Sectionalizer",plural:"Sectionalizers"},description:"Counts upstream recloser trips and opens to isolate a faulted section",states:{open:{icon:"TextureSectionalizerOpen",color:"open"},closed:{icon:"TextureSectionalizerClosed",color:"closed"}}},relay:{icon:"Cpu",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:pt.NODE},label:{singular:"Relay",plural:"Relays"},description:"Microprocessor relay that senses faults and trips devices"},transformer:{icon:"TextureTransformer",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:pt.TRANSFORMER},label:{singular:"Transformer",plural:"Transformers"},description:"Transformer that steps voltage up or down"},meter:{icon:"Gauge",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:pt.CONSUMER},label:{singular:"Meter",plural:"Meters"},description:"Revenue meter at the point of consumption"},consumer:{icon:"Gauge",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:pt.CONSUMER},label:{singular:"Consumer",plural:"Consumers"},description:"Service point or customer premise on the grid"},singlePhaseOverheadLine:{icon:"TextureSinglePhaseOverheadLine",category:"grid",archetype:"grid-line",detailPage:true,properties:{statList:pt.OVERHEAD_LINE},label:{singular:"Single-Phase Overhead Line",plural:"Single-Phase Overhead Lines"},description:"Overhead line carrying one phase conductor"},twoPhaseOverheadLine:{icon:"TextureTwoPhaseOverheadLine",category:"grid",archetype:"grid-line",detailPage:true,properties:{statList:pt.OVERHEAD_LINE},label:{singular:"Two-Phase Overhead Line",plural:"Two-Phase Overhead Lines"},description:"Overhead line carrying two phase conductors"},threePhaseOverheadLine:{icon:"TextureThreePhaseOverheadLine",category:"grid",archetype:"grid-line",detailPage:true,properties:{statList:pt.OVERHEAD_LINE},label:{singular:"Three-Phase Overhead Line",plural:"Three-Phase Overhead Lines"},description:"Overhead line carrying three phase conductors"},singlePhaseUndergroundLine:{icon:"TextureSinglePhaseUndergroundLine",category:"grid",archetype:"grid-line",detailPage:true,properties:{statList:pt.UNDERGROUND_LINE},label:{singular:"Single-Phase Underground Line",plural:"Single-Phase Underground Lines"},description:"Buried line carrying one phase conductor"},twoPhaseUndergroundLine:{icon:"TextureTwoPhaseUndergroundLine",category:"grid",archetype:"grid-line",detailPage:true,properties:{statList:pt.UNDERGROUND_LINE},label:{singular:"Two-Phase Underground Line",plural:"Two-Phase Underground Lines"},description:"Buried line carrying two phase conductors"},threePhaseUndergroundLine:{icon:"TextureThreePhaseUndergroundLine",category:"grid",archetype:"grid-line",detailPage:true,properties:{statList:pt.UNDERGROUND_LINE},label:{singular:"Three-Phase Underground Line",plural:"Three-Phase Underground Lines"},description:"Buried line carrying three phase conductors"},motorSwitch:{icon:"Diamond",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:pt.MOTOR},label:{singular:"Motor Switch",plural:"Motor Switches"},description:"Motor-operated switch or motor load element"},recloser:{icon:"TextureRecloser",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:pt.OVERCURRENT_DEVICE},label:{singular:"Recloser",plural:"Reclosers"},description:"Auto-reclosing device that clears transient faults",states:{open:{color:"open"},closed:{color:"closed"}}},fuse:{icon:"TextureFuse",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:pt.OVERCURRENT_DEVICE},label:{singular:"Fuse",plural:"Fuses"},description:"Fusible element providing overcurrent protection"},breaker:{icon:"TextureBreaker",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:pt.OVERCURRENT_DEVICE},label:{singular:"Breaker",plural:"Breakers"},description:"Circuit breaker that interrupts fault current",states:{open:{color:"open"},closed:{color:"closed"}}},generator:{icon:"Wind",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:pt.GENERATOR},label:{singular:"Generator",plural:"Generators"},description:"Distributed generation unit feeding the grid"},regulator:{icon:"TextureRegulator",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:pt.REGULATOR},label:{singular:"Regulator",plural:"Regulators"},description:"Voltage regulator that holds line voltage in range"},supportStructure:{icon:"TextureSupportStructure",category:"grid",archetype:"grid-line",detailPage:true,properties:{statList:pt.NODE},label:{singular:"Support Structure",plural:"Support Structures"},description:"Structure carrying overhead line equipment"},battery:{icon:"BatteryHigh",category:"device",archetype:"device",detailPage:true,label:{singular:"Battery",plural:"Batteries"},description:"Behind-the-meter battery or storage system",fusedMetricId:"soc",fields:{headlineMetrics:[{id:"power",label:"device.battery.fields.power",source:{kind:"state",path:"state.gridPower"},format:{type:"power",decimals:1},icon:"Lightning"},{id:"soc",label:"device.battery.fields.soc",source:{kind:"state",path:"state.chargePercentage"},format:{type:"percentage",decimals:0},icon:"BatteryCharging"},{id:"backupReserve",label:"device.battery.fields.backupReserve",source:{kind:"state",path:"state.backupReserve"},format:{type:"percentage",decimals:0},icon:"BatteryCharging"},{id:"loadPower",label:"device.battery.fields.loadPower",source:{kind:"state",path:"state.loadPower"},format:{type:"power",decimals:1},icon:"Lightning"}]},stateRules:{primaryState:{label:"device.battery.fields.status",fieldPath:"state.chargingState",mapping:{charging:"charging",discharging:"discharging",idle:"idle",unknown:"unknown"},fallback:"unknown"},secondaryState:{label:"device.battery.fields.gridState",fieldPath:"state.gridStatus",mapping:{importing:"importing",exporting:"exporting",idle:"importing",unknown:"importing"},fallback:"importing"}}},evCharger:{icon:"ChargingStation",category:"device",archetype:"device",detailPage:true,label:{singular:"EV Charger",plural:"EV Chargers"},description:"Electric-vehicle charging station or port",fusedMetricId:"power",fields:{headlineMetrics:[{id:"power",label:"device.evCharger.fields.power",source:{kind:"state",path:"state.chargerWattage"},format:{type:"power",decimals:1},icon:"Lightning"},{id:"isPluggedIn",label:"device.evCharger.fields.isPluggedIn",source:{kind:"state",path:"state.isPluggedIn"},format:{type:"boolean",trueText:"Yes",falseText:"No"},icon:"Plug"},{id:"voltage",label:"device.evCharger.fields.voltage",source:{kind:"state",path:"state.chargerVoltage"},format:{type:"voltage",decimals:1},icon:"Lightning"},{id:"current",label:"device.evCharger.fields.current",source:{kind:"state",path:"state.chargerCurrent"},format:{type:"current",decimals:1},icon:"Lightning"}]},stateRules:{primaryState:{label:"device.evCharger.fields.status",fieldPath:"state.chargingState",mapping:{charging:"charging",discharging:"discharging",idle:"idle",unknown:"unknown"},fallback:"unknown"}}},inverter:{icon:"Sun",category:"device",archetype:"device",detailPage:true,label:{singular:"Solar / Inverter",plural:"Solar / Inverters"},description:"Solar PV inverter and its connected array",fusedMetricId:"power",fields:{headlineMetrics:[{id:"power",label:"device.inverter.fields.power",source:{kind:"state",path:"state.power"},format:{type:"power",decimals:0},icon:"Lightning"},{id:"gridPower",label:"device.inverter.fields.gridPower",source:{kind:"state",path:"state.gridPower"},format:{type:"power",decimals:0},icon:"GridFour"},{id:"generatedEnergy",label:"device.inverter.fields.generatedEnergy",source:{kind:"state",path:"state.generatedEnergy"},format:{type:"energy",decimals:1},icon:"Lightning"},{id:"lifetimeEnergyGenerated",label:"device.inverter.fields.lifetimeEnergyGenerated",source:{kind:"state",path:"state.lifetimeEnergyGenerated"},format:{type:"energy",decimals:0},icon:"Lightning"}]},stateRules:{primaryState:{label:"device.inverter.fields.gridStatus",fieldPath:"state.gridStatus",mapping:{exporting:"exporting",importing:"importing",idle:"idle"},fallback:"unknown"}}},thermostat:{icon:"Thermometer",category:"device",archetype:"device",detailPage:true,label:{singular:"Thermostat",plural:"Thermostats"},description:"Smart thermostat or connected HVAC control",fusedMetricId:"ambientTemperature",fields:{headlineMetrics:[{id:"ambientTemperature",label:"device.thermostat.fields.ambientTemperature",source:{kind:"state",path:"state.ambientTemperature"},format:{type:"temperature",decimals:0},icon:"Thermometer"},{id:"heatTarget",label:"device.thermostat.fields.heatTarget",source:{kind:"state",path:"state.heatTarget"},format:{type:"temperature",decimals:0},icon:"Flame"},{id:"coolTarget",label:"device.thermostat.fields.coolTarget",source:{kind:"state",path:"state.coolTarget"},format:{type:"temperature",decimals:0},icon:"Snowflake"},{id:"fanMode",label:"device.thermostat.fields.fanMode",source:{kind:"state",path:"state.fanMode"},format:{type:"text"}}]},stateRules:{primaryState:{label:"device.thermostat.fields.operatingMode",fieldPath:"state.operatingMode",mapping:{heat:"heat",cool:"cool",auto:"auto",off:"off",eco:"eco",unknown:"unknown"},fallback:"unknown"}}},vehicle:{icon:"Car",category:"device",archetype:"device",detailPage:true,label:{singular:"EV",plural:"EVs"},description:"Electric vehicle managed as a flexible load",fusedMetricId:"chargePercentage",fields:{headlineMetrics:[{id:"chargePercentage",label:"device.vehicle.fields.chargePercentage",source:{kind:"state",path:"state.chargePercentage"},format:{type:"percentage",decimals:0},icon:"BatteryCharging"},{id:"range",label:"device.vehicle.fields.range",source:{kind:"state",path:"state.range"},format:{type:"distance",unit:"mi",decimals:0},icon:"GasPump"},{id:"chargeLimit",label:"device.vehicle.fields.chargeLimit",source:{kind:"state",path:"state.chargeLimit"},format:{type:"percentage",decimals:0},icon:"BatteryCharging"},{id:"isPluggedIn",label:"device.vehicle.fields.isPluggedIn",source:{kind:"state",path:"state.isPluggedIn"},format:{type:"boolean",trueText:"Yes",falseText:"No"},icon:"Plug"}]},stateRules:{primaryState:{label:"device.vehicle.fields.status",fieldPath:"state.chargingState",mapping:{charging:"charging",discharging:"discharging",idle:"idle",unknown:"unknown"},fallback:"unknown"}}},waterHeater:{icon:"Drop",category:"device",archetype:"device",detailPage:true,label:{singular:"Water Heater",plural:"Water Heaters"},description:"Connected or smart electric water heater"}},nA={source:"SOURCE",substation:"SOURCE",capacitor:"CAPACITOR",switch:"SWITCH",sectionalizer:"SWITCH",relay:"NODE",transformer:"TRANSFORMER",meter:"CONSUMER",consumer:"CONSUMER",singlePhaseOverheadLine:"OVERHEAD_LINE",twoPhaseOverheadLine:"OVERHEAD_LINE",threePhaseOverheadLine:"OVERHEAD_LINE",singlePhaseUndergroundLine:"UNDERGROUND_LINE",twoPhaseUndergroundLine:"UNDERGROUND_LINE",threePhaseUndergroundLine:"UNDERGROUND_LINE",motorSwitch:"MOTOR",recloser:"OVERCURRENT_DEVICE",fuse:"OVERCURRENT_DEVICE",breaker:"OVERCURRENT_DEVICE",generator:"GENERATOR",regulator:"REGULATOR",supportStructure:"NODE"};function Yc(e){return ma[e]}function aA(e){return ma[e].icon}function iA(e,t=false){return t?ma[e].label.plural:ma[e].label.singular}function sA(e){return ma[e].category}var lA={min:2,max:4};function cA(e){let t=ma[e];if(!t)throw new Error(`archetypeFor: unknown entity type "${String(e)}"`);return t.archetype}function dA(e){return Yc(e).detailPage}function uA(e){return (Yc(e).fields?.headlineMetrics.length??0)>0}function Qv(e){return Yc(e).properties?.statList??[]}function pA(e){return Qv(e).length>0}function mA({formId:e="dialog-form",onSubmit:t,primaryLabel:r="Save",secondaryLabel:o="Cancel",onCancel:n,primaryVariant:a,secondaryVariant:i="secondary",children:s,title:c,...l}){return jsxRuntime.jsx(or,{title:c,primaryAction:{label:r,onPress:()=>{let u=document.getElementById(e);u&&u.requestSubmit();},variant:a},secondaryAction:n?{label:o,onPress:n,variant:i}:void 0,...l,children:jsxRuntime.jsx(Qa,{id:e,onSubmit:t,children:s})})}function fA({formId:e="drawer-form",onSubmit:t,primaryLabel:r="Save",secondaryLabel:o="Cancel",onCancel:n,primaryVariant:a,secondaryVariant:i="secondary",children:s,...c}){return jsxRuntime.jsx(Qi,{primaryAction:{label:r,onPress:()=>{let d=document.getElementById(e);d&&d.requestSubmit();},variant:a},secondaryAction:n?{label:o,onPress:n,variant:i}:void 0,...c,children:jsxRuntime.jsx(Qa,{id:e,onSubmit:t,className:"mt-2",children:s})})}function bA({align:e="end",className:t,...r}){return jsxRuntime.jsx("div",{...r,className:tailwindMerge.twMerge("flex gap-2",e==="start"?"justify-start":e==="between"?"justify-between":"justify-end",t)})}var yA={sm:"gap-2",md:"gap-4",lg:"gap-6"};function vA(e){if(!e)return "";let t=e.base?`grid-cols-${e.base}`:"",r=e.md?`md:grid-cols-${e.md}`:"",o=e.lg?`lg:grid-cols-${e.lg}`:"";return [t,r,o].filter(Boolean).join(" ")}function CA({cols:e={base:1},gap:t="lg",className:r,...o}){return jsxRuntime.jsx("div",{...o,className:tailwindMerge.twMerge("grid",vA(e),yA[t],r)})}function NA({title:e,description:t,showDivider:r,className:o,children:n,...a}){return jsxRuntime.jsxs("section",{...a,className:tailwindMerge.twMerge("flex flex-col",o),children:[(e||t)&&jsxRuntime.jsxs("div",{className:"flex flex-col gap-1 mb-6",children:[typeof e=="string"?jsxRuntime.jsx(rr,{tag:"h3",size:"sm",children:e}):e,t?jsxRuntime.jsx(Te,{size:"lg",children:t}):null]}),jsxRuntime.jsx("div",{className:"flex flex-col gap-6",children:n}),r&&jsxRuntime.jsx("hr",{className:"mt-2 border-border-muted"})]})}function kA(){return jsxRuntime.jsx("hr",{className:"border-border-muted"})}function TA({steps:e,currentStepId:t,onStepClick:r,className:o}){let n=e.findIndex(a=>a.id===t);return jsxRuntime.jsx("nav",{"aria-label":"Progress",className:tailwindMerge.twMerge("w-full",o),children:jsxRuntime.jsx("div",{className:"relative mb-12",children:jsxRuntime.jsx("ol",{className:"relative flex items-start justify-between",children:e.map((a,i)=>{let s=a.id===t,c=i<n,l=r&&(c||s);return jsxRuntime.jsxs("li",{className:"relative flex flex-col items-center",style:{flex:`1 1 ${100/e.length}%`},children:[jsxRuntime.jsx("button",{type:"button",disabled:!l,onClick:()=>l&&r?.(a.id),className:tailwindMerge.twMerge("relative z-10 flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-full border-2 transition-colors bg-background-body",c&&"border-action-primary bg-action-primary text-text-inverse hover:bg-action-primary/90",s&&"border-action-primary bg-background-body text-action-primary",!c&&!s&&"border-border-default bg-background-body text-text-secondary",l&&"cursor-pointer",!l&&"cursor-default"),"aria-current":s?"step":void 0,children:c?jsxRuntime.jsx(F,{name:"Check",size:20,weight:"bold"}):jsxRuntime.jsx("span",{className:"text-sm font-semibold",children:i+1})}),i<e.length-1&&jsxRuntime.jsx("div",{className:"absolute top-5 h-0.5 transition-colors",style:{left:"50%",width:"100%",marginLeft:"20px",backgroundColor:i<n?"var(--color-action-primary)":"var(--color-border-default)"}}),jsxRuntime.jsxs("div",{className:"mt-3 flex flex-col items-center text-center w-32",children:[jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("text-sm font-medium",s&&"text-text-default",c&&"text-text-primary",!s&&!c&&"text-text-secondary"),children:a.title}),a.description&&jsxRuntime.jsx("span",{className:"mt-1 text-xs text-text-secondary",children:a.description})]})]},a.id)})})})})}function RA({formId:e,show:t,isSubmitting:r,onCancel:o,primaryLabel:n="Save changes",secondaryLabel:a="Cancel",className:i}){return t?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("fixed inset-x-0 bottom-0 z-40 border-t border-border-muted bg-background-surface/95 backdrop-blur supports-[backdrop-filter]:bg-background-surface/70",i),children:jsxRuntime.jsxs("div",{className:"mx-auto flex max-w-screen-lg items-center justify-between gap-3 p-3",children:[jsxRuntime.jsx("div",{className:"text-sm text-text-secondary",children:"You have unsaved changes"}),jsxRuntime.jsxs("div",{className:"flex gap-2",children:[jsxRuntime.jsx(_,{variant:"secondary",onPress:o,children:a}),jsxRuntime.jsx(_,{type:"submit",form:e,isDisabled:!!r,children:r?"Saving...":n})]})]})}):null}function EA({when:e,message:t="You have unsaved changes. Leave anyway?"}){return Ke__namespace.useEffect(()=>{if(!e)return;let r=o=>(o.preventDefault(),o.returnValue=t,t);return window.addEventListener("beforeunload",r),()=>window.removeEventListener("beforeunload",r)},[e,t]),null}function MA({steps:e,initialStepId:t,canNavigate:r}){if(e.length===0)throw new Error("useWizard: steps array cannot be empty");let[o,n]=Ke__namespace.useState(t||e[0].id),a=e.findIndex(u=>u.id===o),i=a>0,s=a<e.length-1,c=async u=>u===o?true:r&&!await r(o,u)?false:(n(u),true);return {steps:e,currentStepId:o,setCurrentStepId:c,next:async()=>!s||a===-1?false:c(e[a+1].id),prev:async()=>!i||a===-1?false:c(e[a-1].id),hasNext:s,hasPrev:i,stepIndex:a}}function Cs(e,t){return t.split(".").reduce((r,o)=>r?.[o],e)}function DA(e,t){let r=Cs(e,t.field),o=t.value;switch(t.operator){case "eq":return r===o;case "neq":return r!==o;case "in":return Array.isArray(o)?Array.isArray(r)?r.some(n=>o.includes(n)):o.includes(r):false;case "nin":return Array.isArray(o)?Array.isArray(r)?!r.some(n=>o.includes(n)):!o.includes(r):false;case "gt":return r instanceof Date&&typeof o=="string"?r>new Date(o):r>o;case "gte":return r instanceof Date&&typeof o=="string"?r>=new Date(o):r>=o;case "lt":return r instanceof Date&&typeof o=="string"?r<new Date(o):r<o;case "lte":return r instanceof Date&&typeof o=="string"?r<=new Date(o):r<=o;case "contains":return typeof r!="string"?false:r.toLowerCase().includes(String(o).toLowerCase());case "startsWith":return typeof r!="string"?false:r.toLowerCase().startsWith(String(o).toLowerCase());case "endsWith":return typeof r!="string"?false:r.toLowerCase().endsWith(String(o).toLowerCase());default:return false}}function nC(e,t){if(t.conditions.length===0)return true;let r=t.conditions.map(o=>"conditions"in o?nC(e,o):DA(e,o));return t.logic==="AND"?r.every(Boolean):r.some(Boolean)}function AA(e,t){return !t||t.conditions.length===0?e:e.filter(r=>nC(r,t))}function IA(e,t,r){if(e==null&&t==null)return 0;if(e==null)return r==="asc"?1:-1;if(t==null)return r==="asc"?-1:1;if(e instanceof Date&&t instanceof Date){let o=e.getTime()-t.getTime();return r==="asc"?o:-o}if(typeof e=="string"&&typeof t=="string"){let o=e.toLowerCase().localeCompare(t.toLowerCase());return r==="asc"?o:-o}return e<t?r==="asc"?-1:1:e>t?r==="asc"?1:-1:0}function FA(e,t){return t?[...e].sort((r,o)=>{let n=Cs(r,t.field),a=Cs(o,t.field);return IA(n,a,t.direction)}):e}function BA(e,t){if(!t||!t.query.trim())return e;let{query:r,fields:o,fuzzy:n=true,threshold:a=.3}=t;if(n)return new LA__default.default(e,{keys:o,threshold:a,ignoreLocation:true,includeScore:true}).search(r).map(l=>l.item);let i=r.toLowerCase();return e.filter(s=>o.some(c=>{let l=Cs(s,c);return l==null?false:String(l).toLowerCase().includes(i)}))}function VA(e,t){let r={};for(let o of t){if(r[o.field]={},o.values)for(let n of o.values)r[o.field][String(n.value)]=0;for(let n of e){let a=Cs(n,o.field);if(a!=null)if(Array.isArray(a))for(let i of a){let s=String(i);r[o.field][s]=(r[o.field][s]||0)+1;}else {let i=String(a);r[o.field][i]=(r[o.field][i]||0)+1;}}}return r}function fm({data:e,filters:t,sort:r,search:o,facetConfigs:n=[]}){let a=BA(e,o||null);a=AA(a,t||null);let i=VA(a,n);return a=FA(a,r||null),{data:a,facetCounts:i,resultCount:a.length}}function Xc({data:e,filters:t,sort:r,search:o,facetConfigs:n=[]}){return Ke.useMemo(()=>fm({data:e,filters:t,sort:r,search:o,facetConfigs:n}),[e,t,r,o,n])}function jc({filters:e,sort:t,search:r,onStateChange:o,searchDebounce:n=300}){let a=jo(r,n),i=Ke.useRef(true);Ke.useEffect(()=>{if(i.current){i.current=false;return}o({filters:e,sort:t,search:a});},[e,t,a,o]);}function aC(e){return e.mode==="client"?Xc({data:e.data,filters:e.filters,sort:e.sort,search:e.search,facetConfigs:e.facetConfigs}):(jc({filters:e.filters,sort:e.sort,search:e.search,onStateChange:e.onStateChange,searchDebounce:e.searchDebounce}),{data:e.data,facetCounts:e.facetCounts||{},resultCount:e.resultCount??e.data.length})}var iC=Sm(Iu());function WA(e,t,r=true){let o=e;if(r){let n=new Date().toISOString().replace(/[:.]/g,"-").slice(0,-5);return `${o}-${n}.${t}`}return `${o}.${t}`}function UA(e,t){return t.accessor?typeof t.accessor=="function"?t.accessor(e):e[t.accessor]:null}function sC(e,t){let r=UA(t,e);return e.exportValue?e.exportValue(r,t)??"":r==null?"":r instanceof Date?r.toISOString():typeof r=="object"?JSON.stringify(r):r}function gm(e){return e.filter(t=>t.exportable!==false)}function lC(e){let t=e.map(n=>n.exportLabel||n.label),r=new Set,o=[];for(let n of t)r.has(n)?o.includes(n)||o.push(n):r.add(n);if(o.length>0)throw new Error(`Duplicate export headers found: ${o.join(", ")}. Use exportLabel to provide unique headers.`)}async function bm(e){let{columns:t,data:r,metadata:o={}}=e;try{let n=gm(t);if(n.length===0)throw new Error("No exportable columns found");lC(n);let a=r.map(l=>{let d={};for(let u of n){let m=u.exportLabel||u.label;d[m]=sC(u,l);}return d}),i=yT__default.default.unparse(a,{header:!0,skipEmptyLines:!0}),s=new Blob([i],{type:"text/csv;charset=utf-8;"}),c=WA(o.filename||"table-data","csv",o.timestamp!==!1);(0,iC.saveAs)(s,c);}catch(n){throw new Error(`CSV export failed: ${n instanceof Error?n.message:"Unknown error"}`)}}function KA(e){let{columns:t,data:r}=e,o=gm(t);return lC(o),r.map(n=>{let a={};for(let i of o){let s=i.exportLabel||i.label;a[s]=sC(i,n);}return a})}function YA(e){return gm(e).map(t=>t.exportLabel||t.label)}function cC({columns:e,data:t,metadata:r}){let n=e.filter(i=>i.exportable!==false).length>0&&t.length>0;return {exportCSV:Ke.useCallback(async()=>{try{await bm({columns:e,data:t,metadata:r});}catch(i){throw console.error("Table export failed:",i),i}},[e,t,r]),canExport:n}}function Xae(e){switch(e){case "charging":case "on":return "success";case "discharging":return "warning";case "heat":case "cool":return "info";case "off":case "idle":case "eco":case "auto":return "neutral";default:return "neutral"}}Object.defineProperty(exports,"DialogTrigger",{enumerable:true,get:function(){return reactAriaComponents.DialogTrigger}});Object.defineProperty(exports,"Focusable",{enumerable:true,get:function(){return reactAriaComponents.Focusable}});exports.ABSENT_GRID_FIELDS=rA;exports.ActionCell=Fx;exports.ActionMenu=Ra;exports.ActivityFeed=jd;exports.ActivityFeedGroup=Gs;exports.ActivityItem=Ws;exports.Alert=Qf;exports.AppShell=ng;exports.AreaSeries=on;exports.AutoMobileRenderer=jl;exports.Autocomplete=Qs;exports.Avatar=Eo;exports.BREAKPOINTS=vn;exports.Badge=lt;exports.BadgeCell=Vx;exports.Banner=_s;exports.BarSeries=cl;exports.BooleanCell=zx;exports.BrandProvider=Am;exports.BreadcrumbItem=el;exports.Breadcrumbs=$s;exports.Button=_;exports.CATEGORICAL_RAMP=Cc;exports.CHART_HEADER_HEIGHT=Vd;exports.COLOR_RAMPS=is;exports.CUSTOM_ICON_REGISTRY=xa;exports.Calendar=Aa;exports.Card=Je;exports.CardContent=Hd;exports.CardFooter=Gd;exports.CardHeader=Fs;exports.CardMedia=Od;exports.CardMobileRenderer=ql;exports.CarouselAutoplayTrigger=Ag;exports.CarouselControl=Eg;exports.CarouselIndicator=bu;exports.CarouselIndicatorGroup=Dg;exports.CarouselItem=Rg;exports.CarouselItemGroup=Pg;exports.CarouselNextTrigger=Lg;exports.CarouselPrevTrigger=Mg;exports.CarouselProgressText=Ig;exports.CarouselRoot=Tg;exports.CategoryBarChart=ub;exports.ChartAxis=Ir;exports.ChartBottomBar=Ga;exports.ChartContainer=Lb;exports.ChartContext=Ar;exports.ChartEventMarkers=gl;exports.ChartEventSpans=bl;exports.ChartExpandOwnedByAncestor=GT;exports.ChartHeader=Ta;exports.ChartLabelledBy=Yo;exports.ChartOwnsItsTitle=Mf;exports.ChartTooltip=nn;exports.Checkbox=Mo;exports.CheckboxGroup=xu;exports.Chip=uo;exports.ChipInputField=Gg;exports.ClearButton=Ni;exports.CodeEditor=Kg;exports.Collapse=Ia;exports.CollapseContent=tn;exports.CollapseHeader=en;exports.CollapseItem=$o;exports.ColorField=wk;exports.ColorModeProvider=Km;exports.CommandPalette=Rh;exports.Confirm=Qg;exports.ConnectionStatusBadge=Zg;exports.ContactCard=_g;exports.ContactMetaCell=Hx;exports.ContactMetaDisplay=al;exports.ContainerQueryProvider=tb;exports.CopyToClipboard=Qo;exports.CustomCell=Gx;exports.DEFAULT_MAP_TYPE=Ec;exports.DIVERGING_RAMPS=vc;exports.DataControls=kx;exports.DataTable=bh;exports.DateCell=Wx;exports.DateField=Rx;exports.DateRangePicker=Ll;exports.DeltaCell=Ux;exports.Description=Te;exports.DeviceHealthBadge=hh;exports.DeviceMetaCell=Yx;exports.DeviceMetaDisplay=zl;exports.DeviceStateBadge=Xn;exports.DeviceStateCell=jx;exports.DeviceStateWithMetric=Gl;exports.DeviceTypeIcon=vh;exports.Dialog=or;exports.DialogForm=mA;exports.DialogHeader=Jt;exports.Drawer=Qi;exports.DrawerForm=fA;exports.ENTITY_CATEGORY_CONFIG=tA;exports.ENTITY_CONFIG=ma;exports.EmptyState=Sl;exports.EnrollmentStatusBadge=Sh;exports.ErrorBoundary=Kr;exports.FieldError=fe;exports.FieldGroup=sg;exports.FileUpload=Nh;exports.FilterChips=Tx;exports.FilterDialog=Dx;exports.FirmwareVersionBadge=Th;exports.Form=Qa;exports.FormActions=bA;exports.FormDivider=kA;exports.FormGrid=CA;exports.FormSection=NA;exports.FormStepper=TA;exports.FormatRegistry=re;exports.FormattedCell=Qx;exports.FunnelSeries=Fb;exports.GRID_ELEMENT_TYPE_BY_ENTITY=nA;exports.GRID_STATE_COLORS=eA;exports.GRID_STAT_LIST=pt;exports.GlobalSearch=Lh;exports.Grid=Tp;exports.GridStateBadge=Hl;exports.HEADLINE_METRIC_BOUNDS=lA;exports.Heading=rr;exports.HierarchyExplorer=ay;exports.HorizontalBarCell=fp;exports.HoverCard=UE;exports.Icon=F;exports.InfiniteScrollIndicator=Mr;exports.Input=Xs;exports.InputWrapper=wt;exports.InteractiveMap=ds;exports.Kpi=uy;exports.KpiGroup=Ip;exports.Label=Ue;exports.LineSeries=Vn;exports.List=xy;exports.ListBox=cM;exports.ListBoxItem=ar;exports.ListItem=yy;exports.ListPane=vy;exports.Loader=Po;exports.Logo=Ma;exports.MAP_TYPES=rv;exports.Meter=sv;exports.MiniBarCell=gp;exports.ModalBackdrop=br;exports.Notice=Ic;exports.NoticeContainer=Fc;exports.NoticeProvider=cv;exports.NumberCell=th;exports.NumberField=Yi;exports.PageBanner=hg;exports.PageLayout=ia;exports.PercentBarCell=bp;exports.PlaceSearch=xv;exports.Popover=ft;exports.ProgressBar=yv;exports.Prose=vv;exports.Radio=kv;exports.RadioCard=Cv;exports.RadioCardGroup=Sv;exports.RadioGroup=Nv;exports.RangeCalendar=Ya;exports.ResultsCount=Gi;exports.RichTextEditor=Rv;exports.SEQUENTIAL_RAMPS=yc;exports.SKELETON_SIZES=dn;exports.SOURCE_UNIT_TO_WH=yd;exports.SaveBar=RA;exports.SearchControl=Un;exports.SearchEmptyState=Dh;exports.SearchLoadingState=Ih;exports.SearchResultGroup=Bh;exports.SearchResultItem=Vh;exports.SearchResultsList=zh;exports.SearchTrigger=Hh;exports.Section=ai;exports.SectionNav=Vc;exports.SegmentedControl=kl;exports.Select=Ro;exports.SelectCell=oh;exports.SideNav=Ks;exports.SiteCard=Ev;exports.SiteContactCard=Lv;exports.SiteMetaCell=ah;exports.SiteMetaDisplay=Kl;exports.Skeleton=K;exports.Slider=Dv;exports.SortControl=Wi;exports.SparklineCell=xp;exports.SplitPane=Kc;exports.StackNav=La;exports.StatList=oc;exports.StaticMap=ni;exports.Switch=Dl;exports.Tab=Wc;exports.TabList=Gc;exports.TabPanel=fv;exports.Tabs=Hc;exports.TextArea=zv;exports.TextAreaWithChips=Wv;exports.TextCell=ch;exports.TextField=Vr;exports.TextLink=at;exports.TiledTimeSeriesChart=vl;exports.TiledTimeSeriesExplorer=vx;exports.TimeControls=Tl;exports.TimeField=Kv;exports.Timeline=Yv;exports.TimelineItem=Jv;exports.ToggleButton=qv;exports.Tooltip=nr;exports.TopNav=wi;exports.Tray=gt;exports.UNVERIFIED_VOLTAGE_UNIT_ROWS=oA;exports.UnsavedChangesPrompt=EA;exports.activeDeviceStates=vR;exports.addFilterCondition=cn;exports.applyDataOperations=fm;exports.archetypeFor=cA;exports.assembleSeries=_b;exports.autoScaleCurrent=V0;exports.autoScaleDistance=$m;exports.autoScaleEnergy=of;exports.autoScalePower=Y0;exports.autoScaleResistance=J0;exports.autoScaleVoltage=$0;exports.baselineFromPoint=$k;exports.camelCaseToWords=vf;exports.capitalize=hf;exports.celsiusToFahrenheit=X0;exports.celsiusToKelvin=G5;exports.centimetersToInches=S5;exports.classicPresetRanges=cx;exports.clearColorCache=ks;exports.createCategoryColorMap=y0;exports.createEmptyFilter=Ui;exports.createFilter=D1;exports.createFilters=A1;exports.createFormat=f4;exports.createTextureIcon=st;exports.createTiledCameraSyncGroup=Bb;exports.createXScale=Eu;exports.createYScale=Mi;exports.csvUnitFor=Ld;exports.csvValueFor=wf;exports.defaultMargin=ze;exports.deltaDirectionFromValue=dp;exports.deviceStateLabels=CR;exports.deviceStateMetricFormats=hY;exports.emptyStore=$b;exports.entityHasDetailPage=dA;exports.entityHasStatList=pA;exports.entityShowsNow=uA;exports.enumToSentenceCase=Z0;exports.exportChart=Bu;exports.exportTableAsCSV=bm;exports.fahrenheitToCelsius=j0;exports.fahrenheitToKelvin=W5;exports.feetToMeters=m5;exports.feetToMiles=b5;exports.filterToChips=I1;exports.formatBoolean=Ym;exports.formatCapacity=YI;exports.formatComponentValue=no;exports.formatCurrency=Qm;exports.formatCurrent=dd;exports.formatDate=Zm;exports.formatDistance=ef;exports.formatEmptyValue=Fl;exports.formatEnergy=vd;exports.formatFieldValue=xr;exports.formatInternationalPhone=Cd;exports.formatNumber=qm;exports.formatPercent=Xm;exports.formatPhone=nf;exports.formatPhoneNumber=va;exports.formatPower=kd;exports.formatPowerRating=JI;exports.formatResistance=Pd;exports.formatTemperature=mf;exports.formatText=Sf;exports.formatUSPhone=Es;exports.formatVoltage=Md;exports.getBadgeClasses=Ax;exports.getBooleanBadgeVariant=Ix;exports.getCellAlignmentClasses=lp;exports.getCellContainerClasses=Pe;exports.getCellTextClasses=zr;exports.getColorRamp=qp;exports.getColorRampsByKind=Qp;exports.getContrastingTextColor=v0;exports.getDateParts=s5;exports.getDefaultChartColor=pi;exports.getDefaultColors=Fm;exports.getDeviceStateDisplayLabel=pp;exports.getDeviceStateLabel=pp;exports.getEntityCategory=sA;exports.getEntityConfig=Yc;exports.getEntityIcon=aA;exports.getEntityLabel=iA;exports.getEntityStatList=Qv;exports.getEventColor=Do;exports.getExportFormatName=NT;exports.getExportHeaders=YA;exports.getFieldGroupStyles=kw;exports.getFilterFields=Yn;exports.getGridStateLabel=Xx;exports.getInputBackgroundStyles=ig;exports.getInputBaseStyles=Ut;exports.getInputStateStyles=qo;exports.getLinkClasses=cp;exports.getNumericColorClasses=Bl;exports.getResolvedColor=Mt;exports.getSkeletonSize=Yt;exports.getStateTone=Xae;exports.getThemeCategoricalColors=To;exports.getYFormatSettings=Jr;exports.gridStateLabels=wR;exports.inchesToCentimeters=C5;exports.isActiveDeviceState=up;exports.isActiveState=up;exports.isCustomPinsLayer=Jp;exports.isExportSupported=wT;exports.isFilterEmpty=Ml;exports.isGeoJsonLayer=Yp;exports.isLightColor=Bm;exports.isNil=ce;exports.isRasterLayer=Xp;exports.isVectorLayer=Kp;exports.kelvinToCelsius=q0;exports.kelvinToFahrenheit=U5;exports.kilometersToMiles=g5;exports.layer=Up;exports.mapValuesToCategoricalColors=od;exports.metersToFeet=p5;exports.metersToMiles=x5;exports.metersToYards=v5;exports.milesToFeet=_m;exports.milesToKilometers=f5;exports.milesToMeters=h5;exports.parseBoolean=Wo;exports.pickEnergyUnit=hd;exports.prepareTableDataForExport=KA;exports.registerPhosphorIcon=av;exports.removeFilterCondition=Kn;exports.resolveValue=ue;exports.snakeCaseToWords=Cf;exports.telemetryPresetRanges=wl;exports.temperatureStringToSymbol=lf;exports.tierForViewport=Cl;exports.tileIndexAt=DP;exports.tileKey=dr;exports.tileReducer=ex;exports.tilesForViewport=an;exports.toA=r5;exports.toActiveInactive=R0;exports.toAmps=Ps;exports.toBoolean=Go;exports.toCelsius=df;exports.toCentimeters=W0;exports.toCheckmark=M0;exports.toCompactNumber=I0;exports.toCurrency=jm;exports.toCustomDateFormat=G0;exports.toDateString=z0;exports.toEnabledDisabled=T0;exports.toFahrenheit=cf;exports.toFeet=md;exports.toFloat=D0;exports.toFormattedNumber=A0;exports.toFullDateTime=O0;exports.toGW=I5;exports.toGWh=rf;exports.toGigawatts=Nd;exports.toISOString=H0;exports.toInches=K0;exports.toInteger=L0;exports.toKA=o5;exports.toKV=Z5;exports.toKW=D5;exports.toKelvin=uf;exports.toKiloamps=cd;exports.toKilohms=af;exports.toKilometers=pd;exports.toKilovolts=Ed;exports.toKilowatts=Sd;exports.toLowerCase=gf;exports.toMA=t5;exports.toMV=q5;exports.toMW=A5;exports.toMWh=tf;exports.toMegawatts=wd;exports.toMegohms=sf;exports.toMeters=ud;exports.toMiles=fd;exports.toMilliamps=ld;exports.toMillimeters=U0;exports.toMilliohms=Td;exports.toMillivolts=Rd;exports.toNauticalMiles=u5;exports.toOhms=Ls;exports.toOnOff=P0;exports.toPercentage=Jm;exports.toRelativeTime=Rs;exports.toScientificNotation=F0;exports.toSecret=_0;exports.toSentenceCase=bf;exports.toTemperature=pf;exports.toTitleCase=xf;exports.toTrueFalse=E0;exports.toUpperCase=ff;exports.toV=Q5;exports.toVolts=Is;exports.toW=L5;exports.toWatts=Ms;exports.toWh=bd;exports.toYards=gd;exports.tokWh=xd;exports.truncateEnd=As;exports.truncateMiddle=Ca;exports.truncateStart=Ds;exports.typeRole=yt;exports.typographyRole=ao;exports.ucFirst=yf;exports.useBreakpoint=$t;exports.useChartContext=Bn;exports.useChartExpand=Vi;exports.useChartHeaderMetrics=ka;exports.useChartOwnsItsTitle=Lf;exports.useClientDataControls=Xc;exports.useColorMode=Wt;exports.useComponentFormatter=QI;exports.useContainerBreakpoint=$g;exports.useDataControls=aC;exports.useDebounce=jo;exports.useElementSize=Da;exports.useInfiniteScroll=Jo;exports.useInputFocus=Dr;exports.useLocalStorage=fc;exports.useMediaQuery=_t;exports.useNotice=uv;exports.useServerDataControls=jc;exports.useTableExport=cC;exports.useTileWindow=sx;exports.useTiledTimeSeries=Qu;exports.useWizard=MA;exports.wrapWithLink=ho;exports.yardsToMeters=y5;//# sourceMappingURL=index.cjs.map
|
|
46
|
+
`).map((G,N)=>jsxRuntime.jsxs(Je__namespace.default.Fragment,{children:[G,N<j.split(`
|
|
47
|
+
`).length-1&&jsxRuntime.jsx("br",{})]},`line-${H}-${N}`)):j}):null;return jsxRuntime.jsx("div",{className:"group flex flex-col",children:jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(Ye,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(kt,{children:jsxRuntime.jsx("div",{ref:P,contentEditable:!c,suppressContentEditableWarning:true,onInput:O=>{if(c)return;let j=O.target,H=j.querySelector("[data-chip-id]")!==null,A;if(H?(A=L(j),A=A.replace(/(\{\{[^}]+\}\})\s{2,}/g,"$1 ").replace(/\s{2,}(\{\{[^}]+\}\})/g," $1")):A=j.textContent||"",A===""){try{let C=document.createRange();C.selectNodeContents(j),C.collapse(!0);let D=window.getSelection();D?.removeAllRanges(),D?.addRange(C),E.current=0;}catch{}F("",0);return}if(A===m)return;let G=window.getSelection(),N=0;if(G&&G.rangeCount>0)try{let C=G.getRangeAt(0);if(H){let D=0,B=!1,Y=re=>{if(B)return !0;if(re===C.startContainer)return D+=C.startOffset,B=!0,!0;if(re.nodeType===Node.TEXT_NODE){if(!re.parentElement?.closest("[data-chip-id]")){if(re.contains(C.startContainer))return D+=C.startOffset,B=!0,!0;D+=(re.textContent||"").length;}}else if(re.nodeType===Node.ELEMENT_NODE){let ue=re;if(ue.hasAttribute("data-chip-id")){if(ue.contains(C.startContainer)||ue===C.startContainer){let se=ue.getAttribute("data-chip-id");return D+=`{{${se}}}`.length,B=!0,!0}let $=ue.getAttribute("data-chip-id");return D+=`{{${$}}}`.length,!1}else if(ue.tagName==="BR")return ue===C.startContainer?(B=!0,!0):(D+=1,!1)}for(let ue=0;ue<re.childNodes.length;ue++)if(Y(re.childNodes[ue]))return !0;return !1};Y(j),N=D;}else {let D=document.createRange();D.setStart(j,0),D.setEnd(C.startContainer,C.startOffset),N=D.toString().length;}}catch{N=A.length;}E.current=N,F(A,N);},onKeyDown:O=>{if(c)return;let j=window.getSelection();if(!(!j||j.rangeCount===0))try{let H=j.getRangeAt(0),A=H.commonAncestorContainer;if(O.key==="ArrowLeft"||O.key==="ArrowRight"){let G=A.nodeType===Node.TEXT_NODE?A.parentElement?.closest("[data-chip-id]"):A.closest("[data-chip-id]");if(G){O.preventDefault();try{let N=document.createRange(),C=window.getSelection();O.key==="ArrowLeft"?N.setStartBefore(G):N.setStartAfter(G),N.collapse(!0),C?.removeAllRanges(),C?.addRange(N);}catch{}}}if(O.key==="Backspace"){let G=null;if(G=(A.nodeType===Node.TEXT_NODE?A.parentElement?.closest("[data-chip-id]"):A.closest("[data-chip-id]"))||null,!G)if(A.nodeType===Node.TEXT_NODE){let N=A;if(H.startOffset===0&&N.parentElement){let C=N.previousSibling;if(C&&C.nodeType===Node.ELEMENT_NODE){let D=C.closest("[data-chip-id]");D&&(G=D);}}}else {let N=A;if(H.startOffset>0){let C=N.childNodes[H.startOffset-1];if(C&&C.nodeType===Node.ELEMENT_NODE){let D=C.closest("[data-chip-id]");D&&(G=D);}}}if(G){O.preventDefault(),O.stopPropagation();let N=G.getAttribute("data-chip-id");if(!N)return;let C=`{{${N}}}`,D=m.indexOf(C);if(D!==-1){let B=m.slice(0,D)+m.slice(D+C.length),Y=f.filter(re=>re.id!==N);E.current=D;try{window.getSelection()?.removeAllRanges();}catch{}g?.(Y),p?.(B);}}}}catch{}},onFocus:O=>{c||(w.onFocus&&w.onFocus(O),k(O));},onBlur:O=>{c||(w.onBlur&&w.onBlur(O),R(O));},className:X(),style:{whiteSpace:"pre-wrap",wordBreak:"break-word",...w.style},"data-placeholder":w.placeholder,children:Z()},m===""?"empty":"content")}),t&&jsxRuntime.jsx(Me,{size:o,className:"mt-3",children:t}),typeof r=="string"&&jsxRuntime.jsx(xe,{size:o,className:"mt-1",children:r}),typeof r=="function"&&u&&jsxRuntime.jsx(xe,{size:o,className:"mt-1",children:r(u)})]})})}function QD({isPlaceholder:e,isDisabled:t,size:r="md"}){return tailwindMerge.twMerge("inline-block box-content px-0.5 rounded outline-none tabular-nums text-center transition-colors",{sm:"text-base md:text-xs",md:"text-base md:text-sm",lg:"text-base",xl:"text-lg"}[r],e?"text-text-disabled italic":"text-text-primary",t?"text-text-disabled cursor-not-allowed":"cursor-text",!t&&"hover:bg-background-hover","data-[focused]:bg-background-selected data-[focused]:text-text-primary")}function Zv({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,isDisabled:i,isInvalid:s,reserveErrorSpace:c=true,validationResult:l,className:d,descriptionPlacement:u="below",...m}){return jsxRuntime.jsxs(reactAriaComponents.TimeField,{...m,isDisabled:i,isRequired:a,isInvalid:s,className:Ee(d,"flex flex-col gap-1"),children:[e&&jsxRuntime.jsx(Ye,{size:o,tooltip:n,description:u==="tooltip"||u==="inline"?t:void 0,descriptionPlacement:u,isRequired:a,children:e}),jsxRuntime.jsx(kt,{children:jsxRuntime.jsx(reactAriaComponents.DateInput,{className:tailwindMerge.twMerge(_o({isInvalid:s,isDisabled:i}),"px-3 py-2 flex items-center gap-0.5 w-full"),children:p=>jsxRuntime.jsx(reactAriaComponents.DateSegment,{segment:p,className:QD({isPlaceholder:p.isPlaceholder,isDisabled:!p.isEditable||i,size:o})})})}),c?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(xe,{size:o,children:r}):typeof r=="function"&&l?jsxRuntime.jsx(xe,{size:o,children:r(l)}):t&&u==="below"?jsxRuntime.jsx(Me,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(xe,{size:o,className:"mt-1",children:r}):typeof r=="function"&&l?jsxRuntime.jsx(xe,{size:o,className:"mt-1",children:r(l)}):t&&u==="below"?jsxRuntime.jsx(Me,{size:o,className:"mt-1",children:t}):null})]})}function _v({children:e,className:t=""}){return jsxRuntime.jsx("div",{className:`flex flex-col ${t}`.trim(),role:"list",children:e})}function $v({children:e,variant:t="default",icon:r,label:o,isLast:n=false,className:a=""}){let s={default:{dot:"bg-border-default border-border-default",line:"bg-border-default",label:"text-text-secondary",content:"text-text-primary"},active:{dot:"bg-text-primary border-text-primary",line:"bg-border-default",label:"text-text-secondary",content:"text-text-primary font-medium"},muted:{dot:"bg-border-muted border-border-muted",line:"bg-border-muted",label:"text-text-secondary",content:"text-text-secondary"},success:{dot:"bg-feedback-success-border border-feedback-success-border",line:"bg-border-default",label:"text-text-secondary",content:"text-text-primary"},error:{dot:"bg-feedback-error-border border-feedback-error-border",line:"bg-border-default",label:"text-text-secondary",content:"text-text-primary"},warning:{dot:"bg-feedback-warning-border border-feedback-warning-border",line:"bg-border-default",label:"text-text-secondary",content:"text-text-primary"},info:{dot:"bg-feedback-info-border border-feedback-info-border",line:"bg-border-default",label:"text-text-secondary",content:"text-text-primary"}}[t];return jsxRuntime.jsxs("div",{className:`flex gap-3 ${a}`.trim(),role:"listitem",children:[jsxRuntime.jsxs("div",{className:"flex flex-col items-center",style:{width:"20px"},children:[jsxRuntime.jsx("div",{className:`flex items-center justify-center rounded-full border-2 ${s.dot}`,style:{width:"20px",height:"20px",flexShrink:0},children:r&&jsxRuntime.jsx(V,{name:r,size:12,className:"text-background-body"})}),!n&&jsxRuntime.jsx("div",{className:`w-0.5 flex-1 ${s.line}`,style:{minHeight:"24px"}})]}),jsxRuntime.jsxs("div",{className:"flex-1 pb-6",children:[o&&jsxRuntime.jsx("div",{className:`text-xs mb-1 ${s.label}`,children:o}),jsxRuntime.jsx("div",{className:`text-sm ${s.content}`,children:e})]})]})}function tA(e){return "primary"}var rA="flex font-medium justify-center items-center gap-2 text-center transition whitespace-nowrap box-border",eC={primary:{selected:"bg-action-primary text-[color:var(--color-action-primary-text)] hover:bg-action-primary-hover forced-colors:bg-[ButtonText] forced-colors:text-[ButtonFace] border-2 border-transparent",unselected:"bg-transparent text-action-primary border-2 border-border-muted hover:bg-text-primary/[0.05] forced-colors:border-[ButtonBorder] forced-colors:bg-[ButtonFace] forced-colors:text-[ButtonText]"}},oA="opacity-[--control-hover-opacity] cursor-not-allowed pointer-events-none grayscale",nA="opacity-100 cursor-pointer",aA={"top-right":"-right-2 -top-2","top-left":"-left-2 -top-2","bottom-right":"-right-2 -bottom-2","bottom-left":"-left-2 -bottom-2"},iA={primary:"bg-action-primary text-[color:var(--color-action-primary-text)]",destructive:"bg-feedback-error-border text-text-inverse"};function sA(e){let{variant:t="primary",size:r="md",isDisabled:o,isSelected:n,borderRadius:a,borderRight:i,borderLeft:s}=e,c=tA(),l=`${rA} ${n?eC[c].selected:eC[c].unselected}`;return l+=` ${je[r].text} ${je[r].height} ${je[r].padding} ${je[r].gap}`,l+=` ${o?oA:nA}`,a==="left"&&(l+=" rounded-l-sm"),a==="right"&&(l+=" rounded-r-sm"),i&&(l+=" border-r"),s&&(l+=" border-l"),l+=` ${$e()}`,(l+=" focus-visible:outline-action-primary"),tailwindMerge.twMerge(l)}function rC(e){let{className:t,children:r,onPress:o,icon:n,iconPosition:a="left",iconWeight:i,isLoading:s=false,loadingText:c,loadingIndicator:l,size:d="md",badgeNumber:u,badgeVariant:m="primary",badgePosition:p="top-right",...f}=e,g=n?jsxRuntime.jsx(V,{name:n,size:d,weight:i}):null,y=()=>{let h=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[a==="left"&&g,r,a==="right"&&g]});return s?jsxRuntime.jsxs("div",{className:"relative inline-flex items-center justify-center",children:[jsxRuntime.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:l||jsxRuntime.jsx(V,{name:"CircleNotch",size:d,className:"animate-spin","aria-hidden":"true"})}),jsxRuntime.jsx("div",{className:"invisible","aria-hidden":"true",children:h}),c&&jsxRuntime.jsx("span",{className:"sr-only",role:"status","aria-live":"polite",children:c})]}):h},b=jsxRuntime.jsx(reactAriaComponents.ToggleButton,{onPress:o,...f,className:tailwindMerge.twMerge(sA(e),t),"aria-busy":s,children:y()});return u&&u>0?jsxRuntime.jsxs("div",{className:"relative",children:[b,jsxRuntime.jsx("span",{className:`absolute ${aA[p]} flex h-5 w-5 items-center justify-center rounded-full ${iA[m]} text-xs`,"aria-label":`${u} items`,children:u})]}):b}var cA={open:{className:"text-feedback-success-border",token:"--color-feedback-success-border",label:"Open"},closed:{className:"text-feedback-error-border",token:"--color-feedback-error-border",label:"Closed"}},dA={platform:{label:"Platform",description:"Core product objects that structure the Texture workspace.",icon:"Stack",order:0},grid:{label:"Grid Elements",description:"Physical utility-grid infrastructure imported from a customer's GIS export.",icon:"TreeStructure",order:1},device:{label:"Devices",description:"Behind-the-meter connected energy devices.",icon:"Lightning",order:2}},uA=["energized","customerName","gs_max_continuous_current"],pA=["CAPACITOR.nominalVoltage","NODE.nominalVoltage","REGULATOR.outputVoltagePhA","REGULATOR.outputVoltagePhB","REGULATOR.outputVoltagePhC","GENERATOR.outputVoltage","MOTOR.voltage"],ft={TRANSFORMER:[{key:"capacityKva",label:"kVA Rating",format:{type:"power",unit:"kVA",decimals:0}},{key:"primaryVoltageKv",label:"Primary Voltage",format:{type:"voltage",unit:"kV",decimals:1}},{key:"outputVoltageKv",label:"Output Voltage",format:{type:"voltage",unit:"kV",decimals:2}}],CONSUMER:[{key:"meterNumber",label:"Meter Number",format:{type:"text"}}],SOURCE:[{key:"voltageKv",label:"Nominal Voltage",format:{type:"voltage",unit:"kV",decimals:1}},{key:"substationNumber",label:"Substation Number",format:{type:"text"}}],SWITCH:[{key:"switchId",label:"Switch ID",format:{type:"text"}},{key:"ratedCurrent",label:"Rated Current",format:{type:"number",unit:"A",decimals:0}},{key:"normalState",label:"Normal State",format:{type:"text"}}],CAPACITOR:[{key:"unitSizeKvar",label:"Capacity",format:{type:"power",unit:"kVar",decimals:1}},{key:"nominalVoltage",label:"Nominal Voltage",format:{type:"voltage",unit:"V",decimals:0}}],OVERCURRENT_DEVICE:[{key:"ratedCurrent",label:"Rated Current",format:{type:"number",unit:"A",decimals:0}},{key:"deviceType",label:"Device Type",format:{type:"text"}}],REGULATOR:[{key:"outputVoltagePhA",label:"Output Voltage Phase A",format:{type:"voltage",unit:"V",decimals:0}},{key:"outputVoltagePhB",label:"Output Voltage Phase B",format:{type:"voltage",unit:"V",decimals:0}},{key:"outputVoltagePhC",label:"Output Voltage Phase C",format:{type:"voltage",unit:"V",decimals:0}},{key:"ratedPower",label:"Rated Power",format:{type:"power",unit:"kVA",decimals:1}}],OVERHEAD_LINE:[{key:"impedanceLength",label:"Length",format:{type:"distance",unit:"ft",decimals:0}},{key:"conductorDescPhA",label:"Conductor Phase A",format:{type:"text"}},{key:"conductorDescPhB",label:"Conductor Phase B",format:{type:"text"}},{key:"conductorDescPhC",label:"Conductor Phase C",format:{type:"text"}}],UNDERGROUND_LINE:[{key:"impedanceLength",label:"Length",format:{type:"distance",unit:"ft",decimals:0}},{key:"conductorDescPhA",label:"Conductor Phase A",format:{type:"text"}},{key:"conductorDescPhB",label:"Conductor Phase B",format:{type:"text"}},{key:"conductorDescPhC",label:"Conductor Phase C",format:{type:"text"}}],NODE:[{key:"nominalVoltage",label:"Nominal Voltage",format:{type:"voltage",unit:"V",decimals:0}}],GENERATOR:[{key:"ratedPower",label:"Rated Power",format:{type:"power",unit:"kW",decimals:1}},{key:"outputVoltage",label:"Output Voltage",format:{type:"voltage",unit:"V",decimals:0}}],MOTOR:[{key:"ratedPower",label:"Rated Power",format:{type:"power",unit:"kW",decimals:1}},{key:"voltage",label:"Voltage",format:{type:"voltage",unit:"V",decimals:0}}]},ha={app:{icon:"AppWindow",category:"platform",archetype:"platform",detailPage:false,label:{singular:"App",plural:"Apps"},description:"Workspace tools and third-party integrations"},site:{icon:"MapPin",category:"platform",archetype:"platform",detailPage:true,label:{singular:"Site",plural:"Sites"},description:"Physical location housing energy systems"},device:{icon:"ShareNetwork",category:"platform",archetype:"platform",detailPage:false,label:{singular:"Device",plural:"Devices"},description:"Connected, controllable energy device"},customer:{icon:"Users",category:"platform",archetype:"platform",detailPage:true,label:{singular:"Customer",plural:"Customers"},description:"End customer or owner of one or more sites"},contact:{icon:"Users",category:"platform",archetype:"platform",detailPage:false,label:{singular:"Contact",plural:"Contacts"},description:"Person associated with a customer or site"},program:{icon:"ClipboardText",category:"platform",archetype:"platform",detailPage:false,label:{singular:"Program",plural:"Programs"},description:"Demand-response or virtual power plant program"},workflow:{icon:"FlowArrow",category:"platform",archetype:"platform",detailPage:false,label:{singular:"Workflow",plural:"Workflows"},description:"Automated rule that runs in response to events"},collection:{icon:"Stack",category:"platform",archetype:"platform",detailPage:false,label:{singular:"Collection",plural:"Collections"},description:"Named group of related entities or records"},board:{icon:"SquaresFour",category:"platform",archetype:"platform",detailPage:false,label:{singular:"Board",plural:"Boards"},description:"Dashboard for monitoring metrics and devices"},report:{icon:"ChartLine",category:"platform",archetype:"platform",detailPage:false,label:{singular:"Report",plural:"Reports"},description:"Saved analytics view or generated report"},event:{icon:"ClockCounterClockwise",category:"platform",archetype:"platform",detailPage:false,label:{singular:"Event",plural:"Events"},description:"Recorded system event or logged activity"},alert:{icon:"Warning",category:"platform",archetype:"platform",detailPage:false,label:{singular:"Alert",plural:"Alerts"},description:"Notification raised when attention is needed"},monitor:{icon:"Pulse",category:"platform",archetype:"platform",detailPage:false,label:{singular:"Monitor",plural:"Monitors"},description:"Rule that watches a metric against a threshold"},command:{icon:"Play",category:"platform",archetype:"platform",detailPage:false,label:{singular:"Command",plural:"Commands"},description:"Control action issued to a connected device"},source:{icon:"TextureSource",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:ft.SOURCE},label:{singular:"Source",plural:"Sources"},description:"Upstream feed where the network originates"},substation:{icon:"TextureSource",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:ft.SOURCE},label:{singular:"Substation",plural:"Substations"},description:"Facility that steps down transmission voltage"},capacitor:{icon:"TextureCapacitor",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:ft.CAPACITOR},label:{singular:"Capacitor",plural:"Capacitors"},description:"Capacitor bank for power-factor and voltage support"},switch:{icon:"TextureSwitchClosed",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:ft.SWITCH},label:{singular:"Switch",plural:"Switches"},description:"Sectionalizing or disconnect switch on the line",states:{open:{icon:"TextureSwitch",color:"open"},closed:{icon:"TextureSwitchClosed",color:"closed"}}},sectionalizer:{icon:"TextureSectionalizerClosed",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:ft.SWITCH},label:{singular:"Sectionalizer",plural:"Sectionalizers"},description:"Counts upstream recloser trips and opens to isolate a faulted section",states:{open:{icon:"TextureSectionalizerOpen",color:"open"},closed:{icon:"TextureSectionalizerClosed",color:"closed"}}},relay:{icon:"Cpu",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:ft.NODE},label:{singular:"Relay",plural:"Relays"},description:"Microprocessor relay that senses faults and trips devices"},transformer:{icon:"TextureTransformer",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:ft.TRANSFORMER},label:{singular:"Transformer",plural:"Transformers"},description:"Transformer that steps voltage up or down"},meter:{icon:"Gauge",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:ft.CONSUMER},label:{singular:"Meter",plural:"Meters"},description:"Revenue meter at the point of consumption"},consumer:{icon:"Gauge",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:ft.CONSUMER},label:{singular:"Consumer",plural:"Consumers"},description:"Service point or customer premise on the grid"},singlePhaseOverheadLine:{icon:"TextureSinglePhaseOverheadLine",category:"grid",archetype:"grid-line",detailPage:true,properties:{statList:ft.OVERHEAD_LINE},label:{singular:"Single-Phase Overhead Line",plural:"Single-Phase Overhead Lines"},description:"Overhead line carrying one phase conductor"},twoPhaseOverheadLine:{icon:"TextureTwoPhaseOverheadLine",category:"grid",archetype:"grid-line",detailPage:true,properties:{statList:ft.OVERHEAD_LINE},label:{singular:"Two-Phase Overhead Line",plural:"Two-Phase Overhead Lines"},description:"Overhead line carrying two phase conductors"},threePhaseOverheadLine:{icon:"TextureThreePhaseOverheadLine",category:"grid",archetype:"grid-line",detailPage:true,properties:{statList:ft.OVERHEAD_LINE},label:{singular:"Three-Phase Overhead Line",plural:"Three-Phase Overhead Lines"},description:"Overhead line carrying three phase conductors"},singlePhaseUndergroundLine:{icon:"TextureSinglePhaseUndergroundLine",category:"grid",archetype:"grid-line",detailPage:true,properties:{statList:ft.UNDERGROUND_LINE},label:{singular:"Single-Phase Underground Line",plural:"Single-Phase Underground Lines"},description:"Buried line carrying one phase conductor"},twoPhaseUndergroundLine:{icon:"TextureTwoPhaseUndergroundLine",category:"grid",archetype:"grid-line",detailPage:true,properties:{statList:ft.UNDERGROUND_LINE},label:{singular:"Two-Phase Underground Line",plural:"Two-Phase Underground Lines"},description:"Buried line carrying two phase conductors"},threePhaseUndergroundLine:{icon:"TextureThreePhaseUndergroundLine",category:"grid",archetype:"grid-line",detailPage:true,properties:{statList:ft.UNDERGROUND_LINE},label:{singular:"Three-Phase Underground Line",plural:"Three-Phase Underground Lines"},description:"Buried line carrying three phase conductors"},motorSwitch:{icon:"Diamond",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:ft.MOTOR},label:{singular:"Motor Switch",plural:"Motor Switches"},description:"Motor-operated switch or motor load element"},recloser:{icon:"TextureRecloser",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:ft.OVERCURRENT_DEVICE},label:{singular:"Recloser",plural:"Reclosers"},description:"Auto-reclosing device that clears transient faults",states:{open:{color:"open"},closed:{color:"closed"}}},fuse:{icon:"TextureFuse",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:ft.OVERCURRENT_DEVICE},label:{singular:"Fuse",plural:"Fuses"},description:"Fusible element providing overcurrent protection"},breaker:{icon:"TextureBreaker",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:ft.OVERCURRENT_DEVICE},label:{singular:"Breaker",plural:"Breakers"},description:"Circuit breaker that interrupts fault current",states:{open:{color:"open"},closed:{color:"closed"}}},generator:{icon:"Wind",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:ft.GENERATOR},label:{singular:"Generator",plural:"Generators"},description:"Distributed generation unit feeding the grid"},regulator:{icon:"TextureRegulator",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:ft.REGULATOR},label:{singular:"Regulator",plural:"Regulators"},description:"Voltage regulator that holds line voltage in range"},supportStructure:{icon:"TextureSupportStructure",category:"grid",archetype:"grid-line",detailPage:true,properties:{statList:ft.NODE},label:{singular:"Support Structure",plural:"Support Structures"},description:"Structure carrying overhead line equipment"},battery:{icon:"BatteryHigh",category:"device",archetype:"device",detailPage:true,label:{singular:"Battery",plural:"Batteries"},description:"Behind-the-meter battery or storage system",fusedMetricId:"soc",fields:{headlineMetrics:[{id:"power",label:"device.battery.fields.power",source:{kind:"state",path:"state.gridPower"},format:{type:"power",decimals:1},icon:"Lightning"},{id:"soc",label:"device.battery.fields.soc",source:{kind:"state",path:"state.chargePercentage"},format:{type:"percentage",decimals:0},icon:"BatteryCharging"},{id:"backupReserve",label:"device.battery.fields.backupReserve",source:{kind:"state",path:"state.backupReserve"},format:{type:"percentage",decimals:0},icon:"BatteryCharging"},{id:"loadPower",label:"device.battery.fields.loadPower",source:{kind:"state",path:"state.loadPower"},format:{type:"power",decimals:1},icon:"Lightning"}]},stateRules:{primaryState:{label:"device.battery.fields.status",fieldPath:"state.chargingState",mapping:{charging:"charging",discharging:"discharging",idle:"idle",unknown:"unknown"},fallback:"unknown"},secondaryState:{label:"device.battery.fields.gridState",fieldPath:"state.gridStatus",mapping:{importing:"importing",exporting:"exporting",idle:"importing",unknown:"importing"},fallback:"importing"}}},evCharger:{icon:"ChargingStation",category:"device",archetype:"device",detailPage:true,label:{singular:"EV Charger",plural:"EV Chargers"},description:"Electric-vehicle charging station or port",fusedMetricId:"power",fields:{headlineMetrics:[{id:"power",label:"device.evCharger.fields.power",source:{kind:"state",path:"state.chargerWattage"},format:{type:"power",decimals:1},icon:"Lightning"},{id:"isPluggedIn",label:"device.evCharger.fields.isPluggedIn",source:{kind:"state",path:"state.isPluggedIn"},format:{type:"boolean",trueText:"Yes",falseText:"No"},icon:"Plug"},{id:"voltage",label:"device.evCharger.fields.voltage",source:{kind:"state",path:"state.chargerVoltage"},format:{type:"voltage",decimals:1},icon:"Lightning"},{id:"current",label:"device.evCharger.fields.current",source:{kind:"state",path:"state.chargerCurrent"},format:{type:"current",decimals:1},icon:"Lightning"}]},stateRules:{primaryState:{label:"device.evCharger.fields.status",fieldPath:"state.chargingState",mapping:{charging:"charging",discharging:"discharging",idle:"idle",unknown:"unknown"},fallback:"unknown"}}},inverter:{icon:"Sun",category:"device",archetype:"device",detailPage:true,label:{singular:"Solar / Inverter",plural:"Solar / Inverters"},description:"Solar PV inverter and its connected array",fusedMetricId:"power",fields:{headlineMetrics:[{id:"power",label:"device.inverter.fields.power",source:{kind:"state",path:"state.power"},format:{type:"power",decimals:0},icon:"Lightning"},{id:"gridPower",label:"device.inverter.fields.gridPower",source:{kind:"state",path:"state.gridPower"},format:{type:"power",decimals:0},icon:"GridFour"},{id:"generatedEnergy",label:"device.inverter.fields.generatedEnergy",source:{kind:"state",path:"state.generatedEnergy"},format:{type:"energy",decimals:1},icon:"Lightning"},{id:"lifetimeEnergyGenerated",label:"device.inverter.fields.lifetimeEnergyGenerated",source:{kind:"state",path:"state.lifetimeEnergyGenerated"},format:{type:"energy",decimals:0},icon:"Lightning"}]},stateRules:{primaryState:{label:"device.inverter.fields.gridStatus",fieldPath:"state.gridStatus",mapping:{exporting:"exporting",importing:"importing",idle:"idle"},fallback:"unknown"}}},thermostat:{icon:"Thermometer",category:"device",archetype:"device",detailPage:true,label:{singular:"Thermostat",plural:"Thermostats"},description:"Smart thermostat or connected HVAC control",fusedMetricId:"ambientTemperature",fields:{headlineMetrics:[{id:"ambientTemperature",label:"device.thermostat.fields.ambientTemperature",source:{kind:"state",path:"state.ambientTemperature"},format:{type:"temperature",decimals:0},icon:"Thermometer"},{id:"heatTarget",label:"device.thermostat.fields.heatTarget",source:{kind:"state",path:"state.heatTarget"},format:{type:"temperature",decimals:0},icon:"Flame"},{id:"coolTarget",label:"device.thermostat.fields.coolTarget",source:{kind:"state",path:"state.coolTarget"},format:{type:"temperature",decimals:0},icon:"Snowflake"},{id:"fanMode",label:"device.thermostat.fields.fanMode",source:{kind:"state",path:"state.fanMode"},format:{type:"text"}}]},stateRules:{primaryState:{label:"device.thermostat.fields.operatingMode",fieldPath:"state.operatingMode",mapping:{heat:"heat",cool:"cool",auto:"auto",off:"off",eco:"eco",unknown:"unknown"},fallback:"unknown"}}},vehicle:{icon:"Car",category:"device",archetype:"device",detailPage:true,label:{singular:"EV",plural:"EVs"},description:"Electric vehicle managed as a flexible load",fusedMetricId:"chargePercentage",fields:{headlineMetrics:[{id:"chargePercentage",label:"device.vehicle.fields.chargePercentage",source:{kind:"state",path:"state.chargePercentage"},format:{type:"percentage",decimals:0},icon:"BatteryCharging"},{id:"range",label:"device.vehicle.fields.range",source:{kind:"state",path:"state.range"},format:{type:"distance",unit:"mi",decimals:0},icon:"GasPump"},{id:"chargeLimit",label:"device.vehicle.fields.chargeLimit",source:{kind:"state",path:"state.chargeLimit"},format:{type:"percentage",decimals:0},icon:"BatteryCharging"},{id:"isPluggedIn",label:"device.vehicle.fields.isPluggedIn",source:{kind:"state",path:"state.isPluggedIn"},format:{type:"boolean",trueText:"Yes",falseText:"No"},icon:"Plug"}]},stateRules:{primaryState:{label:"device.vehicle.fields.status",fieldPath:"state.chargingState",mapping:{charging:"charging",discharging:"discharging",idle:"idle",unknown:"unknown"},fallback:"unknown"}}},waterHeater:{icon:"Drop",category:"device",archetype:"device",detailPage:true,label:{singular:"Water Heater",plural:"Water Heaters"},description:"Connected or smart electric water heater"}},mA={source:"SOURCE",substation:"SOURCE",capacitor:"CAPACITOR",switch:"SWITCH",sectionalizer:"SWITCH",relay:"NODE",transformer:"TRANSFORMER",meter:"CONSUMER",consumer:"CONSUMER",singlePhaseOverheadLine:"OVERHEAD_LINE",twoPhaseOverheadLine:"OVERHEAD_LINE",threePhaseOverheadLine:"OVERHEAD_LINE",singlePhaseUndergroundLine:"UNDERGROUND_LINE",twoPhaseUndergroundLine:"UNDERGROUND_LINE",threePhaseUndergroundLine:"UNDERGROUND_LINE",motorSwitch:"MOTOR",recloser:"OVERCURRENT_DEVICE",fuse:"OVERCURRENT_DEVICE",breaker:"OVERCURRENT_DEVICE",generator:"GENERATOR",regulator:"REGULATOR",supportStructure:"NODE"};function _c(e){return ha[e]}function fA(e){return ha[e].icon}function gA(e,t=false){return t?ha[e].label.plural:ha[e].label.singular}function bA(e){return ha[e].category}var xA={min:2,max:4};function hA(e){let t=ha[e];if(!t)throw new Error(`archetypeFor: unknown entity type "${String(e)}"`);return t.archetype}function yA(e){return _c(e).detailPage}function vA(e){return (_c(e).fields?.headlineMetrics.length??0)>0}function oC(e){return _c(e).properties?.statList??[]}function CA(e){return oC(e).length>0}function SA({formId:e="dialog-form",onSubmit:t,primaryLabel:r="Save",secondaryLabel:o="Cancel",onCancel:n,primaryVariant:a,secondaryVariant:i="secondary",children:s,title:c,...l}){return jsxRuntime.jsx(sr,{title:c,primaryAction:{label:r,onPress:()=>{let u=document.getElementById(e);u&&u.requestSubmit();},variant:a},secondaryAction:n?{label:o,onPress:n,variant:i}:void 0,...l,children:jsxRuntime.jsx($a,{id:e,onSubmit:t,children:s})})}function wA({formId:e="drawer-form",onSubmit:t,primaryLabel:r="Save",secondaryLabel:o="Cancel",onCancel:n,primaryVariant:a,secondaryVariant:i="secondary",children:s,...c}){return jsxRuntime.jsx($i,{primaryAction:{label:r,onPress:()=>{let d=document.getElementById(e);d&&d.requestSubmit();},variant:a},secondaryAction:n?{label:o,onPress:n,variant:i}:void 0,...c,children:jsxRuntime.jsx($a,{id:e,onSubmit:t,className:"mt-2",children:s})})}function kA({align:e="end",className:t,...r}){return jsxRuntime.jsx("div",{...r,className:tailwindMerge.twMerge("flex gap-2",e==="start"?"justify-start":e==="between"?"justify-between":"justify-end",t)})}var RA={sm:"gap-2",md:"gap-4",lg:"gap-6"};function EA(e){if(!e)return "";let t=e.base?`grid-cols-${e.base}`:"",r=e.md?`md:grid-cols-${e.md}`:"",o=e.lg?`lg:grid-cols-${e.lg}`:"";return [t,r,o].filter(Boolean).join(" ")}function MA({cols:e={base:1},gap:t="lg",className:r,...o}){return jsxRuntime.jsx("div",{...o,className:tailwindMerge.twMerge("grid",EA(e),RA[t],r)})}function AA({title:e,description:t,showDivider:r,className:o,children:n,...a}){return jsxRuntime.jsxs("section",{...a,className:tailwindMerge.twMerge("flex flex-col",o),children:[(e||t)&&jsxRuntime.jsxs("div",{className:"flex flex-col gap-1 mb-6",children:[typeof e=="string"?jsxRuntime.jsx(ir,{tag:"h3",size:"sm",children:e}):e,t?jsxRuntime.jsx(Me,{size:"lg",children:t}):null]}),jsxRuntime.jsx("div",{className:"flex flex-col gap-6",children:n}),r&&jsxRuntime.jsx("hr",{className:"mt-2 border-border-muted"})]})}function IA(){return jsxRuntime.jsx("hr",{className:"border-border-muted"})}function FA({steps:e,currentStepId:t,onStepClick:r,className:o}){let n=e.findIndex(a=>a.id===t);return jsxRuntime.jsx("nav",{"aria-label":"Progress",className:tailwindMerge.twMerge("w-full",o),children:jsxRuntime.jsx("div",{className:"relative mb-12",children:jsxRuntime.jsx("ol",{className:"relative flex items-start justify-between",children:e.map((a,i)=>{let s=a.id===t,c=i<n,l=r&&(c||s);return jsxRuntime.jsxs("li",{className:"relative flex flex-col items-center",style:{flex:`1 1 ${100/e.length}%`},children:[jsxRuntime.jsx("button",{type:"button",disabled:!l,onClick:()=>l&&r?.(a.id),className:tailwindMerge.twMerge("relative z-10 flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-full border-2 transition-colors bg-background-body",c&&"border-action-primary bg-action-primary text-text-inverse hover:bg-action-primary/90",s&&"border-action-primary bg-background-body text-action-primary",!c&&!s&&"border-border-default bg-background-body text-text-secondary",l&&"cursor-pointer",!l&&"cursor-default"),"aria-current":s?"step":void 0,children:c?jsxRuntime.jsx(V,{name:"Check",size:20,weight:"bold"}):jsxRuntime.jsx("span",{className:"text-sm font-semibold",children:i+1})}),i<e.length-1&&jsxRuntime.jsx("div",{className:"absolute top-5 h-0.5 transition-colors",style:{left:"50%",width:"100%",marginLeft:"20px",backgroundColor:i<n?"var(--color-action-primary)":"var(--color-border-default)"}}),jsxRuntime.jsxs("div",{className:"mt-3 flex flex-col items-center text-center w-32",children:[jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("text-sm font-medium",s&&"text-text-default",c&&"text-text-primary",!s&&!c&&"text-text-secondary"),children:a.title}),a.description&&jsxRuntime.jsx("span",{className:"mt-1 text-xs text-text-secondary",children:a.description})]})]},a.id)})})})})}function VA({formId:e,show:t,isSubmitting:r,onCancel:o,primaryLabel:n="Save changes",secondaryLabel:a="Cancel",className:i}){return t?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("fixed inset-x-0 bottom-0 z-40 border-t border-border-muted bg-background-surface/95 backdrop-blur supports-[backdrop-filter]:bg-background-surface/70",i),children:jsxRuntime.jsxs("div",{className:"mx-auto flex max-w-screen-lg items-center justify-between gap-3 p-3",children:[jsxRuntime.jsx("div",{className:"text-sm text-text-secondary",children:"You have unsaved changes"}),jsxRuntime.jsxs("div",{className:"flex gap-2",children:[jsxRuntime.jsx(_,{variant:"secondary",onPress:o,children:a}),jsxRuntime.jsx(_,{type:"submit",form:e,isDisabled:!!r,children:r?"Saving...":n})]})]})}):null}function zA({when:e,message:t="You have unsaved changes. Leave anyway?"}){return Je__namespace.useEffect(()=>{if(!e)return;let r=o=>(o.preventDefault(),o.returnValue=t,t);return window.addEventListener("beforeunload",r),()=>window.removeEventListener("beforeunload",r)},[e,t]),null}function OA({steps:e,initialStepId:t,canNavigate:r}){if(e.length===0)throw new Error("useWizard: steps array cannot be empty");let[o,n]=Je__namespace.useState(t||e[0].id),a=e.findIndex(u=>u.id===o),i=a>0,s=a<e.length-1,c=async u=>u===o?true:r&&!await r(o,u)?false:(n(u),true);return {steps:e,currentStepId:o,setCurrentStepId:c,next:async()=>!s||a===-1?false:c(e[a+1].id),prev:async()=>!i||a===-1?false:c(e[a-1].id),hasNext:s,hasPrev:i,stepIndex:a}}function Ns(e,t){return t.split(".").reduce((r,o)=>r?.[o],e)}function GA(e,t){let r=Ns(e,t.field),o=t.value;switch(t.operator){case "eq":return r===o;case "neq":return r!==o;case "in":return Array.isArray(o)?Array.isArray(r)?r.some(n=>o.includes(n)):o.includes(r):false;case "nin":return Array.isArray(o)?Array.isArray(r)?!r.some(n=>o.includes(n)):!o.includes(r):false;case "gt":return r instanceof Date&&typeof o=="string"?r>new Date(o):r>o;case "gte":return r instanceof Date&&typeof o=="string"?r>=new Date(o):r>=o;case "lt":return r instanceof Date&&typeof o=="string"?r<new Date(o):r<o;case "lte":return r instanceof Date&&typeof o=="string"?r<=new Date(o):r<=o;case "contains":return typeof r!="string"?false:r.toLowerCase().includes(String(o).toLowerCase());case "startsWith":return typeof r!="string"?false:r.toLowerCase().startsWith(String(o).toLowerCase());case "endsWith":return typeof r!="string"?false:r.toLowerCase().endsWith(String(o).toLowerCase());default:return false}}function uC(e,t){if(t.conditions.length===0)return true;let r=t.conditions.map(o=>"conditions"in o?uC(e,o):GA(e,o));return t.logic==="AND"?r.every(Boolean):r.some(Boolean)}function WA(e,t){return !t||t.conditions.length===0?e:e.filter(r=>uC(r,t))}function UA(e,t,r){if(e==null&&t==null)return 0;if(e==null)return r==="asc"?1:-1;if(t==null)return r==="asc"?-1:1;if(e instanceof Date&&t instanceof Date){let o=e.getTime()-t.getTime();return r==="asc"?o:-o}if(typeof e=="string"&&typeof t=="string"){let o=e.toLowerCase().localeCompare(t.toLowerCase());return r==="asc"?o:-o}return e<t?r==="asc"?-1:1:e>t?r==="asc"?1:-1:0}function KA(e,t){return t?[...e].sort((r,o)=>{let n=Ns(r,t.field),a=Ns(o,t.field);return UA(n,a,t.direction)}):e}function YA(e,t){if(!t||!t.query.trim())return e;let{query:r,fields:o,fuzzy:n=true,threshold:a=.3}=t;if(n)return new HA__default.default(e,{keys:o,threshold:a,ignoreLocation:true,includeScore:true}).search(r).map(l=>l.item);let i=r.toLowerCase();return e.filter(s=>o.some(c=>{let l=Ns(s,c);return l==null?false:String(l).toLowerCase().includes(i)}))}function JA(e,t){let r={};for(let o of t){if(r[o.field]={},o.values)for(let n of o.values)r[o.field][String(n.value)]=0;for(let n of e){let a=Ns(n,o.field);if(a!=null)if(Array.isArray(a))for(let i of a){let s=String(i);r[o.field][s]=(r[o.field][s]||0)+1;}else {let i=String(a);r[o.field][i]=(r[o.field][i]||0)+1;}}}return r}function ym({data:e,filters:t,sort:r,search:o,facetConfigs:n=[]}){let a=YA(e,o||null);a=WA(a,t||null);let i=JA(a,n);return a=KA(a,r||null),{data:a,facetCounts:i,resultCount:a.length}}function ed({data:e,filters:t,sort:r,search:o,facetConfigs:n=[]}){return Je.useMemo(()=>ym({data:e,filters:t,sort:r,search:o,facetConfigs:n}),[e,t,r,o,n])}function td({filters:e,sort:t,search:r,onStateChange:o,searchDebounce:n=300}){let a=Zo(r,n),i=Je.useRef(true);Je.useEffect(()=>{if(i.current){i.current=false;return}o({filters:e,sort:t,search:a});},[e,t,a,o]);}function pC(e){return e.mode==="client"?ed({data:e.data,filters:e.filters,sort:e.sort,search:e.search,facetConfigs:e.facetConfigs}):(td({filters:e.filters,sort:e.sort,search:e.search,onStateChange:e.onStateChange,searchDebounce:e.searchDebounce}),{data:e.data,facetCounts:e.facetCounts||{},resultCount:e.resultCount??e.data.length})}var mC=Pm(Gu());function ZA(e,t,r=true){let o=e;if(r){let n=new Date().toISOString().replace(/[:.]/g,"-").slice(0,-5);return `${o}-${n}.${t}`}return `${o}.${t}`}function _A(e,t){return t.accessor?typeof t.accessor=="function"?t.accessor(e):e[t.accessor]:null}function fC(e,t){let r=_A(t,e);return e.exportValue?e.exportValue(r,t)??"":r==null?"":r instanceof Date?r.toISOString():typeof r=="object"?JSON.stringify(r):r}function vm(e){return e.filter(t=>t.exportable!==false)}function gC(e){let t=e.map(n=>n.exportLabel||n.label),r=new Set,o=[];for(let n of t)r.has(n)?o.includes(n)||o.push(n):r.add(n);if(o.length>0)throw new Error(`Duplicate export headers found: ${o.join(", ")}. Use exportLabel to provide unique headers.`)}async function Cm(e){let{columns:t,data:r,metadata:o={}}=e;try{let n=vm(t);if(n.length===0)throw new Error("No exportable columns found");gC(n);let a=r.map(l=>{let d={};for(let u of n){let m=u.exportLabel||u.label;d[m]=fC(u,l);}return d}),i=NT__default.default.unparse(a,{header:!0,skipEmptyLines:!0}),s=new Blob([i],{type:"text/csv;charset=utf-8;"}),c=ZA(o.filename||"table-data","csv",o.timestamp!==!1);(0,mC.saveAs)(s,c);}catch(n){throw new Error(`CSV export failed: ${n instanceof Error?n.message:"Unknown error"}`)}}function $A(e){let{columns:t,data:r}=e,o=vm(t);return gC(o),r.map(n=>{let a={};for(let i of o){let s=i.exportLabel||i.label;a[s]=fC(i,n);}return a})}function eI(e){return vm(e).map(t=>t.exportLabel||t.label)}function bC({columns:e,data:t,metadata:r}){let n=e.filter(i=>i.exportable!==false).length>0&&t.length>0;return {exportCSV:Je.useCallback(async()=>{try{await Cm({columns:e,data:t,metadata:r});}catch(i){throw console.error("Table export failed:",i),i}},[e,t,r]),canExport:n}}function die(e){switch(e){case "charging":case "on":return "success";case "discharging":return "warning";case "heat":case "cool":return "info";case "off":case "idle":case "eco":case "auto":return "neutral";default:return "neutral"}}Object.defineProperty(exports,"DialogTrigger",{enumerable:true,get:function(){return reactAriaComponents.DialogTrigger}});Object.defineProperty(exports,"Focusable",{enumerable:true,get:function(){return reactAriaComponents.Focusable}});exports.ABSENT_GRID_FIELDS=uA;exports.ActionCell=Hx;exports.ActionMenu=Da;exports.ActivityFeed=tu;exports.ActivityFeedGroup=Ys;exports.ActivityItem=Js;exports.Alert=tg;exports.AppShell=cg;exports.AreaSeries=sn;exports.AutoMobileRenderer=ec;exports.Autocomplete=el;exports.Avatar=Do;exports.BREAKPOINTS=wn;exports.Badge=dt;exports.BadgeCell=Wx;exports.Banner=rl;exports.BarSeries=ml;exports.BooleanCell=Ux;exports.BrandProvider=zm;exports.BreadcrumbItem=nl;exports.Breadcrumbs=ol;exports.Button=_;exports.CATEGORICAL_RAMP=Rc;exports.CHART_HEADER_HEIGHT=Kd;exports.COLOR_RAMPS=cs;exports.CUSTOM_ICON_REGISTRY=Ca;exports.Calendar=Va;exports.Card=qe;exports.CardContent=Xd;exports.CardFooter=jd;exports.CardHeader=Os;exports.CardMedia=Jd;exports.CardMobileRenderer=tc;exports.CarouselAutoplayTrigger=zg;exports.CarouselControl=Ig;exports.CarouselIndicator=wu;exports.CarouselIndicatorGroup=Vg;exports.CarouselItem=Ag;exports.CarouselItemGroup=Dg;exports.CarouselNextTrigger=Bg;exports.CarouselPrevTrigger=Fg;exports.CarouselProgressText=Og;exports.CarouselRoot=Lg;exports.CategoryBarChart=bb;exports.ChartAxis=zr;exports.ChartBottomBar=Ya;exports.ChartContainer=Bb;exports.ChartContext=Vr;exports.ChartEventMarkers=yl;exports.ChartEventSpans=vl;exports.ChartExpandOwnedByAncestor=JT;exports.ChartHeader=Ma;exports.ChartLabelledBy=jo;exports.ChartOwnsItsTitle=Ff;exports.ChartTooltip=ln;exports.Checkbox=Xr;exports.CheckboxGroup=Nu;exports.Chip=po;exports.ChipInputField=Jg;exports.ClearButton=Ti;exports.CodeEditor=qg;exports.Collapse=za;exports.CollapseContent=nn;exports.CollapseHeader=on;exports.CollapseItem=rn;exports.ColorField=Rk;exports.ColorModeProvider=qm;exports.CommandPalette=Fh;exports.Confirm=tb;exports.ConnectionStatusBadge=rb;exports.ContactCard=ob;exports.ContactMetaCell=Yx;exports.ContactMetaDisplay=cl;exports.ContainerQueryProvider=ib;exports.CopyToClipboard=$o;exports.CustomCell=Jx;exports.DEFAULT_MAP_TYPE=Bc;exports.DIVERGING_RAMPS=Pc;exports.DataControls=Mx;exports.DataTable=wh;exports.DateCell=Xx;exports.DateField=Ax;exports.DateRangePicker=Fl;exports.DeltaCell=jx;exports.Description=Me;exports.DeviceHealthBadge=kh;exports.DeviceMetaCell=Qx;exports.DeviceMetaDisplay=Wl;exports.DeviceStateBadge=Qn;exports.DeviceStateCell=$x;exports.DeviceStateWithMetric=Yl;exports.DeviceTypeIcon=Ph;exports.Dialog=sr;exports.DialogForm=SA;exports.DialogHeader=qt;exports.Drawer=$i;exports.DrawerForm=wA;exports.ENTITY_CATEGORY_CONFIG=dA;exports.ENTITY_CONFIG=ha;exports.EmptyState=Tl;exports.EnrollmentStatusBadge=Eh;exports.ErrorBoundary=Jr;exports.FieldError=xe;exports.FieldGroup=pg;exports.FileUpload=Lh;exports.FilterChips=Lx;exports.FilterDialog=Vx;exports.FirmwareVersionBadge=Ah;exports.Form=$a;exports.FormActions=kA;exports.FormDivider=IA;exports.FormGrid=MA;exports.FormSection=AA;exports.FormStepper=FA;exports.FormatRegistry=ne;exports.FormattedCell=th;exports.FunnelSeries=Hb;exports.GRID_ELEMENT_TYPE_BY_ENTITY=mA;exports.GRID_STATE_COLORS=cA;exports.GRID_STAT_LIST=ft;exports.GlobalSearch=zh;exports.Grid=Lp;exports.GridStateBadge=Kl;exports.HEADLINE_METRIC_BOUNDS=xA;exports.Heading=ir;exports.HierarchyExplorer=py;exports.HorizontalBarCell=Cp;exports.HoverCard=_E;exports.Icon=V;exports.InfiniteScrollIndicator=Ir;exports.Input=Zs;exports.InputWrapper=kt;exports.InteractiveMap=ms;exports.Kpi=hy;exports.KpiGroup=Op;exports.Label=Ye;exports.LineSeries=Hn;exports.List=Ny;exports.ListBox=hM;exports.ListBoxItem=cr;exports.ListItem=Ty;exports.ListPane=Py;exports.Loader=Mo;exports.Logo=Ia;exports.MAP_TYPES=cv;exports.Meter=fv;exports.MiniBarCell=Sp;exports.ModalBackdrop=vr;exports.Notice=Gc;exports.NoticeContainer=Wc;exports.NoticeProvider=bv;exports.NumberCell=ih;exports.NumberField=Xi;exports.PageBanner=wg;exports.PageLayout=ua;exports.PercentBarCell=wp;exports.PlaceSearch=Nv;exports.Popover=gt;exports.ProgressBar=Tv;exports.Prose=Pv;exports.Radio=Dv;exports.RadioCard=Rv;exports.RadioCardGroup=Ev;exports.RadioGroup=Lv;exports.RangeCalendar=qa;exports.RangeCell=dh;exports.ResultsCount=Ui;exports.RichTextEditor=Fv;exports.SEQUENTIAL_RAMPS=Tc;exports.SKELETON_SIZES=mn;exports.SOURCE_UNIT_TO_WH=Td;exports.SaveBar=VA;exports.SearchControl=Jn;exports.SearchEmptyState=Oh;exports.SearchLoadingState=Gh;exports.SearchResultGroup=Uh;exports.SearchResultItem=Kh;exports.SearchResultsList=Yh;exports.SearchTrigger=Xh;exports.Section=li;exports.SectionNav=Kc;exports.SegmentedControl=El;exports.Select=Lo;exports.SelectCell=ql;exports.SideNav=js;exports.SiteCard=Bv;exports.SiteContactCard=zv;exports.SiteMetaCell=ph;exports.SiteMetaDisplay=Ql;exports.Skeleton=U;exports.Slider=Ov;exports.SortControl=Ki;exports.SparklineCell=Np;exports.SplitPane=Zc;exports.StackNav=Fa;exports.StatList=dc;exports.StaticMap=si;exports.Switch=Bl;exports.Tab=qc;exports.TabList=jc;exports.TabPanel=Cv;exports.Tabs=Xc;exports.TextArea=Yv;exports.TextAreaWithChips=qv;exports.TextCell=bh;exports.TextField=Gr;exports.TextLink=st;exports.TiledTimeSeriesChart=Nl;exports.TiledTimeSeriesExplorer=kx;exports.TimeControls=Ml;exports.TimeField=Zv;exports.Timeline=_v;exports.TimelineItem=$v;exports.ToggleButton=rC;exports.Tooltip=lr;exports.TopNav=ki;exports.Tray=bt;exports.UNVERIFIED_VOLTAGE_UNIT_ROWS=pA;exports.UnsavedChangesPrompt=zA;exports.activeDeviceStates=kR;exports.addFilterCondition=pn;exports.applyDataOperations=ym;exports.archetypeFor=hA;exports.assembleSeries=ox;exports.autoScaleCurrent=W0;exports.autoScaleDistance=nf;exports.autoScaleEnergy=cf;exports.autoScalePower=Q0;exports.autoScaleResistance=Z0;exports.autoScaleVoltage=nS;exports.baselineFromPoint=nT;exports.camelCaseToWords=kf;exports.capitalize=wf;exports.celsiusToFahrenheit=_0;exports.celsiusToKelvin=Q5;exports.centimetersToInches=L5;exports.classicPresetRanges=fx;exports.clearColorCache=Es;exports.createCategoryColorMap=N0;exports.createEmptyFilter=Yi;exports.createFilter=V1;exports.createFilters=z1;exports.createFormat=w4;exports.createTextureIcon=ct;exports.createTiledCameraSyncGroup=Gb;exports.createXScale=Bu;exports.createYScale=Di;exports.csvUnitFor=zd;exports.csvValueFor=Rf;exports.defaultMargin=Oe;exports.deltaDirectionFromValue=xp;exports.deviceStateLabels=TR;exports.deviceStateMetricFormats=PY;exports.emptyStore=nx;exports.entityHasDetailPage=yA;exports.entityHasStatList=CA;exports.entityShowsNow=vA;exports.enumToSentenceCase=rS;exports.exportChart=Uu;exports.exportTableAsCSV=Cm;exports.fahrenheitToCelsius=$0;exports.fahrenheitToKelvin=Z5;exports.feetToMeters=S5;exports.feetToMiles=k5;exports.filterToChips=O1;exports.formatBoolean=Qm;exports.formatCapacity=e5;exports.formatComponentValue=ao;exports.formatCurrency=tf;exports.formatCurrent=xd;exports.formatDate=rf;exports.formatDistance=af;exports.formatEmptyValue=Ol;exports.formatEnergy=Pd;exports.formatFieldValue=Cr;exports.formatInternationalPhone=Rd;exports.formatNumber=ef;exports.formatPercent=_m;exports.formatPhone=df;exports.formatPhoneNumber=Na;exports.formatPower=Dd;exports.formatPowerRating=t5;exports.formatResistance=Id;exports.formatTemperature=hf;exports.formatText=Pf;exports.formatUSPhone=As;exports.formatVoltage=Vd;exports.getBadgeClasses=zx;exports.getBooleanBadgeVariant=Ox;exports.getCellAlignmentClasses=gp;exports.getCellContainerClasses=Ne;exports.getCellTextClasses=br;exports.getColorRamp=em;exports.getColorRampsByKind=tm;exports.getContrastingTextColor=k0;exports.getDateParts=b5;exports.getDefaultChartColor=fi;exports.getDefaultColors=Hm;exports.getDeviceStateDisplayLabel=yp;exports.getDeviceStateLabel=yp;exports.getEntityCategory=bA;exports.getEntityConfig=_c;exports.getEntityIcon=fA;exports.getEntityLabel=gA;exports.getEntityStatList=oC;exports.getEventColor=Io;exports.getExportFormatName=ET;exports.getExportHeaders=eI;exports.getFieldGroupStyles=Mw;exports.getFilterFields=jn;exports.getGridStateLabel=_x;exports.getInputBackgroundStyles=ug;exports.getInputBaseStyles=Jt;exports.getInputStateStyles=_o;exports.getLinkClasses=bp;exports.getNumericColorClasses=Hl;exports.getResolvedColor=Dt;exports.getSkeletonSize=zt;exports.getStateTone=die;exports.getThemeCategoricalColors=Eo;exports.getYFormatSettings=qr;exports.gridStateLabels=RR;exports.inchesToCentimeters=M5;exports.isActiveDeviceState=hp;exports.isActiveState=hp;exports.isCustomPinsLayer=Zp;exports.isExportSupported=RT;exports.isFilterEmpty=Il;exports.isGeoJsonLayer=Qp;exports.isLightColor=Gm;exports.isNil=fe;exports.isRasterLayer=_p;exports.isVectorLayer=qp;exports.kelvinToCelsius=eS;exports.kelvinToFahrenheit=_5;exports.kilometersToMiles=N5;exports.layer=jp;exports.mapValuesToCategoricalColors=dd;exports.metersToFeet=C5;exports.metersToMiles=T5;exports.metersToYards=E5;exports.milesToFeet=of;exports.milesToKilometers=w5;exports.milesToMeters=P5;exports.parseBoolean=Yo;exports.pickEnergyUnit=kd;exports.prepareTableDataForExport=$A;exports.registerPhosphorIcon=pv;exports.removeFilterCondition=Xn;exports.resolveValue=me;exports.snakeCaseToWords=Tf;exports.telemetryPresetRanges=Pl;exports.temperatureStringToSymbol=mf;exports.tierForViewport=kl;exports.tileIndexAt=VP;exports.tileKey=fr;exports.tileReducer=ax;exports.tilesForViewport=cn;exports.toA=u5;exports.toActiveInactive=A0;exports.toAmps=Ls;exports.toBoolean=Ko;exports.toCelsius=gf;exports.toCentimeters=X0;exports.toCheckmark=F0;exports.toCompactNumber=O0;exports.toCurrency=$m;exports.toCustomDateFormat=J0;exports.toDateString=U0;exports.toEnabledDisabled=L0;exports.toFahrenheit=ff;exports.toFeet=vd;exports.toFloat=V0;exports.toFormattedNumber=z0;exports.toFullDateTime=K0;exports.toGW=U5;exports.toGWh=lf;exports.toGigawatts=Ld;exports.toISOString=Y0;exports.toInches=q0;exports.toInteger=B0;exports.toKA=p5;exports.toKV=i4;exports.toKW=G5;exports.toKelvin=bf;exports.toKiloamps=bd;exports.toKilohms=uf;exports.toKilometers=yd;exports.toKilovolts=Bd;exports.toKilowatts=Ed;exports.toLowerCase=vf;exports.toMA=d5;exports.toMV=n4;exports.toMW=W5;exports.toMWh=sf;exports.toMegawatts=Md;exports.toMegohms=pf;exports.toMeters=hd;exports.toMiles=Cd;exports.toMilliamps=gd;exports.toMillimeters=j0;exports.toMilliohms=Ad;exports.toMillivolts=Fd;exports.toNauticalMiles=v5;exports.toOhms=Fs;exports.toOnOff=D0;exports.toPercentage=Zm;exports.toRelativeTime=Ds;exports.toScientificNotation=H0;exports.toSecret=oS;exports.toSentenceCase=Cf;exports.toTemperature=xf;exports.toTitleCase=Sf;exports.toTrueFalse=I0;exports.toUpperCase=yf;exports.toV=a4;exports.toVolts=zs;exports.toW=H5;exports.toWatts=Is;exports.toWh=wd;exports.toYards=Sd;exports.tokWh=Nd;exports.truncateEnd=Vs;exports.truncateMiddle=ka;exports.truncateStart=Bs;exports.typeRole=vt;exports.typographyRole=io;exports.ucFirst=Nf;exports.useBreakpoint=or;exports.useChartContext=On;exports.useChartExpand=Oi;exports.useChartHeaderMetrics=Ea;exports.useChartOwnsItsTitle=Bf;exports.useClientDataControls=ed;exports.useColorMode=Yt;exports.useComponentFormatter=a5;exports.useContainerBreakpoint=nb;exports.useDataControls=pC;exports.useDebounce=Zo;exports.useElementSize=Ba;exports.useInfiniteScroll=qo;exports.useInputFocus=Br;exports.useLocalStorage=Cc;exports.useMediaQuery=rr;exports.useNotice=hv;exports.useServerDataControls=td;exports.useTableExport=bC;exports.useTileWindow=px;exports.useTiledTimeSeries=op;exports.useWizard=OA;exports.wrapWithLink=yo;exports.yardsToMeters=R5;//# sourceMappingURL=index.cjs.map
|
|
48
48
|
//# sourceMappingURL=index.cjs.map
|