@texturehq/edges 5.12.2 → 5.13.0

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 CHANGED
@@ -1,5 +1,5 @@
1
- 'use strict';var reactAriaComponents=require('react-aria-components'),Qe=require('react'),tailwindMerge=require('tailwind-merge'),jsxRuntime=require('react/jsx-runtime'),cf=require('@phosphor-icons/react'),luxon=require('luxon'),reactVirtual=require('@tanstack/react-virtual'),oN=require('@phosphor-icons/react/ssr'),reactAria=require('react-aria'),reactStately=require('react-stately'),lucideReact=require('lucide-react'),framerMotion=require('framer-motion'),ok=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'),NP=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'),CD=require('react-map-gl'),server=require('react-dom/server'),YA=require('@tiptap/extension-link'),react=require('@tiptap/react'),menus=require('@tiptap/react/menus'),qA=require('@tiptap/starter-kit'),d5=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 Qe__namespace=/*#__PURE__*/_interopNamespace(Qe);var cf__namespace=/*#__PURE__*/_interopNamespace(cf);var oN__namespace=/*#__PURE__*/_interopNamespace(oN);var ok__default=/*#__PURE__*/_interopDefault(ok);var NP__default=/*#__PURE__*/_interopDefault(NP);var CD__default=/*#__PURE__*/_interopDefault(CD);var YA__default=/*#__PURE__*/_interopDefault(YA);var qA__default=/*#__PURE__*/_interopDefault(qA);var d5__default=/*#__PURE__*/_interopDefault(d5);var N0=Object.create;var Ed=Object.defineProperty;var T0=Object.getOwnPropertyDescriptor;var k0=Object.getOwnPropertyNames;var P0=Object.getPrototypeOf,R0=Object.prototype.hasOwnProperty;var E0=(e,t,r)=>t in e?Ed(e,t,{enumerable:true,configurable:true,writable:true,value:r}):e[t]=r;var M0=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var L0=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of k0(t))!R0.call(e,n)&&n!==r&&Ed(e,n,{get:()=>t[n],enumerable:!(o=T0(t,n))||o.enumerable});return e};var nf=(e,t,r)=>(r=e!=null?N0(P0(e)):{},L0(Ed(r,"default",{value:e,enumerable:true}),e));var Si=(e,t,r)=>E0(e,typeof t!="symbol"?t+"":t,r);var pp=M0((dp,up)=>{(function(e,t){typeof define=="function"&&define.amd?define([],t):typeof dp<"u"?t():(t(),e.FileSaver={});})(dp,function(){function e(s,l){return typeof l>"u"?l={autoBom:false}:typeof l!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),l={autoBom:!l}),l.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,l,c){var d=new XMLHttpRequest;d.open("GET",s),d.responseType="blob",d.onload=function(){i(d.response,l,c);},d.onerror=function(){console.error("could not download file");},d.send();}function r(s){var l=new XMLHttpRequest;l.open("HEAD",s,false);try{l.send();}catch{}return 200<=l.status&&299>=l.status}function o(s){try{s.dispatchEvent(new MouseEvent("click"));}catch{var l=document.createEvent("MouseEvents");l.initMouseEvent("click",true,true,window,0,0,0,80,20,false,false,false,false,0,null),s.dispatchEvent(l);}}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,l,c){var d=n.URL||n.webkitURL,u=document.createElement("a");l=l||s.name||"download",u.download=l,u.rel="noopener",typeof s=="string"?(u.href=s,u.origin===location.origin?o(u):r(u.href)?t(s,l,c):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,l,c){if(l=l||s.name||"download",typeof s!="string")navigator.msSaveOrOpenBlob(e(s,c),l);else if(r(s))t(s,l,c);else {var d=document.createElement("a");d.href=s,d.target="_blank",setTimeout(function(){o(d);});}}:function(s,l,c,d){if(d=d||open("","_blank"),d&&(d.document.title=d.document.body.innerText="downloading..."),typeof s=="string")return t(s,l,c);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 g=new FileReader;g.onloadend=function(){var b=g.result;b=p?b:b.replace(/^data:[^;]*;/,"data:attachment/file;"),d?d.location.href=b:location=b,d=null;},g.readAsDataURL(s);}else {var f=n.URL||n.webkitURL,y=f.createObjectURL(s);d?d.location=y:location.href=y,d=null,setTimeout(function(){f.revokeObjectURL(y);},4e4);}});n.saveAs=i.saveAs=i,typeof up<"u"&&(up.exports=i);});});function nr(e,t=false){let[r,o]=Qe.useState(t);return Qe.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 Dn={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"};function ar(e="base"){let t=nr(`(min-width: ${Dn.sm})`,e!=="base"),r=nr(`(min-width: ${Dn.md})`,["md","lg","xl","2xl"].includes(e)),o=nr(`(min-width: ${Dn.lg})`,["lg","xl","2xl"].includes(e)),n=nr(`(min-width: ${Dn.xl})`,["xl","2xl"].includes(e)),a=nr(`(min-width: ${Dn["2xl"]})`,e==="2xl"),i=!r,s=r,l="base";return a?l="2xl":n?l="xl":o?l="lg":r?l="md":t&&(l="sm"),{current:l,isSm:t,isMd:r,isLg:o,isXl:n,is2Xl:a,isMobile:i,isDesktop:s}}function mt(e,t){let r=Qe.forwardRef(({size:o=24,color:n="currentColor",className:a,mirrored:i,alt:s,...l},c)=>{let d=!!s||"aria-label"in l;return jsxRuntime.jsx("svg",{ref:c,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,...l,children:t})});return r.displayName=e,r}var Gs=()=>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"})]}),af=()=>jsxRuntime.jsx("path",{d:"M166 120 88 70",fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round"}),sf=()=>jsxRuntime.jsx("path",{d:"M162 122 92 128",fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round"}),lf=()=>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"})]}),B0=mt("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"})]})),V0=mt("TextureFuse",jsxRuntime.jsx("path",{d:"M20 128h72q18 -84 36 0q18 84 36 0h72",fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round",strokeLinejoin:"round"})),O0=mt("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"})]})),z0=mt("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"})]})),H0=mt("TextureCapacitor",jsxRuntime.jsx(jsxRuntime.Fragment,{children:jsxRuntime.jsx("path",{d:"M4 128h106M146 128h106M110 72v112M146 72v112",fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round"})})),G0=mt("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"})]})),W0=mt("TextureSwitch",jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Gs,{}),jsxRuntime.jsx(af,{})]})),U0=mt("TextureSwitchClosed",jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Gs,{}),jsxRuntime.jsx(sf,{})]})),K0=mt("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"})]})),Y0=mt("TextureSectionalizerOpen",jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Gs,{}),jsxRuntime.jsx(af,{}),jsxRuntime.jsx(lf,{})]})),J0=mt("TextureSectionalizerClosed",jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Gs,{}),jsxRuntime.jsx(sf,{}),jsxRuntime.jsx(lf,{})]})),X0=mt("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"})]})),Ma={1:[128],2:[110,146],3:[92,128,164]},Md=e=>jsxRuntime.jsx("path",{d:`M24 ${e}h208`,fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round"},e),Ld=e=>jsxRuntime.jsx("path",{d:`M24 ${e}h208`,fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round",pathLength:100,strokeDasharray:"20 20"},e),j0=mt("TextureSinglePhaseOverheadLine",jsxRuntime.jsx(jsxRuntime.Fragment,{children:Ma[1].map(Md)})),q0=mt("TextureTwoPhaseOverheadLine",jsxRuntime.jsx(jsxRuntime.Fragment,{children:Ma[2].map(Md)})),Q0=mt("TextureThreePhaseOverheadLine",jsxRuntime.jsx(jsxRuntime.Fragment,{children:Ma[3].map(Md)})),Z0=mt("TextureSinglePhaseUndergroundLine",jsxRuntime.jsx(jsxRuntime.Fragment,{children:Ma[1].map(Ld)})),_0=mt("TextureTwoPhaseUndergroundLine",jsxRuntime.jsx(jsxRuntime.Fragment,{children:Ma[2].map(Ld)})),$0=mt("TextureThreePhaseUndergroundLine",jsxRuntime.jsx(jsxRuntime.Fragment,{children:Ma[3].map(Ld)})),eS=mt("TextureSupportStructure",jsxRuntime.jsx("circle",{cx:"128",cy:"128",r:"40",fill:"currentColor",stroke:"none"})),La={TextureRecloser:B0,TextureFuse:V0,TextureBreaker:O0,TextureSource:z0,TextureCapacitor:H0,TextureRegulator:G0,TextureSwitch:W0,TextureSwitchClosed:U0,TextureOpenPoint:K0,TextureSectionalizerOpen:Y0,TextureSectionalizerClosed:J0,TextureTransformer:X0,TextureSinglePhaseOverheadLine:j0,TextureTwoPhaseOverheadLine:q0,TextureThreePhaseOverheadLine:Q0,TextureSinglePhaseUndergroundLine:Z0,TextureTwoPhaseUndergroundLine:_0,TextureThreePhaseUndergroundLine:$0,TextureSupportStructure:eS};if(process.env.NODE_ENV==="development")for(let e of Object.keys(La))e in cf__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 Da={xs:16,sm:20,md:24,lg:32,xl:40,"2xl":48},V=Qe.memo(({name:e,size:t="md",color:r,weight:o="regular",className:n,ariaLabel:a,...i})=>{let s=La[e]??cf__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 l=typeof t=="string"&&t in Da?Da[t]:t,c=tailwindMerge.twMerge("inline-block flex-shrink-0",!r&&"text-current",n);return jsxRuntime.jsx(s,{...i,size:l,color:r,weight:o,className:c,"aria-label":a||`${e} icon`,"data-testid":`icon-${e}`})});V.displayName="Icon";var tS=Qe.memo(({variant:e="subtle",shape:t="square",containerSize:r,containerClassName:o,size:n="md",className:a,name:i,color:s,weight:l,ariaLabel:c,ref:d,...u})=>{let m=typeof n=="string"&&n in Da?Da[n]:n,p=r?typeof r=="string"&&r in Da?Da[r]:r:m*1.75,g=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:g,style:{width:p,height:p},children:jsxRuntime.jsx(V,{...u,name:i,size:n,color:s,weight:l,className:a,ariaLabel:c})})});tS.displayName="IconWithContainer";function kr({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 pS({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 vt({children:e,showArrow:t=false,withBackdrop:r=false,className:o,isDismissable:n=true,disableGroup:a=false,...i}){let l=reactAriaComponents.useSlottedContext(reactAriaComponents.PopoverContext)?.trigger==="SubmenuTrigger",c=t?12:8;c=l?c-6:c;let d=jsxRuntime.jsxs(reactAriaComponents.Popover,{offset:c,...i,className:reactAriaComponents.composeRenderProps(o,(u,m)=>pS({...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(kr,{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 Ws(e=true){let[t,r]=Qe.useState(null);return Qe.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 hS={"--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 pf(e){let t={...e};for(let[r,o]of Object.entries(hS))if(e[r])for(let n of o)e[n]||(t[n]=e[r]);return t}function mf(e){return e.replace(/[{}<>]/g,"")}function ff(e){return Object.entries(e).map(([t,r])=>`${mf(t)}: ${mf(r)};`).join(" ")}function bf({variables:e,darkVariables:t,children:r}){let n=Qe.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?pf(e):null,l=i?pf(t):null,c=s?`[data-brand-scope="${n}"] { ${ff(s)} }`:"",d=l?`.theme-dark [data-brand-scope="${n}"] { ${ff(l)} }`:"",u=[c,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 Aa=new Map,yS=8;function vS(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 Vt=(e,t="#000000")=>typeof window>"u"?t:hf(e,t,0);function hf(e,t,r){if(r>yS)return t;let o=e.startsWith("var(")?vS(e):e.startsWith("--")?e:`--${e}`;if(!e.startsWith("--")&&!e.startsWith("var(")&&!o.startsWith("--color-")&&(o=`--color-${o.slice(2)}`),Aa.has(o))return Aa.get(o);try{let n=document.body||document.documentElement,i=getComputedStyle(n).getPropertyValue(o).trim();if(i){if(i.startsWith("var(")){let c=hf(i,t,r+1);return Aa.set(o,c),c}return Aa.set(o,i),i}let s=document.createElement("div");s.style.color=`var(${o})`,document.body.appendChild(s);let l=getComputedStyle(s).color;return document.body.removeChild(s),l&&l!=="rgb(0, 0, 0)"?(Aa.set(o,l),l):t}catch(n){return console.warn(`Failed to resolve color for ${e}:`,n),t}}var Us=()=>{Aa.clear();},Oo=()=>{let e=[];for(let t=1;t<=12;t++){let r=Vt(`--color-viz-categorical-${t}`,"");r&&e.push(r);}return e.length===0?Ks():e},Ks=()=>["#5424db","#d92361","#e86a00","#5d89ff","#9a47e2","#f24cb8","#0ba286","#9c28af","#036e45","#52a119","#ff513d","#046691"],Ni=()=>Vt("--color-viz-default","#444ae1"),CS=(e,t)=>{let r={},o=Oo();return e.forEach((n,a)=>{t&&t[n]?r[n]=t[n]:r[n]=o[a%o.length];}),r},xf=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},SS=e=>xf(e)?Vt("--color-text-primary","#333333"):Vt("--color-text-inverse","#ffffff"),yf=(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()},Ti=e=>{let t=Oo(),r={};return e.forEach((o,n)=>{r[o]=t[n%t.length];}),r};var Id=(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)},Fd=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]},vf=(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},ki=(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=Vt(i);n.push(s);}return n},Pi=(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=Vt(i);n.push(s);}return n},Ri=(e,t,r,o="viridis")=>{let n=ki(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]},Ei=(e,t,r,o,n="redYellowBlue")=>{let a=Pi(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 l=(e-t)/(o-t)*i,c=Math.floor(l);return a[Math.min(c,i)]}else {let s=(e-o)/(r-o),l=i+s*(a.length-1-i),c=Math.floor(l);return a[Math.min(c,a.length-1)]}};var Bd=Qe.createContext({mode:"system",colorMode:"light",isDarkTheme:false,toggleTheme:()=>{}}),jt=()=>Qe.useContext(Bd);function PS(){return typeof window>"u"?"light":window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function wf(){if(typeof window>"u")return "system";let e=localStorage.getItem("colorModePreference");return e==="light"||e==="dark"||e==="system"?e:"system"}function Nf(e){return e==="system"?PS():e}var kf=({children:e})=>{let[t,r]=Qe.useState(wf),[o,n]=Qe.useState(()=>Nf(wf())),a=o==="dark",i=Qe.useCallback(l=>{l==="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")),Us();},[]);Qe.useEffect(()=>{Us();let l=Nf(t);if(n(l),i(l),t==="system"){let c=window.matchMedia("(prefers-color-scheme: dark)"),d=u=>{let m=u.matches?"dark":"light";n(m),i(m);};return c.addEventListener("change",d),()=>{c.removeEventListener("change",d);}}},[t,i]);let s=Qe.useCallback(()=>{r(l=>{let c=l==="system"?"light":l==="light"?"dark":"system";return localStorage.setItem("colorModePreference",c),c});},[]);return jsxRuntime.jsx(Bd.Provider,{value:{mode:t,colorMode:o,isDarkTheme:a,toggleTheme:s},children:e})};function ir(...e){return e.filter(Boolean).join(" ")}var Vd=class{constructor(){Si(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();}},ce=new Vd;var _o=(e,t="Yes",r="No")=>e==null?null:e?t:r,RS=e=>_o(e,"Enabled","Disabled"),ES=e=>_o(e,"On","Off"),MS=e=>_o(e,"Active","Inactive"),LS=e=>_o(e,"True","False"),DS=e=>_o(e,"\u2713","\u2717"),$o=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},Pf=(e,t)=>{if(t.hideWhenNull&&e==null)return null;if(e==null)return t.nullText??null;let r=$o(e);return r===null?t.nullText??null:_o(r,t.trueText??"Yes",t.falseText??"No")};ce.register("boolean",(e,t,r)=>{let o=$o(e);return o!==null?_o(o,typeof t=="string"?t:"Yes",typeof r=="string"?r:"No"):null});ce.register("yesNo",e=>{let t=$o(e);return t!==null?_o(t,"Yes","No"):null});ce.register("enabledDisabled",e=>{let t=$o(e);return t!==null?RS(t):null});ce.register("onOff",e=>{let t=$o(e);return t!==null?ES(t):null});ce.register("activeInactive",e=>{let t=$o(e);return t!==null?MS(t):null});ce.register("trueFalse",e=>{let t=$o(e);return t!==null?LS(t):null});ce.register("checkmark",e=>{let t=$o(e);return t!==null?DS(t):null});var be=e=>e==null,Rf=(e,t=0)=>be(e)?null:`${e.toFixed(t)}%`,Ef=(e,t=0)=>Rf(e,t)??"\u2014",AS=e=>be(e)?null:Math.round(e).toString(),IS=(e,t=1)=>be(e)?null:e.toFixed(t),FS=(e,t,r=true)=>{if(be(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)},BS=(e,t="short")=>be(e)?null:new Intl.NumberFormat("en-US",{notation:"compact",compactDisplay:t}).format(e),VS=(e,t=2)=>be(e)?null:e.toExponential(t),Mf=(e,t="USD",r)=>{if(be(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)},Lf=(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)},Df=(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:Mf(r,t.currency,t)};ce.register("percentage",(e,t)=>typeof e=="number"?Rf(e,typeof t=="number"?t:0):null);ce.register("integer",e=>typeof e=="number"?AS(e):null);ce.register("float",(e,t)=>typeof e=="number"?IS(e,typeof t=="number"?t:1):null);ce.register("number",(e,t,r)=>{let o=typeof e=="string"?parseFloat(e):Number(e);return isNaN(o)?null:FS(o,typeof t=="number"?t:void 0,typeof r=="boolean"?r:true)});ce.register("compact",(e,t)=>typeof e=="number"?BS(e,t==="long"?"long":"short"):null);ce.register("scientific",(e,t)=>typeof e=="number"?VS(e,typeof t=="number"?t:2):null);ce.register("currency",(e,t,r)=>typeof e=="number"?Mf(e,typeof t=="string"?t:"USD",typeof r=="object"&&r!==null?r:{}):null);function N4(e,t=1){return be(e)?null:Math.abs(e)>=1e3?`${(e/1e3).toFixed(t)} MWh`:`${e.toFixed(t)} kWh`}function T4(e,t=1){return be(e)?null:Math.abs(e)>=1e3?`${(e/1e3).toFixed(t)} MW`:`${e.toFixed(t)} kW`}function fo({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=Pr(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=Pr(e,{type:"date"});return jsxRuntime.jsx("time",{dateTime:e.toISOString(),title:e.toISOString(),children:n})}if(typeof e=="number")return Pr(e,{type:"number"});if(typeof e=="boolean")return Pr(e,{type:"boolean"})}return String(e)}function E4(e,t,r){return Qe__namespace.default.useCallback(o=>fo({value:o,formatter:e,emptyClassName:t,emptyText:r}),[e,t,r])}var Od=(e,t=0)=>{if(be(e))return null;let r=e*1e3;return t===0?`${Math.round(r)} mA`:`${r.toFixed(t)} mA`},Js=(e,t=1)=>be(e)?null:`${e.toFixed(t)} A`,zd=(e,t=2)=>be(e)?null:`${(e/1e3).toFixed(t)} kA`,zS=(e,t)=>{if(be(e))return null;let r=Math.abs(e);return r>=1e3?zd(e,t??2):r<1?Od(e,t??0):Js(e,t??1)},Hd=(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 zd(r,o??2);case "mA":return Od(r,o??0);case "A":return Js(r,o??1)}return t.autoScale!==false?zS(r,o):Js(r,o??1)};ce.register("current",Hd);var I4=Od,F4=Js,B4=zd;var An=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},HS=(e,t=false,r)=>{if(!e)return null;let o=An(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)},Xs=e=>{if(!e)return null;let t=An(e);return t?t.toRelative():"Invalid Date"},GS=(e,t)=>{if(!e)return null;let r=An(e);return r?(t?r.setZone(t):r).toLocaleString(luxon.DateTime.DATETIME_MED_WITH_WEEKDAY):"Invalid Date"},WS=e=>{if(!e)return null;let t=An(e);return t?t.toISO():null},US=(e,t,r)=>{if(!e)return null;let o=An(e);return o?(r?o.setZone(r):o).toFormat(t):"Invalid Date"},H4=e=>{let t=An(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},Af=(e,t)=>{if(t.hideWhenNull&&e==null)return null;if(e==null)return t.nullText??null;let r=An(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)};ce.register("date",(e,t,r)=>HS(e,typeof t=="boolean"?t:false,typeof r=="string"?r:void 0));ce.register("relativeTime",e=>Xs(e));ce.register("fullDateTime",(e,t)=>GS(e,typeof t=="string"?t:void 0));ce.register("isoString",e=>WS(e));ce.register("customDateFormat",(e,t,r)=>typeof t=="string"?US(e,t,typeof r=="string"?r:void 0):null);var Gd=(e,t=1)=>be(e)?null:`${e.toFixed(t)} m`,KS=(e,t=1)=>be(e)?null:`${(e*100).toFixed(t)} cm`,YS=(e,t=0)=>be(e)?null:`${(e*1e3).toFixed(t)} mm`,Wd=(e,t=1)=>be(e)?null:`${(e/1e3).toFixed(t)} km`,Ud=(e,t=0)=>be(e)?null:`${e.toFixed(t)} ft`,JS=(e,t=1)=>be(e)?null:`${e.toFixed(t)} in`,Kd=(e,t=1)=>be(e)?null:`${e.toFixed(t)} mi`,Yd=(e,t=0)=>be(e)?null:`${e.toFixed(t)} yd`,K4=(e,t=1)=>be(e)?null:`${e.toFixed(t)} nm`,Y4=e=>e*3.28084,J4=e=>e/3.28084,X4=e=>e*1.60934,j4=e=>e/1.60934,q4=e=>e/5280,If=e=>e*5280,Q4=e=>e/1609.34,Z4=e=>e*1609.34,_4=e=>e*.9144,$4=e=>e/.9144,eF=e=>e*2.54,tF=e=>e/2.54,Ff=(e,t=false,r=1)=>{if(be(e))return null;let o=Math.abs(e);return t?o>=1e3?Wd(e,r):o<.01?YS(e,0):o<1?KS(e,r):Gd(e,r):o<.01?Ud(If(e),0):o<.1?Yd(If(e)/3,0):Kd(e,r)},Bf=(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 Ff(r,n,o)}switch(t.unit){case "km":return Wd(r,o);case "ft":return Ud(r,o);case "mi":return Kd(r,o);case "yd":return Yd(r,o);default:return Gd(r,o)}};ce.register("miles",(e,t)=>typeof e=="number"?Kd(e,typeof t=="number"?t:1):null);ce.register("kilometers",(e,t)=>typeof e=="number"?Wd(e,typeof t=="number"?t:1):null);ce.register("meters",(e,t)=>typeof e=="number"?Gd(e,typeof t=="number"?t:1):null);ce.register("feet",(e,t)=>typeof e=="number"?Ud(e,typeof t=="number"?t:0):null);ce.register("yards",(e,t)=>typeof e=="number"?Yd(e,typeof t=="number"?t:0):null);ce.register("inches",(e,t)=>typeof e=="number"?JS(e,typeof t=="number"?t:1):null);ce.register("autoScaleDistance",(e,t,r)=>typeof e=="number"?Ff(e,typeof t=="boolean"?t:false,typeof r=="number"?r:1):null);var Jd=(e,t=1)=>be(e)?null:`${e.toFixed(t)} Wh`,Xd=(e,t=1)=>be(e)?null:`${(e/1e3).toFixed(t)} kWh`,Vf=(e,t=1)=>be(e)?null:`${(e/1e6).toFixed(t)} MWh`,Of=(e,t=1)=>be(e)?null:`${(e/1e9).toFixed(t)} GWh`,jd=e=>{let t=Math.abs(e);return t>=1e9?"GWh":t>=1e6?"MWh":t>=1e3?"kWh":"Wh"},zf=(e,t=1)=>{if(be(e))return null;switch(jd(e)){case "GWh":return Of(e,t);case "MWh":return Vf(e,t);case "kWh":return Xd(e,t);default:return Jd(e,t)}},qd={Wh:1,kWh:1e3,MWh:1e6,GWh:1e9},Qd=(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*qd[t.sourceUnit]:r,n=t.decimals??1;if(t.unit)switch(t.unit){case "GWh":return Of(o,n);case "MWh":return Vf(o,n);case "kWh":return Xd(o,n);case "Wh":return Jd(o,n)}return t.autoScale!==false?zf(o,n):Jd(o,n)};ce.register("kWh",e=>typeof e=="number"?Xd(e):null);ce.register("autoScaleEnergy",(e,t)=>typeof e=="number"?zf(e,typeof t=="number"?t:1):null);ce.register("energy",Qd);var js=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},Zd=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():js(e)},Ia=e=>e?e.startsWith("+")||e.length>11?Zd(e):js(e):null,Hf=(e,t)=>{if(t.hideWhenNull&&e==null)return null;if(e==null)return t.nullText??null;let r=String(e);if(t.international)return Zd(r);switch(t.country){case "US":case "CA":return js(r);default:return Ia(r)}};ce.register("phoneNumber",e=>typeof e=="string"?Ia(e):null);ce.register("usPhone",e=>typeof e=="string"?js(e):null);ce.register("internationalPhone",e=>typeof e=="string"?Zd(e):null);var qs=(e,t=0)=>be(e)?null:t===0?`${Math.round(e)} W`:`${e.toFixed(t)} W`,_d=(e,t=1)=>be(e)?null:`${(e/1e3).toFixed(t)} kW`,$d=(e,t=1)=>be(e)?null:`${(e/1e6).toFixed(t)} MW`,eu=(e,t=2)=>be(e)?null:`${(e/1e9).toFixed(t)} GW`,XS=(e,t)=>{if(be(e))return null;let r=Math.abs(e);return r>=1e9?eu(e,t??2):r>=1e6?$d(e,t??1):r>=1e3?_d(e,t??1):qs(e,t??0)},tu=(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 eu(r,o??2);case "MW":return $d(r,o??1);case "kW":return _d(r,o??1);case "W":return qs(r,o??0)}return t.autoScale!==false?XS(r,o):qs(r,o??0)};ce.register("power",tu);var dF=qs,uF=_d,pF=$d,mF=eu;var ru=(e,t=1)=>be(e)?null:`${(e*1e3).toFixed(t)} m\u03A9`,Qs=(e,t=1)=>be(e)?null:`${e.toFixed(t)} \u03A9`,Gf=(e,t=1)=>be(e)?null:`${(e/1e3).toFixed(t)} k\u03A9`,Wf=(e,t=2)=>be(e)?null:`${(e/1e6).toFixed(t)} M\u03A9`,jS=(e,t)=>{if(be(e))return null;let r=Math.abs(e);return r>=1e6?Wf(e,t??2):r>=1e3?Gf(e,t??1):r<1?ru(e,t??1):Qs(e,t??1)},ou=(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 Wf(r,o??2);case "k\u03A9":return Gf(r,o??1);case "m\u03A9":return ru(r,o??1);case "\u03A9":return Qs(r,o??1)}return t.autoScale!==false?jS(r,o):Qs(r,o??1)};ce.register("resistance",ou);ce.register("ohms",e=>typeof e=="number"?Qs(e):null);ce.register("milliohms",e=>typeof e=="number"?ru(e):null);var Uf=e=>{switch(e){case "FAHRENHEIT":return "F";case "CELSIUS":return "C";case "KELVIN":return "K";default:return "F"}},Kf=(e,t=0)=>be(e)?null:`${e.toFixed(t)}\xB0F`,Yf=(e,t=true,r=0)=>be(e)?null:`${(t?(e-32)*(5/9):e).toFixed(r)}\xB0C`,Jf=(e,t=true,r=0)=>be(e)?null:`${(t?(e-32)*(5/9)+273.15:e+273.15).toFixed(r)}K`,qS=e=>e*9/5+32,QS=e=>(e-32)*(5/9),vF=e=>e+273.15,ZS=e=>e-273.15,CF=e=>QS(e)+273.15,SF=e=>qS(ZS(e)),Xf=(e,t="F",r=0)=>{if(be(e))return null;switch(typeof t=="string"&&t.length>1?Uf(t):t){case "C":return Yf(e,true,r);case "K":return Jf(e,true,r);default:return Kf(e,r)}},jf=(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?Uf(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)};ce.register("temperature",(e,t,r)=>typeof e=="number"?Xf(e,typeof t=="string"?t:"F",typeof r=="number"?r:0):null);ce.register("fahrenheit",(e,t)=>typeof e=="number"?Kf(e,typeof t=="number"?t:0):null);ce.register("celsius",(e,t,r)=>typeof e=="number"?Yf(e,typeof t=="boolean"?t:true,typeof r=="number"?r:0):null);ce.register("kelvin",(e,t,r)=>typeof e=="number"?Jf(e,typeof t=="boolean"?t:true,typeof r=="number"?r:0):null);var _S=(e,t)=>!!(t.hideWhenNull&&e==null||t.hideWhenZero&&e===0),qf=e=>e?.toUpperCase()??"",Qf=e=>e?.toLowerCase()??"",Zf=e=>e?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():"",_f=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(" ")},$f=e=>e?e.split(/\s+/).map(t=>t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()).join(" "):"",eg=e=>e?e.charAt(0).toUpperCase()+e.slice(1):"",tg=e=>e?e.replace(/([A-Z])/g," $1").replace(/^./,t=>t.toUpperCase()).trim():"",rg=e=>e?e.toLowerCase().split("_").map(t=>eg(t)).join(" "):"",$S=e=>e?e.includes("_")?rg(e):e.toUpperCase()===e?eg(e.toLowerCase()):tg(e):"",Fa=(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)}`},Zs=(e,t=8)=>e?e.length<=t?e:`...${e.slice(-t)}`:"",_s=(e,t=16,r="...")=>e?e.length<=t?e:e.slice(0,t)+r:"",ew=e=>{if(!e)return "";let t=e.toString(),r=t.slice(-4),o=t.length-4;return o>0?"*".repeat(o)+r:t},og=(e,t)=>{if(_S(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=qf(r);break;case "lowercase":r=Qf(r);break;case "capitalize":r=$f(r);break;case "titleCase":r=_f(r);break;case "sentenceCase":r=Zf(r);break}}),t.truncate){let{length:o,position:n,ellipsis:a="..."}=t.truncate;switch(n){case "start":r=Zs(r,o);break;case "middle":r=Fa(r,o);break;case "end":r=_s(r,o,a);break}}return r};ce.register("uppercase",e=>qf(String(e)));ce.register("lowercase",e=>Qf(String(e)));ce.register("sentenceCase",e=>Zf(String(e)));ce.register("titleCase",e=>_f(String(e)));ce.register("capitalize",e=>$f(String(e)));ce.register("camelCaseToWords",e=>tg(String(e)));ce.register("snakeCaseToWords",e=>rg(String(e)));ce.register("enumToSentenceCase",e=>$S(String(e)));ce.register("truncateMiddle",(e,t)=>Fa(String(e),typeof t=="number"?t:16));ce.register("truncateStart",(e,t)=>Zs(String(e),typeof t=="number"?t:8));ce.register("truncateEnd",(e,t,r)=>_s(String(e),typeof t=="number"?t:16,typeof r=="string"?r:"..."));ce.register("secret",e=>ew(String(e)));var nu=(e,t=0)=>{if(be(e))return null;let r=e*1e3;return t===0?`${Math.round(r)} mV`:`${r.toFixed(t)} mV`},$s=(e,t=0)=>be(e)?null:t===0?`${Math.round(e)} V`:`${e.toFixed(t)} V`,au=(e,t=1)=>be(e)?null:`${(e/1e3).toFixed(t)} kV`,tw=(e,t)=>{if(be(e))return null;let r=Math.abs(e);return r>=1e3?au(e,t??1):r<1?nu(e,t??0):$s(e,t??0)},iu=(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 au(r,o??1);case "mV":return nu(r,o??0);case "V":return $s(r,o??0)}return t.autoScale!==false?tw(r,o):$s(r,o??0)};ce.register("voltage",iu);var RF=nu,EF=$s,MF=au;var rw=(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:Ef(r,t.decimals??0)},Pr=(e,t)=>{switch(t.type){case "text":return og(e,t);case "number":return Lf(e,t);case "percentage":return rw(e,t);case "currency":return Df(e,t);case "date":return Af(e,t);case "boolean":return Pf(e,t);case "energy":return Qd(e,t);case "power":return tu(e,t);case "voltage":return iu(e,t);case "current":return Hd(e,t);case "resistance":return ou(e,t);case "temperature":return jf(e,t);case "distance":return Bf(e,t);case "phone":return Hf(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 Ba={power:"W",energy:"Wh",voltage:"V",current:"A",resistance:"\u03A9",distance:"m"},ow=new Set(["number","power","energy","voltage","current","resistance","temperature","distance","percentage"]);function su(e){if(!e)return null;switch(e.type){case "percentage":return "%";case "power":return e.unit??Ba.power;case "energy":return e.unit??e.sourceUnit??Ba.energy;case "voltage":return e.unit??Ba.voltage;case "current":return e.unit??Ba.current;case "resistance":return e.unit??Ba.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??Ba.distance;default:return null}}function ng(e,t){if(!ow.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=su(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=Pr(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=Pr(r,t);return n?String(n):""}return String(r)}var XF=(e,t)=>({type:e,...t});function Fn(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function In(e,t){return Fn(e)?t.format(e):""}function ag(e){if(!Fn(e.start)||!Fn(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=>In(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=>In(i,a)}var nw=864e5;function ig(e,t){let r=t?.compact??false,o=e<5*nw,n=a=>{let i=a.getHours(),s=i>=12?"PM":"AM";return {displayHour:i%12||12,period:s}};return a=>{if(!Fn(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:l}=n(a);if(a.getMinutes()===0&&a.getSeconds()===0)return r?`${s}${l.charAt(0).toLowerCase()}`:`${s} ${l}`;let c=String(a.getMinutes()).padStart(2,"0");return r?`${s}:${c}${l.charAt(0).toLowerCase()}`:`${s}:${c} ${l}`}}function lu(e,t){if(!Fn(e.start)||!Fn(e.end))return ()=>"";let r=(e.end.getTime()-e.start.getTime())/(1e3*60*60),o=t?.compact??false,n=c=>d=>Fn(d)?c(d):"";if(r<=24){if(o)return n(d=>{let u=d.getHours(),m=u>=12?"pm":"am";return `${u%12||12}${m}`});let c=new Intl.DateTimeFormat("en",{hour:"numeric",minute:"2-digit"});return d=>In(d,c)}if(r<=48){if(o)return n(d=>{let u=d.getMonth()+1,m=d.getDate(),p=d.getHours(),g=p>=12?"p":"a",f=p%12||12;return `${u}/${m} ${f}${g}`});let c=new Intl.DateTimeFormat("en",{month:"short",day:"numeric",hour:"numeric"});return d=>In(d,c)}if(r<=168){if(o)return n(d=>{let u=d.getDate();return `${d.toLocaleDateString("en",{weekday:"short"}).charAt(0)}${u}`});let c=new Intl.DateTimeFormat("en",{weekday:"short",day:"numeric"});return d=>In(d,c)}if(r<=720){if(o)return n(d=>{let u=d.getMonth()+1,m=d.getDate();return `${u}/${m}`});let c=new Intl.DateTimeFormat("en",{month:"short",day:"numeric"});return d=>In(d,c)}let a=e.start.getFullYear(),i=e.end.getFullYear(),s=a!==i;if(o)return n(c=>{let d=c.getMonth()+1,u=c.getDate(),m=s?`/${c.getFullYear().toString().slice(-2)}`:"";return `${d}/${u}${m}`});let l=new Intl.DateTimeFormat("en",{month:"short",day:"numeric",...s&&{year:"numeric"}});return c=>In(c,l)}var go={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 kt(e,...t){return ir(go[e],...t)}function rt(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 Ae(e,t){return reactAriaComponents.composeRenderProps(e,r=>tailwindMerge.twMerge(t,r))}var Ue={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 cw="flex font-medium justify-center items-center gap-2 text-center transition rounded-[var(--control-border-radius)] whitespace-nowrap box-border",dw="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",uw={primary:dw,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"},lg={full:"w-full",default:"w-fit"},pw="opacity-50 cursor-not-allowed pointer-events-none",mw="opacity-100 cursor-pointer",fw={"top-right":"-right-2 -top-2","top-left":"-left-2 -top-2","bottom-right":"-right-2 -bottom-2","bottom-left":"-left-2 -bottom-2"},gw={primary:"bg-action-primary text-[color:var(--color-action-primary-text)]",destructive:"bg-feedback-error-border text-text-inverse"};function bw(e){return !e||e==="default"||e==="brand"?"primary":e}function hw(e){let{variant:t="primary",size:r="md",isDisabled:o,fullWidth:n=false,isLoading:a=false}=e,i=bw(t),s=i==="unstyled"?"":`${cw} ${uw[i]}`;i!=="unstyled"&&(s+=` ${Ue[r].text} ${Ue[r].height} ${Ue[r].padding} ${Ue[r].gap}`),o||a?s+=` ${pw}`:s+=` ${mw}`,n?s+=` ${lg.full}`:s+=` ${lg.default}`;let l=i==="primary"?"focus-visible:outline-action-primary":void 0;return [s,rt(),l].filter(Boolean).join(" ")}function te(e){let{icon:t,children:r,isLoading:o=false,loadingText:n,loadingIndicator:a,size:i="md",iconPosition:s="left",iconWeight:l,href:c,className:d,badgeNumber:u,badgeVariant:m="primary",badgePosition:p="top-right",style:g,target:f,rel:y,...b}=e,h=t?jsxRuntime.jsx(V,{name:t,size:i,weight:l}):null,x=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s==="left"&&h,typeof r=="function"?null:r,s==="right"&&h]}),C=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})]}),w=(u??0)>0,S=tailwindMerge.twMerge(hw(e),d),T=c?{href:c,target:f,rel:y,...b}:{};if(c){let{onPress:P,onPressStart:E,onPressEnd:I,onPressChange:k,onPressUp:D,onAuxClick:L,onContextMenu:B,onDoubleClick:O,...H}=b;Object.assign(T,H);}let R=c?jsxRuntime.jsx(reactAriaComponents.Link,{...T,...o&&{"aria-busy":true},style:w?void 0:g,className:S,children:o?C:typeof r=="function"?(function(P){return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s==="left"&&h,r(P),s==="right"&&h]})}):x}):jsxRuntime.jsx(reactAriaComponents.Button,{...b,...o&&{"aria-busy":true},style:w?void 0:g,className:S,children:o?C:typeof r=="function"?(function(P){return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s==="left"&&h,r(P),s==="right"&&h]})}):x});return w?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("relative flex",d),style:g,children:[R,jsxRuntime.jsx("span",{className:`absolute ${fw[p]} flex h-5 w-5 items-center justify-center rounded-full ${gw[m]} text-xs font-medium`,"aria-label":`${u} items`,children:u})]}):R}function du({action:e,defaultVariant:t,defaultSize:r="lg"}){let o=!!e.formId;return jsxRuntime.jsx(te,{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 tn({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(du,{action:r,defaultVariant:"destructive"})}),jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[t&&jsxRuntime.jsx(du,{action:t,defaultVariant:"secondary"}),e&&jsxRuntime.jsx(du,{action:e,defaultVariant:"primary"})]})]})]})}var xw={heading:{sm:go.headingSm,md:go.headingMd,lg:go.headingLg,xl:go.headingXl},display:{sm:go.displaySm,md:go.displayMd,lg:go.displayLg,xl:go.displayXl}},yw={page:"h-16 leading-[62px]"};function lr({tag:e="h1",variant:t="heading",size:r="lg",height:o,className:n="",children:a}){let i=r==="xs"?"sm":r,s=xw[t][i],l=o?yw[o]:"";return jsxRuntime.jsx(e,{className:ir(s,"text-text-primary",l,n),children:a})}var _t=({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(te,{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(lr,{size:"xs",children:e}),t&&!r&&jsxRuntime.jsx(te,{variant:"icon",onPress:t,"aria-label":"Close dialog",children:jsxRuntime.jsx(V,{name:"X","data-testid":"close-button"})})]})]});var mu=48,Di=Qe.createContext(false);function rn({children:e}){return jsxRuntime.jsx(Di.Provider,{value:true,children:e})}function ug({children:e}){return jsxRuntime.jsx(Di.Provider,{value:false,children:e})}function za(e,t){let r=Qe.useContext(Di),{ref:o,height:n}=Pw();return {headerRef:o,headerHeight:!r||e||t?n||mu:0}}function pg(){return !Qe.useContext(Di)}function Pw(){let[e,t]=Qe.useState(0),r=Qe.useRef(null),o=Qe.useRef(null),n=Qe.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 Qe.useEffect(()=>()=>o.current?.disconnect(),[]),{ref:n,height:e}}function Ha({title:e,controls:t,actions:r,containerRef:o,marginLeft:n=0,marginRight:a=0}){let s=!Qe.useContext(Di);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 Y=({width:e,height:t,variant:r="rect",animation:o="pulse",gradient:n=false,flex:a=false,stack:i,responsive:s,delay:l=0,adjustAnimationSpeedBasedOnWidth:c=false,ariaLabel:d,className:u,"data-testid":m})=>{let[p,g]=Qe.useState(l===0);if(Qe.useEffect(()=>{if(l>0){let w=setTimeout(()=>g(true),l);return ()=>clearTimeout(w)}},[l]),!p)return null;let f=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=c&&e?(()=>{let w=typeof e=="number"?e:parseFloat(String(e));return isNaN(w)?"":`animation-duration-[${Math.max(.8,w/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":"",C=s?Object.entries(s).map(([w,S])=>`${w}:w-[${S}]`).join(" "):"";return i?jsxRuntime.jsx("div",{className:"space-y-2","data-testid":m,children:i.map((w,S)=>jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(f,b,h,x,C,u),style:{width:w,height:t}},S))}):jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(f,b,h,x,C,u),style:{width:e,height:t},role:"presentation","aria-hidden":!d,"aria-label":d??void 0,"data-testid":m})},fg=({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 Lw={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"},Dw="rounded-lg",gu={square:"aspect-square",video:"aspect-video",wide:"aspect-[2/1]",auto:""},Aw={start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between"};function gg(e){return Qe__namespace.default.Children.toArray(e).some(t=>Qe__namespace.default.isValidElement(t)?t.type===Qe__namespace.default.Fragment?gg(t.props.children):t.type===el&&!!t.props.title:false)}function _e({variant:e="outlined",className:t,children:r,isLoading:o=false,layout:n="default"}){let a=gg(r)?jsxRuntime.jsx(rn,{children:r}):r;return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-full overflow-hidden",Lw[e],Dw,n==="flex"&&"flex flex-col",t),"data-testid":"card",children:o?jsxRuntime.jsx(Y,{width:"100%",height:"100%",className:"rounded-none"}):a})}function el({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(Y,{width:120,height:20}),jsxRuntime.jsx(Y,{width:24,height:24})]}),t&&jsxRuntime.jsx(Y,{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(lr,{tag:"h3",size:"sm",className:"text-text-primary",children:e}):e}),t&&jsxRuntime.jsx("div",{className:kt("bodySm","text-text-secondary"),children:t})]}),r&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:r})]})})}function bu({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",gu[r],o),children:jsxRuntime.jsx(Y,{width:"100%",height:"100%"})}):n?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-hidden",gu[r],o),children:n}):e?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-hidden",gu[r],o),children:jsxRuntime.jsx("img",{src:e,alt:t||"",className:"w-full h-full object-cover",loading:"lazy"})}):null}function hu({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(Y,{width:"100%",height:16}),jsxRuntime.jsx(Y,{width:"80%",height:16}),jsxRuntime.jsx(Y,{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 xu({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(Y,{width:80,height:32}),jsxRuntime.jsx(Y,{width:60,height:32})]}):t?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("px-6 py-4 flex items-center gap-2",Aw[r],e),children:t}):null}_e.Header=el;_e.Media=bu;_e.Content=hu;_e.Footer=xu;var $r=class extends Qe.Component{constructor(){super(...arguments);Si(this,"state",{hasError:false});Si(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(_e,{children:[this.props.title&&jsxRuntime.jsx(_e.Header,{title:this.props.title}),jsxRuntime.jsx(_e.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 Vw=.3,Ow=.5;function Ct({children:e,title:t,headerContent:r,titleAlign:o="left",hideCloseIcon:n=false,hasBackArrow:a=false,onBack:i,isOpen:s,onClose:l,isDismissable:c=true,transparentOverlay:d=false,primaryAction:u,secondaryAction:m,footerContent:p,maxHeight:g="80vh",height:f,maxWidth:y="640px",contentPadding:b=true,showHandle:h=true,animationVariant:x="scale",className:C}){let[w,S]=Qe.useState(false),[T,R]=Qe.useState(0),[P,E]=Qe.useState(false),I=Ws(s),k=I?.height??null,D=I?.keyboardOffset??0,L=Qe.useRef(null),B=Qe.useRef(null),O=Qe.useRef(null),H=Qe.useRef({isDragging:false,startY:0,startTime:0,pointerId:null});Qe.useEffect(()=>{if(s){let F=setTimeout(()=>{S(true),setTimeout(()=>S(false),600);},400);return ()=>clearTimeout(F)}},[s]),Qe.useEffect(()=>{s||(R(0),E(false),H.current={isDragging:false,startY:0,startTime:0,pointerId:null});},[s]),Qe.useEffect(()=>{let F=B.current;if(!F||!s)return;let X=null,N=v=>{let M=v.target;M&&["INPUT","TEXTAREA","SELECT"].includes(M.tagName)&&(X&&clearTimeout(X),X=setTimeout(()=>{M.scrollIntoView({block:"nearest",behavior:"smooth"});},320));};return F.addEventListener("focusin",N),()=>{F.removeEventListener("focusin",N),X&&clearTimeout(X);}},[s]);let G=Qe.useCallback(F=>{c&&(F.pointerType!=="touch"&&F.pointerType!=="pen"||(O.current&&(clearTimeout(O.current),O.current=null),H.current={isDragging:true,startY:F.clientY,startTime:Date.now(),pointerId:F.pointerId},E(false),F.currentTarget.setPointerCapture(F.pointerId)));},[c]),Z=Qe.useCallback(F=>{let{isDragging:X,startY:N,pointerId:v}=H.current;if(!X||F.pointerId!==v)return;let M=F.clientY-N;R(Math.max(0,M));},[]),z=Qe.useCallback(F=>{let{isDragging:X,startY:N,startTime:v,pointerId:M}=H.current;if(!X||F.pointerId!==M)return;let A=F.clientY-N,J=Date.now()-v,ae=A/J;H.current={isDragging:false,startY:0,startTime:0,pointerId:null};let $=(L.current?.getBoundingClientRect().height??0)*Vw;(A>$||ae>Ow&&A>50)&&c?(l?.(),R(0)):(E(true),R(0),O.current=setTimeout(()=>{E(false),O.current=null;},200));},[c,l]);if(!s)return null;let W=t||r,q=u||m||p;return jsxRuntime.jsx($r,{children:jsxRuntime.jsx(kr,{isOpen:s,onOpenChange:F=>{F||l?.();},isDismissable:c,transparent:d,style:{paddingBottom:D>0?`${D}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:c,children:jsxRuntime.jsx("div",{ref:L,className:tailwindMerge.twMerge("w-full",P&&"transition-transform duration-200"),style:{transform:T>0?`translateY(${T}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)]",C),style:{maxWidth:y,...f?{height:f}:{maxHeight:/\d/.test(g)?k!==null?`min(${g}, ${Math.max(k-8,0)}px, 100dvh)`:`min(${g}, 100dvh)`:g}},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:G,onPointerMove:Z,onPointerUp:z,onPointerCancel:z,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",w&&"animate-[handle-wiggle_0.6s_ease-in-out]")})}),W&&(a?jsxRuntime.jsx(_t,{title:t,headerContent:r,titleAlign:o,hideCloseIcon:n||!l,hasBackArrow:true,onBack:i??(()=>{}),onClose:l||(()=>{})}):jsxRuntime.jsx(_t,{title:t,headerContent:r,titleAlign:o,hideCloseIcon:n||!l,onClose:l||(()=>{})})),jsxRuntime.jsx("div",{ref:B,className:tailwindMerge.twMerge("flex-1 min-h-0 overflow-y-auto overscroll-contain",b?"p-4":"p-0"),children:e}),q&&jsxRuntime.jsx(tn,{primaryAction:u,secondaryAction:m,footerContent:p})]})})})})})}Ct.displayName="Tray";function Wa({children:e,items:t,className:r,align:o="left",textAlign:n="left",size:a="md",onAction:i,header:s,footer:l,useMobileTray:c=true,popoverClassName:d}){let[u,m]=Qe.useState(false),{isMobile:p}=ar();if(c&&p){let f=Qe__namespace.default.isValidElement(e)?Qe__namespace.default.cloneElement(e,{onPress:()=>m(true)}):e,h=(x=>{if(typeof x=="string")return x;if(Qe__namespace.default.isValidElement(x)){let C=x.props;if(typeof C.children=="string")return C.children;if(Array.isArray(C.children))return C.children.find(S=>typeof S=="string")||""}return ""})(e)||"Actions";return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:r,children:f}),jsxRuntime.jsx(Ct,{isOpen:u,onClose:()=>m(false),title:h,contentPadding:false,headerContent:s,footerContent:l,children:jsxRuntime.jsx("div",{className:"flex flex-col",children:t.map(x=>{let C=x.href&&!x.disabled?"a":"button";return jsxRuntime.jsxs(C,{...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(vt,{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(f=>jsxRuntime.jsx(Uw,{id:f.id,href:f.href,onAction:()=>{f.onAction?f.onAction():i?.(f);},textAlign:n,size:a,iconName:f.iconName,isDisabled:f.disabled,variant:f.variant,subtitle:f.subtitle,render:f.render,noPadding:f.noPadding,"data-testid":f.testId,children:f.name},f.id))}),l?jsxRuntime.jsx("div",{className:"px-3 pb-3 pt-2",children:l}):null]})})]})})}function Uw({textAlign:e="left",iconName:t,size:r="md",isDisabled:o,children:n,variant:a="default",subtitle:i,render:s,noPadding:l,...c}){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,{...c,isDisabled:o,className:tailwindMerge.twMerge("group box-border flex w-full cursor-pointer items-center rounded-sm outline-none transition-colors",!l&&d[r],m[a],e==="right"?"justify-end":"justify-start",o&&"pointer-events-none opacity-50"),children:s()}):jsxRuntime.jsxs(reactAriaComponents.MenuItem,{...c,isDisabled:o,className:tailwindMerge.twMerge("group box-border flex w-full cursor-pointer items-center rounded-sm outline-none transition-colors",!l&&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 Wr=({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 Ur({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(Wr,{size:20,color:"text-text-secondary"}),t&&jsxRuntime.jsx("span",{className:"text-sm","aria-hidden":"true",children:t})]});return o||n}function on({items:e,onLoadMore:t,hasMore:r,isLoading:o=false,loadingState:n,enableVirtualization:a,estimatedItemSize:i=50,overscan:s=5,scrollElement:l,loadMoreThreshold:c=100}){let d=Qe.useRef(null),u=Qe.useRef(null),m=Qe.useRef(false),[p,g]=Qe.useState(0);Qe.useEffect(()=>{u.current&&(l||d.current)&&g(R=>R+1);},[l,e.length]);let f=n||(o?e.length===0?"loading":"loading-more":"idle"),y=f==="loading",b=f==="loading-more",h=a!==void 0?a:e.length>=100,x=reactVirtual.useVirtualizer({count:e.length,getScrollElement:()=>l||d.current,estimateSize:()=>i,overscan:s}),C=h?x:null,w=h?x.getVirtualItems():[];Qe.useEffect(()=>{let R=u.current,P=l||d.current;if(!R||!P||!r||o||!t)return;let E=new IntersectionObserver(I=>{let[k]=I;k?.isIntersecting&&!m.current&&r&&t&&(m.current=true,Promise.resolve(t()).finally(()=>{m.current=false;}));},{root:P,rootMargin:`0px 0px ${c}px 0px`,threshold:0});return E.observe(R),()=>{E.disconnect();}},[r,o,t,l,c,p]);let S=Qe.useCallback((R,P)=>{C?C.scrollToIndex(R,P):d.current&&d.current.children[R]?.scrollIntoView({behavior:"smooth",block:P?.align||"start"});},[C]),T=Qe.useCallback(()=>{C?C.scrollToIndex(0,{align:"start"}):d.current&&d.current.scrollTo({top:0,behavior:"smooth"});},[C]);return {virtualizer:C,virtualItems:w,computedLoadingState:f,isInitialLoad:y,isLoadingMore:b,scrollRef:d,loadMoreRef:u,scrollToIndex:S,scrollToTop:T}}var Ua=Qe.createContext({variant:"timeline",size:"md"});function Tg(){return Qe.useContext(Ua)}function nl(e){return Qe.isValidElement(e)&&e.type===sl}function $w(e){return Qe.isValidElement(e)&&e.type===il}function Tu({variant:e="timeline",size:t="md",className:r,children:o,items:n,renderItem:a,isLoading:i=false,loadingState:s,error:l=null,renderLoadingSkeleton:c,loadingSkeletonCount:d=5,emptyMessage:u="No activity found.",onLoadMore:m,hasMore:p=false,enableVirtualization:g,estimatedItemSize:f,loadingIndicator:y,height:b,maxHeight:h,...x}){let C=Qe.useRef(null),{isMobile:w}=ar(),S=w?"stacked":e,T=n!==void 0&&a!==void 0,{scrollRef:R,loadMoreRef:P,virtualizer:E,virtualItems:I,isLoadingMore:k,computedLoadingState:D}=on({items:n||[],onLoadMore:T?m:void 0,hasMore:T?p:false,isLoading:i,loadingState:s,enableVirtualization:T?g:false,estimatedItemSize:f||(S==="stacked"?120:150),overscan:5}),L=T&&R?R:C,B=Qe.useMemo(()=>({variant:S,size:t}),[S,t]),O=S==="timeline"?t==="sm"?"gap-4":"gap-6":"gap-0",H=S==="stacked"?"divide-y divide-border-subtle rounded-lg border border-border-subtle bg-background-surface":"",G={};if(T&&m&&(b?(G.height=typeof b=="number"?`${b}px`:b,G.overflowY="auto"):h?(G.maxHeight=typeof h=="number"?`${h}px`:h,G.overflowY="auto"):(G.height="600px",G.overflowY="auto")),T){let W=D==="loading"||i&&(!n||n.length===0);if(W){let F=c?jsxRuntime.jsx(jsxRuntime.Fragment,{children:Array.from({length:d}).map((X,N)=>jsxRuntime.jsx("div",{children:c()},`skeleton-${N}`))}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:Array.from({length:d}).map((X,N)=>{let v=t==="sm"?"gap-2":"gap-3";if(S==="timeline"){let M=t==="sm"?"pt-3":"pt-4",A=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 ${M}`,children:[jsxRuntime.jsx(Y,{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 ${v} ${A} rounded-md border border-border-subtle bg-background-surface`,children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-3",children:[jsxRuntime.jsx(Y,{width:"50%",height:16}),jsxRuntime.jsx(Y,{width:"15%",height:12})]}),jsxRuntime.jsx(Y,{width:"85%",height:t==="sm"?14:15}),jsxRuntime.jsx(Y,{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(Y,{width:24,height:24,variant:"circle"}),jsxRuntime.jsx(Y,{width:"50%",height:16})]}),jsxRuntime.jsxs("div",{className:`mt-3 flex flex-col ${v}`,children:[jsxRuntime.jsx(Y,{width:"85%",height:t==="sm"?14:15}),jsxRuntime.jsx(Y,{width:"70%",height:t==="sm"?14:15}),jsxRuntime.jsx(Y,{width:"20%",height:12})]})]},`skeleton-${N}`)})});return jsxRuntime.jsx(Ua.Provider,{value:B,children:jsxRuntime.jsx("div",{ref:L,"data-slot":"feed","data-variant":S,className:tailwindMerge.twMerge("flex flex-col",O,H,r),style:G,...x,children:F})})}if(l)return jsxRuntime.jsx(Ua.Provider,{value:B,children:jsxRuntime.jsx("div",{ref:L,"data-slot":"feed","data-variant":S,className:tailwindMerge.twMerge("flex flex-col",O,H,r),style:G,...x,children:jsxRuntime.jsx("div",{className:"p-4 text-center text-feedback-error-text",children:l})})});if(!n||n.length===0)return jsxRuntime.jsx(Ua.Provider,{value:B,children:jsxRuntime.jsx("div",{ref:L,"data-slot":"feed","data-variant":S,className:tailwindMerge.twMerge("flex flex-col",O,H,r),style:G,...x,children:jsxRuntime.jsx("div",{className:"p-4 text-center text-text-secondary",children:u})})});let q=E?I?.map(F=>({virtualItem:F,item:n[F.index],index:F.index}))||[]:n.map((F,X)=>({item:F,index:X,virtualItem:null}));return jsxRuntime.jsx(Ua.Provider,{value:B,children:jsxRuntime.jsxs("div",{ref:L,"data-slot":"feed","data-variant":S,className:tailwindMerge.twMerge("flex flex-col",O,H,r),style:{...G,position:E?"relative":void 0},...x,children:[E?jsxRuntime.jsxs("div",{style:{height:`${E.getTotalSize()}px`,position:"relative"},children:[q.map(({item:F,index:X,virtualItem:N})=>{if(!F||!N)return null;let v=a(F,X),M=S==="timeline"&&Qe.isValidElement(v)&&nl(v)?Qe.cloneElement(v,{showConnector:X!==n.length-1}):v;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:M},`item-${X}`)}),k&&jsxRuntime.jsx("div",{style:{position:"absolute",top:`${E.getTotalSize()}px`,left:0,width:"100%"},children:y||jsxRuntime.jsx(Ur,{state:"loading-more"})})]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[q.map(({item:F,index:X})=>{let N=a(F,X);if(S==="timeline"&&Qe.isValidElement(N)&&nl(N)){let v=X===n.length-1;return jsxRuntime.jsx("div",{children:Qe.cloneElement(N,{showConnector:!v})},`item-${X}`)}return jsxRuntime.jsx("div",{children:N},`item-${X}`)}),k&&(y||jsxRuntime.jsx(Ur,{state:"loading-more"}))]}),m&&p&&!W&&jsxRuntime.jsx("div",{ref:P,style:E?{position:"absolute",top:`${E.getTotalSize()}px`,left:0,width:"100%",height:1}:{height:1,width:"100%"}})]})})}let Z=Qe.Children.toArray(o),z=Z.map((W,q)=>{if(nl(W)){let F=W.props.showConnector??(S==="timeline"&&q<Z.length-1),X=S==="timeline"&&q>0;return Qe.cloneElement(W,{showConnector:F,showIncomingConnector:X})}if($w(W)){let F=q===Z.length-1;return Qe.cloneElement(W,{__isLastGroup:F,__isFirstGroup:q===0})}return W});return jsxRuntime.jsx(Ua.Provider,{value:B,children:jsxRuntime.jsx("div",{"data-slot":"feed","data-variant":S,className:tailwindMerge.twMerge("flex flex-col",O,H,r),...x,children:z})})}Tu.displayName="ActivityFeed";function il(e){let{variant:t,size:r}=Tg(),{title:o,description:n,actions:a,children:i,className:s,__isLastGroup:l=false,__isFirstGroup:c=false,...d}=e,u=Qe.Children.toArray(i),m=u.map((f,y)=>{if(nl(f)){let b=f.props.showConnector??(t==="timeline"&&!(l&&y===u.length-1));return Qe.cloneElement(f,{showConnector:b,showIncomingConnector:t==="timeline"&&!(c&&y===0)})}return f}),p=t==="timeline"?"pl-[3rem]":r==="sm"?"px-3":"px-4",g=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",g),children:m})]})}il.displayName="ActivityFeedGroup";var wg={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"},eN={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"},tN={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 sl(e){let{variant:t,size:r}=Tg(),{title:o,description:n,timestamp:a,meta:i,media:s,actions:l,visual:c,icon:d,iconWeight:u,tone:m="neutral",surface:p,isHighlighted:g=false,showConnector:f=true,hideIndicator:y=false,interactive:b,className:h,children:x,onKeyDown:C,showIncomingConnector:w,...S}=e,T=c??(d?jsxRuntime.jsx(V,{name:d,weight:u||"fill",className:"h-4 w-4"}):null),R=p??(t==="stacked"?"minimal":"subtle"),P=r==="sm"?"gap-2":"gap-3",E="text-xs text-text-secondary",I=r==="sm"?"text-sm":"text-[15px]",k="text-xs text-text-secondary",D=b??typeof S.onClick=="function",L=q=>{if(!D){C?.(q);return}q.key===" "?q.preventDefault():q.key==="Enter"&&(q.preventDefault(),q.currentTarget.click()),C?.(q);},B=q=>{D&&q.key===" "&&(q.preventDefault(),q.currentTarget.click());},O=D?tailwindMerge.twMerge("group cursor-pointer",rt()):void 0,G=jsxRuntime.jsxs("div",{"data-slot":"connector",className:tailwindMerge.twMerge("relative flex h-full flex-col items-center",R==="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",wg[m]),children:T}),t==="timeline"&&f&&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=g?tailwindMerge.twMerge(eN[m],R==="minimal"?"rounded-md border border-border-muted":tN[m]):"";if(t==="stacked")return jsxRuntime.jsxs("div",{"data-slot":"item","data-variant":"stacked",role:D?"button":void 0,tabIndex:D?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"}[R],Z,O,D?"transition-colors hover:bg-background-subtle/80":"",h),onKeyDown:L,onKeyUp:B,...S,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",wg[m]),children:T}),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",P),children:[n&&jsxRuntime.jsx("div",{"data-slot":"description",className:tailwindMerge.twMerge("text-text-secondary",I),children:n}),i&&jsxRuntime.jsx("div",{className:k,children:i}),s&&jsxRuntime.jsx("div",{className:"flex flex-col gap-2 text-sm text-text-secondary",children:s}),x,l&&jsxRuntime.jsx("div",{className:"flex flex-wrap gap-2 pt-1",children:l}),a&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("-mt-1.5",E),children:a})]})]});let z=R==="minimal"?r==="sm"?"py-2":"py-3":r==="sm"?"p-3":"p-4",W={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:D?"button":void 0,tabIndex:D?0:void 0,className:tailwindMerge.twMerge("group relative grid items-start gap-4 grid-cols-[3rem_1fr]",O,h),onKeyDown:L,onKeyUp:B,...S,children:[y?jsxRuntime.jsx("div",{}):G,jsxRuntime.jsxs("div",{"data-slot":"content",className:tailwindMerge.twMerge("min-w-0 flex flex-col",P,z,W[R],Z,D?"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:k,children:i}),s&&jsxRuntime.jsx("div",{className:"flex flex-col gap-2 text-sm text-text-secondary",children:s}),x,l&&jsxRuntime.jsx("div",{className:"flex flex-wrap gap-2 pt-2",children:l})]})]})}sl.displayName="ActivityItem";function cr({isOpen:e,onClose:t,title:r,headerContent:o,titleAlign:n="left",hideCloseIcon:a=false,hasBackArrow:i=false,onBack:s,children:l,primaryAction:c,secondaryAction:d,tertiaryAction:u,footerContent:m,transparentOverlay:p=false,maxWidth:g="600px",minWidth:f="400px",maxHeight:y="85vh",height:b,mobileMaxHeight:h="90vh",mobileHeight:x,contentPadding:C=true,className:w}){let S=nr("(max-width: 767px)"),T=Ws(S&&e===void 0),R=T?.height??null,P=T?.keyboardOffset??0,E=Qe.useRef(null),I=Qe.useCallback(()=>{E.current&&E.current.scrollTop!==0&&(E.current.scrollTop=0);},[]),k=Qe.useRef(null),D=Qe.useRef(null);Qe.useEffect(()=>{let G=D.current;if(!G||!S)return;let Z=null,z=W=>{let q=W.target;q&&["INPUT","TEXTAREA","SELECT"].includes(q.tagName)&&(Z&&clearTimeout(Z),Z=setTimeout(()=>{q.scrollIntoView({block:"nearest",behavior:"smooth"});},320));};return G.addEventListener("focusin",z),()=>{G.removeEventListener("focusin",z),Z&&clearTimeout(Z);}},[S]);let L=Qe.useCallback(()=>{k.current&&k.current.scrollTop!==0&&(k.current.scrollTop=0);},[]);if(e===false)return null;let B=r||o,O=c||d||u||m,H=e!==void 0;return S?H?jsxRuntime.jsx(Ct,{isOpen:e,onClose:t,title:r,headerContent:o,titleAlign:n,hideCloseIcon:a,hasBackArrow:i,onBack:s,primaryAction:c,secondaryAction:d,footerContent:m,transparentOverlay:p,maxHeight:h,height:x,maxWidth:g,contentPadding:C,showHandle:true,animationVariant:"scale",className:w,children:l}):jsxRuntime.jsx($r,{children:jsxRuntime.jsx(kr,{isDismissable:true,transparent:p,style:{paddingBottom:P>0?`${P}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",w),style:{...x?{height:x}:{maxHeight:/\d/.test(h)?R!==null?`min(${h}, ${Math.max(R-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"})}),B&&(i?jsxRuntime.jsx(_t,{title:r,headerContent:o,titleAlign:n,hideCloseIcon:a||!t,hasBackArrow:true,onBack:s,onClose:t||(()=>{})}):jsxRuntime.jsx(_t,{title:r,headerContent:o,titleAlign:n,hideCloseIcon:a||!t,onClose:t||(()=>{})})),jsxRuntime.jsx("div",{ref:D,className:tailwindMerge.twMerge("flex-1 min-h-0 overflow-y-auto overscroll-contain",C?"px-6 py-6":"p-0"),children:l}),O&&jsxRuntime.jsx(tn,{primaryAction:c,secondaryAction:d,tertiaryAction:u,footerContent:m})]})})})}):jsxRuntime.jsx($r,{children:jsxRuntime.jsx(kr,{...H?{isOpen:e,onOpenChange:G=>{!G&&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:g},children:jsxRuntime.jsxs(reactAriaComponents.Dialog,{ref:k,onScroll:L,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",w),style:{minWidth:f,...b?{height:b}:{maxHeight:y}},children:[B&&(i?jsxRuntime.jsx(_t,{title:r,headerContent:o,titleAlign:n,hideCloseIcon:a||!t,hasBackArrow:true,onBack:s,onClose:t||(()=>{})}):jsxRuntime.jsx(_t,{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",C?"px-6 py-6":"p-0"),children:l}),O&&jsxRuntime.jsx(tn,{primaryAction:c,secondaryAction:d,tertiaryAction:u,footerContent:m})]})})})})}function Lg({isOpen:e,onClose:t,title:r,message:o,confirmLabel:n="OK",confirmVariant:a="primary",maxWidth:i="400px",minWidth:s="320px"}){return jsxRuntime.jsx(cr,{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 nn={xs:16,sm:20,md:24,lg:32,xl:40,"2xl":48},Rr=Qe.memo(({name:e,size:t="md",color:r,weight:o="regular",className:n,ariaLabel:a,...i})=>{let s=oN__namespace[e];if(!s)return null;let l=typeof t=="string"?t in nn?nn[t]:nn.md:t,c=tailwindMerge.twMerge("inline-block flex-shrink-0",!r&&"text-current",n);return jsxRuntime.jsx(s,{...i,size:l,color:r,weight:o,className:c,"aria-label":a||`${e} icon`,"data-testid":`icon-${e}`})});Rr.displayName="IconSSR";var nN=Qe.memo(({variant:e="subtle",shape:t="square",containerSize:r,containerClassName:o,size:n="md",className:a,name:i,color:s,weight:l,ariaLabel:c,ref:d,...u})=>{let m=typeof n=="string"?n in nn?nn[n]:nn.md:n,p=r?typeof r=="string"?r in nn?nn[r]:m*1.75:r:m*1.75,g=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:g,style:{width:p,height:p},children:jsxRuntime.jsx(Rr,{...u,name:i,size:n,color:s,weight:l,className:a,ariaLabel:c})})});nN.displayName="IconSSRWithContainer";var Ka=({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 l=r||270,c=l/270*80;return jsxRuntime.jsxs("svg",{width:l,height:c,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 cl=({topItems:e=[],bottomItems:t=[],bottomContent:r,logo:o,showLogo:n=true,linkComponent:a="a",className:i="",mobileMenuId:s="app-mobile-menu",sidebarCollapseId:l="app-sidebar-collapse"})=>{let c=p=>p.length>0&&"items"in p[0],d=p=>c(p)?p:[{id:"default-section",items:p}],u=(p,g,f)=>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))}),g<f-1&&jsxRuntime.jsx("div",{className:"border-b border-border-subtle mx-6 my-2"})]},p.id),m=(p,g=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 f={href:p.href||"#",className:`flex items-center gap-3 transition-all duration-200 hover:bg-background-hover ${g?"pl-8 pr-6 py-1 text-sm":"px-6 py-1"} ${p.isActive?`bg-action-brand/10 text-action-brand ${g?"":"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&&!g&&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",{...f,children:y},p.id):jsxRuntime.jsx(a,{...f,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(Ka,{showWordmark:true,width:120})}),jsxRuntime.jsx("label",{htmlFor:l,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(Rr,{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,g,f)=>u(p,g,f.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 zn(e){return e.id??e.href??e.label}function Eu(e,t,r=[]){for(let o of e){if(o.href===t||o.id===t)return o.children?.length&&o.pushOnSelect!==false?[...r,zn(o)]:r;if(o.children?.length){let n=Eu(o.children,t,[...r,zn(o)]);if(n)return n}}return null}function Vg(e,t){let r=[],o=e;for(let n of t){let a=o.find(i=>zn(i)===n);if(!a)break;r.push(a),o=a.children??[];}return r}function iN(e,t,r){let o=t.length>0?[...e,...t]:e,n=[{path:[],items:e,bottomItems:t.length>0?t:void 0}],a=Vg(o,r),i=[];for(let s of a){if(!s.children?.length)break;i=[...i,zn(s)],n.push({path:i,parent:s,items:s.children});}return n}var sN=({href:e,...t})=>jsxRuntime.jsx("a",{href:e,...t}),Ig=[];function lN(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 cN(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 dN(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 Ya({items:e,groups:t,bottomItems:r,value:o,defaultStack:n,stack:a,onStackChange:i,onSelect:s,linkComponent:l=sN,renderRow:c,showLogo:d=false,logo:u,header:m,footer:p,mobileMenuId:g,sidebarCollapseId:f,rootLabel:y,sticky:b=true,width:h=260,ariaLabel:x="Navigation",theme:C,animated:w=true,style:S,className:T}){process.env.NODE_ENV!=="production"&&t&&e&&console.warn("[StackNav] Both `items` and `groups` were provided. `groups` takes precedence and `items` is ignored.");let R=Qe__namespace.useMemo(()=>t?lN(t):e??Ig,[t,e]),P=r??Ig,E=Qe__namespace.useMemo(()=>P.length>0?[...R,...P]:R,[R,P]);Qe__namespace.useEffect(()=>{cN(R,P);},[R,P]);let[I,k]=Qe__namespace.useState(()=>a!==void 0?a:n!==void 0?n:o?Eu(E,o)??[]:[]),D=a??I,L=Qe__namespace.useCallback(F=>{a===void 0&&k(F),i?.(F);},[a,i]),B=Qe__namespace.useRef(false);Qe__namespace.useEffect(()=>{if(a!==void 0||!B.current&&(B.current=true,n!==void 0)||!o)return;let F=Eu(E,o);k(X=>{let N=F??[];return fN(X,N)?X:N});},[o,E,a,n]);let O=Qe__namespace.useMemo(()=>iN(R,P,D),[R,P,D]),H=Qe__namespace.useCallback((F,X)=>{F.children?.length&&L([...X,zn(F)]);},[L]),G=Qe__namespace.useCallback(()=>{L(D.slice(0,-1));},[D,L]),Z=Qe__namespace.useCallback((F,X)=>{let N=Vg(E,D);if(s?.(X,N),!!X.children?.length){let M=O[O.length-1]?.path??[];H(X,M);}X.href||F.preventDefault();},[E,D,s,H,O]),z=Qe__namespace.useCallback(F=>o?F.href===o||F.id===o:false,[o]),W=b?"sticky top-0 h-[100dvh]":"",q={...h!=null?{width:h}:{},...dN(C),...S};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",w&&"edges-stack-nav--animated",W,T),style:q,children:[d?jsxRuntime.jsxs("div",{className:"edges-stack-nav__logo",children:[jsxRuntime.jsx("div",{className:"relative top-[-1px]",children:u??jsxRuntime.jsx(Ka,{showWordmark:true,width:120})}),f?jsxRuntime.jsx("label",{htmlFor:f,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(Rr,{name:"Sidebar",size:"sm"})}):null,g?jsxRuntime.jsx("label",{htmlFor:g,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:O.map((F,X)=>{let N=F.path.length,v=X===O.length-1,M=X<O.length-1,A=N===0?"__root__":F.path.join("/");return jsxRuntime.jsx(uN,{pane:F,parentPath:F.path.slice(0,-1),depth:N,isTop:v,isAbove:M,rootLabel:y,LinkComponent:l,renderRow:c,isActive:z,onSelect:Z,onBack:G,animated:w},A)})}),p?jsxRuntime.jsx("div",{className:"edges-stack-nav__footer",children:p}):null]})}function uN({pane:e,depth:t,isTop:r,isAbove:o,rootLabel:n,LinkComponent:a,renderRow:i,isActive:s,onSelect:l,onBack:c,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:c,"aria-label":`Back from ${e.parent.label}`,children:[jsxRuntime.jsx(mN,{}),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(Fg,{item:m,LinkComponent:a,renderRow:i,isActive:s(m),onSelect:l},zn(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(Fg,{item:m,LinkComponent:a,renderRow:i,isActive:s(m),onSelect:l},zn(m)))}):null]})}function Fg({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:l=>n(l,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(pN,{}):null]})]});return e.href?jsxRuntime.jsx(t,{href:e.href,"aria-label":e.ariaLabel,className:i,"aria-current":o?"page":void 0,onClick:l=>n(l,e),children:s}):jsxRuntime.jsx("button",{type:"button",className:i,"aria-label":e.ariaLabel,onClick:l=>{n(l,e);},children:s})}function pN(){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 mN(){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 fN(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 Bi=({rightContent:e,centerContent:t,showMobileMenu:r=true,avatar:o,showColorModeSwitcher:n=false,toggleTheme:a,isDarkThemeEnabled:i=false,colorMode:s,actions:l,className:c="",mobileMenuId:d="app-mobile-menu"})=>{let u=()=>{switch(s||(i?"dark":"light")){case "system":return jsxRuntime.jsx(Rr,{name:"Monitor",size:"sm"});case "light":return jsxRuntime.jsx(Rr,{name:"Sun",size:"sm"});case "dark":return jsxRuntime.jsx(Rr,{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 ${c}`,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(Rr,{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()}),l,o&&jsxRuntime.jsx("div",{className:"flex items-center",children:o})]})]})})};function zg({sideNav:e,stackNav:t,topNav:r,children:o,contentPaddingX:n,contentPaddingY:a,showSidebarBorder:i=true,mainClassName:s,enableJsEnhancements:l=false}){let c="app-mobile-menu",d="app-sidebar-collapse";return Qe.useEffect(()=>{if(!l)return;let u=document.getElementById(d),m=document.getElementById(c),p=document.querySelector("[data-app-shell]"),g=document.getElementById("app-sidebar");if(!u||!p||!g)return;let f=null,y=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?y=true:(f&&(clearTimeout(f),f=null),p.removeAttribute("data-peek"),y=false);};u.addEventListener("change",b);let h=E=>{E.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 C=E=>{let k=E.target.closest("a");k&&k.href&&window.innerWidth<768&&m&&setTimeout(()=>{m.checked=false,document.body.style.overflow="";},100);};g.addEventListener("click",C);let w=16,S=200,T=()=>{f&&(clearTimeout(f),f=null),p.getAttribute("data-peek")!=="true"&&p.setAttribute("data-peek","true");},R=()=>{f&&clearTimeout(f),f=setTimeout(()=>{p.removeAttribute("data-peek"),f=null;},S);},P=E=>{if(window.innerWidth<768||!u.checked)return;let I=g.contains(E.target);if(y&&!I&&(y=false),y)return;E.clientX<=w||I?T():p.getAttribute("data-peek")==="true"&&R();};return document.addEventListener("mousemove",P),()=>{u.removeEventListener("change",b),document.removeEventListener("keydown",h),m&&x&&m.removeEventListener("change",x),g.removeEventListener("click",C),document.removeEventListener("mousemove",P),f&&clearTimeout(f);}},[l,c,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(Bi,{...r,mobileMenuId:c,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:c,className:"sr-only peer/mobile","aria-hidden":"true"}),jsxRuntime.jsx("label",{htmlFor:c,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(Rr,{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(Ya,{...t,mobileMenuId:c,sidebarCollapseId:d,sticky:false,width:null,className:["h-full !border-r-0",t.className].filter(Boolean).join(" ")}):jsxRuntime.jsx(cl,{...e,mobileMenuId:c,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(Bi,{...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'),Qe=require('react'),tailwindMerge=require('tailwind-merge'),jsxRuntime=require('react/jsx-runtime'),df=require('@phosphor-icons/react'),luxon=require('luxon'),reactVirtual=require('@tanstack/react-virtual'),nN=require('@phosphor-icons/react/ssr'),reactAria=require('react-aria'),reactStately=require('react-stately'),lucideReact=require('lucide-react'),framerMotion=require('framer-motion'),nk=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'),TP=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'),SD=require('react-map-gl'),server=require('react-dom/server'),JA=require('@tiptap/extension-link'),react=require('@tiptap/react'),menus=require('@tiptap/react/menus'),QA=require('@tiptap/starter-kit'),u5=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 Qe__namespace=/*#__PURE__*/_interopNamespace(Qe);var df__namespace=/*#__PURE__*/_interopNamespace(df);var nN__namespace=/*#__PURE__*/_interopNamespace(nN);var nk__default=/*#__PURE__*/_interopDefault(nk);var TP__default=/*#__PURE__*/_interopDefault(TP);var SD__default=/*#__PURE__*/_interopDefault(SD);var JA__default=/*#__PURE__*/_interopDefault(JA);var QA__default=/*#__PURE__*/_interopDefault(QA);var u5__default=/*#__PURE__*/_interopDefault(u5);var T0=Object.create;var Ed=Object.defineProperty;var k0=Object.getOwnPropertyDescriptor;var P0=Object.getOwnPropertyNames;var R0=Object.getPrototypeOf,E0=Object.prototype.hasOwnProperty;var M0=(e,t,r)=>t in e?Ed(e,t,{enumerable:true,configurable:true,writable:true,value:r}):e[t]=r;var L0=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var D0=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of P0(t))!E0.call(e,n)&&n!==r&&Ed(e,n,{get:()=>t[n],enumerable:!(o=k0(t,n))||o.enumerable});return e};var af=(e,t,r)=>(r=e!=null?T0(R0(e)):{},D0(Ed(r,"default",{value:e,enumerable:true}),e));var Si=(e,t,r)=>M0(e,typeof t!="symbol"?t+"":t,r);var pp=L0((dp,up)=>{(function(e,t){typeof define=="function"&&define.amd?define([],t):typeof dp<"u"?t():(t(),e.FileSaver={});})(dp,function(){function e(s,l){return typeof l>"u"?l={autoBom:false}:typeof l!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),l={autoBom:!l}),l.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,l,c){var d=new XMLHttpRequest;d.open("GET",s),d.responseType="blob",d.onload=function(){i(d.response,l,c);},d.onerror=function(){console.error("could not download file");},d.send();}function r(s){var l=new XMLHttpRequest;l.open("HEAD",s,false);try{l.send();}catch{}return 200<=l.status&&299>=l.status}function o(s){try{s.dispatchEvent(new MouseEvent("click"));}catch{var l=document.createEvent("MouseEvents");l.initMouseEvent("click",true,true,window,0,0,0,80,20,false,false,false,false,0,null),s.dispatchEvent(l);}}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,l,c){var d=n.URL||n.webkitURL,u=document.createElement("a");l=l||s.name||"download",u.download=l,u.rel="noopener",typeof s=="string"?(u.href=s,u.origin===location.origin?o(u):r(u.href)?t(s,l,c):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,l,c){if(l=l||s.name||"download",typeof s!="string")navigator.msSaveOrOpenBlob(e(s,c),l);else if(r(s))t(s,l,c);else {var d=document.createElement("a");d.href=s,d.target="_blank",setTimeout(function(){o(d);});}}:function(s,l,c,d){if(d=d||open("","_blank"),d&&(d.document.title=d.document.body.innerText="downloading..."),typeof s=="string")return t(s,l,c);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 g=new FileReader;g.onloadend=function(){var b=g.result;b=p?b:b.replace(/^data:[^;]*;/,"data:attachment/file;"),d?d.location.href=b:location=b,d=null;},g.readAsDataURL(s);}else {var f=n.URL||n.webkitURL,y=f.createObjectURL(s);d?d.location=y:location.href=y,d=null,setTimeout(function(){f.revokeObjectURL(y);},4e4);}});n.saveAs=i.saveAs=i,typeof up<"u"&&(up.exports=i);});});function nr(e,t=false){let[r,o]=Qe.useState(t);return Qe.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 Dn={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"};function ar(e="base"){let t=nr(`(min-width: ${Dn.sm})`,e!=="base"),r=nr(`(min-width: ${Dn.md})`,["md","lg","xl","2xl"].includes(e)),o=nr(`(min-width: ${Dn.lg})`,["lg","xl","2xl"].includes(e)),n=nr(`(min-width: ${Dn.xl})`,["xl","2xl"].includes(e)),a=nr(`(min-width: ${Dn["2xl"]})`,e==="2xl"),i=!r,s=r,l="base";return a?l="2xl":n?l="xl":o?l="lg":r?l="md":t&&(l="sm"),{current:l,isSm:t,isMd:r,isLg:o,isXl:n,is2Xl:a,isMobile:i,isDesktop:s}}function mt(e,t){let r=Qe.forwardRef(({size:o=24,color:n="currentColor",className:a,mirrored:i,alt:s,...l},c)=>{let d=!!s||"aria-label"in l;return jsxRuntime.jsx("svg",{ref:c,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,...l,children:t})});return r.displayName=e,r}var Gs=()=>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"})]}),sf=()=>jsxRuntime.jsx("path",{d:"M166 120 88 70",fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round"}),lf=()=>jsxRuntime.jsx("path",{d:"M162 122 92 128",fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round"}),cf=()=>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"})]}),V0=mt("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"})]})),O0=mt("TextureFuse",jsxRuntime.jsx("path",{d:"M20 128h72q18 -84 36 0q18 84 36 0h72",fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round",strokeLinejoin:"round"})),z0=mt("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"})]})),H0=mt("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"})]})),G0=mt("TextureCapacitor",jsxRuntime.jsx(jsxRuntime.Fragment,{children:jsxRuntime.jsx("path",{d:"M4 128h106M146 128h106M110 72v112M146 72v112",fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round"})})),W0=mt("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"})]})),U0=mt("TextureSwitch",jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Gs,{}),jsxRuntime.jsx(sf,{})]})),K0=mt("TextureSwitchClosed",jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Gs,{}),jsxRuntime.jsx(lf,{})]})),Y0=mt("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"})]})),J0=mt("TextureSectionalizerOpen",jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Gs,{}),jsxRuntime.jsx(sf,{}),jsxRuntime.jsx(cf,{})]})),X0=mt("TextureSectionalizerClosed",jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Gs,{}),jsxRuntime.jsx(lf,{}),jsxRuntime.jsx(cf,{})]})),j0=mt("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"})]})),Ma={1:[128],2:[110,146],3:[92,128,164]},Md=e=>jsxRuntime.jsx("path",{d:`M24 ${e}h208`,fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round"},e),Ld=e=>jsxRuntime.jsx("path",{d:`M24 ${e}h208`,fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round",pathLength:100,strokeDasharray:"20 20"},e),q0=mt("TextureSinglePhaseOverheadLine",jsxRuntime.jsx(jsxRuntime.Fragment,{children:Ma[1].map(Md)})),Q0=mt("TextureTwoPhaseOverheadLine",jsxRuntime.jsx(jsxRuntime.Fragment,{children:Ma[2].map(Md)})),Z0=mt("TextureThreePhaseOverheadLine",jsxRuntime.jsx(jsxRuntime.Fragment,{children:Ma[3].map(Md)})),_0=mt("TextureSinglePhaseUndergroundLine",jsxRuntime.jsx(jsxRuntime.Fragment,{children:Ma[1].map(Ld)})),$0=mt("TextureTwoPhaseUndergroundLine",jsxRuntime.jsx(jsxRuntime.Fragment,{children:Ma[2].map(Ld)})),eS=mt("TextureThreePhaseUndergroundLine",jsxRuntime.jsx(jsxRuntime.Fragment,{children:Ma[3].map(Ld)})),tS=mt("TextureSupportStructure",jsxRuntime.jsx("circle",{cx:"128",cy:"128",r:"40",fill:"currentColor",stroke:"none"})),La={TextureRecloser:V0,TextureFuse:O0,TextureBreaker:z0,TextureSource:H0,TextureCapacitor:G0,TextureRegulator:W0,TextureSwitch:U0,TextureSwitchClosed:K0,TextureOpenPoint:Y0,TextureSectionalizerOpen:J0,TextureSectionalizerClosed:X0,TextureTransformer:j0,TextureSinglePhaseOverheadLine:q0,TextureTwoPhaseOverheadLine:Q0,TextureThreePhaseOverheadLine:Z0,TextureSinglePhaseUndergroundLine:_0,TextureTwoPhaseUndergroundLine:$0,TextureThreePhaseUndergroundLine:eS,TextureSupportStructure:tS};if(process.env.NODE_ENV==="development")for(let e of Object.keys(La))e in df__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 Da={xs:16,sm:20,md:24,lg:32,xl:40,"2xl":48},V=Qe.memo(({name:e,size:t="md",color:r,weight:o="regular",className:n,ariaLabel:a,...i})=>{let s=La[e]??df__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 l=typeof t=="string"&&t in Da?Da[t]:t,c=tailwindMerge.twMerge("inline-block flex-shrink-0",!r&&"text-current",n);return jsxRuntime.jsx(s,{...i,size:l,color:r,weight:o,className:c,"aria-label":a||`${e} icon`,"data-testid":`icon-${e}`})});V.displayName="Icon";var rS=Qe.memo(({variant:e="subtle",shape:t="square",containerSize:r,containerClassName:o,size:n="md",className:a,name:i,color:s,weight:l,ariaLabel:c,ref:d,...u})=>{let m=typeof n=="string"&&n in Da?Da[n]:n,p=r?typeof r=="string"&&r in Da?Da[r]:r:m*1.75,g=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:g,style:{width:p,height:p},children:jsxRuntime.jsx(V,{...u,name:i,size:n,color:s,weight:l,className:a,ariaLabel:c})})});rS.displayName="IconWithContainer";function kr({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 mS({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 vt({children:e,showArrow:t=false,withBackdrop:r=false,className:o,isDismissable:n=true,disableGroup:a=false,...i}){let l=reactAriaComponents.useSlottedContext(reactAriaComponents.PopoverContext)?.trigger==="SubmenuTrigger",c=t?12:8;c=l?c-6:c;let d=jsxRuntime.jsxs(reactAriaComponents.Popover,{offset:c,...i,className:reactAriaComponents.composeRenderProps(o,(u,m)=>mS({...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(kr,{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 Ws(e=true){let[t,r]=Qe.useState(null);return Qe.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 xS={"--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 mf(e){let t={...e};for(let[r,o]of Object.entries(xS))if(e[r])for(let n of o)e[n]||(t[n]=e[r]);return t}function ff(e){return e.replace(/[{}<>]/g,"")}function gf(e){return Object.entries(e).map(([t,r])=>`${ff(t)}: ${ff(r)};`).join(" ")}function hf({variables:e,darkVariables:t,children:r}){let n=Qe.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?mf(e):null,l=i?mf(t):null,c=s?`[data-brand-scope="${n}"] { ${gf(s)} }`:"",d=l?`.theme-dark [data-brand-scope="${n}"] { ${gf(l)} }`:"",u=[c,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 Aa=new Map,vS=8;function CS(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 Vt=(e,t="#000000")=>typeof window>"u"?t:xf(e,t,0);function xf(e,t,r){if(r>vS)return t;let o=e.startsWith("var(")?CS(e):e.startsWith("--")?e:`--${e}`;if(!e.startsWith("--")&&!e.startsWith("var(")&&!o.startsWith("--color-")&&(o=`--color-${o.slice(2)}`),Aa.has(o))return Aa.get(o);try{let n=document.body||document.documentElement,i=getComputedStyle(n).getPropertyValue(o).trim();if(i){if(i.startsWith("var(")){let c=xf(i,t,r+1);return Aa.set(o,c),c}return Aa.set(o,i),i}let s=document.createElement("div");s.style.color=`var(${o})`,document.body.appendChild(s);let l=getComputedStyle(s).color;return document.body.removeChild(s),l&&l!=="rgb(0, 0, 0)"?(Aa.set(o,l),l):t}catch(n){return console.warn(`Failed to resolve color for ${e}:`,n),t}}var Us=()=>{Aa.clear();},Oo=()=>{let e=[];for(let t=1;t<=12;t++){let r=Vt(`--color-viz-categorical-${t}`,"");r&&e.push(r);}return e.length===0?Ks():e},Ks=()=>["#5424db","#d92361","#e86a00","#5d89ff","#9a47e2","#f24cb8","#0ba286","#9c28af","#036e45","#52a119","#ff513d","#046691"],Ni=()=>Vt("--color-viz-default","#444ae1"),SS=(e,t)=>{let r={},o=Oo();return e.forEach((n,a)=>{t&&t[n]?r[n]=t[n]:r[n]=o[a%o.length];}),r},yf=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},wS=e=>yf(e)?Vt("--color-text-primary","#333333"):Vt("--color-text-inverse","#ffffff"),vf=(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()},Ti=e=>{let t=Oo(),r={};return e.forEach((o,n)=>{r[o]=t[n%t.length];}),r};var Id=(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)},Fd=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]},Cf=(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},ki=(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=Vt(i);n.push(s);}return n},Pi=(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=Vt(i);n.push(s);}return n},Ri=(e,t,r,o="viridis")=>{let n=ki(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]},Ei=(e,t,r,o,n="redYellowBlue")=>{let a=Pi(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 l=(e-t)/(o-t)*i,c=Math.floor(l);return a[Math.min(c,i)]}else {let s=(e-o)/(r-o),l=i+s*(a.length-1-i),c=Math.floor(l);return a[Math.min(c,a.length-1)]}};var Bd=Qe.createContext({mode:"system",colorMode:"light",isDarkTheme:false,toggleTheme:()=>{}}),jt=()=>Qe.useContext(Bd);function RS(){return typeof window>"u"?"light":window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Nf(){if(typeof window>"u")return "system";let e=localStorage.getItem("colorModePreference");return e==="light"||e==="dark"||e==="system"?e:"system"}function Tf(e){return e==="system"?RS():e}var Pf=({children:e})=>{let[t,r]=Qe.useState(Nf),[o,n]=Qe.useState(()=>Tf(Nf())),a=o==="dark",i=Qe.useCallback(l=>{l==="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")),Us();},[]);Qe.useEffect(()=>{Us();let l=Tf(t);if(n(l),i(l),t==="system"){let c=window.matchMedia("(prefers-color-scheme: dark)"),d=u=>{let m=u.matches?"dark":"light";n(m),i(m);};return c.addEventListener("change",d),()=>{c.removeEventListener("change",d);}}},[t,i]);let s=Qe.useCallback(()=>{r(l=>{let c=l==="system"?"light":l==="light"?"dark":"system";return localStorage.setItem("colorModePreference",c),c});},[]);return jsxRuntime.jsx(Bd.Provider,{value:{mode:t,colorMode:o,isDarkTheme:a,toggleTheme:s},children:e})};function ir(...e){return e.filter(Boolean).join(" ")}var Vd=class{constructor(){Si(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();}},ce=new Vd;var _o=(e,t="Yes",r="No")=>e==null?null:e?t:r,ES=e=>_o(e,"Enabled","Disabled"),MS=e=>_o(e,"On","Off"),LS=e=>_o(e,"Active","Inactive"),DS=e=>_o(e,"True","False"),AS=e=>_o(e,"\u2713","\u2717"),$o=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},Rf=(e,t)=>{if(t.hideWhenNull&&e==null)return null;if(e==null)return t.nullText??null;let r=$o(e);return r===null?t.nullText??null:_o(r,t.trueText??"Yes",t.falseText??"No")};ce.register("boolean",(e,t,r)=>{let o=$o(e);return o!==null?_o(o,typeof t=="string"?t:"Yes",typeof r=="string"?r:"No"):null});ce.register("yesNo",e=>{let t=$o(e);return t!==null?_o(t,"Yes","No"):null});ce.register("enabledDisabled",e=>{let t=$o(e);return t!==null?ES(t):null});ce.register("onOff",e=>{let t=$o(e);return t!==null?MS(t):null});ce.register("activeInactive",e=>{let t=$o(e);return t!==null?LS(t):null});ce.register("trueFalse",e=>{let t=$o(e);return t!==null?DS(t):null});ce.register("checkmark",e=>{let t=$o(e);return t!==null?AS(t):null});var be=e=>e==null,Ef=(e,t=0)=>be(e)?null:`${e.toFixed(t)}%`,Mf=(e,t=0)=>Ef(e,t)??"\u2014",IS=e=>be(e)?null:Math.round(e).toString(),FS=(e,t=1)=>be(e)?null:e.toFixed(t),BS=(e,t,r=true)=>{if(be(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)},VS=(e,t="short")=>be(e)?null:new Intl.NumberFormat("en-US",{notation:"compact",compactDisplay:t}).format(e),OS=(e,t=2)=>be(e)?null:e.toExponential(t),Lf=(e,t="USD",r)=>{if(be(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)},Df=(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)},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);return isNaN(r)?t.nullText??null:Lf(r,t.currency,t)};ce.register("percentage",(e,t)=>typeof e=="number"?Ef(e,typeof t=="number"?t:0):null);ce.register("integer",e=>typeof e=="number"?IS(e):null);ce.register("float",(e,t)=>typeof e=="number"?FS(e,typeof t=="number"?t:1):null);ce.register("number",(e,t,r)=>{let o=typeof e=="string"?parseFloat(e):Number(e);return isNaN(o)?null:BS(o,typeof t=="number"?t:void 0,typeof r=="boolean"?r:true)});ce.register("compact",(e,t)=>typeof e=="number"?VS(e,t==="long"?"long":"short"):null);ce.register("scientific",(e,t)=>typeof e=="number"?OS(e,typeof t=="number"?t:2):null);ce.register("currency",(e,t,r)=>typeof e=="number"?Lf(e,typeof t=="string"?t:"USD",typeof r=="object"&&r!==null?r:{}):null);function k4(e,t=1){return be(e)?null:Math.abs(e)>=1e3?`${(e/1e3).toFixed(t)} MWh`:`${e.toFixed(t)} kWh`}function P4(e,t=1){return be(e)?null:Math.abs(e)>=1e3?`${(e/1e3).toFixed(t)} MW`:`${e.toFixed(t)} kW`}function fo({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=Pr(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=Pr(e,{type:"date"});return jsxRuntime.jsx("time",{dateTime:e.toISOString(),title:e.toISOString(),children:n})}if(typeof e=="number")return Pr(e,{type:"number"});if(typeof e=="boolean")return Pr(e,{type:"boolean"})}return String(e)}function L4(e,t,r){return Qe__namespace.default.useCallback(o=>fo({value:o,formatter:e,emptyClassName:t,emptyText:r}),[e,t,r])}var Od=(e,t=0)=>{if(be(e))return null;let r=e*1e3;return t===0?`${Math.round(r)} mA`:`${r.toFixed(t)} mA`},Js=(e,t=1)=>be(e)?null:`${e.toFixed(t)} A`,zd=(e,t=2)=>be(e)?null:`${(e/1e3).toFixed(t)} kA`,HS=(e,t)=>{if(be(e))return null;let r=Math.abs(e);return r>=1e3?zd(e,t??2):r<1?Od(e,t??0):Js(e,t??1)},Hd=(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 zd(r,o??2);case "mA":return Od(r,o??0);case "A":return Js(r,o??1)}return t.autoScale!==false?HS(r,o):Js(r,o??1)};ce.register("current",Hd);var B4=Od,V4=Js,O4=zd;var An=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},GS=(e,t=false,r)=>{if(!e)return null;let o=An(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)},Xs=e=>{if(!e)return null;let t=An(e);return t?t.toRelative():"Invalid Date"},WS=(e,t)=>{if(!e)return null;let r=An(e);return r?(t?r.setZone(t):r).toLocaleString(luxon.DateTime.DATETIME_MED_WITH_WEEKDAY):"Invalid Date"},US=e=>{if(!e)return null;let t=An(e);return t?t.toISO():null},KS=(e,t,r)=>{if(!e)return null;let o=An(e);return o?(r?o.setZone(r):o).toFormat(t):"Invalid Date"},W4=e=>{let t=An(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},If=(e,t)=>{if(t.hideWhenNull&&e==null)return null;if(e==null)return t.nullText??null;let r=An(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)};ce.register("date",(e,t,r)=>GS(e,typeof t=="boolean"?t:false,typeof r=="string"?r:void 0));ce.register("relativeTime",e=>Xs(e));ce.register("fullDateTime",(e,t)=>WS(e,typeof t=="string"?t:void 0));ce.register("isoString",e=>US(e));ce.register("customDateFormat",(e,t,r)=>typeof t=="string"?KS(e,t,typeof r=="string"?r:void 0):null);var Gd=(e,t=1)=>be(e)?null:`${e.toFixed(t)} m`,YS=(e,t=1)=>be(e)?null:`${(e*100).toFixed(t)} cm`,JS=(e,t=0)=>be(e)?null:`${(e*1e3).toFixed(t)} mm`,Wd=(e,t=1)=>be(e)?null:`${(e/1e3).toFixed(t)} km`,Ud=(e,t=0)=>be(e)?null:`${e.toFixed(t)} ft`,XS=(e,t=1)=>be(e)?null:`${e.toFixed(t)} in`,Kd=(e,t=1)=>be(e)?null:`${e.toFixed(t)} mi`,Yd=(e,t=0)=>be(e)?null:`${e.toFixed(t)} yd`,J4=(e,t=1)=>be(e)?null:`${e.toFixed(t)} nm`,X4=e=>e*3.28084,j4=e=>e/3.28084,q4=e=>e*1.60934,Q4=e=>e/1.60934,Z4=e=>e/5280,Ff=e=>e*5280,_4=e=>e/1609.34,$4=e=>e*1609.34,eF=e=>e*.9144,tF=e=>e/.9144,rF=e=>e*2.54,oF=e=>e/2.54,Bf=(e,t=false,r=1)=>{if(be(e))return null;let o=Math.abs(e);return t?o>=1e3?Wd(e,r):o<.01?JS(e,0):o<1?YS(e,r):Gd(e,r):o<.01?Ud(Ff(e),0):o<.1?Yd(Ff(e)/3,0):Kd(e,r)},Vf=(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 Bf(r,n,o)}switch(t.unit){case "km":return Wd(r,o);case "ft":return Ud(r,o);case "mi":return Kd(r,o);case "yd":return Yd(r,o);default:return Gd(r,o)}};ce.register("miles",(e,t)=>typeof e=="number"?Kd(e,typeof t=="number"?t:1):null);ce.register("kilometers",(e,t)=>typeof e=="number"?Wd(e,typeof t=="number"?t:1):null);ce.register("meters",(e,t)=>typeof e=="number"?Gd(e,typeof t=="number"?t:1):null);ce.register("feet",(e,t)=>typeof e=="number"?Ud(e,typeof t=="number"?t:0):null);ce.register("yards",(e,t)=>typeof e=="number"?Yd(e,typeof t=="number"?t:0):null);ce.register("inches",(e,t)=>typeof e=="number"?XS(e,typeof t=="number"?t:1):null);ce.register("autoScaleDistance",(e,t,r)=>typeof e=="number"?Bf(e,typeof t=="boolean"?t:false,typeof r=="number"?r:1):null);var Jd=(e,t=1)=>be(e)?null:`${e.toFixed(t)} Wh`,Xd=(e,t=1)=>be(e)?null:`${(e/1e3).toFixed(t)} kWh`,Of=(e,t=1)=>be(e)?null:`${(e/1e6).toFixed(t)} MWh`,zf=(e,t=1)=>be(e)?null:`${(e/1e9).toFixed(t)} GWh`,jd=e=>{let t=Math.abs(e);return t>=1e9?"GWh":t>=1e6?"MWh":t>=1e3?"kWh":"Wh"},Hf=(e,t=1)=>{if(be(e))return null;switch(jd(e)){case "GWh":return zf(e,t);case "MWh":return Of(e,t);case "kWh":return Xd(e,t);default:return Jd(e,t)}},qd={Wh:1,kWh:1e3,MWh:1e6,GWh:1e9},Qd=(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*qd[t.sourceUnit]:r,n=t.decimals??1;if(t.unit)switch(t.unit){case "GWh":return zf(o,n);case "MWh":return Of(o,n);case "kWh":return Xd(o,n);case "Wh":return Jd(o,n)}return t.autoScale!==false?Hf(o,n):Jd(o,n)};ce.register("kWh",e=>typeof e=="number"?Xd(e):null);ce.register("autoScaleEnergy",(e,t)=>typeof e=="number"?Hf(e,typeof t=="number"?t:1):null);ce.register("energy",Qd);var js=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},Zd=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():js(e)},Ia=e=>e?e.startsWith("+")||e.length>11?Zd(e):js(e):null,Gf=(e,t)=>{if(t.hideWhenNull&&e==null)return null;if(e==null)return t.nullText??null;let r=String(e);if(t.international)return Zd(r);switch(t.country){case "US":case "CA":return js(r);default:return Ia(r)}};ce.register("phoneNumber",e=>typeof e=="string"?Ia(e):null);ce.register("usPhone",e=>typeof e=="string"?js(e):null);ce.register("internationalPhone",e=>typeof e=="string"?Zd(e):null);var qs=(e,t=0)=>be(e)?null:t===0?`${Math.round(e)} W`:`${e.toFixed(t)} W`,_d=(e,t=1)=>be(e)?null:`${(e/1e3).toFixed(t)} kW`,$d=(e,t=1)=>be(e)?null:`${(e/1e6).toFixed(t)} MW`,eu=(e,t=2)=>be(e)?null:`${(e/1e9).toFixed(t)} GW`,jS=(e,t)=>{if(be(e))return null;let r=Math.abs(e);return r>=1e9?eu(e,t??2):r>=1e6?$d(e,t??1):r>=1e3?_d(e,t??1):qs(e,t??0)},tu=(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 eu(r,o??2);case "MW":return $d(r,o??1);case "kW":return _d(r,o??1);case "W":return qs(r,o??0)}return t.autoScale!==false?jS(r,o):qs(r,o??0)};ce.register("power",tu);var pF=qs,mF=_d,fF=$d,gF=eu;var ru=(e,t=1)=>be(e)?null:`${(e*1e3).toFixed(t)} m\u03A9`,Qs=(e,t=1)=>be(e)?null:`${e.toFixed(t)} \u03A9`,Wf=(e,t=1)=>be(e)?null:`${(e/1e3).toFixed(t)} k\u03A9`,Uf=(e,t=2)=>be(e)?null:`${(e/1e6).toFixed(t)} M\u03A9`,qS=(e,t)=>{if(be(e))return null;let r=Math.abs(e);return r>=1e6?Uf(e,t??2):r>=1e3?Wf(e,t??1):r<1?ru(e,t??1):Qs(e,t??1)},ou=(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 Uf(r,o??2);case "k\u03A9":return Wf(r,o??1);case "m\u03A9":return ru(r,o??1);case "\u03A9":return Qs(r,o??1)}return t.autoScale!==false?qS(r,o):Qs(r,o??1)};ce.register("resistance",ou);ce.register("ohms",e=>typeof e=="number"?Qs(e):null);ce.register("milliohms",e=>typeof e=="number"?ru(e):null);var Kf=e=>{switch(e){case "FAHRENHEIT":return "F";case "CELSIUS":return "C";case "KELVIN":return "K";default:return "F"}},Yf=(e,t=0)=>be(e)?null:`${e.toFixed(t)}\xB0F`,Jf=(e,t=true,r=0)=>be(e)?null:`${(t?(e-32)*(5/9):e).toFixed(r)}\xB0C`,Xf=(e,t=true,r=0)=>be(e)?null:`${(t?(e-32)*(5/9)+273.15:e+273.15).toFixed(r)}K`,QS=e=>e*9/5+32,ZS=e=>(e-32)*(5/9),SF=e=>e+273.15,_S=e=>e-273.15,wF=e=>ZS(e)+273.15,NF=e=>QS(_S(e)),jf=(e,t="F",r=0)=>{if(be(e))return null;switch(typeof t=="string"&&t.length>1?Kf(t):t){case "C":return Jf(e,true,r);case "K":return Xf(e,true,r);default:return Yf(e,r)}},qf=(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?Kf(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 jf(r,n,o)};ce.register("temperature",(e,t,r)=>typeof e=="number"?jf(e,typeof t=="string"?t:"F",typeof r=="number"?r:0):null);ce.register("fahrenheit",(e,t)=>typeof e=="number"?Yf(e,typeof t=="number"?t:0):null);ce.register("celsius",(e,t,r)=>typeof e=="number"?Jf(e,typeof t=="boolean"?t:true,typeof r=="number"?r:0):null);ce.register("kelvin",(e,t,r)=>typeof e=="number"?Xf(e,typeof t=="boolean"?t:true,typeof r=="number"?r:0):null);var $S=(e,t)=>!!(t.hideWhenNull&&e==null||t.hideWhenZero&&e===0),Qf=e=>e?.toUpperCase()??"",Zf=e=>e?.toLowerCase()??"",_f=e=>e?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():"",$f=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(" ")},eg=e=>e?e.split(/\s+/).map(t=>t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()).join(" "):"",tg=e=>e?e.charAt(0).toUpperCase()+e.slice(1):"",rg=e=>e?e.replace(/([A-Z])/g," $1").replace(/^./,t=>t.toUpperCase()).trim():"",og=e=>e?e.toLowerCase().split("_").map(t=>tg(t)).join(" "):"",ew=e=>e?e.includes("_")?og(e):e.toUpperCase()===e?tg(e.toLowerCase()):rg(e):"",Fa=(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)}`},Zs=(e,t=8)=>e?e.length<=t?e:`...${e.slice(-t)}`:"",_s=(e,t=16,r="...")=>e?e.length<=t?e:e.slice(0,t)+r:"",tw=e=>{if(!e)return "";let t=e.toString(),r=t.slice(-4),o=t.length-4;return o>0?"*".repeat(o)+r:t},ng=(e,t)=>{if($S(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=Qf(r);break;case "lowercase":r=Zf(r);break;case "capitalize":r=eg(r);break;case "titleCase":r=$f(r);break;case "sentenceCase":r=_f(r);break}}),t.truncate){let{length:o,position:n,ellipsis:a="..."}=t.truncate;switch(n){case "start":r=Zs(r,o);break;case "middle":r=Fa(r,o);break;case "end":r=_s(r,o,a);break}}return r};ce.register("uppercase",e=>Qf(String(e)));ce.register("lowercase",e=>Zf(String(e)));ce.register("sentenceCase",e=>_f(String(e)));ce.register("titleCase",e=>$f(String(e)));ce.register("capitalize",e=>eg(String(e)));ce.register("camelCaseToWords",e=>rg(String(e)));ce.register("snakeCaseToWords",e=>og(String(e)));ce.register("enumToSentenceCase",e=>ew(String(e)));ce.register("truncateMiddle",(e,t)=>Fa(String(e),typeof t=="number"?t:16));ce.register("truncateStart",(e,t)=>Zs(String(e),typeof t=="number"?t:8));ce.register("truncateEnd",(e,t,r)=>_s(String(e),typeof t=="number"?t:16,typeof r=="string"?r:"..."));ce.register("secret",e=>tw(String(e)));var nu=(e,t=0)=>{if(be(e))return null;let r=e*1e3;return t===0?`${Math.round(r)} mV`:`${r.toFixed(t)} mV`},$s=(e,t=0)=>be(e)?null:t===0?`${Math.round(e)} V`:`${e.toFixed(t)} V`,au=(e,t=1)=>be(e)?null:`${(e/1e3).toFixed(t)} kV`,rw=(e,t)=>{if(be(e))return null;let r=Math.abs(e);return r>=1e3?au(e,t??1):r<1?nu(e,t??0):$s(e,t??0)},iu=(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 au(r,o??1);case "mV":return nu(r,o??0);case "V":return $s(r,o??0)}return t.autoScale!==false?rw(r,o):$s(r,o??0)};ce.register("voltage",iu);var MF=nu,LF=$s,DF=au;var ow=(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:Mf(r,t.decimals??0)},Pr=(e,t)=>{switch(t.type){case "text":return ng(e,t);case "number":return Df(e,t);case "percentage":return ow(e,t);case "currency":return Af(e,t);case "date":return If(e,t);case "boolean":return Rf(e,t);case "energy":return Qd(e,t);case "power":return tu(e,t);case "voltage":return iu(e,t);case "current":return Hd(e,t);case "resistance":return ou(e,t);case "temperature":return qf(e,t);case "distance":return Vf(e,t);case "phone":return Gf(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 Ba={power:"W",energy:"Wh",voltage:"V",current:"A",resistance:"\u03A9",distance:"m"},nw=new Set(["number","power","energy","voltage","current","resistance","temperature","distance","percentage"]);function su(e){if(!e)return null;switch(e.type){case "percentage":return "%";case "power":return e.unit??Ba.power;case "energy":return e.unit??e.sourceUnit??Ba.energy;case "voltage":return e.unit??Ba.voltage;case "current":return e.unit??Ba.current;case "resistance":return e.unit??Ba.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??Ba.distance;default:return null}}function ag(e,t){if(!nw.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=su(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=Pr(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=Pr(r,t);return n?String(n):""}return String(r)}var qF=(e,t)=>({type:e,...t});function Fn(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function In(e,t){return Fn(e)?t.format(e):""}function ig(e){if(!Fn(e.start)||!Fn(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=>In(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=>In(i,a)}var aw=864e5;function sg(e,t){let r=t?.compact??false,o=e<5*aw,n=a=>{let i=a.getHours(),s=i>=12?"PM":"AM";return {displayHour:i%12||12,period:s}};return a=>{if(!Fn(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:l}=n(a);if(a.getMinutes()===0&&a.getSeconds()===0)return r?`${s}${l.charAt(0).toLowerCase()}`:`${s} ${l}`;let c=String(a.getMinutes()).padStart(2,"0");return r?`${s}:${c}${l.charAt(0).toLowerCase()}`:`${s}:${c} ${l}`}}function lu(e,t){if(!Fn(e.start)||!Fn(e.end))return ()=>"";let r=(e.end.getTime()-e.start.getTime())/(1e3*60*60),o=t?.compact??false,n=c=>d=>Fn(d)?c(d):"";if(r<=24){if(o)return n(d=>{let u=d.getHours(),m=u>=12?"pm":"am";return `${u%12||12}${m}`});let c=new Intl.DateTimeFormat("en",{hour:"numeric",minute:"2-digit"});return d=>In(d,c)}if(r<=48){if(o)return n(d=>{let u=d.getMonth()+1,m=d.getDate(),p=d.getHours(),g=p>=12?"p":"a",f=p%12||12;return `${u}/${m} ${f}${g}`});let c=new Intl.DateTimeFormat("en",{month:"short",day:"numeric",hour:"numeric"});return d=>In(d,c)}if(r<=168){if(o)return n(d=>{let u=d.getDate();return `${d.toLocaleDateString("en",{weekday:"short"}).charAt(0)}${u}`});let c=new Intl.DateTimeFormat("en",{weekday:"short",day:"numeric"});return d=>In(d,c)}if(r<=720){if(o)return n(d=>{let u=d.getMonth()+1,m=d.getDate();return `${u}/${m}`});let c=new Intl.DateTimeFormat("en",{month:"short",day:"numeric"});return d=>In(d,c)}let a=e.start.getFullYear(),i=e.end.getFullYear(),s=a!==i;if(o)return n(c=>{let d=c.getMonth()+1,u=c.getDate(),m=s?`/${c.getFullYear().toString().slice(-2)}`:"";return `${d}/${u}${m}`});let l=new Intl.DateTimeFormat("en",{month:"short",day:"numeric",...s&&{year:"numeric"}});return c=>In(c,l)}var go={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 kt(e,...t){return ir(go[e],...t)}function rt(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 Ae(e,t){return reactAriaComponents.composeRenderProps(e,r=>tailwindMerge.twMerge(t,r))}var Ue={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 dw="flex font-medium justify-center items-center gap-2 text-center transition rounded-[var(--control-border-radius)] whitespace-nowrap box-border",uw="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",pw={primary:uw,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"},cg={full:"w-full",default:"w-fit"},mw="opacity-50 cursor-not-allowed pointer-events-none",fw="opacity-100 cursor-pointer",gw={"top-right":"-right-2 -top-2","top-left":"-left-2 -top-2","bottom-right":"-right-2 -bottom-2","bottom-left":"-left-2 -bottom-2"},bw={primary:"bg-action-primary text-[color:var(--color-action-primary-text)]",destructive:"bg-feedback-error-border text-text-inverse"};function hw(e){return !e||e==="default"||e==="brand"?"primary":e}function xw(e){let{variant:t="primary",size:r="md",isDisabled:o,fullWidth:n=false,isLoading:a=false}=e,i=hw(t),s=i==="unstyled"?"":`${dw} ${pw[i]}`;i!=="unstyled"&&(s+=` ${Ue[r].text} ${Ue[r].height} ${Ue[r].padding} ${Ue[r].gap}`),o||a?s+=` ${mw}`:s+=` ${fw}`,n?s+=` ${cg.full}`:s+=` ${cg.default}`;let l=i==="primary"?"focus-visible:outline-action-primary":void 0;return [s,rt(),l].filter(Boolean).join(" ")}function te(e){let{icon:t,children:r,isLoading:o=false,loadingText:n,loadingIndicator:a,size:i="md",iconPosition:s="left",iconWeight:l,href:c,className:d,badgeNumber:u,badgeVariant:m="primary",badgePosition:p="top-right",style:g,target:f,rel:y,...b}=e,h=t?jsxRuntime.jsx(V,{name:t,size:i,weight:l}):null,x=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s==="left"&&h,typeof r=="function"?null:r,s==="right"&&h]}),C=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})]}),w=(u??0)>0,S=tailwindMerge.twMerge(xw(e),d),T=c?{href:c,target:f,rel:y,...b}:{};if(c){let{onPress:P,onPressStart:E,onPressEnd:I,onPressChange:k,onPressUp:D,onAuxClick:L,onContextMenu:B,onDoubleClick:O,...H}=b;Object.assign(T,H);}let R=c?jsxRuntime.jsx(reactAriaComponents.Link,{...T,...o&&{"aria-busy":true},style:w?void 0:g,className:S,children:o?C:typeof r=="function"?(function(P){return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s==="left"&&h,r(P),s==="right"&&h]})}):x}):jsxRuntime.jsx(reactAriaComponents.Button,{...b,...o&&{"aria-busy":true},style:w?void 0:g,className:S,children:o?C:typeof r=="function"?(function(P){return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s==="left"&&h,r(P),s==="right"&&h]})}):x});return w?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("relative flex",d),style:g,children:[R,jsxRuntime.jsx("span",{className:`absolute ${gw[p]} flex h-5 w-5 items-center justify-center rounded-full ${bw[m]} text-xs font-medium`,"aria-label":`${u} items`,children:u})]}):R}function du({action:e,defaultVariant:t,defaultSize:r="lg"}){let o=!!e.formId;return jsxRuntime.jsx(te,{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 tn({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(du,{action:r,defaultVariant:"destructive"})}),jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[t&&jsxRuntime.jsx(du,{action:t,defaultVariant:"secondary"}),e&&jsxRuntime.jsx(du,{action:e,defaultVariant:"primary"})]})]})]})}var yw={heading:{sm:go.headingSm,md:go.headingMd,lg:go.headingLg,xl:go.headingXl},display:{sm:go.displaySm,md:go.displayMd,lg:go.displayLg,xl:go.displayXl}},vw={page:"h-16 leading-[62px]"};function lr({tag:e="h1",variant:t="heading",size:r="lg",height:o,className:n="",children:a}){let i=r==="xs"?"sm":r,s=yw[t][i],l=o?vw[o]:"";return jsxRuntime.jsx(e,{className:ir(s,"text-text-primary",l,n),children:a})}var _t=({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(te,{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(lr,{size:"xs",children:e}),t&&!r&&jsxRuntime.jsx(te,{variant:"icon",onPress:t,"aria-label":"Close dialog",children:jsxRuntime.jsx(V,{name:"X","data-testid":"close-button"})})]})]});var mu=48,Di=Qe.createContext(false);function rn({children:e}){return jsxRuntime.jsx(Di.Provider,{value:true,children:e})}function pg({children:e}){return jsxRuntime.jsx(Di.Provider,{value:false,children:e})}function za(e,t){let r=Qe.useContext(Di),{ref:o,height:n}=Rw();return {headerRef:o,headerHeight:!r||e||t?n||mu:0}}function mg(){return !Qe.useContext(Di)}function Rw(){let[e,t]=Qe.useState(0),r=Qe.useRef(null),o=Qe.useRef(null),n=Qe.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 Qe.useEffect(()=>()=>o.current?.disconnect(),[]),{ref:n,height:e}}function Ha({title:e,controls:t,actions:r,containerRef:o,marginLeft:n=0,marginRight:a=0}){let s=!Qe.useContext(Di);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 Y=({width:e,height:t,variant:r="rect",animation:o="pulse",gradient:n=false,flex:a=false,stack:i,responsive:s,delay:l=0,adjustAnimationSpeedBasedOnWidth:c=false,ariaLabel:d,className:u,"data-testid":m})=>{let[p,g]=Qe.useState(l===0);if(Qe.useEffect(()=>{if(l>0){let w=setTimeout(()=>g(true),l);return ()=>clearTimeout(w)}},[l]),!p)return null;let f=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=c&&e?(()=>{let w=typeof e=="number"?e:parseFloat(String(e));return isNaN(w)?"":`animation-duration-[${Math.max(.8,w/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":"",C=s?Object.entries(s).map(([w,S])=>`${w}:w-[${S}]`).join(" "):"";return i?jsxRuntime.jsx("div",{className:"space-y-2","data-testid":m,children:i.map((w,S)=>jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(f,b,h,x,C,u),style:{width:w,height:t}},S))}):jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(f,b,h,x,C,u),style:{width:e,height:t},role:"presentation","aria-hidden":!d,"aria-label":d??void 0,"data-testid":m})},gg=({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 Dw={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"},Aw="rounded-lg",gu={square:"aspect-square",video:"aspect-video",wide:"aspect-[2/1]",auto:""},Iw={start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between"};function bg(e){return Qe__namespace.default.Children.toArray(e).some(t=>Qe__namespace.default.isValidElement(t)?t.type===Qe__namespace.default.Fragment?bg(t.props.children):t.type===el&&!!t.props.title:false)}function _e({variant:e="outlined",className:t,children:r,isLoading:o=false,layout:n="default"}){let a=bg(r)?jsxRuntime.jsx(rn,{children:r}):r;return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-full overflow-hidden",Dw[e],Aw,n==="flex"&&"flex flex-col",t),"data-testid":"card",children:o?jsxRuntime.jsx(Y,{width:"100%",height:"100%",className:"rounded-none"}):a})}function el({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(Y,{width:120,height:20}),jsxRuntime.jsx(Y,{width:24,height:24})]}),t&&jsxRuntime.jsx(Y,{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(lr,{tag:"h3",size:"sm",className:"text-text-primary",children:e}):e}),t&&jsxRuntime.jsx("div",{className:kt("bodySm","text-text-secondary"),children:t})]}),r&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:r})]})})}function bu({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",gu[r],o),children:jsxRuntime.jsx(Y,{width:"100%",height:"100%"})}):n?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-hidden",gu[r],o),children:n}):e?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-hidden",gu[r],o),children:jsxRuntime.jsx("img",{src:e,alt:t||"",className:"w-full h-full object-cover",loading:"lazy"})}):null}function hu({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(Y,{width:"100%",height:16}),jsxRuntime.jsx(Y,{width:"80%",height:16}),jsxRuntime.jsx(Y,{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 xu({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(Y,{width:80,height:32}),jsxRuntime.jsx(Y,{width:60,height:32})]}):t?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("px-6 py-4 flex items-center gap-2",Iw[r],e),children:t}):null}_e.Header=el;_e.Media=bu;_e.Content=hu;_e.Footer=xu;var $r=class extends Qe.Component{constructor(){super(...arguments);Si(this,"state",{hasError:false});Si(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(_e,{children:[this.props.title&&jsxRuntime.jsx(_e.Header,{title:this.props.title}),jsxRuntime.jsx(_e.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 Ow=.3,zw=.5;function Ct({children:e,title:t,headerContent:r,titleAlign:o="left",hideCloseIcon:n=false,hasBackArrow:a=false,onBack:i,isOpen:s,onClose:l,isDismissable:c=true,transparentOverlay:d=false,primaryAction:u,secondaryAction:m,footerContent:p,maxHeight:g="80vh",height:f,maxWidth:y="640px",contentPadding:b=true,showHandle:h=true,animationVariant:x="scale",className:C}){let[w,S]=Qe.useState(false),[T,R]=Qe.useState(0),[P,E]=Qe.useState(false),I=Ws(s),k=I?.height??null,D=I?.keyboardOffset??0,L=Qe.useRef(null),B=Qe.useRef(null),O=Qe.useRef(null),H=Qe.useRef({isDragging:false,startY:0,startTime:0,pointerId:null});Qe.useEffect(()=>{if(s){let F=setTimeout(()=>{S(true),setTimeout(()=>S(false),600);},400);return ()=>clearTimeout(F)}},[s]),Qe.useEffect(()=>{s||(R(0),E(false),H.current={isDragging:false,startY:0,startTime:0,pointerId:null});},[s]),Qe.useEffect(()=>{let F=B.current;if(!F||!s)return;let X=null,N=v=>{let M=v.target;M&&["INPUT","TEXTAREA","SELECT"].includes(M.tagName)&&(X&&clearTimeout(X),X=setTimeout(()=>{M.scrollIntoView({block:"nearest",behavior:"smooth"});},320));};return F.addEventListener("focusin",N),()=>{F.removeEventListener("focusin",N),X&&clearTimeout(X);}},[s]);let G=Qe.useCallback(F=>{c&&(F.pointerType!=="touch"&&F.pointerType!=="pen"||(O.current&&(clearTimeout(O.current),O.current=null),H.current={isDragging:true,startY:F.clientY,startTime:Date.now(),pointerId:F.pointerId},E(false),F.currentTarget.setPointerCapture(F.pointerId)));},[c]),Z=Qe.useCallback(F=>{let{isDragging:X,startY:N,pointerId:v}=H.current;if(!X||F.pointerId!==v)return;let M=F.clientY-N;R(Math.max(0,M));},[]),z=Qe.useCallback(F=>{let{isDragging:X,startY:N,startTime:v,pointerId:M}=H.current;if(!X||F.pointerId!==M)return;let A=F.clientY-N,J=Date.now()-v,ae=A/J;H.current={isDragging:false,startY:0,startTime:0,pointerId:null};let $=(L.current?.getBoundingClientRect().height??0)*Ow;(A>$||ae>zw&&A>50)&&c?(l?.(),R(0)):(E(true),R(0),O.current=setTimeout(()=>{E(false),O.current=null;},200));},[c,l]);if(!s)return null;let W=t||r,q=u||m||p;return jsxRuntime.jsx($r,{children:jsxRuntime.jsx(kr,{isOpen:s,onOpenChange:F=>{F||l?.();},isDismissable:c,transparent:d,style:{paddingBottom:D>0?`${D}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:c,children:jsxRuntime.jsx("div",{ref:L,className:tailwindMerge.twMerge("w-full",P&&"transition-transform duration-200"),style:{transform:T>0?`translateY(${T}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)]",C),style:{maxWidth:y,...f?{height:f}:{maxHeight:/\d/.test(g)?k!==null?`min(${g}, ${Math.max(k-8,0)}px, 100dvh)`:`min(${g}, 100dvh)`:g}},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:G,onPointerMove:Z,onPointerUp:z,onPointerCancel:z,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",w&&"animate-[handle-wiggle_0.6s_ease-in-out]")})}),W&&(a?jsxRuntime.jsx(_t,{title:t,headerContent:r,titleAlign:o,hideCloseIcon:n||!l,hasBackArrow:true,onBack:i??(()=>{}),onClose:l||(()=>{})}):jsxRuntime.jsx(_t,{title:t,headerContent:r,titleAlign:o,hideCloseIcon:n||!l,onClose:l||(()=>{})})),jsxRuntime.jsx("div",{ref:B,className:tailwindMerge.twMerge("flex-1 min-h-0 overflow-y-auto overscroll-contain",b?"p-4":"p-0"),children:e}),q&&jsxRuntime.jsx(tn,{primaryAction:u,secondaryAction:m,footerContent:p})]})})})})})}Ct.displayName="Tray";function Wa({children:e,items:t,className:r,align:o="left",textAlign:n="left",size:a="md",onAction:i,header:s,footer:l,useMobileTray:c=true,popoverClassName:d}){let[u,m]=Qe.useState(false),{isMobile:p}=ar();if(c&&p){let f=Qe__namespace.default.isValidElement(e)?Qe__namespace.default.cloneElement(e,{onPress:()=>m(true)}):e,h=(x=>{if(typeof x=="string")return x;if(Qe__namespace.default.isValidElement(x)){let C=x.props;if(typeof C.children=="string")return C.children;if(Array.isArray(C.children))return C.children.find(S=>typeof S=="string")||""}return ""})(e)||"Actions";return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:r,children:f}),jsxRuntime.jsx(Ct,{isOpen:u,onClose:()=>m(false),title:h,contentPadding:false,headerContent:s,footerContent:l,children:jsxRuntime.jsx("div",{className:"flex flex-col",children:t.map(x=>{let C=x.href&&!x.disabled?"a":"button";return jsxRuntime.jsxs(C,{...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(vt,{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(f=>jsxRuntime.jsx(Kw,{id:f.id,href:f.href,onAction:()=>{f.onAction?f.onAction():i?.(f);},textAlign:n,size:a,iconName:f.iconName,isDisabled:f.disabled,variant:f.variant,subtitle:f.subtitle,render:f.render,noPadding:f.noPadding,"data-testid":f.testId,children:f.name},f.id))}),l?jsxRuntime.jsx("div",{className:"px-3 pb-3 pt-2",children:l}):null]})})]})})}function Kw({textAlign:e="left",iconName:t,size:r="md",isDisabled:o,children:n,variant:a="default",subtitle:i,render:s,noPadding:l,...c}){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,{...c,isDisabled:o,className:tailwindMerge.twMerge("group box-border flex w-full cursor-pointer items-center rounded-sm outline-none transition-colors",!l&&d[r],m[a],e==="right"?"justify-end":"justify-start",o&&"pointer-events-none opacity-50"),children:s()}):jsxRuntime.jsxs(reactAriaComponents.MenuItem,{...c,isDisabled:o,className:tailwindMerge.twMerge("group box-border flex w-full cursor-pointer items-center rounded-sm outline-none transition-colors",!l&&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 Wr=({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 Ur({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(Wr,{size:20,color:"text-text-secondary"}),t&&jsxRuntime.jsx("span",{className:"text-sm","aria-hidden":"true",children:t})]});return o||n}function on({items:e,onLoadMore:t,hasMore:r,isLoading:o=false,loadingState:n,enableVirtualization:a,estimatedItemSize:i=50,overscan:s=5,scrollElement:l,loadMoreThreshold:c=100}){let d=Qe.useRef(null),u=Qe.useRef(null),m=Qe.useRef(false),[p,g]=Qe.useState(0);Qe.useEffect(()=>{u.current&&(l||d.current)&&g(R=>R+1);},[l,e.length]);let f=n||(o?e.length===0?"loading":"loading-more":"idle"),y=f==="loading",b=f==="loading-more",h=a!==void 0?a:e.length>=100,x=reactVirtual.useVirtualizer({count:e.length,getScrollElement:()=>l||d.current,estimateSize:()=>i,overscan:s}),C=h?x:null,w=h?x.getVirtualItems():[];Qe.useEffect(()=>{let R=u.current,P=l||d.current;if(!R||!P||!r||o||!t)return;let E=new IntersectionObserver(I=>{let[k]=I;k?.isIntersecting&&!m.current&&r&&t&&(m.current=true,Promise.resolve(t()).finally(()=>{m.current=false;}));},{root:P,rootMargin:`0px 0px ${c}px 0px`,threshold:0});return E.observe(R),()=>{E.disconnect();}},[r,o,t,l,c,p]);let S=Qe.useCallback((R,P)=>{C?C.scrollToIndex(R,P):d.current&&d.current.children[R]?.scrollIntoView({behavior:"smooth",block:P?.align||"start"});},[C]),T=Qe.useCallback(()=>{C?C.scrollToIndex(0,{align:"start"}):d.current&&d.current.scrollTo({top:0,behavior:"smooth"});},[C]);return {virtualizer:C,virtualItems:w,computedLoadingState:f,isInitialLoad:y,isLoadingMore:b,scrollRef:d,loadMoreRef:u,scrollToIndex:S,scrollToTop:T}}var Ua=Qe.createContext({variant:"timeline",size:"md"});function kg(){return Qe.useContext(Ua)}function nl(e){return Qe.isValidElement(e)&&e.type===sl}function eN(e){return Qe.isValidElement(e)&&e.type===il}function Tu({variant:e="timeline",size:t="md",className:r,children:o,items:n,renderItem:a,isLoading:i=false,loadingState:s,error:l=null,renderLoadingSkeleton:c,loadingSkeletonCount:d=5,emptyMessage:u="No activity found.",onLoadMore:m,hasMore:p=false,enableVirtualization:g,estimatedItemSize:f,loadingIndicator:y,height:b,maxHeight:h,...x}){let C=Qe.useRef(null),{isMobile:w}=ar(),S=w?"stacked":e,T=n!==void 0&&a!==void 0,{scrollRef:R,loadMoreRef:P,virtualizer:E,virtualItems:I,isLoadingMore:k,computedLoadingState:D}=on({items:n||[],onLoadMore:T?m:void 0,hasMore:T?p:false,isLoading:i,loadingState:s,enableVirtualization:T?g:false,estimatedItemSize:f||(S==="stacked"?120:150),overscan:5}),L=T&&R?R:C,B=Qe.useMemo(()=>({variant:S,size:t}),[S,t]),O=S==="timeline"?t==="sm"?"gap-4":"gap-6":"gap-0",H=S==="stacked"?"divide-y divide-border-subtle rounded-lg border border-border-subtle bg-background-surface":"",G={};if(T&&m&&(b?(G.height=typeof b=="number"?`${b}px`:b,G.overflowY="auto"):h?(G.maxHeight=typeof h=="number"?`${h}px`:h,G.overflowY="auto"):(G.height="600px",G.overflowY="auto")),T){let W=D==="loading"||i&&(!n||n.length===0);if(W){let F=c?jsxRuntime.jsx(jsxRuntime.Fragment,{children:Array.from({length:d}).map((X,N)=>jsxRuntime.jsx("div",{children:c()},`skeleton-${N}`))}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:Array.from({length:d}).map((X,N)=>{let v=t==="sm"?"gap-2":"gap-3";if(S==="timeline"){let M=t==="sm"?"pt-3":"pt-4",A=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 ${M}`,children:[jsxRuntime.jsx(Y,{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 ${v} ${A} rounded-md border border-border-subtle bg-background-surface`,children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-3",children:[jsxRuntime.jsx(Y,{width:"50%",height:16}),jsxRuntime.jsx(Y,{width:"15%",height:12})]}),jsxRuntime.jsx(Y,{width:"85%",height:t==="sm"?14:15}),jsxRuntime.jsx(Y,{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(Y,{width:24,height:24,variant:"circle"}),jsxRuntime.jsx(Y,{width:"50%",height:16})]}),jsxRuntime.jsxs("div",{className:`mt-3 flex flex-col ${v}`,children:[jsxRuntime.jsx(Y,{width:"85%",height:t==="sm"?14:15}),jsxRuntime.jsx(Y,{width:"70%",height:t==="sm"?14:15}),jsxRuntime.jsx(Y,{width:"20%",height:12})]})]},`skeleton-${N}`)})});return jsxRuntime.jsx(Ua.Provider,{value:B,children:jsxRuntime.jsx("div",{ref:L,"data-slot":"feed","data-variant":S,className:tailwindMerge.twMerge("flex flex-col",O,H,r),style:G,...x,children:F})})}if(l)return jsxRuntime.jsx(Ua.Provider,{value:B,children:jsxRuntime.jsx("div",{ref:L,"data-slot":"feed","data-variant":S,className:tailwindMerge.twMerge("flex flex-col",O,H,r),style:G,...x,children:jsxRuntime.jsx("div",{className:"p-4 text-center text-feedback-error-text",children:l})})});if(!n||n.length===0)return jsxRuntime.jsx(Ua.Provider,{value:B,children:jsxRuntime.jsx("div",{ref:L,"data-slot":"feed","data-variant":S,className:tailwindMerge.twMerge("flex flex-col",O,H,r),style:G,...x,children:jsxRuntime.jsx("div",{className:"p-4 text-center text-text-secondary",children:u})})});let q=E?I?.map(F=>({virtualItem:F,item:n[F.index],index:F.index}))||[]:n.map((F,X)=>({item:F,index:X,virtualItem:null}));return jsxRuntime.jsx(Ua.Provider,{value:B,children:jsxRuntime.jsxs("div",{ref:L,"data-slot":"feed","data-variant":S,className:tailwindMerge.twMerge("flex flex-col",O,H,r),style:{...G,position:E?"relative":void 0},...x,children:[E?jsxRuntime.jsxs("div",{style:{height:`${E.getTotalSize()}px`,position:"relative"},children:[q.map(({item:F,index:X,virtualItem:N})=>{if(!F||!N)return null;let v=a(F,X),M=S==="timeline"&&Qe.isValidElement(v)&&nl(v)?Qe.cloneElement(v,{showConnector:X!==n.length-1}):v;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:M},`item-${X}`)}),k&&jsxRuntime.jsx("div",{style:{position:"absolute",top:`${E.getTotalSize()}px`,left:0,width:"100%"},children:y||jsxRuntime.jsx(Ur,{state:"loading-more"})})]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[q.map(({item:F,index:X})=>{let N=a(F,X);if(S==="timeline"&&Qe.isValidElement(N)&&nl(N)){let v=X===n.length-1;return jsxRuntime.jsx("div",{children:Qe.cloneElement(N,{showConnector:!v})},`item-${X}`)}return jsxRuntime.jsx("div",{children:N},`item-${X}`)}),k&&(y||jsxRuntime.jsx(Ur,{state:"loading-more"}))]}),m&&p&&!W&&jsxRuntime.jsx("div",{ref:P,style:E?{position:"absolute",top:`${E.getTotalSize()}px`,left:0,width:"100%",height:1}:{height:1,width:"100%"}})]})})}let Z=Qe.Children.toArray(o),z=Z.map((W,q)=>{if(nl(W)){let F=W.props.showConnector??(S==="timeline"&&q<Z.length-1),X=S==="timeline"&&q>0;return Qe.cloneElement(W,{showConnector:F,showIncomingConnector:X})}if(eN(W)){let F=q===Z.length-1;return Qe.cloneElement(W,{__isLastGroup:F,__isFirstGroup:q===0})}return W});return jsxRuntime.jsx(Ua.Provider,{value:B,children:jsxRuntime.jsx("div",{"data-slot":"feed","data-variant":S,className:tailwindMerge.twMerge("flex flex-col",O,H,r),...x,children:z})})}Tu.displayName="ActivityFeed";function il(e){let{variant:t,size:r}=kg(),{title:o,description:n,actions:a,children:i,className:s,__isLastGroup:l=false,__isFirstGroup:c=false,...d}=e,u=Qe.Children.toArray(i),m=u.map((f,y)=>{if(nl(f)){let b=f.props.showConnector??(t==="timeline"&&!(l&&y===u.length-1));return Qe.cloneElement(f,{showConnector:b,showIncomingConnector:t==="timeline"&&!(c&&y===0)})}return f}),p=t==="timeline"?"pl-[3rem]":r==="sm"?"px-3":"px-4",g=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",g),children:m})]})}il.displayName="ActivityFeedGroup";var Ng={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"},tN={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"},rN={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 sl(e){let{variant:t,size:r}=kg(),{title:o,description:n,timestamp:a,meta:i,media:s,actions:l,visual:c,icon:d,iconWeight:u,tone:m="neutral",surface:p,isHighlighted:g=false,showConnector:f=true,hideIndicator:y=false,interactive:b,className:h,children:x,onKeyDown:C,showIncomingConnector:w,...S}=e,T=c??(d?jsxRuntime.jsx(V,{name:d,weight:u||"fill",className:"h-4 w-4"}):null),R=p??(t==="stacked"?"minimal":"subtle"),P=r==="sm"?"gap-2":"gap-3",E="text-xs text-text-secondary",I=r==="sm"?"text-sm":"text-[15px]",k="text-xs text-text-secondary",D=b??typeof S.onClick=="function",L=q=>{if(!D){C?.(q);return}q.key===" "?q.preventDefault():q.key==="Enter"&&(q.preventDefault(),q.currentTarget.click()),C?.(q);},B=q=>{D&&q.key===" "&&(q.preventDefault(),q.currentTarget.click());},O=D?tailwindMerge.twMerge("group cursor-pointer",rt()):void 0,G=jsxRuntime.jsxs("div",{"data-slot":"connector",className:tailwindMerge.twMerge("relative flex h-full flex-col items-center",R==="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",Ng[m]),children:T}),t==="timeline"&&f&&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=g?tailwindMerge.twMerge(tN[m],R==="minimal"?"rounded-md border border-border-muted":rN[m]):"";if(t==="stacked")return jsxRuntime.jsxs("div",{"data-slot":"item","data-variant":"stacked",role:D?"button":void 0,tabIndex:D?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"}[R],Z,O,D?"transition-colors hover:bg-background-subtle/80":"",h),onKeyDown:L,onKeyUp:B,...S,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",Ng[m]),children:T}),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",P),children:[n&&jsxRuntime.jsx("div",{"data-slot":"description",className:tailwindMerge.twMerge("text-text-secondary",I),children:n}),i&&jsxRuntime.jsx("div",{className:k,children:i}),s&&jsxRuntime.jsx("div",{className:"flex flex-col gap-2 text-sm text-text-secondary",children:s}),x,l&&jsxRuntime.jsx("div",{className:"flex flex-wrap gap-2 pt-1",children:l}),a&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("-mt-1.5",E),children:a})]})]});let z=R==="minimal"?r==="sm"?"py-2":"py-3":r==="sm"?"p-3":"p-4",W={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:D?"button":void 0,tabIndex:D?0:void 0,className:tailwindMerge.twMerge("group relative grid items-start gap-4 grid-cols-[3rem_1fr]",O,h),onKeyDown:L,onKeyUp:B,...S,children:[y?jsxRuntime.jsx("div",{}):G,jsxRuntime.jsxs("div",{"data-slot":"content",className:tailwindMerge.twMerge("min-w-0 flex flex-col",P,z,W[R],Z,D?"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:k,children:i}),s&&jsxRuntime.jsx("div",{className:"flex flex-col gap-2 text-sm text-text-secondary",children:s}),x,l&&jsxRuntime.jsx("div",{className:"flex flex-wrap gap-2 pt-2",children:l})]})]})}sl.displayName="ActivityItem";function cr({isOpen:e,onClose:t,title:r,headerContent:o,titleAlign:n="left",hideCloseIcon:a=false,hasBackArrow:i=false,onBack:s,children:l,primaryAction:c,secondaryAction:d,tertiaryAction:u,footerContent:m,transparentOverlay:p=false,maxWidth:g="600px",minWidth:f="400px",maxHeight:y="85vh",height:b,mobileMaxHeight:h="90vh",mobileHeight:x,contentPadding:C=true,className:w}){let S=nr("(max-width: 767px)"),T=Ws(S&&e===void 0),R=T?.height??null,P=T?.keyboardOffset??0,E=Qe.useRef(null),I=Qe.useCallback(()=>{E.current&&E.current.scrollTop!==0&&(E.current.scrollTop=0);},[]),k=Qe.useRef(null),D=Qe.useRef(null);Qe.useEffect(()=>{let G=D.current;if(!G||!S)return;let Z=null,z=W=>{let q=W.target;q&&["INPUT","TEXTAREA","SELECT"].includes(q.tagName)&&(Z&&clearTimeout(Z),Z=setTimeout(()=>{q.scrollIntoView({block:"nearest",behavior:"smooth"});},320));};return G.addEventListener("focusin",z),()=>{G.removeEventListener("focusin",z),Z&&clearTimeout(Z);}},[S]);let L=Qe.useCallback(()=>{k.current&&k.current.scrollTop!==0&&(k.current.scrollTop=0);},[]);if(e===false)return null;let B=r||o,O=c||d||u||m,H=e!==void 0;return S?H?jsxRuntime.jsx(Ct,{isOpen:e,onClose:t,title:r,headerContent:o,titleAlign:n,hideCloseIcon:a,hasBackArrow:i,onBack:s,primaryAction:c,secondaryAction:d,footerContent:m,transparentOverlay:p,maxHeight:h,height:x,maxWidth:g,contentPadding:C,showHandle:true,animationVariant:"scale",className:w,children:l}):jsxRuntime.jsx($r,{children:jsxRuntime.jsx(kr,{isDismissable:true,transparent:p,style:{paddingBottom:P>0?`${P}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",w),style:{...x?{height:x}:{maxHeight:/\d/.test(h)?R!==null?`min(${h}, ${Math.max(R-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"})}),B&&(i?jsxRuntime.jsx(_t,{title:r,headerContent:o,titleAlign:n,hideCloseIcon:a||!t,hasBackArrow:true,onBack:s,onClose:t||(()=>{})}):jsxRuntime.jsx(_t,{title:r,headerContent:o,titleAlign:n,hideCloseIcon:a||!t,onClose:t||(()=>{})})),jsxRuntime.jsx("div",{ref:D,className:tailwindMerge.twMerge("flex-1 min-h-0 overflow-y-auto overscroll-contain",C?"px-6 py-6":"p-0"),children:l}),O&&jsxRuntime.jsx(tn,{primaryAction:c,secondaryAction:d,tertiaryAction:u,footerContent:m})]})})})}):jsxRuntime.jsx($r,{children:jsxRuntime.jsx(kr,{...H?{isOpen:e,onOpenChange:G=>{!G&&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:g},children:jsxRuntime.jsxs(reactAriaComponents.Dialog,{ref:k,onScroll:L,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",w),style:{minWidth:f,...b?{height:b}:{maxHeight:y}},children:[B&&(i?jsxRuntime.jsx(_t,{title:r,headerContent:o,titleAlign:n,hideCloseIcon:a||!t,hasBackArrow:true,onBack:s,onClose:t||(()=>{})}):jsxRuntime.jsx(_t,{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",C?"px-6 py-6":"p-0"),children:l}),O&&jsxRuntime.jsx(tn,{primaryAction:c,secondaryAction:d,tertiaryAction:u,footerContent:m})]})})})})}function Dg({isOpen:e,onClose:t,title:r,message:o,confirmLabel:n="OK",confirmVariant:a="primary",maxWidth:i="400px",minWidth:s="320px"}){return jsxRuntime.jsx(cr,{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 nn={xs:16,sm:20,md:24,lg:32,xl:40,"2xl":48},Rr=Qe.memo(({name:e,size:t="md",color:r,weight:o="regular",className:n,ariaLabel:a,...i})=>{let s=nN__namespace[e];if(!s)return null;let l=typeof t=="string"?t in nn?nn[t]:nn.md:t,c=tailwindMerge.twMerge("inline-block flex-shrink-0",!r&&"text-current",n);return jsxRuntime.jsx(s,{...i,size:l,color:r,weight:o,className:c,"aria-label":a||`${e} icon`,"data-testid":`icon-${e}`})});Rr.displayName="IconSSR";var aN=Qe.memo(({variant:e="subtle",shape:t="square",containerSize:r,containerClassName:o,size:n="md",className:a,name:i,color:s,weight:l,ariaLabel:c,ref:d,...u})=>{let m=typeof n=="string"?n in nn?nn[n]:nn.md:n,p=r?typeof r=="string"?r in nn?nn[r]:m*1.75:r:m*1.75,g=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:g,style:{width:p,height:p},children:jsxRuntime.jsx(Rr,{...u,name:i,size:n,color:s,weight:l,className:a,ariaLabel:c})})});aN.displayName="IconSSRWithContainer";var Ka=({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 l=r||270,c=l/270*80;return jsxRuntime.jsxs("svg",{width:l,height:c,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 cl=({topItems:e=[],bottomItems:t=[],bottomContent:r,logo:o,showLogo:n=true,linkComponent:a="a",className:i="",mobileMenuId:s="app-mobile-menu",sidebarCollapseId:l="app-sidebar-collapse"})=>{let c=p=>p.length>0&&"items"in p[0],d=p=>c(p)?p:[{id:"default-section",items:p}],u=(p,g,f)=>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))}),g<f-1&&jsxRuntime.jsx("div",{className:"border-b border-border-subtle mx-6 my-2"})]},p.id),m=(p,g=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 f={href:p.href||"#",className:`flex items-center gap-3 transition-all duration-200 hover:bg-background-hover ${g?"pl-8 pr-6 py-1 text-sm":"px-6 py-1"} ${p.isActive?`bg-action-brand/10 text-action-brand ${g?"":"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&&!g&&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",{...f,children:y},p.id):jsxRuntime.jsx(a,{...f,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(Ka,{showWordmark:true,width:120})}),jsxRuntime.jsx("label",{htmlFor:l,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(Rr,{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,g,f)=>u(p,g,f.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 zn(e){return e.id??e.href??e.label}function Eu(e,t,r=[]){for(let o of e){if(o.href===t||o.id===t)return o.children?.length&&o.pushOnSelect!==false?[...r,zn(o)]:r;if(o.children?.length){let n=Eu(o.children,t,[...r,zn(o)]);if(n)return n}}return null}function Og(e,t){let r=[],o=e;for(let n of t){let a=o.find(i=>zn(i)===n);if(!a)break;r.push(a),o=a.children??[];}return r}function sN(e,t,r){let o=t.length>0?[...e,...t]:e,n=[{path:[],items:e,bottomItems:t.length>0?t:void 0}],a=Og(o,r),i=[];for(let s of a){if(!s.children?.length)break;i=[...i,zn(s)],n.push({path:i,parent:s,items:s.children});}return n}var lN=({href:e,...t})=>jsxRuntime.jsx("a",{href:e,...t}),Fg=[];function cN(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 dN(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 uN(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 Ya({items:e,groups:t,bottomItems:r,value:o,defaultStack:n,stack:a,onStackChange:i,onSelect:s,linkComponent:l=lN,renderRow:c,showLogo:d=false,logo:u,header:m,footer:p,mobileMenuId:g,sidebarCollapseId:f,rootLabel:y,sticky:b=true,width:h=260,ariaLabel:x="Navigation",theme:C,animated:w=true,style:S,className:T}){process.env.NODE_ENV!=="production"&&t&&e&&console.warn("[StackNav] Both `items` and `groups` were provided. `groups` takes precedence and `items` is ignored.");let R=Qe__namespace.useMemo(()=>t?cN(t):e??Fg,[t,e]),P=r??Fg,E=Qe__namespace.useMemo(()=>P.length>0?[...R,...P]:R,[R,P]);Qe__namespace.useEffect(()=>{dN(R,P);},[R,P]);let[I,k]=Qe__namespace.useState(()=>a!==void 0?a:n!==void 0?n:o?Eu(E,o)??[]:[]),D=a??I,L=Qe__namespace.useCallback(F=>{a===void 0&&k(F),i?.(F);},[a,i]),B=Qe__namespace.useRef(false);Qe__namespace.useEffect(()=>{if(a!==void 0||!B.current&&(B.current=true,n!==void 0)||!o)return;let F=Eu(E,o);k(X=>{let N=F??[];return gN(X,N)?X:N});},[o,E,a,n]);let O=Qe__namespace.useMemo(()=>sN(R,P,D),[R,P,D]),H=Qe__namespace.useCallback((F,X)=>{F.children?.length&&L([...X,zn(F)]);},[L]),G=Qe__namespace.useCallback(()=>{L(D.slice(0,-1));},[D,L]),Z=Qe__namespace.useCallback((F,X)=>{let N=Og(E,D);if(s?.(X,N),!!X.children?.length){let M=O[O.length-1]?.path??[];H(X,M);}X.href||F.preventDefault();},[E,D,s,H,O]),z=Qe__namespace.useCallback(F=>o?F.href===o||F.id===o:false,[o]),W=b?"sticky top-0 h-[100dvh]":"",q={...h!=null?{width:h}:{},...uN(C),...S};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",w&&"edges-stack-nav--animated",W,T),style:q,children:[d?jsxRuntime.jsxs("div",{className:"edges-stack-nav__logo",children:[jsxRuntime.jsx("div",{className:"relative top-[-1px]",children:u??jsxRuntime.jsx(Ka,{showWordmark:true,width:120})}),f?jsxRuntime.jsx("label",{htmlFor:f,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(Rr,{name:"Sidebar",size:"sm"})}):null,g?jsxRuntime.jsx("label",{htmlFor:g,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:O.map((F,X)=>{let N=F.path.length,v=X===O.length-1,M=X<O.length-1,A=N===0?"__root__":F.path.join("/");return jsxRuntime.jsx(pN,{pane:F,parentPath:F.path.slice(0,-1),depth:N,isTop:v,isAbove:M,rootLabel:y,LinkComponent:l,renderRow:c,isActive:z,onSelect:Z,onBack:G,animated:w},A)})}),p?jsxRuntime.jsx("div",{className:"edges-stack-nav__footer",children:p}):null]})}function pN({pane:e,depth:t,isTop:r,isAbove:o,rootLabel:n,LinkComponent:a,renderRow:i,isActive:s,onSelect:l,onBack:c,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:c,"aria-label":`Back from ${e.parent.label}`,children:[jsxRuntime.jsx(fN,{}),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(Bg,{item:m,LinkComponent:a,renderRow:i,isActive:s(m),onSelect:l},zn(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(Bg,{item:m,LinkComponent:a,renderRow:i,isActive:s(m),onSelect:l},zn(m)))}):null]})}function Bg({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:l=>n(l,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(mN,{}):null]})]});return e.href?jsxRuntime.jsx(t,{href:e.href,"aria-label":e.ariaLabel,className:i,"aria-current":o?"page":void 0,onClick:l=>n(l,e),children:s}):jsxRuntime.jsx("button",{type:"button",className:i,"aria-label":e.ariaLabel,onClick:l=>{n(l,e);},children:s})}function mN(){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 fN(){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 gN(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 Bi=({rightContent:e,centerContent:t,showMobileMenu:r=true,avatar:o,showColorModeSwitcher:n=false,toggleTheme:a,isDarkThemeEnabled:i=false,colorMode:s,actions:l,className:c="",mobileMenuId:d="app-mobile-menu"})=>{let u=()=>{switch(s||(i?"dark":"light")){case "system":return jsxRuntime.jsx(Rr,{name:"Monitor",size:"sm"});case "light":return jsxRuntime.jsx(Rr,{name:"Sun",size:"sm"});case "dark":return jsxRuntime.jsx(Rr,{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 ${c}`,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(Rr,{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()}),l,o&&jsxRuntime.jsx("div",{className:"flex items-center",children:o})]})]})})};function Hg({sideNav:e,stackNav:t,topNav:r,children:o,contentPaddingX:n,contentPaddingY:a,showSidebarBorder:i=true,mainClassName:s,enableJsEnhancements:l=false}){let c="app-mobile-menu",d="app-sidebar-collapse";return Qe.useEffect(()=>{if(!l)return;let u=document.getElementById(d),m=document.getElementById(c),p=document.querySelector("[data-app-shell]"),g=document.getElementById("app-sidebar");if(!u||!p||!g)return;let f=null,y=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?y=true:(f&&(clearTimeout(f),f=null),p.removeAttribute("data-peek"),y=false);};u.addEventListener("change",b);let h=E=>{E.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 C=E=>{let k=E.target.closest("a");k&&k.href&&window.innerWidth<768&&m&&setTimeout(()=>{m.checked=false,document.body.style.overflow="";},100);};g.addEventListener("click",C);let w=16,S=200,T=()=>{f&&(clearTimeout(f),f=null),p.getAttribute("data-peek")!=="true"&&p.setAttribute("data-peek","true");},R=()=>{f&&clearTimeout(f),f=setTimeout(()=>{p.removeAttribute("data-peek"),f=null;},S);},P=E=>{if(window.innerWidth<768||!u.checked)return;let I=g.contains(E.target);if(y&&!I&&(y=false),y)return;E.clientX<=w||I?T():p.getAttribute("data-peek")==="true"&&R();};return document.addEventListener("mousemove",P),()=>{u.removeEventListener("change",b),document.removeEventListener("keydown",h),m&&x&&m.removeEventListener("change",x),g.removeEventListener("click",C),document.removeEventListener("mousemove",P),f&&clearTimeout(f);}},[l,c,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(Bi,{...r,mobileMenuId:c,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:c,className:"sr-only peer/mobile","aria-hidden":"true"}),jsxRuntime.jsx("label",{htmlFor:c,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(Rr,{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(Ya,{...t,mobileMenuId:c,sidebarCollapseId:d,sticky:false,width:null,className:["h-full !border-r-0",t.className].filter(Boolean).join(" ")}):jsxRuntime.jsx(cl,{...e,mobileMenuId:c,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(Bi,{...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. */
@@ -27,8 +27,8 @@
27
27
  z-index: 50;
28
28
  }
29
29
  }
30
- `}})]})}function an(e,t=300){let[r,o]=Qe.useState(e);return Qe.useEffect(()=>{let n=setTimeout(()=>o(e),t);return ()=>clearTimeout(n)},[e,t]),r}function dl(e,t=300){let[r,o]=Qe.useState(false);return Qe.useEffect(()=>{if(e){let n=setTimeout(()=>{o(true);},t);return ()=>clearTimeout(n)}o(false);},[e,t]),r}var NN=({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 dr({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)=>NN({...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 ur(){let[e,t]=Qe__namespace.default.useState(false),r=Qe__namespace.default.useCallback((n,a)=>{t(true),a?.(n);},[]),o=Qe__namespace.default.useCallback((n,a)=>{t(false),a?.(n);},[]);return {isFocused:e,handleFocus:r,handleBlur:o}}var St=Qe__namespace.default.forwardRef(({children:e,className:t},r)=>jsxRuntime.jsx("div",{ref:r,className:tailwindMerge.twMerge("relative w-full",t),children:e}));St.displayName="InputWrapper";function Vi({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 sn(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 Gg(e){return e.isDisabled?"bg-background-muted":e.transparent?"bg-transparent":"bg-background-input"}function TN(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 zt(e){let{isInvalid:t,isDisabled:r,isFocused:o,transparent:n,size:a="md",className:i}=e;return tailwindMerge.twMerge("w-full",sn({isInvalid:t,isDisabled:r,isFocused:o}),Gg({transparent:n,isDisabled:r}),Ue[a].text,Ue[a].height,Ue[a].padding,TN(a),i)}function kN(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",Gg({transparent:a,isDisabled:n}),Ue[t].height,sn({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 l=r||o&&n==="tooltip",c=r||o,d=o&&n==="inline",u=jsxRuntime.jsxs("label",{htmlFor:s,className:tailwindMerge.twMerge(Ue[t].text,"!text-text-label font-semibold flex items-center gap-1",i),children:[e,a&&jsxRuntime.jsx("span",{children:"*"}),l&&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 l&&c?jsxRuntime.jsx(dr,{content:c,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",Ue[e].text,t),children:r})}function he({children:e,size:t="md",className:r}){return jsxRuntime.jsx("div",{role:"alert",className:tailwindMerge.twMerge(Ue[t].text,"text-feedback-error-text",r),children:e})}function pl({size:e="md",isInvalid:t,isDisabled:r,isFocused:o,transparent:n,className:a,...i}){return jsxRuntime.jsx("input",{className:zt({isInvalid:t,isDisabled:r,isFocused:o,transparent:n,size:e,className:a}),...i})}function Wg(e){let{children:t,...r}=e;return jsxRuntime.jsx("div",{...r,className:kN(e),children:typeof t=="function"?t(e):t})}var Vu=Qe.createContext("md");function Xg(){return Qe.useContext(Vu)}function Iu(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 ${Ue[e].text} ${t}`}function DN(){let e=Qe__namespace.default.useCallback((r,o)=>{o?.(r);},[]),t=Qe__namespace.default.useCallback((r,o)=>{o?.(r);},[]);return {handleFocus:e,handleBlur:t}}function zo({label:e,description:t,errorMessage:r,children:o,items:n,renderItem:a,renderSelectedValue:i,size:s="md",selectedKey:l,defaultSelectedKey:c,onSelectionChange:d,placeholder:u,showErrors:m=false,tooltip:p,isRequired:g,transparent:f,reserveErrorSpace:y=false,placement:b="bottom start",shouldFlip:h=true,menuWidth:x="match",descriptionPlacement:C="below",useMobileTray:w=true,...S}){let[T,R]=Qe.useState(null),[P,E]=Qe.useState(null),[I,k]=Qe.useState(false),D=l??T??c,{handleFocus:L,handleBlur:B}=DN(),{isMobile:O}=ar(),H=w&&O,G=Qe__namespace.default.useMemo(()=>!i||!D||!n?null:Array.from(n).find(X=>X.id===D)??null,[i,D,n]),Z=F=>{d&&F!==null&&d(F),d||R(F);},z=Qe.useRef(null),W=Qe.useRef(null),q=()=>{H&&k(!I);};return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(reactAriaComponents.Select,{...S,selectedKey:D,defaultSelectedKey:c,onSelectionChange:Z,placeholder:u,className:Ae(S.className,"group flex w-full flex-col"),ref:z,onOpenChange:F=>{H||(F&&W.current?E(W.current.offsetWidth):F||z.current?.blur());},children:({isDisabled:F,isInvalid:X,isOpen:N})=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(Ye,{size:s,tooltip:p,description:C==="tooltip"||C==="inline"?t:void 0,descriptionPlacement:C,isRequired:g,children:e}),jsxRuntime.jsx(St,{children:jsxRuntime.jsx("div",{ref:W,children:jsxRuntime.jsxs(te,{variant:"unstyled",className:tailwindMerge.twMerge(zt({isInvalid:X||m&&!!r,isDisabled:F,isFocused:H?I:N,transparent:f,size:s}),"flex items-center text-start gap-4 cursor-pointer pl-[var(--control-padding-sm)]"),onFocus:v=>L(v,S.onFocus),onBlur:v=>B(v,S.onBlur),onPress:H?q:void 0,"data-open":H?I:N,children:[i&&G?jsxRuntime.jsx("div",{className:Iu(s),children:i(G)}):H&&D?jsxRuntime.jsx("div",{className:Iu(s),children:n?Array.from(n).find(A=>A.id===D)?.label:String(D)}):jsxRuntime.jsx(reactAriaComponents.SelectValue,{className:Iu(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",(H?I:N)&&"rotate-180")})]})})}),y?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:m?jsxRuntime.jsx(he,{size:s,className:"text-feedback-error-text",children:typeof r=="function"&&S.validationResult?r(S.validationResult):typeof r=="string"?r:null}):t&&C==="below"?jsxRuntime.jsx(Te,{size:s,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:m?jsxRuntime.jsx(he,{size:s,className:"mt-1 text-feedback-error-text",children:typeof r=="function"&&S.validationResult?r(S.validationResult):typeof r=="string"?r:null}):t&&C==="below"?jsxRuntime.jsx(Te,{size:s,className:"mt-1",children:t}):null}),H?null:jsxRuntime.jsx(vt,{className:"bg-background-input shadow-xl border border-border-input/20 backdrop-blur-sm rounded-[var(--control-border-radius)]",style:{width:x==="match"&&P?`${P}px`:void 0,minWidth:x==="auto"&&P?`${P}px`:void 0,maxWidth:x==="auto"?"min(600px, 90vw)":void 0},placement:b,shouldFlip:h,children:jsxRuntime.jsx(Vu.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?v=>jsxRuntime.jsx(pr,{id:v.id,textValue:v.label,children:jsxRuntime.jsx("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap min-w-0 flex-1",children:a(v)})},v.id):o})})})]})}),H&&jsxRuntime.jsx(Ct,{isOpen:I,onClose:()=>k(false),title:e??"Select an option",contentPadding:false,children:jsxRuntime.jsx(Vu.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:D!=null?[D]:[],onSelectionChange:F=>{let X=Array.from(F)[0];X!=null&&(Z(X),k(false));},children:a&&n?F=>jsxRuntime.jsx(pr,{id:F.id,textValue:F.label,children:jsxRuntime.jsx("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap min-w-0 flex-1",children:a(F)})},F.id):o})})})]})}function pr({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",Ue[n].paddingY,Ue[n].text,t)})}var KN=[],YN={sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6",xl:"h-7 w-7"},JN={sm:"pl-8",md:"pl-10",lg:"pl-11",xl:"pl-13"},qg={sm:"py-1",md:"py-2",lg:"py-3",xl:"py-4"},zu=(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 XN(e,t,r){try{let o=e.url.replace("{q}",t),n=new URLSearchParams;e.extraParams&&Object.entries(e.extraParams).forEach(([l,c])=>{n.append(l,c.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 jN(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 gl({label:e,staticItems:t=KN,sections:r,selectedKey:o,defaultSelectedKey:n,onSelectionChange:a,requestConfig:i,defaultFilter:s,placeholder:l,errorMessage:c,description:d,size:u="md",tooltip:m,isRequired:p,isDisabled:g,isInvalid:f,validationResult:y,showErrors:b=true,renderItem:h,renderLeftIcon:x,renderSection:C,autoFocus:w=false,reserveErrorSpace:S=false,hideChevron:T=false,useMobileTray:R=true,className:P}){let E=Qe__namespace.default.useRef(null),I=Qe__namespace.default.useRef(null),[k,D]=Qe__namespace.default.useState(),[L,B]=Qe.useState(()=>zu(o||n,t,r)),[O,H]=Qe.useState(false),[G,Z]=Qe.useState(false),z=an(L),{contains:W}=reactAria.useFilter({sensitivity:"base"}),[q,F]=Qe.useState(),{isMobile:X}=ar(),N=R&&X,v=Ue[u].text,M=reactStately.useAsyncList({async load({signal:pe,filterText:ge=""}){if(!i)return {items:[]};if(!i.url||i.shouldLoad&&!i.shouldLoad(ge))return {items:[]};try{let re;return i.requestType==="GraphQL"?re=await jN(i,ge,pe):re=await XN(i,ge,pe),F(re.error),{items:re.items}}catch(re){return re instanceof Error&&re.name==="AbortError"?{items:[]}:(console.error("Error loading items:",re),F(re instanceof Error?re.message:"Unknown error occurred"),{items:[]})}},initialFilterText:""}),A=i&&z!==""?M:null,J=false,ae=Qe.useRef("");Qe.useEffect(()=>{w&&H(true);},[w]),Qe.useEffect(()=>{let pe=zu(o,t,r);pe!==L&&B(pe);},[o,t,r]),Qe.useEffect(()=>{let pe=()=>{E.current&&D(E.current.offsetWidth);};return pe(),window.addEventListener("resize",pe),()=>window.removeEventListener("resize",pe)},[]),Qe.useEffect(()=>{z===""?ae.current="":A&&z!==ae.current&&(ae.current=z,A.setFilterText(z));},[z,A]),J=dl(!!A?.isLoading,300);let le=Qe__namespace.default.useMemo(()=>{if(!N||!L)return A?A.items:t;let pe=A?A.items:t,ge=s??(i?()=>true:W);return pe.filter(re=>ge(re.name,L))},[N,L,A,t,s,W]),$=pe=>{let ge=zu(pe,t,r);B(ge),a&&a(pe);},ie=pe=>{B(pe);},Ee=()=>{N&&Z(true);};return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(reactAriaComponents.ComboBox,{onSelectionChange:$,selectedKey:o||void 0,defaultSelectedKey:n||void 0,items:A?A.items:r?r.flatMap(pe=>pe.items):t,className:Ae(P,"group flex flex-col w-full"),menuTrigger:N?"manual":i?"input":"focus",allowsEmptyCollection:!!i,isDisabled:g,isInvalid:f||!!c,inputValue:L,onInputChange:ie,autoFocus:w&&!N,defaultFilter:s??(i?()=>true:W),"aria-label":e||l||"Autocomplete",children:pe=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(Ye,{size:u,tooltip:m,isRequired:p,children:e}),jsxRuntime.jsxs(St,{ref:E,children:[x?jsxRuntime.jsx("div",{className:"pointer-events-none absolute left-3 top-[45%] -translate-y-1/2 z-10",children:x(J)}):jsxRuntime.jsx("div",{className:"pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 z-10 flex items-center",children:J?jsxRuntime.jsx(Wr,{size:16,color:"text-text-secondary"}):jsxRuntime.jsx(V,{name:"MagnifyingGlass",className:`${YN[u]} text-text-secondary`})}),jsxRuntime.jsx(reactAriaComponents.Input,{className:zt({isInvalid:f||!!c,isDisabled:g,isFocused:O||(N?G:pe.isOpen),size:u,className:tailwindMerge.twMerge(JN[u],L&&!g||!T&&!L?"pr-10":"pr-3",N&&"cursor-pointer",P)}),placeholder:l,disabled:g,onFocus:ge=>{H(true),N&&(ge.currentTarget.blur(),Ee());},onBlur:()=>{H(false);},onClick:N?Ee:void 0,readOnly:N,"aria-label":e||l||"Autocomplete"}),L&&!g&&jsxRuntime.jsx(Vi,{onClick:()=>{B(""),a?.(null);},size:u}),!T&&!L&&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:g,children:({isPressed:ge})=>jsxRuntime.jsx(V,{name:ge?"CaretUp":"CaretDown",className:"h-4 w-4"})})]}),S?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:b&&q?jsxRuntime.jsx(he,{size:u,className:"text-feedback-error-text",children:q}):b&&typeof c=="string"?jsxRuntime.jsx(he,{size:u,className:"text-feedback-error-text",children:c}):b&&typeof c=="function"&&y?jsxRuntime.jsx(he,{size:u,className:"text-feedback-error-text",children:c(y)}):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&&q&&jsxRuntime.jsx(he,{size:u,className:"text-feedback-error-text mt-1",children:q}),b&&typeof c=="string"&&jsxRuntime.jsx(he,{size:u,className:"text-feedback-error-text mt-1",children:c}),b&&typeof c=="function"&&y&&jsxRuntime.jsx(he,{size:u,className:"text-feedback-error-text mt-1",children:c(y)})]}),!N&&jsxRuntime.jsx(vt,{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:k?`${k}px`:void 0,zIndex:9999},children:jsxRuntime.jsx(reactAriaComponents.ListBox,{"aria-label":e||l||"Suggestions",className:`max-h-[300px] overflow-auto bg-background-input outline-none ${v}`,children:r?r.map(ge=>{let re=ge.items.map(se=>jsxRuntime.jsx(pr,{id:se.id,textValue:se.name,size:u,className:`flex cursor-default items-center gap-2 px-3 ${qg[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(se):se.name},se.id));if(C){let se=C(ge,re);return Qe__namespace.default.isValidElement(se)&&se.type===reactAriaComponents.ListBoxSection?se:jsxRuntime.jsx(reactAriaComponents.ListBoxSection,{children:se},ge.name)}return jsxRuntime.jsxs(reactAriaComponents.ListBoxSection,{children:[jsxRuntime.jsx(reactAriaComponents.Header,{className:"px-3 py-1 text-sm font-bold text-text-secondary",children:ge.name}),re]},ge.name)}):ge=>jsxRuntime.jsx(pr,{id:ge.id,textValue:ge.name,size:u,className:`flex cursor-default items-center gap-2 px-3 ${qg[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(ge):ge.name},ge.id)})})]})}),N&&jsxRuntime.jsx(Ct,{isOpen:G,onClose:()=>Z(false),title:e??l??"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(St,{children:[jsxRuntime.jsx("div",{className:"pointer-events-none absolute left-3 top-[45%] -translate-y-1/2 z-10 flex items-center",children:J?jsxRuntime.jsx(Wr,{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:L,onChange:pe=>ie(pe.target.value),placeholder:l,autoFocus:true,className:zt({isInvalid:false,isDisabled:false,isFocused:true,size:"md",className:"pl-10 pr-10"})}),L&&jsxRuntime.jsx(Vi,{onClick:()=>{B(""),a?.(null);},size:"md"})]})}),jsxRuntime.jsx("div",{className:"flex-1 overflow-auto",children:jsxRuntime.jsx(reactAriaComponents.ListBox,{"aria-label":e||l||"Suggestions",items:le,selectedKeys:o?[o]:[],selectionMode:"single",onSelectionChange:pe=>{let ge=Array.from(pe)[0];ge&&($(ge),Z(false));},className:"bg-background-input outline-none",children:pe=>jsxRuntime.jsx(pr,{id:pe.id,textValue:pe.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(pe):pe.name},pe.id)})})]})})]})}function Ho({src:e,alt:t,firstName:r,lastName:o,fullName:n,onClick:a,size:i="md",shape:s="circle",variant:l="user",className:c,status:d,bordered:u=false,piiEntity:m}){let[p,g]=Qe.useState(false),f=Qe.useCallback(()=>g(true),[]);Qe.useEffect(()=>{g(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"},C={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"},w=s==="circle"?"rounded-full":"rounded-md",S=tailwindMerge.twMerge("relative inline-flex items-center justify-center overflow-hidden transition-opacity outline-none",y[i],w,a&&"cursor-pointer hover:opacity-80",u&&"ring-2 ring-background-surface",c),R=(()=>{if(r||o){let k=r?.[0]||"",D=o?.[0]||"";return (k+D).toUpperCase()}if(n){let k=n.split(" "),D=k[0]?.[0]||"",L=k[k.length-1]?.[0]||"";return D===L?D.toUpperCase():(D+L).toUpperCase()}return ""})(),P=()=>{let k={xs:14,sm:16,md:20,lg:24,xl:32}[i];switch(l){case "team":return jsxRuntime.jsx(lucideReact.Users,{size:k});case "organization":return jsxRuntime.jsx(lucideReact.Building2,{size:k});default:return jsxRuntime.jsx(lucideReact.User,{size:k})}},E=k=>{if(m)return l==="organization"?k?"organization-logo":"initials":k?"avatar":"initials"},I=()=>e&&!p?jsxRuntime.jsx("img",{src:e,alt:t||n||"Avatar",className:"h-full w-full object-cover",onError:f,"data-pii-type":E(true),"data-pii-entity":m}):R?jsxRuntime.jsx("span",{className:"font-semibold","data-pii-type":E(false),"data-pii-entity":m,children:R}):P();return jsxRuntime.jsxs("div",{className:"relative inline-block",children:[jsxRuntime.jsx("div",{"data-avatar":true,className:tailwindMerge.twMerge(S,!e||p?C[l]:""),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",w,b[i],h[i],x[d]),"aria-label":`Status: ${d}`})]})}var rT={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"},oT={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"},nT={pill:"rounded-full",rounded:"rounded-lg",square:"rounded-sm"},aT={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 ft({children:e,variant:t="default",size:r="sm",shape:o="square",dot:n=false,dotPosition:a="left",dotPulse:i=false,title:s,className:l}){let c=n&&jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("rounded-full bg-current opacity-75",aT[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",oT[r],nT[o],rT[t],l),children:[n&&a==="left"&&c,e,n&&a==="right"&&c]})}var ut=({href:e,children:t,className:r="",external:o=false,title:n,variant:a="secondary",onClick:i,asButton:s=false,onPress:l,showArrow:c=false,alwaysUnderlined:d=false,LinkComponent:u,"data-pii-type":m,"data-pii-entity":p})=>{let g={...m&&{"data-pii-type":m},...p&&{"data-pii-entity":p}},f=o?{target:"_blank",rel:"noopener noreferrer"}:{},C=`${`${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}`,w=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[t,c&&jsxRuntime.jsxs("span",{children:["\xA0","\u2192"]})]});return s?jsxRuntime.jsx("button",{type:"button",className:C,onClick:l,title:n,...g,children:w}):u&&e?jsxRuntime.jsx(u,{href:e,className:C,title:n,onClick:i,...f,...g,children:w}):jsxRuntime.jsx("a",{href:e||"#",className:C,...f,...g,title:n,onClick:i,children:w})};var gT={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 hl({variant:e="info",appearance:t="subtle",title:r,children:o,dismissible:n=false,onDismiss:a,primaryAction:i,secondaryAction:s,icon:l,hideIcon:c=false,className:d,testId:u}){let m=gT[e],p=m[t],g=m.icon,f=!!(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:[!c&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-shrink-0",p.iconColor),"aria-hidden":"true",children:l||jsxRuntime.jsx(g,{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:ir(kt("headingSm"),p.titleColor),children:r}),o&&jsxRuntime.jsx("div",{className:ir(kt("bodySm"),r?"mt-1":"",p.bodyColor),children:o})]}),f&&jsxRuntime.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[i&&(i.asLink?jsxRuntime.jsx(ut,{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(te,{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(ut,{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(te,{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,rt()),"aria-label":"Dismiss banner",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"})})]})}function $g({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(hl,{...o,className:a})})})}function Ja(){let[e,t]=Qe.useState({width:0,height:0}),r=Qe.useRef(null),o=Qe.useRef(void 0),n=Qe.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(l=>{for(let c of s){let{width:d,height:u}=c.contentRect;t(m=>m.width!==d||m.height!==u?{width:d,height:u}:m);}});}),r.current.observe(a);},[]);return Qe.useEffect(()=>()=>{o.current&&cancelAnimationFrame(o.current),r.current&&r.current.disconnect();},[]),{ref:n,width:e.width,height:e.height}}function ln({value:e,children:t,className:r,size:o="sm",iconPosition:n="right"}){let[a,i]=Qe.useState(false),c=jsxRuntime.jsx(te,{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(dr,{content:"Copied!",children:c}):c;return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("inline-flex items-center gap-0.5",r),children:[n==="left"&&d,t,n==="right"&&d]})}function xl(e){let{children:t,maxWidth:r=600,className:o,...n}=e,{ref:a,width:i}=Ja(),[s,l]=Qe__namespace.default.useState(false),[c,d]=Qe__namespace.default.useState(false),u=Qe__namespace.default.useRef(false),m=Qe__namespace.default.useMemo(()=>t&&!e.items&&typeof t!="function"?Qe__namespace.default.Children.toArray(t):null,[t,e.items]);if(Qe__namespace.default.useEffect(()=>{m&&m.length>=4&&i>0&&!u.current?(u.current=true,l(i>r),d(true)):(!m||m&&m.length<4)&&d(true);let p=setTimeout(()=>{c||d(true);},100);return ()=>clearTimeout(p)},[i,r,m,c]),m&&s&&m.length>=4){let p=m[0],g=m.slice(1,-2),f=m.slice(-2),y=g.map(b=>{if(Qe__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",c?"opacity-100":"opacity-0",o),children:[p,jsxRuntime.jsx(NT,{items:y}),f]})}return jsxRuntime.jsx(reactAriaComponents.Breadcrumbs,{...n,ref:a,className:tailwindMerge.twMerge("flex gap-2",c?"opacity-100":"opacity-0",o),children:t})}function NT({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(Wa,{items:t,align:"left",size:"sm",children:jsxRuntime.jsx(te,{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 yl(e){let{className:t,children:r,href:o,copyable:n,copyValue:a,...i}=e;return jsxRuntime.jsx(reactAriaComponents.Breadcrumb,{className:Ae(t,"flex items-center gap-2"),...i,children:s=>{let l=s.isCurrent,c=typeof r=="function"?r(s):r;return jsxRuntime.jsx(jsxRuntime.Fragment,{children:l?n?jsxRuntime.jsx(ln,{value:a||(typeof c=="string"?c: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:c})}):jsxRuntime.jsx("span",{className:"max-w-[200px] truncate font-semibold text-text-primary sm:max-w-none",children:c}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(ut,{variant:"muted",href:o,className:"max-w-[150px] truncate sm:max-w-[300px] md:max-w-none",children:c}),jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4 shrink-0 text-text-secondary"})]})})}})}function IT({isSelected:e,isDisabled:t}){let r=[rt,"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 Xa({errorMessage:e,...t}){return jsxRuntime.jsxs(reactAriaComponents.Calendar,{...t,children:[jsxRuntime.jsx(vl,{}),jsxRuntime.jsxs(reactAriaComponents.CalendarGrid,{className:"border-separate [border-spacing:0] [&_td]:p-0 [&_td]:!border-0",children:[jsxRuntime.jsx(Cl,{}),jsxRuntime.jsx(reactAriaComponents.CalendarGridBody,{children:r=>jsxRuntime.jsx(reactAriaComponents.CalendarCell,{date:r,className:({isSelected:o,isDisabled:n})=>`${IT({isSelected:o,isDisabled:n})} border-0`})})]}),e&&jsxRuntime.jsx(reactAriaComponents.Text,{slot:"errorMessage",className:"text-sm text-feedback-error-text",children:e})]})}function vl(){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(te,{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(te,{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 Cl(){return jsxRuntime.jsx(reactAriaComponents.CalendarGridHeader,{children:e=>jsxRuntime.jsx(reactAriaComponents.CalendarHeaderCell,{className:"text-xs font-semibold text-text-secondary",children:e})})}var ib=Qe__namespace.createContext(null);function cn(){let e=Qe__namespace.useContext(ib);if(!e)throw new Error("Carousel components must be used within a CarouselRoot");return e}function sb({page:e,defaultPage:t=0,onPageChange:r,orientation:o="horizontal",loop:n=false,autoplay:a=false,autoplayDelay:i=4e3,allowMouseDrag:s=false,spacing:l="1rem",slidesPerView:c=1,slidesPerMove:d=1,className:u,children:m,...p}){let g=e!==void 0,[f,y]=Qe__namespace.useState(t),b=g?e:f,h=Qe__namespace.useRef(null),[x,C]=Qe__namespace.useState(0),[w,S]=Qe__namespace.useState(typeof a=="boolean"?a:!!a),[T,R]=Qe__namespace.useState(false),P=Qe__namespace.useRef(null),E=Qe__namespace.useRef(null),I=typeof a=="object"&&a!==null&&a.delay?a.delay:i;Qe__namespace.useEffect(()=>{if(h.current){let v=Math.max(1,Math.floor(Number(c)||1)),M=h.current.children;if(M.length===0){C(0);return}let A=Math.ceil(M.length/v);C(A);}},[m,c]);let k=Qe__namespace.useRef(-1);Qe__namespace.useEffect(()=>{if(b!==k.current&&h.current){let v=Array.from(h.current.children);if(v.length===0)return;let M=b*c,A=Math.min(M,v.length-1),J=v[A];J&&typeof J.scrollIntoView=="function"&&(J.scrollIntoView({behavior:"smooth",block:o==="vertical"?"start":"nearest",inline:o==="horizontal"?"start":"nearest"}),k.current=b);}},[b,c,o]);let D=Qe__namespace.useCallback(v=>{let M=v;n?M<0?M=x-1:M>=x&&(M=0):M=Math.max(0,Math.min(v,x-1)),g||y(M),r?.(M);},[g,n,r,x]),L=Qe__namespace.useCallback(()=>{D(b+d);},[b,D,d]),B=Qe__namespace.useCallback(()=>{D(b-d);},[b,D,d]),O=Qe__namespace.useRef(L);Qe__namespace.useEffect(()=>{O.current=L;},[L]);let H=x>0&&(n||b<x-1),G=x>0&&(n||b>0),Z=Qe__namespace.useCallback(()=>{S(v=>!v);},[]);Qe__namespace.useEffect(()=>{if(w&&x>1)return P.current=setInterval(()=>{O.current();},I),()=>{P.current&&(clearInterval(P.current),P.current=null);}},[w,x,I]);let z=Qe__namespace.useCallback(()=>{P.current&&(clearInterval(P.current),P.current=null);},[]),W=Qe__namespace.useCallback(()=>{w&&x>1&&(P.current=setInterval(()=>{O.current();},I));},[w,x,I]),q=Qe__namespace.useCallback(v=>{if(!s)return;R(true);let M="touches"in v&&v.touches&&v.touches.length>0?v.touches[0].clientX:"clientX"in v?v.clientX:0,A="touches"in v&&v.touches&&v.touches.length>0?v.touches[0].clientY:"clientY"in v?v.clientY:0;E.current={x:M,y:A};},[s]),F=Qe__namespace.useCallback(v=>{if(!T||!E.current)return;let M="touches"in v&&v.touches&&v.touches.length>0?v.touches[0].clientX:"clientX"in v?v.clientX:0,A="touches"in v&&v.touches&&v.touches.length>0?v.touches[0].clientY:"clientY"in v?v.clientY:0,J=M-E.current.x,ae=A-E.current.y,le=50;o==="horizontal"&&Math.abs(J)>le?(J>0?B():L(),R(false),E.current=null):o==="vertical"&&Math.abs(ae)>le&&(ae>0?B():L(),R(false),E.current=null);},[T,o,L,B]),X=Qe__namespace.useCallback(()=>{R(false),E.current=null;},[]),N={currentPage:b,totalPages:x,orientation:o,loop:n,spacing:l,slidesPerView:c,goToPage:D,goToNext:L,goToPrev:B,canGoNext:H,canGoPrev:G,isAutoplayActive:w,toggleAutoplay:Z,itemsRef:h,isDragging:T,allowMouseDrag:s,handleDragStart:q,handleDragMove:F,handleDragEnd:X};return jsxRuntime.jsx(ib.Provider,{value:N,children:jsxRuntime.jsx("div",{...p,className:tailwindMerge.twMerge("relative w-full",o==="vertical"?"h-full":"",u),onMouseEnter:z,onMouseLeave:W,children:m})})}function lb({className:e,children:t,...r}){let{itemsRef:o,orientation:n,spacing:a,isDragging:i,allowMouseDrag:s,handleDragStart:l,handleDragMove:c,handleDragEnd:d}=cn();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:l,onMouseMove:c,onMouseUp:d,onMouseLeave:d,onTouchStart:l,onTouchMove:c,onTouchEnd:d,children:t})}function cb({index:e,className:t,children:r,...o}){let{orientation:n,slidesPerView:a}=cn();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 db({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 ub({className:e,children:t,...r}){let{goToPrev:o,canGoPrev:n}=cn();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 pb({className:e,children:t,...r}){let{goToNext:o,canGoNext:n}=cn();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 Xu({index:e,className:t,children:r,...o}){let{currentPage:n,goToPage:a}=cn(),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 mb({className:e,...t}){let{totalPages:r}=cn();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(Xu,{index:n},n))})}function fb({className:e,children:t,...r}){let{isAutoplayActive:o,toggleAutoplay:n}=cn();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 gb({className:e,...t}){let{currentPage:r,totalPages:o}=cn();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 GT="focus:ring-action-primary",WT="bg-action-primary border-action-primary text-[color:var(--color-action-primary-text)] hover:bg-action-primary-hover hover:border-action-primary-hover";function ju(e){return jsxRuntime.jsxs(reactAriaComponents.CheckboxGroup,{...e,className:Ae(e.className,"flex flex-col gap-2"),children:[jsxRuntime.jsx(Ye,{children:e.label}),e.children,e.description&&jsxRuntime.jsx(Te,{children:e.description}),jsxRuntime.jsx(he,{children:typeof e.errorMessage=="function"?void 0:e.errorMessage})]})}function UT({isDisabled:e}){return `relative flex gap-2 items-center group text-sm transition ${e?"text-text-disabled":"text-text-secondary"}`}function KT({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=GT,i="";return r?i="border-border-muted bg-background-muted":t?i="border-feedback-error-border bg-feedback-error-background":e||o?i=WT:i="bg-background-input border-border-input hover:border-border-focus",`${n} ${a} ${i}`}var bb="w-4 h-4 text-current group-disabled:text-text-disabled";function qu({className:e,...t}){return jsxRuntime.jsx("div",{"aria-hidden":"true",className:`${KT(t)} ${e||""}`,children:t.isIndeterminate?jsxRuntime.jsx(lucideReact.Minus,{"aria-hidden":true,className:bb}):t.isSelected?jsxRuntime.jsx(lucideReact.Check,{"aria-hidden":true,className:bb}):null})}function eo(e){let{children:t,variant:r,...o}=e;return jsxRuntime.jsx(reactAriaComponents.Checkbox,{...o,className:reactAriaComponents.composeRenderProps(e.className,(n,a)=>`${UT(a)} ${n||""}`),children:n=>{let{isSelected:a,isIndeterminate:i,isDisabled:s,isInvalid:l}=n;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(qu,{isSelected:a,isIndeterminate:i,isDisabled:s,isInvalid:l}),typeof t=="function"?t(n):t]})}})}var XT={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 xb(e){return !e||e==="default"?"secondary":e==="brand"?"primary":e}var jT={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"},qT="opacity-75 cursor-not-allowed pointer-events-none";function yb(e){let{variant:t,size:r,isDisabled:o,isClickable:n,className:a}=e,i=r==="xs"?"text-xs":Ue[r].text;return tailwindMerge.twMerge("inline-flex items-center justify-center rounded-full font-medium transition-colors","whitespace-nowrap select-none",jT[r],i,XT[t],n&&!o&&"cursor-pointer",o&&qT,a)}function Yr({children:e,onRemove:t,removeLabel:r="Remove",size:o="md",variant:n="secondary",isRemovable:a=true,isDisabled:i=false,className:s,onClick:l}){let c=!!l&&!i,d=a&&t&&!i,u=y=>{y.stopPropagation(),y.preventDefault(),t&&!i&&t();},m=()=>{l&&!i&&l();},p=o==="xs"?10:o==="sm"?12:o==="md"?14:16,f=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("span",{className:"truncate",children:e}),d?c?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 c?jsxRuntime.jsx("button",{type:"button",onClick:m,className:yb({variant:xb(n),size:o,isDisabled:i,isClickable:c,className:s}),disabled:i,children:f}):jsxRuntime.jsx("span",{className:yb({variant:xb(n),size:o,isDisabled:i,isClickable:c,className:s}),children:f})}function Sb({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a=false,isDisabled:i=false,isInvalid:s=false,validationResult:l,placeholder:c="Add items...",selectedItems:d=[],onItemsChange:u,staticItems:m,fetchSuggestions:p,chipVariant:g="secondary",showErrors:f=true,className:y}){let[b,h]=Qe.useState(""),[x,C]=Qe.useState([]),[w,S]=Qe.useState(false),[T,R]=Qe.useState(false),[P,E]=Qe.useState(-1),I=an(b,300),k=Qe.useRef(null),D=Qe.useRef(null),{isFocused:L,handleFocus:B,handleBlur:O}=ur(),H=Qe.useId(),G=Qe.useCallback(N=>{if(!u||!N.trim())return;let v=N.trim();if(d.includes(v)){h(""),R(false),C([]),E(-1);return}u([...d,v]),h(""),R(false),C([]),E(-1),k.current?.focus();},[d,u]),Z=Qe.useCallback(N=>{u&&u(d.filter(v=>v!==N));},[d,u]);Qe.useEffect(()=>{if(!p)return;let N=true;return (async()=>{let M=I.trim();if(!M){N&&(S(false),C([]),R(false));return}S(true);try{let A=await p(M);if(!N)return;C(A),R(!0);}catch(A){if(!N)return;console.error("Error fetching suggestions:",A),C([]),R(false);}finally{N&&S(false);}})(),()=>{N=false;}},[I,p]),Qe.useEffect(()=>{if(p||!m)return;if(!I.trim()){C([]),R(false);return}let N=m.filter(v=>v.name.toLowerCase().includes(I.toLowerCase())).map(v=>v.id);C(N),R(N.length>0||I.trim().length>0);},[I,m,p]);let z=Qe.useMemo(()=>{let N=x.filter(v=>!d.includes(v));return b.trim()&&!N.includes(b.trim())&&!d.includes(b.trim())?[...N,`Create tag: "${b.trim()}"`]:N},[x,b,d]),W=Qe.useCallback(N=>{h(N.target.value),E(-1),N.target.value&&R(true);},[]),q=Qe.useCallback(N=>{i||(N.startsWith("Create tag:")?G(b):G(N));},[G,b,i]),F=Qe.useCallback(N=>{if(!i)switch(N.key){case "Enter":case ",":if(N.preventDefault(),P>=0&&P<z.length){let v=z[P];v.startsWith("Create tag:")?G(b):G(v);}else b.trim()&&G(b.trim());break;case "Backspace":!b&&d.length>0&&(N.preventDefault(),Z(d[d.length-1]));break;case "ArrowDown":N.preventDefault(),T&&E(v=>v<z.length-1?v+1:v);break;case "ArrowUp":N.preventDefault(),T&&E(v=>v>0?v-1:-1);break;case "Escape":R(false),E(-1);break}},[i,b,d,z,P,T,G,Z]);Qe.useEffect(()=>{let N=v=>{D.current&&v.target instanceof Node&&!D.current.contains(v.target)&&R(false);};return document.addEventListener("mousedown",N),()=>document.removeEventListener("mousedown",N)},[]);let X=()=>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]",sn({isInvalid:s,isDisabled:i,isFocused:L}),"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:D,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(St,{children:jsxRuntime.jsxs("div",{className:X(),onClick:()=>!i&&k.current?.focus(),children:[d.map(N=>jsxRuntime.jsx(Yr,{variant:g,size:"xs",onRemove:()=>Z(N),isDisabled:i,className:"shrink-0 max-h-full",children:N},N)),jsxRuntime.jsx("input",{ref:k,type:"text",role:"combobox","aria-expanded":T,"aria-haspopup":"listbox","aria-controls":H,"aria-autocomplete":"list",value:b,onChange:W,onKeyDown:F,onFocus:N=>B(N),onBlur:N=>O(N),placeholder:d.length===0?c:"",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"}})]})}),T&&(b||z.length>0)&&jsxRuntime.jsx("div",{id:H,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:w?jsxRuntime.jsx("div",{className:"px-3 py-2 text-sm text-text-secondary",children:"Loading..."}):z.length>0?z.map((N,v)=>jsxRuntime.jsx("div",{role:"option","aria-selected":v===P,className:tailwindMerge.twMerge("cursor-pointer px-3 py-2 text-sm transition-colors","hover:bg-background-hover",v===P&&"bg-background-selected",N.startsWith("Create tag:")&&"italic text-text-secondary"),onClick:()=>q(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}),f&&typeof r=="string"&&jsxRuntime.jsx(he,{size:o,className:"text-feedback-error-text mt-1",children:r}),f&&typeof r=="function"&&l&&jsxRuntime.jsx(he,{size:o,className:"text-feedback-error-text mt-1",children:r(l)})]})}var ak={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')},ik={github:()=>import('ace-builds/src-noconflict/theme-github'),github_dark:()=>import('ace-builds/src-noconflict/theme-github_dark')},sk={"ext-language-tools":()=>import('ace-builds/src-noconflict/ext-language_tools')},Gi=new Set;async function Zu(e,t){Gi.has(e)||(await t(),Gi.add(e));}async function lk(e,t,r){await Promise.all([Zu(`language:${e}`,ak[e]),Zu(`theme:${t}`,ik[t]),r?Zu("extension:language-tools",sk["ext-language-tools"]):void 0]);}function Nb(e,t,r){let o=Gi.has(`language:${e}`)&&Gi.has(`theme:${t}`);return r?o&&Gi.has("extension:language-tools"):o}function Tb({value:e,readOnly:t=false,onChange:r,language:o="json",theme:n="github_dark",height:a,width:i="100%",className:s,lineHeight:l=19,minLines:c=3,maxLines:d=50,showLineNumbers:u=true,showGutter:m=true,fontSize:p=14,wrapEnabled:g=false}){let f=Qe.useRef(null),[y,b]=Qe.useState(()=>Nb(o,n,!t)),h=Qe.useMemo(()=>{if(a)return a;let x=(e.match(/\n/g)||[]).length+1;return `${Math.max(c,Math.min(x,d))*l+10}px`},[e,a,l,c,d]);return Qe.useEffect(()=>{let x=false,C=!t;return Nb(o,n,C)?(b(true),()=>{x=true;}):(b(false),lk(o,n,C).then(()=>{x||b(true);}).catch(w=>{x||b(true),console.error("Failed to load Ace editor resources",w);}),()=>{x=true;})},[o,t,n]),Qe.useEffect(()=>{y&&f.current?.editor&&f.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(ok__default.default,{ref:f,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:g},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 Pb=Qe__namespace.createContext({variant:"contained",density:"comfortable",showDividers:true}),Rb=Qe__namespace.createContext(null),mk={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"},kb={true:"divide-y divide-border-default",false:"gap-3"},fk={comfortable:"px-5 py-3",compact:"px-4 py-2.5"},gk={comfortable:"px-5 pt-0",compact:"px-4 pt-0"},bk={comfortable:"h-4 w-4",compact:"h-3.5 w-3.5"};function tp(){return Qe__namespace.useContext(Pb)}function hk(e){let t=Qe__namespace.useContext(Rb);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 yk({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",l=t&&!e?"bg-background-hover":"",c=fk[r];return tailwindMerge.twMerge(i,rt(),c,s,l,o==="plain"&&n?"px-0":"",a)}function vk({density:e,showDividers:t,className:r}){let o="text-text-primary",n=gk[e];return tailwindMerge.twMerge(o,n,t?"":"rounded-b-lg",r)}function ja({variant:e="contained",density:t="comfortable",showDividers:r=true,className:o,...n}){let a=Qe__namespace.useMemo(()=>({variant:e,density:t,showDividers:r}),[e,t,r]),i=tailwindMerge.twMerge("flex w-full flex-col",mk[e],r?kb.true:kb.false,e==="plain"&&r?"border-y border-border-default/60":"");return jsxRuntime.jsx(Pb.Provider,{value:a,children:jsxRuntime.jsx(reactAriaComponents.DisclosureGroup,{...n,className:Ae(o,i)})})}function pn({className:e,children:t,...r}){let{variant:o,showDividers:n}=tp();return jsxRuntime.jsx(reactAriaComponents.Disclosure,{...r,className:reactAriaComponents.composeRenderProps(e,a=>xk({variant:o,showDividers:n,className:a})),children:a=>jsxRuntime.jsx(Rb.Provider,{value:a,children:t})})}pn.displayName="CollapseItem";function mn({title:e,description:t,startContent:r,endContent:o,indicator:n,indicatorPosition:a="end",showIndicator:i=true,keepIndicatorSpace:s=false,children:l,className:c,...d}){let u=hk("CollapseHeader"),{density:m,variant:p,showDividers:g}=tp(),f=bk[m];return jsxRuntime.jsx(reactAriaComponents.Button,{...d,slot:"trigger","data-expanded":u.isExpanded?"true":void 0,className:reactAriaComponents.composeRenderProps(c,(y,b)=>yk({isDisabled:b.isDisabled??false,isPressed:b.isPressed??false,density:m,variant:p,showDividers:g,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",f),"aria-hidden":"true",children:h}):s?jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("flex flex-shrink-0 items-center justify-center",f),"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:[l??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]})}})}mn.displayName="CollapseHeader";function fn({className:e,children:t,...r}){let{density:o,showDividers:n}=tp();return jsxRuntime.jsx(reactAriaComponents.DisclosurePanel,{...r,className:reactAriaComponents.composeRenderProps(e,a=>vk({density:o,showDividers:n,className:a})),children:jsxRuntime.jsx(rn,{children:t})})}fn.displayName="CollapseContent";function qa(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 op(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 Nk({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,transparent:i,className:s,validationResult:l,value:c,defaultValue:d,onChange:u,placeholder:m="#000000",showColorSwatch:p=true,reserveErrorSpace:g=true,...f}){let[y,b]=Qe.useState(d||""),[h,x]=Qe.useState(c||d||""),[C,w]=Qe.useState(false),[S,T]=Qe.useState(null),{isFocused:R,handleFocus:P,handleBlur:E}=ur(),I=c!==void 0?c:y;Qe.useEffect(()=>{c!==void 0&&x(c);},[c]);let k=I?!qa(I):false,D=Qe.useCallback(O=>{if(x(O),qa(O)){let H=op(O);u?u(H):b(H);}else O===""&&(u?u(""):b(""));},[u]),L=Qe.useCallback(O=>{let H=op(O);x(H),u?u(H):b(H);},[u]),B=Qe.useCallback(O=>{if(qa(h)){let H=op(h);x(H),u&&H!==I?u(H):!u&&H!==y&&b(H);}E(O,f.onBlur);},[h,I,y,u,E,f.onBlur]);return jsxRuntime.jsx(reactAriaComponents.TextField,{...f,isRequired:a,className:Ae(s,"group flex flex-col"),children:({isDisabled:O})=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(Ye,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(St,{children:jsxRuntime.jsxs("div",{className:"flex gap-2",children:[jsxRuntime.jsxs("div",{className:"flex-1 relative",children:[jsxRuntime.jsx(pl,{size:o,disabled:O,type:"text",value:h,placeholder:m,onFocus:H=>P(H,f.onFocus),onBlur:B,onChange:H=>D(H.target.value),className:tailwindMerge.twMerge(zt({isInvalid:k,isDisabled:O,isFocused:R,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:Ue[o].height},children:jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-6 h-6 rounded border shadow-sm",qa(I)?"border-border-default":"border-border-default bg-background-muted"),style:qa(I)?{backgroundColor:I}:void 0,"aria-hidden":"true",children:!qa(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:T,children:jsxRuntime.jsx(te,{variant:"secondary",size:o,icon:"Palette",onPress:()=>w(!C),isDisabled:O,className:"flex-shrink-0",children:"Pick"})})]})}),g?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(he,{size:o,children:r}):typeof r=="function"&&l?jsxRuntime.jsx(he,{size:o,children:r(l)}):t?jsxRuntime.jsx(Te,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(he,{size:o,className:"mt-1",children:r}):typeof r=="function"&&l?jsxRuntime.jsx(he,{size:o,className:"mt-1",children:r(l)}):t?jsxRuntime.jsx(Te,{size:o,className:"mt-1",children:t}):null}),C&&S&&jsxRuntime.jsx(vt,{triggerRef:{current:S},isOpen:C,onOpenChange:w,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:L,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 Lb({isOpen:e,onClose:t,onConfirm:r,title:o,message:n,confirmLabel:a="Confirm",cancelLabel:i="Cancel",confirmVariant:s,isDestructive:l=false,isLoading:c=false,maxWidth:d="500px",minWidth:u="400px"}){return jsxRuntime.jsx(cr,{isOpen:e,onClose:t,title:o,maxWidth:d,minWidth:u,primaryAction:{label:a,onPress:()=>{r();},variant:s??(l?"destructive":"primary"),isLoading:c},secondaryAction:{label:i,onPress:t,variant:"secondary",isDisabled:c},children:jsxRuntime.jsx("div",{className:"text-text-primary",children:n})})}function Db({isConnected:e,connectedAt:t,disconnectedAt:r,showTimestamp:o=false,isLoading:n,size:a="sm",shape:i="pill",...s}){if(n)return jsxRuntime.jsx(Y,{className:"inline-flex h-6 w-24"});let l=e?"Connected":"Disconnected",c=e?"success":"neutral",d=null;if(o){if(e&&t)d=Xs(t);else if(!e&&r){let u=Xs(r);d=u?`Offline ${u}`:null;}}return jsxRuntime.jsxs("div",{className:"inline-flex flex-col gap-1",children:[jsxRuntime.jsx(ft,{variant:c,size:a,shape:i,dot:e,dotPulse:e,...s,children:l}),d&&jsxRuntime.jsx("span",{className:"text-xs text-text-secondary",children:d})]})}function Ab({firstName:e,lastName:t,email:r,phone:o,avatarUrl:n,href:a,LinkComponent:i,variant:s="outlined",layout:l="horizontal",showEmail:c=true,showPhone:d=false,isLoading:u=false,className:m,contentClassName:p,piiEntity:g}){let f=`${e} ${t}`.trim(),y=({children:h,className:x})=>a?i?jsxRuntime.jsx(i,{href:a,className:x,children:h}):jsxRuntime.jsx(ut,{href:a,variant:"unstyled",className:tailwindMerge.twMerge("hover:underline",x),asButton:false,children:h}):jsxRuntime.jsx("span",{className:x,children:h}),b=l==="vertical";return u?jsxRuntime.jsx(_e,{variant:s,className:tailwindMerge.twMerge("flex flex-col",m),children:jsxRuntime.jsx(_e.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(Y,{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(Y,{width:"70%",height:20,className:tailwindMerge.twMerge(b&&"mx-auto")}),jsxRuntime.jsx(Y,{width:"100%",height:16,className:tailwindMerge.twMerge(b&&"mx-auto")})]})]})})}):jsxRuntime.jsx(_e,{variant:s,className:tailwindMerge.twMerge("group/card flex flex-col",m),children:jsxRuntime.jsx(_e.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(Ho,{firstName:e,lastName:t,src:n,size:"xl",variant:"user",shape:"square",className:"flex-shrink-0",piiEntity:g}),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:f})}),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":g?"full-name":void 0,"data-pii-entity":g,children:f}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("space-y-0.5",b&&"flex flex-col items-center"),children:[c&&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(ut,{href:`mailto:${r}`,variant:"unstyled",className:tailwindMerge.twMerge("text-sm leading-relaxed text-text-primary relative z-20",b?"":"truncate"),"data-pii-type":g?"email":void 0,"data-pii-entity":g,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(ut,{href:`tel:${o}`,variant:"unstyled",className:tailwindMerge.twMerge("text-sm leading-relaxed text-text-primary relative z-20",b?"":"truncate"),"data-pii-type":g?"phone":void 0,"data-pii-entity":g,children:Ia(o)})]})]})]})]})})})}function Nl({firstName:e,lastName:t,email:r,avatarUrl:o,layout:n="stacked",size:a="md",href:i,LinkComponent:s,linkVariant:l="unstyled",emphasis:c="normal",showEmail:d=false,badge:u,avatarShape:m,isLoading:p=false,className:g,piiEntity:f}){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(),w={strong:"font-semibold text-text-primary",high:"font-semibold text-text-primary",normal:"text-text-primary",low:"text-text-secondary"}[c],S=({children:T,className:R})=>i?s?jsxRuntime.jsx(s,{href:i,className:R,children:T}):jsxRuntime.jsx(ut,{href:i,variant:l,className:tailwindMerge.twMerge("hover:underline",R),asButton:false,children:T}):jsxRuntime.jsx("span",{className:R,children:T});return p?n==="inline"?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",h.gap,g),children:[jsxRuntime.jsx(Y,{width:h.skeletonAvatar,height:h.skeletonAvatar,className:"flex-shrink-0 rounded-full"}),jsxRuntime.jsx(Y,{width:h.skeletonText,height:h.skeletonAvatar*.5})]}):jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",h.gap,g),children:[jsxRuntime.jsx(Y,{width:h.skeletonAvatar,height:h.skeletonAvatar,className:"flex-shrink-0 rounded-full"}),jsxRuntime.jsxs("div",{className:"flex flex-col gap-1",children:[jsxRuntime.jsx(Y,{width:h.skeletonText,height:16}),d&&jsxRuntime.jsx(Y,{width:h.skeletonSecondary,height:12})]})]}):n==="inline"?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",h.gap,g),children:[jsxRuntime.jsxs(S,{className:tailwindMerge.twMerge("flex items-center",h.gap),children:[jsxRuntime.jsx(Ho,{firstName:e,lastName:t,src:o,size:h.avatarSize,variant:"user",shape:y,className:"flex-shrink-0",piiEntity:f}),jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("leading-normal truncate hover:text-text-primary",w,h.textSize,i&&"hover:underline hover:decoration-1 hover:underline-offset-4"),"data-pii-type":f?"full-name":void 0,"data-pii-entity":f,children:x})]}),u]}):jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center justify-start",h.gap,g),children:[jsxRuntime.jsx(Ho,{firstName:e,lastName:t,src:o,size:h.avatarSize,variant:"user",shape:y,className:"flex-shrink-0",piiEntity:f}),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(S,{className:tailwindMerge.twMerge("leading-normal truncate hover:text-text-primary",w,h.textSize,i&&"hover:underline hover:decoration-1 hover:underline-offset-4"),children:jsxRuntime.jsx("span",{"data-pii-type":f?"full-name":void 0,"data-pii-entity":f,children:x})}),u]}),d&&r&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-text-secondary leading-normal truncate",h.secondaryTextSize),"data-pii-type":f?"email":void 0,"data-pii-entity":f,children:r})]})]})}var ap=Qe.createContext(null);function Ib(e){let t=Qe.useContext(ap),r=Qe.useRef(null),o=e??r,[n,a]=Qe.useState(()=>t||{current:"xl",isSm:true,isMd:true,isLg:true,isXl:true,is2Xl:false,isMobile:false,isDesktop:true});return Qe.useEffect(()=>{if(t){a(t);return}let i=o.current;if(!i||typeof ResizeObserver>"u")return;let s=()=>{let c=i.offsetWidth,d=c>=640,u=c>=768,m=c>=1024,p=c>=1280,g=c>=1536,f="base";g?f="2xl":p?f="xl":m?f="lg":u?f="md":d&&(f="sm"),a({current:f,isSm:d,isMd:u,isLg:m,isXl:p,is2Xl:g,isMobile:!u,isDesktop:u});};s();let l=new ResizeObserver(s);return l.observe(i),()=>l.disconnect()},[t,o]),n}function Bb({children:e,className:t}){let r=Qe.useRef(null),[o,n]=Qe.useState({current:"base",isSm:false,isMd:false,isLg:false,isXl:false,is2Xl:false,isMobile:true,isDesktop:false});return Qe.useEffect(()=>{let a=r.current;if(!a||typeof ResizeObserver>"u")return;let i=()=>{let l=a.offsetWidth,c=l>=640,d=l>=768,u=l>=1024,m=l>=1280,p=l>=1536,g="base";p?g="2xl":m?g="xl":u?g="lg":d?g="md":c&&(g="sm"),n({current:g,isSm:c,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(ap.Provider,{value:o,children:jsxRuntime.jsx("div",{ref:r,className:t,style:{width:"100%"},children:e})})}var Tl={duration:.5,ease:"easeInOut"},Jr=Qe.createContext(null);function kl(){let e=Qe.useRef({played:false});return Qe.useEffect(()=>{e.current.played=true;},[]),e.current}var Xn=()=>{let e=Qe.useContext(Jr);if(!e)throw new Error("useChartContext must be used within a ChartContextProvider");return e};function Pl(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 bn=({data:e,color:t="var(--color-viz-default)",baseline:r,fillOpacity:o=.1,showLine:n=true,maxGapMs:a,animate:i=true})=>{let s=Qe.useId(),l=Qe.useId(),{xScale:c,yScale:d,animationSettings:u,entrance:m}=Xn(),[p]=Qe__namespace.default.useState(()=>m?.played!==true),g=i&&p,f=c.range(),y=d.range(),b=(T,R)=>typeof r=="function"?r(T,R):r??0,h=T=>T.chartYValue??T.yValue,x=a!=null?Pl(e,a):e,C=i?void 0:"non-scaling-stroke",w={transformOrigin:`0 ${y[0]}px`,transformBox:"fill-box",isolation:"isolate"},S=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[r===void 0?jsxRuntime.jsx(shape.AreaClosed,{data:x,x:T=>T?c(T.xValue):0,y:T=>T?d(h(T)):0,yScale:d,defined:T=>T!=null,fill:`url(#${s})`,curve:curve.curveLinear}):jsxRuntime.jsx(shape.Area,{data:x,x:T=>T?c(T.xValue):0,y0:(T,R)=>T?d(b(T,R)):0,y1:T=>T?d(h(T)):0,defined:T=>T!=null,fill:t,fillOpacity:o,curve:curve.curveLinear}),n?jsxRuntime.jsx(shape.LinePath,{data:x,x:T=>T?c(T.xValue):0,y:T=>T?d(h(T)):0,defined:T=>T!=null,stroke:t,strokeWidth:3,vectorEffect:C,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})]}),g&&jsxRuntime.jsx("clipPath",{id:l,children:jsxRuntime.jsx("rect",{x:f[0],y:y[1],width:f[1]-f[0],height:y[0]-y[1]})})]}),g?jsxRuntime.jsx("g",{clipPath:`url(#${l})`,children:jsxRuntime.jsx(framerMotion.motion.g,{initial:{scaleY:0},animate:{scaleY:1},transition:{duration:u.duration,ease:u.ease},style:w,children:S})}):jsxRuntime.jsx("g",{style:w,children:S})]})};var El=({data:e,color:t="var(--color-viz-default)",opacity:r=1,categoryColors:o={}})=>{let{xScale:n,yScale:a,animationSettings:i}=Xn(),s=Qe.useId(),l=n.range(),c=a.range(),d=[...e].sort((p,g)=>p.xValue.getTime()-g.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:l[0],y:c[1],width:l[1]-l[0],height:c[0]-c[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,g)=>{let f=n(p.xValue),y=p.chartYValue??p.yValue,b=p.baselineValue??0,h=a(y),x=a(b),C=Math.min(h,x),w=Math.abs(h-x),S=d[g+1],T=S?Math.abs(n(S.xValue)-f):m,R=p.category&&o[p.category]?o[p.category]:t;return jsxRuntime.jsx(shape.Bar,{x:f-T/2,y:C,width:T,height:w,fill:R,opacity:r,rx:1},p.xValue.getTime())})})})]})};function qk(e,t){return e.length*(t*.6)}var jn;function Qk(){if(jn!==void 0)return jn;if(typeof window>"u"||typeof document>"u")return jn=null,jn;try{jn=document.createElement("canvas").getContext("2d");}catch{jn=null;}return jn}function Ml(e,t=12,r="system-ui"){let o=Qk();return o?(o.font=`${t}px ${r}`,o.measureText(e).width):qk(e,t)}function hn(e,t=12,r="system-ui"){return e.length===0?0:Math.max(...e.map(o=>Ml(o,t,r)))}function zb(e,t,r=12,o="system-ui"){if(t<=0)return "";if(Ml(e,r,o)<=t)return e;let n="\u2026";if(Ml(n,r,o)>t)return "";let a=0,i=e.length;for(;a<i;){let s=Math.ceil((a+i)/2);Ml(e.slice(0,s)+n,r,o)<=t?a=s:i=s-1;}return e.slice(0,a)+n}function tP(e){return e>=1e9?"GW":e>=1e6?"MW":e>=1e3?"kW":"W"}function rP(e){return e>=1e3?"kA":e<1?"mA":"A"}function oP(e){return e>=1e3?"kV":e<1?"mV":"V"}function nP(e){return e>=1e6?"M\u03A9":e>=1e3?"k\u03A9":e<1?"m\u03A9":"\u03A9"}function Za(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?qd[e.sourceUnit]:1;return {...e,unit:jd(t*r)}}case "power":return e.unit||e.autoScale===false?e:{...e,unit:tP(t)};case "current":return e.unit||e.autoScale===false?e:{...e,unit:rP(t)};case "voltage":return e.unit||e.autoScale===false?e:{...e,unit:oP(t)};case "resistance":return e.unit||e.autoScale===false?e:{...e,unit:nP(t)};default:return e}}var aP=e=>e.baselineValue??0,Ge={top:8,right:0,bottom:50,left:60};function Dr(e={type:"number"}){let t=i=>{if(i==null)return "-";let s=fo({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 l=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(l).join(""):l(u.children)}return ""};return l(s)||i.toString()}return i.toString()},r=i=>{if(i==null)return "-";if(typeof e=="string"){let s=fo({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 sp=(e,t)=>{let r=d3Array.extent(e,o=>o.xValue);return scale.scaleTime({range:[Ge.left,t-Ge.right],domain:r,nice:true})},Ui=(e,t,r,o)=>{let n=Dr(r);if(o)return scale.scaleLinear({range:[t-Ge.bottom,Ge.top],domain:o,nice:true});let a=d3Array.min(e,c=>Math.min(c.yValue,c.chartYValue??c.yValue,c.baselineValue??c.yValue))||0,i=d3Array.max(e,c=>Math.max(c.yValue,c.chartYValue??c.yValue,c.baselineValue??c.yValue))||0,s=n.min!==void 0?n.min:a>=0?0:a*1.1,l=n.max!==void 0?n.max:i<=0?0:i*1.1;return scale.scaleLinear({range:[t-Ge.bottom,Ge.top],domain:[s,l],nice:true})};function Ki(e){return e instanceof Date&&!Number.isNaN(e.getTime())}var Yi=12;function iP(e,t,r=12,o=false){if(!Ki(t[0])||!Ki(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=lu({start:t[0],end:t[1]},{compact:o}),c=[t[0],new Date((t[0].getTime()+t[1].getTime())/2),t[1]].map(h=>s(h)),d=hn(c,r),m=d+d,p=Math.floor(e/m),g=Math.max(2,Math.min(8,p));if(g<=2)return [t[0],t[1]];let f=[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<g-1;h++){let x=h/(g-1),C=n+i*x,w=Math.round(C/b)*b,S=f[f.length-1].getTime(),T=w>S?w:S+b;if(T>=a)break;f.push(new Date(T));}return f.push(t[1]),f}var sP=({top:e,scale:t,width:r})=>{let o=t.domain(),n=[o[0],o[o.length-1]],a=Ki(n[0])&&Ki(n[1]),i=r<400,s=a?n[0].getTime():0,l=a?n[1].getTime():0,c=Qe.useMemo(()=>a?lu({start:n[0],end:n[1]},{compact:i}):()=>"",[s,l,i,a]),d=Qe.useMemo(()=>iP(r,n,12,i),[r,s,l,i]);return d.length===0?null:jsxRuntime.jsx(axis.Axis,{orientation:"bottom",top:e,scale:t,tickValues:d,tickFormat:u=>{let m=u;return Ki(m)?c(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 _a(e,t=12){let r=t*2.5,o=Math.floor(e/r);return Math.max(2,Math.min(6,o))}var lp=12,lP=({left:e,scale:t,yFormatter:r,height:o})=>{let n=Dr(r),a=Qe.useMemo(()=>!o||o<=0?5:_a(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:lp,textAnchor:"end"},l=t(i),[c,d]=t.range(),u=Math.min(c,d),m=Math.max(c,d);return l-u<lp/2?{...s,verticalAnchor:"start"}:m-l<lp/2?{...s,verticalAnchor:"end"}:{...s,dy:"0.33em"}}})},cP=({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"})}),dP=({left:e,scale:t,availableWidth:r})=>jsxRuntime.jsx(axis.Axis,{orientation:"left",left:e,scale:t,stroke:"var(--color-border-muted)",tickStroke:"var(--color-border-muted)",tickFormat:r===void 0?void 0:o=>zb(String(o),r,Yi),tickLabelProps:()=>({fill:"var(--color-text-secondary)",fontSize:Yi,textAnchor:"end",dx:"-0.25em",dy:"0.33em"})}),uP=({top:e,scale:t,yFormatter:r,width:o})=>{let n=Dr(r),a=Qe.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"})})},Xr={Bottom:sP,Left:lP,CategoryBottom:cP,CategoryLeft:dP,NumericBottom:uP};var Co=({data:e,formatter:t,label:r,categoryLabels:o})=>{if(!e)return null;let n=Qe__namespace.default.useContext(Jr),a=o??n?.categoryLabels,i=n?.xScale,s=n?.width,l=n?.height,c=Dr(t),d=h=>{if(h.baselineValue===void 0)return c.format(h.value);let x=Math.min(h.baselineValue,h.value),C=Math.max(h.baselineValue,h.value);return `${c.format(x)} \u2013 ${c.format(C)}`},u=Qe__namespace.default.useRef(null),[m,p]=Qe__namespace.default.useState({x:0,y:0,translate:"translate(-50%, -100%)"});Qe__namespace.default.useEffect(()=>{if(!u.current)return;let x=u.current.getBoundingClientRect(),C=s??window.innerWidth,w=l??window.innerHeight,S=e.x,T=e.y,R=16,P=e.x+x.width+R<=C,E=e.x-x.width-R>=0,I;e.position==="left"?I=E||!P:I=!P&&E;let k=I?"translate(calc(-100% - 16px), -50%)":"translate(16px, -50%)";if(!P&&!E){let D=C-e.x,L=e.x;D<=L?(S=C,k="translate(-100%, -50%)"):(S=0,k="translate(0, -50%)");}T-x.height/2<0?T=x.height/2:T+x.height/2>w&&(T=w-x.height/2),p({x:S,y:T,translate:k});},[e.x,e.y,e.position,s,l]);let g=i?.domain(),y=g&&g.length===2&&g.every(h=>h instanceof Date)?ag({start:g[0],end:g[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((C,w)=>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:C.color}}),jsxRuntime.jsx("span",{className:"font-medium text-text-primary",children:C.label})]}),C.metadata&&Object.keys(C.metadata).length>0&&jsxRuntime.jsx("div",{className:"ml-4 mt-1 space-y-0.5 text-xs text-text-secondary",children:Object.entries(C.metadata).map(([S,T])=>jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsxs("span",{className:"capitalize",children:[S,":"]}),jsxRuntime.jsx("span",{className:"font-medium",children:T})]},S))})]},`${C.label}-${w}`))})})()]}):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 Jb={top:20,right:20,bottom:50,left:60},Qb=12,yP=.4,Xb=60;function vP({margin:e,orientation:t,labelsKey:r,width:o}){return Qe.useMemo(()=>{if(e)return e;if(t!=="horizontal")return Jb;let n=hn(r.split("\0"),Yi,"system-ui"),a=Math.max(Xb,Math.floor(o*yP)),i=Math.ceil(n)+Qb;return {...Jb,left:Math.min(Math.max(i,Xb),a)}},[e,t,r,o])}var Zb=({data:e,width:t,height:r,margin:o,color:n,yFormatter:a={type:"number"},showGrid:i=true,showAxes:s=true,animate:l=true,barRadius:c=4,barPadding:d=.3,onBarClick:u,onBarHover:m,activeIndex:p,className:g,style:f,"aria-label":y,orientation:b="horizontal",showTooltip:h=true})=>{let[x,C]=Qe.useState(null),[w,S]=Qe.useState(null),[T,R]=Qe.useState(null),[P,E]=Qe.useState(t??600),[I,k]=Qe.useState(r??300),D=Qe.useRef(null),L=p??x,B=Qe.useId(),O=n||"var(--color-viz-default)";Qe.useEffect(()=>{if(t!==void 0&&r!==void 0){E(t),k(r);return}if(!D.current)return;let N=new ResizeObserver(v=>{for(let M of v)t===void 0&&E(M.contentRect.width),r===void 0&&k(M.contentRect.height);});return N.observe(D.current),t===void 0&&E(D.current.offsetWidth),r===void 0&&k(D.current.offsetHeight||300),()=>{N.disconnect();}},[t,r]);let H=e.map(N=>N.label).join("\0"),G=vP({margin:o,orientation:b,labelsKey:H,width:P}),Z=Math.max(0,G.left-Qb),{xScale:z,yScale:W,innerWidth:q,innerHeight:F}=Qe.useMemo(()=>{let N=P-G.left-G.right,v=I-G.top-G.bottom;if(b==="horizontal"){let A=d3Array.max(e,J=>J.value)||0;return {xScale:scale.scaleLinear({range:[0,N],domain:[0,A*1.1],nice:true}),yScale:scale.scaleBand({range:[0,v],domain:e.map(J=>J.label),padding:d}),innerWidth:N,innerHeight:v}}let M=d3Array.max(e,A=>A.value)||0;return {xScale:scale.scaleBand({range:[0,N],domain:e.map(A=>A.label),padding:d}),yScale:scale.scaleLinear({range:[v,0],domain:[0,M*1.1],nice:true}),innerWidth:N,innerHeight:v}},[e,P,I,G,d,b]);if(e.length===0)return jsxRuntime.jsx("div",{ref:D,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",g),style:r!==void 0?{height:r,...f}:f,children:"No data available"});let X=(N,v)=>{if(C(N),m?.(v,N),N!==null&&v){let M,A;if(b==="horizontal"){let ae=z(v.value),le=W(v.label)||0,$=W.bandwidth();M=G.left+ae,A=G.top+le+$/2;}else {let ae=z,le=W,$=ae(v.label)??0,ie=ae.bandwidth(),Ee=le(v.value);M=G.left+$+ie/2,A=G.top+Ee;}let J=M>P/2;R(v.label),S({xValue:new Date,series:[{label:"Value",value:v.value,color:v.color||O}],x:M,y:A,position:J?"left":"right"});}else S(null),R(null);};return jsxRuntime.jsxs("div",{ref:D,className:tailwindMerge.twMerge("relative h-full w-full overflow-hidden rounded-lg bg-background-surface",g),style:r!==void 0?{height:r,...f}:f,"aria-label":y,role:"img",children:[jsxRuntime.jsxs("svg",{width:P,height:I,children:[jsxRuntime.jsx("defs",{children:jsxRuntime.jsx(gradient.LinearGradient,{id:`${B}-bar`,from:O,to:O,toOpacity:.85})}),jsxRuntime.jsxs(group.Group,{left:G.left,top:G.top,children:[i&&jsxRuntime.jsx("g",{className:"grid-lines",children:(b==="horizontal"?z.ticks(5):W.ticks(5)).map(N=>{let v=b==="horizontal"?0:W(N),M=b==="horizontal"?z(N):0;return jsxRuntime.jsx("line",{x1:b==="horizontal"?M:0,y1:b==="horizontal"?0:v,x2:b==="horizontal"?M:q,y2:b==="horizontal"?F:v,stroke:"var(--color-border-default)",strokeOpacity:.5,strokeDasharray:"2,3"},N)})}),e.map((N,v)=>{let M=L===v||L==null,A=N.color||`url(#${B}-bar)`;if(b==="horizontal"){let pe=z(N.value),ge=W.bandwidth(),re=W(N.label)||0;return jsxRuntime.jsx(framerMotion.motion.rect,{x:0,y:re,width:pe,height:ge,fill:A,rx:c,ry:c,initial:l?{width:0,opacity:.5}:void 0,animate:{width:pe,opacity:M?1:.5},transition:{duration:.5,delay:v*.05,ease:"easeOut",opacity:{duration:.15,delay:0}},style:{cursor:u||m?"pointer":"default"},onMouseEnter:()=>X(v,N),onMouseLeave:()=>X(null,null),onClick:()=>u?.(N,v)},N.label)}let J=z,ae=W,le=J.bandwidth(),$=J(N.label)??0,ie=ae(N.value),Ee=Math.max(0,F-ie);return l?jsxRuntime.jsx(framerMotion.motion.rect,{x:$,width:le,fill:A,rx:c,ry:c,initial:{y:F,height:0,opacity:.5},animate:{y:ie,height:Ee,opacity:M?1:.5},transition:{duration:.5,delay:v*.05,ease:"easeOut",opacity:{duration:.15,delay:0}},style:{cursor:u||m?"pointer":"default"},onMouseEnter:()=>X(v,N),onMouseLeave:()=>X(null,null),onClick:()=>u?.(N,v)},N.label):jsxRuntime.jsx("rect",{x:$,y:ie,width:le,height:Ee,fill:A,rx:c,ry:c,opacity:M?1:.5,style:{cursor:u||m?"pointer":"default",transition:"opacity 150ms ease-out"},onMouseEnter:()=>X(v,N),onMouseLeave:()=>X(null,null),onClick:()=>u?.(N,v)},N.label)}),s&&b==="vertical"&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Xr.CategoryBottom,{top:F,scale:z}),jsxRuntime.jsx(Xr.Left,{left:0,scale:W,yFormatter:a,height:F})]}),s&&b==="horizontal"&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Xr.NumericBottom,{top:F,scale:z,yFormatter:a,width:q}),jsxRuntime.jsx(Xr.CategoryLeft,{left:0,scale:W,availableWidth:Z})]})]})]}),h&&jsxRuntime.jsx(Co,{data:w,formatter:a,label:T??void 0})]})};var _b=({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})},wP=({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(_b,{item:r,onToggle:t},r.category))}),ei=({items:e,onExport:t,marginLeft:r=0,marginRight:o=0,isZoomed:n=false,onResetZoom:a,onLegendItemToggle:i})=>{let[s,l]=Qe__namespace.default.useState(false),[c,d]=Qe__namespace.default.useState(null),[u,m]=Qe__namespace.default.useState(false),[p,g]=Qe__namespace.default.useState(false),f=Qe__namespace.default.useCallback(async b=>{l(true),d(b),g(false);try{await t(b);}catch(h){console.error("Export failed:",h);}finally{l(false),d(null);}},[t]),y=Qe__namespace.default.useCallback(async b=>{await f(b);},[f]);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(wP,{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(Ct,{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(_b,{item:b,onToggle:i},b.category))})})]})}),jsxRuntime.jsxs("div",{className:"sm:hidden flex items-center gap-2 shrink-0",children:[n&&a&&jsxRuntime.jsx(te,{variant:"secondary",size:"sm",onPress:a,children:jsxRuntime.jsx(V,{name:"ArrowsOut",size:16})}),jsxRuntime.jsx(te,{variant:"secondary",size:"sm",onPress:()=>g(true),isDisabled:s,children:jsxRuntime.jsx(V,{name:"Export",size:16})}),jsxRuntime.jsx(Ct,{isOpen:p,onClose:()=>g(false),title:"Export Chart",contentPadding:false,children:jsxRuntime.jsxs("div",{className:"flex flex-col",children:[jsxRuntime.jsxs("button",{onClick:()=>f("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:c==="csv"?"Exporting...":"Export as CSV"})]}),jsxRuntime.jsxs("button",{onClick:()=>f("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:c==="svg"?"Exporting...":"Export as SVG"})]}),jsxRuntime.jsxs("button",{onClick:()=>f("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:c==="png"?"Exporting...":"Export as PNG"})]})]})})]}),jsxRuntime.jsxs("div",{className:"hidden sm:flex items-center gap-2 shrink-0",children:[n&&a&&jsxRuntime.jsxs(te,{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(te,{variant:"secondary",size:"sm",isDisabled:s,children:[jsxRuntime.jsx(V,{name:"Export",size:16}),s?"Exporting...":"Export"]}),jsxRuntime.jsx(vt,{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}),c==="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}),c==="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}),c==="png"?"Exporting...":"Export as PNG"]})})]})})]})]})]})};var Al=nf(pp());var eh=["stroke","fill","color","stop-color","flood-color","lighting-color"],th=/var\s*\(/;function rh(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 l=window.getComputedStyle(i);for(let c of eh){let d=s.getAttribute(c);if(d&&th.test(d)){let u=l.getPropertyValue(c);u&&s.setAttribute(c,u.trim());}}if(s instanceof HTMLElement||s instanceof SVGElement)for(let c of eh){let d=c,u=s.style.getPropertyValue(d);if(u&&th.test(u)){let m=l.getPropertyValue(d);m&&s.style.setProperty(d,m.trim());}}}}function mp(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 fp(e,t,r={},o){let n=Array.isArray(t[0])?t:[t];try{switch(e){case "csv":await TP(n,r);break;case "svg":await kP(o,r);break;case "png":await PP(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 TP(e,t){try{let r=t.yFormat?su(t.yFormat):null,o=t.yFormat,n=m=>{if(m==null||m==="")return "";if(!o)return typeof m=="number"?m:String(m);let p=ng(m,o);return p===null?typeof m=="number"?m:String(m):p},a=new Map;e.forEach(m=>{m.forEach(p=>{let g=p.xValue.getTime();a.has(g)||a.set(g,p.xValue);});});let i=Array.from(a.values()).sort((m,p)=>m.getTime()-p.getTime()),s=e.map((m,p)=>{let g=t.seriesLabels?.[p]||`Series ${p+1}`;return r&&!g.includes(`(${r})`)?`${g} (${r})`:g}),l=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((g,f)=>{let y=s[f],b=g.find(h=>h.xValue.getTime()===m.getTime());p[y]=b?n(b.yValue):"",b?.category&&(p[`${y} Category`]=b.category);}),p}),c=NP__default.default.unparse(l,{header:!0,skipEmptyLines:!0}),d=new Blob([c],{type:"text/csv;charset=utf-8;"}),u=mp(t.filename||"chart-data","csv",t.timestamp!==!1);(0,Al.saveAs)(d,u);}catch(r){throw new Error(`CSV export failed: ${r instanceof Error?r.message:"Unknown error"}`)}}async function kP(e,t){if(!e.current)throw new Error("SVG element not found");try{let r=e.current,o=r.cloneNode(!0);if(rh(r,o),!o.querySelector("rect[data-background]")){let c=document.createElementNS("http://www.w3.org/2000/svg","rect");c.setAttribute("width",o.getAttribute("width")||"100%"),c.setAttribute("height",o.getAttribute("height")||"100%"),c.setAttribute("fill","white"),c.setAttribute("data-background","true"),o.insertBefore(c,o.firstChild);}let i=new XMLSerializer().serializeToString(o);i.includes("<?xml")||(i=`<?xml version="1.0" encoding="UTF-8"?>
31
- `+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"}),l=mp(t.filename||"chart","svg",t.timestamp!==!1);(0,Al.saveAs)(s,l);}catch(r){throw new Error(`SVG export failed: ${r instanceof Error?r.message:"Unknown error"}`)}}async function PP(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);rh(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 l=document.createElementNS("http://www.w3.org/2000/svg","rect");l.setAttribute("width",String(a.width)),l.setAttribute("height",String(a.height)),l.setAttribute("fill","white"),i.insertBefore(l,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 g=new Image,f=setTimeout(()=>{o&&URL.revokeObjectURL(o),p(new Error("Image loading timeout"));},1e4);g.onload=()=>{clearTimeout(f);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(g,0,0,a.width,a.height),y.toBlob(h=>{if(h){let x=mp(t.filename||"chart","png",t.timestamp!==!1);(0,Al.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);}},g.onerror=()=>{clearTimeout(f),o&&URL.revokeObjectURL(o),p(new Error("Failed to load SVG as image"));},g.src=o;})}catch(n){throw o&&URL.revokeObjectURL(o),new Error(`PNG export failed: ${n instanceof Error?n.message:"Unknown error"}`)}}function RP(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 EP(e){return {csv:"CSV Spreadsheet",svg:"SVG Vector Image",png:"PNG Image"}[e]||"Unknown Format"}function Il({datasets:e,metadata:t,svgRef:r}){return Qe.useCallback(async o=>{try{await fp(o,e,t,r);}catch(n){throw console.error("Chart export failed:",n),n}},[e,t,r])}var gp=({data:e,seriesMetadata:t,width:r,height:o,onBrushChange:n,brushRegion:a,margin:i=Ge,yDomain:s})=>{let l=Qe.useRef(null),c=Qe.useRef(false),d=Qe.useMemo(()=>e.flat(),[e]),u=Qe.useMemo(()=>({top:10,bottom:15,left:i.left,right:i.right}),[i]),m=r-u.left-u.right,p=Qe.useMemo(()=>{if(d.length===0)return scale.scaleTime({domain:[new Date,new Date],range:[0,m]});let h=new Date(Math.min(...d.map(C=>C.xValue.getTime()))),x=new Date(Math.max(...d.map(C=>C.xValue.getTime())));return scale.scaleTime({domain:[h,x],range:[0,m]})},[d,m]),g=Qe.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]),f=h=>{if(c.current)return;if(!h){n(null);return}let{x0:x,x1:C}=h;if(x===C)return;let w=new Date(x),S=new Date(C);if(!(Number.isNaN(w.getTime())||Number.isNaN(S.getTime()))){if(d.length>0){let T=Math.min(...d.map(k=>k.xValue.getTime())),R=Math.max(...d.map(k=>k.xValue.getTime())),E=(R-T)*.05;if(Math.abs(w.getTime()-T)<E&&Math.abs(S.getTime()-R)<E){n(null);return}}n([w,S]);}},y=Qe.useMemo(()=>{if(d.length!==0)return {start:{x:0,y:u.top},end:{x:m,y:o-u.bottom}}},[m,o,d]);Qe.useEffect(()=>{if(!l.current||d.length===0)return;let h=l.current.state;if(h?.isBrushing||h?.activeHandle)return;let x=Math.min(...d.map(P=>P.xValue.getTime())),C=Math.max(...d.map(P=>P.xValue.getTime())),w=a?a[0]:new Date(x),S=a?a[1]:new Date(C),T=l.current.state?.extent;if(T){let P=p.invert(T.x0),E=p.invert(T.x1),I=Math.abs(P.getTime()-w.getTime()),k=Math.abs(E.getTime()-S.getTime());if(I<1e3&&k<1e3)return}c.current=true;let R=P=>{let E=l.current.getExtent({x:p(w),y:u.top},{x:p(S),y:o-u.bottom});return {...P,start:{y:E.y0,x:E.x0},end:{y:E.y1,x:E.x1},extent:E}};l.current.updateBrush(R),setTimeout(()=>{c.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:C=>p(C.xValue),y:C=>g(C.yValue),stroke:t[x]?.color||"var(--color-gray-500)",strokeWidth:1.5,opacity:.8},`brush-series-${x}`)),jsxRuntime.jsx(brush.Brush,{xScale:p,yScale:g,width:m,height:o-u.top-u.bottom,margin:{top:u.top,bottom:u.bottom,left:0,right:0},handleSize:8,innerRef:l,resizeTriggerAreas:["left","right"],brushDirection:"horizontal",initialBrushPosition:y,onChange:f,onClick:()=>n(null),selectedBoxStyle:b,useWindowMoveEvents:true})]})]})})};function Wo(e){switch(e){case "command":return Vt("--color-action-brand","#111111");case "success":return Vt("--color-feedback-success-border","#278a4a");case "warning":return Vt("--color-feedback-warning-border","#c88420");case "error":return Vt("--color-feedback-error-border","#c42d2d");case "alert":return Vt("--color-feedback-warning-border","#c88420");default:return Vt("--color-text-secondary","#525250")}}function Bl({events:e,color:t,showLabels:r=false}){let o=Qe.useContext(Jr),[n,a]=Qe.useState(null);if(!o)return console.warn("ChartEventMarkers must be used within a ChartContainer"),null;let{xScale:i,yScale:s,height:l,tooltip:c,datasets:d,seriesMetadata:u,seriesTypes:m,categoryColors:p}=o,g=e.filter(b=>{let h=i(b.timestamp);return h>=Ge.left&&h<=i.range()[1]}),f=Qe.useCallback((b,h)=>{a(h);let x=i(b.timestamp),C=x>(i.range()[1]-Ge.right-Ge.left)/2+Ge.left,w=[];d&&u&&d.forEach((R,P)=>{if(R.length===0)return;let E=d3Array.bisector(B=>B.xValue).left,I=E(R,b.timestamp),k=R[I-1],D=R[I],L;if(!k)L=D;else if(!D)L=k;else {let B=Math.abs(b.timestamp.getTime()-k.xValue.getTime()),O=Math.abs(b.timestamp.getTime()-D.xValue.getTime());L=B<O?k:D;}L&&u[P]&&w.push({label:u[P].label,value:L.yValue,color:u[P].color,type:m?.[P]||"line",...L.category&&{category:L.category,categoryColor:p?.[L.category]}});});let T=g.filter(R=>Math.abs(i(R.timestamp)-x)<=10).map(R=>({label:R.label,color:R.color??t??Wo(R.type),metadata:R.metadata}));w.push({label:T.length>1?`${T.length} events`:b.label,value:0,color:b.color??t??Wo(b.type),type:"event"}),c.show({xValue:b.timestamp,series:w,x,y:w.length>1&&typeof w[0].value=="number"?s(w[0].value):l/2,position:C?"left":"right",isEvent:true,eventMetadata:b.metadata,eventItems:T});},[i,s,l,c,t,d,u,m,p,g]),y=Qe.useCallback(()=>{a(null),c.hide();},[c]);return g.length===0?null:jsxRuntime.jsx("g",{className:"chart-event-markers","data-testid":"chart-event-markers",children:g.map((b,h)=>{let x=i(b.timestamp),C=b.color??t??Wo(b.type),w=n===h;return jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("line",{x1:x,y1:Ge.top,x2:x,y2:l-Ge.bottom,stroke:C,strokeWidth:w?3:2,strokeDasharray:"4 4",strokeOpacity:w?.9:.6,pointerEvents:"none"}),jsxRuntime.jsx("circle",{cx:x,cy:Ge.top,r:w?5:4,fill:C,stroke:"var(--color-background-surface)",strokeWidth:2,pointerEvents:"none"}),jsxRuntime.jsx("circle",{cx:x,cy:l-Ge.bottom,r:w?5:4,fill:C,stroke:"var(--color-background-surface)",strokeWidth:2,pointerEvents:"none"}),r&&jsxRuntime.jsx("text",{x,y:Ge.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:Ge.top,width:20,height:l-Ge.top-Ge.bottom,fill:"transparent",style:{cursor:"pointer"},onMouseEnter:()=>f(b,h),onMouseLeave:y})]},`${b.timestamp.getTime()}-${h}`)})})}function Vl({spans:e,opacity:t=.25,color:r}){let o=Qe.useContext(Jr),[n,a]=Qe.useState(null),i=o?.xScale,s=o?.height,l=o?.tooltip,[c,d]=i?.domain()??[new Date(0),new Date(0)],[u,m]=i?.range()??[0,0],p=Qe.useCallback((w,S)=>{if(!i||!l)return;a(S);let T=w.start<c?c:w.start,R=w.end>d?d:w.end,P=(i(T)+i(R))/2,E=P>(m-u)/2+u,k=e.filter(D=>D.end>D.start&&D.start<w.end&&D.end>w.start).map(D=>({label:D.label,color:D.color??r??Wo(D.type),metadata:D.metadata}));l.show({xValue:w.start,series:[{label:k.length>1?`${k.length} scheduled commands`:w.label,value:0,color:w.color??r??Wo(w.type),type:"event"}],x:P,y:(s??0)/2,position:E?"left":"right",isEvent:true,eventMetadata:w.metadata,eventItems:k});},[i,s,l,r,c,d,u,m,e]),g=Qe.useCallback(()=>{a(null),l?.hide();},[l]);if(!o)return console.warn("ChartEventSpans must be used within a ChartContainer"),null;let{xScale:f,height:y}=o,b=Ge.top,x=y-Ge.bottom-b,C=e.filter(w=>w.end>w.start);return C.length===0?null:jsxRuntime.jsx("g",{className:"chart-event-spans","data-testid":"chart-event-spans",children:C.map((w,S)=>{let T=w.start<c?c:w.start,R=w.end>d?d:w.end;if(T>=d||R<=c)return null;let P=f(T),I=f(R)-P;if(I<=0)return null;let k=w.color??r??Wo(w.type);return jsxRuntime.jsx("rect",{x:P,y:b,width:I,height:x,fill:k,fillOpacity:n===S?Math.min((t??.25)*1.8,1):t??.25,pointerEvents:"all",style:{cursor:"pointer"},onMouseEnter:()=>p(w,S),onMouseLeave:g},`${w.start.getTime()}-${w.end.getTime()}-${S}`)})})}var dh=Qe.createContext(false);function hp({children:e}){return jsxRuntime.jsx(dh.Provider,{value:true,children:e})}function qn(e){let t=Qe.useContext(dh),[r,o]=Qe.useState(false),[n,a]=Qe.useState(null),i=Qe.useRef(null),s=Qe.useCallback(u=>{if(i.current?.disconnect(),i.current=null,!u||typeof ResizeObserver>"u")return;let m=new ResizeObserver(([p])=>{if(!p)return;let{width:g,height:f}=p.contentRect;a(y=>y&&y.width===g&&y.height===f?y:{width:g,height:f});});m.observe(u),i.current=m;},[]);Qe.useEffect(()=>()=>i.current?.disconnect(),[]);let l=Qe.useCallback(()=>{o(false),a(null);},[]),c=t?null:jsxRuntime.jsx(te,{variant:"icon",size:"sm",icon:"ArrowsOutSimple","aria-label":`Expand ${e} chart`,onPress:()=>o(true)}),d=Qe.useCallback(u=>r&&!t?jsxRuntime.jsx(cr,{isOpen:true,onClose:l,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,l,e,s]);return {isExpanded:r,action:c,expandedSize:n,present:d}}var Qn=({data:e,color:t="var(--color-viz-default)",strokeWidth:r=3,strokeDasharray:o,categoryColors:n={},maxGapMs:a,animate:i=true})=>{let{xScale:s,yScale:l,animationSettings:c,entrance:d}=Xn(),[u]=Qe__namespace.default.useState(()=>d?.played!==true),m=i&&u,p=l.range(),g=Object.keys(n).length>0,f=S=>S.category?n[S.category]??t:t,y=S=>S.chartYValue??S.yValue,b=e.length===1?e[0]:void 0,h=a!=null?Pl(e,a):e,x=i?void 0:"non-scaling-stroke",C=b?jsxRuntime.jsx("circle",{cx:s(b.xValue),cy:l(y(b)),r,fill:g?f(b):t}):g?e.slice(0,-1).map((S,T)=>{let R=e[T+1];return a!=null&&a>0&&R.xValue.getTime()-S.xValue.getTime()>a?null:jsxRuntime.jsx(shape.LinePath,{data:[S,R],x:P=>s(P.xValue),y:P=>l(y(P)),stroke:f(S),strokeWidth:r,strokeDasharray:o,strokeLinecap:"round",vectorEffect:x,curve:curve.curveLinear},`${S.xValue.getTime()}-${R.xValue.getTime()}`)}):jsxRuntime.jsx(shape.LinePath,{data:h,x:S=>S?s(S.xValue):0,y:S=>S?l(y(S)):0,defined:S=>S!=null,stroke:t,strokeWidth:r,strokeDasharray:o,strokeLinecap:"round",vectorEffect:x,curve:curve.curveLinear}),w={transformOrigin:`0 ${p[0]}px`,transformBox:"fill-box",isolation:"isolate"};return m?jsxRuntime.jsx(framerMotion.motion.g,{initial:{scaleY:0},animate:{scaleY:1},transition:{duration:c.duration,ease:c.ease},style:w,children:C}):jsxRuntime.jsx("g",{style:w,children:C})};var bh=e=>e.type===bn||e.type===Qn||e.type===El,e1=e=>e.type===Bl||e.type===Vl,t1=(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},hh=280,r1=d3Array.bisector(e=>e.xValue).left,o1=()=>jsxRuntime.jsx("div",{className:"flex h-full items-center justify-center",children:jsxRuntime.jsx("p",{className:"text-text-secondary",children:"No data available"})}),n1=()=>jsxRuntime.jsxs("div",{className:"flex h-full flex-col gap-4 p-4",children:[jsxRuntime.jsx(Y,{className:"h-full w-full"}),jsxRuntime.jsxs("div",{className:"flex gap-4",children:[jsxRuntime.jsx(Y,{className:"h-4 w-24"}),jsxRuntime.jsx(Y,{className:"h-4 w-24"})]})]}),a1=({parentWidth:e,parentHeight:t,yFormatter:r={type:"number"},yDomain:o,referenceLines:n,isLoading:a=false,enableZoom:i=false,enableBrush:s=false,brushHeight:l=60,onZoomChange:c,zoomDomain:d,hiddenSeriesLabels:u,onHiddenSeriesChange:m,hideBottomBar:p=false,headerActions:g,headerControls:f,title:y,children:b})=>{let h=u!==void 0,x=d!==void 0,[C,w]=Qe.useState(null),[S,T]=Qe.useState(null),R=x?d:S,[P,E]=Qe.useState(()=>new Set),I=h?u:P,k=Qe.useRef(null),D=Qe.useId(),L=Qe.useRef(0),B=Qe.useRef(""),O=Qe.useRef(null),{colorMode:H}=jt(),G=Qe.useMemo(()=>Oo(),[H]),Z=Qe.useMemo(()=>Ni(),[H]),{datasets:z,seriesMetadata:W,categoryInfo:q,categoryColors:F,categoryLabels:X,seriesTypes:N}=Qe.useMemo(()=>{let fe=Qe.Children.toArray(b).filter(Be=>Qe.isValidElement(Be)&&bh(Be)),Fe=fe.filter(Be=>Be.props.data).length,ke=[],ze=[],tt=[],pt=null,Ie=null;fe.forEach((Be,yt)=>{let De=Be.props;if(!De.data)return;ke.push(De.data);let Bo=("color"in De&&De.color?De.color:void 0)||(Fe===1?Z:G[yt%G.length]),Vo=Be.type===bn;ze.push({label:"label"in De&&De.label||`Series ${ke.length}`,color:Bo,...Vo&&"baseline"in De&&De.baseline!==void 0?{baseline:De.baseline,tooltipRange:"tooltipRange"in De&&De.tooltipRange||false}:{}});let Ln=Vo?"area":Be.type===Qn?"line":"bar";tt.push(Ln),"categoryColors"in De&&De.categoryColors&&(pt=De.categoryColors),"categoryLabels"in De&&De.categoryLabels&&(Ie=De.categoryLabels);});let ct=null;if(pt){let Be=new Set;ke.forEach(yt=>{yt.forEach(De=>{De.category&&Be.add(De.category);});}),ct=Array.from(Be).map(yt=>({label:Ie?.[yt]||yt,color:pt[yt]||"#6b7280"}));}return {datasets:ke,seriesMetadata:ze,categoryInfo:ct,categoryColors:pt,categoryLabels:Ie,seriesTypes:tt}},[b,Z,G,H]),v=qn(y),M=v.expandedSize?.width??e,A=v.expandedSize?.height??t,ae=!p?v.action:null,le=g||ae?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[g,ae]}):void 0,{headerRef:$,headerHeight:ie}=za(!!le,!!f),Ee=p?0:60,pe=s?l+8:0,ge=A-ie-Ee-pe,re=Math.max(100,ge),se=Qe.useCallback(j=>j?I.has(j):false,[I]),ve=Qe.useMemo(()=>W.map((j,fe)=>se(j.label)?null:fe).filter(j=>j!==null),[W,se]),je=Qe.useMemo(()=>ve.map(j=>z[j]).filter(j=>!!j),[z,ve]),Ze=Qe.useMemo(()=>ve.map(j=>W[j]).filter(j=>!!j),[W,ve]),wr=Qe.useMemo(()=>ve.map(j=>N[j]).filter(j=>!!j),[N,ve]),Dt=wr.findIndex(j=>j==="bar"),Nr=Dt!==-1,Tr=Qe.useCallback((j,fe)=>{let Fe=j.has(fe);if(!Fe&&W.reduce((tt,pt)=>j.has(pt.label)||pt.label===fe?tt:tt+1,0)<1)return j;let ke=new Set(j);return Fe?ke.delete(fe):ke.add(fe),ke},[W]),xt=Qe.useCallback(j=>{if(h){let fe=u;if(!fe.has(j)&&W.reduce((ze,tt)=>fe.has(tt.label)||tt.label===j?ze:ze+1,0)<1){w(null);return}m?.(ke=>Tr(ke,j));}else E(fe=>Tr(fe,j));w(null);},[h,u,m,W,Tr]),Zt=Qe.useMemo(()=>W.map(j=>j.label).join(""),[W]),ee=Qe.useRef(Zt);Qe.useEffect(()=>{ee.current!==Zt&&(ee.current=Zt,h||E(j=>j.size===0?j:new Set));},[Zt,h]);let We=Qe.useMemo(()=>je.flat(),[je]),$e=Qe.useMemo(()=>{if(We.length===0)return null;let j=[...We].sort((fe,Fe)=>fe.xValue.getTime()-Fe.xValue.getTime());return [j[0].xValue,j[j.length-1].xValue]},[We]),Me=R||$e,Re=Qe.useCallback(j=>{x?c?.(j):T(j);},[x,c]),K=Qe.useMemo(()=>Me?z.map(fe=>fe.filter(Fe=>Fe.xValue>=Me[0]&&Fe.xValue<=Me[1])):z,[z,Me]),U=Qe.useMemo(()=>ve.map(j=>K[j]??[]),[ve,K]);Qe.useEffect(()=>{c&&c(R);},[R,c]);let de=Qe.useMemo(()=>ve.flatMap(j=>K[j]??[]),[K,ve]),oe=Qe.useMemo(()=>Ui(de,re,r,o),[de,re,r,o]),xe=Qe.useRef(JSON.stringify(r)),Oe=Qe.useRef(null),_=Qe.useMemo(()=>{let[j,fe]=oe.domain(),Fe=Math.max(Math.abs(j),Math.abs(fe)),ke=JSON.stringify(r);if(ke!==xe.current&&(xe.current=ke,Oe.current=null),Oe.current!==null)return Oe.current;if(Fe===0)return Za(r,0);let ze=Za(r,Fe);return Oe.current=ze,ze},[oe,r]),ue=Qe.useMemo(()=>{let j=re-Ge.top-Ge.bottom;return _a(j)},[re]),Q=Qe.useMemo(()=>{let j=Dr(_),fe=j.tickFormat||j.format,ke=oe.ticks(ue).map(pt=>fe(pt)),ze=hn(ke,12,"system-ui"),tt=Math.ceil(ze)+12;return {...Ge,left:Math.max(tt,30),right:8}},[oe,_,ue]),Se=Qe.useMemo(()=>Me?scale.scaleTime({domain:Me,range:[Q.left,M-Q.right]}):sp(We,M),[Me,We,M,Q]),mo=Qe.useCallback(j=>{if(!$e)return;let{scaleX:fe,translateX:Fe}=j,ke=M-Q.left-Q.right,[ze,tt]=$e,pt=tt.getTime()-ze.getTime();if(pt<=0){Re(null);return}let Ie=-Fe,ct=Ie+ke,Be=ke*fe/pt,yt=Ie/Be,De=ct/Be,Fo=new Date(ze.getTime()+yt),Bo=new Date(ze.getTime()+De),Vo=Math.abs(Fo.getTime()-ze.getTime()),Ln=Math.abs(Bo.getTime()-tt.getTime()),Hs=pt*.02;Vo<Hs&&Ln<Hs?Re(null):Re([Fo,Bo]);},[$e,M,Q,Re]),Ea=Qe.useCallback(j=>{let{left:fe}=k.current?.getBoundingClientRect()||{left:0},Fe=j.clientX-fe;if(j.timeStamp-(L.current||0)<16)return;L.current=j.timeStamp;let ke=Se.invert(Fe),ze=U.map((Ie,ct)=>{if(!Ie||Ie.length===0)return null;let Be=r1(Ie,ke,1);if(Be===0)return {point:Ie[0],index:0,datasetIndex:ct};if(Be>=Ie.length)return {point:Ie[Ie.length-1],index:Ie.length-1,datasetIndex:ct};let yt=Ie[Be-1],De=Ie[Be];if(!yt||!De)return null;let Fo=Math.abs(yt.xValue.getTime()-ke.getTime()),Bo=Math.abs(De.xValue.getTime()-ke.getTime()),Vo=Fo<Bo;return {point:Vo?yt:De,index:Vo?Be-1:Be,datasetIndex:ct}}).filter(Ie=>Ie!==null&&Ze[Ie.datasetIndex]!==void 0).map(({point:Ie,index:ct,datasetIndex:Be})=>({label:Ze[Be].label,value:Ie.yValue,baselineValue:t1(Ze[Be],Ie,ct),color:Ze[Be].color,point:Ie,type:wr[Be]}));if(ze.length===0){w(null);return}let tt=Se(ze[0].point.xValue),pt=tt>(M-Q.right-Q.left)/2+Q.left;w({xValue:ze[0].point.xValue,series:ze.map(({label:Ie,value:ct,baselineValue:Be,color:yt,point:De,type:Fo})=>({label:Ie,value:ct,...Be!==void 0?{baselineValue:Be}:{},chartY:De.chartYValue??ct,showMarker:De.showTooltipMarker??true,color:yt,type:Fo,category:De.category,categoryColor:De.category&&F?F[De.category]:void 0,...De.extraTooltipRows&&De.extraTooltipRows.length>0?{extraTooltipRows:De.extraTooltipRows}:{}})),x:tt,y:oe(ze[0].point.chartYValue??ze[0].value),position:pt?"left":"right"});},[U,Ze,wr,Se,oe,M,F,Q]),Io=()=>{w(null);},f0=Qe.useCallback(()=>{Re(null),O.current&&O.current.reset();},[Re]),g0=Qe.useCallback(j=>{let fe={scaleX:1,scaleY:1,translateX:0,translateY:0,skewX:0,skewY:0};if(!j||!$e)return fe;let[Fe,ke]=$e,ze=ke.getTime()-Fe.getTime();if(ze<=0)return fe;let[tt,pt]=j,Ie=pt.getTime()-tt.getTime();if(Ie<=0)return fe;let ct=ze/Ie,Be=M-Q.left-Q.right,yt=tt.getTime()-Fe.getTime();return {scaleX:ct,scaleY:1,translateX:-(yt/ze)*Be*ct,translateY:0,skewX:0,skewY:0}},[$e,M,Q]),zs=Qe.useCallback(j=>{if(!(O.current&&$e))return;let[fe,Fe]=$e,ke=Fe.getTime()-fe.getTime();if(ke<=0){O.current.reset();return}if(!j){O.current.reset();return}let[ze,tt]=j,pt=tt.getTime()-ze.getTime();if(pt<=0){O.current.reset();return}let Ie=ke/pt,ct=M-Q.left-Q.right,yt=-((ze.getTime()-fe.getTime())/ke)*ct*Ie;O.current.setTransformMatrix({scaleX:Ie,scaleY:1,translateX:yt,translateY:0,skewX:0,skewY:0});},[$e,M,Q]),b0=Qe.useCallback(j=>{Re(j),zs(j);},[Re,zs]);Qe.useEffect(()=>{x&&zs(d??null);},[x,d,zs]);let h0=kl(),x0={width:M,height:re,xScale:Se,yScale:oe,yFormatter:_,animationSettings:Tl,entrance:h0,tooltip:{data:C,show:w,hide:()=>w(null)},datasets:U,seriesMetadata:Ze,seriesTypes:wr,categoryColors:F||void 0,categoryLabels:X||void 0},y0=Qe.Children.toArray(b),ef=0,tf=[],rf=[],Pd=[];y0.forEach(j=>{if(!Qe.isValidElement(j)){Pd.push(j);return}if(e1(j))rf.push(j);else if(bh(j)){let fe=ef;ef++;let Fe=j.props,ke=W[fe]?.label;if(se(ke))return;tf.push(Qe__namespace.default.cloneElement(j,{...Fe,data:K[fe]||Fe.data,color:W[fe]?.color}));}else Pd.push(j);});let v0=ve.length,C0=(q||W).map(j=>{let fe=!q&&se(j.label);return {category:j.label,fill:j.color,isHidden:fe,isDisabled:!q&&!fe&&v0<=1}}),S0=typeof r=="object"&&r!==null&&typeof r.type=="string",w0=Il({datasets:je,metadata:{xLabel:"Date",yLabel:"Value",seriesLabels:Ze.map(j=>j.label),timestamp:true,...S0?{yFormat:r}:{}},svgRef:k}),Rd=jsxRuntime.jsx(Ha,{title:y,controls:f,actions:le,containerRef:$,marginRight:Q.right});if(a)return v.present(jsxRuntime.jsxs("div",{className:"relative flex h-full flex-col",children:[Rd,jsxRuntime.jsx(n1,{})]}));if(z.length===0)return v.present(jsxRuntime.jsxs("div",{className:"relative flex h-full flex-col",children:[Rd,jsxRuntime.jsx(o1,{})]}));let of=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("title",{children:y}),jsxRuntime.jsx("g",{children:oe.ticks(ue).map(j=>{let fe=Math.abs(j)<Number.EPSILON;return jsxRuntime.jsx(shape.Line,{from:{x:Q.left,y:oe(j)},to:{x:M-Q.right,y:oe(j)},stroke:fe?"var(--color-border-default)":"var(--color-border-muted)",strokeWidth:fe?1.5:1},`grid-line-${j}`)})}),jsxRuntime.jsx("defs",{children:jsxRuntime.jsx("clipPath",{id:D,children:jsxRuntime.jsx("rect",{x:Se.range()[0],y:oe.range()[1],width:Se.range()[1]-Se.range()[0],height:oe.range()[0]-oe.range()[1]})})}),jsxRuntime.jsx("g",{clipPath:`url(#${D})`,children:tf}),Pd,n&&n.length>0&&jsxRuntime.jsx("g",{children:n.map((j,fe)=>{let Fe=oe(j.value),ke=j.color??"var(--color-error-base)";return jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx(shape.Line,{from:{x:Q.left,y:Fe},to:{x:M-Q.right,y:Fe},stroke:ke,strokeWidth:1.5,strokeDasharray:"6 4"}),j.label&&jsxRuntime.jsx("text",{x:M-Q.right-4,y:Fe-4,textAnchor:"end",fontSize:11,fill:ke,children:j.label})]},`ref-line-${fe}`)})}),jsxRuntime.jsx(Xr.Bottom,{top:re-Q.bottom,scale:Se,width:M-Q.left-Q.right}),jsxRuntime.jsx(Xr.Left,{left:Q.left,scale:oe,yFormatter:_,height:re-Q.top-Q.bottom}),C&&!C.isEvent&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[Nr?(()=>{let j=je[Dt]??[];if(j.length===0)return null;let fe=[...j].sort((Ln,Hs)=>Ln.xValue.getTime()-Hs.xValue.getTime()),Fe=fe.findIndex(Ln=>Ln.xValue.getTime()===C.xValue.getTime()),ke=fe[Fe+1],ze=fe.length>1&&ke?ke.xValue.getTime()-C.xValue.getTime():15*6e4,tt=Math.abs(Se(new Date(C.xValue.getTime()+ze))-Se(C.xValue)),Ie=Se(C.xValue)-tt/2,ct=oe.range(),[Be,yt]=Se.range(),De=Math.min(Be,yt),Fo=Math.max(Be,yt),Bo=Math.max(Ie,De),Vo=Math.max(0,Math.min(Ie+tt,Fo)-Bo);return jsxRuntime.jsx("rect",{x:Bo,y:ct[1],width:Vo,height:ct[0]-ct[1],className:"fill-background-muted",opacity:.5,pointerEvents:"none",style:{transition:"all 100ms ease-out"}})})():null,C.series.filter(j=>j.type!=="bar"&&j.showMarker!==false).map(j=>jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("circle",{cx:Se(C.xValue),cy:oe(j.chartY??j.value),r:8,fill:"white",stroke:j.color,strokeWidth:2,style:{transition:"all 100ms ease-out"}}),jsxRuntime.jsx("circle",{cx:Se(C.xValue),cy:oe(j.chartY??j.value),r:4,fill:j.color,style:{transition:"all 100ms ease-out"}})]},`highlight-${j.label}`))]}),jsxRuntime.jsx("rect",{x:Q.left,y:Q.top,width:M-Q.left-Q.right,height:re-Q.top-Q.bottom,fill:"transparent",style:{cursor:i?"grab":"crosshair",touchAction:"none"},onMouseMove:Ea,onMouseLeave:Io}),rf]});return v.present(jsxRuntime.jsx("div",{className:"relative flex h-full flex-col",children:jsxRuntime.jsxs(Jr.Provider,{value:x0,children:[Rd,i?jsxRuntime.jsx(zoom.Zoom,{initialTransformMatrix:g0(R),width:M,height:re,scaleXMin:1,scaleXMax:20,scaleYMin:1,scaleYMax:1,constrain:j=>{let{scaleX:fe,translateX:Fe}=j,ke=Math.max(1,Math.min(20,fe)),ze=1,tt=M-Q.left-Q.right,pt=0,Ie=tt*(1-ke),ct=Math.max(Ie,Math.min(pt,Fe));return {...j,scaleX:ke,scaleY:ze,translateX:ct,translateY:0}},children:j=>{if(O.current=j,j.transformMatrix){let{scaleX:fe,translateX:Fe}=j.transformMatrix,ke=`${fe.toFixed(4)}-${Fe.toFixed(2)}`;ke!==B.current&&(B.current=ke,setTimeout(()=>{mo(j.transformMatrix);},0));}return jsxRuntime.jsx("svg",{width:M,height:re,className:"overflow-visible",ref:fe=>{k.current=fe,j.containerRef.current!==fe&&(j.containerRef.current=fe);},role:"img","aria-label":y,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:of})}},`zoom-${Math.round(M)}x${Math.round(re)}`):jsxRuntime.jsx("svg",{width:M,height:re,className:"overflow-visible",ref:k,role:"img","aria-label":y,children:of}),jsxRuntime.jsx(Co,{data:C,formatter:_}),s&&$e&&jsxRuntime.jsx(gp,{data:je,seriesMetadata:Ze,width:M,height:l,onBrushChange:b0,brushRegion:R,margin:Q,...o?{yDomain:o}:{}}),!p&&jsxRuntime.jsx(ei,{onExport:w0,items:C0,marginLeft:0,marginRight:Q.right,isZoomed:R!==null,onResetZoom:f0,onLegendItemToggle:q?void 0:xt})]})}))},xh=responsive.withParentSize(a1);var u1=e=>e.toLocaleString(),p1=e=>`${Math.round(e*100)}%`,Sh=({data:e,width:t=800,height:r=400,padding:o=0,barGap:n=30,formatValue:a=u1,formatPercentage:i=p1,color:s,showScale:l=true,showOverallConversion:c=true,overallConversionLabel:d="Overall Conversion:",activeStageId:u,onStageClick:m,onStageHover:p,className:g,style:f,"aria-label":y="Funnel chart"})=>{let[b,h]=Qe.useState(null),[x,C]=Qe.useState(t),w=Qe.useRef(null),S=u??b,T=Qe.useId(),R=s||"var(--color-viz-default)";Qe.useEffect(()=>{if(!w.current)return;let L=new ResizeObserver(B=>{for(let O of B)C(O.contentRect.width);});return L.observe(w.current),()=>{L.disconnect();}},[]);let{layout:P,overallConversion:E}=Qe.useMemo(()=>{if(e.length===0)return {layout:[],overallConversion:0};let L=e[0].value,B=c?60:0,O=r-o*2-B,H=(e.length-1)*n,G=(O-H)/e.length,Z=e.map((W,q)=>{let F=o+B+q*(G+n),X=L===0?0:W.value/L,N=X,v=q===0?null:e[q-1].value,M=v==null||v===0?0:1-W.value/v;return {stage:W,index:q,y:F,barHeight:G,widthPercent:X,conversionRate:N,dropOff:M}}),z=L===0?0:e[e.length-1].value/L;return {layout:Z,overallConversion:z,maxValue:L}},[e,x,r,o,n,l,c]);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",g),style:{width:t,height:r,...f},children:"No funnel data available"});let I=l?60:0,k=o+I,D=x-o*2-I;return jsxRuntime.jsx("div",{ref:w,className:tailwindMerge.twMerge("relative w-full overflow-hidden rounded-lg bg-background-surface",g),style:{height:r,...f},"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:`${T}-bar`,from:R,to:R,toOpacity:.85}),jsxRuntime.jsx(gradient.LinearGradient,{id:`${T}-bg`,from:R,to:R,fromOpacity:.01,toOpacity:.15,x1:"0",y1:"0",x2:"1",y2:"0"})]}),c&&jsxRuntime.jsxs("text",{x:k,y:o+20,className:"fill-text-primary text-sm font-medium",children:[jsxRuntime.jsx("tspan",{className:"fill-text-secondary",children:d})," ",i(E)]}),l&&jsxRuntime.jsx("g",{children:P.map(L=>{let B=L.y+L.barHeight/2;return jsxRuntime.jsx("text",{x:o+I-12,y:B,textAnchor:"end",dominantBaseline:"middle",className:"fill-text-secondary text-xs",children:i(L.conversionRate)},L.stage.id)})}),P.map(L=>{let B=S===L.stage.id,O=D*L.widthPercent;return jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("rect",{x:k,y:L.y,width:D,height:L.barHeight,fill:`url(#${T}-bg)`,rx:4}),jsxRuntime.jsx(framerMotion.motion.rect,{x:k,y:L.y,width:O,height:L.barHeight,fill:`url(#${T}-bar)`,rx:4,initial:{width:0},animate:{width:O},transition:{duration:.6,delay:L.index*.1,ease:"easeOut"},opacity:B||S==null?1:.5,style:{cursor:m||p?"pointer":"default",transition:"opacity 150ms ease"},onMouseEnter:()=>{h(L.stage.id),p?.(L.stage);},onMouseLeave:()=>{h(null),p?.(null);},onClick:()=>m?.(L.stage)}),jsxRuntime.jsx("rect",{x:k+10,y:L.y+L.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:k+16,y:L.y+L.barHeight/2+4,className:"fill-text-primary text-xs font-semibold",style:{pointerEvents:"none"},children:a(L.stage.value)}),jsxRuntime.jsxs("text",{x:k,y:L.y-8,className:"fill-text-secondary text-xs",style:{pointerEvents:"none"},children:[jsxRuntime.jsx("tspan",{children:L.index+1})," ",L.stage.label]}),L.stage.secondaryValue&&jsxRuntime.jsx("text",{x:k+16,y:L.y-24,className:"fill-text-secondary text-xs",style:{pointerEvents:"none"},children:L.stage.secondaryValue}),L.index>0&&L.dropOff>0&&jsxRuntime.jsxs("text",{x:k+D,y:L.y-8,textAnchor:"end",className:"fill-text-secondary text-xs",children:[i(L.dropOff)," drop"]}),L.stage.annotation&&jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("rect",{x:k+O+8,y:L.y+8,width:60,height:24,rx:3,className:"fill-background-muted"}),jsxRuntime.jsx("text",{x:k+O+16,y:L.y+20,className:"fill-text-secondary text-xs font-medium",children:L.stage.annotation})]})]},L.stage.id)})]})})};var h1=.005,Th=320;function zl(e){return e>0?e:0}function x1(e,t,r){let o=t===0?0:zl(e.value)/t*100;return `${e.label}: ${r(e.value)}, ${o.toFixed(1)}%`}var kh=({data:e,width:t,height:r,innerRadiusRatio:o=0,yFormatter:n={type:"number"},showLegend:a=true,showTooltip:i=true,onSliceClick:s,onSliceHover:l,className:c,style:d,"aria-label":u})=>{let[m,p]=Qe.useState(null),[g,f]=Qe.useState(null),[y,b]=Qe.useState(null),[h,x]=Qe.useState(t??600),[C,w]=Qe.useState(r??300),S=Qe.useRef(null);Qe.useEffect(()=>{if(t!==void 0&&r!==void 0){x(t),w(r);return}if(!S.current)return;let H=new ResizeObserver(G=>{for(let Z of G)t===void 0&&x(Z.contentRect.width),r===void 0&&w(Z.contentRect.height);});return H.observe(S.current),t===void 0&&x(S.current.offsetWidth),r===void 0&&w(S.current.offsetHeight||300),()=>{H.disconnect();}},[t,r]);let T=Qe.useMemo(()=>e.reduce((H,G)=>H+zl(G.value),0),[e]),R=Qe.useMemo(()=>{let H=Ti(e.map(G=>G.label));return e.map(G=>({...G,color:G.color||H[G.label]||"var(--color-viz-default)"}))},[e]),P=Dr(n),E=s!==void 0,I=a&&h>=Th,k=I?Math.max(h*.45,Th*.45):h,L=Math.max(0,Math.min(k,C)-8)/2,B=L*Math.min(Math.max(o,0),.95);if(e.length===0||T===0)return jsxRuntime.jsx("div",{ref:S,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",c),style:r!==void 0?{height:r,...d}:d,children:"No data available"});let O=(H,G,Z)=>{if(p(H),l?.(G,H),H!==null&&G&&Z){let z=k/2+Z[0],W=C/2+Z[1];b(G.label),f({xValue:new Date,series:[{label:"Value",value:G.value,color:G.color||"var(--color-viz-default)"}],x:z,y:W,position:z>h/2?"left":"right"});}else f(null),b(null);};return jsxRuntime.jsxs("div",{ref:S,className:tailwindMerge.twMerge("relative flex h-full w-full items-center gap-4 rounded-lg bg-background-surface",c),style:r!==void 0?{height:r,...d}:d,children:[jsxRuntime.jsx("svg",{width:k,height:C,className:"flex-shrink-0",role:E?"group":"img","aria-label":u,children:jsxRuntime.jsx(group.Group,{top:C/2,left:k/2,children:jsxRuntime.jsx(shape.Pie,{data:R,pieValue:H=>zl(H.value),pieSort:null,pieSortValues:null,outerRadius:L,innerRadius:B,padAngle:h1,children:H=>H.arcs.map((G,Z)=>{let z=m===Z||m===null,W=H.path.centroid(G);return jsxRuntime.jsx("path",{d:H.path(G)??void 0,fill:G.data.color,opacity:z?1:.5,style:{cursor:s||l?"pointer":"default",transition:"opacity 150ms ease-out"},onMouseEnter:()=>O(Z,G.data,W),onMouseLeave:()=>O(null,null),onClick:()=>s?.(G.data,Z),...E?{role:"button",tabIndex:0,"aria-label":x1(G.data,T,P.format),onFocus:()=>O(Z,G.data,W),onBlur:()=>O(null,null),onKeyDown:q=>{q.key!=="Enter"&&q.key!==" "||(q.preventDefault(),s?.(G.data,Z));}}:{}},G.data.label)})})})}),I?jsxRuntime.jsx("ul",{className:"flex min-w-0 flex-col gap-1 overflow-y-auto py-2 text-xs",children:R.map((H,G)=>jsxRuntime.jsxs("li",{className:"flex items-center gap-2",style:{opacity:m===G||m===null?1:.5},onMouseEnter:()=>O(G,H),onMouseLeave:()=>O(null,null),children:[jsxRuntime.jsx("span",{className:"h-3 w-3 flex-shrink-0 rounded-sm",style:{backgroundColor:H.color}}),jsxRuntime.jsx("span",{className:"truncate text-text-primary",title:H.label,children:H.label}),jsxRuntime.jsxs("span",{className:"ml-auto flex-shrink-0 tabular-nums text-text-secondary",children:[P.format(H.value)," (",(zl(H.value)/T*100).toFixed(1),"%)"]})]},H.label))}):null,i&&jsxRuntime.jsx(Co,{data:g,formatter:n,label:y??void 0})]})};function Ph(){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 v1=d3Array.bisector(e=>e.xValue).left,C1=(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 Rh(e){let{mouseX:t,datasets:r,seriesMetadata:o,seriesTypes:n,xScale:a,yScale:i,plotLeft:s,plotRight:l}=e,c=a.invert(t),d=r.map((p,g)=>{if(!p||p.length===0)return null;let f=v1(p,c,1);if(f===0)return {point:p[0],index:0,datasetIndex:g};if(f>=p.length)return {point:p[p.length-1],index:p.length-1,datasetIndex:g};let y=p[f-1],b=p[f];if(!y||!b)return null;let h=Math.abs(y.xValue.getTime()-c.getTime()),x=Math.abs(b.xValue.getTime()-c.getTime()),C=h<x;return {point:C?y:b,index:C?f-1:f,datasetIndex:g}}).filter(p=>p!==null&&o[p.datasetIndex]!==void 0).map(({point:p,index:g,datasetIndex:f})=>({label:o[f].label,value:p.yValue,baselineValue:C1(o[f],p,g),color:o[f].color,point:p,type:n[f]}));if(d.length===0)return null;let u=a(d[0].point.xValue),m=u>(s+l)/2;return {xValue:d[0].point.xValue,series:d.map(({label:p,value:g,baselineValue:f,color:y,point:b,type:h})=>({label:p,value:g,...f!==void 0?{baselineValue:f}:{},chartY:b.chartYValue??g,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 Lh=e=>e instanceof Date&&!Number.isNaN(e.getTime()),T1=160;function Hl(e,t,r){let[o,n]=Qe.useState(null);Qe.useImperativeHandle(r,()=>({setPreview:n}),[]);let[a,i]=e.range(),s=Qe.useMemo(()=>o?d3Scale.scaleTime().domain([new Date(o[0]),new Date(o[1])]).range([a,i]):e,[o,e,a,i]),l=s.domain(),c=l[0],d=l[l.length-1],u=Lh(c)&&Lh(d),m=t<400,p=Math.max(2,Math.min(8,Math.floor(t/(m?70:110)))),g=Qe.useMemo(()=>{if(!u)return [];let f=i-a;if(f<=0)return s.ticks(p);let[y,b]=s.domain(),h=y.getTime(),x=b.getTime(),C=(x-h)/f,w=Math.min(T1,f),S=w*C,T=d3Scale.scaleTime().domain([new Date(h-S),new Date(x+S)]).range([a-w,i+w]),R=d3Time.timeTickInterval(y,b,p);if(R)return T.ticks(R);let P=Math.max(2,Math.round(p*(f+2*w)/f));return T.ticks(P)},[s,p,u,a,i]);return {activeScale:s,ticks:g,start:c,end:d,valid:u,compact:m,rangeStart:a,rangeEnd:i}}var E1=6,Dh=20,wp=Qe.forwardRef(({top:e,scale:t,width:r},o)=>{let{activeScale:n,ticks:a,start:i,end:s,valid:l,compact:c,rangeStart:d,rangeEnd:u}=Hl(t,r,o),m=a.length>=2?a[1].getTime()-a[0].getTime():s.getTime()-i.getTime(),p=Qe.useMemo(()=>l?ig(m,{compact:c}):()=>"",[m,c,l]),g=Qe.useId(),f=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:g,children:jsxRuntime.jsx("rect",{x:f,y:e-4,width:y,height:Dh+16})})}),jsxRuntime.jsx("g",{clipPath:`url(#${g})`,children:a.map(b=>jsxRuntime.jsxs("g",{transform:`translate(${n(b)},${e})`,children:[jsxRuntime.jsx("line",{x1:0,x2:0,y1:0,y2:E1,stroke:"var(--color-border-muted)",strokeWidth:1}),jsxRuntime.jsx("text",{x:0,y:Dh,textAnchor:"middle",fontSize:12,fill:"var(--color-text-secondary)",children:p(b)})]},b.getTime()))})]})]})});wp.displayName="LiveTimeAxisBottom";var Np=Qe.forwardRef(({scale:e,width:t,top:r,bottom:o},n)=>{let{activeScale:a,ticks:i,rangeStart:s,rangeEnd:l}=Hl(e,t,n),c=Qe.useId(),d=Math.min(s,l),u=Math.abs(l-s);return jsxRuntime.jsxs("g",{"aria-hidden":"true",children:[jsxRuntime.jsx("defs",{children:jsxRuntime.jsx("clipPath",{id:c,children:jsxRuntime.jsx("rect",{x:d,y:r,width:u,height:o-r})})}),jsxRuntime.jsx("g",{clipPath:`url(#${c})`,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())})})]})});Np.displayName="LiveTimeGridlines";function Gl(e,t,r){let o=e[1]-e[0],n=t/Math.max(1,r)*o;return [e[0]-n,e[1]-n]}function Ah(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 Tp(e,t,r=16,o=800){return t===1?e*r:t===2?e*o:e}var Ih=(e,t,r,o,n)=>{let a=t!==1?Ah(e,r,t):e;return o!==0&&(a=Gl(a,o,n)),a},Fh=(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]},F1=e=>typeof requestAnimationFrame=="function"?requestAnimationFrame(e):setTimeout(()=>e(0),0),B1=e=>{typeof cancelAnimationFrame=="function"?cancelAnimationFrame(e):clearTimeout(e);};function Bh(e){let{groupRef:t}=e,r=Qe.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=Qe.useRef(e.onCommit);o.current=e.onCommit;let n=Qe.useRef(e.panBoundsMs);n.current=e.panBoundsMs;let a=Qe.useRef(e.settleMs??140);a.current=e.settleMs??140;let i=Qe.useRef(e.zoomIntent??(k=>k.ctrlKey));i.current=e.zoomIntent??(k=>k.ctrlKey);let s=Qe.useRef(e.onGestureStart);s.current=e.onGestureStart;let l=Qe.useRef(e.onFramePreview);l.current=e.onFramePreview;let c=Qe.useRef(null),d=Qe.useRef({scale:1,cursorFrac:.5,panDxPx:0,timer:null}),u=Qe.useRef(null),m=Qe.useRef(null),p=Qe.useRef(false),g=Qe.useCallback((k,D,L)=>{m.current={translateX:k,scaleX:D,preview:L},u.current==null&&(u.current=F1(()=>{u.current=null;let B=m.current;B!=null&&(t.current?.setAttribute("transform",`translate(${B.translateX},0) scale(${B.scaleX},1)`),l.current?.(B.preview));}));},[t]),f=Qe.useCallback(()=>{u.current!=null&&(B1(u.current),u.current=null),m.current=null,t.current?.removeAttribute("transform"),l.current?.(null);},[t]),y=Qe.useCallback(()=>{p.current||(p.current=true,s.current?.());},[]),b=Qe.useCallback(()=>{p.current=false;},[]),h=Qe.useCallback(()=>{d.current.timer!=null&&(clearTimeout(d.current.timer),d.current.timer=null);},[]),x=Qe.useCallback(()=>{d.current={scale:1,cursorFrac:.5,panDxPx:0,timer:null};},[]),C=Qe.useCallback(()=>{let{xDomain:k,plotWidthPx:D}=r.current,{scale:L,cursorFrac:B,panDxPx:O}=d.current;L===1&&O===0||o.current(Fh(Ih(k,L,B,O,D),n.current));},[]),w=Qe.useCallback(()=>{d.current.timer!=null&&(h(),C(),x(),f());},[h,C,x,f]),S=Qe.useCallback(k=>{w(),k.currentTarget.setPointerCapture?.(k.pointerId),c.current={startX:k.clientX,dxPx:0},y();},[w,y]),T=Qe.useCallback(k=>{if(!c.current)return;c.current.dxPx=k.clientX-c.current.startX;let{xDomain:D,plotWidthPx:L}=r.current;g(c.current.dxPx,1,Gl(D,c.current.dxPx,L));},[g]),R=Qe.useCallback(k=>{if(!c.current)return;let{dxPx:D}=c.current;c.current=null,f(),b(),D!==0&&o.current(Fh(Gl(r.current.xDomain,D,r.current.plotWidthPx),n.current));},[f,b]),P=Qe.useCallback(()=>{c.current&&(c.current=null,f(),b());},[f,b]),E=Qe.useRef(null),I=Qe.useCallback(k=>{if(E.current?.(),E.current=null,!k)return;let D=L=>{if(c.current)return;let{plotWidthPx:B,plotLeftPx:O}=r.current,H=Tp(L.deltaY,L.deltaMode),G=Tp(L.deltaX,L.deltaMode),Z=i.current(L);if(!Z&&G===0)return;if(L.preventDefault(),y(),Z){let F=Math.min(1,Math.max(0,(L.clientX-k.getBoundingClientRect().left)/Math.max(1,B)));d.current.scale*=Math.exp(-H/200),d.current.cursorFrac=F;}else d.current.panDxPx-=G;let{scale:z,cursorFrac:W,panDxPx:q}=d.current;g((O+W*B)*(1-z)+q,z,Ih(r.current.xDomain,z,W,q,B)),h(),d.current.timer=setTimeout(()=>{C(),x(),f(),b();},a.current);};k.addEventListener("wheel",D,{passive:false}),E.current=()=>k.removeEventListener("wheel",D);},[g,f,h,C,x,y,b]);return Qe.useEffect(()=>()=>{E.current?.(),E.current=null,f(),d.current.timer!=null&&clearTimeout(d.current.timer);},[f]),{onPointerDown:S,onPointerMove:T,onPointerUp:R,onPointerCancel:P,wheelTargetRef:I,gestureActiveRef:p}}var Hh=e=>e.type===bn||e.type===Qn,W1=({children:e,title:t,headerActions:r,headerControls:o,viewport:n,panBounds:a,onViewportChange:i,onPlotWidthChange:s,yFormatter:l={type:"number"},yDomain:c,referenceLines:d,cameraSync:u,parentWidth:m=0,parentHeight:p=0})=>{let[g,f]=Qe.useState(null),y=Qe.useRef(null),b=Qe.useRef(0),h=Qe.useId(),x=Qe.useRef(null),C=Qe.useRef(null),w=Qe.useRef(null),{colorMode:S}=jt(),T=Qe.useMemo(()=>Oo(),[S]),R=Qe.useMemo(()=>Ni(),[S]),{datasets:P,seriesMetadata:E,seriesTypes:I}=Qe.useMemo(()=>{let ne=Qe.Children.toArray(e).filter(de=>Qe.isValidElement(de)&&Hh(de)),Me=ne.filter(de=>de.props.data).length,Re=[],K=[],U=[];return ne.forEach((de,oe)=>{let xe=de.props;if(!xe.data)return;Re.push(xe.data);let _=("color"in xe&&xe.color?xe.color:void 0)||(Me===1?R:T[oe%T.length]),ue=de.type===bn;K.push({label:"label"in xe&&xe.label||`Series ${Re.length}`,color:_,...ue&&"baseline"in xe&&xe.baseline!==void 0?{baseline:xe.baseline,tooltipRange:"tooltipRange"in xe&&xe.tooltipRange||false}:{}}),U.push(ue?"area":"line");}),{datasets:Re,seriesMetadata:K,seriesTypes:U}},[e,R,T]),k=qn(t),D=k.expandedSize?.width??m,L=r||k.action?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[r,k.action]}):void 0,{headerRef:B,headerHeight:O}=za(!!L,!!o),H=Math.max(100,(k.expandedSize?.height??p)-O-60),G=Qe.useMemo(()=>[new Date(n.startMs),new Date(n.endMs)],[n.startMs,n.endMs]),Z=Qe.useMemo(()=>{let ne=P.flat(),Me=ne.filter(Re=>{let K=Re.xValue.getTime();return K>=n.startMs&&K<=n.endMs});return Me.length>0?Me:ne},[P,n.startMs,n.endMs]),z=Qe.useMemo(()=>{let ne=Ui(Z,H,l,c);if(!c){let[Me,Re]=ne.domain();Re>Me&&ne.domain([Me,Re+(Re-Me)*.05]);}return ne},[Z,H,l,c]),W=Qe.useRef(JSON.stringify(l)),q=Qe.useRef(null),F=Qe.useMemo(()=>{let[ne,Me]=z.domain(),Re=Math.max(Math.abs(ne),Math.abs(Me)),K=JSON.stringify(l);if(K!==W.current&&(W.current=K,q.current=null),q.current!==null)return q.current;if(Re===0)return Za(l,0);let U=Za(l,Re);return q.current=U,U},[z,l]),X=Qe.useMemo(()=>{let ne=H-Ge.top-Ge.bottom;return _a(ne)},[H]),N=Qe.useMemo(()=>{let ne=Dr(F),Me=ne.tickFormat||ne.format,K=z.ticks(X).map(oe=>Me(oe)),U=hn(K,12,"system-ui"),de=Math.ceil(U)+12;return {...Ge,left:Math.max(de,30)}},[z,F,X]),v=Qe.useMemo(()=>scale.scaleTime({domain:G,range:[N.left,D-N.right]}),[G,D,N]),M=Qe.useMemo(()=>[n.startMs,n.endMs],[n.startMs,n.endMs]),A=Qe.useMemo(()=>a?[a.startMs,a.endMs]:void 0,[a]),J=Qe.useCallback(ne=>{i({startMs:ne[0],endMs:ne[1]});},[i]),ae=D-N.left-N.right,le=Qe.useCallback(()=>f(null),[]),$=Qe.useRef({}),ie=Qe.useRef(u);ie.current=u;let Ee=Qe.useCallback(ne=>{C.current?.setPreview(ne),w.current?.setPreview(ne),ie.current?.publish($.current,ne);},[]),{onPointerDown:pe,onPointerMove:ge,onPointerUp:re,onPointerCancel:se,wheelTargetRef:ve,gestureActiveRef:je}=Bh({xDomain:M,plotWidthPx:ae,plotLeftPx:N.left,groupRef:x,onCommit:J,onGestureStart:le,onFramePreview:Ee,...A?{panBoundsMs:A}:{}}),Ze=Qe.useRef({startMs:n.startMs,endMs:n.endMs,left:0,width:0});Ze.current={startMs:n.startMs,endMs:n.endMs,left:N.left,width:ae},Qe.useEffect(()=>{if(!u)return;let ne=()=>{x.current?.removeAttribute("transform"),C.current?.setPreview(null),w.current?.setPreview(null);},Me=K=>{if(je.current)return;if(K==null){ne();return}let{startMs:U,endMs:de,left:oe,width:xe}=Ze.current,Oe=de-U,_=K[1]-K[0];if(Oe<=0||_<=0||xe<=0)return;let ue=Oe/_,Q=oe*(1-ue)+(U-K[0])*xe/_;x.current?.setAttribute("transform",`translate(${Q},0) scale(${ue},1)`),C.current?.setPreview(K),w.current?.setPreview(K);},Re=u.subscribe($.current,Me);return ()=>{Re(),je.current||ne();}},[u,je]),Qe.useEffect(()=>{s?.(Math.max(0,D-N.left-N.right));},[D,N,s]);let wr=Qe.useCallback(ne=>{if(je.current)return;let{left:Me}=y.current?.getBoundingClientRect()||{left:0},Re=ne.clientX-Me;ne.timeStamp-(b.current||0)<16||(b.current=ne.timeStamp,f(Rh({mouseX:Re,datasets:P,seriesMetadata:E,seriesTypes:I,xScale:v,yScale:z,plotLeft:N.left,plotRight:D-N.right})));},[P,E,I,v,z,D,N,je]),Dt=Qe.useCallback(()=>f(null),[]),Nr=kl(),Tr={width:D,height:H,xScale:v,yScale:z,yFormatter:F,animationSettings:Tl,entrance:Nr,tooltip:{data:g,show:f,hide:()=>f(null)},datasets:P,seriesMetadata:E,seriesTypes:I},xt=0,Zt=[];Qe.Children.toArray(e).forEach(ne=>{if(!Qe.isValidElement(ne)){Zt.push(ne);return}if(Hh(ne)){let Me=xt;xt++;let Re=ne.props;Zt.push(Qe__namespace.default.cloneElement(ne,{...Re,color:E[Me]?.color,animate:false}));}else Zt.push(ne);});let ee=E.map(ne=>({category:ne.label,fill:ne.color})),We=Il({datasets:P,metadata:{xLabel:"Date",yLabel:"Value",seriesLabels:E.map(ne=>ne.label),timestamp:true},svgRef:y}),$e=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("title",{children:t}),jsxRuntime.jsx("g",{children:z.ticks(X).map(ne=>{let Me=Math.abs(ne)<Number.EPSILON;return jsxRuntime.jsx(shape.Line,{from:{x:N.left,y:z(ne)},to:{x:D-N.right,y:z(ne)},stroke:Me?"var(--color-border-default)":"var(--color-border-muted)",strokeWidth:Me?1.5:1},`grid-line-${ne}`)})}),jsxRuntime.jsx(Np,{ref:w,scale:v,width:D-N.left-N.right,top:z.range()[1],bottom:z.range()[0]}),jsxRuntime.jsx("defs",{children:jsxRuntime.jsx("clipPath",{id:h,children:jsxRuntime.jsx("rect",{x:v.range()[0],y:z.range()[1],width:v.range()[1]-v.range()[0],height:z.range()[0]-z.range()[1]})})}),jsxRuntime.jsx("g",{clipPath:`url(#${h})`,children:jsxRuntime.jsx("g",{"data-camera-plot-group":"",ref:x,children:Zt})}),d&&d.length>0&&jsxRuntime.jsx("g",{children:d.map((ne,Me)=>{let Re=z(ne.value),K=ne.color??"var(--color-error-base)";return jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx(shape.Line,{from:{x:N.left,y:Re},to:{x:D-N.right,y:Re},stroke:K,strokeWidth:1.5,strokeDasharray:"6 4"}),ne.label&&jsxRuntime.jsx("text",{x:D-N.right-4,y:Re-4,textAnchor:"end",fontSize:11,fill:K,children:ne.label})]},`ref-line-${Me}`)})}),jsxRuntime.jsx(wp,{ref:C,top:H-N.bottom,scale:v,width:D-N.left-N.right}),jsxRuntime.jsx(Xr.Left,{left:N.left,scale:z,yFormatter:F,height:H-N.top-N.bottom}),g&&!g.isEvent&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(shape.Line,{"data-testid":"chart-hover-crosshair",from:{x:v(g.xValue),y:z.range()[1]},to:{x:v(g.xValue),y:z.range()[0]},stroke:"var(--color-text-secondary)",strokeWidth:1,strokeDasharray:"3 3",opacity:.7}),g.series.filter(ne=>ne.type!=="bar"&&ne.showMarker!==false).map(ne=>jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("circle",{cx:v(g.xValue),cy:z(ne.chartY??ne.value),r:8,fill:"white",stroke:ne.color,strokeWidth:2,style:{transition:"all 100ms ease-out"}}),jsxRuntime.jsx("circle",{cx:v(g.xValue),cy:z(ne.chartY??ne.value),r:4,fill:ne.color,style:{transition:"all 100ms ease-out"}})]},`highlight-${ne.label}`))]}),jsxRuntime.jsx("rect",{"data-camera-surface":"",x:N.left,y:N.top,width:D-N.left-N.right,height:H-N.top-N.bottom,fill:"transparent",style:{cursor:"grab",touchAction:"none"},onMouseMove:wr,onMouseLeave:Dt,onPointerDown:pe,onPointerMove:ge,onPointerUp:re,onPointerCancel:se,ref:ve})]});return k.present(jsxRuntime.jsx("div",{className:"relative flex h-full flex-col",children:jsxRuntime.jsxs(Jr.Provider,{value:Tr,children:[jsxRuntime.jsx(Ha,{title:t,controls:o,actions:L,containerRef:B,marginRight:N.right}),jsxRuntime.jsx("svg",{width:D,height:H,className:"overflow-visible",ref:y,role:"img","aria-label":t,children:$e}),jsxRuntime.jsx(Co,{data:g,formatter:F}),jsxRuntime.jsx(ei,{onExport:We,items:ee,marginLeft:0,marginRight:N.right})]})}))},Wl=responsive.withParentSize(W1);function Ul(e,t,r,o){if(r.length===0)throw new Error("tierForViewport: resolution ladder is empty");let n=[...r].sort((s,l)=>s.bucketMs-l.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 U1(e,t){return Math.floor(e/t.tileSpanMs)}function xn(e,t,r){let o=U1(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 hr=(e,t)=>`${e}:${t}`;var Gh={erroredTiles:0};function Rp(e,t){let r=new Map,o=new Map,n=new Map,a=0;for(let d of e){let u=t.get(hr(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 g=n.get(m);g||(g=new Map,n.set(m,g));for(let f of p)g.set(f.xValue.getTime(),f);}}}}let i=(d,u)=>d.xValue.getTime()-u.xValue.getTime(),s=[...r.values()].sort(i),l=[...o.values()].sort(i),c=Object.fromEntries([...n.entries()].map(([d,u])=>[d,[...u.values()].sort(i)]));return {line:s,band:l,lines:c,coverage:{earliestMs:s.length?s[0].xValue.getTime():void 0,latestMs:s.length?s[s.length-1].xValue.getTime():void 0,erroredTiles:a}}}function K1(e,t,r){let o=xn(e,t,0);return o.length===0?false:o.every(n=>{let a=r.get(hr(n.tierId,n.index));return a!=null&&(a.status==="loaded"||a.status==="empty")})}function Wh(e,t,r){return xn(e,t,0).some(n=>{let a=r.get(hr(n.tierId,n.index));return a?.status==="loaded"&&(a.data?.line.length??0)>0})}function Y1(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 Uh({viewport:e,targetTier:t,ladder:r,store:o,overscanTiles:n,prev:a}){let i=K1(e,t,o);if(i&&Wh(e,t,o)){let l=xn(e,t,n),{line:c,band:d,lines:u,coverage:m}=Rp(l,o);return {line:c,band:d,lines:u,renderTier:t,targetTier:t,isFallback:false,isStale:false,coverage:m}}let s=r.findIndex(l=>l.id===t.id);for(let l=s+1;l<r.length;l++){let c=r[l];if(Wh(e,c,o)){let d=xn(e,c,n),{line:u,band:m,lines:p,coverage:g}=Rp(d,o);return {line:u,band:m,lines:p,renderTier:c,targetTier:t,isFallback:true,isStale:false,coverage:g}}}if(i){let l=xn(e,t,n),{line:c,band:d,lines:u,coverage:m}=Rp(l,o);return {line:c,band:d,lines:u,renderTier:t,targetTier:t,isFallback:false,isStale:false,coverage:m}}return a?Y1(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:Gh}:{line:[],band:[],lines:{},renderTier:null,targetTier:t,isFallback:false,isStale:false,coverage:Gh}}var Kh=new Map;function Yh(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 Xh({refs:e,refsKey:t,store:r,tier:o,viewport:n,fetchTile:a,dispatch:i,concurrency:s,maxFutureMs:l}){let c=Qe.useRef(e);c.current=e;let d=Qe.useRef(n);d.current=n;let u=Qe.useRef(new Map),m=Qe.useCallback(()=>{for(let p of u.current.values())p.ac.abort();u.current.clear();},[]);return Qe.useEffect(()=>{for(let[b,h]of u.current)h.tierId!==o.id&&(h.ac.abort(),u.current.delete(b));let p=c.current.filter(b=>{let h=hr(b.tierId,b.index),x=r.get(h);return x?x.status==="loading"&&!u.current.has(h):true}),g=(d.current.startMs+d.current.endMs)/2;p.sort((b,h)=>Math.abs((b.startMs+b.endMs)/2-g)-Math.abs((h.startMs+h.endMs)/2-g));let f=Math.max(0,s-u.current.size),y=p.slice(0,f);if(y.length!==0){i({type:"request",ids:y.map(b=>hr(b.tierId,b.index))});for(let b of y){let h=hr(b.tierId,b.index),x=new AbortController;u.current.set(h,{ac:x,tierId:b.tierId});let C=l!=null?Math.min(b.endMs,l):b.endMs;a(o,b.startMs,C,x.signal).then(w=>{x.signal.aborted||i({type:"fulfilled",id:h,data:w});}).catch(w=>{if(!x.signal.aborted){let S=w instanceof Error?w.message:String(w);i({type:"failed",id:h,error:new Error(`tile fetch failed (tile ${h}, tier ${o.id}): ${S}`)});}}).finally(()=>{u.current.delete(h);});}}},[t,r,a,o,i,s,l]),Qe.useEffect(()=>m,[m]),{abortAll:m}}var Qh=1.3,j1=25e4,q1=3;function Q1(e,t,r){let o=t.tileSpanMs/t.bucketMs,n=Math.max(1,Math.floor(j1/o/r));return Math.min(Math.max(1,Math.ceil(.5*e/t.tileSpanMs)),n)}function _h(e){let{fetchTile:t,ladder:r,nativeMs:o,viewport:n,widthPx:a,maxFutureMs:i,targetPointsPerPx:s=1,concurrency:l=3,tileCostSeriesCount:c=q1,resetKey:d}=e,u=Qe.useMemo(()=>({targetPointsPerPx:s,nativeMs:o}),[s,o]),[m,p]=Qe.useState(()=>Ul(n.endMs-n.startMs,Math.max(1,a),r,u)),[g,f]=Qe.useReducer(Yh,Kh),y=Qe.useRef(n.endMs-n.startMs),b=Qe.useRef(u);Qe.useEffect(()=>{let O=n.endMs-n.startMs,H=Ul(O,Math.max(1,a),r,u);if(H.id===m.id){b.current=u;return}let Z=Ul(O,Math.max(1,a),r,b.current).id!==H.id,z=O/y.current;(Z||z>Qh||z<1/Qh)&&(y.current=O,b.current=u,p(H));},[n,a,r,m.id,u]);let h=n.endMs-n.startMs,x=Qe.useMemo(()=>Q1(h,m,c),[h,m,c]),C=Qe.useMemo(()=>xn(n,m,x),[n,m,x]),w=Qe.useMemo(()=>C.map(O=>hr(O.tierId,O.index)).join(","),[C]),S=Qe.useRef(C);S.current=C;let T=Qe.useRef(n);T.current=n;let R=Qe.useRef(g);R.current=g;let{abortAll:P}=Xh({refs:C,refsKey:w,store:g,tier:m,viewport:n,fetchTile:t,dispatch:f,concurrency:l,...i!=null?{maxFutureMs:i}:{}}),E=Qe.useRef(null),I=Qe.useRef(false);Qe.useEffect(()=>{if(!I.current){I.current=true;return}P(),E.current=null,f({type:"reset"});},[P,d]);let k=Qe.useMemo(()=>S.current.map(O=>`${hr(O.tierId,O.index)}:${g.get(hr(O.tierId,O.index))?.status??"\u2205"}`).join("|"),[w,g]),D=Qe.useMemo(()=>{let O=Uh({viewport:T.current,targetTier:m,ladder:r,store:R.current,overscanTiles:x,prev:E.current});return E.current=O,O},[k,m,r,x,n.startMs,n.endMs]),L=Qe.useMemo(()=>S.current.some(O=>R.current.get(hr(O.tierId,O.index))?.status==="loading"),[k]),B=Qe.useMemo(()=>{let O=S.current[0];return O?R.current.get(hr(O.tierId,O.index))?.status==="empty":false},[k]);return {tier:m,series:D,loading:L,atDataStart:B}}function Mp(e){let{initialViewport:t,...r}=e,[o,n]=Qe.useState(t),a=_h({...r,viewport:o}),i=Qe.useCallback(l=>n(l),[]),s=Qe.useCallback(l=>n(l),[]);return {viewport:o,onViewportChange:i,jumpTo:s,...a}}var Z1={sm:"gap-4 px-6 py-8",md:"gap-5 px-8 py-12",lg:"gap-6 px-10 py-16"},_1={sm:"xs",md:"sm",lg:"md"},$1={sm:kt("bodySm"),md:kt("bodySm"),lg:kt("bodyMd")},eR={sm:"h-10 w-10",md:"h-12 w-12",lg:"h-16 w-16"},tR={sm:20,md:24,lg:32},rR={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"},oR={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 Kl({icon:e,title:t,description:r,primaryAction:o,secondaryAction:n,actions:a,size:i="md",alignment:s="center",variant:l="default",spotlightPattern:c="mesh",fullHeight:d=false,className:u}){let m=i==="sm"?"sm":"md",p=l==="spotlight",g=p?{background:oR[c]}:void 0,f=()=>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(te,{variant:"secondary",size:m,onPress:o.onPress,isDisabled:o.isDisabled,isLoading:o.isLoading,href:o.href,children:o.label}):jsxRuntime.jsx(te,{variant:"secondary",size:m,onPress:o.onPress,isDisabled:o.isDisabled,isLoading:o.isLoading,children:o.label})),n&&jsxRuntime.jsx(ut,{href:n.href||"#",variant:"muted",onPress:n.onPress,className:kt("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",Z1[i],rR[s],d?"h-full justify-center":"",p?"relative overflow-hidden":"",u),style:g,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",eR[i]),children:jsxRuntime.jsx(V,{name:e,size:tR[i]})}),jsxRuntime.jsx(lr,{size:_1[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",$1[i]),children:r}),f()]})}var aR=1440*60*1e3,iR=[{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}],sR=[{id:"day",days:1},{id:"week",days:7},{id:"month",days:30}];function ex(e,t=Date.now){return sR.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 Yl(e=Date.now){return iR.map(({id:t,label:r,days:o})=>({id:t,label:r,getRange:()=>{let n=e();return {after:new Date(n-o*aR),before:new Date(n)}}}))}function mR({selectionState:e,isDisabled:t}){let r=`${rt} 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 ni({errorMessage:e,...t}){return jsxRuntime.jsxs(reactAriaComponents.RangeCalendar,{...t,children:[jsxRuntime.jsx(vl,{}),jsxRuntime.jsxs(reactAriaComponents.CalendarGrid,{className:"w-full border-separate [border-spacing:0] [&_td]:p-0 [&_td]:!border-0",children:[jsxRuntime.jsx(Cl,{}),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:l})=>jsxRuntime.jsx("span",{className:mR({selectionState:n&&(a||i)?"cap":n?"middle":"none",isDisabled:l}),children:o})})})]}),e&&jsxRuntime.jsx(reactAriaComponents.Text,{slot:"errorMessage",className:"text-sm text-feedback-error-text",children:e})]})}function rx(e){return e==="brand"?"primary":e==="default"||e==="secondary"||!e?"subtle":e}var gR={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"},bR={sm:14,md:16,lg:18,xl:20},hR=({isSelected:e,isFirst:t,isLast:r,isDisabled:o,variant:n="subtle"})=>{let a=rx(n),i=a==="primary"?"focus-visible:outline-action-primary":"focus-visible:outline-[color:var(--color-action-secondary-text)]";return a==="subtle"?tailwindMerge.twMerge(rt(),"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(rt(),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 Xl({options:e,value:t,onChange:r,size:o="md",className:n,isDisabled:a,variant:i="subtle",iconOnly:s=false,"aria-label":l}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("inline-flex overflow-hidden rounded-[var(--control-border-radius)]",rx(i)==="subtle"?"border border-border-muted":"border-2 border-border-muted",gR[o],n),role:"group","aria-label":l,children:e.map((c,d)=>{let u=s&&!!c.icon;return jsxRuntime.jsxs(reactAriaComponents.ToggleButton,{isSelected:t===c.id,onChange:()=>r(c.id),className:hR({isSelected:t===c.id,isFirst:d===0,isLast:d===e.length-1,isDisabled:a,variant:i}),isDisabled:a,"aria-label":c.label,children:[c.icon&&jsxRuntime.jsx(V,{name:c.icon,size:bR[o]}),u?jsxRuntime.jsx("span",{className:"sr-only",children:c.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":c.label,children:c.label})]},c.id)})})}function CR(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function Ip(e){return CR(e)?e:(console.warn("Invalid date detected in TimeControls, using fallback:",e),new Date)}var lx=120*1e3,SR=.02,cx={FIVE_MINUTES:0,FIFTEEN_MINUTES:1,HOUR:2,DAY:3,WEEK:4,MONTH:5,YEAR:6},wR=[{id:"FIFTEEN_MINUTES",label:"15m"},{id:"HOUR",label:"1h"},{id:"DAY",label:"1d"},{id:"WEEK",label:"1w"}];function jl({dateRange:e,onDateRangeChange:t,windowSize:r,onWindowSizeChange:o,showWindowSize:n=true,showRangeSelector:a=true,allowDatePicker:i=false,lockWindowSize:s=false,showReset:l=true,restrictToSingleDay:c=false,presetRanges:d=[],windowSizeOptions:u=wR,autoAdjustWindowSize:m=false,className:p}){let[g,f]=Qe.useState(0),y=Qe.useRef(null),[b,h]=Qe.useState(false),[x,C]=Qe.useState(null),w=N=>{let M=(N.before.getTime()-N.after.getTime())/(1e3*60*60);return M<=24?"FIFTEEN_MINUTES":M<=72||M<=168?"HOUR":("DAY")};Qe.useEffect(()=>{if(m&&!b&&o){let N=w(e);o(N);}},[e,m,b,o]);let S=N=>{let v;for(let M of d){let A=M.getRange(),J=(A.before.getTime()-A.after.getTime())*SR,ae=Math.abs(A.after.getTime()-N.after.getTime()),le=Math.abs(A.before.getTime()-N.before.getTime());if(ae>J||le>J)continue;let $=ae+le;(!v||$<v.distance)&&(v={id:M.id,distance:$});}return v?.id},T=x&&d.some(N=>N.id===x.id)&&Math.abs(x.after-e.after.getTime())<=lx&&Math.abs(x.before-e.before.getTime())<=lx?x.id:S(e),R=Ip(e.after),P=Ip(e.before),E=new Date(P.getTime()-1),I={start:date.fromDate(R,date.getLocalTimeZone()),end:date.fromDate(E,date.getLocalTimeZone())};Qe.useEffect(()=>{let N=new ResizeObserver(v=>{for(let M of v)f(M.contentRect.width);});return y.current&&N.observe(y.current),()=>{y.current&&N.unobserve(y.current);}},[]);let k=[...u].sort((N,v)=>cx[N.id]-cx[v.id]),D=N=>{let v=N.toString(),M=d.find(A=>A.id===v);if(M){let A=M.getRange();C({id:v,after:A.after.getTime(),before:A.before.getTime()}),h(false),t(A,{presetId:v});}},L=N=>{if(N?.start&&N?.end){C(null);let v=new Date(N.start.year,N.start.month-1,N.start.day,0,0,0,0),M=new Date(N.end.year,N.end.month-1,N.end.day+1,0,0,0,0);t({after:v,before:M});}},B=N=>{if(N){C(null);let v=new Date(N.year,N.month-1,N.day,0,0,0,0),M=new Date(N.year,N.month-1,N.day+1,0,0,0,0);t({after:v,before:M});}},O=N=>{o&&(h(true),o(N.toString()));},H=()=>{d.length>0&&D(d[0].id);},G=N=>Ip(N).toLocaleDateString("en-US"),Z=k.map(N=>({id:N.id,label:N.label,value:N.id})),z=d.map(N=>({id:N.id,label:N.label,value:N.id})),W=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:k.find(N=>N.id===r)?.label||r}):jsxRuntime.jsx(zo,{className:"w-full md:w-auto",selectedKey:r,onSelectionChange:O,items:Z,size:"md","aria-label":"Select Window Size",children:N=>jsxRuntime.jsx(pr,{id:N.id,"aria-label":N.label,size:"md",children:N.label},N.id)}),q=l&&!T&&d.length>0,F=c?jsxRuntime.jsx("div",{className:"flex items-center",children:jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{children:[jsxRuntime.jsxs(te,{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:G(e.after)})]}),jsxRuntime.jsx(vt,{className:"z-50 w-auto p-3",disableGroup:true,children:jsxRuntime.jsx(Xa,{"aria-label":"Select date",value:date.parseDate(R.toISOString().split("T")[0]),onChange:B})})]})}):jsxRuntime.jsxs("div",{className:"flex items-center",children:[jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{children:[jsxRuntime.jsxs(te,{className:tailwindMerge.twMerge("border-l pl-2 pr-2 hover:border-border-default hover:bg-background-muted hover:text-text-link-hover",q&&"rounded-r-none"),variant:"secondary",children:[jsxRuntime.jsx(V,{name:"CalendarBlank",size:18}),!T&&jsxRuntime.jsx("span",{className:"ml-2 hidden md:block",children:`${G(e.after)} - ${G(E)}`})]}),jsxRuntime.jsx(vt,{className:"z-50 w-auto p-3",disableGroup:true,children:jsxRuntime.jsx(ni,{"aria-label":"Date range calendar",value:I,onChange:L})})]}),q&&jsxRuntime.jsx(te,{variant:"ghost",size:"md",onPress:H,children:"Reset"})]}),X=g<600;return jsxRuntime.jsx("div",{ref:y,className:tailwindMerge.twMerge("flex w-full flex-wrap items-center justify-between gap-4",p),children:X?jsxRuntime.jsxs("div",{className:"flex w-full justify-between",children:[jsxRuntime.jsxs("div",{className:"flex items-center",children:[i&&F,a&&d.length>0&&jsxRuntime.jsx(zo,{selectedKey:T??"",onSelectionChange:D,items:z,size:"md","aria-label":"Select Date Range",children:N=>jsxRuntime.jsx(pr,{id:N.id,size:"md",children:N.label},N.id)})]}),jsxRuntime.jsx("div",{className:"flex items-center",children:n&&r&&W})]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-4",children:[i&&F,a&&d.length>0&&jsxRuntime.jsx(Xl,{options:d.map(N=>({id:N.id,label:N.label})),value:T??"",onChange:D,size:"sm",variant:"secondary","aria-label":"Select Date Range"})]}),jsxRuntime.jsx("div",{className:"flex items-center",children:n&&r&&W})]})})}var RR=1440*60*1e3,ER=6e4,dx=(e,t)=>({startMs:t-e*RR,endMs:t}),MR=e=>({after:new Date(e.startMs),before:new Date(e.endMs)});function ux({source:e,title:t,initialRange:r,viewportEnd:o,yFormatter:n,yDomain:a,referenceLines:i,emptyState:s,presetRanges:l,tierToWindow:c,windowSizeOptions:d,height:u=360,hint:m,dataBounds:p,children:g}){let[f,y]=Qe.useState(900),b=p?.endMs,[h,x]=Qe.useState(()=>b??Date.now());Qe.useEffect(()=>{if(b!=null){x(b);return}x(Date.now());let re=setInterval(()=>x(Date.now()),ER);return ()=>clearInterval(re)},[b]);let C=o?.getTime()??b,w=r?.days??30,S=Qe.useMemo(()=>dx(w,C??Date.now()),[w,C]),T=h,R=Qe.useMemo(()=>({startMs:p?.startMs??0,endMs:h}),[p?.startMs,h]),P=re=>{let se=Math.min(re.endMs-re.startMs,R.endMs-R.startMs),ve=Math.max(Math.min(re.endMs,R.endMs),R.startMs+se);return {startMs:ve-se,endMs:ve}},[E,I]=Qe.useState(null),[k,D]=Qe.useState(null),L=E??S,B=Mp({fetchTile:e.fetchTile,ladder:e.ladder,nativeMs:e.nativeMs,initialViewport:S,widthPx:f,maxFutureMs:T,tileCostSeriesCount:e.tileCostSeriesCount,resetKey:e.resetKey}),O=Qe.useMemo(()=>Yl(()=>C??Date.now()),[C]),H=l??O,G=()=>{if(k&&"presetId"in k){let re=H.find(se=>se.id===k.presetId);if(re){let se=re.getRange();return {startMs:se.after.getTime(),endMs:se.before.getTime()}}}return k&&"range"in k?k.range:dx(w,C??Date.now())},{line:Z,coverage:z,renderTier:W,targetTier:q,isFallback:F,isStale:X}=B.series,N=W?W.bucketMs*1.5:0,v=re=>re==null?"\u2014":new Date(re).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),M=(re,se)=>{let ve=se-re<1728e5?{month:"short",day:"numeric",hour:"numeric",minute:"2-digit"}:{month:"short",day:"numeric",year:"numeric"},je=new Intl.DateTimeFormat("en-US",ve);return `${je.format(new Date(re))} \u2013 ${je.format(new Date(se))}`},A=B.viewport.startMs!==L.startMs||B.viewport.endMs!==L.endMs,J=X||B.loading&&z.earliestMs==null,ae=(B.viewport.endMs-B.viewport.startMs)*.03,le=!J&&z.earliestMs!=null&&z.earliestMs>B.viewport.startMs+ae,$=!B.loading&&z.earliestMs==null&&z.latestMs==null&&Z.length===0&&!X,ie=qn(t),Ee=g({series:B.series,gapMs:N}),pe=Qe.isValidElement(Ee)&&Ee.type===Qe.Fragment?Ee.props.children:Ee,ge=jsxRuntime.jsxs("div",{className:`flex flex-col gap-3${ie.isExpanded?" h-full":""}`,children:[jsxRuntime.jsxs("div",{className:"flex items-start gap-2",children:[jsxRuntime.jsx(jl,{dateRange:MR(B.viewport),onDateRangeChange:(re,se)=>{let ve=P({startMs:re.after.getTime(),endMs:re.before.getTime()});D(se?.presetId?{presetId:se.presetId}:{range:ve}),I(ve),B.jumpTo(ve);},windowSize:c[q.id],windowSizeOptions:d,lockWindowSize:true,presetRanges:H,allowDatePicker:true,showReset:false}),!ie.isExpanded&&!$&&ie.action]}),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:M(B.viewport.startMs,B.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:W?.id??q.id}),F&&jsxRuntime.jsxs("span",{className:"text-text-tertiary",children:[" \xB7 loading ",q.id]})]}),B.loading&&jsxRuntime.jsx("span",{className:"text-text-tertiary",children:"loading\u2026"}),le&&jsxRuntime.jsxs("span",{className:"text-text-tertiary",children:["showing available history from ",v(z.earliestMs)]}),!le&&!J&&B.atDataStart&&jsxRuntime.jsx("span",{className:"text-text-tertiary",children:"no earlier data loaded"}),A&&jsxRuntime.jsx(te,{variant:"ghost",size:"sm",onPress:()=>{let re=P(G());I(re),B.jumpTo(re);},children:"\u27F2 Reset"})]}),jsxRuntime.jsx("div",{className:`relative overflow-hidden rounded-md border border-border-subtle${ie.isExpanded?" min-h-0 flex-1":""}`,style:ie.isExpanded?void 0:{height:u},children:$?jsxRuntime.jsx(Kl,{title:s.title,description:s.description}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Wl,{title:t,viewport:B.viewport,panBounds:R,onViewportChange:B.onViewportChange,onPlotWidthChange:y,...n&&{yFormatter:n},...a&&{yDomain:a},...i&&{referenceLines:i},children:pe}),B.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})]});return jsxRuntime.jsx(hp,{children:ie.present(ge)})}function ts({count:e,label:t="results",isLoading:r=false,className:o=""}){if(r)return jsxRuntime.jsx("div",{className:`flex items-center ${o}`,children:jsxRuntime.jsx(Y,{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 BR=e=>{let t=zt({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 qr({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,transparent:i,showSearchIcon:s,isClearable:l,onClear:c,type:d,validationResult:u,reserveErrorSpace:m=true,isLoading:p=false,descriptionPlacement:g="below",...f}){let[y,b]=Qe__namespace.default.useState(false),{isFocused:h,handleFocus:x,handleBlur:C}=ur(),w=d==="password",S=dl(p,300);return jsxRuntime.jsx(reactAriaComponents.TextField,{...f,isRequired:a,className:Ae(f.className,"group flex flex-col"),children:({isDisabled:T,isInvalid:R})=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(Ye,{size:o,tooltip:n,description:g==="tooltip"||g==="inline"?t:void 0,descriptionPlacement:g,isRequired:a,children:e}),jsxRuntime.jsxs(St,{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 P={sm:14,md:16,lg:18,xl:20}[o];return S?jsxRuntime.jsx(Wr,{size:P,color:"text-text-secondary"}):jsxRuntime.jsx(V,{name:"MagnifyingGlass",size:P,className:`transition-colors ${h?"text-action-brand":"text-text-secondary"}`})})()}),jsxRuntime.jsx(pl,{size:o,disabled:T,type:w?y?"text":"password":d,name:f.name,autoComplete:f.autoComplete,value:f.value,defaultValue:f.defaultValue,placeholder:f.placeholder,onFocus:P=>x(P,f.onFocus),onBlur:P=>C(P,f.onBlur),onChange:P=>f.onChange?.(P.target.value),style:s?{paddingLeft:{sm:28,md:32,lg:36,xl:37}[o]}:void 0,className:BR({isInvalid:R,isDisabled:T,isFocused:h,size:o,transparent:i,showSearchIcon:s,isClearable:l,hasValue:!!f.value,isPassword:w,className:typeof f.className=="string"?f.className:void 0})}),l&&f.value&&!T&&jsxRuntime.jsx(Vi,{onClick:()=>{c?c():f.onChange&&f.onChange("");},size:o}),w&&!T&&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:P=>{P.preventDefault(),P.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(he,{size:o,children:r}):typeof r=="function"&&u?jsxRuntime.jsx(he,{size:o,children:r(u)}):t&&g==="below"?jsxRuntime.jsx(Te,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(he,{size:o,className:"mt-1",children:r}):typeof r=="function"&&u?jsxRuntime.jsx(he,{size:o,className:"mt-1",children:r(u)}):t&&g==="below"?jsxRuntime.jsx(Te,{size:o,className:"mt-1",children:t}):null})]})})}function ta({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(qr,{value:e,onChange:t,placeholder:o,showSearchIcon:true,isClearable:!!e&&!!r,onClear:r,size:n,"aria-label":o,reserveErrorSpace:false,isLoading:i})})}function rs({value:e,options:t,onChange:r,direction:o,onDirectionChange:n,showLabel:a=true,size:i="sm",className:s="",compact:l=false}){let[c,d]=Qe.useState(false),u=o!==void 0&&n!==void 0,m=t.find(p=>p.value===e);return l?jsxRuntime.jsxs("div",{className:`flex items-center gap-2 ${s}`,children:[jsxRuntime.jsx(te,{variant:"secondary",size:i,icon:"ArrowsDownUp","aria-label":`Sort by: ${m?.label||"Select"}`,onPress:()=>d(true)}),jsxRuntime.jsx(Ct,{isOpen:c,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 g=Array.from(p)[0];g!=null&&(r(g),d(false));},children:p=>jsxRuntime.jsx(pr,{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(zo,{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(te,{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 bx({search:e,searchMobileMode:t="expanded",filters:r=[],onRemoveFilter:o,onClearAllFilters:n,onManageFilters:a,exportControl:i,maxVisibleFilterChips:s=3,sort:l,resultsCount:c,leftControls:d,onManageColumns:u,columnPicker:m,customControls:p,actions:g,interactionMode:f="auto",sticky:y,stickyTop:b="0",zIndex:h=10,className:x="",style:C}){let w=r.length>0;if(!(e||w||a||l||c||d||u||m||p||g||i))return null;let T=y?"sticky bg-background-surface":"",R=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 ${T} ${x}`,style:{...C,...R},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&&c&&jsxRuntime.jsx("div",{className:"h-4 w-px bg-border-default"}),c&&jsxRuntime.jsx(ts,{count:c.count,label:c.label,isLoading:c.isLoading}),c&&l&&jsxRuntime.jsx("div",{className:"h-4 w-px bg-border-default"}),l&&jsxRuntime.jsx(rs,{value:l.value,options:l.options,onChange:l.onChange,showLabel:l.showLabel,direction:l.direction,onDirectionChange:l.onDirectionChange}),u?jsxRuntime.jsx(te,{variant:"secondary",size:"sm",icon:"Columns",onClick:u,children:"Columns"}):m,w&&o&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[r.slice(0,s).map(P=>jsxRuntime.jsxs(Yr,{variant:"primary",size:"sm",onRemove:()=>o(P.id),isRemovable:true,children:[P.label,": ",P.value]},P.id)),r.length>s&&a&&jsxRuntime.jsxs(te,{variant:"ghost",size:"sm",onClick:a,className:"text-text-secondary hover:text-text-primary whitespace-nowrap",children:["+",r.length-s," more"]}),n&&jsxRuntime.jsx(te,{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:[g&&g.items.length>0&&jsxRuntime.jsx(jsxRuntime.Fragment,{children:g.items.map(P=>jsxRuntime.jsx(te,{variant:P.variant||"secondary",size:"sm",icon:P.icon,onPress:P.onClick,isDisabled:P.disabled,children:P.label},P.id))}),e&&jsxRuntime.jsx("div",{className:"w-64",children:jsxRuntime.jsx(ta,{value:e.value,onChange:e.onChange,onClear:e.onClear,placeholder:e.placeholder,isLoading:e.isLoading})}),a&&jsxRuntime.jsx(te,{variant:"secondary",size:"sm",icon:"Sliders",badgeNumber:r.length>0?r.length:void 0,onClick:a,children:"Filters"}),i&&jsxRuntime.jsx(te,{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:[g&&g.items.length>0&&jsxRuntime.jsx(Wa,{items:g.items.map(P=>({id:P.id,name:P.label,iconName:P.icon,variant:P.variant==="destructive"?"destructive":"primary",disabled:P.disabled,onAction:P.onClick})),align:"left",size:"sm",children:jsxRuntime.jsx(te,{variant:"secondary",size:"sm",icon:"DotsThreeVertical","aria-label":g.menuLabel||"Actions"})}),e&&jsxRuntime.jsx("div",{className:"flex-1",children:jsxRuntime.jsx(ta,{value:e.value,onChange:e.onChange,onClear:e.onClear,placeholder:e.placeholder,isLoading:e.isLoading})}),a&&jsxRuntime.jsx(te,{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(te,{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,c&&jsxRuntime.jsx(ts,{count:c.count,label:c.label,isLoading:c.isLoading})]}),jsxRuntime.jsx("div",{className:"flex items-center gap-2",children:l&&jsxRuntime.jsx(rs,{value:l.value,options:l.options,onChange:l.onChange,showLabel:false,direction:l.direction,onDirectionChange:l.onDirectionChange,compact:f!=="desktop"})})]})]})]})}function hx({filters:e,onRemove:t,onClearAll:r,onManageFilters:o,maxVisibleChips:n=3,mode:a="chips",showManageButton:i=true,size:s="sm",className:l=""}){let c=e.length>0,d=e.slice(0,n),u=Math.max(0,e.length-n),m=u>0,p=a==="button"&&!!o,g=a==="chips"&&i&&!!o;if(!c&&!p&&!g)return null;let f=p&&jsxRuntime.jsxs(te,{variant:"secondary",size:s,onClick:o,className:"whitespace-nowrap",children:[e.length," ",e.length===1?"filter":"filters"]}),y=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[g&&jsxRuntime.jsx(te,{variant:"secondary",size:s,icon:"Sliders",onClick:o,className:"whitespace-nowrap",children:"Filters"}),c&&d.map(h=>jsxRuntime.jsxs(Yr,{variant:"secondary",size:s,onRemove:()=>t(h.id),isRemovable:true,children:[h.label,": ",h.value]},h.id)),c&&m&&o&&jsxRuntime.jsxs(te,{variant:"ghost",size:s,onClick:o,className:"text-text-secondary hover:text-text-primary whitespace-nowrap",children:["+",u," more"]}),c&&r&&jsxRuntime.jsx(te,{variant:"ghost",size:s,onClick:r,className:"text-text-secondary hover:text-text-primary whitespace-nowrap",children:"Clear all"})]}),b=a==="button"?f:y;return jsxRuntime.jsx("div",{className:`flex flex-wrap items-center gap-2 ${l}`,children:b})}var xx=["isEmpty","isNotEmpty"];function yx(e){return xx.includes(e)}var vx={isEmpty:"is empty",isNotEmpty:"is not empty"};function UR(e,t,r){return {field:e,operator:t,value:r}}function KR(e,t="AND"){return {logic:t,conditions:e}}function os(){return {logic:"AND",conditions:[]}}function _l(e){return !e||e.conditions.length===0?true:e.conditions.every(t=>"conditions"in t?_l(t):false)}function YR(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 l=r.get(i),c=l?.label||i,d=[],u=[],m=[];for(let p of s)p.operator==="in"&&Array.isArray(p.value)?d.push(...p.value):p.operator==="eq"?p.value!==void 0&&typeof p.value!="boolean"&&!Array.isArray(p.value)?d.push(p.value):m.push(p):["gte","gt","lte","lt"].includes(p.operator)&&p.value!==void 0?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 g=Array.from(new Set(d)).map(f=>l?.values?.find(b=>String(b.value)===String(f))?.label??f);a.push({id:`${i}-in`,label:c,value:g.join(", ")});}if(u.length>0){let p=u.find(f=>f.operator==="gte"||f.operator==="gt"),g=u.find(f=>f.operator==="lte"||f.operator==="lt");if(p&&g){let f=p.operator==="gte"?"\u2265":">",y=g.operator==="lte"?"\u2264":"<";a.push({id:`${i}-range`,label:c,value:`${f} ${p.value} and ${y} ${g.value}`});}else for(let f of u){let y;f.operator==="gte"?y="\u2265":f.operator==="gt"?y=">":f.operator==="lte"?y="\u2264":y="<",a.push({id:`${i}-${f.operator}`,label:c,value:`${y} ${f.value}`});}}for(let p of m){let g;p.operator==="neq"?g=`\u2260 ${p.value}`:p.operator==="contains"?g=`contains "${p.value}"`:p.operator==="startsWith"?g=`starts with "${p.value}"`:p.operator==="endsWith"?g=`ends with "${p.value}"`:yx(p.operator)?g=vx[p.operator]:g=String(p.value),a.push({id:`${i}-${p.operator}`,label:c,value:g});}}return a}function Sn(e,t){let r=e||os();return {...r,conditions:[...r.conditions,t]}}function ra(e,t){if(!e)return os();let r=e.conditions.filter(o=>"conditions"in o?ra(o,t).conditions.length>0:o.field!==t);return {...e,conditions:r}}function oa(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 Sx({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,isDisabled:i,isInvalid:s,showCalendar:l=true,reserveErrorSpace:c=true,validationResult:d,className:u,...m}){let[p,g]=Qe.useState(false),f=y=>{m.onChange&&y&&m.onChange(y),g(false);};return jsxRuntime.jsxs(reactAriaComponents.DateField,{...m,isDisabled:i,isRequired:a,isInvalid:s,className:Ae(u,"flex flex-col gap-1"),children:[e&&jsxRuntime.jsx(Ye,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(St,{children:jsxRuntime.jsxs("div",{className:"relative w-full",children:[jsxRuntime.jsx(ns,{size:o,isDisabled:i,isInvalid:s,hasCalendar:l}),l&&!i&&jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{isOpen:p,onOpenChange:g,children:[jsxRuntime.jsx(te,{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(Xa,{value:m.value,onChange:f,minValue:m.minValue,maxValue:m.maxValue,isDisabled:i,isReadOnly:m.isReadOnly,isDateUnavailable:m.isDateUnavailable})})})]})]})}),c?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(he,{size:o,children:r}):typeof r=="function"&&d?jsxRuntime.jsx(he,{size:o,children:r(d)}):t?jsxRuntime.jsx(Te,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(he,{size:o,className:"mt-1",children:r}):typeof r=="function"&&d?jsxRuntime.jsx(he,{size:o,className:"mt-1",children:r(d)}):t?jsxRuntime.jsx(Te,{size:o,className:"mt-1",children:t}):null})]})}function $R({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 ns({size:e="md",isDisabled:t,isInvalid:r,hasCalendar:o,className:n,...a}){return jsxRuntime.jsx(reactAriaComponents.DateInput,{className:tailwindMerge.twMerge(sn({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:$R({isPlaceholder:i.isPlaceholder,isDisabled:!i.isEditable||t,size:e})})})}function $l({label:e,description:t,errorMessage:r,...o}){return jsxRuntime.jsxs(reactAriaComponents.DateRangePicker,{...o,className:Ae(o.className,"group flex flex-col gap-1"),children:[e&&jsxRuntime.jsx(Ye,{children:e}),jsxRuntime.jsxs(Wg,{className:"w-auto min-w-[208px]",children:[jsxRuntime.jsx(ns,{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(ns,{slot:"end",className:"flex-1 px-2 py-1.5 text-sm"}),jsxRuntime.jsx(te,{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(he,{children:r}):null,jsxRuntime.jsx(vt,{children:jsxRuntime.jsx(ni,{})})]})}var l2=e=>{let t=zt({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 as({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,transparent:i,validationResult:s,reserveErrorSpace:l=true,descriptionPlacement:c="below",...d}){let u=Qe.useId(),{isFocused:m,handleFocus:p,handleBlur:g}=ur();return jsxRuntime.jsx(reactAriaComponents.NumberField,{...d,id:u,isRequired:a,className:Ae(d.className,"group flex flex-col gap-1"),step:d.step??1,onChange:f=>{typeof f=="number"&&(d.maxValue!=null&&f>d.maxValue?d.onChange?.(d.maxValue):d.minValue!=null&&f<d.minValue?d.onChange?.(d.minValue):d.onChange?.(f));},isInvalid:!!r||typeof d.value=="number"&&(d.maxValue!=null&&d.value>d.maxValue||d.minValue!=null&&d.value<d.minValue),children:({isDisabled:f,isInvalid:y})=>jsxRuntime.jsxs("div",{className:"flex flex-col gap-1",children:[e&&jsxRuntime.jsx(Ye,{size:o,tooltip:n,description:c==="tooltip"||c==="inline"?t:void 0,descriptionPlacement:c,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=>g(h,d.onBlur),className:l2({isInvalid:y||!!r,isDisabled:f,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:f,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:f,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})})]})]})}),l?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:r?jsxRuntime.jsx(he,{size:o,children:typeof r=="function"?r(s):r}):t&&c==="below"?jsxRuntime.jsx(Te,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:r?jsxRuntime.jsx(he,{size:o,className:"mt-1",children:typeof r=="function"?r(s):r}):t&&c==="below"?jsxRuntime.jsx(Te,{size:o,className:"mt-1",children:t}):null})]})})}var Hp={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 u2({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=Hp[r].track,a=rt,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 p2({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=Hp[r].handle;return [o,n,e?"translate-x-[100%]":"translate-x-0",t?"forced-colors:outline-[GrayText]":""].filter(Boolean).join(" ")}function ec({children:e,variant:t="primary",size:r="md",...o}){return jsxRuntime.jsx(reactAriaComponents.Switch,{...o,className:Ae(o.className,`relative group flex items-center gap-2 ${Hp[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:u2({...n,size:r}),children:jsxRuntime.jsx("span",{className:p2({...n,size:r})})}),e]})})}function Tx(e){return new Intl.NumberFormat("en-US").format(e)}function kx({isOpen:e,onClose:t,facetConfigs:r,facetCounts:o={},currentFilters:n,onApply:a,onClear:i,title:s="Filters",resultCount:l}){let[c,d]=Qe.useState(n),[u,m]=Qe.useState({}),[p,g]=Qe.useState({}),[f,y]=Qe.useState(null),{isMobile:b}=ar(),h=Qe.useMemo(()=>r.some(v=>v.group),[r]),{groups:x,ungroupedFacets:C,facetsByGroup:w}=Qe.useMemo(()=>{let v=new Set,M=[],A={};for(let J of r)J.group?(v.has(J.group)||(v.add(J.group),A[J.group]=[]),A[J.group].push(J)):M.push(J);return {groups:Array.from(v),ungroupedFacets:M,facetsByGroup:A}},[r]);Qe.useEffect(()=>{e&&(d(n),m({}),g({}),y(!b&&x.length>0?x[0]:null));},[e,n,x,b]);let S=Qe.useMemo(()=>!c||_l(c)?0:oa(c).length,[c]),T=()=>{a(c),t();},R=()=>{let v=os();d(v),i?i():a(v),t();},P=v=>{if(!c)return [];if(!oa(c).includes(v))return [];let A=[];function J(ae){if(ae)for(let le of ae.conditions)"conditions"in le?J(le):le.field===v&&le.operator==="in"&&Array.isArray(le.value)&&A.push(...le.value.map(String));}return J(c),A},E=(v,M,A)=>{let J=ra(c,v);M!==void 0&&(J=Sn(J,{field:v,operator:"gte",value:M})),A!==void 0&&(J=Sn(J,{field:v,operator:"lte",value:A})),d(J);},I=v=>{if(!c)return;let M;function A(J){if(J)for(let ae of J.conditions)"conditions"in ae?A(ae):ae.field===v&&ae.operator==="eq"&&typeof ae.value=="boolean"&&(M=ae.value);}return A(c),M},k=(v,M)=>{let A=ra(c,v);M!==void 0&&(A=Sn(A,{field:v,operator:"eq",value:M})),d(A);},D=(v,M,A)=>{let J=ra(c,v);M&&(J=Sn(J,{field:v,operator:"gte",value:M.toString()})),A&&(J=Sn(J,{field:v,operator:"lte",value:A.toString()})),d(J);},L=v=>{let M=w[v]||[],A=c?oa(c):[];return M.filter(J=>A.includes(J.field)).length},B="pr-9 bg-background-muted/50",O="border-t border-border-muted",H="text-sm font-medium text-text-link-default",G=v=>jsxRuntime.jsx("span",{className:H,children:v}),Z=v=>{let M=o[v.field]||{},A=u[v.field]||"",J=[];v.values?J=v.values.map($=>({value:String($.value),label:$.label,count:M[String($.value)]})):J=Object.entries(M).map(([$,ie])=>({value:$,label:$,count:ie}));let ae=J.length;if(A){let $=A.toLowerCase();J=J.filter(ie=>ie.label.toLowerCase().includes($));}J.sort(($,ie)=>$.count!==void 0&&ie.count!==void 0&&ie.count!==$.count?ie.count-$.count:$.label.localeCompare(ie.label));let le=v.type||"string";if(le==="string"||!v.type){let $=P(v.field),ie=v.searchThreshold??10,Ee=v.maxVisibleOptions??50,pe=p[v.field]??false,ge=pe||J.length<=Ee?J:J.slice(0,Ee),re=J.length>Ee&&!pe;return jsxRuntime.jsxs(pn,{id:v.field,children:[jsxRuntime.jsx(mn,{title:v.label,description:v.description,className:B,endContent:$.length>0?G(`${$.length} selected`):void 0}),jsxRuntime.jsx(fn,{className:O,children:jsxRuntime.jsxs("div",{className:"space-y-4 pt-4 pb-4",children:[ae>ie&&jsxRuntime.jsx(ta,{value:A,onChange:se=>m(ve=>({...ve,[v.field]:se})),onClear:()=>m(se=>({...se,[v.field]:""})),placeholder:`Search ${v.label.toLowerCase()}...`,size:"sm",className:"w-full !max-w-none pr-4"}),jsxRuntime.jsx(ju,{value:$,onChange:se=>{let ve=ra(c,v.field);se.length>0&&(ve=Sn(ve,{field:v.field,operator:"in",value:se})),d(ve);},children:jsxRuntime.jsx("div",{className:"space-y-1.5",children:ge.map(se=>jsxRuntime.jsx("div",{className:"rounded-md py-2 pr-4 transition-colors hover:bg-background-hover",children:jsxRuntime.jsx(eo,{value:se.value,children:jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-3 flex-1",children:[v.renderLabel?v.renderLabel(se.value,se.label):jsxRuntime.jsx("span",{className:"text-sm font-medium text-text-primary",children:se.label}),se.count!==void 0&&jsxRuntime.jsx("span",{className:"text-xs font-medium text-text-secondary tabular-nums",children:Tx(se.count)})]})})},se.value))})}),re&&jsxRuntime.jsx("div",{className:"pt-2 border-t border-border-muted",children:jsxRuntime.jsxs(te,{variant:"ghost",size:"sm",onPress:()=>g(se=>({...se,[v.field]:true})),className:"w-full",children:["Show all ",J.length," options"]})}),pe&&J.length>Ee&&jsxRuntime.jsx("div",{className:"pt-2 border-t border-border-muted",children:jsxRuntime.jsx(te,{variant:"ghost",size:"sm",onPress:()=>g(se=>({...se,[v.field]:false})),className:"w-full",children:"Show less"})})]})})]},v.field)}if(le==="number"){let $,ie,Ee=ge=>{if(ge)for(let re of ge.conditions)"conditions"in re?Ee(re):re.field===v.field&&(re.operator==="gte"&&typeof re.value=="number"&&($=re.value),re.operator==="lte"&&typeof re.value=="number"&&(ie=re.value));};Ee(c);let pe=$!==void 0||ie!==void 0;return jsxRuntime.jsxs(pn,{id:v.field,children:[jsxRuntime.jsx(mn,{title:v.label,description:v.description,className:B,endContent:pe?G($!==void 0&&ie!==void 0?`${$} - ${ie}`:$!==void 0?`\u2265 ${$}`:`\u2264 ${ie}`):void 0}),jsxRuntime.jsx(fn,{className:O,children:jsxRuntime.jsxs("div",{className:"grid grid-cols-2 gap-4 pt-4 pb-4",children:[jsxRuntime.jsx(as,{label:"Min",value:$,onChange:ge=>E(v.field,ge,ie)},`${v.field}-min`),jsxRuntime.jsx(as,{label:"Max",value:ie,onChange:ge=>E(v.field,$,ge)},`${v.field}-max`)]})})]},v.field)}if(le==="boolean"){let $=I(v.field);return jsxRuntime.jsxs(pn,{id:v.field,children:[jsxRuntime.jsx(mn,{title:v.label,description:v.description,className:B,endContent:$!==void 0?G($?"Yes":"No"):void 0}),jsxRuntime.jsx(fn,{className:O,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(ec,{size:"lg",isSelected:$??false,onChange:ie=>k(v.field,ie?true:void 0),children:$?"Yes":"No"})]})})]},v.field)}if(le==="date"){let $,ie,Ee=ve=>{if(ve)for(let je of ve.conditions)"conditions"in je?Ee(je):je.field===v.field&&(je.operator==="gte"&&($=String(je.value)),je.operator==="lte"&&(ie=String(je.value)));};Ee(c);let pe=$!==void 0||ie!==void 0,ge=ve=>{if(ve)try{return /^\d{4}-\d{2}-\d{2}$/.test(ve)?date.parseDate(ve):void 0}catch{return}},re=ge($),se=ge(ie);return jsxRuntime.jsxs(pn,{id:v.field,children:[jsxRuntime.jsx(mn,{title:v.label,description:v.description,className:B,endContent:pe?G("Date range selected"):void 0}),jsxRuntime.jsx(fn,{className:O,children:jsxRuntime.jsx("div",{className:"pt-4 pb-4",children:jsxRuntime.jsx($l,{label:"Date Range",value:re&&se?{start:re,end:se}:void 0,onChange:ve=>{ve?D(v.field,ve.start,ve.end):D(v.field,void 0,void 0);}})})})]},v.field)}return null},z=()=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[C.map(v=>{let A=(c?oa(c):[]).includes(v.field);return jsxRuntime.jsxs("button",{type:"button",onClick:()=>y(`__ungrouped__${v.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:v.label}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[A&&jsxRuntime.jsx("span",{className:H,children:"1 active"}),jsxRuntime.jsx(V,{name:"CaretRight",size:"sm",className:"text-text-secondary"})]})]},v.field)}),x.map(v=>{let M=L(v);return jsxRuntime.jsxs("button",{type:"button",onClick:()=>y(v),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:v}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[M>0&&jsxRuntime.jsxs("span",{className:H,children:[M," active"]}),jsxRuntime.jsx(V,{name:"CaretRight",size:"sm",className:"text-text-secondary"})]})]},v)})]}),W=v=>{if(v.startsWith("__ungrouped__")){let A=v.replace("__ungrouped__",""),J=C.find(ae=>ae.field===A);return J?jsxRuntime.jsx(ja,{variant:"contained",density:"comfortable",showDividers:true,defaultExpandedKeys:[J.field],children:Z(J)}):null}let M=w[v]||[];return M.length===0?null:jsxRuntime.jsx(ja,{variant:"contained",density:"comfortable",showDividers:true,defaultExpandedKeys:[M[0].field],children:M.map(A=>Z(A))})},q=()=>{if(f){let v=f.startsWith("__ungrouped__")&&C.find(M=>M.field===f.replace("__ungrouped__",""))?.label||f;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:v})]}),jsxRuntime.jsx("div",{className:"flex-1 overflow-y-auto",children:W(f)})]})}return z()},F=()=>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:[C.map(v=>{let A=(c?oa(c):[]).includes(v.field),J=f===`__ungrouped__${v.field}`;return jsxRuntime.jsxs("button",{type:"button",onClick:()=>y(`__ungrouped__${v.field}`),className:`flex items-center justify-between w-full px-4 py-3 text-left border-b border-border-muted transition-colors ${J?"bg-background-selected":"hover:bg-background-hover"}`,children:[jsxRuntime.jsx("span",{className:`text-sm truncate ${J?"font-semibold text-text-primary":"font-medium text-text-primary"}`,children:v.label}),A&&jsxRuntime.jsx("span",{className:"w-2 h-2 rounded-full bg-action-primary flex-shrink-0 ml-2"})]},v.field)}),x.map(v=>{let M=L(v),A=f===v;return jsxRuntime.jsxs("button",{type:"button",onClick:()=>y(v),className:`flex items-center justify-between w-full px-4 py-3 text-left border-b border-border-muted transition-colors ${A?"bg-background-selected":"hover:bg-background-hover"}`,children:[jsxRuntime.jsx("span",{className:`text-sm truncate ${A?"font-semibold text-text-primary":"font-medium text-text-primary"}`,children:v}),M>0&&jsxRuntime.jsx("span",{className:"w-2 h-2 rounded-full bg-action-primary flex-shrink-0 ml-2"})]},v)})]}),jsxRuntime.jsx("div",{className:"flex-1 overflow-y-auto",children:f?W(f):jsxRuntime.jsx("div",{className:"flex items-center justify-center h-full text-text-secondary text-sm",children:"Select a category to view filters"})})]}),X=()=>jsxRuntime.jsx(ja,{variant:"contained",density:"comfortable",showDividers:true,defaultExpandedKeys:[r[0].field],children:r.map(v=>Z(v))});return jsxRuntime.jsx(cr,{isOpen:e,onClose:t,title:h&&b&&f?f.startsWith("__ungrouped__")?C.find(v=>v.field===f.replace("__ungrouped__",""))?.label||s:f:S>0?`${s} (${S} active)`:s,hideCloseIcon:false,primaryAction:{label:"Apply filters",onPress:T,variant:"primary"},secondaryAction:{label:"Clear all",onPress:R},maxWidth:h?"800px":"700px",height:"600px",mobileHeight:"85vh",contentPadding:false,footerContent:l!==void 0?jsxRuntime.jsxs("div",{className:"text-sm text-text-secondary text-center",children:[jsxRuntime.jsx("span",{className:"font-semibold text-text-primary",children:Tx(l)})," ",l===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?q():F():X()})}function Wp(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 yr(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 we(e="left",t){return tailwindMerge.twMerge("flex items-center gap-1 min-w-0 overflow-hidden",Wp(e),t)}function oc(e,t="\u2014"){return e==null||e===""?t:String(e)}var wn={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 Tt(e="normal"){return {strong:wn.lg,high:wn.lg,normal:wn.md,low:wn.sm}[e]}function me(e,...t){return typeof e=="function"?e(...t):e}function Px(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 Rx(e){return e?"success":"neutral"}function nc(e,t=false){return t?e>0?"text-feedback-success-text":e<0?"text-feedback-error-text":"text-text-primary":"text-text-primary"}function Up(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 Po(e,t,r,o="hover",n="secondary",a,i){if(!t)return e;let s=typeof t=="function"&&r?t(r):t,l=Up(o,n);return jsxRuntime.jsx("a",{href:s,className:tailwindMerge.twMerge(l,a==="strong"||a==="high"?"font-semibold":"",i),onClick:d=>{d.metaKey||d.ctrlKey;},children:e})}function Ex({row:e,context:t,actions:r,align:o="right",size:n="sm"}){let{isLoading:a}=t;if(a)return jsxRuntime.jsx(Y,{className:wn.sm});let s=(typeof r=="function"?r(e):r).filter(c=>!me(c.hidden,e));if(s.length===0)return null;let l=we(o);return jsxRuntime.jsx("div",{className:l,children:s.map(c=>{let d=me(c.disabled,e);return c.variant==="icon"||!c.label?jsxRuntime.jsx(te,{variant:"icon",size:n,onPress:()=>{c.onClick(e);},isDisabled:d,"aria-label":c.label||c.id,children:jsxRuntime.jsx(V,{name:c.icon||"DotsThree",size:n==="sm"?16:20})},c.id):jsxRuntime.jsxs(te,{variant:c.variant||"secondary",size:n,onPress:()=>{c.onClick(e);},isDisabled:d,children:[c.icon&&jsxRuntime.jsx(V,{name:c.icon,size:n==="sm"?14:16}),c.label]},c.id)})})}function Lx({value:e,row:t,context:r,variant:o="default",label:n,size:a="sm",shape:i="square",dot:s,dotPosition:l="left",dotPulse:c,align:d="left",emptyText:u="\u2014",className:m,maxVisible:p=2,maxLabelLength:g}){let{isLoading:f}=r,y=(S,T)=>{if(!g||S.length<=g)return jsxRuntime.jsx(jsxRuntime.Fragment,{children:S});let R=S.slice(0,g-1)+"\u2026";return jsxRuntime.jsx(dr,{content:T,children:jsxRuntime.jsx("span",{children:R})})};if(f)return jsxRuntime.jsx(Y,{className:Tt("normal")});if(e==null||e==="")return jsxRuntime.jsx("div",{className:we(d,"text-text-secondary"),children:u});if(Array.isArray(e)&&e.length===0)return jsxRuntime.jsx("div",{className:we(d,"text-text-secondary"),children:u});let b=we(d,m);if(Array.isArray(e)){let S=e.slice(0,p),T=e.slice(p),R=T.length>0;return jsxRuntime.jsx("div",{className:b,children:jsxRuntime.jsxs("div",{className:"flex items-center gap-1",children:[S.map((P,E)=>{let I=me(o,P,t),k=n!==void 0?me(n,P,t):String(P),D=me(s,P,t),L=me(c,P,t);return jsxRuntime.jsx("span",{className:"flex-shrink-0 whitespace-nowrap",children:jsxRuntime.jsx(ft,{variant:I,size:a,shape:i,dot:D,dotPosition:l,dotPulse:L,children:y(k,k)})},E)}),R&&jsxRuntime.jsx(dr,{content:T.join(", "),children:jsxRuntime.jsx("span",{className:"flex-shrink-0 whitespace-nowrap",children:jsxRuntime.jsxs(ft,{variant:"neutral",size:a,shape:i,children:["+",T.length]})})})]})})}let h=me(o,e,t),x=n!==void 0?me(n,e,t):String(e),C=me(s,e,t),w=me(c,e,t);return jsxRuntime.jsx("div",{className:b,children:jsxRuntime.jsx(ft,{variant:h,size:a,shape:i,dot:C,dotPosition:l,dotPulse:w,children:y(x,x)})})}function Dx({value:e,context:t,format:r="icon",trueText:o="Yes",falseText:n="No",trueIcon:a="Check",falseIcon:i="X",showFalse:s=true,align:l="center",emphasis:c="normal",className:d}){let{isLoading:u}=t;if(u)return jsxRuntime.jsx(Y,{className:Tt(c)});let m=!!e;if(!m&&!s)return jsxRuntime.jsx("div",{className:we(l,d)});let p=we(l,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:yr(c),children:m?o:n})});case "badge":return jsxRuntime.jsx("div",{className:p,children:jsxRuntime.jsx(ft,{variant:m?"success":"neutral",size:"sm",children:m?o:n})});default:return null}}var ac="var(--color-text-subtle)",Ax=Ks().map((e,t)=>`var(--color-viz-categorical-${t+1})`);function Fx({value:e,row:t,context:r,color:o,swatch:n="dot",emptyText:a="\u2014",align:i="left",className:s}){let{isLoading:l}=r;if(l)return jsxRuntime.jsx(Y,{className:Tt("normal")});let c=me(e,t),d=c==null?"":String(c);return d.length===0?jsxRuntime.jsx("div",{className:we(i,"text-text-secondary"),children:a}):jsxRuntime.jsxs("div",{className:we(i,tailwindMerge.twMerge("gap-2",s)),children:[jsxRuntime.jsx("span",{"aria-hidden":"true",className:tailwindMerge.twMerge("h-2 w-2 flex-shrink-0",n==="dot"?"rounded-full":"rounded-sm"),style:{backgroundColor:o??ac}}),jsxRuntime.jsx("span",{className:"truncate",children:d})]})}function Vx({row:e,context:t,firstName:r,lastName:o,email:n,avatarUrl:a,layout:i="stacked",size:s="sm",href:l,LinkComponent:c,linkVariant:d="secondary",showEmail:u=false,badge:m,emphasis:p="normal",align:g="left",className:f,piiEntity:y}){let{isLoading:b}=t,h=me(r,e),x=me(o,e),C=me(n,e),w=me(a,e),S=me(l,e),T=me(m,e),R=me(y,e),P=we(g,f);return jsxRuntime.jsx("div",{className:P,children:jsxRuntime.jsx(Nl,{firstName:h,lastName:x,email:C,avatarUrl:w,layout:i,size:s,href:S,LinkComponent:c,linkVariant:d,showEmail:u,badge:T,emphasis:p,isLoading:b,piiEntity:R})})}function Ox({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 zx({value:e,row:t,context:r,format:o="date",customFormat:n,emptyText:a="\u2014",align:i="left",emphasis:s="normal",href:l,linkBehavior:c="hover",className:d}){let{isLoading:u}=r;if(u)return jsxRuntime.jsx(Y,{className:Tt(s)});if(!e)return jsxRuntime.jsx("div",{className:we(i,"text-text-secondary"),children:a});let m=e instanceof Date?e:new Date(e);if(isNaN(m.getTime()))return jsxRuntime.jsx("div",{className:we(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=N2(m);break;case "custom":p=n?m.toLocaleString("en-US",n):m.toISOString();break;default:p=m.toLocaleDateString();}let g=we(i,tailwindMerge.twMerge(yr(s),d)),f=me(l,t);return f?jsxRuntime.jsx("div",{className:g,children:Po(p,f,t,c)}):jsxRuntime.jsx("div",{className:g,children:p})}function N2(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 k2={up:"ArrowUp",down:"ArrowDown",flat:"Minus"},P2={positive:"text-feedback-success-text",negative:"text-feedback-error-text",neutral:"text-text-secondary"};function Kp(e){return e>0?"up":e<0?"down":"flat"}function R2(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 Hx({value:e,row:t,context:r,direction:o,tone:n="neutral",format:a="number",decimals:i=0,currency:s="USD",showIcon:l=true,align:c="right",emphasis:d="normal",emptyText:u="\u2014",className:m}){let{isLoading:p}=r;if(p)return jsxRuntime.jsx(Y,{className:Tt(d)});let g=typeof e=="number"?e:Number(e);if(e==null||e===""||!Number.isFinite(g))return jsxRuntime.jsx("div",{className:we(c,"text-text-secondary"),children:u});let f=me(o,t)??Kp(g),y=me(n,t)??"neutral",b=Pr(g,R2(a,i,s))??u,h=g>0?"+":"",C=we(c,tailwindMerge.twMerge(d==="strong"||d==="high"?"font-semibold":void 0,m,P2[y]));return jsxRuntime.jsxs("div",{className:C,children:[l&&jsxRuntime.jsx(V,{name:k2[f],size:"xs","aria-hidden":true}),jsxRuntime.jsx("span",{children:`${h}${b}`})]})}function lc({manufacturer:e,model:t,deviceType:r,deviceTypeIconName:o,logoUrl:n,layout:a="stacked",size:i="md",href:s,LinkComponent:l,linkVariant:c="unstyled",showDeviceTypeIcon:d=true,showLogo:u=true,emphasis:m="normal",isLoading:p=false,className:g,piiEntity:f}){let[y,b]=Qe.useState(false),h=o||(r?L2(r):"DeviceMobile"),C={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],w=n&&!y&&u,T={strong:"font-semibold text-text-primary",high:"font-semibold text-text-primary",normal:"text-text-primary",low:"text-text-secondary"}[m],R=({children:P,className:E})=>s?l?jsxRuntime.jsx(l,{href:s,className:E,children:P}):jsxRuntime.jsx(ut,{href:s,variant:c,className:tailwindMerge.twMerge("hover:underline",E),asButton:false,children:P}):jsxRuntime.jsx("span",{className:E,children:P});if(p)return a==="inline"?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",C.gap,g),children:[jsxRuntime.jsx(Y,{width:C.skeletonIcon,height:C.skeletonIcon,className:"flex-shrink-0 rounded"}),jsxRuntime.jsx(Y,{width:C.skeletonText,height:C.skeletonIcon*.6})]}):jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",C.gap,g),children:[jsxRuntime.jsx(Y,{width:C.skeletonIcon,height:C.skeletonIcon,className:"flex-shrink-0"}),jsxRuntime.jsxs("div",{className:"flex flex-col gap-1",children:[jsxRuntime.jsx(Y,{width:C.skeletonText,height:16}),jsxRuntime.jsx(Y,{width:C.skeletonSecondary,height:12})]})]});if(a==="inline"){let P=`${e} ${t}`;return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",C.gap,g),children:[jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-shrink-0 flex items-center justify-center rounded border border-border-muted",C.logoSize),children:w?jsxRuntime.jsx("img",{src:n,alt:`${e} logo`,className:"w-full h-full object-contain",onError:()=>b(true)}):jsxRuntime.jsx(V,{name:h,size:C.iconSize*.6,className:"text-text-secondary"})}),jsxRuntime.jsx(R,{className:tailwindMerge.twMerge("truncate leading-normal hover:text-text-primary",T,C.textSize,s&&"hover:underline hover:decoration-1 hover:underline-offset-4"),children:jsxRuntime.jsx("span",{"data-pii-type":f?"device-name":void 0,"data-pii-entity":f,children:P})})]})}return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center justify-start",C.gap,g),children:[u&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-shrink-0 flex items-center justify-center rounded border border-border-muted",C.logoSize),children:w?jsxRuntime.jsx("img",{src:n,alt:`${e} logo`,className:"w-full h-full object-contain",onError:()=>b(true)}):jsxRuntime.jsx(V,{name:h,size:C.iconSize*.6,className:"text-text-secondary"})}),jsxRuntime.jsxs("div",{className:"flex flex-col items-start min-w-0",children:[jsxRuntime.jsx(R,{className:tailwindMerge.twMerge("truncate leading-normal hover:text-text-primary",T,C.textSize,s&&"hover:underline hover:decoration-1 hover:underline-offset-4"),children:jsxRuntime.jsx("span",{"data-pii-type":f?"device-name":void 0,"data-pii-entity":f,children:e})}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center gap-1.5 text-text-secondary leading-normal",C.secondaryTextSize),children:[d&&jsxRuntime.jsx(V,{name:h,size:C.iconInTextSize,className:"flex-shrink-0"}),jsxRuntime.jsx("span",{className:"truncate","data-pii-type":f?"device-name":void 0,"data-pii-entity":f,children:t})]})]})]})}function L2(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 Wx({row:e,context:t,manufacturer:r,model:o,deviceType:n,logoUrl:a,layout:i="stacked",size:s="sm",href:l,LinkComponent:c,linkVariant:d="secondary",showDeviceTypeIcon:u=true,showLogo:m=true,emphasis:p="normal",align:g="left",className:f,piiEntity:y}){let{isLoading:b}=t,h=me(r,e),x=me(o,e),C=me(n,e),w=me(a,e),S=me(l,e),T=me(y,e),R=we(g,f);return jsxRuntime.jsx("div",{className:R,children:jsxRuntime.jsx(lc,{manufacturer:h,model:x,deviceType:C,logoUrl:w,layout:i,size:s,href:S,LinkComponent:c,linkVariant:d,showDeviceTypeIcon:u,showLogo:m,emphasis:p,isLoading:b,piiEntity:T})})}var yX={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},D2=["charging","discharging","heat","cool","on","circulate","connected"],A2={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 Yp(e){return D2.includes(e)}function Jp(e){return A2[e]}function aa({state:e,label:t,icon:r,isLoading:o,size:n="sm",shape:a="pill",dot:i,dotPulse:s,fixedWidth:l,className:c,...d}){if(o)return jsxRuntime.jsx(Y,{className:"inline-flex h-6 w-20"});let u=t??Jp(e),m=Yp(e);return jsxRuntime.jsxs(ft,{variant:e,size:n,shape:a,dot:i??m,dotPulse:s??m,className:l?`w-28 justify-center ${c||""}`:c,...d,children:[r&&jsxRuntime.jsx(V,{name:r,size:n==="sm"?12:n==="md"?14:16}),u]})}var F2={importing:"Importing",exporting:"Exporting",idle:"Idle",unknown:"Unknown"};function Kx(e){return F2[e]}var B2={importing:"ArrowDown",exporting:"ArrowUp"};function dc({state:e,label:t,showIcon:r=false,isLoading:o,size:n="sm",shape:a="pill",fixedWidth:i,className:s,...l}){if(o)return jsxRuntime.jsx(Y,{className:"inline-flex h-6 w-24"});let c=t??Kx(e),d=B2[e],u=n==="sm"?12:n==="md"?14:16;return r&&d?jsxRuntime.jsx(ft,{variant:e,size:n,shape:a,className:`w-6 justify-center ${s||""}`,...l,children:jsxRuntime.jsx(V,{name:d,size:u})}):jsxRuntime.jsx(ft,{variant:e,size:n,shape:a,className:i?`w-28 justify-center ${s||""}`:s,...l,children:c})}function uc({state:e,stateLabel:t,metric:r,metricFormatter:o,secondaryState:n,layout:a="horizontal",isLoading:i,size:s="sm",shape:l="pill",icon:c,fixedWidth:d,secondaryStateIconOnly:u=false,className:m}){if(i)return jsxRuntime.jsx(Y,{className:tailwindMerge.twMerge("inline-flex h-6 w-32",m)});let p=r!=null&&o?Pr(r,o):null,g=a==="horizontal",f=o&&!p;return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("inline-flex items-center",g?"gap-2":"flex-col gap-1",m),children:[(p||f)&&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(aa,{state:e,label:t,icon:c,size:s,shape:l,fixedWidth:d}),n&&jsxRuntime.jsx(jsxRuntime.Fragment,{children:n==="importing"||n==="exporting"?jsxRuntime.jsx(dc,{state:n,size:s,shape:l,fixedWidth:d,showIcon:u}):jsxRuntime.jsx(aa,{state:n,size:s,shape:l,fixedWidth:d})})]})}function Yx({value:e,row:t,context:r,metric:o,metricFormatter:n,secondaryState:a,size:i="sm",shape:s="pill",label:l,icon:c,fixedWidth:d=true,align:u="left",compact:m=false,className:p}){let{isLoading:g}=r;if(g){let C={pill:"rounded-full",rounded:"rounded-lg",square:"rounded-sm"}[s],w=o!=null||n!=null;return jsxRuntime.jsx("div",{className:"flex items-center gap-2",children:w?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Y,{className:"h-4 w-12"}),jsxRuntime.jsx(Y,{className:`h-6 w-24 ${C}`}),jsxRuntime.jsx(Y,{className:`h-6 w-20 ${C}`})]}):jsxRuntime.jsx(Y,{className:`h-6 w-24 ${C}`})})}if(!e)return jsxRuntime.jsx("div",{className:we(u,p),children:jsxRuntime.jsx("span",{className:"text-text-secondary",children:"\u2014"})});let f=me(o,t),y=me(a,t),b=typeof l=="function"?l(e,t):l,h=we(u,p);return f!=null||n?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(h),children:jsxRuntime.jsx(uc,{state:e,stateLabel:b,metric:f,metricFormatter:n,secondaryState:y||void 0,size:i,shape:s,icon:c,fixedWidth:d,secondaryStateIconOnly:m,layout:"horizontal"})}):jsxRuntime.jsx("div",{className:h,children:jsxRuntime.jsx(aa,{state:e,label:b,icon:c,size:i,shape:s,fixedWidth:d})})}function Xx({value:e,row:t,context:r,formatter:o,align:n="left",emphasis:a="normal",href:i,linkBehavior:s="hover",className:l,emptyText:c="\u2014",emptyClassName:d="text-text-secondary"}){let{isLoading:u}=r;if(u)return jsxRuntime.jsx(Y,{className:Tt(a)});let m=fo({value:e,formatter:o,emptyText:c,emptyClassName:d}),p=yr(a),g=we(n,tailwindMerge.twMerge(p,l)),f=jsxRuntime.jsx("div",{className:g,children:m}),y=me(i,t);return y?Po(f,y,t,s):f}var jp=Qe__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:l=20,minWidth:c=4,segments:d,segmentGap:u=2,barWidth:m,context:p})=>{let g=Qe.useMemo(()=>r===t?100:Math.max(0,Math.min(100,(e-t)/(r-t)*100)),[e,t,r]),f=Qe.useMemo(()=>o==="auto"&&a?a.type==="diverging"&&a.center!==void 0?Ei(e,t,r,a.center,a.scheme):Ri(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:l},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(g/100*d),C={height:l,...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:C,children:Array.from({length:d}).map((w,S)=>{let T=S<x;return jsxRuntime.jsx("div",{className:"rounded-sm",style:{width:h,backgroundColor:T?f:n==="none"?"transparent":n,marginRight:S<d-1?`${u}px`:0}},S)})}),i&&jsxRuntime.jsx("span",{className:"text-sm text-text-primary whitespace-nowrap",children:s?s(e):e.toLocaleString()})]})}let y={height:l,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:`${g}%`,minWidth:g>0?c:0,backgroundColor:f}})}),i&&jsxRuntime.jsx("span",{className:"text-sm text-text-primary whitespace-nowrap",children:s?s(e):e.toLocaleString()})]})});jp.displayName="HorizontalBarCell";function Y2(e){return Math.max(1,String(Math.max(1,Math.trunc(e))).length)}function Qx({context:e,startAt:t=1,padTo:r,rowCount:o,align:n="right",className:a}){let{isLoading:i,rowIndex:s}=e;if(i)return jsxRuntime.jsx(Y,{className:Tt("normal")});if(typeof s!="number"||!Number.isFinite(s))return jsxRuntime.jsx("div",{className:we(n,"text-text-muted"),children:"\u2014"});let l=s+t,c=r??(o===void 0?void 0:Y2(o+t-1)),d=c===void 0?String(l):String(l).padStart(c,"0");return jsxRuntime.jsx("div",{className:we(n,tailwindMerge.twMerge("font-mono text-text-muted tabular-nums",a)),children:jsxRuntime.jsx("span",{children:d})})}var qp=Qe__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||[],l=y=>"xValue"in y?y.xValue:y.x,c=y=>"yValue"in y?y.yValue:y.y,d=a||100,u=i,{xScale:m,yScale:p,barWidth:g}=Qe.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,T=>l(T)),b=d3Array.min(s,T=>c(T))??0,h=d3Array.max(s,T=>c(T))??0,x=b<0?b:0,C=scale.scaleTime({range:[0,d],domain:y}),w=scale.scaleLinear({range:[u,0],domain:[x,h*1.05]}),S=s.length>1?d/s.length*.8:8;return {xScale:C,yScale:w,barWidth:Math.max(2,S)}},[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 f=p(0);return jsxRuntime.jsx("svg",{width:d,height:u,children:s.map((y,b)=>{let h=c(y),x=m(l(y)),C=p(h),w=Math.abs(f-C),S=y.category&&o?.[y.category]?o[y.category]:r;return jsxRuntime.jsx(shape.Bar,{x:x-g/2,y:h>=0?C:f,width:g,height:w,fill:S,rx:1},`bar-${b}`)})})});qp.displayName="MiniBarCell";function $x({value:e,row:t,context:r,format:o="number",decimals:n=0,prefix:a,suffix:i,emptyText:s="\u2014",align:l="right",emphasis:c="normal",href:d,linkBehavior:u="hover",showPositiveSign:m=false,colorCode:p=false,className:g}){let{isLoading:f}=r;if(f)return jsxRuntime.jsx(Y,{className:Tt(c)});if(e==null||isNaN(Number(e)))return jsxRuntime.jsx("div",{className:we(l,"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}`,C=p?nc(y,true):yr(c),w=we(l,tailwindMerge.twMerge(C,g)),S=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})]}),T=me(d,t);return T?jsxRuntime.jsx("div",{className:w,children:Po(S,T,t,u)}):jsxRuntime.jsx("div",{className:w,children:S})}var rE={low:"var(--color-feedback-warning-text)",critical:"var(--color-feedback-error-text)"};function Zp(e,t){if(t){if(t.critical!==void 0&&e<=t.critical)return "critical";if(t.low!==void 0&&e<=t.low)return "low"}}var _p=Qe__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,thresholds:l,context:c})=>{let d=Qe.useMemo(()=>Math.max(0,Math.min(100,e)),[e]),u=Qe.useMemo(()=>Zp(d,l),[d,l]),m=Qe.useMemo(()=>u?rE[u]:r==="auto"&&s?s.type==="diverging"&&s.center!==void 0?Ei(e,0,100,s.center,s.scheme):Ri(e,0,100,s.scheme):r,[r,s,u,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 g=`calc((100% - ${i*(a-1)}px) / ${a})`,f=Math.ceil(d/100*a);return jsxRuntime.jsxs("div",{className:"flex items-center gap-2 w-full","data-threshold":u,children:[jsxRuntime.jsx("div",{className:"flex gap-0.5 flex-1",style:{height:n},children:Array.from({length:a}).map((y,b)=>{let h=b<f,x=m;if(!u&&r==="auto"&&s&&h){let C=(b+1)/a*100;s.type==="diverging"&&s.center!==void 0?x=Ei(C,0,100,s.center,s.scheme):x=Ri(C,0,100,s.scheme);}return jsxRuntime.jsx("div",{className:"rounded-sm",style:{width:g,backgroundColor:h?x:o==="none"?"transparent":o,marginRight:b<a-1?`${i}px`:0}},b)})}),t&&jsxRuntime.jsxs("span",{className:"text-sm text-text-primary whitespace-nowrap",children:[d.toFixed(0),"%"]})]})}return jsxRuntime.jsxs("div",{className:"flex items-center gap-2 w-full","data-threshold":u,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:`${d}%`,backgroundColor:m}})}),t&&jsxRuntime.jsxs("span",{className:"text-sm text-text-primary whitespace-nowrap",children:[d.toFixed(0),"%"]})]})});_p.displayName="PercentBarCell";var nE="\u2013",ey="\u200A";function ty(e){if(e==null||e==="")return;let t=typeof e=="number"?e:Number(e);return Number.isFinite(t)?t:void 0}function ry({row:e,context:t,min:r,max:o,decimals:n=0,unit:a,emptyText:i="\u2014",align:s="right",emphasis:l="normal",className:c}){let{isLoading:d}=t;if(d)return jsxRuntime.jsx(Y,{className:Tt(l)});let u=ty(me(r,e)),m=ty(me(o,e));if(u===void 0&&m===void 0)return jsxRuntime.jsx("div",{className:we(s,"text-text-secondary"),children:i});let p=y=>new Intl.NumberFormat("en-US",{minimumFractionDigits:n,maximumFractionDigits:n}).format(y),g=u!==void 0&&m!==void 0?`${p(u)}${ey}${nE}${ey}${p(m)}`:p(u!==void 0?u:m),f=we(s,tailwindMerge.twMerge("tabular-nums",yr(l),c));return jsxRuntime.jsxs("div",{className:f,children:[jsxRuntime.jsx("span",{children:g}),a&&jsxRuntime.jsx("span",{className:"text-text-secondary",children:a})]})}function bc({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:we(a),children:jsxRuntime.jsx(Y,{className:"h-4 w-4 rounded"})});let s=me(n,e),l=we(a);return jsxRuntime.jsx("div",{className:l,children:jsxRuntime.jsx(eo,{isSelected:r,onChange:c=>{o?.(e,c);},isDisabled:s,"aria-label":"Select row"})})}function hc({streetAddress:e,city:t,state:r,postalCode:o,layout:n="stacked",size:a="md",href:i,LinkComponent:s,linkVariant:l="unstyled",emphasis:c="normal",isLoading:d=false,showIcon:u=true,className:m,piiEntity:p}){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],b={strong:"font-semibold text-text-primary",high:"font-semibold text-text-primary",normal:"text-text-primary",low:"text-text-secondary"}[c],h=[];t&&h.push(t),r&&o?h.push(`${r} ${o}`):r?h.push(r):o&&h.push(o);let x=h.join(", "),C=({children:S,className:T})=>i?s?jsxRuntime.jsx(s,{href:i,className:T,children:S}):jsxRuntime.jsx(ut,{href:i,variant:l,className:tailwindMerge.twMerge("hover:underline",T),asButton:false,children:S}):jsxRuntime.jsx("span",{className:T,children:S});if(d)return n==="inline"?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",f.gap,m),children:[u&&jsxRuntime.jsx(Y,{width:f.skeletonIconInline,height:f.skeletonIconInline,className:"flex-shrink-0 rounded"}),jsxRuntime.jsx(Y,{width:f.skeletonText,height:f.skeletonIconInline*.8})]}):jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",f.gap,m),children:[u&&jsxRuntime.jsx(Y,{width:f.skeletonIconStacked,height:f.skeletonIconStacked,className:"flex-shrink-0 rounded"}),jsxRuntime.jsxs("div",{className:"flex flex-col gap-1",children:[jsxRuntime.jsx(Y,{width:f.skeletonText,height:16}),jsxRuntime.jsx(Y,{width:f.skeletonSecondary,height:12})]})]});if(n==="inline")return jsxRuntime.jsxs(C,{className:tailwindMerge.twMerge("flex items-center",f.gap,i&&"hover:bg-background-hover transition-colors",m),children:[u&&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",b,f.textSize,i&&"hover:underline hover:decoration-1 hover:underline-offset-4"),"data-pii-type":p?"address":void 0,"data-pii-entity":p,children:e})]});let w=()=>{if(p){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,m),children:[u&&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(C,{className:tailwindMerge.twMerge("leading-normal truncate hover:text-text-primary",b,f.textSize,i&&"hover:underline hover:decoration-1 hover:underline-offset-4"),children:jsxRuntime.jsx("span",{"data-pii-type":p?"address":void 0,"data-pii-entity":p,children:e})}),x&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-text-secondary leading-normal truncate",f.secondaryTextSize),"data-pii-type":w(),"data-pii-entity":p,children:x})]})]})}function ny({row:e,context:t,streetAddress:r,city:o,state:n,postalCode:a,layout:i="stacked",size:s="sm",href:l,LinkComponent:c,linkVariant:d="secondary",emphasis:u="normal",align:m="left",className:p,piiEntity:g}){let{isLoading:f}=t,y=me(r,e),b=me(o,e),h=me(n,e),x=me(a,e),C=me(l,e),w=me(g,e),S=we(m,p);return jsxRuntime.jsx("div",{className:S,children:jsxRuntime.jsx(hc,{streetAddress:y,city:b,state:h,postalCode:x,layout:i,size:s,href:C,LinkComponent:c,linkVariant:d,emphasis:u,isLoading:f,piiEntity:w})})}var $p=Qe__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:l=40})=>{let c=e||t||[],d=s||100,u=l,{xScale:m,yScale:p}=Qe.useMemo(()=>{if(c.length===0)return {xScale:scale.scaleTime({range:[0,d],domain:[new Date,new Date]}),yScale:scale.scaleLinear({range:[u,0],domain:[0,1]})};let f=d3Array.extent(c,x=>x.xValue),y=d3Array.min(c,x=>x.yValue)||0,b=d3Array.max(c,x=>x.yValue)||0,h=(b-y)*.1||1;return {xScale:scale.scaleTime({range:[0,d],domain:f}),yScale:scale.scaleLinear({range:[u,0],domain:[y-h,b+h]})}},[c,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(!c||c.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=a&&c[0]?.category&&a[c[0].category]?a[c[0].category]:o;return jsxRuntime.jsxs("svg",{width:d,height:u,className:"overflow-visible",children:[(r==="area"||r==="both")&&jsxRuntime.jsx(shape.AreaClosed,{data:c,x:f=>m(f.xValue),y:f=>p(f.yValue),yScale:p,fill:g,fillOpacity:.15,curve:curve.curveLinear}),(r==="line"||r==="both")&&jsxRuntime.jsx(shape.LinePath,{data:c,x:f=>m(f.xValue),y:f=>p(f.yValue),stroke:g,strokeWidth:n,strokeLinecap:"round",curve:curve.curveLinear})]})});$p.displayName="SparklineCell";function ly({value:e,row:t,context:r,prefix:o,suffix:n,emptyText:a="\u2014",href:i,linkBehavior:s="hover",linkVariant:l="secondary",emphasis:c="normal",truncate:d=true,copyable:u=false,align:m="left",className:p,piiType:g,piiEntity:f}){let{isLoading:y}=r;if(y)return jsxRuntime.jsx(Y,{className:Tt(c)});let b=oc(e,a),h=me(i,t),x=me(f,t),C=b,w=false,S=false;if(d&&b&&typeof b=="string")if(typeof d=="boolean")S=true;else {let{position:L="end",length:B=16,ellipsis:O="...",tooltip:H=true}=d;if(b.length>B){switch(L){case "start":C=Zs(b,B);break;case "middle":C=Fa(b,B);break;case "end":C=_s(b,B,O);break}w=H;}}let T=g&&x?{"data-pii-type":g,"data-pii-entity":x}:{},R=Object.keys(T).length>0,P=jsxRuntime.jsx("span",{className:S?"truncate":"",...T,children:C}),E=w?jsxRuntime.jsx(dr,{content:R?jsxRuntime.jsx("span",{...T,children:String(b)}):String(b),children:P}):P,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})]}),k=I;if(u&&b&&b!==a){let L=typeof u=="function"?u(t):String(b);k=jsxRuntime.jsx(ln,{value:L,size:"sm",children:I});}if(h){let L=we(m,p);return jsxRuntime.jsx("div",{className:L,children:Po(k,h,t,s,l,c)})}let D=we(m,tailwindMerge.twMerge(yr(c),p));return jsxRuntime.jsx("div",{className:D,children:k})}var hE={sm:"sm:hidden",md:"md:hidden",lg:"lg:hidden",xl:"xl:hidden"},xE={sm:"hidden sm:grid",md:"hidden md:grid",lg:"hidden lg:grid",xl:"hidden xl:grid"};function xc(e,t){return t.accessor?typeof t.accessor=="function"?t.accessor(e):e[t.accessor]:null}function yc(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 Cc({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"),l=a.filter(u=>u.mobileFormat==="badge"),c={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=xc(e,u);return jsxRuntime.jsx("div",{className:"font-medium text-text-primary [&>*]:!justify-start [&>*]:!text-left",children:yc(m,e,u,c)},u.id)})}),l.length>0&&jsxRuntime.jsx("div",{className:"ml-2 flex flex-wrap gap-1",children:l.map(u=>{let m=xc(e,u);return jsxRuntime.jsx("div",{className:"inline-flex",children:yc(m,e,u,c)},u.id)})})]}),s.length>0&&jsxRuntime.jsx("div",{className:"space-y-1",children:s.map(u=>{let m=xc(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:yc(m,e,u,c)})]},u.id)})})]})}function Sc({row:e,columns:t,density:r,isLoading:o,onClick:n}){let a=t.filter(l=>l.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((l,c)=>{let d=xc(e,l),u=c===0;return jsxRuntime.jsxs("div",{children:[!u&&jsxRuntime.jsx("div",{className:"text-xs text-text-secondary",children:l.label}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(u?"font-medium text-text-primary":"text-sm text-text-primary","[&>*]:!justify-start [&>*]:!text-left"),children:yc(d,e,l,i)})]},l.id)})})})}function cy(e="md"){return {mobile:hE[e],desktop:xE[e]}}function dy({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 LE={compact:"py-1.5 px-3 text-sm",default:"py-3 px-4 text-sm",relaxed:"py-4 px-4 text-base"},DE={left:"text-left justify-start",center:"text-center justify-center",right:"text-right justify-end"};function AE(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 IE({column:e,sortConfig:t,onSort:r,stickyHeader:o,stickyFirstColumn:n,isFirstColumn:a,density:i="default",isLoading:s=false,headerContent:l,sortNote:c}){let d=e.reorderable!==false,{attributes:u,listeners:m,setNodeRef:p,transform:g,transition:f,isDragging:y}=sortable.useSortable({id:e.id,disabled:!d||s}),{role:b,"aria-pressed":h,...x}=u,C=t?.columnId===e.id,w=C?t.direction:null,S=n&&a,T=C?c:void 0,R={...AE(e),transform:utilities.CSS.Transform.toString(g),transition:f,opacity:y?.8:1,zIndex:y?50:void 0};return jsxRuntime.jsx("div",{ref:p,className:tailwindMerge.twMerge("flex items-center border-b border-border-default bg-background-surface",e.sortable?"gap-2":"gap-1",LE[i],DE[e.align||"left"],o&&"sticky top-0 z-10",S&&"sticky left-0 z-20 shadow-[2px_0_4px_-2px_rgba(0,0,0,0.1)]",o&&S&&"z-30",e.sortable&&!s&&"hover:bg-background-hover",s&&"cursor-not-allowed opacity-60",C?"font-bold text-text-primary":"font-medium text-text-secondary",y&&"bg-background-hover"),style:R,...x,...m,role:"columnheader","aria-sort":C?w==="asc"?"ascending":"descending":"none","aria-disabled":s,title:T,"data-sort-note":T,children:s?jsxRuntime.jsx(Y,{className:"h-4 w-24"}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[l??jsxRuntime.jsx("span",{className:"flex-1 truncate cursor-pointer",onClick:()=>!s&&e.sortable&&r(e.id),children:e.label}),T&&jsxRuntime.jsx("span",{className:"sr-only",children:T}),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:C?jsxRuntime.jsx(V,{name:w==="asc"?"CaretUp":"CaretDown",size:14,weight:T?"regular":"bold",className:T?"text-text-secondary opacity-40":"text-text-primary"}):jsxRuntime.jsx(V,{name:"CaretUpDown",size:12,className:"text-text-secondary opacity-40"})})]})})}function py({columns:e,columnOrder:t,onColumnOrderChange:r,sortConfig:o,onSort:n,stickyHeader:a,stickyFirstColumn:i,density:s="default",isLoading:l=false,renderHeaderContent:c,sortNote:d}){let u=core.useSensors(core.useSensor(core.PointerSensor,{activationConstraint:{distance:5}}),core.useSensor(core.KeyboardSensor,{coordinateGetter:sortable.sortableKeyboardCoordinates})),m=new Map(e.map(f=>[f.id,f])),p=f=>{let{active:y,over:b}=f;if(b&&y.id!==b.id){let h=t.indexOf(y.id),x=t.indexOf(b.id);if(m.get(b.id)?.reorderable===false)return;let w=0;for(let P=0;P<t.length&&m.get(t[P])?.reorderable===false;P++)w=P+1;if(x<w)return;let S=Math.min(h,x),T=Math.max(h,x);for(let P=S;P<=T;P++){if(P===h)continue;if(m.get(t[P])?.reorderable===false)return}let R=sortable.arrayMove(t,h,x);r(R);}},g=t.map(f=>m.get(f)).filter(f=>f!==void 0);return jsxRuntime.jsx(core.DndContext,{sensors:u,collisionDetection:core.closestCenter,onDragEnd:p,children:jsxRuntime.jsx(sortable.SortableContext,{items:t,strategy:sortable.horizontalListSortingStrategy,children:jsxRuntime.jsx("div",{className:"contents",role:"rowgroup",children:g.map((f,y)=>jsxRuntime.jsx(IE,{column:f,sortConfig:o,onSort:n,stickyHeader:a,stickyFirstColumn:i,isFirstColumn:y===0,density:s,isLoading:l,headerContent:c?.(f),sortNote:d},f.id))})})})}var wc="__select",HE=new Set,tm={compact:"py-1.5 px-3 text-sm",default:"py-3 px-4 text-sm",relaxed:"py-4 px-4 text-base"},rm={left:"text-left justify-start",center:"text-center justify-center",right:"text-right justify-end"},GE={full:"w-full",auto:"w-auto inline-block",contained:"w-full max-w-6xl mx-auto"},WE={auto:"table-auto",fixed:"table-fixed",responsive:"table-auto"};function om(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 UE(e,t){return t.accessor?typeof t.accessor=="function"?t.accessor(e):e[t.accessor]:null}function KE({column:e,sortConfig:t,onSort:r,stickyHeader:o,stickyFirstColumn:n,isFirstColumn:a,density:i="default",isLoading:s=false,headerContent:l,sortNote:c}){let d=t?.columnId===e.id,u=d?t.direction:null,m=n&&a,p=d?c:void 0;return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex items-center border-b border-border-default bg-background-surface",e.sortable?"gap-2":"gap-1",tm[i],rm[e.align||"left"],o&&"sticky top-0 z-10",m&&"sticky left-0 z-20 shadow-[2px_0_4px_-2px_rgba(0,0,0,0.1)]",o&&m&&"z-30",e.sortable&&!s&&"cursor-pointer hover:bg-background-hover",s&&"cursor-not-allowed opacity-60",d?"font-bold text-text-primary":"font-medium text-text-secondary"),onClick:()=>!s&&e.sortable&&r(e.id),role:"columnheader","aria-sort":d?u==="asc"?"ascending":"descending":"none","aria-disabled":s,title:p,"data-sort-note":p,style:om(e),children:s?jsxRuntime.jsx(Y,{className:"h-4 w-24"}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[l??jsxRuntime.jsx("span",{className:"truncate",children:e.label}),p&&jsxRuntime.jsx("span",{className:"sr-only",children:p}),e.sortable&&jsxRuntime.jsx("div",{className:"flex flex-shrink-0",children:d?jsxRuntime.jsx(V,{name:u==="asc"?"CaretUp":"CaretDown",size:14,weight:p?"regular":"bold",className:p?"text-text-secondary opacity-40":"text-text-primary"}):jsxRuntime.jsx(V,{name:"CaretUpDown",size:12,className:"text-text-secondary opacity-40"})})]})})}function YE({column:e,row:t,rowIndex:r,columnIndex:o,isHovered:n,isSelected:a,density:i="default",className:s,stickyFirstColumn:l}){let c=l&&o===0,d=UE(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,g=typeof e.cellProps=="function"?e.cellProps(d,t):e.cellProps;m=jsxRuntime.jsx(p,{value:d,row:t,context:u,...g});}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,g,f="top",y=false,b="hover";typeof p=="string"?g=p:typeof p=="function"?g=p(d,t):(g=typeof p.content=="function"?p.content(d,t):p.content,f=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(vt,{placement:f,showArrow:y,children:jsxRuntime.jsx("div",{className:"p-2",children:g})})]});}return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex items-center border-b border-border-default bg-background-surface",e.noCellPadding?"":tm[i],rm[e.align||"left"],c&&"sticky left-0 z-10 shadow-[2px_0_4px_-2px_rgba(0,0,0,0.1)]",s),role:"cell",style:om(e),children:m})}function JE({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 l=e.cell,c=typeof e.cellProps=="function"?e.cellProps(null,{}):e.cellProps;s=jsxRuntime.jsx(l,{value:null,row:{},context:i,...c});}else e.render?s=e.render(null,{},i):s=jsxRuntime.jsx(Y,{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?"":tm[o],rm[e.align||"left"],a&&"sticky left-0 z-10 shadow-[2px_0_4px_-2px_rgba(0,0,0,0.1)]"),role:"cell",style:om(e),children:s})}function XE(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 my({columns:e,row:t,rowIndex:r,density:o="default",onClick:n,stickyFirstColumn:a,isSelected:i}){let[s,l]=Qe.useState(false),c=Qe.useCallback(d=>{if(!n)return;let u=d.target,m=d.currentTarget;XE(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:c,onMouseEnter:()=>l(true),onMouseLeave:()=>l(false),children:e.map((d,u)=>jsxRuntime.jsx(YE,{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 fy({columns:e,rowIndex:t,density:r="default",stickyFirstColumn:o}){return jsxRuntime.jsx("div",{className:"contents",role:"row",children:e.map((n,a)=>jsxRuntime.jsx(JE,{column:n,rowIndex:t,columnIndex:a,density:r,stickyFirstColumn:o},n.id))})}function gy({columns:e,data:t,className:r,density:o="default",width:n="full",height:a,maxHeight:i,layout:s="auto",mobileRenderer:l="auto",customMobileRowRender:c,mobileBreakpoint:d="md",isLoading:u=false,loadingState:m,loadingRowCount:p=5,onLoadMore:g,hasMore:f=false,enableVirtualization:y,estimatedRowHeight:b,loadingIndicator:h,stickyHeader:x=false,stickyFirstColumn:C=false,onRowClick:w,getRowId:S,selectedRowIds:T,onSelectionChange:R,selectionMode:P="multi",hideHeader:E=false,sortConfig:I,onSort:k,sortNote:D,"aria-label":L,enableColumnReorder:B=false,columnOrder:O,onColumnOrderChange:H}){let G=R!==void 0,Z=T??HE,z=Qe.useCallback((_,ue)=>{if(S)return S(_);let Q=_.id;return typeof Q=="string"&&Q.length>0?Q:typeof Q=="number"&&Number.isFinite(Q)?String(Q):`row-${ue}`},[S]),W=Qe.useMemo(()=>t.map((_,ue)=>z(_,ue)),[t,z]),q=Qe.useCallback((_,ue)=>{if(!R)return;if(P==="single"){R(ue?new Set([_]):new Set);return}let Q=new Set(Z);ue?Q.add(_):Q.delete(_),R(Q);},[R,Z,P]),F=W.filter(_=>Z.has(_)).length,X=W.length>0&&F===W.length,N=F>0&&!X,v=Qe.useCallback(_=>{if(!R)return;let ue=new Set(Z);for(let Q of W)_?ue.add(Q):ue.delete(Q);R(ue);},[R,W,Z]),M=Qe.useMemo(()=>G?[{id:wc,label:"",width:44,align:"center",sortable:false,reorderable:false,exportable:false,mobile:false,render:(ue,Q,Se)=>{let mo=z(Q,Se.rowIndex);return jsxRuntime.jsx(bc,{value:void 0,row:Q,context:Se,isSelected:Z.has(mo),onSelect:(Ea,Io)=>q(mo,Io)})}},...e]:e,[e,G,Z,z,q]),A=G&&P==="multi"?jsxRuntime.jsx(eo,{isSelected:X,isIndeterminate:N,onChange:_=>v(_),isDisabled:W.length===0,"aria-label":X?"Deselect all rows on this page":"Select all rows on this page"}):void 0,J=Qe.useCallback(_=>_.id===wc?A:void 0,[A]),[ae,le]=Qe.useState(null),$=I!==void 0,ie=$?I:ae,Ee=Qe.useRef(null),pe=Qe.useMemo(()=>M.map(_=>_.id),[M]),[ge,re]=Qe.useState(pe),se=O!==void 0,ve=se?O:ge;Qe.useEffect(()=>{se||re(_=>{let ue=M.map(Io=>Io.id),Q=new Set(ue),Se=new Set(_),mo=_.filter(Io=>Q.has(Io)),Ea=ue.filter(Io=>!Se.has(Io));return [...mo,...Ea]});},[M,se]);let je=Qe.useCallback(_=>{se||re(_),H?.(_);},[se,H]),Ze=Qe.useMemo(()=>{if(!B&&!O)return M;let _=new Map(M.map(Se=>[Se.id,Se])),ue=ve.map(Se=>_.get(Se)).filter(Se=>Se!==void 0),Q=_.get(wc);return Q&&!ue.some(Se=>Se.id===wc)?[Q,...ue]:ue},[M,ve,B,O]),wr=on({items:t,onLoadMore:g,hasMore:f,isLoading:u,loadingState:m,enableVirtualization:y,estimatedItemSize:b||(o==="compact"?40:o==="relaxed"?60:48),overscan:5}),Dt=g?wr:null,Nr=Dt?.scrollRef??Ee,{loadMoreRef:Tr,virtualizer:xt,virtualItems:Zt,isLoadingMore:ee,computedLoadingState:We}=Dt||{},{gridTemplateColumns:$e,totalMinWidth:ne}=Qe.useMemo(()=>{let _=0;return {gridTemplateColumns:Ze.map(Q=>{if(Q.minWidth?_+=typeof Q.minWidth=="number"?Q.minWidth:0:Q.width&&typeof Q.width=="number"&&(_+=Q.width),Q.width)return typeof Q.width=="number"?`${Q.width}px`:Q.width;if(Q.flex)return `${Q.flex}fr`;if(Q.minWidth&&Q.maxWidth){let Se=typeof Q.minWidth=="number"?`${Q.minWidth}px`:Q.minWidth,mo=typeof Q.maxWidth=="number"?`${Q.maxWidth}px`:Q.maxWidth;return `minmax(${Se}, ${mo})`}return Q.minWidth?`minmax(${typeof Q.minWidth=="number"?`${Q.minWidth}px`:Q.minWidth}, 1fr)`:Q.maxWidth?`minmax(0, ${typeof Q.maxWidth=="number"?`${Q.maxWidth}px`:Q.maxWidth})`:"1fr"}).join(" "),totalMinWidth:_}},[Ze]),Me=Qe.useCallback(_=>{if(!M.find(Se=>Se.id===_)?.sortable)return;let Q;ie?.columnId===_?Q={columnId:_,direction:ie.direction==="asc"?"desc":"asc"}:Q={columnId:_,direction:"asc"},$||le(Q),k?.(Q);},[M,ie,k,$]),Re=We==="loading"||u&&t.length===0,K={};a?(K.height=typeof a=="number"?`${a}px`:a,K.overflowY="auto"):i?(K.maxHeight=typeof i=="number"?`${i}px`:i,K.overflowY="auto"):g&&(K.height="600px",K.overflowY="auto");let U=tailwindMerge.twMerge(GE[n],!g&&(s==="responsive"?"overflow-x-auto scrollbar-visible":"overflow-auto scrollbar-visible"),r),de=cy(d),oe=l!=="none",xe=(_,ue)=>oe?l==="custom"&&c?c(_,ue):jsxRuntime.jsx(l==="cards"?Sc:Cc,{row:_,columns:Ze,density:o,isLoading:u,onClick:w?()=>w(_):void 0}):null,Oe=xt?Zt?.map(_=>({virtualItem:_,row:t[_.index],index:_.index}))||[]:t.map((_,ue)=>({row:_,index:ue,virtualItem:null}));return jsxRuntime.jsxs("div",{ref:Nr,className:U,style:{...K,position:xt?"relative":void 0},children:[jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("grid border-separate border-spacing-0",WE[s],n==="auto"?"inline-grid w-auto":"w-full",oe&&de.desktop),role:"table","aria-label":L,style:{gridTemplateColumns:$e,minWidth:ne>0?`${ne}px`:void 0},children:[!E&&(B?jsxRuntime.jsx(py,{columns:M,columnOrder:ve,onColumnOrderChange:je,sortConfig:ie,onSort:Me,stickyHeader:x,stickyFirstColumn:C,density:o,isLoading:Re,renderHeaderContent:J,sortNote:D}):jsxRuntime.jsx("div",{className:"contents",role:"rowgroup",children:Ze.map((_,ue)=>jsxRuntime.jsx(KE,{column:_,sortConfig:ie,onSort:Me,stickyHeader:x,stickyFirstColumn:C,isFirstColumn:ue===0,density:o,isLoading:Re,headerContent:J(_),sortNote:D},_.id))})),xt?jsxRuntime.jsx("div",{className:"col-span-full",style:{gridColumn:"1 / -1",height:`${xt.getTotalSize()}px`,position:"relative"},role:"rowgroup",children:Re?Array.from({length:p}).map((_,ue)=>jsxRuntime.jsx("div",{className:"contents",children:jsxRuntime.jsx(fy,{columns:Ze,rowIndex:ue,density:o,stickyFirstColumn:C})},`loading-${ue}`)):t.length>0?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[Oe.map(({row:_,index:ue,virtualItem:Q})=>{if(!_||!Q)return null;let Se=S?S(_):`row-${ue}`;return jsxRuntime.jsx("div",{style:{position:"absolute",top:0,left:0,width:"100%",display:"grid",gridTemplateColumns:$e,transform:`translateY(${Q.start}px)`},"data-index":Q.index,ref:xt.measureElement,children:jsxRuntime.jsx(my,{columns:Ze,row:_,rowIndex:ue,density:o,onClick:w,stickyFirstColumn:C,isSelected:G?Z.has(z(_,ue)):void 0})},Se)}),ee&&jsxRuntime.jsx("div",{style:{position:"absolute",top:`${xt.getTotalSize()}px`,left:0,width:"100%"},children:h||jsxRuntime.jsx(Ur,{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:Re?Array.from({length:p}).map((_,ue)=>jsxRuntime.jsx(fy,{columns:Ze,rowIndex:ue,density:o,stickyFirstColumn:C},`loading-${ue}`)):t.length>0?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[Oe.map(({row:_,index:ue})=>{if(!_)return null;let Q=S?S(_):`row-${ue}`;return jsxRuntime.jsx(my,{columns:Ze,row:_,rowIndex:ue,density:o,onClick:w,stickyFirstColumn:C,isSelected:G?Z.has(z(_,ue)):void 0},Q)}),ee&&jsxRuntime.jsx("div",{className:"col-span-full",style:{gridColumn:"1 / -1"},children:h||jsxRuntime.jsx(Ur,{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"})})})]}),oe&&jsxRuntime.jsx("div",{className:de.mobile,children:Re?Array.from({length:p}).map((_,ue)=>jsxRuntime.jsx(dy,{density:o},`mobile-loading-${ue}`)):t.length>0?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[Oe.map(({row:_,index:ue})=>{if(!_)return null;let Q=S?S(_):`mobile-row-${ue}`;return jsxRuntime.jsx("div",{className:"border-b border-border-default last:border-b-0",children:xe(_,ue)},Q)}),ee&&(h||jsxRuntime.jsx(Ur,{state:"loading-more"}))]}):jsxRuntime.jsx("div",{className:"py-12 text-center text-text-secondary",children:"No data available"})}),g&&f&&!Re&&(xt?jsxRuntime.jsx("div",{ref:Tr,style:{position:"absolute",top:`${xt.getTotalSize()}px`,left:0,width:"100%",height:1}}):jsxRuntime.jsx("div",{ref:Tr,className:"h-px w-full"}))]})}function hy({status:e,alertCount:t,showCount:r=false,isLoading:o,size:n="sm",shape:a="pill",...i}){if(o)return jsxRuntime.jsx(Y,{className:"inline-flex h-6 w-20"});let s={healthy:"success",warning:"warning",error:"error",unknown:"neutral"},l={healthy:"Healthy",warning:"Warning",error:"Error",unknown:"Unknown"},c=e==="warning"||e==="error",d=r&&t?`${l[e]} (${t})`:l[e];return jsxRuntime.jsx(ft,{variant:s[e],size:n,shape:a,dot:c,dotPulse:c,...i,children:d})}var qE={battery:"BatteryHigh",charger:"ChargingStation",thermostat:"ThermometerSimple",inverter:"Power",vehicle:"Car",water_heater:"DropHalfBottom",meter:"Gauge",gateway:"WifiHigh",other:"Cube",unknown:"Question"},QE={battery:"Battery",charger:"Charger",thermostat:"Thermostat",inverter:"Inverter",vehicle:"Vehicle",water_heater:"Water Heater",meter:"Meter",gateway:"Gateway",other:"Other",unknown:"Unknown"};function yy({deviceType:e,iconName:t,size:r="md",showLabel:o=false,className:n}){let a=t||(e?qE[e]:"Question"),i=e?QE[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 us({children:e,title:t,headerContent:r,titleAlign:o="left",hideCloseIcon:n=false,hasBackArrow:a=false,onBack:i,isOpen:s,slideInFrom:l="right",transparentOverlay:c=false,onClose:d,className:u,primaryAction:m,secondaryAction:p,tertiaryAction:g,footerContent:f,contentPadding:y=true,maxWidth:b="400px"}){if(!s)return null;let h=t||r,x=m||p||g||f;return jsxRuntime.jsx($r,{children:jsxRuntime.jsx(kr,{isOpen:s,onOpenChange:C=>!C&&d?.(),isDismissable:true,transparent:c,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",l==="right"?"right-0":"left-0",l==="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",l==="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(_t,{title:t,headerContent:r,titleAlign:o,hideCloseIcon:n,hasBackArrow:true,onBack:i,onClose:d}):jsxRuntime.jsx(_t,{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(tn,{primaryAction:m,secondaryAction:p,tertiaryAction:g,footerContent:f})]})})})})}us.displayName="Drawer";function Cy({status:e,programName:t,isLoading:r,size:o="sm",shape:n="pill",...a}){if(r)return jsxRuntime.jsx(Y,{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"},l=jsxRuntime.jsx(ft,{variant:i[e],size:o,shape:n,...a,children:s[e]});return t?jsxRuntime.jsx(dr,{content:t,children:l}):l}function wy({value:e,onChange:t,onUrlChange:r,accept:o="image/*",maxSize:n,isDisabled:a=false,onUpload:i,className:s,showPreview:l=true,placeholder:c="Drop files here or click to browse"}){let[d,u]=Qe.useState(false),[m,p]=Qe.useState(false),[g,f]=Qe.useState(null),[y,b]=Qe.useState(e),h=Qe.useRef(null),x=async S=>{if(f(null),n&&S.size>n){f(`File size must be less than ${(n/1024/1024).toFixed(2)}MB`);return}if(l&&S.type.startsWith("image/")){let T=new FileReader;T.onloadend=()=>{b(T.result);},T.readAsDataURL(S);}if(i){p(true);try{let T=await i(S);b(T),r?.(T);}catch(T){f("Failed to upload file"),console.error("Upload error:",T);}finally{p(false);}}t?.(S,y);},C=async S=>{try{let T=S.items;if(T.length>0){let R=T[0];if(R.kind==="file"){let P=await R.getFile();P&&x(P);}}}catch(T){f("Failed to upload file"),console.error("Upload error:",T);}finally{u(false);}},w=()=>{b(void 0),f(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",g&&"border-feedback-error-border bg-feedback-error-background/50"),onDrop:C,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:[l&&(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(te,{variant:"icon",size:"sm",onPress:w,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:c}),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:S=>{let T=Array.from(S||[]);T.length>0&&x(T[0]);},children:jsxRuntime.jsx(te,{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..."})]})})]}),g&&jsxRuntime.jsx("p",{className:"mt-2 text-sm text-feedback-error-text",children:g})]})}function Ty({version:e,isLatest:t,updateAvailable:r,isLoading:o,size:n="sm",shape:a="rounded",...i}){if(o)return jsxRuntime.jsx(Y,{className:"inline-flex h-6 w-16"});let s="neutral",l=e;return t?s="success":r&&(s="warning",l=`${e} (Update)`),jsxRuntime.jsx(ft,{variant:s,size:n,shape:a,...i,children:l})}function li(e){return jsxRuntime.jsx(reactAriaComponents.Form,{validationBehavior:"aria",...e,className:tailwindMerge.twMerge("flex flex-col gap-6",e.className)})}function Py({placeholder:e="Search...",value:t,onChange:r,isOpen:o,onOpenChange:n,trigger:a,children:i,showShortcutHint:s=true,showInput:l=true,className:c}){let[d,u]=Qe.useState(false),m=nr("(max-width: 767px)"),p=o!==void 0?o:d,g=Qe.useCallback(h=>{n?n(h):u(h);},[n]);Qe.useEffect(()=>{let h=x=>{(x.metaKey||x.ctrlKey)&&x.key==="k"&&(x.preventDefault(),g(!p)),x.key==="Escape"&&p&&g(false);};return window.addEventListener("keydown",h),()=>window.removeEventListener("keydown",h)},[p,g]);let f=Qe.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||Qe.isValidElement(a)&&a.type===Qe.Fragment&&!a.props.children;return m?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[!b&&(a?jsxRuntime.jsx("button",{type:"button",onClick:()=>g(true),className:"appearance-none bg-transparent border-none p-0 cursor-pointer",children:a}):jsxRuntime.jsx("button",{type:"button",onClick:()=>g(true),className:"appearance-none bg-transparent border-none p-0 cursor-pointer",children:y})),jsxRuntime.jsx(Ct,{isOpen:p,onClose:()=>g(false),hideCloseIcon:false,contentPadding:false,maxHeight:"90vh",children:jsxRuntime.jsxs("div",{className:"flex flex-col h-full",children:[l&&jsxRuntime.jsx("div",{className:"p-4 border-b border-border-muted flex-shrink-0",children:jsxRuntime.jsx(qr,{value:t,onChange:f,placeholder:e,showSearchIcon:true,isClearable:!!t,onClear:()=>r?.(""),reserveErrorSpace:false,className:c,autoFocus:true})}),jsxRuntime.jsx("div",{className:"flex-1 min-h-0 overflow-hidden",children:i})]})})]}):b?null:jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{isOpen:p,onOpenChange:g,children:[a||y,jsxRuntime.jsx(vt,{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:[l&&jsxRuntime.jsx("div",{className:"p-4 border-b border-border-muted",children:jsxRuntime.jsx(qr,{value:t,onChange:f,placeholder:e,showSearchIcon:true,isClearable:!!t,onClear:()=>r?.(""),reserveErrorSpace:false,className:c,autoFocus:true})}),jsxRuntime.jsx("div",{className:"max-h-[500px] overflow-hidden",children:i})]})})]})}function My({placeholder:e="Search...",value:t,onChange:r,isOpen:o,onOpenChange:n,children:a,maxHeight:i="400px",variant:s="default",className:l}){let[c,d]=Qe.useState(false),u=nr("(max-width: 767px)"),m=Qe.useRef(null),p=Qe.useRef(null),g=o!==void 0?o:c,f=Qe.useCallback(E=>{n?n(E):d(E);},[n]);Qe.useEffect(()=>{let E=I=>{(I.metaKey||I.ctrlKey)&&I.key==="k"&&(I.preventDefault(),f(!g)),I.key==="Escape"&&g&&f(false);};return window.addEventListener("keydown",E),()=>window.removeEventListener("keydown",E)},[g,f]),Qe.useEffect(()=>{g&&!u&&m.current&&setTimeout(()=>{m.current?.querySelector("input")?.focus();},0);},[g,u]),Qe.useEffect(()=>{if(!g||u)return;let E=I=>{let k=I.target,D=m.current?.contains(k),L=p.current?.contains(k);!D&&!L&&f(false);};return document.addEventListener("mousedown",E,true),()=>document.removeEventListener("mousedown",E,true)},[g,u,f]);let y=E=>{r?.(E);},b=Qe.useCallback(()=>{f(false);},[f]),h=Qe.useCallback(()=>{r?.("");},[r]),[x,C]=Qe.useState(null);Qe.useEffect(()=>{if(g&&!u&&m.current){let E=null,I=()=>{let D=m.current?.getBoundingClientRect();D&&C({top:D.bottom+8,left:D.left,width:D.width});},k=()=>{E===null&&(E=requestAnimationFrame(()=>{I(),E=null;}));};return I(),window.addEventListener("resize",k),window.addEventListener("scroll",k,true),()=>{window.removeEventListener("resize",k),window.removeEventListener("scroll",k,true),E!==null&&cancelAnimationFrame(E);}}},[g,u]);let w=Qe.useCallback(()=>{f(true);},[f]);if(u)return jsxRuntime.jsxs("div",{className:l,children:[jsxRuntime.jsx("button",{type:"button",onClick:w,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(Ct,{isOpen:g,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(qr,{value:t,onChange:y,placeholder:e,showSearchIcon:true,isClearable:!!t,onClear:h,reserveErrorSpace:false,autoFocus:true})}),jsxRuntime.jsx(te,{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 S=E=>{let k=E.target.tagName==="INPUT";if(E.key==="ArrowDown"&&g&&k){E.preventDefault();let D=p.current?.querySelector("[data-search-result]");D&&D.focus();}},T=E=>{let I=E.target;if(!I.hasAttribute("data-search-result"))return;let D=Array.from(p.current?.querySelectorAll("[data-search-result]")||[]),L=D.indexOf(I);if(E.key==="ArrowDown"){E.preventDefault(),E.stopPropagation();let B=Math.min(L+1,D.length-1);D[B]?.focus();}else if(E.key==="ArrowUp")if(E.preventDefault(),E.stopPropagation(),L===0)m.current?.querySelector("input")?.focus();else {let B=Math.max(L-1,0);D[B]?.focus();}else E.key==="Escape"&&(E.preventDefault(),E.stopPropagation(),f(false),m.current?.querySelector("input")?.focus());},R=g&&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:T,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,P=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 ${l||""}`,onKeyDown:S,children:[jsxRuntime.jsx(qr,{value:t,onChange:y,placeholder:e,showSearchIcon:true,isClearable:!!t,onClear:()=>r?.(""),reserveErrorSpace:false,className:P,onFocus:()=>f(true)}),R]},"desktop")}function Ly({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 Ay({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(Y,{width:20,height:20,variant:"circle"}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0 space-y-2",children:[jsxRuntime.jsx(Y,{width:"60%",height:16}),jsxRuntime.jsx(Y,{width:"40%",height:12})]}),jsxRuntime.jsx(Y,{width:16,height:16})]},o))})}function Fy({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 By({id:e,title:t,subtitle:r,metadata:o,icon:n,customIcon:a,onSelect:i,isFocused:s=false,className:l,testId:c}){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 g=Array.from(document.querySelectorAll("[data-search-result]")),f=g.indexOf(p);f!==-1&&f<g.length-1&&g[f+1].focus();break}case "ArrowUp":{m.preventDefault();let g=Array.from(document.querySelectorAll("[data-search-result]")),f=g.indexOf(p);if(f>0)g[f-1].focus();else {let y=document.querySelector('input[type="text"][placeholder*="Search"]');y&&y.focus();}break}case "Escape":{m.preventDefault();let g=document.querySelector('input[type="text"][placeholder*="Search"]');g&&g.focus();break}}},"data-testid":c,"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",l),"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 Vy({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 zy({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:`
30
+ `}})]})}function an(e,t=300){let[r,o]=Qe.useState(e);return Qe.useEffect(()=>{let n=setTimeout(()=>o(e),t);return ()=>clearTimeout(n)},[e,t]),r}function dl(e,t=300){let[r,o]=Qe.useState(false);return Qe.useEffect(()=>{if(e){let n=setTimeout(()=>{o(true);},t);return ()=>clearTimeout(n)}o(false);},[e,t]),r}var TN=({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 dr({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)=>TN({...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 ur(){let[e,t]=Qe__namespace.default.useState(false),r=Qe__namespace.default.useCallback((n,a)=>{t(true),a?.(n);},[]),o=Qe__namespace.default.useCallback((n,a)=>{t(false),a?.(n);},[]);return {isFocused:e,handleFocus:r,handleBlur:o}}var St=Qe__namespace.default.forwardRef(({children:e,className:t},r)=>jsxRuntime.jsx("div",{ref:r,className:tailwindMerge.twMerge("relative w-full",t),children:e}));St.displayName="InputWrapper";function Vi({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 sn(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 Wg(e){return e.isDisabled?"bg-background-muted":e.transparent?"bg-transparent":"bg-background-input"}function kN(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 zt(e){let{isInvalid:t,isDisabled:r,isFocused:o,transparent:n,size:a="md",className:i}=e;return tailwindMerge.twMerge("w-full",sn({isInvalid:t,isDisabled:r,isFocused:o}),Wg({transparent:n,isDisabled:r}),Ue[a].text,Ue[a].height,Ue[a].padding,kN(a),i)}function PN(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",Wg({transparent:a,isDisabled:n}),Ue[t].height,sn({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 l=r||o&&n==="tooltip",c=r||o,d=o&&n==="inline",u=jsxRuntime.jsxs("label",{htmlFor:s,className:tailwindMerge.twMerge(Ue[t].text,"!text-text-label font-semibold flex items-center gap-1",i),children:[e,a&&jsxRuntime.jsx("span",{children:"*"}),l&&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 l&&c?jsxRuntime.jsx(dr,{content:c,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",Ue[e].text,t),children:r})}function he({children:e,size:t="md",className:r}){return jsxRuntime.jsx("div",{role:"alert",className:tailwindMerge.twMerge(Ue[t].text,"text-feedback-error-text",r),children:e})}function pl({size:e="md",isInvalid:t,isDisabled:r,isFocused:o,transparent:n,className:a,...i}){return jsxRuntime.jsx("input",{className:zt({isInvalid:t,isDisabled:r,isFocused:o,transparent:n,size:e,className:a}),...i})}function Ug(e){let{children:t,...r}=e;return jsxRuntime.jsx("div",{...r,className:PN(e),children:typeof t=="function"?t(e):t})}var Vu=Qe.createContext("md");function jg(){return Qe.useContext(Vu)}function Iu(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 ${Ue[e].text} ${t}`}function AN(){let e=Qe__namespace.default.useCallback((r,o)=>{o?.(r);},[]),t=Qe__namespace.default.useCallback((r,o)=>{o?.(r);},[]);return {handleFocus:e,handleBlur:t}}function zo({label:e,description:t,errorMessage:r,children:o,items:n,renderItem:a,renderSelectedValue:i,size:s="md",selectedKey:l,defaultSelectedKey:c,onSelectionChange:d,placeholder:u,showErrors:m=false,tooltip:p,isRequired:g,transparent:f,reserveErrorSpace:y=false,placement:b="bottom start",shouldFlip:h=true,menuWidth:x="match",descriptionPlacement:C="below",useMobileTray:w=true,...S}){let[T,R]=Qe.useState(null),[P,E]=Qe.useState(null),[I,k]=Qe.useState(false),D=l??T??c,{handleFocus:L,handleBlur:B}=AN(),{isMobile:O}=ar(),H=w&&O,G=Qe__namespace.default.useMemo(()=>!i||!D||!n?null:Array.from(n).find(X=>X.id===D)??null,[i,D,n]),Z=F=>{d&&F!==null&&d(F),d||R(F);},z=Qe.useRef(null),W=Qe.useRef(null),q=()=>{H&&k(!I);};return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(reactAriaComponents.Select,{...S,selectedKey:D,defaultSelectedKey:c,onSelectionChange:Z,placeholder:u,className:Ae(S.className,"group flex w-full flex-col"),ref:z,onOpenChange:F=>{H||(F&&W.current?E(W.current.offsetWidth):F||z.current?.blur());},children:({isDisabled:F,isInvalid:X,isOpen:N})=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(Ye,{size:s,tooltip:p,description:C==="tooltip"||C==="inline"?t:void 0,descriptionPlacement:C,isRequired:g,children:e}),jsxRuntime.jsx(St,{children:jsxRuntime.jsx("div",{ref:W,children:jsxRuntime.jsxs(te,{variant:"unstyled",className:tailwindMerge.twMerge(zt({isInvalid:X||m&&!!r,isDisabled:F,isFocused:H?I:N,transparent:f,size:s}),"flex items-center text-start gap-4 cursor-pointer pl-[var(--control-padding-sm)]"),onFocus:v=>L(v,S.onFocus),onBlur:v=>B(v,S.onBlur),onPress:H?q:void 0,"data-open":H?I:N,children:[i&&G?jsxRuntime.jsx("div",{className:Iu(s),children:i(G)}):H&&D?jsxRuntime.jsx("div",{className:Iu(s),children:n?Array.from(n).find(A=>A.id===D)?.label:String(D)}):jsxRuntime.jsx(reactAriaComponents.SelectValue,{className:Iu(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",(H?I:N)&&"rotate-180")})]})})}),y?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:m?jsxRuntime.jsx(he,{size:s,className:"text-feedback-error-text",children:typeof r=="function"&&S.validationResult?r(S.validationResult):typeof r=="string"?r:null}):t&&C==="below"?jsxRuntime.jsx(Te,{size:s,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:m?jsxRuntime.jsx(he,{size:s,className:"mt-1 text-feedback-error-text",children:typeof r=="function"&&S.validationResult?r(S.validationResult):typeof r=="string"?r:null}):t&&C==="below"?jsxRuntime.jsx(Te,{size:s,className:"mt-1",children:t}):null}),H?null:jsxRuntime.jsx(vt,{className:"bg-background-input shadow-xl border border-border-input/20 backdrop-blur-sm rounded-[var(--control-border-radius)]",style:{width:x==="match"&&P?`${P}px`:void 0,minWidth:x==="auto"&&P?`${P}px`:void 0,maxWidth:x==="auto"?"min(600px, 90vw)":void 0},placement:b,shouldFlip:h,children:jsxRuntime.jsx(Vu.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?v=>jsxRuntime.jsx(pr,{id:v.id,textValue:v.label,children:jsxRuntime.jsx("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap min-w-0 flex-1",children:a(v)})},v.id):o})})})]})}),H&&jsxRuntime.jsx(Ct,{isOpen:I,onClose:()=>k(false),title:e??"Select an option",contentPadding:false,children:jsxRuntime.jsx(Vu.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:D!=null?[D]:[],onSelectionChange:F=>{let X=Array.from(F)[0];X!=null&&(Z(X),k(false));},children:a&&n?F=>jsxRuntime.jsx(pr,{id:F.id,textValue:F.label,children:jsxRuntime.jsx("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap min-w-0 flex-1",children:a(F)})},F.id):o})})})]})}function pr({size:e,className:t,...r}){let o=jg(),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",Ue[n].paddingY,Ue[n].text,t)})}var YN=[],JN={sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6",xl:"h-7 w-7"},XN={sm:"pl-8",md:"pl-10",lg:"pl-11",xl:"pl-13"},Qg={sm:"py-1",md:"py-2",lg:"py-3",xl:"py-4"},zu=(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 jN(e,t,r){try{let o=e.url.replace("{q}",t),n=new URLSearchParams;e.extraParams&&Object.entries(e.extraParams).forEach(([l,c])=>{n.append(l,c.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 qN(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 gl({label:e,staticItems:t=YN,sections:r,selectedKey:o,defaultSelectedKey:n,onSelectionChange:a,requestConfig:i,defaultFilter:s,placeholder:l,errorMessage:c,description:d,size:u="md",tooltip:m,isRequired:p,isDisabled:g,isInvalid:f,validationResult:y,showErrors:b=true,renderItem:h,renderLeftIcon:x,renderSection:C,autoFocus:w=false,reserveErrorSpace:S=false,hideChevron:T=false,useMobileTray:R=true,className:P}){let E=Qe__namespace.default.useRef(null),I=Qe__namespace.default.useRef(null),[k,D]=Qe__namespace.default.useState(),[L,B]=Qe.useState(()=>zu(o||n,t,r)),[O,H]=Qe.useState(false),[G,Z]=Qe.useState(false),z=an(L),{contains:W}=reactAria.useFilter({sensitivity:"base"}),[q,F]=Qe.useState(),{isMobile:X}=ar(),N=R&&X,v=Ue[u].text,M=reactStately.useAsyncList({async load({signal:pe,filterText:ge=""}){if(!i)return {items:[]};if(!i.url||i.shouldLoad&&!i.shouldLoad(ge))return {items:[]};try{let re;return i.requestType==="GraphQL"?re=await qN(i,ge,pe):re=await jN(i,ge,pe),F(re.error),{items:re.items}}catch(re){return re instanceof Error&&re.name==="AbortError"?{items:[]}:(console.error("Error loading items:",re),F(re instanceof Error?re.message:"Unknown error occurred"),{items:[]})}},initialFilterText:""}),A=i&&z!==""?M:null,J=false,ae=Qe.useRef("");Qe.useEffect(()=>{w&&H(true);},[w]),Qe.useEffect(()=>{let pe=zu(o,t,r);pe!==L&&B(pe);},[o,t,r]),Qe.useEffect(()=>{let pe=()=>{E.current&&D(E.current.offsetWidth);};return pe(),window.addEventListener("resize",pe),()=>window.removeEventListener("resize",pe)},[]),Qe.useEffect(()=>{z===""?ae.current="":A&&z!==ae.current&&(ae.current=z,A.setFilterText(z));},[z,A]),J=dl(!!A?.isLoading,300);let le=Qe__namespace.default.useMemo(()=>{if(!N||!L)return A?A.items:t;let pe=A?A.items:t,ge=s??(i?()=>true:W);return pe.filter(re=>ge(re.name,L))},[N,L,A,t,s,W]),$=pe=>{let ge=zu(pe,t,r);B(ge),a&&a(pe);},ie=pe=>{B(pe);},Ee=()=>{N&&Z(true);};return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(reactAriaComponents.ComboBox,{onSelectionChange:$,selectedKey:o||void 0,defaultSelectedKey:n||void 0,items:A?A.items:r?r.flatMap(pe=>pe.items):t,className:Ae(P,"group flex flex-col w-full"),menuTrigger:N?"manual":i?"input":"focus",allowsEmptyCollection:!!i,isDisabled:g,isInvalid:f||!!c,inputValue:L,onInputChange:ie,autoFocus:w&&!N,defaultFilter:s??(i?()=>true:W),"aria-label":e||l||"Autocomplete",children:pe=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(Ye,{size:u,tooltip:m,isRequired:p,children:e}),jsxRuntime.jsxs(St,{ref:E,children:[x?jsxRuntime.jsx("div",{className:"pointer-events-none absolute left-3 top-[45%] -translate-y-1/2 z-10",children:x(J)}):jsxRuntime.jsx("div",{className:"pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 z-10 flex items-center",children:J?jsxRuntime.jsx(Wr,{size:16,color:"text-text-secondary"}):jsxRuntime.jsx(V,{name:"MagnifyingGlass",className:`${JN[u]} text-text-secondary`})}),jsxRuntime.jsx(reactAriaComponents.Input,{className:zt({isInvalid:f||!!c,isDisabled:g,isFocused:O||(N?G:pe.isOpen),size:u,className:tailwindMerge.twMerge(XN[u],L&&!g||!T&&!L?"pr-10":"pr-3",N&&"cursor-pointer",P)}),placeholder:l,disabled:g,onFocus:ge=>{H(true),N&&(ge.currentTarget.blur(),Ee());},onBlur:()=>{H(false);},onClick:N?Ee:void 0,readOnly:N,"aria-label":e||l||"Autocomplete"}),L&&!g&&jsxRuntime.jsx(Vi,{onClick:()=>{B(""),a?.(null);},size:u}),!T&&!L&&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:g,children:({isPressed:ge})=>jsxRuntime.jsx(V,{name:ge?"CaretUp":"CaretDown",className:"h-4 w-4"})})]}),S?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:b&&q?jsxRuntime.jsx(he,{size:u,className:"text-feedback-error-text",children:q}):b&&typeof c=="string"?jsxRuntime.jsx(he,{size:u,className:"text-feedback-error-text",children:c}):b&&typeof c=="function"&&y?jsxRuntime.jsx(he,{size:u,className:"text-feedback-error-text",children:c(y)}):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&&q&&jsxRuntime.jsx(he,{size:u,className:"text-feedback-error-text mt-1",children:q}),b&&typeof c=="string"&&jsxRuntime.jsx(he,{size:u,className:"text-feedback-error-text mt-1",children:c}),b&&typeof c=="function"&&y&&jsxRuntime.jsx(he,{size:u,className:"text-feedback-error-text mt-1",children:c(y)})]}),!N&&jsxRuntime.jsx(vt,{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:k?`${k}px`:void 0,zIndex:9999},children:jsxRuntime.jsx(reactAriaComponents.ListBox,{"aria-label":e||l||"Suggestions",className:`max-h-[300px] overflow-auto bg-background-input outline-none ${v}`,children:r?r.map(ge=>{let re=ge.items.map(se=>jsxRuntime.jsx(pr,{id:se.id,textValue:se.name,size:u,className:`flex cursor-default items-center gap-2 px-3 ${Qg[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(se):se.name},se.id));if(C){let se=C(ge,re);return Qe__namespace.default.isValidElement(se)&&se.type===reactAriaComponents.ListBoxSection?se:jsxRuntime.jsx(reactAriaComponents.ListBoxSection,{children:se},ge.name)}return jsxRuntime.jsxs(reactAriaComponents.ListBoxSection,{children:[jsxRuntime.jsx(reactAriaComponents.Header,{className:"px-3 py-1 text-sm font-bold text-text-secondary",children:ge.name}),re]},ge.name)}):ge=>jsxRuntime.jsx(pr,{id:ge.id,textValue:ge.name,size:u,className:`flex cursor-default items-center gap-2 px-3 ${Qg[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(ge):ge.name},ge.id)})})]})}),N&&jsxRuntime.jsx(Ct,{isOpen:G,onClose:()=>Z(false),title:e??l??"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(St,{children:[jsxRuntime.jsx("div",{className:"pointer-events-none absolute left-3 top-[45%] -translate-y-1/2 z-10 flex items-center",children:J?jsxRuntime.jsx(Wr,{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:L,onChange:pe=>ie(pe.target.value),placeholder:l,autoFocus:true,className:zt({isInvalid:false,isDisabled:false,isFocused:true,size:"md",className:"pl-10 pr-10"})}),L&&jsxRuntime.jsx(Vi,{onClick:()=>{B(""),a?.(null);},size:"md"})]})}),jsxRuntime.jsx("div",{className:"flex-1 overflow-auto",children:jsxRuntime.jsx(reactAriaComponents.ListBox,{"aria-label":e||l||"Suggestions",items:le,selectedKeys:o?[o]:[],selectionMode:"single",onSelectionChange:pe=>{let ge=Array.from(pe)[0];ge&&($(ge),Z(false));},className:"bg-background-input outline-none",children:pe=>jsxRuntime.jsx(pr,{id:pe.id,textValue:pe.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(pe):pe.name},pe.id)})})]})})]})}function Ho({src:e,alt:t,firstName:r,lastName:o,fullName:n,onClick:a,size:i="md",shape:s="circle",variant:l="user",className:c,status:d,bordered:u=false,piiEntity:m}){let[p,g]=Qe.useState(false),f=Qe.useCallback(()=>g(true),[]);Qe.useEffect(()=>{g(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"},C={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"},w=s==="circle"?"rounded-full":"rounded-md",S=tailwindMerge.twMerge("relative inline-flex items-center justify-center overflow-hidden transition-opacity outline-none",y[i],w,a&&"cursor-pointer hover:opacity-80",u&&"ring-2 ring-background-surface",c),R=(()=>{if(r||o){let k=r?.[0]||"",D=o?.[0]||"";return (k+D).toUpperCase()}if(n){let k=n.split(" "),D=k[0]?.[0]||"",L=k[k.length-1]?.[0]||"";return D===L?D.toUpperCase():(D+L).toUpperCase()}return ""})(),P=()=>{let k={xs:14,sm:16,md:20,lg:24,xl:32}[i];switch(l){case "team":return jsxRuntime.jsx(lucideReact.Users,{size:k});case "organization":return jsxRuntime.jsx(lucideReact.Building2,{size:k});default:return jsxRuntime.jsx(lucideReact.User,{size:k})}},E=k=>{if(m)return l==="organization"?k?"organization-logo":"initials":k?"avatar":"initials"},I=()=>e&&!p?jsxRuntime.jsx("img",{src:e,alt:t||n||"Avatar",className:"h-full w-full object-cover",onError:f,"data-pii-type":E(true),"data-pii-entity":m}):R?jsxRuntime.jsx("span",{className:"font-semibold","data-pii-type":E(false),"data-pii-entity":m,children:R}):P();return jsxRuntime.jsxs("div",{className:"relative inline-block",children:[jsxRuntime.jsx("div",{"data-avatar":true,className:tailwindMerge.twMerge(S,!e||p?C[l]:""),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",w,b[i],h[i],x[d]),"aria-label":`Status: ${d}`})]})}var oT={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"},nT={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"},aT={pill:"rounded-full",rounded:"rounded-lg",square:"rounded-sm"},iT={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 ft({children:e,variant:t="default",size:r="sm",shape:o="square",dot:n=false,dotPosition:a="left",dotPulse:i=false,title:s,className:l}){let c=n&&jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("rounded-full bg-current opacity-75",iT[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",nT[r],aT[o],oT[t],l),children:[n&&a==="left"&&c,e,n&&a==="right"&&c]})}var ut=({href:e,children:t,className:r="",external:o=false,title:n,variant:a="secondary",onClick:i,asButton:s=false,onPress:l,showArrow:c=false,alwaysUnderlined:d=false,LinkComponent:u,"data-pii-type":m,"data-pii-entity":p})=>{let g={...m&&{"data-pii-type":m},...p&&{"data-pii-entity":p}},f=o?{target:"_blank",rel:"noopener noreferrer"}:{},C=`${`${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}`,w=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[t,c&&jsxRuntime.jsxs("span",{children:["\xA0","\u2192"]})]});return s?jsxRuntime.jsx("button",{type:"button",className:C,onClick:l,title:n,...g,children:w}):u&&e?jsxRuntime.jsx(u,{href:e,className:C,title:n,onClick:i,...f,...g,children:w}):jsxRuntime.jsx("a",{href:e||"#",className:C,...f,...g,title:n,onClick:i,children:w})};var bT={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 hl({variant:e="info",appearance:t="subtle",title:r,children:o,dismissible:n=false,onDismiss:a,primaryAction:i,secondaryAction:s,icon:l,hideIcon:c=false,className:d,testId:u}){let m=bT[e],p=m[t],g=m.icon,f=!!(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:[!c&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-shrink-0",p.iconColor),"aria-hidden":"true",children:l||jsxRuntime.jsx(g,{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:ir(kt("headingSm"),p.titleColor),children:r}),o&&jsxRuntime.jsx("div",{className:ir(kt("bodySm"),r?"mt-1":"",p.bodyColor),children:o})]}),f&&jsxRuntime.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[i&&(i.asLink?jsxRuntime.jsx(ut,{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(te,{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(ut,{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(te,{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,rt()),"aria-label":"Dismiss banner",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"})})]})}function eb({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(hl,{...o,className:a})})})}function Ja(){let[e,t]=Qe.useState({width:0,height:0}),r=Qe.useRef(null),o=Qe.useRef(void 0),n=Qe.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(l=>{for(let c of s){let{width:d,height:u}=c.contentRect;t(m=>m.width!==d||m.height!==u?{width:d,height:u}:m);}});}),r.current.observe(a);},[]);return Qe.useEffect(()=>()=>{o.current&&cancelAnimationFrame(o.current),r.current&&r.current.disconnect();},[]),{ref:n,width:e.width,height:e.height}}function ln({value:e,children:t,className:r,size:o="sm",iconPosition:n="right"}){let[a,i]=Qe.useState(false),c=jsxRuntime.jsx(te,{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(dr,{content:"Copied!",children:c}):c;return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("inline-flex items-center gap-0.5",r),children:[n==="left"&&d,t,n==="right"&&d]})}function xl(e){let{children:t,maxWidth:r=600,className:o,...n}=e,{ref:a,width:i}=Ja(),[s,l]=Qe__namespace.default.useState(false),[c,d]=Qe__namespace.default.useState(false),u=Qe__namespace.default.useRef(false),m=Qe__namespace.default.useMemo(()=>t&&!e.items&&typeof t!="function"?Qe__namespace.default.Children.toArray(t):null,[t,e.items]);if(Qe__namespace.default.useEffect(()=>{m&&m.length>=4&&i>0&&!u.current?(u.current=true,l(i>r),d(true)):(!m||m&&m.length<4)&&d(true);let p=setTimeout(()=>{c||d(true);},100);return ()=>clearTimeout(p)},[i,r,m,c]),m&&s&&m.length>=4){let p=m[0],g=m.slice(1,-2),f=m.slice(-2),y=g.map(b=>{if(Qe__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",c?"opacity-100":"opacity-0",o),children:[p,jsxRuntime.jsx(TT,{items:y}),f]})}return jsxRuntime.jsx(reactAriaComponents.Breadcrumbs,{...n,ref:a,className:tailwindMerge.twMerge("flex gap-2",c?"opacity-100":"opacity-0",o),children:t})}function TT({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(Wa,{items:t,align:"left",size:"sm",children:jsxRuntime.jsx(te,{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 yl(e){let{className:t,children:r,href:o,copyable:n,copyValue:a,...i}=e;return jsxRuntime.jsx(reactAriaComponents.Breadcrumb,{className:Ae(t,"flex items-center gap-2"),...i,children:s=>{let l=s.isCurrent,c=typeof r=="function"?r(s):r;return jsxRuntime.jsx(jsxRuntime.Fragment,{children:l?n?jsxRuntime.jsx(ln,{value:a||(typeof c=="string"?c: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:c})}):jsxRuntime.jsx("span",{className:"max-w-[200px] truncate font-semibold text-text-primary sm:max-w-none",children:c}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(ut,{variant:"muted",href:o,className:"max-w-[150px] truncate sm:max-w-[300px] md:max-w-none",children:c}),jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4 shrink-0 text-text-secondary"})]})})}})}function FT({isSelected:e,isDisabled:t}){let r=[rt,"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 Xa({errorMessage:e,...t}){return jsxRuntime.jsxs(reactAriaComponents.Calendar,{...t,children:[jsxRuntime.jsx(vl,{}),jsxRuntime.jsxs(reactAriaComponents.CalendarGrid,{className:"border-separate [border-spacing:0] [&_td]:p-0 [&_td]:!border-0",children:[jsxRuntime.jsx(Cl,{}),jsxRuntime.jsx(reactAriaComponents.CalendarGridBody,{children:r=>jsxRuntime.jsx(reactAriaComponents.CalendarCell,{date:r,className:({isSelected:o,isDisabled:n})=>`${FT({isSelected:o,isDisabled:n})} border-0`})})]}),e&&jsxRuntime.jsx(reactAriaComponents.Text,{slot:"errorMessage",className:"text-sm text-feedback-error-text",children:e})]})}function vl(){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(te,{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(te,{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 Cl(){return jsxRuntime.jsx(reactAriaComponents.CalendarGridHeader,{children:e=>jsxRuntime.jsx(reactAriaComponents.CalendarHeaderCell,{className:"text-xs font-semibold text-text-secondary",children:e})})}var sb=Qe__namespace.createContext(null);function cn(){let e=Qe__namespace.useContext(sb);if(!e)throw new Error("Carousel components must be used within a CarouselRoot");return e}function lb({page:e,defaultPage:t=0,onPageChange:r,orientation:o="horizontal",loop:n=false,autoplay:a=false,autoplayDelay:i=4e3,allowMouseDrag:s=false,spacing:l="1rem",slidesPerView:c=1,slidesPerMove:d=1,className:u,children:m,...p}){let g=e!==void 0,[f,y]=Qe__namespace.useState(t),b=g?e:f,h=Qe__namespace.useRef(null),[x,C]=Qe__namespace.useState(0),[w,S]=Qe__namespace.useState(typeof a=="boolean"?a:!!a),[T,R]=Qe__namespace.useState(false),P=Qe__namespace.useRef(null),E=Qe__namespace.useRef(null),I=typeof a=="object"&&a!==null&&a.delay?a.delay:i;Qe__namespace.useEffect(()=>{if(h.current){let v=Math.max(1,Math.floor(Number(c)||1)),M=h.current.children;if(M.length===0){C(0);return}let A=Math.ceil(M.length/v);C(A);}},[m,c]);let k=Qe__namespace.useRef(-1);Qe__namespace.useEffect(()=>{if(b!==k.current&&h.current){let v=Array.from(h.current.children);if(v.length===0)return;let M=b*c,A=Math.min(M,v.length-1),J=v[A];J&&typeof J.scrollIntoView=="function"&&(J.scrollIntoView({behavior:"smooth",block:o==="vertical"?"start":"nearest",inline:o==="horizontal"?"start":"nearest"}),k.current=b);}},[b,c,o]);let D=Qe__namespace.useCallback(v=>{let M=v;n?M<0?M=x-1:M>=x&&(M=0):M=Math.max(0,Math.min(v,x-1)),g||y(M),r?.(M);},[g,n,r,x]),L=Qe__namespace.useCallback(()=>{D(b+d);},[b,D,d]),B=Qe__namespace.useCallback(()=>{D(b-d);},[b,D,d]),O=Qe__namespace.useRef(L);Qe__namespace.useEffect(()=>{O.current=L;},[L]);let H=x>0&&(n||b<x-1),G=x>0&&(n||b>0),Z=Qe__namespace.useCallback(()=>{S(v=>!v);},[]);Qe__namespace.useEffect(()=>{if(w&&x>1)return P.current=setInterval(()=>{O.current();},I),()=>{P.current&&(clearInterval(P.current),P.current=null);}},[w,x,I]);let z=Qe__namespace.useCallback(()=>{P.current&&(clearInterval(P.current),P.current=null);},[]),W=Qe__namespace.useCallback(()=>{w&&x>1&&(P.current=setInterval(()=>{O.current();},I));},[w,x,I]),q=Qe__namespace.useCallback(v=>{if(!s)return;R(true);let M="touches"in v&&v.touches&&v.touches.length>0?v.touches[0].clientX:"clientX"in v?v.clientX:0,A="touches"in v&&v.touches&&v.touches.length>0?v.touches[0].clientY:"clientY"in v?v.clientY:0;E.current={x:M,y:A};},[s]),F=Qe__namespace.useCallback(v=>{if(!T||!E.current)return;let M="touches"in v&&v.touches&&v.touches.length>0?v.touches[0].clientX:"clientX"in v?v.clientX:0,A="touches"in v&&v.touches&&v.touches.length>0?v.touches[0].clientY:"clientY"in v?v.clientY:0,J=M-E.current.x,ae=A-E.current.y,le=50;o==="horizontal"&&Math.abs(J)>le?(J>0?B():L(),R(false),E.current=null):o==="vertical"&&Math.abs(ae)>le&&(ae>0?B():L(),R(false),E.current=null);},[T,o,L,B]),X=Qe__namespace.useCallback(()=>{R(false),E.current=null;},[]),N={currentPage:b,totalPages:x,orientation:o,loop:n,spacing:l,slidesPerView:c,goToPage:D,goToNext:L,goToPrev:B,canGoNext:H,canGoPrev:G,isAutoplayActive:w,toggleAutoplay:Z,itemsRef:h,isDragging:T,allowMouseDrag:s,handleDragStart:q,handleDragMove:F,handleDragEnd:X};return jsxRuntime.jsx(sb.Provider,{value:N,children:jsxRuntime.jsx("div",{...p,className:tailwindMerge.twMerge("relative w-full",o==="vertical"?"h-full":"",u),onMouseEnter:z,onMouseLeave:W,children:m})})}function cb({className:e,children:t,...r}){let{itemsRef:o,orientation:n,spacing:a,isDragging:i,allowMouseDrag:s,handleDragStart:l,handleDragMove:c,handleDragEnd:d}=cn();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:l,onMouseMove:c,onMouseUp:d,onMouseLeave:d,onTouchStart:l,onTouchMove:c,onTouchEnd:d,children:t})}function db({index:e,className:t,children:r,...o}){let{orientation:n,slidesPerView:a}=cn();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 ub({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 pb({className:e,children:t,...r}){let{goToPrev:o,canGoPrev:n}=cn();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 mb({className:e,children:t,...r}){let{goToNext:o,canGoNext:n}=cn();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 Xu({index:e,className:t,children:r,...o}){let{currentPage:n,goToPage:a}=cn(),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 fb({className:e,...t}){let{totalPages:r}=cn();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(Xu,{index:n},n))})}function gb({className:e,children:t,...r}){let{isAutoplayActive:o,toggleAutoplay:n}=cn();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 bb({className:e,...t}){let{currentPage:r,totalPages:o}=cn();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 WT="focus:ring-action-primary",UT="bg-action-primary border-action-primary text-[color:var(--color-action-primary-text)] hover:bg-action-primary-hover hover:border-action-primary-hover";function ju(e){return jsxRuntime.jsxs(reactAriaComponents.CheckboxGroup,{...e,className:Ae(e.className,"flex flex-col gap-2"),children:[jsxRuntime.jsx(Ye,{children:e.label}),e.children,e.description&&jsxRuntime.jsx(Te,{children:e.description}),jsxRuntime.jsx(he,{children:typeof e.errorMessage=="function"?void 0:e.errorMessage})]})}function KT({isDisabled:e}){return `relative flex gap-2 items-center group text-sm transition ${e?"text-text-disabled":"text-text-secondary"}`}function YT({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=WT,i="";return r?i="border-border-muted bg-background-muted":t?i="border-feedback-error-border bg-feedback-error-background":e||o?i=UT:i="bg-background-input border-border-input hover:border-border-focus",`${n} ${a} ${i}`}var hb="w-4 h-4 text-current group-disabled:text-text-disabled";function qu({className:e,...t}){return jsxRuntime.jsx("div",{"aria-hidden":"true",className:`${YT(t)} ${e||""}`,children:t.isIndeterminate?jsxRuntime.jsx(lucideReact.Minus,{"aria-hidden":true,className:hb}):t.isSelected?jsxRuntime.jsx(lucideReact.Check,{"aria-hidden":true,className:hb}):null})}function eo(e){let{children:t,variant:r,...o}=e;return jsxRuntime.jsx(reactAriaComponents.Checkbox,{...o,className:reactAriaComponents.composeRenderProps(e.className,(n,a)=>`${KT(a)} ${n||""}`),children:n=>{let{isSelected:a,isIndeterminate:i,isDisabled:s,isInvalid:l}=n;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(qu,{isSelected:a,isIndeterminate:i,isDisabled:s,isInvalid:l}),typeof t=="function"?t(n):t]})}})}var jT={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 yb(e){return !e||e==="default"?"secondary":e==="brand"?"primary":e}var qT={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"},QT="opacity-75 cursor-not-allowed pointer-events-none";function vb(e){let{variant:t,size:r,isDisabled:o,isClickable:n,className:a}=e,i=r==="xs"?"text-xs":Ue[r].text;return tailwindMerge.twMerge("inline-flex items-center justify-center rounded-full font-medium transition-colors","whitespace-nowrap select-none",qT[r],i,jT[t],n&&!o&&"cursor-pointer",o&&QT,a)}function Yr({children:e,onRemove:t,removeLabel:r="Remove",size:o="md",variant:n="secondary",isRemovable:a=true,isDisabled:i=false,className:s,onClick:l}){let c=!!l&&!i,d=a&&t&&!i,u=y=>{y.stopPropagation(),y.preventDefault(),t&&!i&&t();},m=()=>{l&&!i&&l();},p=o==="xs"?10:o==="sm"?12:o==="md"?14:16,f=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("span",{className:"truncate",children:e}),d?c?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 c?jsxRuntime.jsx("button",{type:"button",onClick:m,className:vb({variant:yb(n),size:o,isDisabled:i,isClickable:c,className:s}),disabled:i,children:f}):jsxRuntime.jsx("span",{className:vb({variant:yb(n),size:o,isDisabled:i,isClickable:c,className:s}),children:f})}function wb({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a=false,isDisabled:i=false,isInvalid:s=false,validationResult:l,placeholder:c="Add items...",selectedItems:d=[],onItemsChange:u,staticItems:m,fetchSuggestions:p,chipVariant:g="secondary",showErrors:f=true,className:y}){let[b,h]=Qe.useState(""),[x,C]=Qe.useState([]),[w,S]=Qe.useState(false),[T,R]=Qe.useState(false),[P,E]=Qe.useState(-1),I=an(b,300),k=Qe.useRef(null),D=Qe.useRef(null),{isFocused:L,handleFocus:B,handleBlur:O}=ur(),H=Qe.useId(),G=Qe.useCallback(N=>{if(!u||!N.trim())return;let v=N.trim();if(d.includes(v)){h(""),R(false),C([]),E(-1);return}u([...d,v]),h(""),R(false),C([]),E(-1),k.current?.focus();},[d,u]),Z=Qe.useCallback(N=>{u&&u(d.filter(v=>v!==N));},[d,u]);Qe.useEffect(()=>{if(!p)return;let N=true;return (async()=>{let M=I.trim();if(!M){N&&(S(false),C([]),R(false));return}S(true);try{let A=await p(M);if(!N)return;C(A),R(!0);}catch(A){if(!N)return;console.error("Error fetching suggestions:",A),C([]),R(false);}finally{N&&S(false);}})(),()=>{N=false;}},[I,p]),Qe.useEffect(()=>{if(p||!m)return;if(!I.trim()){C([]),R(false);return}let N=m.filter(v=>v.name.toLowerCase().includes(I.toLowerCase())).map(v=>v.id);C(N),R(N.length>0||I.trim().length>0);},[I,m,p]);let z=Qe.useMemo(()=>{let N=x.filter(v=>!d.includes(v));return b.trim()&&!N.includes(b.trim())&&!d.includes(b.trim())?[...N,`Create tag: "${b.trim()}"`]:N},[x,b,d]),W=Qe.useCallback(N=>{h(N.target.value),E(-1),N.target.value&&R(true);},[]),q=Qe.useCallback(N=>{i||(N.startsWith("Create tag:")?G(b):G(N));},[G,b,i]),F=Qe.useCallback(N=>{if(!i)switch(N.key){case "Enter":case ",":if(N.preventDefault(),P>=0&&P<z.length){let v=z[P];v.startsWith("Create tag:")?G(b):G(v);}else b.trim()&&G(b.trim());break;case "Backspace":!b&&d.length>0&&(N.preventDefault(),Z(d[d.length-1]));break;case "ArrowDown":N.preventDefault(),T&&E(v=>v<z.length-1?v+1:v);break;case "ArrowUp":N.preventDefault(),T&&E(v=>v>0?v-1:-1);break;case "Escape":R(false),E(-1);break}},[i,b,d,z,P,T,G,Z]);Qe.useEffect(()=>{let N=v=>{D.current&&v.target instanceof Node&&!D.current.contains(v.target)&&R(false);};return document.addEventListener("mousedown",N),()=>document.removeEventListener("mousedown",N)},[]);let X=()=>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]",sn({isInvalid:s,isDisabled:i,isFocused:L}),"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:D,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(St,{children:jsxRuntime.jsxs("div",{className:X(),onClick:()=>!i&&k.current?.focus(),children:[d.map(N=>jsxRuntime.jsx(Yr,{variant:g,size:"xs",onRemove:()=>Z(N),isDisabled:i,className:"shrink-0 max-h-full",children:N},N)),jsxRuntime.jsx("input",{ref:k,type:"text",role:"combobox","aria-expanded":T,"aria-haspopup":"listbox","aria-controls":H,"aria-autocomplete":"list",value:b,onChange:W,onKeyDown:F,onFocus:N=>B(N),onBlur:N=>O(N),placeholder:d.length===0?c:"",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"}})]})}),T&&(b||z.length>0)&&jsxRuntime.jsx("div",{id:H,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:w?jsxRuntime.jsx("div",{className:"px-3 py-2 text-sm text-text-secondary",children:"Loading..."}):z.length>0?z.map((N,v)=>jsxRuntime.jsx("div",{role:"option","aria-selected":v===P,className:tailwindMerge.twMerge("cursor-pointer px-3 py-2 text-sm transition-colors","hover:bg-background-hover",v===P&&"bg-background-selected",N.startsWith("Create tag:")&&"italic text-text-secondary"),onClick:()=>q(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}),f&&typeof r=="string"&&jsxRuntime.jsx(he,{size:o,className:"text-feedback-error-text mt-1",children:r}),f&&typeof r=="function"&&l&&jsxRuntime.jsx(he,{size:o,className:"text-feedback-error-text mt-1",children:r(l)})]})}var ik={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')},sk={github:()=>import('ace-builds/src-noconflict/theme-github'),github_dark:()=>import('ace-builds/src-noconflict/theme-github_dark')},lk={"ext-language-tools":()=>import('ace-builds/src-noconflict/ext-language_tools')},Gi=new Set;async function Zu(e,t){Gi.has(e)||(await t(),Gi.add(e));}async function ck(e,t,r){await Promise.all([Zu(`language:${e}`,ik[e]),Zu(`theme:${t}`,sk[t]),r?Zu("extension:language-tools",lk["ext-language-tools"]):void 0]);}function Tb(e,t,r){let o=Gi.has(`language:${e}`)&&Gi.has(`theme:${t}`);return r?o&&Gi.has("extension:language-tools"):o}function kb({value:e,readOnly:t=false,onChange:r,language:o="json",theme:n="github_dark",height:a,width:i="100%",className:s,lineHeight:l=19,minLines:c=3,maxLines:d=50,showLineNumbers:u=true,showGutter:m=true,fontSize:p=14,wrapEnabled:g=false}){let f=Qe.useRef(null),[y,b]=Qe.useState(()=>Tb(o,n,!t)),h=Qe.useMemo(()=>{if(a)return a;let x=(e.match(/\n/g)||[]).length+1;return `${Math.max(c,Math.min(x,d))*l+10}px`},[e,a,l,c,d]);return Qe.useEffect(()=>{let x=false,C=!t;return Tb(o,n,C)?(b(true),()=>{x=true;}):(b(false),ck(o,n,C).then(()=>{x||b(true);}).catch(w=>{x||b(true),console.error("Failed to load Ace editor resources",w);}),()=>{x=true;})},[o,t,n]),Qe.useEffect(()=>{y&&f.current?.editor&&f.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(nk__default.default,{ref:f,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:g},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 Rb=Qe__namespace.createContext({variant:"contained",density:"comfortable",showDividers:true}),Eb=Qe__namespace.createContext(null),fk={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"},Pb={true:"divide-y divide-border-default",false:"gap-3"},gk={comfortable:"px-5 py-3",compact:"px-4 py-2.5"},bk={comfortable:"px-5 pt-0",compact:"px-4 pt-0"},hk={comfortable:"h-4 w-4",compact:"h-3.5 w-3.5"};function tp(){return Qe__namespace.useContext(Rb)}function xk(e){let t=Qe__namespace.useContext(Eb);if(!t)throw new Error(`${e} must be used within a <CollapseItem>`);return t}function yk({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 vk({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",l=t&&!e?"bg-background-hover":"",c=gk[r];return tailwindMerge.twMerge(i,rt(),c,s,l,o==="plain"&&n?"px-0":"",a)}function Ck({density:e,showDividers:t,className:r}){let o="text-text-primary",n=bk[e];return tailwindMerge.twMerge(o,n,t?"":"rounded-b-lg",r)}function ja({variant:e="contained",density:t="comfortable",showDividers:r=true,className:o,...n}){let a=Qe__namespace.useMemo(()=>({variant:e,density:t,showDividers:r}),[e,t,r]),i=tailwindMerge.twMerge("flex w-full flex-col",fk[e],r?Pb.true:Pb.false,e==="plain"&&r?"border-y border-border-default/60":"");return jsxRuntime.jsx(Rb.Provider,{value:a,children:jsxRuntime.jsx(reactAriaComponents.DisclosureGroup,{...n,className:Ae(o,i)})})}function pn({className:e,children:t,...r}){let{variant:o,showDividers:n}=tp();return jsxRuntime.jsx(reactAriaComponents.Disclosure,{...r,className:reactAriaComponents.composeRenderProps(e,a=>yk({variant:o,showDividers:n,className:a})),children:a=>jsxRuntime.jsx(Eb.Provider,{value:a,children:t})})}pn.displayName="CollapseItem";function mn({title:e,description:t,startContent:r,endContent:o,indicator:n,indicatorPosition:a="end",showIndicator:i=true,keepIndicatorSpace:s=false,children:l,className:c,...d}){let u=xk("CollapseHeader"),{density:m,variant:p,showDividers:g}=tp(),f=hk[m];return jsxRuntime.jsx(reactAriaComponents.Button,{...d,slot:"trigger","data-expanded":u.isExpanded?"true":void 0,className:reactAriaComponents.composeRenderProps(c,(y,b)=>vk({isDisabled:b.isDisabled??false,isPressed:b.isPressed??false,density:m,variant:p,showDividers:g,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",f),"aria-hidden":"true",children:h}):s?jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("flex flex-shrink-0 items-center justify-center",f),"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:[l??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]})}})}mn.displayName="CollapseHeader";function fn({className:e,children:t,...r}){let{density:o,showDividers:n}=tp();return jsxRuntime.jsx(reactAriaComponents.DisclosurePanel,{...r,className:reactAriaComponents.composeRenderProps(e,a=>Ck({density:o,showDividers:n,className:a})),children:jsxRuntime.jsx(rn,{children:t})})}fn.displayName="CollapseContent";function qa(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 op(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 Tk({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,transparent:i,className:s,validationResult:l,value:c,defaultValue:d,onChange:u,placeholder:m="#000000",showColorSwatch:p=true,reserveErrorSpace:g=true,...f}){let[y,b]=Qe.useState(d||""),[h,x]=Qe.useState(c||d||""),[C,w]=Qe.useState(false),[S,T]=Qe.useState(null),{isFocused:R,handleFocus:P,handleBlur:E}=ur(),I=c!==void 0?c:y;Qe.useEffect(()=>{c!==void 0&&x(c);},[c]);let k=I?!qa(I):false,D=Qe.useCallback(O=>{if(x(O),qa(O)){let H=op(O);u?u(H):b(H);}else O===""&&(u?u(""):b(""));},[u]),L=Qe.useCallback(O=>{let H=op(O);x(H),u?u(H):b(H);},[u]),B=Qe.useCallback(O=>{if(qa(h)){let H=op(h);x(H),u&&H!==I?u(H):!u&&H!==y&&b(H);}E(O,f.onBlur);},[h,I,y,u,E,f.onBlur]);return jsxRuntime.jsx(reactAriaComponents.TextField,{...f,isRequired:a,className:Ae(s,"group flex flex-col"),children:({isDisabled:O})=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(Ye,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(St,{children:jsxRuntime.jsxs("div",{className:"flex gap-2",children:[jsxRuntime.jsxs("div",{className:"flex-1 relative",children:[jsxRuntime.jsx(pl,{size:o,disabled:O,type:"text",value:h,placeholder:m,onFocus:H=>P(H,f.onFocus),onBlur:B,onChange:H=>D(H.target.value),className:tailwindMerge.twMerge(zt({isInvalid:k,isDisabled:O,isFocused:R,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:Ue[o].height},children:jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-6 h-6 rounded border shadow-sm",qa(I)?"border-border-default":"border-border-default bg-background-muted"),style:qa(I)?{backgroundColor:I}:void 0,"aria-hidden":"true",children:!qa(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:T,children:jsxRuntime.jsx(te,{variant:"secondary",size:o,icon:"Palette",onPress:()=>w(!C),isDisabled:O,className:"flex-shrink-0",children:"Pick"})})]})}),g?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(he,{size:o,children:r}):typeof r=="function"&&l?jsxRuntime.jsx(he,{size:o,children:r(l)}):t?jsxRuntime.jsx(Te,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(he,{size:o,className:"mt-1",children:r}):typeof r=="function"&&l?jsxRuntime.jsx(he,{size:o,className:"mt-1",children:r(l)}):t?jsxRuntime.jsx(Te,{size:o,className:"mt-1",children:t}):null}),C&&S&&jsxRuntime.jsx(vt,{triggerRef:{current:S},isOpen:C,onOpenChange:w,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:L,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 Db({isOpen:e,onClose:t,onConfirm:r,title:o,message:n,confirmLabel:a="Confirm",cancelLabel:i="Cancel",confirmVariant:s,isDestructive:l=false,isLoading:c=false,maxWidth:d="500px",minWidth:u="400px"}){return jsxRuntime.jsx(cr,{isOpen:e,onClose:t,title:o,maxWidth:d,minWidth:u,primaryAction:{label:a,onPress:()=>{r();},variant:s??(l?"destructive":"primary"),isLoading:c},secondaryAction:{label:i,onPress:t,variant:"secondary",isDisabled:c},children:jsxRuntime.jsx("div",{className:"text-text-primary",children:n})})}function Ab({isConnected:e,connectedAt:t,disconnectedAt:r,showTimestamp:o=false,isLoading:n,size:a="sm",shape:i="pill",...s}){if(n)return jsxRuntime.jsx(Y,{className:"inline-flex h-6 w-24"});let l=e?"Connected":"Disconnected",c=e?"success":"neutral",d=null;if(o){if(e&&t)d=Xs(t);else if(!e&&r){let u=Xs(r);d=u?`Offline ${u}`:null;}}return jsxRuntime.jsxs("div",{className:"inline-flex flex-col gap-1",children:[jsxRuntime.jsx(ft,{variant:c,size:a,shape:i,dot:e,dotPulse:e,...s,children:l}),d&&jsxRuntime.jsx("span",{className:"text-xs text-text-secondary",children:d})]})}function Ib({firstName:e,lastName:t,email:r,phone:o,avatarUrl:n,href:a,LinkComponent:i,variant:s="outlined",layout:l="horizontal",showEmail:c=true,showPhone:d=false,isLoading:u=false,className:m,contentClassName:p,piiEntity:g}){let f=`${e} ${t}`.trim(),y=({children:h,className:x})=>a?i?jsxRuntime.jsx(i,{href:a,className:x,children:h}):jsxRuntime.jsx(ut,{href:a,variant:"unstyled",className:tailwindMerge.twMerge("hover:underline",x),asButton:false,children:h}):jsxRuntime.jsx("span",{className:x,children:h}),b=l==="vertical";return u?jsxRuntime.jsx(_e,{variant:s,className:tailwindMerge.twMerge("flex flex-col",m),children:jsxRuntime.jsx(_e.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(Y,{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(Y,{width:"70%",height:20,className:tailwindMerge.twMerge(b&&"mx-auto")}),jsxRuntime.jsx(Y,{width:"100%",height:16,className:tailwindMerge.twMerge(b&&"mx-auto")})]})]})})}):jsxRuntime.jsx(_e,{variant:s,className:tailwindMerge.twMerge("group/card flex flex-col",m),children:jsxRuntime.jsx(_e.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(Ho,{firstName:e,lastName:t,src:n,size:"xl",variant:"user",shape:"square",className:"flex-shrink-0",piiEntity:g}),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:f})}),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":g?"full-name":void 0,"data-pii-entity":g,children:f}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("space-y-0.5",b&&"flex flex-col items-center"),children:[c&&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(ut,{href:`mailto:${r}`,variant:"unstyled",className:tailwindMerge.twMerge("text-sm leading-relaxed text-text-primary relative z-20",b?"":"truncate"),"data-pii-type":g?"email":void 0,"data-pii-entity":g,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(ut,{href:`tel:${o}`,variant:"unstyled",className:tailwindMerge.twMerge("text-sm leading-relaxed text-text-primary relative z-20",b?"":"truncate"),"data-pii-type":g?"phone":void 0,"data-pii-entity":g,children:Ia(o)})]})]})]})]})})})}function Nl({firstName:e,lastName:t,email:r,avatarUrl:o,layout:n="stacked",size:a="md",href:i,LinkComponent:s,linkVariant:l="unstyled",emphasis:c="normal",showEmail:d=false,badge:u,avatarShape:m,isLoading:p=false,className:g,piiEntity:f}){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(),w={strong:"font-semibold text-text-primary",high:"font-semibold text-text-primary",normal:"text-text-primary",low:"text-text-secondary"}[c],S=({children:T,className:R})=>i?s?jsxRuntime.jsx(s,{href:i,className:R,children:T}):jsxRuntime.jsx(ut,{href:i,variant:l,className:tailwindMerge.twMerge("hover:underline",R),asButton:false,children:T}):jsxRuntime.jsx("span",{className:R,children:T});return p?n==="inline"?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",h.gap,g),children:[jsxRuntime.jsx(Y,{width:h.skeletonAvatar,height:h.skeletonAvatar,className:"flex-shrink-0 rounded-full"}),jsxRuntime.jsx(Y,{width:h.skeletonText,height:h.skeletonAvatar*.5})]}):jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",h.gap,g),children:[jsxRuntime.jsx(Y,{width:h.skeletonAvatar,height:h.skeletonAvatar,className:"flex-shrink-0 rounded-full"}),jsxRuntime.jsxs("div",{className:"flex flex-col gap-1",children:[jsxRuntime.jsx(Y,{width:h.skeletonText,height:16}),d&&jsxRuntime.jsx(Y,{width:h.skeletonSecondary,height:12})]})]}):n==="inline"?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",h.gap,g),children:[jsxRuntime.jsxs(S,{className:tailwindMerge.twMerge("flex items-center",h.gap),children:[jsxRuntime.jsx(Ho,{firstName:e,lastName:t,src:o,size:h.avatarSize,variant:"user",shape:y,className:"flex-shrink-0",piiEntity:f}),jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("leading-normal truncate hover:text-text-primary",w,h.textSize,i&&"hover:underline hover:decoration-1 hover:underline-offset-4"),"data-pii-type":f?"full-name":void 0,"data-pii-entity":f,children:x})]}),u]}):jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center justify-start",h.gap,g),children:[jsxRuntime.jsx(Ho,{firstName:e,lastName:t,src:o,size:h.avatarSize,variant:"user",shape:y,className:"flex-shrink-0",piiEntity:f}),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(S,{className:tailwindMerge.twMerge("leading-normal truncate hover:text-text-primary",w,h.textSize,i&&"hover:underline hover:decoration-1 hover:underline-offset-4"),children:jsxRuntime.jsx("span",{"data-pii-type":f?"full-name":void 0,"data-pii-entity":f,children:x})}),u]}),d&&r&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-text-secondary leading-normal truncate",h.secondaryTextSize),"data-pii-type":f?"email":void 0,"data-pii-entity":f,children:r})]})]})}var ap=Qe.createContext(null);function Fb(e){let t=Qe.useContext(ap),r=Qe.useRef(null),o=e??r,[n,a]=Qe.useState(()=>t||{current:"xl",isSm:true,isMd:true,isLg:true,isXl:true,is2Xl:false,isMobile:false,isDesktop:true});return Qe.useEffect(()=>{if(t){a(t);return}let i=o.current;if(!i||typeof ResizeObserver>"u")return;let s=()=>{let c=i.offsetWidth,d=c>=640,u=c>=768,m=c>=1024,p=c>=1280,g=c>=1536,f="base";g?f="2xl":p?f="xl":m?f="lg":u?f="md":d&&(f="sm"),a({current:f,isSm:d,isMd:u,isLg:m,isXl:p,is2Xl:g,isMobile:!u,isDesktop:u});};s();let l=new ResizeObserver(s);return l.observe(i),()=>l.disconnect()},[t,o]),n}function Vb({children:e,className:t}){let r=Qe.useRef(null),[o,n]=Qe.useState({current:"base",isSm:false,isMd:false,isLg:false,isXl:false,is2Xl:false,isMobile:true,isDesktop:false});return Qe.useEffect(()=>{let a=r.current;if(!a||typeof ResizeObserver>"u")return;let i=()=>{let l=a.offsetWidth,c=l>=640,d=l>=768,u=l>=1024,m=l>=1280,p=l>=1536,g="base";p?g="2xl":m?g="xl":u?g="lg":d?g="md":c&&(g="sm"),n({current:g,isSm:c,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(ap.Provider,{value:o,children:jsxRuntime.jsx("div",{ref:r,className:t,style:{width:"100%"},children:e})})}var Tl={duration:.5,ease:"easeInOut"},Jr=Qe.createContext(null);function kl(){let e=Qe.useRef({played:false});return Qe.useEffect(()=>{e.current.played=true;},[]),e.current}var Xn=()=>{let e=Qe.useContext(Jr);if(!e)throw new Error("useChartContext must be used within a ChartContextProvider");return e};function Pl(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 bn=({data:e,color:t="var(--color-viz-default)",baseline:r,fillOpacity:o=.1,showLine:n=true,maxGapMs:a,animate:i=true})=>{let s=Qe.useId(),l=Qe.useId(),{xScale:c,yScale:d,animationSettings:u,entrance:m}=Xn(),[p]=Qe__namespace.default.useState(()=>m?.played!==true),g=i&&p,f=c.range(),y=d.range(),b=(T,R)=>typeof r=="function"?r(T,R):r??0,h=T=>T.chartYValue??T.yValue,x=a!=null?Pl(e,a):e,C=i?void 0:"non-scaling-stroke",w={transformOrigin:`0 ${y[0]}px`,transformBox:"fill-box",isolation:"isolate"},S=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[r===void 0?jsxRuntime.jsx(shape.AreaClosed,{data:x,x:T=>T?c(T.xValue):0,y:T=>T?d(h(T)):0,yScale:d,defined:T=>T!=null,fill:`url(#${s})`,curve:curve.curveLinear}):jsxRuntime.jsx(shape.Area,{data:x,x:T=>T?c(T.xValue):0,y0:(T,R)=>T?d(b(T,R)):0,y1:T=>T?d(h(T)):0,defined:T=>T!=null,fill:t,fillOpacity:o,curve:curve.curveLinear}),n?jsxRuntime.jsx(shape.LinePath,{data:x,x:T=>T?c(T.xValue):0,y:T=>T?d(h(T)):0,defined:T=>T!=null,stroke:t,strokeWidth:3,vectorEffect:C,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})]}),g&&jsxRuntime.jsx("clipPath",{id:l,children:jsxRuntime.jsx("rect",{x:f[0],y:y[1],width:f[1]-f[0],height:y[0]-y[1]})})]}),g?jsxRuntime.jsx("g",{clipPath:`url(#${l})`,children:jsxRuntime.jsx(framerMotion.motion.g,{initial:{scaleY:0},animate:{scaleY:1},transition:{duration:u.duration,ease:u.ease},style:w,children:S})}):jsxRuntime.jsx("g",{style:w,children:S})]})};var El=({data:e,color:t="var(--color-viz-default)",opacity:r=1,categoryColors:o={}})=>{let{xScale:n,yScale:a,animationSettings:i}=Xn(),s=Qe.useId(),l=n.range(),c=a.range(),d=[...e].sort((p,g)=>p.xValue.getTime()-g.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:l[0],y:c[1],width:l[1]-l[0],height:c[0]-c[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,g)=>{let f=n(p.xValue),y=p.chartYValue??p.yValue,b=p.baselineValue??0,h=a(y),x=a(b),C=Math.min(h,x),w=Math.abs(h-x),S=d[g+1],T=S?Math.abs(n(S.xValue)-f):m,R=p.category&&o[p.category]?o[p.category]:t;return jsxRuntime.jsx(shape.Bar,{x:f-T/2,y:C,width:T,height:w,fill:R,opacity:r,rx:1},p.xValue.getTime())})})})]})};function Qk(e,t){return e.length*(t*.6)}var jn;function Zk(){if(jn!==void 0)return jn;if(typeof window>"u"||typeof document>"u")return jn=null,jn;try{jn=document.createElement("canvas").getContext("2d");}catch{jn=null;}return jn}function Ml(e,t=12,r="system-ui"){let o=Zk();return o?(o.font=`${t}px ${r}`,o.measureText(e).width):Qk(e,t)}function hn(e,t=12,r="system-ui"){return e.length===0?0:Math.max(...e.map(o=>Ml(o,t,r)))}function Hb(e,t,r=12,o="system-ui"){if(t<=0)return "";if(Ml(e,r,o)<=t)return e;let n="\u2026";if(Ml(n,r,o)>t)return "";let a=0,i=e.length;for(;a<i;){let s=Math.ceil((a+i)/2);Ml(e.slice(0,s)+n,r,o)<=t?a=s:i=s-1;}return e.slice(0,a)+n}function rP(e){return e>=1e9?"GW":e>=1e6?"MW":e>=1e3?"kW":"W"}function oP(e){return e>=1e3?"kA":e<1?"mA":"A"}function nP(e){return e>=1e3?"kV":e<1?"mV":"V"}function aP(e){return e>=1e6?"M\u03A9":e>=1e3?"k\u03A9":e<1?"m\u03A9":"\u03A9"}function Za(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?qd[e.sourceUnit]:1;return {...e,unit:jd(t*r)}}case "power":return e.unit||e.autoScale===false?e:{...e,unit:rP(t)};case "current":return e.unit||e.autoScale===false?e:{...e,unit:oP(t)};case "voltage":return e.unit||e.autoScale===false?e:{...e,unit:nP(t)};case "resistance":return e.unit||e.autoScale===false?e:{...e,unit:aP(t)};default:return e}}var iP=e=>e.baselineValue??0,Ge={top:8,right:0,bottom:50,left:60};function Dr(e={type:"number"}){let t=i=>{if(i==null)return "-";let s=fo({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 l=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(l).join(""):l(u.children)}return ""};return l(s)||i.toString()}return i.toString()},r=i=>{if(i==null)return "-";if(typeof e=="string"){let s=fo({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 sp=(e,t)=>{let r=d3Array.extent(e,o=>o.xValue);return scale.scaleTime({range:[Ge.left,t-Ge.right],domain:r,nice:true})},Ui=(e,t,r,o)=>{let n=Dr(r);if(o)return scale.scaleLinear({range:[t-Ge.bottom,Ge.top],domain:o,nice:true});let a=d3Array.min(e,c=>Math.min(c.yValue,c.chartYValue??c.yValue,c.baselineValue??c.yValue))||0,i=d3Array.max(e,c=>Math.max(c.yValue,c.chartYValue??c.yValue,c.baselineValue??c.yValue))||0,s=n.min!==void 0?n.min:a>=0?0:a*1.1,l=n.max!==void 0?n.max:i<=0?0:i*1.1;return scale.scaleLinear({range:[t-Ge.bottom,Ge.top],domain:[s,l],nice:true})};function Ki(e){return e instanceof Date&&!Number.isNaN(e.getTime())}var Yi=12;function sP(e,t,r=12,o=false){if(!Ki(t[0])||!Ki(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=lu({start:t[0],end:t[1]},{compact:o}),c=[t[0],new Date((t[0].getTime()+t[1].getTime())/2),t[1]].map(h=>s(h)),d=hn(c,r),m=d+d,p=Math.floor(e/m),g=Math.max(2,Math.min(8,p));if(g<=2)return [t[0],t[1]];let f=[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<g-1;h++){let x=h/(g-1),C=n+i*x,w=Math.round(C/b)*b,S=f[f.length-1].getTime(),T=w>S?w:S+b;if(T>=a)break;f.push(new Date(T));}return f.push(t[1]),f}var lP=({top:e,scale:t,width:r})=>{let o=t.domain(),n=[o[0],o[o.length-1]],a=Ki(n[0])&&Ki(n[1]),i=r<400,s=a?n[0].getTime():0,l=a?n[1].getTime():0,c=Qe.useMemo(()=>a?lu({start:n[0],end:n[1]},{compact:i}):()=>"",[s,l,i,a]),d=Qe.useMemo(()=>sP(r,n,12,i),[r,s,l,i]);return d.length===0?null:jsxRuntime.jsx(axis.Axis,{orientation:"bottom",top:e,scale:t,tickValues:d,tickFormat:u=>{let m=u;return Ki(m)?c(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 _a(e,t=12){let r=t*2.5,o=Math.floor(e/r);return Math.max(2,Math.min(6,o))}var lp=12,cP=({left:e,scale:t,yFormatter:r,height:o})=>{let n=Dr(r),a=Qe.useMemo(()=>!o||o<=0?5:_a(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:lp,textAnchor:"end"},l=t(i),[c,d]=t.range(),u=Math.min(c,d),m=Math.max(c,d);return l-u<lp/2?{...s,verticalAnchor:"start"}:m-l<lp/2?{...s,verticalAnchor:"end"}:{...s,dy:"0.33em"}}})},dP=({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"})}),uP=({left:e,scale:t,availableWidth:r})=>jsxRuntime.jsx(axis.Axis,{orientation:"left",left:e,scale:t,stroke:"var(--color-border-muted)",tickStroke:"var(--color-border-muted)",tickFormat:r===void 0?void 0:o=>Hb(String(o),r,Yi),tickLabelProps:()=>({fill:"var(--color-text-secondary)",fontSize:Yi,textAnchor:"end",dx:"-0.25em",dy:"0.33em"})}),pP=({top:e,scale:t,yFormatter:r,width:o})=>{let n=Dr(r),a=Qe.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"})})},Xr={Bottom:lP,Left:cP,CategoryBottom:dP,CategoryLeft:uP,NumericBottom:pP};var Co=({data:e,formatter:t,label:r,categoryLabels:o})=>{if(!e)return null;let n=Qe__namespace.default.useContext(Jr),a=o??n?.categoryLabels,i=n?.xScale,s=n?.width,l=n?.height,c=Dr(t),d=h=>{if(h.baselineValue===void 0)return c.format(h.value);let x=Math.min(h.baselineValue,h.value),C=Math.max(h.baselineValue,h.value);return `${c.format(x)} \u2013 ${c.format(C)}`},u=Qe__namespace.default.useRef(null),[m,p]=Qe__namespace.default.useState({x:0,y:0,translate:"translate(-50%, -100%)"});Qe__namespace.default.useEffect(()=>{if(!u.current)return;let x=u.current.getBoundingClientRect(),C=s??window.innerWidth,w=l??window.innerHeight,S=e.x,T=e.y,R=16,P=e.x+x.width+R<=C,E=e.x-x.width-R>=0,I;e.position==="left"?I=E||!P:I=!P&&E;let k=I?"translate(calc(-100% - 16px), -50%)":"translate(16px, -50%)";if(!P&&!E){let D=C-e.x,L=e.x;D<=L?(S=C,k="translate(-100%, -50%)"):(S=0,k="translate(0, -50%)");}T-x.height/2<0?T=x.height/2:T+x.height/2>w&&(T=w-x.height/2),p({x:S,y:T,translate:k});},[e.x,e.y,e.position,s,l]);let g=i?.domain(),y=g&&g.length===2&&g.every(h=>h instanceof Date)?ig({start:g[0],end:g[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((C,w)=>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:C.color}}),jsxRuntime.jsx("span",{className:"font-medium text-text-primary",children:C.label})]}),C.metadata&&Object.keys(C.metadata).length>0&&jsxRuntime.jsx("div",{className:"ml-4 mt-1 space-y-0.5 text-xs text-text-secondary",children:Object.entries(C.metadata).map(([S,T])=>jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsxs("span",{className:"capitalize",children:[S,":"]}),jsxRuntime.jsx("span",{className:"font-medium",children:T})]},S))})]},`${C.label}-${w}`))})})()]}):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 Xb={top:20,right:20,bottom:50,left:60},Zb=12,vP=.4,jb=60;function CP({margin:e,orientation:t,labelsKey:r,width:o}){return Qe.useMemo(()=>{if(e)return e;if(t!=="horizontal")return Xb;let n=hn(r.split("\0"),Yi,"system-ui"),a=Math.max(jb,Math.floor(o*vP)),i=Math.ceil(n)+Zb;return {...Xb,left:Math.min(Math.max(i,jb),a)}},[e,t,r,o])}var _b=({data:e,width:t,height:r,margin:o,color:n,yFormatter:a={type:"number"},showGrid:i=true,showAxes:s=true,animate:l=true,barRadius:c=4,barPadding:d=.3,onBarClick:u,onBarHover:m,activeIndex:p,className:g,style:f,"aria-label":y,orientation:b="horizontal",showTooltip:h=true})=>{let[x,C]=Qe.useState(null),[w,S]=Qe.useState(null),[T,R]=Qe.useState(null),[P,E]=Qe.useState(t??600),[I,k]=Qe.useState(r??300),D=Qe.useRef(null),L=p??x,B=Qe.useId(),O=n||"var(--color-viz-default)";Qe.useEffect(()=>{if(t!==void 0&&r!==void 0){E(t),k(r);return}if(!D.current)return;let N=new ResizeObserver(v=>{for(let M of v)t===void 0&&E(M.contentRect.width),r===void 0&&k(M.contentRect.height);});return N.observe(D.current),t===void 0&&E(D.current.offsetWidth),r===void 0&&k(D.current.offsetHeight||300),()=>{N.disconnect();}},[t,r]);let H=e.map(N=>N.label).join("\0"),G=CP({margin:o,orientation:b,labelsKey:H,width:P}),Z=Math.max(0,G.left-Zb),{xScale:z,yScale:W,innerWidth:q,innerHeight:F}=Qe.useMemo(()=>{let N=P-G.left-G.right,v=I-G.top-G.bottom;if(b==="horizontal"){let A=d3Array.max(e,J=>J.value)||0;return {xScale:scale.scaleLinear({range:[0,N],domain:[0,A*1.1],nice:true}),yScale:scale.scaleBand({range:[0,v],domain:e.map(J=>J.label),padding:d}),innerWidth:N,innerHeight:v}}let M=d3Array.max(e,A=>A.value)||0;return {xScale:scale.scaleBand({range:[0,N],domain:e.map(A=>A.label),padding:d}),yScale:scale.scaleLinear({range:[v,0],domain:[0,M*1.1],nice:true}),innerWidth:N,innerHeight:v}},[e,P,I,G,d,b]);if(e.length===0)return jsxRuntime.jsx("div",{ref:D,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",g),style:r!==void 0?{height:r,...f}:f,children:"No data available"});let X=(N,v)=>{if(C(N),m?.(v,N),N!==null&&v){let M,A;if(b==="horizontal"){let ae=z(v.value),le=W(v.label)||0,$=W.bandwidth();M=G.left+ae,A=G.top+le+$/2;}else {let ae=z,le=W,$=ae(v.label)??0,ie=ae.bandwidth(),Ee=le(v.value);M=G.left+$+ie/2,A=G.top+Ee;}let J=M>P/2;R(v.label),S({xValue:new Date,series:[{label:"Value",value:v.value,color:v.color||O}],x:M,y:A,position:J?"left":"right"});}else S(null),R(null);};return jsxRuntime.jsxs("div",{ref:D,className:tailwindMerge.twMerge("relative h-full w-full overflow-hidden rounded-lg bg-background-surface",g),style:r!==void 0?{height:r,...f}:f,"aria-label":y,role:"img",children:[jsxRuntime.jsxs("svg",{width:P,height:I,children:[jsxRuntime.jsx("defs",{children:jsxRuntime.jsx(gradient.LinearGradient,{id:`${B}-bar`,from:O,to:O,toOpacity:.85})}),jsxRuntime.jsxs(group.Group,{left:G.left,top:G.top,children:[i&&jsxRuntime.jsx("g",{className:"grid-lines",children:(b==="horizontal"?z.ticks(5):W.ticks(5)).map(N=>{let v=b==="horizontal"?0:W(N),M=b==="horizontal"?z(N):0;return jsxRuntime.jsx("line",{x1:b==="horizontal"?M:0,y1:b==="horizontal"?0:v,x2:b==="horizontal"?M:q,y2:b==="horizontal"?F:v,stroke:"var(--color-border-default)",strokeOpacity:.5,strokeDasharray:"2,3"},N)})}),e.map((N,v)=>{let M=L===v||L==null,A=N.color||`url(#${B}-bar)`;if(b==="horizontal"){let pe=z(N.value),ge=W.bandwidth(),re=W(N.label)||0;return jsxRuntime.jsx(framerMotion.motion.rect,{x:0,y:re,width:pe,height:ge,fill:A,rx:c,ry:c,initial:l?{width:0,opacity:.5}:void 0,animate:{width:pe,opacity:M?1:.5},transition:{duration:.5,delay:v*.05,ease:"easeOut",opacity:{duration:.15,delay:0}},style:{cursor:u||m?"pointer":"default"},onMouseEnter:()=>X(v,N),onMouseLeave:()=>X(null,null),onClick:()=>u?.(N,v)},N.label)}let J=z,ae=W,le=J.bandwidth(),$=J(N.label)??0,ie=ae(N.value),Ee=Math.max(0,F-ie);return l?jsxRuntime.jsx(framerMotion.motion.rect,{x:$,width:le,fill:A,rx:c,ry:c,initial:{y:F,height:0,opacity:.5},animate:{y:ie,height:Ee,opacity:M?1:.5},transition:{duration:.5,delay:v*.05,ease:"easeOut",opacity:{duration:.15,delay:0}},style:{cursor:u||m?"pointer":"default"},onMouseEnter:()=>X(v,N),onMouseLeave:()=>X(null,null),onClick:()=>u?.(N,v)},N.label):jsxRuntime.jsx("rect",{x:$,y:ie,width:le,height:Ee,fill:A,rx:c,ry:c,opacity:M?1:.5,style:{cursor:u||m?"pointer":"default",transition:"opacity 150ms ease-out"},onMouseEnter:()=>X(v,N),onMouseLeave:()=>X(null,null),onClick:()=>u?.(N,v)},N.label)}),s&&b==="vertical"&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Xr.CategoryBottom,{top:F,scale:z}),jsxRuntime.jsx(Xr.Left,{left:0,scale:W,yFormatter:a,height:F})]}),s&&b==="horizontal"&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Xr.NumericBottom,{top:F,scale:z,yFormatter:a,width:q}),jsxRuntime.jsx(Xr.CategoryLeft,{left:0,scale:W,availableWidth:Z})]})]})]}),h&&jsxRuntime.jsx(Co,{data:w,formatter:a,label:T??void 0})]})};var $b=({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})},NP=({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($b,{item:r,onToggle:t},r.category))}),ei=({items:e,onExport:t,marginLeft:r=0,marginRight:o=0,isZoomed:n=false,onResetZoom:a,onLegendItemToggle:i})=>{let[s,l]=Qe__namespace.default.useState(false),[c,d]=Qe__namespace.default.useState(null),[u,m]=Qe__namespace.default.useState(false),[p,g]=Qe__namespace.default.useState(false),f=Qe__namespace.default.useCallback(async b=>{l(true),d(b),g(false);try{await t(b);}catch(h){console.error("Export failed:",h);}finally{l(false),d(null);}},[t]),y=Qe__namespace.default.useCallback(async b=>{await f(b);},[f]);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(NP,{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(Ct,{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($b,{item:b,onToggle:i},b.category))})})]})}),jsxRuntime.jsxs("div",{className:"sm:hidden flex items-center gap-2 shrink-0",children:[n&&a&&jsxRuntime.jsx(te,{variant:"secondary",size:"sm",onPress:a,children:jsxRuntime.jsx(V,{name:"ArrowsOut",size:16})}),jsxRuntime.jsx(te,{variant:"secondary",size:"sm",onPress:()=>g(true),isDisabled:s,children:jsxRuntime.jsx(V,{name:"Export",size:16})}),jsxRuntime.jsx(Ct,{isOpen:p,onClose:()=>g(false),title:"Export Chart",contentPadding:false,children:jsxRuntime.jsxs("div",{className:"flex flex-col",children:[jsxRuntime.jsxs("button",{onClick:()=>f("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:c==="csv"?"Exporting...":"Export as CSV"})]}),jsxRuntime.jsxs("button",{onClick:()=>f("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:c==="svg"?"Exporting...":"Export as SVG"})]}),jsxRuntime.jsxs("button",{onClick:()=>f("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:c==="png"?"Exporting...":"Export as PNG"})]})]})})]}),jsxRuntime.jsxs("div",{className:"hidden sm:flex items-center gap-2 shrink-0",children:[n&&a&&jsxRuntime.jsxs(te,{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(te,{variant:"secondary",size:"sm",isDisabled:s,children:[jsxRuntime.jsx(V,{name:"Export",size:16}),s?"Exporting...":"Export"]}),jsxRuntime.jsx(vt,{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}),c==="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}),c==="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}),c==="png"?"Exporting...":"Export as PNG"]})})]})})]})]})]})};var Al=af(pp());var th=["stroke","fill","color","stop-color","flood-color","lighting-color"],rh=/var\s*\(/;function oh(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 l=window.getComputedStyle(i);for(let c of th){let d=s.getAttribute(c);if(d&&rh.test(d)){let u=l.getPropertyValue(c);u&&s.setAttribute(c,u.trim());}}if(s instanceof HTMLElement||s instanceof SVGElement)for(let c of th){let d=c,u=s.style.getPropertyValue(d);if(u&&rh.test(u)){let m=l.getPropertyValue(d);m&&s.style.setProperty(d,m.trim());}}}}function mp(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 fp(e,t,r={},o){let n=Array.isArray(t[0])?t:[t];try{switch(e){case "csv":await kP(n,r);break;case "svg":await PP(o,r);break;case "png":await RP(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 kP(e,t){try{let r=t.yFormat?su(t.yFormat):null,o=t.yFormat,n=m=>{if(m==null||m==="")return "";if(!o)return typeof m=="number"?m:String(m);let p=ag(m,o);return p===null?typeof m=="number"?m:String(m):p},a=new Map;e.forEach(m=>{m.forEach(p=>{let g=p.xValue.getTime();a.has(g)||a.set(g,p.xValue);});});let i=Array.from(a.values()).sort((m,p)=>m.getTime()-p.getTime()),s=e.map((m,p)=>{let g=t.seriesLabels?.[p]||`Series ${p+1}`;return r&&!g.includes(`(${r})`)?`${g} (${r})`:g}),l=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((g,f)=>{let y=s[f],b=g.find(h=>h.xValue.getTime()===m.getTime());p[y]=b?n(b.yValue):"",b?.category&&(p[`${y} Category`]=b.category);}),p}),c=TP__default.default.unparse(l,{header:!0,skipEmptyLines:!0}),d=new Blob([c],{type:"text/csv;charset=utf-8;"}),u=mp(t.filename||"chart-data","csv",t.timestamp!==!1);(0,Al.saveAs)(d,u);}catch(r){throw new Error(`CSV export failed: ${r instanceof Error?r.message:"Unknown error"}`)}}async function PP(e,t){if(!e.current)throw new Error("SVG element not found");try{let r=e.current,o=r.cloneNode(!0);if(oh(r,o),!o.querySelector("rect[data-background]")){let c=document.createElementNS("http://www.w3.org/2000/svg","rect");c.setAttribute("width",o.getAttribute("width")||"100%"),c.setAttribute("height",o.getAttribute("height")||"100%"),c.setAttribute("fill","white"),c.setAttribute("data-background","true"),o.insertBefore(c,o.firstChild);}let i=new XMLSerializer().serializeToString(o);i.includes("<?xml")||(i=`<?xml version="1.0" encoding="UTF-8"?>
31
+ `+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"}),l=mp(t.filename||"chart","svg",t.timestamp!==!1);(0,Al.saveAs)(s,l);}catch(r){throw new Error(`SVG export failed: ${r instanceof Error?r.message:"Unknown error"}`)}}async function RP(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);oh(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 l=document.createElementNS("http://www.w3.org/2000/svg","rect");l.setAttribute("width",String(a.width)),l.setAttribute("height",String(a.height)),l.setAttribute("fill","white"),i.insertBefore(l,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 g=new Image,f=setTimeout(()=>{o&&URL.revokeObjectURL(o),p(new Error("Image loading timeout"));},1e4);g.onload=()=>{clearTimeout(f);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(g,0,0,a.width,a.height),y.toBlob(h=>{if(h){let x=mp(t.filename||"chart","png",t.timestamp!==!1);(0,Al.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);}},g.onerror=()=>{clearTimeout(f),o&&URL.revokeObjectURL(o),p(new Error("Failed to load SVG as image"));},g.src=o;})}catch(n){throw o&&URL.revokeObjectURL(o),new Error(`PNG export failed: ${n instanceof Error?n.message:"Unknown error"}`)}}function EP(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 MP(e){return {csv:"CSV Spreadsheet",svg:"SVG Vector Image",png:"PNG Image"}[e]||"Unknown Format"}function Il({datasets:e,metadata:t,svgRef:r}){return Qe.useCallback(async o=>{try{await fp(o,e,t,r);}catch(n){throw console.error("Chart export failed:",n),n}},[e,t,r])}var gp=({data:e,seriesMetadata:t,width:r,height:o,onBrushChange:n,brushRegion:a,margin:i=Ge,yDomain:s})=>{let l=Qe.useRef(null),c=Qe.useRef(false),d=Qe.useMemo(()=>e.flat(),[e]),u=Qe.useMemo(()=>({top:10,bottom:15,left:i.left,right:i.right}),[i]),m=r-u.left-u.right,p=Qe.useMemo(()=>{if(d.length===0)return scale.scaleTime({domain:[new Date,new Date],range:[0,m]});let h=new Date(Math.min(...d.map(C=>C.xValue.getTime()))),x=new Date(Math.max(...d.map(C=>C.xValue.getTime())));return scale.scaleTime({domain:[h,x],range:[0,m]})},[d,m]),g=Qe.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]),f=h=>{if(c.current)return;if(!h){n(null);return}let{x0:x,x1:C}=h;if(x===C)return;let w=new Date(x),S=new Date(C);if(!(Number.isNaN(w.getTime())||Number.isNaN(S.getTime()))){if(d.length>0){let T=Math.min(...d.map(k=>k.xValue.getTime())),R=Math.max(...d.map(k=>k.xValue.getTime())),E=(R-T)*.05;if(Math.abs(w.getTime()-T)<E&&Math.abs(S.getTime()-R)<E){n(null);return}}n([w,S]);}},y=Qe.useMemo(()=>{if(d.length!==0)return {start:{x:0,y:u.top},end:{x:m,y:o-u.bottom}}},[m,o,d]);Qe.useEffect(()=>{if(!l.current||d.length===0)return;let h=l.current.state;if(h?.isBrushing||h?.activeHandle)return;let x=Math.min(...d.map(P=>P.xValue.getTime())),C=Math.max(...d.map(P=>P.xValue.getTime())),w=a?a[0]:new Date(x),S=a?a[1]:new Date(C),T=l.current.state?.extent;if(T){let P=p.invert(T.x0),E=p.invert(T.x1),I=Math.abs(P.getTime()-w.getTime()),k=Math.abs(E.getTime()-S.getTime());if(I<1e3&&k<1e3)return}c.current=true;let R=P=>{let E=l.current.getExtent({x:p(w),y:u.top},{x:p(S),y:o-u.bottom});return {...P,start:{y:E.y0,x:E.x0},end:{y:E.y1,x:E.x1},extent:E}};l.current.updateBrush(R),setTimeout(()=>{c.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:C=>p(C.xValue),y:C=>g(C.yValue),stroke:t[x]?.color||"var(--color-gray-500)",strokeWidth:1.5,opacity:.8},`brush-series-${x}`)),jsxRuntime.jsx(brush.Brush,{xScale:p,yScale:g,width:m,height:o-u.top-u.bottom,margin:{top:u.top,bottom:u.bottom,left:0,right:0},handleSize:8,innerRef:l,resizeTriggerAreas:["left","right"],brushDirection:"horizontal",initialBrushPosition:y,onChange:f,onClick:()=>n(null),selectedBoxStyle:b,useWindowMoveEvents:true})]})]})})};function Wo(e){switch(e){case "command":return Vt("--color-action-brand","#111111");case "success":return Vt("--color-feedback-success-border","#278a4a");case "warning":return Vt("--color-feedback-warning-border","#c88420");case "error":return Vt("--color-feedback-error-border","#c42d2d");case "alert":return Vt("--color-feedback-warning-border","#c88420");default:return Vt("--color-text-secondary","#525250")}}function Bl({events:e,color:t,showLabels:r=false}){let o=Qe.useContext(Jr),[n,a]=Qe.useState(null);if(!o)return console.warn("ChartEventMarkers must be used within a ChartContainer"),null;let{xScale:i,yScale:s,height:l,tooltip:c,datasets:d,seriesMetadata:u,seriesTypes:m,categoryColors:p}=o,g=e.filter(b=>{let h=i(b.timestamp);return h>=Ge.left&&h<=i.range()[1]}),f=Qe.useCallback((b,h)=>{a(h);let x=i(b.timestamp),C=x>(i.range()[1]-Ge.right-Ge.left)/2+Ge.left,w=[];d&&u&&d.forEach((R,P)=>{if(R.length===0)return;let E=d3Array.bisector(B=>B.xValue).left,I=E(R,b.timestamp),k=R[I-1],D=R[I],L;if(!k)L=D;else if(!D)L=k;else {let B=Math.abs(b.timestamp.getTime()-k.xValue.getTime()),O=Math.abs(b.timestamp.getTime()-D.xValue.getTime());L=B<O?k:D;}L&&u[P]&&w.push({label:u[P].label,value:L.yValue,color:u[P].color,type:m?.[P]||"line",...L.category&&{category:L.category,categoryColor:p?.[L.category]}});});let T=g.filter(R=>Math.abs(i(R.timestamp)-x)<=10).map(R=>({label:R.label,color:R.color??t??Wo(R.type),metadata:R.metadata}));w.push({label:T.length>1?`${T.length} events`:b.label,value:0,color:b.color??t??Wo(b.type),type:"event"}),c.show({xValue:b.timestamp,series:w,x,y:w.length>1&&typeof w[0].value=="number"?s(w[0].value):l/2,position:C?"left":"right",isEvent:true,eventMetadata:b.metadata,eventItems:T});},[i,s,l,c,t,d,u,m,p,g]),y=Qe.useCallback(()=>{a(null),c.hide();},[c]);return g.length===0?null:jsxRuntime.jsx("g",{className:"chart-event-markers","data-testid":"chart-event-markers",children:g.map((b,h)=>{let x=i(b.timestamp),C=b.color??t??Wo(b.type),w=n===h;return jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("line",{x1:x,y1:Ge.top,x2:x,y2:l-Ge.bottom,stroke:C,strokeWidth:w?3:2,strokeDasharray:"4 4",strokeOpacity:w?.9:.6,pointerEvents:"none"}),jsxRuntime.jsx("circle",{cx:x,cy:Ge.top,r:w?5:4,fill:C,stroke:"var(--color-background-surface)",strokeWidth:2,pointerEvents:"none"}),jsxRuntime.jsx("circle",{cx:x,cy:l-Ge.bottom,r:w?5:4,fill:C,stroke:"var(--color-background-surface)",strokeWidth:2,pointerEvents:"none"}),r&&jsxRuntime.jsx("text",{x,y:Ge.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:Ge.top,width:20,height:l-Ge.top-Ge.bottom,fill:"transparent",style:{cursor:"pointer"},onMouseEnter:()=>f(b,h),onMouseLeave:y})]},`${b.timestamp.getTime()}-${h}`)})})}function Vl({spans:e,opacity:t=.25,color:r}){let o=Qe.useContext(Jr),[n,a]=Qe.useState(null),i=o?.xScale,s=o?.height,l=o?.tooltip,[c,d]=i?.domain()??[new Date(0),new Date(0)],[u,m]=i?.range()??[0,0],p=Qe.useCallback((w,S)=>{if(!i||!l)return;a(S);let T=w.start<c?c:w.start,R=w.end>d?d:w.end,P=(i(T)+i(R))/2,E=P>(m-u)/2+u,k=e.filter(D=>D.end>D.start&&D.start<w.end&&D.end>w.start).map(D=>({label:D.label,color:D.color??r??Wo(D.type),metadata:D.metadata}));l.show({xValue:w.start,series:[{label:k.length>1?`${k.length} scheduled commands`:w.label,value:0,color:w.color??r??Wo(w.type),type:"event"}],x:P,y:(s??0)/2,position:E?"left":"right",isEvent:true,eventMetadata:w.metadata,eventItems:k});},[i,s,l,r,c,d,u,m,e]),g=Qe.useCallback(()=>{a(null),l?.hide();},[l]);if(!o)return console.warn("ChartEventSpans must be used within a ChartContainer"),null;let{xScale:f,height:y}=o,b=Ge.top,x=y-Ge.bottom-b,C=e.filter(w=>w.end>w.start);return C.length===0?null:jsxRuntime.jsx("g",{className:"chart-event-spans","data-testid":"chart-event-spans",children:C.map((w,S)=>{let T=w.start<c?c:w.start,R=w.end>d?d:w.end;if(T>=d||R<=c)return null;let P=f(T),I=f(R)-P;if(I<=0)return null;let k=w.color??r??Wo(w.type);return jsxRuntime.jsx("rect",{x:P,y:b,width:I,height:x,fill:k,fillOpacity:n===S?Math.min((t??.25)*1.8,1):t??.25,pointerEvents:"all",style:{cursor:"pointer"},onMouseEnter:()=>p(w,S),onMouseLeave:g},`${w.start.getTime()}-${w.end.getTime()}-${S}`)})})}var uh=Qe.createContext(false);function hp({children:e}){return jsxRuntime.jsx(uh.Provider,{value:true,children:e})}function qn(e){let t=Qe.useContext(uh),[r,o]=Qe.useState(false),[n,a]=Qe.useState(null),i=Qe.useRef(null),s=Qe.useCallback(u=>{if(i.current?.disconnect(),i.current=null,!u||typeof ResizeObserver>"u")return;let m=new ResizeObserver(([p])=>{if(!p)return;let{width:g,height:f}=p.contentRect;a(y=>y&&y.width===g&&y.height===f?y:{width:g,height:f});});m.observe(u),i.current=m;},[]);Qe.useEffect(()=>()=>i.current?.disconnect(),[]);let l=Qe.useCallback(()=>{o(false),a(null);},[]),c=t?null:jsxRuntime.jsx(te,{variant:"icon",size:"sm",icon:"ArrowsOutSimple","aria-label":`Expand ${e} chart`,onPress:()=>o(true)}),d=Qe.useCallback(u=>r&&!t?jsxRuntime.jsx(cr,{isOpen:true,onClose:l,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,l,e,s]);return {isExpanded:r,action:c,expandedSize:n,present:d}}var Qn=({data:e,color:t="var(--color-viz-default)",strokeWidth:r=3,strokeDasharray:o,categoryColors:n={},maxGapMs:a,animate:i=true})=>{let{xScale:s,yScale:l,animationSettings:c,entrance:d}=Xn(),[u]=Qe__namespace.default.useState(()=>d?.played!==true),m=i&&u,p=l.range(),g=Object.keys(n).length>0,f=S=>S.category?n[S.category]??t:t,y=S=>S.chartYValue??S.yValue,b=e.length===1?e[0]:void 0,h=a!=null?Pl(e,a):e,x=i?void 0:"non-scaling-stroke",C=b?jsxRuntime.jsx("circle",{cx:s(b.xValue),cy:l(y(b)),r,fill:g?f(b):t}):g?e.slice(0,-1).map((S,T)=>{let R=e[T+1];return a!=null&&a>0&&R.xValue.getTime()-S.xValue.getTime()>a?null:jsxRuntime.jsx(shape.LinePath,{data:[S,R],x:P=>s(P.xValue),y:P=>l(y(P)),stroke:f(S),strokeWidth:r,strokeDasharray:o,strokeLinecap:"round",vectorEffect:x,curve:curve.curveLinear},`${S.xValue.getTime()}-${R.xValue.getTime()}`)}):jsxRuntime.jsx(shape.LinePath,{data:h,x:S=>S?s(S.xValue):0,y:S=>S?l(y(S)):0,defined:S=>S!=null,stroke:t,strokeWidth:r,strokeDasharray:o,strokeLinecap:"round",vectorEffect:x,curve:curve.curveLinear}),w={transformOrigin:`0 ${p[0]}px`,transformBox:"fill-box",isolation:"isolate"};return m?jsxRuntime.jsx(framerMotion.motion.g,{initial:{scaleY:0},animate:{scaleY:1},transition:{duration:c.duration,ease:c.ease},style:w,children:C}):jsxRuntime.jsx("g",{style:w,children:C})};var hh=e=>e.type===bn||e.type===Qn||e.type===El,t1=e=>e.type===Bl||e.type===Vl,r1=(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},xh=280,o1=d3Array.bisector(e=>e.xValue).left,n1=()=>jsxRuntime.jsx("div",{className:"flex h-full items-center justify-center",children:jsxRuntime.jsx("p",{className:"text-text-secondary",children:"No data available"})}),a1=()=>jsxRuntime.jsxs("div",{className:"flex h-full flex-col gap-4 p-4",children:[jsxRuntime.jsx(Y,{className:"h-full w-full"}),jsxRuntime.jsxs("div",{className:"flex gap-4",children:[jsxRuntime.jsx(Y,{className:"h-4 w-24"}),jsxRuntime.jsx(Y,{className:"h-4 w-24"})]})]}),i1=({parentWidth:e,parentHeight:t,yFormatter:r={type:"number"},yDomain:o,referenceLines:n,isLoading:a=false,enableZoom:i=false,enableBrush:s=false,brushHeight:l=60,onZoomChange:c,zoomDomain:d,hiddenSeriesLabels:u,onHiddenSeriesChange:m,hideBottomBar:p=false,headerActions:g,headerControls:f,title:y,children:b})=>{let h=u!==void 0,x=d!==void 0,[C,w]=Qe.useState(null),[S,T]=Qe.useState(null),R=x?d:S,[P,E]=Qe.useState(()=>new Set),I=h?u:P,k=Qe.useRef(null),D=Qe.useId(),L=Qe.useRef(0),B=Qe.useRef(""),O=Qe.useRef(null),{colorMode:H}=jt(),G=Qe.useMemo(()=>Oo(),[H]),Z=Qe.useMemo(()=>Ni(),[H]),{datasets:z,seriesMetadata:W,categoryInfo:q,categoryColors:F,categoryLabels:X,seriesTypes:N}=Qe.useMemo(()=>{let fe=Qe.Children.toArray(b).filter(Be=>Qe.isValidElement(Be)&&hh(Be)),Fe=fe.filter(Be=>Be.props.data).length,ke=[],ze=[],tt=[],pt=null,Ie=null;fe.forEach((Be,yt)=>{let De=Be.props;if(!De.data)return;ke.push(De.data);let Bo=("color"in De&&De.color?De.color:void 0)||(Fe===1?Z:G[yt%G.length]),Vo=Be.type===bn;ze.push({label:"label"in De&&De.label||`Series ${ke.length}`,color:Bo,...Vo&&"baseline"in De&&De.baseline!==void 0?{baseline:De.baseline,tooltipRange:"tooltipRange"in De&&De.tooltipRange||false}:{}});let Ln=Vo?"area":Be.type===Qn?"line":"bar";tt.push(Ln),"categoryColors"in De&&De.categoryColors&&(pt=De.categoryColors),"categoryLabels"in De&&De.categoryLabels&&(Ie=De.categoryLabels);});let ct=null;if(pt){let Be=new Set;ke.forEach(yt=>{yt.forEach(De=>{De.category&&Be.add(De.category);});}),ct=Array.from(Be).map(yt=>({label:Ie?.[yt]||yt,color:pt[yt]||"#6b7280"}));}return {datasets:ke,seriesMetadata:ze,categoryInfo:ct,categoryColors:pt,categoryLabels:Ie,seriesTypes:tt}},[b,Z,G,H]),v=qn(y),M=v.expandedSize?.width??e,A=v.expandedSize?.height??t,ae=!p?v.action:null,le=g||ae?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[g,ae]}):void 0,{headerRef:$,headerHeight:ie}=za(!!le,!!f),Ee=p?0:60,pe=s?l+8:0,ge=A-ie-Ee-pe,re=Math.max(100,ge),se=Qe.useCallback(j=>j?I.has(j):false,[I]),ve=Qe.useMemo(()=>W.map((j,fe)=>se(j.label)?null:fe).filter(j=>j!==null),[W,se]),je=Qe.useMemo(()=>ve.map(j=>z[j]).filter(j=>!!j),[z,ve]),Ze=Qe.useMemo(()=>ve.map(j=>W[j]).filter(j=>!!j),[W,ve]),wr=Qe.useMemo(()=>ve.map(j=>N[j]).filter(j=>!!j),[N,ve]),Dt=wr.findIndex(j=>j==="bar"),Nr=Dt!==-1,Tr=Qe.useCallback((j,fe)=>{let Fe=j.has(fe);if(!Fe&&W.reduce((tt,pt)=>j.has(pt.label)||pt.label===fe?tt:tt+1,0)<1)return j;let ke=new Set(j);return Fe?ke.delete(fe):ke.add(fe),ke},[W]),xt=Qe.useCallback(j=>{if(h){let fe=u;if(!fe.has(j)&&W.reduce((ze,tt)=>fe.has(tt.label)||tt.label===j?ze:ze+1,0)<1){w(null);return}m?.(ke=>Tr(ke,j));}else E(fe=>Tr(fe,j));w(null);},[h,u,m,W,Tr]),Zt=Qe.useMemo(()=>W.map(j=>j.label).join(""),[W]),ee=Qe.useRef(Zt);Qe.useEffect(()=>{ee.current!==Zt&&(ee.current=Zt,h||E(j=>j.size===0?j:new Set));},[Zt,h]);let We=Qe.useMemo(()=>je.flat(),[je]),$e=Qe.useMemo(()=>{if(We.length===0)return null;let j=[...We].sort((fe,Fe)=>fe.xValue.getTime()-Fe.xValue.getTime());return [j[0].xValue,j[j.length-1].xValue]},[We]),Me=R||$e,Re=Qe.useCallback(j=>{x?c?.(j):T(j);},[x,c]),K=Qe.useMemo(()=>Me?z.map(fe=>fe.filter(Fe=>Fe.xValue>=Me[0]&&Fe.xValue<=Me[1])):z,[z,Me]),U=Qe.useMemo(()=>ve.map(j=>K[j]??[]),[ve,K]);Qe.useEffect(()=>{c&&c(R);},[R,c]);let de=Qe.useMemo(()=>ve.flatMap(j=>K[j]??[]),[K,ve]),oe=Qe.useMemo(()=>Ui(de,re,r,o),[de,re,r,o]),xe=Qe.useRef(JSON.stringify(r)),Oe=Qe.useRef(null),_=Qe.useMemo(()=>{let[j,fe]=oe.domain(),Fe=Math.max(Math.abs(j),Math.abs(fe)),ke=JSON.stringify(r);if(ke!==xe.current&&(xe.current=ke,Oe.current=null),Oe.current!==null)return Oe.current;if(Fe===0)return Za(r,0);let ze=Za(r,Fe);return Oe.current=ze,ze},[oe,r]),ue=Qe.useMemo(()=>{let j=re-Ge.top-Ge.bottom;return _a(j)},[re]),Q=Qe.useMemo(()=>{let j=Dr(_),fe=j.tickFormat||j.format,ke=oe.ticks(ue).map(pt=>fe(pt)),ze=hn(ke,12,"system-ui"),tt=Math.ceil(ze)+12;return {...Ge,left:Math.max(tt,30),right:8}},[oe,_,ue]),Se=Qe.useMemo(()=>Me?scale.scaleTime({domain:Me,range:[Q.left,M-Q.right]}):sp(We,M),[Me,We,M,Q]),mo=Qe.useCallback(j=>{if(!$e)return;let{scaleX:fe,translateX:Fe}=j,ke=M-Q.left-Q.right,[ze,tt]=$e,pt=tt.getTime()-ze.getTime();if(pt<=0){Re(null);return}let Ie=-Fe,ct=Ie+ke,Be=ke*fe/pt,yt=Ie/Be,De=ct/Be,Fo=new Date(ze.getTime()+yt),Bo=new Date(ze.getTime()+De),Vo=Math.abs(Fo.getTime()-ze.getTime()),Ln=Math.abs(Bo.getTime()-tt.getTime()),Hs=pt*.02;Vo<Hs&&Ln<Hs?Re(null):Re([Fo,Bo]);},[$e,M,Q,Re]),Ea=Qe.useCallback(j=>{let{left:fe}=k.current?.getBoundingClientRect()||{left:0},Fe=j.clientX-fe;if(j.timeStamp-(L.current||0)<16)return;L.current=j.timeStamp;let ke=Se.invert(Fe),ze=U.map((Ie,ct)=>{if(!Ie||Ie.length===0)return null;let Be=o1(Ie,ke,1);if(Be===0)return {point:Ie[0],index:0,datasetIndex:ct};if(Be>=Ie.length)return {point:Ie[Ie.length-1],index:Ie.length-1,datasetIndex:ct};let yt=Ie[Be-1],De=Ie[Be];if(!yt||!De)return null;let Fo=Math.abs(yt.xValue.getTime()-ke.getTime()),Bo=Math.abs(De.xValue.getTime()-ke.getTime()),Vo=Fo<Bo;return {point:Vo?yt:De,index:Vo?Be-1:Be,datasetIndex:ct}}).filter(Ie=>Ie!==null&&Ze[Ie.datasetIndex]!==void 0).map(({point:Ie,index:ct,datasetIndex:Be})=>({label:Ze[Be].label,value:Ie.yValue,baselineValue:r1(Ze[Be],Ie,ct),color:Ze[Be].color,point:Ie,type:wr[Be]}));if(ze.length===0){w(null);return}let tt=Se(ze[0].point.xValue),pt=tt>(M-Q.right-Q.left)/2+Q.left;w({xValue:ze[0].point.xValue,series:ze.map(({label:Ie,value:ct,baselineValue:Be,color:yt,point:De,type:Fo})=>({label:Ie,value:ct,...Be!==void 0?{baselineValue:Be}:{},chartY:De.chartYValue??ct,showMarker:De.showTooltipMarker??true,color:yt,type:Fo,category:De.category,categoryColor:De.category&&F?F[De.category]:void 0,...De.extraTooltipRows&&De.extraTooltipRows.length>0?{extraTooltipRows:De.extraTooltipRows}:{}})),x:tt,y:oe(ze[0].point.chartYValue??ze[0].value),position:pt?"left":"right"});},[U,Ze,wr,Se,oe,M,F,Q]),Io=()=>{w(null);},g0=Qe.useCallback(()=>{Re(null),O.current&&O.current.reset();},[Re]),b0=Qe.useCallback(j=>{let fe={scaleX:1,scaleY:1,translateX:0,translateY:0,skewX:0,skewY:0};if(!j||!$e)return fe;let[Fe,ke]=$e,ze=ke.getTime()-Fe.getTime();if(ze<=0)return fe;let[tt,pt]=j,Ie=pt.getTime()-tt.getTime();if(Ie<=0)return fe;let ct=ze/Ie,Be=M-Q.left-Q.right,yt=tt.getTime()-Fe.getTime();return {scaleX:ct,scaleY:1,translateX:-(yt/ze)*Be*ct,translateY:0,skewX:0,skewY:0}},[$e,M,Q]),zs=Qe.useCallback(j=>{if(!(O.current&&$e))return;let[fe,Fe]=$e,ke=Fe.getTime()-fe.getTime();if(ke<=0){O.current.reset();return}if(!j){O.current.reset();return}let[ze,tt]=j,pt=tt.getTime()-ze.getTime();if(pt<=0){O.current.reset();return}let Ie=ke/pt,ct=M-Q.left-Q.right,yt=-((ze.getTime()-fe.getTime())/ke)*ct*Ie;O.current.setTransformMatrix({scaleX:Ie,scaleY:1,translateX:yt,translateY:0,skewX:0,skewY:0});},[$e,M,Q]),h0=Qe.useCallback(j=>{Re(j),zs(j);},[Re,zs]);Qe.useEffect(()=>{x&&zs(d??null);},[x,d,zs]);let x0=kl(),y0={width:M,height:re,xScale:Se,yScale:oe,yFormatter:_,animationSettings:Tl,entrance:x0,tooltip:{data:C,show:w,hide:()=>w(null)},datasets:U,seriesMetadata:Ze,seriesTypes:wr,categoryColors:F||void 0,categoryLabels:X||void 0},v0=Qe.Children.toArray(b),tf=0,rf=[],of=[],Pd=[];v0.forEach(j=>{if(!Qe.isValidElement(j)){Pd.push(j);return}if(t1(j))of.push(j);else if(hh(j)){let fe=tf;tf++;let Fe=j.props,ke=W[fe]?.label;if(se(ke))return;rf.push(Qe__namespace.default.cloneElement(j,{...Fe,data:K[fe]||Fe.data,color:W[fe]?.color}));}else Pd.push(j);});let C0=ve.length,S0=(q||W).map(j=>{let fe=!q&&se(j.label);return {category:j.label,fill:j.color,isHidden:fe,isDisabled:!q&&!fe&&C0<=1}}),w0=typeof r=="object"&&r!==null&&typeof r.type=="string",N0=Il({datasets:je,metadata:{xLabel:"Date",yLabel:"Value",seriesLabels:Ze.map(j=>j.label),timestamp:true,...w0?{yFormat:r}:{}},svgRef:k}),Rd=jsxRuntime.jsx(Ha,{title:y,controls:f,actions:le,containerRef:$,marginRight:Q.right});if(a)return v.present(jsxRuntime.jsxs("div",{className:"relative flex h-full flex-col",children:[Rd,jsxRuntime.jsx(a1,{})]}));if(z.length===0)return v.present(jsxRuntime.jsxs("div",{className:"relative flex h-full flex-col",children:[Rd,jsxRuntime.jsx(n1,{})]}));let nf=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("title",{children:y}),jsxRuntime.jsx("g",{children:oe.ticks(ue).map(j=>{let fe=Math.abs(j)<Number.EPSILON;return jsxRuntime.jsx(shape.Line,{from:{x:Q.left,y:oe(j)},to:{x:M-Q.right,y:oe(j)},stroke:fe?"var(--color-border-default)":"var(--color-border-muted)",strokeWidth:fe?1.5:1},`grid-line-${j}`)})}),jsxRuntime.jsx("defs",{children:jsxRuntime.jsx("clipPath",{id:D,children:jsxRuntime.jsx("rect",{x:Se.range()[0],y:oe.range()[1],width:Se.range()[1]-Se.range()[0],height:oe.range()[0]-oe.range()[1]})})}),jsxRuntime.jsx("g",{clipPath:`url(#${D})`,children:rf}),Pd,n&&n.length>0&&jsxRuntime.jsx("g",{children:n.map((j,fe)=>{let Fe=oe(j.value),ke=j.color??"var(--color-error-base)";return jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx(shape.Line,{from:{x:Q.left,y:Fe},to:{x:M-Q.right,y:Fe},stroke:ke,strokeWidth:1.5,strokeDasharray:"6 4"}),j.label&&jsxRuntime.jsx("text",{x:M-Q.right-4,y:Fe-4,textAnchor:"end",fontSize:11,fill:ke,children:j.label})]},`ref-line-${fe}`)})}),jsxRuntime.jsx(Xr.Bottom,{top:re-Q.bottom,scale:Se,width:M-Q.left-Q.right}),jsxRuntime.jsx(Xr.Left,{left:Q.left,scale:oe,yFormatter:_,height:re-Q.top-Q.bottom}),C&&!C.isEvent&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[Nr?(()=>{let j=je[Dt]??[];if(j.length===0)return null;let fe=[...j].sort((Ln,Hs)=>Ln.xValue.getTime()-Hs.xValue.getTime()),Fe=fe.findIndex(Ln=>Ln.xValue.getTime()===C.xValue.getTime()),ke=fe[Fe+1],ze=fe.length>1&&ke?ke.xValue.getTime()-C.xValue.getTime():15*6e4,tt=Math.abs(Se(new Date(C.xValue.getTime()+ze))-Se(C.xValue)),Ie=Se(C.xValue)-tt/2,ct=oe.range(),[Be,yt]=Se.range(),De=Math.min(Be,yt),Fo=Math.max(Be,yt),Bo=Math.max(Ie,De),Vo=Math.max(0,Math.min(Ie+tt,Fo)-Bo);return jsxRuntime.jsx("rect",{x:Bo,y:ct[1],width:Vo,height:ct[0]-ct[1],className:"fill-background-muted",opacity:.5,pointerEvents:"none",style:{transition:"all 100ms ease-out"}})})():null,C.series.filter(j=>j.type!=="bar"&&j.showMarker!==false).map(j=>jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("circle",{cx:Se(C.xValue),cy:oe(j.chartY??j.value),r:8,fill:"white",stroke:j.color,strokeWidth:2,style:{transition:"all 100ms ease-out"}}),jsxRuntime.jsx("circle",{cx:Se(C.xValue),cy:oe(j.chartY??j.value),r:4,fill:j.color,style:{transition:"all 100ms ease-out"}})]},`highlight-${j.label}`))]}),jsxRuntime.jsx("rect",{x:Q.left,y:Q.top,width:M-Q.left-Q.right,height:re-Q.top-Q.bottom,fill:"transparent",style:{cursor:i?"grab":"crosshair",touchAction:"none"},onMouseMove:Ea,onMouseLeave:Io}),of]});return v.present(jsxRuntime.jsx("div",{className:"relative flex h-full flex-col",children:jsxRuntime.jsxs(Jr.Provider,{value:y0,children:[Rd,i?jsxRuntime.jsx(zoom.Zoom,{initialTransformMatrix:b0(R),width:M,height:re,scaleXMin:1,scaleXMax:20,scaleYMin:1,scaleYMax:1,constrain:j=>{let{scaleX:fe,translateX:Fe}=j,ke=Math.max(1,Math.min(20,fe)),ze=1,tt=M-Q.left-Q.right,pt=0,Ie=tt*(1-ke),ct=Math.max(Ie,Math.min(pt,Fe));return {...j,scaleX:ke,scaleY:ze,translateX:ct,translateY:0}},children:j=>{if(O.current=j,j.transformMatrix){let{scaleX:fe,translateX:Fe}=j.transformMatrix,ke=`${fe.toFixed(4)}-${Fe.toFixed(2)}`;ke!==B.current&&(B.current=ke,setTimeout(()=>{mo(j.transformMatrix);},0));}return jsxRuntime.jsx("svg",{width:M,height:re,className:"overflow-visible",ref:fe=>{k.current=fe,j.containerRef.current!==fe&&(j.containerRef.current=fe);},role:"img","aria-label":y,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:nf})}},`zoom-${Math.round(M)}x${Math.round(re)}`):jsxRuntime.jsx("svg",{width:M,height:re,className:"overflow-visible",ref:k,role:"img","aria-label":y,children:nf}),jsxRuntime.jsx(Co,{data:C,formatter:_}),s&&$e&&jsxRuntime.jsx(gp,{data:je,seriesMetadata:Ze,width:M,height:l,onBrushChange:h0,brushRegion:R,margin:Q,...o?{yDomain:o}:{}}),!p&&jsxRuntime.jsx(ei,{onExport:N0,items:S0,marginLeft:0,marginRight:Q.right,isZoomed:R!==null,onResetZoom:g0,onLegendItemToggle:q?void 0:xt})]})}))},yh=responsive.withParentSize(i1);var p1=e=>e.toLocaleString(),m1=e=>`${Math.round(e*100)}%`,wh=({data:e,width:t=800,height:r=400,padding:o=0,barGap:n=30,formatValue:a=p1,formatPercentage:i=m1,color:s,showScale:l=true,showOverallConversion:c=true,overallConversionLabel:d="Overall Conversion:",activeStageId:u,onStageClick:m,onStageHover:p,className:g,style:f,"aria-label":y="Funnel chart"})=>{let[b,h]=Qe.useState(null),[x,C]=Qe.useState(t),w=Qe.useRef(null),S=u??b,T=Qe.useId(),R=s||"var(--color-viz-default)";Qe.useEffect(()=>{if(!w.current)return;let L=new ResizeObserver(B=>{for(let O of B)C(O.contentRect.width);});return L.observe(w.current),()=>{L.disconnect();}},[]);let{layout:P,overallConversion:E}=Qe.useMemo(()=>{if(e.length===0)return {layout:[],overallConversion:0};let L=e[0].value,B=c?60:0,O=r-o*2-B,H=(e.length-1)*n,G=(O-H)/e.length,Z=e.map((W,q)=>{let F=o+B+q*(G+n),X=L===0?0:W.value/L,N=X,v=q===0?null:e[q-1].value,M=v==null||v===0?0:1-W.value/v;return {stage:W,index:q,y:F,barHeight:G,widthPercent:X,conversionRate:N,dropOff:M}}),z=L===0?0:e[e.length-1].value/L;return {layout:Z,overallConversion:z,maxValue:L}},[e,x,r,o,n,l,c]);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",g),style:{width:t,height:r,...f},children:"No funnel data available"});let I=l?60:0,k=o+I,D=x-o*2-I;return jsxRuntime.jsx("div",{ref:w,className:tailwindMerge.twMerge("relative w-full overflow-hidden rounded-lg bg-background-surface",g),style:{height:r,...f},"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:`${T}-bar`,from:R,to:R,toOpacity:.85}),jsxRuntime.jsx(gradient.LinearGradient,{id:`${T}-bg`,from:R,to:R,fromOpacity:.01,toOpacity:.15,x1:"0",y1:"0",x2:"1",y2:"0"})]}),c&&jsxRuntime.jsxs("text",{x:k,y:o+20,className:"fill-text-primary text-sm font-medium",children:[jsxRuntime.jsx("tspan",{className:"fill-text-secondary",children:d})," ",i(E)]}),l&&jsxRuntime.jsx("g",{children:P.map(L=>{let B=L.y+L.barHeight/2;return jsxRuntime.jsx("text",{x:o+I-12,y:B,textAnchor:"end",dominantBaseline:"middle",className:"fill-text-secondary text-xs",children:i(L.conversionRate)},L.stage.id)})}),P.map(L=>{let B=S===L.stage.id,O=D*L.widthPercent;return jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("rect",{x:k,y:L.y,width:D,height:L.barHeight,fill:`url(#${T}-bg)`,rx:4}),jsxRuntime.jsx(framerMotion.motion.rect,{x:k,y:L.y,width:O,height:L.barHeight,fill:`url(#${T}-bar)`,rx:4,initial:{width:0},animate:{width:O},transition:{duration:.6,delay:L.index*.1,ease:"easeOut"},opacity:B||S==null?1:.5,style:{cursor:m||p?"pointer":"default",transition:"opacity 150ms ease"},onMouseEnter:()=>{h(L.stage.id),p?.(L.stage);},onMouseLeave:()=>{h(null),p?.(null);},onClick:()=>m?.(L.stage)}),jsxRuntime.jsx("rect",{x:k+10,y:L.y+L.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:k+16,y:L.y+L.barHeight/2+4,className:"fill-text-primary text-xs font-semibold",style:{pointerEvents:"none"},children:a(L.stage.value)}),jsxRuntime.jsxs("text",{x:k,y:L.y-8,className:"fill-text-secondary text-xs",style:{pointerEvents:"none"},children:[jsxRuntime.jsx("tspan",{children:L.index+1})," ",L.stage.label]}),L.stage.secondaryValue&&jsxRuntime.jsx("text",{x:k+16,y:L.y-24,className:"fill-text-secondary text-xs",style:{pointerEvents:"none"},children:L.stage.secondaryValue}),L.index>0&&L.dropOff>0&&jsxRuntime.jsxs("text",{x:k+D,y:L.y-8,textAnchor:"end",className:"fill-text-secondary text-xs",children:[i(L.dropOff)," drop"]}),L.stage.annotation&&jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("rect",{x:k+O+8,y:L.y+8,width:60,height:24,rx:3,className:"fill-background-muted"}),jsxRuntime.jsx("text",{x:k+O+16,y:L.y+20,className:"fill-text-secondary text-xs font-medium",children:L.stage.annotation})]})]},L.stage.id)})]})})};var x1=.005,kh=320;function zl(e){return e>0?e:0}function y1(e,t,r){let o=t===0?0:zl(e.value)/t*100;return `${e.label}: ${r(e.value)}, ${o.toFixed(1)}%`}var Ph=({data:e,width:t,height:r,innerRadiusRatio:o=0,yFormatter:n={type:"number"},showLegend:a=true,showTooltip:i=true,onSliceClick:s,onSliceHover:l,className:c,style:d,"aria-label":u})=>{let[m,p]=Qe.useState(null),[g,f]=Qe.useState(null),[y,b]=Qe.useState(null),[h,x]=Qe.useState(t??600),[C,w]=Qe.useState(r??300),S=Qe.useRef(null);Qe.useEffect(()=>{if(t!==void 0&&r!==void 0){x(t),w(r);return}if(!S.current)return;let H=new ResizeObserver(G=>{for(let Z of G)t===void 0&&x(Z.contentRect.width),r===void 0&&w(Z.contentRect.height);});return H.observe(S.current),t===void 0&&x(S.current.offsetWidth),r===void 0&&w(S.current.offsetHeight||300),()=>{H.disconnect();}},[t,r]);let T=Qe.useMemo(()=>e.reduce((H,G)=>H+zl(G.value),0),[e]),R=Qe.useMemo(()=>{let H=Ti(e.map(G=>G.label));return e.map(G=>({...G,color:G.color||H[G.label]||"var(--color-viz-default)"}))},[e]),P=Dr(n),E=s!==void 0,I=a&&h>=kh,k=I?Math.max(h*.45,kh*.45):h,L=Math.max(0,Math.min(k,C)-8)/2,B=L*Math.min(Math.max(o,0),.95);if(e.length===0||T===0)return jsxRuntime.jsx("div",{ref:S,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",c),style:r!==void 0?{height:r,...d}:d,children:"No data available"});let O=(H,G,Z)=>{if(p(H),l?.(G,H),H!==null&&G&&Z){let z=k/2+Z[0],W=C/2+Z[1];b(G.label),f({xValue:new Date,series:[{label:"Value",value:G.value,color:G.color||"var(--color-viz-default)"}],x:z,y:W,position:z>h/2?"left":"right"});}else f(null),b(null);};return jsxRuntime.jsxs("div",{ref:S,className:tailwindMerge.twMerge("relative flex h-full w-full items-center gap-4 rounded-lg bg-background-surface",c),style:r!==void 0?{height:r,...d}:d,children:[jsxRuntime.jsx("svg",{width:k,height:C,className:"flex-shrink-0",role:E?"group":"img","aria-label":u,children:jsxRuntime.jsx(group.Group,{top:C/2,left:k/2,children:jsxRuntime.jsx(shape.Pie,{data:R,pieValue:H=>zl(H.value),pieSort:null,pieSortValues:null,outerRadius:L,innerRadius:B,padAngle:x1,children:H=>H.arcs.map((G,Z)=>{let z=m===Z||m===null,W=H.path.centroid(G);return jsxRuntime.jsx("path",{d:H.path(G)??void 0,fill:G.data.color,opacity:z?1:.5,style:{cursor:s||l?"pointer":"default",transition:"opacity 150ms ease-out"},onMouseEnter:()=>O(Z,G.data,W),onMouseLeave:()=>O(null,null),onClick:()=>s?.(G.data,Z),...E?{role:"button",tabIndex:0,"aria-label":y1(G.data,T,P.format),onFocus:()=>O(Z,G.data,W),onBlur:()=>O(null,null),onKeyDown:q=>{q.key!=="Enter"&&q.key!==" "||(q.preventDefault(),s?.(G.data,Z));}}:{}},G.data.label)})})})}),I?jsxRuntime.jsx("ul",{className:"flex min-w-0 flex-col gap-1 overflow-y-auto py-2 text-xs",children:R.map((H,G)=>jsxRuntime.jsxs("li",{className:"flex items-center gap-2",style:{opacity:m===G||m===null?1:.5},onMouseEnter:()=>O(G,H),onMouseLeave:()=>O(null,null),children:[jsxRuntime.jsx("span",{className:"h-3 w-3 flex-shrink-0 rounded-sm",style:{backgroundColor:H.color}}),jsxRuntime.jsx("span",{className:"truncate text-text-primary",title:H.label,children:H.label}),jsxRuntime.jsxs("span",{className:"ml-auto flex-shrink-0 tabular-nums text-text-secondary",children:[P.format(H.value)," (",(zl(H.value)/T*100).toFixed(1),"%)"]})]},H.label))}):null,i&&jsxRuntime.jsx(Co,{data:g,formatter:n,label:y??void 0})]})};function Rh(){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 C1=d3Array.bisector(e=>e.xValue).left,S1=(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 Eh(e){let{mouseX:t,datasets:r,seriesMetadata:o,seriesTypes:n,xScale:a,yScale:i,plotLeft:s,plotRight:l}=e,c=a.invert(t),d=r.map((p,g)=>{if(!p||p.length===0)return null;let f=C1(p,c,1);if(f===0)return {point:p[0],index:0,datasetIndex:g};if(f>=p.length)return {point:p[p.length-1],index:p.length-1,datasetIndex:g};let y=p[f-1],b=p[f];if(!y||!b)return null;let h=Math.abs(y.xValue.getTime()-c.getTime()),x=Math.abs(b.xValue.getTime()-c.getTime()),C=h<x;return {point:C?y:b,index:C?f-1:f,datasetIndex:g}}).filter(p=>p!==null&&o[p.datasetIndex]!==void 0).map(({point:p,index:g,datasetIndex:f})=>({label:o[f].label,value:p.yValue,baselineValue:S1(o[f],p,g),color:o[f].color,point:p,type:n[f]}));if(d.length===0)return null;let u=a(d[0].point.xValue),m=u>(s+l)/2;return {xValue:d[0].point.xValue,series:d.map(({label:p,value:g,baselineValue:f,color:y,point:b,type:h})=>({label:p,value:g,...f!==void 0?{baselineValue:f}:{},chartY:b.chartYValue??g,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 Dh=e=>e instanceof Date&&!Number.isNaN(e.getTime()),k1=160;function Hl(e,t,r){let[o,n]=Qe.useState(null);Qe.useImperativeHandle(r,()=>({setPreview:n}),[]);let[a,i]=e.range(),s=Qe.useMemo(()=>o?d3Scale.scaleTime().domain([new Date(o[0]),new Date(o[1])]).range([a,i]):e,[o,e,a,i]),l=s.domain(),c=l[0],d=l[l.length-1],u=Dh(c)&&Dh(d),m=t<400,p=Math.max(2,Math.min(8,Math.floor(t/(m?70:110)))),g=Qe.useMemo(()=>{if(!u)return [];let f=i-a;if(f<=0)return s.ticks(p);let[y,b]=s.domain(),h=y.getTime(),x=b.getTime(),C=(x-h)/f,w=Math.min(k1,f),S=w*C,T=d3Scale.scaleTime().domain([new Date(h-S),new Date(x+S)]).range([a-w,i+w]),R=d3Time.timeTickInterval(y,b,p);if(R)return T.ticks(R);let P=Math.max(2,Math.round(p*(f+2*w)/f));return T.ticks(P)},[s,p,u,a,i]);return {activeScale:s,ticks:g,start:c,end:d,valid:u,compact:m,rangeStart:a,rangeEnd:i}}var M1=6,Ah=20,wp=Qe.forwardRef(({top:e,scale:t,width:r},o)=>{let{activeScale:n,ticks:a,start:i,end:s,valid:l,compact:c,rangeStart:d,rangeEnd:u}=Hl(t,r,o),m=a.length>=2?a[1].getTime()-a[0].getTime():s.getTime()-i.getTime(),p=Qe.useMemo(()=>l?sg(m,{compact:c}):()=>"",[m,c,l]),g=Qe.useId(),f=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:g,children:jsxRuntime.jsx("rect",{x:f,y:e-4,width:y,height:Ah+16})})}),jsxRuntime.jsx("g",{clipPath:`url(#${g})`,children:a.map(b=>jsxRuntime.jsxs("g",{transform:`translate(${n(b)},${e})`,children:[jsxRuntime.jsx("line",{x1:0,x2:0,y1:0,y2:M1,stroke:"var(--color-border-muted)",strokeWidth:1}),jsxRuntime.jsx("text",{x:0,y:Ah,textAnchor:"middle",fontSize:12,fill:"var(--color-text-secondary)",children:p(b)})]},b.getTime()))})]})]})});wp.displayName="LiveTimeAxisBottom";var Np=Qe.forwardRef(({scale:e,width:t,top:r,bottom:o},n)=>{let{activeScale:a,ticks:i,rangeStart:s,rangeEnd:l}=Hl(e,t,n),c=Qe.useId(),d=Math.min(s,l),u=Math.abs(l-s);return jsxRuntime.jsxs("g",{"aria-hidden":"true",children:[jsxRuntime.jsx("defs",{children:jsxRuntime.jsx("clipPath",{id:c,children:jsxRuntime.jsx("rect",{x:d,y:r,width:u,height:o-r})})}),jsxRuntime.jsx("g",{clipPath:`url(#${c})`,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())})})]})});Np.displayName="LiveTimeGridlines";function Gl(e,t,r){let o=e[1]-e[0],n=t/Math.max(1,r)*o;return [e[0]-n,e[1]-n]}function Ih(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 Tp(e,t,r=16,o=800){return t===1?e*r:t===2?e*o:e}var Fh=(e,t,r,o,n)=>{let a=t!==1?Ih(e,r,t):e;return o!==0&&(a=Gl(a,o,n)),a},Bh=(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]},B1=e=>typeof requestAnimationFrame=="function"?requestAnimationFrame(e):setTimeout(()=>e(0),0),V1=e=>{typeof cancelAnimationFrame=="function"?cancelAnimationFrame(e):clearTimeout(e);};function Vh(e){let{groupRef:t}=e,r=Qe.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=Qe.useRef(e.onCommit);o.current=e.onCommit;let n=Qe.useRef(e.panBoundsMs);n.current=e.panBoundsMs;let a=Qe.useRef(e.settleMs??140);a.current=e.settleMs??140;let i=Qe.useRef(e.zoomIntent??(k=>k.ctrlKey));i.current=e.zoomIntent??(k=>k.ctrlKey);let s=Qe.useRef(e.onGestureStart);s.current=e.onGestureStart;let l=Qe.useRef(e.onFramePreview);l.current=e.onFramePreview;let c=Qe.useRef(null),d=Qe.useRef({scale:1,cursorFrac:.5,panDxPx:0,timer:null}),u=Qe.useRef(null),m=Qe.useRef(null),p=Qe.useRef(false),g=Qe.useCallback((k,D,L)=>{m.current={translateX:k,scaleX:D,preview:L},u.current==null&&(u.current=B1(()=>{u.current=null;let B=m.current;B!=null&&(t.current?.setAttribute("transform",`translate(${B.translateX},0) scale(${B.scaleX},1)`),l.current?.(B.preview));}));},[t]),f=Qe.useCallback(()=>{u.current!=null&&(V1(u.current),u.current=null),m.current=null,t.current?.removeAttribute("transform"),l.current?.(null);},[t]),y=Qe.useCallback(()=>{p.current||(p.current=true,s.current?.());},[]),b=Qe.useCallback(()=>{p.current=false;},[]),h=Qe.useCallback(()=>{d.current.timer!=null&&(clearTimeout(d.current.timer),d.current.timer=null);},[]),x=Qe.useCallback(()=>{d.current={scale:1,cursorFrac:.5,panDxPx:0,timer:null};},[]),C=Qe.useCallback(()=>{let{xDomain:k,plotWidthPx:D}=r.current,{scale:L,cursorFrac:B,panDxPx:O}=d.current;L===1&&O===0||o.current(Bh(Fh(k,L,B,O,D),n.current));},[]),w=Qe.useCallback(()=>{d.current.timer!=null&&(h(),C(),x(),f());},[h,C,x,f]),S=Qe.useCallback(k=>{w(),k.currentTarget.setPointerCapture?.(k.pointerId),c.current={startX:k.clientX,dxPx:0},y();},[w,y]),T=Qe.useCallback(k=>{if(!c.current)return;c.current.dxPx=k.clientX-c.current.startX;let{xDomain:D,plotWidthPx:L}=r.current;g(c.current.dxPx,1,Gl(D,c.current.dxPx,L));},[g]),R=Qe.useCallback(k=>{if(!c.current)return;let{dxPx:D}=c.current;c.current=null,f(),b(),D!==0&&o.current(Bh(Gl(r.current.xDomain,D,r.current.plotWidthPx),n.current));},[f,b]),P=Qe.useCallback(()=>{c.current&&(c.current=null,f(),b());},[f,b]),E=Qe.useRef(null),I=Qe.useCallback(k=>{if(E.current?.(),E.current=null,!k)return;let D=L=>{if(c.current)return;let{plotWidthPx:B,plotLeftPx:O}=r.current,H=Tp(L.deltaY,L.deltaMode),G=Tp(L.deltaX,L.deltaMode),Z=i.current(L);if(!Z&&G===0)return;if(L.preventDefault(),y(),Z){let F=Math.min(1,Math.max(0,(L.clientX-k.getBoundingClientRect().left)/Math.max(1,B)));d.current.scale*=Math.exp(-H/200),d.current.cursorFrac=F;}else d.current.panDxPx-=G;let{scale:z,cursorFrac:W,panDxPx:q}=d.current;g((O+W*B)*(1-z)+q,z,Fh(r.current.xDomain,z,W,q,B)),h(),d.current.timer=setTimeout(()=>{C(),x(),f(),b();},a.current);};k.addEventListener("wheel",D,{passive:false}),E.current=()=>k.removeEventListener("wheel",D);},[g,f,h,C,x,y,b]);return Qe.useEffect(()=>()=>{E.current?.(),E.current=null,f(),d.current.timer!=null&&clearTimeout(d.current.timer);},[f]),{onPointerDown:S,onPointerMove:T,onPointerUp:R,onPointerCancel:P,wheelTargetRef:I,gestureActiveRef:p}}var Gh=e=>e.type===bn||e.type===Qn,U1=({children:e,title:t,headerActions:r,headerControls:o,viewport:n,panBounds:a,onViewportChange:i,onPlotWidthChange:s,yFormatter:l={type:"number"},yDomain:c,referenceLines:d,cameraSync:u,parentWidth:m=0,parentHeight:p=0})=>{let[g,f]=Qe.useState(null),y=Qe.useRef(null),b=Qe.useRef(0),h=Qe.useId(),x=Qe.useRef(null),C=Qe.useRef(null),w=Qe.useRef(null),{colorMode:S}=jt(),T=Qe.useMemo(()=>Oo(),[S]),R=Qe.useMemo(()=>Ni(),[S]),{datasets:P,seriesMetadata:E,seriesTypes:I}=Qe.useMemo(()=>{let ne=Qe.Children.toArray(e).filter(de=>Qe.isValidElement(de)&&Gh(de)),Me=ne.filter(de=>de.props.data).length,Re=[],K=[],U=[];return ne.forEach((de,oe)=>{let xe=de.props;if(!xe.data)return;Re.push(xe.data);let _=("color"in xe&&xe.color?xe.color:void 0)||(Me===1?R:T[oe%T.length]),ue=de.type===bn;K.push({label:"label"in xe&&xe.label||`Series ${Re.length}`,color:_,...ue&&"baseline"in xe&&xe.baseline!==void 0?{baseline:xe.baseline,tooltipRange:"tooltipRange"in xe&&xe.tooltipRange||false}:{}}),U.push(ue?"area":"line");}),{datasets:Re,seriesMetadata:K,seriesTypes:U}},[e,R,T]),k=qn(t),D=k.expandedSize?.width??m,L=r||k.action?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[r,k.action]}):void 0,{headerRef:B,headerHeight:O}=za(!!L,!!o),H=Math.max(100,(k.expandedSize?.height??p)-O-60),G=Qe.useMemo(()=>[new Date(n.startMs),new Date(n.endMs)],[n.startMs,n.endMs]),Z=Qe.useMemo(()=>{let ne=P.flat(),Me=ne.filter(Re=>{let K=Re.xValue.getTime();return K>=n.startMs&&K<=n.endMs});return Me.length>0?Me:ne},[P,n.startMs,n.endMs]),z=Qe.useMemo(()=>{let ne=Ui(Z,H,l,c);if(!c){let[Me,Re]=ne.domain();Re>Me&&ne.domain([Me,Re+(Re-Me)*.05]);}return ne},[Z,H,l,c]),W=Qe.useRef(JSON.stringify(l)),q=Qe.useRef(null),F=Qe.useMemo(()=>{let[ne,Me]=z.domain(),Re=Math.max(Math.abs(ne),Math.abs(Me)),K=JSON.stringify(l);if(K!==W.current&&(W.current=K,q.current=null),q.current!==null)return q.current;if(Re===0)return Za(l,0);let U=Za(l,Re);return q.current=U,U},[z,l]),X=Qe.useMemo(()=>{let ne=H-Ge.top-Ge.bottom;return _a(ne)},[H]),N=Qe.useMemo(()=>{let ne=Dr(F),Me=ne.tickFormat||ne.format,K=z.ticks(X).map(oe=>Me(oe)),U=hn(K,12,"system-ui"),de=Math.ceil(U)+12;return {...Ge,left:Math.max(de,30)}},[z,F,X]),v=Qe.useMemo(()=>scale.scaleTime({domain:G,range:[N.left,D-N.right]}),[G,D,N]),M=Qe.useMemo(()=>[n.startMs,n.endMs],[n.startMs,n.endMs]),A=Qe.useMemo(()=>a?[a.startMs,a.endMs]:void 0,[a]),J=Qe.useCallback(ne=>{i({startMs:ne[0],endMs:ne[1]});},[i]),ae=D-N.left-N.right,le=Qe.useCallback(()=>f(null),[]),$=Qe.useRef({}),ie=Qe.useRef(u);ie.current=u;let Ee=Qe.useCallback(ne=>{C.current?.setPreview(ne),w.current?.setPreview(ne),ie.current?.publish($.current,ne);},[]),{onPointerDown:pe,onPointerMove:ge,onPointerUp:re,onPointerCancel:se,wheelTargetRef:ve,gestureActiveRef:je}=Vh({xDomain:M,plotWidthPx:ae,plotLeftPx:N.left,groupRef:x,onCommit:J,onGestureStart:le,onFramePreview:Ee,...A?{panBoundsMs:A}:{}}),Ze=Qe.useRef({startMs:n.startMs,endMs:n.endMs,left:0,width:0});Ze.current={startMs:n.startMs,endMs:n.endMs,left:N.left,width:ae},Qe.useEffect(()=>{if(!u)return;let ne=()=>{x.current?.removeAttribute("transform"),C.current?.setPreview(null),w.current?.setPreview(null);},Me=K=>{if(je.current)return;if(K==null){ne();return}let{startMs:U,endMs:de,left:oe,width:xe}=Ze.current,Oe=de-U,_=K[1]-K[0];if(Oe<=0||_<=0||xe<=0)return;let ue=Oe/_,Q=oe*(1-ue)+(U-K[0])*xe/_;x.current?.setAttribute("transform",`translate(${Q},0) scale(${ue},1)`),C.current?.setPreview(K),w.current?.setPreview(K);},Re=u.subscribe($.current,Me);return ()=>{Re(),je.current||ne();}},[u,je]),Qe.useEffect(()=>{s?.(Math.max(0,D-N.left-N.right));},[D,N,s]);let wr=Qe.useCallback(ne=>{if(je.current)return;let{left:Me}=y.current?.getBoundingClientRect()||{left:0},Re=ne.clientX-Me;ne.timeStamp-(b.current||0)<16||(b.current=ne.timeStamp,f(Eh({mouseX:Re,datasets:P,seriesMetadata:E,seriesTypes:I,xScale:v,yScale:z,plotLeft:N.left,plotRight:D-N.right})));},[P,E,I,v,z,D,N,je]),Dt=Qe.useCallback(()=>f(null),[]),Nr=kl(),Tr={width:D,height:H,xScale:v,yScale:z,yFormatter:F,animationSettings:Tl,entrance:Nr,tooltip:{data:g,show:f,hide:()=>f(null)},datasets:P,seriesMetadata:E,seriesTypes:I},xt=0,Zt=[];Qe.Children.toArray(e).forEach(ne=>{if(!Qe.isValidElement(ne)){Zt.push(ne);return}if(Gh(ne)){let Me=xt;xt++;let Re=ne.props;Zt.push(Qe__namespace.default.cloneElement(ne,{...Re,color:E[Me]?.color,animate:false}));}else Zt.push(ne);});let ee=E.map(ne=>({category:ne.label,fill:ne.color})),We=Il({datasets:P,metadata:{xLabel:"Date",yLabel:"Value",seriesLabels:E.map(ne=>ne.label),timestamp:true},svgRef:y}),$e=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("title",{children:t}),jsxRuntime.jsx("g",{children:z.ticks(X).map(ne=>{let Me=Math.abs(ne)<Number.EPSILON;return jsxRuntime.jsx(shape.Line,{from:{x:N.left,y:z(ne)},to:{x:D-N.right,y:z(ne)},stroke:Me?"var(--color-border-default)":"var(--color-border-muted)",strokeWidth:Me?1.5:1},`grid-line-${ne}`)})}),jsxRuntime.jsx(Np,{ref:w,scale:v,width:D-N.left-N.right,top:z.range()[1],bottom:z.range()[0]}),jsxRuntime.jsx("defs",{children:jsxRuntime.jsx("clipPath",{id:h,children:jsxRuntime.jsx("rect",{x:v.range()[0],y:z.range()[1],width:v.range()[1]-v.range()[0],height:z.range()[0]-z.range()[1]})})}),jsxRuntime.jsx("g",{clipPath:`url(#${h})`,children:jsxRuntime.jsx("g",{"data-camera-plot-group":"",ref:x,children:Zt})}),d&&d.length>0&&jsxRuntime.jsx("g",{children:d.map((ne,Me)=>{let Re=z(ne.value),K=ne.color??"var(--color-error-base)";return jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx(shape.Line,{from:{x:N.left,y:Re},to:{x:D-N.right,y:Re},stroke:K,strokeWidth:1.5,strokeDasharray:"6 4"}),ne.label&&jsxRuntime.jsx("text",{x:D-N.right-4,y:Re-4,textAnchor:"end",fontSize:11,fill:K,children:ne.label})]},`ref-line-${Me}`)})}),jsxRuntime.jsx(wp,{ref:C,top:H-N.bottom,scale:v,width:D-N.left-N.right}),jsxRuntime.jsx(Xr.Left,{left:N.left,scale:z,yFormatter:F,height:H-N.top-N.bottom}),g&&!g.isEvent&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(shape.Line,{"data-testid":"chart-hover-crosshair",from:{x:v(g.xValue),y:z.range()[1]},to:{x:v(g.xValue),y:z.range()[0]},stroke:"var(--color-text-secondary)",strokeWidth:1,strokeDasharray:"3 3",opacity:.7}),g.series.filter(ne=>ne.type!=="bar"&&ne.showMarker!==false).map(ne=>jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("circle",{cx:v(g.xValue),cy:z(ne.chartY??ne.value),r:8,fill:"white",stroke:ne.color,strokeWidth:2,style:{transition:"all 100ms ease-out"}}),jsxRuntime.jsx("circle",{cx:v(g.xValue),cy:z(ne.chartY??ne.value),r:4,fill:ne.color,style:{transition:"all 100ms ease-out"}})]},`highlight-${ne.label}`))]}),jsxRuntime.jsx("rect",{"data-camera-surface":"",x:N.left,y:N.top,width:D-N.left-N.right,height:H-N.top-N.bottom,fill:"transparent",style:{cursor:"grab",touchAction:"none"},onMouseMove:wr,onMouseLeave:Dt,onPointerDown:pe,onPointerMove:ge,onPointerUp:re,onPointerCancel:se,ref:ve})]});return k.present(jsxRuntime.jsx("div",{className:"relative flex h-full flex-col",children:jsxRuntime.jsxs(Jr.Provider,{value:Tr,children:[jsxRuntime.jsx(Ha,{title:t,controls:o,actions:L,containerRef:B,marginRight:N.right}),jsxRuntime.jsx("svg",{width:D,height:H,className:"overflow-visible",ref:y,role:"img","aria-label":t,children:$e}),jsxRuntime.jsx(Co,{data:g,formatter:F}),jsxRuntime.jsx(ei,{onExport:We,items:ee,marginLeft:0,marginRight:N.right})]})}))},Wl=responsive.withParentSize(U1);function Ul(e,t,r,o){if(r.length===0)throw new Error("tierForViewport: resolution ladder is empty");let n=[...r].sort((s,l)=>s.bucketMs-l.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 K1(e,t){return Math.floor(e/t.tileSpanMs)}function xn(e,t,r){let o=K1(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 hr=(e,t)=>`${e}:${t}`;var Wh={erroredTiles:0};function Rp(e,t){let r=new Map,o=new Map,n=new Map,a=0;for(let d of e){let u=t.get(hr(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 g=n.get(m);g||(g=new Map,n.set(m,g));for(let f of p)g.set(f.xValue.getTime(),f);}}}}let i=(d,u)=>d.xValue.getTime()-u.xValue.getTime(),s=[...r.values()].sort(i),l=[...o.values()].sort(i),c=Object.fromEntries([...n.entries()].map(([d,u])=>[d,[...u.values()].sort(i)]));return {line:s,band:l,lines:c,coverage:{earliestMs:s.length?s[0].xValue.getTime():void 0,latestMs:s.length?s[s.length-1].xValue.getTime():void 0,erroredTiles:a}}}function Y1(e,t,r){let o=xn(e,t,0);return o.length===0?false:o.every(n=>{let a=r.get(hr(n.tierId,n.index));return a!=null&&(a.status==="loaded"||a.status==="empty")})}function Uh(e,t,r){return xn(e,t,0).some(n=>{let a=r.get(hr(n.tierId,n.index));return a?.status==="loaded"&&(a.data?.line.length??0)>0})}function J1(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 Kh({viewport:e,targetTier:t,ladder:r,store:o,overscanTiles:n,prev:a}){let i=Y1(e,t,o);if(i&&Uh(e,t,o)){let l=xn(e,t,n),{line:c,band:d,lines:u,coverage:m}=Rp(l,o);return {line:c,band:d,lines:u,renderTier:t,targetTier:t,isFallback:false,isStale:false,coverage:m}}let s=r.findIndex(l=>l.id===t.id);for(let l=s+1;l<r.length;l++){let c=r[l];if(Uh(e,c,o)){let d=xn(e,c,n),{line:u,band:m,lines:p,coverage:g}=Rp(d,o);return {line:u,band:m,lines:p,renderTier:c,targetTier:t,isFallback:true,isStale:false,coverage:g}}}if(i){let l=xn(e,t,n),{line:c,band:d,lines:u,coverage:m}=Rp(l,o);return {line:c,band:d,lines:u,renderTier:t,targetTier:t,isFallback:false,isStale:false,coverage:m}}return a?J1(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:Wh}:{line:[],band:[],lines:{},renderTier:null,targetTier:t,isFallback:false,isStale:false,coverage:Wh}}var Yh=new Map;function Jh(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 jh({refs:e,refsKey:t,store:r,tier:o,viewport:n,fetchTile:a,dispatch:i,concurrency:s,maxFutureMs:l}){let c=Qe.useRef(e);c.current=e;let d=Qe.useRef(n);d.current=n;let u=Qe.useRef(new Map),m=Qe.useCallback(()=>{for(let p of u.current.values())p.ac.abort();u.current.clear();},[]);return Qe.useEffect(()=>{for(let[b,h]of u.current)h.tierId!==o.id&&(h.ac.abort(),u.current.delete(b));let p=c.current.filter(b=>{let h=hr(b.tierId,b.index),x=r.get(h);return x?x.status==="loading"&&!u.current.has(h):true}),g=(d.current.startMs+d.current.endMs)/2;p.sort((b,h)=>Math.abs((b.startMs+b.endMs)/2-g)-Math.abs((h.startMs+h.endMs)/2-g));let f=Math.max(0,s-u.current.size),y=p.slice(0,f);if(y.length!==0){i({type:"request",ids:y.map(b=>hr(b.tierId,b.index))});for(let b of y){let h=hr(b.tierId,b.index),x=new AbortController;u.current.set(h,{ac:x,tierId:b.tierId});let C=l!=null?Math.min(b.endMs,l):b.endMs;a(o,b.startMs,C,x.signal).then(w=>{x.signal.aborted||i({type:"fulfilled",id:h,data:w});}).catch(w=>{if(!x.signal.aborted){let S=w instanceof Error?w.message:String(w);i({type:"failed",id:h,error:new Error(`tile fetch failed (tile ${h}, tier ${o.id}): ${S}`)});}}).finally(()=>{u.current.delete(h);});}}},[t,r,a,o,i,s,l]),Qe.useEffect(()=>m,[m]),{abortAll:m}}var Zh=1.3,q1=25e4,Q1=3;function Z1(e,t,r){let o=t.tileSpanMs/t.bucketMs,n=Math.max(1,Math.floor(q1/o/r));return Math.min(Math.max(1,Math.ceil(.5*e/t.tileSpanMs)),n)}function $h(e){let{fetchTile:t,ladder:r,nativeMs:o,viewport:n,widthPx:a,maxFutureMs:i,targetPointsPerPx:s=1,concurrency:l=3,tileCostSeriesCount:c=Q1,resetKey:d}=e,u=Qe.useMemo(()=>({targetPointsPerPx:s,nativeMs:o}),[s,o]),[m,p]=Qe.useState(()=>Ul(n.endMs-n.startMs,Math.max(1,a),r,u)),[g,f]=Qe.useReducer(Jh,Yh),y=Qe.useRef(n.endMs-n.startMs),b=Qe.useRef(u);Qe.useEffect(()=>{let O=n.endMs-n.startMs,H=Ul(O,Math.max(1,a),r,u);if(H.id===m.id){b.current=u;return}let Z=Ul(O,Math.max(1,a),r,b.current).id!==H.id,z=O/y.current;(Z||z>Zh||z<1/Zh)&&(y.current=O,b.current=u,p(H));},[n,a,r,m.id,u]);let h=n.endMs-n.startMs,x=Qe.useMemo(()=>Z1(h,m,c),[h,m,c]),C=Qe.useMemo(()=>xn(n,m,x),[n,m,x]),w=Qe.useMemo(()=>C.map(O=>hr(O.tierId,O.index)).join(","),[C]),S=Qe.useRef(C);S.current=C;let T=Qe.useRef(n);T.current=n;let R=Qe.useRef(g);R.current=g;let{abortAll:P}=jh({refs:C,refsKey:w,store:g,tier:m,viewport:n,fetchTile:t,dispatch:f,concurrency:l,...i!=null?{maxFutureMs:i}:{}}),E=Qe.useRef(null),I=Qe.useRef(false);Qe.useEffect(()=>{if(!I.current){I.current=true;return}P(),E.current=null,f({type:"reset"});},[P,d]);let k=Qe.useMemo(()=>S.current.map(O=>`${hr(O.tierId,O.index)}:${g.get(hr(O.tierId,O.index))?.status??"\u2205"}`).join("|"),[w,g]),D=Qe.useMemo(()=>{let O=Kh({viewport:T.current,targetTier:m,ladder:r,store:R.current,overscanTiles:x,prev:E.current});return E.current=O,O},[k,m,r,x,n.startMs,n.endMs]),L=Qe.useMemo(()=>S.current.some(O=>R.current.get(hr(O.tierId,O.index))?.status==="loading"),[k]),B=Qe.useMemo(()=>{let O=S.current[0];return O?R.current.get(hr(O.tierId,O.index))?.status==="empty":false},[k]);return {tier:m,series:D,loading:L,atDataStart:B}}function Mp(e){let{initialViewport:t,...r}=e,[o,n]=Qe.useState(t),a=$h({...r,viewport:o}),i=Qe.useCallback(l=>n(l),[]),s=Qe.useCallback(l=>n(l),[]);return {viewport:o,onViewportChange:i,jumpTo:s,...a}}var _1={sm:"gap-4 px-6 py-8",md:"gap-5 px-8 py-12",lg:"gap-6 px-10 py-16"},$1={sm:"xs",md:"sm",lg:"md"},eR={sm:kt("bodySm"),md:kt("bodySm"),lg:kt("bodyMd")},tR={sm:"h-10 w-10",md:"h-12 w-12",lg:"h-16 w-16"},rR={sm:20,md:24,lg:32},oR={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"},nR={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 Kl({icon:e,title:t,description:r,primaryAction:o,secondaryAction:n,actions:a,size:i="md",alignment:s="center",variant:l="default",spotlightPattern:c="mesh",fullHeight:d=false,className:u}){let m=i==="sm"?"sm":"md",p=l==="spotlight",g=p?{background:nR[c]}:void 0,f=()=>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(te,{variant:"secondary",size:m,onPress:o.onPress,isDisabled:o.isDisabled,isLoading:o.isLoading,href:o.href,children:o.label}):jsxRuntime.jsx(te,{variant:"secondary",size:m,onPress:o.onPress,isDisabled:o.isDisabled,isLoading:o.isLoading,children:o.label})),n&&jsxRuntime.jsx(ut,{href:n.href||"#",variant:"muted",onPress:n.onPress,className:kt("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",_1[i],oR[s],d?"h-full justify-center":"",p?"relative overflow-hidden":"",u),style:g,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",tR[i]),children:jsxRuntime.jsx(V,{name:e,size:rR[i]})}),jsxRuntime.jsx(lr,{size:$1[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",eR[i]),children:r}),f()]})}var iR=1440*60*1e3,sR=[{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}],lR=[{id:"day",days:1},{id:"week",days:7},{id:"month",days:30}];function tx(e,t=Date.now){return lR.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 Yl(e=Date.now){return sR.map(({id:t,label:r,days:o})=>({id:t,label:r,getRange:()=>{let n=e();return {after:new Date(n-o*iR),before:new Date(n)}}}))}function fR({selectionState:e,isDisabled:t}){let r=`${rt} 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 ni({errorMessage:e,...t}){return jsxRuntime.jsxs(reactAriaComponents.RangeCalendar,{...t,children:[jsxRuntime.jsx(vl,{}),jsxRuntime.jsxs(reactAriaComponents.CalendarGrid,{className:"w-full border-separate [border-spacing:0] [&_td]:p-0 [&_td]:!border-0",children:[jsxRuntime.jsx(Cl,{}),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:l})=>jsxRuntime.jsx("span",{className:fR({selectionState:n&&(a||i)?"cap":n?"middle":"none",isDisabled:l}),children:o})})})]}),e&&jsxRuntime.jsx(reactAriaComponents.Text,{slot:"errorMessage",className:"text-sm text-feedback-error-text",children:e})]})}function ox(e){return e==="brand"?"primary":e==="default"||e==="secondary"||!e?"subtle":e}var bR={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"},hR={sm:14,md:16,lg:18,xl:20},xR=({isSelected:e,isFirst:t,isLast:r,isDisabled:o,variant:n="subtle"})=>{let a=ox(n),i=a==="primary"?"focus-visible:outline-action-primary":"focus-visible:outline-[color:var(--color-action-secondary-text)]";return a==="subtle"?tailwindMerge.twMerge(rt(),"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(rt(),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 Xl({options:e,value:t,onChange:r,size:o="md",className:n,isDisabled:a,variant:i="subtle",iconOnly:s=false,"aria-label":l}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("inline-flex overflow-hidden rounded-[var(--control-border-radius)]",ox(i)==="subtle"?"border border-border-muted":"border-2 border-border-muted",bR[o],n),role:"group","aria-label":l,children:e.map((c,d)=>{let u=s&&!!c.icon;return jsxRuntime.jsxs(reactAriaComponents.ToggleButton,{isSelected:t===c.id,onChange:()=>r(c.id),className:xR({isSelected:t===c.id,isFirst:d===0,isLast:d===e.length-1,isDisabled:a,variant:i}),isDisabled:a,"aria-label":c.label,children:[c.icon&&jsxRuntime.jsx(V,{name:c.icon,size:hR[o]}),u?jsxRuntime.jsx("span",{className:"sr-only",children:c.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":c.label,children:c.label})]},c.id)})})}function SR(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function Ip(e){return SR(e)?e:(console.warn("Invalid date detected in TimeControls, using fallback:",e),new Date)}var cx=120*1e3,wR=.02,dx={FIVE_MINUTES:0,FIFTEEN_MINUTES:1,HOUR:2,DAY:3,WEEK:4,MONTH:5,YEAR:6},NR=[{id:"FIFTEEN_MINUTES",label:"15m"},{id:"HOUR",label:"1h"},{id:"DAY",label:"1d"},{id:"WEEK",label:"1w"}];function jl({dateRange:e,onDateRangeChange:t,windowSize:r,onWindowSizeChange:o,showWindowSize:n=true,showRangeSelector:a=true,allowDatePicker:i=false,lockWindowSize:s=false,showReset:l=true,restrictToSingleDay:c=false,presetRanges:d=[],windowSizeOptions:u=NR,autoAdjustWindowSize:m=false,className:p}){let[g,f]=Qe.useState(0),y=Qe.useRef(null),[b,h]=Qe.useState(false),[x,C]=Qe.useState(null),w=N=>{let M=(N.before.getTime()-N.after.getTime())/(1e3*60*60);return M<=24?"FIFTEEN_MINUTES":M<=72||M<=168?"HOUR":("DAY")};Qe.useEffect(()=>{if(m&&!b&&o){let N=w(e);o(N);}},[e,m,b,o]);let S=N=>{let v;for(let M of d){let A=M.getRange(),J=(A.before.getTime()-A.after.getTime())*wR,ae=Math.abs(A.after.getTime()-N.after.getTime()),le=Math.abs(A.before.getTime()-N.before.getTime());if(ae>J||le>J)continue;let $=ae+le;(!v||$<v.distance)&&(v={id:M.id,distance:$});}return v?.id},T=x&&d.some(N=>N.id===x.id)&&Math.abs(x.after-e.after.getTime())<=cx&&Math.abs(x.before-e.before.getTime())<=cx?x.id:S(e),R=Ip(e.after),P=Ip(e.before),E=new Date(P.getTime()-1),I={start:date.fromDate(R,date.getLocalTimeZone()),end:date.fromDate(E,date.getLocalTimeZone())};Qe.useEffect(()=>{let N=new ResizeObserver(v=>{for(let M of v)f(M.contentRect.width);});return y.current&&N.observe(y.current),()=>{y.current&&N.unobserve(y.current);}},[]);let k=[...u].sort((N,v)=>dx[N.id]-dx[v.id]),D=N=>{let v=N.toString(),M=d.find(A=>A.id===v);if(M){let A=M.getRange();C({id:v,after:A.after.getTime(),before:A.before.getTime()}),h(false),t(A,{presetId:v});}},L=N=>{if(N?.start&&N?.end){C(null);let v=new Date(N.start.year,N.start.month-1,N.start.day,0,0,0,0),M=new Date(N.end.year,N.end.month-1,N.end.day+1,0,0,0,0);t({after:v,before:M});}},B=N=>{if(N){C(null);let v=new Date(N.year,N.month-1,N.day,0,0,0,0),M=new Date(N.year,N.month-1,N.day+1,0,0,0,0);t({after:v,before:M});}},O=N=>{o&&(h(true),o(N.toString()));},H=()=>{d.length>0&&D(d[0].id);},G=N=>Ip(N).toLocaleDateString("en-US"),Z=k.map(N=>({id:N.id,label:N.label,value:N.id})),z=d.map(N=>({id:N.id,label:N.label,value:N.id})),W=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:k.find(N=>N.id===r)?.label||r}):jsxRuntime.jsx(zo,{className:"w-full md:w-auto",selectedKey:r,onSelectionChange:O,items:Z,size:"md","aria-label":"Select Window Size",children:N=>jsxRuntime.jsx(pr,{id:N.id,"aria-label":N.label,size:"md",children:N.label},N.id)}),q=l&&!T&&d.length>0,F=c?jsxRuntime.jsx("div",{className:"flex items-center",children:jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{children:[jsxRuntime.jsxs(te,{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:G(e.after)})]}),jsxRuntime.jsx(vt,{className:"z-50 w-auto p-3",disableGroup:true,children:jsxRuntime.jsx(Xa,{"aria-label":"Select date",value:date.parseDate(R.toISOString().split("T")[0]),onChange:B})})]})}):jsxRuntime.jsxs("div",{className:"flex items-center",children:[jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{children:[jsxRuntime.jsxs(te,{className:tailwindMerge.twMerge("border-l pl-2 pr-2 hover:border-border-default hover:bg-background-muted hover:text-text-link-hover",q&&"rounded-r-none"),variant:"secondary",children:[jsxRuntime.jsx(V,{name:"CalendarBlank",size:18}),!T&&jsxRuntime.jsx("span",{className:"ml-2 hidden md:block",children:`${G(e.after)} - ${G(E)}`})]}),jsxRuntime.jsx(vt,{className:"z-50 w-auto p-3",disableGroup:true,children:jsxRuntime.jsx(ni,{"aria-label":"Date range calendar",value:I,onChange:L})})]}),q&&jsxRuntime.jsx(te,{variant:"ghost",size:"md",onPress:H,children:"Reset"})]}),X=g<600;return jsxRuntime.jsx("div",{ref:y,className:tailwindMerge.twMerge("flex w-full flex-wrap items-center justify-between gap-4",p),children:X?jsxRuntime.jsxs("div",{className:"flex w-full justify-between",children:[jsxRuntime.jsxs("div",{className:"flex items-center",children:[i&&F,a&&d.length>0&&jsxRuntime.jsx(zo,{selectedKey:T??"",onSelectionChange:D,items:z,size:"md","aria-label":"Select Date Range",children:N=>jsxRuntime.jsx(pr,{id:N.id,size:"md",children:N.label},N.id)})]}),jsxRuntime.jsx("div",{className:"flex items-center",children:n&&r&&W})]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-4",children:[i&&F,a&&d.length>0&&jsxRuntime.jsx(Xl,{options:d.map(N=>({id:N.id,label:N.label})),value:T??"",onChange:D,size:"sm",variant:"secondary","aria-label":"Select Date Range"})]}),jsxRuntime.jsx("div",{className:"flex items-center",children:n&&r&&W})]})})}var ER=1440*60*1e3,MR=6e4,ux=(e,t)=>({startMs:t-e*ER,endMs:t}),LR=e=>({after:new Date(e.startMs),before:new Date(e.endMs)});function px({source:e,title:t,initialRange:r,viewportEnd:o,yFormatter:n,yDomain:a,referenceLines:i,emptyState:s,presetRanges:l,tierToWindow:c,windowSizeOptions:d,height:u=360,hint:m,dataBounds:p,children:g}){let[f,y]=Qe.useState(900),b=p?.endMs,[h,x]=Qe.useState(()=>b??Date.now());Qe.useEffect(()=>{if(b!=null){x(b);return}x(Date.now());let re=setInterval(()=>x(Date.now()),MR);return ()=>clearInterval(re)},[b]);let C=o?.getTime()??b,w=r?.days??30,S=Qe.useMemo(()=>ux(w,C??Date.now()),[w,C]),T=h,R=Qe.useMemo(()=>({startMs:p?.startMs??0,endMs:h}),[p?.startMs,h]),P=re=>{let se=Math.min(re.endMs-re.startMs,R.endMs-R.startMs),ve=Math.max(Math.min(re.endMs,R.endMs),R.startMs+se);return {startMs:ve-se,endMs:ve}},[E,I]=Qe.useState(null),[k,D]=Qe.useState(null),L=E??S,B=Mp({fetchTile:e.fetchTile,ladder:e.ladder,nativeMs:e.nativeMs,initialViewport:S,widthPx:f,maxFutureMs:T,tileCostSeriesCount:e.tileCostSeriesCount,resetKey:e.resetKey}),O=Qe.useMemo(()=>Yl(()=>C??Date.now()),[C]),H=l??O,G=()=>{if(k&&"presetId"in k){let re=H.find(se=>se.id===k.presetId);if(re){let se=re.getRange();return {startMs:se.after.getTime(),endMs:se.before.getTime()}}}return k&&"range"in k?k.range:ux(w,C??Date.now())},{line:Z,coverage:z,renderTier:W,targetTier:q,isFallback:F,isStale:X}=B.series,N=W?W.bucketMs*1.5:0,v=re=>re==null?"\u2014":new Date(re).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),M=(re,se)=>{let ve=se-re<1728e5?{month:"short",day:"numeric",hour:"numeric",minute:"2-digit"}:{month:"short",day:"numeric",year:"numeric"},je=new Intl.DateTimeFormat("en-US",ve);return `${je.format(new Date(re))} \u2013 ${je.format(new Date(se))}`},A=B.viewport.startMs!==L.startMs||B.viewport.endMs!==L.endMs,J=X||B.loading&&z.earliestMs==null,ae=(B.viewport.endMs-B.viewport.startMs)*.03,le=!J&&z.earliestMs!=null&&z.earliestMs>B.viewport.startMs+ae,$=!B.loading&&z.earliestMs==null&&z.latestMs==null&&Z.length===0&&!X,ie=qn(t),Ee=g({series:B.series,gapMs:N}),pe=Qe.isValidElement(Ee)&&Ee.type===Qe.Fragment?Ee.props.children:Ee,ge=jsxRuntime.jsxs("div",{className:`flex flex-col gap-3${ie.isExpanded?" h-full":""}`,children:[jsxRuntime.jsxs("div",{className:"flex items-start gap-2",children:[jsxRuntime.jsx(jl,{dateRange:LR(B.viewport),onDateRangeChange:(re,se)=>{let ve=P({startMs:re.after.getTime(),endMs:re.before.getTime()});D(se?.presetId?{presetId:se.presetId}:{range:ve}),I(ve),B.jumpTo(ve);},windowSize:c[q.id],windowSizeOptions:d,lockWindowSize:true,presetRanges:H,allowDatePicker:true,showReset:false}),!ie.isExpanded&&!$&&ie.action]}),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:M(B.viewport.startMs,B.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:W?.id??q.id}),F&&jsxRuntime.jsxs("span",{className:"text-text-tertiary",children:[" \xB7 loading ",q.id]})]}),B.loading&&jsxRuntime.jsx("span",{className:"text-text-tertiary",children:"loading\u2026"}),le&&jsxRuntime.jsxs("span",{className:"text-text-tertiary",children:["showing available history from ",v(z.earliestMs)]}),!le&&!J&&B.atDataStart&&jsxRuntime.jsx("span",{className:"text-text-tertiary",children:"no earlier data loaded"}),A&&jsxRuntime.jsx(te,{variant:"ghost",size:"sm",onPress:()=>{let re=P(G());I(re),B.jumpTo(re);},children:"\u27F2 Reset"})]}),jsxRuntime.jsx("div",{className:`relative overflow-hidden rounded-md border border-border-subtle${ie.isExpanded?" min-h-0 flex-1":""}`,style:ie.isExpanded?void 0:{height:u},children:$?jsxRuntime.jsx(Kl,{title:s.title,description:s.description}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Wl,{title:t,viewport:B.viewport,panBounds:R,onViewportChange:B.onViewportChange,onPlotWidthChange:y,...n&&{yFormatter:n},...a&&{yDomain:a},...i&&{referenceLines:i},children:pe}),B.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})]});return jsxRuntime.jsx(hp,{children:ie.present(ge)})}function ts({count:e,label:t="results",isLoading:r=false,className:o=""}){if(r)return jsxRuntime.jsx("div",{className:`flex items-center ${o}`,children:jsxRuntime.jsx(Y,{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 VR=e=>{let t=zt({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 qr({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,transparent:i,showSearchIcon:s,isClearable:l,onClear:c,type:d,validationResult:u,reserveErrorSpace:m=true,isLoading:p=false,descriptionPlacement:g="below",...f}){let[y,b]=Qe__namespace.default.useState(false),{isFocused:h,handleFocus:x,handleBlur:C}=ur(),w=d==="password",S=dl(p,300);return jsxRuntime.jsx(reactAriaComponents.TextField,{...f,isRequired:a,className:Ae(f.className,"group flex flex-col"),children:({isDisabled:T,isInvalid:R})=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(Ye,{size:o,tooltip:n,description:g==="tooltip"||g==="inline"?t:void 0,descriptionPlacement:g,isRequired:a,children:e}),jsxRuntime.jsxs(St,{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 P={sm:14,md:16,lg:18,xl:20}[o];return S?jsxRuntime.jsx(Wr,{size:P,color:"text-text-secondary"}):jsxRuntime.jsx(V,{name:"MagnifyingGlass",size:P,className:`transition-colors ${h?"text-action-brand":"text-text-secondary"}`})})()}),jsxRuntime.jsx(pl,{size:o,disabled:T,type:w?y?"text":"password":d,name:f.name,autoComplete:f.autoComplete,value:f.value,defaultValue:f.defaultValue,placeholder:f.placeholder,onFocus:P=>x(P,f.onFocus),onBlur:P=>C(P,f.onBlur),onChange:P=>f.onChange?.(P.target.value),style:s?{paddingLeft:{sm:28,md:32,lg:36,xl:37}[o]}:void 0,className:VR({isInvalid:R,isDisabled:T,isFocused:h,size:o,transparent:i,showSearchIcon:s,isClearable:l,hasValue:!!f.value,isPassword:w,className:typeof f.className=="string"?f.className:void 0})}),l&&f.value&&!T&&jsxRuntime.jsx(Vi,{onClick:()=>{c?c():f.onChange&&f.onChange("");},size:o}),w&&!T&&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:P=>{P.preventDefault(),P.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(he,{size:o,children:r}):typeof r=="function"&&u?jsxRuntime.jsx(he,{size:o,children:r(u)}):t&&g==="below"?jsxRuntime.jsx(Te,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(he,{size:o,className:"mt-1",children:r}):typeof r=="function"&&u?jsxRuntime.jsx(he,{size:o,className:"mt-1",children:r(u)}):t&&g==="below"?jsxRuntime.jsx(Te,{size:o,className:"mt-1",children:t}):null})]})})}function ta({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(qr,{value:e,onChange:t,placeholder:o,showSearchIcon:true,isClearable:!!e&&!!r,onClear:r,size:n,"aria-label":o,reserveErrorSpace:false,isLoading:i})})}function rs({value:e,options:t,onChange:r,direction:o,onDirectionChange:n,showLabel:a=true,size:i="sm",className:s="",compact:l=false}){let[c,d]=Qe.useState(false),u=o!==void 0&&n!==void 0,m=t.find(p=>p.value===e);return l?jsxRuntime.jsxs("div",{className:`flex items-center gap-2 ${s}`,children:[jsxRuntime.jsx(te,{variant:"secondary",size:i,icon:"ArrowsDownUp","aria-label":`Sort by: ${m?.label||"Select"}`,onPress:()=>d(true)}),jsxRuntime.jsx(Ct,{isOpen:c,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 g=Array.from(p)[0];g!=null&&(r(g),d(false));},children:p=>jsxRuntime.jsx(pr,{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(zo,{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(te,{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 hx({search:e,searchMobileMode:t="expanded",filters:r=[],onRemoveFilter:o,onClearAllFilters:n,onManageFilters:a,exportControl:i,maxVisibleFilterChips:s=3,sort:l,resultsCount:c,leftControls:d,onManageColumns:u,columnPicker:m,customControls:p,actions:g,interactionMode:f="auto",sticky:y,stickyTop:b="0",zIndex:h=10,className:x="",style:C}){let w=r.length>0;if(!(e||w||a||l||c||d||u||m||p||g||i))return null;let T=y?"sticky bg-background-surface":"",R=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 ${T} ${x}`,style:{...C,...R},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&&c&&jsxRuntime.jsx("div",{className:"h-4 w-px bg-border-default"}),c&&jsxRuntime.jsx(ts,{count:c.count,label:c.label,isLoading:c.isLoading}),c&&l&&jsxRuntime.jsx("div",{className:"h-4 w-px bg-border-default"}),l&&jsxRuntime.jsx(rs,{value:l.value,options:l.options,onChange:l.onChange,showLabel:l.showLabel,direction:l.direction,onDirectionChange:l.onDirectionChange}),u?jsxRuntime.jsx(te,{variant:"secondary",size:"sm",icon:"Columns",onClick:u,children:"Columns"}):m,w&&o&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[r.slice(0,s).map(P=>jsxRuntime.jsxs(Yr,{variant:"primary",size:"sm",onRemove:()=>o(P.id),isRemovable:true,children:[P.label,": ",P.value]},P.id)),r.length>s&&a&&jsxRuntime.jsxs(te,{variant:"ghost",size:"sm",onClick:a,className:"text-text-secondary hover:text-text-primary whitespace-nowrap",children:["+",r.length-s," more"]}),n&&jsxRuntime.jsx(te,{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:[g&&g.items.length>0&&jsxRuntime.jsx(jsxRuntime.Fragment,{children:g.items.map(P=>jsxRuntime.jsx(te,{variant:P.variant||"secondary",size:"sm",icon:P.icon,onPress:P.onClick,isDisabled:P.disabled,children:P.label},P.id))}),e&&jsxRuntime.jsx("div",{className:"w-64",children:jsxRuntime.jsx(ta,{value:e.value,onChange:e.onChange,onClear:e.onClear,placeholder:e.placeholder,isLoading:e.isLoading})}),a&&jsxRuntime.jsx(te,{variant:"secondary",size:"sm",icon:"Sliders",badgeNumber:r.length>0?r.length:void 0,onClick:a,children:"Filters"}),i&&jsxRuntime.jsx(te,{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:[g&&g.items.length>0&&jsxRuntime.jsx(Wa,{items:g.items.map(P=>({id:P.id,name:P.label,iconName:P.icon,variant:P.variant==="destructive"?"destructive":"primary",disabled:P.disabled,onAction:P.onClick})),align:"left",size:"sm",children:jsxRuntime.jsx(te,{variant:"secondary",size:"sm",icon:"DotsThreeVertical","aria-label":g.menuLabel||"Actions"})}),e&&jsxRuntime.jsx("div",{className:"flex-1",children:jsxRuntime.jsx(ta,{value:e.value,onChange:e.onChange,onClear:e.onClear,placeholder:e.placeholder,isLoading:e.isLoading})}),a&&jsxRuntime.jsx(te,{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(te,{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,c&&jsxRuntime.jsx(ts,{count:c.count,label:c.label,isLoading:c.isLoading})]}),jsxRuntime.jsx("div",{className:"flex items-center gap-2",children:l&&jsxRuntime.jsx(rs,{value:l.value,options:l.options,onChange:l.onChange,showLabel:false,direction:l.direction,onDirectionChange:l.onDirectionChange,compact:f!=="desktop"})})]})]})]})}function xx({filters:e,onRemove:t,onClearAll:r,onManageFilters:o,maxVisibleChips:n=3,mode:a="chips",showManageButton:i=true,size:s="sm",className:l=""}){let c=e.length>0,d=e.slice(0,n),u=Math.max(0,e.length-n),m=u>0,p=a==="button"&&!!o,g=a==="chips"&&i&&!!o;if(!c&&!p&&!g)return null;let f=p&&jsxRuntime.jsxs(te,{variant:"secondary",size:s,onClick:o,className:"whitespace-nowrap",children:[e.length," ",e.length===1?"filter":"filters"]}),y=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[g&&jsxRuntime.jsx(te,{variant:"secondary",size:s,icon:"Sliders",onClick:o,className:"whitespace-nowrap",children:"Filters"}),c&&d.map(h=>jsxRuntime.jsxs(Yr,{variant:"secondary",size:s,onRemove:()=>t(h.id),isRemovable:true,children:[h.label,": ",h.value]},h.id)),c&&m&&o&&jsxRuntime.jsxs(te,{variant:"ghost",size:s,onClick:o,className:"text-text-secondary hover:text-text-primary whitespace-nowrap",children:["+",u," more"]}),c&&r&&jsxRuntime.jsx(te,{variant:"ghost",size:s,onClick:r,className:"text-text-secondary hover:text-text-primary whitespace-nowrap",children:"Clear all"})]}),b=a==="button"?f:y;return jsxRuntime.jsx("div",{className:`flex flex-wrap items-center gap-2 ${l}`,children:b})}var yx=["isEmpty","isNotEmpty"];function vx(e){return yx.includes(e)}var Cx={isEmpty:"is empty",isNotEmpty:"is not empty"};function KR(e,t,r){return {field:e,operator:t,value:r}}function YR(e,t="AND"){return {logic:t,conditions:e}}function os(){return {logic:"AND",conditions:[]}}function _l(e){return !e||e.conditions.length===0?true:e.conditions.every(t=>"conditions"in t?_l(t):false)}function JR(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 l=r.get(i),c=l?.label||i,d=[],u=[],m=[];for(let p of s)p.operator==="in"&&Array.isArray(p.value)?d.push(...p.value):p.operator==="eq"?p.value!==void 0&&typeof p.value!="boolean"&&!Array.isArray(p.value)?d.push(p.value):m.push(p):["gte","gt","lte","lt"].includes(p.operator)&&p.value!==void 0?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 g=Array.from(new Set(d)).map(f=>l?.values?.find(b=>String(b.value)===String(f))?.label??f);a.push({id:`${i}-in`,label:c,value:g.join(", ")});}if(u.length>0){let p=u.find(f=>f.operator==="gte"||f.operator==="gt"),g=u.find(f=>f.operator==="lte"||f.operator==="lt");if(p&&g){let f=p.operator==="gte"?"\u2265":">",y=g.operator==="lte"?"\u2264":"<";a.push({id:`${i}-range`,label:c,value:`${f} ${p.value} and ${y} ${g.value}`});}else for(let f of u){let y;f.operator==="gte"?y="\u2265":f.operator==="gt"?y=">":f.operator==="lte"?y="\u2264":y="<",a.push({id:`${i}-${f.operator}`,label:c,value:`${y} ${f.value}`});}}for(let p of m){let g;p.operator==="neq"?g=`\u2260 ${p.value}`:p.operator==="contains"?g=`contains "${p.value}"`:p.operator==="startsWith"?g=`starts with "${p.value}"`:p.operator==="endsWith"?g=`ends with "${p.value}"`:vx(p.operator)?g=Cx[p.operator]:g=String(p.value),a.push({id:`${i}-${p.operator}`,label:c,value:g});}}return a}function Sn(e,t){let r=e||os();return {...r,conditions:[...r.conditions,t]}}function ra(e,t){if(!e)return os();let r=e.conditions.filter(o=>"conditions"in o?ra(o,t).conditions.length>0:o.field!==t);return {...e,conditions:r}}function oa(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 wx({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,isDisabled:i,isInvalid:s,showCalendar:l=true,reserveErrorSpace:c=true,validationResult:d,className:u,...m}){let[p,g]=Qe.useState(false),f=y=>{m.onChange&&y&&m.onChange(y),g(false);};return jsxRuntime.jsxs(reactAriaComponents.DateField,{...m,isDisabled:i,isRequired:a,isInvalid:s,className:Ae(u,"flex flex-col gap-1"),children:[e&&jsxRuntime.jsx(Ye,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(St,{children:jsxRuntime.jsxs("div",{className:"relative w-full",children:[jsxRuntime.jsx(ns,{size:o,isDisabled:i,isInvalid:s,hasCalendar:l}),l&&!i&&jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{isOpen:p,onOpenChange:g,children:[jsxRuntime.jsx(te,{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(Xa,{value:m.value,onChange:f,minValue:m.minValue,maxValue:m.maxValue,isDisabled:i,isReadOnly:m.isReadOnly,isDateUnavailable:m.isDateUnavailable})})})]})]})}),c?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(he,{size:o,children:r}):typeof r=="function"&&d?jsxRuntime.jsx(he,{size:o,children:r(d)}):t?jsxRuntime.jsx(Te,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(he,{size:o,className:"mt-1",children:r}):typeof r=="function"&&d?jsxRuntime.jsx(he,{size:o,className:"mt-1",children:r(d)}):t?jsxRuntime.jsx(Te,{size:o,className:"mt-1",children:t}):null})]})}function e2({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 ns({size:e="md",isDisabled:t,isInvalid:r,hasCalendar:o,className:n,...a}){return jsxRuntime.jsx(reactAriaComponents.DateInput,{className:tailwindMerge.twMerge(sn({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:e2({isPlaceholder:i.isPlaceholder,isDisabled:!i.isEditable||t,size:e})})})}function $l({label:e,description:t,errorMessage:r,...o}){return jsxRuntime.jsxs(reactAriaComponents.DateRangePicker,{...o,className:Ae(o.className,"group flex flex-col gap-1"),children:[e&&jsxRuntime.jsx(Ye,{children:e}),jsxRuntime.jsxs(Ug,{className:"w-auto min-w-[208px]",children:[jsxRuntime.jsx(ns,{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(ns,{slot:"end",className:"flex-1 px-2 py-1.5 text-sm"}),jsxRuntime.jsx(te,{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(he,{children:r}):null,jsxRuntime.jsx(vt,{children:jsxRuntime.jsx(ni,{})})]})}var c2=e=>{let t=zt({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 as({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,transparent:i,validationResult:s,reserveErrorSpace:l=true,descriptionPlacement:c="below",...d}){let u=Qe.useId(),{isFocused:m,handleFocus:p,handleBlur:g}=ur();return jsxRuntime.jsx(reactAriaComponents.NumberField,{...d,id:u,isRequired:a,className:Ae(d.className,"group flex flex-col gap-1"),step:d.step??1,onChange:f=>{typeof f=="number"&&(d.maxValue!=null&&f>d.maxValue?d.onChange?.(d.maxValue):d.minValue!=null&&f<d.minValue?d.onChange?.(d.minValue):d.onChange?.(f));},isInvalid:!!r||typeof d.value=="number"&&(d.maxValue!=null&&d.value>d.maxValue||d.minValue!=null&&d.value<d.minValue),children:({isDisabled:f,isInvalid:y})=>jsxRuntime.jsxs("div",{className:"flex flex-col gap-1",children:[e&&jsxRuntime.jsx(Ye,{size:o,tooltip:n,description:c==="tooltip"||c==="inline"?t:void 0,descriptionPlacement:c,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=>g(h,d.onBlur),className:c2({isInvalid:y||!!r,isDisabled:f,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:f,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:f,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})})]})]})}),l?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:r?jsxRuntime.jsx(he,{size:o,children:typeof r=="function"?r(s):r}):t&&c==="below"?jsxRuntime.jsx(Te,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:r?jsxRuntime.jsx(he,{size:o,className:"mt-1",children:typeof r=="function"?r(s):r}):t&&c==="below"?jsxRuntime.jsx(Te,{size:o,className:"mt-1",children:t}):null})]})})}var Hp={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 p2({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=Hp[r].track,a=rt,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 m2({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=Hp[r].handle;return [o,n,e?"translate-x-[100%]":"translate-x-0",t?"forced-colors:outline-[GrayText]":""].filter(Boolean).join(" ")}function ec({children:e,variant:t="primary",size:r="md",...o}){return jsxRuntime.jsx(reactAriaComponents.Switch,{...o,className:Ae(o.className,`relative group flex items-center gap-2 ${Hp[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:p2({...n,size:r}),children:jsxRuntime.jsx("span",{className:m2({...n,size:r})})}),e]})})}function kx(e){return new Intl.NumberFormat("en-US").format(e)}function Px({isOpen:e,onClose:t,facetConfigs:r,facetCounts:o={},currentFilters:n,onApply:a,onClear:i,title:s="Filters",resultCount:l}){let[c,d]=Qe.useState(n),[u,m]=Qe.useState({}),[p,g]=Qe.useState({}),[f,y]=Qe.useState(null),{isMobile:b}=ar(),h=Qe.useMemo(()=>r.some(v=>v.group),[r]),{groups:x,ungroupedFacets:C,facetsByGroup:w}=Qe.useMemo(()=>{let v=new Set,M=[],A={};for(let J of r)J.group?(v.has(J.group)||(v.add(J.group),A[J.group]=[]),A[J.group].push(J)):M.push(J);return {groups:Array.from(v),ungroupedFacets:M,facetsByGroup:A}},[r]);Qe.useEffect(()=>{e&&(d(n),m({}),g({}),y(!b&&x.length>0?x[0]:null));},[e,n,x,b]);let S=Qe.useMemo(()=>!c||_l(c)?0:oa(c).length,[c]),T=()=>{a(c),t();},R=()=>{let v=os();d(v),i?i():a(v),t();},P=v=>{if(!c)return [];if(!oa(c).includes(v))return [];let A=[];function J(ae){if(ae)for(let le of ae.conditions)"conditions"in le?J(le):le.field===v&&le.operator==="in"&&Array.isArray(le.value)&&A.push(...le.value.map(String));}return J(c),A},E=(v,M,A)=>{let J=ra(c,v);M!==void 0&&(J=Sn(J,{field:v,operator:"gte",value:M})),A!==void 0&&(J=Sn(J,{field:v,operator:"lte",value:A})),d(J);},I=v=>{if(!c)return;let M;function A(J){if(J)for(let ae of J.conditions)"conditions"in ae?A(ae):ae.field===v&&ae.operator==="eq"&&typeof ae.value=="boolean"&&(M=ae.value);}return A(c),M},k=(v,M)=>{let A=ra(c,v);M!==void 0&&(A=Sn(A,{field:v,operator:"eq",value:M})),d(A);},D=(v,M,A)=>{let J=ra(c,v);M&&(J=Sn(J,{field:v,operator:"gte",value:M.toString()})),A&&(J=Sn(J,{field:v,operator:"lte",value:A.toString()})),d(J);},L=v=>{let M=w[v]||[],A=c?oa(c):[];return M.filter(J=>A.includes(J.field)).length},B="pr-9 bg-background-muted/50",O="border-t border-border-muted",H="text-sm font-medium text-text-link-default",G=v=>jsxRuntime.jsx("span",{className:H,children:v}),Z=v=>{let M=o[v.field]||{},A=u[v.field]||"",J=[];v.values?J=v.values.map($=>({value:String($.value),label:$.label,count:M[String($.value)]})):J=Object.entries(M).map(([$,ie])=>({value:$,label:$,count:ie}));let ae=J.length;if(A){let $=A.toLowerCase();J=J.filter(ie=>ie.label.toLowerCase().includes($));}J.sort(($,ie)=>$.count!==void 0&&ie.count!==void 0&&ie.count!==$.count?ie.count-$.count:$.label.localeCompare(ie.label));let le=v.type||"string";if(le==="string"||!v.type){let $=P(v.field),ie=v.searchThreshold??10,Ee=v.maxVisibleOptions??50,pe=p[v.field]??false,ge=pe||J.length<=Ee?J:J.slice(0,Ee),re=J.length>Ee&&!pe;return jsxRuntime.jsxs(pn,{id:v.field,children:[jsxRuntime.jsx(mn,{title:v.label,description:v.description,className:B,endContent:$.length>0?G(`${$.length} selected`):void 0}),jsxRuntime.jsx(fn,{className:O,children:jsxRuntime.jsxs("div",{className:"space-y-4 pt-4 pb-4",children:[ae>ie&&jsxRuntime.jsx(ta,{value:A,onChange:se=>m(ve=>({...ve,[v.field]:se})),onClear:()=>m(se=>({...se,[v.field]:""})),placeholder:`Search ${v.label.toLowerCase()}...`,size:"sm",className:"w-full !max-w-none pr-4"}),jsxRuntime.jsx(ju,{value:$,onChange:se=>{let ve=ra(c,v.field);se.length>0&&(ve=Sn(ve,{field:v.field,operator:"in",value:se})),d(ve);},children:jsxRuntime.jsx("div",{className:"space-y-1.5",children:ge.map(se=>jsxRuntime.jsx("div",{className:"rounded-md py-2 pr-4 transition-colors hover:bg-background-hover",children:jsxRuntime.jsx(eo,{value:se.value,children:jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-3 flex-1",children:[v.renderLabel?v.renderLabel(se.value,se.label):jsxRuntime.jsx("span",{className:"text-sm font-medium text-text-primary",children:se.label}),se.count!==void 0&&jsxRuntime.jsx("span",{className:"text-xs font-medium text-text-secondary tabular-nums",children:kx(se.count)})]})})},se.value))})}),re&&jsxRuntime.jsx("div",{className:"pt-2 border-t border-border-muted",children:jsxRuntime.jsxs(te,{variant:"ghost",size:"sm",onPress:()=>g(se=>({...se,[v.field]:true})),className:"w-full",children:["Show all ",J.length," options"]})}),pe&&J.length>Ee&&jsxRuntime.jsx("div",{className:"pt-2 border-t border-border-muted",children:jsxRuntime.jsx(te,{variant:"ghost",size:"sm",onPress:()=>g(se=>({...se,[v.field]:false})),className:"w-full",children:"Show less"})})]})})]},v.field)}if(le==="number"){let $,ie,Ee=ge=>{if(ge)for(let re of ge.conditions)"conditions"in re?Ee(re):re.field===v.field&&(re.operator==="gte"&&typeof re.value=="number"&&($=re.value),re.operator==="lte"&&typeof re.value=="number"&&(ie=re.value));};Ee(c);let pe=$!==void 0||ie!==void 0;return jsxRuntime.jsxs(pn,{id:v.field,children:[jsxRuntime.jsx(mn,{title:v.label,description:v.description,className:B,endContent:pe?G($!==void 0&&ie!==void 0?`${$} - ${ie}`:$!==void 0?`\u2265 ${$}`:`\u2264 ${ie}`):void 0}),jsxRuntime.jsx(fn,{className:O,children:jsxRuntime.jsxs("div",{className:"grid grid-cols-2 gap-4 pt-4 pb-4",children:[jsxRuntime.jsx(as,{label:"Min",value:$,onChange:ge=>E(v.field,ge,ie)},`${v.field}-min`),jsxRuntime.jsx(as,{label:"Max",value:ie,onChange:ge=>E(v.field,$,ge)},`${v.field}-max`)]})})]},v.field)}if(le==="boolean"){let $=I(v.field);return jsxRuntime.jsxs(pn,{id:v.field,children:[jsxRuntime.jsx(mn,{title:v.label,description:v.description,className:B,endContent:$!==void 0?G($?"Yes":"No"):void 0}),jsxRuntime.jsx(fn,{className:O,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(ec,{size:"lg",isSelected:$??false,onChange:ie=>k(v.field,ie?true:void 0),children:$?"Yes":"No"})]})})]},v.field)}if(le==="date"){let $,ie,Ee=ve=>{if(ve)for(let je of ve.conditions)"conditions"in je?Ee(je):je.field===v.field&&(je.operator==="gte"&&($=String(je.value)),je.operator==="lte"&&(ie=String(je.value)));};Ee(c);let pe=$!==void 0||ie!==void 0,ge=ve=>{if(ve)try{return /^\d{4}-\d{2}-\d{2}$/.test(ve)?date.parseDate(ve):void 0}catch{return}},re=ge($),se=ge(ie);return jsxRuntime.jsxs(pn,{id:v.field,children:[jsxRuntime.jsx(mn,{title:v.label,description:v.description,className:B,endContent:pe?G("Date range selected"):void 0}),jsxRuntime.jsx(fn,{className:O,children:jsxRuntime.jsx("div",{className:"pt-4 pb-4",children:jsxRuntime.jsx($l,{label:"Date Range",value:re&&se?{start:re,end:se}:void 0,onChange:ve=>{ve?D(v.field,ve.start,ve.end):D(v.field,void 0,void 0);}})})})]},v.field)}return null},z=()=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[C.map(v=>{let A=(c?oa(c):[]).includes(v.field);return jsxRuntime.jsxs("button",{type:"button",onClick:()=>y(`__ungrouped__${v.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:v.label}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[A&&jsxRuntime.jsx("span",{className:H,children:"1 active"}),jsxRuntime.jsx(V,{name:"CaretRight",size:"sm",className:"text-text-secondary"})]})]},v.field)}),x.map(v=>{let M=L(v);return jsxRuntime.jsxs("button",{type:"button",onClick:()=>y(v),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:v}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[M>0&&jsxRuntime.jsxs("span",{className:H,children:[M," active"]}),jsxRuntime.jsx(V,{name:"CaretRight",size:"sm",className:"text-text-secondary"})]})]},v)})]}),W=v=>{if(v.startsWith("__ungrouped__")){let A=v.replace("__ungrouped__",""),J=C.find(ae=>ae.field===A);return J?jsxRuntime.jsx(ja,{variant:"contained",density:"comfortable",showDividers:true,defaultExpandedKeys:[J.field],children:Z(J)}):null}let M=w[v]||[];return M.length===0?null:jsxRuntime.jsx(ja,{variant:"contained",density:"comfortable",showDividers:true,defaultExpandedKeys:[M[0].field],children:M.map(A=>Z(A))})},q=()=>{if(f){let v=f.startsWith("__ungrouped__")&&C.find(M=>M.field===f.replace("__ungrouped__",""))?.label||f;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:v})]}),jsxRuntime.jsx("div",{className:"flex-1 overflow-y-auto",children:W(f)})]})}return z()},F=()=>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:[C.map(v=>{let A=(c?oa(c):[]).includes(v.field),J=f===`__ungrouped__${v.field}`;return jsxRuntime.jsxs("button",{type:"button",onClick:()=>y(`__ungrouped__${v.field}`),className:`flex items-center justify-between w-full px-4 py-3 text-left border-b border-border-muted transition-colors ${J?"bg-background-selected":"hover:bg-background-hover"}`,children:[jsxRuntime.jsx("span",{className:`text-sm truncate ${J?"font-semibold text-text-primary":"font-medium text-text-primary"}`,children:v.label}),A&&jsxRuntime.jsx("span",{className:"w-2 h-2 rounded-full bg-action-primary flex-shrink-0 ml-2"})]},v.field)}),x.map(v=>{let M=L(v),A=f===v;return jsxRuntime.jsxs("button",{type:"button",onClick:()=>y(v),className:`flex items-center justify-between w-full px-4 py-3 text-left border-b border-border-muted transition-colors ${A?"bg-background-selected":"hover:bg-background-hover"}`,children:[jsxRuntime.jsx("span",{className:`text-sm truncate ${A?"font-semibold text-text-primary":"font-medium text-text-primary"}`,children:v}),M>0&&jsxRuntime.jsx("span",{className:"w-2 h-2 rounded-full bg-action-primary flex-shrink-0 ml-2"})]},v)})]}),jsxRuntime.jsx("div",{className:"flex-1 overflow-y-auto",children:f?W(f):jsxRuntime.jsx("div",{className:"flex items-center justify-center h-full text-text-secondary text-sm",children:"Select a category to view filters"})})]}),X=()=>jsxRuntime.jsx(ja,{variant:"contained",density:"comfortable",showDividers:true,defaultExpandedKeys:[r[0].field],children:r.map(v=>Z(v))});return jsxRuntime.jsx(cr,{isOpen:e,onClose:t,title:h&&b&&f?f.startsWith("__ungrouped__")?C.find(v=>v.field===f.replace("__ungrouped__",""))?.label||s:f:S>0?`${s} (${S} active)`:s,hideCloseIcon:false,primaryAction:{label:"Apply filters",onPress:T,variant:"primary"},secondaryAction:{label:"Clear all",onPress:R},maxWidth:h?"800px":"700px",height:"600px",mobileHeight:"85vh",contentPadding:false,footerContent:l!==void 0?jsxRuntime.jsxs("div",{className:"text-sm text-text-secondary text-center",children:[jsxRuntime.jsx("span",{className:"font-semibold text-text-primary",children:kx(l)})," ",l===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?q():F():X()})}function Wp(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 yr(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 we(e="left",t){return tailwindMerge.twMerge("flex items-center gap-1 min-w-0 overflow-hidden",Wp(e),t)}function oc(e,t="\u2014"){return e==null||e===""?t:String(e)}var wn={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 Tt(e="normal"){return {strong:wn.lg,high:wn.lg,normal:wn.md,low:wn.sm}[e]}function me(e,...t){return typeof e=="function"?e(...t):e}function Rx(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 Ex(e){return e?"success":"neutral"}function nc(e,t=false){return t?e>0?"text-feedback-success-text":e<0?"text-feedback-error-text":"text-text-primary":"text-text-primary"}function Up(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 Po(e,t,r,o="hover",n="secondary",a,i){if(!t)return e;let s=typeof t=="function"&&r?t(r):t,l=Up(o,n);return jsxRuntime.jsx("a",{href:s,className:tailwindMerge.twMerge(l,a==="strong"||a==="high"?"font-semibold":"",i),onClick:d=>{d.metaKey||d.ctrlKey;},children:e})}function Mx({row:e,context:t,actions:r,align:o="right",size:n="sm"}){let{isLoading:a}=t;if(a)return jsxRuntime.jsx(Y,{className:wn.sm});let s=(typeof r=="function"?r(e):r).filter(c=>!me(c.hidden,e));if(s.length===0)return null;let l=we(o);return jsxRuntime.jsx("div",{className:l,children:s.map(c=>{let d=me(c.disabled,e);return c.variant==="icon"||!c.label?jsxRuntime.jsx(te,{variant:"icon",size:n,onPress:()=>{c.onClick(e);},isDisabled:d,"aria-label":c.label||c.id,children:jsxRuntime.jsx(V,{name:c.icon||"DotsThree",size:n==="sm"?16:20})},c.id):jsxRuntime.jsxs(te,{variant:c.variant||"secondary",size:n,onPress:()=>{c.onClick(e);},isDisabled:d,children:[c.icon&&jsxRuntime.jsx(V,{name:c.icon,size:n==="sm"?14:16}),c.label]},c.id)})})}function Dx({value:e,row:t,context:r,variant:o="default",label:n,size:a="sm",shape:i="square",dot:s,dotPosition:l="left",dotPulse:c,align:d="left",emptyText:u="\u2014",className:m,maxVisible:p=2,maxLabelLength:g}){let{isLoading:f}=r,y=(S,T)=>{if(!g||S.length<=g)return jsxRuntime.jsx(jsxRuntime.Fragment,{children:S});let R=S.slice(0,g-1)+"\u2026";return jsxRuntime.jsx(dr,{content:T,children:jsxRuntime.jsx("span",{children:R})})};if(f)return jsxRuntime.jsx(Y,{className:Tt("normal")});if(e==null||e==="")return jsxRuntime.jsx("div",{className:we(d,"text-text-secondary"),children:u});if(Array.isArray(e)&&e.length===0)return jsxRuntime.jsx("div",{className:we(d,"text-text-secondary"),children:u});let b=we(d,m);if(Array.isArray(e)){let S=e.slice(0,p),T=e.slice(p),R=T.length>0;return jsxRuntime.jsx("div",{className:b,children:jsxRuntime.jsxs("div",{className:"flex items-center gap-1",children:[S.map((P,E)=>{let I=me(o,P,t),k=n!==void 0?me(n,P,t):String(P),D=me(s,P,t),L=me(c,P,t);return jsxRuntime.jsx("span",{className:"flex-shrink-0 whitespace-nowrap",children:jsxRuntime.jsx(ft,{variant:I,size:a,shape:i,dot:D,dotPosition:l,dotPulse:L,children:y(k,k)})},E)}),R&&jsxRuntime.jsx(dr,{content:T.join(", "),children:jsxRuntime.jsx("span",{className:"flex-shrink-0 whitespace-nowrap",children:jsxRuntime.jsxs(ft,{variant:"neutral",size:a,shape:i,children:["+",T.length]})})})]})})}let h=me(o,e,t),x=n!==void 0?me(n,e,t):String(e),C=me(s,e,t),w=me(c,e,t);return jsxRuntime.jsx("div",{className:b,children:jsxRuntime.jsx(ft,{variant:h,size:a,shape:i,dot:C,dotPosition:l,dotPulse:w,children:y(x,x)})})}function Ax({value:e,context:t,format:r="icon",trueText:o="Yes",falseText:n="No",trueIcon:a="Check",falseIcon:i="X",showFalse:s=true,align:l="center",emphasis:c="normal",className:d}){let{isLoading:u}=t;if(u)return jsxRuntime.jsx(Y,{className:Tt(c)});let m=!!e;if(!m&&!s)return jsxRuntime.jsx("div",{className:we(l,d)});let p=we(l,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:yr(c),children:m?o:n})});case "badge":return jsxRuntime.jsx("div",{className:p,children:jsxRuntime.jsx(ft,{variant:m?"success":"neutral",size:"sm",children:m?o:n})});default:return null}}var ac="var(--color-text-subtle)",Ix=Ks().map((e,t)=>`var(--color-viz-categorical-${t+1})`);function Bx({value:e,row:t,context:r,color:o,swatch:n="dot",emptyText:a="\u2014",align:i="left",className:s}){let{isLoading:l}=r;if(l)return jsxRuntime.jsx(Y,{className:Tt("normal")});let c=me(e,t),d=c==null?"":String(c);return d.length===0?jsxRuntime.jsx("div",{className:we(i,"text-text-secondary"),children:a}):jsxRuntime.jsxs("div",{className:we(i,tailwindMerge.twMerge("gap-2",s)),children:[jsxRuntime.jsx("span",{"aria-hidden":"true",className:tailwindMerge.twMerge("h-2 w-2 flex-shrink-0",n==="dot"?"rounded-full":"rounded-sm"),style:{backgroundColor:o??ac}}),jsxRuntime.jsx("span",{className:"truncate",children:d})]})}function Ox({row:e,context:t,firstName:r,lastName:o,email:n,avatarUrl:a,layout:i="stacked",size:s="sm",href:l,LinkComponent:c,linkVariant:d="secondary",showEmail:u=false,badge:m,emphasis:p="normal",align:g="left",className:f,piiEntity:y}){let{isLoading:b}=t,h=me(r,e),x=me(o,e),C=me(n,e),w=me(a,e),S=me(l,e),T=me(m,e),R=me(y,e),P=we(g,f);return jsxRuntime.jsx("div",{className:P,children:jsxRuntime.jsx(Nl,{firstName:h,lastName:x,email:C,avatarUrl:w,layout:i,size:s,href:S,LinkComponent:c,linkVariant:d,showEmail:u,badge:T,emphasis:p,isLoading:b,piiEntity:R})})}function zx({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 Hx({value:e,row:t,context:r,format:o="date",customFormat:n,emptyText:a="\u2014",align:i="left",emphasis:s="normal",href:l,linkBehavior:c="hover",className:d}){let{isLoading:u}=r;if(u)return jsxRuntime.jsx(Y,{className:Tt(s)});if(!e)return jsxRuntime.jsx("div",{className:we(i,"text-text-secondary"),children:a});let m=e instanceof Date?e:new Date(e);if(isNaN(m.getTime()))return jsxRuntime.jsx("div",{className:we(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=T2(m);break;case "custom":p=n?m.toLocaleString("en-US",n):m.toISOString();break;default:p=m.toLocaleDateString();}let g=we(i,tailwindMerge.twMerge(yr(s),d)),f=me(l,t);return f?jsxRuntime.jsx("div",{className:g,children:Po(p,f,t,c)}):jsxRuntime.jsx("div",{className:g,children:p})}function T2(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 P2={up:"ArrowUp",down:"ArrowDown",flat:"Minus"},R2={positive:"text-feedback-success-text",negative:"text-feedback-error-text",neutral:"text-text-secondary"};function Kp(e){return e>0?"up":e<0?"down":"flat"}function E2(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 Gx({value:e,row:t,context:r,direction:o,tone:n="neutral",format:a="number",decimals:i=0,currency:s="USD",showIcon:l=true,align:c="right",emphasis:d="normal",emptyText:u="\u2014",className:m}){let{isLoading:p}=r;if(p)return jsxRuntime.jsx(Y,{className:Tt(d)});let g=typeof e=="number"?e:Number(e);if(e==null||e===""||!Number.isFinite(g))return jsxRuntime.jsx("div",{className:we(c,"text-text-secondary"),children:u});let f=me(o,t)??Kp(g),y=me(n,t)??"neutral",b=Pr(g,E2(a,i,s))??u,h=g>0?"+":"",C=we(c,tailwindMerge.twMerge(d==="strong"||d==="high"?"font-semibold":void 0,m,R2[y]));return jsxRuntime.jsxs("div",{className:C,children:[l&&jsxRuntime.jsx(V,{name:P2[f],size:"xs","aria-hidden":true}),jsxRuntime.jsx("span",{children:`${h}${b}`})]})}function lc({manufacturer:e,model:t,deviceType:r,deviceTypeIconName:o,logoUrl:n,layout:a="stacked",size:i="md",href:s,LinkComponent:l,linkVariant:c="unstyled",showDeviceTypeIcon:d=true,showLogo:u=true,emphasis:m="normal",isLoading:p=false,className:g,piiEntity:f}){let[y,b]=Qe.useState(false),h=o||(r?D2(r):"DeviceMobile"),C={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],w=n&&!y&&u,T={strong:"font-semibold text-text-primary",high:"font-semibold text-text-primary",normal:"text-text-primary",low:"text-text-secondary"}[m],R=({children:P,className:E})=>s?l?jsxRuntime.jsx(l,{href:s,className:E,children:P}):jsxRuntime.jsx(ut,{href:s,variant:c,className:tailwindMerge.twMerge("hover:underline",E),asButton:false,children:P}):jsxRuntime.jsx("span",{className:E,children:P});if(p)return a==="inline"?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",C.gap,g),children:[jsxRuntime.jsx(Y,{width:C.skeletonIcon,height:C.skeletonIcon,className:"flex-shrink-0 rounded"}),jsxRuntime.jsx(Y,{width:C.skeletonText,height:C.skeletonIcon*.6})]}):jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",C.gap,g),children:[jsxRuntime.jsx(Y,{width:C.skeletonIcon,height:C.skeletonIcon,className:"flex-shrink-0"}),jsxRuntime.jsxs("div",{className:"flex flex-col gap-1",children:[jsxRuntime.jsx(Y,{width:C.skeletonText,height:16}),jsxRuntime.jsx(Y,{width:C.skeletonSecondary,height:12})]})]});if(a==="inline"){let P=`${e} ${t}`;return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",C.gap,g),children:[jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-shrink-0 flex items-center justify-center rounded border border-border-muted",C.logoSize),children:w?jsxRuntime.jsx("img",{src:n,alt:`${e} logo`,className:"w-full h-full object-contain",onError:()=>b(true)}):jsxRuntime.jsx(V,{name:h,size:C.iconSize*.6,className:"text-text-secondary"})}),jsxRuntime.jsx(R,{className:tailwindMerge.twMerge("truncate leading-normal hover:text-text-primary",T,C.textSize,s&&"hover:underline hover:decoration-1 hover:underline-offset-4"),children:jsxRuntime.jsx("span",{"data-pii-type":f?"device-name":void 0,"data-pii-entity":f,children:P})})]})}return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center justify-start",C.gap,g),children:[u&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-shrink-0 flex items-center justify-center rounded border border-border-muted",C.logoSize),children:w?jsxRuntime.jsx("img",{src:n,alt:`${e} logo`,className:"w-full h-full object-contain",onError:()=>b(true)}):jsxRuntime.jsx(V,{name:h,size:C.iconSize*.6,className:"text-text-secondary"})}),jsxRuntime.jsxs("div",{className:"flex flex-col items-start min-w-0",children:[jsxRuntime.jsx(R,{className:tailwindMerge.twMerge("truncate leading-normal hover:text-text-primary",T,C.textSize,s&&"hover:underline hover:decoration-1 hover:underline-offset-4"),children:jsxRuntime.jsx("span",{"data-pii-type":f?"device-name":void 0,"data-pii-entity":f,children:e})}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center gap-1.5 text-text-secondary leading-normal",C.secondaryTextSize),children:[d&&jsxRuntime.jsx(V,{name:h,size:C.iconInTextSize,className:"flex-shrink-0"}),jsxRuntime.jsx("span",{className:"truncate","data-pii-type":f?"device-name":void 0,"data-pii-entity":f,children:t})]})]})]})}function D2(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 Ux({row:e,context:t,manufacturer:r,model:o,deviceType:n,logoUrl:a,layout:i="stacked",size:s="sm",href:l,LinkComponent:c,linkVariant:d="secondary",showDeviceTypeIcon:u=true,showLogo:m=true,emphasis:p="normal",align:g="left",className:f,piiEntity:y}){let{isLoading:b}=t,h=me(r,e),x=me(o,e),C=me(n,e),w=me(a,e),S=me(l,e),T=me(y,e),R=we(g,f);return jsxRuntime.jsx("div",{className:R,children:jsxRuntime.jsx(lc,{manufacturer:h,model:x,deviceType:C,logoUrl:w,layout:i,size:s,href:S,LinkComponent:c,linkVariant:d,showDeviceTypeIcon:u,showLogo:m,emphasis:p,isLoading:b,piiEntity:T})})}var CX={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},A2=["charging","discharging","heat","cool","on","circulate","connected"],I2={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 Yp(e){return A2.includes(e)}function Jp(e){return I2[e]}function aa({state:e,label:t,icon:r,isLoading:o,size:n="sm",shape:a="pill",dot:i,dotPulse:s,fixedWidth:l,className:c,...d}){if(o)return jsxRuntime.jsx(Y,{className:"inline-flex h-6 w-20"});let u=t??Jp(e),m=Yp(e);return jsxRuntime.jsxs(ft,{variant:e,size:n,shape:a,dot:i??m,dotPulse:s??m,className:l?`w-28 justify-center ${c||""}`:c,...d,children:[r&&jsxRuntime.jsx(V,{name:r,size:n==="sm"?12:n==="md"?14:16}),u]})}var B2={importing:"Importing",exporting:"Exporting",idle:"Idle",unknown:"Unknown"};function Yx(e){return B2[e]}var V2={importing:"ArrowDown",exporting:"ArrowUp"};function dc({state:e,label:t,showIcon:r=false,isLoading:o,size:n="sm",shape:a="pill",fixedWidth:i,className:s,...l}){if(o)return jsxRuntime.jsx(Y,{className:"inline-flex h-6 w-24"});let c=t??Yx(e),d=V2[e],u=n==="sm"?12:n==="md"?14:16;return r&&d?jsxRuntime.jsx(ft,{variant:e,size:n,shape:a,className:`w-6 justify-center ${s||""}`,...l,children:jsxRuntime.jsx(V,{name:d,size:u})}):jsxRuntime.jsx(ft,{variant:e,size:n,shape:a,className:i?`w-28 justify-center ${s||""}`:s,...l,children:c})}function uc({state:e,stateLabel:t,metric:r,metricFormatter:o,secondaryState:n,layout:a="horizontal",isLoading:i,size:s="sm",shape:l="pill",icon:c,fixedWidth:d,secondaryStateIconOnly:u=false,className:m}){if(i)return jsxRuntime.jsx(Y,{className:tailwindMerge.twMerge("inline-flex h-6 w-32",m)});let p=r!=null&&o?Pr(r,o):null,g=a==="horizontal",f=o&&!p;return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("inline-flex items-center",g?"gap-2":"flex-col gap-1",m),children:[(p||f)&&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(aa,{state:e,label:t,icon:c,size:s,shape:l,fixedWidth:d}),n&&jsxRuntime.jsx(jsxRuntime.Fragment,{children:n==="importing"||n==="exporting"?jsxRuntime.jsx(dc,{state:n,size:s,shape:l,fixedWidth:d,showIcon:u}):jsxRuntime.jsx(aa,{state:n,size:s,shape:l,fixedWidth:d})})]})}function Jx({value:e,row:t,context:r,metric:o,metricFormatter:n,secondaryState:a,size:i="sm",shape:s="pill",label:l,icon:c,fixedWidth:d=true,align:u="left",compact:m=false,className:p}){let{isLoading:g}=r;if(g){let C={pill:"rounded-full",rounded:"rounded-lg",square:"rounded-sm"}[s],w=o!=null||n!=null;return jsxRuntime.jsx("div",{className:"flex items-center gap-2",children:w?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Y,{className:"h-4 w-12"}),jsxRuntime.jsx(Y,{className:`h-6 w-24 ${C}`}),jsxRuntime.jsx(Y,{className:`h-6 w-20 ${C}`})]}):jsxRuntime.jsx(Y,{className:`h-6 w-24 ${C}`})})}if(!e)return jsxRuntime.jsx("div",{className:we(u,p),children:jsxRuntime.jsx("span",{className:"text-text-secondary",children:"\u2014"})});let f=me(o,t),y=me(a,t),b=typeof l=="function"?l(e,t):l,h=we(u,p);return f!=null||n?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(h),children:jsxRuntime.jsx(uc,{state:e,stateLabel:b,metric:f,metricFormatter:n,secondaryState:y||void 0,size:i,shape:s,icon:c,fixedWidth:d,secondaryStateIconOnly:m,layout:"horizontal"})}):jsxRuntime.jsx("div",{className:h,children:jsxRuntime.jsx(aa,{state:e,label:b,icon:c,size:i,shape:s,fixedWidth:d})})}function jx({value:e,row:t,context:r,formatter:o,align:n="left",emphasis:a="normal",href:i,linkBehavior:s="hover",className:l,emptyText:c="\u2014",emptyClassName:d="text-text-secondary"}){let{isLoading:u}=r;if(u)return jsxRuntime.jsx(Y,{className:Tt(a)});let m=fo({value:e,formatter:o,emptyText:c,emptyClassName:d}),p=yr(a),g=we(n,tailwindMerge.twMerge(p,l)),f=jsxRuntime.jsx("div",{className:g,children:m}),y=me(i,t);return y?Po(f,y,t,s):f}var jp=Qe__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:l=20,minWidth:c=4,segments:d,segmentGap:u=2,barWidth:m,context:p})=>{let g=Qe.useMemo(()=>r===t?100:Math.max(0,Math.min(100,(e-t)/(r-t)*100)),[e,t,r]),f=Qe.useMemo(()=>o==="auto"&&a?a.type==="diverging"&&a.center!==void 0?Ei(e,t,r,a.center,a.scheme):Ri(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:l},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(g/100*d),C={height:l,...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:C,children:Array.from({length:d}).map((w,S)=>{let T=S<x;return jsxRuntime.jsx("div",{className:"rounded-sm",style:{width:h,backgroundColor:T?f:n==="none"?"transparent":n,marginRight:S<d-1?`${u}px`:0}},S)})}),i&&jsxRuntime.jsx("span",{className:"text-sm text-text-primary whitespace-nowrap",children:s?s(e):e.toLocaleString()})]})}let y={height:l,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:`${g}%`,minWidth:g>0?c:0,backgroundColor:f}})}),i&&jsxRuntime.jsx("span",{className:"text-sm text-text-primary whitespace-nowrap",children:s?s(e):e.toLocaleString()})]})});jp.displayName="HorizontalBarCell";function J2(e){return Math.max(1,String(Math.max(1,Math.trunc(e))).length)}function Zx({context:e,startAt:t=1,padTo:r,rowCount:o,align:n="right",className:a}){let{isLoading:i,rowIndex:s}=e;if(i)return jsxRuntime.jsx(Y,{className:Tt("normal")});if(typeof s!="number"||!Number.isFinite(s))return jsxRuntime.jsx("div",{className:we(n,"text-text-muted"),children:"\u2014"});let l=s+t,c=r??(o===void 0?void 0:J2(o+t-1)),d=c===void 0?String(l):String(l).padStart(c,"0");return jsxRuntime.jsx("div",{className:we(n,tailwindMerge.twMerge("font-mono text-text-muted tabular-nums",a)),children:jsxRuntime.jsx("span",{children:d})})}var qp=Qe__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||[],l=y=>"xValue"in y?y.xValue:y.x,c=y=>"yValue"in y?y.yValue:y.y,d=a||100,u=i,{xScale:m,yScale:p,barWidth:g}=Qe.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,T=>l(T)),b=d3Array.min(s,T=>c(T))??0,h=d3Array.max(s,T=>c(T))??0,x=b<0?b:0,C=scale.scaleTime({range:[0,d],domain:y}),w=scale.scaleLinear({range:[u,0],domain:[x,h*1.05]}),S=s.length>1?d/s.length*.8:8;return {xScale:C,yScale:w,barWidth:Math.max(2,S)}},[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 f=p(0);return jsxRuntime.jsx("svg",{width:d,height:u,children:s.map((y,b)=>{let h=c(y),x=m(l(y)),C=p(h),w=Math.abs(f-C),S=y.category&&o?.[y.category]?o[y.category]:r;return jsxRuntime.jsx(shape.Bar,{x:x-g/2,y:h>=0?C:f,width:g,height:w,fill:S,rx:1},`bar-${b}`)})})});qp.displayName="MiniBarCell";function ey({value:e,row:t,context:r,format:o="number",decimals:n=0,prefix:a,suffix:i,emptyText:s="\u2014",align:l="right",emphasis:c="normal",href:d,linkBehavior:u="hover",showPositiveSign:m=false,colorCode:p=false,className:g}){let{isLoading:f}=r;if(f)return jsxRuntime.jsx(Y,{className:Tt(c)});if(e==null||isNaN(Number(e)))return jsxRuntime.jsx("div",{className:we(l,"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}`,C=p?nc(y,true):yr(c),w=we(l,tailwindMerge.twMerge(C,g)),S=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})]}),T=me(d,t);return T?jsxRuntime.jsx("div",{className:w,children:Po(S,T,t,u)}):jsxRuntime.jsx("div",{className:w,children:S})}var oE={low:"var(--color-feedback-warning-text)",critical:"var(--color-feedback-error-text)"};function Zp(e,t){if(t){if(t.critical!==void 0&&e<=t.critical)return "critical";if(t.low!==void 0&&e<=t.low)return "low"}}var _p=Qe__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,thresholds:l,context:c})=>{let d=Qe.useMemo(()=>Math.max(0,Math.min(100,e)),[e]),u=Qe.useMemo(()=>Zp(d,l),[d,l]),m=Qe.useMemo(()=>u?oE[u]:r==="auto"&&s?s.type==="diverging"&&s.center!==void 0?Ei(e,0,100,s.center,s.scheme):Ri(e,0,100,s.scheme):r,[r,s,u,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 g=`calc((100% - ${i*(a-1)}px) / ${a})`,f=Math.ceil(d/100*a);return jsxRuntime.jsxs("div",{className:"flex items-center gap-2 w-full","data-threshold":u,children:[jsxRuntime.jsx("div",{className:"flex gap-0.5 flex-1",style:{height:n},children:Array.from({length:a}).map((y,b)=>{let h=b<f,x=m;if(!u&&r==="auto"&&s&&h){let C=(b+1)/a*100;s.type==="diverging"&&s.center!==void 0?x=Ei(C,0,100,s.center,s.scheme):x=Ri(C,0,100,s.scheme);}return jsxRuntime.jsx("div",{className:"rounded-sm",style:{width:g,backgroundColor:h?x:o==="none"?"transparent":o,marginRight:b<a-1?`${i}px`:0}},b)})}),t&&jsxRuntime.jsxs("span",{className:"text-sm text-text-primary whitespace-nowrap",children:[d.toFixed(0),"%"]})]})}return jsxRuntime.jsxs("div",{className:"flex items-center gap-2 w-full","data-threshold":u,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:`${d}%`,backgroundColor:m}})}),t&&jsxRuntime.jsxs("span",{className:"text-sm text-text-primary whitespace-nowrap",children:[d.toFixed(0),"%"]})]})});_p.displayName="PercentBarCell";var aE="\u2013",ty="\u200A";function ry(e){if(e==null||e==="")return;let t=typeof e=="number"?e:Number(e);return Number.isFinite(t)?t:void 0}function oy({row:e,context:t,min:r,max:o,decimals:n=0,unit:a,emptyText:i="\u2014",align:s="right",emphasis:l="normal",className:c}){let{isLoading:d}=t;if(d)return jsxRuntime.jsx(Y,{className:Tt(l)});let u=ry(me(r,e)),m=ry(me(o,e));if(u===void 0&&m===void 0)return jsxRuntime.jsx("div",{className:we(s,"text-text-secondary"),children:i});let p=y=>new Intl.NumberFormat("en-US",{minimumFractionDigits:n,maximumFractionDigits:n}).format(y),g=u!==void 0&&m!==void 0?`${p(u)}${ty}${aE}${ty}${p(m)}`:p(u!==void 0?u:m),f=we(s,tailwindMerge.twMerge("tabular-nums",yr(l),c));return jsxRuntime.jsxs("div",{className:f,children:[jsxRuntime.jsx("span",{children:g}),a&&jsxRuntime.jsx("span",{className:"text-text-secondary",children:a})]})}function bc({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:we(a),children:jsxRuntime.jsx(Y,{className:"h-4 w-4 rounded"})});let s=me(n,e),l=we(a);return jsxRuntime.jsx("div",{className:l,children:jsxRuntime.jsx(eo,{isSelected:r,onChange:c=>{o?.(e,c);},isDisabled:s,"aria-label":"Select row"})})}function hc({streetAddress:e,city:t,state:r,postalCode:o,layout:n="stacked",size:a="md",href:i,LinkComponent:s,linkVariant:l="unstyled",emphasis:c="normal",isLoading:d=false,showIcon:u=true,className:m,piiEntity:p}){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],b={strong:"font-semibold text-text-primary",high:"font-semibold text-text-primary",normal:"text-text-primary",low:"text-text-secondary"}[c],h=[];t&&h.push(t),r&&o?h.push(`${r} ${o}`):r?h.push(r):o&&h.push(o);let x=h.join(", "),C=({children:S,className:T})=>i?s?jsxRuntime.jsx(s,{href:i,className:T,children:S}):jsxRuntime.jsx(ut,{href:i,variant:l,className:tailwindMerge.twMerge("hover:underline",T),asButton:false,children:S}):jsxRuntime.jsx("span",{className:T,children:S});if(d)return n==="inline"?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",f.gap,m),children:[u&&jsxRuntime.jsx(Y,{width:f.skeletonIconInline,height:f.skeletonIconInline,className:"flex-shrink-0 rounded"}),jsxRuntime.jsx(Y,{width:f.skeletonText,height:f.skeletonIconInline*.8})]}):jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",f.gap,m),children:[u&&jsxRuntime.jsx(Y,{width:f.skeletonIconStacked,height:f.skeletonIconStacked,className:"flex-shrink-0 rounded"}),jsxRuntime.jsxs("div",{className:"flex flex-col gap-1",children:[jsxRuntime.jsx(Y,{width:f.skeletonText,height:16}),jsxRuntime.jsx(Y,{width:f.skeletonSecondary,height:12})]})]});if(n==="inline")return jsxRuntime.jsxs(C,{className:tailwindMerge.twMerge("flex items-center",f.gap,i&&"hover:bg-background-hover transition-colors",m),children:[u&&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",b,f.textSize,i&&"hover:underline hover:decoration-1 hover:underline-offset-4"),"data-pii-type":p?"address":void 0,"data-pii-entity":p,children:e})]});let w=()=>{if(p){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,m),children:[u&&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(C,{className:tailwindMerge.twMerge("leading-normal truncate hover:text-text-primary",b,f.textSize,i&&"hover:underline hover:decoration-1 hover:underline-offset-4"),children:jsxRuntime.jsx("span",{"data-pii-type":p?"address":void 0,"data-pii-entity":p,children:e})}),x&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-text-secondary leading-normal truncate",f.secondaryTextSize),"data-pii-type":w(),"data-pii-entity":p,children:x})]})]})}function ay({row:e,context:t,streetAddress:r,city:o,state:n,postalCode:a,layout:i="stacked",size:s="sm",href:l,LinkComponent:c,linkVariant:d="secondary",emphasis:u="normal",align:m="left",className:p,piiEntity:g}){let{isLoading:f}=t,y=me(r,e),b=me(o,e),h=me(n,e),x=me(a,e),C=me(l,e),w=me(g,e),S=we(m,p);return jsxRuntime.jsx("div",{className:S,children:jsxRuntime.jsx(hc,{streetAddress:y,city:b,state:h,postalCode:x,layout:i,size:s,href:C,LinkComponent:c,linkVariant:d,emphasis:u,isLoading:f,piiEntity:w})})}var $p=Qe__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:l=40})=>{let c=e||t||[],d=s||100,u=l,{xScale:m,yScale:p}=Qe.useMemo(()=>{if(c.length===0)return {xScale:scale.scaleTime({range:[0,d],domain:[new Date,new Date]}),yScale:scale.scaleLinear({range:[u,0],domain:[0,1]})};let f=d3Array.extent(c,x=>x.xValue),y=d3Array.min(c,x=>x.yValue)||0,b=d3Array.max(c,x=>x.yValue)||0,h=(b-y)*.1||1;return {xScale:scale.scaleTime({range:[0,d],domain:f}),yScale:scale.scaleLinear({range:[u,0],domain:[y-h,b+h]})}},[c,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(!c||c.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=a&&c[0]?.category&&a[c[0].category]?a[c[0].category]:o;return jsxRuntime.jsxs("svg",{width:d,height:u,className:"overflow-visible",children:[(r==="area"||r==="both")&&jsxRuntime.jsx(shape.AreaClosed,{data:c,x:f=>m(f.xValue),y:f=>p(f.yValue),yScale:p,fill:g,fillOpacity:.15,curve:curve.curveLinear}),(r==="line"||r==="both")&&jsxRuntime.jsx(shape.LinePath,{data:c,x:f=>m(f.xValue),y:f=>p(f.yValue),stroke:g,strokeWidth:n,strokeLinecap:"round",curve:curve.curveLinear})]})});$p.displayName="SparklineCell";function cy({value:e,row:t,context:r,prefix:o,suffix:n,emptyText:a="\u2014",href:i,linkBehavior:s="hover",linkVariant:l="secondary",emphasis:c="normal",truncate:d=true,copyable:u=false,align:m="left",className:p,piiType:g,piiEntity:f}){let{isLoading:y}=r;if(y)return jsxRuntime.jsx(Y,{className:Tt(c)});let b=oc(e,a),h=me(i,t),x=me(f,t),C=b,w=false,S=false;if(d&&b&&typeof b=="string")if(typeof d=="boolean")S=true;else {let{position:L="end",length:B=16,ellipsis:O="...",tooltip:H=true}=d;if(b.length>B){switch(L){case "start":C=Zs(b,B);break;case "middle":C=Fa(b,B);break;case "end":C=_s(b,B,O);break}w=H;}}let T=g&&x?{"data-pii-type":g,"data-pii-entity":x}:{},R=Object.keys(T).length>0,P=jsxRuntime.jsx("span",{className:S?"truncate":"",...T,children:C}),E=w?jsxRuntime.jsx(dr,{content:R?jsxRuntime.jsx("span",{...T,children:String(b)}):String(b),children:P}):P,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})]}),k=I;if(u&&b&&b!==a){let L=typeof u=="function"?u(t):String(b);k=jsxRuntime.jsx(ln,{value:L,size:"sm",children:I});}if(h){let L=we(m,p);return jsxRuntime.jsx("div",{className:L,children:Po(k,h,t,s,l,c)})}let D=we(m,tailwindMerge.twMerge(yr(c),p));return jsxRuntime.jsx("div",{className:D,children:k})}var xE={sm:"sm:hidden",md:"md:hidden",lg:"lg:hidden",xl:"xl:hidden"},yE={sm:"hidden sm:grid",md:"hidden md:grid",lg:"hidden lg:grid",xl:"hidden xl:grid"};function xc(e,t){return t.accessor?typeof t.accessor=="function"?t.accessor(e):e[t.accessor]:null}function yc(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 Cc({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"),l=a.filter(u=>u.mobileFormat==="badge"),c={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=xc(e,u);return jsxRuntime.jsx("div",{className:"font-medium text-text-primary [&>*]:!justify-start [&>*]:!text-left",children:yc(m,e,u,c)},u.id)})}),l.length>0&&jsxRuntime.jsx("div",{className:"ml-2 flex flex-wrap gap-1",children:l.map(u=>{let m=xc(e,u);return jsxRuntime.jsx("div",{className:"inline-flex",children:yc(m,e,u,c)},u.id)})})]}),s.length>0&&jsxRuntime.jsx("div",{className:"space-y-1",children:s.map(u=>{let m=xc(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:yc(m,e,u,c)})]},u.id)})})]})}function Sc({row:e,columns:t,density:r,isLoading:o,onClick:n}){let a=t.filter(l=>l.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((l,c)=>{let d=xc(e,l),u=c===0;return jsxRuntime.jsxs("div",{children:[!u&&jsxRuntime.jsx("div",{className:"text-xs text-text-secondary",children:l.label}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(u?"font-medium text-text-primary":"text-sm text-text-primary","[&>*]:!justify-start [&>*]:!text-left"),children:yc(d,e,l,i)})]},l.id)})})})}function dy(e="md"){return {mobile:xE[e],desktop:yE[e]}}function uy({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 DE={compact:"py-1.5 px-3 text-sm",default:"py-3 px-4 text-sm",relaxed:"py-4 px-4 text-base"},AE={left:"text-left justify-start",center:"text-center justify-center",right:"text-right justify-end"};function IE(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 FE({column:e,sortConfig:t,onSort:r,stickyHeader:o,stickyFirstColumn:n,isFirstColumn:a,density:i="default",isLoading:s=false,headerContent:l,sortNote:c}){let d=e.reorderable!==false,{attributes:u,listeners:m,setNodeRef:p,transform:g,transition:f,isDragging:y}=sortable.useSortable({id:e.id,disabled:!d||s}),{role:b,"aria-pressed":h,...x}=u,C=t?.columnId===e.id,w=C?t.direction:null,S=n&&a,T=C?c:void 0,R={...IE(e),transform:utilities.CSS.Transform.toString(g),transition:f,opacity:y?.8:1,zIndex:y?50:void 0};return jsxRuntime.jsx("div",{ref:p,className:tailwindMerge.twMerge("flex items-center border-b border-border-default bg-background-surface",e.sortable?"gap-2":"gap-1",DE[i],AE[e.align||"left"],o&&"sticky top-0 z-10",S&&"sticky left-0 z-20 shadow-[2px_0_4px_-2px_rgba(0,0,0,0.1)]",o&&S&&"z-30",e.sortable&&!s&&"hover:bg-background-hover",s&&"cursor-not-allowed opacity-60",C?"font-bold text-text-primary":"font-medium text-text-secondary",y&&"bg-background-hover"),style:R,...x,...m,role:"columnheader","aria-sort":C?w==="asc"?"ascending":"descending":"none","aria-disabled":s,title:T,"data-sort-note":T,children:s?jsxRuntime.jsx(Y,{className:"h-4 w-24"}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[l??jsxRuntime.jsx("span",{className:"flex-1 truncate cursor-pointer",onClick:()=>!s&&e.sortable&&r(e.id),children:e.label}),T&&jsxRuntime.jsx("span",{className:"sr-only",children:T}),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:C?jsxRuntime.jsx(V,{name:w==="asc"?"CaretUp":"CaretDown",size:14,weight:T?"regular":"bold",className:T?"text-text-secondary opacity-40":"text-text-primary"}):jsxRuntime.jsx(V,{name:"CaretUpDown",size:12,className:"text-text-secondary opacity-40"})})]})})}function my({columns:e,columnOrder:t,onColumnOrderChange:r,sortConfig:o,onSort:n,stickyHeader:a,stickyFirstColumn:i,density:s="default",isLoading:l=false,renderHeaderContent:c,sortNote:d}){let u=core.useSensors(core.useSensor(core.PointerSensor,{activationConstraint:{distance:5}}),core.useSensor(core.KeyboardSensor,{coordinateGetter:sortable.sortableKeyboardCoordinates})),m=new Map(e.map(f=>[f.id,f])),p=f=>{let{active:y,over:b}=f;if(b&&y.id!==b.id){let h=t.indexOf(y.id),x=t.indexOf(b.id);if(m.get(b.id)?.reorderable===false)return;let w=0;for(let P=0;P<t.length&&m.get(t[P])?.reorderable===false;P++)w=P+1;if(x<w)return;let S=Math.min(h,x),T=Math.max(h,x);for(let P=S;P<=T;P++){if(P===h)continue;if(m.get(t[P])?.reorderable===false)return}let R=sortable.arrayMove(t,h,x);r(R);}},g=t.map(f=>m.get(f)).filter(f=>f!==void 0);return jsxRuntime.jsx(core.DndContext,{sensors:u,collisionDetection:core.closestCenter,onDragEnd:p,children:jsxRuntime.jsx(sortable.SortableContext,{items:t,strategy:sortable.horizontalListSortingStrategy,children:jsxRuntime.jsx("div",{className:"contents",role:"rowgroup",children:g.map((f,y)=>jsxRuntime.jsx(FE,{column:f,sortConfig:o,onSort:n,stickyHeader:a,stickyFirstColumn:i,isFirstColumn:y===0,density:s,isLoading:l,headerContent:c?.(f),sortNote:d},f.id))})})})}var wc="__select",GE=new Set,tm={compact:"py-1.5 px-3 text-sm",default:"py-3 px-4 text-sm",relaxed:"py-4 px-4 text-base"},rm={left:"text-left justify-start",center:"text-center justify-center",right:"text-right justify-end"},WE={full:"w-full",auto:"w-auto inline-block",contained:"w-full max-w-6xl mx-auto"},UE={auto:"table-auto",fixed:"table-fixed",responsive:"table-auto"};function om(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 KE(e,t){return t.accessor?typeof t.accessor=="function"?t.accessor(e):e[t.accessor]:null}function YE({column:e,sortConfig:t,onSort:r,stickyHeader:o,stickyFirstColumn:n,isFirstColumn:a,density:i="default",isLoading:s=false,headerContent:l,sortNote:c}){let d=t?.columnId===e.id,u=d?t.direction:null,m=n&&a,p=d?c:void 0;return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex items-center border-b border-border-default bg-background-surface",e.sortable?"gap-2":"gap-1",tm[i],rm[e.align||"left"],o&&"sticky top-0 z-10",m&&"sticky left-0 z-20 shadow-[2px_0_4px_-2px_rgba(0,0,0,0.1)]",o&&m&&"z-30",e.sortable&&!s&&"cursor-pointer hover:bg-background-hover",s&&"cursor-not-allowed opacity-60",d?"font-bold text-text-primary":"font-medium text-text-secondary"),onClick:()=>!s&&e.sortable&&r(e.id),role:"columnheader","aria-sort":d?u==="asc"?"ascending":"descending":"none","aria-disabled":s,title:p,"data-sort-note":p,style:om(e),children:s?jsxRuntime.jsx(Y,{className:"h-4 w-24"}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[l??jsxRuntime.jsx("span",{className:"truncate",children:e.label}),p&&jsxRuntime.jsx("span",{className:"sr-only",children:p}),e.sortable&&jsxRuntime.jsx("div",{className:"flex flex-shrink-0",children:d?jsxRuntime.jsx(V,{name:u==="asc"?"CaretUp":"CaretDown",size:14,weight:p?"regular":"bold",className:p?"text-text-secondary opacity-40":"text-text-primary"}):jsxRuntime.jsx(V,{name:"CaretUpDown",size:12,className:"text-text-secondary opacity-40"})})]})})}function JE({column:e,row:t,rowIndex:r,columnIndex:o,isHovered:n,isSelected:a,density:i="default",className:s,stickyFirstColumn:l}){let c=l&&o===0,d=KE(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,g=typeof e.cellProps=="function"?e.cellProps(d,t):e.cellProps;m=jsxRuntime.jsx(p,{value:d,row:t,context:u,...g});}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,g,f="top",y=false,b="hover";typeof p=="string"?g=p:typeof p=="function"?g=p(d,t):(g=typeof p.content=="function"?p.content(d,t):p.content,f=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(vt,{placement:f,showArrow:y,children:jsxRuntime.jsx("div",{className:"p-2",children:g})})]});}return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex items-center border-b border-border-default bg-background-surface",e.noCellPadding?"":tm[i],rm[e.align||"left"],c&&"sticky left-0 z-10 shadow-[2px_0_4px_-2px_rgba(0,0,0,0.1)]",s),role:"cell",style:om(e),children:m})}function XE({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 l=e.cell,c=typeof e.cellProps=="function"?e.cellProps(null,{}):e.cellProps;s=jsxRuntime.jsx(l,{value:null,row:{},context:i,...c});}else e.render?s=e.render(null,{},i):s=jsxRuntime.jsx(Y,{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?"":tm[o],rm[e.align||"left"],a&&"sticky left-0 z-10 shadow-[2px_0_4px_-2px_rgba(0,0,0,0.1)]"),role:"cell",style:om(e),children:s})}function jE(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 fy({columns:e,row:t,rowIndex:r,density:o="default",onClick:n,stickyFirstColumn:a,isSelected:i}){let[s,l]=Qe.useState(false),c=Qe.useCallback(d=>{if(!n)return;let u=d.target,m=d.currentTarget;jE(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:c,onMouseEnter:()=>l(true),onMouseLeave:()=>l(false),children:e.map((d,u)=>jsxRuntime.jsx(JE,{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 gy({columns:e,rowIndex:t,density:r="default",stickyFirstColumn:o}){return jsxRuntime.jsx("div",{className:"contents",role:"row",children:e.map((n,a)=>jsxRuntime.jsx(XE,{column:n,rowIndex:t,columnIndex:a,density:r,stickyFirstColumn:o},n.id))})}function by({columns:e,data:t,className:r,density:o="default",width:n="full",height:a,maxHeight:i,layout:s="auto",mobileRenderer:l="auto",customMobileRowRender:c,mobileBreakpoint:d="md",isLoading:u=false,loadingState:m,loadingRowCount:p=5,onLoadMore:g,hasMore:f=false,enableVirtualization:y,estimatedRowHeight:b,loadingIndicator:h,stickyHeader:x=false,stickyFirstColumn:C=false,onRowClick:w,getRowId:S,selectedRowIds:T,onSelectionChange:R,selectionMode:P="multi",hideHeader:E=false,sortConfig:I,onSort:k,sortNote:D,"aria-label":L,enableColumnReorder:B=false,columnOrder:O,onColumnOrderChange:H}){let G=R!==void 0,Z=T??GE,z=Qe.useCallback((_,ue)=>{if(S)return S(_);let Q=_.id;return typeof Q=="string"&&Q.length>0?Q:typeof Q=="number"&&Number.isFinite(Q)?String(Q):`row-${ue}`},[S]),W=Qe.useMemo(()=>t.map((_,ue)=>z(_,ue)),[t,z]),q=Qe.useCallback((_,ue)=>{if(!R)return;if(P==="single"){R(ue?new Set([_]):new Set);return}let Q=new Set(Z);ue?Q.add(_):Q.delete(_),R(Q);},[R,Z,P]),F=W.filter(_=>Z.has(_)).length,X=W.length>0&&F===W.length,N=F>0&&!X,v=Qe.useCallback(_=>{if(!R)return;let ue=new Set(Z);for(let Q of W)_?ue.add(Q):ue.delete(Q);R(ue);},[R,W,Z]),M=Qe.useMemo(()=>G?[{id:wc,label:"",width:44,align:"center",sortable:false,reorderable:false,exportable:false,mobile:false,render:(ue,Q,Se)=>{let mo=z(Q,Se.rowIndex);return jsxRuntime.jsx(bc,{value:void 0,row:Q,context:Se,isSelected:Z.has(mo),onSelect:(Ea,Io)=>q(mo,Io)})}},...e]:e,[e,G,Z,z,q]),A=G&&P==="multi"?jsxRuntime.jsx(eo,{isSelected:X,isIndeterminate:N,onChange:_=>v(_),isDisabled:W.length===0,"aria-label":X?"Deselect all rows on this page":"Select all rows on this page"}):void 0,J=Qe.useCallback(_=>_.id===wc?A:void 0,[A]),[ae,le]=Qe.useState(null),$=I!==void 0,ie=$?I:ae,Ee=Qe.useRef(null),pe=Qe.useMemo(()=>M.map(_=>_.id),[M]),[ge,re]=Qe.useState(pe),se=O!==void 0,ve=se?O:ge;Qe.useEffect(()=>{se||re(_=>{let ue=M.map(Io=>Io.id),Q=new Set(ue),Se=new Set(_),mo=_.filter(Io=>Q.has(Io)),Ea=ue.filter(Io=>!Se.has(Io));return [...mo,...Ea]});},[M,se]);let je=Qe.useCallback(_=>{se||re(_),H?.(_);},[se,H]),Ze=Qe.useMemo(()=>{if(!B&&!O)return M;let _=new Map(M.map(Se=>[Se.id,Se])),ue=ve.map(Se=>_.get(Se)).filter(Se=>Se!==void 0),Q=_.get(wc);return Q&&!ue.some(Se=>Se.id===wc)?[Q,...ue]:ue},[M,ve,B,O]),wr=on({items:t,onLoadMore:g,hasMore:f,isLoading:u,loadingState:m,enableVirtualization:y,estimatedItemSize:b||(o==="compact"?40:o==="relaxed"?60:48),overscan:5}),Dt=g?wr:null,Nr=Dt?.scrollRef??Ee,{loadMoreRef:Tr,virtualizer:xt,virtualItems:Zt,isLoadingMore:ee,computedLoadingState:We}=Dt||{},{gridTemplateColumns:$e,totalMinWidth:ne}=Qe.useMemo(()=>{let _=0;return {gridTemplateColumns:Ze.map(Q=>{if(Q.minWidth?_+=typeof Q.minWidth=="number"?Q.minWidth:0:Q.width&&typeof Q.width=="number"&&(_+=Q.width),Q.width)return typeof Q.width=="number"?`${Q.width}px`:Q.width;if(Q.flex)return `${Q.flex}fr`;if(Q.minWidth&&Q.maxWidth){let Se=typeof Q.minWidth=="number"?`${Q.minWidth}px`:Q.minWidth,mo=typeof Q.maxWidth=="number"?`${Q.maxWidth}px`:Q.maxWidth;return `minmax(${Se}, ${mo})`}return Q.minWidth?`minmax(${typeof Q.minWidth=="number"?`${Q.minWidth}px`:Q.minWidth}, 1fr)`:Q.maxWidth?`minmax(0, ${typeof Q.maxWidth=="number"?`${Q.maxWidth}px`:Q.maxWidth})`:"1fr"}).join(" "),totalMinWidth:_}},[Ze]),Me=Qe.useCallback(_=>{if(!M.find(Se=>Se.id===_)?.sortable)return;let Q;ie?.columnId===_?Q={columnId:_,direction:ie.direction==="asc"?"desc":"asc"}:Q={columnId:_,direction:"asc"},$||le(Q),k?.(Q);},[M,ie,k,$]),Re=We==="loading"||u&&t.length===0,K={};a?(K.height=typeof a=="number"?`${a}px`:a,K.overflowY="auto"):i?(K.maxHeight=typeof i=="number"?`${i}px`:i,K.overflowY="auto"):g&&(K.height="600px",K.overflowY="auto");let U=tailwindMerge.twMerge(WE[n],!g&&(s==="responsive"?"overflow-x-auto scrollbar-visible":"overflow-auto scrollbar-visible"),r),de=dy(d),oe=l!=="none",xe=(_,ue)=>oe?l==="custom"&&c?c(_,ue):jsxRuntime.jsx(l==="cards"?Sc:Cc,{row:_,columns:Ze,density:o,isLoading:u,onClick:w?()=>w(_):void 0}):null,Oe=xt?Zt?.map(_=>({virtualItem:_,row:t[_.index],index:_.index}))||[]:t.map((_,ue)=>({row:_,index:ue,virtualItem:null}));return jsxRuntime.jsxs("div",{ref:Nr,className:U,style:{...K,position:xt?"relative":void 0},children:[jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("grid border-separate border-spacing-0",UE[s],n==="auto"?"inline-grid w-auto":"w-full",oe&&de.desktop),role:"table","aria-label":L,style:{gridTemplateColumns:$e,minWidth:ne>0?`${ne}px`:void 0},children:[!E&&(B?jsxRuntime.jsx(my,{columns:M,columnOrder:ve,onColumnOrderChange:je,sortConfig:ie,onSort:Me,stickyHeader:x,stickyFirstColumn:C,density:o,isLoading:Re,renderHeaderContent:J,sortNote:D}):jsxRuntime.jsx("div",{className:"contents",role:"rowgroup",children:Ze.map((_,ue)=>jsxRuntime.jsx(YE,{column:_,sortConfig:ie,onSort:Me,stickyHeader:x,stickyFirstColumn:C,isFirstColumn:ue===0,density:o,isLoading:Re,headerContent:J(_),sortNote:D},_.id))})),xt?jsxRuntime.jsx("div",{className:"col-span-full",style:{gridColumn:"1 / -1",height:`${xt.getTotalSize()}px`,position:"relative"},role:"rowgroup",children:Re?Array.from({length:p}).map((_,ue)=>jsxRuntime.jsx("div",{className:"contents",children:jsxRuntime.jsx(gy,{columns:Ze,rowIndex:ue,density:o,stickyFirstColumn:C})},`loading-${ue}`)):t.length>0?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[Oe.map(({row:_,index:ue,virtualItem:Q})=>{if(!_||!Q)return null;let Se=S?S(_):`row-${ue}`;return jsxRuntime.jsx("div",{style:{position:"absolute",top:0,left:0,width:"100%",display:"grid",gridTemplateColumns:$e,transform:`translateY(${Q.start}px)`},"data-index":Q.index,ref:xt.measureElement,children:jsxRuntime.jsx(fy,{columns:Ze,row:_,rowIndex:ue,density:o,onClick:w,stickyFirstColumn:C,isSelected:G?Z.has(z(_,ue)):void 0})},Se)}),ee&&jsxRuntime.jsx("div",{style:{position:"absolute",top:`${xt.getTotalSize()}px`,left:0,width:"100%"},children:h||jsxRuntime.jsx(Ur,{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:Re?Array.from({length:p}).map((_,ue)=>jsxRuntime.jsx(gy,{columns:Ze,rowIndex:ue,density:o,stickyFirstColumn:C},`loading-${ue}`)):t.length>0?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[Oe.map(({row:_,index:ue})=>{if(!_)return null;let Q=S?S(_):`row-${ue}`;return jsxRuntime.jsx(fy,{columns:Ze,row:_,rowIndex:ue,density:o,onClick:w,stickyFirstColumn:C,isSelected:G?Z.has(z(_,ue)):void 0},Q)}),ee&&jsxRuntime.jsx("div",{className:"col-span-full",style:{gridColumn:"1 / -1"},children:h||jsxRuntime.jsx(Ur,{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"})})})]}),oe&&jsxRuntime.jsx("div",{className:de.mobile,children:Re?Array.from({length:p}).map((_,ue)=>jsxRuntime.jsx(uy,{density:o},`mobile-loading-${ue}`)):t.length>0?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[Oe.map(({row:_,index:ue})=>{if(!_)return null;let Q=S?S(_):`mobile-row-${ue}`;return jsxRuntime.jsx("div",{className:"border-b border-border-default last:border-b-0",children:xe(_,ue)},Q)}),ee&&(h||jsxRuntime.jsx(Ur,{state:"loading-more"}))]}):jsxRuntime.jsx("div",{className:"py-12 text-center text-text-secondary",children:"No data available"})}),g&&f&&!Re&&(xt?jsxRuntime.jsx("div",{ref:Tr,style:{position:"absolute",top:`${xt.getTotalSize()}px`,left:0,width:"100%",height:1}}):jsxRuntime.jsx("div",{ref:Tr,className:"h-px w-full"}))]})}function xy({status:e,alertCount:t,showCount:r=false,isLoading:o,size:n="sm",shape:a="pill",...i}){if(o)return jsxRuntime.jsx(Y,{className:"inline-flex h-6 w-20"});let s={healthy:"success",warning:"warning",error:"error",unknown:"neutral"},l={healthy:"Healthy",warning:"Warning",error:"Error",unknown:"Unknown"},c=e==="warning"||e==="error",d=r&&t?`${l[e]} (${t})`:l[e];return jsxRuntime.jsx(ft,{variant:s[e],size:n,shape:a,dot:c,dotPulse:c,...i,children:d})}var QE={battery:"BatteryHigh",charger:"ChargingStation",thermostat:"ThermometerSimple",inverter:"Power",vehicle:"Car",water_heater:"DropHalfBottom",meter:"Gauge",gateway:"WifiHigh",other:"Cube",unknown:"Question"},ZE={battery:"Battery",charger:"Charger",thermostat:"Thermostat",inverter:"Inverter",vehicle:"Vehicle",water_heater:"Water Heater",meter:"Meter",gateway:"Gateway",other:"Other",unknown:"Unknown"};function vy({deviceType:e,iconName:t,size:r="md",showLabel:o=false,className:n}){let a=t||(e?QE[e]:"Question"),i=e?ZE[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 us({children:e,title:t,headerContent:r,titleAlign:o="left",hideCloseIcon:n=false,hasBackArrow:a=false,onBack:i,isOpen:s,slideInFrom:l="right",transparentOverlay:c=false,onClose:d,className:u,primaryAction:m,secondaryAction:p,tertiaryAction:g,footerContent:f,contentPadding:y=true,maxWidth:b="400px"}){if(!s)return null;let h=t||r,x=m||p||g||f;return jsxRuntime.jsx($r,{children:jsxRuntime.jsx(kr,{isOpen:s,onOpenChange:C=>!C&&d?.(),isDismissable:true,transparent:c,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",l==="right"?"right-0":"left-0",l==="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",l==="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(_t,{title:t,headerContent:r,titleAlign:o,hideCloseIcon:n,hasBackArrow:true,onBack:i,onClose:d}):jsxRuntime.jsx(_t,{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(tn,{primaryAction:m,secondaryAction:p,tertiaryAction:g,footerContent:f})]})})})})}us.displayName="Drawer";function Sy({status:e,programName:t,isLoading:r,size:o="sm",shape:n="pill",...a}){if(r)return jsxRuntime.jsx(Y,{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"},l=jsxRuntime.jsx(ft,{variant:i[e],size:o,shape:n,...a,children:s[e]});return t?jsxRuntime.jsx(dr,{content:t,children:l}):l}function Ny({value:e,onChange:t,onUrlChange:r,accept:o="image/*",maxSize:n,isDisabled:a=false,onUpload:i,className:s,showPreview:l=true,placeholder:c="Drop files here or click to browse"}){let[d,u]=Qe.useState(false),[m,p]=Qe.useState(false),[g,f]=Qe.useState(null),[y,b]=Qe.useState(e),h=Qe.useRef(null),x=async S=>{if(f(null),n&&S.size>n){f(`File size must be less than ${(n/1024/1024).toFixed(2)}MB`);return}if(l&&S.type.startsWith("image/")){let T=new FileReader;T.onloadend=()=>{b(T.result);},T.readAsDataURL(S);}if(i){p(true);try{let T=await i(S);b(T),r?.(T);}catch(T){f("Failed to upload file"),console.error("Upload error:",T);}finally{p(false);}}t?.(S,y);},C=async S=>{try{let T=S.items;if(T.length>0){let R=T[0];if(R.kind==="file"){let P=await R.getFile();P&&x(P);}}}catch(T){f("Failed to upload file"),console.error("Upload error:",T);}finally{u(false);}},w=()=>{b(void 0),f(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",g&&"border-feedback-error-border bg-feedback-error-background/50"),onDrop:C,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:[l&&(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(te,{variant:"icon",size:"sm",onPress:w,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:c}),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:S=>{let T=Array.from(S||[]);T.length>0&&x(T[0]);},children:jsxRuntime.jsx(te,{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..."})]})})]}),g&&jsxRuntime.jsx("p",{className:"mt-2 text-sm text-feedback-error-text",children:g})]})}function ky({version:e,isLatest:t,updateAvailable:r,isLoading:o,size:n="sm",shape:a="rounded",...i}){if(o)return jsxRuntime.jsx(Y,{className:"inline-flex h-6 w-16"});let s="neutral",l=e;return t?s="success":r&&(s="warning",l=`${e} (Update)`),jsxRuntime.jsx(ft,{variant:s,size:n,shape:a,...i,children:l})}function li(e){return jsxRuntime.jsx(reactAriaComponents.Form,{validationBehavior:"aria",...e,className:tailwindMerge.twMerge("flex flex-col gap-6",e.className)})}function Ry({placeholder:e="Search...",value:t,onChange:r,isOpen:o,onOpenChange:n,trigger:a,children:i,showShortcutHint:s=true,showInput:l=true,className:c}){let[d,u]=Qe.useState(false),m=nr("(max-width: 767px)"),p=o!==void 0?o:d,g=Qe.useCallback(h=>{n?n(h):u(h);},[n]);Qe.useEffect(()=>{let h=x=>{(x.metaKey||x.ctrlKey)&&x.key==="k"&&(x.preventDefault(),g(!p)),x.key==="Escape"&&p&&g(false);};return window.addEventListener("keydown",h),()=>window.removeEventListener("keydown",h)},[p,g]);let f=Qe.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||Qe.isValidElement(a)&&a.type===Qe.Fragment&&!a.props.children;return m?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[!b&&(a?jsxRuntime.jsx("button",{type:"button",onClick:()=>g(true),className:"appearance-none bg-transparent border-none p-0 cursor-pointer",children:a}):jsxRuntime.jsx("button",{type:"button",onClick:()=>g(true),className:"appearance-none bg-transparent border-none p-0 cursor-pointer",children:y})),jsxRuntime.jsx(Ct,{isOpen:p,onClose:()=>g(false),hideCloseIcon:false,contentPadding:false,maxHeight:"90vh",children:jsxRuntime.jsxs("div",{className:"flex flex-col h-full",children:[l&&jsxRuntime.jsx("div",{className:"p-4 border-b border-border-muted flex-shrink-0",children:jsxRuntime.jsx(qr,{value:t,onChange:f,placeholder:e,showSearchIcon:true,isClearable:!!t,onClear:()=>r?.(""),reserveErrorSpace:false,className:c,autoFocus:true})}),jsxRuntime.jsx("div",{className:"flex-1 min-h-0 overflow-hidden",children:i})]})})]}):b?null:jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{isOpen:p,onOpenChange:g,children:[a||y,jsxRuntime.jsx(vt,{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:[l&&jsxRuntime.jsx("div",{className:"p-4 border-b border-border-muted",children:jsxRuntime.jsx(qr,{value:t,onChange:f,placeholder:e,showSearchIcon:true,isClearable:!!t,onClear:()=>r?.(""),reserveErrorSpace:false,className:c,autoFocus:true})}),jsxRuntime.jsx("div",{className:"max-h-[500px] overflow-hidden",children:i})]})})]})}function Ly({placeholder:e="Search...",value:t,onChange:r,isOpen:o,onOpenChange:n,children:a,maxHeight:i="400px",variant:s="default",className:l}){let[c,d]=Qe.useState(false),u=nr("(max-width: 767px)"),m=Qe.useRef(null),p=Qe.useRef(null),g=o!==void 0?o:c,f=Qe.useCallback(E=>{n?n(E):d(E);},[n]);Qe.useEffect(()=>{let E=I=>{(I.metaKey||I.ctrlKey)&&I.key==="k"&&(I.preventDefault(),f(!g)),I.key==="Escape"&&g&&f(false);};return window.addEventListener("keydown",E),()=>window.removeEventListener("keydown",E)},[g,f]),Qe.useEffect(()=>{g&&!u&&m.current&&setTimeout(()=>{m.current?.querySelector("input")?.focus();},0);},[g,u]),Qe.useEffect(()=>{if(!g||u)return;let E=I=>{let k=I.target,D=m.current?.contains(k),L=p.current?.contains(k);!D&&!L&&f(false);};return document.addEventListener("mousedown",E,true),()=>document.removeEventListener("mousedown",E,true)},[g,u,f]);let y=E=>{r?.(E);},b=Qe.useCallback(()=>{f(false);},[f]),h=Qe.useCallback(()=>{r?.("");},[r]),[x,C]=Qe.useState(null);Qe.useEffect(()=>{if(g&&!u&&m.current){let E=null,I=()=>{let D=m.current?.getBoundingClientRect();D&&C({top:D.bottom+8,left:D.left,width:D.width});},k=()=>{E===null&&(E=requestAnimationFrame(()=>{I(),E=null;}));};return I(),window.addEventListener("resize",k),window.addEventListener("scroll",k,true),()=>{window.removeEventListener("resize",k),window.removeEventListener("scroll",k,true),E!==null&&cancelAnimationFrame(E);}}},[g,u]);let w=Qe.useCallback(()=>{f(true);},[f]);if(u)return jsxRuntime.jsxs("div",{className:l,children:[jsxRuntime.jsx("button",{type:"button",onClick:w,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(Ct,{isOpen:g,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(qr,{value:t,onChange:y,placeholder:e,showSearchIcon:true,isClearable:!!t,onClear:h,reserveErrorSpace:false,autoFocus:true})}),jsxRuntime.jsx(te,{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 S=E=>{let k=E.target.tagName==="INPUT";if(E.key==="ArrowDown"&&g&&k){E.preventDefault();let D=p.current?.querySelector("[data-search-result]");D&&D.focus();}},T=E=>{let I=E.target;if(!I.hasAttribute("data-search-result"))return;let D=Array.from(p.current?.querySelectorAll("[data-search-result]")||[]),L=D.indexOf(I);if(E.key==="ArrowDown"){E.preventDefault(),E.stopPropagation();let B=Math.min(L+1,D.length-1);D[B]?.focus();}else if(E.key==="ArrowUp")if(E.preventDefault(),E.stopPropagation(),L===0)m.current?.querySelector("input")?.focus();else {let B=Math.max(L-1,0);D[B]?.focus();}else E.key==="Escape"&&(E.preventDefault(),E.stopPropagation(),f(false),m.current?.querySelector("input")?.focus());},R=g&&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:T,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,P=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 ${l||""}`,onKeyDown:S,children:[jsxRuntime.jsx(qr,{value:t,onChange:y,placeholder:e,showSearchIcon:true,isClearable:!!t,onClear:()=>r?.(""),reserveErrorSpace:false,className:P,onFocus:()=>f(true)}),R]},"desktop")}function Dy({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 Iy({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(Y,{width:20,height:20,variant:"circle"}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0 space-y-2",children:[jsxRuntime.jsx(Y,{width:"60%",height:16}),jsxRuntime.jsx(Y,{width:"40%",height:12})]}),jsxRuntime.jsx(Y,{width:16,height:16})]},o))})}function By({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 Vy({id:e,title:t,subtitle:r,metadata:o,icon:n,customIcon:a,onSelect:i,isFocused:s=false,className:l,testId:c}){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 g=Array.from(document.querySelectorAll("[data-search-result]")),f=g.indexOf(p);f!==-1&&f<g.length-1&&g[f+1].focus();break}case "ArrowUp":{m.preventDefault();let g=Array.from(document.querySelectorAll("[data-search-result]")),f=g.indexOf(p);if(f>0)g[f-1].focus();else {let y=document.querySelector('input[type="text"][placeholder*="Search"]');y&&y.focus();}break}case "Escape":{m.preventDefault();let g=document.querySelector('input[type="text"][placeholder*="Search"]');g&&g.focus();break}}},"data-testid":c,"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",l),"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 Oy({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 Hy({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:`
32
32
  flex items-center gap-3 w-full px-4 py-2.5 rounded-lg
33
33
  transition-all duration-200 cursor-text
34
34
  ${{default:`
@@ -40,12 +40,12 @@
40
40
  backdrop-blur-sm
41
41
  `}[o]}
42
42
  ${n}
43
- `,"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 SM={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"},wM={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"}},NM={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"},TM={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"},kM={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"},PM={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},RM={start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},EM={row:"grid-flow-row",col:"grid-flow-col",dense:"grid-flow-dense","row-dense":"grid-flow-row-dense","col-dense":"grid-flow-col-dense"},MM={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"},LM={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 Gy(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 im({cols:e=1,gap:t="md",gapX:r,gapY:o,align:n="stretch",justify:a="start",flow:i="row",autoFit:s,autoFill:l,className:c,children:d}){let u=tailwindMerge.twMerge("grid",s||l?"":Gy(e,SM,wM),!r&&!o&&NM[t],r&&TM[r],o&&kM[o],PM[n],RM[a],EM[i],c),m={};return s?m.gridTemplateColumns=`repeat(auto-fit, minmax(${s}, 1fr))`:l&&(m.gridTemplateColumns=`repeat(auto-fill, minmax(${l}, 1fr))`),jsxRuntime.jsx("div",{className:u,style:m,children:d})}function DM({span:e,className:t,children:r}){let o=tailwindMerge.twMerge(Gy(e,MM,LM),t);return jsxRuntime.jsx("div",{className:o,children:r})}im.Item=DM;function AM(e,t){return Qe__namespace.default.isValidElement(e)?e:fo({value:e,formatter:t,emptyClassName:"text-text-secondary",emptyText:"\u2014"})}function IM(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 FM={neutral:"text-text-primary",success:"text-feedback-success",warning:"text-feedback-warning",error:"text-feedback-error",info:"text-feedback-info"},BM=24,VM=20;function OM({item:e,dense:t,valueAlign:r}){let o=IM(e),n=o?FM[o]:"",a=e.stackOnMobile,i=typeof e.value=="string"&&e.value.length>BM&&!e.formatter&&!Qe__namespace.default.isValidElement(e.value),s=AM(e.value,e.formatter),l=i?Fa(e.value,VM):null,c=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(dr,{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:l})}),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(ln,{value:c,size:"sm",children:jsxRuntime.jsx("span",{className:"sr-only",children:"Copy"})}):null,g=e.copyable&&(e.copyIconPosition==="left"||!e.copyIconPosition),f=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]}),f&&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"})]}),g&&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":g?"items-center":"items-start",a?g?"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":g?"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 Lc({items:e,layout:t="one-column",dense:r=false,valueAlign:o="end",showDividers:n=false,skeleton:a=false,empty:i=false,error:s,className:l}){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",l),children:Array.from({length:e.length||4}).map((c,d)=>jsxRuntime.jsxs("div",{className:"grid grid-cols-[1fr_auto] items-start gap-x-4",children:[jsxRuntime.jsx(Y,{className:"h-4 w-24"}),jsxRuntime.jsx(Y,{className:"h-5 w-16"})]},d))}):s?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-sm text-feedback-error",l),children:s}):i||!e.length?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-sm text-text-secondary",l),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",l),children:e.map((c,d)=>jsxRuntime.jsxs(Qe__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(OM,{item:c,dense:r,valueAlign:o})]},c.id))})}function Ky({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(Lc,{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 bt={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 lm=Qe__namespace.createContext(null);function Yy(){let e=Qe__namespace.useContext(lm);if(!e)throw new Error("Hierarchy components must be used within HierarchyExplorer");return e}function Xy({node:e,renderNode:t}){let{selectedId:r,selectNode:o,navigateToNode:n,variant:a,size:i,showBullets:s,rootNodeId:l,stickyRootNode:c,navigationStack:d,setRootNodeSticky:u,useSplitLayout:m}=Yy(),p=Qe__namespace.useRef(null),g=Qe__namespace.useRef(null),f=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,C=l!==void 0&&e.id!==void 0&&l===e.id&&d.length===0;Qe__namespace.useLayoutEffect(()=>{C&&c&&p.current&&g.current===null&&requestAnimationFrame(()=>{p.current&&(g.current=p.current.offsetTop);});},[C,c]),Qe__namespace.useEffect(()=>{if(!C||!c||!p.current)return;let I=p.current.parentElement;for(;I;){let D=window.getComputedStyle(I).overflowY;if(D==="auto"||D==="scroll")break;I=I.parentElement;}if(!I)return;let k=()=>{if(!p.current||g.current===null)return;let D=I.getBoundingClientRect(),L=I.scrollTop,B=D.height,O=p.current.offsetHeight,G=g.current-L,Z=G+O,z=G<0,W=Z>B;z?u("top",e):W?u("bottom",e):u(null,null);};return I.addEventListener("scroll",k),k(),()=>{I.removeEventListener("scroll",k);}},[C,c,e,u]);let w=()=>{y||(m?o(e):x?n(e):o(e));},S=I=>{y||(I.key==="Enter"||I.key===" ")&&(I.preventDefault(),w());},T={isSelected:f,isDisabled:y,hasChildren:b,hasMetadata:h,level:0},R=tailwindMerge.twMerge("relative cursor-pointer group",y&&"opacity-50 cursor-not-allowed"),P=tailwindMerge.twMerge("absolute inset-0 transition-colors",C&&!f&&!y&&"group-hover:bg-background-hover",C&&f&&!y&&a==="subtle"&&"bg-background-selected group-hover:bg-background-hover",C&&f&&y&&a==="subtle"&&"bg-background-selected",C&&f&&!y&&a==="solid"&&"bg-action-brand group-hover:bg-action-brand-hover",C&&f&&y&&a==="solid"&&"bg-action-brand",!C&&a==="subtle"&&!f&&!y&&"group-hover:bg-background-hover",!C&&a==="subtle"&&f&&!y&&"bg-background-selected group-hover:bg-background-hover",!C&&a==="subtle"&&f&&y&&"bg-background-selected",!C&&a==="solid"&&!f&&!y&&"group-hover:bg-background-hover",!C&&a==="solid"&&f&&!y&&"bg-action-brand group-hover:bg-action-brand-hover",!C&&a==="solid"&&f&&y&&"bg-action-brand"),E=tailwindMerge.twMerge("relative flex items-center gap-2 text-text-primary hover:text-text-primary transition-colors",bt[i].node,C&&!f&&"font-semibold",a==="subtle"&&f&&"text-text-link-default",a==="solid"&&f&&"text-[color:var(--color-action-brand-text)]");return jsxRuntime.jsxs("div",{ref:p,className:R,onClick:w,onKeyDown:S,role:"treeitem","aria-selected":f,"aria-disabled":y,tabIndex:0,"data-node-id":e.id,children:[jsxRuntime.jsx("div",{className:P}),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",C&&"bg-action-brand border-action-brand",!C&&"bg-background-muted border border-border-default"),style:{width:bt[i].bullet,height:bt[i].bullet},children:e.icon&&jsxRuntime.jsx(V,{name:e.icon,size:bt[i].icon,weight:C?"fill":"regular",className:C?"text-[color:var(--color-action-brand-text)]":"text-text-primary"})}),jsxRuntime.jsx("div",{className:"flex-1 min-w-0",children:t?t(e,T):jsxRuntime.jsx("span",{className:"truncate",children:e.name})}),x&&!m&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:jsxRuntime.jsx(V,{name:"CaretRight",size:bt[i].icon,className:"text-text-secondary"})})]})]})}function qy({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:`${bt[n].spacing.x+bt[n].bullet/2}px`,top:`${bt[n].spacing.y+bt[n].bullet/2}px`,bottom:`${bt[n].spacing.y+bt[n].bullet/2}px`},"aria-hidden":"true"}),e.map(i=>jsxRuntime.jsx(Xy,{node:i,renderNode:a},i.id))]})}function gs({children:e,mode:t="sync",presenceKey:r}){let o=r!==void 0&&Qe__namespace.default.isValidElement(e)?Qe__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 _y(){let[e,t]=Qe.useState(()=>typeof window>"u"?false:window.matchMedia("(prefers-reduced-motion: reduce)").matches);return Qe.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 YM={instant:0,fast:150,normal:250,slow:350,slower:500},cm={xs:"4px",sm:"8px",md:"16px"};function JM(e){return e?typeof e=="string"&&e in cm?cm[e]:typeof e=="number"?`${e}px`:e:cm.sm}function bs({children:e,direction:t,distance:r="sm",duration:o="normal",delay:n=0,className:a}){let i=_y(),s=typeof o=="number"?o:YM[o],l=JM(r),c=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,...c(l)},u={opacity:1,x:0,y:0},m=i?{opacity:0}:{opacity:0,...c(l)};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",bt[r].node),children:[jsxRuntime.jsx(V,{name:"CaretLeft",size:bt[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",bt[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:bt[n].bullet,height:bt[n].bullet},children:e.icon&&jsxRuntime.jsx(V,{name:e.icon,size:bt[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 ev({currentItems:e,currentParent:t,navigationStack:r,selectedId:o,variant:n,size:a,showBullets:i,slideDirection:s,viewKey:l,hasHeight:c,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(Ic,{navigationStack:r,onNavigateBack:p,size:a}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("relative",c&&"overflow-auto h-full"),children:jsxRuntime.jsx(gs,{mode:"wait",presenceKey:l,children:r.length===0?u(e,true):jsxRuntime.jsx(bs,{direction:s,distance:"100%",duration:"normal",children:m(t)})})})]})}function um(e,t){for(let r of e){if(r.id===t)return r;if(r.children&&r.children.length>0){let o=um(r.children,t);if(o)return o}}return null}function Bc(e){if(e!==void 0)return typeof e=="number"?`${e}px`:e}function tv(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],l=`${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 ${l} is missing an "id" field. Node name: "${s.name||"(unnamed)"}"`),s.children&&o(s.children,`${l}.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 ov({data:e,currentItems:t,navigationStack:r,selectedId:o,variant:n,size:a,showBullets:i,rootNodeStickyState:s,renderNodeList:l,renderDetailContent:c,renderEmptyState:d,onNavigateBack:u}){let m=o?um(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(Ic,{navigationStack:r,onNavigateBack:u,size:a}),jsxRuntime.jsx("div",{className:"flex-1 overflow-auto",children:l(t,r.length===0)})]}),jsxRuntime.jsx("div",{className:"flex-1 min-w-0 overflow-auto bg-background-body",children:jsxRuntime.jsx(gs,{mode:"wait",presenceKey:m?.id||"empty",children:m?jsxRuntime.jsx(bs,{direction:"left",duration:"fast",children:c(m)}):d?d():jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-text-secondary text-center",bt[a].node,"py-8"),children:"Select an item to view details"})})})]})}function nv({data:e,renderNode:t,onNodeSelect:r,onNavigate:o,selectedId:n,rootNodeId:a,stickyRootNode:i=true,height:s,minHeight:l,maxHeight:c,variant:d="subtle",size:u="md",showBullets:m=true,layout:p="auto",splitBreakpoint:g=768,renderEmptyState:f,renderDetailView:y,className:b,"aria-label":h="Hierarchy explorer"}){let[x,C]=Qe__namespace.useState(null),[w,S]=Qe__namespace.useState([]),[T,R]=Qe__namespace.useState("left"),[P,E]=Qe__namespace.useState({position:null,node:null}),{ref:I,width:k}=Ja(),D=Qe__namespace.useMemo(()=>p==="split"?true:p==="single"?false:k>=g,[p,k,g]),L=n!==void 0?n:x;Qe__namespace.useEffect(()=>{tv(e,a);},[e,a]);let B=w.length>0?w[w.length-1]:null,O=B?B.children||[]:e,H=Qe__namespace.useCallback(A=>{R("left"),S(J=>[...J,A]),o?.(A,[...w,A]);},[w,o]),G=Qe__namespace.useCallback(()=>{R("right"),S(A=>{let J=A.slice(0,-1);return o?.(J.length>0?J[J.length-1]:null,J),J});},[o]),Z=Qe__namespace.useCallback(A=>{n===void 0&&C(A.id),r?.(A,[...w,A]);},[n,w,r]),z=Qe__namespace.useCallback((A,J)=>{E({position:A,node:J});},[]),W=Qe__namespace.useMemo(()=>({selectedId:L,selectNode:Z,navigateToNode:H,navigateBack:G,rootNodeId:a,stickyRootNode:i,variant:d,size:u,showBullets:m,onNodeSelect:r,onNavigate:o,navigationStack:w,setRootNodeSticky:z,useSplitLayout:D}),[L,Z,H,G,a,i,d,u,m,r,o,w,z,D]),q=Qe__namespace.useRef(null);Qe__namespace.useEffect(()=>{if(!a||!q.current||w.length>0||D)return;let A=q.current,J=setTimeout(()=>{let ae=A.querySelector(`[data-node-id="${a}"]`);ae&&ae.scrollIntoView({behavior:"auto",block:"center",inline:"nearest"});},100);return ()=>clearTimeout(J)},[a,w.length,D]);let F={height:Bc(s),minHeight:Bc(l),maxHeight:Bc(c)},X=s!==void 0||c!==void 0,N=B?B.id:"root",v=Qe__namespace.useCallback((A,J=false)=>jsxRuntime.jsx(qy,{items:A,showConnector:J,scrollContainerRef:J?q:null,showBullets:m,size:u,renderNode:t}),[m,u,t]),M=Qe__namespace.useCallback(A=>A?y?y(A,v):jsxRuntime.jsx(Ky,{node:A,renderNodeList:v}):null,[y,v]);return jsxRuntime.jsx(lm.Provider,{value:W,children:jsxRuntime.jsx("div",{ref:I,className:tailwindMerge.twMerge("select-none bg-background-surface rounded-lg border border-border-default relative",X&&"overflow-hidden",!X&&"h-full flex flex-col",D&&!X&&"flex-row",D&&X&&"flex",b),style:F,role:"tree","aria-label":h,children:D?jsxRuntime.jsx(ov,{data:e,currentItems:O,navigationStack:w,selectedId:L,variant:d,size:u,showBullets:m,rootNodeStickyState:P,renderNodeList:v,renderDetailContent:M,renderEmptyState:f,onNavigateBack:G}):jsxRuntime.jsx(ev,{currentItems:O,currentParent:B,navigationStack:w,selectedId:L,variant:d,size:u,showBullets:m,slideDirection:T,viewKey:N,hasHeight:X,rootNodeStickyState:P,renderNodeList:v,renderDetailContent:M,onNavigateBack:G})})})}function sL({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 av=({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}),iv=({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)=>sL({...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]});iv.displayName="HoverCardContent";var lL=Object.assign(av,{Root:av,Content:iv});var uL={md:{fontFamily:"var(--font-family-brand)",fontSize:24,lineHeight:1,letterSpacing:"-0.02em"},lg:{fontFamily:"var(--font-family-brand)",fontSize:34,lineHeight:1.1}},pL={md:{fontSize:12},lg:{fontSize:16}},mL={fontSize:11};function fL(e,t){return fo({value:e,formatter:t,emptyClassName:"text-text-secondary",emptyText:"\u2014"})}function gL(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 bL({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),c=Math.max(...i)-s,d=p=>c===0?20/2:18-(p-s)/c*16,u=60/Math.max(e.length-1,1),m=e.map((p,g)=>{let f=2+g*u,y=d(typeof p.y=="number"?p.y:0);return `${g===0?"M":"L"} ${f} ${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 sv=100,ba=30,lv=1.5,cv=4,hL=12;function xL(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 yL(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,l=n[1]+(a[1]-o[1])/6,c=a[0]-(i[0]-n[0])/6,d=a[1]-(i[1]-n[1])/6;t+=` C ${s} ${l} ${c} ${d} ${a[0]} ${a[1]}`;}return t}function vL({points:e,gradientId:t,tone:r,className:o}){if(!e||e.length<2)return null;let n=xL(e,hL),a=n.map(y=>typeof y.y=="number"?y.y:0),i=Math.min(...a),l=Math.max(...a)-i,c=y=>l===0?ba/2:ba-cv-(y-i)/l*(ba-2*cv),d=(sv-2*lv)/Math.max(n.length-1,1),u=n.map((y,b)=>[lv+b*d,c(typeof y.y=="number"?y.y:0)]),m=yL(u),p=u[u.length-1],g=u[0],f=`${m} L ${p[0]} ${ba} L ${g[0]} ${ba} Z`;return jsxRuntime.jsxs("svg",{width:"100%",height:ba,viewBox:`0 0 ${sv} ${ba}`,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:f,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 dv({label:e,value:t,formatter:r,delta:o,deltaPeriodLabel:n,deltaIntent:a="upIsGood",trend:i,status:s,helpText:l,size:c="md",orientation:d="vertical",isLoading:u,empty:m,error:p,onClick:g,className:f,labelClassName:y,renderValue:b,renderDelta:h,renderTrend:x,unit:C,sub:w,dashed:S,sparkVariant:T="line",sparkTone:R,tileValueSize:P}){let E=Qe.useId(),k={sm:{label:kt("labelSm"),value:kt("displaySm"),delta:kt("labelSm"),gap:"gap-1"},md:{label:kt("labelMd"),value:kt("displayMd"),delta:kt("bodySm"),gap:"gap-2"},lg:{label:kt("labelLg"),value:kt("displayLg"),delta:kt("bodyMd"),gap:"gap-3"}}[c],D=G=>P?jsxRuntime.jsxs("span",{style:uL[P],className:S?"opacity-45":void 0,children:[G,C?jsxRuntime.jsxs("span",{className:"text-text-secondary",style:pL[P],children:[" ",C]}):null]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[G,C?jsxRuntime.jsxs("span",{className:"text-text-secondary",children:[" ",C]}):null]}),L=u?jsxRuntime.jsx(Y,{className:"h-7 w-20"}):m?jsxRuntime.jsx("span",{className:"text-text-secondary",children:"\u2014"}):p?jsxRuntime.jsx("span",{className:kt("bodySm","text-feedback-error"),children:typeof p=="string"?p:"Error"}):S?D("\u2014"):b?b(t):D(P?t:fL(t,r)),B=h?h(o):o!==void 0&&!u&&!m&&!p&&!S?jsxRuntime.jsxs("div",{className:ir(k.delta,gL(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(Y,{className:"h-4 w-24"}):null,O=x?x(i):i&&i.length>0&&!u&&!p&&!S?T==="area"?jsxRuntime.jsx(vL,{points:i,gradientId:E,tone:R,className:m?"opacity-30":""}):jsxRuntime.jsx(bL,{points:i,ariaLabel:`${e} trend`,className:m?"opacity-30":""}):u&&i!==void 0?jsxRuntime.jsx(Y,{className:"h-5 w-16"}):null,H=w&&!u&&!p?jsxRuntime.jsx("div",{className:"text-text-secondary",style:mL,children:w}):null;return jsxRuntime.jsxs("section",{className:tailwindMerge.twMerge("flex min-w-0",d==="horizontal"?`items-center ${k.gap}`:`flex-col ${k.gap}`,g&&"cursor-pointer hover:bg-background-muted rounded-lg px-3 py-2 -mx-3 -my-2 transition-colors",f),"aria-labelledby":`kpi-${e}`,onClick:g,children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("h3",{id:`kpi-${e}`,className:tailwindMerge.twMerge(ir(k.label,"text-text-secondary truncate"),y),children:u?jsxRuntime.jsx(Y,{className:"h-4 w-24"}):e}),l&&!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:ir(P?void 0:k.value,p?"text-feedback-error":"text-text-primary"),"aria-label":`Value: ${t}`,children:L}),s&&!u&&!p&&jsxRuntime.jsx(ft,{variant:s.tone||"neutral",size:"sm",children:s.value})]}),H,(B||O)&&jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[B,O]})]})}var uv={xs:"gap-2",sm:"gap-3",md:"gap-4",lg:"gap-6",xl:"gap-8"},pv={start:"items-start",center:"items-center",stretch:"items-stretch"};function mv(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 fm({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:l="140px",className:c}){let d=i?Qe__namespace.default.Children.map(e,p=>Qe__namespace.default.isValidElement(p)&&p.type&&typeof p.type!="string"&&"displayName"in p.type?Qe__namespace.default.cloneElement(p,{isLoading:true}):p):e,u=s?Qe__namespace.default.Children.map(d,p=>jsxRuntime.jsx("div",{className:"shrink-0",style:{minWidth:l},children:p})):d,m=s?tailwindMerge.twMerge("flex overflow-x-auto pb-2 -mb-2",uv[r],"sm:grid sm:overflow-visible sm:pb-0 sm:-mb-0",mv({...typeof t=="object"?t:{base:t},base:void 0}),pv[o],n&&"sm:auto-rows-fr"):tailwindMerge.twMerge("grid",mv(t),uv[r],pv[o],n&&"auto-rows-fr","w-full");return jsxRuntime.jsxs("section",{className:tailwindMerge.twMerge("w-full",c),"aria-label":"Key metrics",children:[a&&jsxRuntime.jsx("div",{className:"mb-4",children:a}),jsxRuntime.jsx("div",{className:m,children:s?u:d})]})}fm.displayName="KpiGroup";function bv({items:e,renderItem:t,selectedId:r,onSelect:o,onHoverChange:n,isLoading:a=false,loadingState:i,error:s=null,renderLoadingSkeleton:l,loadingSkeletonCount:c=5,emptyMessage:d="No results found.",variant:u="relaxed",showDividers:m=true,onLoadMore:p,hasMore:g=false,enableVirtualization:f,estimatedItemSize:y=60,loadingIndicator:b,"aria-label":h,className:x="",style:C}){let[w,S]=Qe.useState(null),T=Qe.useRef(null),R=Qe.useRef(new Map),{scrollRef:P,loadMoreRef:E,virtualizer:I,virtualItems:k,isLoadingMore:D,computedLoadingState:L}=on({items:e,onLoadMore:p,hasMore:g,isLoading:a,loadingState:i,enableVirtualization:f,estimatedItemSize:y,overscan:5}),B=P??T,O=Qe.useCallback((v,M)=>{o?.(v,M);},[o]),H=Qe.useCallback((v,M)=>{S(v),n?.(v,M);},[n]),G=Qe.useCallback((v,M)=>{let A=v?.id;return typeof A=="string"&&A?A:`item-${M}`},[]),Z=Qe.useCallback(v=>{if(!B.current||e.length===0)return;let M=document.activeElement,A=e.findIndex(($,ie)=>{let Ee=G($,ie),pe=R.current.get(Ee);return pe&&(pe===M||pe.contains(M))}),J=A;switch(v.key){case "ArrowDown":v.preventDefault(),J=A===-1?0:Math.min(A+1,e.length-1);break;case "ArrowUp":v.preventDefault(),J=A===-1?0:Math.max(A-1,0);break;case "Home":v.preventDefault(),J=0;break;case "End":v.preventDefault(),J=e.length-1;break;default:return}let ae=G(e[J],J);R.current.get(ae)?.focus();},[e,G,B]),z=["flex flex-col","bg-background-surface","focus:outline-none focus:ring-2 focus:ring-border-focus focus:ring-offset-2"],W={dense:"gap-0",relaxed:"gap-0"},q=m?"divide-y divide-border-muted":"",F=[...z,W[u],q,x].filter(Boolean).join(" ");if(L==="loading"||a&&e.length===0){let v=l?jsxRuntime.jsx(jsxRuntime.Fragment,{children:Array.from({length:c}).map((M,A)=>jsxRuntime.jsx("div",{children:l()},`skeleton-${A}`))}):jsxRuntime.jsx(fg,{count:c,className:"space-y-0",children:jsxRuntime.jsxs("div",{className:"flex items-center gap-3 px-4 py-3",children:[jsxRuntime.jsx(Y,{width:16,height:16,variant:"circle"}),jsxRuntime.jsxs("div",{className:"flex-1 space-y-2",children:[jsxRuntime.jsx(Y,{width:"75%",height:16}),jsxRuntime.jsx(Y,{width:"50%",height:14})]}),jsxRuntime.jsx(Y,{width:60,height:20})]})});return jsxRuntime.jsx("div",{ref:B,className:F,style:C,role:"listbox","aria-label":h,"aria-busy":"true","aria-live":"polite",children:v})}if(s)return jsxRuntime.jsx("div",{ref:B,className:F,style:C,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:B,className:F,style:C,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?k?.map(v=>({virtualItem:v,item:e[v.index],index:v.index}))||[]:e.map((v,M)=>({item:v,index:M,virtualItem:null}));return jsxRuntime.jsxs("div",{ref:B,className:F,style:{...C,...p&&{overflow:"auto",height:C?.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:v,item:M,index:A})=>{if(!v)return null;let J=G(M,A),ae=r===J,le=w===J,$={id:J,role:"option","aria-selected":ae,"aria-current":ae?"page":void 0,tabIndex:ae||r==null&&A===0?0:-1,onClick:ie=>O(ie,M),onMouseEnter:ie=>H(ie,M),onMouseLeave:ie=>H(null),onFocus:ie=>H(ie,M),onBlur:ie=>H(null),ref:ie=>{ie?R.current.set(J,ie):R.current.delete(J);}};return jsxRuntime.jsx("div",{"data-index":v.index,ref:I.measureElement,style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${v.start}px)`},children:t({item:M,index:A,isSelected:ae,isHovered:le,rowProps:$})},J)}),p&&g&&jsxRuntime.jsx("div",{ref:E,style:{position:"absolute",top:`${I.getTotalSize()}px`,left:0,width:"100%",height:1,pointerEvents:"none"}}),D&&jsxRuntime.jsx("div",{style:{position:"absolute",top:`${I.getTotalSize()}px`,left:0,width:"100%"},children:b||jsxRuntime.jsx(Ur,{state:"loading-more"})})]}),!I&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[N.map(({item:v,index:M})=>{let A=G(v,M),J=r===A,ae=w===A,le={id:A,role:"option","aria-selected":J,"aria-current":J?"page":void 0,tabIndex:J||r==null&&M===0?0:-1,onClick:$=>O($,v),onMouseEnter:$=>H($,v),onMouseLeave:$=>H(null),onFocus:$=>H($,v),onBlur:$=>H(null),ref:$=>{$?R.current.set(A,$):R.current.delete(A);}};return jsxRuntime.jsx("div",{children:t({item:v,index:M,isSelected:J,isHovered:ae,rowProps:le})},A)}),p&&g&&jsxRuntime.jsx("div",{ref:E,style:{height:1}}),D&&(b||jsxRuntime.jsx(Ur,{state:"loading-more"}))]})]})}function xv({id:e,title:t,subtitle:r,meta:o,leading:n,trailing:a,isSelected:i=false,isHovered:s=false,disabled:l=false,href:c,size:d="md",onClick:u,onMouseEnter:m,onMouseLeave:p,className:g="",style:f,piiTitleType:y,piiSubtitleType:b,piiEntity:h}){let x=()=>{!l&&u&&u(e);},C=()=>{!l&&m&&m(e);},w=()=>{!l&&p&&p(e);},T={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],R=["flex items-center w-full text-left transition-all duration-200 ease-in-out",T.container,"border-l-2 border-l-transparent","rounded-sm",rt()],P=[s&&!i&&"bg-background-hover",i&&"bg-action-default/5 border-l-action-default shadow-sm",l&&"opacity-50 cursor-not-allowed",!l&&!i&&"hover:bg-background-hover"],E=[...R,...P,g].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 ${T.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 ${T.subtitle} ${T.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 ${T.meta} ${T.metaSpacing}`,children:o})]})})}),a&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:a})]});return c?jsxRuntime.jsx("a",{href:c,className:E,style:f,onMouseEnter:C,onMouseLeave:w,"aria-selected":i,"aria-current":i?"page":void 0,tabIndex:l?-1:0,children:I}):jsxRuntime.jsx("button",{type:"button",className:E,style:f,onClick:x,onMouseEnter:C,onMouseLeave:w,disabled:l,"aria-selected":i,tabIndex:l?-1:0,children:I})}function yv({header:e,children:t,footer:r,width:o="md",tone:n="neutral",elevation:a="sm",showDivider:i=true,"aria-label":s,"aria-labelledby":l,className:c="",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"},g=tailwindMerge.twMerge("flex flex-col h-full",u[o],m[n],p[a],i&&"border-r border-border-muted",c);return jsxRuntime.jsxs("div",{className:g,style:d,role:"complementary","aria-label":s,"aria-labelledby":l,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 RL({children:e,...t}){return jsxRuntime.jsx(reactAriaComponents.ListBox,{...t,className:Ae(t.className,"outline-0"),children:e})}function Gc(){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 Wc(e,t){let[r,o]=Qe.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}});Qe.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=Qe.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=Qe.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 bm=[{type:"navigation",position:"bottom-right",showCompass:true,showGeolocate:true,showResetZoom:true}];function Cv(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 AL="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 Sv(e){return tailwindMerge.twMerge(AL,e)}var wv="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/NRlaWhgVpCxOPXkFqRzL2vdSZXgG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k8DI5sufSSLSZBQSF3maHFuDcVGsLHjqrgKZLUX5JqjGehdg3ULYhq7fAkpy5voaGxxtFgmygtNBJMSfalN4Ghq0DVGhNw+TbZUJBvl6KdlImJXLsphrcJtyi/rBx7bNiPF3drqCfiaI7S/0yAfzPgdNJKqQ+lwh1XfSmYClPT+R2b/03chQhh/fQH7Dav+EOO2oojEn8WdyuYzZbw6+e/WpX6eGYK0xR3BJhumCL/0lYS1EWShiFKXp4HOjIdwcvzNzjuNg4uobmh3lmZNljg+RHIokP7iJ+//S9/0JF4UWgALQSUifcPn+AvCxKcp8u7vR5XAiSC3WYDByQWZ1myzFUtOgbu577+f5ZPq/B5Pf+nAAAAAElFTkSuQmCC";function Uc(e){return e.selection?.mode==="single"}function Rn(e){let t=[],r=o=>{o.layerId&&t.push(o.layerId);for(let n of o.children??[])r(n);};return r(e),t}function hm(e,t){let r=Rn(e);if(r.length===0)return "unchecked";let o=0;for(let n of r)t(n)&&o++;return o===0?"unchecked":Uc(e)||o===r.length?"checked":"indeterminate"}var ha=(e,t)=>Object.fromEntries(e.map(r=>[r,t]));function Rv(e,t){let r=Rn(e);if(!(hm(e,t)!=="checked"))return ha(r,false);if(Uc(e)){let n=e.children?.[0],a=n?Rn(n):[];return {...ha(r,false),...ha(a,true)}}return ha(r,true)}function Ev(e,t,r){let o=e.children?.find(s=>s.id===t);if(!o)return {};let n=Rn(e),a=Rn(o);return a.length>0&&a.every(r)?e.selection?.mode==="single"&&e.selection.allowNone?ha(a,false):{}:{...ha(n,false),...ha(a,true)}}function xm(e,t){for(let r of e){if(r.id===t)return r;let o=xm(r.children??[],t);if(o)return o}}function ym(e,t){for(let r of e){if(r.children?.some(n=>n.id===t))return r;let o=ym(r.children??[],t);if(o)return o}}function Mv(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 Dv(e){return e.map(t=>({id:t.id,label:t.label,...t.children?.length?{children:Dv(t.children)}:{}}))}function Av(e){let t=e.length;for(let r of e)r.children?.length&&(t=Math.max(t,Av(r.children)));return t}function Lv({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 null}}function IL({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 FL(){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 BL=41,VL=44,OL=132,zL=360;function Iv({tree:e,layers:t,onVisibilityChange:r}){let o=new Map(t.map(s=>[s.id,s])),n=s=>{let l=o.get(s);return !!l&&l.visible!==false};if(process.env.NODE_ENV!=="production"){let s=Mv(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 l=e.flatMap(Rn).filter(c=>!o.has(c));l.length>0&&console.warn(`[LayersPanel] \`layerTree\` references layer id(s) not present in \`layers\`: ${l.join(", ")}. Those rows render as hidden and cannot be turned on.`);}let a=Dv(e),i=Math.min(zL,Math.max(OL,Av(e)*BL+VL));return jsxRuntime.jsx("div",{className:"overflow-hidden",style:{height:i},"data-layers-panel":"",children:jsxRuntime.jsx(Ya,{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:l,select:c})=>{let d=xm(e,s.id);if(!d)return null;let u=hm(d,n),p=(d.layerId?o.get(d.layerId):void 0)?.legend,g=Rn(d),f=g.filter(n).length,y=l&&u==="indeterminate"?`${f} of ${g.length} on`:null,b=ym(e,d.id),h=!!b&&Uc(b),x=S=>{Object.keys(S).length>0&&r?.(S);},C=h?jsxRuntime.jsx(IL,{isSelected:u!=="unchecked",onPress:()=>x(Ev(b,d.id,n)),label:d.label}):jsxRuntime.jsx(eo,{isSelected:u==="checked",isIndeterminate:u==="indeterminate",onChange:()=>x(Rv(d,n)),"aria-label":d.label}),w=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:[C,l?jsxRuntime.jsxs("button",{type:"button",onClick:c,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(Lv,{type:p.swatch,color:p.color}):null,w,jsxRuntime.jsx(FL,{})]}):jsxRuntime.jsxs("span",{className:"flex min-w-0 flex-1 items-center gap-2",children:[p?jsxRuntime.jsx(Lv,{type:p.swatch,color:p.color}):null,w]})]})}})})}function En({position:e="top-right",className:t,style:r,children:o}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(Cv(e),t),style:r,children:o})}function Hr({icon:e,iconSize:t=24,onPress:r,isDisabled:o=false,className:n,iconClassName:a="text-text-primary",variant:i="secondary",isActive:s=false,ariaLabel:l,iconWeight:c="regular",...d}){let u=tailwindMerge.twMerge(Sv(),s&&"bg-action-brand hover:bg-action-brand-hover border-action-brand",n),m=tailwindMerge.twMerge(a,s&&"text-text-inverse");return jsxRuntime.jsx(te,{...d,className:u,onPress:r,variant:i,size:"sm",isDisabled:o,"aria-label":l,"aria-pressed":s||void 0,type:"button",children:jsxRuntime.jsx(V,{name:e,size:t,className:m,weight:c})})}var YL=e=>[{id:"streets",name:"Streets",description:"Standard street map with traffic data",preview:e?kv:Pv},{id:"satellite",name:"Satellite",description:"Aerial imagery with street labels",preview:Tv},{id:"neutral",name:"Neutral",description:"Clean design with light/dark variants",preview:e?wv:Nv}];function JL({type:e,color:t}){let r="inline-block",o=t?{backgroundColor:t}:{};switch(e){case "dot":return null;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 Vv({position:e="bottom-left",className:t,style:r,currentMapType:o="streets",onMapTypeChange:n,layers:a=[],onLayerToggle:i,onClearAll:s,onLayerVariantChange:l,layerTree:c,onVisibilityChange:d}){let{isDarkTheme:u}=jt(),{isMobile:m}=ar(),[p,g]=Qe.useState(false),f=YL(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:f.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))})]}),c?.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(Iv,{tree:c,layers:a,onVisibilityChange:d})]}):null,!c?.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 C=x.visible!==false,w=x.legend?.variants;return jsxRuntime.jsxs("div",{className:w?"space-y-1.5":void 0,children:[jsxRuntime.jsx(eo,{isSelected:C,onChange:()=>i?.(x.id),children:jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[x.legend&&jsxRuntime.jsx(JL,{type:x.legend.swatch,color:x.legend.color}),jsxRuntime.jsx("span",{className:"text-sm text-text-primary",children:x.legend?.label})]})}),w&&jsxRuntime.jsx("div",{className:"pl-6",children:jsxRuntime.jsx(zo,{"aria-label":`${x.legend?.label} mode`,size:"sm",isDisabled:!C,items:w.options.map(S=>({...S,value:S.id})),renderItem:S=>S.label,selectedKey:w.selectedId,onSelectionChange:S=>l?.(x.id,String(S))})})]},x.id)})})]})]});return jsxRuntime.jsx(En,{position:e,className:t,style:r,children:jsxRuntime.jsx("div",{className:"relative",children:m?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Hr,{icon:"Stack",ariaLabel:"Map layers and settings",onPress:()=>g(true)}),jsxRuntime.jsx(Ct,{isOpen:p,onClose:()=>g(false),title:"Map layers",animationVariant:"scale",children:h})]}):jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{children:[jsxRuntime.jsx(Hr,{icon:"Stack",ariaLabel:"Map layers and settings"}),jsxRuntime.jsx(vt,{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 zv({position:e="top-right",className:t,style:r,onToggle:o,isActive:n=false}){return jsxRuntime.jsx(En,{position:e,className:tailwindMerge.twMerge("md:hidden",t),style:r,children:jsxRuntime.jsx(Hr,{icon:"ListDashes",onPress:o,isActive:n,ariaLabel:n?"Hide list view":"Show list view"})})}var QL={sm:"gap-2",md:"gap-4",lg:"gap-6"};function Yc({position:e="top-right",className:t,style:r,children:o,orientation:n="vertical",spacing:a="md"}){return jsxRuntime.jsx(En,{position:e,style:r,children:jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex",n==="vertical"?"flex-col":"flex-row",QL[a],t),children:o})})}function Gv({mapRef:e,position:t="bottom-right",className:r,style:o,showCompass:n=true,showGeolocate:a=true,showResetZoom:i=true,onResetZoom:s,onCompassClick:l,onGeolocateClick:c}){let[d,u]=Qe.useState(false),m=Qe.useRef(true);Qe.useEffect(()=>()=>{m.current=false;},[]);let p=()=>{l?l():e.current&&e.current.easeTo({bearing:0,duration:500});},g=async()=>{if(!d)if(c)c();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:C,longitude:w}=x.coords;e.current&&e.current.flyTo({center:[w,C],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 f=!i&&n,y=!i&&!n&&a,b=!a&&n;return jsxRuntime.jsxs(Yc,{position:t,className:r,style:o,spacing:"sm",children:[i&&jsxRuntime.jsx(Hr,{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(Hr,{icon:"Compass",onPress:p,ariaLabel:"Reset map orientation",className:tailwindMerge.twMerge(!f&&"rounded-t-none border-t-0",!b&&"rounded-b-none border-b-0")}),a&&jsxRuntime.jsx(Hr,{icon:d?"Spinner":"NavigationArrow",onPress:g,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 Yv({position:e="top-left",className:t,style:r,onSearch:o,placeholder:n="Search places...",showSearchInput:a=true}){let[i,s]=Qe.useState(false),[l,c]=Qe.useState(""),d=()=>{a?s(!i):o&&o("");},u=p=>{p.preventDefault(),o&&l.trim()&&(o(l.trim()),s(false));},m=p=>{p.key==="Escape"&&s(false);};return jsxRuntime.jsx(En,{position:e,className:t,style:r,children:jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx(Hr,{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:l,onChange:p=>c(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(te,{type:"submit",variant:"primary",size:"sm",className:"px-3 py-2",children:"Search"})]})})})]})})}var tD={navigation:"bottom-right",layers:"bottom-left",search:"top-left",list:"top-right",custom:"top-right"};function Cm(e){return e.position??tD[e.type]}function Jv(e,t,r){let o=Cm(e),n=e.id??`${e.type}-${t}`;switch(e.type){case "navigation":{let i=e.showResetZoom!==false&&r.showResetButton;return jsxRuntime.jsx(Gv,{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(Vv,{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(Yv,{position:o,onSearch:e.onSearch,placeholder:e.placeholder,showSearchInput:e.showSearchInput,style:e.style,className:e.className},n);case "list":return jsxRuntime.jsx(zv,{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 Sm(e,t){let r=e.reduce((n,a,i)=>{let s=Cm(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(Jv(a[0].control,a[0].index,t));continue}let i={position:"static",top:"auto",right:"auto",bottom:"auto",left:"auto"};o.push(jsxRuntime.jsx(Yc,{position:n,spacing:"sm",children:a.map(({control:s,index:l})=>{let c={...s,style:{...s.style,...i}};return Jv(c,l,t)})},`group-${n}`));}return o}var wm={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 Nm(e){return e.kind==="vector"}function Tm(e){return e.kind==="geojson"}function km(e){return e.kind==="customPins"}function Pm(e){return e.kind==="raster"}var vs=(e,t)=>({id:e,label:t,kind:"sequential",hint:"Low \u2192 High",stops:()=>ki(e),toColorSpec:({by:r,scale:o="auto"})=>({by:r,palette:"sequential",scheme:e,scale:o})}),Rm=(e,t)=>({id:e,label:t,kind:"diverging",hint:"Low \u2192 Mid \u2192 High",stops:()=>Pi(e),toColorSpec:({by:r,scale:o="auto",center:n=0})=>({by:r,palette:"diverging",scheme:e,center:n,scale:o})}),Xc=[vs("viridis","Viridis"),vs("magma","Magma"),vs("cerulean","Cerulean"),vs("forest","Forest"),vs("rose","Rose")],jc=[Rm("redYellowBlue","Red \u2192 Blue"),Rm("orangeYellowSeafoam","Orange \u2192 Seafoam"),Rm("redBlue","Red / Blue")],qc={id:"categorical",label:"Categorical",kind:"categorical",hint:"Distinct per value",stops:()=>Oo(),toColorSpec:({by:e})=>({by:e,palette:"categorical",scale:"auto"})},Cs=[...Xc,...jc,qc];function Em(e){return Cs.find(t=>t.id===e)}function Mm(e){return Cs.filter(t=>t.kind===e)}function qv(e){return !e.includes("{z}")}function ws(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(oD,{spec:o,mapType:t},o.id);case "geojson":return jsxRuntime.jsx(aD,{spec:o,mapType:t},o.id);case "customPins":return jsxRuntime.jsx(iD,{spec:o,mapType:t},o.id);case "raster":return jsxRuntime.jsx(sD,{spec:o},o.id);case "clusteredVector":return jsxRuntime.jsx(nD,{spec:o,mapType:t},o.id);default:return console.warn("[Layers] Unknown layer kind:",o.kind),null}})})}function oD({spec:e,mapType:t}){let{colorMode:r}=jt(),o=Qe.useMemo(()=>{let l=Zv(e.style,e.renderAs,r,t);if((e.hideChipWhen||e.revealChipOnHover)&&e.renderAs==="circle"){let c=l,d=u=>{let m=u;return e.revealChipOnHover&&(m=["case",["boolean",["feature-state","hover"],false],u,0]),e.hideChipWhen&&(m=["case",e.hideChipWhen,0,m]),m};return {...l,"circle-opacity":d(c["circle-opacity"]??1),"circle-stroke-opacity":d(c["circle-stroke-opacity"]??1)}}return l},[e.style,e.renderAs,e.hideChipWhen,e.revealChipOnHover,r,t]),n=Qe.useMemo(()=>({visibility:e.visible===false?"none":"visible"}),[e.visible]),a={id:e.id,type:Qv(e.renderAs),"source-layer":e.sourceLayer,paint:o,layout:n};if(e.filter!==void 0&&(a.filter=e.filter),e.minZoom!==void 0&&(a.minzoom=e.minZoom),e.maxZoom!==void 0&&(a.maxzoom=e.maxZoom),e.beforeId!==void 0&&(a.beforeId=e.beforeId),e.sourceId)return jsxRuntime.jsx(CD.Layer,{...a,source:e.sourceId});let i=qv(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(CD.Source,{...s,children:jsxRuntime.jsx(CD.Layer,{...a})},`${e.tileset}:${e.renderAs}`)}function nD({spec:e}){let{colorMode:t,isDarkTheme:r}=jt(),o=1.25,n=9,a=3,i=n*1.4,s=.2,l=[0,5],c=Qe.useMemo(()=>r?{clusters:e.clusterStyle?.color?Qr(e.clusterStyle.color):"#000000",shadow:e.clusterStyle?.shadowColor||"rgba(0, 0, 0, 0.5)",point:{fill:e.pointStyle?.color?Qr(e.pointStyle.color):"#000000",stroke:e.pointStyle?.borderColor||"#ffffff",shadow:"rgba(0, 0, 0, 0.5)"},text:{onCluster:"#ffffff"},selected:{fill:e.selectedStyle?.color?Qr(e.selectedStyle.color):"#444ae1"}}:{clusters:e.clusterStyle?.color?Qr(e.clusterStyle.color):"#000000",shadow:e.clusterStyle?.shadowColor||"rgba(0, 0, 0, 0.3)",point:{fill:e.pointStyle?.color?Qr(e.pointStyle.color):"#000000",stroke:e.pointStyle?.borderColor||"#ffffff",shadow:"rgba(0, 0, 0, 0.3)"},text:{onCluster:"#ffffff"},selected:{fill:e.selectedStyle?.color?Qr(e.selectedStyle.color):"#444ae1"}},[r,t,e.clusterStyle,e.pointStyle,e.selectedStyle]),d=10,u=30,m=Math.log(2),p=Math.log(2e3),g=(e.clusterStyle?.sizes?.length??0)>0,f=Qe.useMemo(()=>g?e.clusterStyle.sizes.map(({threshold:w,radius:S})=>({threshold:w,radius:S,color:c.clusters})):[{threshold:30,radius:20,color:c.clusters},{threshold:200,radius:35,color:c.clusters},{threshold:1e3,radius:50,color:c.clusters}],[g,e.clusterStyle?.sizes,c.clusters]),y=w=>g?["step",["get","point_count"],w[0].radius,...w.flatMap(({threshold:S,radius:T})=>[S,T])]:["interpolate",["linear"],["ln",["max",2,["get","point_count"]]],m,d,p,u],b=w=>g?["step",["get","point_count"],w[0].radius*o,...w.flatMap(({threshold:S,radius:T})=>[S,T*o])]:["interpolate",["linear"],["ln",["max",2,["get","point_count"]]],m,d*o,p,u*o],h=qv(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 C=Qe.useMemo(()=>{let w=e.pointStyle?.radius??n,S=e.pointStyle?.borderWidth??a,T=e.selectedStyle?.radius??n*1.5,R=P=>{let E={...P};return e.minZoom!==void 0&&(E.minzoom=e.minZoom),e.maxZoom!==void 0&&(E.maxzoom=e.maxZoom),E};return [R({id:`${e.id}-cluster-shadows`,type:"circle","source-layer":e.sourceLayer,filter:["==",["get","cluster"],true],paint:{"circle-radius":b(f),"circle-color":c.shadow,"circle-blur":.5,"circle-translate":[0,8]}}),R({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":c.point.shadow,"circle-blur":s,"circle-translate":l}}),R({id:`${e.id}-clusters`,type:"circle","source-layer":e.sourceLayer,filter:["==",["get","cluster"],true],paint:{"circle-radius":y(f),"circle-color":["step",["get","point_count"],f[0].color,...f.flatMap(({threshold:P,color:E})=>[P,E])]}}),R({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":c.text.onCluster}}),R({id:`${e.id}-points`,type:"circle","source-layer":e.sourceLayer,filter:["all",["!=",["get","cluster"],true],["!=",["get","id"],e.selectedId||"selected"]],paint:{"circle-radius":w,"circle-color":c.point.fill,"circle-stroke-width":S,"circle-stroke-color":c.point.stroke}}),R({id:`${e.id}-selected-point`,type:"circle","source-layer":e.sourceLayer,filter:["==",["get","id"],e.selectedId||"selected"],paint:{"circle-radius":T,"circle-color":c.selected.fill,"circle-stroke-width":S,"circle-stroke-color":"#ffffff"}}),...e.pointStyle?.icon?[R({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":Xv(w,e.pointStyle.icon.size),"icon-allow-overlap":true,"icon-ignore-placement":true}}),R({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":Xv(T,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,f,c,n,a,i,s]);return jsxRuntime.jsx(CD.Source,{...x,children:C.map(w=>jsxRuntime.jsx(CD.Layer,{...w},w.id))},e.tileset)}function aD({spec:e,mapType:t}){let{colorMode:r}=jt(),o=Qe.useMemo(()=>typeof e.data=="string"?null:e.data,[e.data]),n=Qe.useMemo(()=>Zv(e.style,e.renderAs,r,t,o),[e.style,e.renderAs,r,t,o]),a=Qe.useMemo(()=>({visibility:e.visible===false?"none":"visible"}),[e.visible]),i=Qe.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 l={id:e.id,type:Qv(e.renderAs),paint:n,layout:a};return e.minZoom!==void 0&&(l.minzoom=e.minZoom),e.maxZoom!==void 0&&(l.maxzoom=e.maxZoom),jsxRuntime.jsx(CD.Source,{...s,children:jsxRuntime.jsx(CD.Layer,{...l})})}function iD({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(CD.Marker,{longitude:a,latitude:i,anchor:"bottom",children:jsxRuntime.jsx(r,{...s})},`${e.id}-${n}`)})})}function sD({spec:e}){let t=Qe.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(CD.Source,{...r,children:jsxRuntime.jsx(CD.Layer,{...o})},e.tileset)}var lo="#666";function Xv(e,t){let r=t??64;return e*2/r}function Qv(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 Zv(e,t,r,o,n){if(!e)return {};let a={};if(e.color){let i=Qr(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"]=Qc(e.width)),e.radius&&t==="circle"&&(a["circle-radius"]=Qc(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?Qr(e.borderColor,r,n):Qr(e.color||"#000",r,n)),t==="circle"&&e.borderWidth){a["circle-stroke-width"]=e.borderWidth;let i=e.borderColor?Qr(e.borderColor,r,n):Vt(`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]:Qc(e.weight)),e.intensity!==void 0&&(a["heatmap-intensity"]=e.intensity),e.radius!==void 0&&(a["heatmap-radius"]=Qc(e.radius)),e.opacity!==void 0&&(a["heatmap-opacity"]=e.opacity)),a}function lD(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(Qr(s));let a=e.fallback?Qr(e.fallback):lo;return n.push(a),n}function cD(e,t){let r=yf(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=Ti(r),n=["match",["get",e]];for(let[a,i]of Object.entries(o))n.push(a),n.push(i);return n.push(lo),n}function dD(e,t="viridis",r,o){let n=Id(r,e),a;if(o&&o!=="auto")a=o;else {if(a=Fd(n),n.length===0)return console.warn(`[Layers] No numeric values found for property "${e}"`),lo;console.log(`[Layers] Auto-calculated sequential scale for "${e}": ${a.min} to ${a.max}`);}let i=ki(t),s=["interpolate",["linear"],["get",e]];return i.forEach((l,c)=>{let d=c/(i.length-1),u=a.min+d*(a.max-a.min);s.push(u,l);}),s}function uD(e,t="redYellowBlue",r,o,n){let a=Id(r,e),i=vf(a,o),s;if(n&&n!=="auto")s=n;else {if(s=Fd(a),a.length===0)return console.warn(`[Layers] No numeric values found for property "${e}"`),lo;console.log(`[Layers] Auto-calculated diverging scale for "${e}": ${s.min} \u2190 ${i} \u2192 ${s.max}`);}let l=Pi(t),c=4,d=["interpolate",["linear"],["get",e]];for(let u=0;u<=c;u++){let m=u/c,p=s.min+m*(i-s.min);d.push(p,l[u]);}for(let u=c+1;u<l.length;u++){let m=(u-c)/(l.length-1-c),p=i+m*(s.max-i);d.push(p,l[u]);}return d}function jv(e){if(!(e.startsWith("var(")||e.startsWith("--")||e.startsWith("color-")))return e;let r=Vt(e,lo);return r.includes("var(")?lo:r}function Qr(e,t,r){if(typeof e=="string")return jv(e);if("token"in e)return Vt(e.token,lo);if("hex"in e)return jv(e.hex);if("by"in e){if("palette"in e){if(e.palette==="categorical")return r?cD(e.by,r):(console.warn("[Layers] Categorical auto-assignment requires GeoJSON data (not URL-based data)"),lo);if(e.palette==="sequential")return r?dD(e.by,e.scheme,r,e.scale):(console.warn("[Layers] Sequential palette requires GeoJSON data (not URL-based data)"),lo);if(e.palette==="diverging")return r?uD(e.by,e.scheme,r,e.center,e.scale):(console.warn("[Layers] Diverging palette requires GeoJSON data (not URL-based data)"),lo)}if("mapping"in e)return lD(e)}return lo}function Qc(e){return typeof e=="number"?e:"byZoom"in e?["interpolate",["linear"],["zoom"],...e.byZoom.flatMap(([t,r])=>[t,r])]:e}var _c=null;function $c(){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():(_c||(_c=import('mapbox-gl/dist/mapbox-gl.css').then(()=>{}).catch(t=>{console.error("Failed to load Mapbox CSS",t),_c=null;})),_c)}function ed(){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:`
43
+ `,"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 wM={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"},NM={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"}},TM={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"},kM={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"},PM={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"},RM={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},EM={start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},MM={row:"grid-flow-row",col:"grid-flow-col",dense:"grid-flow-dense","row-dense":"grid-flow-row-dense","col-dense":"grid-flow-col-dense"},LM={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"},DM={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 Wy(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 im({cols:e=1,gap:t="md",gapX:r,gapY:o,align:n="stretch",justify:a="start",flow:i="row",autoFit:s,autoFill:l,className:c,children:d}){let u=tailwindMerge.twMerge("grid",s||l?"":Wy(e,wM,NM),!r&&!o&&TM[t],r&&kM[r],o&&PM[o],RM[n],EM[a],MM[i],c),m={};return s?m.gridTemplateColumns=`repeat(auto-fit, minmax(${s}, 1fr))`:l&&(m.gridTemplateColumns=`repeat(auto-fill, minmax(${l}, 1fr))`),jsxRuntime.jsx("div",{className:u,style:m,children:d})}function AM({span:e,className:t,children:r}){let o=tailwindMerge.twMerge(Wy(e,LM,DM),t);return jsxRuntime.jsx("div",{className:o,children:r})}im.Item=AM;function IM(e,t){return Qe__namespace.default.isValidElement(e)?e:fo({value:e,formatter:t,emptyClassName:"text-text-secondary",emptyText:"\u2014"})}function FM(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 BM={neutral:"text-text-primary",success:"text-feedback-success",warning:"text-feedback-warning",error:"text-feedback-error",info:"text-feedback-info"},VM=24,OM=20;function zM({item:e,dense:t,valueAlign:r}){let o=FM(e),n=o?BM[o]:"",a=e.stackOnMobile,i=typeof e.value=="string"&&e.value.length>VM&&!e.formatter&&!Qe__namespace.default.isValidElement(e.value),s=IM(e.value,e.formatter),l=i?Fa(e.value,OM):null,c=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(dr,{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:l})}),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(ln,{value:c,size:"sm",children:jsxRuntime.jsx("span",{className:"sr-only",children:"Copy"})}):null,g=e.copyable&&(e.copyIconPosition==="left"||!e.copyIconPosition),f=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]}),f&&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"})]}),g&&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":g?"items-center":"items-start",a?g?"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":g?"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 Lc({items:e,layout:t="one-column",dense:r=false,valueAlign:o="end",showDividers:n=false,skeleton:a=false,empty:i=false,error:s,className:l}){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",l),children:Array.from({length:e.length||4}).map((c,d)=>jsxRuntime.jsxs("div",{className:"grid grid-cols-[1fr_auto] items-start gap-x-4",children:[jsxRuntime.jsx(Y,{className:"h-4 w-24"}),jsxRuntime.jsx(Y,{className:"h-5 w-16"})]},d))}):s?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-sm text-feedback-error",l),children:s}):i||!e.length?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-sm text-text-secondary",l),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",l),children:e.map((c,d)=>jsxRuntime.jsxs(Qe__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(zM,{item:c,dense:r,valueAlign:o})]},c.id))})}function Yy({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(Lc,{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 bt={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 lm=Qe__namespace.createContext(null);function Jy(){let e=Qe__namespace.useContext(lm);if(!e)throw new Error("Hierarchy components must be used within HierarchyExplorer");return e}function jy({node:e,renderNode:t}){let{selectedId:r,selectNode:o,navigateToNode:n,variant:a,size:i,showBullets:s,rootNodeId:l,stickyRootNode:c,navigationStack:d,setRootNodeSticky:u,useSplitLayout:m}=Jy(),p=Qe__namespace.useRef(null),g=Qe__namespace.useRef(null),f=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,C=l!==void 0&&e.id!==void 0&&l===e.id&&d.length===0;Qe__namespace.useLayoutEffect(()=>{C&&c&&p.current&&g.current===null&&requestAnimationFrame(()=>{p.current&&(g.current=p.current.offsetTop);});},[C,c]),Qe__namespace.useEffect(()=>{if(!C||!c||!p.current)return;let I=p.current.parentElement;for(;I;){let D=window.getComputedStyle(I).overflowY;if(D==="auto"||D==="scroll")break;I=I.parentElement;}if(!I)return;let k=()=>{if(!p.current||g.current===null)return;let D=I.getBoundingClientRect(),L=I.scrollTop,B=D.height,O=p.current.offsetHeight,G=g.current-L,Z=G+O,z=G<0,W=Z>B;z?u("top",e):W?u("bottom",e):u(null,null);};return I.addEventListener("scroll",k),k(),()=>{I.removeEventListener("scroll",k);}},[C,c,e,u]);let w=()=>{y||(m?o(e):x?n(e):o(e));},S=I=>{y||(I.key==="Enter"||I.key===" ")&&(I.preventDefault(),w());},T={isSelected:f,isDisabled:y,hasChildren:b,hasMetadata:h,level:0},R=tailwindMerge.twMerge("relative cursor-pointer group",y&&"opacity-50 cursor-not-allowed"),P=tailwindMerge.twMerge("absolute inset-0 transition-colors",C&&!f&&!y&&"group-hover:bg-background-hover",C&&f&&!y&&a==="subtle"&&"bg-background-selected group-hover:bg-background-hover",C&&f&&y&&a==="subtle"&&"bg-background-selected",C&&f&&!y&&a==="solid"&&"bg-action-brand group-hover:bg-action-brand-hover",C&&f&&y&&a==="solid"&&"bg-action-brand",!C&&a==="subtle"&&!f&&!y&&"group-hover:bg-background-hover",!C&&a==="subtle"&&f&&!y&&"bg-background-selected group-hover:bg-background-hover",!C&&a==="subtle"&&f&&y&&"bg-background-selected",!C&&a==="solid"&&!f&&!y&&"group-hover:bg-background-hover",!C&&a==="solid"&&f&&!y&&"bg-action-brand group-hover:bg-action-brand-hover",!C&&a==="solid"&&f&&y&&"bg-action-brand"),E=tailwindMerge.twMerge("relative flex items-center gap-2 text-text-primary hover:text-text-primary transition-colors",bt[i].node,C&&!f&&"font-semibold",a==="subtle"&&f&&"text-text-link-default",a==="solid"&&f&&"text-[color:var(--color-action-brand-text)]");return jsxRuntime.jsxs("div",{ref:p,className:R,onClick:w,onKeyDown:S,role:"treeitem","aria-selected":f,"aria-disabled":y,tabIndex:0,"data-node-id":e.id,children:[jsxRuntime.jsx("div",{className:P}),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",C&&"bg-action-brand border-action-brand",!C&&"bg-background-muted border border-border-default"),style:{width:bt[i].bullet,height:bt[i].bullet},children:e.icon&&jsxRuntime.jsx(V,{name:e.icon,size:bt[i].icon,weight:C?"fill":"regular",className:C?"text-[color:var(--color-action-brand-text)]":"text-text-primary"})}),jsxRuntime.jsx("div",{className:"flex-1 min-w-0",children:t?t(e,T):jsxRuntime.jsx("span",{className:"truncate",children:e.name})}),x&&!m&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:jsxRuntime.jsx(V,{name:"CaretRight",size:bt[i].icon,className:"text-text-secondary"})})]})]})}function Qy({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:`${bt[n].spacing.x+bt[n].bullet/2}px`,top:`${bt[n].spacing.y+bt[n].bullet/2}px`,bottom:`${bt[n].spacing.y+bt[n].bullet/2}px`},"aria-hidden":"true"}),e.map(i=>jsxRuntime.jsx(jy,{node:i,renderNode:a},i.id))]})}function gs({children:e,mode:t="sync",presenceKey:r}){let o=r!==void 0&&Qe__namespace.default.isValidElement(e)?Qe__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 $y(){let[e,t]=Qe.useState(()=>typeof window>"u"?false:window.matchMedia("(prefers-reduced-motion: reduce)").matches);return Qe.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 JM={instant:0,fast:150,normal:250,slow:350,slower:500},cm={xs:"4px",sm:"8px",md:"16px"};function XM(e){return e?typeof e=="string"&&e in cm?cm[e]:typeof e=="number"?`${e}px`:e:cm.sm}function bs({children:e,direction:t,distance:r="sm",duration:o="normal",delay:n=0,className:a}){let i=$y(),s=typeof o=="number"?o:JM[o],l=XM(r),c=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,...c(l)},u={opacity:1,x:0,y:0},m=i?{opacity:0}:{opacity:0,...c(l)};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",bt[r].node),children:[jsxRuntime.jsx(V,{name:"CaretLeft",size:bt[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",bt[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:bt[n].bullet,height:bt[n].bullet},children:e.icon&&jsxRuntime.jsx(V,{name:e.icon,size:bt[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 tv({currentItems:e,currentParent:t,navigationStack:r,selectedId:o,variant:n,size:a,showBullets:i,slideDirection:s,viewKey:l,hasHeight:c,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(Ic,{navigationStack:r,onNavigateBack:p,size:a}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("relative",c&&"overflow-auto h-full"),children:jsxRuntime.jsx(gs,{mode:"wait",presenceKey:l,children:r.length===0?u(e,true):jsxRuntime.jsx(bs,{direction:s,distance:"100%",duration:"normal",children:m(t)})})})]})}function um(e,t){for(let r of e){if(r.id===t)return r;if(r.children&&r.children.length>0){let o=um(r.children,t);if(o)return o}}return null}function Bc(e){if(e!==void 0)return typeof e=="number"?`${e}px`:e}function rv(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],l=`${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 ${l} is missing an "id" field. Node name: "${s.name||"(unnamed)"}"`),s.children&&o(s.children,`${l}.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 nv({data:e,currentItems:t,navigationStack:r,selectedId:o,variant:n,size:a,showBullets:i,rootNodeStickyState:s,renderNodeList:l,renderDetailContent:c,renderEmptyState:d,onNavigateBack:u}){let m=o?um(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(Ic,{navigationStack:r,onNavigateBack:u,size:a}),jsxRuntime.jsx("div",{className:"flex-1 overflow-auto",children:l(t,r.length===0)})]}),jsxRuntime.jsx("div",{className:"flex-1 min-w-0 overflow-auto bg-background-body",children:jsxRuntime.jsx(gs,{mode:"wait",presenceKey:m?.id||"empty",children:m?jsxRuntime.jsx(bs,{direction:"left",duration:"fast",children:c(m)}):d?d():jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-text-secondary text-center",bt[a].node,"py-8"),children:"Select an item to view details"})})})]})}function av({data:e,renderNode:t,onNodeSelect:r,onNavigate:o,selectedId:n,rootNodeId:a,stickyRootNode:i=true,height:s,minHeight:l,maxHeight:c,variant:d="subtle",size:u="md",showBullets:m=true,layout:p="auto",splitBreakpoint:g=768,renderEmptyState:f,renderDetailView:y,className:b,"aria-label":h="Hierarchy explorer"}){let[x,C]=Qe__namespace.useState(null),[w,S]=Qe__namespace.useState([]),[T,R]=Qe__namespace.useState("left"),[P,E]=Qe__namespace.useState({position:null,node:null}),{ref:I,width:k}=Ja(),D=Qe__namespace.useMemo(()=>p==="split"?true:p==="single"?false:k>=g,[p,k,g]),L=n!==void 0?n:x;Qe__namespace.useEffect(()=>{rv(e,a);},[e,a]);let B=w.length>0?w[w.length-1]:null,O=B?B.children||[]:e,H=Qe__namespace.useCallback(A=>{R("left"),S(J=>[...J,A]),o?.(A,[...w,A]);},[w,o]),G=Qe__namespace.useCallback(()=>{R("right"),S(A=>{let J=A.slice(0,-1);return o?.(J.length>0?J[J.length-1]:null,J),J});},[o]),Z=Qe__namespace.useCallback(A=>{n===void 0&&C(A.id),r?.(A,[...w,A]);},[n,w,r]),z=Qe__namespace.useCallback((A,J)=>{E({position:A,node:J});},[]),W=Qe__namespace.useMemo(()=>({selectedId:L,selectNode:Z,navigateToNode:H,navigateBack:G,rootNodeId:a,stickyRootNode:i,variant:d,size:u,showBullets:m,onNodeSelect:r,onNavigate:o,navigationStack:w,setRootNodeSticky:z,useSplitLayout:D}),[L,Z,H,G,a,i,d,u,m,r,o,w,z,D]),q=Qe__namespace.useRef(null);Qe__namespace.useEffect(()=>{if(!a||!q.current||w.length>0||D)return;let A=q.current,J=setTimeout(()=>{let ae=A.querySelector(`[data-node-id="${a}"]`);ae&&ae.scrollIntoView({behavior:"auto",block:"center",inline:"nearest"});},100);return ()=>clearTimeout(J)},[a,w.length,D]);let F={height:Bc(s),minHeight:Bc(l),maxHeight:Bc(c)},X=s!==void 0||c!==void 0,N=B?B.id:"root",v=Qe__namespace.useCallback((A,J=false)=>jsxRuntime.jsx(Qy,{items:A,showConnector:J,scrollContainerRef:J?q:null,showBullets:m,size:u,renderNode:t}),[m,u,t]),M=Qe__namespace.useCallback(A=>A?y?y(A,v):jsxRuntime.jsx(Yy,{node:A,renderNodeList:v}):null,[y,v]);return jsxRuntime.jsx(lm.Provider,{value:W,children:jsxRuntime.jsx("div",{ref:I,className:tailwindMerge.twMerge("select-none bg-background-surface rounded-lg border border-border-default relative",X&&"overflow-hidden",!X&&"h-full flex flex-col",D&&!X&&"flex-row",D&&X&&"flex",b),style:F,role:"tree","aria-label":h,children:D?jsxRuntime.jsx(nv,{data:e,currentItems:O,navigationStack:w,selectedId:L,variant:d,size:u,showBullets:m,rootNodeStickyState:P,renderNodeList:v,renderDetailContent:M,renderEmptyState:f,onNavigateBack:G}):jsxRuntime.jsx(tv,{currentItems:O,currentParent:B,navigationStack:w,selectedId:L,variant:d,size:u,showBullets:m,slideDirection:T,viewKey:N,hasHeight:X,rootNodeStickyState:P,renderNodeList:v,renderDetailContent:M,onNavigateBack:G})})})}function lL({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 iv=({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}),sv=({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)=>lL({...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]});sv.displayName="HoverCardContent";var cL=Object.assign(iv,{Root:iv,Content:sv});var pL={md:{fontFamily:"var(--font-family-brand)",fontSize:24,lineHeight:1,letterSpacing:"-0.02em"},lg:{fontFamily:"var(--font-family-brand)",fontSize:34,lineHeight:1.1}},mL={md:{fontSize:12},lg:{fontSize:16}},fL={fontSize:11};function gL(e,t){return fo({value:e,formatter:t,emptyClassName:"text-text-secondary",emptyText:"\u2014"})}function bL(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 hL({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),c=Math.max(...i)-s,d=p=>c===0?20/2:18-(p-s)/c*16,u=60/Math.max(e.length-1,1),m=e.map((p,g)=>{let f=2+g*u,y=d(typeof p.y=="number"?p.y:0);return `${g===0?"M":"L"} ${f} ${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 lv=100,ba=30,cv=1.5,dv=4,xL=12;function yL(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 vL(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,l=n[1]+(a[1]-o[1])/6,c=a[0]-(i[0]-n[0])/6,d=a[1]-(i[1]-n[1])/6;t+=` C ${s} ${l} ${c} ${d} ${a[0]} ${a[1]}`;}return t}function CL({points:e,gradientId:t,tone:r,className:o}){if(!e||e.length<2)return null;let n=yL(e,xL),a=n.map(y=>typeof y.y=="number"?y.y:0),i=Math.min(...a),l=Math.max(...a)-i,c=y=>l===0?ba/2:ba-dv-(y-i)/l*(ba-2*dv),d=(lv-2*cv)/Math.max(n.length-1,1),u=n.map((y,b)=>[cv+b*d,c(typeof y.y=="number"?y.y:0)]),m=vL(u),p=u[u.length-1],g=u[0],f=`${m} L ${p[0]} ${ba} L ${g[0]} ${ba} Z`;return jsxRuntime.jsxs("svg",{width:"100%",height:ba,viewBox:`0 0 ${lv} ${ba}`,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:f,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 uv({label:e,value:t,formatter:r,delta:o,deltaPeriodLabel:n,deltaIntent:a="upIsGood",trend:i,status:s,helpText:l,size:c="md",orientation:d="vertical",isLoading:u,empty:m,error:p,onClick:g,className:f,labelClassName:y,renderValue:b,renderDelta:h,renderTrend:x,unit:C,sub:w,dashed:S,sparkVariant:T="line",sparkTone:R,tileValueSize:P}){let E=Qe.useId(),k={sm:{label:kt("labelSm"),value:kt("displaySm"),delta:kt("labelSm"),gap:"gap-1"},md:{label:kt("labelMd"),value:kt("displayMd"),delta:kt("bodySm"),gap:"gap-2"},lg:{label:kt("labelLg"),value:kt("displayLg"),delta:kt("bodyMd"),gap:"gap-3"}}[c],D=G=>P?jsxRuntime.jsxs("span",{style:pL[P],className:S?"opacity-45":void 0,children:[G,C?jsxRuntime.jsxs("span",{className:"text-text-secondary",style:mL[P],children:[" ",C]}):null]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[G,C?jsxRuntime.jsxs("span",{className:"text-text-secondary",children:[" ",C]}):null]}),L=u?jsxRuntime.jsx(Y,{className:"h-7 w-20"}):m?jsxRuntime.jsx("span",{className:"text-text-secondary",children:"\u2014"}):p?jsxRuntime.jsx("span",{className:kt("bodySm","text-feedback-error"),children:typeof p=="string"?p:"Error"}):S?D("\u2014"):b?b(t):D(P?t:gL(t,r)),B=h?h(o):o!==void 0&&!u&&!m&&!p&&!S?jsxRuntime.jsxs("div",{className:ir(k.delta,bL(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(Y,{className:"h-4 w-24"}):null,O=x?x(i):i&&i.length>0&&!u&&!p&&!S?T==="area"?jsxRuntime.jsx(CL,{points:i,gradientId:E,tone:R,className:m?"opacity-30":""}):jsxRuntime.jsx(hL,{points:i,ariaLabel:`${e} trend`,className:m?"opacity-30":""}):u&&i!==void 0?jsxRuntime.jsx(Y,{className:"h-5 w-16"}):null,H=w&&!u&&!p?jsxRuntime.jsx("div",{className:"text-text-secondary",style:fL,children:w}):null;return jsxRuntime.jsxs("section",{className:tailwindMerge.twMerge("flex min-w-0",d==="horizontal"?`items-center ${k.gap}`:`flex-col ${k.gap}`,g&&"cursor-pointer hover:bg-background-muted rounded-lg px-3 py-2 -mx-3 -my-2 transition-colors",f),"aria-labelledby":`kpi-${e}`,onClick:g,children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("h3",{id:`kpi-${e}`,className:tailwindMerge.twMerge(ir(k.label,"text-text-secondary truncate"),y),children:u?jsxRuntime.jsx(Y,{className:"h-4 w-24"}):e}),l&&!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:ir(P?void 0:k.value,p?"text-feedback-error":"text-text-primary"),"aria-label":`Value: ${t}`,children:L}),s&&!u&&!p&&jsxRuntime.jsx(ft,{variant:s.tone||"neutral",size:"sm",children:s.value})]}),H,(B||O)&&jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[B,O]})]})}var pv={xs:"gap-2",sm:"gap-3",md:"gap-4",lg:"gap-6",xl:"gap-8"},mv={start:"items-start",center:"items-center",stretch:"items-stretch"};function fv(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 fm({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:l="140px",className:c}){let d=i?Qe__namespace.default.Children.map(e,p=>Qe__namespace.default.isValidElement(p)&&p.type&&typeof p.type!="string"&&"displayName"in p.type?Qe__namespace.default.cloneElement(p,{isLoading:true}):p):e,u=s?Qe__namespace.default.Children.map(d,p=>jsxRuntime.jsx("div",{className:"shrink-0",style:{minWidth:l},children:p})):d,m=s?tailwindMerge.twMerge("flex overflow-x-auto pb-2 -mb-2",pv[r],"sm:grid sm:overflow-visible sm:pb-0 sm:-mb-0",fv({...typeof t=="object"?t:{base:t},base:void 0}),mv[o],n&&"sm:auto-rows-fr"):tailwindMerge.twMerge("grid",fv(t),pv[r],mv[o],n&&"auto-rows-fr","w-full");return jsxRuntime.jsxs("section",{className:tailwindMerge.twMerge("w-full",c),"aria-label":"Key metrics",children:[a&&jsxRuntime.jsx("div",{className:"mb-4",children:a}),jsxRuntime.jsx("div",{className:m,children:s?u:d})]})}fm.displayName="KpiGroup";function hv({items:e,renderItem:t,selectedId:r,onSelect:o,onHoverChange:n,isLoading:a=false,loadingState:i,error:s=null,renderLoadingSkeleton:l,loadingSkeletonCount:c=5,emptyMessage:d="No results found.",variant:u="relaxed",showDividers:m=true,onLoadMore:p,hasMore:g=false,enableVirtualization:f,estimatedItemSize:y=60,loadingIndicator:b,"aria-label":h,className:x="",style:C}){let[w,S]=Qe.useState(null),T=Qe.useRef(null),R=Qe.useRef(new Map),{scrollRef:P,loadMoreRef:E,virtualizer:I,virtualItems:k,isLoadingMore:D,computedLoadingState:L}=on({items:e,onLoadMore:p,hasMore:g,isLoading:a,loadingState:i,enableVirtualization:f,estimatedItemSize:y,overscan:5}),B=P??T,O=Qe.useCallback((v,M)=>{o?.(v,M);},[o]),H=Qe.useCallback((v,M)=>{S(v),n?.(v,M);},[n]),G=Qe.useCallback((v,M)=>{let A=v?.id;return typeof A=="string"&&A?A:`item-${M}`},[]),Z=Qe.useCallback(v=>{if(!B.current||e.length===0)return;let M=document.activeElement,A=e.findIndex(($,ie)=>{let Ee=G($,ie),pe=R.current.get(Ee);return pe&&(pe===M||pe.contains(M))}),J=A;switch(v.key){case "ArrowDown":v.preventDefault(),J=A===-1?0:Math.min(A+1,e.length-1);break;case "ArrowUp":v.preventDefault(),J=A===-1?0:Math.max(A-1,0);break;case "Home":v.preventDefault(),J=0;break;case "End":v.preventDefault(),J=e.length-1;break;default:return}let ae=G(e[J],J);R.current.get(ae)?.focus();},[e,G,B]),z=["flex flex-col","bg-background-surface","focus:outline-none focus:ring-2 focus:ring-border-focus focus:ring-offset-2"],W={dense:"gap-0",relaxed:"gap-0"},q=m?"divide-y divide-border-muted":"",F=[...z,W[u],q,x].filter(Boolean).join(" ");if(L==="loading"||a&&e.length===0){let v=l?jsxRuntime.jsx(jsxRuntime.Fragment,{children:Array.from({length:c}).map((M,A)=>jsxRuntime.jsx("div",{children:l()},`skeleton-${A}`))}):jsxRuntime.jsx(gg,{count:c,className:"space-y-0",children:jsxRuntime.jsxs("div",{className:"flex items-center gap-3 px-4 py-3",children:[jsxRuntime.jsx(Y,{width:16,height:16,variant:"circle"}),jsxRuntime.jsxs("div",{className:"flex-1 space-y-2",children:[jsxRuntime.jsx(Y,{width:"75%",height:16}),jsxRuntime.jsx(Y,{width:"50%",height:14})]}),jsxRuntime.jsx(Y,{width:60,height:20})]})});return jsxRuntime.jsx("div",{ref:B,className:F,style:C,role:"listbox","aria-label":h,"aria-busy":"true","aria-live":"polite",children:v})}if(s)return jsxRuntime.jsx("div",{ref:B,className:F,style:C,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:B,className:F,style:C,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?k?.map(v=>({virtualItem:v,item:e[v.index],index:v.index}))||[]:e.map((v,M)=>({item:v,index:M,virtualItem:null}));return jsxRuntime.jsxs("div",{ref:B,className:F,style:{...C,...p&&{overflow:"auto",height:C?.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:v,item:M,index:A})=>{if(!v)return null;let J=G(M,A),ae=r===J,le=w===J,$={id:J,role:"option","aria-selected":ae,"aria-current":ae?"page":void 0,tabIndex:ae||r==null&&A===0?0:-1,onClick:ie=>O(ie,M),onMouseEnter:ie=>H(ie,M),onMouseLeave:ie=>H(null),onFocus:ie=>H(ie,M),onBlur:ie=>H(null),ref:ie=>{ie?R.current.set(J,ie):R.current.delete(J);}};return jsxRuntime.jsx("div",{"data-index":v.index,ref:I.measureElement,style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${v.start}px)`},children:t({item:M,index:A,isSelected:ae,isHovered:le,rowProps:$})},J)}),p&&g&&jsxRuntime.jsx("div",{ref:E,style:{position:"absolute",top:`${I.getTotalSize()}px`,left:0,width:"100%",height:1,pointerEvents:"none"}}),D&&jsxRuntime.jsx("div",{style:{position:"absolute",top:`${I.getTotalSize()}px`,left:0,width:"100%"},children:b||jsxRuntime.jsx(Ur,{state:"loading-more"})})]}),!I&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[N.map(({item:v,index:M})=>{let A=G(v,M),J=r===A,ae=w===A,le={id:A,role:"option","aria-selected":J,"aria-current":J?"page":void 0,tabIndex:J||r==null&&M===0?0:-1,onClick:$=>O($,v),onMouseEnter:$=>H($,v),onMouseLeave:$=>H(null),onFocus:$=>H($,v),onBlur:$=>H(null),ref:$=>{$?R.current.set(A,$):R.current.delete(A);}};return jsxRuntime.jsx("div",{children:t({item:v,index:M,isSelected:J,isHovered:ae,rowProps:le})},A)}),p&&g&&jsxRuntime.jsx("div",{ref:E,style:{height:1}}),D&&(b||jsxRuntime.jsx(Ur,{state:"loading-more"}))]})]})}function yv({id:e,title:t,subtitle:r,meta:o,leading:n,trailing:a,isSelected:i=false,isHovered:s=false,disabled:l=false,href:c,size:d="md",onClick:u,onMouseEnter:m,onMouseLeave:p,className:g="",style:f,piiTitleType:y,piiSubtitleType:b,piiEntity:h}){let x=()=>{!l&&u&&u(e);},C=()=>{!l&&m&&m(e);},w=()=>{!l&&p&&p(e);},T={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],R=["flex items-center w-full text-left transition-all duration-200 ease-in-out",T.container,"border-l-2 border-l-transparent","rounded-sm",rt()],P=[s&&!i&&"bg-background-hover",i&&"bg-action-default/5 border-l-action-default shadow-sm",l&&"opacity-50 cursor-not-allowed",!l&&!i&&"hover:bg-background-hover"],E=[...R,...P,g].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 ${T.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 ${T.subtitle} ${T.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 ${T.meta} ${T.metaSpacing}`,children:o})]})})}),a&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:a})]});return c?jsxRuntime.jsx("a",{href:c,className:E,style:f,onMouseEnter:C,onMouseLeave:w,"aria-selected":i,"aria-current":i?"page":void 0,tabIndex:l?-1:0,children:I}):jsxRuntime.jsx("button",{type:"button",className:E,style:f,onClick:x,onMouseEnter:C,onMouseLeave:w,disabled:l,"aria-selected":i,tabIndex:l?-1:0,children:I})}function vv({header:e,children:t,footer:r,width:o="md",tone:n="neutral",elevation:a="sm",showDivider:i=true,"aria-label":s,"aria-labelledby":l,className:c="",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"},g=tailwindMerge.twMerge("flex flex-col h-full",u[o],m[n],p[a],i&&"border-r border-border-muted",c);return jsxRuntime.jsxs("div",{className:g,style:d,role:"complementary","aria-label":s,"aria-labelledby":l,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 EL({children:e,...t}){return jsxRuntime.jsx(reactAriaComponents.ListBox,{...t,className:Ae(t.className,"outline-0"),children:e})}function Gc(){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 Wc(e,t){let[r,o]=Qe.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}});Qe.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=Qe.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=Qe.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 bm=[{type:"navigation",position:"bottom-right",showCompass:true,showGeolocate:true,showResetZoom:true}];function Sv(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 IL="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 wv(e){return tailwindMerge.twMerge(IL,e)}var Nv="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJcAA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UWgALQSUifcPn+AvCxKcp8u7vR5XAiSC3WYDByQWZ1myzFUtOgbu577+f5ZPq/B5Pf+nAAAAAElFTkSuQmCC";function Uc(e){return e.selection?.mode==="single"}function Rn(e){let t=[],r=o=>{o.layerId&&t.push(o.layerId);for(let n of o.children??[])r(n);};return r(e),t}function hm(e,t){let r=Rn(e);if(r.length===0)return "unchecked";let o=0;for(let n of r)t(n)&&o++;return o===0?"unchecked":Uc(e)||o===r.length?"checked":"indeterminate"}var ha=(e,t)=>Object.fromEntries(e.map(r=>[r,t]));function Ev(e,t){let r=Rn(e);if(!(hm(e,t)!=="checked"))return ha(r,false);if(Uc(e)){let n=e.children?.[0],a=n?Rn(n):[];return {...ha(r,false),...ha(a,true)}}return ha(r,true)}function Mv(e,t,r){let o=e.children?.find(s=>s.id===t);if(!o)return {};let n=Rn(e),a=Rn(o);return a.length>0&&a.every(r)?e.selection?.mode==="single"&&e.selection.allowNone?ha(a,false):{}:{...ha(n,false),...ha(a,true)}}function xm(e,t){for(let r of e){if(r.id===t)return r;let o=xm(r.children??[],t);if(o)return o}}function ym(e,t){for(let r of e){if(r.children?.some(n=>n.id===t))return r;let o=ym(r.children??[],t);if(o)return o}}function Lv(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 Av(e){return e.map(t=>({id:t.id,label:t.label,...t.children?.length?{children:Av(t.children)}:{}}))}function Iv(e){let t=e.length;for(let r of e)r.children?.length&&(t=Math.max(t,Iv(r.children)));return t}function Dv({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 null}}function FL({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 BL(){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 VL=41,OL=44,zL=132,HL=360;function Fv({tree:e,layers:t,onVisibilityChange:r}){let o=new Map(t.map(s=>[s.id,s])),n=s=>{let l=o.get(s);return !!l&&l.visible!==false};if(process.env.NODE_ENV!=="production"){let s=Lv(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 l=e.flatMap(Rn).filter(c=>!o.has(c));l.length>0&&console.warn(`[LayersPanel] \`layerTree\` references layer id(s) not present in \`layers\`: ${l.join(", ")}. Those rows render as hidden and cannot be turned on.`);}let a=Av(e),i=Math.min(HL,Math.max(zL,Iv(e)*VL+OL));return jsxRuntime.jsx("div",{className:"overflow-hidden",style:{height:i},"data-layers-panel":"",children:jsxRuntime.jsx(Ya,{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:l,select:c})=>{let d=xm(e,s.id);if(!d)return null;let u=hm(d,n),p=(d.layerId?o.get(d.layerId):void 0)?.legend,g=Rn(d),f=g.filter(n).length,y=l&&u==="indeterminate"?`${f} of ${g.length} on`:null,b=ym(e,d.id),h=!!b&&Uc(b),x=S=>{Object.keys(S).length>0&&r?.(S);},C=h?jsxRuntime.jsx(FL,{isSelected:u!=="unchecked",onPress:()=>x(Mv(b,d.id,n)),label:d.label}):jsxRuntime.jsx(eo,{isSelected:u==="checked",isIndeterminate:u==="indeterminate",onChange:()=>x(Ev(d,n)),"aria-label":d.label}),w=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:[C,l?jsxRuntime.jsxs("button",{type:"button",onClick:c,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(Dv,{type:p.swatch,color:p.color}):null,w,jsxRuntime.jsx(BL,{})]}):jsxRuntime.jsxs("span",{className:"flex min-w-0 flex-1 items-center gap-2",children:[p?jsxRuntime.jsx(Dv,{type:p.swatch,color:p.color}):null,w]})]})}})})}function En({position:e="top-right",className:t,style:r,children:o}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(Sv(e),t),style:r,children:o})}function Hr({icon:e,iconSize:t=24,onPress:r,isDisabled:o=false,className:n,iconClassName:a="text-text-primary",variant:i="secondary",isActive:s=false,ariaLabel:l,iconWeight:c="regular",...d}){let u=tailwindMerge.twMerge(wv(),s&&"bg-action-brand hover:bg-action-brand-hover border-action-brand",n),m=tailwindMerge.twMerge(a,s&&"text-text-inverse");return jsxRuntime.jsx(te,{...d,className:u,onPress:r,variant:i,size:"sm",isDisabled:o,"aria-label":l,"aria-pressed":s||void 0,type:"button",children:jsxRuntime.jsx(V,{name:e,size:t,className:m,weight:c})})}var JL=e=>[{id:"streets",name:"Streets",description:"Standard street map with traffic data",preview:e?Pv:Rv},{id:"satellite",name:"Satellite",description:"Aerial imagery with street labels",preview:kv},{id:"neutral",name:"Neutral",description:"Clean design with light/dark variants",preview:e?Nv:Tv}];function XL({type:e,color:t}){let r="inline-block",o=t?{backgroundColor:t}:{};switch(e){case "dot":return null;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 Ov({position:e="bottom-left",className:t,style:r,currentMapType:o="streets",onMapTypeChange:n,layers:a=[],onLayerToggle:i,onClearAll:s,onLayerVariantChange:l,layerTree:c,onVisibilityChange:d}){let{isDarkTheme:u}=jt(),{isMobile:m}=ar(),[p,g]=Qe.useState(false),f=JL(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:f.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))})]}),c?.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(Fv,{tree:c,layers:a,onVisibilityChange:d})]}):null,!c?.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 C=x.visible!==false,w=x.legend?.variants;return jsxRuntime.jsxs("div",{className:w?"space-y-1.5":void 0,children:[jsxRuntime.jsx(eo,{isSelected:C,onChange:()=>i?.(x.id),children:jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[x.legend&&jsxRuntime.jsx(XL,{type:x.legend.swatch,color:x.legend.color}),jsxRuntime.jsx("span",{className:"text-sm text-text-primary",children:x.legend?.label})]})}),w&&jsxRuntime.jsx("div",{className:"pl-6",children:jsxRuntime.jsx(zo,{"aria-label":`${x.legend?.label} mode`,size:"sm",isDisabled:!C,items:w.options.map(S=>({...S,value:S.id})),renderItem:S=>S.label,selectedKey:w.selectedId,onSelectionChange:S=>l?.(x.id,String(S))})})]},x.id)})})]})]});return jsxRuntime.jsx(En,{position:e,className:t,style:r,children:jsxRuntime.jsx("div",{className:"relative",children:m?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Hr,{icon:"Stack",ariaLabel:"Map layers and settings",onPress:()=>g(true)}),jsxRuntime.jsx(Ct,{isOpen:p,onClose:()=>g(false),title:"Map layers",animationVariant:"scale",children:h})]}):jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{children:[jsxRuntime.jsx(Hr,{icon:"Stack",ariaLabel:"Map layers and settings"}),jsxRuntime.jsx(vt,{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 Hv({position:e="top-right",className:t,style:r,onToggle:o,isActive:n=false}){return jsxRuntime.jsx(En,{position:e,className:tailwindMerge.twMerge("md:hidden",t),style:r,children:jsxRuntime.jsx(Hr,{icon:"ListDashes",onPress:o,isActive:n,ariaLabel:n?"Hide list view":"Show list view"})})}var ZL={sm:"gap-2",md:"gap-4",lg:"gap-6"};function Yc({position:e="top-right",className:t,style:r,children:o,orientation:n="vertical",spacing:a="md"}){return jsxRuntime.jsx(En,{position:e,style:r,children:jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex",n==="vertical"?"flex-col":"flex-row",ZL[a],t),children:o})})}function Wv({mapRef:e,position:t="bottom-right",className:r,style:o,showCompass:n=true,showGeolocate:a=true,showResetZoom:i=true,onResetZoom:s,onCompassClick:l,onGeolocateClick:c}){let[d,u]=Qe.useState(false),m=Qe.useRef(true);Qe.useEffect(()=>()=>{m.current=false;},[]);let p=()=>{l?l():e.current&&e.current.easeTo({bearing:0,duration:500});},g=async()=>{if(!d)if(c)c();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:C,longitude:w}=x.coords;e.current&&e.current.flyTo({center:[w,C],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 f=!i&&n,y=!i&&!n&&a,b=!a&&n;return jsxRuntime.jsxs(Yc,{position:t,className:r,style:o,spacing:"sm",children:[i&&jsxRuntime.jsx(Hr,{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(Hr,{icon:"Compass",onPress:p,ariaLabel:"Reset map orientation",className:tailwindMerge.twMerge(!f&&"rounded-t-none border-t-0",!b&&"rounded-b-none border-b-0")}),a&&jsxRuntime.jsx(Hr,{icon:d?"Spinner":"NavigationArrow",onPress:g,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 Jv({position:e="top-left",className:t,style:r,onSearch:o,placeholder:n="Search places...",showSearchInput:a=true}){let[i,s]=Qe.useState(false),[l,c]=Qe.useState(""),d=()=>{a?s(!i):o&&o("");},u=p=>{p.preventDefault(),o&&l.trim()&&(o(l.trim()),s(false));},m=p=>{p.key==="Escape"&&s(false);};return jsxRuntime.jsx(En,{position:e,className:t,style:r,children:jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx(Hr,{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:l,onChange:p=>c(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(te,{type:"submit",variant:"primary",size:"sm",className:"px-3 py-2",children:"Search"})]})})})]})})}var rD={navigation:"bottom-right",layers:"bottom-left",search:"top-left",list:"top-right",custom:"top-right"};function Cm(e){return e.position??rD[e.type]}function Xv(e,t,r){let o=Cm(e),n=e.id??`${e.type}-${t}`;switch(e.type){case "navigation":{let i=e.showResetZoom!==false&&r.showResetButton;return jsxRuntime.jsx(Wv,{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(Ov,{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(Jv,{position:o,onSearch:e.onSearch,placeholder:e.placeholder,showSearchInput:e.showSearchInput,style:e.style,className:e.className},n);case "list":return jsxRuntime.jsx(Hv,{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 Sm(e,t){let r=e.reduce((n,a,i)=>{let s=Cm(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(Xv(a[0].control,a[0].index,t));continue}let i={position:"static",top:"auto",right:"auto",bottom:"auto",left:"auto"};o.push(jsxRuntime.jsx(Yc,{position:n,spacing:"sm",children:a.map(({control:s,index:l})=>{let c={...s,style:{...s.style,...i}};return Xv(c,l,t)})},`group-${n}`));}return o}var wm={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 Nm(e){return e.kind==="vector"}function Tm(e){return e.kind==="geojson"}function km(e){return e.kind==="customPins"}function Pm(e){return e.kind==="raster"}var vs=(e,t)=>({id:e,label:t,kind:"sequential",hint:"Low \u2192 High",stops:()=>ki(e),toColorSpec:({by:r,scale:o="auto"})=>({by:r,palette:"sequential",scheme:e,scale:o})}),Rm=(e,t)=>({id:e,label:t,kind:"diverging",hint:"Low \u2192 Mid \u2192 High",stops:()=>Pi(e),toColorSpec:({by:r,scale:o="auto",center:n=0})=>({by:r,palette:"diverging",scheme:e,center:n,scale:o})}),Xc=[vs("viridis","Viridis"),vs("magma","Magma"),vs("cerulean","Cerulean"),vs("forest","Forest"),vs("rose","Rose")],jc=[Rm("redYellowBlue","Red \u2192 Blue"),Rm("orangeYellowSeafoam","Orange \u2192 Seafoam"),Rm("redBlue","Red / Blue")],qc={id:"categorical",label:"Categorical",kind:"categorical",hint:"Distinct per value",stops:()=>Oo(),toColorSpec:({by:e})=>({by:e,palette:"categorical",scale:"auto"})},Cs=[...Xc,...jc,qc];function Em(e){return Cs.find(t=>t.id===e)}function Mm(e){return Cs.filter(t=>t.kind===e)}function Qv(e){return !e.includes("{z}")}function ws(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(nD,{spec:o,mapType:t},o.id);case "geojson":return jsxRuntime.jsx(iD,{spec:o,mapType:t},o.id);case "customPins":return jsxRuntime.jsx(sD,{spec:o,mapType:t},o.id);case "raster":return jsxRuntime.jsx(lD,{spec:o},o.id);case "clusteredVector":return jsxRuntime.jsx(aD,{spec:o,mapType:t},o.id);default:return console.warn("[Layers] Unknown layer kind:",o.kind),null}})})}function nD({spec:e,mapType:t}){let{colorMode:r}=jt(),o=Qe.useMemo(()=>{let l=_v(e.style,e.renderAs,r,t);if((e.hideChipWhen||e.revealChipOnHover)&&e.renderAs==="circle"){let c=l,d=u=>{let m=u;return e.revealChipOnHover&&(m=["case",["boolean",["feature-state","hover"],false],u,0]),e.hideChipWhen&&(m=["case",e.hideChipWhen,0,m]),m};return {...l,"circle-opacity":d(c["circle-opacity"]??1),"circle-stroke-opacity":d(c["circle-stroke-opacity"]??1)}}return l},[e.style,e.renderAs,e.hideChipWhen,e.revealChipOnHover,r,t]),n=Qe.useMemo(()=>({visibility:e.visible===false?"none":"visible"}),[e.visible]),a={id:e.id,type:Zv(e.renderAs),"source-layer":e.sourceLayer,paint:o,layout:n};if(e.filter!==void 0&&(a.filter=e.filter),e.minZoom!==void 0&&(a.minzoom=e.minZoom),e.maxZoom!==void 0&&(a.maxzoom=e.maxZoom),e.beforeId!==void 0&&(a.beforeId=e.beforeId),e.sourceId)return jsxRuntime.jsx(SD.Layer,{...a,source:e.sourceId});let i=Qv(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(SD.Source,{...s,children:jsxRuntime.jsx(SD.Layer,{...a})},`${e.tileset}:${e.renderAs}`)}function aD({spec:e}){let{colorMode:t,isDarkTheme:r}=jt(),o=1.25,n=9,a=3,i=n*1.4,s=.2,l=[0,5],c=Qe.useMemo(()=>r?{clusters:e.clusterStyle?.color?Qr(e.clusterStyle.color):"#000000",shadow:e.clusterStyle?.shadowColor||"rgba(0, 0, 0, 0.5)",point:{fill:e.pointStyle?.color?Qr(e.pointStyle.color):"#000000",stroke:e.pointStyle?.borderColor||"#ffffff",shadow:"rgba(0, 0, 0, 0.5)"},text:{onCluster:"#ffffff"},selected:{fill:e.selectedStyle?.color?Qr(e.selectedStyle.color):"#444ae1"}}:{clusters:e.clusterStyle?.color?Qr(e.clusterStyle.color):"#000000",shadow:e.clusterStyle?.shadowColor||"rgba(0, 0, 0, 0.3)",point:{fill:e.pointStyle?.color?Qr(e.pointStyle.color):"#000000",stroke:e.pointStyle?.borderColor||"#ffffff",shadow:"rgba(0, 0, 0, 0.3)"},text:{onCluster:"#ffffff"},selected:{fill:e.selectedStyle?.color?Qr(e.selectedStyle.color):"#444ae1"}},[r,t,e.clusterStyle,e.pointStyle,e.selectedStyle]),d=10,u=30,m=Math.log(2),p=Math.log(2e3),g=(e.clusterStyle?.sizes?.length??0)>0,f=Qe.useMemo(()=>g?e.clusterStyle.sizes.map(({threshold:w,radius:S})=>({threshold:w,radius:S,color:c.clusters})):[{threshold:30,radius:20,color:c.clusters},{threshold:200,radius:35,color:c.clusters},{threshold:1e3,radius:50,color:c.clusters}],[g,e.clusterStyle?.sizes,c.clusters]),y=w=>g?["step",["get","point_count"],w[0].radius,...w.flatMap(({threshold:S,radius:T})=>[S,T])]:["interpolate",["linear"],["ln",["max",2,["get","point_count"]]],m,d,p,u],b=w=>g?["step",["get","point_count"],w[0].radius*o,...w.flatMap(({threshold:S,radius:T})=>[S,T*o])]:["interpolate",["linear"],["ln",["max",2,["get","point_count"]]],m,d*o,p,u*o],h=Qv(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 C=Qe.useMemo(()=>{let w=e.pointStyle?.radius??n,S=e.pointStyle?.borderWidth??a,T=e.selectedStyle?.radius??n*1.5,R=P=>{let E={...P};return e.minZoom!==void 0&&(E.minzoom=e.minZoom),e.maxZoom!==void 0&&(E.maxzoom=e.maxZoom),E};return [R({id:`${e.id}-cluster-shadows`,type:"circle","source-layer":e.sourceLayer,filter:["==",["get","cluster"],true],paint:{"circle-radius":b(f),"circle-color":c.shadow,"circle-blur":.5,"circle-translate":[0,8]}}),R({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":c.point.shadow,"circle-blur":s,"circle-translate":l}}),R({id:`${e.id}-clusters`,type:"circle","source-layer":e.sourceLayer,filter:["==",["get","cluster"],true],paint:{"circle-radius":y(f),"circle-color":["step",["get","point_count"],f[0].color,...f.flatMap(({threshold:P,color:E})=>[P,E])]}}),R({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":c.text.onCluster}}),R({id:`${e.id}-points`,type:"circle","source-layer":e.sourceLayer,filter:["all",["!=",["get","cluster"],true],["!=",["get","id"],e.selectedId||"selected"]],paint:{"circle-radius":w,"circle-color":c.point.fill,"circle-stroke-width":S,"circle-stroke-color":c.point.stroke}}),R({id:`${e.id}-selected-point`,type:"circle","source-layer":e.sourceLayer,filter:["==",["get","id"],e.selectedId||"selected"],paint:{"circle-radius":T,"circle-color":c.selected.fill,"circle-stroke-width":S,"circle-stroke-color":"#ffffff"}}),...e.pointStyle?.icon?[R({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":jv(w,e.pointStyle.icon.size),"icon-allow-overlap":true,"icon-ignore-placement":true}}),R({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":jv(T,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,f,c,n,a,i,s]);return jsxRuntime.jsx(SD.Source,{...x,children:C.map(w=>jsxRuntime.jsx(SD.Layer,{...w},w.id))},e.tileset)}function iD({spec:e,mapType:t}){let{colorMode:r}=jt(),o=Qe.useMemo(()=>typeof e.data=="string"?null:e.data,[e.data]),n=Qe.useMemo(()=>_v(e.style,e.renderAs,r,t,o),[e.style,e.renderAs,r,t,o]),a=Qe.useMemo(()=>({visibility:e.visible===false?"none":"visible"}),[e.visible]),i=Qe.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 l={id:e.id,type:Zv(e.renderAs),paint:n,layout:a};return e.minZoom!==void 0&&(l.minzoom=e.minZoom),e.maxZoom!==void 0&&(l.maxzoom=e.maxZoom),jsxRuntime.jsx(SD.Source,{...s,children:jsxRuntime.jsx(SD.Layer,{...l})})}function sD({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(SD.Marker,{longitude:a,latitude:i,anchor:"bottom",children:jsxRuntime.jsx(r,{...s})},`${e.id}-${n}`)})})}function lD({spec:e}){let t=Qe.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(SD.Source,{...r,children:jsxRuntime.jsx(SD.Layer,{...o})},e.tileset)}var lo="#666";function jv(e,t){let r=t??64;return e*2/r}function Zv(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 _v(e,t,r,o,n){if(!e)return {};let a={};if(e.color){let i=Qr(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"]=Qc(e.width)),e.radius&&t==="circle"&&(a["circle-radius"]=Qc(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?Qr(e.borderColor,r,n):Qr(e.color||"#000",r,n)),t==="circle"&&e.borderWidth){a["circle-stroke-width"]=e.borderWidth;let i=e.borderColor?Qr(e.borderColor,r,n):Vt(`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]:Qc(e.weight)),e.intensity!==void 0&&(a["heatmap-intensity"]=e.intensity),e.radius!==void 0&&(a["heatmap-radius"]=Qc(e.radius)),e.opacity!==void 0&&(a["heatmap-opacity"]=e.opacity)),a}function cD(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(Qr(s));let a=e.fallback?Qr(e.fallback):lo;return n.push(a),n}function dD(e,t){let r=vf(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=Ti(r),n=["match",["get",e]];for(let[a,i]of Object.entries(o))n.push(a),n.push(i);return n.push(lo),n}function uD(e,t="viridis",r,o){let n=Id(r,e),a;if(o&&o!=="auto")a=o;else {if(a=Fd(n),n.length===0)return console.warn(`[Layers] No numeric values found for property "${e}"`),lo;console.log(`[Layers] Auto-calculated sequential scale for "${e}": ${a.min} to ${a.max}`);}let i=ki(t),s=["interpolate",["linear"],["get",e]];return i.forEach((l,c)=>{let d=c/(i.length-1),u=a.min+d*(a.max-a.min);s.push(u,l);}),s}function pD(e,t="redYellowBlue",r,o,n){let a=Id(r,e),i=Cf(a,o),s;if(n&&n!=="auto")s=n;else {if(s=Fd(a),a.length===0)return console.warn(`[Layers] No numeric values found for property "${e}"`),lo;console.log(`[Layers] Auto-calculated diverging scale for "${e}": ${s.min} \u2190 ${i} \u2192 ${s.max}`);}let l=Pi(t),c=4,d=["interpolate",["linear"],["get",e]];for(let u=0;u<=c;u++){let m=u/c,p=s.min+m*(i-s.min);d.push(p,l[u]);}for(let u=c+1;u<l.length;u++){let m=(u-c)/(l.length-1-c),p=i+m*(s.max-i);d.push(p,l[u]);}return d}function qv(e){if(!(e.startsWith("var(")||e.startsWith("--")||e.startsWith("color-")))return e;let r=Vt(e,lo);return r.includes("var(")?lo:r}function Qr(e,t,r){if(typeof e=="string")return qv(e);if("token"in e)return Vt(e.token,lo);if("hex"in e)return qv(e.hex);if("by"in e){if("palette"in e){if(e.palette==="categorical")return r?dD(e.by,r):(console.warn("[Layers] Categorical auto-assignment requires GeoJSON data (not URL-based data)"),lo);if(e.palette==="sequential")return r?uD(e.by,e.scheme,r,e.scale):(console.warn("[Layers] Sequential palette requires GeoJSON data (not URL-based data)"),lo);if(e.palette==="diverging")return r?pD(e.by,e.scheme,r,e.center,e.scale):(console.warn("[Layers] Diverging palette requires GeoJSON data (not URL-based data)"),lo)}if("mapping"in e)return cD(e)}return lo}function Qc(e){return typeof e=="number"?e:"byZoom"in e?["interpolate",["linear"],["zoom"],...e.byZoom.flatMap(([t,r])=>[t,r])]:e}var _c=null;function $c(){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():(_c||(_c=import('mapbox-gl/dist/mapbox-gl.css').then(()=>{}).catch(t=>{console.error("Failed to load Mapbox CSS",t),_c=null;})),_c)}function ed(){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:`
44
44
  linear-gradient(rgba(0,0,0,0.15) 1px, transparent 1px),
45
45
  linear-gradient(90deg, rgba(0,0,0,0.15) 1px, transparent 1px)
46
- `,backgroundSize:"30px 30px"}})})})}var eC="color-mix(in srgb, var(--color-map-neutral-border) 8%, transparent)",pD={backgroundImage:`linear-gradient(to right, ${eC} 1px, transparent 1px), linear-gradient(to bottom, ${eC} 1px, transparent 1px)`,backgroundSize:"24px 24px"},mD={backgroundColor:"color-mix(in srgb, var(--color-map-marker-default) 12%, transparent)"};function td({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:pD}),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:mD}),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 tC=Qe.createContext(null);function rC({mapStyleUrl:e,children:t}){return jsxRuntime.jsx(tC.Provider,{value:e??null,children:t})}function fi(){return Qe.useContext(tC)}var oC={streets:"streets",satellite:"satellite",neutral:"neutral"},rd="streets";function od(e,t,r){if(r)return r;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 nC({longitude:e,latitude:t,showPulse:r=true,accuracy:o}){return jsxRuntime.jsx(CD.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 kD={name:"mercator"},PD=[],Ts=Qe__namespace.default.forwardRef(({initialViewState:e,mapStyleUrl:t,viewState:r,onViewStateChange:o,scrollEnabled:n=true,className:a,previewMode:i=false,previewModeCta:s,onPreviewModePress:l,mapType:c=rd,layers:d=[],mapboxAccessToken:u,transformRequest:m,isLoading:p=false,onLoad:g,controls:f="default",showUserLocation:y=true,onUserLocationChange:b,children:h,additionalInteractiveLayerIds:x=PD,onMapClick:C,showMarker:w=false,markerLocation:S},T)=>{let R=u??Gc();if(!R)return jsxRuntime.jsx("div",{className:`relative ${a||""}`,style:{width:"100%",height:"100%"},children:jsxRuntime.jsx(td,{className:"w-full h-full",message:"Map unavailable"})});let{isDarkTheme:P}=jt(),E=fi(),I=t??E,k=Qe.useRef(null),D=Qe.useRef(null),[L,B]=Qe.useState(false),[O,H]=Qe.useState(false);Qe.useEffect(()=>{$c();},[]);let[G,Z]=Qe.useState(false),z=Qe.useRef(0),[W,q]=Qe.useState(null),[F,X]=Qe.useState(null),N=Qe.useRef(null),v=Qe.useRef(null),[M,A]=Wc("interactiveMap.trackingLocation",false),[J,ae]=Qe.useState(false);Qe.useEffect(()=>{if(!navigator.geolocation){ae(true);return}if(M){if(!navigator.permissions?.query){ae(true);return}navigator.permissions.query({name:"geolocation"}).then(K=>{K.state!=="granted"&&A(false),ae(true);}).catch(()=>{ae(true);});}else ae(true);},[]),Qe.useEffect(()=>{let K=setTimeout(()=>{L||H(true);},200);return ()=>clearTimeout(K)},[L]),Qe.useEffect(()=>{v.current=null;},[c,P]),Qe.useEffect(()=>{if(L)return;let K=setInterval(()=>{if(k.current?.loaded()){B(true),H(false);let U=k.current.getMap?.();U&&v.current!==U&&(v.current=U,g?.()),clearInterval(K);}},200);return ()=>clearInterval(K)},[L,g]),Qe.useEffect(()=>{if(J){if(!M||i){N.current!==null&&(navigator.geolocation.clearWatch(N.current),N.current=null);return}if(!navigator.geolocation){console.warn("Geolocation is not supported by this browser.");return}return N.current=navigator.geolocation.watchPosition(K=>{let U={latitude:K.coords.latitude,longitude:K.coords.longitude,accuracy:K.coords.accuracy};X(U),b?.(U);},K=>{console.warn("Geolocation error:",K.message),X(null),b?.(null);},{enableHighAccuracy:true,maximumAge:3e4,timeout:3e4}),()=>{N.current!==null&&(navigator.geolocation.clearWatch(N.current),N.current=null);}}},[M,i,b,J]);let le=Qe.useCallback(()=>{B(true),H(false);let K=k.current?.getMap?.();K&&v.current!==K&&(v.current=K,g?.());},[g]),$=Qe.useCallback(()=>{k.current&&e&&(Z(false),z.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]),ie=Qe.useMemo(()=>f===false||f===null?[]:f==="default"||f===void 0?bm:f,[f]),Ee=Qe.useCallback(()=>{if(!navigator.geolocation){console.warn("Geolocation is not supported by this browser.");return}A(true),navigator.geolocation.getCurrentPosition(K=>{let{latitude:U,longitude:de}=K.coords;k.current&&k.current.jumpTo({center:[de,U],zoom:15});},K=>{console.warn("Geolocation error:",K.message),K.code===K.PERMISSION_DENIED&&A(false);},{enableHighAccuracy:true,timeout:1e4,maximumAge:0});},[]),pe=Qe.useMemo(()=>{if(i)return null;let K=ie.map(U=>U.type==="navigation"?{...U,onResetZoom:U.onResetZoom||$,onGeolocateClick:U.onGeolocateClick||Ee}:U);return Sm(K,{mapRef:k,layers:d,showResetButton:G})},[ie,k,i,d,$,G,Ee]),ge=Qe.useMemo(()=>{let K=[];return d.filter(U=>U.events?.onClick||U.events?.onMouseEnter||U.events?.onMouseLeave||U.tooltip||U.kind==="vector"&&U.revealChipOnHover).forEach(U=>{U.kind==="clusteredVector"?(K.push(`${U.id}-clusters`),K.push(`${U.id}-points`),K.push(`${U.id}-selected-point`)):K.push(U.id);}),[...K,...x]},[d,x]),re=Qe.useMemo(()=>{let K=new Map;return d.forEach(U=>{U.events&&(K.set(U.id,U.events),U.kind==="clusteredVector"&&(K.set(`${U.id}-clusters`,U.events),K.set(`${U.id}-points`,U.events),K.set(`${U.id}-selected-point`,U.events)));}),K},[d]),se=Qe.useMemo(()=>{let K=new Map;return d.forEach(U=>{U.tooltip&&(K.set(U.id,U.tooltip),U.kind==="clusteredVector"&&(K.set(`${U.id}-clusters`,U.tooltip),K.set(`${U.id}-points`,U.tooltip),K.set(`${U.id}-selected-point`,U.tooltip)));}),K},[d]),ve=Qe.useMemo(()=>{let K=new Map;return d.forEach(U=>{U.kind==="clusteredVector"&&(K.set(U.id,U),K.set(`${U.id}-clusters`,U),K.set(`${U.id}-points`,U),K.set(`${U.id}-selected-point`,U));}),K},[d]),je=Qe.useMemo(()=>{if(!w)return null;let K=S?.longitude??r?.longitude??e?.longitude,U=S?.latitude??r?.latitude??e?.latitude;return K===void 0||U===void 0?null:{longitude:K,latitude:U}},[w,S,r,e]),Ze=Qe.useCallback(K=>{if(i)return;let U=K.features?.[0];if(!U||!U.layer)return;let de=U.layer.id,oe=re.get(de),xe=se.get(de),Oe;U.geometry.type==="Point"?Oe=U.geometry.coordinates:Oe=[K.lngLat.lng,K.lngLat.lat];let _={id:U.id??U.properties?.id,lngLat:Oe,properties:U.properties||{},layerId:de},ue=ve.get(de),Q=U.properties?.cluster===true;if(ue&&Q){let Se=k.current;if(Se){let mo=Se.getZoom(),Ea=Math.min(mo+3,18);Se.flyTo({center:Oe,zoom:Ea,duration:1e3});}return}if(oe?.onClick&&oe.onClick(_),xe&&xe.trigger==="click"){let Se;ue&&"cluster"in xe?xe.point&&(Se=xe.point(_)):"content"in xe&&(Se=typeof xe.content=="function"?xe.content(_):xe.content),Se&&q({feature:_,content:Se,bare:xe.bare});}C&&C(K);},[re,se,i,C,ve,k,ge]),wr=Qe.useMemo(()=>new Set(d.filter(K=>K.kind==="vector"&&K.revealChipOnHover).map(K=>K.id)),[d]),Dt=Qe.useRef(null),Nr=Qe.useCallback(()=>{let K=Dt.current;if(!(!K||!k.current)){Dt.current=null;try{k.current.removeFeatureState({source:K.source,sourceLayer:K.sourceLayer,id:K.id},"hover");}catch{}}},[k]);Qe.useEffect(()=>{Dt.current=null;},[c,P,I]);let Tr=Qe.useCallback(K=>{let U=K.features?.find(oe=>oe.layer&&wr.has(oe.layer.id));if(!U||U.id==null){Nr();return}let de=Dt.current;de&&de.source===U.source&&de.id===U.id||(Nr(),k.current&&(Dt.current={source:U.source,sourceLayer:U.sourceLayer,id:U.id},k.current.setFeatureState({source:U.source,sourceLayer:U.sourceLayer,id:U.id},{hover:true})));},[wr,Nr,k]),xt=Qe.useCallback(K=>{let U=K.features?.[0];if(!U||!U.layer)return null;let de=U.layer.id,oe=se.get(de);if(!oe||oe.trigger!=="hover"&&oe.trigger!==void 0)return null;let xe;U.geometry.type==="Point"?xe=U.geometry.coordinates:xe=[K.lngLat.lng,K.lngLat.lat];let Oe={id:U.id??U.properties?.id,lngLat:xe,properties:U.properties||{},layerId:de},_;if(ve.get(de)&&"cluster"in oe){let Q=U.properties?.cluster===true;if(Q&&oe.cluster){let Se=U.properties?.point_count||0;_=oe.cluster(Se,Oe);}else !Q&&oe.point?_=oe.point(Oe):_=Q?`${U.properties?.point_count||0} items`:null;}else "content"in oe&&(_=typeof oe.content=="function"?oe.content(Oe):oe.content);return _?{feature:Oe,content:_,bare:oe.bare}:null},[se,ve]),Zt=Qe.useCallback(K=>{if(i)return;let U=K.features?.[0];if(!U||!U.layer)return;let de=U.layer.id,oe=re.get(de);if(oe?.onMouseEnter){let Oe;U.geometry.type==="Point"?Oe=U.geometry.coordinates:Oe=[K.lngLat.lng,K.lngLat.lat];let _={id:U.id??U.properties?.id,lngLat:Oe,properties:U.properties||{},layerId:de};oe.onMouseEnter(_);}let xe=xt(K);xe&&q(xe),k.current&&(k.current.getCanvas().style.cursor="pointer");},[re,i,k,xt]),ee=Qe.useCallback(K=>{if(i)return;Tr(K);let U=K.features?.[0];if(!U||!U.layer)return;let de=xt(K);if(de){q(oe=>oe&&oe.feature.layerId===de.feature.layerId&&oe.feature.id===de.feature.id?oe:de);return}q(oe=>{if(!oe)return oe;let xe=se.get(oe.feature.layerId);return xe&&(xe.trigger==="hover"||xe.trigger===void 0)?null:oe});},[i,xt,se,Tr]),We=Qe.useCallback(()=>{if(!i){if(Nr(),re.forEach(K=>{K.onMouseLeave?.();}),W){let K=W.feature.layerId,U=d.find(de=>de.id===K);if(!U){let de=K.replace(/-(?:clusters|points|selected-point|cluster-shadows|points-shadow|cluster-count)$/,"");U=d.find(oe=>oe.id===de);}U?.tooltip&&(U.tooltip.trigger||"hover")==="hover"&&q(null);}k.current&&(k.current.getCanvas().style.cursor="");}},[re,i,k,W,d,Nr]),$e=Qe.useCallback((K,U)=>{for(let de of d)if(de.tooltip&&!(U&&de.id!==U)){if(de.kind==="geojson"){if(typeof de.data=="string")continue;let oe=de.data,Oe=(oe.type==="FeatureCollection"?oe.features:[oe]).find(_=>_.id===K);if(Oe&&Oe.geometry.type==="Point")return {id:Oe.id,lngLat:Oe.geometry.coordinates,properties:Oe.properties||{},layerId:de.id}}else if(de.kind==="customPins"){let oe=de.data.find(xe=>xe.id===K||xe._id===K||xe.key===K);if(oe)return {id:K,lngLat:de.getPosition(oe),properties:oe,layerId:de.id}}}return null},[d]);Qe.useImperativeHandle(T,()=>({showTooltip:(K,U)=>{let de=$e(K,U);if(!de)return;let oe=d.find(xe=>xe.id===de.layerId);if(oe?.tooltip&&"content"in oe.tooltip){let xe=typeof oe.tooltip.content=="function"?oe.tooltip.content(de):oe.tooltip.content;q({feature:de,content:xe,bare:oe.tooltip.bare});}},hideTooltip:()=>{q(null);},getMap:()=>k.current,markMapAsMoved:()=>{Z(true);}}),[$e,d]);let ne=(K,U)=>m?m(K,U):{url:K},Me=p||O,Re=Qe.useMemo(()=>ws(d,c),[d,c]);return jsxRuntime.jsx("div",{ref:D,className:tailwindMerge.twMerge("relative flex h-full w-full overflow-hidden",i&&"cursor-pointer",a),onClick:i?l:void 0,children:jsxRuntime.jsxs("div",{style:{flex:1},children:[jsxRuntime.jsxs(CD__default.default,{ref:k,initialViewState:e,...r&&r,style:{width:"100%",height:"100%"},mapStyle:od(c,P,I),styleDiffing:false,projection:kD,mapboxAccessToken:R,transformRequest:ne,onLoad:le,onMove:i?void 0:K=>{if(K.originalEvent&&L){let U=K.originalEvent.type,de=Math.abs((K.viewState.latitude??0)-(e?.latitude??0)),oe=Math.abs((K.viewState.longitude??0)-(e?.longitude??0)),xe=Math.abs((K.viewState.zoom??0)-(e?.zoom??0));e&&(de>1e-4||oe>1e-4||xe>.1)&&(U==="mousemove"||U==="touchmove"||U==="pointermove"?Z(true):(U==="wheel"||U==="mousewheel")&&(z.current+=1,z.current>=3&&Z(true)));}o?.(K.viewState);},onClick:i?void 0:Ze,onMouseMove:i?void 0:ee,onMouseEnter:i?void 0:Zt,onMouseLeave:i?void 0:We,interactiveLayerIds:i?[]:ge,scrollZoom:i?false:n,dragPan:!i,dragRotate:!i,doubleClickZoom:!i,interactive:!i,attributionControl:false,children:[jsxRuntime.jsx(CD.AttributionControl,{position:"top-left"}),pe,Re,h,je&&jsxRuntime.jsx(CD.Marker,{longitude:je.longitude,latitude:je.latitude,anchor:"bottom",children:jsxRuntime.jsx(V,{name:"MapPin",size:36,className:"text-map-marker-default",weight:"fill"})}),y&&F&&jsxRuntime.jsx(nC,{longitude:F.longitude,latitude:F.latitude,accuracy:F.accuracy}),W&&jsxRuntime.jsx(CD.Popup,{longitude:W.feature.lngLat[0],latitude:W.feature.lngLat[1],offset:15,closeButton:false,closeOnClick:false,className:W.bare?"map-tooltip map-tooltip-bare":"map-tooltip",maxWidth:"none",children:W.content})]},`map-${c}-${P}-${I??"default"}`),Me&&jsxRuntime.jsx(ed,{}),i&&s&&jsxRuntime.jsx("div",{className:"absolute bottom-8 right-8 z-10",children:s})]})})});Ts.displayName="InteractiveMap";async function iC(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(Qe.createElement(r,{size:n,color:a,weight:i})),l=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(s)}`;await new Promise((c,d)=>{let u=new Image(n,n);u.onload=()=>{try{e.hasImage(t)||e.addImage(t,u,{sdf:!1}),c();}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=l;});}function hi({width:e="100%",height:t="100%",initialViewState:r={longitude:-122.4194,latitude:37.7749,zoom:14},isLoading:o=false,mapType:n="streets",mapStyleUrl:a,layers:i=[],mapboxAccessToken:s,showMarker:l=true,markerOffsetY:c=0,showAttribution:d=false,onLoad:u,className:m,showExpandToggle:p=false,expandedMapTitle:g="Explore map",expandedMapAddressLabel:f,schematicPlaceholder:y=false}){let b=s??Gc(),{isDarkTheme:h}=jt(),[x,C]=Qe.useState(false),[w,S]=Qe.useState(false),T=fi(),R=a??T,[P,E]=Qe.useState(false),I=Qe.useRef(null),k=Qe.useRef(null),D=Qe.useCallback(()=>E(true),[]),L=Qe.useCallback(()=>E(false),[]);Qe.useEffect(()=>{$c();},[]);let B={width:typeof e=="number"?`${e}px`:e,height:typeof t=="number"?`${t}px`:t};Qe.useEffect(()=>{let G=setTimeout(()=>{x||S(true);},200);return ()=>clearTimeout(G)},[x]);let O=Qe.useCallback(()=>{C(true),S(false),u?.();},[u]);Qe.useEffect(()=>{if(!k.current)return;let G=new ResizeObserver(()=>{I.current&&I.current.resize();});return G.observe(k.current),()=>{G.disconnect();}},[]);let H=o||w;return b?jsxRuntime.jsxs("div",{ref:k,style:B,className:`relative ${m||""}`,children:[jsxRuntime.jsxs(CD__default.default,{ref:I,mapboxAccessToken:b,initialViewState:r,style:{width:"100%",height:"100%"},mapStyle:od(n,h,R),onLoad:O,scrollZoom:false,dragPan:false,dragRotate:false,doubleClickZoom:false,touchZoomRotate:false,interactive:false,attributionControl:false,children:[d&&jsxRuntime.jsx(CD.AttributionControl,{position:"top-left"}),ws(i,n),l&&r.longitude!==void 0&&r.latitude!==void 0&&jsxRuntime.jsx(CD.Marker,{longitude:r.longitude,latitude:r.latitude,anchor:"bottom",offset:[0,c],children:jsxRuntime.jsx(V,{name:"MapPin",size:36,className:"text-map-marker-default",weight:"fill"})})]}),p&&jsxRuntime.jsx("div",{className:"absolute top-4 right-4 z-20",children:jsxRuntime.jsx(Hr,{icon:"ArrowsOutSimple",ariaLabel:"Expand map to fullscreen",onPress:D})}),p&&jsxRuntime.jsx(cr,{isOpen:P,onClose:L,title:g,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(Ts,{initialViewState:r,mapType:n,mapStyleUrl:R,mapboxAccessToken:b,showMarker:l,markerLocation:r.longitude!==void 0&&r.latitude!==void 0?{latitude:r.latitude,longitude:r.longitude}:void 0,layers:i})}),f&&jsxRuntime.jsx("p",{className:"text-sm text-text-secondary px-4 py-3 flex-shrink-0",children:f})]})}),H&&jsxRuntime.jsx(ed,{})]}):jsxRuntime.jsx(td,{style:B,className:m,schematic:y,showMarker:l})}var FD={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 lC({label:e,size:t="md",variant:r="default",showWarningIndicator:o=true,warningThreshold:n=80,hideValueText:a=false,className:i,...s}){let l=FD[t],c=a&&e&&!s["aria-label"]&&!s["aria-labelledby"]?{"aria-label":e}:{};return jsxRuntime.jsx(reactAriaComponents.Meter,{...s,...c,className:Ae(i,"flex flex-col gap-1"),children:({percentage:d,valueText:u})=>{let m=o&&d>=n,p=r==="default"?BD(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(l.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",l.icon)}),u]})]}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("relative rounded-full bg-background-muted","ring-1 ring-inset ring-border-muted",l.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]",VD(p)),style:{width:`${Math.min(100,Math.max(0,d))}%`},role:"presentation","aria-hidden":"true"})})]})}})}function BD(e){return e<50?"success":e<70?"info":e<90?"warning":"error"}function VD(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 Om=(e,t)=>e.toLocaleLowerCase().includes(t.toLocaleLowerCase());function zm(e){return [e.value,e.label]}function ad(e,t,r=Om){let o=t.trim();return o===""?[...e]:e.filter(n=>zm(n).some(a=>r(a,o)))}function id(e){let t=e.query.trim();if(t==="")return false;let r=t.toLocaleLowerCase();return e.options.some(n=>n.value.toLocaleLowerCase()===r||n.label.toLocaleLowerCase()===r)?false:!e.selected.some(n=>n.toLocaleLowerCase()===r)}function sd(e,t){return e.map(r=>{let o=t.find(n=>n.value===r);return o?o.count===void 0?{value:r,label:o.label,isUnknown:false}:{value:r,label:o.label,count:o.count,isUnknown:false}:{value:r,label:r,isUnknown:true}})}var WD=e=>e.kind==="literal"?`literal:${e.value}`:`option:${e.option.value}`,Hm=e=>e.kind==="literal"?e.value:e.option.value,cC=e=>e.kind==="literal"?e.value:e.option.label,UD={sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6",xl:"h-7 w-7"},KD={sm:"pl-8",md:"pl-10",lg:"pl-11",xl:"pl-13"},YD={sm:"xs",md:"xs",lg:"sm",xl:"sm"};function dC({options:e,value:t,defaultValue:r,onChange:o,label:n,placeholder:a,size:i="md",loading:s=false,disabled:l=false,maxSelected:c,allowLiteral:d=false,onSearchChange:u,truncated:m=false,totalCount:p,emptyMessage:g,showSelectAll:f=false,description:y,errorMessage:b,isRequired:h=false,onBlur:x,inputRef:C,labelHidden:w=false,className:S,id:T}){let R=Qe.useId(),P=T??`multiselect-${R}`,E=`${P}-input`,I=`${P}-listbox`,k=Qe.useRef(null),D=Qe.useCallback(ee=>{k.current=ee,typeof C=="function"?C(ee):C&&(C.current=ee);},[C]),{contains:L}=reactAria.useFilter({sensitivity:"base"}),{isFocused:B,handleFocus:O,handleBlur:H}=ur(),[G,Z]=Qe.useState(""),[z,W]=Qe.useState(true),[q,F]=Qe.useState(null),[X,N]=Qe.useState(""),[v,M]=Qe.useState(()=>[...r??[]]),A=Qe.useMemo(()=>t?[...t]:v,[t,v]),J=Qe.useMemo(()=>ad(e,G,L),[e,G,L]),ae=d&&!s&&id({query:G,options:e,selected:A}),le=Qe.useMemo(()=>{let ee=J.map(We=>({kind:"option",option:We}));return ae?[{kind:"literal",value:G.trim()},...ee]:ee},[J,ae,G]),$=Qe.useMemo(()=>sd(A,e),[A,e]),ie=c!==void 0&&A.length>=c,Ee=Qe.useCallback((ee,We)=>{t||M(ee),N(`${We} ${ee.length} selected.`),o(ee);},[o,t]),pe=Qe.useCallback((ee,We)=>{if(!l){if(A.includes(ee)){Ee(A.filter($e=>$e!==ee),`${We} removed.`);return}ie||Ee([...A,ee],`${We} selected.`);}},[ie,Ee,l,A]),ge=Qe.useCallback(ee=>{ee.kind==="option"&&ee.option.disabled||pe(Hm(ee),cC(ee));},[pe]),re=ee=>{if(l||ee.length===0)return;let We=new Set(ee),$e=ee.map(ne=>$.find(Me=>Me.value===ne)?.label??ne);Ee(A.filter(ne=>!We.has(ne)),`${$e.join(", ")} removed.`);},se=ee=>{Z(ee),F(null),W(true),u?.(ee);},ve=ee=>{if(le.length===0){F(null);return}F(We=>We===null?ee>0?0:le.length-1:(We+ee+le.length)%le.length);},je=ee=>{if(l)return;let We=q===null?void 0:le[q];switch(ee.key){case "ArrowDown":ee.preventDefault(),W(true),ve(1);break;case "ArrowUp":ee.preventDefault(),W(true),ve(-1);break;case "Home":le.length>0&&(ee.preventDefault(),W(true),F(0));break;case "End":le.length>0&&(ee.preventDefault(),W(true),F(le.length-1));break;case "Enter":We&&(ee.preventDefault(),ge(We));break;case " ":G===""&&We&&(ee.preventDefault(),ge(We));break;case "Escape":ee.preventDefault(),G!==""?se(""):(W(false),F(null));break;case "Backspace":G===""&&A.length>0&&(ee.preventDefault(),re([A[A.length-1]]));break;}},Ze=J.filter(ee=>!ee.disabled&&!A.includes(ee.value)).map(ee=>ee.value),wr=c===void 0?Ze.length:Math.max(0,c-A.length),Dt=Math.min(Ze.length,wr),Nr=Dt===Ze.length?`Select all ${Ze.length} matching`:`Select ${Dt} of ${Ze.length} matching`,Tr=()=>{if(l||Dt===0)return;let ee=Ze.slice(0,Dt);Ee([...A,...ee],`${ee.length} matching options selected.`);},xt=s?"loading":e.length===0?"empty":J.length===0&&G.trim()!==""?"no-match":null,Zt=Ue[i].text;return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex w-full flex-col gap-1",S),"data-testid":"multiselect",children:[jsxRuntime.jsx(Ye,{size:i,htmlFor:E,isRequired:h,...w?{className:"sr-only"}:{},children:n}),jsxRuntime.jsxs(St,{children:[jsxRuntime.jsx("div",{className:"pointer-events-none absolute left-3 top-1/2 z-10 flex -translate-y-1/2 items-center",children:s?jsxRuntime.jsx(Wr,{size:16,color:"text-text-secondary"}):jsxRuntime.jsx(V,{name:"MagnifyingGlass",className:tailwindMerge.twMerge(UD[i],"text-text-secondary")})}),jsxRuntime.jsx("input",{ref:D,id:E,type:"text",role:"combobox",autoComplete:"off","aria-expanded":z,"aria-controls":I,"aria-haspopup":"listbox","aria-autocomplete":"list","aria-activedescendant":z&&q!==null&&le[q]?`${P}-row-${q}`:void 0,"aria-required":h||void 0,"aria-invalid":b?true:void 0,value:G,placeholder:a,disabled:l,onChange:ee=>se(ee.target.value),onKeyDown:je,onFocus:ee=>{W(true),O(ee);},onBlur:ee=>{H(ee),x?.(ee);},className:zt({isDisabled:l,isFocused:B,isInvalid:!!b,size:i,className:tailwindMerge.twMerge(KD[i],"pr-3")})})]}),$.length>0&&jsxRuntime.jsx("div",{"data-testid":"multiselect-selection-region",role:"group","aria-label":`Selected ${n}`,className:"flex flex-wrap gap-1.5 rounded-[var(--control-border-radius)] border border-border-default bg-background-muted p-2",children:$.map(ee=>jsxRuntime.jsx(Yr,{size:YD[i],variant:"primary",isDisabled:l,removeLabel:`Remove ${ee.label}`,onRemove:()=>re([ee.value]),className:"shrink-0",children:ee.isUnknown?jsxRuntime.jsx("span",{"data-testid":`multiselect-selection-unknown-${ee.value}`,title:"Not in the current option list",children:`${ee.label} (custom)`}):ee.label},ee.value))}),f&&jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(te,{variant:"link",size:i,onPress:Tr,isDisabled:l||Dt===0,children:Nr}),jsxRuntime.jsx(te,{variant:"link",size:i,onPress:()=>re(A),isDisabled:l||A.length===0,children:"Clear all"})]}),jsxRuntime.jsx("div",{id:I,role:"listbox","aria-multiselectable":"true","aria-label":`${n} options`,hidden:!z,className:tailwindMerge.twMerge(Zt,"max-h-[260px] overflow-y-auto rounded-[var(--control-border-radius)] border border-border-input bg-background-input"),children:z&&le.map((ee,We)=>{let $e=A.includes(Hm(ee)),ne=l||ee.kind==="option"&&ee.option.disabled===true||!$e&&ie;return jsxRuntime.jsxs("div",{id:`${P}-row-${We}`,role:"option","aria-selected":$e,"aria-disabled":ne||void 0,"data-value":Hm(ee),"data-literal":ee.kind==="literal"?"true":void 0,"data-active":q===We?"true":void 0,onMouseDown:Me=>Me.preventDefault(),onClick:()=>{ne||(ge(ee),k.current?.focus());},className:tailwindMerge.twMerge("flex cursor-default items-center gap-2 px-3",Ue[i].paddingY,"text-text-primary",q===We&&"bg-background-hover",$e&&"bg-background-selected font-medium",ne&&"text-text-disabled"),children:[jsxRuntime.jsx(qu,{isSelected:$e,isDisabled:ne,className:"!w-4 !h-4"}),jsxRuntime.jsx("span",{className:"flex-1 truncate",children:cC(ee)}),ee.kind==="literal"&&jsxRuntime.jsx("span",{"data-testid":"multiselect-literal-badge",className:"italic text-text-secondary",children:"Use as typed"}),ee.kind==="option"&&ee.option.count!==void 0&&jsxRuntime.jsx("span",{"data-testid":`multiselect-count-${ee.option.value}`,className:"text-text-secondary",children:ee.option.count.toLocaleString()})]},WD(ee))})}),xt==="loading"&&jsxRuntime.jsx("div",{"data-testid":"multiselect-status-loading","data-status":"loading",children:jsxRuntime.jsxs(Te,{size:i,className:"flex items-center gap-2",children:[jsxRuntime.jsx(Wr,{size:14,color:"text-text-secondary"}),jsxRuntime.jsx("span",{children:"Loading options\u2026"})]})}),xt==="empty"&&jsxRuntime.jsx("div",{"data-testid":"multiselect-status-empty","data-status":"empty",children:jsxRuntime.jsxs(Te,{size:i,className:"flex items-center gap-2",children:[jsxRuntime.jsx(V,{name:"Tray",className:"h-4 w-4"}),jsxRuntime.jsx("span",{children:g??"No options available"})]})}),xt==="no-match"&&jsxRuntime.jsx("div",{"data-testid":"multiselect-status-no-match","data-status":"no-match",children:jsxRuntime.jsxs(Te,{size:i,className:"flex items-center gap-2 text-feedback-warning-text",children:[jsxRuntime.jsx(V,{name:"MagnifyingGlass",className:"h-4 w-4"}),jsxRuntime.jsx("span",{children:`No options match \u201C${G.trim()}\u201D`})]})}),m&&jsxRuntime.jsx("div",{"data-testid":"multiselect-truncation",children:jsxRuntime.jsx(Te,{size:i,children:p===void 0?"Showing a partial list \u2014 refine your search to see more":`Showing ${e.length} of ${p} \u2014 refine your search to see more`})}),c!==void 0&&jsxRuntime.jsx("div",{"data-testid":"multiselect-limit",children:jsxRuntime.jsx(Te,{size:i,children:ie?`${A.length} of ${c} selected \u2014 limit reached, remove one to choose another`:`${A.length} of ${c} selected`})}),y&&jsxRuntime.jsx(Te,{size:i,children:y}),b&&jsxRuntime.jsx(he,{size:i,children:b}),jsxRuntime.jsx("div",{"data-testid":"multiselect-live-region",role:"status","aria-live":"polite",className:"sr-only",children:X})]})}var dd="bg-background-surface border-l-[3px] border-y border-r border-border-default text-text-primary",qD={success:{container:dd,iconName:"CheckCircle",iconColor:"text-feedback-success-text",borderColor:"var(--color-feedback-success-border)"},error:{container:dd,iconName:"XCircle",iconColor:"text-feedback-error-text",borderColor:"var(--color-feedback-error-border)"},warning:{container:dd,iconName:"Warning",iconColor:"text-feedback-warning-text",borderColor:"var(--color-feedback-warning-border)"},info:{container:dd,iconName:"Info",iconColor:"text-feedback-info-text",borderColor:"var(--color-feedback-info-border)"}};function pd({id:e,message:t,variant:r="info",duration:o=5e3,dismissible:n=true,onDismiss:a,className:i}){let{container:s,iconName:l,iconColor:c,borderColor:d}=qD[r];return Qe.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:l,size:20,className:c}),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 rA={"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 md({notices:e,onDismiss:t,position:r="bottom-center",className:o}){let[n,a]=Qe.useState(false);if(Qe.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",rA[r],o),"aria-live":"polite","aria-atomic":"true",children:jsxRuntime.jsx(framerMotion.AnimatePresence,{mode:"sync",children:e.map(s=>jsxRuntime.jsx(pd,{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 uC=Qe.createContext(void 0);function pC({children:e,position:t="bottom-center",maxNotices:r=5,defaultDuration:o=5e3,defaultDismissible:n=true}){let[a,i]=Qe.useState([]),s=Qe.useCallback((u,m)=>{let p=`notice-${Date.now()}-${Math.random()}`,g={id:p,message:u,variant:m?.variant||"info",duration:m?.duration??o,dismissible:m?.dismissible??n};return i(f=>{let y=[...f,g];return y.length>r?y.slice(-r):y}),p},[r,o,n]),l=Qe.useCallback(u=>{i(m=>m.filter(p=>p.id!==u));},[]),c=Qe.useCallback(()=>{i([]);},[]),d={notices:a,addNotice:s,removeNotice:l,clearNotices:c};return jsxRuntime.jsxs(uC.Provider,{value:d,children:[e,jsxRuntime.jsx(md,{notices:a,onDismiss:l,position:t})]})}function mC(){let e=Qe.useContext(uC);if(!e)throw new Error("useNoticeContext must be used within a NoticeProvider");return e}function fC(){let{addNotice:e,removeNotice:t,clearNotices:r}=mC(),o=Qe.useCallback((l,c)=>e(l,c),[e]),n=Qe.useCallback((l,c)=>e(l,{...c,variant:"success"}),[e]),a=Qe.useCallback((l,c)=>e(l,{...c,variant:"error"}),[e]),i=Qe.useCallback((l,c)=>e(l,{...c,variant:"warning"}),[e]),s=Qe.useCallback((l,c)=>e(l,{...c,variant:"info"}),[e]);return {show:o,success:n,error:a,warning:i,info:s,dismiss:t,clear:r}}var cA={plain:"",contained:"bg-background-surface rounded-lg border border-border-default p-6",bordered:"border-y border-border-default py-6"},dA={none:"",sm:"my-4",md:"my-6 md:my-8",lg:"my-8 md:my-12"};function xi({id:e,title:t,description:r,actions:o,variant:n="plain",spacing:a="none",withDivider:i=false,headingAs:s="h2",className:l,children:c}){let d=Qe__namespace.default.useId(),u=e?`${e}-heading`:d,m=t||r||o;return jsxRuntime.jsxs("section",{id:e,className:tailwindMerge.twMerge(dA[a],cA[n],l),"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&&c&&"mb-6"),children:[jsxRuntime.jsxs("div",{className:"min-w-0 flex-1",children:[t&&jsxRuntime.jsx(lr,{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})]}),c&&jsxRuntime.jsx("div",{className:"",children:t?jsxRuntime.jsx(rn,{children:c}):c})]})}xi.displayName="Section";function gd({sections:e,activeSection:t,onSectionChange:r,orientation:o="responsive",className:n,scrollBehavior:a="smooth",stickyTop:i="1.5rem",heading:s,sectionIdPrefix:l="section-",filterSection:c,scrollContainerId:d}){let u=Qe__namespace.useRef(null),m=Qe__namespace.useRef(null),[p,g]=Qe__namespace.useState(e[0]?.id||null),f=t??p,y=Qe__namespace.useCallback(()=>d?document.getElementById(d):null,[d]),b=Qe__namespace.useCallback(S=>document.getElementById(`${l}${S}`)??document.getElementById(S),[l]);Qe__namespace.useEffect(()=>{let S=window.location.hash;if(!S)return;let T=S.slice(1),R=T.startsWith(l)?T.slice(l.length):T,P=e.find(E=>E.id===R);P&&requestAnimationFrame(()=>{let E=b(P.id);if(!E)return;let I=y();if(I){let k=I.getBoundingClientRect(),D=E.getBoundingClientRect(),L=I.scrollTop+(D.top-k.top);I.scrollTo({top:Math.max(0,L),behavior:"instant"});}else E.scrollIntoView({behavior:"instant",block:"start"});r?r(P.id):g(P.id);});},[]),Qe__namespace.useEffect(()=>{if(t!==void 0&&r)return;let S=E=>{if(!E)return false;let I=window.getComputedStyle(E);return I.display!=="none"&&I.visibility!=="hidden"&&I.opacity!=="0"},T=()=>{let E=S(u.current),I=S(m.current);if(!E&&!I)return null;let k=y(),D=new IntersectionObserver(L=>{L.forEach(B=>{if(B.isIntersecting){let O=B.target.id.replace(l,"");r?r(O):g(O);}});},{root:k??void 0,rootMargin:"-20% 0px -70% 0px",threshold:0});return e.forEach(L=>{let B=b(L.id);B&&D.observe(B);}),D},R=T(),P=()=>{R&&R.disconnect(),R=T();};return window.addEventListener("resize",P),()=>{R&&R.disconnect(),window.removeEventListener("resize",P);}},[e,l,t,r,o,y,b]);let h=Qe__namespace.useMemo(()=>c?e.filter(c):e,[e,c]),x=Qe__namespace.useCallback((S,T)=>{S.preventDefault();let R=b(T);if(R){let P=y();if(P){let E=P.getBoundingClientRect(),I=R.getBoundingClientRect(),k=P.scrollTop+(I.top-E.top),D=Math.max(0,P.scrollHeight-P.clientHeight);P.scrollTo({top:Math.max(0,Math.min(k,D)),behavior:a});}else {let E=R.getBoundingClientRect().top+window.scrollY,I=Math.max(0,document.documentElement.scrollHeight-window.innerHeight),k=Math.max(0,Math.min(E,I));window.scrollTo({top:k,behavior:a});}window.history.pushState&&window.history.pushState(null,"",`#${l}${T}`),r?r(T):g(T);}},[l,a,r,y,b]);if(h.length===0)return null;let C=o==="vertical"?"":o==="horizontal"?"hidden":"hidden lg:block",w=o==="horizontal"?"":o==="vertical"?"hidden":"lg:hidden";return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("nav",{ref:u,className:tailwindMerge.twMerge(C,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(S=>{let T=f===S.id;return jsxRuntime.jsx("a",{href:`#${l}${S.id}`,onClick:R=>x(R,S.id),className:tailwindMerge.twMerge("block w-full text-left px-3 py-2 rounded-md text-sm transition-colors no-underline",T?"bg-background-muted text-text-primary font-semibold":"text-text-secondary hover:text-text-primary hover:bg-background-hover"),"aria-current":T?"page":void 0,children:jsxRuntime.jsxs("span",{className:"flex items-center justify-between gap-2",children:[jsxRuntime.jsx("span",{children:S.label}),S.count!==void 0&&jsxRuntime.jsx("span",{className:"text-xs tabular-nums text-text-secondary",children:S.count})]})},S.id)})]})}),jsxRuntime.jsx("nav",{ref:m,className:tailwindMerge.twMerge(w,"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(S=>{let T=f===S.id;return jsxRuntime.jsx("a",{href:`#${l}${S.id}`,onClick:R=>x(R,S.id),className:tailwindMerge.twMerge("inline-block px-4 py-2 rounded-md text-sm whitespace-nowrap transition-colors no-underline",T?"bg-background-muted text-text-primary font-semibold":"text-text-secondary hover:text-text-primary hover:bg-background-hover"),"aria-current":T?"page":void 0,children:jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("span",{children:S.label}),S.count!==void 0&&jsxRuntime.jsxs("span",{className:"text-xs tabular-nums text-text-secondary",children:["(",S.count,")"]})]})},S.id)})})})]})}function bC(e){return "primary"}var bd=Qe__namespace.createContext({variant:"primary"});function bA({orientation:e,className:t=""}){return `flex flex-col w-full ${{horizontal:"",vertical:"flex-row"}[e]||""} ${t}`.trim()}function xd({variant:e="primary",...t}){let r=bC();return jsxRuntime.jsx(bd.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)=>bA({...n,className:o}))})})})}function hA({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 yd({variant:e,sticky:t=false,...r}){let o=Qe__namespace.useContext(bd),n=bC(e??o.variant);return jsxRuntime.jsx(bd.Provider,{value:{variant:n},children:jsxRuntime.jsx(reactAriaComponents.TabList,{...r,className:reactAriaComponents.composeRenderProps(r.className,(a,i)=>hA({...i,sticky:t,className:a||""}))})})}function xA({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=`${rt()} ${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 vd(e){let{variant:t}=Qe__namespace.useContext(bd);return jsxRuntime.jsx(reactAriaComponents.Tab,{...e,"data-testid":e.id?`tab-${e.id}`:void 0,className:reactAriaComponents.composeRenderProps(e.className,(r,o)=>xA({...o,className:r,isSelected:o.isSelected,variant:t}))})}function yA({className:e=""}){let t="block w-full mt-4 text-text-primary",r=rt();return `${t} ${r} ${e}`.trim()}function hC(e){return jsxRuntime.jsx(reactAriaComponents.TabPanel,{...e,className:reactAriaComponents.composeRenderProps(e.className,(t,r)=>yA({...r,className:t||""}))})}function Ca({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 vA({title:e,subtitle:t,breadcrumbs:r,breadcrumbsNode:o,media:n,actions:a,metadata:i,headingAs:s,sticky:l,stickyTop:c="0",zIndex:d=10,isLoading:u=false,className:m}){let p=l?"sticky bg-background-body":"",g=l?{top:c,zIndex:d}:{};return u?jsxRuntime.jsxs("header",{className:tailwindMerge.twMerge("mb-8 md:mb-12",p,m),style:g,"aria-labelledby":"page-title",children:[o||r?.length?jsxRuntime.jsx("div",{className:"mb-2 md:mb-4",children:jsxRuntime.jsx(Y,{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(Y,{className:"h-8 w-64"})}),t?jsxRuntime.jsx(Y,{className:"mt-2 h-5 w-48"}):null,i?jsxRuntime.jsx(Y,{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((f,y)=>jsxRuntime.jsx(Y,{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((f,y)=>jsxRuntime.jsx(Y,{className:"h-9 w-24"},y))}):null]}),n?jsxRuntime.jsx("div",{className:"mt-4 md:mt-6",children:jsxRuntime.jsx(Y,{className:"h-64 w-full"})}):null]}):jsxRuntime.jsxs("header",{className:tailwindMerge.twMerge("mb-8 md:mb-12",p,m),style:g,"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(xl,{children:r.map((f,y)=>{let{label:b,...h}=f;return jsxRuntime.jsx(yl,{...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(lr,{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((f,y)=>jsxRuntime.jsx(Qe__namespace.default.Fragment,{children:f},y))}):null]}),a?.length?jsxRuntime.jsx("div",{className:"hidden md:flex md:items-start gap-2 shrink-0",children:a.map((f,y)=>jsxRuntime.jsx(Qe__namespace.default.Fragment,{children:f},y))}):null]}),n?jsxRuntime.jsx("div",{className:"mt-4 md:mt-6",children:n}):null]})}function CA({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(xd,{selectedKey:t,defaultSelectedKey:r||e[0]?.id,onSelectionChange:i,children:[jsxRuntime.jsx(yd,{className:"after:bg-transparent",children:e.map(s=>jsxRuntime.jsx(vd,{id:s.id,isDisabled:s.disabled,children:s.label},s.id))}),a]})})}function SA({children:e,className:t,withSectionNav:r,navWidth:o="240px",gap:n="2rem",activeSection:a,onSectionChange:i,scrollBehavior:s,sectionIdPrefix:l="section-",scrollContainerId:c,navHeading:d,navStickyTop:u}){return r?jsxRuntime.jsx(NA,{position:r,navWidth:o,gap:n,activeSection:a,onSectionChange:i,scrollBehavior:s,sectionIdPrefix:l,scrollContainerId:c,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 wA({children:e,sticky:t=true,className:r}){return jsxRuntime.jsx("aside",{className:tailwindMerge.twMerge(t?"lg:sticky lg:top-20":"",r),children:e})}function NA({activeSection:e,onSectionChange:t,position:r,navWidth:o,gap:n,children:a,className:i,scrollBehavior:s,sectionIdPrefix:l,scrollContainerId:c,navHeading:d,navStickyTop:u}){let m=Qe__namespace.default.useMemo(()=>{let x=[];return Qe__namespace.default.Children.forEach(a,C=>{if(Qe__namespace.default.isValidElement(C)&&(C.type===xi||typeof C.type=="object"&&C.type?.displayName==="Section"||typeof C.type=="function"&&C.type?.displayName==="Section")){let w=C.props;w.id?x.push({id:w.id,label:w.navLabel||(typeof w.title=="string"?w.title:`Section ${w.id}`)}):process.env.NODE_ENV==="development"&&console.warn("Section component used within PageLayout.Content with withSectionNav must have an id prop");}}),x},[a]),p=Qe__namespace.default.useMemo(()=>{let x=Qe__namespace.default.Children.map(a,C=>{if(Qe__namespace.default.isValidElement(C)&&(C.type===xi||typeof C.type=="object"&&C.type?.displayName==="Section"||typeof C.type=="function"&&C.type?.displayName==="Section")){let w=C.props;if(w.id)return Qe__namespace.default.cloneElement(C,{...w,id:`${l}${w.id}`})}return C});return jsxRuntime.jsx("div",{className:"space-y-8 md:space-y-12",children:x})},[a,l]),g=(x,C)=>jsxRuntime.jsx(gd,{sections:m,activeSection:e,onSectionChange:t,orientation:x,scrollBehavior:s,sectionIdPrefix:l,scrollContainerId:c,heading:d,className:C});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:g("horizontal")}),p]});let f=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:g("horizontal","py-3 mt-0")}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("lg:grid",i),style:{gridTemplateColumns:f,gap:n,"--nav-width":o},children:[r==="left"&&jsxRuntime.jsx("nav",{className:h,style:b,children:g("vertical")}),p,r==="right"&&jsxRuntime.jsx("nav",{className:h,style:b,children:g("vertical")})]})]})}function TA({children:e,className:t}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-1 overflow-auto min-h-0",t),children:e})}Ca.Header=vA;Ca.Tabs=CA;Ca.Content=SA;Ca.Aside=wA;Ca.ScrollableContent=TA;function PA(e){return typeof e=="object"&&e!==null&&"features"in e&&Array.isArray(e.features)&&"type"in e&&typeof e.type=="string"}var RA=process.env.NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN||"";function vC({label:e,selectedKey:t,defaultSelectedKey:r,onSelectionChange:o,placeholder:n="Enter a location...",errorMessage:a,description:i,size:s="md",tooltip:l,isRequired:c,isDisabled:d,showErrors:u=true,autoFocus:m=false,onSelect:p,searchTypes:g=["place","address"],defaultFilter:f,validationResult:y,countryRestrictions:b,proximity:h="ip",hideCountry:x=false,showIcon:C=true,useMobileTray:w=true,className:S}){let T=Qe.useRef(new WeakMap),R=Qe.useRef([]),P={requestType:"REST",method:"GET",url:"https://api.mapbox.com/geocoding/v5/mapbox.places/{q}.json",extraParams:{access_token:RA,types:g.join(","),limit:"5",...b?.length?{country:b.join(",").toLowerCase()}:{},...h?{proximity:h==="ip"?"ip":h.join(",")}:{}},shouldLoad:k=>k.length>0,transformResponse:k=>{if(!PA(k))return [];let D=k.features.map(L=>{let B={id:L.id,name:L.place_name};return T.current.set(B,{type:L.place_type[0],center:L.center,context:L.context,address:L.address,text:L.text,properties:L.properties}),B});return D.length>0&&(R.current=D),D}},E=k=>{let D=T.current.get(k),L=k.name.split(", "),B=L[0],O=L.slice(1);x&&O.length>0&&(O=O.slice(0,-1));let H=O.join(", ");return jsxRuntime.jsxs("div",{className:"flex items-center gap-3 py-0.5",children:[C&&jsxRuntime.jsx(V,{name:D?.type==="address"?"MapPin":D?.type==="place"?"Buildings":D?.type==="region"?"MapPinArea":D?.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:B}),H&&jsxRuntime.jsx("span",{className:"truncate text-sm text-text-secondary",children:H})]})]})},I=k=>k?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(gl,{"data-testid":"autocomplete","data-config":JSON.stringify({types:g.join(","),country:b?.join(",")?.toLowerCase(),proximity:h==="ip"?"ip":h?.join(",")}),label:e||void 0,selectedKey:t,defaultSelectedKey:r,onSelectionChange:k=>{if(o?.(k),k){let L=R.current.find(B=>B.id===k);if(L){let B=T.current.get(L);B&&p({id:L.id,place_name:L.name,place_type:[B.type],center:B.center,context:B.context,address:B.address,text:B.text,properties:B.properties});}}},requestConfig:P,placeholder:n,errorMessage:a,description:i,size:s,tooltip:l,isRequired:c,isDisabled:d,showErrors:u,autoFocus:m,renderItem:E,renderLeftIcon:I,defaultFilter:f,validationResult:y,hideChevron:true,useMobileTray:w,className:S})}function SC({label:e,rightLabel:t,progressWidth:r=64,hideLabels:o=false,...n}){return jsxRuntime.jsx(reactAriaComponents.ProgressBar,{...n,className:Ae(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 wC({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:ir("prose",i,s,o),...a,children:n})}function FA(e="2"){return {1:"p-2 text-xs",2:"p-3 text-sm",3:"p-4 text-base"}[e]}function BA(e){return e?"border-action-primary text-action-primary":"border-border text-text-primary"}function VA(){return "opacity-50 cursor-not-allowed"}function NC({value:e,isDisabled:t,className:r,children:o,size:n="2",variant:a="primary"}){return jsxRuntime.jsx(reactAriaComponents.Radio,{value:e,isDisabled:t,className:Ae(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:l})=>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||l)&&!s&&"hover:bg-background-hover hover:border-border-hover",FA(n),BA(s),(t||l)&&VA(),r),children:o})})}function TC({value:e,defaultValue:t,onChange:r,isDisabled:o,isReadOnly:n,isRequired:a,className:i,children:s,size:l="2",variant:c="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:Ae(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:Qe__namespace.default.Children.map(s,m=>Qe__namespace.default.isValidElement(m)?Qe__namespace.default.cloneElement(m,{size:l,variant:c}):m)})}function WA(e){return "primary"}var kC=Qe.createContext({variant:"primary"});function PC(e){let{variant:t="primary",...r}=e,o=WA();return jsxRuntime.jsx(kC.Provider,{value:{variant:o},children:jsxRuntime.jsxs(reactAriaComponents.RadioGroup,{...r,className:Ae(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(Te,{children:e.description}),jsxRuntime.jsx(he,{children:typeof e.errorMessage=="function"&&e.validationResult?e.errorMessage(e.validationResult):typeof e.errorMessage=="string"?e.errorMessage:null})]})})}function UA({isSelected:e,isInvalid:t,isDisabled:r}){let n=[rt(),"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 RC(e){return Qe.useContext(kC),jsxRuntime.jsx(reactAriaComponents.Radio,{...e,className:Ae(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:UA(t)}),e.children]})})}var $A={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"}},Ci=({isActive:e=false,onPress:t,children:r})=>jsxRuntime.jsx(te,{variant:e?"secondary":"ghost",size:"sm",onPress:t,className:"p-1",children:r});function eI({initialUrl:e,isOpen:t,onClose:r,onSubmit:o}){let[n,a]=Qe.useState(e);return Qe__namespace.default.useEffect(()=>{a(e);},[e]),jsxRuntime.jsx(kr,{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(_t,{title:"Insert Link",onClose:r}),jsxRuntime.jsx("div",{className:"p-6",children:jsxRuntime.jsx(qr,{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(te,{variant:"secondary",onPress:r,children:"Cancel"}),jsxRuntime.jsx(te,{type:"submit",children:"Save"})]})]})})})})}function LC({initialContent:e="",onChange:t,className:r,isDisabled:o=false,placeholder:n="Start typing...",id:a,size:i="md",headingLevels:s=[1,2]}){let l=$A[i],[c,d]=Qe.useState(false),u=react.useEditor({immediatelyRender:false,extensions:[qA__default.default.configure({heading:s.length>0?{levels:s}:false}),YA__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:g})=>{t?.(g.getHTML());},editorProps:{attributes:{class:tailwindMerge.twMerge(`prose ${l.prose} max-w-none`,"focus:outline-none","[&>*:first-child]:mt-0 [&>*:last-child]:mb-0")}}}),m=()=>{d(true);},p=g=>{g===""?u?.chain().focus().unsetLink().run():u?.chain().focus().setLink({href:g}).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:g})=>g.isActive("link")&&!c,className:"flex items-center gap-1 rounded-md border border-border-input bg-background-surface p-1 shadow-md",children:[jsxRuntime.jsxs(te,{variant:"ghost",size:"sm",className:"h-8 px-2",onPress:()=>{let g=u.getAttributes("link").href;g&&window.open(g,"_blank","noopener,noreferrer");},children:[jsxRuntime.jsx(V,{name:"ArrowSquareOut",className:"mr-1 h-4 w-4"}),"Open"]}),jsxRuntime.jsxs(te,{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(te,{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(eI,{isOpen:c,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",l.toolbar),children:[s.map(g=>jsxRuntime.jsx(Ci,{isActive:u.isActive("heading",{level:g}),onPress:()=>u.chain().focus().toggleHeading({level:g}).run(),children:jsxRuntime.jsxs("span",{className:"text-xs font-bold",children:["H",g]})},g)),jsxRuntime.jsx(Ci,{isActive:u.isActive("bold"),onPress:()=>u.chain().focus().toggleBold().run(),children:jsxRuntime.jsx("span",{className:"text-xs font-bold",children:"B"})}),jsxRuntime.jsx(Ci,{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(Ci,{isActive:u.isActive("bulletList"),onPress:()=>u.chain().focus().toggleBulletList().run(),children:jsxRuntime.jsx(V,{name:"ListBullets",className:"h-4 w-4"})}),jsxRuntime.jsx(Ci,{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(Ci,{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",l.contentWrapper),children:[jsxRuntime.jsx(react.EditorContent,{editor:u,className:tailwindMerge.twMerge("w-full outline-none focus:outline-none",l.contentPadding,"[&_.ProseMirror]:min-h-[inherit]","[&_.ProseMirror]:outline-none [&_.ProseMirror]:focus:outline-none",l.h1,l.h2,l.p,"[&_.ProseMirror_ul]:list-disc","[&_.ProseMirror_ol]:list-decimal",l.list,l.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",l.placeholderPos,l.placeholderText),children:n})]})]}):null}function DC({streetAddress:e,city:t,state:r,postalCode:o,longitude:n,latitude:a,href:i,LinkComponent:s,variant:l="outlined",layout:c="stacked",showMap:d=true,mapHeight:u=200,mapboxAccessToken:m,isLoading:p=false,className:g,contentClassName:f,showMapExpandToggle:y=false,expandedMapTitle:b="Explore map",expandedMapAddressLabel:h,piiEntity:x}){let C=[];t&&C.push(t),r&&o?C.push(`${r} ${o}`):r?C.push(r):o&&C.push(o);let w=C.join(", "),S=h||[e,w].filter(Boolean).join(", "),T=d&&n!==void 0&&a!==void 0,R=({children:E,className:I})=>i?s?jsxRuntime.jsx(s,{href:i,className:I,children:E}):jsxRuntime.jsx(ut,{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=c==="row";return jsxRuntime.jsxs(_e,{variant:l,className:tailwindMerge.twMerge(E?"flex flex-col md:flex-row":"flex flex-col",g),children:[T&&jsxRuntime.jsx(_e.Media,{aspectRatio:"auto",className:tailwindMerge.twMerge(E&&"md:order-2 md:flex-[2] md:min-w-0"),children:jsxRuntime.jsx(Y,{width:"100%",height:u})}),jsxRuntime.jsxs(_e.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(Y,{width:"100%",height:16}),jsxRuntime.jsx(Y,{width:"80%",height:16})]})]})}let P=c==="row";return jsxRuntime.jsxs(_e,{variant:l,className:tailwindMerge.twMerge("group/card relative",i&&"cursor-pointer",P?"flex flex-col md:flex-row":"flex flex-col",g),children:[i&&jsxRuntime.jsx(R,{className:"after:absolute after:inset-0 after:z-10",children:jsxRuntime.jsx("span",{className:"sr-only",children:e})}),T&&jsxRuntime.jsx(_e.Media,{aspectRatio:"auto",className:tailwindMerge.twMerge(P&&"md:order-2 md:flex-[2] md:min-w-0"),children:jsxRuntime.jsx(hi,{height:u,initialViewState:{longitude:n,latitude:a,zoom:14},showMarker:true,mapboxAccessToken:m,showExpandToggle:y,expandedMapTitle:b,expandedMapAddressLabel:S})}),jsxRuntime.jsx(_e.Content,{className:tailwindMerge.twMerge("px-4 md:px-6",P&&"md:order-1 md:flex-[1] md:flex-shrink-0 md:flex md:flex-col md:justify-center",f),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}),w&&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:w})]})})]})}function IC({site:e,contact:t,LinkComponent:r,variant:o="outlined",layout:n="stacked",showMap:a=true,mapHeight:i=200,mapboxAccessToken:s,showEmail:l=true,showPhone:c=false,isLoading:d=false,className:u,contentClassName:m,fullHeight:p=false,showMapExpandToggle:g=false,expandedMapTitle:f="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(", "),C=a&&e.longitude!==void 0&&e.latitude!==void 0,w=t?`${t.firstName} ${t.lastName}`.trim():"",S=({children:R,href:P,className:E})=>P?r?jsxRuntime.jsx(r,{href:P,className:E,children:R}):jsxRuntime.jsx(ut,{href:P,variant:"unstyled",className:tailwindMerge.twMerge("hover:underline",E),asButton:false,children:R}):jsxRuntime.jsx("span",{className:E,children:R});if(d){let R=n==="row";return jsxRuntime.jsxs(_e,{variant:o,className:tailwindMerge.twMerge(p&&"h-full",R?"flex flex-col md:flex-row":"flex flex-col",u),children:[C&&jsxRuntime.jsx(_e.Media,{aspectRatio:"auto",className:tailwindMerge.twMerge(R&&"md:order-2 md:flex-[2] md:min-w-0",p&&"flex-1"),children:jsxRuntime.jsx(Y,{width:"100%",height:p?"100%":i})}),jsxRuntime.jsxs(_e.Content,{className:tailwindMerge.twMerge("space-y-4 px-4 py-4",R&&"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(Y,{width:"100%",height:16}),jsxRuntime.jsx(Y,{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(Y,{width:40,height:40,className:"rounded flex-shrink-0"}),jsxRuntime.jsxs("div",{className:"flex-1 space-y-1",children:[jsxRuntime.jsx(Y,{width:"50%",height:14}),jsxRuntime.jsx(Y,{width:"100%",height:12})]})]})]})]})]})}let T=n==="row";return jsxRuntime.jsxs(_e,{variant:o,className:tailwindMerge.twMerge("group/card relative",e.href&&"cursor-pointer",p&&"h-full",T?"flex flex-col md:flex-row":"flex flex-col",u),children:[e.href&&jsxRuntime.jsx(S,{href:e.href,className:"after:absolute after:inset-0 after:z-10",children:jsxRuntime.jsx("span",{className:"sr-only",children:e.streetAddress})}),C&&jsxRuntime.jsx(_e.Media,{aspectRatio:"auto",className:tailwindMerge.twMerge(T&&"md:order-2 md:flex-[2] md:min-w-0",p&&"flex-1"),children:jsxRuntime.jsx(hi,{height:p?"100%":i,initialViewState:{longitude:e.longitude,latitude:e.latitude,zoom:14},showMarker:true,mapboxAccessToken:s,showExpandToggle:g,expandedMapTitle:f,expandedMapAddressLabel:x})}),jsxRuntime.jsxs(_e.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",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(Ho,{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(S,{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:w})}):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:w}),jsxRuntime.jsxs("div",{className:"space-y-0.5",children:[l&&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(ut,{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})]}),c&&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(ut,{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:Ia(t.phone)})]})]})]})]})]})]})]})}function FC({label:e,description:t,tooltip:r,errorMessage:o,size:n="md",className:a,value:i,defaultValue:s=0,onChange:l,min:c=0,max:d=100,step:u=1,disabled:m,showValue:p=true}){let g=typeof i=="number",[f,y]=Qe__namespace.default.useState(s),b=g?i:f,h=Math.min(Math.max(b,c),d),x=Math.max(d-c,1e-5),C=(h-c)/x*100;return jsxRuntime.jsxs("div",{className:Ae(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:`${C}%`},"aria-hidden":true}),jsxRuntime.jsx("input",{type:"range",min:c,max:d,step:u,value:b,disabled:m,"aria-invalid":!!o,onChange:w=>{let S=Number(w.currentTarget.value);g||y(S),l?.(S);},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(Te,{className:"mt-2 text-text-secondary",children:t}),o&&jsxRuntime.jsx(he,{className:"mt-1",children:o})]})}var iI=Qe__namespace.default.createContext({orientation:"horizontal",isResizing:false});function VC(e,t){return e===void 0?t:e}function sI(e,t){return typeof e=="number"?e:typeof e=="string"&&e.endsWith("%")?Number.parseFloat(e)/100*t:Number.parseFloat(e.toString())}function Sd({asideWidth:e,asideHeight:t,minAsideWidth:r=240,minAsideHeight:o=200,minMainWidth:n=400,minMainHeight:a=300,orientation:i="horizontal",resizable:s=false,onAsideResize:l,onResizeStart:c,onResizeEnd:d,className:u,dividerClassName:m,children:p}){let g=Qe.useRef(null),[f,y]=Qe.useState(false),b=i==="horizontal"?400:300,h=VC(i==="horizontal"?e:t,b),[x,C]=Qe.useState(null),w=Qe.useCallback(k=>{if(!g.current||!f)return;let D=g.current.getBoundingClientRect(),L=i==="horizontal"?D.width:D.height,B=i==="horizontal"?k.clientX:k.clientY,H=(i==="horizontal"?D.right:D.bottom)-B,G=L-H,Z=i==="horizontal"?r:o,z=i==="horizontal"?n:a;H<Z||G<z||(C(H),l?.(H));},[f,i,r,o,n,a,l]),S=Qe.useCallback(()=>{y(false),d?.();},[d]),T=Qe.useCallback(k=>{k.preventDefault(),k.stopPropagation(),y(true),c?.();},[c]);Qe.useEffect(()=>{if(f)return document.addEventListener("mousemove",w),document.addEventListener("mouseup",S),document.body.style.cursor=i==="horizontal"?"col-resize":"row-resize",document.body.style.userSelect="none",()=>{document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",S),document.body.style.cursor="",document.body.style.userSelect="";}},[f,w,S,i]);let R=Qe__namespace.default.Children.toArray(p).find(k=>Qe__namespace.default.isValidElement(k)&&k.type===zC),P=Qe__namespace.default.Children.toArray(p).find(k=>Qe__namespace.default.isValidElement(k)&&k.type===HC),E=x??h,I=typeof E=="number"?`${E}px`:E;return jsxRuntime.jsx(iI.Provider,{value:{orientation:i,isResizing:f},children:jsxRuntime.jsxs("div",{ref:g,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:R}),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:T,role:"separator","aria-orientation":i,"aria-label":"Resize divider",tabIndex:0,onKeyDown:k=>{if(!g.current)return;let D=g.current.getBoundingClientRect(),L=i==="horizontal"?D.width:D.height,B=x??sI(h,L),O=20,H=i==="horizontal"?r:o,G=i==="horizontal"?n:a;if(i==="horizontal"){if(k.key==="ArrowLeft"){let Z=Math.min(B+O,L-G);C(Z),l?.(Z);}else if(k.key==="ArrowRight"){let Z=Math.max(B-O,H);C(Z),l?.(Z);}}else if(k.key==="ArrowUp"){let Z=Math.min(B+O,L-G);C(Z),l?.(Z);}else if(k.key==="ArrowDown"){let Z=Math.max(B-O,H);C(Z),l?.(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",f&&"bg-action-brand",f&&(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:P})]})})}function zC({className:e,children:t}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-full h-full",e),children:t})}function HC({className:e,children:t}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-full h-full",e),children:t})}Sd.Main=zC;Sd.Aside=HC;var cI=e=>{let t=zt({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 GC({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,required:a,transparent:i,isInvalid:s,isDisabled:l,isResizable:c=false,className:d,validationResult:u,reserveErrorSpace:m=true,...p}){let{isFocused:g,handleFocus:f,handleBlur:y}=ur();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(St,{children:jsxRuntime.jsx("textarea",{...p,required:a,onFocus:b=>{p.onFocus&&p.onFocus(b),f(b);},onBlur:b=>{p.onBlur&&p.onBlur(b),y(b);},className:cI({isInvalid:s,isDisabled:l,isResizable:c,isFocused:g,size:o,transparent:i,className:d}),disabled:l})}),m?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(he,{size:o,children:r}):typeof r=="function"&&u?jsxRuntime.jsx(he,{size:o,children:r(u)}):t?jsxRuntime.jsx(Te,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(he,{size:o,className:"mt-1",children:r}):typeof r=="function"&&u?jsxRuntime.jsx(he,{size:o,className:"mt-1",children:r(u)}):t?jsxRuntime.jsx(Te,{size:o,className:"mt-1",children:t}):null})]})})}function YC({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,required:a,transparent:i,isInvalid:s,isDisabled:l,isResizable:c=false,className:d,validationResult:u,value:m="",onChange:p,chips:g=[],onChipsChange:f,triggerPattern:y="{{",onTriggerDetected:b,onTriggerDismissed:h,renderChip:x,chipVariant:C="primary",chipSize:w,...S}){let T=Qe.useRef(null),{isFocused:R,handleFocus:P,handleBlur:E}=ur(),I=w||"sm",k=Qe.useRef(null),D=Qe.useCallback(z=>{let W="",q=F=>{if(F.nodeType===Node.TEXT_NODE){if(!F.parentElement?.closest("[data-chip-id]")){let N=F.textContent||"";W+=N;}}else if(F.nodeType===Node.ELEMENT_NODE){let X=F;if(X.hasAttribute("data-chip-id")){let N=X.getAttribute("data-chip-id");W+=`{{${N}}}`;return}else if(X.tagName==="BR"){W+=`
46
+ `,backgroundSize:"30px 30px"}})})})}var tC="color-mix(in srgb, var(--color-map-neutral-border) 8%, transparent)",mD={backgroundImage:`linear-gradient(to right, ${tC} 1px, transparent 1px), linear-gradient(to bottom, ${tC} 1px, transparent 1px)`,backgroundSize:"24px 24px"},fD={backgroundColor:"color-mix(in srgb, var(--color-map-marker-default) 12%, transparent)"};function td({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:mD}),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:fD}),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 rC=Qe.createContext(null);function oC({mapStyleUrl:e,children:t}){return jsxRuntime.jsx(rC.Provider,{value:e??null,children:t})}function fi(){return Qe.useContext(rC)}var nC={streets:"streets",satellite:"satellite",neutral:"neutral"},rd="streets";function od(e,t,r){if(r)return r;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 aC({longitude:e,latitude:t,showPulse:r=true,accuracy:o}){return jsxRuntime.jsx(SD.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 PD={name:"mercator"},RD=[],Ts=Qe__namespace.default.forwardRef(({initialViewState:e,mapStyleUrl:t,viewState:r,onViewStateChange:o,scrollEnabled:n=true,className:a,previewMode:i=false,previewModeCta:s,onPreviewModePress:l,mapType:c=rd,layers:d=[],mapboxAccessToken:u,transformRequest:m,isLoading:p=false,onLoad:g,controls:f="default",showUserLocation:y=true,onUserLocationChange:b,children:h,additionalInteractiveLayerIds:x=RD,onMapClick:C,showMarker:w=false,markerLocation:S},T)=>{let R=u??Gc();if(!R)return jsxRuntime.jsx("div",{className:`relative ${a||""}`,style:{width:"100%",height:"100%"},children:jsxRuntime.jsx(td,{className:"w-full h-full",message:"Map unavailable"})});let{isDarkTheme:P}=jt(),E=fi(),I=t??E,k=Qe.useRef(null),D=Qe.useRef(null),[L,B]=Qe.useState(false),[O,H]=Qe.useState(false);Qe.useEffect(()=>{$c();},[]);let[G,Z]=Qe.useState(false),z=Qe.useRef(0),[W,q]=Qe.useState(null),[F,X]=Qe.useState(null),N=Qe.useRef(null),v=Qe.useRef(null),[M,A]=Wc("interactiveMap.trackingLocation",false),[J,ae]=Qe.useState(false);Qe.useEffect(()=>{if(!navigator.geolocation){ae(true);return}if(M){if(!navigator.permissions?.query){ae(true);return}navigator.permissions.query({name:"geolocation"}).then(K=>{K.state!=="granted"&&A(false),ae(true);}).catch(()=>{ae(true);});}else ae(true);},[]),Qe.useEffect(()=>{let K=setTimeout(()=>{L||H(true);},200);return ()=>clearTimeout(K)},[L]),Qe.useEffect(()=>{v.current=null;},[c,P]),Qe.useEffect(()=>{if(L)return;let K=setInterval(()=>{if(k.current?.loaded()){B(true),H(false);let U=k.current.getMap?.();U&&v.current!==U&&(v.current=U,g?.()),clearInterval(K);}},200);return ()=>clearInterval(K)},[L,g]),Qe.useEffect(()=>{if(J){if(!M||i){N.current!==null&&(navigator.geolocation.clearWatch(N.current),N.current=null);return}if(!navigator.geolocation){console.warn("Geolocation is not supported by this browser.");return}return N.current=navigator.geolocation.watchPosition(K=>{let U={latitude:K.coords.latitude,longitude:K.coords.longitude,accuracy:K.coords.accuracy};X(U),b?.(U);},K=>{console.warn("Geolocation error:",K.message),X(null),b?.(null);},{enableHighAccuracy:true,maximumAge:3e4,timeout:3e4}),()=>{N.current!==null&&(navigator.geolocation.clearWatch(N.current),N.current=null);}}},[M,i,b,J]);let le=Qe.useCallback(()=>{B(true),H(false);let K=k.current?.getMap?.();K&&v.current!==K&&(v.current=K,g?.());},[g]),$=Qe.useCallback(()=>{k.current&&e&&(Z(false),z.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]),ie=Qe.useMemo(()=>f===false||f===null?[]:f==="default"||f===void 0?bm:f,[f]),Ee=Qe.useCallback(()=>{if(!navigator.geolocation){console.warn("Geolocation is not supported by this browser.");return}A(true),navigator.geolocation.getCurrentPosition(K=>{let{latitude:U,longitude:de}=K.coords;k.current&&k.current.jumpTo({center:[de,U],zoom:15});},K=>{console.warn("Geolocation error:",K.message),K.code===K.PERMISSION_DENIED&&A(false);},{enableHighAccuracy:true,timeout:1e4,maximumAge:0});},[]),pe=Qe.useMemo(()=>{if(i)return null;let K=ie.map(U=>U.type==="navigation"?{...U,onResetZoom:U.onResetZoom||$,onGeolocateClick:U.onGeolocateClick||Ee}:U);return Sm(K,{mapRef:k,layers:d,showResetButton:G})},[ie,k,i,d,$,G,Ee]),ge=Qe.useMemo(()=>{let K=[];return d.filter(U=>U.events?.onClick||U.events?.onMouseEnter||U.events?.onMouseLeave||U.tooltip||U.kind==="vector"&&U.revealChipOnHover).forEach(U=>{U.kind==="clusteredVector"?(K.push(`${U.id}-clusters`),K.push(`${U.id}-points`),K.push(`${U.id}-selected-point`)):K.push(U.id);}),[...K,...x]},[d,x]),re=Qe.useMemo(()=>{let K=new Map;return d.forEach(U=>{U.events&&(K.set(U.id,U.events),U.kind==="clusteredVector"&&(K.set(`${U.id}-clusters`,U.events),K.set(`${U.id}-points`,U.events),K.set(`${U.id}-selected-point`,U.events)));}),K},[d]),se=Qe.useMemo(()=>{let K=new Map;return d.forEach(U=>{U.tooltip&&(K.set(U.id,U.tooltip),U.kind==="clusteredVector"&&(K.set(`${U.id}-clusters`,U.tooltip),K.set(`${U.id}-points`,U.tooltip),K.set(`${U.id}-selected-point`,U.tooltip)));}),K},[d]),ve=Qe.useMemo(()=>{let K=new Map;return d.forEach(U=>{U.kind==="clusteredVector"&&(K.set(U.id,U),K.set(`${U.id}-clusters`,U),K.set(`${U.id}-points`,U),K.set(`${U.id}-selected-point`,U));}),K},[d]),je=Qe.useMemo(()=>{if(!w)return null;let K=S?.longitude??r?.longitude??e?.longitude,U=S?.latitude??r?.latitude??e?.latitude;return K===void 0||U===void 0?null:{longitude:K,latitude:U}},[w,S,r,e]),Ze=Qe.useCallback(K=>{if(i)return;let U=K.features?.[0];if(!U||!U.layer)return;let de=U.layer.id,oe=re.get(de),xe=se.get(de),Oe;U.geometry.type==="Point"?Oe=U.geometry.coordinates:Oe=[K.lngLat.lng,K.lngLat.lat];let _={id:U.id??U.properties?.id,lngLat:Oe,properties:U.properties||{},layerId:de},ue=ve.get(de),Q=U.properties?.cluster===true;if(ue&&Q){let Se=k.current;if(Se){let mo=Se.getZoom(),Ea=Math.min(mo+3,18);Se.flyTo({center:Oe,zoom:Ea,duration:1e3});}return}if(oe?.onClick&&oe.onClick(_),xe&&xe.trigger==="click"){let Se;ue&&"cluster"in xe?xe.point&&(Se=xe.point(_)):"content"in xe&&(Se=typeof xe.content=="function"?xe.content(_):xe.content),Se&&q({feature:_,content:Se,bare:xe.bare});}C&&C(K);},[re,se,i,C,ve,k,ge]),wr=Qe.useMemo(()=>new Set(d.filter(K=>K.kind==="vector"&&K.revealChipOnHover).map(K=>K.id)),[d]),Dt=Qe.useRef(null),Nr=Qe.useCallback(()=>{let K=Dt.current;if(!(!K||!k.current)){Dt.current=null;try{k.current.removeFeatureState({source:K.source,sourceLayer:K.sourceLayer,id:K.id},"hover");}catch{}}},[k]);Qe.useEffect(()=>{Dt.current=null;},[c,P,I]);let Tr=Qe.useCallback(K=>{let U=K.features?.find(oe=>oe.layer&&wr.has(oe.layer.id));if(!U||U.id==null){Nr();return}let de=Dt.current;de&&de.source===U.source&&de.id===U.id||(Nr(),k.current&&(Dt.current={source:U.source,sourceLayer:U.sourceLayer,id:U.id},k.current.setFeatureState({source:U.source,sourceLayer:U.sourceLayer,id:U.id},{hover:true})));},[wr,Nr,k]),xt=Qe.useCallback(K=>{let U=K.features?.[0];if(!U||!U.layer)return null;let de=U.layer.id,oe=se.get(de);if(!oe||oe.trigger!=="hover"&&oe.trigger!==void 0)return null;let xe;U.geometry.type==="Point"?xe=U.geometry.coordinates:xe=[K.lngLat.lng,K.lngLat.lat];let Oe={id:U.id??U.properties?.id,lngLat:xe,properties:U.properties||{},layerId:de},_;if(ve.get(de)&&"cluster"in oe){let Q=U.properties?.cluster===true;if(Q&&oe.cluster){let Se=U.properties?.point_count||0;_=oe.cluster(Se,Oe);}else !Q&&oe.point?_=oe.point(Oe):_=Q?`${U.properties?.point_count||0} items`:null;}else "content"in oe&&(_=typeof oe.content=="function"?oe.content(Oe):oe.content);return _?{feature:Oe,content:_,bare:oe.bare}:null},[se,ve]),Zt=Qe.useCallback(K=>{if(i)return;let U=K.features?.[0];if(!U||!U.layer)return;let de=U.layer.id,oe=re.get(de);if(oe?.onMouseEnter){let Oe;U.geometry.type==="Point"?Oe=U.geometry.coordinates:Oe=[K.lngLat.lng,K.lngLat.lat];let _={id:U.id??U.properties?.id,lngLat:Oe,properties:U.properties||{},layerId:de};oe.onMouseEnter(_);}let xe=xt(K);xe&&q(xe),k.current&&(k.current.getCanvas().style.cursor="pointer");},[re,i,k,xt]),ee=Qe.useCallback(K=>{if(i)return;Tr(K);let U=K.features?.[0];if(!U||!U.layer)return;let de=xt(K);if(de){q(oe=>oe&&oe.feature.layerId===de.feature.layerId&&oe.feature.id===de.feature.id?oe:de);return}q(oe=>{if(!oe)return oe;let xe=se.get(oe.feature.layerId);return xe&&(xe.trigger==="hover"||xe.trigger===void 0)?null:oe});},[i,xt,se,Tr]),We=Qe.useCallback(()=>{if(!i){if(Nr(),re.forEach(K=>{K.onMouseLeave?.();}),W){let K=W.feature.layerId,U=d.find(de=>de.id===K);if(!U){let de=K.replace(/-(?:clusters|points|selected-point|cluster-shadows|points-shadow|cluster-count)$/,"");U=d.find(oe=>oe.id===de);}U?.tooltip&&(U.tooltip.trigger||"hover")==="hover"&&q(null);}k.current&&(k.current.getCanvas().style.cursor="");}},[re,i,k,W,d,Nr]),$e=Qe.useCallback((K,U)=>{for(let de of d)if(de.tooltip&&!(U&&de.id!==U)){if(de.kind==="geojson"){if(typeof de.data=="string")continue;let oe=de.data,Oe=(oe.type==="FeatureCollection"?oe.features:[oe]).find(_=>_.id===K);if(Oe&&Oe.geometry.type==="Point")return {id:Oe.id,lngLat:Oe.geometry.coordinates,properties:Oe.properties||{},layerId:de.id}}else if(de.kind==="customPins"){let oe=de.data.find(xe=>xe.id===K||xe._id===K||xe.key===K);if(oe)return {id:K,lngLat:de.getPosition(oe),properties:oe,layerId:de.id}}}return null},[d]);Qe.useImperativeHandle(T,()=>({showTooltip:(K,U)=>{let de=$e(K,U);if(!de)return;let oe=d.find(xe=>xe.id===de.layerId);if(oe?.tooltip&&"content"in oe.tooltip){let xe=typeof oe.tooltip.content=="function"?oe.tooltip.content(de):oe.tooltip.content;q({feature:de,content:xe,bare:oe.tooltip.bare});}},hideTooltip:()=>{q(null);},getMap:()=>k.current,markMapAsMoved:()=>{Z(true);}}),[$e,d]);let ne=(K,U)=>m?m(K,U):{url:K},Me=p||O,Re=Qe.useMemo(()=>ws(d,c),[d,c]);return jsxRuntime.jsx("div",{ref:D,className:tailwindMerge.twMerge("relative flex h-full w-full overflow-hidden",i&&"cursor-pointer",a),onClick:i?l:void 0,children:jsxRuntime.jsxs("div",{style:{flex:1},children:[jsxRuntime.jsxs(SD__default.default,{ref:k,initialViewState:e,...r&&r,style:{width:"100%",height:"100%"},mapStyle:od(c,P,I),styleDiffing:false,projection:PD,mapboxAccessToken:R,transformRequest:ne,onLoad:le,onMove:i?void 0:K=>{if(K.originalEvent&&L){let U=K.originalEvent.type,de=Math.abs((K.viewState.latitude??0)-(e?.latitude??0)),oe=Math.abs((K.viewState.longitude??0)-(e?.longitude??0)),xe=Math.abs((K.viewState.zoom??0)-(e?.zoom??0));e&&(de>1e-4||oe>1e-4||xe>.1)&&(U==="mousemove"||U==="touchmove"||U==="pointermove"?Z(true):(U==="wheel"||U==="mousewheel")&&(z.current+=1,z.current>=3&&Z(true)));}o?.(K.viewState);},onClick:i?void 0:Ze,onMouseMove:i?void 0:ee,onMouseEnter:i?void 0:Zt,onMouseLeave:i?void 0:We,interactiveLayerIds:i?[]:ge,scrollZoom:i?false:n,dragPan:!i,dragRotate:!i,doubleClickZoom:!i,interactive:!i,attributionControl:false,children:[jsxRuntime.jsx(SD.AttributionControl,{position:"top-left"}),pe,Re,h,je&&jsxRuntime.jsx(SD.Marker,{longitude:je.longitude,latitude:je.latitude,anchor:"bottom",children:jsxRuntime.jsx(V,{name:"MapPin",size:36,className:"text-map-marker-default",weight:"fill"})}),y&&F&&jsxRuntime.jsx(aC,{longitude:F.longitude,latitude:F.latitude,accuracy:F.accuracy}),W&&jsxRuntime.jsx(SD.Popup,{longitude:W.feature.lngLat[0],latitude:W.feature.lngLat[1],offset:15,closeButton:false,closeOnClick:false,className:W.bare?"map-tooltip map-tooltip-bare":"map-tooltip",maxWidth:"none",children:W.content})]},`map-${c}-${P}-${I??"default"}`),Me&&jsxRuntime.jsx(ed,{}),i&&s&&jsxRuntime.jsx("div",{className:"absolute bottom-8 right-8 z-10",children:s})]})})});Ts.displayName="InteractiveMap";async function sC(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(Qe.createElement(r,{size:n,color:a,weight:i})),l=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(s)}`;await new Promise((c,d)=>{let u=new Image(n,n);u.onload=()=>{try{e.hasImage(t)||e.addImage(t,u,{sdf:!1}),c();}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=l;});}function hi({width:e="100%",height:t="100%",initialViewState:r={longitude:-122.4194,latitude:37.7749,zoom:14},isLoading:o=false,mapType:n="streets",mapStyleUrl:a,layers:i=[],mapboxAccessToken:s,showMarker:l=true,markerOffsetY:c=0,showAttribution:d=false,onLoad:u,className:m,showExpandToggle:p=false,expandedMapTitle:g="Explore map",expandedMapAddressLabel:f,schematicPlaceholder:y=false}){let b=s??Gc(),{isDarkTheme:h}=jt(),[x,C]=Qe.useState(false),[w,S]=Qe.useState(false),T=fi(),R=a??T,[P,E]=Qe.useState(false),I=Qe.useRef(null),k=Qe.useRef(null),D=Qe.useCallback(()=>E(true),[]),L=Qe.useCallback(()=>E(false),[]);Qe.useEffect(()=>{$c();},[]);let B={width:typeof e=="number"?`${e}px`:e,height:typeof t=="number"?`${t}px`:t};Qe.useEffect(()=>{let G=setTimeout(()=>{x||S(true);},200);return ()=>clearTimeout(G)},[x]);let O=Qe.useCallback(()=>{C(true),S(false),u?.();},[u]);Qe.useEffect(()=>{if(!k.current)return;let G=new ResizeObserver(()=>{I.current&&I.current.resize();});return G.observe(k.current),()=>{G.disconnect();}},[]);let H=o||w;return b?jsxRuntime.jsxs("div",{ref:k,style:B,className:`relative ${m||""}`,children:[jsxRuntime.jsxs(SD__default.default,{ref:I,mapboxAccessToken:b,initialViewState:r,style:{width:"100%",height:"100%"},mapStyle:od(n,h,R),onLoad:O,scrollZoom:false,dragPan:false,dragRotate:false,doubleClickZoom:false,touchZoomRotate:false,interactive:false,attributionControl:false,children:[d&&jsxRuntime.jsx(SD.AttributionControl,{position:"top-left"}),ws(i,n),l&&r.longitude!==void 0&&r.latitude!==void 0&&jsxRuntime.jsx(SD.Marker,{longitude:r.longitude,latitude:r.latitude,anchor:"bottom",offset:[0,c],children:jsxRuntime.jsx(V,{name:"MapPin",size:36,className:"text-map-marker-default",weight:"fill"})})]}),p&&jsxRuntime.jsx("div",{className:"absolute top-4 right-4 z-20",children:jsxRuntime.jsx(Hr,{icon:"ArrowsOutSimple",ariaLabel:"Expand map to fullscreen",onPress:D})}),p&&jsxRuntime.jsx(cr,{isOpen:P,onClose:L,title:g,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(Ts,{initialViewState:r,mapType:n,mapStyleUrl:R,mapboxAccessToken:b,showMarker:l,markerLocation:r.longitude!==void 0&&r.latitude!==void 0?{latitude:r.latitude,longitude:r.longitude}:void 0,layers:i})}),f&&jsxRuntime.jsx("p",{className:"text-sm text-text-secondary px-4 py-3 flex-shrink-0",children:f})]})}),H&&jsxRuntime.jsx(ed,{})]}):jsxRuntime.jsx(td,{style:B,className:m,schematic:y,showMarker:l})}var BD={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 cC({label:e,size:t="md",variant:r="default",showWarningIndicator:o=true,warningThreshold:n=80,hideValueText:a=false,className:i,...s}){let l=BD[t],c=a&&e&&!s["aria-label"]&&!s["aria-labelledby"]?{"aria-label":e}:{};return jsxRuntime.jsx(reactAriaComponents.Meter,{...s,...c,className:Ae(i,"flex flex-col gap-1"),children:({percentage:d,valueText:u})=>{let m=o&&d>=n,p=r==="default"?VD(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(l.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",l.icon)}),u]})]}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("relative rounded-full bg-background-muted","ring-1 ring-inset ring-border-muted",l.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]",OD(p)),style:{width:`${Math.min(100,Math.max(0,d))}%`},role:"presentation","aria-hidden":"true"})})]})}})}function VD(e){return e<50?"success":e<70?"info":e<90?"warning":"error"}function OD(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 Om=(e,t)=>e.toLocaleLowerCase().includes(t.toLocaleLowerCase());function zm(e){return [e.value,e.label]}function ad(e,t,r=Om){let o=t.trim();return o===""?[...e]:e.filter(n=>zm(n).some(a=>r(a,o)))}function id(e){let t=e.query.trim();if(t==="")return false;let r=t.toLocaleLowerCase();return e.options.some(n=>n.value.toLocaleLowerCase()===r||n.label.toLocaleLowerCase()===r)?false:!e.selected.some(n=>n.toLocaleLowerCase()===r)}function sd(e,t){return e.map(r=>{let o=t.find(n=>n.value===r);return o?o.count===void 0?{value:r,label:o.label,isUnknown:false}:{value:r,label:o.label,count:o.count,isUnknown:false}:{value:r,label:r,isUnknown:true}})}var UD=e=>e.kind==="literal"?`literal:${e.value}`:`option:${e.option.value}`,Hm=e=>e.kind==="literal"?e.value:e.option.value,dC=e=>e.kind==="literal"?e.value:e.option.label,KD={sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6",xl:"h-7 w-7"},YD={sm:"pl-8",md:"pl-10",lg:"pl-11",xl:"pl-13"},JD={sm:"xs",md:"xs",lg:"sm",xl:"sm"};function uC({options:e,value:t,defaultValue:r,onChange:o,label:n,placeholder:a,size:i="md",loading:s=false,disabled:l=false,maxSelected:c,allowLiteral:d=false,onSearchChange:u,truncated:m=false,totalCount:p,emptyMessage:g,showSelectAll:f=false,description:y,errorMessage:b,isRequired:h=false,onBlur:x,inputRef:C,labelHidden:w=false,className:S,id:T}){let R=Qe.useId(),P=T??`multiselect-${R}`,E=`${P}-input`,I=`${P}-listbox`,k=Qe.useRef(null),D=Qe.useCallback(ee=>{k.current=ee,typeof C=="function"?C(ee):C&&(C.current=ee);},[C]),{contains:L}=reactAria.useFilter({sensitivity:"base"}),{isFocused:B,handleFocus:O,handleBlur:H}=ur(),[G,Z]=Qe.useState(""),[z,W]=Qe.useState(true),[q,F]=Qe.useState(null),[X,N]=Qe.useState(""),[v,M]=Qe.useState(()=>[...r??[]]),A=Qe.useMemo(()=>t?[...t]:v,[t,v]),J=Qe.useMemo(()=>ad(e,G,L),[e,G,L]),ae=d&&!s&&id({query:G,options:e,selected:A}),le=Qe.useMemo(()=>{let ee=J.map(We=>({kind:"option",option:We}));return ae?[{kind:"literal",value:G.trim()},...ee]:ee},[J,ae,G]),$=Qe.useMemo(()=>sd(A,e),[A,e]),ie=c!==void 0&&A.length>=c,Ee=Qe.useCallback((ee,We)=>{t||M(ee),N(`${We} ${ee.length} selected.`),o(ee);},[o,t]),pe=Qe.useCallback((ee,We)=>{if(!l){if(A.includes(ee)){Ee(A.filter($e=>$e!==ee),`${We} removed.`);return}ie||Ee([...A,ee],`${We} selected.`);}},[ie,Ee,l,A]),ge=Qe.useCallback(ee=>{ee.kind==="option"&&ee.option.disabled||pe(Hm(ee),dC(ee));},[pe]),re=ee=>{if(l||ee.length===0)return;let We=new Set(ee),$e=ee.map(ne=>$.find(Me=>Me.value===ne)?.label??ne);Ee(A.filter(ne=>!We.has(ne)),`${$e.join(", ")} removed.`);},se=ee=>{Z(ee),F(null),W(true),u?.(ee);},ve=ee=>{if(le.length===0){F(null);return}F(We=>We===null?ee>0?0:le.length-1:(We+ee+le.length)%le.length);},je=ee=>{if(l)return;let We=q===null?void 0:le[q];switch(ee.key){case "ArrowDown":ee.preventDefault(),W(true),ve(1);break;case "ArrowUp":ee.preventDefault(),W(true),ve(-1);break;case "Home":le.length>0&&(ee.preventDefault(),W(true),F(0));break;case "End":le.length>0&&(ee.preventDefault(),W(true),F(le.length-1));break;case "Enter":We&&(ee.preventDefault(),ge(We));break;case " ":G===""&&We&&(ee.preventDefault(),ge(We));break;case "Escape":ee.preventDefault(),G!==""?se(""):(W(false),F(null));break;case "Backspace":G===""&&A.length>0&&(ee.preventDefault(),re([A[A.length-1]]));break;}},Ze=J.filter(ee=>!ee.disabled&&!A.includes(ee.value)).map(ee=>ee.value),wr=c===void 0?Ze.length:Math.max(0,c-A.length),Dt=Math.min(Ze.length,wr),Nr=Dt===Ze.length?`Select all ${Ze.length} matching`:`Select ${Dt} of ${Ze.length} matching`,Tr=()=>{if(l||Dt===0)return;let ee=Ze.slice(0,Dt);Ee([...A,...ee],`${ee.length} matching options selected.`);},xt=s?"loading":e.length===0?"empty":J.length===0&&G.trim()!==""?"no-match":null,Zt=Ue[i].text;return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex w-full flex-col gap-1",S),"data-testid":"multiselect",children:[jsxRuntime.jsx(Ye,{size:i,htmlFor:E,isRequired:h,...w?{className:"sr-only"}:{},children:n}),jsxRuntime.jsxs(St,{children:[jsxRuntime.jsx("div",{className:"pointer-events-none absolute left-3 top-1/2 z-10 flex -translate-y-1/2 items-center",children:s?jsxRuntime.jsx(Wr,{size:16,color:"text-text-secondary"}):jsxRuntime.jsx(V,{name:"MagnifyingGlass",className:tailwindMerge.twMerge(KD[i],"text-text-secondary")})}),jsxRuntime.jsx("input",{ref:D,id:E,type:"text",role:"combobox",autoComplete:"off","aria-expanded":z,"aria-controls":I,"aria-haspopup":"listbox","aria-autocomplete":"list","aria-activedescendant":z&&q!==null&&le[q]?`${P}-row-${q}`:void 0,"aria-required":h||void 0,"aria-invalid":b?true:void 0,value:G,placeholder:a,disabled:l,onChange:ee=>se(ee.target.value),onKeyDown:je,onFocus:ee=>{W(true),O(ee);},onBlur:ee=>{H(ee),x?.(ee);},className:zt({isDisabled:l,isFocused:B,isInvalid:!!b,size:i,className:tailwindMerge.twMerge(YD[i],"pr-3")})})]}),$.length>0&&jsxRuntime.jsx("div",{"data-testid":"multiselect-selection-region",role:"group","aria-label":`Selected ${n}`,className:"flex flex-wrap gap-1.5 rounded-[var(--control-border-radius)] border border-border-default bg-background-muted p-2",children:$.map(ee=>jsxRuntime.jsx(Yr,{size:JD[i],variant:"primary",isDisabled:l,removeLabel:`Remove ${ee.label}`,onRemove:()=>re([ee.value]),className:"shrink-0",children:ee.isUnknown?jsxRuntime.jsx("span",{"data-testid":`multiselect-selection-unknown-${ee.value}`,title:"Not in the current option list",children:`${ee.label} (custom)`}):ee.label},ee.value))}),f&&jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(te,{variant:"link",size:i,onPress:Tr,isDisabled:l||Dt===0,children:Nr}),jsxRuntime.jsx(te,{variant:"link",size:i,onPress:()=>re(A),isDisabled:l||A.length===0,children:"Clear all"})]}),jsxRuntime.jsx("div",{id:I,role:"listbox","aria-multiselectable":"true","aria-label":`${n} options`,hidden:!z,className:tailwindMerge.twMerge(Zt,"max-h-[260px] overflow-y-auto rounded-[var(--control-border-radius)] border border-border-input bg-background-input"),children:z&&le.map((ee,We)=>{let $e=A.includes(Hm(ee)),ne=l||ee.kind==="option"&&ee.option.disabled===true||!$e&&ie;return jsxRuntime.jsxs("div",{id:`${P}-row-${We}`,role:"option","aria-selected":$e,"aria-disabled":ne||void 0,"data-value":Hm(ee),"data-literal":ee.kind==="literal"?"true":void 0,"data-active":q===We?"true":void 0,onMouseDown:Me=>Me.preventDefault(),onClick:()=>{ne||(ge(ee),k.current?.focus());},className:tailwindMerge.twMerge("flex cursor-default items-center gap-2 px-3",Ue[i].paddingY,"text-text-primary",q===We&&"bg-background-hover",$e&&"bg-background-selected font-medium",ne&&"text-text-disabled"),children:[jsxRuntime.jsx(qu,{isSelected:$e,isDisabled:ne,className:"!w-4 !h-4"}),jsxRuntime.jsx("span",{className:"flex-1 truncate",children:dC(ee)}),ee.kind==="literal"&&jsxRuntime.jsx("span",{"data-testid":"multiselect-literal-badge",className:"italic text-text-secondary",children:"Use as typed"}),ee.kind==="option"&&ee.option.count!==void 0&&jsxRuntime.jsx("span",{"data-testid":`multiselect-count-${ee.option.value}`,className:"text-text-secondary",children:ee.option.count.toLocaleString()})]},UD(ee))})}),xt==="loading"&&jsxRuntime.jsx("div",{"data-testid":"multiselect-status-loading","data-status":"loading",children:jsxRuntime.jsxs(Te,{size:i,className:"flex items-center gap-2",children:[jsxRuntime.jsx(Wr,{size:14,color:"text-text-secondary"}),jsxRuntime.jsx("span",{children:"Loading options\u2026"})]})}),xt==="empty"&&jsxRuntime.jsx("div",{"data-testid":"multiselect-status-empty","data-status":"empty",children:jsxRuntime.jsxs(Te,{size:i,className:"flex items-center gap-2",children:[jsxRuntime.jsx(V,{name:"Tray",className:"h-4 w-4"}),jsxRuntime.jsx("span",{children:g??"No options available"})]})}),xt==="no-match"&&jsxRuntime.jsx("div",{"data-testid":"multiselect-status-no-match","data-status":"no-match",children:jsxRuntime.jsxs(Te,{size:i,className:"flex items-center gap-2 text-feedback-warning-text",children:[jsxRuntime.jsx(V,{name:"MagnifyingGlass",className:"h-4 w-4"}),jsxRuntime.jsx("span",{children:`No options match \u201C${G.trim()}\u201D`})]})}),m&&jsxRuntime.jsx("div",{"data-testid":"multiselect-truncation",children:jsxRuntime.jsx(Te,{size:i,children:p===void 0?"Showing a partial list \u2014 refine your search to see more":`Showing ${e.length} of ${p} \u2014 refine your search to see more`})}),c!==void 0&&jsxRuntime.jsx("div",{"data-testid":"multiselect-limit",children:jsxRuntime.jsx(Te,{size:i,children:ie?`${A.length} of ${c} selected \u2014 limit reached, remove one to choose another`:`${A.length} of ${c} selected`})}),y&&jsxRuntime.jsx(Te,{size:i,children:y}),b&&jsxRuntime.jsx(he,{size:i,children:b}),jsxRuntime.jsx("div",{"data-testid":"multiselect-live-region",role:"status","aria-live":"polite",className:"sr-only",children:X})]})}var dd="bg-background-surface border-l-[3px] border-y border-r border-border-default text-text-primary",QD={success:{container:dd,iconName:"CheckCircle",iconColor:"text-feedback-success-text",borderColor:"var(--color-feedback-success-border)"},error:{container:dd,iconName:"XCircle",iconColor:"text-feedback-error-text",borderColor:"var(--color-feedback-error-border)"},warning:{container:dd,iconName:"Warning",iconColor:"text-feedback-warning-text",borderColor:"var(--color-feedback-warning-border)"},info:{container:dd,iconName:"Info",iconColor:"text-feedback-info-text",borderColor:"var(--color-feedback-info-border)"}};function pd({id:e,message:t,variant:r="info",duration:o=5e3,dismissible:n=true,onDismiss:a,className:i}){let{container:s,iconName:l,iconColor:c,borderColor:d}=QD[r];return Qe.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:l,size:20,className:c}),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 oA={"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 md({notices:e,onDismiss:t,position:r="bottom-center",className:o}){let[n,a]=Qe.useState(false);if(Qe.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",oA[r],o),"aria-live":"polite","aria-atomic":"true",children:jsxRuntime.jsx(framerMotion.AnimatePresence,{mode:"sync",children:e.map(s=>jsxRuntime.jsx(pd,{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 pC=Qe.createContext(void 0);function mC({children:e,position:t="bottom-center",maxNotices:r=5,defaultDuration:o=5e3,defaultDismissible:n=true}){let[a,i]=Qe.useState([]),s=Qe.useCallback((u,m)=>{let p=`notice-${Date.now()}-${Math.random()}`,g={id:p,message:u,variant:m?.variant||"info",duration:m?.duration??o,dismissible:m?.dismissible??n};return i(f=>{let y=[...f,g];return y.length>r?y.slice(-r):y}),p},[r,o,n]),l=Qe.useCallback(u=>{i(m=>m.filter(p=>p.id!==u));},[]),c=Qe.useCallback(()=>{i([]);},[]),d={notices:a,addNotice:s,removeNotice:l,clearNotices:c};return jsxRuntime.jsxs(pC.Provider,{value:d,children:[e,jsxRuntime.jsx(md,{notices:a,onDismiss:l,position:t})]})}function fC(){let e=Qe.useContext(pC);if(!e)throw new Error("useNoticeContext must be used within a NoticeProvider");return e}function gC(){let{addNotice:e,removeNotice:t,clearNotices:r}=fC(),o=Qe.useCallback((l,c)=>e(l,c),[e]),n=Qe.useCallback((l,c)=>e(l,{...c,variant:"success"}),[e]),a=Qe.useCallback((l,c)=>e(l,{...c,variant:"error"}),[e]),i=Qe.useCallback((l,c)=>e(l,{...c,variant:"warning"}),[e]),s=Qe.useCallback((l,c)=>e(l,{...c,variant:"info"}),[e]);return {show:o,success:n,error:a,warning:i,info:s,dismiss:t,clear:r}}var dA={plain:"",contained:"bg-background-surface rounded-lg border border-border-default p-6",bordered:"border-y border-border-default py-6"},uA={none:"",sm:"my-4",md:"my-6 md:my-8",lg:"my-8 md:my-12"};function xi({id:e,title:t,description:r,actions:o,variant:n="plain",spacing:a="none",withDivider:i=false,headingAs:s="h2",className:l,children:c}){let d=Qe__namespace.default.useId(),u=e?`${e}-heading`:d,m=t||r||o;return jsxRuntime.jsxs("section",{id:e,className:tailwindMerge.twMerge(uA[a],dA[n],l),"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&&c&&"mb-6"),children:[jsxRuntime.jsxs("div",{className:"min-w-0 flex-1",children:[t&&jsxRuntime.jsx(lr,{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})]}),c&&jsxRuntime.jsx("div",{className:"",children:t?jsxRuntime.jsx(rn,{children:c}):c})]})}xi.displayName="Section";function gd({sections:e,activeSection:t,onSectionChange:r,orientation:o="responsive",className:n,scrollBehavior:a="smooth",stickyTop:i="1.5rem",heading:s,sectionIdPrefix:l="section-",filterSection:c,scrollContainerId:d}){let u=Qe__namespace.useRef(null),m=Qe__namespace.useRef(null),[p,g]=Qe__namespace.useState(e[0]?.id||null),f=t??p,y=Qe__namespace.useCallback(()=>d?document.getElementById(d):null,[d]),b=Qe__namespace.useCallback(S=>document.getElementById(`${l}${S}`)??document.getElementById(S),[l]);Qe__namespace.useEffect(()=>{let S=window.location.hash;if(!S)return;let T=S.slice(1),R=T.startsWith(l)?T.slice(l.length):T,P=e.find(E=>E.id===R);P&&requestAnimationFrame(()=>{let E=b(P.id);if(!E)return;let I=y();if(I){let k=I.getBoundingClientRect(),D=E.getBoundingClientRect(),L=I.scrollTop+(D.top-k.top);I.scrollTo({top:Math.max(0,L),behavior:"instant"});}else E.scrollIntoView({behavior:"instant",block:"start"});r?r(P.id):g(P.id);});},[]),Qe__namespace.useEffect(()=>{if(t!==void 0&&r)return;let S=E=>{if(!E)return false;let I=window.getComputedStyle(E);return I.display!=="none"&&I.visibility!=="hidden"&&I.opacity!=="0"},T=()=>{let E=S(u.current),I=S(m.current);if(!E&&!I)return null;let k=y(),D=new IntersectionObserver(L=>{L.forEach(B=>{if(B.isIntersecting){let O=B.target.id.replace(l,"");r?r(O):g(O);}});},{root:k??void 0,rootMargin:"-20% 0px -70% 0px",threshold:0});return e.forEach(L=>{let B=b(L.id);B&&D.observe(B);}),D},R=T(),P=()=>{R&&R.disconnect(),R=T();};return window.addEventListener("resize",P),()=>{R&&R.disconnect(),window.removeEventListener("resize",P);}},[e,l,t,r,o,y,b]);let h=Qe__namespace.useMemo(()=>c?e.filter(c):e,[e,c]),x=Qe__namespace.useCallback((S,T)=>{S.preventDefault();let R=b(T);if(R){let P=y();if(P){let E=P.getBoundingClientRect(),I=R.getBoundingClientRect(),k=P.scrollTop+(I.top-E.top),D=Math.max(0,P.scrollHeight-P.clientHeight);P.scrollTo({top:Math.max(0,Math.min(k,D)),behavior:a});}else {let E=R.getBoundingClientRect().top+window.scrollY,I=Math.max(0,document.documentElement.scrollHeight-window.innerHeight),k=Math.max(0,Math.min(E,I));window.scrollTo({top:k,behavior:a});}window.history.pushState&&window.history.pushState(null,"",`#${l}${T}`),r?r(T):g(T);}},[l,a,r,y,b]);if(h.length===0)return null;let C=o==="vertical"?"":o==="horizontal"?"hidden":"hidden lg:block",w=o==="horizontal"?"":o==="vertical"?"hidden":"lg:hidden";return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("nav",{ref:u,className:tailwindMerge.twMerge(C,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(S=>{let T=f===S.id;return jsxRuntime.jsx("a",{href:`#${l}${S.id}`,onClick:R=>x(R,S.id),className:tailwindMerge.twMerge("block w-full text-left px-3 py-2 rounded-md text-sm transition-colors no-underline",T?"bg-background-muted text-text-primary font-semibold":"text-text-secondary hover:text-text-primary hover:bg-background-hover"),"aria-current":T?"page":void 0,children:jsxRuntime.jsxs("span",{className:"flex items-center justify-between gap-2",children:[jsxRuntime.jsx("span",{children:S.label}),S.count!==void 0&&jsxRuntime.jsx("span",{className:"text-xs tabular-nums text-text-secondary",children:S.count})]})},S.id)})]})}),jsxRuntime.jsx("nav",{ref:m,className:tailwindMerge.twMerge(w,"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(S=>{let T=f===S.id;return jsxRuntime.jsx("a",{href:`#${l}${S.id}`,onClick:R=>x(R,S.id),className:tailwindMerge.twMerge("inline-block px-4 py-2 rounded-md text-sm whitespace-nowrap transition-colors no-underline",T?"bg-background-muted text-text-primary font-semibold":"text-text-secondary hover:text-text-primary hover:bg-background-hover"),"aria-current":T?"page":void 0,children:jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("span",{children:S.label}),S.count!==void 0&&jsxRuntime.jsxs("span",{className:"text-xs tabular-nums text-text-secondary",children:["(",S.count,")"]})]})},S.id)})})})]})}function hC(e){return "primary"}var bd=Qe__namespace.createContext({variant:"primary"});function hA({orientation:e,className:t=""}){return `flex flex-col w-full ${{horizontal:"",vertical:"flex-row"}[e]||""} ${t}`.trim()}function xd({variant:e="primary",...t}){let r=hC();return jsxRuntime.jsx(bd.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)=>hA({...n,className:o}))})})})}function xA({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 yd({variant:e,sticky:t=false,...r}){let o=Qe__namespace.useContext(bd),n=hC(e??o.variant);return jsxRuntime.jsx(bd.Provider,{value:{variant:n},children:jsxRuntime.jsx(reactAriaComponents.TabList,{...r,className:reactAriaComponents.composeRenderProps(r.className,(a,i)=>xA({...i,sticky:t,className:a||""}))})})}function yA({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=`${rt()} ${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 vd(e){let{variant:t}=Qe__namespace.useContext(bd);return jsxRuntime.jsx(reactAriaComponents.Tab,{...e,"data-testid":e.id?`tab-${e.id}`:void 0,className:reactAriaComponents.composeRenderProps(e.className,(r,o)=>yA({...o,className:r,isSelected:o.isSelected,variant:t}))})}function vA({className:e=""}){let t="block w-full mt-4 text-text-primary",r=rt();return `${t} ${r} ${e}`.trim()}function xC(e){return jsxRuntime.jsx(reactAriaComponents.TabPanel,{...e,className:reactAriaComponents.composeRenderProps(e.className,(t,r)=>vA({...r,className:t||""}))})}function Ca({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 CA({title:e,subtitle:t,breadcrumbs:r,breadcrumbsNode:o,media:n,actions:a,metadata:i,headingAs:s,sticky:l,stickyTop:c="0",zIndex:d=10,isLoading:u=false,className:m}){let p=l?"sticky bg-background-body":"",g=l?{top:c,zIndex:d}:{};return u?jsxRuntime.jsxs("header",{className:tailwindMerge.twMerge("mb-8 md:mb-12",p,m),style:g,"aria-labelledby":"page-title",children:[o||r?.length?jsxRuntime.jsx("div",{className:"mb-2 md:mb-4",children:jsxRuntime.jsx(Y,{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(Y,{className:"h-8 w-64"})}),t?jsxRuntime.jsx(Y,{className:"mt-2 h-5 w-48"}):null,i?jsxRuntime.jsx(Y,{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((f,y)=>jsxRuntime.jsx(Y,{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((f,y)=>jsxRuntime.jsx(Y,{className:"h-9 w-24"},y))}):null]}),n?jsxRuntime.jsx("div",{className:"mt-4 md:mt-6",children:jsxRuntime.jsx(Y,{className:"h-64 w-full"})}):null]}):jsxRuntime.jsxs("header",{className:tailwindMerge.twMerge("mb-8 md:mb-12",p,m),style:g,"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(xl,{children:r.map((f,y)=>{let{label:b,...h}=f;return jsxRuntime.jsx(yl,{...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(lr,{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((f,y)=>jsxRuntime.jsx(Qe__namespace.default.Fragment,{children:f},y))}):null]}),a?.length?jsxRuntime.jsx("div",{className:"hidden md:flex md:items-start gap-2 shrink-0",children:a.map((f,y)=>jsxRuntime.jsx(Qe__namespace.default.Fragment,{children:f},y))}):null]}),n?jsxRuntime.jsx("div",{className:"mt-4 md:mt-6",children:n}):null]})}function SA({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(xd,{selectedKey:t,defaultSelectedKey:r||e[0]?.id,onSelectionChange:i,children:[jsxRuntime.jsx(yd,{className:"after:bg-transparent",children:e.map(s=>jsxRuntime.jsx(vd,{id:s.id,isDisabled:s.disabled,children:s.label},s.id))}),a]})})}function wA({children:e,className:t,withSectionNav:r,navWidth:o="240px",gap:n="2rem",activeSection:a,onSectionChange:i,scrollBehavior:s,sectionIdPrefix:l="section-",scrollContainerId:c,navHeading:d,navStickyTop:u}){return r?jsxRuntime.jsx(TA,{position:r,navWidth:o,gap:n,activeSection:a,onSectionChange:i,scrollBehavior:s,sectionIdPrefix:l,scrollContainerId:c,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 NA({children:e,sticky:t=true,className:r}){return jsxRuntime.jsx("aside",{className:tailwindMerge.twMerge(t?"lg:sticky lg:top-20":"",r),children:e})}function TA({activeSection:e,onSectionChange:t,position:r,navWidth:o,gap:n,children:a,className:i,scrollBehavior:s,sectionIdPrefix:l,scrollContainerId:c,navHeading:d,navStickyTop:u}){let m=Qe__namespace.default.useMemo(()=>{let x=[];return Qe__namespace.default.Children.forEach(a,C=>{if(Qe__namespace.default.isValidElement(C)&&(C.type===xi||typeof C.type=="object"&&C.type?.displayName==="Section"||typeof C.type=="function"&&C.type?.displayName==="Section")){let w=C.props;w.id?x.push({id:w.id,label:w.navLabel||(typeof w.title=="string"?w.title:`Section ${w.id}`)}):process.env.NODE_ENV==="development"&&console.warn("Section component used within PageLayout.Content with withSectionNav must have an id prop");}}),x},[a]),p=Qe__namespace.default.useMemo(()=>{let x=Qe__namespace.default.Children.map(a,C=>{if(Qe__namespace.default.isValidElement(C)&&(C.type===xi||typeof C.type=="object"&&C.type?.displayName==="Section"||typeof C.type=="function"&&C.type?.displayName==="Section")){let w=C.props;if(w.id)return Qe__namespace.default.cloneElement(C,{...w,id:`${l}${w.id}`})}return C});return jsxRuntime.jsx("div",{className:"space-y-8 md:space-y-12",children:x})},[a,l]),g=(x,C)=>jsxRuntime.jsx(gd,{sections:m,activeSection:e,onSectionChange:t,orientation:x,scrollBehavior:s,sectionIdPrefix:l,scrollContainerId:c,heading:d,className:C});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:g("horizontal")}),p]});let f=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:g("horizontal","py-3 mt-0")}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("lg:grid",i),style:{gridTemplateColumns:f,gap:n,"--nav-width":o},children:[r==="left"&&jsxRuntime.jsx("nav",{className:h,style:b,children:g("vertical")}),p,r==="right"&&jsxRuntime.jsx("nav",{className:h,style:b,children:g("vertical")})]})]})}function kA({children:e,className:t}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-1 overflow-auto min-h-0",t),children:e})}Ca.Header=CA;Ca.Tabs=SA;Ca.Content=wA;Ca.Aside=NA;Ca.ScrollableContent=kA;function RA(e){return typeof e=="object"&&e!==null&&"features"in e&&Array.isArray(e.features)&&"type"in e&&typeof e.type=="string"}var EA=process.env.NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN||"";function CC({label:e,selectedKey:t,defaultSelectedKey:r,onSelectionChange:o,placeholder:n="Enter a location...",errorMessage:a,description:i,size:s="md",tooltip:l,isRequired:c,isDisabled:d,showErrors:u=true,autoFocus:m=false,onSelect:p,searchTypes:g=["place","address"],defaultFilter:f,validationResult:y,countryRestrictions:b,proximity:h="ip",hideCountry:x=false,showIcon:C=true,useMobileTray:w=true,className:S}){let T=Qe.useRef(new WeakMap),R=Qe.useRef([]),P={requestType:"REST",method:"GET",url:"https://api.mapbox.com/geocoding/v5/mapbox.places/{q}.json",extraParams:{access_token:EA,types:g.join(","),limit:"5",...b?.length?{country:b.join(",").toLowerCase()}:{},...h?{proximity:h==="ip"?"ip":h.join(",")}:{}},shouldLoad:k=>k.length>0,transformResponse:k=>{if(!RA(k))return [];let D=k.features.map(L=>{let B={id:L.id,name:L.place_name};return T.current.set(B,{type:L.place_type[0],center:L.center,context:L.context,address:L.address,text:L.text,properties:L.properties}),B});return D.length>0&&(R.current=D),D}},E=k=>{let D=T.current.get(k),L=k.name.split(", "),B=L[0],O=L.slice(1);x&&O.length>0&&(O=O.slice(0,-1));let H=O.join(", ");return jsxRuntime.jsxs("div",{className:"flex items-center gap-3 py-0.5",children:[C&&jsxRuntime.jsx(V,{name:D?.type==="address"?"MapPin":D?.type==="place"?"Buildings":D?.type==="region"?"MapPinArea":D?.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:B}),H&&jsxRuntime.jsx("span",{className:"truncate text-sm text-text-secondary",children:H})]})]})},I=k=>k?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(gl,{"data-testid":"autocomplete","data-config":JSON.stringify({types:g.join(","),country:b?.join(",")?.toLowerCase(),proximity:h==="ip"?"ip":h?.join(",")}),label:e||void 0,selectedKey:t,defaultSelectedKey:r,onSelectionChange:k=>{if(o?.(k),k){let L=R.current.find(B=>B.id===k);if(L){let B=T.current.get(L);B&&p({id:L.id,place_name:L.name,place_type:[B.type],center:B.center,context:B.context,address:B.address,text:B.text,properties:B.properties});}}},requestConfig:P,placeholder:n,errorMessage:a,description:i,size:s,tooltip:l,isRequired:c,isDisabled:d,showErrors:u,autoFocus:m,renderItem:E,renderLeftIcon:I,defaultFilter:f,validationResult:y,hideChevron:true,useMobileTray:w,className:S})}function wC({label:e,rightLabel:t,progressWidth:r=64,hideLabels:o=false,...n}){return jsxRuntime.jsx(reactAriaComponents.ProgressBar,{...n,className:Ae(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 NC({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:ir("prose",i,s,o),...a,children:n})}function BA(e="2"){return {1:"p-2 text-xs",2:"p-3 text-sm",3:"p-4 text-base"}[e]}function VA(e){return e?"border-action-primary text-action-primary":"border-border text-text-primary"}function OA(){return "opacity-50 cursor-not-allowed"}function TC({value:e,isDisabled:t,className:r,children:o,size:n="2",variant:a="primary"}){return jsxRuntime.jsx(reactAriaComponents.Radio,{value:e,isDisabled:t,className:Ae(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:l})=>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||l)&&!s&&"hover:bg-background-hover hover:border-border-hover",BA(n),VA(s),(t||l)&&OA(),r),children:o})})}function kC({value:e,defaultValue:t,onChange:r,isDisabled:o,isReadOnly:n,isRequired:a,className:i,children:s,size:l="2",variant:c="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:Ae(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:Qe__namespace.default.Children.map(s,m=>Qe__namespace.default.isValidElement(m)?Qe__namespace.default.cloneElement(m,{size:l,variant:c}):m)})}function UA(e){return "primary"}var PC=Qe.createContext({variant:"primary"});function RC(e){let{variant:t="primary",...r}=e,o=UA();return jsxRuntime.jsx(PC.Provider,{value:{variant:o},children:jsxRuntime.jsxs(reactAriaComponents.RadioGroup,{...r,className:Ae(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(Te,{children:e.description}),jsxRuntime.jsx(he,{children:typeof e.errorMessage=="function"&&e.validationResult?e.errorMessage(e.validationResult):typeof e.errorMessage=="string"?e.errorMessage:null})]})})}function KA({isSelected:e,isInvalid:t,isDisabled:r}){let n=[rt(),"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 EC(e){return Qe.useContext(PC),jsxRuntime.jsx(reactAriaComponents.Radio,{...e,className:Ae(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:KA(t)}),e.children]})})}var eI={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"}},Ci=({isActive:e=false,onPress:t,children:r})=>jsxRuntime.jsx(te,{variant:e?"secondary":"ghost",size:"sm",onPress:t,className:"p-1",children:r});function tI({initialUrl:e,isOpen:t,onClose:r,onSubmit:o}){let[n,a]=Qe.useState(e);return Qe__namespace.default.useEffect(()=>{a(e);},[e]),jsxRuntime.jsx(kr,{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(_t,{title:"Insert Link",onClose:r}),jsxRuntime.jsx("div",{className:"p-6",children:jsxRuntime.jsx(qr,{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(te,{variant:"secondary",onPress:r,children:"Cancel"}),jsxRuntime.jsx(te,{type:"submit",children:"Save"})]})]})})})})}function DC({initialContent:e="",onChange:t,className:r,isDisabled:o=false,placeholder:n="Start typing...",id:a,size:i="md",headingLevels:s=[1,2]}){let l=eI[i],[c,d]=Qe.useState(false),u=react.useEditor({immediatelyRender:false,extensions:[QA__default.default.configure({heading:s.length>0?{levels:s}:false}),JA__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:g})=>{t?.(g.getHTML());},editorProps:{attributes:{class:tailwindMerge.twMerge(`prose ${l.prose} max-w-none`,"focus:outline-none","[&>*:first-child]:mt-0 [&>*:last-child]:mb-0")}}}),m=()=>{d(true);},p=g=>{g===""?u?.chain().focus().unsetLink().run():u?.chain().focus().setLink({href:g}).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:g})=>g.isActive("link")&&!c,className:"flex items-center gap-1 rounded-md border border-border-input bg-background-surface p-1 shadow-md",children:[jsxRuntime.jsxs(te,{variant:"ghost",size:"sm",className:"h-8 px-2",onPress:()=>{let g=u.getAttributes("link").href;g&&window.open(g,"_blank","noopener,noreferrer");},children:[jsxRuntime.jsx(V,{name:"ArrowSquareOut",className:"mr-1 h-4 w-4"}),"Open"]}),jsxRuntime.jsxs(te,{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(te,{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(tI,{isOpen:c,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",l.toolbar),children:[s.map(g=>jsxRuntime.jsx(Ci,{isActive:u.isActive("heading",{level:g}),onPress:()=>u.chain().focus().toggleHeading({level:g}).run(),children:jsxRuntime.jsxs("span",{className:"text-xs font-bold",children:["H",g]})},g)),jsxRuntime.jsx(Ci,{isActive:u.isActive("bold"),onPress:()=>u.chain().focus().toggleBold().run(),children:jsxRuntime.jsx("span",{className:"text-xs font-bold",children:"B"})}),jsxRuntime.jsx(Ci,{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(Ci,{isActive:u.isActive("bulletList"),onPress:()=>u.chain().focus().toggleBulletList().run(),children:jsxRuntime.jsx(V,{name:"ListBullets",className:"h-4 w-4"})}),jsxRuntime.jsx(Ci,{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(Ci,{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",l.contentWrapper),children:[jsxRuntime.jsx(react.EditorContent,{editor:u,className:tailwindMerge.twMerge("w-full outline-none focus:outline-none",l.contentPadding,"[&_.ProseMirror]:min-h-[inherit]","[&_.ProseMirror]:outline-none [&_.ProseMirror]:focus:outline-none",l.h1,l.h2,l.p,"[&_.ProseMirror_ul]:list-disc","[&_.ProseMirror_ol]:list-decimal",l.list,l.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",l.placeholderPos,l.placeholderText),children:n})]})]}):null}function AC({streetAddress:e,city:t,state:r,postalCode:o,longitude:n,latitude:a,href:i,LinkComponent:s,variant:l="outlined",layout:c="stacked",showMap:d=true,mapHeight:u=200,mapboxAccessToken:m,isLoading:p=false,className:g,contentClassName:f,showMapExpandToggle:y=false,expandedMapTitle:b="Explore map",expandedMapAddressLabel:h,piiEntity:x}){let C=[];t&&C.push(t),r&&o?C.push(`${r} ${o}`):r?C.push(r):o&&C.push(o);let w=C.join(", "),S=h||[e,w].filter(Boolean).join(", "),T=d&&n!==void 0&&a!==void 0,R=({children:E,className:I})=>i?s?jsxRuntime.jsx(s,{href:i,className:I,children:E}):jsxRuntime.jsx(ut,{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=c==="row";return jsxRuntime.jsxs(_e,{variant:l,className:tailwindMerge.twMerge(E?"flex flex-col md:flex-row":"flex flex-col",g),children:[T&&jsxRuntime.jsx(_e.Media,{aspectRatio:"auto",className:tailwindMerge.twMerge(E&&"md:order-2 md:flex-[2] md:min-w-0"),children:jsxRuntime.jsx(Y,{width:"100%",height:u})}),jsxRuntime.jsxs(_e.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(Y,{width:"100%",height:16}),jsxRuntime.jsx(Y,{width:"80%",height:16})]})]})}let P=c==="row";return jsxRuntime.jsxs(_e,{variant:l,className:tailwindMerge.twMerge("group/card relative",i&&"cursor-pointer",P?"flex flex-col md:flex-row":"flex flex-col",g),children:[i&&jsxRuntime.jsx(R,{className:"after:absolute after:inset-0 after:z-10",children:jsxRuntime.jsx("span",{className:"sr-only",children:e})}),T&&jsxRuntime.jsx(_e.Media,{aspectRatio:"auto",className:tailwindMerge.twMerge(P&&"md:order-2 md:flex-[2] md:min-w-0"),children:jsxRuntime.jsx(hi,{height:u,initialViewState:{longitude:n,latitude:a,zoom:14},showMarker:true,mapboxAccessToken:m,showExpandToggle:y,expandedMapTitle:b,expandedMapAddressLabel:S})}),jsxRuntime.jsx(_e.Content,{className:tailwindMerge.twMerge("px-4 md:px-6",P&&"md:order-1 md:flex-[1] md:flex-shrink-0 md:flex md:flex-col md:justify-center",f),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}),w&&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:w})]})})]})}function FC({site:e,contact:t,LinkComponent:r,variant:o="outlined",layout:n="stacked",showMap:a=true,mapHeight:i=200,mapboxAccessToken:s,showEmail:l=true,showPhone:c=false,isLoading:d=false,className:u,contentClassName:m,fullHeight:p=false,showMapExpandToggle:g=false,expandedMapTitle:f="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(", "),C=a&&e.longitude!==void 0&&e.latitude!==void 0,w=t?`${t.firstName} ${t.lastName}`.trim():"",S=({children:R,href:P,className:E})=>P?r?jsxRuntime.jsx(r,{href:P,className:E,children:R}):jsxRuntime.jsx(ut,{href:P,variant:"unstyled",className:tailwindMerge.twMerge("hover:underline",E),asButton:false,children:R}):jsxRuntime.jsx("span",{className:E,children:R});if(d){let R=n==="row";return jsxRuntime.jsxs(_e,{variant:o,className:tailwindMerge.twMerge(p&&"h-full",R?"flex flex-col md:flex-row":"flex flex-col",u),children:[C&&jsxRuntime.jsx(_e.Media,{aspectRatio:"auto",className:tailwindMerge.twMerge(R&&"md:order-2 md:flex-[2] md:min-w-0",p&&"flex-1"),children:jsxRuntime.jsx(Y,{width:"100%",height:p?"100%":i})}),jsxRuntime.jsxs(_e.Content,{className:tailwindMerge.twMerge("space-y-4 px-4 py-4",R&&"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(Y,{width:"100%",height:16}),jsxRuntime.jsx(Y,{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(Y,{width:40,height:40,className:"rounded flex-shrink-0"}),jsxRuntime.jsxs("div",{className:"flex-1 space-y-1",children:[jsxRuntime.jsx(Y,{width:"50%",height:14}),jsxRuntime.jsx(Y,{width:"100%",height:12})]})]})]})]})]})}let T=n==="row";return jsxRuntime.jsxs(_e,{variant:o,className:tailwindMerge.twMerge("group/card relative",e.href&&"cursor-pointer",p&&"h-full",T?"flex flex-col md:flex-row":"flex flex-col",u),children:[e.href&&jsxRuntime.jsx(S,{href:e.href,className:"after:absolute after:inset-0 after:z-10",children:jsxRuntime.jsx("span",{className:"sr-only",children:e.streetAddress})}),C&&jsxRuntime.jsx(_e.Media,{aspectRatio:"auto",className:tailwindMerge.twMerge(T&&"md:order-2 md:flex-[2] md:min-w-0",p&&"flex-1"),children:jsxRuntime.jsx(hi,{height:p?"100%":i,initialViewState:{longitude:e.longitude,latitude:e.latitude,zoom:14},showMarker:true,mapboxAccessToken:s,showExpandToggle:g,expandedMapTitle:f,expandedMapAddressLabel:x})}),jsxRuntime.jsxs(_e.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",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(Ho,{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(S,{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:w})}):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:w}),jsxRuntime.jsxs("div",{className:"space-y-0.5",children:[l&&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(ut,{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})]}),c&&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(ut,{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:Ia(t.phone)})]})]})]})]})]})]})]})}function BC({label:e,description:t,tooltip:r,errorMessage:o,size:n="md",className:a,value:i,defaultValue:s=0,onChange:l,min:c=0,max:d=100,step:u=1,disabled:m,showValue:p=true}){let g=typeof i=="number",[f,y]=Qe__namespace.default.useState(s),b=g?i:f,h=Math.min(Math.max(b,c),d),x=Math.max(d-c,1e-5),C=(h-c)/x*100;return jsxRuntime.jsxs("div",{className:Ae(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:`${C}%`},"aria-hidden":true}),jsxRuntime.jsx("input",{type:"range",min:c,max:d,step:u,value:b,disabled:m,"aria-invalid":!!o,onChange:w=>{let S=Number(w.currentTarget.value);g||y(S),l?.(S);},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(Te,{className:"mt-2 text-text-secondary",children:t}),o&&jsxRuntime.jsx(he,{className:"mt-1",children:o})]})}var sI=Qe__namespace.default.createContext({orientation:"horizontal",isResizing:false});function OC(e,t){return e===void 0?t:e}function lI(e,t){return typeof e=="number"?e:typeof e=="string"&&e.endsWith("%")?Number.parseFloat(e)/100*t:Number.parseFloat(e.toString())}function Sd({asideWidth:e,asideHeight:t,minAsideWidth:r=240,minAsideHeight:o=200,minMainWidth:n=400,minMainHeight:a=300,orientation:i="horizontal",resizable:s=false,onAsideResize:l,onResizeStart:c,onResizeEnd:d,className:u,dividerClassName:m,children:p}){let g=Qe.useRef(null),[f,y]=Qe.useState(false),b=i==="horizontal"?400:300,h=OC(i==="horizontal"?e:t,b),[x,C]=Qe.useState(null),w=Qe.useCallback(k=>{if(!g.current||!f)return;let D=g.current.getBoundingClientRect(),L=i==="horizontal"?D.width:D.height,B=i==="horizontal"?k.clientX:k.clientY,H=(i==="horizontal"?D.right:D.bottom)-B,G=L-H,Z=i==="horizontal"?r:o,z=i==="horizontal"?n:a;H<Z||G<z||(C(H),l?.(H));},[f,i,r,o,n,a,l]),S=Qe.useCallback(()=>{y(false),d?.();},[d]),T=Qe.useCallback(k=>{k.preventDefault(),k.stopPropagation(),y(true),c?.();},[c]);Qe.useEffect(()=>{if(f)return document.addEventListener("mousemove",w),document.addEventListener("mouseup",S),document.body.style.cursor=i==="horizontal"?"col-resize":"row-resize",document.body.style.userSelect="none",()=>{document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",S),document.body.style.cursor="",document.body.style.userSelect="";}},[f,w,S,i]);let R=Qe__namespace.default.Children.toArray(p).find(k=>Qe__namespace.default.isValidElement(k)&&k.type===HC),P=Qe__namespace.default.Children.toArray(p).find(k=>Qe__namespace.default.isValidElement(k)&&k.type===GC),E=x??h,I=typeof E=="number"?`${E}px`:E;return jsxRuntime.jsx(sI.Provider,{value:{orientation:i,isResizing:f},children:jsxRuntime.jsxs("div",{ref:g,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:R}),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:T,role:"separator","aria-orientation":i,"aria-label":"Resize divider",tabIndex:0,onKeyDown:k=>{if(!g.current)return;let D=g.current.getBoundingClientRect(),L=i==="horizontal"?D.width:D.height,B=x??lI(h,L),O=20,H=i==="horizontal"?r:o,G=i==="horizontal"?n:a;if(i==="horizontal"){if(k.key==="ArrowLeft"){let Z=Math.min(B+O,L-G);C(Z),l?.(Z);}else if(k.key==="ArrowRight"){let Z=Math.max(B-O,H);C(Z),l?.(Z);}}else if(k.key==="ArrowUp"){let Z=Math.min(B+O,L-G);C(Z),l?.(Z);}else if(k.key==="ArrowDown"){let Z=Math.max(B-O,H);C(Z),l?.(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",f&&"bg-action-brand",f&&(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:P})]})})}function HC({className:e,children:t}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-full h-full",e),children:t})}function GC({className:e,children:t}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-full h-full",e),children:t})}Sd.Main=HC;Sd.Aside=GC;var dI=e=>{let t=zt({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 WC({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,required:a,transparent:i,isInvalid:s,isDisabled:l,isResizable:c=false,className:d,validationResult:u,reserveErrorSpace:m=true,...p}){let{isFocused:g,handleFocus:f,handleBlur:y}=ur();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(St,{children:jsxRuntime.jsx("textarea",{...p,required:a,onFocus:b=>{p.onFocus&&p.onFocus(b),f(b);},onBlur:b=>{p.onBlur&&p.onBlur(b),y(b);},className:dI({isInvalid:s,isDisabled:l,isResizable:c,isFocused:g,size:o,transparent:i,className:d}),disabled:l})}),m?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(he,{size:o,children:r}):typeof r=="function"&&u?jsxRuntime.jsx(he,{size:o,children:r(u)}):t?jsxRuntime.jsx(Te,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(he,{size:o,className:"mt-1",children:r}):typeof r=="function"&&u?jsxRuntime.jsx(he,{size:o,className:"mt-1",children:r(u)}):t?jsxRuntime.jsx(Te,{size:o,className:"mt-1",children:t}):null})]})})}function JC({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,required:a,transparent:i,isInvalid:s,isDisabled:l,isResizable:c=false,className:d,validationResult:u,value:m="",onChange:p,chips:g=[],onChipsChange:f,triggerPattern:y="{{",onTriggerDetected:b,onTriggerDismissed:h,renderChip:x,chipVariant:C="primary",chipSize:w,...S}){let T=Qe.useRef(null),{isFocused:R,handleFocus:P,handleBlur:E}=ur(),I=w||"sm",k=Qe.useRef(null),D=Qe.useCallback(z=>{let W="",q=F=>{if(F.nodeType===Node.TEXT_NODE){if(!F.parentElement?.closest("[data-chip-id]")){let N=F.textContent||"";W+=N;}}else if(F.nodeType===Node.ELEMENT_NODE){let X=F;if(X.hasAttribute("data-chip-id")){let N=X.getAttribute("data-chip-id");W+=`{{${N}}}`;return}else if(X.tagName==="BR"){W+=`
47
47
  `;return}else X.tagName;}for(let X=0;X<F.childNodes.length;X++)q(F.childNodes[X]);};return q(z),W},[]),L=Qe.useCallback((z,W)=>{let q=document.createTreeWalker(z,NodeFilter.SHOW_TEXT,{acceptNode:M=>{let A=M.parentElement;return A&&A.closest("[data-chip-id]")?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}}),F=q.nextNode(),X=Math.max(0,W);for(;F;){let M=F.nodeValue||"";if(M.length>=X){let A=document.createRange();A.setStart(F,X),A.collapse(true);let J=window.getSelection();J?.removeAllRanges(),J?.addRange(A);return}X-=M.length,F=q.nextNode();}let N=window.getSelection(),v=document.createRange();v.selectNodeContents(z),v.collapse(false),N?.removeAllRanges(),N?.addRange(v);},[]);Qe.useEffect(()=>{T.current&&!m&&T.current.textContent!==""&&(T.current.textContent="");},[m]),Qe.useLayoutEffect(()=>{if(T.current){if(m===""){if(R)try{T.current.focus({preventScroll:!0}),L(T.current,0);}catch{}return}if(k.current!=null)try{L(T.current,k.current);}finally{k.current=null;}}},[m,L,R]);let B=Qe.useCallback((z,W)=>{if(p?.(z),z===""){h?.();return}if(y&&b&&W!==void 0){let q=z.slice(0,W),F=typeof y=="string"?new RegExp(`\\${y}([^\\s]*)$`):y,X=q.match(F);if(X){let N=X[1]||"",v=W-X[0].length;b({query:N,position:W,startIndex:v});}else h?.();}},[p,y,b,h]),O=Qe.useCallback(z=>{if(!f||!p)return;let W=g.filter(F=>F.id!==z);f(W);let q=m.replace(new RegExp(`\\{\\{${z}\\}\\}`,"g"),"");p(q);},[g,f,m,p]),H=Qe.useCallback(z=>x?x(z,()=>O(z.id)):jsxRuntime.jsx(Yr,{variant:C,size:I,onRemove:l?void 0:()=>O(z.id),isDisabled:l,className:"py-0.5 px-1.5 gap-1 text-xs leading-none rounded-md",children:z.label},z.id),[x,C,I,O,l]),G=()=>{let z=zt({isInvalid:s,isDisabled:l,isFocused:R,transparent:i,size:o}),W=`min-h-[100px] py-2 px-3 ${l?"resize-none":c?"resize-y":"resize-none"}`,q=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(z,W,q,d)},Z=()=>m?m.split(/(\{\{[^}]+\}\})/g).map((W,q)=>{let F=W.match(/\{\{([^}]+)\}\}/);if(F){let X=F[1],N=g.find(v=>v.id===X);if(N)return jsxRuntime.jsx("span",{className:"inline-block align-baseline cursor-pointer",contentEditable:false,suppressContentEditableWarning:true,"data-chip-id":X,style:{userSelect:"none",verticalAlign:"baseline",lineHeight:"1"},onClick:v=>{v.preventDefault();let M=window.getSelection(),A=document.createRange();A.selectNode(v.currentTarget),M?.removeAllRanges(),M?.addRange(A);},children:H(N)},`chip-${X}-${q}`)}return W.includes(`
48
48
  `)?W.split(`
49
49
  `).map((X,N)=>jsxRuntime.jsxs(Qe__namespace.default.Fragment,{children:[X,N<W.split(`
50
- `).length-1&&jsxRuntime.jsx("br",{})]},`line-${q}-${N}`)):W}):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(St,{children:jsxRuntime.jsx("div",{ref:T,contentEditable:!l,suppressContentEditableWarning:true,onInput:z=>{if(l)return;let W=z.target,q=W.querySelector("[data-chip-id]")!==null,F;if(q?(F=D(W),F=F.replace(/(\{\{[^}]+\}\})\s{2,}/g,"$1 ").replace(/\s{2,}(\{\{[^}]+\}\})/g," $1")):F=W.textContent||"",F===""){try{let v=document.createRange();v.selectNodeContents(W),v.collapse(!0);let M=window.getSelection();M?.removeAllRanges(),M?.addRange(v),k.current=0;}catch{}B("",0);return}if(F===m)return;let X=window.getSelection(),N=0;if(X&&X.rangeCount>0)try{let v=X.getRangeAt(0);if(q){let M=0,A=!1,J=ae=>{if(A)return !0;if(ae===v.startContainer)return M+=v.startOffset,A=!0,!0;if(ae.nodeType===Node.TEXT_NODE){if(!ae.parentElement?.closest("[data-chip-id]")){if(ae.contains(v.startContainer))return M+=v.startOffset,A=!0,!0;M+=(ae.textContent||"").length;}}else if(ae.nodeType===Node.ELEMENT_NODE){let le=ae;if(le.hasAttribute("data-chip-id")){if(le.contains(v.startContainer)||le===v.startContainer){let ie=le.getAttribute("data-chip-id");return M+=`{{${ie}}}`.length,A=!0,!0}let $=le.getAttribute("data-chip-id");return M+=`{{${$}}}`.length,!1}else if(le.tagName==="BR")return le===v.startContainer?(A=!0,!0):(M+=1,!1)}for(let le=0;le<ae.childNodes.length;le++)if(J(ae.childNodes[le]))return !0;return !1};J(W),N=M;}else {let M=document.createRange();M.setStart(W,0),M.setEnd(v.startContainer,v.startOffset),N=M.toString().length;}}catch{N=F.length;}k.current=N,B(F,N);},onKeyDown:z=>{if(l)return;let W=window.getSelection();if(!(!W||W.rangeCount===0))try{let q=W.getRangeAt(0),F=q.commonAncestorContainer;if(z.key==="ArrowLeft"||z.key==="ArrowRight"){let X=F.nodeType===Node.TEXT_NODE?F.parentElement?.closest("[data-chip-id]"):F.closest("[data-chip-id]");if(X){z.preventDefault();try{let N=document.createRange(),v=window.getSelection();z.key==="ArrowLeft"?N.setStartBefore(X):N.setStartAfter(X),N.collapse(!0),v?.removeAllRanges(),v?.addRange(N);}catch{}}}if(z.key==="Backspace"){let X=null;if(X=(F.nodeType===Node.TEXT_NODE?F.parentElement?.closest("[data-chip-id]"):F.closest("[data-chip-id]"))||null,!X)if(F.nodeType===Node.TEXT_NODE){let N=F;if(q.startOffset===0&&N.parentElement){let v=N.previousSibling;if(v&&v.nodeType===Node.ELEMENT_NODE){let M=v.closest("[data-chip-id]");M&&(X=M);}}}else {let N=F;if(q.startOffset>0){let v=N.childNodes[q.startOffset-1];if(v&&v.nodeType===Node.ELEMENT_NODE){let M=v.closest("[data-chip-id]");M&&(X=M);}}}if(X){z.preventDefault(),z.stopPropagation();let N=X.getAttribute("data-chip-id");if(!N)return;let v=`{{${N}}}`,M=m.indexOf(v);if(M!==-1){let A=m.slice(0,M)+m.slice(M+v.length),J=g.filter(ae=>ae.id!==N);k.current=M;try{window.getSelection()?.removeAllRanges();}catch{}f?.(J),p?.(A);}}}}catch{}},onFocus:z=>{l||(S.onFocus&&S.onFocus(z),P(z));},onBlur:z=>{l||(S.onBlur&&S.onBlur(z),E(z));},className:G(),style:{whiteSpace:"pre-wrap",wordBreak:"break-word",...S.style},"data-placeholder":S.placeholder,children:Z()},m===""?"empty":"content")}),t&&jsxRuntime.jsx(Te,{size:o,className:"mt-3",children:t}),typeof r=="string"&&jsxRuntime.jsx(he,{size:o,className:"mt-1",children:r}),typeof r=="function"&&u&&jsxRuntime.jsx(he,{size:o,className:"mt-1",children:r(u)})]})})}function xI({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 XC({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,isDisabled:i,isInvalid:s,reserveErrorSpace:l=true,validationResult:c,className:d,descriptionPlacement:u="below",...m}){return jsxRuntime.jsxs(reactAriaComponents.TimeField,{...m,isDisabled:i,isRequired:a,isInvalid:s,className:Ae(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(St,{children:jsxRuntime.jsx(reactAriaComponents.DateInput,{className:tailwindMerge.twMerge(sn({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:xI({isPlaceholder:p.isPlaceholder,isDisabled:!p.isEditable||i,size:o})})})}),l?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(he,{size:o,children:r}):typeof r=="function"&&c?jsxRuntime.jsx(he,{size:o,children:r(c)}):t&&u==="below"?jsxRuntime.jsx(Te,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(he,{size:o,className:"mt-1",children:r}):typeof r=="function"&&c?jsxRuntime.jsx(he,{size:o,className:"mt-1",children:r(c)}):t&&u==="below"?jsxRuntime.jsx(Te,{size:o,className:"mt-1",children:t}):null})]})}function jC({children:e,className:t=""}){return jsxRuntime.jsx("div",{className:`flex flex-col ${t}`.trim(),role:"list",children:e})}function qC({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 wI(e){return "primary"}var NI="flex font-medium justify-center items-center gap-2 text-center transition whitespace-nowrap box-border",QC={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]"}},TI="opacity-[--control-hover-opacity] cursor-not-allowed pointer-events-none grayscale",kI="opacity-100 cursor-pointer",PI={"top-right":"-right-2 -top-2","top-left":"-left-2 -top-2","bottom-right":"-right-2 -bottom-2","bottom-left":"-left-2 -bottom-2"},RI={primary:"bg-action-primary text-[color:var(--color-action-primary-text)]",destructive:"bg-feedback-error-border text-text-inverse"};function EI(e){let{variant:t="primary",size:r="md",isDisabled:o,isSelected:n,borderRadius:a,borderRight:i,borderLeft:s}=e,l=wI(),c=`${NI} ${n?QC[l].selected:QC[l].unselected}`;return c+=` ${Ue[r].text} ${Ue[r].height} ${Ue[r].padding} ${Ue[r].gap}`,c+=` ${o?TI:kI}`,a==="left"&&(c+=" rounded-l-sm"),a==="right"&&(c+=" rounded-r-sm"),i&&(c+=" border-r"),s&&(c+=" border-l"),c+=` ${rt()}`,(c+=" focus-visible:outline-action-primary"),tailwindMerge.twMerge(c)}function _C(e){let{className:t,children:r,onPress:o,icon:n,iconPosition:a="left",iconWeight:i,isLoading:s=false,loadingText:l,loadingIndicator:c,size:d="md",badgeNumber:u,badgeVariant:m="primary",badgePosition:p="top-right",...g}=e,f=n?jsxRuntime.jsx(V,{name:n,size:d,weight:i}):null,y=()=>{let h=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[a==="left"&&f,r,a==="right"&&f]});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:c||jsxRuntime.jsx(V,{name:"CircleNotch",size:d,className:"animate-spin","aria-hidden":"true"})}),jsxRuntime.jsx("div",{className:"invisible","aria-hidden":"true",children:h}),l&&jsxRuntime.jsx("span",{className:"sr-only",role:"status","aria-live":"polite",children:l})]}):h},b=jsxRuntime.jsx(reactAriaComponents.ToggleButton,{onPress:o,...g,className:tailwindMerge.twMerge(EI(e),t),"aria-busy":s,children:y()});return u&&u>0?jsxRuntime.jsxs("div",{className:"relative",children:[b,jsxRuntime.jsx("span",{className:`absolute ${PI[p]} flex h-5 w-5 items-center justify-center rounded-full ${RI[m]} text-xs`,"aria-label":`${u} items`,children:u})]}):b}var LI={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"}},DI={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}},AI=["energized","customerName","gs_max_continuous_current"],II=["MOTOR.voltage"],FI=[{key:"total_kvar",label:"Rated kvar",format:{type:"power",unit:"kvar",decimals:1}}],BI=[{key:"kvar_a",label:"kvar A",format:{type:"power",unit:"kvar",decimals:1}},{key:"kvar_b",label:"kvar B",format:{type:"power",unit:"kvar",decimals:1}},{key:"kvar_c",label:"kvar C",format:{type:"power",unit:"kvar",decimals:1}}],lt={TRANSFORMER:[{key:"capacityKva",label:"kVA Rating",format:{type:"power",unit:"kVA",decimals:0}},{key:"phase",label:"Phase",format:{type:"text"}},{key:"primaryVoltageKv",label:"Primary Voltage",format:{type:"voltage",unit:"kV",decimals:1}},{key:"outputVoltageKv",label:"Output Voltage",format:{type:"voltage",unit:"kV",decimals:2}},{key:"manufacturer",label:"Manufacturer",format:{type:"text"}},{key:"xfmr_conductor_description",label:"Conductor",format:{type:"text"}}],CONSUMER:[{key:"service_address",label:"Service address",format:{type:"text"}},{key:"name",label:"Customer",format:{type:"text"}},{key:"account_number",label:"Account #",format:{type:"text"}},{key:"meterNumber",label:"Meter Number",format:{type:"text"}},{key:"service_type",label:"Service type",format:{type:"text"}}],SOURCE:[{key:"voltageKv",label:"Nominal Voltage",format:{type:"voltage",unit:"kV",decimals:1}},{key:"substationNumber",label:"Substation Number",format:{type:"text"}},{key:"trf_capacity",label:"Rated Capacity",format:{type:"text"}},{key:"connection_code",label:"Connection",format:{type:"text"}}],SWITCH:[{key:"switchId",label:"Switch ID",format:{type:"text"}},{key:"phase",label:"Phase",format:{type:"text"}},{key:"max_continuous_current",label:"Max Continuous Current",format:{type:"number",unit:"A",decimals:0}},{key:"switchIsOpen",label:"Position",format:{type:"text"}},{key:"switch_status",label:"Status",format:{type:"text"}},{key:"partnerIdentifier",label:"Partner ID",format:{type:"text"}}],CAPACITOR:[{key:"phase",label:"Phase",format:{type:"text"}},{key:"nominalVoltageV",label:"Nominal Voltage",format:{type:"voltage",unit:"V",decimals:0}}],OVERCURRENT_DEVICE:[{key:"size_value",label:"Size",format:{type:"text"}},{key:"phase",label:"Phase",format:{type:"text"}}],REGULATOR:[{key:"rated_kva",label:"Rated kVA",format:{type:"power",unit:"kVA",decimals:0}},{key:"phase",label:"Phase",format:{type:"text"}},{key:"manufacturer",label:"Manufacturer",format:{type:"text"}},{key:"high_side_configuration",label:"High Side",format:{type:"text"}},{key:"forwardSetVoltageV",label:"Forward Set Voltage",format:{type:"voltage",unit:"V",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"}},{key:"conductorDescNeutral",label:"Conductor Neutral",format:{type:"text"}},{key:"phase",label:"Phase",format:{type:"text"}},{key:"subtype_cd",label:"Subtype",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"}},{key:"phase",label:"Phase",format:{type:"text"}},{key:"subtype_cd",label:"Subtype",format:{type:"text"}}],NODE:[],SUPPORT_STRUCTURE:[{key:"height",label:"Height",format:{type:"distance",unit:"ft",decimals:0}},{key:"class",label:"Class",format:{type:"text"}},{key:"species",label:"Material",format:{type:"text"}},{key:"phase",label:"Phase",format:{type:"text"}},{key:"substation",label:"Substation",format:{type:"text"}}],GENERATOR:[{key:"phase",label:"Phase",format:{type:"text"}},{key:"generator_system_size",label:"System Size",format:{type:"number",decimals:1}}],MOTOR:[{key:"ratedPower",label:"Rated Power",format:{type:"power",unit:"kW",decimals:1}},{key:"voltage",label:"Voltage",format:{type:"voltage",unit:"V",decimals:0}}],DEVICE_LEADER:[],TRANSFORMER_BANK:[]},Ra={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"},insight:{icon:"LightbulbFilament",category:"platform",archetype:"platform",detailPage:false,label:{singular:"Insight",plural:"Insights"},description:"Derived finding surfaced from platform data"},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:lt.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:lt.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:lt.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:lt.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:lt.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:lt.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:lt.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:lt.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:lt.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:lt.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:lt.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:lt.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:lt.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:lt.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:lt.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:lt.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:lt.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:lt.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:lt.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:lt.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:lt.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:lt.SUPPORT_STRUCTURE},label:{singular:"Support Structure",plural:"Support Structures"},description:"Structure carrying overhead line equipment"},deviceLeader:{icon:"FlowArrow",category:"grid",archetype:"grid-line",detailPage:true,properties:{statList:lt.DEVICE_LEADER},label:{singular:"Device Leader",plural:"Device Leaders"},description:"Cartographic leader line pointing an offset device symbol to its true location"},transformerBank:{icon:"TextureTransformer",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:lt.TRANSFORMER_BANK},label:{singular:"Transformer Bank",plural:"Transformer Banks"},description:"Grouping of single-phase transformer units sharing a bank id"},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"}},VI={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:"SUPPORT_STRUCTURE",deviceLeader:"DEVICE_LEADER",transformerBank:"TRANSFORMER_BANK"};function wd(e){return Ra[e]}function OI(e){return Ra[e].icon}function zI(e,t=false){return t?Ra[e].label.plural:Ra[e].label.singular}function HI(e){return Ra[e].category}var GI={min:2,max:4};function WI(e){let t=Ra[e];if(!t)throw new Error(`archetypeFor: unknown entity type "${String(e)}"`);return t.archetype}function UI(e){return wd(e).detailPage}function KI(e){return (wd(e).fields?.headlineMetrics.length??0)>0}function $C(e){return wd(e).properties?.statList??[]}function YI(e){return $C(e).length>0}function JI({formId:e="dialog-form",onSubmit:t,primaryLabel:r="Save",secondaryLabel:o="Cancel",onCancel:n,primaryVariant:a,secondaryVariant:i="secondary",children:s,title:l,...c}){return jsxRuntime.jsx(cr,{title:l,primaryAction:{label:r,onPress:()=>{let u=document.getElementById(e);u&&u.requestSubmit();},variant:a},secondaryAction:n?{label:o,onPress:n,variant:i}:void 0,...c,children:jsxRuntime.jsx(li,{id:e,onSubmit:t,children:s})})}function XI({formId:e="drawer-form",onSubmit:t,primaryLabel:r="Save",secondaryLabel:o="Cancel",onCancel:n,primaryVariant:a,secondaryVariant:i="secondary",children:s,...l}){return jsxRuntime.jsx(us,{primaryAction:{label:r,onPress:()=>{let d=document.getElementById(e);d&&d.requestSubmit();},variant:a},secondaryAction:n?{label:o,onPress:n,variant:i}:void 0,...l,children:jsxRuntime.jsx(li,{id:e,onSubmit:t,className:"mt-2",children:s})})}function qI({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 _I={sm:"gap-2",md:"gap-4",lg:"gap-6"};function $I(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 e5({cols:e={base:1},gap:t="lg",className:r,...o}){return jsxRuntime.jsx("div",{...o,className:tailwindMerge.twMerge("grid",$I(e),_I[t],r)})}function o5({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(lr,{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 n5(){return jsxRuntime.jsx("hr",{className:"border-border-muted"})}function a5({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,l=i<n,c=r&&(l||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:!c,onClick:()=>c&&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",l&&"border-action-primary bg-action-primary text-text-inverse hover:bg-action-primary/90",s&&"border-action-primary bg-background-body text-action-primary",!l&&!s&&"border-border-default bg-background-body text-text-secondary",c&&"cursor-pointer",!c&&"cursor-default"),"aria-current":s?"step":void 0,children:l?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",l&&"text-text-primary",!s&&!l&&"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 s5({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(te,{variant:"secondary",onPress:o,children:a}),jsxRuntime.jsx(te,{type:"submit",form:e,isDisabled:!!r,children:r?"Saving...":n})]})]})}):null}function l5({when:e,message:t="You have unsaved changes. Leave anyway?"}){return Qe__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 c5({steps:e,initialStepId:t,canNavigate:r}){if(e.length===0)throw new Error("useWizard: steps array cannot be empty");let[o,n]=Qe__namespace.useState(t||e[0].id),a=e.findIndex(u=>u.id===o),i=a>0,s=a<e.length-1,l=async u=>u===o?true:r&&!await r(o,u)?false:(n(u),true);return {steps:e,currentStepId:o,setCurrentStepId:l,next:async()=>!s||a===-1?false:l(e[a+1].id),prev:async()=>!i||a===-1?false:l(e[a-1].id),hasNext:s,hasPrev:i,stepIndex:a}}function Os(e,t){return t.split(".").reduce((r,o)=>r?.[o],e)}function s0(e){return e==null?true:Array.isArray(e)?e.length===0:typeof e=="string"?e.trim()==="":false}function u5(e,t){let r=Os(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());case "isEmpty":return s0(r);case "isNotEmpty":return !s0(r);default:return false}}function l0(e,t){if(t.conditions.length===0)return true;let r=t.conditions.map(o=>"conditions"in o?l0(e,o):u5(e,o));return t.logic==="AND"?r.every(Boolean):r.some(Boolean)}function p5(e,t){return !t||t.conditions.length===0?e:e.filter(r=>l0(r,t))}function m5(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 f5(e,t){return t?[...e].sort((r,o)=>{let n=Os(r,t.field),a=Os(o,t.field);return m5(n,a,t.direction)}):e}function g5(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 d5__default.default(e,{keys:o,threshold:a,ignoreLocation:true,includeScore:true}).search(r).map(c=>c.item);let i=r.toLowerCase();return e.filter(s=>o.some(l=>{let c=Os(s,l);return c==null?false:String(c).toLowerCase().includes(i)}))}function b5(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=Os(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 Zm({data:e,filters:t,sort:r,search:o,facetConfigs:n=[]}){let a=g5(e,o||null);a=p5(a,t||null);let i=b5(a,n);return a=f5(a,r||null),{data:a,facetCounts:i,resultCount:a.length}}function Td({data:e,filters:t,sort:r,search:o,facetConfigs:n=[]}){return Qe.useMemo(()=>Zm({data:e,filters:t,sort:r,search:o,facetConfigs:n}),[e,t,r,o,n])}function kd({filters:e,sort:t,search:r,onStateChange:o,searchDebounce:n=300}){let a=an(r,n),i=Qe.useRef(true);Qe.useEffect(()=>{if(i.current){i.current=false;return}o({filters:e,sort:t,search:a});},[e,t,a,o]);}function c0(e){return e.mode==="client"?Td({data:e.data,filters:e.filters,sort:e.sort,search:e.search,facetConfigs:e.facetConfigs}):(kd({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 d0=nf(pp());function C5(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 S5(e,t){return t.accessor?typeof t.accessor=="function"?t.accessor(e):e[t.accessor]:null}function u0(e,t){let r=S5(t,e);return e.exportValue?e.exportValue(r,t)??"":r==null?"":r instanceof Date?r.toISOString():typeof r=="object"?JSON.stringify(r):r}function _m(e){return e.filter(t=>t.exportable!==false)}function p0(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 $m(e){let{columns:t,data:r,metadata:o={}}=e;try{let n=_m(t);if(n.length===0)throw new Error("No exportable columns found");p0(n);let a=r.map(c=>{let d={};for(let u of n){let m=u.exportLabel||u.label;d[m]=u0(u,c);}return d}),i=NP__default.default.unparse(a,{header:!0,skipEmptyLines:!0}),s=new Blob([i],{type:"text/csv;charset=utf-8;"}),l=C5(o.filename||"table-data","csv",o.timestamp!==!1);(0,d0.saveAs)(s,l);}catch(n){throw new Error(`CSV export failed: ${n instanceof Error?n.message:"Unknown error"}`)}}function w5(e){let{columns:t,data:r}=e,o=_m(t);return p0(o),r.map(n=>{let a={};for(let i of o){let s=i.exportLabel||i.label;a[s]=u0(i,n);}return a})}function N5(e){return _m(e).map(t=>t.exportLabel||t.label)}function m0({columns:e,data:t,metadata:r}){let n=e.filter(i=>i.exportable!==false).length>0&&t.length>0;return {exportCSV:Qe.useCallback(async()=>{try{await $m({columns:e,data:t,metadata:r});}catch(i){throw console.error("Table export failed:",i),i}},[e,t,r]),canExport:n}}function Ile(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=AI;exports.ActionCell=Ex;exports.ActionMenu=Wa;exports.ActivityFeed=Tu;exports.ActivityFeedGroup=il;exports.ActivityItem=sl;exports.Alert=Lg;exports.AppShell=zg;exports.AreaSeries=bn;exports.AutoMobileRenderer=Cc;exports.Autocomplete=gl;exports.Avatar=Ho;exports.BREAKPOINTS=Dn;exports.Badge=ft;exports.BadgeCell=Lx;exports.Banner=hl;exports.BarSeries=El;exports.BooleanCell=Dx;exports.BrandProvider=bf;exports.BreadcrumbItem=yl;exports.Breadcrumbs=xl;exports.Button=te;exports.CATEGORICAL_RAMP=qc;exports.CATEGORY_COLOR_TOKENS=Ax;exports.CATEGORY_NEUTRAL_COLOR=ac;exports.CHART_HEADER_HEIGHT=mu;exports.COLOR_RAMPS=Cs;exports.CUSTOM_ICON_REGISTRY=La;exports.Calendar=Xa;exports.Card=_e;exports.CardContent=hu;exports.CardFooter=xu;exports.CardHeader=el;exports.CardMedia=bu;exports.CardMobileRenderer=Sc;exports.CarouselAutoplayTrigger=fb;exports.CarouselControl=db;exports.CarouselIndicator=Xu;exports.CarouselIndicatorGroup=mb;exports.CarouselItem=cb;exports.CarouselItemGroup=lb;exports.CarouselNextTrigger=pb;exports.CarouselPrevTrigger=ub;exports.CarouselProgressText=gb;exports.CarouselRoot=sb;exports.CategoryBarChart=Zb;exports.CategoryCell=Fx;exports.ChartAxis=Xr;exports.ChartBottomBar=ei;exports.ChartContainer=xh;exports.ChartContext=Jr;exports.ChartEventMarkers=Bl;exports.ChartEventSpans=Vl;exports.ChartExpandOwnedByAncestor=hp;exports.ChartHeader=Ha;exports.ChartLabelledBy=rn;exports.ChartOwnsItsTitle=ug;exports.ChartTooltip=Co;exports.Checkbox=eo;exports.CheckboxGroup=ju;exports.Chip=Yr;exports.ChipInputField=Sb;exports.ClearButton=Vi;exports.CodeEditor=Tb;exports.Collapse=ja;exports.CollapseContent=fn;exports.CollapseHeader=mn;exports.CollapseItem=pn;exports.ColorField=Nk;exports.ColorModeProvider=kf;exports.CommandPalette=Py;exports.Confirm=Lb;exports.ConnectionStatusBadge=Db;exports.ContactCard=Ab;exports.ContactMetaCell=Vx;exports.ContactMetaDisplay=Nl;exports.ContainerQueryProvider=Bb;exports.CopyToClipboard=ln;exports.CustomCell=Ox;exports.DEFAULT_CHART_HEIGHT=hh;exports.DEFAULT_MAP_TYPE=rd;exports.DIVERGING_RAMPS=jc;exports.DataControls=bx;exports.DataTable=gy;exports.DateCell=zx;exports.DateField=Sx;exports.DateRangePicker=$l;exports.DeltaCell=Hx;exports.Description=Te;exports.DeviceHealthBadge=hy;exports.DeviceMetaCell=Wx;exports.DeviceMetaDisplay=lc;exports.DeviceStateBadge=aa;exports.DeviceStateCell=Yx;exports.DeviceStateWithMetric=uc;exports.DeviceTypeIcon=yy;exports.Dialog=cr;exports.DialogForm=JI;exports.DialogHeader=_t;exports.Drawer=us;exports.DrawerForm=XI;exports.ENTITY_CATEGORY_CONFIG=DI;exports.ENTITY_CONFIG=Ra;exports.EmptyState=Kl;exports.EnrollmentStatusBadge=Cy;exports.ErrorBoundary=$r;exports.FieldError=he;exports.FieldGroup=Wg;exports.FileUpload=wy;exports.FilterChips=hx;exports.FilterDialog=kx;exports.FirmwareVersionBadge=Ty;exports.Form=li;exports.FormActions=qI;exports.FormDivider=n5;exports.FormGrid=e5;exports.FormSection=o5;exports.FormStepper=a5;exports.FormatRegistry=ce;exports.FormattedCell=Xx;exports.FunnelSeries=Sh;exports.GRID_ELEMENT_TYPE_BY_ENTITY=VI;exports.GRID_STATE_COLORS=LI;exports.GRID_STAT_LIST=lt;exports.GRID_STAT_LIST_CAPACITOR_PER_PHASE_KVAR=BI;exports.GRID_STAT_LIST_CAPACITOR_TOTAL_KVAR=FI;exports.GlobalSearch=My;exports.Grid=im;exports.GridStateBadge=dc;exports.HEADLINE_METRIC_BOUNDS=GI;exports.Heading=lr;exports.HierarchyExplorer=nv;exports.HorizontalBarCell=jp;exports.HoverCard=lL;exports.Icon=V;exports.IndexCell=Qx;exports.InfiniteScrollIndicator=Ur;exports.Input=pl;exports.InputWrapper=St;exports.InteractiveMap=Ts;exports.Kpi=dv;exports.KpiGroup=fm;exports.Label=Ye;exports.LineSeries=Qn;exports.List=bv;exports.ListBox=RL;exports.ListBoxItem=pr;exports.ListItem=xv;exports.ListPane=yv;exports.Loader=Wr;exports.Logo=Ka;exports.MAP_TYPES=oC;exports.MapStyleProvider=rC;exports.Meter=lC;exports.MiniBarCell=qp;exports.ModalBackdrop=kr;exports.MultiSelect=dC;exports.Notice=pd;exports.NoticeContainer=md;exports.NoticeProvider=pC;exports.NumberCell=$x;exports.NumberField=as;exports.PageBanner=$g;exports.PageLayout=Ca;exports.PercentBarCell=_p;exports.PieChart=kh;exports.PlaceSearch=vC;exports.Popover=vt;exports.ProgressBar=SC;exports.Prose=wC;exports.Radio=RC;exports.RadioCard=NC;exports.RadioCardGroup=TC;exports.RadioGroup=PC;exports.RangeCalendar=ni;exports.RangeCell=ry;exports.ResultsCount=ts;exports.RichTextEditor=LC;exports.SEQUENTIAL_RAMPS=Xc;exports.SKELETON_SIZES=wn;exports.SOURCE_UNIT_TO_WH=qd;exports.SaveBar=s5;exports.SearchControl=ta;exports.SearchEmptyState=Ly;exports.SearchLoadingState=Ay;exports.SearchResultGroup=Fy;exports.SearchResultItem=By;exports.SearchResultsList=Vy;exports.SearchTrigger=zy;exports.Section=xi;exports.SectionNav=gd;exports.SegmentedControl=Xl;exports.Select=zo;exports.SelectCell=bc;exports.SideNav=cl;exports.SiteCard=DC;exports.SiteContactCard=IC;exports.SiteMetaCell=ny;exports.SiteMetaDisplay=hc;exports.Skeleton=Y;exports.Slider=FC;exports.SortControl=rs;exports.SparklineCell=$p;exports.SplitPane=Sd;exports.StackNav=Ya;exports.StatList=Lc;exports.StaticMap=hi;exports.Switch=ec;exports.Tab=vd;exports.TabList=yd;exports.TabPanel=hC;exports.Tabs=xd;exports.TextArea=GC;exports.TextAreaWithChips=YC;exports.TextCell=ly;exports.TextField=qr;exports.TextLink=ut;exports.TiledTimeSeriesChart=Wl;exports.TiledTimeSeriesExplorer=ux;exports.TimeControls=jl;exports.TimeField=XC;exports.Timeline=jC;exports.TimelineItem=qC;exports.ToggleButton=_C;exports.Tooltip=dr;exports.TopNav=Bi;exports.Tray=Ct;exports.UNARY_FILTER_OPERATORS=xx;exports.UNARY_OPERATOR_LABELS=vx;exports.UNVERIFIED_VOLTAGE_UNIT_ROWS=II;exports.UnsavedChangesPrompt=l5;exports.activeDeviceStates=D2;exports.addFilterCondition=Sn;exports.applyDataOperations=Zm;exports.archetypeFor=WI;exports.assembleSeries=Uh;exports.autoScaleCurrent=zS;exports.autoScaleDistance=Ff;exports.autoScaleEnergy=zf;exports.autoScalePower=XS;exports.autoScaleResistance=jS;exports.autoScaleVoltage=tw;exports.baselineFromPoint=aP;exports.camelCaseToWords=tg;exports.capitalize=$f;exports.celsiusToFahrenheit=qS;exports.celsiusToKelvin=vF;exports.centimetersToInches=tF;exports.classicPresetRanges=ex;exports.clearColorCache=Us;exports.createCategoryColorMap=CS;exports.createEmptyFilter=os;exports.createFilter=UR;exports.createFilters=KR;exports.createFormat=XF;exports.createTextureIcon=mt;exports.createTiledCameraSyncGroup=Ph;exports.createXScale=sp;exports.createYScale=Ui;exports.csvUnitFor=su;exports.csvValueFor=ng;exports.defaultMargin=Ge;exports.defaultMultiSelectMatcher=Om;exports.deltaDirectionFromValue=Kp;exports.deviceStateLabels=A2;exports.deviceStateMetricFormats=yX;exports.emptyStore=Kh;exports.entityHasDetailPage=UI;exports.entityHasStatList=YI;exports.entityShowsNow=KI;exports.enumToSentenceCase=$S;exports.exportChart=fp;exports.exportTableAsCSV=$m;exports.fahrenheitToCelsius=QS;exports.fahrenheitToKelvin=CF;exports.feetToMeters=J4;exports.feetToMiles=q4;exports.filterMultiSelectOptions=ad;exports.filterToChips=YR;exports.formatBoolean=Pf;exports.formatCapacity=N4;exports.formatComponentValue=fo;exports.formatCurrency=Df;exports.formatCurrent=Hd;exports.formatDate=Af;exports.formatDistance=Bf;exports.formatEmptyValue=oc;exports.formatEnergy=Qd;exports.formatFieldValue=Pr;exports.formatInternationalPhone=Zd;exports.formatNumber=Lf;exports.formatPercent=Ef;exports.formatPhone=Hf;exports.formatPhoneNumber=Ia;exports.formatPower=tu;exports.formatPowerRating=T4;exports.formatResistance=ou;exports.formatTemperature=jf;exports.formatText=og;exports.formatUSPhone=js;exports.formatVoltage=iu;exports.getBadgeClasses=Px;exports.getBooleanBadgeVariant=Rx;exports.getCellAlignmentClasses=Wp;exports.getCellContainerClasses=we;exports.getCellTextClasses=yr;exports.getColorRamp=Em;exports.getColorRampsByKind=Mm;exports.getContrastingTextColor=SS;exports.getDateParts=H4;exports.getDefaultChartColor=Ni;exports.getDefaultColors=Ks;exports.getDeviceStateDisplayLabel=Jp;exports.getDeviceStateLabel=Jp;exports.getEntityCategory=HI;exports.getEntityConfig=wd;exports.getEntityIcon=OI;exports.getEntityLabel=zI;exports.getEntityStatList=$C;exports.getEventColor=Wo;exports.getExportFormatName=EP;exports.getExportHeaders=N5;exports.getFieldGroupStyles=kN;exports.getFilterFields=oa;exports.getGridStateLabel=Kx;exports.getInputBackgroundStyles=Gg;exports.getInputBaseStyles=zt;exports.getInputStateStyles=sn;exports.getLinkClasses=Up;exports.getNumericColorClasses=nc;exports.getResolvedColor=Vt;exports.getSkeletonSize=Tt;exports.getStateTone=Ile;exports.getThemeCategoricalColors=Oo;exports.getYFormatSettings=Dr;exports.gridStateLabels=F2;exports.inchesToCentimeters=eF;exports.isActiveDeviceState=Yp;exports.isActiveState=Yp;exports.isCustomPinsLayer=km;exports.isExportSupported=RP;exports.isFilterEmpty=_l;exports.isGeoJsonLayer=Tm;exports.isLightColor=xf;exports.isNil=be;exports.isRasterLayer=Pm;exports.isUnaryFilterOperator=yx;exports.isVectorLayer=Nm;exports.kelvinToCelsius=ZS;exports.kelvinToFahrenheit=SF;exports.kilometersToMiles=j4;exports.layer=wm;exports.mapValuesToCategoricalColors=Ti;exports.metersToFeet=Y4;exports.metersToMiles=Q4;exports.metersToYards=$4;exports.milesToFeet=If;exports.milesToKilometers=X4;exports.milesToMeters=Z4;exports.multiSelectSearchKeys=zm;exports.multiSelectSelectionEntries=sd;exports.parseBoolean=$o;exports.percentThresholdLevel=Zp;exports.pickEnergyUnit=jd;exports.prepareTableDataForExport=w5;exports.registerPhosphorIcon=iC;exports.removeFilterCondition=ra;exports.resolveValue=me;exports.shouldOfferLiteralOption=id;exports.snakeCaseToWords=rg;exports.telemetryPresetRanges=Yl;exports.temperatureStringToSymbol=Uf;exports.tierForViewport=Ul;exports.tileIndexAt=U1;exports.tileKey=hr;exports.tileReducer=Yh;exports.tilesForViewport=xn;exports.toA=F4;exports.toActiveInactive=MS;exports.toAmps=Js;exports.toBoolean=_o;exports.toCelsius=Yf;exports.toCentimeters=KS;exports.toCheckmark=DS;exports.toCompactNumber=BS;exports.toCurrency=Mf;exports.toCustomDateFormat=US;exports.toDateString=HS;exports.toEnabledDisabled=RS;exports.toFahrenheit=Kf;exports.toFeet=Ud;exports.toFloat=IS;exports.toFormattedNumber=FS;exports.toFullDateTime=GS;exports.toGW=mF;exports.toGWh=Of;exports.toGigawatts=eu;exports.toISOString=WS;exports.toInches=JS;exports.toInteger=AS;exports.toKA=B4;exports.toKV=MF;exports.toKW=uF;exports.toKelvin=Jf;exports.toKiloamps=zd;exports.toKilohms=Gf;exports.toKilometers=Wd;exports.toKilovolts=au;exports.toKilowatts=_d;exports.toLowerCase=Qf;exports.toMA=I4;exports.toMV=RF;exports.toMW=pF;exports.toMWh=Vf;exports.toMegawatts=$d;exports.toMegohms=Wf;exports.toMeters=Gd;exports.toMiles=Kd;exports.toMilliamps=Od;exports.toMillimeters=YS;exports.toMilliohms=ru;exports.toMillivolts=nu;exports.toNauticalMiles=K4;exports.toOhms=Qs;exports.toOnOff=ES;exports.toPercentage=Rf;exports.toRelativeTime=Xs;exports.toScientificNotation=VS;exports.toSecret=ew;exports.toSentenceCase=Zf;exports.toTemperature=Xf;exports.toTitleCase=_f;exports.toTrueFalse=LS;exports.toUpperCase=qf;exports.toV=EF;exports.toVolts=$s;exports.toW=dF;exports.toWatts=qs;exports.toWh=Jd;exports.toYards=Yd;exports.tokWh=Xd;exports.truncateEnd=_s;exports.truncateMiddle=Fa;exports.truncateStart=Zs;exports.typeRole=kt;exports.typographyRole=go;exports.ucFirst=eg;exports.useBreakpoint=ar;exports.useChartContext=Xn;exports.useChartExpand=qn;exports.useChartHeaderMetrics=za;exports.useChartOwnsItsTitle=pg;exports.useClientDataControls=Td;exports.useColorMode=jt;exports.useComponentFormatter=E4;exports.useContainerBreakpoint=Ib;exports.useDataControls=c0;exports.useDebounce=an;exports.useElementSize=Ja;exports.useInfiniteScroll=on;exports.useInputFocus=ur;exports.useLocalStorage=Wc;exports.useMapStyleOverride=fi;exports.useMediaQuery=nr;exports.useNotice=fC;exports.useServerDataControls=kd;exports.useTableExport=m0;exports.useTileWindow=_h;exports.useTiledTimeSeries=Mp;exports.useWizard=c5;exports.wrapWithLink=Po;exports.yardsToMeters=_4;//# sourceMappingURL=index.cjs.map
50
+ `).length-1&&jsxRuntime.jsx("br",{})]},`line-${q}-${N}`)):W}):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(St,{children:jsxRuntime.jsx("div",{ref:T,contentEditable:!l,suppressContentEditableWarning:true,onInput:z=>{if(l)return;let W=z.target,q=W.querySelector("[data-chip-id]")!==null,F;if(q?(F=D(W),F=F.replace(/(\{\{[^}]+\}\})\s{2,}/g,"$1 ").replace(/\s{2,}(\{\{[^}]+\}\})/g," $1")):F=W.textContent||"",F===""){try{let v=document.createRange();v.selectNodeContents(W),v.collapse(!0);let M=window.getSelection();M?.removeAllRanges(),M?.addRange(v),k.current=0;}catch{}B("",0);return}if(F===m)return;let X=window.getSelection(),N=0;if(X&&X.rangeCount>0)try{let v=X.getRangeAt(0);if(q){let M=0,A=!1,J=ae=>{if(A)return !0;if(ae===v.startContainer)return M+=v.startOffset,A=!0,!0;if(ae.nodeType===Node.TEXT_NODE){if(!ae.parentElement?.closest("[data-chip-id]")){if(ae.contains(v.startContainer))return M+=v.startOffset,A=!0,!0;M+=(ae.textContent||"").length;}}else if(ae.nodeType===Node.ELEMENT_NODE){let le=ae;if(le.hasAttribute("data-chip-id")){if(le.contains(v.startContainer)||le===v.startContainer){let ie=le.getAttribute("data-chip-id");return M+=`{{${ie}}}`.length,A=!0,!0}let $=le.getAttribute("data-chip-id");return M+=`{{${$}}}`.length,!1}else if(le.tagName==="BR")return le===v.startContainer?(A=!0,!0):(M+=1,!1)}for(let le=0;le<ae.childNodes.length;le++)if(J(ae.childNodes[le]))return !0;return !1};J(W),N=M;}else {let M=document.createRange();M.setStart(W,0),M.setEnd(v.startContainer,v.startOffset),N=M.toString().length;}}catch{N=F.length;}k.current=N,B(F,N);},onKeyDown:z=>{if(l)return;let W=window.getSelection();if(!(!W||W.rangeCount===0))try{let q=W.getRangeAt(0),F=q.commonAncestorContainer;if(z.key==="ArrowLeft"||z.key==="ArrowRight"){let X=F.nodeType===Node.TEXT_NODE?F.parentElement?.closest("[data-chip-id]"):F.closest("[data-chip-id]");if(X){z.preventDefault();try{let N=document.createRange(),v=window.getSelection();z.key==="ArrowLeft"?N.setStartBefore(X):N.setStartAfter(X),N.collapse(!0),v?.removeAllRanges(),v?.addRange(N);}catch{}}}if(z.key==="Backspace"){let X=null;if(X=(F.nodeType===Node.TEXT_NODE?F.parentElement?.closest("[data-chip-id]"):F.closest("[data-chip-id]"))||null,!X)if(F.nodeType===Node.TEXT_NODE){let N=F;if(q.startOffset===0&&N.parentElement){let v=N.previousSibling;if(v&&v.nodeType===Node.ELEMENT_NODE){let M=v.closest("[data-chip-id]");M&&(X=M);}}}else {let N=F;if(q.startOffset>0){let v=N.childNodes[q.startOffset-1];if(v&&v.nodeType===Node.ELEMENT_NODE){let M=v.closest("[data-chip-id]");M&&(X=M);}}}if(X){z.preventDefault(),z.stopPropagation();let N=X.getAttribute("data-chip-id");if(!N)return;let v=`{{${N}}}`,M=m.indexOf(v);if(M!==-1){let A=m.slice(0,M)+m.slice(M+v.length),J=g.filter(ae=>ae.id!==N);k.current=M;try{window.getSelection()?.removeAllRanges();}catch{}f?.(J),p?.(A);}}}}catch{}},onFocus:z=>{l||(S.onFocus&&S.onFocus(z),P(z));},onBlur:z=>{l||(S.onBlur&&S.onBlur(z),E(z));},className:G(),style:{whiteSpace:"pre-wrap",wordBreak:"break-word",...S.style},"data-placeholder":S.placeholder,children:Z()},m===""?"empty":"content")}),t&&jsxRuntime.jsx(Te,{size:o,className:"mt-3",children:t}),typeof r=="string"&&jsxRuntime.jsx(he,{size:o,className:"mt-1",children:r}),typeof r=="function"&&u&&jsxRuntime.jsx(he,{size:o,className:"mt-1",children:r(u)})]})})}function yI({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 jC({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,isDisabled:i,isInvalid:s,reserveErrorSpace:l=true,validationResult:c,className:d,descriptionPlacement:u="below",...m}){return jsxRuntime.jsxs(reactAriaComponents.TimeField,{...m,isDisabled:i,isRequired:a,isInvalid:s,className:Ae(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(St,{children:jsxRuntime.jsx(reactAriaComponents.DateInput,{className:tailwindMerge.twMerge(sn({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:yI({isPlaceholder:p.isPlaceholder,isDisabled:!p.isEditable||i,size:o})})})}),l?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(he,{size:o,children:r}):typeof r=="function"&&c?jsxRuntime.jsx(he,{size:o,children:r(c)}):t&&u==="below"?jsxRuntime.jsx(Te,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(he,{size:o,className:"mt-1",children:r}):typeof r=="function"&&c?jsxRuntime.jsx(he,{size:o,className:"mt-1",children:r(c)}):t&&u==="below"?jsxRuntime.jsx(Te,{size:o,className:"mt-1",children:t}):null})]})}function qC({children:e,className:t=""}){return jsxRuntime.jsx("div",{className:`flex flex-col ${t}`.trim(),role:"list",children:e})}function QC({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 NI(e){return "primary"}var TI="flex font-medium justify-center items-center gap-2 text-center transition whitespace-nowrap box-border",ZC={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]"}},kI="opacity-[--control-hover-opacity] cursor-not-allowed pointer-events-none grayscale",PI="opacity-100 cursor-pointer",RI={"top-right":"-right-2 -top-2","top-left":"-left-2 -top-2","bottom-right":"-right-2 -bottom-2","bottom-left":"-left-2 -bottom-2"},EI={primary:"bg-action-primary text-[color:var(--color-action-primary-text)]",destructive:"bg-feedback-error-border text-text-inverse"};function MI(e){let{variant:t="primary",size:r="md",isDisabled:o,isSelected:n,borderRadius:a,borderRight:i,borderLeft:s}=e,l=NI(),c=`${TI} ${n?ZC[l].selected:ZC[l].unselected}`;return c+=` ${Ue[r].text} ${Ue[r].height} ${Ue[r].padding} ${Ue[r].gap}`,c+=` ${o?kI:PI}`,a==="left"&&(c+=" rounded-l-sm"),a==="right"&&(c+=" rounded-r-sm"),i&&(c+=" border-r"),s&&(c+=" border-l"),c+=` ${rt()}`,(c+=" focus-visible:outline-action-primary"),tailwindMerge.twMerge(c)}function $C(e){let{className:t,children:r,onPress:o,icon:n,iconPosition:a="left",iconWeight:i,isLoading:s=false,loadingText:l,loadingIndicator:c,size:d="md",badgeNumber:u,badgeVariant:m="primary",badgePosition:p="top-right",...g}=e,f=n?jsxRuntime.jsx(V,{name:n,size:d,weight:i}):null,y=()=>{let h=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[a==="left"&&f,r,a==="right"&&f]});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:c||jsxRuntime.jsx(V,{name:"CircleNotch",size:d,className:"animate-spin","aria-hidden":"true"})}),jsxRuntime.jsx("div",{className:"invisible","aria-hidden":"true",children:h}),l&&jsxRuntime.jsx("span",{className:"sr-only",role:"status","aria-live":"polite",children:l})]}):h},b=jsxRuntime.jsx(reactAriaComponents.ToggleButton,{onPress:o,...g,className:tailwindMerge.twMerge(MI(e),t),"aria-busy":s,children:y()});return u&&u>0?jsxRuntime.jsxs("div",{className:"relative",children:[b,jsxRuntime.jsx("span",{className:`absolute ${RI[p]} flex h-5 w-5 items-center justify-center rounded-full ${EI[m]} text-xs`,"aria-label":`${u} items`,children:u})]}):b}var DI={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"}},AI={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}},II=["energized","customerName","gs_max_continuous_current"],FI=["MOTOR.voltage"],BI=[{key:"total_kvar",label:"Rated kvar",format:{type:"power",unit:"kvar",decimals:1}}],VI=[{key:"kvar_a",label:"kvar A",format:{type:"power",unit:"kvar",decimals:1}},{key:"kvar_b",label:"kvar B",format:{type:"power",unit:"kvar",decimals:1}},{key:"kvar_c",label:"kvar C",format:{type:"power",unit:"kvar",decimals:1}}],lt={TRANSFORMER:[{key:"capacityKva",label:"kVA Rating",format:{type:"power",unit:"kVA",decimals:0}},{key:"phase",label:"Phase",format:{type:"text"}},{key:"primaryVoltageKv",label:"Primary Voltage",format:{type:"voltage",unit:"kV",decimals:1}},{key:"outputVoltageKv",label:"Output Voltage",format:{type:"voltage",unit:"kV",decimals:2}},{key:"manufacturer",label:"Manufacturer",format:{type:"text"}},{key:"xfmr_conductor_description",label:"Conductor",format:{type:"text"}}],CONSUMER:[{key:"service_address",label:"Service address",format:{type:"text"}},{key:"name",label:"Customer",format:{type:"text"}},{key:"account_number",label:"Account #",format:{type:"text"}},{key:"meterNumber",label:"Meter Number",format:{type:"text"}},{key:"service_type",label:"Service type",format:{type:"text"}}],SOURCE:[{key:"voltageKv",label:"Nominal Voltage",format:{type:"voltage",unit:"kV",decimals:1}},{key:"substationNumber",label:"Substation Number",format:{type:"text"}},{key:"trf_capacity",label:"Rated Capacity",format:{type:"text"}},{key:"connection_code",label:"Connection",format:{type:"text"}}],SWITCH:[{key:"switchId",label:"Switch ID",format:{type:"text"}},{key:"phase",label:"Phase",format:{type:"text"}},{key:"max_continuous_current",label:"Max Continuous Current",format:{type:"number",unit:"A",decimals:0}},{key:"switchIsOpen",label:"Position",format:{type:"text"}},{key:"switch_status",label:"Status",format:{type:"text"}},{key:"partnerIdentifier",label:"Partner ID",format:{type:"text"}}],CAPACITOR:[{key:"phase",label:"Phase",format:{type:"text"}},{key:"nominalVoltageV",label:"Nominal Voltage",format:{type:"voltage",unit:"V",decimals:0}}],OVERCURRENT_DEVICE:[{key:"size_value",label:"Size",format:{type:"text"}},{key:"phase",label:"Phase",format:{type:"text"}}],REGULATOR:[{key:"rated_kva",label:"Rated kVA",format:{type:"power",unit:"kVA",decimals:0}},{key:"phase",label:"Phase",format:{type:"text"}},{key:"manufacturer",label:"Manufacturer",format:{type:"text"}},{key:"high_side_configuration",label:"High Side",format:{type:"text"}},{key:"forwardSetVoltageV",label:"Forward Set Voltage",format:{type:"voltage",unit:"V",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"}},{key:"conductorDescNeutral",label:"Conductor Neutral",format:{type:"text"}},{key:"phase",label:"Phase",format:{type:"text"}},{key:"subtype_cd",label:"Subtype",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"}},{key:"phase",label:"Phase",format:{type:"text"}},{key:"subtype_cd",label:"Subtype",format:{type:"text"}}],NODE:[],SUPPORT_STRUCTURE:[{key:"height",label:"Height",format:{type:"distance",unit:"ft",decimals:0}},{key:"class",label:"Class",format:{type:"text"}},{key:"species",label:"Material",format:{type:"text"}},{key:"phase",label:"Phase",format:{type:"text"}},{key:"substation",label:"Substation",format:{type:"text"}}],GENERATOR:[{key:"phase",label:"Phase",format:{type:"text"}},{key:"generator_system_size",label:"System Size",format:{type:"number",decimals:1}}],MOTOR:[{key:"ratedPower",label:"Rated Power",format:{type:"power",unit:"kW",decimals:1}},{key:"voltage",label:"Voltage",format:{type:"voltage",unit:"V",decimals:0}}],DEVICE_LEADER:[],TRANSFORMER_BANK:[]},Ra={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"},insight:{icon:"LightbulbFilament",category:"platform",archetype:"platform",detailPage:false,label:{singular:"Insight",plural:"Insights"},description:"Derived finding surfaced from platform data"},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:lt.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:lt.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:lt.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:lt.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:lt.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:lt.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:lt.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:lt.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:lt.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:lt.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:lt.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:lt.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:lt.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:lt.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:lt.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:lt.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:lt.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:lt.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:lt.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:lt.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:lt.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:lt.SUPPORT_STRUCTURE},label:{singular:"Support Structure",plural:"Support Structures"},description:"Structure carrying overhead line equipment"},deviceLeader:{icon:"FlowArrow",category:"grid",archetype:"grid-line",detailPage:true,properties:{statList:lt.DEVICE_LEADER},label:{singular:"Device Leader",plural:"Device Leaders"},description:"Cartographic leader line pointing an offset device symbol to its true location"},transformerBank:{icon:"TextureTransformer",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:lt.TRANSFORMER_BANK},label:{singular:"Transformer Bank",plural:"Transformer Banks"},description:"Grouping of single-phase transformer units sharing a bank id"},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"}},OI={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:"SUPPORT_STRUCTURE",deviceLeader:"DEVICE_LEADER",transformerBank:"TRANSFORMER_BANK"};function wd(e){return Ra[e]}function zI(e){return Ra[e].icon}function HI(e,t=false){return t?Ra[e].label.plural:Ra[e].label.singular}function GI(e){return Ra[e].category}var WI={min:2,max:4};function UI(e){let t=Ra[e];if(!t)throw new Error(`archetypeFor: unknown entity type "${String(e)}"`);return t.archetype}function KI(e){return wd(e).detailPage}function YI(e){return (wd(e).fields?.headlineMetrics.length??0)>0}function e0(e){return wd(e).properties?.statList??[]}function JI(e){return e0(e).length>0}function XI({formId:e="dialog-form",onSubmit:t,primaryLabel:r="Save",secondaryLabel:o="Cancel",onCancel:n,primaryVariant:a,secondaryVariant:i="secondary",children:s,title:l,...c}){return jsxRuntime.jsx(cr,{title:l,primaryAction:{label:r,onPress:()=>{let u=document.getElementById(e);u&&u.requestSubmit();},variant:a},secondaryAction:n?{label:o,onPress:n,variant:i}:void 0,...c,children:jsxRuntime.jsx(li,{id:e,onSubmit:t,children:s})})}function jI({formId:e="drawer-form",onSubmit:t,primaryLabel:r="Save",secondaryLabel:o="Cancel",onCancel:n,primaryVariant:a,secondaryVariant:i="secondary",children:s,...l}){return jsxRuntime.jsx(us,{primaryAction:{label:r,onPress:()=>{let d=document.getElementById(e);d&&d.requestSubmit();},variant:a},secondaryAction:n?{label:o,onPress:n,variant:i}:void 0,...l,children:jsxRuntime.jsx(li,{id:e,onSubmit:t,className:"mt-2",children:s})})}function QI({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 $I={sm:"gap-2",md:"gap-4",lg:"gap-6"};function e5(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 t5({cols:e={base:1},gap:t="lg",className:r,...o}){return jsxRuntime.jsx("div",{...o,className:tailwindMerge.twMerge("grid",e5(e),$I[t],r)})}function n5({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(lr,{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 a5(){return jsxRuntime.jsx("hr",{className:"border-border-muted"})}function i5({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,l=i<n,c=r&&(l||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:!c,onClick:()=>c&&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",l&&"border-action-primary bg-action-primary text-text-inverse hover:bg-action-primary/90",s&&"border-action-primary bg-background-body text-action-primary",!l&&!s&&"border-border-default bg-background-body text-text-secondary",c&&"cursor-pointer",!c&&"cursor-default"),"aria-current":s?"step":void 0,children:l?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",l&&"text-text-primary",!s&&!l&&"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 l5({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(te,{variant:"secondary",onPress:o,children:a}),jsxRuntime.jsx(te,{type:"submit",form:e,isDisabled:!!r,children:r?"Saving...":n})]})]})}):null}function c5({when:e,message:t="You have unsaved changes. Leave anyway?"}){return Qe__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 d5({steps:e,initialStepId:t,canNavigate:r}){if(e.length===0)throw new Error("useWizard: steps array cannot be empty");let[o,n]=Qe__namespace.useState(t||e[0].id),a=e.findIndex(u=>u.id===o),i=a>0,s=a<e.length-1,l=async u=>u===o?true:r&&!await r(o,u)?false:(n(u),true);return {steps:e,currentStepId:o,setCurrentStepId:l,next:async()=>!s||a===-1?false:l(e[a+1].id),prev:async()=>!i||a===-1?false:l(e[a-1].id),hasNext:s,hasPrev:i,stepIndex:a}}function Os(e,t){return t.split(".").reduce((r,o)=>r?.[o],e)}function l0(e){return e==null?true:Array.isArray(e)?e.length===0:typeof e=="string"?e.trim()==="":false}function p5(e,t){let r=Os(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());case "isEmpty":return l0(r);case "isNotEmpty":return !l0(r);default:return false}}function c0(e,t){if(t.conditions.length===0)return true;let r=t.conditions.map(o=>"conditions"in o?c0(e,o):p5(e,o));return t.logic==="AND"?r.every(Boolean):r.some(Boolean)}function m5(e,t){return !t||t.conditions.length===0?e:e.filter(r=>c0(r,t))}function f5(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 g5(e,t){return t?[...e].sort((r,o)=>{let n=Os(r,t.field),a=Os(o,t.field);return f5(n,a,t.direction)}):e}function b5(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 u5__default.default(e,{keys:o,threshold:a,ignoreLocation:true,includeScore:true}).search(r).map(c=>c.item);let i=r.toLowerCase();return e.filter(s=>o.some(l=>{let c=Os(s,l);return c==null?false:String(c).toLowerCase().includes(i)}))}function h5(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=Os(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 Zm({data:e,filters:t,sort:r,search:o,facetConfigs:n=[]}){let a=b5(e,o||null);a=m5(a,t||null);let i=h5(a,n);return a=g5(a,r||null),{data:a,facetCounts:i,resultCount:a.length}}function Td({data:e,filters:t,sort:r,search:o,facetConfigs:n=[]}){return Qe.useMemo(()=>Zm({data:e,filters:t,sort:r,search:o,facetConfigs:n}),[e,t,r,o,n])}function kd({filters:e,sort:t,search:r,onStateChange:o,searchDebounce:n=300}){let a=an(r,n),i=Qe.useRef(true);Qe.useEffect(()=>{if(i.current){i.current=false;return}o({filters:e,sort:t,search:a});},[e,t,a,o]);}function d0(e){return e.mode==="client"?Td({data:e.data,filters:e.filters,sort:e.sort,search:e.search,facetConfigs:e.facetConfigs}):(kd({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 u0=af(pp());function S5(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 _m(e){return /^[=+\-@\t\r]/.test(e)?`'${e}`:e}function w5(e,t){return t.accessor?typeof t.accessor=="function"?t.accessor(e):e[t.accessor]:null}function p0(e,t){let r=w5(t,e);if(e.exportValue){let o=e.exportValue(r,t);return o==null?"":typeof o=="string"?_m(o):o}return r==null?"":r instanceof Date?r.toISOString():typeof r=="object"?_m(JSON.stringify(r)):typeof r=="string"?_m(r):r}function $m(e){return e.filter(t=>t.exportable!==false)}function m0(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 ef(e){let{columns:t,data:r,metadata:o={}}=e;try{let n=$m(t);if(n.length===0)throw new Error("No exportable columns found");m0(n);let a=r.map(c=>{let d={};for(let u of n){let m=u.exportLabel||u.label;d[m]=p0(u,c);}return d}),i=TP__default.default.unparse(a,{header:!0,skipEmptyLines:!0}),s=new Blob([i],{type:"text/csv;charset=utf-8;"}),l=S5(o.filename||"table-data","csv",o.timestamp!==!1);(0,u0.saveAs)(s,l);}catch(n){throw new Error(`CSV export failed: ${n instanceof Error?n.message:"Unknown error"}`)}}function N5(e){let{columns:t,data:r}=e,o=$m(t);return m0(o),r.map(n=>{let a={};for(let i of o){let s=i.exportLabel||i.label;a[s]=p0(i,n);}return a})}function T5(e){return $m(e).map(t=>t.exportLabel||t.label)}function f0({columns:e,data:t,metadata:r}){let n=e.filter(l=>l.exportable!==false).length>0&&t.length>0,[a,i]=Qe.useState(false);return {exportCSV:Qe.useCallback(async()=>{i(true);try{await ef({columns:e,data:t,metadata:r});}catch(l){throw console.error("Table export failed:",l),l}finally{i(false);}},[e,t,r]),canExport:n,isExporting:a}}function Ble(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=II;exports.ActionCell=Mx;exports.ActionMenu=Wa;exports.ActivityFeed=Tu;exports.ActivityFeedGroup=il;exports.ActivityItem=sl;exports.Alert=Dg;exports.AppShell=Hg;exports.AreaSeries=bn;exports.AutoMobileRenderer=Cc;exports.Autocomplete=gl;exports.Avatar=Ho;exports.BREAKPOINTS=Dn;exports.Badge=ft;exports.BadgeCell=Dx;exports.Banner=hl;exports.BarSeries=El;exports.BooleanCell=Ax;exports.BrandProvider=hf;exports.BreadcrumbItem=yl;exports.Breadcrumbs=xl;exports.Button=te;exports.CATEGORICAL_RAMP=qc;exports.CATEGORY_COLOR_TOKENS=Ix;exports.CATEGORY_NEUTRAL_COLOR=ac;exports.CHART_HEADER_HEIGHT=mu;exports.COLOR_RAMPS=Cs;exports.CUSTOM_ICON_REGISTRY=La;exports.Calendar=Xa;exports.Card=_e;exports.CardContent=hu;exports.CardFooter=xu;exports.CardHeader=el;exports.CardMedia=bu;exports.CardMobileRenderer=Sc;exports.CarouselAutoplayTrigger=gb;exports.CarouselControl=ub;exports.CarouselIndicator=Xu;exports.CarouselIndicatorGroup=fb;exports.CarouselItem=db;exports.CarouselItemGroup=cb;exports.CarouselNextTrigger=mb;exports.CarouselPrevTrigger=pb;exports.CarouselProgressText=bb;exports.CarouselRoot=lb;exports.CategoryBarChart=_b;exports.CategoryCell=Bx;exports.ChartAxis=Xr;exports.ChartBottomBar=ei;exports.ChartContainer=yh;exports.ChartContext=Jr;exports.ChartEventMarkers=Bl;exports.ChartEventSpans=Vl;exports.ChartExpandOwnedByAncestor=hp;exports.ChartHeader=Ha;exports.ChartLabelledBy=rn;exports.ChartOwnsItsTitle=pg;exports.ChartTooltip=Co;exports.Checkbox=eo;exports.CheckboxGroup=ju;exports.Chip=Yr;exports.ChipInputField=wb;exports.ClearButton=Vi;exports.CodeEditor=kb;exports.Collapse=ja;exports.CollapseContent=fn;exports.CollapseHeader=mn;exports.CollapseItem=pn;exports.ColorField=Tk;exports.ColorModeProvider=Pf;exports.CommandPalette=Ry;exports.Confirm=Db;exports.ConnectionStatusBadge=Ab;exports.ContactCard=Ib;exports.ContactMetaCell=Ox;exports.ContactMetaDisplay=Nl;exports.ContainerQueryProvider=Vb;exports.CopyToClipboard=ln;exports.CustomCell=zx;exports.DEFAULT_CHART_HEIGHT=xh;exports.DEFAULT_MAP_TYPE=rd;exports.DIVERGING_RAMPS=jc;exports.DataControls=hx;exports.DataTable=by;exports.DateCell=Hx;exports.DateField=wx;exports.DateRangePicker=$l;exports.DeltaCell=Gx;exports.Description=Te;exports.DeviceHealthBadge=xy;exports.DeviceMetaCell=Ux;exports.DeviceMetaDisplay=lc;exports.DeviceStateBadge=aa;exports.DeviceStateCell=Jx;exports.DeviceStateWithMetric=uc;exports.DeviceTypeIcon=vy;exports.Dialog=cr;exports.DialogForm=XI;exports.DialogHeader=_t;exports.Drawer=us;exports.DrawerForm=jI;exports.ENTITY_CATEGORY_CONFIG=AI;exports.ENTITY_CONFIG=Ra;exports.EmptyState=Kl;exports.EnrollmentStatusBadge=Sy;exports.ErrorBoundary=$r;exports.FieldError=he;exports.FieldGroup=Ug;exports.FileUpload=Ny;exports.FilterChips=xx;exports.FilterDialog=Px;exports.FirmwareVersionBadge=ky;exports.Form=li;exports.FormActions=QI;exports.FormDivider=a5;exports.FormGrid=t5;exports.FormSection=n5;exports.FormStepper=i5;exports.FormatRegistry=ce;exports.FormattedCell=jx;exports.FunnelSeries=wh;exports.GRID_ELEMENT_TYPE_BY_ENTITY=OI;exports.GRID_STATE_COLORS=DI;exports.GRID_STAT_LIST=lt;exports.GRID_STAT_LIST_CAPACITOR_PER_PHASE_KVAR=VI;exports.GRID_STAT_LIST_CAPACITOR_TOTAL_KVAR=BI;exports.GlobalSearch=Ly;exports.Grid=im;exports.GridStateBadge=dc;exports.HEADLINE_METRIC_BOUNDS=WI;exports.Heading=lr;exports.HierarchyExplorer=av;exports.HorizontalBarCell=jp;exports.HoverCard=cL;exports.Icon=V;exports.IndexCell=Zx;exports.InfiniteScrollIndicator=Ur;exports.Input=pl;exports.InputWrapper=St;exports.InteractiveMap=Ts;exports.Kpi=uv;exports.KpiGroup=fm;exports.Label=Ye;exports.LineSeries=Qn;exports.List=hv;exports.ListBox=EL;exports.ListBoxItem=pr;exports.ListItem=yv;exports.ListPane=vv;exports.Loader=Wr;exports.Logo=Ka;exports.MAP_TYPES=nC;exports.MapStyleProvider=oC;exports.Meter=cC;exports.MiniBarCell=qp;exports.ModalBackdrop=kr;exports.MultiSelect=uC;exports.Notice=pd;exports.NoticeContainer=md;exports.NoticeProvider=mC;exports.NumberCell=ey;exports.NumberField=as;exports.PageBanner=eb;exports.PageLayout=Ca;exports.PercentBarCell=_p;exports.PieChart=Ph;exports.PlaceSearch=CC;exports.Popover=vt;exports.ProgressBar=wC;exports.Prose=NC;exports.Radio=EC;exports.RadioCard=TC;exports.RadioCardGroup=kC;exports.RadioGroup=RC;exports.RangeCalendar=ni;exports.RangeCell=oy;exports.ResultsCount=ts;exports.RichTextEditor=DC;exports.SEQUENTIAL_RAMPS=Xc;exports.SKELETON_SIZES=wn;exports.SOURCE_UNIT_TO_WH=qd;exports.SaveBar=l5;exports.SearchControl=ta;exports.SearchEmptyState=Dy;exports.SearchLoadingState=Iy;exports.SearchResultGroup=By;exports.SearchResultItem=Vy;exports.SearchResultsList=Oy;exports.SearchTrigger=Hy;exports.Section=xi;exports.SectionNav=gd;exports.SegmentedControl=Xl;exports.Select=zo;exports.SelectCell=bc;exports.SideNav=cl;exports.SiteCard=AC;exports.SiteContactCard=FC;exports.SiteMetaCell=ay;exports.SiteMetaDisplay=hc;exports.Skeleton=Y;exports.Slider=BC;exports.SortControl=rs;exports.SparklineCell=$p;exports.SplitPane=Sd;exports.StackNav=Ya;exports.StatList=Lc;exports.StaticMap=hi;exports.Switch=ec;exports.Tab=vd;exports.TabList=yd;exports.TabPanel=xC;exports.Tabs=xd;exports.TextArea=WC;exports.TextAreaWithChips=JC;exports.TextCell=cy;exports.TextField=qr;exports.TextLink=ut;exports.TiledTimeSeriesChart=Wl;exports.TiledTimeSeriesExplorer=px;exports.TimeControls=jl;exports.TimeField=jC;exports.Timeline=qC;exports.TimelineItem=QC;exports.ToggleButton=$C;exports.Tooltip=dr;exports.TopNav=Bi;exports.Tray=Ct;exports.UNARY_FILTER_OPERATORS=yx;exports.UNARY_OPERATOR_LABELS=Cx;exports.UNVERIFIED_VOLTAGE_UNIT_ROWS=FI;exports.UnsavedChangesPrompt=c5;exports.activeDeviceStates=A2;exports.addFilterCondition=Sn;exports.applyDataOperations=Zm;exports.archetypeFor=UI;exports.assembleSeries=Kh;exports.autoScaleCurrent=HS;exports.autoScaleDistance=Bf;exports.autoScaleEnergy=Hf;exports.autoScalePower=jS;exports.autoScaleResistance=qS;exports.autoScaleVoltage=rw;exports.baselineFromPoint=iP;exports.camelCaseToWords=rg;exports.capitalize=eg;exports.celsiusToFahrenheit=QS;exports.celsiusToKelvin=SF;exports.centimetersToInches=oF;exports.classicPresetRanges=tx;exports.clearColorCache=Us;exports.createCategoryColorMap=SS;exports.createEmptyFilter=os;exports.createFilter=KR;exports.createFilters=YR;exports.createFormat=qF;exports.createTextureIcon=mt;exports.createTiledCameraSyncGroup=Rh;exports.createXScale=sp;exports.createYScale=Ui;exports.csvUnitFor=su;exports.csvValueFor=ag;exports.defaultMargin=Ge;exports.defaultMultiSelectMatcher=Om;exports.deltaDirectionFromValue=Kp;exports.deviceStateLabels=I2;exports.deviceStateMetricFormats=CX;exports.emptyStore=Yh;exports.entityHasDetailPage=KI;exports.entityHasStatList=JI;exports.entityShowsNow=YI;exports.enumToSentenceCase=ew;exports.exportChart=fp;exports.exportTableAsCSV=ef;exports.fahrenheitToCelsius=ZS;exports.fahrenheitToKelvin=wF;exports.feetToMeters=j4;exports.feetToMiles=Z4;exports.filterMultiSelectOptions=ad;exports.filterToChips=JR;exports.formatBoolean=Rf;exports.formatCapacity=k4;exports.formatComponentValue=fo;exports.formatCurrency=Af;exports.formatCurrent=Hd;exports.formatDate=If;exports.formatDistance=Vf;exports.formatEmptyValue=oc;exports.formatEnergy=Qd;exports.formatFieldValue=Pr;exports.formatInternationalPhone=Zd;exports.formatNumber=Df;exports.formatPercent=Mf;exports.formatPhone=Gf;exports.formatPhoneNumber=Ia;exports.formatPower=tu;exports.formatPowerRating=P4;exports.formatResistance=ou;exports.formatTemperature=qf;exports.formatText=ng;exports.formatUSPhone=js;exports.formatVoltage=iu;exports.getBadgeClasses=Rx;exports.getBooleanBadgeVariant=Ex;exports.getCellAlignmentClasses=Wp;exports.getCellContainerClasses=we;exports.getCellTextClasses=yr;exports.getColorRamp=Em;exports.getColorRampsByKind=Mm;exports.getContrastingTextColor=wS;exports.getDateParts=W4;exports.getDefaultChartColor=Ni;exports.getDefaultColors=Ks;exports.getDeviceStateDisplayLabel=Jp;exports.getDeviceStateLabel=Jp;exports.getEntityCategory=GI;exports.getEntityConfig=wd;exports.getEntityIcon=zI;exports.getEntityLabel=HI;exports.getEntityStatList=e0;exports.getEventColor=Wo;exports.getExportFormatName=MP;exports.getExportHeaders=T5;exports.getFieldGroupStyles=PN;exports.getFilterFields=oa;exports.getGridStateLabel=Yx;exports.getInputBackgroundStyles=Wg;exports.getInputBaseStyles=zt;exports.getInputStateStyles=sn;exports.getLinkClasses=Up;exports.getNumericColorClasses=nc;exports.getResolvedColor=Vt;exports.getSkeletonSize=Tt;exports.getStateTone=Ble;exports.getThemeCategoricalColors=Oo;exports.getYFormatSettings=Dr;exports.gridStateLabels=B2;exports.inchesToCentimeters=rF;exports.isActiveDeviceState=Yp;exports.isActiveState=Yp;exports.isCustomPinsLayer=km;exports.isExportSupported=EP;exports.isFilterEmpty=_l;exports.isGeoJsonLayer=Tm;exports.isLightColor=yf;exports.isNil=be;exports.isRasterLayer=Pm;exports.isUnaryFilterOperator=vx;exports.isVectorLayer=Nm;exports.kelvinToCelsius=_S;exports.kelvinToFahrenheit=NF;exports.kilometersToMiles=Q4;exports.layer=wm;exports.mapValuesToCategoricalColors=Ti;exports.metersToFeet=X4;exports.metersToMiles=_4;exports.metersToYards=tF;exports.milesToFeet=Ff;exports.milesToKilometers=q4;exports.milesToMeters=$4;exports.multiSelectSearchKeys=zm;exports.multiSelectSelectionEntries=sd;exports.parseBoolean=$o;exports.percentThresholdLevel=Zp;exports.pickEnergyUnit=jd;exports.prepareTableDataForExport=N5;exports.registerPhosphorIcon=sC;exports.removeFilterCondition=ra;exports.resolveValue=me;exports.shouldOfferLiteralOption=id;exports.snakeCaseToWords=og;exports.telemetryPresetRanges=Yl;exports.temperatureStringToSymbol=Kf;exports.tierForViewport=Ul;exports.tileIndexAt=K1;exports.tileKey=hr;exports.tileReducer=Jh;exports.tilesForViewport=xn;exports.toA=V4;exports.toActiveInactive=LS;exports.toAmps=Js;exports.toBoolean=_o;exports.toCelsius=Jf;exports.toCentimeters=YS;exports.toCheckmark=AS;exports.toCompactNumber=VS;exports.toCurrency=Lf;exports.toCustomDateFormat=KS;exports.toDateString=GS;exports.toEnabledDisabled=ES;exports.toFahrenheit=Yf;exports.toFeet=Ud;exports.toFloat=FS;exports.toFormattedNumber=BS;exports.toFullDateTime=WS;exports.toGW=gF;exports.toGWh=zf;exports.toGigawatts=eu;exports.toISOString=US;exports.toInches=XS;exports.toInteger=IS;exports.toKA=O4;exports.toKV=DF;exports.toKW=mF;exports.toKelvin=Xf;exports.toKiloamps=zd;exports.toKilohms=Wf;exports.toKilometers=Wd;exports.toKilovolts=au;exports.toKilowatts=_d;exports.toLowerCase=Zf;exports.toMA=B4;exports.toMV=MF;exports.toMW=fF;exports.toMWh=Of;exports.toMegawatts=$d;exports.toMegohms=Uf;exports.toMeters=Gd;exports.toMiles=Kd;exports.toMilliamps=Od;exports.toMillimeters=JS;exports.toMilliohms=ru;exports.toMillivolts=nu;exports.toNauticalMiles=J4;exports.toOhms=Qs;exports.toOnOff=MS;exports.toPercentage=Ef;exports.toRelativeTime=Xs;exports.toScientificNotation=OS;exports.toSecret=tw;exports.toSentenceCase=_f;exports.toTemperature=jf;exports.toTitleCase=$f;exports.toTrueFalse=DS;exports.toUpperCase=Qf;exports.toV=LF;exports.toVolts=$s;exports.toW=pF;exports.toWatts=qs;exports.toWh=Jd;exports.toYards=Yd;exports.tokWh=Xd;exports.truncateEnd=_s;exports.truncateMiddle=Fa;exports.truncateStart=Zs;exports.typeRole=kt;exports.typographyRole=go;exports.ucFirst=tg;exports.useBreakpoint=ar;exports.useChartContext=Xn;exports.useChartExpand=qn;exports.useChartHeaderMetrics=za;exports.useChartOwnsItsTitle=mg;exports.useClientDataControls=Td;exports.useColorMode=jt;exports.useComponentFormatter=L4;exports.useContainerBreakpoint=Fb;exports.useDataControls=d0;exports.useDebounce=an;exports.useElementSize=Ja;exports.useInfiniteScroll=on;exports.useInputFocus=ur;exports.useLocalStorage=Wc;exports.useMapStyleOverride=fi;exports.useMediaQuery=nr;exports.useNotice=gC;exports.useServerDataControls=kd;exports.useTableExport=f0;exports.useTileWindow=$h;exports.useTiledTimeSeries=Mp;exports.useWizard=d5;exports.wrapWithLink=Po;exports.yardsToMeters=eF;//# sourceMappingURL=index.cjs.map
51
51
  //# sourceMappingURL=index.cjs.map