@texturehq/edges 5.15.0 → 5.16.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 +13 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +29 -3
- package/dist/index.d.ts +29 -3
- package/dist/index.js +13 -13
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
'use strict';var reactAriaComponents=require('react-aria-components'),Ze=require('react'),tailwindMerge=require('tailwind-merge'),jsxRuntime=require('react/jsx-runtime'),mf=require('@phosphor-icons/react'),luxon=require('luxon'),reactVirtual=require('@tanstack/react-virtual'),dN=require('@phosphor-icons/react/ssr'),reactAria=require('react-aria'),reactStately=require('react-stately'),lucideReact=require('lucide-react'),framerMotion=require('framer-motion'),ck=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'),MP=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'),RD=require('react-map-gl'),server=require('react-dom/server'),_A=require('@tiptap/extension-link'),react=require('@tiptap/react'),menus=require('@tiptap/react/menus'),rI=require('@tiptap/starter-kit'),y5=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 Ze__namespace=/*#__PURE__*/_interopNamespace(Ze);var mf__namespace=/*#__PURE__*/_interopNamespace(mf);var dN__namespace=/*#__PURE__*/_interopNamespace(dN);var ck__default=/*#__PURE__*/_interopDefault(ck);var MP__default=/*#__PURE__*/_interopDefault(MP);var RD__default=/*#__PURE__*/_interopDefault(RD);var _A__default=/*#__PURE__*/_interopDefault(_A);var rI__default=/*#__PURE__*/_interopDefault(rI);var y5__default=/*#__PURE__*/_interopDefault(y5);var L0=Object.create;var Ad=Object.defineProperty;var D0=Object.getOwnPropertyDescriptor;var A0=Object.getOwnPropertyNames;var I0=Object.getPrototypeOf,F0=Object.prototype.hasOwnProperty;var B0=(e,t,r)=>t in e?Ad(e,t,{enumerable:true,configurable:true,writable:true,value:r}):e[t]=r;var V0=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var O0=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of A0(t))!F0.call(e,n)&&n!==r&&Ad(e,n,{get:()=>t[n],enumerable:!(o=D0(t,n))||o.enumerable});return e};var cf=(e,t,r)=>(r=e!=null?L0(I0(e)):{},O0(Ad(r,"default",{value:e,enumerable:true}),e));var Si=(e,t,r)=>B0(e,typeof t!="symbol"?t+"":t,r);var gp=V0((mp,fp)=>{(function(e,t){typeof define=="function"&&define.amd?define([],t):typeof mp<"u"?t():(t(),e.FileSaver={});})(mp,function(){function e(s,c){return typeof c>"u"?c={autoBom:false}:typeof c!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),c={autoBom:!c}),c.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(s.type)?new Blob(["\uFEFF",s],{type:s.type}):s}function t(s,c,l){var d=new XMLHttpRequest;d.open("GET",s),d.responseType="blob",d.onload=function(){i(d.response,c,l);},d.onerror=function(){console.error("could not download file");},d.send();}function r(s){var c=new XMLHttpRequest;c.open("HEAD",s,false);try{c.send();}catch{}return 200<=c.status&&299>=c.status}function o(s){try{s.dispatchEvent(new MouseEvent("click"));}catch{var c=document.createEvent("MouseEvents");c.initMouseEvent("click",true,true,window,0,0,0,80,20,false,false,false,false,0,null),s.dispatchEvent(c);}}var n=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:void 0,a=n.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),i=n.saveAs||(typeof window!="object"||window!==n?function(){}:"download"in HTMLAnchorElement.prototype&&!a?function(s,c,l){var d=n.URL||n.webkitURL,u=document.createElement("a");c=c||s.name||"download",u.download=c,u.rel="noopener",typeof s=="string"?(u.href=s,u.origin===location.origin?o(u):r(u.href)?t(s,c,l):o(u,u.target="_blank")):(u.href=d.createObjectURL(s),setTimeout(function(){d.revokeObjectURL(u.href);},4e4),setTimeout(function(){o(u);},0));}:"msSaveOrOpenBlob"in navigator?function(s,c,l){if(c=c||s.name||"download",typeof s!="string")navigator.msSaveOrOpenBlob(e(s,l),c);else if(r(s))t(s,c,l);else {var d=document.createElement("a");d.href=s,d.target="_blank",setTimeout(function(){o(d);});}}:function(s,c,l,d){if(d=d||open("","_blank"),d&&(d.document.title=d.document.body.innerText="downloading..."),typeof s=="string")return t(s,c,l);var u=s.type==="application/octet-stream",m=/constructor/i.test(n.HTMLElement)||n.safari,p=/CriOS\/[\d]+/.test(navigator.userAgent);if((p||u&&m||a)&&typeof FileReader<"u"){var 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 fp<"u"&&(fp.exports=i);});});function lr(e,t=false){let[r,o]=Ze.useState(t);return Ze.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 In={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"};function cr(e="base"){let t=lr(`(min-width: ${In.sm})`,e!=="base"),r=lr(`(min-width: ${In.md})`,["md","lg","xl","2xl"].includes(e)),o=lr(`(min-width: ${In.lg})`,["lg","xl","2xl"].includes(e)),n=lr(`(min-width: ${In.xl})`,["xl","2xl"].includes(e)),a=lr(`(min-width: ${In["2xl"]})`,e==="2xl"),i=!r,s=r,c="base";return a?c="2xl":n?c="xl":o?c="lg":r?c="md":t&&(c="sm"),{current:c,isSm:t,isMd:r,isLg:o,isXl:n,is2Xl:a,isMobile:i,isDesktop:s}}function ft(e,t){let r=Ze.forwardRef(({size:o=24,color:n="currentColor",className:a,mirrored:i,alt:s,...c},l)=>{let d=!!s||"aria-label"in c;return jsxRuntime.jsx("svg",{ref:l,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 256 256",fill:n,className:a,transform:i?"scale(-1, 1)":void 0,"aria-hidden":d?void 0:true,role:d?"img":void 0,"aria-label":s,...c,children:t})});return r.displayName=e,r}var Us=()=>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"})]}),df=()=>jsxRuntime.jsx("path",{d:"M166 120 88 70",fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round"}),uf=()=>jsxRuntime.jsx("path",{d:"M162 122 92 128",fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round"}),pf=()=>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"})]}),U0=ft("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"})]})),K0=ft("TextureFuse",jsxRuntime.jsx("path",{d:"M20 128h72q18 -84 36 0q18 84 36 0h72",fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round",strokeLinejoin:"round"})),Y0=ft("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"})]})),J0=ft("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"})]})),X0=ft("TextureCapacitor",jsxRuntime.jsx(jsxRuntime.Fragment,{children:jsxRuntime.jsx("path",{d:"M4 128h106M146 128h106M110 72v112M146 72v112",fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round"})})),j0=ft("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"})]})),q0=ft("TextureSwitch",jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Us,{}),jsxRuntime.jsx(df,{})]})),Q0=ft("TextureSwitchClosed",jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Us,{}),jsxRuntime.jsx(uf,{})]})),Z0=ft("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"})]})),_0=ft("TextureSectionalizerOpen",jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Us,{}),jsxRuntime.jsx(df,{}),jsxRuntime.jsx(pf,{})]})),$0=ft("TextureSectionalizerClosed",jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Us,{}),jsxRuntime.jsx(uf,{}),jsxRuntime.jsx(pf,{})]})),eS=ft("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]},Id=e=>jsxRuntime.jsx("path",{d:`M24 ${e}h208`,fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round"},e),Fd=e=>jsxRuntime.jsx("path",{d:`M24 ${e}h208`,fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round",pathLength:100,strokeDasharray:"20 20"},e),tS=ft("TextureSinglePhaseOverheadLine",jsxRuntime.jsx(jsxRuntime.Fragment,{children:Ma[1].map(Id)})),rS=ft("TextureTwoPhaseOverheadLine",jsxRuntime.jsx(jsxRuntime.Fragment,{children:Ma[2].map(Id)})),oS=ft("TextureThreePhaseOverheadLine",jsxRuntime.jsx(jsxRuntime.Fragment,{children:Ma[3].map(Id)})),nS=ft("TextureSinglePhaseUndergroundLine",jsxRuntime.jsx(jsxRuntime.Fragment,{children:Ma[1].map(Fd)})),aS=ft("TextureTwoPhaseUndergroundLine",jsxRuntime.jsx(jsxRuntime.Fragment,{children:Ma[2].map(Fd)})),iS=ft("TextureThreePhaseUndergroundLine",jsxRuntime.jsx(jsxRuntime.Fragment,{children:Ma[3].map(Fd)})),sS=ft("TextureSupportStructure",jsxRuntime.jsx("circle",{cx:"128",cy:"128",r:"40",fill:"currentColor",stroke:"none"})),La={TextureRecloser:U0,TextureFuse:K0,TextureBreaker:Y0,TextureSource:J0,TextureCapacitor:X0,TextureRegulator:j0,TextureSwitch:q0,TextureSwitchClosed:Q0,TextureOpenPoint:Z0,TextureSectionalizerOpen:_0,TextureSectionalizerClosed:$0,TextureTransformer:eS,TextureSinglePhaseOverheadLine:tS,TextureTwoPhaseOverheadLine:rS,TextureThreePhaseOverheadLine:oS,TextureSinglePhaseUndergroundLine:nS,TextureTwoPhaseUndergroundLine:aS,TextureThreePhaseUndergroundLine:iS,TextureSupportStructure:sS};if(process.env.NODE_ENV==="development")for(let e of Object.keys(La))e in mf__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=Ze.memo(({name:e,size:t="md",color:r,weight:o="regular",className:n,ariaLabel:a,...i})=>{let s=La[e]??mf__namespace[e];if(!s)return process.env.NODE_ENV==="development"&&console.error(`Icon "${e}" not found in @phosphor-icons/react or the custom icon registry`),null;let c=typeof t=="string"&&t in Da?Da[t]:t,l=tailwindMerge.twMerge("inline-block flex-shrink-0",!r&&"text-current",n);return jsxRuntime.jsx(s,{...i,size:c,color:r,weight:o,className:l,"aria-label":a||`${e} icon`,"data-testid":`icon-${e}`})});V.displayName="Icon";var lS=Ze.memo(({variant:e="subtle",shape:t="square",containerSize:r,containerClassName:o,size:n="md",className:a,name:i,color:s,weight:c,ariaLabel:l,ref:d,...u})=>{let m=typeof n=="string"&&n in 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:c,className:a,ariaLabel:l})})});lS.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 yS({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 St({children:e,showArrow:t=false,withBackdrop:r=false,className:o,isDismissable:n=true,disableGroup:a=false,...i}){let c=reactAriaComponents.useSlottedContext(reactAriaComponents.PopoverContext)?.trigger==="SubmenuTrigger",l=t?12:8;l=c?l-6:l;let d=jsxRuntime.jsxs(reactAriaComponents.Popover,{offset:l,...i,className:reactAriaComponents.composeRenderProps(o,(u,m)=>yS({...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 Ks(e=true){let[t,r]=Ze.useState(null);return Ze.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 NS={"--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 bf(e){let t={...e};for(let[r,o]of Object.entries(NS))if(e[r])for(let n of o)e[n]||(t[n]=e[r]);return t}function hf(e){return e.replace(/[{}<>]/g,"")}function xf(e){return Object.entries(e).map(([t,r])=>`${hf(t)}: ${hf(r)};`).join(" ")}function vf({variables:e,darkVariables:t,children:r}){let n=Ze.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?bf(e):null,c=i?bf(t):null,l=s?`[data-brand-scope="${n}"] { ${xf(s)} }`:"",d=c?`.theme-dark [data-brand-scope="${n}"] { ${xf(c)} }`:"",u=[l,d].filter(Boolean).join(`
|
|
2
|
-
`);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("style",{dangerouslySetInnerHTML:{__html:u}}),jsxRuntime.jsx("div",{"data-brand-scope":n,children:r})]})}var Aa=new Map,kS=8;function PS(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 Ot=(e,t="#000000")=>typeof window>"u"?t:Cf(e,t,0);function Cf(e,t,r){if(r>kS)return t;let o=e.startsWith("var(")?PS(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 l=Cf(i,t,r+1);return Aa.set(o,l),l}return Aa.set(o,i),i}let s=document.createElement("div");s.style.color=`var(${o})`,document.body.appendChild(s);let c=getComputedStyle(s).color;return document.body.removeChild(s),c&&c!=="rgb(0, 0, 0)"?(Aa.set(o,c),c):t}catch(n){return console.warn(`Failed to resolve color for ${e}:`,n),t}}var Ys=()=>{Aa.clear();},Oo=()=>{let e=[];for(let t=1;t<=12;t++){let r=Ot(`--color-viz-categorical-${t}`,"");r&&e.push(r);}return e.length===0?Js():e},Js=()=>["#5424db","#d92361","#e86a00","#5d89ff","#9a47e2","#f24cb8","#0ba286","#9c28af","#036e45","#52a119","#ff513d","#046691"],Ni=()=>Ot("--color-viz-default","#444ae1"),RS=(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},Sf=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},ES=e=>Sf(e)?Ot("--color-text-primary","#333333"):Ot("--color-text-inverse","#ffffff"),wf=(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 Od=(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)},zd=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]},Nf=(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=Ot(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=Ot(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 c=(e-t)/(o-t)*i,l=Math.floor(c);return a[Math.min(l,i)]}else {let s=(e-o)/(r-o),c=i+s*(a.length-1-i),l=Math.floor(c);return a[Math.min(l,a.length-1)]}};var Hd=Ze.createContext({mode:"system",colorMode:"light",isDarkTheme:false,toggleTheme:()=>{}}),Qt=()=>Ze.useContext(Hd);function IS(){return typeof window>"u"?"light":window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Pf(){if(typeof window>"u")return "system";let e=localStorage.getItem("colorModePreference");return e==="light"||e==="dark"||e==="system"?e:"system"}function Rf(e){return e==="system"?IS():e}var Mf=({children:e})=>{let[t,r]=Ze.useState(Pf),[o,n]=Ze.useState(()=>Rf(Pf())),a=o==="dark",i=Ze.useCallback(c=>{c==="dark"?(document.documentElement.classList.add("theme-dark"),document.body.classList.add("theme-dark")):(document.documentElement.classList.remove("theme-dark"),document.body.classList.remove("theme-dark")),Ys();},[]);Ze.useEffect(()=>{Ys();let c=Rf(t);if(n(c),i(c),t==="system"){let l=window.matchMedia("(prefers-color-scheme: dark)"),d=u=>{let m=u.matches?"dark":"light";n(m),i(m);};return l.addEventListener("change",d),()=>{l.removeEventListener("change",d);}}},[t,i]);let s=Ze.useCallback(()=>{r(c=>{let l=c==="system"?"light":c==="light"?"dark":"system";return localStorage.setItem("colorModePreference",l),l});},[]);return jsxRuntime.jsx(Hd.Provider,{value:{mode:t,colorMode:o,isDarkTheme:a,toggleTheme:s},children:e})};function dr(...e){return e.filter(Boolean).join(" ")}var Gd=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();}},se=new Gd;var en=(e,t="Yes",r="No")=>e==null?null:e?t:r,FS=e=>en(e,"Enabled","Disabled"),BS=e=>en(e,"On","Off"),VS=e=>en(e,"Active","Inactive"),OS=e=>en(e,"True","False"),zS=e=>en(e,"\u2713","\u2717"),tn=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},Lf=(e,t)=>{if(t.hideWhenNull&&e==null)return null;if(e==null)return t.nullText??null;let r=tn(e);return r===null?t.nullText??null:en(r,t.trueText??"Yes",t.falseText??"No")};se.register("boolean",(e,t,r)=>{let o=tn(e);return o!==null?en(o,typeof t=="string"?t:"Yes",typeof r=="string"?r:"No"):null});se.register("yesNo",e=>{let t=tn(e);return t!==null?en(t,"Yes","No"):null});se.register("enabledDisabled",e=>{let t=tn(e);return t!==null?FS(t):null});se.register("onOff",e=>{let t=tn(e);return t!==null?BS(t):null});se.register("activeInactive",e=>{let t=tn(e);return t!==null?VS(t):null});se.register("trueFalse",e=>{let t=tn(e);return t!==null?OS(t):null});se.register("checkmark",e=>{let t=tn(e);return t!==null?zS(t):null});var xe=e=>e==null,Df=(e,t=0)=>xe(e)?null:`${e.toFixed(t)}%`,Af=(e,t=0)=>Df(e,t)??"\u2014",HS=e=>xe(e)?null:Math.round(e).toString(),GS=(e,t=1)=>xe(e)?null:e.toFixed(t),WS=(e,t,r=true)=>{if(xe(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)},US=(e,t="short")=>xe(e)?null:new Intl.NumberFormat("en-US",{notation:"compact",compactDisplay:t}).format(e),KS=(e,t=2)=>xe(e)?null:e.toExponential(t),If=(e,t="USD",r)=>{if(xe(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)},Ff=(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)},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);return isNaN(r)?t.nullText??null:If(r,t.currency,t)};se.register("percentage",(e,t)=>typeof e=="number"?Df(e,typeof t=="number"?t:0):null);se.register("integer",e=>typeof e=="number"?HS(e):null);se.register("float",(e,t)=>typeof e=="number"?GS(e,typeof t=="number"?t:1):null);se.register("number",(e,t,r)=>{let o=typeof e=="string"?parseFloat(e):Number(e);return isNaN(o)?null:WS(o,typeof t=="number"?t:void 0,typeof r=="boolean"?r:true)});se.register("compact",(e,t)=>typeof e=="number"?US(e,t==="long"?"long":"short"):null);se.register("scientific",(e,t)=>typeof e=="number"?KS(e,typeof t=="number"?t:2):null);se.register("currency",(e,t,r)=>typeof e=="number"?If(e,typeof t=="string"?t:"USD",typeof r=="object"&&r!==null?r:{}):null);function I4(e,t=1){return xe(e)?null:Math.abs(e)>=1e3?`${(e/1e3).toFixed(t)} MWh`:`${e.toFixed(t)} kWh`}function F4(e,t=1){return xe(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 z4(e,t,r){return Ze__namespace.default.useCallback(o=>fo({value:o,formatter:e,emptyClassName:t,emptyText:r}),[e,t,r])}var Wd=(e,t=0)=>{if(xe(e))return null;let r=e*1e3;return t===0?`${Math.round(r)} mA`:`${r.toFixed(t)} mA`},js=(e,t=1)=>xe(e)?null:`${e.toFixed(t)} A`,Ud=(e,t=2)=>xe(e)?null:`${(e/1e3).toFixed(t)} kA`,JS=(e,t)=>{if(xe(e))return null;let r=Math.abs(e);return r>=1e3?Ud(e,t??2):r<1?Wd(e,t??0):js(e,t??1)},Kd=(e,t)=>{if(t.hideWhenNull&&e==null||t.hideWhenZero&&e===0)return null;if(e==null)return t.nullText??null;let r=typeof e=="string"?parseFloat(e):Number(e);if(isNaN(r))return t.nullText??null;let o=t.decimals;if(t.unit)switch(t.unit){case "kA":return Ud(r,o??2);case "mA":return Wd(r,o??0);case "A":return js(r,o??1)}return t.autoScale!==false?JS(r,o):js(r,o??1)};se.register("current",Kd);var K4=Wd,Y4=js,J4=Ud;var Fn=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},XS=(e,t=false,r)=>{if(!e)return null;let o=Fn(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)},qs=e=>{if(!e)return null;let t=Fn(e);return t?t.toRelative():"Invalid Date"},jS=(e,t)=>{if(!e)return null;let r=Fn(e);return r?(t?r.setZone(t):r).toLocaleString(luxon.DateTime.DATETIME_MED_WITH_WEEKDAY):"Invalid Date"},qS=e=>{if(!e)return null;let t=Fn(e);return t?t.toISO():null},QS=(e,t,r)=>{if(!e)return null;let o=Fn(e);return o?(r?o.setZone(r):o).toFormat(t):"Invalid Date"},Q4=e=>{let t=Fn(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},Vf=(e,t)=>{if(t.hideWhenNull&&e==null)return null;if(e==null)return t.nullText??null;let r=Fn(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)};se.register("date",(e,t,r)=>XS(e,typeof t=="boolean"?t:false,typeof r=="string"?r:void 0));se.register("relativeTime",e=>qs(e));se.register("fullDateTime",(e,t)=>jS(e,typeof t=="string"?t:void 0));se.register("isoString",e=>qS(e));se.register("customDateFormat",(e,t,r)=>typeof t=="string"?QS(e,t,typeof r=="string"?r:void 0):null);var Yd=(e,t=1)=>xe(e)?null:`${e.toFixed(t)} m`,ZS=(e,t=1)=>xe(e)?null:`${(e*100).toFixed(t)} cm`,_S=(e,t=0)=>xe(e)?null:`${(e*1e3).toFixed(t)} mm`,Jd=(e,t=1)=>xe(e)?null:`${(e/1e3).toFixed(t)} km`,Xd=(e,t=0)=>xe(e)?null:`${e.toFixed(t)} ft`,$S=(e,t=1)=>xe(e)?null:`${e.toFixed(t)} in`,jd=(e,t=1)=>xe(e)?null:`${e.toFixed(t)} mi`,qd=(e,t=0)=>xe(e)?null:`${e.toFixed(t)} yd`,eF=(e,t=1)=>xe(e)?null:`${e.toFixed(t)} nm`,tF=e=>e*3.28084,rF=e=>e/3.28084,oF=e=>e*1.60934,nF=e=>e/1.60934,aF=e=>e/5280,Of=e=>e*5280,iF=e=>e/1609.34,sF=e=>e*1609.34,lF=e=>e*.9144,cF=e=>e/.9144,dF=e=>e*2.54,uF=e=>e/2.54,zf=(e,t=false,r=1)=>{if(xe(e))return null;let o=Math.abs(e);return t?o>=1e3?Jd(e,r):o<.01?_S(e,0):o<1?ZS(e,r):Yd(e,r):o<.01?Xd(Of(e),0):o<.1?qd(Of(e)/3,0):jd(e,r)},Hf=(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 zf(r,n,o)}switch(t.unit){case "km":return Jd(r,o);case "ft":return Xd(r,o);case "mi":return jd(r,o);case "yd":return qd(r,o);default:return Yd(r,o)}};se.register("miles",(e,t)=>typeof e=="number"?jd(e,typeof t=="number"?t:1):null);se.register("kilometers",(e,t)=>typeof e=="number"?Jd(e,typeof t=="number"?t:1):null);se.register("meters",(e,t)=>typeof e=="number"?Yd(e,typeof t=="number"?t:1):null);se.register("feet",(e,t)=>typeof e=="number"?Xd(e,typeof t=="number"?t:0):null);se.register("yards",(e,t)=>typeof e=="number"?qd(e,typeof t=="number"?t:0):null);se.register("inches",(e,t)=>typeof e=="number"?$S(e,typeof t=="number"?t:1):null);se.register("autoScaleDistance",(e,t,r)=>typeof e=="number"?zf(e,typeof t=="boolean"?t:false,typeof r=="number"?r:1):null);var Qd=(e,t=1)=>xe(e)?null:`${e.toFixed(t)} Wh`,Zd=(e,t=1)=>xe(e)?null:`${(e/1e3).toFixed(t)} kWh`,Gf=(e,t=1)=>xe(e)?null:`${(e/1e6).toFixed(t)} MWh`,Wf=(e,t=1)=>xe(e)?null:`${(e/1e9).toFixed(t)} GWh`,_d=e=>{let t=Math.abs(e);return t>=1e9?"GWh":t>=1e6?"MWh":t>=1e3?"kWh":"Wh"},Uf=(e,t=1)=>{if(xe(e))return null;switch(_d(e)){case "GWh":return Wf(e,t);case "MWh":return Gf(e,t);case "kWh":return Zd(e,t);default:return Qd(e,t)}},$d={Wh:1,kWh:1e3,MWh:1e6,GWh:1e9},eu=(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*$d[t.sourceUnit]:r,n=t.decimals??1;if(t.unit)switch(t.unit){case "GWh":return Wf(o,n);case "MWh":return Gf(o,n);case "kWh":return Zd(o,n);case "Wh":return Qd(o,n)}return t.autoScale!==false?Uf(o,n):Qd(o,n)};se.register("kWh",e=>typeof e=="number"?Zd(e):null);se.register("autoScaleEnergy",(e,t)=>typeof e=="number"?Uf(e,typeof t=="number"?t:1):null);se.register("energy",eu);var Qs=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},tu=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():Qs(e)},Ia=e=>e?e.startsWith("+")||e.length>11?tu(e):Qs(e):null,Kf=(e,t)=>{if(t.hideWhenNull&&e==null)return null;if(e==null)return t.nullText??null;let r=String(e);if(t.international)return tu(r);switch(t.country){case "US":case "CA":return Qs(r);default:return Ia(r)}};se.register("phoneNumber",e=>typeof e=="string"?Ia(e):null);se.register("usPhone",e=>typeof e=="string"?Qs(e):null);se.register("internationalPhone",e=>typeof e=="string"?tu(e):null);var Zs=(e,t=0)=>xe(e)?null:t===0?`${Math.round(e)} W`:`${e.toFixed(t)} W`,ru=(e,t=1)=>xe(e)?null:`${(e/1e3).toFixed(t)} kW`,ou=(e,t=1)=>xe(e)?null:`${(e/1e6).toFixed(t)} MW`,nu=(e,t=2)=>xe(e)?null:`${(e/1e9).toFixed(t)} GW`,ew=(e,t)=>{if(xe(e))return null;let r=Math.abs(e);return r>=1e9?nu(e,t??2):r>=1e6?ou(e,t??1):r>=1e3?ru(e,t??1):Zs(e,t??0)},au=(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 nu(r,o??2);case "MW":return ou(r,o??1);case "kW":return ru(r,o??1);case "W":return Zs(r,o??0)}return t.autoScale!==false?ew(r,o):Zs(r,o??0)};se.register("power",au);var vF=Zs,CF=ru,SF=ou,wF=nu;var iu=(e,t=1)=>xe(e)?null:`${(e*1e3).toFixed(t)} m\u03A9`,_s=(e,t=1)=>xe(e)?null:`${e.toFixed(t)} \u03A9`,Yf=(e,t=1)=>xe(e)?null:`${(e/1e3).toFixed(t)} k\u03A9`,Jf=(e,t=2)=>xe(e)?null:`${(e/1e6).toFixed(t)} M\u03A9`,tw=(e,t)=>{if(xe(e))return null;let r=Math.abs(e);return r>=1e6?Jf(e,t??2):r>=1e3?Yf(e,t??1):r<1?iu(e,t??1):_s(e,t??1)},su=(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 Jf(r,o??2);case "k\u03A9":return Yf(r,o??1);case "m\u03A9":return iu(r,o??1);case "\u03A9":return _s(r,o??1)}return t.autoScale!==false?tw(r,o):_s(r,o??1)};se.register("resistance",su);se.register("ohms",e=>typeof e=="number"?_s(e):null);se.register("milliohms",e=>typeof e=="number"?iu(e):null);var Xf=e=>{switch(e){case "FAHRENHEIT":return "F";case "CELSIUS":return "C";case "KELVIN":return "K";default:return "F"}},jf=(e,t=0)=>xe(e)?null:`${e.toFixed(t)}\xB0F`,qf=(e,t=true,r=0)=>xe(e)?null:`${(t?(e-32)*(5/9):e).toFixed(r)}\xB0C`,Qf=(e,t=true,r=0)=>xe(e)?null:`${(t?(e-32)*(5/9)+273.15:e+273.15).toFixed(r)}K`,rw=e=>e*9/5+32,ow=e=>(e-32)*(5/9),MF=e=>e+273.15,nw=e=>e-273.15,LF=e=>ow(e)+273.15,DF=e=>rw(nw(e)),Zf=(e,t="F",r=0)=>{if(xe(e))return null;switch(typeof t=="string"&&t.length>1?Xf(t):t){case "C":return qf(e,true,r);case "K":return Qf(e,true,r);default:return jf(e,r)}},_f=(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?Xf(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 Zf(r,n,o)};se.register("temperature",(e,t,r)=>typeof e=="number"?Zf(e,typeof t=="string"?t:"F",typeof r=="number"?r:0):null);se.register("fahrenheit",(e,t)=>typeof e=="number"?jf(e,typeof t=="number"?t:0):null);se.register("celsius",(e,t,r)=>typeof e=="number"?qf(e,typeof t=="boolean"?t:true,typeof r=="number"?r:0):null);se.register("kelvin",(e,t,r)=>typeof e=="number"?Qf(e,typeof t=="boolean"?t:true,typeof r=="number"?r:0):null);var aw=(e,t)=>!!(t.hideWhenNull&&e==null||t.hideWhenZero&&e===0),$f=e=>e?.toUpperCase()??"",eg=e=>e?.toLowerCase()??"",tg=e=>e?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():"",rg=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(" ")},og=e=>e?e.split(/\s+/).map(t=>t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()).join(" "):"",ng=e=>e?e.charAt(0).toUpperCase()+e.slice(1):"",ag=e=>e?e.replace(/([A-Z])/g," $1").replace(/^./,t=>t.toUpperCase()).trim():"",ig=e=>e?e.toLowerCase().split("_").map(t=>ng(t)).join(" "):"",iw=e=>e?e.includes("_")?ig(e):e.toUpperCase()===e?ng(e.toLowerCase()):ag(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)}`},$s=(e,t=8)=>e?e.length<=t?e:`...${e.slice(-t)}`:"",el=(e,t=16,r="...")=>e?e.length<=t?e:e.slice(0,t)+r:"",sw=e=>{if(!e)return "";let t=e.toString(),r=t.slice(-4),o=t.length-4;return o>0?"*".repeat(o)+r:t},sg=(e,t)=>{if(aw(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=$f(r);break;case "lowercase":r=eg(r);break;case "capitalize":r=og(r);break;case "titleCase":r=rg(r);break;case "sentenceCase":r=tg(r);break}}),t.truncate){let{length:o,position:n,ellipsis:a="..."}=t.truncate;switch(n){case "start":r=$s(r,o);break;case "middle":r=Fa(r,o);break;case "end":r=el(r,o,a);break}}return r};se.register("uppercase",e=>$f(String(e)));se.register("lowercase",e=>eg(String(e)));se.register("sentenceCase",e=>tg(String(e)));se.register("titleCase",e=>rg(String(e)));se.register("capitalize",e=>og(String(e)));se.register("camelCaseToWords",e=>ag(String(e)));se.register("snakeCaseToWords",e=>ig(String(e)));se.register("enumToSentenceCase",e=>iw(String(e)));se.register("truncateMiddle",(e,t)=>Fa(String(e),typeof t=="number"?t:16));se.register("truncateStart",(e,t)=>$s(String(e),typeof t=="number"?t:8));se.register("truncateEnd",(e,t,r)=>el(String(e),typeof t=="number"?t:16,typeof r=="string"?r:"..."));se.register("secret",e=>sw(String(e)));var lu=(e,t=0)=>{if(xe(e))return null;let r=e*1e3;return t===0?`${Math.round(r)} mV`:`${r.toFixed(t)} mV`},tl=(e,t=0)=>xe(e)?null:t===0?`${Math.round(e)} V`:`${e.toFixed(t)} V`,cu=(e,t=1)=>xe(e)?null:`${(e/1e3).toFixed(t)} kV`,lw=(e,t)=>{if(xe(e))return null;let r=Math.abs(e);return r>=1e3?cu(e,t??1):r<1?lu(e,t??0):tl(e,t??0)},du=(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 cu(r,o??1);case "mV":return lu(r,o??0);case "V":return tl(r,o??0)}return t.autoScale!==false?lw(r,o):tl(r,o??0)};se.register("voltage",du);var OF=lu,zF=tl,HF=cu;var cw=(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:Af(r,t.decimals??0)},Pr=(e,t)=>{switch(t.type){case "text":return sg(e,t);case "number":return Ff(e,t);case "percentage":return cw(e,t);case "currency":return Bf(e,t);case "date":return Vf(e,t);case "boolean":return Lf(e,t);case "energy":return eu(e,t);case "power":return au(e,t);case "voltage":return du(e,t);case "current":return Kd(e,t);case "resistance":return su(e,t);case "temperature":return _f(e,t);case "distance":return Hf(e,t);case "phone":return Kf(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"},dw=new Set(["number","power","energy","voltage","current","resistance","temperature","distance","percentage"]);function uu(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 lg(e,t){if(!dw.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=uu(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 o3=(e,t)=>({type:e,...t});function Vn(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function Bn(e,t){return Vn(e)?t.format(e):""}function cg(e){if(!Vn(e.start)||!Vn(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=>Bn(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=>Bn(i,a)}var uw=864e5;function dg(e,t){let r=t?.compact??false,o=e<5*uw,n=a=>{let i=a.getHours(),s=i>=12?"PM":"AM";return {displayHour:i%12||12,period:s}};return a=>{if(!Vn(a))return "";let i=a.getHours()===0&&a.getMinutes()===0&&a.getSeconds()===0&&a.getMilliseconds()===0;if(i&&a.getDate()===1)return a.getMonth()===0?String(a.getFullYear()):a.toLocaleDateString("en",{month:"short"});if(i){let d=a.getDate();if(o){let u=a.toLocaleDateString("en",{weekday:"short"});return r?`${u.charAt(0)}${d}`:`${u} ${d}`}return r?`${a.getMonth()+1}/${d}`:`${a.toLocaleDateString("en",{month:"short"})} ${d}`}let{displayHour:s,period:c}=n(a);if(a.getMinutes()===0&&a.getSeconds()===0)return r?`${s}${c.charAt(0).toLowerCase()}`:`${s} ${c}`;let l=String(a.getMinutes()).padStart(2,"0");return r?`${s}:${l}${c.charAt(0).toLowerCase()}`:`${s}:${l} ${c}`}}function pu(e,t){if(!Vn(e.start)||!Vn(e.end))return ()=>"";let r=(e.end.getTime()-e.start.getTime())/(1e3*60*60),o=t?.compact??false,n=l=>d=>Vn(d)?l(d):"";if(r<=24){if(o)return n(d=>{let u=d.getHours(),m=u>=12?"pm":"am";return `${u%12||12}${m}`});let l=new Intl.DateTimeFormat("en",{hour:"numeric",minute:"2-digit"});return d=>Bn(d,l)}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 l=new Intl.DateTimeFormat("en",{month:"short",day:"numeric",hour:"numeric"});return d=>Bn(d,l)}if(r<=168){if(o)return n(d=>{let u=d.getDate();return `${d.toLocaleDateString("en",{weekday:"short"}).charAt(0)}${u}`});let l=new Intl.DateTimeFormat("en",{weekday:"short",day:"numeric"});return d=>Bn(d,l)}if(r<=720){if(o)return n(d=>{let u=d.getMonth()+1,m=d.getDate();return `${u}/${m}`});let l=new Intl.DateTimeFormat("en",{month:"short",day:"numeric"});return d=>Bn(d,l)}let a=e.start.getFullYear(),i=e.end.getFullYear(),s=a!==i;if(o)return n(l=>{let d=l.getMonth()+1,u=l.getDate(),m=s?`/${l.getFullYear().toString().slice(-2)}`:"";return `${d}/${u}${m}`});let c=new Intl.DateTimeFormat("en",{month:"short",day:"numeric",...s&&{year:"numeric"}});return l=>Bn(l,c)}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 Rt(e,...t){return dr(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 Ke={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 bw="flex font-medium justify-center items-center gap-2 text-center transition rounded-[var(--control-border-radius)] whitespace-nowrap box-border",hw="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",xw={primary:hw,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"},pg={full:"w-full",default:"w-fit"},yw="opacity-50 cursor-not-allowed pointer-events-none",vw="opacity-100 cursor-pointer",Cw={"top-right":"-right-2 -top-2","top-left":"-left-2 -top-2","bottom-right":"-right-2 -bottom-2","bottom-left":"-left-2 -bottom-2"},Sw={primary:"bg-action-primary text-[color:var(--color-action-primary-text)]",destructive:"bg-feedback-error-border text-text-inverse"};function ww(e){return !e||e==="default"||e==="brand"?"primary":e}function Nw(e){let{variant:t="primary",size:r="md",isDisabled:o,fullWidth:n=false,isLoading:a=false}=e,i=ww(t),s=i==="unstyled"?"":`${bw} ${xw[i]}`;i!=="unstyled"&&(s+=` ${Ke[r].text} ${Ke[r].height} ${Ke[r].padding} ${Ke[r].gap}`),o||a?s+=` ${yw}`:s+=` ${vw}`,n?s+=` ${pg.full}`:s+=` ${pg.default}`;let c=i==="primary"?"focus-visible:outline-action-primary":void 0;return [s,rt(),c].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:c,href:l,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:c}):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})]}),N=(u??0)>0,S=tailwindMerge.twMerge(Nw(e),d),T=l?{href:l,target:f,rel:y,...b}:{};if(l){let{onPress:P,onPressStart:E,onPressEnd:D,onPressChange:k,onPressUp:A,onAuxClick:M,onContextMenu:z,onDoubleClick:F,...B}=b;Object.assign(T,B);}let R=l?jsxRuntime.jsx(reactAriaComponents.Link,{...T,...o&&{"aria-busy":true},style:N?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:N?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 N?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("relative flex",d),style:g,children:[R,jsxRuntime.jsx("span",{className:`absolute ${Cw[p]} flex h-5 w-5 items-center justify-center rounded-full ${Sw[m]} text-xs font-medium`,"aria-label":`${u} items`,children:u})]}):R}function fu({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 on({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(fu,{action:r,defaultVariant:"destructive"})}),jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[t&&jsxRuntime.jsx(fu,{action:t,defaultVariant:"secondary"}),e&&jsxRuntime.jsx(fu,{action:e,defaultVariant:"primary"})]})]})]})}var Tw={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}},kw={page:"h-16 leading-[62px]"};function pr({tag:e="h1",variant:t="heading",size:r="lg",height:o,className:n="",children:a}){let i=r==="xs"?"sm":r,s=Tw[t][i],c=o?kw[o]:"";return jsxRuntime.jsx(e,{className:dr(s,"text-text-primary",c,n),children:a})}var rr=({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(pr,{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 hu=48,Di=Ze.createContext(false);function nn({children:e}){return jsxRuntime.jsx(Di.Provider,{value:true,children:e})}function gg({children:e}){return jsxRuntime.jsx(Di.Provider,{value:false,children:e})}function za(e,t){let r=Ze.useContext(Di),{ref:o,height:n}=Iw();return {headerRef:o,headerHeight:!r||e||t?n||hu:0}}function bg(){return !Ze.useContext(Di)}function Iw(){let[e,t]=Ze.useState(0),r=Ze.useRef(null),o=Ze.useRef(null),n=Ze.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 Ze.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=!Ze.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 j=({width:e,height:t,variant:r="rect",animation:o="pulse",gradient:n=false,flex:a=false,stack:i,responsive:s,delay:c=0,adjustAnimationSpeedBasedOnWidth:l=false,ariaLabel:d,className:u,"data-testid":m})=>{let[p,g]=Ze.useState(c===0);if(Ze.useEffect(()=>{if(c>0){let N=setTimeout(()=>g(true),c);return ()=>clearTimeout(N)}},[c]),!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=l&&e?(()=>{let N=typeof e=="number"?e:parseFloat(String(e));return isNaN(N)?"":`animation-duration-[${Math.max(.8,N/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(([N,S])=>`${N}:w-[${S}]`).join(" "):"";return i?jsxRuntime.jsx("div",{className:"space-y-2","data-testid":m,children:i.map((N,S)=>jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(f,b,h,x,C,u),style:{width:N,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})},xg=({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 Ow={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"},zw="rounded-lg",yu={square:"aspect-square",video:"aspect-video",wide:"aspect-[2/1]",auto:""},Hw={start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between"};function yg(e){return Ze__namespace.default.Children.toArray(e).some(t=>Ze__namespace.default.isValidElement(t)?t.type===Ze__namespace.default.Fragment?yg(t.props.children):t.type===rl&&!!t.props.title:false)}function $e({variant:e="outlined",className:t,children:r,isLoading:o=false,layout:n="default"}){let a=yg(r)?jsxRuntime.jsx(nn,{children:r}):r;return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-full overflow-hidden",Ow[e],zw,n==="flex"&&"flex flex-col",t),"data-testid":"card",children:o?jsxRuntime.jsx(j,{width:"100%",height:"100%",className:"rounded-none"}):a})}function rl({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(j,{width:120,height:20}),jsxRuntime.jsx(j,{width:24,height:24})]}),t&&jsxRuntime.jsx(j,{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(pr,{tag:"h3",size:"sm",className:"text-text-primary",children:e}):e}),t&&jsxRuntime.jsx("div",{className:Rt("bodySm","text-text-secondary"),children:t})]}),r&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:r})]})})}function vu({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",yu[r],o),children:jsxRuntime.jsx(j,{width:"100%",height:"100%"})}):n?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-hidden",yu[r],o),children:n}):e?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-hidden",yu[r],o),children:jsxRuntime.jsx("img",{src:e,alt:t||"",className:"w-full h-full object-cover",loading:"lazy"})}):null}function Cu({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(j,{width:"100%",height:16}),jsxRuntime.jsx(j,{width:"80%",height:16}),jsxRuntime.jsx(j,{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 Su({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(j,{width:80,height:32}),jsxRuntime.jsx(j,{width:60,height:32})]}):t?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("px-6 py-4 flex items-center gap-2",Hw[r],e),children:t}):null}$e.Header=rl;$e.Media=vu;$e.Content=Cu;$e.Footer=Su;var $r=class extends Ze.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 Kw=.3,Yw=.5;function wt({children:e,title:t,headerContent:r,titleAlign:o="left",hideCloseIcon:n=false,hasBackArrow:a=false,onBack:i,isOpen:s,onClose:c,isDismissable:l=true,transparentOverlay:d=false,primaryAction:u,secondaryAction:m,footerContent:p,maxHeight:g="80vh",height:f,maxWidth:y="640px",contentPadding:b=true,showHandle:h=true,animationVariant:x="scale",className:C}){let[N,S]=Ze.useState(false),[T,R]=Ze.useState(0),[P,E]=Ze.useState(false),D=Ks(s),k=D?.height??null,A=D?.keyboardOffset??0,M=Ze.useRef(null),z=Ze.useRef(null),F=Ze.useRef(null),B=Ze.useRef({isDragging:false,startY:0,startTime:0,pointerId:null});Ze.useEffect(()=>{if(s){let G=setTimeout(()=>{S(true),setTimeout(()=>S(false),600);},400);return ()=>clearTimeout(G)}},[s]),Ze.useEffect(()=>{s||(R(0),E(false),B.current={isDragging:false,startY:0,startTime:0,pointerId:null});},[s]),Ze.useEffect(()=>{let G=z.current;if(!G||!s)return;let K=null,w=v=>{let L=v.target;L&&["INPUT","TEXTAREA","SELECT"].includes(L.tagName)&&(K&&clearTimeout(K),K=setTimeout(()=>{L.scrollIntoView({block:"nearest",behavior:"smooth"});},320));};return G.addEventListener("focusin",w),()=>{G.removeEventListener("focusin",w),K&&clearTimeout(K);}},[s]);let O=Ze.useCallback(G=>{l&&(G.pointerType!=="touch"&&G.pointerType!=="pen"||(F.current&&(clearTimeout(F.current),F.current=null),B.current={isDragging:true,startY:G.clientY,startTime:Date.now(),pointerId:G.pointerId},E(false),G.currentTarget.setPointerCapture(G.pointerId)));},[l]),Q=Ze.useCallback(G=>{let{isDragging:K,startY:w,pointerId:v}=B.current;if(!K||G.pointerId!==v)return;let L=G.clientY-w;R(Math.max(0,L));},[]),H=Ze.useCallback(G=>{let{isDragging:K,startY:w,startTime:v,pointerId:L}=B.current;if(!K||G.pointerId!==L)return;let I=G.clientY-w,X=Date.now()-v,oe=I/X;B.current={isDragging:false,startY:0,startTime:0,pointerId:null};let re=(M.current?.getBoundingClientRect().height??0)*Kw;(I>re||oe>Yw&&I>50)&&l?(c?.(),R(0)):(E(true),R(0),F.current=setTimeout(()=>{E(false),F.current=null;},200));},[l,c]);if(!s)return null;let U=t||r,W=u||m||p;return jsxRuntime.jsx($r,{children:jsxRuntime.jsx(kr,{isOpen:s,onOpenChange:G=>{G||c?.();},isDismissable:l,transparent:d,style:{paddingBottom:A>0?`${A}px`:void 0,transition:"padding-bottom 0.25s ease-out"},className:"flex items-end justify-center p-0 sm:p-4",children:jsxRuntime.jsx(reactAriaComponents.Modal,{className:"w-full max-w-full p-0 sm:p-2 outline-none focus:outline-none focus-visible:outline-none ring-0 focus:ring-0 focus-visible:ring-0",isDismissable:l,children:jsxRuntime.jsx("div",{ref:M,className:tailwindMerge.twMerge("w-full",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:O,onPointerMove:Q,onPointerUp:H,onPointerCancel:H,children:jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("h-1 w-12 rounded-full bg-border-muted transition-all duration-300","hover:bg-border-default hover:w-16",N&&"animate-[handle-wiggle_0.6s_ease-in-out]")})}),U&&(a?jsxRuntime.jsx(rr,{title:t,headerContent:r,titleAlign:o,hideCloseIcon:n||!c,hasBackArrow:true,onBack:i??(()=>{}),onClose:c||(()=>{})}):jsxRuntime.jsx(rr,{title:t,headerContent:r,titleAlign:o,hideCloseIcon:n||!c,onClose:c||(()=>{})})),jsxRuntime.jsx("div",{ref:z,className:tailwindMerge.twMerge("flex-1 min-h-0 overflow-y-auto overscroll-contain",b?"p-4":"p-0"),children:e}),W&&jsxRuntime.jsx(on,{primaryAction:u,secondaryAction:m,footerContent:p})]})})})})})}wt.displayName="Tray";function Wa({children:e,items:t,className:r,align:o="left",textAlign:n="left",size:a="md",onAction:i,header:s,footer:c,useMobileTray:l=true,popoverClassName:d}){let[u,m]=Ze.useState(false),{isMobile:p}=cr();if(l&&p){let f=Ze__namespace.default.isValidElement(e)?Ze__namespace.default.cloneElement(e,{onPress:()=>m(true)}):e,h=(x=>{if(typeof x=="string")return x;if(Ze__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(wt,{isOpen:u,onClose:()=>m(false),title:h,contentPadding:false,headerContent:s,footerContent:c,children:jsxRuntime.jsx("div",{className:"flex flex-col",children:t.map(x=>{let 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(St,{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(Qw,{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))}),c?jsxRuntime.jsx("div",{className:"px-3 pb-3 pt-2",children:c}):null]})})]})})}function Qw({textAlign:e="left",iconName:t,size:r="md",isDisabled:o,children:n,variant:a="default",subtitle:i,render:s,noPadding:c,...l}){let d={sm:"px-3 py-2 text-sm",md:i?"px-4 py-2.5 text-base":"px-4 py-2 text-base"},u="text-text-primary hover:bg-background-hover data-[focused]:bg-background-hover data-[focus-visible]:ring-2 data-[focus-visible]:ring-action-primary data-[focus-visible]:ring-inset",m={primary:u,default:u,destructive:"text-feedback-error-text hover:bg-feedback-error-background data-[focused]:bg-feedback-error-background data-[focus-visible]:ring-2 data-[focus-visible]:ring-feedback-error-border data-[focus-visible]:ring-inset"};return s?jsxRuntime.jsx(reactAriaComponents.MenuItem,{...l,isDisabled:o,className:tailwindMerge.twMerge("group box-border flex w-full cursor-pointer items-center rounded-sm outline-none transition-colors",!c&&d[r],m[a],e==="right"?"justify-end":"justify-start",o&&"pointer-events-none opacity-50"),children:s()}):jsxRuntime.jsxs(reactAriaComponents.MenuItem,{...l,isDisabled:o,className:tailwindMerge.twMerge("group box-border flex w-full cursor-pointer items-center rounded-sm outline-none transition-colors",!c&&d[r],m[a],e==="right"?"justify-end":"justify-start",o&&"pointer-events-none opacity-50"),children:[t&&e==="left"&&jsxRuntime.jsx(V,{name:t,size:r==="sm"?16:20,className:"mr-3 flex-shrink-0"}),jsxRuntime.jsxs("div",{className:"flex flex-1 flex-col",children:[jsxRuntime.jsx("span",{className:i?"font-medium":"",children:n}),i&&jsxRuntime.jsx("span",{className:"text-sm text-text-secondary",children:i})]}),t&&e==="right"&&jsxRuntime.jsx(V,{name:t,size:r==="sm"?16:20,className:"ml-3 flex-shrink-0"})]})}var 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 an({items:e,onLoadMore:t,hasMore:r,isLoading:o=false,loadingState:n,enableVirtualization:a,estimatedItemSize:i=50,overscan:s=5,scrollElement:c,loadMoreThreshold:l=100}){let d=Ze.useRef(null),u=Ze.useRef(null),m=Ze.useRef(false),[p,g]=Ze.useState(0);Ze.useEffect(()=>{u.current&&(c||d.current)&&g(R=>R+1);},[c,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:()=>c||d.current,estimateSize:()=>i,overscan:s}),C=h?x:null,N=h?x.getVirtualItems():[];Ze.useEffect(()=>{let R=u.current,P=c||d.current;if(!R||!P||!r||o||!t)return;let E=new IntersectionObserver(D=>{let[k]=D;k?.isIntersecting&&!m.current&&r&&t&&(m.current=true,Promise.resolve(t()).finally(()=>{m.current=false;}));},{root:P,rootMargin:`0px 0px ${l}px 0px`,threshold:0});return E.observe(R),()=>{E.disconnect();}},[r,o,t,c,l,p]);let S=Ze.useCallback((R,P)=>{C?C.scrollToIndex(R,P):d.current&&d.current.children[R]?.scrollIntoView({behavior:"smooth",block:P?.align||"start"});},[C]),T=Ze.useCallback(()=>{C?C.scrollToIndex(0,{align:"start"}):d.current&&d.current.scrollTo({top:0,behavior:"smooth"});},[C]);return {virtualizer:C,virtualItems:N,computedLoadingState:f,isInitialLoad:y,isLoadingMore:b,scrollRef:d,loadMoreRef:u,scrollToIndex:S,scrollToTop:T}}var Ua=Ze.createContext({variant:"timeline",size:"md"});function Eg(){return Ze.useContext(Ua)}function il(e){return Ze.isValidElement(e)&&e.type===cl}function iN(e){return Ze.isValidElement(e)&&e.type===ll}function Eu({variant:e="timeline",size:t="md",className:r,children:o,items:n,renderItem:a,isLoading:i=false,loadingState:s,error:c=null,renderLoadingSkeleton:l,loadingSkeletonCount:d=5,emptyMessage:u="No activity found.",onLoadMore:m,hasMore:p=false,enableVirtualization:g,estimatedItemSize:f,loadingIndicator:y,height:b,maxHeight:h,...x}){let C=Ze.useRef(null),{isMobile:N}=cr(),S=N?"stacked":e,T=n!==void 0&&a!==void 0,{scrollRef:R,loadMoreRef:P,virtualizer:E,virtualItems:D,isLoadingMore:k,computedLoadingState:A}=an({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}),M=T&&R?R:C,z=Ze.useMemo(()=>({variant:S,size:t}),[S,t]),F=S==="timeline"?t==="sm"?"gap-4":"gap-6":"gap-0",B=S==="stacked"?"divide-y divide-border-subtle rounded-lg border border-border-subtle bg-background-surface":"",O={};if(T&&m&&(b?(O.height=typeof b=="number"?`${b}px`:b,O.overflowY="auto"):h?(O.maxHeight=typeof h=="number"?`${h}px`:h,O.overflowY="auto"):(O.height="600px",O.overflowY="auto")),T){let U=A==="loading"||i&&(!n||n.length===0);if(U){let G=l?jsxRuntime.jsx(jsxRuntime.Fragment,{children:Array.from({length:d}).map((K,w)=>jsxRuntime.jsx("div",{children:l()},`skeleton-${w}`))}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:Array.from({length:d}).map((K,w)=>{let v=t==="sm"?"gap-2":"gap-3";if(S==="timeline"){let L=t==="sm"?"pt-3":"pt-4",I=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 ${L}`,children:[jsxRuntime.jsx(j,{width:32,height:32,variant:"circle"}),w<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} ${I} rounded-md border border-border-subtle bg-background-surface`,children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-3",children:[jsxRuntime.jsx(j,{width:"50%",height:16}),jsxRuntime.jsx(j,{width:"15%",height:12})]}),jsxRuntime.jsx(j,{width:"85%",height:t==="sm"?14:15}),jsxRuntime.jsx(j,{width:"70%",height:t==="sm"?14:15})]})]},`skeleton-${w}`)}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(j,{width:24,height:24,variant:"circle"}),jsxRuntime.jsx(j,{width:"50%",height:16})]}),jsxRuntime.jsxs("div",{className:`mt-3 flex flex-col ${v}`,children:[jsxRuntime.jsx(j,{width:"85%",height:t==="sm"?14:15}),jsxRuntime.jsx(j,{width:"70%",height:t==="sm"?14:15}),jsxRuntime.jsx(j,{width:"20%",height:12})]})]},`skeleton-${w}`)})});return jsxRuntime.jsx(Ua.Provider,{value:z,children:jsxRuntime.jsx("div",{ref:M,"data-slot":"feed","data-variant":S,className:tailwindMerge.twMerge("flex flex-col",F,B,r),style:O,...x,children:G})})}if(c)return jsxRuntime.jsx(Ua.Provider,{value:z,children:jsxRuntime.jsx("div",{ref:M,"data-slot":"feed","data-variant":S,className:tailwindMerge.twMerge("flex flex-col",F,B,r),style:O,...x,children:jsxRuntime.jsx("div",{className:"p-4 text-center text-feedback-error-text",children:c})})});if(!n||n.length===0)return jsxRuntime.jsx(Ua.Provider,{value:z,children:jsxRuntime.jsx("div",{ref:M,"data-slot":"feed","data-variant":S,className:tailwindMerge.twMerge("flex flex-col",F,B,r),style:O,...x,children:jsxRuntime.jsx("div",{className:"p-4 text-center text-text-secondary",children:u})})});let W=E?D?.map(G=>({virtualItem:G,item:n[G.index],index:G.index}))||[]:n.map((G,K)=>({item:G,index:K,virtualItem:null}));return jsxRuntime.jsx(Ua.Provider,{value:z,children:jsxRuntime.jsxs("div",{ref:M,"data-slot":"feed","data-variant":S,className:tailwindMerge.twMerge("flex flex-col",F,B,r),style:{...O,position:E?"relative":void 0},...x,children:[E?jsxRuntime.jsxs("div",{style:{height:`${E.getTotalSize()}px`,position:"relative"},children:[W.map(({item:G,index:K,virtualItem:w})=>{if(!G||!w)return null;let v=a(G,K),L=S==="timeline"&&Ze.isValidElement(v)&&il(v)?Ze.cloneElement(v,{showConnector:K!==n.length-1}):v;return jsxRuntime.jsx("div",{style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${w.start}px)`},"data-index":w.index,ref:E.measureElement,children:L},`item-${K}`)}),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:[W.map(({item:G,index:K})=>{let w=a(G,K);if(S==="timeline"&&Ze.isValidElement(w)&&il(w)){let v=K===n.length-1;return jsxRuntime.jsx("div",{children:Ze.cloneElement(w,{showConnector:!v})},`item-${K}`)}return jsxRuntime.jsx("div",{children:w},`item-${K}`)}),k&&(y||jsxRuntime.jsx(Ur,{state:"loading-more"}))]}),m&&p&&!U&&jsxRuntime.jsx("div",{ref:P,style:E?{position:"absolute",top:`${E.getTotalSize()}px`,left:0,width:"100%",height:1}:{height:1,width:"100%"}})]})})}let Q=Ze.Children.toArray(o),H=Q.map((U,W)=>{if(il(U)){let G=U.props.showConnector??(S==="timeline"&&W<Q.length-1),K=S==="timeline"&&W>0;return Ze.cloneElement(U,{showConnector:G,showIncomingConnector:K})}if(iN(U)){let G=W===Q.length-1;return Ze.cloneElement(U,{__isLastGroup:G,__isFirstGroup:W===0})}return U});return jsxRuntime.jsx(Ua.Provider,{value:z,children:jsxRuntime.jsx("div",{"data-slot":"feed","data-variant":S,className:tailwindMerge.twMerge("flex flex-col",F,B,r),...x,children:H})})}Eu.displayName="ActivityFeed";function ll(e){let{variant:t,size:r}=Eg(),{title:o,description:n,actions:a,children:i,className:s,__isLastGroup:c=false,__isFirstGroup:l=false,...d}=e,u=Ze.Children.toArray(i),m=u.map((f,y)=>{if(il(f)){let b=f.props.showConnector??(t==="timeline"&&!(c&&y===u.length-1));return Ze.cloneElement(f,{showConnector:b,showIncomingConnector:t==="timeline"&&!(l&&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})]})}ll.displayName="ActivityFeedGroup";var Pg={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"},sN={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"},lN={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 cl(e){let{variant:t,size:r}=Eg(),{title:o,description:n,timestamp:a,meta:i,media:s,actions:c,visual:l,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:N,...S}=e,T=l??(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",D=r==="sm"?"text-sm":"text-[15px]",k="text-xs text-text-secondary",A=b??typeof S.onClick=="function",M=W=>{if(!A){C?.(W);return}W.key===" "?W.preventDefault():W.key==="Enter"&&(W.preventDefault(),W.currentTarget.click()),C?.(W);},z=W=>{A&&W.key===" "&&(W.preventDefault(),W.currentTarget.click());},F=A?tailwindMerge.twMerge("group cursor-pointer",rt()):void 0,O=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",Pg[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"})]}),Q=g?tailwindMerge.twMerge(sN[m],R==="minimal"?"rounded-md border border-border-muted":lN[m]):"";if(t==="stacked")return jsxRuntime.jsxs("div",{"data-slot":"item","data-variant":"stacked",role:A?"button":void 0,tabIndex:A?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],Q,F,A?"transition-colors hover:bg-background-subtle/80":"",h),onKeyDown:M,onKeyUp:z,...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",Pg[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",D),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,c&&jsxRuntime.jsx("div",{className:"flex flex-wrap gap-2 pt-1",children:c}),a&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("-mt-1.5",E),children:a})]})]});let H=R==="minimal"?r==="sm"?"py-2":"py-3":r==="sm"?"p-3":"p-4",U={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:A?"button":void 0,tabIndex:A?0:void 0,className:tailwindMerge.twMerge("group relative grid items-start gap-4 grid-cols-[3rem_1fr]",F,h),onKeyDown:M,onKeyUp:z,...S,children:[y?jsxRuntime.jsx("div",{}):O,jsxRuntime.jsxs("div",{"data-slot":"content",className:tailwindMerge.twMerge("min-w-0 flex flex-col",P,H,U[R],Q,A?"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",D),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,c&&jsxRuntime.jsx("div",{className:"flex flex-wrap gap-2 pt-2",children:c})]})]})}cl.displayName="ActivityItem";function mr({isOpen:e,onClose:t,title:r,headerContent:o,titleAlign:n="left",hideCloseIcon:a=false,hasBackArrow:i=false,onBack:s,children:c,primaryAction:l,secondaryAction:d,tertiaryAction:u,footerContent:m,transparentOverlay:p=false,maxWidth:g="600px",minWidth:f="400px",maxHeight:y="85vh",height:b,mobileMaxHeight:h="90vh",mobileHeight:x,contentPadding:C=true,className:N}){let S=lr("(max-width: 767px)"),T=Ks(S&&e===void 0),R=T?.height??null,P=T?.keyboardOffset??0,E=Ze.useRef(null),D=Ze.useCallback(()=>{E.current&&E.current.scrollTop!==0&&(E.current.scrollTop=0);},[]),k=Ze.useRef(null),A=Ze.useRef(null);Ze.useEffect(()=>{let O=A.current;if(!O||!S)return;let Q=null,H=U=>{let W=U.target;W&&["INPUT","TEXTAREA","SELECT"].includes(W.tagName)&&(Q&&clearTimeout(Q),Q=setTimeout(()=>{W.scrollIntoView({block:"nearest",behavior:"smooth"});},320));};return O.addEventListener("focusin",H),()=>{O.removeEventListener("focusin",H),Q&&clearTimeout(Q);}},[S]);let M=Ze.useCallback(()=>{k.current&&k.current.scrollTop!==0&&(k.current.scrollTop=0);},[]);if(e===false)return null;let z=r||o,F=l||d||u||m,B=e!==void 0;return S?B?jsxRuntime.jsx(wt,{isOpen:e,onClose:t,title:r,headerContent:o,titleAlign:n,hideCloseIcon:a,hasBackArrow:i,onBack:s,primaryAction:l,secondaryAction:d,footerContent:m,transparentOverlay:p,maxHeight:h,height:x,maxWidth:g,contentPadding:C,showHandle:true,animationVariant:"scale",className:N,children:c}):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:D,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",N),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"})}),z&&(i?jsxRuntime.jsx(rr,{title:r,headerContent:o,titleAlign:n,hideCloseIcon:a||!t,hasBackArrow:true,onBack:s,onClose:t||(()=>{})}):jsxRuntime.jsx(rr,{title:r,headerContent:o,titleAlign:n,hideCloseIcon:a||!t,onClose:t||(()=>{})})),jsxRuntime.jsx("div",{ref:A,className:tailwindMerge.twMerge("flex-1 min-h-0 overflow-y-auto overscroll-contain",C?"px-6 py-6":"p-0"),children:c}),F&&jsxRuntime.jsx(on,{primaryAction:l,secondaryAction:d,tertiaryAction:u,footerContent:m})]})})})}):jsxRuntime.jsx($r,{children:jsxRuntime.jsx(kr,{...B?{isOpen:e,onOpenChange:O=>{!O&&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:M,className:tailwindMerge.twMerge("relative flex w-full flex-col","bg-background-surface","shadow-2xl shadow-black/20","border border-border-default/50","rounded-md","overflow-hidden","outline-none focus:outline-none focus-visible:outline-none ring-0 focus:ring-0","animate-in fade-in zoom-in-96 slide-in-from-bottom-2","duration-300 ease-out","data-[exiting]:animate-out data-[exiting]:fade-out data-[exiting]:zoom-out-95","data-[exiting]:duration-200 data-[exiting]:ease-in",N),style:{minWidth:f,...b?{height:b}:{maxHeight:y}},children:[z&&(i?jsxRuntime.jsx(rr,{title:r,headerContent:o,titleAlign:n,hideCloseIcon:a||!t,hasBackArrow:true,onBack:s,onClose:t||(()=>{})}):jsxRuntime.jsx(rr,{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:c}),F&&jsxRuntime.jsx(on,{primaryAction:l,secondaryAction:d,tertiaryAction:u,footerContent:m})]})})})})}function Fg({isOpen:e,onClose:t,title:r,message:o,confirmLabel:n="OK",confirmVariant:a="primary",maxWidth:i="400px",minWidth:s="320px"}){return jsxRuntime.jsx(mr,{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 sn={xs:16,sm:20,md:24,lg:32,xl:40,"2xl":48},Rr=Ze.memo(({name:e,size:t="md",color:r,weight:o="regular",className:n,ariaLabel:a,...i})=>{let s=dN__namespace[e];if(!s)return null;let c=typeof t=="string"?t in sn?sn[t]:sn.md:t,l=tailwindMerge.twMerge("inline-block flex-shrink-0",!r&&"text-current",n);return jsxRuntime.jsx(s,{...i,size:c,color:r,weight:o,className:l,"aria-label":a||`${e} icon`,"data-testid":`icon-${e}`})});Rr.displayName="IconSSR";var uN=Ze.memo(({variant:e="subtle",shape:t="square",containerSize:r,containerClassName:o,size:n="md",className:a,name:i,color:s,weight:c,ariaLabel:l,ref:d,...u})=>{let m=typeof n=="string"?n in sn?sn[n]:sn.md:n,p=r?typeof r=="string"?r in sn?sn[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:c,className:a,ariaLabel:l})})});uN.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 c=r||270,l=c/270*80;return jsxRuntime.jsxs("svg",{width:c,height:l,viewBox:"0 0 270 80",xmlns:"http://www.w3.org/2000/svg",className:a,style:n?{fill:n}:void 0,children:[jsxRuntime.jsxs("g",{clipPath:"url(#clip0_796_283)",children:[jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.223654 20.2934C0.417233 19.8234 0.873598 19.517 1.37984 19.517H20.5909C21.282 19.517 21.8422 20.0798 21.8422 20.774V40.049C21.8422 40.5572 21.5375 41.0155 21.0702 41.2102C20.6028 41.405 20.0647 41.2977 19.7067 40.9385L0.495628 21.6635C0.137428 21.3041 0.030075 20.7633 0.223654 20.2934ZM4.40349 22.0311L19.3396 37.017V22.0311H4.40349Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.6458 20.2934C38.8394 19.8234 39.2958 19.517 39.802 19.517H59.013C59.7041 19.517 60.2642 20.0798 60.2642 20.774V40.049C60.2642 40.5572 59.9597 41.0155 59.4923 41.2102C59.025 41.405 58.4867 41.2977 58.1289 40.9385L38.9178 21.6635C38.5595 21.3041 38.4522 20.7633 38.6458 20.2934ZM42.8255 22.0311L57.7618 37.017V22.0311H42.8255Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.4347 58.8447C19.6283 58.3747 20.0847 58.0685 20.5909 58.0685H39.802C40.493 58.0685 41.0532 58.6312 41.0532 59.3255V78.6005C41.0532 79.1087 40.7486 79.567 40.2813 79.7617C39.8139 79.9562 39.2757 79.849 38.9178 79.49L19.7067 60.215C19.3485 59.8555 19.2411 59.3147 19.4347 58.8447ZM23.6146 60.5825L38.5508 75.5682V60.5825H23.6146Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.3227 58.1643C39.79 57.9695 40.3283 58.0768 40.6861 58.436L59.8972 77.711C60.2555 78.0703 60.3628 78.6113 60.1692 79.081C59.9756 79.551 59.5192 79.8575 59.013 79.8575H39.802C39.1109 79.8575 38.5508 79.2948 38.5508 78.6005V59.3255C38.5508 58.8173 38.8554 58.359 39.3227 58.1643ZM41.0532 62.3575V77.3433H55.9893L41.0532 62.3575Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.3227 19.6129C39.79 19.4182 40.3283 19.5254 40.6861 19.8846L59.8972 39.1595C60.2555 39.519 60.3628 40.0598 60.1692 40.5298C59.9756 40.9995 59.5192 41.306 59.013 41.306H39.802C39.1109 41.306 38.5508 40.7433 38.5508 40.049V20.7741C38.5508 20.2658 38.8554 19.8075 39.3227 19.6129ZM41.0532 23.8061V38.792H55.9893L41.0532 23.8061Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.3227 38.8885C39.79 38.694 40.3283 38.8012 40.6861 39.1602L59.8972 58.4352C60.2555 58.7945 60.3628 59.3355 60.1692 59.8055C59.9756 60.2752 59.5192 60.5817 59.013 60.5817H39.802C39.1109 60.5817 38.5508 60.019 38.5508 59.3247V40.0497C38.5508 39.5415 38.8554 39.0832 39.3227 38.8885ZM41.0532 43.0817V58.0675H55.9893L41.0532 43.0817Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.6458 39.569C38.8394 39.0992 39.2958 38.7927 39.802 38.7927H59.013C59.7041 38.7927 60.2642 39.3555 60.2642 40.0497V59.3247C60.2642 59.833 59.9597 60.2912 59.4923 60.486C59.025 60.6805 58.4867 60.5732 58.1289 60.2142L38.9178 40.9392C38.5595 40.5797 38.4522 40.039 38.6458 39.569ZM42.8255 41.3067L57.7618 56.2927V41.3067H42.8255Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.6458 58.8447C38.8394 58.3747 39.2958 58.0685 39.802 58.0685H59.013C59.7041 58.0685 60.2642 58.6312 60.2642 59.3255V78.6005C60.2642 79.1087 59.9597 79.567 59.4923 79.7617C59.025 79.9562 58.4867 79.849 58.1289 79.49L38.9178 60.215C38.5595 59.8555 38.4522 59.3147 38.6458 58.8447ZM42.8255 60.5825L57.7618 75.5682V60.5825H42.8255Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M58.5338 19.6129C59.0011 19.4182 59.5394 19.5254 59.8972 19.8846L79.1083 39.1595C79.4666 39.519 79.5739 40.0598 79.3803 40.5298C79.1867 40.9995 78.7303 41.306 78.2241 41.306H59.013C58.322 41.306 57.7618 40.7433 57.7618 40.049V20.7741C57.7618 20.2658 58.0664 19.8075 58.5338 19.6129ZM60.2643 23.8061V38.792H75.2006L60.2643 23.8061Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M58.5338 0.338803C59.0011 0.144135 59.5394 0.251385 59.8972 0.610565L79.1083 19.8855C79.4666 20.2449 79.5739 20.7857 79.3803 21.2556C79.1867 21.7256 78.7303 22.032 78.2241 22.032H59.013C58.322 22.032 57.7618 21.4692 57.7618 20.775V1.50003C57.7618 0.99174 58.0664 0.533468 58.5338 0.338803ZM60.2643 4.53208V19.5179H75.2006L60.2643 4.53208Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M57.8569 20.2934C58.0505 19.8234 58.5069 19.517 59.013 19.517H78.2241C78.9151 19.517 79.4753 20.0798 79.4753 20.774V40.049C79.4753 40.5572 79.1707 41.0155 78.7034 41.2102C78.236 41.405 77.6978 41.2977 77.3399 40.9385L58.1289 21.6635C57.7705 21.3041 57.6633 20.7633 57.8569 20.2934ZM62.0365 22.0311L76.9729 37.017V22.0311H62.0365Z"}),jsxRuntime.jsx("path",{d:"M269.838 49.4457H249.005C249.266 51.801 250.162 53.6985 251.695 55.1377C253.225 56.577 255.134 57.2967 257.416 57.2967C259.307 57.2967 260.887 56.8715 262.159 56.021C263.463 55.1377 264.408 53.9927 264.996 52.5862H269.251C268.502 54.9415 267.084 56.937 264.996 58.5725C262.943 60.208 260.414 61.026 257.416 61.026C255.069 61.026 252.917 60.4697 250.961 59.3575C249.037 58.2127 247.504 56.6587 246.363 54.696C245.255 52.7332 244.7 50.558 244.7 48.17C244.7 45.782 245.255 43.6067 246.363 41.644C247.504 39.6812 249.037 38.1437 250.961 37.0315C252.917 35.8867 255.069 35.3142 257.416 35.3142C259.73 35.3142 261.833 35.8702 263.724 36.9825C265.615 38.0947 267.098 39.6485 268.176 41.644C269.283 43.6395 269.838 45.913 269.838 48.4645V49.4457ZM257.416 39.0432C255.263 39.0432 253.439 39.6812 251.939 40.957C250.47 42.2327 249.542 43.9337 249.152 46.06H265.583C265.192 43.9992 264.262 42.3145 262.796 41.006C261.36 39.6975 259.568 39.0432 257.416 39.0432Z"}),jsxRuntime.jsx("path",{d:"M228.356 60.5352V35.8049H232.219V39.7794H232.464C233.05 38.5689 233.963 37.5712 235.202 36.7862C236.474 35.9684 237.974 35.5594 239.701 35.5594H243.125V39.4359H239.701C237.517 39.4359 235.757 40.1554 234.42 41.5949C233.083 43.0342 232.414 44.9152 232.414 47.2377V60.5352H228.356Z"}),jsxRuntime.jsx("path",{d:"M208.607 61.0259C205.64 61.0259 203.326 60.1262 201.663 58.3272C200 56.4952 199.169 53.8947 199.169 50.5252V35.8047H203.228V49.8874C203.228 52.2427 203.766 54.0744 204.842 55.3829C205.95 56.6587 207.532 57.2967 209.586 57.2967C211.02 57.2967 212.308 56.9694 213.449 56.3152C214.623 55.6284 215.536 54.6959 216.188 53.5184C216.84 52.3407 217.166 50.9997 217.166 49.4949V35.8047H221.225V60.5352H217.313V56.5607H217.068C216.286 57.9019 215.161 58.9814 213.694 59.7992C212.226 60.6169 210.531 61.0259 208.607 61.0259Z"}),jsxRuntime.jsx("path",{d:"M186.736 39.534V56.806H194.756V60.5352H182.677V39.534H177.199V35.8047H182.677V29.5732H186.736V35.8047H193.24V39.534H186.736Z"}),jsxRuntime.jsx("path",{d:"M156.585 60.5352H151.988L158.394 48.0227L152.33 35.8047H156.976L162.062 46.0599H165.388L170.474 35.8047H175.022L168.958 48.0227L175.365 60.5352H170.67L165.29 49.7892H162.013L156.585 60.5352Z"}),jsxRuntime.jsx("path",{d:"M150.138 49.1315H129.304C129.565 51.4867 130.461 53.3842 131.994 54.8235C133.526 56.2627 135.433 56.9825 137.715 56.9825C139.606 56.9825 141.188 56.5572 142.459 55.7067C143.763 54.8235 144.709 53.6785 145.296 52.272H149.551C148.801 54.6272 147.382 56.6227 145.296 58.2582C143.242 59.8937 140.715 60.7118 137.715 60.7118C135.368 60.7118 133.216 60.1555 131.26 59.0432C129.336 57.8985 127.804 56.3445 126.663 54.3817C125.554 52.419 125 50.2437 125 47.8557C125 45.4677 125.554 43.2925 126.663 41.3298C127.804 39.367 129.336 37.8295 131.26 36.7173C133.216 35.5725 135.368 35 137.715 35C140.03 35 142.133 35.556 144.024 36.6682C145.915 37.7805 147.399 39.3342 148.475 41.3298C149.583 43.3252 150.138 45.5987 150.138 48.1502V49.1315ZM137.715 38.729C135.564 38.729 133.738 39.367 132.238 40.6427C130.771 41.9185 129.842 43.6195 129.45 45.7458H145.883C145.491 43.685 144.562 42.0002 143.095 40.6917C141.661 39.3832 139.867 38.729 137.715 38.729Z"}),jsxRuntime.jsx("path",{d:"M116.961 60.5353H112.559V30.4072H101.164V26.1875H128.307V30.4072H116.961V60.5353Z"})]}),jsxRuntime.jsx("defs",{children:jsxRuntime.jsx("clipPath",{id:"clip0_796_283",children:jsxRuntime.jsx("rect",{width:"270",height:"80",fill:"white"})})})]})}let i=r||80;return jsxRuntime.jsxs("svg",{width:i,height:i,viewBox:"0 0 80 80",xmlns:"http://www.w3.org/2000/svg",className:a,style:n?{fill:n}:void 0,children:[jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.223654 20.2934C0.417233 19.8234 0.873598 19.517 1.37984 19.517H20.5909C21.282 19.517 21.8422 20.0798 21.8422 20.774V40.049C21.8422 40.5572 21.5375 41.0155 21.0702 41.2102C20.6028 41.405 20.0647 41.2977 19.7067 40.9385L0.495628 21.6635C0.137428 21.3041 0.030075 20.7633 0.223654 20.2934ZM4.40349 22.0311L19.3396 37.017V22.0311H4.40349Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.6458 20.2934C38.8394 19.8234 39.2958 19.517 39.802 19.517H59.013C59.7041 19.517 60.2642 20.0798 60.2642 20.774V40.049C60.2642 40.5572 59.9597 41.0155 59.4923 41.2102C59.025 41.405 58.4867 41.2977 58.1289 40.9385L38.9178 21.6635C38.5595 21.3041 38.4522 20.7633 38.6458 20.2934ZM42.8255 22.0311L57.7618 37.017V22.0311H42.8255Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.4347 58.8447C19.6283 58.3747 20.0847 58.0685 20.5909 58.0685H39.802C40.493 58.0685 41.0532 58.6312 41.0532 59.3255V78.6005C41.0532 79.1087 40.7486 79.567 40.2813 79.7617C39.8139 79.9562 39.2757 79.849 38.9178 79.49L19.7067 60.215C19.3485 59.8555 19.2411 59.3147 19.4347 58.8447ZM23.6146 60.5825L38.5508 75.5682V60.5825H23.6146Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.3227 58.1643C39.79 57.9695 40.3283 58.0768 40.6861 58.436L59.8972 77.711C60.2555 78.0703 60.3628 78.6113 60.1692 79.081C59.9756 79.551 59.5192 79.8575 59.013 79.8575H39.802C39.1109 79.8575 38.5508 79.2948 38.5508 78.6005V59.3255C38.5508 58.8173 38.8554 58.359 39.3227 58.1643ZM41.0532 62.3575V77.3433H55.9893L41.0532 62.3575Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.3227 19.6129C39.79 19.4182 40.3283 19.5254 40.6861 19.8846L59.8972 39.1595C60.2555 39.519 60.3628 40.0598 60.1692 40.5298C59.9756 40.9995 59.5192 41.306 59.013 41.306H39.802C39.1109 41.306 38.5508 40.7433 38.5508 40.049V20.7741C38.5508 20.2658 38.8554 19.8075 39.3227 19.6129ZM41.0532 23.8061V38.792H55.9893L41.0532 23.8061Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.3227 38.8885C39.79 38.694 40.3283 38.8012 40.6861 39.1602L59.8972 58.4352C60.2555 58.7945 60.3628 59.3355 60.1692 59.8055C59.9756 60.2752 59.5192 60.5817 59.013 60.5817H39.802C39.1109 60.5817 38.5508 60.019 38.5508 59.3247V40.0497C38.5508 39.5415 38.8554 39.0832 39.3227 38.8885ZM41.0532 43.0817V58.0675H55.9893L41.0532 43.0817Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.6458 39.569C38.8394 39.0992 39.2958 38.7927 39.802 38.7927H59.013C59.7041 38.7927 60.2642 39.3555 60.2642 40.0497V59.3247C60.2642 59.833 59.9597 60.2912 59.4923 60.486C59.025 60.6805 58.4867 60.5732 58.1289 60.2142L38.9178 40.9392C38.5595 40.5797 38.4522 40.039 38.6458 39.569ZM42.8255 41.3067L57.7618 56.2927V41.3067H42.8255Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.6458 58.8447C38.8394 58.3747 39.2958 58.0685 39.802 58.0685H59.013C59.7041 58.0685 60.2642 58.6312 60.2642 59.3255V78.6005C60.2642 79.1087 59.9597 79.567 59.4923 79.7617C59.025 79.9562 58.4867 79.849 58.1289 79.49L38.9178 60.215C38.5595 59.8555 38.4522 59.3147 38.6458 58.8447ZM42.8255 60.5825L57.7618 75.5682V60.5825H42.8255Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M58.5338 19.6129C59.0011 19.4182 59.5394 19.5254 59.8972 19.8846L79.1083 39.1595C79.4666 39.519 79.5739 40.0598 79.3803 40.5298C79.1867 40.9995 78.7303 41.306 78.2241 41.306H59.013C58.322 41.306 57.7618 40.7433 57.7618 40.049V20.7741C57.7618 20.2658 58.0664 19.8075 58.5338 19.6129ZM60.2643 23.8061V38.792H75.2006L60.2643 23.8061Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M58.5338 0.338803C59.0011 0.144135 59.5394 0.251385 59.8972 0.610565L79.1083 19.8855C79.4666 20.2449 79.5739 20.7857 79.3803 21.2556C79.1867 21.7256 78.7303 22.032 78.2241 22.032H59.013C58.322 22.032 57.7618 21.4692 57.7618 20.775V1.50003C57.7618 0.99174 58.0664 0.533468 58.5338 0.338803ZM60.2643 4.53208V19.5179H75.2006L60.2643 4.53208Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M57.8569 20.2934C58.0505 19.8234 58.5069 19.517 59.013 19.517H78.2241C78.9151 19.517 79.4753 20.0798 79.4753 20.774V40.049C79.4753 40.5572 79.1707 41.0155 78.7034 41.2102C78.236 41.405 77.6978 41.2977 77.3399 40.9385L58.1289 21.6635C57.7705 21.3041 57.6633 20.7633 57.8569 20.2934ZM62.0365 22.0311L76.9729 37.017V22.0311H62.0365Z"})]})};var ul=({topItems:e=[],bottomItems:t=[],bottomContent:r,logo:o,showLogo:n=true,linkComponent:a="a",className:i="",mobileMenuId:s="app-mobile-menu",sidebarCollapseId:c="app-sidebar-collapse"})=>{let l=p=>p.length>0&&"items"in p[0],d=p=>l(p)?p:[{id:"default-section",items:p}],u=(p,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:c,className:"hidden md:flex items-center justify-center w-8 h-8 rounded hover:bg-background-hover cursor-pointer transition-all duration-200 relative top-[-1px]","aria-label":"Collapse sidebar",children:jsxRuntime.jsx(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 Hn(e){return e.id??e.href??e.label}function Au(e,t,r=[]){for(let o of e){if(o.href===t||o.id===t)return o.children?.length&&o.pushOnSelect!==false?[...r,Hn(o)]:r;if(o.children?.length){let n=Au(o.children,t,[...r,Hn(o)]);if(n)return n}}return null}function Wg(e,t){let r=[],o=e;for(let n of t){let a=o.find(i=>Hn(i)===n);if(!a)break;r.push(a),o=a.children??[];}return r}function mN(e,t,r){let o=t.length>0?[...e,...t]:e,n=[{path:[],items:e,bottomItems:t.length>0?t:void 0}],a=Wg(o,r),i=[];for(let s of a){if(!s.children?.length)break;i=[...i,Hn(s)],n.push({path:i,parent:s,items:s.children});}return n}var fN=({href:e,...t})=>jsxRuntime.jsx("a",{href:e,...t}),Og=[];function gN(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 bN(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 hN(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:c=fN,renderRow:l,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:N=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=Ze__namespace.useMemo(()=>t?gN(t):e??Og,[t,e]),P=r??Og,E=Ze__namespace.useMemo(()=>P.length>0?[...R,...P]:R,[R,P]);Ze__namespace.useEffect(()=>{bN(R,P);},[R,P]);let[D,k]=Ze__namespace.useState(()=>a!==void 0?a:n!==void 0?n:o?Au(E,o)??[]:[]),A=a??D,M=Ze__namespace.useCallback(K=>{a===void 0&&k(K),i?.(K);},[a,i]),z=Ze__namespace.useRef(false);Ze__namespace.useEffect(()=>{if(a!==void 0||!z.current&&(z.current=true,n!==void 0)||!o)return;let K=Au(E,o);k(w=>{let v=K??[];return vN(w,v)?w:v});},[o,E,a,n]);let F=Ze__namespace.useMemo(()=>mN(R,P,A),[R,P,A]),B=Ze__namespace.useCallback((K,w)=>{K.children?.length&&M([...w,Hn(K)]);},[M]),O=Ze__namespace.useCallback(()=>{M(A.slice(0,-1));},[A,M]),Q=Ze__namespace.useCallback((K,w)=>{let v=Wg(E,A);if(s?.(w,v),!!w.children?.length&&!(w.href&&w.pushOnSelect===false)){let I=F[F.length-1]?.path??[];B(w,I);}w.href||K.preventDefault();},[E,A,s,B,F]),H=Ze__namespace.useCallback(K=>{let w=F[F.length-1]?.path??[];B(K,w);},[B,F]),U=Ze__namespace.useCallback(K=>o?K.href===o||K.id===o:false,[o]),W=b?"sticky top-0 h-[100dvh]":"",G={...h!=null?{width:h}:{},...hN(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",N&&"edges-stack-nav--animated",W,T),style:G,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:F.map((K,w)=>{let v=K.path.length,L=w===F.length-1,I=w<F.length-1,X=v===0?"__root__":K.path.join("/");return jsxRuntime.jsx(xN,{pane:K,parentPath:K.path.slice(0,-1),depth:v,isTop:L,isAbove:I,rootLabel:y,LinkComponent:c,renderRow:l,isActive:U,onSelect:Q,onDrillIn:H,onBack:O,animated:N},X)})}),p?jsxRuntime.jsx("div",{className:"edges-stack-nav__footer",children:p}):null]})}function xN({pane:e,depth:t,isTop:r,isAbove:o,rootLabel:n,LinkComponent:a,renderRow:i,isActive:s,onSelect:c,onDrillIn:l,onBack:d,animated:u}){let m=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",!u&&"edges-stack-nav__pane--instant",m),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:d,"aria-label":`Back from ${e.parent.label}`,children:[jsxRuntime.jsx(yN,{}),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(p=>jsxRuntime.jsx(zg,{item:p,LinkComponent:a,renderRow:i,isActive:s(p),onSelect:c,onDrillIn:l},Hn(p))),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(p=>jsxRuntime.jsx(zg,{item:p,LinkComponent:a,renderRow:i,isActive:s(p),onSelect:c,onDrillIn:l},Hn(p)))}):null]})}function zg({item:e,LinkComponent:t,renderRow:r,isActive:o,onSelect:n,onDrillIn:a}){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 i=!!e.children?.length,s=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:i,select:d=>n(d,e),drillIn:()=>a(e),LinkComponent:t,className:s})});let c=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})]});if(e.href&&i&&e.pushOnSelect===false)return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge(s,"cursor-default p-0"),children:[jsxRuntime.jsx(t,{href:e.href,"aria-label":e.ariaLabel,className:"flex min-w-0 flex-1 items-center gap-2 rounded-sm px-3 py-2 text-inherit no-underline","aria-current":o?"page":void 0,onClick:d=>n(d,e),children:c}),jsxRuntime.jsxs("span",{className:"flex flex-shrink-0 items-center gap-2 pr-2 text-text-secondary",children:[e.trailing,jsxRuntime.jsx("button",{type:"button",className:"edges-stack-nav__drill-in inline-flex cursor-pointer items-center rounded-sm border-0 bg-transparent p-1 text-inherit","aria-label":`Open ${e.label}`,onClick:()=>a(e),children:jsxRuntime.jsx(Hg,{})})]})]});let l=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[c,jsxRuntime.jsxs("span",{className:"flex flex-shrink-0 items-center gap-2 text-text-secondary",children:[e.trailing,i?jsxRuntime.jsx(Hg,{}):null]})]});return e.href?jsxRuntime.jsx(t,{href:e.href,"aria-label":e.ariaLabel,className:s,"aria-current":o?"page":void 0,onClick:d=>n(d,e),children:l}):jsxRuntime.jsx("button",{type:"button",className:s,"aria-label":e.ariaLabel,onClick:d=>{n(d,e);},children:l})}function Hg(){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 yN(){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 vN(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:c,className:l="",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 ${l}`,children:jsxRuntime.jsxs("div",{className:"relative flex h-full items-center",children:[jsxRuntime.jsx("div",{className:"flex items-center h-full flex-shrink-0",children:r&&jsxRuntime.jsx("label",{htmlFor:d,className:"md:hidden cursor-pointer","aria-label":"Open menu",children:jsxRuntime.jsx("div",{className:"flex h-full w-14 flex-col items-center justify-center border-r hover:bg-background-hover transition-colors",children:jsxRuntime.jsx(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()}),c,o&&jsxRuntime.jsx("div",{className:"flex items-center",children:o})]})]})})};function Kg({sideNav:e,stackNav:t,topNav:r,children:o,contentPaddingX:n,contentPaddingY:a,showSidebarBorder:i=true,mainClassName:s,enableJsEnhancements:c=false}){let l="app-mobile-menu",d="app-sidebar-collapse";return Ze.useEffect(()=>{if(!c)return;let u=document.getElementById(d),m=document.getElementById(l),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 N=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 D=g.contains(E.target);if(y&&!D&&(y=false),y)return;E.clientX<=N||D?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);}},[c,l,d]),jsxRuntime.jsxs("div",{className:"min-h-[100dvh] bg-background text-text-primary relative","data-app-shell":"",children:[jsxRuntime.jsx("input",{type:"checkbox",id:d,className:"sr-only peer/sidebar","aria-hidden":"true"}),jsxRuntime.jsx("a",{href:"#app-content",className:"sr-only focus:not-sr-only focus:absolute focus:left-4 focus:top-4 z-50 rounded px-3 py-2 bg-background-surface shadow",children:"Skip to content"}),jsxRuntime.jsx(Bi,{...r,mobileMenuId:l,className:["sticky top-0 flex-shrink-0 z-30 md:hidden",r?.className].filter(Boolean).join(" ")}),jsxRuntime.jsxs("div",{className:"flex w-full h-[calc(100dvh-60px)] md:h-[100dvh] relative overflow-hidden",children:[jsxRuntime.jsx("input",{type:"checkbox",id:l,className:"sr-only peer/mobile","aria-hidden":"true"}),jsxRuntime.jsx("label",{htmlFor:l,className:"fixed inset-0 bg-background-modal z-[55] opacity-0 pointer-events-none peer-checked/mobile:opacity-100 peer-checked/mobile:pointer-events-auto transition-opacity md:hidden","aria-label":"Close menu"}),jsxRuntime.jsx("div",{"aria-hidden":"true","data-peek-zone":"",className:"hidden md:block fixed left-0 top-0 bottom-0 w-4 z-[70] pointer-events-none"}),jsxRuntime.jsx("label",{htmlFor:d,"data-expand-rail":"",className:"hidden fixed left-3 top-3 z-[75] items-center justify-center w-9 h-9 rounded-md bg-background-surface border border-border-default shadow-sm hover:bg-background-hover cursor-pointer transition-all duration-200","aria-label":"Expand sidebar",children:jsxRuntime.jsx(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:l,sidebarCollapseId:d,sticky:false,width:null,className:["h-full !border-r-0",t.className].filter(Boolean).join(" ")}):jsxRuntime.jsx(ul,{...e,mobileMenuId:l,sidebarCollapseId:d,className:"h-full"})}),jsxRuntime.jsxs("div",{className:"flex-1 flex flex-col h-full overflow-hidden",children:[jsxRuntime.jsx("div",{className:"sticky top-0 flex-shrink-0 hidden md:block z-20","data-top-nav-wrapper":"",children:jsxRuntime.jsx(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'),_e=require('react'),tailwindMerge=require('tailwind-merge'),jsxRuntime=require('react/jsx-runtime'),hf=require('@phosphor-icons/react'),luxon=require('luxon'),reactVirtual=require('@tanstack/react-virtual'),dN=require('@phosphor-icons/react/ssr'),reactAria=require('react-aria'),reactStately=require('react-stately'),lucideReact=require('lucide-react'),framerMotion=require('framer-motion'),ck=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'),MP=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'),DD=require('react-map-gl'),server=require('react-dom/server'),rI=require('@tiptap/extension-link'),react=require('@tiptap/react'),menus=require('@tiptap/react/menus'),iI=require('@tiptap/starter-kit'),w5=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 _e__namespace=/*#__PURE__*/_interopNamespace(_e);var hf__namespace=/*#__PURE__*/_interopNamespace(hf);var dN__namespace=/*#__PURE__*/_interopNamespace(dN);var ck__default=/*#__PURE__*/_interopDefault(ck);var MP__default=/*#__PURE__*/_interopDefault(MP);var DD__default=/*#__PURE__*/_interopDefault(DD);var rI__default=/*#__PURE__*/_interopDefault(rI);var iI__default=/*#__PURE__*/_interopDefault(iI);var w5__default=/*#__PURE__*/_interopDefault(w5);var L0=Object.create;var Fd=Object.defineProperty;var D0=Object.getOwnPropertyDescriptor;var A0=Object.getOwnPropertyNames;var I0=Object.getPrototypeOf,F0=Object.prototype.hasOwnProperty;var B0=(e,t,r)=>t in e?Fd(e,t,{enumerable:true,configurable:true,writable:true,value:r}):e[t]=r;var V0=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var O0=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of A0(t))!F0.call(e,n)&&n!==r&&Fd(e,n,{get:()=>t[n],enumerable:!(o=D0(t,n))||o.enumerable});return e};var mf=(e,t,r)=>(r=e!=null?L0(I0(e)):{},O0(Fd(r,"default",{value:e,enumerable:true}),e));var Ti=(e,t,r)=>B0(e,typeof t!="symbol"?t+"":t,r);var hp=V0((gp,bp)=>{(function(e,t){typeof define=="function"&&define.amd?define([],t):typeof gp<"u"?t():(t(),e.FileSaver={});})(gp,function(){function e(s,d){return typeof d>"u"?d={autoBom:false}:typeof d!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),d={autoBom:!d}),d.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,d,l){var c=new XMLHttpRequest;c.open("GET",s),c.responseType="blob",c.onload=function(){i(c.response,d,l);},c.onerror=function(){console.error("could not download file");},c.send();}function r(s){var d=new XMLHttpRequest;d.open("HEAD",s,false);try{d.send();}catch{}return 200<=d.status&&299>=d.status}function o(s){try{s.dispatchEvent(new MouseEvent("click"));}catch{var d=document.createEvent("MouseEvents");d.initMouseEvent("click",true,true,window,0,0,0,80,20,false,false,false,false,0,null),s.dispatchEvent(d);}}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,d,l){var c=n.URL||n.webkitURL,u=document.createElement("a");d=d||s.name||"download",u.download=d,u.rel="noopener",typeof s=="string"?(u.href=s,u.origin===location.origin?o(u):r(u.href)?t(s,d,l):o(u,u.target="_blank")):(u.href=c.createObjectURL(s),setTimeout(function(){c.revokeObjectURL(u.href);},4e4),setTimeout(function(){o(u);},0));}:"msSaveOrOpenBlob"in navigator?function(s,d,l){if(d=d||s.name||"download",typeof s!="string")navigator.msSaveOrOpenBlob(e(s,l),d);else if(r(s))t(s,d,l);else {var c=document.createElement("a");c.href=s,c.target="_blank",setTimeout(function(){o(c);});}}:function(s,d,l,c){if(c=c||open("","_blank"),c&&(c.document.title=c.document.body.innerText="downloading..."),typeof s=="string")return t(s,d,l);var u=s.type==="application/octet-stream",m=/constructor/i.test(n.HTMLElement)||n.safari,p=/CriOS\/[\d]+/.test(navigator.userAgent);if((p||u&&m||a)&&typeof FileReader<"u"){var g=new FileReader;g.onloadend=function(){var b=g.result;b=p?b:b.replace(/^data:[^;]*;/,"data:attachment/file;"),c?c.location.href=b:location=b,c=null;},g.readAsDataURL(s);}else {var f=n.URL||n.webkitURL,h=f.createObjectURL(s);c?c.location=h:location.href=h,c=null,setTimeout(function(){f.revokeObjectURL(h);},4e4);}});n.saveAs=i.saveAs=i,typeof bp<"u"&&(bp.exports=i);});});function cr(e,t=false){let[r,o]=_e.useState(t);return _e.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 Fn={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"};function dr(e="base"){let t=cr(`(min-width: ${Fn.sm})`,e!=="base"),r=cr(`(min-width: ${Fn.md})`,["md","lg","xl","2xl"].includes(e)),o=cr(`(min-width: ${Fn.lg})`,["lg","xl","2xl"].includes(e)),n=cr(`(min-width: ${Fn.xl})`,["xl","2xl"].includes(e)),a=cr(`(min-width: ${Fn["2xl"]})`,e==="2xl"),i=!r,s=r,d="base";return a?d="2xl":n?d="xl":o?d="lg":r?d="md":t&&(d="sm"),{current:d,isSm:t,isMd:r,isLg:o,isXl:n,is2Xl:a,isMobile:i,isDesktop:s}}function ft(e,t){let r=_e.forwardRef(({size:o=24,color:n="currentColor",className:a,mirrored:i,alt:s,...d},l)=>{let c=!!s||"aria-label"in d;return jsxRuntime.jsx("svg",{ref:l,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 256 256",fill:n,className:a,transform:i?"scale(-1, 1)":void 0,"aria-hidden":c?void 0:true,role:c?"img":void 0,"aria-label":s,...d,children:t})});return r.displayName=e,r}var Ys=()=>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"})]}),ff=()=>jsxRuntime.jsx("path",{d:"M166 120 88 70",fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round"}),gf=()=>jsxRuntime.jsx("path",{d:"M162 122 92 128",fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round"}),bf=()=>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"})]}),U0=ft("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"})]})),K0=ft("TextureFuse",jsxRuntime.jsx("path",{d:"M20 128h72q18 -84 36 0q18 84 36 0h72",fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round",strokeLinejoin:"round"})),Y0=ft("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"})]})),J0=ft("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"})]})),X0=ft("TextureCapacitor",jsxRuntime.jsx(jsxRuntime.Fragment,{children:jsxRuntime.jsx("path",{d:"M4 128h106M146 128h106M110 72v112M146 72v112",fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round"})})),j0=ft("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"})]})),q0=ft("TextureSwitch",jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Ys,{}),jsxRuntime.jsx(ff,{})]})),Q0=ft("TextureSwitchClosed",jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Ys,{}),jsxRuntime.jsx(gf,{})]})),Z0=ft("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"})]})),_0=ft("TextureSectionalizerOpen",jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Ys,{}),jsxRuntime.jsx(ff,{}),jsxRuntime.jsx(bf,{})]})),$0=ft("TextureSectionalizerClosed",jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Ys,{}),jsxRuntime.jsx(gf,{}),jsxRuntime.jsx(bf,{})]})),eS=ft("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"})]})),Da={1:[128],2:[110,146],3:[92,128,164]},Bd=e=>jsxRuntime.jsx("path",{d:`M24 ${e}h208`,fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round"},e),Vd=e=>jsxRuntime.jsx("path",{d:`M24 ${e}h208`,fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round",pathLength:100,strokeDasharray:"20 20"},e),tS=ft("TextureSinglePhaseOverheadLine",jsxRuntime.jsx(jsxRuntime.Fragment,{children:Da[1].map(Bd)})),rS=ft("TextureTwoPhaseOverheadLine",jsxRuntime.jsx(jsxRuntime.Fragment,{children:Da[2].map(Bd)})),oS=ft("TextureThreePhaseOverheadLine",jsxRuntime.jsx(jsxRuntime.Fragment,{children:Da[3].map(Bd)})),nS=ft("TextureSinglePhaseUndergroundLine",jsxRuntime.jsx(jsxRuntime.Fragment,{children:Da[1].map(Vd)})),aS=ft("TextureTwoPhaseUndergroundLine",jsxRuntime.jsx(jsxRuntime.Fragment,{children:Da[2].map(Vd)})),iS=ft("TextureThreePhaseUndergroundLine",jsxRuntime.jsx(jsxRuntime.Fragment,{children:Da[3].map(Vd)})),sS=ft("TextureSupportStructure",jsxRuntime.jsx("circle",{cx:"128",cy:"128",r:"40",fill:"currentColor",stroke:"none"})),Aa={TextureRecloser:U0,TextureFuse:K0,TextureBreaker:Y0,TextureSource:J0,TextureCapacitor:X0,TextureRegulator:j0,TextureSwitch:q0,TextureSwitchClosed:Q0,TextureOpenPoint:Z0,TextureSectionalizerOpen:_0,TextureSectionalizerClosed:$0,TextureTransformer:eS,TextureSinglePhaseOverheadLine:tS,TextureTwoPhaseOverheadLine:rS,TextureThreePhaseOverheadLine:oS,TextureSinglePhaseUndergroundLine:nS,TextureTwoPhaseUndergroundLine:aS,TextureThreePhaseUndergroundLine:iS,TextureSupportStructure:sS};if(process.env.NODE_ENV==="development")for(let e of Object.keys(Aa))e in hf__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 Ia={xs:16,sm:20,md:24,lg:32,xl:40,"2xl":48},z=_e.memo(({name:e,size:t="md",color:r,weight:o="regular",className:n,ariaLabel:a,...i})=>{let s=Aa[e]??hf__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 d=typeof t=="string"&&t in Ia?Ia[t]:t,l=tailwindMerge.twMerge("inline-block flex-shrink-0",!r&&"text-current",n);return jsxRuntime.jsx(s,{...i,size:d,color:r,weight:o,className:l,"aria-label":a||`${e} icon`,"data-testid":`icon-${e}`})});z.displayName="Icon";var lS=_e.memo(({variant:e="subtle",shape:t="square",containerSize:r,containerClassName:o,size:n="md",className:a,name:i,color:s,weight:d,ariaLabel:l,ref:c,...u})=>{let m=typeof n=="string"&&n in Ia?Ia[n]:n,p=r?typeof r=="string"&&r in Ia?Ia[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(z,{...u,name:i,size:n,color:s,weight:d,className:a,ariaLabel:l})})});lS.displayName="IconWithContainer";function Pr({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 yS({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 d=reactAriaComponents.useSlottedContext(reactAriaComponents.PopoverContext)?.trigger==="SubmenuTrigger",l=t?12:8;l=d?l-6:l;let c=jsxRuntime.jsxs(reactAriaComponents.Popover,{offset:l,...i,className:reactAriaComponents.composeRenderProps(o,(u,m)=>yS({...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(Pr,{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:c})}):c}function Js(e=true){let[t,r]=_e.useState(null);return _e.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 NS={"--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 vf(e){let t={...e};for(let[r,o]of Object.entries(NS))if(e[r])for(let n of o)e[n]||(t[n]=e[r]);return t}function Cf(e){return e.replace(/[{}<>]/g,"")}function Sf(e){return Object.entries(e).map(([t,r])=>`${Cf(t)}: ${Cf(r)};`).join(" ")}function Nf({variables:e,darkVariables:t,children:r}){let n=_e.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?vf(e):null,d=i?vf(t):null,l=s?`[data-brand-scope="${n}"] { ${Sf(s)} }`:"",c=d?`.theme-dark [data-brand-scope="${n}"] { ${Sf(d)} }`:"",u=[l,c].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 Fa=new Map,kS=8;function PS(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 Ot=(e,t="#000000")=>typeof window>"u"?t:Tf(e,t,0);function Tf(e,t,r){if(r>kS)return t;let o=e.startsWith("var(")?PS(e):e.startsWith("--")?e:`--${e}`;if(!e.startsWith("--")&&!e.startsWith("var(")&&!o.startsWith("--color-")&&(o=`--color-${o.slice(2)}`),Fa.has(o))return Fa.get(o);try{let n=document.body||document.documentElement,i=getComputedStyle(n).getPropertyValue(o).trim();if(i){if(i.startsWith("var(")){let l=Tf(i,t,r+1);return Fa.set(o,l),l}return Fa.set(o,i),i}let s=document.createElement("div");s.style.color=`var(${o})`,document.body.appendChild(s);let d=getComputedStyle(s).color;return document.body.removeChild(s),d&&d!=="rgb(0, 0, 0)"?(Fa.set(o,d),d):t}catch(n){return console.warn(`Failed to resolve color for ${e}:`,n),t}}var Xs=()=>{Fa.clear();},Oo=()=>{let e=[];for(let t=1;t<=12;t++){let r=Ot(`--color-viz-categorical-${t}`,"");r&&e.push(r);}return e.length===0?js():e},js=()=>["#5424db","#d92361","#e86a00","#5d89ff","#9a47e2","#f24cb8","#0ba286","#9c28af","#036e45","#52a119","#ff513d","#046691"],Pi=()=>Ot("--color-viz-default","#444ae1"),RS=(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},kf=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},ES=e=>kf(e)?Ot("--color-text-primary","#333333"):Ot("--color-text-inverse","#ffffff"),Pf=(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()},Ri=e=>{let t=Oo(),r={};return e.forEach((o,n)=>{r[o]=t[n%t.length];}),r};var Hd=(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)},Gd=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]},Rf=(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},Ei=(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=Ot(i);n.push(s);}return n},Mi=(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=Ot(i);n.push(s);}return n},Li=(e,t,r,o="viridis")=>{let n=Ei(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]},Di=(e,t,r,o,n="redYellowBlue")=>{let a=Mi(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 d=(e-t)/(o-t)*i,l=Math.floor(d);return a[Math.min(l,i)]}else {let s=(e-o)/(r-o),d=i+s*(a.length-1-i),l=Math.floor(d);return a[Math.min(l,a.length-1)]}};var Wd=_e.createContext({mode:"system",colorMode:"light",isDarkTheme:false,toggleTheme:()=>{}}),Qt=()=>_e.useContext(Wd);function IS(){return typeof window>"u"?"light":window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Lf(){if(typeof window>"u")return "system";let e=localStorage.getItem("colorModePreference");return e==="light"||e==="dark"||e==="system"?e:"system"}function Df(e){return e==="system"?IS():e}var If=({children:e})=>{let[t,r]=_e.useState(Lf),[o,n]=_e.useState(()=>Df(Lf())),a=o==="dark",i=_e.useCallback(d=>{d==="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")),Xs();},[]);_e.useEffect(()=>{Xs();let d=Df(t);if(n(d),i(d),t==="system"){let l=window.matchMedia("(prefers-color-scheme: dark)"),c=u=>{let m=u.matches?"dark":"light";n(m),i(m);};return l.addEventListener("change",c),()=>{l.removeEventListener("change",c);}}},[t,i]);let s=_e.useCallback(()=>{r(d=>{let l=d==="system"?"light":d==="light"?"dark":"system";return localStorage.setItem("colorModePreference",l),l});},[]);return jsxRuntime.jsx(Wd.Provider,{value:{mode:t,colorMode:o,isDarkTheme:a,toggleTheme:s},children:e})};function ur(...e){return e.filter(Boolean).join(" ")}var Ud=class{constructor(){Ti(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();}},le=new Ud;var rn=(e,t="Yes",r="No")=>e==null?null:e?t:r,FS=e=>rn(e,"Enabled","Disabled"),BS=e=>rn(e,"On","Off"),VS=e=>rn(e,"Active","Inactive"),OS=e=>rn(e,"True","False"),zS=e=>rn(e,"\u2713","\u2717"),on=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},Ff=(e,t)=>{if(t.hideWhenNull&&e==null)return null;if(e==null)return t.nullText??null;let r=on(e);return r===null?t.nullText??null:rn(r,t.trueText??"Yes",t.falseText??"No")};le.register("boolean",(e,t,r)=>{let o=on(e);return o!==null?rn(o,typeof t=="string"?t:"Yes",typeof r=="string"?r:"No"):null});le.register("yesNo",e=>{let t=on(e);return t!==null?rn(t,"Yes","No"):null});le.register("enabledDisabled",e=>{let t=on(e);return t!==null?FS(t):null});le.register("onOff",e=>{let t=on(e);return t!==null?BS(t):null});le.register("activeInactive",e=>{let t=on(e);return t!==null?VS(t):null});le.register("trueFalse",e=>{let t=on(e);return t!==null?OS(t):null});le.register("checkmark",e=>{let t=on(e);return t!==null?zS(t):null});var he=e=>e==null,Bf=(e,t=0)=>he(e)?null:`${e.toFixed(t)}%`,Vf=(e,t=0)=>Bf(e,t)??"\u2014",HS=e=>he(e)?null:Math.round(e).toString(),GS=(e,t=1)=>he(e)?null:e.toFixed(t),WS=(e,t,r=true)=>{if(he(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)},US=(e,t="short")=>he(e)?null:new Intl.NumberFormat("en-US",{notation:"compact",compactDisplay:t}).format(e),KS=(e,t=2)=>he(e)?null:e.toExponential(t),Of=(e,t="USD",r)=>{if(he(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)},zf=(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)},Hf=(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:Of(r,t.currency,t)};le.register("percentage",(e,t)=>typeof e=="number"?Bf(e,typeof t=="number"?t:0):null);le.register("integer",e=>typeof e=="number"?HS(e):null);le.register("float",(e,t)=>typeof e=="number"?GS(e,typeof t=="number"?t:1):null);le.register("number",(e,t,r)=>{let o=typeof e=="string"?parseFloat(e):Number(e);return isNaN(o)?null:WS(o,typeof t=="number"?t:void 0,typeof r=="boolean"?r:true)});le.register("compact",(e,t)=>typeof e=="number"?US(e,t==="long"?"long":"short"):null);le.register("scientific",(e,t)=>typeof e=="number"?KS(e,typeof t=="number"?t:2):null);le.register("currency",(e,t,r)=>typeof e=="number"?Of(e,typeof t=="string"?t:"USD",typeof r=="object"&&r!==null?r:{}):null);function O4(e,t=1){return he(e)?null:Math.abs(e)>=1e3?`${(e/1e3).toFixed(t)} MWh`:`${e.toFixed(t)} kWh`}function z4(e,t=1){return he(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=Rr(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=Rr(e,{type:"date"});return jsxRuntime.jsx("time",{dateTime:e.toISOString(),title:e.toISOString(),children:n})}if(typeof e=="number")return Rr(e,{type:"number"});if(typeof e=="boolean")return Rr(e,{type:"boolean"})}return String(e)}function U4(e,t,r){return _e__namespace.default.useCallback(o=>fo({value:o,formatter:e,emptyClassName:t,emptyText:r}),[e,t,r])}var Kd=(e,t=0)=>{if(he(e))return null;let r=e*1e3;return t===0?`${Math.round(r)} mA`:`${r.toFixed(t)} mA`},Qs=(e,t=1)=>he(e)?null:`${e.toFixed(t)} A`,Yd=(e,t=2)=>he(e)?null:`${(e/1e3).toFixed(t)} kA`,JS=(e,t)=>{if(he(e))return null;let r=Math.abs(e);return r>=1e3?Yd(e,t??2):r<1?Kd(e,t??0):Qs(e,t??1)},Jd=(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 Yd(r,o??2);case "mA":return Kd(r,o??0);case "A":return Qs(r,o??1)}return t.autoScale!==false?JS(r,o):Qs(r,o??1)};le.register("current",Jd);var j4=Kd,q4=Qs,Q4=Yd;var Bn=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},XS=(e,t=false,r)=>{if(!e)return null;let o=Bn(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)},Zs=e=>{if(!e)return null;let t=Bn(e);return t?t.toRelative():"Invalid Date"},jS=(e,t)=>{if(!e)return null;let r=Bn(e);return r?(t?r.setZone(t):r).toLocaleString(luxon.DateTime.DATETIME_MED_WITH_WEEKDAY):"Invalid Date"},qS=e=>{if(!e)return null;let t=Bn(e);return t?t.toISO():null},QS=(e,t,r)=>{if(!e)return null;let o=Bn(e);return o?(r?o.setZone(r):o).toFormat(t):"Invalid Date"},eF=e=>{let t=Bn(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},Gf=(e,t)=>{if(t.hideWhenNull&&e==null)return null;if(e==null)return t.nullText??null;let r=Bn(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)};le.register("date",(e,t,r)=>XS(e,typeof t=="boolean"?t:false,typeof r=="string"?r:void 0));le.register("relativeTime",e=>Zs(e));le.register("fullDateTime",(e,t)=>jS(e,typeof t=="string"?t:void 0));le.register("isoString",e=>qS(e));le.register("customDateFormat",(e,t,r)=>typeof t=="string"?QS(e,t,typeof r=="string"?r:void 0):null);var Xd=(e,t=1)=>he(e)?null:`${e.toFixed(t)} m`,ZS=(e,t=1)=>he(e)?null:`${(e*100).toFixed(t)} cm`,_S=(e,t=0)=>he(e)?null:`${(e*1e3).toFixed(t)} mm`,jd=(e,t=1)=>he(e)?null:`${(e/1e3).toFixed(t)} km`,qd=(e,t=0)=>he(e)?null:`${e.toFixed(t)} ft`,$S=(e,t=1)=>he(e)?null:`${e.toFixed(t)} in`,Qd=(e,t=1)=>he(e)?null:`${e.toFixed(t)} mi`,Zd=(e,t=0)=>he(e)?null:`${e.toFixed(t)} yd`,nF=(e,t=1)=>he(e)?null:`${e.toFixed(t)} nm`,aF=e=>e*3.28084,iF=e=>e/3.28084,sF=e=>e*1.60934,lF=e=>e/1.60934,cF=e=>e/5280,Wf=e=>e*5280,dF=e=>e/1609.34,uF=e=>e*1609.34,pF=e=>e*.9144,mF=e=>e/.9144,fF=e=>e*2.54,gF=e=>e/2.54,Uf=(e,t=false,r=1)=>{if(he(e))return null;let o=Math.abs(e);return t?o>=1e3?jd(e,r):o<.01?_S(e,0):o<1?ZS(e,r):Xd(e,r):o<.01?qd(Wf(e),0):o<.1?Zd(Wf(e)/3,0):Qd(e,r)},Kf=(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 Uf(r,n,o)}switch(t.unit){case "km":return jd(r,o);case "ft":return qd(r,o);case "mi":return Qd(r,o);case "yd":return Zd(r,o);default:return Xd(r,o)}};le.register("miles",(e,t)=>typeof e=="number"?Qd(e,typeof t=="number"?t:1):null);le.register("kilometers",(e,t)=>typeof e=="number"?jd(e,typeof t=="number"?t:1):null);le.register("meters",(e,t)=>typeof e=="number"?Xd(e,typeof t=="number"?t:1):null);le.register("feet",(e,t)=>typeof e=="number"?qd(e,typeof t=="number"?t:0):null);le.register("yards",(e,t)=>typeof e=="number"?Zd(e,typeof t=="number"?t:0):null);le.register("inches",(e,t)=>typeof e=="number"?$S(e,typeof t=="number"?t:1):null);le.register("autoScaleDistance",(e,t,r)=>typeof e=="number"?Uf(e,typeof t=="boolean"?t:false,typeof r=="number"?r:1):null);var _d=(e,t=1)=>he(e)?null:`${e.toFixed(t)} Wh`,$d=(e,t=1)=>he(e)?null:`${(e/1e3).toFixed(t)} kWh`,Yf=(e,t=1)=>he(e)?null:`${(e/1e6).toFixed(t)} MWh`,Jf=(e,t=1)=>he(e)?null:`${(e/1e9).toFixed(t)} GWh`,eu=e=>{let t=Math.abs(e);return t>=1e9?"GWh":t>=1e6?"MWh":t>=1e3?"kWh":"Wh"},Xf=(e,t=1)=>{if(he(e))return null;switch(eu(e)){case "GWh":return Jf(e,t);case "MWh":return Yf(e,t);case "kWh":return $d(e,t);default:return _d(e,t)}},tu={Wh:1,kWh:1e3,MWh:1e6,GWh:1e9},ru=(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*tu[t.sourceUnit]:r,n=t.decimals??1;if(t.unit)switch(t.unit){case "GWh":return Jf(o,n);case "MWh":return Yf(o,n);case "kWh":return $d(o,n);case "Wh":return _d(o,n)}return t.autoScale!==false?Xf(o,n):_d(o,n)};le.register("kWh",e=>typeof e=="number"?$d(e):null);le.register("autoScaleEnergy",(e,t)=>typeof e=="number"?Xf(e,typeof t=="number"?t:1):null);le.register("energy",ru);var _s=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},ou=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():_s(e)},Ba=e=>e?e.startsWith("+")||e.length>11?ou(e):_s(e):null,jf=(e,t)=>{if(t.hideWhenNull&&e==null)return null;if(e==null)return t.nullText??null;let r=String(e);if(t.international)return ou(r);switch(t.country){case "US":case "CA":return _s(r);default:return Ba(r)}};le.register("phoneNumber",e=>typeof e=="string"?Ba(e):null);le.register("usPhone",e=>typeof e=="string"?_s(e):null);le.register("internationalPhone",e=>typeof e=="string"?ou(e):null);var $s=(e,t=0)=>he(e)?null:t===0?`${Math.round(e)} W`:`${e.toFixed(t)} W`,nu=(e,t=1)=>he(e)?null:`${(e/1e3).toFixed(t)} kW`,au=(e,t=1)=>he(e)?null:`${(e/1e6).toFixed(t)} MW`,iu=(e,t=2)=>he(e)?null:`${(e/1e9).toFixed(t)} GW`,ew=(e,t)=>{if(he(e))return null;let r=Math.abs(e);return r>=1e9?iu(e,t??2):r>=1e6?au(e,t??1):r>=1e3?nu(e,t??1):$s(e,t??0)},su=(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 iu(r,o??2);case "MW":return au(r,o??1);case "kW":return nu(r,o??1);case "W":return $s(r,o??0)}return t.autoScale!==false?ew(r,o):$s(r,o??0)};le.register("power",su);var NF=$s,TF=nu,kF=au,PF=iu;var lu=(e,t=1)=>he(e)?null:`${(e*1e3).toFixed(t)} m\u03A9`,el=(e,t=1)=>he(e)?null:`${e.toFixed(t)} \u03A9`,qf=(e,t=1)=>he(e)?null:`${(e/1e3).toFixed(t)} k\u03A9`,Qf=(e,t=2)=>he(e)?null:`${(e/1e6).toFixed(t)} M\u03A9`,tw=(e,t)=>{if(he(e))return null;let r=Math.abs(e);return r>=1e6?Qf(e,t??2):r>=1e3?qf(e,t??1):r<1?lu(e,t??1):el(e,t??1)},cu=(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 Qf(r,o??2);case "k\u03A9":return qf(r,o??1);case "m\u03A9":return lu(r,o??1);case "\u03A9":return el(r,o??1)}return t.autoScale!==false?tw(r,o):el(r,o??1)};le.register("resistance",cu);le.register("ohms",e=>typeof e=="number"?el(e):null);le.register("milliohms",e=>typeof e=="number"?lu(e):null);var Zf=e=>{switch(e){case "FAHRENHEIT":return "F";case "CELSIUS":return "C";case "KELVIN":return "K";default:return "F"}},_f=(e,t=0)=>he(e)?null:`${e.toFixed(t)}\xB0F`,$f=(e,t=true,r=0)=>he(e)?null:`${(t?(e-32)*(5/9):e).toFixed(r)}\xB0C`,eg=(e,t=true,r=0)=>he(e)?null:`${(t?(e-32)*(5/9)+273.15:e+273.15).toFixed(r)}K`,rw=e=>e*9/5+32,ow=e=>(e-32)*(5/9),IF=e=>e+273.15,nw=e=>e-273.15,FF=e=>ow(e)+273.15,BF=e=>rw(nw(e)),tg=(e,t="F",r=0)=>{if(he(e))return null;switch(typeof t=="string"&&t.length>1?Zf(t):t){case "C":return $f(e,true,r);case "K":return eg(e,true,r);default:return _f(e,r)}},rg=(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?Zf(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 tg(r,n,o)};le.register("temperature",(e,t,r)=>typeof e=="number"?tg(e,typeof t=="string"?t:"F",typeof r=="number"?r:0):null);le.register("fahrenheit",(e,t)=>typeof e=="number"?_f(e,typeof t=="number"?t:0):null);le.register("celsius",(e,t,r)=>typeof e=="number"?$f(e,typeof t=="boolean"?t:true,typeof r=="number"?r:0):null);le.register("kelvin",(e,t,r)=>typeof e=="number"?eg(e,typeof t=="boolean"?t:true,typeof r=="number"?r:0):null);var aw=(e,t)=>!!(t.hideWhenNull&&e==null||t.hideWhenZero&&e===0),og=e=>e?.toUpperCase()??"",ng=e=>e?.toLowerCase()??"",ag=e=>e?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():"",ig=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(" ")},sg=e=>e?e.split(/\s+/).map(t=>t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()).join(" "):"",lg=e=>e?e.charAt(0).toUpperCase()+e.slice(1):"",cg=e=>e?e.replace(/([A-Z])/g," $1").replace(/^./,t=>t.toUpperCase()).trim():"",dg=e=>e?e.toLowerCase().split("_").map(t=>lg(t)).join(" "):"",iw=e=>e?e.includes("_")?dg(e):e.toUpperCase()===e?lg(e.toLowerCase()):cg(e):"",Va=(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)}`},tl=(e,t=8)=>e?e.length<=t?e:`...${e.slice(-t)}`:"",rl=(e,t=16,r="...")=>e?e.length<=t?e:e.slice(0,t)+r:"",sw=e=>{if(!e)return "";let t=e.toString(),r=t.slice(-4),o=t.length-4;return o>0?"*".repeat(o)+r:t},ug=(e,t)=>{if(aw(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=og(r);break;case "lowercase":r=ng(r);break;case "capitalize":r=sg(r);break;case "titleCase":r=ig(r);break;case "sentenceCase":r=ag(r);break}}),t.truncate){let{length:o,position:n,ellipsis:a="..."}=t.truncate;switch(n){case "start":r=tl(r,o);break;case "middle":r=Va(r,o);break;case "end":r=rl(r,o,a);break}}return r};le.register("uppercase",e=>og(String(e)));le.register("lowercase",e=>ng(String(e)));le.register("sentenceCase",e=>ag(String(e)));le.register("titleCase",e=>ig(String(e)));le.register("capitalize",e=>sg(String(e)));le.register("camelCaseToWords",e=>cg(String(e)));le.register("snakeCaseToWords",e=>dg(String(e)));le.register("enumToSentenceCase",e=>iw(String(e)));le.register("truncateMiddle",(e,t)=>Va(String(e),typeof t=="number"?t:16));le.register("truncateStart",(e,t)=>tl(String(e),typeof t=="number"?t:8));le.register("truncateEnd",(e,t,r)=>rl(String(e),typeof t=="number"?t:16,typeof r=="string"?r:"..."));le.register("secret",e=>sw(String(e)));var du=(e,t=0)=>{if(he(e))return null;let r=e*1e3;return t===0?`${Math.round(r)} mV`:`${r.toFixed(t)} mV`},ol=(e,t=0)=>he(e)?null:t===0?`${Math.round(e)} V`:`${e.toFixed(t)} V`,uu=(e,t=1)=>he(e)?null:`${(e/1e3).toFixed(t)} kV`,lw=(e,t)=>{if(he(e))return null;let r=Math.abs(e);return r>=1e3?uu(e,t??1):r<1?du(e,t??0):ol(e,t??0)},pu=(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 uu(r,o??1);case "mV":return du(r,o??0);case "V":return ol(r,o??0)}return t.autoScale!==false?lw(r,o):ol(r,o??0)};le.register("voltage",pu);var WF=du,UF=ol,KF=uu;var cw=(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:Vf(r,t.decimals??0)},Rr=(e,t)=>{switch(t.type){case "text":return ug(e,t);case "number":return zf(e,t);case "percentage":return cw(e,t);case "currency":return Hf(e,t);case "date":return Gf(e,t);case "boolean":return Ff(e,t);case "energy":return ru(e,t);case "power":return su(e,t);case "voltage":return pu(e,t);case "current":return Jd(e,t);case "resistance":return cu(e,t);case "temperature":return rg(e,t);case "distance":return Kf(e,t);case "phone":return jf(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 Oa={power:"W",energy:"Wh",voltage:"V",current:"A",resistance:"\u03A9",distance:"m"},dw=new Set(["number","power","energy","voltage","current","resistance","temperature","distance","percentage"]);function mu(e){if(!e)return null;switch(e.type){case "percentage":return "%";case "power":return e.unit??Oa.power;case "energy":return e.unit??e.sourceUnit??Oa.energy;case "voltage":return e.unit??Oa.voltage;case "current":return e.unit??Oa.current;case "resistance":return e.unit??Oa.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??Oa.distance;default:return null}}function pg(e,t){if(!dw.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=mu(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=Rr(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=Rr(r,t);return n?String(n):""}return String(r)}var s3=(e,t)=>({type:e,...t});function On(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function Vn(e,t){return On(e)?t.format(e):""}function mg(e){if(!On(e.start)||!On(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=>Vn(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=>Vn(i,a)}var uw=864e5;function fg(e,t){let r=t?.compact??false,o=e<5*uw,n=a=>{let i=a.getHours(),s=i>=12?"PM":"AM";return {displayHour:i%12||12,period:s}};return a=>{if(!On(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 c=a.getDate();if(o){let u=a.toLocaleDateString("en",{weekday:"short"});return r?`${u.charAt(0)}${c}`:`${u} ${c}`}return r?`${a.getMonth()+1}/${c}`:`${a.toLocaleDateString("en",{month:"short"})} ${c}`}let{displayHour:s,period:d}=n(a);if(a.getMinutes()===0&&a.getSeconds()===0)return r?`${s}${d.charAt(0).toLowerCase()}`:`${s} ${d}`;let l=String(a.getMinutes()).padStart(2,"0");return r?`${s}:${l}${d.charAt(0).toLowerCase()}`:`${s}:${l} ${d}`}}function fu(e,t){if(!On(e.start)||!On(e.end))return ()=>"";let r=(e.end.getTime()-e.start.getTime())/(1e3*60*60),o=t?.compact??false,n=l=>c=>On(c)?l(c):"";if(r<=24){if(o)return n(c=>{let u=c.getHours(),m=u>=12?"pm":"am";return `${u%12||12}${m}`});let l=new Intl.DateTimeFormat("en",{hour:"numeric",minute:"2-digit"});return c=>Vn(c,l)}if(r<=48){if(o)return n(c=>{let u=c.getMonth()+1,m=c.getDate(),p=c.getHours(),g=p>=12?"p":"a",f=p%12||12;return `${u}/${m} ${f}${g}`});let l=new Intl.DateTimeFormat("en",{month:"short",day:"numeric",hour:"numeric"});return c=>Vn(c,l)}if(r<=168){if(o)return n(c=>{let u=c.getDate();return `${c.toLocaleDateString("en",{weekday:"short"}).charAt(0)}${u}`});let l=new Intl.DateTimeFormat("en",{weekday:"short",day:"numeric"});return c=>Vn(c,l)}if(r<=720){if(o)return n(c=>{let u=c.getMonth()+1,m=c.getDate();return `${u}/${m}`});let l=new Intl.DateTimeFormat("en",{month:"short",day:"numeric"});return c=>Vn(c,l)}let a=e.start.getFullYear(),i=e.end.getFullYear(),s=a!==i;if(o)return n(l=>{let c=l.getMonth()+1,u=l.getDate(),m=s?`/${l.getFullYear().toString().slice(-2)}`:"";return `${c}/${u}${m}`});let d=new Intl.DateTimeFormat("en",{month:"short",day:"numeric",...s&&{year:"numeric"}});return l=>Vn(l,d)}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 Pt(e,...t){return ur(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 Ye={sm:{text:"text-[length:var(--control-text-sm)]",height:"h-[var(--control-sm-height)]",padding:"px-[var(--control-padding-sm)]",paddingY:"py-[var(--control-gap-sm)]",gap:"gap-[var(--control-gap-sm)]"},md:{text:"text-[length:var(--control-text-md)]",height:"h-[var(--control-md-height)]",padding:"px-[var(--control-padding-md)]",paddingY:"py-[var(--control-gap-md)]",gap:"gap-[var(--control-gap-md)]"},lg:{text:"text-[length:var(--control-text-lg)]",height:"h-[var(--control-lg-height)]",padding:"px-[var(--control-padding-lg)]",paddingY:"py-[var(--control-gap-lg)]",gap:"gap-[var(--control-gap-lg)]"},xl:{text:"text-[length:var(--control-text-xl)]",height:"h-[var(--control-xl-height)]",padding:"px-[var(--control-padding-xl)]",paddingY:"py-[var(--control-gap-xl)]",gap:"gap-[var(--control-gap-xl)]"}};var bw="flex font-medium justify-center items-center gap-2 text-center transition rounded-[var(--control-border-radius)] whitespace-nowrap box-border",hw="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",xw={primary:hw,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"},bg={full:"w-full",default:"w-fit"},yw="opacity-50 cursor-not-allowed pointer-events-none",vw="opacity-100 cursor-pointer",Cw={"top-right":"-right-2 -top-2","top-left":"-left-2 -top-2","bottom-right":"-right-2 -bottom-2","bottom-left":"-left-2 -bottom-2"},Sw={primary:"bg-action-primary text-[color:var(--color-action-primary-text)]",destructive:"bg-feedback-error-border text-text-inverse"};function ww(e){return !e||e==="default"||e==="brand"?"primary":e}function Nw(e){let{variant:t="primary",size:r="md",isDisabled:o,fullWidth:n=false,isLoading:a=false}=e,i=ww(t),s=i==="unstyled"?"":`${bw} ${xw[i]}`;i!=="unstyled"&&(s+=` ${Ye[r].text} ${Ye[r].height} ${Ye[r].padding} ${Ye[r].gap}`),o||a?s+=` ${yw}`:s+=` ${vw}`,n?s+=` ${bg.full}`:s+=` ${bg.default}`;let d=i==="primary"?"focus-visible:outline-action-primary":void 0;return [s,rt(),d].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:d,href:l,className:c,badgeNumber:u,badgeVariant:m="primary",badgePosition:p="top-right",style:g,target:f,rel:h,...b}=e,v=t?jsxRuntime.jsx(z,{name:t,size:i,weight:d}):null,y=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s==="left"&&v,typeof r=="function"?null:r,s==="right"&&v]}),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(z,{name:"CircleNotch",size:i,className:"animate-spin","aria-hidden":"true"})}),jsxRuntime.jsx("div",{className:"invisible","aria-hidden":"true",children:y}),n&&jsxRuntime.jsx("span",{className:"sr-only",role:"status","aria-live":"polite",children:n})]}),T=(u??0)>0,w=tailwindMerge.twMerge(Nw(e),c),N=l?{href:l,target:f,rel:h,...b}:{};if(l){let{onPress:P,onPressStart:E,onPressEnd:D,onPressChange:k,onPressUp:A,onAuxClick:M,onContextMenu:H,onDoubleClick:Y,...V}=b;Object.assign(N,V);}let R=l?jsxRuntime.jsx(reactAriaComponents.Link,{...N,...o&&{"aria-busy":true},style:T?void 0:g,className:w,children:o?C:typeof r=="function"?(function(P){return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s==="left"&&v,r(P),s==="right"&&v]})}):y}):jsxRuntime.jsx(reactAriaComponents.Button,{...b,...o&&{"aria-busy":true},style:T?void 0:g,className:w,children:o?C:typeof r=="function"?(function(P){return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s==="left"&&v,r(P),s==="right"&&v]})}):y});return T?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("relative flex",c),style:g,children:[R,jsxRuntime.jsx("span",{className:`absolute ${Cw[p]} flex h-5 w-5 items-center justify-center rounded-full ${Sw[m]} text-xs font-medium`,"aria-label":`${u} items`,children:u})]}):R}function bu({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 an({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(bu,{action:r,defaultVariant:"destructive"})}),jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[t&&jsxRuntime.jsx(bu,{action:t,defaultVariant:"secondary"}),e&&jsxRuntime.jsx(bu,{action:e,defaultVariant:"primary"})]})]})]})}var Tw={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}},kw={page:"h-16 leading-[62px]"};function mr({tag:e="h1",variant:t="heading",size:r="lg",height:o,className:n="",children:a}){let i=r==="xs"?"sm":r,s=Tw[t][i],d=o?kw[o]:"";return jsxRuntime.jsx(e,{className:ur(s,"text-text-primary",d,n),children:a})}var or=({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(z,{name:"CaretLeft","data-testid":"back-arrow"})}),i||jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[e&&jsxRuntime.jsx(mr,{size:"xs",children:e}),t&&!r&&jsxRuntime.jsx(te,{variant:"icon",onPress:t,"aria-label":"Close dialog",children:jsxRuntime.jsx(z,{name:"X","data-testid":"close-button"})})]})]});var yu=48,Fi=_e.createContext(false);function sn({children:e}){return jsxRuntime.jsx(Fi.Provider,{value:true,children:e})}function yg({children:e}){return jsxRuntime.jsx(Fi.Provider,{value:false,children:e})}function Ga(e,t){let r=_e.useContext(Fi),{ref:o,height:n}=Iw();return {headerRef:o,headerHeight:!r||e||t?n||yu:0}}function vg(){return !_e.useContext(Fi)}function Iw(){let[e,t]=_e.useState(0),r=_e.useRef(null),o=_e.useRef(null),n=_e.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 _e.useEffect(()=>()=>o.current?.disconnect(),[]),{ref:n,height:e}}function Wa({title:e,controls:t,actions:r,containerRef:o,marginLeft:n=0,marginRight:a=0}){let s=!_e.useContext(Fi);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 j=({width:e,height:t,variant:r="rect",animation:o="pulse",gradient:n=false,flex:a=false,stack:i,responsive:s,delay:d=0,adjustAnimationSpeedBasedOnWidth:l=false,ariaLabel:c,className:u,"data-testid":m})=>{let[p,g]=_e.useState(d===0);if(_e.useEffect(()=>{if(d>0){let T=setTimeout(()=>g(true),d);return ()=>clearTimeout(T)}},[d]),!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)]",h=l&&e?(()=>{let T=typeof e=="number"?e:parseFloat(String(e));return isNaN(T)?"":`animation-duration-[${Math.max(.8,T/100)}s]`})():"",b=o==="pulse"?`animate-pulse ${h}`:o==="wave"?`relative overflow-hidden before:absolute before:inset-0 before:bg-gradient-to-r before:from-transparent before:via-[var(--color-skeleton-wave)] before:to-transparent before:animate-wave ${h}`:"",v="rounded-sm";r==="circle"&&(v="rounded-full"),r==="text"&&(v="h-4 w-full rounded-sm");let y=a?"flex-1 min-w-0":"",C=s?Object.entries(s).map(([T,w])=>`${T}:w-[${w}]`).join(" "):"";return i?jsxRuntime.jsx("div",{className:"space-y-2","data-testid":m,children:i.map((T,w)=>jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(f,b,v,y,C,u),style:{width:T,height:t}},w))}):jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(f,b,v,y,C,u),style:{width:e,height:t},role:"presentation","aria-hidden":!c,"aria-label":c??void 0,"data-testid":m})},Sg=({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 Ow={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"},zw="rounded-lg",Cu={square:"aspect-square",video:"aspect-video",wide:"aspect-[2/1]",auto:""},Hw={start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between"};function wg(e){return _e__namespace.default.Children.toArray(e).some(t=>_e__namespace.default.isValidElement(t)?t.type===_e__namespace.default.Fragment?wg(t.props.children):t.type===nl&&!!t.props.title:false)}function $e({variant:e="outlined",className:t,children:r,isLoading:o=false,layout:n="default"}){let a=wg(r)?jsxRuntime.jsx(sn,{children:r}):r;return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-full overflow-hidden",Ow[e],zw,n==="flex"&&"flex flex-col",t),"data-testid":"card",children:o?jsxRuntime.jsx(j,{width:"100%",height:"100%",className:"rounded-none"}):a})}function nl({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(j,{width:120,height:20}),jsxRuntime.jsx(j,{width:24,height:24})]}),t&&jsxRuntime.jsx(j,{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(mr,{tag:"h3",size:"sm",className:"text-text-primary",children:e}):e}),t&&jsxRuntime.jsx("div",{className:Pt("bodySm","text-text-secondary"),children:t})]}),r&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:r})]})})}function Su({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",Cu[r],o),children:jsxRuntime.jsx(j,{width:"100%",height:"100%"})}):n?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-hidden",Cu[r],o),children:n}):e?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-hidden",Cu[r],o),children:jsxRuntime.jsx("img",{src:e,alt:t||"",className:"w-full h-full object-cover",loading:"lazy"})}):null}function wu({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(j,{width:"100%",height:16}),jsxRuntime.jsx(j,{width:"80%",height:16}),jsxRuntime.jsx(j,{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 Nu({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(j,{width:80,height:32}),jsxRuntime.jsx(j,{width:60,height:32})]}):t?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("px-6 py-4 flex items-center gap-2",Hw[r],e),children:t}):null}$e.Header=nl;$e.Media=Su;$e.Content=wu;$e.Footer=Nu;var $r=class extends _e.Component{constructor(){super(...arguments);Ti(this,"state",{hasError:false});Ti(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 Kw=.3,Yw=.5;function Ct({children:e,title:t,headerContent:r,titleAlign:o="left",hideCloseIcon:n=false,hasBackArrow:a=false,onBack:i,isOpen:s,onClose:d,isDismissable:l=true,transparentOverlay:c=false,primaryAction:u,secondaryAction:m,footerContent:p,maxHeight:g="80vh",height:f,maxWidth:h="640px",contentPadding:b=true,showHandle:v=true,animationVariant:y="scale",className:C}){let[T,w]=_e.useState(false),[N,R]=_e.useState(0),[P,E]=_e.useState(false),D=Js(s),k=D?.height??null,A=D?.keyboardOffset??0,M=_e.useRef(null),H=_e.useRef(null),Y=_e.useRef(null),V=_e.useRef({isDragging:false,startY:0,startTime:0,pointerId:null});_e.useEffect(()=>{if(s){let G=setTimeout(()=>{w(true),setTimeout(()=>w(false),600);},400);return ()=>clearTimeout(G)}},[s]),_e.useEffect(()=>{s||(R(0),E(false),V.current={isDragging:false,startY:0,startTime:0,pointerId:null});},[s]),_e.useEffect(()=>{let G=H.current;if(!G||!s)return;let B=null,S=x=>{let L=x.target;L&&["INPUT","TEXTAREA","SELECT"].includes(L.tagName)&&(B&&clearTimeout(B),B=setTimeout(()=>{L.scrollIntoView({block:"nearest",behavior:"smooth"});},320));};return G.addEventListener("focusin",S),()=>{G.removeEventListener("focusin",S),B&&clearTimeout(B);}},[s]);let F=_e.useCallback(G=>{l&&(G.pointerType!=="touch"&&G.pointerType!=="pen"||(Y.current&&(clearTimeout(Y.current),Y.current=null),V.current={isDragging:true,startY:G.clientY,startTime:Date.now(),pointerId:G.pointerId},E(false),G.currentTarget.setPointerCapture(G.pointerId)));},[l]),X=_e.useCallback(G=>{let{isDragging:B,startY:S,pointerId:x}=V.current;if(!B||G.pointerId!==x)return;let L=G.clientY-S;R(Math.max(0,L));},[]),O=_e.useCallback(G=>{let{isDragging:B,startY:S,startTime:x,pointerId:L}=V.current;if(!B||G.pointerId!==L)return;let I=G.clientY-S,q=Date.now()-x,ne=I/q;V.current={isDragging:false,startY:0,startTime:0,pointerId:null};let $=(M.current?.getBoundingClientRect().height??0)*Kw;(I>$||ne>Yw&&I>50)&&l?(d?.(),R(0)):(E(true),R(0),Y.current=setTimeout(()=>{E(false),Y.current=null;},200));},[l,d]);if(!s)return null;let U=t||r,J=u||m||p;return jsxRuntime.jsx($r,{children:jsxRuntime.jsx(Pr,{isOpen:s,onOpenChange:G=>{G||d?.();},isDismissable:l,transparent:c,style:{paddingBottom:A>0?`${A}px`:void 0,transition:"padding-bottom 0.25s ease-out"},className:"flex items-end justify-center p-0 sm:p-4",children:jsxRuntime.jsx(reactAriaComponents.Modal,{className:"w-full max-w-full p-0 sm:p-2 outline-none focus:outline-none focus-visible:outline-none ring-0 focus:ring-0 focus-visible:ring-0",isDismissable:l,children:jsxRuntime.jsx("div",{ref:M,className:tailwindMerge.twMerge("w-full",P&&"transition-transform duration-200"),style:{transform:N>0?`translateY(${N}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",y==="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)]",y==="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:h,...f?{height:f}:{maxHeight:/\d/.test(g)?k!==null?`min(${g}, ${Math.max(k-8,0)}px, 100dvh)`:`min(${g}, 100dvh)`:g}},children:[v&&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:F,onPointerMove:X,onPointerUp:O,onPointerCancel:O,children:jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("h-1 w-12 rounded-full bg-border-muted transition-all duration-300","hover:bg-border-default hover:w-16",T&&"animate-[handle-wiggle_0.6s_ease-in-out]")})}),U&&(a?jsxRuntime.jsx(or,{title:t,headerContent:r,titleAlign:o,hideCloseIcon:n||!d,hasBackArrow:true,onBack:i??(()=>{}),onClose:d||(()=>{})}):jsxRuntime.jsx(or,{title:t,headerContent:r,titleAlign:o,hideCloseIcon:n||!d,onClose:d||(()=>{})})),jsxRuntime.jsx("div",{ref:H,className:tailwindMerge.twMerge("flex-1 min-h-0 overflow-y-auto overscroll-contain",b?"p-4":"p-0"),children:e}),J&&jsxRuntime.jsx(an,{primaryAction:u,secondaryAction:m,footerContent:p})]})})})})})}Ct.displayName="Tray";function Ka({children:e,items:t,className:r,align:o="left",textAlign:n="left",size:a="md",onAction:i,header:s,footer:d,useMobileTray:l=true,popoverClassName:c}){let[u,m]=_e.useState(false),{isMobile:p}=dr();if(l&&p){let f=_e__namespace.default.isValidElement(e)?_e__namespace.default.cloneElement(e,{onPress:()=>m(true)}):e,v=(y=>{if(typeof y=="string")return y;if(_e__namespace.default.isValidElement(y)){let C=y.props;if(typeof C.children=="string")return C.children;if(Array.isArray(C.children))return C.children.find(w=>typeof w=="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:v,contentPadding:false,headerContent:s,footerContent:d,children:jsxRuntime.jsx("div",{className:"flex flex-col",children:t.map(y=>{let C=y.href&&!y.disabled?"a":"button";return jsxRuntime.jsxs(C,{...y.href&&!y.disabled?{href:y.href}:{},onClick:()=>{y.disabled||(y.onAction?y.onAction():i?.(y),m(false));},disabled:y.disabled,"data-testid":y.testId,className:tailwindMerge.twMerge("flex w-full items-center text-start transition-colors",!y.noPadding&&"px-6 py-3","border-b border-border-muted last:border-0",y.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",y.disabled&&"opacity-50 cursor-not-allowed"),children:[y.iconName&&jsxRuntime.jsx(z,{name:y.iconName,size:20,className:"mr-3 flex-shrink-0"}),jsxRuntime.jsx("div",{className:"flex flex-1 flex-col",children:y.render?y.render():jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("span",{className:y.subtitle?"font-medium":"",children:y.name}),y.subtitle&&jsxRuntime.jsx("span",{className:"text-sm text-text-secondary",children:y.subtitle})]})})]},y.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",c),placement:o==="right"?"bottom end":"bottom start",children:jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex min-w-[180px] flex-col gap-1 py-1",c),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(Qw,{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))}),d?jsxRuntime.jsx("div",{className:"px-3 pb-3 pt-2",children:d}):null]})})]})})}function Qw({textAlign:e="left",iconName:t,size:r="md",isDisabled:o,children:n,variant:a="default",subtitle:i,render:s,noPadding:d,...l}){let c={sm:"px-3 py-2 text-sm",md:i?"px-4 py-2.5 text-base":"px-4 py-2 text-base"},u="text-text-primary hover:bg-background-hover data-[focused]:bg-background-hover data-[focus-visible]:ring-2 data-[focus-visible]:ring-action-primary data-[focus-visible]:ring-inset",m={primary:u,default:u,destructive:"text-feedback-error-text hover:bg-feedback-error-background data-[focused]:bg-feedback-error-background data-[focus-visible]:ring-2 data-[focus-visible]:ring-feedback-error-border data-[focus-visible]:ring-inset"};return s?jsxRuntime.jsx(reactAriaComponents.MenuItem,{...l,isDisabled:o,className:tailwindMerge.twMerge("group box-border flex w-full cursor-pointer items-center rounded-sm outline-none transition-colors",!d&&c[r],m[a],e==="right"?"justify-end":"justify-start",o&&"pointer-events-none opacity-50"),children:s()}):jsxRuntime.jsxs(reactAriaComponents.MenuItem,{...l,isDisabled:o,className:tailwindMerge.twMerge("group box-border flex w-full cursor-pointer items-center rounded-sm outline-none transition-colors",!d&&c[r],m[a],e==="right"?"justify-end":"justify-start",o&&"pointer-events-none opacity-50"),children:[t&&e==="left"&&jsxRuntime.jsx(z,{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(z,{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 ln({items:e,onLoadMore:t,hasMore:r,isLoading:o=false,loadingState:n,enableVirtualization:a,estimatedItemSize:i=50,overscan:s=5,scrollElement:d,loadMoreThreshold:l=100}){let c=_e.useRef(null),u=_e.useRef(null),m=_e.useRef(false),[p,g]=_e.useState(0);_e.useEffect(()=>{u.current&&(d||c.current)&&g(R=>R+1);},[d,e.length]);let f=n||(o?e.length===0?"loading":"loading-more":"idle"),h=f==="loading",b=f==="loading-more",v=a!==void 0?a:e.length>=100,y=reactVirtual.useVirtualizer({count:e.length,getScrollElement:()=>d||c.current,estimateSize:()=>i,overscan:s}),C=v?y:null,T=v?y.getVirtualItems():[];_e.useEffect(()=>{let R=u.current,P=d||c.current;if(!R||!P||!r||o||!t)return;let E=new IntersectionObserver(D=>{let[k]=D;k?.isIntersecting&&!m.current&&r&&t&&(m.current=true,Promise.resolve(t()).finally(()=>{m.current=false;}));},{root:P,rootMargin:`0px 0px ${l}px 0px`,threshold:0});return E.observe(R),()=>{E.disconnect();}},[r,o,t,d,l,p]);let w=_e.useCallback((R,P)=>{C?C.scrollToIndex(R,P):c.current&&c.current.children[R]?.scrollIntoView({behavior:"smooth",block:P?.align||"start"});},[C]),N=_e.useCallback(()=>{C?C.scrollToIndex(0,{align:"start"}):c.current&&c.current.scrollTo({top:0,behavior:"smooth"});},[C]);return {virtualizer:C,virtualItems:T,computedLoadingState:f,isInitialLoad:h,isLoadingMore:b,scrollRef:c,loadMoreRef:u,scrollToIndex:w,scrollToTop:N}}var Ya=_e.createContext({variant:"timeline",size:"md"});function Ag(){return _e.useContext(Ya)}function ll(e){return _e.isValidElement(e)&&e.type===ul}function iN(e){return _e.isValidElement(e)&&e.type===dl}function Lu({variant:e="timeline",size:t="md",className:r,children:o,items:n,renderItem:a,isLoading:i=false,loadingState:s,error:d=null,renderLoadingSkeleton:l,loadingSkeletonCount:c=5,emptyMessage:u="No activity found.",onLoadMore:m,hasMore:p=false,enableVirtualization:g,estimatedItemSize:f,loadingIndicator:h,height:b,maxHeight:v,...y}){let C=_e.useRef(null),{isMobile:T}=dr(),w=T?"stacked":e,N=n!==void 0&&a!==void 0,{scrollRef:R,loadMoreRef:P,virtualizer:E,virtualItems:D,isLoadingMore:k,computedLoadingState:A}=ln({items:n||[],onLoadMore:N?m:void 0,hasMore:N?p:false,isLoading:i,loadingState:s,enableVirtualization:N?g:false,estimatedItemSize:f||(w==="stacked"?120:150),overscan:5}),M=N&&R?R:C,H=_e.useMemo(()=>({variant:w,size:t}),[w,t]),Y=w==="timeline"?t==="sm"?"gap-4":"gap-6":"gap-0",V=w==="stacked"?"divide-y divide-border-subtle rounded-lg border border-border-subtle bg-background-surface":"",F={};if(N&&m&&(b?(F.height=typeof b=="number"?`${b}px`:b,F.overflowY="auto"):v?(F.maxHeight=typeof v=="number"?`${v}px`:v,F.overflowY="auto"):(F.height="600px",F.overflowY="auto")),N){let U=A==="loading"||i&&(!n||n.length===0);if(U){let G=l?jsxRuntime.jsx(jsxRuntime.Fragment,{children:Array.from({length:c}).map((B,S)=>jsxRuntime.jsx("div",{children:l()},`skeleton-${S}`))}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:Array.from({length:c}).map((B,S)=>{let x=t==="sm"?"gap-2":"gap-3";if(w==="timeline"){let L=t==="sm"?"pt-3":"pt-4",I=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 ${L}`,children:[jsxRuntime.jsx(j,{width:32,height:32,variant:"circle"}),S<c-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 ${x} ${I} rounded-md border border-border-subtle bg-background-surface`,children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-3",children:[jsxRuntime.jsx(j,{width:"50%",height:16}),jsxRuntime.jsx(j,{width:"15%",height:12})]}),jsxRuntime.jsx(j,{width:"85%",height:t==="sm"?14:15}),jsxRuntime.jsx(j,{width:"70%",height:t==="sm"?14:15})]})]},`skeleton-${S}`)}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(j,{width:24,height:24,variant:"circle"}),jsxRuntime.jsx(j,{width:"50%",height:16})]}),jsxRuntime.jsxs("div",{className:`mt-3 flex flex-col ${x}`,children:[jsxRuntime.jsx(j,{width:"85%",height:t==="sm"?14:15}),jsxRuntime.jsx(j,{width:"70%",height:t==="sm"?14:15}),jsxRuntime.jsx(j,{width:"20%",height:12})]})]},`skeleton-${S}`)})});return jsxRuntime.jsx(Ya.Provider,{value:H,children:jsxRuntime.jsx("div",{ref:M,"data-slot":"feed","data-variant":w,className:tailwindMerge.twMerge("flex flex-col",Y,V,r),style:F,...y,children:G})})}if(d)return jsxRuntime.jsx(Ya.Provider,{value:H,children:jsxRuntime.jsx("div",{ref:M,"data-slot":"feed","data-variant":w,className:tailwindMerge.twMerge("flex flex-col",Y,V,r),style:F,...y,children:jsxRuntime.jsx("div",{className:"p-4 text-center text-feedback-error-text",children:d})})});if(!n||n.length===0)return jsxRuntime.jsx(Ya.Provider,{value:H,children:jsxRuntime.jsx("div",{ref:M,"data-slot":"feed","data-variant":w,className:tailwindMerge.twMerge("flex flex-col",Y,V,r),style:F,...y,children:jsxRuntime.jsx("div",{className:"p-4 text-center text-text-secondary",children:u})})});let J=E?D?.map(G=>({virtualItem:G,item:n[G.index],index:G.index}))||[]:n.map((G,B)=>({item:G,index:B,virtualItem:null}));return jsxRuntime.jsx(Ya.Provider,{value:H,children:jsxRuntime.jsxs("div",{ref:M,"data-slot":"feed","data-variant":w,className:tailwindMerge.twMerge("flex flex-col",Y,V,r),style:{...F,position:E?"relative":void 0},...y,children:[E?jsxRuntime.jsxs("div",{style:{height:`${E.getTotalSize()}px`,position:"relative"},children:[J.map(({item:G,index:B,virtualItem:S})=>{if(!G||!S)return null;let x=a(G,B),L=w==="timeline"&&_e.isValidElement(x)&&ll(x)?_e.cloneElement(x,{showConnector:B!==n.length-1}):x;return jsxRuntime.jsx("div",{style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${S.start}px)`},"data-index":S.index,ref:E.measureElement,children:L},`item-${B}`)}),k&&jsxRuntime.jsx("div",{style:{position:"absolute",top:`${E.getTotalSize()}px`,left:0,width:"100%"},children:h||jsxRuntime.jsx(Ur,{state:"loading-more"})})]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[J.map(({item:G,index:B})=>{let S=a(G,B);if(w==="timeline"&&_e.isValidElement(S)&&ll(S)){let x=B===n.length-1;return jsxRuntime.jsx("div",{children:_e.cloneElement(S,{showConnector:!x})},`item-${B}`)}return jsxRuntime.jsx("div",{children:S},`item-${B}`)}),k&&(h||jsxRuntime.jsx(Ur,{state:"loading-more"}))]}),m&&p&&!U&&jsxRuntime.jsx("div",{ref:P,style:E?{position:"absolute",top:`${E.getTotalSize()}px`,left:0,width:"100%",height:1}:{height:1,width:"100%"}})]})})}let X=_e.Children.toArray(o),O=X.map((U,J)=>{if(ll(U)){let G=U.props.showConnector??(w==="timeline"&&J<X.length-1),B=w==="timeline"&&J>0;return _e.cloneElement(U,{showConnector:G,showIncomingConnector:B})}if(iN(U)){let G=J===X.length-1;return _e.cloneElement(U,{__isLastGroup:G,__isFirstGroup:J===0})}return U});return jsxRuntime.jsx(Ya.Provider,{value:H,children:jsxRuntime.jsx("div",{"data-slot":"feed","data-variant":w,className:tailwindMerge.twMerge("flex flex-col",Y,V,r),...y,children:O})})}Lu.displayName="ActivityFeed";function dl(e){let{variant:t,size:r}=Ag(),{title:o,description:n,actions:a,children:i,className:s,__isLastGroup:d=false,__isFirstGroup:l=false,...c}=e,u=_e.Children.toArray(i),m=u.map((f,h)=>{if(ll(f)){let b=f.props.showConnector??(t==="timeline"&&!(d&&h===u.length-1));return _e.cloneElement(f,{showConnector:b,showIncomingConnector:t==="timeline"&&!(l&&h===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),...c,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})]})}dl.displayName="ActivityFeedGroup";var Lg={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"},sN={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"},lN={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 ul(e){let{variant:t,size:r}=Ag(),{title:o,description:n,timestamp:a,meta:i,media:s,actions:d,visual:l,icon:c,iconWeight:u,tone:m="neutral",surface:p,isHighlighted:g=false,showConnector:f=true,hideIndicator:h=false,interactive:b,className:v,children:y,onKeyDown:C,showIncomingConnector:T,...w}=e,N=l??(c?jsxRuntime.jsx(z,{name:c,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",D=r==="sm"?"text-sm":"text-[15px]",k="text-xs text-text-secondary",A=b??typeof w.onClick=="function",M=J=>{if(!A){C?.(J);return}J.key===" "?J.preventDefault():J.key==="Enter"&&(J.preventDefault(),J.currentTarget.click()),C?.(J);},H=J=>{A&&J.key===" "&&(J.preventDefault(),J.currentTarget.click());},Y=A?tailwindMerge.twMerge("group cursor-pointer",rt()):void 0,F=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",Lg[m]),children:N}),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"})]}),X=g?tailwindMerge.twMerge(sN[m],R==="minimal"?"rounded-md border border-border-muted":lN[m]):"";if(t==="stacked")return jsxRuntime.jsxs("div",{"data-slot":"item","data-variant":"stacked",role:A?"button":void 0,tabIndex:A?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],X,Y,A?"transition-colors hover:bg-background-subtle/80":"",v),onKeyDown:M,onKeyUp:H,...w,children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[!h&&jsxRuntime.jsx("span",{"data-slot":"indicator",className:tailwindMerge.twMerge("flex h-6 w-6 flex-shrink-0 items-center justify-center rounded-full border text-sm font-medium shadow-sm ring-2 ring-background-surface",Lg[m]),children:N}),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",D),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}),y,d&&jsxRuntime.jsx("div",{className:"flex flex-wrap gap-2 pt-1",children:d}),a&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("-mt-1.5",E),children:a})]})]});let O=R==="minimal"?r==="sm"?"py-2":"py-3":r==="sm"?"p-3":"p-4",U={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:A?"button":void 0,tabIndex:A?0:void 0,className:tailwindMerge.twMerge("group relative grid items-start gap-4 grid-cols-[3rem_1fr]",Y,v),onKeyDown:M,onKeyUp:H,...w,children:[h?jsxRuntime.jsx("div",{}):F,jsxRuntime.jsxs("div",{"data-slot":"content",className:tailwindMerge.twMerge("min-w-0 flex flex-col",P,O,U[R],X,A?"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",D),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}),y,d&&jsxRuntime.jsx("div",{className:"flex flex-wrap gap-2 pt-2",children:d})]})]})}ul.displayName="ActivityItem";function fr({isOpen:e,onClose:t,title:r,headerContent:o,titleAlign:n="left",hideCloseIcon:a=false,hasBackArrow:i=false,onBack:s,children:d,primaryAction:l,secondaryAction:c,tertiaryAction:u,footerContent:m,transparentOverlay:p=false,maxWidth:g="600px",minWidth:f="400px",maxHeight:h="85vh",height:b,mobileMaxHeight:v="90vh",mobileHeight:y,contentPadding:C=true,className:T}){let w=cr("(max-width: 767px)"),N=Js(w&&e===void 0),R=N?.height??null,P=N?.keyboardOffset??0,E=_e.useRef(null),D=_e.useCallback(()=>{E.current&&E.current.scrollTop!==0&&(E.current.scrollTop=0);},[]),k=_e.useRef(null),A=_e.useRef(null);_e.useEffect(()=>{let F=A.current;if(!F||!w)return;let X=null,O=U=>{let J=U.target;J&&["INPUT","TEXTAREA","SELECT"].includes(J.tagName)&&(X&&clearTimeout(X),X=setTimeout(()=>{J.scrollIntoView({block:"nearest",behavior:"smooth"});},320));};return F.addEventListener("focusin",O),()=>{F.removeEventListener("focusin",O),X&&clearTimeout(X);}},[w]);let M=_e.useCallback(()=>{k.current&&k.current.scrollTop!==0&&(k.current.scrollTop=0);},[]);if(e===false)return null;let H=r||o,Y=l||c||u||m,V=e!==void 0;return w?V?jsxRuntime.jsx(Ct,{isOpen:e,onClose:t,title:r,headerContent:o,titleAlign:n,hideCloseIcon:a,hasBackArrow:i,onBack:s,primaryAction:l,secondaryAction:c,footerContent:m,transparentOverlay:p,maxHeight:v,height:y,maxWidth:g,contentPadding:C,showHandle:true,animationVariant:"scale",className:T,children:d}):jsxRuntime.jsx($r,{children:jsxRuntime.jsx(Pr,{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:D,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",T),style:{...y?{height:y}:{maxHeight:/\d/.test(v)?R!==null?`min(${v}, ${Math.max(R-8,0)}px, 100dvh)`:`min(${v}, 100dvh)`:v}},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"})}),H&&(i?jsxRuntime.jsx(or,{title:r,headerContent:o,titleAlign:n,hideCloseIcon:a||!t,hasBackArrow:true,onBack:s,onClose:t||(()=>{})}):jsxRuntime.jsx(or,{title:r,headerContent:o,titleAlign:n,hideCloseIcon:a||!t,onClose:t||(()=>{})})),jsxRuntime.jsx("div",{ref:A,className:tailwindMerge.twMerge("flex-1 min-h-0 overflow-y-auto overscroll-contain",C?"px-6 py-6":"p-0"),children:d}),Y&&jsxRuntime.jsx(an,{primaryAction:l,secondaryAction:c,tertiaryAction:u,footerContent:m})]})})})}):jsxRuntime.jsx($r,{children:jsxRuntime.jsx(Pr,{...V?{isOpen:e,onOpenChange:F=>{!F&&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:M,className:tailwindMerge.twMerge("relative flex w-full flex-col","bg-background-surface","shadow-2xl shadow-black/20","border border-border-default/50","rounded-md","overflow-hidden","outline-none focus:outline-none focus-visible:outline-none ring-0 focus:ring-0","animate-in fade-in zoom-in-96 slide-in-from-bottom-2","duration-300 ease-out","data-[exiting]:animate-out data-[exiting]:fade-out data-[exiting]:zoom-out-95","data-[exiting]:duration-200 data-[exiting]:ease-in",T),style:{minWidth:f,...b?{height:b}:{maxHeight:h}},children:[H&&(i?jsxRuntime.jsx(or,{title:r,headerContent:o,titleAlign:n,hideCloseIcon:a||!t,hasBackArrow:true,onBack:s,onClose:t||(()=>{})}):jsxRuntime.jsx(or,{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:d}),Y&&jsxRuntime.jsx(an,{primaryAction:l,secondaryAction:c,tertiaryAction:u,footerContent:m})]})})})})}function zg({isOpen:e,onClose:t,title:r,message:o,confirmLabel:n="OK",confirmVariant:a="primary",maxWidth:i="400px",minWidth:s="320px"}){return jsxRuntime.jsx(fr,{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 cn={xs:16,sm:20,md:24,lg:32,xl:40,"2xl":48},Er=_e.memo(({name:e,size:t="md",color:r,weight:o="regular",className:n,ariaLabel:a,...i})=>{let s=dN__namespace[e];if(!s)return null;let d=typeof t=="string"?t in cn?cn[t]:cn.md:t,l=tailwindMerge.twMerge("inline-block flex-shrink-0",!r&&"text-current",n);return jsxRuntime.jsx(s,{...i,size:d,color:r,weight:o,className:l,"aria-label":a||`${e} icon`,"data-testid":`icon-${e}`})});Er.displayName="IconSSR";var uN=_e.memo(({variant:e="subtle",shape:t="square",containerSize:r,containerClassName:o,size:n="md",className:a,name:i,color:s,weight:d,ariaLabel:l,ref:c,...u})=>{let m=typeof n=="string"?n in cn?cn[n]:cn.md:n,p=r?typeof r=="string"?r in cn?cn[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(Er,{...u,name:i,size:n,color:s,weight:d,className:a,ariaLabel:l})})});uN.displayName="IconSSRWithContainer";var Ja=({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 d=r||270,l=d/270*80;return jsxRuntime.jsxs("svg",{width:d,height:l,viewBox:"0 0 270 80",xmlns:"http://www.w3.org/2000/svg",className:a,style:n?{fill:n}:void 0,children:[jsxRuntime.jsxs("g",{clipPath:"url(#clip0_796_283)",children:[jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.223654 20.2934C0.417233 19.8234 0.873598 19.517 1.37984 19.517H20.5909C21.282 19.517 21.8422 20.0798 21.8422 20.774V40.049C21.8422 40.5572 21.5375 41.0155 21.0702 41.2102C20.6028 41.405 20.0647 41.2977 19.7067 40.9385L0.495628 21.6635C0.137428 21.3041 0.030075 20.7633 0.223654 20.2934ZM4.40349 22.0311L19.3396 37.017V22.0311H4.40349Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.6458 20.2934C38.8394 19.8234 39.2958 19.517 39.802 19.517H59.013C59.7041 19.517 60.2642 20.0798 60.2642 20.774V40.049C60.2642 40.5572 59.9597 41.0155 59.4923 41.2102C59.025 41.405 58.4867 41.2977 58.1289 40.9385L38.9178 21.6635C38.5595 21.3041 38.4522 20.7633 38.6458 20.2934ZM42.8255 22.0311L57.7618 37.017V22.0311H42.8255Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.4347 58.8447C19.6283 58.3747 20.0847 58.0685 20.5909 58.0685H39.802C40.493 58.0685 41.0532 58.6312 41.0532 59.3255V78.6005C41.0532 79.1087 40.7486 79.567 40.2813 79.7617C39.8139 79.9562 39.2757 79.849 38.9178 79.49L19.7067 60.215C19.3485 59.8555 19.2411 59.3147 19.4347 58.8447ZM23.6146 60.5825L38.5508 75.5682V60.5825H23.6146Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.3227 58.1643C39.79 57.9695 40.3283 58.0768 40.6861 58.436L59.8972 77.711C60.2555 78.0703 60.3628 78.6113 60.1692 79.081C59.9756 79.551 59.5192 79.8575 59.013 79.8575H39.802C39.1109 79.8575 38.5508 79.2948 38.5508 78.6005V59.3255C38.5508 58.8173 38.8554 58.359 39.3227 58.1643ZM41.0532 62.3575V77.3433H55.9893L41.0532 62.3575Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.3227 19.6129C39.79 19.4182 40.3283 19.5254 40.6861 19.8846L59.8972 39.1595C60.2555 39.519 60.3628 40.0598 60.1692 40.5298C59.9756 40.9995 59.5192 41.306 59.013 41.306H39.802C39.1109 41.306 38.5508 40.7433 38.5508 40.049V20.7741C38.5508 20.2658 38.8554 19.8075 39.3227 19.6129ZM41.0532 23.8061V38.792H55.9893L41.0532 23.8061Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.3227 38.8885C39.79 38.694 40.3283 38.8012 40.6861 39.1602L59.8972 58.4352C60.2555 58.7945 60.3628 59.3355 60.1692 59.8055C59.9756 60.2752 59.5192 60.5817 59.013 60.5817H39.802C39.1109 60.5817 38.5508 60.019 38.5508 59.3247V40.0497C38.5508 39.5415 38.8554 39.0832 39.3227 38.8885ZM41.0532 43.0817V58.0675H55.9893L41.0532 43.0817Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.6458 39.569C38.8394 39.0992 39.2958 38.7927 39.802 38.7927H59.013C59.7041 38.7927 60.2642 39.3555 60.2642 40.0497V59.3247C60.2642 59.833 59.9597 60.2912 59.4923 60.486C59.025 60.6805 58.4867 60.5732 58.1289 60.2142L38.9178 40.9392C38.5595 40.5797 38.4522 40.039 38.6458 39.569ZM42.8255 41.3067L57.7618 56.2927V41.3067H42.8255Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.6458 58.8447C38.8394 58.3747 39.2958 58.0685 39.802 58.0685H59.013C59.7041 58.0685 60.2642 58.6312 60.2642 59.3255V78.6005C60.2642 79.1087 59.9597 79.567 59.4923 79.7617C59.025 79.9562 58.4867 79.849 58.1289 79.49L38.9178 60.215C38.5595 59.8555 38.4522 59.3147 38.6458 58.8447ZM42.8255 60.5825L57.7618 75.5682V60.5825H42.8255Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M58.5338 19.6129C59.0011 19.4182 59.5394 19.5254 59.8972 19.8846L79.1083 39.1595C79.4666 39.519 79.5739 40.0598 79.3803 40.5298C79.1867 40.9995 78.7303 41.306 78.2241 41.306H59.013C58.322 41.306 57.7618 40.7433 57.7618 40.049V20.7741C57.7618 20.2658 58.0664 19.8075 58.5338 19.6129ZM60.2643 23.8061V38.792H75.2006L60.2643 23.8061Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M58.5338 0.338803C59.0011 0.144135 59.5394 0.251385 59.8972 0.610565L79.1083 19.8855C79.4666 20.2449 79.5739 20.7857 79.3803 21.2556C79.1867 21.7256 78.7303 22.032 78.2241 22.032H59.013C58.322 22.032 57.7618 21.4692 57.7618 20.775V1.50003C57.7618 0.99174 58.0664 0.533468 58.5338 0.338803ZM60.2643 4.53208V19.5179H75.2006L60.2643 4.53208Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M57.8569 20.2934C58.0505 19.8234 58.5069 19.517 59.013 19.517H78.2241C78.9151 19.517 79.4753 20.0798 79.4753 20.774V40.049C79.4753 40.5572 79.1707 41.0155 78.7034 41.2102C78.236 41.405 77.6978 41.2977 77.3399 40.9385L58.1289 21.6635C57.7705 21.3041 57.6633 20.7633 57.8569 20.2934ZM62.0365 22.0311L76.9729 37.017V22.0311H62.0365Z"}),jsxRuntime.jsx("path",{d:"M269.838 49.4457H249.005C249.266 51.801 250.162 53.6985 251.695 55.1377C253.225 56.577 255.134 57.2967 257.416 57.2967C259.307 57.2967 260.887 56.8715 262.159 56.021C263.463 55.1377 264.408 53.9927 264.996 52.5862H269.251C268.502 54.9415 267.084 56.937 264.996 58.5725C262.943 60.208 260.414 61.026 257.416 61.026C255.069 61.026 252.917 60.4697 250.961 59.3575C249.037 58.2127 247.504 56.6587 246.363 54.696C245.255 52.7332 244.7 50.558 244.7 48.17C244.7 45.782 245.255 43.6067 246.363 41.644C247.504 39.6812 249.037 38.1437 250.961 37.0315C252.917 35.8867 255.069 35.3142 257.416 35.3142C259.73 35.3142 261.833 35.8702 263.724 36.9825C265.615 38.0947 267.098 39.6485 268.176 41.644C269.283 43.6395 269.838 45.913 269.838 48.4645V49.4457ZM257.416 39.0432C255.263 39.0432 253.439 39.6812 251.939 40.957C250.47 42.2327 249.542 43.9337 249.152 46.06H265.583C265.192 43.9992 264.262 42.3145 262.796 41.006C261.36 39.6975 259.568 39.0432 257.416 39.0432Z"}),jsxRuntime.jsx("path",{d:"M228.356 60.5352V35.8049H232.219V39.7794H232.464C233.05 38.5689 233.963 37.5712 235.202 36.7862C236.474 35.9684 237.974 35.5594 239.701 35.5594H243.125V39.4359H239.701C237.517 39.4359 235.757 40.1554 234.42 41.5949C233.083 43.0342 232.414 44.9152 232.414 47.2377V60.5352H228.356Z"}),jsxRuntime.jsx("path",{d:"M208.607 61.0259C205.64 61.0259 203.326 60.1262 201.663 58.3272C200 56.4952 199.169 53.8947 199.169 50.5252V35.8047H203.228V49.8874C203.228 52.2427 203.766 54.0744 204.842 55.3829C205.95 56.6587 207.532 57.2967 209.586 57.2967C211.02 57.2967 212.308 56.9694 213.449 56.3152C214.623 55.6284 215.536 54.6959 216.188 53.5184C216.84 52.3407 217.166 50.9997 217.166 49.4949V35.8047H221.225V60.5352H217.313V56.5607H217.068C216.286 57.9019 215.161 58.9814 213.694 59.7992C212.226 60.6169 210.531 61.0259 208.607 61.0259Z"}),jsxRuntime.jsx("path",{d:"M186.736 39.534V56.806H194.756V60.5352H182.677V39.534H177.199V35.8047H182.677V29.5732H186.736V35.8047H193.24V39.534H186.736Z"}),jsxRuntime.jsx("path",{d:"M156.585 60.5352H151.988L158.394 48.0227L152.33 35.8047H156.976L162.062 46.0599H165.388L170.474 35.8047H175.022L168.958 48.0227L175.365 60.5352H170.67L165.29 49.7892H162.013L156.585 60.5352Z"}),jsxRuntime.jsx("path",{d:"M150.138 49.1315H129.304C129.565 51.4867 130.461 53.3842 131.994 54.8235C133.526 56.2627 135.433 56.9825 137.715 56.9825C139.606 56.9825 141.188 56.5572 142.459 55.7067C143.763 54.8235 144.709 53.6785 145.296 52.272H149.551C148.801 54.6272 147.382 56.6227 145.296 58.2582C143.242 59.8937 140.715 60.7118 137.715 60.7118C135.368 60.7118 133.216 60.1555 131.26 59.0432C129.336 57.8985 127.804 56.3445 126.663 54.3817C125.554 52.419 125 50.2437 125 47.8557C125 45.4677 125.554 43.2925 126.663 41.3298C127.804 39.367 129.336 37.8295 131.26 36.7173C133.216 35.5725 135.368 35 137.715 35C140.03 35 142.133 35.556 144.024 36.6682C145.915 37.7805 147.399 39.3342 148.475 41.3298C149.583 43.3252 150.138 45.5987 150.138 48.1502V49.1315ZM137.715 38.729C135.564 38.729 133.738 39.367 132.238 40.6427C130.771 41.9185 129.842 43.6195 129.45 45.7458H145.883C145.491 43.685 144.562 42.0002 143.095 40.6917C141.661 39.3832 139.867 38.729 137.715 38.729Z"}),jsxRuntime.jsx("path",{d:"M116.961 60.5353H112.559V30.4072H101.164V26.1875H128.307V30.4072H116.961V60.5353Z"})]}),jsxRuntime.jsx("defs",{children:jsxRuntime.jsx("clipPath",{id:"clip0_796_283",children:jsxRuntime.jsx("rect",{width:"270",height:"80",fill:"white"})})})]})}let i=r||80;return jsxRuntime.jsxs("svg",{width:i,height:i,viewBox:"0 0 80 80",xmlns:"http://www.w3.org/2000/svg",className:a,style:n?{fill:n}:void 0,children:[jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.223654 20.2934C0.417233 19.8234 0.873598 19.517 1.37984 19.517H20.5909C21.282 19.517 21.8422 20.0798 21.8422 20.774V40.049C21.8422 40.5572 21.5375 41.0155 21.0702 41.2102C20.6028 41.405 20.0647 41.2977 19.7067 40.9385L0.495628 21.6635C0.137428 21.3041 0.030075 20.7633 0.223654 20.2934ZM4.40349 22.0311L19.3396 37.017V22.0311H4.40349Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.6458 20.2934C38.8394 19.8234 39.2958 19.517 39.802 19.517H59.013C59.7041 19.517 60.2642 20.0798 60.2642 20.774V40.049C60.2642 40.5572 59.9597 41.0155 59.4923 41.2102C59.025 41.405 58.4867 41.2977 58.1289 40.9385L38.9178 21.6635C38.5595 21.3041 38.4522 20.7633 38.6458 20.2934ZM42.8255 22.0311L57.7618 37.017V22.0311H42.8255Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.4347 58.8447C19.6283 58.3747 20.0847 58.0685 20.5909 58.0685H39.802C40.493 58.0685 41.0532 58.6312 41.0532 59.3255V78.6005C41.0532 79.1087 40.7486 79.567 40.2813 79.7617C39.8139 79.9562 39.2757 79.849 38.9178 79.49L19.7067 60.215C19.3485 59.8555 19.2411 59.3147 19.4347 58.8447ZM23.6146 60.5825L38.5508 75.5682V60.5825H23.6146Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.3227 58.1643C39.79 57.9695 40.3283 58.0768 40.6861 58.436L59.8972 77.711C60.2555 78.0703 60.3628 78.6113 60.1692 79.081C59.9756 79.551 59.5192 79.8575 59.013 79.8575H39.802C39.1109 79.8575 38.5508 79.2948 38.5508 78.6005V59.3255C38.5508 58.8173 38.8554 58.359 39.3227 58.1643ZM41.0532 62.3575V77.3433H55.9893L41.0532 62.3575Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.3227 19.6129C39.79 19.4182 40.3283 19.5254 40.6861 19.8846L59.8972 39.1595C60.2555 39.519 60.3628 40.0598 60.1692 40.5298C59.9756 40.9995 59.5192 41.306 59.013 41.306H39.802C39.1109 41.306 38.5508 40.7433 38.5508 40.049V20.7741C38.5508 20.2658 38.8554 19.8075 39.3227 19.6129ZM41.0532 23.8061V38.792H55.9893L41.0532 23.8061Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.3227 38.8885C39.79 38.694 40.3283 38.8012 40.6861 39.1602L59.8972 58.4352C60.2555 58.7945 60.3628 59.3355 60.1692 59.8055C59.9756 60.2752 59.5192 60.5817 59.013 60.5817H39.802C39.1109 60.5817 38.5508 60.019 38.5508 59.3247V40.0497C38.5508 39.5415 38.8554 39.0832 39.3227 38.8885ZM41.0532 43.0817V58.0675H55.9893L41.0532 43.0817Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.6458 39.569C38.8394 39.0992 39.2958 38.7927 39.802 38.7927H59.013C59.7041 38.7927 60.2642 39.3555 60.2642 40.0497V59.3247C60.2642 59.833 59.9597 60.2912 59.4923 60.486C59.025 60.6805 58.4867 60.5732 58.1289 60.2142L38.9178 40.9392C38.5595 40.5797 38.4522 40.039 38.6458 39.569ZM42.8255 41.3067L57.7618 56.2927V41.3067H42.8255Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.6458 58.8447C38.8394 58.3747 39.2958 58.0685 39.802 58.0685H59.013C59.7041 58.0685 60.2642 58.6312 60.2642 59.3255V78.6005C60.2642 79.1087 59.9597 79.567 59.4923 79.7617C59.025 79.9562 58.4867 79.849 58.1289 79.49L38.9178 60.215C38.5595 59.8555 38.4522 59.3147 38.6458 58.8447ZM42.8255 60.5825L57.7618 75.5682V60.5825H42.8255Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M58.5338 19.6129C59.0011 19.4182 59.5394 19.5254 59.8972 19.8846L79.1083 39.1595C79.4666 39.519 79.5739 40.0598 79.3803 40.5298C79.1867 40.9995 78.7303 41.306 78.2241 41.306H59.013C58.322 41.306 57.7618 40.7433 57.7618 40.049V20.7741C57.7618 20.2658 58.0664 19.8075 58.5338 19.6129ZM60.2643 23.8061V38.792H75.2006L60.2643 23.8061Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M58.5338 0.338803C59.0011 0.144135 59.5394 0.251385 59.8972 0.610565L79.1083 19.8855C79.4666 20.2449 79.5739 20.7857 79.3803 21.2556C79.1867 21.7256 78.7303 22.032 78.2241 22.032H59.013C58.322 22.032 57.7618 21.4692 57.7618 20.775V1.50003C57.7618 0.99174 58.0664 0.533468 58.5338 0.338803ZM60.2643 4.53208V19.5179H75.2006L60.2643 4.53208Z"}),jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M57.8569 20.2934C58.0505 19.8234 58.5069 19.517 59.013 19.517H78.2241C78.9151 19.517 79.4753 20.0798 79.4753 20.774V40.049C79.4753 40.5572 79.1707 41.0155 78.7034 41.2102C78.236 41.405 77.6978 41.2977 77.3399 40.9385L58.1289 21.6635C57.7705 21.3041 57.6633 20.7633 57.8569 20.2934ZM62.0365 22.0311L76.9729 37.017V22.0311H62.0365Z"})]})};var ml=({topItems:e=[],bottomItems:t=[],bottomContent:r,logo:o,showLogo:n=true,linkComponent:a="a",className:i="",mobileMenuId:s="app-mobile-menu",sidebarCollapseId:d="app-sidebar-collapse"})=>{let l=p=>p.length>0&&"items"in p[0],c=p=>l(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(h=>m(h))}),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(v=>m(v,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},h=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:h},p.id):jsxRuntime.jsx(a,{...f,children:h},p.id)};return jsxRuntime.jsxs("div",{className:`flex flex-col h-full ${i}`,children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between h-[60px] px-6 border-b border-border-default",children:[n&&jsxRuntime.jsx("div",{className:"relative top-[-1px] transition-all duration-200",children:o||jsxRuntime.jsx(Ja,{showWordmark:true,width:120})}),jsxRuntime.jsx("label",{htmlFor:d,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(Er,{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:c(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 Gn(e){return e.id??e.href??e.label}function Fu(e,t,r=[]){for(let o of e){if(o.href===t||o.id===t)return o.children?.length&&o.pushOnSelect!==false?[...r,Gn(o)]:r;if(o.children?.length){let n=Fu(o.children,t,[...r,Gn(o)]);if(n)return n}}return null}function Jg(e,t){let r=[],o=e;for(let n of t){let a=o.find(i=>Gn(i)===n);if(!a)break;r.push(a),o=a.children??[];}return r}function mN(e,t,r){let o=t.length>0?[...e,...t]:e,n=[{path:[],items:e,bottomItems:t.length>0?t:void 0}],a=Jg(o,r),i=[];for(let s of a){if(!s.children?.length)break;i=[...i,Gn(s)],n.push({path:i,parent:s,items:s.children});}return n}var fN=({href:e,...t})=>jsxRuntime.jsx("a",{href:e,...t}),Wg=[];function gN(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 bN(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 hN(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 Xa({items:e,groups:t,bottomItems:r,value:o,defaultStack:n,stack:a,onStackChange:i,onSelect:s,linkComponent:d=fN,renderRow:l,showLogo:c=false,logo:u,header:m,footer:p,mobileMenuId:g,sidebarCollapseId:f,rootLabel:h,sticky:b=true,width:v=260,ariaLabel:y="Navigation",theme:C,animated:T=true,style:w,className:N}){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=_e__namespace.useMemo(()=>t?gN(t):e??Wg,[t,e]),P=r??Wg,E=_e__namespace.useMemo(()=>P.length>0?[...R,...P]:R,[R,P]);_e__namespace.useEffect(()=>{bN(R,P);},[R,P]);let[D,k]=_e__namespace.useState(()=>a!==void 0?a:n!==void 0?n:o?Fu(E,o)??[]:[]),A=a??D,M=_e__namespace.useCallback(B=>{a===void 0&&k(B),i?.(B);},[a,i]),H=_e__namespace.useRef(false);_e__namespace.useEffect(()=>{if(a!==void 0||!H.current&&(H.current=true,n!==void 0)||!o)return;let B=Fu(E,o);k(S=>{let x=B??[];return vN(S,x)?S:x});},[o,E,a,n]);let Y=_e__namespace.useMemo(()=>mN(R,P,A),[R,P,A]),V=_e__namespace.useCallback((B,S)=>{B.children?.length&&M([...S,Gn(B)]);},[M]),F=_e__namespace.useCallback(()=>{M(A.slice(0,-1));},[A,M]),X=_e__namespace.useCallback((B,S)=>{let x=Jg(E,A);if(s?.(S,x),!!S.children?.length&&!(S.href&&S.pushOnSelect===false)){let I=Y[Y.length-1]?.path??[];V(S,I);}S.href||B.preventDefault();},[E,A,s,V,Y]),O=_e__namespace.useCallback(B=>{let S=Y[Y.length-1]?.path??[];V(B,S);},[V,Y]),U=_e__namespace.useCallback(B=>o?B.href===o||B.id===o:false,[o]),J=b?"sticky top-0 h-[100dvh]":"",G={...v!=null?{width:v}:{},...hN(C),...w};return jsxRuntime.jsxs("aside",{role:"navigation","aria-label":y,"data-edges-stack-nav":"",className:tailwindMerge.twMerge("edges-stack-nav flex flex-col flex-shrink-0 overflow-hidden",T&&"edges-stack-nav--animated",J,N),style:G,children:[c?jsxRuntime.jsxs("div",{className:"edges-stack-nav__logo",children:[jsxRuntime.jsx("div",{className:"relative top-[-1px]",children:u??jsxRuntime.jsx(Ja,{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(Er,{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:Y.map((B,S)=>{let x=B.path.length,L=S===Y.length-1,I=S<Y.length-1,q=x===0?"__root__":B.path.join("/");return jsxRuntime.jsx(xN,{pane:B,parentPath:B.path.slice(0,-1),depth:x,isTop:L,isAbove:I,rootLabel:h,LinkComponent:d,renderRow:l,isActive:U,onSelect:X,onDrillIn:O,onBack:F,animated:T},q)})}),p?jsxRuntime.jsx("div",{className:"edges-stack-nav__footer",children:p}):null]})}function xN({pane:e,depth:t,isTop:r,isAbove:o,rootLabel:n,LinkComponent:a,renderRow:i,isActive:s,onSelect:d,onDrillIn:l,onBack:c,animated:u}){let m=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",!u&&"edges-stack-nav__pane--instant",m),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(yN,{}),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(p=>jsxRuntime.jsx(Ug,{item:p,LinkComponent:a,renderRow:i,isActive:s(p),onSelect:d,onDrillIn:l},Gn(p))),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(p=>jsxRuntime.jsx(Ug,{item:p,LinkComponent:a,renderRow:i,isActive:s(p),onSelect:d,onDrillIn:l},Gn(p)))}):null]})}function Ug({item:e,LinkComponent:t,renderRow:r,isActive:o,onSelect:n,onDrillIn:a}){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 i=!!e.children?.length,s=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:i,select:c=>n(c,e),drillIn:()=>a(e),LinkComponent:t,className:s})});let d=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})]});if(e.href&&i&&e.pushOnSelect===false)return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge(s,"cursor-default p-0"),children:[jsxRuntime.jsx(t,{href:e.href,"aria-label":e.ariaLabel,className:"flex min-w-0 flex-1 items-center gap-2 rounded-sm px-3 py-2 text-inherit no-underline","aria-current":o?"page":void 0,onClick:c=>n(c,e),children:d}),jsxRuntime.jsxs("span",{className:"flex flex-shrink-0 items-center gap-2 pr-2 text-text-secondary",children:[e.trailing,jsxRuntime.jsx("button",{type:"button",className:"edges-stack-nav__drill-in inline-flex cursor-pointer items-center rounded-sm border-0 bg-transparent p-1 text-inherit","aria-label":`Open ${e.label}`,onClick:()=>a(e),children:jsxRuntime.jsx(Kg,{})})]})]});let l=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[d,jsxRuntime.jsxs("span",{className:"flex flex-shrink-0 items-center gap-2 text-text-secondary",children:[e.trailing,i?jsxRuntime.jsx(Kg,{}):null]})]});return e.href?jsxRuntime.jsx(t,{href:e.href,"aria-label":e.ariaLabel,className:s,"aria-current":o?"page":void 0,onClick:c=>n(c,e),children:l}):jsxRuntime.jsx("button",{type:"button",className:s,"aria-label":e.ariaLabel,onClick:c=>{n(c,e);},children:l})}function Kg(){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 yN(){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 vN(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 zi=({rightContent:e,centerContent:t,showMobileMenu:r=true,avatar:o,showColorModeSwitcher:n=false,toggleTheme:a,isDarkThemeEnabled:i=false,colorMode:s,actions:d,className:l="",mobileMenuId:c="app-mobile-menu"})=>{let u=()=>{switch(s||(i?"dark":"light")){case "system":return jsxRuntime.jsx(Er,{name:"Monitor",size:"sm"});case "light":return jsxRuntime.jsx(Er,{name:"Sun",size:"sm"});case "dark":return jsxRuntime.jsx(Er,{name:"Moon",size:"sm"})}},m=()=>{switch(s||(i?"dark":"light")){case "system":return "Switch to light mode";case "light":return "Switch to dark mode";case "dark":return "Switch to system mode";default:return "Toggle theme"}};return jsxRuntime.jsx("header",{className:`h-[60px] bg-background-surface border-b ${l}`,children:jsxRuntime.jsxs("div",{className:"relative flex h-full items-center",children:[jsxRuntime.jsx("div",{className:"flex items-center h-full flex-shrink-0",children:r&&jsxRuntime.jsx("label",{htmlFor:c,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(Er,{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()}),d,o&&jsxRuntime.jsx("div",{className:"flex items-center",children:o})]})]})})};function jg({sideNav:e,stackNav:t,topNav:r,children:o,contentPaddingX:n,contentPaddingY:a,showSidebarBorder:i=true,mainClassName:s,enableJsEnhancements:d=false}){let l="app-mobile-menu",c="app-sidebar-collapse";return _e.useEffect(()=>{if(!d)return;let u=document.getElementById(c),m=document.getElementById(l),p=document.querySelector("[data-app-shell]"),g=document.getElementById("app-sidebar");if(!u||!p||!g)return;let f=null,h=false;try{let E=localStorage.getItem("sidebar-collapsed");E!==null&&(u.checked=E==="true");}catch{}let b=()=>{try{localStorage.setItem("sidebar-collapsed",String(u.checked));}catch{}u.checked?h=true:(f&&(clearTimeout(f),f=null),p.removeAttribute("data-peek"),h=false);};u.addEventListener("change",b);let v=E=>{E.key==="Escape"&&(m&&(m.checked=false),p.removeAttribute("data-peek"));};document.addEventListener("keydown",v);let y=null;m&&(y=()=>{document.body.style.overflow=m.checked?"hidden":"";},m.addEventListener("change",y));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 T=16,w=200,N=()=>{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;},w);},P=E=>{if(window.innerWidth<768||!u.checked)return;let D=g.contains(E.target);if(h&&!D&&(h=false),h)return;E.clientX<=T||D?N():p.getAttribute("data-peek")==="true"&&R();};return document.addEventListener("mousemove",P),()=>{u.removeEventListener("change",b),document.removeEventListener("keydown",v),m&&y&&m.removeEventListener("change",y),g.removeEventListener("click",C),document.removeEventListener("mousemove",P),f&&clearTimeout(f);}},[d,l,c]),jsxRuntime.jsxs("div",{className:"min-h-[100dvh] bg-background text-text-primary relative","data-app-shell":"",children:[jsxRuntime.jsx("input",{type:"checkbox",id:c,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(zi,{...r,mobileMenuId:l,className:["sticky top-0 flex-shrink-0 z-30 md:hidden",r?.className].filter(Boolean).join(" ")}),jsxRuntime.jsxs("div",{className:"flex w-full h-[calc(100dvh-60px)] md:h-[100dvh] relative overflow-hidden",children:[jsxRuntime.jsx("input",{type:"checkbox",id:l,className:"sr-only peer/mobile","aria-hidden":"true"}),jsxRuntime.jsx("label",{htmlFor:l,className:"fixed inset-0 bg-background-modal z-[55] opacity-0 pointer-events-none peer-checked/mobile:opacity-100 peer-checked/mobile:pointer-events-auto transition-opacity md:hidden","aria-label":"Close menu"}),jsxRuntime.jsx("div",{"aria-hidden":"true","data-peek-zone":"",className:"hidden md:block fixed left-0 top-0 bottom-0 w-4 z-[70] pointer-events-none"}),jsxRuntime.jsx("label",{htmlFor:c,"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(Er,{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(Xa,{...t,mobileMenuId:l,sidebarCollapseId:c,sticky:false,width:null,className:["h-full !border-r-0",t.className].filter(Boolean).join(" ")}):jsxRuntime.jsx(ml,{...e,mobileMenuId:l,sidebarCollapseId:c,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(zi,{...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. */
|
|
6
|
-
#${
|
|
6
|
+
#${c}:checked ~ * [data-app-sidebar] {
|
|
7
7
|
transform: translateX(-100%);
|
|
8
8
|
position: absolute;
|
|
9
9
|
}
|
|
10
|
-
#${
|
|
10
|
+
#${c}:checked ~ * [data-expand-rail] {
|
|
11
11
|
display: flex;
|
|
12
12
|
}
|
|
13
|
-
#${
|
|
13
|
+
#${c}:checked ~ * [data-top-nav-wrapper] {
|
|
14
14
|
padding-left: 3.5rem;
|
|
15
15
|
}
|
|
16
|
-
#${
|
|
16
|
+
#${c}:checked ~ * [data-peek-zone] {
|
|
17
17
|
pointer-events: auto;
|
|
18
18
|
}
|
|
19
19
|
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
z-index: 50;
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
|
-
`}})]})}function ln(e,t=300){let[r,o]=Ze.useState(e);return Ze.useEffect(()=>{let n=setTimeout(()=>o(e),t);return ()=>clearTimeout(n)},[e,t]),r}function ml(e,t=300){let[r,o]=Ze.useState(false);return Ze.useEffect(()=>{if(e){let n=setTimeout(()=>{o(true);},t);return ()=>clearTimeout(n)}o(false);},[e,t]),r}var MN=({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 Zt({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)=>MN({...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 fr(){let[e,t]=Ze__namespace.default.useState(false),r=Ze__namespace.default.useCallback((n,a)=>{t(true),a?.(n);},[]),o=Ze__namespace.default.useCallback((n,a)=>{t(false),a?.(n);},[]);return {isFocused:e,handleFocus:r,handleBlur:o}}var Nt=Ze__namespace.default.forwardRef(({children:e,className:t},r)=>jsxRuntime.jsx("div",{ref:r,className:tailwindMerge.twMerge("relative w-full",t),children:e}));Nt.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 cn(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 Jg(e){return e.isDisabled?"bg-background-muted":e.transparent?"bg-transparent":"bg-background-input"}function LN(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 Gt(e){let{isInvalid:t,isDisabled:r,isFocused:o,transparent:n,size:a="md",className:i}=e;return tailwindMerge.twMerge("w-full",cn({isInvalid:t,isDisabled:r,isFocused:o}),Jg({transparent:n,isDisabled:r}),Ke[a].text,Ke[a].height,Ke[a].padding,LN(a),i)}function DN(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",Jg({transparent:a,isDisabled:n}),Ke[t].height,cn({isFocused:r,isInvalid:o,isDisabled:n}),i)}function Je({children:e,size:t="md",tooltip:r,description:o,descriptionPlacement:n="below",isRequired:a,className:i,htmlFor:s}){let c=r||o&&n==="tooltip",l=r||o,d=o&&n==="inline",u=jsxRuntime.jsxs("label",{htmlFor:s,className:tailwindMerge.twMerge(Ke[t].text,"!text-text-label font-semibold flex items-center gap-1",i),children:[e,a&&jsxRuntime.jsx("span",{children:"*"}),c&&jsxRuntime.jsx("span",{className:"inline-flex items-center text-text-secondary",children:jsxRuntime.jsx(V,{name:"Info",size:t==="sm"?16:20})}),d&&jsxRuntime.jsx("span",{className:"text-text-secondary font-normal ml-1",children:o})]});return c&&l?jsxRuntime.jsx(Zt,{content:l,children:u}):u}function ke({size:e="md",className:t,children:r,...o}){return jsxRuntime.jsx("div",{...o,className:tailwindMerge.twMerge("leading-[2.25] text-text-secondary",Ke[e].text,t),children:r})}function ye({children:e,size:t="md",className:r}){return jsxRuntime.jsx("div",{role:"alert",className:tailwindMerge.twMerge(Ke[t].text,"text-feedback-error-text",r),children:e})}function gl({size:e="md",isInvalid:t,isDisabled:r,isFocused:o,transparent:n,className:a,...i}){return jsxRuntime.jsx("input",{className:Gt({isInvalid:t,isDisabled:r,isFocused:o,transparent:n,size:e,className:a}),...i})}function Xg(e){let{children:t,...r}=e;return jsxRuntime.jsx("div",{...r,className:DN(e),children:typeof t=="function"?t(e):t})}var Hu=Ze.createContext("md");function _g(){return Ze.useContext(Hu)}function Vu(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 ${Ke[e].text} ${t}`}function ON(){let e=Ze__namespace.default.useCallback((r,o)=>{o?.(r);},[]),t=Ze__namespace.default.useCallback((r,o)=>{o?.(r);},[]);return {handleFocus:e,handleBlur:t}}function Ho({label:e,description:t,errorMessage:r,children:o,items:n,renderItem:a,renderSelectedValue:i,size:s="md",selectedKey:c,defaultSelectedKey:l,onSelectionChange:d,placeholder:u,showErrors:m=false,tooltip:p,isRequired:g,transparent:f,reserveErrorSpace:y=false,placement:b="bottom start",shouldFlip:h=true,menuWidth:x="match",descriptionPlacement:C="below",useMobileTray:N=true,...S}){let[T,R]=Ze.useState(null),[P,E]=Ze.useState(null),[D,k]=Ze.useState(false),A=c??T??l,{handleFocus:M,handleBlur:z}=ON(),{isMobile:F}=cr(),B=N&&F,O=Ze__namespace.default.useMemo(()=>!i||!A||!n?null:Array.from(n).find(K=>K.id===A)??null,[i,A,n]),Q=G=>{d&&G!==null&&d(G),d||R(G);},H=Ze.useRef(null),U=Ze.useRef(null),W=()=>{B&&k(!D);};return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(reactAriaComponents.Select,{...S,selectedKey:A,defaultSelectedKey:l,onSelectionChange:Q,placeholder:u,className:Ae(S.className,"group flex w-full flex-col"),ref:H,onOpenChange:G=>{B||(G&&U.current?E(U.current.offsetWidth):G||H.current?.blur());},children:({isDisabled:G,isInvalid:K,isOpen:w})=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(Je,{size:s,tooltip:p,description:C==="tooltip"||C==="inline"?t:void 0,descriptionPlacement:C,isRequired:g,children:e}),jsxRuntime.jsx(Nt,{children:jsxRuntime.jsx("div",{ref:U,children:jsxRuntime.jsxs(te,{variant:"unstyled",className:tailwindMerge.twMerge(Gt({isInvalid:K||m&&!!r,isDisabled:G,isFocused:B?D:w,transparent:f,size:s}),"flex items-center text-start gap-4 cursor-pointer pl-[var(--control-padding-sm)]"),onFocus:v=>M(v,S.onFocus),onBlur:v=>z(v,S.onBlur),onPress:B?W:void 0,"data-open":B?D:w,children:[i&&O?jsxRuntime.jsx("div",{className:Vu(s),children:i(O)}):B&&A?jsxRuntime.jsx("div",{className:Vu(s),children:n?Array.from(n).find(I=>I.id===A)?.label:String(A)}):jsxRuntime.jsx(reactAriaComponents.SelectValue,{className:Vu(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",(B?D:w)&&"rotate-180")})]})})}),y?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:m?jsxRuntime.jsx(ye,{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(ke,{size:s,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:m?jsxRuntime.jsx(ye,{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(ke,{size:s,className:"mt-1",children:t}):null}),B?null:jsxRuntime.jsx(St,{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(Hu.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(gr,{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})})})]})}),B&&jsxRuntime.jsx(wt,{isOpen:D,onClose:()=>k(false),title:e??"Select an option",contentPadding:false,children:jsxRuntime.jsx(Hu.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:A!=null?[A]:[],onSelectionChange:G=>{let K=Array.from(G)[0];K!=null&&(Q(K),k(false));},children:a&&n?G=>jsxRuntime.jsx(gr,{id:G.id,textValue:G.label,children:jsxRuntime.jsx("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap min-w-0 flex-1",children:a(G)})},G.id):o})})})]})}function gr({size:e,className:t,...r}){let o=_g(),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",Ke[n].paddingY,Ke[n].text,t)})}var QN=[],ZN={sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6",xl:"h-7 w-7"},_N={sm:"pl-8",md:"pl-10",lg:"pl-11",xl:"pl-13"},eb={sm:"py-1",md:"py-2",lg:"py-3",xl:"py-4"},Wu=(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 $N(e,t,r){try{let o=e.url.replace("{q}",t),n=new URLSearchParams;e.extraParams&&Object.entries(e.extraParams).forEach(([c,l])=>{n.append(c,l.toString());});let a=`${o}${n.toString()?"?"+n.toString():""}`,i=await fetch(a,{method:"GET",headers:e.headers,signal:r});if(!i.ok)throw new Error(`HTTP error! status: ${i.status}`);let s=await i.json();return {items:e.transformResponse(s)}}catch(o){if(o instanceof Error&&o.name==="AbortError")return {items:[]};console.error("Error in REST request:",o);let n=o instanceof Error?o.message:"Unknown error occurred";return {items:[],error:n}}}async function eT(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 xl({label:e,staticItems:t=QN,sections:r,selectedKey:o,defaultSelectedKey:n,onSelectionChange:a,requestConfig:i,defaultFilter:s,placeholder:c,errorMessage:l,description:d,size:u="md",tooltip:m,isRequired:p,isDisabled:g,isInvalid:f,validationResult:y,showErrors:b=true,renderItem:h,renderLeftIcon:x,renderSection:C,autoFocus:N=false,reserveErrorSpace:S=false,hideChevron:T=false,useMobileTray:R=true,className:P}){let E=Ze__namespace.default.useRef(null),D=Ze__namespace.default.useRef(null),[k,A]=Ze__namespace.default.useState(),[M,z]=Ze.useState(()=>Wu(o||n,t,r)),[F,B]=Ze.useState(false),[O,Q]=Ze.useState(false),H=ln(M),{contains:U}=reactAria.useFilter({sensitivity:"base"}),[W,G]=Ze.useState(),{isMobile:K}=cr(),w=R&&K,v=Ke[u].text,L=reactStately.useAsyncList({async load({signal:ue,filterText:ge=""}){if(!i)return {items:[]};if(!i.url||i.shouldLoad&&!i.shouldLoad(ge))return {items:[]};try{let le;return i.requestType==="GraphQL"?le=await eT(i,ge,ue):le=await $N(i,ge,ue),G(le.error),{items:le.items}}catch(le){return le instanceof Error&&le.name==="AbortError"?{items:[]}:(console.error("Error loading items:",le),G(le instanceof Error?le.message:"Unknown error occurred"),{items:[]})}},initialFilterText:""}),I=i&&H!==""?L:null,X=false,oe=Ze.useRef("");Ze.useEffect(()=>{N&&B(true);},[N]),Ze.useEffect(()=>{let ue=Wu(o,t,r);ue!==M&&z(ue);},[o,t,r]),Ze.useEffect(()=>{let ue=()=>{E.current&&A(E.current.offsetWidth);};return ue(),window.addEventListener("resize",ue),()=>window.removeEventListener("resize",ue)},[]),Ze.useEffect(()=>{H===""?oe.current="":I&&H!==oe.current&&(oe.current=H,I.setFilterText(H));},[H,I]),X=ml(!!I?.isLoading,300);let ie=Ze__namespace.default.useMemo(()=>{if(!w||!M)return I?I.items:t;let ue=I?I.items:t,ge=s??(i?()=>true:U);return ue.filter(le=>ge(le.name,M))},[w,M,I,t,s,U]),re=ue=>{let ge=Wu(ue,t,r);z(ge),a&&a(ue);},ae=ue=>{z(ue);},Le=()=>{w&&Q(true);};return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(reactAriaComponents.ComboBox,{onSelectionChange:re,selectedKey:o||void 0,defaultSelectedKey:n||void 0,items:I?I.items:r?r.flatMap(ue=>ue.items):t,className:Ae(P,"group flex flex-col w-full"),menuTrigger:w?"manual":i?"input":"focus",allowsEmptyCollection:!!i,isDisabled:g,isInvalid:f||!!l,inputValue:M,onInputChange:ae,autoFocus:N&&!w,defaultFilter:s??(i?()=>true:U),"aria-label":e||c||"Autocomplete",children:ue=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(Je,{size:u,tooltip:m,isRequired:p,children:e}),jsxRuntime.jsxs(Nt,{ref:E,children:[x?jsxRuntime.jsx("div",{className:"pointer-events-none absolute left-3 top-[45%] -translate-y-1/2 z-10",children:x(X)}):jsxRuntime.jsx("div",{className:"pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 z-10 flex items-center",children:X?jsxRuntime.jsx(Wr,{size:16,color:"text-text-secondary"}):jsxRuntime.jsx(V,{name:"MagnifyingGlass",className:`${ZN[u]} text-text-secondary`})}),jsxRuntime.jsx(reactAriaComponents.Input,{className:Gt({isInvalid:f||!!l,isDisabled:g,isFocused:F||(w?O:ue.isOpen),size:u,className:tailwindMerge.twMerge(_N[u],M&&!g||!T&&!M?"pr-10":"pr-3",w&&"cursor-pointer",P)}),placeholder:c,disabled:g,onFocus:ge=>{B(true),w&&(ge.currentTarget.blur(),Le());},onBlur:()=>{B(false);},onClick:w?Le:void 0,readOnly:w,"aria-label":e||c||"Autocomplete"}),M&&!g&&jsxRuntime.jsx(Vi,{onClick:()=>{z(""),a?.(null);},size:u}),!T&&!M&&jsxRuntime.jsx(reactAriaComponents.Button,{className:"absolute right-3 top-[46%] -translate-y-1/2 transform text-text-secondary hover:text-text-primary","aria-label":"Toggle menu",isDisabled: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&&W?jsxRuntime.jsx(ye,{size:u,className:"text-feedback-error-text",children:W}):b&&typeof l=="string"?jsxRuntime.jsx(ye,{size:u,className:"text-feedback-error-text",children:l}):b&&typeof l=="function"&&y?jsxRuntime.jsx(ye,{size:u,className:"text-feedback-error-text",children:l(y)}):d?jsxRuntime.jsx(ke,{size:u,children:d}):null}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[d&&jsxRuntime.jsx(ke,{size:u,className:"mt-1",children:d}),b&&W&&jsxRuntime.jsx(ye,{size:u,className:"text-feedback-error-text mt-1",children:W}),b&&typeof l=="string"&&jsxRuntime.jsx(ye,{size:u,className:"text-feedback-error-text mt-1",children:l}),b&&typeof l=="function"&&y&&jsxRuntime.jsx(ye,{size:u,className:"text-feedback-error-text mt-1",children:l(y)})]}),!w&&jsxRuntime.jsx(St,{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||c||"Suggestions",className:`max-h-[300px] overflow-auto bg-background-input outline-none ${v}`,children:r?r.map(ge=>{let le=ge.items.map(pe=>jsxRuntime.jsx(gr,{id:pe.id,textValue:pe.name,size:u,className:`flex cursor-default items-center gap-2 px-3 ${eb[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(pe):pe.name},pe.id));if(C){let pe=C(ge,le);return Ze__namespace.default.isValidElement(pe)&&pe.type===reactAriaComponents.ListBoxSection?pe:jsxRuntime.jsx(reactAriaComponents.ListBoxSection,{children:pe},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}),le]},ge.name)}):ge=>jsxRuntime.jsx(gr,{id:ge.id,textValue:ge.name,size:u,className:`flex cursor-default items-center gap-2 px-3 ${eb[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)})})]})}),w&&jsxRuntime.jsx(wt,{isOpen:O,onClose:()=>Q(false),title:e??c??"Search",contentPadding:false,height:"80vh",children:jsxRuntime.jsxs("div",{className:"flex flex-col h-full",children:[jsxRuntime.jsx("div",{className:"p-4 border-b border-border-default",children:jsxRuntime.jsxs(Nt,{children:[jsxRuntime.jsx("div",{className:"pointer-events-none absolute left-3 top-[45%] -translate-y-1/2 z-10 flex items-center",children:X?jsxRuntime.jsx(Wr,{size:16,color:"text-text-secondary"}):jsxRuntime.jsx(V,{name:"MagnifyingGlass",className:"h-4 w-4 text-text-secondary"})}),jsxRuntime.jsx("input",{ref:D,type:"text",value:M,onChange:ue=>ae(ue.target.value),placeholder:c,autoFocus:true,className:Gt({isInvalid:false,isDisabled:false,isFocused:true,size:"md",className:"pl-10 pr-10"})}),M&&jsxRuntime.jsx(Vi,{onClick:()=>{z(""),a?.(null);},size:"md"})]})}),jsxRuntime.jsx("div",{className:"flex-1 overflow-auto",children:jsxRuntime.jsx(reactAriaComponents.ListBox,{"aria-label":e||c||"Suggestions",items:ie,selectedKeys:o?[o]:[],selectionMode:"single",onSelectionChange:ue=>{let ge=Array.from(ue)[0];ge&&(re(ge),Q(false));},className:"bg-background-input outline-none",children:ue=>jsxRuntime.jsx(gr,{id:ue.id,textValue:ue.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(ue):ue.name},ue.id)})})]})})]})}function Go({src:e,alt:t,firstName:r,lastName:o,fullName:n,onClick:a,size:i="md",shape:s="circle",variant:c="user",className:l,status:d,bordered:u=false,piiEntity:m}){let[p,g]=Ze.useState(false),f=Ze.useCallback(()=>g(true),[]);Ze.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"},N=s==="circle"?"rounded-full":"rounded-md",S=tailwindMerge.twMerge("relative inline-flex items-center justify-center overflow-hidden transition-opacity outline-none",y[i],N,a&&"cursor-pointer hover:opacity-80",u&&"ring-2 ring-background-surface",l),R=(()=>{if(r||o){let k=r?.[0]||"",A=o?.[0]||"";return (k+A).toUpperCase()}if(n){let k=n.split(" "),A=k[0]?.[0]||"",M=k[k.length-1]?.[0]||"";return A===M?A.toUpperCase():(A+M).toUpperCase()}return ""})(),P=()=>{let k={xs:14,sm:16,md:20,lg:24,xl:32}[i];switch(c){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 c==="organization"?k?"organization-logo":"initials":k?"avatar":"initials"},D=()=>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[c]:""),onClick:a,role:a?"button":void 0,tabIndex:a?0:void 0,children:D()}),d&&jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("absolute border-2 border-background-surface",N,b[i],h[i],x[d]),"aria-label":`Status: ${d}`})]})}var lT={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"},cT={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"},dT={pill:"rounded-full",rounded:"rounded-lg",square:"rounded-sm"},uT={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 gt({children:e,variant:t="default",size:r="sm",shape:o="square",dot:n=false,dotPosition:a="left",dotPulse:i=false,title:s,className:c}){let l=n&&jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("rounded-full bg-current opacity-75",uT[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",cT[r],dT[o],lT[t],c),children:[n&&a==="left"&&l,e,n&&a==="right"&&l]})}var pt=({href:e,children:t,className:r="",external:o=false,title:n,variant:a="secondary",onClick:i,asButton:s=false,onPress:c,showArrow:l=false,alwaysUnderlined:d=false,LinkComponent:u,"data-pii-type":m,"data-pii-entity":p})=>{let 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}`,N=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[t,l&&jsxRuntime.jsxs("span",{children:["\xA0","\u2192"]})]});return s?jsxRuntime.jsx("button",{type:"button",className:C,onClick:c,title:n,...g,children:N}):u&&e?jsxRuntime.jsx(u,{href:e,className:C,title:n,onClick:i,...f,...g,children:N}):jsxRuntime.jsx("a",{href:e||"#",className:C,...f,...g,title:n,onClick:i,children:N})};var CT={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 vl({variant:e="info",appearance:t="subtle",title:r,children:o,dismissible:n=false,onDismiss:a,primaryAction:i,secondaryAction:s,icon:c,hideIcon:l=false,className:d,testId:u}){let m=CT[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:[!l&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-shrink-0",p.iconColor),"aria-hidden":"true",children:c||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:dr(Rt("headingSm"),p.titleColor),children:r}),o&&jsxRuntime.jsx("div",{className:dr(Rt("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(pt,{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(pt,{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 nb({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(vl,{...o,className:a})})})}function Ja(){let[e,t]=Ze.useState({width:0,height:0}),r=Ze.useRef(null),o=Ze.useRef(void 0),n=Ze.useCallback(a=>{if(r.current&&(r.current.disconnect(),r.current=null),o.current&&(cancelAnimationFrame(o.current),o.current=void 0),!a){t({width:0,height:0});return}let i=a.getBoundingClientRect();t({width:i.width,height:i.height}),r.current=new ResizeObserver(s=>{o.current&&cancelAnimationFrame(o.current),o.current=requestAnimationFrame(c=>{for(let l of s){let{width:d,height:u}=l.contentRect;t(m=>m.width!==d||m.height!==u?{width:d,height:u}:m);}});}),r.current.observe(a);},[]);return Ze.useEffect(()=>()=>{o.current&&cancelAnimationFrame(o.current),r.current&&r.current.disconnect();},[]),{ref:n,width:e.width,height:e.height}}function dn({value:e,children:t,className:r,size:o="sm",iconPosition:n="right"}){let[a,i]=Ze.useState(false),l=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(Zt,{content:"Copied!",children:l}):l;return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("inline-flex items-center gap-0.5",r),children:[n==="left"&&d,t,n==="right"&&d]})}function Cl(e){let{children:t,maxWidth:r=600,className:o,...n}=e,{ref:a,width:i}=Ja(),[s,c]=Ze__namespace.default.useState(false),[l,d]=Ze__namespace.default.useState(false),u=Ze__namespace.default.useRef(false),m=Ze__namespace.default.useMemo(()=>t&&!e.items&&typeof t!="function"?Ze__namespace.default.Children.toArray(t):null,[t,e.items]);if(Ze__namespace.default.useEffect(()=>{m&&m.length>=4&&i>0&&!u.current?(u.current=true,c(i>r),d(true)):(!m||m&&m.length<4)&&d(true);let p=setTimeout(()=>{l||d(true);},100);return ()=>clearTimeout(p)},[i,r,m,l]),m&&s&&m.length>=4){let p=m[0],g=m.slice(1,-2),f=m.slice(-2),y=g.map(b=>{if(Ze__namespace.default.isValidElement(b)){let h=b.props;if(typeof h.children=="string")return {label:h.children,href:h.href}}return {label:"..."}});return jsxRuntime.jsxs(reactAriaComponents.Breadcrumbs,{...n,ref:a,className:tailwindMerge.twMerge("flex gap-2",l?"opacity-100":"opacity-0",o),children:[p,jsxRuntime.jsx(MT,{items:y}),f]})}return jsxRuntime.jsx(reactAriaComponents.Breadcrumbs,{...n,ref:a,className:tailwindMerge.twMerge("flex gap-2",l?"opacity-100":"opacity-0",o),children:t})}function MT({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 Sl(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 c=s.isCurrent,l=typeof r=="function"?r(s):r;return jsxRuntime.jsx(jsxRuntime.Fragment,{children:c?n?jsxRuntime.jsx(dn,{value:a||(typeof l=="string"?l:void 0),size:"sm",iconPosition:"right",children:jsxRuntime.jsx("span",{className:"max-w-[200px] truncate font-semibold text-text-primary sm:max-w-none",children:l})}):jsxRuntime.jsx("span",{className:"max-w-[200px] truncate font-semibold text-text-primary sm:max-w-none",children:l}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(pt,{variant:"muted",href:o,className:"max-w-[150px] truncate sm:max-w-[300px] md:max-w-none",children:l}),jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4 shrink-0 text-text-secondary"})]})})}})}function HT({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(wl,{}),jsxRuntime.jsxs(reactAriaComponents.CalendarGrid,{className:"border-separate [border-spacing:0] [&_td]:p-0 [&_td]:!border-0",children:[jsxRuntime.jsx(Nl,{}),jsxRuntime.jsx(reactAriaComponents.CalendarGridBody,{children:r=>jsxRuntime.jsx(reactAriaComponents.CalendarCell,{date:r,className:({isSelected:o,isDisabled:n})=>`${HT({isSelected:o,isDisabled:n})} border-0`})})]}),e&&jsxRuntime.jsx(reactAriaComponents.Text,{slot:"errorMessage",className:"text-sm text-feedback-error-text",children:e})]})}function wl(){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 Nl(){return jsxRuntime.jsx(reactAriaComponents.CalendarGridHeader,{children:e=>jsxRuntime.jsx(reactAriaComponents.CalendarHeaderCell,{className:"text-xs font-semibold text-text-secondary",children:e})})}var ub=Ze__namespace.createContext(null);function un(){let e=Ze__namespace.useContext(ub);if(!e)throw new Error("Carousel components must be used within a CarouselRoot");return e}function pb({page:e,defaultPage:t=0,onPageChange:r,orientation:o="horizontal",loop:n=false,autoplay:a=false,autoplayDelay:i=4e3,allowMouseDrag:s=false,spacing:c="1rem",slidesPerView:l=1,slidesPerMove:d=1,className:u,children:m,...p}){let g=e!==void 0,[f,y]=Ze__namespace.useState(t),b=g?e:f,h=Ze__namespace.useRef(null),[x,C]=Ze__namespace.useState(0),[N,S]=Ze__namespace.useState(typeof a=="boolean"?a:!!a),[T,R]=Ze__namespace.useState(false),P=Ze__namespace.useRef(null),E=Ze__namespace.useRef(null),D=typeof a=="object"&&a!==null&&a.delay?a.delay:i;Ze__namespace.useEffect(()=>{if(h.current){let v=Math.max(1,Math.floor(Number(l)||1)),L=h.current.children;if(L.length===0){C(0);return}let I=Math.ceil(L.length/v);C(I);}},[m,l]);let k=Ze__namespace.useRef(-1);Ze__namespace.useEffect(()=>{if(b!==k.current&&h.current){let v=Array.from(h.current.children);if(v.length===0)return;let L=b*l,I=Math.min(L,v.length-1),X=v[I];X&&typeof X.scrollIntoView=="function"&&(X.scrollIntoView({behavior:"smooth",block:o==="vertical"?"start":"nearest",inline:o==="horizontal"?"start":"nearest"}),k.current=b);}},[b,l,o]);let A=Ze__namespace.useCallback(v=>{let L=v;n?L<0?L=x-1:L>=x&&(L=0):L=Math.max(0,Math.min(v,x-1)),g||y(L),r?.(L);},[g,n,r,x]),M=Ze__namespace.useCallback(()=>{A(b+d);},[b,A,d]),z=Ze__namespace.useCallback(()=>{A(b-d);},[b,A,d]),F=Ze__namespace.useRef(M);Ze__namespace.useEffect(()=>{F.current=M;},[M]);let B=x>0&&(n||b<x-1),O=x>0&&(n||b>0),Q=Ze__namespace.useCallback(()=>{S(v=>!v);},[]);Ze__namespace.useEffect(()=>{if(N&&x>1)return P.current=setInterval(()=>{F.current();},D),()=>{P.current&&(clearInterval(P.current),P.current=null);}},[N,x,D]);let H=Ze__namespace.useCallback(()=>{P.current&&(clearInterval(P.current),P.current=null);},[]),U=Ze__namespace.useCallback(()=>{N&&x>1&&(P.current=setInterval(()=>{F.current();},D));},[N,x,D]),W=Ze__namespace.useCallback(v=>{if(!s)return;R(true);let L="touches"in v&&v.touches&&v.touches.length>0?v.touches[0].clientX:"clientX"in v?v.clientX:0,I="touches"in v&&v.touches&&v.touches.length>0?v.touches[0].clientY:"clientY"in v?v.clientY:0;E.current={x:L,y:I};},[s]),G=Ze__namespace.useCallback(v=>{if(!T||!E.current)return;let L="touches"in v&&v.touches&&v.touches.length>0?v.touches[0].clientX:"clientX"in v?v.clientX:0,I="touches"in v&&v.touches&&v.touches.length>0?v.touches[0].clientY:"clientY"in v?v.clientY:0,X=L-E.current.x,oe=I-E.current.y,ie=50;o==="horizontal"&&Math.abs(X)>ie?(X>0?z():M(),R(false),E.current=null):o==="vertical"&&Math.abs(oe)>ie&&(oe>0?z():M(),R(false),E.current=null);},[T,o,M,z]),K=Ze__namespace.useCallback(()=>{R(false),E.current=null;},[]),w={currentPage:b,totalPages:x,orientation:o,loop:n,spacing:c,slidesPerView:l,goToPage:A,goToNext:M,goToPrev:z,canGoNext:B,canGoPrev:O,isAutoplayActive:N,toggleAutoplay:Q,itemsRef:h,isDragging:T,allowMouseDrag:s,handleDragStart:W,handleDragMove:G,handleDragEnd:K};return jsxRuntime.jsx(ub.Provider,{value:w,children:jsxRuntime.jsx("div",{...p,className:tailwindMerge.twMerge("relative w-full",o==="vertical"?"h-full":"",u),onMouseEnter:H,onMouseLeave:U,children:m})})}function mb({className:e,children:t,...r}){let{itemsRef:o,orientation:n,spacing:a,isDragging:i,allowMouseDrag:s,handleDragStart:c,handleDragMove:l,handleDragEnd:d}=un();return jsxRuntime.jsx("div",{ref:o,...r,className:tailwindMerge.twMerge("flex overflow-x-auto overflow-y-hidden snap-x snap-mandatory scrollbar-hide scroll-smooth",n==="vertical"&&"flex-col overflow-y-auto overflow-x-hidden snap-y",s&&i&&"cursor-grabbing select-none",s&&!i&&"cursor-grab",e),style:{gap:a,"--carousel-spacing":a,...r.style},onMouseDown:c,onMouseMove:l,onMouseUp:d,onMouseLeave:d,onTouchStart:c,onTouchMove:l,onTouchEnd:d,children:t})}function fb({index:e,className:t,children:r,...o}){let{orientation:n,slidesPerView:a}=un();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 gb({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 bb({className:e,children:t,...r}){let{goToPrev:o,canGoPrev:n}=un();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 hb({className:e,children:t,...r}){let{goToNext:o,canGoNext:n}=un();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 Qu({index:e,className:t,children:r,...o}){let{currentPage:n,goToPage:a}=un(),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 xb({className:e,...t}){let{totalPages:r}=un();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(Qu,{index:n},n))})}function yb({className:e,children:t,...r}){let{isAutoplayActive:o,toggleAutoplay:n}=un();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 vb({className:e,...t}){let{currentPage:r,totalPages:o}=un();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 XT="focus:ring-action-primary",jT="bg-action-primary border-action-primary text-[color:var(--color-action-primary-text)] hover:bg-action-primary-hover hover:border-action-primary-hover";function Zu(e){return jsxRuntime.jsxs(reactAriaComponents.CheckboxGroup,{...e,className:Ae(e.className,"flex flex-col gap-2"),children:[jsxRuntime.jsx(Je,{children:e.label}),e.children,e.description&&jsxRuntime.jsx(ke,{children:e.description}),jsxRuntime.jsx(ye,{children:typeof e.errorMessage=="function"?void 0:e.errorMessage})]})}function qT({isDisabled:e}){return `relative flex gap-2 items-center group text-sm transition ${e?"text-text-disabled":"text-text-secondary"}`}function QT({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=XT,i="";return r?i="border-border-muted bg-background-muted":t?i="border-feedback-error-border bg-feedback-error-background":e||o?i=jT:i="bg-background-input border-border-input hover:border-border-focus",`${n} ${a} ${i}`}var Cb="w-4 h-4 text-current group-disabled:text-text-disabled";function _u({className:e,...t}){return jsxRuntime.jsx("div",{"aria-hidden":"true",className:`${QT(t)} ${e||""}`,children:t.isIndeterminate?jsxRuntime.jsx(lucideReact.Minus,{"aria-hidden":true,className:Cb}):t.isSelected?jsxRuntime.jsx(lucideReact.Check,{"aria-hidden":true,className:Cb}):null})}function eo(e){let{children:t,variant:r,...o}=e;return jsxRuntime.jsx(reactAriaComponents.Checkbox,{...o,className:reactAriaComponents.composeRenderProps(e.className,(n,a)=>`${qT(a)} ${n||""}`),children:n=>{let{isSelected:a,isIndeterminate:i,isDisabled:s,isInvalid:c}=n;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(_u,{isSelected:a,isIndeterminate:i,isDisabled:s,isInvalid:c}),typeof t=="function"?t(n):t]})}})}var $T={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 wb(e){return !e||e==="default"?"secondary":e==="brand"?"primary":e}var ek={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"},tk="opacity-75 cursor-not-allowed pointer-events-none";function Nb(e){let{variant:t,size:r,isDisabled:o,isClickable:n,className:a}=e,i=r==="xs"?"text-xs":Ke[r].text;return tailwindMerge.twMerge("inline-flex items-center justify-center rounded-full font-medium transition-colors","whitespace-nowrap select-none",ek[r],i,$T[t],n&&!o&&"cursor-pointer",o&&tk,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:c}){let l=!!c&&!i,d=a&&t&&!i,u=y=>{y.stopPropagation(),y.preventDefault(),t&&!i&&t();},m=()=>{c&&!i&&c();},p=o==="xs"?10:o==="sm"?12:o==="md"?14:16,f=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("span",{className:"truncate",children:e}),d?l?jsxRuntime.jsx("span",{onClick:u,onKeyDown:y=>{(y.key==="Enter"||y.key===" ")&&(y.preventDefault(),u(y));},role:"button",tabIndex:0,className:"flex-shrink-0 rounded-full p-0.5 hover:bg-text-primary/10 transition-colors cursor-pointer","aria-label":r,title:r,children:jsxRuntime.jsx(V,{name:"X",size:p,className:"text-current opacity-70 hover:opacity-100"})}):jsxRuntime.jsx("button",{type:"button",onClick:u,className:"flex-shrink-0 rounded-full p-0.5 hover:bg-text-primary/10 transition-colors cursor-pointer","aria-label":r,title:r,tabIndex:-1,children:jsxRuntime.jsx(V,{name:"X",size:p,className:"text-current opacity-70 hover:opacity-100"})}):null]});return l?jsxRuntime.jsx("button",{type:"button",onClick:m,className:Nb({variant:wb(n),size:o,isDisabled:i,isClickable:l,className:s}),disabled:i,children:f}):jsxRuntime.jsx("span",{className:Nb({variant:wb(n),size:o,isDisabled:i,isClickable:l,className:s}),children:f})}function Pb({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a=false,isDisabled:i=false,isInvalid:s=false,validationResult:c,placeholder:l="Add items...",selectedItems:d=[],onItemsChange:u,staticItems:m,fetchSuggestions:p,chipVariant:g="secondary",showErrors:f=true,className:y}){let[b,h]=Ze.useState(""),[x,C]=Ze.useState([]),[N,S]=Ze.useState(false),[T,R]=Ze.useState(false),[P,E]=Ze.useState(-1),D=ln(b,300),k=Ze.useRef(null),A=Ze.useRef(null),{isFocused:M,handleFocus:z,handleBlur:F}=fr(),B=Ze.useId(),O=Ze.useCallback(w=>{if(!u||!w.trim())return;let v=w.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]),Q=Ze.useCallback(w=>{u&&u(d.filter(v=>v!==w));},[d,u]);Ze.useEffect(()=>{if(!p)return;let w=true;return (async()=>{let L=D.trim();if(!L){w&&(S(false),C([]),R(false));return}S(true);try{let I=await p(L);if(!w)return;C(I),R(!0);}catch(I){if(!w)return;console.error("Error fetching suggestions:",I),C([]),R(false);}finally{w&&S(false);}})(),()=>{w=false;}},[D,p]),Ze.useEffect(()=>{if(p||!m)return;if(!D.trim()){C([]),R(false);return}let w=m.filter(v=>v.name.toLowerCase().includes(D.toLowerCase())).map(v=>v.id);C(w),R(w.length>0||D.trim().length>0);},[D,m,p]);let H=Ze.useMemo(()=>{let w=x.filter(v=>!d.includes(v));return b.trim()&&!w.includes(b.trim())&&!d.includes(b.trim())?[...w,`Create tag: "${b.trim()}"`]:w},[x,b,d]),U=Ze.useCallback(w=>{h(w.target.value),E(-1),w.target.value&&R(true);},[]),W=Ze.useCallback(w=>{i||(w.startsWith("Create tag:")?O(b):O(w));},[O,b,i]),G=Ze.useCallback(w=>{if(!i)switch(w.key){case "Enter":case ",":if(w.preventDefault(),P>=0&&P<H.length){let v=H[P];v.startsWith("Create tag:")?O(b):O(v);}else b.trim()&&O(b.trim());break;case "Backspace":!b&&d.length>0&&(w.preventDefault(),Q(d[d.length-1]));break;case "ArrowDown":w.preventDefault(),T&&E(v=>v<H.length-1?v+1:v);break;case "ArrowUp":w.preventDefault(),T&&E(v=>v>0?v-1:-1);break;case "Escape":R(false),E(-1);break}},[i,b,d,H,P,T,O,Q]);Ze.useEffect(()=>{let w=v=>{A.current&&v.target instanceof Node&&!A.current.contains(v.target)&&R(false);};return document.addEventListener("mousedown",w),()=>document.removeEventListener("mousedown",w)},[]);let K=()=>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]",cn({isInvalid:s,isDisabled:i,isFocused:M}),"bg-background-input",o==="sm"&&"px-2 py-1 h-[32px]",o==="md"&&"px-2.5 py-1.5 h-[40px]",o==="lg"&&"px-3 py-2 h-[44px]",o==="xl"&&"px-3.5 py-2.5 h-[48px]",i&&"opacity-50 cursor-not-allowed bg-background-muted");return jsxRuntime.jsxs("div",{ref:A,className:tailwindMerge.twMerge("relative flex flex-col gap-1",y),children:[e&&jsxRuntime.jsx(Je,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(Nt,{children:jsxRuntime.jsxs("div",{className:K(),onClick:()=>!i&&k.current?.focus(),children:[d.map(w=>jsxRuntime.jsx(Yr,{variant:g,size:"xs",onRemove:()=>Q(w),isDisabled:i,className:"shrink-0 max-h-full",children:w},w)),jsxRuntime.jsx("input",{ref:k,type:"text",role:"combobox","aria-expanded":T,"aria-haspopup":"listbox","aria-controls":B,"aria-autocomplete":"list",value:b,onChange:U,onKeyDown:G,onFocus:w=>z(w),onBlur:w=>F(w),placeholder:d.length===0?l:"",disabled:i,className:"flex-1 min-w-[120px] h-full !border-0 !outline-none !ring-0 bg-transparent text-text-primary text-sm placeholder:text-text-disabled disabled:cursor-not-allowed focus:!ring-0 focus:!outline-none focus:!border-0 focus-visible:!ring-0 focus-visible:!outline-none focus-visible:!border-0",style:{boxShadow:"none",WebkitAppearance:"none",appearance:"none",border:"none",outline:"none"}})]})}),T&&(b||H.length>0)&&jsxRuntime.jsx("div",{id:B,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:N?jsxRuntime.jsx("div",{className:"px-3 py-2 text-sm text-text-secondary",children:"Loading..."}):H.length>0?H.map((w,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",w.startsWith("Create tag:")&&"italic text-text-secondary"),onClick:()=>W(w),children:w},w)):b&&jsxRuntime.jsx("div",{className:"px-3 py-2 text-sm text-text-secondary",children:"No suggestions found"})}),t&&jsxRuntime.jsx(ke,{size:o,className:"mt-1",children:t}),f&&typeof r=="string"&&jsxRuntime.jsx(ye,{size:o,className:"text-feedback-error-text mt-1",children:r}),f&&typeof r=="function"&&c&&jsxRuntime.jsx(ye,{size:o,className:"text-feedback-error-text mt-1",children:r(c)})]})}var uk={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')},pk={github:()=>import('ace-builds/src-noconflict/theme-github'),github_dark:()=>import('ace-builds/src-noconflict/theme-github_dark')},mk={"ext-language-tools":()=>import('ace-builds/src-noconflict/ext-language_tools')},Gi=new Set;async function ep(e,t){Gi.has(e)||(await t(),Gi.add(e));}async function fk(e,t,r){await Promise.all([ep(`language:${e}`,uk[e]),ep(`theme:${t}`,pk[t]),r?ep("extension:language-tools",mk["ext-language-tools"]):void 0]);}function Eb(e,t,r){let o=Gi.has(`language:${e}`)&&Gi.has(`theme:${t}`);return r?o&&Gi.has("extension:language-tools"):o}function Mb({value:e,readOnly:t=false,onChange:r,language:o="json",theme:n="github_dark",height:a,width:i="100%",className:s,lineHeight:c=19,minLines:l=3,maxLines:d=50,showLineNumbers:u=true,showGutter:m=true,fontSize:p=14,wrapEnabled:g=false}){let f=Ze.useRef(null),[y,b]=Ze.useState(()=>Eb(o,n,!t)),h=Ze.useMemo(()=>{if(a)return a;let x=(e.match(/\n/g)||[]).length+1;return `${Math.max(l,Math.min(x,d))*c+10}px`},[e,a,c,l,d]);return Ze.useEffect(()=>{let x=false,C=!t;return Eb(o,n,C)?(b(true),()=>{x=true;}):(b(false),fk(o,n,C).then(()=>{x||b(true);}).catch(N=>{x||b(true),console.error("Failed to load Ace editor resources",N);}),()=>{x=true;})},[o,t,n]),Ze.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(ck__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 Db=Ze__namespace.createContext({variant:"contained",density:"comfortable",showDividers:true}),Ab=Ze__namespace.createContext(null),yk={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"},Lb={true:"divide-y divide-border-default",false:"gap-3"},vk={comfortable:"px-5 py-3",compact:"px-4 py-2.5"},Ck={comfortable:"px-5 pt-0",compact:"px-4 pt-0"},Sk={comfortable:"h-4 w-4",compact:"h-3.5 w-3.5"};function np(){return Ze__namespace.useContext(Db)}function wk(e){let t=Ze__namespace.useContext(Ab);if(!t)throw new Error(`${e} must be used within a <CollapseItem>`);return t}function Nk({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 Tk({isDisabled:e,isPressed:t,density:r,variant:o,showDividers:n,className:a}){let i="group/collapse-header flex w-full items-start gap-4 text-left transition-colors duration-150",s=e?"cursor-not-allowed text-text-disabled":"cursor-pointer text-text-primary",c=t&&!e?"bg-background-hover":"",l=vk[r];return tailwindMerge.twMerge(i,rt(),l,s,c,o==="plain"&&n?"px-0":"",a)}function kk({density:e,showDividers:t,className:r}){let o="text-text-primary",n=Ck[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=Ze__namespace.useMemo(()=>({variant:e,density:t,showDividers:r}),[e,t,r]),i=tailwindMerge.twMerge("flex w-full flex-col",yk[e],r?Lb.true:Lb.false,e==="plain"&&r?"border-y border-border-default/60":"");return jsxRuntime.jsx(Db.Provider,{value:a,children:jsxRuntime.jsx(reactAriaComponents.DisclosureGroup,{...n,className:Ae(o,i)})})}function fn({className:e,children:t,...r}){let{variant:o,showDividers:n}=np();return jsxRuntime.jsx(reactAriaComponents.Disclosure,{...r,className:reactAriaComponents.composeRenderProps(e,a=>Nk({variant:o,showDividers:n,className:a})),children:a=>jsxRuntime.jsx(Ab.Provider,{value:a,children:t})})}fn.displayName="CollapseItem";function gn({title:e,description:t,startContent:r,endContent:o,indicator:n,indicatorPosition:a="end",showIndicator:i=true,keepIndicatorSpace:s=false,children:c,className:l,...d}){let u=wk("CollapseHeader"),{density:m,variant:p,showDividers:g}=np(),f=Sk[m];return jsxRuntime.jsx(reactAriaComponents.Button,{...d,slot:"trigger","data-expanded":u.isExpanded?"true":void 0,className:reactAriaComponents.composeRenderProps(l,(y,b)=>Tk({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:[c??jsxRuntime.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-1 text-left",children:[e&&jsxRuntime.jsx("span",{className:"truncate font-medium text-text-primary",children:e}),t&&jsxRuntime.jsx("span",{className:"text-sm text-text-secondary",children:t})]}),o&&jsxRuntime.jsx("div",{className:"flex flex-shrink-0 items-center text-sm text-text-secondary",children:o})]}),a==="end"&&x]})}})}gn.displayName="CollapseHeader";function bn({className:e,children:t,...r}){let{density:o,showDividers:n}=np();return jsxRuntime.jsx(reactAriaComponents.DisclosurePanel,{...r,className:reactAriaComponents.composeRenderProps(e,a=>kk({density:o,showDividers:n,className:a})),children:jsxRuntime.jsx(nn,{children:t})})}bn.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 ip(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 Mk({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,transparent:i,className:s,validationResult:c,value:l,defaultValue:d,onChange:u,placeholder:m="#000000",showColorSwatch:p=true,reserveErrorSpace:g=true,...f}){let[y,b]=Ze.useState(d||""),[h,x]=Ze.useState(l||d||""),[C,N]=Ze.useState(false),[S,T]=Ze.useState(null),{isFocused:R,handleFocus:P,handleBlur:E}=fr(),D=l!==void 0?l:y;Ze.useEffect(()=>{l!==void 0&&x(l);},[l]);let k=D?!qa(D):false,A=Ze.useCallback(F=>{if(x(F),qa(F)){let B=ip(F);u?u(B):b(B);}else F===""&&(u?u(""):b(""));},[u]),M=Ze.useCallback(F=>{let B=ip(F);x(B),u?u(B):b(B);},[u]),z=Ze.useCallback(F=>{if(qa(h)){let B=ip(h);x(B),u&&B!==D?u(B):!u&&B!==y&&b(B);}E(F,f.onBlur);},[h,D,y,u,E,f.onBlur]);return jsxRuntime.jsx(reactAriaComponents.TextField,{...f,isRequired:a,className:Ae(s,"group flex flex-col"),children:({isDisabled:F})=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(Je,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(Nt,{children:jsxRuntime.jsxs("div",{className:"flex gap-2",children:[jsxRuntime.jsxs("div",{className:"flex-1 relative",children:[jsxRuntime.jsx(gl,{size:o,disabled:F,type:"text",value:h,placeholder:m,onFocus:B=>P(B,f.onFocus),onBlur:z,onChange:B=>A(B.target.value),className:tailwindMerge.twMerge(Gt({isInvalid:k,isDisabled:F,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:Ke[o].height},children:jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-6 h-6 rounded border shadow-sm",qa(D)?"border-border-default":"border-border-default bg-background-muted"),style:qa(D)?{backgroundColor:D}:void 0,"aria-hidden":"true",children:!qa(D)&&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:()=>N(!C),isDisabled:F,className:"flex-shrink-0",children:"Pick"})})]})}),g?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(ye,{size:o,children:r}):typeof r=="function"&&c?jsxRuntime.jsx(ye,{size:o,children:r(c)}):t?jsxRuntime.jsx(ke,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(ye,{size:o,className:"mt-1",children:r}):typeof r=="function"&&c?jsxRuntime.jsx(ye,{size:o,className:"mt-1",children:r(c)}):t?jsxRuntime.jsx(ke,{size:o,className:"mt-1",children:t}):null}),C&&S&&jsxRuntime.jsx(St,{triggerRef:{current:S},isOpen:C,onOpenChange:N,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:D||"#000000",onChange:M,style:{width:"200px",height:"200px"}}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("div",{className:"w-10 h-10 rounded border border-border-default shadow-sm flex-shrink-0",style:{backgroundColor:D||"#000000"}}),jsxRuntime.jsx("div",{className:"flex-1 text-text-primary text-[length:var(--control-text-sm)] font-mono",children:D||"#000000"})]})]})})]})})}function Bb({isOpen:e,onClose:t,onConfirm:r,title:o,message:n,confirmLabel:a="Confirm",cancelLabel:i="Cancel",confirmVariant:s,isDestructive:c=false,isLoading:l=false,maxWidth:d="500px",minWidth:u="400px"}){return jsxRuntime.jsx(mr,{isOpen:e,onClose:t,title:o,maxWidth:d,minWidth:u,primaryAction:{label:a,onPress:()=>{r();},variant:s??(c?"destructive":"primary"),isLoading:l},secondaryAction:{label:i,onPress:t,variant:"secondary",isDisabled:l},children:jsxRuntime.jsx("div",{className:"text-text-primary",children:n})})}function Vb({isConnected:e,connectedAt:t,disconnectedAt:r,showTimestamp:o=false,isLoading:n,size:a="sm",shape:i="pill",...s}){if(n)return jsxRuntime.jsx(j,{className:"inline-flex h-6 w-24"});let c=e?"Connected":"Disconnected",l=e?"success":"neutral",d=null;if(o){if(e&&t)d=qs(t);else if(!e&&r){let u=qs(r);d=u?`Offline ${u}`:null;}}return jsxRuntime.jsxs("div",{className:"inline-flex flex-col gap-1",children:[jsxRuntime.jsx(gt,{variant:l,size:a,shape:i,dot:e,dotPulse:e,...s,children:c}),d&&jsxRuntime.jsx("span",{className:"text-xs text-text-secondary",children:d})]})}function Ob({firstName:e,lastName:t,email:r,phone:o,avatarUrl:n,href:a,LinkComponent:i,variant:s="outlined",layout:c="horizontal",showEmail:l=true,showPhone:d=false,isLoading:u=false,className:m,contentClassName:p,piiEntity:g}){let f=`${e} ${t}`.trim(),y=({children:h,className:x})=>a?i?jsxRuntime.jsx(i,{href:a,className:x,children:h}):jsxRuntime.jsx(pt,{href:a,variant:"unstyled",className:tailwindMerge.twMerge("hover:underline",x),asButton:false,children:h}):jsxRuntime.jsx("span",{className:x,children:h}),b=c==="vertical";return u?jsxRuntime.jsx($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(j,{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(j,{width:"70%",height:20,className:tailwindMerge.twMerge(b&&"mx-auto")}),jsxRuntime.jsx(j,{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(Go,{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:[l&&r&&jsxRuntime.jsxs("div",{className:"flex items-center gap-2.5 text-text-primary",children:[jsxRuntime.jsx(V,{name:"Envelope",size:16,className:"text-text-secondary flex-shrink-0"}),jsxRuntime.jsx(pt,{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(pt,{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 Pl({firstName:e,lastName:t,email:r,avatarUrl:o,layout:n="stacked",size:a="md",href:i,LinkComponent:s,linkVariant:c="unstyled",emphasis:l="normal",showEmail:d=false,badge:u,avatarShape:m,isLoading:p=false,className: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(),N={strong:"font-semibold text-text-primary",high:"font-semibold text-text-primary",normal:"text-text-primary",low:"text-text-secondary"}[l],S=({children:T,className:R})=>i?s?jsxRuntime.jsx(s,{href:i,className:R,children:T}):jsxRuntime.jsx(pt,{href:i,variant:c,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(j,{width:h.skeletonAvatar,height:h.skeletonAvatar,className:"flex-shrink-0 rounded-full"}),jsxRuntime.jsx(j,{width:h.skeletonText,height:h.skeletonAvatar*.5})]}):jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",h.gap,g),children:[jsxRuntime.jsx(j,{width:h.skeletonAvatar,height:h.skeletonAvatar,className:"flex-shrink-0 rounded-full"}),jsxRuntime.jsxs("div",{className:"flex flex-col gap-1",children:[jsxRuntime.jsx(j,{width:h.skeletonText,height:16}),d&&jsxRuntime.jsx(j,{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(Go,{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",N,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(Go,{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",N,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 lp=Ze.createContext(null);function zb(e){let t=Ze.useContext(lp),r=Ze.useRef(null),o=e??r,[n,a]=Ze.useState(()=>t||{current:"xl",isSm:true,isMd:true,isLg:true,isXl:true,is2Xl:false,isMobile:false,isDesktop:true});return Ze.useEffect(()=>{if(t){a(t);return}let i=o.current;if(!i||typeof ResizeObserver>"u")return;let s=()=>{let l=i.offsetWidth,d=l>=640,u=l>=768,m=l>=1024,p=l>=1280,g=l>=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 c=new ResizeObserver(s);return c.observe(i),()=>c.disconnect()},[t,o]),n}function Gb({children:e,className:t}){let r=Ze.useRef(null),[o,n]=Ze.useState({current:"base",isSm:false,isMd:false,isLg:false,isXl:false,is2Xl:false,isMobile:true,isDesktop:false});return Ze.useEffect(()=>{let a=r.current;if(!a||typeof ResizeObserver>"u")return;let i=()=>{let c=a.offsetWidth,l=c>=640,d=c>=768,u=c>=1024,m=c>=1280,p=c>=1536,g="base";p?g="2xl":m?g="xl":u?g="lg":d?g="md":l&&(g="sm"),n({current:g,isSm:l,isMd:d,isLg:u,isXl:m,is2Xl:p,isMobile:!d,isDesktop:d});};i();let s=new ResizeObserver(i);return s.observe(a),()=>s.disconnect()},[]),jsxRuntime.jsx(lp.Provider,{value:o,children:jsxRuntime.jsx("div",{ref:r,className:t,style:{width:"100%"},children:e})})}var Rl={duration:.5,ease:"easeInOut"},Jr=Ze.createContext(null);function El(){let e=Ze.useRef({played:false});return Ze.useEffect(()=>{e.current.played=true;},[]),e.current}var jn=()=>{let e=Ze.useContext(Jr);if(!e)throw new Error("useChartContext must be used within a ChartContextProvider");return e};function Ml(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 xn=({data:e,color:t="var(--color-viz-default)",baseline:r,fillOpacity:o=.1,showLine:n=true,maxGapMs:a,animate:i=true})=>{let s=Ze.useId(),c=Ze.useId(),{xScale:l,yScale:d,animationSettings:u,entrance:m}=jn(),[p]=Ze__namespace.default.useState(()=>m?.played!==true),g=i&&p,f=l.range(),y=d.range(),b=(T,R)=>typeof r=="function"?r(T,R):r??0,h=T=>T.chartYValue??T.yValue,x=a!=null?Ml(e,a):e,C=i?void 0:"non-scaling-stroke",N={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?l(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?l(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?l(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:c,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(#${c})`,children:jsxRuntime.jsx(framerMotion.motion.g,{initial:{scaleY:0},animate:{scaleY:1},transition:{duration:u.duration,ease:u.ease},style:N,children:S})}):jsxRuntime.jsx("g",{style:N,children:S})]})};var Dl=({data:e,color:t="var(--color-viz-default)",opacity:r=1,categoryColors:o={}})=>{let{xScale:n,yScale:a,animationSettings:i}=jn(),s=Ze.useId(),c=n.range(),l=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:c[0],y:l[1],width:c[1]-c[0],height:l[0]-l[1]})})}),jsxRuntime.jsx("g",{clipPath:`url(#${s})`,children:jsxRuntime.jsx(framerMotion.motion.g,{initial:{scaleY:0},animate:{scaleY:1},transition:{duration:i.duration,ease:i.ease},style:{transformOrigin:`0 ${a(0)}px`,isolation:"isolate"},children:d.map((p,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),N=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:N,fill:R,opacity:r,rx:1},p.xValue.getTime())})})})]})};function tP(e,t){return e.length*(t*.6)}var qn;function rP(){if(qn!==void 0)return qn;if(typeof window>"u"||typeof document>"u")return qn=null,qn;try{qn=document.createElement("canvas").getContext("2d");}catch{qn=null;}return qn}function Al(e,t=12,r="system-ui"){let o=rP();return o?(o.font=`${t}px ${r}`,o.measureText(e).width):tP(e,t)}function yn(e,t=12,r="system-ui"){return e.length===0?0:Math.max(...e.map(o=>Al(o,t,r)))}function Kb(e,t,r=12,o="system-ui"){if(t<=0)return "";if(Al(e,r,o)<=t)return e;let n="\u2026";if(Al(n,r,o)>t)return "";let a=0,i=e.length;for(;a<i;){let s=Math.ceil((a+i)/2);Al(e.slice(0,s)+n,r,o)<=t?a=s:i=s-1;}return e.slice(0,a)+n}var Il=(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 sP(e){return e>=1e9?"GW":e>=1e6?"MW":e>=1e3?"kW":"W"}function lP(e){return e>=1e3?"kA":e<1?"mA":"A"}function cP(e){return e>=1e3?"kV":e<1?"mV":"V"}function dP(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?$d[e.sourceUnit]:1;return {...e,unit:_d(t*r)}}case "power":return e.unit||e.autoScale===false?e:{...e,unit:sP(t)};case "current":return e.unit||e.autoScale===false?e:{...e,unit:lP(t)};case "voltage":return e.unit||e.autoScale===false?e:{...e,unit:cP(t)};case "resistance":return e.unit||e.autoScale===false?e:{...e,unit:dP(t)};default:return e}}var uP=e=>e.baselineValue??0,Ue={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 c=d=>{if(d==null)return "";if(typeof d=="string")return d;if(typeof d=="number")return d.toString();if(typeof d=="object"&&"props"in d){let u=d.props;if(u?.children)return Array.isArray(u.children)?u.children.map(c).join(""):c(u.children)}return ""};return c(s)||i.toString()}return i.toString()},r=i=>{if(i==null)return "-";if(typeof e=="string"){let s=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 dp=(e,t)=>{let r=d3Array.extent(e,o=>o.xValue);return scale.scaleTime({range:[Ue.left,t-Ue.right],domain:r,nice:true})},Ui=(e,t,r,o)=>{let n=Dr(r);if(o)return scale.scaleLinear({range:[t-Ue.bottom,Ue.top],domain:o,nice:true});let a=d3Array.min(e,l=>Math.min(l.yValue,l.chartYValue??l.yValue,l.baselineValue??l.yValue))||0,i=d3Array.max(e,l=>Math.max(l.yValue,l.chartYValue??l.yValue,l.baselineValue??l.yValue))||0,s=n.min!==void 0?n.min:a>=0?0:a*1.1,c=n.max!==void 0?n.max:i<=0?0:i*1.1;return scale.scaleLinear({range:[t-Ue.bottom,Ue.top],domain:[s,c],nice:true})};function Ki(e){return e instanceof Date&&!Number.isNaN(e.getTime())}var Yi=12;function pP(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=pu({start:t[0],end:t[1]},{compact:o}),l=[t[0],new Date((t[0].getTime()+t[1].getTime())/2),t[1]].map(h=>s(h)),d=yn(l,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,N=Math.round(C/b)*b,S=f[f.length-1].getTime(),T=N>S?N:S+b;if(T>=a)break;f.push(new Date(T));}return f.push(t[1]),f}var mP=({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,c=a?n[1].getTime():0,l=Ze.useMemo(()=>a?pu({start:n[0],end:n[1]},{compact:i}):()=>"",[s,c,i,a]),d=Ze.useMemo(()=>pP(r,n,12,i),[r,s,c,i]);return d.length===0?null:jsxRuntime.jsx(axis.Axis,{orientation:"bottom",top:e,scale:t,tickValues:d,tickFormat:u=>{let m=u;return Ki(m)?l(m):""},stroke:"var(--color-border-muted)",tickStroke:"var(--color-border-muted)",tickLabelProps:(u,m,p)=>({fill:"var(--color-text-secondary)",fontSize:12,textAnchor:m===0?"start":m===p.length-1?"end":"middle"}),rangePadding:0})};function _a(e,t=12){let r=t*2.5,o=Math.floor(e/r);return Math.max(2,Math.min(6,o))}var up=12,fP=({left:e,scale:t,yFormatter:r,height:o})=>{let n=Dr(r),a=Ze.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:up,textAnchor:"end"},c=t(i),[l,d]=t.range(),u=Math.min(l,d),m=Math.max(l,d);return c-u<up/2?{...s,verticalAnchor:"start"}:m-c<up/2?{...s,verticalAnchor:"end"}:{...s,dy:"0.33em"}}})},gP=({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"})}),bP=({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=>Kb(String(o),r,Yi),tickLabelProps:()=>({fill:"var(--color-text-secondary)",fontSize:Yi,textAnchor:"end",dx:"-0.25em",dy:"0.33em"})}),hP=({top:e,scale:t,yFormatter:r,width:o})=>{let n=Dr(r),a=Ze.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:mP,Left:fP,CategoryBottom:gP,CategoryLeft:bP,NumericBottom:hP};var Co=({data:e,formatter:t,label:r,categoryLabels:o})=>{if(!e)return null;let n=Ze__namespace.default.useContext(Jr),a=o??n?.categoryLabels,i=n?.xScale,s=n?.width,c=n?.height,l=Dr(t),d=h=>{if(h.baselineValue===void 0)return l.format(h.value);let x=Math.min(h.baselineValue,h.value),C=Math.max(h.baselineValue,h.value);return `${l.format(x)} \u2013 ${l.format(C)}`},u=Ze__namespace.default.useRef(null),[m,p]=Ze__namespace.default.useState({x:0,y:0,translate:"translate(-50%, -100%)"});Ze__namespace.default.useEffect(()=>{if(!u.current)return;let x=u.current.getBoundingClientRect(),C=s??window.innerWidth,N=c??window.innerHeight,S=e.x,T=e.y,R=16,P=e.x+x.width+R<=C,E=e.x-x.width-R>=0,D;e.position==="left"?D=E||!P:D=!P&&E;let k=D?"translate(calc(-100% - 16px), -50%)":"translate(16px, -50%)";if(!P&&!E){let A=C-e.x,M=e.x;A<=M?(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>N&&(T=N-x.height/2),p({x:S,y:T,translate:k});},[e.x,e.y,e.position,s,c]);let g=i?.domain(),y=g&&g.length===2&&g.every(h=>h instanceof Date)?cg({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,N)=>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}-${N}`))})})()]}):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 Zb={top:20,right:20,bottom:50,left:60},th=12,TP=.4,_b=60;function kP({margin:e,orientation:t,labelsKey:r,width:o}){return Ze.useMemo(()=>{if(e)return e;if(t!=="horizontal")return Zb;let n=yn(r.split("\0"),Yi,"system-ui"),a=Math.max(_b,Math.floor(o*TP)),i=Math.ceil(n)+th;return {...Zb,left:Math.min(Math.max(i,_b),a)}},[e,t,r,o])}var rh=({data:e,width:t,height:r,margin:o,color:n,yFormatter:a={type:"number"},showGrid:i=true,showAxes:s=true,animate:c=true,barRadius:l=4,barPadding:d=.3,onBarClick:u,onBarHover:m,activeIndex:p,className:g,style:f,"aria-label":y,orientation:b="horizontal",showTooltip:h=true})=>{let[x,C]=Ze.useState(null),[N,S]=Ze.useState(null),[T,R]=Ze.useState(null),[P,E]=Ze.useState(t??600),[D,k]=Ze.useState(r??300),A=Ze.useRef(null),M=p??x,z=Ze.useId(),F=n||"var(--color-viz-default)";Ze.useEffect(()=>{if(t!==void 0&&r!==void 0){E(t),k(r);return}if(!A.current)return;let w=new ResizeObserver(v=>{for(let L of v)t===void 0&&E(L.contentRect.width),r===void 0&&k(L.contentRect.height);});return w.observe(A.current),t===void 0&&E(A.current.offsetWidth),r===void 0&&k(A.current.offsetHeight||300),()=>{w.disconnect();}},[t,r]);let B=e.map(w=>w.label).join("\0"),O=kP({margin:o,orientation:b,labelsKey:B,width:P}),Q=Math.max(0,O.left-th),{xScale:H,yScale:U,innerWidth:W,innerHeight:G}=Ze.useMemo(()=>{let w=P-O.left-O.right,v=D-O.top-O.bottom;if(b==="horizontal"){let I=d3Array.max(e,X=>X.value)||0;return {xScale:scale.scaleLinear({range:[0,w],domain:[0,I*1.1],nice:true}),yScale:scale.scaleBand({range:[0,v],domain:e.map(X=>X.label),padding:d}),innerWidth:w,innerHeight:v}}let L=d3Array.max(e,I=>I.value)||0;return {xScale:scale.scaleBand({range:[0,w],domain:e.map(I=>I.label),padding:d}),yScale:scale.scaleLinear({range:[v,0],domain:[0,L*1.1],nice:true}),innerWidth:w,innerHeight:v}},[e,P,D,O,d,b]);if(e.length===0)return jsxRuntime.jsx("div",{ref:A,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 K=(w,v)=>{if(C(w),m?.(v,w),w!==null&&v){let L,I;if(b==="horizontal"){let oe=H(v.value),ie=U(v.label)||0,re=U.bandwidth();L=O.left+oe,I=O.top+ie+re/2;}else {let oe=H,ie=U,re=oe(v.label)??0,ae=oe.bandwidth(),Le=ie(v.value);L=O.left+re+ae/2,I=O.top+Le;}let X=L>P/2;R(v.label),S({xValue:new Date,series:[{label:"Value",value:v.value,color:v.color||F}],x:L,y:I,position:X?"left":"right"});}else S(null),R(null);};return jsxRuntime.jsxs("div",{ref:A,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:D,children:[jsxRuntime.jsx("defs",{children:jsxRuntime.jsx(gradient.LinearGradient,{id:`${z}-bar`,from:F,to:F,toOpacity:.85})}),jsxRuntime.jsxs(group.Group,{left:O.left,top:O.top,children:[i&&jsxRuntime.jsx("g",{className:"grid-lines",children:(b==="horizontal"?H.ticks(5):U.ticks(5)).map(w=>{let v=b==="horizontal"?0:U(w),L=b==="horizontal"?H(w):0;return jsxRuntime.jsx("line",{x1:b==="horizontal"?L:0,y1:b==="horizontal"?0:v,x2:b==="horizontal"?L:W,y2:b==="horizontal"?G:v,stroke:"var(--color-border-default)",strokeOpacity:.5,strokeDasharray:"2,3"},w)})}),e.map((w,v)=>{let L=M===v||M==null,I=w.color||`url(#${z}-bar)`;if(b==="horizontal"){let ue=H(w.value),ge=U.bandwidth(),le=U(w.label)||0;return jsxRuntime.jsx(framerMotion.motion.rect,{x:0,y:le,width:ue,height:ge,fill:I,rx:l,ry:l,initial:c?{width:0,opacity:.5}:void 0,animate:{width:ue,opacity:L?1:.5},transition:{duration:.5,delay:v*.05,ease:"easeOut",opacity:{duration:.15,delay:0}},style:{cursor:u||m?"pointer":"default"},onMouseEnter:()=>K(v,w),onMouseLeave:()=>K(null,null),onClick:()=>u?.(w,v)},w.label)}let X=H,oe=U,ie=X.bandwidth(),re=X(w.label)??0,ae=oe(w.value),Le=Math.max(0,G-ae);return c?jsxRuntime.jsx(framerMotion.motion.rect,{x:re,width:ie,fill:I,rx:l,ry:l,initial:{y:G,height:0,opacity:.5},animate:{y:ae,height:Le,opacity:L?1:.5},transition:{duration:.5,delay:v*.05,ease:"easeOut",opacity:{duration:.15,delay:0}},style:{cursor:u||m?"pointer":"default"},onMouseEnter:()=>K(v,w),onMouseLeave:()=>K(null,null),onClick:()=>u?.(w,v)},w.label):jsxRuntime.jsx("rect",{x:re,y:ae,width:ie,height:Le,fill:I,rx:l,ry:l,opacity:L?1:.5,style:{cursor:u||m?"pointer":"default",transition:"opacity 150ms ease-out"},onMouseEnter:()=>K(v,w),onMouseLeave:()=>K(null,null),onClick:()=>u?.(w,v)},w.label)}),s&&b==="vertical"&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Xr.CategoryBottom,{top:G,scale:H}),jsxRuntime.jsx(Xr.Left,{left:0,scale:U,yFormatter:a,height:G})]}),s&&b==="horizontal"&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Xr.NumericBottom,{top:G,scale:H,yFormatter:a,width:W}),jsxRuntime.jsx(Xr.CategoryLeft,{left:0,scale:U,availableWidth:Q})]})]})]}),h&&jsxRuntime.jsx(Co,{data:N,formatter:a,label:T??void 0})]})};var oh=({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})},EP=({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(oh,{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,c]=Ze__namespace.default.useState(false),[l,d]=Ze__namespace.default.useState(null),[u,m]=Ze__namespace.default.useState(false),[p,g]=Ze__namespace.default.useState(false),f=Ze__namespace.default.useCallback(async b=>{c(true),d(b),g(false);try{await t(b);}catch(h){console.error("Export failed:",h);}finally{c(false),d(null);}},[t]),y=Ze__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(EP,{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(wt,{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(oh,{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(wt,{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:l==="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:l==="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:l==="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(St,{placement:"top end",className:"min-w-48 p-1 bg-background-surface rounded-lg shadow-xl ring-1 ring-border-default",children:jsxRuntime.jsxs(reactAriaComponents.Menu,{onAction:y,className:"outline-none",children:[jsxRuntime.jsx(reactAriaComponents.MenuItem,{id:"csv",className:"flex items-center gap-2 px-3 py-2 text-sm text-text-primary rounded cursor-pointer hover:bg-background-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus focus-visible:ring-offset-1 focus-visible:ring-offset-background-surface data-[focused]:bg-background-hover data-[focused]:ring-2 data-[focused]:ring-border-focus data-[focused]:ring-offset-1 data-[focused]:ring-offset-background-surface",isDisabled:s,children:jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(V,{name:"List",size:14}),l==="csv"?"Exporting...":"Export as CSV"]})}),jsxRuntime.jsx(reactAriaComponents.MenuItem,{id:"svg",className:"flex items-center gap-2 px-3 py-2 text-sm text-text-primary rounded cursor-pointer hover:bg-background-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus focus-visible:ring-offset-1 focus-visible:ring-offset-background-surface data-[focused]:bg-background-hover data-[focused]:ring-2 data-[focused]:ring-border-focus data-[focused]:ring-offset-1 data-[focused]:ring-offset-background-surface",isDisabled:s,children:jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(V,{name:"Code",size:14}),l==="svg"?"Exporting...":"Export as SVG"]})}),jsxRuntime.jsx(reactAriaComponents.MenuItem,{id:"png",className:"flex items-center gap-2 px-3 py-2 text-sm text-text-primary rounded cursor-pointer hover:bg-background-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus focus-visible:ring-offset-1 focus-visible:ring-offset-background-surface data-[focused]:bg-background-hover data-[focused]:ring-2 data-[focused]:ring-border-focus data-[focused]:ring-offset-1 data-[focused]:ring-offset-background-surface",isDisabled:s,children:jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(V,{name:"DownloadSimple",size:14}),l==="png"?"Exporting...":"Export as PNG"]})})]})})]})]})]})};var Vl=cf(gp());var ah=["stroke","fill","color","stop-color","flood-color","lighting-color"],ih=/var\s*\(/;function sh(e,t){let r=[e,...Array.from(e.querySelectorAll("*"))],o=[t,...Array.from(t.querySelectorAll("*"))],n=Math.min(r.length,o.length);for(let a=0;a<n;a++){let i=r[a],s=o[a];if(!(i instanceof Element)||!(s instanceof Element))continue;let c=window.getComputedStyle(i);for(let l of ah){let d=s.getAttribute(l);if(d&&ih.test(d)){let u=c.getPropertyValue(l);u&&s.setAttribute(l,u.trim());}}if(s instanceof HTMLElement||s instanceof SVGElement)for(let l of ah){let d=l,u=s.style.getPropertyValue(d);if(u&&ih.test(u)){let m=c.getPropertyValue(d);m&&s.style.setProperty(d,m.trim());}}}}function bp(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 hp(e,t,r={},o){let n=Array.isArray(t[0])?t:[t];try{switch(e){case "csv":await LP(n,r);break;case "svg":await DP(o,r);break;case "png":await AP(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 LP(e,t){try{let r=t.yFormat?uu(t.yFormat):null,o=t.yFormat,n=m=>{if(m==null||m==="")return "";if(!o)return typeof m=="number"?m:String(m);let p=lg(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}),c=i.map(m=>{let p={[t.xLabel||"Date"]:m.toLocaleString("en-US",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"})};return e.forEach((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}),l=MP__default.default.unparse(c,{header:!0,skipEmptyLines:!0}),d=new Blob([l],{type:"text/csv;charset=utf-8;"}),u=bp(t.filename||"chart-data","csv",t.timestamp!==!1);(0,Vl.saveAs)(d,u);}catch(r){throw new Error(`CSV export failed: ${r instanceof Error?r.message:"Unknown error"}`)}}async function DP(e,t){if(!e.current)throw new Error("SVG element not found");try{let r=e.current,o=r.cloneNode(!0);if(sh(r,o),!o.querySelector("rect[data-background]")){let l=document.createElementNS("http://www.w3.org/2000/svg","rect");l.setAttribute("width",o.getAttribute("width")||"100%"),l.setAttribute("height",o.getAttribute("height")||"100%"),l.setAttribute("fill","white"),l.setAttribute("data-background","true"),o.insertBefore(l,o.firstChild);}let i=new XMLSerializer().serializeToString(o);i.includes("<?xml")||(i=`<?xml version="1.0" encoding="UTF-8"?>
|
|
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"}),c=bp(t.filename||"chart","svg",t.timestamp!==!1);(0,Vl.saveAs)(s,c);}catch(r){throw new Error(`SVG export failed: ${r instanceof Error?r.message:"Unknown error"}`)}}async function AP(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);sh(n,i),i.setAttribute("width",String(a.width)),i.setAttribute("height",String(a.height)),i.removeAttribute("transform");let s=i.getElementsByTagName("text");Array.from(s).forEach(m=>{m.style.fontFamily||(m.style.fontFamily="system-ui, -apple-system, sans-serif"),m.style.fontSize||(m.style.fontSize="12px");});let c=document.createElementNS("http://www.w3.org/2000/svg","rect");c.setAttribute("width",String(a.width)),c.setAttribute("height",String(a.height)),c.setAttribute("fill","white"),i.insertBefore(c,i.firstChild);let d=new XMLSerializer().serializeToString(i);d.includes("xmlns=")||(d=d.replace("<svg",'<svg xmlns="http://www.w3.org/2000/svg"'));let u=new Blob([d],{type:"image/svg+xml;charset=utf-8"});return o=URL.createObjectURL(u),new Promise((m,p)=>{let 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=bp(t.filename||"chart","png",t.timestamp!==!1);(0,Vl.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 IP(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 FP(e){return {csv:"CSV Spreadsheet",svg:"SVG Vector Image",png:"PNG Image"}[e]||"Unknown Format"}function Ol({datasets:e,metadata:t,svgRef:r}){return Ze.useCallback(async o=>{try{await hp(o,e,t,r);}catch(n){throw console.error("Chart export failed:",n),n}},[e,t,r])}var xp=({data:e,seriesMetadata:t,width:r,height:o,onBrushChange:n,brushRegion:a,margin:i=Ue,yDomain:s})=>{let c=Ze.useRef(null),l=Ze.useRef(false),d=Ze.useMemo(()=>e.flat(),[e]),u=Ze.useMemo(()=>({top:10,bottom:15,left:i.left,right:i.right}),[i]),m=r-u.left-u.right,p=Ze.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=Ze.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(l.current)return;if(!h){n(null);return}let{x0:x,x1:C}=h;if(x===C)return;let N=new Date(x),S=new Date(C);if(!(Number.isNaN(N.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(N.getTime()-T)<E&&Math.abs(S.getTime()-R)<E){n(null);return}}n([N,S]);}},y=Ze.useMemo(()=>{if(d.length!==0)return {start:{x:0,y:u.top},end:{x:m,y:o-u.bottom}}},[m,o,d]);Ze.useEffect(()=>{if(!c.current||d.length===0)return;let h=c.current.state;if(h?.isBrushing||h?.activeHandle)return;let x=Math.min(...d.map(P=>P.xValue.getTime())),C=Math.max(...d.map(P=>P.xValue.getTime())),N=a?a[0]:new Date(x),S=a?a[1]:new Date(C),T=c.current.state?.extent;if(T){let P=p.invert(T.x0),E=p.invert(T.x1),D=Math.abs(P.getTime()-N.getTime()),k=Math.abs(E.getTime()-S.getTime());if(D<1e3&&k<1e3)return}l.current=true;let R=P=>{let E=c.current.getExtent({x:p(N),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}};c.current.updateBrush(R),setTimeout(()=>{l.current=false;},50);},[a,p,o,d]);let b={fill:"url(#brush_pattern)",fillOpacity:.15,stroke:"var(--color-border-focus)",strokeWidth:1.5,strokeOpacity:.3};return jsxRuntime.jsx("div",{className:"mt-2",children:jsxRuntime.jsxs("svg",{width:r,height:o,children:[jsxRuntime.jsx(pattern.PatternLines,{id:"brush_pattern",height:8,width:8,stroke:"var(--color-text-secondary)",strokeWidth:1,orientation:["diagonal"]}),jsxRuntime.jsxs("g",{transform:`translate(${u.left}, 0)`,children:[e.map((h,x)=>jsxRuntime.jsx(shape.LinePath,{data:h,x: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:c,resizeTriggerAreas:["left","right"],brushDirection:"horizontal",initialBrushPosition:y,onChange:f,onClick:()=>n(null),selectedBoxStyle:b,useWindowMoveEvents:true})]})]})})};function Uo(e){switch(e){case "command":return Ot("--color-action-brand","#111111");case "success":return Ot("--color-feedback-success-border","#278a4a");case "warning":return Ot("--color-feedback-warning-border","#c88420");case "error":return Ot("--color-feedback-error-border","#c42d2d");case "alert":return Ot("--color-feedback-warning-border","#c88420");default:return Ot("--color-text-secondary","#525250")}}function Hl({events:e,color:t,showLabels:r=false}){let o=Ze.useContext(Jr),[n,a]=Ze.useState(null);if(!o)return console.warn("ChartEventMarkers must be used within a ChartContainer"),null;let{xScale:i,yScale:s,height:c,tooltip:l,datasets:d,seriesMetadata:u,seriesTypes:m,categoryColors:p}=o,g=e.filter(b=>{let h=i(b.timestamp);return h>=Ue.left&&h<=i.range()[1]}),f=Ze.useCallback((b,h)=>{a(h);let x=i(b.timestamp),C=x>(i.range()[1]-Ue.right-Ue.left)/2+Ue.left,N=[];d&&u&&d.forEach((R,P)=>{if(R.length===0)return;let E=d3Array.bisector(z=>z.xValue).left,D=E(R,b.timestamp),k=R[D-1],A=R[D],M;if(!k)M=A;else if(!A)M=k;else {let z=Math.abs(b.timestamp.getTime()-k.xValue.getTime()),F=Math.abs(b.timestamp.getTime()-A.xValue.getTime());M=z<F?k:A;}M&&u[P]&&N.push({label:u[P].label,value:M.yValue,color:u[P].color,type:m?.[P]||"line",...M.category&&{category:M.category,categoryColor:p?.[M.category]}});});let T=g.filter(R=>Math.abs(i(R.timestamp)-x)<=10).map(R=>({label:R.label,color:R.color??t??Uo(R.type),metadata:R.metadata}));N.push({label:T.length>1?`${T.length} events`:b.label,value:0,color:b.color??t??Uo(b.type),type:"event"}),l.show({xValue:b.timestamp,series:N,x,y:N.length>1&&typeof N[0].value=="number"?s(N[0].value):c/2,position:C?"left":"right",isEvent:true,eventMetadata:b.metadata,eventItems:T});},[i,s,c,l,t,d,u,m,p,g]),y=Ze.useCallback(()=>{a(null),l.hide();},[l]);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??Uo(b.type),N=n===h;return jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("line",{x1:x,y1:Ue.top,x2:x,y2:c-Ue.bottom,stroke:C,strokeWidth:N?3:2,strokeDasharray:"4 4",strokeOpacity:N?.9:.6,pointerEvents:"none"}),jsxRuntime.jsx("circle",{cx:x,cy:Ue.top,r:N?5:4,fill:C,stroke:"var(--color-background-surface)",strokeWidth:2,pointerEvents:"none"}),jsxRuntime.jsx("circle",{cx:x,cy:c-Ue.bottom,r:N?5:4,fill:C,stroke:"var(--color-background-surface)",strokeWidth:2,pointerEvents:"none"}),r&&jsxRuntime.jsx("text",{x,y:Ue.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:Ue.top,width:20,height:c-Ue.top-Ue.bottom,fill:"transparent",style:{cursor:"pointer"},onMouseEnter:()=>f(b,h),onMouseLeave:y})]},`${b.timestamp.getTime()}-${h}`)})})}var QP=d3Array.bisector(e=>e.xValue).left;function ZP(e,t){if(e.length===0)return;let r=QP(e,t),o=e[r-1],n=e[r];return o?n?Math.abs(t.getTime()-o.xValue.getTime())<Math.abs(t.getTime()-n.xValue.getTime())?{point:o,index:r-1}:{point:n,index:r}:{point:o,index:r-1}:n?{point:n,index:r}:void 0}function Gl({spans:e,opacity:t=.25,color:r}){let o=Ze.useContext(Jr),[n,a]=Ze.useState(null),i=Ze.useRef(Number.NEGATIVE_INFINITY),s=o?.xScale,c=o?.yScale,l=o?.height,d=o?.tooltip,u=o?.datasets,m=o?.seriesMetadata,p=o?.seriesTypes,g=o?.categoryColors,[f,y]=s?.domain()??[new Date(0),new Date(0)],[b,h]=s?.range()??[0,0],x=Ze.useCallback((D,k,A)=>{if(!s||!d||(a(A),D.timeStamp-i.current<16))return;i.current=D.timeStamp;let{left:M}=D.currentTarget.ownerSVGElement?.getBoundingClientRect()??{left:0},z=D.clientX-M,F=s.invert(z),B=[];u&&m&&u.forEach((W,G)=>{let K=m[G],w=ZP(W,F);if(!w||!K)return;let{point:v,index:L}=w,I=Il(K,v,L);B.push({label:K.label,value:v.yValue,...I!==void 0?{baselineValue:I}:{},chartY:v.chartYValue??v.yValue,showMarker:v.showTooltipMarker??true,color:K.color,type:p?.[G]??"line",...v.category?{category:v.category,categoryColor:g?.[v.category]}:{},...v.extraTooltipRows&&v.extraTooltipRows.length>0?{extraTooltipRows:v.extraTooltipRows}:{}});});let O=z>(h-b)/2+b,H=e.filter(W=>W.end>W.start&&W.start<k.end&&W.end>k.start).map(W=>({label:W.label,color:W.color??r??Uo(W.type),metadata:W.metadata}));B.push({label:H.length>1?`${H.length} scheduled commands`:k.label,value:0,color:k.color??r??Uo(k.type),type:"event"});let U=B.length>1?B[0]?.chartY??B[0]?.value:void 0;d.show({xValue:F,series:B,x:z,y:typeof U=="number"&&c?c(U):(l??0)/2,position:O?"left":"right",isEvent:true,eventMetadata:k.metadata,eventItems:H});},[s,c,l,d,u,m,p,g,r,b,h,e]),C=Ze.useCallback(()=>{a(null),d?.hide();},[d]);if(!o)return console.warn("ChartEventSpans must be used within a ChartContainer"),null;let{xScale:N,height:S}=o,T=Ue.top,P=S-Ue.bottom-T,E=e.filter(D=>D.end>D.start);return E.length===0?null:jsxRuntime.jsx("g",{className:"chart-event-spans","data-testid":"chart-event-spans",children:E.map((D,k)=>{let A=D.start<f?f:D.start,M=D.end>y?y:D.end;if(A>=y||M<=f)return null;let z=N(A),B=N(M)-z;if(B<=0)return null;let O=D.color??r??Uo(D.type);return jsxRuntime.jsx("rect",{x:z,y:T,width:B,height:P,fill:O,fillOpacity:n===k?Math.min((t??.25)*1.8,1):t??.25,pointerEvents:"all",style:{cursor:"pointer"},onMouseMove:H=>x(H,D,k),onMouseLeave:C},`${D.start.getTime()}-${D.end.getTime()}-${k}`)})})}var gh=Ze.createContext(false);function vp({children:e}){return jsxRuntime.jsx(gh.Provider,{value:true,children:e})}function Qn(e){let t=Ze.useContext(gh),[r,o]=Ze.useState(false),[n,a]=Ze.useState(null),i=Ze.useRef(null),s=Ze.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;},[]);Ze.useEffect(()=>()=>i.current?.disconnect(),[]);let c=Ze.useCallback(()=>{o(false),a(null);},[]),l=t?null:jsxRuntime.jsx(te,{variant:"icon",size:"sm",icon:"ArrowsOutSimple","aria-label":`Expand ${e} chart`,onPress:()=>o(true)}),d=Ze.useCallback(u=>r&&!t?jsxRuntime.jsx(mr,{isOpen:true,onClose:c,title:e,contentPadding:false,maxWidth:"min(1200px, 100vw)",minWidth:"min(360px, 100vw)",height:"82vh",mobileHeight:"82vh",children:jsxRuntime.jsx("div",{ref:s,className:"h-full w-full p-4",children:u})}):u,[r,t,c,e,s]);return {isExpanded:r,action:l,expandedSize:n,present:d}}var Zn=({data:e,color:t="var(--color-viz-default)",strokeWidth:r=3,strokeDasharray:o,categoryColors:n={},maxGapMs:a,animate:i=true})=>{let{xScale:s,yScale:c,animationSettings:l,entrance:d}=jn(),[u]=Ze__namespace.default.useState(()=>d?.played!==true),m=i&&u,p=c.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?Ml(e,a):e,x=i?void 0:"non-scaling-stroke",C=b?jsxRuntime.jsx("circle",{cx:s(b.xValue),cy:c(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=>c(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?c(y(S)):0,defined:S=>S!=null,stroke:t,strokeWidth:r,strokeDasharray:o,strokeLinecap:"round",vectorEffect:x,curve:curve.curveLinear}),N={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:l.duration,ease:l.ease},style:N,children:C}):jsxRuntime.jsx("g",{style:N,children:C})};var Ch=e=>e.type===xn||e.type===Zn||e.type===Dl,d1=e=>e.type===Hl||e.type===Gl,Sh=280,u1=d3Array.bisector(e=>e.xValue).left,p1=()=>jsxRuntime.jsx("div",{className:"flex h-full items-center justify-center",children:jsxRuntime.jsx("p",{className:"text-text-secondary",children:"No data available"})}),m1=()=>jsxRuntime.jsxs("div",{className:"flex h-full flex-col gap-4 p-4",children:[jsxRuntime.jsx(j,{className:"h-full w-full"}),jsxRuntime.jsxs("div",{className:"flex gap-4",children:[jsxRuntime.jsx(j,{className:"h-4 w-24"}),jsxRuntime.jsx(j,{className:"h-4 w-24"})]})]}),f1=({parentWidth:e,parentHeight:t,yFormatter:r={type:"number"},yDomain:o,referenceLines:n,isLoading:a=false,enableZoom:i=false,enableBrush:s=false,brushHeight:c=60,onZoomChange:l,zoomDomain:d,hiddenSeriesLabels:u,onHiddenSeriesChange:m,hideBottomBar:p=false,headerActions:g,headerControls:f,title:y,children:b})=>{let h=u!==void 0,x=d!==void 0,[C,N]=Ze.useState(null),[S,T]=Ze.useState(null),R=x?d:S,[P,E]=Ze.useState(()=>new Set),D=h?u:P,k=Ze.useRef(null),A=Ze.useId(),M=Ze.useRef(0),z=Ze.useRef(""),F=Ze.useRef(null),{colorMode:B}=Qt(),O=Ze.useMemo(()=>Oo(),[B]),Q=Ze.useMemo(()=>Ni(),[B]),{datasets:H,seriesMetadata:U,categoryInfo:W,categoryColors:G,categoryLabels:K,seriesTypes:w}=Ze.useMemo(()=>{let fe=Ze.Children.toArray(b).filter(Be=>Ze.isValidElement(Be)&&Ch(Be)),Fe=fe.filter(Be=>Be.props.data).length,Re=[],He=[],tt=[],mt=null,Ie=null;fe.forEach((Be,Ct)=>{let De=Be.props;if(!De.data)return;Re.push(De.data);let Bo=("color"in De&&De.color?De.color:void 0)||(Fe===1?Q:O[Ct%O.length]),Vo=Be.type===xn;He.push({label:"label"in De&&De.label||`Series ${Re.length}`,color:Bo,...Vo&&"baseline"in De&&De.baseline!==void 0?{baseline:De.baseline,tooltipRange:"tooltipRange"in De&&De.tooltipRange||false}:{}});let An=Vo?"area":Be.type===Zn?"line":"bar";tt.push(An),"categoryColors"in De&&De.categoryColors&&(mt=De.categoryColors),"categoryLabels"in De&&De.categoryLabels&&(Ie=De.categoryLabels);});let dt=null;if(mt){let Be=new Set;Re.forEach(Ct=>{Ct.forEach(De=>{De.category&&Be.add(De.category);});}),dt=Array.from(Be).map(Ct=>({label:Ie?.[Ct]||Ct,color:mt[Ct]||"#6b7280"}));}return {datasets:Re,seriesMetadata:He,categoryInfo:dt,categoryColors:mt,categoryLabels:Ie,seriesTypes:tt}},[b,Q,O,B]),v=Qn(y),L=v.expandedSize?.width??e,I=v.expandedSize?.height??t,oe=!p?v.action:null,ie=g||oe?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[g,oe]}):void 0,{headerRef:re,headerHeight:ae}=za(!!ie,!!f),Le=p?0:60,ue=s?c+8:0,ge=I-ae-Le-ue,le=Math.max(100,ge),pe=Ze.useCallback(q=>q?D.has(q):false,[D]),Pe=Ze.useMemo(()=>U.map((q,fe)=>pe(q.label)?null:fe).filter(q=>q!==null),[U,pe]),_e=Ze.useMemo(()=>Pe.map(q=>H[q]).filter(q=>!!q),[H,Pe]),qe=Ze.useMemo(()=>Pe.map(q=>U[q]).filter(q=>!!q),[U,Pe]),er=Ze.useMemo(()=>Pe.map(q=>w[q]).filter(q=>!!q),[w,Pe]),yt=er.findIndex(q=>q==="bar"),tr=yt!==-1,qt=Ze.useCallback((q,fe)=>{let Fe=q.has(fe);if(!Fe&&U.reduce((tt,mt)=>q.has(mt.label)||mt.label===fe?tt:tt+1,0)<1)return q;let Re=new Set(q);return Fe?Re.delete(fe):Re.add(fe),Re},[U]),it=Ze.useCallback(q=>{if(h){let fe=u;if(!fe.has(q)&&U.reduce((He,tt)=>fe.has(tt.label)||tt.label===q?He:He+1,0)<1){N(null);return}m?.(Re=>qt(Re,q));}else E(fe=>qt(fe,q));N(null);},[h,u,m,U,qt]),vt=Ze.useMemo(()=>U.map(q=>q.label).join(""),[U]),ee=Ze.useRef(vt);Ze.useEffect(()=>{ee.current!==vt&&(ee.current=vt,h||E(q=>q.size===0?q:new Set));},[vt,h]);let Oe=Ze.useMemo(()=>_e.flat(),[_e]),Qe=Ze.useMemo(()=>{if(Oe.length===0)return null;let q=[...Oe].sort((fe,Fe)=>fe.xValue.getTime()-Fe.xValue.getTime());return [q[0].xValue,q[q.length-1].xValue]},[Oe]),de=R||Qe,he=Ze.useCallback(q=>{x?l?.(q):T(q);},[x,l]),Y=Ze.useMemo(()=>de?H.map(fe=>fe.filter(Fe=>Fe.xValue>=de[0]&&Fe.xValue<=de[1])):H,[H,de]),J=Ze.useMemo(()=>Pe.map(q=>Y[q]??[]),[Pe,Y]);Ze.useEffect(()=>{l&&l(R);},[R,l]);let ce=Ze.useMemo(()=>Pe.flatMap(q=>Y[q]??[]),[Y,Pe]),ne=Ze.useMemo(()=>Ui(ce,le,r,o),[ce,le,r,o]),ve=Ze.useRef(JSON.stringify(r)),ze=Ze.useRef(null),$=Ze.useMemo(()=>{let[q,fe]=ne.domain(),Fe=Math.max(Math.abs(q),Math.abs(fe)),Re=JSON.stringify(r);if(Re!==ve.current&&(ve.current=Re,ze.current=null),ze.current!==null)return ze.current;if(Fe===0)return Za(r,0);let He=Za(r,Fe);return ze.current=He,He},[ne,r]),be=Ze.useMemo(()=>{let q=le-Ue.top-Ue.bottom;return _a(q)},[le]),_=Ze.useMemo(()=>{let q=Dr($),fe=q.tickFormat||q.format,Re=ne.ticks(be).map(mt=>fe(mt)),He=yn(Re,12,"system-ui"),tt=Math.ceil(He)+12;return {...Ue,left:Math.max(tt,30),right:8}},[ne,$,be]),we=Ze.useMemo(()=>de?scale.scaleTime({domain:de,range:[_.left,L-_.right]}):dp(Oe,L),[de,Oe,L,_]),mo=Ze.useCallback(q=>{if(!Qe)return;let{scaleX:fe,translateX:Fe}=q,Re=L-_.left-_.right,[He,tt]=Qe,mt=tt.getTime()-He.getTime();if(mt<=0){he(null);return}let Ie=-Fe,dt=Ie+Re,Be=Re*fe/mt,Ct=Ie/Be,De=dt/Be,Fo=new Date(He.getTime()+Ct),Bo=new Date(He.getTime()+De),Vo=Math.abs(Fo.getTime()-He.getTime()),An=Math.abs(Bo.getTime()-tt.getTime()),Ws=mt*.02;Vo<Ws&&An<Ws?he(null):he([Fo,Bo]);},[Qe,L,_,he]),Ea=Ze.useCallback(q=>{let{left:fe}=k.current?.getBoundingClientRect()||{left:0},Fe=q.clientX-fe;if(q.timeStamp-(M.current||0)<16)return;M.current=q.timeStamp;let Re=we.invert(Fe),He=J.map((Ie,dt)=>{if(!Ie||Ie.length===0)return null;let Be=u1(Ie,Re,1);if(Be===0)return {point:Ie[0],index:0,datasetIndex:dt};if(Be>=Ie.length)return {point:Ie[Ie.length-1],index:Ie.length-1,datasetIndex:dt};let Ct=Ie[Be-1],De=Ie[Be];if(!Ct||!De)return null;let Fo=Math.abs(Ct.xValue.getTime()-Re.getTime()),Bo=Math.abs(De.xValue.getTime()-Re.getTime()),Vo=Fo<Bo;return {point:Vo?Ct:De,index:Vo?Be-1:Be,datasetIndex:dt}}).filter(Ie=>Ie!==null&&qe[Ie.datasetIndex]!==void 0).map(({point:Ie,index:dt,datasetIndex:Be})=>({label:qe[Be].label,value:Ie.yValue,baselineValue:Il(qe[Be],Ie,dt),color:qe[Be].color,point:Ie,type:er[Be]}));if(He.length===0){N(null);return}let tt=we(He[0].point.xValue),mt=tt>(L-_.right-_.left)/2+_.left;N({xValue:He[0].point.xValue,series:He.map(({label:Ie,value:dt,baselineValue:Be,color:Ct,point:De,type:Fo})=>({label:Ie,value:dt,...Be!==void 0?{baselineValue:Be}:{},chartY:De.chartYValue??dt,showMarker:De.showTooltipMarker??true,color:Ct,type:Fo,category:De.category,categoryColor:De.category&&G?G[De.category]:void 0,...De.extraTooltipRows&&De.extraTooltipRows.length>0?{extraTooltipRows:De.extraTooltipRows}:{}})),x:tt,y:ne(He[0].point.chartYValue??He[0].value),position:mt?"left":"right"});},[J,qe,er,we,ne,L,G,_]),Io=()=>{N(null);},C0=Ze.useCallback(()=>{he(null),F.current&&F.current.reset();},[he]),S0=Ze.useCallback(q=>{let fe={scaleX:1,scaleY:1,translateX:0,translateY:0,skewX:0,skewY:0};if(!q||!Qe)return fe;let[Fe,Re]=Qe,He=Re.getTime()-Fe.getTime();if(He<=0)return fe;let[tt,mt]=q,Ie=mt.getTime()-tt.getTime();if(Ie<=0)return fe;let dt=He/Ie,Be=L-_.left-_.right,Ct=tt.getTime()-Fe.getTime();return {scaleX:dt,scaleY:1,translateX:-(Ct/He)*Be*dt,translateY:0,skewX:0,skewY:0}},[Qe,L,_]),Gs=Ze.useCallback(q=>{if(!(F.current&&Qe))return;let[fe,Fe]=Qe,Re=Fe.getTime()-fe.getTime();if(Re<=0){F.current.reset();return}if(!q){F.current.reset();return}let[He,tt]=q,mt=tt.getTime()-He.getTime();if(mt<=0){F.current.reset();return}let Ie=Re/mt,dt=L-_.left-_.right,Ct=-((He.getTime()-fe.getTime())/Re)*dt*Ie;F.current.setTransformMatrix({scaleX:Ie,scaleY:1,translateX:Ct,translateY:0,skewX:0,skewY:0});},[Qe,L,_]),w0=Ze.useCallback(q=>{he(q),Gs(q);},[he,Gs]);Ze.useEffect(()=>{x&&Gs(d??null);},[x,d,Gs]);let N0=El(),T0={width:L,height:le,xScale:we,yScale:ne,yFormatter:$,animationSettings:Rl,entrance:N0,tooltip:{data:C,show:N,hide:()=>N(null)},datasets:J,seriesMetadata:qe,seriesTypes:er,categoryColors:G||void 0,categoryLabels:K||void 0},k0=Ze.Children.toArray(b),nf=0,af=[],sf=[],Ld=[];k0.forEach(q=>{if(!Ze.isValidElement(q)){Ld.push(q);return}if(d1(q))sf.push(q);else if(Ch(q)){let fe=nf;nf++;let Fe=q.props,Re=U[fe]?.label;if(pe(Re))return;af.push(Ze__namespace.default.cloneElement(q,{...Fe,data:Y[fe]||Fe.data,color:U[fe]?.color}));}else Ld.push(q);});let P0=Pe.length,R0=(W||U).map(q=>{let fe=!W&&pe(q.label);return {category:q.label,fill:q.color,isHidden:fe,isDisabled:!W&&!fe&&P0<=1}}),E0=typeof r=="object"&&r!==null&&typeof r.type=="string",M0=Ol({datasets:_e,metadata:{xLabel:"Date",yLabel:"Value",seriesLabels:qe.map(q=>q.label),timestamp:true,...E0?{yFormat:r}:{}},svgRef:k}),Dd=jsxRuntime.jsx(Ha,{title:y,controls:f,actions:ie,containerRef:re,marginRight:_.right});if(a)return v.present(jsxRuntime.jsxs("div",{className:"relative flex h-full flex-col",children:[Dd,jsxRuntime.jsx(m1,{})]}));if(H.length===0)return v.present(jsxRuntime.jsxs("div",{className:"relative flex h-full flex-col",children:[Dd,jsxRuntime.jsx(p1,{})]}));let lf=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("title",{children:y}),jsxRuntime.jsx("g",{children:ne.ticks(be).map(q=>{let fe=Math.abs(q)<Number.EPSILON;return jsxRuntime.jsx(shape.Line,{from:{x:_.left,y:ne(q)},to:{x:L-_.right,y:ne(q)},stroke:fe?"var(--color-border-default)":"var(--color-border-muted)",strokeWidth:fe?1.5:1},`grid-line-${q}`)})}),jsxRuntime.jsx("defs",{children:jsxRuntime.jsx("clipPath",{id:A,children:jsxRuntime.jsx("rect",{x:we.range()[0],y:ne.range()[1],width:we.range()[1]-we.range()[0],height:ne.range()[0]-ne.range()[1]})})}),jsxRuntime.jsx("g",{clipPath:`url(#${A})`,children:af}),Ld,n&&n.length>0&&jsxRuntime.jsx("g",{children:n.map((q,fe)=>{let Fe=ne(q.value),Re=q.color??"var(--color-error-base)";return jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx(shape.Line,{from:{x:_.left,y:Fe},to:{x:L-_.right,y:Fe},stroke:Re,strokeWidth:1.5,strokeDasharray:"6 4"}),q.label&&jsxRuntime.jsx("text",{x:L-_.right-4,y:Fe-4,textAnchor:"end",fontSize:11,fill:Re,children:q.label})]},`ref-line-${fe}`)})}),jsxRuntime.jsx(Xr.Bottom,{top:le-_.bottom,scale:we,width:L-_.left-_.right}),jsxRuntime.jsx(Xr.Left,{left:_.left,scale:ne,yFormatter:$,height:le-_.top-_.bottom}),C&&!C.isEvent&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[tr?(()=>{let q=_e[yt]??[];if(q.length===0)return null;let fe=[...q].sort((An,Ws)=>An.xValue.getTime()-Ws.xValue.getTime()),Fe=fe.findIndex(An=>An.xValue.getTime()===C.xValue.getTime()),Re=fe[Fe+1],He=fe.length>1&&Re?Re.xValue.getTime()-C.xValue.getTime():15*6e4,tt=Math.abs(we(new Date(C.xValue.getTime()+He))-we(C.xValue)),Ie=we(C.xValue)-tt/2,dt=ne.range(),[Be,Ct]=we.range(),De=Math.min(Be,Ct),Fo=Math.max(Be,Ct),Bo=Math.max(Ie,De),Vo=Math.max(0,Math.min(Ie+tt,Fo)-Bo);return jsxRuntime.jsx("rect",{x:Bo,y:dt[1],width:Vo,height:dt[0]-dt[1],className:"fill-background-muted",opacity:.5,pointerEvents:"none",style:{transition:"all 100ms ease-out"}})})():null,C.series.filter(q=>q.type!=="bar"&&q.showMarker!==false).map(q=>jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("circle",{cx:we(C.xValue),cy:ne(q.chartY??q.value),r:8,fill:"white",stroke:q.color,strokeWidth:2,style:{transition:"all 100ms ease-out"}}),jsxRuntime.jsx("circle",{cx:we(C.xValue),cy:ne(q.chartY??q.value),r:4,fill:q.color,style:{transition:"all 100ms ease-out"}})]},`highlight-${q.label}`))]}),jsxRuntime.jsx("rect",{x:_.left,y:_.top,width:L-_.left-_.right,height:le-_.top-_.bottom,fill:"transparent",style:{cursor:i?"grab":"crosshair",touchAction:"none"},onMouseMove:Ea,onMouseLeave:Io}),sf]});return v.present(jsxRuntime.jsx("div",{className:"relative flex h-full flex-col",children:jsxRuntime.jsxs(Jr.Provider,{value:T0,children:[Dd,i?jsxRuntime.jsx(zoom.Zoom,{initialTransformMatrix:S0(R),width:L,height:le,scaleXMin:1,scaleXMax:20,scaleYMin:1,scaleYMax:1,constrain:q=>{let{scaleX:fe,translateX:Fe}=q,Re=Math.max(1,Math.min(20,fe)),He=1,tt=L-_.left-_.right,mt=0,Ie=tt*(1-Re),dt=Math.max(Ie,Math.min(mt,Fe));return {...q,scaleX:Re,scaleY:He,translateX:dt,translateY:0}},children:q=>{if(F.current=q,q.transformMatrix){let{scaleX:fe,translateX:Fe}=q.transformMatrix,Re=`${fe.toFixed(4)}-${Fe.toFixed(2)}`;Re!==z.current&&(z.current=Re,setTimeout(()=>{mo(q.transformMatrix);},0));}return jsxRuntime.jsx("svg",{width:L,height:le,className:"overflow-visible",ref:fe=>{k.current=fe,q.containerRef.current!==fe&&(q.containerRef.current=fe);},role:"img","aria-label":y,style:{cursor:q.isDragging?"grabbing":"grab",touchAction:"none"},onMouseDown:q.dragStart,onMouseMove:q.dragMove,onMouseUp:q.dragEnd,onMouseLeave:()=>{q.isDragging&&q.dragEnd();},onTouchStart:q.dragStart,onTouchMove:q.dragMove,onTouchEnd:q.dragEnd,children:lf})}},`zoom-${Math.round(L)}x${Math.round(le)}`):jsxRuntime.jsx("svg",{width:L,height:le,className:"overflow-visible",ref:k,role:"img","aria-label":y,children:lf}),jsxRuntime.jsx(Co,{data:C,formatter:$}),s&&Qe&&jsxRuntime.jsx(xp,{data:_e,seriesMetadata:qe,width:L,height:c,onBrushChange:w0,brushRegion:R,margin:_,...o?{yDomain:o}:{}}),!p&&jsxRuntime.jsx(ei,{onExport:M0,items:R0,marginLeft:0,marginRight:_.right,isZoomed:R!==null,onResetZoom:C0,onLegendItemToggle:W?void 0:it})]})}))},wh=responsive.withParentSize(f1);var v1=e=>e.toLocaleString(),C1=e=>`${Math.round(e*100)}%`,Ph=({data:e,width:t=800,height:r=400,padding:o=0,barGap:n=30,formatValue:a=v1,formatPercentage:i=C1,color:s,showScale:c=true,showOverallConversion:l=true,overallConversionLabel:d="Overall Conversion:",activeStageId:u,onStageClick:m,onStageHover:p,className:g,style:f,"aria-label":y="Funnel chart"})=>{let[b,h]=Ze.useState(null),[x,C]=Ze.useState(t),N=Ze.useRef(null),S=u??b,T=Ze.useId(),R=s||"var(--color-viz-default)";Ze.useEffect(()=>{if(!N.current)return;let M=new ResizeObserver(z=>{for(let F of z)C(F.contentRect.width);});return M.observe(N.current),()=>{M.disconnect();}},[]);let{layout:P,overallConversion:E}=Ze.useMemo(()=>{if(e.length===0)return {layout:[],overallConversion:0};let M=e[0].value,z=l?60:0,F=r-o*2-z,B=(e.length-1)*n,O=(F-B)/e.length,Q=e.map((U,W)=>{let G=o+z+W*(O+n),K=M===0?0:U.value/M,w=K,v=W===0?null:e[W-1].value,L=v==null||v===0?0:1-U.value/v;return {stage:U,index:W,y:G,barHeight:O,widthPercent:K,conversionRate:w,dropOff:L}}),H=M===0?0:e[e.length-1].value/M;return {layout:Q,overallConversion:H,maxValue:M}},[e,x,r,o,n,c,l]);if(e.length===0)return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex h-full min-h-[280px] w-full items-center justify-center rounded-lg border border-dashed border-border-default bg-background-surface text-sm font-medium text-text-secondary",g),style:{width:t,height:r,...f},children:"No funnel data available"});let D=c?60:0,k=o+D,A=x-o*2-D;return jsxRuntime.jsx("div",{ref:N,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"})]}),l&&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)]}),c&&jsxRuntime.jsx("g",{children:P.map(M=>{let z=M.y+M.barHeight/2;return jsxRuntime.jsx("text",{x:o+D-12,y:z,textAnchor:"end",dominantBaseline:"middle",className:"fill-text-secondary text-xs",children:i(M.conversionRate)},M.stage.id)})}),P.map(M=>{let z=S===M.stage.id,F=A*M.widthPercent;return jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("rect",{x:k,y:M.y,width:A,height:M.barHeight,fill:`url(#${T}-bg)`,rx:4}),jsxRuntime.jsx(framerMotion.motion.rect,{x:k,y:M.y,width:F,height:M.barHeight,fill:`url(#${T}-bar)`,rx:4,initial:{width:0},animate:{width:F},transition:{duration:.6,delay:M.index*.1,ease:"easeOut"},opacity:z||S==null?1:.5,style:{cursor:m||p?"pointer":"default",transition:"opacity 150ms ease"},onMouseEnter:()=>{h(M.stage.id),p?.(M.stage);},onMouseLeave:()=>{h(null),p?.(null);},onClick:()=>m?.(M.stage)}),jsxRuntime.jsx("rect",{x:k+10,y:M.y+M.barHeight/2-10,width:70,height:20,className:"fill-background-surface stroke-border-default",strokeWidth:1,rx:4,style:{pointerEvents:"none"}}),jsxRuntime.jsx("text",{x:k+16,y:M.y+M.barHeight/2+4,className:"fill-text-primary text-xs font-semibold",style:{pointerEvents:"none"},children:a(M.stage.value)}),jsxRuntime.jsxs("text",{x:k,y:M.y-8,className:"fill-text-secondary text-xs",style:{pointerEvents:"none"},children:[jsxRuntime.jsx("tspan",{children:M.index+1})," ",M.stage.label]}),M.stage.secondaryValue&&jsxRuntime.jsx("text",{x:k+16,y:M.y-24,className:"fill-text-secondary text-xs",style:{pointerEvents:"none"},children:M.stage.secondaryValue}),M.index>0&&M.dropOff>0&&jsxRuntime.jsxs("text",{x:k+A,y:M.y-8,textAnchor:"end",className:"fill-text-secondary text-xs",children:[i(M.dropOff)," drop"]}),M.stage.annotation&&jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("rect",{x:k+F+8,y:M.y+8,width:60,height:24,rx:3,className:"fill-background-muted"}),jsxRuntime.jsx("text",{x:k+F+16,y:M.y+20,className:"fill-text-secondary text-xs font-medium",children:M.stage.annotation})]})]},M.stage.id)})]})})};var k1=.005,Mh=320;function Ul(e){return e>0?e:0}function P1(e,t,r){let o=t===0?0:Ul(e.value)/t*100;return `${e.label}: ${r(e.value)}, ${o.toFixed(1)}%`}var Lh=({data:e,width:t,height:r,innerRadiusRatio:o=0,yFormatter:n={type:"number"},showLegend:a=true,showTooltip:i=true,onSliceClick:s,onSliceHover:c,className:l,style:d,"aria-label":u})=>{let[m,p]=Ze.useState(null),[g,f]=Ze.useState(null),[y,b]=Ze.useState(null),[h,x]=Ze.useState(t??600),[C,N]=Ze.useState(r??300),S=Ze.useRef(null);Ze.useEffect(()=>{if(t!==void 0&&r!==void 0){x(t),N(r);return}if(!S.current)return;let B=new ResizeObserver(O=>{for(let Q of O)t===void 0&&x(Q.contentRect.width),r===void 0&&N(Q.contentRect.height);});return B.observe(S.current),t===void 0&&x(S.current.offsetWidth),r===void 0&&N(S.current.offsetHeight||300),()=>{B.disconnect();}},[t,r]);let T=Ze.useMemo(()=>e.reduce((B,O)=>B+Ul(O.value),0),[e]),R=Ze.useMemo(()=>{let B=Ti(e.map(O=>O.label));return e.map(O=>({...O,color:O.color||B[O.label]||"var(--color-viz-default)"}))},[e]),P=Dr(n),E=s!==void 0,D=a&&h>=Mh,k=D?Math.max(h*.45,Mh*.45):h,M=Math.max(0,Math.min(k,C)-8)/2,z=M*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",l),style:r!==void 0?{height:r,...d}:d,children:"No data available"});let F=(B,O,Q)=>{if(p(B),c?.(O,B),B!==null&&O&&Q){let H=k/2+Q[0],U=C/2+Q[1];b(O.label),f({xValue:new Date,series:[{label:"Value",value:O.value,color:O.color||"var(--color-viz-default)"}],x:H,y:U,position:H>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",l),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:B=>Ul(B.value),pieSort:null,pieSortValues:null,outerRadius:M,innerRadius:z,padAngle:k1,children:B=>B.arcs.map((O,Q)=>{let H=m===Q||m===null,U=B.path.centroid(O);return jsxRuntime.jsx("path",{d:B.path(O)??void 0,fill:O.data.color,opacity:H?1:.5,style:{cursor:s||c?"pointer":"default",transition:"opacity 150ms ease-out"},onMouseEnter:()=>F(Q,O.data,U),onMouseLeave:()=>F(null,null),onClick:()=>s?.(O.data,Q),...E?{role:"button",tabIndex:0,"aria-label":P1(O.data,T,P.format),onFocus:()=>F(Q,O.data,U),onBlur:()=>F(null,null),onKeyDown:W=>{W.key!=="Enter"&&W.key!==" "||(W.preventDefault(),s?.(O.data,Q));}}:{}},O.data.label)})})})}),D?jsxRuntime.jsx("ul",{className:"flex min-w-0 flex-col gap-1 overflow-y-auto py-2 text-xs",children:R.map((B,O)=>jsxRuntime.jsxs("li",{className:"flex items-center gap-2",style:{opacity:m===O||m===null?1:.5},onMouseEnter:()=>F(O,B),onMouseLeave:()=>F(null,null),children:[jsxRuntime.jsx("span",{className:"h-3 w-3 flex-shrink-0 rounded-sm",style:{backgroundColor:B.color}}),jsxRuntime.jsx("span",{className:"truncate text-text-primary",title:B.label,children:B.label}),jsxRuntime.jsxs("span",{className:"ml-auto flex-shrink-0 tabular-nums text-text-secondary",children:[P.format(B.value)," (",(Ul(B.value)/T*100).toFixed(1),"%)"]})]},B.label))}):null,i&&jsxRuntime.jsx(Co,{data:g,formatter:n,label:y??void 0})]})};function Dh(){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 E1=d3Array.bisector(e=>e.xValue).left,M1=(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 Ah(e){let{mouseX:t,datasets:r,seriesMetadata:o,seriesTypes:n,xScale:a,yScale:i,plotLeft:s,plotRight:c}=e,l=a.invert(t),d=r.map((p,g)=>{if(!p||p.length===0)return null;let f=E1(p,l,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()-l.getTime()),x=Math.abs(b.xValue.getTime()-l.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:M1(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+c)/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 Bh=e=>e instanceof Date&&!Number.isNaN(e.getTime()),I1=160;function Kl(e,t,r){let[o,n]=Ze.useState(null);Ze.useImperativeHandle(r,()=>({setPreview:n}),[]);let[a,i]=e.range(),s=Ze.useMemo(()=>o?d3Scale.scaleTime().domain([new Date(o[0]),new Date(o[1])]).range([a,i]):e,[o,e,a,i]),c=s.domain(),l=c[0],d=c[c.length-1],u=Bh(l)&&Bh(d),m=t<400,p=Math.max(2,Math.min(8,Math.floor(t/(m?70:110)))),g=Ze.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,N=Math.min(I1,f),S=N*C,T=d3Scale.scaleTime().domain([new Date(h-S),new Date(x+S)]).range([a-N,i+N]),R=d3Time.timeTickInterval(y,b,p);if(R)return T.ticks(R);let P=Math.max(2,Math.round(p*(f+2*N)/f));return T.ticks(P)},[s,p,u,a,i]);return {activeScale:s,ticks:g,start:l,end:d,valid:u,compact:m,rangeStart:a,rangeEnd:i}}var O1=6,Vh=20,kp=Ze.forwardRef(({top:e,scale:t,width:r},o)=>{let{activeScale:n,ticks:a,start:i,end:s,valid:c,compact:l,rangeStart:d,rangeEnd:u}=Kl(t,r,o),m=a.length>=2?a[1].getTime()-a[0].getTime():s.getTime()-i.getTime(),p=Ze.useMemo(()=>c?dg(m,{compact:l}):()=>"",[m,l,c]),g=Ze.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:Vh+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:O1,stroke:"var(--color-border-muted)",strokeWidth:1}),jsxRuntime.jsx("text",{x:0,y:Vh,textAnchor:"middle",fontSize:12,fill:"var(--color-text-secondary)",children:p(b)})]},b.getTime()))})]})]})});kp.displayName="LiveTimeAxisBottom";var Pp=Ze.forwardRef(({scale:e,width:t,top:r,bottom:o},n)=>{let{activeScale:a,ticks:i,rangeStart:s,rangeEnd:c}=Kl(e,t,n),l=Ze.useId(),d=Math.min(s,c),u=Math.abs(c-s);return jsxRuntime.jsxs("g",{"aria-hidden":"true",children:[jsxRuntime.jsx("defs",{children:jsxRuntime.jsx("clipPath",{id:l,children:jsxRuntime.jsx("rect",{x:d,y:r,width:u,height:o-r})})}),jsxRuntime.jsx("g",{clipPath:`url(#${l})`,children:i.map(m=>{let p=a(m);return jsxRuntime.jsx("line",{x1:p,x2:p,y1:r,y2:o,stroke:"var(--color-border-muted)",strokeWidth:1},m.getTime())})})]})});Pp.displayName="LiveTimeGridlines";function Yl(e,t,r){let o=e[1]-e[0],n=t/Math.max(1,r)*o;return [e[0]-n,e[1]-n]}function Oh(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 Rp(e,t,r=16,o=800){return t===1?e*r:t===2?e*o:e}var zh=(e,t,r,o,n)=>{let a=t!==1?Oh(e,r,t):e;return o!==0&&(a=Yl(a,o,n)),a},Hh=(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]},K1=e=>typeof requestAnimationFrame=="function"?requestAnimationFrame(e):setTimeout(()=>e(0),0),Y1=e=>{typeof cancelAnimationFrame=="function"?cancelAnimationFrame(e):clearTimeout(e);};function Gh(e){let{groupRef:t}=e,r=Ze.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=Ze.useRef(e.onCommit);o.current=e.onCommit;let n=Ze.useRef(e.panBoundsMs);n.current=e.panBoundsMs;let a=Ze.useRef(e.settleMs??140);a.current=e.settleMs??140;let i=Ze.useRef(e.zoomIntent??(k=>k.ctrlKey));i.current=e.zoomIntent??(k=>k.ctrlKey);let s=Ze.useRef(e.onGestureStart);s.current=e.onGestureStart;let c=Ze.useRef(e.onFramePreview);c.current=e.onFramePreview;let l=Ze.useRef(null),d=Ze.useRef({scale:1,cursorFrac:.5,panDxPx:0,timer:null}),u=Ze.useRef(null),m=Ze.useRef(null),p=Ze.useRef(false),g=Ze.useCallback((k,A,M)=>{m.current={translateX:k,scaleX:A,preview:M},u.current==null&&(u.current=K1(()=>{u.current=null;let z=m.current;z!=null&&(t.current?.setAttribute("transform",`translate(${z.translateX},0) scale(${z.scaleX},1)`),c.current?.(z.preview));}));},[t]),f=Ze.useCallback(()=>{u.current!=null&&(Y1(u.current),u.current=null),m.current=null,t.current?.removeAttribute("transform"),c.current?.(null);},[t]),y=Ze.useCallback(()=>{p.current||(p.current=true,s.current?.());},[]),b=Ze.useCallback(()=>{p.current=false;},[]),h=Ze.useCallback(()=>{d.current.timer!=null&&(clearTimeout(d.current.timer),d.current.timer=null);},[]),x=Ze.useCallback(()=>{d.current={scale:1,cursorFrac:.5,panDxPx:0,timer:null};},[]),C=Ze.useCallback(()=>{let{xDomain:k,plotWidthPx:A}=r.current,{scale:M,cursorFrac:z,panDxPx:F}=d.current;M===1&&F===0||o.current(Hh(zh(k,M,z,F,A),n.current));},[]),N=Ze.useCallback(()=>{d.current.timer!=null&&(h(),C(),x(),f());},[h,C,x,f]),S=Ze.useCallback(k=>{N(),k.currentTarget.setPointerCapture?.(k.pointerId),l.current={startX:k.clientX,dxPx:0},y();},[N,y]),T=Ze.useCallback(k=>{if(!l.current)return;l.current.dxPx=k.clientX-l.current.startX;let{xDomain:A,plotWidthPx:M}=r.current;g(l.current.dxPx,1,Yl(A,l.current.dxPx,M));},[g]),R=Ze.useCallback(k=>{if(!l.current)return;let{dxPx:A}=l.current;l.current=null,f(),b(),A!==0&&o.current(Hh(Yl(r.current.xDomain,A,r.current.plotWidthPx),n.current));},[f,b]),P=Ze.useCallback(()=>{l.current&&(l.current=null,f(),b());},[f,b]),E=Ze.useRef(null),D=Ze.useCallback(k=>{if(E.current?.(),E.current=null,!k)return;let A=M=>{if(l.current)return;let{plotWidthPx:z,plotLeftPx:F}=r.current,B=Rp(M.deltaY,M.deltaMode),O=Rp(M.deltaX,M.deltaMode),Q=i.current(M);if(!Q&&O===0)return;if(M.preventDefault(),y(),Q){let G=Math.min(1,Math.max(0,(M.clientX-k.getBoundingClientRect().left)/Math.max(1,z)));d.current.scale*=Math.exp(-B/200),d.current.cursorFrac=G;}else d.current.panDxPx-=O;let{scale:H,cursorFrac:U,panDxPx:W}=d.current;g((F+U*z)*(1-H)+W,H,zh(r.current.xDomain,H,U,W,z)),h(),d.current.timer=setTimeout(()=>{C(),x(),f(),b();},a.current);};k.addEventListener("wheel",A,{passive:false}),E.current=()=>k.removeEventListener("wheel",A);},[g,f,h,C,x,y,b]);return Ze.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:D,gestureActiveRef:p}}var Yh=e=>e.type===xn||e.type===Zn,Z1=({children:e,title:t,headerActions:r,headerControls:o,viewport:n,panBounds:a,onViewportChange:i,onPlotWidthChange:s,yFormatter:c={type:"number"},yDomain:l,referenceLines:d,cameraSync:u,parentWidth:m=0,parentHeight:p=0})=>{let[g,f]=Ze.useState(null),y=Ze.useRef(null),b=Ze.useRef(0),h=Ze.useId(),x=Ze.useRef(null),C=Ze.useRef(null),N=Ze.useRef(null),{colorMode:S}=Qt(),T=Ze.useMemo(()=>Oo(),[S]),R=Ze.useMemo(()=>Ni(),[S]),{datasets:P,seriesMetadata:E,seriesTypes:D}=Ze.useMemo(()=>{let Z=Ze.Children.toArray(e).filter(ce=>Ze.isValidElement(ce)&&Yh(ce)),de=Z.filter(ce=>ce.props.data).length,he=[],Y=[],J=[];return Z.forEach((ce,ne)=>{let ve=ce.props;if(!ve.data)return;he.push(ve.data);let $=("color"in ve&&ve.color?ve.color:void 0)||(de===1?R:T[ne%T.length]),be=ce.type===xn;Y.push({label:"label"in ve&&ve.label||`Series ${he.length}`,color:$,...be&&"baseline"in ve&&ve.baseline!==void 0?{baseline:ve.baseline,tooltipRange:"tooltipRange"in ve&&ve.tooltipRange||false}:{}}),J.push(be?"area":"line");}),{datasets:he,seriesMetadata:Y,seriesTypes:J}},[e,R,T]),k=Qn(t),A=k.expandedSize?.width??m,M=r||k.action?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[r,k.action]}):void 0,{headerRef:z,headerHeight:F}=za(!!M,!!o),B=Math.max(100,(k.expandedSize?.height??p)-F-60),O=Ze.useMemo(()=>[new Date(n.startMs),new Date(n.endMs)],[n.startMs,n.endMs]),Q=Ze.useMemo(()=>{let Z=P.flat(),de=Z.filter(he=>{let Y=he.xValue.getTime();return Y>=n.startMs&&Y<=n.endMs});return de.length>0?de:Z},[P,n.startMs,n.endMs]),H=Ze.useMemo(()=>{let Z=Ui(Q,B,c,l);if(!l){let[de,he]=Z.domain();he>de&&Z.domain([de,he+(he-de)*.05]);}return Z},[Q,B,c,l]),U=Ze.useRef(JSON.stringify(c)),W=Ze.useRef(null),G=Ze.useMemo(()=>{let[Z,de]=H.domain(),he=Math.max(Math.abs(Z),Math.abs(de)),Y=JSON.stringify(c);if(Y!==U.current&&(U.current=Y,W.current=null),W.current!==null)return W.current;if(he===0)return Za(c,0);let J=Za(c,he);return W.current=J,J},[H,c]),K=Ze.useMemo(()=>{let Z=B-Ue.top-Ue.bottom;return _a(Z)},[B]),w=Ze.useMemo(()=>{let Z=Dr(G),de=Z.tickFormat||Z.format,Y=H.ticks(K).map(ne=>de(ne)),J=yn(Y,12,"system-ui"),ce=Math.ceil(J)+12;return {...Ue,left:Math.max(ce,30)}},[H,G,K]),v=Ze.useMemo(()=>scale.scaleTime({domain:O,range:[w.left,A-w.right]}),[O,A,w]),L=Ze.useMemo(()=>[n.startMs,n.endMs],[n.startMs,n.endMs]),I=Ze.useMemo(()=>a?[a.startMs,a.endMs]:void 0,[a]),X=Ze.useCallback(Z=>{i({startMs:Z[0],endMs:Z[1]});},[i]),oe=A-w.left-w.right,ie=Ze.useCallback(()=>f(null),[]),re=Ze.useRef({}),ae=Ze.useRef(u);ae.current=u;let Le=Ze.useCallback(Z=>{C.current?.setPreview(Z),N.current?.setPreview(Z),ae.current?.publish(re.current,Z);},[]),{onPointerDown:ue,onPointerMove:ge,onPointerUp:le,onPointerCancel:pe,wheelTargetRef:Pe,gestureActiveRef:_e}=Gh({xDomain:L,plotWidthPx:oe,plotLeftPx:w.left,groupRef:x,onCommit:X,onGestureStart:ie,onFramePreview:Le,...I?{panBoundsMs:I}:{}}),qe=Ze.useRef({startMs:n.startMs,endMs:n.endMs,left:0,width:0});qe.current={startMs:n.startMs,endMs:n.endMs,left:w.left,width:oe},Ze.useEffect(()=>{if(!u)return;let Z=()=>{x.current?.removeAttribute("transform"),C.current?.setPreview(null),N.current?.setPreview(null);},de=Y=>{if(_e.current)return;if(Y==null){Z();return}let{startMs:J,endMs:ce,left:ne,width:ve}=qe.current,ze=ce-J,$=Y[1]-Y[0];if(ze<=0||$<=0||ve<=0)return;let be=ze/$,_=ne*(1-be)+(J-Y[0])*ve/$;x.current?.setAttribute("transform",`translate(${_},0) scale(${be},1)`),C.current?.setPreview(Y),N.current?.setPreview(Y);},he=u.subscribe(re.current,de);return ()=>{he(),_e.current||Z();}},[u,_e]),Ze.useEffect(()=>{s?.(Math.max(0,A-w.left-w.right));},[A,w,s]);let er=Ze.useCallback(Z=>{if(_e.current)return;let{left:de}=y.current?.getBoundingClientRect()||{left:0},he=Z.clientX-de;Z.timeStamp-(b.current||0)<16||(b.current=Z.timeStamp,f(Ah({mouseX:he,datasets:P,seriesMetadata:E,seriesTypes:D,xScale:v,yScale:H,plotLeft:w.left,plotRight:A-w.right})));},[P,E,D,v,H,A,w,_e]),yt=Ze.useCallback(()=>f(null),[]),tr=El(),qt={width:A,height:B,xScale:v,yScale:H,yFormatter:G,animationSettings:Rl,entrance:tr,tooltip:{data:g,show:f,hide:()=>f(null)},datasets:P,seriesMetadata:E,seriesTypes:D},it=0,vt=[];Ze.Children.toArray(e).forEach(Z=>{if(!Ze.isValidElement(Z)){vt.push(Z);return}if(Yh(Z)){let de=it;it++;let he=Z.props;vt.push(Ze__namespace.default.cloneElement(Z,{...he,color:E[de]?.color,animate:false}));}else vt.push(Z);});let ee=E.map(Z=>({category:Z.label,fill:Z.color})),Oe=Ol({datasets:P,metadata:{xLabel:"Date",yLabel:"Value",seriesLabels:E.map(Z=>Z.label),timestamp:true},svgRef:y}),Qe=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("title",{children:t}),jsxRuntime.jsx("g",{children:H.ticks(K).map(Z=>{let de=Math.abs(Z)<Number.EPSILON;return jsxRuntime.jsx(shape.Line,{from:{x:w.left,y:H(Z)},to:{x:A-w.right,y:H(Z)},stroke:de?"var(--color-border-default)":"var(--color-border-muted)",strokeWidth:de?1.5:1},`grid-line-${Z}`)})}),jsxRuntime.jsx(Pp,{ref:N,scale:v,width:A-w.left-w.right,top:H.range()[1],bottom:H.range()[0]}),jsxRuntime.jsx("defs",{children:jsxRuntime.jsx("clipPath",{id:h,children:jsxRuntime.jsx("rect",{x:v.range()[0],y:H.range()[1],width:v.range()[1]-v.range()[0],height:H.range()[0]-H.range()[1]})})}),jsxRuntime.jsx("g",{clipPath:`url(#${h})`,children:jsxRuntime.jsx("g",{"data-camera-plot-group":"",ref:x,children:vt})}),d&&d.length>0&&jsxRuntime.jsx("g",{children:d.map((Z,de)=>{let he=H(Z.value),Y=Z.color??"var(--color-error-base)";return jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx(shape.Line,{from:{x:w.left,y:he},to:{x:A-w.right,y:he},stroke:Y,strokeWidth:1.5,strokeDasharray:"6 4"}),Z.label&&jsxRuntime.jsx("text",{x:A-w.right-4,y:he-4,textAnchor:"end",fontSize:11,fill:Y,children:Z.label})]},`ref-line-${de}`)})}),jsxRuntime.jsx(kp,{ref:C,top:B-w.bottom,scale:v,width:A-w.left-w.right}),jsxRuntime.jsx(Xr.Left,{left:w.left,scale:H,yFormatter:G,height:B-w.top-w.bottom}),g&&!g.isEvent&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(shape.Line,{"data-testid":"chart-hover-crosshair",from:{x:v(g.xValue),y:H.range()[1]},to:{x:v(g.xValue),y:H.range()[0]},stroke:"var(--color-text-secondary)",strokeWidth:1,strokeDasharray:"3 3",opacity:.7}),g.series.filter(Z=>Z.type!=="bar"&&Z.showMarker!==false).map(Z=>jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("circle",{cx:v(g.xValue),cy:H(Z.chartY??Z.value),r:8,fill:"white",stroke:Z.color,strokeWidth:2,style:{transition:"all 100ms ease-out"}}),jsxRuntime.jsx("circle",{cx:v(g.xValue),cy:H(Z.chartY??Z.value),r:4,fill:Z.color,style:{transition:"all 100ms ease-out"}})]},`highlight-${Z.label}`))]}),jsxRuntime.jsx("rect",{"data-camera-surface":"",x:w.left,y:w.top,width:A-w.left-w.right,height:B-w.top-w.bottom,fill:"transparent",style:{cursor:"grab",touchAction:"none"},onMouseMove:er,onMouseLeave:yt,onPointerDown:ue,onPointerMove:ge,onPointerUp:le,onPointerCancel:pe,ref:Pe})]});return k.present(jsxRuntime.jsx("div",{className:"relative flex h-full flex-col",children:jsxRuntime.jsxs(Jr.Provider,{value:qt,children:[jsxRuntime.jsx(Ha,{title:t,controls:o,actions:M,containerRef:z,marginRight:w.right}),jsxRuntime.jsx("svg",{width:A,height:B,className:"overflow-visible",ref:y,role:"img","aria-label":t,children:Qe}),jsxRuntime.jsx(Co,{data:g,formatter:G}),jsxRuntime.jsx(ei,{onExport:Oe,items:ee,marginLeft:0,marginRight:w.right})]})}))},Jl=responsive.withParentSize(Z1);function Xl(e,t,r,o){if(r.length===0)throw new Error("tierForViewport: resolution ladder is empty");let n=[...r].sort((s,c)=>s.bucketMs-c.bucketMs),a=e/Math.max(1,t*o.targetPointsPerPx),i=Math.max(o.nativeMs,a);return n.find(s=>s.bucketMs>=i)??n[n.length-1]}function _1(e,t){return Math.floor(e/t.tileSpanMs)}function vn(e,t,r){let o=_1(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 vr=(e,t)=>`${e}:${t}`;var Jh={erroredTiles:0};function Lp(e,t){let r=new Map,o=new Map,n=new Map,a=0;for(let d of e){let u=t.get(vr(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),c=[...o.values()].sort(i),l=Object.fromEntries([...n.entries()].map(([d,u])=>[d,[...u.values()].sort(i)]));return {line:s,band:c,lines:l,coverage:{earliestMs:s.length?s[0].xValue.getTime():void 0,latestMs:s.length?s[s.length-1].xValue.getTime():void 0,erroredTiles:a}}}function $1(e,t,r){let o=vn(e,t,0);return o.length===0?false:o.every(n=>{let a=r.get(vr(n.tierId,n.index));return a!=null&&(a.status==="loaded"||a.status==="empty")})}function Xh(e,t,r){return vn(e,t,0).some(n=>{let a=r.get(vr(n.tierId,n.index));return a?.status==="loaded"&&(a.data?.line.length??0)>0})}function eR(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 jh({viewport:e,targetTier:t,ladder:r,store:o,overscanTiles:n,prev:a}){let i=$1(e,t,o);if(i&&Xh(e,t,o)){let c=vn(e,t,n),{line:l,band:d,lines:u,coverage:m}=Lp(c,o);return {line:l,band:d,lines:u,renderTier:t,targetTier:t,isFallback:false,isStale:false,coverage:m}}let s=r.findIndex(c=>c.id===t.id);for(let c=s+1;c<r.length;c++){let l=r[c];if(Xh(e,l,o)){let d=vn(e,l,n),{line:u,band:m,lines:p,coverage:g}=Lp(d,o);return {line:u,band:m,lines:p,renderTier:l,targetTier:t,isFallback:true,isStale:false,coverage:g}}}if(i){let c=vn(e,t,n),{line:l,band:d,lines:u,coverage:m}=Lp(c,o);return {line:l,band:d,lines:u,renderTier:t,targetTier:t,isFallback:false,isStale:false,coverage:m}}return a?eR(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:Jh}:{line:[],band:[],lines:{},renderTier:null,targetTier:t,isFallback:false,isStale:false,coverage:Jh}}var qh=new Map;function Qh(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 _h({refs:e,refsKey:t,store:r,tier:o,viewport:n,fetchTile:a,dispatch:i,concurrency:s,maxFutureMs:c}){let l=Ze.useRef(e);l.current=e;let d=Ze.useRef(n);d.current=n;let u=Ze.useRef(new Map),m=Ze.useCallback(()=>{for(let p of u.current.values())p.ac.abort();u.current.clear();},[]);return Ze.useEffect(()=>{for(let[b,h]of u.current)h.tierId!==o.id&&(h.ac.abort(),u.current.delete(b));let p=l.current.filter(b=>{let h=vr(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=>vr(b.tierId,b.index))});for(let b of y){let h=vr(b.tierId,b.index),x=new AbortController;u.current.set(h,{ac:x,tierId:b.tierId});let C=c!=null?Math.min(b.endMs,c):b.endMs;a(o,b.startMs,C,x.signal).then(N=>{x.signal.aborted||i({type:"fulfilled",id:h,data:N});}).catch(N=>{if(!x.signal.aborted){let S=N instanceof Error?N.message:String(N);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,c]),Ze.useEffect(()=>m,[m]),{abortAll:m}}var tx=1.3,oR=25e4,nR=3;function aR(e,t,r){let o=t.tileSpanMs/t.bucketMs,n=Math.max(1,Math.floor(oR/o/r));return Math.min(Math.max(1,Math.ceil(.5*e/t.tileSpanMs)),n)}function ox(e){let{fetchTile:t,ladder:r,nativeMs:o,viewport:n,widthPx:a,maxFutureMs:i,targetPointsPerPx:s=1,concurrency:c=3,tileCostSeriesCount:l=nR,resetKey:d}=e,u=Ze.useMemo(()=>({targetPointsPerPx:s,nativeMs:o}),[s,o]),[m,p]=Ze.useState(()=>Xl(n.endMs-n.startMs,Math.max(1,a),r,u)),[g,f]=Ze.useReducer(Qh,qh),y=Ze.useRef(n.endMs-n.startMs),b=Ze.useRef(u);Ze.useEffect(()=>{let F=n.endMs-n.startMs,B=Xl(F,Math.max(1,a),r,u);if(B.id===m.id){b.current=u;return}let Q=Xl(F,Math.max(1,a),r,b.current).id!==B.id,H=F/y.current;(Q||H>tx||H<1/tx)&&(y.current=F,b.current=u,p(B));},[n,a,r,m.id,u]);let h=n.endMs-n.startMs,x=Ze.useMemo(()=>aR(h,m,l),[h,m,l]),C=Ze.useMemo(()=>vn(n,m,x),[n,m,x]),N=Ze.useMemo(()=>C.map(F=>vr(F.tierId,F.index)).join(","),[C]),S=Ze.useRef(C);S.current=C;let T=Ze.useRef(n);T.current=n;let R=Ze.useRef(g);R.current=g;let{abortAll:P}=_h({refs:C,refsKey:N,store:g,tier:m,viewport:n,fetchTile:t,dispatch:f,concurrency:c,...i!=null?{maxFutureMs:i}:{}}),E=Ze.useRef(null),D=Ze.useRef(false);Ze.useEffect(()=>{if(!D.current){D.current=true;return}P(),E.current=null,f({type:"reset"});},[P,d]);let k=Ze.useMemo(()=>S.current.map(F=>`${vr(F.tierId,F.index)}:${g.get(vr(F.tierId,F.index))?.status??"\u2205"}`).join("|"),[N,g]),A=Ze.useMemo(()=>{let F=jh({viewport:T.current,targetTier:m,ladder:r,store:R.current,overscanTiles:x,prev:E.current});return E.current=F,F},[k,m,r,x,n.startMs,n.endMs]),M=Ze.useMemo(()=>S.current.some(F=>R.current.get(vr(F.tierId,F.index))?.status==="loading"),[k]),z=Ze.useMemo(()=>{let F=S.current[0];return F?R.current.get(vr(F.tierId,F.index))?.status==="empty":false},[k]);return {tier:m,series:A,loading:M,atDataStart:z}}function Ap(e){let{initialViewport:t,...r}=e,[o,n]=Ze.useState(t),a=ox({...r,viewport:o}),i=Ze.useCallback(c=>n(c),[]),s=Ze.useCallback(c=>n(c),[]);return {viewport:o,onViewportChange:i,jumpTo:s,...a}}var iR={sm:"gap-4 px-6 py-8",md:"gap-5 px-8 py-12",lg:"gap-6 px-10 py-16"},sR={sm:"xs",md:"sm",lg:"md"},lR={sm:Rt("bodySm"),md:Rt("bodySm"),lg:Rt("bodyMd")},cR={sm:"h-10 w-10",md:"h-12 w-12",lg:"h-16 w-16"},dR={sm:20,md:24,lg:32},uR={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"},pR={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 jl({icon:e,title:t,description:r,primaryAction:o,secondaryAction:n,actions:a,size:i="md",alignment:s="center",variant:c="default",spotlightPattern:l="mesh",fullHeight:d=false,className:u}){let m=i==="sm"?"sm":"md",p=c==="spotlight",g=p?{background:pR[l]}: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(pt,{href:n.href||"#",variant:"muted",onPress:n.onPress,className:Rt("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",iR[i],uR[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",cR[i]),children:jsxRuntime.jsx(V,{name:e,size:dR[i]})}),jsxRuntime.jsx(pr,{size:sR[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",lR[i]),children:r}),f()]})}var fR=1440*60*1e3,gR=[{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}],bR=[{id:"day",days:1},{id:"week",days:7},{id:"month",days:30}];function ax(e,t=Date.now){return bR.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 ql(e=Date.now){return gR.map(({id:t,label:r,days:o})=>({id:t,label:r,getRange:()=>{let n=e();return {after:new Date(n-o*fR),before:new Date(n)}}}))}function SR({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(wl,{}),jsxRuntime.jsxs(reactAriaComponents.CalendarGrid,{className:"w-full border-separate [border-spacing:0] [&_td]:p-0 [&_td]:!border-0",children:[jsxRuntime.jsx(Nl,{}),jsxRuntime.jsx(reactAriaComponents.CalendarGridBody,{children:r=>jsxRuntime.jsx(reactAriaComponents.CalendarCell,{date:r,className:"selection-start:rounded-s-full selection-end:rounded-e-full [td:last-child_&]:rounded-e-end group h-9 w-9 cursor-default text-sm border-0 outside-month:text-text-disabled invalid:selected:bg-feedback-error-background forced-colors:selected:bg-[Highlight] forced-colors:selected:text-[HighlightText] forced-colors:invalid:selected:bg-[Mark] [td:first-child_&]:rounded-s-full [&]:border-0",children:({formattedDate:o,isSelected:n,isSelectionStart:a,isSelectionEnd:i,isFocusVisible:s,isDisabled:c})=>jsxRuntime.jsx("span",{className:SR({selectionState:n&&(a||i)?"cap":n?"middle":"none",isDisabled:c}),children:o})})})]}),e&&jsxRuntime.jsx(reactAriaComponents.Text,{slot:"errorMessage",className:"text-sm text-feedback-error-text",children:e})]})}function sx(e){return e==="brand"?"primary":e==="default"||e==="secondary"||!e?"subtle":e}var NR={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"},TR={sm:14,md:16,lg:18,xl:20},kR=({isSelected:e,isFirst:t,isLast:r,isDisabled:o,variant:n="subtle"})=>{let a=sx(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 Zl({options:e,value:t,onChange:r,size:o="md",className:n,isDisabled:a,variant:i="subtle",iconOnly:s=false,"aria-label":c}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("inline-flex overflow-hidden rounded-[var(--control-border-radius)]",sx(i)==="subtle"?"border border-border-muted":"border-2 border-border-muted",NR[o],n),role:"group","aria-label":c,children:e.map((l,d)=>{let u=s&&!!l.icon;return jsxRuntime.jsxs(reactAriaComponents.ToggleButton,{isSelected:t===l.id,onChange:()=>r(l.id),className:kR({isSelected:t===l.id,isFirst:d===0,isLast:d===e.length-1,isDisabled:a,variant:i}),isDisabled:a,"aria-label":l.label,children:[l.icon&&jsxRuntime.jsx(V,{name:l.icon,size:TR[o]}),u?jsxRuntime.jsx("span",{className:"sr-only",children:l.label}):jsxRuntime.jsx("span",{className:"inline-flex flex-col items-center after:content-[attr(data-label)] after:font-semibold after:h-0 after:overflow-hidden after:invisible","data-label":l.label,children:l.label})]},l.id)})})}function MR(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function Vp(e){return MR(e)?e:(console.warn("Invalid date detected in TimeControls, using fallback:",e),new Date)}var mx=120*1e3,LR=.02,fx={FIVE_MINUTES:0,FIFTEEN_MINUTES:1,HOUR:2,DAY:3,WEEK:4,MONTH:5,YEAR:6},DR=[{id:"FIFTEEN_MINUTES",label:"15m"},{id:"HOUR",label:"1h"},{id:"DAY",label:"1d"},{id:"WEEK",label:"1w"}];function _l({dateRange:e,onDateRangeChange:t,windowSize:r,onWindowSizeChange:o,showWindowSize:n=true,showRangeSelector:a=true,allowDatePicker:i=false,lockWindowSize:s=false,showReset:c=true,restrictToSingleDay:l=false,presetRanges:d=[],windowSizeOptions:u=DR,autoAdjustWindowSize:m=false,className:p}){let[g,f]=Ze.useState(0),y=Ze.useRef(null),[b,h]=Ze.useState(false),[x,C]=Ze.useState(null),N=w=>{let L=(w.before.getTime()-w.after.getTime())/(1e3*60*60);return L<=24?"FIFTEEN_MINUTES":L<=72||L<=168?"HOUR":("DAY")};Ze.useEffect(()=>{if(m&&!b&&o){let w=N(e);o(w);}},[e,m,b,o]);let S=w=>{let v;for(let L of d){let I=L.getRange(),X=(I.before.getTime()-I.after.getTime())*LR,oe=Math.abs(I.after.getTime()-w.after.getTime()),ie=Math.abs(I.before.getTime()-w.before.getTime());if(oe>X||ie>X)continue;let re=oe+ie;(!v||re<v.distance)&&(v={id:L.id,distance:re});}return v?.id},T=x&&d.some(w=>w.id===x.id)&&Math.abs(x.after-e.after.getTime())<=mx&&Math.abs(x.before-e.before.getTime())<=mx?x.id:S(e),R=Vp(e.after),P=Vp(e.before),E=new Date(P.getTime()-1),D={start:date.fromDate(R,date.getLocalTimeZone()),end:date.fromDate(E,date.getLocalTimeZone())};Ze.useEffect(()=>{let w=new ResizeObserver(v=>{for(let L of v)f(L.contentRect.width);});return y.current&&w.observe(y.current),()=>{y.current&&w.unobserve(y.current);}},[]);let k=[...u].sort((w,v)=>fx[w.id]-fx[v.id]),A=w=>{let v=w.toString(),L=d.find(I=>I.id===v);if(L){let I=L.getRange();C({id:v,after:I.after.getTime(),before:I.before.getTime()}),h(false),t(I,{presetId:v});}},M=w=>{if(w?.start&&w?.end){C(null);let v=new Date(w.start.year,w.start.month-1,w.start.day,0,0,0,0),L=new Date(w.end.year,w.end.month-1,w.end.day+1,0,0,0,0);t({after:v,before:L});}},z=w=>{if(w){C(null);let v=new Date(w.year,w.month-1,w.day,0,0,0,0),L=new Date(w.year,w.month-1,w.day+1,0,0,0,0);t({after:v,before:L});}},F=w=>{o&&(h(true),o(w.toString()));},B=()=>{d.length>0&&A(d[0].id);},O=w=>Vp(w).toLocaleDateString("en-US"),Q=k.map(w=>({id:w.id,label:w.label,value:w.id})),H=d.map(w=>({id:w.id,label:w.label,value:w.id})),U=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(w=>w.id===r)?.label||r}):jsxRuntime.jsx(Ho,{className:"w-full md:w-auto",selectedKey:r,onSelectionChange:F,items:Q,size:"md","aria-label":"Select Window Size",children:w=>jsxRuntime.jsx(gr,{id:w.id,"aria-label":w.label,size:"md",children:w.label},w.id)}),W=c&&!T&&d.length>0,G=l?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:O(e.after)})]}),jsxRuntime.jsx(St,{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:z})})]})}):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",W&&"rounded-r-none"),variant:"secondary",children:[jsxRuntime.jsx(V,{name:"CalendarBlank",size:18}),!T&&jsxRuntime.jsx("span",{className:"ml-2 hidden md:block",children:`${O(e.after)} - ${O(E)}`})]}),jsxRuntime.jsx(St,{className:"z-50 w-auto p-3",disableGroup:true,children:jsxRuntime.jsx(ni,{"aria-label":"Date range calendar",value:D,onChange:M})})]}),W&&jsxRuntime.jsx(te,{variant:"ghost",size:"md",onPress:B,children:"Reset"})]}),K=g<600;return jsxRuntime.jsx("div",{ref:y,className:tailwindMerge.twMerge("flex w-full flex-wrap items-center justify-between gap-4",p),children:K?jsxRuntime.jsxs("div",{className:"flex w-full justify-between",children:[jsxRuntime.jsxs("div",{className:"flex items-center",children:[i&&G,a&&d.length>0&&jsxRuntime.jsx(Ho,{selectedKey:T??"",onSelectionChange:A,items:H,size:"md","aria-label":"Select Date Range",children:w=>jsxRuntime.jsx(gr,{id:w.id,size:"md",children:w.label},w.id)})]}),jsxRuntime.jsx("div",{className:"flex items-center",children:n&&r&&U})]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-4",children:[i&&G,a&&d.length>0&&jsxRuntime.jsx(Zl,{options:d.map(w=>({id:w.id,label:w.label})),value:T??"",onChange:A,size:"sm",variant:"secondary","aria-label":"Select Date Range"})]}),jsxRuntime.jsx("div",{className:"flex items-center",children:n&&r&&U})]})})}var BR=1440*60*1e3,bx=6e4,hx=(e,t)=>({startMs:t-e*BR,endMs:t}),VR=e=>({after:new Date(e.startMs),before:new Date(e.endMs)});function xx({source:e,title:t,initialRange:r,viewportEnd:o,yFormatter:n,yDomain:a,referenceLines:i,emptyState:s,presetRanges:c,tierToWindow:l,windowSizeOptions:d,height:u=360,hint:m,dataBounds:p,onViewChange:g,followLatest:f=false,children:y}){let[b,h]=Ze.useState(900),x=p?.endMs,[C,N]=Ze.useState(()=>x??Date.now());Ze.useEffect(()=>{if(x!=null){N(x);return}N(Date.now());let Z=setInterval(()=>N(Date.now()),bx);return ()=>clearInterval(Z)},[x]);let S=o?.getTime()??x,T=f&&o===void 0&&p===void 0,[R,P]=Ze.useState(true),E=T&&R,D=r?.days??30,k=Ze.useMemo(()=>hx(D,S??Date.now()),[D,S]),A=C,M=Ze.useMemo(()=>({startMs:p?.startMs??0,endMs:C}),[p?.startMs,C]),z=Z=>{let de=Math.min(Z.endMs-Z.startMs,M.endMs-M.startMs),he=Math.max(Math.min(Z.endMs,M.endMs),M.startMs+de);return {startMs:he-de,endMs:he}},F=(Z,de=true)=>{let he=T&&de&&Math.abs(M.endMs-Z)<=bx;P(he),he&&N(Date.now());},[B,O]=Ze.useState(null),[Q,H]=Ze.useState(null),U=B??k,W=Ap({fetchTile:e.fetchTile,ladder:e.ladder,nativeMs:e.nativeMs,initialViewport:k,widthPx:b,maxFutureMs:A,tileCostSeriesCount:e.tileCostSeriesCount,resetKey:e.resetKey}),G=Ze.useRef(W.viewport);G.current=W.viewport;let K=W.jumpTo;Ze.useEffect(()=>{E&&N(Date.now());},[E,e.resetKey]),Ze.useEffect(()=>{if(!E)return;let Z=G.current,de=C;de<=Z.endMs||K({startMs:de-(Z.endMs-Z.startMs),endMs:de});},[E,C,K]);let w=Ze.useMemo(()=>ql(()=>S??Date.now()),[S]),v=c??w,L=()=>{if(Q&&"presetId"in Q){let Z=v.find(de=>de.id===Q.presetId);if(Z){let de=Z.getRange();return {startMs:de.after.getTime(),endMs:de.before.getTime()}}}return Q&&"range"in Q?Q.range:hx(D,S??Date.now())},{line:I,coverage:X,renderTier:oe,targetTier:ie,isFallback:re,isStale:ae}=W.series,Le=ie.id,ue=oe?.id??null,{startMs:ge,endMs:le}=W.viewport,pe=Ze.useRef(g);Ze.useEffect(()=>{pe.current=g;},[g]),Ze.useEffect(()=>{pe.current?.({targetTierId:Le,renderedTierId:ue,viewport:{startMs:ge,endMs:le},followingLatest:E});},[Le,ue,ge,le,E]);let Pe=oe?oe.bucketMs*1.5:0,_e=Z=>Z==null?"\u2014":new Date(Z).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),qe=(Z,de)=>{let he=de-Z<1728e5?{month:"short",day:"numeric",hour:"numeric",minute:"2-digit"}:{month:"short",day:"numeric",year:"numeric"},Y=new Intl.DateTimeFormat("en-US",he);return `${Y.format(new Date(Z))} \u2013 ${Y.format(new Date(de))}`},er=E?W.viewport.endMs-W.viewport.startMs!==U.endMs-U.startMs:W.viewport.startMs!==U.startMs||W.viewport.endMs!==U.endMs,yt=ae||W.loading&&X.earliestMs==null,tr=(W.viewport.endMs-W.viewport.startMs)*.03,qt=!yt&&X.earliestMs!=null&&X.earliestMs>W.viewport.startMs+tr,it=!W.loading&&X.earliestMs==null&&X.latestMs==null&&I.length===0&&!ae,vt=Qn(t),ee=y({series:W.series,gapMs:Pe}),Oe=Ze.isValidElement(ee)&&ee.type===Ze.Fragment?ee.props.children:ee,Qe=jsxRuntime.jsxs("div",{className:`flex flex-col gap-3${vt.isExpanded?" h-full":""}`,children:[jsxRuntime.jsxs("div",{className:"flex items-start gap-2",children:[jsxRuntime.jsx(_l,{dateRange:VR(W.viewport),onDateRangeChange:(Z,de)=>{let he=z({startMs:Z.after.getTime(),endMs:Z.before.getTime()});F(he.endMs,!!de?.presetId),H(de?.presetId?{presetId:de.presetId}:{range:he}),O(he),W.jumpTo(he);},windowSize:l[ie.id],windowSizeOptions:d,lockWindowSize:true,presetRanges:v,allowDatePicker:true,showReset:false}),!vt.isExpanded&&!it&&vt.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:qe(W.viewport.startMs,W.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:oe?.id??ie.id}),re&&jsxRuntime.jsxs("span",{className:"text-text-tertiary",children:[" \xB7 loading ",ie.id]})]}),W.loading&&jsxRuntime.jsx("span",{className:"text-text-tertiary",children:"loading\u2026"}),qt&&jsxRuntime.jsxs("span",{className:"text-text-tertiary",children:["showing available history from ",_e(X.earliestMs)]}),!qt&&!yt&&W.atDataStart&&jsxRuntime.jsx("span",{className:"text-text-tertiary",children:"no earlier data loaded"}),er&&jsxRuntime.jsx(te,{variant:"ghost",size:"sm",onPress:()=>{let Z=z(L());F(Z.endMs,!(Q&&"range"in Q)),O(Z),W.jumpTo(Z);},children:"\u27F2 Reset"})]}),jsxRuntime.jsx("div",{className:`relative overflow-hidden rounded-md border border-border-subtle${vt.isExpanded?" min-h-0 flex-1":""}`,style:vt.isExpanded?void 0:{height:u},children:it?jsxRuntime.jsx(jl,{title:s.title,description:s.description}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Jl,{title:t,viewport:W.viewport,panBounds:M,onViewportChange:Z=>{F(Z.endMs),W.onViewportChange(Z);},onPlotWidthChange:h,...n&&{yFormatter:n},...a&&{yDomain:a},...i&&{referenceLines:i},children:Oe}),W.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(vp,{children:vt.present(Qe)})}function os({count:e,label:t="results",suffix:r,unknownLabel:o="\u2014",isLoading:n=false,className:a="",testId:i}){if(n)return jsxRuntime.jsx("div",{className:`flex items-center ${a}`,children:jsxRuntime.jsx(j,{width:80,height:16})});if(e===null)return jsxRuntime.jsx("div",{"data-testid":i,className:`text-sm text-text-secondary whitespace-nowrap ${a}`,children:o});let s=t.endsWith("s")?t.slice(0,-1):t,c=e===1&&!r?s:t,l=`${e.toLocaleString()}${r??""}${c?` ${c}`:""}`;return jsxRuntime.jsx("div",{"data-testid":i,className:`text-sm text-text-secondary whitespace-nowrap ${a}`,children:l})}var WR=e=>{let t=Gt({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:c,onClear:l,type:d,validationResult:u,reserveErrorSpace:m=true,isLoading:p=false,descriptionPlacement:g="below",...f}){let[y,b]=Ze__namespace.default.useState(false),{isFocused:h,handleFocus:x,handleBlur:C}=fr(),N=d==="password",S=ml(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(Je,{size:o,tooltip:n,description:g==="tooltip"||g==="inline"?t:void 0,descriptionPlacement:g,isRequired:a,children:e}),jsxRuntime.jsxs(Nt,{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(gl,{size:o,disabled:T,type:N?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:WR({isInvalid:R,isDisabled:T,isFocused:h,size:o,transparent:i,showSearchIcon:s,isClearable:c,hasValue:!!f.value,isPassword:N,className:typeof f.className=="string"?f.className:void 0})}),c&&f.value&&!T&&jsxRuntime.jsx(Vi,{onClick:()=>{l?l():f.onChange&&f.onChange("");},size:o}),N&&!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(ye,{size:o,children:r}):typeof r=="function"&&u?jsxRuntime.jsx(ye,{size:o,children:r(u)}):t&&g==="below"?jsxRuntime.jsx(ke,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(ye,{size:o,className:"mt-1",children:r}):typeof r=="function"&&u?jsxRuntime.jsx(ye,{size:o,className:"mt-1",children:r(u)}):t&&g==="below"?jsxRuntime.jsx(ke,{size:o,className:"mt-1",children:t}):null})]})})}function ra({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 ns({value:e,options:t,onChange:r,direction:o,onDirectionChange:n,showLabel:a=true,size:i="sm",className:s="",compact:c=false}){let[l,d]=Ze.useState(false),u=o!==void 0&&n!==void 0,m=t.find(p=>p.value===e);return c?jsxRuntime.jsxs("div",{className:`flex items-center gap-2 ${s}`,children:[jsxRuntime.jsx(te,{variant:"secondary",size:i,icon:"ArrowsDownUp","aria-label":`Sort by: ${m?.label||"Select"}`,onPress:()=>d(true)}),jsxRuntime.jsx(wt,{isOpen:l,onClose:()=>d(false),title:"Sort by",contentPadding:false,children:jsxRuntime.jsx(reactAriaComponents.ListBox,{items:t.map(p=>({id:p.value,label:p.label,value:p.value})),className:"w-full bg-background-surface p-0 outline-0 [&_[role=option]]:border-b [&_[role=option]]:border-border-default [&_[role=option]:last-child]:border-0 [&_[role=option]]:!px-6 [&_[role=option]]:!py-4 [&_[role=option]]:rounded-none",selectionMode:"single",selectedKeys:e?[e]:[],onSelectionChange:p=>{let g=Array.from(p)[0];g!=null&&(r(g),d(false));},children:p=>jsxRuntime.jsx(gr,{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(Ho,{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 Sx({search:e,searchMobileMode:t="expanded",filters:r=[],onRemoveFilter:o,onClearAllFilters:n,onManageFilters:a,exportControl:i,maxVisibleFilterChips:s=3,sort:c,resultsCount:l,leftControls:d,onManageColumns:u,columnPicker:m,customControls:p,actions:g,interactionMode:f="auto",sticky:y,stickyTop:b="0",zIndex:h=10,className:x="",style:C}){let N=r.length>0;if(!(e||N||a||c||l||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&&l&&jsxRuntime.jsx("div",{className:"h-4 w-px bg-border-default"}),l&&jsxRuntime.jsx(os,{count:l.count,label:l.label,suffix:l.suffix,unknownLabel:l.unknownLabel,isLoading:l.isLoading,testId:l.testId}),l&&c&&jsxRuntime.jsx("div",{className:"h-4 w-px bg-border-default"}),c&&jsxRuntime.jsx(ns,{value:c.value,options:c.options,onChange:c.onChange,showLabel:c.showLabel,direction:c.direction,onDirectionChange:c.onDirectionChange}),u?jsxRuntime.jsx(te,{variant:"secondary",size:"sm",icon:"Columns",onClick:u,children:"Columns"}):m,N&&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(ra,{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:i.icon??"Upload",onClick:i.onClick,isDisabled:i.isDisabled,isLoading:i.isLoading,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(ra,{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:i.icon??"Upload",onClick:i.onClick,isDisabled:i.isDisabled,isLoading:i.isLoading,children:i.label})]})})}),jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-3",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[d,l&&jsxRuntime.jsx(os,{count:l.count,label:l.label,suffix:l.suffix,unknownLabel:l.unknownLabel,isLoading:l.isLoading})]}),jsxRuntime.jsx("div",{className:"flex items-center gap-2",children:c&&jsxRuntime.jsx(ns,{value:c.value,options:c.options,onChange:c.onChange,showLabel:false,direction:c.direction,onDirectionChange:c.onDirectionChange,compact:f!=="desktop"})})]})]})]})}function wx({filters:e,onRemove:t,onClearAll:r,onManageFilters:o,maxVisibleChips:n=3,mode:a="chips",showManageButton:i=true,size:s="sm",className:c=""}){let l=e.length>0,d=e.slice(0,n),u=Math.max(0,e.length-n),m=u>0,p=a==="button"&&!!o,g=a==="chips"&&i&&!!o;if(!l&&!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"}),l&&d.map(h=>jsxRuntime.jsxs(Yr,{variant:"secondary",size:s,onRemove:()=>t(h.id),isRemovable:true,children:[h.label,": ",h.value]},h.id)),l&&m&&o&&jsxRuntime.jsxs(te,{variant:"ghost",size:s,onClick:o,className:"text-text-secondary hover:text-text-primary whitespace-nowrap",children:["+",u," more"]}),l&&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 ${c}`,children:b})}var Nx=["isEmpty","isNotEmpty"];function Tx(e){return Nx.includes(e)}var kx={isEmpty:"is empty",isNotEmpty:"is not empty"};function qR(e,t,r){return {field:e,operator:t,value:r}}function QR(e,t="AND"){return {logic:t,conditions:e}}function as(){return {logic:"AND",conditions:[]}}function rc(e){return !e||e.conditions.length===0?true:e.conditions.every(t=>"conditions"in t?rc(t):false)}function ZR(e,t){if(!e)return [];let r=new Map(t?.map(i=>[i.field,i])),o=new Map;function n(i){if("conditions"in i)i.conditions.forEach(s=>n(s));else {let s=o.get(i.field)||[];s.push(i),o.set(i.field,s);}}e.conditions.forEach(i=>n(i));let a=[];for(let[i,s]of o.entries()){let c=r.get(i),l=c?.label||i,d=[],u=[],m=[];for(let p of s)p.operator==="in"&&Array.isArray(p.value)?d.push(...p.value):p.operator==="eq"?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=>c?.values?.find(b=>String(b.value)===String(f))?.label??f);a.push({id:`${i}-in`,label:l,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:l,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:l,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}"`:Tx(p.operator)?g=kx[p.operator]:g=String(p.value),a.push({id:`${i}-${p.operator}`,label:l,value:g});}}return a}function Nn(e,t){let r=e||as();return {...r,conditions:[...r.conditions,t]}}function oa(e,t){if(!e)return as();let r=e.conditions.filter(o=>"conditions"in o?oa(o,t).conditions.length>0:o.field!==t);return {...e,conditions:r}}function na(e){if(!e)return [];let t=new Set;function r(o){"conditions"in o?o.conditions.forEach(r):t.add(o.field);}return e.conditions.forEach(r),Array.from(t)}function Rx({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,isDisabled:i,isInvalid:s,showCalendar:c=true,reserveErrorSpace:l=true,validationResult:d,className:u,...m}){let[p,g]=Ze.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(Je,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(Nt,{children:jsxRuntime.jsxs("div",{className:"relative w-full",children:[jsxRuntime.jsx(is,{size:o,isDisabled:i,isInvalid:s,hasCalendar:c}),c&&!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})})})]})]})}),l?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(ye,{size:o,children:r}):typeof r=="function"&&d?jsxRuntime.jsx(ye,{size:o,children:r(d)}):t?jsxRuntime.jsx(ke,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(ye,{size:o,className:"mt-1",children:r}):typeof r=="function"&&d?jsxRuntime.jsx(ye,{size:o,className:"mt-1",children:r(d)}):t?jsxRuntime.jsx(ke,{size:o,className:"mt-1",children:t}):null})]})}function a2({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 is({size:e="md",isDisabled:t,isInvalid:r,hasCalendar:o,className:n,...a}){return jsxRuntime.jsx(reactAriaComponents.DateInput,{className:tailwindMerge.twMerge(cn({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:a2({isPlaceholder:i.isPlaceholder,isDisabled:!i.isEditable||t,size:e})})})}function oc({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(Je,{children:e}),jsxRuntime.jsxs(Xg,{className:"w-auto min-w-[208px]",children:[jsxRuntime.jsx(is,{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(is,{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(ke,{children:t}),typeof r=="string"?jsxRuntime.jsx(ye,{children:r}):null,jsxRuntime.jsx(St,{children:jsxRuntime.jsx(ni,{})})]})}var f2=e=>{let t=Gt({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 ss({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,transparent:i,validationResult:s,reserveErrorSpace:c=true,descriptionPlacement:l="below",...d}){let u=Ze.useId(),{isFocused:m,handleFocus:p,handleBlur:g}=fr();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(Je,{size:o,tooltip:n,description:l==="tooltip"||l==="inline"?t:void 0,descriptionPlacement:l,isRequired:a,htmlFor:u,children:e}),jsxRuntime.jsx("div",{className:"relative",children:jsxRuntime.jsxs(reactAriaComponents.Group,{className:"relative",children:[jsxRuntime.jsx(reactAriaComponents.Input,{onFocus:h=>p(h,d.onFocus),onBlur:h=>g(h,d.onBlur),className:f2({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})})]})]})}),c?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:r?jsxRuntime.jsx(ye,{size:o,children:typeof r=="function"?r(s):r}):t&&l==="below"?jsxRuntime.jsx(ke,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:r?jsxRuntime.jsx(ye,{size:o,className:"mt-1",children:typeof r=="function"?r(s):r}):t&&l==="below"?jsxRuntime.jsx(ke,{size:o,className:"mt-1",children:t}):null})]})})}var Up={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 h2({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=Up[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 x2({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=Up[r].handle;return [o,n,e?"translate-x-[100%]":"translate-x-0",t?"forced-colors:outline-[GrayText]":""].filter(Boolean).join(" ")}function nc({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 ${Up[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:h2({...n,size:r}),children:jsxRuntime.jsx("span",{className:x2({...n,size:r})})}),e]})})}function Lx(e){return new Intl.NumberFormat("en-US").format(e)}function Dx({isOpen:e,onClose:t,facetConfigs:r,facetCounts:o={},currentFilters:n,onApply:a,onClear:i,title:s="Filters",resultCount:c}){let[l,d]=Ze.useState(n),[u,m]=Ze.useState({}),[p,g]=Ze.useState({}),[f,y]=Ze.useState(null),{isMobile:b}=cr(),h=Ze.useMemo(()=>r.some(v=>v.group),[r]),{groups:x,ungroupedFacets:C,facetsByGroup:N}=Ze.useMemo(()=>{let v=new Set,L=[],I={};for(let X of r)X.group?(v.has(X.group)||(v.add(X.group),I[X.group]=[]),I[X.group].push(X)):L.push(X);return {groups:Array.from(v),ungroupedFacets:L,facetsByGroup:I}},[r]);Ze.useEffect(()=>{e&&(d(n),m({}),g({}),y(!b&&x.length>0?x[0]:null));},[e,n,x,b]);let S=Ze.useMemo(()=>!l||rc(l)?0:na(l).length,[l]),T=()=>{a(l),t();},R=()=>{let v=as();d(v),i?i():a(v),t();},P=v=>{if(!l)return [];if(!na(l).includes(v))return [];let I=[];function X(oe){if(oe)for(let ie of oe.conditions)"conditions"in ie?X(ie):ie.field===v&&ie.operator==="in"&&Array.isArray(ie.value)&&I.push(...ie.value.map(String));}return X(l),I},E=(v,L,I)=>{let X=oa(l,v);L!==void 0&&(X=Nn(X,{field:v,operator:"gte",value:L})),I!==void 0&&(X=Nn(X,{field:v,operator:"lte",value:I})),d(X);},D=v=>{if(!l)return;let L;function I(X){if(X)for(let oe of X.conditions)"conditions"in oe?I(oe):oe.field===v&&oe.operator==="eq"&&typeof oe.value=="boolean"&&(L=oe.value);}return I(l),L},k=(v,L)=>{let I=oa(l,v);L!==void 0&&(I=Nn(I,{field:v,operator:"eq",value:L})),d(I);},A=(v,L,I)=>{let X=oa(l,v);L&&(X=Nn(X,{field:v,operator:"gte",value:L.toString()})),I&&(X=Nn(X,{field:v,operator:"lte",value:I.toString()})),d(X);},M=v=>{let L=N[v]||[],I=l?na(l):[];return L.filter(X=>I.includes(X.field)).length},z="pr-9 bg-background-muted/50",F="border-t border-border-muted",B="text-sm font-medium text-text-link-default",O=v=>jsxRuntime.jsx("span",{className:B,children:v}),Q=v=>{let L=o[v.field]||{},I=u[v.field]||"",X=[];v.values?X=v.values.map(re=>({value:String(re.value),label:re.label,count:L[String(re.value)]})):X=Object.entries(L).map(([re,ae])=>({value:re,label:re,count:ae}));let oe=X.length;if(I){let re=I.toLowerCase();X=X.filter(ae=>ae.label.toLowerCase().includes(re));}X.sort((re,ae)=>re.count!==void 0&&ae.count!==void 0&&ae.count!==re.count?ae.count-re.count:re.label.localeCompare(ae.label));let ie=v.type||"string";if(ie==="string"||!v.type){let re=P(v.field),ae=v.searchThreshold??10,Le=v.maxVisibleOptions??50,ue=p[v.field]??false,ge=ue||X.length<=Le?X:X.slice(0,Le),le=X.length>Le&&!ue;return jsxRuntime.jsxs(fn,{id:v.field,children:[jsxRuntime.jsx(gn,{title:v.label,description:v.description,className:z,endContent:re.length>0?O(`${re.length} selected`):void 0}),jsxRuntime.jsx(bn,{className:F,children:jsxRuntime.jsxs("div",{className:"space-y-4 pt-4 pb-4",children:[oe>ae&&jsxRuntime.jsx(ra,{value:I,onChange:pe=>m(Pe=>({...Pe,[v.field]:pe})),onClear:()=>m(pe=>({...pe,[v.field]:""})),placeholder:`Search ${v.label.toLowerCase()}...`,size:"sm",className:"w-full !max-w-none pr-4"}),jsxRuntime.jsx(Zu,{value:re,onChange:pe=>{let Pe=oa(l,v.field);pe.length>0&&(Pe=Nn(Pe,{field:v.field,operator:"in",value:pe})),d(Pe);},children:jsxRuntime.jsx("div",{className:"space-y-1.5",children:ge.map(pe=>jsxRuntime.jsx("div",{className:"rounded-md py-2 pr-4 transition-colors hover:bg-background-hover",children:jsxRuntime.jsx(eo,{value:pe.value,children:jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-3 flex-1",children:[v.renderLabel?v.renderLabel(pe.value,pe.label):jsxRuntime.jsx("span",{className:"text-sm font-medium text-text-primary",children:pe.label}),pe.count!==void 0&&jsxRuntime.jsx("span",{className:"text-xs font-medium text-text-secondary tabular-nums",children:Lx(pe.count)})]})})},pe.value))})}),le&&jsxRuntime.jsx("div",{className:"pt-2 border-t border-border-muted",children:jsxRuntime.jsxs(te,{variant:"ghost",size:"sm",onPress:()=>g(pe=>({...pe,[v.field]:true})),className:"w-full",children:["Show all ",X.length," options"]})}),ue&&X.length>Le&&jsxRuntime.jsx("div",{className:"pt-2 border-t border-border-muted",children:jsxRuntime.jsx(te,{variant:"ghost",size:"sm",onPress:()=>g(pe=>({...pe,[v.field]:false})),className:"w-full",children:"Show less"})})]})})]},v.field)}if(ie==="number"){let re,ae,Le=ge=>{if(ge)for(let le of ge.conditions)"conditions"in le?Le(le):le.field===v.field&&(le.operator==="gte"&&typeof le.value=="number"&&(re=le.value),le.operator==="lte"&&typeof le.value=="number"&&(ae=le.value));};Le(l);let ue=re!==void 0||ae!==void 0;return jsxRuntime.jsxs(fn,{id:v.field,children:[jsxRuntime.jsx(gn,{title:v.label,description:v.description,className:z,endContent:ue?O(re!==void 0&&ae!==void 0?`${re} - ${ae}`:re!==void 0?`\u2265 ${re}`:`\u2264 ${ae}`):void 0}),jsxRuntime.jsx(bn,{className:F,children:jsxRuntime.jsxs("div",{className:"grid grid-cols-2 gap-4 pt-4 pb-4",children:[jsxRuntime.jsx(ss,{label:"Min",value:re,onChange:ge=>E(v.field,ge,ae)},`${v.field}-min`),jsxRuntime.jsx(ss,{label:"Max",value:ae,onChange:ge=>E(v.field,re,ge)},`${v.field}-max`)]})})]},v.field)}if(ie==="boolean"){let re=D(v.field);return jsxRuntime.jsxs(fn,{id:v.field,children:[jsxRuntime.jsx(gn,{title:v.label,description:v.description,className:z,endContent:re!==void 0?O(re?"Yes":"No"):void 0}),jsxRuntime.jsx(bn,{className:F,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:re!==void 0?re?"Enabled":"Disabled":"No filter applied"}),jsxRuntime.jsx(nc,{size:"lg",isSelected:re??false,onChange:ae=>k(v.field,ae?true:void 0),children:re?"Yes":"No"})]})})]},v.field)}if(ie==="date"){let re,ae,Le=Pe=>{if(Pe)for(let _e of Pe.conditions)"conditions"in _e?Le(_e):_e.field===v.field&&(_e.operator==="gte"&&(re=String(_e.value)),_e.operator==="lte"&&(ae=String(_e.value)));};Le(l);let ue=re!==void 0||ae!==void 0,ge=Pe=>{if(Pe)try{return /^\d{4}-\d{2}-\d{2}$/.test(Pe)?date.parseDate(Pe):void 0}catch{return}},le=ge(re),pe=ge(ae);return jsxRuntime.jsxs(fn,{id:v.field,children:[jsxRuntime.jsx(gn,{title:v.label,description:v.description,className:z,endContent:ue?O("Date range selected"):void 0}),jsxRuntime.jsx(bn,{className:F,children:jsxRuntime.jsx("div",{className:"pt-4 pb-4",children:jsxRuntime.jsx(oc,{label:"Date Range",value:le&&pe?{start:le,end:pe}:void 0,onChange:Pe=>{Pe?A(v.field,Pe.start,Pe.end):A(v.field,void 0,void 0);}})})})]},v.field)}return null},H=()=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[C.map(v=>{let I=(l?na(l):[]).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:[I&&jsxRuntime.jsx("span",{className:B,children:"1 active"}),jsxRuntime.jsx(V,{name:"CaretRight",size:"sm",className:"text-text-secondary"})]})]},v.field)}),x.map(v=>{let L=M(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:[L>0&&jsxRuntime.jsxs("span",{className:B,children:[L," active"]}),jsxRuntime.jsx(V,{name:"CaretRight",size:"sm",className:"text-text-secondary"})]})]},v)})]}),U=v=>{if(v.startsWith("__ungrouped__")){let I=v.replace("__ungrouped__",""),X=C.find(oe=>oe.field===I);return X?jsxRuntime.jsx(ja,{variant:"contained",density:"comfortable",showDividers:true,defaultExpandedKeys:[X.field],children:Q(X)}):null}let L=N[v]||[];return L.length===0?null:jsxRuntime.jsx(ja,{variant:"contained",density:"comfortable",showDividers:true,defaultExpandedKeys:[L[0].field],children:L.map(I=>Q(I))})},W=()=>{if(f){let v=f.startsWith("__ungrouped__")&&C.find(L=>L.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:U(f)})]})}return H()},G=()=>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 I=(l?na(l):[]).includes(v.field),X=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 ${X?"bg-background-selected":"hover:bg-background-hover"}`,children:[jsxRuntime.jsx("span",{className:`text-sm truncate ${X?"font-semibold text-text-primary":"font-medium text-text-primary"}`,children:v.label}),I&&jsxRuntime.jsx("span",{className:"w-2 h-2 rounded-full bg-action-primary flex-shrink-0 ml-2"})]},v.field)}),x.map(v=>{let L=M(v),I=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 ${I?"bg-background-selected":"hover:bg-background-hover"}`,children:[jsxRuntime.jsx("span",{className:`text-sm truncate ${I?"font-semibold text-text-primary":"font-medium text-text-primary"}`,children:v}),L>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?U(f):jsxRuntime.jsx("div",{className:"flex items-center justify-center h-full text-text-secondary text-sm",children:"Select a category to view filters"})})]}),K=()=>jsxRuntime.jsx(ja,{variant:"contained",density:"comfortable",showDividers:true,defaultExpandedKeys:[r[0].field],children:r.map(v=>Q(v))});return jsxRuntime.jsx(mr,{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:c!==void 0?jsxRuntime.jsxs("div",{className:"text-sm text-text-secondary text-center",children:[jsxRuntime.jsx("span",{className:"font-semibold text-text-primary",children:Lx(c)})," ",c===1?"result":"results"," with current filters"]}):void 0,children:r.length===0?jsxRuntime.jsx("div",{className:"py-12 text-center",children:jsxRuntime.jsx("div",{className:"text-sm font-medium text-text-secondary",children:"No filters available"})}):h?b?W():G():K()})}function Yp(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 Sr(e="normal",t){return tailwindMerge.twMerge({strong:"font-semibold text-text-primary",high:"font-semibold text-text-primary",normal:"text-text-primary",low:"text-text-secondary"}[e],t&&"hover:text-action-primary cursor-pointer transition-colors")}function Ne(e="left",t){return tailwindMerge.twMerge("flex items-center gap-1 min-w-0 overflow-hidden",Yp(e),t)}function sc(e,t="\u2014"){return e==null||e===""?t:String(e)}var Tn={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 Pt(e="normal"){return {strong:Tn.lg,high:Tn.lg,normal:Tn.md,low:Tn.sm}[e]}function me(e,...t){return typeof e=="function"?e(...t):e}function Ax(e="neutral",t="sm"){return tailwindMerge.twMerge("inline-flex items-center rounded-full font-medium",t==="sm"?"px-2 py-0.5 text-xs":"px-2.5 py-1 text-sm",{success:"bg-feedback-success-background text-feedback-success-text",error:"bg-feedback-error-background text-feedback-error-text",warning:"bg-feedback-warning-background text-feedback-warning-text",info:"bg-feedback-info-background text-feedback-info-text",neutral:"bg-background-muted text-text-secondary"}[e])}function Ix(e){return e?"success":"neutral"}function lc(e,t=false){return t?e>0?"text-feedback-success-text":e<0?"text-feedback-error-text":"text-text-primary":"text-text-primary"}function Jp(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,c=Jp(o,n);return jsxRuntime.jsx("a",{href:s,className:tailwindMerge.twMerge(c,a==="strong"||a==="high"?"font-semibold":"",i),onClick:d=>{d.metaKey||d.ctrlKey;},children:e})}function Fx({row:e,context:t,actions:r,align:o="right",size:n="sm"}){let{isLoading:a}=t;if(a)return jsxRuntime.jsx(j,{className:Tn.sm});let s=(typeof r=="function"?r(e):r).filter(l=>!me(l.hidden,e));if(s.length===0)return null;let c=Ne(o);return jsxRuntime.jsx("div",{className:c,children:s.map(l=>{let d=me(l.disabled,e);return l.variant==="icon"||!l.label?jsxRuntime.jsx(te,{variant:"icon",size:n,onPress:()=>{l.onClick(e);},isDisabled:d,"aria-label":l.label||l.id,children:jsxRuntime.jsx(V,{name:l.icon||"DotsThree",size:n==="sm"?16:20})},l.id):jsxRuntime.jsxs(te,{variant:l.variant||"secondary",size:n,onPress:()=>{l.onClick(e);},isDisabled:d,children:[l.icon&&jsxRuntime.jsx(V,{name:l.icon,size:n==="sm"?14:16}),l.label]},l.id)})})}function Vx({value:e,row:t,context:r,variant:o="default",label:n,size:a="sm",shape:i="square",dot:s,dotPosition:c="left",dotPulse:l,align:d="left",emptyText:u="\u2014",className:m,maxVisible:p=2,maxLabelLength: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(Zt,{content:T,children:jsxRuntime.jsx("span",{children:R})})};if(f)return jsxRuntime.jsx(j,{className:Pt("normal")});if(e==null||e==="")return jsxRuntime.jsx("div",{className:Ne(d,"text-text-secondary"),children:u});if(Array.isArray(e)&&e.length===0)return jsxRuntime.jsx("div",{className:Ne(d,"text-text-secondary"),children:u});let b=Ne(d,m);if(Array.isArray(e)){let 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 D=me(o,P,t),k=n!==void 0?me(n,P,t):String(P),A=me(s,P,t),M=me(l,P,t);return jsxRuntime.jsx("span",{className:"flex-shrink-0 whitespace-nowrap",children:jsxRuntime.jsx(gt,{variant:D,size:a,shape:i,dot:A,dotPosition:c,dotPulse:M,children:y(k,k)})},E)}),R&&jsxRuntime.jsx(Zt,{content:T.join(", "),children:jsxRuntime.jsx("span",{className:"flex-shrink-0 whitespace-nowrap",children:jsxRuntime.jsxs(gt,{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),N=me(l,e,t);return jsxRuntime.jsx("div",{className:b,children:jsxRuntime.jsx(gt,{variant:h,size:a,shape:i,dot:C,dotPosition:c,dotPulse:N,children:y(x,x)})})}function Ox({value:e,context:t,format:r="icon",trueText:o="Yes",falseText:n="No",trueIcon:a="Check",falseIcon:i="X",showFalse:s=true,align:c="center",emphasis:l="normal",className:d}){let{isLoading:u}=t;if(u)return jsxRuntime.jsx(j,{className:Pt(l)});let m=!!e;if(!m&&!s)return jsxRuntime.jsx("div",{className:Ne(c,d)});let p=Ne(c,d);switch(r){case "icon":return jsxRuntime.jsx("div",{className:p,children:jsxRuntime.jsx(V,{name:m?a:i,size:16,className:m?"text-feedback-success-text":"text-text-disabled"})});case "text":return jsxRuntime.jsx("div",{className:p,children:jsxRuntime.jsx("span",{className:Sr(l),children:m?o:n})});case "badge":return jsxRuntime.jsx("div",{className:p,children:jsxRuntime.jsx(gt,{variant:m?"success":"neutral",size:"sm",children:m?o:n})});default:return null}}var cc="var(--color-text-subtle)",zx=Js().map((e,t)=>`var(--color-viz-categorical-${t+1})`);function Gx({value:e,row:t,context:r,color:o,swatch:n="dot",emptyText:a="\u2014",align:i="left",className:s}){let{isLoading:c}=r;if(c)return jsxRuntime.jsx(j,{className:Pt("normal")});let l=me(e,t),d=l==null?"":String(l);return d.length===0?jsxRuntime.jsx("div",{className:Ne(i,"text-text-secondary"),children:a}):jsxRuntime.jsxs("div",{className:Ne(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??cc}}),jsxRuntime.jsx("span",{className:"truncate",children:d})]})}function Ux({row:e,context:t,firstName:r,lastName:o,email:n,avatarUrl:a,layout:i="stacked",size:s="sm",href:c,LinkComponent:l,linkVariant:d="secondary",showEmail:u=false,badge:m,emphasis:p="normal",align:g="left",className:f,piiEntity:y}){let{isLoading:b}=t,h=me(r,e),x=me(o,e),C=me(n,e),N=me(a,e),S=me(c,e),T=me(m,e),R=me(y,e),P=Ne(g,f);return jsxRuntime.jsx("div",{className:P,children:jsxRuntime.jsx(Pl,{firstName:h,lastName:x,email:C,avatarUrl:N,layout:i,size:s,href:S,LinkComponent:l,linkVariant:d,showEmail:u,badge:T,emphasis:p,isLoading:b,piiEntity:R})})}function Kx({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 Yx({value:e,row:t,context:r,format:o="date",customFormat:n,emptyText:a="\u2014",align:i="left",emphasis:s="normal",href:c,linkBehavior:l="hover",className:d}){let{isLoading:u}=r;if(u)return jsxRuntime.jsx(j,{className:Pt(s)});if(!e)return jsxRuntime.jsx("div",{className:Ne(i,"text-text-secondary"),children:a});let m=e instanceof Date?e:new Date(e);if(isNaN(m.getTime()))return jsxRuntime.jsx("div",{className:Ne(i,"text-text-secondary"),children:a});let p;switch(o){case "date":p=m.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"});break;case "time":p=m.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit"});break;case "datetime":p=m.toLocaleString("en-US",{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"});break;case "relative":p=M2(m);break;case "custom":p=n?m.toLocaleString("en-US",n):m.toISOString();break;default:p=m.toLocaleDateString();}let g=Ne(i,tailwindMerge.twMerge(Sr(s),d)),f=me(c,t);return f?jsxRuntime.jsx("div",{className:g,children:Po(p,f,t,l)}):jsxRuntime.jsx("div",{className:g,children:p})}function M2(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 D2={up:"ArrowUp",down:"ArrowDown",flat:"Minus"},A2={positive:"text-feedback-success-text",negative:"text-feedback-error-text",neutral:"text-text-secondary"};function Xp(e){return e>0?"up":e<0?"down":"flat"}function I2(e,t,r){switch(e){case "percent":return {type:"percentage",decimals:t};case "currency":return {type:"currency",currency:r,minimumFractionDigits:t,maximumFractionDigits:t};case "compact":return {type:"number",notation:"compact",decimals:t,thousandsSeparator:true};default:return {type:"number",decimals:t,thousandsSeparator:true}}}function Jx({value:e,row:t,context:r,direction:o,tone:n="neutral",format:a="number",decimals:i=0,currency:s="USD",showIcon:c=true,align:l="right",emphasis:d="normal",emptyText:u="\u2014",className:m}){let{isLoading:p}=r;if(p)return jsxRuntime.jsx(j,{className:Pt(d)});let g=typeof e=="number"?e:Number(e);if(e==null||e===""||!Number.isFinite(g))return jsxRuntime.jsx("div",{className:Ne(l,"text-text-secondary"),children:u});let f=me(o,t)??Xp(g),y=me(n,t)??"neutral",b=Pr(g,I2(a,i,s))??u,h=g>0?"+":"",C=Ne(l,tailwindMerge.twMerge(d==="strong"||d==="high"?"font-semibold":void 0,m,A2[y]));return jsxRuntime.jsxs("div",{className:C,children:[c&&jsxRuntime.jsx(V,{name:D2[f],size:"xs","aria-hidden":true}),jsxRuntime.jsx("span",{children:`${h}${b}`})]})}function pc({manufacturer:e,model:t,deviceType:r,deviceTypeIconName:o,logoUrl:n,layout:a="stacked",size:i="md",href:s,LinkComponent:c,linkVariant:l="unstyled",showDeviceTypeIcon:d=true,showLogo:u=true,emphasis:m="normal",isLoading:p=false,className:g,piiEntity:f}){let[y,b]=Ze.useState(false),h=o||(r?V2(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],N=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?c?jsxRuntime.jsx(c,{href:s,className:E,children:P}):jsxRuntime.jsx(pt,{href:s,variant:l,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(j,{width:C.skeletonIcon,height:C.skeletonIcon,className:"flex-shrink-0 rounded"}),jsxRuntime.jsx(j,{width:C.skeletonText,height:C.skeletonIcon*.6})]}):jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",C.gap,g),children:[jsxRuntime.jsx(j,{width:C.skeletonIcon,height:C.skeletonIcon,className:"flex-shrink-0"}),jsxRuntime.jsxs("div",{className:"flex flex-col gap-1",children:[jsxRuntime.jsx(j,{width:C.skeletonText,height:16}),jsxRuntime.jsx(j,{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:N?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:N?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 V2(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 jx({row:e,context:t,manufacturer:r,model:o,deviceType:n,logoUrl:a,layout:i="stacked",size:s="sm",href:c,LinkComponent:l,linkVariant:d="secondary",showDeviceTypeIcon:u=true,showLogo:m=true,emphasis:p="normal",align:g="left",className:f,piiEntity:y}){let{isLoading:b}=t,h=me(r,e),x=me(o,e),C=me(n,e),N=me(a,e),S=me(c,e),T=me(y,e),R=Ne(g,f);return jsxRuntime.jsx("div",{className:R,children:jsxRuntime.jsx(pc,{manufacturer:h,model:x,deviceType:C,logoUrl:N,layout:i,size:s,href:S,LinkComponent:l,linkVariant:d,showDeviceTypeIcon:u,showLogo:m,emphasis:p,isLoading:b,piiEntity:T})})}var MX={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},O2=["charging","discharging","heat","cool","on","circulate","connected"],z2={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 jp(e){return O2.includes(e)}function qp(e){return z2[e]}function ia({state:e,label:t,icon:r,isLoading:o,size:n="sm",shape:a="pill",dot:i,dotPulse:s,fixedWidth:c,className:l,...d}){if(o)return jsxRuntime.jsx(j,{className:"inline-flex h-6 w-20"});let u=t??qp(e),m=jp(e);return jsxRuntime.jsxs(gt,{variant:e,size:n,shape:a,dot:i??m,dotPulse:s??m,className:c?`w-28 justify-center ${l||""}`:l,...d,children:[r&&jsxRuntime.jsx(V,{name:r,size:n==="sm"?12:n==="md"?14:16}),u]})}var G2={importing:"Importing",exporting:"Exporting",idle:"Idle",unknown:"Unknown"};function Qx(e){return G2[e]}var W2={importing:"ArrowDown",exporting:"ArrowUp"};function fc({state:e,label:t,showIcon:r=false,isLoading:o,size:n="sm",shape:a="pill",fixedWidth:i,className:s,...c}){if(o)return jsxRuntime.jsx(j,{className:"inline-flex h-6 w-24"});let l=t??Qx(e),d=W2[e],u=n==="sm"?12:n==="md"?14:16;return r&&d?jsxRuntime.jsx(gt,{variant:e,size:n,shape:a,className:`w-6 justify-center ${s||""}`,...c,children:jsxRuntime.jsx(V,{name:d,size:u})}):jsxRuntime.jsx(gt,{variant:e,size:n,shape:a,className:i?`w-28 justify-center ${s||""}`:s,...c,children:l})}function gc({state:e,stateLabel:t,metric:r,metricFormatter:o,secondaryState:n,layout:a="horizontal",isLoading:i,size:s="sm",shape:c="pill",icon:l,fixedWidth:d,secondaryStateIconOnly:u=false,className:m}){if(i)return jsxRuntime.jsx(j,{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(ia,{state:e,label:t,icon:l,size:s,shape:c,fixedWidth:d}),n&&jsxRuntime.jsx(jsxRuntime.Fragment,{children:n==="importing"||n==="exporting"?jsxRuntime.jsx(fc,{state:n,size:s,shape:c,fixedWidth:d,showIcon:u}):jsxRuntime.jsx(ia,{state:n,size:s,shape:c,fixedWidth:d})})]})}function Zx({value:e,row:t,context:r,metric:o,metricFormatter:n,secondaryState:a,size:i="sm",shape:s="pill",label:c,icon:l,fixedWidth:d=true,align:u="left",compact:m=false,className:p}){let{isLoading:g}=r;if(g){let C={pill:"rounded-full",rounded:"rounded-lg",square:"rounded-sm"}[s],N=o!=null||n!=null;return jsxRuntime.jsx("div",{className:"flex items-center gap-2",children:N?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(j,{className:"h-4 w-12"}),jsxRuntime.jsx(j,{className:`h-6 w-24 ${C}`}),jsxRuntime.jsx(j,{className:`h-6 w-20 ${C}`})]}):jsxRuntime.jsx(j,{className:`h-6 w-24 ${C}`})})}if(!e)return jsxRuntime.jsx("div",{className:Ne(u,p),children:jsxRuntime.jsx("span",{className:"text-text-secondary",children:"\u2014"})});let f=me(o,t),y=me(a,t),b=typeof c=="function"?c(e,t):c,h=Ne(u,p);return f!=null||n?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(h),children:jsxRuntime.jsx(gc,{state:e,stateLabel:b,metric:f,metricFormatter:n,secondaryState:y||void 0,size:i,shape:s,icon:l,fixedWidth:d,secondaryStateIconOnly:m,layout:"horizontal"})}):jsxRuntime.jsx("div",{className:h,children:jsxRuntime.jsx(ia,{state:e,label:b,icon:l,size:i,shape:s,fixedWidth:d})})}function $x({value:e,row:t,context:r,formatter:o,align:n="left",emphasis:a="normal",href:i,linkBehavior:s="hover",className:c,emptyText:l="\u2014",emptyClassName:d="text-text-secondary"}){let{isLoading:u}=r;if(u)return jsxRuntime.jsx(j,{className:Pt(a)});let m=fo({value:e,formatter:o,emptyText:l,emptyClassName:d}),p=Sr(a),g=Ne(n,tailwindMerge.twMerge(p,c)),f=jsxRuntime.jsx("div",{className:g,children:m}),y=me(i,t);return y?Po(f,y,t,s):f}var Zp=Ze__namespace.default.memo(({value:e,min:t,max:r,color:o="var(--color-viz-default)",backgroundColor:n="var(--color-background-muted)",colorScale:a,showLabel:i=true,formatLabel:s,height:c=20,minWidth:l=4,segments:d,segmentGap:u=2,barWidth:m,context:p})=>{let g=Ze.useMemo(()=>r===t?100:Math.max(0,Math.min(100,(e-t)/(r-t)*100)),[e,t,r]),f=Ze.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:c},children:jsxRuntime.jsx("div",{className:"h-full flex-1 animate-pulse bg-border-default rounded"})});if(d&&d>0){let h=`calc((100% - ${u*(d-1)}px) / ${d})`,x=Math.ceil(g/100*d),C={height:c,...m&&{width:typeof m=="number"?`${m}px`:m,flexShrink:0}};return jsxRuntime.jsxs("div",{className:"flex items-center gap-2 w-full",children:[jsxRuntime.jsx("div",{className:`flex gap-0.5 ${m?"":"flex-1"}`,style:C,children:Array.from({length:d}).map((N,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:c,backgroundColor:n==="none"?"transparent":n,...m&&{width:typeof m=="number"?`${m}px`:m,flexShrink:0}};return jsxRuntime.jsxs("div",{className:"flex items-center gap-2 w-full",children:[jsxRuntime.jsx("div",{className:`relative rounded-sm ${m?"":"flex-1"}`,style:y,children:jsxRuntime.jsx("div",{className:"absolute left-0 top-0 h-full rounded-sm",style:{width:`${g}%`,minWidth:g>0?l:0,backgroundColor:f}})}),i&&jsxRuntime.jsx("span",{className:"text-sm text-text-primary whitespace-nowrap",children:s?s(e):e.toLocaleString()})]})});Zp.displayName="HorizontalBarCell";function Z2(e){return Math.max(1,String(Math.max(1,Math.trunc(e))).length)}function ry({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(j,{className:Pt("normal")});if(typeof s!="number"||!Number.isFinite(s))return jsxRuntime.jsx("div",{className:Ne(n,"text-text-muted"),children:"\u2014"});let c=s+t,l=r??(o===void 0?void 0:Z2(o+t-1)),d=l===void 0?String(c):String(c).padStart(l,"0");return jsxRuntime.jsx("div",{className:Ne(n,tailwindMerge.twMerge("font-mono text-text-muted tabular-nums",a)),children:jsxRuntime.jsx("span",{children:d})})}var _p=Ze__namespace.default.memo(({value:e,data:t,color:r="var(--color-viz-default)",categoryColors:o,context:n,width:a,height:i=40})=>{let s=e||t||[],c=y=>"xValue"in y?y.xValue:y.x,l=y=>"yValue"in y?y.yValue:y.y,d=a||100,u=i,{xScale:m,yScale:p,barWidth:g}=Ze.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=>c(T)),b=d3Array.min(s,T=>l(T))??0,h=d3Array.max(s,T=>l(T))??0,x=b<0?b:0,C=scale.scaleTime({range:[0,d],domain:y}),N=scale.scaleLinear({range:[u,0],domain:[x,h*1.05]}),S=s.length>1?d/s.length*.8:8;return {xScale:C,yScale:N,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=l(y),x=m(c(y)),C=p(h),N=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:N,fill:S,rx:1},`bar-${b}`)})})});_p.displayName="MiniBarCell";function ay({value:e,row:t,context:r,format:o="number",decimals:n=0,prefix:a,suffix:i,emptyText:s="\u2014",align:c="right",emphasis:l="normal",href:d,linkBehavior:u="hover",showPositiveSign:m=false,colorCode:p=false,className:g}){let{isLoading:f}=r;if(f)return jsxRuntime.jsx(j,{className:Pt(l)});if(e==null||isNaN(Number(e)))return jsxRuntime.jsx("div",{className:Ne(c,"text-text-secondary"),children:s});let y=Number(e),b;switch(o){case "currency":b=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:n,maximumFractionDigits:n}).format(y);break;case "percent":b=new Intl.NumberFormat("en-US",{style:"percent",minimumFractionDigits:n,maximumFractionDigits:n}).format(y/100);break;case "compact":b=new Intl.NumberFormat("en-US",{notation:"compact",minimumFractionDigits:n>0?1:0,maximumFractionDigits:n}).format(y);break;default:b=new Intl.NumberFormat("en-US",{minimumFractionDigits:n,maximumFractionDigits:n}).format(y);}let x=`${m&&y>0?"+":""}${b}`,C=p?lc(y,true):Sr(l),N=Ne(c,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:N,children:Po(S,T,t,u)}):jsxRuntime.jsx("div",{className:N,children:S})}var lE={low:"var(--color-feedback-warning-text)",critical:"var(--color-feedback-error-text)"};function em(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 tm=Ze__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:c,context:l})=>{let d=Ze.useMemo(()=>Math.max(0,Math.min(100,e)),[e]),u=Ze.useMemo(()=>em(d,c),[d,c]),m=Ze.useMemo(()=>u?lE[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(l.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),"%"]})]})});tm.displayName="PercentBarCell";var dE="\u2013",iy="\u200A";function sy(e){if(e==null||e==="")return;let t=typeof e=="number"?e:Number(e);return Number.isFinite(t)?t:void 0}function ly({row:e,context:t,min:r,max:o,decimals:n=0,unit:a,emptyText:i="\u2014",align:s="right",emphasis:c="normal",className:l}){let{isLoading:d}=t;if(d)return jsxRuntime.jsx(j,{className:Pt(c)});let u=sy(me(r,e)),m=sy(me(o,e));if(u===void 0&&m===void 0)return jsxRuntime.jsx("div",{className:Ne(s,"text-text-secondary"),children:i});let p=y=>new Intl.NumberFormat("en-US",{minimumFractionDigits:n,maximumFractionDigits:n}).format(y),g=u!==void 0&&m!==void 0?`${p(u)}${iy}${dE}${iy}${p(m)}`:p(u!==void 0?u:m),f=Ne(s,tailwindMerge.twMerge("tabular-nums",Sr(c),l));return jsxRuntime.jsxs("div",{className:f,children:[jsxRuntime.jsx("span",{children:g}),a&&jsxRuntime.jsx("span",{className:"text-text-secondary",children:a})]})}function vc({row:e,context:t,isSelected:r=false,onSelect:o,isDisabled:n=false,align:a="center"}){let{isLoading:i}=t;if(i)return jsxRuntime.jsx("div",{className:Ne(a),children:jsxRuntime.jsx(j,{className:"h-4 w-4 rounded"})});let s=me(n,e),c=Ne(a);return jsxRuntime.jsx("div",{className:c,children:jsxRuntime.jsx(eo,{isSelected:r,onChange:l=>{o?.(e,l);},isDisabled:s,"aria-label":"Select row"})})}function Cc({streetAddress:e,city:t,state:r,postalCode:o,layout:n="stacked",size:a="md",href:i,LinkComponent:s,linkVariant:c="unstyled",emphasis:l="normal",isLoading:d=false,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"}[l],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(pt,{href:i,variant:c,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(j,{width:f.skeletonIconInline,height:f.skeletonIconInline,className:"flex-shrink-0 rounded"}),jsxRuntime.jsx(j,{width:f.skeletonText,height:f.skeletonIconInline*.8})]}):jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",f.gap,m),children:[u&&jsxRuntime.jsx(j,{width:f.skeletonIconStacked,height:f.skeletonIconStacked,className:"flex-shrink-0 rounded"}),jsxRuntime.jsxs("div",{className:"flex flex-col gap-1",children:[jsxRuntime.jsx(j,{width:f.skeletonText,height:16}),jsxRuntime.jsx(j,{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 N=()=>{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":N(),"data-pii-entity":p,children:x})]})]})}function dy({row:e,context:t,streetAddress:r,city:o,state:n,postalCode:a,layout:i="stacked",size:s="sm",href:c,LinkComponent:l,linkVariant:d="secondary",emphasis:u="normal",align:m="left",className:p,piiEntity:g}){let{isLoading:f}=t,y=me(r,e),b=me(o,e),h=me(n,e),x=me(a,e),C=me(c,e),N=me(g,e),S=Ne(m,p);return jsxRuntime.jsx("div",{className:S,children:jsxRuntime.jsx(Cc,{streetAddress:y,city:b,state:h,postalCode:x,layout:i,size:s,href:C,LinkComponent:l,linkVariant:d,emphasis:u,isLoading:f,piiEntity:N})})}var rm=Ze__namespace.default.memo(({value:e,data:t,type:r="line",color:o="var(--color-viz-default)",strokeWidth:n=2,categoryColors:a,context:i,width:s,height:c=40})=>{let l=e||t||[],d=s||100,u=c,{xScale:m,yScale:p}=Ze.useMemo(()=>{if(l.length===0)return {xScale:scale.scaleTime({range:[0,d],domain:[new Date,new Date]}),yScale:scale.scaleLinear({range:[u,0],domain:[0,1]})};let f=d3Array.extent(l,x=>x.xValue),y=d3Array.min(l,x=>x.yValue)||0,b=d3Array.max(l,x=>x.yValue)||0,h=(b-y)*.1||1;return {xScale:scale.scaleTime({range:[0,d],domain:f}),yScale:scale.scaleLinear({range:[u,0],domain:[y-h,b+h]})}},[l,d,u]);if(i.isLoading)return jsxRuntime.jsx("div",{className:"flex items-center",style:{width:d,height:u},children:jsxRuntime.jsx("div",{className:"h-1 w-full animate-pulse bg-border-default rounded"})});if(!l||l.length===0)return jsxRuntime.jsx("div",{className:"flex items-center justify-center text-text-secondary text-xs",style:{width:d,height:u},children:"No data"});let g=a&&l[0]?.category&&a[l[0].category]?a[l[0].category]:o;return jsxRuntime.jsxs("svg",{width:d,height:u,className:"overflow-visible",children:[(r==="area"||r==="both")&&jsxRuntime.jsx(shape.AreaClosed,{data:l,x: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:l,x:f=>m(f.xValue),y:f=>p(f.yValue),stroke:g,strokeWidth:n,strokeLinecap:"round",curve:curve.curveLinear})]})});rm.displayName="SparklineCell";function fy({value:e,row:t,context:r,prefix:o,suffix:n,emptyText:a="\u2014",href:i,linkBehavior:s="hover",linkVariant:c="secondary",emphasis:l="normal",truncate:d=true,copyable:u=false,align:m="left",className:p,piiType:g,piiEntity:f}){let{isLoading:y}=r;if(y)return jsxRuntime.jsx(j,{className:Pt(l)});let b=sc(e,a),h=me(i,t),x=me(f,t),C=b,N=false,S=false;if(d&&b&&typeof b=="string")if(typeof d=="boolean")S=true;else {let{position:M="end",length:z=16,ellipsis:F="...",tooltip:B=true}=d;if(b.length>z){switch(M){case "start":C=$s(b,z);break;case "middle":C=Fa(b,z);break;case "end":C=el(b,z,F);break}N=B;}}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=N?jsxRuntime.jsx(Zt,{content:R?jsxRuntime.jsx("span",{...T,children:String(b)}):String(b),children:P}):P,D=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=D;if(u&&b&&b!==a){let M=typeof u=="function"?u(t):String(b);k=jsxRuntime.jsx(dn,{value:M,size:"sm",children:D});}if(h){let M=Ne(m,p);return jsxRuntime.jsx("div",{className:M,children:Po(k,h,t,s,c,l)})}let A=Ne(m,tailwindMerge.twMerge(Sr(l),p));return jsxRuntime.jsx("div",{className:A,children:k})}var wE={sm:"sm:hidden",md:"md:hidden",lg:"lg:hidden",xl:"xl:hidden"},NE={sm:"hidden sm:grid",md:"hidden md:grid",lg:"hidden lg:grid",xl:"hidden xl:grid"};function Sc(e,t){return t.accessor?typeof t.accessor=="function"?t.accessor(e):e[t.accessor]:null}function wc(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 Tc({row:e,columns:t,density:r,isLoading:o,onClick:n}){let a=t.filter(u=>u.mobile!==false).map(u=>{let m=u.mobile===false?null:u.mobile;return {...u,mobilePriority:m?.priority??2,mobileFormat:m?.format??"secondary",showLabel:m?.label??m?.format==="secondary",icon:m?.icon}}).sort((u,m)=>u.mobilePriority-m.mobilePriority),i=a.filter(u=>u.mobilePriority===1||u.mobileFormat==="primary"),s=a.filter(u=>u.mobilePriority===2&&u.mobileFormat!=="primary"),c=a.filter(u=>u.mobileFormat==="badge"),l={isLoading:!!o,rowIndex:0,columnIndex:0,density:r};return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("border-b border-border-default bg-background-surface transition-colors",n&&"cursor-pointer hover:bg-background-hover active:bg-background-pressed",{compact:"px-3 py-2",default:"px-4 py-3",relaxed:"px-4 py-4"}[r]),onClick:n,role:n?"button":void 0,tabIndex:n?0:void 0,children:[i.length>0&&jsxRuntime.jsxs("div",{className:"mb-2 flex items-start justify-between",children:[jsxRuntime.jsx("div",{className:"flex-1",children:i.map(u=>{let m=Sc(e,u);return jsxRuntime.jsx("div",{className:"font-medium text-text-primary [&>*]:!justify-start [&>*]:!text-left",children:wc(m,e,u,l)},u.id)})}),c.length>0&&jsxRuntime.jsx("div",{className:"ml-2 flex flex-wrap gap-1",children:c.map(u=>{let m=Sc(e,u);return jsxRuntime.jsx("div",{className:"inline-flex",children:wc(m,e,u,l)},u.id)})})]}),s.length>0&&jsxRuntime.jsx("div",{className:"space-y-1",children:s.map(u=>{let m=Sc(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:wc(m,e,u,l)})]},u.id)})})]})}function kc({row:e,columns:t,density:r,isLoading:o,onClick:n}){let a=t.filter(c=>c.mobile!==false),i={isLoading:!!o,rowIndex:0,columnIndex:0,density:r};return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("border-b border-border-default bg-background-surface transition-colors",n&&"cursor-pointer hover:bg-background-hover active:bg-background-pressed",{compact:"px-3 py-2",default:"px-4 py-3",relaxed:"px-4 py-4"}[r]),onClick:n,role:n?"button":void 0,tabIndex:n?0:void 0,children:jsxRuntime.jsx("div",{className:"space-y-2",children:a.map((c,l)=>{let d=Sc(e,c),u=l===0;return jsxRuntime.jsxs("div",{children:[!u&&jsxRuntime.jsx("div",{className:"text-xs text-text-secondary",children:c.label}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(u?"font-medium text-text-primary":"text-sm text-text-primary","[&>*]:!justify-start [&>*]:!text-left"),children:wc(d,e,c,i)})]},c.id)})})})}function gy(e="md"){return {mobile:wE[e],desktop:NE[e]}}function by({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 VE={compact:"py-1.5 px-3 text-sm",default:"py-3 px-4 text-sm",relaxed:"py-4 px-4 text-base"},OE={left:"text-left justify-start",center:"text-center justify-center",right:"text-right justify-end"};function zE(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 HE({column:e,sortConfig:t,onSort:r,stickyHeader:o,stickyFirstColumn:n,isFirstColumn:a,density:i="default",isLoading:s=false,headerContent:c,sortNote:l}){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,N=C?t.direction:null,S=n&&a,T=C?l:void 0,R={...zE(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",VE[i],OE[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?N==="asc"?"ascending":"descending":"none","aria-disabled":s,title:T,"data-sort-note":T,children:s?jsxRuntime.jsx(j,{className:"h-4 w-24"}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[c??jsxRuntime.jsx("span",{className:"flex-1 truncate cursor-pointer",onClick:()=>!s&&e.sortable&&r(e.id),children:e.label}),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:N==="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 xy({columns:e,columnOrder:t,onColumnOrderChange:r,sortConfig:o,onSort:n,stickyHeader:a,stickyFirstColumn:i,density:s="default",isLoading:c=false,renderHeaderContent:l,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 N=0;for(let P=0;P<t.length&&m.get(t[P])?.reorderable===false;P++)N=P+1;if(x<N)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(HE,{column:f,sortConfig:o,onSort:n,stickyHeader:a,stickyFirstColumn:i,isFirstColumn:y===0,density:s,isLoading:c,headerContent:l?.(f),sortNote:d},f.id))})})})}var Pc="__select",JE=new Set,nm={compact:"py-1.5 px-3 text-sm",default:"py-3 px-4 text-sm",relaxed:"py-4 px-4 text-base"},am={left:"text-left justify-start",center:"text-center justify-center",right:"text-right justify-end"},XE={full:"w-full",auto:"w-auto inline-block",contained:"w-full max-w-6xl mx-auto"},jE={auto:"table-auto",fixed:"table-fixed",responsive:"table-auto"};function yy(e){if(typeof e=="number")return e;let t=/^(\d+(?:\.\d+)?)px$/.exec(e.trim());return t?Number(t[1]):0}function im(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 qE(e,t){return t.accessor?typeof t.accessor=="function"?t.accessor(e):e[t.accessor]:null}function QE({column:e,sortConfig:t,onSort:r,stickyHeader:o,stickyFirstColumn:n,isFirstColumn:a,density:i="default",isLoading:s=false,headerContent:c,sortNote:l}){let d=t?.columnId===e.id,u=d?t.direction:null,m=n&&a,p=d?l: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",nm[i],am[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:im(e),children:s?jsxRuntime.jsx(j,{className:"h-4 w-24"}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[c??jsxRuntime.jsx("span",{className:"truncate",children:e.label}),e.headerTooltip&&jsxRuntime.jsx(Zt,{content:e.headerTooltip,children:jsxRuntime.jsx(te,{variant:"ghost","aria-label":`About ${e.label}`,onClick:g=>g.stopPropagation(),className:"h-auto min-h-0 flex-shrink-0 p-0 text-text-tertiary hover:text-text-secondary",children:jsxRuntime.jsx(V,{name:"Info",size:12,"aria-hidden":true})})}),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 ZE({column:e,row:t,rowIndex:r,columnIndex:o,isHovered:n,isSelected:a,density:i="default",className:s,stickyFirstColumn:c}){let l=c&&o===0,d=qE(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(St,{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?"":nm[i],am[e.align||"left"],l&&"sticky left-0 z-10 shadow-[2px_0_4px_-2px_rgba(0,0,0,0.1)]",s),role:"cell",style:im(e),children:m})}function _E({column:e,rowIndex:t,columnIndex:r,density:o="default",stickyFirstColumn:n}){let a=n&&r===0,i={isLoading:true,rowIndex:t,columnIndex:r,density:o},s;if(e.cell){let c=e.cell,l=typeof e.cellProps=="function"?e.cellProps(null,{}):e.cellProps;s=jsxRuntime.jsx(c,{value:null,row:{},context:i,...l});}else e.render?s=e.render(null,{},i):s=jsxRuntime.jsx(j,{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?"":nm[o],am[e.align||"left"],a&&"sticky left-0 z-10 shadow-[2px_0_4px_-2px_rgba(0,0,0,0.1)]"),role:"cell",style:im(e),children:s})}function $E(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 vy({columns:e,row:t,rowIndex:r,density:o="default",onClick:n,stickyFirstColumn:a,isSelected:i}){let[s,c]=Ze.useState(false),l=Ze.useCallback(d=>{if(!n)return;let u=d.target,m=d.currentTarget;$E(u,m)||n(t);},[n,t]);return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("contents group",n&&"cursor-pointer"),role:"row","aria-selected":i===void 0?void 0:i,onClick:l,onMouseEnter:()=>c(true),onMouseLeave:()=>c(false),children:e.map((d,u)=>jsxRuntime.jsx(ZE,{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 eM({columns:e,rowIndex:t,density:r="default",stickyFirstColumn:o}){return jsxRuntime.jsx("div",{className:"contents",role:"row",children:e.map((n,a)=>jsxRuntime.jsx(_E,{column:n,rowIndex:t,columnIndex:a,density:r,stickyFirstColumn:o},n.id))})}function Cy({columns:e,data:t,className:r,density:o="default",width:n="full",height:a,maxHeight:i,layout:s="auto",mobileRenderer:c="auto",customMobileRowRender:l,mobileBreakpoint:d="md",isLoading:u=false,loadingState:m,loadingRowCount:p=5,onLoadMore:g,hasMore:f=false,enableVirtualization:y,estimatedRowHeight:b,loadingIndicator:h,stickyHeader:x=false,stickyFirstColumn:C=false,onRowClick:N,getRowId:S,selectedRowIds:T,onSelectionChange:R,selectionMode:P="multi",hideHeader:E=false,sortConfig:D,onSort:k,sortNote:A,"aria-label":M,enableColumnReorder:z=false,columnOrder:F,onColumnOrderChange:B}){let O=R!==void 0,Q=T??JE,H=Ze.useCallback(($,be)=>{if(S)return S($);let _=$.id;return typeof _=="string"&&_.length>0?_:typeof _=="number"&&Number.isFinite(_)?String(_):`row-${be}`},[S]),U=Ze.useMemo(()=>t.map(($,be)=>H($,be)),[t,H]),W=Ze.useCallback(($,be)=>{if(!R)return;if(P==="single"){R(be?new Set([$]):new Set);return}let _=new Set(Q);be?_.add($):_.delete($),R(_);},[R,Q,P]),G=U.filter($=>Q.has($)).length,K=U.length>0&&G===U.length,w=G>0&&!K,v=Ze.useCallback($=>{if(!R)return;let be=new Set(Q);for(let _ of U)$?be.add(_):be.delete(_);R(be);},[R,U,Q]),L=Ze.useMemo(()=>O?[{id:Pc,label:"",width:44,align:"center",sortable:false,reorderable:false,exportable:false,mobile:false,render:(be,_,we)=>{let mo=H(_,we.rowIndex);return jsxRuntime.jsx(vc,{value:void 0,row:_,context:we,isSelected:Q.has(mo),onSelect:(Ea,Io)=>W(mo,Io)})}},...e]:e,[e,O,Q,H,W]),I=O&&P==="multi"?jsxRuntime.jsx(eo,{isSelected:K,isIndeterminate:w,onChange:$=>v($),isDisabled:U.length===0,"aria-label":K?"Deselect all rows on this page":"Select all rows on this page"}):void 0,X=Ze.useCallback($=>$.id===Pc?I:void 0,[I]),[oe,ie]=Ze.useState(null),re=D!==void 0,ae=re?D:oe,Le=Ze.useRef(null),ue=Ze.useMemo(()=>L.map($=>$.id),[L]),[ge,le]=Ze.useState(ue),pe=F!==void 0,Pe=pe?F:ge;Ze.useEffect(()=>{pe||le($=>{let be=L.map(Io=>Io.id),_=new Set(be),we=new Set($),mo=$.filter(Io=>_.has(Io)),Ea=be.filter(Io=>!we.has(Io));return [...mo,...Ea]});},[L,pe]);let _e=Ze.useCallback($=>{pe||le($),B?.($);},[pe,B]),qe=Ze.useMemo(()=>{if(!z&&!F)return L;let $=new Map(L.map(we=>[we.id,we])),be=Pe.map(we=>$.get(we)).filter(we=>we!==void 0),_=$.get(Pc);return _&&!be.some(we=>we.id===Pc)?[_,...be]:be},[L,Pe,z,F]),er=an({items:t,onLoadMore:g,hasMore:f,isLoading:u,loadingState:m,enableVirtualization:y,estimatedItemSize:b||(o==="compact"?40:o==="relaxed"?60:48),overscan:5}),yt=g||y?er:null,tr=yt?.scrollRef??Le,{loadMoreRef:qt,virtualizer:it,virtualItems:vt,isLoadingMore:ee,computedLoadingState:Oe}=yt||{},{gridTemplateColumns:Qe,totalMinWidth:Z}=Ze.useMemo(()=>{let $=0;return {gridTemplateColumns:qe.map(_=>{if(_.minWidth?$+=yy(_.minWidth):_.width&&($+=yy(_.width)),_.width)return typeof _.width=="number"?`${_.width}px`:_.width;if(_.flex)return `${_.flex}fr`;if(_.minWidth&&_.maxWidth){let we=typeof _.minWidth=="number"?`${_.minWidth}px`:_.minWidth,mo=typeof _.maxWidth=="number"?`${_.maxWidth}px`:_.maxWidth;return `minmax(${we}, ${mo})`}return _.minWidth?`minmax(${typeof _.minWidth=="number"?`${_.minWidth}px`:_.minWidth}, 1fr)`:_.maxWidth?`minmax(0, ${typeof _.maxWidth=="number"?`${_.maxWidth}px`:_.maxWidth})`:"1fr"}).join(" "),totalMinWidth:$}},[qe]),de=Ze.useCallback($=>{if(!L.find(we=>we.id===$)?.sortable)return;let _;ae?.columnId===$?_={columnId:$,direction:ae.direction==="asc"?"desc":"asc"}:_={columnId:$,direction:"asc"},re||ie(_),k?.(_);},[L,ae,k,re]),he=Oe==="loading"||u&&t.length===0,Y={};a?(Y.height=typeof a=="number"?`${a}px`:a,Y.overflowY="auto"):i?(Y.maxHeight=typeof i=="number"?`${i}px`:i,Y.overflowY="auto"):g&&(Y.height="600px",Y.overflowY="auto"),g&&(Y.overflowX="auto");let J=tailwindMerge.twMerge(XE[n],!g&&(s==="responsive"?"overflow-x-auto scrollbar-visible":"overflow-auto scrollbar-visible"),r),ce=gy(d),ne=c!=="none",ve=($,be)=>ne?c==="custom"&&l?l($,be):jsxRuntime.jsx(c==="cards"?kc:Tc,{row:$,columns:qe,density:o,isLoading:u,onClick:N?()=>N($):void 0}):null,ze=it?vt?.map($=>({virtualItem:$,row:t[$.index],index:$.index}))||[]:t.map(($,be)=>({row:$,index:be,virtualItem:null}));return jsxRuntime.jsxs("div",{ref:tr,className:J,style:{...Y,position:it?"relative":void 0},children:[jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("grid border-separate border-spacing-0",jE[s],n==="auto"?"inline-grid w-auto":"w-full",ne&&ce.desktop),role:"table","aria-label":M,style:{gridTemplateColumns:Qe,minWidth:Z>0?`${Z}px`:void 0},children:[!E&&(z?jsxRuntime.jsx(xy,{columns:L,columnOrder:Pe,onColumnOrderChange:_e,sortConfig:ae,onSort:de,stickyHeader:x,stickyFirstColumn:C,density:o,isLoading:he,renderHeaderContent:X,sortNote:A}):jsxRuntime.jsx("div",{className:"contents",role:"rowgroup",children:qe.map(($,be)=>jsxRuntime.jsx(QE,{column:$,sortConfig:ae,onSort:de,stickyHeader:x,stickyFirstColumn:C,isFirstColumn:be===0,density:o,isLoading:he,headerContent:X($),sortNote:A},$.id))})),it&&!he?jsxRuntime.jsx("div",{className:"col-span-full",style:{gridColumn:"1 / -1",height:`${it.getTotalSize()}px`,position:"relative"},role:"rowgroup",children:t.length>0?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[ze.map(({row:$,index:be,virtualItem:_})=>{if(!$||!_)return null;let we=S?S($):`row-${be}`;return jsxRuntime.jsx("div",{style:{position:"absolute",top:0,left:0,width:"100%",display:"grid",gridTemplateColumns:Qe,transform:`translateY(${_.start}px)`},"data-index":_.index,ref:it.measureElement,children:jsxRuntime.jsx(vy,{columns:qe,row:$,rowIndex:be,density:o,onClick:N,stickyFirstColumn:C,isSelected:O?Q.has(H($,be)):void 0})},we)}),ee&&jsxRuntime.jsx("div",{style:{position:"absolute",top:`${it.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:he?Array.from({length:p}).map(($,be)=>jsxRuntime.jsx(eM,{columns:qe,rowIndex:be,density:o,stickyFirstColumn:C},`loading-${be}`)):t.length>0?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[ze.map(({row:$,index:be})=>{if(!$)return null;let _=S?S($):`row-${be}`;return jsxRuntime.jsx(vy,{columns:qe,row:$,rowIndex:be,density:o,onClick:N,stickyFirstColumn:C,isSelected:O?Q.has(H($,be)):void 0},_)}),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"})})})]}),ne&&jsxRuntime.jsx("div",{className:ce.mobile,children:he?Array.from({length:p}).map(($,be)=>jsxRuntime.jsx(by,{density:o},`mobile-loading-${be}`)):t.length>0?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[ze.map(({row:$,index:be})=>{if(!$)return null;let _=S?S($):`mobile-row-${be}`;return jsxRuntime.jsx("div",{className:"border-b border-border-default last:border-b-0",children:ve($,be)},_)}),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&&!he&&(it?jsxRuntime.jsx("div",{ref:qt,style:{position:"absolute",top:`${it.getTotalSize()}px`,left:0,width:"100%",height:1}}):jsxRuntime.jsx("div",{ref:qt,className:"h-px w-full"}))]})}function wy({status:e,alertCount:t,showCount:r=false,isLoading:o,size:n="sm",shape:a="pill",...i}){if(o)return jsxRuntime.jsx(j,{className:"inline-flex h-6 w-20"});let s={healthy:"success",warning:"warning",error:"error",unknown:"neutral"},c={healthy:"Healthy",warning:"Warning",error:"Error",unknown:"Unknown"},l=e==="warning"||e==="error",d=r&&t?`${c[e]} (${t})`:c[e];return jsxRuntime.jsx(gt,{variant:s[e],size:n,shape:a,dot:l,dotPulse:l,...i,children:d})}var rM={battery:"BatteryHigh",charger:"ChargingStation",thermostat:"ThermometerSimple",inverter:"Power",vehicle:"Car",water_heater:"DropHalfBottom",meter:"Gauge",gateway:"WifiHigh",other:"Cube",unknown:"Question"},oM={battery:"Battery",charger:"Charger",thermostat:"Thermostat",inverter:"Inverter",vehicle:"Vehicle",water_heater:"Water Heater",meter:"Meter",gateway:"Gateway",other:"Other",unknown:"Unknown"};function Ty({deviceType:e,iconName:t,size:r="md",showLabel:o=false,className:n}){let a=t||(e?rM[e]:"Question"),i=e?oM[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 ms({children:e,title:t,headerContent:r,titleAlign:o="left",hideCloseIcon:n=false,hasBackArrow:a=false,onBack:i,isOpen:s,slideInFrom:c="right",transparentOverlay:l=false,onClose:d,className:u,primaryAction:m,secondaryAction:p,tertiaryAction: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:l,children:jsxRuntime.jsx(reactAriaComponents.Modal,{className:"outline-none focus:outline-none focus-visible:outline-none ring-0 focus:ring-0 focus-visible:ring-0",children:jsxRuntime.jsxs(reactAriaComponents.Dialog,{className:tailwindMerge.twMerge("fixed top-0 bottom-0 flex flex-col bg-background-surface shadow-xl overflow-hidden",c==="right"?"right-0":"left-0",c==="right"?"animate-in slide-in-from-right duration-300 ease-out":"animate-in slide-in-from-left duration-300 ease-out","data-[exiting]:animate-out",c==="right"?"data-[exiting]:slide-out-to-right":"data-[exiting]:slide-out-to-left","data-[exiting]:duration-200 data-[exiting]:ease-in","outline-none focus-visible:outline focus-visible:outline-2 focus-visible:outline-action-default focus-visible:outline-offset-0",u),style:{maxWidth:b,width:"100%"},children:[h&&(a&&i?jsxRuntime.jsx(rr,{title:t,headerContent:r,titleAlign:o,hideCloseIcon:n,hasBackArrow:true,onBack:i,onClose:d}):jsxRuntime.jsx(rr,{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(on,{primaryAction:m,secondaryAction:p,tertiaryAction:g,footerContent:f})]})})})})}ms.displayName="Drawer";function Py({status:e,programName:t,isLoading:r,size:o="sm",shape:n="pill",...a}){if(r)return jsxRuntime.jsx(j,{className:"inline-flex h-6 w-20"});let i={enrolled:"success",eligible:"info",pending:"warning",not_eligible:"neutral",opted_out:"neutral"},s={enrolled:"Enrolled",eligible:"Eligible",pending:"Pending",not_eligible:"Not Eligible",opted_out:"Opted Out"},c=jsxRuntime.jsx(gt,{variant:i[e],size:o,shape:n,...a,children:s[e]});return t?jsxRuntime.jsx(Zt,{content:t,children:c}):c}function Ey({value:e,onChange:t,onUrlChange:r,accept:o="image/*",maxSize:n,isDisabled:a=false,onUpload:i,className:s,showPreview:c=true,placeholder:l="Drop files here or click to browse"}){let[d,u]=Ze.useState(false),[m,p]=Ze.useState(false),[g,f]=Ze.useState(null),[y,b]=Ze.useState(e),h=Ze.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(c&&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);}},N=()=>{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:[c&&(y.startsWith("data:image")||y.startsWith("http"))?jsxRuntime.jsx("img",{src:y,alt:"Preview",className:"max-h-48 max-w-full rounded-md object-contain"}):jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-2",children:[jsxRuntime.jsx(lucideReact.Image,{className:"h-12 w-12 text-text-secondary"}),jsxRuntime.jsx("span",{className:"text-sm text-text-secondary",children:"File uploaded"})]}),!a&&jsxRuntime.jsx(te,{variant:"icon",size:"sm",onPress:N,className:"absolute right-2 top-2 bg-background-surface shadow-md",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"})})]}):jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-4 p-6",children:[jsxRuntime.jsx(lucideReact.Upload,{className:"h-12 w-12 text-text-secondary"}),jsxRuntime.jsxs("div",{className:"text-center",children:[jsxRuntime.jsx("p",{className:"text-sm text-text-primary",children:l}),jsxRuntime.jsx("p",{className:"mt-1 text-xs text-text-secondary",children:o==="image/*"?"PNG, JPG, GIF up to 10MB":`Accepts ${o}`})]}),jsxRuntime.jsx(reactAriaComponents.FileTrigger,{acceptedFileTypes:o.split(","),onSelect: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 Ly({version:e,isLatest:t,updateAvailable:r,isLoading:o,size:n="sm",shape:a="rounded",...i}){if(o)return jsxRuntime.jsx(j,{className:"inline-flex h-6 w-16"});let s="neutral",c=e;return t?s="success":r&&(s="warning",c=`${e} (Update)`),jsxRuntime.jsx(gt,{variant:s,size:n,shape:a,...i,children:c})}function li(e){return jsxRuntime.jsx(reactAriaComponents.Form,{validationBehavior:"aria",...e,className:tailwindMerge.twMerge("flex flex-col gap-6",e.className)})}function Ay({placeholder:e="Search...",value:t,onChange:r,isOpen:o,onOpenChange:n,trigger:a,children:i,showShortcutHint:s=true,showInput:c=true,className:l}){let[d,u]=Ze.useState(false),m=lr("(max-width: 767px)"),p=o!==void 0?o:d,g=Ze.useCallback(h=>{n?n(h):u(h);},[n]);Ze.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=Ze.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||Ze.isValidElement(a)&&a.type===Ze.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(wt,{isOpen:p,onClose:()=>g(false),hideCloseIcon:false,contentPadding:false,maxHeight:"90vh",children:jsxRuntime.jsxs("div",{className:"flex flex-col h-full",children:[c&&jsxRuntime.jsx("div",{className:"p-4 border-b border-border-muted flex-shrink-0",children:jsxRuntime.jsx(qr,{value:t,onChange:f,placeholder:e,showSearchIcon:true,isClearable:!!t,onClear:()=>r?.(""),reserveErrorSpace:false,className:l,autoFocus:true})}),jsxRuntime.jsx("div",{className:"flex-1 min-h-0 overflow-hidden",children:i})]})})]}):b?null:jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{isOpen:p,onOpenChange:g,children:[a||y,jsxRuntime.jsx(St,{placement:"bottom",className:"w-[600px] max-w-[90vw] bg-background-surface shadow-xl border border-border-default rounded-lg overflow-hidden",children:jsxRuntime.jsxs("div",{className:"flex flex-col",children:[c&&jsxRuntime.jsx("div",{className:"p-4 border-b border-border-muted",children:jsxRuntime.jsx(qr,{value:t,onChange:f,placeholder:e,showSearchIcon:true,isClearable:!!t,onClear:()=>r?.(""),reserveErrorSpace:false,className:l,autoFocus:true})}),jsxRuntime.jsx("div",{className:"max-h-[500px] overflow-hidden",children:i})]})})]})}function By({placeholder:e="Search...",value:t,onChange:r,isOpen:o,onOpenChange:n,children:a,maxHeight:i="400px",variant:s="default",className:c}){let[l,d]=Ze.useState(false),u=lr("(max-width: 767px)"),m=Ze.useRef(null),p=Ze.useRef(null),g=o!==void 0?o:l,f=Ze.useCallback(E=>{n?n(E):d(E);},[n]);Ze.useEffect(()=>{let E=D=>{(D.metaKey||D.ctrlKey)&&D.key==="k"&&(D.preventDefault(),f(!g)),D.key==="Escape"&&g&&f(false);};return window.addEventListener("keydown",E),()=>window.removeEventListener("keydown",E)},[g,f]),Ze.useEffect(()=>{g&&!u&&m.current&&setTimeout(()=>{m.current?.querySelector("input")?.focus();},0);},[g,u]),Ze.useEffect(()=>{if(!g||u)return;let E=D=>{let k=D.target,A=m.current?.contains(k),M=p.current?.contains(k);!A&&!M&&f(false);};return document.addEventListener("mousedown",E,true),()=>document.removeEventListener("mousedown",E,true)},[g,u,f]);let y=E=>{r?.(E);},b=Ze.useCallback(()=>{f(false);},[f]),h=Ze.useCallback(()=>{r?.("");},[r]),[x,C]=Ze.useState(null);Ze.useEffect(()=>{if(g&&!u&&m.current){let E=null,D=()=>{let A=m.current?.getBoundingClientRect();A&&C({top:A.bottom+8,left:A.left,width:A.width});},k=()=>{E===null&&(E=requestAnimationFrame(()=>{D(),E=null;}));};return D(),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 N=Ze.useCallback(()=>{f(true);},[f]);if(u)return jsxRuntime.jsxs("div",{className:c,children:[jsxRuntime.jsx("button",{type:"button",onClick:N,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(wt,{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 A=p.current?.querySelector("[data-search-result]");A&&A.focus();}},T=E=>{let D=E.target;if(!D.hasAttribute("data-search-result"))return;let A=Array.from(p.current?.querySelectorAll("[data-search-result]")||[]),M=A.indexOf(D);if(E.key==="ArrowDown"){E.preventDefault(),E.stopPropagation();let z=Math.min(M+1,A.length-1);A[z]?.focus();}else if(E.key==="ArrowUp")if(E.preventDefault(),E.stopPropagation(),M===0)m.current?.querySelector("input")?.focus();else {let z=Math.max(M-1,0);A[z]?.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 ${c||""}`,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 Vy({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 zy({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(j,{width:20,height:20,variant:"circle"}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0 space-y-2",children:[jsxRuntime.jsx(j,{width:"60%",height:16}),jsxRuntime.jsx(j,{width:"40%",height:12})]}),jsxRuntime.jsx(j,{width:16,height:16})]},o))})}function Gy({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 Wy({id:e,title:t,subtitle:r,metadata:o,icon:n,customIcon:a,onSelect:i,isFocused:s=false,className:c,testId:l}){return jsxRuntime.jsxs("div",{role:"option",tabIndex:0,onClick:()=>{i?.(e);},onKeyDown:m=>{let p=m.currentTarget;switch(m.key){case "Enter":case " ":{m.preventDefault(),i?.(e);break}case "ArrowDown":{m.preventDefault();let 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":l,"data-search-result":true,className:tailwindMerge.twMerge("group flex items-center gap-3 px-4 py-3 cursor-pointer outline-none transition-colors","text-text-primary hover:bg-background-hover","focus-visible:bg-background-muted focus-visible:outline-none","data-[focused]:bg-background-hover",s&&"bg-background-hover",c),"data-focused":s||void 0,children:[a?jsxRuntime.jsx("div",{className:"flex-shrink-0",children:a}):n?jsxRuntime.jsx("div",{className:"flex-shrink-0 text-text-secondary",children:jsxRuntime.jsx(V,{name:n,size:20})}):null,jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsxs("div",{className:"flex items-baseline gap-2",children:[jsxRuntime.jsx("span",{className:"font-medium text-text-primary truncate",children:t}),o&&jsxRuntime.jsx("span",{className:"text-xs text-text-secondary flex-shrink-0",children:o})]}),r&&jsxRuntime.jsx("div",{className:"text-sm text-text-secondary truncate mt-0.5",children:r})]}),jsxRuntime.jsx("div",{className:"flex-shrink-0 opacity-0 group-hover:opacity-100 group-focus-visible:opacity-100 group-data-[focused]:opacity-100 transition-opacity",children:jsxRuntime.jsx(V,{name:"ArrowRight",size:16,className:"text-text-secondary"})})]})}function Uy({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 Yy({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 dn(e,t=300){let[r,o]=_e.useState(e);return _e.useEffect(()=>{let n=setTimeout(()=>o(e),t);return ()=>clearTimeout(n)},[e,t]),r}function gl(e,t=300){let[r,o]=_e.useState(false);return _e.useEffect(()=>{if(e){let n=setTimeout(()=>{o(true);},t);return ()=>clearTimeout(n)}o(false);},[e,t]),r}var MN=({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 Zt({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)=>MN({...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 gr(){let[e,t]=_e__namespace.default.useState(false),r=_e__namespace.default.useCallback((n,a)=>{t(true),a?.(n);},[]),o=_e__namespace.default.useCallback((n,a)=>{t(false),a?.(n);},[]);return {isFocused:e,handleFocus:r,handleBlur:o}}var St=_e__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 Hi({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(z,{name:"X",size:t==="sm"?16:20})})}function un(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 Qg(e){return e.isDisabled?"bg-background-muted":e.transparent?"bg-transparent":"bg-background-input"}function LN(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 Gt(e){let{isInvalid:t,isDisabled:r,isFocused:o,transparent:n,size:a="md",className:i}=e;return tailwindMerge.twMerge("w-full",un({isInvalid:t,isDisabled:r,isFocused:o}),Qg({transparent:n,isDisabled:r}),Ye[a].text,Ye[a].height,Ye[a].padding,LN(a),i)}function DN(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",Qg({transparent:a,isDisabled:n}),Ye[t].height,un({isFocused:r,isInvalid:o,isDisabled:n}),i)}function Xe({children:e,size:t="md",tooltip:r,description:o,descriptionPlacement:n="below",isRequired:a,className:i,htmlFor:s}){let d=r||o&&n==="tooltip",l=r||o,c=o&&n==="inline",u=jsxRuntime.jsxs("label",{htmlFor:s,className:tailwindMerge.twMerge(Ye[t].text,"!text-text-label font-semibold flex items-center gap-1",i),children:[e,a&&jsxRuntime.jsx("span",{children:"*"}),d&&jsxRuntime.jsx("span",{className:"inline-flex items-center text-text-secondary",children:jsxRuntime.jsx(z,{name:"Info",size:t==="sm"?16:20})}),c&&jsxRuntime.jsx("span",{className:"text-text-secondary font-normal ml-1",children:o})]});return d&&l?jsxRuntime.jsx(Zt,{content:l,children:u}):u}function ke({size:e="md",className:t,children:r,...o}){return jsxRuntime.jsx("div",{...o,className:tailwindMerge.twMerge("leading-[2.25] text-text-secondary",Ye[e].text,t),children:r})}function xe({children:e,size:t="md",className:r}){return jsxRuntime.jsx("div",{role:"alert",className:tailwindMerge.twMerge(Ye[t].text,"text-feedback-error-text",r),children:e})}function hl({size:e="md",isInvalid:t,isDisabled:r,isFocused:o,transparent:n,className:a,...i}){return jsxRuntime.jsx("input",{className:Gt({isInvalid:t,isDisabled:r,isFocused:o,transparent:n,size:e,className:a}),...i})}function Zg(e){let{children:t,...r}=e;return jsxRuntime.jsx("div",{...r,className:DN(e),children:typeof t=="function"?t(e):t})}var Wu=_e.createContext("md");function rb(){return _e.useContext(Wu)}function zu(e="md"){let t=e==="sm"?"!text-base md:!text-[length:var(--control-text-sm)]":e==="md"?"!text-base md:!text-[length:var(--control-text-md)]":"";return `flex-1 text-start data-[placeholder]:text-text-disabled overflow-hidden text-ellipsis whitespace-nowrap ${Ye[e].text} ${t}`}function ON(){let e=_e__namespace.default.useCallback((r,o)=>{o?.(r);},[]),t=_e__namespace.default.useCallback((r,o)=>{o?.(r);},[]);return {handleFocus:e,handleBlur:t}}function Ho({label:e,description:t,errorMessage:r,children:o,items:n,renderItem:a,renderSelectedValue:i,size:s="md",selectedKey:d,defaultSelectedKey:l,onSelectionChange:c,placeholder:u,showErrors:m=false,tooltip:p,isRequired:g,transparent:f,reserveErrorSpace:h=false,placement:b="bottom start",shouldFlip:v=true,menuWidth:y="match",descriptionPlacement:C="below",useMobileTray:T=true,...w}){let[N,R]=_e.useState(null),[P,E]=_e.useState(null),[D,k]=_e.useState(false),A=d??N??l,{handleFocus:M,handleBlur:H}=ON(),{isMobile:Y}=dr(),V=T&&Y,F=_e__namespace.default.useMemo(()=>!i||!A||!n?null:Array.from(n).find(B=>B.id===A)??null,[i,A,n]),X=G=>{c&&G!==null&&c(G),c||R(G);},O=_e.useRef(null),U=_e.useRef(null),J=()=>{V&&k(!D);};return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(reactAriaComponents.Select,{...w,selectedKey:A,defaultSelectedKey:l,onSelectionChange:X,placeholder:u,className:Ae(w.className,"group flex w-full flex-col"),ref:O,onOpenChange:G=>{V||(G&&U.current?E(U.current.offsetWidth):G||O.current?.blur());},children:({isDisabled:G,isInvalid:B,isOpen:S})=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(Xe,{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:U,children:jsxRuntime.jsxs(te,{variant:"unstyled",className:tailwindMerge.twMerge(Gt({isInvalid:B||m&&!!r,isDisabled:G,isFocused:V?D:S,transparent:f,size:s}),"flex items-center text-start gap-4 cursor-pointer pl-[var(--control-padding-sm)]"),onFocus:x=>M(x,w.onFocus),onBlur:x=>H(x,w.onBlur),onPress:V?J:void 0,"data-open":V?D:S,children:[i&&F?jsxRuntime.jsx("div",{className:zu(s),children:i(F)}):V&&A?jsxRuntime.jsx("div",{className:zu(s),children:n?Array.from(n).find(I=>I.id===A)?.label:String(A)}):jsxRuntime.jsx(reactAriaComponents.SelectValue,{className:zu(s)}),jsxRuntime.jsx(z,{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",(V?D:S)&&"rotate-180")})]})})}),h?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:m?jsxRuntime.jsx(xe,{size:s,className:"text-feedback-error-text",children:typeof r=="function"&&w.validationResult?r(w.validationResult):typeof r=="string"?r:null}):t&&C==="below"?jsxRuntime.jsx(ke,{size:s,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:m?jsxRuntime.jsx(xe,{size:s,className:"mt-1 text-feedback-error-text",children:typeof r=="function"&&w.validationResult?r(w.validationResult):typeof r=="string"?r:null}):t&&C==="below"?jsxRuntime.jsx(ke,{size:s,className:"mt-1",children:t}):null}),V?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:y==="match"&&P?`${P}px`:void 0,minWidth:y==="auto"&&P?`${P}px`:void 0,maxWidth:y==="auto"?"min(600px, 90vw)":void 0},placement:b,shouldFlip:v,children:jsxRuntime.jsx(Wu.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?x=>jsxRuntime.jsx(br,{id:x.id,textValue:x.label,children:jsxRuntime.jsx("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap min-w-0 flex-1",children:a(x)})},x.id):o})})})]})}),V&&jsxRuntime.jsx(Ct,{isOpen:D,onClose:()=>k(false),title:e??"Select an option",contentPadding:false,children:jsxRuntime.jsx(Wu.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:A!=null?[A]:[],onSelectionChange:G=>{let B=Array.from(G)[0];B!=null&&(X(B),k(false));},children:a&&n?G=>jsxRuntime.jsx(br,{id:G.id,textValue:G.label,children:jsxRuntime.jsx("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap min-w-0 flex-1",children:a(G)})},G.id):o})})})]})}function br({size:e,className:t,...r}){let o=rb(),n=e??o;return jsxRuntime.jsx(reactAriaComponents.ListBoxItem,{...r,className:tailwindMerge.twMerge("flex cursor-default items-center gap-2 rounded-sm px-3 outline-none text-text-primary data-[focused]:bg-background-hover data-[focus-visible]:ring-2 data-[focus-visible]:ring-action-default data-[focus-visible]:ring-inset data-[selected]:bg-background-selected data-[selected]:font-medium overflow-hidden",Ye[n].paddingY,Ye[n].text,t)})}var QN=[],ZN={sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6",xl:"h-7 w-7"},_N={sm:"pl-8",md:"pl-10",lg:"pl-11",xl:"pl-13"},nb={sm:"py-1",md:"py-2",lg:"py-3",xl:"py-4"},Ku=(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 $N(e,t,r){try{let o=e.url.replace("{q}",t),n=new URLSearchParams;e.extraParams&&Object.entries(e.extraParams).forEach(([d,l])=>{n.append(d,l.toString());});let a=`${o}${n.toString()?"?"+n.toString():""}`,i=await fetch(a,{method:"GET",headers:e.headers,signal:r});if(!i.ok)throw new Error(`HTTP error! status: ${i.status}`);let s=await i.json();return {items:e.transformResponse(s)}}catch(o){if(o instanceof Error&&o.name==="AbortError")return {items:[]};console.error("Error in REST request:",o);let n=o instanceof Error?o.message:"Unknown error occurred";return {items:[],error:n}}}async function eT(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 vl({label:e,staticItems:t=QN,sections:r,selectedKey:o,defaultSelectedKey:n,onSelectionChange:a,requestConfig:i,defaultFilter:s,placeholder:d,errorMessage:l,description:c,size:u="md",tooltip:m,isRequired:p,isDisabled:g,isInvalid:f,validationResult:h,showErrors:b=true,renderItem:v,renderLeftIcon:y,renderSection:C,autoFocus:T=false,reserveErrorSpace:w=false,hideChevron:N=false,useMobileTray:R=true,className:P}){let E=_e__namespace.default.useRef(null),D=_e__namespace.default.useRef(null),[k,A]=_e__namespace.default.useState(),[M,H]=_e.useState(()=>Ku(o||n,t,r)),[Y,V]=_e.useState(false),[F,X]=_e.useState(false),O=dn(M),{contains:U}=reactAria.useFilter({sensitivity:"base"}),[J,G]=_e.useState(),{isMobile:B}=dr(),S=R&&B,x=Ye[u].text,L=reactStately.useAsyncList({async load({signal:ue,filterText:ge=""}){if(!i)return {items:[]};if(!i.url||i.shouldLoad&&!i.shouldLoad(ge))return {items:[]};try{let de;return i.requestType==="GraphQL"?de=await eT(i,ge,ue):de=await $N(i,ge,ue),G(de.error),{items:de.items}}catch(de){return de instanceof Error&&de.name==="AbortError"?{items:[]}:(console.error("Error loading items:",de),G(de instanceof Error?de.message:"Unknown error occurred"),{items:[]})}},initialFilterText:""}),I=i&&O!==""?L:null,q=false,ne=_e.useRef("");_e.useEffect(()=>{T&&V(true);},[T]),_e.useEffect(()=>{let ue=Ku(o,t,r);ue!==M&&H(ue);},[o,t,r]),_e.useEffect(()=>{let ue=()=>{E.current&&A(E.current.offsetWidth);};return ue(),window.addEventListener("resize",ue),()=>window.removeEventListener("resize",ue)},[]),_e.useEffect(()=>{O===""?ne.current="":I&&O!==ne.current&&(ne.current=O,I.setFilterText(O));},[O,I]),q=gl(!!I?.isLoading,300);let ae=_e__namespace.default.useMemo(()=>{if(!S||!M)return I?I.items:t;let ue=I?I.items:t,ge=s??(i?()=>true:U);return ue.filter(de=>ge(de.name,M))},[S,M,I,t,s,U]),$=ue=>{let ge=Ku(ue,t,r);H(ge),a&&a(ue);},ie=ue=>{H(ue);},Ie=()=>{S&&X(true);};return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(reactAriaComponents.ComboBox,{onSelectionChange:$,selectedKey:o||void 0,defaultSelectedKey:n||void 0,items:I?I.items:r?r.flatMap(ue=>ue.items):t,className:Ae(P,"group flex flex-col w-full"),menuTrigger:S?"manual":i?"input":"focus",allowsEmptyCollection:!!i,isDisabled:g,isInvalid:f||!!l,inputValue:M,onInputChange:ie,autoFocus:T&&!S,defaultFilter:s??(i?()=>true:U),"aria-label":e||d||"Autocomplete",children:ue=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(Xe,{size:u,tooltip:m,isRequired:p,children:e}),jsxRuntime.jsxs(St,{ref:E,children:[y?jsxRuntime.jsx("div",{className:"pointer-events-none absolute left-3 top-[45%] -translate-y-1/2 z-10",children:y(q)}):jsxRuntime.jsx("div",{className:"pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 z-10 flex items-center",children:q?jsxRuntime.jsx(Wr,{size:16,color:"text-text-secondary"}):jsxRuntime.jsx(z,{name:"MagnifyingGlass",className:`${ZN[u]} text-text-secondary`})}),jsxRuntime.jsx(reactAriaComponents.Input,{className:Gt({isInvalid:f||!!l,isDisabled:g,isFocused:Y||(S?F:ue.isOpen),size:u,className:tailwindMerge.twMerge(_N[u],M&&!g||!N&&!M?"pr-10":"pr-3",S&&"cursor-pointer",P)}),placeholder:d,disabled:g,onFocus:ge=>{V(true),S&&(ge.currentTarget.blur(),Ie());},onBlur:()=>{V(false);},onClick:S?Ie:void 0,readOnly:S,"aria-label":e||d||"Autocomplete"}),M&&!g&&jsxRuntime.jsx(Hi,{onClick:()=>{H(""),a?.(null);},size:u}),!N&&!M&&jsxRuntime.jsx(reactAriaComponents.Button,{className:"absolute right-3 top-[46%] -translate-y-1/2 transform text-text-secondary hover:text-text-primary","aria-label":"Toggle menu",isDisabled:g,children:({isPressed:ge})=>jsxRuntime.jsx(z,{name:ge?"CaretUp":"CaretDown",className:"h-4 w-4"})})]}),w?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:b&&J?jsxRuntime.jsx(xe,{size:u,className:"text-feedback-error-text",children:J}):b&&typeof l=="string"?jsxRuntime.jsx(xe,{size:u,className:"text-feedback-error-text",children:l}):b&&typeof l=="function"&&h?jsxRuntime.jsx(xe,{size:u,className:"text-feedback-error-text",children:l(h)}):c?jsxRuntime.jsx(ke,{size:u,children:c}):null}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[c&&jsxRuntime.jsx(ke,{size:u,className:"mt-1",children:c}),b&&J&&jsxRuntime.jsx(xe,{size:u,className:"text-feedback-error-text mt-1",children:J}),b&&typeof l=="string"&&jsxRuntime.jsx(xe,{size:u,className:"text-feedback-error-text mt-1",children:l}),b&&typeof l=="function"&&h&&jsxRuntime.jsx(xe,{size:u,className:"text-feedback-error-text mt-1",children:l(h)})]}),!S&&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||d||"Suggestions",className:`max-h-[300px] overflow-auto bg-background-input outline-none ${x}`,children:r?r.map(ge=>{let de=ge.items.map(pe=>jsxRuntime.jsx(br,{id:pe.id,textValue:pe.name,size:u,className:`flex cursor-default items-center gap-2 px-3 ${nb[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:v?v(pe):pe.name},pe.id));if(C){let pe=C(ge,de);return _e__namespace.default.isValidElement(pe)&&pe.type===reactAriaComponents.ListBoxSection?pe:jsxRuntime.jsx(reactAriaComponents.ListBoxSection,{children:pe},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}),de]},ge.name)}):ge=>jsxRuntime.jsx(br,{id:ge.id,textValue:ge.name,size:u,className:`flex cursor-default items-center gap-2 px-3 ${nb[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:v?v(ge):ge.name},ge.id)})})]})}),S&&jsxRuntime.jsx(Ct,{isOpen:F,onClose:()=>X(false),title:e??d??"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:q?jsxRuntime.jsx(Wr,{size:16,color:"text-text-secondary"}):jsxRuntime.jsx(z,{name:"MagnifyingGlass",className:"h-4 w-4 text-text-secondary"})}),jsxRuntime.jsx("input",{ref:D,type:"text",value:M,onChange:ue=>ie(ue.target.value),placeholder:d,autoFocus:true,className:Gt({isInvalid:false,isDisabled:false,isFocused:true,size:"md",className:"pl-10 pr-10"})}),M&&jsxRuntime.jsx(Hi,{onClick:()=>{H(""),a?.(null);},size:"md"})]})}),jsxRuntime.jsx("div",{className:"flex-1 overflow-auto",children:jsxRuntime.jsx(reactAriaComponents.ListBox,{"aria-label":e||d||"Suggestions",items:ae,selectedKeys:o?[o]:[],selectionMode:"single",onSelectionChange:ue=>{let ge=Array.from(ue)[0];ge&&($(ge),X(false));},className:"bg-background-input outline-none",children:ue=>jsxRuntime.jsx(br,{id:ue.id,textValue:ue.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:v?v(ue):ue.name},ue.id)})})]})})]})}function Go({src:e,alt:t,firstName:r,lastName:o,fullName:n,onClick:a,size:i="md",shape:s="circle",variant:d="user",className:l,status:c,bordered:u=false,piiEntity:m}){let[p,g]=_e.useState(false),f=_e.useCallback(()=>g(true),[]);_e.useEffect(()=>{g(false);},[e]);let h={xs:"h-6 w-6 text-xs",sm:"h-8 w-8 text-sm",md:"h-10 w-10 text-base",lg:"h-12 w-12 text-lg",xl:"h-16 w-16 text-xl"},b={xs:"h-1.5 w-1.5",sm:"h-2 w-2",md:"h-2.5 w-2.5",lg:"h-3 w-3",xl:"h-4 w-4"},v={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"},y={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"},T=s==="circle"?"rounded-full":"rounded-md",w=tailwindMerge.twMerge("relative inline-flex items-center justify-center overflow-hidden transition-opacity outline-none",h[i],T,a&&"cursor-pointer hover:opacity-80",u&&"ring-2 ring-background-surface",l),R=(()=>{if(r||o){let k=r?.[0]||"",A=o?.[0]||"";return (k+A).toUpperCase()}if(n){let k=n.split(" "),A=k[0]?.[0]||"",M=k[k.length-1]?.[0]||"";return A===M?A.toUpperCase():(A+M).toUpperCase()}return ""})(),P=()=>{let k={xs:14,sm:16,md:20,lg:24,xl:32}[i];switch(d){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 d==="organization"?k?"organization-logo":"initials":k?"avatar":"initials"},D=()=>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(w,!e||p?C[d]:""),onClick:a,role:a?"button":void 0,tabIndex:a?0:void 0,children:D()}),c&&jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("absolute border-2 border-background-surface",T,b[i],v[i],y[c]),"aria-label":`Status: ${c}`})]})}var lT={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"},cT={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"},dT={pill:"rounded-full",rounded:"rounded-lg",square:"rounded-sm"},uT={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 gt({children:e,variant:t="default",size:r="sm",shape:o="square",dot:n=false,dotPosition:a="left",dotPulse:i=false,title:s,className:d}){let l=n&&jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("rounded-full bg-current opacity-75",uT[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",cT[r],dT[o],lT[t],d),children:[n&&a==="left"&&l,e,n&&a==="right"&&l]})}var pt=({href:e,children:t,className:r="",external:o=false,title:n,variant:a="secondary",onClick:i,asButton:s=false,onPress:d,showArrow:l=false,alwaysUnderlined:c=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=`${`${c?"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}`,T=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[t,l&&jsxRuntime.jsxs("span",{children:["\xA0","\u2192"]})]});return s?jsxRuntime.jsx("button",{type:"button",className:C,onClick:d,title:n,...g,children:T}):u&&e?jsxRuntime.jsx(u,{href:e,className:C,title:n,onClick:i,...f,...g,children:T}):jsxRuntime.jsx("a",{href:e||"#",className:C,...f,...g,title:n,onClick:i,children:T})};var CT={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 Sl({variant:e="info",appearance:t="subtle",title:r,children:o,dismissible:n=false,onDismiss:a,primaryAction:i,secondaryAction:s,icon:d,hideIcon:l=false,className:c,testId:u}){let m=CT[e],p=m[t],g=m.icon,f=!!(i||s),h=!!(r||o);return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex gap-3 rounded-sm border p-4",p.container,c),role:"region","aria-live":"polite","data-testid":u,children:[!l&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-shrink-0",p.iconColor),"aria-hidden":"true",children:d||jsxRuntime.jsx(g,{className:"h-5 w-5"})}),jsxRuntime.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-3",children:[h&&jsxRuntime.jsxs("div",{className:"flex-1",children:[r&&jsxRuntime.jsx("div",{className:ur(Pt("headingSm"),p.titleColor),children:r}),o&&jsxRuntime.jsx("div",{className:ur(Pt("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(pt,{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(pt,{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 lb({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(Sl,{...o,className:a})})})}function ja(){let[e,t]=_e.useState({width:0,height:0}),r=_e.useRef(null),o=_e.useRef(void 0),n=_e.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(d=>{for(let l of s){let{width:c,height:u}=l.contentRect;t(m=>m.width!==c||m.height!==u?{width:c,height:u}:m);}});}),r.current.observe(a);},[]);return _e.useEffect(()=>()=>{o.current&&cancelAnimationFrame(o.current),r.current&&r.current.disconnect();},[]),{ref:n,width:e.width,height:e.height}}function pn({value:e,children:t,className:r,size:o="sm",iconPosition:n="right"}){let[a,i]=_e.useState(false),l=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(z,{name:"Copy",size:o==="sm"?14:16})}),c=a?jsxRuntime.jsx(Zt,{content:"Copied!",children:l}):l;return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("inline-flex items-center gap-0.5",r),children:[n==="left"&&c,t,n==="right"&&c]})}function wl(e){let{children:t,maxWidth:r=600,className:o,...n}=e,{ref:a,width:i}=ja(),[s,d]=_e__namespace.default.useState(false),[l,c]=_e__namespace.default.useState(false),u=_e__namespace.default.useRef(false),m=_e__namespace.default.useMemo(()=>t&&!e.items&&typeof t!="function"?_e__namespace.default.Children.toArray(t):null,[t,e.items]);if(_e__namespace.default.useEffect(()=>{m&&m.length>=4&&i>0&&!u.current?(u.current=true,d(i>r),c(true)):(!m||m&&m.length<4)&&c(true);let p=setTimeout(()=>{l||c(true);},100);return ()=>clearTimeout(p)},[i,r,m,l]),m&&s&&m.length>=4){let p=m[0],g=m.slice(1,-2),f=m.slice(-2),h=g.map(b=>{if(_e__namespace.default.isValidElement(b)){let v=b.props;if(typeof v.children=="string")return {label:v.children,href:v.href}}return {label:"..."}});return jsxRuntime.jsxs(reactAriaComponents.Breadcrumbs,{...n,ref:a,className:tailwindMerge.twMerge("flex gap-2",l?"opacity-100":"opacity-0",o),children:[p,jsxRuntime.jsx(MT,{items:h}),f]})}return jsxRuntime.jsx(reactAriaComponents.Breadcrumbs,{...n,ref:a,className:tailwindMerge.twMerge("flex gap-2",l?"opacity-100":"opacity-0",o),children:t})}function MT({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(Ka,{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 Nl(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 d=s.isCurrent,l=typeof r=="function"?r(s):r;return jsxRuntime.jsx(jsxRuntime.Fragment,{children:d?n?jsxRuntime.jsx(pn,{value:a||(typeof l=="string"?l:void 0),size:"sm",iconPosition:"right",children:jsxRuntime.jsx("span",{className:"max-w-[200px] truncate font-semibold text-text-primary sm:max-w-none",children:l})}):jsxRuntime.jsx("span",{className:"max-w-[200px] truncate font-semibold text-text-primary sm:max-w-none",children:l}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(pt,{variant:"muted",href:o,className:"max-w-[150px] truncate sm:max-w-[300px] md:max-w-none",children:l}),jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4 shrink-0 text-text-secondary"})]})})}})}function HT({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 qa({errorMessage:e,...t}){return jsxRuntime.jsxs(reactAriaComponents.Calendar,{...t,children:[jsxRuntime.jsx(Tl,{}),jsxRuntime.jsxs(reactAriaComponents.CalendarGrid,{className:"border-separate [border-spacing:0] [&_td]:p-0 [&_td]:!border-0",children:[jsxRuntime.jsx(kl,{}),jsxRuntime.jsx(reactAriaComponents.CalendarGridBody,{children:r=>jsxRuntime.jsx(reactAriaComponents.CalendarCell,{date:r,className:({isSelected:o,isDisabled:n})=>`${HT({isSelected:o,isDisabled:n})} border-0`})})]}),e&&jsxRuntime.jsx(reactAriaComponents.Text,{slot:"errorMessage",className:"text-sm text-feedback-error-text",children:e})]})}function Tl(){let{direction:e}=reactAriaComponents.useLocale(),t=18;return jsxRuntime.jsxs("header",{className:"flex w-full items-center gap-1 px-1 pb-4",children:[jsxRuntime.jsx(te,{variant:"icon",slot:"previous",className:"pl-0",children:e==="rtl"?jsxRuntime.jsx(z,{name:"CaretRight","aria-hidden":true,size:t}):jsxRuntime.jsx(z,{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(z,{name:"CaretLeft","aria-hidden":true,size:t}):jsxRuntime.jsx(z,{name:"CaretRight","aria-hidden":true,size:t})})]})}function kl(){return jsxRuntime.jsx(reactAriaComponents.CalendarGridHeader,{children:e=>jsxRuntime.jsx(reactAriaComponents.CalendarHeaderCell,{className:"text-xs font-semibold text-text-secondary",children:e})})}var gb=_e__namespace.createContext(null);function mn(){let e=_e__namespace.useContext(gb);if(!e)throw new Error("Carousel components must be used within a CarouselRoot");return e}function bb({page:e,defaultPage:t=0,onPageChange:r,orientation:o="horizontal",loop:n=false,autoplay:a=false,autoplayDelay:i=4e3,allowMouseDrag:s=false,spacing:d="1rem",slidesPerView:l=1,slidesPerMove:c=1,className:u,children:m,...p}){let g=e!==void 0,[f,h]=_e__namespace.useState(t),b=g?e:f,v=_e__namespace.useRef(null),[y,C]=_e__namespace.useState(0),[T,w]=_e__namespace.useState(typeof a=="boolean"?a:!!a),[N,R]=_e__namespace.useState(false),P=_e__namespace.useRef(null),E=_e__namespace.useRef(null),D=typeof a=="object"&&a!==null&&a.delay?a.delay:i;_e__namespace.useEffect(()=>{if(v.current){let x=Math.max(1,Math.floor(Number(l)||1)),L=v.current.children;if(L.length===0){C(0);return}let I=Math.ceil(L.length/x);C(I);}},[m,l]);let k=_e__namespace.useRef(-1);_e__namespace.useEffect(()=>{if(b!==k.current&&v.current){let x=Array.from(v.current.children);if(x.length===0)return;let L=b*l,I=Math.min(L,x.length-1),q=x[I];q&&typeof q.scrollIntoView=="function"&&(q.scrollIntoView({behavior:"smooth",block:o==="vertical"?"start":"nearest",inline:o==="horizontal"?"start":"nearest"}),k.current=b);}},[b,l,o]);let A=_e__namespace.useCallback(x=>{let L=x;n?L<0?L=y-1:L>=y&&(L=0):L=Math.max(0,Math.min(x,y-1)),g||h(L),r?.(L);},[g,n,r,y]),M=_e__namespace.useCallback(()=>{A(b+c);},[b,A,c]),H=_e__namespace.useCallback(()=>{A(b-c);},[b,A,c]),Y=_e__namespace.useRef(M);_e__namespace.useEffect(()=>{Y.current=M;},[M]);let V=y>0&&(n||b<y-1),F=y>0&&(n||b>0),X=_e__namespace.useCallback(()=>{w(x=>!x);},[]);_e__namespace.useEffect(()=>{if(T&&y>1)return P.current=setInterval(()=>{Y.current();},D),()=>{P.current&&(clearInterval(P.current),P.current=null);}},[T,y,D]);let O=_e__namespace.useCallback(()=>{P.current&&(clearInterval(P.current),P.current=null);},[]),U=_e__namespace.useCallback(()=>{T&&y>1&&(P.current=setInterval(()=>{Y.current();},D));},[T,y,D]),J=_e__namespace.useCallback(x=>{if(!s)return;R(true);let L="touches"in x&&x.touches&&x.touches.length>0?x.touches[0].clientX:"clientX"in x?x.clientX:0,I="touches"in x&&x.touches&&x.touches.length>0?x.touches[0].clientY:"clientY"in x?x.clientY:0;E.current={x:L,y:I};},[s]),G=_e__namespace.useCallback(x=>{if(!N||!E.current)return;let L="touches"in x&&x.touches&&x.touches.length>0?x.touches[0].clientX:"clientX"in x?x.clientX:0,I="touches"in x&&x.touches&&x.touches.length>0?x.touches[0].clientY:"clientY"in x?x.clientY:0,q=L-E.current.x,ne=I-E.current.y,ae=50;o==="horizontal"&&Math.abs(q)>ae?(q>0?H():M(),R(false),E.current=null):o==="vertical"&&Math.abs(ne)>ae&&(ne>0?H():M(),R(false),E.current=null);},[N,o,M,H]),B=_e__namespace.useCallback(()=>{R(false),E.current=null;},[]),S={currentPage:b,totalPages:y,orientation:o,loop:n,spacing:d,slidesPerView:l,goToPage:A,goToNext:M,goToPrev:H,canGoNext:V,canGoPrev:F,isAutoplayActive:T,toggleAutoplay:X,itemsRef:v,isDragging:N,allowMouseDrag:s,handleDragStart:J,handleDragMove:G,handleDragEnd:B};return jsxRuntime.jsx(gb.Provider,{value:S,children:jsxRuntime.jsx("div",{...p,className:tailwindMerge.twMerge("relative w-full",o==="vertical"?"h-full":"",u),onMouseEnter:O,onMouseLeave:U,children:m})})}function hb({className:e,children:t,...r}){let{itemsRef:o,orientation:n,spacing:a,isDragging:i,allowMouseDrag:s,handleDragStart:d,handleDragMove:l,handleDragEnd:c}=mn();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:d,onMouseMove:l,onMouseUp:c,onMouseLeave:c,onTouchStart:d,onTouchMove:l,onTouchEnd:c,children:t})}function xb({index:e,className:t,children:r,...o}){let{orientation:n,slidesPerView:a}=mn();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 yb({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 vb({className:e,children:t,...r}){let{goToPrev:o,canGoPrev:n}=mn();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(z,{name:"CaretLeft",size:"sm"})})}function Cb({className:e,children:t,...r}){let{goToNext:o,canGoNext:n}=mn();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(z,{name:"CaretRight",size:"sm"})})}function _u({index:e,className:t,children:r,...o}){let{currentPage:n,goToPage:a}=mn(),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 Sb({className:e,...t}){let{totalPages:r}=mn();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(_u,{index:n},n))})}function wb({className:e,children:t,...r}){let{isAutoplayActive:o,toggleAutoplay:n}=mn();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(z,{name:o?"Pause":"Play",size:"sm"})})}function Nb({className:e,...t}){let{currentPage:r,totalPages:o}=mn();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 XT="focus:ring-action-primary",jT="bg-action-primary border-action-primary text-[color:var(--color-action-primary-text)] hover:bg-action-primary-hover hover:border-action-primary-hover";function $u(e){return jsxRuntime.jsxs(reactAriaComponents.CheckboxGroup,{...e,className:Ae(e.className,"flex flex-col gap-2"),children:[jsxRuntime.jsx(Xe,{children:e.label}),e.children,e.description&&jsxRuntime.jsx(ke,{children:e.description}),jsxRuntime.jsx(xe,{children:typeof e.errorMessage=="function"?void 0:e.errorMessage})]})}function qT({isDisabled:e}){return `relative flex gap-2 items-center group text-sm transition ${e?"text-text-disabled":"text-text-secondary"}`}function QT({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=XT,i="";return r?i="border-border-muted bg-background-muted":t?i="border-feedback-error-border bg-feedback-error-background":e||o?i=jT:i="bg-background-input border-border-input hover:border-border-focus",`${n} ${a} ${i}`}var Tb="w-4 h-4 text-current group-disabled:text-text-disabled";function ep({className:e,...t}){return jsxRuntime.jsx("div",{"aria-hidden":"true",className:`${QT(t)} ${e||""}`,children:t.isIndeterminate?jsxRuntime.jsx(lucideReact.Minus,{"aria-hidden":true,className:Tb}):t.isSelected?jsxRuntime.jsx(lucideReact.Check,{"aria-hidden":true,className:Tb}):null})}function eo(e){let{children:t,variant:r,...o}=e;return jsxRuntime.jsx(reactAriaComponents.Checkbox,{...o,className:reactAriaComponents.composeRenderProps(e.className,(n,a)=>`${qT(a)} ${n||""}`),children:n=>{let{isSelected:a,isIndeterminate:i,isDisabled:s,isInvalid:d}=n;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(ep,{isSelected:a,isIndeterminate:i,isDisabled:s,isInvalid:d}),typeof t=="function"?t(n):t]})}})}var $T={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 Pb(e){return !e||e==="default"?"secondary":e==="brand"?"primary":e}var ek={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"},tk="opacity-75 cursor-not-allowed pointer-events-none";function Rb(e){let{variant:t,size:r,isDisabled:o,isClickable:n,className:a}=e,i=r==="xs"?"text-xs":Ye[r].text;return tailwindMerge.twMerge("inline-flex items-center justify-center rounded-full font-medium transition-colors","whitespace-nowrap select-none",ek[r],i,$T[t],n&&!o&&"cursor-pointer",o&&tk,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:d}){let l=!!d&&!i,c=a&&t&&!i,u=h=>{h.stopPropagation(),h.preventDefault(),t&&!i&&t();},m=()=>{d&&!i&&d();},p=o==="xs"?10:o==="sm"?12:o==="md"?14:16,f=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("span",{className:"truncate",children:e}),c?l?jsxRuntime.jsx("span",{onClick:u,onKeyDown:h=>{(h.key==="Enter"||h.key===" ")&&(h.preventDefault(),u(h));},role:"button",tabIndex:0,className:"flex-shrink-0 rounded-full p-0.5 hover:bg-text-primary/10 transition-colors cursor-pointer","aria-label":r,title:r,children:jsxRuntime.jsx(z,{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(z,{name:"X",size:p,className:"text-current opacity-70 hover:opacity-100"})}):null]});return l?jsxRuntime.jsx("button",{type:"button",onClick:m,className:Rb({variant:Pb(n),size:o,isDisabled:i,isClickable:l,className:s}),disabled:i,children:f}):jsxRuntime.jsx("span",{className:Rb({variant:Pb(n),size:o,isDisabled:i,isClickable:l,className:s}),children:f})}function Lb({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a=false,isDisabled:i=false,isInvalid:s=false,validationResult:d,placeholder:l="Add items...",selectedItems:c=[],onItemsChange:u,staticItems:m,fetchSuggestions:p,chipVariant:g="secondary",showErrors:f=true,className:h}){let[b,v]=_e.useState(""),[y,C]=_e.useState([]),[T,w]=_e.useState(false),[N,R]=_e.useState(false),[P,E]=_e.useState(-1),D=dn(b,300),k=_e.useRef(null),A=_e.useRef(null),{isFocused:M,handleFocus:H,handleBlur:Y}=gr(),V=_e.useId(),F=_e.useCallback(S=>{if(!u||!S.trim())return;let x=S.trim();if(c.includes(x)){v(""),R(false),C([]),E(-1);return}u([...c,x]),v(""),R(false),C([]),E(-1),k.current?.focus();},[c,u]),X=_e.useCallback(S=>{u&&u(c.filter(x=>x!==S));},[c,u]);_e.useEffect(()=>{if(!p)return;let S=true;return (async()=>{let L=D.trim();if(!L){S&&(w(false),C([]),R(false));return}w(true);try{let I=await p(L);if(!S)return;C(I),R(!0);}catch(I){if(!S)return;console.error("Error fetching suggestions:",I),C([]),R(false);}finally{S&&w(false);}})(),()=>{S=false;}},[D,p]),_e.useEffect(()=>{if(p||!m)return;if(!D.trim()){C([]),R(false);return}let S=m.filter(x=>x.name.toLowerCase().includes(D.toLowerCase())).map(x=>x.id);C(S),R(S.length>0||D.trim().length>0);},[D,m,p]);let O=_e.useMemo(()=>{let S=y.filter(x=>!c.includes(x));return b.trim()&&!S.includes(b.trim())&&!c.includes(b.trim())?[...S,`Create tag: "${b.trim()}"`]:S},[y,b,c]),U=_e.useCallback(S=>{v(S.target.value),E(-1),S.target.value&&R(true);},[]),J=_e.useCallback(S=>{i||(S.startsWith("Create tag:")?F(b):F(S));},[F,b,i]),G=_e.useCallback(S=>{if(!i)switch(S.key){case "Enter":case ",":if(S.preventDefault(),P>=0&&P<O.length){let x=O[P];x.startsWith("Create tag:")?F(b):F(x);}else b.trim()&&F(b.trim());break;case "Backspace":!b&&c.length>0&&(S.preventDefault(),X(c[c.length-1]));break;case "ArrowDown":S.preventDefault(),N&&E(x=>x<O.length-1?x+1:x);break;case "ArrowUp":S.preventDefault(),N&&E(x=>x>0?x-1:-1);break;case "Escape":R(false),E(-1);break}},[i,b,c,O,P,N,F,X]);_e.useEffect(()=>{let S=x=>{A.current&&x.target instanceof Node&&!A.current.contains(x.target)&&R(false);};return document.addEventListener("mousedown",S),()=>document.removeEventListener("mousedown",S)},[]);let B=()=>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]",un({isInvalid:s,isDisabled:i,isFocused:M}),"bg-background-input",o==="sm"&&"px-2 py-1 h-[32px]",o==="md"&&"px-2.5 py-1.5 h-[40px]",o==="lg"&&"px-3 py-2 h-[44px]",o==="xl"&&"px-3.5 py-2.5 h-[48px]",i&&"opacity-50 cursor-not-allowed bg-background-muted");return jsxRuntime.jsxs("div",{ref:A,className:tailwindMerge.twMerge("relative flex flex-col gap-1",h),children:[e&&jsxRuntime.jsx(Xe,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(St,{children:jsxRuntime.jsxs("div",{className:B(),onClick:()=>!i&&k.current?.focus(),children:[c.map(S=>jsxRuntime.jsx(Yr,{variant:g,size:"xs",onRemove:()=>X(S),isDisabled:i,className:"shrink-0 max-h-full",children:S},S)),jsxRuntime.jsx("input",{ref:k,type:"text",role:"combobox","aria-expanded":N,"aria-haspopup":"listbox","aria-controls":V,"aria-autocomplete":"list",value:b,onChange:U,onKeyDown:G,onFocus:S=>H(S),onBlur:S=>Y(S),placeholder:c.length===0?l:"",disabled:i,className:"flex-1 min-w-[120px] h-full !border-0 !outline-none !ring-0 bg-transparent text-text-primary text-sm placeholder:text-text-disabled disabled:cursor-not-allowed focus:!ring-0 focus:!outline-none focus:!border-0 focus-visible:!ring-0 focus-visible:!outline-none focus-visible:!border-0",style:{boxShadow:"none",WebkitAppearance:"none",appearance:"none",border:"none",outline:"none"}})]})}),N&&(b||O.length>0)&&jsxRuntime.jsx("div",{id:V,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:T?jsxRuntime.jsx("div",{className:"px-3 py-2 text-sm text-text-secondary",children:"Loading..."}):O.length>0?O.map((S,x)=>jsxRuntime.jsx("div",{role:"option","aria-selected":x===P,className:tailwindMerge.twMerge("cursor-pointer px-3 py-2 text-sm transition-colors","hover:bg-background-hover",x===P&&"bg-background-selected",S.startsWith("Create tag:")&&"italic text-text-secondary"),onClick:()=>J(S),children:S},S)):b&&jsxRuntime.jsx("div",{className:"px-3 py-2 text-sm text-text-secondary",children:"No suggestions found"})}),t&&jsxRuntime.jsx(ke,{size:o,className:"mt-1",children:t}),f&&typeof r=="string"&&jsxRuntime.jsx(xe,{size:o,className:"text-feedback-error-text mt-1",children:r}),f&&typeof r=="function"&&d&&jsxRuntime.jsx(xe,{size:o,className:"text-feedback-error-text mt-1",children:r(d)})]})}var uk={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')},pk={github:()=>import('ace-builds/src-noconflict/theme-github'),github_dark:()=>import('ace-builds/src-noconflict/theme-github_dark')},mk={"ext-language-tools":()=>import('ace-builds/src-noconflict/ext-language_tools')},Ki=new Set;async function rp(e,t){Ki.has(e)||(await t(),Ki.add(e));}async function fk(e,t,r){await Promise.all([rp(`language:${e}`,uk[e]),rp(`theme:${t}`,pk[t]),r?rp("extension:language-tools",mk["ext-language-tools"]):void 0]);}function Ab(e,t,r){let o=Ki.has(`language:${e}`)&&Ki.has(`theme:${t}`);return r?o&&Ki.has("extension:language-tools"):o}function Ib({value:e,readOnly:t=false,onChange:r,language:o="json",theme:n="github_dark",height:a,width:i="100%",className:s,lineHeight:d=19,minLines:l=3,maxLines:c=50,showLineNumbers:u=true,showGutter:m=true,fontSize:p=14,wrapEnabled:g=false}){let f=_e.useRef(null),[h,b]=_e.useState(()=>Ab(o,n,!t)),v=_e.useMemo(()=>{if(a)return a;let y=(e.match(/\n/g)||[]).length+1;return `${Math.max(l,Math.min(y,c))*d+10}px`},[e,a,d,l,c]);return _e.useEffect(()=>{let y=false,C=!t;return Ab(o,n,C)?(b(true),()=>{y=true;}):(b(false),fk(o,n,C).then(()=>{y||b(true);}).catch(T=>{y||b(true),console.error("Failed to load Ace editor resources",T);}),()=>{y=true;})},[o,t,n]),_e.useEffect(()=>{h&&f.current?.editor&&f.current.editor.resize();},[v,h]),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-hidden rounded-md border border-border-input",s),style:{width:i,height:v},children:h?jsxRuntime.jsx(ck__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 Bb=_e__namespace.createContext({variant:"contained",density:"comfortable",showDividers:true}),Vb=_e__namespace.createContext(null),yk={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"},Fb={true:"divide-y divide-border-default",false:"gap-3"},vk={comfortable:"px-5 py-3",compact:"px-4 py-2.5"},Ck={comfortable:"px-5 pt-0",compact:"px-4 pt-0"},Sk={comfortable:"h-4 w-4",compact:"h-3.5 w-3.5"};function ip(){return _e__namespace.useContext(Bb)}function wk(e){let t=_e__namespace.useContext(Vb);if(!t)throw new Error(`${e} must be used within a <CollapseItem>`);return t}function Nk({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 Tk({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",d=t&&!e?"bg-background-hover":"",l=vk[r];return tailwindMerge.twMerge(i,rt(),l,s,d,o==="plain"&&n?"px-0":"",a)}function kk({density:e,showDividers:t,className:r}){let o="text-text-primary",n=Ck[e];return tailwindMerge.twMerge(o,n,t?"":"rounded-b-lg",r)}function Qa({variant:e="contained",density:t="comfortable",showDividers:r=true,className:o,...n}){let a=_e__namespace.useMemo(()=>({variant:e,density:t,showDividers:r}),[e,t,r]),i=tailwindMerge.twMerge("flex w-full flex-col",yk[e],r?Fb.true:Fb.false,e==="plain"&&r?"border-y border-border-default/60":"");return jsxRuntime.jsx(Bb.Provider,{value:a,children:jsxRuntime.jsx(reactAriaComponents.DisclosureGroup,{...n,className:Ae(o,i)})})}function bn({className:e,children:t,...r}){let{variant:o,showDividers:n}=ip();return jsxRuntime.jsx(reactAriaComponents.Disclosure,{...r,className:reactAriaComponents.composeRenderProps(e,a=>Nk({variant:o,showDividers:n,className:a})),children:a=>jsxRuntime.jsx(Vb.Provider,{value:a,children:t})})}bn.displayName="CollapseItem";function hn({title:e,description:t,startContent:r,endContent:o,indicator:n,indicatorPosition:a="end",showIndicator:i=true,keepIndicatorSpace:s=false,children:d,className:l,...c}){let u=wk("CollapseHeader"),{density:m,variant:p,showDividers:g}=ip(),f=Sk[m];return jsxRuntime.jsx(reactAriaComponents.Button,{...c,slot:"trigger","data-expanded":u.isExpanded?"true":void 0,className:reactAriaComponents.composeRenderProps(l,(h,b)=>Tk({isDisabled:b.isDisabled??false,isPressed:b.isPressed??false,density:m,variant:p,showDividers:g,className:h})),children:h=>{let b=h.isDisabled??false,v=i?typeof n=="function"?n({isExpanded:u.isExpanded,isDisabled:b}):n??jsxRuntime.jsx(z,{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,y=v?jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("flex flex-shrink-0 items-center justify-center text-text-secondary",f),"aria-hidden":"true",children:v}):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"&&y,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:[d??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"&&y]})}})}hn.displayName="CollapseHeader";function xn({className:e,children:t,...r}){let{density:o,showDividers:n}=ip();return jsxRuntime.jsx(reactAriaComponents.DisclosurePanel,{...r,className:reactAriaComponents.composeRenderProps(e,a=>kk({density:o,showDividers:n,className:a})),children:jsxRuntime.jsx(sn,{children:t})})}xn.displayName="CollapseContent";function Za(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 lp(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 Mk({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,transparent:i,className:s,validationResult:d,value:l,defaultValue:c,onChange:u,placeholder:m="#000000",showColorSwatch:p=true,reserveErrorSpace:g=true,...f}){let[h,b]=_e.useState(c||""),[v,y]=_e.useState(l||c||""),[C,T]=_e.useState(false),[w,N]=_e.useState(null),{isFocused:R,handleFocus:P,handleBlur:E}=gr(),D=l!==void 0?l:h;_e.useEffect(()=>{l!==void 0&&y(l);},[l]);let k=D?!Za(D):false,A=_e.useCallback(Y=>{if(y(Y),Za(Y)){let V=lp(Y);u?u(V):b(V);}else Y===""&&(u?u(""):b(""));},[u]),M=_e.useCallback(Y=>{let V=lp(Y);y(V),u?u(V):b(V);},[u]),H=_e.useCallback(Y=>{if(Za(v)){let V=lp(v);y(V),u&&V!==D?u(V):!u&&V!==h&&b(V);}E(Y,f.onBlur);},[v,D,h,u,E,f.onBlur]);return jsxRuntime.jsx(reactAriaComponents.TextField,{...f,isRequired:a,className:Ae(s,"group flex flex-col"),children:({isDisabled:Y})=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(Xe,{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(hl,{size:o,disabled:Y,type:"text",value:v,placeholder:m,onFocus:V=>P(V,f.onFocus),onBlur:H,onChange:V=>A(V.target.value),className:tailwindMerge.twMerge(Gt({isInvalid:k,isDisabled:Y,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:Ye[o].height},children:jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-6 h-6 rounded border shadow-sm",Za(D)?"border-border-default":"border-border-default bg-background-muted"),style:Za(D)?{backgroundColor:D}:void 0,"aria-hidden":"true",children:!Za(D)&&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:N,children:jsxRuntime.jsx(te,{variant:"secondary",size:o,icon:"Palette",onPress:()=>T(!C),isDisabled:Y,className:"flex-shrink-0",children:"Pick"})})]})}),g?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(xe,{size:o,children:r}):typeof r=="function"&&d?jsxRuntime.jsx(xe,{size:o,children:r(d)}):t?jsxRuntime.jsx(ke,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(xe,{size:o,className:"mt-1",children:r}):typeof r=="function"&&d?jsxRuntime.jsx(xe,{size:o,className:"mt-1",children:r(d)}):t?jsxRuntime.jsx(ke,{size:o,className:"mt-1",children:t}):null}),C&&w&&jsxRuntime.jsx(vt,{triggerRef:{current:w},isOpen:C,onOpenChange:T,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:D||"#000000",onChange:M,style:{width:"200px",height:"200px"}}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("div",{className:"w-10 h-10 rounded border border-border-default shadow-sm flex-shrink-0",style:{backgroundColor:D||"#000000"}}),jsxRuntime.jsx("div",{className:"flex-1 text-text-primary text-[length:var(--control-text-sm)] font-mono",children:D||"#000000"})]})]})})]})})}function Hb({isOpen:e,onClose:t,onConfirm:r,title:o,message:n,confirmLabel:a="Confirm",cancelLabel:i="Cancel",confirmVariant:s,isDestructive:d=false,isLoading:l=false,maxWidth:c="500px",minWidth:u="400px"}){return jsxRuntime.jsx(fr,{isOpen:e,onClose:t,title:o,maxWidth:c,minWidth:u,primaryAction:{label:a,onPress:()=>{r();},variant:s??(d?"destructive":"primary"),isLoading:l},secondaryAction:{label:i,onPress:t,variant:"secondary",isDisabled:l},children:jsxRuntime.jsx("div",{className:"text-text-primary",children:n})})}function Gb({isConnected:e,connectedAt:t,disconnectedAt:r,showTimestamp:o=false,isLoading:n,size:a="sm",shape:i="pill",...s}){if(n)return jsxRuntime.jsx(j,{className:"inline-flex h-6 w-24"});let d=e?"Connected":"Disconnected",l=e?"success":"neutral",c=null;if(o){if(e&&t)c=Zs(t);else if(!e&&r){let u=Zs(r);c=u?`Offline ${u}`:null;}}return jsxRuntime.jsxs("div",{className:"inline-flex flex-col gap-1",children:[jsxRuntime.jsx(gt,{variant:l,size:a,shape:i,dot:e,dotPulse:e,...s,children:d}),c&&jsxRuntime.jsx("span",{className:"text-xs text-text-secondary",children:c})]})}function Wb({firstName:e,lastName:t,email:r,phone:o,avatarUrl:n,href:a,LinkComponent:i,variant:s="outlined",layout:d="horizontal",showEmail:l=true,showPhone:c=false,isLoading:u=false,className:m,contentClassName:p,piiEntity:g}){let f=`${e} ${t}`.trim(),h=({children:v,className:y})=>a?i?jsxRuntime.jsx(i,{href:a,className:y,children:v}):jsxRuntime.jsx(pt,{href:a,variant:"unstyled",className:tailwindMerge.twMerge("hover:underline",y),asButton:false,children:v}):jsxRuntime.jsx("span",{className:y,children:v}),b=d==="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(j,{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(j,{width:"70%",height:20,className:tailwindMerge.twMerge(b&&"mx-auto")}),jsxRuntime.jsx(j,{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(Go,{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(h,{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:[l&&r&&jsxRuntime.jsxs("div",{className:"flex items-center gap-2.5 text-text-primary",children:[jsxRuntime.jsx(z,{name:"Envelope",size:16,className:"text-text-secondary flex-shrink-0"}),jsxRuntime.jsx(pt,{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})]}),c&&o&&jsxRuntime.jsxs("div",{className:"flex items-center gap-2.5 text-text-primary",children:[jsxRuntime.jsx(z,{name:"Phone",size:16,className:"text-text-secondary flex-shrink-0"}),jsxRuntime.jsx(pt,{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:Ba(o)})]})]})]})]})})})}function El({firstName:e,lastName:t,email:r,avatarUrl:o,layout:n="stacked",size:a="md",href:i,LinkComponent:s,linkVariant:d="unstyled",emphasis:l="normal",showEmail:c=false,badge:u,avatarShape:m,isLoading:p=false,className:g,piiEntity:f}){let h=m??(n==="inline"?"circle":"square"),v={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],y=`${e} ${t}`.trim(),T={strong:"font-semibold text-text-primary",high:"font-semibold text-text-primary",normal:"text-text-primary",low:"text-text-secondary"}[l],w=({children:N,className:R})=>i?s?jsxRuntime.jsx(s,{href:i,className:R,children:N}):jsxRuntime.jsx(pt,{href:i,variant:d,className:tailwindMerge.twMerge("hover:underline",R),asButton:false,children:N}):jsxRuntime.jsx("span",{className:R,children:N});return p?n==="inline"?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",v.gap,g),children:[jsxRuntime.jsx(j,{width:v.skeletonAvatar,height:v.skeletonAvatar,className:"flex-shrink-0 rounded-full"}),jsxRuntime.jsx(j,{width:v.skeletonText,height:v.skeletonAvatar*.5})]}):jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",v.gap,g),children:[jsxRuntime.jsx(j,{width:v.skeletonAvatar,height:v.skeletonAvatar,className:"flex-shrink-0 rounded-full"}),jsxRuntime.jsxs("div",{className:"flex flex-col gap-1",children:[jsxRuntime.jsx(j,{width:v.skeletonText,height:16}),c&&jsxRuntime.jsx(j,{width:v.skeletonSecondary,height:12})]})]}):n==="inline"?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",v.gap,g),children:[jsxRuntime.jsxs(w,{className:tailwindMerge.twMerge("flex items-center",v.gap),children:[jsxRuntime.jsx(Go,{firstName:e,lastName:t,src:o,size:v.avatarSize,variant:"user",shape:h,className:"flex-shrink-0",piiEntity:f}),jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("leading-normal truncate hover:text-text-primary",T,v.textSize,i&&"hover:underline hover:decoration-1 hover:underline-offset-4"),"data-pii-type":f?"full-name":void 0,"data-pii-entity":f,children:y})]}),u]}):jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center justify-start",v.gap,g),children:[jsxRuntime.jsx(Go,{firstName:e,lastName:t,src:o,size:v.avatarSize,variant:"user",shape:h,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(w,{className:tailwindMerge.twMerge("leading-normal truncate hover:text-text-primary",T,v.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:y})}),u]}),c&&r&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-text-secondary leading-normal truncate",v.secondaryTextSize),"data-pii-type":f?"email":void 0,"data-pii-entity":f,children:r})]})]})}var dp=_e.createContext(null);function Ub(e){let t=_e.useContext(dp),r=_e.useRef(null),o=e??r,[n,a]=_e.useState(()=>t||{current:"xl",isSm:true,isMd:true,isLg:true,isXl:true,is2Xl:false,isMobile:false,isDesktop:true});return _e.useEffect(()=>{if(t){a(t);return}let i=o.current;if(!i||typeof ResizeObserver>"u")return;let s=()=>{let l=i.offsetWidth,c=l>=640,u=l>=768,m=l>=1024,p=l>=1280,g=l>=1536,f="base";g?f="2xl":p?f="xl":m?f="lg":u?f="md":c&&(f="sm"),a({current:f,isSm:c,isMd:u,isLg:m,isXl:p,is2Xl:g,isMobile:!u,isDesktop:u});};s();let d=new ResizeObserver(s);return d.observe(i),()=>d.disconnect()},[t,o]),n}function Yb({children:e,className:t}){let r=_e.useRef(null),[o,n]=_e.useState({current:"base",isSm:false,isMd:false,isLg:false,isXl:false,is2Xl:false,isMobile:true,isDesktop:false});return _e.useEffect(()=>{let a=r.current;if(!a||typeof ResizeObserver>"u")return;let i=()=>{let d=a.offsetWidth,l=d>=640,c=d>=768,u=d>=1024,m=d>=1280,p=d>=1536,g="base";p?g="2xl":m?g="xl":u?g="lg":c?g="md":l&&(g="sm"),n({current:g,isSm:l,isMd:c,isLg:u,isXl:m,is2Xl:p,isMobile:!c,isDesktop:c});};i();let s=new ResizeObserver(i);return s.observe(a),()=>s.disconnect()},[]),jsxRuntime.jsx(dp.Provider,{value:o,children:jsxRuntime.jsx("div",{ref:r,className:t,style:{width:"100%"},children:e})})}var Ml={duration:.5,ease:"easeInOut"},Jr=_e.createContext(null);function Ll(){let e=_e.useRef({played:false});return _e.useEffect(()=>{e.current.played=true;},[]),e.current}var qn=()=>{let e=_e.useContext(Jr);if(!e)throw new Error("useChartContext must be used within a ChartContextProvider");return e};function Dl(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 vn=({data:e,color:t="var(--color-viz-default)",baseline:r,fillOpacity:o=.1,showLine:n=true,maxGapMs:a,animate:i=true})=>{let s=_e.useId(),d=_e.useId(),{xScale:l,yScale:c,animationSettings:u,entrance:m}=qn(),[p]=_e__namespace.default.useState(()=>m?.played!==true),g=i&&p,f=l.range(),h=c.range(),b=(N,R)=>typeof r=="function"?r(N,R):r??0,v=N=>N.chartYValue??N.yValue,y=a!=null?Dl(e,a):e,C=i?void 0:"non-scaling-stroke",T={transformOrigin:`0 ${h[0]}px`,transformBox:"fill-box",isolation:"isolate"},w=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[r===void 0?jsxRuntime.jsx(shape.AreaClosed,{data:y,x:N=>N?l(N.xValue):0,y:N=>N?c(v(N)):0,yScale:c,defined:N=>N!=null,fill:`url(#${s})`,curve:curve.curveLinear}):jsxRuntime.jsx(shape.Area,{data:y,x:N=>N?l(N.xValue):0,y0:(N,R)=>N?c(b(N,R)):0,y1:N=>N?c(v(N)):0,defined:N=>N!=null,fill:t,fillOpacity:o,curve:curve.curveLinear}),n?jsxRuntime.jsx(shape.LinePath,{data:y,x:N=>N?l(N.xValue):0,y:N=>N?c(v(N)):0,defined:N=>N!=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:d,children:jsxRuntime.jsx("rect",{x:f[0],y:h[1],width:f[1]-f[0],height:h[0]-h[1]})})]}),g?jsxRuntime.jsx("g",{clipPath:`url(#${d})`,children:jsxRuntime.jsx(framerMotion.motion.g,{initial:{scaleY:0},animate:{scaleY:1},transition:{duration:u.duration,ease:u.ease},style:T,children:w})}):jsxRuntime.jsx("g",{style:T,children:w})]})};var Il=({data:e,color:t="var(--color-viz-default)",opacity:r=1,categoryColors:o={}})=>{let{xScale:n,yScale:a,animationSettings:i}=qn(),s=_e.useId(),d=n.range(),l=a.range(),c=[...e].sort((p,g)=>p.xValue.getTime()-g.xValue.getTime());if(c.length===0)return null;let u=c.length>1?c[1].xValue.getTime()-c[0].xValue.getTime():15*6e4,m=Math.abs(n(new Date(c[0].xValue.getTime()+u))-n(c[0].xValue));return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("defs",{children:jsxRuntime.jsx("clipPath",{id:s,children:jsxRuntime.jsx("rect",{x:d[0],y:l[1],width:d[1]-d[0],height:l[0]-l[1]})})}),jsxRuntime.jsx("g",{clipPath:`url(#${s})`,children:jsxRuntime.jsx(framerMotion.motion.g,{initial:{scaleY:0},animate:{scaleY:1},transition:{duration:i.duration,ease:i.ease},style:{transformOrigin:`0 ${a(0)}px`,isolation:"isolate"},children:c.map((p,g)=>{let f=n(p.xValue),h=p.chartYValue??p.yValue,b=p.baselineValue??0,v=a(h),y=a(b),C=Math.min(v,y),T=Math.abs(v-y),w=c[g+1],N=w?Math.abs(n(w.xValue)-f):m,R=p.category&&o[p.category]?o[p.category]:t;return jsxRuntime.jsx(shape.Bar,{x:f-N/2,y:C,width:N,height:T,fill:R,opacity:r,rx:1},p.xValue.getTime())})})})]})};function tP(e,t){return e.length*(t*.6)}var Qn;function rP(){if(Qn!==void 0)return Qn;if(typeof window>"u"||typeof document>"u")return Qn=null,Qn;try{Qn=document.createElement("canvas").getContext("2d");}catch{Qn=null;}return Qn}function Fl(e,t=12,r="system-ui"){let o=rP();return o?(o.font=`${t}px ${r}`,o.measureText(e).width):tP(e,t)}function Cn(e,t=12,r="system-ui"){return e.length===0?0:Math.max(...e.map(o=>Fl(o,t,r)))}function jb(e,t,r=12,o="system-ui"){if(t<=0)return "";if(Fl(e,r,o)<=t)return e;let n="\u2026";if(Fl(n,r,o)>t)return "";let a=0,i=e.length;for(;a<i;){let s=Math.ceil((a+i)/2);Fl(e.slice(0,s)+n,r,o)<=t?a=s:i=s-1;}return e.slice(0,a)+n}var Bl=(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 sP(e){return e>=1e9?"GW":e>=1e6?"MW":e>=1e3?"kW":"W"}function lP(e){return e>=1e3?"kA":e<1?"mA":"A"}function cP(e){return e>=1e3?"kV":e<1?"mV":"V"}function dP(e){return e>=1e6?"M\u03A9":e>=1e3?"k\u03A9":e<1?"m\u03A9":"\u03A9"}function $a(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?tu[e.sourceUnit]:1;return {...e,unit:eu(t*r)}}case "power":return e.unit||e.autoScale===false?e:{...e,unit:sP(t)};case "current":return e.unit||e.autoScale===false?e:{...e,unit:lP(t)};case "voltage":return e.unit||e.autoScale===false?e:{...e,unit:cP(t)};case "resistance":return e.unit||e.autoScale===false?e:{...e,unit:dP(t)};default:return e}}var uP=e=>e.baselineValue??0,Ke={top:8,right:0,bottom:50,left:60};function Ar(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 d=c=>{if(c==null)return "";if(typeof c=="string")return c;if(typeof c=="number")return c.toString();if(typeof c=="object"&&"props"in c){let u=c.props;if(u?.children)return Array.isArray(u.children)?u.children.map(d).join(""):d(u.children)}return ""};return d(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 pp=(e,t)=>{let r=d3Array.extent(e,o=>o.xValue);return scale.scaleTime({range:[Ke.left,t-Ke.right],domain:r,nice:true})},Ji=(e,t,r,o)=>{let n=Ar(r);if(o)return scale.scaleLinear({range:[t-Ke.bottom,Ke.top],domain:o,nice:true});let a=d3Array.min(e,l=>Math.min(l.yValue,l.chartYValue??l.yValue,l.baselineValue??l.yValue))||0,i=d3Array.max(e,l=>Math.max(l.yValue,l.chartYValue??l.yValue,l.baselineValue??l.yValue))||0,s=n.min!==void 0?n.min:a>=0?0:a*1.1,d=n.max!==void 0?n.max:i<=0?0:i*1.1;return scale.scaleLinear({range:[t-Ke.bottom,Ke.top],domain:[s,d],nice:true})};function Xi(e){return e instanceof Date&&!Number.isNaN(e.getTime())}var ji=12;function pP(e,t,r=12,o=false){if(!Xi(t[0])||!Xi(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=fu({start:t[0],end:t[1]},{compact:o}),l=[t[0],new Date((t[0].getTime()+t[1].getTime())/2),t[1]].map(v=>s(v)),c=Cn(l,r),m=c+c,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]],h=i/36e5,b;h<=1?b=6e4:h<=6?b=5*6e4:h<=48?b=60*6e4:h<=168?b=360*6e4:b=1440*6e4;for(let v=1;v<g-1;v++){let y=v/(g-1),C=n+i*y,T=Math.round(C/b)*b,w=f[f.length-1].getTime(),N=T>w?T:w+b;if(N>=a)break;f.push(new Date(N));}return f.push(t[1]),f}var mP=({top:e,scale:t,width:r})=>{let o=t.domain(),n=[o[0],o[o.length-1]],a=Xi(n[0])&&Xi(n[1]),i=r<400,s=a?n[0].getTime():0,d=a?n[1].getTime():0,l=_e.useMemo(()=>a?fu({start:n[0],end:n[1]},{compact:i}):()=>"",[s,d,i,a]),c=_e.useMemo(()=>pP(r,n,12,i),[r,s,d,i]);return c.length===0?null:jsxRuntime.jsx(axis.Axis,{orientation:"bottom",top:e,scale:t,tickValues:c,tickFormat:u=>{let m=u;return Xi(m)?l(m):""},stroke:"var(--color-border-muted)",tickStroke:"var(--color-border-muted)",tickLabelProps:(u,m,p)=>({fill:"var(--color-text-secondary)",fontSize:12,textAnchor:m===0?"start":m===p.length-1?"end":"middle"}),rangePadding:0})};function ei(e,t=12){let r=t*2.5,o=Math.floor(e/r);return Math.max(2,Math.min(6,o))}var mp=12,fP=({left:e,scale:t,yFormatter:r,height:o})=>{let n=Ar(r),a=_e.useMemo(()=>!o||o<=0?5:ei(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:mp,textAnchor:"end"},d=t(i),[l,c]=t.range(),u=Math.min(l,c),m=Math.max(l,c);return d-u<mp/2?{...s,verticalAnchor:"start"}:m-d<mp/2?{...s,verticalAnchor:"end"}:{...s,dy:"0.33em"}}})},gP=({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"})}),bP=({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=>jb(String(o),r,ji),tickLabelProps:()=>({fill:"var(--color-text-secondary)",fontSize:ji,textAnchor:"end",dx:"-0.25em",dy:"0.33em"})}),hP=({top:e,scale:t,yFormatter:r,width:o})=>{let n=Ar(r),a=_e.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:mP,Left:fP,CategoryBottom:gP,CategoryLeft:bP,NumericBottom:hP};var Co=({data:e,formatter:t,label:r,categoryLabels:o})=>{if(!e)return null;let n=_e__namespace.default.useContext(Jr),a=o??n?.categoryLabels,i=n?.xScale,s=n?.width,d=n?.height,l=Ar(t),c=v=>{if(v.baselineValue===void 0)return l.format(v.value);let y=Math.min(v.baselineValue,v.value),C=Math.max(v.baselineValue,v.value);return `${l.format(y)} \u2013 ${l.format(C)}`},u=_e__namespace.default.useRef(null),[m,p]=_e__namespace.default.useState({x:0,y:0,translate:"translate(-50%, -100%)"});_e__namespace.default.useEffect(()=>{if(!u.current)return;let y=u.current.getBoundingClientRect(),C=s??window.innerWidth,T=d??window.innerHeight,w=e.x,N=e.y,R=16,P=e.x+y.width+R<=C,E=e.x-y.width-R>=0,D;e.position==="left"?D=E||!P:D=!P&&E;let k=D?"translate(calc(-100% - 16px), -50%)":"translate(16px, -50%)";if(!P&&!E){let A=C-e.x,M=e.x;A<=M?(w=C,k="translate(-100%, -50%)"):(w=0,k="translate(0, -50%)");}N-y.height/2<0?N=y.height/2:N+y.height/2>T&&(N=T-y.height/2),p({x:w,y:N,translate:k});},[e.x,e.y,e.position,s,d]);let g=i?.domain(),h=g&&g.length===2&&g.every(v=>v instanceof Date)?mg({start:g[0],end:g[1]}):null,b=r||(h&&e.xValue instanceof Date?h(e.xValue):String(e.xValue));return jsxRuntime.jsx(framerMotion.AnimatePresence,{children:jsxRuntime.jsxs(framerMotion.motion.div,{ref:u,role:"tooltip","aria-live":"polite",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},"data-testid":"tooltip",className:"pointer-events-none absolute z-50 rounded-lg bg-background-surface p-4 text-sm shadow-xl ring-1 ring-border-default whitespace-nowrap",style:{left:m.x,top:m.y,transform:m.translate},children:[jsxRuntime.jsx("div",{className:"mb-1 font-medium text-text-primary",children:b}),e.isEvent?jsxRuntime.jsxs("div",{className:"space-y-2",children:[e.series.length>1&&jsxRuntime.jsx("ul",{className:"list-none p-0 border-b border-border-default pb-2",children:e.series.slice(0,-1).map(v=>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:[v.label,":"]}),jsxRuntime.jsx("span",{className:"text-text-secondary",children:c(v)})]}),v.category&&jsxRuntime.jsxs("div",{className:"mt-0.5 flex items-center gap-2",children:[jsxRuntime.jsx("div",{className:"h-3 w-3",style:{backgroundColor:v.categoryColor||v.color,borderRadius:"1px"}}),jsxRuntime.jsx("span",{className:"text-sm text-text-secondary",children:a?.[v.category]||v.category})]}),v.extraTooltipRows&&v.extraTooltipRows.length>0&&jsxRuntime.jsx("div",{className:"mt-0.5 space-y-0.5",children:v.extraTooltipRows.map(y=>jsxRuntime.jsxs("div",{className:"flex items-center gap-2 text-sm text-text-secondary",children:[jsxRuntime.jsxs("span",{children:[y.label,":"]}),jsxRuntime.jsx("span",{className:"font-medium text-text-primary",children:y.value})]},y.label))})]},v.label))}),(()=>{let v=e.series[e.series.length-1],y=e.eventItems?.length?e.eventItems:[{label:v.label,color:v.color,metadata:e.eventMetadata}];return jsxRuntime.jsx("div",{className:"space-y-2",children:y.map((C,T)=>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(([w,N])=>jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsxs("span",{className:"capitalize",children:[w,":"]}),jsxRuntime.jsx("span",{className:"font-medium",children:N})]},w))})]},`${C.label}-${T}`))})})()]}):jsxRuntime.jsx("ul",{className:"list-none p-0",children:e.series.map(v=>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:[v.label,":"]}),jsxRuntime.jsx("span",{className:"text-text-secondary",children:c(v)})]}),v.category&&jsxRuntime.jsxs("div",{className:"mt-0.5 flex items-center gap-2",children:[jsxRuntime.jsx("div",{className:"h-3 w-3",style:{backgroundColor:v.categoryColor||v.color,borderRadius:"1px"}}),jsxRuntime.jsx("span",{className:"text-sm text-text-secondary",children:a?.[v.category]||v.category})]}),v.extraTooltipRows&&v.extraTooltipRows.length>0&&jsxRuntime.jsx("div",{className:"mt-0.5 space-y-0.5",children:v.extraTooltipRows.map(y=>jsxRuntime.jsxs("div",{className:"flex items-center gap-2 text-sm text-text-secondary",children:[jsxRuntime.jsxs("span",{children:[y.label,":"]}),jsxRuntime.jsx("span",{className:"font-medium text-text-primary",children:y.value})]},y.label))})]},v.label))})]})})};var th={top:20,right:20,bottom:50,left:60},ah=12,TP=.4,rh=60;function kP({margin:e,orientation:t,labelsKey:r,width:o}){return _e.useMemo(()=>{if(e)return e;if(t!=="horizontal")return th;let n=Cn(r.split("\0"),ji,"system-ui"),a=Math.max(rh,Math.floor(o*TP)),i=Math.ceil(n)+ah;return {...th,left:Math.min(Math.max(i,rh),a)}},[e,t,r,o])}var ih=({data:e,width:t,height:r,margin:o,color:n,yFormatter:a={type:"number"},showGrid:i=true,showAxes:s=true,animate:d=true,barRadius:l=4,barPadding:c=.3,onBarClick:u,onBarHover:m,activeIndex:p,className:g,style:f,"aria-label":h,orientation:b="horizontal",showTooltip:v=true})=>{let[y,C]=_e.useState(null),[T,w]=_e.useState(null),[N,R]=_e.useState(null),[P,E]=_e.useState(t??600),[D,k]=_e.useState(r??300),A=_e.useRef(null),M=p??y,H=_e.useId(),Y=n||"var(--color-viz-default)";_e.useEffect(()=>{if(t!==void 0&&r!==void 0){E(t),k(r);return}if(!A.current)return;let S=new ResizeObserver(x=>{for(let L of x)t===void 0&&E(L.contentRect.width),r===void 0&&k(L.contentRect.height);});return S.observe(A.current),t===void 0&&E(A.current.offsetWidth),r===void 0&&k(A.current.offsetHeight||300),()=>{S.disconnect();}},[t,r]);let V=e.map(S=>S.label).join("\0"),F=kP({margin:o,orientation:b,labelsKey:V,width:P}),X=Math.max(0,F.left-ah),{xScale:O,yScale:U,innerWidth:J,innerHeight:G}=_e.useMemo(()=>{let S=P-F.left-F.right,x=D-F.top-F.bottom;if(b==="horizontal"){let I=d3Array.max(e,q=>q.value)||0;return {xScale:scale.scaleLinear({range:[0,S],domain:[0,I*1.1],nice:true}),yScale:scale.scaleBand({range:[0,x],domain:e.map(q=>q.label),padding:c}),innerWidth:S,innerHeight:x}}let L=d3Array.max(e,I=>I.value)||0;return {xScale:scale.scaleBand({range:[0,S],domain:e.map(I=>I.label),padding:c}),yScale:scale.scaleLinear({range:[x,0],domain:[0,L*1.1],nice:true}),innerWidth:S,innerHeight:x}},[e,P,D,F,c,b]);if(e.length===0)return jsxRuntime.jsx("div",{ref:A,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 B=(S,x)=>{if(C(S),m?.(x,S),S!==null&&x){let L,I;if(b==="horizontal"){let ne=O(x.value),ae=U(x.label)||0,$=U.bandwidth();L=F.left+ne,I=F.top+ae+$/2;}else {let ne=O,ae=U,$=ne(x.label)??0,ie=ne.bandwidth(),Ie=ae(x.value);L=F.left+$+ie/2,I=F.top+Ie;}let q=L>P/2;R(x.label),w({xValue:new Date,series:[{label:"Value",value:x.value,color:x.color||Y}],x:L,y:I,position:q?"left":"right"});}else w(null),R(null);};return jsxRuntime.jsxs("div",{ref:A,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":h,role:"img",children:[jsxRuntime.jsxs("svg",{width:P,height:D,children:[jsxRuntime.jsx("defs",{children:jsxRuntime.jsx(gradient.LinearGradient,{id:`${H}-bar`,from:Y,to:Y,toOpacity:.85})}),jsxRuntime.jsxs(group.Group,{left:F.left,top:F.top,children:[i&&jsxRuntime.jsx("g",{className:"grid-lines",children:(b==="horizontal"?O.ticks(5):U.ticks(5)).map(S=>{let x=b==="horizontal"?0:U(S),L=b==="horizontal"?O(S):0;return jsxRuntime.jsx("line",{x1:b==="horizontal"?L:0,y1:b==="horizontal"?0:x,x2:b==="horizontal"?L:J,y2:b==="horizontal"?G:x,stroke:"var(--color-border-default)",strokeOpacity:.5,strokeDasharray:"2,3"},S)})}),e.map((S,x)=>{let L=M===x||M==null,I=S.color||`url(#${H}-bar)`;if(b==="horizontal"){let ue=O(S.value),ge=U.bandwidth(),de=U(S.label)||0;return jsxRuntime.jsx(framerMotion.motion.rect,{x:0,y:de,width:ue,height:ge,fill:I,rx:l,ry:l,initial:d?{width:0,opacity:.5}:void 0,animate:{width:ue,opacity:L?1:.5},transition:{duration:.5,delay:x*.05,ease:"easeOut",opacity:{duration:.15,delay:0}},style:{cursor:u||m?"pointer":"default"},onMouseEnter:()=>B(x,S),onMouseLeave:()=>B(null,null),onClick:()=>u?.(S,x)},S.label)}let q=O,ne=U,ae=q.bandwidth(),$=q(S.label)??0,ie=ne(S.value),Ie=Math.max(0,G-ie);return d?jsxRuntime.jsx(framerMotion.motion.rect,{x:$,width:ae,fill:I,rx:l,ry:l,initial:{y:G,height:0,opacity:.5},animate:{y:ie,height:Ie,opacity:L?1:.5},transition:{duration:.5,delay:x*.05,ease:"easeOut",opacity:{duration:.15,delay:0}},style:{cursor:u||m?"pointer":"default"},onMouseEnter:()=>B(x,S),onMouseLeave:()=>B(null,null),onClick:()=>u?.(S,x)},S.label):jsxRuntime.jsx("rect",{x:$,y:ie,width:ae,height:Ie,fill:I,rx:l,ry:l,opacity:L?1:.5,style:{cursor:u||m?"pointer":"default",transition:"opacity 150ms ease-out"},onMouseEnter:()=>B(x,S),onMouseLeave:()=>B(null,null),onClick:()=>u?.(S,x)},S.label)}),s&&b==="vertical"&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Xr.CategoryBottom,{top:G,scale:O}),jsxRuntime.jsx(Xr.Left,{left:0,scale:U,yFormatter:a,height:G})]}),s&&b==="horizontal"&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Xr.NumericBottom,{top:G,scale:O,yFormatter:a,width:J}),jsxRuntime.jsx(Xr.CategoryLeft,{left:0,scale:U,availableWidth:X})]})]})]}),v&&jsxRuntime.jsx(Co,{data:T,formatter:a,label:N??void 0})]})};var sh=({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})},EP=({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(sh,{item:r,onToggle:t},r.category))}),ri=({items:e,onExport:t,marginLeft:r=0,marginRight:o=0,isZoomed:n=false,onResetZoom:a,onLegendItemToggle:i})=>{let[s,d]=_e__namespace.default.useState(false),[l,c]=_e__namespace.default.useState(null),[u,m]=_e__namespace.default.useState(false),[p,g]=_e__namespace.default.useState(false),f=_e__namespace.default.useCallback(async b=>{d(true),c(b),g(false);try{await t(b);}catch(v){console.error("Export failed:",v);}finally{d(false),c(null);}},[t]),h=_e__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(EP,{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(sh,{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(z,{name:"ArrowsOut",size:16})}),jsxRuntime.jsx(te,{variant:"secondary",size:"sm",onPress:()=>g(true),isDisabled:s,children:jsxRuntime.jsx(z,{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(z,{name:"List",size:20,className:"text-text-secondary"}),jsxRuntime.jsx("span",{className:"text-sm text-text-primary",children:l==="csv"?"Exporting...":"Export as CSV"})]}),jsxRuntime.jsxs("button",{onClick:()=>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(z,{name:"Code",size:20,className:"text-text-secondary"}),jsxRuntime.jsx("span",{className:"text-sm text-text-primary",children:l==="svg"?"Exporting...":"Export as SVG"})]}),jsxRuntime.jsxs("button",{onClick:()=>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(z,{name:"DownloadSimple",size:20,className:"text-text-secondary"}),jsxRuntime.jsx("span",{className:"text-sm text-text-primary",children:l==="png"?"Exporting...":"Export as PNG"})]})]})})]}),jsxRuntime.jsxs("div",{className:"hidden sm:flex items-center gap-2 shrink-0",children:[n&&a&&jsxRuntime.jsxs(te,{variant:"secondary",size:"sm",onPress:a,children:[jsxRuntime.jsx(z,{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(z,{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:h,className:"outline-none",children:[jsxRuntime.jsx(reactAriaComponents.MenuItem,{id:"csv",className:"flex items-center gap-2 px-3 py-2 text-sm text-text-primary rounded cursor-pointer hover:bg-background-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus focus-visible:ring-offset-1 focus-visible:ring-offset-background-surface data-[focused]:bg-background-hover data-[focused]:ring-2 data-[focused]:ring-border-focus data-[focused]:ring-offset-1 data-[focused]:ring-offset-background-surface",isDisabled:s,children:jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(z,{name:"List",size:14}),l==="csv"?"Exporting...":"Export as CSV"]})}),jsxRuntime.jsx(reactAriaComponents.MenuItem,{id:"svg",className:"flex items-center gap-2 px-3 py-2 text-sm text-text-primary rounded cursor-pointer hover:bg-background-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus focus-visible:ring-offset-1 focus-visible:ring-offset-background-surface data-[focused]:bg-background-hover data-[focused]:ring-2 data-[focused]:ring-border-focus data-[focused]:ring-offset-1 data-[focused]:ring-offset-background-surface",isDisabled:s,children:jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(z,{name:"Code",size:14}),l==="svg"?"Exporting...":"Export as SVG"]})}),jsxRuntime.jsx(reactAriaComponents.MenuItem,{id:"png",className:"flex items-center gap-2 px-3 py-2 text-sm text-text-primary rounded cursor-pointer hover:bg-background-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus focus-visible:ring-offset-1 focus-visible:ring-offset-background-surface data-[focused]:bg-background-hover data-[focused]:ring-2 data-[focused]:ring-border-focus data-[focused]:ring-offset-1 data-[focused]:ring-offset-background-surface",isDisabled:s,children:jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(z,{name:"DownloadSimple",size:14}),l==="png"?"Exporting...":"Export as PNG"]})})]})})]})]})]})};var zl=mf(hp());var ch=["stroke","fill","color","stop-color","flood-color","lighting-color"],dh=/var\s*\(/;function uh(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 d=window.getComputedStyle(i);for(let l of ch){let c=s.getAttribute(l);if(c&&dh.test(c)){let u=d.getPropertyValue(l);u&&s.setAttribute(l,u.trim());}}if(s instanceof HTMLElement||s instanceof SVGElement)for(let l of ch){let c=l,u=s.style.getPropertyValue(c);if(u&&dh.test(u)){let m=d.getPropertyValue(c);m&&s.style.setProperty(c,m.trim());}}}}function xp(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 yp(e,t,r={},o){let n=Array.isArray(t[0])?t:[t];try{switch(e){case "csv":await LP(n,r);break;case "svg":await DP(o,r);break;case "png":await AP(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 LP(e,t){try{let r=t.yFormat?mu(t.yFormat):null,o=t.yFormat,n=m=>{if(m==null||m==="")return "";if(!o)return typeof m=="number"?m:String(m);let p=pg(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}),d=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 h=s[f],b=g.find(v=>v.xValue.getTime()===m.getTime());p[h]=b?n(b.yValue):"",b?.category&&(p[`${h} Category`]=b.category);}),p}),l=MP__default.default.unparse(d,{header:!0,skipEmptyLines:!0}),c=new Blob([l],{type:"text/csv;charset=utf-8;"}),u=xp(t.filename||"chart-data","csv",t.timestamp!==!1);(0,zl.saveAs)(c,u);}catch(r){throw new Error(`CSV export failed: ${r instanceof Error?r.message:"Unknown error"}`)}}async function DP(e,t){if(!e.current)throw new Error("SVG element not found");try{let r=e.current,o=r.cloneNode(!0);if(uh(r,o),!o.querySelector("rect[data-background]")){let l=document.createElementNS("http://www.w3.org/2000/svg","rect");l.setAttribute("width",o.getAttribute("width")||"100%"),l.setAttribute("height",o.getAttribute("height")||"100%"),l.setAttribute("fill","white"),l.setAttribute("data-background","true"),o.insertBefore(l,o.firstChild);}let i=new XMLSerializer().serializeToString(o);i.includes("<?xml")||(i=`<?xml version="1.0" encoding="UTF-8"?>
|
|
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"}),d=xp(t.filename||"chart","svg",t.timestamp!==!1);(0,zl.saveAs)(s,d);}catch(r){throw new Error(`SVG export failed: ${r instanceof Error?r.message:"Unknown error"}`)}}async function AP(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);uh(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 d=document.createElementNS("http://www.w3.org/2000/svg","rect");d.setAttribute("width",String(a.width)),d.setAttribute("height",String(a.height)),d.setAttribute("fill","white"),i.insertBefore(d,i.firstChild);let c=new XMLSerializer().serializeToString(i);c.includes("xmlns=")||(c=c.replace("<svg",'<svg xmlns="http://www.w3.org/2000/svg"'));let u=new Blob([c],{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 h=document.createElement("canvas");h.width=a.width*r,h.height=a.height*r;let b=h.getContext("2d");if(!b)throw new Error("Canvas context not available");b.imageSmoothingEnabled=!0,b.imageSmoothingQuality="high",b.scale(r,r),b.fillStyle="white",b.fillRect(0,0,a.width,a.height),b.drawImage(g,0,0,a.width,a.height),h.toBlob(v=>{if(v){let y=xp(t.filename||"chart","png",t.timestamp!==!1);(0,zl.saveAs)(v,y),m();}else p(new Error("Failed to create PNG blob"));o&&URL.revokeObjectURL(o);},"image/png",1);}catch(h){o&&URL.revokeObjectURL(o),p(h);}},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 IP(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 FP(e){return {csv:"CSV Spreadsheet",svg:"SVG Vector Image",png:"PNG Image"}[e]||"Unknown Format"}function Hl({datasets:e,metadata:t,svgRef:r}){return _e.useCallback(async o=>{try{await yp(o,e,t,r);}catch(n){throw console.error("Chart export failed:",n),n}},[e,t,r])}var vp=({data:e,seriesMetadata:t,width:r,height:o,onBrushChange:n,brushRegion:a,margin:i=Ke,yDomain:s})=>{let d=_e.useRef(null),l=_e.useRef(false),c=_e.useMemo(()=>e.flat(),[e]),u=_e.useMemo(()=>({top:10,bottom:15,left:i.left,right:i.right}),[i]),m=r-u.left-u.right,p=_e.useMemo(()=>{if(c.length===0)return scale.scaleTime({domain:[new Date,new Date],range:[0,m]});let v=new Date(Math.min(...c.map(C=>C.xValue.getTime()))),y=new Date(Math.max(...c.map(C=>C.xValue.getTime())));return scale.scaleTime({domain:[v,y],range:[0,m]})},[c,m]),g=_e.useMemo(()=>{let v=c.length>0?Math.max(0,...c.map(y=>y.yValue)):1;return scale.scaleLinear({domain:s??[0,v],range:[o-u.bottom,u.top]})},[c,o,s,u.top,u.bottom]),f=v=>{if(l.current)return;if(!v){n(null);return}let{x0:y,x1:C}=v;if(y===C)return;let T=new Date(y),w=new Date(C);if(!(Number.isNaN(T.getTime())||Number.isNaN(w.getTime()))){if(c.length>0){let N=Math.min(...c.map(k=>k.xValue.getTime())),R=Math.max(...c.map(k=>k.xValue.getTime())),E=(R-N)*.05;if(Math.abs(T.getTime()-N)<E&&Math.abs(w.getTime()-R)<E){n(null);return}}n([T,w]);}},h=_e.useMemo(()=>{if(c.length!==0)return {start:{x:0,y:u.top},end:{x:m,y:o-u.bottom}}},[m,o,c]);_e.useEffect(()=>{if(!d.current||c.length===0)return;let v=d.current.state;if(v?.isBrushing||v?.activeHandle)return;let y=Math.min(...c.map(P=>P.xValue.getTime())),C=Math.max(...c.map(P=>P.xValue.getTime())),T=a?a[0]:new Date(y),w=a?a[1]:new Date(C),N=d.current.state?.extent;if(N){let P=p.invert(N.x0),E=p.invert(N.x1),D=Math.abs(P.getTime()-T.getTime()),k=Math.abs(E.getTime()-w.getTime());if(D<1e3&&k<1e3)return}l.current=true;let R=P=>{let E=d.current.getExtent({x:p(T),y:u.top},{x:p(w),y:o-u.bottom});return {...P,start:{y:E.y0,x:E.x0},end:{y:E.y1,x:E.x1},extent:E}};d.current.updateBrush(R),setTimeout(()=>{l.current=false;},50);},[a,p,o,c]);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((v,y)=>jsxRuntime.jsx(shape.LinePath,{data:v,x:C=>p(C.xValue),y:C=>g(C.yValue),stroke:t[y]?.color||"var(--color-gray-500)",strokeWidth:1.5,opacity:.8},`brush-series-${y}`)),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:d,resizeTriggerAreas:["left","right"],brushDirection:"horizontal",initialBrushPosition:h,onChange:f,onClick:()=>n(null),selectedBoxStyle:b,useWindowMoveEvents:true})]})]})})};function Uo(e){switch(e){case "command":return Ot("--color-action-brand","#111111");case "success":return Ot("--color-feedback-success-border","#278a4a");case "warning":return Ot("--color-feedback-warning-border","#c88420");case "error":return Ot("--color-feedback-error-border","#c42d2d");case "alert":return Ot("--color-feedback-warning-border","#c88420");default:return Ot("--color-text-secondary","#525250")}}function Wl({events:e,color:t,showLabels:r=false}){let o=_e.useContext(Jr),[n,a]=_e.useState(null);if(!o)return console.warn("ChartEventMarkers must be used within a ChartContainer"),null;let{xScale:i,yScale:s,height:d,tooltip:l,datasets:c,seriesMetadata:u,seriesTypes:m,categoryColors:p}=o,g=e.filter(b=>{let v=i(b.timestamp);return v>=Ke.left&&v<=i.range()[1]}),f=_e.useCallback((b,v)=>{a(v);let y=i(b.timestamp),C=y>(i.range()[1]-Ke.right-Ke.left)/2+Ke.left,T=[];c&&u&&c.forEach((R,P)=>{if(R.length===0)return;let E=d3Array.bisector(H=>H.xValue).left,D=E(R,b.timestamp),k=R[D-1],A=R[D],M;if(!k)M=A;else if(!A)M=k;else {let H=Math.abs(b.timestamp.getTime()-k.xValue.getTime()),Y=Math.abs(b.timestamp.getTime()-A.xValue.getTime());M=H<Y?k:A;}M&&u[P]&&T.push({label:u[P].label,value:M.yValue,color:u[P].color,type:m?.[P]||"line",...M.category&&{category:M.category,categoryColor:p?.[M.category]}});});let N=g.filter(R=>Math.abs(i(R.timestamp)-y)<=10).map(R=>({label:R.label,color:R.color??t??Uo(R.type),metadata:R.metadata}));T.push({label:N.length>1?`${N.length} events`:b.label,value:0,color:b.color??t??Uo(b.type),type:"event"}),l.show({xValue:b.timestamp,series:T,x:y,y:T.length>1&&typeof T[0].value=="number"?s(T[0].value):d/2,position:C?"left":"right",isEvent:true,eventMetadata:b.metadata,eventItems:N});},[i,s,d,l,t,c,u,m,p,g]),h=_e.useCallback(()=>{a(null),l.hide();},[l]);return g.length===0?null:jsxRuntime.jsx("g",{className:"chart-event-markers","data-testid":"chart-event-markers",children:g.map((b,v)=>{let y=i(b.timestamp),C=b.color??t??Uo(b.type),T=n===v;return jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("line",{x1:y,y1:Ke.top,x2:y,y2:d-Ke.bottom,stroke:C,strokeWidth:T?3:2,strokeDasharray:"4 4",strokeOpacity:T?.9:.6,pointerEvents:"none"}),jsxRuntime.jsx("circle",{cx:y,cy:Ke.top,r:T?5:4,fill:C,stroke:"var(--color-background-surface)",strokeWidth:2,pointerEvents:"none"}),jsxRuntime.jsx("circle",{cx:y,cy:d-Ke.bottom,r:T?5:4,fill:C,stroke:"var(--color-background-surface)",strokeWidth:2,pointerEvents:"none"}),r&&jsxRuntime.jsx("text",{x:y,y:Ke.top-8,textAnchor:"middle",fill:"var(--color-text-secondary)",fontSize:11,fontWeight:500,pointerEvents:"none",children:b.label}),jsxRuntime.jsx("rect",{x:y-10,y:Ke.top,width:20,height:d-Ke.top-Ke.bottom,fill:"transparent",style:{cursor:"pointer"},onMouseEnter:()=>f(b,v),onMouseLeave:h})]},`${b.timestamp.getTime()}-${v}`)})})}var QP=d3Array.bisector(e=>e.xValue).left;function ZP(e,t){if(e.length===0)return;let r=QP(e,t),o=e[r-1],n=e[r];return o?n?Math.abs(t.getTime()-o.xValue.getTime())<Math.abs(t.getTime()-n.xValue.getTime())?{point:o,index:r-1}:{point:n,index:r}:{point:o,index:r-1}:n?{point:n,index:r}:void 0}function Ul({spans:e,opacity:t=.25,color:r}){let o=_e.useContext(Jr),[n,a]=_e.useState(null),i=_e.useRef(Number.NEGATIVE_INFINITY),s=o?.xScale,d=o?.yScale,l=o?.height,c=o?.tooltip,u=o?.datasets,m=o?.seriesMetadata,p=o?.seriesTypes,g=o?.categoryColors,[f,h]=s?.domain()??[new Date(0),new Date(0)],[b,v]=s?.range()??[0,0],y=_e.useCallback((D,k,A)=>{if(!s||!c||(a(A),D.timeStamp-i.current<16))return;i.current=D.timeStamp;let{left:M}=D.currentTarget.ownerSVGElement?.getBoundingClientRect()??{left:0},H=D.clientX-M,Y=s.invert(H),V=[];u&&m&&u.forEach((J,G)=>{let B=m[G],S=ZP(J,Y);if(!S||!B)return;let{point:x,index:L}=S,I=Bl(B,x,L);V.push({label:B.label,value:x.yValue,...I!==void 0?{baselineValue:I}:{},chartY:x.chartYValue??x.yValue,showMarker:x.showTooltipMarker??true,color:B.color,type:p?.[G]??"line",...x.category?{category:x.category,categoryColor:g?.[x.category]}:{},...x.extraTooltipRows&&x.extraTooltipRows.length>0?{extraTooltipRows:x.extraTooltipRows}:{}});});let F=H>(v-b)/2+b,O=e.filter(J=>J.end>J.start&&J.start<k.end&&J.end>k.start).map(J=>({label:J.label,color:J.color??r??Uo(J.type),metadata:J.metadata}));V.push({label:O.length>1?`${O.length} scheduled commands`:k.label,value:0,color:k.color??r??Uo(k.type),type:"event"});let U=V.length>1?V[0]?.chartY??V[0]?.value:void 0;c.show({xValue:Y,series:V,x:H,y:typeof U=="number"&&d?d(U):(l??0)/2,position:F?"left":"right",isEvent:true,eventMetadata:k.metadata,eventItems:O});},[s,d,l,c,u,m,p,g,r,b,v,e]),C=_e.useCallback(()=>{a(null),c?.hide();},[c]);if(!o)return console.warn("ChartEventSpans must be used within a ChartContainer"),null;let{xScale:T,height:w}=o,N=Ke.top,P=w-Ke.bottom-N,E=e.filter(D=>D.end>D.start);return E.length===0?null:jsxRuntime.jsx("g",{className:"chart-event-spans","data-testid":"chart-event-spans",children:E.map((D,k)=>{let A=D.start<f?f:D.start,M=D.end>h?h:D.end;if(A>=h||M<=f)return null;let H=T(A),V=T(M)-H;if(V<=0)return null;let F=D.color??r??Uo(D.type);return jsxRuntime.jsx("rect",{x:H,y:N,width:V,height:P,fill:F,fillOpacity:n===k?Math.min((t??.25)*1.8,1):t??.25,pointerEvents:"all",style:{cursor:"pointer"},onMouseMove:O=>y(O,D,k),onMouseLeave:C},`${D.start.getTime()}-${D.end.getTime()}-${k}`)})})}var yh=_e.createContext(false);function Sp({children:e}){return jsxRuntime.jsx(yh.Provider,{value:true,children:e})}function Zn(e){let t=_e.useContext(yh),[r,o]=_e.useState(false),[n,a]=_e.useState(null),i=_e.useRef(null),s=_e.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(h=>h&&h.width===g&&h.height===f?h:{width:g,height:f});});m.observe(u),i.current=m;},[]);_e.useEffect(()=>()=>i.current?.disconnect(),[]);let d=_e.useCallback(()=>{o(false),a(null);},[]),l=t?null:jsxRuntime.jsx(te,{variant:"icon",size:"sm",icon:"ArrowsOutSimple","aria-label":`Expand ${e} chart`,onPress:()=>o(true)}),c=_e.useCallback(u=>r&&!t?jsxRuntime.jsx(fr,{isOpen:true,onClose:d,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,d,e,s]);return {isExpanded:r,action:l,expandedSize:n,present:c}}var _n=({data:e,color:t="var(--color-viz-default)",strokeWidth:r=3,strokeDasharray:o,categoryColors:n={},maxGapMs:a,animate:i=true})=>{let{xScale:s,yScale:d,animationSettings:l,entrance:c}=qn(),[u]=_e__namespace.default.useState(()=>c?.played!==true),m=i&&u,p=d.range(),g=Object.keys(n).length>0,f=w=>w.category?n[w.category]??t:t,h=w=>w.chartYValue??w.yValue,b=e.length===1?e[0]:void 0,v=a!=null?Dl(e,a):e,y=i?void 0:"non-scaling-stroke",C=b?jsxRuntime.jsx("circle",{cx:s(b.xValue),cy:d(h(b)),r,fill:g?f(b):t}):g?e.slice(0,-1).map((w,N)=>{let R=e[N+1];return a!=null&&a>0&&R.xValue.getTime()-w.xValue.getTime()>a?null:jsxRuntime.jsx(shape.LinePath,{data:[w,R],x:P=>s(P.xValue),y:P=>d(h(P)),stroke:f(w),strokeWidth:r,strokeDasharray:o,strokeLinecap:"round",vectorEffect:y,curve:curve.curveLinear},`${w.xValue.getTime()}-${R.xValue.getTime()}`)}):jsxRuntime.jsx(shape.LinePath,{data:v,x:w=>w?s(w.xValue):0,y:w=>w?d(h(w)):0,defined:w=>w!=null,stroke:t,strokeWidth:r,strokeDasharray:o,strokeLinecap:"round",vectorEffect:y,curve:curve.curveLinear}),T={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:l.duration,ease:l.ease},style:T,children:C}):jsxRuntime.jsx("g",{style:T,children:C})};var Th=e=>e.type===vn||e.type===_n||e.type===Il,d1=e=>e.type===Wl||e.type===Ul,kh=280,u1=d3Array.bisector(e=>e.xValue).left,p1=()=>jsxRuntime.jsx("div",{className:"flex h-full items-center justify-center",children:jsxRuntime.jsx("p",{className:"text-text-secondary",children:"No data available"})}),m1=()=>jsxRuntime.jsxs("div",{className:"flex h-full flex-col gap-4 p-4",children:[jsxRuntime.jsx(j,{className:"h-full w-full"}),jsxRuntime.jsxs("div",{className:"flex gap-4",children:[jsxRuntime.jsx(j,{className:"h-4 w-24"}),jsxRuntime.jsx(j,{className:"h-4 w-24"})]})]}),f1=({parentWidth:e,parentHeight:t,yFormatter:r={type:"number"},yDomain:o,referenceLines:n,isLoading:a=false,enableZoom:i=false,enableBrush:s=false,brushHeight:d=60,onZoomChange:l,zoomDomain:c,hiddenSeriesLabels:u,onHiddenSeriesChange:m,hideBottomBar:p=false,headerActions:g,headerControls:f,title:h,children:b})=>{let v=u!==void 0,y=c!==void 0,[C,T]=_e.useState(null),[w,N]=_e.useState(null),R=y?c:w,[P,E]=_e.useState(()=>new Set),D=v?u:P,k=_e.useRef(null),A=_e.useId(),M=_e.useRef(0),H=_e.useRef(""),Y=_e.useRef(null),{colorMode:V}=Qt(),F=_e.useMemo(()=>Oo(),[V]),X=_e.useMemo(()=>Pi(),[V]),{datasets:O,seriesMetadata:U,categoryInfo:J,categoryColors:G,categoryLabels:B,seriesTypes:S}=_e.useMemo(()=>{let fe=_e.Children.toArray(b).filter(Ve=>_e.isValidElement(Ve)&&Th(Ve)),Be=fe.filter(Ve=>Ve.props.data).length,Pe=[],He=[],tt=[],mt=null,Fe=null;fe.forEach((Ve,yt)=>{let De=Ve.props;if(!De.data)return;Pe.push(De.data);let Bo=("color"in De&&De.color?De.color:void 0)||(Be===1?X:F[yt%F.length]),Vo=Ve.type===vn;He.push({label:"label"in De&&De.label||`Series ${Pe.length}`,color:Bo,...Vo&&"baseline"in De&&De.baseline!==void 0?{baseline:De.baseline,tooltipRange:"tooltipRange"in De&&De.tooltipRange||false}:{}});let In=Vo?"area":Ve.type===_n?"line":"bar";tt.push(In),"categoryColors"in De&&De.categoryColors&&(mt=De.categoryColors),"categoryLabels"in De&&De.categoryLabels&&(Fe=De.categoryLabels);});let dt=null;if(mt){let Ve=new Set;Pe.forEach(yt=>{yt.forEach(De=>{De.category&&Ve.add(De.category);});}),dt=Array.from(Ve).map(yt=>({label:Fe?.[yt]||yt,color:mt[yt]||"#6b7280"}));}return {datasets:Pe,seriesMetadata:He,categoryInfo:dt,categoryColors:mt,categoryLabels:Fe,seriesTypes:tt}},[b,X,F,V]),x=Zn(h),L=x.expandedSize?.width??e,I=x.expandedSize?.height??t,ne=!p?x.action:null,ae=g||ne?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[g,ne]}):void 0,{headerRef:$,headerHeight:ie}=Ga(!!ae,!!f),Ie=p?0:60,ue=s?d+8:0,ge=I-ie-Ie-ue,de=Math.max(100,ge),pe=_e.useCallback(Q=>Q?D.has(Q):false,[D]),Te=_e.useMemo(()=>U.map((Q,fe)=>pe(Q.label)?null:fe).filter(Q=>Q!==null),[U,pe]),Qe=_e.useMemo(()=>Te.map(Q=>O[Q]).filter(Q=>!!Q),[O,Te]),Ze=_e.useMemo(()=>Te.map(Q=>U[Q]).filter(Q=>!!Q),[U,Te]),tr=_e.useMemo(()=>Te.map(Q=>S[Q]).filter(Q=>!!Q),[S,Te]),kt=tr.findIndex(Q=>Q==="bar"),rr=kt!==-1,qt=_e.useCallback((Q,fe)=>{let Be=Q.has(fe);if(!Be&&U.reduce((tt,mt)=>Q.has(mt.label)||mt.label===fe?tt:tt+1,0)<1)return Q;let Pe=new Set(Q);return Be?Pe.delete(fe):Pe.add(fe),Pe},[U]),ct=_e.useCallback(Q=>{if(v){let fe=u;if(!fe.has(Q)&&U.reduce((He,tt)=>fe.has(tt.label)||tt.label===Q?He:He+1,0)<1){T(null);return}m?.(Pe=>qt(Pe,Q));}else E(fe=>qt(fe,Q));T(null);},[v,u,m,U,qt]),Vt=_e.useMemo(()=>U.map(Q=>Q.label).join(""),[U]),ee=_e.useRef(Vt);_e.useEffect(()=>{ee.current!==Vt&&(ee.current=Vt,v||E(Q=>Q.size===0?Q:new Set));},[Vt,v]);let Me=_e.useMemo(()=>Qe.flat(),[Qe]),We=_e.useMemo(()=>{if(Me.length===0)return null;let Q=[...Me].sort((fe,Be)=>fe.xValue.getTime()-Be.xValue.getTime());return [Q[0].xValue,Q[Q.length-1].xValue]},[Me]),Re=R||We,se=_e.useCallback(Q=>{y?l?.(Q):N(Q);},[y,l]),W=_e.useMemo(()=>Re?O.map(fe=>fe.filter(Be=>Be.xValue>=Re[0]&&Be.xValue<=Re[1])):O,[O,Re]),K=_e.useMemo(()=>Te.map(Q=>W[Q]??[]),[Te,W]);_e.useEffect(()=>{l&&l(R);},[R,l]);let ce=_e.useMemo(()=>Te.flatMap(Q=>W[Q]??[]),[W,Te]),oe=_e.useMemo(()=>Ji(ce,de,r,o),[ce,de,r,o]),ye=_e.useRef(JSON.stringify(r)),ze=_e.useRef(null),_=_e.useMemo(()=>{let[Q,fe]=oe.domain(),Be=Math.max(Math.abs(Q),Math.abs(fe)),Pe=JSON.stringify(r);if(Pe!==ye.current&&(ye.current=Pe,ze.current=null),ze.current!==null)return ze.current;if(Be===0)return $a(r,0);let He=$a(r,Be);return ze.current=He,He},[oe,r]),be=_e.useMemo(()=>{let Q=de-Ke.top-Ke.bottom;return ei(Q)},[de]),Z=_e.useMemo(()=>{let Q=Ar(_),fe=Q.tickFormat||Q.format,Pe=oe.ticks(be).map(mt=>fe(mt)),He=Cn(Pe,12,"system-ui"),tt=Math.ceil(He)+12;return {...Ke,left:Math.max(tt,30),right:8}},[oe,_,be]),Se=_e.useMemo(()=>Re?scale.scaleTime({domain:Re,range:[Z.left,L-Z.right]}):pp(Me,L),[Re,Me,L,Z]),mo=_e.useCallback(Q=>{if(!We)return;let{scaleX:fe,translateX:Be}=Q,Pe=L-Z.left-Z.right,[He,tt]=We,mt=tt.getTime()-He.getTime();if(mt<=0){se(null);return}let Fe=-Be,dt=Fe+Pe,Ve=Pe*fe/mt,yt=Fe/Ve,De=dt/Ve,Fo=new Date(He.getTime()+yt),Bo=new Date(He.getTime()+De),Vo=Math.abs(Fo.getTime()-He.getTime()),In=Math.abs(Bo.getTime()-tt.getTime()),Ks=mt*.02;Vo<Ks&&In<Ks?se(null):se([Fo,Bo]);},[We,L,Z,se]),La=_e.useCallback(Q=>{let{left:fe}=k.current?.getBoundingClientRect()||{left:0},Be=Q.clientX-fe;if(Q.timeStamp-(M.current||0)<16)return;M.current=Q.timeStamp;let Pe=Se.invert(Be),He=K.map((Fe,dt)=>{if(!Fe||Fe.length===0)return null;let Ve=u1(Fe,Pe,1);if(Ve===0)return {point:Fe[0],index:0,datasetIndex:dt};if(Ve>=Fe.length)return {point:Fe[Fe.length-1],index:Fe.length-1,datasetIndex:dt};let yt=Fe[Ve-1],De=Fe[Ve];if(!yt||!De)return null;let Fo=Math.abs(yt.xValue.getTime()-Pe.getTime()),Bo=Math.abs(De.xValue.getTime()-Pe.getTime()),Vo=Fo<Bo;return {point:Vo?yt:De,index:Vo?Ve-1:Ve,datasetIndex:dt}}).filter(Fe=>Fe!==null&&Ze[Fe.datasetIndex]!==void 0).map(({point:Fe,index:dt,datasetIndex:Ve})=>({label:Ze[Ve].label,value:Fe.yValue,baselineValue:Bl(Ze[Ve],Fe,dt),color:Ze[Ve].color,point:Fe,type:tr[Ve]}));if(He.length===0){T(null);return}let tt=Se(He[0].point.xValue),mt=tt>(L-Z.right-Z.left)/2+Z.left;T({xValue:He[0].point.xValue,series:He.map(({label:Fe,value:dt,baselineValue:Ve,color:yt,point:De,type:Fo})=>({label:Fe,value:dt,...Ve!==void 0?{baselineValue:Ve}:{},chartY:De.chartYValue??dt,showMarker:De.showTooltipMarker??true,color:yt,type:Fo,category:De.category,categoryColor:De.category&&G?G[De.category]:void 0,...De.extraTooltipRows&&De.extraTooltipRows.length>0?{extraTooltipRows:De.extraTooltipRows}:{}})),x:tt,y:oe(He[0].point.chartYValue??He[0].value),position:mt?"left":"right"});},[K,Ze,tr,Se,oe,L,G,Z]),Io=()=>{T(null);},C0=_e.useCallback(()=>{se(null),Y.current&&Y.current.reset();},[se]),S0=_e.useCallback(Q=>{let fe={scaleX:1,scaleY:1,translateX:0,translateY:0,skewX:0,skewY:0};if(!Q||!We)return fe;let[Be,Pe]=We,He=Pe.getTime()-Be.getTime();if(He<=0)return fe;let[tt,mt]=Q,Fe=mt.getTime()-tt.getTime();if(Fe<=0)return fe;let dt=He/Fe,Ve=L-Z.left-Z.right,yt=tt.getTime()-Be.getTime();return {scaleX:dt,scaleY:1,translateX:-(yt/He)*Ve*dt,translateY:0,skewX:0,skewY:0}},[We,L,Z]),Us=_e.useCallback(Q=>{if(!(Y.current&&We))return;let[fe,Be]=We,Pe=Be.getTime()-fe.getTime();if(Pe<=0){Y.current.reset();return}if(!Q){Y.current.reset();return}let[He,tt]=Q,mt=tt.getTime()-He.getTime();if(mt<=0){Y.current.reset();return}let Fe=Pe/mt,dt=L-Z.left-Z.right,yt=-((He.getTime()-fe.getTime())/Pe)*dt*Fe;Y.current.setTransformMatrix({scaleX:Fe,scaleY:1,translateX:yt,translateY:0,skewX:0,skewY:0});},[We,L,Z]),w0=_e.useCallback(Q=>{se(Q),Us(Q);},[se,Us]);_e.useEffect(()=>{y&&Us(c??null);},[y,c,Us]);let N0=Ll(),T0={width:L,height:de,xScale:Se,yScale:oe,yFormatter:_,animationSettings:Ml,entrance:N0,tooltip:{data:C,show:T,hide:()=>T(null)},datasets:K,seriesMetadata:Ze,seriesTypes:tr,categoryColors:G||void 0,categoryLabels:B||void 0},k0=_e.Children.toArray(b),cf=0,df=[],uf=[],Ad=[];k0.forEach(Q=>{if(!_e.isValidElement(Q)){Ad.push(Q);return}if(d1(Q))uf.push(Q);else if(Th(Q)){let fe=cf;cf++;let Be=Q.props,Pe=U[fe]?.label;if(pe(Pe))return;df.push(_e__namespace.default.cloneElement(Q,{...Be,data:W[fe]||Be.data,color:U[fe]?.color}));}else Ad.push(Q);});let P0=Te.length,R0=(J||U).map(Q=>{let fe=!J&&pe(Q.label);return {category:Q.label,fill:Q.color,isHidden:fe,isDisabled:!J&&!fe&&P0<=1}}),E0=typeof r=="object"&&r!==null&&typeof r.type=="string",M0=Hl({datasets:Qe,metadata:{xLabel:"Date",yLabel:"Value",seriesLabels:Ze.map(Q=>Q.label),timestamp:true,...E0?{yFormat:r}:{}},svgRef:k}),Id=jsxRuntime.jsx(Wa,{title:h,controls:f,actions:ae,containerRef:$,marginRight:Z.right});if(a)return x.present(jsxRuntime.jsxs("div",{className:"relative flex h-full flex-col",children:[Id,jsxRuntime.jsx(m1,{})]}));if(O.length===0)return x.present(jsxRuntime.jsxs("div",{className:"relative flex h-full flex-col",children:[Id,jsxRuntime.jsx(p1,{})]}));let pf=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("title",{children:h}),jsxRuntime.jsx("g",{children:oe.ticks(be).map(Q=>{let fe=Math.abs(Q)<Number.EPSILON;return jsxRuntime.jsx(shape.Line,{from:{x:Z.left,y:oe(Q)},to:{x:L-Z.right,y:oe(Q)},stroke:fe?"var(--color-border-default)":"var(--color-border-muted)",strokeWidth:fe?1.5:1},`grid-line-${Q}`)})}),jsxRuntime.jsx("defs",{children:jsxRuntime.jsx("clipPath",{id:A,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(#${A})`,children:df}),Ad,n&&n.length>0&&jsxRuntime.jsx("g",{children:n.map((Q,fe)=>{let Be=oe(Q.value),Pe=Q.color??"var(--color-error-base)";return jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx(shape.Line,{from:{x:Z.left,y:Be},to:{x:L-Z.right,y:Be},stroke:Pe,strokeWidth:1.5,strokeDasharray:"6 4"}),Q.label&&jsxRuntime.jsx("text",{x:L-Z.right-4,y:Be-4,textAnchor:"end",fontSize:11,fill:Pe,children:Q.label})]},`ref-line-${fe}`)})}),jsxRuntime.jsx(Xr.Bottom,{top:de-Z.bottom,scale:Se,width:L-Z.left-Z.right}),jsxRuntime.jsx(Xr.Left,{left:Z.left,scale:oe,yFormatter:_,height:de-Z.top-Z.bottom}),C&&!C.isEvent&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[rr?(()=>{let Q=Qe[kt]??[];if(Q.length===0)return null;let fe=[...Q].sort((In,Ks)=>In.xValue.getTime()-Ks.xValue.getTime()),Be=fe.findIndex(In=>In.xValue.getTime()===C.xValue.getTime()),Pe=fe[Be+1],He=fe.length>1&&Pe?Pe.xValue.getTime()-C.xValue.getTime():15*6e4,tt=Math.abs(Se(new Date(C.xValue.getTime()+He))-Se(C.xValue)),Fe=Se(C.xValue)-tt/2,dt=oe.range(),[Ve,yt]=Se.range(),De=Math.min(Ve,yt),Fo=Math.max(Ve,yt),Bo=Math.max(Fe,De),Vo=Math.max(0,Math.min(Fe+tt,Fo)-Bo);return jsxRuntime.jsx("rect",{x:Bo,y:dt[1],width:Vo,height:dt[0]-dt[1],className:"fill-background-muted",opacity:.5,pointerEvents:"none",style:{transition:"all 100ms ease-out"}})})():null,C.series.filter(Q=>Q.type!=="bar"&&Q.showMarker!==false).map(Q=>jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("circle",{cx:Se(C.xValue),cy:oe(Q.chartY??Q.value),r:8,fill:"white",stroke:Q.color,strokeWidth:2,style:{transition:"all 100ms ease-out"}}),jsxRuntime.jsx("circle",{cx:Se(C.xValue),cy:oe(Q.chartY??Q.value),r:4,fill:Q.color,style:{transition:"all 100ms ease-out"}})]},`highlight-${Q.label}`))]}),jsxRuntime.jsx("rect",{x:Z.left,y:Z.top,width:L-Z.left-Z.right,height:de-Z.top-Z.bottom,fill:"transparent",style:{cursor:i?"grab":"crosshair",touchAction:"none"},onMouseMove:La,onMouseLeave:Io}),uf]});return x.present(jsxRuntime.jsx("div",{className:"relative flex h-full flex-col",children:jsxRuntime.jsxs(Jr.Provider,{value:T0,children:[Id,i?jsxRuntime.jsx(zoom.Zoom,{initialTransformMatrix:S0(R),width:L,height:de,scaleXMin:1,scaleXMax:20,scaleYMin:1,scaleYMax:1,constrain:Q=>{let{scaleX:fe,translateX:Be}=Q,Pe=Math.max(1,Math.min(20,fe)),He=1,tt=L-Z.left-Z.right,mt=0,Fe=tt*(1-Pe),dt=Math.max(Fe,Math.min(mt,Be));return {...Q,scaleX:Pe,scaleY:He,translateX:dt,translateY:0}},children:Q=>{if(Y.current=Q,Q.transformMatrix){let{scaleX:fe,translateX:Be}=Q.transformMatrix,Pe=`${fe.toFixed(4)}-${Be.toFixed(2)}`;Pe!==H.current&&(H.current=Pe,setTimeout(()=>{mo(Q.transformMatrix);},0));}return jsxRuntime.jsx("svg",{width:L,height:de,className:"overflow-visible",ref:fe=>{k.current=fe,Q.containerRef.current!==fe&&(Q.containerRef.current=fe);},role:"img","aria-label":h,style:{cursor:Q.isDragging?"grabbing":"grab",touchAction:"none"},onMouseDown:Q.dragStart,onMouseMove:Q.dragMove,onMouseUp:Q.dragEnd,onMouseLeave:()=>{Q.isDragging&&Q.dragEnd();},onTouchStart:Q.dragStart,onTouchMove:Q.dragMove,onTouchEnd:Q.dragEnd,children:pf})}},`zoom-${Math.round(L)}x${Math.round(de)}`):jsxRuntime.jsx("svg",{width:L,height:de,className:"overflow-visible",ref:k,role:"img","aria-label":h,children:pf}),jsxRuntime.jsx(Co,{data:C,formatter:_}),s&&We&&jsxRuntime.jsx(vp,{data:Qe,seriesMetadata:Ze,width:L,height:d,onBrushChange:w0,brushRegion:R,margin:Z,...o?{yDomain:o}:{}}),!p&&jsxRuntime.jsx(ri,{onExport:M0,items:R0,marginLeft:0,marginRight:Z.right,isZoomed:R!==null,onResetZoom:C0,onLegendItemToggle:J?void 0:ct})]})}))},Ph=responsive.withParentSize(f1);var v1=e=>e.toLocaleString(),C1=e=>`${Math.round(e*100)}%`,Lh=({data:e,width:t=800,height:r=400,padding:o=0,barGap:n=30,formatValue:a=v1,formatPercentage:i=C1,color:s,showScale:d=true,showOverallConversion:l=true,overallConversionLabel:c="Overall Conversion:",activeStageId:u,onStageClick:m,onStageHover:p,className:g,style:f,"aria-label":h="Funnel chart"})=>{let[b,v]=_e.useState(null),[y,C]=_e.useState(t),T=_e.useRef(null),w=u??b,N=_e.useId(),R=s||"var(--color-viz-default)";_e.useEffect(()=>{if(!T.current)return;let M=new ResizeObserver(H=>{for(let Y of H)C(Y.contentRect.width);});return M.observe(T.current),()=>{M.disconnect();}},[]);let{layout:P,overallConversion:E}=_e.useMemo(()=>{if(e.length===0)return {layout:[],overallConversion:0};let M=e[0].value,H=l?60:0,Y=r-o*2-H,V=(e.length-1)*n,F=(Y-V)/e.length,X=e.map((U,J)=>{let G=o+H+J*(F+n),B=M===0?0:U.value/M,S=B,x=J===0?null:e[J-1].value,L=x==null||x===0?0:1-U.value/x;return {stage:U,index:J,y:G,barHeight:F,widthPercent:B,conversionRate:S,dropOff:L}}),O=M===0?0:e[e.length-1].value/M;return {layout:X,overallConversion:O,maxValue:M}},[e,y,r,o,n,d,l]);if(e.length===0)return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex h-full min-h-[280px] w-full items-center justify-center rounded-lg border border-dashed border-border-default bg-background-surface text-sm font-medium text-text-secondary",g),style:{width:t,height:r,...f},children:"No funnel data available"});let D=d?60:0,k=o+D,A=y-o*2-D;return jsxRuntime.jsx("div",{ref:T,className:tailwindMerge.twMerge("relative w-full overflow-hidden rounded-lg bg-background-surface",g),style:{height:r,...f},"aria-label":h,role:"img",children:jsxRuntime.jsxs("svg",{width:"100%",height:r,className:"relative",children:[jsxRuntime.jsxs("defs",{children:[jsxRuntime.jsx(gradient.LinearGradient,{id:`${N}-bar`,from:R,to:R,toOpacity:.85}),jsxRuntime.jsx(gradient.LinearGradient,{id:`${N}-bg`,from:R,to:R,fromOpacity:.01,toOpacity:.15,x1:"0",y1:"0",x2:"1",y2:"0"})]}),l&&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:c})," ",i(E)]}),d&&jsxRuntime.jsx("g",{children:P.map(M=>{let H=M.y+M.barHeight/2;return jsxRuntime.jsx("text",{x:o+D-12,y:H,textAnchor:"end",dominantBaseline:"middle",className:"fill-text-secondary text-xs",children:i(M.conversionRate)},M.stage.id)})}),P.map(M=>{let H=w===M.stage.id,Y=A*M.widthPercent;return jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("rect",{x:k,y:M.y,width:A,height:M.barHeight,fill:`url(#${N}-bg)`,rx:4}),jsxRuntime.jsx(framerMotion.motion.rect,{x:k,y:M.y,width:Y,height:M.barHeight,fill:`url(#${N}-bar)`,rx:4,initial:{width:0},animate:{width:Y},transition:{duration:.6,delay:M.index*.1,ease:"easeOut"},opacity:H||w==null?1:.5,style:{cursor:m||p?"pointer":"default",transition:"opacity 150ms ease"},onMouseEnter:()=>{v(M.stage.id),p?.(M.stage);},onMouseLeave:()=>{v(null),p?.(null);},onClick:()=>m?.(M.stage)}),jsxRuntime.jsx("rect",{x:k+10,y:M.y+M.barHeight/2-10,width:70,height:20,className:"fill-background-surface stroke-border-default",strokeWidth:1,rx:4,style:{pointerEvents:"none"}}),jsxRuntime.jsx("text",{x:k+16,y:M.y+M.barHeight/2+4,className:"fill-text-primary text-xs font-semibold",style:{pointerEvents:"none"},children:a(M.stage.value)}),jsxRuntime.jsxs("text",{x:k,y:M.y-8,className:"fill-text-secondary text-xs",style:{pointerEvents:"none"},children:[jsxRuntime.jsx("tspan",{children:M.index+1})," ",M.stage.label]}),M.stage.secondaryValue&&jsxRuntime.jsx("text",{x:k+16,y:M.y-24,className:"fill-text-secondary text-xs",style:{pointerEvents:"none"},children:M.stage.secondaryValue}),M.index>0&&M.dropOff>0&&jsxRuntime.jsxs("text",{x:k+A,y:M.y-8,textAnchor:"end",className:"fill-text-secondary text-xs",children:[i(M.dropOff)," drop"]}),M.stage.annotation&&jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("rect",{x:k+Y+8,y:M.y+8,width:60,height:24,rx:3,className:"fill-background-muted"}),jsxRuntime.jsx("text",{x:k+Y+16,y:M.y+20,className:"fill-text-secondary text-xs font-medium",children:M.stage.annotation})]})]},M.stage.id)})]})})};var k1=.005,Ih=320;function Yl(e){return e>0?e:0}function P1(e,t,r){let o=t===0?0:Yl(e.value)/t*100;return `${e.label}: ${r(e.value)}, ${o.toFixed(1)}%`}var Fh=({data:e,width:t,height:r,innerRadiusRatio:o=0,yFormatter:n={type:"number"},showLegend:a=true,showTooltip:i=true,onSliceClick:s,onSliceHover:d,className:l,style:c,"aria-label":u})=>{let[m,p]=_e.useState(null),[g,f]=_e.useState(null),[h,b]=_e.useState(null),[v,y]=_e.useState(t??600),[C,T]=_e.useState(r??300),w=_e.useRef(null);_e.useEffect(()=>{if(t!==void 0&&r!==void 0){y(t),T(r);return}if(!w.current)return;let V=new ResizeObserver(F=>{for(let X of F)t===void 0&&y(X.contentRect.width),r===void 0&&T(X.contentRect.height);});return V.observe(w.current),t===void 0&&y(w.current.offsetWidth),r===void 0&&T(w.current.offsetHeight||300),()=>{V.disconnect();}},[t,r]);let N=_e.useMemo(()=>e.reduce((V,F)=>V+Yl(F.value),0),[e]),R=_e.useMemo(()=>{let V=Ri(e.map(F=>F.label));return e.map(F=>({...F,color:F.color||V[F.label]||"var(--color-viz-default)"}))},[e]),P=Ar(n),E=s!==void 0,D=a&&v>=Ih,k=D?Math.max(v*.45,Ih*.45):v,M=Math.max(0,Math.min(k,C)-8)/2,H=M*Math.min(Math.max(o,0),.95);if(e.length===0||N===0)return jsxRuntime.jsx("div",{ref:w,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",l),style:r!==void 0?{height:r,...c}:c,children:"No data available"});let Y=(V,F,X)=>{if(p(V),d?.(F,V),V!==null&&F&&X){let O=k/2+X[0],U=C/2+X[1];b(F.label),f({xValue:new Date,series:[{label:"Value",value:F.value,color:F.color||"var(--color-viz-default)"}],x:O,y:U,position:O>v/2?"left":"right"});}else f(null),b(null);};return jsxRuntime.jsxs("div",{ref:w,className:tailwindMerge.twMerge("relative flex h-full w-full items-center gap-4 rounded-lg bg-background-surface",l),style:r!==void 0?{height:r,...c}:c,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:V=>Yl(V.value),pieSort:null,pieSortValues:null,outerRadius:M,innerRadius:H,padAngle:k1,children:V=>V.arcs.map((F,X)=>{let O=m===X||m===null,U=V.path.centroid(F);return jsxRuntime.jsx("path",{d:V.path(F)??void 0,fill:F.data.color,opacity:O?1:.5,style:{cursor:s||d?"pointer":"default",transition:"opacity 150ms ease-out"},onMouseEnter:()=>Y(X,F.data,U),onMouseLeave:()=>Y(null,null),onClick:()=>s?.(F.data,X),...E?{role:"button",tabIndex:0,"aria-label":P1(F.data,N,P.format),onFocus:()=>Y(X,F.data,U),onBlur:()=>Y(null,null),onKeyDown:J=>{J.key!=="Enter"&&J.key!==" "||(J.preventDefault(),s?.(F.data,X));}}:{}},F.data.label)})})})}),D?jsxRuntime.jsx("ul",{className:"flex min-w-0 flex-col gap-1 overflow-y-auto py-2 text-xs",children:R.map((V,F)=>jsxRuntime.jsxs("li",{className:"flex items-center gap-2",style:{opacity:m===F||m===null?1:.5},onMouseEnter:()=>Y(F,V),onMouseLeave:()=>Y(null,null),children:[jsxRuntime.jsx("span",{className:"h-3 w-3 flex-shrink-0 rounded-sm",style:{backgroundColor:V.color}}),jsxRuntime.jsx("span",{className:"truncate text-text-primary",title:V.label,children:V.label}),jsxRuntime.jsxs("span",{className:"ml-auto flex-shrink-0 tabular-nums text-text-secondary",children:[P.format(V.value)," (",(Yl(V.value)/N*100).toFixed(1),"%)"]})]},V.label))}):null,i&&jsxRuntime.jsx(Co,{data:g,formatter:n,label:h??void 0})]})};function Bh(){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 E1=d3Array.bisector(e=>e.xValue).left,M1=(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 Vh(e){let{mouseX:t,datasets:r,seriesMetadata:o,seriesTypes:n,xScale:a,yScale:i,plotLeft:s,plotRight:d}=e,l=a.invert(t),c=r.map((p,g)=>{if(!p||p.length===0)return null;let f=E1(p,l,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 h=p[f-1],b=p[f];if(!h||!b)return null;let v=Math.abs(h.xValue.getTime()-l.getTime()),y=Math.abs(b.xValue.getTime()-l.getTime()),C=v<y;return {point:C?h: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:M1(o[f],p,g),color:o[f].color,point:p,type:n[f]}));if(c.length===0)return null;let u=a(c[0].point.xValue),m=u>(s+d)/2;return {xValue:c[0].point.xValue,series:c.map(({label:p,value:g,baselineValue:f,color:h,point:b,type:v})=>({label:p,value:g,...f!==void 0?{baselineValue:f}:{},chartY:b.chartYValue??g,showMarker:b.showTooltipMarker??true,color:h,type:v,...b.category!==void 0?{category:b.category}:{},...b.extraTooltipRows&&b.extraTooltipRows.length>0?{extraTooltipRows:b.extraTooltipRows}:{}})),x:u,y:i(c[0].point.chartYValue??c[0].value),position:m?"left":"right"}}var Hh=e=>e instanceof Date&&!Number.isNaN(e.getTime()),I1=160;function Jl(e,t,r){let[o,n]=_e.useState(null);_e.useImperativeHandle(r,()=>({setPreview:n}),[]);let[a,i]=e.range(),s=_e.useMemo(()=>o?d3Scale.scaleTime().domain([new Date(o[0]),new Date(o[1])]).range([a,i]):e,[o,e,a,i]),d=s.domain(),l=d[0],c=d[d.length-1],u=Hh(l)&&Hh(c),m=t<400,p=Math.max(2,Math.min(8,Math.floor(t/(m?70:110)))),g=_e.useMemo(()=>{if(!u)return [];let f=i-a;if(f<=0)return s.ticks(p);let[h,b]=s.domain(),v=h.getTime(),y=b.getTime(),C=(y-v)/f,T=Math.min(I1,f),w=T*C,N=d3Scale.scaleTime().domain([new Date(v-w),new Date(y+w)]).range([a-T,i+T]),R=d3Time.timeTickInterval(h,b,p);if(R)return N.ticks(R);let P=Math.max(2,Math.round(p*(f+2*T)/f));return N.ticks(P)},[s,p,u,a,i]);return {activeScale:s,ticks:g,start:l,end:c,valid:u,compact:m,rangeStart:a,rangeEnd:i}}var O1=6,Gh=20,Rp=_e.forwardRef(({top:e,scale:t,width:r},o)=>{let{activeScale:n,ticks:a,start:i,end:s,valid:d,compact:l,rangeStart:c,rangeEnd:u}=Jl(t,r,o),m=a.length>=2?a[1].getTime()-a[0].getTime():s.getTime()-i.getTime(),p=_e.useMemo(()=>d?fg(m,{compact:l}):()=>"",[m,l,d]),g=_e.useId(),f=Math.min(c,u),h=Math.abs(u-c);return jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("line",{x1:c,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:h,height:Gh+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:O1,stroke:"var(--color-border-muted)",strokeWidth:1}),jsxRuntime.jsx("text",{x:0,y:Gh,textAnchor:"middle",fontSize:12,fill:"var(--color-text-secondary)",children:p(b)})]},b.getTime()))})]})]})});Rp.displayName="LiveTimeAxisBottom";var Ep=_e.forwardRef(({scale:e,width:t,top:r,bottom:o},n)=>{let{activeScale:a,ticks:i,rangeStart:s,rangeEnd:d}=Jl(e,t,n),l=_e.useId(),c=Math.min(s,d),u=Math.abs(d-s);return jsxRuntime.jsxs("g",{"aria-hidden":"true",children:[jsxRuntime.jsx("defs",{children:jsxRuntime.jsx("clipPath",{id:l,children:jsxRuntime.jsx("rect",{x:c,y:r,width:u,height:o-r})})}),jsxRuntime.jsx("g",{clipPath:`url(#${l})`,children:i.map(m=>{let p=a(m);return jsxRuntime.jsx("line",{x1:p,x2:p,y1:r,y2:o,stroke:"var(--color-border-muted)",strokeWidth:1},m.getTime())})})]})});Ep.displayName="LiveTimeGridlines";function Xl(e,t,r){let o=e[1]-e[0],n=t/Math.max(1,r)*o;return [e[0]-n,e[1]-n]}function Wh(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 Mp(e,t,r=16,o=800){return t===1?e*r:t===2?e*o:e}var Uh=(e,t,r,o,n)=>{let a=t!==1?Wh(e,r,t):e;return o!==0&&(a=Xl(a,o,n)),a},Kh=(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]},K1=e=>typeof requestAnimationFrame=="function"?requestAnimationFrame(e):setTimeout(()=>e(0),0),Y1=e=>{typeof cancelAnimationFrame=="function"?cancelAnimationFrame(e):clearTimeout(e);};function Yh(e){let{groupRef:t}=e,r=_e.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=_e.useRef(e.onCommit);o.current=e.onCommit;let n=_e.useRef(e.panBoundsMs);n.current=e.panBoundsMs;let a=_e.useRef(e.settleMs??140);a.current=e.settleMs??140;let i=_e.useRef(e.zoomIntent??(k=>k.ctrlKey));i.current=e.zoomIntent??(k=>k.ctrlKey);let s=_e.useRef(e.onGestureStart);s.current=e.onGestureStart;let d=_e.useRef(e.onFramePreview);d.current=e.onFramePreview;let l=_e.useRef(null),c=_e.useRef({scale:1,cursorFrac:.5,panDxPx:0,timer:null}),u=_e.useRef(null),m=_e.useRef(null),p=_e.useRef(false),g=_e.useCallback((k,A,M)=>{m.current={translateX:k,scaleX:A,preview:M},u.current==null&&(u.current=K1(()=>{u.current=null;let H=m.current;H!=null&&(t.current?.setAttribute("transform",`translate(${H.translateX},0) scale(${H.scaleX},1)`),d.current?.(H.preview));}));},[t]),f=_e.useCallback(()=>{u.current!=null&&(Y1(u.current),u.current=null),m.current=null,t.current?.removeAttribute("transform"),d.current?.(null);},[t]),h=_e.useCallback(()=>{p.current||(p.current=true,s.current?.());},[]),b=_e.useCallback(()=>{p.current=false;},[]),v=_e.useCallback(()=>{c.current.timer!=null&&(clearTimeout(c.current.timer),c.current.timer=null);},[]),y=_e.useCallback(()=>{c.current={scale:1,cursorFrac:.5,panDxPx:0,timer:null};},[]),C=_e.useCallback(()=>{let{xDomain:k,plotWidthPx:A}=r.current,{scale:M,cursorFrac:H,panDxPx:Y}=c.current;M===1&&Y===0||o.current(Kh(Uh(k,M,H,Y,A),n.current));},[]),T=_e.useCallback(()=>{c.current.timer!=null&&(v(),C(),y(),f());},[v,C,y,f]),w=_e.useCallback(k=>{T(),k.currentTarget.setPointerCapture?.(k.pointerId),l.current={startX:k.clientX,dxPx:0},h();},[T,h]),N=_e.useCallback(k=>{if(!l.current)return;l.current.dxPx=k.clientX-l.current.startX;let{xDomain:A,plotWidthPx:M}=r.current;g(l.current.dxPx,1,Xl(A,l.current.dxPx,M));},[g]),R=_e.useCallback(k=>{if(!l.current)return;let{dxPx:A}=l.current;l.current=null,f(),b(),A!==0&&o.current(Kh(Xl(r.current.xDomain,A,r.current.plotWidthPx),n.current));},[f,b]),P=_e.useCallback(()=>{l.current&&(l.current=null,f(),b());},[f,b]),E=_e.useRef(null),D=_e.useCallback(k=>{if(E.current?.(),E.current=null,!k)return;let A=M=>{if(l.current)return;let{plotWidthPx:H,plotLeftPx:Y}=r.current,V=Mp(M.deltaY,M.deltaMode),F=Mp(M.deltaX,M.deltaMode),X=i.current(M);if(!X&&F===0)return;if(M.preventDefault(),h(),X){let G=Math.min(1,Math.max(0,(M.clientX-k.getBoundingClientRect().left)/Math.max(1,H)));c.current.scale*=Math.exp(-V/200),c.current.cursorFrac=G;}else c.current.panDxPx-=F;let{scale:O,cursorFrac:U,panDxPx:J}=c.current;g((Y+U*H)*(1-O)+J,O,Uh(r.current.xDomain,O,U,J,H)),v(),c.current.timer=setTimeout(()=>{C(),y(),f(),b();},a.current);};k.addEventListener("wheel",A,{passive:false}),E.current=()=>k.removeEventListener("wheel",A);},[g,f,v,C,y,h,b]);return _e.useEffect(()=>()=>{E.current?.(),E.current=null,f(),c.current.timer!=null&&clearTimeout(c.current.timer);},[f]),{onPointerDown:w,onPointerMove:N,onPointerUp:R,onPointerCancel:P,wheelTargetRef:D,gestureActiveRef:p}}var qh=e=>e.type===vn||e.type===_n,Z1=({children:e,title:t,headerActions:r,headerControls:o,viewport:n,panBounds:a,onViewportChange:i,onPlotWidthChange:s,yFormatter:d={type:"number"},yDomain:l,referenceLines:c,cameraSync:u,parentWidth:m=0,parentHeight:p=0})=>{let[g,f]=_e.useState(null),h=_e.useRef(null),b=_e.useRef(0),v=_e.useId(),y=_e.useRef(null),C=_e.useRef(null),T=_e.useRef(null),{colorMode:w}=Qt(),N=_e.useMemo(()=>Oo(),[w]),R=_e.useMemo(()=>Pi(),[w]),{datasets:P,seriesMetadata:E,seriesTypes:D}=_e.useMemo(()=>{let re=_e.Children.toArray(e).filter(ce=>_e.isValidElement(ce)&&qh(ce)),Re=re.filter(ce=>ce.props.data).length,se=[],W=[],K=[];return re.forEach((ce,oe)=>{let ye=ce.props;if(!ye.data)return;se.push(ye.data);let _=("color"in ye&&ye.color?ye.color:void 0)||(Re===1?R:N[oe%N.length]),be=ce.type===vn;W.push({label:"label"in ye&&ye.label||`Series ${se.length}`,color:_,...be&&"baseline"in ye&&ye.baseline!==void 0?{baseline:ye.baseline,tooltipRange:"tooltipRange"in ye&&ye.tooltipRange||false}:{}}),K.push(be?"area":"line");}),{datasets:se,seriesMetadata:W,seriesTypes:K}},[e,R,N]),k=Zn(t),A=k.expandedSize?.width??m,M=r||k.action?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[r,k.action]}):void 0,{headerRef:H,headerHeight:Y}=Ga(!!M,!!o),V=Math.max(100,(k.expandedSize?.height??p)-Y-60),F=_e.useMemo(()=>[new Date(n.startMs),new Date(n.endMs)],[n.startMs,n.endMs]),X=_e.useMemo(()=>{let re=P.flat(),Re=re.filter(se=>{let W=se.xValue.getTime();return W>=n.startMs&&W<=n.endMs});return Re.length>0?Re:re},[P,n.startMs,n.endMs]),O=_e.useMemo(()=>{let re=Ji(X,V,d,l);if(!l){let[Re,se]=re.domain();se>Re&&re.domain([Re,se+(se-Re)*.05]);}return re},[X,V,d,l]),U=_e.useRef(JSON.stringify(d)),J=_e.useRef(null),G=_e.useMemo(()=>{let[re,Re]=O.domain(),se=Math.max(Math.abs(re),Math.abs(Re)),W=JSON.stringify(d);if(W!==U.current&&(U.current=W,J.current=null),J.current!==null)return J.current;if(se===0)return $a(d,0);let K=$a(d,se);return J.current=K,K},[O,d]),B=_e.useMemo(()=>{let re=V-Ke.top-Ke.bottom;return ei(re)},[V]),S=_e.useMemo(()=>{let re=Ar(G),Re=re.tickFormat||re.format,W=O.ticks(B).map(oe=>Re(oe)),K=Cn(W,12,"system-ui"),ce=Math.ceil(K)+12;return {...Ke,left:Math.max(ce,30)}},[O,G,B]),x=_e.useMemo(()=>scale.scaleTime({domain:F,range:[S.left,A-S.right]}),[F,A,S]),L=_e.useMemo(()=>[n.startMs,n.endMs],[n.startMs,n.endMs]),I=_e.useMemo(()=>a?[a.startMs,a.endMs]:void 0,[a]),q=_e.useCallback(re=>{i({startMs:re[0],endMs:re[1]});},[i]),ne=A-S.left-S.right,ae=_e.useCallback(()=>f(null),[]),$=_e.useRef({}),ie=_e.useRef(u);ie.current=u;let Ie=_e.useCallback(re=>{C.current?.setPreview(re),T.current?.setPreview(re),ie.current?.publish($.current,re);},[]),{onPointerDown:ue,onPointerMove:ge,onPointerUp:de,onPointerCancel:pe,wheelTargetRef:Te,gestureActiveRef:Qe}=Yh({xDomain:L,plotWidthPx:ne,plotLeftPx:S.left,groupRef:y,onCommit:q,onGestureStart:ae,onFramePreview:Ie,...I?{panBoundsMs:I}:{}}),Ze=_e.useRef({startMs:n.startMs,endMs:n.endMs,left:0,width:0});Ze.current={startMs:n.startMs,endMs:n.endMs,left:S.left,width:ne},_e.useEffect(()=>{if(!u)return;let re=()=>{y.current?.removeAttribute("transform"),C.current?.setPreview(null),T.current?.setPreview(null);},Re=W=>{if(Qe.current)return;if(W==null){re();return}let{startMs:K,endMs:ce,left:oe,width:ye}=Ze.current,ze=ce-K,_=W[1]-W[0];if(ze<=0||_<=0||ye<=0)return;let be=ze/_,Z=oe*(1-be)+(K-W[0])*ye/_;y.current?.setAttribute("transform",`translate(${Z},0) scale(${be},1)`),C.current?.setPreview(W),T.current?.setPreview(W);},se=u.subscribe($.current,Re);return ()=>{se(),Qe.current||re();}},[u,Qe]),_e.useEffect(()=>{s?.(Math.max(0,A-S.left-S.right));},[A,S,s]);let tr=_e.useCallback(re=>{if(Qe.current)return;let{left:Re}=h.current?.getBoundingClientRect()||{left:0},se=re.clientX-Re;re.timeStamp-(b.current||0)<16||(b.current=re.timeStamp,f(Vh({mouseX:se,datasets:P,seriesMetadata:E,seriesTypes:D,xScale:x,yScale:O,plotLeft:S.left,plotRight:A-S.right})));},[P,E,D,x,O,A,S,Qe]),kt=_e.useCallback(()=>f(null),[]),rr=Ll(),qt={width:A,height:V,xScale:x,yScale:O,yFormatter:G,animationSettings:Ml,entrance:rr,tooltip:{data:g,show:f,hide:()=>f(null)},datasets:P,seriesMetadata:E,seriesTypes:D},ct=0,Vt=[];_e.Children.toArray(e).forEach(re=>{if(!_e.isValidElement(re)){Vt.push(re);return}if(qh(re)){let Re=ct;ct++;let se=re.props;Vt.push(_e__namespace.default.cloneElement(re,{...se,color:E[Re]?.color,animate:false}));}else Vt.push(re);});let ee=E.map(re=>({category:re.label,fill:re.color})),Me=Hl({datasets:P,metadata:{xLabel:"Date",yLabel:"Value",seriesLabels:E.map(re=>re.label),timestamp:true},svgRef:h}),We=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("title",{children:t}),jsxRuntime.jsx("g",{children:O.ticks(B).map(re=>{let Re=Math.abs(re)<Number.EPSILON;return jsxRuntime.jsx(shape.Line,{from:{x:S.left,y:O(re)},to:{x:A-S.right,y:O(re)},stroke:Re?"var(--color-border-default)":"var(--color-border-muted)",strokeWidth:Re?1.5:1},`grid-line-${re}`)})}),jsxRuntime.jsx(Ep,{ref:T,scale:x,width:A-S.left-S.right,top:O.range()[1],bottom:O.range()[0]}),jsxRuntime.jsx("defs",{children:jsxRuntime.jsx("clipPath",{id:v,children:jsxRuntime.jsx("rect",{x:x.range()[0],y:O.range()[1],width:x.range()[1]-x.range()[0],height:O.range()[0]-O.range()[1]})})}),jsxRuntime.jsx("g",{clipPath:`url(#${v})`,children:jsxRuntime.jsx("g",{"data-camera-plot-group":"",ref:y,children:Vt})}),c&&c.length>0&&jsxRuntime.jsx("g",{children:c.map((re,Re)=>{let se=O(re.value),W=re.color??"var(--color-error-base)";return jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx(shape.Line,{from:{x:S.left,y:se},to:{x:A-S.right,y:se},stroke:W,strokeWidth:1.5,strokeDasharray:"6 4"}),re.label&&jsxRuntime.jsx("text",{x:A-S.right-4,y:se-4,textAnchor:"end",fontSize:11,fill:W,children:re.label})]},`ref-line-${Re}`)})}),jsxRuntime.jsx(Rp,{ref:C,top:V-S.bottom,scale:x,width:A-S.left-S.right}),jsxRuntime.jsx(Xr.Left,{left:S.left,scale:O,yFormatter:G,height:V-S.top-S.bottom}),g&&!g.isEvent&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(shape.Line,{"data-testid":"chart-hover-crosshair",from:{x:x(g.xValue),y:O.range()[1]},to:{x:x(g.xValue),y:O.range()[0]},stroke:"var(--color-text-secondary)",strokeWidth:1,strokeDasharray:"3 3",opacity:.7}),g.series.filter(re=>re.type!=="bar"&&re.showMarker!==false).map(re=>jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("circle",{cx:x(g.xValue),cy:O(re.chartY??re.value),r:8,fill:"white",stroke:re.color,strokeWidth:2,style:{transition:"all 100ms ease-out"}}),jsxRuntime.jsx("circle",{cx:x(g.xValue),cy:O(re.chartY??re.value),r:4,fill:re.color,style:{transition:"all 100ms ease-out"}})]},`highlight-${re.label}`))]}),jsxRuntime.jsx("rect",{"data-camera-surface":"",x:S.left,y:S.top,width:A-S.left-S.right,height:V-S.top-S.bottom,fill:"transparent",style:{cursor:"grab",touchAction:"none"},onMouseMove:tr,onMouseLeave:kt,onPointerDown:ue,onPointerMove:ge,onPointerUp:de,onPointerCancel:pe,ref:Te})]});return k.present(jsxRuntime.jsx("div",{className:"relative flex h-full flex-col",children:jsxRuntime.jsxs(Jr.Provider,{value:qt,children:[jsxRuntime.jsx(Wa,{title:t,controls:o,actions:M,containerRef:H,marginRight:S.right}),jsxRuntime.jsx("svg",{width:A,height:V,className:"overflow-visible",ref:h,role:"img","aria-label":t,children:We}),jsxRuntime.jsx(Co,{data:g,formatter:G}),jsxRuntime.jsx(ri,{onExport:Me,items:ee,marginLeft:0,marginRight:S.right})]})}))},jl=responsive.withParentSize(Z1);function ql(e,t,r,o){if(r.length===0)throw new Error("tierForViewport: resolution ladder is empty");let n=[...r].sort((s,d)=>s.bucketMs-d.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 _1(e,t){return Math.floor(e/t.tileSpanMs)}function Yo(e,t,r){let o=_1(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 $t=(e,t)=>`${e}:${t}`,ra=e=>!!e&&(e.line.length>0||(e.band?.length??0)>0||Object.values(e.lines??{}).some(t=>t.length>0));var Qh={erroredTiles:0};function Ap(e,t){let r=new Map,o=new Map,n=new Map,a=0;for(let m of e){let p=t.get($t(m.tierId,m.index));if(p&&(p.error&&(a+=1),!!p.data)){for(let g of p.data.line)r.set(g.xValue.getTime(),g);for(let g of p.data.band??[])o.set(g.xValue.getTime(),g);for(let[g,f]of Object.entries(p.data.lines??{})){let h=n.get(g);h||(h=new Map,n.set(g,h));for(let b of f)h.set(b.xValue.getTime(),b);}}}let i=(m,p)=>m.xValue.getTime()-p.xValue.getTime(),s=[...r.values()].sort(i),d=[...o.values()].sort(i),l=Object.fromEntries([...n.entries()].map(([m,p])=>[m,[...p.values()].sort(i)])),c,u;for(let m of [s,d,...Object.values(l)]){if(!m.length)continue;let p=m[0].xValue.getTime(),g=m[m.length-1].xValue.getTime();c=Math.min(c??p,p),u=Math.max(u??g,g);}return {line:s,band:d,lines:l,coverage:{earliestMs:c,latestMs:u,erroredTiles:a}}}function $1(e,t,r,o){let n=Yo(e,t,0).filter(a=>o==null||a.startMs<o);return n.length===0?false:n.every(a=>{let i=r.get($t(a.tierId,a.index));return i!=null&&(i.status==="loaded"||i.status==="empty")})}function Zh(e,t,r){return Yo(e,t,0).some(n=>{let a=r.get($t(n.tierId,n.index));return a?.status==="loaded"&&ra(a.data)})}function eR(e,t){if(!ra(e))return false;let r=e.coverage.earliestMs,o=e.coverage.latestMs;return r==null||o==null?false:r<t.endMs&&o>t.startMs}function _h({viewport:e,targetTier:t,ladder:r,store:o,overscanTiles:n,prev:a,prevViewport:i,maxFutureMs:s}){let d=$1(e,t,o,s),l=Yo(e,t,0).filter(p=>s==null||p.startMs<s).map(p=>o.get($t(p.tierId,p.index))),c=l.every(p=>p?.revalidated&&!p.refreshing&&!p.error),u=Zh(e,t,o);if(d&&(!u||a?.isFallback)&&l.some(p=>p?.refreshing||p?.error||p?.revalidated===false)&&a&&a.targetTier.id===t.id&&i?.startMs===e.startMs&&i?.endMs===e.endMs)return a;if(d&&(c||u)){let p=Yo(e,t,n),{line:g,band:f,lines:h,coverage:b}=Ap(p,o);return {line:g,band:f,lines:h,renderTier:t,targetTier:t,isFallback:false,isStale:false,coverage:b}}let m=r.findIndex(p=>p.id===t.id);for(let p=m+1;p<r.length;p++){let g=r[p];if(Zh(e,g,o)){let f=Yo(e,g,n),{line:h,band:b,lines:v,coverage:y}=Ap(f,o);return {line:h,band:b,lines:v,renderTier:g,targetTier:t,isFallback:true,isStale:false,coverage:y}}}if(d){let p=Yo(e,t,n),{line:g,band:f,lines:h,coverage:b}=Ap(p,o);return {line:g,band:f,lines:h,renderTier:t,targetTier:t,isFallback:false,isStale:false,coverage:b}}return a?eR(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:Qh}:{line:[],band:[],lines:{},renderTier:null,targetTier:t,isFallback:false,isStale:false,coverage:Qh}}var Ip=new Map;function $h(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);t.refresh&&n?.data?r.set(o,{...n,refreshing:true,error:void 0,revalidated:false}):(!n||n.status==="error")&&r.set(o,{status:"loading",refreshing:!!t.refresh});}return r}case "cancel":{let r=new Map(e);for(let o of t.ids){let n=r.get(o);n&&r.set(o,{...n,refreshing:false,status:n.data?n.status:"error"});}return r}case "fulfilled":{let r=new Map(e);return r.set(t.id,{status:ra(t.data)?"loaded":"empty",data:t.data,revision:(e.get(t.id)?.revision??0)+1,revalidated:t.refresh||e.get(t.id)?.revalidated}),r}case "failed":{let r=new Map(e),o=e.get(t.id);return r.set(t.id,o?.data?{...o,refreshing:false,error:t.error}:{status:"error",error:t.error}),r}default:return e}}function tx({refs:e,refsKey:t,store:r,tier:o,viewport:n,fetchTile:a,dispatch:i,concurrency:s,maxFutureMs:d,resetKey:l,refreshKey:c,refreshEnabled:u=true,automaticLoads:m=false}){let p=_e.useRef({resetKey:l,refreshKey:c,refreshEnabled:u});_e.useLayoutEffect(()=>{p.current={resetKey:l,refreshKey:c,refreshEnabled:u};},[l,c,u]);let g=_e.useRef(new Map),f=_e.useRef(new Map),h=_e.useRef(0),b=_e.useRef(false),v=_e.useRef(null),y=_e.useRef(new Map),C=_e.useRef({resetKey:l,refreshKey:c,refreshEnabled:u}),T=_e.useRef(`${o.id}:${n.startMs}:${n.endMs}`),[w,N]=_e.useReducer(P=>P+1,0),R=_e.useCallback(()=>{for(let P of g.current.values())P.ac.abort();g.current.clear(),f.current.clear(),v.current=null,b.current=false,y.current.clear();},[]);return _e.useEffect(()=>{let P=`${o.id}:${n.startMs}:${n.endMs}`,E=C.current.resetKey!==l,D=C.current.refreshKey!==c,k=C.current.refreshEnabled&&!u;if(E&&R(),u)(D||b.current)&&!E&&(b.current=false,h.current+=1,v.current={generation:h.current,seen:new Set});else {b.current||(b.current=f.current.size>0||[...g.current.values()].some(X=>X.refresh));let F=[...f.current.keys()];for(let X of F)y.current.set(X,T.current);f.current.clear(),v.current=null;for(let[X,O]of g.current)!O.refresh&&!(k&&O.automatic)||(O.ac.abort(),g.current.delete(X),F.push(X),y.current.set(X,k&&T.current===P?P:O.viewportKey));F.length&&i({type:"cancel",ids:F});}C.current={resetKey:l,refreshKey:u||E?c:C.current.refreshKey,refreshEnabled:u},T.current=P;let A=v.current;if(A){let F=[];for(let X of e){let O=$t(X.tierId,X.index);A.seen.has(O)||d!=null&&X.startMs>=d||(A.seen.add(O),f.current.set(O,A.generation),F.push(O));}F.length&&i({type:"request",ids:F,refresh:true});}let M=new Set(e.map(F=>$t(F.tierId,F.index)));for(let F of f.current.keys())M.has(F)||(f.current.delete(F),y.current.set(F,P),i({type:"cancel",ids:[F]}));for(let[F,X]of g.current)(X.tierId!==o.id||X.refresh&&!M.has(F))&&(X.ac.abort(),g.current.delete(F),y.current.set(F,P),i({type:"cancel",ids:[F]}));let H=e.filter(F=>{if(d!=null&&F.startMs>=d)return false;let X=$t(F.tierId,F.index);if(g.current.has(X))return false;let O=r.get(X),U=y.current.get(X);return U===P&&!f.current.has(X)?false:f.current.has(X)||U!=null||!O||O.status==="loading"}),Y=(n.startMs+n.endMs)/2;H.sort((F,X)=>Math.abs((F.startMs+F.endMs)/2-Y)-Math.abs((X.startMs+X.endMs)/2-Y));let V=H.slice(0,Math.max(0,s-g.current.size));for(let F of V){let X=$t(F.tierId,F.index),O=f.current.get(X),U=O!==void 0,J={ac:new AbortController,tierId:F.tierId,generation:O??h.current,refresh:U,automatic:m&&u,viewportKey:P};y.current.delete(X),g.current.set(X,J),i({type:"request",ids:[X],refresh:U});let G=d!=null?Math.min(F.endMs,d):F.endMs,B=()=>!J.ac.signal.aborted&&p.current.resetKey===l&&g.current.get(X)===J&&(!J.automatic||p.current.refreshEnabled)&&(!U||p.current.refreshEnabled&&p.current.refreshKey===c)&&(f.current.get(X)??J.generation)===J.generation;Promise.resolve().then(()=>{if(J.ac.signal.aborted)throw new DOMException("Aborted","AbortError");return a(o,F.startMs,G,J.ac.signal,{reason:U?"refresh":"load",isCurrent:B})}).then(S=>{B()&&i({type:"fulfilled",id:X,data:S,refresh:U});}).catch(S=>{if(!B())return;let x=S instanceof Error?S.message:String(S);i({type:"failed",id:X,error:new Error(`tile fetch failed (tile ${X}, tier ${o.id}): ${x}`)});}).finally(()=>{g.current.get(X)===J&&(g.current.delete(X),f.current.get(X)===J.generation&&f.current.delete(X),!f.current.size&&![...g.current.values()].some(S=>S.refresh)&&(v.current=null),N());});}},[e,t,r,a,o,n,i,s,d,l,c,u,m,R,w]),_e.useEffect(()=>R,[R]),{abortAll:R}}var ox=1.3,iR=25e4,sR=3;function lR(e,t,r){let o=t.tileSpanMs/t.bucketMs,n=Math.max(1,Math.floor(iR/o/r));return Math.min(Math.max(1,Math.ceil(.5*e/t.tileSpanMs)),n)}function nx(e){let{fetchTile:t,ladder:r,nativeMs:o,viewport:n,widthPx:a,maxFutureMs:i,targetPointsPerPx:s=1,concurrency:d=3,tileCostSeriesCount:l=sR,resetKey:c,refreshKey:u,refreshEnabled:m,automaticLoads:p}=e,g=_e.useMemo(()=>({targetPointsPerPx:s,nativeMs:o}),[s,o]),[f,h]=_e.useState(()=>ql(n.endMs-n.startMs,Math.max(1,a),r,g)),[b,v]=_e.useReducer($h,Ip),[y,C]=_e.useState(c),T=y===c?b:Ip,w=_e.useRef(null),N=_e.useRef(null);y!==c&&(C(c),w.current=null,N.current=null,v({type:"reset"}));let R=_e.useRef(n.endMs-n.startMs),P=_e.useRef(g);_e.useEffect(()=>{let B=n.endMs-n.startMs,S=ql(B,Math.max(1,a),r,g);if(S.id===f.id){P.current=g;return}let L=ql(B,Math.max(1,a),r,P.current).id!==S.id,I=B/R.current;(L||I>ox||I<1/ox)&&(R.current=B,P.current=g,h(S));},[n,a,r,f.id,g]);let E=n.endMs-n.startMs,D=_e.useMemo(()=>lR(E,f,l),[E,f,l]),k=_e.useMemo(()=>Yo(n,f,D),[n,f,D]),A=_e.useMemo(()=>k.map(B=>$t(B.tierId,B.index)).join(","),[k]),M=_e.useRef(k);M.current=k;let H=_e.useRef(n);H.current=n;let Y=_e.useRef(T);Y.current=T,tx({refs:k,refsKey:A,store:T,tier:f,viewport:n,fetchTile:t,dispatch:v,concurrency:d,resetKey:c,refreshKey:u,refreshEnabled:m,automaticLoads:p,...i!=null?{maxFutureMs:i}:{}});let V=_e.useMemo(()=>M.current.map(B=>{let S=$t(B.tierId,B.index),x=T.get(S);return `${S}:${x?.status??"\u2205"}:${x?.revision??0}:${!!x?.error}`}).join("|"),[A,T]),F=_e.useMemo(()=>{let B=_h({viewport:H.current,targetTier:f,ladder:r,store:Y.current,overscanTiles:D,prev:w.current,prevViewport:N.current,maxFutureMs:i});return w.current=B,N.current=H.current,B},[V,f,r,D,n.startMs,n.endMs,i,c]),X=_e.useMemo(()=>M.current.some(B=>Y.current.get($t(B.tierId,B.index))?.status==="loading"),[V]),O=_e.useMemo(()=>{let B=M.current[0];return B?Y.current.get($t(B.tierId,B.index))?.status==="empty":false},[V]),U=k.map(B=>T.get($t(B.tierId,B.index))),J=U.some(B=>B?.refreshing),G=U.find(B=>B?.error)?.error;return {tier:f,series:F,loading:X,refreshing:J,refreshError:G,atDataStart:O}}function Bp(e){let{initialViewport:t,...r}=e,[o,n]=_e.useState(t),a=nx({...r,viewport:o}),i=_e.useCallback(d=>n(d),[]),s=_e.useCallback(d=>n(d),[]);return {viewport:o,onViewportChange:i,jumpTo:s,...a}}var cR={sm:"gap-4 px-6 py-8",md:"gap-5 px-8 py-12",lg:"gap-6 px-10 py-16"},dR={sm:"xs",md:"sm",lg:"md"},uR={sm:Pt("bodySm"),md:Pt("bodySm"),lg:Pt("bodyMd")},pR={sm:"h-10 w-10",md:"h-12 w-12",lg:"h-16 w-16"},mR={sm:20,md:24,lg:32},fR={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"},gR={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 Ql({icon:e,title:t,description:r,primaryAction:o,secondaryAction:n,actions:a,size:i="md",alignment:s="center",variant:d="default",spotlightPattern:l="mesh",fullHeight:c=false,className:u}){let m=i==="sm"?"sm":"md",p=d==="spotlight",g=p?{background:gR[l]}: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(pt,{href:n.href||"#",variant:"muted",onPress:n.onPress,className:Pt("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",cR[i],fR[s],c?"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",pR[i]),children:jsxRuntime.jsx(z,{name:e,size:mR[i]})}),jsxRuntime.jsx(mr,{size:dR[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",uR[i]),children:r}),f()]})}var hR=1440*60*1e3,xR=[{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}],yR=[{id:"day",days:1},{id:"week",days:7},{id:"month",days:30}];function ix(e,t=Date.now){return yR.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 Zl(e=Date.now){return xR.map(({id:t,label:r,days:o})=>({id:t,label:r,getRange:()=>{let n=e();return {after:new Date(n-o*hR),before:new Date(n)}}}))}function TR({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 ii({errorMessage:e,...t}){return jsxRuntime.jsxs(reactAriaComponents.RangeCalendar,{...t,children:[jsxRuntime.jsx(Tl,{}),jsxRuntime.jsxs(reactAriaComponents.CalendarGrid,{className:"w-full border-separate [border-spacing:0] [&_td]:p-0 [&_td]:!border-0",children:[jsxRuntime.jsx(kl,{}),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:d})=>jsxRuntime.jsx("span",{className:TR({selectionState:n&&(a||i)?"cap":n?"middle":"none",isDisabled:d}),children:o})})})]}),e&&jsxRuntime.jsx(reactAriaComponents.Text,{slot:"errorMessage",className:"text-sm text-feedback-error-text",children:e})]})}function lx(e){return e==="brand"?"primary":e==="default"||e==="secondary"||!e?"subtle":e}var PR={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"},RR={sm:14,md:16,lg:18,xl:20},ER=({isSelected:e,isFirst:t,isLast:r,isDisabled:o,variant:n="subtle"})=>{let a=lx(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 $l({options:e,value:t,onChange:r,size:o="md",className:n,isDisabled:a,variant:i="subtle",iconOnly:s=false,"aria-label":d}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("inline-flex overflow-hidden rounded-[var(--control-border-radius)]",lx(i)==="subtle"?"border border-border-muted":"border-2 border-border-muted",PR[o],n),role:"group","aria-label":d,children:e.map((l,c)=>{let u=s&&!!l.icon;return jsxRuntime.jsxs(reactAriaComponents.ToggleButton,{isSelected:t===l.id,onChange:()=>r(l.id),className:ER({isSelected:t===l.id,isFirst:c===0,isLast:c===e.length-1,isDisabled:a,variant:i}),isDisabled:a,"aria-label":l.label,children:[l.icon&&jsxRuntime.jsx(z,{name:l.icon,size:RR[o]}),u?jsxRuntime.jsx("span",{className:"sr-only",children:l.label}):jsxRuntime.jsx("span",{className:"inline-flex flex-col items-center after:content-[attr(data-label)] after:font-semibold after:h-0 after:overflow-hidden after:invisible","data-label":l.label,children:l.label})]},l.id)})})}function AR(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function Hp(e){return AR(e)?e:(console.warn("Invalid date detected in TimeControls, using fallback:",e),new Date)}var fx=120*1e3,IR=.02,gx={FIVE_MINUTES:0,FIFTEEN_MINUTES:1,HOUR:2,DAY:3,WEEK:4,MONTH:5,YEAR:6},FR=[{id:"FIFTEEN_MINUTES",label:"15m"},{id:"HOUR",label:"1h"},{id:"DAY",label:"1d"},{id:"WEEK",label:"1w"}];function ec({dateRange:e,onDateRangeChange:t,windowSize:r,onWindowSizeChange:o,showWindowSize:n=true,showRangeSelector:a=true,allowDatePicker:i=false,lockWindowSize:s=false,showReset:d=true,restrictToSingleDay:l=false,presetRanges:c=[],windowSizeOptions:u=FR,autoAdjustWindowSize:m=false,className:p}){let[g,f]=_e.useState(0),h=_e.useRef(null),[b,v]=_e.useState(false),[y,C]=_e.useState(null),T=S=>{let L=(S.before.getTime()-S.after.getTime())/(1e3*60*60);return L<=24?"FIFTEEN_MINUTES":L<=72||L<=168?"HOUR":("DAY")};_e.useEffect(()=>{if(m&&!b&&o){let S=T(e);o(S);}},[e,m,b,o]);let w=S=>{let x;for(let L of c){let I=L.getRange(),q=(I.before.getTime()-I.after.getTime())*IR,ne=Math.abs(I.after.getTime()-S.after.getTime()),ae=Math.abs(I.before.getTime()-S.before.getTime());if(ne>q||ae>q)continue;let $=ne+ae;(!x||$<x.distance)&&(x={id:L.id,distance:$});}return x?.id},N=y&&c.some(S=>S.id===y.id)&&Math.abs(y.after-e.after.getTime())<=fx&&Math.abs(y.before-e.before.getTime())<=fx?y.id:w(e),R=Hp(e.after),P=Hp(e.before),E=new Date(P.getTime()-1),D={start:date.fromDate(R,date.getLocalTimeZone()),end:date.fromDate(E,date.getLocalTimeZone())};_e.useEffect(()=>{let S=new ResizeObserver(x=>{for(let L of x)f(L.contentRect.width);});return h.current&&S.observe(h.current),()=>{h.current&&S.unobserve(h.current);}},[]);let k=[...u].sort((S,x)=>gx[S.id]-gx[x.id]),A=S=>{let x=S.toString(),L=c.find(I=>I.id===x);if(L){let I=L.getRange();C({id:x,after:I.after.getTime(),before:I.before.getTime()}),v(false),t(I,{presetId:x});}},M=S=>{if(S?.start&&S?.end){C(null);let x=new Date(S.start.year,S.start.month-1,S.start.day,0,0,0,0),L=new Date(S.end.year,S.end.month-1,S.end.day+1,0,0,0,0);t({after:x,before:L});}},H=S=>{if(S){C(null);let x=new Date(S.year,S.month-1,S.day,0,0,0,0),L=new Date(S.year,S.month-1,S.day+1,0,0,0,0);t({after:x,before:L});}},Y=S=>{o&&(v(true),o(S.toString()));},V=()=>{c.length>0&&A(c[0].id);},F=S=>Hp(S).toLocaleDateString("en-US"),X=k.map(S=>({id:S.id,label:S.label,value:S.id})),O=c.map(S=>({id:S.id,label:S.label,value:S.id})),U=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(S=>S.id===r)?.label||r}):jsxRuntime.jsx(Ho,{className:"w-full md:w-auto",selectedKey:r,onSelectionChange:Y,items:X,size:"md","aria-label":"Select Window Size",children:S=>jsxRuntime.jsx(br,{id:S.id,"aria-label":S.label,size:"md",children:S.label},S.id)}),J=d&&!N&&c.length>0,G=l?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(z,{name:"CalendarBlank",size:18}),jsxRuntime.jsx("span",{className:"ml-2 hidden md:block",children:F(e.after)})]}),jsxRuntime.jsx(vt,{className:"z-50 w-auto p-3",disableGroup:true,children:jsxRuntime.jsx(qa,{"aria-label":"Select date",value:date.parseDate(R.toISOString().split("T")[0]),onChange:H})})]})}):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",J&&"rounded-r-none"),variant:"secondary",children:[jsxRuntime.jsx(z,{name:"CalendarBlank",size:18}),!N&&jsxRuntime.jsx("span",{className:"ml-2 hidden md:block",children:`${F(e.after)} - ${F(E)}`})]}),jsxRuntime.jsx(vt,{className:"z-50 w-auto p-3",disableGroup:true,children:jsxRuntime.jsx(ii,{"aria-label":"Date range calendar",value:D,onChange:M})})]}),J&&jsxRuntime.jsx(te,{variant:"ghost",size:"md",onPress:V,children:"Reset"})]}),B=g<600;return jsxRuntime.jsx("div",{ref:h,className:tailwindMerge.twMerge("flex w-full flex-wrap items-center justify-between gap-4",p),children:B?jsxRuntime.jsxs("div",{className:"flex w-full justify-between",children:[jsxRuntime.jsxs("div",{className:"flex items-center",children:[i&&G,a&&c.length>0&&jsxRuntime.jsx(Ho,{selectedKey:N??"",onSelectionChange:A,items:O,size:"md","aria-label":"Select Date Range",children:S=>jsxRuntime.jsx(br,{id:S.id,size:"md",children:S.label},S.id)})]}),jsxRuntime.jsx("div",{className:"flex items-center",children:n&&r&&U})]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-4",children:[i&&G,a&&c.length>0&&jsxRuntime.jsx($l,{options:c.map(S=>({id:S.id,label:S.label})),value:N??"",onChange:A,size:"sm",variant:"secondary","aria-label":"Select Date Range"})]}),jsxRuntime.jsx("div",{className:"flex items-center",children:n&&r&&U})]})})}var HR=1440*60*1e3,bx=6e4,hx=(e,t)=>({startMs:t-e*HR,endMs:t}),GR=e=>({after:new Date(e.startMs),before:new Date(e.endMs)});function xx({source:e,title:t,initialRange:r,viewportEnd:o,yFormatter:n,yDomain:a,referenceLines:i,emptyState:s,presetRanges:d,tierToWindow:l,windowSizeOptions:c,height:u=360,hint:m,dataBounds:p,onViewChange:g,followLatest:f=false,children:h}){let[b,v]=_e.useState(900),y=_e.useRef(false),C=p?.endMs,[T,w]=_e.useState(()=>C??Date.now());_e.useEffect(()=>{if(C!=null){w(C);return}w(Date.now());let se=setInterval(()=>{y.current&&A({resetKey:e.resetKey,automatic:true}),w(Date.now());},bx);return ()=>clearInterval(se)},[C,e.resetKey]);let N=o?.getTime()??C,R=f&&o===void 0&&p===void 0,[P,E]=_e.useState(true),D=R&&P;_e.useLayoutEffect(()=>{y.current=D;},[D]);let[k,A]=_e.useState({resetKey:e.resetKey,automatic:false}),M=r?.days??30,H=_e.useMemo(()=>hx(M,N??Date.now()),[M,N]),Y=T,V=_e.useMemo(()=>({startMs:p?.startMs??0,endMs:T}),[p?.startMs,T]),F=se=>{let W=Math.min(se.endMs-se.startMs,V.endMs-V.startMs),K=Math.max(Math.min(se.endMs,V.endMs),V.startMs+W);return {startMs:K-W,endMs:K}},X=(se,W=true)=>{A({resetKey:e.resetKey,automatic:false});let K=R&&W&&Math.abs(V.endMs-se)<=bx;E(K),K&&w(Date.now());},[O,U]=_e.useState(null),[J,G]=_e.useState(null),B=O??H,S=Bp({fetchTile:e.fetchTile,ladder:e.ladder,nativeMs:e.nativeMs,initialViewport:H,widthPx:b,maxFutureMs:Y,tileCostSeriesCount:e.tileCostSeriesCount,resetKey:e.resetKey,refreshKey:e.refreshKey,refreshEnabled:e.refreshEnabled,automaticLoads:D&&k.resetKey===e.resetKey&&k.automatic}),x=_e.useRef(S.viewport);x.current=S.viewport;let L=S.jumpTo;_e.useEffect(()=>{D&&w(Date.now());},[D,e.resetKey]),_e.useEffect(()=>{if(!D)return;let se=x.current,W=T;W<=se.endMs||(A({resetKey:e.resetKey,automatic:true}),L({startMs:W-(se.endMs-se.startMs),endMs:W}));},[D,T,L,e.resetKey]);let I=_e.useMemo(()=>Zl(()=>N??Date.now()),[N]),q=d??I,ne=()=>{if(J&&"presetId"in J){let se=q.find(W=>W.id===J.presetId);if(se){let W=se.getRange();return {startMs:W.after.getTime(),endMs:W.before.getTime()}}}return J&&"range"in J?J.range:hx(M,N??Date.now())},{coverage:ae,renderTier:$,targetTier:ie,isFallback:Ie,isStale:ue}=S.series,ge=ie.id,de=$?.id??null,{startMs:pe,endMs:Te}=S.viewport,Qe=_e.useRef(g);_e.useEffect(()=>{Qe.current=g;},[g]),_e.useEffect(()=>{Qe.current?.({targetTierId:ge,renderedTierId:de,viewport:{startMs:pe,endMs:Te},followingLatest:D});},[ge,de,pe,Te,D]);let Ze=$?$.bucketMs*1.5:0,tr=se=>se==null?"\u2014":new Date(se).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),kt=(se,W)=>{let K=W-se<1728e5?{month:"short",day:"numeric",hour:"numeric",minute:"2-digit"}:{month:"short",day:"numeric",year:"numeric"},ce=new Intl.DateTimeFormat("en-US",K);return `${ce.format(new Date(se))} \u2013 ${ce.format(new Date(W))}`},rr=D?S.viewport.endMs-S.viewport.startMs!==B.endMs-B.startMs:S.viewport.startMs!==B.startMs||S.viewport.endMs!==B.endMs,qt=ue||S.loading&&ae.earliestMs==null,ct=(S.viewport.endMs-S.viewport.startMs)*.03,Vt=!qt&&ae.earliestMs!=null&&ae.earliestMs>S.viewport.startMs+ct,ee=!S.loading&&ae.earliestMs==null&&ae.latestMs==null&&!ra(S.series)&&!ue,Me=Zn(t),We=h({series:S.series,gapMs:Ze}),re=_e.isValidElement(We)&&We.type===_e.Fragment?We.props.children:We,Re=jsxRuntime.jsxs("div",{className:`flex flex-col gap-3${Me.isExpanded?" h-full":""}`,children:[jsxRuntime.jsxs("div",{className:"flex items-start gap-2",children:[jsxRuntime.jsx(ec,{dateRange:GR(S.viewport),onDateRangeChange:(se,W)=>{let K=F({startMs:se.after.getTime(),endMs:se.before.getTime()});X(K.endMs,!!W?.presetId),G(W?.presetId?{presetId:W.presetId}:{range:K}),U(K),S.jumpTo(K);},windowSize:l[ie.id],windowSizeOptions:c,lockWindowSize:true,presetRanges:q,allowDatePicker:true,showReset:false}),!Me.isExpanded&&!ee&&Me.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:kt(S.viewport.startMs,S.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:$?.id??ie.id}),Ie&&jsxRuntime.jsxs("span",{className:"text-text-tertiary",children:[" \xB7 loading ",ie.id]})]}),S.loading&&jsxRuntime.jsx("span",{className:"text-text-tertiary",children:"loading\u2026"}),S.refreshError&&jsxRuntime.jsx("span",{role:"status",className:"text-text-tertiary",children:ae.earliestMs==null?"Unable to load telemetry":"Refresh failed \xB7 showing previous data"}),Vt&&jsxRuntime.jsxs("span",{className:"text-text-tertiary",children:["showing available history from ",tr(ae.earliestMs)]}),!Vt&&!qt&&S.atDataStart&&jsxRuntime.jsx("span",{className:"text-text-tertiary",children:"no earlier data loaded"}),rr&&jsxRuntime.jsx(te,{variant:"ghost",size:"sm",onPress:()=>{let se=F(ne());X(se.endMs,!(J&&"range"in J)),U(se),S.jumpTo(se);},children:"\u27F2 Reset"})]}),jsxRuntime.jsx("div",{className:`relative overflow-hidden rounded-md border border-border-subtle${Me.isExpanded?" min-h-0 flex-1":""}`,style:Me.isExpanded?void 0:{height:u},children:ee?jsxRuntime.jsx(Ql,{title:s.title,description:s.description}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(jl,{title:t,viewport:S.viewport,panBounds:V,onViewportChange:se=>{X(se.endMs),S.onViewportChange(se);},onPlotWidthChange:v,...n&&{yFormatter:n},...a&&{yDomain:a},...i&&{referenceLines:i},children:re}),S.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(Sp,{children:Me.present(Re)})}function as({count:e,label:t="results",suffix:r,unknownLabel:o="\u2014",isLoading:n=false,className:a="",testId:i}){if(n)return jsxRuntime.jsx("div",{className:`flex items-center ${a}`,children:jsxRuntime.jsx(j,{width:80,height:16})});if(e===null)return jsxRuntime.jsx("div",{"data-testid":i,className:`text-sm text-text-secondary whitespace-nowrap ${a}`,children:o});let s=t.endsWith("s")?t.slice(0,-1):t,d=e===1&&!r?s:t,l=`${e.toLocaleString()}${r??""}${d?` ${d}`:""}`;return jsxRuntime.jsx("div",{"data-testid":i,className:`text-sm text-text-secondary whitespace-nowrap ${a}`,children:l})}var JR=e=>{let t=Gt({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:d,onClear:l,type:c,validationResult:u,reserveErrorSpace:m=true,isLoading:p=false,descriptionPlacement:g="below",...f}){let[h,b]=_e__namespace.default.useState(false),{isFocused:v,handleFocus:y,handleBlur:C}=gr(),T=c==="password",w=gl(p,300);return jsxRuntime.jsx(reactAriaComponents.TextField,{...f,isRequired:a,className:Ae(f.className,"group flex flex-col"),children:({isDisabled:N,isInvalid:R})=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(Xe,{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 w?jsxRuntime.jsx(Wr,{size:P,color:"text-text-secondary"}):jsxRuntime.jsx(z,{name:"MagnifyingGlass",size:P,className:`transition-colors ${v?"text-action-brand":"text-text-secondary"}`})})()}),jsxRuntime.jsx(hl,{size:o,disabled:N,type:T?h?"text":"password":c,name:f.name,autoComplete:f.autoComplete,value:f.value,defaultValue:f.defaultValue,placeholder:f.placeholder,onFocus:P=>y(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:JR({isInvalid:R,isDisabled:N,isFocused:v,size:o,transparent:i,showSearchIcon:s,isClearable:d,hasValue:!!f.value,isPassword:T,className:typeof f.className=="string"?f.className:void 0})}),d&&f.value&&!N&&jsxRuntime.jsx(Hi,{onClick:()=>{l?l():f.onChange&&f.onChange("");},size:o}),T&&!N&&jsxRuntime.jsx("button",{type:"button",onClick:()=>b(!h),className:"absolute right-3 top-1/2 -translate-y-1/2 transform text-text-secondary hover:text-text-primary","aria-label":h?"Hide password":"Show password",onMouseDown:P=>{P.preventDefault(),P.stopPropagation();},children:jsxRuntime.jsx(z,{name:h?"EyeSlash":"Eye",size:o==="sm"?16:20,className:"text-text-primary"})})]}),m?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(xe,{size:o,children:r}):typeof r=="function"&&u?jsxRuntime.jsx(xe,{size:o,children:r(u)}):t&&g==="below"?jsxRuntime.jsx(ke,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(xe,{size:o,className:"mt-1",children:r}):typeof r=="function"&&u?jsxRuntime.jsx(xe,{size:o,className:"mt-1",children:r(u)}):t&&g==="below"?jsxRuntime.jsx(ke,{size:o,className:"mt-1",children:t}):null})]})})}function na({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 is({value:e,options:t,onChange:r,direction:o,onDirectionChange:n,showLabel:a=true,size:i="sm",className:s="",compact:d=false}){let[l,c]=_e.useState(false),u=o!==void 0&&n!==void 0,m=t.find(p=>p.value===e);return d?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:()=>c(true)}),jsxRuntime.jsx(Ct,{isOpen:l,onClose:()=>c(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),c(false));},children:p=>jsxRuntime.jsx(br,{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(Ho,{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 Sx({search:e,searchMobileMode:t="expanded",filters:r=[],onRemoveFilter:o,onClearAllFilters:n,onManageFilters:a,exportControl:i,maxVisibleFilterChips:s=3,sort:d,resultsCount:l,leftControls:c,onManageColumns:u,columnPicker:m,customControls:p,actions:g,interactionMode:f="auto",sticky:h,stickyTop:b="0",zIndex:v=10,className:y="",style:C}){let T=r.length>0;if(!(e||T||a||d||l||c||u||m||p||g||i))return null;let N=h?"sticky bg-background-surface":"",R=h?{top:b,zIndex:v}:{};return jsxRuntime.jsxs("div",{className:`@container flex flex-col gap-3 bg-background-surface py-3 border-b border-border-default ${N} ${y}`,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:[c,c&&l&&jsxRuntime.jsx("div",{className:"h-4 w-px bg-border-default"}),l&&jsxRuntime.jsx(as,{count:l.count,label:l.label,suffix:l.suffix,unknownLabel:l.unknownLabel,isLoading:l.isLoading,testId:l.testId}),l&&d&&jsxRuntime.jsx("div",{className:"h-4 w-px bg-border-default"}),d&&jsxRuntime.jsx(is,{value:d.value,options:d.options,onChange:d.onChange,showLabel:d.showLabel,direction:d.direction,onDirectionChange:d.onDirectionChange}),u?jsxRuntime.jsx(te,{variant:"secondary",size:"sm",icon:"Columns",onClick:u,children:"Columns"}):m,T&&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(na,{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:i.icon??"Upload",onClick:i.onClick,isDisabled:i.isDisabled,isLoading:i.isLoading,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(Ka,{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(na,{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:i.icon??"Upload",onClick:i.onClick,isDisabled:i.isDisabled,isLoading:i.isLoading,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:[c,l&&jsxRuntime.jsx(as,{count:l.count,label:l.label,suffix:l.suffix,unknownLabel:l.unknownLabel,isLoading:l.isLoading})]}),jsxRuntime.jsx("div",{className:"flex items-center gap-2",children:d&&jsxRuntime.jsx(is,{value:d.value,options:d.options,onChange:d.onChange,showLabel:false,direction:d.direction,onDirectionChange:d.onDirectionChange,compact:f!=="desktop"})})]})]})]})}function wx({filters:e,onRemove:t,onClearAll:r,onManageFilters:o,maxVisibleChips:n=3,mode:a="chips",showManageButton:i=true,size:s="sm",className:d=""}){let l=e.length>0,c=e.slice(0,n),u=Math.max(0,e.length-n),m=u>0,p=a==="button"&&!!o,g=a==="chips"&&i&&!!o;if(!l&&!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"]}),h=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[g&&jsxRuntime.jsx(te,{variant:"secondary",size:s,icon:"Sliders",onClick:o,className:"whitespace-nowrap",children:"Filters"}),l&&c.map(v=>jsxRuntime.jsxs(Yr,{variant:"secondary",size:s,onRemove:()=>t(v.id),isRemovable:true,children:[v.label,": ",v.value]},v.id)),l&&m&&o&&jsxRuntime.jsxs(te,{variant:"ghost",size:s,onClick:o,className:"text-text-secondary hover:text-text-primary whitespace-nowrap",children:["+",u," more"]}),l&&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:h;return jsxRuntime.jsx("div",{className:`flex flex-wrap items-center gap-2 ${d}`,children:b})}var Nx=["isEmpty","isNotEmpty"];function Tx(e){return Nx.includes(e)}var kx={isEmpty:"is empty",isNotEmpty:"is not empty"};function $R(e,t,r){return {field:e,operator:t,value:r}}function e2(e,t="AND"){return {logic:t,conditions:e}}function ss(){return {logic:"AND",conditions:[]}}function nc(e){return !e||e.conditions.length===0?true:e.conditions.every(t=>"conditions"in t?nc(t):false)}function t2(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 d=r.get(i),l=d?.label||i,c=[],u=[],m=[];for(let p of s)p.operator==="in"&&Array.isArray(p.value)?c.push(...p.value):p.operator==="eq"?p.value!==void 0&&typeof p.value!="boolean"&&!Array.isArray(p.value)?c.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(c.length>0){let g=Array.from(new Set(c)).map(f=>d?.values?.find(b=>String(b.value)===String(f))?.label??f);a.push({id:`${i}-in`,label:l,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":">",h=g.operator==="lte"?"\u2264":"<";a.push({id:`${i}-range`,label:l,value:`${f} ${p.value} and ${h} ${g.value}`});}else for(let f of u){let h;f.operator==="gte"?h="\u2265":f.operator==="gt"?h=">":f.operator==="lte"?h="\u2264":h="<",a.push({id:`${i}-${f.operator}`,label:l,value:`${h} ${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}"`:Tx(p.operator)?g=kx[p.operator]:g=String(p.value),a.push({id:`${i}-${p.operator}`,label:l,value:g});}}return a}function Tn(e,t){let r=e||ss();return {...r,conditions:[...r.conditions,t]}}function aa(e,t){if(!e)return ss();let r=e.conditions.filter(o=>"conditions"in o?aa(o,t).conditions.length>0:o.field!==t);return {...e,conditions:r}}function ia(e){if(!e)return [];let t=new Set;function r(o){"conditions"in o?o.conditions.forEach(r):t.add(o.field);}return e.conditions.forEach(r),Array.from(t)}function Rx({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,isDisabled:i,isInvalid:s,showCalendar:d=true,reserveErrorSpace:l=true,validationResult:c,className:u,...m}){let[p,g]=_e.useState(false),f=h=>{m.onChange&&h&&m.onChange(h),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(Xe,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(St,{children:jsxRuntime.jsxs("div",{className:"relative w-full",children:[jsxRuntime.jsx(ls,{size:o,isDisabled:i,isInvalid:s,hasCalendar:d}),d&&!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(z,{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(qa,{value:m.value,onChange:f,minValue:m.minValue,maxValue:m.maxValue,isDisabled:i,isReadOnly:m.isReadOnly,isDateUnavailable:m.isDateUnavailable})})})]})]})}),l?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(xe,{size:o,children:r}):typeof r=="function"&&c?jsxRuntime.jsx(xe,{size:o,children:r(c)}):t?jsxRuntime.jsx(ke,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(xe,{size:o,className:"mt-1",children:r}):typeof r=="function"&&c?jsxRuntime.jsx(xe,{size:o,className:"mt-1",children:r(c)}):t?jsxRuntime.jsx(ke,{size:o,className:"mt-1",children:t}):null})]})}function c2({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 ls({size:e="md",isDisabled:t,isInvalid:r,hasCalendar:o,className:n,...a}){return jsxRuntime.jsx(reactAriaComponents.DateInput,{className:tailwindMerge.twMerge(un({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:c2({isPlaceholder:i.isPlaceholder,isDisabled:!i.isEditable||t,size:e})})})}function ac({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(Xe,{children:e}),jsxRuntime.jsxs(Zg,{className:"w-auto min-w-[208px]",children:[jsxRuntime.jsx(ls,{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(ls,{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(ke,{children:t}),typeof r=="string"?jsxRuntime.jsx(xe,{children:r}):null,jsxRuntime.jsx(vt,{children:jsxRuntime.jsx(ii,{})})]})}var x2=e=>{let t=Gt({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 cs({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,transparent:i,validationResult:s,reserveErrorSpace:d=true,descriptionPlacement:l="below",...c}){let u=_e.useId(),{isFocused:m,handleFocus:p,handleBlur:g}=gr();return jsxRuntime.jsx(reactAriaComponents.NumberField,{...c,id:u,isRequired:a,className:Ae(c.className,"group flex flex-col gap-1"),step:c.step??1,onChange:f=>{typeof f=="number"&&(c.maxValue!=null&&f>c.maxValue?c.onChange?.(c.maxValue):c.minValue!=null&&f<c.minValue?c.onChange?.(c.minValue):c.onChange?.(f));},isInvalid:!!r||typeof c.value=="number"&&(c.maxValue!=null&&c.value>c.maxValue||c.minValue!=null&&c.value<c.minValue),children:({isDisabled:f,isInvalid:h})=>jsxRuntime.jsxs("div",{className:"flex flex-col gap-1",children:[e&&jsxRuntime.jsx(Xe,{size:o,tooltip:n,description:l==="tooltip"||l==="inline"?t:void 0,descriptionPlacement:l,isRequired:a,htmlFor:u,children:e}),jsxRuntime.jsx("div",{className:"relative",children:jsxRuntime.jsxs(reactAriaComponents.Group,{className:"relative",children:[jsxRuntime.jsx(reactAriaComponents.Input,{onFocus:v=>p(v,c.onFocus),onBlur:v=>g(v,c.onBlur),className:x2({isInvalid:h||!!r,isDisabled:f,isFocused:m,transparent:i,size:o,className:typeof c.className=="string"?c.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(z,{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(z,{name:"CaretDown",size:14})})]})]})}),d?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:r?jsxRuntime.jsx(xe,{size:o,children:typeof r=="function"?r(s):r}):t&&l==="below"?jsxRuntime.jsx(ke,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:r?jsxRuntime.jsx(xe,{size:o,className:"mt-1",children:typeof r=="function"?r(s):r}):t&&l==="below"?jsxRuntime.jsx(ke,{size:o,className:"mt-1",children:t}):null})]})})}var Xp={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 C2({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=Xp[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 S2({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=Xp[r].handle;return [o,n,e?"translate-x-[100%]":"translate-x-0",t?"forced-colors:outline-[GrayText]":""].filter(Boolean).join(" ")}function ic({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 ${Xp[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:C2({...n,size:r}),children:jsxRuntime.jsx("span",{className:S2({...n,size:r})})}),e]})})}function Lx(e){return new Intl.NumberFormat("en-US").format(e)}function Dx({isOpen:e,onClose:t,facetConfigs:r,facetCounts:o={},currentFilters:n,onApply:a,onClear:i,title:s="Filters",resultCount:d}){let[l,c]=_e.useState(n),[u,m]=_e.useState({}),[p,g]=_e.useState({}),[f,h]=_e.useState(null),{isMobile:b}=dr(),v=_e.useMemo(()=>r.some(x=>x.group),[r]),{groups:y,ungroupedFacets:C,facetsByGroup:T}=_e.useMemo(()=>{let x=new Set,L=[],I={};for(let q of r)q.group?(x.has(q.group)||(x.add(q.group),I[q.group]=[]),I[q.group].push(q)):L.push(q);return {groups:Array.from(x),ungroupedFacets:L,facetsByGroup:I}},[r]);_e.useEffect(()=>{e&&(c(n),m({}),g({}),h(!b&&y.length>0?y[0]:null));},[e,n,y,b]);let w=_e.useMemo(()=>!l||nc(l)?0:ia(l).length,[l]),N=()=>{a(l),t();},R=()=>{let x=ss();c(x),i?i():a(x),t();},P=x=>{if(!l)return [];if(!ia(l).includes(x))return [];let I=[];function q(ne){if(ne)for(let ae of ne.conditions)"conditions"in ae?q(ae):ae.field===x&&ae.operator==="in"&&Array.isArray(ae.value)&&I.push(...ae.value.map(String));}return q(l),I},E=(x,L,I)=>{let q=aa(l,x);L!==void 0&&(q=Tn(q,{field:x,operator:"gte",value:L})),I!==void 0&&(q=Tn(q,{field:x,operator:"lte",value:I})),c(q);},D=x=>{if(!l)return;let L;function I(q){if(q)for(let ne of q.conditions)"conditions"in ne?I(ne):ne.field===x&&ne.operator==="eq"&&typeof ne.value=="boolean"&&(L=ne.value);}return I(l),L},k=(x,L)=>{let I=aa(l,x);L!==void 0&&(I=Tn(I,{field:x,operator:"eq",value:L})),c(I);},A=(x,L,I)=>{let q=aa(l,x);L&&(q=Tn(q,{field:x,operator:"gte",value:L.toString()})),I&&(q=Tn(q,{field:x,operator:"lte",value:I.toString()})),c(q);},M=x=>{let L=T[x]||[],I=l?ia(l):[];return L.filter(q=>I.includes(q.field)).length},H="pr-9 bg-background-muted/50",Y="border-t border-border-muted",V="text-sm font-medium text-text-link-default",F=x=>jsxRuntime.jsx("span",{className:V,children:x}),X=x=>{let L=o[x.field]||{},I=u[x.field]||"",q=[];x.values?q=x.values.map($=>({value:String($.value),label:$.label,count:L[String($.value)]})):q=Object.entries(L).map(([$,ie])=>({value:$,label:$,count:ie}));let ne=q.length;if(I){let $=I.toLowerCase();q=q.filter(ie=>ie.label.toLowerCase().includes($));}q.sort(($,ie)=>$.count!==void 0&&ie.count!==void 0&&ie.count!==$.count?ie.count-$.count:$.label.localeCompare(ie.label));let ae=x.type||"string";if(ae==="string"||!x.type){let $=P(x.field),ie=x.searchThreshold??10,Ie=x.maxVisibleOptions??50,ue=p[x.field]??false,ge=ue||q.length<=Ie?q:q.slice(0,Ie),de=q.length>Ie&&!ue;return jsxRuntime.jsxs(bn,{id:x.field,children:[jsxRuntime.jsx(hn,{title:x.label,description:x.description,className:H,endContent:$.length>0?F(`${$.length} selected`):void 0}),jsxRuntime.jsx(xn,{className:Y,children:jsxRuntime.jsxs("div",{className:"space-y-4 pt-4 pb-4",children:[ne>ie&&jsxRuntime.jsx(na,{value:I,onChange:pe=>m(Te=>({...Te,[x.field]:pe})),onClear:()=>m(pe=>({...pe,[x.field]:""})),placeholder:`Search ${x.label.toLowerCase()}...`,size:"sm",className:"w-full !max-w-none pr-4"}),jsxRuntime.jsx($u,{value:$,onChange:pe=>{let Te=aa(l,x.field);pe.length>0&&(Te=Tn(Te,{field:x.field,operator:"in",value:pe})),c(Te);},children:jsxRuntime.jsx("div",{className:"space-y-1.5",children:ge.map(pe=>jsxRuntime.jsx("div",{className:"rounded-md py-2 pr-4 transition-colors hover:bg-background-hover",children:jsxRuntime.jsx(eo,{value:pe.value,children:jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-3 flex-1",children:[x.renderLabel?x.renderLabel(pe.value,pe.label):jsxRuntime.jsx("span",{className:"text-sm font-medium text-text-primary",children:pe.label}),pe.count!==void 0&&jsxRuntime.jsx("span",{className:"text-xs font-medium text-text-secondary tabular-nums",children:Lx(pe.count)})]})})},pe.value))})}),de&&jsxRuntime.jsx("div",{className:"pt-2 border-t border-border-muted",children:jsxRuntime.jsxs(te,{variant:"ghost",size:"sm",onPress:()=>g(pe=>({...pe,[x.field]:true})),className:"w-full",children:["Show all ",q.length," options"]})}),ue&&q.length>Ie&&jsxRuntime.jsx("div",{className:"pt-2 border-t border-border-muted",children:jsxRuntime.jsx(te,{variant:"ghost",size:"sm",onPress:()=>g(pe=>({...pe,[x.field]:false})),className:"w-full",children:"Show less"})})]})})]},x.field)}if(ae==="number"){let $,ie,Ie=ge=>{if(ge)for(let de of ge.conditions)"conditions"in de?Ie(de):de.field===x.field&&(de.operator==="gte"&&typeof de.value=="number"&&($=de.value),de.operator==="lte"&&typeof de.value=="number"&&(ie=de.value));};Ie(l);let ue=$!==void 0||ie!==void 0;return jsxRuntime.jsxs(bn,{id:x.field,children:[jsxRuntime.jsx(hn,{title:x.label,description:x.description,className:H,endContent:ue?F($!==void 0&&ie!==void 0?`${$} - ${ie}`:$!==void 0?`\u2265 ${$}`:`\u2264 ${ie}`):void 0}),jsxRuntime.jsx(xn,{className:Y,children:jsxRuntime.jsxs("div",{className:"grid grid-cols-2 gap-4 pt-4 pb-4",children:[jsxRuntime.jsx(cs,{label:"Min",value:$,onChange:ge=>E(x.field,ge,ie)},`${x.field}-min`),jsxRuntime.jsx(cs,{label:"Max",value:ie,onChange:ge=>E(x.field,$,ge)},`${x.field}-max`)]})})]},x.field)}if(ae==="boolean"){let $=D(x.field);return jsxRuntime.jsxs(bn,{id:x.field,children:[jsxRuntime.jsx(hn,{title:x.label,description:x.description,className:H,endContent:$!==void 0?F($?"Yes":"No"):void 0}),jsxRuntime.jsx(xn,{className:Y,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(ic,{size:"lg",isSelected:$??false,onChange:ie=>k(x.field,ie?true:void 0),children:$?"Yes":"No"})]})})]},x.field)}if(ae==="date"){let $,ie,Ie=Te=>{if(Te)for(let Qe of Te.conditions)"conditions"in Qe?Ie(Qe):Qe.field===x.field&&(Qe.operator==="gte"&&($=String(Qe.value)),Qe.operator==="lte"&&(ie=String(Qe.value)));};Ie(l);let ue=$!==void 0||ie!==void 0,ge=Te=>{if(Te)try{return /^\d{4}-\d{2}-\d{2}$/.test(Te)?date.parseDate(Te):void 0}catch{return}},de=ge($),pe=ge(ie);return jsxRuntime.jsxs(bn,{id:x.field,children:[jsxRuntime.jsx(hn,{title:x.label,description:x.description,className:H,endContent:ue?F("Date range selected"):void 0}),jsxRuntime.jsx(xn,{className:Y,children:jsxRuntime.jsx("div",{className:"pt-4 pb-4",children:jsxRuntime.jsx(ac,{label:"Date Range",value:de&&pe?{start:de,end:pe}:void 0,onChange:Te=>{Te?A(x.field,Te.start,Te.end):A(x.field,void 0,void 0);}})})})]},x.field)}return null},O=()=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[C.map(x=>{let I=(l?ia(l):[]).includes(x.field);return jsxRuntime.jsxs("button",{type:"button",onClick:()=>h(`__ungrouped__${x.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:x.label}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[I&&jsxRuntime.jsx("span",{className:V,children:"1 active"}),jsxRuntime.jsx(z,{name:"CaretRight",size:"sm",className:"text-text-secondary"})]})]},x.field)}),y.map(x=>{let L=M(x);return jsxRuntime.jsxs("button",{type:"button",onClick:()=>h(x),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:x}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[L>0&&jsxRuntime.jsxs("span",{className:V,children:[L," active"]}),jsxRuntime.jsx(z,{name:"CaretRight",size:"sm",className:"text-text-secondary"})]})]},x)})]}),U=x=>{if(x.startsWith("__ungrouped__")){let I=x.replace("__ungrouped__",""),q=C.find(ne=>ne.field===I);return q?jsxRuntime.jsx(Qa,{variant:"contained",density:"comfortable",showDividers:true,defaultExpandedKeys:[q.field],children:X(q)}):null}let L=T[x]||[];return L.length===0?null:jsxRuntime.jsx(Qa,{variant:"contained",density:"comfortable",showDividers:true,defaultExpandedKeys:[L[0].field],children:L.map(I=>X(I))})},J=()=>{if(f){let x=f.startsWith("__ungrouped__")&&C.find(L=>L.field===f.replace("__ungrouped__",""))?.label||f;return jsxRuntime.jsxs("div",{className:"flex flex-col h-full",children:[jsxRuntime.jsxs("button",{type:"button",onClick:()=>h(null),className:"flex items-center gap-2 px-4 py-3 border-b border-border-muted hover:bg-background-hover transition-colors",children:[jsxRuntime.jsx(z,{name:"CaretLeft",size:"sm",className:"text-text-secondary"}),jsxRuntime.jsx("span",{className:"text-sm font-medium text-text-primary",children:x})]}),jsxRuntime.jsx("div",{className:"flex-1 overflow-y-auto",children:U(f)})]})}return O()},G=()=>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(x=>{let I=(l?ia(l):[]).includes(x.field),q=f===`__ungrouped__${x.field}`;return jsxRuntime.jsxs("button",{type:"button",onClick:()=>h(`__ungrouped__${x.field}`),className:`flex items-center justify-between w-full px-4 py-3 text-left border-b border-border-muted transition-colors ${q?"bg-background-selected":"hover:bg-background-hover"}`,children:[jsxRuntime.jsx("span",{className:`text-sm truncate ${q?"font-semibold text-text-primary":"font-medium text-text-primary"}`,children:x.label}),I&&jsxRuntime.jsx("span",{className:"w-2 h-2 rounded-full bg-action-primary flex-shrink-0 ml-2"})]},x.field)}),y.map(x=>{let L=M(x),I=f===x;return jsxRuntime.jsxs("button",{type:"button",onClick:()=>h(x),className:`flex items-center justify-between w-full px-4 py-3 text-left border-b border-border-muted transition-colors ${I?"bg-background-selected":"hover:bg-background-hover"}`,children:[jsxRuntime.jsx("span",{className:`text-sm truncate ${I?"font-semibold text-text-primary":"font-medium text-text-primary"}`,children:x}),L>0&&jsxRuntime.jsx("span",{className:"w-2 h-2 rounded-full bg-action-primary flex-shrink-0 ml-2"})]},x)})]}),jsxRuntime.jsx("div",{className:"flex-1 overflow-y-auto",children:f?U(f):jsxRuntime.jsx("div",{className:"flex items-center justify-center h-full text-text-secondary text-sm",children:"Select a category to view filters"})})]}),B=()=>jsxRuntime.jsx(Qa,{variant:"contained",density:"comfortable",showDividers:true,defaultExpandedKeys:[r[0].field],children:r.map(x=>X(x))});return jsxRuntime.jsx(fr,{isOpen:e,onClose:t,title:v&&b&&f?f.startsWith("__ungrouped__")?C.find(x=>x.field===f.replace("__ungrouped__",""))?.label||s:f:w>0?`${s} (${w} active)`:s,hideCloseIcon:false,primaryAction:{label:"Apply filters",onPress:N,variant:"primary"},secondaryAction:{label:"Clear all",onPress:R},maxWidth:v?"800px":"700px",height:"600px",mobileHeight:"85vh",contentPadding:false,footerContent:d!==void 0?jsxRuntime.jsxs("div",{className:"text-sm text-text-secondary text-center",children:[jsxRuntime.jsx("span",{className:"font-semibold text-text-primary",children:Lx(d)})," ",d===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"})}):v?b?J():G():B()})}function qp(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 wr(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",qp(e),t)}function cc(e,t="\u2014"){return e==null||e===""?t:String(e)}var kn={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:kn.lg,high:kn.lg,normal:kn.md,low:kn.sm}[e]}function me(e,...t){return typeof e=="function"?e(...t):e}function Ax(e="neutral",t="sm"){return tailwindMerge.twMerge("inline-flex items-center rounded-full font-medium",t==="sm"?"px-2 py-0.5 text-xs":"px-2.5 py-1 text-sm",{success:"bg-feedback-success-background text-feedback-success-text",error:"bg-feedback-error-background text-feedback-error-text",warning:"bg-feedback-warning-background text-feedback-warning-text",info:"bg-feedback-info-background text-feedback-info-text",neutral:"bg-background-muted text-text-secondary"}[e])}function Ix(e){return e?"success":"neutral"}function dc(e,t=false){return t?e>0?"text-feedback-success-text":e<0?"text-feedback-error-text":"text-text-primary":"text-text-primary"}function Qp(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,d=Qp(o,n);return jsxRuntime.jsx("a",{href:s,className:tailwindMerge.twMerge(d,a==="strong"||a==="high"?"font-semibold":"",i),onClick:c=>{c.metaKey||c.ctrlKey;},children:e})}function Fx({row:e,context:t,actions:r,align:o="right",size:n="sm"}){let{isLoading:a}=t;if(a)return jsxRuntime.jsx(j,{className:kn.sm});let s=(typeof r=="function"?r(e):r).filter(l=>!me(l.hidden,e));if(s.length===0)return null;let d=we(o);return jsxRuntime.jsx("div",{className:d,children:s.map(l=>{let c=me(l.disabled,e);return l.variant==="icon"||!l.label?jsxRuntime.jsx(te,{variant:"icon",size:n,onPress:()=>{l.onClick(e);},isDisabled:c,"aria-label":l.label||l.id,children:jsxRuntime.jsx(z,{name:l.icon||"DotsThree",size:n==="sm"?16:20})},l.id):jsxRuntime.jsxs(te,{variant:l.variant||"secondary",size:n,onPress:()=>{l.onClick(e);},isDisabled:c,children:[l.icon&&jsxRuntime.jsx(z,{name:l.icon,size:n==="sm"?14:16}),l.label]},l.id)})})}function Vx({value:e,row:t,context:r,variant:o="default",label:n,size:a="sm",shape:i="square",dot:s,dotPosition:d="left",dotPulse:l,align:c="left",emptyText:u="\u2014",className:m,maxVisible:p=2,maxLabelLength:g}){let{isLoading:f}=r,h=(w,N)=>{if(!g||w.length<=g)return jsxRuntime.jsx(jsxRuntime.Fragment,{children:w});let R=w.slice(0,g-1)+"\u2026";return jsxRuntime.jsx(Zt,{content:N,children:jsxRuntime.jsx("span",{children:R})})};if(f)return jsxRuntime.jsx(j,{className:Tt("normal")});if(e==null||e==="")return jsxRuntime.jsx("div",{className:we(c,"text-text-secondary"),children:u});if(Array.isArray(e)&&e.length===0)return jsxRuntime.jsx("div",{className:we(c,"text-text-secondary"),children:u});let b=we(c,m);if(Array.isArray(e)){let w=e.slice(0,p),N=e.slice(p),R=N.length>0;return jsxRuntime.jsx("div",{className:b,children:jsxRuntime.jsxs("div",{className:"flex items-center gap-1",children:[w.map((P,E)=>{let D=me(o,P,t),k=n!==void 0?me(n,P,t):String(P),A=me(s,P,t),M=me(l,P,t);return jsxRuntime.jsx("span",{className:"flex-shrink-0 whitespace-nowrap",children:jsxRuntime.jsx(gt,{variant:D,size:a,shape:i,dot:A,dotPosition:d,dotPulse:M,children:h(k,k)})},E)}),R&&jsxRuntime.jsx(Zt,{content:N.join(", "),children:jsxRuntime.jsx("span",{className:"flex-shrink-0 whitespace-nowrap",children:jsxRuntime.jsxs(gt,{variant:"neutral",size:a,shape:i,children:["+",N.length]})})})]})})}let v=me(o,e,t),y=n!==void 0?me(n,e,t):String(e),C=me(s,e,t),T=me(l,e,t);return jsxRuntime.jsx("div",{className:b,children:jsxRuntime.jsx(gt,{variant:v,size:a,shape:i,dot:C,dotPosition:d,dotPulse:T,children:h(y,y)})})}function Ox({value:e,context:t,format:r="icon",trueText:o="Yes",falseText:n="No",trueIcon:a="Check",falseIcon:i="X",showFalse:s=true,align:d="center",emphasis:l="normal",className:c}){let{isLoading:u}=t;if(u)return jsxRuntime.jsx(j,{className:Tt(l)});let m=!!e;if(!m&&!s)return jsxRuntime.jsx("div",{className:we(d,c)});let p=we(d,c);switch(r){case "icon":return jsxRuntime.jsx("div",{className:p,children:jsxRuntime.jsx(z,{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:wr(l),children:m?o:n})});case "badge":return jsxRuntime.jsx("div",{className:p,children:jsxRuntime.jsx(gt,{variant:m?"success":"neutral",size:"sm",children:m?o:n})});default:return null}}var uc="var(--color-text-subtle)",zx=js().map((e,t)=>`var(--color-viz-categorical-${t+1})`);function Gx({value:e,row:t,context:r,color:o,swatch:n="dot",emptyText:a="\u2014",align:i="left",className:s}){let{isLoading:d}=r;if(d)return jsxRuntime.jsx(j,{className:Tt("normal")});let l=me(e,t),c=l==null?"":String(l);return c.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??uc}}),jsxRuntime.jsx("span",{className:"truncate",children:c})]})}function Ux({row:e,context:t,firstName:r,lastName:o,email:n,avatarUrl:a,layout:i="stacked",size:s="sm",href:d,LinkComponent:l,linkVariant:c="secondary",showEmail:u=false,badge:m,emphasis:p="normal",align:g="left",className:f,piiEntity:h}){let{isLoading:b}=t,v=me(r,e),y=me(o,e),C=me(n,e),T=me(a,e),w=me(d,e),N=me(m,e),R=me(h,e),P=we(g,f);return jsxRuntime.jsx("div",{className:P,children:jsxRuntime.jsx(El,{firstName:v,lastName:y,email:C,avatarUrl:T,layout:i,size:s,href:w,LinkComponent:l,linkVariant:c,showEmail:u,badge:N,emphasis:p,isLoading:b,piiEntity:R})})}function Kx({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 Yx({value:e,row:t,context:r,format:o="date",customFormat:n,emptyText:a="\u2014",align:i="left",emphasis:s="normal",href:d,linkBehavior:l="hover",className:c}){let{isLoading:u}=r;if(u)return jsxRuntime.jsx(j,{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=I2(m);break;case "custom":p=n?m.toLocaleString("en-US",n):m.toISOString();break;default:p=m.toLocaleDateString();}let g=we(i,tailwindMerge.twMerge(wr(s),c)),f=me(d,t);return f?jsxRuntime.jsx("div",{className:g,children:Po(p,f,t,l)}):jsxRuntime.jsx("div",{className:g,children:p})}function I2(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 B2={up:"ArrowUp",down:"ArrowDown",flat:"Minus"},V2={positive:"text-feedback-success-text",negative:"text-feedback-error-text",neutral:"text-text-secondary"};function Zp(e){return e>0?"up":e<0?"down":"flat"}function O2(e,t,r){switch(e){case "percent":return {type:"percentage",decimals:t};case "currency":return {type:"currency",currency:r,minimumFractionDigits:t,maximumFractionDigits:t};case "compact":return {type:"number",notation:"compact",decimals:t,thousandsSeparator:true};default:return {type:"number",decimals:t,thousandsSeparator:true}}}function Jx({value:e,row:t,context:r,direction:o,tone:n="neutral",format:a="number",decimals:i=0,currency:s="USD",showIcon:d=true,align:l="right",emphasis:c="normal",emptyText:u="\u2014",className:m}){let{isLoading:p}=r;if(p)return jsxRuntime.jsx(j,{className:Tt(c)});let g=typeof e=="number"?e:Number(e);if(e==null||e===""||!Number.isFinite(g))return jsxRuntime.jsx("div",{className:we(l,"text-text-secondary"),children:u});let f=me(o,t)??Zp(g),h=me(n,t)??"neutral",b=Rr(g,O2(a,i,s))??u,v=g>0?"+":"",C=we(l,tailwindMerge.twMerge(c==="strong"||c==="high"?"font-semibold":void 0,m,V2[h]));return jsxRuntime.jsxs("div",{className:C,children:[d&&jsxRuntime.jsx(z,{name:B2[f],size:"xs","aria-hidden":true}),jsxRuntime.jsx("span",{children:`${v}${b}`})]})}function fc({manufacturer:e,model:t,deviceType:r,deviceTypeIconName:o,logoUrl:n,layout:a="stacked",size:i="md",href:s,LinkComponent:d,linkVariant:l="unstyled",showDeviceTypeIcon:c=true,showLogo:u=true,emphasis:m="normal",isLoading:p=false,className:g,piiEntity:f}){let[h,b]=_e.useState(false),v=o||(r?G2(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],T=n&&!h&&u,N={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?d?jsxRuntime.jsx(d,{href:s,className:E,children:P}):jsxRuntime.jsx(pt,{href:s,variant:l,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(j,{width:C.skeletonIcon,height:C.skeletonIcon,className:"flex-shrink-0 rounded"}),jsxRuntime.jsx(j,{width:C.skeletonText,height:C.skeletonIcon*.6})]}):jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",C.gap,g),children:[jsxRuntime.jsx(j,{width:C.skeletonIcon,height:C.skeletonIcon,className:"flex-shrink-0"}),jsxRuntime.jsxs("div",{className:"flex flex-col gap-1",children:[jsxRuntime.jsx(j,{width:C.skeletonText,height:16}),jsxRuntime.jsx(j,{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:T?jsxRuntime.jsx("img",{src:n,alt:`${e} logo`,className:"w-full h-full object-contain",onError:()=>b(true)}):jsxRuntime.jsx(z,{name:v,size:C.iconSize*.6,className:"text-text-secondary"})}),jsxRuntime.jsx(R,{className:tailwindMerge.twMerge("truncate leading-normal hover:text-text-primary",N,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:T?jsxRuntime.jsx("img",{src:n,alt:`${e} logo`,className:"w-full h-full object-contain",onError:()=>b(true)}):jsxRuntime.jsx(z,{name:v,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",N,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:[c&&jsxRuntime.jsx(z,{name:v,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 G2(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 jx({row:e,context:t,manufacturer:r,model:o,deviceType:n,logoUrl:a,layout:i="stacked",size:s="sm",href:d,LinkComponent:l,linkVariant:c="secondary",showDeviceTypeIcon:u=true,showLogo:m=true,emphasis:p="normal",align:g="left",className:f,piiEntity:h}){let{isLoading:b}=t,v=me(r,e),y=me(o,e),C=me(n,e),T=me(a,e),w=me(d,e),N=me(h,e),R=we(g,f);return jsxRuntime.jsx("div",{className:R,children:jsxRuntime.jsx(fc,{manufacturer:v,model:y,deviceType:C,logoUrl:T,layout:i,size:s,href:w,LinkComponent:l,linkVariant:c,showDeviceTypeIcon:u,showLogo:m,emphasis:p,isLoading:b,piiEntity:N})})}var BX={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},W2=["charging","discharging","heat","cool","on","circulate","connected"],U2={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 _p(e){return W2.includes(e)}function $p(e){return U2[e]}function la({state:e,label:t,icon:r,isLoading:o,size:n="sm",shape:a="pill",dot:i,dotPulse:s,fixedWidth:d,className:l,...c}){if(o)return jsxRuntime.jsx(j,{className:"inline-flex h-6 w-20"});let u=t??$p(e),m=_p(e);return jsxRuntime.jsxs(gt,{variant:e,size:n,shape:a,dot:i??m,dotPulse:s??m,className:d?`w-28 justify-center ${l||""}`:l,...c,children:[r&&jsxRuntime.jsx(z,{name:r,size:n==="sm"?12:n==="md"?14:16}),u]})}var Y2={importing:"Importing",exporting:"Exporting",idle:"Idle",unknown:"Unknown"};function Qx(e){return Y2[e]}var J2={importing:"ArrowDown",exporting:"ArrowUp"};function bc({state:e,label:t,showIcon:r=false,isLoading:o,size:n="sm",shape:a="pill",fixedWidth:i,className:s,...d}){if(o)return jsxRuntime.jsx(j,{className:"inline-flex h-6 w-24"});let l=t??Qx(e),c=J2[e],u=n==="sm"?12:n==="md"?14:16;return r&&c?jsxRuntime.jsx(gt,{variant:e,size:n,shape:a,className:`w-6 justify-center ${s||""}`,...d,children:jsxRuntime.jsx(z,{name:c,size:u})}):jsxRuntime.jsx(gt,{variant:e,size:n,shape:a,className:i?`w-28 justify-center ${s||""}`:s,...d,children:l})}function hc({state:e,stateLabel:t,metric:r,metricFormatter:o,secondaryState:n,layout:a="horizontal",isLoading:i,size:s="sm",shape:d="pill",icon:l,fixedWidth:c,secondaryStateIconOnly:u=false,className:m}){if(i)return jsxRuntime.jsx(j,{className:tailwindMerge.twMerge("inline-flex h-6 w-32",m)});let p=r!=null&&o?Rr(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(la,{state:e,label:t,icon:l,size:s,shape:d,fixedWidth:c}),n&&jsxRuntime.jsx(jsxRuntime.Fragment,{children:n==="importing"||n==="exporting"?jsxRuntime.jsx(bc,{state:n,size:s,shape:d,fixedWidth:c,showIcon:u}):jsxRuntime.jsx(la,{state:n,size:s,shape:d,fixedWidth:c})})]})}function Zx({value:e,row:t,context:r,metric:o,metricFormatter:n,secondaryState:a,size:i="sm",shape:s="pill",label:d,icon:l,fixedWidth:c=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],T=o!=null||n!=null;return jsxRuntime.jsx("div",{className:"flex items-center gap-2",children:T?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(j,{className:"h-4 w-12"}),jsxRuntime.jsx(j,{className:`h-6 w-24 ${C}`}),jsxRuntime.jsx(j,{className:`h-6 w-20 ${C}`})]}):jsxRuntime.jsx(j,{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),h=me(a,t),b=typeof d=="function"?d(e,t):d,v=we(u,p);return f!=null||n?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(v),children:jsxRuntime.jsx(hc,{state:e,stateLabel:b,metric:f,metricFormatter:n,secondaryState:h||void 0,size:i,shape:s,icon:l,fixedWidth:c,secondaryStateIconOnly:m,layout:"horizontal"})}):jsxRuntime.jsx("div",{className:v,children:jsxRuntime.jsx(la,{state:e,label:b,icon:l,size:i,shape:s,fixedWidth:c})})}function $x({value:e,row:t,context:r,formatter:o,align:n="left",emphasis:a="normal",href:i,linkBehavior:s="hover",className:d,emptyText:l="\u2014",emptyClassName:c="text-text-secondary"}){let{isLoading:u}=r;if(u)return jsxRuntime.jsx(j,{className:Tt(a)});let m=fo({value:e,formatter:o,emptyText:l,emptyClassName:c}),p=wr(a),g=we(n,tailwindMerge.twMerge(p,d)),f=jsxRuntime.jsx("div",{className:g,children:m}),h=me(i,t);return h?Po(f,h,t,s):f}var tm=_e__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:d=20,minWidth:l=4,segments:c,segmentGap:u=2,barWidth:m,context:p})=>{let g=_e.useMemo(()=>r===t?100:Math.max(0,Math.min(100,(e-t)/(r-t)*100)),[e,t,r]),f=_e.useMemo(()=>o==="auto"&&a?a.type==="diverging"&&a.center!==void 0?Di(e,t,r,a.center,a.scheme):Li(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:d},children:jsxRuntime.jsx("div",{className:"h-full flex-1 animate-pulse bg-border-default rounded"})});if(c&&c>0){let v=`calc((100% - ${u*(c-1)}px) / ${c})`,y=Math.ceil(g/100*c),C={height:d,...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:c}).map((T,w)=>{let N=w<y;return jsxRuntime.jsx("div",{className:"rounded-sm",style:{width:v,backgroundColor:N?f:n==="none"?"transparent":n,marginRight:w<c-1?`${u}px`:0}},w)})}),i&&jsxRuntime.jsx("span",{className:"text-sm text-text-primary whitespace-nowrap",children:s?s(e):e.toLocaleString()})]})}let h={height:d,backgroundColor:n==="none"?"transparent":n,...m&&{width:typeof m=="number"?`${m}px`:m,flexShrink:0}};return jsxRuntime.jsxs("div",{className:"flex items-center gap-2 w-full",children:[jsxRuntime.jsx("div",{className:`relative rounded-sm ${m?"":"flex-1"}`,style:h,children:jsxRuntime.jsx("div",{className:"absolute left-0 top-0 h-full rounded-sm",style:{width:`${g}%`,minWidth:g>0?l:0,backgroundColor:f}})}),i&&jsxRuntime.jsx("span",{className:"text-sm text-text-primary whitespace-nowrap",children:s?s(e):e.toLocaleString()})]})});tm.displayName="HorizontalBarCell";function tE(e){return Math.max(1,String(Math.max(1,Math.trunc(e))).length)}function ry({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(j,{className:Tt("normal")});if(typeof s!="number"||!Number.isFinite(s))return jsxRuntime.jsx("div",{className:we(n,"text-text-muted"),children:"\u2014"});let d=s+t,l=r??(o===void 0?void 0:tE(o+t-1)),c=l===void 0?String(d):String(d).padStart(l,"0");return jsxRuntime.jsx("div",{className:we(n,tailwindMerge.twMerge("font-mono text-text-muted tabular-nums",a)),children:jsxRuntime.jsx("span",{children:c})})}var rm=_e__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||[],d=h=>"xValue"in h?h.xValue:h.x,l=h=>"yValue"in h?h.yValue:h.y,c=a||100,u=i,{xScale:m,yScale:p,barWidth:g}=_e.useMemo(()=>{if(s.length===0)return {xScale:scale.scaleTime({range:[0,c],domain:[new Date,new Date]}),yScale:scale.scaleLinear({range:[u,0],domain:[0,1]}),barWidth:2};let h=d3Array.extent(s,N=>d(N)),b=d3Array.min(s,N=>l(N))??0,v=d3Array.max(s,N=>l(N))??0,y=b<0?b:0,C=scale.scaleTime({range:[0,c],domain:h}),T=scale.scaleLinear({range:[u,0],domain:[y,v*1.05]}),w=s.length>1?c/s.length*.8:8;return {xScale:C,yScale:T,barWidth:Math.max(2,w)}},[s,c,u]);if(n.isLoading)return jsxRuntime.jsx("div",{className:"flex items-center gap-0.5",style:{width:c,height:u},children:Array.from({length:5}).map((h,b)=>jsxRuntime.jsx("div",{className:"flex-1 animate-pulse bg-border-default rounded"},b))});if(!s||s.length===0)return jsxRuntime.jsx("div",{className:"flex items-center justify-center text-text-secondary text-xs",style:{width:c,height:u},children:"No data"});let f=p(0);return jsxRuntime.jsx("svg",{width:c,height:u,children:s.map((h,b)=>{let v=l(h),y=m(d(h)),C=p(v),T=Math.abs(f-C),w=h.category&&o?.[h.category]?o[h.category]:r;return jsxRuntime.jsx(shape.Bar,{x:y-g/2,y:v>=0?C:f,width:g,height:T,fill:w,rx:1},`bar-${b}`)})})});rm.displayName="MiniBarCell";function ay({value:e,row:t,context:r,format:o="number",decimals:n=0,prefix:a,suffix:i,emptyText:s="\u2014",align:d="right",emphasis:l="normal",href:c,linkBehavior:u="hover",showPositiveSign:m=false,colorCode:p=false,className:g}){let{isLoading:f}=r;if(f)return jsxRuntime.jsx(j,{className:Tt(l)});if(e==null||isNaN(Number(e)))return jsxRuntime.jsx("div",{className:we(d,"text-text-secondary"),children:s});let h=Number(e),b;switch(o){case "currency":b=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:n,maximumFractionDigits:n}).format(h);break;case "percent":b=new Intl.NumberFormat("en-US",{style:"percent",minimumFractionDigits:n,maximumFractionDigits:n}).format(h/100);break;case "compact":b=new Intl.NumberFormat("en-US",{notation:"compact",minimumFractionDigits:n>0?1:0,maximumFractionDigits:n}).format(h);break;default:b=new Intl.NumberFormat("en-US",{minimumFractionDigits:n,maximumFractionDigits:n}).format(h);}let y=`${m&&h>0?"+":""}${b}`,C=p?dc(h,true):wr(l),T=we(d,tailwindMerge.twMerge(C,g)),w=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[a&&jsxRuntime.jsx("span",{className:"text-text-secondary",children:a}),jsxRuntime.jsx("span",{children:y}),i&&jsxRuntime.jsx("span",{className:"text-text-secondary",children:i})]}),N=me(c,t);return N?jsxRuntime.jsx("div",{className:T,children:Po(w,N,t,u)}):jsxRuntime.jsx("div",{className:T,children:w})}var pE={low:"var(--color-feedback-warning-text)",critical:"var(--color-feedback-error-text)"};function nm(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 am=_e__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:d,context:l})=>{let c=_e.useMemo(()=>Math.max(0,Math.min(100,e)),[e]),u=_e.useMemo(()=>nm(c,d),[c,d]),m=_e.useMemo(()=>u?pE[u]:r==="auto"&&s?s.type==="diverging"&&s.center!==void 0?Di(e,0,100,s.center,s.scheme):Li(e,0,100,s.scheme):r,[r,s,u,e]);if(l.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(c/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((h,b)=>{let v=b<f,y=m;if(!u&&r==="auto"&&s&&v){let C=(b+1)/a*100;s.type==="diverging"&&s.center!==void 0?y=Di(C,0,100,s.center,s.scheme):y=Li(C,0,100,s.scheme);}return jsxRuntime.jsx("div",{className:"rounded-sm",style:{width:g,backgroundColor:v?y: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:[c.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:`${c}%`,backgroundColor:m}})}),t&&jsxRuntime.jsxs("span",{className:"text-sm text-text-primary whitespace-nowrap",children:[c.toFixed(0),"%"]})]})});am.displayName="PercentBarCell";var fE="\u2013",iy="\u200A";function sy(e){if(e==null||e==="")return;let t=typeof e=="number"?e:Number(e);return Number.isFinite(t)?t:void 0}function ly({row:e,context:t,min:r,max:o,decimals:n=0,unit:a,emptyText:i="\u2014",align:s="right",emphasis:d="normal",className:l}){let{isLoading:c}=t;if(c)return jsxRuntime.jsx(j,{className:Tt(d)});let u=sy(me(r,e)),m=sy(me(o,e));if(u===void 0&&m===void 0)return jsxRuntime.jsx("div",{className:we(s,"text-text-secondary"),children:i});let p=h=>new Intl.NumberFormat("en-US",{minimumFractionDigits:n,maximumFractionDigits:n}).format(h),g=u!==void 0&&m!==void 0?`${p(u)}${iy}${fE}${iy}${p(m)}`:p(u!==void 0?u:m),f=we(s,tailwindMerge.twMerge("tabular-nums",wr(d),l));return jsxRuntime.jsxs("div",{className:f,children:[jsxRuntime.jsx("span",{children:g}),a&&jsxRuntime.jsx("span",{className:"text-text-secondary",children:a})]})}function Sc({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(j,{className:"h-4 w-4 rounded"})});let s=me(n,e),d=we(a);return jsxRuntime.jsx("div",{className:d,children:jsxRuntime.jsx(eo,{isSelected:r,onChange:l=>{o?.(e,l);},isDisabled:s,"aria-label":"Select row"})})}function wc({streetAddress:e,city:t,state:r,postalCode:o,layout:n="stacked",size:a="md",href:i,LinkComponent:s,linkVariant:d="unstyled",emphasis:l="normal",isLoading:c=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"}[l],v=[];t&&v.push(t),r&&o?v.push(`${r} ${o}`):r?v.push(r):o&&v.push(o);let y=v.join(", "),C=({children:w,className:N})=>i?s?jsxRuntime.jsx(s,{href:i,className:N,children:w}):jsxRuntime.jsx(pt,{href:i,variant:d,className:tailwindMerge.twMerge("hover:underline",N),asButton:false,children:w}):jsxRuntime.jsx("span",{className:N,children:w});if(c)return n==="inline"?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",f.gap,m),children:[u&&jsxRuntime.jsx(j,{width:f.skeletonIconInline,height:f.skeletonIconInline,className:"flex-shrink-0 rounded"}),jsxRuntime.jsx(j,{width:f.skeletonText,height:f.skeletonIconInline*.8})]}):jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",f.gap,m),children:[u&&jsxRuntime.jsx(j,{width:f.skeletonIconStacked,height:f.skeletonIconStacked,className:"flex-shrink-0 rounded"}),jsxRuntime.jsxs("div",{className:"flex flex-col gap-1",children:[jsxRuntime.jsx(j,{width:f.skeletonText,height:16}),jsxRuntime.jsx(j,{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(z,{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 T=()=>{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(z,{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})}),y&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-text-secondary leading-normal truncate",f.secondaryTextSize),"data-pii-type":T(),"data-pii-entity":p,children:y})]})]})}function dy({row:e,context:t,streetAddress:r,city:o,state:n,postalCode:a,layout:i="stacked",size:s="sm",href:d,LinkComponent:l,linkVariant:c="secondary",emphasis:u="normal",align:m="left",className:p,piiEntity:g}){let{isLoading:f}=t,h=me(r,e),b=me(o,e),v=me(n,e),y=me(a,e),C=me(d,e),T=me(g,e),w=we(m,p);return jsxRuntime.jsx("div",{className:w,children:jsxRuntime.jsx(wc,{streetAddress:h,city:b,state:v,postalCode:y,layout:i,size:s,href:C,LinkComponent:l,linkVariant:c,emphasis:u,isLoading:f,piiEntity:T})})}var im=_e__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:d=40})=>{let l=e||t||[],c=s||100,u=d,{xScale:m,yScale:p}=_e.useMemo(()=>{if(l.length===0)return {xScale:scale.scaleTime({range:[0,c],domain:[new Date,new Date]}),yScale:scale.scaleLinear({range:[u,0],domain:[0,1]})};let f=d3Array.extent(l,y=>y.xValue),h=d3Array.min(l,y=>y.yValue)||0,b=d3Array.max(l,y=>y.yValue)||0,v=(b-h)*.1||1;return {xScale:scale.scaleTime({range:[0,c],domain:f}),yScale:scale.scaleLinear({range:[u,0],domain:[h-v,b+v]})}},[l,c,u]);if(i.isLoading)return jsxRuntime.jsx("div",{className:"flex items-center",style:{width:c,height:u},children:jsxRuntime.jsx("div",{className:"h-1 w-full animate-pulse bg-border-default rounded"})});if(!l||l.length===0)return jsxRuntime.jsx("div",{className:"flex items-center justify-center text-text-secondary text-xs",style:{width:c,height:u},children:"No data"});let g=a&&l[0]?.category&&a[l[0].category]?a[l[0].category]:o;return jsxRuntime.jsxs("svg",{width:c,height:u,className:"overflow-visible",children:[(r==="area"||r==="both")&&jsxRuntime.jsx(shape.AreaClosed,{data:l,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:l,x:f=>m(f.xValue),y:f=>p(f.yValue),stroke:g,strokeWidth:n,strokeLinecap:"round",curve:curve.curveLinear})]})});im.displayName="SparklineCell";function fy({value:e,row:t,context:r,prefix:o,suffix:n,emptyText:a="\u2014",href:i,linkBehavior:s="hover",linkVariant:d="secondary",emphasis:l="normal",truncate:c=true,copyable:u=false,align:m="left",className:p,piiType:g,piiEntity:f}){let{isLoading:h}=r;if(h)return jsxRuntime.jsx(j,{className:Tt(l)});let b=cc(e,a),v=me(i,t),y=me(f,t),C=b,T=false,w=false;if(c&&b&&typeof b=="string")if(typeof c=="boolean")w=true;else {let{position:M="end",length:H=16,ellipsis:Y="...",tooltip:V=true}=c;if(b.length>H){switch(M){case "start":C=tl(b,H);break;case "middle":C=Va(b,H);break;case "end":C=rl(b,H,Y);break}T=V;}}let N=g&&y?{"data-pii-type":g,"data-pii-entity":y}:{},R=Object.keys(N).length>0,P=jsxRuntime.jsx("span",{className:w?"truncate":"",...N,children:C}),E=T?jsxRuntime.jsx(Zt,{content:R?jsxRuntime.jsx("span",{...N,children:String(b)}):String(b),children:P}):P,D=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=D;if(u&&b&&b!==a){let M=typeof u=="function"?u(t):String(b);k=jsxRuntime.jsx(pn,{value:M,size:"sm",children:D});}if(v){let M=we(m,p);return jsxRuntime.jsx("div",{className:M,children:Po(k,v,t,s,d,l)})}let A=we(m,tailwindMerge.twMerge(wr(l),p));return jsxRuntime.jsx("div",{className:A,children:k})}var PE={sm:"sm:hidden",md:"md:hidden",lg:"lg:hidden",xl:"xl:hidden"},RE={sm:"hidden sm:grid",md:"hidden md:grid",lg:"hidden lg:grid",xl:"hidden xl:grid"};function Nc(e,t){return t.accessor?typeof t.accessor=="function"?t.accessor(e):e[t.accessor]:null}function Tc(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 Pc({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"),d=a.filter(u=>u.mobileFormat==="badge"),l={isLoading:!!o,rowIndex:0,columnIndex:0,density:r};return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("border-b border-border-default bg-background-surface transition-colors",n&&"cursor-pointer hover:bg-background-hover active:bg-background-pressed",{compact:"px-3 py-2",default:"px-4 py-3",relaxed:"px-4 py-4"}[r]),onClick:n,role:n?"button":void 0,tabIndex:n?0:void 0,children:[i.length>0&&jsxRuntime.jsxs("div",{className:"mb-2 flex items-start justify-between",children:[jsxRuntime.jsx("div",{className:"flex-1",children:i.map(u=>{let m=Nc(e,u);return jsxRuntime.jsx("div",{className:"font-medium text-text-primary [&>*]:!justify-start [&>*]:!text-left",children:Tc(m,e,u,l)},u.id)})}),d.length>0&&jsxRuntime.jsx("div",{className:"ml-2 flex flex-wrap gap-1",children:d.map(u=>{let m=Nc(e,u);return jsxRuntime.jsx("div",{className:"inline-flex",children:Tc(m,e,u,l)},u.id)})})]}),s.length>0&&jsxRuntime.jsx("div",{className:"space-y-1",children:s.map(u=>{let m=Nc(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(z,{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:Tc(m,e,u,l)})]},u.id)})})]})}function Rc({row:e,columns:t,density:r,isLoading:o,onClick:n}){let a=t.filter(d=>d.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((d,l)=>{let c=Nc(e,d),u=l===0;return jsxRuntime.jsxs("div",{children:[!u&&jsxRuntime.jsx("div",{className:"text-xs text-text-secondary",children:d.label}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(u?"font-medium text-text-primary":"text-sm text-text-primary","[&>*]:!justify-start [&>*]:!text-left"),children:Tc(c,e,d,i)})]},d.id)})})})}function gy(e="md"){return {mobile:PE[e],desktop:RE[e]}}function by({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 GE={compact:"py-1.5 px-3 text-sm",default:"py-3 px-4 text-sm",relaxed:"py-4 px-4 text-base"},WE={left:"text-left justify-start",center:"text-center justify-center",right:"text-right justify-end"};function UE(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({column:e,sortConfig:t,onSort:r,stickyHeader:o,stickyFirstColumn:n,isFirstColumn:a,density:i="default",isLoading:s=false,headerContent:d,sortNote:l}){let c=e.reorderable!==false,{attributes:u,listeners:m,setNodeRef:p,transform:g,transition:f,isDragging:h}=sortable.useSortable({id:e.id,disabled:!c||s}),{role:b,"aria-pressed":v,...y}=u,C=t?.columnId===e.id,T=C?t.direction:null,w=n&&a,N=C?l:void 0,R={...UE(e),transform:utilities.CSS.Transform.toString(g),transition:f,opacity:h?.8:1,zIndex:h?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",GE[i],WE[e.align||"left"],o&&"sticky top-0 z-10",w&&"sticky left-0 z-20 shadow-[2px_0_4px_-2px_rgba(0,0,0,0.1)]",o&&w&&"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",h&&"bg-background-hover"),style:R,...y,...m,role:"columnheader","aria-sort":C?T==="asc"?"ascending":"descending":"none","aria-disabled":s,title:N,"data-sort-note":N,children:s?jsxRuntime.jsx(j,{className:"h-4 w-24"}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[d??jsxRuntime.jsx("span",{className:"flex-1 truncate cursor-pointer",onClick:()=>!s&&e.sortable&&r(e.id),children:e.label}),N&&jsxRuntime.jsx("span",{className:"sr-only",children:N}),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(z,{name:T==="asc"?"CaretUp":"CaretDown",size:14,weight:N?"regular":"bold",className:N?"text-text-secondary opacity-40":"text-text-primary"}):jsxRuntime.jsx(z,{name:"CaretUpDown",size:12,className:"text-text-secondary opacity-40"})})]})})}function xy({columns:e,columnOrder:t,onColumnOrderChange:r,sortConfig:o,onSort:n,stickyHeader:a,stickyFirstColumn:i,density:s="default",isLoading:d=false,renderHeaderContent:l,sortNote:c}){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:h,over:b}=f;if(b&&h.id!==b.id){let v=t.indexOf(h.id),y=t.indexOf(b.id);if(m.get(b.id)?.reorderable===false)return;let T=0;for(let P=0;P<t.length&&m.get(t[P])?.reorderable===false;P++)T=P+1;if(y<T)return;let w=Math.min(v,y),N=Math.max(v,y);for(let P=w;P<=N;P++){if(P===v)continue;if(m.get(t[P])?.reorderable===false)return}let R=sortable.arrayMove(t,v,y);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,h)=>jsxRuntime.jsx(KE,{column:f,sortConfig:o,onSort:n,stickyHeader:a,stickyFirstColumn:i,isFirstColumn:h===0,density:s,isLoading:d,headerContent:l?.(f),sortNote:c},f.id))})})})}var Ec="__select",QE=new Set,lm={compact:"py-1.5 px-3 text-sm",default:"py-3 px-4 text-sm",relaxed:"py-4 px-4 text-base"},cm={left:"text-left justify-start",center:"text-center justify-center",right:"text-right justify-end"},ZE={full:"w-full",auto:"w-auto inline-block",contained:"w-full max-w-6xl mx-auto"},_E={auto:"table-auto",fixed:"table-fixed",responsive:"table-auto"};function yy(e){if(typeof e=="number")return e;let t=/^(\d+(?:\.\d+)?)px$/.exec(e.trim());return t?Number(t[1]):0}function dm(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 $E(e,t){return t.accessor?typeof t.accessor=="function"?t.accessor(e):e[t.accessor]:null}function eM({column:e,sortConfig:t,onSort:r,stickyHeader:o,stickyFirstColumn:n,isFirstColumn:a,density:i="default",isLoading:s=false,headerContent:d,sortNote:l}){let c=t?.columnId===e.id,u=c?t.direction:null,m=n&&a,p=c?l: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",lm[i],cm[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",c?"font-bold text-text-primary":"font-medium text-text-secondary"),onClick:()=>!s&&e.sortable&&r(e.id),role:"columnheader","aria-sort":c?u==="asc"?"ascending":"descending":"none","aria-disabled":s,title:p,"data-sort-note":p,style:dm(e),children:s?jsxRuntime.jsx(j,{className:"h-4 w-24"}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[d??jsxRuntime.jsx("span",{className:"truncate",children:e.label}),e.headerTooltip&&jsxRuntime.jsx(Zt,{content:e.headerTooltip,children:jsxRuntime.jsx(te,{variant:"ghost","aria-label":`About ${e.label}`,onClick:g=>g.stopPropagation(),className:"h-auto min-h-0 flex-shrink-0 p-0 text-text-tertiary hover:text-text-secondary",children:jsxRuntime.jsx(z,{name:"Info",size:12,"aria-hidden":true})})}),p&&jsxRuntime.jsx("span",{className:"sr-only",children:p}),e.sortable&&jsxRuntime.jsx("div",{className:"flex flex-shrink-0",children:c?jsxRuntime.jsx(z,{name:u==="asc"?"CaretUp":"CaretDown",size:14,weight:p?"regular":"bold",className:p?"text-text-secondary opacity-40":"text-text-primary"}):jsxRuntime.jsx(z,{name:"CaretUpDown",size:12,className:"text-text-secondary opacity-40"})})]})})}function tM({column:e,row:t,rowIndex:r,columnIndex:o,isHovered:n,isSelected:a,density:i="default",className:s,stickyFirstColumn:d}){let l=d&&o===0,c=$E(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(c,t):e.cellProps;m=jsxRuntime.jsx(p,{value:c,row:t,context:u,...g});}else e.render?m=e.render(c,t,u):m=jsxRuntime.jsx("span",{className:"truncate",children:c?.toString()??""});if(e.popover){let p=e.popover,g,f="top",h=false,b="hover";typeof p=="string"?g=p:typeof p=="function"?g=p(c,t):(g=typeof p.content=="function"?p.content(c,t):p.content,f=p.placement||"top",h=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:h,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?"":lm[i],cm[e.align||"left"],l&&"sticky left-0 z-10 shadow-[2px_0_4px_-2px_rgba(0,0,0,0.1)]",s),role:"cell",style:dm(e),children:m})}function rM({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 d=e.cell,l=typeof e.cellProps=="function"?e.cellProps(null,{}):e.cellProps;s=jsxRuntime.jsx(d,{value:null,row:{},context:i,...l});}else e.render?s=e.render(null,{},i):s=jsxRuntime.jsx(j,{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?"":lm[o],cm[e.align||"left"],a&&"sticky left-0 z-10 shadow-[2px_0_4px_-2px_rgba(0,0,0,0.1)]"),role:"cell",style:dm(e),children:s})}function oM(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 vy({columns:e,row:t,rowIndex:r,density:o="default",onClick:n,stickyFirstColumn:a,isSelected:i}){let[s,d]=_e.useState(false),l=_e.useCallback(c=>{if(!n)return;let u=c.target,m=c.currentTarget;oM(u,m)||n(t);},[n,t]);return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("contents group",n&&"cursor-pointer"),role:"row","aria-selected":i===void 0?void 0:i,onClick:l,onMouseEnter:()=>d(true),onMouseLeave:()=>d(false),children:e.map((c,u)=>jsxRuntime.jsx(tM,{column:c,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},c.id))})}function nM({columns:e,rowIndex:t,density:r="default",stickyFirstColumn:o}){return jsxRuntime.jsx("div",{className:"contents",role:"row",children:e.map((n,a)=>jsxRuntime.jsx(rM,{column:n,rowIndex:t,columnIndex:a,density:r,stickyFirstColumn:o},n.id))})}function Cy({columns:e,data:t,className:r,density:o="default",width:n="full",height:a,maxHeight:i,layout:s="auto",mobileRenderer:d="auto",customMobileRowRender:l,mobileBreakpoint:c="md",isLoading:u=false,loadingState:m,loadingRowCount:p=5,onLoadMore:g,hasMore:f=false,enableVirtualization:h,estimatedRowHeight:b,loadingIndicator:v,stickyHeader:y=false,stickyFirstColumn:C=false,onRowClick:T,getRowId:w,selectedRowIds:N,onSelectionChange:R,selectionMode:P="multi",hideHeader:E=false,sortConfig:D,onSort:k,sortNote:A,"aria-label":M,enableColumnReorder:H=false,columnOrder:Y,onColumnOrderChange:V}){let F=R!==void 0,X=N??QE,O=_e.useCallback((_,be)=>{if(w)return w(_);let Z=_.id;return typeof Z=="string"&&Z.length>0?Z:typeof Z=="number"&&Number.isFinite(Z)?String(Z):`row-${be}`},[w]),U=_e.useMemo(()=>t.map((_,be)=>O(_,be)),[t,O]),J=_e.useCallback((_,be)=>{if(!R)return;if(P==="single"){R(be?new Set([_]):new Set);return}let Z=new Set(X);be?Z.add(_):Z.delete(_),R(Z);},[R,X,P]),G=U.filter(_=>X.has(_)).length,B=U.length>0&&G===U.length,S=G>0&&!B,x=_e.useCallback(_=>{if(!R)return;let be=new Set(X);for(let Z of U)_?be.add(Z):be.delete(Z);R(be);},[R,U,X]),L=_e.useMemo(()=>F?[{id:Ec,label:"",width:44,align:"center",sortable:false,reorderable:false,exportable:false,mobile:false,render:(be,Z,Se)=>{let mo=O(Z,Se.rowIndex);return jsxRuntime.jsx(Sc,{value:void 0,row:Z,context:Se,isSelected:X.has(mo),onSelect:(La,Io)=>J(mo,Io)})}},...e]:e,[e,F,X,O,J]),I=F&&P==="multi"?jsxRuntime.jsx(eo,{isSelected:B,isIndeterminate:S,onChange:_=>x(_),isDisabled:U.length===0,"aria-label":B?"Deselect all rows on this page":"Select all rows on this page"}):void 0,q=_e.useCallback(_=>_.id===Ec?I:void 0,[I]),[ne,ae]=_e.useState(null),$=D!==void 0,ie=$?D:ne,Ie=_e.useRef(null),ue=_e.useMemo(()=>L.map(_=>_.id),[L]),[ge,de]=_e.useState(ue),pe=Y!==void 0,Te=pe?Y:ge;_e.useEffect(()=>{pe||de(_=>{let be=L.map(Io=>Io.id),Z=new Set(be),Se=new Set(_),mo=_.filter(Io=>Z.has(Io)),La=be.filter(Io=>!Se.has(Io));return [...mo,...La]});},[L,pe]);let Qe=_e.useCallback(_=>{pe||de(_),V?.(_);},[pe,V]),Ze=_e.useMemo(()=>{if(!H&&!Y)return L;let _=new Map(L.map(Se=>[Se.id,Se])),be=Te.map(Se=>_.get(Se)).filter(Se=>Se!==void 0),Z=_.get(Ec);return Z&&!be.some(Se=>Se.id===Ec)?[Z,...be]:be},[L,Te,H,Y]),tr=ln({items:t,onLoadMore:g,hasMore:f,isLoading:u,loadingState:m,enableVirtualization:h,estimatedItemSize:b||(o==="compact"?40:o==="relaxed"?60:48),overscan:5}),kt=g||h?tr:null,rr=kt?.scrollRef??Ie,{loadMoreRef:qt,virtualizer:ct,virtualItems:Vt,isLoadingMore:ee,computedLoadingState:Me}=kt||{},{gridTemplateColumns:We,totalMinWidth:re}=_e.useMemo(()=>{let _=0;return {gridTemplateColumns:Ze.map(Z=>{if(Z.minWidth?_+=yy(Z.minWidth):Z.width&&(_+=yy(Z.width)),Z.width)return typeof Z.width=="number"?`${Z.width}px`:Z.width;if(Z.flex)return `${Z.flex}fr`;if(Z.minWidth&&Z.maxWidth){let Se=typeof Z.minWidth=="number"?`${Z.minWidth}px`:Z.minWidth,mo=typeof Z.maxWidth=="number"?`${Z.maxWidth}px`:Z.maxWidth;return `minmax(${Se}, ${mo})`}return Z.minWidth?`minmax(${typeof Z.minWidth=="number"?`${Z.minWidth}px`:Z.minWidth}, 1fr)`:Z.maxWidth?`minmax(0, ${typeof Z.maxWidth=="number"?`${Z.maxWidth}px`:Z.maxWidth})`:"1fr"}).join(" "),totalMinWidth:_}},[Ze]),Re=_e.useCallback(_=>{if(!L.find(Se=>Se.id===_)?.sortable)return;let Z;ie?.columnId===_?Z={columnId:_,direction:ie.direction==="asc"?"desc":"asc"}:Z={columnId:_,direction:"asc"},$||ae(Z),k?.(Z);},[L,ie,k,$]),se=Me==="loading"||u&&t.length===0,W={};a?(W.height=typeof a=="number"?`${a}px`:a,W.overflowY="auto"):i?(W.maxHeight=typeof i=="number"?`${i}px`:i,W.overflowY="auto"):g&&(W.height="600px",W.overflowY="auto"),g&&(W.overflowX="auto");let K=tailwindMerge.twMerge(ZE[n],!g&&(s==="responsive"?"overflow-x-auto scrollbar-visible":"overflow-auto scrollbar-visible"),r),ce=gy(c),oe=d!=="none",ye=(_,be)=>oe?d==="custom"&&l?l(_,be):jsxRuntime.jsx(d==="cards"?Rc:Pc,{row:_,columns:Ze,density:o,isLoading:u,onClick:T?()=>T(_):void 0}):null,ze=ct?Vt?.map(_=>({virtualItem:_,row:t[_.index],index:_.index}))||[]:t.map((_,be)=>({row:_,index:be,virtualItem:null}));return jsxRuntime.jsxs("div",{ref:rr,className:K,style:{...W,position:ct?"relative":void 0},children:[jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("grid border-separate border-spacing-0",_E[s],n==="auto"?"inline-grid w-auto":"w-full",oe&&ce.desktop),role:"table","aria-label":M,style:{gridTemplateColumns:We,minWidth:re>0?`${re}px`:void 0},children:[!E&&(H?jsxRuntime.jsx(xy,{columns:L,columnOrder:Te,onColumnOrderChange:Qe,sortConfig:ie,onSort:Re,stickyHeader:y,stickyFirstColumn:C,density:o,isLoading:se,renderHeaderContent:q,sortNote:A}):jsxRuntime.jsx("div",{className:"contents",role:"rowgroup",children:Ze.map((_,be)=>jsxRuntime.jsx(eM,{column:_,sortConfig:ie,onSort:Re,stickyHeader:y,stickyFirstColumn:C,isFirstColumn:be===0,density:o,isLoading:se,headerContent:q(_),sortNote:A},_.id))})),ct&&!se?jsxRuntime.jsx("div",{className:"col-span-full",style:{gridColumn:"1 / -1",height:`${ct.getTotalSize()}px`,position:"relative"},role:"rowgroup",children:t.length>0?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[ze.map(({row:_,index:be,virtualItem:Z})=>{if(!_||!Z)return null;let Se=w?w(_):`row-${be}`;return jsxRuntime.jsx("div",{style:{position:"absolute",top:0,left:0,width:"100%",display:"grid",gridTemplateColumns:We,transform:`translateY(${Z.start}px)`},"data-index":Z.index,ref:ct.measureElement,children:jsxRuntime.jsx(vy,{columns:Ze,row:_,rowIndex:be,density:o,onClick:T,stickyFirstColumn:C,isSelected:F?X.has(O(_,be)):void 0})},Se)}),ee&&jsxRuntime.jsx("div",{style:{position:"absolute",top:`${ct.getTotalSize()}px`,left:0,width:"100%"},children:v||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:se?Array.from({length:p}).map((_,be)=>jsxRuntime.jsx(nM,{columns:Ze,rowIndex:be,density:o,stickyFirstColumn:C},`loading-${be}`)):t.length>0?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[ze.map(({row:_,index:be})=>{if(!_)return null;let Z=w?w(_):`row-${be}`;return jsxRuntime.jsx(vy,{columns:Ze,row:_,rowIndex:be,density:o,onClick:T,stickyFirstColumn:C,isSelected:F?X.has(O(_,be)):void 0},Z)}),ee&&jsxRuntime.jsx("div",{className:"col-span-full",style:{gridColumn:"1 / -1"},children:v||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:ce.mobile,children:se?Array.from({length:p}).map((_,be)=>jsxRuntime.jsx(by,{density:o},`mobile-loading-${be}`)):t.length>0?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[ze.map(({row:_,index:be})=>{if(!_)return null;let Z=w?w(_):`mobile-row-${be}`;return jsxRuntime.jsx("div",{className:"border-b border-border-default last:border-b-0",children:ye(_,be)},Z)}),ee&&(v||jsxRuntime.jsx(Ur,{state:"loading-more"}))]}):jsxRuntime.jsx("div",{className:"py-12 text-center text-text-secondary",children:"No data available"})}),g&&f&&!se&&(ct?jsxRuntime.jsx("div",{ref:qt,style:{position:"absolute",top:`${ct.getTotalSize()}px`,left:0,width:"100%",height:1}}):jsxRuntime.jsx("div",{ref:qt,className:"h-px w-full"}))]})}function wy({status:e,alertCount:t,showCount:r=false,isLoading:o,size:n="sm",shape:a="pill",...i}){if(o)return jsxRuntime.jsx(j,{className:"inline-flex h-6 w-20"});let s={healthy:"success",warning:"warning",error:"error",unknown:"neutral"},d={healthy:"Healthy",warning:"Warning",error:"Error",unknown:"Unknown"},l=e==="warning"||e==="error",c=r&&t?`${d[e]} (${t})`:d[e];return jsxRuntime.jsx(gt,{variant:s[e],size:n,shape:a,dot:l,dotPulse:l,...i,children:c})}var iM={battery:"BatteryHigh",charger:"ChargingStation",thermostat:"ThermometerSimple",inverter:"Power",vehicle:"Car",water_heater:"DropHalfBottom",meter:"Gauge",gateway:"WifiHigh",other:"Cube",unknown:"Question"},sM={battery:"Battery",charger:"Charger",thermostat:"Thermostat",inverter:"Inverter",vehicle:"Vehicle",water_heater:"Water Heater",meter:"Meter",gateway:"Gateway",other:"Other",unknown:"Unknown"};function Ty({deviceType:e,iconName:t,size:r="md",showLabel:o=false,className:n}){let a=t||(e?iM[e]:"Question"),i=e?sM[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(z,{name:a,size:r}),o&&i&&jsxRuntime.jsx("span",{className:"text-xs text-text-secondary",children:i})]})}function gs({children:e,title:t,headerContent:r,titleAlign:o="left",hideCloseIcon:n=false,hasBackArrow:a=false,onBack:i,isOpen:s,slideInFrom:d="right",transparentOverlay:l=false,onClose:c,className:u,primaryAction:m,secondaryAction:p,tertiaryAction:g,footerContent:f,contentPadding:h=true,maxWidth:b="400px"}){if(!s)return null;let v=t||r,y=m||p||g||f;return jsxRuntime.jsx($r,{children:jsxRuntime.jsx(Pr,{isOpen:s,onOpenChange:C=>!C&&c?.(),isDismissable:true,transparent:l,children:jsxRuntime.jsx(reactAriaComponents.Modal,{className:"outline-none focus:outline-none focus-visible:outline-none ring-0 focus:ring-0 focus-visible:ring-0",children:jsxRuntime.jsxs(reactAriaComponents.Dialog,{className:tailwindMerge.twMerge("fixed top-0 bottom-0 flex flex-col bg-background-surface shadow-xl overflow-hidden",d==="right"?"right-0":"left-0",d==="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",d==="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:[v&&(a&&i?jsxRuntime.jsx(or,{title:t,headerContent:r,titleAlign:o,hideCloseIcon:n,hasBackArrow:true,onBack:i,onClose:c}):jsxRuntime.jsx(or,{title:t,headerContent:r,titleAlign:o,hideCloseIcon:n,onClose:c})),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-1 overflow-y-auto overscroll-contain",h?"px-6 py-6":"p-0"),children:e}),y&&jsxRuntime.jsx(an,{primaryAction:m,secondaryAction:p,tertiaryAction:g,footerContent:f})]})})})})}gs.displayName="Drawer";function Py({status:e,programName:t,isLoading:r,size:o="sm",shape:n="pill",...a}){if(r)return jsxRuntime.jsx(j,{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"},d=jsxRuntime.jsx(gt,{variant:i[e],size:o,shape:n,...a,children:s[e]});return t?jsxRuntime.jsx(Zt,{content:t,children:d}):d}function Ey({value:e,onChange:t,onUrlChange:r,accept:o="image/*",maxSize:n,isDisabled:a=false,onUpload:i,className:s,showPreview:d=true,placeholder:l="Drop files here or click to browse"}){let[c,u]=_e.useState(false),[m,p]=_e.useState(false),[g,f]=_e.useState(null),[h,b]=_e.useState(e),v=_e.useRef(null),y=async w=>{if(f(null),n&&w.size>n){f(`File size must be less than ${(n/1024/1024).toFixed(2)}MB`);return}if(d&&w.type.startsWith("image/")){let N=new FileReader;N.onloadend=()=>{b(N.result);},N.readAsDataURL(w);}if(i){p(true);try{let N=await i(w);b(N),r?.(N);}catch(N){f("Failed to upload file"),console.error("Upload error:",N);}finally{p(false);}}t?.(w,h);},C=async w=>{try{let N=w.items;if(N.length>0){let R=N[0];if(R.kind==="file"){let P=await R.getFile();P&&y(P);}}}catch(N){f("Failed to upload file"),console.error("Upload error:",N);}finally{u(false);}},T=()=>{b(void 0),f(null),t?.(null),r?.(""),v.current&&(v.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",c?"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:[h?jsxRuntime.jsxs("div",{className:"relative flex h-full w-full items-center justify-center p-4",children:[d&&(h.startsWith("data:image")||h.startsWith("http"))?jsxRuntime.jsx("img",{src:h,alt:"Preview",className:"max-h-48 max-w-full rounded-md object-contain"}):jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-2",children:[jsxRuntime.jsx(lucideReact.Image,{className:"h-12 w-12 text-text-secondary"}),jsxRuntime.jsx("span",{className:"text-sm text-text-secondary",children:"File uploaded"})]}),!a&&jsxRuntime.jsx(te,{variant:"icon",size:"sm",onPress:T,className:"absolute right-2 top-2 bg-background-surface shadow-md",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"})})]}):jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-4 p-6",children:[jsxRuntime.jsx(lucideReact.Upload,{className:"h-12 w-12 text-text-secondary"}),jsxRuntime.jsxs("div",{className:"text-center",children:[jsxRuntime.jsx("p",{className:"text-sm text-text-primary",children:l}),jsxRuntime.jsx("p",{className:"mt-1 text-xs text-text-secondary",children:o==="image/*"?"PNG, JPG, GIF up to 10MB":`Accepts ${o}`})]}),jsxRuntime.jsx(reactAriaComponents.FileTrigger,{acceptedFileTypes:o.split(","),onSelect:w=>{let N=Array.from(w||[]);N.length>0&&y(N[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 Ly({version:e,isLatest:t,updateAvailable:r,isLoading:o,size:n="sm",shape:a="rounded",...i}){if(o)return jsxRuntime.jsx(j,{className:"inline-flex h-6 w-16"});let s="neutral",d=e;return t?s="success":r&&(s="warning",d=`${e} (Update)`),jsxRuntime.jsx(gt,{variant:s,size:n,shape:a,...i,children:d})}function ui(e){return jsxRuntime.jsx(reactAriaComponents.Form,{validationBehavior:"aria",...e,className:tailwindMerge.twMerge("flex flex-col gap-6",e.className)})}function Ay({placeholder:e="Search...",value:t,onChange:r,isOpen:o,onOpenChange:n,trigger:a,children:i,showShortcutHint:s=true,showInput:d=true,className:l}){let[c,u]=_e.useState(false),m=cr("(max-width: 767px)"),p=o!==void 0?o:c,g=_e.useCallback(v=>{n?n(v):u(v);},[n]);_e.useEffect(()=>{let v=y=>{(y.metaKey||y.ctrlKey)&&y.key==="k"&&(y.preventDefault(),g(!p)),y.key==="Escape"&&p&&g(false);};return window.addEventListener("keydown",v),()=>window.removeEventListener("keydown",v)},[p,g]);let f=_e.useCallback(v=>{r?.(v);},[r]),h=jsxRuntime.jsxs("button",{type:"button",className:"flex items-center gap-2 px-3 py-2 text-sm text-text-secondary hover:text-text-primary hover:bg-background-hover rounded-md transition-colors","aria-label":"Open search",children:[jsxRuntime.jsx(z,{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||_e.isValidElement(a)&&a.type===_e.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:h})),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:[d&&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:l,autoFocus:true})}),jsxRuntime.jsx("div",{className:"flex-1 min-h-0 overflow-hidden",children:i})]})})]}):b?null:jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{isOpen:p,onOpenChange:g,children:[a||h,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:[d&&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:l,autoFocus:true})}),jsxRuntime.jsx("div",{className:"max-h-[500px] overflow-hidden",children:i})]})})]})}function By({placeholder:e="Search...",value:t,onChange:r,isOpen:o,onOpenChange:n,children:a,maxHeight:i="400px",variant:s="default",className:d}){let[l,c]=_e.useState(false),u=cr("(max-width: 767px)"),m=_e.useRef(null),p=_e.useRef(null),g=o!==void 0?o:l,f=_e.useCallback(E=>{n?n(E):c(E);},[n]);_e.useEffect(()=>{let E=D=>{(D.metaKey||D.ctrlKey)&&D.key==="k"&&(D.preventDefault(),f(!g)),D.key==="Escape"&&g&&f(false);};return window.addEventListener("keydown",E),()=>window.removeEventListener("keydown",E)},[g,f]),_e.useEffect(()=>{g&&!u&&m.current&&setTimeout(()=>{m.current?.querySelector("input")?.focus();},0);},[g,u]),_e.useEffect(()=>{if(!g||u)return;let E=D=>{let k=D.target,A=m.current?.contains(k),M=p.current?.contains(k);!A&&!M&&f(false);};return document.addEventListener("mousedown",E,true),()=>document.removeEventListener("mousedown",E,true)},[g,u,f]);let h=E=>{r?.(E);},b=_e.useCallback(()=>{f(false);},[f]),v=_e.useCallback(()=>{r?.("");},[r]),[y,C]=_e.useState(null);_e.useEffect(()=>{if(g&&!u&&m.current){let E=null,D=()=>{let A=m.current?.getBoundingClientRect();A&&C({top:A.bottom+8,left:A.left,width:A.width});},k=()=>{E===null&&(E=requestAnimationFrame(()=>{D(),E=null;}));};return D(),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 T=_e.useCallback(()=>{f(true);},[f]);if(u)return jsxRuntime.jsxs("div",{className:d,children:[jsxRuntime.jsx("button",{type:"button",onClick:T,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(z,{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:h,placeholder:e,showSearchIcon:true,isClearable:!!t,onClear:v,reserveErrorSpace:false,autoFocus:true})}),jsxRuntime.jsx(te,{variant:"icon",onPress:b,"aria-label":"Close search",className:"flex-shrink-0",children:jsxRuntime.jsx(z,{name:"X",size:"md"})})]}),jsxRuntime.jsx("div",{className:"mt-4",children:a})]})]},"mobile");let w=E=>{let k=E.target.tagName==="INPUT";if(E.key==="ArrowDown"&&g&&k){E.preventDefault();let A=p.current?.querySelector("[data-search-result]");A&&A.focus();}},N=E=>{let D=E.target;if(!D.hasAttribute("data-search-result"))return;let A=Array.from(p.current?.querySelectorAll("[data-search-result]")||[]),M=A.indexOf(D);if(E.key==="ArrowDown"){E.preventDefault(),E.stopPropagation();let H=Math.min(M+1,A.length-1);A[H]?.focus();}else if(E.key==="ArrowUp")if(E.preventDefault(),E.stopPropagation(),M===0)m.current?.querySelector("input")?.focus();else {let H=Math.max(M-1,0);A[H]?.focus();}else E.key==="Escape"&&(E.preventDefault(),E.stopPropagation(),f(false),m.current?.querySelector("input")?.focus());},R=g&&y&&typeof document<"u"?reactDom.createPortal(jsxRuntime.jsx("div",{ref:p,style:{position:"fixed",top:`${y.top}px`,left:`${y.left}px`,width:`${y.width}px`,zIndex:9999},role:"listbox",onKeyDown:N,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 ${d||""}`,onKeyDown:w,children:[jsxRuntime.jsx(qr,{value:t,onChange:h,placeholder:e,showSearchIcon:true,isClearable:!!t,onClear:()=>r?.(""),reserveErrorSpace:false,className:P,onFocus:()=>f(true)}),R]},"desktop")}function Vy({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(z,{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 zy({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(j,{width:20,height:20,variant:"circle"}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0 space-y-2",children:[jsxRuntime.jsx(j,{width:"60%",height:16}),jsxRuntime.jsx(j,{width:"40%",height:12})]}),jsxRuntime.jsx(j,{width:16,height:16})]},o))})}function Gy({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 Wy({id:e,title:t,subtitle:r,metadata:o,icon:n,customIcon:a,onSelect:i,isFocused:s=false,className:d,testId:l}){return jsxRuntime.jsxs("div",{role:"option",tabIndex:0,onClick:()=>{i?.(e);},onKeyDown:m=>{let p=m.currentTarget;switch(m.key){case "Enter":case " ":{m.preventDefault(),i?.(e);break}case "ArrowDown":{m.preventDefault();let 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 h=document.querySelector('input[type="text"][placeholder*="Search"]');h&&h.focus();}break}case "Escape":{m.preventDefault();let g=document.querySelector('input[type="text"][placeholder*="Search"]');g&&g.focus();break}}},"data-testid":l,"data-search-result":true,className:tailwindMerge.twMerge("group flex items-center gap-3 px-4 py-3 cursor-pointer outline-none transition-colors","text-text-primary hover:bg-background-hover","focus-visible:bg-background-muted focus-visible:outline-none","data-[focused]:bg-background-hover",s&&"bg-background-hover",d),"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(z,{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(z,{name:"ArrowRight",size:16,className:"text-text-secondary"})})]})}function Uy({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 Yy({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 EM={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"},MM={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"}},LM={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"},DM={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"},AM={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"},IM={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},FM={start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},BM={row:"grid-flow-row",col:"grid-flow-col",dense:"grid-flow-dense","row-dense":"grid-flow-row-dense","col-dense":"grid-flow-col-dense"},VM={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"},OM={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 Xy(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 cm({cols:e=1,gap:t="md",gapX:r,gapY:o,align:n="stretch",justify:a="start",flow:i="row",autoFit:s,autoFill:c,className:l,children:d}){let u=tailwindMerge.twMerge("grid",s||c?"":Xy(e,EM,MM),!r&&!o&&LM[t],r&&DM[r],o&&AM[o],IM[n],FM[a],BM[i],l),m={};return s?m.gridTemplateColumns=`repeat(auto-fit, minmax(${s}, 1fr))`:c&&(m.gridTemplateColumns=`repeat(auto-fill, minmax(${c}, 1fr))`),jsxRuntime.jsx("div",{className:u,style:m,children:d})}function zM({span:e,className:t,children:r}){let o=tailwindMerge.twMerge(Xy(e,VM,OM),t);return jsxRuntime.jsx("div",{className:o,children:r})}cm.Item=zM;function HM(e,t){return Ze__namespace.default.isValidElement(e)?e:fo({value:e,formatter:t,emptyClassName:"text-text-secondary",emptyText:"\u2014"})}function GM(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 WM={neutral:"text-text-primary",success:"text-feedback-success",warning:"text-feedback-warning",error:"text-feedback-error",info:"text-feedback-info"},UM=24,KM=20;function YM({item:e,dense:t,valueAlign:r}){let o=GM(e),n=o?WM[o]:"",a=e.stackOnMobile,i=typeof e.value=="string"&&e.value.length>UM&&!e.formatter&&!Ze__namespace.default.isValidElement(e.value),s=HM(e.value,e.formatter),c=i?Fa(e.value,KM):null,l=typeof e.copyable=="function"?e.copyable(e.value):String(e.value),d=e.piiType&&e.piiEntity?{"data-pii-type":e.piiType,"data-pii-entity":e.piiEntity}:{},u=Object.keys(d).length>0,m=i?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Zt,{content:u?jsxRuntime.jsx("span",{...d,children:String(e.value)}):String(e.value),children:jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("md:hidden",e.href?"hover:underline cursor-pointer":""),...d,children:c})}),jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("hidden md:inline",e.href?"hover:underline cursor-pointer":""),...d,children:s})]}):jsxRuntime.jsx("span",{className:e.href?"hover:underline cursor-pointer":"",...d,children:s}),p=e.copyable?jsxRuntime.jsx(dn,{value:l,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 Fc({items:e,layout:t="one-column",dense:r=false,valueAlign:o="end",showDividers:n=false,skeleton:a=false,empty:i=false,error:s,className:c}){return a?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("grid",t==="two-column"?"md:grid-cols-2 gap-x-6":"grid-cols-1",r?"gap-y-1":"gap-y-2",c),children:Array.from({length:e.length||4}).map((l,d)=>jsxRuntime.jsxs("div",{className:"grid grid-cols-[1fr_auto] items-start gap-x-4",children:[jsxRuntime.jsx(j,{className:"h-4 w-24"}),jsxRuntime.jsx(j,{className:"h-5 w-16"})]},d))}):s?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-sm text-feedback-error",c),children:s}):i||!e.length?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-sm text-text-secondary",c),children:"No data available"}):jsxRuntime.jsx("dl",{className:tailwindMerge.twMerge("grid",t==="two-column"?"md:grid-cols-2 gap-x-6":"grid-cols-1",r?"gap-y-1":"gap-y-2",c),children:e.map((l,d)=>jsxRuntime.jsxs(Ze__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(YM,{item:l,dense:r,valueAlign:o})]},l.id))})}function Qy({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(Fc,{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 ht={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 um=Ze__namespace.createContext(null);function Zy(){let e=Ze__namespace.useContext(um);if(!e)throw new Error("Hierarchy components must be used within HierarchyExplorer");return e}function $y({node:e,renderNode:t}){let{selectedId:r,selectNode:o,navigateToNode:n,variant:a,size:i,showBullets:s,rootNodeId:c,stickyRootNode:l,navigationStack:d,setRootNodeSticky:u,useSplitLayout:m}=Zy(),p=Ze__namespace.useRef(null),g=Ze__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=c!==void 0&&e.id!==void 0&&c===e.id&&d.length===0;Ze__namespace.useLayoutEffect(()=>{C&&l&&p.current&&g.current===null&&requestAnimationFrame(()=>{p.current&&(g.current=p.current.offsetTop);});},[C,l]),Ze__namespace.useEffect(()=>{if(!C||!l||!p.current)return;let D=p.current.parentElement;for(;D;){let A=window.getComputedStyle(D).overflowY;if(A==="auto"||A==="scroll")break;D=D.parentElement;}if(!D)return;let k=()=>{if(!p.current||g.current===null)return;let A=D.getBoundingClientRect(),M=D.scrollTop,z=A.height,F=p.current.offsetHeight,O=g.current-M,Q=O+F,H=O<0,U=Q>z;H?u("top",e):U?u("bottom",e):u(null,null);};return D.addEventListener("scroll",k),k(),()=>{D.removeEventListener("scroll",k);}},[C,l,e,u]);let N=()=>{y||(m?o(e):x?n(e):o(e));},S=D=>{y||(D.key==="Enter"||D.key===" ")&&(D.preventDefault(),N());},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",ht[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:N,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:ht[i].bullet,height:ht[i].bullet},children:e.icon&&jsxRuntime.jsx(V,{name:e.icon,size:ht[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:ht[i].icon,className:"text-text-secondary"})})]})]})}function tv({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:`${ht[n].spacing.x+ht[n].bullet/2}px`,top:`${ht[n].spacing.y+ht[n].bullet/2}px`,bottom:`${ht[n].spacing.y+ht[n].bullet/2}px`},"aria-hidden":"true"}),e.map(i=>jsxRuntime.jsx($y,{node:i,renderNode:a},i.id))]})}function hs({children:e,mode:t="sync",presenceKey:r}){let o=r!==void 0&&Ze__namespace.default.isValidElement(e)?Ze__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 nv(){let[e,t]=Ze.useState(()=>typeof window>"u"?false:window.matchMedia("(prefers-reduced-motion: reduce)").matches);return Ze.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 _M={instant:0,fast:150,normal:250,slow:350,slower:500},pm={xs:"4px",sm:"8px",md:"16px"};function $M(e){return e?typeof e=="string"&&e in pm?pm[e]:typeof e=="number"?`${e}px`:e:pm.sm}function xs({children:e,direction:t,distance:r="sm",duration:o="normal",delay:n=0,className:a}){let i=nv(),s=typeof o=="number"?o:_M[o],c=$M(r),l=p=>{switch(t){case "left":return {x:`-${p}`};case "right":return {x:p};case "up":return {y:`-${p}`};case "down":return {y:p}}},d=i?{opacity:0}:{opacity:0,...l(c)},u={opacity:1,x:0,y:0},m=i?{opacity:0}:{opacity:0,...l(c)};return jsxRuntime.jsx(framerMotion.motion.div,{className:a,initial:d,animate:u,exit:m,transition:{duration:i?0:s/1e3,delay:i?0:n/1e3,ease:[.4,0,.2,1]},children:e})}function Oc({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",ht[r].node),children:[jsxRuntime.jsx(V,{name:"CaretLeft",size:ht[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 zc({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",ht[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:ht[n].bullet,height:ht[n].bullet},children:e.icon&&jsxRuntime.jsx(V,{name:e.icon,size:ht[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 iv({currentItems:e,currentParent:t,navigationStack:r,selectedId:o,variant:n,size:a,showBullets:i,slideDirection:s,viewKey:c,hasHeight:l,rootNodeStickyState:d,renderNodeList:u,renderDetailContent:m,onNavigateBack:p}){return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[r.length===0&&d.position&&d.node&&jsxRuntime.jsx(zc,{node:d.node,position:d.position,selectedId:o,variant:n,size:a,showBullets:i}),r.length>0&&jsxRuntime.jsx(Oc,{navigationStack:r,onNavigateBack:p,size:a}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("relative",l&&"overflow-auto h-full"),children:jsxRuntime.jsx(hs,{mode:"wait",presenceKey:c,children:r.length===0?u(e,true):jsxRuntime.jsx(xs,{direction:s,distance:"100%",duration:"normal",children:m(t)})})})]})}function fm(e,t){for(let r of e){if(r.id===t)return r;if(r.children&&r.children.length>0){let o=fm(r.children,t);if(o)return o}}return null}function Hc(e){if(e!==void 0)return typeof e=="number"?`${e}px`:e}function sv(e,t){if(process.env.NODE_ENV!=="development")return;let r=new Set,o=(n,a="root")=>{for(let i=0;i<n.length;i++){let s=n[i],c=`${a}[${i}]`;s.id?r.has(s.id)?console.warn(`[HierarchyExplorer] Duplicate node ID found: "${s.id}". Each node must have a unique ID.`):r.add(s.id):console.warn(`[HierarchyExplorer] Node at ${c} is missing an "id" field. Node name: "${s.name||"(unnamed)"}"`),s.children&&o(s.children,`${c}.children`);}};o(e),t&&!r.has(t)&&console.warn(`[HierarchyExplorer] Root node ID "${t}" not found in data. No node will be highlighted as root.`);}function cv({data:e,currentItems:t,navigationStack:r,selectedId:o,variant:n,size:a,showBullets:i,rootNodeStickyState:s,renderNodeList:c,renderDetailContent:l,renderEmptyState:d,onNavigateBack:u}){let m=o?fm(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(zc,{node:s.node,position:s.position,selectedId:o,variant:n,size:a,showBullets:i}),r.length>0&&jsxRuntime.jsx(Oc,{navigationStack:r,onNavigateBack:u,size:a}),jsxRuntime.jsx("div",{className:"flex-1 overflow-auto",children:c(t,r.length===0)})]}),jsxRuntime.jsx("div",{className:"flex-1 min-w-0 overflow-auto bg-background-body",children:jsxRuntime.jsx(hs,{mode:"wait",presenceKey:m?.id||"empty",children:m?jsxRuntime.jsx(xs,{direction:"left",duration:"fast",children:l(m)}):d?d():jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-text-secondary text-center",ht[a].node,"py-8"),children:"Select an item to view details"})})})]})}function dv({data:e,renderNode:t,onNodeSelect:r,onNavigate:o,selectedId:n,rootNodeId:a,stickyRootNode:i=true,height:s,minHeight:c,maxHeight:l,variant:d="subtle",size:u="md",showBullets:m=true,layout:p="auto",splitBreakpoint:g=768,renderEmptyState:f,renderDetailView:y,className:b,"aria-label":h="Hierarchy explorer"}){let[x,C]=Ze__namespace.useState(null),[N,S]=Ze__namespace.useState([]),[T,R]=Ze__namespace.useState("left"),[P,E]=Ze__namespace.useState({position:null,node:null}),{ref:D,width:k}=Ja(),A=Ze__namespace.useMemo(()=>p==="split"?true:p==="single"?false:k>=g,[p,k,g]),M=n!==void 0?n:x;Ze__namespace.useEffect(()=>{sv(e,a);},[e,a]);let z=N.length>0?N[N.length-1]:null,F=z?z.children||[]:e,B=Ze__namespace.useCallback(I=>{R("left"),S(X=>[...X,I]),o?.(I,[...N,I]);},[N,o]),O=Ze__namespace.useCallback(()=>{R("right"),S(I=>{let X=I.slice(0,-1);return o?.(X.length>0?X[X.length-1]:null,X),X});},[o]),Q=Ze__namespace.useCallback(I=>{n===void 0&&C(I.id),r?.(I,[...N,I]);},[n,N,r]),H=Ze__namespace.useCallback((I,X)=>{E({position:I,node:X});},[]),U=Ze__namespace.useMemo(()=>({selectedId:M,selectNode:Q,navigateToNode:B,navigateBack:O,rootNodeId:a,stickyRootNode:i,variant:d,size:u,showBullets:m,onNodeSelect:r,onNavigate:o,navigationStack:N,setRootNodeSticky:H,useSplitLayout:A}),[M,Q,B,O,a,i,d,u,m,r,o,N,H,A]),W=Ze__namespace.useRef(null);Ze__namespace.useEffect(()=>{if(!a||!W.current||N.length>0||A)return;let I=W.current,X=setTimeout(()=>{let oe=I.querySelector(`[data-node-id="${a}"]`);oe&&oe.scrollIntoView({behavior:"auto",block:"center",inline:"nearest"});},100);return ()=>clearTimeout(X)},[a,N.length,A]);let G={height:Hc(s),minHeight:Hc(c),maxHeight:Hc(l)},K=s!==void 0||l!==void 0,w=z?z.id:"root",v=Ze__namespace.useCallback((I,X=false)=>jsxRuntime.jsx(tv,{items:I,showConnector:X,scrollContainerRef:X?W:null,showBullets:m,size:u,renderNode:t}),[m,u,t]),L=Ze__namespace.useCallback(I=>I?y?y(I,v):jsxRuntime.jsx(Qy,{node:I,renderNodeList:v}):null,[y,v]);return jsxRuntime.jsx(um.Provider,{value:U,children:jsxRuntime.jsx("div",{ref:D,className:tailwindMerge.twMerge("select-none bg-background-surface rounded-lg border border-border-default relative",K&&"overflow-hidden",!K&&"h-full flex flex-col",A&&!K&&"flex-row",A&&K&&"flex",b),style:G,role:"tree","aria-label":h,children:A?jsxRuntime.jsx(cv,{data:e,currentItems:F,navigationStack:N,selectedId:M,variant:d,size:u,showBullets:m,rootNodeStickyState:P,renderNodeList:v,renderDetailContent:L,renderEmptyState:f,onNavigateBack:O}):jsxRuntime.jsx(iv,{currentItems:F,currentParent:z,navigationStack:N,selectedId:M,variant:d,size:u,showBullets:m,slideDirection:T,viewKey:w,hasHeight:K,rootNodeStickyState:P,renderNodeList:v,renderDetailContent:L,onNavigateBack:O})})})}function fL({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 uv=({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}),pv=({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)=>fL({...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]});pv.displayName="HoverCardContent";var gL=Object.assign(uv,{Root:uv,Content:pv});var xL={md:{fontFamily:"var(--font-family-brand)",fontSize:24,lineHeight:1,letterSpacing:"-0.02em"},lg:{fontFamily:"var(--font-family-brand)",fontSize:34,lineHeight:1.1}},yL={md:{fontSize:12},lg:{fontSize:16}},vL={fontSize:11};function CL(e,t){return fo({value:e,formatter:t,emptyClassName:"text-text-secondary",emptyText:"\u2014"})}function SL(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 wL({points:e,className:t,ariaLabel:r}){let i=e.map(p=>typeof p.y=="number"?p.y:0);if(i.length===0)return null;let s=Math.min(...i),l=Math.max(...i)-s,d=p=>l===0?20/2:18-(p-s)/l*16,u=60/Math.max(e.length-1,1),m=e.map((p,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 mv=100,ha=30,fv=1.5,gv=4,NL=12;function TL(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 kL(e){if(e.length<2)return e.length===1?`M ${e[0][0]} ${e[0][1]}`:"";let t=`M ${e[0][0]} ${e[0][1]}`;for(let r=0;r<e.length-1;r++){let o=e[r-1]??e[r],n=e[r],a=e[r+1],i=e[r+2]??a,s=n[0]+(a[0]-o[0])/6,c=n[1]+(a[1]-o[1])/6,l=a[0]-(i[0]-n[0])/6,d=a[1]-(i[1]-n[1])/6;t+=` C ${s} ${c} ${l} ${d} ${a[0]} ${a[1]}`;}return t}function PL({points:e,gradientId:t,tone:r,className:o}){if(!e||e.length<2)return null;let n=TL(e,NL),a=n.map(y=>typeof y.y=="number"?y.y:0),i=Math.min(...a),c=Math.max(...a)-i,l=y=>c===0?ha/2:ha-gv-(y-i)/c*(ha-2*gv),d=(mv-2*fv)/Math.max(n.length-1,1),u=n.map((y,b)=>[fv+b*d,l(typeof y.y=="number"?y.y:0)]),m=kL(u),p=u[u.length-1],g=u[0],f=`${m} L ${p[0]} ${ha} L ${g[0]} ${ha} Z`;return jsxRuntime.jsxs("svg",{width:"100%",height:ha,viewBox:`0 0 ${mv} ${ha}`,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 bv({label:e,value:t,formatter:r,delta:o,deltaPeriodLabel:n,deltaIntent:a="upIsGood",trend:i,status:s,helpText:c,size:l="md",orientation:d="vertical",isLoading:u,empty:m,error:p,onClick:g,className:f,labelClassName:y,renderValue:b,renderDelta:h,renderTrend:x,unit:C,sub:N,dashed:S,sparkVariant:T="line",sparkTone:R,tileValueSize:P}){let E=Ze.useId(),k={sm:{label:Rt("labelSm"),value:Rt("displaySm"),delta:Rt("labelSm"),gap:"gap-1"},md:{label:Rt("labelMd"),value:Rt("displayMd"),delta:Rt("bodySm"),gap:"gap-2"},lg:{label:Rt("labelLg"),value:Rt("displayLg"),delta:Rt("bodyMd"),gap:"gap-3"}}[l],A=O=>P?jsxRuntime.jsxs("span",{style:xL[P],className:S?"opacity-45":void 0,children:[O,C?jsxRuntime.jsxs("span",{className:"text-text-secondary",style:yL[P],children:[" ",C]}):null]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[O,C?jsxRuntime.jsxs("span",{className:"text-text-secondary",children:[" ",C]}):null]}),M=u?jsxRuntime.jsx(j,{className:"h-7 w-20"}):m?jsxRuntime.jsx("span",{className:"text-text-secondary",children:"\u2014"}):p?jsxRuntime.jsx("span",{className:Rt("bodySm","text-feedback-error"),children:typeof p=="string"?p:"Error"}):S?A("\u2014"):b?b(t):A(P?t:CL(t,r)),z=h?h(o):o!==void 0&&!u&&!m&&!p&&!S?jsxRuntime.jsxs("div",{className:dr(k.delta,SL(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(j,{className:"h-4 w-24"}):null,F=x?x(i):i&&i.length>0&&!u&&!p&&!S?T==="area"?jsxRuntime.jsx(PL,{points:i,gradientId:E,tone:R,className:m?"opacity-30":""}):jsxRuntime.jsx(wL,{points:i,ariaLabel:`${e} trend`,className:m?"opacity-30":""}):u&&i!==void 0?jsxRuntime.jsx(j,{className:"h-5 w-16"}):null,B=N&&!u&&!p?jsxRuntime.jsx("div",{className:"text-text-secondary",style:vL,children:N}):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(dr(k.label,"text-text-secondary truncate"),y),children:u?jsxRuntime.jsx(j,{className:"h-4 w-24"}):e}),c&&!u&&jsxRuntime.jsx(V,{name:"Question",size:12,className:"text-text-secondary cursor-help","aria-label":"Help"})]}),jsxRuntime.jsxs("div",{className:"flex items-baseline gap-2",children:[jsxRuntime.jsx("output",{className:dr(P?void 0:k.value,p?"text-feedback-error":"text-text-primary"),"aria-label":`Value: ${t}`,children:M}),s&&!u&&!p&&jsxRuntime.jsx(gt,{variant:s.tone||"neutral",size:"sm",children:s.value})]}),B,(z||F)&&jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[z,F]})]})}var hv={xs:"gap-2",sm:"gap-3",md:"gap-4",lg:"gap-6",xl:"gap-8"},xv={start:"items-start",center:"items-center",stretch:"items-stretch"};function yv(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 hm({children:e,cols:t={base:1,sm:2,md:3,lg:4},gap:r="md",align:o="stretch",equalizeHeights:n=true,header:a,isLoading:i,scrollOnMobile:s=false,scrollItemMinWidth:c="140px",className:l}){let d=i?Ze__namespace.default.Children.map(e,p=>Ze__namespace.default.isValidElement(p)&&p.type&&typeof p.type!="string"&&"displayName"in p.type?Ze__namespace.default.cloneElement(p,{isLoading:true}):p):e,u=s?Ze__namespace.default.Children.map(d,p=>jsxRuntime.jsx("div",{className:"shrink-0",style:{minWidth:c},children:p})):d,m=s?tailwindMerge.twMerge("flex overflow-x-auto pb-2 -mb-2",hv[r],"sm:grid sm:overflow-visible sm:pb-0 sm:-mb-0",yv({...typeof t=="object"?t:{base:t},base:void 0}),xv[o],n&&"sm:auto-rows-fr"):tailwindMerge.twMerge("grid",yv(t),hv[r],xv[o],n&&"auto-rows-fr","w-full");return jsxRuntime.jsxs("section",{className:tailwindMerge.twMerge("w-full",l),"aria-label":"Key metrics",children:[a&&jsxRuntime.jsx("div",{className:"mb-4",children:a}),jsxRuntime.jsx("div",{className:m,children:s?u:d})]})}hm.displayName="KpiGroup";function Sv({items:e,renderItem:t,selectedId:r,onSelect:o,onHoverChange:n,isLoading:a=false,loadingState:i,error:s=null,renderLoadingSkeleton:c,loadingSkeletonCount:l=5,emptyMessage:d="No results found.",variant:u="relaxed",showDividers:m=true,onLoadMore:p,hasMore:g=false,enableVirtualization:f,estimatedItemSize:y=60,loadingIndicator:b,"aria-label":h,className:x="",style:C}){let[N,S]=Ze.useState(null),T=Ze.useRef(null),R=Ze.useRef(new Map),{scrollRef:P,loadMoreRef:E,virtualizer:D,virtualItems:k,isLoadingMore:A,computedLoadingState:M}=an({items:e,onLoadMore:p,hasMore:g,isLoading:a,loadingState:i,enableVirtualization:f,estimatedItemSize:y,overscan:5}),z=P??T,F=Ze.useCallback((v,L)=>{o?.(v,L);},[o]),B=Ze.useCallback((v,L)=>{S(v),n?.(v,L);},[n]),O=Ze.useCallback((v,L)=>{let I=v?.id;return typeof I=="string"&&I?I:`item-${L}`},[]),Q=Ze.useCallback(v=>{if(!z.current||e.length===0)return;let L=document.activeElement,I=e.findIndex((re,ae)=>{let Le=O(re,ae),ue=R.current.get(Le);return ue&&(ue===L||ue.contains(L))}),X=I;switch(v.key){case "ArrowDown":v.preventDefault(),X=I===-1?0:Math.min(I+1,e.length-1);break;case "ArrowUp":v.preventDefault(),X=I===-1?0:Math.max(I-1,0);break;case "Home":v.preventDefault(),X=0;break;case "End":v.preventDefault(),X=e.length-1;break;default:return}let oe=O(e[X],X);R.current.get(oe)?.focus();},[e,O,z]),H=["flex flex-col","bg-background-surface","focus:outline-none focus:ring-2 focus:ring-border-focus focus:ring-offset-2"],U={dense:"gap-0",relaxed:"gap-0"},W=m?"divide-y divide-border-muted":"",G=[...H,U[u],W,x].filter(Boolean).join(" ");if(M==="loading"||a&&e.length===0){let v=c?jsxRuntime.jsx(jsxRuntime.Fragment,{children:Array.from({length:l}).map((L,I)=>jsxRuntime.jsx("div",{children:c()},`skeleton-${I}`))}):jsxRuntime.jsx(xg,{count:l,className:"space-y-0",children:jsxRuntime.jsxs("div",{className:"flex items-center gap-3 px-4 py-3",children:[jsxRuntime.jsx(j,{width:16,height:16,variant:"circle"}),jsxRuntime.jsxs("div",{className:"flex-1 space-y-2",children:[jsxRuntime.jsx(j,{width:"75%",height:16}),jsxRuntime.jsx(j,{width:"50%",height:14})]}),jsxRuntime.jsx(j,{width:60,height:20})]})});return jsxRuntime.jsx("div",{ref:z,className:G,style:C,role:"listbox","aria-label":h,"aria-busy":"true","aria-live":"polite",children:v})}if(s)return jsxRuntime.jsx("div",{ref:z,className:G,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:z,className:G,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 w=D?k?.map(v=>({virtualItem:v,item:e[v.index],index:v.index}))||[]:e.map((v,L)=>({item:v,index:L,virtualItem:null}));return jsxRuntime.jsxs("div",{ref:z,className:G,style:{...C,...p&&{overflow:"auto",height:C?.height||"600px"}},role:"listbox","aria-label":h,"aria-live":"polite",onKeyDown:Q,tabIndex:0,children:[D&&jsxRuntime.jsxs("div",{style:{height:`${D.getTotalSize()}px`,width:"100%",position:"relative"},children:[w.map(({virtualItem:v,item:L,index:I})=>{if(!v)return null;let X=O(L,I),oe=r===X,ie=N===X,re={id:X,role:"option","aria-selected":oe,"aria-current":oe?"page":void 0,tabIndex:oe||r==null&&I===0?0:-1,onClick:ae=>F(ae,L),onMouseEnter:ae=>B(ae,L),onMouseLeave:ae=>B(null),onFocus:ae=>B(ae,L),onBlur:ae=>B(null),ref:ae=>{ae?R.current.set(X,ae):R.current.delete(X);}};return jsxRuntime.jsx("div",{"data-index":v.index,ref:D.measureElement,style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${v.start}px)`},children:t({item:L,index:I,isSelected:oe,isHovered:ie,rowProps:re})},X)}),p&&g&&jsxRuntime.jsx("div",{ref:E,style:{position:"absolute",top:`${D.getTotalSize()}px`,left:0,width:"100%",height:1,pointerEvents:"none"}}),A&&jsxRuntime.jsx("div",{style:{position:"absolute",top:`${D.getTotalSize()}px`,left:0,width:"100%"},children:b||jsxRuntime.jsx(Ur,{state:"loading-more"})})]}),!D&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[w.map(({item:v,index:L})=>{let I=O(v,L),X=r===I,oe=N===I,ie={id:I,role:"option","aria-selected":X,"aria-current":X?"page":void 0,tabIndex:X||r==null&&L===0?0:-1,onClick:re=>F(re,v),onMouseEnter:re=>B(re,v),onMouseLeave:re=>B(null),onFocus:re=>B(re,v),onBlur:re=>B(null),ref:re=>{re?R.current.set(I,re):R.current.delete(I);}};return jsxRuntime.jsx("div",{children:t({item:v,index:L,isSelected:X,isHovered:oe,rowProps:ie})},I)}),p&&g&&jsxRuntime.jsx("div",{ref:E,style:{height:1}}),A&&(b||jsxRuntime.jsx(Ur,{state:"loading-more"}))]})]})}function Nv({id:e,title:t,subtitle:r,meta:o,leading:n,trailing:a,isSelected:i=false,isHovered:s=false,disabled:c=false,href:l,size:d="md",onClick:u,onMouseEnter:m,onMouseLeave:p,className:g="",style:f,piiTitleType:y,piiSubtitleType:b,piiEntity:h}){let x=()=>{!c&&u&&u(e);},C=()=>{!c&&m&&m(e);},N=()=>{!c&&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",c&&"opacity-50 cursor-not-allowed",!c&&!i&&"hover:bg-background-hover"],E=[...R,...P,g].filter(Boolean).join(" "),D=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 l?jsxRuntime.jsx("a",{href:l,className:E,style:f,onMouseEnter:C,onMouseLeave:N,"aria-selected":i,"aria-current":i?"page":void 0,tabIndex:c?-1:0,children:D}):jsxRuntime.jsx("button",{type:"button",className:E,style:f,onClick:x,onMouseEnter:C,onMouseLeave:N,disabled:c,"aria-selected":i,tabIndex:c?-1:0,children:D})}function Tv({header:e,children:t,footer:r,width:o="md",tone:n="neutral",elevation:a="sm",showDivider:i=true,"aria-label":s,"aria-labelledby":c,className:l="",style:d}){let u={sm:"w-64",md:"w-80",lg:"w-96",xl:"w-[28rem]","2xl":"w-[32rem]",auto:"w-auto"},m={neutral:"bg-background-surface",subtle:"bg-background-subtle",brand:"bg-background-brand"},p={none:"",sm:"shadow-sm",md:"shadow-md"},g=tailwindMerge.twMerge("flex flex-col h-full",u[o],m[n],p[a],i&&"border-r border-border-muted",l);return jsxRuntime.jsxs("div",{className:g,style:d,role:"complementary","aria-label":s,"aria-labelledby":c,children:[e&&jsxRuntime.jsx("div",{className:"flex-shrink-0 sticky top-0 z-10 bg-inherit border-b border-border-muted",children:e}),jsxRuntime.jsx("div",{className:"flex-1 overflow-y-auto overflow-x-hidden",children:t}),r&&jsxRuntime.jsx("div",{className:"flex-shrink-0 border-t border-border-muted bg-inherit",children:r})]})}function FL({children:e,...t}){return jsxRuntime.jsx(reactAriaComponents.ListBox,{...t,className:Ae(t.className,"outline-0"),children:e})}function Yc(){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 Jc(e,t){let[r,o]=Ze.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}});Ze.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=Ze.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=Ze.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 ym=[{type:"navigation",position:"bottom-right",showCompass:true,showGeolocate:true,showResetZoom:true}];function Pv(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 HL="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 Rv(e){return tailwindMerge.twMerge(HL,e)}var Ev="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJcAAACXCAYAAAAYn8l5AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABtCSURBVHgB7Z2Jkty0GoV7hlz2HcIeSPGkPCmELRC2sO8kN5+L03XmR7IlW3LbSZ+qrp7pdtuydPTvki9u3Lhx/7ASLi4uDvfv973cvXv3Dn/++efh2rVrx2vyAo899tjwThu8Hfo+1d5SLLkv2vXzzz8fnnvuucPff/99eFhw7bAi/vnnn8Pl5eWVz3IDOHewGKgnnnjiCoEgHH///vvvh8cff3z4nrbE63lb+LvFQHMe2jR2P7p2bNMe4f24Grk02LkOjCQTCfmNE3KKdLo5l1jCk08+efjtt98OP/300yAlUgRTW3RdiLkEJZOEa4hccfItuWaN5O2B1cg1daNxEHzg4wCj8koGLXVOCMbnP/zww+GZZ54ZpIoGV8eLoC3IVYNWZPDzRIncG36t5dNkZ5CKfPHFFw9//PHH4ddffz3aYi7tJGkjkXvZjCJy6/P7/bRAzaTeJblaSJO//vrr8PTTTw/2F1IMSCX5gHAtV1VzpEBJe//3v/8NNl4vKdNDKo4dM5gVhxXR21OsgWwc3l944YXBFsPglxQDfM9rjXbTDqnnhwWrkStlYJ8aag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EBI+zqmyVwLXglLm+u3o6W6t8oiBZc1pwpF3Z/Tq1kX1oKDcglalt0Mq5G+Zzha8dbY+rvA7Erz2Jf1VQQm9t9zxzU0kLlDp2uX9IwZVZxyO2G19y9ieD165lH9Fosk8DI5sufSSLSZBQSF3maHFuDcVGsLHjqrgKZLUX5JqjGehdg3ULYhq7fAkpy5voaGxxtFgmygtNBJMSfalN4Ghq0DVGhNw+TbZUJBvl6KdlImJXLsphrcJtyi/rBx7bNiPF3drqCfiaI7S/0yAfzPgdNJKqQ+lwh1XfSmYClPT+R2b/03chQhh/fQH7Dav+EOO2oojEn8WdyuYzZbw6+e/WpX6eGYK0xR3BJhumCL/0lYS1EWShiFKXp4HOjIdwcvzNzjuNg4uobmh3lmZNljg+RHIokP7iJ+//S9/0JF4UWgALQSUifcPn+AvCxKcp8u7vR5XAiSC3WYDByQWZ1myzFUtOgbu577+f5ZPq/B5Pf+nAAAAAElFTkSuQmCC";function Xc(e){return e.selection?.mode==="single"}function Mn(e){let t=[],r=o=>{o.layerId&&t.push(o.layerId);for(let n of o.children??[])r(n);};return r(e),t}function vm(e,t){let r=Mn(e);if(r.length===0)return "unchecked";let o=0;for(let n of r)t(n)&&o++;return o===0?"unchecked":Xc(e)||o===r.length?"checked":"indeterminate"}var xa=(e,t)=>Object.fromEntries(e.map(r=>[r,t]));function Iv(e,t){let r=Mn(e);if(!(vm(e,t)!=="checked"))return xa(r,false);if(Xc(e)){let n=e.children?.[0],a=n?Mn(n):[];return {...xa(r,false),...xa(a,true)}}return xa(r,true)}function Fv(e,t,r){let o=e.children?.find(s=>s.id===t);if(!o)return {};let n=Mn(e),a=Mn(o);return a.length>0&&a.every(r)?e.selection?.mode==="single"&&e.selection.allowNone?xa(a,false):{}:{...xa(n,false),...xa(a,true)}}function Cm(e,t){for(let r of e){if(r.id===t)return r;let o=Cm(r.children??[],t);if(o)return o}}function Sm(e,t){for(let r of e){if(r.children?.some(n=>n.id===t))return r;let o=Sm(r.children??[],t);if(o)return o}}function Bv(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 Ov(e){return e.map(t=>({id:t.id,label:t.label,...t.children?.length?{children:Ov(t.children)}:{}}))}function zv(e){let t=e.length;for(let r of e)r.children?.length&&(t=Math.max(t,zv(r.children)));return t}function Vv({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 GL({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 WL(){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 UL=41,KL=44,YL=132,JL=360;function Hv({tree:e,layers:t,onVisibilityChange:r}){let o=new Map(t.map(s=>[s.id,s])),n=s=>{let c=o.get(s);return !!c&&c.visible!==false};if(process.env.NODE_ENV!=="production"){let s=Bv(e);s.length>0&&console.warn(`[LayersPanel] Duplicate id(s) in \`layerTree\`: ${s.join(", ")}. Row lookups and pane keys resolve to the first match, so the later entry is unreachable. Node ids must be unique among node ids, and layer ids unique among layer ids.`);let c=e.flatMap(Mn).filter(l=>!o.has(l));c.length>0&&console.warn(`[LayersPanel] \`layerTree\` references layer id(s) not present in \`layers\`: ${c.join(", ")}. Those rows render as hidden and cannot be turned on.`);}let a=Ov(e),i=Math.min(JL,Math.max(YL,zv(e)*UL+KL));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:c,select:l})=>{let d=Cm(e,s.id);if(!d)return null;let u=vm(d,n),p=(d.layerId?o.get(d.layerId):void 0)?.legend,g=Mn(d),f=g.filter(n).length,y=c&&u==="indeterminate"?`${f} of ${g.length} on`:null,b=Sm(e,d.id),h=!!b&&Xc(b),x=S=>{Object.keys(S).length>0&&r?.(S);},C=h?jsxRuntime.jsx(GL,{isSelected:u!=="unchecked",onPress:()=>x(Fv(b,d.id,n)),label:d.label}):jsxRuntime.jsx(eo,{isSelected:u==="checked",isIndeterminate:u==="indeterminate",onChange:()=>x(Iv(d,n)),"aria-label":d.label}),N=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,c?jsxRuntime.jsxs("button",{type:"button",onClick:l,className:"flex min-w-0 flex-1 cursor-pointer items-center gap-2 border-0 bg-transparent p-0 text-left","aria-label":`Open ${d.label}`,children:[p?jsxRuntime.jsx(Vv,{type:p.swatch,color:p.color}):null,N,jsxRuntime.jsx(WL,{})]}):jsxRuntime.jsxs("span",{className:"flex min-w-0 flex-1 items-center gap-2",children:[p?jsxRuntime.jsx(Vv,{type:p.swatch,color:p.color}):null,N]})]})}})})}function Ln({position:e="top-right",className:t,style:r,children:o}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(Pv(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:c,iconWeight:l="regular",...d}){let u=tailwindMerge.twMerge(Rv(),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":c,"aria-pressed":s||void 0,type:"button",children:jsxRuntime.jsx(V,{name:e,size:t,className:m,weight:l})})}var _L=e=>[{id:"streets",name:"Streets",description:"Standard street map with traffic data",preview:e?Dv:Av},{id:"satellite",name:"Satellite",description:"Aerial imagery with street labels",preview:Lv},{id:"neutral",name:"Neutral",description:"Clean design with light/dark variants",preview:e?Ev:Mv}];function $L({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 Uv({position:e="bottom-left",className:t,style:r,currentMapType:o="streets",onMapTypeChange:n,layers:a=[],onLayerToggle:i,onClearAll:s,onLayerVariantChange:c,layerTree:l,onVisibilityChange:d}){let{isDarkTheme:u}=Qt(),{isMobile:m}=cr(),[p,g]=Ze.useState(false),f=_L(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))})]}),l?.length?jsxRuntime.jsxs("div",{children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between mb-3",children:[jsxRuntime.jsx("div",{className:"text-sm font-semibold text-text-primary",children:"Map details"}),s&&jsxRuntime.jsx("button",{type:"button",onClick:s,className:"text-xs text-text-secondary hover:text-text-primary transition-colors",children:"Clear all"})]}),jsxRuntime.jsx(Hv,{tree:l,layers:a,onVisibilityChange:d})]}):null,!l?.length&&b.length>0&&jsxRuntime.jsxs("div",{children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between mb-3",children:[jsxRuntime.jsx("div",{className:"text-sm font-semibold text-text-primary",children:"Map details"}),s&&jsxRuntime.jsx("button",{type:"button",onClick:s,className:"text-xs text-text-secondary hover:text-text-primary transition-colors",children:"Clear all"})]}),jsxRuntime.jsx("div",{className:"space-y-2",children:b.map(x=>{let C=x.visible!==false,N=x.legend?.variants;return jsxRuntime.jsxs("div",{className:N?"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($L,{type:x.legend.swatch,color:x.legend.color}),jsxRuntime.jsx("span",{className:"text-sm text-text-primary",children:x.legend?.label})]})}),N&&jsxRuntime.jsx("div",{className:"pl-6",children:jsxRuntime.jsx(Ho,{"aria-label":`${x.legend?.label} mode`,size:"sm",isDisabled:!C,items:N.options.map(S=>({...S,value:S.id})),renderItem:S=>S.label,selectedKey:N.selectedId,onSelectionChange:S=>c?.(x.id,String(S))})})]},x.id)})})]})]});return jsxRuntime.jsx(Ln,{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(wt,{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(St,{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 Yv({position:e="top-right",className:t,style:r,onToggle:o,isActive:n=false}){return jsxRuntime.jsx(Ln,{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 oD={sm:"gap-2",md:"gap-4",lg:"gap-6"};function qc({position:e="top-right",className:t,style:r,children:o,orientation:n="vertical",spacing:a="md"}){return jsxRuntime.jsx(Ln,{position:e,style:r,children:jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex",n==="vertical"?"flex-col":"flex-row",oD[a],t),children:o})})}function Xv({mapRef:e,position:t="bottom-right",className:r,style:o,showCompass:n=true,showGeolocate:a=true,showResetZoom:i=true,onResetZoom:s,onCompassClick:c,onGeolocateClick:l}){let[d,u]=Ze.useState(false),m=Ze.useRef(true);Ze.useEffect(()=>()=>{m.current=false;},[]);let p=()=>{c?c():e.current&&e.current.easeTo({bearing:0,duration:500});},g=async()=>{if(!d)if(l)l();else {if(!navigator.geolocation){console.warn("Geolocation is not supported by this browser.");return}if(navigator.permissions?.query)try{if((await navigator.permissions.query({name:"geolocation"})).state==="denied"){console.warn("Geolocation permission was previously denied. Please enable location services in your browser settings.");return}}catch{}u(true),navigator.geolocation.getCurrentPosition(x=>{if(!m.current)return;let{latitude:C,longitude:N}=x.coords;e.current&&e.current.flyTo({center:[N,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(qc,{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 Zv({position:e="top-left",className:t,style:r,onSearch:o,placeholder:n="Search places...",showSearchInput:a=true}){let[i,s]=Ze.useState(false),[c,l]=Ze.useState(""),d=()=>{a?s(!i):o&&o("");},u=p=>{p.preventDefault(),o&&c.trim()&&(o(c.trim()),s(false));},m=p=>{p.key==="Escape"&&s(false);};return jsxRuntime.jsx(Ln,{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:c,onChange:p=>l(p.target.value),onKeyDown:m,placeholder:n,className:tailwindMerge.twMerge("flex-1 px-3 py-2 text-sm rounded border","bg-background border-border text-text-primary placeholder:text-text-secondary","focus:outline-none focus:ring-2 focus:ring-action-brand"),autoFocus:true}),jsxRuntime.jsx(te,{type:"submit",variant:"primary",size:"sm",className:"px-3 py-2",children:"Search"})]})})})]})})}var lD={navigation:"bottom-right",layers:"bottom-left",search:"top-left",list:"top-right",custom:"top-right"};function Nm(e){return e.position??lD[e.type]}function _v(e,t,r){let o=Nm(e),n=e.id??`${e.type}-${t}`;switch(e.type){case "navigation":{let i=e.showResetZoom!==false&&r.showResetButton;return jsxRuntime.jsx(Xv,{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(Uv,{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(Zv,{position:o,onSearch:e.onSearch,placeholder:e.placeholder,showSearchInput:e.showSearchInput,style:e.style,className:e.className},n);case "list":return jsxRuntime.jsx(Yv,{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 Tm(e,t){let r=e.reduce((n,a,i)=>{let s=Nm(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(_v(a[0].control,a[0].index,t));continue}let i={position:"static",top:"auto",right:"auto",bottom:"auto",left:"auto"};o.push(jsxRuntime.jsx(qc,{position:n,spacing:"sm",children:a.map(({control:s,index:c})=>{let l={...s,style:{...s.style,...i}};return _v(l,c,t)})},`group-${n}`));}return o}var km={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 Pm(e){return e.kind==="vector"}function Rm(e){return e.kind==="geojson"}function Em(e){return e.kind==="customPins"}function Mm(e){return e.kind==="raster"}var Ss=(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})}),Lm=(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})}),Zc=[Ss("viridis","Viridis"),Ss("magma","Magma"),Ss("cerulean","Cerulean"),Ss("forest","Forest"),Ss("rose","Rose")],_c=[Lm("redYellowBlue","Red \u2192 Blue"),Lm("orangeYellowSeafoam","Orange \u2192 Seafoam"),Lm("redBlue","Red / Blue")],$c={id:"categorical",label:"Categorical",kind:"categorical",hint:"Distinct per value",stops:()=>Oo(),toColorSpec:({by:e})=>({by:e,palette:"categorical",scale:"auto"})},ws=[...Zc,..._c,$c];function Dm(e){return ws.find(t=>t.id===e)}function Am(e){return ws.filter(t=>t.kind===e)}function tC(e){return !e.includes("{z}")}function Ts(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(dD,{spec:o,mapType:t},o.id);case "geojson":return jsxRuntime.jsx(pD,{spec:o,mapType:t},o.id);case "customPins":return jsxRuntime.jsx(mD,{spec:o,mapType:t},o.id);case "raster":return jsxRuntime.jsx(fD,{spec:o},o.id);case "clusteredVector":return jsxRuntime.jsx(uD,{spec:o,mapType:t},o.id);default:return console.warn("[Layers] Unknown layer kind:",o.kind),null}})})}function dD({spec:e,mapType:t}){let{colorMode:r}=Qt(),o=Ze.useMemo(()=>{let c=oC(e.style,e.renderAs,r,t);if((e.hideChipWhen||e.revealChipOnHover)&&e.renderAs==="circle"){let l=c,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 {...c,"circle-opacity":d(l["circle-opacity"]??1),"circle-stroke-opacity":d(l["circle-stroke-opacity"]??1)}}return c},[e.style,e.renderAs,e.hideChipWhen,e.revealChipOnHover,r,t]),n=Ze.useMemo(()=>({visibility:e.visible===false?"none":"visible"}),[e.visible]),a={id:e.id,type:rC(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(RD.Layer,{...a,source:e.sourceId});let i=tC(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(RD.Source,{...s,children:jsxRuntime.jsx(RD.Layer,{...a})},`${e.tileset}:${e.renderAs}`)}function uD({spec:e}){let{colorMode:t,isDarkTheme:r}=Qt(),o=1.25,n=9,a=3,i=n*1.4,s=.2,c=[0,5],l=Ze.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=Ze.useMemo(()=>g?e.clusterStyle.sizes.map(({threshold:N,radius:S})=>({threshold:N,radius:S,color:l.clusters})):[{threshold:30,radius:20,color:l.clusters},{threshold:200,radius:35,color:l.clusters},{threshold:1e3,radius:50,color:l.clusters}],[g,e.clusterStyle?.sizes,l.clusters]),y=N=>g?["step",["get","point_count"],N[0].radius,...N.flatMap(({threshold:S,radius:T})=>[S,T])]:["interpolate",["linear"],["ln",["max",2,["get","point_count"]]],m,d,p,u],b=N=>g?["step",["get","point_count"],N[0].radius*o,...N.flatMap(({threshold:S,radius:T})=>[S,T*o])]:["interpolate",["linear"],["ln",["max",2,["get","point_count"]]],m,d*o,p,u*o],h=tC(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=Ze.useMemo(()=>{let N=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":l.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":l.point.shadow,"circle-blur":s,"circle-translate":c}}),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":l.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":N,"circle-color":l.point.fill,"circle-stroke-width":S,"circle-stroke-color":l.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":l.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":$v(N,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":$v(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,l,n,a,i,s]);return jsxRuntime.jsx(RD.Source,{...x,children:C.map(N=>jsxRuntime.jsx(RD.Layer,{...N},N.id))},e.tileset)}function pD({spec:e,mapType:t}){let{colorMode:r}=Qt(),o=Ze.useMemo(()=>typeof e.data=="string"?null:e.data,[e.data]),n=Ze.useMemo(()=>oC(e.style,e.renderAs,r,t,o),[e.style,e.renderAs,r,t,o]),a=Ze.useMemo(()=>({visibility:e.visible===false?"none":"visible"}),[e.visible]),i=Ze.useMemo(()=>(typeof e.data=="string",e.data),[e.data]),s={id:`${e.id}-source`,type:"geojson",data:i};e.cluster?.enabled&&(s.cluster=true,s.clusterRadius=e.cluster.radius??50,s.clusterMaxZoom=e.cluster.maxZoom??14);let c={id:e.id,type:rC(e.renderAs),paint:n,layout:a};return e.minZoom!==void 0&&(c.minzoom=e.minZoom),e.maxZoom!==void 0&&(c.maxzoom=e.maxZoom),jsxRuntime.jsx(RD.Source,{...s,children:jsxRuntime.jsx(RD.Layer,{...c})})}function mD({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(RD.Marker,{longitude:a,latitude:i,anchor:"bottom",children:jsxRuntime.jsx(r,{...s})},`${e.id}-${n}`)})})}function fD({spec:e}){let t=Ze.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(RD.Source,{...r,children:jsxRuntime.jsx(RD.Layer,{...o})},e.tileset)}var lo="#666";function $v(e,t){let r=t??64;return e*2/r}function rC(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 oC(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"]=ed(e.width)),e.radius&&t==="circle"&&(a["circle-radius"]=ed(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):Ot(`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]:ed(e.weight)),e.intensity!==void 0&&(a["heatmap-intensity"]=e.intensity),e.radius!==void 0&&(a["heatmap-radius"]=ed(e.radius)),e.opacity!==void 0&&(a["heatmap-opacity"]=e.opacity)),a}function gD(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 bD(e,t){let r=wf(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 hD(e,t="viridis",r,o){let n=Od(r,e),a;if(o&&o!=="auto")a=o;else {if(a=zd(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((c,l)=>{let d=l/(i.length-1),u=a.min+d*(a.max-a.min);s.push(u,c);}),s}function xD(e,t="redYellowBlue",r,o,n){let a=Od(r,e),i=Nf(a,o),s;if(n&&n!=="auto")s=n;else {if(s=zd(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 c=Pi(t),l=4,d=["interpolate",["linear"],["get",e]];for(let u=0;u<=l;u++){let m=u/l,p=s.min+m*(i-s.min);d.push(p,c[u]);}for(let u=l+1;u<c.length;u++){let m=(u-l)/(c.length-1-l),p=i+m*(s.max-i);d.push(p,c[u]);}return d}function eC(e){if(!(e.startsWith("var(")||e.startsWith("--")||e.startsWith("color-")))return e;let r=Ot(e,lo);return r.includes("var(")?lo:r}function Qr(e,t,r){if(typeof e=="string")return eC(e);if("token"in e)return Ot(e.token,lo);if("hex"in e)return eC(e.hex);if("by"in e){if("palette"in e){if(e.palette==="categorical")return r?bD(e.by,r):(console.warn("[Layers] Categorical auto-assignment requires GeoJSON data (not URL-based data)"),lo);if(e.palette==="sequential")return r?hD(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?xD(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 gD(e)}return lo}function ed(e){return typeof e=="number"?e:"byZoom"in e?["interpolate",["linear"],["zoom"],...e.byZoom.flatMap(([t,r])=>[t,r])]:e}var rd=null;function od(){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():(rd||(rd=import('mapbox-gl/dist/mapbox-gl.css').then(()=>{}).catch(t=>{console.error("Failed to load Mapbox CSS",t),rd=null;})),rd)}function nd(){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(z,{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 AM={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"},IM={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"}},FM={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"},BM={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"},VM={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"},OM={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},zM={start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},HM={row:"grid-flow-row",col:"grid-flow-col",dense:"grid-flow-dense","row-dense":"grid-flow-row-dense","col-dense":"grid-flow-col-dense"},GM={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"},WM={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 Xy(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 mm({cols:e=1,gap:t="md",gapX:r,gapY:o,align:n="stretch",justify:a="start",flow:i="row",autoFit:s,autoFill:d,className:l,children:c}){let u=tailwindMerge.twMerge("grid",s||d?"":Xy(e,AM,IM),!r&&!o&&FM[t],r&&BM[r],o&&VM[o],OM[n],zM[a],HM[i],l),m={};return s?m.gridTemplateColumns=`repeat(auto-fit, minmax(${s}, 1fr))`:d&&(m.gridTemplateColumns=`repeat(auto-fill, minmax(${d}, 1fr))`),jsxRuntime.jsx("div",{className:u,style:m,children:c})}function UM({span:e,className:t,children:r}){let o=tailwindMerge.twMerge(Xy(e,GM,WM),t);return jsxRuntime.jsx("div",{className:o,children:r})}mm.Item=UM;function KM(e,t){return _e__namespace.default.isValidElement(e)?e:fo({value:e,formatter:t,emptyClassName:"text-text-secondary",emptyText:"\u2014"})}function YM(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 JM={neutral:"text-text-primary",success:"text-feedback-success",warning:"text-feedback-warning",error:"text-feedback-error",info:"text-feedback-info"},XM=24,jM=20;function qM({item:e,dense:t,valueAlign:r}){let o=YM(e),n=o?JM[o]:"",a=e.stackOnMobile,i=typeof e.value=="string"&&e.value.length>XM&&!e.formatter&&!_e__namespace.default.isValidElement(e.value),s=KM(e.value,e.formatter),d=i?Va(e.value,jM):null,l=typeof e.copyable=="function"?e.copyable(e.value):String(e.value),c=e.piiType&&e.piiEntity?{"data-pii-type":e.piiType,"data-pii-entity":e.piiEntity}:{},u=Object.keys(c).length>0,m=i?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Zt,{content:u?jsxRuntime.jsx("span",{...c,children:String(e.value)}):String(e.value),children:jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("md:hidden",e.href?"hover:underline cursor-pointer":""),...c,children:d})}),jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("hidden md:inline",e.href?"hover:underline cursor-pointer":""),...c,children:s})]}):jsxRuntime.jsx("span",{className:e.href?"hover:underline cursor-pointer":"",...c,children:s}),p=e.copyable?jsxRuntime.jsx(pn,{value:l,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})]}),v=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(z,{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:v})}function Vc({items:e,layout:t="one-column",dense:r=false,valueAlign:o="end",showDividers:n=false,skeleton:a=false,empty:i=false,error:s,className:d}){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",d),children:Array.from({length:e.length||4}).map((l,c)=>jsxRuntime.jsxs("div",{className:"grid grid-cols-[1fr_auto] items-start gap-x-4",children:[jsxRuntime.jsx(j,{className:"h-4 w-24"}),jsxRuntime.jsx(j,{className:"h-5 w-16"})]},c))}):s?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-sm text-feedback-error",d),children:s}):i||!e.length?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-sm text-text-secondary",d),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",d),children:e.map((l,c)=>jsxRuntime.jsxs(_e__namespace.default.Fragment,{children:[n&&c>0&&t==="one-column"&&jsxRuntime.jsx("div",{className:"col-span-full border-t border-border-default -mt-1 mb-1"}),jsxRuntime.jsx(qM,{item:l,dense:r,valueAlign:o})]},l.id))})}function Qy({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(Vc,{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 ht={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 gm=_e__namespace.createContext(null);function Zy(){let e=_e__namespace.useContext(gm);if(!e)throw new Error("Hierarchy components must be used within HierarchyExplorer");return e}function $y({node:e,renderNode:t}){let{selectedId:r,selectNode:o,navigateToNode:n,variant:a,size:i,showBullets:s,rootNodeId:d,stickyRootNode:l,navigationStack:c,setRootNodeSticky:u,useSplitLayout:m}=Zy(),p=_e__namespace.useRef(null),g=_e__namespace.useRef(null),f=r===e.id,h=e.disabled||false,b=!!(e.children&&e.children.length>0),v=!!(e.metadata&&Object.keys(e.metadata).length>0),y=b||v,C=d!==void 0&&e.id!==void 0&&d===e.id&&c.length===0;_e__namespace.useLayoutEffect(()=>{C&&l&&p.current&&g.current===null&&requestAnimationFrame(()=>{p.current&&(g.current=p.current.offsetTop);});},[C,l]),_e__namespace.useEffect(()=>{if(!C||!l||!p.current)return;let D=p.current.parentElement;for(;D;){let A=window.getComputedStyle(D).overflowY;if(A==="auto"||A==="scroll")break;D=D.parentElement;}if(!D)return;let k=()=>{if(!p.current||g.current===null)return;let A=D.getBoundingClientRect(),M=D.scrollTop,H=A.height,Y=p.current.offsetHeight,F=g.current-M,X=F+Y,O=F<0,U=X>H;O?u("top",e):U?u("bottom",e):u(null,null);};return D.addEventListener("scroll",k),k(),()=>{D.removeEventListener("scroll",k);}},[C,l,e,u]);let T=()=>{h||(m?o(e):y?n(e):o(e));},w=D=>{h||(D.key==="Enter"||D.key===" ")&&(D.preventDefault(),T());},N={isSelected:f,isDisabled:h,hasChildren:b,hasMetadata:v,level:0},R=tailwindMerge.twMerge("relative cursor-pointer group",h&&"opacity-50 cursor-not-allowed"),P=tailwindMerge.twMerge("absolute inset-0 transition-colors",C&&!f&&!h&&"group-hover:bg-background-hover",C&&f&&!h&&a==="subtle"&&"bg-background-selected group-hover:bg-background-hover",C&&f&&h&&a==="subtle"&&"bg-background-selected",C&&f&&!h&&a==="solid"&&"bg-action-brand group-hover:bg-action-brand-hover",C&&f&&h&&a==="solid"&&"bg-action-brand",!C&&a==="subtle"&&!f&&!h&&"group-hover:bg-background-hover",!C&&a==="subtle"&&f&&!h&&"bg-background-selected group-hover:bg-background-hover",!C&&a==="subtle"&&f&&h&&"bg-background-selected",!C&&a==="solid"&&!f&&!h&&"group-hover:bg-background-hover",!C&&a==="solid"&&f&&!h&&"bg-action-brand group-hover:bg-action-brand-hover",!C&&a==="solid"&&f&&h&&"bg-action-brand"),E=tailwindMerge.twMerge("relative flex items-center gap-2 text-text-primary hover:text-text-primary transition-colors",ht[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:T,onKeyDown:w,role:"treeitem","aria-selected":f,"aria-disabled":h,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:ht[i].bullet,height:ht[i].bullet},children:e.icon&&jsxRuntime.jsx(z,{name:e.icon,size:ht[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,N):jsxRuntime.jsx("span",{className:"truncate",children:e.name})}),y&&!m&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:jsxRuntime.jsx(z,{name:"CaretRight",size:ht[i].icon,className:"text-text-secondary"})})]})]})}function tv({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:`${ht[n].spacing.x+ht[n].bullet/2}px`,top:`${ht[n].spacing.y+ht[n].bullet/2}px`,bottom:`${ht[n].spacing.y+ht[n].bullet/2}px`},"aria-hidden":"true"}),e.map(i=>jsxRuntime.jsx($y,{node:i,renderNode:a},i.id))]})}function ys({children:e,mode:t="sync",presenceKey:r}){let o=r!==void 0&&_e__namespace.default.isValidElement(e)?_e__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 nv(){let[e,t]=_e.useState(()=>typeof window>"u"?false:window.matchMedia("(prefers-reduced-motion: reduce)").matches);return _e.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 rL={instant:0,fast:150,normal:250,slow:350,slower:500},bm={xs:"4px",sm:"8px",md:"16px"};function oL(e){return e?typeof e=="string"&&e in bm?bm[e]:typeof e=="number"?`${e}px`:e:bm.sm}function vs({children:e,direction:t,distance:r="sm",duration:o="normal",delay:n=0,className:a}){let i=nv(),s=typeof o=="number"?o:rL[o],d=oL(r),l=p=>{switch(t){case "left":return {x:`-${p}`};case "right":return {x:p};case "up":return {y:`-${p}`};case "down":return {y:p}}},c=i?{opacity:0}:{opacity:0,...l(d)},u={opacity:1,x:0,y:0},m=i?{opacity:0}:{opacity:0,...l(d)};return jsxRuntime.jsx(framerMotion.motion.div,{className:a,initial:c,animate:u,exit:m,transition:{duration:i?0:s/1e3,delay:i?0:n/1e3,ease:[.4,0,.2,1]},children:e})}function Hc({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",ht[r].node),children:[jsxRuntime.jsx(z,{name:"CaretLeft",size:ht[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 Gc({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",ht[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:ht[n].bullet,height:ht[n].bullet},children:e.icon&&jsxRuntime.jsx(z,{name:e.icon,size:ht[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 iv({currentItems:e,currentParent:t,navigationStack:r,selectedId:o,variant:n,size:a,showBullets:i,slideDirection:s,viewKey:d,hasHeight:l,rootNodeStickyState:c,renderNodeList:u,renderDetailContent:m,onNavigateBack:p}){return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[r.length===0&&c.position&&c.node&&jsxRuntime.jsx(Gc,{node:c.node,position:c.position,selectedId:o,variant:n,size:a,showBullets:i}),r.length>0&&jsxRuntime.jsx(Hc,{navigationStack:r,onNavigateBack:p,size:a}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("relative",l&&"overflow-auto h-full"),children:jsxRuntime.jsx(ys,{mode:"wait",presenceKey:d,children:r.length===0?u(e,true):jsxRuntime.jsx(vs,{direction:s,distance:"100%",duration:"normal",children:m(t)})})})]})}function xm(e,t){for(let r of e){if(r.id===t)return r;if(r.children&&r.children.length>0){let o=xm(r.children,t);if(o)return o}}return null}function Wc(e){if(e!==void 0)return typeof e=="number"?`${e}px`:e}function sv(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],d=`${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 ${d} is missing an "id" field. Node name: "${s.name||"(unnamed)"}"`),s.children&&o(s.children,`${d}.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 cv({data:e,currentItems:t,navigationStack:r,selectedId:o,variant:n,size:a,showBullets:i,rootNodeStickyState:s,renderNodeList:d,renderDetailContent:l,renderEmptyState:c,onNavigateBack:u}){let m=o?xm(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(Gc,{node:s.node,position:s.position,selectedId:o,variant:n,size:a,showBullets:i}),r.length>0&&jsxRuntime.jsx(Hc,{navigationStack:r,onNavigateBack:u,size:a}),jsxRuntime.jsx("div",{className:"flex-1 overflow-auto",children:d(t,r.length===0)})]}),jsxRuntime.jsx("div",{className:"flex-1 min-w-0 overflow-auto bg-background-body",children:jsxRuntime.jsx(ys,{mode:"wait",presenceKey:m?.id||"empty",children:m?jsxRuntime.jsx(vs,{direction:"left",duration:"fast",children:l(m)}):c?c():jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-text-secondary text-center",ht[a].node,"py-8"),children:"Select an item to view details"})})})]})}function dv({data:e,renderNode:t,onNodeSelect:r,onNavigate:o,selectedId:n,rootNodeId:a,stickyRootNode:i=true,height:s,minHeight:d,maxHeight:l,variant:c="subtle",size:u="md",showBullets:m=true,layout:p="auto",splitBreakpoint:g=768,renderEmptyState:f,renderDetailView:h,className:b,"aria-label":v="Hierarchy explorer"}){let[y,C]=_e__namespace.useState(null),[T,w]=_e__namespace.useState([]),[N,R]=_e__namespace.useState("left"),[P,E]=_e__namespace.useState({position:null,node:null}),{ref:D,width:k}=ja(),A=_e__namespace.useMemo(()=>p==="split"?true:p==="single"?false:k>=g,[p,k,g]),M=n!==void 0?n:y;_e__namespace.useEffect(()=>{sv(e,a);},[e,a]);let H=T.length>0?T[T.length-1]:null,Y=H?H.children||[]:e,V=_e__namespace.useCallback(I=>{R("left"),w(q=>[...q,I]),o?.(I,[...T,I]);},[T,o]),F=_e__namespace.useCallback(()=>{R("right"),w(I=>{let q=I.slice(0,-1);return o?.(q.length>0?q[q.length-1]:null,q),q});},[o]),X=_e__namespace.useCallback(I=>{n===void 0&&C(I.id),r?.(I,[...T,I]);},[n,T,r]),O=_e__namespace.useCallback((I,q)=>{E({position:I,node:q});},[]),U=_e__namespace.useMemo(()=>({selectedId:M,selectNode:X,navigateToNode:V,navigateBack:F,rootNodeId:a,stickyRootNode:i,variant:c,size:u,showBullets:m,onNodeSelect:r,onNavigate:o,navigationStack:T,setRootNodeSticky:O,useSplitLayout:A}),[M,X,V,F,a,i,c,u,m,r,o,T,O,A]),J=_e__namespace.useRef(null);_e__namespace.useEffect(()=>{if(!a||!J.current||T.length>0||A)return;let I=J.current,q=setTimeout(()=>{let ne=I.querySelector(`[data-node-id="${a}"]`);ne&&ne.scrollIntoView({behavior:"auto",block:"center",inline:"nearest"});},100);return ()=>clearTimeout(q)},[a,T.length,A]);let G={height:Wc(s),minHeight:Wc(d),maxHeight:Wc(l)},B=s!==void 0||l!==void 0,S=H?H.id:"root",x=_e__namespace.useCallback((I,q=false)=>jsxRuntime.jsx(tv,{items:I,showConnector:q,scrollContainerRef:q?J:null,showBullets:m,size:u,renderNode:t}),[m,u,t]),L=_e__namespace.useCallback(I=>I?h?h(I,x):jsxRuntime.jsx(Qy,{node:I,renderNodeList:x}):null,[h,x]);return jsxRuntime.jsx(gm.Provider,{value:U,children:jsxRuntime.jsx("div",{ref:D,className:tailwindMerge.twMerge("select-none bg-background-surface rounded-lg border border-border-default relative",B&&"overflow-hidden",!B&&"h-full flex flex-col",A&&!B&&"flex-row",A&&B&&"flex",b),style:G,role:"tree","aria-label":v,children:A?jsxRuntime.jsx(cv,{data:e,currentItems:Y,navigationStack:T,selectedId:M,variant:c,size:u,showBullets:m,rootNodeStickyState:P,renderNodeList:x,renderDetailContent:L,renderEmptyState:f,onNavigateBack:F}):jsxRuntime.jsx(iv,{currentItems:Y,currentParent:H,navigationStack:T,selectedId:M,variant:c,size:u,showBullets:m,slideDirection:N,viewKey:S,hasHeight:B,rootNodeStickyState:P,renderNodeList:x,renderDetailContent:L,onNavigateBack:F})})})}function xL({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 uv=({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}),pv=({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)=>xL({...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]});pv.displayName="HoverCardContent";var yL=Object.assign(uv,{Root:uv,Content:pv});var SL={md:{fontFamily:"var(--font-family-brand)",fontSize:24,lineHeight:1,letterSpacing:"-0.02em"},lg:{fontFamily:"var(--font-family-brand)",fontSize:34,lineHeight:1.1}},wL={md:{fontSize:12},lg:{fontSize:16}},NL={fontSize:11};function TL(e,t){return fo({value:e,formatter:t,emptyClassName:"text-text-secondary",emptyText:"\u2014"})}function kL(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 PL({points:e,className:t,ariaLabel:r}){let i=e.map(p=>typeof p.y=="number"?p.y:0);if(i.length===0)return null;let s=Math.min(...i),l=Math.max(...i)-s,c=p=>l===0?20/2:18-(p-s)/l*16,u=60/Math.max(e.length-1,1),m=e.map((p,g)=>{let f=2+g*u,h=c(typeof p.y=="number"?p.y:0);return `${g===0?"M":"L"} ${f} ${h}`}).join(" ");return jsxRuntime.jsx("svg",{width:64,height:20,role:"img","aria-label":r,className:tailwindMerge.twMerge("overflow-visible",t),children:jsxRuntime.jsx("path",{d:m,fill:"none",strokeWidth:"1.5",className:"stroke-border-muted"})})}var mv=100,ya=30,fv=1.5,gv=4,RL=12;function EL(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 ML(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,d=n[1]+(a[1]-o[1])/6,l=a[0]-(i[0]-n[0])/6,c=a[1]-(i[1]-n[1])/6;t+=` C ${s} ${d} ${l} ${c} ${a[0]} ${a[1]}`;}return t}function LL({points:e,gradientId:t,tone:r,className:o}){if(!e||e.length<2)return null;let n=EL(e,RL),a=n.map(h=>typeof h.y=="number"?h.y:0),i=Math.min(...a),d=Math.max(...a)-i,l=h=>d===0?ya/2:ya-gv-(h-i)/d*(ya-2*gv),c=(mv-2*fv)/Math.max(n.length-1,1),u=n.map((h,b)=>[fv+b*c,l(typeof h.y=="number"?h.y:0)]),m=ML(u),p=u[u.length-1],g=u[0],f=`${m} L ${p[0]} ${ya} L ${g[0]} ${ya} Z`;return jsxRuntime.jsxs("svg",{width:"100%",height:ya,viewBox:`0 0 ${mv} ${ya}`,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 bv({label:e,value:t,formatter:r,delta:o,deltaPeriodLabel:n,deltaIntent:a="upIsGood",trend:i,status:s,helpText:d,size:l="md",orientation:c="vertical",isLoading:u,empty:m,error:p,onClick:g,className:f,labelClassName:h,renderValue:b,renderDelta:v,renderTrend:y,unit:C,sub:T,dashed:w,sparkVariant:N="line",sparkTone:R,tileValueSize:P}){let E=_e.useId(),k={sm:{label:Pt("labelSm"),value:Pt("displaySm"),delta:Pt("labelSm"),gap:"gap-1"},md:{label:Pt("labelMd"),value:Pt("displayMd"),delta:Pt("bodySm"),gap:"gap-2"},lg:{label:Pt("labelLg"),value:Pt("displayLg"),delta:Pt("bodyMd"),gap:"gap-3"}}[l],A=F=>P?jsxRuntime.jsxs("span",{style:SL[P],className:w?"opacity-45":void 0,children:[F,C?jsxRuntime.jsxs("span",{className:"text-text-secondary",style:wL[P],children:[" ",C]}):null]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[F,C?jsxRuntime.jsxs("span",{className:"text-text-secondary",children:[" ",C]}):null]}),M=u?jsxRuntime.jsx(j,{className:"h-7 w-20"}):m?jsxRuntime.jsx("span",{className:"text-text-secondary",children:"\u2014"}):p?jsxRuntime.jsx("span",{className:Pt("bodySm","text-feedback-error"),children:typeof p=="string"?p:"Error"}):w?A("\u2014"):b?b(t):A(P?t:TL(t,r)),H=v?v(o):o!==void 0&&!u&&!m&&!p&&!w?jsxRuntime.jsxs("div",{className:ur(k.delta,kL(o,a),"flex items-center gap-1"),children:[o>0&&jsxRuntime.jsx(z,{name:"ArrowUp",size:12}),o<0&&jsxRuntime.jsx(z,{name:"ArrowDown",size:12}),o===0&&jsxRuntime.jsx(z,{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(j,{className:"h-4 w-24"}):null,Y=y?y(i):i&&i.length>0&&!u&&!p&&!w?N==="area"?jsxRuntime.jsx(LL,{points:i,gradientId:E,tone:R,className:m?"opacity-30":""}):jsxRuntime.jsx(PL,{points:i,ariaLabel:`${e} trend`,className:m?"opacity-30":""}):u&&i!==void 0?jsxRuntime.jsx(j,{className:"h-5 w-16"}):null,V=T&&!u&&!p?jsxRuntime.jsx("div",{className:"text-text-secondary",style:NL,children:T}):null;return jsxRuntime.jsxs("section",{className:tailwindMerge.twMerge("flex min-w-0",c==="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(ur(k.label,"text-text-secondary truncate"),h),children:u?jsxRuntime.jsx(j,{className:"h-4 w-24"}):e}),d&&!u&&jsxRuntime.jsx(z,{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:ur(P?void 0:k.value,p?"text-feedback-error":"text-text-primary"),"aria-label":`Value: ${t}`,children:M}),s&&!u&&!p&&jsxRuntime.jsx(gt,{variant:s.tone||"neutral",size:"sm",children:s.value})]}),V,(H||Y)&&jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[H,Y]})]})}var hv={xs:"gap-2",sm:"gap-3",md:"gap-4",lg:"gap-6",xl:"gap-8"},xv={start:"items-start",center:"items-center",stretch:"items-stretch"};function yv(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 Cm({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:d="140px",className:l}){let c=i?_e__namespace.default.Children.map(e,p=>_e__namespace.default.isValidElement(p)&&p.type&&typeof p.type!="string"&&"displayName"in p.type?_e__namespace.default.cloneElement(p,{isLoading:true}):p):e,u=s?_e__namespace.default.Children.map(c,p=>jsxRuntime.jsx("div",{className:"shrink-0",style:{minWidth:d},children:p})):c,m=s?tailwindMerge.twMerge("flex overflow-x-auto pb-2 -mb-2",hv[r],"sm:grid sm:overflow-visible sm:pb-0 sm:-mb-0",yv({...typeof t=="object"?t:{base:t},base:void 0}),xv[o],n&&"sm:auto-rows-fr"):tailwindMerge.twMerge("grid",yv(t),hv[r],xv[o],n&&"auto-rows-fr","w-full");return jsxRuntime.jsxs("section",{className:tailwindMerge.twMerge("w-full",l),"aria-label":"Key metrics",children:[a&&jsxRuntime.jsx("div",{className:"mb-4",children:a}),jsxRuntime.jsx("div",{className:m,children:s?u:c})]})}Cm.displayName="KpiGroup";function Sv({items:e,renderItem:t,selectedId:r,onSelect:o,onHoverChange:n,isLoading:a=false,loadingState:i,error:s=null,renderLoadingSkeleton:d,loadingSkeletonCount:l=5,emptyMessage:c="No results found.",variant:u="relaxed",showDividers:m=true,onLoadMore:p,hasMore:g=false,enableVirtualization:f,estimatedItemSize:h=60,loadingIndicator:b,"aria-label":v,className:y="",style:C}){let[T,w]=_e.useState(null),N=_e.useRef(null),R=_e.useRef(new Map),{scrollRef:P,loadMoreRef:E,virtualizer:D,virtualItems:k,isLoadingMore:A,computedLoadingState:M}=ln({items:e,onLoadMore:p,hasMore:g,isLoading:a,loadingState:i,enableVirtualization:f,estimatedItemSize:h,overscan:5}),H=P??N,Y=_e.useCallback((x,L)=>{o?.(x,L);},[o]),V=_e.useCallback((x,L)=>{w(x),n?.(x,L);},[n]),F=_e.useCallback((x,L)=>{let I=x?.id;return typeof I=="string"&&I?I:`item-${L}`},[]),X=_e.useCallback(x=>{if(!H.current||e.length===0)return;let L=document.activeElement,I=e.findIndex(($,ie)=>{let Ie=F($,ie),ue=R.current.get(Ie);return ue&&(ue===L||ue.contains(L))}),q=I;switch(x.key){case "ArrowDown":x.preventDefault(),q=I===-1?0:Math.min(I+1,e.length-1);break;case "ArrowUp":x.preventDefault(),q=I===-1?0:Math.max(I-1,0);break;case "Home":x.preventDefault(),q=0;break;case "End":x.preventDefault(),q=e.length-1;break;default:return}let ne=F(e[q],q);R.current.get(ne)?.focus();},[e,F,H]),O=["flex flex-col","bg-background-surface","focus:outline-none focus:ring-2 focus:ring-border-focus focus:ring-offset-2"],U={dense:"gap-0",relaxed:"gap-0"},J=m?"divide-y divide-border-muted":"",G=[...O,U[u],J,y].filter(Boolean).join(" ");if(M==="loading"||a&&e.length===0){let x=d?jsxRuntime.jsx(jsxRuntime.Fragment,{children:Array.from({length:l}).map((L,I)=>jsxRuntime.jsx("div",{children:d()},`skeleton-${I}`))}):jsxRuntime.jsx(Sg,{count:l,className:"space-y-0",children:jsxRuntime.jsxs("div",{className:"flex items-center gap-3 px-4 py-3",children:[jsxRuntime.jsx(j,{width:16,height:16,variant:"circle"}),jsxRuntime.jsxs("div",{className:"flex-1 space-y-2",children:[jsxRuntime.jsx(j,{width:"75%",height:16}),jsxRuntime.jsx(j,{width:"50%",height:14})]}),jsxRuntime.jsx(j,{width:60,height:20})]})});return jsxRuntime.jsx("div",{ref:H,className:G,style:C,role:"listbox","aria-label":v,"aria-busy":"true","aria-live":"polite",children:x})}if(s)return jsxRuntime.jsx("div",{ref:H,className:G,style:C,role:"listbox","aria-label":v,"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:H,className:G,style:C,role:"listbox","aria-label":v,"aria-live":"polite",children:jsxRuntime.jsx("div",{className:"p-4 text-center text-text-secondary",children:c})});let S=D?k?.map(x=>({virtualItem:x,item:e[x.index],index:x.index}))||[]:e.map((x,L)=>({item:x,index:L,virtualItem:null}));return jsxRuntime.jsxs("div",{ref:H,className:G,style:{...C,...p&&{overflow:"auto",height:C?.height||"600px"}},role:"listbox","aria-label":v,"aria-live":"polite",onKeyDown:X,tabIndex:0,children:[D&&jsxRuntime.jsxs("div",{style:{height:`${D.getTotalSize()}px`,width:"100%",position:"relative"},children:[S.map(({virtualItem:x,item:L,index:I})=>{if(!x)return null;let q=F(L,I),ne=r===q,ae=T===q,$={id:q,role:"option","aria-selected":ne,"aria-current":ne?"page":void 0,tabIndex:ne||r==null&&I===0?0:-1,onClick:ie=>Y(ie,L),onMouseEnter:ie=>V(ie,L),onMouseLeave:ie=>V(null),onFocus:ie=>V(ie,L),onBlur:ie=>V(null),ref:ie=>{ie?R.current.set(q,ie):R.current.delete(q);}};return jsxRuntime.jsx("div",{"data-index":x.index,ref:D.measureElement,style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${x.start}px)`},children:t({item:L,index:I,isSelected:ne,isHovered:ae,rowProps:$})},q)}),p&&g&&jsxRuntime.jsx("div",{ref:E,style:{position:"absolute",top:`${D.getTotalSize()}px`,left:0,width:"100%",height:1,pointerEvents:"none"}}),A&&jsxRuntime.jsx("div",{style:{position:"absolute",top:`${D.getTotalSize()}px`,left:0,width:"100%"},children:b||jsxRuntime.jsx(Ur,{state:"loading-more"})})]}),!D&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[S.map(({item:x,index:L})=>{let I=F(x,L),q=r===I,ne=T===I,ae={id:I,role:"option","aria-selected":q,"aria-current":q?"page":void 0,tabIndex:q||r==null&&L===0?0:-1,onClick:$=>Y($,x),onMouseEnter:$=>V($,x),onMouseLeave:$=>V(null),onFocus:$=>V($,x),onBlur:$=>V(null),ref:$=>{$?R.current.set(I,$):R.current.delete(I);}};return jsxRuntime.jsx("div",{children:t({item:x,index:L,isSelected:q,isHovered:ne,rowProps:ae})},I)}),p&&g&&jsxRuntime.jsx("div",{ref:E,style:{height:1}}),A&&(b||jsxRuntime.jsx(Ur,{state:"loading-more"}))]})]})}function Nv({id:e,title:t,subtitle:r,meta:o,leading:n,trailing:a,isSelected:i=false,isHovered:s=false,disabled:d=false,href:l,size:c="md",onClick:u,onMouseEnter:m,onMouseLeave:p,className:g="",style:f,piiTitleType:h,piiSubtitleType:b,piiEntity:v}){let y=()=>{!d&&u&&u(e);},C=()=>{!d&&m&&m(e);},T=()=>{!d&&p&&p(e);},N={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"}}[c],R=["flex items-center w-full text-left transition-all duration-200 ease-in-out",N.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",d&&"opacity-50 cursor-not-allowed",!d&&!i&&"hover:bg-background-hover"],E=[...R,...P,g].filter(Boolean).join(" "),D=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 ${N.title}`,title:typeof t=="string"?t:void 0,"data-pii-type":h&&v?h:void 0,"data-pii-entity":h&&v?v:void 0,children:t}),r&&jsxRuntime.jsx("div",{className:`text-text-secondary truncate ${N.subtitle} ${N.subtitleSpacing}`,title:typeof r=="string"?r:void 0,"data-pii-type":b&&v?b:void 0,"data-pii-entity":b&&v?v:void 0,children:r}),o&&jsxRuntime.jsx("div",{className:`text-text-secondary ${N.meta} ${N.metaSpacing}`,children:o})]})})}),a&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:a})]});return l?jsxRuntime.jsx("a",{href:l,className:E,style:f,onMouseEnter:C,onMouseLeave:T,"aria-selected":i,"aria-current":i?"page":void 0,tabIndex:d?-1:0,children:D}):jsxRuntime.jsx("button",{type:"button",className:E,style:f,onClick:y,onMouseEnter:C,onMouseLeave:T,disabled:d,"aria-selected":i,tabIndex:d?-1:0,children:D})}function Tv({header:e,children:t,footer:r,width:o="md",tone:n="neutral",elevation:a="sm",showDivider:i=true,"aria-label":s,"aria-labelledby":d,className:l="",style:c}){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",l);return jsxRuntime.jsxs("div",{className:g,style:c,role:"complementary","aria-label":s,"aria-labelledby":d,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 zL({children:e,...t}){return jsxRuntime.jsx(reactAriaComponents.ListBox,{...t,className:Ae(t.className,"outline-0"),children:e})}function Xc(){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 jc(e,t){let[r,o]=_e.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}});_e.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=_e.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=_e.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 wm=[{type:"navigation",position:"bottom-right",showCompass:true,showGeolocate:true,showResetZoom:true}];function Pv(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 KL="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 Rv(e){return tailwindMerge.twMerge(KL,e)}var Ev="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJcAAACXCAYAAAAYn8l5AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABtCSURBVHgB7Z2Jkty0GoV7hlz2HcIeSPGkPCmELRC2sO8kN5+L03XmR7IlW3LbSZ+qrp7pdtuydPTvki9u3Lhx/7ASLi4uDvfv973cvXv3Dn/++efh2rVrx2vyAo899tjwThu8Hfo+1d5SLLkv2vXzzz8fnnvuucPff/99eFhw7bAi/vnnn8Pl5eWVz3IDOHewGKgnnnjiCoEgHH///vvvh8cff3z4nrbE63lb+LvFQHMe2jR2P7p2bNMe4f24Grk02LkOjCQTCfmNE3KKdLo5l1jCk08+efjtt98OP/300yAlUgRTW3RdiLkEJZOEa4hccfItuWaN5O2B1cg1daNxEHzg4wCj8koGLXVOCMbnP/zww+GZZ54ZpIoGV8eLoC3IVYNWZPDzRIncG36t5dNkZ5CKfPHFFw9//PHH4ddffz3aYi7tJGkjkXvZjCJy6/P7/bRAzaTeJblaSJO//vrr8PTTTw/2F1IMSCX5gHAtV1VzpEBJe//3v/8NNl4vKdNDKo4dM5gVhxXR21OsgWwc3l944YXBFsPglxQDfM9rjXbTDqnnhwWrkStlYJ8aag8Ekv31448/DpJK3021me9RnU7KiOhktAh9zMWaE3zVUMSWgdSAIHiRxJxQU5CmVAWPOQAMaAxrOIH1++hYtIYb92sY+o+cQT8FpBgEo/NRlaWhgVpCxOPXkFqRzL2vdSZXgGyxp556avh/KrApD692sOLxiqttyS51zGnX7skVbZnUaw5EsGjkp64P5kgub5u80q2mf+b04y5trik7KEb0UyRz20Z/x2MgGHYXYYsS9Zg7TwqRjIqrtYxHtVJ9c891TWJfYrlF+uHUiOTLDVg0blMdSEQ/ly7y87QgRTTyl6DEcC8lzdw2XfoJthYq6A2XFAq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7Dav+EOO2oojEn8WdyuYzZbw6+e/WpX6eGYK0xR3BJhumCL/0lYS1EWShiFKXp4HOjIdwcvzNzjuNg4uobmh3lmZNljg+RHIokP7iJ+//S9/0JF4UWgALQSUifcPn+AvCxKcp8u7vR5XAiSC3WYDByQWZ1myzFUtOgbu577+f5ZPq/B5Pf+nAAAAAElFTkSuQmCC";function qc(e){return e.selection?.mode==="single"}function Ln(e){let t=[],r=o=>{o.layerId&&t.push(o.layerId);for(let n of o.children??[])r(n);};return r(e),t}function Nm(e,t){let r=Ln(e);if(r.length===0)return "unchecked";let o=0;for(let n of r)t(n)&&o++;return o===0?"unchecked":qc(e)||o===r.length?"checked":"indeterminate"}var va=(e,t)=>Object.fromEntries(e.map(r=>[r,t]));function Iv(e,t){let r=Ln(e);if(!(Nm(e,t)!=="checked"))return va(r,false);if(qc(e)){let n=e.children?.[0],a=n?Ln(n):[];return {...va(r,false),...va(a,true)}}return va(r,true)}function Fv(e,t,r){let o=e.children?.find(s=>s.id===t);if(!o)return {};let n=Ln(e),a=Ln(o);return a.length>0&&a.every(r)?e.selection?.mode==="single"&&e.selection.allowNone?va(a,false):{}:{...va(n,false),...va(a,true)}}function Tm(e,t){for(let r of e){if(r.id===t)return r;let o=Tm(r.children??[],t);if(o)return o}}function km(e,t){for(let r of e){if(r.children?.some(n=>n.id===t))return r;let o=km(r.children??[],t);if(o)return o}}function Bv(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 Ov(e){return e.map(t=>({id:t.id,label:t.label,...t.children?.length?{children:Ov(t.children)}:{}}))}function zv(e){let t=e.length;for(let r of e)r.children?.length&&(t=Math.max(t,zv(r.children)));return t}function Vv({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 YL({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 JL(){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 XL=41,jL=44,qL=132,QL=360;function Hv({tree:e,layers:t,onVisibilityChange:r}){let o=new Map(t.map(s=>[s.id,s])),n=s=>{let d=o.get(s);return !!d&&d.visible!==false};if(process.env.NODE_ENV!=="production"){let s=Bv(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 d=e.flatMap(Ln).filter(l=>!o.has(l));d.length>0&&console.warn(`[LayersPanel] \`layerTree\` references layer id(s) not present in \`layers\`: ${d.join(", ")}. Those rows render as hidden and cannot be turned on.`);}let a=Ov(e),i=Math.min(QL,Math.max(qL,zv(e)*XL+jL));return jsxRuntime.jsx("div",{className:"overflow-hidden",style:{height:i},"data-layers-panel":"",children:jsxRuntime.jsx(Xa,{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:d,select:l})=>{let c=Tm(e,s.id);if(!c)return null;let u=Nm(c,n),p=(c.layerId?o.get(c.layerId):void 0)?.legend,g=Ln(c),f=g.filter(n).length,h=d&&u==="indeterminate"?`${f} of ${g.length} on`:null,b=km(e,c.id),v=!!b&&qc(b),y=w=>{Object.keys(w).length>0&&r?.(w);},C=v?jsxRuntime.jsx(YL,{isSelected:u!=="unchecked",onPress:()=>y(Fv(b,c.id,n)),label:c.label}):jsxRuntime.jsx(eo,{isSelected:u==="checked",isIndeterminate:u==="indeterminate",onChange:()=>y(Iv(c,n)),"aria-label":c.label}),T=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:c.label}),h?jsxRuntime.jsx("span",{className:"text-[10px] text-text-secondary",children:h}):null]});return jsxRuntime.jsxs("div",{className:"edges-layers-panel__row flex cursor-default items-center gap-2 py-2.5",children:[C,d?jsxRuntime.jsxs("button",{type:"button",onClick:l,className:"flex min-w-0 flex-1 cursor-pointer items-center gap-2 border-0 bg-transparent p-0 text-left","aria-label":`Open ${c.label}`,children:[p?jsxRuntime.jsx(Vv,{type:p.swatch,color:p.color}):null,T,jsxRuntime.jsx(JL,{})]}):jsxRuntime.jsxs("span",{className:"flex min-w-0 flex-1 items-center gap-2",children:[p?jsxRuntime.jsx(Vv,{type:p.swatch,color:p.color}):null,T]})]})}})})}function Dn({position:e="top-right",className:t,style:r,children:o}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(Pv(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:d,iconWeight:l="regular",...c}){let u=tailwindMerge.twMerge(Rv(),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,{...c,className:u,onPress:r,variant:i,size:"sm",isDisabled:o,"aria-label":d,"aria-pressed":s||void 0,type:"button",children:jsxRuntime.jsx(z,{name:e,size:t,className:m,weight:l})})}var rD=e=>[{id:"streets",name:"Streets",description:"Standard street map with traffic data",preview:e?Dv:Av},{id:"satellite",name:"Satellite",description:"Aerial imagery with street labels",preview:Lv},{id:"neutral",name:"Neutral",description:"Clean design with light/dark variants",preview:e?Ev:Mv}];function oD({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 Uv({position:e="bottom-left",className:t,style:r,currentMapType:o="streets",onMapTypeChange:n,layers:a=[],onLayerToggle:i,onClearAll:s,onLayerVariantChange:d,layerTree:l,onVisibilityChange:c}){let{isDarkTheme:u}=Qt(),{isMobile:m}=dr(),[p,g]=_e.useState(false),f=rD(u),h=y=>{n?.(y);},b=a.filter(y=>y.legend),v=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(y=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>h(y.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===y.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===y.id?"border-2 border-action-default":"border border-border-default"),children:jsxRuntime.jsx("img",{src:y.preview,alt:`${y.name} map preview`,className:"w-full h-full object-cover"})}),jsxRuntime.jsx("div",{className:"text-sm "+(o===y.id?"font-bold text-text-primary":"font-normal text-text-secondary"),children:y.name})]},y.id))})]}),l?.length?jsxRuntime.jsxs("div",{children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between mb-3",children:[jsxRuntime.jsx("div",{className:"text-sm font-semibold text-text-primary",children:"Map details"}),s&&jsxRuntime.jsx("button",{type:"button",onClick:s,className:"text-xs text-text-secondary hover:text-text-primary transition-colors",children:"Clear all"})]}),jsxRuntime.jsx(Hv,{tree:l,layers:a,onVisibilityChange:c})]}):null,!l?.length&&b.length>0&&jsxRuntime.jsxs("div",{children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between mb-3",children:[jsxRuntime.jsx("div",{className:"text-sm font-semibold text-text-primary",children:"Map details"}),s&&jsxRuntime.jsx("button",{type:"button",onClick:s,className:"text-xs text-text-secondary hover:text-text-primary transition-colors",children:"Clear all"})]}),jsxRuntime.jsx("div",{className:"space-y-2",children:b.map(y=>{let C=y.visible!==false,T=y.legend?.variants;return jsxRuntime.jsxs("div",{className:T?"space-y-1.5":void 0,children:[jsxRuntime.jsx(eo,{isSelected:C,onChange:()=>i?.(y.id),children:jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[y.legend&&jsxRuntime.jsx(oD,{type:y.legend.swatch,color:y.legend.color}),jsxRuntime.jsx("span",{className:"text-sm text-text-primary",children:y.legend?.label})]})}),T&&jsxRuntime.jsx("div",{className:"pl-6",children:jsxRuntime.jsx(Ho,{"aria-label":`${y.legend?.label} mode`,size:"sm",isDisabled:!C,items:T.options.map(w=>({...w,value:w.id})),renderItem:w=>w.label,selectedKey:T.selectedId,onSelectionChange:w=>d?.(y.id,String(w))})})]},y.id)})})]})]});return jsxRuntime.jsx(Dn,{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:v})]}):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:v})})]})})})}function Yv({position:e="top-right",className:t,style:r,onToggle:o,isActive:n=false}){return jsxRuntime.jsx(Dn,{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 sD={sm:"gap-2",md:"gap-4",lg:"gap-6"};function Zc({position:e="top-right",className:t,style:r,children:o,orientation:n="vertical",spacing:a="md"}){return jsxRuntime.jsx(Dn,{position:e,style:r,children:jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex",n==="vertical"?"flex-col":"flex-row",sD[a],t),children:o})})}function Xv({mapRef:e,position:t="bottom-right",className:r,style:o,showCompass:n=true,showGeolocate:a=true,showResetZoom:i=true,onResetZoom:s,onCompassClick:d,onGeolocateClick:l}){let[c,u]=_e.useState(false),m=_e.useRef(true);_e.useEffect(()=>()=>{m.current=false;},[]);let p=()=>{d?d():e.current&&e.current.easeTo({bearing:0,duration:500});},g=async()=>{if(!c)if(l)l();else {if(!navigator.geolocation){console.warn("Geolocation is not supported by this browser.");return}if(navigator.permissions?.query)try{if((await navigator.permissions.query({name:"geolocation"})).state==="denied"){console.warn("Geolocation permission was previously denied. Please enable location services in your browser settings.");return}}catch{}u(true),navigator.geolocation.getCurrentPosition(y=>{if(!m.current)return;let{latitude:C,longitude:T}=y.coords;e.current&&e.current.flyTo({center:[T,C],zoom:15,duration:2e3}),u(false);},y=>{if(m.current){switch(console.warn("Geolocation error:",{code:y.code,message:y.message,PERMISSION_DENIED:y.PERMISSION_DENIED,POSITION_UNAVAILABLE:y.POSITION_UNAVAILABLE,TIMEOUT:y.TIMEOUT}),y.code){case y.PERMISSION_DENIED:console.warn("Location access denied. Please enable location services in your browser settings.");break;case y.POSITION_UNAVAILABLE:console.warn("Location information unavailable.");break;case y.TIMEOUT:console.warn("Location request timed out.");break;default:console.warn("Error getting location:",y.message);break}u(false);}},{enableHighAccuracy:true,timeout:1e4,maximumAge:0});}};if(!n&&!a&&!i)return null;let f=!i&&n,h=!i&&!n&&a,b=!a&&n;return jsxRuntime.jsxs(Zc,{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:c?"Spinner":"NavigationArrow",onPress:g,isDisabled:c,ariaLabel:"Go to my location",iconClassName:tailwindMerge.twMerge("text-text-primary",c&&"animate-spin"),className:tailwindMerge.twMerge(!h&&"rounded-t-none border-t-0",!h&&n&&"lg:rounded-t lg:border-t")})]})}function Zv({position:e="top-left",className:t,style:r,onSearch:o,placeholder:n="Search places...",showSearchInput:a=true}){let[i,s]=_e.useState(false),[d,l]=_e.useState(""),c=()=>{a?s(!i):o&&o("");},u=p=>{p.preventDefault(),o&&d.trim()&&(o(d.trim()),s(false));},m=p=>{p.key==="Escape"&&s(false);};return jsxRuntime.jsx(Dn,{position:e,className:t,style:r,children:jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx(Hr,{icon:"MagnifyingGlass",onPress:c,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:d,onChange:p=>l(p.target.value),onKeyDown:m,placeholder:n,className:tailwindMerge.twMerge("flex-1 px-3 py-2 text-sm rounded border","bg-background border-border text-text-primary placeholder:text-text-secondary","focus:outline-none focus:ring-2 focus:ring-action-brand"),autoFocus:true}),jsxRuntime.jsx(te,{type:"submit",variant:"primary",size:"sm",className:"px-3 py-2",children:"Search"})]})})})]})})}var pD={navigation:"bottom-right",layers:"bottom-left",search:"top-left",list:"top-right",custom:"top-right"};function Rm(e){return e.position??pD[e.type]}function _v(e,t,r){let o=Rm(e),n=e.id??`${e.type}-${t}`;switch(e.type){case "navigation":{let i=e.showResetZoom!==false&&r.showResetButton;return jsxRuntime.jsx(Xv,{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(Uv,{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(Zv,{position:o,onSearch:e.onSearch,placeholder:e.placeholder,showSearchInput:e.showSearchInput,style:e.style,className:e.className},n);case "list":return jsxRuntime.jsx(Yv,{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 Em(e,t){let r=e.reduce((n,a,i)=>{let s=Rm(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(_v(a[0].control,a[0].index,t));continue}let i={position:"static",top:"auto",right:"auto",bottom:"auto",left:"auto"};o.push(jsxRuntime.jsx(Zc,{position:n,spacing:"sm",children:a.map(({control:s,index:d})=>{let l={...s,style:{...s.style,...i}};return _v(l,d,t)})},`group-${n}`));}return o}var Mm={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 Lm(e){return e.kind==="vector"}function Dm(e){return e.kind==="geojson"}function Am(e){return e.kind==="customPins"}function Im(e){return e.kind==="raster"}var Ns=(e,t)=>({id:e,label:t,kind:"sequential",hint:"Low \u2192 High",stops:()=>Ei(e),toColorSpec:({by:r,scale:o="auto"})=>({by:r,palette:"sequential",scheme:e,scale:o})}),Fm=(e,t)=>({id:e,label:t,kind:"diverging",hint:"Low \u2192 Mid \u2192 High",stops:()=>Mi(e),toColorSpec:({by:r,scale:o="auto",center:n=0})=>({by:r,palette:"diverging",scheme:e,center:n,scale:o})}),$c=[Ns("viridis","Viridis"),Ns("magma","Magma"),Ns("cerulean","Cerulean"),Ns("forest","Forest"),Ns("rose","Rose")],ed=[Fm("redYellowBlue","Red \u2192 Blue"),Fm("orangeYellowSeafoam","Orange \u2192 Seafoam"),Fm("redBlue","Red / Blue")],td={id:"categorical",label:"Categorical",kind:"categorical",hint:"Distinct per value",stops:()=>Oo(),toColorSpec:({by:e})=>({by:e,palette:"categorical",scale:"auto"})},Ts=[...$c,...ed,td];function Bm(e){return Ts.find(t=>t.id===e)}function Vm(e){return Ts.filter(t=>t.kind===e)}function tC(e){return !e.includes("{z}")}function Ps(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(fD,{spec:o,mapType:t},o.id);case "geojson":return jsxRuntime.jsx(bD,{spec:o,mapType:t},o.id);case "customPins":return jsxRuntime.jsx(hD,{spec:o,mapType:t},o.id);case "raster":return jsxRuntime.jsx(xD,{spec:o},o.id);case "clusteredVector":return jsxRuntime.jsx(gD,{spec:o,mapType:t},o.id);default:return console.warn("[Layers] Unknown layer kind:",o.kind),null}})})}function fD({spec:e,mapType:t}){let{colorMode:r}=Qt(),o=_e.useMemo(()=>{let d=oC(e.style,e.renderAs,r,t);if((e.hideChipWhen||e.revealChipOnHover)&&e.renderAs==="circle"){let l=d,c=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 {...d,"circle-opacity":c(l["circle-opacity"]??1),"circle-stroke-opacity":c(l["circle-stroke-opacity"]??1)}}return d},[e.style,e.renderAs,e.hideChipWhen,e.revealChipOnHover,r,t]),n=_e.useMemo(()=>({visibility:e.visible===false?"none":"visible"}),[e.visible]),a={id:e.id,type:rC(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(DD.Layer,{...a,source:e.sourceId});let i=tC(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(DD.Source,{...s,children:jsxRuntime.jsx(DD.Layer,{...a})},`${e.tileset}:${e.renderAs}`)}function gD({spec:e}){let{colorMode:t,isDarkTheme:r}=Qt(),o=1.25,n=9,a=3,i=n*1.4,s=.2,d=[0,5],l=_e.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]),c=10,u=30,m=Math.log(2),p=Math.log(2e3),g=(e.clusterStyle?.sizes?.length??0)>0,f=_e.useMemo(()=>g?e.clusterStyle.sizes.map(({threshold:T,radius:w})=>({threshold:T,radius:w,color:l.clusters})):[{threshold:30,radius:20,color:l.clusters},{threshold:200,radius:35,color:l.clusters},{threshold:1e3,radius:50,color:l.clusters}],[g,e.clusterStyle?.sizes,l.clusters]),h=T=>g?["step",["get","point_count"],T[0].radius,...T.flatMap(({threshold:w,radius:N})=>[w,N])]:["interpolate",["linear"],["ln",["max",2,["get","point_count"]]],m,c,p,u],b=T=>g?["step",["get","point_count"],T[0].radius*o,...T.flatMap(({threshold:w,radius:N})=>[w,N*o])]:["interpolate",["linear"],["ln",["max",2,["get","point_count"]]],m,c*o,p,u*o],v=tC(e.tileset),y={id:`${e.id}-source`,type:"vector"};v?y.url=e.tileset:(y.tiles=[e.tileset],y.minzoom=0,y.maxzoom=22);let C=_e.useMemo(()=>{let T=e.pointStyle?.radius??n,w=e.pointStyle?.borderWidth??a,N=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":l.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":l.point.shadow,"circle-blur":s,"circle-translate":d}}),R({id:`${e.id}-clusters`,type:"circle","source-layer":e.sourceLayer,filter:["==",["get","cluster"],true],paint:{"circle-radius":h(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":l.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":T,"circle-color":l.point.fill,"circle-stroke-width":w,"circle-stroke-color":l.point.stroke}}),R({id:`${e.id}-selected-point`,type:"circle","source-layer":e.sourceLayer,filter:["==",["get","id"],e.selectedId||"selected"],paint:{"circle-radius":N,"circle-color":l.selected.fill,"circle-stroke-width":w,"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":$v(T,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":$v(N,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,l,n,a,i,s]);return jsxRuntime.jsx(DD.Source,{...y,children:C.map(T=>jsxRuntime.jsx(DD.Layer,{...T},T.id))},e.tileset)}function bD({spec:e,mapType:t}){let{colorMode:r}=Qt(),o=_e.useMemo(()=>typeof e.data=="string"?null:e.data,[e.data]),n=_e.useMemo(()=>oC(e.style,e.renderAs,r,t,o),[e.style,e.renderAs,r,t,o]),a=_e.useMemo(()=>({visibility:e.visible===false?"none":"visible"}),[e.visible]),i=_e.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 d={id:e.id,type:rC(e.renderAs),paint:n,layout:a};return e.minZoom!==void 0&&(d.minzoom=e.minZoom),e.maxZoom!==void 0&&(d.maxzoom=e.maxZoom),jsxRuntime.jsx(DD.Source,{...s,children:jsxRuntime.jsx(DD.Layer,{...d})})}function hD({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(DD.Marker,{longitude:a,latitude:i,anchor:"bottom",children:jsxRuntime.jsx(r,{...s})},`${e.id}-${n}`)})})}function xD({spec:e}){let t=_e.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(DD.Source,{...r,children:jsxRuntime.jsx(DD.Layer,{...o})},e.tileset)}var lo="#666";function $v(e,t){let r=t??64;return e*2/r}function rC(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 oC(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"]=rd(e.width)),e.radius&&t==="circle"&&(a["circle-radius"]=rd(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):Ot(`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]:rd(e.weight)),e.intensity!==void 0&&(a["heatmap-intensity"]=e.intensity),e.radius!==void 0&&(a["heatmap-radius"]=rd(e.radius)),e.opacity!==void 0&&(a["heatmap-opacity"]=e.opacity)),a}function yD(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 vD(e,t){let r=Pf(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=Ri(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 CD(e,t="viridis",r,o){let n=Hd(r,e),a;if(o&&o!=="auto")a=o;else {if(a=Gd(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=Ei(t),s=["interpolate",["linear"],["get",e]];return i.forEach((d,l)=>{let c=l/(i.length-1),u=a.min+c*(a.max-a.min);s.push(u,d);}),s}function SD(e,t="redYellowBlue",r,o,n){let a=Hd(r,e),i=Rf(a,o),s;if(n&&n!=="auto")s=n;else {if(s=Gd(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 d=Mi(t),l=4,c=["interpolate",["linear"],["get",e]];for(let u=0;u<=l;u++){let m=u/l,p=s.min+m*(i-s.min);c.push(p,d[u]);}for(let u=l+1;u<d.length;u++){let m=(u-l)/(d.length-1-l),p=i+m*(s.max-i);c.push(p,d[u]);}return c}function eC(e){if(!(e.startsWith("var(")||e.startsWith("--")||e.startsWith("color-")))return e;let r=Ot(e,lo);return r.includes("var(")?lo:r}function Qr(e,t,r){if(typeof e=="string")return eC(e);if("token"in e)return Ot(e.token,lo);if("hex"in e)return eC(e.hex);if("by"in e){if("palette"in e){if(e.palette==="categorical")return r?vD(e.by,r):(console.warn("[Layers] Categorical auto-assignment requires GeoJSON data (not URL-based data)"),lo);if(e.palette==="sequential")return r?CD(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?SD(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 yD(e)}return lo}function rd(e){return typeof e=="number"?e:"byZoom"in e?["interpolate",["linear"],["zoom"],...e.byZoom.flatMap(([t,r])=>[t,r])]:e}var nd=null;function ad(){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():(nd||(nd=import('mapbox-gl/dist/mapbox-gl.css').then(()=>{}).catch(t=>{console.error("Failed to load Mapbox CSS",t),nd=null;})),nd)}function id(){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 iC="color-mix(in srgb, var(--color-map-neutral-border) 8%, transparent)",yD={backgroundImage:`linear-gradient(to right, ${iC} 1px, transparent 1px), linear-gradient(to bottom, ${iC} 1px, transparent 1px)`,backgroundSize:"24px 24px"},vD={backgroundColor:"color-mix(in srgb, var(--color-map-marker-default) 12%, transparent)"};function ad({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:yD}),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:vD}),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 sC=Ze.createContext(null);function lC({mapStyleUrl:e,children:t}){return jsxRuntime.jsx(sC.Provider,{value:e??null,children:t})}function fi(){return Ze.useContext(sC)}var cC={streets:"streets",satellite:"satellite",neutral:"neutral"},id="streets";function sd(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 dC({longitude:e,latitude:t,showPulse:r=true,accuracy:o}){return jsxRuntime.jsx(RD.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 AD={name:"mercator"},ID=[],Ps=Ze__namespace.default.forwardRef(({initialViewState:e,mapStyleUrl:t,viewState:r,onViewStateChange:o,scrollEnabled:n=true,className:a,previewMode:i=false,previewModeCta:s,onPreviewModePress:c,mapType:l=id,layers:d=[],mapboxAccessToken:u,transformRequest:m,isLoading:p=false,onLoad:g,controls:f="default",showUserLocation:y=true,onUserLocationChange:b,children:h,additionalInteractiveLayerIds:x=ID,onMapClick:C,showMarker:N=false,markerLocation:S},T)=>{let R=u??Yc();if(!R)return jsxRuntime.jsx("div",{className:`relative ${a||""}`,style:{width:"100%",height:"100%"},children:jsxRuntime.jsx(ad,{className:"w-full h-full",message:"Map unavailable"})});let{isDarkTheme:P}=Qt(),E=fi(),D=t??E,k=Ze.useRef(null),A=Ze.useRef(null),[M,z]=Ze.useState(false),[F,B]=Ze.useState(false);Ze.useEffect(()=>{od();},[]);let[O,Q]=Ze.useState(false),H=Ze.useRef(0),[U,W]=Ze.useState(null),[G,K]=Ze.useState(null),w=Ze.useRef(null),v=Ze.useRef(null),[L,I]=Jc("interactiveMap.trackingLocation",false),[X,oe]=Ze.useState(false);Ze.useEffect(()=>{if(!navigator.geolocation){oe(true);return}if(L){if(!navigator.permissions?.query){oe(true);return}navigator.permissions.query({name:"geolocation"}).then(Y=>{Y.state!=="granted"&&I(false),oe(true);}).catch(()=>{oe(true);});}else oe(true);},[]),Ze.useEffect(()=>{let Y=setTimeout(()=>{M||B(true);},200);return ()=>clearTimeout(Y)},[M]),Ze.useEffect(()=>{v.current=null;},[l,P]),Ze.useEffect(()=>{if(M)return;let Y=setInterval(()=>{if(k.current?.loaded()){z(true),B(false);let J=k.current.getMap?.();J&&v.current!==J&&(v.current=J,g?.()),clearInterval(Y);}},200);return ()=>clearInterval(Y)},[M,g]),Ze.useEffect(()=>{if(X){if(!L||i){w.current!==null&&(navigator.geolocation.clearWatch(w.current),w.current=null);return}if(!navigator.geolocation){console.warn("Geolocation is not supported by this browser.");return}return w.current=navigator.geolocation.watchPosition(Y=>{let J={latitude:Y.coords.latitude,longitude:Y.coords.longitude,accuracy:Y.coords.accuracy};K(J),b?.(J);},Y=>{console.warn("Geolocation error:",Y.message),K(null),b?.(null);},{enableHighAccuracy:true,maximumAge:3e4,timeout:3e4}),()=>{w.current!==null&&(navigator.geolocation.clearWatch(w.current),w.current=null);}}},[L,i,b,X]);let ie=Ze.useCallback(()=>{z(true),B(false);let Y=k.current?.getMap?.();Y&&v.current!==Y&&(v.current=Y,g?.());},[g]),re=Ze.useCallback(()=>{k.current&&e&&(Q(false),H.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]),ae=Ze.useMemo(()=>f===false||f===null?[]:f==="default"||f===void 0?ym:f,[f]),Le=Ze.useCallback(()=>{if(!navigator.geolocation){console.warn("Geolocation is not supported by this browser.");return}I(true),navigator.geolocation.getCurrentPosition(Y=>{let{latitude:J,longitude:ce}=Y.coords;k.current&&k.current.jumpTo({center:[ce,J],zoom:15});},Y=>{console.warn("Geolocation error:",Y.message),Y.code===Y.PERMISSION_DENIED&&I(false);},{enableHighAccuracy:true,timeout:1e4,maximumAge:0});},[]),ue=Ze.useMemo(()=>{if(i)return null;let Y=ae.map(J=>J.type==="navigation"?{...J,onResetZoom:J.onResetZoom||re,onGeolocateClick:J.onGeolocateClick||Le}:J);return Tm(Y,{mapRef:k,layers:d,showResetButton:O})},[ae,k,i,d,re,O,Le]),ge=Ze.useMemo(()=>{let Y=[];return d.filter(J=>J.events?.onClick||J.events?.onMouseEnter||J.events?.onMouseLeave||J.tooltip||J.kind==="vector"&&J.revealChipOnHover).forEach(J=>{J.kind==="clusteredVector"?(Y.push(`${J.id}-clusters`),Y.push(`${J.id}-points`),Y.push(`${J.id}-selected-point`)):Y.push(J.id);}),[...Y,...x]},[d,x]),le=Ze.useMemo(()=>{let Y=new Map;return d.forEach(J=>{J.events&&(Y.set(J.id,J.events),J.kind==="clusteredVector"&&(Y.set(`${J.id}-clusters`,J.events),Y.set(`${J.id}-points`,J.events),Y.set(`${J.id}-selected-point`,J.events)));}),Y},[d]),pe=Ze.useMemo(()=>{let Y=new Map;return d.forEach(J=>{J.tooltip&&(Y.set(J.id,J.tooltip),J.kind==="clusteredVector"&&(Y.set(`${J.id}-clusters`,J.tooltip),Y.set(`${J.id}-points`,J.tooltip),Y.set(`${J.id}-selected-point`,J.tooltip)));}),Y},[d]),Pe=Ze.useMemo(()=>{let Y=new Map;return d.forEach(J=>{J.kind==="clusteredVector"&&(Y.set(J.id,J),Y.set(`${J.id}-clusters`,J),Y.set(`${J.id}-points`,J),Y.set(`${J.id}-selected-point`,J));}),Y},[d]),_e=Ze.useMemo(()=>{if(!N)return null;let Y=S?.longitude??r?.longitude??e?.longitude,J=S?.latitude??r?.latitude??e?.latitude;return Y===void 0||J===void 0?null:{longitude:Y,latitude:J}},[N,S,r,e]),qe=Ze.useCallback(Y=>{if(i)return;let J=Y.features?.[0];if(!J||!J.layer)return;let ce=J.layer.id,ne=le.get(ce),ve=pe.get(ce),ze;J.geometry.type==="Point"?ze=J.geometry.coordinates:ze=[Y.lngLat.lng,Y.lngLat.lat];let $={id:J.id??J.properties?.id,lngLat:ze,properties:J.properties||{},layerId:ce},be=Pe.get(ce),_=J.properties?.cluster===true;if(be&&_){let we=k.current;if(we){let mo=we.getZoom(),Ea=Math.min(mo+3,18);we.flyTo({center:ze,zoom:Ea,duration:1e3});}return}if(ne?.onClick&&ne.onClick($),ve&&ve.trigger==="click"){let we;be&&"cluster"in ve?ve.point&&(we=ve.point($)):"content"in ve&&(we=typeof ve.content=="function"?ve.content($):ve.content),we&&W({feature:$,content:we,bare:ve.bare});}C&&C(Y);},[le,pe,i,C,Pe,k,ge]),er=Ze.useMemo(()=>new Set(d.filter(Y=>Y.kind==="vector"&&Y.revealChipOnHover).map(Y=>Y.id)),[d]),yt=Ze.useRef(null),tr=Ze.useCallback(()=>{let Y=yt.current;if(!(!Y||!k.current)){yt.current=null;try{k.current.removeFeatureState({source:Y.source,sourceLayer:Y.sourceLayer,id:Y.id},"hover");}catch{}}},[k]);Ze.useEffect(()=>{yt.current=null;},[l,P,D]);let qt=Ze.useCallback(Y=>{let J=Y.features?.find(ne=>ne.layer&&er.has(ne.layer.id));if(!J||J.id==null){tr();return}let ce=yt.current;ce&&ce.source===J.source&&ce.id===J.id||(tr(),k.current&&(yt.current={source:J.source,sourceLayer:J.sourceLayer,id:J.id},k.current.setFeatureState({source:J.source,sourceLayer:J.sourceLayer,id:J.id},{hover:true})));},[er,tr,k]),it=Ze.useCallback(Y=>{let J=Y.features?.[0];if(!J||!J.layer)return null;let ce=J.layer.id,ne=pe.get(ce);if(!ne||ne.trigger!=="hover"&&ne.trigger!==void 0)return null;let ve;J.geometry.type==="Point"?ve=J.geometry.coordinates:ve=[Y.lngLat.lng,Y.lngLat.lat];let ze={id:J.id??J.properties?.id,lngLat:ve,properties:J.properties||{},layerId:ce},$;if(Pe.get(ce)&&"cluster"in ne){let _=J.properties?.cluster===true;if(_&&ne.cluster){let we=J.properties?.point_count||0;$=ne.cluster(we,ze);}else !_&&ne.point?$=ne.point(ze):$=_?`${J.properties?.point_count||0} items`:null;}else "content"in ne&&($=typeof ne.content=="function"?ne.content(ze):ne.content);return $?{feature:ze,content:$,bare:ne.bare}:null},[pe,Pe]),vt=Ze.useCallback(Y=>{if(i)return;let J=Y.features?.[0];if(!J||!J.layer)return;let ce=J.layer.id,ne=le.get(ce);if(ne?.onMouseEnter){let ze;J.geometry.type==="Point"?ze=J.geometry.coordinates:ze=[Y.lngLat.lng,Y.lngLat.lat];let $={id:J.id??J.properties?.id,lngLat:ze,properties:J.properties||{},layerId:ce};ne.onMouseEnter($);}let ve=it(Y);ve&&W(ve),k.current&&(k.current.getCanvas().style.cursor="pointer");},[le,i,k,it]),ee=Ze.useCallback(Y=>{if(i)return;qt(Y);let J=Y.features?.[0];if(!J||!J.layer)return;let ce=it(Y);if(ce){W(ne=>ne&&ne.feature.layerId===ce.feature.layerId&&ne.feature.id===ce.feature.id?ne:ce);return}W(ne=>{if(!ne)return ne;let ve=pe.get(ne.feature.layerId);return ve&&(ve.trigger==="hover"||ve.trigger===void 0)?null:ne});},[i,it,pe,qt]),Oe=Ze.useCallback(()=>{if(!i){if(tr(),le.forEach(Y=>{Y.onMouseLeave?.();}),U){let Y=U.feature.layerId,J=d.find(ce=>ce.id===Y);if(!J){let ce=Y.replace(/-(?:clusters|points|selected-point|cluster-shadows|points-shadow|cluster-count)$/,"");J=d.find(ne=>ne.id===ce);}J?.tooltip&&(J.tooltip.trigger||"hover")==="hover"&&W(null);}k.current&&(k.current.getCanvas().style.cursor="");}},[le,i,k,U,d,tr]),Qe=Ze.useCallback((Y,J)=>{for(let ce of d)if(ce.tooltip&&!(J&&ce.id!==J)){if(ce.kind==="geojson"){if(typeof ce.data=="string")continue;let ne=ce.data,ze=(ne.type==="FeatureCollection"?ne.features:[ne]).find($=>$.id===Y);if(ze&&ze.geometry.type==="Point")return {id:ze.id,lngLat:ze.geometry.coordinates,properties:ze.properties||{},layerId:ce.id}}else if(ce.kind==="customPins"){let ne=ce.data.find(ve=>ve.id===Y||ve._id===Y||ve.key===Y);if(ne)return {id:Y,lngLat:ce.getPosition(ne),properties:ne,layerId:ce.id}}}return null},[d]);Ze.useImperativeHandle(T,()=>({showTooltip:(Y,J)=>{let ce=Qe(Y,J);if(!ce)return;let ne=d.find(ve=>ve.id===ce.layerId);if(ne?.tooltip&&"content"in ne.tooltip){let ve=typeof ne.tooltip.content=="function"?ne.tooltip.content(ce):ne.tooltip.content;W({feature:ce,content:ve,bare:ne.tooltip.bare});}},hideTooltip:()=>{W(null);},getMap:()=>k.current,markMapAsMoved:()=>{Q(true);}}),[Qe,d]);let Z=(Y,J)=>m?m(Y,J):{url:Y},de=p||F,he=Ze.useMemo(()=>Ts(d,l),[d,l]);return jsxRuntime.jsx("div",{ref:A,className:tailwindMerge.twMerge("relative flex h-full w-full overflow-hidden",i&&"cursor-pointer",a),onClick:i?c:void 0,children:jsxRuntime.jsxs("div",{style:{flex:1},children:[jsxRuntime.jsxs(RD__default.default,{ref:k,initialViewState:e,...r&&r,style:{width:"100%",height:"100%"},mapStyle:sd(l,P,D),styleDiffing:false,projection:AD,mapboxAccessToken:R,transformRequest:Z,onLoad:ie,onMove:i?void 0:Y=>{if(Y.originalEvent&&M){let J=Y.originalEvent.type,ce=Math.abs((Y.viewState.latitude??0)-(e?.latitude??0)),ne=Math.abs((Y.viewState.longitude??0)-(e?.longitude??0)),ve=Math.abs((Y.viewState.zoom??0)-(e?.zoom??0));e&&(ce>1e-4||ne>1e-4||ve>.1)&&(J==="mousemove"||J==="touchmove"||J==="pointermove"?Q(true):(J==="wheel"||J==="mousewheel")&&(H.current+=1,H.current>=3&&Q(true)));}o?.(Y.viewState);},onClick:i?void 0:qe,onMouseMove:i?void 0:ee,onMouseEnter:i?void 0:vt,onMouseLeave:i?void 0:Oe,interactiveLayerIds:i?[]:ge,scrollZoom:i?false:n,dragPan:!i,dragRotate:!i,doubleClickZoom:!i,interactive:!i,attributionControl:false,children:[jsxRuntime.jsx(RD.AttributionControl,{position:"top-left"}),ue,he,h,_e&&jsxRuntime.jsx(RD.Marker,{longitude:_e.longitude,latitude:_e.latitude,anchor:"bottom",children:jsxRuntime.jsx(V,{name:"MapPin",size:36,className:"text-map-marker-default",weight:"fill"})}),y&&G&&jsxRuntime.jsx(dC,{longitude:G.longitude,latitude:G.latitude,accuracy:G.accuracy}),U&&jsxRuntime.jsx(RD.Popup,{longitude:U.feature.lngLat[0],latitude:U.feature.lngLat[1],offset:15,closeButton:false,closeOnClick:false,className:U.bare?"map-tooltip map-tooltip-bare":"map-tooltip",maxWidth:"none",children:U.content})]},`map-${l}-${P}-${D??"default"}`),de&&jsxRuntime.jsx(nd,{}),i&&s&&jsxRuntime.jsx("div",{className:"absolute bottom-8 right-8 z-10",children:s})]})})});Ps.displayName="InteractiveMap";async function pC(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(Ze.createElement(r,{size:n,color:a,weight:i})),c=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(s)}`;await new Promise((l,d)=>{let u=new Image(n,n);u.onload=()=>{try{e.hasImage(t)||e.addImage(t,u,{sdf:!1}),l();}catch(m){d(m instanceof Error?m:new Error(`Failed to addImage "${t}": ${String(m)}`));}},u.onerror=m=>{d(m instanceof Error?m:new Error(`Failed to load icon "${t}"`));},u.src=c;});}function 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:c=true,markerOffsetY:l=0,showAttribution:d=false,onLoad:u,className:m,showExpandToggle:p=false,expandedMapTitle:g="Explore map",expandedMapAddressLabel:f,schematicPlaceholder:y=false}){let b=s??Yc(),{isDarkTheme:h}=Qt(),[x,C]=Ze.useState(false),[N,S]=Ze.useState(false),T=fi(),R=a??T,[P,E]=Ze.useState(false),D=Ze.useRef(null),k=Ze.useRef(null),A=Ze.useCallback(()=>E(true),[]),M=Ze.useCallback(()=>E(false),[]);Ze.useEffect(()=>{od();},[]);let z={width:typeof e=="number"?`${e}px`:e,height:typeof t=="number"?`${t}px`:t};Ze.useEffect(()=>{let O=setTimeout(()=>{x||S(true);},200);return ()=>clearTimeout(O)},[x]);let F=Ze.useCallback(()=>{C(true),S(false),u?.();},[u]);Ze.useEffect(()=>{if(!k.current)return;let O=new ResizeObserver(()=>{D.current&&D.current.resize();});return O.observe(k.current),()=>{O.disconnect();}},[]);let B=o||N;return b?jsxRuntime.jsxs("div",{ref:k,style:z,className:`relative ${m||""}`,children:[jsxRuntime.jsxs(RD__default.default,{ref:D,mapboxAccessToken:b,initialViewState:r,style:{width:"100%",height:"100%"},mapStyle:sd(n,h,R),onLoad:F,scrollZoom:false,dragPan:false,dragRotate:false,doubleClickZoom:false,touchZoomRotate:false,interactive:false,attributionControl:false,children:[d&&jsxRuntime.jsx(RD.AttributionControl,{position:"top-left"}),Ts(i,n),c&&r.longitude!==void 0&&r.latitude!==void 0&&jsxRuntime.jsx(RD.Marker,{longitude:r.longitude,latitude:r.latitude,anchor:"bottom",offset:[0,l],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:A})}),p&&jsxRuntime.jsx(mr,{isOpen:P,onClose:M,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(Ps,{initialViewState:r,mapType:n,mapStyleUrl:R,mapboxAccessToken:b,showMarker:c,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})]})}),B&&jsxRuntime.jsx(nd,{})]}):jsxRuntime.jsx(ad,{style:z,className:m,schematic:y,showMarker:c})}var WD={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 fC({label:e,size:t="md",variant:r="default",showWarningIndicator:o=true,warningThreshold:n=80,hideValueText:a=false,className:i,...s}){let c=WD[t],l=a&&e&&!s["aria-label"]&&!s["aria-labelledby"]?{"aria-label":e}:{};return jsxRuntime.jsx(reactAriaComponents.Meter,{...s,...l,className:Ae(i,"flex flex-col gap-1"),children:({percentage:d,valueText:u})=>{let m=o&&d>=n,p=r==="default"?UD(d):r;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[!a&&jsxRuntime.jsxs("div",{className:"flex justify-between gap-2",children:[e&&jsxRuntime.jsx(Je,{children:e}),jsxRuntime.jsxs("span",{className:tailwindMerge.twMerge(c.text,m?"text-feedback-error-text":"text-text-secondary"),children:[m&&jsxRuntime.jsx(lucideReact.AlertTriangle,{"aria-label":"Warning: High value",className:tailwindMerge.twMerge("inline-block align-text-bottom mr-1",c.icon)}),u]})]}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("relative rounded-full bg-background-muted","ring-1 ring-inset ring-border-muted",c.bar),children:jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("absolute left-0 top-0 h-full rounded-full transition-all duration-300","forced-colors:bg-[Highlight]",KD(p)),style:{width:`${Math.min(100,Math.max(0,d))}%`},role:"presentation","aria-hidden":"true"})})]})}})}function UD(e){return e<50?"success":e<70?"info":e<90?"warning":"error"}function KD(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 Gm=(e,t)=>e.toLocaleLowerCase().includes(t.toLocaleLowerCase());function Wm(e){return [e.value,e.label]}function cd(e,t,r=Gm){let o=t.trim();return o===""?[...e]:e.filter(n=>Wm(n).some(a=>r(a,o)))}function dd(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 ud(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 qD=e=>e.kind==="literal"?`literal:${e.value}`:`option:${e.option.value}`,Um=e=>e.kind==="literal"?e.value:e.option.value,gC=e=>e.kind==="literal"?e.value:e.option.label,QD={sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6",xl:"h-7 w-7"},ZD={sm:"pl-8",md:"pl-10",lg:"pl-11",xl:"pl-13"},_D={sm:"xs",md:"xs",lg:"sm",xl:"sm"};function bC({options:e,value:t,defaultValue:r,onChange:o,label:n,placeholder:a,size:i="md",loading:s=false,disabled:c=false,maxSelected:l,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:N=false,className:S,id:T}){let R=Ze.useId(),P=T??`multiselect-${R}`,E=`${P}-input`,D=`${P}-listbox`,k=Ze.useRef(null),A=Ze.useCallback(ee=>{k.current=ee,typeof C=="function"?C(ee):C&&(C.current=ee);},[C]),{contains:M}=reactAria.useFilter({sensitivity:"base"}),{isFocused:z,handleFocus:F,handleBlur:B}=fr(),[O,Q]=Ze.useState(""),[H,U]=Ze.useState(true),[W,G]=Ze.useState(null),[K,w]=Ze.useState(""),[v,L]=Ze.useState(()=>[...r??[]]),I=Ze.useMemo(()=>t?[...t]:v,[t,v]),X=Ze.useMemo(()=>cd(e,O,M),[e,O,M]),oe=d&&!s&&dd({query:O,options:e,selected:I}),ie=Ze.useMemo(()=>{let ee=X.map(Oe=>({kind:"option",option:Oe}));return oe?[{kind:"literal",value:O.trim()},...ee]:ee},[X,oe,O]),re=Ze.useMemo(()=>ud(I,e),[I,e]),ae=l!==void 0&&I.length>=l,Le=Ze.useCallback((ee,Oe)=>{t||L(ee),w(`${Oe} ${ee.length} selected.`),o(ee);},[o,t]),ue=Ze.useCallback((ee,Oe)=>{if(!c){if(I.includes(ee)){Le(I.filter(Qe=>Qe!==ee),`${Oe} removed.`);return}ae||Le([...I,ee],`${Oe} selected.`);}},[ae,Le,c,I]),ge=Ze.useCallback(ee=>{ee.kind==="option"&&ee.option.disabled||ue(Um(ee),gC(ee));},[ue]),le=ee=>{if(c||ee.length===0)return;let Oe=new Set(ee),Qe=ee.map(Z=>re.find(de=>de.value===Z)?.label??Z);Le(I.filter(Z=>!Oe.has(Z)),`${Qe.join(", ")} removed.`);},pe=ee=>{Q(ee),G(null),U(true),u?.(ee);},Pe=ee=>{if(ie.length===0){G(null);return}G(Oe=>Oe===null?ee>0?0:ie.length-1:(Oe+ee+ie.length)%ie.length);},_e=ee=>{if(c)return;let Oe=W===null?void 0:ie[W];switch(ee.key){case "ArrowDown":ee.preventDefault(),U(true),Pe(1);break;case "ArrowUp":ee.preventDefault(),U(true),Pe(-1);break;case "Home":ie.length>0&&(ee.preventDefault(),U(true),G(0));break;case "End":ie.length>0&&(ee.preventDefault(),U(true),G(ie.length-1));break;case "Enter":Oe&&(ee.preventDefault(),ge(Oe));break;case " ":O===""&&Oe&&(ee.preventDefault(),ge(Oe));break;case "Escape":ee.preventDefault(),O!==""?pe(""):(U(false),G(null));break;case "Backspace":O===""&&I.length>0&&(ee.preventDefault(),le([I[I.length-1]]));break;}},qe=X.filter(ee=>!ee.disabled&&!I.includes(ee.value)).map(ee=>ee.value),er=l===void 0?qe.length:Math.max(0,l-I.length),yt=Math.min(qe.length,er),tr=yt===qe.length?`Select all ${qe.length} matching`:`Select ${yt} of ${qe.length} matching`,qt=()=>{if(c||yt===0)return;let ee=qe.slice(0,yt);Le([...I,...ee],`${ee.length} matching options selected.`);},it=s?"loading":e.length===0?"empty":X.length===0&&O.trim()!==""?"no-match":null,vt=Ke[i].text;return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex w-full flex-col gap-1",S),"data-testid":"multiselect",children:[jsxRuntime.jsx(Je,{size:i,htmlFor:E,isRequired:h,...N?{className:"sr-only"}:{},children:n}),jsxRuntime.jsxs(Nt,{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(QD[i],"text-text-secondary")})}),jsxRuntime.jsx("input",{ref:A,id:E,type:"text",role:"combobox",autoComplete:"off","aria-expanded":H,"aria-controls":D,"aria-haspopup":"listbox","aria-autocomplete":"list","aria-activedescendant":H&&W!==null&&ie[W]?`${P}-row-${W}`:void 0,"aria-required":h||void 0,"aria-invalid":b?true:void 0,value:O,placeholder:a,disabled:c,onChange:ee=>pe(ee.target.value),onKeyDown:_e,onFocus:ee=>{U(true),F(ee);},onBlur:ee=>{B(ee),x?.(ee);},className:Gt({isDisabled:c,isFocused:z,isInvalid:!!b,size:i,className:tailwindMerge.twMerge(ZD[i],"pr-3")})})]}),re.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:re.map(ee=>jsxRuntime.jsx(Yr,{size:_D[i],variant:"primary",isDisabled:c,removeLabel:`Remove ${ee.label}`,onRemove:()=>le([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:qt,isDisabled:c||yt===0,children:tr}),jsxRuntime.jsx(te,{variant:"link",size:i,onPress:()=>le(I),isDisabled:c||I.length===0,children:"Clear all"})]}),jsxRuntime.jsx("div",{id:D,role:"listbox","aria-multiselectable":"true","aria-label":`${n} options`,hidden:!H,className:tailwindMerge.twMerge(vt,"max-h-[260px] overflow-y-auto rounded-[var(--control-border-radius)] border border-border-input bg-background-input"),children:H&&ie.map((ee,Oe)=>{let Qe=I.includes(Um(ee)),Z=c||ee.kind==="option"&&ee.option.disabled===true||!Qe&&ae;return jsxRuntime.jsxs("div",{id:`${P}-row-${Oe}`,role:"option","aria-selected":Qe,"aria-disabled":Z||void 0,"data-value":Um(ee),"data-literal":ee.kind==="literal"?"true":void 0,"data-active":W===Oe?"true":void 0,onMouseDown:de=>de.preventDefault(),onClick:()=>{Z||(ge(ee),k.current?.focus());},className:tailwindMerge.twMerge("flex cursor-default items-center gap-2 px-3",Ke[i].paddingY,"text-text-primary",W===Oe&&"bg-background-hover",Qe&&"bg-background-selected font-medium",Z&&"text-text-disabled"),children:[jsxRuntime.jsx(_u,{isSelected:Qe,isDisabled:Z,className:"!w-4 !h-4"}),jsxRuntime.jsx("span",{className:"flex-1 truncate",children:gC(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()})]},qD(ee))})}),it==="loading"&&jsxRuntime.jsx("div",{"data-testid":"multiselect-status-loading","data-status":"loading",children:jsxRuntime.jsxs(ke,{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"})]})}),it==="empty"&&jsxRuntime.jsx("div",{"data-testid":"multiselect-status-empty","data-status":"empty",children:jsxRuntime.jsxs(ke,{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"})]})}),it==="no-match"&&jsxRuntime.jsx("div",{"data-testid":"multiselect-status-no-match","data-status":"no-match",children:jsxRuntime.jsxs(ke,{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${O.trim()}\u201D`})]})}),m&&jsxRuntime.jsx("div",{"data-testid":"multiselect-truncation",children:jsxRuntime.jsx(ke,{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`})}),l!==void 0&&jsxRuntime.jsx("div",{"data-testid":"multiselect-limit",children:jsxRuntime.jsx(ke,{size:i,children:ae?`${I.length} of ${l} selected \u2014 limit reached, remove one to choose another`:`${I.length} of ${l} selected`})}),y&&jsxRuntime.jsx(ke,{size:i,children:y}),b&&jsxRuntime.jsx(ye,{size:i,children:b}),jsxRuntime.jsx("div",{"data-testid":"multiselect-live-region",role:"status","aria-live":"polite",className:"sr-only",children:K})]})}var fd="bg-background-surface border-l-[3px] border-y border-r border-border-default text-text-primary",rA={success:{container:fd,iconName:"CheckCircle",iconColor:"text-feedback-success-text",borderColor:"var(--color-feedback-success-border)"},error:{container:fd,iconName:"XCircle",iconColor:"text-feedback-error-text",borderColor:"var(--color-feedback-error-border)"},warning:{container:fd,iconName:"Warning",iconColor:"text-feedback-warning-text",borderColor:"var(--color-feedback-warning-border)"},info:{container:fd,iconName:"Info",iconColor:"text-feedback-info-text",borderColor:"var(--color-feedback-info-border)"}};function bd({id:e,message:t,variant:r="info",duration:o=5e3,dismissible:n=true,onDismiss:a,className:i}){let{container:s,iconName:c,iconColor:l,borderColor:d}=rA[r];return Ze.useEffect(()=>{if(o>0){let u=setTimeout(()=>{a?.();},o);return ()=>clearTimeout(u)}},[o,a]),jsxRuntime.jsxs(framerMotion.motion.div,{layout:true,initial:{opacity:0,y:-20,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,scale:.95,transition:{duration:.2}},className:tailwindMerge.twMerge("pointer-events-auto flex items-center gap-3 rounded-lg p-4 shadow-lg",s,i),style:{borderLeftColor:d},children:[jsxRuntime.jsx(V,{name:c,size:20,className:l}),jsxRuntime.jsx("p",{className:"flex-1 select-text text-sm font-medium",children:t}),n&&jsxRuntime.jsx("button",{type:"button",onClick:a,className:"flex-shrink-0 rounded-md p-1 transition-colors hover:bg-background-hover","aria-label":"Dismiss notification",children:jsxRuntime.jsx(V,{name:"X",size:16})})]})}var cA={"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 hd({notices:e,onDismiss:t,position:r="bottom-center",className:o}){let[n,a]=Ze.useState(false);if(Ze.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",cA[r],o),"aria-live":"polite","aria-atomic":"true",children:jsxRuntime.jsx(framerMotion.AnimatePresence,{mode:"sync",children:e.map(s=>jsxRuntime.jsx(bd,{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 hC=Ze.createContext(void 0);function xC({children:e,position:t="bottom-center",maxNotices:r=5,defaultDuration:o=5e3,defaultDismissible:n=true}){let[a,i]=Ze.useState([]),s=Ze.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]),c=Ze.useCallback(u=>{i(m=>m.filter(p=>p.id!==u));},[]),l=Ze.useCallback(()=>{i([]);},[]),d={notices:a,addNotice:s,removeNotice:c,clearNotices:l};return jsxRuntime.jsxs(hC.Provider,{value:d,children:[e,jsxRuntime.jsx(hd,{notices:a,onDismiss:c,position:t})]})}function yC(){let e=Ze.useContext(hC);if(!e)throw new Error("useNoticeContext must be used within a NoticeProvider");return e}function vC(){let{addNotice:e,removeNotice:t,clearNotices:r}=yC(),o=Ze.useCallback((c,l)=>e(c,l),[e]),n=Ze.useCallback((c,l)=>e(c,{...l,variant:"success"}),[e]),a=Ze.useCallback((c,l)=>e(c,{...l,variant:"error"}),[e]),i=Ze.useCallback((c,l)=>e(c,{...l,variant:"warning"}),[e]),s=Ze.useCallback((c,l)=>e(c,{...l,variant:"info"}),[e]);return {show:o,success:n,error:a,warning:i,info:s,dismiss:t,clear:r}}var bA={plain:"",contained:"bg-background-surface rounded-lg border border-border-default p-6",bordered:"border-y border-border-default py-6"},hA={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:c,children:l}){let d=Ze__namespace.default.useId(),u=e?`${e}-heading`:d,m=t||r||o;return jsxRuntime.jsxs("section",{id:e,className:tailwindMerge.twMerge(hA[a],bA[n],c),"aria-labelledby":t?u:void 0,children:[m&&jsxRuntime.jsxs("header",{id:u,className:tailwindMerge.twMerge("flex flex-col sm:flex-row sm:items-start sm:justify-between gap-4",i&&"border-b border-border-default pb-4 mb-6",!i&&l&&"mb-6"),children:[jsxRuntime.jsxs("div",{className:"min-w-0 flex-1",children:[t&&jsxRuntime.jsx(pr,{tag:s,size:"md",className:"text-text-primary",children:t}),r&&jsxRuntime.jsx("p",{className:"mt-2 text-base text-text-secondary",children:r})]}),o&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:o})]}),l&&jsxRuntime.jsx("div",{className:"",children:t?jsxRuntime.jsx(nn,{children:l}):l})]})}xi.displayName="Section";function yd({sections:e,activeSection:t,onSectionChange:r,orientation:o="responsive",className:n,scrollBehavior:a="smooth",stickyTop:i="1.5rem",heading:s,sectionIdPrefix:c="section-",filterSection:l,scrollContainerId:d}){let u=Ze__namespace.useRef(null),m=Ze__namespace.useRef(null),[p,g]=Ze__namespace.useState(e[0]?.id||null),f=t??p,y=Ze__namespace.useCallback(()=>d?document.getElementById(d):null,[d]),b=Ze__namespace.useCallback(S=>document.getElementById(`${c}${S}`)??document.getElementById(S),[c]);Ze__namespace.useEffect(()=>{let S=window.location.hash;if(!S)return;let T=S.slice(1),R=T.startsWith(c)?T.slice(c.length):T,P=e.find(E=>E.id===R);P&&requestAnimationFrame(()=>{let E=b(P.id);if(!E)return;let D=y();if(D){let k=D.getBoundingClientRect(),A=E.getBoundingClientRect(),M=D.scrollTop+(A.top-k.top);D.scrollTo({top:Math.max(0,M),behavior:"instant"});}else E.scrollIntoView({behavior:"instant",block:"start"});r?r(P.id):g(P.id);});},[]),Ze__namespace.useEffect(()=>{if(t!==void 0&&r)return;let S=E=>{if(!E)return false;let D=window.getComputedStyle(E);return D.display!=="none"&&D.visibility!=="hidden"&&D.opacity!=="0"},T=()=>{let E=S(u.current),D=S(m.current);if(!E&&!D)return null;let k=y(),A=new IntersectionObserver(M=>{M.forEach(z=>{if(z.isIntersecting){let F=z.target.id.replace(c,"");r?r(F):g(F);}});},{root:k??void 0,rootMargin:"-20% 0px -70% 0px",threshold:0});return e.forEach(M=>{let z=b(M.id);z&&A.observe(z);}),A},R=T(),P=()=>{R&&R.disconnect(),R=T();};return window.addEventListener("resize",P),()=>{R&&R.disconnect(),window.removeEventListener("resize",P);}},[e,c,t,r,o,y,b]);let h=Ze__namespace.useMemo(()=>l?e.filter(l):e,[e,l]),x=Ze__namespace.useCallback((S,T)=>{S.preventDefault();let R=b(T);if(R){let P=y();if(P){let E=P.getBoundingClientRect(),D=R.getBoundingClientRect(),k=P.scrollTop+(D.top-E.top),A=Math.max(0,P.scrollHeight-P.clientHeight);P.scrollTo({top:Math.max(0,Math.min(k,A)),behavior:a});}else {let E=R.getBoundingClientRect().top+window.scrollY,D=Math.max(0,document.documentElement.scrollHeight-window.innerHeight),k=Math.max(0,Math.min(E,D));window.scrollTo({top:k,behavior:a});}window.history.pushState&&window.history.pushState(null,"",`#${c}${T}`),r?r(T):g(T);}},[c,a,r,y,b]);if(h.length===0)return null;let C=o==="vertical"?"":o==="horizontal"?"hidden":"hidden lg:block",N=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:`#${c}${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(N,"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:`#${c}${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 SC(e){return "primary"}var vd=Ze__namespace.createContext({variant:"primary"});function wA({orientation:e,className:t=""}){return `flex flex-col w-full ${{horizontal:"",vertical:"flex-row"}[e]||""} ${t}`.trim()}function Sd({variant:e="primary",...t}){let r=SC();return jsxRuntime.jsx(vd.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)=>wA({...n,className:o}))})})})}function NA({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 wd({variant:e,sticky:t=false,...r}){let o=Ze__namespace.useContext(vd),n=SC(e??o.variant);return jsxRuntime.jsx(vd.Provider,{value:{variant:n},children:jsxRuntime.jsx(reactAriaComponents.TabList,{...r,className:reactAriaComponents.composeRenderProps(r.className,(a,i)=>NA({...i,sticky:t,className:a||""}))})})}function TA({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 Nd(e){let{variant:t}=Ze__namespace.useContext(vd);return jsxRuntime.jsx(reactAriaComponents.Tab,{...e,"data-testid":e.id?`tab-${e.id}`:void 0,className:reactAriaComponents.composeRenderProps(e.className,(r,o)=>TA({...o,className:r,isSelected:o.isSelected,variant:t}))})}function kA({className:e=""}){let t="block w-full mt-4 text-text-primary",r=rt();return `${t} ${r} ${e}`.trim()}function wC(e){return jsxRuntime.jsx(reactAriaComponents.TabPanel,{...e,className:reactAriaComponents.composeRenderProps(e.className,(t,r)=>kA({...r,className:t||""}))})}function Sa({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 PA({title:e,subtitle:t,breadcrumbs:r,breadcrumbsNode:o,media:n,actions:a,metadata:i,headingAs:s,sticky:c,stickyTop:l="0",zIndex:d=10,isLoading:u=false,className:m}){let p=c?"sticky bg-background-body":"",g=c?{top:l,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(j,{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(j,{className:"h-8 w-64"})}),t?jsxRuntime.jsx(j,{className:"mt-2 h-5 w-48"}):null,i?jsxRuntime.jsx(j,{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(j,{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(j,{className:"h-9 w-24"},y))}):null]}),n?jsxRuntime.jsx("div",{className:"mt-4 md:mt-6",children:jsxRuntime.jsx(j,{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(Cl,{children:r.map((f,y)=>{let{label:b,...h}=f;return jsxRuntime.jsx(Sl,{...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(pr,{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(Ze__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(Ze__namespace.default.Fragment,{children:f},y))}):null]}),n?jsxRuntime.jsx("div",{className:"mt-4 md:mt-6",children:n}):null]})}function RA({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(Sd,{selectedKey:t,defaultSelectedKey:r||e[0]?.id,onSelectionChange:i,children:[jsxRuntime.jsx(wd,{className:"after:bg-transparent",children:e.map(s=>jsxRuntime.jsx(Nd,{id:s.id,isDisabled:s.disabled,children:s.label},s.id))}),a]})})}function EA({children:e,className:t,withSectionNav:r,navWidth:o="240px",gap:n="2rem",activeSection:a,onSectionChange:i,scrollBehavior:s,sectionIdPrefix:c="section-",scrollContainerId:l,navHeading:d,navStickyTop:u}){return r?jsxRuntime.jsx(LA,{position:r,navWidth:o,gap:n,activeSection:a,onSectionChange:i,scrollBehavior:s,sectionIdPrefix:c,scrollContainerId:l,navHeading:d,navStickyTop:u,className:t,children:e}):jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-full space-y-8 md:space-y-12",t),children:e})}function MA({children:e,sticky:t=true,className:r}){return jsxRuntime.jsx("aside",{className:tailwindMerge.twMerge(t?"lg:sticky lg:top-20":"",r),children:e})}function LA({activeSection:e,onSectionChange:t,position:r,navWidth:o,gap:n,children:a,className:i,scrollBehavior:s,sectionIdPrefix:c,scrollContainerId:l,navHeading:d,navStickyTop:u}){let m=Ze__namespace.default.useMemo(()=>{let x=[];return Ze__namespace.default.Children.forEach(a,C=>{if(Ze__namespace.default.isValidElement(C)&&(C.type===xi||typeof C.type=="object"&&C.type?.displayName==="Section"||typeof C.type=="function"&&C.type?.displayName==="Section")){let N=C.props;N.id?x.push({id:N.id,label:N.navLabel||(typeof N.title=="string"?N.title:`Section ${N.id}`)}):process.env.NODE_ENV==="development"&&console.warn("Section component used within PageLayout.Content with withSectionNav must have an id prop");}}),x},[a]),p=Ze__namespace.default.useMemo(()=>{let x=Ze__namespace.default.Children.map(a,C=>{if(Ze__namespace.default.isValidElement(C)&&(C.type===xi||typeof C.type=="object"&&C.type?.displayName==="Section"||typeof C.type=="function"&&C.type?.displayName==="Section")){let N=C.props;if(N.id)return Ze__namespace.default.cloneElement(C,{...N,id:`${c}${N.id}`})}return C});return jsxRuntime.jsx("div",{className:"space-y-8 md:space-y-12",children:x})},[a,c]),g=(x,C)=>jsxRuntime.jsx(yd,{sections:m,activeSection:e,onSectionChange:t,orientation:x,scrollBehavior:s,sectionIdPrefix:c,scrollContainerId:l,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 DA({children:e,className:t}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-1 overflow-auto min-h-0",t),children:e})}Sa.Header=PA;Sa.Tabs=RA;Sa.Content=EA;Sa.Aside=MA;Sa.ScrollableContent=DA;function IA(e){return typeof e=="object"&&e!==null&&"features"in e&&Array.isArray(e.features)&&"type"in e&&typeof e.type=="string"}var FA=process.env.NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN||"";function kC({label:e,selectedKey:t,defaultSelectedKey:r,onSelectionChange:o,placeholder:n="Enter a location...",errorMessage:a,description:i,size:s="md",tooltip:c,isRequired:l,isDisabled:d,showErrors:u=true,autoFocus:m=false,onSelect:p,searchTypes:g=["place","address"],defaultFilter:f,validationResult:y,countryRestrictions:b,proximity:h="ip",hideCountry:x=false,showIcon:C=true,useMobileTray:N=true,className:S}){let T=Ze.useRef(new WeakMap),R=Ze.useRef([]),P={requestType:"REST",method:"GET",url:"https://api.mapbox.com/geocoding/v5/mapbox.places/{q}.json",extraParams:{access_token:FA,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(!IA(k))return [];let A=k.features.map(M=>{let z={id:M.id,name:M.place_name};return T.current.set(z,{type:M.place_type[0],center:M.center,context:M.context,address:M.address,text:M.text,properties:M.properties}),z});return A.length>0&&(R.current=A),A}},E=k=>{let A=T.current.get(k),M=k.name.split(", "),z=M[0],F=M.slice(1);x&&F.length>0&&(F=F.slice(0,-1));let B=F.join(", ");return jsxRuntime.jsxs("div",{className:"flex items-center gap-3 py-0.5",children:[C&&jsxRuntime.jsx(V,{name:A?.type==="address"?"MapPin":A?.type==="place"?"Buildings":A?.type==="region"?"MapPinArea":A?.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:z}),B&&jsxRuntime.jsx("span",{className:"truncate text-sm text-text-secondary",children:B})]})]})},D=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(xl,{"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 M=R.current.find(z=>z.id===k);if(M){let z=T.current.get(M);z&&p({id:M.id,place_name:M.name,place_type:[z.type],center:z.center,context:z.context,address:z.address,text:z.text,properties:z.properties});}}},requestConfig:P,placeholder:n,errorMessage:a,description:i,size:s,tooltip:c,isRequired:l,isDisabled:d,showErrors:u,autoFocus:m,renderItem:E,renderLeftIcon:D,defaultFilter:f,validationResult:y,hideChevron:true,useMobileTray:N,className:S})}function RC({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 EC({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:dr("prose",i,s,o),...a,children:n})}function WA(e="2"){return {1:"p-2 text-xs",2:"p-3 text-sm",3:"p-4 text-base"}[e]}function UA(e){return e?"border-action-primary text-action-primary":"border-border text-text-primary"}function KA(){return "opacity-50 cursor-not-allowed"}function MC({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:c})=>jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex items-center justify-center w-full h-full transition-all duration-200 rounded-lg border-2 bg-background-surface",!(t||c)&&!s&&"hover:bg-background-hover hover:border-border-hover",WA(n),UA(s),(t||c)&&KA(),r),children:o})})}function LC({value:e,defaultValue:t,onChange:r,isDisabled:o,isReadOnly:n,isRequired:a,className:i,children:s,size:c="2",variant:l="primary",columns:d="repeat(auto-fit, minmax(160px, 1fr))",gap:u="1"}){return jsxRuntime.jsx(reactAriaComponents.RadioGroup,{value:e,defaultValue:t,onChange:r,isDisabled:o,isReadOnly:n,isRequired:a,className: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:Ze__namespace.default.Children.map(s,m=>Ze__namespace.default.isValidElement(m)?Ze__namespace.default.cloneElement(m,{size:c,variant:l}):m)})}function qA(e){return "primary"}var DC=Ze.createContext({variant:"primary"});function AC(e){let{variant:t="primary",...r}=e,o=qA();return jsxRuntime.jsx(DC.Provider,{value:{variant:o},children:jsxRuntime.jsxs(reactAriaComponents.RadioGroup,{...r,className:Ae(e.className,"group flex flex-col gap-2"),children:[jsxRuntime.jsx(Je,{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(ke,{children:e.description}),jsxRuntime.jsx(ye,{children:typeof e.errorMessage=="function"&&e.validationResult?e.errorMessage(e.validationResult):typeof e.errorMessage=="string"?e.errorMessage:null})]})})}function QA({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 IC(e){return Ze.useContext(DC),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:QA(t)}),e.children]})})}var iI={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 sI({initialUrl:e,isOpen:t,onClose:r,onSubmit:o}){let[n,a]=Ze.useState(e);return Ze__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(rr,{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 VC({initialContent:e="",onChange:t,className:r,isDisabled:o=false,placeholder:n="Start typing...",id:a,size:i="md",headingLevels:s=[1,2]}){let c=iI[i],[l,d]=Ze.useState(false),u=react.useEditor({immediatelyRender:false,extensions:[rI__default.default.configure({heading:s.length>0?{levels:s}:false}),_A__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 ${c.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")&&!l,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(sI,{isOpen:l,onClose:()=>d(false),onSubmit:p,initialUrl:u.getAttributes("link").href||""})]}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center gap-1 border-b border-border-input",c.toolbar),children:[s.map(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",c.contentWrapper),children:[jsxRuntime.jsx(react.EditorContent,{editor:u,className:tailwindMerge.twMerge("w-full outline-none focus:outline-none",c.contentPadding,"[&_.ProseMirror]:min-h-[inherit]","[&_.ProseMirror]:outline-none [&_.ProseMirror]:focus:outline-none",c.h1,c.h2,c.p,"[&_.ProseMirror_ul]:list-disc","[&_.ProseMirror_ol]:list-decimal",c.list,c.li,"[&_.ProseMirror_blockquote]:border-l-4 [&_.ProseMirror_blockquote]:border-border-muted [&_.ProseMirror_blockquote]:pl-4 [&_.ProseMirror_blockquote]:italic","[&_.ProseMirror_code]:rounded [&_.ProseMirror_code]:bg-background-muted [&_.ProseMirror_code]:px-1 [&_.ProseMirror_code]:py-0.5 [&_.ProseMirror_code]:font-mono [&_.ProseMirror_code]:text-sm","[&_.ProseMirror_pre]:rounded-md [&_.ProseMirror_pre]:bg-background-muted [&_.ProseMirror_pre]:p-3 [&_.ProseMirror_pre]:font-mono [&_.ProseMirror_pre]:text-sm","[&_.ProseMirror_hr]:border-border-muted",o&&"pointer-events-none")}),u.isEmpty&&!o&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("pointer-events-none absolute text-text-secondary",c.placeholderPos,c.placeholderText),children:n})]})]}):null}function OC({streetAddress:e,city:t,state:r,postalCode:o,longitude:n,latitude:a,href:i,LinkComponent:s,variant:c="outlined",layout:l="stacked",showMap:d=true,mapHeight:u=200,mapboxAccessToken:m,isLoading:p=false,className: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 N=C.join(", "),S=h||[e,N].filter(Boolean).join(", "),T=d&&n!==void 0&&a!==void 0,R=({children:E,className:D})=>i?s?jsxRuntime.jsx(s,{href:i,className:D,children:E}):jsxRuntime.jsx(pt,{href:i,variant:"unstyled",className:tailwindMerge.twMerge("hover:underline",D),asButton:false,children:E}):jsxRuntime.jsx("span",{className:D,children:E});if(p){let E=l==="row";return jsxRuntime.jsxs($e,{variant:c,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(j,{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(j,{width:"100%",height:16}),jsxRuntime.jsx(j,{width:"80%",height:16})]})]})}let P=l==="row";return jsxRuntime.jsxs($e,{variant:c,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}),N&&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:N})]})})]})}function HC({site:e,contact:t,LinkComponent:r,variant:o="outlined",layout:n="stacked",showMap:a=true,mapHeight:i=200,mapboxAccessToken:s,showEmail:c=true,showPhone:l=false,isLoading:d=false,className:u,contentClassName:m,fullHeight:p=false,showMapExpandToggle: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,N=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(pt,{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(j,{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(j,{width:"100%",height:16}),jsxRuntime.jsx(j,{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(j,{width:40,height:40,className:"rounded flex-shrink-0"}),jsxRuntime.jsxs("div",{className:"flex-1 space-y-1",children:[jsxRuntime.jsx(j,{width:"50%",height:14}),jsxRuntime.jsx(j,{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(Go,{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:N})}):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:N}),jsxRuntime.jsxs("div",{className:"space-y-0.5",children:[c&&t.email&&jsxRuntime.jsxs("div",{className:"flex items-center gap-1.5 text-text-primary",children:[jsxRuntime.jsx(V,{name:"Envelope",size:12,className:"text-text-secondary flex-shrink-0"}),jsxRuntime.jsx(pt,{href:`mailto:${t.email}`,variant:"unstyled",className:"text-xs leading-tight truncate text-text-primary relative z-20","data-pii-type":t.piiEntity?"email":void 0,"data-pii-entity":t.piiEntity,children:t.email})]}),l&&t.phone&&jsxRuntime.jsxs("div",{className:"flex items-center gap-1.5 text-text-primary",children:[jsxRuntime.jsx(V,{name:"Phone",size:12,className:"text-text-secondary flex-shrink-0"}),jsxRuntime.jsx(pt,{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 GC({label:e,description:t,tooltip:r,errorMessage:o,size:n="md",className:a,value:i,defaultValue:s=0,onChange:c,min:l=0,max:d=100,step:u=1,disabled:m,showValue:p=true}){let g=typeof i=="number",[f,y]=Ze__namespace.default.useState(s),b=g?i:f,h=Math.min(Math.max(b,l),d),x=Math.max(d-l,1e-5),C=(h-l)/x*100;return jsxRuntime.jsxs("div",{className:Ae(a,"group flex w-full flex-col gap-1"),children:[e&&jsxRuntime.jsx(Je,{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:l,max:d,step:u,value:b,disabled:m,"aria-invalid":!!o,onChange:N=>{let S=Number(N.currentTarget.value);g||y(S),c?.(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(ke,{className:"mt-2 text-text-secondary",children:t}),o&&jsxRuntime.jsx(ye,{className:"mt-1",children:o})]})}var mI=Ze__namespace.default.createContext({orientation:"horizontal",isResizing:false});function UC(e,t){return e===void 0?t:e}function fI(e,t){return typeof e=="number"?e:typeof e=="string"&&e.endsWith("%")?Number.parseFloat(e)/100*t:Number.parseFloat(e.toString())}function kd({asideWidth:e,asideHeight:t,minAsideWidth:r=240,minAsideHeight:o=200,minMainWidth:n=400,minMainHeight:a=300,orientation:i="horizontal",resizable:s=false,onAsideResize:c,onResizeStart:l,onResizeEnd:d,className:u,dividerClassName:m,children:p}){let g=Ze.useRef(null),[f,y]=Ze.useState(false),b=i==="horizontal"?400:300,h=UC(i==="horizontal"?e:t,b),[x,C]=Ze.useState(null),N=Ze.useCallback(k=>{if(!g.current||!f)return;let A=g.current.getBoundingClientRect(),M=i==="horizontal"?A.width:A.height,z=i==="horizontal"?k.clientX:k.clientY,B=(i==="horizontal"?A.right:A.bottom)-z,O=M-B,Q=i==="horizontal"?r:o,H=i==="horizontal"?n:a;B<Q||O<H||(C(B),c?.(B));},[f,i,r,o,n,a,c]),S=Ze.useCallback(()=>{y(false),d?.();},[d]),T=Ze.useCallback(k=>{k.preventDefault(),k.stopPropagation(),y(true),l?.();},[l]);Ze.useEffect(()=>{if(f)return document.addEventListener("mousemove",N),document.addEventListener("mouseup",S),document.body.style.cursor=i==="horizontal"?"col-resize":"row-resize",document.body.style.userSelect="none",()=>{document.removeEventListener("mousemove",N),document.removeEventListener("mouseup",S),document.body.style.cursor="",document.body.style.userSelect="";}},[f,N,S,i]);let R=Ze__namespace.default.Children.toArray(p).find(k=>Ze__namespace.default.isValidElement(k)&&k.type===YC),P=Ze__namespace.default.Children.toArray(p).find(k=>Ze__namespace.default.isValidElement(k)&&k.type===JC),E=x??h,D=typeof E=="number"?`${E}px`:E;return jsxRuntime.jsx(mI.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 A=g.current.getBoundingClientRect(),M=i==="horizontal"?A.width:A.height,z=x??fI(h,M),F=20,B=i==="horizontal"?r:o,O=i==="horizontal"?n:a;if(i==="horizontal"){if(k.key==="ArrowLeft"){let Q=Math.min(z+F,M-O);C(Q),c?.(Q);}else if(k.key==="ArrowRight"){let Q=Math.max(z-F,B);C(Q),c?.(Q);}}else if(k.key==="ArrowUp"){let Q=Math.min(z+F,M-O);C(Q),c?.(Q);}else if(k.key==="ArrowDown"){let Q=Math.max(z-F,B);C(Q),c?.(Q);}},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"]:D},children:P})]})})}function YC({className:e,children:t}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-full h-full",e),children:t})}function JC({className:e,children:t}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-full h-full",e),children:t})}kd.Main=YC;kd.Aside=JC;var bI=e=>{let t=Gt({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 XC({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,required:a,transparent:i,isInvalid:s,isDisabled:c,isResizable:l=false,className:d,validationResult:u,reserveErrorSpace:m=true,...p}){let{isFocused:g,handleFocus:f,handleBlur:y}=fr();return jsxRuntime.jsx("div",{className:"group flex flex-col",children:jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(Je,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(Nt,{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:bI({isInvalid:s,isDisabled:c,isResizable:l,isFocused:g,size:o,transparent:i,className:d}),disabled:c})}),m?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(ye,{size:o,children:r}):typeof r=="function"&&u?jsxRuntime.jsx(ye,{size:o,children:r(u)}):t?jsxRuntime.jsx(ke,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(ye,{size:o,className:"mt-1",children:r}):typeof r=="function"&&u?jsxRuntime.jsx(ye,{size:o,className:"mt-1",children:r(u)}):t?jsxRuntime.jsx(ke,{size:o,className:"mt-1",children:t}):null})]})})}function ZC({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,required:a,transparent:i,isInvalid:s,isDisabled:c,isResizable:l=false,className:d,validationResult:u,value:m="",onChange:p,chips:g=[],onChipsChange:f,triggerPattern:y="{{",onTriggerDetected:b,onTriggerDismissed:h,renderChip:x,chipVariant:C="primary",chipSize:N,...S}){let T=Ze.useRef(null),{isFocused:R,handleFocus:P,handleBlur:E}=fr(),D=N||"sm",k=Ze.useRef(null),A=Ze.useCallback(H=>{let U="",W=G=>{if(G.nodeType===Node.TEXT_NODE){if(!G.parentElement?.closest("[data-chip-id]")){let w=G.textContent||"";U+=w;}}else if(G.nodeType===Node.ELEMENT_NODE){let K=G;if(K.hasAttribute("data-chip-id")){let w=K.getAttribute("data-chip-id");U+=`{{${w}}}`;return}else if(K.tagName==="BR"){U+=`
|
|
47
|
-
`;return}else
|
|
46
|
+
`,backgroundSize:"30px 30px"}})})})}var iC="color-mix(in srgb, var(--color-map-neutral-border) 8%, transparent)",wD={backgroundImage:`linear-gradient(to right, ${iC} 1px, transparent 1px), linear-gradient(to bottom, ${iC} 1px, transparent 1px)`,backgroundSize:"24px 24px"},ND={backgroundColor:"color-mix(in srgb, var(--color-map-marker-default) 12%, transparent)"};function sd({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:wD}),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:ND}),jsxRuntime.jsx(z,{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(z,{name:"MapPin",size:48,className:"mx-auto mb-2 opacity-50"}),jsxRuntime.jsx("p",{className:"text-sm",children:r})]})})}var sC=_e.createContext(null);function lC({mapStyleUrl:e,children:t}){return jsxRuntime.jsx(sC.Provider,{value:e??null,children:t})}function hi(){return _e.useContext(sC)}var cC={streets:"streets",satellite:"satellite",neutral:"neutral"},ld="streets";function cd(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 dC({longitude:e,latitude:t,showPulse:r=true,accuracy:o}){return jsxRuntime.jsx(DD.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 VD={name:"mercator"},OD=[],Es=_e__namespace.default.forwardRef(({initialViewState:e,mapStyleUrl:t,viewState:r,onViewStateChange:o,scrollEnabled:n=true,className:a,previewMode:i=false,previewModeCta:s,onPreviewModePress:d,mapType:l=ld,layers:c=[],mapboxAccessToken:u,transformRequest:m,isLoading:p=false,onLoad:g,controls:f="default",showUserLocation:h=true,onUserLocationChange:b,children:v,additionalInteractiveLayerIds:y=OD,onMapClick:C,showMarker:T=false,markerLocation:w},N)=>{let R=u??Xc();if(!R)return jsxRuntime.jsx("div",{className:`relative ${a||""}`,style:{width:"100%",height:"100%"},children:jsxRuntime.jsx(sd,{className:"w-full h-full",message:"Map unavailable"})});let{isDarkTheme:P}=Qt(),E=hi(),D=t??E,k=_e.useRef(null),A=_e.useRef(null),[M,H]=_e.useState(false),[Y,V]=_e.useState(false);_e.useEffect(()=>{ad();},[]);let[F,X]=_e.useState(false),O=_e.useRef(0),[U,J]=_e.useState(null),[G,B]=_e.useState(null),S=_e.useRef(null),x=_e.useRef(null),[L,I]=jc("interactiveMap.trackingLocation",false),[q,ne]=_e.useState(false);_e.useEffect(()=>{if(!navigator.geolocation){ne(true);return}if(L){if(!navigator.permissions?.query){ne(true);return}navigator.permissions.query({name:"geolocation"}).then(W=>{W.state!=="granted"&&I(false),ne(true);}).catch(()=>{ne(true);});}else ne(true);},[]),_e.useEffect(()=>{let W=setTimeout(()=>{M||V(true);},200);return ()=>clearTimeout(W)},[M]),_e.useEffect(()=>{x.current=null;},[l,P]),_e.useEffect(()=>{if(M)return;let W=setInterval(()=>{if(k.current?.loaded()){H(true),V(false);let K=k.current.getMap?.();K&&x.current!==K&&(x.current=K,g?.()),clearInterval(W);}},200);return ()=>clearInterval(W)},[M,g]),_e.useEffect(()=>{if(q){if(!L||i){S.current!==null&&(navigator.geolocation.clearWatch(S.current),S.current=null);return}if(!navigator.geolocation){console.warn("Geolocation is not supported by this browser.");return}return S.current=navigator.geolocation.watchPosition(W=>{let K={latitude:W.coords.latitude,longitude:W.coords.longitude,accuracy:W.coords.accuracy};B(K),b?.(K);},W=>{console.warn("Geolocation error:",W.message),B(null),b?.(null);},{enableHighAccuracy:true,maximumAge:3e4,timeout:3e4}),()=>{S.current!==null&&(navigator.geolocation.clearWatch(S.current),S.current=null);}}},[L,i,b,q]);let ae=_e.useCallback(()=>{H(true),V(false);let W=k.current?.getMap?.();W&&x.current!==W&&(x.current=W,g?.());},[g]),$=_e.useCallback(()=>{k.current&&e&&(X(false),O.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=_e.useMemo(()=>f===false||f===null?[]:f==="default"||f===void 0?wm:f,[f]),Ie=_e.useCallback(()=>{if(!navigator.geolocation){console.warn("Geolocation is not supported by this browser.");return}I(true),navigator.geolocation.getCurrentPosition(W=>{let{latitude:K,longitude:ce}=W.coords;k.current&&k.current.jumpTo({center:[ce,K],zoom:15});},W=>{console.warn("Geolocation error:",W.message),W.code===W.PERMISSION_DENIED&&I(false);},{enableHighAccuracy:true,timeout:1e4,maximumAge:0});},[]),ue=_e.useMemo(()=>{if(i)return null;let W=ie.map(K=>K.type==="navigation"?{...K,onResetZoom:K.onResetZoom||$,onGeolocateClick:K.onGeolocateClick||Ie}:K);return Em(W,{mapRef:k,layers:c,showResetButton:F})},[ie,k,i,c,$,F,Ie]),ge=_e.useMemo(()=>{let W=[];return c.filter(K=>K.events?.onClick||K.events?.onMouseEnter||K.events?.onMouseLeave||K.tooltip||K.kind==="vector"&&K.revealChipOnHover).forEach(K=>{K.kind==="clusteredVector"?(W.push(`${K.id}-clusters`),W.push(`${K.id}-points`),W.push(`${K.id}-selected-point`)):W.push(K.id);}),[...W,...y]},[c,y]),de=_e.useMemo(()=>{let W=new Map;return c.forEach(K=>{K.events&&(W.set(K.id,K.events),K.kind==="clusteredVector"&&(W.set(`${K.id}-clusters`,K.events),W.set(`${K.id}-points`,K.events),W.set(`${K.id}-selected-point`,K.events)));}),W},[c]),pe=_e.useMemo(()=>{let W=new Map;return c.forEach(K=>{K.tooltip&&(W.set(K.id,K.tooltip),K.kind==="clusteredVector"&&(W.set(`${K.id}-clusters`,K.tooltip),W.set(`${K.id}-points`,K.tooltip),W.set(`${K.id}-selected-point`,K.tooltip)));}),W},[c]),Te=_e.useMemo(()=>{let W=new Map;return c.forEach(K=>{K.kind==="clusteredVector"&&(W.set(K.id,K),W.set(`${K.id}-clusters`,K),W.set(`${K.id}-points`,K),W.set(`${K.id}-selected-point`,K));}),W},[c]),Qe=_e.useMemo(()=>{if(!T)return null;let W=w?.longitude??r?.longitude??e?.longitude,K=w?.latitude??r?.latitude??e?.latitude;return W===void 0||K===void 0?null:{longitude:W,latitude:K}},[T,w,r,e]),Ze=_e.useCallback(W=>{if(i)return;let K=W.features?.[0];if(!K||!K.layer)return;let ce=K.layer.id,oe=de.get(ce),ye=pe.get(ce),ze;K.geometry.type==="Point"?ze=K.geometry.coordinates:ze=[W.lngLat.lng,W.lngLat.lat];let _={id:K.id??K.properties?.id,lngLat:ze,properties:K.properties||{},layerId:ce},be=Te.get(ce),Z=K.properties?.cluster===true;if(be&&Z){let Se=k.current;if(Se){let mo=Se.getZoom(),La=Math.min(mo+3,18);Se.flyTo({center:ze,zoom:La,duration:1e3});}return}if(oe?.onClick&&oe.onClick(_),ye&&ye.trigger==="click"){let Se;be&&"cluster"in ye?ye.point&&(Se=ye.point(_)):"content"in ye&&(Se=typeof ye.content=="function"?ye.content(_):ye.content),Se&&J({feature:_,content:Se,bare:ye.bare});}C&&C(W);},[de,pe,i,C,Te,k,ge]),tr=_e.useMemo(()=>new Set(c.filter(W=>W.kind==="vector"&&W.revealChipOnHover).map(W=>W.id)),[c]),kt=_e.useRef(null),rr=_e.useCallback(()=>{let W=kt.current;if(!(!W||!k.current)){kt.current=null;try{k.current.removeFeatureState({source:W.source,sourceLayer:W.sourceLayer,id:W.id},"hover");}catch{}}},[k]);_e.useEffect(()=>{kt.current=null;},[l,P,D]);let qt=_e.useCallback(W=>{let K=W.features?.find(oe=>oe.layer&&tr.has(oe.layer.id));if(!K||K.id==null){rr();return}let ce=kt.current;ce&&ce.source===K.source&&ce.id===K.id||(rr(),k.current&&(kt.current={source:K.source,sourceLayer:K.sourceLayer,id:K.id},k.current.setFeatureState({source:K.source,sourceLayer:K.sourceLayer,id:K.id},{hover:true})));},[tr,rr,k]),ct=_e.useCallback(W=>{let K=W.features?.[0];if(!K||!K.layer)return null;let ce=K.layer.id,oe=pe.get(ce);if(!oe||oe.trigger!=="hover"&&oe.trigger!==void 0)return null;let ye;K.geometry.type==="Point"?ye=K.geometry.coordinates:ye=[W.lngLat.lng,W.lngLat.lat];let ze={id:K.id??K.properties?.id,lngLat:ye,properties:K.properties||{},layerId:ce},_;if(Te.get(ce)&&"cluster"in oe){let Z=K.properties?.cluster===true;if(Z&&oe.cluster){let Se=K.properties?.point_count||0;_=oe.cluster(Se,ze);}else !Z&&oe.point?_=oe.point(ze):_=Z?`${K.properties?.point_count||0} items`:null;}else "content"in oe&&(_=typeof oe.content=="function"?oe.content(ze):oe.content);return _?{feature:ze,content:_,bare:oe.bare}:null},[pe,Te]),Vt=_e.useCallback(W=>{if(i)return;let K=W.features?.[0];if(!K||!K.layer)return;let ce=K.layer.id,oe=de.get(ce);if(oe?.onMouseEnter){let ze;K.geometry.type==="Point"?ze=K.geometry.coordinates:ze=[W.lngLat.lng,W.lngLat.lat];let _={id:K.id??K.properties?.id,lngLat:ze,properties:K.properties||{},layerId:ce};oe.onMouseEnter(_);}let ye=ct(W);ye&&J(ye),k.current&&(k.current.getCanvas().style.cursor="pointer");},[de,i,k,ct]),ee=_e.useCallback(W=>{if(i)return;qt(W);let K=W.features?.[0];if(!K||!K.layer)return;let ce=ct(W);if(ce){J(oe=>oe&&oe.feature.layerId===ce.feature.layerId&&oe.feature.id===ce.feature.id?oe:ce);return}J(oe=>{if(!oe)return oe;let ye=pe.get(oe.feature.layerId);return ye&&(ye.trigger==="hover"||ye.trigger===void 0)?null:oe});},[i,ct,pe,qt]),Me=_e.useCallback(()=>{if(!i){if(rr(),de.forEach(W=>{W.onMouseLeave?.();}),U){let W=U.feature.layerId,K=c.find(ce=>ce.id===W);if(!K){let ce=W.replace(/-(?:clusters|points|selected-point|cluster-shadows|points-shadow|cluster-count)$/,"");K=c.find(oe=>oe.id===ce);}K?.tooltip&&(K.tooltip.trigger||"hover")==="hover"&&J(null);}k.current&&(k.current.getCanvas().style.cursor="");}},[de,i,k,U,c,rr]),We=_e.useCallback((W,K)=>{for(let ce of c)if(ce.tooltip&&!(K&&ce.id!==K)){if(ce.kind==="geojson"){if(typeof ce.data=="string")continue;let oe=ce.data,ze=(oe.type==="FeatureCollection"?oe.features:[oe]).find(_=>_.id===W);if(ze&&ze.geometry.type==="Point")return {id:ze.id,lngLat:ze.geometry.coordinates,properties:ze.properties||{},layerId:ce.id}}else if(ce.kind==="customPins"){let oe=ce.data.find(ye=>ye.id===W||ye._id===W||ye.key===W);if(oe)return {id:W,lngLat:ce.getPosition(oe),properties:oe,layerId:ce.id}}}return null},[c]);_e.useImperativeHandle(N,()=>({showTooltip:(W,K)=>{let ce=We(W,K);if(!ce)return;let oe=c.find(ye=>ye.id===ce.layerId);if(oe?.tooltip&&"content"in oe.tooltip){let ye=typeof oe.tooltip.content=="function"?oe.tooltip.content(ce):oe.tooltip.content;J({feature:ce,content:ye,bare:oe.tooltip.bare});}},hideTooltip:()=>{J(null);},getMap:()=>k.current,markMapAsMoved:()=>{X(true);}}),[We,c]);let re=(W,K)=>m?m(W,K):{url:W},Re=p||Y,se=_e.useMemo(()=>Ps(c,l),[c,l]);return jsxRuntime.jsx("div",{ref:A,className:tailwindMerge.twMerge("relative flex h-full w-full overflow-hidden",i&&"cursor-pointer",a),onClick:i?d:void 0,children:jsxRuntime.jsxs("div",{style:{flex:1},children:[jsxRuntime.jsxs(DD__default.default,{ref:k,initialViewState:e,...r&&r,style:{width:"100%",height:"100%"},mapStyle:cd(l,P,D),styleDiffing:false,projection:VD,mapboxAccessToken:R,transformRequest:re,onLoad:ae,onMove:i?void 0:W=>{if(W.originalEvent&&M){let K=W.originalEvent.type,ce=Math.abs((W.viewState.latitude??0)-(e?.latitude??0)),oe=Math.abs((W.viewState.longitude??0)-(e?.longitude??0)),ye=Math.abs((W.viewState.zoom??0)-(e?.zoom??0));e&&(ce>1e-4||oe>1e-4||ye>.1)&&(K==="mousemove"||K==="touchmove"||K==="pointermove"?X(true):(K==="wheel"||K==="mousewheel")&&(O.current+=1,O.current>=3&&X(true)));}o?.(W.viewState);},onClick:i?void 0:Ze,onMouseMove:i?void 0:ee,onMouseEnter:i?void 0:Vt,onMouseLeave:i?void 0:Me,interactiveLayerIds:i?[]:ge,scrollZoom:i?false:n,dragPan:!i,dragRotate:!i,doubleClickZoom:!i,interactive:!i,attributionControl:false,children:[jsxRuntime.jsx(DD.AttributionControl,{position:"top-left"}),ue,se,v,Qe&&jsxRuntime.jsx(DD.Marker,{longitude:Qe.longitude,latitude:Qe.latitude,anchor:"bottom",children:jsxRuntime.jsx(z,{name:"MapPin",size:36,className:"text-map-marker-default",weight:"fill"})}),h&&G&&jsxRuntime.jsx(dC,{longitude:G.longitude,latitude:G.latitude,accuracy:G.accuracy}),U&&jsxRuntime.jsx(DD.Popup,{longitude:U.feature.lngLat[0],latitude:U.feature.lngLat[1],offset:15,closeButton:false,closeOnClick:false,className:U.bare?"map-tooltip map-tooltip-bare":"map-tooltip",maxWidth:"none",children:U.content})]},`map-${l}-${P}-${D??"default"}`),Re&&jsxRuntime.jsx(id,{}),i&&s&&jsxRuntime.jsx("div",{className:"absolute bottom-8 right-8 z-10",children:s})]})})});Es.displayName="InteractiveMap";async function pC(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(_e.createElement(r,{size:n,color:a,weight:i})),d=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(s)}`;await new Promise((l,c)=>{let u=new Image(n,n);u.onload=()=>{try{e.hasImage(t)||e.addImage(t,u,{sdf:!1}),l();}catch(m){c(m instanceof Error?m:new Error(`Failed to addImage "${t}": ${String(m)}`));}},u.onerror=m=>{c(m instanceof Error?m:new Error(`Failed to load icon "${t}"`));},u.src=d;});}function vi({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:d=true,markerOffsetY:l=0,showAttribution:c=false,onLoad:u,className:m,showExpandToggle:p=false,expandedMapTitle:g="Explore map",expandedMapAddressLabel:f,schematicPlaceholder:h=false}){let b=s??Xc(),{isDarkTheme:v}=Qt(),[y,C]=_e.useState(false),[T,w]=_e.useState(false),N=hi(),R=a??N,[P,E]=_e.useState(false),D=_e.useRef(null),k=_e.useRef(null),A=_e.useCallback(()=>E(true),[]),M=_e.useCallback(()=>E(false),[]);_e.useEffect(()=>{ad();},[]);let H={width:typeof e=="number"?`${e}px`:e,height:typeof t=="number"?`${t}px`:t};_e.useEffect(()=>{let F=setTimeout(()=>{y||w(true);},200);return ()=>clearTimeout(F)},[y]);let Y=_e.useCallback(()=>{C(true),w(false),u?.();},[u]);_e.useEffect(()=>{if(!k.current)return;let F=new ResizeObserver(()=>{D.current&&D.current.resize();});return F.observe(k.current),()=>{F.disconnect();}},[]);let V=o||T;return b?jsxRuntime.jsxs("div",{ref:k,style:H,className:`relative ${m||""}`,children:[jsxRuntime.jsxs(DD__default.default,{ref:D,mapboxAccessToken:b,initialViewState:r,style:{width:"100%",height:"100%"},mapStyle:cd(n,v,R),onLoad:Y,scrollZoom:false,dragPan:false,dragRotate:false,doubleClickZoom:false,touchZoomRotate:false,interactive:false,attributionControl:false,children:[c&&jsxRuntime.jsx(DD.AttributionControl,{position:"top-left"}),Ps(i,n),d&&r.longitude!==void 0&&r.latitude!==void 0&&jsxRuntime.jsx(DD.Marker,{longitude:r.longitude,latitude:r.latitude,anchor:"bottom",offset:[0,l],children:jsxRuntime.jsx(z,{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:A})}),p&&jsxRuntime.jsx(fr,{isOpen:P,onClose:M,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(Es,{initialViewState:r,mapType:n,mapStyleUrl:R,mapboxAccessToken:b,showMarker:d,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})]})}),V&&jsxRuntime.jsx(id,{})]}):jsxRuntime.jsx(sd,{style:H,className:m,schematic:h,showMarker:d})}var JD={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 fC({label:e,size:t="md",variant:r="default",showWarningIndicator:o=true,warningThreshold:n=80,hideValueText:a=false,className:i,...s}){let d=JD[t],l=a&&e&&!s["aria-label"]&&!s["aria-labelledby"]?{"aria-label":e}:{};return jsxRuntime.jsx(reactAriaComponents.Meter,{...s,...l,className:Ae(i,"flex flex-col gap-1"),children:({percentage:c,valueText:u})=>{let m=o&&c>=n,p=r==="default"?XD(c):r;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[!a&&jsxRuntime.jsxs("div",{className:"flex justify-between gap-2",children:[e&&jsxRuntime.jsx(Xe,{children:e}),jsxRuntime.jsxs("span",{className:tailwindMerge.twMerge(d.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",d.icon)}),u]})]}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("relative rounded-full bg-background-muted","ring-1 ring-inset ring-border-muted",d.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]",jD(p)),style:{width:`${Math.min(100,Math.max(0,c))}%`},role:"presentation","aria-hidden":"true"})})]})}})}function XD(e){return e<50?"success":e<70?"info":e<90?"warning":"error"}function jD(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 Ym=(e,t)=>e.toLocaleLowerCase().includes(t.toLocaleLowerCase());function Jm(e){return [e.value,e.label]}function ud(e,t,r=Ym){let o=t.trim();return o===""?[...e]:e.filter(n=>Jm(n).some(a=>r(a,o)))}function pd(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 md(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 $D=e=>e.kind==="literal"?`literal:${e.value}`:`option:${e.option.value}`,Xm=e=>e.kind==="literal"?e.value:e.option.value,gC=e=>e.kind==="literal"?e.value:e.option.label,eA={sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6",xl:"h-7 w-7"},tA={sm:"pl-8",md:"pl-10",lg:"pl-11",xl:"pl-13"},rA={sm:"xs",md:"xs",lg:"sm",xl:"sm"};function bC({options:e,value:t,defaultValue:r,onChange:o,label:n,placeholder:a,size:i="md",loading:s=false,disabled:d=false,maxSelected:l,allowLiteral:c=false,onSearchChange:u,truncated:m=false,totalCount:p,emptyMessage:g,showSelectAll:f=false,description:h,errorMessage:b,isRequired:v=false,onBlur:y,inputRef:C,labelHidden:T=false,className:w,id:N}){let R=_e.useId(),P=N??`multiselect-${R}`,E=`${P}-input`,D=`${P}-listbox`,k=_e.useRef(null),A=_e.useCallback(ee=>{k.current=ee,typeof C=="function"?C(ee):C&&(C.current=ee);},[C]),{contains:M}=reactAria.useFilter({sensitivity:"base"}),{isFocused:H,handleFocus:Y,handleBlur:V}=gr(),[F,X]=_e.useState(""),[O,U]=_e.useState(true),[J,G]=_e.useState(null),[B,S]=_e.useState(""),[x,L]=_e.useState(()=>[...r??[]]),I=_e.useMemo(()=>t?[...t]:x,[t,x]),q=_e.useMemo(()=>ud(e,F,M),[e,F,M]),ne=c&&!s&&pd({query:F,options:e,selected:I}),ae=_e.useMemo(()=>{let ee=q.map(Me=>({kind:"option",option:Me}));return ne?[{kind:"literal",value:F.trim()},...ee]:ee},[q,ne,F]),$=_e.useMemo(()=>md(I,e),[I,e]),ie=l!==void 0&&I.length>=l,Ie=_e.useCallback((ee,Me)=>{t||L(ee),S(`${Me} ${ee.length} selected.`),o(ee);},[o,t]),ue=_e.useCallback((ee,Me)=>{if(!d){if(I.includes(ee)){Ie(I.filter(We=>We!==ee),`${Me} removed.`);return}ie||Ie([...I,ee],`${Me} selected.`);}},[ie,Ie,d,I]),ge=_e.useCallback(ee=>{ee.kind==="option"&&ee.option.disabled||ue(Xm(ee),gC(ee));},[ue]),de=ee=>{if(d||ee.length===0)return;let Me=new Set(ee),We=ee.map(re=>$.find(Re=>Re.value===re)?.label??re);Ie(I.filter(re=>!Me.has(re)),`${We.join(", ")} removed.`);},pe=ee=>{X(ee),G(null),U(true),u?.(ee);},Te=ee=>{if(ae.length===0){G(null);return}G(Me=>Me===null?ee>0?0:ae.length-1:(Me+ee+ae.length)%ae.length);},Qe=ee=>{if(d)return;let Me=J===null?void 0:ae[J];switch(ee.key){case "ArrowDown":ee.preventDefault(),U(true),Te(1);break;case "ArrowUp":ee.preventDefault(),U(true),Te(-1);break;case "Home":ae.length>0&&(ee.preventDefault(),U(true),G(0));break;case "End":ae.length>0&&(ee.preventDefault(),U(true),G(ae.length-1));break;case "Enter":Me&&(ee.preventDefault(),ge(Me));break;case " ":F===""&&Me&&(ee.preventDefault(),ge(Me));break;case "Escape":ee.preventDefault(),F!==""?pe(""):(U(false),G(null));break;case "Backspace":F===""&&I.length>0&&(ee.preventDefault(),de([I[I.length-1]]));break;}},Ze=q.filter(ee=>!ee.disabled&&!I.includes(ee.value)).map(ee=>ee.value),tr=l===void 0?Ze.length:Math.max(0,l-I.length),kt=Math.min(Ze.length,tr),rr=kt===Ze.length?`Select all ${Ze.length} matching`:`Select ${kt} of ${Ze.length} matching`,qt=()=>{if(d||kt===0)return;let ee=Ze.slice(0,kt);Ie([...I,...ee],`${ee.length} matching options selected.`);},ct=s?"loading":e.length===0?"empty":q.length===0&&F.trim()!==""?"no-match":null,Vt=Ye[i].text;return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex w-full flex-col gap-1",w),"data-testid":"multiselect",children:[jsxRuntime.jsx(Xe,{size:i,htmlFor:E,isRequired:v,...T?{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(z,{name:"MagnifyingGlass",className:tailwindMerge.twMerge(eA[i],"text-text-secondary")})}),jsxRuntime.jsx("input",{ref:A,id:E,type:"text",role:"combobox",autoComplete:"off","aria-expanded":O,"aria-controls":D,"aria-haspopup":"listbox","aria-autocomplete":"list","aria-activedescendant":O&&J!==null&&ae[J]?`${P}-row-${J}`:void 0,"aria-required":v||void 0,"aria-invalid":b?true:void 0,value:F,placeholder:a,disabled:d,onChange:ee=>pe(ee.target.value),onKeyDown:Qe,onFocus:ee=>{U(true),Y(ee);},onBlur:ee=>{V(ee),y?.(ee);},className:Gt({isDisabled:d,isFocused:H,isInvalid:!!b,size:i,className:tailwindMerge.twMerge(tA[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:rA[i],variant:"primary",isDisabled:d,removeLabel:`Remove ${ee.label}`,onRemove:()=>de([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:qt,isDisabled:d||kt===0,children:rr}),jsxRuntime.jsx(te,{variant:"link",size:i,onPress:()=>de(I),isDisabled:d||I.length===0,children:"Clear all"})]}),jsxRuntime.jsx("div",{id:D,role:"listbox","aria-multiselectable":"true","aria-label":`${n} options`,hidden:!O,className:tailwindMerge.twMerge(Vt,"max-h-[260px] overflow-y-auto rounded-[var(--control-border-radius)] border border-border-input bg-background-input"),children:O&&ae.map((ee,Me)=>{let We=I.includes(Xm(ee)),re=d||ee.kind==="option"&&ee.option.disabled===true||!We&&ie;return jsxRuntime.jsxs("div",{id:`${P}-row-${Me}`,role:"option","aria-selected":We,"aria-disabled":re||void 0,"data-value":Xm(ee),"data-literal":ee.kind==="literal"?"true":void 0,"data-active":J===Me?"true":void 0,onMouseDown:Re=>Re.preventDefault(),onClick:()=>{re||(ge(ee),k.current?.focus());},className:tailwindMerge.twMerge("flex cursor-default items-center gap-2 px-3",Ye[i].paddingY,"text-text-primary",J===Me&&"bg-background-hover",We&&"bg-background-selected font-medium",re&&"text-text-disabled"),children:[jsxRuntime.jsx(ep,{isSelected:We,isDisabled:re,className:"!w-4 !h-4"}),jsxRuntime.jsx("span",{className:"flex-1 truncate",children:gC(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()})]},$D(ee))})}),ct==="loading"&&jsxRuntime.jsx("div",{"data-testid":"multiselect-status-loading","data-status":"loading",children:jsxRuntime.jsxs(ke,{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"})]})}),ct==="empty"&&jsxRuntime.jsx("div",{"data-testid":"multiselect-status-empty","data-status":"empty",children:jsxRuntime.jsxs(ke,{size:i,className:"flex items-center gap-2",children:[jsxRuntime.jsx(z,{name:"Tray",className:"h-4 w-4"}),jsxRuntime.jsx("span",{children:g??"No options available"})]})}),ct==="no-match"&&jsxRuntime.jsx("div",{"data-testid":"multiselect-status-no-match","data-status":"no-match",children:jsxRuntime.jsxs(ke,{size:i,className:"flex items-center gap-2 text-feedback-warning-text",children:[jsxRuntime.jsx(z,{name:"MagnifyingGlass",className:"h-4 w-4"}),jsxRuntime.jsx("span",{children:`No options match \u201C${F.trim()}\u201D`})]})}),m&&jsxRuntime.jsx("div",{"data-testid":"multiselect-truncation",children:jsxRuntime.jsx(ke,{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`})}),l!==void 0&&jsxRuntime.jsx("div",{"data-testid":"multiselect-limit",children:jsxRuntime.jsx(ke,{size:i,children:ie?`${I.length} of ${l} selected \u2014 limit reached, remove one to choose another`:`${I.length} of ${l} selected`})}),h&&jsxRuntime.jsx(ke,{size:i,children:h}),b&&jsxRuntime.jsx(xe,{size:i,children:b}),jsxRuntime.jsx("div",{"data-testid":"multiselect-live-region",role:"status","aria-live":"polite",className:"sr-only",children:B})]})}var bd="bg-background-surface border-l-[3px] border-y border-r border-border-default text-text-primary",iA={success:{container:bd,iconName:"CheckCircle",iconColor:"text-feedback-success-text",borderColor:"var(--color-feedback-success-border)"},error:{container:bd,iconName:"XCircle",iconColor:"text-feedback-error-text",borderColor:"var(--color-feedback-error-border)"},warning:{container:bd,iconName:"Warning",iconColor:"text-feedback-warning-text",borderColor:"var(--color-feedback-warning-border)"},info:{container:bd,iconName:"Info",iconColor:"text-feedback-info-text",borderColor:"var(--color-feedback-info-border)"}};function xd({id:e,message:t,variant:r="info",duration:o=5e3,dismissible:n=true,onDismiss:a,className:i}){let{container:s,iconName:d,iconColor:l,borderColor:c}=iA[r];return _e.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:c},children:[jsxRuntime.jsx(z,{name:d,size:20,className:l}),jsxRuntime.jsx("p",{className:"flex-1 select-text text-sm font-medium",children:t}),n&&jsxRuntime.jsx("button",{type:"button",onClick:a,className:"flex-shrink-0 rounded-md p-1 transition-colors hover:bg-background-hover","aria-label":"Dismiss notification",children:jsxRuntime.jsx(z,{name:"X",size:16})})]})}var mA={"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 yd({notices:e,onDismiss:t,position:r="bottom-center",className:o}){let[n,a]=_e.useState(false);if(_e.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",mA[r],o),"aria-live":"polite","aria-atomic":"true",children:jsxRuntime.jsx(framerMotion.AnimatePresence,{mode:"sync",children:e.map(s=>jsxRuntime.jsx(xd,{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 hC=_e.createContext(void 0);function xC({children:e,position:t="bottom-center",maxNotices:r=5,defaultDuration:o=5e3,defaultDismissible:n=true}){let[a,i]=_e.useState([]),s=_e.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 h=[...f,g];return h.length>r?h.slice(-r):h}),p},[r,o,n]),d=_e.useCallback(u=>{i(m=>m.filter(p=>p.id!==u));},[]),l=_e.useCallback(()=>{i([]);},[]),c={notices:a,addNotice:s,removeNotice:d,clearNotices:l};return jsxRuntime.jsxs(hC.Provider,{value:c,children:[e,jsxRuntime.jsx(yd,{notices:a,onDismiss:d,position:t})]})}function yC(){let e=_e.useContext(hC);if(!e)throw new Error("useNoticeContext must be used within a NoticeProvider");return e}function vC(){let{addNotice:e,removeNotice:t,clearNotices:r}=yC(),o=_e.useCallback((d,l)=>e(d,l),[e]),n=_e.useCallback((d,l)=>e(d,{...l,variant:"success"}),[e]),a=_e.useCallback((d,l)=>e(d,{...l,variant:"error"}),[e]),i=_e.useCallback((d,l)=>e(d,{...l,variant:"warning"}),[e]),s=_e.useCallback((d,l)=>e(d,{...l,variant:"info"}),[e]);return {show:o,success:n,error:a,warning:i,info:s,dismiss:t,clear:r}}var vA={plain:"",contained:"bg-background-surface rounded-lg border border-border-default p-6",bordered:"border-y border-border-default py-6"},CA={none:"",sm:"my-4",md:"my-6 md:my-8",lg:"my-8 md:my-12"};function Ci({id:e,title:t,description:r,actions:o,variant:n="plain",spacing:a="none",withDivider:i=false,headingAs:s="h2",className:d,children:l}){let c=_e__namespace.default.useId(),u=e?`${e}-heading`:c,m=t||r||o;return jsxRuntime.jsxs("section",{id:e,className:tailwindMerge.twMerge(CA[a],vA[n],d),"aria-labelledby":t?u:void 0,children:[m&&jsxRuntime.jsxs("header",{id:u,className:tailwindMerge.twMerge("flex flex-col sm:flex-row sm:items-start sm:justify-between gap-4",i&&"border-b border-border-default pb-4 mb-6",!i&&l&&"mb-6"),children:[jsxRuntime.jsxs("div",{className:"min-w-0 flex-1",children:[t&&jsxRuntime.jsx(mr,{tag:s,size:"md",className:"text-text-primary",children:t}),r&&jsxRuntime.jsx("p",{className:"mt-2 text-base text-text-secondary",children:r})]}),o&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:o})]}),l&&jsxRuntime.jsx("div",{className:"",children:t?jsxRuntime.jsx(sn,{children:l}):l})]})}Ci.displayName="Section";function Cd({sections:e,activeSection:t,onSectionChange:r,orientation:o="responsive",className:n,scrollBehavior:a="smooth",stickyTop:i="1.5rem",heading:s,sectionIdPrefix:d="section-",filterSection:l,scrollContainerId:c}){let u=_e__namespace.useRef(null),m=_e__namespace.useRef(null),[p,g]=_e__namespace.useState(e[0]?.id||null),f=t??p,h=_e__namespace.useCallback(()=>c?document.getElementById(c):null,[c]),b=_e__namespace.useCallback(w=>document.getElementById(`${d}${w}`)??document.getElementById(w),[d]);_e__namespace.useEffect(()=>{let w=window.location.hash;if(!w)return;let N=w.slice(1),R=N.startsWith(d)?N.slice(d.length):N,P=e.find(E=>E.id===R);P&&requestAnimationFrame(()=>{let E=b(P.id);if(!E)return;let D=h();if(D){let k=D.getBoundingClientRect(),A=E.getBoundingClientRect(),M=D.scrollTop+(A.top-k.top);D.scrollTo({top:Math.max(0,M),behavior:"instant"});}else E.scrollIntoView({behavior:"instant",block:"start"});r?r(P.id):g(P.id);});},[]),_e__namespace.useEffect(()=>{if(t!==void 0&&r)return;let w=E=>{if(!E)return false;let D=window.getComputedStyle(E);return D.display!=="none"&&D.visibility!=="hidden"&&D.opacity!=="0"},N=()=>{let E=w(u.current),D=w(m.current);if(!E&&!D)return null;let k=h(),A=new IntersectionObserver(M=>{M.forEach(H=>{if(H.isIntersecting){let Y=H.target.id.replace(d,"");r?r(Y):g(Y);}});},{root:k??void 0,rootMargin:"-20% 0px -70% 0px",threshold:0});return e.forEach(M=>{let H=b(M.id);H&&A.observe(H);}),A},R=N(),P=()=>{R&&R.disconnect(),R=N();};return window.addEventListener("resize",P),()=>{R&&R.disconnect(),window.removeEventListener("resize",P);}},[e,d,t,r,o,h,b]);let v=_e__namespace.useMemo(()=>l?e.filter(l):e,[e,l]),y=_e__namespace.useCallback((w,N)=>{w.preventDefault();let R=b(N);if(R){let P=h();if(P){let E=P.getBoundingClientRect(),D=R.getBoundingClientRect(),k=P.scrollTop+(D.top-E.top),A=Math.max(0,P.scrollHeight-P.clientHeight);P.scrollTo({top:Math.max(0,Math.min(k,A)),behavior:a});}else {let E=R.getBoundingClientRect().top+window.scrollY,D=Math.max(0,document.documentElement.scrollHeight-window.innerHeight),k=Math.max(0,Math.min(E,D));window.scrollTo({top:k,behavior:a});}window.history.pushState&&window.history.pushState(null,"",`#${d}${N}`),r?r(N):g(N);}},[d,a,r,h,b]);if(v.length===0)return null;let C=o==="vertical"?"":o==="horizontal"?"hidden":"hidden lg:block",T=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,v.map(w=>{let N=f===w.id;return jsxRuntime.jsx("a",{href:`#${d}${w.id}`,onClick:R=>y(R,w.id),className:tailwindMerge.twMerge("block w-full text-left px-3 py-2 rounded-md text-sm transition-colors no-underline",N?"bg-background-muted text-text-primary font-semibold":"text-text-secondary hover:text-text-primary hover:bg-background-hover"),"aria-current":N?"page":void 0,children:jsxRuntime.jsxs("span",{className:"flex items-center justify-between gap-2",children:[jsxRuntime.jsx("span",{children:w.label}),w.count!==void 0&&jsxRuntime.jsx("span",{className:"text-xs tabular-nums text-text-secondary",children:w.count})]})},w.id)})]})}),jsxRuntime.jsx("nav",{ref:m,className:tailwindMerge.twMerge(T,"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:v.map(w=>{let N=f===w.id;return jsxRuntime.jsx("a",{href:`#${d}${w.id}`,onClick:R=>y(R,w.id),className:tailwindMerge.twMerge("inline-block px-4 py-2 rounded-md text-sm whitespace-nowrap transition-colors no-underline",N?"bg-background-muted text-text-primary font-semibold":"text-text-secondary hover:text-text-primary hover:bg-background-hover"),"aria-current":N?"page":void 0,children:jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("span",{children:w.label}),w.count!==void 0&&jsxRuntime.jsxs("span",{className:"text-xs tabular-nums text-text-secondary",children:["(",w.count,")"]})]})},w.id)})})})]})}function SC(e){return "primary"}var Sd=_e__namespace.createContext({variant:"primary"});function PA({orientation:e,className:t=""}){return `flex flex-col w-full ${{horizontal:"",vertical:"flex-row"}[e]||""} ${t}`.trim()}function Nd({variant:e="primary",...t}){let r=SC();return jsxRuntime.jsx(Sd.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)=>PA({...n,className:o}))})})})}function RA({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 Td({variant:e,sticky:t=false,...r}){let o=_e__namespace.useContext(Sd),n=SC(e??o.variant);return jsxRuntime.jsx(Sd.Provider,{value:{variant:n},children:jsxRuntime.jsx(reactAriaComponents.TabList,{...r,className:reactAriaComponents.composeRenderProps(r.className,(a,i)=>RA({...i,sticky:t,className:a||""}))})})}function EA({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 kd(e){let{variant:t}=_e__namespace.useContext(Sd);return jsxRuntime.jsx(reactAriaComponents.Tab,{...e,"data-testid":e.id?`tab-${e.id}`:void 0,className:reactAriaComponents.composeRenderProps(e.className,(r,o)=>EA({...o,className:r,isSelected:o.isSelected,variant:t}))})}function MA({className:e=""}){let t="block w-full mt-4 text-text-primary",r=rt();return `${t} ${r} ${e}`.trim()}function wC(e){return jsxRuntime.jsx(reactAriaComponents.TabPanel,{...e,className:reactAriaComponents.composeRenderProps(e.className,(t,r)=>MA({...r,className:t||""}))})}function Na({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 LA({title:e,subtitle:t,breadcrumbs:r,breadcrumbsNode:o,media:n,actions:a,metadata:i,headingAs:s,sticky:d,stickyTop:l="0",zIndex:c=10,isLoading:u=false,className:m}){let p=d?"sticky bg-background-body":"",g=d?{top:l,zIndex:c}:{};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(j,{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(j,{className:"h-8 w-64"})}),t?jsxRuntime.jsx(j,{className:"mt-2 h-5 w-48"}):null,i?jsxRuntime.jsx(j,{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,h)=>jsxRuntime.jsx(j,{className:"h-9 w-full"},h))}):null]}),a?.length?jsxRuntime.jsx("div",{className:"hidden md:flex md:items-start gap-2 shrink-0",children:a.map((f,h)=>jsxRuntime.jsx(j,{className:"h-9 w-24"},h))}):null]}),n?jsxRuntime.jsx("div",{className:"mt-4 md:mt-6",children:jsxRuntime.jsx(j,{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(wl,{children:r.map((f,h)=>{let{label:b,...v}=f;return jsxRuntime.jsx(Nl,{...v,children:b},`${b}-${h}`)})})}):null,jsxRuntime.jsxs("div",{className:"flex flex-col md:flex-row md:items-start md:justify-between gap-4",children:[jsxRuntime.jsxs("div",{className:"min-w-0 flex-1",children:[jsxRuntime.jsx("div",{id:"page-title",children:jsxRuntime.jsx(mr,{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,h)=>jsxRuntime.jsx(_e__namespace.default.Fragment,{children:f},h))}):null]}),a?.length?jsxRuntime.jsx("div",{className:"hidden md:flex md:items-start gap-2 shrink-0",children:a.map((f,h)=>jsxRuntime.jsx(_e__namespace.default.Fragment,{children:f},h))}):null]}),n?jsxRuntime.jsx("div",{className:"mt-4 md:mt-6",children:n}):null]})}function DA({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(Nd,{selectedKey:t,defaultSelectedKey:r||e[0]?.id,onSelectionChange:i,children:[jsxRuntime.jsx(Td,{className:"after:bg-transparent",children:e.map(s=>jsxRuntime.jsx(kd,{id:s.id,isDisabled:s.disabled,children:s.label},s.id))}),a]})})}function AA({children:e,className:t,withSectionNav:r,navWidth:o="240px",gap:n="2rem",activeSection:a,onSectionChange:i,scrollBehavior:s,sectionIdPrefix:d="section-",scrollContainerId:l,navHeading:c,navStickyTop:u}){return r?jsxRuntime.jsx(FA,{position:r,navWidth:o,gap:n,activeSection:a,onSectionChange:i,scrollBehavior:s,sectionIdPrefix:d,scrollContainerId:l,navHeading:c,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 IA({children:e,sticky:t=true,className:r}){return jsxRuntime.jsx("aside",{className:tailwindMerge.twMerge(t?"lg:sticky lg:top-20":"",r),children:e})}function FA({activeSection:e,onSectionChange:t,position:r,navWidth:o,gap:n,children:a,className:i,scrollBehavior:s,sectionIdPrefix:d,scrollContainerId:l,navHeading:c,navStickyTop:u}){let m=_e__namespace.default.useMemo(()=>{let y=[];return _e__namespace.default.Children.forEach(a,C=>{if(_e__namespace.default.isValidElement(C)&&(C.type===Ci||typeof C.type=="object"&&C.type?.displayName==="Section"||typeof C.type=="function"&&C.type?.displayName==="Section")){let T=C.props;T.id?y.push({id:T.id,label:T.navLabel||(typeof T.title=="string"?T.title:`Section ${T.id}`)}):process.env.NODE_ENV==="development"&&console.warn("Section component used within PageLayout.Content with withSectionNav must have an id prop");}}),y},[a]),p=_e__namespace.default.useMemo(()=>{let y=_e__namespace.default.Children.map(a,C=>{if(_e__namespace.default.isValidElement(C)&&(C.type===Ci||typeof C.type=="object"&&C.type?.displayName==="Section"||typeof C.type=="function"&&C.type?.displayName==="Section")){let T=C.props;if(T.id)return _e__namespace.default.cloneElement(C,{...T,id:`${d}${T.id}`})}return C});return jsxRuntime.jsx("div",{className:"space-y-8 md:space-y-12",children:y})},[a,d]),g=(y,C)=>jsxRuntime.jsx(Cd,{sections:m,activeSection:e,onSectionChange:t,orientation:y,scrollBehavior:s,sectionIdPrefix:d,scrollContainerId:l,heading:c,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)",h=u?"":"top-20",b=u?{top:u}:void 0,v=tailwindMerge.twMerge("hidden lg:block sticky self-start",h);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:"lg:hidden sticky top-0 z-10 mt-3 mb-4 bg-background-body border-b border-border-default shadow-sm",children: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:v,style:b,children:g("vertical")}),p,r==="right"&&jsxRuntime.jsx("nav",{className:v,style:b,children:g("vertical")})]})]})}function BA({children:e,className:t}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-1 overflow-auto min-h-0",t),children:e})}Na.Header=LA;Na.Tabs=DA;Na.Content=AA;Na.Aside=IA;Na.ScrollableContent=BA;function OA(e){return typeof e=="object"&&e!==null&&"features"in e&&Array.isArray(e.features)&&"type"in e&&typeof e.type=="string"}var zA=process.env.NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN||"";function kC({label:e,selectedKey:t,defaultSelectedKey:r,onSelectionChange:o,placeholder:n="Enter a location...",errorMessage:a,description:i,size:s="md",tooltip:d,isRequired:l,isDisabled:c,showErrors:u=true,autoFocus:m=false,onSelect:p,searchTypes:g=["place","address"],defaultFilter:f,validationResult:h,countryRestrictions:b,proximity:v="ip",hideCountry:y=false,showIcon:C=true,useMobileTray:T=true,className:w}){let N=_e.useRef(new WeakMap),R=_e.useRef([]),P={requestType:"REST",method:"GET",url:"https://api.mapbox.com/geocoding/v5/mapbox.places/{q}.json",extraParams:{access_token:zA,types:g.join(","),limit:"5",...b?.length?{country:b.join(",").toLowerCase()}:{},...v?{proximity:v==="ip"?"ip":v.join(",")}:{}},shouldLoad:k=>k.length>0,transformResponse:k=>{if(!OA(k))return [];let A=k.features.map(M=>{let H={id:M.id,name:M.place_name};return N.current.set(H,{type:M.place_type[0],center:M.center,context:M.context,address:M.address,text:M.text,properties:M.properties}),H});return A.length>0&&(R.current=A),A}},E=k=>{let A=N.current.get(k),M=k.name.split(", "),H=M[0],Y=M.slice(1);y&&Y.length>0&&(Y=Y.slice(0,-1));let V=Y.join(", ");return jsxRuntime.jsxs("div",{className:"flex items-center gap-3 py-0.5",children:[C&&jsxRuntime.jsx(z,{name:A?.type==="address"?"MapPin":A?.type==="place"?"Buildings":A?.type==="region"?"MapPinArea":A?.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:H}),V&&jsxRuntime.jsx("span",{className:"truncate text-sm text-text-secondary",children:V})]})]})},D=k=>k?jsxRuntime.jsx(z,{name:"CircleNotch",className:"h-4 w-4 animate-spin text-text-secondary"}):jsxRuntime.jsx(z,{name:"MagnifyingGlass",className:"h-4 w-4 text-text-secondary"});return jsxRuntime.jsx(vl,{"data-testid":"autocomplete","data-config":JSON.stringify({types:g.join(","),country:b?.join(",")?.toLowerCase(),proximity:v==="ip"?"ip":v?.join(",")}),label:e||void 0,selectedKey:t,defaultSelectedKey:r,onSelectionChange:k=>{if(o?.(k),k){let M=R.current.find(H=>H.id===k);if(M){let H=N.current.get(M);H&&p({id:M.id,place_name:M.name,place_type:[H.type],center:H.center,context:H.context,address:H.address,text:H.text,properties:H.properties});}}},requestConfig:P,placeholder:n,errorMessage:a,description:i,size:s,tooltip:d,isRequired:l,isDisabled:c,showErrors:u,autoFocus:m,renderItem:E,renderLeftIcon:D,defaultFilter:f,validationResult:h,hideChevron:true,useMobileTray:T,className:w})}function RC({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 EC({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:ur("prose",i,s,o),...a,children:n})}function JA(e="2"){return {1:"p-2 text-xs",2:"p-3 text-sm",3:"p-4 text-base"}[e]}function XA(e){return e?"border-action-primary text-action-primary":"border-border text-text-primary"}function jA(){return "opacity-50 cursor-not-allowed"}function MC({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:d})=>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||d)&&!s&&"hover:bg-background-hover hover:border-border-hover",JA(n),XA(s),(t||d)&&jA(),r),children:o})})}function LC({value:e,defaultValue:t,onChange:r,isDisabled:o,isReadOnly:n,isRequired:a,className:i,children:s,size:d="2",variant:l="primary",columns:c="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(c))?`repeat(${c}, minmax(0, 1fr))`:c,gap:u==="1"?"0.25rem":u==="2"?"0.5rem":u==="3"?"0.75rem":u==="4"?"1rem":typeof u=="number"?`${u}px`:u},children:_e__namespace.default.Children.map(s,m=>_e__namespace.default.isValidElement(m)?_e__namespace.default.cloneElement(m,{size:d,variant:l}):m)})}function $A(e){return "primary"}var DC=_e.createContext({variant:"primary"});function AC(e){let{variant:t="primary",...r}=e,o=$A();return jsxRuntime.jsx(DC.Provider,{value:{variant:o},children:jsxRuntime.jsxs(reactAriaComponents.RadioGroup,{...r,className:Ae(e.className,"group flex flex-col gap-2"),children:[jsxRuntime.jsx(Xe,{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(ke,{children:e.description}),jsxRuntime.jsx(xe,{children:typeof e.errorMessage=="function"&&e.validationResult?e.errorMessage(e.validationResult):typeof e.errorMessage=="string"?e.errorMessage:null})]})})}function eI({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 IC(e){return _e.useContext(DC),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:eI(t)}),e.children]})})}var dI={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"}},Ni=({isActive:e=false,onPress:t,children:r})=>jsxRuntime.jsx(te,{variant:e?"secondary":"ghost",size:"sm",onPress:t,className:"p-1",children:r});function uI({initialUrl:e,isOpen:t,onClose:r,onSubmit:o}){let[n,a]=_e.useState(e);return _e__namespace.default.useEffect(()=>{a(e);},[e]),jsxRuntime.jsx(Pr,{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(or,{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 VC({initialContent:e="",onChange:t,className:r,isDisabled:o=false,placeholder:n="Start typing...",id:a,size:i="md",headingLevels:s=[1,2]}){let d=dI[i],[l,c]=_e.useState(false),u=react.useEditor({immediatelyRender:false,extensions:[iI__default.default.configure({heading:s.length>0?{levels:s}:false}),rI__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 ${d.prose} max-w-none`,"focus:outline-none","[&>*:first-child]:mt-0 [&>*:last-child]:mb-0")}}}),m=()=>{c(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")&&!l,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(z,{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(z,{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(z,{name:"X",className:"mr-1 h-4 w-4"}),"Remove"]})]}),jsxRuntime.jsx(uI,{isOpen:l,onClose:()=>c(false),onSubmit:p,initialUrl:u.getAttributes("link").href||""})]}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center gap-1 border-b border-border-input",d.toolbar),children:[s.map(g=>jsxRuntime.jsx(Ni,{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(Ni,{isActive:u.isActive("bold"),onPress:()=>u.chain().focus().toggleBold().run(),children:jsxRuntime.jsx("span",{className:"text-xs font-bold",children:"B"})}),jsxRuntime.jsx(Ni,{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(Ni,{isActive:u.isActive("bulletList"),onPress:()=>u.chain().focus().toggleBulletList().run(),children:jsxRuntime.jsx(z,{name:"ListBullets",className:"h-4 w-4"})}),jsxRuntime.jsx(Ni,{isActive:u.isActive("orderedList"),onPress:()=>u.chain().focus().toggleOrderedList().run(),children:jsxRuntime.jsx(z,{name:"ListNumbers",className:"h-4 w-4"})}),jsxRuntime.jsx("div",{className:"mx-1 h-4 w-px bg-border-muted"}),jsxRuntime.jsx(Ni,{isActive:u.isActive("link"),onPress:m,children:jsxRuntime.jsx(z,{name:"PaperclipHorizontal",className:"h-4 w-4"})})]}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("relative w-full outline-none focus:outline-none",d.contentWrapper),children:[jsxRuntime.jsx(react.EditorContent,{editor:u,className:tailwindMerge.twMerge("w-full outline-none focus:outline-none",d.contentPadding,"[&_.ProseMirror]:min-h-[inherit]","[&_.ProseMirror]:outline-none [&_.ProseMirror]:focus:outline-none",d.h1,d.h2,d.p,"[&_.ProseMirror_ul]:list-disc","[&_.ProseMirror_ol]:list-decimal",d.list,d.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",d.placeholderPos,d.placeholderText),children:n})]})]}):null}function OC({streetAddress:e,city:t,state:r,postalCode:o,longitude:n,latitude:a,href:i,LinkComponent:s,variant:d="outlined",layout:l="stacked",showMap:c=true,mapHeight:u=200,mapboxAccessToken:m,isLoading:p=false,className:g,contentClassName:f,showMapExpandToggle:h=false,expandedMapTitle:b="Explore map",expandedMapAddressLabel:v,piiEntity:y}){let C=[];t&&C.push(t),r&&o?C.push(`${r} ${o}`):r?C.push(r):o&&C.push(o);let T=C.join(", "),w=v||[e,T].filter(Boolean).join(", "),N=c&&n!==void 0&&a!==void 0,R=({children:E,className:D})=>i?s?jsxRuntime.jsx(s,{href:i,className:D,children:E}):jsxRuntime.jsx(pt,{href:i,variant:"unstyled",className:tailwindMerge.twMerge("hover:underline",D),asButton:false,children:E}):jsxRuntime.jsx("span",{className:D,children:E});if(p){let E=l==="row";return jsxRuntime.jsxs($e,{variant:d,className:tailwindMerge.twMerge(E?"flex flex-col md:flex-row":"flex flex-col",g),children:[N&&jsxRuntime.jsx($e.Media,{aspectRatio:"auto",className:tailwindMerge.twMerge(E&&"md:order-2 md:flex-[2] md:min-w-0"),children:jsxRuntime.jsx(j,{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(j,{width:"100%",height:16}),jsxRuntime.jsx(j,{width:"80%",height:16})]})]})}let P=l==="row";return jsxRuntime.jsxs($e,{variant:d,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})}),N&&jsxRuntime.jsx($e.Media,{aspectRatio:"auto",className:tailwindMerge.twMerge(P&&"md:order-2 md:flex-[2] md:min-w-0"),children:jsxRuntime.jsx(vi,{height:u,initialViewState:{longitude:n,latitude:a,zoom:14},showMarker:true,mapboxAccessToken:m,showExpandToggle:h,expandedMapTitle:b,expandedMapAddressLabel:w})}),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":y?"address":void 0,"data-pii-entity":y,children:e}),T&&jsxRuntime.jsx("span",{className:"text-lg font-normal leading-relaxed text-text-secondary","data-pii-type":y?"city-state-zip":void 0,"data-pii-entity":y,children:T})]})})]})}function HC({site:e,contact:t,LinkComponent:r,variant:o="outlined",layout:n="stacked",showMap:a=true,mapHeight:i=200,mapboxAccessToken:s,showEmail:d=true,showPhone:l=false,isLoading:c=false,className:u,contentClassName:m,fullHeight:p=false,showMapExpandToggle:g=false,expandedMapTitle:f="Explore map",expandedMapAddressLabel:h}){let b=[];e.city&&b.push(e.city),e.state&&e.postalCode?b.push(`${e.state} ${e.postalCode}`):e.state?b.push(e.state):e.postalCode&&b.push(e.postalCode);let v=b.join(", "),y=h||[e.streetAddress,v].filter(Boolean).join(", "),C=a&&e.longitude!==void 0&&e.latitude!==void 0,T=t?`${t.firstName} ${t.lastName}`.trim():"",w=({children:R,href:P,className:E})=>P?r?jsxRuntime.jsx(r,{href:P,className:E,children:R}):jsxRuntime.jsx(pt,{href:P,variant:"unstyled",className:tailwindMerge.twMerge("hover:underline",E),asButton:false,children:R}):jsxRuntime.jsx("span",{className:E,children:R});if(c){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(j,{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(j,{width:"100%",height:16}),jsxRuntime.jsx(j,{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(j,{width:40,height:40,className:"rounded flex-shrink-0"}),jsxRuntime.jsxs("div",{className:"flex-1 space-y-1",children:[jsxRuntime.jsx(j,{width:"50%",height:14}),jsxRuntime.jsx(j,{width:"100%",height:12})]})]})]})]})]})}let N=n==="row";return jsxRuntime.jsxs($e,{variant:o,className:tailwindMerge.twMerge("group/card relative",e.href&&"cursor-pointer",p&&"h-full",N?"flex flex-col md:flex-row":"flex flex-col",u),children:[e.href&&jsxRuntime.jsx(w,{href:e.href,className:"after:absolute after:inset-0 after:z-10",children:jsxRuntime.jsx("span",{className:"sr-only",children:e.streetAddress})}),C&&jsxRuntime.jsx($e.Media,{aspectRatio:"auto",className:tailwindMerge.twMerge(N&&"md:order-2 md:flex-[2] md:min-w-0",p&&"flex-1"),children:jsxRuntime.jsx(vi,{height:p?"100%":i,initialViewState:{longitude:e.longitude,latitude:e.latitude,zoom:14},showMarker:true,mapboxAccessToken:s,showExpandToggle:g,expandedMapTitle:f,expandedMapAddressLabel:y})}),jsxRuntime.jsxs($e.Content,{className:tailwindMerge.twMerge("space-y-4 px-4 py-4",N&&"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}),v&&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:v})]}),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(Go,{firstName:t.firstName,lastName:t.lastName,src:t.avatarUrl,size:"md",variant:"user",shape:"square",className:"flex-shrink-0",piiEntity:t.piiEntity}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[t.href?jsxRuntime.jsx(w,{href:t.href,className:"text-sm font-semibold leading-tight text-text-primary block mb-0.5 hover:text-text-brand transition-colors relative z-20",children:jsxRuntime.jsx("span",{"data-pii-type":t.piiEntity?"full-name":void 0,"data-pii-entity":t.piiEntity,children:T})}):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:T}),jsxRuntime.jsxs("div",{className:"space-y-0.5",children:[d&&t.email&&jsxRuntime.jsxs("div",{className:"flex items-center gap-1.5 text-text-primary",children:[jsxRuntime.jsx(z,{name:"Envelope",size:12,className:"text-text-secondary flex-shrink-0"}),jsxRuntime.jsx(pt,{href:`mailto:${t.email}`,variant:"unstyled",className:"text-xs leading-tight truncate text-text-primary relative z-20","data-pii-type":t.piiEntity?"email":void 0,"data-pii-entity":t.piiEntity,children:t.email})]}),l&&t.phone&&jsxRuntime.jsxs("div",{className:"flex items-center gap-1.5 text-text-primary",children:[jsxRuntime.jsx(z,{name:"Phone",size:12,className:"text-text-secondary flex-shrink-0"}),jsxRuntime.jsx(pt,{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:Ba(t.phone)})]})]})]})]})]})]})]})}function GC({label:e,description:t,tooltip:r,errorMessage:o,size:n="md",className:a,value:i,defaultValue:s=0,onChange:d,min:l=0,max:c=100,step:u=1,disabled:m,showValue:p=true}){let g=typeof i=="number",[f,h]=_e__namespace.default.useState(s),b=g?i:f,v=Math.min(Math.max(b,l),c),y=Math.max(c-l,1e-5),C=(v-l)/y*100;return jsxRuntime.jsxs("div",{className:Ae(a,"group flex w-full flex-col gap-1"),children:[e&&jsxRuntime.jsx(Xe,{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:l,max:c,step:u,value:b,disabled:m,"aria-invalid":!!o,onChange:T=>{let w=Number(T.currentTarget.value);g||h(w),d?.(w);},className:tailwindMerge.twMerge("absolute inset-0 w-full cursor-pointer appearance-none bg-transparent outline-none","[&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:h-4 [&::-webkit-slider-thumb]:w-4 [&::-webkit-slider-thumb]:rounded-full [&::-webkit-slider-thumb]:bg-background-input [&::-webkit-slider-thumb]:border [&::-webkit-slider-thumb]:border-border-input","hover:[&::-webkit-slider-thumb]:shadow-sm focus-visible:[&::-webkit-slider-thumb]:outline-2 focus-visible:[&::-webkit-slider-thumb]:outline-action-default","[&::-moz-range-thumb]:h-4 [&::-moz-range-thumb]:w-4 [&::-moz-range-thumb]:rounded-full [&::-moz-range-thumb]:bg-background-input [&::-moz-range-thumb]:border [&::-moz-range-thumb]:border-border-input","hover:[&::-moz-range-thumb]:shadow-sm focus-visible:[&::-moz-range-thumb]:outline-2 focus-visible:[&::-moz-range-thumb]:outline-action-default",m?"cursor-not-allowed opacity-60":void 0)})]}),p&&jsxRuntime.jsx("div",{className:"min-w-10 text-right text-sm text-text-primary tabular-nums",children:Math.round(v)})]}),t&&jsxRuntime.jsx(ke,{className:"mt-2 text-text-secondary",children:t}),o&&jsxRuntime.jsx(xe,{className:"mt-1",children:o})]})}var hI=_e__namespace.default.createContext({orientation:"horizontal",isResizing:false});function UC(e,t){return e===void 0?t:e}function xI(e,t){return typeof e=="number"?e:typeof e=="string"&&e.endsWith("%")?Number.parseFloat(e)/100*t:Number.parseFloat(e.toString())}function Rd({asideWidth:e,asideHeight:t,minAsideWidth:r=240,minAsideHeight:o=200,minMainWidth:n=400,minMainHeight:a=300,orientation:i="horizontal",resizable:s=false,onAsideResize:d,onResizeStart:l,onResizeEnd:c,className:u,dividerClassName:m,children:p}){let g=_e.useRef(null),[f,h]=_e.useState(false),b=i==="horizontal"?400:300,v=UC(i==="horizontal"?e:t,b),[y,C]=_e.useState(null),T=_e.useCallback(k=>{if(!g.current||!f)return;let A=g.current.getBoundingClientRect(),M=i==="horizontal"?A.width:A.height,H=i==="horizontal"?k.clientX:k.clientY,V=(i==="horizontal"?A.right:A.bottom)-H,F=M-V,X=i==="horizontal"?r:o,O=i==="horizontal"?n:a;V<X||F<O||(C(V),d?.(V));},[f,i,r,o,n,a,d]),w=_e.useCallback(()=>{h(false),c?.();},[c]),N=_e.useCallback(k=>{k.preventDefault(),k.stopPropagation(),h(true),l?.();},[l]);_e.useEffect(()=>{if(f)return document.addEventListener("mousemove",T),document.addEventListener("mouseup",w),document.body.style.cursor=i==="horizontal"?"col-resize":"row-resize",document.body.style.userSelect="none",()=>{document.removeEventListener("mousemove",T),document.removeEventListener("mouseup",w),document.body.style.cursor="",document.body.style.userSelect="";}},[f,T,w,i]);let R=_e__namespace.default.Children.toArray(p).find(k=>_e__namespace.default.isValidElement(k)&&k.type===YC),P=_e__namespace.default.Children.toArray(p).find(k=>_e__namespace.default.isValidElement(k)&&k.type===JC),E=y??v,D=typeof E=="number"?`${E}px`:E;return jsxRuntime.jsx(hI.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:N,role:"separator","aria-orientation":i,"aria-label":"Resize divider",tabIndex:0,onKeyDown:k=>{if(!g.current)return;let A=g.current.getBoundingClientRect(),M=i==="horizontal"?A.width:A.height,H=y??xI(v,M),Y=20,V=i==="horizontal"?r:o,F=i==="horizontal"?n:a;if(i==="horizontal"){if(k.key==="ArrowLeft"){let X=Math.min(H+Y,M-F);C(X),d?.(X);}else if(k.key==="ArrowRight"){let X=Math.max(H-Y,V);C(X),d?.(X);}}else if(k.key==="ArrowUp"){let X=Math.min(H+Y,M-F);C(X),d?.(X);}else if(k.key==="ArrowDown"){let X=Math.max(H-Y,V);C(X),d?.(X);}},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"]:D},children:P})]})})}function YC({className:e,children:t}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-full h-full",e),children:t})}function JC({className:e,children:t}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-full h-full",e),children:t})}Rd.Main=YC;Rd.Aside=JC;var vI=e=>{let t=Gt({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 XC({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,required:a,transparent:i,isInvalid:s,isDisabled:d,isResizable:l=false,className:c,validationResult:u,reserveErrorSpace:m=true,...p}){let{isFocused:g,handleFocus:f,handleBlur:h}=gr();return jsxRuntime.jsx("div",{className:"group flex flex-col",children:jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(Xe,{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),h(b);},className:vI({isInvalid:s,isDisabled:d,isResizable:l,isFocused:g,size:o,transparent:i,className:c}),disabled:d})}),m?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(xe,{size:o,children:r}):typeof r=="function"&&u?jsxRuntime.jsx(xe,{size:o,children:r(u)}):t?jsxRuntime.jsx(ke,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(xe,{size:o,className:"mt-1",children:r}):typeof r=="function"&&u?jsxRuntime.jsx(xe,{size:o,className:"mt-1",children:r(u)}):t?jsxRuntime.jsx(ke,{size:o,className:"mt-1",children:t}):null})]})})}function ZC({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,required:a,transparent:i,isInvalid:s,isDisabled:d,isResizable:l=false,className:c,validationResult:u,value:m="",onChange:p,chips:g=[],onChipsChange:f,triggerPattern:h="{{",onTriggerDetected:b,onTriggerDismissed:v,renderChip:y,chipVariant:C="primary",chipSize:T,...w}){let N=_e.useRef(null),{isFocused:R,handleFocus:P,handleBlur:E}=gr(),D=T||"sm",k=_e.useRef(null),A=_e.useCallback(O=>{let U="",J=G=>{if(G.nodeType===Node.TEXT_NODE){if(!G.parentElement?.closest("[data-chip-id]")){let S=G.textContent||"";U+=S;}}else if(G.nodeType===Node.ELEMENT_NODE){let B=G;if(B.hasAttribute("data-chip-id")){let S=B.getAttribute("data-chip-id");U+=`{{${S}}}`;return}else if(B.tagName==="BR"){U+=`
|
|
47
|
+
`;return}else B.tagName;}for(let B=0;B<G.childNodes.length;B++)J(G.childNodes[B]);};return J(O),U},[]),M=_e.useCallback((O,U)=>{let J=document.createTreeWalker(O,NodeFilter.SHOW_TEXT,{acceptNode:L=>{let I=L.parentElement;return I&&I.closest("[data-chip-id]")?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}}),G=J.nextNode(),B=Math.max(0,U);for(;G;){let L=G.nodeValue||"";if(L.length>=B){let I=document.createRange();I.setStart(G,B),I.collapse(true);let q=window.getSelection();q?.removeAllRanges(),q?.addRange(I);return}B-=L.length,G=J.nextNode();}let S=window.getSelection(),x=document.createRange();x.selectNodeContents(O),x.collapse(false),S?.removeAllRanges(),S?.addRange(x);},[]);_e.useEffect(()=>{N.current&&!m&&N.current.textContent!==""&&(N.current.textContent="");},[m]),_e.useLayoutEffect(()=>{if(N.current){if(m===""){if(R)try{N.current.focus({preventScroll:!0}),M(N.current,0);}catch{}return}if(k.current!=null)try{M(N.current,k.current);}finally{k.current=null;}}},[m,M,R]);let H=_e.useCallback((O,U)=>{if(p?.(O),O===""){v?.();return}if(h&&b&&U!==void 0){let J=O.slice(0,U),G=typeof h=="string"?new RegExp(`\\${h}([^\\s]*)$`):h,B=J.match(G);if(B){let S=B[1]||"",x=U-B[0].length;b({query:S,position:U,startIndex:x});}else v?.();}},[p,h,b,v]),Y=_e.useCallback(O=>{if(!f||!p)return;let U=g.filter(G=>G.id!==O);f(U);let J=m.replace(new RegExp(`\\{\\{${O}\\}\\}`,"g"),"");p(J);},[g,f,m,p]),V=_e.useCallback(O=>y?y(O,()=>Y(O.id)):jsxRuntime.jsx(Yr,{variant:C,size:D,onRemove:d?void 0:()=>Y(O.id),isDisabled:d,className:"py-0.5 px-1.5 gap-1 text-xs leading-none rounded-md",children:O.label},O.id),[y,C,D,Y,d]),F=()=>{let O=Gt({isInvalid:s,isDisabled:d,isFocused:R,transparent:i,size:o}),U=`min-h-[100px] py-2 px-3 ${d?"resize-none":l?"resize-y":"resize-none"}`,J=tailwindMerge.twMerge("focus:outline-none overflow-auto","[&_[data-chip-id]::selection]:bg-action-primary/20","[&:empty]:before:content-[attr(data-placeholder)] [&:empty]:before:text-text-disabled [&:empty]:before:pointer-events-none");return tailwindMerge.twMerge(O,U,J,c)},X=()=>m?m.split(/(\{\{[^}]+\}\})/g).map((U,J)=>{let G=U.match(/\{\{([^}]+)\}\}/);if(G){let B=G[1],S=g.find(x=>x.id===B);if(S)return jsxRuntime.jsx("span",{className:"inline-block align-baseline cursor-pointer",contentEditable:false,suppressContentEditableWarning:true,"data-chip-id":B,style:{userSelect:"none",verticalAlign:"baseline",lineHeight:"1"},onClick:x=>{x.preventDefault();let L=window.getSelection(),I=document.createRange();I.selectNode(x.currentTarget),L?.removeAllRanges(),L?.addRange(I);},children:V(S)},`chip-${B}-${J}`)}return U.includes(`
|
|
48
48
|
`)?U.split(`
|
|
49
|
-
`).map((
|
|
50
|
-
`).length-1&&jsxRuntime.jsx("br",{})]},`line-${W}-${w}`)):U}):null;return jsxRuntime.jsx("div",{className:"group flex flex-col",children:jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(Je,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(Nt,{children:jsxRuntime.jsx("div",{ref:T,contentEditable:!c,suppressContentEditableWarning:true,onInput:H=>{if(c)return;let U=H.target,W=U.querySelector("[data-chip-id]")!==null,G;if(W?(G=A(U),G=G.replace(/(\{\{[^}]+\}\})\s{2,}/g,"$1 ").replace(/\s{2,}(\{\{[^}]+\}\})/g," $1")):G=U.textContent||"",G===""){try{let v=document.createRange();v.selectNodeContents(U),v.collapse(!0);let L=window.getSelection();L?.removeAllRanges(),L?.addRange(v),k.current=0;}catch{}z("",0);return}if(G===m)return;let K=window.getSelection(),w=0;if(K&&K.rangeCount>0)try{let v=K.getRangeAt(0);if(W){let L=0,I=!1,X=oe=>{if(I)return !0;if(oe===v.startContainer)return L+=v.startOffset,I=!0,!0;if(oe.nodeType===Node.TEXT_NODE){if(!oe.parentElement?.closest("[data-chip-id]")){if(oe.contains(v.startContainer))return L+=v.startOffset,I=!0,!0;L+=(oe.textContent||"").length;}}else if(oe.nodeType===Node.ELEMENT_NODE){let ie=oe;if(ie.hasAttribute("data-chip-id")){if(ie.contains(v.startContainer)||ie===v.startContainer){let ae=ie.getAttribute("data-chip-id");return L+=`{{${ae}}}`.length,I=!0,!0}let re=ie.getAttribute("data-chip-id");return L+=`{{${re}}}`.length,!1}else if(ie.tagName==="BR")return ie===v.startContainer?(I=!0,!0):(L+=1,!1)}for(let ie=0;ie<oe.childNodes.length;ie++)if(X(oe.childNodes[ie]))return !0;return !1};X(U),w=L;}else {let L=document.createRange();L.setStart(U,0),L.setEnd(v.startContainer,v.startOffset),w=L.toString().length;}}catch{w=G.length;}k.current=w,z(G,w);},onKeyDown:H=>{if(c)return;let U=window.getSelection();if(!(!U||U.rangeCount===0))try{let W=U.getRangeAt(0),G=W.commonAncestorContainer;if(H.key==="ArrowLeft"||H.key==="ArrowRight"){let K=G.nodeType===Node.TEXT_NODE?G.parentElement?.closest("[data-chip-id]"):G.closest("[data-chip-id]");if(K){H.preventDefault();try{let w=document.createRange(),v=window.getSelection();H.key==="ArrowLeft"?w.setStartBefore(K):w.setStartAfter(K),w.collapse(!0),v?.removeAllRanges(),v?.addRange(w);}catch{}}}if(H.key==="Backspace"){let K=null;if(K=(G.nodeType===Node.TEXT_NODE?G.parentElement?.closest("[data-chip-id]"):G.closest("[data-chip-id]"))||null,!K)if(G.nodeType===Node.TEXT_NODE){let w=G;if(W.startOffset===0&&w.parentElement){let v=w.previousSibling;if(v&&v.nodeType===Node.ELEMENT_NODE){let L=v.closest("[data-chip-id]");L&&(K=L);}}}else {let w=G;if(W.startOffset>0){let v=w.childNodes[W.startOffset-1];if(v&&v.nodeType===Node.ELEMENT_NODE){let L=v.closest("[data-chip-id]");L&&(K=L);}}}if(K){H.preventDefault(),H.stopPropagation();let w=K.getAttribute("data-chip-id");if(!w)return;let v=`{{${w}}}`,L=m.indexOf(v);if(L!==-1){let I=m.slice(0,L)+m.slice(L+v.length),X=g.filter(oe=>oe.id!==w);k.current=L;try{window.getSelection()?.removeAllRanges();}catch{}f?.(X),p?.(I);}}}}catch{}},onFocus:H=>{c||(S.onFocus&&S.onFocus(H),P(H));},onBlur:H=>{c||(S.onBlur&&S.onBlur(H),E(H));},className:O(),style:{whiteSpace:"pre-wrap",wordBreak:"break-word",...S.style},"data-placeholder":S.placeholder,children:Q()},m===""?"empty":"content")}),t&&jsxRuntime.jsx(ke,{size:o,className:"mt-3",children:t}),typeof r=="string"&&jsxRuntime.jsx(ye,{size:o,className:"mt-1",children:r}),typeof r=="function"&&u&&jsxRuntime.jsx(ye,{size:o,className:"mt-1",children:r(u)})]})})}function TI({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 $C({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,isDisabled:i,isInvalid:s,reserveErrorSpace:c=true,validationResult:l,className:d,descriptionPlacement:u="below",...m}){return jsxRuntime.jsxs(reactAriaComponents.TimeField,{...m,isDisabled:i,isRequired:a,isInvalid:s,className:Ae(d,"flex flex-col gap-1"),children:[e&&jsxRuntime.jsx(Je,{size:o,tooltip:n,description:u==="tooltip"||u==="inline"?t:void 0,descriptionPlacement:u,isRequired:a,children:e}),jsxRuntime.jsx(Nt,{children:jsxRuntime.jsx(reactAriaComponents.DateInput,{className:tailwindMerge.twMerge(cn({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:TI({isPlaceholder:p.isPlaceholder,isDisabled:!p.isEditable||i,size:o})})})}),c?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(ye,{size:o,children:r}):typeof r=="function"&&l?jsxRuntime.jsx(ye,{size:o,children:r(l)}):t&&u==="below"?jsxRuntime.jsx(ke,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(ye,{size:o,className:"mt-1",children:r}):typeof r=="function"&&l?jsxRuntime.jsx(ye,{size:o,className:"mt-1",children:r(l)}):t&&u==="below"?jsxRuntime.jsx(ke,{size:o,className:"mt-1",children:t}):null})]})}function e0({children:e,className:t=""}){return jsxRuntime.jsx("div",{className:`flex flex-col ${t}`.trim(),role:"list",children:e})}function t0({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 MI(e){return "primary"}var LI="flex font-medium justify-center items-center gap-2 text-center transition whitespace-nowrap box-border",r0={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]"}},DI="opacity-[--control-hover-opacity] cursor-not-allowed pointer-events-none grayscale",AI="opacity-100 cursor-pointer",II={"top-right":"-right-2 -top-2","top-left":"-left-2 -top-2","bottom-right":"-right-2 -bottom-2","bottom-left":"-left-2 -bottom-2"},FI={primary:"bg-action-primary text-[color:var(--color-action-primary-text)]",destructive:"bg-feedback-error-border text-text-inverse"};function BI(e){let{variant:t="primary",size:r="md",isDisabled:o,isSelected:n,borderRadius:a,borderRight:i,borderLeft:s}=e,c=MI(),l=`${LI} ${n?r0[c].selected:r0[c].unselected}`;return l+=` ${Ke[r].text} ${Ke[r].height} ${Ke[r].padding} ${Ke[r].gap}`,l+=` ${o?DI:AI}`,a==="left"&&(l+=" rounded-l-sm"),a==="right"&&(l+=" rounded-r-sm"),i&&(l+=" border-r"),s&&(l+=" border-l"),l+=` ${rt()}`,(l+=" focus-visible:outline-action-primary"),tailwindMerge.twMerge(l)}function n0(e){let{className:t,children:r,onPress:o,icon:n,iconPosition:a="left",iconWeight:i,isLoading:s=false,loadingText:c,loadingIndicator:l,size:d="md",badgeNumber:u,badgeVariant:m="primary",badgePosition:p="top-right",...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:l||jsxRuntime.jsx(V,{name:"CircleNotch",size:d,className:"animate-spin","aria-hidden":"true"})}),jsxRuntime.jsx("div",{className:"invisible","aria-hidden":"true",children:h}),c&&jsxRuntime.jsx("span",{className:"sr-only",role:"status","aria-live":"polite",children:c})]}):h},b=jsxRuntime.jsx(reactAriaComponents.ToggleButton,{onPress:o,...g,className:tailwindMerge.twMerge(BI(e),t),"aria-busy":s,children:y()});return u&&u>0?jsxRuntime.jsxs("div",{className:"relative",children:[b,jsxRuntime.jsx("span",{className:`absolute ${II[p]} flex h-5 w-5 items-center justify-center rounded-full ${FI[m]} text-xs`,"aria-label":`${u} items`,children:u})]}):b}var OI={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"}},zI={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}},HI=["energized","customerName","gs_max_continuous_current"],GI=["MOTOR.voltage"],WI=[{key:"total_kvar",label:"Rated kvar",format:{type:"power",unit:"kvar",decimals:1}}],UI=[{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}}],ct={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:[]},_o={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:ct.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:ct.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:ct.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:ct.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:ct.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:ct.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:ct.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:ct.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:ct.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:ct.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:ct.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:ct.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:ct.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:ct.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:ct.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:ct.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:ct.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:ct.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:ct.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:ct.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:ct.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:ct.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:ct.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:ct.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"}},a0=Object.freeze(Object.keys(_o).filter(e=>_o[e].category==="grid")),KI=new Set(a0);function YI(e){return typeof e=="string"&&KI.has(e)}var JI={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 Pd(e){return _o[e]}function XI(e){return _o[e].icon}function jI(e,t=false){return t?_o[e].label.plural:_o[e].label.singular}function qI(e){return _o[e].category}var QI={min:2,max:4};function ZI(e){let t=_o[e];if(!t)throw new Error(`archetypeFor: unknown entity type "${String(e)}"`);return t.archetype}function _I(e){return Pd(e).detailPage}function $I(e){return (Pd(e).fields?.headlineMetrics.length??0)>0}function i0(e){return Pd(e).properties?.statList??[]}function e5(e){return i0(e).length>0}function t5({formId:e="dialog-form",onSubmit:t,primaryLabel:r="Save",secondaryLabel:o="Cancel",onCancel:n,primaryVariant:a,secondaryVariant:i="secondary",children:s,title:c,...l}){return jsxRuntime.jsx(mr,{title:c,primaryAction:{label:r,onPress:()=>{let u=document.getElementById(e);u&&u.requestSubmit();},variant:a},secondaryAction:n?{label:o,onPress:n,variant:i}:void 0,...l,children:jsxRuntime.jsx(li,{id:e,onSubmit:t,children:s})})}function r5({formId:e="drawer-form",onSubmit:t,primaryLabel:r="Save",secondaryLabel:o="Cancel",onCancel:n,primaryVariant:a,secondaryVariant:i="secondary",children:s,...c}){return jsxRuntime.jsx(ms,{primaryAction:{label:r,onPress:()=>{let d=document.getElementById(e);d&&d.requestSubmit();},variant:a},secondaryAction:n?{label:o,onPress:n,variant:i}:void 0,...c,children:jsxRuntime.jsx(li,{id:e,onSubmit:t,className:"mt-2",children:s})})}function n5({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 s5={sm:"gap-2",md:"gap-4",lg:"gap-6"};function l5(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 c5({cols:e={base:1},gap:t="lg",className:r,...o}){return jsxRuntime.jsx("div",{...o,className:tailwindMerge.twMerge("grid",l5(e),s5[t],r)})}function p5({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(pr,{tag:"h3",size:"sm",children:e}):e,t?jsxRuntime.jsx(ke,{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 m5(){return jsxRuntime.jsx("hr",{className:"border-border-muted"})}function f5({steps:e,currentStepId:t,onStepClick:r,className:o}){let n=e.findIndex(a=>a.id===t);return jsxRuntime.jsx("nav",{"aria-label":"Progress",className:tailwindMerge.twMerge("w-full",o),children:jsxRuntime.jsx("div",{className:"relative mb-12",children:jsxRuntime.jsx("ol",{className:"relative flex items-start justify-between",children:e.map((a,i)=>{let s=a.id===t,c=i<n,l=r&&(c||s);return jsxRuntime.jsxs("li",{className:"relative flex flex-col items-center",style:{flex:`1 1 ${100/e.length}%`},children:[jsxRuntime.jsx("button",{type:"button",disabled:!l,onClick:()=>l&&r?.(a.id),className:tailwindMerge.twMerge("relative z-10 flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-full border-2 transition-colors bg-background-body",c&&"border-action-primary bg-action-primary text-text-inverse hover:bg-action-primary/90",s&&"border-action-primary bg-background-body text-action-primary",!c&&!s&&"border-border-default bg-background-body text-text-secondary",l&&"cursor-pointer",!l&&"cursor-default"),"aria-current":s?"step":void 0,children:c?jsxRuntime.jsx(V,{name:"Check",size:20,weight:"bold"}):jsxRuntime.jsx("span",{className:"text-sm font-semibold",children:i+1})}),i<e.length-1&&jsxRuntime.jsx("div",{className:"absolute top-5 h-0.5 transition-colors",style:{left:"50%",width:"100%",marginLeft:"20px",backgroundColor:i<n?"var(--color-action-primary)":"var(--color-border-default)"}}),jsxRuntime.jsxs("div",{className:"mt-3 flex flex-col items-center text-center w-32",children:[jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("text-sm font-medium",s&&"text-text-default",c&&"text-text-primary",!s&&!c&&"text-text-secondary"),children:a.title}),a.description&&jsxRuntime.jsx("span",{className:"mt-1 text-xs text-text-secondary",children:a.description})]})]},a.id)})})})})}function b5({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 h5({when:e,message:t="You have unsaved changes. Leave anyway?"}){return Ze__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 x5({steps:e,initialStepId:t,canNavigate:r}){if(e.length===0)throw new Error("useWizard: steps array cannot be empty");let[o,n]=Ze__namespace.useState(t||e[0].id),a=e.findIndex(u=>u.id===o),i=a>0,s=a<e.length-1,c=async u=>u===o?true:r&&!await r(o,u)?false:(n(u),true);return {steps:e,currentStepId:o,setCurrentStepId:c,next:async()=>!s||a===-1?false:c(e[a+1].id),prev:async()=>!i||a===-1?false:c(e[a-1].id),hasNext:s,hasPrev:i,stepIndex:a}}function Hs(e,t){return t.split(".").reduce((r,o)=>r?.[o],e)}function f0(e){return e==null?true:Array.isArray(e)?e.length===0:typeof e=="string"?e.trim()==="":false}function v5(e,t){let r=Hs(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 f0(r);case "isNotEmpty":return !f0(r);default:return false}}function g0(e,t){if(t.conditions.length===0)return true;let r=t.conditions.map(o=>"conditions"in o?g0(e,o):v5(e,o));return t.logic==="AND"?r.every(Boolean):r.some(Boolean)}function C5(e,t){return !t||t.conditions.length===0?e:e.filter(r=>g0(r,t))}function S5(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 w5(e,t){return t?[...e].sort((r,o)=>{let n=Hs(r,t.field),a=Hs(o,t.field);return S5(n,a,t.direction)}):e}function N5(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 y5__default.default(e,{keys:o,threshold:a,ignoreLocation:true,includeScore:true}).search(r).map(l=>l.item);let i=r.toLowerCase();return e.filter(s=>o.some(c=>{let l=Hs(s,c);return l==null?false:String(l).toLowerCase().includes(i)}))}function T5(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=Hs(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 ef({data:e,filters:t,sort:r,search:o,facetConfigs:n=[]}){let a=N5(e,o||null);a=C5(a,t||null);let i=T5(a,n);return a=w5(a,r||null),{data:a,facetCounts:i,resultCount:a.length}}function Ed({data:e,filters:t,sort:r,search:o,facetConfigs:n=[]}){return Ze.useMemo(()=>ef({data:e,filters:t,sort:r,search:o,facetConfigs:n}),[e,t,r,o,n])}function Md({filters:e,sort:t,search:r,onStateChange:o,searchDebounce:n=300}){let a=ln(r,n),i=Ze.useRef(true);Ze.useEffect(()=>{if(i.current){i.current=false;return}o({filters:e,sort:t,search:a});},[e,t,a,o]);}function b0(e){return e.mode==="client"?Ed({data:e.data,filters:e.filters,sort:e.sort,search:e.search,facetConfigs:e.facetConfigs}):(Md({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 h0=cf(gp());function M5(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 tf(e){return /^[=+\-@\t\r]/.test(e)?`'${e}`:e}function L5(e,t){return t.accessor?typeof t.accessor=="function"?t.accessor(e):e[t.accessor]:null}function x0(e,t){let r=L5(t,e);if(e.exportValue){let o=e.exportValue(r,t);return o==null?"":typeof o=="string"?tf(o):o}return r==null?"":r instanceof Date?r.toISOString():typeof r=="object"?tf(JSON.stringify(r)):typeof r=="string"?tf(r):r}function rf(e){return e.filter(t=>t.exportable!==false)}function y0(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 of(e){let{columns:t,data:r,metadata:o={}}=e;try{let n=rf(t);if(n.length===0)throw new Error("No exportable columns found");y0(n);let a=r.map(l=>{let d={};for(let u of n){let m=u.exportLabel||u.label;d[m]=x0(u,l);}return d}),i=MP__default.default.unparse(a,{header:!0,skipEmptyLines:!0}),s=new Blob([i],{type:"text/csv;charset=utf-8;"}),c=M5(o.filename||"table-data","csv",o.timestamp!==!1);(0,h0.saveAs)(s,c);}catch(n){throw new Error(`CSV export failed: ${n instanceof Error?n.message:"Unknown error"}`)}}function D5(e){let{columns:t,data:r}=e,o=rf(t);return y0(o),r.map(n=>{let a={};for(let i of o){let s=i.exportLabel||i.label;a[s]=x0(i,n);}return a})}function A5(e){return rf(e).map(t=>t.exportLabel||t.label)}function v0({columns:e,data:t,metadata:r}){let n=e.filter(c=>c.exportable!==false).length>0&&t.length>0,[a,i]=Ze.useState(false);return {exportCSV:Ze.useCallback(async()=>{i(true);try{await of({columns:e,data:t,metadata:r});}catch(c){throw console.error("Table export failed:",c),c}finally{i(false);}},[e,t,r]),canExport:n,isExporting:a}}function Xle(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=HI;exports.ActionCell=Fx;exports.ActionMenu=Wa;exports.ActivityFeed=Eu;exports.ActivityFeedGroup=ll;exports.ActivityItem=cl;exports.Alert=Fg;exports.AppShell=Kg;exports.AreaSeries=xn;exports.AutoMobileRenderer=Tc;exports.Autocomplete=xl;exports.Avatar=Go;exports.BREAKPOINTS=In;exports.Badge=gt;exports.BadgeCell=Vx;exports.Banner=vl;exports.BarSeries=Dl;exports.BooleanCell=Ox;exports.BrandProvider=vf;exports.BreadcrumbItem=Sl;exports.Breadcrumbs=Cl;exports.Button=te;exports.CATEGORICAL_RAMP=$c;exports.CATEGORY_COLOR_TOKENS=zx;exports.CATEGORY_NEUTRAL_COLOR=cc;exports.CHART_HEADER_HEIGHT=hu;exports.COLOR_RAMPS=ws;exports.CUSTOM_ICON_REGISTRY=La;exports.Calendar=Xa;exports.Card=$e;exports.CardContent=Cu;exports.CardFooter=Su;exports.CardHeader=rl;exports.CardMedia=vu;exports.CardMobileRenderer=kc;exports.CarouselAutoplayTrigger=yb;exports.CarouselControl=gb;exports.CarouselIndicator=Qu;exports.CarouselIndicatorGroup=xb;exports.CarouselItem=fb;exports.CarouselItemGroup=mb;exports.CarouselNextTrigger=hb;exports.CarouselPrevTrigger=bb;exports.CarouselProgressText=vb;exports.CarouselRoot=pb;exports.CategoryBarChart=rh;exports.CategoryCell=Gx;exports.ChartAxis=Xr;exports.ChartBottomBar=ei;exports.ChartContainer=wh;exports.ChartContext=Jr;exports.ChartEventMarkers=Hl;exports.ChartEventSpans=Gl;exports.ChartExpandOwnedByAncestor=vp;exports.ChartHeader=Ha;exports.ChartLabelledBy=nn;exports.ChartOwnsItsTitle=gg;exports.ChartTooltip=Co;exports.Checkbox=eo;exports.CheckboxGroup=Zu;exports.Chip=Yr;exports.ChipInputField=Pb;exports.ClearButton=Vi;exports.CodeEditor=Mb;exports.Collapse=ja;exports.CollapseContent=bn;exports.CollapseHeader=gn;exports.CollapseItem=fn;exports.ColorField=Mk;exports.ColorModeProvider=Mf;exports.CommandPalette=Ay;exports.Confirm=Bb;exports.ConnectionStatusBadge=Vb;exports.ContactCard=Ob;exports.ContactMetaCell=Ux;exports.ContactMetaDisplay=Pl;exports.ContainerQueryProvider=Gb;exports.CopyToClipboard=dn;exports.CustomCell=Kx;exports.DEFAULT_CHART_HEIGHT=Sh;exports.DEFAULT_MAP_TYPE=id;exports.DIVERGING_RAMPS=_c;exports.DataControls=Sx;exports.DataTable=Cy;exports.DateCell=Yx;exports.DateField=Rx;exports.DateRangePicker=oc;exports.DeltaCell=Jx;exports.Description=ke;exports.DeviceHealthBadge=wy;exports.DeviceMetaCell=jx;exports.DeviceMetaDisplay=pc;exports.DeviceStateBadge=ia;exports.DeviceStateCell=Zx;exports.DeviceStateWithMetric=gc;exports.DeviceTypeIcon=Ty;exports.Dialog=mr;exports.DialogForm=t5;exports.DialogHeader=rr;exports.Drawer=ms;exports.DrawerForm=r5;exports.ENTITY_CATEGORY_CONFIG=zI;exports.ENTITY_CONFIG=_o;exports.EmptyState=jl;exports.EnrollmentStatusBadge=Py;exports.ErrorBoundary=$r;exports.FieldError=ye;exports.FieldGroup=Xg;exports.FileUpload=Ey;exports.FilterChips=wx;exports.FilterDialog=Dx;exports.FirmwareVersionBadge=Ly;exports.Form=li;exports.FormActions=n5;exports.FormDivider=m5;exports.FormGrid=c5;exports.FormSection=p5;exports.FormStepper=f5;exports.FormatRegistry=se;exports.FormattedCell=$x;exports.FunnelSeries=Ph;exports.GRID_ELEMENT_TYPE_BY_ENTITY=JI;exports.GRID_STATE_COLORS=OI;exports.GRID_STAT_LIST=ct;exports.GRID_STAT_LIST_CAPACITOR_PER_PHASE_KVAR=UI;exports.GRID_STAT_LIST_CAPACITOR_TOTAL_KVAR=WI;exports.GlobalSearch=By;exports.Grid=cm;exports.GridStateBadge=fc;exports.HEADLINE_METRIC_BOUNDS=QI;exports.Heading=pr;exports.HierarchyExplorer=dv;exports.HorizontalBarCell=Zp;exports.HoverCard=gL;exports.Icon=V;exports.IndexCell=ry;exports.InfiniteScrollIndicator=Ur;exports.Input=gl;exports.InputWrapper=Nt;exports.InteractiveMap=Ps;exports.Kpi=bv;exports.KpiGroup=hm;exports.Label=Je;exports.LineSeries=Zn;exports.List=Sv;exports.ListBox=FL;exports.ListBoxItem=gr;exports.ListItem=Nv;exports.ListPane=Tv;exports.Loader=Wr;exports.Logo=Ka;exports.MAP_TYPES=cC;exports.MapStyleProvider=lC;exports.Meter=fC;exports.MiniBarCell=_p;exports.ModalBackdrop=kr;exports.MultiSelect=bC;exports.Notice=bd;exports.NoticeContainer=hd;exports.NoticeProvider=xC;exports.NumberCell=ay;exports.NumberField=ss;exports.PageBanner=nb;exports.PageLayout=Sa;exports.PercentBarCell=tm;exports.PieChart=Lh;exports.PlaceSearch=kC;exports.Popover=St;exports.ProgressBar=RC;exports.Prose=EC;exports.Radio=IC;exports.RadioCard=MC;exports.RadioCardGroup=LC;exports.RadioGroup=AC;exports.RangeCalendar=ni;exports.RangeCell=ly;exports.ResultsCount=os;exports.RichTextEditor=VC;exports.SEQUENTIAL_RAMPS=Zc;exports.SKELETON_SIZES=Tn;exports.SOURCE_UNIT_TO_WH=$d;exports.SaveBar=b5;exports.SearchControl=ra;exports.SearchEmptyState=Vy;exports.SearchLoadingState=zy;exports.SearchResultGroup=Gy;exports.SearchResultItem=Wy;exports.SearchResultsList=Uy;exports.SearchTrigger=Yy;exports.Section=xi;exports.SectionNav=yd;exports.SegmentedControl=Zl;exports.Select=Ho;exports.SelectCell=vc;exports.SideNav=ul;exports.SiteCard=OC;exports.SiteContactCard=HC;exports.SiteMetaCell=dy;exports.SiteMetaDisplay=Cc;exports.Skeleton=j;exports.Slider=GC;exports.SortControl=ns;exports.SparklineCell=rm;exports.SplitPane=kd;exports.StackNav=Ya;exports.StatList=Fc;exports.StaticMap=hi;exports.Switch=nc;exports.Tab=Nd;exports.TabList=wd;exports.TabPanel=wC;exports.Tabs=Sd;exports.TextArea=XC;exports.TextAreaWithChips=ZC;exports.TextCell=fy;exports.TextField=qr;exports.TextLink=pt;exports.TiledTimeSeriesChart=Jl;exports.TiledTimeSeriesExplorer=xx;exports.TimeControls=_l;exports.TimeField=$C;exports.Timeline=e0;exports.TimelineItem=t0;exports.ToggleButton=n0;exports.Tooltip=Zt;exports.TopNav=Bi;exports.Tray=wt;exports.UNARY_FILTER_OPERATORS=Nx;exports.UNARY_OPERATOR_LABELS=kx;exports.UNVERIFIED_VOLTAGE_UNIT_ROWS=GI;exports.UnsavedChangesPrompt=h5;exports.activeDeviceStates=O2;exports.addFilterCondition=Nn;exports.applyDataOperations=ef;exports.archetypeFor=ZI;exports.assembleSeries=jh;exports.autoScaleCurrent=JS;exports.autoScaleDistance=zf;exports.autoScaleEnergy=Uf;exports.autoScalePower=ew;exports.autoScaleResistance=tw;exports.autoScaleVoltage=lw;exports.baselineFromPoint=uP;exports.camelCaseToWords=ag;exports.capitalize=og;exports.celsiusToFahrenheit=rw;exports.celsiusToKelvin=MF;exports.centimetersToInches=uF;exports.classicPresetRanges=ax;exports.clearColorCache=Ys;exports.createCategoryColorMap=RS;exports.createEmptyFilter=as;exports.createFilter=qR;exports.createFilters=QR;exports.createFormat=o3;exports.createTextureIcon=ft;exports.createTiledCameraSyncGroup=Dh;exports.createXScale=dp;exports.createYScale=Ui;exports.csvUnitFor=uu;exports.csvValueFor=lg;exports.defaultMargin=Ue;exports.defaultMultiSelectMatcher=Gm;exports.deltaDirectionFromValue=Xp;exports.deviceStateLabels=z2;exports.deviceStateMetricFormats=MX;exports.emptyStore=qh;exports.entityHasDetailPage=_I;exports.entityHasStatList=e5;exports.entityShowsNow=$I;exports.enumToSentenceCase=iw;exports.exportChart=hp;exports.exportTableAsCSV=of;exports.fahrenheitToCelsius=ow;exports.fahrenheitToKelvin=LF;exports.feetToMeters=rF;exports.feetToMiles=aF;exports.filterMultiSelectOptions=cd;exports.filterToChips=ZR;exports.formatBoolean=Lf;exports.formatCapacity=I4;exports.formatComponentValue=fo;exports.formatCurrency=Bf;exports.formatCurrent=Kd;exports.formatDate=Vf;exports.formatDistance=Hf;exports.formatEmptyValue=sc;exports.formatEnergy=eu;exports.formatFieldValue=Pr;exports.formatInternationalPhone=tu;exports.formatNumber=Ff;exports.formatPercent=Af;exports.formatPhone=Kf;exports.formatPhoneNumber=Ia;exports.formatPower=au;exports.formatPowerRating=F4;exports.formatResistance=su;exports.formatTemperature=_f;exports.formatText=sg;exports.formatUSPhone=Qs;exports.formatVoltage=du;exports.getBadgeClasses=Ax;exports.getBooleanBadgeVariant=Ix;exports.getCellAlignmentClasses=Yp;exports.getCellContainerClasses=Ne;exports.getCellTextClasses=Sr;exports.getColorRamp=Dm;exports.getColorRampsByKind=Am;exports.getContrastingTextColor=ES;exports.getDateParts=Q4;exports.getDefaultChartColor=Ni;exports.getDefaultColors=Js;exports.getDeviceStateDisplayLabel=qp;exports.getDeviceStateLabel=qp;exports.getEntityCategory=qI;exports.getEntityConfig=Pd;exports.getEntityIcon=XI;exports.getEntityLabel=jI;exports.getEntityStatList=i0;exports.getEventColor=Uo;exports.getExportFormatName=FP;exports.getExportHeaders=A5;exports.getFieldGroupStyles=DN;exports.getFilterFields=na;exports.getGridStateLabel=Qx;exports.getInputBackgroundStyles=Jg;exports.getInputBaseStyles=Gt;exports.getInputStateStyles=cn;exports.getLinkClasses=Jp;exports.getNumericColorClasses=lc;exports.getResolvedColor=Ot;exports.getSkeletonSize=Pt;exports.getStateTone=Xle;exports.getThemeCategoricalColors=Oo;exports.getYFormatSettings=Dr;exports.gridEntityTypeKeys=a0;exports.gridStateLabels=G2;exports.inchesToCentimeters=dF;exports.isActiveDeviceState=jp;exports.isActiveState=jp;exports.isCustomPinsLayer=Em;exports.isExportSupported=IP;exports.isFilterEmpty=rc;exports.isGeoJsonLayer=Rm;exports.isGridEntityTypeKey=YI;exports.isLightColor=Sf;exports.isNil=xe;exports.isRasterLayer=Mm;exports.isUnaryFilterOperator=Tx;exports.isVectorLayer=Pm;exports.kelvinToCelsius=nw;exports.kelvinToFahrenheit=DF;exports.kilometersToMiles=nF;exports.layer=km;exports.mapValuesToCategoricalColors=Ti;exports.metersToFeet=tF;exports.metersToMiles=iF;exports.metersToYards=cF;exports.milesToFeet=Of;exports.milesToKilometers=oF;exports.milesToMeters=sF;exports.multiSelectSearchKeys=Wm;exports.multiSelectSelectionEntries=ud;exports.parseBoolean=tn;exports.percentThresholdLevel=em;exports.pickEnergyUnit=_d;exports.prepareTableDataForExport=D5;exports.registerPhosphorIcon=pC;exports.removeFilterCondition=oa;exports.resolveValue=me;exports.shouldOfferLiteralOption=dd;exports.snakeCaseToWords=ig;exports.telemetryPresetRanges=ql;exports.temperatureStringToSymbol=Xf;exports.tierForViewport=Xl;exports.tileIndexAt=_1;exports.tileKey=vr;exports.tileReducer=Qh;exports.tilesForViewport=vn;exports.toA=Y4;exports.toActiveInactive=VS;exports.toAmps=js;exports.toBoolean=en;exports.toCelsius=qf;exports.toCentimeters=ZS;exports.toCheckmark=zS;exports.toCompactNumber=US;exports.toCurrency=If;exports.toCustomDateFormat=QS;exports.toDateString=XS;exports.toEnabledDisabled=FS;exports.toFahrenheit=jf;exports.toFeet=Xd;exports.toFloat=GS;exports.toFormattedNumber=WS;exports.toFullDateTime=jS;exports.toGW=wF;exports.toGWh=Wf;exports.toGigawatts=nu;exports.toISOString=qS;exports.toInches=$S;exports.toInteger=HS;exports.toKA=J4;exports.toKV=HF;exports.toKW=CF;exports.toKelvin=Qf;exports.toKiloamps=Ud;exports.toKilohms=Yf;exports.toKilometers=Jd;exports.toKilovolts=cu;exports.toKilowatts=ru;exports.toLowerCase=eg;exports.toMA=K4;exports.toMV=OF;exports.toMW=SF;exports.toMWh=Gf;exports.toMegawatts=ou;exports.toMegohms=Jf;exports.toMeters=Yd;exports.toMiles=jd;exports.toMilliamps=Wd;exports.toMillimeters=_S;exports.toMilliohms=iu;exports.toMillivolts=lu;exports.toNauticalMiles=eF;exports.toOhms=_s;exports.toOnOff=BS;exports.toPercentage=Df;exports.toRelativeTime=qs;exports.toScientificNotation=KS;exports.toSecret=sw;exports.toSentenceCase=tg;exports.toTemperature=Zf;exports.toTitleCase=rg;exports.toTrueFalse=OS;exports.toUpperCase=$f;exports.toV=zF;exports.toVolts=tl;exports.toW=vF;exports.toWatts=Zs;exports.toWh=Qd;exports.toYards=qd;exports.tokWh=Zd;exports.truncateEnd=el;exports.truncateMiddle=Fa;exports.truncateStart=$s;exports.typeRole=Rt;exports.typographyRole=go;exports.ucFirst=ng;exports.useBreakpoint=cr;exports.useChartContext=jn;exports.useChartExpand=Qn;exports.useChartHeaderMetrics=za;exports.useChartOwnsItsTitle=bg;exports.useClientDataControls=Ed;exports.useColorMode=Qt;exports.useComponentFormatter=z4;exports.useContainerBreakpoint=zb;exports.useDataControls=b0;exports.useDebounce=ln;exports.useElementSize=Ja;exports.useInfiniteScroll=an;exports.useInputFocus=fr;exports.useLocalStorage=Jc;exports.useMapStyleOverride=fi;exports.useMediaQuery=lr;exports.useNotice=vC;exports.useServerDataControls=Md;exports.useTableExport=v0;exports.useTileWindow=ox;exports.useTiledTimeSeries=Ap;exports.useWizard=x5;exports.wrapWithLink=Po;exports.yardsToMeters=lF;//# sourceMappingURL=index.cjs.map
|
|
49
|
+
`).map((B,S)=>jsxRuntime.jsxs(_e__namespace.default.Fragment,{children:[B,S<U.split(`
|
|
50
|
+
`).length-1&&jsxRuntime.jsx("br",{})]},`line-${J}-${S}`)):U}):null;return jsxRuntime.jsx("div",{className:"group flex flex-col",children:jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(Xe,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(St,{children:jsxRuntime.jsx("div",{ref:N,contentEditable:!d,suppressContentEditableWarning:true,onInput:O=>{if(d)return;let U=O.target,J=U.querySelector("[data-chip-id]")!==null,G;if(J?(G=A(U),G=G.replace(/(\{\{[^}]+\}\})\s{2,}/g,"$1 ").replace(/\s{2,}(\{\{[^}]+\}\})/g," $1")):G=U.textContent||"",G===""){try{let x=document.createRange();x.selectNodeContents(U),x.collapse(!0);let L=window.getSelection();L?.removeAllRanges(),L?.addRange(x),k.current=0;}catch{}H("",0);return}if(G===m)return;let B=window.getSelection(),S=0;if(B&&B.rangeCount>0)try{let x=B.getRangeAt(0);if(J){let L=0,I=!1,q=ne=>{if(I)return !0;if(ne===x.startContainer)return L+=x.startOffset,I=!0,!0;if(ne.nodeType===Node.TEXT_NODE){if(!ne.parentElement?.closest("[data-chip-id]")){if(ne.contains(x.startContainer))return L+=x.startOffset,I=!0,!0;L+=(ne.textContent||"").length;}}else if(ne.nodeType===Node.ELEMENT_NODE){let ae=ne;if(ae.hasAttribute("data-chip-id")){if(ae.contains(x.startContainer)||ae===x.startContainer){let ie=ae.getAttribute("data-chip-id");return L+=`{{${ie}}}`.length,I=!0,!0}let $=ae.getAttribute("data-chip-id");return L+=`{{${$}}}`.length,!1}else if(ae.tagName==="BR")return ae===x.startContainer?(I=!0,!0):(L+=1,!1)}for(let ae=0;ae<ne.childNodes.length;ae++)if(q(ne.childNodes[ae]))return !0;return !1};q(U),S=L;}else {let L=document.createRange();L.setStart(U,0),L.setEnd(x.startContainer,x.startOffset),S=L.toString().length;}}catch{S=G.length;}k.current=S,H(G,S);},onKeyDown:O=>{if(d)return;let U=window.getSelection();if(!(!U||U.rangeCount===0))try{let J=U.getRangeAt(0),G=J.commonAncestorContainer;if(O.key==="ArrowLeft"||O.key==="ArrowRight"){let B=G.nodeType===Node.TEXT_NODE?G.parentElement?.closest("[data-chip-id]"):G.closest("[data-chip-id]");if(B){O.preventDefault();try{let S=document.createRange(),x=window.getSelection();O.key==="ArrowLeft"?S.setStartBefore(B):S.setStartAfter(B),S.collapse(!0),x?.removeAllRanges(),x?.addRange(S);}catch{}}}if(O.key==="Backspace"){let B=null;if(B=(G.nodeType===Node.TEXT_NODE?G.parentElement?.closest("[data-chip-id]"):G.closest("[data-chip-id]"))||null,!B)if(G.nodeType===Node.TEXT_NODE){let S=G;if(J.startOffset===0&&S.parentElement){let x=S.previousSibling;if(x&&x.nodeType===Node.ELEMENT_NODE){let L=x.closest("[data-chip-id]");L&&(B=L);}}}else {let S=G;if(J.startOffset>0){let x=S.childNodes[J.startOffset-1];if(x&&x.nodeType===Node.ELEMENT_NODE){let L=x.closest("[data-chip-id]");L&&(B=L);}}}if(B){O.preventDefault(),O.stopPropagation();let S=B.getAttribute("data-chip-id");if(!S)return;let x=`{{${S}}}`,L=m.indexOf(x);if(L!==-1){let I=m.slice(0,L)+m.slice(L+x.length),q=g.filter(ne=>ne.id!==S);k.current=L;try{window.getSelection()?.removeAllRanges();}catch{}f?.(q),p?.(I);}}}}catch{}},onFocus:O=>{d||(w.onFocus&&w.onFocus(O),P(O));},onBlur:O=>{d||(w.onBlur&&w.onBlur(O),E(O));},className:F(),style:{whiteSpace:"pre-wrap",wordBreak:"break-word",...w.style},"data-placeholder":w.placeholder,children:X()},m===""?"empty":"content")}),t&&jsxRuntime.jsx(ke,{size:o,className:"mt-3",children:t}),typeof r=="string"&&jsxRuntime.jsx(xe,{size:o,className:"mt-1",children:r}),typeof r=="function"&&u&&jsxRuntime.jsx(xe,{size:o,className:"mt-1",children:r(u)})]})})}function EI({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 $C({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,isDisabled:i,isInvalid:s,reserveErrorSpace:d=true,validationResult:l,className:c,descriptionPlacement:u="below",...m}){return jsxRuntime.jsxs(reactAriaComponents.TimeField,{...m,isDisabled:i,isRequired:a,isInvalid:s,className:Ae(c,"flex flex-col gap-1"),children:[e&&jsxRuntime.jsx(Xe,{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(un({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:EI({isPlaceholder:p.isPlaceholder,isDisabled:!p.isEditable||i,size:o})})})}),d?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(xe,{size:o,children:r}):typeof r=="function"&&l?jsxRuntime.jsx(xe,{size:o,children:r(l)}):t&&u==="below"?jsxRuntime.jsx(ke,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(xe,{size:o,className:"mt-1",children:r}):typeof r=="function"&&l?jsxRuntime.jsx(xe,{size:o,className:"mt-1",children:r(l)}):t&&u==="below"?jsxRuntime.jsx(ke,{size:o,className:"mt-1",children:t}):null})]})}function e0({children:e,className:t=""}){return jsxRuntime.jsx("div",{className:`flex flex-col ${t}`.trim(),role:"list",children:e})}function t0({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(z,{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 II(e){return "primary"}var FI="flex font-medium justify-center items-center gap-2 text-center transition whitespace-nowrap box-border",r0={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]"}},BI="opacity-[--control-hover-opacity] cursor-not-allowed pointer-events-none grayscale",VI="opacity-100 cursor-pointer",OI={"top-right":"-right-2 -top-2","top-left":"-left-2 -top-2","bottom-right":"-right-2 -bottom-2","bottom-left":"-left-2 -bottom-2"},zI={primary:"bg-action-primary text-[color:var(--color-action-primary-text)]",destructive:"bg-feedback-error-border text-text-inverse"};function HI(e){let{variant:t="primary",size:r="md",isDisabled:o,isSelected:n,borderRadius:a,borderRight:i,borderLeft:s}=e,d=II(),l=`${FI} ${n?r0[d].selected:r0[d].unselected}`;return l+=` ${Ye[r].text} ${Ye[r].height} ${Ye[r].padding} ${Ye[r].gap}`,l+=` ${o?BI:VI}`,a==="left"&&(l+=" rounded-l-sm"),a==="right"&&(l+=" rounded-r-sm"),i&&(l+=" border-r"),s&&(l+=" border-l"),l+=` ${rt()}`,(l+=" focus-visible:outline-action-primary"),tailwindMerge.twMerge(l)}function n0(e){let{className:t,children:r,onPress:o,icon:n,iconPosition:a="left",iconWeight:i,isLoading:s=false,loadingText:d,loadingIndicator:l,size:c="md",badgeNumber:u,badgeVariant:m="primary",badgePosition:p="top-right",...g}=e,f=n?jsxRuntime.jsx(z,{name:n,size:c,weight:i}):null,h=()=>{let v=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:l||jsxRuntime.jsx(z,{name:"CircleNotch",size:c,className:"animate-spin","aria-hidden":"true"})}),jsxRuntime.jsx("div",{className:"invisible","aria-hidden":"true",children:v}),d&&jsxRuntime.jsx("span",{className:"sr-only",role:"status","aria-live":"polite",children:d})]}):v},b=jsxRuntime.jsx(reactAriaComponents.ToggleButton,{onPress:o,...g,className:tailwindMerge.twMerge(HI(e),t),"aria-busy":s,children:h()});return u&&u>0?jsxRuntime.jsxs("div",{className:"relative",children:[b,jsxRuntime.jsx("span",{className:`absolute ${OI[p]} flex h-5 w-5 items-center justify-center rounded-full ${zI[m]} text-xs`,"aria-label":`${u} items`,children:u})]}):b}var WI={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"}},UI={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}},KI=["energized","customerName","gs_max_continuous_current"],YI=["MOTOR.voltage"],JI=[{key:"total_kvar",label:"Rated kvar",format:{type:"power",unit:"kvar",decimals:1}}],XI=[{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:[]},en={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"}},a0=Object.freeze(Object.keys(en).filter(e=>en[e].category==="grid")),jI=new Set(a0);function qI(e){return typeof e=="string"&&jI.has(e)}var QI={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 Ed(e){return en[e]}function ZI(e){return en[e].icon}function _I(e,t=false){return t?en[e].label.plural:en[e].label.singular}function $I(e){return en[e].category}var e5={min:2,max:4};function t5(e){let t=en[e];if(!t)throw new Error(`archetypeFor: unknown entity type "${String(e)}"`);return t.archetype}function r5(e){return Ed(e).detailPage}function o5(e){return (Ed(e).fields?.headlineMetrics.length??0)>0}function i0(e){return Ed(e).properties?.statList??[]}function n5(e){return i0(e).length>0}function a5({formId:e="dialog-form",onSubmit:t,primaryLabel:r="Save",secondaryLabel:o="Cancel",onCancel:n,primaryVariant:a,secondaryVariant:i="secondary",children:s,title:d,...l}){return jsxRuntime.jsx(fr,{title:d,primaryAction:{label:r,onPress:()=>{let u=document.getElementById(e);u&&u.requestSubmit();},variant:a},secondaryAction:n?{label:o,onPress:n,variant:i}:void 0,...l,children:jsxRuntime.jsx(ui,{id:e,onSubmit:t,children:s})})}function i5({formId:e="drawer-form",onSubmit:t,primaryLabel:r="Save",secondaryLabel:o="Cancel",onCancel:n,primaryVariant:a,secondaryVariant:i="secondary",children:s,...d}){return jsxRuntime.jsx(gs,{primaryAction:{label:r,onPress:()=>{let c=document.getElementById(e);c&&c.requestSubmit();},variant:a},secondaryAction:n?{label:o,onPress:n,variant:i}:void 0,...d,children:jsxRuntime.jsx(ui,{id:e,onSubmit:t,className:"mt-2",children:s})})}function l5({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 u5={sm:"gap-2",md:"gap-4",lg:"gap-6"};function p5(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 m5({cols:e={base:1},gap:t="lg",className:r,...o}){return jsxRuntime.jsx("div",{...o,className:tailwindMerge.twMerge("grid",p5(e),u5[t],r)})}function b5({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(mr,{tag:"h3",size:"sm",children:e}):e,t?jsxRuntime.jsx(ke,{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 h5(){return jsxRuntime.jsx("hr",{className:"border-border-muted"})}function x5({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,d=i<n,l=r&&(d||s);return jsxRuntime.jsxs("li",{className:"relative flex flex-col items-center",style:{flex:`1 1 ${100/e.length}%`},children:[jsxRuntime.jsx("button",{type:"button",disabled:!l,onClick:()=>l&&r?.(a.id),className:tailwindMerge.twMerge("relative z-10 flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-full border-2 transition-colors bg-background-body",d&&"border-action-primary bg-action-primary text-text-inverse hover:bg-action-primary/90",s&&"border-action-primary bg-background-body text-action-primary",!d&&!s&&"border-border-default bg-background-body text-text-secondary",l&&"cursor-pointer",!l&&"cursor-default"),"aria-current":s?"step":void 0,children:d?jsxRuntime.jsx(z,{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",d&&"text-text-primary",!s&&!d&&"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 v5({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 _e__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 S5({steps:e,initialStepId:t,canNavigate:r}){if(e.length===0)throw new Error("useWizard: steps array cannot be empty");let[o,n]=_e__namespace.useState(t||e[0].id),a=e.findIndex(u=>u.id===o),i=a>0,s=a<e.length-1,d=async u=>u===o?true:r&&!await r(o,u)?false:(n(u),true);return {steps:e,currentStepId:o,setCurrentStepId:d,next:async()=>!s||a===-1?false:d(e[a+1].id),prev:async()=>!i||a===-1?false:d(e[a-1].id),hasNext:s,hasPrev:i,stepIndex:a}}function Ws(e,t){return t.split(".").reduce((r,o)=>r?.[o],e)}function f0(e){return e==null?true:Array.isArray(e)?e.length===0:typeof e=="string"?e.trim()==="":false}function N5(e,t){let r=Ws(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 f0(r);case "isNotEmpty":return !f0(r);default:return false}}function g0(e,t){if(t.conditions.length===0)return true;let r=t.conditions.map(o=>"conditions"in o?g0(e,o):N5(e,o));return t.logic==="AND"?r.every(Boolean):r.some(Boolean)}function T5(e,t){return !t||t.conditions.length===0?e:e.filter(r=>g0(r,t))}function k5(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 P5(e,t){return t?[...e].sort((r,o)=>{let n=Ws(r,t.field),a=Ws(o,t.field);return k5(n,a,t.direction)}):e}function R5(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 w5__default.default(e,{keys:o,threshold:a,ignoreLocation:true,includeScore:true}).search(r).map(l=>l.item);let i=r.toLowerCase();return e.filter(s=>o.some(d=>{let l=Ws(s,d);return l==null?false:String(l).toLowerCase().includes(i)}))}function E5(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=Ws(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 nf({data:e,filters:t,sort:r,search:o,facetConfigs:n=[]}){let a=R5(e,o||null);a=T5(a,t||null);let i=E5(a,n);return a=P5(a,r||null),{data:a,facetCounts:i,resultCount:a.length}}function Ld({data:e,filters:t,sort:r,search:o,facetConfigs:n=[]}){return _e.useMemo(()=>nf({data:e,filters:t,sort:r,search:o,facetConfigs:n}),[e,t,r,o,n])}function Dd({filters:e,sort:t,search:r,onStateChange:o,searchDebounce:n=300}){let a=dn(r,n),i=_e.useRef(true);_e.useEffect(()=>{if(i.current){i.current=false;return}o({filters:e,sort:t,search:a});},[e,t,a,o]);}function b0(e){return e.mode==="client"?Ld({data:e.data,filters:e.filters,sort:e.sort,search:e.search,facetConfigs:e.facetConfigs}):(Dd({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 h0=mf(hp());function I5(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 af(e){return /^[=+\-@\t\r]/.test(e)?`'${e}`:e}function F5(e,t){return t.accessor?typeof t.accessor=="function"?t.accessor(e):e[t.accessor]:null}function x0(e,t){let r=F5(t,e);if(e.exportValue){let o=e.exportValue(r,t);return o==null?"":typeof o=="string"?af(o):o}return r==null?"":r instanceof Date?r.toISOString():typeof r=="object"?af(JSON.stringify(r)):typeof r=="string"?af(r):r}function sf(e){return e.filter(t=>t.exportable!==false)}function y0(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 lf(e){let{columns:t,data:r,metadata:o={}}=e;try{let n=sf(t);if(n.length===0)throw new Error("No exportable columns found");y0(n);let a=r.map(l=>{let c={};for(let u of n){let m=u.exportLabel||u.label;c[m]=x0(u,l);}return c}),i=MP__default.default.unparse(a,{header:!0,skipEmptyLines:!0}),s=new Blob([i],{type:"text/csv;charset=utf-8;"}),d=I5(o.filename||"table-data","csv",o.timestamp!==!1);(0,h0.saveAs)(s,d);}catch(n){throw new Error(`CSV export failed: ${n instanceof Error?n.message:"Unknown error"}`)}}function B5(e){let{columns:t,data:r}=e,o=sf(t);return y0(o),r.map(n=>{let a={};for(let i of o){let s=i.exportLabel||i.label;a[s]=x0(i,n);}return a})}function V5(e){return sf(e).map(t=>t.exportLabel||t.label)}function v0({columns:e,data:t,metadata:r}){let n=e.filter(d=>d.exportable!==false).length>0&&t.length>0,[a,i]=_e.useState(false);return {exportCSV:_e.useCallback(async()=>{i(true);try{await lf({columns:e,data:t,metadata:r});}catch(d){throw console.error("Table export failed:",d),d}finally{i(false);}},[e,t,r]),canExport:n,isExporting:a}}function $le(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=KI;exports.ActionCell=Fx;exports.ActionMenu=Ka;exports.ActivityFeed=Lu;exports.ActivityFeedGroup=dl;exports.ActivityItem=ul;exports.Alert=zg;exports.AppShell=jg;exports.AreaSeries=vn;exports.AutoMobileRenderer=Pc;exports.Autocomplete=vl;exports.Avatar=Go;exports.BREAKPOINTS=Fn;exports.Badge=gt;exports.BadgeCell=Vx;exports.Banner=Sl;exports.BarSeries=Il;exports.BooleanCell=Ox;exports.BrandProvider=Nf;exports.BreadcrumbItem=Nl;exports.Breadcrumbs=wl;exports.Button=te;exports.CATEGORICAL_RAMP=td;exports.CATEGORY_COLOR_TOKENS=zx;exports.CATEGORY_NEUTRAL_COLOR=uc;exports.CHART_HEADER_HEIGHT=yu;exports.COLOR_RAMPS=Ts;exports.CUSTOM_ICON_REGISTRY=Aa;exports.Calendar=qa;exports.Card=$e;exports.CardContent=wu;exports.CardFooter=Nu;exports.CardHeader=nl;exports.CardMedia=Su;exports.CardMobileRenderer=Rc;exports.CarouselAutoplayTrigger=wb;exports.CarouselControl=yb;exports.CarouselIndicator=_u;exports.CarouselIndicatorGroup=Sb;exports.CarouselItem=xb;exports.CarouselItemGroup=hb;exports.CarouselNextTrigger=Cb;exports.CarouselPrevTrigger=vb;exports.CarouselProgressText=Nb;exports.CarouselRoot=bb;exports.CategoryBarChart=ih;exports.CategoryCell=Gx;exports.ChartAxis=Xr;exports.ChartBottomBar=ri;exports.ChartContainer=Ph;exports.ChartContext=Jr;exports.ChartEventMarkers=Wl;exports.ChartEventSpans=Ul;exports.ChartExpandOwnedByAncestor=Sp;exports.ChartHeader=Wa;exports.ChartLabelledBy=sn;exports.ChartOwnsItsTitle=yg;exports.ChartTooltip=Co;exports.Checkbox=eo;exports.CheckboxGroup=$u;exports.Chip=Yr;exports.ChipInputField=Lb;exports.ClearButton=Hi;exports.CodeEditor=Ib;exports.Collapse=Qa;exports.CollapseContent=xn;exports.CollapseHeader=hn;exports.CollapseItem=bn;exports.ColorField=Mk;exports.ColorModeProvider=If;exports.CommandPalette=Ay;exports.Confirm=Hb;exports.ConnectionStatusBadge=Gb;exports.ContactCard=Wb;exports.ContactMetaCell=Ux;exports.ContactMetaDisplay=El;exports.ContainerQueryProvider=Yb;exports.CopyToClipboard=pn;exports.CustomCell=Kx;exports.DEFAULT_CHART_HEIGHT=kh;exports.DEFAULT_MAP_TYPE=ld;exports.DIVERGING_RAMPS=ed;exports.DataControls=Sx;exports.DataTable=Cy;exports.DateCell=Yx;exports.DateField=Rx;exports.DateRangePicker=ac;exports.DeltaCell=Jx;exports.Description=ke;exports.DeviceHealthBadge=wy;exports.DeviceMetaCell=jx;exports.DeviceMetaDisplay=fc;exports.DeviceStateBadge=la;exports.DeviceStateCell=Zx;exports.DeviceStateWithMetric=hc;exports.DeviceTypeIcon=Ty;exports.Dialog=fr;exports.DialogForm=a5;exports.DialogHeader=or;exports.Drawer=gs;exports.DrawerForm=i5;exports.ENTITY_CATEGORY_CONFIG=UI;exports.ENTITY_CONFIG=en;exports.EmptyState=Ql;exports.EnrollmentStatusBadge=Py;exports.ErrorBoundary=$r;exports.FieldError=xe;exports.FieldGroup=Zg;exports.FileUpload=Ey;exports.FilterChips=wx;exports.FilterDialog=Dx;exports.FirmwareVersionBadge=Ly;exports.Form=ui;exports.FormActions=l5;exports.FormDivider=h5;exports.FormGrid=m5;exports.FormSection=b5;exports.FormStepper=x5;exports.FormatRegistry=le;exports.FormattedCell=$x;exports.FunnelSeries=Lh;exports.GRID_ELEMENT_TYPE_BY_ENTITY=QI;exports.GRID_STATE_COLORS=WI;exports.GRID_STAT_LIST=lt;exports.GRID_STAT_LIST_CAPACITOR_PER_PHASE_KVAR=XI;exports.GRID_STAT_LIST_CAPACITOR_TOTAL_KVAR=JI;exports.GlobalSearch=By;exports.Grid=mm;exports.GridStateBadge=bc;exports.HEADLINE_METRIC_BOUNDS=e5;exports.Heading=mr;exports.HierarchyExplorer=dv;exports.HorizontalBarCell=tm;exports.HoverCard=yL;exports.Icon=z;exports.IndexCell=ry;exports.InfiniteScrollIndicator=Ur;exports.Input=hl;exports.InputWrapper=St;exports.InteractiveMap=Es;exports.Kpi=bv;exports.KpiGroup=Cm;exports.Label=Xe;exports.LineSeries=_n;exports.List=Sv;exports.ListBox=zL;exports.ListBoxItem=br;exports.ListItem=Nv;exports.ListPane=Tv;exports.Loader=Wr;exports.Logo=Ja;exports.MAP_TYPES=cC;exports.MapStyleProvider=lC;exports.Meter=fC;exports.MiniBarCell=rm;exports.ModalBackdrop=Pr;exports.MultiSelect=bC;exports.Notice=xd;exports.NoticeContainer=yd;exports.NoticeProvider=xC;exports.NumberCell=ay;exports.NumberField=cs;exports.PageBanner=lb;exports.PageLayout=Na;exports.PercentBarCell=am;exports.PieChart=Fh;exports.PlaceSearch=kC;exports.Popover=vt;exports.ProgressBar=RC;exports.Prose=EC;exports.Radio=IC;exports.RadioCard=MC;exports.RadioCardGroup=LC;exports.RadioGroup=AC;exports.RangeCalendar=ii;exports.RangeCell=ly;exports.ResultsCount=as;exports.RichTextEditor=VC;exports.SEQUENTIAL_RAMPS=$c;exports.SKELETON_SIZES=kn;exports.SOURCE_UNIT_TO_WH=tu;exports.SaveBar=v5;exports.SearchControl=na;exports.SearchEmptyState=Vy;exports.SearchLoadingState=zy;exports.SearchResultGroup=Gy;exports.SearchResultItem=Wy;exports.SearchResultsList=Uy;exports.SearchTrigger=Yy;exports.Section=Ci;exports.SectionNav=Cd;exports.SegmentedControl=$l;exports.Select=Ho;exports.SelectCell=Sc;exports.SideNav=ml;exports.SiteCard=OC;exports.SiteContactCard=HC;exports.SiteMetaCell=dy;exports.SiteMetaDisplay=wc;exports.Skeleton=j;exports.Slider=GC;exports.SortControl=is;exports.SparklineCell=im;exports.SplitPane=Rd;exports.StackNav=Xa;exports.StatList=Vc;exports.StaticMap=vi;exports.Switch=ic;exports.Tab=kd;exports.TabList=Td;exports.TabPanel=wC;exports.Tabs=Nd;exports.TextArea=XC;exports.TextAreaWithChips=ZC;exports.TextCell=fy;exports.TextField=qr;exports.TextLink=pt;exports.TiledTimeSeriesChart=jl;exports.TiledTimeSeriesExplorer=xx;exports.TimeControls=ec;exports.TimeField=$C;exports.Timeline=e0;exports.TimelineItem=t0;exports.ToggleButton=n0;exports.Tooltip=Zt;exports.TopNav=zi;exports.Tray=Ct;exports.UNARY_FILTER_OPERATORS=Nx;exports.UNARY_OPERATOR_LABELS=kx;exports.UNVERIFIED_VOLTAGE_UNIT_ROWS=YI;exports.UnsavedChangesPrompt=C5;exports.activeDeviceStates=W2;exports.addFilterCondition=Tn;exports.applyDataOperations=nf;exports.archetypeFor=t5;exports.assembleSeries=_h;exports.autoScaleCurrent=JS;exports.autoScaleDistance=Uf;exports.autoScaleEnergy=Xf;exports.autoScalePower=ew;exports.autoScaleResistance=tw;exports.autoScaleVoltage=lw;exports.baselineFromPoint=uP;exports.camelCaseToWords=cg;exports.capitalize=sg;exports.celsiusToFahrenheit=rw;exports.celsiusToKelvin=IF;exports.centimetersToInches=gF;exports.classicPresetRanges=ix;exports.clearColorCache=Xs;exports.createCategoryColorMap=RS;exports.createEmptyFilter=ss;exports.createFilter=$R;exports.createFilters=e2;exports.createFormat=s3;exports.createTextureIcon=ft;exports.createTiledCameraSyncGroup=Bh;exports.createXScale=pp;exports.createYScale=Ji;exports.csvUnitFor=mu;exports.csvValueFor=pg;exports.defaultMargin=Ke;exports.defaultMultiSelectMatcher=Ym;exports.deltaDirectionFromValue=Zp;exports.deviceStateLabels=U2;exports.deviceStateMetricFormats=BX;exports.emptyStore=Ip;exports.entityHasDetailPage=r5;exports.entityHasStatList=n5;exports.entityShowsNow=o5;exports.enumToSentenceCase=iw;exports.exportChart=yp;exports.exportTableAsCSV=lf;exports.fahrenheitToCelsius=ow;exports.fahrenheitToKelvin=FF;exports.feetToMeters=iF;exports.feetToMiles=cF;exports.filterMultiSelectOptions=ud;exports.filterToChips=t2;exports.formatBoolean=Ff;exports.formatCapacity=O4;exports.formatComponentValue=fo;exports.formatCurrency=Hf;exports.formatCurrent=Jd;exports.formatDate=Gf;exports.formatDistance=Kf;exports.formatEmptyValue=cc;exports.formatEnergy=ru;exports.formatFieldValue=Rr;exports.formatInternationalPhone=ou;exports.formatNumber=zf;exports.formatPercent=Vf;exports.formatPhone=jf;exports.formatPhoneNumber=Ba;exports.formatPower=su;exports.formatPowerRating=z4;exports.formatResistance=cu;exports.formatTemperature=rg;exports.formatText=ug;exports.formatUSPhone=_s;exports.formatVoltage=pu;exports.getBadgeClasses=Ax;exports.getBooleanBadgeVariant=Ix;exports.getCellAlignmentClasses=qp;exports.getCellContainerClasses=we;exports.getCellTextClasses=wr;exports.getColorRamp=Bm;exports.getColorRampsByKind=Vm;exports.getContrastingTextColor=ES;exports.getDateParts=eF;exports.getDefaultChartColor=Pi;exports.getDefaultColors=js;exports.getDeviceStateDisplayLabel=$p;exports.getDeviceStateLabel=$p;exports.getEntityCategory=$I;exports.getEntityConfig=Ed;exports.getEntityIcon=ZI;exports.getEntityLabel=_I;exports.getEntityStatList=i0;exports.getEventColor=Uo;exports.getExportFormatName=FP;exports.getExportHeaders=V5;exports.getFieldGroupStyles=DN;exports.getFilterFields=ia;exports.getGridStateLabel=Qx;exports.getInputBackgroundStyles=Qg;exports.getInputBaseStyles=Gt;exports.getInputStateStyles=un;exports.getLinkClasses=Qp;exports.getNumericColorClasses=dc;exports.getResolvedColor=Ot;exports.getSkeletonSize=Tt;exports.getStateTone=$le;exports.getThemeCategoricalColors=Oo;exports.getYFormatSettings=Ar;exports.gridEntityTypeKeys=a0;exports.gridStateLabels=Y2;exports.hasTileData=ra;exports.inchesToCentimeters=fF;exports.isActiveDeviceState=_p;exports.isActiveState=_p;exports.isCustomPinsLayer=Am;exports.isExportSupported=IP;exports.isFilterEmpty=nc;exports.isGeoJsonLayer=Dm;exports.isGridEntityTypeKey=qI;exports.isLightColor=kf;exports.isNil=he;exports.isRasterLayer=Im;exports.isUnaryFilterOperator=Tx;exports.isVectorLayer=Lm;exports.kelvinToCelsius=nw;exports.kelvinToFahrenheit=BF;exports.kilometersToMiles=lF;exports.layer=Mm;exports.mapValuesToCategoricalColors=Ri;exports.metersToFeet=aF;exports.metersToMiles=dF;exports.metersToYards=mF;exports.milesToFeet=Wf;exports.milesToKilometers=sF;exports.milesToMeters=uF;exports.multiSelectSearchKeys=Jm;exports.multiSelectSelectionEntries=md;exports.parseBoolean=on;exports.percentThresholdLevel=nm;exports.pickEnergyUnit=eu;exports.prepareTableDataForExport=B5;exports.registerPhosphorIcon=pC;exports.removeFilterCondition=aa;exports.resolveValue=me;exports.shouldOfferLiteralOption=pd;exports.snakeCaseToWords=dg;exports.telemetryPresetRanges=Zl;exports.temperatureStringToSymbol=Zf;exports.tierForViewport=ql;exports.tileIndexAt=_1;exports.tileKey=$t;exports.tileReducer=$h;exports.tilesForViewport=Yo;exports.toA=q4;exports.toActiveInactive=VS;exports.toAmps=Qs;exports.toBoolean=rn;exports.toCelsius=$f;exports.toCentimeters=ZS;exports.toCheckmark=zS;exports.toCompactNumber=US;exports.toCurrency=Of;exports.toCustomDateFormat=QS;exports.toDateString=XS;exports.toEnabledDisabled=FS;exports.toFahrenheit=_f;exports.toFeet=qd;exports.toFloat=GS;exports.toFormattedNumber=WS;exports.toFullDateTime=jS;exports.toGW=PF;exports.toGWh=Jf;exports.toGigawatts=iu;exports.toISOString=qS;exports.toInches=$S;exports.toInteger=HS;exports.toKA=Q4;exports.toKV=KF;exports.toKW=TF;exports.toKelvin=eg;exports.toKiloamps=Yd;exports.toKilohms=qf;exports.toKilometers=jd;exports.toKilovolts=uu;exports.toKilowatts=nu;exports.toLowerCase=ng;exports.toMA=j4;exports.toMV=WF;exports.toMW=kF;exports.toMWh=Yf;exports.toMegawatts=au;exports.toMegohms=Qf;exports.toMeters=Xd;exports.toMiles=Qd;exports.toMilliamps=Kd;exports.toMillimeters=_S;exports.toMilliohms=lu;exports.toMillivolts=du;exports.toNauticalMiles=nF;exports.toOhms=el;exports.toOnOff=BS;exports.toPercentage=Bf;exports.toRelativeTime=Zs;exports.toScientificNotation=KS;exports.toSecret=sw;exports.toSentenceCase=ag;exports.toTemperature=tg;exports.toTitleCase=ig;exports.toTrueFalse=OS;exports.toUpperCase=og;exports.toV=UF;exports.toVolts=ol;exports.toW=NF;exports.toWatts=$s;exports.toWh=_d;exports.toYards=Zd;exports.tokWh=$d;exports.truncateEnd=rl;exports.truncateMiddle=Va;exports.truncateStart=tl;exports.typeRole=Pt;exports.typographyRole=go;exports.ucFirst=lg;exports.useBreakpoint=dr;exports.useChartContext=qn;exports.useChartExpand=Zn;exports.useChartHeaderMetrics=Ga;exports.useChartOwnsItsTitle=vg;exports.useClientDataControls=Ld;exports.useColorMode=Qt;exports.useComponentFormatter=U4;exports.useContainerBreakpoint=Ub;exports.useDataControls=b0;exports.useDebounce=dn;exports.useElementSize=ja;exports.useInfiniteScroll=ln;exports.useInputFocus=gr;exports.useLocalStorage=jc;exports.useMapStyleOverride=hi;exports.useMediaQuery=cr;exports.useNotice=vC;exports.useServerDataControls=Dd;exports.useTableExport=v0;exports.useTileWindow=nx;exports.useTiledTimeSeries=Bp;exports.useWizard=S5;exports.wrapWithLink=Po;exports.yardsToMeters=pF;//# sourceMappingURL=index.cjs.map
|
|
51
51
|
//# sourceMappingURL=index.cjs.map
|