@texturehq/edges 2.3.0 → 2.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,7 +1,5 @@
1
- 'use strict';var reactAriaComponents=require('react-aria-components'),He=require('react'),zw=require('papaparse'),luxon=require('luxon'),jw=require('fuse.js'),reactVirtual=require('@tanstack/react-virtual'),jsxRuntime=require('react/jsx-runtime'),tailwindMerge=require('tailwind-merge'),Gb=require('@phosphor-icons/react'),uN=require('@phosphor-icons/react/ssr'),reactStately=require('react-stately'),lucideReact=require('lucide-react'),framerMotion=require('framer-motion'),GP=require('react-ace'),reactColorful=require('react-colorful'),curve=require('@visx/curve'),shape=require('@visx/shape'),gradient=require('@visx/gradient'),scale=require('@visx/scale'),d3Array=require('d3-array'),axis=require('@visx/axis'),responsive=require('@visx/responsive'),zoom=require('@visx/zoom'),brush=require('@visx/brush'),pattern=require('@visx/pattern'),core=require('@dnd-kit/core'),sortable=require('@dnd-kit/sortable'),utilities=require('@dnd-kit/utilities'),reactDom=require('react-dom'),FA=require('react-map-gl'),server=require('react-dom/server'),KI=require('@tiptap/extension-link'),react=require('@tiptap/react'),menus=require('@tiptap/react/menus'),JI=require('@tiptap/starter-kit');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 He__namespace=/*#__PURE__*/_interopNamespace(He);var zw__default=/*#__PURE__*/_interopDefault(zw);var jw__default=/*#__PURE__*/_interopDefault(jw);var Gb__namespace=/*#__PURE__*/_interopNamespace(Gb);var uN__namespace=/*#__PURE__*/_interopNamespace(uN);var GP__default=/*#__PURE__*/_interopDefault(GP);var FA__default=/*#__PURE__*/_interopDefault(FA);var KI__default=/*#__PURE__*/_interopDefault(KI);var JI__default=/*#__PURE__*/_interopDefault(JI);var tw=Object.create;var hu=Object.defineProperty;var rw=Object.getOwnPropertyDescriptor;var ow=Object.getOwnPropertyNames;var nw=Object.getPrototypeOf,aw=Object.prototype.hasOwnProperty;var iw=(e,t,r)=>t in e?hu(e,t,{enumerable:true,configurable:true,writable:true,value:r}):e[t]=r;var Er=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var sw=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of ow(t))!aw.call(e,n)&&n!==r&&hu(e,n,{get:()=>t[n],enumerable:!(o=rw(t,n))||o.enumerable});return e};var ml=(e,t,r)=>(r=e!=null?tw(nw(e)):{},sw(t||!e||!e.__esModule?hu(r,"default",{value:e,enumerable:true}):r,e));var ji=(e,t,r)=>iw(e,typeof t!="symbol"?t+"":t,r);var Cu=Er((yu,vu)=>{(function(e,t){typeof define=="function"&&define.amd?define([],t):typeof yu<"u"?t():(t(),e.FileSaver={});})(yu,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",p=/constructor/i.test(n.HTMLElement)||n.safari,m=/CriOS\/[\d]+/.test(navigator.userAgent);if((m||u&&p||a)&&typeof FileReader<"u"){var g=new FileReader;g.onloadend=function(){var b=g.result;b=m?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,x=f.createObjectURL(s);d?d.location=x:location.href=x,d=null,setTimeout(function(){f.revokeObjectURL(x);},4e4);}});n.saveAs=i.saveAs=i,typeof vu<"u"&&(vu.exports=i);});});var ey=Er(Ke=>{var Et=typeof Symbol=="function"&&Symbol.for,Lm=Et?Symbol.for("react.element"):60103,Am=Et?Symbol.for("react.portal"):60106,hc=Et?Symbol.for("react.fragment"):60107,yc=Et?Symbol.for("react.strict_mode"):60108,vc=Et?Symbol.for("react.profiler"):60114,Cc=Et?Symbol.for("react.provider"):60109,Sc=Et?Symbol.for("react.context"):60110,Im=Et?Symbol.for("react.async_mode"):60111,wc=Et?Symbol.for("react.concurrent_mode"):60111,Tc=Et?Symbol.for("react.forward_ref"):60112,Nc=Et?Symbol.for("react.suspense"):60113,wR=Et?Symbol.for("react.suspense_list"):60120,kc=Et?Symbol.for("react.memo"):60115,Pc=Et?Symbol.for("react.lazy"):60116,TR=Et?Symbol.for("react.block"):60121,NR=Et?Symbol.for("react.fundamental"):60117,kR=Et?Symbol.for("react.responder"):60118,PR=Et?Symbol.for("react.scope"):60119;function Cr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Lm:switch(e=e.type,e){case Im:case wc:case hc:case vc:case yc:case Nc:return e;default:switch(e=e&&e.$$typeof,e){case Sc:case Tc:case Pc:case kc:case Cc:return e;default:return t}}case Am:return t}}}function _h(e){return Cr(e)===wc}Ke.AsyncMode=Im;Ke.ConcurrentMode=wc;Ke.ContextConsumer=Sc;Ke.ContextProvider=Cc;Ke.Element=Lm;Ke.ForwardRef=Tc;Ke.Fragment=hc;Ke.Lazy=Pc;Ke.Memo=kc;Ke.Portal=Am;Ke.Profiler=vc;Ke.StrictMode=yc;Ke.Suspense=Nc;Ke.isAsyncMode=function(e){return _h(e)||Cr(e)===Im};Ke.isConcurrentMode=_h;Ke.isContextConsumer=function(e){return Cr(e)===Sc};Ke.isContextProvider=function(e){return Cr(e)===Cc};Ke.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Lm};Ke.isForwardRef=function(e){return Cr(e)===Tc};Ke.isFragment=function(e){return Cr(e)===hc};Ke.isLazy=function(e){return Cr(e)===Pc};Ke.isMemo=function(e){return Cr(e)===kc};Ke.isPortal=function(e){return Cr(e)===Am};Ke.isProfiler=function(e){return Cr(e)===vc};Ke.isStrictMode=function(e){return Cr(e)===yc};Ke.isSuspense=function(e){return Cr(e)===Nc};Ke.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===hc||e===wc||e===vc||e===yc||e===Nc||e===wR||typeof e=="object"&&e!==null&&(e.$$typeof===Pc||e.$$typeof===kc||e.$$typeof===Cc||e.$$typeof===Sc||e.$$typeof===Tc||e.$$typeof===NR||e.$$typeof===kR||e.$$typeof===PR||e.$$typeof===TR)};Ke.typeOf=Cr;});var ty=Er(je=>{process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,n=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,h=e?Symbol.for("react.scope"):60119;function y(E){return typeof E=="string"||typeof E=="function"||E===o||E===l||E===a||E===n||E===u||E===p||typeof E=="object"&&E!==null&&(E.$$typeof===g||E.$$typeof===m||E.$$typeof===i||E.$$typeof===s||E.$$typeof===d||E.$$typeof===x||E.$$typeof===b||E.$$typeof===h||E.$$typeof===f)}function v(E){if(typeof E=="object"&&E!==null){var ae=E.$$typeof;switch(ae){case t:var oe=E.type;switch(oe){case c:case l:case o:case a:case n:case u:return oe;default:var ee=oe&&oe.$$typeof;switch(ee){case s:case d:case g:case m:case i:return ee;default:return ae}}case r:return ae}}}var S=c,w=l,k=s,L=i,R=t,D=d,V=o,A=g,T=m,N=r,B=a,W=n,O=u,z=false;function j(E){return z||(z=true,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),K(E)||v(E)===c}function K(E){return v(E)===l}function $(E){return v(E)===s}function P(E){return v(E)===i}function M(E){return typeof E=="object"&&E!==null&&E.$$typeof===t}function G(E){return v(E)===d}function I(E){return v(E)===o}function C(E){return v(E)===g}function H(E){return v(E)===m}function Y(E){return v(E)===r}function F(E){return v(E)===a}function _(E){return v(E)===n}function te(E){return v(E)===u}je.AsyncMode=S,je.ConcurrentMode=w,je.ContextConsumer=k,je.ContextProvider=L,je.Element=R,je.ForwardRef=D,je.Fragment=V,je.Lazy=A,je.Memo=T,je.Portal=N,je.Profiler=B,je.StrictMode=W,je.Suspense=O,je.isAsyncMode=j,je.isConcurrentMode=K,je.isContextConsumer=$,je.isContextProvider=P,je.isElement=M,je.isForwardRef=G,je.isFragment=I,je.isLazy=C,je.isMemo=H,je.isPortal=Y,je.isProfiler=F,je.isStrictMode=_,je.isSuspense=te,je.isValidElementType=y,je.typeOf=v;})();});var Bm=Er((PK,Fm)=>{process.env.NODE_ENV==="production"?Fm.exports=ey():Fm.exports=ty();});var ny=Er((RK,oy)=>{var ry=Object.getOwnPropertySymbols,RR=Object.prototype.hasOwnProperty,MR=Object.prototype.propertyIsEnumerable;function DR(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function ER(){try{if(!Object.assign)return !1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return !1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var o=Object.getOwnPropertyNames(t).map(function(a){return t[a]});if(o.join("")!=="0123456789")return !1;var n={};return "abcdefghijklmnopqrst".split("").forEach(function(a){n[a]=a;}),Object.keys(Object.assign({},n)).join("")==="abcdefghijklmnopqrst"}catch{return false}}oy.exports=ER()?Object.assign:function(e,t){for(var r,o=DR(e),n,a=1;a<arguments.length;a++){r=Object(arguments[a]);for(var i in r)RR.call(r,i)&&(o[i]=r[i]);if(ry){n=ry(r);for(var s=0;s<n.length;s++)MR.call(r,n[s])&&(o[n[s]]=r[n[s]]);}}return o};});var Rc=Er((MK,ay)=>{var LR="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";ay.exports=LR;});var Vm=Er((DK,iy)=>{iy.exports=Function.call.bind(Object.prototype.hasOwnProperty);});var uy=Er((EK,dy)=>{var Om=function(){};process.env.NODE_ENV!=="production"&&(sy=Rc(),Mc={},ly=Vm(),Om=function(e){var t="Warning: "+e;typeof console<"u"&&console.error(t);try{throw new Error(t)}catch{}});var sy,Mc,ly;function cy(e,t,r,o,n){if(process.env.NODE_ENV!=="production"){for(var a in e)if(ly(e,a)){var i;try{if(typeof e[a]!="function"){var s=Error((o||"React class")+": "+r+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw s.name="Invariant Violation",s}i=e[a](t,a,o,r,null,sy);}catch(l){i=l;}if(i&&!(i instanceof Error)&&Om((o||"React class")+": type specification of "+r+" `"+a+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof i+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),i instanceof Error&&!(i.message in Mc)){Mc[i.message]=true;var c=n?n():"";Om("Failed "+r+" type: "+i.message+(c??""));}}}}cy.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(Mc={});};dy.exports=cy;});var fy=Er((LK,my)=>{var AR=Bm(),IR=ny(),ci=Rc(),zm=Vm(),py=uy(),di=function(){};process.env.NODE_ENV!=="production"&&(di=function(e){var t="Warning: "+e;typeof console<"u"&&console.error(t);try{throw new Error(t)}catch{}});function Dc(){return null}my.exports=function(e,t){var r=typeof Symbol=="function"&&Symbol.iterator,o="@@iterator";function n(T){var N=T&&(r&&T[r]||T[o]);if(typeof N=="function")return N}var a="<<anonymous>>",i={array:d("array"),bigint:d("bigint"),bool:d("boolean"),func:d("function"),number:d("number"),object:d("object"),string:d("string"),symbol:d("symbol"),any:u(),arrayOf:p,element:m(),elementType:g(),instanceOf:f,node:y(),objectOf:b,oneOf:x,oneOfType:h,shape:S,exact:w};function s(T,N){return T===N?T!==0||1/T===1/N:T!==T&&N!==N}function c(T,N){this.message=T,this.data=N&&typeof N=="object"?N:{},this.stack="";}c.prototype=Error.prototype;function l(T){if(process.env.NODE_ENV!=="production")var N={},B=0;function W(z,j,K,$,P,M,G){if($=$||a,M=M||K,G!==ci){if(t){var I=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw I.name="Invariant Violation",I}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var C=$+":"+K;!N[C]&&B<3&&(di("You are manually calling a React.PropTypes validation function for the `"+M+"` prop on `"+$+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),N[C]=true,B++);}}return j[K]==null?z?j[K]===null?new c("The "+P+" `"+M+"` is marked as required "+("in `"+$+"`, but its value is `null`.")):new c("The "+P+" `"+M+"` is marked as required in "+("`"+$+"`, but its value is `undefined`.")):null:T(j,K,$,P,M)}var O=W.bind(null,false);return O.isRequired=W.bind(null,true),O}function d(T){function N(B,W,O,z,j,K){var $=B[W],P=R($);if(P!==T){var M=D($);return new c("Invalid "+z+" `"+j+"` of type "+("`"+M+"` supplied to `"+O+"`, expected ")+("`"+T+"`."),{expectedType:T})}return null}return l(N)}function u(){return l(Dc)}function p(T){function N(B,W,O,z,j){if(typeof T!="function")return new c("Property `"+j+"` of component `"+O+"` has invalid PropType notation inside arrayOf.");var K=B[W];if(!Array.isArray(K)){var $=R(K);return new c("Invalid "+z+" `"+j+"` of type "+("`"+$+"` supplied to `"+O+"`, expected an array."))}for(var P=0;P<K.length;P++){var M=T(K,P,O,z,j+"["+P+"]",ci);if(M instanceof Error)return M}return null}return l(N)}function m(){function T(N,B,W,O,z){var j=N[B];if(!e(j)){var K=R(j);return new c("Invalid "+O+" `"+z+"` of type "+("`"+K+"` supplied to `"+W+"`, expected a single ReactElement."))}return null}return l(T)}function g(){function T(N,B,W,O,z){var j=N[B];if(!AR.isValidElementType(j)){var K=R(j);return new c("Invalid "+O+" `"+z+"` of type "+("`"+K+"` supplied to `"+W+"`, expected a single ReactElement type."))}return null}return l(T)}function f(T){function N(B,W,O,z,j){if(!(B[W]instanceof T)){var K=T.name||a,$=A(B[W]);return new c("Invalid "+z+" `"+j+"` of type "+("`"+$+"` supplied to `"+O+"`, expected ")+("instance of `"+K+"`."))}return null}return l(N)}function x(T){if(!Array.isArray(T))return process.env.NODE_ENV!=="production"&&(arguments.length>1?di("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):di("Invalid argument supplied to oneOf, expected an array.")),Dc;function N(B,W,O,z,j){for(var K=B[W],$=0;$<T.length;$++)if(s(K,T[$]))return null;var P=JSON.stringify(T,function(G,I){var C=D(I);return C==="symbol"?String(I):I});return new c("Invalid "+z+" `"+j+"` of value `"+String(K)+"` "+("supplied to `"+O+"`, expected one of "+P+"."))}return l(N)}function b(T){function N(B,W,O,z,j){if(typeof T!="function")return new c("Property `"+j+"` of component `"+O+"` has invalid PropType notation inside objectOf.");var K=B[W],$=R(K);if($!=="object")return new c("Invalid "+z+" `"+j+"` of type "+("`"+$+"` supplied to `"+O+"`, expected an object."));for(var P in K)if(zm(K,P)){var M=T(K,P,O,z,j+"."+P,ci);if(M instanceof Error)return M}return null}return l(N)}function h(T){if(!Array.isArray(T))return process.env.NODE_ENV!=="production"&&di("Invalid argument supplied to oneOfType, expected an instance of array."),Dc;for(var N=0;N<T.length;N++){var B=T[N];if(typeof B!="function")return di("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+V(B)+" at index "+N+"."),Dc}function W(O,z,j,K,$){for(var P=[],M=0;M<T.length;M++){var G=T[M],I=G(O,z,j,K,$,ci);if(I==null)return null;I.data&&zm(I.data,"expectedType")&&P.push(I.data.expectedType);}var C=P.length>0?", expected one of type ["+P.join(", ")+"]":"";return new c("Invalid "+K+" `"+$+"` supplied to "+("`"+j+"`"+C+"."))}return l(W)}function y(){function T(N,B,W,O,z){return k(N[B])?null:new c("Invalid "+O+" `"+z+"` supplied to "+("`"+W+"`, expected a ReactNode."))}return l(T)}function v(T,N,B,W,O){return new c((T||"React class")+": "+N+" type `"+B+"."+W+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+O+"`.")}function S(T){function N(B,W,O,z,j){var K=B[W],$=R(K);if($!=="object")return new c("Invalid "+z+" `"+j+"` of type `"+$+"` "+("supplied to `"+O+"`, expected `object`."));for(var P in T){var M=T[P];if(typeof M!="function")return v(O,z,j,P,D(M));var G=M(K,P,O,z,j+"."+P,ci);if(G)return G}return null}return l(N)}function w(T){function N(B,W,O,z,j){var K=B[W],$=R(K);if($!=="object")return new c("Invalid "+z+" `"+j+"` of type `"+$+"` "+("supplied to `"+O+"`, expected `object`."));var P=IR({},B[W],T);for(var M in P){var G=T[M];if(zm(T,M)&&typeof G!="function")return v(O,z,j,M,D(G));if(!G)return new c("Invalid "+z+" `"+j+"` key `"+M+"` supplied to `"+O+"`.\nBad object: "+JSON.stringify(B[W],null," ")+`
2
- Valid keys: `+JSON.stringify(Object.keys(T),null," "));var I=G(K,M,O,z,j+"."+M,ci);if(I)return I}return null}return l(N)}function k(T){switch(typeof T){case "number":case "string":case "undefined":return true;case "boolean":return !T;case "object":if(Array.isArray(T))return T.every(k);if(T===null||e(T))return true;var N=n(T);if(N){var B=N.call(T),W;if(N!==T.entries){for(;!(W=B.next()).done;)if(!k(W.value))return false}else for(;!(W=B.next()).done;){var O=W.value;if(O&&!k(O[1]))return false}}else return false;return true;default:return false}}function L(T,N){return T==="symbol"?true:N?N["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&N instanceof Symbol:false}function R(T){var N=typeof T;return Array.isArray(T)?"array":T instanceof RegExp?"object":L(N,T)?"symbol":N}function D(T){if(typeof T>"u"||T===null)return ""+T;var N=R(T);if(N==="object"){if(T instanceof Date)return "date";if(T instanceof RegExp)return "regexp"}return N}function V(T){var N=D(T);switch(N){case "array":case "object":return "an "+N;case "boolean":case "date":case "regexp":return "a "+N;default:return N}}function A(T){return !T.constructor||!T.constructor.name?a:T.constructor.name}return i.checkPropTypes=py,i.resetWarningCache=py.resetWarningCache,i.PropTypes=i,i};});var hy=Er((AK,xy)=>{var FR=Rc();function gy(){}function by(){}by.resetWarningCache=gy;xy.exports=function(){function e(o,n,a,i,s,c){if(c!==FR){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:by,resetWarningCache:gy};return r.PropTypes=r,r};});var Cy=Er((IK,Hm)=>{process.env.NODE_ENV!=="production"?(yy=Bm(),vy=true,Hm.exports=fy()(yy.isElement,vy)):Hm.exports=hy()();var yy,vy;});var Sy=Er((FK,Ec)=>{(function(){var e={}.hasOwnProperty;function t(){for(var n="",a=0;a<arguments.length;a++){var i=arguments[a];i&&(n=o(n,r(i)));}return n}function r(n){if(typeof n=="string"||typeof n=="number")return n;if(typeof n!="object")return "";if(Array.isArray(n))return t.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var a="";for(var i in n)e.call(n,i)&&n[i]&&(a=o(a,i));return a}function o(n,a){return a?n?n+" "+a:n+a:n}typeof Ec<"u"&&Ec.exports?(t.default=t,Ec.exports=t):typeof define=="function"&&typeof define.amd=="object"&&define.amd?define("classnames",[],function(){return t}):window.classNames=t;})();});function Zt(e,t=false){let[r,o]=He.useState(t);return He.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 Qt(e="base"){let t=Zt(`(min-width: ${Fn.sm})`,e!=="base"),r=Zt(`(min-width: ${Fn.md})`,["md","lg","xl","2xl"].includes(e)),o=Zt(`(min-width: ${Fn.lg})`,["lg","xl","2xl"].includes(e)),n=Zt(`(min-width: ${Fn.xl})`,["xl","2xl"].includes(e)),a=Zt(`(min-width: ${Fn["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}}var Sl=ml(Cu(),1);var Su=class{constructor(){ji(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 Su;var Qo=(e,t="Yes",r="No")=>e==null?null:e?t:r,dw=e=>Qo(e,"Enabled","Disabled"),uw=e=>Qo(e,"On","Off"),pw=e=>Qo(e,"Active","Inactive"),mw=e=>Qo(e,"True","False"),fw=e=>Qo(e,"\u2713","\u2717"),_o=e=>{if(e==null)return null;if(typeof e=="boolean")return e;if(typeof e=="string"){let t=e.toLowerCase().trim();return t==="true"||t==="yes"||t==="1"||t==="on"||t==="enabled"?true:t==="false"||t==="no"||t==="0"||t==="off"||t==="disabled"?false:null}return typeof e=="number"?e!==0:null},Bg=(e,t)=>{if(t.hideWhenNull&&e==null)return null;if(e==null)return t.nullText??null;let r=_o(e);return r===null?t.nullText??null:Qo(r,t.trueText??"Yes",t.falseText??"No")};le.register("boolean",(e,t,r)=>{let o=_o(e);return o!==null?Qo(o,typeof t=="string"?t:"Yes",typeof r=="string"?r:"No"):null});le.register("yesNo",e=>{let t=_o(e);return t!==null?Qo(t,"Yes","No"):null});le.register("enabledDisabled",e=>{let t=_o(e);return t!==null?dw(t):null});le.register("onOff",e=>{let t=_o(e);return t!==null?uw(t):null});le.register("activeInactive",e=>{let t=_o(e);return t!==null?pw(t):null});le.register("trueFalse",e=>{let t=_o(e);return t!==null?mw(t):null});le.register("checkmark",e=>{let t=_o(e);return t!==null?fw(t):null});var fe=e=>e==null,Vg=(e,t=0)=>fe(e)?null:`${e.toFixed(t)}%`,Og=(e,t=0)=>Vg(e,t)??"\u2014",gw=e=>fe(e)?null:Math.round(e).toString(),bw=(e,t=1)=>fe(e)?null:e.toFixed(t),xw=(e,t,r=true)=>{if(fe(e))return null;let o={useGrouping:r};return t!==void 0&&(o.minimumFractionDigits=t,o.maximumFractionDigits=t),new Intl.NumberFormat("en-US",o).format(e)},hw=(e,t="short")=>fe(e)?null:new Intl.NumberFormat("en-US",{notation:"compact",compactDisplay:t}).format(e),yw=(e,t=2)=>fe(e)?null:e.toExponential(t),zg=(e,t="USD",r)=>{if(fe(e))return null;let o={style:"currency",currency:t,currencyDisplay:r?.currencyDisplay??"symbol",useGrouping:r?.thousandsSeparator??true};return r?.minimumFractionDigits!==void 0&&(o.minimumFractionDigits=r.minimumFractionDigits),r?.maximumFractionDigits!==void 0&&(o.maximumFractionDigits=r.maximumFractionDigits),new Intl.NumberFormat("en-US",o).format(e)},Hg=(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)},Wg=(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:zg(r,t.currency,t)};le.register("percentage",(e,t)=>typeof e=="number"?Vg(e,typeof t=="number"?t:0):null);le.register("integer",e=>typeof e=="number"?gw(e):null);le.register("float",(e,t)=>typeof e=="number"?bw(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:xw(o,typeof t=="number"?t:void 0,typeof r=="boolean"?r:true)});le.register("compact",(e,t)=>typeof e=="number"?hw(e,t==="long"?"long":"short"):null);le.register("scientific",(e,t)=>typeof e=="number"?yw(e,typeof t=="number"?t:2):null);le.register("currency",(e,t,r)=>typeof e=="number"?zg(e,typeof t=="string"?t:"USD",typeof r=="object"&&r!==null?r:{}):null);var wu=(e,t=0)=>{if(fe(e))return null;let r=e*1e3;return t===0?`${Math.round(r)} mA`:`${r.toFixed(t)} mA`},fl=(e,t=1)=>fe(e)?null:`${e.toFixed(t)} A`,Tu=(e,t=2)=>fe(e)?null:`${(e/1e3).toFixed(t)} kA`,vw=(e,t)=>{if(fe(e))return null;let r=Math.abs(e);return r>=1e3?Tu(e,t??2):r<1?wu(e,t??0):fl(e,t??1)},Nu=(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 Tu(r,o??2);case "mA":return wu(r,o??0);case "A":return fl(r,o??1)}return t.autoScale!==false?vw(r,o):fl(r,o??1)};le.register("current",Nu);var f6=wu,g6=fl,b6=Tu;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},Cw=(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)},gl=e=>{if(!e)return null;let t=Bn(e);return t?t.toRelative():"Invalid Date"},Sw=(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"},ww=e=>{if(!e)return null;let t=Bn(e);return t?t.toISO():null},Tw=(e,t,r)=>{if(!e)return null;let o=Bn(e);return o?(r?o.setZone(r):o).toFormat(t):"Invalid Date"},v6=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},Gg=(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)=>Cw(e,typeof t=="boolean"?t:false,typeof r=="string"?r:void 0));le.register("relativeTime",e=>gl(e));le.register("fullDateTime",(e,t)=>Sw(e,typeof t=="string"?t:void 0));le.register("isoString",e=>ww(e));le.register("customDateFormat",(e,t,r)=>typeof t=="string"?Tw(e,t,typeof r=="string"?r:void 0):null);var ku=(e,t=1)=>fe(e)?null:`${e.toFixed(t)} m`,Nw=(e,t=1)=>fe(e)?null:`${(e*100).toFixed(t)} cm`,kw=(e,t=0)=>fe(e)?null:`${(e*1e3).toFixed(t)} mm`,Pu=(e,t=1)=>fe(e)?null:`${(e/1e3).toFixed(t)} km`,Ru=(e,t=0)=>fe(e)?null:`${e.toFixed(t)} ft`,Pw=(e,t=1)=>fe(e)?null:`${e.toFixed(t)} in`,Mu=(e,t=1)=>fe(e)?null:`${e.toFixed(t)} mi`,Du=(e,t=0)=>fe(e)?null:`${e.toFixed(t)} yd`,T6=(e,t=1)=>fe(e)?null:`${e.toFixed(t)} nm`,N6=e=>e*3.28084,k6=e=>e/3.28084,P6=e=>e*1.60934,R6=e=>e/1.60934,M6=e=>e/5280,Ug=e=>e*5280,D6=e=>e/1609.34,E6=e=>e*1609.34,L6=e=>e*.9144,A6=e=>e/.9144,I6=e=>e*2.54,F6=e=>e/2.54,Yg=(e,t=false,r=1)=>{if(fe(e))return null;let o=Math.abs(e);return t?o>=1e3?Pu(e,r):o<.01?kw(e,0):o<1?Nw(e,r):ku(e,r):o<.01?Ru(Ug(e),0):o<.1?Du(Ug(e)/3,0):Mu(e,r)},Kg=(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 Yg(r,n,o)}switch(t.unit){case "km":return Pu(r,o);case "ft":return Ru(r,o);case "mi":return Mu(r,o);case "yd":return Du(r,o);default:return ku(r,o)}};le.register("miles",(e,t)=>typeof e=="number"?Mu(e,typeof t=="number"?t:1):null);le.register("kilometers",(e,t)=>typeof e=="number"?Pu(e,typeof t=="number"?t:1):null);le.register("meters",(e,t)=>typeof e=="number"?ku(e,typeof t=="number"?t:1):null);le.register("feet",(e,t)=>typeof e=="number"?Ru(e,typeof t=="number"?t:0):null);le.register("yards",(e,t)=>typeof e=="number"?Du(e,typeof t=="number"?t:0):null);le.register("inches",(e,t)=>typeof e=="number"?Pw(e,typeof t=="number"?t:1):null);le.register("autoScaleDistance",(e,t,r)=>typeof e=="number"?Yg(e,typeof t=="boolean"?t:false,typeof r=="number"?r:1):null);var Eu=(e,t=1)=>fe(e)?null:`${e.toFixed(t)} Wh`,Lu=(e,t=1)=>fe(e)?null:`${(e/1e3).toFixed(t)} kWh`,jg=(e,t=1)=>fe(e)?null:`${(e/1e6).toFixed(t)} MWh`,$g=(e,t=1)=>fe(e)?null:`${(e/1e9).toFixed(t)} GWh`,Au=e=>{let t=Math.abs(e);return t>=1e9?"GWh":t>=1e6?"MWh":t>=1e3?"kWh":"Wh"},qg=(e,t=1)=>{if(fe(e))return null;switch(Au(e)){case "GWh":return $g(e,t);case "MWh":return jg(e,t);case "kWh":return Lu(e,t);default:return Eu(e,t)}},Iu={Wh:1,kWh:1e3,MWh:1e6,GWh:1e9},Fu=(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*Iu[t.sourceUnit]:r,n=t.decimals??1;if(t.unit)switch(t.unit){case "GWh":return $g(o,n);case "MWh":return jg(o,n);case "kWh":return Lu(o,n);case "Wh":return Eu(o,n)}return t.autoScale!==false?qg(o,n):Eu(o,n)};le.register("kWh",e=>typeof e=="number"?Lu(e):null);le.register("autoScaleEnergy",(e,t)=>typeof e=="number"?qg(e,typeof t=="number"?t:1):null);le.register("energy",Fu);var bl=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},Bu=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():bl(e)},Ya=e=>e?e.startsWith("+")||e.length>11?Bu(e):bl(e):null,Jg=(e,t)=>{if(t.hideWhenNull&&e==null)return null;if(e==null)return t.nullText??null;let r=String(e);if(t.international)return Bu(r);switch(t.country){case "US":case "CA":return bl(r);default:return Ya(r)}};le.register("phoneNumber",e=>typeof e=="string"?Ya(e):null);le.register("usPhone",e=>typeof e=="string"?bl(e):null);le.register("internationalPhone",e=>typeof e=="string"?Bu(e):null);var xl=(e,t=0)=>fe(e)?null:t===0?`${Math.round(e)} W`:`${e.toFixed(t)} W`,Vu=(e,t=1)=>fe(e)?null:`${(e/1e3).toFixed(t)} kW`,Ou=(e,t=1)=>fe(e)?null:`${(e/1e6).toFixed(t)} MW`,zu=(e,t=2)=>fe(e)?null:`${(e/1e9).toFixed(t)} GW`,Rw=(e,t)=>{if(fe(e))return null;let r=Math.abs(e);return r>=1e9?zu(e,t??2):r>=1e6?Ou(e,t??1):r>=1e3?Vu(e,t??1):xl(e,t??0)},Hu=(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 zu(r,o??2);case "MW":return Ou(r,o??1);case "kW":return Vu(r,o??1);case "W":return xl(r,o??0)}return t.autoScale!==false?Rw(r,o):xl(r,o??0)};le.register("power",Hu);var Y6=xl,K6=Vu,j6=Ou,$6=zu;var Wu=(e,t=1)=>fe(e)?null:`${(e*1e3).toFixed(t)} m\u03A9`,hl=(e,t=1)=>fe(e)?null:`${e.toFixed(t)} \u03A9`,Xg=(e,t=1)=>fe(e)?null:`${(e/1e3).toFixed(t)} k\u03A9`,Zg=(e,t=2)=>fe(e)?null:`${(e/1e6).toFixed(t)} M\u03A9`,Mw=(e,t)=>{if(fe(e))return null;let r=Math.abs(e);return r>=1e6?Zg(e,t??2):r>=1e3?Xg(e,t??1):r<1?Wu(e,t??1):hl(e,t??1)},Gu=(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 Zg(r,o??2);case "k\u03A9":return Xg(r,o??1);case "m\u03A9":return Wu(r,o??1);case "\u03A9":return hl(r,o??1)}return t.autoScale!==false?Mw(r,o):hl(r,o??1)};le.register("resistance",Gu);le.register("ohms",e=>typeof e=="number"?hl(e):null);le.register("milliohms",e=>typeof e=="number"?Wu(e):null);var Qg=e=>{switch(e){case "FAHRENHEIT":return "F";case "CELSIUS":return "C";case "KELVIN":return "K";default:return "F"}},_g=(e,t=0)=>fe(e)?null:`${e.toFixed(t)}\xB0F`,eb=(e,t=true,r=0)=>fe(e)?null:`${(t?(e-32)*(5/9):e).toFixed(r)}\xB0C`,tb=(e,t=true,r=0)=>fe(e)?null:`${(t?(e-32)*(5/9)+273.15:e+273.15).toFixed(r)}K`,Dw=e=>e*9/5+32,Ew=e=>(e-32)*(5/9),e7=e=>e+273.15,Lw=e=>e-273.15,t7=e=>Ew(e)+273.15,r7=e=>Dw(Lw(e)),rb=(e,t="F",r=0)=>{if(fe(e))return null;switch(typeof t=="string"&&t.length>1?Qg(t):t){case "C":return eb(e,true,r);case "K":return tb(e,true,r);default:return _g(e,r)}},ob=(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?Qg(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 rb(r,n,o)};le.register("temperature",(e,t,r)=>typeof e=="number"?rb(e,typeof t=="string"?t:"F",typeof r=="number"?r:0):null);le.register("fahrenheit",(e,t)=>typeof e=="number"?_g(e,typeof t=="number"?t:0):null);le.register("celsius",(e,t,r)=>typeof e=="number"?eb(e,typeof t=="boolean"?t:true,typeof r=="number"?r:0):null);le.register("kelvin",(e,t,r)=>typeof e=="number"?tb(e,typeof t=="boolean"?t:true,typeof r=="number"?r:0):null);var Aw=(e,t)=>!!(t.hideWhenNull&&e==null||t.hideWhenZero&&e===0),nb=e=>e?.toUpperCase()??"",ab=e=>e?.toLowerCase()??"",ib=e=>e?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():"",sb=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(" ")},lb=e=>e?e.split(/\s+/).map(t=>t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()).join(" "):"",cb=e=>e?e.charAt(0).toUpperCase()+e.slice(1):"",db=e=>e?e.replace(/([A-Z])/g," $1").replace(/^./,t=>t.toUpperCase()).trim():"",ub=e=>e?e.toLowerCase().split("_").map(t=>cb(t)).join(" "):"",Iw=e=>e?e.includes("_")?ub(e):e.toUpperCase()===e?cb(e.toLowerCase()):db(e):"",Ka=(e,t=16)=>{if(!e)return "";if(t<5||e.length<=t)return e;let r=t-3,o=Math.ceil(r/2),n=Math.floor(r/2);return `${e.slice(0,o)}...${e.slice(-n)}`},yl=(e,t=8)=>e?e.length<=t?e:`...${e.slice(-t)}`:"",vl=(e,t=16,r="...")=>e?e.length<=t?e:e.slice(0,t)+r:"",Fw=e=>{if(!e)return "";let t=e.toString(),r=t.slice(-4),o=t.length-4;return o>0?"*".repeat(o)+r:t},pb=(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=nb(r);break;case "lowercase":r=ab(r);break;case "capitalize":r=lb(r);break;case "titleCase":r=sb(r);break;case "sentenceCase":r=ib(r);break}}),t.truncate){let{length:o,position:n,ellipsis:a="..."}=t.truncate;switch(n){case "start":r=yl(r,o);break;case "middle":r=Ka(r,o);break;case "end":r=vl(r,o,a);break}}return r};le.register("uppercase",e=>nb(String(e)));le.register("lowercase",e=>ab(String(e)));le.register("sentenceCase",e=>ib(String(e)));le.register("titleCase",e=>sb(String(e)));le.register("capitalize",e=>lb(String(e)));le.register("camelCaseToWords",e=>db(String(e)));le.register("snakeCaseToWords",e=>ub(String(e)));le.register("enumToSentenceCase",e=>Iw(String(e)));le.register("truncateMiddle",(e,t)=>Ka(String(e),typeof t=="number"?t:16));le.register("truncateStart",(e,t)=>yl(String(e),typeof t=="number"?t:8));le.register("truncateEnd",(e,t,r)=>vl(String(e),typeof t=="number"?t:16,typeof r=="string"?r:"..."));le.register("secret",e=>Fw(String(e)));var Uu=(e,t=0)=>{if(fe(e))return null;let r=e*1e3;return t===0?`${Math.round(r)} mV`:`${r.toFixed(t)} mV`},Cl=(e,t=0)=>fe(e)?null:t===0?`${Math.round(e)} V`:`${e.toFixed(t)} V`,Yu=(e,t=1)=>fe(e)?null:`${(e/1e3).toFixed(t)} kV`,Bw=(e,t)=>{if(fe(e))return null;let r=Math.abs(e);return r>=1e3?Yu(e,t??1):r<1?Uu(e,t??0):Cl(e,t??0)},Ku=(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 Yu(r,o??1);case "mV":return Uu(r,o??0);case "V":return Cl(r,o??0)}return t.autoScale!==false?Bw(r,o):Cl(r,o??0)};le.register("voltage",Ku);var l7=Uu,c7=Cl,d7=Yu;var Vw=(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:Og(r,t.decimals??0)},qr=(e,t)=>{switch(t.type){case "text":return pb(e,t);case "number":return Hg(e,t);case "percentage":return Vw(e,t);case "currency":return Wg(e,t);case "date":return Gg(e,t);case "boolean":return Bg(e,t);case "energy":return Fu(e,t);case "power":return Hu(e,t);case "voltage":return Ku(e,t);case "current":return Nu(e,t);case "resistance":return Gu(e,t);case "temperature":return ob(e,t);case "distance":return Kg(e,t);case "phone":return Jg(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 ja={power:"W",energy:"Wh",voltage:"V",current:"A",resistance:"\u03A9",distance:"m"},Ow=new Set(["number","power","energy","voltage","current","resistance","temperature","distance","percentage"]);function ju(e){if(!e)return null;switch(e.type){case "percentage":return "%";case "power":return e.unit??ja.power;case "energy":return e.unit??e.sourceUnit??ja.energy;case "voltage":return e.unit??ja.voltage;case "current":return e.unit??ja.current;case "resistance":return e.unit??ja.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??ja.distance;default:return null}}function mb(e,t){if(!Ow.has(t.type))return null;let r;if(typeof e=="number")r=e;else if(typeof e=="string"){let n=parseFloat(e);if(Number.isNaN(n))return null;r=n;}else return null;let o=ju(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=qr(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=qr(r,t);return n?String(n):""}return String(r)}var fb=["stroke","fill","color","stop-color","flood-color","lighting-color"],gb=/var\s*\(/;function bb(e,t){let r=[e,...Array.from(e.querySelectorAll("*"))],o=[t,...Array.from(t.querySelectorAll("*"))],n=Math.min(r.length,o.length);for(let a=0;a<n;a++){let i=r[a],s=o[a];if(!(i instanceof Element)||!(s instanceof Element))continue;let c=window.getComputedStyle(i);for(let l of fb){let d=s.getAttribute(l);if(d&&gb.test(d)){let u=c.getPropertyValue(l);u&&s.setAttribute(l,u.trim());}}if(s instanceof HTMLElement||s instanceof SVGElement)for(let l of fb){let d=l,u=s.style.getPropertyValue(d);if(u&&gb.test(u)){let p=c.getPropertyValue(d);p&&s.style.setProperty(d,p.trim());}}}}function $u(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 qu(e,t,r={},o){let n=Array.isArray(t[0])?t:[t];try{switch(e){case "csv":await Hw(n,r);break;case "svg":await Ww(o,r);break;case "png":await Gw(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 Hw(e,t){try{let r=t.yFormat?ju(t.yFormat):null,o=t.yFormat,n=p=>{if(p==null||p==="")return "";if(!o)return typeof p=="number"?p:String(p);let m=mb(p,o);return m===null?typeof p=="number"?p:String(p):m},a=new Map;e.forEach(p=>{p.forEach(m=>{let g=m.xValue.getTime();a.has(g)||a.set(g,m.xValue);});});let i=Array.from(a.values()).sort((p,m)=>p.getTime()-m.getTime()),s=e.map((p,m)=>{let g=t.seriesLabels?.[m]||`Series ${m+1}`;return r&&!g.includes(`(${r})`)?`${g} (${r})`:g}),c=i.map(p=>{let m={[t.xLabel||"Date"]:p.toLocaleString("en-US",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"})};return e.forEach((g,f)=>{let x=s[f],b=g.find(h=>h.xValue.getTime()===p.getTime());m[x]=b?n(b.yValue):"",b?.category&&(m[`${x} Category`]=b.category);}),m}),l=zw__default.default.unparse(c,{header:!0,skipEmptyLines:!0}),d=new Blob([l],{type:"text/csv;charset=utf-8;"}),u=$u(t.filename||"chart-data","csv",t.timestamp!==!1);(0,Sl.saveAs)(d,u);}catch(r){throw new Error(`CSV export failed: ${r instanceof Error?r.message:"Unknown error"}`)}}async function Ww(e,t){if(!e.current)throw new Error("SVG element not found");try{let r=e.current,o=r.cloneNode(!0);if(bb(r,o),!o.querySelector("rect[data-background]")){let l=document.createElementNS("http://www.w3.org/2000/svg","rect");l.setAttribute("width",o.getAttribute("width")||"100%"),l.setAttribute("height",o.getAttribute("height")||"100%"),l.setAttribute("fill","white"),l.setAttribute("data-background","true"),o.insertBefore(l,o.firstChild);}let i=new XMLSerializer().serializeToString(o);i.includes("<?xml")||(i=`<?xml version="1.0" encoding="UTF-8"?>
3
- `+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=$u(t.filename||"chart","svg",t.timestamp!==!1);(0,Sl.saveAs)(s,c);}catch(r){throw new Error(`SVG export failed: ${r instanceof Error?r.message:"Unknown error"}`)}}async function Gw(e,t,r=2){if(!e.current)throw new Error("SVG element not found");let o="";try{let n=e.current,a=n.getBoundingClientRect(),i=n.cloneNode(!0);bb(n,i),i.setAttribute("width",String(a.width)),i.setAttribute("height",String(a.height)),i.removeAttribute("transform");let s=i.getElementsByTagName("text");Array.from(s).forEach(p=>{p.style.fontFamily||(p.style.fontFamily="system-ui, -apple-system, sans-serif"),p.style.fontSize||(p.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((p,m)=>{let g=new Image,f=setTimeout(()=>{o&&URL.revokeObjectURL(o),m(new Error("Image loading timeout"));},1e4);g.onload=()=>{clearTimeout(f);try{let x=document.createElement("canvas");x.width=a.width*r,x.height=a.height*r;let b=x.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),x.toBlob(h=>{if(h){let y=$u(t.filename||"chart","png",t.timestamp!==!1);(0,Sl.saveAs)(h,y),p();}else m(new Error("Failed to create PNG blob"));o&&URL.revokeObjectURL(o);},"image/png",1);}catch(x){o&&URL.revokeObjectURL(o),m(x);}},g.onerror=()=>{clearTimeout(f),o&&URL.revokeObjectURL(o),m(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 Uw(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 Yw(e){return {csv:"CSV Spreadsheet",svg:"SVG Vector Image",png:"PNG Image"}[e]||"Unknown Format"}function wl({datasets:e,metadata:t,svgRef:r}){return He.useCallback(async o=>{try{await qu(o,e,t,r);}catch(n){throw console.error("Chart export failed:",n),n}},[e,t,r])}function $i(e,t){return t.split(".").reduce((r,o)=>r?.[o],e)}function $w(e,t){let r=$i(e,t.field),o=t.value;switch(t.operator){case "eq":return r===o;case "neq":return r!==o;case "in":return Array.isArray(o)?Array.isArray(r)?r.some(n=>o.includes(n)):o.includes(r):false;case "nin":return Array.isArray(o)?Array.isArray(r)?!r.some(n=>o.includes(n)):!o.includes(r):false;case "gt":return r instanceof Date&&typeof o=="string"?r>new Date(o):r>o;case "gte":return r instanceof Date&&typeof o=="string"?r>=new Date(o):r>=o;case "lt":return r instanceof Date&&typeof o=="string"?r<new Date(o):r<o;case "lte":return r instanceof Date&&typeof o=="string"?r<=new Date(o):r<=o;case "contains":return typeof r!="string"?false:r.toLowerCase().includes(String(o).toLowerCase());case "startsWith":return typeof r!="string"?false:r.toLowerCase().startsWith(String(o).toLowerCase());case "endsWith":return typeof r!="string"?false:r.toLowerCase().endsWith(String(o).toLowerCase());default:return false}}function xb(e,t){if(t.conditions.length===0)return true;let r=t.conditions.map(o=>"conditions"in o?xb(e,o):$w(e,o));return t.logic==="AND"?r.every(Boolean):r.some(Boolean)}function qw(e,t){return !t||t.conditions.length===0?e:e.filter(r=>xb(r,t))}function Jw(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 Xw(e,t){return t?[...e].sort((r,o)=>{let n=$i(r,t.field),a=$i(o,t.field);return Jw(n,a,t.direction)}):e}function Zw(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 jw__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=$i(s,c);return l==null?false:String(l).toLowerCase().includes(i)}))}function Qw(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=$i(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 Ju({data:e,filters:t,sort:r,search:o,facetConfigs:n=[]}){let a=Zw(e,o||null);a=qw(a,t||null);let i=Qw(a,n);return a=Xw(a,r||null),{data:a,facetCounts:i,resultCount:a.length}}function Tl({data:e,filters:t,sort:r,search:o,facetConfigs:n=[]}){return He.useMemo(()=>Ju({data:e,filters:t,sort:r,search:o,facetConfigs:n}),[e,t,r,o,n])}function en(e,t=300){let[r,o]=He.useState(e);return He.useEffect(()=>{let n=setTimeout(()=>o(e),t);return ()=>clearTimeout(n)},[e,t]),r}function Nl({filters:e,sort:t,search:r,onStateChange:o,searchDebounce:n=300}){let a=en(r,n),i=He.useRef(true);He.useEffect(()=>{if(i.current){i.current=false;return}o({filters:e,sort:t,search:a});},[e,t,a,o]);}function hb(e){return e.mode==="client"?Tl({data:e.data,filters:e.filters,sort:e.sort,search:e.search,facetConfigs:e.facetConfigs}):(Nl({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})}function kl(e,t=300){let[r,o]=He.useState(false);return He.useEffect(()=>{if(e){let n=setTimeout(()=>{o(true);},t);return ()=>clearTimeout(n)}o(false);},[e,t]),r}function $a(){let[e,t]=He.useState({width:0,height:0}),r=He.useRef(null),o=He.useRef(void 0),n=He.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(p=>p.width!==d||p.height!==u?{width:d,height:u}:p);}});}),r.current.observe(a);},[]);return He.useEffect(()=>()=>{o.current&&cancelAnimationFrame(o.current),r.current&&r.current.disconnect();},[]),{ref:n,width:e.width,height:e.height}}function tn({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=He.useRef(null),u=He.useRef(null),p=He.useRef(false),[m,g]=He.useState(0);He.useEffect(()=>{u.current&&(c||d.current)&&g(L=>L+1);},[c,e.length]);let f=n||(o?e.length===0?"loading":"loading-more":"idle"),x=f==="loading",b=f==="loading-more",h=a!==void 0?a:e.length>=100,y=reactVirtual.useVirtualizer({count:e.length,getScrollElement:()=>c||d.current,estimateSize:()=>i,overscan:s}),v=h?y:null,S=h?y.getVirtualItems():[];He.useEffect(()=>{let L=u.current,R=c||d.current;if(!L||!R||!r||o||!t)return;let D=new IntersectionObserver(V=>{let[A]=V;A?.isIntersecting&&!p.current&&r&&t&&(p.current=true,Promise.resolve(t()).finally(()=>{p.current=false;}));},{root:R,rootMargin:`0px 0px ${l}px 0px`,threshold:0});return D.observe(L),()=>{D.disconnect();}},[r,o,t,c,l,m]);let w=He.useCallback((L,R)=>{v?v.scrollToIndex(L,R):d.current&&d.current.children[L]?.scrollIntoView({behavior:"smooth",block:R?.align||"start"});},[v]),k=He.useCallback(()=>{v?v.scrollToIndex(0,{align:"start"}):d.current&&d.current.scrollTo({top:0,behavior:"smooth"});},[v]);return {virtualizer:v,virtualItems:S,computedLoadingState:f,isInitialLoad:x,isLoadingMore:b,scrollRef:d,loadMoreRef:u,scrollToIndex:w,scrollToTop:k}}function Pl(e,t){let[r,o]=He.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}});He.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=He.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=He.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 wb=ml(Cu(),1);function fT(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 gT(e,t){return t.accessor?typeof t.accessor=="function"?t.accessor(e):e[t.accessor]:null}function Tb(e,t){let r=gT(t,e);return e.exportValue?e.exportValue(r,t)??"":r==null?"":r instanceof Date?r.toISOString():typeof r=="object"?JSON.stringify(r):r}function Zu(e){return e.filter(t=>t.exportable!==false)}function Nb(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 Qu(e){let{columns:t,data:r,metadata:o={}}=e;try{let n=Zu(t);if(n.length===0)throw new Error("No exportable columns found");Nb(n);let a=r.map(l=>{let d={};for(let u of n){let p=u.exportLabel||u.label;d[p]=Tb(u,l);}return d}),i=zw__default.default.unparse(a,{header:!0,skipEmptyLines:!0}),s=new Blob([i],{type:"text/csv;charset=utf-8;"}),c=fT(o.filename||"table-data","csv",o.timestamp!==!1);(0,wb.saveAs)(s,c);}catch(n){throw new Error(`CSV export failed: ${n instanceof Error?n.message:"Unknown error"}`)}}function bT(e){let{columns:t,data:r}=e,o=Zu(t);return Nb(o),r.map(n=>{let a={};for(let i of o){let s=i.exportLabel||i.label;a[s]=Tb(i,n);}return a})}function xT(e){return Zu(e).map(t=>t.exportLabel||t.label)}function kb({columns:e,data:t,metadata:r}){let n=e.filter(i=>i.exportable!==false).length>0&&t.length>0;return {exportCSV:He.useCallback(async()=>{try{await Qu({columns:e,data:t,metadata:r});}catch(i){throw console.error("Table export failed:",i),i}},[e,t,r]),canExport:n}}function _u(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 yT(e,t){return Math.floor(e/t.tileSpanMs)}function rn(e,t,r){let o=yT(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 er=(e,t)=>`${e}:${t}`;var Pb={erroredTiles:0};function ep(e,t){let r=new Map,o=new Map,n=0;for(let c of e){let l=t.get(er(c.tierId,c.index));if(l){if(l.status==="error"){n+=1;continue}if(l.data){for(let d of l.data.line)r.set(d.xValue.getTime(),d);for(let d of l.data.band??[])o.set(d.xValue.getTime(),d);}}}let a=(c,l)=>c.xValue.getTime()-l.xValue.getTime(),i=[...r.values()].sort(a),s=[...o.values()].sort(a);return {line:i,band:s,coverage:{earliestMs:i.length?i[0].xValue.getTime():void 0,latestMs:i.length?i[i.length-1].xValue.getTime():void 0,erroredTiles:n}}}function vT(e,t,r){let o=rn(e,t,0);return o.length===0?false:o.every(n=>{let a=r.get(er(n.tierId,n.index));return a!=null&&(a.status==="loaded"||a.status==="empty")})}function Rb(e,t,r){return rn(e,t,0).some(n=>{let a=r.get(er(n.tierId,n.index));return a?.status==="loaded"&&(a.data?.line.length??0)>0})}function CT(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 Mb({viewport:e,targetTier:t,ladder:r,store:o,overscanTiles:n,prev:a}){let i=vT(e,t,o);if(i&&Rb(e,t,o)){let c=rn(e,t,n),{line:l,band:d,coverage:u}=ep(c,o);return {line:l,band:d,renderTier:t,targetTier:t,isFallback:false,isStale:false,coverage:u}}let s=r.findIndex(c=>c.id===t.id);for(let c=s+1;c<r.length;c++){let l=r[c];if(Rb(e,l,o)){let d=rn(e,l,n),{line:u,band:p,coverage:m}=ep(d,o);return {line:u,band:p,renderTier:l,targetTier:t,isFallback:true,isStale:false,coverage:m}}}if(i){let c=rn(e,t,n),{line:l,band:d,coverage:u}=ep(c,o);return {line:l,band:d,renderTier:t,targetTier:t,isFallback:false,isStale:false,coverage:u}}return a?CT(a,e)?{...a,targetTier:t,isFallback:true,isStale:false}:{line:a.line,band:a.band,renderTier:null,targetTier:t,isFallback:true,isStale:true,coverage:Pb}:{line:[],band:[],renderTier:null,targetTier:t,isFallback:false,isStale:false,coverage:Pb}}var Db=new Map;function Eb(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 Ab({refs:e,refsKey:t,store:r,tier:o,viewport:n,fetchTile:a,dispatch:i,concurrency:s,maxFutureMs:c}){let l=He.useRef(e);l.current=e;let d=He.useRef(n);d.current=n;let u=He.useRef(new Map),p=He.useCallback(()=>{for(let m of u.current.values())m.ac.abort();u.current.clear();},[]);return He.useEffect(()=>{for(let[b,h]of u.current)h.tierId!==o.id&&(h.ac.abort(),u.current.delete(b));let m=l.current.filter(b=>{let h=er(b.tierId,b.index),y=r.get(h);return y?y.status==="loading"&&!u.current.has(h):true}),g=(d.current.startMs+d.current.endMs)/2;m.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),x=m.slice(0,f);if(x.length!==0){i({type:"request",ids:x.map(b=>er(b.tierId,b.index))});for(let b of x){let h=er(b.tierId,b.index),y=new AbortController;u.current.set(h,{ac:y,tierId:b.tierId});let v=c!=null?Math.min(b.endMs,c):b.endMs;a(o,b.startMs,v,y.signal).then(S=>{y.signal.aborted||i({type:"fulfilled",id:h,data:S});}).catch(S=>{if(!y.signal.aborted){let w=S instanceof Error?S.message:String(S);i({type:"failed",id:h,error:new Error(`tile fetch failed (tile ${h}, tier ${o.id}): ${w}`)});}}).finally(()=>{u.current.delete(h);});}}},[t,r,a,o,i,s,c]),He.useEffect(()=>p,[p]),{abortAll:p}}var Bb=1.3,TT=25e4,NT=3;function kT(e,t,r){let o=t.tileSpanMs/t.bucketMs,n=Math.max(1,Math.floor(TT/o/r));return Math.min(Math.max(1,Math.ceil(.5*e/t.tileSpanMs)),n)}function Ob(e){let{fetchTile:t,ladder:r,nativeMs:o,viewport:n,widthPx:a,maxFutureMs:i,targetPointsPerPx:s=1,concurrency:c=3,tileCostSeriesCount:l=NT,resetKey:d}=e,u=He.useMemo(()=>({targetPointsPerPx:s,nativeMs:o}),[s,o]),[p,m]=He.useState(()=>_u(n.endMs-n.startMs,Math.max(1,a),r,u)),[g,f]=He.useReducer(Eb,Db),x=He.useRef(n.endMs-n.startMs);He.useEffect(()=>{let B=n.endMs-n.startMs,W=_u(B,Math.max(1,a),r,u);if(W.id===p.id)return;let O=B/x.current;(O>Bb||O<1/Bb)&&(x.current=B,m(W));},[n,a,r,p.id,u]);let b=n.endMs-n.startMs,h=He.useMemo(()=>kT(b,p,l),[b,p,l]),y=He.useMemo(()=>rn(n,p,h),[n,p,h]),v=He.useMemo(()=>y.map(B=>er(B.tierId,B.index)).join(","),[y]),S=He.useRef(y);S.current=y;let w=He.useRef(n);w.current=n;let k=He.useRef(g);k.current=g;let{abortAll:L}=Ab({refs:y,refsKey:v,store:g,tier:p,viewport:n,fetchTile:t,dispatch:f,concurrency:c,...i!=null?{maxFutureMs:i}:{}}),R=He.useRef(null),D=He.useRef(false);He.useEffect(()=>{if(!D.current){D.current=true;return}L(),R.current=null,f({type:"reset"});},[L,d]);let V=He.useMemo(()=>S.current.map(B=>`${er(B.tierId,B.index)}:${g.get(er(B.tierId,B.index))?.status??"\u2205"}`).join("|"),[v,g]),A=He.useMemo(()=>{let B=Mb({viewport:w.current,targetTier:p,ladder:r,store:k.current,overscanTiles:h,prev:R.current});return R.current=B,B},[V,p,r,h,n.startMs,n.endMs]),T=He.useMemo(()=>S.current.some(B=>k.current.get(er(B.tierId,B.index))?.status==="loading"),[V]),N=He.useMemo(()=>{let B=S.current[0];return B?k.current.get(er(B.tierId,B.index))?.status==="empty":false},[V]);return {tier:p,series:A,loading:T,atDataStart:N}}function rp(e){let{initialViewport:t,...r}=e,[o,n]=He.useState(t),a=Ob({...r,viewport:o}),i=He.useCallback(c=>n(c),[]),s=He.useCallback(c=>n(c),[]);return {viewport:o,onViewportChange:i,jumpTo:s,...a}}function Rl(e=true){let[t,r]=He.useState(null);return He.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}function OF(e,t=1){return fe(e)?null:Math.abs(e)>=1e3?`${(e/1e3).toFixed(t)} MWh`:`${e.toFixed(t)} kWh`}function zF(e,t=1){return fe(e)?null:Math.abs(e)>=1e3?`${(e/1e3).toFixed(t)} MW`:`${e.toFixed(t)} kW`}function co({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=qr(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=qr(e,{type:"date"});return jsxRuntime.jsx("time",{dateTime:e.toISOString(),title:e.toISOString(),children:n})}if(typeof e=="number")return qr(e,{type:"number"});if(typeof e=="boolean")return qr(e,{type:"boolean"})}return String(e)}function UF(e,t,r){return He__namespace.default.useCallback(o=>co({value:o,formatter:e,emptyClassName:t,emptyText:r}),[e,t,r])}var jF=(e,t)=>({type:e,...t});function tr(...e){return e.filter(Boolean).join(" ")}var uo={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 bt(e,...t){return tr(uo[e],...t)}function st(e,t){let r=He.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 Dl=()=>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"})]}),zb=()=>jsxRuntime.jsx("path",{d:"M166 120 88 70",fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round"}),Hb=()=>jsxRuntime.jsx("path",{d:"M162 122 92 128",fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round"}),Wb=()=>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"})]}),LT=st("TextureRecloser",jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("rect",{x:"36",y:"36",width:"184",height:"184",fill:"none",stroke:"currentColor",strokeWidth:"16"}),jsxRuntime.jsx("text",{x:"128",y:"126",textAnchor:"middle",dominantBaseline:"central",fontFamily:"ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif",fontSize:"140",fontWeight:"700",fill:"currentColor",stroke:"none",children:"R"})]})),AT=st("TextureFuse",jsxRuntime.jsx("path",{d:"M20 128h72q18 -84 36 0q18 84 36 0h72",fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round",strokeLinejoin:"round"})),IT=st("TextureBreaker",jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("rect",{x:"36",y:"36",width:"184",height:"184",fill:"none",stroke:"currentColor",strokeWidth:"16"}),jsxRuntime.jsx("text",{x:"128",y:"126",textAnchor:"middle",dominantBaseline:"central",fontFamily:"ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif",fontSize:"140",fontWeight:"700",fill:"currentColor",stroke:"none",children:"B"})]})),FT=st("TextureSource",jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("path",{d:"M4 128h40M212 128h40",fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round"}),jsxRuntime.jsx("circle",{cx:"128",cy:"128",r:"84",fill:"none",stroke:"currentColor",strokeWidth:"16"}),jsxRuntime.jsx("path",{d:"M92 128q18 -84 36 0q18 84 36 0",fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round",strokeLinejoin:"round"})]})),BT=st("TextureCapacitor",jsxRuntime.jsx(jsxRuntime.Fragment,{children:jsxRuntime.jsx("path",{d:"M4 128h106M146 128h106M110 72v112M146 72v112",fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round"})})),VT=st("TextureRegulator",jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("circle",{cx:"128",cy:"128",r:"92",fill:"none",stroke:"currentColor",strokeWidth:"16"}),jsxRuntime.jsx("text",{x:"128",y:"126",textAnchor:"middle",dominantBaseline:"central",fontFamily:"ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif",fontSize:"128",fontWeight:"700",fill:"currentColor",stroke:"none",children:"V"})]})),OT=st("TextureSwitch",jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Dl,{}),jsxRuntime.jsx(zb,{})]})),zT=st("TextureSwitchClosed",jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Dl,{}),jsxRuntime.jsx(Hb,{})]})),HT=st("TextureSectionalizerOpen",jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Dl,{}),jsxRuntime.jsx(zb,{}),jsxRuntime.jsx(Wb,{})]})),WT=st("TextureSectionalizerClosed",jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Dl,{}),jsxRuntime.jsx(Hb,{}),jsxRuntime.jsx(Wb,{})]})),GT=st("TextureTransformer",jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("path",{d:"M40 64H88A22 22 0 0 1 88 108A22 22 0 0 1 88 152A22 22 0 0 1 88 196H40",fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round",strokeLinejoin:"round"}),jsxRuntime.jsx("path",{d:"M216 64H168A22 22 0 0 0 168 108A22 22 0 0 0 168 152A22 22 0 0 0 168 196H216",fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round",strokeLinejoin:"round"})]})),Ja={1:[128],2:[110,146],3:[92,128,164]},op=e=>jsxRuntime.jsx("path",{d:`M24 ${e}h208`,fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round"},e),np=e=>jsxRuntime.jsx("path",{d:`M24 ${e}h208`,fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round",pathLength:100,strokeDasharray:"20 20"},e),UT=st("TextureSinglePhaseOverheadLine",jsxRuntime.jsx(jsxRuntime.Fragment,{children:Ja[1].map(op)})),YT=st("TextureTwoPhaseOverheadLine",jsxRuntime.jsx(jsxRuntime.Fragment,{children:Ja[2].map(op)})),KT=st("TextureThreePhaseOverheadLine",jsxRuntime.jsx(jsxRuntime.Fragment,{children:Ja[3].map(op)})),jT=st("TextureSinglePhaseUndergroundLine",jsxRuntime.jsx(jsxRuntime.Fragment,{children:Ja[1].map(np)})),$T=st("TextureTwoPhaseUndergroundLine",jsxRuntime.jsx(jsxRuntime.Fragment,{children:Ja[2].map(np)})),qT=st("TextureThreePhaseUndergroundLine",jsxRuntime.jsx(jsxRuntime.Fragment,{children:Ja[3].map(np)})),JT=st("TextureSupportStructure",jsxRuntime.jsx("circle",{cx:"128",cy:"128",r:"40",fill:"currentColor",stroke:"none"})),Xa={TextureRecloser:LT,TextureFuse:AT,TextureBreaker:IT,TextureSource:FT,TextureCapacitor:BT,TextureRegulator:VT,TextureSwitch:OT,TextureSwitchClosed:zT,TextureSectionalizerOpen:HT,TextureSectionalizerClosed:WT,TextureTransformer:GT,TextureSinglePhaseOverheadLine:UT,TextureTwoPhaseOverheadLine:YT,TextureThreePhaseOverheadLine:KT,TextureSinglePhaseUndergroundLine:jT,TextureTwoPhaseUndergroundLine:$T,TextureThreePhaseUndergroundLine:qT,TextureSupportStructure:JT};if(process.env.NODE_ENV==="development")for(let e of Object.keys(Xa))e in Gb__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 Za={xs:16,sm:20,md:24,lg:32,xl:40,"2xl":48},U=He.memo(({name:e,size:t="md",color:r,weight:o="regular",className:n,ariaLabel:a,...i})=>{let s=Xa[e]??Gb__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 Za?Za[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}`})});U.displayName="Icon";var Kb=He.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 p=typeof n=="string"&&n in Za?Za[n]:n,m=r?typeof r=="string"&&r in Za?Za[r]:r:p*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:m,height:m},children:jsxRuntime.jsx(U,{...u,name:i,size:n,color:s,weight:c,className:a,ariaLabel:l})})});Kb.displayName="IconWithContainer";function fr({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 i2({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 lt({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,p)=>i2({...p,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(fr,{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}var c2={"--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 jb(e){let t={...e};for(let[r,o]of Object.entries(c2))if(e[r])for(let n of o)e[n]||(t[n]=e[r]);return t}function $b(e){return e.replace(/[{}<>]/g,"")}function qb(e){return Object.entries(e).map(([t,r])=>`${$b(t)}: ${$b(r)};`).join(" ")}function Xb({variables:e,darkVariables:t,children:r}){let n=He.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?jb(e):null,c=i?jb(t):null,l=s?`[data-brand-scope="${n}"] { ${qb(s)} }`:"",d=c?`.theme-dark [data-brand-scope="${n}"] { ${qb(c)} }`:"",u=[l,d].filter(Boolean).join(`
4
- `);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("style",{dangerouslySetInnerHTML:{__html:u}}),jsxRuntime.jsx("div",{"data-brand-scope":n,children:r})]})}var Qa=new Map,u2=8;function p2(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 Rt=(e,t="#000000")=>typeof window>"u"?t:Zb(e,t,0);function Zb(e,t,r){if(r>u2)return t;let o=e.startsWith("var(")?p2(e):e.startsWith("--")?e:`--${e}`;if(!e.startsWith("--")&&!e.startsWith("var(")&&!o.startsWith("--color-")&&(o=`--color-${o.slice(2)}`),Qa.has(o))return Qa.get(o);try{let n=document.body||document.documentElement,i=getComputedStyle(n).getPropertyValue(o).trim();if(i){if(i.startsWith("var(")){let l=Zb(i,t,r+1);return Qa.set(o,l),l}return Qa.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)"?(Qa.set(o,c),c):t}catch(n){return console.warn(`Failed to resolve color for ${e}:`,n),t}}var El=()=>{Qa.clear();},Vn=()=>{let e=[];for(let t=1;t<=12;t++){let r=Rt(`--color-viz-categorical-${t}`,"");r&&e.push(r);}return e.length===0?Qb():e},Qb=()=>["#5424db","#d92361","#e86a00","#5d89ff","#9a47e2","#f24cb8","#0ba286","#9c28af","#036e45","#52a119","#ff513d","#046691"],Ji=()=>Rt("--color-viz-default","#444ae1"),m2=(e,t)=>{let r={},o=Vn();return e.forEach((n,a)=>{t&&t[n]?r[n]=t[n]:r[n]=o[a%o.length];}),r};var _b=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},f2=e=>_b(e)?Rt("--color-text-primary","#333333"):Rt("--color-text-inverse","#ffffff"),ex=(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()},sp=e=>{let t=Vn(),r={};return e.forEach((o,n)=>{r[o]=t[n%t.length];}),r};var lp=(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)},cp=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]},tx=(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},dp=(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=Rt(i);n.push(s);}return n},up=(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=Rt(i);n.push(s);}return n},Xi=(e,t,r,o="viridis")=>{let n=dp(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]},Zi=(e,t,r,o,n="redYellowBlue")=>{let a=up(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 pp=He.createContext({mode:"system",colorMode:"light",isDarkTheme:false,toggleTheme:()=>{}}),Ht=()=>He.useContext(pp);function y2(){return typeof window>"u"?"light":window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function nx(){if(typeof window>"u")return "system";let e=localStorage.getItem("colorModePreference");return e==="light"||e==="dark"||e==="system"?e:"system"}function ax(e){return e==="system"?y2():e}var sx=({children:e})=>{let[t,r]=He.useState(nx),[o,n]=He.useState(()=>ax(nx())),a=o==="dark",i=He.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")),El();},[]);He.useEffect(()=>{El();let c=ax(t);if(n(c),i(c),t==="system"){let l=window.matchMedia("(prefers-color-scheme: dark)"),d=u=>{let p=u.matches?"dark":"light";n(p),i(p);};return l.addEventListener("change",d),()=>{l.removeEventListener("change",d);}}},[t,i]);let s=He.useCallback(()=>{r(c=>{let l=c==="system"?"light":c==="light"?"dark":"system";return localStorage.setItem("colorModePreference",l),l});},[]);return jsxRuntime.jsx(pp.Provider,{value:{mode:t,colorMode:o,isDarkTheme:a,toggleTheme:s},children:e})};function zn(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function On(e,t){return zn(e)?t.format(e):""}function lx(e){if(!zn(e.start)||!zn(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=>On(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=>On(i,a)}var v2=864e5;function cx(e,t){let r=t?.compact??false,o=e<5*v2,n=a=>{let i=a.getHours(),s=i>=12?"PM":"AM";return {displayHour:i%12||12,period:s}};return a=>{if(!zn(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 mp(e,t){if(!zn(e.start)||!zn(e.end))return ()=>"";let r=(e.end.getTime()-e.start.getTime())/(1e3*60*60),o=t?.compact??false,n=l=>d=>zn(d)?l(d):"";if(r<=24){if(o)return n(d=>{let u=d.getHours(),p=u>=12?"pm":"am";return `${u%12||12}${p}`});let l=new Intl.DateTimeFormat("en",{hour:"numeric",minute:"2-digit"});return d=>On(d,l)}if(r<=48){if(o)return n(d=>{let u=d.getMonth()+1,p=d.getDate(),m=d.getHours(),g=m>=12?"p":"a",f=m%12||12;return `${u}/${p} ${f}${g}`});let l=new Intl.DateTimeFormat("en",{month:"short",day:"numeric",hour:"numeric"});return d=>On(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=>On(d,l)}if(r<=720){if(o)return n(d=>{let u=d.getMonth()+1,p=d.getDate();return `${u}/${p}`});let l=new Intl.DateTimeFormat("en",{month:"short",day:"numeric"});return d=>On(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(),p=s?`/${l.getFullYear().toString().slice(-2)}`:"";return `${d}/${u}${p}`});let c=new Intl.DateTimeFormat("en",{month:"short",day:"numeric",...s&&{year:"numeric"}});return l=>On(l,c)}function Je(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 Ne(e,t){return reactAriaComponents.composeRenderProps(e,r=>tailwindMerge.twMerge(t,r))}var Ge={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 N2="flex font-medium justify-center items-center gap-2 text-center transition rounded-[var(--control-border-radius)] whitespace-nowrap box-border",k2="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",P2={primary:k2,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"},ux={full:"w-full",default:"w-fit"},R2="opacity-50 cursor-not-allowed pointer-events-none",M2="opacity-100 cursor-pointer",D2={"top-right":"-right-2 -top-2","top-left":"-left-2 -top-2","bottom-right":"-right-2 -bottom-2","bottom-left":"-left-2 -bottom-2"},E2={primary:"bg-action-primary text-[color:var(--color-action-primary-text)]",destructive:"bg-feedback-error-border text-text-inverse"};function L2(e){return !e||e==="default"||e==="brand"?"primary":e}function A2(e){let{variant:t="primary",size:r="md",isDisabled:o,fullWidth:n=false,isLoading:a=false}=e,i=L2(t),s=i==="unstyled"?"":`${N2} ${P2[i]}`;i!=="unstyled"&&(s+=` ${Ge[r].text} ${Ge[r].height} ${Ge[r].padding} ${Ge[r].gap}`),o||a?s+=` ${R2}`:s+=` ${M2}`,n?s+=` ${ux.full}`:s+=` ${ux.default}`;let c=i==="primary"?"focus-visible:outline-action-primary":void 0;return [s,Je(),c].filter(Boolean).join(" ")}function ie(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:p="primary",badgePosition:m="top-right",style:g,target:f,rel:x,...b}=e,h=t?jsxRuntime.jsx(U,{name:t,size:i,weight:c}):null,y=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s==="left"&&h,typeof r=="function"?null:r,s==="right"&&h]}),v=jsxRuntime.jsxs("div",{className:"relative inline-flex items-center justify-center",children:[jsxRuntime.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:a||jsxRuntime.jsx(U,{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})]}),S=(u??0)>0,w=tailwindMerge.twMerge(A2(e),d),k=l?{href:l,target:f,rel:x,...b}:{};if(l){let{onPress:R,onPressStart:D,onPressEnd:V,onPressChange:A,onPressUp:T,onAuxClick:N,onContextMenu:B,onDoubleClick:W,...O}=b;Object.assign(k,O);}let L=l?jsxRuntime.jsx(reactAriaComponents.Link,{...k,...o&&{"aria-busy":true},style:S?void 0:g,className:w,children:o?v:typeof r=="function"?(function(R){return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s==="left"&&h,r(R),s==="right"&&h]})}):y}):jsxRuntime.jsx(reactAriaComponents.Button,{...b,...o&&{"aria-busy":true},style:S?void 0:g,className:w,children:o?v:typeof r=="function"?(function(R){return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s==="left"&&h,r(R),s==="right"&&h]})}):y});return S?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("relative flex",d),style:g,children:[L,jsxRuntime.jsx("span",{className:`absolute ${D2[m]} flex h-5 w-5 items-center justify-center rounded-full ${E2[p]} text-xs font-medium`,"aria-label":`${u} items`,children:u})]}):L}function gp({action:e,defaultVariant:t,defaultSize:r="lg"}){let o=!!e.formId;return jsxRuntime.jsx(ie,{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(gp,{action:r,defaultVariant:"destructive"})}),jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[t&&jsxRuntime.jsx(gp,{action:t,defaultVariant:"secondary"}),e&&jsxRuntime.jsx(gp,{action:e,defaultVariant:"primary"})]})]})]})}var I2={heading:{sm:uo.headingSm,md:uo.headingMd,lg:uo.headingLg,xl:uo.headingXl},display:{sm:uo.displaySm,md:uo.displayMd,lg:uo.displayLg,xl:uo.displayXl}},F2={page:"h-16 leading-[62px]"};function rr({tag:e="h1",variant:t="heading",size:r="lg",height:o,className:n="",children:a}){let i=r==="xs"?"sm":r,s=I2[t][i],c=o?F2[o]:"";return jsxRuntime.jsx(e,{className:tr(s,"text-text-primary",c,n),children:a})}var Yt=({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(ie,{variant:"icon",onPress:a,className:"absolute left-6","aria-label":"Go back",children:jsxRuntime.jsx(U,{name:"CaretLeft","data-testid":"back-arrow"})}),i||jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[e&&jsxRuntime.jsx(rr,{size:"xs",children:e}),t&&!r&&jsxRuntime.jsx(ie,{variant:"icon",onPress:t,"aria-label":"Close dialog",children:jsxRuntime.jsx(U,{name:"X","data-testid":"close-button"})})]})]});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":p})=>{let[m,g]=He.useState(c===0);if(He.useEffect(()=>{if(c>0){let S=setTimeout(()=>g(true),c);return ()=>clearTimeout(S)}},[c]),!m)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)]",x=l&&e?(()=>{let S=typeof e=="number"?e:parseFloat(String(e));return isNaN(S)?"":`animation-duration-[${Math.max(.8,S/100)}s]`})():"",b=o==="pulse"?`animate-pulse ${x}`: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 ${x}`:"",h="rounded-sm";r==="circle"&&(h="rounded-full"),r==="text"&&(h="h-4 w-full rounded-sm");let y=a?"flex-1 min-w-0":"",v=s?Object.entries(s).map(([S,w])=>`${S}:w-[${w}]`).join(" "):"";return i?jsxRuntime.jsx("div",{className:"space-y-2","data-testid":p,children:i.map((S,w)=>jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(f,b,h,y,v,u),style:{width:S,height:t}},w))}):jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(f,b,h,y,v,u),style:{width:e,height:t},role:"presentation","aria-hidden":!d,"aria-label":d??void 0,"data-testid":p})},fx=({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 W2={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"},G2="rounded-lg",xp={square:"aspect-square",video:"aspect-video",wide:"aspect-[2/1]",auto:""},U2={start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between"};function Ue({variant:e="outlined",className:t,children:r,isLoading:o=false,layout:n="default"}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-full overflow-hidden",W2[e],G2,n==="flex"&&"flex flex-col",t),"data-testid":"card",children:o?jsxRuntime.jsx(J,{width:"100%",height:"100%",className:"rounded-none"}):r})}function hp({title:e,subtitle:t,actions:r,className:o,isLoading:n=false}){return n?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("p-6 pb-4",o),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?null:jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("p-6 pb-4",o),children:jsxRuntime.jsxs("div",{className:"flex justify-between items-start gap-4",children:[jsxRuntime.jsxs("div",{className:"min-w-0 flex-1",children:[e&&jsxRuntime.jsx("div",{className:"mb-1",children:typeof e=="string"?jsxRuntime.jsx(rr,{tag:"h3",size:"sm",className:"text-text-primary",children:e}):e}),t&&jsxRuntime.jsx("div",{className:bt("bodySm","text-text-secondary"),children:t})]}),r&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:r})]})})}function yp({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",xp[r],o),children:jsxRuntime.jsx(J,{width:"100%",height:"100%"})}):n?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-hidden",xp[r],o),children:n}):e?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-hidden",xp[r],o),children:jsxRuntime.jsx("img",{src:e,alt:t||"",className:"w-full h-full object-cover",loading:"lazy"})}):null}function vp({className:e,children:t,isLoading:r=false,fill:o=false}){let a=e?.match(/p(?:t|b|l|r|x|y)?-(?:\d+(?:\.\d+)?|px|\[.+?\])/)?"":"px-6 py-4";return r?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(a,o&&"flex-1 flex flex-col min-h-0",e),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("px-6 py-4 text-text-primary",o&&"flex-1 flex flex-col min-h-0",e),children:t}):null}function Cp({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",U2[r],e),children:t}):null}Ue.Header=hp;Ue.Media=yp;Ue.Content=vp;Ue.Footer=Cp;var Xr=class extends He.Component{constructor(){super(...arguments);ji(this,"state",{hasError:false});ji(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(Ue,{children:[this.props.title&&jsxRuntime.jsx(Ue.Header,{title:this.props.title}),jsxRuntime.jsx(Ue.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 $2=.3,q2=.5;function ct({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:p,footerContent:m,maxHeight:g="80vh",height:f,maxWidth:x="640px",contentPadding:b=true,showHandle:h=true,animationVariant:y="scale",className:v}){let[S,w]=He.useState(false),[k,L]=He.useState(0),[R,D]=He.useState(false),V=Rl(s),A=V?.height??null,T=V?.keyboardOffset??0,N=He.useRef(null),B=He.useRef(null),W=He.useRef(null),O=He.useRef({isDragging:false,startY:0,startTime:0,pointerId:null});He.useEffect(()=>{if(s){let M=setTimeout(()=>{w(true),setTimeout(()=>w(false),600);},400);return ()=>clearTimeout(M)}},[s]),He.useEffect(()=>{s||(L(0),D(false),O.current={isDragging:false,startY:0,startTime:0,pointerId:null});},[s]),He.useEffect(()=>{let M=B.current;if(!M||!s)return;let G=null,I=C=>{let H=C.target;H&&["INPUT","TEXTAREA","SELECT"].includes(H.tagName)&&(G&&clearTimeout(G),G=setTimeout(()=>{H.scrollIntoView({block:"nearest",behavior:"smooth"});},320));};return M.addEventListener("focusin",I),()=>{M.removeEventListener("focusin",I),G&&clearTimeout(G);}},[s]);let z=He.useCallback(M=>{l&&(M.pointerType!=="touch"&&M.pointerType!=="pen"||(W.current&&(clearTimeout(W.current),W.current=null),O.current={isDragging:true,startY:M.clientY,startTime:Date.now(),pointerId:M.pointerId},D(false),M.currentTarget.setPointerCapture(M.pointerId)));},[l]),j=He.useCallback(M=>{let{isDragging:G,startY:I,pointerId:C}=O.current;if(!G||M.pointerId!==C)return;let H=M.clientY-I;L(Math.max(0,H));},[]),K=He.useCallback(M=>{let{isDragging:G,startY:I,startTime:C,pointerId:H}=O.current;if(!G||M.pointerId!==H)return;let Y=M.clientY-I,F=Date.now()-C,_=Y/F;O.current={isDragging:false,startY:0,startTime:0,pointerId:null};let E=(N.current?.getBoundingClientRect().height??0)*$2;(Y>E||_>q2&&Y>50)&&l?(c?.(),L(0)):(D(true),L(0),W.current=setTimeout(()=>{D(false),W.current=null;},200));},[l,c]);if(!s)return null;let $=t||r,P=u||p||m;return jsxRuntime.jsx(Xr,{children:jsxRuntime.jsx(fr,{isOpen:s,onOpenChange:M=>{M||c?.();},isDismissable:l,transparent:d,style:{paddingBottom:T>0?`${T}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:N,className:tailwindMerge.twMerge("w-full",R&&"transition-transform duration-200"),style:{transform:k>0?`translateY(${k}px)`:void 0},children:jsxRuntime.jsxs(reactAriaComponents.Dialog,{className:tailwindMerge.twMerge("relative flex w-full flex-col overflow-hidden","bg-background-surface","shadow-2xl shadow-black/30 dark:shadow-black/60","border-t border-x border-border-default/40","outline-none focus:outline-none focus-visible:outline-none ring-0 focus:ring-0 focus-visible:ring-0 focus:shadow-none","origin-bottom",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)]",v),style:{maxWidth:x,...f?{height:f}:{maxHeight:/\d/.test(g)?A!==null?`min(${g}, ${Math.max(A-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:z,onPointerMove:j,onPointerUp:K,onPointerCancel:K,children:jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("h-1 w-12 rounded-full bg-border-muted transition-all duration-300","hover:bg-border-default hover:w-16",S&&"animate-[handle-wiggle_0.6s_ease-in-out]")})}),$&&(a?jsxRuntime.jsx(Yt,{title:t,headerContent:r,titleAlign:o,hideCloseIcon:n||!c,hasBackArrow:true,onBack:i??(()=>{}),onClose:c||(()=>{})}):jsxRuntime.jsx(Yt,{title:t,headerContent:r,titleAlign:o,hideCloseIcon:n||!c,onClose:c||(()=>{})})),jsxRuntime.jsx("div",{ref:B,className:tailwindMerge.twMerge("flex-1 min-h-0 overflow-y-auto overscroll-contain",b?"p-4":"p-0"),children:e}),P&&jsxRuntime.jsx(an,{primaryAction:u,secondaryAction:p,footerContent:m})]})})})})})}ct.displayName="Tray";function ti({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,p]=He.useState(false),{isMobile:m}=Qt();if(l&&m){let f=He__namespace.default.isValidElement(e)?He__namespace.default.cloneElement(e,{onPress:()=>p(true)}):e,h=(y=>{if(typeof y=="string")return y;if(He__namespace.default.isValidElement(y)){let v=y.props;if(typeof v.children=="string")return v.children;if(Array.isArray(v.children))return v.children.find(w=>typeof w=="string")||""}return ""})(e)||"Actions";return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:r,children:f}),jsxRuntime.jsx(ct,{isOpen:u,onClose:()=>p(false),title:h,contentPadding:false,headerContent:s,footerContent:c,children:jsxRuntime.jsx("div",{className:"flex flex-col",children:t.map(y=>jsxRuntime.jsxs("button",{onClick:()=>{y.disabled||(y.onAction?y.onAction():i?.(y),p(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(U,{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(lt,{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",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(_2,{id:f.id,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 _2({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",p={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],p[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],p[a],e==="right"?"justify-end":"justify-start",o&&"pointer-events-none opacity-50"),children:[t&&e==="left"&&jsxRuntime.jsx(U,{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(U,{name:t,size:r==="sm"?16:20,className:"ml-3 flex-shrink-0"})]})}var Io=({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 Lr({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(Io,{size:20,color:"text-text-secondary"}),t&&jsxRuntime.jsx("span",{className:"text-sm","aria-hidden":"true",children:t})]});return o||n}var ri=He.createContext({variant:"timeline",size:"md"});function Sx(){return He.useContext(ri)}function Fl(e){return He.isValidElement(e)&&e.type===Ol}function sN(e){return He.isValidElement(e)&&e.type===Vl}function Pp({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:p,hasMore:m=false,enableVirtualization:g,estimatedItemSize:f,loadingIndicator:x,height:b,maxHeight:h,...y}){let v=He.useRef(null),{isMobile:S}=Qt(),w=S?"stacked":e,k=n!==void 0&&a!==void 0,{scrollRef:L,loadMoreRef:R,virtualizer:D,virtualItems:V,isLoadingMore:A,computedLoadingState:T}=tn({items:n||[],onLoadMore:k?p:void 0,hasMore:k?m:false,isLoading:i,loadingState:s,enableVirtualization:k?g:false,estimatedItemSize:f||(w==="stacked"?120:150),overscan:5}),N=k&&L?L:v,B=He.useMemo(()=>({variant:w,size:t}),[w,t]),W=w==="timeline"?t==="sm"?"gap-4":"gap-6":"gap-0",O=w==="stacked"?"divide-y divide-border-subtle rounded-lg border border-border-subtle bg-background-surface":"",z={};if(k&&p&&(b?(z.height=typeof b=="number"?`${b}px`:b,z.overflowY="auto"):h?(z.maxHeight=typeof h=="number"?`${h}px`:h,z.overflowY="auto"):(z.height="600px",z.overflowY="auto")),k){let $=T==="loading"||i&&(!n||n.length===0);if($){let M=l?jsxRuntime.jsx(jsxRuntime.Fragment,{children:Array.from({length:d}).map((G,I)=>jsxRuntime.jsx("div",{children:l()},`skeleton-${I}`))}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:Array.from({length:d}).map((G,I)=>{let C=t==="sm"?"gap-2":"gap-3";if(w==="timeline"){let H=t==="sm"?"pt-3":"pt-4",Y=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 ${H}`,children:[jsxRuntime.jsx(J,{width:32,height:32,variant:"circle"}),I<d-1&&jsxRuntime.jsx("span",{className:"absolute top-[2rem] left-1/2 w-0 border-l-2 border-dotted -translate-x-1/2 h-[calc(100%+2.5rem)] border-border-muted"})]}),jsxRuntime.jsxs("div",{className:`min-w-0 flex flex-col ${C} ${Y} 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-${I}`)}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 ${C}`,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-${I}`)})});return jsxRuntime.jsx(ri.Provider,{value:B,children:jsxRuntime.jsx("div",{ref:N,"data-slot":"feed","data-variant":w,className:tailwindMerge.twMerge("flex flex-col",W,O,r),style:z,...y,children:M})})}if(c)return jsxRuntime.jsx(ri.Provider,{value:B,children:jsxRuntime.jsx("div",{ref:N,"data-slot":"feed","data-variant":w,className:tailwindMerge.twMerge("flex flex-col",W,O,r),style:z,...y,children:jsxRuntime.jsx("div",{className:"p-4 text-center text-feedback-error-text",children:c})})});if(!n||n.length===0)return jsxRuntime.jsx(ri.Provider,{value:B,children:jsxRuntime.jsx("div",{ref:N,"data-slot":"feed","data-variant":w,className:tailwindMerge.twMerge("flex flex-col",W,O,r),style:z,...y,children:jsxRuntime.jsx("div",{className:"p-4 text-center text-text-secondary",children:u})})});let P=D?V?.map(M=>({virtualItem:M,item:n[M.index],index:M.index}))||[]:n.map((M,G)=>({item:M,index:G,virtualItem:null}));return jsxRuntime.jsx(ri.Provider,{value:B,children:jsxRuntime.jsxs("div",{ref:N,"data-slot":"feed","data-variant":w,className:tailwindMerge.twMerge("flex flex-col",W,O,r),style:{...z,position:D?"relative":void 0},...y,children:[D?jsxRuntime.jsxs("div",{style:{height:`${D.getTotalSize()}px`,position:"relative"},children:[P.map(({item:M,index:G,virtualItem:I})=>{if(!M||!I)return null;let C=a(M,G),H=w==="timeline"&&He.isValidElement(C)&&Fl(C)?He.cloneElement(C,{showConnector:G!==n.length-1}):C;return jsxRuntime.jsx("div",{style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${I.start}px)`},"data-index":I.index,ref:D.measureElement,children:H},`item-${G}`)}),A&&jsxRuntime.jsx("div",{style:{position:"absolute",top:`${D.getTotalSize()}px`,left:0,width:"100%"},children:x||jsxRuntime.jsx(Lr,{state:"loading-more"})})]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[P.map(({item:M,index:G})=>{let I=a(M,G);if(w==="timeline"&&He.isValidElement(I)&&Fl(I)){let C=G===n.length-1;return jsxRuntime.jsx("div",{children:He.cloneElement(I,{showConnector:!C})},`item-${G}`)}return jsxRuntime.jsx("div",{children:I},`item-${G}`)}),A&&(x||jsxRuntime.jsx(Lr,{state:"loading-more"}))]}),p&&m&&!$&&jsxRuntime.jsx("div",{ref:R,style:D?{position:"absolute",top:`${D.getTotalSize()}px`,left:0,width:"100%",height:1}:{height:1,width:"100%"}})]})})}let j=He.Children.toArray(o),K=j.map(($,P)=>{if(Fl($)){let M=$.props.showConnector??(w==="timeline"&&P<j.length-1),G=w==="timeline"&&P>0;return He.cloneElement($,{showConnector:M,showIncomingConnector:G})}if(sN($)){let M=P===j.length-1;return He.cloneElement($,{__isLastGroup:M,__isFirstGroup:P===0})}return $});return jsxRuntime.jsx(ri.Provider,{value:B,children:jsxRuntime.jsx("div",{"data-slot":"feed","data-variant":w,className:tailwindMerge.twMerge("flex flex-col",W,O,r),...y,children:K})})}Pp.displayName="ActivityFeed";function Vl(e){let{variant:t,size:r}=Sx(),{title:o,description:n,actions:a,children:i,className:s,__isLastGroup:c=false,__isFirstGroup:l=false,...d}=e,u=He.Children.toArray(i),p=u.map((f,x)=>{if(Fl(f)){let b=f.props.showConnector??(t==="timeline"&&!(c&&x===u.length-1));return He.cloneElement(f,{showConnector:b,showIncomingConnector:t==="timeline"&&!(l&&x===0)})}return f}),m=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",m),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:p})]})}Vl.displayName="ActivityFeedGroup";var vx={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"},lN={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"},cN={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 Ol(e){let{variant:t,size:r}=Sx(),{title:o,description:n,timestamp:a,meta:i,media:s,actions:c,visual:l,icon:d,iconWeight:u,tone:p="neutral",surface:m,isHighlighted:g=false,showConnector:f=true,hideIndicator:x=false,interactive:b,className:h,children:y,onKeyDown:v,showIncomingConnector:S,...w}=e,k=l??(d?jsxRuntime.jsx(U,{name:d,weight:u||"fill",className:"h-4 w-4"}):null),L=m??(t==="stacked"?"minimal":"subtle"),R=r==="sm"?"gap-2":"gap-3",D="text-xs text-text-secondary",V=r==="sm"?"text-sm":"text-[15px]",A="text-xs text-text-secondary",T=b??typeof w.onClick=="function",N=P=>{if(!T){v?.(P);return}P.key===" "?P.preventDefault():P.key==="Enter"&&(P.preventDefault(),P.currentTarget.click()),v?.(P);},B=P=>{T&&P.key===" "&&(P.preventDefault(),P.currentTarget.click());},W=T?tailwindMerge.twMerge("group cursor-pointer",Je()):void 0,z=jsxRuntime.jsxs("div",{"data-slot":"connector",className:tailwindMerge.twMerge("relative flex h-full flex-col items-center",L==="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",vx[p]),children:k}),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"})]}),j=g?tailwindMerge.twMerge(lN[p],L==="minimal"?"rounded-md border border-border-muted":cN[p]):"";if(t==="stacked")return jsxRuntime.jsxs("div",{"data-slot":"item","data-variant":"stacked",role:T?"button":void 0,tabIndex:T?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"}[L],j,W,T?"transition-colors hover:bg-background-subtle/80":"",h),onKeyDown:N,onKeyUp:B,...w,children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[!x&&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",vx[p]),children:k}),jsxRuntime.jsx("div",{"data-slot":"title",className:"min-w-0 flex-1 text-sm font-semibold text-text-primary",children:o})]}),jsxRuntime.jsxs("div",{"data-slot":"content",className:tailwindMerge.twMerge("mt-3 flex flex-col",R),children:[n&&jsxRuntime.jsx("div",{"data-slot":"description",className:tailwindMerge.twMerge("text-text-secondary",V),children:n}),i&&jsxRuntime.jsx("div",{className:A,children:i}),s&&jsxRuntime.jsx("div",{className:"flex flex-col gap-2 text-sm text-text-secondary",children:s}),y,c&&jsxRuntime.jsx("div",{className:"flex flex-wrap gap-2 pt-1",children:c}),a&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("-mt-1.5",D),children:a})]})]});let K=L==="minimal"?r==="sm"?"py-2":"py-3":r==="sm"?"p-3":"p-4",$={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:T?"button":void 0,tabIndex:T?0:void 0,className:tailwindMerge.twMerge("group relative grid items-start gap-4 grid-cols-[3rem_1fr]",W,h),onKeyDown:N,onKeyUp:B,...w,children:[x?jsxRuntime.jsx("div",{}):z,jsxRuntime.jsxs("div",{"data-slot":"content",className:tailwindMerge.twMerge("min-w-0 flex flex-col",R,K,$[L],j,T?"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",D),children:a})]}),n&&jsxRuntime.jsx("div",{"data-slot":"description",className:tailwindMerge.twMerge("text-text-secondary",V),children:n}),i&&jsxRuntime.jsx("div",{className:A,children:i}),s&&jsxRuntime.jsx("div",{className:"flex flex-col gap-2 text-sm text-text-secondary",children:s}),y,c&&jsxRuntime.jsx("div",{className:"flex flex-wrap gap-2 pt-2",children:c})]})]})}Ol.displayName="ActivityItem";function Ar({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:p,transparentOverlay:m=false,maxWidth:g="600px",minWidth:f="400px",maxHeight:x="85vh",height:b,mobileMaxHeight:h="90vh",mobileHeight:y,contentPadding:v=true,className:S}){let w=Zt("(max-width: 767px)"),k=Rl(w&&e===void 0),L=k?.height??null,R=k?.keyboardOffset??0,D=He.useRef(null),V=He.useCallback(()=>{D.current&&D.current.scrollTop!==0&&(D.current.scrollTop=0);},[]),A=He.useRef(null),T=He.useRef(null);He.useEffect(()=>{let z=T.current;if(!z||!w)return;let j=null,K=$=>{let P=$.target;P&&["INPUT","TEXTAREA","SELECT"].includes(P.tagName)&&(j&&clearTimeout(j),j=setTimeout(()=>{P.scrollIntoView({block:"nearest",behavior:"smooth"});},320));};return z.addEventListener("focusin",K),()=>{z.removeEventListener("focusin",K),j&&clearTimeout(j);}},[w]);let N=He.useCallback(()=>{A.current&&A.current.scrollTop!==0&&(A.current.scrollTop=0);},[]);if(e===false)return null;let B=r||o,W=l||d||u||p,O=e!==void 0;return w?O?jsxRuntime.jsx(ct,{isOpen:e,onClose:t,title:r,headerContent:o,titleAlign:n,hideCloseIcon:a,hasBackArrow:i,onBack:s,primaryAction:l,secondaryAction:d,footerContent:p,transparentOverlay:m,maxHeight:h,height:y,maxWidth:g,contentPadding:v,showHandle:true,animationVariant:"scale",className:S,children:c}):jsxRuntime.jsx(Xr,{children:jsxRuntime.jsx(fr,{isDismissable:true,transparent:m,style:{paddingBottom:R>0?`${R}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:D,onScroll:V,className:tailwindMerge.twMerge("relative flex w-full flex-col","bg-background-surface","shadow-2xl shadow-black/20","border-t border-x border-border-default/40","rounded-t-xl","overflow-hidden","animate-in slide-in-from-bottom","duration-300 ease-out","data-[exiting]:animate-out data-[exiting]:slide-out-to-bottom","data-[exiting]:duration-200 data-[exiting]:ease-in",S),style:{...y?{height:y}:{maxHeight:/\d/.test(h)?L!==null?`min(${h}, ${Math.max(L-8,0)}px, 100dvh)`:`min(${h}, 100dvh)`:h}},children:[jsxRuntime.jsx("div",{className:"flex justify-center pt-2",children:jsxRuntime.jsx("div",{className:"h-1.5 w-12 rounded-full bg-border-muted"})}),B&&(i?jsxRuntime.jsx(Yt,{title:r,headerContent:o,titleAlign:n,hideCloseIcon:a||!t,hasBackArrow:true,onBack:s,onClose:t||(()=>{})}):jsxRuntime.jsx(Yt,{title:r,headerContent:o,titleAlign:n,hideCloseIcon:a||!t,onClose:t||(()=>{})})),jsxRuntime.jsx("div",{ref:T,className:tailwindMerge.twMerge("flex-1 min-h-0 overflow-y-auto overscroll-contain",v?"px-6 py-6":"p-0"),children:c}),W&&jsxRuntime.jsx(an,{primaryAction:l,secondaryAction:d,tertiaryAction:u,footerContent:p})]})})})}):jsxRuntime.jsx(Xr,{children:jsxRuntime.jsx(fr,{...O?{isOpen:e,onOpenChange:z=>{!z&&t&&t();}}:{},isDismissable:true,transparent:m,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:A,onScroll:N,className:tailwindMerge.twMerge("relative flex w-full flex-col","bg-background-surface","shadow-2xl shadow-black/20","border border-border-default/50","rounded-md","overflow-hidden","outline-none focus:outline-none focus-visible:outline-none ring-0 focus:ring-0","animate-in fade-in zoom-in-96 slide-in-from-bottom-2","duration-300 ease-out","data-[exiting]:animate-out data-[exiting]:fade-out data-[exiting]:zoom-out-95","data-[exiting]:duration-200 data-[exiting]:ease-in",S),style:{minWidth:f,...b?{height:b}:{maxHeight:x}},children:[B&&(i?jsxRuntime.jsx(Yt,{title:r,headerContent:o,titleAlign:n,hideCloseIcon:a||!t,hasBackArrow:true,onBack:s,onClose:t||(()=>{})}):jsxRuntime.jsx(Yt,{title:r,headerContent:o,titleAlign:n,hideCloseIcon:a||!t,onClose:t||(()=>{})})),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-1 min-h-0 overflow-y-auto",v?"px-6 py-6":"p-0"),children:c}),W&&jsxRuntime.jsx(an,{primaryAction:l,secondaryAction:d,tertiaryAction:u,footerContent:p})]})})})})}function Rx({isOpen:e,onClose:t,title:r,message:o,confirmLabel:n="OK",confirmVariant:a="primary",maxWidth:i="400px",minWidth:s="320px"}){return jsxRuntime.jsx(Ar,{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},gr=He.memo(({name:e,size:t="md",color:r,weight:o="regular",className:n,ariaLabel:a,...i})=>{let s=uN__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}`})});gr.displayName="IconSSR";var pN=He.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 p=typeof n=="string"?n in sn?sn[n]:sn.md:n,m=r?typeof r=="string"?r in sn?sn[r]:p*1.75:r:p*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:m,height:m},children:jsxRuntime.jsx(gr,{...u,name:i,size:n,color:s,weight:c,className:a,ariaLabel:l})})});pN.displayName="IconSSRWithContainer";var oi=({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 Hl=({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=m=>m.length>0&&"items"in m[0],d=m=>l(m)?m:[{id:"default-section",items:m}],u=(m,g,f)=>jsxRuntime.jsxs("div",{className:"space-y-0.5",children:[m.title&&jsxRuntime.jsx("div",{className:"px-6 py-1 text-xs font-medium text-text-secondary uppercase tracking-wider",children:m.title}),jsxRuntime.jsx("div",{className:"space-y-0.5",children:m.items.map(x=>p(x))}),g<f-1&&jsxRuntime.jsx("div",{className:"border-b border-border-subtle mx-6 my-2"})]},m.id),p=(m,g=false)=>{if(m.children&&m.children.length>0){let b=`category-${m.id}`;return jsxRuntime.jsxs("div",{className:"group/category",children:[jsxRuntime.jsx("input",{type:"checkbox",id:b,className:"peer/category hidden",defaultChecked:m.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:[m.icon&&jsxRuntime.jsx("span",{className:"flex-shrink-0 w-3.5 h-3.5 flex items-center justify-center transition-all duration-200",children:m.icon}),jsxRuntime.jsx("span",{className:"transition-all duration-200",children:m.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:m.children.map(h=>p(h,true))})]},m.id)}let f={href:m.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"} ${m.isActive?`bg-action-brand/10 text-action-brand ${g?"":"border-l-2 border-action-brand"}`:"text-text-primary hover:text-text-primary"}`,"aria-current":m.isActive?"page":void 0},x=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[m.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:m.icon}),jsxRuntime.jsx("span",{className:"transition-all duration-200",children:m.label})]});return a==="a"?jsxRuntime.jsx("a",{...f,children:x},m.id):jsxRuntime.jsx(a,{...f,children:x},m.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(oi,{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(gr,{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((m,g,f)=>u(m,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(m=>p(m))})}),r&&jsxRuntime.jsx("div",{className:"flex-shrink-0 border-t border-border-default",children:jsxRuntime.jsx("div",{children:r})})]})]})};function Un(e){return e.id??e.href??e.label}function Ep(e,t,r=[]){for(let o of e){if(o.href===t||o.id===t)return o.children?.length&&o.pushOnSelect!==false?[...r,Un(o)]:r;if(o.children?.length){let n=Ep(o.children,t,[...r,Un(o)]);if(n)return n}}return null}function Ax(e,t){let r=[],o=e;for(let n of t){let a=o.find(i=>Un(i)===n);if(!a)break;r.push(a),o=a.children??[];}return r}function fN(e,t,r){let o=t.length>0?[...e,...t]:e,n=[{path:[],items:e,bottomItems:t.length>0?t:void 0}],a=Ax(o,r),i=[];for(let s of a){if(!s.children?.length)break;i=[...i,Un(s)],n.push({path:i,parent:s,items:s.children});}return n}var gN=({href:e,...t})=>jsxRuntime.jsx("a",{href:e,...t}),Ex=[];function bN(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 xN(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 Wl({items:e,groups:t,bottomItems:r,value:o,defaultStack:n,stack:a,onStackChange:i,onSelect:s,linkComponent:c=gN,showLogo:l=false,logo:d,header:u,footer:p,mobileMenuId:m,sidebarCollapseId:g,rootLabel:f,sticky:x=true,width:b=260,ariaLabel:h="Navigation",theme:y,animated:v=true,style:S,className:w}){process.env.NODE_ENV!=="production"&&t&&e&&console.warn("[StackNav] Both `items` and `groups` were provided. `groups` takes precedence and `items` is ignored.");let k=He__namespace.useMemo(()=>t?bN(t):e??Ex,[t,e]),L=r??Ex,R=He__namespace.useMemo(()=>L.length>0?[...k,...L]:k,[k,L]);He__namespace.useEffect(()=>{xN(k,L);},[k,L]);let[D,V]=He__namespace.useState(()=>a!==void 0?a:n!==void 0?n:o?Ep(R,o)??[]:[]),A=a??D,T=He__namespace.useCallback(P=>{a===void 0&&V(P),i?.(P);},[a,i]),N=He__namespace.useRef(false);He__namespace.useEffect(()=>{if(a!==void 0||!N.current&&(N.current=true,n!==void 0)||!o)return;let P=Ep(R,o);V(M=>{let G=P??[];return SN(M,G)?M:G});},[o,R,a,n]);let B=He__namespace.useMemo(()=>fN(k,L,A),[k,L,A]),W=He__namespace.useCallback((P,M)=>{P.children?.length&&T([...M,Un(P)]);},[T]),O=He__namespace.useCallback(()=>{T(A.slice(0,-1));},[A,T]),z=He__namespace.useCallback((P,M)=>{let G=Ax(R,A);if(s?.(M,G),!!M.children?.length){let C=B[B.length-1]?.path??[];W(M,C);}M.href||P.preventDefault();},[R,A,s,W,B]),j=He__namespace.useCallback(P=>o?P.href===o||P.id===o:false,[o]),K=x?"sticky top-0 h-[100dvh]":"",$={...b!=null?{width:b}:{},...hN(y),...S};return jsxRuntime.jsxs("aside",{role:"navigation","aria-label":h,"data-edges-stack-nav":"",className:tailwindMerge.twMerge("edges-stack-nav flex flex-col flex-shrink-0 overflow-hidden",v&&"edges-stack-nav--animated",K,w),style:$,children:[l?jsxRuntime.jsxs("div",{className:"edges-stack-nav__logo",children:[jsxRuntime.jsx("div",{className:"relative top-[-1px]",children:d??jsxRuntime.jsx(oi,{showWordmark:true,width:120})}),g?jsxRuntime.jsx("label",{htmlFor:g,className:"hidden md:flex items-center justify-center w-8 h-8 rounded hover:bg-background-hover cursor-pointer transition-all duration-200 relative top-[-1px]","aria-label":"Collapse sidebar",children:jsxRuntime.jsx(gr,{name:"Sidebar",size:"sm"})}):null,m?jsxRuntime.jsx("label",{htmlFor:m,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,u?jsxRuntime.jsx("div",{className:"edges-stack-nav__header",children:u}):null,jsxRuntime.jsx("div",{className:"relative flex-1 overflow-hidden",children:B.map((P,M)=>{let G=P.path.length,I=M===B.length-1,C=M<B.length-1,H=G===0?"__root__":P.path.join("/");return jsxRuntime.jsx(yN,{pane:P,parentPath:P.path.slice(0,-1),depth:G,isTop:I,isAbove:C,rootLabel:f,LinkComponent:c,isActive:j,onSelect:z,onBack:O,animated:v},H)})}),p?jsxRuntime.jsx("div",{className:"edges-stack-nav__footer",children:p}):null]})}function yN({pane:e,depth:t,isTop:r,isAbove:o,rootLabel:n,LinkComponent:a,isActive:i,onSelect:s,onBack:c,animated:l}){let d=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",!l&&"edges-stack-nav__pane--instant",d),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(CN,{}),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(u=>jsxRuntime.jsx(Lx,{item:u,LinkComponent:a,isActive:i(u),onSelect:s},Un(u))),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(u=>jsxRuntime.jsx(Lx,{item:u,LinkComponent:a,isActive:i(u),onSelect:s},Un(u)))}):null]})}function Lx({item:e,LinkComponent:t,isActive:r,onSelect:o}){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 n=!!e.children?.length,a=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",r&&"edges-stack-nav__row--active font-semibold"),i=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("span",{className:"flex min-w-0 items-center gap-2",children:[e.leading??e.icon?jsxRuntime.jsx("span",{className:"inline-flex items-center flex-shrink-0",children:e.leading??e.icon}):null,jsxRuntime.jsx("span",{className:"truncate",children:e.label})]}),jsxRuntime.jsxs("span",{className:"flex flex-shrink-0 items-center gap-2 text-text-secondary",children:[e.trailing,n?jsxRuntime.jsx(vN,{}):null]})]});return e.href?jsxRuntime.jsx(t,{href:e.href,"aria-label":e.ariaLabel,className:a,"aria-current":r?"page":void 0,onClick:s=>o(s,e),children:i}):jsxRuntime.jsx("button",{type:"button",className:a,"aria-label":e.ariaLabel,onClick:s=>{o(s,e);},children:i})}function vN(){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 CN(){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 SN(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 os=({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(gr,{name:"Monitor",size:"sm"});case "light":return jsxRuntime.jsx(gr,{name:"Sun",size:"sm"});case "dark":return jsxRuntime.jsx(gr,{name:"Moon",size:"sm"})}},p=()=>{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(gr,{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":p(),children:u()}),c,o&&jsxRuntime.jsx("div",{className:"flex items-center",children:o})]})]})})};function Fx({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 He.useEffect(()=>{if(!c)return;let u=document.getElementById(d),p=document.getElementById(l),m=document.querySelector("[data-app-shell]"),g=document.getElementById("app-sidebar");if(!u||!m||!g)return;let f=null,x=false;try{let D=localStorage.getItem("sidebar-collapsed");D!==null&&(u.checked=D==="true");}catch{}let b=()=>{try{localStorage.setItem("sidebar-collapsed",String(u.checked));}catch{}u.checked?x=true:(f&&(clearTimeout(f),f=null),m.removeAttribute("data-peek"),x=false);};u.addEventListener("change",b);let h=D=>{D.key==="Escape"&&(p&&(p.checked=false),m.removeAttribute("data-peek"));};document.addEventListener("keydown",h);let y=null;p&&(y=()=>{document.body.style.overflow=p.checked?"hidden":"";},p.addEventListener("change",y));let v=D=>{let A=D.target.closest("a");A&&A.href&&window.innerWidth<768&&p&&setTimeout(()=>{p.checked=false,document.body.style.overflow="";},100);};g.addEventListener("click",v);let S=16,w=200,k=()=>{f&&(clearTimeout(f),f=null),m.getAttribute("data-peek")!=="true"&&m.setAttribute("data-peek","true");},L=()=>{f&&clearTimeout(f),f=setTimeout(()=>{m.removeAttribute("data-peek"),f=null;},w);},R=D=>{if(window.innerWidth<768||!u.checked)return;let V=g.contains(D.target);if(x&&!V&&(x=false),x)return;D.clientX<=S||V?k():m.getAttribute("data-peek")==="true"&&L();};return document.addEventListener("mousemove",R),()=>{u.removeEventListener("change",b),document.removeEventListener("keydown",h),p&&y&&p.removeEventListener("change",y),g.removeEventListener("click",v),document.removeEventListener("mousemove",R),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(os,{...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(gr,{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(Wl,{...t,mobileMenuId:l,sidebarCollapseId:d,sticky:false,width:null,className:["h-full !border-r-0",t.className].filter(Boolean).join(" ")}):jsxRuntime.jsx(Hl,{...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(os,{...r,className:r?.className})}),jsxRuntime.jsx("main",{id:"app-content",className:["flex-1 overflow-y-auto overflow-x-hidden bg-background-body",n,a,s||""].join(" "),role:"main",children:o})]})]}),jsxRuntime.jsx("style",{dangerouslySetInnerHTML:{__html:`
1
+ 'use strict';var reactAriaComponents=require('react-aria-components'),Oe=require('react'),fv=require('fuse.js'),reactVirtual=require('@tanstack/react-virtual'),zv=require('papaparse'),jsxRuntime=require('react/jsx-runtime'),luxon=require('luxon'),tailwindMerge=require('tailwind-merge'),km=require('@phosphor-icons/react'),nS=require('@phosphor-icons/react/ssr'),reactAria=require('react-aria'),reactStately=require('react-stately'),lucideReact=require('lucide-react'),framerMotion=require('framer-motion'),eN=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'),brush=require('@visx/brush'),pattern=require('@visx/pattern'),d3Scale=require('d3-scale'),date=require('@internationalized/date'),core=require('@dnd-kit/core'),sortable=require('@dnd-kit/sortable'),utilities=require('@dnd-kit/utilities'),reactDom=require('react-dom'),cM=require('react-map-gl'),server=require('react-dom/server'),ND=require('@tiptap/extension-link'),react=require('@tiptap/react'),menus=require('@tiptap/react/menus'),RD=require('@tiptap/starter-kit');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 Oe__namespace=/*#__PURE__*/_interopNamespace(Oe);var fv__default=/*#__PURE__*/_interopDefault(fv);var zv__default=/*#__PURE__*/_interopDefault(zv);var km__namespace=/*#__PURE__*/_interopNamespace(km);var nS__namespace=/*#__PURE__*/_interopNamespace(nS);var eN__default=/*#__PURE__*/_interopDefault(eN);var cM__default=/*#__PURE__*/_interopDefault(cM);var ND__default=/*#__PURE__*/_interopDefault(ND);var RD__default=/*#__PURE__*/_interopDefault(RD);var nv=Object.create;var xc=Object.defineProperty;var av=Object.getOwnPropertyDescriptor;var iv=Object.getOwnPropertyNames;var sv=Object.getPrototypeOf,lv=Object.prototype.hasOwnProperty;var cv=(e,t,r)=>t in e?xc(e,t,{enumerable:true,configurable:true,writable:true,value:r}):e[t]=r;var dv=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var uv=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of iv(t))!lv.call(e,n)&&n!==r&&xc(e,n,{get:()=>t[n],enumerable:!(o=av(t,n))||o.enumerable});return e};var Ep=(e,t,r)=>(r=e!=null?nv(sv(e)):{},uv(xc(r,"default",{value:e,enumerable:true}),e));var Xa=(e,t,r)=>cv(e,typeof t!="symbol"?t+"":t,r);var wc=dv((Cc,Sc)=>{(function(e,t){typeof define=="function"&&define.amd?define([],t):typeof Cc<"u"?t():(t(),e.FileSaver={});})(Cc,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,x=f.createObjectURL(s);d?d.location=x:location.href=x,d=null,setTimeout(function(){f.revokeObjectURL(x);},4e4);}});n.saveAs=i.saveAs=i,typeof Sc<"u"&&(Sc.exports=i);});});function Yt(e,t=false){let[r,o]=Oe.useState(t);return Oe.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 nn={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"};function Jt(e="base"){let t=Yt(`(min-width: ${nn.sm})`,e!=="base"),r=Yt(`(min-width: ${nn.md})`,["md","lg","xl","2xl"].includes(e)),o=Yt(`(min-width: ${nn.lg})`,["lg","xl","2xl"].includes(e)),n=Yt(`(min-width: ${nn.xl})`,["xl","2xl"].includes(e)),a=Yt(`(min-width: ${nn["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 ja(e,t){return t.split(".").reduce((r,o)=>r?.[o],e)}function gv(e,t){let r=ja(e,t.field),o=t.value;switch(t.operator){case "eq":return r===o;case "neq":return r!==o;case "in":return Array.isArray(o)?Array.isArray(r)?r.some(n=>o.includes(n)):o.includes(r):false;case "nin":return Array.isArray(o)?Array.isArray(r)?!r.some(n=>o.includes(n)):!o.includes(r):false;case "gt":return r instanceof Date&&typeof o=="string"?r>new Date(o):r>o;case "gte":return r instanceof Date&&typeof o=="string"?r>=new Date(o):r>=o;case "lt":return r instanceof Date&&typeof o=="string"?r<new Date(o):r<o;case "lte":return r instanceof Date&&typeof o=="string"?r<=new Date(o):r<=o;case "contains":return typeof r!="string"?false:r.toLowerCase().includes(String(o).toLowerCase());case "startsWith":return typeof r!="string"?false:r.toLowerCase().startsWith(String(o).toLowerCase());case "endsWith":return typeof r!="string"?false:r.toLowerCase().endsWith(String(o).toLowerCase());default:return false}}function Ap(e,t){if(t.conditions.length===0)return true;let r=t.conditions.map(o=>"conditions"in o?Ap(e,o):gv(e,o));return t.logic==="AND"?r.every(Boolean):r.some(Boolean)}function bv(e,t){return !t||t.conditions.length===0?e:e.filter(r=>Ap(r,t))}function xv(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 hv(e,t){return t?[...e].sort((r,o)=>{let n=ja(r,t.field),a=ja(o,t.field);return xv(n,a,t.direction)}):e}function yv(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 fv__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=ja(s,c);return l==null?false:String(l).toLowerCase().includes(i)}))}function vv(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=ja(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 hc({data:e,filters:t,sort:r,search:o,facetConfigs:n=[]}){let a=yv(e,o||null);a=bv(a,t||null);let i=vv(a,n);return a=hv(a,r||null),{data:a,facetCounts:i,resultCount:a.length}}function Qi({data:e,filters:t,sort:r,search:o,facetConfigs:n=[]}){return Oe.useMemo(()=>hc({data:e,filters:t,sort:r,search:o,facetConfigs:n}),[e,t,r,o,n])}var yc=Oe.createContext(null);function Ip(e){let t=Oe.useContext(yc),r=Oe.useRef(null),o=e??r,[n,a]=Oe.useState(()=>t||{current:"xl",isSm:true,isMd:true,isLg:true,isXl:true,is2Xl:false,isMobile:false,isDesktop:true});return Oe.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 Po(e,t=300){let[r,o]=Oe.useState(e);return Oe.useEffect(()=>{let n=setTimeout(()=>o(e),t);return ()=>clearTimeout(n)},[e,t]),r}function Zi({filters:e,sort:t,search:r,onStateChange:o,searchDebounce:n=300}){let a=Po(r,n),i=Oe.useRef(true);Oe.useEffect(()=>{if(i.current){i.current=false;return}o({filters:e,sort:t,search:a});},[e,t,a,o]);}function Fp(e){return e.mode==="client"?Qi({data:e.data,filters:e.filters,sort:e.sort,search:e.search,facetConfigs:e.facetConfigs}):(Zi({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})}function oa(){let[e,t]=Oe.useState({width:0,height:0}),r=Oe.useRef(null),o=Oe.useRef(void 0),n=Oe.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 Oe.useEffect(()=>()=>{o.current&&cancelAnimationFrame(o.current),r.current&&r.current.disconnect();},[]),{ref:n,width:e.width,height:e.height}}function Ro({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=Oe.useRef(null),u=Oe.useRef(null),m=Oe.useRef(false),[p,g]=Oe.useState(0);Oe.useEffect(()=>{u.current&&(c||d.current)&&g(D=>D+1);},[c,e.length]);let f=n||(o?e.length===0?"loading":"loading-more":"idle"),x=f==="loading",b=f==="loading-more",h=a!==void 0?a:e.length>=100,y=reactVirtual.useVirtualizer({count:e.length,getScrollElement:()=>c||d.current,estimateSize:()=>i,overscan:s}),v=h?y:null,S=h?y.getVirtualItems():[];Oe.useEffect(()=>{let D=u.current,k=c||d.current;if(!D||!k||!r||o||!t)return;let P=new IntersectionObserver(I=>{let[M]=I;M?.isIntersecting&&!m.current&&r&&t&&(m.current=true,Promise.resolve(t()).finally(()=>{m.current=false;}));},{root:k,rootMargin:`0px 0px ${l}px 0px`,threshold:0});return P.observe(D),()=>{P.disconnect();}},[r,o,t,c,l,p]);let N=Oe.useCallback((D,k)=>{v?v.scrollToIndex(D,k):d.current&&d.current.children[D]?.scrollIntoView({behavior:"smooth",block:k?.align||"start"});},[v]),w=Oe.useCallback(()=>{v?v.scrollToIndex(0,{align:"start"}):d.current&&d.current.scrollTo({top:0,behavior:"smooth"});},[v]);return {virtualizer:v,virtualItems:S,computedLoadingState:f,isInitialLoad:x,isLoadingMore:b,scrollRef:d,loadMoreRef:u,scrollToIndex:N,scrollToTop:w}}function _i(e,t){let[r,o]=Oe.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}});Oe.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=Oe.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=Oe.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 Hp=Ep(wc());function Ov(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 Hv(e,t){return t.accessor?typeof t.accessor=="function"?t.accessor(e):e[t.accessor]:null}function Wp(e,t){let r=Hv(t,e);return e.exportValue?e.exportValue(r,t)??"":r==null?"":r instanceof Date?r.toISOString():typeof r=="object"?JSON.stringify(r):r}function Nc(e){return e.filter(t=>t.exportable!==false)}function Gp(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 kc(e){let{columns:t,data:r,metadata:o={}}=e;try{let n=Nc(t);if(n.length===0)throw new Error("No exportable columns found");Gp(n);let a=r.map(l=>{let d={};for(let u of n){let m=u.exportLabel||u.label;d[m]=Wp(u,l);}return d}),i=zv__default.default.unparse(a,{header:!0,skipEmptyLines:!0}),s=new Blob([i],{type:"text/csv;charset=utf-8;"}),c=Ov(o.filename||"table-data","csv",o.timestamp!==!1);(0,Hp.saveAs)(s,c);}catch(n){throw new Error(`CSV export failed: ${n instanceof Error?n.message:"Unknown error"}`)}}function Wv(e){let{columns:t,data:r}=e,o=Nc(t);return Gp(o),r.map(n=>{let a={};for(let i of o){let s=i.exportLabel||i.label;a[s]=Wp(i,n);}return a})}function Gv(e){return Nc(e).map(t=>t.exportLabel||t.label)}function Up({columns:e,data:t,metadata:r}){let n=e.filter(i=>i.exportable!==false).length>0&&t.length>0;return {exportCSV:Oe.useCallback(async()=>{try{await kc({columns:e,data:t,metadata:r});}catch(i){throw console.error("Table export failed:",i),i}},[e,t,r]),canExport:n}}var Tc=class{constructor(){Xa(this,"formatters",new Map);}register(t,r){this.formatters.set(t,r);}format(t,r,...o){let n=this.formatters.get(t);return n?n(r,...o):(console.warn(`No formatter registered for key: ${t}`),null)}has(t){return this.formatters.has(t)}keys(){return Array.from(this.formatters.keys())}unregister(t){this.formatters.delete(t);}clear(){this.formatters.clear();}},ne=new Tc;var Mo=(e,t="Yes",r="No")=>e==null?null:e?t:r,Kv=e=>Mo(e,"Enabled","Disabled"),Yv=e=>Mo(e,"On","Off"),Jv=e=>Mo(e,"Active","Inactive"),Xv=e=>Mo(e,"True","False"),jv=e=>Mo(e,"\u2713","\u2717"),Do=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},Kp=(e,t)=>{if(t.hideWhenNull&&e==null)return null;if(e==null)return t.nullText??null;let r=Do(e);return r===null?t.nullText??null:Mo(r,t.trueText??"Yes",t.falseText??"No")};ne.register("boolean",(e,t,r)=>{let o=Do(e);return o!==null?Mo(o,typeof t=="string"?t:"Yes",typeof r=="string"?r:"No"):null});ne.register("yesNo",e=>{let t=Do(e);return t!==null?Mo(t,"Yes","No"):null});ne.register("enabledDisabled",e=>{let t=Do(e);return t!==null?Kv(t):null});ne.register("onOff",e=>{let t=Do(e);return t!==null?Yv(t):null});ne.register("activeInactive",e=>{let t=Do(e);return t!==null?Jv(t):null});ne.register("trueFalse",e=>{let t=Do(e);return t!==null?Xv(t):null});ne.register("checkmark",e=>{let t=Do(e);return t!==null?jv(t):null});var pe=e=>e==null,Yp=(e,t=0)=>pe(e)?null:`${e.toFixed(t)}%`,Jp=(e,t=0)=>Yp(e,t)??"\u2014",qv=e=>pe(e)?null:Math.round(e).toString(),Qv=(e,t=1)=>pe(e)?null:e.toFixed(t),Zv=(e,t,r=true)=>{if(pe(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)},_v=(e,t="short")=>pe(e)?null:new Intl.NumberFormat("en-US",{notation:"compact",compactDisplay:t}).format(e),$v=(e,t=2)=>pe(e)?null:e.toExponential(t),Xp=(e,t="USD",r)=>{if(pe(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)},jp=(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)},qp=(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:Xp(r,t.currency,t)};ne.register("percentage",(e,t)=>typeof e=="number"?Yp(e,typeof t=="number"?t:0):null);ne.register("integer",e=>typeof e=="number"?qv(e):null);ne.register("float",(e,t)=>typeof e=="number"?Qv(e,typeof t=="number"?t:1):null);ne.register("number",(e,t,r)=>{let o=typeof e=="string"?parseFloat(e):Number(e);return isNaN(o)?null:Zv(o,typeof t=="number"?t:void 0,typeof r=="boolean"?r:true)});ne.register("compact",(e,t)=>typeof e=="number"?_v(e,t==="long"?"long":"short"):null);ne.register("scientific",(e,t)=>typeof e=="number"?$v(e,typeof t=="number"?t:2):null);ne.register("currency",(e,t,r)=>typeof e=="number"?Xp(e,typeof t=="string"?t:"USD",typeof r=="object"&&r!==null?r:{}):null);function LE(e,t=1){return pe(e)?null:Math.abs(e)>=1e3?`${(e/1e3).toFixed(t)} MWh`:`${e.toFixed(t)} kWh`}function EE(e,t=1){return pe(e)?null:Math.abs(e)>=1e3?`${(e/1e3).toFixed(t)} MW`:`${e.toFixed(t)} kW`}function Xr({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=Fr(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=Fr(e,{type:"date"});return jsxRuntime.jsx("time",{dateTime:e.toISOString(),title:e.toISOString(),children:n})}if(typeof e=="number")return Fr(e,{type:"number"});if(typeof e=="boolean")return Fr(e,{type:"boolean"})}return String(e)}function BE(e,t,r){return Oe__namespace.default.useCallback(o=>Xr({value:o,formatter:e,emptyClassName:t,emptyText:r}),[e,t,r])}var Pc=(e,t=0)=>{if(pe(e))return null;let r=e*1e3;return t===0?`${Math.round(r)} mA`:`${r.toFixed(t)} mA`},es=(e,t=1)=>pe(e)?null:`${e.toFixed(t)} A`,Rc=(e,t=2)=>pe(e)?null:`${(e/1e3).toFixed(t)} kA`,t0=(e,t)=>{if(pe(e))return null;let r=Math.abs(e);return r>=1e3?Rc(e,t??2):r<1?Pc(e,t??0):es(e,t??1)},Mc=(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 Rc(r,o??2);case "mA":return Pc(r,o??0);case "A":return es(r,o??1)}return t.autoScale!==false?t0(r,o):es(r,o??1)};ne.register("current",Mc);var WE=Pc,GE=es,UE=Rc;var an=e=>{if(e==null)return null;if(e instanceof Date)return luxon.DateTime.fromJSDate(e);if(typeof e=="string"){let t=luxon.DateTime.fromISO(e);return t.isValid?t:null}if(typeof e=="number"){let t=luxon.DateTime.fromMillis(e);return t.isValid?t:null}return null},r0=(e,t=false,r)=>{if(!e)return null;let o=an(e);if(!o)return "Invalid Date";let n=r?o.setZone(r):o;return t?n.toLocaleString(luxon.DateTime.DATETIME_SHORT):n.toLocaleString(luxon.DateTime.DATE_SHORT)},ts=e=>{if(!e)return null;let t=an(e);return t?t.toRelative():"Invalid Date"},o0=(e,t)=>{if(!e)return null;let r=an(e);return r?(t?r.setZone(t):r).toLocaleString(luxon.DateTime.DATETIME_MED_WITH_WEEKDAY):"Invalid Date"},n0=e=>{if(!e)return null;let t=an(e);return t?t.toISO():null},a0=(e,t,r)=>{if(!e)return null;let o=an(e);return o?(r?o.setZone(r):o).toFormat(t):"Invalid Date"},XE=e=>{let t=an(e);return t?{year:t.year,month:t.month,day:t.day,weekday:t.weekday,hour:t.hour,minute:t.minute,second:t.second,millisecond:t.millisecond,weekdayShort:t.weekdayShort,weekdayLong:t.weekdayLong,monthShort:t.monthShort,monthLong:t.monthLong}:null},Qp=(e,t)=>{if(t.hideWhenNull&&e==null)return null;if(e==null)return t.nullText??null;let r=an(e);if(!r)return t.nullText??"Invalid Date";let o=t.timezone?r.setZone(t.timezone):r;if(t.relative)return o.toRelative();if(t.format)return o.toFormat(t.format);if(t.dateStyle||t.timeStyle){let n={};if(t.dateStyle)switch(t.dateStyle){case "short":n.date=luxon.DateTime.DATE_SHORT;break;case "medium":n.date=luxon.DateTime.DATE_MED;break;case "long":n.date=luxon.DateTime.DATE_FULL;break;case "full":n.date=luxon.DateTime.DATE_HUGE;break}if(t.timeStyle)switch(t.timeStyle){case "short":n.time=luxon.DateTime.TIME_SIMPLE;break;case "medium":n.time=luxon.DateTime.TIME_WITH_SECONDS;break;case "long":case "full":n.time=luxon.DateTime.TIME_WITH_SHORT_OFFSET;break}if(n.date&&n.time)return o.toLocaleString({...n.date,...n.time});if(n.date)return o.toLocaleString(n.date);if(n.time)return o.toLocaleString(n.time)}return o.toLocaleString(luxon.DateTime.DATETIME_SHORT)};ne.register("date",(e,t,r)=>r0(e,typeof t=="boolean"?t:false,typeof r=="string"?r:void 0));ne.register("relativeTime",e=>ts(e));ne.register("fullDateTime",(e,t)=>o0(e,typeof t=="string"?t:void 0));ne.register("isoString",e=>n0(e));ne.register("customDateFormat",(e,t,r)=>typeof t=="string"?a0(e,t,typeof r=="string"?r:void 0):null);var Dc=(e,t=1)=>pe(e)?null:`${e.toFixed(t)} m`,i0=(e,t=1)=>pe(e)?null:`${(e*100).toFixed(t)} cm`,s0=(e,t=0)=>pe(e)?null:`${(e*1e3).toFixed(t)} mm`,Lc=(e,t=1)=>pe(e)?null:`${(e/1e3).toFixed(t)} km`,Ec=(e,t=0)=>pe(e)?null:`${e.toFixed(t)} ft`,l0=(e,t=1)=>pe(e)?null:`${e.toFixed(t)} in`,Ac=(e,t=1)=>pe(e)?null:`${e.toFixed(t)} mi`,Ic=(e,t=0)=>pe(e)?null:`${e.toFixed(t)} yd`,ZE=(e,t=1)=>pe(e)?null:`${e.toFixed(t)} nm`,_E=e=>e*3.28084,$E=e=>e/3.28084,eA=e=>e*1.60934,tA=e=>e/1.60934,rA=e=>e/5280,Zp=e=>e*5280,oA=e=>e/1609.34,nA=e=>e*1609.34,aA=e=>e*.9144,iA=e=>e/.9144,sA=e=>e*2.54,lA=e=>e/2.54,_p=(e,t=false,r=1)=>{if(pe(e))return null;let o=Math.abs(e);return t?o>=1e3?Lc(e,r):o<.01?s0(e,0):o<1?i0(e,r):Dc(e,r):o<.01?Ec(Zp(e),0):o<.1?Ic(Zp(e)/3,0):Ac(e,r)},$p=(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 _p(r,n,o)}switch(t.unit){case "km":return Lc(r,o);case "ft":return Ec(r,o);case "mi":return Ac(r,o);case "yd":return Ic(r,o);default:return Dc(r,o)}};ne.register("miles",(e,t)=>typeof e=="number"?Ac(e,typeof t=="number"?t:1):null);ne.register("kilometers",(e,t)=>typeof e=="number"?Lc(e,typeof t=="number"?t:1):null);ne.register("meters",(e,t)=>typeof e=="number"?Dc(e,typeof t=="number"?t:1):null);ne.register("feet",(e,t)=>typeof e=="number"?Ec(e,typeof t=="number"?t:0):null);ne.register("yards",(e,t)=>typeof e=="number"?Ic(e,typeof t=="number"?t:0):null);ne.register("inches",(e,t)=>typeof e=="number"?l0(e,typeof t=="number"?t:1):null);ne.register("autoScaleDistance",(e,t,r)=>typeof e=="number"?_p(e,typeof t=="boolean"?t:false,typeof r=="number"?r:1):null);var Fc=(e,t=1)=>pe(e)?null:`${e.toFixed(t)} Wh`,Bc=(e,t=1)=>pe(e)?null:`${(e/1e3).toFixed(t)} kWh`,em=(e,t=1)=>pe(e)?null:`${(e/1e6).toFixed(t)} MWh`,tm=(e,t=1)=>pe(e)?null:`${(e/1e9).toFixed(t)} GWh`,Vc=e=>{let t=Math.abs(e);return t>=1e9?"GWh":t>=1e6?"MWh":t>=1e3?"kWh":"Wh"},rm=(e,t=1)=>{if(pe(e))return null;switch(Vc(e)){case "GWh":return tm(e,t);case "MWh":return em(e,t);case "kWh":return Bc(e,t);default:return Fc(e,t)}},zc={Wh:1,kWh:1e3,MWh:1e6,GWh:1e9},Oc=(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*zc[t.sourceUnit]:r,n=t.decimals??1;if(t.unit)switch(t.unit){case "GWh":return tm(o,n);case "MWh":return em(o,n);case "kWh":return Bc(o,n);case "Wh":return Fc(o,n)}return t.autoScale!==false?rm(o,n):Fc(o,n)};ne.register("kWh",e=>typeof e=="number"?Bc(e):null);ne.register("autoScaleEnergy",(e,t)=>typeof e=="number"?rm(e,typeof t=="number"?t:1):null);ne.register("energy",Oc);var rs=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},Hc=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():rs(e)},na=e=>e?e.startsWith("+")||e.length>11?Hc(e):rs(e):null,om=(e,t)=>{if(t.hideWhenNull&&e==null)return null;if(e==null)return t.nullText??null;let r=String(e);if(t.international)return Hc(r);switch(t.country){case "US":case "CA":return rs(r);default:return na(r)}};ne.register("phoneNumber",e=>typeof e=="string"?na(e):null);ne.register("usPhone",e=>typeof e=="string"?rs(e):null);ne.register("internationalPhone",e=>typeof e=="string"?Hc(e):null);var os=(e,t=0)=>pe(e)?null:t===0?`${Math.round(e)} W`:`${e.toFixed(t)} W`,Wc=(e,t=1)=>pe(e)?null:`${(e/1e3).toFixed(t)} kW`,Gc=(e,t=1)=>pe(e)?null:`${(e/1e6).toFixed(t)} MW`,Uc=(e,t=2)=>pe(e)?null:`${(e/1e9).toFixed(t)} GW`,c0=(e,t)=>{if(pe(e))return null;let r=Math.abs(e);return r>=1e9?Uc(e,t??2):r>=1e6?Gc(e,t??1):r>=1e3?Wc(e,t??1):os(e,t??0)},Kc=(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 Uc(r,o??2);case "MW":return Gc(r,o??1);case "kW":return Wc(r,o??1);case "W":return os(r,o??0)}return t.autoScale!==false?c0(r,o):os(r,o??0)};ne.register("power",Kc);var xA=os,hA=Wc,yA=Gc,vA=Uc;var Yc=(e,t=1)=>pe(e)?null:`${(e*1e3).toFixed(t)} m\u03A9`,ns=(e,t=1)=>pe(e)?null:`${e.toFixed(t)} \u03A9`,nm=(e,t=1)=>pe(e)?null:`${(e/1e3).toFixed(t)} k\u03A9`,am=(e,t=2)=>pe(e)?null:`${(e/1e6).toFixed(t)} M\u03A9`,d0=(e,t)=>{if(pe(e))return null;let r=Math.abs(e);return r>=1e6?am(e,t??2):r>=1e3?nm(e,t??1):r<1?Yc(e,t??1):ns(e,t??1)},Jc=(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 am(r,o??2);case "k\u03A9":return nm(r,o??1);case "m\u03A9":return Yc(r,o??1);case "\u03A9":return ns(r,o??1)}return t.autoScale!==false?d0(r,o):ns(r,o??1)};ne.register("resistance",Jc);ne.register("ohms",e=>typeof e=="number"?ns(e):null);ne.register("milliohms",e=>typeof e=="number"?Yc(e):null);var im=e=>{switch(e){case "FAHRENHEIT":return "F";case "CELSIUS":return "C";case "KELVIN":return "K";default:return "F"}},sm=(e,t=0)=>pe(e)?null:`${e.toFixed(t)}\xB0F`,lm=(e,t=true,r=0)=>pe(e)?null:`${(t?(e-32)*(5/9):e).toFixed(r)}\xB0C`,cm=(e,t=true,r=0)=>pe(e)?null:`${(t?(e-32)*(5/9)+273.15:e+273.15).toFixed(r)}K`,u0=e=>e*9/5+32,p0=e=>(e-32)*(5/9),PA=e=>e+273.15,m0=e=>e-273.15,RA=e=>p0(e)+273.15,MA=e=>u0(m0(e)),dm=(e,t="F",r=0)=>{if(pe(e))return null;switch(typeof t=="string"&&t.length>1?im(t):t){case "C":return lm(e,true,r);case "K":return cm(e,true,r);default:return sm(e,r)}},um=(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?im(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 dm(r,n,o)};ne.register("temperature",(e,t,r)=>typeof e=="number"?dm(e,typeof t=="string"?t:"F",typeof r=="number"?r:0):null);ne.register("fahrenheit",(e,t)=>typeof e=="number"?sm(e,typeof t=="number"?t:0):null);ne.register("celsius",(e,t,r)=>typeof e=="number"?lm(e,typeof t=="boolean"?t:true,typeof r=="number"?r:0):null);ne.register("kelvin",(e,t,r)=>typeof e=="number"?cm(e,typeof t=="boolean"?t:true,typeof r=="number"?r:0):null);var f0=(e,t)=>!!(t.hideWhenNull&&e==null||t.hideWhenZero&&e===0),pm=e=>e?.toUpperCase()??"",mm=e=>e?.toLowerCase()??"",fm=e=>e?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():"",gm=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(" ")},bm=e=>e?e.split(/\s+/).map(t=>t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()).join(" "):"",xm=e=>e?e.charAt(0).toUpperCase()+e.slice(1):"",hm=e=>e?e.replace(/([A-Z])/g," $1").replace(/^./,t=>t.toUpperCase()).trim():"",ym=e=>e?e.toLowerCase().split("_").map(t=>xm(t)).join(" "):"",g0=e=>e?e.includes("_")?ym(e):e.toUpperCase()===e?xm(e.toLowerCase()):hm(e):"",aa=(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)}`},as=(e,t=8)=>e?e.length<=t?e:`...${e.slice(-t)}`:"",is=(e,t=16,r="...")=>e?e.length<=t?e:e.slice(0,t)+r:"",b0=e=>{if(!e)return "";let t=e.toString(),r=t.slice(-4),o=t.length-4;return o>0?"*".repeat(o)+r:t},vm=(e,t)=>{if(f0(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=pm(r);break;case "lowercase":r=mm(r);break;case "capitalize":r=bm(r);break;case "titleCase":r=gm(r);break;case "sentenceCase":r=fm(r);break}}),t.truncate){let{length:o,position:n,ellipsis:a="..."}=t.truncate;switch(n){case "start":r=as(r,o);break;case "middle":r=aa(r,o);break;case "end":r=is(r,o,a);break}}return r};ne.register("uppercase",e=>pm(String(e)));ne.register("lowercase",e=>mm(String(e)));ne.register("sentenceCase",e=>fm(String(e)));ne.register("titleCase",e=>gm(String(e)));ne.register("capitalize",e=>bm(String(e)));ne.register("camelCaseToWords",e=>hm(String(e)));ne.register("snakeCaseToWords",e=>ym(String(e)));ne.register("enumToSentenceCase",e=>g0(String(e)));ne.register("truncateMiddle",(e,t)=>aa(String(e),typeof t=="number"?t:16));ne.register("truncateStart",(e,t)=>as(String(e),typeof t=="number"?t:8));ne.register("truncateEnd",(e,t,r)=>is(String(e),typeof t=="number"?t:16,typeof r=="string"?r:"..."));ne.register("secret",e=>b0(String(e)));var Xc=(e,t=0)=>{if(pe(e))return null;let r=e*1e3;return t===0?`${Math.round(r)} mV`:`${r.toFixed(t)} mV`},ss=(e,t=0)=>pe(e)?null:t===0?`${Math.round(e)} V`:`${e.toFixed(t)} V`,jc=(e,t=1)=>pe(e)?null:`${(e/1e3).toFixed(t)} kV`,x0=(e,t)=>{if(pe(e))return null;let r=Math.abs(e);return r>=1e3?jc(e,t??1):r<1?Xc(e,t??0):ss(e,t??0)},qc=(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 jc(r,o??1);case "mV":return Xc(r,o??0);case "V":return ss(r,o??0)}return t.autoScale!==false?x0(r,o):ss(r,o??0)};ne.register("voltage",qc);var FA=Xc,BA=ss,VA=jc;var h0=(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:Jp(r,t.decimals??0)},Fr=(e,t)=>{switch(t.type){case "text":return vm(e,t);case "number":return jp(e,t);case "percentage":return h0(e,t);case "currency":return qp(e,t);case "date":return Qp(e,t);case "boolean":return Kp(e,t);case "energy":return Oc(e,t);case "power":return Kc(e,t);case "voltage":return qc(e,t);case "current":return Mc(e,t);case "resistance":return Jc(e,t);case "temperature":return um(e,t);case "distance":return $p(e,t);case "phone":return om(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 ia={power:"W",energy:"Wh",voltage:"V",current:"A",resistance:"\u03A9",distance:"m"},y0=new Set(["number","power","energy","voltage","current","resistance","temperature","distance","percentage"]);function Qc(e){if(!e)return null;switch(e.type){case "percentage":return "%";case "power":return e.unit??ia.power;case "energy":return e.unit??e.sourceUnit??ia.energy;case "voltage":return e.unit??ia.voltage;case "current":return e.unit??ia.current;case "resistance":return e.unit??ia.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??ia.distance;default:return null}}function Cm(e,t){if(!y0.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=Qc(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=Fr(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=Fr(r,t);return n?String(n):""}return String(r)}var e5=(e,t)=>({type:e,...t});function jt(...e){return e.filter(Boolean).join(" ")}var jr={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 jt(jr[e],...t)}function ot(e,t){let r=Oe.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 ls=()=>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"})]}),Sm=()=>jsxRuntime.jsx("path",{d:"M166 120 88 70",fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round"}),wm=()=>jsxRuntime.jsx("path",{d:"M162 122 92 128",fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round"}),Nm=()=>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"})]}),S0=ot("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"})]})),w0=ot("TextureFuse",jsxRuntime.jsx("path",{d:"M20 128h72q18 -84 36 0q18 84 36 0h72",fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round",strokeLinejoin:"round"})),N0=ot("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"})]})),k0=ot("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"})]})),T0=ot("TextureCapacitor",jsxRuntime.jsx(jsxRuntime.Fragment,{children:jsxRuntime.jsx("path",{d:"M4 128h106M146 128h106M110 72v112M146 72v112",fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round"})})),P0=ot("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"})]})),R0=ot("TextureSwitch",jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(ls,{}),jsxRuntime.jsx(Sm,{})]})),M0=ot("TextureSwitchClosed",jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(ls,{}),jsxRuntime.jsx(wm,{})]})),D0=ot("TextureSectionalizerOpen",jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(ls,{}),jsxRuntime.jsx(Sm,{}),jsxRuntime.jsx(Nm,{})]})),L0=ot("TextureSectionalizerClosed",jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(ls,{}),jsxRuntime.jsx(wm,{}),jsxRuntime.jsx(Nm,{})]})),E0=ot("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"})]})),sa={1:[128],2:[110,146],3:[92,128,164]},Zc=e=>jsxRuntime.jsx("path",{d:`M24 ${e}h208`,fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round"},e),_c=e=>jsxRuntime.jsx("path",{d:`M24 ${e}h208`,fill:"none",stroke:"currentColor",strokeWidth:"16",strokeLinecap:"round",pathLength:100,strokeDasharray:"20 20"},e),A0=ot("TextureSinglePhaseOverheadLine",jsxRuntime.jsx(jsxRuntime.Fragment,{children:sa[1].map(Zc)})),I0=ot("TextureTwoPhaseOverheadLine",jsxRuntime.jsx(jsxRuntime.Fragment,{children:sa[2].map(Zc)})),F0=ot("TextureThreePhaseOverheadLine",jsxRuntime.jsx(jsxRuntime.Fragment,{children:sa[3].map(Zc)})),B0=ot("TextureSinglePhaseUndergroundLine",jsxRuntime.jsx(jsxRuntime.Fragment,{children:sa[1].map(_c)})),V0=ot("TextureTwoPhaseUndergroundLine",jsxRuntime.jsx(jsxRuntime.Fragment,{children:sa[2].map(_c)})),z0=ot("TextureThreePhaseUndergroundLine",jsxRuntime.jsx(jsxRuntime.Fragment,{children:sa[3].map(_c)})),O0=ot("TextureSupportStructure",jsxRuntime.jsx("circle",{cx:"128",cy:"128",r:"40",fill:"currentColor",stroke:"none"})),la={TextureRecloser:S0,TextureFuse:w0,TextureBreaker:N0,TextureSource:k0,TextureCapacitor:T0,TextureRegulator:P0,TextureSwitch:R0,TextureSwitchClosed:M0,TextureSectionalizerOpen:D0,TextureSectionalizerClosed:L0,TextureTransformer:E0,TextureSinglePhaseOverheadLine:A0,TextureTwoPhaseOverheadLine:I0,TextureThreePhaseOverheadLine:F0,TextureSinglePhaseUndergroundLine:B0,TextureTwoPhaseUndergroundLine:V0,TextureThreePhaseUndergroundLine:z0,TextureSupportStructure:O0};if(process.env.NODE_ENV==="development")for(let e of Object.keys(la))e in km__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 ca={xs:16,sm:20,md:24,lg:32,xl:40,"2xl":48},V=Oe.memo(({name:e,size:t="md",color:r,weight:o="regular",className:n,ariaLabel:a,...i})=>{let s=la[e]??km__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 ca?ca[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 H0=Oe.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 ca?ca[n]:n,p=r?typeof r=="string"&&r in ca?ca[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})})});H0.displayName="IconWithContainer";function sr({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 Z0({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 nt({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)=>Z0({...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(sr,{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 cs(e=true){let[t,r]=Oe.useState(null);return Oe.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 rC={"--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 Rm(e){let t={...e};for(let[r,o]of Object.entries(rC))if(e[r])for(let n of o)e[n]||(t[n]=e[r]);return t}function Mm(e){return e.replace(/[{}<>]/g,"")}function Dm(e){return Object.entries(e).map(([t,r])=>`${Mm(t)}: ${Mm(r)};`).join(" ")}function Em({variables:e,darkVariables:t,children:r}){let n=Oe.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?Rm(e):null,c=i?Rm(t):null,l=s?`[data-brand-scope="${n}"] { ${Dm(s)} }`:"",d=c?`.theme-dark [data-brand-scope="${n}"] { ${Dm(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 da=new Map,nC=8;function aC(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 Nt=(e,t="#000000")=>typeof window>"u"?t:Am(e,t,0);function Am(e,t,r){if(r>nC)return t;let o=e.startsWith("var(")?aC(e):e.startsWith("--")?e:`--${e}`;if(!e.startsWith("--")&&!e.startsWith("var(")&&!o.startsWith("--color-")&&(o=`--color-${o.slice(2)}`),da.has(o))return da.get(o);try{let n=document.body||document.documentElement,i=getComputedStyle(n).getPropertyValue(o).trim();if(i){if(i.startsWith("var(")){let l=Am(i,t,r+1);return da.set(o,l),l}return da.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)"?(da.set(o,c),c):t}catch(n){return console.warn(`Failed to resolve color for ${e}:`,n),t}}var ds=()=>{da.clear();},sn=()=>{let e=[];for(let t=1;t<=12;t++){let r=Nt(`--color-viz-categorical-${t}`,"");r&&e.push(r);}return e.length===0?Im():e},Im=()=>["#5424db","#d92361","#e86a00","#5d89ff","#9a47e2","#f24cb8","#0ba286","#9c28af","#036e45","#52a119","#ff513d","#046691"],Qa=()=>Nt("--color-viz-default","#444ae1"),iC=(e,t)=>{let r={},o=sn();return e.forEach((n,a)=>{t&&t[n]?r[n]=t[n]:r[n]=o[a%o.length];}),r},Fm=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},sC=e=>Fm(e)?Nt("--color-text-primary","#333333"):Nt("--color-text-inverse","#ffffff"),Bm=(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()},td=e=>{let t=sn(),r={};return e.forEach((o,n)=>{r[o]=t[n%t.length];}),r};var rd=(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)},od=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]},Vm=(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},nd=(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=Nt(i);n.push(s);}return n},ad=(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=Nt(i);n.push(s);}return n},Za=(e,t,r,o="viridis")=>{let n=nd(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]},_a=(e,t,r,o,n="redYellowBlue")=>{let a=ad(n),i=4;if(e<=t)return a[0];if(e>=r)return a[a.length-1];if(e===o||t===r)return a[i];if(e<o){let c=(e-t)/(o-t)*i,l=Math.floor(c);return a[Math.min(l,i)]}else {let s=(e-o)/(r-o),c=i+s*(a.length-1-i),l=Math.floor(c);return a[Math.min(l,a.length-1)]}};var id=Oe.createContext({mode:"system",colorMode:"light",isDarkTheme:false,toggleTheme:()=>{}}),It=()=>Oe.useContext(id);function pC(){return typeof window>"u"?"light":window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Hm(){if(typeof window>"u")return "system";let e=localStorage.getItem("colorModePreference");return e==="light"||e==="dark"||e==="system"?e:"system"}function Wm(e){return e==="system"?pC():e}var Um=({children:e})=>{let[t,r]=Oe.useState(Hm),[o,n]=Oe.useState(()=>Wm(Hm())),a=o==="dark",i=Oe.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")),ds();},[]);Oe.useEffect(()=>{ds();let c=Wm(t);if(n(c),i(c),t==="system"){let l=window.matchMedia("(prefers-color-scheme: dark)"),d=u=>{let m=u.matches?"dark":"light";n(m),i(m);};return l.addEventListener("change",d),()=>{l.removeEventListener("change",d);}}},[t,i]);let s=Oe.useCallback(()=>{r(c=>{let l=c==="system"?"light":c==="light"?"dark":"system";return localStorage.setItem("colorModePreference",l),l});},[]);return jsxRuntime.jsx(id.Provider,{value:{mode:t,colorMode:o,isDarkTheme:a,toggleTheme:s},children:e})};function cn(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function ln(e,t){return cn(e)?t.format(e):""}function Km(e){if(!cn(e.start)||!cn(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=>ln(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=>ln(i,a)}var mC=864e5;function Ym(e,t){let r=t?.compact??false,o=e<5*mC,n=a=>{let i=a.getHours(),s=i>=12?"PM":"AM";return {displayHour:i%12||12,period:s}};return a=>{if(!cn(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 sd(e,t){if(!cn(e.start)||!cn(e.end))return ()=>"";let r=(e.end.getTime()-e.start.getTime())/(1e3*60*60),o=t?.compact??false,n=l=>d=>cn(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=>ln(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=>ln(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=>ln(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=>ln(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=>ln(l,c)}function Ye(e=false){return `${e?"outline outline-1 outline-border-input data-[focus-visible]:outline-2 data-[focus-visible]:outline-action-default data-[focus-visible]:outline-offset-0 invalid:outline-2 invalid:outline-feedback-error-border group-invalid:outline-2 group-invalid:outline-feedback-error-border forced-colors:focus:outline-[Highlight] forced-colors:focus:outline-2 forced-colors:focus:outline-offset-2":"outline-none data-[focus-visible]:outline data-[focus-visible]:outline-2 data-[focus-visible]:outline-action-default data-[focus-visible]:outline-offset-0 invalid:outline-2 invalid:outline-feedback-error-border group-invalid:outline-2 group-invalid:outline-feedback-error-border forced-colors:focus:outline-[Highlight] forced-colors:focus:outline-2 forced-colors:focus:outline-offset-2"}`}function ke(e,t){return reactAriaComponents.composeRenderProps(e,r=>tailwindMerge.twMerge(t,r))}var We={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 hC="flex font-medium justify-center items-center gap-2 text-center transition rounded-[var(--control-border-radius)] whitespace-nowrap box-border",yC="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",vC={primary:yC,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"},Xm={full:"w-full",default:"w-fit"},CC="opacity-50 cursor-not-allowed pointer-events-none",SC="opacity-100 cursor-pointer",wC={"top-right":"-right-2 -top-2","top-left":"-left-2 -top-2","bottom-right":"-right-2 -bottom-2","bottom-left":"-left-2 -bottom-2"},NC={primary:"bg-action-primary text-[color:var(--color-action-primary-text)]",destructive:"bg-feedback-error-border text-text-inverse"};function kC(e){return !e||e==="default"||e==="brand"?"primary":e}function TC(e){let{variant:t="primary",size:r="md",isDisabled:o,fullWidth:n=false,isLoading:a=false}=e,i=kC(t),s=i==="unstyled"?"":`${hC} ${vC[i]}`;i!=="unstyled"&&(s+=` ${We[r].text} ${We[r].height} ${We[r].padding} ${We[r].gap}`),o||a?s+=` ${CC}`:s+=` ${SC}`,n?s+=` ${Xm.full}`:s+=` ${Xm.default}`;let c=i==="primary"?"focus-visible:outline-action-primary":void 0;return [s,Ye(),c].filter(Boolean).join(" ")}function ee(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:x,...b}=e,h=t?jsxRuntime.jsx(V,{name:t,size:i,weight:c}):null,y=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s==="left"&&h,typeof r=="function"?null:r,s==="right"&&h]}),v=jsxRuntime.jsxs("div",{className:"relative inline-flex items-center justify-center",children:[jsxRuntime.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:a||jsxRuntime.jsx(V,{name:"CircleNotch",size:i,className:"animate-spin","aria-hidden":"true"})}),jsxRuntime.jsx("div",{className:"invisible","aria-hidden":"true",children:y}),n&&jsxRuntime.jsx("span",{className:"sr-only",role:"status","aria-live":"polite",children:n})]}),S=(u??0)>0,N=tailwindMerge.twMerge(TC(e),d),w=l?{href:l,target:f,rel:x,...b}:{};if(l){let{onPress:k,onPressStart:P,onPressEnd:I,onPressChange:M,onPressUp:L,onAuxClick:R,onContextMenu:B,onDoubleClick:Y,...H}=b;Object.assign(w,H);}let D=l?jsxRuntime.jsx(reactAriaComponents.Link,{...w,...o&&{"aria-busy":true},style:S?void 0:g,className:N,children:o?v:typeof r=="function"?(function(k){return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s==="left"&&h,r(k),s==="right"&&h]})}):y}):jsxRuntime.jsx(reactAriaComponents.Button,{...b,...o&&{"aria-busy":true},style:S?void 0:g,className:N,children:o?v:typeof r=="function"?(function(k){return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s==="left"&&h,r(k),s==="right"&&h]})}):y});return S?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("relative flex",d),style:g,children:[D,jsxRuntime.jsx("span",{className:`absolute ${wC[p]} flex h-5 w-5 items-center justify-center rounded-full ${NC[m]} text-xs font-medium`,"aria-label":`${u} items`,children:u})]}):D}function cd({action:e,defaultVariant:t,defaultSize:r="lg"}){let o=!!e.formId;return jsxRuntime.jsx(ee,{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 Eo({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(cd,{action:r,defaultVariant:"destructive"})}),jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[t&&jsxRuntime.jsx(cd,{action:t,defaultVariant:"secondary"}),e&&jsxRuntime.jsx(cd,{action:e,defaultVariant:"primary"})]})]})]})}var PC={heading:{sm:jr.headingSm,md:jr.headingMd,lg:jr.headingLg,xl:jr.headingXl},display:{sm:jr.displaySm,md:jr.displayMd,lg:jr.displayLg,xl:jr.displayXl}},RC={page:"h-16 leading-[62px]"};function qt({tag:e="h1",variant:t="heading",size:r="lg",height:o,className:n="",children:a}){let i=r==="xs"?"sm":r,s=PC[t][i],c=o?RC[o]:"";return jsxRuntime.jsx(e,{className:jt(s,"text-text-primary",c,n),children:a})}var zt=({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(ee,{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(qt,{size:"xs",children:e}),t&&!r&&jsxRuntime.jsx(ee,{variant:"icon",onPress:t,"aria-label":"Close dialog",children:jsxRuntime.jsx(V,{name:"X","data-testid":"close-button"})})]})]});var K=({width:e,height:t,variant:r="rect",animation:o="pulse",gradient:n=false,flex:a=false,stack:i,responsive:s,delay:c=0,adjustAnimationSpeedBasedOnWidth:l=false,ariaLabel:d,className:u,"data-testid":m})=>{let[p,g]=Oe.useState(c===0);if(Oe.useEffect(()=>{if(c>0){let S=setTimeout(()=>g(true),c);return ()=>clearTimeout(S)}},[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)]",x=l&&e?(()=>{let S=typeof e=="number"?e:parseFloat(String(e));return isNaN(S)?"":`animation-duration-[${Math.max(.8,S/100)}s]`})():"",b=o==="pulse"?`animate-pulse ${x}`: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 ${x}`:"",h="rounded-sm";r==="circle"&&(h="rounded-full"),r==="text"&&(h="h-4 w-full rounded-sm");let y=a?"flex-1 min-w-0":"",v=s?Object.entries(s).map(([S,N])=>`${S}:w-[${N}]`).join(" "):"";return i?jsxRuntime.jsx("div",{className:"space-y-2","data-testid":m,children:i.map((S,N)=>jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(f,b,h,y,v,u),style:{width:S,height:t}},N))}):jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(f,b,h,y,v,u),style:{width:e,height:t},role:"presentation","aria-hidden":!d,"aria-label":d??void 0,"data-testid":m})},Qm=({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 IC={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"},FC="rounded-lg",ud={square:"aspect-square",video:"aspect-video",wide:"aspect-[2/1]",auto:""},BC={start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between"};function Ge({variant:e="outlined",className:t,children:r,isLoading:o=false,layout:n="default"}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-full overflow-hidden",IC[e],FC,n==="flex"&&"flex flex-col",t),"data-testid":"card",children:o?jsxRuntime.jsx(K,{width:"100%",height:"100%",className:"rounded-none"}):r})}function pd({title:e,subtitle:t,actions:r,className:o,isLoading:n=false}){return n?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("p-6 pb-4",o),children:[jsxRuntime.jsxs("div",{className:"flex justify-between items-start mb-1",children:[jsxRuntime.jsx(K,{width:120,height:20}),jsxRuntime.jsx(K,{width:24,height:24})]}),t&&jsxRuntime.jsx(K,{width:200,height:16})]}):!e&&!t&&!r?null:jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("p-6 pb-4",o),children:jsxRuntime.jsxs("div",{className:"flex justify-between items-start gap-4",children:[jsxRuntime.jsxs("div",{className:"min-w-0 flex-1",children:[e&&jsxRuntime.jsx("div",{className:"mb-1",children:typeof e=="string"?jsxRuntime.jsx(qt,{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 md({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",ud[r],o),children:jsxRuntime.jsx(K,{width:"100%",height:"100%"})}):n?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-hidden",ud[r],o),children:n}):e?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-hidden",ud[r],o),children:jsxRuntime.jsx("img",{src:e,alt:t||"",className:"w-full h-full object-cover",loading:"lazy"})}):null}function fd({className:e,children:t,isLoading:r=false,fill:o=false}){let a=e?.match(/p(?:t|b|l|r|x|y)?-(?:\d+(?:\.\d+)?|px|\[.+?\])/)?"":"px-6 py-4";return r?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(a,o&&"flex-1 flex flex-col min-h-0",e),children:jsxRuntime.jsxs("div",{className:"space-y-2",children:[jsxRuntime.jsx(K,{width:"100%",height:16}),jsxRuntime.jsx(K,{width:"80%",height:16}),jsxRuntime.jsx(K,{width:"60%",height:16})]})}):t?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("px-6 py-4 text-text-primary",o&&"flex-1 flex flex-col min-h-0",e),children:t}):null}function gd({className:e,children:t,align:r="end",isLoading:o=false}){return o?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("px-6 py-4 flex gap-2 justify-end",e),children:[jsxRuntime.jsx(K,{width:80,height:32}),jsxRuntime.jsx(K,{width:60,height:32})]}):t?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("px-6 py-4 flex items-center gap-2",BC[r],e),children:t}):null}Ge.Header=pd;Ge.Media=md;Ge.Content=fd;Ge.Footer=gd;var Vr=class extends Oe.Component{constructor(){super(...arguments);Xa(this,"state",{hasError:false});Xa(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(Ge,{children:[this.props.title&&jsxRuntime.jsx(Ge.Header,{title:this.props.title}),jsxRuntime.jsx(Ge.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 HC=.3,WC=.5;function at({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:x="640px",contentPadding:b=true,showHandle:h=true,animationVariant:y="scale",className:v}){let[S,N]=Oe.useState(false),[w,D]=Oe.useState(0),[k,P]=Oe.useState(false),I=cs(s),M=I?.height??null,L=I?.keyboardOffset??0,R=Oe.useRef(null),B=Oe.useRef(null),Y=Oe.useRef(null),H=Oe.useRef({isDragging:false,startY:0,startTime:0,pointerId:null});Oe.useEffect(()=>{if(s){let E=setTimeout(()=>{N(true),setTimeout(()=>N(false),600);},400);return ()=>clearTimeout(E)}},[s]),Oe.useEffect(()=>{s||(D(0),P(false),H.current={isDragging:false,startY:0,startTime:0,pointerId:null});},[s]),Oe.useEffect(()=>{let E=B.current;if(!E||!s)return;let O=null,A=C=>{let F=C.target;F&&["INPUT","TEXTAREA","SELECT"].includes(F.tagName)&&(O&&clearTimeout(O),O=setTimeout(()=>{F.scrollIntoView({block:"nearest",behavior:"smooth"});},320));};return E.addEventListener("focusin",A),()=>{E.removeEventListener("focusin",A),O&&clearTimeout(O);}},[s]);let W=Oe.useCallback(E=>{l&&(E.pointerType!=="touch"&&E.pointerType!=="pen"||(Y.current&&(clearTimeout(Y.current),Y.current=null),H.current={isDragging:true,startY:E.clientY,startTime:Date.now(),pointerId:E.pointerId},P(false),E.currentTarget.setPointerCapture(E.pointerId)));},[l]),Z=Oe.useCallback(E=>{let{isDragging:O,startY:A,pointerId:C}=H.current;if(!O||E.pointerId!==C)return;let F=E.clientY-A;D(Math.max(0,F));},[]),q=Oe.useCallback(E=>{let{isDragging:O,startY:A,startTime:C,pointerId:F}=H.current;if(!O||E.pointerId!==F)return;let z=E.clientY-A,G=Date.now()-C,oe=z/G;H.current={isDragging:false,startY:0,startTime:0,pointerId:null};let te=(R.current?.getBoundingClientRect().height??0)*HC;(z>te||oe>WC&&z>50)&&l?(c?.(),D(0)):(P(true),D(0),Y.current=setTimeout(()=>{P(false),Y.current=null;},200));},[l,c]);if(!s)return null;let Q=t||r,T=u||m||p;return jsxRuntime.jsx(Vr,{children:jsxRuntime.jsx(sr,{isOpen:s,onOpenChange:E=>{E||c?.();},isDismissable:l,transparent:d,style:{paddingBottom:L>0?`${L}px`:void 0,transition:"padding-bottom 0.25s ease-out"},className:"flex items-end justify-center p-0 sm:p-4",children:jsxRuntime.jsx(reactAriaComponents.Modal,{className:"w-full max-w-full p-0 sm:p-2 outline-none focus:outline-none focus-visible:outline-none ring-0 focus:ring-0 focus-visible:ring-0",isDismissable:l,children:jsxRuntime.jsx("div",{ref:R,className:tailwindMerge.twMerge("w-full",k&&"transition-transform duration-200"),style:{transform:w>0?`translateY(${w}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)]",v),style:{maxWidth:x,...f?{height:f}:{maxHeight:/\d/.test(g)?M!==null?`min(${g}, ${Math.max(M-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:W,onPointerMove:Z,onPointerUp:q,onPointerCancel:q,children:jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("h-1 w-12 rounded-full bg-border-muted transition-all duration-300","hover:bg-border-default hover:w-16",S&&"animate-[handle-wiggle_0.6s_ease-in-out]")})}),Q&&(a?jsxRuntime.jsx(zt,{title:t,headerContent:r,titleAlign:o,hideCloseIcon:n||!c,hasBackArrow:true,onBack:i??(()=>{}),onClose:c||(()=>{})}):jsxRuntime.jsx(zt,{title:t,headerContent:r,titleAlign:o,hideCloseIcon:n||!c,onClose:c||(()=>{})})),jsxRuntime.jsx("div",{ref:B,className:tailwindMerge.twMerge("flex-1 min-h-0 overflow-y-auto overscroll-contain",b?"p-4":"p-0"),children:e}),T&&jsxRuntime.jsx(Eo,{primaryAction:u,secondaryAction:m,footerContent:p})]})})})})})}at.displayName="Tray";function ma({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]=Oe.useState(false),{isMobile:p}=Jt();if(l&&p){let f=Oe__namespace.default.isValidElement(e)?Oe__namespace.default.cloneElement(e,{onPress:()=>m(true)}):e,h=(y=>{if(typeof y=="string")return y;if(Oe__namespace.default.isValidElement(y)){let v=y.props;if(typeof v.children=="string")return v.children;if(Array.isArray(v.children))return v.children.find(N=>typeof N=="string")||""}return ""})(e)||"Actions";return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:r,children:f}),jsxRuntime.jsx(at,{isOpen:u,onClose:()=>m(false),title:h,contentPadding:false,headerContent:s,footerContent:c,children:jsxRuntime.jsx("div",{className:"flex flex-col",children:t.map(y=>{let v=y.href&&!y.disabled?"a":"button";return jsxRuntime.jsxs(v,{...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(V,{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(nt,{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",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(JC,{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 JC({textAlign:e="left",iconName:t,size:r="md",isDisabled:o,children:n,variant:a="default",subtitle:i,render:s,noPadding:c,...l}){let d={sm:"px-3 py-2 text-sm",md:i?"px-4 py-2.5 text-base":"px-4 py-2 text-base"},u="text-text-primary hover:bg-background-hover data-[focused]:bg-background-hover data-[focus-visible]:ring-2 data-[focus-visible]:ring-action-primary data-[focus-visible]:ring-inset",m={primary:u,default:u,destructive:"text-feedback-error-text hover:bg-feedback-error-background data-[focused]:bg-feedback-error-background data-[focus-visible]:ring-2 data-[focus-visible]:ring-feedback-error-border data-[focus-visible]:ring-inset"};return s?jsxRuntime.jsx(reactAriaComponents.MenuItem,{...l,isDisabled:o,className:tailwindMerge.twMerge("group box-border flex w-full cursor-pointer items-center rounded-sm outline-none transition-colors",!c&&d[r],m[a],e==="right"?"justify-end":"justify-start",o&&"pointer-events-none opacity-50"),children:s()}):jsxRuntime.jsxs(reactAriaComponents.MenuItem,{...l,isDisabled:o,className:tailwindMerge.twMerge("group box-border flex w-full cursor-pointer items-center rounded-sm outline-none transition-colors",!c&&d[r],m[a],e==="right"?"justify-end":"justify-start",o&&"pointer-events-none opacity-50"),children:[t&&e==="left"&&jsxRuntime.jsx(V,{name:t,size:r==="sm"?16:20,className:"mr-3 flex-shrink-0"}),jsxRuntime.jsxs("div",{className:"flex flex-1 flex-col",children:[jsxRuntime.jsx("span",{className:i?"font-medium":"",children:n}),i&&jsxRuntime.jsx("span",{className:"text-sm text-text-secondary",children:i})]}),t&&e==="right"&&jsxRuntime.jsx(V,{name:t,size:r==="sm"?16:20,className:"ml-3 flex-shrink-0"})]})}var mo=({className:e,size:t=24,color:r="text-action-brand"})=>jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("inline-block animate-spin rounded-full border-2 border-solid border-current border-r-transparent",r,e),style:{width:t,height:t},role:"status","aria-label":"loading",children:jsxRuntime.jsx("span",{className:"sr-only",children:"Loading..."})});function Cr({state:e,message:t,className:r,customIndicator:o}){if(e!=="loading-more")return null;let n=jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center justify-center gap-2 py-4","text-text-secondary",r),"aria-label":t||"Loading",children:[jsxRuntime.jsx(mo,{size:20,color:"text-text-secondary"}),t&&jsxRuntime.jsx("span",{className:"text-sm","aria-hidden":"true",children:t})]});return o||n}var fa=Oe.createContext({variant:"timeline",size:"md"});function nf(){return Oe.useContext(fa)}function fs(e){return Oe.isValidElement(e)&&e.type===xs}function eS(e){return Oe.isValidElement(e)&&e.type===bs}function Cd({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:x,height:b,maxHeight:h,...y}){let v=Oe.useRef(null),{isMobile:S}=Jt(),N=S?"stacked":e,w=n!==void 0&&a!==void 0,{scrollRef:D,loadMoreRef:k,virtualizer:P,virtualItems:I,isLoadingMore:M,computedLoadingState:L}=Ro({items:n||[],onLoadMore:w?m:void 0,hasMore:w?p:false,isLoading:i,loadingState:s,enableVirtualization:w?g:false,estimatedItemSize:f||(N==="stacked"?120:150),overscan:5}),R=w&&D?D:v,B=Oe.useMemo(()=>({variant:N,size:t}),[N,t]),Y=N==="timeline"?t==="sm"?"gap-4":"gap-6":"gap-0",H=N==="stacked"?"divide-y divide-border-subtle rounded-lg border border-border-subtle bg-background-surface":"",W={};if(w&&m&&(b?(W.height=typeof b=="number"?`${b}px`:b,W.overflowY="auto"):h?(W.maxHeight=typeof h=="number"?`${h}px`:h,W.overflowY="auto"):(W.height="600px",W.overflowY="auto")),w){let Q=L==="loading"||i&&(!n||n.length===0);if(Q){let E=l?jsxRuntime.jsx(jsxRuntime.Fragment,{children:Array.from({length:d}).map((O,A)=>jsxRuntime.jsx("div",{children:l()},`skeleton-${A}`))}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:Array.from({length:d}).map((O,A)=>{let C=t==="sm"?"gap-2":"gap-3";if(N==="timeline"){let F=t==="sm"?"pt-3":"pt-4",z=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 ${F}`,children:[jsxRuntime.jsx(K,{width:32,height:32,variant:"circle"}),A<d-1&&jsxRuntime.jsx("span",{className:"absolute top-[2rem] left-1/2 w-0 border-l-2 border-dotted -translate-x-1/2 h-[calc(100%+2.5rem)] border-border-muted"})]}),jsxRuntime.jsxs("div",{className:`min-w-0 flex flex-col ${C} ${z} rounded-md border border-border-subtle bg-background-surface`,children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-3",children:[jsxRuntime.jsx(K,{width:"50%",height:16}),jsxRuntime.jsx(K,{width:"15%",height:12})]}),jsxRuntime.jsx(K,{width:"85%",height:t==="sm"?14:15}),jsxRuntime.jsx(K,{width:"70%",height:t==="sm"?14:15})]})]},`skeleton-${A}`)}else return jsxRuntime.jsxs("div",{className:`flex flex-col ${t==="sm"?"px-3 py-3":"px-4 py-4"}`,children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[jsxRuntime.jsx(K,{width:24,height:24,variant:"circle"}),jsxRuntime.jsx(K,{width:"50%",height:16})]}),jsxRuntime.jsxs("div",{className:`mt-3 flex flex-col ${C}`,children:[jsxRuntime.jsx(K,{width:"85%",height:t==="sm"?14:15}),jsxRuntime.jsx(K,{width:"70%",height:t==="sm"?14:15}),jsxRuntime.jsx(K,{width:"20%",height:12})]})]},`skeleton-${A}`)})});return jsxRuntime.jsx(fa.Provider,{value:B,children:jsxRuntime.jsx("div",{ref:R,"data-slot":"feed","data-variant":N,className:tailwindMerge.twMerge("flex flex-col",Y,H,r),style:W,...y,children:E})})}if(c)return jsxRuntime.jsx(fa.Provider,{value:B,children:jsxRuntime.jsx("div",{ref:R,"data-slot":"feed","data-variant":N,className:tailwindMerge.twMerge("flex flex-col",Y,H,r),style:W,...y,children:jsxRuntime.jsx("div",{className:"p-4 text-center text-feedback-error-text",children:c})})});if(!n||n.length===0)return jsxRuntime.jsx(fa.Provider,{value:B,children:jsxRuntime.jsx("div",{ref:R,"data-slot":"feed","data-variant":N,className:tailwindMerge.twMerge("flex flex-col",Y,H,r),style:W,...y,children:jsxRuntime.jsx("div",{className:"p-4 text-center text-text-secondary",children:u})})});let T=P?I?.map(E=>({virtualItem:E,item:n[E.index],index:E.index}))||[]:n.map((E,O)=>({item:E,index:O,virtualItem:null}));return jsxRuntime.jsx(fa.Provider,{value:B,children:jsxRuntime.jsxs("div",{ref:R,"data-slot":"feed","data-variant":N,className:tailwindMerge.twMerge("flex flex-col",Y,H,r),style:{...W,position:P?"relative":void 0},...y,children:[P?jsxRuntime.jsxs("div",{style:{height:`${P.getTotalSize()}px`,position:"relative"},children:[T.map(({item:E,index:O,virtualItem:A})=>{if(!E||!A)return null;let C=a(E,O),F=N==="timeline"&&Oe.isValidElement(C)&&fs(C)?Oe.cloneElement(C,{showConnector:O!==n.length-1}):C;return jsxRuntime.jsx("div",{style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${A.start}px)`},"data-index":A.index,ref:P.measureElement,children:F},`item-${O}`)}),M&&jsxRuntime.jsx("div",{style:{position:"absolute",top:`${P.getTotalSize()}px`,left:0,width:"100%"},children:x||jsxRuntime.jsx(Cr,{state:"loading-more"})})]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[T.map(({item:E,index:O})=>{let A=a(E,O);if(N==="timeline"&&Oe.isValidElement(A)&&fs(A)){let C=O===n.length-1;return jsxRuntime.jsx("div",{children:Oe.cloneElement(A,{showConnector:!C})},`item-${O}`)}return jsxRuntime.jsx("div",{children:A},`item-${O}`)}),M&&(x||jsxRuntime.jsx(Cr,{state:"loading-more"}))]}),m&&p&&!Q&&jsxRuntime.jsx("div",{ref:k,style:P?{position:"absolute",top:`${P.getTotalSize()}px`,left:0,width:"100%",height:1}:{height:1,width:"100%"}})]})})}let Z=Oe.Children.toArray(o),q=Z.map((Q,T)=>{if(fs(Q)){let E=Q.props.showConnector??(N==="timeline"&&T<Z.length-1),O=N==="timeline"&&T>0;return Oe.cloneElement(Q,{showConnector:E,showIncomingConnector:O})}if(eS(Q)){let E=T===Z.length-1;return Oe.cloneElement(Q,{__isLastGroup:E,__isFirstGroup:T===0})}return Q});return jsxRuntime.jsx(fa.Provider,{value:B,children:jsxRuntime.jsx("div",{"data-slot":"feed","data-variant":N,className:tailwindMerge.twMerge("flex flex-col",Y,H,r),...y,children:q})})}Cd.displayName="ActivityFeed";function bs(e){let{variant:t,size:r}=nf(),{title:o,description:n,actions:a,children:i,className:s,__isLastGroup:c=false,__isFirstGroup:l=false,...d}=e,u=Oe.Children.toArray(i),m=u.map((f,x)=>{if(fs(f)){let b=f.props.showConnector??(t==="timeline"&&!(c&&x===u.length-1));return Oe.cloneElement(f,{showConnector:b,showIncomingConnector:t==="timeline"&&!(l&&x===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})]})}bs.displayName="ActivityFeedGroup";var rf={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"},tS={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"},rS={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 xs(e){let{variant:t,size:r}=nf(),{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:x=false,interactive:b,className:h,children:y,onKeyDown:v,showIncomingConnector:S,...N}=e,w=l??(d?jsxRuntime.jsx(V,{name:d,weight:u||"fill",className:"h-4 w-4"}):null),D=p??(t==="stacked"?"minimal":"subtle"),k=r==="sm"?"gap-2":"gap-3",P="text-xs text-text-secondary",I=r==="sm"?"text-sm":"text-[15px]",M="text-xs text-text-secondary",L=b??typeof N.onClick=="function",R=T=>{if(!L){v?.(T);return}T.key===" "?T.preventDefault():T.key==="Enter"&&(T.preventDefault(),T.currentTarget.click()),v?.(T);},B=T=>{L&&T.key===" "&&(T.preventDefault(),T.currentTarget.click());},Y=L?tailwindMerge.twMerge("group cursor-pointer",Ye()):void 0,W=jsxRuntime.jsxs("div",{"data-slot":"connector",className:tailwindMerge.twMerge("relative flex h-full flex-col items-center",D==="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",rf[m]),children:w}),t==="timeline"&&f&&jsxRuntime.jsx("span",{"data-slot":"separator",className:"absolute top-[2rem] left-1/2 w-0 border-l-2 border-dotted -translate-x-1/2 h-[calc(100%+2.5rem)] border-border-muted"})]}),Z=g?tailwindMerge.twMerge(tS[m],D==="minimal"?"rounded-md border border-border-muted":rS[m]):"";if(t==="stacked")return jsxRuntime.jsxs("div",{"data-slot":"item","data-variant":"stacked",role:L?"button":void 0,tabIndex:L?0:void 0,className:tailwindMerge.twMerge("flex flex-col",r==="sm"?"px-3 py-3":"px-4 py-4",{minimal:"",subtle:"bg-background-subtle",solid:"bg-background-muted"}[D],Z,Y,L?"transition-colors hover:bg-background-subtle/80":"",h),onKeyDown:R,onKeyUp:B,...N,children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[!x&&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",rf[m]),children:w}),jsxRuntime.jsx("div",{"data-slot":"title",className:"min-w-0 flex-1 text-sm font-semibold text-text-primary",children:o})]}),jsxRuntime.jsxs("div",{"data-slot":"content",className:tailwindMerge.twMerge("mt-3 flex flex-col",k),children:[n&&jsxRuntime.jsx("div",{"data-slot":"description",className:tailwindMerge.twMerge("text-text-secondary",I),children:n}),i&&jsxRuntime.jsx("div",{className:M,children:i}),s&&jsxRuntime.jsx("div",{className:"flex flex-col gap-2 text-sm text-text-secondary",children:s}),y,c&&jsxRuntime.jsx("div",{className:"flex flex-wrap gap-2 pt-1",children:c}),a&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("-mt-1.5",P),children:a})]})]});let q=D==="minimal"?r==="sm"?"py-2":"py-3":r==="sm"?"p-3":"p-4",Q={minimal:"",subtle:"rounded-md border border-border-subtle bg-background-surface",solid:"rounded-md bg-background-muted shadow-sm"};return jsxRuntime.jsxs("div",{"data-slot":"item","data-variant":"timeline",role:L?"button":void 0,tabIndex:L?0:void 0,className:tailwindMerge.twMerge("group relative grid items-start gap-4 grid-cols-[3rem_1fr]",Y,h),onKeyDown:R,onKeyUp:B,...N,children:[x?jsxRuntime.jsx("div",{}):W,jsxRuntime.jsxs("div",{"data-slot":"content",className:tailwindMerge.twMerge("min-w-0 flex flex-col",k,q,Q[D],Z,L?"transition-colors group-hover:bg-background-subtle/70":""),children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-3",children:[jsxRuntime.jsx("div",{"data-slot":"title",className:"min-w-0 flex-1 text-sm font-semibold text-text-primary",children:o}),a&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-shrink-0",P),children:a})]}),n&&jsxRuntime.jsx("div",{"data-slot":"description",className:tailwindMerge.twMerge("text-text-secondary",I),children:n}),i&&jsxRuntime.jsx("div",{className:M,children:i}),s&&jsxRuntime.jsx("div",{className:"flex flex-col gap-2 text-sm text-text-secondary",children:s}),y,c&&jsxRuntime.jsx("div",{className:"flex flex-wrap gap-2 pt-2",children:c})]})]})}xs.displayName="ActivityItem";function Sr({isOpen:e,onClose:t,title:r,headerContent:o,titleAlign:n="left",hideCloseIcon:a=false,hasBackArrow:i=false,onBack:s,children:c,primaryAction:l,secondaryAction:d,tertiaryAction:u,footerContent:m,transparentOverlay:p=false,maxWidth:g="600px",minWidth:f="400px",maxHeight:x="85vh",height:b,mobileMaxHeight:h="90vh",mobileHeight:y,contentPadding:v=true,className:S}){let N=Yt("(max-width: 767px)"),w=cs(N&&e===void 0),D=w?.height??null,k=w?.keyboardOffset??0,P=Oe.useRef(null),I=Oe.useCallback(()=>{P.current&&P.current.scrollTop!==0&&(P.current.scrollTop=0);},[]),M=Oe.useRef(null),L=Oe.useRef(null);Oe.useEffect(()=>{let W=L.current;if(!W||!N)return;let Z=null,q=Q=>{let T=Q.target;T&&["INPUT","TEXTAREA","SELECT"].includes(T.tagName)&&(Z&&clearTimeout(Z),Z=setTimeout(()=>{T.scrollIntoView({block:"nearest",behavior:"smooth"});},320));};return W.addEventListener("focusin",q),()=>{W.removeEventListener("focusin",q),Z&&clearTimeout(Z);}},[N]);let R=Oe.useCallback(()=>{M.current&&M.current.scrollTop!==0&&(M.current.scrollTop=0);},[]);if(e===false)return null;let B=r||o,Y=l||d||u||m,H=e!==void 0;return N?H?jsxRuntime.jsx(at,{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:y,maxWidth:g,contentPadding:v,showHandle:true,animationVariant:"scale",className:S,children:c}):jsxRuntime.jsx(Vr,{children:jsxRuntime.jsx(sr,{isDismissable:true,transparent:p,style:{paddingBottom:k>0?`${k}px`:void 0,transition:"padding-bottom 0.25s ease-out"},className:"flex items-end justify-center",children:jsxRuntime.jsx(reactAriaComponents.Modal,{className:"w-full p-0 outline-none focus:outline-none focus-visible:outline-none ring-0 focus:ring-0 focus-visible:ring-0",children:jsxRuntime.jsxs(reactAriaComponents.Dialog,{ref:P,onScroll:I,className:tailwindMerge.twMerge("relative flex w-full flex-col","bg-background-surface","shadow-2xl shadow-black/20","border-t border-x border-border-default/40","rounded-t-xl","overflow-hidden","animate-in slide-in-from-bottom","duration-300 ease-out","data-[exiting]:animate-out data-[exiting]:slide-out-to-bottom","data-[exiting]:duration-200 data-[exiting]:ease-in",S),style:{...y?{height:y}:{maxHeight:/\d/.test(h)?D!==null?`min(${h}, ${Math.max(D-8,0)}px, 100dvh)`:`min(${h}, 100dvh)`:h}},children:[jsxRuntime.jsx("div",{className:"flex justify-center pt-2",children:jsxRuntime.jsx("div",{className:"h-1.5 w-12 rounded-full bg-border-muted"})}),B&&(i?jsxRuntime.jsx(zt,{title:r,headerContent:o,titleAlign:n,hideCloseIcon:a||!t,hasBackArrow:true,onBack:s,onClose:t||(()=>{})}):jsxRuntime.jsx(zt,{title:r,headerContent:o,titleAlign:n,hideCloseIcon:a||!t,onClose:t||(()=>{})})),jsxRuntime.jsx("div",{ref:L,className:tailwindMerge.twMerge("flex-1 min-h-0 overflow-y-auto overscroll-contain",v?"px-6 py-6":"p-0"),children:c}),Y&&jsxRuntime.jsx(Eo,{primaryAction:l,secondaryAction:d,tertiaryAction:u,footerContent:m})]})})})}):jsxRuntime.jsx(Vr,{children:jsxRuntime.jsx(sr,{...H?{isOpen:e,onOpenChange:W=>{!W&&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:M,onScroll:R,className:tailwindMerge.twMerge("relative flex w-full flex-col","bg-background-surface","shadow-2xl shadow-black/20","border border-border-default/50","rounded-md","overflow-hidden","outline-none focus:outline-none focus-visible:outline-none ring-0 focus:ring-0","animate-in fade-in zoom-in-96 slide-in-from-bottom-2","duration-300 ease-out","data-[exiting]:animate-out data-[exiting]:fade-out data-[exiting]:zoom-out-95","data-[exiting]:duration-200 data-[exiting]:ease-in",S),style:{minWidth:f,...b?{height:b}:{maxHeight:x}},children:[B&&(i?jsxRuntime.jsx(zt,{title:r,headerContent:o,titleAlign:n,hideCloseIcon:a||!t,hasBackArrow:true,onBack:s,onClose:t||(()=>{})}):jsxRuntime.jsx(zt,{title:r,headerContent:o,titleAlign:n,hideCloseIcon:a||!t,onClose:t||(()=>{})})),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-1 min-h-0 overflow-y-auto",v?"px-6 py-6":"p-0"),children:c}),Y&&jsxRuntime.jsx(Eo,{primaryAction:l,secondaryAction:d,tertiaryAction:u,footerContent:m})]})})})})}function uf({isOpen:e,onClose:t,title:r,message:o,confirmLabel:n="OK",confirmVariant:a="primary",maxWidth:i="400px",minWidth:s="320px"}){return jsxRuntime.jsx(Sr,{isOpen:e,onClose:t,title:r,maxWidth:i,minWidth:s,primaryAction:{label:n,onPress:t,variant:a},children:jsxRuntime.jsx("div",{className:"text-text-primary",children:o})})}var Ao={xs:16,sm:20,md:24,lg:32,xl:40,"2xl":48},lr=Oe.memo(({name:e,size:t="md",color:r,weight:o="regular",className:n,ariaLabel:a,...i})=>{let s=nS__namespace[e];if(!s)return null;let c=typeof t=="string"?t in Ao?Ao[t]:Ao.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}`})});lr.displayName="IconSSR";var aS=Oe.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 Ao?Ao[n]:Ao.md:n,p=r?typeof r=="string"?r in Ao?Ao[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(lr,{...u,name:i,size:n,color:s,weight:c,className:a,ariaLabel:l})})});aS.displayName="IconSSRWithContainer";var ga=({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 ys=({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(x=>m(x))}),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},x=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:x},p.id):jsxRuntime.jsx(a,{...f,children:x},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(ga,{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(lr,{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 mn(e){return e.id??e.href??e.label}function kd(e,t,r=[]){for(let o of e){if(o.href===t||o.id===t)return o.children?.length&&o.pushOnSelect!==false?[...r,mn(o)]:r;if(o.children?.length){let n=kd(o.children,t,[...r,mn(o)]);if(n)return n}}return null}function bf(e,t){let r=[],o=e;for(let n of t){let a=o.find(i=>mn(i)===n);if(!a)break;r.push(a),o=a.children??[];}return r}function sS(e,t,r){let o=t.length>0?[...e,...t]:e,n=[{path:[],items:e,bottomItems:t.length>0?t:void 0}],a=bf(o,r),i=[];for(let s of a){if(!s.children?.length)break;i=[...i,mn(s)],n.push({path:i,parent:s,items:s.children});}return n}var lS=({href:e,...t})=>jsxRuntime.jsx("a",{href:e,...t}),ff=[];function cS(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 dS(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 uS(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 vs({items:e,groups:t,bottomItems:r,value:o,defaultStack:n,stack:a,onStackChange:i,onSelect:s,linkComponent:c=lS,showLogo:l=false,logo:d,header:u,footer:m,mobileMenuId:p,sidebarCollapseId:g,rootLabel:f,sticky:x=true,width:b=260,ariaLabel:h="Navigation",theme:y,animated:v=true,style:S,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 w=Oe__namespace.useMemo(()=>t?cS(t):e??ff,[t,e]),D=r??ff,k=Oe__namespace.useMemo(()=>D.length>0?[...w,...D]:w,[w,D]);Oe__namespace.useEffect(()=>{dS(w,D);},[w,D]);let[P,I]=Oe__namespace.useState(()=>a!==void 0?a:n!==void 0?n:o?kd(k,o)??[]:[]),M=a??P,L=Oe__namespace.useCallback(T=>{a===void 0&&I(T),i?.(T);},[a,i]),R=Oe__namespace.useRef(false);Oe__namespace.useEffect(()=>{if(a!==void 0||!R.current&&(R.current=true,n!==void 0)||!o)return;let T=kd(k,o);I(E=>{let O=T??[];return gS(E,O)?E:O});},[o,k,a,n]);let B=Oe__namespace.useMemo(()=>sS(w,D,M),[w,D,M]),Y=Oe__namespace.useCallback((T,E)=>{T.children?.length&&L([...E,mn(T)]);},[L]),H=Oe__namespace.useCallback(()=>{L(M.slice(0,-1));},[M,L]),W=Oe__namespace.useCallback((T,E)=>{let O=bf(k,M);if(s?.(E,O),!!E.children?.length){let C=B[B.length-1]?.path??[];Y(E,C);}E.href||T.preventDefault();},[k,M,s,Y,B]),Z=Oe__namespace.useCallback(T=>o?T.href===o||T.id===o:false,[o]),q=x?"sticky top-0 h-[100dvh]":"",Q={...b!=null?{width:b}:{},...uS(y),...S};return jsxRuntime.jsxs("aside",{role:"navigation","aria-label":h,"data-edges-stack-nav":"",className:tailwindMerge.twMerge("edges-stack-nav flex flex-col flex-shrink-0 overflow-hidden",v&&"edges-stack-nav--animated",q,N),style:Q,children:[l?jsxRuntime.jsxs("div",{className:"edges-stack-nav__logo",children:[jsxRuntime.jsx("div",{className:"relative top-[-1px]",children:d??jsxRuntime.jsx(ga,{showWordmark:true,width:120})}),g?jsxRuntime.jsx("label",{htmlFor:g,className:"hidden md:flex items-center justify-center w-8 h-8 rounded hover:bg-background-hover cursor-pointer transition-all duration-200 relative top-[-1px]","aria-label":"Collapse sidebar",children:jsxRuntime.jsx(lr,{name:"Sidebar",size:"sm"})}):null,p?jsxRuntime.jsx("label",{htmlFor:p,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,u?jsxRuntime.jsx("div",{className:"edges-stack-nav__header",children:u}):null,jsxRuntime.jsx("div",{className:"relative flex-1 overflow-hidden",children:B.map((T,E)=>{let O=T.path.length,A=E===B.length-1,C=E<B.length-1,F=O===0?"__root__":T.path.join("/");return jsxRuntime.jsx(pS,{pane:T,parentPath:T.path.slice(0,-1),depth:O,isTop:A,isAbove:C,rootLabel:f,LinkComponent:c,isActive:Z,onSelect:W,onBack:H,animated:v},F)})}),m?jsxRuntime.jsx("div",{className:"edges-stack-nav__footer",children:m}):null]})}function pS({pane:e,depth:t,isTop:r,isAbove:o,rootLabel:n,LinkComponent:a,isActive:i,onSelect:s,onBack:c,animated:l}){let d=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",!l&&"edges-stack-nav__pane--instant",d),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(fS,{}),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(u=>jsxRuntime.jsx(gf,{item:u,LinkComponent:a,isActive:i(u),onSelect:s},mn(u))),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(u=>jsxRuntime.jsx(gf,{item:u,LinkComponent:a,isActive:i(u),onSelect:s},mn(u)))}):null]})}function gf({item:e,LinkComponent:t,isActive:r,onSelect:o}){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 n=!!e.children?.length,a=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",r&&"edges-stack-nav__row--active font-semibold"),i=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("span",{className:"flex min-w-0 items-center gap-2",children:[e.leading??e.icon?jsxRuntime.jsx("span",{className:"inline-flex items-center flex-shrink-0",children:e.leading??e.icon}):null,jsxRuntime.jsx("span",{className:"truncate",children:e.label})]}),jsxRuntime.jsxs("span",{className:"flex flex-shrink-0 items-center gap-2 text-text-secondary",children:[e.trailing,n?jsxRuntime.jsx(mS,{}):null]})]});return e.href?jsxRuntime.jsx(t,{href:e.href,"aria-label":e.ariaLabel,className:a,"aria-current":r?"page":void 0,onClick:s=>o(s,e),children:i}):jsxRuntime.jsx("button",{type:"button",className:a,"aria-label":e.ariaLabel,onClick:s=>{o(s,e);},children:i})}function mS(){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 fS(){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 gS(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 ni=({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(lr,{name:"Monitor",size:"sm"});case "light":return jsxRuntime.jsx(lr,{name:"Sun",size:"sm"});case "dark":return jsxRuntime.jsx(lr,{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(lr,{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 hf({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 Oe.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,x=false;try{let P=localStorage.getItem("sidebar-collapsed");P!==null&&(u.checked=P==="true");}catch{}let b=()=>{try{localStorage.setItem("sidebar-collapsed",String(u.checked));}catch{}u.checked?x=true:(f&&(clearTimeout(f),f=null),p.removeAttribute("data-peek"),x=false);};u.addEventListener("change",b);let h=P=>{P.key==="Escape"&&(m&&(m.checked=false),p.removeAttribute("data-peek"));};document.addEventListener("keydown",h);let y=null;m&&(y=()=>{document.body.style.overflow=m.checked?"hidden":"";},m.addEventListener("change",y));let v=P=>{let M=P.target.closest("a");M&&M.href&&window.innerWidth<768&&m&&setTimeout(()=>{m.checked=false,document.body.style.overflow="";},100);};g.addEventListener("click",v);let S=16,N=200,w=()=>{f&&(clearTimeout(f),f=null),p.getAttribute("data-peek")!=="true"&&p.setAttribute("data-peek","true");},D=()=>{f&&clearTimeout(f),f=setTimeout(()=>{p.removeAttribute("data-peek"),f=null;},N);},k=P=>{if(window.innerWidth<768||!u.checked)return;let I=g.contains(P.target);if(x&&!I&&(x=false),x)return;P.clientX<=S||I?w():p.getAttribute("data-peek")==="true"&&D();};return document.addEventListener("mousemove",k),()=>{u.removeEventListener("change",b),document.removeEventListener("keydown",h),m&&y&&m.removeEventListener("change",y),g.removeEventListener("click",v),document.removeEventListener("mousemove",k),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(ni,{...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(lr,{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(vs,{...t,mobileMenuId:l,sidebarCollapseId:d,sticky:false,width:null,className:["h-full !border-r-0",t.className].filter(Boolean).join(" ")}):jsxRuntime.jsx(ys,{...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(ni,{...r,className:r?.className})}),jsxRuntime.jsx("main",{id:"app-content",className:["flex-1 overflow-y-auto overflow-x-hidden bg-background-body",n,a,s||""].join(" "),role:"main",children:o})]})]}),jsxRuntime.jsx("style",{dangerouslySetInnerHTML:{__html:`
5
3
  @media (min-width: 768px) {
6
4
  /* Collapsed: hide the rail offscreen, surface the floating expand
7
5
  button, and let the edge zone receive hover events. */
@@ -26,7 +24,8 @@ Valid keys: `+JSON.stringify(Object.keys(T),null," "));var I=G(K,M,O,z,j+"."+M,
26
24
  z-index: 50;
27
25
  }
28
26
  }
29
- `}})]})}var Gl={prefix:String(Math.round(Math.random()*1e10)),current:0},Bx=He__namespace.default.createContext(Gl),PN=He__namespace.default.createContext(false);var RN=!!(typeof window<"u"&&window.document&&window.document.createElement),Ip=new WeakMap;function MN(e=false){let t=He.useContext(Bx),r=He.useRef(null);if(r.current===null&&!e){var o,n;let a=(n=He__namespace.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||n===void 0||(o=n.ReactCurrentOwner)===null||o===void 0?void 0:o.current;if(a){let i=Ip.get(a);i==null?Ip.set(a,{id:t.current,state:a.memoizedState}):a.memoizedState!==i.state&&(t.current=i.id,Ip.delete(a));}r.current=++t.current;}return r.current}function DN(e){let t=He.useContext(Bx);t===Gl&&!RN&&process.env.NODE_ENV!=="production"&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let r=MN(!!e),o=t===Gl&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${o}-${r}`}function EN(e){let t=He__namespace.default.useId(),[r]=He.useState(Ul()),o=r||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Gl.prefix}`;return e||`${o}-${t}`}typeof He__namespace.default.useId=="function"?EN:DN;function AN(){return false}function IN(){return true}function FN(e){return ()=>{}}function Ul(){return typeof He__namespace.default.useSyncExternalStore=="function"?He__namespace.default.useSyncExternalStore(FN,AN,IN):He.useContext(PN)}function Vx(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Yl(e,t,r){Vx(e,t),t.set(e,r);}var BN=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),VN=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Bp(e){if(Intl.Locale){let r=new Intl.Locale(e).maximize(),o=typeof r.getTextInfo=="function"?r.getTextInfo():r.textInfo;if(o)return o.direction==="rtl";if(r.script)return BN.has(r.script)}let t=e.split("-")[0];return VN.has(t)}var zx=Symbol.for("react-aria.i18n.locale");function Hx(){let e=typeof window<"u"&&window[zx]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e]);}catch{e="en-US";}return {locale:e,direction:Bp(e)?"rtl":"ltr"}}var Vp=Hx(),ns=new Set;function Ox(){Vp=Hx();for(let e of ns)e(Vp);}function Wx(){let e=Ul(),[t,r]=He.useState(Vp);return He.useEffect(()=>(ns.size===0&&window.addEventListener("languagechange",Ox),ns.add(r),()=>{ns.delete(r),ns.size===0&&window.removeEventListener("languagechange",Ox);}),[]),e?{locale:typeof window<"u"&&window[zx]||"en-US",direction:"ltr"}:t}var GN=He__namespace.default.createContext(null);function Op(){let e=Wx();return He.useContext(GN)||e}function Kl(e,t){return e-t*Math.floor(e/t)}var Gx=1721426;function jl(e,t,r,o){t=ql(e,t);let n=t-1,a=-2;return r<=2?a=0:$l(t)&&(a=-1),Gx-1+365*n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400)+Math.floor((367*r-362)/12+a+o)}function $l(e){return e%4===0&&(e%100!==0||e%400===0)}function ql(e,t){return e==="BC"?1-t:t}function UN(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}var YN={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]},Ir=class{fromJulianDay(t){let r=t,o=r-Gx,n=Math.floor(o/146097),a=Kl(o,146097),i=Math.floor(a/36524),s=Kl(a,36524),c=Math.floor(s/1461),l=Kl(s,1461),d=Math.floor(l/365),u=n*400+i*100+c*4+d+(i!==4&&d!==4?1:0),[p,m]=UN(u),g=r-jl(p,m,1,1),f=2;r<jl(p,m,3,1)?f=0:$l(m)&&(f=1);let x=Math.floor(((g+f)*12+373)/367),b=r-jl(p,m,x,1)+1;return new Kn(p,m,x,b)}toJulianDay(t){return jl(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return YN[$l(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return $l(t.year)?366:365}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 31}getYearsInEra(t){return 9999}getEras(){return ["BC","AD"]}isInverseEra(t){return t.era==="BC"}balanceDate(t){t.year<=0&&(t.era=t.era==="BC"?"AD":"BC",t.year=1-t.year);}constructor(){this.identifier="gregory";}};function Hp(e,t){var r,o,n,a;return (a=(n=(r=e.isEqual)===null||r===void 0?void 0:r.call(e,t))!==null&&n!==void 0?n:(o=t.isEqual)===null||o===void 0?void 0:o.call(t,e))!==null&&a!==void 0?a:e.identifier===t.identifier}function Wp(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function Yx(e,t){return Ux(e)-Ux(t)}function Ux(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}var zp=null;function jn(){return zp==null&&(zp=new Intl.DateTimeFormat().resolvedOptions().timeZone),zp}function ln(e){e=xr(e,new Ir);let t=ql(e.era,e.year);return $x(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function $x(e,t,r,o,n,a,i){let s=new Date;return s.setUTCHours(o,n,a,i),s.setUTCFullYear(e,t-1,r),s.getTime()}function Up(e,t){if(t==="UTC")return 0;if(e>0&&t===jn()&&true)return new Date(e).getTimezoneOffset()*-6e4;let{year:r,month:o,day:n,hour:a,minute:i,second:s}=qx(e,t);return $x(r,o,n,a,i,s,0)-Math.floor(e/1e3)*1e3}var Kx=new Map;function qx(e,t){let r=Kx.get(t);r||(r=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:false,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),Kx.set(t,r));let o=r.formatToParts(new Date(e)),n={};for(let a of o)a.type!=="literal"&&(n[a.type]=a.value);return {year:n.era==="BC"||n.era==="B"?-n.year+1:+n.year,month:+n.month,day:+n.day,hour:n.hour==="24"?0:+n.hour,minute:+n.minute,second:+n.second}}var jx=864e5;function jN(e,t,r,o){return (r===o?[r]:[r,o]).filter(a=>$N(e,t,a))}function $N(e,t,r){let o=qx(r,t);return e.year===o.year&&e.month===o.month&&e.day===o.day&&e.hour===o.hour&&e.minute===o.minute&&e.second===o.second}function Zr(e,t,r="compatible"){let o=fo(e);if(t==="UTC")return ln(o);if(t===jn()&&r==="compatible"&&true){o=xr(o,new Ir);let c=new Date,l=ql(o.era,o.year);return c.setFullYear(l,o.month-1,o.day),c.setHours(o.hour,o.minute,o.second,o.millisecond),c.getTime()}let n=ln(o),a=Up(n-jx,t),i=Up(n+jx,t),s=jN(o,t,n-a,n-i);if(s.length===1)return s[0];if(s.length>1)switch(r){case "compatible":case "earlier":return s[0];case "later":return s[s.length-1];case "reject":throw new RangeError("Multiple possible absolute times found")}switch(r){case "earlier":return Math.min(n-a,n-i);case "compatible":case "later":return Math.max(n-a,n-i);case "reject":throw new RangeError("No such absolute time found")}}function Yp(e,t,r="compatible"){return new Date(Zr(e,t,r))}function Fr(e,t){let r=Up(e,t),o=new Date(e+r),n=o.getUTCFullYear(),a=o.getUTCMonth()+1,i=o.getUTCDate(),s=o.getUTCHours(),c=o.getUTCMinutes(),l=o.getUTCSeconds(),d=o.getUTCMilliseconds();return new ni(n<1?"BC":"AD",n<1?-n+1:n,a,i,t,r,s,c,l,d)}function Jl(e,t){return Fr(e.getTime(),t)}function fo(e,t){let r=0,o=0,n=0,a=0;if("timeZone"in e)({hour:r,minute:o,second:n,millisecond:a}=e);else if("hour"in e&&true)return e;return new as(e.calendar,e.era,e.year,e.month,e.day,r,o,n,a)}function xr(e,t){if(Hp(e.calendar,t))return e;let r=t.fromJulianDay(e.calendar.toJulianDay(e)),o=e.copy();return o.calendar=t,o.era=r.era,o.year=r.year,o.month=r.month,o.day=r.day,Fo(o),o}function Kp(e,t,r){if(e instanceof ni)return e.timeZone===t?e:jp(e,t);let o=Zr(e,t,r);return Fr(o,t)}function Jx(e){let t=ln(e)-e.offset;return new Date(t)}function jp(e,t){let r=ln(e)-e.offset;return xr(Fr(r,t),e.calendar)}var is=36e5;function ls(e,t){let r=e.copy(),o="hour"in r?ZN(r,t):0;$p(r,t.years||0),r.calendar.balanceYearMonth&&r.calendar.balanceYearMonth(r,e),r.month+=t.months||0,qp(r),Xx(r),r.day+=(t.weeks||0)*7,r.day+=t.days||0,r.day+=o,JN(r),r.calendar.balanceDate&&r.calendar.balanceDate(r),r.year<1&&(r.year=1,r.month=1,r.day=1);let n=r.calendar.getYearsInEra(r);if(r.year>n){var a,i;let c=(a=(i=r.calendar).isInverseEra)===null||a===void 0?void 0:a.call(i,r);r.year=n,r.month=c?1:r.calendar.getMonthsInYear(r),r.day=c?1:r.calendar.getDaysInMonth(r);}r.month<1&&(r.month=1,r.day=1);let s=r.calendar.getMonthsInYear(r);return r.month>s&&(r.month=s,r.day=r.calendar.getDaysInMonth(r)),r.day=Math.max(1,Math.min(r.calendar.getDaysInMonth(r),r.day)),r}function $p(e,t){var r,o;!((r=(o=e.calendar).isInverseEra)===null||r===void 0)&&r.call(o,e)&&(t=-t),e.year+=t;}function qp(e){for(;e.month<1;)$p(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,$p(e,1);}function JN(e){for(;e.day<1;)e.month--,qp(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,qp(e);}function Xx(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day));}function Fo(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),Xx(e);}function Zx(e){let t={};for(let r in e)typeof e[r]=="number"&&(t[r]=-e[r]);return t}function Jp(e,t){return ls(e,Zx(t))}function Zl(e,t){let r=e.copy();return t.era!=null&&(r.era=t.era),t.year!=null&&(r.year=t.year),t.month!=null&&(r.month=t.month),t.day!=null&&(r.day=t.day),Fo(r),r}function ss(e,t){let r=e.copy();return t.hour!=null&&(r.hour=t.hour),t.minute!=null&&(r.minute=t.minute),t.second!=null&&(r.second=t.second),t.millisecond!=null&&(r.millisecond=t.millisecond),Qx(r),r}function XN(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=Xl(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=Xl(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=Xl(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=Xl(e.hour,24),t}function Qx(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23));}function Xl(e,t){let r=e%t;return r<0&&(r+=t),r}function ZN(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,XN(e)}function Ql(e,t,r,o){let n=e.copy();switch(t){case "era":{let s=e.calendar.getEras(),c=s.indexOf(e.era);if(c<0)throw new Error("Invalid era: "+e.era);c=Bo(c,r,0,s.length-1,o?.round),n.era=s[c],Fo(n);break}case "year":var a,i;!((a=(i=n.calendar).isInverseEra)===null||a===void 0)&&a.call(i,n)&&(r=-r),n.year=Bo(e.year,r,-1/0,9999,o?.round),n.year===-1/0&&(n.year=1),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e);break;case "month":n.month=Bo(e.month,r,1,e.calendar.getMonthsInYear(e),o?.round);break;case "day":n.day=Bo(e.day,r,1,e.calendar.getDaysInMonth(e),o?.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(n),Fo(n),n}function Xp(e,t,r,o){let n=e.copy();switch(t){case "hour":{let a=e.hour,i=0,s=23;if(o?.hourCycle===12){let c=a>=12;i=c?12:0,s=c?23:11;}n.hour=Bo(a,r,i,s,o?.round);break}case "minute":n.minute=Bo(e.minute,r,0,59,o?.round);break;case "second":n.second=Bo(e.second,r,0,59,o?.round);break;case "millisecond":n.millisecond=Bo(e.millisecond,r,0,999,o?.round);break;default:throw new Error("Unsupported field "+t)}return n}function Bo(e,t,r,o,n=false){if(n){e+=Math.sign(t),e<r&&(e=o);let a=Math.abs(t);t>0?e=Math.ceil(e/a)*a:e=Math.floor(e/a)*a,e>o&&(e=r);}else e+=t,e<r?e=o-(r-e-1):e>o&&(e=r+(e-o-1));return e}function Zp(e,t){let r;if(t.years!=null&&t.years!==0||t.months!=null&&t.months!==0||t.weeks!=null&&t.weeks!==0||t.days!=null&&t.days!==0){let n=ls(fo(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});r=Zr(n,e.timeZone);}else r=ln(e)-e.offset;r+=t.milliseconds||0,r+=(t.seconds||0)*1e3,r+=(t.minutes||0)*6e4,r+=(t.hours||0)*36e5;let o=Fr(r,e.timeZone);return xr(o,e.calendar)}function _x(e,t){return Zp(e,Zx(t))}function eh(e,t,r,o){switch(t){case "hour":{let n=0,a=23;if(o?.hourCycle===12){let g=e.hour>=12;n=g?12:0,a=g?23:11;}let i=fo(e),s=xr(ss(i,{hour:n}),new Ir),c=[Zr(s,e.timeZone,"earlier"),Zr(s,e.timeZone,"later")].filter(g=>Fr(g,e.timeZone).day===s.day)[0],l=xr(ss(i,{hour:a}),new Ir),d=[Zr(l,e.timeZone,"earlier"),Zr(l,e.timeZone,"later")].filter(g=>Fr(g,e.timeZone).day===l.day).pop(),u=ln(e)-e.offset,p=Math.floor(u/is),m=u%is;return u=Bo(p,r,Math.floor(c/is),Math.floor(d/is),o?.round)*is+m,xr(Fr(u,e.timeZone),e.calendar)}case "minute":case "second":case "millisecond":return Xp(e,t,r,o);case "era":case "year":case "month":case "day":{let n=Ql(fo(e),t,r,o),a=Zr(n,e.timeZone);return xr(Fr(a,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function th(e,t,r){let o=fo(e),n=ss(Zl(o,t),t);if(n.compare(o)===0)return e;let a=Zr(n,e.timeZone,r);return xr(Fr(a,e.timeZone),e.calendar)}var QN=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/;var _N=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:(?:([+-]\d{2})(?::?(\d{2}))?)|Z)$/;function cs(e){let t=e.match(QN);if(!t)throw _N.test(e)?new Error(`Invalid ISO 8601 date string: ${e}. Use parseAbsolute() instead.`):new Error("Invalid ISO 8601 date string: "+e);let r=new Kn(Qp(t[1],0,9999),Qp(t[2],1,12),1);return r.day=Qp(t[3],1,r.calendar.getDaysInMonth(r)),r}function Qp(e,t,r){let o=Number(e);if(o<t||o>r)throw new RangeError(`Value out of range: ${t} <= ${o} <= ${r}`);return o}function rh(e){return `${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function _p(e){let t=xr(e,new Ir),r;return t.era==="BC"?r=t.year===1?"0000":"-"+String(Math.abs(1-t.year)).padStart(6,"00"):r=String(t.year).padStart(4,"0"),`${r}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function em(e){return `${_p(e)}T${rh(e)}`}function tk(e){let t=Math.sign(e)<0?"-":"+";e=Math.abs(e);let r=Math.floor(e/36e5),o=Math.floor(e%36e5/6e4),n=Math.floor(e%36e5%6e4/1e3),a=`${t}${String(r).padStart(2,"0")}:${String(o).padStart(2,"0")}`;return n!==0&&(a+=`:${String(n).padStart(2,"0")}`),a}function oh(e){return `${em(e)}${tk(e.offset)}[${e.timeZone}]`}function tm(e){let t=typeof e[0]=="object"?e.shift():new Ir,r;if(typeof e[0]=="string")r=e.shift();else {let i=t.getEras();r=i[i.length-1];}let o=e.shift(),n=e.shift(),a=e.shift();return [t,r,o,n,a]}var rk=new WeakMap,Kn=class e{copy(){return this.era?new e(this.calendar,this.era,this.year,this.month,this.day):new e(this.calendar,this.year,this.month,this.day)}add(t){return ls(this,t)}subtract(t){return Jp(this,t)}set(t){return Zl(this,t)}cycle(t,r,o){return Ql(this,t,r,o)}toDate(t){return Yp(this,t)}toString(){return _p(this)}compare(t){return Wp(this,t)}constructor(...t){Yl(this,rk,{writable:true,value:void 0});let[r,o,n,a,i]=tm(t);this.calendar=r,this.era=o,this.year=n,this.month=a,this.day=i,Fo(this);}};var ok=new WeakMap,as=class e{copy(){return this.era?new e(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new e(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return ls(this,t)}subtract(t){return Jp(this,t)}set(t){return Zl(ss(this,t),t)}cycle(t,r,o){switch(t){case "era":case "year":case "month":case "day":return Ql(this,t,r,o);default:return Xp(this,t,r,o)}}toDate(t,r){return Yp(this,t,r)}toString(){return em(this)}compare(t){let r=Wp(this,t);return r===0?Yx(this,fo(t)):r}constructor(...t){Yl(this,ok,{writable:true,value:void 0});let[r,o,n,a,i]=tm(t);this.calendar=r,this.era=o,this.year=n,this.month=a,this.day=i,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Fo(this);}},nk=new WeakMap,ni=class e{copy(){return this.era?new e(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new e(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return Zp(this,t)}subtract(t){return _x(this,t)}set(t,r){return th(this,t,r)}cycle(t,r,o){return eh(this,t,r,o)}toDate(){return Jx(this)}toString(){return oh(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-Kp(t,this.timeZone).toDate().getTime()}constructor(...t){Yl(this,nk,{writable:true,value:void 0});let[r,o,n,a,i]=tm(t),s=t.shift(),c=t.shift();this.calendar=r,this.era=o,this.year=n,this.month=a,this.day=i,this.timeZone=s,this.offset=c,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Fo(this);}};var rm=new Map;function om(e){let{locale:t}=Op(),r=t+(e?Object.entries(e).sort((n,a)=>n[0]<a[0]?-1:1).join():"");if(rm.has(r))return rm.get(r);let o=new Intl.Collator(t,e);return rm.set(r,o),o}function _l(e){let t=om({usage:"search",...e}),r=He.useCallback((a,i)=>i.length===0?true:(a=a.normalize("NFC"),i=i.normalize("NFC"),t.compare(a.slice(0,i.length),i)===0),[t]),o=He.useCallback((a,i)=>i.length===0?true:(a=a.normalize("NFC"),i=i.normalize("NFC"),t.compare(a.slice(-i.length),i)===0),[t]),n=He.useCallback((a,i)=>{if(i.length===0)return true;a=a.normalize("NFC"),i=i.normalize("NFC");let s=0,c=i.length;for(;s+c<=a.length;s++){let l=a.slice(s,s+c);if(t.compare(i,l)===0)return true}return false},[t]);return He.useMemo(()=>({startsWith:r,endsWith:o,contains:n}),[r,o,n])}var dk=({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 or({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)=>dk({...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 Vr(){let[e,t]=He__namespace.default.useState(false),r=He__namespace.default.useCallback((n,a)=>{t(true),a?.(n);},[]),o=He__namespace.default.useCallback((n,a)=>{t(false),a?.(n);},[]);return {isFocused:e,handleFocus:r,handleBlur:o}}var vt=He__namespace.default.forwardRef(({children:e,className:t},r)=>jsxRuntime.jsx("div",{ref:r,className:tailwindMerge.twMerge("relative w-full",t),children:e}));vt.displayName="InputWrapper";function ds({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(U,{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 ah(e){return e.isDisabled?"bg-background-muted":e.transparent?"bg-transparent":"bg-background-input"}function uk(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 Wt(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}),ah({transparent:n,isDisabled:r}),Ge[a].text,Ge[a].height,Ge[a].padding,uk(a),i)}function pk(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",ah({transparent:a,isDisabled:n}),Ge[t].height,cn({isFocused:r,isInvalid:o,isDisabled:n}),i)}function ze({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(Ge[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(U,{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(or,{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",Ge[e].text,t),children:r})}function be({children:e,size:t="md",className:r}){return jsxRuntime.jsx("div",{role:"alert",className:tailwindMerge.twMerge(Ge[t].text,"text-feedback-error-text",r),children:e})}function tc({size:e="md",isInvalid:t,isDisabled:r,isFocused:o,transparent:n,className:a,...i}){return jsxRuntime.jsx("input",{className:Wt({isInvalid:t,isDisabled:r,isFocused:o,transparent:n,size:e,className:a}),...i})}function ih(e){let{children:t,...r}=e;return jsxRuntime.jsx("div",{...r,className:pk(e),children:typeof t=="function"?t(e):t})}function gk({children:e,...t}){return jsxRuntime.jsx(reactAriaComponents.ListBox,{...t,className:Ne(t.className,"outline-0"),children:e})}var dm=He.createContext("md");function uh(){return He.useContext(dm)}function sm(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 ${Ge[e].text} ${t}`}function Ck(){let e=He__namespace.default.useCallback((r,o)=>{o?.(r);},[]),t=He__namespace.default.useCallback((r,o)=>{o?.(r);},[]);return {handleFocus:e,handleBlur:t}}function qn({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:p=false,tooltip:m,isRequired:g,transparent:f,reserveErrorSpace:x=false,placement:b="bottom start",shouldFlip:h=true,menuWidth:y="match",descriptionPlacement:v="below",useMobileTray:S=true,...w}){let[k,L]=He.useState(null),[R,D]=He.useState(null),[V,A]=He.useState(false),T=c??k??l,{handleFocus:N,handleBlur:B}=Ck(),{isMobile:W}=Qt(),O=S&&W,z=He__namespace.default.useMemo(()=>!i||!T||!n?null:Array.from(n).find(G=>G.id===T)??null,[i,T,n]),j=M=>{d&&M!==null&&d(M),d||L(M);},K=He.useRef(null),$=He.useRef(null),P=()=>{O&&A(!V);};return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(reactAriaComponents.Select,{...w,selectedKey:T,defaultSelectedKey:l,onSelectionChange:j,placeholder:u,className:Ne(w.className,"group flex w-full flex-col"),ref:K,onOpenChange:M=>{O||(M&&$.current?D($.current.offsetWidth):M||K.current?.blur());},children:({isDisabled:M,isInvalid:G,isOpen:I})=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(ze,{size:s,tooltip:m,description:v==="tooltip"||v==="inline"?t:void 0,descriptionPlacement:v,isRequired:g,children:e}),jsxRuntime.jsx(vt,{children:jsxRuntime.jsx("div",{ref:$,children:jsxRuntime.jsxs(ie,{variant:"unstyled",className:tailwindMerge.twMerge(Wt({isInvalid:G||p&&!!r,isDisabled:M,isFocused:O?V:I,transparent:f,size:s}),"flex items-center text-start gap-4 cursor-pointer pl-[var(--control-padding-sm)]"),onFocus:C=>N(C,w.onFocus),onBlur:C=>B(C,w.onBlur),onPress:O?P:void 0,"data-open":O?V:I,children:[i&&z?jsxRuntime.jsx("div",{className:sm(s),children:i(z)}):O&&T?jsxRuntime.jsx("div",{className:sm(s),children:n?Array.from(n).find(Y=>Y.id===T)?.label:String(T)}):jsxRuntime.jsx(reactAriaComponents.SelectValue,{className:sm(s)}),jsxRuntime.jsx(U,{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",(O?V:I)&&"rotate-180")})]})})}),x?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:p?jsxRuntime.jsx(be,{size:s,className:"text-feedback-error-text",children:typeof r=="function"&&w.validationResult?r(w.validationResult):typeof r=="string"?r:null}):t&&v==="below"?jsxRuntime.jsx(ke,{size:s,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:p?jsxRuntime.jsx(be,{size:s,className:"mt-1 text-feedback-error-text",children:typeof r=="function"&&w.validationResult?r(w.validationResult):typeof r=="string"?r:null}):t&&v==="below"?jsxRuntime.jsx(ke,{size:s,className:"mt-1",children:t}):null}),O?null:jsxRuntime.jsx(lt,{className:"bg-background-input shadow-xl border border-border-input/20 backdrop-blur-sm rounded-[var(--control-border-radius)]",style:{width:y==="match"&&R?`${R}px`:void 0,minWidth:y==="auto"&&R?`${R}px`:void 0,maxWidth:y==="auto"?"min(600px, 90vw)":void 0},placement:b,shouldFlip:h,children:jsxRuntime.jsx(dm.Provider,{value:"md",children:jsxRuntime.jsx(reactAriaComponents.ListBox,{items:n,className:"w-full max-h-[300px] overflow-auto bg-background-input p-0 outline-0",children:a&&n?C=>jsxRuntime.jsx(nr,{id:C.id,textValue:C.label,children:jsxRuntime.jsx("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap min-w-0 flex-1",children:a(C)})},C.id):o})})})]})}),O&&jsxRuntime.jsx(ct,{isOpen:V,onClose:()=>A(false),title:e??"Select an option",contentPadding:false,children:jsxRuntime.jsx(dm.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:T!=null?[T]:[],onSelectionChange:M=>{let G=Array.from(M)[0];G!=null&&(j(G),A(false));},children:a&&n?M=>jsxRuntime.jsx(nr,{id:M.id,textValue:M.label,children:jsxRuntime.jsx("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap min-w-0 flex-1",children:a(M)})},M.id):o})})})]})}function nr({size:e,className:t,...r}){let o=uh(),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",Ge[n].paddingY,Ge[n].text,t)})}var Lk=[],Ak={sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6",xl:"h-7 w-7"},Ik={sm:"pl-8",md:"pl-10",lg:"pl-11",xl:"pl-13"},mh={sm:"py-1",md:"py-2",lg:"py-3",xl:"py-4"},pm=(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 Fk(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 Bk(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 nc({label:e,staticItems:t=Lk,sections:r,selectedKey:o,defaultSelectedKey:n,onSelectionChange:a,requestConfig:i,defaultFilter:s,placeholder:c,errorMessage:l,description:d,size:u="md",tooltip:p,isRequired:m,isDisabled:g,isInvalid:f,validationResult:x,showErrors:b=true,renderItem:h,renderLeftIcon:y,renderSection:v,autoFocus:S=false,reserveErrorSpace:w=false,hideChevron:k=false,useMobileTray:L=true,className:R}){let D=He__namespace.default.useRef(null),V=He__namespace.default.useRef(null),[A,T]=He__namespace.default.useState(),[N,B]=He.useState(()=>pm(o||n,t,r)),[W,O]=He.useState(false),[z,j]=He.useState(false),K=en(N),{contains:$}=_l({sensitivity:"base"}),[P,M]=He.useState(),{isMobile:G}=Qt(),I=L&&G,C=Ge[u].text,H=reactStately.useAsyncList({async load({signal:ee,filterText:se=""}){if(!i)return {items:[]};if(!i.url||i.shouldLoad&&!i.shouldLoad(se))return {items:[]};try{let ue;return i.requestType==="GraphQL"?ue=await Bk(i,se,ee):ue=await Fk(i,se,ee),M(ue.error),{items:ue.items}}catch(ue){return ue instanceof Error&&ue.name==="AbortError"?{items:[]}:(console.error("Error loading items:",ue),M(ue instanceof Error?ue.message:"Unknown error occurred"),{items:[]})}},initialFilterText:""}),Y=i&&K!==""?H:null,F=false,_=He.useRef("");He.useEffect(()=>{S&&O(true);},[S]),He.useEffect(()=>{let ee=pm(o,t,r);ee!==N&&B(ee);},[o,t,r]),He.useEffect(()=>{let ee=()=>{D.current&&T(D.current.offsetWidth);};return ee(),window.addEventListener("resize",ee),()=>window.removeEventListener("resize",ee)},[]),He.useEffect(()=>{K===""?_.current="":Y&&K!==_.current&&(_.current=K,Y.setFilterText(K));},[K,Y]),F=kl(!!Y?.isLoading,300);let te=He__namespace.default.useMemo(()=>{if(!I||!N)return Y?Y.items:t;let ee=Y?Y.items:t,se=s??(i?()=>true:$);return ee.filter(ue=>se(ue.name,N))},[I,N,Y,t,s,$]),E=ee=>{let se=pm(ee,t,r);B(se),a&&a(ee);},ae=ee=>{B(ee);},oe=()=>{I&&j(true);};return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(reactAriaComponents.ComboBox,{onSelectionChange:E,selectedKey:o||void 0,defaultSelectedKey:n||void 0,items:Y?Y.items:r?r.flatMap(ee=>ee.items):t,className:Ne(R,"group flex flex-col w-full"),menuTrigger:I?"manual":i?"input":"focus",allowsEmptyCollection:!!i,isDisabled:g,isInvalid:f||!!l,inputValue:N,onInputChange:ae,autoFocus:S&&!I,defaultFilter:s??(i?()=>true:$),"aria-label":e||c||"Autocomplete",children:ee=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(ze,{size:u,tooltip:p,isRequired:m,children:e}),jsxRuntime.jsxs(vt,{ref:D,children:[y?jsxRuntime.jsx("div",{className:"pointer-events-none absolute left-3 top-[45%] -translate-y-1/2 z-10",children:y(F)}):jsxRuntime.jsx("div",{className:"pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 z-10 flex items-center",children:F?jsxRuntime.jsx(Io,{size:16,color:"text-text-secondary"}):jsxRuntime.jsx(U,{name:"MagnifyingGlass",className:`${Ak[u]} text-text-secondary`})}),jsxRuntime.jsx(reactAriaComponents.Input,{className:Wt({isInvalid:f||!!l,isDisabled:g,isFocused:W||(I?z:ee.isOpen),size:u,className:tailwindMerge.twMerge(Ik[u],N&&!g||!k&&!N?"pr-10":"pr-3",I&&"cursor-pointer",R)}),placeholder:c,disabled:g,onFocus:se=>{O(true),I&&(se.currentTarget.blur(),oe());},onBlur:()=>{O(false);},onClick:I?oe:void 0,readOnly:I,"aria-label":e||c||"Autocomplete"}),N&&!g&&jsxRuntime.jsx(ds,{onClick:()=>{B(""),a?.(null);},size:u}),!k&&!N&&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:se})=>jsxRuntime.jsx(U,{name:se?"CaretUp":"CaretDown",className:"h-4 w-4"})})]}),w?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:b&&P?jsxRuntime.jsx(be,{size:u,className:"text-feedback-error-text",children:P}):b&&typeof l=="string"?jsxRuntime.jsx(be,{size:u,className:"text-feedback-error-text",children:l}):b&&typeof l=="function"&&x?jsxRuntime.jsx(be,{size:u,className:"text-feedback-error-text",children:l(x)}):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&&P&&jsxRuntime.jsx(be,{size:u,className:"text-feedback-error-text mt-1",children:P}),b&&typeof l=="string"&&jsxRuntime.jsx(be,{size:u,className:"text-feedback-error-text mt-1",children:l}),b&&typeof l=="function"&&x&&jsxRuntime.jsx(be,{size:u,className:"text-feedback-error-text mt-1",children:l(x)})]}),!I&&jsxRuntime.jsx(lt,{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:A?`${A}px`:void 0,zIndex:9999},children:jsxRuntime.jsx(reactAriaComponents.ListBox,{"aria-label":e||c||"Suggestions",className:`max-h-[300px] overflow-auto bg-background-input outline-none ${C}`,children:r?r.map(se=>{let ue=se.items.map(xe=>jsxRuntime.jsx(nr,{id:xe.id,textValue:xe.name,size:u,className:`flex cursor-default items-center gap-2 px-3 ${mh[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(xe):xe.name},xe.id));if(v){let xe=v(se,ue);return He__namespace.default.isValidElement(xe)&&xe.type===reactAriaComponents.ListBoxSection?xe:jsxRuntime.jsx(reactAriaComponents.ListBoxSection,{children:xe},se.name)}return jsxRuntime.jsxs(reactAriaComponents.ListBoxSection,{children:[jsxRuntime.jsx(reactAriaComponents.Header,{className:"px-3 py-1 text-sm font-bold text-text-secondary",children:se.name}),ue]},se.name)}):se=>jsxRuntime.jsx(nr,{id:se.id,textValue:se.name,size:u,className:`flex cursor-default items-center gap-2 px-3 ${mh[u]} text-text-primary outline-none data-[focused]:bg-background-hover data-[selected]:bg-background-selected data-[selected]:font-medium data-[focus-visible]:ring-0`,children:h?h(se):se.name},se.id)})})]})}),I&&jsxRuntime.jsx(ct,{isOpen:z,onClose:()=>j(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(vt,{children:[jsxRuntime.jsx("div",{className:"pointer-events-none absolute left-3 top-[45%] -translate-y-1/2 z-10 flex items-center",children:F?jsxRuntime.jsx(Io,{size:16,color:"text-text-secondary"}):jsxRuntime.jsx(U,{name:"MagnifyingGlass",className:"h-4 w-4 text-text-secondary"})}),jsxRuntime.jsx("input",{ref:V,type:"text",value:N,onChange:ee=>ae(ee.target.value),placeholder:c,autoFocus:true,className:Wt({isInvalid:false,isDisabled:false,isFocused:true,size:"md",className:"pl-10 pr-10"})}),N&&jsxRuntime.jsx(ds,{onClick:()=>{B(""),a?.(null);},size:"md"})]})}),jsxRuntime.jsx("div",{className:"flex-1 overflow-auto",children:jsxRuntime.jsx(reactAriaComponents.ListBox,{"aria-label":e||c||"Suggestions",items:te,selectedKeys:o?[o]:[],selectionMode:"single",onSelectionChange:ee=>{let se=Array.from(ee)[0];se&&(E(se),j(false));},className:"bg-background-input outline-none",children:ee=>jsxRuntime.jsx(nr,{id:ee.id,textValue:ee.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(ee):ee.name},ee.id)})})]})})]})}function Vo({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:p}){let[m,g]=He.useState(false),f=He.useCallback(()=>g(true),[]);He.useEffect(()=>{g(false);},[e]);let x={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"},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"},v={user:"bg-feedback-info-background text-feedback-info-text",team:"bg-feedback-info-background text-feedback-info-text",organization:"bg-feedback-success-background text-feedback-success-text"},S=s==="circle"?"rounded-full":"rounded-md",w=tailwindMerge.twMerge("relative inline-flex items-center justify-center overflow-hidden transition-opacity outline-none",x[i],S,a&&"cursor-pointer hover:opacity-80",u&&"ring-2 ring-background-surface",l),L=(()=>{if(r||o){let A=r?.[0]||"",T=o?.[0]||"";return (A+T).toUpperCase()}if(n){let A=n.split(" "),T=A[0]?.[0]||"",N=A[A.length-1]?.[0]||"";return T===N?T.toUpperCase():(T+N).toUpperCase()}return ""})(),R=()=>{let A={xs:14,sm:16,md:20,lg:24,xl:32}[i];switch(c){case "team":return jsxRuntime.jsx(lucideReact.Users,{size:A});case "organization":return jsxRuntime.jsx(lucideReact.Building2,{size:A});default:return jsxRuntime.jsx(lucideReact.User,{size:A})}},D=A=>{if(p)return c==="organization"?A?"organization-logo":"initials":A?"avatar":"initials"},V=()=>e&&!m?jsxRuntime.jsx("img",{src:e,alt:t||n||"Avatar",className:"h-full w-full object-cover",onError:f,"data-pii-type":D(true),"data-pii-entity":p}):L?jsxRuntime.jsx("span",{className:"font-semibold","data-pii-type":D(false),"data-pii-entity":p,children:L}):R();return jsxRuntime.jsxs("div",{className:"relative inline-block",children:[jsxRuntime.jsx("div",{"data-avatar":true,className:tailwindMerge.twMerge(w,!e||m?v[c]:""),onClick:a,role:a?"button":void 0,tabIndex:a?0:void 0,children:V()}),d&&jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("absolute border-2 border-background-surface",S,b[i],h[i],y[d]),"aria-label":`Status: ${d}`})]})}var Yk={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",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"},Kk={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"},jk={pill:"rounded-full",rounded:"rounded-lg",square:"rounded-sm"},$k={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 at({children:e,variant:t="default",size:r="sm",shape:o="square",dot:n=false,dotPosition:a="left",dotPulse:i=false,className:s}){let c=n&&jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("rounded-full bg-current opacity-75",$k[r],i&&"animate-pulse"),"aria-hidden":"true"});return jsxRuntime.jsxs("span",{className:tailwindMerge.twMerge("inline-flex items-center gap-1.5 font-medium",Kk[r],jk[o],Yk[t],s),children:[n&&a==="left"&&c,e,n&&a==="right"&&c]})}var et=({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":p,"data-pii-entity":m})=>{let g={...p&&{"data-pii-type":p},...m&&{"data-pii-entity":m}},f=o?{target:"_blank",rel:"noopener noreferrer"}:{},v=`${`${d?"underline decoration-1 underline-offset-4 decoration-current":"hover:underline hover:decoration-1 hover:underline-offset-4 hover:decoration-current"} cursor-pointer`} ${{primary:"text-action-primary hover:text-action-primary-hover visited:text-action-primary",secondary:"text-text-link-default hover:text-text-link-hover visited:text-text-link-default",muted:"text-text-secondary hover:text-text-secondary visited:text-text-secondary",unstyled:""}[a==="brand"?"primary":a==="default"?"secondary":a]} ${r}`,S=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[t,l&&jsxRuntime.jsxs("span",{children:["\xA0","\u2192"]})]});return s?jsxRuntime.jsx("button",{type:"button",className:v,onClick:c,title:n,...g,children:S}):u&&e?jsxRuntime.jsx(u,{href:e,className:v,title:n,onClick:i,...f,...g,children:S}):jsxRuntime.jsx("a",{href:e||"#",className:v,...f,...g,title:n,onClick:i,children:S})};var oP={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 ic({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 p=oP[e],m=p[t],g=p.icon,f=!!(i||s),x=!!(r||o);return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex gap-3 rounded-sm border p-4",m.container,d),role:"region","aria-live":"polite","data-testid":u,children:[!l&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-shrink-0",m.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:[x&&jsxRuntime.jsxs("div",{className:"flex-1",children:[r&&jsxRuntime.jsx("div",{className:tr(bt("headingSm"),m.titleColor),children:r}),o&&jsxRuntime.jsx("div",{className:tr(bt("bodySm"),r?"mt-1":"",m.bodyColor),children:o})]}),f&&jsxRuntime.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[i&&(i.asLink?jsxRuntime.jsx(et,{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(ie,{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(et,{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(ie,{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",m.iconColor,Je()),"aria-label":"Dismiss banner",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"})})]})}function xh({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(ic,{...o,className:a})})})}function dn({value:e,children:t,className:r,size:o="sm",iconPosition:n="right"}){let[a,i]=He.useState(false),l=jsxRuntime.jsx(ie,{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(U,{name:"Copy",size:o==="sm"?14:16})}),d=a?jsxRuntime.jsx(or,{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 sc(e){let{children:t,maxWidth:r=600,className:o,...n}=e,{ref:a,width:i}=$a(),[s,c]=He__namespace.default.useState(false),[l,d]=He__namespace.default.useState(false),u=He__namespace.default.useRef(false),p=He__namespace.default.useMemo(()=>t&&!e.items&&typeof t!="function"?He__namespace.default.Children.toArray(t):null,[t,e.items]);if(He__namespace.default.useEffect(()=>{p&&p.length>=4&&i>0&&!u.current?(u.current=true,c(i>r),d(true)):(!p||p&&p.length<4)&&d(true);let m=setTimeout(()=>{l||d(true);},100);return ()=>clearTimeout(m)},[i,r,p,l]),p&&s&&p.length>=4){let m=p[0],g=p.slice(1,-2),f=p.slice(-2),x=g.map(b=>{if(He__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:[m,jsxRuntime.jsx(cP,{items:x}),f]})}return jsxRuntime.jsx(reactAriaComponents.Breadcrumbs,{...n,ref:a,className:tailwindMerge.twMerge("flex gap-2",l?"opacity-100":"opacity-0",o),children:t})}function cP({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(ti,{items:t,align:"left",size:"sm",children:jsxRuntime.jsx(ie,{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 lc(e){let{className:t,children:r,href:o,copyable:n,copyValue:a,...i}=e;return jsxRuntime.jsx(reactAriaComponents.Breadcrumb,{className:Ne(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(et,{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 yP({isSelected:e,isDisabled:t}){let r=[Je,"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 ai({errorMessage:e,...t}){return jsxRuntime.jsxs(reactAriaComponents.Calendar,{...t,children:[jsxRuntime.jsx(cc,{}),jsxRuntime.jsxs(reactAriaComponents.CalendarGrid,{className:"border-separate [border-spacing:0] [&_td]:p-0 [&_td]:!border-0",children:[jsxRuntime.jsx(dc,{}),jsxRuntime.jsx(reactAriaComponents.CalendarGridBody,{children:r=>jsxRuntime.jsx(reactAriaComponents.CalendarCell,{date:r,className:({isSelected:o,isDisabled:n})=>`${yP({isSelected:o,isDisabled:n})} border-0`})})]}),e&&jsxRuntime.jsx(reactAriaComponents.Text,{slot:"errorMessage",className:"text-sm text-feedback-error-text",children:e})]})}function cc(){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(ie,{variant:"icon",slot:"previous",className:"pl-0",children:e==="rtl"?jsxRuntime.jsx(U,{name:"CaretRight","aria-hidden":true,size:t}):jsxRuntime.jsx(U,{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(ie,{variant:"icon",slot:"next",className:"pr-0",children:e==="rtl"?jsxRuntime.jsx(U,{name:"CaretLeft","aria-hidden":true,size:t}):jsxRuntime.jsx(U,{name:"CaretRight","aria-hidden":true,size:t})})]})}function dc(){return jsxRuntime.jsx(reactAriaComponents.CalendarGridHeader,{children:e=>jsxRuntime.jsx(reactAriaComponents.CalendarHeaderCell,{className:"text-xs font-semibold text-text-secondary",children:e})})}var wh=He__namespace.createContext(null);function un(){let e=He__namespace.useContext(wh);if(!e)throw new Error("Carousel components must be used within a CarouselRoot");return e}function Th({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:p,...m}){let g=e!==void 0,[f,x]=He__namespace.useState(t),b=g?e:f,h=He__namespace.useRef(null),[y,v]=He__namespace.useState(0),[S,w]=He__namespace.useState(typeof a=="boolean"?a:!!a),[k,L]=He__namespace.useState(false),R=He__namespace.useRef(null),D=He__namespace.useRef(null),V=typeof a=="object"&&a!==null&&a.delay?a.delay:i;He__namespace.useEffect(()=>{if(h.current){let C=Math.max(1,Math.floor(Number(l)||1)),H=h.current.children;if(H.length===0){v(0);return}let Y=Math.ceil(H.length/C);v(Y);}},[p,l]);let A=He__namespace.useRef(-1);He__namespace.useEffect(()=>{if(b!==A.current&&h.current){let C=Array.from(h.current.children);if(C.length===0)return;let H=b*l,Y=Math.min(H,C.length-1),F=C[Y];F&&typeof F.scrollIntoView=="function"&&(F.scrollIntoView({behavior:"smooth",block:o==="vertical"?"start":"nearest",inline:o==="horizontal"?"start":"nearest"}),A.current=b);}},[b,l,o]);let T=He__namespace.useCallback(C=>{let H=C;n?H<0?H=y-1:H>=y&&(H=0):H=Math.max(0,Math.min(C,y-1)),g||x(H),r?.(H);},[g,n,r,y]),N=He__namespace.useCallback(()=>{T(b+d);},[b,T,d]),B=He__namespace.useCallback(()=>{T(b-d);},[b,T,d]),W=He__namespace.useRef(N);He__namespace.useEffect(()=>{W.current=N;},[N]);let O=y>0&&(n||b<y-1),z=y>0&&(n||b>0),j=He__namespace.useCallback(()=>{w(C=>!C);},[]);He__namespace.useEffect(()=>{if(S&&y>1)return R.current=setInterval(()=>{W.current();},V),()=>{R.current&&(clearInterval(R.current),R.current=null);}},[S,y,V]);let K=He__namespace.useCallback(()=>{R.current&&(clearInterval(R.current),R.current=null);},[]),$=He__namespace.useCallback(()=>{S&&y>1&&(R.current=setInterval(()=>{W.current();},V));},[S,y,V]),P=He__namespace.useCallback(C=>{if(!s)return;L(true);let H="touches"in C&&C.touches&&C.touches.length>0?C.touches[0].clientX:"clientX"in C?C.clientX:0,Y="touches"in C&&C.touches&&C.touches.length>0?C.touches[0].clientY:"clientY"in C?C.clientY:0;D.current={x:H,y:Y};},[s]),M=He__namespace.useCallback(C=>{if(!k||!D.current)return;let H="touches"in C&&C.touches&&C.touches.length>0?C.touches[0].clientX:"clientX"in C?C.clientX:0,Y="touches"in C&&C.touches&&C.touches.length>0?C.touches[0].clientY:"clientY"in C?C.clientY:0,F=H-D.current.x,_=Y-D.current.y,te=50;o==="horizontal"&&Math.abs(F)>te?(F>0?B():N(),L(false),D.current=null):o==="vertical"&&Math.abs(_)>te&&(_>0?B():N(),L(false),D.current=null);},[k,o,N,B]),G=He__namespace.useCallback(()=>{L(false),D.current=null;},[]),I={currentPage:b,totalPages:y,orientation:o,loop:n,spacing:c,slidesPerView:l,goToPage:T,goToNext:N,goToPrev:B,canGoNext:O,canGoPrev:z,isAutoplayActive:S,toggleAutoplay:j,itemsRef:h,isDragging:k,allowMouseDrag:s,handleDragStart:P,handleDragMove:M,handleDragEnd:G};return jsxRuntime.jsx(wh.Provider,{value:I,children:jsxRuntime.jsx("div",{...m,className:tailwindMerge.twMerge("relative w-full",o==="vertical"?"h-full":"",u),onMouseEnter:K,onMouseLeave:$,children:p})})}function Nh({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 kh({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 Ph({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 Rh({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(U,{name:"CaretLeft",size:"sm"})})}function Mh({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(U,{name:"CaretRight",size:"sm"})})}function vm({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 Dh({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(vm,{index:n},n))})}function Eh({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(U,{name:o?"Pause":"Play",size:"sm"})})}function Lh({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 kP="focus:ring-action-primary",PP="bg-action-primary border-action-primary text-[color:var(--color-action-primary-text)] hover:bg-action-primary-hover hover:border-action-primary-hover";function Cm(e){return jsxRuntime.jsxs(reactAriaComponents.CheckboxGroup,{...e,className:Ne(e.className,"flex flex-col gap-2"),children:[jsxRuntime.jsx(ze,{children:e.label}),e.children,e.description&&jsxRuntime.jsx(ke,{children:e.description}),jsxRuntime.jsx(be,{children:typeof e.errorMessage=="function"?void 0:e.errorMessage})]})}function RP({isDisabled:e}){return `flex gap-2 items-center group text-sm transition ${e?"text-text-disabled":"text-text-secondary"}`}function MP({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=kP,i="";return r?i="border-border-muted bg-background-muted":t?i="border-feedback-error-border bg-feedback-error-background":e||o?i=PP:i="bg-background-input border-border-input hover:border-border-focus",`${n} ${a} ${i}`}var Ah="w-4 h-4 text-current group-disabled:text-text-disabled";function _n(e){let{children:t,variant:r,...o}=e;return jsxRuntime.jsx(reactAriaComponents.Checkbox,{...o,className:reactAriaComponents.composeRenderProps(e.className,(n,a)=>`${RP(a)} ${n||""}`),children:n=>{let{isSelected:a,isIndeterminate:i,...s}=n,c=jsxRuntime.jsx("div",{className:MP({isSelected:a,isIndeterminate:i,...s}),children:i?jsxRuntime.jsx(lucideReact.Minus,{"aria-hidden":true,className:Ah}):a?jsxRuntime.jsx(lucideReact.Check,{"aria-hidden":true,className:Ah}):null});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[c,typeof t=="function"?t(n):t]})}})}var LP={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 Fh(e){return !e||e==="default"?"secondary":e==="brand"?"primary":e}var AP={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"},IP="opacity-75 cursor-not-allowed pointer-events-none";function Bh(e){let{variant:t,size:r,isDisabled:o,isClickable:n,className:a}=e,i=r==="xs"?"text-xs":Ge[r].text;return tailwindMerge.twMerge("inline-flex items-center justify-center rounded-full font-medium transition-colors","whitespace-nowrap select-none",AP[r],i,LP[t],n&&!o&&"cursor-pointer",o&&IP,a)}function xo({children:e,onRemove:t,size:r="md",variant:o="secondary",isRemovable:n=true,isDisabled:a=false,className:i,onClick:s}){let c=!!s&&!a,l=n&&t&&!a,d=f=>{f.stopPropagation(),f.preventDefault(),t&&!a&&t();},u=()=>{s&&!a&&s();},p=r==="xs"?10:r==="sm"?12:r==="md"?14:16,g=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("span",{className:"truncate",children:e}),l?c?jsxRuntime.jsx("span",{onClick:d,onKeyDown:f=>{(f.key==="Enter"||f.key===" ")&&(f.preventDefault(),d(f));},role:"button",tabIndex:0,className:"flex-shrink-0 rounded-full p-0.5 hover:bg-text-primary/10 transition-colors cursor-pointer","aria-label":"Remove",children:jsxRuntime.jsx(U,{name:"X",size:p,className:"text-current opacity-70 hover:opacity-100"})}):jsxRuntime.jsx("button",{type:"button",onClick:d,className:"flex-shrink-0 rounded-full p-0.5 hover:bg-text-primary/10 transition-colors cursor-pointer","aria-label":"Remove",tabIndex:-1,children:jsxRuntime.jsx(U,{name:"X",size:p,className:"text-current opacity-70 hover:opacity-100"})}):null]});return c?jsxRuntime.jsx("button",{type:"button",onClick:u,className:Bh({variant:Fh(o),size:r,isDisabled:a,isClickable:c,className:i}),disabled:a,children:g}):jsxRuntime.jsx("span",{className:Bh({variant:Fh(o),size:r,isDisabled:a,isClickable:c,className:i}),children:g})}function zh({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:p,fetchSuggestions:m,chipVariant:g="secondary",showErrors:f=true,className:x}){let[b,h]=He.useState(""),[y,v]=He.useState([]),[S,w]=He.useState(false),[k,L]=He.useState(false),[R,D]=He.useState(-1),V=en(b,300),A=He.useRef(null),T=He.useRef(null),{isFocused:N,handleFocus:B,handleBlur:W}=Vr(),O=He.useId(),z=He.useCallback(I=>{if(!u||!I.trim())return;let C=I.trim();if(d.includes(C)){h(""),L(false),v([]),D(-1);return}u([...d,C]),h(""),L(false),v([]),D(-1),A.current?.focus();},[d,u]),j=He.useCallback(I=>{u&&u(d.filter(C=>C!==I));},[d,u]);He.useEffect(()=>{if(!m)return;let I=true;return (async()=>{let H=V.trim();if(!H){I&&(w(false),v([]),L(false));return}w(true);try{let Y=await m(H);if(!I)return;v(Y),L(!0);}catch(Y){if(!I)return;console.error("Error fetching suggestions:",Y),v([]),L(false);}finally{I&&w(false);}})(),()=>{I=false;}},[V,m]),He.useEffect(()=>{if(m||!p)return;if(!V.trim()){v([]),L(false);return}let I=p.filter(C=>C.name.toLowerCase().includes(V.toLowerCase())).map(C=>C.id);v(I),L(I.length>0||V.trim().length>0);},[V,p,m]);let K=He.useMemo(()=>{let I=y.filter(C=>!d.includes(C));return b.trim()&&!I.includes(b.trim())&&!d.includes(b.trim())?[...I,`Create tag: "${b.trim()}"`]:I},[y,b,d]),$=He.useCallback(I=>{h(I.target.value),D(-1),I.target.value&&L(true);},[]),P=He.useCallback(I=>{i||(I.startsWith("Create tag:")?z(b):z(I));},[z,b,i]),M=He.useCallback(I=>{if(!i)switch(I.key){case "Enter":case ",":if(I.preventDefault(),R>=0&&R<K.length){let C=K[R];C.startsWith("Create tag:")?z(b):z(C);}else b.trim()&&z(b.trim());break;case "Backspace":!b&&d.length>0&&(I.preventDefault(),j(d[d.length-1]));break;case "ArrowDown":I.preventDefault(),k&&D(C=>C<K.length-1?C+1:C);break;case "ArrowUp":I.preventDefault(),k&&D(C=>C>0?C-1:-1);break;case "Escape":L(false),D(-1);break}},[i,b,d,K,R,k,z,j]);He.useEffect(()=>{let I=C=>{T.current&&C.target instanceof Node&&!T.current.contains(C.target)&&L(false);};return document.addEventListener("mousedown",I),()=>document.removeEventListener("mousedown",I)},[]);let G=()=>tailwindMerge.twMerge("flex items-center gap-1.5 rounded-md overflow-x-auto overflow-y-hidden","[&::-webkit-scrollbar]:hidden [-ms-overflow-style:none] [scrollbar-width:none]",cn({isInvalid:s,isDisabled:i,isFocused:N}),"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:T,className:tailwindMerge.twMerge("relative flex flex-col gap-1",x),children:[e&&jsxRuntime.jsx(ze,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(vt,{children:jsxRuntime.jsxs("div",{className:G(),onClick:()=>!i&&A.current?.focus(),children:[d.map(I=>jsxRuntime.jsx(xo,{variant:g,size:"xs",onRemove:()=>j(I),isDisabled:i,className:"shrink-0 max-h-full",children:I},I)),jsxRuntime.jsx("input",{ref:A,type:"text",role:"combobox","aria-expanded":k,"aria-haspopup":"listbox","aria-controls":O,"aria-autocomplete":"list",value:b,onChange:$,onKeyDown:M,onFocus:I=>B(I),onBlur:I=>W(I),placeholder:d.length===0?l:"",disabled:i,className:"flex-1 min-w-[120px] h-full !border-0 !outline-none !ring-0 bg-transparent text-text-primary text-sm placeholder:text-text-disabled disabled:cursor-not-allowed focus:!ring-0 focus:!outline-none focus:!border-0 focus-visible:!ring-0 focus-visible:!outline-none focus-visible:!border-0",style:{boxShadow:"none",WebkitAppearance:"none",appearance:"none",border:"none",outline:"none"}})]})}),k&&(b||K.length>0)&&jsxRuntime.jsx("div",{id:O,role:"listbox",className:tailwindMerge.twMerge("absolute z-50 mt-1 rounded-lg border border-border-default","max-h-60 overflow-auto bg-background-surface shadow-lg","left-0 right-0 top-full"),children:S?jsxRuntime.jsx("div",{className:"px-3 py-2 text-sm text-text-secondary",children:"Loading..."}):K.length>0?K.map((I,C)=>jsxRuntime.jsx("div",{role:"option","aria-selected":C===R,className:tailwindMerge.twMerge("cursor-pointer px-3 py-2 text-sm transition-colors","hover:bg-background-hover",C===R&&"bg-background-selected",I.startsWith("Create tag:")&&"italic text-text-secondary"),onClick:()=>P(I),children:I},I)):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(be,{size:o,className:"text-feedback-error-text mt-1",children:r}),f&&typeof r=="function"&&c&&jsxRuntime.jsx(be,{size:o,className:"text-feedback-error-text mt-1",children:r(c)})]})}var YP={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')},KP={github:()=>import('ace-builds/src-noconflict/theme-github'),github_dark:()=>import('ace-builds/src-noconflict/theme-github_dark')},jP={"ext-language-tools":()=>import('ace-builds/src-noconflict/ext-language_tools')},fs=new Set;async function wm(e,t){fs.has(e)||(await t(),fs.add(e));}async function $P(e,t,r){await Promise.all([wm(`language:${e}`,YP[e]),wm(`theme:${t}`,KP[t]),r?wm("extension:language-tools",jP["ext-language-tools"]):void 0]);}function Wh(e,t,r){let o=fs.has(`language:${e}`)&&fs.has(`theme:${t}`);return r?o&&fs.has("extension:language-tools"):o}function Gh({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:p=true,fontSize:m=14,wrapEnabled:g=false}){let f=He.useRef(null),[x,b]=He.useState(()=>Wh(o,n,!t)),h=He.useMemo(()=>{if(a)return a;let y=(e.match(/\n/g)||[]).length+1;return `${Math.max(l,Math.min(y,d))*c+10}px`},[e,a,c,l,d]);return He.useEffect(()=>{let y=false,v=!t;return Wh(o,n,v)?(b(true),()=>{y=true;}):(b(false),$P(o,n,v).then(()=>{y||b(true);}).catch(S=>{y||b(true),console.error("Failed to load Ace editor resources",S);}),()=>{y=true;})},[o,t,n]),He.useEffect(()=>{x&&f.current?.editor&&f.current.editor.resize();},[h,x]),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-hidden rounded-md border border-border-input",s),style:{width:i,height:h},children:x?jsxRuntime.jsx(GP__default.default,{ref:f,mode:o,theme:n,value:e,onChange:r,readOnly:t,width:"100%",height:"100%",fontSize:m,showPrintMargin:false,showGutter:p,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 Yh=He__namespace.createContext({variant:"contained",density:"comfortable",showDividers:true}),Kh=He__namespace.createContext(null),QP={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"},Uh={true:"divide-y divide-border-default",false:"gap-3"},_P={comfortable:"px-5 py-3",compact:"px-4 py-2.5"},eR={comfortable:"px-5 pt-0",compact:"px-4 pt-0"},tR={comfortable:"h-4 w-4",compact:"h-3.5 w-3.5"};function Pm(){return He__namespace.useContext(Yh)}function rR(e){let t=He__namespace.useContext(Kh);if(!t)throw new Error(`${e} must be used within a <CollapseItem>`);return t}function oR({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 nR({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=_P[r];return tailwindMerge.twMerge(i,Je(),l,s,c,o==="plain"&&n?"px-0":"",a)}function aR({density:e,showDividers:t,className:r}){let o="text-text-primary",n=eR[e];return tailwindMerge.twMerge(o,n,t?"":"rounded-b-lg",r)}function ii({variant:e="contained",density:t="comfortable",showDividers:r=true,className:o,...n}){let a=He__namespace.useMemo(()=>({variant:e,density:t,showDividers:r}),[e,t,r]),i=tailwindMerge.twMerge("flex w-full flex-col",QP[e],r?Uh.true:Uh.false,e==="plain"&&r?"border-y border-border-default/60":"");return jsxRuntime.jsx(Yh.Provider,{value:a,children:jsxRuntime.jsx(reactAriaComponents.DisclosureGroup,{...n,className:Ne(o,i)})})}function mn({className:e,children:t,...r}){let{variant:o,showDividers:n}=Pm();return jsxRuntime.jsx(reactAriaComponents.Disclosure,{...r,className:reactAriaComponents.composeRenderProps(e,a=>oR({variant:o,showDividers:n,className:a})),children:a=>jsxRuntime.jsx(Kh.Provider,{value:a,children:t})})}mn.displayName="CollapseItem";function fn({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=rR("CollapseHeader"),{density:p,variant:m,showDividers:g}=Pm(),f=tR[p];return jsxRuntime.jsx(reactAriaComponents.Button,{...d,slot:"trigger","data-expanded":u.isExpanded?"true":void 0,className:reactAriaComponents.composeRenderProps(l,(x,b)=>nR({isDisabled:b.isDisabled??false,isPressed:b.isPressed??false,density:p,variant:m,showDividers:g,className:x})),children:x=>{let b=x.isDisabled??false,h=i?typeof n=="function"?n({isExpanded:u.isExpanded,isDisabled:b}):n??jsxRuntime.jsx(U,{name:"CaretDown",size:p==="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=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"&&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:[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"&&y]})}})}fn.displayName="CollapseHeader";function gn({className:e,children:t,...r}){let{density:o,showDividers:n}=Pm();return jsxRuntime.jsx(reactAriaComponents.DisclosurePanel,{...r,className:reactAriaComponents.composeRenderProps(e,a=>aR({density:o,showDividers:n,className:a})),children:t})}gn.displayName="CollapseContent";function si(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 Mm(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 cR({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:p="#000000",showColorSwatch:m=true,reserveErrorSpace:g=true,...f}){let[x,b]=He.useState(d||""),[h,y]=He.useState(l||d||""),[v,S]=He.useState(false),[w,k]=He.useState(null),{isFocused:L,handleFocus:R,handleBlur:D}=Vr(),V=l!==void 0?l:x;He.useEffect(()=>{l!==void 0&&y(l);},[l]);let A=V?!si(V):false,T=He.useCallback(W=>{if(y(W),si(W)){let O=Mm(W);u?u(O):b(O);}else W===""&&(u?u(""):b(""));},[u]),N=He.useCallback(W=>{let O=Mm(W);y(O),u?u(O):b(O);},[u]),B=He.useCallback(W=>{if(si(h)){let O=Mm(h);y(O),u&&O!==V?u(O):!u&&O!==x&&b(O);}D(W,f.onBlur);},[h,V,x,u,D,f.onBlur]);return jsxRuntime.jsx(reactAriaComponents.TextField,{...f,isRequired:a,className:Ne(s,"group flex flex-col"),children:({isDisabled:W})=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(ze,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(vt,{children:jsxRuntime.jsxs("div",{className:"flex gap-2",children:[jsxRuntime.jsxs("div",{className:"flex-1 relative",children:[jsxRuntime.jsx(tc,{size:o,disabled:W,type:"text",value:h,placeholder:p,onFocus:O=>R(O,f.onFocus),onBlur:B,onChange:O=>T(O.target.value),className:tailwindMerge.twMerge(Wt({isInvalid:A,isDisabled:W,isFocused:L,size:o,transparent:i}),m?"pr-12":"pr-3","pl-3")}),m&&jsxRuntime.jsx("div",{className:"absolute right-3 top-1/2 -translate-y-1/2 pointer-events-none",style:{width:Ge[o].height},children:jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-6 h-6 rounded border shadow-sm",si(V)?"border-border-default":"border-border-default bg-background-muted"),style:si(V)?{backgroundColor:V}:void 0,"aria-hidden":"true",children:!si(V)&&jsxRuntime.jsx("div",{className:"w-full h-full flex items-center justify-center",children:jsxRuntime.jsx("div",{className:"w-3 h-3 rounded-full border-2 border-border-muted"})})})})]}),jsxRuntime.jsx("div",{ref:k,children:jsxRuntime.jsx(ie,{variant:"secondary",size:o,icon:"Palette",onPress:()=>S(!v),isDisabled:W,className:"flex-shrink-0",children:"Pick"})})]})}),g?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(be,{size:o,children:r}):typeof r=="function"&&c?jsxRuntime.jsx(be,{size:o,children:r(c)}):t?jsxRuntime.jsx(ke,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(be,{size:o,className:"mt-1",children:r}):typeof r=="function"&&c?jsxRuntime.jsx(be,{size:o,className:"mt-1",children:r(c)}):t?jsxRuntime.jsx(ke,{size:o,className:"mt-1",children:t}):null}),v&&w&&jsxRuntime.jsx(lt,{triggerRef:{current:w},isOpen:v,onOpenChange:S,placement:"bottom end",className:"bg-background-input shadow-xl border border-border-input/20 backdrop-blur-sm rounded-lg p-4",children:jsxRuntime.jsxs("div",{className:"flex flex-col gap-4",children:[jsxRuntime.jsx(reactColorful.HexColorPicker,{color:V||"#000000",onChange:N,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:V||"#000000"}}),jsxRuntime.jsx("div",{className:"flex-1 text-text-primary text-[length:var(--control-text-sm)] font-mono",children:V||"#000000"})]})]})})]})})}function qh({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(Ar,{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 Jh({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=gl(t);else if(!e&&r){let u=gl(r);d=u?`Offline ${u}`:null;}}return jsxRuntime.jsxs("div",{className:"inline-flex flex-col gap-1",children:[jsxRuntime.jsx(at,{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 Xh({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:p,contentClassName:m,piiEntity:g}){let f=`${e} ${t}`.trim(),x=({children:h,className:y})=>a?i?jsxRuntime.jsx(i,{href:a,className:y,children:h}):jsxRuntime.jsx(et,{href:a,variant:"unstyled",className:tailwindMerge.twMerge("hover:underline",y),asButton:false,children:h}):jsxRuntime.jsx("span",{className:y,children:h}),b=c==="vertical";return u?jsxRuntime.jsx(Ue,{variant:s,className:tailwindMerge.twMerge("flex flex-col",p),children:jsxRuntime.jsx(Ue.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(Ue,{variant:s,className:tailwindMerge.twMerge("group/card flex flex-col",p),children:jsxRuntime.jsx(Ue.Content,{className:tailwindMerge.twMerge("flex items-center flex-1",a&&"cursor-pointer",m),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(Vo,{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(x,{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(U,{name:"Envelope",size:16,className:"text-text-secondary flex-shrink-0"}),jsxRuntime.jsx(et,{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(U,{name:"Phone",size:16,className:"text-text-secondary flex-shrink-0"}),jsxRuntime.jsx(et,{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:Ya(o)})]})]})]})]})})})}function mc({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:p,isLoading:m=false,className:g,piiEntity:f}){let x=p??(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],y=`${e} ${t}`.trim(),S={strong:"font-semibold text-text-primary",high:"font-semibold text-text-primary",normal:"text-text-primary",low:"text-text-secondary"}[l],w=({children:k,className:L})=>i?s?jsxRuntime.jsx(s,{href:i,className:L,children:k}):jsxRuntime.jsx(et,{href:i,variant:c,className:tailwindMerge.twMerge("hover:underline",L),asButton:false,children:k}):jsxRuntime.jsx("span",{className:L,children:k});return m?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(w,{className:tailwindMerge.twMerge("flex items-center",h.gap),children:[jsxRuntime.jsx(Vo,{firstName:e,lastName:t,src:o,size:h.avatarSize,variant:"user",shape:x,className:"flex-shrink-0",piiEntity:f}),jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("leading-normal truncate hover:text-text-primary",S,h.textSize,i&&"hover:underline hover:decoration-1 hover:underline-offset-4"),"data-pii-type":f?"full-name":void 0,"data-pii-entity":f,children:y})]}),u]}):jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center justify-start",h.gap,g),children:[jsxRuntime.jsx(Vo,{firstName:e,lastName:t,src:o,size:h.avatarSize,variant:"user",shape:x,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",S,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:y})}),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 fc={duration:.5,ease:"easeInOut"},Or=He.createContext(null),oa=()=>{let e=He.useContext(Or);if(!e)throw new Error("useChartContext must be used within a ChartContextProvider");return e};function gc(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=He.useId(),c=He.useId(),{xScale:l,yScale:d,animationSettings:u}=oa(),p=l.range(),m=d.range(),g=(y,v)=>typeof r=="function"?r(y,v):r??0,f=y=>y.chartYValue??y.yValue,x=a!=null?gc(e,a):e,b={transformOrigin:`0 ${m[0]}px`,transformBox:"fill-box",isolation:"isolate"},h=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[r===void 0?jsxRuntime.jsx(shape.AreaClosed,{data:x,x:y=>y?l(y.xValue):0,y:y=>y?d(f(y)):0,yScale:d,defined:y=>y!=null,fill:`url(#${s})`,curve:curve.curveLinear}):jsxRuntime.jsx(shape.Area,{data:x,x:y=>y?l(y.xValue):0,y0:(y,v)=>y?d(g(y,v)):0,y1:y=>y?d(f(y)):0,defined:y=>y!=null,fill:t,fillOpacity:o,curve:curve.curveLinear}),n?jsxRuntime.jsx(shape.LinePath,{data:x,x:y=>y?l(y.xValue):0,y:y=>y?d(f(y)):0,defined:y=>y!=null,stroke:t,strokeWidth:3,curve:curve.curveLinear}):null]});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("defs",{children:[jsxRuntime.jsxs("linearGradient",{id:s,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[jsxRuntime.jsx("stop",{offset:"50%",stopColor:t,stopOpacity:o}),jsxRuntime.jsx("stop",{offset:"100%",stopColor:t,stopOpacity:0})]}),i&&jsxRuntime.jsx("clipPath",{id:c,children:jsxRuntime.jsx("rect",{x:p[0],y:m[1],width:p[1]-p[0],height:m[0]-m[1]})})]}),i?jsxRuntime.jsx("g",{clipPath:`url(#${c})`,children:jsxRuntime.jsx(framerMotion.motion.g,{initial:{scaleY:0},animate:{scaleY:1},transition:{duration:u.duration,ease:u.ease},style:b,children:h})}):jsxRuntime.jsx("g",{style:b,children:h})]})};var xc=({data:e,color:t="var(--color-viz-default)",opacity:r=1,categoryColors:o={}})=>{let{xScale:n,yScale:a,animationSettings:i}=oa(),s=He.useId(),c=n.range(),l=a.range(),d=[...e].sort((m,g)=>m.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,p=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((m,g)=>{let f=n(m.xValue),x=a(m.yValue),b=a(0),h=Math.min(x,b),y=Math.abs(x-b),v=d[g+1],S=v?Math.abs(n(v.xValue)-f):p,w=m.category&&o[m.category]?o[m.category]:t;return jsxRuntime.jsx(shape.Bar,{x:f-S/2,y:h,width:S,height:y,fill:w,opacity:r,rx:1},m.xValue.getTime())})})})]})};var yo=ml(Cy()),wy=ml(Sy());var BR=["top","left","transform","className","children","innerRef"];function Wm(){return Wm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);}return e},Wm.apply(this,arguments)}function VR(e,t){if(e==null)return {};var r={},o=Object.keys(e),n,a;for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&(r[n]=e[n]);return r}function bs(e){var t=e.top,r=t===void 0?0:t,o=e.left,n=o===void 0?0:o,a=e.transform,i=e.className,s=e.children,c=e.innerRef,l=VR(e,BR);return He__namespace.default.createElement("g",Wm({ref:c,className:(0, wy.default)("visx-group",i),transform:a||"translate("+n+", "+r+")"},l),s)}bs.propTypes={top:yo.default.number,left:yo.default.number,transform:yo.default.string,className:yo.default.string,children:yo.default.node,innerRef:yo.default.oneOfType([yo.default.string,yo.default.func,yo.default.object])};function UR(e){return e>=1e9?"GW":e>=1e6?"MW":e>=1e3?"kW":"W"}function YR(e){return e>=1e3?"kA":e<1?"mA":"A"}function KR(e){return e>=1e3?"kV":e<1?"mV":"V"}function jR(e){return e>=1e6?"M\u03A9":e>=1e3?"k\u03A9":e<1?"m\u03A9":"\u03A9"}function ui(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?Iu[e.sourceUnit]:1;return {...e,unit:Au(t*r)}}case "power":return e.unit||e.autoScale===false?e:{...e,unit:UR(t)};case "current":return e.unit||e.autoScale===false?e:{...e,unit:YR(t)};case "voltage":return e.unit||e.autoScale===false?e:{...e,unit:KR(t)};case "resistance":return e.unit||e.autoScale===false?e:{...e,unit:jR(t)};default:return e}}var $R=e=>e.baselineValue??0,Ae={top:8,right:0,bottom:50,left:60};function _r(e={type:"number"}){let t=i=>{if(i==null)return "-";let s=co({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=co({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 Gm=(e,t)=>{let r=d3Array.extent(e,o=>o.xValue);return scale.scaleTime({range:[Ae.left,t-Ae.right],domain:r,nice:true})},xs=(e,t,r,o)=>{let n=_r(r);if(o)return scale.scaleLinear({range:[t-Ae.bottom,Ae.top],domain:o,nice:true});let a=d3Array.min(e,l=>Math.min(l.yValue,l.chartYValue??l.yValue))||0,i=d3Array.max(e,l=>Math.max(l.yValue,l.chartYValue??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-Ae.bottom,Ae.top],domain:[s,c],nice:true})};function qR(e,t=12,r="system-ui"){if(typeof window>"u"||typeof document>"u")return e.length*(t*.6);let o=document.createElement("canvas"),n=null;try{n=o.getContext("2d");}catch{return e.length*(t*.6)}return n?(n.font=`${t}px ${r}`,n.measureText(e).width):e.length*(t*.6)}function pi(e,t=12,r="system-ui"){return e.length===0?0:Math.max(...e.map(o=>qR(o,t,r)))}function hs(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function JR(e,t,r=12,o=false){if(!hs(t[0])||!hs(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=mp({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=pi(l,r),p=d+d,m=Math.floor(e/p),g=Math.max(2,Math.min(8,m));if(g<=2)return [t[0],t[1]];let f=[t[0]],x=i/36e5,b;x<=1?b=6e4:x<=6?b=5*6e4:x<=48?b=60*6e4:x<=168?b=360*6e4:b=1440*6e4;for(let h=1;h<g-1;h++){let y=h/(g-1),v=n+i*y,S=Math.round(v/b)*b,w=f[f.length-1].getTime(),k=S>w?S:w+b;if(k>=a)break;f.push(new Date(k));}return f.push(t[1]),f}var XR=({top:e,scale:t,width:r})=>{let o=t.domain(),n=[o[0],o[o.length-1]],a=hs(n[0])&&hs(n[1]),i=r<400,s=a?n[0].getTime():0,c=a?n[1].getTime():0,l=He.useMemo(()=>a?mp({start:n[0],end:n[1]},{compact:i}):()=>"",[s,c,i,a]),d=He.useMemo(()=>JR(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 p=u;return hs(p)?l(p):""},stroke:"var(--color-border-muted)",tickStroke:"var(--color-border-muted)",tickLabelProps:(u,p,m)=>({fill:"var(--color-text-secondary)",fontSize:12,textAnchor:p===0?"start":p===m.length-1?"end":"middle"}),rangePadding:0})};function mi(e,t=12){let r=t*2.5,o=Math.floor(e/r);return Math.max(2,Math.min(6,o))}var Um=12,ZR=({left:e,scale:t,yFormatter:r,height:o})=>{let n=_r(r),a=He.useMemo(()=>!o||o<=0?5:mi(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:Um,textAnchor:"end"},c=t(i),[l,d]=t.range(),u=Math.min(l,d),p=Math.max(l,d);return c-u<Um/2?{...s,verticalAnchor:"start"}:p-c<Um/2?{...s,verticalAnchor:"end"}:{...s,dy:"0.33em"}}})},QR=({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"})}),_R=({left:e,scale:t})=>jsxRuntime.jsx(axis.Axis,{orientation:"left",left:e,scale:t,stroke:"var(--color-border-muted)",tickStroke:"var(--color-border-muted)",tickLabelProps:()=>({fill:"var(--color-text-secondary)",fontSize:12,textAnchor:"end",dx:"-0.25em",dy:"0.33em"})}),e5=({top:e,scale:t,yFormatter:r,width:o})=>{let n=_r(r),a=He.useMemo(()=>{if(!o||o<=0)return 5;let s=Math.floor(o/60);return Math.max(2,Math.min(8,s))},[o]);return jsxRuntime.jsx(axis.Axis,{orientation:"bottom",top:e,scale:t,numTicks:a,tickFormat:i=>(n.tickFormat||n.format)(i),stroke:"var(--color-border-muted)",tickStroke:"var(--color-border-muted)",tickLabelProps:()=>({fill:"var(--color-text-secondary)",fontSize:12,textAnchor:"middle",dy:"0.25em"})})},zr={Bottom:XR,Left:ZR,CategoryBottom:QR,CategoryLeft:_R,NumericBottom:e5};var hn=({data:e,formatter:t,label:r,categoryLabels:o})=>{if(!e)return null;let n=He__namespace.default.useContext(Or),a=o??n?.categoryLabels,i=n?.xScale,s=n?.width,c=n?.height,l=_r(t),d=h=>{if(h.baselineValue===void 0)return l.format(h.value);let y=Math.min(h.baselineValue,h.value),v=Math.max(h.baselineValue,h.value);return `${l.format(y)} \u2013 ${l.format(v)}`},u=He__namespace.default.useRef(null),[p,m]=He__namespace.default.useState({x:0,y:0,translate:"translate(-50%, -100%)"});He__namespace.default.useEffect(()=>{if(!u.current)return;let y=u.current.getBoundingClientRect(),v=s??window.innerWidth,S=c??window.innerHeight,w=e.x,k=e.y,L=16,R=e.x+y.width+L<=v,D=e.x-y.width-L>=0,V;e.position==="left"?V=D||!R:V=!R&&D;let A=V?"translate(calc(-100% - 16px), -50%)":"translate(16px, -50%)";if(!R&&!D){let T=v-e.x,N=e.x;T<=N?(w=v,A="translate(-100%, -50%)"):(w=0,A="translate(0, -50%)");}k-y.height/2<0?k=y.height/2:k+y.height/2>S&&(k=S-y.height/2),m({x:w,y:k,translate:A});},[e.x,e.y,e.position,s,c]);let g=i?.domain(),x=g&&g.length===2&&g.every(h=>h instanceof Date)?lx({start:g[0],end:g[1]}):null,b=r||(x&&e.xValue instanceof Date?x(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:p.x,top:p.y,transform:p.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(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))})]},h.label))}),(()=>{let h=e.series[e.series.length-1],y=e.eventItems?.length?e.eventItems:[{label:h.label,color:h.color,metadata:e.eventMetadata}];return jsxRuntime.jsx("div",{className:"space-y-2",children:y.map((v,S)=>jsxRuntime.jsxs("div",{children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("div",{className:"h-2 w-2 rounded-full",style:{backgroundColor:v.color}}),jsxRuntime.jsx("span",{className:"font-medium text-text-primary",children:v.label})]}),v.metadata&&Object.keys(v.metadata).length>0&&jsxRuntime.jsx("div",{className:"ml-4 mt-1 space-y-0.5 text-xs text-text-secondary",children:Object.entries(v.metadata).map(([w,k])=>jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsxs("span",{className:"capitalize",children:[w,":"]}),jsxRuntime.jsx("span",{className:"font-medium",children:k})]},w))})]},`${v.label}-${S}`))})})()]}):jsxRuntime.jsx("ul",{className:"list-none p-0",children:e.series.map(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(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))})]},h.label))})]})})};var l5={top:20,right:20,bottom:50,left:60},Ey=({data:e,width:t,height:r,margin:o=l5,color:n,yFormatter:a={type:"number"},showGrid:i=true,showAxes:s=true,animate:c=true,barRadius:l=4,barPadding:d=.3,onBarClick:u,onBarHover:p,activeIndex:m,className:g,style:f,"aria-label":x="Category bar chart",orientation:b="vertical",showTooltip:h=true})=>{let[y,v]=He.useState(null),[S,w]=He.useState(null),[k,L]=He.useState(null),[R,D]=He.useState(t??600),[V,A]=He.useState(r??300),T=He.useRef(null),N=m??y,B=He.useId(),W=n||"var(--color-viz-default)";He.useEffect(()=>{if(t!==void 0&&r!==void 0){D(t),A(r);return}if(!T.current)return;let P=new ResizeObserver(M=>{for(let G of M)t===void 0&&D(G.contentRect.width),r===void 0&&A(G.contentRect.height);});return P.observe(T.current),t===void 0&&D(T.current.offsetWidth),r===void 0&&A(T.current.offsetHeight||300),()=>{P.disconnect();}},[t,r]);let{xScale:O,yScale:z,innerWidth:j,innerHeight:K}=He.useMemo(()=>{let P=R-o.left-o.right,M=V-o.top-o.bottom;if(b==="horizontal"){let I=d3Array.max(e,C=>C.value)||0;return {xScale:scale.scaleLinear({range:[0,P],domain:[0,I*1.1],nice:true}),yScale:scale.scaleBand({range:[0,M],domain:e.map(C=>C.label),padding:d}),innerWidth:P,innerHeight:M}}let G=d3Array.max(e,I=>I.value)||0;return {xScale:scale.scaleBand({range:[0,P],domain:e.map(I=>I.label),padding:d}),yScale:scale.scaleLinear({range:[M,0],domain:[0,G*1.1],nice:true}),innerWidth:P,innerHeight:M}},[e,R,V,o,d,b]);if(e.length===0)return jsxRuntime.jsx("div",{ref:T,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 $=(P,M)=>{if(v(P),p?.(M,P),P!==null&&M){let G,I;if(b==="horizontal"){let H=O(M.value),Y=z(M.label)||0,F=z.bandwidth();G=o.left+H,I=o.top+Y+F/2;}else {let H=O,Y=z,F=H(M.label)??0,_=H.bandwidth(),te=Y(M.value);G=o.left+F+_/2,I=o.top+te;}let C=G>R/2;L(M.label),w({xValue:new Date,series:[{label:"Value",value:M.value,color:M.color||W}],x:G,y:I,position:C?"left":"right"});}else w(null),L(null);};return jsxRuntime.jsxs("div",{ref:T,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":x,role:"img",children:[jsxRuntime.jsxs("svg",{width:R,height:V,children:[jsxRuntime.jsx("defs",{children:jsxRuntime.jsx(gradient.LinearGradient,{id:`${B}-bar`,from:W,to:W,toOpacity:.85})}),jsxRuntime.jsxs(bs,{left:o.left,top:o.top,children:[i&&jsxRuntime.jsx("g",{className:"grid-lines",children:(b==="horizontal"?O.ticks(5):z.ticks(5)).map(P=>{let M=b==="horizontal"?0:z(P),G=b==="horizontal"?O(P):0;return jsxRuntime.jsx("line",{x1:b==="horizontal"?G:0,y1:b==="horizontal"?0:M,x2:b==="horizontal"?G:j,y2:b==="horizontal"?K:M,stroke:"var(--color-border-default)",strokeOpacity:.5,strokeDasharray:"2,3"},P)})}),e.map((P,M)=>{let G=N===M||N==null,I=P.color||`url(#${B}-bar)`;if(b==="horizontal"){let E=O(P.value),ae=z.bandwidth(),oe=z(P.label)||0;return jsxRuntime.jsx(framerMotion.motion.rect,{x:0,y:oe,width:E,height:ae,fill:I,rx:l,ry:l,initial:c?{width:0,opacity:.5}:void 0,animate:{width:E,opacity:G?1:.5},transition:{duration:.5,delay:M*.05,ease:"easeOut",opacity:{duration:.15,delay:0}},style:{cursor:u||p?"pointer":"default"},onMouseEnter:()=>$(M,P),onMouseLeave:()=>$(null,null),onClick:()=>u?.(P,M)},P.label)}let C=O,H=z,Y=C.bandwidth(),F=C(P.label)??0,_=H(P.value),te=Math.max(0,K-_);return c?jsxRuntime.jsx(framerMotion.motion.rect,{x:F,width:Y,fill:I,rx:l,ry:l,initial:{y:K,height:0,opacity:.5},animate:{y:_,height:te,opacity:G?1:.5},transition:{duration:.5,delay:M*.05,ease:"easeOut",opacity:{duration:.15,delay:0}},style:{cursor:u||p?"pointer":"default"},onMouseEnter:()=>$(M,P),onMouseLeave:()=>$(null,null),onClick:()=>u?.(P,M)},P.label):jsxRuntime.jsx("rect",{x:F,y:_,width:Y,height:te,fill:I,rx:l,ry:l,opacity:G?1:.5,style:{cursor:u||p?"pointer":"default",transition:"opacity 150ms ease-out"},onMouseEnter:()=>$(M,P),onMouseLeave:()=>$(null,null),onClick:()=>u?.(P,M)},P.label)}),s&&b==="vertical"&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(zr.CategoryBottom,{top:K,scale:O}),jsxRuntime.jsx(zr.Left,{left:0,scale:z,yFormatter:a,height:K})]}),s&&b==="horizontal"&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(zr.NumericBottom,{top:K,scale:O,yFormatter:a,width:j}),jsxRuntime.jsx(zr.CategoryLeft,{left:0,scale:z})]})]})]}),h&&jsxRuntime.jsx(hn,{data:S,formatter:a,label:k??void 0})]})};var Ly=({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})},u5=({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(Ly,{item:r,onToggle:t},r.category))}),gi=({items:e,onExport:t,marginLeft:r=0,marginRight:o=0,isZoomed:n=false,onResetZoom:a,onLegendItemToggle:i})=>{let[s,c]=He__namespace.default.useState(false),[l,d]=He__namespace.default.useState(null),[u,p]=He__namespace.default.useState(false),[m,g]=He__namespace.default.useState(false),f=He__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]),x=He__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(u5,{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:()=>p(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:()=>p(false),title:"Legend",children:jsxRuntime.jsx("div",{className:"grid grid-cols-1 gap-3 p-4",children:e.map(b=>jsxRuntime.jsx(Ly,{item:b,onToggle:i},b.category))})})]})}),jsxRuntime.jsxs("div",{className:"sm:hidden flex items-center gap-2 shrink-0",children:[n&&a&&jsxRuntime.jsx(ie,{variant:"secondary",size:"sm",onPress:a,children:jsxRuntime.jsx(U,{name:"ArrowsOut",size:16})}),jsxRuntime.jsx(ie,{variant:"secondary",size:"sm",onPress:()=>g(true),isDisabled:s,children:jsxRuntime.jsx(U,{name:"Export",size:16})}),jsxRuntime.jsx(ct,{isOpen:m,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(U,{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(U,{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(U,{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(ie,{variant:"secondary",size:"sm",onPress:a,children:[jsxRuntime.jsx(U,{name:"ArrowsOut",size:16}),jsxRuntime.jsx("span",{className:"hidden sm:inline",children:"Reset Zoom"})]}),jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{children:[jsxRuntime.jsxs(ie,{variant:"secondary",size:"sm",isDisabled:s,children:[jsxRuntime.jsx(U,{name:"Export",size:16}),s?"Exporting...":"Export"]}),jsxRuntime.jsx(lt,{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:x,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(U,{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(U,{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(U,{name:"DownloadSimple",size:14}),l==="png"?"Exporting...":"Export as PNG"]})})]})})]})]})]})};var Km=({data:e,seriesMetadata:t,width:r,height:o,onBrushChange:n,brushRegion:a,margin:i=Ae,yDomain:s})=>{let c=He.useRef(null),l=He.useRef(false),d=He.useMemo(()=>e.flat(),[e]),u=He.useMemo(()=>({top:10,bottom:15,left:i.left,right:i.right}),[i]),p=r-u.left-u.right,m=He.useMemo(()=>{if(d.length===0)return scale.scaleTime({domain:[new Date,new Date],range:[0,p]});let h=new Date(Math.min(...d.map(v=>v.xValue.getTime()))),y=new Date(Math.max(...d.map(v=>v.xValue.getTime())));return scale.scaleTime({domain:[h,y],range:[0,p]})},[d,p]),g=He.useMemo(()=>{let h=d.length>0?Math.max(0,...d.map(y=>y.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:y,x1:v}=h;if(y===v)return;let S=new Date(y),w=new Date(v);if(!(Number.isNaN(S.getTime())||Number.isNaN(w.getTime()))){if(d.length>0){let k=Math.min(...d.map(A=>A.xValue.getTime())),L=Math.max(...d.map(A=>A.xValue.getTime())),D=(L-k)*.05;if(Math.abs(S.getTime()-k)<D&&Math.abs(w.getTime()-L)<D){n(null);return}}n([S,w]);}},x=He.useMemo(()=>{if(d.length!==0)return {start:{x:0,y:u.top},end:{x:p,y:o-u.bottom}}},[p,o,d]);He.useEffect(()=>{if(!c.current||d.length===0)return;let h=c.current.state;if(h?.isBrushing||h?.activeHandle)return;let y=Math.min(...d.map(R=>R.xValue.getTime())),v=Math.max(...d.map(R=>R.xValue.getTime())),S=a?a[0]:new Date(y),w=a?a[1]:new Date(v),k=c.current.state?.extent;if(k){let R=m.invert(k.x0),D=m.invert(k.x1),V=Math.abs(R.getTime()-S.getTime()),A=Math.abs(D.getTime()-w.getTime());if(V<1e3&&A<1e3)return}l.current=true;let L=R=>{let D=c.current.getExtent({x:m(S),y:u.top},{x:m(w),y:o-u.bottom});return {...R,start:{y:D.y0,x:D.x0},end:{y:D.y1,x:D.x1},extent:D}};c.current.updateBrush(L),setTimeout(()=>{l.current=false;},50);},[a,m,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,y)=>jsxRuntime.jsx(shape.LinePath,{data:h,x:v=>m(v.xValue),y:v=>g(v.yValue),stroke:t[y]?.color||"var(--color-gray-500)",strokeWidth:1.5,opacity:.8},`brush-series-${y}`)),jsxRuntime.jsx(brush.Brush,{xScale:m,yScale:g,width:p,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:x,onChange:f,onClick:()=>n(null),selectedBoxStyle:b,useWindowMoveEvents:true})]})]})})};function zo(e){switch(e){case "command":return Rt("--color-action-brand","#111111");case "success":return Rt("--color-feedback-success-border","#278a4a");case "warning":return Rt("--color-feedback-warning-border","#c88420");case "error":return Rt("--color-feedback-error-border","#c42d2d");case "alert":return Rt("--color-feedback-warning-border","#c88420");default:return Rt("--color-text-secondary","#525250")}}function Fc({events:e,color:t,showLabels:r=false}){let o=He.useContext(Or),[n,a]=He.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:p,categoryColors:m}=o,g=e.filter(b=>{let h=i(b.timestamp);return h>=Ae.left&&h<=i.range()[1]}),f=He.useCallback((b,h)=>{a(h);let y=i(b.timestamp),v=y>(i.range()[1]-Ae.right-Ae.left)/2+Ae.left,S=[];d&&u&&d.forEach((L,R)=>{if(L.length===0)return;let D=d3Array.bisector(B=>B.xValue).left,V=D(L,b.timestamp),A=L[V-1],T=L[V],N;if(!A)N=T;else if(!T)N=A;else {let B=Math.abs(b.timestamp.getTime()-A.xValue.getTime()),W=Math.abs(b.timestamp.getTime()-T.xValue.getTime());N=B<W?A:T;}N&&u[R]&&S.push({label:u[R].label,value:N.yValue,color:u[R].color,type:p?.[R]||"line",...N.category&&{category:N.category,categoryColor:m?.[N.category]}});});let k=g.filter(L=>Math.abs(i(L.timestamp)-y)<=10).map(L=>({label:L.label,color:t||zo(L.type),metadata:L.metadata}));S.push({label:k.length>1?`${k.length} events`:b.label,value:0,color:t||zo(b.type),type:"event"}),l.show({xValue:b.timestamp,series:S,x:y,y:S.length>1&&typeof S[0].value=="number"?s(S[0].value):c/2,position:v?"left":"right",isEvent:true,eventMetadata:b.metadata,eventItems:k});},[i,s,c,l,t,d,u,p,m,g]),x=He.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 y=i(b.timestamp),v=t||zo(b.type),S=n===h;return jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("line",{x1:y,y1:Ae.top,x2:y,y2:c-Ae.bottom,stroke:v,strokeWidth:S?3:2,strokeDasharray:"4 4",strokeOpacity:S?.9:.6,pointerEvents:"none"}),jsxRuntime.jsx("circle",{cx:y,cy:Ae.top,r:S?5:4,fill:v,stroke:"var(--color-background-surface)",strokeWidth:2,pointerEvents:"none"}),jsxRuntime.jsx("circle",{cx:y,cy:c-Ae.bottom,r:S?5:4,fill:v,stroke:"var(--color-background-surface)",strokeWidth:2,pointerEvents:"none"}),r&&jsxRuntime.jsx("text",{x:y,y:Ae.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:Ae.top,width:20,height:c-Ae.top-Ae.bottom,fill:"transparent",style:{cursor:"pointer"},onMouseEnter:()=>f(b,h),onMouseLeave:x})]},`${b.timestamp.getTime()}-${h}`)})})}function Bc({spans:e,opacity:t=.25,color:r}){let o=He.useContext(Or),[n,a]=He.useState(null),i=o?.xScale,s=o?.height,c=o?.tooltip,[l,d]=i?.domain()??[new Date(0),new Date(0)],[u,p]=i?.range()??[0,0],m=He.useCallback((S,w)=>{if(!i||!c)return;a(w);let k=S.start<l?l:S.start,L=S.end>d?d:S.end,R=(i(k)+i(L))/2,D=R>(p-u)/2+u,A=e.filter(T=>T.end>T.start&&T.start<S.end&&T.end>S.start).map(T=>({label:T.label,color:T.color??r??zo(T.type),metadata:T.metadata}));c.show({xValue:S.start,series:[{label:A.length>1?`${A.length} scheduled commands`:S.label,value:0,color:S.color??r??zo(S.type),type:"event"}],x:R,y:(s??0)/2,position:D?"left":"right",isEvent:true,eventMetadata:S.metadata,eventItems:A});},[i,s,c,r,l,d,u,p,e]),g=He.useCallback(()=>{a(null),c?.hide();},[c]);if(!o)return console.warn("ChartEventSpans must be used within a ChartContainer"),null;let{xScale:f,height:x}=o,b=Ae.top,y=x-Ae.bottom-b,v=e.filter(S=>S.end>S.start);return v.length===0?null:jsxRuntime.jsx("g",{className:"chart-event-spans","data-testid":"chart-event-spans",children:v.map((S,w)=>{let k=S.start<l?l:S.start,L=S.end>d?d:S.end;if(k>=d||L<=l)return null;let R=f(k),V=f(L)-R;if(V<=0)return null;let A=S.color??r??zo(S.type);return jsxRuntime.jsx("rect",{x:R,y:b,width:V,height:y,fill:A,fillOpacity:n===w?Math.min((t??.25)*1.8,1):t??.25,pointerEvents:"all",style:{cursor:"pointer"},onMouseEnter:()=>m(S,w),onMouseLeave:g},`${S.start.getTime()}-${S.end.getTime()}-${w}`)})})}var na=({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}=oa(),d=c.range(),u=Object.keys(n).length>0,p=h=>h.category?n[h.category]??t:t,m=h=>h.chartYValue??h.yValue,g=e.length===1?e[0]:void 0,f=a!=null?gc(e,a):e,x=g?jsxRuntime.jsx("circle",{cx:s(g.xValue),cy:c(m(g)),r,fill:u?p(g):t}):u?e.slice(0,-1).map((h,y)=>{let v=e[y+1];return a!=null&&a>0&&v.xValue.getTime()-h.xValue.getTime()>a?null:jsxRuntime.jsx(shape.LinePath,{data:[h,v],x:S=>s(S.xValue),y:S=>c(m(S)),stroke:p(h),strokeWidth:r,strokeDasharray:o,strokeLinecap:"round",curve:curve.curveLinear},`${h.xValue.getTime()}-${v.xValue.getTime()}`)}):jsxRuntime.jsx(shape.LinePath,{data:f,x:h=>h?s(h.xValue):0,y:h=>h?c(m(h)):0,defined:h=>h!=null,stroke:t,strokeWidth:r,strokeDasharray:o,strokeLinecap:"round",curve:curve.curveLinear}),b={transformOrigin:`0 ${d[0]}px`,transformBox:"fill-box",isolation:"isolate"};return i?jsxRuntime.jsx(framerMotion.motion.g,{initial:{scaleY:0},animate:{scaleY:1},transition:{duration:l.duration,ease:l.ease},style:b,children:x}):jsxRuntime.jsx("g",{style:b,children:x})};var Ky=e=>e.type===xn||e.type===na||e.type===xc,D5=e=>e.type===Fc||e.type===Bc,E5=(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},L5=d3Array.bisector(e=>e.xValue).left,A5=()=>jsxRuntime.jsx("div",{className:"flex h-full items-center justify-center",children:jsxRuntime.jsx("p",{className:"text-text-secondary",children:"No data available"})}),I5=()=>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"})]})]}),F5=({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:p,children:m})=>{let g=u!==void 0,f=d!==void 0,[x,b]=He.useState(null),[h,y]=He.useState(null),v=f?d:h,[S,w]=He.useState(()=>new Set),k=g?u:S,L=He.useRef(null),R=He.useId(),D=He.useRef(0),V=He.useRef(""),A=He.useRef(null),{colorMode:T}=Ht(),N=He.useMemo(()=>Vn(),[T]),B=He.useMemo(()=>Ji(),[T]),{datasets:W,seriesMetadata:O,categoryInfo:z,categoryColors:j,categoryLabels:K,seriesTypes:$}=He.useMemo(()=>{let me=He.Children.toArray(m).filter(De=>He.isValidElement(De)&&Ky(De)),Ie=me.filter(De=>De.props.data).length,Te=[],Oe=[],ot=[],ft=null,Le=null;me.forEach((De,wt)=>{let Pe=De.props;if(!Pe.data)return;Te.push(Pe.data);let Ua=("color"in Pe&&Pe.color?Pe.color:void 0)||(Ie===1?B:N[wt%N.length]),In=De.type===xn;Oe.push({label:"label"in Pe&&Pe.label||`Series ${Te.length}`,color:Ua,...In&&"baseline"in Pe&&Pe.baseline!==void 0?{baseline:Pe.baseline,tooltipRange:"tooltipRange"in Pe&&Pe.tooltipRange||false}:{}});let xu=In?"area":De.type===na?"line":"bar";ot.push(xu),"categoryColors"in Pe&&Pe.categoryColors&&(ft=Pe.categoryColors),"categoryLabels"in Pe&&Pe.categoryLabels&&(Le=Pe.categoryLabels);});let gt=null;if(ft){let De=new Set;Te.forEach(wt=>{wt.forEach(Pe=>{Pe.category&&De.add(Pe.category);});}),gt=Array.from(De).map(wt=>({label:Le?.[wt]||wt,color:ft[wt]||"#6b7280"}));}return {datasets:Te,seriesMetadata:Oe,categoryInfo:gt,categoryColors:ft,categoryLabels:Le,seriesTypes:ot}},[m,B,N,T]),P=e,M=s?c+8:0,G=t-60-M,I=Math.max(100,G),C=He.useCallback(X=>X?k.has(X):false,[k]),H=He.useMemo(()=>O.map((X,me)=>C(X.label)?null:me).filter(X=>X!==null),[O,C]),Y=He.useMemo(()=>H.map(X=>W[X]).filter(X=>!!X),[W,H]),F=He.useMemo(()=>H.map(X=>O[X]).filter(X=>!!X),[O,H]),_=He.useMemo(()=>H.map(X=>$[X]).filter(X=>!!X),[$,H]),te=_.findIndex(X=>X==="bar"),E=te!==-1,ae=He.useCallback((X,me)=>{let Ie=X.has(me);if(!Ie&&O.reduce((ot,ft)=>X.has(ft.label)||ft.label===me?ot:ot+1,0)<1)return X;let Te=new Set(X);return Ie?Te.delete(me):Te.add(me),Te},[O]),oe=He.useCallback(X=>{if(g){let me=u;if(!me.has(X)&&O.reduce((Oe,ot)=>me.has(ot.label)||ot.label===X?Oe:Oe+1,0)<1){b(null);return}p?.(Te=>ae(Te,X));}else w(me=>ae(me,X));b(null);},[g,u,p,O,ae]),ee=He.useMemo(()=>O.map(X=>X.label).join(""),[O]),se=He.useRef(ee);He.useEffect(()=>{se.current!==ee&&(se.current=ee,g||w(X=>X.size===0?X:new Set));},[ee,g]);let ue=He.useMemo(()=>Y.flat(),[Y]),xe=He.useMemo(()=>{if(ue.length===0)return null;let X=[...ue].sort((me,Ie)=>me.xValue.getTime()-Ie.xValue.getTime());return [X[0].xValue,X[X.length-1].xValue]},[ue]),tt=v||xe,Xt=He.useCallback(X=>{f?l?.(X):y(X);},[f,l]),mr=He.useMemo(()=>tt?W.map(me=>me.filter(Ie=>Ie.xValue>=tt[0]&&Ie.xValue<=tt[1])):W,[W,tt]),Q=He.useMemo(()=>H.map(X=>mr[X]??[]),[H,mr]);He.useEffect(()=>{l&&l(v);},[v,l]);let ce=He.useMemo(()=>H.flatMap(X=>mr[X]??[]),[mr,H]),re=He.useMemo(()=>xs(ce,I,r,o),[ce,I,r,o]),Z=He.useRef(JSON.stringify(r)),q=He.useRef(null),pe=He.useMemo(()=>{let[X,me]=re.domain(),Ie=Math.max(Math.abs(X),Math.abs(me)),Te=JSON.stringify(r);if(Te!==Z.current&&(Z.current=Te,q.current=null),q.current!==null)return q.current;if(Ie===0)return ui(r,0);let Oe=ui(r,Ie);return q.current=Oe,Oe},[re,r]),de=He.useMemo(()=>{let X=I-Ae.top-Ae.bottom;return mi(X)},[I]),ne=He.useMemo(()=>{let X=_r(pe),me=X.tickFormat||X.format,Te=re.ticks(de).map(ft=>me(ft)),Oe=pi(Te,12,"system-ui"),ot=Math.ceil(Oe)+12;return {...Ae,left:Math.max(ot,30),right:8}},[re,pe,de]),Se=He.useMemo(()=>tt?scale.scaleTime({domain:tt,range:[ne.left,P-ne.right]}):Gm(ue,P),[tt,ue,P,ne]),rt=He.useCallback(X=>{if(!xe)return;let{scaleX:me,translateX:Ie}=X,Te=P-ne.left-ne.right,[Oe,ot]=xe,ft=ot.getTime()-Oe.getTime();if(ft<=0){Xt(null);return}let Le=-Ie,gt=Le+Te,De=Te*me/ft,wt=Le/De,Pe=gt/De,An=new Date(Oe.getTime()+wt),Ua=new Date(Oe.getTime()+Pe),In=Math.abs(An.getTime()-Oe.getTime()),xu=Math.abs(Ua.getTime()-ot.getTime()),Fg=ft*.02;In<Fg&&xu<Fg?Xt(null):Xt([An,Ua]);},[xe,P,ne,Xt]),$r=He.useCallback(X=>{let{left:me}=L.current?.getBoundingClientRect()||{left:0},Ie=X.clientX-me;if(X.timeStamp-(D.current||0)<16)return;D.current=X.timeStamp;let Te=Se.invert(Ie),Oe=Q.map((Le,gt)=>{if(!Le||Le.length===0)return null;let De=L5(Le,Te,1);if(De===0)return {point:Le[0],index:0,datasetIndex:gt};if(De>=Le.length)return {point:Le[Le.length-1],index:Le.length-1,datasetIndex:gt};let wt=Le[De-1],Pe=Le[De];if(!wt||!Pe)return null;let An=Math.abs(wt.xValue.getTime()-Te.getTime()),Ua=Math.abs(Pe.xValue.getTime()-Te.getTime()),In=An<Ua;return {point:In?wt:Pe,index:In?De-1:De,datasetIndex:gt}}).filter(Le=>Le!==null&&F[Le.datasetIndex]!==void 0).map(({point:Le,index:gt,datasetIndex:De})=>({label:F[De].label,value:Le.yValue,baselineValue:E5(F[De],Le,gt),color:F[De].color,point:Le,type:_[De]}));if(Oe.length===0){b(null);return}let ot=Se(Oe[0].point.xValue),ft=ot>(P-ne.right-ne.left)/2+ne.left;b({xValue:Oe[0].point.xValue,series:Oe.map(({label:Le,value:gt,baselineValue:De,color:wt,point:Pe,type:An})=>({label:Le,value:gt,...De!==void 0?{baselineValue:De}:{},chartY:Pe.chartYValue??gt,showMarker:Pe.showTooltipMarker??true,color:wt,type:An,category:Pe.category,categoryColor:Pe.category&&j?j[Pe.category]:void 0,...Pe.extraTooltipRows&&Pe.extraTooltipRows.length>0?{extraTooltipRows:Pe.extraTooltipRows}:{}})),x:ot,y:re(Oe[0].point.chartYValue??Oe[0].value),position:ft?"left":"right"});},[Q,F,_,Se,re,P,j,ne]),Ao=()=>{b(null);},Dr=He.useCallback(()=>{Xt(null),A.current&&A.current.reset();},[Xt]),Ga=He.useCallback(X=>{if(!(A.current&&xe))return;let[me,Ie]=xe,Te=Ie.getTime()-me.getTime();if(Te<=0){A.current.reset();return}if(!X){A.current.reset();return}let[Oe,ot]=X,ft=ot.getTime()-Oe.getTime();if(ft<=0){A.current.reset();return}let Le=Te/ft,gt=P-ne.left-ne.right,wt=-((Oe.getTime()-me.getTime())/Te)*gt*Le;A.current.setTransformMatrix({scaleX:Le,scaleY:1,translateX:wt,translateY:0,skewX:0,skewY:0});},[xe,P,ne]),gu=He.useCallback(X=>{Xt(X),Ga(X);},[Xt,Ga]);He.useEffect(()=>{f&&Ga(d??null);},[f,d,Ga]);let J1={width:P,height:I,xScale:Se,yScale:re,yFormatter:pe,animationSettings:fc,tooltip:{data:x,show:b,hide:()=>b(null)},datasets:Q,seriesMetadata:F,seriesTypes:_,categoryColors:j||void 0,categoryLabels:K||void 0},X1=He.Children.toArray(m),Eg=0,Lg=[],Ag=[],bu=[];X1.forEach(X=>{if(!He.isValidElement(X)){bu.push(X);return}if(D5(X))Ag.push(X);else if(Ky(X)){let me=Eg;Eg++;let Ie=X.props,Te=O[me]?.label;if(C(Te))return;Lg.push(He__namespace.default.cloneElement(X,{...Ie,data:mr[me]||Ie.data,color:O[me]?.color}));}else bu.push(X);});let Z1=H.length,Q1=(z||O).map(X=>{let me=!z&&C(X.label);return {category:X.label,fill:X.color,isHidden:me,isDisabled:!z&&!me&&Z1<=1}}),_1=typeof r=="object"&&r!==null&&typeof r.type=="string",ew=wl({datasets:Y,metadata:{xLabel:"Date",yLabel:"Value",seriesLabels:F.map(X=>X.label),timestamp:true,..._1?{yFormat:r}:{}},svgRef:L});if(a)return jsxRuntime.jsx(I5,{});if(W.length===0)return jsxRuntime.jsx(A5,{});let Ig=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("title",{children:"Data chart visualization"}),jsxRuntime.jsx("g",{children:re.ticks(de).map(X=>{let me=Math.abs(X)<Number.EPSILON;return jsxRuntime.jsx(shape.Line,{from:{x:ne.left,y:re(X)},to:{x:P-ne.right,y:re(X)},stroke:me?"var(--color-border-default)":"var(--color-border-muted)",strokeWidth:me?1.5:1},`grid-line-${X}`)})}),jsxRuntime.jsx("defs",{children:jsxRuntime.jsx("clipPath",{id:R,children:jsxRuntime.jsx("rect",{x:Se.range()[0],y:re.range()[1],width:Se.range()[1]-Se.range()[0],height:re.range()[0]-re.range()[1]})})}),jsxRuntime.jsx("g",{clipPath:`url(#${R})`,children:Lg}),bu,n&&n.length>0&&jsxRuntime.jsx("g",{children:n.map(X=>{let me=re(X.value),Ie=X.color??"var(--color-error-base)";return jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx(shape.Line,{from:{x:ne.left,y:me},to:{x:P-ne.right,y:me},stroke:Ie,strokeWidth:1.5,strokeDasharray:"6 4"}),X.label&&jsxRuntime.jsx("text",{x:P-ne.right-4,y:me-4,textAnchor:"end",fontSize:11,fill:Ie,children:X.label})]},`ref-line-${X.value}`)})}),jsxRuntime.jsx(zr.Bottom,{top:I-ne.bottom,scale:Se,width:P-ne.left-ne.right}),jsxRuntime.jsx(zr.Left,{left:ne.left,scale:re,yFormatter:pe,height:I-ne.top-ne.bottom}),x&&!x.isEvent&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[E?(()=>{let X=Y[te]??[];if(X.length===0)return null;let me=[...X].sort((De,wt)=>De.xValue.getTime()-wt.xValue.getTime()),Ie=me.findIndex(De=>De.xValue.getTime()===x.xValue.getTime()),Te=me[Ie+1],Oe=me.length>1&&Te?Te.xValue.getTime()-x.xValue.getTime():15*6e4,ot=Math.abs(Se(new Date(x.xValue.getTime()+Oe))-Se(x.xValue)),Le=Se(x.xValue)-ot/2,gt=re.range();return jsxRuntime.jsx("rect",{x:Le,y:gt[1],width:ot,height:gt[0]-gt[1],className:"fill-background-muted",opacity:.5,pointerEvents:"none",style:{transition:"all 100ms ease-out"}})})():null,x.series.filter(X=>X.type!=="bar"&&X.showMarker!==false).map(X=>jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("circle",{cx:Se(x.xValue),cy:re(X.chartY??X.value),r:8,fill:"white",stroke:X.color,strokeWidth:2,style:{transition:"all 100ms ease-out"}}),jsxRuntime.jsx("circle",{cx:Se(x.xValue),cy:re(X.chartY??X.value),r:4,fill:X.color,style:{transition:"all 100ms ease-out"}})]},`highlight-${X.label}`))]}),jsxRuntime.jsx("rect",{x:ne.left,y:ne.top,width:P-ne.left-ne.right,height:I-ne.top-ne.bottom,fill:"transparent",style:{cursor:i?"grab":"crosshair",touchAction:"none"},onMouseMove:$r,onMouseLeave:Ao}),Ag]});return jsxRuntime.jsx("div",{className:"relative flex h-full flex-col",children:jsxRuntime.jsxs(Or.Provider,{value:J1,children:[i?jsxRuntime.jsx(zoom.Zoom,{width:P,height:I,scaleXMin:1,scaleXMax:20,scaleYMin:1,scaleYMax:1,constrain:X=>{let{scaleX:me,translateX:Ie}=X,Te=Math.max(1,Math.min(20,me)),Oe=1,ot=P-ne.left-ne.right,ft=0,Le=ot*(1-Te),gt=Math.max(Le,Math.min(ft,Ie));return {...X,scaleX:Te,scaleY:Oe,translateX:gt,translateY:0}},children:X=>{if(A.current=X,X.transformMatrix){let{scaleX:me,translateX:Ie}=X.transformMatrix,Te=`${me.toFixed(4)}-${Ie.toFixed(2)}`;Te!==V.current&&(V.current=Te,setTimeout(()=>{rt(X.transformMatrix);},0));}return jsxRuntime.jsx("svg",{width:P,height:I,className:"overflow-visible",ref:me=>{L.current=me,X.containerRef.current!==me&&(X.containerRef.current=me);},role:"img","aria-label":"Data chart",style:{cursor:X.isDragging?"grabbing":"grab",touchAction:"none"},onMouseDown:X.dragStart,onMouseMove:X.dragMove,onMouseUp:X.dragEnd,onMouseLeave:()=>{X.isDragging&&X.dragEnd();},onTouchStart:X.dragStart,onTouchMove:X.dragMove,onTouchEnd:X.dragEnd,children:Ig})}}):jsxRuntime.jsx("svg",{width:P,height:I,className:"overflow-visible",ref:L,role:"img","aria-label":"Data chart",children:Ig}),jsxRuntime.jsx(hn,{data:x,formatter:pe}),s&&xe&&jsxRuntime.jsx(Km,{data:Y,seriesMetadata:F,width:P,height:c,onBrushChange:gu,brushRegion:v,margin:ne,...o?{yDomain:o}:{}}),jsxRuntime.jsx(gi,{onExport:ew,items:Q1,marginLeft:0,marginRight:ne.right,isZoomed:v!==null,onResetZoom:Dr,onLegendItemToggle:z?void 0:oe})]})})},$y=responsive.withParentSize(F5);var W5=e=>e.toLocaleString(),G5=e=>`${Math.round(e*100)}%`,Zy=({data:e,width:t=800,height:r=400,padding:o=0,barGap:n=30,formatValue:a=W5,formatPercentage:i=G5,color:s,showScale:c=true,showOverallConversion:l=true,overallConversionLabel:d="Overall Conversion:",activeStageId:u,onStageClick:p,onStageHover:m,className:g,style:f,"aria-label":x="Funnel chart"})=>{let[b,h]=He.useState(null),[y,v]=He.useState(t),S=He.useRef(null),w=u??b,k=He.useId(),L=s||"var(--color-viz-default)";He.useEffect(()=>{if(!S.current)return;let N=new ResizeObserver(B=>{for(let W of B)v(W.contentRect.width);});return N.observe(S.current),()=>{N.disconnect();}},[]);let{layout:R,overallConversion:D}=He.useMemo(()=>{if(e.length===0)return {layout:[],overallConversion:0};let N=e[0].value,B=l?60:0,W=r-o*2-B,O=(e.length-1)*n,z=(W-O)/e.length,j=e.map(($,P)=>{let M=o+B+P*(z+n),G=N===0?0:$.value/N,I=G,C=P===0?null:e[P-1].value,H=C==null||C===0?0:1-$.value/C;return {stage:$,index:P,y:M,barHeight:z,widthPercent:G,conversionRate:I,dropOff:H}}),K=N===0?0:e[e.length-1].value/N;return {layout:j,overallConversion:K,maxValue:N}},[e,y,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 V=c?60:0,A=o+V,T=y-o*2-V;return jsxRuntime.jsx("div",{ref:S,className:tailwindMerge.twMerge("relative w-full overflow-hidden rounded-lg bg-background-surface",g),style:{height:r,...f},"aria-label":x,role:"img",children:jsxRuntime.jsxs("svg",{width:"100%",height:r,className:"relative",children:[jsxRuntime.jsxs("defs",{children:[jsxRuntime.jsx(gradient.LinearGradient,{id:`${k}-bar`,from:L,to:L,toOpacity:.85}),jsxRuntime.jsx(gradient.LinearGradient,{id:`${k}-bg`,from:L,to:L,fromOpacity:.01,toOpacity:.15,x1:"0",y1:"0",x2:"1",y2:"0"})]}),l&&jsxRuntime.jsxs("text",{x:A,y:o+20,className:"fill-text-primary text-sm font-medium",children:[jsxRuntime.jsx("tspan",{className:"fill-text-secondary",children:d})," ",i(D)]}),c&&jsxRuntime.jsx("g",{children:R.map(N=>{let B=N.y+N.barHeight/2;return jsxRuntime.jsx("text",{x:o+V-12,y:B,textAnchor:"end",dominantBaseline:"middle",className:"fill-text-secondary text-xs",children:i(N.conversionRate)},N.stage.id)})}),R.map(N=>{let B=w===N.stage.id,W=T*N.widthPercent;return jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("rect",{x:A,y:N.y,width:T,height:N.barHeight,fill:`url(#${k}-bg)`,rx:4}),jsxRuntime.jsx(framerMotion.motion.rect,{x:A,y:N.y,width:W,height:N.barHeight,fill:`url(#${k}-bar)`,rx:4,initial:{width:0},animate:{width:W},transition:{duration:.6,delay:N.index*.1,ease:"easeOut"},opacity:B||w==null?1:.5,style:{cursor:p||m?"pointer":"default",transition:"opacity 150ms ease"},onMouseEnter:()=>{h(N.stage.id),m?.(N.stage);},onMouseLeave:()=>{h(null),m?.(null);},onClick:()=>p?.(N.stage)}),jsxRuntime.jsx("rect",{x:A+10,y:N.y+N.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:A+16,y:N.y+N.barHeight/2+4,className:"fill-text-primary text-xs font-semibold",style:{pointerEvents:"none"},children:a(N.stage.value)}),jsxRuntime.jsxs("text",{x:A,y:N.y-8,className:"fill-text-secondary text-xs",style:{pointerEvents:"none"},children:[jsxRuntime.jsx("tspan",{children:N.index+1})," ",N.stage.label]}),N.stage.secondaryValue&&jsxRuntime.jsx("text",{x:A+16,y:N.y-24,className:"fill-text-secondary text-xs",style:{pointerEvents:"none"},children:N.stage.secondaryValue}),N.index>0&&N.dropOff>0&&jsxRuntime.jsxs("text",{x:A+T,y:N.y-8,textAnchor:"end",className:"fill-text-secondary text-xs",children:[i(N.dropOff)," drop"]}),N.stage.annotation&&jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("rect",{x:A+W+8,y:N.y+8,width:60,height:24,rx:3,className:"fill-background-muted"}),jsxRuntime.jsx("text",{x:A+W+16,y:N.y+20,className:"fill-text-secondary text-xs font-medium",children:N.stage.annotation})]})]},N.stage.id)})]})})};function Qy(){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 Y5=d3Array.bisector(e=>e.xValue).left,K5=(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 _y(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((m,g)=>{if(!m||m.length===0)return null;let f=Y5(m,l,1);if(f===0)return {point:m[0],index:0,datasetIndex:g};if(f>=m.length)return {point:m[m.length-1],index:m.length-1,datasetIndex:g};let x=m[f-1],b=m[f];if(!x||!b)return null;let h=Math.abs(x.xValue.getTime()-l.getTime()),y=Math.abs(b.xValue.getTime()-l.getTime()),v=h<y;return {point:v?x:b,index:v?f-1:f,datasetIndex:g}}).filter(m=>m!==null&&o[m.datasetIndex]!==void 0).map(({point:m,index:g,datasetIndex:f})=>({label:o[f].label,value:m.yValue,baselineValue:K5(o[f],m,g),color:o[f].color,point:m,type:n[f]}));if(d.length===0)return null;let u=a(d[0].point.xValue),p=u>(s+c)/2;return {xValue:d[0].point.xValue,series:d.map(({label:m,value:g,baselineValue:f,color:x,point:b,type:h})=>({label:m,value:g,...f!==void 0?{baselineValue:f}:{},chartY:b.chartYValue??g,showMarker:b.showTooltipMarker??true,color:x,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:p?"left":"right"}}function ev(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Vc(e,t,r){e.prototype=t.prototype=r,r.constructor=e;}function qm(e,t){var r=Object.create(e.prototype);for(var o in t)r[o]=t[o];return r}function Ps(){}var Ns=.7,Hc=1/Ns,xi="\\s*([+-]?\\d+)\\s*",ks="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",vo="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",j5=/^#([0-9a-f]{3,8})$/,$5=new RegExp(`^rgb\\(${xi},${xi},${xi}\\)$`),q5=new RegExp(`^rgb\\(${vo},${vo},${vo}\\)$`),J5=new RegExp(`^rgba\\(${xi},${xi},${xi},${ks}\\)$`),X5=new RegExp(`^rgba\\(${vo},${vo},${vo},${ks}\\)$`),Z5=new RegExp(`^hsl\\(${ks},${vo},${vo}\\)$`),Q5=new RegExp(`^hsla\\(${ks},${vo},${vo},${ks}\\)$`),tv={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Vc(Ps,yn,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:rv,formatHex:rv,formatHex8:_5,formatHsl:e4,formatRgb:ov,toString:ov});function rv(){return this.rgb().formatHex()}function _5(){return this.rgb().formatHex8()}function e4(){return cv(this).formatHsl()}function ov(){return this.rgb().formatRgb()}function yn(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=j5.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?nv(t):r===3?new lr(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Oc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Oc(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=$5.exec(e))?new lr(t[1],t[2],t[3],1):(t=q5.exec(e))?new lr(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=J5.exec(e))?Oc(t[1],t[2],t[3],t[4]):(t=X5.exec(e))?Oc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Z5.exec(e))?sv(t[1],t[2]/100,t[3]/100,1):(t=Q5.exec(e))?sv(t[1],t[2]/100,t[3]/100,t[4]):tv.hasOwnProperty(e)?nv(tv[e]):e==="transparent"?new lr(NaN,NaN,NaN,0):null}function nv(e){return new lr(e>>16&255,e>>8&255,e&255,1)}function Oc(e,t,r,o){return o<=0&&(e=t=r=NaN),new lr(e,t,r,o)}function t4(e){return e instanceof Ps||(e=yn(e)),e?(e=e.rgb(),new lr(e.r,e.g,e.b,e.opacity)):new lr}function hi(e,t,r,o){return arguments.length===1?t4(e):new lr(e,t,r,o??1)}function lr(e,t,r,o){this.r=+e,this.g=+t,this.b=+r,this.opacity=+o;}Vc(lr,hi,qm(Ps,{brighter(e){return e=e==null?Hc:Math.pow(Hc,e),new lr(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Ns:Math.pow(Ns,e),new lr(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new lr(ca(this.r),ca(this.g),ca(this.b),Wc(this.opacity))},displayable(){return -0.5<=this.r&&this.r<255.5&&-0.5<=this.g&&this.g<255.5&&-0.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:av,formatHex:av,formatHex8:r4,formatRgb:iv,toString:iv}));function av(){return `#${la(this.r)}${la(this.g)}${la(this.b)}`}function r4(){return `#${la(this.r)}${la(this.g)}${la(this.b)}${la((isNaN(this.opacity)?1:this.opacity)*255)}`}function iv(){let e=Wc(this.opacity);return `${e===1?"rgb(":"rgba("}${ca(this.r)}, ${ca(this.g)}, ${ca(this.b)}${e===1?")":`, ${e})`}`}function Wc(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ca(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function la(e){return e=ca(e),(e<16?"0":"")+e.toString(16)}function sv(e,t,r,o){return o<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new eo(e,t,r,o)}function cv(e){if(e instanceof eo)return new eo(e.h,e.s,e.l,e.opacity);if(e instanceof Ps||(e=yn(e)),!e)return new eo;if(e instanceof eo)return e;e=e.rgb();var t=e.r/255,r=e.g/255,o=e.b/255,n=Math.min(t,r,o),a=Math.max(t,r,o),i=NaN,s=a-n,c=(a+n)/2;return s?(t===a?i=(r-o)/s+(r<o)*6:r===a?i=(o-t)/s+2:i=(t-r)/s+4,s/=c<.5?a+n:2-a-n,i*=60):s=c>0&&c<1?0:i,new eo(i,s,c,e.opacity)}function dv(e,t,r,o){return arguments.length===1?cv(e):new eo(e,t,r,o??1)}function eo(e,t,r,o){this.h=+e,this.s=+t,this.l=+r,this.opacity=+o;}Vc(eo,dv,qm(Ps,{brighter(e){return e=e==null?Hc:Math.pow(Hc,e),new eo(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Ns:Math.pow(Ns,e),new eo(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,o=r+(r<.5?r:1-r)*t,n=2*r-o;return new lr(Jm(e>=240?e-240:e+120,n,o),Jm(e,n,o),Jm(e<120?e+240:e-120,n,o),this.opacity)},clamp(){return new eo(lv(this.h),zc(this.s),zc(this.l),Wc(this.opacity))},displayable(){return (0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=Wc(this.opacity);return `${e===1?"hsl(":"hsla("}${lv(this.h)}, ${zc(this.s)*100}%, ${zc(this.l)*100}%${e===1?")":`, ${e})`}`}}));function lv(e){return e=(e||0)%360,e<0?e+360:e}function zc(e){return Math.max(0,Math.min(1,e||0))}function Jm(e,t,r){return (e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}var Rs=e=>()=>e;function o4(e,t){return function(r){return e+r*t}}function n4(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(o){return Math.pow(e+o*t,r)}}function mv(e){return (e=+e)==1?Gc:function(t,r){return r-t?n4(t,r,e):Rs(isNaN(t)?r:t)}}function Gc(e,t){var r=t-e;return r?o4(e,r):Rs(isNaN(e)?t:e)}var Zm=(function e(t){var r=mv(t);function o(n,a){var i=r((n=hi(n)).r,(a=hi(a)).r),s=r(n.g,a.g),c=r(n.b,a.b),l=Gc(n.opacity,a.opacity);return function(d){return n.r=i(d),n.g=s(d),n.b=c(d),n.opacity=l(d),n+""}}return o.gamma=e,o})(1);function gv(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,o=t.slice(),n;return function(a){for(n=0;n<r;++n)o[n]=e[n]*(1-a)+t[n]*a;return o}}function bv(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function xv(e,t){var r=t?t.length:0,o=e?Math.min(r,e.length):0,n=new Array(o),a=new Array(r),i;for(i=0;i<o;++i)n[i]=da(e[i],t[i]);for(;i<r;++i)a[i]=t[i];return function(s){for(i=0;i<o;++i)a[i]=n[i](s);return a}}function hv(e,t){var r=new Date;return e=+e,t=+t,function(o){return r.setTime(e*(1-o)+t*o),r}}function vn(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function yv(e,t){var r={},o={},n;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(n in t)n in e?r[n]=da(e[n],t[n]):o[n]=t[n];return function(a){for(n in r)o[n]=r[n](a);return o}}var _m=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Qm=new RegExp(_m.source,"g");function a4(e){return function(){return e}}function i4(e){return function(t){return e(t)+""}}function vv(e,t){var r=_m.lastIndex=Qm.lastIndex=0,o,n,a,i=-1,s=[],c=[];for(e=e+"",t=t+"";(o=_m.exec(e))&&(n=Qm.exec(t));)(a=n.index)>r&&(a=t.slice(r,a),s[i]?s[i]+=a:s[++i]=a),(o=o[0])===(n=n[0])?s[i]?s[i]+=n:s[++i]=n:(s[++i]=null,c.push({i,x:vn(o,n)})),r=Qm.lastIndex;return r<t.length&&(a=t.slice(r),s[i]?s[i]+=a:s[++i]=a),s.length<2?c[0]?i4(c[0].x):a4(t):(t=c.length,function(l){for(var d=0,u;d<t;++d)s[(u=c[d]).i]=u.x(l);return s.join("")})}function da(e,t){var r=typeof t,o;return t==null||r==="boolean"?Rs(t):(r==="number"?vn:r==="string"?(o=yn(t))?(t=o,Zm):vv:t instanceof yn?Zm:t instanceof Date?hv:bv(t)?gv:Array.isArray(t)?xv:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?yv:vn)(e,t)}function ef(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function tf(e){return function(){return e}}function rf(e){return +e}var Cv=[0,1];function yi(e){return e}function of(e,t){return (t-=e=+e)?function(r){return (r-e)/t}:tf(isNaN(t)?NaN:.5)}function l4(e,t){var r;return e>t&&(r=e,e=t,t=r),function(o){return Math.max(e,Math.min(t,o))}}function c4(e,t,r){var o=e[0],n=e[1],a=t[0],i=t[1];return n<o?(o=of(n,o),a=r(i,a)):(o=of(o,n),a=r(a,i)),function(s){return a(o(s))}}function d4(e,t,r){var o=Math.min(e.length,t.length)-1,n=new Array(o),a=new Array(o),i=-1;for(e[o]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++i<o;)n[i]=of(e[i],e[i+1]),a[i]=r(t[i],t[i+1]);return function(s){var c=d3Array.bisect(e,s,1,o)-1;return a[c](n[c](s))}}function Sv(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function u4(){var e=Cv,t=Cv,r=da,o,n,a,i=yi,s,c,l;function d(){var p=Math.min(e.length,t.length);return i!==yi&&(i=l4(e[0],e[p-1])),s=p>2?d4:c4,c=l=null,u}function u(p){return p==null||isNaN(p=+p)?a:(c||(c=s(e.map(o),t,r)))(o(i(p)))}return u.invert=function(p){return i(n((l||(l=s(t,e.map(o),vn)))(p)))},u.domain=function(p){return arguments.length?(e=Array.from(p,rf),d()):e.slice()},u.range=function(p){return arguments.length?(t=Array.from(p),d()):t.slice()},u.rangeRound=function(p){return t=Array.from(p),r=ef,d()},u.clamp=function(p){return arguments.length?(i=p?true:yi,d()):i!==yi},u.interpolate=function(p){return arguments.length?(r=p,d()):r},u.unknown=function(p){return arguments.length?(a=p,u):a},function(p,m){return o=p,n=m,d()}}function nf(){return u4()(yi,yi)}function af(e,t){e=e.slice();var r=0,o=e.length-1,n=e[r],a=e[o],i;return a<n&&(i=r,r=o,o=i,i=n,n=a,a=i),e[r]=t.floor(n),e[o]=t.ceil(a),e}var sf=new Date,lf=new Date;function qe(e,t,r,o){function n(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return n.floor=a=>(e(a=new Date(+a)),a),n.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),n.round=a=>{let i=n(a),s=n.ceil(a);return a-i<s-a?i:s},n.offset=(a,i)=>(t(a=new Date(+a),i==null?1:Math.floor(i)),a),n.range=(a,i,s)=>{let c=[];if(a=n.ceil(a),s=s==null?1:Math.floor(s),!(a<i)||!(s>0))return c;let l;do c.push(l=new Date(+a)),t(a,s),e(a);while(l<a&&a<i);return c},n.filter=a=>qe(i=>{if(i>=i)for(;e(i),!a(i);)i.setTime(i-1);},(i,s)=>{if(i>=i)if(s<0)for(;++s<=0;)for(;t(i,-1),!a(i););else for(;--s>=0;)for(;t(i,1),!a(i););}),r&&(n.count=(a,i)=>(sf.setTime(+a),lf.setTime(+i),e(sf),e(lf),Math.floor(r(sf,lf))),n.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?n.filter(o?i=>o(i)%a===0:i=>n.count(0,i)%a===0):n)),n}var Ms=qe(()=>{},(e,t)=>{e.setTime(+e+t);},(e,t)=>t-e);Ms.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?qe(t=>{t.setTime(Math.floor(t/e)*e);},(t,r)=>{t.setTime(+t+r*e);},(t,r)=>(r-t)/e):Ms);Ms.range;var Co=qe(e=>{e.setTime(e-e.getMilliseconds());},(e,t)=>{e.setTime(+e+t*1e3);},(e,t)=>(t-e)/1e3,e=>e.getUTCSeconds());Co.range;var vi=qe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*1e3);},(e,t)=>{e.setTime(+e+t*6e4);},(e,t)=>(t-e)/6e4,e=>e.getMinutes());vi.range;var Uc=qe(e=>{e.setUTCSeconds(0,0);},(e,t)=>{e.setTime(+e+t*6e4);},(e,t)=>(t-e)/6e4,e=>e.getUTCMinutes());Uc.range;var Ci=qe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*1e3-e.getMinutes()*6e4);},(e,t)=>{e.setTime(+e+t*36e5);},(e,t)=>(t-e)/36e5,e=>e.getHours());Ci.range;var Yc=qe(e=>{e.setUTCMinutes(0,0,0);},(e,t)=>{e.setTime(+e+t*36e5);},(e,t)=>(t-e)/36e5,e=>e.getUTCHours());Yc.range;var Wo=qe(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/864e5,e=>e.getDate()-1);Wo.range;var Es=qe(e=>{e.setUTCHours(0,0,0,0);},(e,t)=>{e.setUTCDate(e.getUTCDate()+t);},(e,t)=>(t-e)/864e5,e=>e.getUTCDate()-1);Es.range;var Kc=qe(e=>{e.setUTCHours(0,0,0,0);},(e,t)=>{e.setUTCDate(e.getUTCDate()+t);},(e,t)=>(t-e)/864e5,e=>Math.floor(e/864e5));Kc.range;function ma(e){return qe(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0);},(t,r)=>{t.setDate(t.getDate()+r*7);},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/6048e5)}var Go=ma(0),Si=ma(1),Nv=ma(2),kv=ma(3),Cn=ma(4),Pv=ma(5),Rv=ma(6);Go.range;Si.range;Nv.range;kv.range;Cn.range;Pv.range;Rv.range;function fa(e){return qe(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0);},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7);},(t,r)=>(r-t)/6048e5)}var ga=fa(0),wi=fa(1),Dv=fa(2),Ev=fa(3),Sn=fa(4),Lv=fa(5),Av=fa(6);ga.range;wi.range;Dv.range;Ev.range;Sn.range;Lv.range;Av.range;var Ti=qe(e=>{e.setDate(1),e.setHours(0,0,0,0);},(e,t)=>{e.setMonth(e.getMonth()+t);},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Ti.range;var jc=qe(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0);},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t);},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());jc.range;var wr=qe(e=>{e.setMonth(0,1),e.setHours(0,0,0,0);},(e,t)=>{e.setFullYear(e.getFullYear()+t);},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());wr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:qe(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0);},(t,r)=>{t.setFullYear(t.getFullYear()+r*e);});wr.range;var to=qe(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t);},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());to.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:qe(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e);});to.range;function Vv(e,t,r,o,n,a){let i=[[Co,1,1e3],[Co,5,5*1e3],[Co,15,15*1e3],[Co,30,30*1e3],[a,1,6e4],[a,5,5*6e4],[a,15,15*6e4],[a,30,30*6e4],[n,1,36e5],[n,3,3*36e5],[n,6,6*36e5],[n,12,12*36e5],[o,1,864e5],[o,2,2*864e5],[r,1,6048e5],[t,1,2592e6],[t,3,3*2592e6],[e,1,31536e6]];function s(l,d,u){let p=d<l;p&&([l,d]=[d,l]);let m=u&&typeof u.range=="function"?u:c(l,d,u),g=m?m.range(l,+d+1):[];return p?g.reverse():g}function c(l,d,u){let p=Math.abs(d-l)/u,m=d3Array.bisector(([,,x])=>x).right(i,p);if(m===i.length)return e.every(d3Array.tickStep(l/31536e6,d/31536e6,u));if(m===0)return Ms.every(Math.max(d3Array.tickStep(l,d,u),1));let[g,f]=i[p/i[m-1][2]<i[m][2]/p?m-1:m];return g.every(f)}return [s,c]}var [cf,df]=Vv(wr,Ti,Go,Wo,Ci,vi);function uf(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function pf(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Ls(e,t,r){return {y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function mf(e){var t=e.dateTime,r=e.date,o=e.time,n=e.periods,a=e.days,i=e.shortDays,s=e.months,c=e.shortMonths,l=As(n),d=Is(n),u=As(a),p=Is(a),m=As(i),g=Is(i),f=As(s),x=Is(s),b=As(c),h=Is(c),y={a:O,A:z,b:j,B:K,c:null,d:Uv,e:Uv,f:sM,g:xM,G:yM,H:nM,I:aM,j:iM,L:qv,m:lM,M:cM,p:$,q:P,Q:jv,s:$v,S:dM,u:uM,U:pM,V:mM,w:fM,W:gM,x:null,X:null,y:bM,Y:hM,Z:vM,"%":Kv},v={a:M,A:G,b:I,B:C,c:null,d:Yv,e:Yv,f:TM,g:IM,G:BM,H:CM,I:SM,j:wM,L:Xv,m:NM,M:kM,p:H,q:Y,Q:jv,s:$v,S:PM,u:RM,U:MM,V:DM,w:EM,W:LM,x:null,X:null,y:AM,Y:FM,Z:VM,"%":Kv},S={a:D,A:V,b:A,B:T,c:N,d:Wv,e:Wv,f:eM,g:Hv,G:zv,H:Gv,I:Gv,j:X4,L:_4,m:J4,M:Z4,p:R,q:q4,Q:rM,s:oM,S:Q4,u:U4,U:Y4,V:K4,w:G4,W:j4,x:B,X:W,y:Hv,Y:zv,Z:$4,"%":tM};y.x=w(r,y),y.X=w(o,y),y.c=w(t,y),v.x=w(r,v),v.X=w(o,v),v.c=w(t,v);function w(F,_){return function(te){var E=[],ae=-1,oe=0,ee=F.length,se,ue,xe;for(te instanceof Date||(te=new Date(+te));++ae<ee;)F.charCodeAt(ae)===37&&(E.push(F.slice(oe,ae)),(ue=Ov[se=F.charAt(++ae)])!=null?se=F.charAt(++ae):ue=se==="e"?" ":"0",(xe=_[se])&&(se=xe(te,ue)),E.push(se),oe=ae+1);return E.push(F.slice(oe,ae)),E.join("")}}function k(F,_){return function(te){var E=Ls(1900,void 0,1),ae=L(E,F,te+="",0),oe,ee;if(ae!=te.length)return null;if("Q"in E)return new Date(E.Q);if("s"in E)return new Date(E.s*1e3+("L"in E?E.L:0));if(_&&!("Z"in E)&&(E.Z=0),"p"in E&&(E.H=E.H%12+E.p*12),E.m===void 0&&(E.m="q"in E?E.q:0),"V"in E){if(E.V<1||E.V>53)return null;"w"in E||(E.w=1),"Z"in E?(oe=pf(Ls(E.y,0,1)),ee=oe.getUTCDay(),oe=ee>4||ee===0?wi.ceil(oe):wi(oe),oe=Es.offset(oe,(E.V-1)*7),E.y=oe.getUTCFullYear(),E.m=oe.getUTCMonth(),E.d=oe.getUTCDate()+(E.w+6)%7):(oe=uf(Ls(E.y,0,1)),ee=oe.getDay(),oe=ee>4||ee===0?Si.ceil(oe):Si(oe),oe=Wo.offset(oe,(E.V-1)*7),E.y=oe.getFullYear(),E.m=oe.getMonth(),E.d=oe.getDate()+(E.w+6)%7);}else ("W"in E||"U"in E)&&("w"in E||(E.w="u"in E?E.u%7:"W"in E?1:0),ee="Z"in E?pf(Ls(E.y,0,1)).getUTCDay():uf(Ls(E.y,0,1)).getDay(),E.m=0,E.d="W"in E?(E.w+6)%7+E.W*7-(ee+5)%7:E.w+E.U*7-(ee+6)%7);return "Z"in E?(E.H+=E.Z/100|0,E.M+=E.Z%100,pf(E)):uf(E)}}function L(F,_,te,E){for(var ae=0,oe=_.length,ee=te.length,se,ue;ae<oe;){if(E>=ee)return -1;if(se=_.charCodeAt(ae++),se===37){if(se=_.charAt(ae++),ue=S[se in Ov?_.charAt(ae++):se],!ue||(E=ue(F,te,E))<0)return -1}else if(se!=te.charCodeAt(E++))return -1}return E}function R(F,_,te){var E=l.exec(_.slice(te));return E?(F.p=d.get(E[0].toLowerCase()),te+E[0].length):-1}function D(F,_,te){var E=m.exec(_.slice(te));return E?(F.w=g.get(E[0].toLowerCase()),te+E[0].length):-1}function V(F,_,te){var E=u.exec(_.slice(te));return E?(F.w=p.get(E[0].toLowerCase()),te+E[0].length):-1}function A(F,_,te){var E=b.exec(_.slice(te));return E?(F.m=h.get(E[0].toLowerCase()),te+E[0].length):-1}function T(F,_,te){var E=f.exec(_.slice(te));return E?(F.m=x.get(E[0].toLowerCase()),te+E[0].length):-1}function N(F,_,te){return L(F,t,_,te)}function B(F,_,te){return L(F,r,_,te)}function W(F,_,te){return L(F,o,_,te)}function O(F){return i[F.getDay()]}function z(F){return a[F.getDay()]}function j(F){return c[F.getMonth()]}function K(F){return s[F.getMonth()]}function $(F){return n[+(F.getHours()>=12)]}function P(F){return 1+~~(F.getMonth()/3)}function M(F){return i[F.getUTCDay()]}function G(F){return a[F.getUTCDay()]}function I(F){return c[F.getUTCMonth()]}function C(F){return s[F.getUTCMonth()]}function H(F){return n[+(F.getUTCHours()>=12)]}function Y(F){return 1+~~(F.getUTCMonth()/3)}return {format:function(F){var _=w(F+="",y);return _.toString=function(){return F},_},parse:function(F){var _=k(F+="",false);return _.toString=function(){return F},_},utcFormat:function(F){var _=w(F+="",v);return _.toString=function(){return F},_},utcParse:function(F){var _=k(F+="",true);return _.toString=function(){return F},_}}}var Ov={"-":"",_:" ",0:"0"},It=/^\s*\d+/,z4=/^%/,H4=/[\\^$*+?|[\]().{}]/g;function Be(e,t,r){var o=e<0?"-":"",n=(o?-e:e)+"",a=n.length;return o+(a<r?new Array(r-a+1).join(t)+n:n)}function W4(e){return e.replace(H4,"\\$&")}function As(e){return new RegExp("^(?:"+e.map(W4).join("|")+")","i")}function Is(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function G4(e,t,r){var o=It.exec(t.slice(r,r+1));return o?(e.w=+o[0],r+o[0].length):-1}function U4(e,t,r){var o=It.exec(t.slice(r,r+1));return o?(e.u=+o[0],r+o[0].length):-1}function Y4(e,t,r){var o=It.exec(t.slice(r,r+2));return o?(e.U=+o[0],r+o[0].length):-1}function K4(e,t,r){var o=It.exec(t.slice(r,r+2));return o?(e.V=+o[0],r+o[0].length):-1}function j4(e,t,r){var o=It.exec(t.slice(r,r+2));return o?(e.W=+o[0],r+o[0].length):-1}function zv(e,t,r){var o=It.exec(t.slice(r,r+4));return o?(e.y=+o[0],r+o[0].length):-1}function Hv(e,t,r){var o=It.exec(t.slice(r,r+2));return o?(e.y=+o[0]+(+o[0]>68?1900:2e3),r+o[0].length):-1}function $4(e,t,r){var o=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return o?(e.Z=o[1]?0:-(o[2]+(o[3]||"00")),r+o[0].length):-1}function q4(e,t,r){var o=It.exec(t.slice(r,r+1));return o?(e.q=o[0]*3-3,r+o[0].length):-1}function J4(e,t,r){var o=It.exec(t.slice(r,r+2));return o?(e.m=o[0]-1,r+o[0].length):-1}function Wv(e,t,r){var o=It.exec(t.slice(r,r+2));return o?(e.d=+o[0],r+o[0].length):-1}function X4(e,t,r){var o=It.exec(t.slice(r,r+3));return o?(e.m=0,e.d=+o[0],r+o[0].length):-1}function Gv(e,t,r){var o=It.exec(t.slice(r,r+2));return o?(e.H=+o[0],r+o[0].length):-1}function Z4(e,t,r){var o=It.exec(t.slice(r,r+2));return o?(e.M=+o[0],r+o[0].length):-1}function Q4(e,t,r){var o=It.exec(t.slice(r,r+2));return o?(e.S=+o[0],r+o[0].length):-1}function _4(e,t,r){var o=It.exec(t.slice(r,r+3));return o?(e.L=+o[0],r+o[0].length):-1}function eM(e,t,r){var o=It.exec(t.slice(r,r+6));return o?(e.L=Math.floor(o[0]/1e3),r+o[0].length):-1}function tM(e,t,r){var o=z4.exec(t.slice(r,r+1));return o?r+o[0].length:-1}function rM(e,t,r){var o=It.exec(t.slice(r));return o?(e.Q=+o[0],r+o[0].length):-1}function oM(e,t,r){var o=It.exec(t.slice(r));return o?(e.s=+o[0],r+o[0].length):-1}function Uv(e,t){return Be(e.getDate(),t,2)}function nM(e,t){return Be(e.getHours(),t,2)}function aM(e,t){return Be(e.getHours()%12||12,t,2)}function iM(e,t){return Be(1+Wo.count(wr(e),e),t,3)}function qv(e,t){return Be(e.getMilliseconds(),t,3)}function sM(e,t){return qv(e,t)+"000"}function lM(e,t){return Be(e.getMonth()+1,t,2)}function cM(e,t){return Be(e.getMinutes(),t,2)}function dM(e,t){return Be(e.getSeconds(),t,2)}function uM(e){var t=e.getDay();return t===0?7:t}function pM(e,t){return Be(Go.count(wr(e)-1,e),t,2)}function Jv(e){var t=e.getDay();return t>=4||t===0?Cn(e):Cn.ceil(e)}function mM(e,t){return e=Jv(e),Be(Cn.count(wr(e),e)+(wr(e).getDay()===4),t,2)}function fM(e){return e.getDay()}function gM(e,t){return Be(Si.count(wr(e)-1,e),t,2)}function bM(e,t){return Be(e.getFullYear()%100,t,2)}function xM(e,t){return e=Jv(e),Be(e.getFullYear()%100,t,2)}function hM(e,t){return Be(e.getFullYear()%1e4,t,4)}function yM(e,t){var r=e.getDay();return e=r>=4||r===0?Cn(e):Cn.ceil(e),Be(e.getFullYear()%1e4,t,4)}function vM(e){var t=e.getTimezoneOffset();return (t>0?"-":(t*=-1,"+"))+Be(t/60|0,"0",2)+Be(t%60,"0",2)}function Yv(e,t){return Be(e.getUTCDate(),t,2)}function CM(e,t){return Be(e.getUTCHours(),t,2)}function SM(e,t){return Be(e.getUTCHours()%12||12,t,2)}function wM(e,t){return Be(1+Es.count(to(e),e),t,3)}function Xv(e,t){return Be(e.getUTCMilliseconds(),t,3)}function TM(e,t){return Xv(e,t)+"000"}function NM(e,t){return Be(e.getUTCMonth()+1,t,2)}function kM(e,t){return Be(e.getUTCMinutes(),t,2)}function PM(e,t){return Be(e.getUTCSeconds(),t,2)}function RM(e){var t=e.getUTCDay();return t===0?7:t}function MM(e,t){return Be(ga.count(to(e)-1,e),t,2)}function Zv(e){var t=e.getUTCDay();return t>=4||t===0?Sn(e):Sn.ceil(e)}function DM(e,t){return e=Zv(e),Be(Sn.count(to(e),e)+(to(e).getUTCDay()===4),t,2)}function EM(e){return e.getUTCDay()}function LM(e,t){return Be(wi.count(to(e)-1,e),t,2)}function AM(e,t){return Be(e.getUTCFullYear()%100,t,2)}function IM(e,t){return e=Zv(e),Be(e.getUTCFullYear()%100,t,2)}function FM(e,t){return Be(e.getUTCFullYear()%1e4,t,4)}function BM(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Sn(e):Sn.ceil(e),Be(e.getUTCFullYear()%1e4,t,4)}function VM(){return "+0000"}function Kv(){return "%"}function jv(e){return +e}function $v(e){return Math.floor(+e/1e3)}var Ni,$c;ff({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function ff(e){return Ni=mf(e),$c=Ni.format,Ni.parse,Ni.utcFormat,Ni.utcParse,Ni}function OM(e){return new Date(e)}function zM(e){return e instanceof Date?+e:+new Date(+e)}function t0(e,t,r,o,n,a,i,s,c,l){var d=nf(),u=d.invert,p=d.domain,m=l(".%L"),g=l(":%S"),f=l("%I:%M"),x=l("%I %p"),b=l("%a %d"),h=l("%b %d"),y=l("%B"),v=l("%Y");function S(w){return (c(w)<w?m:s(w)<w?g:i(w)<w?f:a(w)<w?x:o(w)<w?n(w)<w?b:h:r(w)<w?y:v)(w)}return d.invert=function(w){return new Date(u(w))},d.domain=function(w){return arguments.length?p(Array.from(w,zM)):p().map(OM)},d.ticks=function(w){var k=p();return e(k[0],k[k.length-1],w??10)},d.tickFormat=function(w,k){return k==null?S:l(k)},d.nice=function(w){var k=p();return (!w||typeof w.range!="function")&&(w=t(k[0],k[k.length-1],w??10)),w?p(af(k,w)):d},d.copy=function(){return Sv(d,t0(e,t,r,o,n,a,i,s,c,l))},d}function qc(){return ev.apply(t0(cf,df,wr,Ti,Go,Wo,Ci,vi,Co,$c).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var o0=e=>e instanceof Date&&!Number.isNaN(e.getTime());function Jc(e,t,r){let[o,n]=He.useState(null);He.useImperativeHandle(r,()=>({setPreview:n}),[]);let[a,i]=e.range(),s=He.useMemo(()=>o?qc().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=o0(l)&&o0(d),p=t<400,m=Math.max(2,Math.min(8,Math.floor(t/(p?70:110)))),g=He.useMemo(()=>u?s.ticks(m):[],[s,m,u]);return {activeScale:s,ticks:g,start:l,end:d,valid:u,compact:p,rangeStart:a,rangeEnd:i}}var KM=6,n0=20,bf=He.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}=Jc(t,r,o),p=a.length>=2?a[1].getTime()-a[0].getTime():s.getTime()-i.getTime(),m=He.useMemo(()=>c?cx(p,{compact:l}):()=>"",[p,l,c]),g=He.useId(),f=Math.min(d,u),x=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:x,height:n0+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:KM,stroke:"var(--color-border-muted)",strokeWidth:1}),jsxRuntime.jsx("text",{x:0,y:n0,textAnchor:"middle",fontSize:12,fill:"var(--color-text-secondary)",children:m(b)})]},b.getTime()))})]})]})});bf.displayName="LiveTimeAxisBottom";var xf=He.forwardRef(({scale:e,width:t,top:r,bottom:o},n)=>{let{activeScale:a,ticks:i}=Jc(e,t,n);return jsxRuntime.jsx("g",{"aria-hidden":"true",children:i.map(s=>{let c=a(s);return jsxRuntime.jsx("line",{x1:c,x2:c,y1:r,y2:o,stroke:"var(--color-border-muted)",strokeWidth:1},s.getTime())})})});xf.displayName="LiveTimeGridlines";function Xc(e,t,r){let o=e[1]-e[0],n=t/Math.max(1,r)*o;return [e[0]-n,e[1]-n]}function i0(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 hf(e,t,r=16,o=800){return t===1?e*r:t===2?e*o:e}var s0=(e,t,r,o,n)=>{let a=t!==1?i0(e,r,t):e;return o!==0&&(a=Xc(a,o,n)),a},l0=(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]},JM=e=>typeof requestAnimationFrame=="function"?requestAnimationFrame(e):setTimeout(()=>e(0),0),XM=e=>{typeof cancelAnimationFrame=="function"?cancelAnimationFrame(e):clearTimeout(e);};function c0(e){let{groupRef:t}=e,r=He.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=He.useRef(e.onCommit);o.current=e.onCommit;let n=He.useRef(e.panBoundsMs);n.current=e.panBoundsMs;let a=He.useRef(e.settleMs??140);a.current=e.settleMs??140;let i=He.useRef(e.zoomIntent??(A=>A.ctrlKey));i.current=e.zoomIntent??(A=>A.ctrlKey);let s=He.useRef(e.onGestureStart);s.current=e.onGestureStart;let c=He.useRef(e.onFramePreview);c.current=e.onFramePreview;let l=He.useRef(null),d=He.useRef({scale:1,cursorFrac:.5,panDxPx:0,timer:null}),u=He.useRef(null),p=He.useRef(null),m=He.useRef(false),g=He.useCallback((A,T,N)=>{p.current={translateX:A,scaleX:T,preview:N},u.current==null&&(u.current=JM(()=>{u.current=null;let B=p.current;B!=null&&(t.current?.setAttribute("transform",`translate(${B.translateX},0) scale(${B.scaleX},1)`),c.current?.(B.preview));}));},[t]),f=He.useCallback(()=>{u.current!=null&&(XM(u.current),u.current=null),p.current=null,t.current?.removeAttribute("transform"),c.current?.(null);},[t]),x=He.useCallback(()=>{m.current||(m.current=true,s.current?.());},[]),b=He.useCallback(()=>{m.current=false;},[]),h=He.useCallback(()=>{d.current.timer!=null&&(clearTimeout(d.current.timer),d.current.timer=null);},[]),y=He.useCallback(()=>{d.current={scale:1,cursorFrac:.5,panDxPx:0,timer:null};},[]),v=He.useCallback(()=>{let{xDomain:A,plotWidthPx:T}=r.current,{scale:N,cursorFrac:B,panDxPx:W}=d.current;N===1&&W===0||o.current(l0(s0(A,N,B,W,T),n.current));},[]),S=He.useCallback(()=>{d.current.timer!=null&&(h(),v(),y(),f());},[h,v,y,f]),w=He.useCallback(A=>{S(),A.currentTarget.setPointerCapture?.(A.pointerId),l.current={startX:A.clientX,dxPx:0},x();},[S,x]),k=He.useCallback(A=>{if(!l.current)return;l.current.dxPx=A.clientX-l.current.startX;let{xDomain:T,plotWidthPx:N}=r.current;g(l.current.dxPx,1,Xc(T,l.current.dxPx,N));},[g]),L=He.useCallback(A=>{if(!l.current)return;let{dxPx:T}=l.current;l.current=null,f(),b(),T!==0&&o.current(l0(Xc(r.current.xDomain,T,r.current.plotWidthPx),n.current));},[f,b]),R=He.useCallback(()=>{l.current&&(l.current=null,f(),b());},[f,b]),D=He.useRef(null),V=He.useCallback(A=>{if(D.current?.(),D.current=null,!A)return;let T=N=>{if(l.current)return;let{plotWidthPx:B,plotLeftPx:W}=r.current,O=hf(N.deltaY,N.deltaMode),z=hf(N.deltaX,N.deltaMode),j=i.current(N);if(!j&&z===0)return;if(N.preventDefault(),x(),j){let M=Math.min(1,Math.max(0,(N.clientX-A.getBoundingClientRect().left)/Math.max(1,B)));d.current.scale*=Math.exp(-O/200),d.current.cursorFrac=M;}else d.current.panDxPx-=z;let{scale:K,cursorFrac:$,panDxPx:P}=d.current;g((W+$*B)*(1-K)+P,K,s0(r.current.xDomain,K,$,P,B)),h(),d.current.timer=setTimeout(()=>{v(),y(),f(),b();},a.current);};A.addEventListener("wheel",T,{passive:false}),D.current=()=>A.removeEventListener("wheel",T);},[g,f,h,v,y,x,b]);return He.useEffect(()=>()=>{D.current?.(),D.current=null,f(),d.current.timer!=null&&clearTimeout(d.current.timer);},[f]),{onPointerDown:w,onPointerMove:k,onPointerUp:L,onPointerCancel:R,wheelTargetRef:V,gestureActiveRef:m}}var f0=e=>e.type===xn||e.type===na,rD=({children:e,viewport:t,panBounds:r,onViewportChange:o,onPlotWidthChange:n,yFormatter:a={type:"number"},yDomain:i,referenceLines:s,cameraSync:c,parentWidth:l=0,parentHeight:d=0})=>{let[u,p]=He.useState(null),m=He.useRef(null),g=He.useRef(0),f=He.useId(),x=He.useRef(null),b=He.useRef(null),h=He.useRef(null),{colorMode:y}=Ht(),v=He.useMemo(()=>Vn(),[y]),S=He.useMemo(()=>Ji(),[y]),{datasets:w,seriesMetadata:k,seriesTypes:L}=He.useMemo(()=>{let Q=He.Children.toArray(e).filter(pe=>He.isValidElement(pe)&&f0(pe)),ce=Q.filter(pe=>pe.props.data).length,re=[],Z=[],q=[];return Q.forEach((pe,de)=>{let ne=pe.props;if(!ne.data)return;re.push(ne.data);let rt=("color"in ne&&ne.color?ne.color:void 0)||(ce===1?S:v[de%v.length]),$r=pe.type===xn;Z.push({label:"label"in ne&&ne.label||`Series ${re.length}`,color:rt,...$r&&"baseline"in ne&&ne.baseline!==void 0?{baseline:ne.baseline,tooltipRange:"tooltipRange"in ne&&ne.tooltipRange||false}:{}}),q.push($r?"area":"line");}),{datasets:re,seriesMetadata:Z,seriesTypes:q}},[e,S,v]),R=l,D=Math.max(100,d-60),V=He.useMemo(()=>[new Date(t.startMs),new Date(t.endMs)],[t.startMs,t.endMs]),A=He.useMemo(()=>{let Q=w.flat(),ce=Q.filter(re=>{let Z=re.xValue.getTime();return Z>=t.startMs&&Z<=t.endMs});return ce.length>0?ce:Q},[w,t.startMs,t.endMs]),T=He.useMemo(()=>{let Q=xs(A,D,a,i);if(!i){let[ce,re]=Q.domain();re>ce&&Q.domain([ce,re+(re-ce)*.05]);}return Q},[A,D,a,i]),N=He.useRef(JSON.stringify(a)),B=He.useRef(null),W=He.useMemo(()=>{let[Q,ce]=T.domain(),re=Math.max(Math.abs(Q),Math.abs(ce)),Z=JSON.stringify(a);if(Z!==N.current&&(N.current=Z,B.current=null),B.current!==null)return B.current;if(re===0)return ui(a,0);let q=ui(a,re);return B.current=q,q},[T,a]),O=He.useMemo(()=>{let Q=D-Ae.top-Ae.bottom;return mi(Q)},[D]),z=He.useMemo(()=>{let Q=_r(W),ce=Q.tickFormat||Q.format,Z=T.ticks(O).map(de=>ce(de)),q=pi(Z,12,"system-ui"),pe=Math.ceil(q)+12;return {...Ae,left:Math.max(pe,30)}},[T,W,O]),j=He.useMemo(()=>scale.scaleTime({domain:V,range:[z.left,R-z.right]}),[V,R,z]),K=He.useMemo(()=>[t.startMs,t.endMs],[t.startMs,t.endMs]),$=He.useMemo(()=>r?[r.startMs,r.endMs]:void 0,[r]),P=He.useCallback(Q=>{o({startMs:Q[0],endMs:Q[1]});},[o]),M=R-z.left-z.right,G=He.useCallback(()=>p(null),[]),I=He.useRef({}),C=He.useRef(c);C.current=c;let H=He.useCallback(Q=>{b.current?.setPreview(Q),h.current?.setPreview(Q),C.current?.publish(I.current,Q);},[]),{onPointerDown:Y,onPointerMove:F,onPointerUp:_,onPointerCancel:te,wheelTargetRef:E,gestureActiveRef:ae}=c0({xDomain:K,plotWidthPx:M,plotLeftPx:z.left,groupRef:x,onCommit:P,onGestureStart:G,onFramePreview:H,...$?{panBoundsMs:$}:{}}),oe=He.useRef({startMs:t.startMs,endMs:t.endMs,left:0,width:0});oe.current={startMs:t.startMs,endMs:t.endMs,left:z.left,width:M},He.useEffect(()=>{if(!c)return;let Q=()=>{x.current?.removeAttribute("transform"),b.current?.setPreview(null),h.current?.setPreview(null);},ce=Z=>{if(ae.current)return;if(Z==null){Q();return}let{startMs:q,endMs:pe,left:de,width:ne}=oe.current,Se=pe-q,rt=Z[1]-Z[0];if(Se<=0||rt<=0||ne<=0)return;let $r=Se/rt,Ao=de*(1-$r)+(q-Z[0])*ne/rt;x.current?.setAttribute("transform",`translate(${Ao},0) scale(${$r},1)`),b.current?.setPreview(Z),h.current?.setPreview(Z);},re=c.subscribe(I.current,ce);return ()=>{re(),ae.current||Q();}},[c,ae]),He.useEffect(()=>{n?.(Math.max(0,R-z.left-z.right));},[R,z,n]);let ee=He.useCallback(Q=>{if(ae.current)return;let{left:ce}=m.current?.getBoundingClientRect()||{left:0},re=Q.clientX-ce;Q.timeStamp-(g.current||0)<16||(g.current=Q.timeStamp,p(_y({mouseX:re,datasets:w,seriesMetadata:k,seriesTypes:L,xScale:j,yScale:T,plotLeft:z.left,plotRight:R-z.right})));},[w,k,L,j,T,R,z,ae]),se=He.useCallback(()=>p(null),[]),ue={width:R,height:D,xScale:j,yScale:T,yFormatter:W,animationSettings:fc,tooltip:{data:u,show:p,hide:()=>p(null)},datasets:w,seriesMetadata:k,seriesTypes:L},xe=0,Ve=[];He.Children.toArray(e).forEach(Q=>{if(!He.isValidElement(Q)){Ve.push(Q);return}if(f0(Q)){let ce=xe;xe++;let re=Q.props;Ve.push(He__namespace.default.cloneElement(Q,{...re,color:k[ce]?.color,animate:false}));}else Ve.push(Q);});let tt=k.map(Q=>({category:Q.label,fill:Q.color})),Xt=wl({datasets:w,metadata:{xLabel:"Date",yLabel:"Value",seriesLabels:k.map(Q=>Q.label),timestamp:true},svgRef:m}),mr=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("title",{children:"Data chart visualization"}),jsxRuntime.jsx("g",{children:T.ticks(O).map(Q=>{let ce=Math.abs(Q)<Number.EPSILON;return jsxRuntime.jsx(shape.Line,{from:{x:z.left,y:T(Q)},to:{x:R-z.right,y:T(Q)},stroke:ce?"var(--color-border-default)":"var(--color-border-muted)",strokeWidth:ce?1.5:1},`grid-line-${Q}`)})}),jsxRuntime.jsx(xf,{ref:h,scale:j,width:R-z.left-z.right,top:T.range()[1],bottom:T.range()[0]}),jsxRuntime.jsx("defs",{children:jsxRuntime.jsx("clipPath",{id:f,children:jsxRuntime.jsx("rect",{x:j.range()[0],y:T.range()[1],width:j.range()[1]-j.range()[0],height:T.range()[0]-T.range()[1]})})}),jsxRuntime.jsx("g",{clipPath:`url(#${f})`,children:jsxRuntime.jsx("g",{"data-camera-plot-group":"",ref:x,children:Ve})}),s&&s.length>0&&jsxRuntime.jsx("g",{children:s.map(Q=>{let ce=T(Q.value),re=Q.color??"var(--color-error-base)";return jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx(shape.Line,{from:{x:z.left,y:ce},to:{x:R-z.right,y:ce},stroke:re,strokeWidth:1.5,strokeDasharray:"6 4"}),Q.label&&jsxRuntime.jsx("text",{x:R-z.right-4,y:ce-4,textAnchor:"end",fontSize:11,fill:re,children:Q.label})]},`ref-line-${Q.value}`)})}),jsxRuntime.jsx(bf,{ref:b,top:D-z.bottom,scale:j,width:R-z.left-z.right}),jsxRuntime.jsx(zr.Left,{left:z.left,scale:T,yFormatter:W,height:D-z.top-z.bottom}),u&&!u.isEvent&&jsxRuntime.jsx(jsxRuntime.Fragment,{children:u.series.filter(Q=>Q.type!=="bar"&&Q.showMarker!==false).map(Q=>jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("circle",{cx:j(u.xValue),cy:T(Q.chartY??Q.value),r:8,fill:"white",stroke:Q.color,strokeWidth:2,style:{transition:"all 100ms ease-out"}}),jsxRuntime.jsx("circle",{cx:j(u.xValue),cy:T(Q.chartY??Q.value),r:4,fill:Q.color,style:{transition:"all 100ms ease-out"}})]},`highlight-${Q.label}`))}),jsxRuntime.jsx("rect",{"data-camera-surface":"",x:z.left,y:z.top,width:R-z.left-z.right,height:D-z.top-z.bottom,fill:"transparent",style:{cursor:"grab",touchAction:"none"},onMouseMove:ee,onMouseLeave:se,onPointerDown:Y,onPointerMove:F,onPointerUp:_,onPointerCancel:te,ref:E})]});return jsxRuntime.jsx("div",{className:"relative flex h-full flex-col",children:jsxRuntime.jsxs(Or.Provider,{value:ue,children:[jsxRuntime.jsx("svg",{width:R,height:D,className:"overflow-visible",ref:m,role:"img","aria-label":"Data chart",children:mr}),jsxRuntime.jsx(hn,{data:u,formatter:W}),jsxRuntime.jsx(gi,{onExport:Xt,items:tt,marginLeft:0,marginRight:z.right})]})})},Qc=responsive.withParentSize(rD);var oD={sm:"gap-4 px-6 py-8",md:"gap-5 px-8 py-12",lg:"gap-6 px-10 py-16"},nD={sm:"xs",md:"sm",lg:"md"},aD={sm:bt("bodySm"),md:bt("bodySm"),lg:bt("bodyMd")},iD={sm:"h-10 w-10",md:"h-12 w-12",lg:"h-16 w-16"},sD={sm:20,md:24,lg:32},lD={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"},cD={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 _c({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 p=i==="sm"?"sm":"md",m=c==="spotlight",g=m?{background:cD[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(ie,{variant:"secondary",size:p,onPress:o.onPress,isDisabled:o.isDisabled,isLoading:o.isLoading,href:o.href,children:o.label}):jsxRuntime.jsx(ie,{variant:"secondary",size:p,onPress:o.onPress,isDisabled:o.isDisabled,isLoading:o.isLoading,children:o.label})),n&&jsxRuntime.jsx(et,{href:n.href||"#",variant:"muted",onPress:n.onPress,className:bt("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",oD[i],lD[s],d?"h-full justify-center":"",m?"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",iD[i]),children:jsxRuntime.jsx(U,{name:e,size:sD[i]})}),jsxRuntime.jsx(rr,{size:nD[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",aD[i]),children:r}),f()]})}function gD({selectionState:e,isDisabled:t}){let r=`${Je} 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 Pi({errorMessage:e,...t}){return jsxRuntime.jsxs(reactAriaComponents.RangeCalendar,{...t,children:[jsxRuntime.jsx(cc,{}),jsxRuntime.jsxs(reactAriaComponents.CalendarGrid,{className:"w-full border-separate [border-spacing:0] [&_td]:p-0 [&_td]:!border-0",children:[jsxRuntime.jsx(dc,{}),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:gD({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 h0(e){return e==="brand"?"primary":e==="default"||e==="secondary"||!e?"subtle":e}var xD={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"},hD={sm:14,md:16,lg:18,xl:20},yD=({isSelected:e,isFirst:t,isLast:r,isDisabled:o,variant:n="subtle"})=>{let a=h0(n),i=a==="primary"?"focus-visible:outline-action-primary":"focus-visible:outline-[color:var(--color-action-secondary-text)]";return a==="subtle"?tailwindMerge.twMerge(Je(),"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(Je(),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 td({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)]",h0(i)==="subtle"?"border border-border-muted":"border-2 border-border-muted",xD[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:yD({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(U,{name:l.icon,size:hD[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 wD(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function Sf(e){return wD(e)?e:(console.warn("Invalid date detected in TimeControls, using fallback:",e),new Date)}var C0={FIVE_MINUTES:0,FIFTEEN_MINUTES:1,HOUR:2,DAY:3,WEEK:4,MONTH:5,YEAR:6},TD=[{id:"FIFTEEN_MINUTES",label:"15m"},{id:"HOUR",label:"1h"},{id:"DAY",label:"1d"},{id:"WEEK",label:"1w"}];function rd({dateRange:e,onDateRangeChange:t,windowSize:r,onWindowSizeChange:o,showWindowSize:n=true,showRangeSelector:a=true,allowDatePicker:i=false,lockWindowSize:s=false,restrictToSingleDay:c=false,presetRanges:l=[],windowSizeOptions:d=TD,autoAdjustWindowSize:u=false,className:p}){let[m,g]=He.useState(0),f=He.useRef(null),[x,b]=He.useState(false),h=P=>{let G=(P.before.getTime()-P.after.getTime())/(1e3*60*60);return G<=24?"FIFTEEN_MINUTES":G<=72||G<=168?"HOUR":("DAY")};He.useEffect(()=>{if(u&&!x&&o){let P=h(e);o(P);}},[e,u,x,o]);let y=P=>l.find(M=>{let G=M.getRange();return Math.abs(G.after.getTime()-P.after.getTime())<1e3*60*60*24&&Math.abs(G.before.getTime()-P.before.getTime())<1e3*60*60*24})?.id,[v,S]=He.useState(()=>y(e)),w=Sf(e.after),k=Sf(e.before),L=new Date(k);L.setDate(L.getDate()-1);let R={start:Jl(w,jn()),end:Jl(L,jn())};He.useEffect(()=>{let P=new ResizeObserver(M=>{for(let G of M)g(G.contentRect.width);});return f.current&&P.observe(f.current),()=>{f.current&&P.unobserve(f.current);}},[]);let D=[...d].sort((P,M)=>C0[P.id]-C0[M.id]),V=P=>{let M=P.toString(),G=l.find(I=>I.id===M);G&&(S(M),b(false),t(G.getRange(),{presetId:M}));},A=P=>{if(P?.start&&P?.end){S(void 0);let M=new Date(P.start.year,P.start.month-1,P.start.day,0,0,0,0),G=new Date(P.end.year,P.end.month-1,P.end.day+1,0,0,0,0);t({after:M,before:G});}},T=P=>{if(P){S(void 0);let M=new Date(P.year,P.month-1,P.day,0,0,0,0),G=new Date(P.year,P.month-1,P.day+1,0,0,0,0);t({after:M,before:G});}},N=P=>{o&&(b(true),o(P.toString()));},B=()=>{if(l.length>0){let P=l[0];S(P.id),b(false),t(P.getRange(),{presetId:P.id});}},W=(P,M=0)=>{let G=Sf(P),I=new Date(G);return M!==0&&I.setDate(I.getDate()+M),I.toLocaleDateString("en-US")},O=D.map(P=>({id:P.id,label:P.label,value:P.id})),z=l.map(P=>({id:P.id,label:P.label,value:P.id})),j=s?jsxRuntime.jsx("div",{className:"flex items-center rounded-md border border-border-muted bg-background-muted px-3 py-2 text-sm text-text-secondary",children:D.find(P=>P.id===r)?.label||r}):jsxRuntime.jsx(qn,{className:"w-full md:w-auto",selectedKey:r,onSelectionChange:N,items:O,size:"md","aria-label":"Select Window Size",children:P=>jsxRuntime.jsx(nr,{id:P.id,"aria-label":P.label,size:"md",children:P.label},P.id)}),K=c?jsxRuntime.jsx("div",{className:"flex items-center",children:jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{children:[jsxRuntime.jsxs(ie,{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(U,{name:"CalendarBlank",size:18}),jsxRuntime.jsx("span",{className:"ml-2 hidden md:block",children:W(e.after)})]}),jsxRuntime.jsx(lt,{className:"w-auto p-3",disableGroup:true,children:jsxRuntime.jsx(ai,{"aria-label":"Select date",value:cs(w.toISOString().split("T")[0]),onChange:T})})]})}):jsxRuntime.jsxs("div",{className:"flex items-center",children:[jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{children:[jsxRuntime.jsxs(ie,{className:"rounded-r-none border-l pl-2 pr-2 hover:border-border-default hover:bg-background-muted hover:text-text-link-hover",variant:"secondary",children:[jsxRuntime.jsx(U,{name:"CalendarBlank",size:18}),!v&&jsxRuntime.jsx("span",{className:"ml-2 hidden md:block",children:`${W(e.after)} - ${W(e.before,-1)}`})]}),jsxRuntime.jsx(lt,{className:"w-auto p-3",disableGroup:true,children:jsxRuntime.jsx(Pi,{"aria-label":"Date range calendar",value:R,onChange:A})})]}),!v&&jsxRuntime.jsx(ie,{variant:"ghost",size:"md",onPress:B,children:"Reset"})]}),$=m<600;return jsxRuntime.jsx("div",{ref:f,className:tailwindMerge.twMerge("flex w-full flex-wrap items-center justify-between gap-4",p),children:$?jsxRuntime.jsxs("div",{className:"flex w-full justify-between",children:[jsxRuntime.jsxs("div",{className:"flex items-center",children:[i&&K,a&&v!==void 0&&jsxRuntime.jsx(qn,{selectedKey:v,onSelectionChange:V,items:z,size:"md","aria-label":"Select Date Range",children:P=>jsxRuntime.jsx(nr,{id:P.id,size:"md",children:P.label},P.id)})]}),jsxRuntime.jsx("div",{className:"flex items-center",children:n&&r&&j})]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-4",children:[i&&K,a&&v!==void 0&&jsxRuntime.jsx(td,{options:l.map(P=>({id:P.id,label:P.label})),value:v,onChange:V,size:"sm",variant:"secondary","aria-label":"Select Date Range"})]}),jsxRuntime.jsx("div",{className:"flex items-center",children:n&&r&&j})]})})}var MD=1440*60*1e3,DD=6e4,xa=(e,t)=>({startMs:t-e*MD,endMs:t}),Ri=e=>({after:new Date(e.startMs),before:new Date(e.endMs)});function S0({source:e,initialRange:t,viewportEnd:r,yFormatter:o,yDomain:n,referenceLines:a,emptyState:i,presetRanges:s,tierToWindow:c,windowSizeOptions:l,height:d=360,hint:u,dataBounds:p,children:m}){let[g,f]=He.useState(900),x=p?.endMs,[b,h]=He.useState(()=>x??Date.now());He.useEffect(()=>{if(x!=null){h(x);return}h(Date.now());let oe=setInterval(()=>h(Date.now()),DD);return ()=>clearInterval(oe)},[x]);let y=r?.getTime()??x,v=t?.days??30,S=He.useMemo(()=>xa(v,y??Date.now()),[v,y]),w=b,k=He.useMemo(()=>({startMs:p?.startMs??0,endMs:b}),[p?.startMs,b]),L=oe=>{let ee=Math.min(oe.endMs-oe.startMs,k.endMs-k.startMs),se=Math.max(Math.min(oe.endMs,k.endMs),k.startMs+ee);return {startMs:se-ee,endMs:se}},[R,D]=He.useState(null),[V,A]=He.useState(null),T=R??S,N=rp({fetchTile:e.fetchTile,ladder:e.ladder,nativeMs:e.nativeMs,initialViewport:S,widthPx:g,maxFutureMs:w,tileCostSeriesCount:e.tileCostSeriesCount,resetKey:e.resetKey}),B=He.useMemo(()=>[{id:"5y",label:"5 years",getRange:()=>Ri(xa(5*365,y??Date.now()))},{id:"year",label:"Year",getRange:()=>Ri(xa(365,y??Date.now()))},{id:"month",label:"Month",getRange:()=>Ri(xa(30,y??Date.now()))},{id:"week",label:"Week",getRange:()=>Ri(xa(7,y??Date.now()))},{id:"day",label:"24h",getRange:()=>Ri(xa(1,y??Date.now()))}],[y]),W=s??B,O=()=>{if(V&&"presetId"in V){let oe=W.find(ee=>ee.id===V.presetId);if(oe){let ee=oe.getRange();return {startMs:ee.after.getTime(),endMs:ee.before.getTime()}}}return V&&"range"in V?V.range:xa(v,y??Date.now())},{line:z,coverage:j,renderTier:K,targetTier:$,isFallback:P,isStale:M}=N.series,G=K?K.bucketMs*1.5:0,I=oe=>oe==null?"\u2014":new Date(oe).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),C=(oe,ee)=>{let se=ee-oe<1728e5?{month:"short",day:"numeric",hour:"numeric",minute:"2-digit"}:{month:"short",day:"numeric",year:"numeric"},ue=new Intl.DateTimeFormat("en-US",se);return `${ue.format(new Date(oe))} \u2013 ${ue.format(new Date(ee))}`},H=N.viewport.startMs!==T.startMs||N.viewport.endMs!==T.endMs,Y=M||N.loading&&j.earliestMs==null,F=(N.viewport.endMs-N.viewport.startMs)*.03,_=!Y&&j.earliestMs!=null&&j.earliestMs>N.viewport.startMs+F,te=!N.loading&&j.earliestMs==null&&j.latestMs==null&&z.length===0&&!M,E=m({series:N.series,gapMs:G}),ae=He.isValidElement(E)&&E.type===He.Fragment?E.props.children:E;return jsxRuntime.jsxs("div",{className:"flex flex-col gap-3",children:[jsxRuntime.jsx(rd,{dateRange:Ri(N.viewport),onDateRangeChange:(oe,ee)=>{let se=L({startMs:oe.after.getTime(),endMs:oe.before.getTime()});A(ee?.presetId?{presetId:ee.presetId}:{range:se}),D(se),N.jumpTo(se);},windowSize:c[$.id],windowSizeOptions:l,lockWindowSize:true,presetRanges:W}),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:C(N.viewport.startMs,N.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:K?.id??$.id}),P&&jsxRuntime.jsxs("span",{className:"text-text-tertiary",children:[" \xB7 loading ",$.id]})]}),N.loading&&jsxRuntime.jsx("span",{className:"text-text-tertiary",children:"loading\u2026"}),_&&jsxRuntime.jsxs("span",{className:"text-text-tertiary",children:["showing available history from ",I(j.earliestMs)]}),!_&&!Y&&N.atDataStart&&jsxRuntime.jsx("span",{className:"text-text-tertiary",children:"no earlier data loaded"}),H&&jsxRuntime.jsx(ie,{variant:"ghost",size:"sm",onPress:()=>{let oe=L(O());D(oe),N.jumpTo(oe);},children:"\u27F2 Reset"})]}),jsxRuntime.jsx("div",{className:"relative overflow-hidden rounded-md border border-border-subtle",style:{height:d},children:te?jsxRuntime.jsx(_c,{title:i.title,description:i.description}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Qc,{viewport:N.viewport,panBounds:k,onViewportChange:N.onViewportChange,onPlotWidthChange:f,...o&&{yFormatter:o},...n&&{yDomain:n},...a&&{referenceLines:a},children:ae}),N.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"})]})}),u&&jsxRuntime.jsx("p",{className:"text-xs text-text-tertiary",children:u})]})}function LD(e,t,r){return {field:e,operator:t,value:r}}function AD(e,t="AND"){return {logic:t,conditions:e}}function Bs(){return {logic:"AND",conditions:[]}}function nd(e){return !e||e.conditions.length===0?true:e.conditions.every(t=>"conditions"in t?nd(t):false)}function ID(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=[],p=[];for(let m of s)m.operator==="in"&&Array.isArray(m.value)?d.push(...m.value):m.operator==="eq"?typeof m.value!="boolean"&&!Array.isArray(m.value)?d.push(m.value):p.push(m):["gte","gt","lte","lt"].includes(m.operator)?u.push({operator:m.operator,value:typeof m.value=="boolean"||Array.isArray(m.value)?String(m.value):m.value}):p.push(m);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 m=u.find(f=>f.operator==="gte"||f.operator==="gt"),g=u.find(f=>f.operator==="lte"||f.operator==="lt");if(m&&g){let f=m.operator==="gte"?"\u2265":">",x=g.operator==="lte"?"\u2264":"<";a.push({id:`${i}-range`,label:l,value:`${f} ${m.value} and ${x} ${g.value}`});}else for(let f of u){let x;f.operator==="gte"?x="\u2265":f.operator==="gt"?x=">":f.operator==="lte"?x="\u2264":x="<",a.push({id:`${i}-${f.operator}`,label:l,value:`${x} ${f.value}`});}}for(let m of p){let g;m.operator==="neq"?g=`\u2260 ${m.value}`:m.operator==="contains"?g=`contains "${m.value}"`:m.operator==="startsWith"?g=`starts with "${m.value}"`:m.operator==="endsWith"?g=`ends with "${m.value}"`:g=String(m.value),a.push({id:`${i}-${m.operator}`,label:l,value:g});}}return a}function Tn(e,t){let r=e||Bs();return {...r,conditions:[...r.conditions,t]}}function ya(e,t){if(!e)return Bs();let r=e.conditions.filter(o=>"conditions"in o?ya(o,t).conditions.length>0:o.field!==t);return {...e,conditions:r}}function va(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 Vs({count:e,label:t="results",isLoading:r=false,className:o=""}){if(r)return jsxRuntime.jsx("div",{className:`flex items-center ${o}`,children:jsxRuntime.jsx(J,{width:80,height:16})});let n=t.endsWith("s")?t.slice(0,-1):t,a=e===1?n:t;return jsxRuntime.jsxs("div",{className:`text-sm text-text-secondary whitespace-nowrap ${o}`,children:[e.toLocaleString()," ",a]})}var zD=e=>{let t=Wt({isInvalid:e.isInvalid,isDisabled:e.isDisabled,isFocused:e.isFocused,transparent:e.transparent,size:e.size}),r=[e.showSearchIcon?"":"pl-3",e.isClearable&&e.hasValue||e.isPassword?"pr-8":"pr-3"].join(" ");return tailwindMerge.twMerge(t,r,e.className)};function Gr({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,transparent:i,showSearchIcon:s,isClearable:c,onClear:l,type:d,validationResult:u,reserveErrorSpace:p=true,isLoading:m=false,descriptionPlacement:g="below",...f}){let[x,b]=He__namespace.default.useState(false),{isFocused:h,handleFocus:y,handleBlur:v}=Vr(),S=d==="password",w=kl(m,300);return jsxRuntime.jsx(reactAriaComponents.TextField,{...f,isRequired:a,className:Ne(f.className,"group flex flex-col"),children:({isDisabled:k,isInvalid:L})=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(ze,{size:o,tooltip:n,description:g==="tooltip"||g==="inline"?t:void 0,descriptionPlacement:g,isRequired:a,children:e}),jsxRuntime.jsxs(vt,{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 R={sm:14,md:16,lg:18,xl:20}[o];return w?jsxRuntime.jsx(Io,{size:R,color:"text-text-secondary"}):jsxRuntime.jsx(U,{name:"MagnifyingGlass",size:R,className:`transition-colors ${h?"text-action-brand":"text-text-secondary"}`})})()}),jsxRuntime.jsx(tc,{size:o,disabled:k,type:S?x?"text":"password":d,name:f.name,autoComplete:f.autoComplete,value:f.value,defaultValue:f.defaultValue,placeholder:f.placeholder,onFocus:R=>y(R,f.onFocus),onBlur:R=>v(R,f.onBlur),onChange:R=>f.onChange?.(R.target.value),style:s?{paddingLeft:{sm:28,md:32,lg:36,xl:37}[o]}:void 0,className:zD({isInvalid:L,isDisabled:k,isFocused:h,size:o,transparent:i,showSearchIcon:s,isClearable:c,hasValue:!!f.value,isPassword:S,className:typeof f.className=="string"?f.className:void 0})}),c&&f.value&&!k&&jsxRuntime.jsx(ds,{onClick:()=>{l?l():f.onChange&&f.onChange("");},size:o}),S&&!k&&jsxRuntime.jsx("button",{type:"button",onClick:()=>b(!x),className:"absolute right-3 top-1/2 -translate-y-1/2 transform text-text-secondary hover:text-text-primary","aria-label":x?"Hide password":"Show password",onMouseDown:R=>{R.preventDefault(),R.stopPropagation();},children:jsxRuntime.jsx(U,{name:x?"EyeSlash":"Eye",size:o==="sm"?16:20,className:"text-text-primary"})})]}),p?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(be,{size:o,children:r}):typeof r=="function"&&u?jsxRuntime.jsx(be,{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(be,{size:o,className:"mt-1",children:r}):typeof r=="function"&&u?jsxRuntime.jsx(be,{size:o,className:"mt-1",children:r(u)}):t&&g==="below"?jsxRuntime.jsx(ke,{size:o,className:"mt-1",children:t}):null})]})})}function Ca({value:e,onChange:t,onClear:r,placeholder:o="Search...",size:n="sm",className:a="",isLoading:i=false}){return jsxRuntime.jsx("div",{className:`flex-1 min-w-0 sm:max-w-sm ${a}`,children:jsxRuntime.jsx(Gr,{value:e,onChange:t,placeholder:o,showSearchIcon:true,isClearable:!!e&&!!r,onClear:r,size:n,"aria-label":o,reserveErrorSpace:false,isLoading:i})})}function Os({value:e,options:t,onChange:r,direction:o,onDirectionChange:n,showLabel:a=true,size:i="sm",className:s="",compact:c=false}){let[l,d]=He.useState(false),u=o!==void 0&&n!==void 0,p=t.find(m=>m.value===e);return c?jsxRuntime.jsxs("div",{className:`flex items-center gap-2 ${s}`,children:[jsxRuntime.jsx(ie,{variant:"secondary",size:i,icon:"ArrowsDownUp","aria-label":`Sort by: ${p?.label||"Select"}`,onPress:()=>d(true)}),jsxRuntime.jsx(ct,{isOpen:l,onClose:()=>d(false),title:"Sort by",contentPadding:false,children:jsxRuntime.jsx(reactAriaComponents.ListBox,{items:t.map(m=>({id:m.value,label:m.label,value:m.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:m=>{let g=Array.from(m)[0];g!=null&&(r(g),d(false));},children:m=>jsxRuntime.jsx(nr,{id:m.id,textValue:m.label,children:jsxRuntime.jsx("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap min-w-0 flex-1",children:m.label})},m.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(qn,{selectedKey:e,onSelectionChange:m=>r(m),size:i,className:"min-w-32",items:t.map(m=>({id:m.value,label:m.label,value:m.value})),renderItem:m=>m.label,"aria-label":"Sort by",reserveErrorSpace:false}),u&&jsxRuntime.jsx(ie,{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 P0({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:p,customControls:m,actions:g,interactionMode:f="auto",sticky:x,stickyTop:b="0",zIndex:h=10,className:y="",style:v}){let S=r.length>0;if(!(e||S||a||c||l||d||u||p||m||g||i))return null;let k=x?"sticky bg-background-surface":"",L=x?{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 ${k} ${y}`,style:{...v,...L},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(Vs,{count:l.count,label:l.label,isLoading:l.isLoading}),l&&c&&jsxRuntime.jsx("div",{className:"h-4 w-px bg-border-default"}),c&&jsxRuntime.jsx(Os,{value:c.value,options:c.options,onChange:c.onChange,showLabel:c.showLabel,direction:c.direction,onDirectionChange:c.onDirectionChange}),u?jsxRuntime.jsx(ie,{variant:"secondary",size:"sm",icon:"Columns",onClick:u,children:"Columns"}):p,S&&o&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[r.slice(0,s).map(R=>jsxRuntime.jsxs(xo,{variant:"primary",size:"sm",onRemove:()=>o(R.id),isRemovable:true,children:[R.label,": ",R.value]},R.id)),r.length>s&&a&&jsxRuntime.jsxs(ie,{variant:"ghost",size:"sm",onClick:a,className:"text-text-secondary hover:text-text-primary whitespace-nowrap",children:["+",r.length-s," more"]}),n&&jsxRuntime.jsx(ie,{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:m||jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[g&&g.items.length>0&&jsxRuntime.jsx(jsxRuntime.Fragment,{children:g.items.map(R=>jsxRuntime.jsx(ie,{variant:R.variant||"secondary",size:"sm",icon:R.icon,onPress:R.onClick,isDisabled:R.disabled,children:R.label},R.id))}),e&&jsxRuntime.jsx("div",{className:"w-64",children:jsxRuntime.jsx(Ca,{value:e.value,onChange:e.onChange,onClear:e.onClear,placeholder:e.placeholder,isLoading:e.isLoading})}),a&&jsxRuntime.jsx(ie,{variant:"secondary",size:"sm",icon:"Sliders",badgeNumber:r.length>0?r.length:void 0,onClick:a,children:"Filters"}),i&&jsxRuntime.jsx(ie,{variant:"secondary",size:"sm",icon:"Upload",onClick:i.onClick,isDisabled:i.isDisabled,children:i.label})]})})]}),jsxRuntime.jsxs("div",{className:"@[640px]:hidden",children:[jsxRuntime.jsx("div",{className:"flex flex-col gap-3 mb-3",children:jsxRuntime.jsx("div",{className:"flex items-center gap-3",children:m?jsxRuntime.jsx("div",{className:"flex-1",children:m}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[g&&g.items.length>0&&jsxRuntime.jsx(ti,{items:g.items.map(R=>({id:R.id,name:R.label,iconName:R.icon,variant:R.variant==="destructive"?"destructive":"primary",disabled:R.disabled,onAction:R.onClick})),align:"left",size:"sm",children:jsxRuntime.jsx(ie,{variant:"secondary",size:"sm",icon:"DotsThreeVertical","aria-label":g.menuLabel||"Actions"})}),e&&jsxRuntime.jsx("div",{className:"flex-1",children:jsxRuntime.jsx(Ca,{value:e.value,onChange:e.onChange,onClear:e.onClear,placeholder:e.placeholder,isLoading:e.isLoading})}),a&&jsxRuntime.jsx(ie,{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(ie,{variant:"secondary",size:"sm",icon:"Upload",onClick:i.onClick,isDisabled:i.isDisabled,children:i.label})]})})}),jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-3",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[d,l&&jsxRuntime.jsx(Vs,{count:l.count,label:l.label,isLoading:l.isLoading})]}),jsxRuntime.jsx("div",{className:"flex items-center gap-2",children:c&&jsxRuntime.jsx(Os,{value:c.value,options:c.options,onChange:c.onChange,showLabel:false,direction:c.direction,onDirectionChange:c.onDirectionChange,compact:f!=="desktop"})})]})]})]})}function R0({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),p=u>0,m=a==="button"&&!!o,g=a==="chips"&&i&&!!o;if(!l&&!m&&!g)return null;let f=m&&jsxRuntime.jsxs(ie,{variant:"secondary",size:s,onClick:o,className:"whitespace-nowrap",children:[e.length," ",e.length===1?"filter":"filters"]}),x=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[g&&jsxRuntime.jsx(ie,{variant:"secondary",size:s,icon:"Sliders",onClick:o,className:"whitespace-nowrap",children:"Filters"}),l&&d.map(h=>jsxRuntime.jsxs(xo,{variant:"secondary",size:s,onRemove:()=>t(h.id),isRemovable:true,children:[h.label,": ",h.value]},h.id)),l&&p&&o&&jsxRuntime.jsxs(ie,{variant:"ghost",size:s,onClick:o,className:"text-text-secondary hover:text-text-primary whitespace-nowrap",children:["+",u," more"]}),l&&r&&jsxRuntime.jsx(ie,{variant:"ghost",size:s,onClick:r,className:"text-text-secondary hover:text-text-primary whitespace-nowrap",children:"Clear all"})]}),b=a==="button"?f:x;return jsxRuntime.jsx("div",{className:`flex flex-wrap items-center gap-2 ${c}`,children:b})}function D0({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,...p}){let[m,g]=He.useState(false),f=x=>{p.onChange&&x&&p.onChange(x),g(false);};return jsxRuntime.jsxs(reactAriaComponents.DateField,{...p,isDisabled:i,isRequired:a,isInvalid:s,className:Ne(u,"flex flex-col gap-1"),children:[e&&jsxRuntime.jsx(ze,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(vt,{children:jsxRuntime.jsxs("div",{className:"relative w-full",children:[jsxRuntime.jsx(zs,{size:o,isDisabled:i,isInvalid:s,hasCalendar:c}),c&&!i&&jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{isOpen:m,onOpenChange:g,children:[jsxRuntime.jsx(ie,{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(U,{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(ai,{value:p.value,onChange:f,minValue:p.minValue,maxValue:p.maxValue,isDisabled:i,isReadOnly:p.isReadOnly,isDateUnavailable:p.isDateUnavailable})})})]})]})}),l?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(be,{size:o,children:r}):typeof r=="function"&&d?jsxRuntime.jsx(be,{size:o,children:r(d)}):t?jsxRuntime.jsx(ke,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(be,{size:o,className:"mt-1",children:r}):typeof r=="function"&&d?jsxRuntime.jsx(be,{size:o,className:"mt-1",children:r(d)}):t?jsxRuntime.jsx(ke,{size:o,className:"mt-1",children:t}):null})]})}function _D({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 zs({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:_D({isPlaceholder:i.isPlaceholder,isDisabled:!i.isEditable||t,size:e})})})}function sd({label:e,description:t,errorMessage:r,...o}){return jsxRuntime.jsxs(reactAriaComponents.DateRangePicker,{...o,className:Ne(o.className,"group flex flex-col gap-1"),children:[e&&jsxRuntime.jsx(ze,{children:e}),jsxRuntime.jsxs(ih,{className:"w-auto min-w-[208px]",children:[jsxRuntime.jsx(zs,{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(zs,{slot:"end",className:"flex-1 px-2 py-1.5 text-sm"}),jsxRuntime.jsx(ie,{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(be,{children:r}):null,jsxRuntime.jsx(lt,{children:jsxRuntime.jsx(Pi,{})})]})}var l3=e=>{let t=Wt({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 Hs({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=He.useId(),{isFocused:p,handleFocus:m,handleBlur:g}=Vr();return jsxRuntime.jsx(reactAriaComponents.NumberField,{...d,id:u,isRequired:a,className:Ne(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:x})=>jsxRuntime.jsxs("div",{className:"flex flex-col gap-1",children:[e&&jsxRuntime.jsx(ze,{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=>m(h,d.onFocus),onBlur:h=>g(h,d.onBlur),className:l3({isInvalid:x||!!r,isDisabled:f,isFocused:p,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(U,{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(U,{name:"CaretDown",size:14})})]})]})}),c?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:r?jsxRuntime.jsx(be,{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(be,{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 Rf={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 u3({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=Rf[r].track,a=Je,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 p3({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=Rf[r].handle;return [o,n,e?"translate-x-[100%]":"translate-x-0",t?"forced-colors:outline-[GrayText]":""].filter(Boolean).join(" ")}function ld({children:e,variant:t="primary",size:r="md",...o}){return jsxRuntime.jsx(reactAriaComponents.Switch,{...o,className:Ne(o.className,`group flex items-center gap-2 ${Rf[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:u3({...n,size:r}),children:jsxRuntime.jsx("span",{className:p3({...n,size:r})})}),e]})})}function A0(e){return new Intl.NumberFormat("en-US").format(e)}function I0({isOpen:e,onClose:t,facetConfigs:r,facetCounts:o={},currentFilters:n,onApply:a,onClear:i,title:s="Filters",resultCount:c}){let[l,d]=He.useState(n),[u,p]=He.useState({}),[m,g]=He.useState({}),[f,x]=He.useState(null),{isMobile:b}=Qt(),h=He.useMemo(()=>r.some(C=>C.group),[r]),{groups:y,ungroupedFacets:v,facetsByGroup:S}=He.useMemo(()=>{let C=new Set,H=[],Y={};for(let F of r)F.group?(C.has(F.group)||(C.add(F.group),Y[F.group]=[]),Y[F.group].push(F)):H.push(F);return {groups:Array.from(C),ungroupedFacets:H,facetsByGroup:Y}},[r]);He.useEffect(()=>{e&&(d(n),p({}),g({}),x(!b&&y.length>0?y[0]:null));},[e,n,y,b]);let w=He.useMemo(()=>!l||nd(l)?0:va(l).length,[l]),k=()=>{a(l),t();},L=()=>{let C=Bs();d(C),i?i():a(C),t();},R=C=>{if(!l)return [];if(!va(l).includes(C))return [];let Y=[];function F(_){if(_)for(let te of _.conditions)"conditions"in te?F(te):te.field===C&&te.operator==="in"&&Array.isArray(te.value)&&Y.push(...te.value.map(String));}return F(l),Y},D=(C,H,Y)=>{let F=ya(l,C);H!==void 0&&(F=Tn(F,{field:C,operator:"gte",value:H})),Y!==void 0&&(F=Tn(F,{field:C,operator:"lte",value:Y})),d(F);},V=C=>{if(!l)return;let H;function Y(F){if(F)for(let _ of F.conditions)"conditions"in _?Y(_):_.field===C&&_.operator==="eq"&&typeof _.value=="boolean"&&(H=_.value);}return Y(l),H},A=(C,H)=>{let Y=ya(l,C);H!==void 0&&(Y=Tn(Y,{field:C,operator:"eq",value:H})),d(Y);},T=(C,H,Y)=>{let F=ya(l,C);H&&(F=Tn(F,{field:C,operator:"gte",value:H.toString()})),Y&&(F=Tn(F,{field:C,operator:"lte",value:Y.toString()})),d(F);},N=C=>{let H=S[C]||[],Y=l?va(l):[];return H.filter(F=>Y.includes(F.field)).length},B="pr-9 bg-background-muted/50",W="border-t border-border-muted",O="text-sm font-medium text-text-link-default",z=C=>jsxRuntime.jsx("span",{className:O,children:C}),j=C=>{let H=o[C.field]||{},Y=u[C.field]||"",F=[];C.values?F=C.values.map(E=>({value:String(E.value),label:E.label,count:H[String(E.value)]})):F=Object.entries(H).map(([E,ae])=>({value:E,label:E,count:ae}));let _=F.length;if(Y){let E=Y.toLowerCase();F=F.filter(ae=>ae.label.toLowerCase().includes(E));}F.sort((E,ae)=>E.count!==void 0&&ae.count!==void 0&&ae.count!==E.count?ae.count-E.count:E.label.localeCompare(ae.label));let te=C.type||"string";if(te==="string"||!C.type){let E=R(C.field),ae=C.searchThreshold??10,oe=C.maxVisibleOptions??50,ee=m[C.field]??false,se=ee||F.length<=oe?F:F.slice(0,oe),ue=F.length>oe&&!ee;return jsxRuntime.jsxs(mn,{id:C.field,children:[jsxRuntime.jsx(fn,{title:C.label,description:C.description,className:B,endContent:E.length>0?z(`${E.length} selected`):void 0}),jsxRuntime.jsx(gn,{className:W,children:jsxRuntime.jsxs("div",{className:"space-y-4 pt-4 pb-4",children:[_>ae&&jsxRuntime.jsx(Ca,{value:Y,onChange:xe=>p(Ve=>({...Ve,[C.field]:xe})),onClear:()=>p(xe=>({...xe,[C.field]:""})),placeholder:`Search ${C.label.toLowerCase()}...`,size:"sm",className:"w-full !max-w-none pr-4"}),jsxRuntime.jsx(Cm,{value:E,onChange:xe=>{let Ve=ya(l,C.field);xe.length>0&&(Ve=Tn(Ve,{field:C.field,operator:"in",value:xe})),d(Ve);},children:jsxRuntime.jsx("div",{className:"space-y-1.5",children:se.map(xe=>jsxRuntime.jsx("div",{className:"rounded-md py-2 pr-4 transition-colors hover:bg-background-hover",children:jsxRuntime.jsx(_n,{value:xe.value,children:jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-3 flex-1",children:[C.renderLabel?C.renderLabel(xe.value,xe.label):jsxRuntime.jsx("span",{className:"text-sm font-medium text-text-primary",children:xe.label}),xe.count!==void 0&&jsxRuntime.jsx("span",{className:"text-xs font-medium text-text-secondary tabular-nums",children:A0(xe.count)})]})})},xe.value))})}),ue&&jsxRuntime.jsx("div",{className:"pt-2 border-t border-border-muted",children:jsxRuntime.jsxs(ie,{variant:"ghost",size:"sm",onPress:()=>g(xe=>({...xe,[C.field]:true})),className:"w-full",children:["Show all ",F.length," options"]})}),ee&&F.length>oe&&jsxRuntime.jsx("div",{className:"pt-2 border-t border-border-muted",children:jsxRuntime.jsx(ie,{variant:"ghost",size:"sm",onPress:()=>g(xe=>({...xe,[C.field]:false})),className:"w-full",children:"Show less"})})]})})]},C.field)}if(te==="number"){let E,ae,oe=se=>{if(se)for(let ue of se.conditions)"conditions"in ue?oe(ue):ue.field===C.field&&(ue.operator==="gte"&&typeof ue.value=="number"&&(E=ue.value),ue.operator==="lte"&&typeof ue.value=="number"&&(ae=ue.value));};oe(l);let ee=E!==void 0||ae!==void 0;return jsxRuntime.jsxs(mn,{id:C.field,children:[jsxRuntime.jsx(fn,{title:C.label,description:C.description,className:B,endContent:ee?z(E!==void 0&&ae!==void 0?`${E} - ${ae}`:E!==void 0?`\u2265 ${E}`:`\u2264 ${ae}`):void 0}),jsxRuntime.jsx(gn,{className:W,children:jsxRuntime.jsxs("div",{className:"grid grid-cols-2 gap-4 pt-4 pb-4",children:[jsxRuntime.jsx(Hs,{label:"Min",value:E,onChange:se=>D(C.field,se,ae)},`${C.field}-min`),jsxRuntime.jsx(Hs,{label:"Max",value:ae,onChange:se=>D(C.field,E,se)},`${C.field}-max`)]})})]},C.field)}if(te==="boolean"){let E=V(C.field);return jsxRuntime.jsxs(mn,{id:C.field,children:[jsxRuntime.jsx(fn,{title:C.label,description:C.description,className:B,endContent:E!==void 0?z(E?"Yes":"No"):void 0}),jsxRuntime.jsx(gn,{className:W,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:E!==void 0?E?"Enabled":"Disabled":"No filter applied"}),jsxRuntime.jsx(ld,{size:"lg",isSelected:E??false,onChange:ae=>A(C.field,ae?true:void 0),children:E?"Yes":"No"})]})})]},C.field)}if(te==="date"){let E,ae,oe=Ve=>{if(Ve)for(let tt of Ve.conditions)"conditions"in tt?oe(tt):tt.field===C.field&&(tt.operator==="gte"&&(E=String(tt.value)),tt.operator==="lte"&&(ae=String(tt.value)));};oe(l);let ee=E!==void 0||ae!==void 0,se=Ve=>{if(Ve)try{return /^\d{4}-\d{2}-\d{2}$/.test(Ve)?cs(Ve):void 0}catch{return}},ue=se(E),xe=se(ae);return jsxRuntime.jsxs(mn,{id:C.field,children:[jsxRuntime.jsx(fn,{title:C.label,description:C.description,className:B,endContent:ee?z("Date range selected"):void 0}),jsxRuntime.jsx(gn,{className:W,children:jsxRuntime.jsx("div",{className:"pt-4 pb-4",children:jsxRuntime.jsx(sd,{label:"Date Range",value:ue&&xe?{start:ue,end:xe}:void 0,onChange:Ve=>{Ve?T(C.field,Ve.start,Ve.end):T(C.field,void 0,void 0);}})})})]},C.field)}return null},K=()=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[v.map(C=>{let Y=(l?va(l):[]).includes(C.field);return jsxRuntime.jsxs("button",{type:"button",onClick:()=>x(`__ungrouped__${C.field}`),className:"flex items-center justify-between px-6 py-3 text-left hover:bg-background-hover border-b border-border-muted transition-colors",children:[jsxRuntime.jsx("span",{className:"text-sm font-medium text-text-primary",children:C.label}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[Y&&jsxRuntime.jsx("span",{className:O,children:"1 active"}),jsxRuntime.jsx(U,{name:"CaretRight",size:"sm",className:"text-text-secondary"})]})]},C.field)}),y.map(C=>{let H=N(C);return jsxRuntime.jsxs("button",{type:"button",onClick:()=>x(C),className:"flex items-center justify-between px-6 py-3 text-left hover:bg-background-hover border-b border-border-muted transition-colors",children:[jsxRuntime.jsx("span",{className:"text-sm font-medium text-text-primary",children:C}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[H>0&&jsxRuntime.jsxs("span",{className:O,children:[H," active"]}),jsxRuntime.jsx(U,{name:"CaretRight",size:"sm",className:"text-text-secondary"})]})]},C)})]}),$=C=>{if(C.startsWith("__ungrouped__")){let Y=C.replace("__ungrouped__",""),F=v.find(_=>_.field===Y);return F?jsxRuntime.jsx(ii,{variant:"contained",density:"comfortable",showDividers:true,defaultExpandedKeys:[F.field],children:j(F)}):null}let H=S[C]||[];return H.length===0?null:jsxRuntime.jsx(ii,{variant:"contained",density:"comfortable",showDividers:true,defaultExpandedKeys:[H[0].field],children:H.map(Y=>j(Y))})},P=()=>{if(f){let C=f.startsWith("__ungrouped__")&&v.find(H=>H.field===f.replace("__ungrouped__",""))?.label||f;return jsxRuntime.jsxs("div",{className:"flex flex-col h-full",children:[jsxRuntime.jsxs("button",{type:"button",onClick:()=>x(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(U,{name:"CaretLeft",size:"sm",className:"text-text-secondary"}),jsxRuntime.jsx("span",{className:"text-sm font-medium text-text-primary",children:C})]}),jsxRuntime.jsx("div",{className:"flex-1 overflow-y-auto",children:$(f)})]})}return K()},M=()=>jsxRuntime.jsxs("div",{className:"flex h-full",children:[jsxRuntime.jsxs("div",{className:"w-48 flex-shrink-0 border-r border-border-muted overflow-y-auto bg-background-muted/30",children:[v.map(C=>{let Y=(l?va(l):[]).includes(C.field),F=f===`__ungrouped__${C.field}`;return jsxRuntime.jsxs("button",{type:"button",onClick:()=>x(`__ungrouped__${C.field}`),className:`flex items-center justify-between w-full px-4 py-3 text-left border-b border-border-muted transition-colors ${F?"bg-background-selected":"hover:bg-background-hover"}`,children:[jsxRuntime.jsx("span",{className:`text-sm truncate ${F?"font-semibold text-text-primary":"font-medium text-text-primary"}`,children:C.label}),Y&&jsxRuntime.jsx("span",{className:"w-2 h-2 rounded-full bg-action-primary flex-shrink-0 ml-2"})]},C.field)}),y.map(C=>{let H=N(C),Y=f===C;return jsxRuntime.jsxs("button",{type:"button",onClick:()=>x(C),className:`flex items-center justify-between w-full px-4 py-3 text-left border-b border-border-muted transition-colors ${Y?"bg-background-selected":"hover:bg-background-hover"}`,children:[jsxRuntime.jsx("span",{className:`text-sm truncate ${Y?"font-semibold text-text-primary":"font-medium text-text-primary"}`,children:C}),H>0&&jsxRuntime.jsx("span",{className:"w-2 h-2 rounded-full bg-action-primary flex-shrink-0 ml-2"})]},C)})]}),jsxRuntime.jsx("div",{className:"flex-1 overflow-y-auto",children:f?$(f):jsxRuntime.jsx("div",{className:"flex items-center justify-center h-full text-text-secondary text-sm",children:"Select a category to view filters"})})]}),G=()=>jsxRuntime.jsx(ii,{variant:"contained",density:"comfortable",showDividers:true,defaultExpandedKeys:[r[0].field],children:r.map(C=>j(C))});return jsxRuntime.jsx(Ar,{isOpen:e,onClose:t,title:h&&b&&f?f.startsWith("__ungrouped__")?v.find(C=>C.field===f.replace("__ungrouped__",""))?.label||s:f:w>0?`${s} (${w} active)`:s,hideCloseIcon:false,primaryAction:{label:"Apply filters",onPress:k,variant:"primary"},secondaryAction:{label:"Clear all",onPress:L},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:A0(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?P():M():G()})}function Df(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 Ur(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 Me(e="left",t){return tailwindMerge.twMerge("flex items-center gap-1 min-w-0 overflow-hidden",Df(e),t)}function ud(e,t="\u2014"){return e==null||e===""?t:String(e)}var Nn={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 dr(e="normal"){return {strong:Nn.lg,high:Nn.lg,normal:Nn.md,low:Nn.sm}[e]}function Ce(e,t){return typeof e=="function"?e(t):e}function F0(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 B0(e){return e?"success":"neutral"}function pd(e,t=false){return t?e>0?"text-feedback-success-text":e<0?"text-feedback-error-text":"text-text-primary":"text-text-primary"}function Ef(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 ko(e,t,r,o="hover",n="secondary",a,i){if(!t)return e;let s=typeof t=="function"&&r?t(r):t,c=Ef(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 V0({row:e,context:t,actions:r,align:o="right",size:n="sm"}){let{isLoading:a}=t;if(a)return jsxRuntime.jsx(J,{className:Nn.sm});let s=(typeof r=="function"?r(e):r).filter(l=>!Ce(l.hidden,e));if(s.length===0)return null;let c=Me(o);return jsxRuntime.jsx("div",{className:c,children:s.map(l=>{let d=Ce(l.disabled,e);return l.variant==="icon"||!l.label?jsxRuntime.jsx(ie,{variant:"icon",size:n,onPress:()=>{l.onClick(e);},isDisabled:d,"aria-label":l.label||l.id,children:jsxRuntime.jsx(U,{name:l.icon||"DotsThree",size:n==="sm"?16:20})},l.id):jsxRuntime.jsxs(ie,{variant:l.variant||"secondary",size:n,onPress:()=>{l.onClick(e);},isDisabled:d,children:[l.icon&&jsxRuntime.jsx(U,{name:l.icon,size:n==="sm"?14:16}),l.label]},l.id)})})}function z0({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:p,maxVisible:m=2,maxLabelLength:g}){let{isLoading:f}=r,x=(w,k)=>{if(!g||w.length<=g)return jsxRuntime.jsx(jsxRuntime.Fragment,{children:w});let L=w.slice(0,g-1)+"\u2026";return jsxRuntime.jsx(or,{content:k,children:jsxRuntime.jsx("span",{children:L})})};if(f)return jsxRuntime.jsx(J,{className:dr("normal")});if(e==null||e==="")return jsxRuntime.jsx("div",{className:Me(d,"text-text-secondary"),children:u});if(Array.isArray(e)&&e.length===0)return jsxRuntime.jsx("div",{className:Me(d,"text-text-secondary"),children:u});let b=Me(d,p);if(Array.isArray(e)){let w=e.slice(0,m),k=e.slice(m),L=k.length>0;return jsxRuntime.jsx("div",{className:b,children:jsxRuntime.jsxs("div",{className:"flex items-center gap-1",children:[w.map((R,D)=>{let V=typeof o=="function"?o(R,t):o,A=typeof n=="function"?n(R,t):n!==void 0?n:String(R),T=typeof s=="function"?s(R,t):s,N=typeof l=="function"?l(R,t):l;return jsxRuntime.jsx("span",{className:"flex-shrink-0 whitespace-nowrap",children:jsxRuntime.jsx(at,{variant:V,size:a,shape:i,dot:T,dotPosition:c,dotPulse:N,children:x(A,A)})},D)}),L&&jsxRuntime.jsx(or,{content:k.join(", "),children:jsxRuntime.jsx("span",{className:"flex-shrink-0 whitespace-nowrap",children:jsxRuntime.jsxs(at,{variant:"neutral",size:a,shape:i,children:["+",k.length]})})})]})})}let h=typeof o=="function"?o(e,t):o,y=typeof n=="function"?n(e,t):n!==void 0?n:String(e),v=typeof s=="function"?s(e,t):s,S=typeof l=="function"?l(e,t):l;return jsxRuntime.jsx("div",{className:b,children:jsxRuntime.jsx(at,{variant:h,size:a,shape:i,dot:v,dotPosition:c,dotPulse:S,children:x(y,y)})})}function H0({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:dr(l)});let p=!!e;if(!p&&!s)return jsxRuntime.jsx("div",{className:Me(c,d)});let m=Me(c,d);switch(r){case "icon":return jsxRuntime.jsx("div",{className:m,children:jsxRuntime.jsx(U,{name:p?a:i,size:16,className:p?"text-feedback-success-text":"text-text-disabled"})});case "text":return jsxRuntime.jsx("div",{className:m,children:jsxRuntime.jsx("span",{className:Ur(l),children:p?o:n})});case "badge":return jsxRuntime.jsx("div",{className:m,children:jsxRuntime.jsx(at,{variant:p?"success":"neutral",size:"sm",children:p?o:n})});default:return null}}function G0({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:p,emphasis:m="normal",align:g="left",className:f,piiEntity:x}){let{isLoading:b}=t,h=Ce(r,e),y=Ce(o,e),v=Ce(n,e),S=Ce(a,e),w=Ce(c,e),k=typeof p=="function"?p(e):p,L=Ce(x,e),R=Me(g,f);return jsxRuntime.jsx("div",{className:R,children:jsxRuntime.jsx(mc,{firstName:h,lastName:y,email:v,avatarUrl:S,layout:i,size:s,href:w,LinkComponent:l,linkVariant:d,showEmail:u,badge:k,emphasis:m,isLoading:b,piiEntity:L})})}function U0({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 Y0({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:dr(s)});if(!e)return jsxRuntime.jsx("div",{className:Me(i,"text-text-secondary"),children:a});let p=e instanceof Date?e:new Date(e);if(isNaN(p.getTime()))return jsxRuntime.jsx("div",{className:Me(i,"text-text-secondary"),children:a});let m;switch(o){case "date":m=p.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"});break;case "time":m=p.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit"});break;case "datetime":m=p.toLocaleString("en-US",{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"});break;case "relative":m=S3(p);break;case "custom":m=n?p.toLocaleString("en-US",n):p.toISOString();break;default:m=p.toLocaleDateString();}let g=Me(i,tailwindMerge.twMerge(Ur(s),d)),f=Ce(c,t);return f?jsxRuntime.jsx("div",{className:g,children:ko(m,f,t,l)}):jsxRuntime.jsx("div",{className:g,children:m})}function S3(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"})}function md({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:p="normal",isLoading:m=false,className:g,piiEntity:f}){let[x,b]=He.useState(false),h=o||(r?T3(r):"DeviceMobile"),v={xs:{iconSize:28,logoSize:"w-7 h-7",gap:"gap-1.5",textSize:"text-xs",secondaryTextSize:"text-xs",iconInTextSize:12,skeletonIcon:28,skeletonText:80,skeletonSecondary:60},sm:{iconSize:32,logoSize:"w-8 h-8",gap:"gap-2",textSize:"text-sm",secondaryTextSize:"text-xs",iconInTextSize:14,skeletonIcon:32,skeletonText:96,skeletonSecondary:72},md:{iconSize:32,logoSize:"w-9 h-9",gap:"gap-3",textSize:"text-base",secondaryTextSize:"text-sm",iconInTextSize:16,skeletonIcon:36,skeletonText:128,skeletonSecondary:96},lg:{iconSize:40,logoSize:"w-10 h-10",gap:"gap-3",textSize:"text-lg",secondaryTextSize:"text-base",iconInTextSize:18,skeletonIcon:40,skeletonText:160,skeletonSecondary:120}}[i],S=n&&!x&&u,k={strong:"font-semibold text-text-primary",high:"font-semibold text-text-primary",normal:"text-text-primary",low:"text-text-secondary"}[p],L=({children:R,className:D})=>s?c?jsxRuntime.jsx(c,{href:s,className:D,children:R}):jsxRuntime.jsx(et,{href:s,variant:l,className:tailwindMerge.twMerge("hover:underline",D),asButton:false,children:R}):jsxRuntime.jsx("span",{className:D,children:R});if(m)return a==="inline"?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",v.gap,g),children:[jsxRuntime.jsx(J,{width:v.skeletonIcon,height:v.skeletonIcon,className:"flex-shrink-0 rounded"}),jsxRuntime.jsx(J,{width:v.skeletonText,height:v.skeletonIcon*.6})]}):jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",v.gap,g),children:[jsxRuntime.jsx(J,{width:v.skeletonIcon,height:v.skeletonIcon,className:"flex-shrink-0"}),jsxRuntime.jsxs("div",{className:"flex flex-col gap-1",children:[jsxRuntime.jsx(J,{width:v.skeletonText,height:16}),jsxRuntime.jsx(J,{width:v.skeletonSecondary,height:12})]})]});if(a==="inline"){let R=`${e} ${t}`;return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",v.gap,g),children:[jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-shrink-0 flex items-center justify-center rounded border border-border-muted",v.logoSize),children:S?jsxRuntime.jsx("img",{src:n,alt:`${e} logo`,className:"w-full h-full object-contain",onError:()=>b(true)}):jsxRuntime.jsx(U,{name:h,size:v.iconSize*.6,className:"text-text-secondary"})}),jsxRuntime.jsx(L,{className:tailwindMerge.twMerge("truncate leading-normal hover:text-text-primary",k,v.textSize,s&&"hover:underline hover:decoration-1 hover:underline-offset-4"),children:jsxRuntime.jsx("span",{"data-pii-type":f?"device-name":void 0,"data-pii-entity":f,children:R})})]})}return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center justify-start",v.gap,g),children:[u&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-shrink-0 flex items-center justify-center rounded border border-border-muted",v.logoSize),children:S?jsxRuntime.jsx("img",{src:n,alt:`${e} logo`,className:"w-full h-full object-contain",onError:()=>b(true)}):jsxRuntime.jsx(U,{name:h,size:v.iconSize*.6,className:"text-text-secondary"})}),jsxRuntime.jsxs("div",{className:"flex flex-col items-start min-w-0",children:[jsxRuntime.jsx(L,{className:tailwindMerge.twMerge("truncate leading-normal hover:text-text-primary",k,v.textSize,s&&"hover:underline hover:decoration-1 hover:underline-offset-4"),children:jsxRuntime.jsx("span",{"data-pii-type":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",v.secondaryTextSize),children:[d&&jsxRuntime.jsx(U,{name:h,size:v.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 T3(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 j0({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:p=true,emphasis:m="normal",align:g="left",className:f,piiEntity:x}){let{isLoading:b}=t,h=Ce(r,e),y=Ce(o,e),v=Ce(n,e),S=Ce(a,e),w=Ce(c,e),k=Ce(x,e),L=Me(g,f);return jsxRuntime.jsx("div",{className:L,children:jsxRuntime.jsx(md,{manufacturer:h,model:y,deviceType:v,logoUrl:S,layout:i,size:s,href:w,LinkComponent:l,linkVariant:d,showDeviceTypeIcon:u,showLogo:p,emphasis:m,isLoading:b,piiEntity:k})})}var Oee={charging:"percentage",discharging:"percentage",on:"kW",idle:void 0,off:void 0,heat:"temperature",cool:"temperature",auto:"temperature",eco:"temperature",unknown:void 0,connected:void 0,disconnected:void 0},N3=["charging","discharging","heat","cool","on","connected"],k3={unknown:"Unknown",on:"On",off:"Off",idle:"Idle",charging:"Charging",discharging:"Discharging",heat:"Heating",eco:"Eco Mode",cool:"Cooling",auto:"Auto",connected:"Connected",disconnected:"Disconnected"};function Lf(e){return N3.includes(e)}function Af(e){return k3[e]}function wa({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??Af(e),p=Lf(e);return jsxRuntime.jsxs(at,{variant:e,size:n,shape:a,dot:i??p,dotPulse:s??p,className:c?`w-28 justify-center ${l||""}`:l,...d,children:[r&&jsxRuntime.jsx(U,{name:r,size:n==="sm"?12:n==="md"?14:16}),u]})}var R3={importing:"Importing",exporting:"Exporting"};function q0(e){return R3[e]}function gd({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??q0(e),d=e==="exporting"?"ArrowUp":"ArrowDown",u=n==="sm"?12:n==="md"?14:16;return r?jsxRuntime.jsx(at,{variant:e,size:n,shape:a,className:`w-6 justify-center ${s||""}`,...c,children:jsxRuntime.jsx(U,{name:d,size:u})}):jsxRuntime.jsx(at,{variant:e,size:n,shape:a,className:i?`w-28 justify-center ${s||""}`:s,...c,children:l})}function bd({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:p}){if(i)return jsxRuntime.jsx(J,{className:tailwindMerge.twMerge("inline-flex h-6 w-32",p)});let m=r!=null&&o?qr(r,o):null,g=a==="horizontal",f=o&&!m;return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("inline-flex items-center",g?"gap-2":"flex-col gap-1",p),children:[(m||f)&&jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("font-medium inline-block",m?"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:m||"\u2014"}),jsxRuntime.jsx(wa,{state:e,label:t,icon:l,size:s,shape:c,fixedWidth:d}),n&&jsxRuntime.jsx(jsxRuntime.Fragment,{children:n==="importing"||n==="exporting"?jsxRuntime.jsx(gd,{state:n,size:s,shape:c,fixedWidth:d,showIcon:u}):jsxRuntime.jsx(wa,{state:n,size:s,shape:c,fixedWidth:d})})]})}function J0({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:p=false,className:m}){let{isLoading:g}=r;if(g){let v={pill:"rounded-full",rounded:"rounded-lg",square:"rounded-sm"}[s],S=o!=null||n!=null;return jsxRuntime.jsx("div",{className:"flex items-center gap-2",children:S?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(J,{className:"h-4 w-12"}),jsxRuntime.jsx(J,{className:`h-6 w-24 ${v}`}),jsxRuntime.jsx(J,{className:`h-6 w-20 ${v}`})]}):jsxRuntime.jsx(J,{className:`h-6 w-24 ${v}`})})}if(!e)return jsxRuntime.jsx("div",{className:Me(u,m),children:jsxRuntime.jsx("span",{className:"text-text-secondary",children:"\u2014"})});let f=Ce(o,t),x=Ce(a,t),b=typeof c=="function"?c(e,t):c,h=Me(u,m);return f!=null||n?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(h),children:jsxRuntime.jsx(bd,{state:e,stateLabel:b,metric:f,metricFormatter:n,secondaryState:x||void 0,size:i,shape:s,icon:l,fixedWidth:d,secondaryStateIconOnly:p,layout:"horizontal"})}):jsxRuntime.jsx("div",{className:h,children:jsxRuntime.jsx(wa,{state:e,label:b,icon:l,size:i,shape:s,fixedWidth:d})})}function Z0({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:dr(a)});let p=co({value:e,formatter:o,emptyText:l,emptyClassName:d}),m=Ur(a),g=Me(n,tailwindMerge.twMerge(m,c)),f=jsxRuntime.jsx("div",{className:g,children:p}),x=Ce(i,t);return x?ko(f,x,t,s):f}var Ff=He__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:p,context:m})=>{let g=He.useMemo(()=>r===t?100:Math.max(0,Math.min(100,(e-t)/(r-t)*100)),[e,t,r]),f=He.useMemo(()=>o==="auto"&&a?a.type==="diverging"&&a.center!==void 0?Zi(e,t,r,a.center,a.scheme):Xi(e,t,r,a.scheme):o,[o,a,e,t,r]);if(m.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})`,y=Math.ceil(g/100*d),v={height:c,...p&&{width:typeof p=="number"?`${p}px`:p,flexShrink:0}};return jsxRuntime.jsxs("div",{className:"flex items-center gap-2 w-full",children:[jsxRuntime.jsx("div",{className:`flex gap-0.5 ${p?"":"flex-1"}`,style:v,children:Array.from({length:d}).map((S,w)=>{let k=w<y;return jsxRuntime.jsx("div",{className:"rounded-sm",style:{width:h,backgroundColor:k?f:n==="none"?"transparent":n,marginRight:w<d-1?`${u}px`:0}},w)})}),i&&jsxRuntime.jsx("span",{className:"text-sm text-text-primary whitespace-nowrap",children:s?s(e):e.toLocaleString()})]})}let x={height:c,backgroundColor:n==="none"?"transparent":n,...p&&{width:typeof p=="number"?`${p}px`:p,flexShrink:0}};return jsxRuntime.jsxs("div",{className:"flex items-center gap-2 w-full",children:[jsxRuntime.jsx("div",{className:`relative rounded-sm ${p?"":"flex-1"}`,style:x,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()})]})});Ff.displayName="HorizontalBarCell";var Bf=He__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=x=>"xValue"in x?x.xValue:x.x,l=x=>"yValue"in x?x.yValue:x.y,d=a||100,u=i,{xScale:p,yScale:m,barWidth:g}=He.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 x=d3Array.extent(s,k=>c(k)),b=d3Array.min(s,k=>l(k))??0,h=d3Array.max(s,k=>l(k))??0,y=b<0?b:0,v=scale.scaleTime({range:[0,d],domain:x}),S=scale.scaleLinear({range:[u,0],domain:[y,h*1.05]}),w=s.length>1?d/s.length*.8:8;return {xScale:v,yScale:S,barWidth:Math.max(2,w)}},[s,d,u]);if(n.isLoading)return jsxRuntime.jsx("div",{className:"flex items-center gap-0.5",style:{width:d,height:u},children:Array.from({length:5}).map((x,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=m(0);return jsxRuntime.jsx("svg",{width:d,height:u,children:s.map((x,b)=>{let h=l(x),y=p(c(x)),v=m(h),S=Math.abs(f-v),w=x.category&&o?.[x.category]?o[x.category]:r;return jsxRuntime.jsx(shape.Bar,{x:y-g/2,y:h>=0?v:f,width:g,height:S,fill:w,rx:1},`bar-${b}`)})})});Bf.displayName="MiniBarCell";function rC({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:p=false,colorCode:m=false,className:g}){let{isLoading:f}=r;if(f)return jsxRuntime.jsx(J,{className:dr(l)});if(e==null||isNaN(Number(e)))return jsxRuntime.jsx("div",{className:Me(c,"text-text-secondary"),children:s});let x=Number(e),b;switch(o){case "currency":b=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:n,maximumFractionDigits:n}).format(x);break;case "percent":b=new Intl.NumberFormat("en-US",{style:"percent",minimumFractionDigits:n,maximumFractionDigits:n}).format(x/100);break;case "compact":b=new Intl.NumberFormat("en-US",{notation:"compact",minimumFractionDigits:n>0?1:0,maximumFractionDigits:n}).format(x);break;default:b=new Intl.NumberFormat("en-US",{minimumFractionDigits:n,maximumFractionDigits:n}).format(x);}let y=`${p&&x>0?"+":""}${b}`,v=m?pd(x,true):Ur(l),S=Me(c,tailwindMerge.twMerge(v,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})]}),k=Ce(d,t);return k?jsxRuntime.jsx("div",{className:S,children:ko(w,k,t,u)}):jsxRuntime.jsx("div",{className:S,children:w})}var Vf=He__namespace.default.memo(({value:e,showLabel:t=true,color:r="var(--color-viz-categorical-1)",backgroundColor:o="var(--color-background-muted)",height:n=20,segments:a,segmentGap:i=2,colorScale:s,context:c})=>{let l=He.useMemo(()=>Math.max(0,Math.min(100,e)),[e]),d=He.useMemo(()=>r==="auto"&&s?s.type==="diverging"&&s.center!==void 0?Zi(e,0,100,s.center,s.scheme):Xi(e,0,100,s.scheme):r,[r,s,e]);if(c.isLoading)return jsxRuntime.jsx("div",{className:"flex items-center gap-2",style:{height:n},children:jsxRuntime.jsx("div",{className:"h-full w-full animate-pulse bg-border-default rounded"})});if(a&&a>0){let p=`calc((100% - ${i*(a-1)}px) / ${a})`,m=Math.ceil(l/100*a);return jsxRuntime.jsxs("div",{className:"flex items-center gap-2 w-full",children:[jsxRuntime.jsx("div",{className:"flex gap-0.5 flex-1",style:{height:n},children:Array.from({length:a}).map((g,f)=>{let x=f<m,b=d;if(r==="auto"&&s&&x){let h=(f+1)/a*100;s.type==="diverging"&&s.center!==void 0?b=Zi(h,0,100,s.center,s.scheme):b=Xi(h,0,100,s.scheme);}return jsxRuntime.jsx("div",{className:"rounded-sm",style:{width:p,backgroundColor:x?b:o==="none"?"transparent":o,marginRight:f<a-1?`${i}px`:0}},f)})}),t&&jsxRuntime.jsxs("span",{className:"text-sm text-text-primary whitespace-nowrap",children:[l.toFixed(0),"%"]})]})}return jsxRuntime.jsxs("div",{className:"flex items-center gap-2 w-full",children:[jsxRuntime.jsx("div",{className:"relative flex-1 rounded-sm",style:{height:n,backgroundColor:o==="none"?"transparent":o},children:jsxRuntime.jsx("div",{className:"absolute left-0 top-0 h-full rounded-sm transition-all duration-300",style:{width:`${l}%`,backgroundColor:d}})}),t&&jsxRuntime.jsxs("span",{className:"text-sm text-text-primary whitespace-nowrap",children:[l.toFixed(0),"%"]})]})});Vf.displayName="PercentBarCell";function nC({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:Me(a),children:jsxRuntime.jsx(J,{className:"h-4 w-4 rounded"})});let s=Ce(n,e),c=Me(a);return jsxRuntime.jsx("div",{className:c,children:jsxRuntime.jsx(_n,{isSelected:r,onChange:l=>{o?.(e,l);},isDisabled:s,"aria-label":"Select row"})})}function yd({streetAddress:e,city:t,state:r,postalCode:o,layout:n="stacked",size:a="md",href:i,LinkComponent:s,linkVariant:c="unstyled",emphasis:l="normal",isLoading:d=false,className:u,piiEntity:p}){let g={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],x={strong:"font-semibold text-text-primary",high:"font-semibold text-text-primary",normal:"text-text-primary",low:"text-text-secondary"}[l],b=[];t&&b.push(t),r&&o?b.push(`${r} ${o}`):r?b.push(r):o&&b.push(o);let h=b.join(", "),y=({children:S,className:w})=>i?s?jsxRuntime.jsx(s,{href:i,className:w,children:S}):jsxRuntime.jsx(et,{href:i,variant:c,className:tailwindMerge.twMerge("hover:underline",w),asButton:false,children:S}):jsxRuntime.jsx("span",{className:w,children:S});if(d)return n==="inline"?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",g.gap,u),children:[jsxRuntime.jsx(J,{width:g.skeletonIconInline,height:g.skeletonIconInline,className:"flex-shrink-0 rounded"}),jsxRuntime.jsx(J,{width:g.skeletonText,height:g.skeletonIconInline*.8})]}):jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",g.gap,u),children:[jsxRuntime.jsx(J,{width:g.skeletonIconStacked,height:g.skeletonIconStacked,className:"flex-shrink-0 rounded"}),jsxRuntime.jsxs("div",{className:"flex flex-col gap-1",children:[jsxRuntime.jsx(J,{width:g.skeletonText,height:16}),jsxRuntime.jsx(J,{width:g.skeletonSecondary,height:12})]})]});if(n==="inline")return jsxRuntime.jsxs(y,{className:tailwindMerge.twMerge("flex items-center",g.gap,i&&"hover:bg-background-hover transition-colors",u),children:[jsxRuntime.jsx(U,{name:"MapPin",size:g.iconSize,className:"text-text-secondary flex-shrink-0"}),jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("leading-normal truncate hover:text-text-primary",x,g.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 v=()=>{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",g.gap,u),children:[jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-shrink-0 flex items-center justify-center rounded border border-border-muted",g.iconContainerSize),children:jsxRuntime.jsx(U,{name:"MapPin",size:g.iconSize,className:"text-text-secondary"})}),jsxRuntime.jsxs("div",{className:"flex flex-col items-start min-w-0",children:[jsxRuntime.jsx(y,{className:tailwindMerge.twMerge("leading-normal truncate hover:text-text-primary",x,g.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})}),h&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-text-secondary leading-normal truncate",g.secondaryTextSize),"data-pii-type":v(),"data-pii-entity":p,children:h})]})]})}function iC({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:p="left",className:m,piiEntity:g}){let{isLoading:f}=t,x=Ce(r,e),b=Ce(o,e),h=Ce(n,e),y=Ce(a,e),v=Ce(c,e),S=Ce(g,e),w=Me(p,m);return jsxRuntime.jsx("div",{className:w,children:jsxRuntime.jsx(yd,{streetAddress:x,city:b,state:h,postalCode:y,layout:i,size:s,href:v,LinkComponent:l,linkVariant:d,emphasis:u,isLoading:f,piiEntity:S})})}var Of=He__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:p,yScale:m}=He.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,y=>y.xValue),x=d3Array.min(l,y=>y.yValue)||0,b=d3Array.max(l,y=>y.yValue)||0,h=(b-x)*.1||1;return {xScale:scale.scaleTime({range:[0,d],domain:f}),yScale:scale.scaleLinear({range:[u,0],domain:[x-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=>p(f.xValue),y:f=>m(f.yValue),yScale:m,fill:g,fillOpacity:.15,curve:curve.curveLinear}),(r==="line"||r==="both")&&jsxRuntime.jsx(shape.LinePath,{data:l,x:f=>p(f.xValue),y:f=>m(f.yValue),stroke:g,strokeWidth:n,strokeLinecap:"round",curve:curve.curveLinear})]})});Of.displayName="SparklineCell";function dC({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:p="left",className:m,piiType:g,piiEntity:f}){let{isLoading:x}=r;if(x)return jsxRuntime.jsx(J,{className:dr(l)});let b=ud(e,a),h=Ce(i,t),y=Ce(f,t),v=b,S=false,w=false;if(d&&b&&typeof b=="string")if(typeof d=="boolean")w=true;else {let{position:N="end",length:B=16,ellipsis:W="...",tooltip:O=true}=d;if(b.length>B){switch(N){case "start":v=yl(b,B);break;case "middle":v=Ka(b,B);break;case "end":v=vl(b,B,W);break}S=O;}}let k=g&&y?{"data-pii-type":g,"data-pii-entity":y}:{},L=Object.keys(k).length>0,R=jsxRuntime.jsx("span",{className:w?"truncate":"",...k,children:v}),D=S?jsxRuntime.jsx(or,{content:L?jsxRuntime.jsx("span",{...k,children:String(b)}):String(b),children:R}):R,V=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[o&&jsxRuntime.jsx("span",{className:"text-text-secondary",children:o}),D,n&&jsxRuntime.jsx("span",{className:"text-text-secondary",children:n})]}),A=V;if(u&&b&&b!==a){let N=typeof u=="function"?u(t):String(b);A=jsxRuntime.jsx(dn,{value:N,size:"sm",children:V});}if(h){let N=Me(p,m);return jsxRuntime.jsx("div",{className:N,children:ko(A,h,t,s,c,l)})}let T=Me(p,tailwindMerge.twMerge(Ur(l),m));return jsxRuntime.jsx("div",{className:T,children:A})}var oE={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 vd(e,t){return t.accessor?typeof t.accessor=="function"?t.accessor(e):e[t.accessor]:null}function Cd(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 wd({row:e,columns:t,density:r,isLoading:o,onClick:n}){let a=t.filter(u=>u.mobile!==false).map(u=>{let p=u.mobile===false?null:u.mobile;return {...u,mobilePriority:p?.priority??2,mobileFormat:p?.format??"secondary",showLabel:p?.label??p?.format==="secondary",icon:p?.icon}}).sort((u,p)=>u.mobilePriority-p.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 p=vd(e,u);return jsxRuntime.jsx("div",{className:"font-medium text-text-primary [&>*]:!justify-start [&>*]:!text-left",children:Cd(p,e,u,l)},u.id)})}),c.length>0&&jsxRuntime.jsx("div",{className:"ml-2 flex flex-wrap gap-1",children:c.map(u=>{let p=vd(e,u);return jsxRuntime.jsx("div",{className:"inline-flex",children:Cd(p,e,u,l)},u.id)})})]}),s.length>0&&jsxRuntime.jsx("div",{className:"space-y-1",children:s.map(u=>{let p=vd(e,u),m=u.showLabel&&u.label;return jsxRuntime.jsxs("div",{className:"flex items-center text-sm text-text-secondary",children:[u.icon&&jsxRuntime.jsx(U,{name:u.icon,className:"mr-1.5 h-4 w-4 flex-shrink-0"}),m&&jsxRuntime.jsxs("span",{className:"mr-1 font-medium",children:[u.label,":"]}),jsxRuntime.jsx("span",{className:"truncate [&>*]:!justify-start [&>*]:!text-left",children:Cd(p,e,u,l)})]},u.id)})})]})}function Td({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=vd(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:Cd(d,e,c,i)})]},c.id)})})})}function uC(e="md"){return {mobile:oE[e],desktop:nE[e]}}function pC({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 xE={compact:"py-1.5 px-3 text-sm",default:"py-3 px-4 text-sm",relaxed:"py-4 px-4 text-base"},hE={left:"text-left justify-start",center:"text-center justify-center",right:"text-right justify-end"};function yE(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 vE({column:e,sortConfig:t,onSort:r,stickyHeader:o,stickyFirstColumn:n,isFirstColumn:a,density:i="default",isLoading:s=false}){let c=e.reorderable!==false,{attributes:l,listeners:d,setNodeRef:u,transform:p,transition:m,isDragging:g}=sortable.useSortable({id:e.id,disabled:!c||s}),f=t?.columnId===e.id,x=f?t.direction:null,b=n&&a,h={...yE(e),transform:utilities.CSS.Transform.toString(p),transition:m,opacity:g?.8:1,zIndex:g?50:void 0};return jsxRuntime.jsx("div",{ref:u,className:tailwindMerge.twMerge("flex items-center border-b border-border-default bg-background-surface",e.sortable?"gap-2":"gap-1",xE[i],hE[e.align||"left"],o&&"sticky top-0 z-10",b&&"sticky left-0 z-20 shadow-[2px_0_4px_-2px_rgba(0,0,0,0.1)]",o&&b&&"z-30",e.sortable&&!s&&"hover:bg-background-hover",s&&"cursor-not-allowed opacity-60",f?"font-bold text-text-primary":"font-medium text-text-secondary",g&&"bg-background-hover"),style:h,role:"columnheader","aria-sort":f?x==="asc"?"ascending":"descending":"none","aria-disabled":s,...l,...d,children:s?jsxRuntime.jsx(J,{className:"h-4 w-24"}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("span",{className:"flex-1 truncate cursor-pointer",onClick:()=>!s&&e.sortable&&r(e.id),children:e.label}),e.sortable&&jsxRuntime.jsx("button",{type:"button",className:"flex flex-shrink-0 cursor-pointer",onClick:()=>!s&&r(e.id),"aria-label":`Sort by ${e.label}`,children:f?jsxRuntime.jsx(U,{name:x==="asc"?"CaretUp":"CaretDown",size:14,weight:"bold",className:"text-text-primary"}):jsxRuntime.jsx(U,{name:"CaretUpDown",size:12,className:"text-text-secondary opacity-40"})})]})})}function fC({columns:e,columnOrder:t,onColumnOrderChange:r,sortConfig:o,onSort:n,stickyHeader:a,stickyFirstColumn:i,density:s="default",isLoading:c=false}){let l=core.useSensors(core.useSensor(core.PointerSensor,{activationConstraint:{distance:5}}),core.useSensor(core.KeyboardSensor,{coordinateGetter:sortable.sortableKeyboardCoordinates})),d=new Map(e.map(m=>[m.id,m])),u=m=>{let{active:g,over:f}=m;if(f&&g.id!==f.id){let x=t.indexOf(g.id),b=t.indexOf(f.id);if(d.get(f.id)?.reorderable===false)return;let y=0;for(let k=0;k<t.length&&d.get(t[k])?.reorderable===false;k++)y=k+1;if(b<y)return;let v=Math.min(x,b),S=Math.max(x,b);for(let k=v;k<=S;k++){if(k===x)continue;if(d.get(t[k])?.reorderable===false)return}let w=sortable.arrayMove(t,x,b);r(w);}},p=t.map(m=>d.get(m)).filter(m=>m!==void 0);return jsxRuntime.jsx(core.DndContext,{sensors:l,collisionDetection:core.closestCenter,onDragEnd:u,children:jsxRuntime.jsx(sortable.SortableContext,{items:t,strategy:sortable.horizontalListSortingStrategy,children:jsxRuntime.jsx("div",{className:"contents",role:"rowgroup",children:p.map((m,g)=>jsxRuntime.jsx(vE,{column:m,sortConfig:o,onSort:n,stickyHeader:a,stickyFirstColumn:i,isFirstColumn:g===0,density:s,isLoading:c},m.id))})})})}var Gf={compact:"py-1.5 px-3 text-sm",default:"py-3 px-4 text-sm",relaxed:"py-4 px-4 text-base"},Uf={left:"text-left justify-start",center:"text-center justify-center",right:"text-right justify-end"},kE={full:"w-full",auto:"w-auto inline-block",contained:"w-full max-w-6xl mx-auto"},PE={auto:"table-auto",fixed:"table-fixed",responsive:"table-auto"};function Yf(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 RE(e,t){return t.accessor?typeof t.accessor=="function"?t.accessor(e):e[t.accessor]:null}function ME({column:e,sortConfig:t,onSort:r,stickyHeader:o,stickyFirstColumn:n,isFirstColumn:a,density:i="default",isLoading:s=false}){let c=t?.columnId===e.id,l=c?t.direction:null,d=n&&a;return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex items-center border-b border-border-default bg-background-surface",e.sortable?"gap-2":"gap-1",Gf[i],Uf[e.align||"left"],o&&"sticky top-0 z-10",d&&"sticky left-0 z-20 shadow-[2px_0_4px_-2px_rgba(0,0,0,0.1)]",o&&d&&"z-30",e.sortable&&!s&&"cursor-pointer hover:bg-background-hover",s&&"cursor-not-allowed opacity-60",c?"font-bold text-text-primary":"font-medium text-text-secondary"),onClick:()=>!s&&e.sortable&&r(e.id),role:"columnheader","aria-sort":c?l==="asc"?"ascending":"descending":"none","aria-disabled":s,style:Yf(e),children:s?jsxRuntime.jsx(J,{className:"h-4 w-24"}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("span",{className:"truncate",children:e.label}),e.sortable&&jsxRuntime.jsx("div",{className:"flex flex-shrink-0",children:c?jsxRuntime.jsx(U,{name:l==="asc"?"CaretUp":"CaretDown",size:14,weight:"bold",className:"text-text-primary"}):jsxRuntime.jsx(U,{name:"CaretUpDown",size:12,className:"text-text-secondary opacity-40"})})]})})}function DE({column:e,row:t,rowIndex:r,columnIndex:o,isHovered:n,density:a="default",className:i,stickyFirstColumn:s}){let c=s&&o===0,l=RE(t,e),d={isLoading:false,isHovered:n,rowIndex:r,columnIndex:o,density:a},u;if(e.cell){let p=e.cell,m=typeof e.cellProps=="function"?e.cellProps(l,t):e.cellProps;u=jsxRuntime.jsx(p,{value:l,row:t,context:d,...m});}else e.render?u=e.render(l,t,d):u=jsxRuntime.jsx("span",{className:"truncate",children:l?.toString()??""});if(e.popover){let p=e.popover,m,g="top",f=false,x="hover";typeof p=="string"?m=p:typeof p=="function"?m=p(l,t):(m=typeof p.content=="function"?p.content(l,t):p.content,g=p.placement||"top",f=p.showArrow??false,x=p.trigger||"hover"),u=jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{...x==="hover"?{trigger:"longPress"}:{},children:[jsxRuntime.jsx("div",{className:"cursor-help",children:u}),jsxRuntime.jsx(lt,{placement:g,showArrow:f,children:jsxRuntime.jsx("div",{className:"p-2",children:m})})]});}return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex items-center border-b border-border-default bg-background-surface",e.noCellPadding?"":Gf[a],Uf[e.align||"left"],c&&"sticky left-0 z-10 shadow-[2px_0_4px_-2px_rgba(0,0,0,0.1)]",i),role:"cell",style:Yf(e),children:u})}function EE({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?"":Gf[o],Uf[e.align||"left"],a&&"sticky left-0 z-10 shadow-[2px_0_4px_-2px_rgba(0,0,0,0.1)]"),role:"cell",style:Yf(e),children:s})}function LE(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 gC({columns:e,row:t,rowIndex:r,density:o="default",onClick:n,stickyFirstColumn:a}){let[i,s]=He.useState(false),c=He.useCallback(l=>{if(!n)return;let d=l.target,u=l.currentTarget;LE(d,u)||n(t);},[n,t]);return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("contents group",n&&"cursor-pointer"),role:"row",onClick:c,onMouseEnter:()=>s(true),onMouseLeave:()=>s(false),children:e.map((l,d)=>jsxRuntime.jsx(DE,{column:l,row:t,rowIndex:r,columnIndex:d,isHovered:i,density:o,className:n?"group-hover:bg-background-hover":"",stickyFirstColumn:a},l.id))})}function bC({columns:e,rowIndex:t,density:r="default",stickyFirstColumn:o}){return jsxRuntime.jsx("div",{className:"contents",role:"row",children:e.map((n,a)=>jsxRuntime.jsx(EE,{column:n,rowIndex:t,columnIndex:a,density:r,stickyFirstColumn:o},n.id))})}function xC({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:p,loadingRowCount:m=5,onLoadMore:g,hasMore:f=false,enableVirtualization:x,estimatedRowHeight:b,loadingIndicator:h,stickyHeader:y=false,stickyFirstColumn:v=false,onRowClick:S,getRowId:w,hideHeader:k=false,sortConfig:L,onSort:R,"aria-label":D,enableColumnReorder:V=false,columnOrder:A,onColumnOrderChange:T}){let[N,B]=He.useState(null),W=L!==void 0,O=W?L:N,z=He.useRef(null),j=He.useMemo(()=>e.map(Q=>Q.id),[e]),[K,$]=He.useState(j),P=A!==void 0,M=P?A:K;He.useEffect(()=>{P||$(Q=>{let ce=e.map(de=>de.id),re=new Set(ce),Z=new Set(Q),q=Q.filter(de=>re.has(de)),pe=ce.filter(de=>!Z.has(de));return [...q,...pe]});},[e,P]);let G=He.useCallback(Q=>{P||$(Q),T?.(Q);},[P,T]),I=He.useMemo(()=>{if(!V&&!A)return e;let Q=new Map(e.map(ce=>[ce.id,ce]));return M.map(ce=>Q.get(ce)).filter(ce=>ce!==void 0)},[e,M,V,A]),C=g?tn({items:t,onLoadMore:g,hasMore:f,isLoading:u,loadingState:p,enableVirtualization:x,estimatedItemSize:b||(o==="compact"?40:o==="relaxed"?60:48),overscan:5}):null,H=C?.scrollRef??z,{loadMoreRef:Y,virtualizer:F,virtualItems:_,isLoadingMore:te,computedLoadingState:E}=C||{},{gridTemplateColumns:ae,totalMinWidth:oe}=He.useMemo(()=>{let Q=0;return {gridTemplateColumns:I.map(re=>{if(re.minWidth?Q+=typeof re.minWidth=="number"?re.minWidth:0:re.width&&typeof re.width=="number"&&(Q+=re.width),re.width)return typeof re.width=="number"?`${re.width}px`:re.width;if(re.flex)return `${re.flex}fr`;if(re.minWidth&&re.maxWidth){let Z=typeof re.minWidth=="number"?`${re.minWidth}px`:re.minWidth,q=typeof re.maxWidth=="number"?`${re.maxWidth}px`:re.maxWidth;return `minmax(${Z}, ${q})`}return re.minWidth?`minmax(${typeof re.minWidth=="number"?`${re.minWidth}px`:re.minWidth}, 1fr)`:re.maxWidth?`minmax(0, ${typeof re.maxWidth=="number"?`${re.maxWidth}px`:re.maxWidth})`:"1fr"}).join(" "),totalMinWidth:Q}},[I]),ee=He.useCallback(Q=>{if(!e.find(Z=>Z.id===Q)?.sortable)return;let re;O?.columnId===Q?re={columnId:Q,direction:O.direction==="asc"?"desc":"asc"}:re={columnId:Q,direction:"asc"},W||B(re),R?.(re);},[e,O,R,W]),se=E==="loading"||u&&t.length===0,ue={};a?(ue.height=typeof a=="number"?`${a}px`:a,ue.overflowY="auto"):i?(ue.maxHeight=typeof i=="number"?`${i}px`:i,ue.overflowY="auto"):g&&(ue.height="600px",ue.overflowY="auto");let xe=tailwindMerge.twMerge(kE[n],!g&&(s==="responsive"?"overflow-x-auto scrollbar-visible":"overflow-auto scrollbar-visible"),r),Ve=uC(d),tt=c!=="none",Xt=(Q,ce)=>tt?c==="custom"&&l?l(Q,ce):jsxRuntime.jsx(c==="cards"?Td:wd,{row:Q,columns:I,density:o,isLoading:u,onClick:S?()=>S(Q):void 0}):null,mr=F?_?.map(Q=>({virtualItem:Q,row:t[Q.index],index:Q.index}))||[]:t.map((Q,ce)=>({row:Q,index:ce,virtualItem:null}));return jsxRuntime.jsxs("div",{ref:H,className:xe,style:{...ue,position:F?"relative":void 0},children:[jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("grid border-separate border-spacing-0",PE[s],n==="auto"?"inline-grid w-auto":"w-full",tt&&Ve.desktop),role:"table","aria-label":D,style:{gridTemplateColumns:ae,minWidth:oe>0?`${oe}px`:void 0},children:[!k&&(V?jsxRuntime.jsx(fC,{columns:e,columnOrder:M,onColumnOrderChange:G,sortConfig:O,onSort:ee,stickyHeader:y,stickyFirstColumn:v,density:o,isLoading:se}):jsxRuntime.jsx("div",{className:"contents",role:"rowgroup",children:I.map((Q,ce)=>jsxRuntime.jsx(ME,{column:Q,sortConfig:O,onSort:ee,stickyHeader:y,stickyFirstColumn:v,isFirstColumn:ce===0,density:o,isLoading:se},Q.id))})),F?jsxRuntime.jsx("div",{className:"col-span-full",style:{gridColumn:"1 / -1",height:`${F.getTotalSize()}px`,position:"relative"},role:"rowgroup",children:se?Array.from({length:m}).map((Q,ce)=>jsxRuntime.jsx("div",{className:"contents",children:jsxRuntime.jsx(bC,{columns:I,rowIndex:ce,density:o,stickyFirstColumn:v})},`loading-${ce}`)):t.length>0?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[mr.map(({row:Q,index:ce,virtualItem:re})=>{if(!Q||!re)return null;let Z=w?w(Q):`row-${ce}`;return jsxRuntime.jsx("div",{style:{position:"absolute",top:0,left:0,width:"100%",display:"grid",gridTemplateColumns:ae,transform:`translateY(${re.start}px)`},"data-index":re.index,ref:F.measureElement,children:jsxRuntime.jsx(gC,{columns:I,row:Q,rowIndex:ce,density:o,onClick:S,stickyFirstColumn:v})},Z)}),te&&jsxRuntime.jsx("div",{style:{position:"absolute",top:`${F.getTotalSize()}px`,left:0,width:"100%"},children:h||jsxRuntime.jsx(Lr,{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:m}).map((Q,ce)=>jsxRuntime.jsx(bC,{columns:I,rowIndex:ce,density:o,stickyFirstColumn:v},`loading-${ce}`)):t.length>0?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[mr.map(({row:Q,index:ce})=>{if(!Q)return null;let re=w?w(Q):`row-${ce}`;return jsxRuntime.jsx(gC,{columns:I,row:Q,rowIndex:ce,density:o,onClick:S,stickyFirstColumn:v},re)}),te&&jsxRuntime.jsx("div",{className:"col-span-full",style:{gridColumn:"1 / -1"},children:h||jsxRuntime.jsx(Lr,{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"})})})]}),tt&&jsxRuntime.jsx("div",{className:Ve.mobile,children:se?Array.from({length:m}).map((Q,ce)=>jsxRuntime.jsx(pC,{density:o},`mobile-loading-${ce}`)):t.length>0?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[mr.map(({row:Q,index:ce})=>{if(!Q)return null;let re=w?w(Q):`mobile-row-${ce}`;return jsxRuntime.jsx("div",{className:"border-b border-border-default last:border-b-0",children:Xt(Q,ce)},re)}),te&&(h||jsxRuntime.jsx(Lr,{state:"loading-more"}))]}):jsxRuntime.jsx("div",{className:"py-12 text-center text-text-secondary",children:"No data available"})}),g&&f&&!se&&(F?jsxRuntime.jsx("div",{ref:Y,style:{position:"absolute",top:`${F.getTotalSize()}px`,left:0,width:"100%",height:1}}):jsxRuntime.jsx("div",{ref:Y,className:"h-px w-full"}))]})}function yC({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(at,{variant:s[e],size:n,shape:a,dot:l,dotPulse:l,...i,children:d})}var IE={battery:"BatteryHigh",charger:"ChargingStation",thermostat:"ThermometerSimple",inverter:"Power",vehicle:"Car",water_heater:"DropHalfBottom",meter:"Gauge",gateway:"WifiHigh",other:"Cube",unknown:"Question"},FE={battery:"Battery",charger:"Charger",thermostat:"Thermostat",inverter:"Inverter",vehicle:"Vehicle",water_heater:"Water Heater",meter:"Meter",gateway:"Gateway",other:"Other",unknown:"Unknown"};function CC({deviceType:e,iconName:t,size:r="md",showLabel:o=false,className:n}){let a=t||(e?IE[e]:"Question"),i=e?FE[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(U,{name:a,size:r}),o&&i&&jsxRuntime.jsx("span",{className:"text-xs text-text-secondary",children:i})]})}function Ks({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:p,secondaryAction:m,tertiaryAction:g,footerContent:f,contentPadding:x=true,maxWidth:b="400px"}){if(!s)return null;let h=t||r,y=p||m||g||f;return jsxRuntime.jsx(Xr,{children:jsxRuntime.jsx(fr,{isOpen:s,onOpenChange:v=>!v&&d?.(),isDismissable:true,transparent:l,children:jsxRuntime.jsx(reactAriaComponents.Modal,{className:"outline-none focus:outline-none focus-visible:outline-none ring-0 focus:ring-0 focus-visible:ring-0",children:jsxRuntime.jsxs(reactAriaComponents.Dialog,{className:tailwindMerge.twMerge("fixed top-0 bottom-0 flex flex-col bg-background-surface shadow-xl overflow-hidden",c==="right"?"right-0":"left-0",c==="right"?"animate-in slide-in-from-right duration-300 ease-out":"animate-in slide-in-from-left duration-300 ease-out","data-[exiting]:animate-out",c==="right"?"data-[exiting]:slide-out-to-right":"data-[exiting]:slide-out-to-left","data-[exiting]:duration-200 data-[exiting]:ease-in","outline-none focus-visible:outline focus-visible:outline-2 focus-visible:outline-action-default focus-visible:outline-offset-0",u),style:{maxWidth:b,width:"100%"},children:[h&&(a&&i?jsxRuntime.jsx(Yt,{title:t,headerContent:r,titleAlign:o,hideCloseIcon:n,hasBackArrow:true,onBack:i,onClose:d}):jsxRuntime.jsx(Yt,{title:t,headerContent:r,titleAlign:o,hideCloseIcon:n,onClose:d})),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-1 overflow-y-auto overscroll-contain",x?"px-6 py-6":"p-0"),children:e}),y&&jsxRuntime.jsx(an,{primaryAction:p,secondaryAction:m,tertiaryAction:g,footerContent:f})]})})})})}Ks.displayName="Drawer";function wC({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(at,{variant:i[e],size:o,shape:n,...a,children:s[e]});return t?jsxRuntime.jsx(or,{content:t,children:c}):c}function NC({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]=He.useState(false),[p,m]=He.useState(false),[g,f]=He.useState(null),[x,b]=He.useState(e),h=He.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(c&&w.type.startsWith("image/")){let k=new FileReader;k.onloadend=()=>{b(k.result);},k.readAsDataURL(w);}if(i){m(true);try{let k=await i(w);b(k),r?.(k);}catch(k){f("Failed to upload file"),console.error("Upload error:",k);}finally{m(false);}}t?.(w,x);},v=async w=>{try{let k=w.items;if(k.length>0){let L=k[0];if(L.kind==="file"){let R=await L.getFile();R&&y(R);}}}catch(k){f("Failed to upload file"),console.error("Upload error:",k);}finally{u(false);}},S=()=>{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:v,onDropEnter:()=>u(true),onDropExit:()=>u(false),children:[x?jsxRuntime.jsxs("div",{className:"relative flex h-full w-full items-center justify-center p-4",children:[c&&(x.startsWith("data:image")||x.startsWith("http"))?jsxRuntime.jsx("img",{src:x,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(ie,{variant:"icon",size:"sm",onPress:S,className:"absolute right-2 top-2 bg-background-surface shadow-md",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"})})]}):jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-4 p-6",children:[jsxRuntime.jsx(lucideReact.Upload,{className:"h-12 w-12 text-text-secondary"}),jsxRuntime.jsxs("div",{className:"text-center",children:[jsxRuntime.jsx("p",{className:"text-sm text-text-primary",children:l}),jsxRuntime.jsx("p",{className:"mt-1 text-xs text-text-secondary",children:o==="image/*"?"PNG, JPG, GIF up to 10MB":`Accepts ${o}`})]}),jsxRuntime.jsx(reactAriaComponents.FileTrigger,{acceptedFileTypes:o.split(","),onSelect:w=>{let k=Array.from(w||[]);k.length>0&&y(k[0]);},children:jsxRuntime.jsx(ie,{variant:"secondary",size:"sm",isDisabled:a,children:"Choose File"})})]}),p&&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 PC({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(at,{variant:s,size:n,shape:a,...i,children:c})}function Ai(e){return jsxRuntime.jsx(reactAriaComponents.Form,{validationBehavior:"aria",...e,className:tailwindMerge.twMerge("flex flex-col gap-6",e.className)})}function MC({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]=He.useState(false),p=Zt("(max-width: 767px)"),m=o!==void 0?o:d,g=He.useCallback(h=>{n?n(h):u(h);},[n]);He.useEffect(()=>{let h=y=>{(y.metaKey||y.ctrlKey)&&y.key==="k"&&(y.preventDefault(),g(!m)),y.key==="Escape"&&m&&g(false);};return window.addEventListener("keydown",h),()=>window.removeEventListener("keydown",h)},[m,g]);let f=He.useCallback(h=>{r?.(h);},[r]),x=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(U,{name:"MagnifyingGlass",size:18}),!p&&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||He.isValidElement(a)&&a.type===He.Fragment&&!a.props.children;return p?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:x})),jsxRuntime.jsx(ct,{isOpen:m,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(Gr,{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:m,onOpenChange:g,children:[a||x,jsxRuntime.jsx(lt,{placement:"bottom",className:"w-[600px] max-w-[90vw] bg-background-surface shadow-xl border border-border-default rounded-lg overflow-hidden",children:jsxRuntime.jsxs("div",{className:"flex flex-col",children:[c&&jsxRuntime.jsx("div",{className:"p-4 border-b border-border-muted",children:jsxRuntime.jsx(Gr,{value:t,onChange: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 LC({placeholder:e="Search...",value:t,onChange:r,isOpen:o,onOpenChange:n,children:a,maxHeight:i="400px",variant:s="default",className:c}){let[l,d]=He.useState(false),u=Zt("(max-width: 767px)"),p=He.useRef(null),m=He.useRef(null),g=o!==void 0?o:l,f=He.useCallback(D=>{n?n(D):d(D);},[n]);He.useEffect(()=>{let D=V=>{(V.metaKey||V.ctrlKey)&&V.key==="k"&&(V.preventDefault(),f(!g)),V.key==="Escape"&&g&&f(false);};return window.addEventListener("keydown",D),()=>window.removeEventListener("keydown",D)},[g,f]),He.useEffect(()=>{g&&!u&&p.current&&setTimeout(()=>{p.current?.querySelector("input")?.focus();},0);},[g,u]),He.useEffect(()=>{if(!g||u)return;let D=V=>{let A=V.target,T=p.current?.contains(A),N=m.current?.contains(A);!T&&!N&&f(false);};return document.addEventListener("mousedown",D,true),()=>document.removeEventListener("mousedown",D,true)},[g,u,f]);let x=D=>{r?.(D);},b=He.useCallback(()=>{f(false);},[f]),h=He.useCallback(()=>{r?.("");},[r]),[y,v]=He.useState(null);He.useEffect(()=>{if(g&&!u&&p.current){let D=null,V=()=>{let T=p.current?.getBoundingClientRect();T&&v({top:T.bottom+8,left:T.left,width:T.width});},A=()=>{D===null&&(D=requestAnimationFrame(()=>{V(),D=null;}));};return V(),window.addEventListener("resize",A),window.addEventListener("scroll",A,true),()=>{window.removeEventListener("resize",A),window.removeEventListener("scroll",A,true),D!==null&&cancelAnimationFrame(D);}}},[g,u]);let S=He.useCallback(()=>{f(true);},[f]);if(u)return jsxRuntime.jsxs("div",{className:c,children:[jsxRuntime.jsx("button",{type:"button",onClick:S,className:"flex items-center justify-center w-10 h-10 rounded-lg hover:bg-background-hover transition-colors","aria-label":"Open search",children:jsxRuntime.jsx(U,{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(Gr,{value:t,onChange:x,placeholder:e,showSearchIcon:true,isClearable:!!t,onClear:h,reserveErrorSpace:false,autoFocus:true})}),jsxRuntime.jsx(ie,{variant:"icon",onPress:b,"aria-label":"Close search",className:"flex-shrink-0",children:jsxRuntime.jsx(U,{name:"X",size:"md"})})]}),jsxRuntime.jsx("div",{className:"mt-4",children:a})]})]},"mobile");let w=D=>{let A=D.target.tagName==="INPUT";if(D.key==="ArrowDown"&&g&&A){D.preventDefault();let T=m.current?.querySelector("[data-search-result]");T&&T.focus();}},k=D=>{let V=D.target;if(!V.hasAttribute("data-search-result"))return;let T=Array.from(m.current?.querySelectorAll("[data-search-result]")||[]),N=T.indexOf(V);if(D.key==="ArrowDown"){D.preventDefault(),D.stopPropagation();let B=Math.min(N+1,T.length-1);T[B]?.focus();}else if(D.key==="ArrowUp")if(D.preventDefault(),D.stopPropagation(),N===0)p.current?.querySelector("input")?.focus();else {let B=Math.max(N-1,0);T[B]?.focus();}else D.key==="Escape"&&(D.preventDefault(),D.stopPropagation(),f(false),p.current?.querySelector("input")?.focus());},L=g&&y&&typeof document<"u"?reactDom.createPortal(jsxRuntime.jsx("div",{ref:m,style:{position:"fixed",top:`${y.top}px`,left:`${y.left}px`,width:`${y.width}px`,zIndex:9999},role:"listbox",onKeyDown:k,children:jsxRuntime.jsx("div",{className:"bg-background-surface shadow-2xl border border-border-default rounded-lg overflow-hidden animate-in fade-in zoom-in-95 duration-200",children:jsxRuntime.jsx("div",{className:"overflow-y-auto",style:{maxHeight:i},children:a})})}),document.body):null,R=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:p,className:`relative w-full ${c||""}`,onKeyDown:w,children:[jsxRuntime.jsx(Gr,{value:t,onChange:x,placeholder:e,showSearchIcon:true,isClearable:!!t,onClear:()=>r?.(""),reserveErrorSpace:false,className:R,onFocus:()=>f(true)}),L]},"desktop")}function AC({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(U,{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 FC({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 VC({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 OC({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:p=>{let m=p.currentTarget;switch(p.key){case "Enter":case " ":{p.preventDefault(),i?.(e);break}case "ArrowDown":{p.preventDefault();let g=Array.from(document.querySelectorAll("[data-search-result]")),f=g.indexOf(m);f!==-1&&f<g.length-1&&g[f+1].focus();break}case "ArrowUp":{p.preventDefault();let g=Array.from(document.querySelectorAll("[data-search-result]")),f=g.indexOf(m);if(f>0)g[f-1].focus();else {let x=document.querySelector('input[type="text"][placeholder*="Search"]');x&&x.focus();}break}case "Escape":{p.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(U,{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(U,{name:"ArrowRight",size:16,className:"text-text-secondary"})})]})}function zC({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 WC({placeholder:e="Search...",onClick:t,showShortcut:r=true,variant:o="default",className:n=""}){let a=typeof navigator<"u"&&navigator.platform.includes("Mac");return jsxRuntime.jsxs("button",{type:"button",onClick:t,className:`
27
+ `}})]})}function Cs(e,t=300){let[r,o]=Oe.useState(false);return Oe.useEffect(()=>{if(e){let n=setTimeout(()=>{o(true);},t);return ()=>clearTimeout(n)}o(false);},[e,t]),r}var NS=({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 Qt({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)=>NS({...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 Nr(){let[e,t]=Oe__namespace.default.useState(false),r=Oe__namespace.default.useCallback((n,a)=>{t(true),a?.(n);},[]),o=Oe__namespace.default.useCallback((n,a)=>{t(false),a?.(n);},[]);return {isFocused:e,handleFocus:r,handleBlur:o}}var bt=Oe__namespace.default.forwardRef(({children:e,className:t},r)=>jsxRuntime.jsx("div",{ref:r,className:tailwindMerge.twMerge("relative w-full",t),children:e}));bt.displayName="InputWrapper";function ai({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 Io(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 vf(e){return e.isDisabled?"bg-background-muted":e.transparent?"bg-transparent":"bg-background-input"}function kS(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 Ft(e){let{isInvalid:t,isDisabled:r,isFocused:o,transparent:n,size:a="md",className:i}=e;return tailwindMerge.twMerge("w-full",Io({isInvalid:t,isDisabled:r,isFocused:o}),vf({transparent:n,isDisabled:r}),We[a].text,We[a].height,We[a].padding,kS(a),i)}function TS(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",vf({transparent:a,isDisabled:n}),We[t].height,Io({isFocused:r,isInvalid:o,isDisabled:n}),i)}function ze({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(We[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(Qt,{content:l,children:u}):u}function Te({size:e="md",className:t,children:r,...o}){return jsxRuntime.jsx("div",{...o,className:tailwindMerge.twMerge("leading-[2.25] text-text-secondary",We[e].text,t),children:r})}function be({children:e,size:t="md",className:r}){return jsxRuntime.jsx("div",{role:"alert",className:tailwindMerge.twMerge(We[t].text,"text-feedback-error-text",r),children:e})}function ws({size:e="md",isInvalid:t,isDisabled:r,isFocused:o,transparent:n,className:a,...i}){return jsxRuntime.jsx("input",{className:Ft({isInvalid:t,isDisabled:r,isFocused:o,transparent:n,size:e,className:a}),...i})}function Cf(e){let{children:t,...r}=e;return jsxRuntime.jsx("div",{...r,className:TS(e),children:typeof t=="function"?t(e):t})}var Ad=Oe.createContext("md");function Tf(){return Oe.useContext(Ad)}function Dd(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 ${We[e].text} ${t}`}function ES(){let e=Oe__namespace.default.useCallback((r,o)=>{o?.(r);},[]),t=Oe__namespace.default.useCallback((r,o)=>{o?.(r);},[]);return {handleFocus:e,handleBlur:t}}function gn({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:x=false,placement:b="bottom start",shouldFlip:h=true,menuWidth:y="match",descriptionPlacement:v="below",useMobileTray:S=true,...N}){let[w,D]=Oe.useState(null),[k,P]=Oe.useState(null),[I,M]=Oe.useState(false),L=c??w??l,{handleFocus:R,handleBlur:B}=ES(),{isMobile:Y}=Jt(),H=S&&Y,W=Oe__namespace.default.useMemo(()=>!i||!L||!n?null:Array.from(n).find(O=>O.id===L)??null,[i,L,n]),Z=E=>{d&&E!==null&&d(E),d||D(E);},q=Oe.useRef(null),Q=Oe.useRef(null),T=()=>{H&&M(!I);};return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(reactAriaComponents.Select,{...N,selectedKey:L,defaultSelectedKey:l,onSelectionChange:Z,placeholder:u,className:ke(N.className,"group flex w-full flex-col"),ref:q,onOpenChange:E=>{H||(E&&Q.current?P(Q.current.offsetWidth):E||q.current?.blur());},children:({isDisabled:E,isInvalid:O,isOpen:A})=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(ze,{size:s,tooltip:p,description:v==="tooltip"||v==="inline"?t:void 0,descriptionPlacement:v,isRequired:g,children:e}),jsxRuntime.jsx(bt,{children:jsxRuntime.jsx("div",{ref:Q,children:jsxRuntime.jsxs(ee,{variant:"unstyled",className:tailwindMerge.twMerge(Ft({isInvalid:O||m&&!!r,isDisabled:E,isFocused:H?I:A,transparent:f,size:s}),"flex items-center text-start gap-4 cursor-pointer pl-[var(--control-padding-sm)]"),onFocus:C=>R(C,N.onFocus),onBlur:C=>B(C,N.onBlur),onPress:H?T:void 0,"data-open":H?I:A,children:[i&&W?jsxRuntime.jsx("div",{className:Dd(s),children:i(W)}):H&&L?jsxRuntime.jsx("div",{className:Dd(s),children:n?Array.from(n).find(z=>z.id===L)?.label:String(L)}):jsxRuntime.jsx(reactAriaComponents.SelectValue,{className:Dd(s)}),jsxRuntime.jsx(V,{name:"CaretDown","aria-hidden":true,className:tailwindMerge.twMerge("h-4 w-4 text-text-primary group-disabled:text-text-disabled forced-colors:text-[ButtonText] transition-transform",(H?I:A)&&"rotate-180")})]})})}),x?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:m?jsxRuntime.jsx(be,{size:s,className:"text-feedback-error-text",children:typeof r=="function"&&N.validationResult?r(N.validationResult):typeof r=="string"?r:null}):t&&v==="below"?jsxRuntime.jsx(Te,{size:s,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:m?jsxRuntime.jsx(be,{size:s,className:"mt-1 text-feedback-error-text",children:typeof r=="function"&&N.validationResult?r(N.validationResult):typeof r=="string"?r:null}):t&&v==="below"?jsxRuntime.jsx(Te,{size:s,className:"mt-1",children:t}):null}),H?null:jsxRuntime.jsx(nt,{className:"bg-background-input shadow-xl border border-border-input/20 backdrop-blur-sm rounded-[var(--control-border-radius)]",style:{width:y==="match"&&k?`${k}px`:void 0,minWidth:y==="auto"&&k?`${k}px`:void 0,maxWidth:y==="auto"?"min(600px, 90vw)":void 0},placement:b,shouldFlip:h,children:jsxRuntime.jsx(Ad.Provider,{value:"md",children:jsxRuntime.jsx(reactAriaComponents.ListBox,{items:n,className:"w-full max-h-[300px] overflow-auto bg-background-input p-0 outline-0",children:a&&n?C=>jsxRuntime.jsx(Zt,{id:C.id,textValue:C.label,children:jsxRuntime.jsx("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap min-w-0 flex-1",children:a(C)})},C.id):o})})})]})}),H&&jsxRuntime.jsx(at,{isOpen:I,onClose:()=>M(false),title:e??"Select an option",contentPadding:false,children:jsxRuntime.jsx(Ad.Provider,{value:"md",children:jsxRuntime.jsx(reactAriaComponents.ListBox,{items:n,className:"w-full bg-background-surface p-0 outline-0 [&_[role=option]]:border-b [&_[role=option]]:border-border-default [&_[role=option]:last-child]:border-0 [&_[role=option]]:!px-6 [&_[role=option]]:!py-4 [&_[role=option]]:rounded-none",selectionMode:"single",selectedKeys:L!=null?[L]:[],onSelectionChange:E=>{let O=Array.from(E)[0];O!=null&&(Z(O),M(false));},children:a&&n?E=>jsxRuntime.jsx(Zt,{id:E.id,textValue:E.label,children:jsxRuntime.jsx("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap min-w-0 flex-1",children:a(E)})},E.id):o})})})]})}function Zt({size:e,className:t,...r}){let o=Tf(),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",We[n].paddingY,We[n].text,t)})}var KS=[],YS={sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6",xl:"h-7 w-7"},JS={sm:"pl-8",md:"pl-10",lg:"pl-11",xl:"pl-13"},Rf={sm:"py-1",md:"py-2",lg:"py-3",xl:"py-4"},Fd=(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 XS(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 jS(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 Ts({label:e,staticItems:t=KS,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:x,showErrors:b=true,renderItem:h,renderLeftIcon:y,renderSection:v,autoFocus:S=false,reserveErrorSpace:N=false,hideChevron:w=false,useMobileTray:D=true,className:k}){let P=Oe__namespace.default.useRef(null),I=Oe__namespace.default.useRef(null),[M,L]=Oe__namespace.default.useState(),[R,B]=Oe.useState(()=>Fd(o||n,t,r)),[Y,H]=Oe.useState(false),[W,Z]=Oe.useState(false),q=Po(R),{contains:Q}=reactAria.useFilter({sensitivity:"base"}),[T,E]=Oe.useState(),{isMobile:O}=Jt(),A=D&&O,C=We[u].text,F=reactStately.useAsyncList({async load({signal:re,filterText:ie=""}){if(!i)return {items:[]};if(!i.url||i.shouldLoad&&!i.shouldLoad(ie))return {items:[]};try{let fe;return i.requestType==="GraphQL"?fe=await jS(i,ie,re):fe=await XS(i,ie,re),E(fe.error),{items:fe.items}}catch(fe){return fe instanceof Error&&fe.name==="AbortError"?{items:[]}:(console.error("Error loading items:",fe),E(fe instanceof Error?fe.message:"Unknown error occurred"),{items:[]})}},initialFilterText:""}),z=i&&q!==""?F:null,G=false,oe=Oe.useRef("");Oe.useEffect(()=>{S&&H(true);},[S]),Oe.useEffect(()=>{let re=Fd(o,t,r);re!==R&&B(re);},[o,t,r]),Oe.useEffect(()=>{let re=()=>{P.current&&L(P.current.offsetWidth);};return re(),window.addEventListener("resize",re),()=>window.removeEventListener("resize",re)},[]),Oe.useEffect(()=>{q===""?oe.current="":z&&q!==oe.current&&(oe.current=q,z.setFilterText(q));},[q,z]),G=Cs(!!z?.isLoading,300);let ue=Oe__namespace.default.useMemo(()=>{if(!A||!R)return z?z.items:t;let re=z?z.items:t,ie=s??(i?()=>true:Q);return re.filter(fe=>ie(fe.name,R))},[A,R,z,t,s,Q]),te=re=>{let ie=Fd(re,t,r);B(ie),a&&a(re);},le=re=>{B(re);},me=()=>{A&&Z(true);};return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(reactAriaComponents.ComboBox,{onSelectionChange:te,selectedKey:o||void 0,defaultSelectedKey:n||void 0,items:z?z.items:r?r.flatMap(re=>re.items):t,className:ke(k,"group flex flex-col w-full"),menuTrigger:A?"manual":i?"input":"focus",allowsEmptyCollection:!!i,isDisabled:g,isInvalid:f||!!l,inputValue:R,onInputChange:le,autoFocus:S&&!A,defaultFilter:s??(i?()=>true:Q),"aria-label":e||c||"Autocomplete",children:re=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(ze,{size:u,tooltip:m,isRequired:p,children:e}),jsxRuntime.jsxs(bt,{ref:P,children:[y?jsxRuntime.jsx("div",{className:"pointer-events-none absolute left-3 top-[45%] -translate-y-1/2 z-10",children:y(G)}):jsxRuntime.jsx("div",{className:"pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 z-10 flex items-center",children:G?jsxRuntime.jsx(mo,{size:16,color:"text-text-secondary"}):jsxRuntime.jsx(V,{name:"MagnifyingGlass",className:`${YS[u]} text-text-secondary`})}),jsxRuntime.jsx(reactAriaComponents.Input,{className:Ft({isInvalid:f||!!l,isDisabled:g,isFocused:Y||(A?W:re.isOpen),size:u,className:tailwindMerge.twMerge(JS[u],R&&!g||!w&&!R?"pr-10":"pr-3",A&&"cursor-pointer",k)}),placeholder:c,disabled:g,onFocus:ie=>{H(true),A&&(ie.currentTarget.blur(),me());},onBlur:()=>{H(false);},onClick:A?me:void 0,readOnly:A,"aria-label":e||c||"Autocomplete"}),R&&!g&&jsxRuntime.jsx(ai,{onClick:()=>{B(""),a?.(null);},size:u}),!w&&!R&&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:ie})=>jsxRuntime.jsx(V,{name:ie?"CaretUp":"CaretDown",className:"h-4 w-4"})})]}),N?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:b&&T?jsxRuntime.jsx(be,{size:u,className:"text-feedback-error-text",children:T}):b&&typeof l=="string"?jsxRuntime.jsx(be,{size:u,className:"text-feedback-error-text",children:l}):b&&typeof l=="function"&&x?jsxRuntime.jsx(be,{size:u,className:"text-feedback-error-text",children:l(x)}):d?jsxRuntime.jsx(Te,{size:u,children:d}):null}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[d&&jsxRuntime.jsx(Te,{size:u,className:"mt-1",children:d}),b&&T&&jsxRuntime.jsx(be,{size:u,className:"text-feedback-error-text mt-1",children:T}),b&&typeof l=="string"&&jsxRuntime.jsx(be,{size:u,className:"text-feedback-error-text mt-1",children:l}),b&&typeof l=="function"&&x&&jsxRuntime.jsx(be,{size:u,className:"text-feedback-error-text mt-1",children:l(x)})]}),!A&&jsxRuntime.jsx(nt,{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:M?`${M}px`:void 0,zIndex:9999},children:jsxRuntime.jsx(reactAriaComponents.ListBox,{"aria-label":e||c||"Suggestions",className:`max-h-[300px] overflow-auto bg-background-input outline-none ${C}`,children:r?r.map(ie=>{let fe=ie.items.map(xe=>jsxRuntime.jsx(Zt,{id:xe.id,textValue:xe.name,size:u,className:`flex cursor-default items-center gap-2 px-3 ${Rf[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(xe):xe.name},xe.id));if(v){let xe=v(ie,fe);return Oe__namespace.default.isValidElement(xe)&&xe.type===reactAriaComponents.ListBoxSection?xe:jsxRuntime.jsx(reactAriaComponents.ListBoxSection,{children:xe},ie.name)}return jsxRuntime.jsxs(reactAriaComponents.ListBoxSection,{children:[jsxRuntime.jsx(reactAriaComponents.Header,{className:"px-3 py-1 text-sm font-bold text-text-secondary",children:ie.name}),fe]},ie.name)}):ie=>jsxRuntime.jsx(Zt,{id:ie.id,textValue:ie.name,size:u,className:`flex cursor-default items-center gap-2 px-3 ${Rf[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(ie):ie.name},ie.id)})})]})}),A&&jsxRuntime.jsx(at,{isOpen:W,onClose:()=>Z(false),title:e??c??"Search",contentPadding:false,height:"80vh",children:jsxRuntime.jsxs("div",{className:"flex flex-col h-full",children:[jsxRuntime.jsx("div",{className:"p-4 border-b border-border-default",children:jsxRuntime.jsxs(bt,{children:[jsxRuntime.jsx("div",{className:"pointer-events-none absolute left-3 top-[45%] -translate-y-1/2 z-10 flex items-center",children:G?jsxRuntime.jsx(mo,{size:16,color:"text-text-secondary"}):jsxRuntime.jsx(V,{name:"MagnifyingGlass",className:"h-4 w-4 text-text-secondary"})}),jsxRuntime.jsx("input",{ref:I,type:"text",value:R,onChange:re=>le(re.target.value),placeholder:c,autoFocus:true,className:Ft({isInvalid:false,isDisabled:false,isFocused:true,size:"md",className:"pl-10 pr-10"})}),R&&jsxRuntime.jsx(ai,{onClick:()=>{B(""),a?.(null);},size:"md"})]})}),jsxRuntime.jsx("div",{className:"flex-1 overflow-auto",children:jsxRuntime.jsx(reactAriaComponents.ListBox,{"aria-label":e||c||"Suggestions",items:ue,selectedKeys:o?[o]:[],selectionMode:"single",onSelectionChange:re=>{let ie=Array.from(re)[0];ie&&(te(ie),Z(false));},className:"bg-background-input outline-none",children:re=>jsxRuntime.jsx(Zt,{id:re.id,textValue:re.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(re):re.name},re.id)})})]})})]})}function fo({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]=Oe.useState(false),f=Oe.useCallback(()=>g(true),[]);Oe.useEffect(()=>{g(false);},[e]);let x={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"},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"},v={user:"bg-feedback-info-background text-feedback-info-text",team:"bg-feedback-info-background text-feedback-info-text",organization:"bg-feedback-success-background text-feedback-success-text"},S=s==="circle"?"rounded-full":"rounded-md",N=tailwindMerge.twMerge("relative inline-flex items-center justify-center overflow-hidden transition-opacity outline-none",x[i],S,a&&"cursor-pointer hover:opacity-80",u&&"ring-2 ring-background-surface",l),D=(()=>{if(r||o){let M=r?.[0]||"",L=o?.[0]||"";return (M+L).toUpperCase()}if(n){let M=n.split(" "),L=M[0]?.[0]||"",R=M[M.length-1]?.[0]||"";return L===R?L.toUpperCase():(L+R).toUpperCase()}return ""})(),k=()=>{let M={xs:14,sm:16,md:20,lg:24,xl:32}[i];switch(c){case "team":return jsxRuntime.jsx(lucideReact.Users,{size:M});case "organization":return jsxRuntime.jsx(lucideReact.Building2,{size:M});default:return jsxRuntime.jsx(lucideReact.User,{size:M})}},P=M=>{if(m)return c==="organization"?M?"organization-logo":"initials":M?"avatar":"initials"},I=()=>e&&!p?jsxRuntime.jsx("img",{src:e,alt:t||n||"Avatar",className:"h-full w-full object-cover",onError:f,"data-pii-type":P(true),"data-pii-entity":m}):D?jsxRuntime.jsx("span",{className:"font-semibold","data-pii-type":P(false),"data-pii-entity":m,children:D}):k();return jsxRuntime.jsxs("div",{className:"relative inline-block",children:[jsxRuntime.jsx("div",{"data-avatar":true,className:tailwindMerge.twMerge(N,!e||p?v[c]:""),onClick:a,role:a?"button":void 0,tabIndex:a?0:void 0,children:I()}),d&&jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("absolute border-2 border-background-surface",S,b[i],h[i],y[d]),"aria-label":`Status: ${d}`})]})}var rw={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",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"},ow={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"},nw={pill:"rounded-full",rounded:"rounded-lg",square:"rounded-sm"},aw={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 tt({children:e,variant:t="default",size:r="sm",shape:o="square",dot:n=false,dotPosition:a="left",dotPulse:i=false,className:s}){let c=n&&jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("rounded-full bg-current opacity-75",aw[r],i&&"animate-pulse"),"aria-hidden":"true"});return jsxRuntime.jsxs("span",{className:tailwindMerge.twMerge("inline-flex items-center gap-1.5 font-medium",ow[r],nw[o],rw[t],s),children:[n&&a==="left"&&c,e,n&&a==="right"&&c]})}var Qe=({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"}:{},v=`${`${d?"underline decoration-1 underline-offset-4 decoration-current":"hover:underline hover:decoration-1 hover:underline-offset-4 hover:decoration-current"} cursor-pointer`} ${{primary:"text-action-primary hover:text-action-primary-hover visited:text-action-primary",secondary:"text-text-link-default hover:text-text-link-hover visited:text-text-link-default",muted:"text-text-secondary hover:text-text-secondary visited:text-text-secondary",unstyled:""}[a==="brand"?"primary":a==="default"?"secondary":a]} ${r}`,S=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[t,l&&jsxRuntime.jsxs("span",{children:["\xA0","\u2192"]})]});return s?jsxRuntime.jsx("button",{type:"button",className:v,onClick:c,title:n,...g,children:S}):u&&e?jsxRuntime.jsx(u,{href:e,className:v,title:n,onClick:i,...f,...g,children:S}):jsxRuntime.jsx("a",{href:e||"#",className:v,...f,...g,title:n,onClick:i,children:S})};var gw={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 Rs({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=gw[e],p=m[t],g=m.icon,f=!!(i||s),x=!!(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:[x&&jsxRuntime.jsxs("div",{className:"flex-1",children:[r&&jsxRuntime.jsx("div",{className:jt(pt("headingSm"),p.titleColor),children:r}),o&&jsxRuntime.jsx("div",{className:jt(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(Qe,{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(ee,{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(Qe,{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(ee,{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,Ye()),"aria-label":"Dismiss banner",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"})})]})}function Ef({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(Rs,{...o,className:a})})})}function Fo({value:e,children:t,className:r,size:o="sm",iconPosition:n="right"}){let[a,i]=Oe.useState(false),l=jsxRuntime.jsx(ee,{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(Qt,{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 Ms(e){let{children:t,maxWidth:r=600,className:o,...n}=e,{ref:a,width:i}=oa(),[s,c]=Oe__namespace.default.useState(false),[l,d]=Oe__namespace.default.useState(false),u=Oe__namespace.default.useRef(false),m=Oe__namespace.default.useMemo(()=>t&&!e.items&&typeof t!="function"?Oe__namespace.default.Children.toArray(t):null,[t,e.items]);if(Oe__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),x=g.map(b=>{if(Oe__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(Cw,{items:x}),f]})}return jsxRuntime.jsx(reactAriaComponents.Breadcrumbs,{...n,ref:a,className:tailwindMerge.twMerge("flex gap-2",l?"opacity-100":"opacity-0",o),children:t})}function Cw({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(ma,{items:t,align:"left",size:"sm",children:jsxRuntime.jsx(ee,{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 Ds(e){let{className:t,children:r,href:o,copyable:n,copyValue:a,...i}=e;return jsxRuntime.jsx(reactAriaComponents.Breadcrumb,{className:ke(t,"flex items-center gap-2"),...i,children:s=>{let c=s.isCurrent,l=typeof r=="function"?r(s):r;return jsxRuntime.jsx(jsxRuntime.Fragment,{children:c?n?jsxRuntime.jsx(Fo,{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(Qe,{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 Lw({isSelected:e,isDisabled:t}){let r=[Ye,"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 ba({errorMessage:e,...t}){return jsxRuntime.jsxs(reactAriaComponents.Calendar,{...t,children:[jsxRuntime.jsx(Ls,{}),jsxRuntime.jsxs(reactAriaComponents.CalendarGrid,{className:"border-separate [border-spacing:0] [&_td]:p-0 [&_td]:!border-0",children:[jsxRuntime.jsx(Es,{}),jsxRuntime.jsx(reactAriaComponents.CalendarGridBody,{children:r=>jsxRuntime.jsx(reactAriaComponents.CalendarCell,{date:r,className:({isSelected:o,isDisabled:n})=>`${Lw({isSelected:o,isDisabled:n})} border-0`})})]}),e&&jsxRuntime.jsx(reactAriaComponents.Text,{slot:"errorMessage",className:"text-sm text-feedback-error-text",children:e})]})}function Ls(){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(ee,{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(ee,{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 Es(){return jsxRuntime.jsx(reactAriaComponents.CalendarGridHeader,{children:e=>jsxRuntime.jsx(reactAriaComponents.CalendarHeaderCell,{className:"text-xs font-semibold text-text-secondary",children:e})})}var zf=Oe__namespace.createContext(null);function Bo(){let e=Oe__namespace.useContext(zf);if(!e)throw new Error("Carousel components must be used within a CarouselRoot");return e}function Of({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,x]=Oe__namespace.useState(t),b=g?e:f,h=Oe__namespace.useRef(null),[y,v]=Oe__namespace.useState(0),[S,N]=Oe__namespace.useState(typeof a=="boolean"?a:!!a),[w,D]=Oe__namespace.useState(false),k=Oe__namespace.useRef(null),P=Oe__namespace.useRef(null),I=typeof a=="object"&&a!==null&&a.delay?a.delay:i;Oe__namespace.useEffect(()=>{if(h.current){let C=Math.max(1,Math.floor(Number(l)||1)),F=h.current.children;if(F.length===0){v(0);return}let z=Math.ceil(F.length/C);v(z);}},[m,l]);let M=Oe__namespace.useRef(-1);Oe__namespace.useEffect(()=>{if(b!==M.current&&h.current){let C=Array.from(h.current.children);if(C.length===0)return;let F=b*l,z=Math.min(F,C.length-1),G=C[z];G&&typeof G.scrollIntoView=="function"&&(G.scrollIntoView({behavior:"smooth",block:o==="vertical"?"start":"nearest",inline:o==="horizontal"?"start":"nearest"}),M.current=b);}},[b,l,o]);let L=Oe__namespace.useCallback(C=>{let F=C;n?F<0?F=y-1:F>=y&&(F=0):F=Math.max(0,Math.min(C,y-1)),g||x(F),r?.(F);},[g,n,r,y]),R=Oe__namespace.useCallback(()=>{L(b+d);},[b,L,d]),B=Oe__namespace.useCallback(()=>{L(b-d);},[b,L,d]),Y=Oe__namespace.useRef(R);Oe__namespace.useEffect(()=>{Y.current=R;},[R]);let H=y>0&&(n||b<y-1),W=y>0&&(n||b>0),Z=Oe__namespace.useCallback(()=>{N(C=>!C);},[]);Oe__namespace.useEffect(()=>{if(S&&y>1)return k.current=setInterval(()=>{Y.current();},I),()=>{k.current&&(clearInterval(k.current),k.current=null);}},[S,y,I]);let q=Oe__namespace.useCallback(()=>{k.current&&(clearInterval(k.current),k.current=null);},[]),Q=Oe__namespace.useCallback(()=>{S&&y>1&&(k.current=setInterval(()=>{Y.current();},I));},[S,y,I]),T=Oe__namespace.useCallback(C=>{if(!s)return;D(true);let F="touches"in C&&C.touches&&C.touches.length>0?C.touches[0].clientX:"clientX"in C?C.clientX:0,z="touches"in C&&C.touches&&C.touches.length>0?C.touches[0].clientY:"clientY"in C?C.clientY:0;P.current={x:F,y:z};},[s]),E=Oe__namespace.useCallback(C=>{if(!w||!P.current)return;let F="touches"in C&&C.touches&&C.touches.length>0?C.touches[0].clientX:"clientX"in C?C.clientX:0,z="touches"in C&&C.touches&&C.touches.length>0?C.touches[0].clientY:"clientY"in C?C.clientY:0,G=F-P.current.x,oe=z-P.current.y,ue=50;o==="horizontal"&&Math.abs(G)>ue?(G>0?B():R(),D(false),P.current=null):o==="vertical"&&Math.abs(oe)>ue&&(oe>0?B():R(),D(false),P.current=null);},[w,o,R,B]),O=Oe__namespace.useCallback(()=>{D(false),P.current=null;},[]),A={currentPage:b,totalPages:y,orientation:o,loop:n,spacing:c,slidesPerView:l,goToPage:L,goToNext:R,goToPrev:B,canGoNext:H,canGoPrev:W,isAutoplayActive:S,toggleAutoplay:Z,itemsRef:h,isDragging:w,allowMouseDrag:s,handleDragStart:T,handleDragMove:E,handleDragEnd:O};return jsxRuntime.jsx(zf.Provider,{value:A,children:jsxRuntime.jsx("div",{...p,className:tailwindMerge.twMerge("relative w-full",o==="vertical"?"h-full":"",u),onMouseEnter:q,onMouseLeave:Q,children:m})})}function Hf({className:e,children:t,...r}){let{itemsRef:o,orientation:n,spacing:a,isDragging:i,allowMouseDrag:s,handleDragStart:c,handleDragMove:l,handleDragEnd:d}=Bo();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 Wf({index:e,className:t,children:r,...o}){let{orientation:n,slidesPerView:a}=Bo();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 Gf({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 Uf({className:e,children:t,...r}){let{goToPrev:o,canGoPrev:n}=Bo();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 Kf({className:e,children:t,...r}){let{goToNext:o,canGoNext:n}=Bo();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 Ud({index:e,className:t,children:r,...o}){let{currentPage:n,goToPage:a}=Bo(),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 Yf({className:e,...t}){let{totalPages:r}=Bo();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(Ud,{index:n},n))})}function Jf({className:e,children:t,...r}){let{isAutoplayActive:o,toggleAutoplay:n}=Bo();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 Xf({className:e,...t}){let{currentPage:r,totalPages:o}=Bo();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 zw="focus:ring-action-primary",Ow="bg-action-primary border-action-primary text-[color:var(--color-action-primary-text)] hover:bg-action-primary-hover hover:border-action-primary-hover";function Kd(e){return jsxRuntime.jsxs(reactAriaComponents.CheckboxGroup,{...e,className:ke(e.className,"flex flex-col gap-2"),children:[jsxRuntime.jsx(ze,{children:e.label}),e.children,e.description&&jsxRuntime.jsx(Te,{children:e.description}),jsxRuntime.jsx(be,{children:typeof e.errorMessage=="function"?void 0:e.errorMessage})]})}function Hw({isDisabled:e}){return `flex gap-2 items-center group text-sm transition ${e?"text-text-disabled":"text-text-secondary"}`}function Ww({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=zw,i="";return r?i="border-border-muted bg-background-muted":t?i="border-feedback-error-border bg-feedback-error-background":e||o?i=Ow:i="bg-background-input border-border-input hover:border-border-focus",`${n} ${a} ${i}`}var jf="w-4 h-4 text-current group-disabled:text-text-disabled";function vn(e){let{children:t,variant:r,...o}=e;return jsxRuntime.jsx(reactAriaComponents.Checkbox,{...o,className:reactAriaComponents.composeRenderProps(e.className,(n,a)=>`${Hw(a)} ${n||""}`),children:n=>{let{isSelected:a,isIndeterminate:i,...s}=n,c=jsxRuntime.jsx("div",{className:Ww({isSelected:a,isIndeterminate:i,...s}),children:i?jsxRuntime.jsx(lucideReact.Minus,{"aria-hidden":true,className:jf}):a?jsxRuntime.jsx(lucideReact.Check,{"aria-hidden":true,className:jf}):null});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[c,typeof t=="function"?t(n):t]})}})}var Kw={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 Qf(e){return !e||e==="default"?"secondary":e==="brand"?"primary":e}var Yw={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"},Jw="opacity-75 cursor-not-allowed pointer-events-none";function Zf(e){let{variant:t,size:r,isDisabled:o,isClickable:n,className:a}=e,i=r==="xs"?"text-xs":We[r].text;return tailwindMerge.twMerge("inline-flex items-center justify-center rounded-full font-medium transition-colors","whitespace-nowrap select-none",Yw[r],i,Kw[t],n&&!o&&"cursor-pointer",o&&Jw,a)}function $r({children:e,onRemove:t,size:r="md",variant:o="secondary",isRemovable:n=true,isDisabled:a=false,className:i,onClick:s}){let c=!!s&&!a,l=n&&t&&!a,d=f=>{f.stopPropagation(),f.preventDefault(),t&&!a&&t();},u=()=>{s&&!a&&s();},m=r==="xs"?10:r==="sm"?12:r==="md"?14:16,g=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("span",{className:"truncate",children:e}),l?c?jsxRuntime.jsx("span",{onClick:d,onKeyDown:f=>{(f.key==="Enter"||f.key===" ")&&(f.preventDefault(),d(f));},role:"button",tabIndex:0,className:"flex-shrink-0 rounded-full p-0.5 hover:bg-text-primary/10 transition-colors cursor-pointer","aria-label":"Remove",children:jsxRuntime.jsx(V,{name:"X",size:m,className:"text-current opacity-70 hover:opacity-100"})}):jsxRuntime.jsx("button",{type:"button",onClick:d,className:"flex-shrink-0 rounded-full p-0.5 hover:bg-text-primary/10 transition-colors cursor-pointer","aria-label":"Remove",tabIndex:-1,children:jsxRuntime.jsx(V,{name:"X",size:m,className:"text-current opacity-70 hover:opacity-100"})}):null]});return c?jsxRuntime.jsx("button",{type:"button",onClick:u,className:Zf({variant:Qf(o),size:r,isDisabled:a,isClickable:c,className:i}),disabled:a,children:g}):jsxRuntime.jsx("span",{className:Zf({variant:Qf(o),size:r,isDisabled:a,isClickable:c,className:i}),children:g})}function eg({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:x}){let[b,h]=Oe.useState(""),[y,v]=Oe.useState([]),[S,N]=Oe.useState(false),[w,D]=Oe.useState(false),[k,P]=Oe.useState(-1),I=Po(b,300),M=Oe.useRef(null),L=Oe.useRef(null),{isFocused:R,handleFocus:B,handleBlur:Y}=Nr(),H=Oe.useId(),W=Oe.useCallback(A=>{if(!u||!A.trim())return;let C=A.trim();if(d.includes(C)){h(""),D(false),v([]),P(-1);return}u([...d,C]),h(""),D(false),v([]),P(-1),M.current?.focus();},[d,u]),Z=Oe.useCallback(A=>{u&&u(d.filter(C=>C!==A));},[d,u]);Oe.useEffect(()=>{if(!p)return;let A=true;return (async()=>{let F=I.trim();if(!F){A&&(N(false),v([]),D(false));return}N(true);try{let z=await p(F);if(!A)return;v(z),D(!0);}catch(z){if(!A)return;console.error("Error fetching suggestions:",z),v([]),D(false);}finally{A&&N(false);}})(),()=>{A=false;}},[I,p]),Oe.useEffect(()=>{if(p||!m)return;if(!I.trim()){v([]),D(false);return}let A=m.filter(C=>C.name.toLowerCase().includes(I.toLowerCase())).map(C=>C.id);v(A),D(A.length>0||I.trim().length>0);},[I,m,p]);let q=Oe.useMemo(()=>{let A=y.filter(C=>!d.includes(C));return b.trim()&&!A.includes(b.trim())&&!d.includes(b.trim())?[...A,`Create tag: "${b.trim()}"`]:A},[y,b,d]),Q=Oe.useCallback(A=>{h(A.target.value),P(-1),A.target.value&&D(true);},[]),T=Oe.useCallback(A=>{i||(A.startsWith("Create tag:")?W(b):W(A));},[W,b,i]),E=Oe.useCallback(A=>{if(!i)switch(A.key){case "Enter":case ",":if(A.preventDefault(),k>=0&&k<q.length){let C=q[k];C.startsWith("Create tag:")?W(b):W(C);}else b.trim()&&W(b.trim());break;case "Backspace":!b&&d.length>0&&(A.preventDefault(),Z(d[d.length-1]));break;case "ArrowDown":A.preventDefault(),w&&P(C=>C<q.length-1?C+1:C);break;case "ArrowUp":A.preventDefault(),w&&P(C=>C>0?C-1:-1);break;case "Escape":D(false),P(-1);break}},[i,b,d,q,k,w,W,Z]);Oe.useEffect(()=>{let A=C=>{L.current&&C.target instanceof Node&&!L.current.contains(C.target)&&D(false);};return document.addEventListener("mousedown",A),()=>document.removeEventListener("mousedown",A)},[]);let O=()=>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]",Io({isInvalid:s,isDisabled:i,isFocused:R}),"bg-background-input",o==="sm"&&"px-2 py-1 h-[32px]",o==="md"&&"px-2.5 py-1.5 h-[40px]",o==="lg"&&"px-3 py-2 h-[44px]",o==="xl"&&"px-3.5 py-2.5 h-[48px]",i&&"opacity-50 cursor-not-allowed bg-background-muted");return jsxRuntime.jsxs("div",{ref:L,className:tailwindMerge.twMerge("relative flex flex-col gap-1",x),children:[e&&jsxRuntime.jsx(ze,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(bt,{children:jsxRuntime.jsxs("div",{className:O(),onClick:()=>!i&&M.current?.focus(),children:[d.map(A=>jsxRuntime.jsx($r,{variant:g,size:"xs",onRemove:()=>Z(A),isDisabled:i,className:"shrink-0 max-h-full",children:A},A)),jsxRuntime.jsx("input",{ref:M,type:"text",role:"combobox","aria-expanded":w,"aria-haspopup":"listbox","aria-controls":H,"aria-autocomplete":"list",value:b,onChange:Q,onKeyDown:E,onFocus:A=>B(A),onBlur:A=>Y(A),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"}})]})}),w&&(b||q.length>0)&&jsxRuntime.jsx("div",{id:H,role:"listbox",className:tailwindMerge.twMerge("absolute z-50 mt-1 rounded-lg border border-border-default","max-h-60 overflow-auto bg-background-surface shadow-lg","left-0 right-0 top-full"),children:S?jsxRuntime.jsx("div",{className:"px-3 py-2 text-sm text-text-secondary",children:"Loading..."}):q.length>0?q.map((A,C)=>jsxRuntime.jsx("div",{role:"option","aria-selected":C===k,className:tailwindMerge.twMerge("cursor-pointer px-3 py-2 text-sm transition-colors","hover:bg-background-hover",C===k&&"bg-background-selected",A.startsWith("Create tag:")&&"italic text-text-secondary"),onClick:()=>T(A),children:A},A)):b&&jsxRuntime.jsx("div",{className:"px-3 py-2 text-sm text-text-secondary",children:"No suggestions found"})}),t&&jsxRuntime.jsx(Te,{size:o,className:"mt-1",children:t}),f&&typeof r=="string"&&jsxRuntime.jsx(be,{size:o,className:"text-feedback-error-text mt-1",children:r}),f&&typeof r=="function"&&c&&jsxRuntime.jsx(be,{size:o,className:"text-feedback-error-text mt-1",children:r(c)})]})}var rN={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')},oN={github:()=>import('ace-builds/src-noconflict/theme-github'),github_dark:()=>import('ace-builds/src-noconflict/theme-github_dark')},nN={"ext-language-tools":()=>import('ace-builds/src-noconflict/ext-language_tools')},ci=new Set;async function Jd(e,t){ci.has(e)||(await t(),ci.add(e));}async function aN(e,t,r){await Promise.all([Jd(`language:${e}`,rN[e]),Jd(`theme:${t}`,oN[t]),r?Jd("extension:language-tools",nN["ext-language-tools"]):void 0]);}function rg(e,t,r){let o=ci.has(`language:${e}`)&&ci.has(`theme:${t}`);return r?o&&ci.has("extension:language-tools"):o}function og({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=Oe.useRef(null),[x,b]=Oe.useState(()=>rg(o,n,!t)),h=Oe.useMemo(()=>{if(a)return a;let y=(e.match(/\n/g)||[]).length+1;return `${Math.max(l,Math.min(y,d))*c+10}px`},[e,a,c,l,d]);return Oe.useEffect(()=>{let y=false,v=!t;return rg(o,n,v)?(b(true),()=>{y=true;}):(b(false),aN(o,n,v).then(()=>{y||b(true);}).catch(S=>{y||b(true),console.error("Failed to load Ace editor resources",S);}),()=>{y=true;})},[o,t,n]),Oe.useEffect(()=>{x&&f.current?.editor&&f.current.editor.resize();},[h,x]),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-hidden rounded-md border border-border-input",s),style:{width:i,height:h},children:x?jsxRuntime.jsx(eN__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 ag=Oe__namespace.createContext({variant:"contained",density:"comfortable",showDividers:true}),ig=Oe__namespace.createContext(null),dN={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"},ng={true:"divide-y divide-border-default",false:"gap-3"},uN={comfortable:"px-5 py-3",compact:"px-4 py-2.5"},pN={comfortable:"px-5 pt-0",compact:"px-4 pt-0"},mN={comfortable:"h-4 w-4",compact:"h-3.5 w-3.5"};function Qd(){return Oe__namespace.useContext(ag)}function fN(e){let t=Oe__namespace.useContext(ig);if(!t)throw new Error(`${e} must be used within a <CollapseItem>`);return t}function gN({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 bN({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=uN[r];return tailwindMerge.twMerge(i,Ye(),l,s,c,o==="plain"&&n?"px-0":"",a)}function xN({density:e,showDividers:t,className:r}){let o="text-text-primary",n=pN[e];return tailwindMerge.twMerge(o,n,t?"":"rounded-b-lg",r)}function xa({variant:e="contained",density:t="comfortable",showDividers:r=true,className:o,...n}){let a=Oe__namespace.useMemo(()=>({variant:e,density:t,showDividers:r}),[e,t,r]),i=tailwindMerge.twMerge("flex w-full flex-col",dN[e],r?ng.true:ng.false,e==="plain"&&r?"border-y border-border-default/60":"");return jsxRuntime.jsx(ag.Provider,{value:a,children:jsxRuntime.jsx(reactAriaComponents.DisclosureGroup,{...n,className:ke(o,i)})})}function zo({className:e,children:t,...r}){let{variant:o,showDividers:n}=Qd();return jsxRuntime.jsx(reactAriaComponents.Disclosure,{...r,className:reactAriaComponents.composeRenderProps(e,a=>gN({variant:o,showDividers:n,className:a})),children:a=>jsxRuntime.jsx(ig.Provider,{value:a,children:t})})}zo.displayName="CollapseItem";function Oo({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=fN("CollapseHeader"),{density:m,variant:p,showDividers:g}=Qd(),f=mN[m];return jsxRuntime.jsx(reactAriaComponents.Button,{...d,slot:"trigger","data-expanded":u.isExpanded?"true":void 0,className:reactAriaComponents.composeRenderProps(l,(x,b)=>bN({isDisabled:b.isDisabled??false,isPressed:b.isPressed??false,density:m,variant:p,showDividers:g,className:x})),children:x=>{let b=x.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,y=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"&&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:[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"&&y]})}})}Oo.displayName="CollapseHeader";function Ho({className:e,children:t,...r}){let{density:o,showDividers:n}=Qd();return jsxRuntime.jsx(reactAriaComponents.DisclosurePanel,{...r,className:reactAriaComponents.composeRenderProps(e,a=>xN({density:o,showDividers:n,className:a})),children:t})}Ho.displayName="CollapseContent";function ha(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 _d(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 CN({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[x,b]=Oe.useState(d||""),[h,y]=Oe.useState(l||d||""),[v,S]=Oe.useState(false),[N,w]=Oe.useState(null),{isFocused:D,handleFocus:k,handleBlur:P}=Nr(),I=l!==void 0?l:x;Oe.useEffect(()=>{l!==void 0&&y(l);},[l]);let M=I?!ha(I):false,L=Oe.useCallback(Y=>{if(y(Y),ha(Y)){let H=_d(Y);u?u(H):b(H);}else Y===""&&(u?u(""):b(""));},[u]),R=Oe.useCallback(Y=>{let H=_d(Y);y(H),u?u(H):b(H);},[u]),B=Oe.useCallback(Y=>{if(ha(h)){let H=_d(h);y(H),u&&H!==I?u(H):!u&&H!==x&&b(H);}P(Y,f.onBlur);},[h,I,x,u,P,f.onBlur]);return jsxRuntime.jsx(reactAriaComponents.TextField,{...f,isRequired:a,className:ke(s,"group flex flex-col"),children:({isDisabled:Y})=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(ze,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(bt,{children:jsxRuntime.jsxs("div",{className:"flex gap-2",children:[jsxRuntime.jsxs("div",{className:"flex-1 relative",children:[jsxRuntime.jsx(ws,{size:o,disabled:Y,type:"text",value:h,placeholder:m,onFocus:H=>k(H,f.onFocus),onBlur:B,onChange:H=>L(H.target.value),className:tailwindMerge.twMerge(Ft({isInvalid:M,isDisabled:Y,isFocused:D,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:We[o].height},children:jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-6 h-6 rounded border shadow-sm",ha(I)?"border-border-default":"border-border-default bg-background-muted"),style:ha(I)?{backgroundColor:I}:void 0,"aria-hidden":"true",children:!ha(I)&&jsxRuntime.jsx("div",{className:"w-full h-full flex items-center justify-center",children:jsxRuntime.jsx("div",{className:"w-3 h-3 rounded-full border-2 border-border-muted"})})})})]}),jsxRuntime.jsx("div",{ref:w,children:jsxRuntime.jsx(ee,{variant:"secondary",size:o,icon:"Palette",onPress:()=>S(!v),isDisabled:Y,className:"flex-shrink-0",children:"Pick"})})]})}),g?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(be,{size:o,children:r}):typeof r=="function"&&c?jsxRuntime.jsx(be,{size:o,children:r(c)}):t?jsxRuntime.jsx(Te,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(be,{size:o,className:"mt-1",children:r}):typeof r=="function"&&c?jsxRuntime.jsx(be,{size:o,className:"mt-1",children:r(c)}):t?jsxRuntime.jsx(Te,{size:o,className:"mt-1",children:t}):null}),v&&N&&jsxRuntime.jsx(nt,{triggerRef:{current:N},isOpen:v,onOpenChange:S,placement:"bottom end",className:"bg-background-input shadow-xl border border-border-input/20 backdrop-blur-sm rounded-lg p-4",children:jsxRuntime.jsxs("div",{className:"flex flex-col gap-4",children:[jsxRuntime.jsx(reactColorful.HexColorPicker,{color:I||"#000000",onChange:R,style:{width:"200px",height:"200px"}}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("div",{className:"w-10 h-10 rounded border border-border-default shadow-sm flex-shrink-0",style:{backgroundColor:I||"#000000"}}),jsxRuntime.jsx("div",{className:"flex-1 text-text-primary text-[length:var(--control-text-sm)] font-mono",children:I||"#000000"})]})]})})]})})}function cg({isOpen:e,onClose:t,onConfirm:r,title:o,message:n,confirmLabel:a="Confirm",cancelLabel:i="Cancel",confirmVariant:s,isDestructive:c=false,isLoading:l=false,maxWidth:d="500px",minWidth:u="400px"}){return jsxRuntime.jsx(Sr,{isOpen:e,onClose:t,title:o,maxWidth:d,minWidth:u,primaryAction:{label:a,onPress:()=>{r();},variant:s??(c?"destructive":"primary"),isLoading:l},secondaryAction:{label:i,onPress:t,variant:"secondary",isDisabled:l},children:jsxRuntime.jsx("div",{className:"text-text-primary",children:n})})}function dg({isConnected:e,connectedAt:t,disconnectedAt:r,showTimestamp:o=false,isLoading:n,size:a="sm",shape:i="pill",...s}){if(n)return jsxRuntime.jsx(K,{className:"inline-flex h-6 w-24"});let c=e?"Connected":"Disconnected",l=e?"success":"neutral",d=null;if(o){if(e&&t)d=ts(t);else if(!e&&r){let u=ts(r);d=u?`Offline ${u}`:null;}}return jsxRuntime.jsxs("div",{className:"inline-flex flex-col gap-1",children:[jsxRuntime.jsx(tt,{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 ug({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(),x=({children:h,className:y})=>a?i?jsxRuntime.jsx(i,{href:a,className:y,children:h}):jsxRuntime.jsx(Qe,{href:a,variant:"unstyled",className:tailwindMerge.twMerge("hover:underline",y),asButton:false,children:h}):jsxRuntime.jsx("span",{className:y,children:h}),b=c==="vertical";return u?jsxRuntime.jsx(Ge,{variant:s,className:tailwindMerge.twMerge("flex flex-col",m),children:jsxRuntime.jsx(Ge.Content,{className:"flex items-center flex-1",children:jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("w-full",b?"flex flex-col items-center gap-4":"flex items-center gap-4"),children:[jsxRuntime.jsx(K,{width:56,height:56,className:"rounded flex-shrink-0"}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge(b?"w-full text-center":"flex-1","space-y-2"),children:[jsxRuntime.jsx(K,{width:"70%",height:20,className:tailwindMerge.twMerge(b&&"mx-auto")}),jsxRuntime.jsx(K,{width:"100%",height:16,className:tailwindMerge.twMerge(b&&"mx-auto")})]})]})})}):jsxRuntime.jsx(Ge,{variant:s,className:tailwindMerge.twMerge("group/card flex flex-col",m),children:jsxRuntime.jsx(Ge.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(fo,{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(x,{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(Qe,{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(Qe,{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:na(o)})]})]})]})]})})})}function Fs({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 x=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],y=`${e} ${t}`.trim(),S={strong:"font-semibold text-text-primary",high:"font-semibold text-text-primary",normal:"text-text-primary",low:"text-text-secondary"}[l],N=({children:w,className:D})=>i?s?jsxRuntime.jsx(s,{href:i,className:D,children:w}):jsxRuntime.jsx(Qe,{href:i,variant:c,className:tailwindMerge.twMerge("hover:underline",D),asButton:false,children:w}):jsxRuntime.jsx("span",{className:D,children:w});return p?n==="inline"?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",h.gap,g),children:[jsxRuntime.jsx(K,{width:h.skeletonAvatar,height:h.skeletonAvatar,className:"flex-shrink-0 rounded-full"}),jsxRuntime.jsx(K,{width:h.skeletonText,height:h.skeletonAvatar*.5})]}):jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",h.gap,g),children:[jsxRuntime.jsx(K,{width:h.skeletonAvatar,height:h.skeletonAvatar,className:"flex-shrink-0 rounded-full"}),jsxRuntime.jsxs("div",{className:"flex flex-col gap-1",children:[jsxRuntime.jsx(K,{width:h.skeletonText,height:16}),d&&jsxRuntime.jsx(K,{width:h.skeletonSecondary,height:12})]})]}):n==="inline"?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",h.gap,g),children:[jsxRuntime.jsxs(N,{className:tailwindMerge.twMerge("flex items-center",h.gap),children:[jsxRuntime.jsx(fo,{firstName:e,lastName:t,src:o,size:h.avatarSize,variant:"user",shape:x,className:"flex-shrink-0",piiEntity:f}),jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("leading-normal truncate hover:text-text-primary",S,h.textSize,i&&"hover:underline hover:decoration-1 hover:underline-offset-4"),"data-pii-type":f?"full-name":void 0,"data-pii-entity":f,children:y})]}),u]}):jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center justify-start",h.gap,g),children:[jsxRuntime.jsx(fo,{firstName:e,lastName:t,src:o,size:h.avatarSize,variant:"user",shape:x,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(N,{className:tailwindMerge.twMerge("leading-normal truncate hover:text-text-primary",S,h.textSize,i&&"hover:underline hover:decoration-1 hover:underline-offset-4"),children:jsxRuntime.jsx("span",{"data-pii-type":f?"full-name":void 0,"data-pii-entity":f,children:y})}),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})]})]})}function mg({children:e,className:t}){let r=Oe.useRef(null),[o,n]=Oe.useState({current:"base",isSm:false,isMd:false,isLg:false,isXl:false,is2Xl:false,isMobile:true,isDesktop:false});return Oe.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(yc.Provider,{value:o,children:jsxRuntime.jsx("div",{ref:r,className:t,style:{width:"100%"},children:e})})}var Bs={duration:.5,ease:"easeInOut"},kr=Oe.createContext(null),Nn=()=>{let e=Oe.useContext(kr);if(!e)throw new Error("useChartContext must be used within a ChartContextProvider");return e};function Vs(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 Go=({data:e,color:t="var(--color-viz-default)",baseline:r,fillOpacity:o=.1,showLine:n=true,maxGapMs:a,animate:i=true})=>{let s=Oe.useId(),c=Oe.useId(),{xScale:l,yScale:d,animationSettings:u}=Nn(),m=l.range(),p=d.range(),g=(y,v)=>typeof r=="function"?r(y,v):r??0,f=y=>y.chartYValue??y.yValue,x=a!=null?Vs(e,a):e,b={transformOrigin:`0 ${p[0]}px`,transformBox:"fill-box",isolation:"isolate"},h=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[r===void 0?jsxRuntime.jsx(shape.AreaClosed,{data:x,x:y=>y?l(y.xValue):0,y:y=>y?d(f(y)):0,yScale:d,defined:y=>y!=null,fill:`url(#${s})`,curve:curve.curveLinear}):jsxRuntime.jsx(shape.Area,{data:x,x:y=>y?l(y.xValue):0,y0:(y,v)=>y?d(g(y,v)):0,y1:y=>y?d(f(y)):0,defined:y=>y!=null,fill:t,fillOpacity:o,curve:curve.curveLinear}),n?jsxRuntime.jsx(shape.LinePath,{data:x,x:y=>y?l(y.xValue):0,y:y=>y?d(f(y)):0,defined:y=>y!=null,stroke:t,strokeWidth:3,curve:curve.curveLinear}):null]});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("defs",{children:[jsxRuntime.jsxs("linearGradient",{id:s,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[jsxRuntime.jsx("stop",{offset:"50%",stopColor:t,stopOpacity:o}),jsxRuntime.jsx("stop",{offset:"100%",stopColor:t,stopOpacity:0})]}),i&&jsxRuntime.jsx("clipPath",{id:c,children:jsxRuntime.jsx("rect",{x:m[0],y:p[1],width:m[1]-m[0],height:p[0]-p[1]})})]}),i?jsxRuntime.jsx("g",{clipPath:`url(#${c})`,children:jsxRuntime.jsx(framerMotion.motion.g,{initial:{scaleY:0},animate:{scaleY:1},transition:{duration:u.duration,ease:u.ease},style:b,children:h})}):jsxRuntime.jsx("g",{style:b,children:h})]})};var Os=({data:e,color:t="var(--color-viz-default)",opacity:r=1,categoryColors:o={}})=>{let{xScale:n,yScale:a,animationSettings:i}=Nn(),s=Oe.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),x=a(p.yValue),b=a(0),h=Math.min(x,b),y=Math.abs(x-b),v=d[g+1],S=v?Math.abs(n(v.xValue)-f):m,N=p.category&&o[p.category]?o[p.category]:t;return jsxRuntime.jsx(shape.Bar,{x:f-S/2,y:h,width:S,height:y,fill:N,opacity:r,rx:1},p.xValue.getTime())})})})]})};function GN(e){return e>=1e9?"GW":e>=1e6?"MW":e>=1e3?"kW":"W"}function UN(e){return e>=1e3?"kA":e<1?"mA":"A"}function KN(e){return e>=1e3?"kV":e<1?"mV":"V"}function YN(e){return e>=1e6?"M\u03A9":e>=1e3?"k\u03A9":e<1?"m\u03A9":"\u03A9"}function va(e,t){if(typeof e!="object"||e===null)return e;switch(e.type){case "energy":{if(e.unit||e.autoScale===false)return e;let r=e.sourceUnit?zc[e.sourceUnit]:1;return {...e,unit:Vc(t*r)}}case "power":return e.unit||e.autoScale===false?e:{...e,unit:GN(t)};case "current":return e.unit||e.autoScale===false?e:{...e,unit:UN(t)};case "voltage":return e.unit||e.autoScale===false?e:{...e,unit:KN(t)};case "resistance":return e.unit||e.autoScale===false?e:{...e,unit:YN(t)};default:return e}}var JN=e=>e.baselineValue??0,Ae={top:8,right:0,bottom:50,left:60};function Or(e={type:"number"}){let t=i=>{if(i==null)return "-";let s=Xr({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=Xr({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 tu=(e,t)=>{let r=d3Array.extent(e,o=>o.xValue);return scale.scaleTime({range:[Ae.left,t-Ae.right],domain:r,nice:true})},ui=(e,t,r,o)=>{let n=Or(r);if(o)return scale.scaleLinear({range:[t-Ae.bottom,Ae.top],domain:o,nice:true});let a=d3Array.min(e,l=>Math.min(l.yValue,l.chartYValue??l.yValue))||0,i=d3Array.max(e,l=>Math.max(l.yValue,l.chartYValue??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-Ae.bottom,Ae.top],domain:[s,c],nice:true})};function XN(e,t=12,r="system-ui"){if(typeof window>"u"||typeof document>"u")return e.length*(t*.6);let o=document.createElement("canvas"),n=null;try{n=o.getContext("2d");}catch{return e.length*(t*.6)}return n?(n.font=`${t}px ${r}`,n.measureText(e).width):e.length*(t*.6)}function Ca(e,t=12,r="system-ui"){return e.length===0?0:Math.max(...e.map(o=>XN(o,t,r)))}function pi(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function jN(e,t,r=12,o=false){if(!pi(t[0])||!pi(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=sd({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=Ca(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]],x=i/36e5,b;x<=1?b=6e4:x<=6?b=5*6e4:x<=48?b=60*6e4:x<=168?b=360*6e4:b=1440*6e4;for(let h=1;h<g-1;h++){let y=h/(g-1),v=n+i*y,S=Math.round(v/b)*b,N=f[f.length-1].getTime(),w=S>N?S:N+b;if(w>=a)break;f.push(new Date(w));}return f.push(t[1]),f}var qN=({top:e,scale:t,width:r})=>{let o=t.domain(),n=[o[0],o[o.length-1]],a=pi(n[0])&&pi(n[1]),i=r<400,s=a?n[0].getTime():0,c=a?n[1].getTime():0,l=Oe.useMemo(()=>a?sd({start:n[0],end:n[1]},{compact:i}):()=>"",[s,c,i,a]),d=Oe.useMemo(()=>jN(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 pi(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 Sa(e,t=12){let r=t*2.5,o=Math.floor(e/r);return Math.max(2,Math.min(6,o))}var ru=12,QN=({left:e,scale:t,yFormatter:r,height:o})=>{let n=Or(r),a=Oe.useMemo(()=>!o||o<=0?5:Sa(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:ru,textAnchor:"end"},c=t(i),[l,d]=t.range(),u=Math.min(l,d),m=Math.max(l,d);return c-u<ru/2?{...s,verticalAnchor:"start"}:m-c<ru/2?{...s,verticalAnchor:"end"}:{...s,dy:"0.33em"}}})},ZN=({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"})}),_N=({left:e,scale:t})=>jsxRuntime.jsx(axis.Axis,{orientation:"left",left:e,scale:t,stroke:"var(--color-border-muted)",tickStroke:"var(--color-border-muted)",tickLabelProps:()=>({fill:"var(--color-text-secondary)",fontSize:12,textAnchor:"end",dx:"-0.25em",dy:"0.33em"})}),$N=({top:e,scale:t,yFormatter:r,width:o})=>{let n=Or(r),a=Oe.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"})})},Tr={Bottom:qN,Left:QN,CategoryBottom:ZN,CategoryLeft:_N,NumericBottom:$N};var Uo=({data:e,formatter:t,label:r,categoryLabels:o})=>{if(!e)return null;let n=Oe__namespace.default.useContext(kr),a=o??n?.categoryLabels,i=n?.xScale,s=n?.width,c=n?.height,l=Or(t),d=h=>{if(h.baselineValue===void 0)return l.format(h.value);let y=Math.min(h.baselineValue,h.value),v=Math.max(h.baselineValue,h.value);return `${l.format(y)} \u2013 ${l.format(v)}`},u=Oe__namespace.default.useRef(null),[m,p]=Oe__namespace.default.useState({x:0,y:0,translate:"translate(-50%, -100%)"});Oe__namespace.default.useEffect(()=>{if(!u.current)return;let y=u.current.getBoundingClientRect(),v=s??window.innerWidth,S=c??window.innerHeight,N=e.x,w=e.y,D=16,k=e.x+y.width+D<=v,P=e.x-y.width-D>=0,I;e.position==="left"?I=P||!k:I=!k&&P;let M=I?"translate(calc(-100% - 16px), -50%)":"translate(16px, -50%)";if(!k&&!P){let L=v-e.x,R=e.x;L<=R?(N=v,M="translate(-100%, -50%)"):(N=0,M="translate(0, -50%)");}w-y.height/2<0?w=y.height/2:w+y.height/2>S&&(w=S-y.height/2),p({x:N,y:w,translate:M});},[e.x,e.y,e.position,s,c]);let g=i?.domain(),x=g&&g.length===2&&g.every(h=>h instanceof Date)?Km({start:g[0],end:g[1]}):null,b=r||(x&&e.xValue instanceof Date?x(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(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))})]},h.label))}),(()=>{let h=e.series[e.series.length-1],y=e.eventItems?.length?e.eventItems:[{label:h.label,color:h.color,metadata:e.eventMetadata}];return jsxRuntime.jsx("div",{className:"space-y-2",children:y.map((v,S)=>jsxRuntime.jsxs("div",{children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("div",{className:"h-2 w-2 rounded-full",style:{backgroundColor:v.color}}),jsxRuntime.jsx("span",{className:"font-medium text-text-primary",children:v.label})]}),v.metadata&&Object.keys(v.metadata).length>0&&jsxRuntime.jsx("div",{className:"ml-4 mt-1 space-y-0.5 text-xs text-text-secondary",children:Object.entries(v.metadata).map(([N,w])=>jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsxs("span",{className:"capitalize",children:[N,":"]}),jsxRuntime.jsx("span",{className:"font-medium",children:w})]},N))})]},`${v.label}-${S}`))})})()]}):jsxRuntime.jsx("ul",{className:"list-none p-0",children:e.series.map(h=>jsxRuntime.jsxs("li",{className:"py-0.5",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsxs("span",{className:"font-medium text-text-primary",children:[h.label,":"]}),jsxRuntime.jsx("span",{className:"text-text-secondary",children:d(h)})]}),h.category&&jsxRuntime.jsxs("div",{className:"mt-0.5 flex items-center gap-2",children:[jsxRuntime.jsx("div",{className:"h-3 w-3",style:{backgroundColor:h.categoryColor||h.color,borderRadius:"1px"}}),jsxRuntime.jsx("span",{className:"text-sm text-text-secondary",children:a?.[h.category]||h.category})]}),h.extraTooltipRows&&h.extraTooltipRows.length>0&&jsxRuntime.jsx("div",{className:"mt-0.5 space-y-0.5",children:h.extraTooltipRows.map(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))})]},h.label))})]})})};var lk={top:20,right:20,bottom:50,left:60},wg=({data:e,width:t,height:r,margin:o=lk,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":x="Category bar chart",orientation:b="vertical",showTooltip:h=true})=>{let[y,v]=Oe.useState(null),[S,N]=Oe.useState(null),[w,D]=Oe.useState(null),[k,P]=Oe.useState(t??600),[I,M]=Oe.useState(r??300),L=Oe.useRef(null),R=p??y,B=Oe.useId(),Y=n||"var(--color-viz-default)";Oe.useEffect(()=>{if(t!==void 0&&r!==void 0){P(t),M(r);return}if(!L.current)return;let T=new ResizeObserver(E=>{for(let O of E)t===void 0&&P(O.contentRect.width),r===void 0&&M(O.contentRect.height);});return T.observe(L.current),t===void 0&&P(L.current.offsetWidth),r===void 0&&M(L.current.offsetHeight||300),()=>{T.disconnect();}},[t,r]);let{xScale:H,yScale:W,innerWidth:Z,innerHeight:q}=Oe.useMemo(()=>{let T=k-o.left-o.right,E=I-o.top-o.bottom;if(b==="horizontal"){let A=d3Array.max(e,C=>C.value)||0;return {xScale:scale.scaleLinear({range:[0,T],domain:[0,A*1.1],nice:true}),yScale:scale.scaleBand({range:[0,E],domain:e.map(C=>C.label),padding:d}),innerWidth:T,innerHeight:E}}let O=d3Array.max(e,A=>A.value)||0;return {xScale:scale.scaleBand({range:[0,T],domain:e.map(A=>A.label),padding:d}),yScale:scale.scaleLinear({range:[E,0],domain:[0,O*1.1],nice:true}),innerWidth:T,innerHeight:E}},[e,k,I,o,d,b]);if(e.length===0)return jsxRuntime.jsx("div",{ref:L,className:tailwindMerge.twMerge("flex h-full min-h-[200px] w-full items-center justify-center rounded-lg border border-dashed border-border-default bg-background-surface text-sm font-medium text-text-secondary",g),style:r!==void 0?{height:r,...f}:f,children:"No data available"});let Q=(T,E)=>{if(v(T),m?.(E,T),T!==null&&E){let O,A;if(b==="horizontal"){let F=H(E.value),z=W(E.label)||0,G=W.bandwidth();O=o.left+F,A=o.top+z+G/2;}else {let F=H,z=W,G=F(E.label)??0,oe=F.bandwidth(),ue=z(E.value);O=o.left+G+oe/2,A=o.top+ue;}let C=O>k/2;D(E.label),N({xValue:new Date,series:[{label:"Value",value:E.value,color:E.color||Y}],x:O,y:A,position:C?"left":"right"});}else N(null),D(null);};return jsxRuntime.jsxs("div",{ref:L,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":x,role:"img",children:[jsxRuntime.jsxs("svg",{width:k,height:I,children:[jsxRuntime.jsx("defs",{children:jsxRuntime.jsx(gradient.LinearGradient,{id:`${B}-bar`,from:Y,to:Y,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):W.ticks(5)).map(T=>{let E=b==="horizontal"?0:W(T),O=b==="horizontal"?H(T):0;return jsxRuntime.jsx("line",{x1:b==="horizontal"?O:0,y1:b==="horizontal"?0:E,x2:b==="horizontal"?O:Z,y2:b==="horizontal"?q:E,stroke:"var(--color-border-default)",strokeOpacity:.5,strokeDasharray:"2,3"},T)})}),e.map((T,E)=>{let O=R===E||R==null,A=T.color||`url(#${B}-bar)`;if(b==="horizontal"){let te=H(T.value),le=W.bandwidth(),me=W(T.label)||0;return jsxRuntime.jsx(framerMotion.motion.rect,{x:0,y:me,width:te,height:le,fill:A,rx:l,ry:l,initial:c?{width:0,opacity:.5}:void 0,animate:{width:te,opacity:O?1:.5},transition:{duration:.5,delay:E*.05,ease:"easeOut",opacity:{duration:.15,delay:0}},style:{cursor:u||m?"pointer":"default"},onMouseEnter:()=>Q(E,T),onMouseLeave:()=>Q(null,null),onClick:()=>u?.(T,E)},T.label)}let C=H,F=W,z=C.bandwidth(),G=C(T.label)??0,oe=F(T.value),ue=Math.max(0,q-oe);return c?jsxRuntime.jsx(framerMotion.motion.rect,{x:G,width:z,fill:A,rx:l,ry:l,initial:{y:q,height:0,opacity:.5},animate:{y:oe,height:ue,opacity:O?1:.5},transition:{duration:.5,delay:E*.05,ease:"easeOut",opacity:{duration:.15,delay:0}},style:{cursor:u||m?"pointer":"default"},onMouseEnter:()=>Q(E,T),onMouseLeave:()=>Q(null,null),onClick:()=>u?.(T,E)},T.label):jsxRuntime.jsx("rect",{x:G,y:oe,width:z,height:ue,fill:A,rx:l,ry:l,opacity:O?1:.5,style:{cursor:u||m?"pointer":"default",transition:"opacity 150ms ease-out"},onMouseEnter:()=>Q(E,T),onMouseLeave:()=>Q(null,null),onClick:()=>u?.(T,E)},T.label)}),s&&b==="vertical"&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Tr.CategoryBottom,{top:q,scale:H}),jsxRuntime.jsx(Tr.Left,{left:0,scale:W,yFormatter:a,height:q})]}),s&&b==="horizontal"&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Tr.NumericBottom,{top:q,scale:H,yFormatter:a,width:Z}),jsxRuntime.jsx(Tr.CategoryLeft,{left:0,scale:W})]})]})]}),h&&jsxRuntime.jsx(Uo,{data:S,formatter:a,label:w??void 0})]})};var Ng=({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})},uk=({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(Ng,{item:r,onToggle:t},r.category))}),Na=({items:e,onExport:t,marginLeft:r=0,marginRight:o=0,isZoomed:n=false,onResetZoom:a,onLegendItemToggle:i})=>{let[s,c]=Oe__namespace.default.useState(false),[l,d]=Oe__namespace.default.useState(null),[u,m]=Oe__namespace.default.useState(false),[p,g]=Oe__namespace.default.useState(false),f=Oe__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]),x=Oe__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(uk,{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(at,{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(Ng,{item:b,onToggle:i},b.category))})})]})}),jsxRuntime.jsxs("div",{className:"sm:hidden flex items-center gap-2 shrink-0",children:[n&&a&&jsxRuntime.jsx(ee,{variant:"secondary",size:"sm",onPress:a,children:jsxRuntime.jsx(V,{name:"ArrowsOut",size:16})}),jsxRuntime.jsx(ee,{variant:"secondary",size:"sm",onPress:()=>g(true),isDisabled:s,children:jsxRuntime.jsx(V,{name:"Export",size:16})}),jsxRuntime.jsx(at,{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(ee,{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(ee,{variant:"secondary",size:"sm",isDisabled:s,children:[jsxRuntime.jsx(V,{name:"Export",size:16}),s?"Exporting...":"Export"]}),jsxRuntime.jsx(nt,{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:x,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 Gs=Ep(wc());var Tg=["stroke","fill","color","stop-color","flood-color","lighting-color"],Pg=/var\s*\(/;function Rg(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 Tg){let d=s.getAttribute(l);if(d&&Pg.test(d)){let u=c.getPropertyValue(l);u&&s.setAttribute(l,u.trim());}}if(s instanceof HTMLElement||s instanceof SVGElement)for(let l of Tg){let d=l,u=s.style.getPropertyValue(d);if(u&&Pg.test(u)){let m=c.getPropertyValue(d);m&&s.style.setProperty(d,m.trim());}}}}function nu(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 au(e,t,r={},o){let n=Array.isArray(t[0])?t:[t];try{switch(e){case "csv":await mk(n,r);break;case "svg":await fk(o,r);break;case "png":await gk(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 mk(e,t){try{let r=t.yFormat?Qc(t.yFormat):null,o=t.yFormat,n=m=>{if(m==null||m==="")return "";if(!o)return typeof m=="number"?m:String(m);let p=Cm(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 x=s[f],b=g.find(h=>h.xValue.getTime()===m.getTime());p[x]=b?n(b.yValue):"",b?.category&&(p[`${x} Category`]=b.category);}),p}),l=zv__default.default.unparse(c,{header:!0,skipEmptyLines:!0}),d=new Blob([l],{type:"text/csv;charset=utf-8;"}),u=nu(t.filename||"chart-data","csv",t.timestamp!==!1);(0,Gs.saveAs)(d,u);}catch(r){throw new Error(`CSV export failed: ${r instanceof Error?r.message:"Unknown error"}`)}}async function fk(e,t){if(!e.current)throw new Error("SVG element not found");try{let r=e.current,o=r.cloneNode(!0);if(Rg(r,o),!o.querySelector("rect[data-background]")){let l=document.createElementNS("http://www.w3.org/2000/svg","rect");l.setAttribute("width",o.getAttribute("width")||"100%"),l.setAttribute("height",o.getAttribute("height")||"100%"),l.setAttribute("fill","white"),l.setAttribute("data-background","true"),o.insertBefore(l,o.firstChild);}let i=new XMLSerializer().serializeToString(o);i.includes("<?xml")||(i=`<?xml version="1.0" encoding="UTF-8"?>
28
+ `+i),i.includes("xmlns=")||(i=i.replace("<svg",'<svg xmlns="http://www.w3.org/2000/svg"'));let s=new Blob([i],{type:"image/svg+xml;charset=utf-8"}),c=nu(t.filename||"chart","svg",t.timestamp!==!1);(0,Gs.saveAs)(s,c);}catch(r){throw new Error(`SVG export failed: ${r instanceof Error?r.message:"Unknown error"}`)}}async function gk(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);Rg(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 x=document.createElement("canvas");x.width=a.width*r,x.height=a.height*r;let b=x.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),x.toBlob(h=>{if(h){let y=nu(t.filename||"chart","png",t.timestamp!==!1);(0,Gs.saveAs)(h,y),m();}else p(new Error("Failed to create PNG blob"));o&&URL.revokeObjectURL(o);},"image/png",1);}catch(x){o&&URL.revokeObjectURL(o),p(x);}},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 bk(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 xk(e){return {csv:"CSV Spreadsheet",svg:"SVG Vector Image",png:"PNG Image"}[e]||"Unknown Format"}function Us({datasets:e,metadata:t,svgRef:r}){return Oe.useCallback(async o=>{try{await au(o,e,t,r);}catch(n){throw console.error("Chart export failed:",n),n}},[e,t,r])}var iu=({data:e,seriesMetadata:t,width:r,height:o,onBrushChange:n,brushRegion:a,margin:i=Ae,yDomain:s})=>{let c=Oe.useRef(null),l=Oe.useRef(false),d=Oe.useMemo(()=>e.flat(),[e]),u=Oe.useMemo(()=>({top:10,bottom:15,left:i.left,right:i.right}),[i]),m=r-u.left-u.right,p=Oe.useMemo(()=>{if(d.length===0)return scale.scaleTime({domain:[new Date,new Date],range:[0,m]});let h=new Date(Math.min(...d.map(v=>v.xValue.getTime()))),y=new Date(Math.max(...d.map(v=>v.xValue.getTime())));return scale.scaleTime({domain:[h,y],range:[0,m]})},[d,m]),g=Oe.useMemo(()=>{let h=d.length>0?Math.max(0,...d.map(y=>y.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:y,x1:v}=h;if(y===v)return;let S=new Date(y),N=new Date(v);if(!(Number.isNaN(S.getTime())||Number.isNaN(N.getTime()))){if(d.length>0){let w=Math.min(...d.map(M=>M.xValue.getTime())),D=Math.max(...d.map(M=>M.xValue.getTime())),P=(D-w)*.05;if(Math.abs(S.getTime()-w)<P&&Math.abs(N.getTime()-D)<P){n(null);return}}n([S,N]);}},x=Oe.useMemo(()=>{if(d.length!==0)return {start:{x:0,y:u.top},end:{x:m,y:o-u.bottom}}},[m,o,d]);Oe.useEffect(()=>{if(!c.current||d.length===0)return;let h=c.current.state;if(h?.isBrushing||h?.activeHandle)return;let y=Math.min(...d.map(k=>k.xValue.getTime())),v=Math.max(...d.map(k=>k.xValue.getTime())),S=a?a[0]:new Date(y),N=a?a[1]:new Date(v),w=c.current.state?.extent;if(w){let k=p.invert(w.x0),P=p.invert(w.x1),I=Math.abs(k.getTime()-S.getTime()),M=Math.abs(P.getTime()-N.getTime());if(I<1e3&&M<1e3)return}l.current=true;let D=k=>{let P=c.current.getExtent({x:p(S),y:u.top},{x:p(N),y:o-u.bottom});return {...k,start:{y:P.y0,x:P.x0},end:{y:P.y1,x:P.x1},extent:P}};c.current.updateBrush(D),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,y)=>jsxRuntime.jsx(shape.LinePath,{data:h,x:v=>p(v.xValue),y:v=>g(v.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:c,resizeTriggerAreas:["left","right"],brushDirection:"horizontal",initialBrushPosition:x,onChange:f,onClick:()=>n(null),selectedBoxStyle:b,useWindowMoveEvents:true})]})]})})};function bo(e){switch(e){case "command":return Nt("--color-action-brand","#111111");case "success":return Nt("--color-feedback-success-border","#278a4a");case "warning":return Nt("--color-feedback-warning-border","#c88420");case "error":return Nt("--color-feedback-error-border","#c42d2d");case "alert":return Nt("--color-feedback-warning-border","#c88420");default:return Nt("--color-text-secondary","#525250")}}function Ys({events:e,color:t,showLabels:r=false}){let o=Oe.useContext(kr),[n,a]=Oe.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>=Ae.left&&h<=i.range()[1]}),f=Oe.useCallback((b,h)=>{a(h);let y=i(b.timestamp),v=y>(i.range()[1]-Ae.right-Ae.left)/2+Ae.left,S=[];d&&u&&d.forEach((D,k)=>{if(D.length===0)return;let P=d3Array.bisector(B=>B.xValue).left,I=P(D,b.timestamp),M=D[I-1],L=D[I],R;if(!M)R=L;else if(!L)R=M;else {let B=Math.abs(b.timestamp.getTime()-M.xValue.getTime()),Y=Math.abs(b.timestamp.getTime()-L.xValue.getTime());R=B<Y?M:L;}R&&u[k]&&S.push({label:u[k].label,value:R.yValue,color:u[k].color,type:m?.[k]||"line",...R.category&&{category:R.category,categoryColor:p?.[R.category]}});});let w=g.filter(D=>Math.abs(i(D.timestamp)-y)<=10).map(D=>({label:D.label,color:t||bo(D.type),metadata:D.metadata}));S.push({label:w.length>1?`${w.length} events`:b.label,value:0,color:t||bo(b.type),type:"event"}),l.show({xValue:b.timestamp,series:S,x:y,y:S.length>1&&typeof S[0].value=="number"?s(S[0].value):c/2,position:v?"left":"right",isEvent:true,eventMetadata:b.metadata,eventItems:w});},[i,s,c,l,t,d,u,m,p,g]),x=Oe.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 y=i(b.timestamp),v=t||bo(b.type),S=n===h;return jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("line",{x1:y,y1:Ae.top,x2:y,y2:c-Ae.bottom,stroke:v,strokeWidth:S?3:2,strokeDasharray:"4 4",strokeOpacity:S?.9:.6,pointerEvents:"none"}),jsxRuntime.jsx("circle",{cx:y,cy:Ae.top,r:S?5:4,fill:v,stroke:"var(--color-background-surface)",strokeWidth:2,pointerEvents:"none"}),jsxRuntime.jsx("circle",{cx:y,cy:c-Ae.bottom,r:S?5:4,fill:v,stroke:"var(--color-background-surface)",strokeWidth:2,pointerEvents:"none"}),r&&jsxRuntime.jsx("text",{x:y,y:Ae.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:Ae.top,width:20,height:c-Ae.top-Ae.bottom,fill:"transparent",style:{cursor:"pointer"},onMouseEnter:()=>f(b,h),onMouseLeave:x})]},`${b.timestamp.getTime()}-${h}`)})})}function Js({spans:e,opacity:t=.25,color:r}){let o=Oe.useContext(kr),[n,a]=Oe.useState(null),i=o?.xScale,s=o?.height,c=o?.tooltip,[l,d]=i?.domain()??[new Date(0),new Date(0)],[u,m]=i?.range()??[0,0],p=Oe.useCallback((S,N)=>{if(!i||!c)return;a(N);let w=S.start<l?l:S.start,D=S.end>d?d:S.end,k=(i(w)+i(D))/2,P=k>(m-u)/2+u,M=e.filter(L=>L.end>L.start&&L.start<S.end&&L.end>S.start).map(L=>({label:L.label,color:L.color??r??bo(L.type),metadata:L.metadata}));c.show({xValue:S.start,series:[{label:M.length>1?`${M.length} scheduled commands`:S.label,value:0,color:S.color??r??bo(S.type),type:"event"}],x:k,y:(s??0)/2,position:P?"left":"right",isEvent:true,eventMetadata:S.metadata,eventItems:M});},[i,s,c,r,l,d,u,m,e]),g=Oe.useCallback(()=>{a(null),c?.hide();},[c]);if(!o)return console.warn("ChartEventSpans must be used within a ChartContainer"),null;let{xScale:f,height:x}=o,b=Ae.top,y=x-Ae.bottom-b,v=e.filter(S=>S.end>S.start);return v.length===0?null:jsxRuntime.jsx("g",{className:"chart-event-spans","data-testid":"chart-event-spans",children:v.map((S,N)=>{let w=S.start<l?l:S.start,D=S.end>d?d:S.end;if(w>=d||D<=l)return null;let k=f(w),I=f(D)-k;if(I<=0)return null;let M=S.color??r??bo(S.type);return jsxRuntime.jsx("rect",{x:k,y:b,width:I,height:y,fill:M,fillOpacity:n===N?Math.min((t??.25)*1.8,1):t??.25,pointerEvents:"all",style:{cursor:"pointer"},onMouseEnter:()=>p(S,N),onMouseLeave:g},`${S.start.getTime()}-${S.end.getTime()}-${N}`)})})}var kn=({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}=Nn(),d=c.range(),u=Object.keys(n).length>0,m=h=>h.category?n[h.category]??t:t,p=h=>h.chartYValue??h.yValue,g=e.length===1?e[0]:void 0,f=a!=null?Vs(e,a):e,x=g?jsxRuntime.jsx("circle",{cx:s(g.xValue),cy:c(p(g)),r,fill:u?m(g):t}):u?e.slice(0,-1).map((h,y)=>{let v=e[y+1];return a!=null&&a>0&&v.xValue.getTime()-h.xValue.getTime()>a?null:jsxRuntime.jsx(shape.LinePath,{data:[h,v],x:S=>s(S.xValue),y:S=>c(p(S)),stroke:m(h),strokeWidth:r,strokeDasharray:o,strokeLinecap:"round",curve:curve.curveLinear},`${h.xValue.getTime()}-${v.xValue.getTime()}`)}):jsxRuntime.jsx(shape.LinePath,{data:f,x:h=>h?s(h.xValue):0,y:h=>h?c(p(h)):0,defined:h=>h!=null,stroke:t,strokeWidth:r,strokeDasharray:o,strokeLinecap:"round",curve:curve.curveLinear}),b={transformOrigin:`0 ${d[0]}px`,transformBox:"fill-box",isolation:"isolate"};return i?jsxRuntime.jsx(framerMotion.motion.g,{initial:{scaleY:0},animate:{scaleY:1},transition:{duration:l.duration,ease:l.ease},style:b,children:x}):jsxRuntime.jsx("g",{style:b,children:x})};var Hg=e=>e.type===Go||e.type===kn||e.type===Os,Vk=e=>e.type===Ys||e.type===Js,zk=(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},Ok=d3Array.bisector(e=>e.xValue).left,Hk=()=>jsxRuntime.jsx("div",{className:"flex h-full items-center justify-center",children:jsxRuntime.jsx("p",{className:"text-text-secondary",children:"No data available"})}),Wk=()=>jsxRuntime.jsxs("div",{className:"flex h-full flex-col gap-4 p-4",children:[jsxRuntime.jsx(K,{className:"h-full w-full"}),jsxRuntime.jsxs("div",{className:"flex gap-4",children:[jsxRuntime.jsx(K,{className:"h-4 w-24"}),jsxRuntime.jsx(K,{className:"h-4 w-24"})]})]}),Gk=({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,children:p})=>{let g=u!==void 0,f=d!==void 0,[x,b]=Oe.useState(null),[h,y]=Oe.useState(null),v=f?d:h,[S,N]=Oe.useState(()=>new Set),w=g?u:S,D=Oe.useRef(null),k=Oe.useId(),P=Oe.useRef(0),I=Oe.useRef(""),M=Oe.useRef(null),{colorMode:L}=It(),R=Oe.useMemo(()=>sn(),[L]),B=Oe.useMemo(()=>Qa(),[L]),{datasets:Y,seriesMetadata:H,categoryInfo:W,categoryColors:Z,categoryLabels:q,seriesTypes:Q}=Oe.useMemo(()=>{let de=Oe.Children.toArray(p).filter(De=>Oe.isValidElement(De)&&Hg(De)),Ie=de.filter(De=>De.props.data).length,Ne=[],Ve=[],$e=[],dt=null,Ee=null;de.forEach((De,yt)=>{let Pe=De.props;if(!Pe.data)return;Ne.push(Pe.data);let ra=("color"in Pe&&Pe.color?Pe.color:void 0)||(Ie===1?B:R[yt%R.length]),on=De.type===Go;Ve.push({label:"label"in Pe&&Pe.label||`Series ${Ne.length}`,color:ra,...on&&"baseline"in Pe&&Pe.baseline!==void 0?{baseline:Pe.baseline,tooltipRange:"tooltipRange"in Pe&&Pe.tooltipRange||false}:{}});let bc=on?"area":De.type===kn?"line":"bar";$e.push(bc),"categoryColors"in Pe&&Pe.categoryColors&&(dt=Pe.categoryColors),"categoryLabels"in Pe&&Pe.categoryLabels&&(Ee=Pe.categoryLabels);});let ut=null;if(dt){let De=new Set;Ne.forEach(yt=>{yt.forEach(Pe=>{Pe.category&&De.add(Pe.category);});}),ut=Array.from(De).map(yt=>({label:Ee?.[yt]||yt,color:dt[yt]||"#6b7280"}));}return {datasets:Ne,seriesMetadata:Ve,categoryInfo:ut,categoryColors:dt,categoryLabels:Ee,seriesTypes:$e}},[p,B,R,L]),T=e,E=s?c+8:0,O=t-60-E,A=Math.max(100,O),C=Oe.useCallback(J=>J?w.has(J):false,[w]),F=Oe.useMemo(()=>H.map((J,de)=>C(J.label)?null:de).filter(J=>J!==null),[H,C]),z=Oe.useMemo(()=>F.map(J=>Y[J]).filter(J=>!!J),[Y,F]),G=Oe.useMemo(()=>F.map(J=>H[J]).filter(J=>!!J),[H,F]),oe=Oe.useMemo(()=>F.map(J=>Q[J]).filter(J=>!!J),[Q,F]),ue=oe.findIndex(J=>J==="bar"),te=ue!==-1,le=Oe.useCallback((J,de)=>{let Ie=J.has(de);if(!Ie&&H.reduce(($e,dt)=>J.has(dt.label)||dt.label===de?$e:$e+1,0)<1)return J;let Ne=new Set(J);return Ie?Ne.delete(de):Ne.add(de),Ne},[H]),me=Oe.useCallback(J=>{if(g){let de=u;if(!de.has(J)&&H.reduce((Ve,$e)=>de.has($e.label)||$e.label===J?Ve:Ve+1,0)<1){b(null);return}m?.(Ne=>le(Ne,J));}else N(de=>le(de,J));b(null);},[g,u,m,H,le]),re=Oe.useMemo(()=>H.map(J=>J.label).join(""),[H]),ie=Oe.useRef(re);Oe.useEffect(()=>{ie.current!==re&&(ie.current=re,g||N(J=>J.size===0?J:new Set));},[re,g]);let fe=Oe.useMemo(()=>z.flat(),[z]),xe=Oe.useMemo(()=>{if(fe.length===0)return null;let J=[...fe].sort((de,Ie)=>de.xValue.getTime()-Ie.xValue.getTime());return [J[0].xValue,J[J.length-1].xValue]},[fe]),Ze=v||xe,Kt=Oe.useCallback(J=>{f?l?.(J):y(J);},[f,l]),ir=Oe.useMemo(()=>Ze?Y.map(de=>de.filter(Ie=>Ie.xValue>=Ze[0]&&Ie.xValue<=Ze[1])):Y,[Y,Ze]),j=Oe.useMemo(()=>F.map(J=>ir[J]??[]),[F,ir]);Oe.useEffect(()=>{l&&l(v);},[v,l]);let ae=Oe.useMemo(()=>F.flatMap(J=>ir[J]??[]),[ir,F]),_=Oe.useMemo(()=>ui(ae,A,r,o),[ae,A,r,o]),X=Oe.useRef(JSON.stringify(r)),U=Oe.useRef(null),ce=Oe.useMemo(()=>{let[J,de]=_.domain(),Ie=Math.max(Math.abs(J),Math.abs(de)),Ne=JSON.stringify(r);if(Ne!==X.current&&(X.current=Ne,U.current=null),U.current!==null)return U.current;if(Ie===0)return va(r,0);let Ve=va(r,Ie);return U.current=Ve,Ve},[_,r]),se=Oe.useMemo(()=>{let J=A-Ae.top-Ae.bottom;return Sa(J)},[A]),$=Oe.useMemo(()=>{let J=Or(ce),de=J.tickFormat||J.format,Ne=_.ticks(se).map(dt=>de(dt)),Ve=Ca(Ne,12,"system-ui"),$e=Math.ceil(Ve)+12;return {...Ae,left:Math.max($e,30),right:8}},[_,ce,se]),Se=Oe.useMemo(()=>Ze?scale.scaleTime({domain:Ze,range:[$.left,T-$.right]}):tu(fe,T),[Ze,fe,T,$]),_e=Oe.useCallback(J=>{if(!xe)return;let{scaleX:de,translateX:Ie}=J,Ne=T-$.left-$.right,[Ve,$e]=xe,dt=$e.getTime()-Ve.getTime();if(dt<=0){Kt(null);return}let Ee=-Ie,ut=Ee+Ne,De=Ne*de/dt,yt=Ee/De,Pe=ut/De,rn=new Date(Ve.getTime()+yt),ra=new Date(Ve.getTime()+Pe),on=Math.abs(rn.getTime()-Ve.getTime()),bc=Math.abs(ra.getTime()-$e.getTime()),Lp=dt*.02;on<Lp&&bc<Lp?Kt(null):Kt([rn,ra]);},[xe,T,$,Kt]),Ir=Oe.useCallback(J=>{let{left:de}=D.current?.getBoundingClientRect()||{left:0},Ie=J.clientX-de;if(J.timeStamp-(P.current||0)<16)return;P.current=J.timeStamp;let Ne=Se.invert(Ie),Ve=j.map((Ee,ut)=>{if(!Ee||Ee.length===0)return null;let De=Ok(Ee,Ne,1);if(De===0)return {point:Ee[0],index:0,datasetIndex:ut};if(De>=Ee.length)return {point:Ee[Ee.length-1],index:Ee.length-1,datasetIndex:ut};let yt=Ee[De-1],Pe=Ee[De];if(!yt||!Pe)return null;let rn=Math.abs(yt.xValue.getTime()-Ne.getTime()),ra=Math.abs(Pe.xValue.getTime()-Ne.getTime()),on=rn<ra;return {point:on?yt:Pe,index:on?De-1:De,datasetIndex:ut}}).filter(Ee=>Ee!==null&&G[Ee.datasetIndex]!==void 0).map(({point:Ee,index:ut,datasetIndex:De})=>({label:G[De].label,value:Ee.yValue,baselineValue:zk(G[De],Ee,ut),color:G[De].color,point:Ee,type:oe[De]}));if(Ve.length===0){b(null);return}let $e=Se(Ve[0].point.xValue),dt=$e>(T-$.right-$.left)/2+$.left;b({xValue:Ve[0].point.xValue,series:Ve.map(({label:Ee,value:ut,baselineValue:De,color:yt,point:Pe,type:rn})=>({label:Ee,value:ut,...De!==void 0?{baselineValue:De}:{},chartY:Pe.chartYValue??ut,showMarker:Pe.showTooltipMarker??true,color:yt,type:rn,category:Pe.category,categoryColor:Pe.category&&Z?Z[Pe.category]:void 0,...Pe.extraTooltipRows&&Pe.extraTooltipRows.length>0?{extraTooltipRows:Pe.extraTooltipRows}:{}})),x:$e,y:_(Ve[0].point.chartYValue??Ve[0].value),position:dt?"left":"right"});},[j,G,oe,Se,_,T,Z,$]),po=()=>{b(null);},vr=Oe.useCallback(()=>{Kt(null),M.current&&M.current.reset();},[Kt]),ta=Oe.useCallback(J=>{if(!(M.current&&xe))return;let[de,Ie]=xe,Ne=Ie.getTime()-de.getTime();if(Ne<=0){M.current.reset();return}if(!J){M.current.reset();return}let[Ve,$e]=J,dt=$e.getTime()-Ve.getTime();if(dt<=0){M.current.reset();return}let Ee=Ne/dt,ut=T-$.left-$.right,yt=-((Ve.getTime()-de.getTime())/Ne)*ut*Ee;M.current.setTransformMatrix({scaleX:Ee,scaleY:1,translateX:yt,translateY:0,skewX:0,skewY:0});},[xe,T,$]),fc=Oe.useCallback(J=>{Kt(J),ta(J);},[Kt,ta]);Oe.useEffect(()=>{f&&ta(d??null);},[f,d,ta]);let _y={width:T,height:A,xScale:Se,yScale:_,yFormatter:ce,animationSettings:Bs,tooltip:{data:x,show:b,hide:()=>b(null)},datasets:j,seriesMetadata:G,seriesTypes:oe,categoryColors:Z||void 0,categoryLabels:q||void 0},$y=Oe.Children.toArray(p),Pp=0,Rp=[],Mp=[],gc=[];$y.forEach(J=>{if(!Oe.isValidElement(J)){gc.push(J);return}if(Vk(J))Mp.push(J);else if(Hg(J)){let de=Pp;Pp++;let Ie=J.props,Ne=H[de]?.label;if(C(Ne))return;Rp.push(Oe__namespace.default.cloneElement(J,{...Ie,data:ir[de]||Ie.data,color:H[de]?.color}));}else gc.push(J);});let ev=F.length,tv=(W||H).map(J=>{let de=!W&&C(J.label);return {category:J.label,fill:J.color,isHidden:de,isDisabled:!W&&!de&&ev<=1}}),rv=typeof r=="object"&&r!==null&&typeof r.type=="string",ov=Us({datasets:z,metadata:{xLabel:"Date",yLabel:"Value",seriesLabels:G.map(J=>J.label),timestamp:true,...rv?{yFormat:r}:{}},svgRef:D});if(a)return jsxRuntime.jsx(Wk,{});if(Y.length===0)return jsxRuntime.jsx(Hk,{});let Dp=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("title",{children:"Data chart visualization"}),jsxRuntime.jsx("g",{children:_.ticks(se).map(J=>{let de=Math.abs(J)<Number.EPSILON;return jsxRuntime.jsx(shape.Line,{from:{x:$.left,y:_(J)},to:{x:T-$.right,y:_(J)},stroke:de?"var(--color-border-default)":"var(--color-border-muted)",strokeWidth:de?1.5:1},`grid-line-${J}`)})}),jsxRuntime.jsx("defs",{children:jsxRuntime.jsx("clipPath",{id:k,children:jsxRuntime.jsx("rect",{x:Se.range()[0],y:_.range()[1],width:Se.range()[1]-Se.range()[0],height:_.range()[0]-_.range()[1]})})}),jsxRuntime.jsx("g",{clipPath:`url(#${k})`,children:Rp}),gc,n&&n.length>0&&jsxRuntime.jsx("g",{children:n.map(J=>{let de=_(J.value),Ie=J.color??"var(--color-error-base)";return jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx(shape.Line,{from:{x:$.left,y:de},to:{x:T-$.right,y:de},stroke:Ie,strokeWidth:1.5,strokeDasharray:"6 4"}),J.label&&jsxRuntime.jsx("text",{x:T-$.right-4,y:de-4,textAnchor:"end",fontSize:11,fill:Ie,children:J.label})]},`ref-line-${J.value}`)})}),jsxRuntime.jsx(Tr.Bottom,{top:A-$.bottom,scale:Se,width:T-$.left-$.right}),jsxRuntime.jsx(Tr.Left,{left:$.left,scale:_,yFormatter:ce,height:A-$.top-$.bottom}),x&&!x.isEvent&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[te?(()=>{let J=z[ue]??[];if(J.length===0)return null;let de=[...J].sort((De,yt)=>De.xValue.getTime()-yt.xValue.getTime()),Ie=de.findIndex(De=>De.xValue.getTime()===x.xValue.getTime()),Ne=de[Ie+1],Ve=de.length>1&&Ne?Ne.xValue.getTime()-x.xValue.getTime():15*6e4,$e=Math.abs(Se(new Date(x.xValue.getTime()+Ve))-Se(x.xValue)),Ee=Se(x.xValue)-$e/2,ut=_.range();return jsxRuntime.jsx("rect",{x:Ee,y:ut[1],width:$e,height:ut[0]-ut[1],className:"fill-background-muted",opacity:.5,pointerEvents:"none",style:{transition:"all 100ms ease-out"}})})():null,x.series.filter(J=>J.type!=="bar"&&J.showMarker!==false).map(J=>jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("circle",{cx:Se(x.xValue),cy:_(J.chartY??J.value),r:8,fill:"white",stroke:J.color,strokeWidth:2,style:{transition:"all 100ms ease-out"}}),jsxRuntime.jsx("circle",{cx:Se(x.xValue),cy:_(J.chartY??J.value),r:4,fill:J.color,style:{transition:"all 100ms ease-out"}})]},`highlight-${J.label}`))]}),jsxRuntime.jsx("rect",{x:$.left,y:$.top,width:T-$.left-$.right,height:A-$.top-$.bottom,fill:"transparent",style:{cursor:i?"grab":"crosshair",touchAction:"none"},onMouseMove:Ir,onMouseLeave:po}),Mp]});return jsxRuntime.jsx("div",{className:"relative flex h-full flex-col",children:jsxRuntime.jsxs(kr.Provider,{value:_y,children:[i?jsxRuntime.jsx(zoom.Zoom,{width:T,height:A,scaleXMin:1,scaleXMax:20,scaleYMin:1,scaleYMax:1,constrain:J=>{let{scaleX:de,translateX:Ie}=J,Ne=Math.max(1,Math.min(20,de)),Ve=1,$e=T-$.left-$.right,dt=0,Ee=$e*(1-Ne),ut=Math.max(Ee,Math.min(dt,Ie));return {...J,scaleX:Ne,scaleY:Ve,translateX:ut,translateY:0}},children:J=>{if(M.current=J,J.transformMatrix){let{scaleX:de,translateX:Ie}=J.transformMatrix,Ne=`${de.toFixed(4)}-${Ie.toFixed(2)}`;Ne!==I.current&&(I.current=Ne,setTimeout(()=>{_e(J.transformMatrix);},0));}return jsxRuntime.jsx("svg",{width:T,height:A,className:"overflow-visible",ref:de=>{D.current=de,J.containerRef.current!==de&&(J.containerRef.current=de);},role:"img","aria-label":"Data chart",style:{cursor:J.isDragging?"grabbing":"grab",touchAction:"none"},onMouseDown:J.dragStart,onMouseMove:J.dragMove,onMouseUp:J.dragEnd,onMouseLeave:()=>{J.isDragging&&J.dragEnd();},onTouchStart:J.dragStart,onTouchMove:J.dragMove,onTouchEnd:J.dragEnd,children:Dp})}}):jsxRuntime.jsx("svg",{width:T,height:A,className:"overflow-visible",ref:D,role:"img","aria-label":"Data chart",children:Dp}),jsxRuntime.jsx(Uo,{data:x,formatter:ce}),s&&xe&&jsxRuntime.jsx(iu,{data:z,seriesMetadata:G,width:T,height:c,onBrushChange:fc,brushRegion:v,margin:$,...o?{yDomain:o}:{}}),jsxRuntime.jsx(Na,{onExport:ov,items:tv,marginLeft:0,marginRight:$.right,isZoomed:v!==null,onResetZoom:vr,onLegendItemToggle:W?void 0:me})]})})},Gg=responsive.withParentSize(Gk);var jk=e=>e.toLocaleString(),qk=e=>`${Math.round(e*100)}%`,Jg=({data:e,width:t=800,height:r=400,padding:o=0,barGap:n=30,formatValue:a=jk,formatPercentage:i=qk,color:s,showScale:c=true,showOverallConversion:l=true,overallConversionLabel:d="Overall Conversion:",activeStageId:u,onStageClick:m,onStageHover:p,className:g,style:f,"aria-label":x="Funnel chart"})=>{let[b,h]=Oe.useState(null),[y,v]=Oe.useState(t),S=Oe.useRef(null),N=u??b,w=Oe.useId(),D=s||"var(--color-viz-default)";Oe.useEffect(()=>{if(!S.current)return;let R=new ResizeObserver(B=>{for(let Y of B)v(Y.contentRect.width);});return R.observe(S.current),()=>{R.disconnect();}},[]);let{layout:k,overallConversion:P}=Oe.useMemo(()=>{if(e.length===0)return {layout:[],overallConversion:0};let R=e[0].value,B=l?60:0,Y=r-o*2-B,H=(e.length-1)*n,W=(Y-H)/e.length,Z=e.map((Q,T)=>{let E=o+B+T*(W+n),O=R===0?0:Q.value/R,A=O,C=T===0?null:e[T-1].value,F=C==null||C===0?0:1-Q.value/C;return {stage:Q,index:T,y:E,barHeight:W,widthPercent:O,conversionRate:A,dropOff:F}}),q=R===0?0:e[e.length-1].value/R;return {layout:Z,overallConversion:q,maxValue:R}},[e,y,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 I=c?60:0,M=o+I,L=y-o*2-I;return jsxRuntime.jsx("div",{ref:S,className:tailwindMerge.twMerge("relative w-full overflow-hidden rounded-lg bg-background-surface",g),style:{height:r,...f},"aria-label":x,role:"img",children:jsxRuntime.jsxs("svg",{width:"100%",height:r,className:"relative",children:[jsxRuntime.jsxs("defs",{children:[jsxRuntime.jsx(gradient.LinearGradient,{id:`${w}-bar`,from:D,to:D,toOpacity:.85}),jsxRuntime.jsx(gradient.LinearGradient,{id:`${w}-bg`,from:D,to:D,fromOpacity:.01,toOpacity:.15,x1:"0",y1:"0",x2:"1",y2:"0"})]}),l&&jsxRuntime.jsxs("text",{x:M,y:o+20,className:"fill-text-primary text-sm font-medium",children:[jsxRuntime.jsx("tspan",{className:"fill-text-secondary",children:d})," ",i(P)]}),c&&jsxRuntime.jsx("g",{children:k.map(R=>{let B=R.y+R.barHeight/2;return jsxRuntime.jsx("text",{x:o+I-12,y:B,textAnchor:"end",dominantBaseline:"middle",className:"fill-text-secondary text-xs",children:i(R.conversionRate)},R.stage.id)})}),k.map(R=>{let B=N===R.stage.id,Y=L*R.widthPercent;return jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("rect",{x:M,y:R.y,width:L,height:R.barHeight,fill:`url(#${w}-bg)`,rx:4}),jsxRuntime.jsx(framerMotion.motion.rect,{x:M,y:R.y,width:Y,height:R.barHeight,fill:`url(#${w}-bar)`,rx:4,initial:{width:0},animate:{width:Y},transition:{duration:.6,delay:R.index*.1,ease:"easeOut"},opacity:B||N==null?1:.5,style:{cursor:m||p?"pointer":"default",transition:"opacity 150ms ease"},onMouseEnter:()=>{h(R.stage.id),p?.(R.stage);},onMouseLeave:()=>{h(null),p?.(null);},onClick:()=>m?.(R.stage)}),jsxRuntime.jsx("rect",{x:M+10,y:R.y+R.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:M+16,y:R.y+R.barHeight/2+4,className:"fill-text-primary text-xs font-semibold",style:{pointerEvents:"none"},children:a(R.stage.value)}),jsxRuntime.jsxs("text",{x:M,y:R.y-8,className:"fill-text-secondary text-xs",style:{pointerEvents:"none"},children:[jsxRuntime.jsx("tspan",{children:R.index+1})," ",R.stage.label]}),R.stage.secondaryValue&&jsxRuntime.jsx("text",{x:M+16,y:R.y-24,className:"fill-text-secondary text-xs",style:{pointerEvents:"none"},children:R.stage.secondaryValue}),R.index>0&&R.dropOff>0&&jsxRuntime.jsxs("text",{x:M+L,y:R.y-8,textAnchor:"end",className:"fill-text-secondary text-xs",children:[i(R.dropOff)," drop"]}),R.stage.annotation&&jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("rect",{x:M+Y+8,y:R.y+8,width:60,height:24,rx:3,className:"fill-background-muted"}),jsxRuntime.jsx("text",{x:M+Y+16,y:R.y+20,className:"fill-text-secondary text-xs font-medium",children:R.stage.annotation})]})]},R.stage.id)})]})})};function Xg(){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 Zk=d3Array.bisector(e=>e.xValue).left,_k=(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 jg(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=Zk(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 x=p[f-1],b=p[f];if(!x||!b)return null;let h=Math.abs(x.xValue.getTime()-l.getTime()),y=Math.abs(b.xValue.getTime()-l.getTime()),v=h<y;return {point:v?x:b,index:v?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:_k(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:x,point:b,type:h})=>({label:p,value:g,...f!==void 0?{baselineValue:f}:{},chartY:b.chartYValue??g,showMarker:b.showTooltipMarker??true,color:x,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 Qg=e=>e instanceof Date&&!Number.isNaN(e.getTime());function Xs(e,t,r){let[o,n]=Oe.useState(null);Oe.useImperativeHandle(r,()=>({setPreview:n}),[]);let[a,i]=e.range(),s=Oe.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=Qg(l)&&Qg(d),m=t<400,p=Math.max(2,Math.min(8,Math.floor(t/(m?70:110)))),g=Oe.useMemo(()=>u?s.ticks(p):[],[s,p,u]);return {activeScale:s,ticks:g,start:l,end:d,valid:u,compact:m,rangeStart:a,rangeEnd:i}}var aT=6,Zg=20,du=Oe.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}=Xs(t,r,o),m=a.length>=2?a[1].getTime()-a[0].getTime():s.getTime()-i.getTime(),p=Oe.useMemo(()=>c?Ym(m,{compact:l}):()=>"",[m,l,c]),g=Oe.useId(),f=Math.min(d,u),x=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:x,height:Zg+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:aT,stroke:"var(--color-border-muted)",strokeWidth:1}),jsxRuntime.jsx("text",{x:0,y:Zg,textAnchor:"middle",fontSize:12,fill:"var(--color-text-secondary)",children:p(b)})]},b.getTime()))})]})]})});du.displayName="LiveTimeAxisBottom";var uu=Oe.forwardRef(({scale:e,width:t,top:r,bottom:o},n)=>{let{activeScale:a,ticks:i}=Xs(e,t,n);return jsxRuntime.jsx("g",{"aria-hidden":"true",children:i.map(s=>{let c=a(s);return jsxRuntime.jsx("line",{x1:c,x2:c,y1:r,y2:o,stroke:"var(--color-border-muted)",strokeWidth:1},s.getTime())})})});uu.displayName="LiveTimeGridlines";function js(e,t,r){let o=e[1]-e[0],n=t/Math.max(1,r)*o;return [e[0]-n,e[1]-n]}function $g(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 pu(e,t,r=16,o=800){return t===1?e*r:t===2?e*o:e}var eb=(e,t,r,o,n)=>{let a=t!==1?$g(e,r,t):e;return o!==0&&(a=js(a,o,n)),a},tb=(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]},cT=e=>typeof requestAnimationFrame=="function"?requestAnimationFrame(e):setTimeout(()=>e(0),0),dT=e=>{typeof cancelAnimationFrame=="function"?cancelAnimationFrame(e):clearTimeout(e);};function rb(e){let{groupRef:t}=e,r=Oe.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=Oe.useRef(e.onCommit);o.current=e.onCommit;let n=Oe.useRef(e.panBoundsMs);n.current=e.panBoundsMs;let a=Oe.useRef(e.settleMs??140);a.current=e.settleMs??140;let i=Oe.useRef(e.zoomIntent??(M=>M.ctrlKey));i.current=e.zoomIntent??(M=>M.ctrlKey);let s=Oe.useRef(e.onGestureStart);s.current=e.onGestureStart;let c=Oe.useRef(e.onFramePreview);c.current=e.onFramePreview;let l=Oe.useRef(null),d=Oe.useRef({scale:1,cursorFrac:.5,panDxPx:0,timer:null}),u=Oe.useRef(null),m=Oe.useRef(null),p=Oe.useRef(false),g=Oe.useCallback((M,L,R)=>{m.current={translateX:M,scaleX:L,preview:R},u.current==null&&(u.current=cT(()=>{u.current=null;let B=m.current;B!=null&&(t.current?.setAttribute("transform",`translate(${B.translateX},0) scale(${B.scaleX},1)`),c.current?.(B.preview));}));},[t]),f=Oe.useCallback(()=>{u.current!=null&&(dT(u.current),u.current=null),m.current=null,t.current?.removeAttribute("transform"),c.current?.(null);},[t]),x=Oe.useCallback(()=>{p.current||(p.current=true,s.current?.());},[]),b=Oe.useCallback(()=>{p.current=false;},[]),h=Oe.useCallback(()=>{d.current.timer!=null&&(clearTimeout(d.current.timer),d.current.timer=null);},[]),y=Oe.useCallback(()=>{d.current={scale:1,cursorFrac:.5,panDxPx:0,timer:null};},[]),v=Oe.useCallback(()=>{let{xDomain:M,plotWidthPx:L}=r.current,{scale:R,cursorFrac:B,panDxPx:Y}=d.current;R===1&&Y===0||o.current(tb(eb(M,R,B,Y,L),n.current));},[]),S=Oe.useCallback(()=>{d.current.timer!=null&&(h(),v(),y(),f());},[h,v,y,f]),N=Oe.useCallback(M=>{S(),M.currentTarget.setPointerCapture?.(M.pointerId),l.current={startX:M.clientX,dxPx:0},x();},[S,x]),w=Oe.useCallback(M=>{if(!l.current)return;l.current.dxPx=M.clientX-l.current.startX;let{xDomain:L,plotWidthPx:R}=r.current;g(l.current.dxPx,1,js(L,l.current.dxPx,R));},[g]),D=Oe.useCallback(M=>{if(!l.current)return;let{dxPx:L}=l.current;l.current=null,f(),b(),L!==0&&o.current(tb(js(r.current.xDomain,L,r.current.plotWidthPx),n.current));},[f,b]),k=Oe.useCallback(()=>{l.current&&(l.current=null,f(),b());},[f,b]),P=Oe.useRef(null),I=Oe.useCallback(M=>{if(P.current?.(),P.current=null,!M)return;let L=R=>{if(l.current)return;let{plotWidthPx:B,plotLeftPx:Y}=r.current,H=pu(R.deltaY,R.deltaMode),W=pu(R.deltaX,R.deltaMode),Z=i.current(R);if(!Z&&W===0)return;if(R.preventDefault(),x(),Z){let E=Math.min(1,Math.max(0,(R.clientX-M.getBoundingClientRect().left)/Math.max(1,B)));d.current.scale*=Math.exp(-H/200),d.current.cursorFrac=E;}else d.current.panDxPx-=W;let{scale:q,cursorFrac:Q,panDxPx:T}=d.current;g((Y+Q*B)*(1-q)+T,q,eb(r.current.xDomain,q,Q,T,B)),h(),d.current.timer=setTimeout(()=>{v(),y(),f(),b();},a.current);};M.addEventListener("wheel",L,{passive:false}),P.current=()=>M.removeEventListener("wheel",L);},[g,f,h,v,y,x,b]);return Oe.useEffect(()=>()=>{P.current?.(),P.current=null,f(),d.current.timer!=null&&clearTimeout(d.current.timer);},[f]),{onPointerDown:N,onPointerMove:w,onPointerUp:D,onPointerCancel:k,wheelTargetRef:I,gestureActiveRef:p}}var sb=e=>e.type===Go||e.type===kn,bT=({children:e,viewport:t,panBounds:r,onViewportChange:o,onPlotWidthChange:n,yFormatter:a={type:"number"},yDomain:i,referenceLines:s,cameraSync:c,parentWidth:l=0,parentHeight:d=0})=>{let[u,m]=Oe.useState(null),p=Oe.useRef(null),g=Oe.useRef(0),f=Oe.useId(),x=Oe.useRef(null),b=Oe.useRef(null),h=Oe.useRef(null),{colorMode:y}=It(),v=Oe.useMemo(()=>sn(),[y]),S=Oe.useMemo(()=>Qa(),[y]),{datasets:N,seriesMetadata:w,seriesTypes:D}=Oe.useMemo(()=>{let j=Oe.Children.toArray(e).filter(ce=>Oe.isValidElement(ce)&&sb(ce)),ae=j.filter(ce=>ce.props.data).length,_=[],X=[],U=[];return j.forEach((ce,se)=>{let $=ce.props;if(!$.data)return;_.push($.data);let _e=("color"in $&&$.color?$.color:void 0)||(ae===1?S:v[se%v.length]),Ir=ce.type===Go;X.push({label:"label"in $&&$.label||`Series ${_.length}`,color:_e,...Ir&&"baseline"in $&&$.baseline!==void 0?{baseline:$.baseline,tooltipRange:"tooltipRange"in $&&$.tooltipRange||false}:{}}),U.push(Ir?"area":"line");}),{datasets:_,seriesMetadata:X,seriesTypes:U}},[e,S,v]),k=l,P=Math.max(100,d-60),I=Oe.useMemo(()=>[new Date(t.startMs),new Date(t.endMs)],[t.startMs,t.endMs]),M=Oe.useMemo(()=>{let j=N.flat(),ae=j.filter(_=>{let X=_.xValue.getTime();return X>=t.startMs&&X<=t.endMs});return ae.length>0?ae:j},[N,t.startMs,t.endMs]),L=Oe.useMemo(()=>{let j=ui(M,P,a,i);if(!i){let[ae,_]=j.domain();_>ae&&j.domain([ae,_+(_-ae)*.05]);}return j},[M,P,a,i]),R=Oe.useRef(JSON.stringify(a)),B=Oe.useRef(null),Y=Oe.useMemo(()=>{let[j,ae]=L.domain(),_=Math.max(Math.abs(j),Math.abs(ae)),X=JSON.stringify(a);if(X!==R.current&&(R.current=X,B.current=null),B.current!==null)return B.current;if(_===0)return va(a,0);let U=va(a,_);return B.current=U,U},[L,a]),H=Oe.useMemo(()=>{let j=P-Ae.top-Ae.bottom;return Sa(j)},[P]),W=Oe.useMemo(()=>{let j=Or(Y),ae=j.tickFormat||j.format,X=L.ticks(H).map(se=>ae(se)),U=Ca(X,12,"system-ui"),ce=Math.ceil(U)+12;return {...Ae,left:Math.max(ce,30)}},[L,Y,H]),Z=Oe.useMemo(()=>scale.scaleTime({domain:I,range:[W.left,k-W.right]}),[I,k,W]),q=Oe.useMemo(()=>[t.startMs,t.endMs],[t.startMs,t.endMs]),Q=Oe.useMemo(()=>r?[r.startMs,r.endMs]:void 0,[r]),T=Oe.useCallback(j=>{o({startMs:j[0],endMs:j[1]});},[o]),E=k-W.left-W.right,O=Oe.useCallback(()=>m(null),[]),A=Oe.useRef({}),C=Oe.useRef(c);C.current=c;let F=Oe.useCallback(j=>{b.current?.setPreview(j),h.current?.setPreview(j),C.current?.publish(A.current,j);},[]),{onPointerDown:z,onPointerMove:G,onPointerUp:oe,onPointerCancel:ue,wheelTargetRef:te,gestureActiveRef:le}=rb({xDomain:q,plotWidthPx:E,plotLeftPx:W.left,groupRef:x,onCommit:T,onGestureStart:O,onFramePreview:F,...Q?{panBoundsMs:Q}:{}}),me=Oe.useRef({startMs:t.startMs,endMs:t.endMs,left:0,width:0});me.current={startMs:t.startMs,endMs:t.endMs,left:W.left,width:E},Oe.useEffect(()=>{if(!c)return;let j=()=>{x.current?.removeAttribute("transform"),b.current?.setPreview(null),h.current?.setPreview(null);},ae=X=>{if(le.current)return;if(X==null){j();return}let{startMs:U,endMs:ce,left:se,width:$}=me.current,Se=ce-U,_e=X[1]-X[0];if(Se<=0||_e<=0||$<=0)return;let Ir=Se/_e,po=se*(1-Ir)+(U-X[0])*$/_e;x.current?.setAttribute("transform",`translate(${po},0) scale(${Ir},1)`),b.current?.setPreview(X),h.current?.setPreview(X);},_=c.subscribe(A.current,ae);return ()=>{_(),le.current||j();}},[c,le]),Oe.useEffect(()=>{n?.(Math.max(0,k-W.left-W.right));},[k,W,n]);let re=Oe.useCallback(j=>{if(le.current)return;let{left:ae}=p.current?.getBoundingClientRect()||{left:0},_=j.clientX-ae;j.timeStamp-(g.current||0)<16||(g.current=j.timeStamp,m(jg({mouseX:_,datasets:N,seriesMetadata:w,seriesTypes:D,xScale:Z,yScale:L,plotLeft:W.left,plotRight:k-W.right})));},[N,w,D,Z,L,k,W,le]),ie=Oe.useCallback(()=>m(null),[]),fe={width:k,height:P,xScale:Z,yScale:L,yFormatter:Y,animationSettings:Bs,tooltip:{data:u,show:m,hide:()=>m(null)},datasets:N,seriesMetadata:w,seriesTypes:D},xe=0,Be=[];Oe.Children.toArray(e).forEach(j=>{if(!Oe.isValidElement(j)){Be.push(j);return}if(sb(j)){let ae=xe;xe++;let _=j.props;Be.push(Oe__namespace.default.cloneElement(j,{..._,color:w[ae]?.color,animate:false}));}else Be.push(j);});let Ze=w.map(j=>({category:j.label,fill:j.color})),Kt=Us({datasets:N,metadata:{xLabel:"Date",yLabel:"Value",seriesLabels:w.map(j=>j.label),timestamp:true},svgRef:p}),ir=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("title",{children:"Data chart visualization"}),jsxRuntime.jsx("g",{children:L.ticks(H).map(j=>{let ae=Math.abs(j)<Number.EPSILON;return jsxRuntime.jsx(shape.Line,{from:{x:W.left,y:L(j)},to:{x:k-W.right,y:L(j)},stroke:ae?"var(--color-border-default)":"var(--color-border-muted)",strokeWidth:ae?1.5:1},`grid-line-${j}`)})}),jsxRuntime.jsx(uu,{ref:h,scale:Z,width:k-W.left-W.right,top:L.range()[1],bottom:L.range()[0]}),jsxRuntime.jsx("defs",{children:jsxRuntime.jsx("clipPath",{id:f,children:jsxRuntime.jsx("rect",{x:Z.range()[0],y:L.range()[1],width:Z.range()[1]-Z.range()[0],height:L.range()[0]-L.range()[1]})})}),jsxRuntime.jsx("g",{clipPath:`url(#${f})`,children:jsxRuntime.jsx("g",{"data-camera-plot-group":"",ref:x,children:Be})}),s&&s.length>0&&jsxRuntime.jsx("g",{children:s.map(j=>{let ae=L(j.value),_=j.color??"var(--color-error-base)";return jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx(shape.Line,{from:{x:W.left,y:ae},to:{x:k-W.right,y:ae},stroke:_,strokeWidth:1.5,strokeDasharray:"6 4"}),j.label&&jsxRuntime.jsx("text",{x:k-W.right-4,y:ae-4,textAnchor:"end",fontSize:11,fill:_,children:j.label})]},`ref-line-${j.value}`)})}),jsxRuntime.jsx(du,{ref:b,top:P-W.bottom,scale:Z,width:k-W.left-W.right}),jsxRuntime.jsx(Tr.Left,{left:W.left,scale:L,yFormatter:Y,height:P-W.top-W.bottom}),u&&!u.isEvent&&jsxRuntime.jsx(jsxRuntime.Fragment,{children:u.series.filter(j=>j.type!=="bar"&&j.showMarker!==false).map(j=>jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("circle",{cx:Z(u.xValue),cy:L(j.chartY??j.value),r:8,fill:"white",stroke:j.color,strokeWidth:2,style:{transition:"all 100ms ease-out"}}),jsxRuntime.jsx("circle",{cx:Z(u.xValue),cy:L(j.chartY??j.value),r:4,fill:j.color,style:{transition:"all 100ms ease-out"}})]},`highlight-${j.label}`))}),jsxRuntime.jsx("rect",{"data-camera-surface":"",x:W.left,y:W.top,width:k-W.left-W.right,height:P-W.top-W.bottom,fill:"transparent",style:{cursor:"grab",touchAction:"none"},onMouseMove:re,onMouseLeave:ie,onPointerDown:z,onPointerMove:G,onPointerUp:oe,onPointerCancel:ue,ref:te})]});return jsxRuntime.jsx("div",{className:"relative flex h-full flex-col",children:jsxRuntime.jsxs(kr.Provider,{value:fe,children:[jsxRuntime.jsx("svg",{width:k,height:P,className:"overflow-visible",ref:p,role:"img","aria-label":"Data chart",children:ir}),jsxRuntime.jsx(Uo,{data:u,formatter:Y}),jsxRuntime.jsx(Na,{onExport:Kt,items:Ze,marginLeft:0,marginRight:W.right})]})})},Qs=responsive.withParentSize(bT);function mu(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 xT(e,t){return Math.floor(e/t.tileSpanMs)}function Ko(e,t,r){let o=xT(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 tr=(e,t)=>`${e}:${t}`;var cb={erroredTiles:0};function fu(e,t){let r=new Map,o=new Map,n=0;for(let c of e){let l=t.get(tr(c.tierId,c.index));if(l){if(l.status==="error"){n+=1;continue}if(l.data){for(let d of l.data.line)r.set(d.xValue.getTime(),d);for(let d of l.data.band??[])o.set(d.xValue.getTime(),d);}}}let a=(c,l)=>c.xValue.getTime()-l.xValue.getTime(),i=[...r.values()].sort(a),s=[...o.values()].sort(a);return {line:i,band:s,coverage:{earliestMs:i.length?i[0].xValue.getTime():void 0,latestMs:i.length?i[i.length-1].xValue.getTime():void 0,erroredTiles:n}}}function hT(e,t,r){let o=Ko(e,t,0);return o.length===0?false:o.every(n=>{let a=r.get(tr(n.tierId,n.index));return a!=null&&(a.status==="loaded"||a.status==="empty")})}function db(e,t,r){return Ko(e,t,0).some(n=>{let a=r.get(tr(n.tierId,n.index));return a?.status==="loaded"&&(a.data?.line.length??0)>0})}function yT(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 ub({viewport:e,targetTier:t,ladder:r,store:o,overscanTiles:n,prev:a}){let i=hT(e,t,o);if(i&&db(e,t,o)){let c=Ko(e,t,n),{line:l,band:d,coverage:u}=fu(c,o);return {line:l,band:d,renderTier:t,targetTier:t,isFallback:false,isStale:false,coverage:u}}let s=r.findIndex(c=>c.id===t.id);for(let c=s+1;c<r.length;c++){let l=r[c];if(db(e,l,o)){let d=Ko(e,l,n),{line:u,band:m,coverage:p}=fu(d,o);return {line:u,band:m,renderTier:l,targetTier:t,isFallback:true,isStale:false,coverage:p}}}if(i){let c=Ko(e,t,n),{line:l,band:d,coverage:u}=fu(c,o);return {line:l,band:d,renderTier:t,targetTier:t,isFallback:false,isStale:false,coverage:u}}return a?yT(a,e)?{...a,targetTier:t,isFallback:true,isStale:false}:{line:a.line,band:a.band,renderTier:null,targetTier:t,isFallback:true,isStale:true,coverage:cb}:{line:[],band:[],renderTier:null,targetTier:t,isFallback:false,isStale:false,coverage:cb}}var pb=new Map;function mb(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 gb({refs:e,refsKey:t,store:r,tier:o,viewport:n,fetchTile:a,dispatch:i,concurrency:s,maxFutureMs:c}){let l=Oe.useRef(e);l.current=e;let d=Oe.useRef(n);d.current=n;let u=Oe.useRef(new Map),m=Oe.useCallback(()=>{for(let p of u.current.values())p.ac.abort();u.current.clear();},[]);return Oe.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=tr(b.tierId,b.index),y=r.get(h);return y?y.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),x=p.slice(0,f);if(x.length!==0){i({type:"request",ids:x.map(b=>tr(b.tierId,b.index))});for(let b of x){let h=tr(b.tierId,b.index),y=new AbortController;u.current.set(h,{ac:y,tierId:b.tierId});let v=c!=null?Math.min(b.endMs,c):b.endMs;a(o,b.startMs,v,y.signal).then(S=>{y.signal.aborted||i({type:"fulfilled",id:h,data:S});}).catch(S=>{if(!y.signal.aborted){let N=S instanceof Error?S.message:String(S);i({type:"failed",id:h,error:new Error(`tile fetch failed (tile ${h}, tier ${o.id}): ${N}`)});}}).finally(()=>{u.current.delete(h);});}}},[t,r,a,o,i,s,c]),Oe.useEffect(()=>m,[m]),{abortAll:m}}var hb=1.3,ST=25e4,wT=3;function NT(e,t,r){let o=t.tileSpanMs/t.bucketMs,n=Math.max(1,Math.floor(ST/o/r));return Math.min(Math.max(1,Math.ceil(.5*e/t.tileSpanMs)),n)}function vb(e){let{fetchTile:t,ladder:r,nativeMs:o,viewport:n,widthPx:a,maxFutureMs:i,targetPointsPerPx:s=1,concurrency:c=3,tileCostSeriesCount:l=wT,resetKey:d}=e,u=Oe.useMemo(()=>({targetPointsPerPx:s,nativeMs:o}),[s,o]),[m,p]=Oe.useState(()=>mu(n.endMs-n.startMs,Math.max(1,a),r,u)),[g,f]=Oe.useReducer(mb,pb),x=Oe.useRef(n.endMs-n.startMs);Oe.useEffect(()=>{let B=n.endMs-n.startMs,Y=mu(B,Math.max(1,a),r,u);if(Y.id===m.id)return;let H=B/x.current;(H>hb||H<1/hb)&&(x.current=B,p(Y));},[n,a,r,m.id,u]);let b=n.endMs-n.startMs,h=Oe.useMemo(()=>NT(b,m,l),[b,m,l]),y=Oe.useMemo(()=>Ko(n,m,h),[n,m,h]),v=Oe.useMemo(()=>y.map(B=>tr(B.tierId,B.index)).join(","),[y]),S=Oe.useRef(y);S.current=y;let N=Oe.useRef(n);N.current=n;let w=Oe.useRef(g);w.current=g;let{abortAll:D}=gb({refs:y,refsKey:v,store:g,tier:m,viewport:n,fetchTile:t,dispatch:f,concurrency:c,...i!=null?{maxFutureMs:i}:{}}),k=Oe.useRef(null),P=Oe.useRef(false);Oe.useEffect(()=>{if(!P.current){P.current=true;return}D(),k.current=null,f({type:"reset"});},[D,d]);let I=Oe.useMemo(()=>S.current.map(B=>`${tr(B.tierId,B.index)}:${g.get(tr(B.tierId,B.index))?.status??"\u2205"}`).join("|"),[v,g]),M=Oe.useMemo(()=>{let B=ub({viewport:N.current,targetTier:m,ladder:r,store:w.current,overscanTiles:h,prev:k.current});return k.current=B,B},[I,m,r,h,n.startMs,n.endMs]),L=Oe.useMemo(()=>S.current.some(B=>w.current.get(tr(B.tierId,B.index))?.status==="loading"),[I]),R=Oe.useMemo(()=>{let B=S.current[0];return B?w.current.get(tr(B.tierId,B.index))?.status==="empty":false},[I]);return {tier:m,series:M,loading:L,atDataStart:R}}function bu(e){let{initialViewport:t,...r}=e,[o,n]=Oe.useState(t),a=vb({...r,viewport:o}),i=Oe.useCallback(c=>n(c),[]),s=Oe.useCallback(c=>n(c),[]);return {viewport:o,onViewportChange:i,jumpTo:s,...a}}var kT={sm:"gap-4 px-6 py-8",md:"gap-5 px-8 py-12",lg:"gap-6 px-10 py-16"},TT={sm:"xs",md:"sm",lg:"md"},PT={sm:pt("bodySm"),md:pt("bodySm"),lg:pt("bodyMd")},RT={sm:"h-10 w-10",md:"h-12 w-12",lg:"h-16 w-16"},MT={sm:20,md:24,lg:32},DT={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"},LT={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 Zs({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:LT[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(ee,{variant:"secondary",size:m,onPress:o.onPress,isDisabled:o.isDisabled,isLoading:o.isLoading,href:o.href,children:o.label}):jsxRuntime.jsx(ee,{variant:"secondary",size:m,onPress:o.onPress,isDisabled:o.isDisabled,isLoading:o.isLoading,children:o.label})),n&&jsxRuntime.jsx(Qe,{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",kT[i],DT[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",RT[i]),children:jsxRuntime.jsx(V,{name:e,size:MT[i]})}),jsxRuntime.jsx(qt,{size:TT[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",PT[i]),children:r}),f()]})}function VT({selectionState:e,isDisabled:t}){let r=`${Ye} 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 Ra({errorMessage:e,...t}){return jsxRuntime.jsxs(reactAriaComponents.RangeCalendar,{...t,children:[jsxRuntime.jsx(Ls,{}),jsxRuntime.jsxs(reactAriaComponents.CalendarGrid,{className:"w-full border-separate [border-spacing:0] [&_td]:p-0 [&_td]:!border-0",children:[jsxRuntime.jsx(Es,{}),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:VT({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 wb(e){return e==="brand"?"primary":e==="default"||e==="secondary"||!e?"subtle":e}var OT={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"},HT={sm:14,md:16,lg:18,xl:20},WT=({isSelected:e,isFirst:t,isLast:r,isDisabled:o,variant:n="subtle"})=>{let a=wb(n),i=a==="primary"?"focus-visible:outline-action-primary":"focus-visible:outline-[color:var(--color-action-secondary-text)]";return a==="subtle"?tailwindMerge.twMerge(Ye(),"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(Ye(),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 $s({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)]",wb(i)==="subtle"?"border border-border-muted":"border-2 border-border-muted",OT[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:WT({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:HT[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 JT(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function vu(e){return JT(e)?e:(console.warn("Invalid date detected in TimeControls, using fallback:",e),new Date)}var Rb={FIVE_MINUTES:0,FIFTEEN_MINUTES:1,HOUR:2,DAY:3,WEEK:4,MONTH:5,YEAR:6},XT=[{id:"FIFTEEN_MINUTES",label:"15m"},{id:"HOUR",label:"1h"},{id:"DAY",label:"1d"},{id:"WEEK",label:"1w"}];function el({dateRange:e,onDateRangeChange:t,windowSize:r,onWindowSizeChange:o,showWindowSize:n=true,showRangeSelector:a=true,allowDatePicker:i=false,lockWindowSize:s=false,restrictToSingleDay:c=false,presetRanges:l=[],windowSizeOptions:d=XT,autoAdjustWindowSize:u=false,className:m}){let[p,g]=Oe.useState(0),f=Oe.useRef(null),[x,b]=Oe.useState(false),h=T=>{let O=(T.before.getTime()-T.after.getTime())/(1e3*60*60);return O<=24?"FIFTEEN_MINUTES":O<=72||O<=168?"HOUR":("DAY")};Oe.useEffect(()=>{if(u&&!x&&o){let T=h(e);o(T);}},[e,u,x,o]);let y=T=>l.find(E=>{let O=E.getRange();return Math.abs(O.after.getTime()-T.after.getTime())<1e3*60*60*24&&Math.abs(O.before.getTime()-T.before.getTime())<1e3*60*60*24})?.id,[v,S]=Oe.useState(()=>y(e)),N=vu(e.after),w=vu(e.before),D=new Date(w);D.setDate(D.getDate()-1);let k={start:date.fromDate(N,date.getLocalTimeZone()),end:date.fromDate(D,date.getLocalTimeZone())};Oe.useEffect(()=>{let T=new ResizeObserver(E=>{for(let O of E)g(O.contentRect.width);});return f.current&&T.observe(f.current),()=>{f.current&&T.unobserve(f.current);}},[]);let P=[...d].sort((T,E)=>Rb[T.id]-Rb[E.id]),I=T=>{let E=T.toString(),O=l.find(A=>A.id===E);O&&(S(E),b(false),t(O.getRange(),{presetId:E}));},M=T=>{if(T?.start&&T?.end){S(void 0);let E=new Date(T.start.year,T.start.month-1,T.start.day,0,0,0,0),O=new Date(T.end.year,T.end.month-1,T.end.day+1,0,0,0,0);t({after:E,before:O});}},L=T=>{if(T){S(void 0);let E=new Date(T.year,T.month-1,T.day,0,0,0,0),O=new Date(T.year,T.month-1,T.day+1,0,0,0,0);t({after:E,before:O});}},R=T=>{o&&(b(true),o(T.toString()));},B=()=>{if(l.length>0){let T=l[0];S(T.id),b(false),t(T.getRange(),{presetId:T.id});}},Y=(T,E=0)=>{let O=vu(T),A=new Date(O);return E!==0&&A.setDate(A.getDate()+E),A.toLocaleDateString("en-US")},H=P.map(T=>({id:T.id,label:T.label,value:T.id})),W=l.map(T=>({id:T.id,label:T.label,value:T.id})),Z=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:P.find(T=>T.id===r)?.label||r}):jsxRuntime.jsx(gn,{className:"w-full md:w-auto",selectedKey:r,onSelectionChange:R,items:H,size:"md","aria-label":"Select Window Size",children:T=>jsxRuntime.jsx(Zt,{id:T.id,"aria-label":T.label,size:"md",children:T.label},T.id)}),q=c?jsxRuntime.jsx("div",{className:"flex items-center",children:jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{children:[jsxRuntime.jsxs(ee,{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:Y(e.after)})]}),jsxRuntime.jsx(nt,{className:"w-auto p-3",disableGroup:true,children:jsxRuntime.jsx(ba,{"aria-label":"Select date",value:date.parseDate(N.toISOString().split("T")[0]),onChange:L})})]})}):jsxRuntime.jsxs("div",{className:"flex items-center",children:[jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{children:[jsxRuntime.jsxs(ee,{className:"rounded-r-none 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}),!v&&jsxRuntime.jsx("span",{className:"ml-2 hidden md:block",children:`${Y(e.after)} - ${Y(e.before,-1)}`})]}),jsxRuntime.jsx(nt,{className:"w-auto p-3",disableGroup:true,children:jsxRuntime.jsx(Ra,{"aria-label":"Date range calendar",value:k,onChange:M})})]}),!v&&jsxRuntime.jsx(ee,{variant:"ghost",size:"md",onPress:B,children:"Reset"})]}),Q=p<600;return jsxRuntime.jsx("div",{ref:f,className:tailwindMerge.twMerge("flex w-full flex-wrap items-center justify-between gap-4",m),children:Q?jsxRuntime.jsxs("div",{className:"flex w-full justify-between",children:[jsxRuntime.jsxs("div",{className:"flex items-center",children:[i&&q,a&&v!==void 0&&jsxRuntime.jsx(gn,{selectedKey:v,onSelectionChange:I,items:W,size:"md","aria-label":"Select Date Range",children:T=>jsxRuntime.jsx(Zt,{id:T.id,size:"md",children:T.label},T.id)})]}),jsxRuntime.jsx("div",{className:"flex items-center",children:n&&r&&Z})]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-4",children:[i&&q,a&&v!==void 0&&jsxRuntime.jsx($s,{options:l.map(T=>({id:T.id,label:T.label})),value:v,onChange:I,size:"sm",variant:"secondary","aria-label":"Select Date Range"})]}),jsxRuntime.jsx("div",{className:"flex items-center",children:n&&r&&Z})]})})}var _T=1440*60*1e3,$T=6e4,Dn=(e,t)=>({startMs:t-e*_T,endMs:t}),Ma=e=>({after:new Date(e.startMs),before:new Date(e.endMs)});function Mb({source:e,initialRange:t,viewportEnd:r,yFormatter:o,yDomain:n,referenceLines:a,emptyState:i,presetRanges:s,tierToWindow:c,windowSizeOptions:l,height:d=360,hint:u,dataBounds:m,children:p}){let[g,f]=Oe.useState(900),x=m?.endMs,[b,h]=Oe.useState(()=>x??Date.now());Oe.useEffect(()=>{if(x!=null){h(x);return}h(Date.now());let me=setInterval(()=>h(Date.now()),$T);return ()=>clearInterval(me)},[x]);let y=r?.getTime()??x,v=t?.days??30,S=Oe.useMemo(()=>Dn(v,y??Date.now()),[v,y]),N=b,w=Oe.useMemo(()=>({startMs:m?.startMs??0,endMs:b}),[m?.startMs,b]),D=me=>{let re=Math.min(me.endMs-me.startMs,w.endMs-w.startMs),ie=Math.max(Math.min(me.endMs,w.endMs),w.startMs+re);return {startMs:ie-re,endMs:ie}},[k,P]=Oe.useState(null),[I,M]=Oe.useState(null),L=k??S,R=bu({fetchTile:e.fetchTile,ladder:e.ladder,nativeMs:e.nativeMs,initialViewport:S,widthPx:g,maxFutureMs:N,tileCostSeriesCount:e.tileCostSeriesCount,resetKey:e.resetKey}),B=Oe.useMemo(()=>[{id:"5y",label:"5 years",getRange:()=>Ma(Dn(5*365,y??Date.now()))},{id:"year",label:"Year",getRange:()=>Ma(Dn(365,y??Date.now()))},{id:"month",label:"Month",getRange:()=>Ma(Dn(30,y??Date.now()))},{id:"week",label:"Week",getRange:()=>Ma(Dn(7,y??Date.now()))},{id:"day",label:"24h",getRange:()=>Ma(Dn(1,y??Date.now()))}],[y]),Y=s??B,H=()=>{if(I&&"presetId"in I){let me=Y.find(re=>re.id===I.presetId);if(me){let re=me.getRange();return {startMs:re.after.getTime(),endMs:re.before.getTime()}}}return I&&"range"in I?I.range:Dn(v,y??Date.now())},{line:W,coverage:Z,renderTier:q,targetTier:Q,isFallback:T,isStale:E}=R.series,O=q?q.bucketMs*1.5:0,A=me=>me==null?"\u2014":new Date(me).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),C=(me,re)=>{let ie=re-me<1728e5?{month:"short",day:"numeric",hour:"numeric",minute:"2-digit"}:{month:"short",day:"numeric",year:"numeric"},fe=new Intl.DateTimeFormat("en-US",ie);return `${fe.format(new Date(me))} \u2013 ${fe.format(new Date(re))}`},F=R.viewport.startMs!==L.startMs||R.viewport.endMs!==L.endMs,z=E||R.loading&&Z.earliestMs==null,G=(R.viewport.endMs-R.viewport.startMs)*.03,oe=!z&&Z.earliestMs!=null&&Z.earliestMs>R.viewport.startMs+G,ue=!R.loading&&Z.earliestMs==null&&Z.latestMs==null&&W.length===0&&!E,te=p({series:R.series,gapMs:O}),le=Oe.isValidElement(te)&&te.type===Oe.Fragment?te.props.children:te;return jsxRuntime.jsxs("div",{className:"flex flex-col gap-3",children:[jsxRuntime.jsx(el,{dateRange:Ma(R.viewport),onDateRangeChange:(me,re)=>{let ie=D({startMs:me.after.getTime(),endMs:me.before.getTime()});M(re?.presetId?{presetId:re.presetId}:{range:ie}),P(ie),R.jumpTo(ie);},windowSize:c[Q.id],windowSizeOptions:l,lockWindowSize:true,presetRanges:Y}),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:C(R.viewport.startMs,R.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:q?.id??Q.id}),T&&jsxRuntime.jsxs("span",{className:"text-text-tertiary",children:[" \xB7 loading ",Q.id]})]}),R.loading&&jsxRuntime.jsx("span",{className:"text-text-tertiary",children:"loading\u2026"}),oe&&jsxRuntime.jsxs("span",{className:"text-text-tertiary",children:["showing available history from ",A(Z.earliestMs)]}),!oe&&!z&&R.atDataStart&&jsxRuntime.jsx("span",{className:"text-text-tertiary",children:"no earlier data loaded"}),F&&jsxRuntime.jsx(ee,{variant:"ghost",size:"sm",onPress:()=>{let me=D(H());P(me),R.jumpTo(me);},children:"\u27F2 Reset"})]}),jsxRuntime.jsx("div",{className:"relative overflow-hidden rounded-md border border-border-subtle",style:{height:d},children:ue?jsxRuntime.jsx(Zs,{title:i.title,description:i.description}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Qs,{viewport:R.viewport,panBounds:w,onViewportChange:R.onViewportChange,onPlotWidthChange:f,...o&&{yFormatter:o},...n&&{yDomain:n},...a&&{referenceLines:a},children:le}),R.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"})]})}),u&&jsxRuntime.jsx("p",{className:"text-xs text-text-tertiary",children:u})]})}function vi({count:e,label:t="results",isLoading:r=false,className:o=""}){if(r)return jsxRuntime.jsx("div",{className:`flex items-center ${o}`,children:jsxRuntime.jsx(K,{width:80,height:16})});let n=t.endsWith("s")?t.slice(0,-1):t,a=e===1?n:t;return jsxRuntime.jsxs("div",{className:`text-sm text-text-secondary whitespace-nowrap ${o}`,children:[e.toLocaleString()," ",a]})}var a1=e=>{let t=Ft({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 Mr({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[x,b]=Oe__namespace.default.useState(false),{isFocused:h,handleFocus:y,handleBlur:v}=Nr(),S=d==="password",N=Cs(p,300);return jsxRuntime.jsx(reactAriaComponents.TextField,{...f,isRequired:a,className:ke(f.className,"group flex flex-col"),children:({isDisabled:w,isInvalid:D})=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(ze,{size:o,tooltip:n,description:g==="tooltip"||g==="inline"?t:void 0,descriptionPlacement:g,isRequired:a,children:e}),jsxRuntime.jsxs(bt,{children:[s&&jsxRuntime.jsx("div",{className:"pointer-events-none absolute top-1/2 -translate-y-1/2 transform flex items-center z-10",style:{left:9},children:(()=>{let k={sm:14,md:16,lg:18,xl:20}[o];return N?jsxRuntime.jsx(mo,{size:k,color:"text-text-secondary"}):jsxRuntime.jsx(V,{name:"MagnifyingGlass",size:k,className:`transition-colors ${h?"text-action-brand":"text-text-secondary"}`})})()}),jsxRuntime.jsx(ws,{size:o,disabled:w,type:S?x?"text":"password":d,name:f.name,autoComplete:f.autoComplete,value:f.value,defaultValue:f.defaultValue,placeholder:f.placeholder,onFocus:k=>y(k,f.onFocus),onBlur:k=>v(k,f.onBlur),onChange:k=>f.onChange?.(k.target.value),style:s?{paddingLeft:{sm:28,md:32,lg:36,xl:37}[o]}:void 0,className:a1({isInvalid:D,isDisabled:w,isFocused:h,size:o,transparent:i,showSearchIcon:s,isClearable:c,hasValue:!!f.value,isPassword:S,className:typeof f.className=="string"?f.className:void 0})}),c&&f.value&&!w&&jsxRuntime.jsx(ai,{onClick:()=>{l?l():f.onChange&&f.onChange("");},size:o}),S&&!w&&jsxRuntime.jsx("button",{type:"button",onClick:()=>b(!x),className:"absolute right-3 top-1/2 -translate-y-1/2 transform text-text-secondary hover:text-text-primary","aria-label":x?"Hide password":"Show password",onMouseDown:k=>{k.preventDefault(),k.stopPropagation();},children:jsxRuntime.jsx(V,{name:x?"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(be,{size:o,children:r}):typeof r=="function"&&u?jsxRuntime.jsx(be,{size:o,children:r(u)}):t&&g==="below"?jsxRuntime.jsx(Te,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(be,{size:o,className:"mt-1",children:r}):typeof r=="function"&&u?jsxRuntime.jsx(be,{size:o,className:"mt-1",children:r(u)}):t&&g==="below"?jsxRuntime.jsx(Te,{size:o,className:"mt-1",children:t}):null})]})})}function En({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(Mr,{value:e,onChange:t,placeholder:o,showSearchIcon:true,isClearable:!!e&&!!r,onClear:r,size:n,"aria-label":o,reserveErrorSpace:false,isLoading:i})})}function Ci({value:e,options:t,onChange:r,direction:o,onDirectionChange:n,showLabel:a=true,size:i="sm",className:s="",compact:c=false}){let[l,d]=Oe.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(ee,{variant:"secondary",size:i,icon:"ArrowsDownUp","aria-label":`Sort by: ${m?.label||"Select"}`,onPress:()=>d(true)}),jsxRuntime.jsx(at,{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(Zt,{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(gn,{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(ee,{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 Ib({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:x,stickyTop:b="0",zIndex:h=10,className:y="",style:v}){let S=r.length>0;if(!(e||S||a||c||l||d||u||m||p||g||i))return null;let w=x?"sticky bg-background-surface":"",D=x?{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 ${w} ${y}`,style:{...v,...D},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(vi,{count:l.count,label:l.label,isLoading:l.isLoading}),l&&c&&jsxRuntime.jsx("div",{className:"h-4 w-px bg-border-default"}),c&&jsxRuntime.jsx(Ci,{value:c.value,options:c.options,onChange:c.onChange,showLabel:c.showLabel,direction:c.direction,onDirectionChange:c.onDirectionChange}),u?jsxRuntime.jsx(ee,{variant:"secondary",size:"sm",icon:"Columns",onClick:u,children:"Columns"}):m,S&&o&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[r.slice(0,s).map(k=>jsxRuntime.jsxs($r,{variant:"primary",size:"sm",onRemove:()=>o(k.id),isRemovable:true,children:[k.label,": ",k.value]},k.id)),r.length>s&&a&&jsxRuntime.jsxs(ee,{variant:"ghost",size:"sm",onClick:a,className:"text-text-secondary hover:text-text-primary whitespace-nowrap",children:["+",r.length-s," more"]}),n&&jsxRuntime.jsx(ee,{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(k=>jsxRuntime.jsx(ee,{variant:k.variant||"secondary",size:"sm",icon:k.icon,onPress:k.onClick,isDisabled:k.disabled,children:k.label},k.id))}),e&&jsxRuntime.jsx("div",{className:"w-64",children:jsxRuntime.jsx(En,{value:e.value,onChange:e.onChange,onClear:e.onClear,placeholder:e.placeholder,isLoading:e.isLoading})}),a&&jsxRuntime.jsx(ee,{variant:"secondary",size:"sm",icon:"Sliders",badgeNumber:r.length>0?r.length:void 0,onClick:a,children:"Filters"}),i&&jsxRuntime.jsx(ee,{variant:"secondary",size:"sm",icon:"Upload",onClick:i.onClick,isDisabled:i.isDisabled,children:i.label})]})})]}),jsxRuntime.jsxs("div",{className:"@[640px]:hidden",children:[jsxRuntime.jsx("div",{className:"flex flex-col gap-3 mb-3",children:jsxRuntime.jsx("div",{className:"flex items-center gap-3",children:p?jsxRuntime.jsx("div",{className:"flex-1",children:p}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[g&&g.items.length>0&&jsxRuntime.jsx(ma,{items:g.items.map(k=>({id:k.id,name:k.label,iconName:k.icon,variant:k.variant==="destructive"?"destructive":"primary",disabled:k.disabled,onAction:k.onClick})),align:"left",size:"sm",children:jsxRuntime.jsx(ee,{variant:"secondary",size:"sm",icon:"DotsThreeVertical","aria-label":g.menuLabel||"Actions"})}),e&&jsxRuntime.jsx("div",{className:"flex-1",children:jsxRuntime.jsx(En,{value:e.value,onChange:e.onChange,onClear:e.onClear,placeholder:e.placeholder,isLoading:e.isLoading})}),a&&jsxRuntime.jsx(ee,{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(ee,{variant:"secondary",size:"sm",icon:"Upload",onClick:i.onClick,isDisabled:i.isDisabled,children:i.label})]})})}),jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-3",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[d,l&&jsxRuntime.jsx(vi,{count:l.count,label:l.label,isLoading:l.isLoading})]}),jsxRuntime.jsx("div",{className:"flex items-center gap-2",children:c&&jsxRuntime.jsx(Ci,{value:c.value,options:c.options,onChange:c.onChange,showLabel:false,direction:c.direction,onDirectionChange:c.onDirectionChange,compact:f!=="desktop"})})]})]})]})}function Fb({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(ee,{variant:"secondary",size:s,onClick:o,className:"whitespace-nowrap",children:[e.length," ",e.length===1?"filter":"filters"]}),x=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[g&&jsxRuntime.jsx(ee,{variant:"secondary",size:s,icon:"Sliders",onClick:o,className:"whitespace-nowrap",children:"Filters"}),l&&d.map(h=>jsxRuntime.jsxs($r,{variant:"secondary",size:s,onRemove:()=>t(h.id),isRemovable:true,children:[h.label,": ",h.value]},h.id)),l&&m&&o&&jsxRuntime.jsxs(ee,{variant:"ghost",size:s,onClick:o,className:"text-text-secondary hover:text-text-primary whitespace-nowrap",children:["+",u," more"]}),l&&r&&jsxRuntime.jsx(ee,{variant:"ghost",size:s,onClick:r,className:"text-text-secondary hover:text-text-primary whitespace-nowrap",children:"Clear all"})]}),b=a==="button"?f:x;return jsxRuntime.jsx("div",{className:`flex flex-wrap items-center gap-2 ${c}`,children:b})}function p1(e,t,r){return {field:e,operator:t,value:r}}function m1(e,t="AND"){return {logic:t,conditions:e}}function Si(){return {logic:"AND",conditions:[]}}function nl(e){return !e||e.conditions.length===0?true:e.conditions.every(t=>"conditions"in t?nl(t):false)}function f1(e,t){if(!e)return [];let r=new Map(t?.map(i=>[i.field,i])),o=new Map;function n(i){if("conditions"in i)i.conditions.forEach(s=>n(s));else {let s=o.get(i.field)||[];s.push(i),o.set(i.field,s);}}e.conditions.forEach(i=>n(i));let a=[];for(let[i,s]of o.entries()){let c=r.get(i),l=c?.label||i,d=[],u=[],m=[];for(let p of s)p.operator==="in"&&Array.isArray(p.value)?d.push(...p.value):p.operator==="eq"?typeof p.value!="boolean"&&!Array.isArray(p.value)?d.push(p.value):m.push(p):["gte","gt","lte","lt"].includes(p.operator)?u.push({operator:p.operator,value:typeof p.value=="boolean"||Array.isArray(p.value)?String(p.value):p.value}):m.push(p);if(d.length>0){let 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":">",x=g.operator==="lte"?"\u2264":"<";a.push({id:`${i}-range`,label:l,value:`${f} ${p.value} and ${x} ${g.value}`});}else for(let f of u){let x;f.operator==="gte"?x="\u2265":f.operator==="gt"?x=">":f.operator==="lte"?x="\u2264":x="<",a.push({id:`${i}-${f.operator}`,label:l,value:`${x} ${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}"`:g=String(p.value),a.push({id:`${i}-${p.operator}`,label:l,value:g});}}return a}function Xo(e,t){let r=e||Si();return {...r,conditions:[...r.conditions,t]}}function An(e,t){if(!e)return Si();let r=e.conditions.filter(o=>"conditions"in o?An(o,t).conditions.length>0:o.field!==t);return {...e,conditions:r}}function In(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 Vb({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]=Oe.useState(false),f=x=>{m.onChange&&x&&m.onChange(x),g(false);};return jsxRuntime.jsxs(reactAriaComponents.DateField,{...m,isDisabled:i,isRequired:a,isInvalid:s,className:ke(u,"flex flex-col gap-1"),children:[e&&jsxRuntime.jsx(ze,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(bt,{children:jsxRuntime.jsxs("div",{className:"relative w-full",children:[jsxRuntime.jsx(wi,{size:o,isDisabled:i,isInvalid:s,hasCalendar:c}),c&&!i&&jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{isOpen:p,onOpenChange:g,children:[jsxRuntime.jsx(ee,{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(ba,{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(be,{size:o,children:r}):typeof r=="function"&&d?jsxRuntime.jsx(be,{size:o,children:r(d)}):t?jsxRuntime.jsx(Te,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(be,{size:o,className:"mt-1",children:r}):typeof r=="function"&&d?jsxRuntime.jsx(be,{size:o,className:"mt-1",children:r(d)}):t?jsxRuntime.jsx(Te,{size:o,className:"mt-1",children:t}):null})]})}function S1({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 wi({size:e="md",isDisabled:t,isInvalid:r,hasCalendar:o,className:n,...a}){return jsxRuntime.jsx(reactAriaComponents.DateInput,{className:tailwindMerge.twMerge(Io({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:S1({isPlaceholder:i.isPlaceholder,isDisabled:!i.isEditable||t,size:e})})})}function al({label:e,description:t,errorMessage:r,...o}){return jsxRuntime.jsxs(reactAriaComponents.DateRangePicker,{...o,className:ke(o.className,"group flex flex-col gap-1"),children:[e&&jsxRuntime.jsx(ze,{children:e}),jsxRuntime.jsxs(Cf,{className:"w-auto min-w-[208px]",children:[jsxRuntime.jsx(wi,{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(wi,{slot:"end",className:"flex-1 px-2 py-1.5 text-sm"}),jsxRuntime.jsx(ee,{variant:"icon",className:"mr-1 w-6 rounded outline-offset-0",children:jsxRuntime.jsx(lucideReact.CalendarIcon,{"aria-hidden":true,className:"h-4 w-4"})})]}),t&&jsxRuntime.jsx(Te,{children:t}),typeof r=="string"?jsxRuntime.jsx(be,{children:r}):null,jsxRuntime.jsx(nt,{children:jsxRuntime.jsx(Ra,{})})]})}var L1=e=>{let t=Ft({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 Ni({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=Oe.useId(),{isFocused:m,handleFocus:p,handleBlur:g}=Nr();return jsxRuntime.jsx(reactAriaComponents.NumberField,{...d,id:u,isRequired:a,className:ke(d.className,"group flex flex-col gap-1"),step:d.step??1,onChange: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:x})=>jsxRuntime.jsxs("div",{className:"flex flex-col gap-1",children:[e&&jsxRuntime.jsx(ze,{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:L1({isInvalid:x||!!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(be,{size:o,children:typeof r=="function"?r(s):r}):t&&l==="below"?jsxRuntime.jsx(Te,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:r?jsxRuntime.jsx(be,{size:o,className:"mt-1",children:typeof r=="function"?r(s):r}):t&&l==="below"?jsxRuntime.jsx(Te,{size:o,className:"mt-1",children:t}):null})]})})}var Tu={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 I1({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=Tu[r].track,a=Ye,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 F1({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=Tu[r].handle;return [o,n,e?"translate-x-[100%]":"translate-x-0",t?"forced-colors:outline-[GrayText]":""].filter(Boolean).join(" ")}function il({children:e,variant:t="primary",size:r="md",...o}){return jsxRuntime.jsx(reactAriaComponents.Switch,{...o,className:ke(o.className,`group flex items-center gap-2 ${Tu[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:I1({...n,size:r}),children:jsxRuntime.jsx("span",{className:F1({...n,size:r})})}),e]})})}function Hb(e){return new Intl.NumberFormat("en-US").format(e)}function Wb({isOpen:e,onClose:t,facetConfigs:r,facetCounts:o={},currentFilters:n,onApply:a,onClear:i,title:s="Filters",resultCount:c}){let[l,d]=Oe.useState(n),[u,m]=Oe.useState({}),[p,g]=Oe.useState({}),[f,x]=Oe.useState(null),{isMobile:b}=Jt(),h=Oe.useMemo(()=>r.some(C=>C.group),[r]),{groups:y,ungroupedFacets:v,facetsByGroup:S}=Oe.useMemo(()=>{let C=new Set,F=[],z={};for(let G of r)G.group?(C.has(G.group)||(C.add(G.group),z[G.group]=[]),z[G.group].push(G)):F.push(G);return {groups:Array.from(C),ungroupedFacets:F,facetsByGroup:z}},[r]);Oe.useEffect(()=>{e&&(d(n),m({}),g({}),x(!b&&y.length>0?y[0]:null));},[e,n,y,b]);let N=Oe.useMemo(()=>!l||nl(l)?0:In(l).length,[l]),w=()=>{a(l),t();},D=()=>{let C=Si();d(C),i?i():a(C),t();},k=C=>{if(!l)return [];if(!In(l).includes(C))return [];let z=[];function G(oe){if(oe)for(let ue of oe.conditions)"conditions"in ue?G(ue):ue.field===C&&ue.operator==="in"&&Array.isArray(ue.value)&&z.push(...ue.value.map(String));}return G(l),z},P=(C,F,z)=>{let G=An(l,C);F!==void 0&&(G=Xo(G,{field:C,operator:"gte",value:F})),z!==void 0&&(G=Xo(G,{field:C,operator:"lte",value:z})),d(G);},I=C=>{if(!l)return;let F;function z(G){if(G)for(let oe of G.conditions)"conditions"in oe?z(oe):oe.field===C&&oe.operator==="eq"&&typeof oe.value=="boolean"&&(F=oe.value);}return z(l),F},M=(C,F)=>{let z=An(l,C);F!==void 0&&(z=Xo(z,{field:C,operator:"eq",value:F})),d(z);},L=(C,F,z)=>{let G=An(l,C);F&&(G=Xo(G,{field:C,operator:"gte",value:F.toString()})),z&&(G=Xo(G,{field:C,operator:"lte",value:z.toString()})),d(G);},R=C=>{let F=S[C]||[],z=l?In(l):[];return F.filter(G=>z.includes(G.field)).length},B="pr-9 bg-background-muted/50",Y="border-t border-border-muted",H="text-sm font-medium text-text-link-default",W=C=>jsxRuntime.jsx("span",{className:H,children:C}),Z=C=>{let F=o[C.field]||{},z=u[C.field]||"",G=[];C.values?G=C.values.map(te=>({value:String(te.value),label:te.label,count:F[String(te.value)]})):G=Object.entries(F).map(([te,le])=>({value:te,label:te,count:le}));let oe=G.length;if(z){let te=z.toLowerCase();G=G.filter(le=>le.label.toLowerCase().includes(te));}G.sort((te,le)=>te.count!==void 0&&le.count!==void 0&&le.count!==te.count?le.count-te.count:te.label.localeCompare(le.label));let ue=C.type||"string";if(ue==="string"||!C.type){let te=k(C.field),le=C.searchThreshold??10,me=C.maxVisibleOptions??50,re=p[C.field]??false,ie=re||G.length<=me?G:G.slice(0,me),fe=G.length>me&&!re;return jsxRuntime.jsxs(zo,{id:C.field,children:[jsxRuntime.jsx(Oo,{title:C.label,description:C.description,className:B,endContent:te.length>0?W(`${te.length} selected`):void 0}),jsxRuntime.jsx(Ho,{className:Y,children:jsxRuntime.jsxs("div",{className:"space-y-4 pt-4 pb-4",children:[oe>le&&jsxRuntime.jsx(En,{value:z,onChange:xe=>m(Be=>({...Be,[C.field]:xe})),onClear:()=>m(xe=>({...xe,[C.field]:""})),placeholder:`Search ${C.label.toLowerCase()}...`,size:"sm",className:"w-full !max-w-none pr-4"}),jsxRuntime.jsx(Kd,{value:te,onChange:xe=>{let Be=An(l,C.field);xe.length>0&&(Be=Xo(Be,{field:C.field,operator:"in",value:xe})),d(Be);},children:jsxRuntime.jsx("div",{className:"space-y-1.5",children:ie.map(xe=>jsxRuntime.jsx("div",{className:"rounded-md py-2 pr-4 transition-colors hover:bg-background-hover",children:jsxRuntime.jsx(vn,{value:xe.value,children:jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-3 flex-1",children:[C.renderLabel?C.renderLabel(xe.value,xe.label):jsxRuntime.jsx("span",{className:"text-sm font-medium text-text-primary",children:xe.label}),xe.count!==void 0&&jsxRuntime.jsx("span",{className:"text-xs font-medium text-text-secondary tabular-nums",children:Hb(xe.count)})]})})},xe.value))})}),fe&&jsxRuntime.jsx("div",{className:"pt-2 border-t border-border-muted",children:jsxRuntime.jsxs(ee,{variant:"ghost",size:"sm",onPress:()=>g(xe=>({...xe,[C.field]:true})),className:"w-full",children:["Show all ",G.length," options"]})}),re&&G.length>me&&jsxRuntime.jsx("div",{className:"pt-2 border-t border-border-muted",children:jsxRuntime.jsx(ee,{variant:"ghost",size:"sm",onPress:()=>g(xe=>({...xe,[C.field]:false})),className:"w-full",children:"Show less"})})]})})]},C.field)}if(ue==="number"){let te,le,me=ie=>{if(ie)for(let fe of ie.conditions)"conditions"in fe?me(fe):fe.field===C.field&&(fe.operator==="gte"&&typeof fe.value=="number"&&(te=fe.value),fe.operator==="lte"&&typeof fe.value=="number"&&(le=fe.value));};me(l);let re=te!==void 0||le!==void 0;return jsxRuntime.jsxs(zo,{id:C.field,children:[jsxRuntime.jsx(Oo,{title:C.label,description:C.description,className:B,endContent:re?W(te!==void 0&&le!==void 0?`${te} - ${le}`:te!==void 0?`\u2265 ${te}`:`\u2264 ${le}`):void 0}),jsxRuntime.jsx(Ho,{className:Y,children:jsxRuntime.jsxs("div",{className:"grid grid-cols-2 gap-4 pt-4 pb-4",children:[jsxRuntime.jsx(Ni,{label:"Min",value:te,onChange:ie=>P(C.field,ie,le)},`${C.field}-min`),jsxRuntime.jsx(Ni,{label:"Max",value:le,onChange:ie=>P(C.field,te,ie)},`${C.field}-max`)]})})]},C.field)}if(ue==="boolean"){let te=I(C.field);return jsxRuntime.jsxs(zo,{id:C.field,children:[jsxRuntime.jsx(Oo,{title:C.label,description:C.description,className:B,endContent:te!==void 0?W(te?"Yes":"No"):void 0}),jsxRuntime.jsx(Ho,{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:te!==void 0?te?"Enabled":"Disabled":"No filter applied"}),jsxRuntime.jsx(il,{size:"lg",isSelected:te??false,onChange:le=>M(C.field,le?true:void 0),children:te?"Yes":"No"})]})})]},C.field)}if(ue==="date"){let te,le,me=Be=>{if(Be)for(let Ze of Be.conditions)"conditions"in Ze?me(Ze):Ze.field===C.field&&(Ze.operator==="gte"&&(te=String(Ze.value)),Ze.operator==="lte"&&(le=String(Ze.value)));};me(l);let re=te!==void 0||le!==void 0,ie=Be=>{if(Be)try{return /^\d{4}-\d{2}-\d{2}$/.test(Be)?date.parseDate(Be):void 0}catch{return}},fe=ie(te),xe=ie(le);return jsxRuntime.jsxs(zo,{id:C.field,children:[jsxRuntime.jsx(Oo,{title:C.label,description:C.description,className:B,endContent:re?W("Date range selected"):void 0}),jsxRuntime.jsx(Ho,{className:Y,children:jsxRuntime.jsx("div",{className:"pt-4 pb-4",children:jsxRuntime.jsx(al,{label:"Date Range",value:fe&&xe?{start:fe,end:xe}:void 0,onChange:Be=>{Be?L(C.field,Be.start,Be.end):L(C.field,void 0,void 0);}})})})]},C.field)}return null},q=()=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[v.map(C=>{let z=(l?In(l):[]).includes(C.field);return jsxRuntime.jsxs("button",{type:"button",onClick:()=>x(`__ungrouped__${C.field}`),className:"flex items-center justify-between px-6 py-3 text-left hover:bg-background-hover border-b border-border-muted transition-colors",children:[jsxRuntime.jsx("span",{className:"text-sm font-medium text-text-primary",children:C.label}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[z&&jsxRuntime.jsx("span",{className:H,children:"1 active"}),jsxRuntime.jsx(V,{name:"CaretRight",size:"sm",className:"text-text-secondary"})]})]},C.field)}),y.map(C=>{let F=R(C);return jsxRuntime.jsxs("button",{type:"button",onClick:()=>x(C),className:"flex items-center justify-between px-6 py-3 text-left hover:bg-background-hover border-b border-border-muted transition-colors",children:[jsxRuntime.jsx("span",{className:"text-sm font-medium text-text-primary",children:C}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[F>0&&jsxRuntime.jsxs("span",{className:H,children:[F," active"]}),jsxRuntime.jsx(V,{name:"CaretRight",size:"sm",className:"text-text-secondary"})]})]},C)})]}),Q=C=>{if(C.startsWith("__ungrouped__")){let z=C.replace("__ungrouped__",""),G=v.find(oe=>oe.field===z);return G?jsxRuntime.jsx(xa,{variant:"contained",density:"comfortable",showDividers:true,defaultExpandedKeys:[G.field],children:Z(G)}):null}let F=S[C]||[];return F.length===0?null:jsxRuntime.jsx(xa,{variant:"contained",density:"comfortable",showDividers:true,defaultExpandedKeys:[F[0].field],children:F.map(z=>Z(z))})},T=()=>{if(f){let C=f.startsWith("__ungrouped__")&&v.find(F=>F.field===f.replace("__ungrouped__",""))?.label||f;return jsxRuntime.jsxs("div",{className:"flex flex-col h-full",children:[jsxRuntime.jsxs("button",{type:"button",onClick:()=>x(null),className:"flex items-center gap-2 px-4 py-3 border-b border-border-muted hover:bg-background-hover transition-colors",children:[jsxRuntime.jsx(V,{name:"CaretLeft",size:"sm",className:"text-text-secondary"}),jsxRuntime.jsx("span",{className:"text-sm font-medium text-text-primary",children:C})]}),jsxRuntime.jsx("div",{className:"flex-1 overflow-y-auto",children:Q(f)})]})}return q()},E=()=>jsxRuntime.jsxs("div",{className:"flex h-full",children:[jsxRuntime.jsxs("div",{className:"w-48 flex-shrink-0 border-r border-border-muted overflow-y-auto bg-background-muted/30",children:[v.map(C=>{let z=(l?In(l):[]).includes(C.field),G=f===`__ungrouped__${C.field}`;return jsxRuntime.jsxs("button",{type:"button",onClick:()=>x(`__ungrouped__${C.field}`),className:`flex items-center justify-between w-full px-4 py-3 text-left border-b border-border-muted transition-colors ${G?"bg-background-selected":"hover:bg-background-hover"}`,children:[jsxRuntime.jsx("span",{className:`text-sm truncate ${G?"font-semibold text-text-primary":"font-medium text-text-primary"}`,children:C.label}),z&&jsxRuntime.jsx("span",{className:"w-2 h-2 rounded-full bg-action-primary flex-shrink-0 ml-2"})]},C.field)}),y.map(C=>{let F=R(C),z=f===C;return jsxRuntime.jsxs("button",{type:"button",onClick:()=>x(C),className:`flex items-center justify-between w-full px-4 py-3 text-left border-b border-border-muted transition-colors ${z?"bg-background-selected":"hover:bg-background-hover"}`,children:[jsxRuntime.jsx("span",{className:`text-sm truncate ${z?"font-semibold text-text-primary":"font-medium text-text-primary"}`,children:C}),F>0&&jsxRuntime.jsx("span",{className:"w-2 h-2 rounded-full bg-action-primary flex-shrink-0 ml-2"})]},C)})]}),jsxRuntime.jsx("div",{className:"flex-1 overflow-y-auto",children:f?Q(f):jsxRuntime.jsx("div",{className:"flex items-center justify-center h-full text-text-secondary text-sm",children:"Select a category to view filters"})})]}),O=()=>jsxRuntime.jsx(xa,{variant:"contained",density:"comfortable",showDividers:true,defaultExpandedKeys:[r[0].field],children:r.map(C=>Z(C))});return jsxRuntime.jsx(Sr,{isOpen:e,onClose:t,title:h&&b&&f?f.startsWith("__ungrouped__")?v.find(C=>C.field===f.replace("__ungrouped__",""))?.label||s:f:N>0?`${s} (${N} active)`:s,hideCloseIcon:false,primaryAction:{label:"Apply filters",onPress:w,variant:"primary"},secondaryAction:{label:"Clear all",onPress:D},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:Hb(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?T():E():O()})}function Ru(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 Dr(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 Me(e="left",t){return tailwindMerge.twMerge("flex items-center gap-1 min-w-0 overflow-hidden",Ru(e),t)}function cl(e,t="\u2014"){return e==null||e===""?t:String(e)}var jo={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 or(e="normal"){return {strong:jo.lg,high:jo.lg,normal:jo.md,low:jo.sm}[e]}function Ce(e,t){return typeof e=="function"?e(t):e}function Gb(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 Ub(e){return e?"success":"neutral"}function dl(e,t=false){return t?e>0?"text-feedback-success-text":e<0?"text-feedback-error-text":"text-text-primary":"text-text-primary"}function Mu(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 no(e,t,r,o="hover",n="secondary",a,i){if(!t)return e;let s=typeof t=="function"&&r?t(r):t,c=Mu(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 Kb({row:e,context:t,actions:r,align:o="right",size:n="sm"}){let{isLoading:a}=t;if(a)return jsxRuntime.jsx(K,{className:jo.sm});let s=(typeof r=="function"?r(e):r).filter(l=>!Ce(l.hidden,e));if(s.length===0)return null;let c=Me(o);return jsxRuntime.jsx("div",{className:c,children:s.map(l=>{let d=Ce(l.disabled,e);return l.variant==="icon"||!l.label?jsxRuntime.jsx(ee,{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(ee,{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 Jb({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,x=(N,w)=>{if(!g||N.length<=g)return jsxRuntime.jsx(jsxRuntime.Fragment,{children:N});let D=N.slice(0,g-1)+"\u2026";return jsxRuntime.jsx(Qt,{content:w,children:jsxRuntime.jsx("span",{children:D})})};if(f)return jsxRuntime.jsx(K,{className:or("normal")});if(e==null||e==="")return jsxRuntime.jsx("div",{className:Me(d,"text-text-secondary"),children:u});if(Array.isArray(e)&&e.length===0)return jsxRuntime.jsx("div",{className:Me(d,"text-text-secondary"),children:u});let b=Me(d,m);if(Array.isArray(e)){let N=e.slice(0,p),w=e.slice(p),D=w.length>0;return jsxRuntime.jsx("div",{className:b,children:jsxRuntime.jsxs("div",{className:"flex items-center gap-1",children:[N.map((k,P)=>{let I=typeof o=="function"?o(k,t):o,M=typeof n=="function"?n(k,t):n!==void 0?n:String(k),L=typeof s=="function"?s(k,t):s,R=typeof l=="function"?l(k,t):l;return jsxRuntime.jsx("span",{className:"flex-shrink-0 whitespace-nowrap",children:jsxRuntime.jsx(tt,{variant:I,size:a,shape:i,dot:L,dotPosition:c,dotPulse:R,children:x(M,M)})},P)}),D&&jsxRuntime.jsx(Qt,{content:w.join(", "),children:jsxRuntime.jsx("span",{className:"flex-shrink-0 whitespace-nowrap",children:jsxRuntime.jsxs(tt,{variant:"neutral",size:a,shape:i,children:["+",w.length]})})})]})})}let h=typeof o=="function"?o(e,t):o,y=typeof n=="function"?n(e,t):n!==void 0?n:String(e),v=typeof s=="function"?s(e,t):s,S=typeof l=="function"?l(e,t):l;return jsxRuntime.jsx("div",{className:b,children:jsxRuntime.jsx(tt,{variant:h,size:a,shape:i,dot:v,dotPosition:c,dotPulse:S,children:x(y,y)})})}function Xb({value:e,context:t,format:r="icon",trueText:o="Yes",falseText:n="No",trueIcon:a="Check",falseIcon:i="X",showFalse:s=true,align:c="center",emphasis:l="normal",className:d}){let{isLoading:u}=t;if(u)return jsxRuntime.jsx(K,{className:or(l)});let m=!!e;if(!m&&!s)return jsxRuntime.jsx("div",{className:Me(c,d)});let p=Me(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:Dr(l),children:m?o:n})});case "badge":return jsxRuntime.jsx("div",{className:p,children:jsxRuntime.jsx(tt,{variant:m?"success":"neutral",size:"sm",children:m?o:n})});default:return null}}function qb({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:x}){let{isLoading:b}=t,h=Ce(r,e),y=Ce(o,e),v=Ce(n,e),S=Ce(a,e),N=Ce(c,e),w=typeof m=="function"?m(e):m,D=Ce(x,e),k=Me(g,f);return jsxRuntime.jsx("div",{className:k,children:jsxRuntime.jsx(Fs,{firstName:h,lastName:y,email:v,avatarUrl:S,layout:i,size:s,href:N,LinkComponent:l,linkVariant:d,showEmail:u,badge:w,emphasis:p,isLoading:b,piiEntity:D})})}function Qb({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 Zb({value:e,row:t,context:r,format:o="date",customFormat:n,emptyText:a="\u2014",align:i="left",emphasis:s="normal",href:c,linkBehavior:l="hover",className:d}){let{isLoading:u}=r;if(u)return jsxRuntime.jsx(K,{className:or(s)});if(!e)return jsxRuntime.jsx("div",{className:Me(i,"text-text-secondary"),children:a});let m=e instanceof Date?e:new Date(e);if(isNaN(m.getTime()))return jsxRuntime.jsx("div",{className:Me(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=J1(m);break;case "custom":p=n?m.toLocaleString("en-US",n):m.toISOString();break;default:p=m.toLocaleDateString();}let g=Me(i,tailwindMerge.twMerge(Dr(s),d)),f=Ce(c,t);return f?jsxRuntime.jsx("div",{className:g,children:no(p,f,t,l)}):jsxRuntime.jsx("div",{className:g,children:p})}function J1(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"})}function ul({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[x,b]=Oe.useState(false),h=o||(r?j1(r):"DeviceMobile"),v={xs:{iconSize:28,logoSize:"w-7 h-7",gap:"gap-1.5",textSize:"text-xs",secondaryTextSize:"text-xs",iconInTextSize:12,skeletonIcon:28,skeletonText:80,skeletonSecondary:60},sm:{iconSize:32,logoSize:"w-8 h-8",gap:"gap-2",textSize:"text-sm",secondaryTextSize:"text-xs",iconInTextSize:14,skeletonIcon:32,skeletonText:96,skeletonSecondary:72},md:{iconSize:32,logoSize:"w-9 h-9",gap:"gap-3",textSize:"text-base",secondaryTextSize:"text-sm",iconInTextSize:16,skeletonIcon:36,skeletonText:128,skeletonSecondary:96},lg:{iconSize:40,logoSize:"w-10 h-10",gap:"gap-3",textSize:"text-lg",secondaryTextSize:"text-base",iconInTextSize:18,skeletonIcon:40,skeletonText:160,skeletonSecondary:120}}[i],S=n&&!x&&u,w={strong:"font-semibold text-text-primary",high:"font-semibold text-text-primary",normal:"text-text-primary",low:"text-text-secondary"}[m],D=({children:k,className:P})=>s?c?jsxRuntime.jsx(c,{href:s,className:P,children:k}):jsxRuntime.jsx(Qe,{href:s,variant:l,className:tailwindMerge.twMerge("hover:underline",P),asButton:false,children:k}):jsxRuntime.jsx("span",{className:P,children:k});if(p)return a==="inline"?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",v.gap,g),children:[jsxRuntime.jsx(K,{width:v.skeletonIcon,height:v.skeletonIcon,className:"flex-shrink-0 rounded"}),jsxRuntime.jsx(K,{width:v.skeletonText,height:v.skeletonIcon*.6})]}):jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",v.gap,g),children:[jsxRuntime.jsx(K,{width:v.skeletonIcon,height:v.skeletonIcon,className:"flex-shrink-0"}),jsxRuntime.jsxs("div",{className:"flex flex-col gap-1",children:[jsxRuntime.jsx(K,{width:v.skeletonText,height:16}),jsxRuntime.jsx(K,{width:v.skeletonSecondary,height:12})]})]});if(a==="inline"){let k=`${e} ${t}`;return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",v.gap,g),children:[jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-shrink-0 flex items-center justify-center rounded border border-border-muted",v.logoSize),children:S?jsxRuntime.jsx("img",{src:n,alt:`${e} logo`,className:"w-full h-full object-contain",onError:()=>b(true)}):jsxRuntime.jsx(V,{name:h,size:v.iconSize*.6,className:"text-text-secondary"})}),jsxRuntime.jsx(D,{className:tailwindMerge.twMerge("truncate leading-normal hover:text-text-primary",w,v.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:k})})]})}return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center justify-start",v.gap,g),children:[u&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-shrink-0 flex items-center justify-center rounded border border-border-muted",v.logoSize),children:S?jsxRuntime.jsx("img",{src:n,alt:`${e} logo`,className:"w-full h-full object-contain",onError:()=>b(true)}):jsxRuntime.jsx(V,{name:h,size:v.iconSize*.6,className:"text-text-secondary"})}),jsxRuntime.jsxs("div",{className:"flex flex-col items-start min-w-0",children:[jsxRuntime.jsx(D,{className:tailwindMerge.twMerge("truncate leading-normal hover:text-text-primary",w,v.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",v.secondaryTextSize),children:[d&&jsxRuntime.jsx(V,{name:h,size:v.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 j1(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 $b({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:x}){let{isLoading:b}=t,h=Ce(r,e),y=Ce(o,e),v=Ce(n,e),S=Ce(a,e),N=Ce(c,e),w=Ce(x,e),D=Me(g,f);return jsxRuntime.jsx("div",{className:D,children:jsxRuntime.jsx(ul,{manufacturer:h,model:y,deviceType:v,logoUrl:S,layout:i,size:s,href:N,LinkComponent:l,linkVariant:d,showDeviceTypeIcon:u,showLogo:m,emphasis:p,isLoading:b,piiEntity:w})})}var sU={charging:"percentage",discharging:"percentage",on:"kW",idle:void 0,off:void 0,heat:"temperature",cool:"temperature",auto:"temperature",eco:"temperature",unknown:void 0,connected:void 0,disconnected:void 0},q1=["charging","discharging","heat","cool","on","connected"],Q1={unknown:"Unknown",on:"On",off:"Off",idle:"Idle",charging:"Charging",discharging:"Discharging",heat:"Heating",eco:"Eco Mode",cool:"Cooling",auto:"Auto",connected:"Connected",disconnected:"Disconnected"};function Du(e){return q1.includes(e)}function Lu(e){return Q1[e]}function Bn({state:e,label:t,icon:r,isLoading:o,size:n="sm",shape:a="pill",dot:i,dotPulse:s,fixedWidth:c,className:l,...d}){if(o)return jsxRuntime.jsx(K,{className:"inline-flex h-6 w-20"});let u=t??Lu(e),m=Du(e);return jsxRuntime.jsxs(tt,{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 _1={importing:"Importing",exporting:"Exporting"};function tx(e){return _1[e]}function ml({state:e,label:t,showIcon:r=false,isLoading:o,size:n="sm",shape:a="pill",fixedWidth:i,className:s,...c}){if(o)return jsxRuntime.jsx(K,{className:"inline-flex h-6 w-24"});let l=t??tx(e),d=e==="exporting"?"ArrowUp":"ArrowDown",u=n==="sm"?12:n==="md"?14:16;return r?jsxRuntime.jsx(tt,{variant:e,size:n,shape:a,className:`w-6 justify-center ${s||""}`,...c,children:jsxRuntime.jsx(V,{name:d,size:u})}):jsxRuntime.jsx(tt,{variant:e,size:n,shape:a,className:i?`w-28 justify-center ${s||""}`:s,...c,children:l})}function fl({state:e,stateLabel:t,metric:r,metricFormatter:o,secondaryState:n,layout:a="horizontal",isLoading:i,size:s="sm",shape:c="pill",icon:l,fixedWidth:d,secondaryStateIconOnly:u=false,className:m}){if(i)return jsxRuntime.jsx(K,{className:tailwindMerge.twMerge("inline-flex h-6 w-32",m)});let p=r!=null&&o?Fr(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(Bn,{state:e,label:t,icon:l,size:s,shape:c,fixedWidth:d}),n&&jsxRuntime.jsx(jsxRuntime.Fragment,{children:n==="importing"||n==="exporting"?jsxRuntime.jsx(ml,{state:n,size:s,shape:c,fixedWidth:d,showIcon:u}):jsxRuntime.jsx(Bn,{state:n,size:s,shape:c,fixedWidth:d})})]})}function rx({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 v={pill:"rounded-full",rounded:"rounded-lg",square:"rounded-sm"}[s],S=o!=null||n!=null;return jsxRuntime.jsx("div",{className:"flex items-center gap-2",children:S?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(K,{className:"h-4 w-12"}),jsxRuntime.jsx(K,{className:`h-6 w-24 ${v}`}),jsxRuntime.jsx(K,{className:`h-6 w-20 ${v}`})]}):jsxRuntime.jsx(K,{className:`h-6 w-24 ${v}`})})}if(!e)return jsxRuntime.jsx("div",{className:Me(u,p),children:jsxRuntime.jsx("span",{className:"text-text-secondary",children:"\u2014"})});let f=Ce(o,t),x=Ce(a,t),b=typeof c=="function"?c(e,t):c,h=Me(u,p);return f!=null||n?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(h),children:jsxRuntime.jsx(fl,{state:e,stateLabel:b,metric:f,metricFormatter:n,secondaryState:x||void 0,size:i,shape:s,icon:l,fixedWidth:d,secondaryStateIconOnly:m,layout:"horizontal"})}):jsxRuntime.jsx("div",{className:h,children:jsxRuntime.jsx(Bn,{state:e,label:b,icon:l,size:i,shape:s,fixedWidth:d})})}function nx({value:e,row:t,context:r,formatter:o,align:n="left",emphasis:a="normal",href:i,linkBehavior:s="hover",className:c,emptyText:l="\u2014",emptyClassName:d="text-text-secondary"}){let{isLoading:u}=r;if(u)return jsxRuntime.jsx(K,{className:or(a)});let m=Xr({value:e,formatter:o,emptyText:l,emptyClassName:d}),p=Dr(a),g=Me(n,tailwindMerge.twMerge(p,c)),f=jsxRuntime.jsx("div",{className:g,children:m}),x=Ce(i,t);return x?no(f,x,t,s):f}var Au=Oe__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=Oe.useMemo(()=>r===t?100:Math.max(0,Math.min(100,(e-t)/(r-t)*100)),[e,t,r]),f=Oe.useMemo(()=>o==="auto"&&a?a.type==="diverging"&&a.center!==void 0?_a(e,t,r,a.center,a.scheme):Za(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})`,y=Math.ceil(g/100*d),v={height:c,...m&&{width:typeof m=="number"?`${m}px`:m,flexShrink:0}};return jsxRuntime.jsxs("div",{className:"flex items-center gap-2 w-full",children:[jsxRuntime.jsx("div",{className:`flex gap-0.5 ${m?"":"flex-1"}`,style:v,children:Array.from({length:d}).map((S,N)=>{let w=N<y;return jsxRuntime.jsx("div",{className:"rounded-sm",style:{width:h,backgroundColor:w?f:n==="none"?"transparent":n,marginRight:N<d-1?`${u}px`:0}},N)})}),i&&jsxRuntime.jsx("span",{className:"text-sm text-text-primary whitespace-nowrap",children:s?s(e):e.toLocaleString()})]})}let x={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:x,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()})]})});Au.displayName="HorizontalBarCell";var Iu=Oe__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=x=>"xValue"in x?x.xValue:x.x,l=x=>"yValue"in x?x.yValue:x.y,d=a||100,u=i,{xScale:m,yScale:p,barWidth:g}=Oe.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 x=d3Array.extent(s,w=>c(w)),b=d3Array.min(s,w=>l(w))??0,h=d3Array.max(s,w=>l(w))??0,y=b<0?b:0,v=scale.scaleTime({range:[0,d],domain:x}),S=scale.scaleLinear({range:[u,0],domain:[y,h*1.05]}),N=s.length>1?d/s.length*.8:8;return {xScale:v,yScale:S,barWidth:Math.max(2,N)}},[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((x,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((x,b)=>{let h=l(x),y=m(c(x)),v=p(h),S=Math.abs(f-v),N=x.category&&o?.[x.category]?o[x.category]:r;return jsxRuntime.jsx(shape.Bar,{x:y-g/2,y:h>=0?v:f,width:g,height:S,fill:N,rx:1},`bar-${b}`)})})});Iu.displayName="MiniBarCell";function cx({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(K,{className:or(l)});if(e==null||isNaN(Number(e)))return jsxRuntime.jsx("div",{className:Me(c,"text-text-secondary"),children:s});let x=Number(e),b;switch(o){case "currency":b=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:n,maximumFractionDigits:n}).format(x);break;case "percent":b=new Intl.NumberFormat("en-US",{style:"percent",minimumFractionDigits:n,maximumFractionDigits:n}).format(x/100);break;case "compact":b=new Intl.NumberFormat("en-US",{notation:"compact",minimumFractionDigits:n>0?1:0,maximumFractionDigits:n}).format(x);break;default:b=new Intl.NumberFormat("en-US",{minimumFractionDigits:n,maximumFractionDigits:n}).format(x);}let y=`${m&&x>0?"+":""}${b}`,v=p?dl(x,true):Dr(l),S=Me(c,tailwindMerge.twMerge(v,g)),N=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})]}),w=Ce(d,t);return w?jsxRuntime.jsx("div",{className:S,children:no(N,w,t,u)}):jsxRuntime.jsx("div",{className:S,children:N})}var Fu=Oe__namespace.default.memo(({value:e,showLabel:t=true,color:r="var(--color-viz-categorical-1)",backgroundColor:o="var(--color-background-muted)",height:n=20,segments:a,segmentGap:i=2,colorScale:s,context:c})=>{let l=Oe.useMemo(()=>Math.max(0,Math.min(100,e)),[e]),d=Oe.useMemo(()=>r==="auto"&&s?s.type==="diverging"&&s.center!==void 0?_a(e,0,100,s.center,s.scheme):Za(e,0,100,s.scheme):r,[r,s,e]);if(c.isLoading)return jsxRuntime.jsx("div",{className:"flex items-center gap-2",style:{height:n},children:jsxRuntime.jsx("div",{className:"h-full w-full animate-pulse bg-border-default rounded"})});if(a&&a>0){let m=`calc((100% - ${i*(a-1)}px) / ${a})`,p=Math.ceil(l/100*a);return jsxRuntime.jsxs("div",{className:"flex items-center gap-2 w-full",children:[jsxRuntime.jsx("div",{className:"flex gap-0.5 flex-1",style:{height:n},children:Array.from({length:a}).map((g,f)=>{let x=f<p,b=d;if(r==="auto"&&s&&x){let h=(f+1)/a*100;s.type==="diverging"&&s.center!==void 0?b=_a(h,0,100,s.center,s.scheme):b=Za(h,0,100,s.scheme);}return jsxRuntime.jsx("div",{className:"rounded-sm",style:{width:m,backgroundColor:x?b:o==="none"?"transparent":o,marginRight:f<a-1?`${i}px`:0}},f)})}),t&&jsxRuntime.jsxs("span",{className:"text-sm text-text-primary whitespace-nowrap",children:[l.toFixed(0),"%"]})]})}return jsxRuntime.jsxs("div",{className:"flex items-center gap-2 w-full",children:[jsxRuntime.jsx("div",{className:"relative flex-1 rounded-sm",style:{height:n,backgroundColor:o==="none"?"transparent":o},children:jsxRuntime.jsx("div",{className:"absolute left-0 top-0 h-full rounded-sm transition-all duration-300",style:{width:`${l}%`,backgroundColor:d}})}),t&&jsxRuntime.jsxs("span",{className:"text-sm text-text-primary whitespace-nowrap",children:[l.toFixed(0),"%"]})]})});Fu.displayName="PercentBarCell";function ux({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:Me(a),children:jsxRuntime.jsx(K,{className:"h-4 w-4 rounded"})});let s=Ce(n,e),c=Me(a);return jsxRuntime.jsx("div",{className:c,children:jsxRuntime.jsx(vn,{isSelected:r,onChange:l=>{o?.(e,l);},isDisabled:s,"aria-label":"Select row"})})}function xl({streetAddress:e,city:t,state:r,postalCode:o,layout:n="stacked",size:a="md",href:i,LinkComponent:s,linkVariant:c="unstyled",emphasis:l="normal",isLoading:d=false,className:u,piiEntity:m}){let g={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],x={strong:"font-semibold text-text-primary",high:"font-semibold text-text-primary",normal:"text-text-primary",low:"text-text-secondary"}[l],b=[];t&&b.push(t),r&&o?b.push(`${r} ${o}`):r?b.push(r):o&&b.push(o);let h=b.join(", "),y=({children:S,className:N})=>i?s?jsxRuntime.jsx(s,{href:i,className:N,children:S}):jsxRuntime.jsx(Qe,{href:i,variant:c,className:tailwindMerge.twMerge("hover:underline",N),asButton:false,children:S}):jsxRuntime.jsx("span",{className:N,children:S});if(d)return n==="inline"?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",g.gap,u),children:[jsxRuntime.jsx(K,{width:g.skeletonIconInline,height:g.skeletonIconInline,className:"flex-shrink-0 rounded"}),jsxRuntime.jsx(K,{width:g.skeletonText,height:g.skeletonIconInline*.8})]}):jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center",g.gap,u),children:[jsxRuntime.jsx(K,{width:g.skeletonIconStacked,height:g.skeletonIconStacked,className:"flex-shrink-0 rounded"}),jsxRuntime.jsxs("div",{className:"flex flex-col gap-1",children:[jsxRuntime.jsx(K,{width:g.skeletonText,height:16}),jsxRuntime.jsx(K,{width:g.skeletonSecondary,height:12})]})]});if(n==="inline")return jsxRuntime.jsxs(y,{className:tailwindMerge.twMerge("flex items-center",g.gap,i&&"hover:bg-background-hover transition-colors",u),children:[jsxRuntime.jsx(V,{name:"MapPin",size:g.iconSize,className:"text-text-secondary flex-shrink-0"}),jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("leading-normal truncate hover:text-text-primary",x,g.textSize,i&&"hover:underline hover:decoration-1 hover:underline-offset-4"),"data-pii-type":m?"address":void 0,"data-pii-entity":m,children:e})]});let v=()=>{if(m){if(t&&r&&o)return "city-state-zip";if(t&&r)return "city-state";if(t)return "city";if(r)return "state";if(o)return "postal-code"}};return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center justify-start",g.gap,u),children:[jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-shrink-0 flex items-center justify-center rounded border border-border-muted",g.iconContainerSize),children:jsxRuntime.jsx(V,{name:"MapPin",size:g.iconSize,className:"text-text-secondary"})}),jsxRuntime.jsxs("div",{className:"flex flex-col items-start min-w-0",children:[jsxRuntime.jsx(y,{className:tailwindMerge.twMerge("leading-normal truncate hover:text-text-primary",x,g.textSize,i&&"hover:underline hover:decoration-1 hover:underline-offset-4"),children:jsxRuntime.jsx("span",{"data-pii-type":m?"address":void 0,"data-pii-entity":m,children:e})}),h&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-text-secondary leading-normal truncate",g.secondaryTextSize),"data-pii-type":v(),"data-pii-entity":m,children:h})]})]})}function mx({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,x=Ce(r,e),b=Ce(o,e),h=Ce(n,e),y=Ce(a,e),v=Ce(c,e),S=Ce(g,e),N=Me(m,p);return jsxRuntime.jsx("div",{className:N,children:jsxRuntime.jsx(xl,{streetAddress:x,city:b,state:h,postalCode:y,layout:i,size:s,href:v,LinkComponent:l,linkVariant:d,emphasis:u,isLoading:f,piiEntity:S})})}var Bu=Oe__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}=Oe.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,y=>y.xValue),x=d3Array.min(l,y=>y.yValue)||0,b=d3Array.max(l,y=>y.yValue)||0,h=(b-x)*.1||1;return {xScale:scale.scaleTime({range:[0,d],domain:f}),yScale:scale.scaleLinear({range:[u,0],domain:[x-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})]})});Bu.displayName="SparklineCell";function xx({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:x}=r;if(x)return jsxRuntime.jsx(K,{className:or(l)});let b=cl(e,a),h=Ce(i,t),y=Ce(f,t),v=b,S=false,N=false;if(d&&b&&typeof b=="string")if(typeof d=="boolean")N=true;else {let{position:R="end",length:B=16,ellipsis:Y="...",tooltip:H=true}=d;if(b.length>B){switch(R){case "start":v=as(b,B);break;case "middle":v=aa(b,B);break;case "end":v=is(b,B,Y);break}S=H;}}let w=g&&y?{"data-pii-type":g,"data-pii-entity":y}:{},D=Object.keys(w).length>0,k=jsxRuntime.jsx("span",{className:N?"truncate":"",...w,children:v}),P=S?jsxRuntime.jsx(Qt,{content:D?jsxRuntime.jsx("span",{...w,children:String(b)}):String(b),children:k}):k,I=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[o&&jsxRuntime.jsx("span",{className:"text-text-secondary",children:o}),P,n&&jsxRuntime.jsx("span",{className:"text-text-secondary",children:n})]}),M=I;if(u&&b&&b!==a){let R=typeof u=="function"?u(t):String(b);M=jsxRuntime.jsx(Fo,{value:R,size:"sm",children:I});}if(h){let R=Me(m,p);return jsxRuntime.jsx("div",{className:R,children:no(M,h,t,s,c,l)})}let L=Me(m,tailwindMerge.twMerge(Dr(l),p));return jsxRuntime.jsx("div",{className:L,children:M})}var PP={sm:"sm:hidden",md:"md:hidden",lg:"lg:hidden",xl:"xl:hidden"},RP={sm:"hidden sm:grid",md:"hidden md:grid",lg:"hidden lg:grid",xl:"hidden xl:grid"};function hl(e,t){return t.accessor?typeof t.accessor=="function"?t.accessor(e):e[t.accessor]:null}function yl(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 Cl({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=hl(e,u);return jsxRuntime.jsx("div",{className:"font-medium text-text-primary [&>*]:!justify-start [&>*]:!text-left",children:yl(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=hl(e,u);return jsxRuntime.jsx("div",{className:"inline-flex",children:yl(m,e,u,l)},u.id)})})]}),s.length>0&&jsxRuntime.jsx("div",{className:"space-y-1",children:s.map(u=>{let m=hl(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:yl(m,e,u,l)})]},u.id)})})]})}function Sl({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=hl(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:yl(d,e,c,i)})]},c.id)})})})}function hx(e="md"){return {mobile:PP[e],desktop:RP[e]}}function yx({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 WP={compact:"py-1.5 px-3 text-sm",default:"py-3 px-4 text-sm",relaxed:"py-4 px-4 text-base"},GP={left:"text-left justify-start",center:"text-center justify-center",right:"text-right justify-end"};function UP(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 KP({column:e,sortConfig:t,onSort:r,stickyHeader:o,stickyFirstColumn:n,isFirstColumn:a,density:i="default",isLoading:s=false}){let c=e.reorderable!==false,{attributes:l,listeners:d,setNodeRef:u,transform:m,transition:p,isDragging:g}=sortable.useSortable({id:e.id,disabled:!c||s}),f=t?.columnId===e.id,x=f?t.direction:null,b=n&&a,h={...UP(e),transform:utilities.CSS.Transform.toString(m),transition:p,opacity:g?.8:1,zIndex:g?50:void 0};return jsxRuntime.jsx("div",{ref:u,className:tailwindMerge.twMerge("flex items-center border-b border-border-default bg-background-surface",e.sortable?"gap-2":"gap-1",WP[i],GP[e.align||"left"],o&&"sticky top-0 z-10",b&&"sticky left-0 z-20 shadow-[2px_0_4px_-2px_rgba(0,0,0,0.1)]",o&&b&&"z-30",e.sortable&&!s&&"hover:bg-background-hover",s&&"cursor-not-allowed opacity-60",f?"font-bold text-text-primary":"font-medium text-text-secondary",g&&"bg-background-hover"),style:h,role:"columnheader","aria-sort":f?x==="asc"?"ascending":"descending":"none","aria-disabled":s,...l,...d,children:s?jsxRuntime.jsx(K,{className:"h-4 w-24"}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("span",{className:"flex-1 truncate cursor-pointer",onClick:()=>!s&&e.sortable&&r(e.id),children:e.label}),e.sortable&&jsxRuntime.jsx("button",{type:"button",className:"flex flex-shrink-0 cursor-pointer",onClick:()=>!s&&r(e.id),"aria-label":`Sort by ${e.label}`,children:f?jsxRuntime.jsx(V,{name:x==="asc"?"CaretUp":"CaretDown",size:14,weight:"bold",className:"text-text-primary"}):jsxRuntime.jsx(V,{name:"CaretUpDown",size:12,className:"text-text-secondary opacity-40"})})]})})}function Cx({columns:e,columnOrder:t,onColumnOrderChange:r,sortConfig:o,onSort:n,stickyHeader:a,stickyFirstColumn:i,density:s="default",isLoading:c=false}){let l=core.useSensors(core.useSensor(core.PointerSensor,{activationConstraint:{distance:5}}),core.useSensor(core.KeyboardSensor,{coordinateGetter:sortable.sortableKeyboardCoordinates})),d=new Map(e.map(p=>[p.id,p])),u=p=>{let{active:g,over:f}=p;if(f&&g.id!==f.id){let x=t.indexOf(g.id),b=t.indexOf(f.id);if(d.get(f.id)?.reorderable===false)return;let y=0;for(let w=0;w<t.length&&d.get(t[w])?.reorderable===false;w++)y=w+1;if(b<y)return;let v=Math.min(x,b),S=Math.max(x,b);for(let w=v;w<=S;w++){if(w===x)continue;if(d.get(t[w])?.reorderable===false)return}let N=sortable.arrayMove(t,x,b);r(N);}},m=t.map(p=>d.get(p)).filter(p=>p!==void 0);return jsxRuntime.jsx(core.DndContext,{sensors:l,collisionDetection:core.closestCenter,onDragEnd:u,children:jsxRuntime.jsx(sortable.SortableContext,{items:t,strategy:sortable.horizontalListSortingStrategy,children:jsxRuntime.jsx("div",{className:"contents",role:"rowgroup",children:m.map((p,g)=>jsxRuntime.jsx(KP,{column:p,sortConfig:o,onSort:n,stickyHeader:a,stickyFirstColumn:i,isFirstColumn:g===0,density:s,isLoading:c},p.id))})})})}var Hu={compact:"py-1.5 px-3 text-sm",default:"py-3 px-4 text-sm",relaxed:"py-4 px-4 text-base"},Wu={left:"text-left justify-start",center:"text-center justify-center",right:"text-right justify-end"},QP={full:"w-full",auto:"w-auto inline-block",contained:"w-full max-w-6xl mx-auto"},ZP={auto:"table-auto",fixed:"table-fixed",responsive:"table-auto"};function Gu(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 _P(e,t){return t.accessor?typeof t.accessor=="function"?t.accessor(e):e[t.accessor]:null}function $P({column:e,sortConfig:t,onSort:r,stickyHeader:o,stickyFirstColumn:n,isFirstColumn:a,density:i="default",isLoading:s=false}){let c=t?.columnId===e.id,l=c?t.direction:null,d=n&&a;return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex items-center border-b border-border-default bg-background-surface",e.sortable?"gap-2":"gap-1",Hu[i],Wu[e.align||"left"],o&&"sticky top-0 z-10",d&&"sticky left-0 z-20 shadow-[2px_0_4px_-2px_rgba(0,0,0,0.1)]",o&&d&&"z-30",e.sortable&&!s&&"cursor-pointer hover:bg-background-hover",s&&"cursor-not-allowed opacity-60",c?"font-bold text-text-primary":"font-medium text-text-secondary"),onClick:()=>!s&&e.sortable&&r(e.id),role:"columnheader","aria-sort":c?l==="asc"?"ascending":"descending":"none","aria-disabled":s,style:Gu(e),children:s?jsxRuntime.jsx(K,{className:"h-4 w-24"}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("span",{className:"truncate",children:e.label}),e.sortable&&jsxRuntime.jsx("div",{className:"flex flex-shrink-0",children:c?jsxRuntime.jsx(V,{name:l==="asc"?"CaretUp":"CaretDown",size:14,weight:"bold",className:"text-text-primary"}):jsxRuntime.jsx(V,{name:"CaretUpDown",size:12,className:"text-text-secondary opacity-40"})})]})})}function e2({column:e,row:t,rowIndex:r,columnIndex:o,isHovered:n,density:a="default",className:i,stickyFirstColumn:s}){let c=s&&o===0,l=_P(t,e),d={isLoading:false,isHovered:n,rowIndex:r,columnIndex:o,density:a},u;if(e.cell){let m=e.cell,p=typeof e.cellProps=="function"?e.cellProps(l,t):e.cellProps;u=jsxRuntime.jsx(m,{value:l,row:t,context:d,...p});}else e.render?u=e.render(l,t,d):u=jsxRuntime.jsx("span",{className:"truncate",children:l?.toString()??""});if(e.popover){let m=e.popover,p,g="top",f=false,x="hover";typeof m=="string"?p=m:typeof m=="function"?p=m(l,t):(p=typeof m.content=="function"?m.content(l,t):m.content,g=m.placement||"top",f=m.showArrow??false,x=m.trigger||"hover"),u=jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{...x==="hover"?{trigger:"longPress"}:{},children:[jsxRuntime.jsx("div",{className:"cursor-help",children:u}),jsxRuntime.jsx(nt,{placement:g,showArrow:f,children:jsxRuntime.jsx("div",{className:"p-2",children:p})})]});}return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex items-center border-b border-border-default bg-background-surface",e.noCellPadding?"":Hu[a],Wu[e.align||"left"],c&&"sticky left-0 z-10 shadow-[2px_0_4px_-2px_rgba(0,0,0,0.1)]",i),role:"cell",style:Gu(e),children:u})}function t2({column:e,rowIndex:t,columnIndex:r,density:o="default",stickyFirstColumn:n}){let a=n&&r===0,i={isLoading:true,rowIndex:t,columnIndex:r,density:o},s;if(e.cell){let c=e.cell,l=typeof e.cellProps=="function"?e.cellProps(null,{}):e.cellProps;s=jsxRuntime.jsx(c,{value:null,row:{},context:i,...l});}else e.render?s=e.render(null,{},i):s=jsxRuntime.jsx(K,{className:"h-4 w-full max-w-[200px]"});return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex items-center border-b border-border-default bg-background-surface",e.noCellPadding?"":Hu[o],Wu[e.align||"left"],a&&"sticky left-0 z-10 shadow-[2px_0_4px_-2px_rgba(0,0,0,0.1)]"),role:"cell",style:Gu(e),children:s})}function r2(e,t){let r=new Set(["BUTTON","A","INPUT","SELECT","TEXTAREA"]),o=new Set(["button","link","checkbox","switch","menuitem","option"]),n=e;for(;n&&n!==t;){if(r.has(n.tagName))return true;let a=n.getAttribute("role");if(a&&o.has(a))return true;n=n.parentElement;}return false}function Sx({columns:e,row:t,rowIndex:r,density:o="default",onClick:n,stickyFirstColumn:a}){let[i,s]=Oe.useState(false),c=Oe.useCallback(l=>{if(!n)return;let d=l.target,u=l.currentTarget;r2(d,u)||n(t);},[n,t]);return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("contents group",n&&"cursor-pointer"),role:"row",onClick:c,onMouseEnter:()=>s(true),onMouseLeave:()=>s(false),children:e.map((l,d)=>jsxRuntime.jsx(e2,{column:l,row:t,rowIndex:r,columnIndex:d,isHovered:i,density:o,className:n?"group-hover:bg-background-hover":"",stickyFirstColumn:a},l.id))})}function wx({columns:e,rowIndex:t,density:r="default",stickyFirstColumn:o}){return jsxRuntime.jsx("div",{className:"contents",role:"row",children:e.map((n,a)=>jsxRuntime.jsx(t2,{column:n,rowIndex:t,columnIndex:a,density:r,stickyFirstColumn:o},n.id))})}function Nx({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:x,estimatedRowHeight:b,loadingIndicator:h,stickyHeader:y=false,stickyFirstColumn:v=false,onRowClick:S,getRowId:N,hideHeader:w=false,sortConfig:D,onSort:k,"aria-label":P,enableColumnReorder:I=false,columnOrder:M,onColumnOrderChange:L}){let[R,B]=Oe.useState(null),Y=D!==void 0,H=Y?D:R,W=Oe.useRef(null),Z=Oe.useMemo(()=>e.map(j=>j.id),[e]),[q,Q]=Oe.useState(Z),T=M!==void 0,E=T?M:q;Oe.useEffect(()=>{T||Q(j=>{let ae=e.map(se=>se.id),_=new Set(ae),X=new Set(j),U=j.filter(se=>_.has(se)),ce=ae.filter(se=>!X.has(se));return [...U,...ce]});},[e,T]);let O=Oe.useCallback(j=>{T||Q(j),L?.(j);},[T,L]),A=Oe.useMemo(()=>{if(!I&&!M)return e;let j=new Map(e.map(ae=>[ae.id,ae]));return E.map(ae=>j.get(ae)).filter(ae=>ae!==void 0)},[e,E,I,M]),C=g?Ro({items:t,onLoadMore:g,hasMore:f,isLoading:u,loadingState:m,enableVirtualization:x,estimatedItemSize:b||(o==="compact"?40:o==="relaxed"?60:48),overscan:5}):null,F=C?.scrollRef??W,{loadMoreRef:z,virtualizer:G,virtualItems:oe,isLoadingMore:ue,computedLoadingState:te}=C||{},{gridTemplateColumns:le,totalMinWidth:me}=Oe.useMemo(()=>{let j=0;return {gridTemplateColumns:A.map(_=>{if(_.minWidth?j+=typeof _.minWidth=="number"?_.minWidth:0:_.width&&typeof _.width=="number"&&(j+=_.width),_.width)return typeof _.width=="number"?`${_.width}px`:_.width;if(_.flex)return `${_.flex}fr`;if(_.minWidth&&_.maxWidth){let X=typeof _.minWidth=="number"?`${_.minWidth}px`:_.minWidth,U=typeof _.maxWidth=="number"?`${_.maxWidth}px`:_.maxWidth;return `minmax(${X}, ${U})`}return _.minWidth?`minmax(${typeof _.minWidth=="number"?`${_.minWidth}px`:_.minWidth}, 1fr)`:_.maxWidth?`minmax(0, ${typeof _.maxWidth=="number"?`${_.maxWidth}px`:_.maxWidth})`:"1fr"}).join(" "),totalMinWidth:j}},[A]),re=Oe.useCallback(j=>{if(!e.find(X=>X.id===j)?.sortable)return;let _;H?.columnId===j?_={columnId:j,direction:H.direction==="asc"?"desc":"asc"}:_={columnId:j,direction:"asc"},Y||B(_),k?.(_);},[e,H,k,Y]),ie=te==="loading"||u&&t.length===0,fe={};a?(fe.height=typeof a=="number"?`${a}px`:a,fe.overflowY="auto"):i?(fe.maxHeight=typeof i=="number"?`${i}px`:i,fe.overflowY="auto"):g&&(fe.height="600px",fe.overflowY="auto");let xe=tailwindMerge.twMerge(QP[n],!g&&(s==="responsive"?"overflow-x-auto scrollbar-visible":"overflow-auto scrollbar-visible"),r),Be=hx(d),Ze=c!=="none",Kt=(j,ae)=>Ze?c==="custom"&&l?l(j,ae):jsxRuntime.jsx(c==="cards"?Sl:Cl,{row:j,columns:A,density:o,isLoading:u,onClick:S?()=>S(j):void 0}):null,ir=G?oe?.map(j=>({virtualItem:j,row:t[j.index],index:j.index}))||[]:t.map((j,ae)=>({row:j,index:ae,virtualItem:null}));return jsxRuntime.jsxs("div",{ref:F,className:xe,style:{...fe,position:G?"relative":void 0},children:[jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("grid border-separate border-spacing-0",ZP[s],n==="auto"?"inline-grid w-auto":"w-full",Ze&&Be.desktop),role:"table","aria-label":P,style:{gridTemplateColumns:le,minWidth:me>0?`${me}px`:void 0},children:[!w&&(I?jsxRuntime.jsx(Cx,{columns:e,columnOrder:E,onColumnOrderChange:O,sortConfig:H,onSort:re,stickyHeader:y,stickyFirstColumn:v,density:o,isLoading:ie}):jsxRuntime.jsx("div",{className:"contents",role:"rowgroup",children:A.map((j,ae)=>jsxRuntime.jsx($P,{column:j,sortConfig:H,onSort:re,stickyHeader:y,stickyFirstColumn:v,isFirstColumn:ae===0,density:o,isLoading:ie},j.id))})),G?jsxRuntime.jsx("div",{className:"col-span-full",style:{gridColumn:"1 / -1",height:`${G.getTotalSize()}px`,position:"relative"},role:"rowgroup",children:ie?Array.from({length:p}).map((j,ae)=>jsxRuntime.jsx("div",{className:"contents",children:jsxRuntime.jsx(wx,{columns:A,rowIndex:ae,density:o,stickyFirstColumn:v})},`loading-${ae}`)):t.length>0?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[ir.map(({row:j,index:ae,virtualItem:_})=>{if(!j||!_)return null;let X=N?N(j):`row-${ae}`;return jsxRuntime.jsx("div",{style:{position:"absolute",top:0,left:0,width:"100%",display:"grid",gridTemplateColumns:le,transform:`translateY(${_.start}px)`},"data-index":_.index,ref:G.measureElement,children:jsxRuntime.jsx(Sx,{columns:A,row:j,rowIndex:ae,density:o,onClick:S,stickyFirstColumn:v})},X)}),ue&&jsxRuntime.jsx("div",{style:{position:"absolute",top:`${G.getTotalSize()}px`,left:0,width:"100%"},children:h||jsxRuntime.jsx(Cr,{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:ie?Array.from({length:p}).map((j,ae)=>jsxRuntime.jsx(wx,{columns:A,rowIndex:ae,density:o,stickyFirstColumn:v},`loading-${ae}`)):t.length>0?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[ir.map(({row:j,index:ae})=>{if(!j)return null;let _=N?N(j):`row-${ae}`;return jsxRuntime.jsx(Sx,{columns:A,row:j,rowIndex:ae,density:o,onClick:S,stickyFirstColumn:v},_)}),ue&&jsxRuntime.jsx("div",{className:"col-span-full",style:{gridColumn:"1 / -1"},children:h||jsxRuntime.jsx(Cr,{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"})})})]}),Ze&&jsxRuntime.jsx("div",{className:Be.mobile,children:ie?Array.from({length:p}).map((j,ae)=>jsxRuntime.jsx(yx,{density:o},`mobile-loading-${ae}`)):t.length>0?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[ir.map(({row:j,index:ae})=>{if(!j)return null;let _=N?N(j):`mobile-row-${ae}`;return jsxRuntime.jsx("div",{className:"border-b border-border-default last:border-b-0",children:Kt(j,ae)},_)}),ue&&(h||jsxRuntime.jsx(Cr,{state:"loading-more"}))]}):jsxRuntime.jsx("div",{className:"py-12 text-center text-text-secondary",children:"No data available"})}),g&&f&&!ie&&(G?jsxRuntime.jsx("div",{ref:z,style:{position:"absolute",top:`${G.getTotalSize()}px`,left:0,width:"100%",height:1}}):jsxRuntime.jsx("div",{ref:z,className:"h-px w-full"}))]})}function Tx({status:e,alertCount:t,showCount:r=false,isLoading:o,size:n="sm",shape:a="pill",...i}){if(o)return jsxRuntime.jsx(K,{className:"inline-flex h-6 w-20"});let s={healthy:"success",warning:"warning",error:"error",unknown:"neutral"},c={healthy:"Healthy",warning:"Warning",error:"Error",unknown:"Unknown"},l=e==="warning"||e==="error",d=r&&t?`${c[e]} (${t})`:c[e];return jsxRuntime.jsx(tt,{variant:s[e],size:n,shape:a,dot:l,dotPulse:l,...i,children:d})}var n2={battery:"BatteryHigh",charger:"ChargingStation",thermostat:"ThermometerSimple",inverter:"Power",vehicle:"Car",water_heater:"DropHalfBottom",meter:"Gauge",gateway:"WifiHigh",other:"Cube",unknown:"Question"},a2={battery:"Battery",charger:"Charger",thermostat:"Thermostat",inverter:"Inverter",vehicle:"Vehicle",water_heater:"Water Heater",meter:"Meter",gateway:"Gateway",other:"Other",unknown:"Unknown"};function Rx({deviceType:e,iconName:t,size:r="md",showLabel:o=false,className:n}){let a=t||(e?n2[e]:"Question"),i=e?a2[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 Mi({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:x=true,maxWidth:b="400px"}){if(!s)return null;let h=t||r,y=m||p||g||f;return jsxRuntime.jsx(Vr,{children:jsxRuntime.jsx(sr,{isOpen:s,onOpenChange:v=>!v&&d?.(),isDismissable:true,transparent:l,children:jsxRuntime.jsx(reactAriaComponents.Modal,{className:"outline-none focus:outline-none focus-visible:outline-none ring-0 focus:ring-0 focus-visible:ring-0",children:jsxRuntime.jsxs(reactAriaComponents.Dialog,{className:tailwindMerge.twMerge("fixed top-0 bottom-0 flex flex-col bg-background-surface shadow-xl overflow-hidden",c==="right"?"right-0":"left-0",c==="right"?"animate-in slide-in-from-right duration-300 ease-out":"animate-in slide-in-from-left duration-300 ease-out","data-[exiting]:animate-out",c==="right"?"data-[exiting]:slide-out-to-right":"data-[exiting]:slide-out-to-left","data-[exiting]:duration-200 data-[exiting]:ease-in","outline-none focus-visible:outline focus-visible:outline-2 focus-visible:outline-action-default focus-visible:outline-offset-0",u),style:{maxWidth:b,width:"100%"},children:[h&&(a&&i?jsxRuntime.jsx(zt,{title:t,headerContent:r,titleAlign:o,hideCloseIcon:n,hasBackArrow:true,onBack:i,onClose:d}):jsxRuntime.jsx(zt,{title:t,headerContent:r,titleAlign:o,hideCloseIcon:n,onClose:d})),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-1 overflow-y-auto overscroll-contain",x?"px-6 py-6":"p-0"),children:e}),y&&jsxRuntime.jsx(Eo,{primaryAction:m,secondaryAction:p,tertiaryAction:g,footerContent:f})]})})})})}Mi.displayName="Drawer";function Dx({status:e,programName:t,isLoading:r,size:o="sm",shape:n="pill",...a}){if(r)return jsxRuntime.jsx(K,{className:"inline-flex h-6 w-20"});let i={enrolled:"success",eligible:"info",pending:"warning",not_eligible:"neutral",opted_out:"neutral"},s={enrolled:"Enrolled",eligible:"Eligible",pending:"Pending",not_eligible:"Not Eligible",opted_out:"Opted Out"},c=jsxRuntime.jsx(tt,{variant:i[e],size:o,shape:n,...a,children:s[e]});return t?jsxRuntime.jsx(Qt,{content:t,children:c}):c}function Ex({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]=Oe.useState(false),[m,p]=Oe.useState(false),[g,f]=Oe.useState(null),[x,b]=Oe.useState(e),h=Oe.useRef(null),y=async N=>{if(f(null),n&&N.size>n){f(`File size must be less than ${(n/1024/1024).toFixed(2)}MB`);return}if(c&&N.type.startsWith("image/")){let w=new FileReader;w.onloadend=()=>{b(w.result);},w.readAsDataURL(N);}if(i){p(true);try{let w=await i(N);b(w),r?.(w);}catch(w){f("Failed to upload file"),console.error("Upload error:",w);}finally{p(false);}}t?.(N,x);},v=async N=>{try{let w=N.items;if(w.length>0){let D=w[0];if(D.kind==="file"){let k=await D.getFile();k&&y(k);}}}catch(w){f("Failed to upload file"),console.error("Upload error:",w);}finally{u(false);}},S=()=>{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:v,onDropEnter:()=>u(true),onDropExit:()=>u(false),children:[x?jsxRuntime.jsxs("div",{className:"relative flex h-full w-full items-center justify-center p-4",children:[c&&(x.startsWith("data:image")||x.startsWith("http"))?jsxRuntime.jsx("img",{src:x,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(ee,{variant:"icon",size:"sm",onPress:S,className:"absolute right-2 top-2 bg-background-surface shadow-md",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"})})]}):jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-4 p-6",children:[jsxRuntime.jsx(lucideReact.Upload,{className:"h-12 w-12 text-text-secondary"}),jsxRuntime.jsxs("div",{className:"text-center",children:[jsxRuntime.jsx("p",{className:"text-sm text-text-primary",children:l}),jsxRuntime.jsx("p",{className:"mt-1 text-xs text-text-secondary",children:o==="image/*"?"PNG, JPG, GIF up to 10MB":`Accepts ${o}`})]}),jsxRuntime.jsx(reactAriaComponents.FileTrigger,{acceptedFileTypes:o.split(","),onSelect:N=>{let w=Array.from(N||[]);w.length>0&&y(w[0]);},children:jsxRuntime.jsx(ee,{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 Ix({version:e,isLatest:t,updateAvailable:r,isLoading:o,size:n="sm",shape:a="rounded",...i}){if(o)return jsxRuntime.jsx(K,{className:"inline-flex h-6 w-16"});let s="neutral",c=e;return t?s="success":r&&(s="warning",c=`${e} (Update)`),jsxRuntime.jsx(tt,{variant:s,size:n,shape:a,...i,children:c})}function Ia(e){return jsxRuntime.jsx(reactAriaComponents.Form,{validationBehavior:"aria",...e,className:tailwindMerge.twMerge("flex flex-col gap-6",e.className)})}function Bx({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]=Oe.useState(false),m=Yt("(max-width: 767px)"),p=o!==void 0?o:d,g=Oe.useCallback(h=>{n?n(h):u(h);},[n]);Oe.useEffect(()=>{let h=y=>{(y.metaKey||y.ctrlKey)&&y.key==="k"&&(y.preventDefault(),g(!p)),y.key==="Escape"&&p&&g(false);};return window.addEventListener("keydown",h),()=>window.removeEventListener("keydown",h)},[p,g]);let f=Oe.useCallback(h=>{r?.(h);},[r]),x=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||Oe.isValidElement(a)&&a.type===Oe.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:x})),jsxRuntime.jsx(at,{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(Mr,{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||x,jsxRuntime.jsx(nt,{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(Mr,{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 Ox({placeholder:e="Search...",value:t,onChange:r,isOpen:o,onOpenChange:n,children:a,maxHeight:i="400px",variant:s="default",className:c}){let[l,d]=Oe.useState(false),u=Yt("(max-width: 767px)"),m=Oe.useRef(null),p=Oe.useRef(null),g=o!==void 0?o:l,f=Oe.useCallback(P=>{n?n(P):d(P);},[n]);Oe.useEffect(()=>{let P=I=>{(I.metaKey||I.ctrlKey)&&I.key==="k"&&(I.preventDefault(),f(!g)),I.key==="Escape"&&g&&f(false);};return window.addEventListener("keydown",P),()=>window.removeEventListener("keydown",P)},[g,f]),Oe.useEffect(()=>{g&&!u&&m.current&&setTimeout(()=>{m.current?.querySelector("input")?.focus();},0);},[g,u]),Oe.useEffect(()=>{if(!g||u)return;let P=I=>{let M=I.target,L=m.current?.contains(M),R=p.current?.contains(M);!L&&!R&&f(false);};return document.addEventListener("mousedown",P,true),()=>document.removeEventListener("mousedown",P,true)},[g,u,f]);let x=P=>{r?.(P);},b=Oe.useCallback(()=>{f(false);},[f]),h=Oe.useCallback(()=>{r?.("");},[r]),[y,v]=Oe.useState(null);Oe.useEffect(()=>{if(g&&!u&&m.current){let P=null,I=()=>{let L=m.current?.getBoundingClientRect();L&&v({top:L.bottom+8,left:L.left,width:L.width});},M=()=>{P===null&&(P=requestAnimationFrame(()=>{I(),P=null;}));};return I(),window.addEventListener("resize",M),window.addEventListener("scroll",M,true),()=>{window.removeEventListener("resize",M),window.removeEventListener("scroll",M,true),P!==null&&cancelAnimationFrame(P);}}},[g,u]);let S=Oe.useCallback(()=>{f(true);},[f]);if(u)return jsxRuntime.jsxs("div",{className:c,children:[jsxRuntime.jsx("button",{type:"button",onClick:S,className:"flex items-center justify-center w-10 h-10 rounded-lg hover:bg-background-hover transition-colors","aria-label":"Open search",children:jsxRuntime.jsx(V,{name:"MagnifyingGlass",size:"md"})}),jsxRuntime.jsxs(at,{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(Mr,{value:t,onChange:x,placeholder:e,showSearchIcon:true,isClearable:!!t,onClear:h,reserveErrorSpace:false,autoFocus:true})}),jsxRuntime.jsx(ee,{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 N=P=>{let M=P.target.tagName==="INPUT";if(P.key==="ArrowDown"&&g&&M){P.preventDefault();let L=p.current?.querySelector("[data-search-result]");L&&L.focus();}},w=P=>{let I=P.target;if(!I.hasAttribute("data-search-result"))return;let L=Array.from(p.current?.querySelectorAll("[data-search-result]")||[]),R=L.indexOf(I);if(P.key==="ArrowDown"){P.preventDefault(),P.stopPropagation();let B=Math.min(R+1,L.length-1);L[B]?.focus();}else if(P.key==="ArrowUp")if(P.preventDefault(),P.stopPropagation(),R===0)m.current?.querySelector("input")?.focus();else {let B=Math.max(R-1,0);L[B]?.focus();}else P.key==="Escape"&&(P.preventDefault(),P.stopPropagation(),f(false),m.current?.querySelector("input")?.focus());},D=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:w,children:jsxRuntime.jsx("div",{className:"bg-background-surface shadow-2xl border border-border-default rounded-lg overflow-hidden animate-in fade-in zoom-in-95 duration-200",children:jsxRuntime.jsx("div",{className:"overflow-y-auto",style:{maxHeight:i},children:a})})}),document.body):null,k=s==="elevated"?"bg-background-muted/50 border-border-subtle/50 focus-within:bg-background-body focus-within:border-border-focus focus-within:shadow-md backdrop-blur-sm transition-all duration-200":"";return jsxRuntime.jsxs("div",{ref:m,className:`relative w-full ${c||""}`,onKeyDown:N,children:[jsxRuntime.jsx(Mr,{value:t,onChange:x,placeholder:e,showSearchIcon:true,isClearable:!!t,onClear:()=>r?.(""),reserveErrorSpace:false,className:k,onFocus:()=>f(true)}),D]},"desktop")}function Hx({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 Gx({count:e=3,className:t=""}){return jsxRuntime.jsx("div",{className:`flex flex-col ${t}`,children:Array.from({length:e}).map((r,o)=>jsxRuntime.jsxs("div",{className:"flex items-center gap-3 px-4 py-2.5",children:[jsxRuntime.jsx(K,{width:20,height:20,variant:"circle"}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0 space-y-2",children:[jsxRuntime.jsx(K,{width:"60%",height:16}),jsxRuntime.jsx(K,{width:"40%",height:12})]}),jsxRuntime.jsx(K,{width:16,height:16})]},o))})}function Kx({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 Yx({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 x=document.querySelector('input[type="text"][placeholder*="Search"]');x&&x.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 Jx({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 jx({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
29
  flex items-center gap-3 w-full px-4 py-2.5 rounded-lg
31
30
  transition-all duration-200 cursor-text
32
31
  ${{default:`
@@ -38,47 +37,12 @@ Valid keys: `+JSON.stringify(Object.keys(T),null," "));var I=G(K,M,O,z,j+"."+M,
38
37
  backdrop-blur-sm
39
38
  `}[o]}
40
39
  ${n}
41
- `,"aria-label":"Open search",children:[jsxRuntime.jsx(U,{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 sL={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"},lL={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"}},cL={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"},dL={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"},uL={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"},pL={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},mL={start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},fL={row:"grid-flow-row",col:"grid-flow-col",dense:"grid-flow-dense","row-dense":"grid-flow-row-dense","col-dense":"grid-flow-col-dense"},gL={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"},bL={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 UC(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 $f({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?"":UC(e,sL,lL),!r&&!o&&cL[t],r&&dL[r],o&&uL[o],pL[n],mL[a],fL[i],l),p={};return s?p.gridTemplateColumns=`repeat(auto-fit, minmax(${s}, 1fr))`:c&&(p.gridTemplateColumns=`repeat(auto-fill, minmax(${c}, 1fr))`),jsxRuntime.jsx("div",{className:u,style:p,children:d})}function YC({span:e,className:t,children:r}){let o=tailwindMerge.twMerge(UC(e,gL,bL),t);return jsxRuntime.jsx("div",{className:o,children:r})}$f.Item=YC;function xL(e,t){return He__namespace.default.isValidElement(e)?e:co({value:e,formatter:t,emptyClassName:"text-text-secondary",emptyText:"\u2014"})}function hL(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 yL={neutral:"text-text-primary",success:"text-feedback-success",warning:"text-feedback-warning",error:"text-feedback-error",info:"text-feedback-info"},vL=24,CL=20;function SL({item:e,dense:t,valueAlign:r}){let o=hL(e),n=o?yL[o]:"",a=e.stackOnMobile,i=typeof e.value=="string"&&e.value.length>vL&&!e.formatter&&!He__namespace.default.isValidElement(e.value),s=xL(e.value,e.formatter),c=i?Ka(e.value,CL):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,p=i?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(or,{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}),m=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:[p,e.iconRight]}),f&&m]}),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(U,{name:"Question",size:10,className:"text-text-secondary","aria-label":"More information"})]}),g&&jsxRuntime.jsx("div",{className:"flex items-center",children:m}),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 Ld({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(He__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(SL,{item:l,dense:r,valueAlign:o})]},l.id))})}function $C({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(Ld,{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 it={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 Jf=He__namespace.createContext(null);function qC(){let e=He__namespace.useContext(Jf);if(!e)throw new Error("Hierarchy components must be used within HierarchyExplorer");return e}function XC({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:p}=qC(),m=He__namespace.useRef(null),g=He__namespace.useRef(null),f=r===e.id,x=e.disabled||false,b=!!(e.children&&e.children.length>0),h=!!(e.metadata&&Object.keys(e.metadata).length>0),y=b||h,v=c!==void 0&&e.id!==void 0&&c===e.id&&d.length===0;He__namespace.useLayoutEffect(()=>{v&&l&&m.current&&g.current===null&&requestAnimationFrame(()=>{m.current&&(g.current=m.current.offsetTop);});},[v,l]),He__namespace.useEffect(()=>{if(!v||!l||!m.current)return;let V=m.current.parentElement;for(;V;){let T=window.getComputedStyle(V).overflowY;if(T==="auto"||T==="scroll")break;V=V.parentElement;}if(!V)return;let A=()=>{if(!m.current||g.current===null)return;let T=V.getBoundingClientRect(),N=V.scrollTop,B=T.height,W=m.current.offsetHeight,z=g.current-N,j=z+W,K=z<0,$=j>B;K?u("top",e):$?u("bottom",e):u(null,null);};return V.addEventListener("scroll",A),A(),()=>{V.removeEventListener("scroll",A);}},[v,l,e,u]);let S=()=>{x||(p?o(e):y?n(e):o(e));},w=V=>{x||(V.key==="Enter"||V.key===" ")&&(V.preventDefault(),S());},k={isSelected:f,isDisabled:x,hasChildren:b,hasMetadata:h,level:0},L=tailwindMerge.twMerge("relative cursor-pointer group",x&&"opacity-50 cursor-not-allowed"),R=tailwindMerge.twMerge("absolute inset-0 transition-colors",v&&!f&&!x&&"group-hover:bg-background-hover",v&&f&&!x&&a==="subtle"&&"bg-background-selected group-hover:bg-background-hover",v&&f&&x&&a==="subtle"&&"bg-background-selected",v&&f&&!x&&a==="solid"&&"bg-action-brand group-hover:bg-action-brand-hover",v&&f&&x&&a==="solid"&&"bg-action-brand",!v&&a==="subtle"&&!f&&!x&&"group-hover:bg-background-hover",!v&&a==="subtle"&&f&&!x&&"bg-background-selected group-hover:bg-background-hover",!v&&a==="subtle"&&f&&x&&"bg-background-selected",!v&&a==="solid"&&!f&&!x&&"group-hover:bg-background-hover",!v&&a==="solid"&&f&&!x&&"bg-action-brand group-hover:bg-action-brand-hover",!v&&a==="solid"&&f&&x&&"bg-action-brand"),D=tailwindMerge.twMerge("relative flex items-center gap-2 text-text-primary hover:text-text-primary transition-colors",it[i].node,v&&!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:m,className:L,onClick:S,onKeyDown:w,role:"treeitem","aria-selected":f,"aria-disabled":x,tabIndex:0,"data-node-id":e.id,children:[jsxRuntime.jsx("div",{className:R}),jsxRuntime.jsxs("div",{className:D,children:[s&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("relative rounded-full flex items-center justify-center flex-shrink-0 z-20",v&&"bg-action-brand border-action-brand",!v&&"bg-background-muted border border-border-default"),style:{width:it[i].bullet,height:it[i].bullet},children:e.icon&&jsxRuntime.jsx(U,{name:e.icon,size:it[i].icon,weight:v?"fill":"regular",className:v?"text-[color:var(--color-action-brand-text)]":"text-text-primary"})}),jsxRuntime.jsx("div",{className:"flex-1 min-w-0",children:t?t(e,k):jsxRuntime.jsx("span",{className:"truncate",children:e.name})}),y&&!p&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:jsxRuntime.jsx(U,{name:"CaretRight",size:it[i].icon,className:"text-text-secondary"})})]})]})}function QC({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:`${it[n].spacing.x+it[n].bullet/2}px`,top:`${it[n].spacing.y+it[n].bullet/2}px`,bottom:`${it[n].spacing.y+it[n].bullet/2}px`},"aria-hidden":"true"}),e.map(i=>jsxRuntime.jsx(XC,{node:i,renderNode:a},i.id))]})}function _C(){let[e,t]=He.useState(()=>typeof window>"u"?false:window.matchMedia("(prefers-reduced-motion: reduce)").matches);return He.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}function Js({children:e,mode:t="sync",presenceKey:r}){let o=r!==void 0&&He__namespace.default.isValidElement(e)?He__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})}var ML={instant:0,fast:150,normal:250,slow:350,slower:500},Xf={xs:"4px",sm:"8px",md:"16px"};function DL(e){return e?typeof e=="string"&&e in Xf?Xf[e]:typeof e=="number"?`${e}px`:e:Xf.sm}function Xs({children:e,direction:t,distance:r="sm",duration:o="normal",delay:n=0,className:a}){let i=_C(),s=typeof o=="number"?o:ML[o],c=DL(r),l=m=>{switch(t){case "left":return {x:`-${m}`};case "right":return {x:m};case "up":return {y:`-${m}`};case "down":return {y:m}}},d=i?{opacity:0}:{opacity:0,...l(c)},u={opacity:1,x:0,y:0},p=i?{opacity:0}:{opacity:0,...l(c)};return jsxRuntime.jsx(framerMotion.motion.div,{className:a,initial:d,animate:u,exit:p,transition:{duration:i?0:s/1e3,delay:i?0:n/1e3,ease:[.4,0,.2,1]},children:e})}function Fd({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",it[r].node),children:[jsxRuntime.jsx(U,{name:"CaretLeft",size:it[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 Bd({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",it[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:it[n].bullet,height:it[n].bullet},children:e.icon&&jsxRuntime.jsx(U,{name:e.icon,size:it[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 oS({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:p,onNavigateBack:m}){return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[r.length===0&&d.position&&d.node&&jsxRuntime.jsx(Bd,{node:d.node,position:d.position,selectedId:o,variant:n,size:a,showBullets:i}),r.length>0&&jsxRuntime.jsx(Fd,{navigationStack:r,onNavigateBack:m,size:a}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("relative",l&&"overflow-auto h-full"),children:jsxRuntime.jsx(Js,{mode:"wait",presenceKey:c,children:r.length===0?u(e,true):jsxRuntime.jsx(Xs,{direction:s,distance:"100%",duration:"normal",children:p(t)})})})]})}function Qf(e,t){for(let r of e){if(r.id===t)return r;if(r.children&&r.children.length>0){let o=Qf(r.children,t);if(o)return o}}return null}function Vd(e){if(e!==void 0)return typeof e=="number"?`${e}px`:e}function nS(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 iS({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 p=o?Qf(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(Bd,{node:s.node,position:s.position,selectedId:o,variant:n,size:a,showBullets:i}),r.length>0&&jsxRuntime.jsx(Fd,{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(Js,{mode:"wait",presenceKey:p?.id||"empty",children:p?jsxRuntime.jsx(Xs,{direction:"left",duration:"fast",children:l(p)}):d?d():jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-text-secondary text-center",it[a].node,"py-8"),children:"Select an item to view details"})})})]})}function sS({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:p=true,layout:m="auto",splitBreakpoint:g=768,renderEmptyState:f,renderDetailView:x,className:b,"aria-label":h="Hierarchy explorer"}){let[y,v]=He__namespace.useState(null),[S,w]=He__namespace.useState([]),[k,L]=He__namespace.useState("left"),[R,D]=He__namespace.useState({position:null,node:null}),{ref:V,width:A}=$a(),T=He__namespace.useMemo(()=>m==="split"?true:m==="single"?false:A>=g,[m,A,g]),N=n!==void 0?n:y;He__namespace.useEffect(()=>{nS(e,a);},[e,a]);let B=S.length>0?S[S.length-1]:null,W=B?B.children||[]:e,O=He__namespace.useCallback(Y=>{L("left"),w(F=>[...F,Y]),o?.(Y,[...S,Y]);},[S,o]),z=He__namespace.useCallback(()=>{L("right"),w(Y=>{let F=Y.slice(0,-1);return o?.(F.length>0?F[F.length-1]:null,F),F});},[o]),j=He__namespace.useCallback(Y=>{n===void 0&&v(Y.id),r?.(Y,[...S,Y]);},[n,S,r]),K=He__namespace.useCallback((Y,F)=>{D({position:Y,node:F});},[]),$=He__namespace.useMemo(()=>({selectedId:N,selectNode:j,navigateToNode:O,navigateBack:z,rootNodeId:a,stickyRootNode:i,variant:d,size:u,showBullets:p,onNodeSelect:r,onNavigate:o,navigationStack:S,setRootNodeSticky:K,useSplitLayout:T}),[N,j,O,z,a,i,d,u,p,r,o,S,K,T]),P=He__namespace.useRef(null);He__namespace.useEffect(()=>{if(!a||!P.current||S.length>0||T)return;let Y=P.current,F=setTimeout(()=>{let _=Y.querySelector(`[data-node-id="${a}"]`);_&&_.scrollIntoView({behavior:"auto",block:"center",inline:"nearest"});},100);return ()=>clearTimeout(F)},[a,S.length,T]);let M={height:Vd(s),minHeight:Vd(c),maxHeight:Vd(l)},G=s!==void 0||l!==void 0,I=B?B.id:"root",C=He__namespace.useCallback((Y,F=false)=>jsxRuntime.jsx(QC,{items:Y,showConnector:F,scrollContainerRef:F?P:null,showBullets:p,size:u,renderNode:t}),[p,u,t]),H=He__namespace.useCallback(Y=>Y?x?x(Y,C):jsxRuntime.jsx($C,{node:Y,renderNodeList:C}):null,[x,C]);return jsxRuntime.jsx(Jf.Provider,{value:$,children:jsxRuntime.jsx("div",{ref:V,className:tailwindMerge.twMerge("select-none bg-background-surface rounded-lg border border-border-default relative",G&&"overflow-hidden",!G&&"h-full flex flex-col",T&&!G&&"flex-row",T&&G&&"flex",b),style:M,role:"tree","aria-label":h,children:T?jsxRuntime.jsx(iS,{data:e,currentItems:W,navigationStack:S,selectedId:N,variant:d,size:u,showBullets:p,rootNodeStickyState:R,renderNodeList:C,renderDetailContent:H,renderEmptyState:f,onNavigateBack:z}):jsxRuntime.jsx(oS,{currentItems:W,currentParent:B,navigationStack:S,selectedId:N,variant:d,size:u,showBullets:p,slideDirection:k,viewKey:I,hasHeight:G,rootNodeStickyState:R,renderNodeList:C,renderDetailContent:H,onNavigateBack:z})})})}function KL({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 lS=({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}),cS=({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)=>KL({...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]});cS.displayName="HoverCardContent";var jL=Object.assign(lS,{Root:lS,Content:cS});function qL(e,t){return co({value:e,formatter:t,emptyClassName:"text-text-secondary",emptyText:"\u2014"})}function JL(e,t="upIsGood"){if(e===0)return "text-text-secondary";let r=e>0;return t==="upIsGood"?r?"text-feedback-success":"text-feedback-error":r?"text-feedback-error":"text-feedback-success"}function XL({points:e,className:t,ariaLabel:r}){let i=e.map(m=>typeof m.y=="number"?m.y:0);if(i.length===0)return null;let s=Math.min(...i),l=Math.max(...i)-s,d=m=>l===0?20/2:18-(m-s)/l*16,u=60/Math.max(e.length-1,1),p=e.map((m,g)=>{let f=2+g*u,x=d(typeof m.y=="number"?m.y:0);return `${g===0?"M":"L"} ${f} ${x}`}).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:p,fill:"none",strokeWidth:"1.5",className:"stroke-border-muted"})})}function uS({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:p,error:m,onClick:g,className:f,renderValue:x,renderDelta:b,renderTrend:h}){let v={sm:{label:bt("labelSm"),value:bt("displaySm"),delta:bt("labelSm"),gap:"gap-1"},md:{label:bt("labelMd"),value:bt("displayMd"),delta:bt("bodySm"),gap:"gap-2"},lg:{label:bt("labelLg"),value:bt("displayLg"),delta:bt("bodyMd"),gap:"gap-3"}}[l],S=u?jsxRuntime.jsx(J,{className:"h-7 w-20"}):p?jsxRuntime.jsx("span",{className:"text-text-secondary",children:"\u2014"}):m?jsxRuntime.jsx("span",{className:bt("bodySm","text-feedback-error"),children:typeof m=="string"?m:"Error"}):x?x(t):qL(t,r),w=b?b(o):o!==void 0&&!u&&!p&&!m?jsxRuntime.jsxs("div",{className:tr(v.delta,JL(o,a),"flex items-center gap-1"),children:[o>0&&jsxRuntime.jsx(U,{name:"ArrowUp",size:12}),o<0&&jsxRuntime.jsx(U,{name:"ArrowDown",size:12}),o===0&&jsxRuntime.jsx(U,{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,k=h?h(i):i&&i.length>0&&!u&&!m?jsxRuntime.jsx(XL,{points:i,ariaLabel:`${e} trend`,className:p?"opacity-30":""}):u&&i!==void 0?jsxRuntime.jsx(J,{className:"h-5 w-16"}):null;return jsxRuntime.jsxs("section",{className:tailwindMerge.twMerge("flex min-w-0",d==="horizontal"?`items-center ${v.gap}`:`flex-col ${v.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:tr(v.label,"text-text-secondary truncate"),children:u?jsxRuntime.jsx(J,{className:"h-4 w-24"}):e}),c&&!u&&jsxRuntime.jsx(U,{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:tr(v.value,m?"text-feedback-error":"text-text-primary"),"aria-label":`Value: ${S}`,children:S}),s&&!u&&!m&&jsxRuntime.jsx(at,{variant:s.tone||"neutral",size:"sm",children:s.value})]}),(w||k)&&jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[w,k]})]})}var pS={xs:"gap-2",sm:"gap-3",md:"gap-4",lg:"gap-6",xl:"gap-8"},mS={start:"items-start",center:"items-center",stretch:"items-stretch"};function fS(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 tg({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?He__namespace.default.Children.map(e,m=>He__namespace.default.isValidElement(m)&&m.type&&typeof m.type!="string"&&"displayName"in m.type?He__namespace.default.cloneElement(m,{isLoading:true}):m):e,u=s?He__namespace.default.Children.map(d,m=>jsxRuntime.jsx("div",{className:"shrink-0",style:{minWidth:c},children:m})):d,p=s?tailwindMerge.twMerge("flex overflow-x-auto pb-2 -mb-2",pS[r],"sm:grid sm:overflow-visible sm:pb-0 sm:-mb-0",fS({...typeof t=="object"?t:{base:t},base:void 0}),mS[o],n&&"sm:auto-rows-fr"):tailwindMerge.twMerge("grid",fS(t),pS[r],mS[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:p,children:s?u:d})]})}tg.displayName="KpiGroup";function xS({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:p=true,onLoadMore:m,hasMore:g=false,enableVirtualization:f,estimatedItemSize:x=60,loadingIndicator:b,"aria-label":h,className:y="",style:v}){let[S,w]=He.useState(null),k=He.useRef(null),L=He.useRef(new Map),{scrollRef:R,loadMoreRef:D,virtualizer:V,virtualItems:A,isLoadingMore:T,computedLoadingState:N}=tn({items:e,onLoadMore:m,hasMore:g,isLoading:a,loadingState:i,enableVirtualization:f,estimatedItemSize:x,overscan:5}),B=R??k,W=He.useCallback((C,H)=>{o?.(C,H);},[o]),O=He.useCallback((C,H)=>{w(C),n?.(C,H);},[n]),z=He.useCallback((C,H)=>{let Y=C?.id;return typeof Y=="string"&&Y?Y:`item-${H}`},[]),j=He.useCallback(C=>{if(!B.current||e.length===0)return;let H=document.activeElement,Y=e.findIndex((E,ae)=>{let oe=z(E,ae),ee=L.current.get(oe);return ee&&(ee===H||ee.contains(H))}),F=Y;switch(C.key){case "ArrowDown":C.preventDefault(),F=Y===-1?0:Math.min(Y+1,e.length-1);break;case "ArrowUp":C.preventDefault(),F=Y===-1?0:Math.max(Y-1,0);break;case "Home":C.preventDefault(),F=0;break;case "End":C.preventDefault(),F=e.length-1;break;default:return}let _=z(e[F],F);L.current.get(_)?.focus();},[e,z,B]),K=["flex flex-col","bg-background-surface","focus:outline-none focus:ring-2 focus:ring-border-focus focus:ring-offset-2"],$={dense:"gap-0",relaxed:"gap-0"},P=p?"divide-y divide-border-muted":"",M=[...K,$[u],P,y].filter(Boolean).join(" ");if(N==="loading"||a&&e.length===0){let C=c?jsxRuntime.jsx(jsxRuntime.Fragment,{children:Array.from({length:l}).map((H,Y)=>jsxRuntime.jsx("div",{children:c()},`skeleton-${Y}`))}):jsxRuntime.jsx(fx,{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:B,className:M,style:v,role:"listbox","aria-label":h,"aria-busy":"true","aria-live":"polite",children:C})}if(s)return jsxRuntime.jsx("div",{ref:B,className:M,style:v,role:"listbox","aria-label":h,"aria-live":"polite",children:jsxRuntime.jsx("div",{className:"p-4 text-center text-feedback-error-text",children:s})});if(e.length===0)return jsxRuntime.jsx("div",{ref:B,className:M,style:v,role:"listbox","aria-label":h,"aria-live":"polite",children:jsxRuntime.jsx("div",{className:"p-4 text-center text-text-secondary",children:d})});let I=V?A?.map(C=>({virtualItem:C,item:e[C.index],index:C.index}))||[]:e.map((C,H)=>({item:C,index:H,virtualItem:null}));return jsxRuntime.jsxs("div",{ref:B,className:M,style:{...v,...m&&{overflow:"auto",height:v?.height||"600px"}},role:"listbox","aria-label":h,"aria-live":"polite",onKeyDown:j,tabIndex:0,children:[V&&jsxRuntime.jsxs("div",{style:{height:`${V.getTotalSize()}px`,width:"100%",position:"relative"},children:[I.map(({virtualItem:C,item:H,index:Y})=>{if(!C)return null;let F=z(H,Y),_=r===F,te=S===F,E={id:F,role:"option","aria-selected":_,"aria-current":_?"page":void 0,tabIndex:_||r==null&&Y===0?0:-1,onClick:ae=>W(ae,H),onMouseEnter:ae=>O(ae,H),onMouseLeave:ae=>O(null),onFocus:ae=>O(ae,H),onBlur:ae=>O(null),ref:ae=>{ae?L.current.set(F,ae):L.current.delete(F);}};return jsxRuntime.jsx("div",{"data-index":C.index,ref:V.measureElement,style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${C.start}px)`},children:t({item:H,index:Y,isSelected:_,isHovered:te,rowProps:E})},F)}),m&&g&&jsxRuntime.jsx("div",{ref:D,style:{position:"absolute",top:`${V.getTotalSize()}px`,left:0,width:"100%",height:1,pointerEvents:"none"}}),T&&jsxRuntime.jsx("div",{style:{position:"absolute",top:`${V.getTotalSize()}px`,left:0,width:"100%"},children:b||jsxRuntime.jsx(Lr,{state:"loading-more"})})]}),!V&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[I.map(({item:C,index:H})=>{let Y=z(C,H),F=r===Y,_=S===Y,te={id:Y,role:"option","aria-selected":F,"aria-current":F?"page":void 0,tabIndex:F||r==null&&H===0?0:-1,onClick:E=>W(E,C),onMouseEnter:E=>O(E,C),onMouseLeave:E=>O(null),onFocus:E=>O(E,C),onBlur:E=>O(null),ref:E=>{E?L.current.set(Y,E):L.current.delete(Y);}};return jsxRuntime.jsx("div",{children:t({item:C,index:H,isSelected:F,isHovered:_,rowProps:te})},Y)}),m&&g&&jsxRuntime.jsx("div",{ref:D,style:{height:1}}),T&&(b||jsxRuntime.jsx(Lr,{state:"loading-more"}))]})]})}function yS({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:p,onMouseLeave:m,className:g="",style:f,piiTitleType:x,piiSubtitleType:b,piiEntity:h}){let y=()=>{!c&&u&&u(e);},v=()=>{!c&&p&&p(e);},S=()=>{!c&&m&&m(e);},k={sm:{container:"px-3 py-2 gap-2",title:"text-sm leading-tight",subtitle:"text-xs leading-tight",meta:"text-xs leading-tight",subtitleSpacing:"mt-1",metaSpacing:"mt-1"},md:{container:"px-4 py-3 gap-3",title:"text-base leading-tight",subtitle:"text-sm leading-tight",meta:"text-sm leading-tight",subtitleSpacing:"mt-1",metaSpacing:"mt-1"},lg:{container:"px-4 py-4 gap-3",title:"text-lg leading-tight",subtitle:"text-base leading-tight",meta:"text-sm leading-tight",subtitleSpacing:"mt-1",metaSpacing:"mt-1"},xl:{container:"px-5 py-5 gap-4",title:"text-xl leading-tight",subtitle:"text-base leading-tight",meta:"text-base leading-tight",subtitleSpacing:"mt-1.5",metaSpacing:"mt-1.5"}}[d],L=["flex items-center w-full text-left transition-all duration-200 ease-in-out",k.container,"border-l-2 border-l-transparent","rounded-sm",Je()],R=[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"],D=[...L,...R,g].filter(Boolean).join(" "),V=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[n&&jsxRuntime.jsx("div",{className:"flex-shrink-0 flex items-center justify-center",children:n}),jsxRuntime.jsx("div",{className:"flex-1 min-w-0",children:jsxRuntime.jsx("div",{className:"flex items-start justify-between gap-2",children:jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsx("div",{className:`text-text-primary font-medium truncate ${k.title}`,title:typeof t=="string"?t:void 0,"data-pii-type":x&&h?x:void 0,"data-pii-entity":x&&h?h:void 0,children:t}),r&&jsxRuntime.jsx("div",{className:`text-text-secondary truncate ${k.subtitle} ${k.subtitleSpacing}`,title:typeof r=="string"?r:void 0,"data-pii-type":b&&h?b:void 0,"data-pii-entity":b&&h?h:void 0,children:r}),o&&jsxRuntime.jsx("div",{className:`text-text-secondary ${k.meta} ${k.metaSpacing}`,children:o})]})})}),a&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:a})]});return l?jsxRuntime.jsx("a",{href:l,className:D,style:f,onMouseEnter:v,onMouseLeave:S,"aria-selected":i,"aria-current":i?"page":void 0,tabIndex:c?-1:0,children:V}):jsxRuntime.jsx("button",{type:"button",className:D,style:f,onClick:y,onMouseEnter:v,onMouseLeave:S,disabled:c,"aria-selected":i,tabIndex:c?-1:0,children:V})}function vS({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"},p={neutral:"bg-background-surface",subtle:"bg-background-subtle",brand:"bg-background-brand"},m={none:"",sm:"shadow-sm",md:"shadow-md"},g=tailwindMerge.twMerge("flex flex-col h-full",u[o],p[n],m[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})]})}var og=[{type:"navigation",position:"bottom-right",showCompass:true,showGeolocate:true,showResetZoom:true}];var CS="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/NRl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wZVZxyO2G19y9ieD165lH9Fosk8DI5sufSSLSZBQSF3maHFuDcVGsLHjqrgKZLUX5JqjGehdg3ULYhq7fAkpy5voaGxxtFgmygtNBJMSfalN4Ghq0DVGhNw+TbZUJBvl6KdlImJXLsphrcJtyi/rBx7bNiPF3drqCfiaI7S/0yAfzPgdNJKqQ+lwh1XfSmYClPT+R2b/03chQhh/fQH7Dav+EOO2oojEn8WdyuYzZbw6+e/WpX6eGYK0xR3BJhumCL/0lYS1EWShiFKXp4HOjIdwcvzNzjuNg4uobmh3lmZNljg+RHIokP7iJ+//S9/0JF4UWgALQSUifcPn+AvCxKcp8u7vR5XAiSC3WYDByQWZ1myzFUtOgbu577+f5ZPq/B5Pf+nAAAAAElFTkSuQmCC";function kS(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 oA="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 PS(e){return tailwindMerge.twMerge(oA,e)}function Dn({position:e="top-right",className:t,style:r,children:o}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(kS(e),t),style:r,children:o})}function Rr({icon:e,iconSize:t=24,onPress:r,isDisabled:o=false,className:n,iconClassName:a="text-text-primary",variant:i="secondary",isActive:s=false,ariaLabel:c,iconWeight:l="regular",...d}){let u=tailwindMerge.twMerge(PS(),s&&"bg-action-brand hover:bg-action-brand-hover border-action-brand",n),p=tailwindMerge.twMerge(a,s&&"text-text-inverse");return jsxRuntime.jsx(ie,{...d,className:u,onPress:r,variant:i,size:"sm",isDisabled:o,"aria-label":c,"aria-pressed":s||void 0,type:"button",children:jsxRuntime.jsx(U,{name:e,size:t,className:p,weight:l})})}var cA=e=>[{id:"streets",name:"Streets",description:"Standard street map with traffic data",preview:e?TS:NS},{id:"satellite",name:"Satellite",description:"Aerial imagery with street labels",preview:wS},{id:"neutral",name:"Neutral",description:"Clean design with light/dark variants",preview:e?CS:SS}];function dA({type:e,color:t}){let r="inline-block",o=t?{backgroundColor:t}:{};switch(e){case "dot":return jsxRuntime.jsx("span",{className:`${r} h-3 w-3 rounded-full border border-border`,style:o});case "line":return jsxRuntime.jsx("span",{className:`${r} h-0.5 w-6 rounded-full`,style:o});case "polygon":return jsxRuntime.jsx("span",{className:`${r} h-3 w-4 rounded-sm border border-border`,style:o});case "pin":return jsxRuntime.jsx("span",{className:`${r} h-3 w-3 rounded-full rounded-bl-none border border-border transform rotate-45`,style:o});default:return null}}function DS({position:e="bottom-left",className:t,style:r,currentMapType:o="streets",onMapTypeChange:n,layers:a=[],onLayerToggle:i,onClearAll:s}){let{isDarkTheme:c}=Ht(),{isMobile:l}=Qt(),[d,u]=He.useState(false),p=cA(c),m=x=>{n?.(x);},g=a.filter(x=>x.legend),f=jsxRuntime.jsxs("div",{className:l?"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:p.map(x=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>m(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))})]}),g.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:g.map(x=>jsxRuntime.jsx(_n,{isSelected:x.visible!==false,onChange:()=>i?.(x.id),children:jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[x.legend&&jsxRuntime.jsx(dA,{type:x.legend.swatch,color:x.legend.color}),jsxRuntime.jsx("span",{className:"text-sm text-text-primary",children:x.legend?.label})]})},x.id))})]})]});return jsxRuntime.jsx(Dn,{position:e,className:t,style:r,children:jsxRuntime.jsx("div",{className:"relative",children:l?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Rr,{icon:"Stack",ariaLabel:"Map layers and settings",onPress:()=>u(true)}),jsxRuntime.jsx(ct,{isOpen:d,onClose:()=>u(false),title:"Map layers",animationVariant:"scale",children:f})]}):jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{children:[jsxRuntime.jsx(Rr,{icon:"Stack",ariaLabel:"Map layers and settings"}),jsxRuntime.jsx(lt,{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:f})})]})})})}function LS({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(Rr,{icon:"ListDashes",onPress:o,isActive:n,ariaLabel:n?"Hide list view":"Show list view"})})}var fA={sm:"gap-2",md:"gap-4",lg:"gap-6"};function Wd({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",fA[a],t),children:o})})}function IS({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]=He.useState(false),p=He.useRef(true);He.useEffect(()=>()=>{p.current=false;},[]);let m=()=>{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(y=>{if(!p.current)return;let{latitude:v,longitude:S}=y.coords;e.current&&e.current.flyTo({center:[S,v],zoom:15,duration:2e3}),u(false);},y=>{if(p.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,x=!i&&!n&&a,b=!a&&n;return jsxRuntime.jsxs(Wd,{position:t,className:r,style:o,spacing:"sm",children:[i&&jsxRuntime.jsx(Rr,{icon:"ArrowsOut",onPress:s,ariaLabel:"Reset zoom to show all points",className:tailwindMerge.twMerge(!(!a&&!n&&i)&&"rounded-b-none",n&&"border-b-0")}),n&&jsxRuntime.jsx(Rr,{icon:"Compass",onPress:m,ariaLabel:"Reset map orientation",className:tailwindMerge.twMerge(!f&&"rounded-t-none border-t-0",!b&&"rounded-b-none border-b-0")}),a&&jsxRuntime.jsx(Rr,{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(!x&&"rounded-t-none border-t-0",!x&&n&&"lg:rounded-t lg:border-t")})]})}function OS({position:e="top-left",className:t,style:r,onSearch:o,placeholder:n="Search places...",showSearchInput:a=true}){let[i,s]=He.useState(false),[c,l]=He.useState(""),d=()=>{a?s(!i):o&&o("");},u=m=>{m.preventDefault(),o&&c.trim()&&(o(c.trim()),s(false));},p=m=>{m.key==="Escape"&&s(false);};return jsxRuntime.jsx(Dn,{position:e,className:t,style:r,children:jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx(Rr,{icon:"MagnifyingGlass",onPress:d,ariaLabel:"Search"}),i&&a&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("absolute top-12 left-0 min-w-64","bg-background-surface border border-border rounded-lg shadow-xl p-3"),children:jsxRuntime.jsx("form",{onSubmit:u,children:jsxRuntime.jsxs("div",{className:"flex items-center space-x-2",children:[jsxRuntime.jsx("input",{type:"text",value:c,onChange:m=>l(m.target.value),onKeyDown:p,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(ie,{type:"submit",variant:"primary",size:"sm",className:"px-3 py-2",children:"Search"})]})})})]})})}var yA={navigation:"bottom-right",layers:"bottom-left",search:"top-left",list:"top-right",custom:"top-right"};function ag(e){return e.position??yA[e.type]}function zS(e,t,r){let o=ag(e),n=e.id??`${e.type}-${t}`;switch(e.type){case "navigation":{let i=e.showResetZoom!==false&&r.showResetButton;return jsxRuntime.jsx(IS,{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(DS,{position:o,currentMapType:e.currentMapType,onMapTypeChange:e.onMapTypeChange,layers:e.layers??r.layers,onLayerToggle:e.onLayerToggle,onClearAll:e.onClearAll,style:e.style,className:e.className},n);case "search":return jsxRuntime.jsx(OS,{position:o,onSearch:e.onSearch,placeholder:e.placeholder,showSearchInput:e.showSearchInput,style:e.style,className:e.className},n);case "list":return jsxRuntime.jsx(LS,{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 ig(e,t){let r=e.reduce((n,a,i)=>{let s=ag(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(zS(a[0].control,a[0].index,t));continue}let i={position:"static",top:"auto",right:"auto",bottom:"auto",left:"auto"};o.push(jsxRuntime.jsx(Wd,{position:n,spacing:"sm",children:a.map(({control:s,index:c})=>{let l={...s,style:{...s.style,...i}};return zS(l,c,t)})},`group-${n}`));}return o}function Ud(){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{}}var sg={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 lg(e){return e.kind==="vector"}function cg(e){return e.kind==="geojson"}function dg(e){return e.kind==="customPins"}function ug(e){return e.kind==="raster"}function el(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(CA,{spec:o,mapType:t},o.id);case "geojson":return jsxRuntime.jsx(wA,{spec:o,mapType:t},o.id);case "customPins":return jsxRuntime.jsx(TA,{spec:o,mapType:t},o.id);case "raster":return jsxRuntime.jsx(NA,{spec:o},o.id);case "clusteredVector":return jsxRuntime.jsx(SA,{spec:o,mapType:t},o.id);default:return console.warn("[Layers] Unknown layer kind:",o.kind),null}})})}function CA({spec:e,mapType:t}){let{colorMode:r}=Ht(),o=He.useMemo(()=>US(e.style,e.renderAs,r,t),[e.style,e.renderAs,r,t]),n=He.useMemo(()=>({visibility:e.visible===false?"none":"visible"}),[e.visible]),a={id:e.id,type:GS(e.renderAs),"source-layer":e.sourceLayer,paint:o,layout:n};e.filter!==void 0&&(a.filter=e.filter),e.minZoom!==void 0&&(a.minzoom=e.minZoom),e.maxZoom!==void 0&&(a.maxzoom=e.maxZoom);let i=e.tileset.startsWith("mapbox://"),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(FA.Source,{...s,children:jsxRuntime.jsx(FA.Layer,{...a})},e.tileset)}function SA({spec:e}){let{colorMode:t,isDarkTheme:r}=Ht(),o=1.25,n=9,a=3,i=n*1.4,s=.2,c=[0,5],l=He.useMemo(()=>r?{clusters:e.clusterStyle?.color?Yr(e.clusterStyle.color):"#000000",shadow:e.clusterStyle?.shadowColor||"rgba(0, 0, 0, 0.5)",point:{fill:e.pointStyle?.color?Yr(e.pointStyle.color):"#000000",stroke:e.pointStyle?.borderColor||"#ffffff",shadow:"rgba(0, 0, 0, 0.5)"},text:{onCluster:"#ffffff"},selected:{fill:e.selectedStyle?.color?Yr(e.selectedStyle.color):"#444ae1"}}:{clusters:e.clusterStyle?.color?Yr(e.clusterStyle.color):"#000000",shadow:e.clusterStyle?.shadowColor||"rgba(0, 0, 0, 0.3)",point:{fill:e.pointStyle?.color?Yr(e.pointStyle.color):"#000000",stroke:e.pointStyle?.borderColor||"#ffffff",shadow:"rgba(0, 0, 0, 0.3)"},text:{onCluster:"#ffffff"},selected:{fill:e.selectedStyle?.color?Yr(e.selectedStyle.color):"#444ae1"}},[r,t,e.clusterStyle,e.pointStyle,e.selectedStyle]),d=10,u=30,p=Math.log(2),m=Math.log(2e3),g=(e.clusterStyle?.sizes?.length??0)>0,f=He.useMemo(()=>g?e.clusterStyle.sizes.map(({threshold:S,radius:w})=>({threshold:S,radius:w,color:l.clusters})):[{threshold:30,radius:20,color:l.clusters},{threshold:200,radius:35,color:l.clusters},{threshold:1e3,radius:50,color:l.clusters}],[g,e.clusterStyle?.sizes,l.clusters]),x=S=>g?["step",["get","point_count"],S[0].radius,...S.flatMap(({threshold:w,radius:k})=>[w,k])]:["interpolate",["linear"],["ln",["max",2,["get","point_count"]]],p,d,m,u],b=S=>g?["step",["get","point_count"],S[0].radius*o,...S.flatMap(({threshold:w,radius:k})=>[w,k*o])]:["interpolate",["linear"],["ln",["max",2,["get","point_count"]]],p,d*o,m,u*o],h=e.tileset.startsWith("mapbox://"),y={id:`${e.id}-source`,type:"vector"};h?y.url=e.tileset:(y.tiles=[e.tileset],y.minzoom=0,y.maxzoom=22);let v=He.useMemo(()=>{let S=e.pointStyle?.radius??n,w=e.pointStyle?.borderWidth??a,k=e.selectedStyle?.radius??n*1.5,L=R=>{let D={...R};return e.minZoom!==void 0&&(D.minzoom=e.minZoom),e.maxZoom!==void 0&&(D.maxzoom=e.maxZoom),D};return [L({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]}}),L({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}}),L({id:`${e.id}-clusters`,type:"circle","source-layer":e.sourceLayer,filter:["==",["get","cluster"],true],paint:{"circle-radius":x(f),"circle-color":["step",["get","point_count"],f[0].color,...f.flatMap(({threshold:R,color:D})=>[R,D])]}}),L({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}}),L({id:`${e.id}-points`,type:"circle","source-layer":e.sourceLayer,filter:["all",["!=",["get","cluster"],true],["!=",["get","id"],e.selectedId||"selected"]],paint:{"circle-radius":S,"circle-color":l.point.fill,"circle-stroke-width":w,"circle-stroke-color":l.point.stroke}}),L({id:`${e.id}-selected-point`,type:"circle","source-layer":e.sourceLayer,filter:["==",["get","id"],e.selectedId||"selected"],paint:{"circle-radius":k,"circle-color":l.selected.fill,"circle-stroke-width":w,"circle-stroke-color":"#ffffff"}}),...e.pointStyle?.icon?[L({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":HS(S,e.pointStyle.icon.size),"icon-allow-overlap":true,"icon-ignore-placement":true}}),L({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":HS(k,e.pointStyle.icon.size),"icon-allow-overlap":true,"icon-ignore-placement":true}})]:[]]},[e.id,e.sourceLayer,e.selectedId,e.minZoom,e.maxZoom,e.pointStyle,e.selectedStyle,f,l,n,a,i,s]);return jsxRuntime.jsx(FA.Source,{...y,children:v.map(S=>jsxRuntime.jsx(FA.Layer,{...S},S.id))},e.tileset)}function wA({spec:e,mapType:t}){let{colorMode:r}=Ht(),o=He.useMemo(()=>typeof e.data=="string"?null:e.data,[e.data]),n=He.useMemo(()=>US(e.style,e.renderAs,r,t,o),[e.style,e.renderAs,r,t,o]),a=He.useMemo(()=>({visibility:e.visible===false?"none":"visible"}),[e.visible]),i=He.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:GS(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(FA.Source,{...s,children:jsxRuntime.jsx(FA.Layer,{...c})})}function TA({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(FA.Marker,{longitude:a,latitude:i,anchor:"bottom",children:jsxRuntime.jsx(r,{...s})},`${e.id}-${n}`)})})}function NA({spec:e}){let t=He.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(FA.Source,{...r,children:jsxRuntime.jsx(FA.Layer,{...o})},e.tileset)}var io="#666";function HS(e,t){let r=t??64;return e*2/r}function GS(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 US(e,t,r,o,n){if(!e)return {};let a={};if(e.color){let i=Yr(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"]=Yd(e.width)),e.radius&&t==="circle"&&(a["circle-radius"]=Yd(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?Yr(e.borderColor,r,n):Yr(e.color||"#000",r,n)),t==="circle"&&e.borderWidth){a["circle-stroke-width"]=e.borderWidth;let i=e.borderColor?Yr(e.borderColor,r,n):Rt(`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]:Yd(e.weight)),e.intensity!==void 0&&(a["heatmap-intensity"]=e.intensity),e.radius!==void 0&&(a["heatmap-radius"]=Yd(e.radius)),e.opacity!==void 0&&(a["heatmap-opacity"]=e.opacity)),a}function kA(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(Yr(s));let a=e.fallback?Yr(e.fallback):io;return n.push(a),n}function PA(e,t){let r=ex(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=sp(r),n=["match",["get",e]];for(let[a,i]of Object.entries(o))n.push(a),n.push(i);return n.push(io),n}function RA(e,t="viridis",r,o){let n=lp(r,e),a;if(o&&o!=="auto")a=o;else {if(a=cp(n),n.length===0)return console.warn(`[Layers] No numeric values found for property "${e}"`),io;console.log(`[Layers] Auto-calculated sequential scale for "${e}": ${a.min} to ${a.max}`);}let i=dp(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 MA(e,t="redYellowBlue",r,o,n){let a=lp(r,e),i=tx(a,o),s;if(n&&n!=="auto")s=n;else {if(s=cp(a),a.length===0)return console.warn(`[Layers] No numeric values found for property "${e}"`),io;console.log(`[Layers] Auto-calculated diverging scale for "${e}": ${s.min} \u2190 ${i} \u2192 ${s.max}`);}let c=up(t),l=4,d=["interpolate",["linear"],["get",e]];for(let u=0;u<=l;u++){let p=u/l,m=s.min+p*(i-s.min);d.push(m,c[u]);}for(let u=l+1;u<c.length;u++){let p=(u-l)/(c.length-1-l),m=i+p*(s.max-i);d.push(m,c[u]);}return d}function WS(e){if(!(e.startsWith("var(")||e.startsWith("--")||e.startsWith("color-")))return e;let r=Rt(e,io);return r.includes("var(")?io:r}function Yr(e,t,r){if(typeof e=="string")return WS(e);if("token"in e)return Rt(e.token,io);if("hex"in e)return WS(e.hex);if("by"in e){if("palette"in e){if(e.palette==="categorical")return r?PA(e.by,r):(console.warn("[Layers] Categorical auto-assignment requires GeoJSON data (not URL-based data)"),io);if(e.palette==="sequential")return r?RA(e.by,e.scheme,r,e.scale):(console.warn("[Layers] Sequential palette requires GeoJSON data (not URL-based data)"),io);if(e.palette==="diverging")return r?MA(e.by,e.scheme,r,e.center,e.scale):(console.warn("[Layers] Diverging palette requires GeoJSON data (not URL-based data)"),io)}if("mapping"in e)return kA(e)}return io}function Yd(e){return typeof e=="number"?e:"byZoom"in e?["interpolate",["linear"],["zoom"],...e.byZoom.flatMap(([t,r])=>[t,r])]:e}var $d=null;function qd(){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():($d||($d=import('mapbox-gl/dist/mapbox-gl.css').then(()=>{}).catch(t=>{console.error("Failed to load Mapbox CSS",t),$d=null;})),$d)}function Jd(){return jsxRuntime.jsx("div",{className:"absolute inset-0 z-50 bg-background-surface/90 backdrop-blur-sm pointer-events-none","data-testid":"map-loading-overlay",children:jsxRuntime.jsx("div",{className:"absolute inset-0 opacity-20",children:jsxRuntime.jsx("div",{className:"h-full w-full",style:{backgroundImage:`
40
+ `,"aria-label":"Open search",children:[jsxRuntime.jsx(V,{name:"MagnifyingGlass",size:18,className:"flex-shrink-0 transition-colors text-text-secondary"}),jsxRuntime.jsx("span",{className:`flex-1 text-left text-sm transition-colors ${o==="elevated"?"text-text-secondary font-normal":"text-text-disabled"}`,children:e}),r&&jsxRuntime.jsxs("div",{className:"hidden sm:flex items-center gap-1 flex-shrink-0",children:[jsxRuntime.jsx("kbd",{className:`px-2 py-1 text-xs font-medium rounded transition-colors ${o==="elevated"?"bg-background-surface/80 border border-border-muted text-text-secondary":"bg-background-muted border border-border-muted"}`,children:a?"\u2318":"Ctrl"}),jsxRuntime.jsx("kbd",{className:`px-2 py-1 text-xs font-medium rounded transition-colors ${o==="elevated"?"bg-background-surface/80 border border-border-muted text-text-secondary":"bg-background-muted border border-border-muted"}`,children:"K"})]})]})}var L2={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"},E2={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"}},A2={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"},I2={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"},F2={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"},B2={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},V2={start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},z2={row:"grid-flow-row",col:"grid-flow-col",dense:"grid-flow-dense","row-dense":"grid-flow-row-dense","col-dense":"grid-flow-col-dense"},O2={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"},H2={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 Qx(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 Yu({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?"":Qx(e,L2,E2),!r&&!o&&A2[t],r&&I2[r],o&&F2[o],B2[n],V2[a],z2[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 W2({span:e,className:t,children:r}){let o=tailwindMerge.twMerge(Qx(e,O2,H2),t);return jsxRuntime.jsx("div",{className:o,children:r})}Yu.Item=W2;function G2(e,t){return Oe__namespace.default.isValidElement(e)?e:Xr({value:e,formatter:t,emptyClassName:"text-text-secondary",emptyText:"\u2014"})}function U2(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 K2={neutral:"text-text-primary",success:"text-feedback-success",warning:"text-feedback-warning",error:"text-feedback-error",info:"text-feedback-info"},Y2=24,J2=20;function X2({item:e,dense:t,valueAlign:r}){let o=U2(e),n=o?K2[o]:"",a=e.stackOnMobile,i=typeof e.value=="string"&&e.value.length>Y2&&!e.formatter&&!Oe__namespace.default.isValidElement(e.value),s=G2(e.value,e.formatter),c=i?aa(e.value,J2):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(Qt,{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(Fo,{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 Dl({items:e,layout:t="one-column",dense:r=false,valueAlign:o="end",showDividers:n=false,skeleton:a=false,empty:i=false,error:s,className:c}){return a?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("grid",t==="two-column"?"md:grid-cols-2 gap-x-6":"grid-cols-1",r?"gap-y-1":"gap-y-2",c),children:Array.from({length:e.length||4}).map((l,d)=>jsxRuntime.jsxs("div",{className:"grid grid-cols-[1fr_auto] items-start gap-x-4",children:[jsxRuntime.jsx(K,{className:"h-4 w-24"}),jsxRuntime.jsx(K,{className:"h-5 w-16"})]},d))}):s?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-sm text-feedback-error",c),children:s}):i||!e.length?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-sm text-text-secondary",c),children:"No data available"}):jsxRuntime.jsx("dl",{className:tailwindMerge.twMerge("grid",t==="two-column"?"md:grid-cols-2 gap-x-6":"grid-cols-1",r?"gap-y-1":"gap-y-2",c),children:e.map((l,d)=>jsxRuntime.jsxs(Oe__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(X2,{item:l,dense:r,valueAlign:o})]},l.id))})}function $x({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(Dl,{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 rt={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 Xu=Oe__namespace.createContext(null);function eh(){let e=Oe__namespace.useContext(Xu);if(!e)throw new Error("Hierarchy components must be used within HierarchyExplorer");return e}function rh({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}=eh(),p=Oe__namespace.useRef(null),g=Oe__namespace.useRef(null),f=r===e.id,x=e.disabled||false,b=!!(e.children&&e.children.length>0),h=!!(e.metadata&&Object.keys(e.metadata).length>0),y=b||h,v=c!==void 0&&e.id!==void 0&&c===e.id&&d.length===0;Oe__namespace.useLayoutEffect(()=>{v&&l&&p.current&&g.current===null&&requestAnimationFrame(()=>{p.current&&(g.current=p.current.offsetTop);});},[v,l]),Oe__namespace.useEffect(()=>{if(!v||!l||!p.current)return;let I=p.current.parentElement;for(;I;){let L=window.getComputedStyle(I).overflowY;if(L==="auto"||L==="scroll")break;I=I.parentElement;}if(!I)return;let M=()=>{if(!p.current||g.current===null)return;let L=I.getBoundingClientRect(),R=I.scrollTop,B=L.height,Y=p.current.offsetHeight,W=g.current-R,Z=W+Y,q=W<0,Q=Z>B;q?u("top",e):Q?u("bottom",e):u(null,null);};return I.addEventListener("scroll",M),M(),()=>{I.removeEventListener("scroll",M);}},[v,l,e,u]);let S=()=>{x||(m?o(e):y?n(e):o(e));},N=I=>{x||(I.key==="Enter"||I.key===" ")&&(I.preventDefault(),S());},w={isSelected:f,isDisabled:x,hasChildren:b,hasMetadata:h,level:0},D=tailwindMerge.twMerge("relative cursor-pointer group",x&&"opacity-50 cursor-not-allowed"),k=tailwindMerge.twMerge("absolute inset-0 transition-colors",v&&!f&&!x&&"group-hover:bg-background-hover",v&&f&&!x&&a==="subtle"&&"bg-background-selected group-hover:bg-background-hover",v&&f&&x&&a==="subtle"&&"bg-background-selected",v&&f&&!x&&a==="solid"&&"bg-action-brand group-hover:bg-action-brand-hover",v&&f&&x&&a==="solid"&&"bg-action-brand",!v&&a==="subtle"&&!f&&!x&&"group-hover:bg-background-hover",!v&&a==="subtle"&&f&&!x&&"bg-background-selected group-hover:bg-background-hover",!v&&a==="subtle"&&f&&x&&"bg-background-selected",!v&&a==="solid"&&!f&&!x&&"group-hover:bg-background-hover",!v&&a==="solid"&&f&&!x&&"bg-action-brand group-hover:bg-action-brand-hover",!v&&a==="solid"&&f&&x&&"bg-action-brand"),P=tailwindMerge.twMerge("relative flex items-center gap-2 text-text-primary hover:text-text-primary transition-colors",rt[i].node,v&&!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:D,onClick:S,onKeyDown:N,role:"treeitem","aria-selected":f,"aria-disabled":x,tabIndex:0,"data-node-id":e.id,children:[jsxRuntime.jsx("div",{className:k}),jsxRuntime.jsxs("div",{className:P,children:[s&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("relative rounded-full flex items-center justify-center flex-shrink-0 z-20",v&&"bg-action-brand border-action-brand",!v&&"bg-background-muted border border-border-default"),style:{width:rt[i].bullet,height:rt[i].bullet},children:e.icon&&jsxRuntime.jsx(V,{name:e.icon,size:rt[i].icon,weight:v?"fill":"regular",className:v?"text-[color:var(--color-action-brand-text)]":"text-text-primary"})}),jsxRuntime.jsx("div",{className:"flex-1 min-w-0",children:t?t(e,w):jsxRuntime.jsx("span",{className:"truncate",children:e.name})}),y&&!m&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:jsxRuntime.jsx(V,{name:"CaretRight",size:rt[i].icon,className:"text-text-secondary"})})]})]})}function nh({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:`${rt[n].spacing.x+rt[n].bullet/2}px`,top:`${rt[n].spacing.y+rt[n].bullet/2}px`,bottom:`${rt[n].spacing.y+rt[n].bullet/2}px`},"aria-hidden":"true"}),e.map(i=>jsxRuntime.jsx(rh,{node:i,renderNode:a},i.id))]})}function Ai({children:e,mode:t="sync",presenceKey:r}){let o=r!==void 0&&Oe__namespace.default.isValidElement(e)?Oe__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 sh(){let[e,t]=Oe.useState(()=>typeof window>"u"?false:window.matchMedia("(prefers-reduced-motion: reduce)").matches);return Oe.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 eR={instant:0,fast:150,normal:250,slow:350,slower:500},ju={xs:"4px",sm:"8px",md:"16px"};function tR(e){return e?typeof e=="string"&&e in ju?ju[e]:typeof e=="number"?`${e}px`:e:ju.sm}function Ii({children:e,direction:t,distance:r="sm",duration:o="normal",delay:n=0,className:a}){let i=sh(),s=typeof o=="number"?o:eR[o],c=tR(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 Al({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",rt[r].node),children:[jsxRuntime.jsx(V,{name:"CaretLeft",size:rt[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 Il({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",rt[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:rt[n].bullet,height:rt[n].bullet},children:e.icon&&jsxRuntime.jsx(V,{name:e.icon,size:rt[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 ch({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(Il,{node:d.node,position:d.position,selectedId:o,variant:n,size:a,showBullets:i}),r.length>0&&jsxRuntime.jsx(Al,{navigationStack:r,onNavigateBack:p,size:a}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("relative",l&&"overflow-auto h-full"),children:jsxRuntime.jsx(Ai,{mode:"wait",presenceKey:c,children:r.length===0?u(e,true):jsxRuntime.jsx(Ii,{direction:s,distance:"100%",duration:"normal",children:m(t)})})})]})}function Qu(e,t){for(let r of e){if(r.id===t)return r;if(r.children&&r.children.length>0){let o=Qu(r.children,t);if(o)return o}}return null}function Fl(e){if(e!==void 0)return typeof e=="number"?`${e}px`:e}function dh(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 ph({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?Qu(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(Il,{node:s.node,position:s.position,selectedId:o,variant:n,size:a,showBullets:i}),r.length>0&&jsxRuntime.jsx(Al,{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(Ai,{mode:"wait",presenceKey:m?.id||"empty",children:m?jsxRuntime.jsx(Ii,{direction:"left",duration:"fast",children:l(m)}):d?d():jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-text-secondary text-center",rt[a].node,"py-8"),children:"Select an item to view details"})})})]})}function mh({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:x,className:b,"aria-label":h="Hierarchy explorer"}){let[y,v]=Oe__namespace.useState(null),[S,N]=Oe__namespace.useState([]),[w,D]=Oe__namespace.useState("left"),[k,P]=Oe__namespace.useState({position:null,node:null}),{ref:I,width:M}=oa(),L=Oe__namespace.useMemo(()=>p==="split"?true:p==="single"?false:M>=g,[p,M,g]),R=n!==void 0?n:y;Oe__namespace.useEffect(()=>{dh(e,a);},[e,a]);let B=S.length>0?S[S.length-1]:null,Y=B?B.children||[]:e,H=Oe__namespace.useCallback(z=>{D("left"),N(G=>[...G,z]),o?.(z,[...S,z]);},[S,o]),W=Oe__namespace.useCallback(()=>{D("right"),N(z=>{let G=z.slice(0,-1);return o?.(G.length>0?G[G.length-1]:null,G),G});},[o]),Z=Oe__namespace.useCallback(z=>{n===void 0&&v(z.id),r?.(z,[...S,z]);},[n,S,r]),q=Oe__namespace.useCallback((z,G)=>{P({position:z,node:G});},[]),Q=Oe__namespace.useMemo(()=>({selectedId:R,selectNode:Z,navigateToNode:H,navigateBack:W,rootNodeId:a,stickyRootNode:i,variant:d,size:u,showBullets:m,onNodeSelect:r,onNavigate:o,navigationStack:S,setRootNodeSticky:q,useSplitLayout:L}),[R,Z,H,W,a,i,d,u,m,r,o,S,q,L]),T=Oe__namespace.useRef(null);Oe__namespace.useEffect(()=>{if(!a||!T.current||S.length>0||L)return;let z=T.current,G=setTimeout(()=>{let oe=z.querySelector(`[data-node-id="${a}"]`);oe&&oe.scrollIntoView({behavior:"auto",block:"center",inline:"nearest"});},100);return ()=>clearTimeout(G)},[a,S.length,L]);let E={height:Fl(s),minHeight:Fl(c),maxHeight:Fl(l)},O=s!==void 0||l!==void 0,A=B?B.id:"root",C=Oe__namespace.useCallback((z,G=false)=>jsxRuntime.jsx(nh,{items:z,showConnector:G,scrollContainerRef:G?T:null,showBullets:m,size:u,renderNode:t}),[m,u,t]),F=Oe__namespace.useCallback(z=>z?x?x(z,C):jsxRuntime.jsx($x,{node:z,renderNodeList:C}):null,[x,C]);return jsxRuntime.jsx(Xu.Provider,{value:Q,children:jsxRuntime.jsx("div",{ref:I,className:tailwindMerge.twMerge("select-none bg-background-surface rounded-lg border border-border-default relative",O&&"overflow-hidden",!O&&"h-full flex flex-col",L&&!O&&"flex-row",L&&O&&"flex",b),style:E,role:"tree","aria-label":h,children:L?jsxRuntime.jsx(ph,{data:e,currentItems:Y,navigationStack:S,selectedId:R,variant:d,size:u,showBullets:m,rootNodeStickyState:k,renderNodeList:C,renderDetailContent:F,renderEmptyState:f,onNavigateBack:W}):jsxRuntime.jsx(ch,{currentItems:Y,currentParent:B,navigationStack:S,selectedId:R,variant:d,size:u,showBullets:m,slideDirection:w,viewKey:A,hasHeight:O,rootNodeStickyState:k,renderNodeList:C,renderDetailContent:F,onNavigateBack:W})})})}function bR({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 fh=({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}),gh=({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)=>bR({...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]});gh.displayName="HoverCardContent";var xR=Object.assign(fh,{Root:fh,Content:gh});function yR(e,t){return Xr({value:e,formatter:t,emptyClassName:"text-text-secondary",emptyText:"\u2014"})}function vR(e,t="upIsGood"){if(e===0)return "text-text-secondary";let r=e>0;return t==="upIsGood"?r?"text-feedback-success":"text-feedback-error":r?"text-feedback-error":"text-feedback-success"}function CR({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,x=d(typeof p.y=="number"?p.y:0);return `${g===0?"M":"L"} ${f} ${x}`}).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"})})}function xh({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,renderValue:x,renderDelta:b,renderTrend:h}){let v={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],S=u?jsxRuntime.jsx(K,{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"}):x?x(t):yR(t,r),N=b?b(o):o!==void 0&&!u&&!m&&!p?jsxRuntime.jsxs("div",{className:jt(v.delta,vR(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(K,{className:"h-4 w-24"}):null,w=h?h(i):i&&i.length>0&&!u&&!p?jsxRuntime.jsx(CR,{points:i,ariaLabel:`${e} trend`,className:m?"opacity-30":""}):u&&i!==void 0?jsxRuntime.jsx(K,{className:"h-5 w-16"}):null;return jsxRuntime.jsxs("section",{className:tailwindMerge.twMerge("flex min-w-0",d==="horizontal"?`items-center ${v.gap}`:`flex-col ${v.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:jt(v.label,"text-text-secondary truncate"),children:u?jsxRuntime.jsx(K,{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:jt(v.value,p?"text-feedback-error":"text-text-primary"),"aria-label":`Value: ${S}`,children:S}),s&&!u&&!p&&jsxRuntime.jsx(tt,{variant:s.tone||"neutral",size:"sm",children:s.value})]}),(N||w)&&jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[N,w]})]})}var hh={xs:"gap-2",sm:"gap-3",md:"gap-4",lg:"gap-6",xl:"gap-8"},yh={start:"items-start",center:"items-center",stretch:"items-stretch"};function vh(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 $u({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?Oe__namespace.default.Children.map(e,p=>Oe__namespace.default.isValidElement(p)&&p.type&&typeof p.type!="string"&&"displayName"in p.type?Oe__namespace.default.cloneElement(p,{isLoading:true}):p):e,u=s?Oe__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",hh[r],"sm:grid sm:overflow-visible sm:pb-0 sm:-mb-0",vh({...typeof t=="object"?t:{base:t},base:void 0}),yh[o],n&&"sm:auto-rows-fr"):tailwindMerge.twMerge("grid",vh(t),hh[r],yh[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})]})}$u.displayName="KpiGroup";function wh({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:x=60,loadingIndicator:b,"aria-label":h,className:y="",style:v}){let[S,N]=Oe.useState(null),w=Oe.useRef(null),D=Oe.useRef(new Map),{scrollRef:k,loadMoreRef:P,virtualizer:I,virtualItems:M,isLoadingMore:L,computedLoadingState:R}=Ro({items:e,onLoadMore:p,hasMore:g,isLoading:a,loadingState:i,enableVirtualization:f,estimatedItemSize:x,overscan:5}),B=k??w,Y=Oe.useCallback((C,F)=>{o?.(C,F);},[o]),H=Oe.useCallback((C,F)=>{N(C),n?.(C,F);},[n]),W=Oe.useCallback((C,F)=>{let z=C?.id;return typeof z=="string"&&z?z:`item-${F}`},[]),Z=Oe.useCallback(C=>{if(!B.current||e.length===0)return;let F=document.activeElement,z=e.findIndex((te,le)=>{let me=W(te,le),re=D.current.get(me);return re&&(re===F||re.contains(F))}),G=z;switch(C.key){case "ArrowDown":C.preventDefault(),G=z===-1?0:Math.min(z+1,e.length-1);break;case "ArrowUp":C.preventDefault(),G=z===-1?0:Math.max(z-1,0);break;case "Home":C.preventDefault(),G=0;break;case "End":C.preventDefault(),G=e.length-1;break;default:return}let oe=W(e[G],G);D.current.get(oe)?.focus();},[e,W,B]),q=["flex flex-col","bg-background-surface","focus:outline-none focus:ring-2 focus:ring-border-focus focus:ring-offset-2"],Q={dense:"gap-0",relaxed:"gap-0"},T=m?"divide-y divide-border-muted":"",E=[...q,Q[u],T,y].filter(Boolean).join(" ");if(R==="loading"||a&&e.length===0){let C=c?jsxRuntime.jsx(jsxRuntime.Fragment,{children:Array.from({length:l}).map((F,z)=>jsxRuntime.jsx("div",{children:c()},`skeleton-${z}`))}):jsxRuntime.jsx(Qm,{count:l,className:"space-y-0",children:jsxRuntime.jsxs("div",{className:"flex items-center gap-3 px-4 py-3",children:[jsxRuntime.jsx(K,{width:16,height:16,variant:"circle"}),jsxRuntime.jsxs("div",{className:"flex-1 space-y-2",children:[jsxRuntime.jsx(K,{width:"75%",height:16}),jsxRuntime.jsx(K,{width:"50%",height:14})]}),jsxRuntime.jsx(K,{width:60,height:20})]})});return jsxRuntime.jsx("div",{ref:B,className:E,style:v,role:"listbox","aria-label":h,"aria-busy":"true","aria-live":"polite",children:C})}if(s)return jsxRuntime.jsx("div",{ref:B,className:E,style:v,role:"listbox","aria-label":h,"aria-live":"polite",children:jsxRuntime.jsx("div",{className:"p-4 text-center text-feedback-error-text",children:s})});if(e.length===0)return jsxRuntime.jsx("div",{ref:B,className:E,style:v,role:"listbox","aria-label":h,"aria-live":"polite",children:jsxRuntime.jsx("div",{className:"p-4 text-center text-text-secondary",children:d})});let A=I?M?.map(C=>({virtualItem:C,item:e[C.index],index:C.index}))||[]:e.map((C,F)=>({item:C,index:F,virtualItem:null}));return jsxRuntime.jsxs("div",{ref:B,className:E,style:{...v,...p&&{overflow:"auto",height:v?.height||"600px"}},role:"listbox","aria-label":h,"aria-live":"polite",onKeyDown:Z,tabIndex:0,children:[I&&jsxRuntime.jsxs("div",{style:{height:`${I.getTotalSize()}px`,width:"100%",position:"relative"},children:[A.map(({virtualItem:C,item:F,index:z})=>{if(!C)return null;let G=W(F,z),oe=r===G,ue=S===G,te={id:G,role:"option","aria-selected":oe,"aria-current":oe?"page":void 0,tabIndex:oe||r==null&&z===0?0:-1,onClick:le=>Y(le,F),onMouseEnter:le=>H(le,F),onMouseLeave:le=>H(null),onFocus:le=>H(le,F),onBlur:le=>H(null),ref:le=>{le?D.current.set(G,le):D.current.delete(G);}};return jsxRuntime.jsx("div",{"data-index":C.index,ref:I.measureElement,style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${C.start}px)`},children:t({item:F,index:z,isSelected:oe,isHovered:ue,rowProps:te})},G)}),p&&g&&jsxRuntime.jsx("div",{ref:P,style:{position:"absolute",top:`${I.getTotalSize()}px`,left:0,width:"100%",height:1,pointerEvents:"none"}}),L&&jsxRuntime.jsx("div",{style:{position:"absolute",top:`${I.getTotalSize()}px`,left:0,width:"100%"},children:b||jsxRuntime.jsx(Cr,{state:"loading-more"})})]}),!I&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[A.map(({item:C,index:F})=>{let z=W(C,F),G=r===z,oe=S===z,ue={id:z,role:"option","aria-selected":G,"aria-current":G?"page":void 0,tabIndex:G||r==null&&F===0?0:-1,onClick:te=>Y(te,C),onMouseEnter:te=>H(te,C),onMouseLeave:te=>H(null),onFocus:te=>H(te,C),onBlur:te=>H(null),ref:te=>{te?D.current.set(z,te):D.current.delete(z);}};return jsxRuntime.jsx("div",{children:t({item:C,index:F,isSelected:G,isHovered:oe,rowProps:ue})},z)}),p&&g&&jsxRuntime.jsx("div",{ref:P,style:{height:1}}),L&&(b||jsxRuntime.jsx(Cr,{state:"loading-more"}))]})]})}function kh({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:x,piiSubtitleType:b,piiEntity:h}){let y=()=>{!c&&u&&u(e);},v=()=>{!c&&m&&m(e);},S=()=>{!c&&p&&p(e);},w={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],D=["flex items-center w-full text-left transition-all duration-200 ease-in-out",w.container,"border-l-2 border-l-transparent","rounded-sm",Ye()],k=[s&&!i&&"bg-background-hover",i&&"bg-action-default/5 border-l-action-default shadow-sm",c&&"opacity-50 cursor-not-allowed",!c&&!i&&"hover:bg-background-hover"],P=[...D,...k,g].filter(Boolean).join(" "),I=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[n&&jsxRuntime.jsx("div",{className:"flex-shrink-0 flex items-center justify-center",children:n}),jsxRuntime.jsx("div",{className:"flex-1 min-w-0",children:jsxRuntime.jsx("div",{className:"flex items-start justify-between gap-2",children:jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsx("div",{className:`text-text-primary font-medium truncate ${w.title}`,title:typeof t=="string"?t:void 0,"data-pii-type":x&&h?x:void 0,"data-pii-entity":x&&h?h:void 0,children:t}),r&&jsxRuntime.jsx("div",{className:`text-text-secondary truncate ${w.subtitle} ${w.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 ${w.meta} ${w.metaSpacing}`,children:o})]})})}),a&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:a})]});return l?jsxRuntime.jsx("a",{href:l,className:P,style:f,onMouseEnter:v,onMouseLeave:S,"aria-selected":i,"aria-current":i?"page":void 0,tabIndex:c?-1:0,children:I}):jsxRuntime.jsx("button",{type:"button",className:P,style:f,onClick:y,onMouseEnter:v,onMouseLeave:S,disabled:c,"aria-selected":i,tabIndex:c?-1:0,children:I})}function Th({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 RR({children:e,...t}){return jsxRuntime.jsx(reactAriaComponents.ListBox,{...t,className:ke(t.className,"outline-0"),children:e})}function Ol(){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{}}var tp=[{type:"navigation",position:"bottom-right",showCompass:true,showGeolocate:true,showResetZoom:true}];function Ph(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 LR="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 Rh(e){return tailwindMerge.twMerge(LR,e)}var Mh="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJcAAACXCAYAAAAYn8l5AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABtCSURBVHgB7Z2Jkty0GoV7hlz2HcIeSPGkPCmELRC2sO8kN5+L03XmR7IlW3LbSZ+qrp7pdtuydPTvki9u3Lhx/7ASLi4uDvfv973cvXv3Dn/++efh2rVrx2vyAo899tjwThu8Hfo+1d5SLLkv2vXzzz8fnnvuucPff/99eFhw7bAi/vnnn8Pl5eWVz3IDOHewGKgnnnjiCoEgHH///vvvh8cff3z4nrbE63lb+LvFQHMe2jR2P7p2bNMe4f24Grk02LkOjCQTCfmNE3KKdLo5l1jCk08+efjtt98OP/300y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DTc2EZI7fBKeaQkH7gdmvMEgw11AkbR5N6amqujqnCAkYbl8gHs4wFShtxY9vm9oFqdwubeWeqKTznacNJ/CbCpqTjwKTE7jMs3QHaRzUkyvCvTdKQmzuGyfyqHEKJkOQJmBwazq0Nl88X77Dk09SoHR6YU2RxMUSDP8fw6bxvv7AnkLrBK/29eNS5r4U+x8EA6nBlsj0ETm9gjUO7p5DqPDOkOIptbQgNDeH/unQWDz/ZdA0zBOJ/f1sXQI6QyPqxtnMII3/NEh9kJGEBI+zqmyVwLXglLm+u3o6W6t8oiBZc1pwpF3Z/Tq1kX1oKDcglalt0Mq5G+Zzha8dbY+rvA7Erz2Jf1VQQm9t9zxzU0kLlDp2uX9IwZVZxyO2G19y9ieD165lH9Fosk8DI5sufSSLSZBQSF3maHFuDcVGsLHjqrgKZLUX5JqjGehdg3ULYhq7fAkpy5voaGxxtFgmygtNBJMSfalN4Ghq0DVGhNw+TbZUJBvl6KdlImJXLsphrcJtyi/rBx7bNiPF3drqCfiaI7S/0yAfzPgdNJKqQ+lwh1XfSmYClPT+R2b/03chQhh/fQH7Dav+EOO2oojEn8WdyuYzZbw6+e/WpX6eGYK0xR3BJhumCL/0lYS1EWShiFKXp4HOjIdwcvzNzjuNg4uobmh3lmZNljg+RHIokP7iJ+//S9/0JF4UWgALQSUifcPn+AvCxKcp8u7vR5XAiSC3WYDByQWZ1myzFUtOgbu577+f5ZPq/B5Pf+nAAAAAElFTkSuQmCC";function $o({position:e="top-right",className:t,style:r,children:o}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(Ph(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(Rh(),s&&"bg-action-brand hover:bg-action-brand-hover border-action-brand",n),m=tailwindMerge.twMerge(a,s&&"text-text-inverse");return jsxRuntime.jsx(ee,{...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 VR=e=>[{id:"streets",name:"Streets",description:"Standard street map with traffic data",preview:e?Eh:Ah},{id:"satellite",name:"Satellite",description:"Aerial imagery with street labels",preview:Lh},{id:"neutral",name:"Neutral",description:"Clean design with light/dark variants",preview:e?Mh:Dh}];function zR({type:e,color:t}){let r="inline-block",o=t?{backgroundColor:t}:{};switch(e){case "dot":return jsxRuntime.jsx("span",{className:`${r} h-3 w-3 rounded-full border border-border`,style:o});case "line":return jsxRuntime.jsx("span",{className:`${r} h-0.5 w-6 rounded-full`,style:o});case "polygon":return jsxRuntime.jsx("span",{className:`${r} h-3 w-4 rounded-sm border border-border`,style:o});case "pin":return jsxRuntime.jsx("span",{className:`${r} h-3 w-3 rounded-full rounded-bl-none border border-border transform rotate-45`,style:o});default:return null}}function Bh({position:e="bottom-left",className:t,style:r,currentMapType:o="streets",onMapTypeChange:n,layers:a=[],onLayerToggle:i,onClearAll:s}){let{isDarkTheme:c}=It(),{isMobile:l}=Jt(),[d,u]=Oe.useState(false),m=VR(c),p=x=>{n?.(x);},g=a.filter(x=>x.legend),f=jsxRuntime.jsxs("div",{className:l?"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:m.map(x=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>p(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))})]}),g.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:g.map(x=>jsxRuntime.jsx(vn,{isSelected:x.visible!==false,onChange:()=>i?.(x.id),children:jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[x.legend&&jsxRuntime.jsx(zR,{type:x.legend.swatch,color:x.legend.color}),jsxRuntime.jsx("span",{className:"text-sm text-text-primary",children:x.legend?.label})]})},x.id))})]})]});return jsxRuntime.jsx($o,{position:e,className:t,style:r,children:jsxRuntime.jsx("div",{className:"relative",children:l?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(hr,{icon:"Stack",ariaLabel:"Map layers and settings",onPress:()=>u(true)}),jsxRuntime.jsx(at,{isOpen:d,onClose:()=>u(false),title:"Map layers",animationVariant:"scale",children:f})]}):jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{children:[jsxRuntime.jsx(hr,{icon:"Stack",ariaLabel:"Map layers and settings"}),jsxRuntime.jsx(nt,{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:f})})]})})})}function zh({position:e="top-right",className:t,style:r,onToggle:o,isActive:n=false}){return jsxRuntime.jsx($o,{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 GR={sm:"gap-2",md:"gap-4",lg:"gap-6"};function Hl({position:e="top-right",className:t,style:r,children:o,orientation:n="vertical",spacing:a="md"}){return jsxRuntime.jsx($o,{position:e,style:r,children:jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex",n==="vertical"?"flex-col":"flex-row",GR[a],t),children:o})})}function Hh({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]=Oe.useState(false),m=Oe.useRef(true);Oe.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(y=>{if(!m.current)return;let{latitude:v,longitude:S}=y.coords;e.current&&e.current.flyTo({center:[S,v],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,x=!i&&!n&&a,b=!a&&n;return jsxRuntime.jsxs(Hl,{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(!x&&"rounded-t-none border-t-0",!x&&n&&"lg:rounded-t lg:border-t")})]})}function Kh({position:e="top-left",className:t,style:r,onSearch:o,placeholder:n="Search places...",showSearchInput:a=true}){let[i,s]=Oe.useState(false),[c,l]=Oe.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($o,{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(ee,{type:"submit",variant:"primary",size:"sm",className:"px-3 py-2",children:"Search"})]})})})]})})}var XR={navigation:"bottom-right",layers:"bottom-left",search:"top-left",list:"top-right",custom:"top-right"};function op(e){return e.position??XR[e.type]}function Yh(e,t,r){let o=op(e),n=e.id??`${e.type}-${t}`;switch(e.type){case "navigation":{let i=e.showResetZoom!==false&&r.showResetButton;return jsxRuntime.jsx(Hh,{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(Bh,{position:o,currentMapType:e.currentMapType,onMapTypeChange:e.onMapTypeChange,layers:e.layers??r.layers,onLayerToggle:e.onLayerToggle,onClearAll:e.onClearAll,style:e.style,className:e.className},n);case "search":return jsxRuntime.jsx(Kh,{position:o,onSearch:e.onSearch,placeholder:e.placeholder,showSearchInput:e.showSearchInput,style:e.style,className:e.className},n);case "list":return jsxRuntime.jsx(zh,{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 np(e,t){let r=e.reduce((n,a,i)=>{let s=op(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(Yh(a[0].control,a[0].index,t));continue}let i={position:"static",top:"auto",right:"auto",bottom:"auto",left:"auto"};o.push(jsxRuntime.jsx(Hl,{position:n,spacing:"sm",children:a.map(({control:s,index:c})=>{let l={...s,style:{...s.style,...i}};return Yh(l,c,t)})},`group-${n}`));}return o}var ap={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 ip(e){return e.kind==="vector"}function sp(e){return e.kind==="geojson"}function lp(e){return e.kind==="customPins"}function cp(e){return e.kind==="raster"}function zi(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(qR,{spec:o,mapType:t},o.id);case "geojson":return jsxRuntime.jsx(ZR,{spec:o,mapType:t},o.id);case "customPins":return jsxRuntime.jsx(_R,{spec:o,mapType:t},o.id);case "raster":return jsxRuntime.jsx($R,{spec:o},o.id);case "clusteredVector":return jsxRuntime.jsx(QR,{spec:o,mapType:t},o.id);default:return console.warn("[Layers] Unknown layer kind:",o.kind),null}})})}function qR({spec:e,mapType:t}){let{colorMode:r}=It(),o=Oe.useMemo(()=>qh(e.style,e.renderAs,r,t),[e.style,e.renderAs,r,t]),n=Oe.useMemo(()=>({visibility:e.visible===false?"none":"visible"}),[e.visible]),a={id:e.id,type:jh(e.renderAs),"source-layer":e.sourceLayer,paint:o,layout:n};e.filter!==void 0&&(a.filter=e.filter),e.minZoom!==void 0&&(a.minzoom=e.minZoom),e.maxZoom!==void 0&&(a.maxzoom=e.maxZoom);let i=e.tileset.startsWith("mapbox://"),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(cM.Source,{...s,children:jsxRuntime.jsx(cM.Layer,{...a})},e.tileset)}function QR({spec:e}){let{colorMode:t,isDarkTheme:r}=It(),o=1.25,n=9,a=3,i=n*1.4,s=.2,c=[0,5],l=Oe.useMemo(()=>r?{clusters:e.clusterStyle?.color?Lr(e.clusterStyle.color):"#000000",shadow:e.clusterStyle?.shadowColor||"rgba(0, 0, 0, 0.5)",point:{fill:e.pointStyle?.color?Lr(e.pointStyle.color):"#000000",stroke:e.pointStyle?.borderColor||"#ffffff",shadow:"rgba(0, 0, 0, 0.5)"},text:{onCluster:"#ffffff"},selected:{fill:e.selectedStyle?.color?Lr(e.selectedStyle.color):"#444ae1"}}:{clusters:e.clusterStyle?.color?Lr(e.clusterStyle.color):"#000000",shadow:e.clusterStyle?.shadowColor||"rgba(0, 0, 0, 0.3)",point:{fill:e.pointStyle?.color?Lr(e.pointStyle.color):"#000000",stroke:e.pointStyle?.borderColor||"#ffffff",shadow:"rgba(0, 0, 0, 0.3)"},text:{onCluster:"#ffffff"},selected:{fill:e.selectedStyle?.color?Lr(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=Oe.useMemo(()=>g?e.clusterStyle.sizes.map(({threshold:S,radius:N})=>({threshold:S,radius:N,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]),x=S=>g?["step",["get","point_count"],S[0].radius,...S.flatMap(({threshold:N,radius:w})=>[N,w])]:["interpolate",["linear"],["ln",["max",2,["get","point_count"]]],m,d,p,u],b=S=>g?["step",["get","point_count"],S[0].radius*o,...S.flatMap(({threshold:N,radius:w})=>[N,w*o])]:["interpolate",["linear"],["ln",["max",2,["get","point_count"]]],m,d*o,p,u*o],h=e.tileset.startsWith("mapbox://"),y={id:`${e.id}-source`,type:"vector"};h?y.url=e.tileset:(y.tiles=[e.tileset],y.minzoom=0,y.maxzoom=22);let v=Oe.useMemo(()=>{let S=e.pointStyle?.radius??n,N=e.pointStyle?.borderWidth??a,w=e.selectedStyle?.radius??n*1.5,D=k=>{let P={...k};return e.minZoom!==void 0&&(P.minzoom=e.minZoom),e.maxZoom!==void 0&&(P.maxzoom=e.maxZoom),P};return [D({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]}}),D({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}}),D({id:`${e.id}-clusters`,type:"circle","source-layer":e.sourceLayer,filter:["==",["get","cluster"],true],paint:{"circle-radius":x(f),"circle-color":["step",["get","point_count"],f[0].color,...f.flatMap(({threshold:k,color:P})=>[k,P])]}}),D({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}}),D({id:`${e.id}-points`,type:"circle","source-layer":e.sourceLayer,filter:["all",["!=",["get","cluster"],true],["!=",["get","id"],e.selectedId||"selected"]],paint:{"circle-radius":S,"circle-color":l.point.fill,"circle-stroke-width":N,"circle-stroke-color":l.point.stroke}}),D({id:`${e.id}-selected-point`,type:"circle","source-layer":e.sourceLayer,filter:["==",["get","id"],e.selectedId||"selected"],paint:{"circle-radius":w,"circle-color":l.selected.fill,"circle-stroke-width":N,"circle-stroke-color":"#ffffff"}}),...e.pointStyle?.icon?[D({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":Jh(S,e.pointStyle.icon.size),"icon-allow-overlap":true,"icon-ignore-placement":true}}),D({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":Jh(w,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(cM.Source,{...y,children:v.map(S=>jsxRuntime.jsx(cM.Layer,{...S},S.id))},e.tileset)}function ZR({spec:e,mapType:t}){let{colorMode:r}=It(),o=Oe.useMemo(()=>typeof e.data=="string"?null:e.data,[e.data]),n=Oe.useMemo(()=>qh(e.style,e.renderAs,r,t,o),[e.style,e.renderAs,r,t,o]),a=Oe.useMemo(()=>({visibility:e.visible===false?"none":"visible"}),[e.visible]),i=Oe.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:jh(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(cM.Source,{...s,children:jsxRuntime.jsx(cM.Layer,{...c})})}function _R({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(cM.Marker,{longitude:a,latitude:i,anchor:"bottom",children:jsxRuntime.jsx(r,{...s})},`${e.id}-${n}`)})})}function $R({spec:e}){let t=Oe.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(cM.Source,{...r,children:jsxRuntime.jsx(cM.Layer,{...o})},e.tileset)}var Kr="#666";function Jh(e,t){let r=t??64;return e*2/r}function jh(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 qh(e,t,r,o,n){if(!e)return {};let a={};if(e.color){let i=Lr(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"]=Gl(e.width)),e.radius&&t==="circle"&&(a["circle-radius"]=Gl(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?Lr(e.borderColor,r,n):Lr(e.color||"#000",r,n)),t==="circle"&&e.borderWidth){a["circle-stroke-width"]=e.borderWidth;let i=e.borderColor?Lr(e.borderColor,r,n):Nt(`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]:Gl(e.weight)),e.intensity!==void 0&&(a["heatmap-intensity"]=e.intensity),e.radius!==void 0&&(a["heatmap-radius"]=Gl(e.radius)),e.opacity!==void 0&&(a["heatmap-opacity"]=e.opacity)),a}function eM(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(Lr(s));let a=e.fallback?Lr(e.fallback):Kr;return n.push(a),n}function tM(e,t){let r=Bm(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=td(r),n=["match",["get",e]];for(let[a,i]of Object.entries(o))n.push(a),n.push(i);return n.push(Kr),n}function rM(e,t="viridis",r,o){let n=rd(r,e),a;if(o&&o!=="auto")a=o;else {if(a=od(n),n.length===0)return console.warn(`[Layers] No numeric values found for property "${e}"`),Kr;console.log(`[Layers] Auto-calculated sequential scale for "${e}": ${a.min} to ${a.max}`);}let i=nd(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 oM(e,t="redYellowBlue",r,o,n){let a=rd(r,e),i=Vm(a,o),s;if(n&&n!=="auto")s=n;else {if(s=od(a),a.length===0)return console.warn(`[Layers] No numeric values found for property "${e}"`),Kr;console.log(`[Layers] Auto-calculated diverging scale for "${e}": ${s.min} \u2190 ${i} \u2192 ${s.max}`);}let c=ad(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 Xh(e){if(!(e.startsWith("var(")||e.startsWith("--")||e.startsWith("color-")))return e;let r=Nt(e,Kr);return r.includes("var(")?Kr:r}function Lr(e,t,r){if(typeof e=="string")return Xh(e);if("token"in e)return Nt(e.token,Kr);if("hex"in e)return Xh(e.hex);if("by"in e){if("palette"in e){if(e.palette==="categorical")return r?tM(e.by,r):(console.warn("[Layers] Categorical auto-assignment requires GeoJSON data (not URL-based data)"),Kr);if(e.palette==="sequential")return r?rM(e.by,e.scheme,r,e.scale):(console.warn("[Layers] Sequential palette requires GeoJSON data (not URL-based data)"),Kr);if(e.palette==="diverging")return r?oM(e.by,e.scheme,r,e.center,e.scale):(console.warn("[Layers] Diverging palette requires GeoJSON data (not URL-based data)"),Kr)}if("mapping"in e)return eM(e)}return Kr}function Gl(e){return typeof e=="number"?e:"byZoom"in e?["interpolate",["linear"],["zoom"],...e.byZoom.flatMap(([t,r])=>[t,r])]:e}var Yl=null;function Jl(){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():(Yl||(Yl=import('mapbox-gl/dist/mapbox-gl.css').then(()=>{}).catch(t=>{console.error("Failed to load Mapbox CSS",t),Yl=null;})),Yl)}function Xl(){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:`
42
41
  linear-gradient(rgba(0,0,0,0.15) 1px, transparent 1px),
43
42
  linear-gradient(90deg, rgba(0,0,0,0.15) 1px, transparent 1px)
44
- `,backgroundSize:"30px 30px"}})})})}function Xd({style:e,className:t,message:r="Map requires Mapbox token"}){return jsxRuntime.jsx("div",{style:e,className:`flex items-center justify-center bg-background-muted text-text-secondary ${t||""}`,children:jsxRuntime.jsxs("div",{className:"text-center",children:[jsxRuntime.jsx(U,{name:"MapPin",size:48,className:"mx-auto mb-2 opacity-50"}),jsxRuntime.jsx("p",{className:"text-sm",children:r})]})})}var KS={streets:"streets",satellite:"satellite",neutral:"neutral"},Zd="streets";function tl(e,t){switch(e){case "streets":return t?"mapbox://styles/victor-texture/clzwxtrng005s01p93rtr04op":"mapbox://styles/mapbox/streets-v12";case "satellite":return "mapbox://styles/mapbox/satellite-streets-v12";case "neutral":return t?"mapbox://styles/mapbox/dark-v11":"mapbox://styles/mapbox/light-v11";default:return t?"mapbox://styles/victor-texture/clzwxtrng005s01p93rtr04op":"mapbox://styles/mapbox/streets-v12"}}function jS({longitude:e,latitude:t,showPulse:r=true,accuracy:o}){return jsxRuntime.jsx(FA.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 nl=He__namespace.default.forwardRef(({initialViewState:e,viewState:t,onViewStateChange:r,scrollEnabled:o=true,className:n,previewMode:a=false,previewModeCta:i,onPreviewModePress:s,mapType:c=Zd,layers:l=[],mapboxAccessToken:d,transformRequest:u,isLoading:p=false,onLoad:m,controls:g="default",showUserLocation:f=true,onUserLocationChange:x,children:b,additionalInteractiveLayerIds:h=[],onMapClick:y,showMarker:v=false,markerLocation:S},w)=>{let k=d??Ud();if(!k)return jsxRuntime.jsx("div",{className:`relative ${n||""}`,style:{width:"100%",height:"100%"},children:jsxRuntime.jsx(Xd,{className:"w-full h-full",message:"Map unavailable"})});let{isDarkTheme:L}=Ht(),R=He.useRef(null),D=He.useRef(null),[V,A]=He.useState(false),[T,N]=He.useState(false);He.useEffect(()=>{qd();},[]);let[B,W]=He.useState(false),O=He.useRef(0),[z,j]=He.useState(null),[K,$]=He.useState(null),P=He.useRef(null),M=He.useRef(null),[G,I]=Pl("interactiveMap.trackingLocation",false),[C,H]=He.useState(false);He.useEffect(()=>{if(!navigator.geolocation){H(true);return}if(G){if(!navigator.permissions?.query){H(true);return}navigator.permissions.query({name:"geolocation"}).then(Z=>{Z.state!=="granted"&&I(false),H(true);}).catch(()=>{H(true);});}else H(true);},[]),He.useEffect(()=>{let Z=setTimeout(()=>{V||N(true);},200);return ()=>clearTimeout(Z)},[V]),He.useEffect(()=>{M.current=null;},[c,L]),He.useEffect(()=>{if(V)return;let Z=setInterval(()=>{if(R.current?.loaded()){A(true),N(false);let q=R.current.getMap?.();q&&M.current!==q&&(M.current=q,m?.()),clearInterval(Z);}},200);return ()=>clearInterval(Z)},[V,m]),He.useEffect(()=>{if(C){if(!G||a){P.current!==null&&(navigator.geolocation.clearWatch(P.current),P.current=null);return}if(!navigator.geolocation){console.warn("Geolocation is not supported by this browser.");return}return P.current=navigator.geolocation.watchPosition(Z=>{let q={latitude:Z.coords.latitude,longitude:Z.coords.longitude,accuracy:Z.coords.accuracy};$(q),x?.(q);},Z=>{console.warn("Geolocation error:",Z.message),$(null),x?.(null);},{enableHighAccuracy:true,maximumAge:3e4,timeout:3e4}),()=>{P.current!==null&&(navigator.geolocation.clearWatch(P.current),P.current=null);}}},[G,a,x,C]);let Y=He.useCallback(()=>{A(true),N(false);let Z=R.current?.getMap?.();Z&&M.current!==Z&&(M.current=Z,m?.());},[m]),F=He.useCallback(()=>{R.current&&e&&(W(false),O.current=0,R.current.flyTo({center:[e.longitude||0,e.latitude||0],zoom:e.zoom||0,bearing:e.bearing||0,pitch:e.pitch||0,duration:1e3}));},[e]),_=He.useMemo(()=>g===false||g===null?[]:g==="default"||g===void 0?og:g,[g]),te=He.useCallback(()=>{if(!navigator.geolocation){console.warn("Geolocation is not supported by this browser.");return}I(true),navigator.geolocation.getCurrentPosition(Z=>{let{latitude:q,longitude:pe}=Z.coords;R.current&&R.current.jumpTo({center:[pe,q],zoom:15});},Z=>{console.warn("Geolocation error:",Z.message),Z.code===Z.PERMISSION_DENIED&&I(false);},{enableHighAccuracy:true,timeout:1e4,maximumAge:0});},[]),E=He.useMemo(()=>{if(a)return null;let Z=_.map(q=>q.type==="navigation"?{...q,onResetZoom:q.onResetZoom||F,onGeolocateClick:q.onGeolocateClick||te}:q);return ig(Z,{mapRef:R,layers:l,showResetButton:B})},[_,R,a,l,F,B,te]),ae=He.useMemo(()=>{let Z=[];return l.filter(q=>q.events?.onClick||q.events?.onMouseEnter||q.events?.onMouseLeave||q.tooltip).forEach(q=>{q.kind==="clusteredVector"?(Z.push(`${q.id}-clusters`),Z.push(`${q.id}-points`),Z.push(`${q.id}-selected-point`)):Z.push(q.id);}),[...Z,...h]},[l,h]),oe=He.useMemo(()=>{let Z=new Map;return l.forEach(q=>{q.events&&(Z.set(q.id,q.events),q.kind==="clusteredVector"&&(Z.set(`${q.id}-clusters`,q.events),Z.set(`${q.id}-points`,q.events),Z.set(`${q.id}-selected-point`,q.events)));}),Z},[l]),ee=He.useMemo(()=>{let Z=new Map;return l.forEach(q=>{q.tooltip&&(Z.set(q.id,q.tooltip),q.kind==="clusteredVector"&&(Z.set(`${q.id}-clusters`,q.tooltip),Z.set(`${q.id}-points`,q.tooltip),Z.set(`${q.id}-selected-point`,q.tooltip)));}),Z},[l]),se=He.useMemo(()=>{let Z=new Map;return l.forEach(q=>{q.kind==="clusteredVector"&&(Z.set(q.id,q),Z.set(`${q.id}-clusters`,q),Z.set(`${q.id}-points`,q),Z.set(`${q.id}-selected-point`,q));}),Z},[l]),ue=He.useMemo(()=>{if(!v)return null;let Z=S?.longitude??t?.longitude??e?.longitude,q=S?.latitude??t?.latitude??e?.latitude;return Z===void 0||q===void 0?null:{longitude:Z,latitude:q}},[v,S,t,e]),xe=He.useCallback(Z=>{if(a)return;let q=Z.features?.[0];if(!q||!q.layer)return;let pe=q.layer.id,de=oe.get(pe),ne=ee.get(pe),Se;q.geometry.type==="Point"?Se=q.geometry.coordinates:Se=[Z.lngLat.lng,Z.lngLat.lat];let rt={id:q.id??q.properties?.id,lngLat:Se,properties:q.properties||{},layerId:pe},$r=se.get(pe),Ao=q.properties?.cluster===true;if($r&&Ao){let Dr=R.current;if(Dr){let Ga=Dr.getZoom(),gu=Math.min(Ga+3,18);Dr.flyTo({center:Se,zoom:gu,duration:1e3});}return}if(de?.onClick&&de.onClick(rt),ne&&ne.trigger==="click"){let Dr;$r&&"cluster"in ne?ne.point&&(Dr=ne.point(rt)):"content"in ne&&(Dr=typeof ne.content=="function"?ne.content(rt):ne.content),Dr&&j({feature:rt,content:Dr,bare:ne.bare});}y&&y(Z);},[oe,ee,a,y,se,R,ae]),Ve=He.useCallback(Z=>{let q=Z.features?.[0];if(!q||!q.layer)return null;let pe=q.layer.id,de=ee.get(pe);if(!de||de.trigger!=="hover"&&de.trigger!==void 0)return null;let ne;q.geometry.type==="Point"?ne=q.geometry.coordinates:ne=[Z.lngLat.lng,Z.lngLat.lat];let Se={id:q.id??q.properties?.id,lngLat:ne,properties:q.properties||{},layerId:pe},rt;if(se.get(pe)&&"cluster"in de){let Ao=q.properties?.cluster===true;if(Ao&&de.cluster){let Dr=q.properties?.point_count||0;rt=de.cluster(Dr,Se);}else !Ao&&de.point?rt=de.point(Se):rt=Ao?`${q.properties?.point_count||0} items`:null;}else "content"in de&&(rt=typeof de.content=="function"?de.content(Se):de.content);return rt?{feature:Se,content:rt,bare:de.bare}:null},[ee,se]),tt=He.useCallback(Z=>{if(a)return;let q=Z.features?.[0];if(!q||!q.layer)return;let pe=q.layer.id,de=oe.get(pe);if(de?.onMouseEnter){let Se;q.geometry.type==="Point"?Se=q.geometry.coordinates:Se=[Z.lngLat.lng,Z.lngLat.lat];let rt={id:q.id??q.properties?.id,lngLat:Se,properties:q.properties||{},layerId:pe};de.onMouseEnter(rt);}let ne=Ve(Z);ne&&j(ne),R.current&&(R.current.getCanvas().style.cursor="pointer");},[oe,a,R,Ve]),Xt=He.useCallback(Z=>{if(a)return;let q=Z.features?.[0];if(!q||!q.layer)return;let pe=Ve(Z);if(pe){j(de=>de&&de.feature.layerId===pe.feature.layerId&&de.feature.id===pe.feature.id?de:pe);return}j(de=>{if(!de)return de;let ne=ee.get(de.feature.layerId);return ne&&(ne.trigger==="hover"||ne.trigger===void 0)?null:de});},[a,Ve,ee]),mr=He.useCallback(()=>{if(!a){if(oe.forEach(Z=>{Z.onMouseLeave?.();}),z){let Z=z.feature.layerId,q=l.find(pe=>pe.id===Z);if(!q){let pe=Z.replace(/-(?:clusters|points|selected-point|cluster-shadows|points-shadow|cluster-count)$/,"");q=l.find(de=>de.id===pe);}q?.tooltip&&(q.tooltip.trigger||"hover")==="hover"&&j(null);}R.current&&(R.current.getCanvas().style.cursor="");}},[oe,a,R,z,l]),Q=He.useCallback((Z,q)=>{for(let pe of l)if(pe.tooltip&&!(q&&pe.id!==q)){if(pe.kind==="geojson"){if(typeof pe.data=="string")continue;let de=pe.data,Se=(de.type==="FeatureCollection"?de.features:[de]).find(rt=>rt.id===Z);if(Se&&Se.geometry.type==="Point")return {id:Se.id,lngLat:Se.geometry.coordinates,properties:Se.properties||{},layerId:pe.id}}else if(pe.kind==="customPins"){let de=pe.data.find(ne=>ne.id===Z||ne._id===Z||ne.key===Z);if(de)return {id:Z,lngLat:pe.getPosition(de),properties:de,layerId:pe.id}}}return null},[l]);He.useImperativeHandle(w,()=>({showTooltip:(Z,q)=>{let pe=Q(Z,q);if(!pe)return;let de=l.find(ne=>ne.id===pe.layerId);if(de?.tooltip&&"content"in de.tooltip){let ne=typeof de.tooltip.content=="function"?de.tooltip.content(pe):de.tooltip.content;j({feature:pe,content:ne,bare:de.tooltip.bare});}},hideTooltip:()=>{j(null);},getMap:()=>R.current,markMapAsMoved:()=>{W(true);}}),[Q,l]);let ce=(Z,q)=>u?u(Z,q):{url:Z},re=p||T;return jsxRuntime.jsx("div",{ref:D,className:tailwindMerge.twMerge("relative flex h-full w-full overflow-hidden",a&&"cursor-pointer",n),onClick:a?s:void 0,children:jsxRuntime.jsxs("div",{style:{flex:1},children:[jsxRuntime.jsxs(FA__default.default,{ref:R,initialViewState:e,...t&&t,style:{width:"100%",height:"100%"},mapStyle:tl(c,L),styleDiffing:false,mapboxAccessToken:k,transformRequest:ce,onLoad:Y,onMove:a?void 0:Z=>{if(Z.originalEvent&&V){let q=Z.originalEvent.type,pe=Math.abs((Z.viewState.latitude??0)-(e?.latitude??0)),de=Math.abs((Z.viewState.longitude??0)-(e?.longitude??0)),ne=Math.abs((Z.viewState.zoom??0)-(e?.zoom??0));e&&(pe>1e-4||de>1e-4||ne>.1)&&(q==="mousemove"||q==="touchmove"||q==="pointermove"?W(true):(q==="wheel"||q==="mousewheel")&&(O.current+=1,O.current>=3&&W(true)));}r?.(Z.viewState);},onClick:a?void 0:xe,onMouseMove:a?void 0:Xt,onMouseEnter:a?void 0:tt,onMouseLeave:a?void 0:mr,interactiveLayerIds:a?[]:ae,scrollZoom:a?false:o,dragPan:!a,dragRotate:!a,doubleClickZoom:!a,interactive:!a,attributionControl:false,children:[jsxRuntime.jsx(FA.AttributionControl,{position:"top-left"}),E,el(l,c),b,ue&&jsxRuntime.jsx(FA.Marker,{longitude:ue.longitude,latitude:ue.latitude,anchor:"bottom",children:jsxRuntime.jsx(U,{name:"MapPin",size:36,className:"text-map-marker-default",weight:"fill"})}),f&&K&&jsxRuntime.jsx(jS,{longitude:K.longitude,latitude:K.latitude,accuracy:K.accuracy}),z&&jsxRuntime.jsx(FA.Popup,{longitude:z.feature.lngLat[0],latitude:z.feature.lngLat[1],offset:15,closeButton:false,closeOnClick:false,className:z.bare?"map-tooltip map-tooltip-bare":"map-tooltip",maxWidth:"none",children:z.content})]},`map-${c}-${L}`),re&&jsxRuntime.jsx(Jd,{}),a&&i&&jsxRuntime.jsx("div",{className:"absolute bottom-8 right-8 z-10",children:i})]})})});nl.displayName="InteractiveMap";async function qS(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(He.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(p){d(p instanceof Error?p:new Error(`Failed to addImage "${t}": ${String(p)}`));}},u.onerror=p=>{d(p instanceof Error?p: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",layers:a=[],mapboxAccessToken:i,showMarker:s=true,showAttribution:c=false,onLoad:l,className:d,showExpandToggle:u=false,expandedMapTitle:p="Explore map",expandedMapAddressLabel:m}){let g=i??Ud(),{isDarkTheme:f}=Ht(),[x,b]=He.useState(false),[h,y]=He.useState(false),[v,S]=He.useState(false),w=He.useRef(null),k=He.useRef(null),L=He.useCallback(()=>S(true),[]),R=He.useCallback(()=>S(false),[]);He.useEffect(()=>{qd();},[]);let D={width:typeof e=="number"?`${e}px`:e,height:typeof t=="number"?`${t}px`:t};He.useEffect(()=>{let T=setTimeout(()=>{x||y(true);},200);return ()=>clearTimeout(T)},[x]);let V=He.useCallback(()=>{b(true),y(false),l?.();},[l]);He.useEffect(()=>{if(!k.current)return;let T=new ResizeObserver(()=>{w.current&&w.current.resize();});return T.observe(k.current),()=>{T.disconnect();}},[]);let A=o||h;return g?jsxRuntime.jsxs("div",{ref:k,style:D,className:`relative ${d||""}`,children:[jsxRuntime.jsxs(FA__default.default,{ref:w,mapboxAccessToken:g,initialViewState:r,style:{width:"100%",height:"100%"},mapStyle:tl(n,f),onLoad:V,scrollZoom:false,dragPan:false,dragRotate:false,doubleClickZoom:false,touchZoomRotate:false,interactive:false,attributionControl:false,children:[c&&jsxRuntime.jsx(FA.AttributionControl,{position:"top-left"}),el(a,n),s&&r.longitude!==void 0&&r.latitude!==void 0&&jsxRuntime.jsx(FA.Marker,{longitude:r.longitude,latitude:r.latitude,anchor:"bottom",children:jsxRuntime.jsx(U,{name:"MapPin",size:36,className:"text-map-marker-default",weight:"fill"})})]}),u&&jsxRuntime.jsx("div",{className:"absolute top-4 right-4 z-20",children:jsxRuntime.jsx(Rr,{icon:"ArrowsOutSimple",ariaLabel:"Expand map to fullscreen",onPress:L})}),u&&jsxRuntime.jsx(Ar,{isOpen:v,onClose:R,title:p,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(nl,{initialViewState:r,mapType:n,mapboxAccessToken:g,showMarker:s,markerLocation:r.longitude!==void 0&&r.latitude!==void 0?{latitude:r.latitude,longitude:r.longitude}:void 0,layers:a})}),m&&jsxRuntime.jsx("p",{className:"text-sm text-text-secondary px-4 py-3 flex-shrink-0",children:m})]})}),A&&jsxRuntime.jsx(Jd,{})]}):jsxRuntime.jsx(Xd,{style:D,className:d})}var $A={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 XS({label:e,size:t="md",variant:r="default",showWarningIndicator:o=true,warningThreshold:n=80,className:a,...i}){let s=$A[t];return jsxRuntime.jsx(reactAriaComponents.Meter,{...i,className:Ne(a,"flex flex-col gap-1"),children:({percentage:c,valueText:l})=>{let d=o&&c>=n,u=r==="default"?qA(c):r;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{className:"flex justify-between gap-2",children:[e&&jsxRuntime.jsx(ze,{children:e}),jsxRuntime.jsxs("span",{className:tailwindMerge.twMerge(s.text,d?"text-feedback-error-text":"text-text-secondary"),children:[d&&jsxRuntime.jsx(lucideReact.AlertTriangle,{"aria-label":"Warning: High value",className:tailwindMerge.twMerge("inline-block align-text-bottom mr-1",s.icon)}),l]})]}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("relative rounded-full bg-background-muted","ring-1 ring-inset ring-border-muted",s.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]",JA(u)),style:{width:`${Math.min(100,Math.max(0,c))}%`},role:"presentation","aria-hidden":"true"})})]})}})}function qA(e){return e<50?"success":e<70?"info":e<90?"warning":"error"}function JA(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";default:return "bg-action-brand"}}var _d="bg-background-surface border-l-[3px] border-y border-r border-border-default text-text-primary",eI={success:{container:_d,iconName:"CheckCircle",iconColor:"text-feedback-success-text",borderColor:"var(--color-feedback-success-border)"},error:{container:_d,iconName:"XCircle",iconColor:"text-feedback-error-text",borderColor:"var(--color-feedback-error-border)"},warning:{container:_d,iconName:"Warning",iconColor:"text-feedback-warning-text",borderColor:"var(--color-feedback-warning-border)"},info:{container:_d,iconName:"Info",iconColor:"text-feedback-info-text",borderColor:"var(--color-feedback-info-border)"}};function tu({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}=eI[r];return He.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(U,{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(U,{name:"X",size:16})})]})}var sI={"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 ru({notices:e,onDismiss:t,position:r="bottom-center",className:o}){let[n,a]=He.useState(false);if(He.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",sI[r],o),"aria-live":"polite","aria-atomic":"true",children:jsxRuntime.jsx(framerMotion.AnimatePresence,{mode:"sync",children:e.map(s=>jsxRuntime.jsx(tu,{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 ZS=He.createContext(void 0);function QS({children:e,position:t="bottom-center",maxNotices:r=5,defaultDuration:o=5e3,defaultDismissible:n=true}){let[a,i]=He.useState([]),s=He.useCallback((u,p)=>{let m=`notice-${Date.now()}-${Math.random()}`,g={id:m,message:u,variant:p?.variant||"info",duration:p?.duration??o,dismissible:p?.dismissible??n};return i(f=>{let x=[...f,g];return x.length>r?x.slice(-r):x}),m},[r,o,n]),c=He.useCallback(u=>{i(p=>p.filter(m=>m.id!==u));},[]),l=He.useCallback(()=>{i([]);},[]),d={notices:a,addNotice:s,removeNotice:c,clearNotices:l};return jsxRuntime.jsxs(ZS.Provider,{value:d,children:[e,jsxRuntime.jsx(ru,{notices:a,onDismiss:c,position:t})]})}function _S(){let e=He.useContext(ZS);if(!e)throw new Error("useNoticeContext must be used within a NoticeProvider");return e}function e1(){let{addNotice:e,removeNotice:t,clearNotices:r}=_S(),o=He.useCallback((c,l)=>e(c,l),[e]),n=He.useCallback((c,l)=>e(c,{...l,variant:"success"}),[e]),a=He.useCallback((c,l)=>e(c,{...l,variant:"error"}),[e]),i=He.useCallback((c,l)=>e(c,{...l,variant:"warning"}),[e]),s=He.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 fI={plain:"",contained:"bg-background-surface rounded-lg border border-border-default p-6",bordered:"border-y border-border-default py-6"},gI={none:"",sm:"my-4",md:"my-6 md:my-8",lg:"my-8 md:my-12"};function Wi({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=He__namespace.default.useId(),u=e?`${e}-heading`:d,p=t||r||o;return jsxRuntime.jsxs("section",{id:e,className:tailwindMerge.twMerge(gI[a],fI[n],c),"aria-labelledby":t?u:void 0,children:[p&&jsxRuntime.jsxs("header",{id:u,className:tailwindMerge.twMerge("flex flex-col sm:flex-row sm:items-start sm:justify-between gap-4",i&&"border-b border-border-default pb-4 mb-6",!i&&l&&"mb-6"),children:[jsxRuntime.jsxs("div",{className:"min-w-0 flex-1",children:[t&&jsxRuntime.jsx(rr,{tag:s,size:"md",className:"text-text-primary",children:t}),r&&jsxRuntime.jsx("p",{className:"mt-2 text-base text-text-secondary",children:r})]}),o&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:o})]}),l&&jsxRuntime.jsx("div",{className:"",children:l})]})}Wi.displayName="Section";function iu({sections:e,activeSection:t,onSectionChange:r,orientation:o="responsive",className:n,scrollBehavior:a="smooth",stickyTop:i="1.5rem",sectionIdPrefix:s="section-",filterSection:c,scrollContainerId:l}){let d=He__namespace.useRef(null),u=He__namespace.useRef(null),[p,m]=He__namespace.useState(e[0]?.id||null),g=t??p,f=He__namespace.useCallback(()=>l?document.getElementById(l):null,[l]);He__namespace.useEffect(()=>{let v=window.location.hash;if(!v)return;let S=v.slice(1),w=e.find(k=>`${s}${k.id}`===S);w&&requestAnimationFrame(()=>{let k=document.getElementById(S);if(!k)return;let L=f();if(L){let R=L.getBoundingClientRect(),D=k.getBoundingClientRect(),V=L.scrollTop+(D.top-R.top);L.scrollTo({top:Math.max(0,V),behavior:"instant"});}else k.scrollIntoView({behavior:"instant",block:"start"});r?r(w.id):m(w.id);});},[]),He__namespace.useEffect(()=>{if(t!==void 0&&r)return;let v=L=>{if(!L)return false;let R=window.getComputedStyle(L);return R.display!=="none"&&R.visibility!=="hidden"&&R.opacity!=="0"},S=()=>{let L=v(d.current),R=v(u.current);if(!L&&!R)return null;let D=f(),V=new IntersectionObserver(A=>{A.forEach(T=>{if(T.isIntersecting){let N=T.target.id.replace(s,"");r?r(N):m(N);}});},{root:D??void 0,rootMargin:"-20% 0px -70% 0px",threshold:0});return e.forEach(A=>{let T=document.getElementById(`${s}${A.id}`);T&&V.observe(T);}),V},w=S(),k=()=>{w&&w.disconnect(),w=S();};return window.addEventListener("resize",k),()=>{w&&w.disconnect(),window.removeEventListener("resize",k);}},[e,s,t,r,o,f]);let x=He__namespace.useMemo(()=>c?e.filter(c):e,[e,c]),b=He__namespace.useCallback((v,S)=>{v.preventDefault();let w=document.getElementById(`${s}${S}`);if(w){let k=f();if(k){let L=k.getBoundingClientRect(),R=w.getBoundingClientRect(),D=k.scrollTop+(R.top-L.top),V=Math.max(0,k.scrollHeight-k.clientHeight);k.scrollTo({top:Math.max(0,Math.min(D,V)),behavior:a});}else {let L=w.getBoundingClientRect().top+window.scrollY,R=Math.max(0,document.documentElement.scrollHeight-window.innerHeight),D=Math.max(0,Math.min(L,R));window.scrollTo({top:D,behavior:a});}window.history.pushState&&window.history.pushState(null,"",`#${s}${S}`),r?r(S):m(S);}},[s,a,r,f]);if(x.length===0)return null;let h=o==="vertical"?"":o==="horizontal"?"hidden":"hidden lg:block",y=o==="horizontal"?"":o==="vertical"?"hidden":"lg:hidden";return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("nav",{ref:d,className:tailwindMerge.twMerge(h,n),"aria-label":"Section navigation",children:jsxRuntime.jsx("div",{className:"space-y-1",style:{position:"sticky",top:i},children:x.map(v=>{let S=g===v.id;return jsxRuntime.jsx("a",{href:`#${s}${v.id}`,onClick:w=>b(w,v.id),className:tailwindMerge.twMerge("block w-full text-left px-3 py-2 rounded-md text-sm transition-colors no-underline",S?"bg-background-muted text-text-primary font-semibold":"text-text-secondary hover:text-text-primary hover:bg-background-hover"),"aria-current":S?"page":void 0,children:jsxRuntime.jsxs("span",{className:"flex items-center justify-between gap-2",children:[jsxRuntime.jsx("span",{children:v.label}),v.count!==void 0&&jsxRuntime.jsx("span",{className:"text-xs tabular-nums text-text-secondary",children:v.count})]})},v.id)})})}),jsxRuntime.jsx("nav",{ref:u,className:tailwindMerge.twMerge(y,"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:x.map(v=>{let S=g===v.id;return jsxRuntime.jsx("a",{href:`#${s}${v.id}`,onClick:w=>b(w,v.id),className:tailwindMerge.twMerge("inline-block px-4 py-2 rounded-md text-sm whitespace-nowrap transition-colors no-underline",S?"bg-background-muted text-text-primary font-semibold":"text-text-secondary hover:text-text-primary hover:bg-background-hover"),"aria-current":S?"page":void 0,children:jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("span",{children:v.label}),v.count!==void 0&&jsxRuntime.jsxs("span",{className:"text-xs tabular-nums text-text-secondary",children:["(",v.count,")"]})]})},v.id)})})})]})}function r1(e){return "primary"}var su=He__namespace.createContext({variant:"primary"});function CI({orientation:e,className:t=""}){return `flex flex-col w-full ${{horizontal:"",vertical:"flex-row"}[e]||""} ${t}`.trim()}function cu({variant:e="primary",...t}){let r=r1();return jsxRuntime.jsx(su.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)=>CI({...n,className:o}))})})})}function SI({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 du({variant:e,sticky:t=false,...r}){let o=He__namespace.useContext(su),n=r1(e??o.variant);return jsxRuntime.jsx(su.Provider,{value:{variant:n},children:jsxRuntime.jsx(reactAriaComponents.TabList,{...r,className:reactAriaComponents.composeRenderProps(r.className,(a,i)=>SI({...i,sticky:t,className:a||""}))})})}function wI({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=`${Je()} ${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 uu(e){let{variant:t}=He__namespace.useContext(su);return jsxRuntime.jsx(reactAriaComponents.Tab,{...e,"data-testid":e.id?`tab-${e.id}`:void 0,className:reactAriaComponents.composeRenderProps(e.className,(r,o)=>wI({...o,className:r,isSelected:o.isSelected,variant:t}))})}function TI({className:e=""}){let t="block w-full mt-4 text-text-primary",r=Je();return `${t} ${r} ${e}`.trim()}function o1(e){return jsxRuntime.jsx(reactAriaComponents.TabPanel,{...e,className:reactAriaComponents.composeRenderProps(e.className,(t,r)=>TI({...r,className:t||""}))})}function Fa({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 n1({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:p}){let m=c?"sticky bg-background-body":"",g=c?{top:l,zIndex:d}:{};return u?jsxRuntime.jsxs("header",{className:tailwindMerge.twMerge("mb-8 md:mb-12",m,p),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,x)=>jsxRuntime.jsx(J,{className:"h-9 w-full"},x))}):null]}),a?.length?jsxRuntime.jsx("div",{className:"hidden md:flex md:items-start gap-2 shrink-0",children:a.map((f,x)=>jsxRuntime.jsx(J,{className:"h-9 w-24"},x))}):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",m,p),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(sc,{children:r.map((f,x)=>{let{label:b,...h}=f;return jsxRuntime.jsx(lc,{...h,children:b},`${b}-${x}`)})})}):null,jsxRuntime.jsxs("div",{className:"flex flex-col md:flex-row md:items-start md:justify-between gap-4",children:[jsxRuntime.jsxs("div",{className:"min-w-0 flex-1",children:[jsxRuntime.jsx("div",{id:"page-title",children:jsxRuntime.jsx(rr,{tag:s||"h1",size:"xl",children:e})}),t?jsxRuntime.jsx("p",{className:"mt-2 text-base md:text-lg text-text-secondary",children:t}):null,i?jsxRuntime.jsx("div",{className:"mt-2 text-sm text-text-secondary",children:i}):null,a?.length?jsxRuntime.jsx("div",{className:"mt-6 flex flex-col items-stretch gap-3 md:hidden",children:a.map((f,x)=>jsxRuntime.jsx(He__namespace.default.Fragment,{children:f},x))}):null]}),a?.length?jsxRuntime.jsx("div",{className:"hidden md:flex md:items-start gap-2 shrink-0",children:a.map((f,x)=>jsxRuntime.jsx(He__namespace.default.Fragment,{children:f},x))}):null]}),n?jsxRuntime.jsx("div",{className:"mt-4 md:mt-6",children:n}):null]})}function a1({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(cu,{selectedKey:t,defaultSelectedKey:r||e[0]?.id,onSelectionChange:i,children:[jsxRuntime.jsx(du,{className:"after:bg-transparent",children:e.map(s=>jsxRuntime.jsx(uu,{id:s.id,isDisabled:s.disabled,children:s.label},s.id))}),a]})})}function i1({children:e,className:t,withSectionNav:r,navWidth:o="240px",gap:n="2rem",activeSection:a,onSectionChange:i,scrollBehavior:s,sectionIdPrefix:c="section-",scrollContainerId:l}){return r?jsxRuntime.jsx(NI,{position:r,navWidth:o,gap:n,activeSection:a,onSectionChange:i,scrollBehavior:s,sectionIdPrefix:c,scrollContainerId:l,className:t,children:e}):jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-full space-y-8 md:space-y-12",t),children:e})}function s1({children:e,sticky:t=true,className:r}){return jsxRuntime.jsx("aside",{className:tailwindMerge.twMerge(t?"lg:sticky lg:top-20":"",r),children:e})}function NI({activeSection:e,onSectionChange:t,position:r,navWidth:o,gap:n,children:a,className:i,scrollBehavior:s,sectionIdPrefix:c,scrollContainerId:l}){let d=He__namespace.default.useMemo(()=>{let f=[];return He__namespace.default.Children.forEach(a,x=>{if(He__namespace.default.isValidElement(x)&&(x.type===Wi||typeof x.type=="object"&&x.type?.displayName==="Section"||typeof x.type=="function"&&x.type?.displayName==="Section")){let b=x.props;b.id?f.push({id:b.id,label:b.navLabel||(typeof b.title=="string"?b.title:`Section ${b.id}`)}):process.env.NODE_ENV==="development"&&console.warn("Section component used within PageLayout.Content with withSectionNav must have an id prop");}}),f},[a]),u=He__namespace.default.useMemo(()=>{let f=He__namespace.default.Children.map(a,x=>{if(He__namespace.default.isValidElement(x)&&(x.type===Wi||typeof x.type=="object"&&x.type?.displayName==="Section"||typeof x.type=="function"&&x.type?.displayName==="Section")){let b=x.props;if(b.id)return He__namespace.default.cloneElement(x,{...b,id:`${c}${b.id}`})}return x});return jsxRuntime.jsx("div",{className:"space-y-8 md:space-y-12",children:f})},[a,c]),p=(f,x)=>jsxRuntime.jsx(iu,{sections:d,activeSection:e,onSectionChange:t,orientation:f,scrollBehavior:s,sectionIdPrefix:c,scrollContainerId:l,className:x});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:p("horizontal")}),u]});let m=r==="left"?"var(--nav-width) 1fr":"1fr var(--nav-width)",g=r==="right"?"hidden lg:block sticky top-20 self-start [&_a]:text-right":"hidden lg:block sticky top-20 self-start";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:p("horizontal","py-3 mt-0")}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("lg:grid",i),style:{gridTemplateColumns:m,gap:n,"--nav-width":o},children:[r==="left"&&jsxRuntime.jsx("nav",{className:g,children:p("vertical")}),u,r==="right"&&jsxRuntime.jsx("nav",{className:g,children:p("vertical")})]})]})}function l1({children:e,className:t}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-1 overflow-auto min-h-0",t),children:e})}Fa.Header=n1;Fa.Tabs=a1;Fa.Content=i1;Fa.Aside=s1;Fa.ScrollableContent=l1;function PI(e){return typeof e=="object"&&e!==null&&"features"in e&&Array.isArray(e.features)&&"type"in e&&typeof e.type=="string"}var RI=process.env.NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN||"";function u1({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:p=false,onSelect:m,searchTypes:g=["place","address"],defaultFilter:f,validationResult:x,countryRestrictions:b,proximity:h="ip",hideCountry:y=false,showIcon:v=true,useMobileTray:S=true,className:w}){let k=He.useRef(new WeakMap),L=He.useRef([]),R={requestType:"REST",method:"GET",url:"https://api.mapbox.com/geocoding/v5/mapbox.places/{q}.json",extraParams:{access_token:RI,types:g.join(","),limit:"5",...b?.length?{country:b.join(",").toLowerCase()}:{},...h?{proximity:h==="ip"?"ip":h.join(",")}:{}},shouldLoad:A=>A.length>0,transformResponse:A=>{if(!PI(A))return [];let T=A.features.map(N=>{let B={id:N.id,name:N.place_name};return k.current.set(B,{type:N.place_type[0],center:N.center,context:N.context,address:N.address,text:N.text,properties:N.properties}),B});return T.length>0&&(L.current=T),T}},D=A=>{let T=k.current.get(A),N=A.name.split(", "),B=N[0],W=N.slice(1);y&&W.length>0&&(W=W.slice(0,-1));let O=W.join(", ");return jsxRuntime.jsxs("div",{className:"flex items-center gap-3 py-0.5",children:[v&&jsxRuntime.jsx(U,{name:T?.type==="address"?"MapPin":T?.type==="place"?"Buildings":T?.type==="region"?"MapPinArea":T?.type==="country"?"Flag":"Circle",className:"h-5 w-5 flex-shrink-0 text-text-secondary"}),jsxRuntime.jsxs("div",{className:"flex min-w-0 flex-col",children:[jsxRuntime.jsx("span",{className:"truncate font-medium text-text-primary",children:B}),O&&jsxRuntime.jsx("span",{className:"truncate text-sm text-text-secondary",children:O})]})]})},V=A=>A?jsxRuntime.jsx(U,{name:"CircleNotch",className:"h-4 w-4 animate-spin text-text-secondary"}):jsxRuntime.jsx(U,{name:"MagnifyingGlass",className:"h-4 w-4 text-text-secondary"});return jsxRuntime.jsx(nc,{"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:A=>{if(o?.(A),A){let N=L.current.find(B=>B.id===A);if(N){let B=k.current.get(N);B&&m({id:N.id,place_name:N.name,place_type:[B.type],center:B.center,context:B.context,address:B.address,text:B.text,properties:B.properties});}}},requestConfig:R,placeholder:n,errorMessage:a,description:i,size:s,tooltip:c,isRequired:l,isDisabled:d,showErrors:u,autoFocus:p,renderItem:D,renderLeftIcon:V,defaultFilter:f,validationResult:x,hideChevron:true,useMobileTray:S,className:w})}function m1({label:e,rightLabel:t,progressWidth:r=64,hideLabels:o=false,...n}){return jsxRuntime.jsx(reactAriaComponents.ProgressBar,{...n,className:Ne(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 f1({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:tr("prose",i,s,o),...a,children:n})}function FI(e="2"){return {1:"p-2 text-xs",2:"p-3 text-sm",3:"p-4 text-base"}[e]}function BI(e){return e?"border-action-primary text-action-primary":"border-border text-text-primary"}function VI(){return "opacity-50 cursor-not-allowed"}function Tg({value:e,isDisabled:t,className:r,children:o,size:n="2",variant:a="primary"}){return jsxRuntime.jsx(reactAriaComponents.Radio,{value:e,isDisabled:t,className:Ne(r,"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",FI(n),BI(s),(t||c)&&VI(),r),children:o})})}function Ng({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:Ne(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:He__namespace.default.Children.map(s,p=>He__namespace.default.isValidElement(p)?He__namespace.default.cloneElement(p,{size:c,variant:l}):p)})}function GI(e){return "primary"}var g1=He.createContext({variant:"primary"});function b1(e){let{variant:t="primary",...r}=e,o=GI();return jsxRuntime.jsx(g1.Provider,{value:{variant:o},children:jsxRuntime.jsxs(reactAriaComponents.RadioGroup,{...r,className:Ne(e.className,"group flex flex-col gap-2"),children:[jsxRuntime.jsx(ze,{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(be,{children:typeof e.errorMessage=="function"&&e.validationResult?e.errorMessage(e.validationResult):typeof e.errorMessage=="string"?e.errorMessage:null})]})})}function UI({isSelected:e,isInvalid:t,isDisabled:r}){let n=[Je(),"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 x1(e){return He.useContext(g1),jsxRuntime.jsx(reactAriaComponents.Radio,{...e,className:Ne(e.className,"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:UI(t)}),e.children]})})}var _I={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"}},Yi=({isActive:e=false,onPress:t,children:r})=>jsxRuntime.jsx(ie,{variant:e?"secondary":"ghost",size:"sm",onPress:t,className:"p-1",children:r});function e8({initialUrl:e,isOpen:t,onClose:r,onSubmit:o}){let[n,a]=He.useState(e);return He__namespace.default.useEffect(()=>{a(e);},[e]),jsxRuntime.jsx(fr,{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(Yt,{title:"Insert Link",onClose:r}),jsxRuntime.jsx("div",{className:"p-6",children:jsxRuntime.jsx(Gr,{label:"URL",type:"url",value:n,onChange:a,autoFocus:true,className:"w-full"})}),jsxRuntime.jsxs("div",{className:"flex justify-end gap-2 border-t border-border-muted p-4",children:[jsxRuntime.jsx(ie,{variant:"secondary",onPress:r,children:"Cancel"}),jsxRuntime.jsx(ie,{type:"submit",children:"Save"})]})]})})})})}function v1({initialContent:e="",onChange:t,className:r,isDisabled:o=false,placeholder:n="Start typing...",id:a,size:i="md",headingLevels:s=[1,2]}){let c=_I[i],[l,d]=He.useState(false),u=react.useEditor({immediatelyRender:false,extensions:[JI__default.default.configure({heading:s.length>0?{levels:s}:false}),KI__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")}}}),p=()=>{d(true);},m=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(ie,{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(U,{name:"ArrowSquareOut",className:"mr-1 h-4 w-4"}),"Open"]}),jsxRuntime.jsxs(ie,{variant:"ghost",size:"sm",className:"h-8 px-2",onPress:p,children:[jsxRuntime.jsx(U,{name:"PencilSimple",className:"mr-1 h-4 w-4"}),"Edit"]}),jsxRuntime.jsxs(ie,{variant:"ghost",size:"sm",className:"h-8 px-2",onPress:()=>u.chain().focus().unsetLink().run(),children:[jsxRuntime.jsx(U,{name:"X",className:"mr-1 h-4 w-4"}),"Remove"]})]}),jsxRuntime.jsx(e8,{isOpen:l,onClose:()=>d(false),onSubmit:m,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(Yi,{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(Yi,{isActive:u.isActive("bold"),onPress:()=>u.chain().focus().toggleBold().run(),children:jsxRuntime.jsx("span",{className:"text-xs font-bold",children:"B"})}),jsxRuntime.jsx(Yi,{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(Yi,{isActive:u.isActive("bulletList"),onPress:()=>u.chain().focus().toggleBulletList().run(),children:jsxRuntime.jsx(U,{name:"ListBullets",className:"h-4 w-4"})}),jsxRuntime.jsx(Yi,{isActive:u.isActive("orderedList"),onPress:()=>u.chain().focus().toggleOrderedList().run(),children:jsxRuntime.jsx(U,{name:"ListNumbers",className:"h-4 w-4"})}),jsxRuntime.jsx("div",{className:"mx-1 h-4 w-px bg-border-muted"}),jsxRuntime.jsx(Yi,{isActive:u.isActive("link"),onPress:p,children:jsxRuntime.jsx(U,{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 C1({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:p,isLoading:m=false,className:g,contentClassName:f,showMapExpandToggle:x=false,expandedMapTitle:b="Explore map",expandedMapAddressLabel:h,piiEntity:y}){let v=[];t&&v.push(t),r&&o?v.push(`${r} ${o}`):r?v.push(r):o&&v.push(o);let S=v.join(", "),w=h||[e,S].filter(Boolean).join(", "),k=d&&n!==void 0&&a!==void 0,L=({children:D,className:V})=>i?s?jsxRuntime.jsx(s,{href:i,className:V,children:D}):jsxRuntime.jsx(et,{href:i,variant:"unstyled",className:tailwindMerge.twMerge("hover:underline",V),asButton:false,children:D}):jsxRuntime.jsx("span",{className:V,children:D});if(m){let D=l==="row";return jsxRuntime.jsxs(Ue,{variant:c,className:tailwindMerge.twMerge(D?"flex flex-col md:flex-row":"flex flex-col",g),children:[k&&jsxRuntime.jsx(Ue.Media,{aspectRatio:"auto",className:tailwindMerge.twMerge(D&&"md:order-2 md:flex-[2] md:min-w-0"),children:jsxRuntime.jsx(J,{width:"100%",height:u})}),jsxRuntime.jsxs(Ue.Content,{className:tailwindMerge.twMerge("space-y-2 px-4 md:px-6",D&&"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 R=l==="row";return jsxRuntime.jsxs(Ue,{variant:c,className:tailwindMerge.twMerge("group/card relative",i&&"cursor-pointer",R?"flex flex-col md:flex-row":"flex flex-col",g),children:[i&&jsxRuntime.jsx(L,{className:"after:absolute after:inset-0 after:z-10",children:jsxRuntime.jsx("span",{className:"sr-only",children:e})}),k&&jsxRuntime.jsx(Ue.Media,{aspectRatio:"auto",className:tailwindMerge.twMerge(R&&"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:p,showExpandToggle:x,expandedMapTitle:b,expandedMapAddressLabel:w})}),jsxRuntime.jsx(Ue.Content,{className:tailwindMerge.twMerge("px-4 md:px-6",R&&"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}),S&&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:S})]})})]})}function w1({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:p,fullHeight:m=false,showMapExpandToggle:g=false,expandedMapTitle:f="Explore map",expandedMapAddressLabel:x}){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(", "),y=x||[e.streetAddress,h].filter(Boolean).join(", "),v=a&&e.longitude!==void 0&&e.latitude!==void 0,S=t?`${t.firstName} ${t.lastName}`.trim():"",w=({children:L,href:R,className:D})=>R?r?jsxRuntime.jsx(r,{href:R,className:D,children:L}):jsxRuntime.jsx(et,{href:R,variant:"unstyled",className:tailwindMerge.twMerge("hover:underline",D),asButton:false,children:L}):jsxRuntime.jsx("span",{className:D,children:L});if(d){let L=n==="row";return jsxRuntime.jsxs(Ue,{variant:o,className:tailwindMerge.twMerge(m&&"h-full",L?"flex flex-col md:flex-row":"flex flex-col",u),children:[v&&jsxRuntime.jsx(Ue.Media,{aspectRatio:"auto",className:tailwindMerge.twMerge(L&&"md:order-2 md:flex-[2] md:min-w-0",m&&"flex-1"),children:jsxRuntime.jsx(J,{width:"100%",height:m?"100%":i})}),jsxRuntime.jsxs(Ue.Content,{className:tailwindMerge.twMerge("space-y-4 px-4 py-4",L&&"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 k=n==="row";return jsxRuntime.jsxs(Ue,{variant:o,className:tailwindMerge.twMerge("group/card relative",e.href&&"cursor-pointer",m&&"h-full",k?"flex flex-col md:flex-row":"flex flex-col",u),children:[e.href&&jsxRuntime.jsx(w,{href:e.href,className:"after:absolute after:inset-0 after:z-10",children:jsxRuntime.jsx("span",{className:"sr-only",children:e.streetAddress})}),v&&jsxRuntime.jsx(Ue.Media,{aspectRatio:"auto",className:tailwindMerge.twMerge(k&&"md:order-2 md:flex-[2] md:min-w-0",m&&"flex-1"),children:jsxRuntime.jsx(Hi,{height:m?"100%":i,initialViewState:{longitude:e.longitude,latitude:e.latitude,zoom:14},showMarker:true,mapboxAccessToken:s,showExpandToggle:g,expandedMapTitle:f,expandedMapAddressLabel:y})}),jsxRuntime.jsxs(Ue.Content,{className:tailwindMerge.twMerge("space-y-4 px-4 py-4",k&&"md:order-1 md:flex-[1] md:flex-shrink-0 md:flex md:flex-col md:justify-center",p),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(Vo,{firstName:t.firstName,lastName:t.lastName,src:t.avatarUrl,size:"md",variant:"user",shape:"square",className:"flex-shrink-0",piiEntity:t.piiEntity}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[t.href?jsxRuntime.jsx(w,{href:t.href,className:"text-sm font-semibold leading-tight text-text-primary block mb-0.5 hover:text-text-brand transition-colors relative z-20",children:jsxRuntime.jsx("span",{"data-pii-type":t.piiEntity?"full-name":void 0,"data-pii-entity":t.piiEntity,children:S})}):jsxRuntime.jsx("span",{className:"text-sm font-semibold leading-tight text-text-primary block mb-0.5","data-pii-type":t.piiEntity?"full-name":void 0,"data-pii-entity":t.piiEntity,children:S}),jsxRuntime.jsxs("div",{className:"space-y-0.5",children:[c&&t.email&&jsxRuntime.jsxs("div",{className:"flex items-center gap-1.5 text-text-primary",children:[jsxRuntime.jsx(U,{name:"Envelope",size:12,className:"text-text-secondary flex-shrink-0"}),jsxRuntime.jsx(et,{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(U,{name:"Phone",size:12,className:"text-text-secondary flex-shrink-0"}),jsxRuntime.jsx(et,{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:Ya(t.phone)})]})]})]})]})]})]})]})}function T1({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:p,showValue:m=true}){let g=typeof i=="number",[f,x]=He__namespace.default.useState(s),b=g?i:f,h=Math.min(Math.max(b,l),d),y=Math.max(d-l,1e-5),v=(h-l)/y*100;return jsxRuntime.jsxs("div",{className:Ne(a,"group flex w-full flex-col gap-1"),children:[e&&jsxRuntime.jsx(ze,{size:n,tooltip:r,className:"mb-1",children:e}),jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[jsxRuntime.jsxs("div",{className:"relative w-full select-none",children:[jsxRuntime.jsx("div",{className:"h-1.5 w-full rounded-full bg-background-muted"}),jsxRuntime.jsx("div",{className:"pointer-events-none absolute left-0 top-1/2 h-1.5 -translate-y-1/2 rounded-full bg-action-brand",style:{width:`${v}%`},"aria-hidden":true}),jsxRuntime.jsx("input",{type:"range",min:l,max:d,step:u,value:b,disabled:p,"aria-invalid":!!o,onChange:S=>{let w=Number(S.currentTarget.value);g||x(w),c?.(w);},className:tailwindMerge.twMerge("absolute inset-0 w-full cursor-pointer appearance-none bg-transparent outline-none","[&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:h-4 [&::-webkit-slider-thumb]:w-4 [&::-webkit-slider-thumb]:rounded-full [&::-webkit-slider-thumb]:bg-background-input [&::-webkit-slider-thumb]:border [&::-webkit-slider-thumb]:border-border-input","hover:[&::-webkit-slider-thumb]:shadow-sm focus-visible:[&::-webkit-slider-thumb]:outline-2 focus-visible:[&::-webkit-slider-thumb]:outline-action-default","[&::-moz-range-thumb]:h-4 [&::-moz-range-thumb]:w-4 [&::-moz-range-thumb]:rounded-full [&::-moz-range-thumb]:bg-background-input [&::-moz-range-thumb]:border [&::-moz-range-thumb]:border-border-input","hover:[&::-moz-range-thumb]:shadow-sm focus-visible:[&::-moz-range-thumb]:outline-2 focus-visible:[&::-moz-range-thumb]:outline-action-default",p?"cursor-not-allowed opacity-60":void 0)})]}),m&&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(be,{className:"mt-1",children:o})]})}var i8=He__namespace.default.createContext({orientation:"horizontal",isResizing:false});function k1(e,t){return e===void 0?t:e}function s8(e,t){return typeof e=="number"?e:typeof e=="string"&&e.endsWith("%")?Number.parseFloat(e)/100*t:Number.parseFloat(e.toString())}function mu({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:p,children:m}){let g=He.useRef(null),[f,x]=He.useState(false),b=i==="horizontal"?400:300,h=k1(i==="horizontal"?e:t,b),[y,v]=He.useState(null),S=He.useCallback(A=>{if(!g.current||!f)return;let T=g.current.getBoundingClientRect(),N=i==="horizontal"?T.width:T.height,B=i==="horizontal"?A.clientX:A.clientY,O=(i==="horizontal"?T.right:T.bottom)-B,z=N-O,j=i==="horizontal"?r:o,K=i==="horizontal"?n:a;O<j||z<K||(v(O),c?.(O));},[f,i,r,o,n,a,c]),w=He.useCallback(()=>{x(false),d?.();},[d]),k=He.useCallback(A=>{A.preventDefault(),A.stopPropagation(),x(true),l?.();},[l]);He.useEffect(()=>{if(f)return document.addEventListener("mousemove",S),document.addEventListener("mouseup",w),document.body.style.cursor=i==="horizontal"?"col-resize":"row-resize",document.body.style.userSelect="none",()=>{document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",w),document.body.style.cursor="",document.body.style.userSelect="";}},[f,S,w,i]);let L=He__namespace.default.Children.toArray(m).find(A=>He__namespace.default.isValidElement(A)&&A.type===R1),R=He__namespace.default.Children.toArray(m).find(A=>He__namespace.default.isValidElement(A)&&A.type===M1),D=y??h,V=typeof D=="number"?`${D}px`:D;return jsxRuntime.jsx(i8.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:L}),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",p),onMouseDown:k,role:"separator","aria-orientation":i,"aria-label":"Resize divider",tabIndex:0,onKeyDown:A=>{if(!g.current)return;let T=g.current.getBoundingClientRect(),N=i==="horizontal"?T.width:T.height,B=y??s8(h,N),W=20,O=i==="horizontal"?r:o,z=i==="horizontal"?n:a;if(i==="horizontal"){if(A.key==="ArrowLeft"){let j=Math.min(B+W,N-z);v(j),c?.(j);}else if(A.key==="ArrowRight"){let j=Math.max(B-W,O);v(j),c?.(j);}}else if(A.key==="ArrowUp"){let j=Math.min(B+W,N-z);v(j),c?.(j);}else if(A.key==="ArrowDown"){let j=Math.max(B-W,O);v(j),c?.(j);}},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"]:V},children:R})]})})}function R1({className:e,children:t}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-full h-full",e),children:t})}function M1({className:e,children:t}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-full h-full",e),children:t})}mu.Main=R1;mu.Aside=M1;var c8=e=>{let t=Wt({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 D1({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:p=true,...m}){let{isFocused:g,handleFocus:f,handleBlur:x}=Vr();return jsxRuntime.jsx("div",{className:"group flex flex-col",children:jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(ze,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(vt,{children:jsxRuntime.jsx("textarea",{...m,required:a,onFocus:b=>{m.onFocus&&m.onFocus(b),f(b);},onBlur:b=>{m.onBlur&&m.onBlur(b),x(b);},className:c8({isInvalid:s,isDisabled:c,isResizable:l,isFocused:g,size:o,transparent:i,className:d}),disabled:c})}),p?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(be,{size:o,children:r}):typeof r=="function"&&u?jsxRuntime.jsx(be,{size:o,children:r(u)}):t?jsxRuntime.jsx(ke,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(be,{size:o,className:"mt-1",children:r}):typeof r=="function"&&u?jsxRuntime.jsx(be,{size:o,className:"mt-1",children:r(u)}):t?jsxRuntime.jsx(ke,{size:o,className:"mt-1",children:t}):null})]})})}function I1({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:p="",onChange:m,chips:g=[],onChipsChange:f,triggerPattern:x="{{",onTriggerDetected:b,onTriggerDismissed:h,renderChip:y,chipVariant:v="primary",chipSize:S,...w}){let k=He.useRef(null),{isFocused:L,handleFocus:R,handleBlur:D}=Vr(),V=S||"sm",A=He.useRef(null),T=He.useCallback(K=>{let $="",P=M=>{if(M.nodeType===Node.TEXT_NODE){if(!M.parentElement?.closest("[data-chip-id]")){let I=M.textContent||"";$+=I;}}else if(M.nodeType===Node.ELEMENT_NODE){let G=M;if(G.hasAttribute("data-chip-id")){let I=G.getAttribute("data-chip-id");$+=`{{${I}}}`;return}else if(G.tagName==="BR"){$+=`
45
- `;return}else G.tagName;}for(let G=0;G<M.childNodes.length;G++)P(M.childNodes[G]);};return P(K),$},[]),N=He.useCallback((K,$)=>{let P=document.createTreeWalker(K,NodeFilter.SHOW_TEXT,{acceptNode:H=>{let Y=H.parentElement;return Y&&Y.closest("[data-chip-id]")?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}}),M=P.nextNode(),G=Math.max(0,$);for(;M;){let H=M.nodeValue||"";if(H.length>=G){let Y=document.createRange();Y.setStart(M,G),Y.collapse(true);let F=window.getSelection();F?.removeAllRanges(),F?.addRange(Y);return}G-=H.length,M=P.nextNode();}let I=window.getSelection(),C=document.createRange();C.selectNodeContents(K),C.collapse(false),I?.removeAllRanges(),I?.addRange(C);},[]);He.useEffect(()=>{k.current&&!p&&k.current.textContent!==""&&(k.current.textContent="");},[p]),He.useLayoutEffect(()=>{if(k.current){if(p===""){if(L)try{k.current.focus({preventScroll:!0}),N(k.current,0);}catch{}return}if(A.current!=null)try{N(k.current,A.current);}finally{A.current=null;}}},[p,N,L]);let B=He.useCallback((K,$)=>{if(m?.(K),K===""){h?.();return}if(x&&b&&$!==void 0){let P=K.slice(0,$),M=typeof x=="string"?new RegExp(`\\${x}([^\\s]*)$`):x,G=P.match(M);if(G){let I=G[1]||"",C=$-G[0].length;b({query:I,position:$,startIndex:C});}else h?.();}},[m,x,b,h]),W=He.useCallback(K=>{if(!f||!m)return;let $=g.filter(M=>M.id!==K);f($);let P=p.replace(new RegExp(`\\{\\{${K}\\}\\}`,"g"),"");m(P);},[g,f,p,m]),O=He.useCallback(K=>y?y(K,()=>W(K.id)):jsxRuntime.jsx(xo,{variant:v,size:V,onRemove:c?void 0:()=>W(K.id),isDisabled:c,className:"py-0.5 px-1.5 gap-1 text-xs leading-none rounded-md",children:K.label},K.id),[y,v,V,W,c]),z=()=>{let K=Wt({isInvalid:s,isDisabled:c,isFocused:L,transparent:i,size:o}),$=`min-h-[100px] py-2 px-3 ${c?"resize-none":l?"resize-y":"resize-none"}`,P=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(K,$,P,d)},j=()=>p?p.split(/(\{\{[^}]+\}\})/g).map(($,P)=>{let M=$.match(/\{\{([^}]+)\}\}/);if(M){let G=M[1],I=g.find(C=>C.id===G);if(I)return jsxRuntime.jsx("span",{className:"inline-block align-baseline cursor-pointer",contentEditable:false,suppressContentEditableWarning:true,"data-chip-id":G,style:{userSelect:"none",verticalAlign:"baseline",lineHeight:"1"},onClick:C=>{C.preventDefault();let H=window.getSelection(),Y=document.createRange();Y.selectNode(C.currentTarget),H?.removeAllRanges(),H?.addRange(Y);},children:O(I)},`chip-${G}-${P}`)}return $.includes(`
46
- `)?$.split(`
47
- `).map((G,I)=>jsxRuntime.jsxs(He__namespace.default.Fragment,{children:[G,I<$.split(`
48
- `).length-1&&jsxRuntime.jsx("br",{})]},`line-${P}-${I}`)):$}):null;return jsxRuntime.jsx("div",{className:"group flex flex-col",children:jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(ze,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(vt,{children:jsxRuntime.jsx("div",{ref:k,contentEditable:!c,suppressContentEditableWarning:true,onInput:K=>{if(c)return;let $=K.target,P=$.querySelector("[data-chip-id]")!==null,M;if(P?(M=T($),M=M.replace(/(\{\{[^}]+\}\})\s{2,}/g,"$1 ").replace(/\s{2,}(\{\{[^}]+\}\})/g," $1")):M=$.textContent||"",M===""){try{let C=document.createRange();C.selectNodeContents($),C.collapse(!0);let H=window.getSelection();H?.removeAllRanges(),H?.addRange(C),A.current=0;}catch{}B("",0);return}if(M===p)return;let G=window.getSelection(),I=0;if(G&&G.rangeCount>0)try{let C=G.getRangeAt(0);if(P){let H=0,Y=!1,F=_=>{if(Y)return !0;if(_===C.startContainer)return H+=C.startOffset,Y=!0,!0;if(_.nodeType===Node.TEXT_NODE){if(!_.parentElement?.closest("[data-chip-id]")){if(_.contains(C.startContainer))return H+=C.startOffset,Y=!0,!0;H+=(_.textContent||"").length;}}else if(_.nodeType===Node.ELEMENT_NODE){let te=_;if(te.hasAttribute("data-chip-id")){if(te.contains(C.startContainer)||te===C.startContainer){let ae=te.getAttribute("data-chip-id");return H+=`{{${ae}}}`.length,Y=!0,!0}let E=te.getAttribute("data-chip-id");return H+=`{{${E}}}`.length,!1}else if(te.tagName==="BR")return te===C.startContainer?(Y=!0,!0):(H+=1,!1)}for(let te=0;te<_.childNodes.length;te++)if(F(_.childNodes[te]))return !0;return !1};F($),I=H;}else {let H=document.createRange();H.setStart($,0),H.setEnd(C.startContainer,C.startOffset),I=H.toString().length;}}catch{I=M.length;}A.current=I,B(M,I);},onKeyDown:K=>{if(c)return;let $=window.getSelection();if(!(!$||$.rangeCount===0))try{let P=$.getRangeAt(0),M=P.commonAncestorContainer;if(K.key==="ArrowLeft"||K.key==="ArrowRight"){let G=M.nodeType===Node.TEXT_NODE?M.parentElement?.closest("[data-chip-id]"):M.closest("[data-chip-id]");if(G){K.preventDefault();try{let I=document.createRange(),C=window.getSelection();K.key==="ArrowLeft"?I.setStartBefore(G):I.setStartAfter(G),I.collapse(!0),C?.removeAllRanges(),C?.addRange(I);}catch{}}}if(K.key==="Backspace"){let G=null;if(G=(M.nodeType===Node.TEXT_NODE?M.parentElement?.closest("[data-chip-id]"):M.closest("[data-chip-id]"))||null,!G)if(M.nodeType===Node.TEXT_NODE){let I=M;if(P.startOffset===0&&I.parentElement){let C=I.previousSibling;if(C&&C.nodeType===Node.ELEMENT_NODE){let H=C.closest("[data-chip-id]");H&&(G=H);}}}else {let I=M;if(P.startOffset>0){let C=I.childNodes[P.startOffset-1];if(C&&C.nodeType===Node.ELEMENT_NODE){let H=C.closest("[data-chip-id]");H&&(G=H);}}}if(G){K.preventDefault(),K.stopPropagation();let I=G.getAttribute("data-chip-id");if(!I)return;let C=`{{${I}}}`,H=p.indexOf(C);if(H!==-1){let Y=p.slice(0,H)+p.slice(H+C.length),F=g.filter(_=>_.id!==I);A.current=H;try{window.getSelection()?.removeAllRanges();}catch{}f?.(F),m?.(Y);}}}}catch{}},onFocus:K=>{c||(w.onFocus&&w.onFocus(K),R(K));},onBlur:K=>{c||(w.onBlur&&w.onBlur(K),D(K));},className:z(),style:{whiteSpace:"pre-wrap",wordBreak:"break-word",...w.style},"data-placeholder":w.placeholder,children:j()},p===""?"empty":"content")}),t&&jsxRuntime.jsx(ke,{size:o,className:"mt-3",children:t}),typeof r=="string"&&jsxRuntime.jsx(be,{size:o,className:"mt-1",children:r}),typeof r=="function"&&u&&jsxRuntime.jsx(be,{size:o,className:"mt-1",children:r(u)})]})})}function h8({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 B1({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",...p}){return jsxRuntime.jsxs(reactAriaComponents.TimeField,{...p,isDisabled:i,isRequired:a,isInvalid:s,className:Ne(d,"flex flex-col gap-1"),children:[e&&jsxRuntime.jsx(ze,{size:o,tooltip:n,description:u==="tooltip"||u==="inline"?t:void 0,descriptionPlacement:u,isRequired:a,children:e}),jsxRuntime.jsx(vt,{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:m=>jsxRuntime.jsx(reactAriaComponents.DateSegment,{segment:m,className:h8({isPlaceholder:m.isPlaceholder,isDisabled:!m.isEditable||i,size:o})})})}),c?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(be,{size:o,children:r}):typeof r=="function"&&l?jsxRuntime.jsx(be,{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(be,{size:o,className:"mt-1",children:r}):typeof r=="function"&&l?jsxRuntime.jsx(be,{size:o,className:"mt-1",children:r(l)}):t&&u==="below"?jsxRuntime.jsx(ke,{size:o,className:"mt-1",children:t}):null})]})}function V1({children:e,className:t=""}){return jsxRuntime.jsx("div",{className:`flex flex-col ${t}`.trim(),role:"list",children:e})}function O1({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(U,{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 w8(e){return "primary"}var T8="flex font-medium justify-center items-center gap-2 text-center transition whitespace-nowrap box-border",z1={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]"}},N8="opacity-[--control-hover-opacity] cursor-not-allowed pointer-events-none grayscale",k8="opacity-100 cursor-pointer",P8={"top-right":"-right-2 -top-2","top-left":"-left-2 -top-2","bottom-right":"-right-2 -bottom-2","bottom-left":"-left-2 -bottom-2"},R8={primary:"bg-action-primary text-[color:var(--color-action-primary-text)]",destructive:"bg-feedback-error-border text-text-inverse"};function M8(e){let{variant:t="primary",size:r="md",isDisabled:o,isSelected:n,borderRadius:a,borderRight:i,borderLeft:s}=e,c=w8(),l=`${T8} ${n?z1[c].selected:z1[c].unselected}`;return l+=` ${Ge[r].text} ${Ge[r].height} ${Ge[r].padding} ${Ge[r].gap}`,l+=` ${o?N8:k8}`,a==="left"&&(l+=" rounded-l-sm"),a==="right"&&(l+=" rounded-r-sm"),i&&(l+=" border-r"),s&&(l+=" border-l"),l+=` ${Je()}`,(l+=" focus-visible:outline-action-primary"),tailwindMerge.twMerge(l)}function W1(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:p="primary",badgePosition:m="top-right",...g}=e,f=n?jsxRuntime.jsx(U,{name:n,size:d,weight:i}):null,x=()=>{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(U,{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(M8(e),t),"aria-busy":s,children:x()});return u&&u>0?jsxRuntime.jsxs("div",{className:"relative",children:[b,jsxRuntime.jsx("span",{className:`absolute ${P8[m]} flex h-5 w-5 items-center justify-center rounded-full ${R8[p]} text-xs`,"aria-label":`${u} items`,children:u})]}):b}var E8={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"}},L8={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={app:{icon:"AppWindow",category:"platform",label:{singular:"App",plural:"Apps"},description:"Workspace tools and third-party integrations"},site:{icon:"MapPin",category:"platform",label:{singular:"Site",plural:"Sites"},description:"Physical location housing energy systems"},device:{icon:"ShareNetwork",category:"platform",label:{singular:"Device",plural:"Devices"},description:"Connected, controllable energy device"},customer:{icon:"Users",category:"platform",label:{singular:"Customer",plural:"Customers"},description:"End customer or owner of one or more sites"},contact:{icon:"Users",category:"platform",label:{singular:"Contact",plural:"Contacts"},description:"Person associated with a customer or site"},program:{icon:"ClipboardText",category:"platform",label:{singular:"Program",plural:"Programs"},description:"Demand-response or virtual power plant program"},workflow:{icon:"FlowArrow",category:"platform",label:{singular:"Workflow",plural:"Workflows"},description:"Automated rule that runs in response to events"},collection:{icon:"Stack",category:"platform",label:{singular:"Collection",plural:"Collections"},description:"Named group of related entities or records"},board:{icon:"SquaresFour",category:"platform",label:{singular:"Board",plural:"Boards"},description:"Dashboard for monitoring metrics and devices"},report:{icon:"ChartLine",category:"platform",label:{singular:"Report",plural:"Reports"},description:"Saved analytics view or generated report"},event:{icon:"ClockCounterClockwise",category:"platform",label:{singular:"Event",plural:"Events"},description:"Recorded system event or logged activity"},alert:{icon:"Warning",category:"platform",label:{singular:"Alert",plural:"Alerts"},description:"Notification raised when attention is needed"},monitor:{icon:"Pulse",category:"platform",label:{singular:"Monitor",plural:"Monitors"},description:"Rule that watches a metric against a threshold"},command:{icon:"Play",category:"platform",label:{singular:"Command",plural:"Commands"},description:"Control action issued to a connected device"},source:{icon:"TextureSource",category:"grid",label:{singular:"Source",plural:"Sources"},description:"Upstream feed where the network originates"},substation:{icon:"TextureSource",category:"grid",label:{singular:"Substation",plural:"Substations"},description:"Facility that steps down transmission voltage"},capacitor:{icon:"TextureCapacitor",category:"grid",label:{singular:"Capacitor",plural:"Capacitors"},description:"Capacitor bank for power-factor and voltage support"},switch:{icon:"TextureSwitchClosed",category:"grid",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",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",label:{singular:"Relay",plural:"Relays"},description:"Microprocessor relay that senses faults and trips devices"},transformer:{icon:"TextureTransformer",category:"grid",label:{singular:"Transformer",plural:"Transformers"},description:"Transformer that steps voltage up or down"},meter:{icon:"Gauge",category:"grid",label:{singular:"Meter",plural:"Meters"},description:"Revenue meter at the point of consumption"},consumer:{icon:"Gauge",category:"grid",label:{singular:"Consumer",plural:"Consumers"},description:"Service point or customer premise on the grid"},singlePhaseOverheadLine:{icon:"TextureSinglePhaseOverheadLine",category:"grid",label:{singular:"Single-Phase Overhead Line",plural:"Single-Phase Overhead Lines"},description:"Overhead line carrying one phase conductor"},twoPhaseOverheadLine:{icon:"TextureTwoPhaseOverheadLine",category:"grid",label:{singular:"Two-Phase Overhead Line",plural:"Two-Phase Overhead Lines"},description:"Overhead line carrying two phase conductors"},threePhaseOverheadLine:{icon:"TextureThreePhaseOverheadLine",category:"grid",label:{singular:"Three-Phase Overhead Line",plural:"Three-Phase Overhead Lines"},description:"Overhead line carrying three phase conductors"},singlePhaseUndergroundLine:{icon:"TextureSinglePhaseUndergroundLine",category:"grid",label:{singular:"Single-Phase Underground Line",plural:"Single-Phase Underground Lines"},description:"Buried line carrying one phase conductor"},twoPhaseUndergroundLine:{icon:"TextureTwoPhaseUndergroundLine",category:"grid",label:{singular:"Two-Phase Underground Line",plural:"Two-Phase Underground Lines"},description:"Buried line carrying two phase conductors"},threePhaseUndergroundLine:{icon:"TextureThreePhaseUndergroundLine",category:"grid",label:{singular:"Three-Phase Underground Line",plural:"Three-Phase Underground Lines"},description:"Buried line carrying three phase conductors"},motorSwitch:{icon:"Diamond",category:"grid",label:{singular:"Motor Switch",plural:"Motor Switches"},description:"Motor-operated switch or motor load element"},recloser:{icon:"TextureRecloser",category:"grid",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",label:{singular:"Fuse",plural:"Fuses"},description:"Fusible element providing overcurrent protection"},breaker:{icon:"TextureBreaker",category:"grid",label:{singular:"Breaker",plural:"Breakers"},description:"Circuit breaker that interrupts fault current",states:{open:{color:"open"},closed:{color:"closed"}}},generator:{icon:"Wind",category:"grid",label:{singular:"Generator",plural:"Generators"},description:"Distributed generation unit feeding the grid"},regulator:{icon:"TextureRegulator",category:"grid",label:{singular:"Regulator",plural:"Regulators"},description:"Voltage regulator that holds line voltage in range"},supportStructure:{icon:"TextureSupportStructure",category:"grid",label:{singular:"Support Structure",plural:"Support Structures"},description:"Structure carrying overhead line equipment"},battery:{icon:"BatteryHigh",category:"device",label:{singular:"Battery",plural:"Batteries"},description:"Behind-the-meter battery or storage system"},evCharger:{icon:"ChargingStation",category:"device",label:{singular:"EV Charger",plural:"EV Chargers"},description:"Electric-vehicle charging station or port"},inverter:{icon:"Sun",category:"device",label:{singular:"Solar / Inverter",plural:"Solar / Inverters"},description:"Solar PV inverter and its connected array"},thermostat:{icon:"Thermometer",category:"device",label:{singular:"Thermostat",plural:"Thermostats"},description:"Smart thermostat or connected HVAC control"},vehicle:{icon:"Car",category:"device",label:{singular:"EV",plural:"EVs"},description:"Electric vehicle managed as a flexible load"},waterHeater:{icon:"Drop",category:"device",label:{singular:"Water Heater",plural:"Water Heaters"},description:"Connected or smart electric water heater"}};function A8(e){return Ki[e]}function I8(e){return Ki[e].icon}function F8(e,t=false){return t?Ki[e].label.plural:Ki[e].label.singular}function B8(e){return Ki[e].category}function V8({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(Ar,{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(Ai,{id:e,onSubmit:t,children:s})})}function O8({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(Ks,{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(Ai,{id:e,onSubmit:t,className:"mt-2",children:s})})}function H8({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 U8={sm:"gap-2",md:"gap-4",lg:"gap-6"};function Y8(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 K8({cols:e={base:1},gap:t="lg",className:r,...o}){return jsxRuntime.jsx("div",{...o,className:tailwindMerge.twMerge("grid",Y8(e),U8[t],r)})}function q8({title:e,description:t,showDivider:r,className:o,children:n,...a}){return jsxRuntime.jsxs("section",{...a,className:tailwindMerge.twMerge("flex flex-col",o),children:[(e||t)&&jsxRuntime.jsxs("div",{className:"flex flex-col gap-1 mb-6",children:[typeof e=="string"?jsxRuntime.jsx(rr,{tag:"h3",size:"sm",children:e}):e,t?jsxRuntime.jsx(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 J8(){return jsxRuntime.jsx("hr",{className:"border-border-muted"})}function X8({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(U,{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 Q8({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(ie,{variant:"secondary",onPress:o,children:a}),jsxRuntime.jsx(ie,{type:"submit",form:e,isDisabled:!!r,children:r?"Saving...":n})]})]})}):null}function _8({when:e,message:t="You have unsaved changes. Leave anyway?"}){return He__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 e6({steps:e,initialStepId:t,canNavigate:r}){if(e.length===0)throw new Error("useWizard: steps array cannot be empty");let[o,n]=He__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 sfe(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"}}/*! Bundled license information:
49
-
50
- react-is/cjs/react-is.production.min.js:
51
- (** @license React v16.13.1
52
- * react-is.production.min.js
53
- *
54
- * Copyright (c) Facebook, Inc. and its affiliates.
55
- *
56
- * This source code is licensed under the MIT license found in the
57
- * LICENSE file in the root directory of this source tree.
58
- *)
59
-
60
- react-is/cjs/react-is.development.js:
61
- (** @license React v16.13.1
62
- * react-is.development.js
63
- *
64
- * Copyright (c) Facebook, Inc. and its affiliates.
65
- *
66
- * This source code is licensed under the MIT license found in the
67
- * LICENSE file in the root directory of this source tree.
68
- *)
69
-
70
- object-assign/index.js:
71
- (*
72
- object-assign
73
- (c) Sindre Sorhus
74
- @license MIT
75
- *)
76
-
77
- classnames/index.js:
78
- (*!
79
- Copyright (c) 2018 Jed Watson.
80
- Licensed under the MIT License (MIT), see
81
- http://jedwatson.github.io/classnames
82
- *)
83
- */Object.defineProperty(exports,"DialogTrigger",{enumerable:true,get:function(){return reactAriaComponents.DialogTrigger}});exports.ActionCell=V0;exports.ActionMenu=ti;exports.ActivityFeed=Pp;exports.ActivityFeedGroup=Vl;exports.ActivityItem=Ol;exports.Alert=Rx;exports.AppShell=Fx;exports.AreaSeries=xn;exports.AutoMobileRenderer=wd;exports.Autocomplete=nc;exports.Avatar=Vo;exports.BREAKPOINTS=Fn;exports.Badge=at;exports.BadgeCell=z0;exports.Banner=ic;exports.BarSeries=xc;exports.BooleanCell=H0;exports.BrandProvider=Xb;exports.BreadcrumbItem=lc;exports.Breadcrumbs=sc;exports.Button=ie;exports.CUSTOM_ICON_REGISTRY=Xa;exports.Calendar=ai;exports.Card=Ue;exports.CardContent=vp;exports.CardFooter=Cp;exports.CardHeader=hp;exports.CardMedia=yp;exports.CardMobileRenderer=Td;exports.CarouselAutoplayTrigger=Eh;exports.CarouselControl=Ph;exports.CarouselIndicator=vm;exports.CarouselIndicatorGroup=Dh;exports.CarouselItem=kh;exports.CarouselItemGroup=Nh;exports.CarouselNextTrigger=Mh;exports.CarouselPrevTrigger=Rh;exports.CarouselProgressText=Lh;exports.CarouselRoot=Th;exports.CategoryBarChart=Ey;exports.ChartAxis=zr;exports.ChartBottomBar=gi;exports.ChartContainer=$y;exports.ChartContext=Or;exports.ChartEventMarkers=Fc;exports.ChartEventSpans=Bc;exports.ChartTooltip=hn;exports.Checkbox=_n;exports.CheckboxGroup=Cm;exports.Chip=xo;exports.ChipInputField=zh;exports.ClearButton=ds;exports.CodeEditor=Gh;exports.Collapse=ii;exports.CollapseContent=gn;exports.CollapseHeader=fn;exports.CollapseItem=mn;exports.ColorField=cR;exports.ColorModeProvider=sx;exports.CommandPalette=MC;exports.Confirm=qh;exports.ConnectionStatusBadge=Jh;exports.ContactCard=Xh;exports.ContactMetaCell=G0;exports.ContactMetaDisplay=mc;exports.CopyToClipboard=dn;exports.CustomCell=U0;exports.DEFAULT_MAP_TYPE=Zd;exports.DataControls=P0;exports.DataTable=xC;exports.DateCell=Y0;exports.DateField=D0;exports.DateRangePicker=sd;exports.Description=ke;exports.DeviceHealthBadge=yC;exports.DeviceMetaCell=j0;exports.DeviceMetaDisplay=md;exports.DeviceStateBadge=wa;exports.DeviceStateCell=J0;exports.DeviceStateWithMetric=bd;exports.DeviceTypeIcon=CC;exports.Dialog=Ar;exports.DialogForm=V8;exports.DialogHeader=Yt;exports.Drawer=Ks;exports.DrawerForm=O8;exports.ENTITY_CATEGORY_CONFIG=L8;exports.ENTITY_CONFIG=Ki;exports.EmptyState=_c;exports.EnrollmentStatusBadge=wC;exports.ErrorBoundary=Xr;exports.FieldError=be;exports.FieldGroup=ih;exports.FileUpload=NC;exports.FilterChips=R0;exports.FilterDialog=I0;exports.FirmwareVersionBadge=PC;exports.Form=Ai;exports.FormActions=H8;exports.FormDivider=J8;exports.FormGrid=K8;exports.FormSection=q8;exports.FormStepper=X8;exports.FormatRegistry=le;exports.FormattedCell=Z0;exports.FunnelSeries=Zy;exports.GRID_STATE_COLORS=E8;exports.GlobalSearch=LC;exports.Grid=$f;exports.GridStateBadge=gd;exports.Heading=rr;exports.HierarchyExplorer=sS;exports.HorizontalBarCell=Ff;exports.HoverCard=jL;exports.Icon=U;exports.InfiniteScrollIndicator=Lr;exports.Input=tc;exports.InputWrapper=vt;exports.InteractiveMap=nl;exports.Kpi=uS;exports.KpiGroup=tg;exports.Label=ze;exports.LineSeries=na;exports.List=xS;exports.ListBox=gk;exports.ListBoxItem=nr;exports.ListItem=yS;exports.ListPane=vS;exports.Loader=Io;exports.Logo=oi;exports.MAP_TYPES=KS;exports.Meter=XS;exports.MiniBarCell=Bf;exports.ModalBackdrop=fr;exports.Notice=tu;exports.NoticeContainer=ru;exports.NoticeProvider=QS;exports.NumberCell=rC;exports.NumberField=Hs;exports.PageBanner=xh;exports.PageLayout=Fa;exports.PercentBarCell=Vf;exports.PlaceSearch=u1;exports.Popover=lt;exports.ProgressBar=m1;exports.Prose=f1;exports.Radio=x1;exports.RadioCard=Tg;exports.RadioCardGroup=Ng;exports.RadioGroup=b1;exports.RangeCalendar=Pi;exports.ResultsCount=Vs;exports.RichTextEditor=v1;exports.SKELETON_SIZES=Nn;exports.SOURCE_UNIT_TO_WH=Iu;exports.SaveBar=Q8;exports.SearchControl=Ca;exports.SearchEmptyState=AC;exports.SearchLoadingState=FC;exports.SearchResultGroup=VC;exports.SearchResultItem=OC;exports.SearchResultsList=zC;exports.SearchTrigger=WC;exports.Section=Wi;exports.SectionNav=iu;exports.SegmentedControl=td;exports.Select=qn;exports.SelectCell=nC;exports.SideNav=Hl;exports.SiteCard=C1;exports.SiteContactCard=w1;exports.SiteMetaCell=iC;exports.SiteMetaDisplay=yd;exports.Skeleton=J;exports.Slider=T1;exports.SortControl=Os;exports.SparklineCell=Of;exports.SplitPane=mu;exports.StackNav=Wl;exports.StatList=Ld;exports.StaticMap=Hi;exports.Switch=ld;exports.Tab=uu;exports.TabList=du;exports.TabPanel=o1;exports.Tabs=cu;exports.TextArea=D1;exports.TextAreaWithChips=I1;exports.TextCell=dC;exports.TextField=Gr;exports.TextLink=et;exports.TiledTimeSeriesChart=Qc;exports.TiledTimeSeriesExplorer=S0;exports.TimeControls=rd;exports.TimeField=B1;exports.Timeline=V1;exports.TimelineItem=O1;exports.ToggleButton=W1;exports.Tooltip=or;exports.TopNav=os;exports.Tray=ct;exports.UnsavedChangesPrompt=_8;exports.activeDeviceStates=N3;exports.addFilterCondition=Tn;exports.applyDataOperations=Ju;exports.assembleSeries=Mb;exports.autoScaleCurrent=vw;exports.autoScaleDistance=Yg;exports.autoScaleEnergy=qg;exports.autoScalePower=Rw;exports.autoScaleResistance=Mw;exports.autoScaleVoltage=Bw;exports.baselineFromPoint=$R;exports.camelCaseToWords=db;exports.capitalize=lb;exports.celsiusToFahrenheit=Dw;exports.celsiusToKelvin=e7;exports.centimetersToInches=F6;exports.clearColorCache=El;exports.createCategoryColorMap=m2;exports.createEmptyFilter=Bs;exports.createFilter=LD;exports.createFilters=AD;exports.createFormat=jF;exports.createTextureIcon=st;exports.createTiledCameraSyncGroup=Qy;exports.createXScale=Gm;exports.createYScale=xs;exports.csvUnitFor=ju;exports.csvValueFor=mb;exports.defaultMargin=Ae;exports.deviceStateLabels=k3;exports.deviceStateMetricFormats=Oee;exports.emptyStore=Db;exports.enumToSentenceCase=Iw;exports.exportChart=qu;exports.exportTableAsCSV=Qu;exports.fahrenheitToCelsius=Ew;exports.fahrenheitToKelvin=t7;exports.feetToMeters=k6;exports.feetToMiles=M6;exports.filterToChips=ID;exports.formatBoolean=Bg;exports.formatCapacity=OF;exports.formatComponentValue=co;exports.formatCurrency=Wg;exports.formatCurrent=Nu;exports.formatDate=Gg;exports.formatDistance=Kg;exports.formatEmptyValue=ud;exports.formatEnergy=Fu;exports.formatFieldValue=qr;exports.formatInternationalPhone=Bu;exports.formatNumber=Hg;exports.formatPercent=Og;exports.formatPhone=Jg;exports.formatPhoneNumber=Ya;exports.formatPower=Hu;exports.formatPowerRating=zF;exports.formatResistance=Gu;exports.formatTemperature=ob;exports.formatText=pb;exports.formatUSPhone=bl;exports.formatVoltage=Ku;exports.getBadgeClasses=F0;exports.getBooleanBadgeVariant=B0;exports.getCellAlignmentClasses=Df;exports.getCellContainerClasses=Me;exports.getCellTextClasses=Ur;exports.getContrastingTextColor=f2;exports.getDateParts=v6;exports.getDefaultChartColor=Ji;exports.getDefaultColors=Qb;exports.getDeviceStateDisplayLabel=Af;exports.getDeviceStateLabel=Af;exports.getEntityCategory=B8;exports.getEntityConfig=A8;exports.getEntityIcon=I8;exports.getEntityLabel=F8;exports.getEventColor=zo;exports.getExportFormatName=Yw;exports.getExportHeaders=xT;exports.getFieldGroupStyles=pk;exports.getFilterFields=va;exports.getGridStateLabel=q0;exports.getInputBackgroundStyles=ah;exports.getInputBaseStyles=Wt;exports.getInputStateStyles=cn;exports.getLinkClasses=Ef;exports.getNumericColorClasses=pd;exports.getResolvedColor=Rt;exports.getSkeletonSize=dr;exports.getStateTone=sfe;exports.getThemeCategoricalColors=Vn;exports.getYFormatSettings=_r;exports.gridStateLabels=R3;exports.inchesToCentimeters=I6;exports.isActiveDeviceState=Lf;exports.isActiveState=Lf;exports.isCustomPinsLayer=dg;exports.isExportSupported=Uw;exports.isFilterEmpty=nd;exports.isGeoJsonLayer=cg;exports.isLightColor=_b;exports.isNil=fe;exports.isRasterLayer=ug;exports.isVectorLayer=lg;exports.kelvinToCelsius=Lw;exports.kelvinToFahrenheit=r7;exports.kilometersToMiles=R6;exports.layer=sg;exports.mapValuesToCategoricalColors=sp;exports.metersToFeet=N6;exports.metersToMiles=D6;exports.metersToYards=A6;exports.milesToFeet=Ug;exports.milesToKilometers=P6;exports.milesToMeters=E6;exports.parseBoolean=_o;exports.pickEnergyUnit=Au;exports.prepareTableDataForExport=bT;exports.registerPhosphorIcon=qS;exports.removeFilterCondition=ya;exports.resolveValue=Ce;exports.snakeCaseToWords=ub;exports.temperatureStringToSymbol=Qg;exports.tierForViewport=_u;exports.tileIndexAt=yT;exports.tileKey=er;exports.tileReducer=Eb;exports.tilesForViewport=rn;exports.toA=g6;exports.toActiveInactive=pw;exports.toAmps=fl;exports.toBoolean=Qo;exports.toCelsius=eb;exports.toCentimeters=Nw;exports.toCheckmark=fw;exports.toCompactNumber=hw;exports.toCurrency=zg;exports.toCustomDateFormat=Tw;exports.toDateString=Cw;exports.toEnabledDisabled=dw;exports.toFahrenheit=_g;exports.toFeet=Ru;exports.toFloat=bw;exports.toFormattedNumber=xw;exports.toFullDateTime=Sw;exports.toGW=$6;exports.toGWh=$g;exports.toGigawatts=zu;exports.toISOString=ww;exports.toInches=Pw;exports.toInteger=gw;exports.toKA=b6;exports.toKV=d7;exports.toKW=K6;exports.toKelvin=tb;exports.toKiloamps=Tu;exports.toKilohms=Xg;exports.toKilometers=Pu;exports.toKilovolts=Yu;exports.toKilowatts=Vu;exports.toLowerCase=ab;exports.toMA=f6;exports.toMV=l7;exports.toMW=j6;exports.toMWh=jg;exports.toMegawatts=Ou;exports.toMegohms=Zg;exports.toMeters=ku;exports.toMiles=Mu;exports.toMilliamps=wu;exports.toMillimeters=kw;exports.toMilliohms=Wu;exports.toMillivolts=Uu;exports.toNauticalMiles=T6;exports.toOhms=hl;exports.toOnOff=uw;exports.toPercentage=Vg;exports.toRelativeTime=gl;exports.toScientificNotation=yw;exports.toSecret=Fw;exports.toSentenceCase=ib;exports.toTemperature=rb;exports.toTitleCase=sb;exports.toTrueFalse=mw;exports.toUpperCase=nb;exports.toV=c7;exports.toVolts=Cl;exports.toW=Y6;exports.toWatts=xl;exports.toWh=Eu;exports.toYards=Du;exports.tokWh=Lu;exports.truncateEnd=vl;exports.truncateMiddle=Ka;exports.truncateStart=yl;exports.typeRole=bt;exports.typographyRole=uo;exports.ucFirst=cb;exports.useBreakpoint=Qt;exports.useChartContext=oa;exports.useClientDataControls=Tl;exports.useColorMode=Ht;exports.useComponentFormatter=UF;exports.useDataControls=hb;exports.useDebounce=en;exports.useElementSize=$a;exports.useInfiniteScroll=tn;exports.useInputFocus=Vr;exports.useLocalStorage=Pl;exports.useMediaQuery=Zt;exports.useNotice=e1;exports.useServerDataControls=Nl;exports.useTableExport=kb;exports.useTileWindow=Ob;exports.useTiledTimeSeries=rp;exports.useWizard=e6;exports.wrapWithLink=ko;exports.yardsToMeters=L6;//# sourceMappingURL=index.cjs.map
43
+ `,backgroundSize:"30px 30px"}})})})}function jl({style:e,className:t,message:r="Map requires Mapbox token"}){return jsxRuntime.jsx("div",{style:e,className:`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 Zh={streets:"streets",satellite:"satellite",neutral:"neutral"},ql="streets";function Ql(e,t){switch(e){case "streets":return t?"mapbox://styles/victor-texture/clzwxtrng005s01p93rtr04op":"mapbox://styles/mapbox/streets-v12";case "satellite":return "mapbox://styles/mapbox/satellite-streets-v12";case "neutral":return t?"mapbox://styles/mapbox/dark-v11":"mapbox://styles/mapbox/light-v11";default:return t?"mapbox://styles/victor-texture/clzwxtrng005s01p93rtr04op":"mapbox://styles/mapbox/streets-v12"}}function _h({longitude:e,latitude:t,showPulse:r=true,accuracy:o}){return jsxRuntime.jsx(cM.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 Wi=Oe__namespace.default.forwardRef(({initialViewState:e,viewState:t,onViewStateChange:r,scrollEnabled:o=true,className:n,previewMode:a=false,previewModeCta:i,onPreviewModePress:s,mapType:c=ql,layers:l=[],mapboxAccessToken:d,transformRequest:u,isLoading:m=false,onLoad:p,controls:g="default",showUserLocation:f=true,onUserLocationChange:x,children:b,additionalInteractiveLayerIds:h=[],onMapClick:y,showMarker:v=false,markerLocation:S},N)=>{let w=d??Ol();if(!w)return jsxRuntime.jsx("div",{className:`relative ${n||""}`,style:{width:"100%",height:"100%"},children:jsxRuntime.jsx(jl,{className:"w-full h-full",message:"Map unavailable"})});let{isDarkTheme:D}=It(),k=Oe.useRef(null),P=Oe.useRef(null),[I,M]=Oe.useState(false),[L,R]=Oe.useState(false);Oe.useEffect(()=>{Jl();},[]);let[B,Y]=Oe.useState(false),H=Oe.useRef(0),[W,Z]=Oe.useState(null),[q,Q]=Oe.useState(null),T=Oe.useRef(null),E=Oe.useRef(null),[O,A]=_i("interactiveMap.trackingLocation",false),[C,F]=Oe.useState(false);Oe.useEffect(()=>{if(!navigator.geolocation){F(true);return}if(O){if(!navigator.permissions?.query){F(true);return}navigator.permissions.query({name:"geolocation"}).then(X=>{X.state!=="granted"&&A(false),F(true);}).catch(()=>{F(true);});}else F(true);},[]),Oe.useEffect(()=>{let X=setTimeout(()=>{I||R(true);},200);return ()=>clearTimeout(X)},[I]),Oe.useEffect(()=>{E.current=null;},[c,D]),Oe.useEffect(()=>{if(I)return;let X=setInterval(()=>{if(k.current?.loaded()){M(true),R(false);let U=k.current.getMap?.();U&&E.current!==U&&(E.current=U,p?.()),clearInterval(X);}},200);return ()=>clearInterval(X)},[I,p]),Oe.useEffect(()=>{if(C){if(!O||a){T.current!==null&&(navigator.geolocation.clearWatch(T.current),T.current=null);return}if(!navigator.geolocation){console.warn("Geolocation is not supported by this browser.");return}return T.current=navigator.geolocation.watchPosition(X=>{let U={latitude:X.coords.latitude,longitude:X.coords.longitude,accuracy:X.coords.accuracy};Q(U),x?.(U);},X=>{console.warn("Geolocation error:",X.message),Q(null),x?.(null);},{enableHighAccuracy:true,maximumAge:3e4,timeout:3e4}),()=>{T.current!==null&&(navigator.geolocation.clearWatch(T.current),T.current=null);}}},[O,a,x,C]);let z=Oe.useCallback(()=>{M(true),R(false);let X=k.current?.getMap?.();X&&E.current!==X&&(E.current=X,p?.());},[p]),G=Oe.useCallback(()=>{k.current&&e&&(Y(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]),oe=Oe.useMemo(()=>g===false||g===null?[]:g==="default"||g===void 0?tp:g,[g]),ue=Oe.useCallback(()=>{if(!navigator.geolocation){console.warn("Geolocation is not supported by this browser.");return}A(true),navigator.geolocation.getCurrentPosition(X=>{let{latitude:U,longitude:ce}=X.coords;k.current&&k.current.jumpTo({center:[ce,U],zoom:15});},X=>{console.warn("Geolocation error:",X.message),X.code===X.PERMISSION_DENIED&&A(false);},{enableHighAccuracy:true,timeout:1e4,maximumAge:0});},[]),te=Oe.useMemo(()=>{if(a)return null;let X=oe.map(U=>U.type==="navigation"?{...U,onResetZoom:U.onResetZoom||G,onGeolocateClick:U.onGeolocateClick||ue}:U);return np(X,{mapRef:k,layers:l,showResetButton:B})},[oe,k,a,l,G,B,ue]),le=Oe.useMemo(()=>{let X=[];return l.filter(U=>U.events?.onClick||U.events?.onMouseEnter||U.events?.onMouseLeave||U.tooltip).forEach(U=>{U.kind==="clusteredVector"?(X.push(`${U.id}-clusters`),X.push(`${U.id}-points`),X.push(`${U.id}-selected-point`)):X.push(U.id);}),[...X,...h]},[l,h]),me=Oe.useMemo(()=>{let X=new Map;return l.forEach(U=>{U.events&&(X.set(U.id,U.events),U.kind==="clusteredVector"&&(X.set(`${U.id}-clusters`,U.events),X.set(`${U.id}-points`,U.events),X.set(`${U.id}-selected-point`,U.events)));}),X},[l]),re=Oe.useMemo(()=>{let X=new Map;return l.forEach(U=>{U.tooltip&&(X.set(U.id,U.tooltip),U.kind==="clusteredVector"&&(X.set(`${U.id}-clusters`,U.tooltip),X.set(`${U.id}-points`,U.tooltip),X.set(`${U.id}-selected-point`,U.tooltip)));}),X},[l]),ie=Oe.useMemo(()=>{let X=new Map;return l.forEach(U=>{U.kind==="clusteredVector"&&(X.set(U.id,U),X.set(`${U.id}-clusters`,U),X.set(`${U.id}-points`,U),X.set(`${U.id}-selected-point`,U));}),X},[l]),fe=Oe.useMemo(()=>{if(!v)return null;let X=S?.longitude??t?.longitude??e?.longitude,U=S?.latitude??t?.latitude??e?.latitude;return X===void 0||U===void 0?null:{longitude:X,latitude:U}},[v,S,t,e]),xe=Oe.useCallback(X=>{if(a)return;let U=X.features?.[0];if(!U||!U.layer)return;let ce=U.layer.id,se=me.get(ce),$=re.get(ce),Se;U.geometry.type==="Point"?Se=U.geometry.coordinates:Se=[X.lngLat.lng,X.lngLat.lat];let _e={id:U.id??U.properties?.id,lngLat:Se,properties:U.properties||{},layerId:ce},Ir=ie.get(ce),po=U.properties?.cluster===true;if(Ir&&po){let vr=k.current;if(vr){let ta=vr.getZoom(),fc=Math.min(ta+3,18);vr.flyTo({center:Se,zoom:fc,duration:1e3});}return}if(se?.onClick&&se.onClick(_e),$&&$.trigger==="click"){let vr;Ir&&"cluster"in $?$.point&&(vr=$.point(_e)):"content"in $&&(vr=typeof $.content=="function"?$.content(_e):$.content),vr&&Z({feature:_e,content:vr,bare:$.bare});}y&&y(X);},[me,re,a,y,ie,k,le]),Be=Oe.useCallback(X=>{let U=X.features?.[0];if(!U||!U.layer)return null;let ce=U.layer.id,se=re.get(ce);if(!se||se.trigger!=="hover"&&se.trigger!==void 0)return null;let $;U.geometry.type==="Point"?$=U.geometry.coordinates:$=[X.lngLat.lng,X.lngLat.lat];let Se={id:U.id??U.properties?.id,lngLat:$,properties:U.properties||{},layerId:ce},_e;if(ie.get(ce)&&"cluster"in se){let po=U.properties?.cluster===true;if(po&&se.cluster){let vr=U.properties?.point_count||0;_e=se.cluster(vr,Se);}else !po&&se.point?_e=se.point(Se):_e=po?`${U.properties?.point_count||0} items`:null;}else "content"in se&&(_e=typeof se.content=="function"?se.content(Se):se.content);return _e?{feature:Se,content:_e,bare:se.bare}:null},[re,ie]),Ze=Oe.useCallback(X=>{if(a)return;let U=X.features?.[0];if(!U||!U.layer)return;let ce=U.layer.id,se=me.get(ce);if(se?.onMouseEnter){let Se;U.geometry.type==="Point"?Se=U.geometry.coordinates:Se=[X.lngLat.lng,X.lngLat.lat];let _e={id:U.id??U.properties?.id,lngLat:Se,properties:U.properties||{},layerId:ce};se.onMouseEnter(_e);}let $=Be(X);$&&Z($),k.current&&(k.current.getCanvas().style.cursor="pointer");},[me,a,k,Be]),Kt=Oe.useCallback(X=>{if(a)return;let U=X.features?.[0];if(!U||!U.layer)return;let ce=Be(X);if(ce){Z(se=>se&&se.feature.layerId===ce.feature.layerId&&se.feature.id===ce.feature.id?se:ce);return}Z(se=>{if(!se)return se;let $=re.get(se.feature.layerId);return $&&($.trigger==="hover"||$.trigger===void 0)?null:se});},[a,Be,re]),ir=Oe.useCallback(()=>{if(!a){if(me.forEach(X=>{X.onMouseLeave?.();}),W){let X=W.feature.layerId,U=l.find(ce=>ce.id===X);if(!U){let ce=X.replace(/-(?:clusters|points|selected-point|cluster-shadows|points-shadow|cluster-count)$/,"");U=l.find(se=>se.id===ce);}U?.tooltip&&(U.tooltip.trigger||"hover")==="hover"&&Z(null);}k.current&&(k.current.getCanvas().style.cursor="");}},[me,a,k,W,l]),j=Oe.useCallback((X,U)=>{for(let ce of l)if(ce.tooltip&&!(U&&ce.id!==U)){if(ce.kind==="geojson"){if(typeof ce.data=="string")continue;let se=ce.data,Se=(se.type==="FeatureCollection"?se.features:[se]).find(_e=>_e.id===X);if(Se&&Se.geometry.type==="Point")return {id:Se.id,lngLat:Se.geometry.coordinates,properties:Se.properties||{},layerId:ce.id}}else if(ce.kind==="customPins"){let se=ce.data.find($=>$.id===X||$._id===X||$.key===X);if(se)return {id:X,lngLat:ce.getPosition(se),properties:se,layerId:ce.id}}}return null},[l]);Oe.useImperativeHandle(N,()=>({showTooltip:(X,U)=>{let ce=j(X,U);if(!ce)return;let se=l.find($=>$.id===ce.layerId);if(se?.tooltip&&"content"in se.tooltip){let $=typeof se.tooltip.content=="function"?se.tooltip.content(ce):se.tooltip.content;Z({feature:ce,content:$,bare:se.tooltip.bare});}},hideTooltip:()=>{Z(null);},getMap:()=>k.current,markMapAsMoved:()=>{Y(true);}}),[j,l]);let ae=(X,U)=>u?u(X,U):{url:X},_=m||L;return jsxRuntime.jsx("div",{ref:P,className:tailwindMerge.twMerge("relative flex h-full w-full overflow-hidden",a&&"cursor-pointer",n),onClick:a?s:void 0,children:jsxRuntime.jsxs("div",{style:{flex:1},children:[jsxRuntime.jsxs(cM__default.default,{ref:k,initialViewState:e,...t&&t,style:{width:"100%",height:"100%"},mapStyle:Ql(c,D),styleDiffing:false,mapboxAccessToken:w,transformRequest:ae,onLoad:z,onMove:a?void 0:X=>{if(X.originalEvent&&I){let U=X.originalEvent.type,ce=Math.abs((X.viewState.latitude??0)-(e?.latitude??0)),se=Math.abs((X.viewState.longitude??0)-(e?.longitude??0)),$=Math.abs((X.viewState.zoom??0)-(e?.zoom??0));e&&(ce>1e-4||se>1e-4||$>.1)&&(U==="mousemove"||U==="touchmove"||U==="pointermove"?Y(true):(U==="wheel"||U==="mousewheel")&&(H.current+=1,H.current>=3&&Y(true)));}r?.(X.viewState);},onClick:a?void 0:xe,onMouseMove:a?void 0:Kt,onMouseEnter:a?void 0:Ze,onMouseLeave:a?void 0:ir,interactiveLayerIds:a?[]:le,scrollZoom:a?false:o,dragPan:!a,dragRotate:!a,doubleClickZoom:!a,interactive:!a,attributionControl:false,children:[jsxRuntime.jsx(cM.AttributionControl,{position:"top-left"}),te,zi(l,c),b,fe&&jsxRuntime.jsx(cM.Marker,{longitude:fe.longitude,latitude:fe.latitude,anchor:"bottom",children:jsxRuntime.jsx(V,{name:"MapPin",size:36,className:"text-map-marker-default",weight:"fill"})}),f&&q&&jsxRuntime.jsx(_h,{longitude:q.longitude,latitude:q.latitude,accuracy:q.accuracy}),W&&jsxRuntime.jsx(cM.Popup,{longitude:W.feature.lngLat[0],latitude:W.feature.lngLat[1],offset:15,closeButton:false,closeOnClick:false,className:W.bare?"map-tooltip map-tooltip-bare":"map-tooltip",maxWidth:"none",children:W.content})]},`map-${c}-${D}`),_&&jsxRuntime.jsx(Xl,{}),a&&i&&jsxRuntime.jsx("div",{className:"absolute bottom-8 right-8 z-10",children:i})]})})});Wi.displayName="InteractiveMap";async function ey(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(Oe.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 Wa({width:e="100%",height:t="100%",initialViewState:r={longitude:-122.4194,latitude:37.7749,zoom:14},isLoading:o=false,mapType:n="streets",layers:a=[],mapboxAccessToken:i,showMarker:s=true,showAttribution:c=false,onLoad:l,className:d,showExpandToggle:u=false,expandedMapTitle:m="Explore map",expandedMapAddressLabel:p}){let g=i??Ol(),{isDarkTheme:f}=It(),[x,b]=Oe.useState(false),[h,y]=Oe.useState(false),[v,S]=Oe.useState(false),N=Oe.useRef(null),w=Oe.useRef(null),D=Oe.useCallback(()=>S(true),[]),k=Oe.useCallback(()=>S(false),[]);Oe.useEffect(()=>{Jl();},[]);let P={width:typeof e=="number"?`${e}px`:e,height:typeof t=="number"?`${t}px`:t};Oe.useEffect(()=>{let L=setTimeout(()=>{x||y(true);},200);return ()=>clearTimeout(L)},[x]);let I=Oe.useCallback(()=>{b(true),y(false),l?.();},[l]);Oe.useEffect(()=>{if(!w.current)return;let L=new ResizeObserver(()=>{N.current&&N.current.resize();});return L.observe(w.current),()=>{L.disconnect();}},[]);let M=o||h;return g?jsxRuntime.jsxs("div",{ref:w,style:P,className:`relative ${d||""}`,children:[jsxRuntime.jsxs(cM__default.default,{ref:N,mapboxAccessToken:g,initialViewState:r,style:{width:"100%",height:"100%"},mapStyle:Ql(n,f),onLoad:I,scrollZoom:false,dragPan:false,dragRotate:false,doubleClickZoom:false,touchZoomRotate:false,interactive:false,attributionControl:false,children:[c&&jsxRuntime.jsx(cM.AttributionControl,{position:"top-left"}),zi(a,n),s&&r.longitude!==void 0&&r.latitude!==void 0&&jsxRuntime.jsx(cM.Marker,{longitude:r.longitude,latitude:r.latitude,anchor:"bottom",children:jsxRuntime.jsx(V,{name:"MapPin",size:36,className:"text-map-marker-default",weight:"fill"})})]}),u&&jsxRuntime.jsx("div",{className:"absolute top-4 right-4 z-20",children:jsxRuntime.jsx(hr,{icon:"ArrowsOutSimple",ariaLabel:"Expand map to fullscreen",onPress:D})}),u&&jsxRuntime.jsx(Sr,{isOpen:v,onClose:k,title:m,contentPadding:false,maxWidth:"min(1100px, 100vw)",minWidth:"min(360px, 100vw)",height:"80vh",mobileHeight:"82vh",children:jsxRuntime.jsxs("div",{className:"flex flex-col h-full",children:[jsxRuntime.jsx("div",{className:"flex-1 min-h-0 overflow-hidden sm:mx-4 sm:mt-4 sm:rounded-xl sm:border sm:border-border-default",children:jsxRuntime.jsx(Wi,{initialViewState:r,mapType:n,mapboxAccessToken:g,showMarker:s,markerLocation:r.longitude!==void 0&&r.latitude!==void 0?{latitude:r.latitude,longitude:r.longitude}:void 0,layers:a})}),p&&jsxRuntime.jsx("p",{className:"text-sm text-text-secondary px-4 py-3 flex-shrink-0",children:p})]})}),M&&jsxRuntime.jsx(Xl,{})]}):jsxRuntime.jsx(jl,{style:P,className:d})}var CM={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 ry({label:e,size:t="md",variant:r="default",showWarningIndicator:o=true,warningThreshold:n=80,className:a,...i}){let s=CM[t];return jsxRuntime.jsx(reactAriaComponents.Meter,{...i,className:ke(a,"flex flex-col gap-1"),children:({percentage:c,valueText:l})=>{let d=o&&c>=n,u=r==="default"?SM(c):r;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{className:"flex justify-between gap-2",children:[e&&jsxRuntime.jsx(ze,{children:e}),jsxRuntime.jsxs("span",{className:tailwindMerge.twMerge(s.text,d?"text-feedback-error-text":"text-text-secondary"),children:[d&&jsxRuntime.jsx(lucideReact.AlertTriangle,{"aria-label":"Warning: High value",className:tailwindMerge.twMerge("inline-block align-text-bottom mr-1",s.icon)}),l]})]}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("relative rounded-full bg-background-muted","ring-1 ring-inset ring-border-muted",s.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]",wM(u)),style:{width:`${Math.min(100,Math.max(0,c))}%`},role:"presentation","aria-hidden":"true"})})]})}})}function SM(e){return e<50?"success":e<70?"info":e<90?"warning":"error"}function wM(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";default:return "bg-action-brand"}}var _l="bg-background-surface border-l-[3px] border-y border-r border-border-default text-text-primary",RM={success:{container:_l,iconName:"CheckCircle",iconColor:"text-feedback-success-text",borderColor:"var(--color-feedback-success-border)"},error:{container:_l,iconName:"XCircle",iconColor:"text-feedback-error-text",borderColor:"var(--color-feedback-error-border)"},warning:{container:_l,iconName:"Warning",iconColor:"text-feedback-warning-text",borderColor:"var(--color-feedback-warning-border)"},info:{container:_l,iconName:"Info",iconColor:"text-feedback-info-text",borderColor:"var(--color-feedback-info-border)"}};function ec({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}=RM[r];return Oe.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 FM={"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 tc({notices:e,onDismiss:t,position:r="bottom-center",className:o}){let[n,a]=Oe.useState(false);if(Oe.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",FM[r],o),"aria-live":"polite","aria-atomic":"true",children:jsxRuntime.jsx(framerMotion.AnimatePresence,{mode:"sync",children:e.map(s=>jsxRuntime.jsx(ec,{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 oy=Oe.createContext(void 0);function ny({children:e,position:t="bottom-center",maxNotices:r=5,defaultDuration:o=5e3,defaultDismissible:n=true}){let[a,i]=Oe.useState([]),s=Oe.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 x=[...f,g];return x.length>r?x.slice(-r):x}),p},[r,o,n]),c=Oe.useCallback(u=>{i(m=>m.filter(p=>p.id!==u));},[]),l=Oe.useCallback(()=>{i([]);},[]),d={notices:a,addNotice:s,removeNotice:c,clearNotices:l};return jsxRuntime.jsxs(oy.Provider,{value:d,children:[e,jsxRuntime.jsx(tc,{notices:a,onDismiss:c,position:t})]})}function ay(){let e=Oe.useContext(oy);if(!e)throw new Error("useNoticeContext must be used within a NoticeProvider");return e}function iy(){let{addNotice:e,removeNotice:t,clearNotices:r}=ay(),o=Oe.useCallback((c,l)=>e(c,l),[e]),n=Oe.useCallback((c,l)=>e(c,{...l,variant:"success"}),[e]),a=Oe.useCallback((c,l)=>e(c,{...l,variant:"error"}),[e]),i=Oe.useCallback((c,l)=>e(c,{...l,variant:"warning"}),[e]),s=Oe.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 GM={plain:"",contained:"bg-background-surface rounded-lg border border-border-default p-6",bordered:"border-y border-border-default py-6"},UM={none:"",sm:"my-4",md:"my-6 md:my-8",lg:"my-8 md:my-12"};function Ga({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=Oe__namespace.default.useId(),u=e?`${e}-heading`:d,m=t||r||o;return jsxRuntime.jsxs("section",{id:e,className:tailwindMerge.twMerge(UM[a],GM[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(qt,{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:l})]})}Ga.displayName="Section";function ac({sections:e,activeSection:t,onSectionChange:r,orientation:o="responsive",className:n,scrollBehavior:a="smooth",stickyTop:i="1.5rem",sectionIdPrefix:s="section-",filterSection:c,scrollContainerId:l}){let d=Oe__namespace.useRef(null),u=Oe__namespace.useRef(null),[m,p]=Oe__namespace.useState(e[0]?.id||null),g=t??m,f=Oe__namespace.useCallback(()=>l?document.getElementById(l):null,[l]);Oe__namespace.useEffect(()=>{let v=window.location.hash;if(!v)return;let S=v.slice(1),N=e.find(w=>`${s}${w.id}`===S);N&&requestAnimationFrame(()=>{let w=document.getElementById(S);if(!w)return;let D=f();if(D){let k=D.getBoundingClientRect(),P=w.getBoundingClientRect(),I=D.scrollTop+(P.top-k.top);D.scrollTo({top:Math.max(0,I),behavior:"instant"});}else w.scrollIntoView({behavior:"instant",block:"start"});r?r(N.id):p(N.id);});},[]),Oe__namespace.useEffect(()=>{if(t!==void 0&&r)return;let v=D=>{if(!D)return false;let k=window.getComputedStyle(D);return k.display!=="none"&&k.visibility!=="hidden"&&k.opacity!=="0"},S=()=>{let D=v(d.current),k=v(u.current);if(!D&&!k)return null;let P=f(),I=new IntersectionObserver(M=>{M.forEach(L=>{if(L.isIntersecting){let R=L.target.id.replace(s,"");r?r(R):p(R);}});},{root:P??void 0,rootMargin:"-20% 0px -70% 0px",threshold:0});return e.forEach(M=>{let L=document.getElementById(`${s}${M.id}`);L&&I.observe(L);}),I},N=S(),w=()=>{N&&N.disconnect(),N=S();};return window.addEventListener("resize",w),()=>{N&&N.disconnect(),window.removeEventListener("resize",w);}},[e,s,t,r,o,f]);let x=Oe__namespace.useMemo(()=>c?e.filter(c):e,[e,c]),b=Oe__namespace.useCallback((v,S)=>{v.preventDefault();let N=document.getElementById(`${s}${S}`);if(N){let w=f();if(w){let D=w.getBoundingClientRect(),k=N.getBoundingClientRect(),P=w.scrollTop+(k.top-D.top),I=Math.max(0,w.scrollHeight-w.clientHeight);w.scrollTo({top:Math.max(0,Math.min(P,I)),behavior:a});}else {let D=N.getBoundingClientRect().top+window.scrollY,k=Math.max(0,document.documentElement.scrollHeight-window.innerHeight),P=Math.max(0,Math.min(D,k));window.scrollTo({top:P,behavior:a});}window.history.pushState&&window.history.pushState(null,"",`#${s}${S}`),r?r(S):p(S);}},[s,a,r,f]);if(x.length===0)return null;let h=o==="vertical"?"":o==="horizontal"?"hidden":"hidden lg:block",y=o==="horizontal"?"":o==="vertical"?"hidden":"lg:hidden";return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("nav",{ref:d,className:tailwindMerge.twMerge(h,n),"aria-label":"Section navigation",children:jsxRuntime.jsx("div",{className:"space-y-1",style:{position:"sticky",top:i},children:x.map(v=>{let S=g===v.id;return jsxRuntime.jsx("a",{href:`#${s}${v.id}`,onClick:N=>b(N,v.id),className:tailwindMerge.twMerge("block w-full text-left px-3 py-2 rounded-md text-sm transition-colors no-underline",S?"bg-background-muted text-text-primary font-semibold":"text-text-secondary hover:text-text-primary hover:bg-background-hover"),"aria-current":S?"page":void 0,children:jsxRuntime.jsxs("span",{className:"flex items-center justify-between gap-2",children:[jsxRuntime.jsx("span",{children:v.label}),v.count!==void 0&&jsxRuntime.jsx("span",{className:"text-xs tabular-nums text-text-secondary",children:v.count})]})},v.id)})})}),jsxRuntime.jsx("nav",{ref:u,className:tailwindMerge.twMerge(y,"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:x.map(v=>{let S=g===v.id;return jsxRuntime.jsx("a",{href:`#${s}${v.id}`,onClick:N=>b(N,v.id),className:tailwindMerge.twMerge("inline-block px-4 py-2 rounded-md text-sm whitespace-nowrap transition-colors no-underline",S?"bg-background-muted text-text-primary font-semibold":"text-text-secondary hover:text-text-primary hover:bg-background-hover"),"aria-current":S?"page":void 0,children:jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("span",{children:v.label}),v.count!==void 0&&jsxRuntime.jsxs("span",{className:"text-xs tabular-nums text-text-secondary",children:["(",v.count,")"]})]})},v.id)})})})]})}function ly(e){return "primary"}var ic=Oe__namespace.createContext({variant:"primary"});function qM({orientation:e,className:t=""}){return `flex flex-col w-full ${{horizontal:"",vertical:"flex-row"}[e]||""} ${t}`.trim()}function lc({variant:e="primary",...t}){let r=ly();return jsxRuntime.jsx(ic.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)=>qM({...n,className:o}))})})})}function QM({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 cc({variant:e,sticky:t=false,...r}){let o=Oe__namespace.useContext(ic),n=ly(e??o.variant);return jsxRuntime.jsx(ic.Provider,{value:{variant:n},children:jsxRuntime.jsx(reactAriaComponents.TabList,{...r,className:reactAriaComponents.composeRenderProps(r.className,(a,i)=>QM({...i,sticky:t,className:a||""}))})})}function ZM({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=`${Ye()} ${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 dc(e){let{variant:t}=Oe__namespace.useContext(ic);return jsxRuntime.jsx(reactAriaComponents.Tab,{...e,"data-testid":e.id?`tab-${e.id}`:void 0,className:reactAriaComponents.composeRenderProps(e.className,(r,o)=>ZM({...o,className:r,isSelected:o.isSelected,variant:t}))})}function _M({className:e=""}){let t="block w-full mt-4 text-text-primary",r=Ye();return `${t} ${r} ${e}`.trim()}function cy(e){return jsxRuntime.jsx(reactAriaComponents.TabPanel,{...e,className:reactAriaComponents.composeRenderProps(e.className,(t,r)=>_M({...r,className:t||""}))})}function jn({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 $M({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(K,{className:"h-4 w-32"})}):null,jsxRuntime.jsxs("div",{className:"flex flex-col md:flex-row md:items-start md:justify-between gap-4",children:[jsxRuntime.jsxs("div",{className:"min-w-0 flex-1",children:[jsxRuntime.jsx("div",{id:"page-title",children:jsxRuntime.jsx(K,{className:"h-8 w-64"})}),t?jsxRuntime.jsx(K,{className:"mt-2 h-5 w-48"}):null,i?jsxRuntime.jsx(K,{className:"mt-2 h-4 w-40"}):null,a?.length?jsxRuntime.jsx("div",{className:"mt-6 flex flex-col items-stretch gap-3 md:hidden",children:a.map((f,x)=>jsxRuntime.jsx(K,{className:"h-9 w-full"},x))}):null]}),a?.length?jsxRuntime.jsx("div",{className:"hidden md:flex md:items-start gap-2 shrink-0",children:a.map((f,x)=>jsxRuntime.jsx(K,{className:"h-9 w-24"},x))}):null]}),n?jsxRuntime.jsx("div",{className:"mt-4 md:mt-6",children:jsxRuntime.jsx(K,{className:"h-64 w-full"})}):null]}):jsxRuntime.jsxs("header",{className:tailwindMerge.twMerge("mb-8 md:mb-12",p,m),style: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(Ms,{children:r.map((f,x)=>{let{label:b,...h}=f;return jsxRuntime.jsx(Ds,{...h,children:b},`${b}-${x}`)})})}):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(qt,{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,x)=>jsxRuntime.jsx(Oe__namespace.default.Fragment,{children:f},x))}):null]}),a?.length?jsxRuntime.jsx("div",{className:"hidden md:flex md:items-start gap-2 shrink-0",children:a.map((f,x)=>jsxRuntime.jsx(Oe__namespace.default.Fragment,{children:f},x))}):null]}),n?jsxRuntime.jsx("div",{className:"mt-4 md:mt-6",children:n}):null]})}function eD({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(lc,{selectedKey:t,defaultSelectedKey:r||e[0]?.id,onSelectionChange:i,children:[jsxRuntime.jsx(cc,{className:"after:bg-transparent",children:e.map(s=>jsxRuntime.jsx(dc,{id:s.id,isDisabled:s.disabled,children:s.label},s.id))}),a]})})}function tD({children:e,className:t,withSectionNav:r,navWidth:o="240px",gap:n="2rem",activeSection:a,onSectionChange:i,scrollBehavior:s,sectionIdPrefix:c="section-",scrollContainerId:l}){return r?jsxRuntime.jsx(oD,{position:r,navWidth:o,gap:n,activeSection:a,onSectionChange:i,scrollBehavior:s,sectionIdPrefix:c,scrollContainerId:l,className:t,children:e}):jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-full space-y-8 md:space-y-12",t),children:e})}function rD({children:e,sticky:t=true,className:r}){return jsxRuntime.jsx("aside",{className:tailwindMerge.twMerge(t?"lg:sticky lg:top-20":"",r),children:e})}function oD({activeSection:e,onSectionChange:t,position:r,navWidth:o,gap:n,children:a,className:i,scrollBehavior:s,sectionIdPrefix:c,scrollContainerId:l}){let d=Oe__namespace.default.useMemo(()=>{let f=[];return Oe__namespace.default.Children.forEach(a,x=>{if(Oe__namespace.default.isValidElement(x)&&(x.type===Ga||typeof x.type=="object"&&x.type?.displayName==="Section"||typeof x.type=="function"&&x.type?.displayName==="Section")){let b=x.props;b.id?f.push({id:b.id,label:b.navLabel||(typeof b.title=="string"?b.title:`Section ${b.id}`)}):process.env.NODE_ENV==="development"&&console.warn("Section component used within PageLayout.Content with withSectionNav must have an id prop");}}),f},[a]),u=Oe__namespace.default.useMemo(()=>{let f=Oe__namespace.default.Children.map(a,x=>{if(Oe__namespace.default.isValidElement(x)&&(x.type===Ga||typeof x.type=="object"&&x.type?.displayName==="Section"||typeof x.type=="function"&&x.type?.displayName==="Section")){let b=x.props;if(b.id)return Oe__namespace.default.cloneElement(x,{...b,id:`${c}${b.id}`})}return x});return jsxRuntime.jsx("div",{className:"space-y-8 md:space-y-12",children:f})},[a,c]),m=(f,x)=>jsxRuntime.jsx(ac,{sections:d,activeSection:e,onSectionChange:t,orientation:f,scrollBehavior:s,sectionIdPrefix:c,scrollContainerId:l,className:x});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:m("horizontal")}),u]});let p=r==="left"?"var(--nav-width) 1fr":"1fr var(--nav-width)",g=r==="right"?"hidden lg:block sticky top-20 self-start [&_a]:text-right":"hidden lg:block sticky top-20 self-start";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:m("horizontal","py-3 mt-0")}),jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("lg:grid",i),style:{gridTemplateColumns:p,gap:n,"--nav-width":o},children:[r==="left"&&jsxRuntime.jsx("nav",{className:g,children:m("vertical")}),u,r==="right"&&jsxRuntime.jsx("nav",{className:g,children:m("vertical")})]})]})}function nD({children:e,className:t}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex-1 overflow-auto min-h-0",t),children:e})}jn.Header=$M;jn.Tabs=eD;jn.Content=tD;jn.Aside=rD;jn.ScrollableContent=nD;function iD(e){return typeof e=="object"&&e!==null&&"features"in e&&Array.isArray(e.features)&&"type"in e&&typeof e.type=="string"}var sD=process.env.NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN||"";function py({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:x,countryRestrictions:b,proximity:h="ip",hideCountry:y=false,showIcon:v=true,useMobileTray:S=true,className:N}){let w=Oe.useRef(new WeakMap),D=Oe.useRef([]),k={requestType:"REST",method:"GET",url:"https://api.mapbox.com/geocoding/v5/mapbox.places/{q}.json",extraParams:{access_token:sD,types:g.join(","),limit:"5",...b?.length?{country:b.join(",").toLowerCase()}:{},...h?{proximity:h==="ip"?"ip":h.join(",")}:{}},shouldLoad:M=>M.length>0,transformResponse:M=>{if(!iD(M))return [];let L=M.features.map(R=>{let B={id:R.id,name:R.place_name};return w.current.set(B,{type:R.place_type[0],center:R.center,context:R.context,address:R.address,text:R.text,properties:R.properties}),B});return L.length>0&&(D.current=L),L}},P=M=>{let L=w.current.get(M),R=M.name.split(", "),B=R[0],Y=R.slice(1);y&&Y.length>0&&(Y=Y.slice(0,-1));let H=Y.join(", ");return jsxRuntime.jsxs("div",{className:"flex items-center gap-3 py-0.5",children:[v&&jsxRuntime.jsx(V,{name:L?.type==="address"?"MapPin":L?.type==="place"?"Buildings":L?.type==="region"?"MapPinArea":L?.type==="country"?"Flag":"Circle",className:"h-5 w-5 flex-shrink-0 text-text-secondary"}),jsxRuntime.jsxs("div",{className:"flex min-w-0 flex-col",children:[jsxRuntime.jsx("span",{className:"truncate font-medium text-text-primary",children:B}),H&&jsxRuntime.jsx("span",{className:"truncate text-sm text-text-secondary",children:H})]})]})},I=M=>M?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(Ts,{"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:M=>{if(o?.(M),M){let R=D.current.find(B=>B.id===M);if(R){let B=w.current.get(R);B&&p({id:R.id,place_name:R.name,place_type:[B.type],center:B.center,context:B.context,address:B.address,text:B.text,properties:B.properties});}}},requestConfig:k,placeholder:n,errorMessage:a,description:i,size:s,tooltip:c,isRequired:l,isDisabled:d,showErrors:u,autoFocus:m,renderItem:P,renderLeftIcon:I,defaultFilter:f,validationResult:x,hideChevron:true,useMobileTray:S,className:N})}function fy({label:e,rightLabel:t,progressWidth:r=64,hideLabels:o=false,...n}){return jsxRuntime.jsx(reactAriaComponents.ProgressBar,{...n,className:ke(n.className,"flex flex-col gap-1"),children:({percentage:a,valueText:i,isIndeterminate:s})=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[!o&&jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-2",children:[jsxRuntime.jsx("span",{className:"text-sm text-text-primary",children:e}),jsxRuntime.jsx("span",{className:"text-sm text-text-primary",children:t||i})]}),jsxRuntime.jsx("div",{className:`relative h-2 w-${r} overflow-hidden rounded-full bg-background-muted outline-none`,children:jsxRuntime.jsx("div",{className:`absolute top-0 h-full rounded-full bg-action-default forced-colors:bg-[Highlight] ${s?"left-full duration-1000 ease-out animate-in slide-out-to-right-full repeat-infinite [--tw-enter-translate-x:calc(-16rem-100%)]":"left-0"}`,style:{width:(s?40:a)+"%"}})})]})})}function gy({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:jt("prose",i,s,o),...a,children:n})}function fD(e="2"){return {1:"p-2 text-xs",2:"p-3 text-sm",3:"p-4 text-base"}[e]}function gD(e){return e?"border-action-primary text-action-primary":"border-border text-text-primary"}function bD(){return "opacity-50 cursor-not-allowed"}function by({value:e,isDisabled:t,className:r,children:o,size:n="2",variant:a="primary"}){return jsxRuntime.jsx(reactAriaComponents.Radio,{value:e,isDisabled:t,className:ke(r,"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",fD(n),gD(s),(t||c)&&bD(),r),children:o})})}function xy({value:e,defaultValue:t,onChange:r,isDisabled:o,isReadOnly:n,isRequired:a,className:i,children:s,size:c="2",variant:l="primary",columns:d="repeat(auto-fit, minmax(160px, 1fr))",gap:u="1"}){return jsxRuntime.jsx(reactAriaComponents.RadioGroup,{value:e,defaultValue:t,onChange:r,isDisabled:o,isReadOnly:n,isRequired:a,className:ke(i,"grid"),style:{gridTemplateColumns:/^\d+$/.test(String(d))?`repeat(${d}, minmax(0, 1fr))`:d,gap:u==="1"?"0.25rem":u==="2"?"0.5rem":u==="3"?"0.75rem":u==="4"?"1rem":typeof u=="number"?`${u}px`:u},children:Oe__namespace.default.Children.map(s,m=>Oe__namespace.default.isValidElement(m)?Oe__namespace.default.cloneElement(m,{size:c,variant:l}):m)})}function CD(e){return "primary"}var hy=Oe.createContext({variant:"primary"});function yy(e){let{variant:t="primary",...r}=e,o=CD();return jsxRuntime.jsx(hy.Provider,{value:{variant:o},children:jsxRuntime.jsxs(reactAriaComponents.RadioGroup,{...r,className:ke(e.className,"group flex flex-col gap-2"),children:[jsxRuntime.jsx(ze,{children:e.label}),jsxRuntime.jsx("div",{className:`flex ${r.orientation==="horizontal"?"flex-row gap-4":"flex-col gap-2"}`,children:e.children}),e.description&&jsxRuntime.jsx(Te,{children:e.description}),jsxRuntime.jsx(be,{children:typeof e.errorMessage=="function"&&e.validationResult?e.errorMessage(e.validationResult):typeof e.errorMessage=="string"?e.errorMessage:null})]})})}function SD({isSelected:e,isInvalid:t,isDisabled:r}){let n=[Ye(),"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 vy(e){return Oe.useContext(hy),jsxRuntime.jsx(reactAriaComponents.Radio,{...e,className:ke(e.className,"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:SD(t)}),e.children]})})}var ED={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"}},Ya=({isActive:e=false,onPress:t,children:r})=>jsxRuntime.jsx(ee,{variant:e?"secondary":"ghost",size:"sm",onPress:t,className:"p-1",children:r});function AD({initialUrl:e,isOpen:t,onClose:r,onSubmit:o}){let[n,a]=Oe.useState(e);return Oe__namespace.default.useEffect(()=>{a(e);},[e]),jsxRuntime.jsx(sr,{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(zt,{title:"Insert Link",onClose:r}),jsxRuntime.jsx("div",{className:"p-6",children:jsxRuntime.jsx(Mr,{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(ee,{variant:"secondary",onPress:r,children:"Cancel"}),jsxRuntime.jsx(ee,{type:"submit",children:"Save"})]})]})})})})}function wy({initialContent:e="",onChange:t,className:r,isDisabled:o=false,placeholder:n="Start typing...",id:a,size:i="md",headingLevels:s=[1,2]}){let c=ED[i],[l,d]=Oe.useState(false),u=react.useEditor({immediatelyRender:false,extensions:[RD__default.default.configure({heading:s.length>0?{levels:s}:false}),ND__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(ee,{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(ee,{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(ee,{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(AD,{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(Ya,{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(Ya,{isActive:u.isActive("bold"),onPress:()=>u.chain().focus().toggleBold().run(),children:jsxRuntime.jsx("span",{className:"text-xs font-bold",children:"B"})}),jsxRuntime.jsx(Ya,{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(Ya,{isActive:u.isActive("bulletList"),onPress:()=>u.chain().focus().toggleBulletList().run(),children:jsxRuntime.jsx(V,{name:"ListBullets",className:"h-4 w-4"})}),jsxRuntime.jsx(Ya,{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(Ya,{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 Ny({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:x=false,expandedMapTitle:b="Explore map",expandedMapAddressLabel:h,piiEntity:y}){let v=[];t&&v.push(t),r&&o?v.push(`${r} ${o}`):r?v.push(r):o&&v.push(o);let S=v.join(", "),N=h||[e,S].filter(Boolean).join(", "),w=d&&n!==void 0&&a!==void 0,D=({children:P,className:I})=>i?s?jsxRuntime.jsx(s,{href:i,className:I,children:P}):jsxRuntime.jsx(Qe,{href:i,variant:"unstyled",className:tailwindMerge.twMerge("hover:underline",I),asButton:false,children:P}):jsxRuntime.jsx("span",{className:I,children:P});if(p){let P=l==="row";return jsxRuntime.jsxs(Ge,{variant:c,className:tailwindMerge.twMerge(P?"flex flex-col md:flex-row":"flex flex-col",g),children:[w&&jsxRuntime.jsx(Ge.Media,{aspectRatio:"auto",className:tailwindMerge.twMerge(P&&"md:order-2 md:flex-[2] md:min-w-0"),children:jsxRuntime.jsx(K,{width:"100%",height:u})}),jsxRuntime.jsxs(Ge.Content,{className:tailwindMerge.twMerge("space-y-2 px-4 md:px-6",P&&"md:order-1 md:flex-[1] md:flex-shrink-0 md:flex md:flex-col md:justify-center"),children:[jsxRuntime.jsx(K,{width:"100%",height:16}),jsxRuntime.jsx(K,{width:"80%",height:16})]})]})}let k=l==="row";return jsxRuntime.jsxs(Ge,{variant:c,className:tailwindMerge.twMerge("group/card relative",i&&"cursor-pointer",k?"flex flex-col md:flex-row":"flex flex-col",g),children:[i&&jsxRuntime.jsx(D,{className:"after:absolute after:inset-0 after:z-10",children:jsxRuntime.jsx("span",{className:"sr-only",children:e})}),w&&jsxRuntime.jsx(Ge.Media,{aspectRatio:"auto",className:tailwindMerge.twMerge(k&&"md:order-2 md:flex-[2] md:min-w-0"),children:jsxRuntime.jsx(Wa,{height:u,initialViewState:{longitude:n,latitude:a,zoom:14},showMarker:true,mapboxAccessToken:m,showExpandToggle:x,expandedMapTitle:b,expandedMapAddressLabel:N})}),jsxRuntime.jsx(Ge.Content,{className:tailwindMerge.twMerge("px-4 md:px-6",k&&"md:order-1 md:flex-[1] md:flex-shrink-0 md:flex md:flex-col md:justify-center",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}),S&&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:S})]})})]})}function Ty({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:x}){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(", "),y=x||[e.streetAddress,h].filter(Boolean).join(", "),v=a&&e.longitude!==void 0&&e.latitude!==void 0,S=t?`${t.firstName} ${t.lastName}`.trim():"",N=({children:D,href:k,className:P})=>k?r?jsxRuntime.jsx(r,{href:k,className:P,children:D}):jsxRuntime.jsx(Qe,{href:k,variant:"unstyled",className:tailwindMerge.twMerge("hover:underline",P),asButton:false,children:D}):jsxRuntime.jsx("span",{className:P,children:D});if(d){let D=n==="row";return jsxRuntime.jsxs(Ge,{variant:o,className:tailwindMerge.twMerge(p&&"h-full",D?"flex flex-col md:flex-row":"flex flex-col",u),children:[v&&jsxRuntime.jsx(Ge.Media,{aspectRatio:"auto",className:tailwindMerge.twMerge(D&&"md:order-2 md:flex-[2] md:min-w-0",p&&"flex-1"),children:jsxRuntime.jsx(K,{width:"100%",height:p?"100%":i})}),jsxRuntime.jsxs(Ge.Content,{className:tailwindMerge.twMerge("space-y-4 px-4 py-4",D&&"md:order-1 md:flex-[1] md:flex-shrink-0 md:flex md:flex-col md:justify-center"),children:[jsxRuntime.jsxs("div",{className:"space-y-2",children:[jsxRuntime.jsx(K,{width:"100%",height:16}),jsxRuntime.jsx(K,{width:"80%",height:16})]}),t&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:"border-t border-border-default"}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(K,{width:40,height:40,className:"rounded flex-shrink-0"}),jsxRuntime.jsxs("div",{className:"flex-1 space-y-1",children:[jsxRuntime.jsx(K,{width:"50%",height:14}),jsxRuntime.jsx(K,{width:"100%",height:12})]})]})]})]})]})}let w=n==="row";return jsxRuntime.jsxs(Ge,{variant:o,className:tailwindMerge.twMerge("group/card relative",e.href&&"cursor-pointer",p&&"h-full",w?"flex flex-col md:flex-row":"flex flex-col",u),children:[e.href&&jsxRuntime.jsx(N,{href:e.href,className:"after:absolute after:inset-0 after:z-10",children:jsxRuntime.jsx("span",{className:"sr-only",children:e.streetAddress})}),v&&jsxRuntime.jsx(Ge.Media,{aspectRatio:"auto",className:tailwindMerge.twMerge(w&&"md:order-2 md:flex-[2] md:min-w-0",p&&"flex-1"),children:jsxRuntime.jsx(Wa,{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(Ge.Content,{className:tailwindMerge.twMerge("space-y-4 px-4 py-4",w&&"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(fo,{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(N,{href:t.href,className:"text-sm font-semibold leading-tight text-text-primary block mb-0.5 hover:text-text-brand transition-colors relative z-20",children:jsxRuntime.jsx("span",{"data-pii-type":t.piiEntity?"full-name":void 0,"data-pii-entity":t.piiEntity,children:S})}):jsxRuntime.jsx("span",{className:"text-sm font-semibold leading-tight text-text-primary block mb-0.5","data-pii-type":t.piiEntity?"full-name":void 0,"data-pii-entity":t.piiEntity,children:S}),jsxRuntime.jsxs("div",{className:"space-y-0.5",children:[c&&t.email&&jsxRuntime.jsxs("div",{className:"flex items-center gap-1.5 text-text-primary",children:[jsxRuntime.jsx(V,{name:"Envelope",size:12,className:"text-text-secondary flex-shrink-0"}),jsxRuntime.jsx(Qe,{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(Qe,{href:`tel:${t.phone}`,variant:"unstyled",className:"text-xs leading-tight truncate text-text-primary relative z-20","data-pii-type":t.piiEntity?"phone":void 0,"data-pii-entity":t.piiEntity,children:na(t.phone)})]})]})]})]})]})]})]})}function Py({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,x]=Oe__namespace.default.useState(s),b=g?i:f,h=Math.min(Math.max(b,l),d),y=Math.max(d-l,1e-5),v=(h-l)/y*100;return jsxRuntime.jsxs("div",{className:ke(a,"group flex w-full flex-col gap-1"),children:[e&&jsxRuntime.jsx(ze,{size:n,tooltip:r,className:"mb-1",children:e}),jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[jsxRuntime.jsxs("div",{className:"relative w-full select-none",children:[jsxRuntime.jsx("div",{className:"h-1.5 w-full rounded-full bg-background-muted"}),jsxRuntime.jsx("div",{className:"pointer-events-none absolute left-0 top-1/2 h-1.5 -translate-y-1/2 rounded-full bg-action-brand",style:{width:`${v}%`},"aria-hidden":true}),jsxRuntime.jsx("input",{type:"range",min:l,max:d,step:u,value:b,disabled:m,"aria-invalid":!!o,onChange:S=>{let N=Number(S.currentTarget.value);g||x(N),c?.(N);},className:tailwindMerge.twMerge("absolute inset-0 w-full cursor-pointer appearance-none bg-transparent outline-none","[&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:h-4 [&::-webkit-slider-thumb]:w-4 [&::-webkit-slider-thumb]:rounded-full [&::-webkit-slider-thumb]:bg-background-input [&::-webkit-slider-thumb]:border [&::-webkit-slider-thumb]:border-border-input","hover:[&::-webkit-slider-thumb]:shadow-sm focus-visible:[&::-webkit-slider-thumb]:outline-2 focus-visible:[&::-webkit-slider-thumb]:outline-action-default","[&::-moz-range-thumb]:h-4 [&::-moz-range-thumb]:w-4 [&::-moz-range-thumb]:rounded-full [&::-moz-range-thumb]:bg-background-input [&::-moz-range-thumb]:border [&::-moz-range-thumb]:border-border-input","hover:[&::-moz-range-thumb]:shadow-sm focus-visible:[&::-moz-range-thumb]:outline-2 focus-visible:[&::-moz-range-thumb]:outline-action-default",m?"cursor-not-allowed opacity-60":void 0)})]}),p&&jsxRuntime.jsx("div",{className:"min-w-10 text-right text-sm text-text-primary tabular-nums",children:Math.round(h)})]}),t&&jsxRuntime.jsx(Te,{className:"mt-2 text-text-secondary",children:t}),o&&jsxRuntime.jsx(be,{className:"mt-1",children:o})]})}var OD=Oe__namespace.default.createContext({orientation:"horizontal",isResizing:false});function My(e,t){return e===void 0?t:e}function HD(e,t){return typeof e=="number"?e:typeof e=="string"&&e.endsWith("%")?Number.parseFloat(e)/100*t:Number.parseFloat(e.toString())}function pc({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=Oe.useRef(null),[f,x]=Oe.useState(false),b=i==="horizontal"?400:300,h=My(i==="horizontal"?e:t,b),[y,v]=Oe.useState(null),S=Oe.useCallback(M=>{if(!g.current||!f)return;let L=g.current.getBoundingClientRect(),R=i==="horizontal"?L.width:L.height,B=i==="horizontal"?M.clientX:M.clientY,H=(i==="horizontal"?L.right:L.bottom)-B,W=R-H,Z=i==="horizontal"?r:o,q=i==="horizontal"?n:a;H<Z||W<q||(v(H),c?.(H));},[f,i,r,o,n,a,c]),N=Oe.useCallback(()=>{x(false),d?.();},[d]),w=Oe.useCallback(M=>{M.preventDefault(),M.stopPropagation(),x(true),l?.();},[l]);Oe.useEffect(()=>{if(f)return document.addEventListener("mousemove",S),document.addEventListener("mouseup",N),document.body.style.cursor=i==="horizontal"?"col-resize":"row-resize",document.body.style.userSelect="none",()=>{document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",N),document.body.style.cursor="",document.body.style.userSelect="";}},[f,S,N,i]);let D=Oe__namespace.default.Children.toArray(p).find(M=>Oe__namespace.default.isValidElement(M)&&M.type===Ly),k=Oe__namespace.default.Children.toArray(p).find(M=>Oe__namespace.default.isValidElement(M)&&M.type===Ey),P=y??h,I=typeof P=="number"?`${P}px`:P;return jsxRuntime.jsx(OD.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:D}),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:w,role:"separator","aria-orientation":i,"aria-label":"Resize divider",tabIndex:0,onKeyDown:M=>{if(!g.current)return;let L=g.current.getBoundingClientRect(),R=i==="horizontal"?L.width:L.height,B=y??HD(h,R),Y=20,H=i==="horizontal"?r:o,W=i==="horizontal"?n:a;if(i==="horizontal"){if(M.key==="ArrowLeft"){let Z=Math.min(B+Y,R-W);v(Z),c?.(Z);}else if(M.key==="ArrowRight"){let Z=Math.max(B-Y,H);v(Z),c?.(Z);}}else if(M.key==="ArrowUp"){let Z=Math.min(B+Y,R-W);v(Z),c?.(Z);}else if(M.key==="ArrowDown"){let Z=Math.max(B-Y,H);v(Z),c?.(Z);}},children:[jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("absolute bg-border-default transition-all",i==="horizontal"?"left-1/2 -translate-x-1/2 w-px h-full group-hover:w-1":"top-1/2 -translate-y-1/2 h-px w-full group-hover:h-1","group-hover:bg-action-brand/50",f&&"bg-action-brand",f&&(i==="horizontal"?"w-1":"h-1"))}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("absolute",i==="horizontal"?"top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-1 h-8":"top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-8 h-1","bg-border-muted rounded-full opacity-0 group-hover:opacity-100 transition-opacity")})]}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-auto flex-shrink-0",i==="horizontal"?"h-full":"w-full"),style:{[i==="horizontal"?"width":"height"]:I},children:k})]})})}function Ly({className:e,children:t}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-full h-full",e),children:t})}function Ey({className:e,children:t}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-full h-full",e),children:t})}pc.Main=Ly;pc.Aside=Ey;var GD=e=>{let t=Ft({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 Ay({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:x}=Nr();return jsxRuntime.jsx("div",{className:"group flex flex-col",children:jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(ze,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(bt,{children:jsxRuntime.jsx("textarea",{...p,required:a,onFocus:b=>{p.onFocus&&p.onFocus(b),f(b);},onBlur:b=>{p.onBlur&&p.onBlur(b),x(b);},className:GD({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(be,{size:o,children:r}):typeof r=="function"&&u?jsxRuntime.jsx(be,{size:o,children:r(u)}):t?jsxRuntime.jsx(Te,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(be,{size:o,className:"mt-1",children:r}):typeof r=="function"&&u?jsxRuntime.jsx(be,{size:o,className:"mt-1",children:r(u)}):t?jsxRuntime.jsx(Te,{size:o,className:"mt-1",children:t}):null})]})})}function Vy({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:x="{{",onTriggerDetected:b,onTriggerDismissed:h,renderChip:y,chipVariant:v="primary",chipSize:S,...N}){let w=Oe.useRef(null),{isFocused:D,handleFocus:k,handleBlur:P}=Nr(),I=S||"sm",M=Oe.useRef(null),L=Oe.useCallback(q=>{let Q="",T=E=>{if(E.nodeType===Node.TEXT_NODE){if(!E.parentElement?.closest("[data-chip-id]")){let A=E.textContent||"";Q+=A;}}else if(E.nodeType===Node.ELEMENT_NODE){let O=E;if(O.hasAttribute("data-chip-id")){let A=O.getAttribute("data-chip-id");Q+=`{{${A}}}`;return}else if(O.tagName==="BR"){Q+=`
44
+ `;return}else O.tagName;}for(let O=0;O<E.childNodes.length;O++)T(E.childNodes[O]);};return T(q),Q},[]),R=Oe.useCallback((q,Q)=>{let T=document.createTreeWalker(q,NodeFilter.SHOW_TEXT,{acceptNode:F=>{let z=F.parentElement;return z&&z.closest("[data-chip-id]")?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}}),E=T.nextNode(),O=Math.max(0,Q);for(;E;){let F=E.nodeValue||"";if(F.length>=O){let z=document.createRange();z.setStart(E,O),z.collapse(true);let G=window.getSelection();G?.removeAllRanges(),G?.addRange(z);return}O-=F.length,E=T.nextNode();}let A=window.getSelection(),C=document.createRange();C.selectNodeContents(q),C.collapse(false),A?.removeAllRanges(),A?.addRange(C);},[]);Oe.useEffect(()=>{w.current&&!m&&w.current.textContent!==""&&(w.current.textContent="");},[m]),Oe.useLayoutEffect(()=>{if(w.current){if(m===""){if(D)try{w.current.focus({preventScroll:!0}),R(w.current,0);}catch{}return}if(M.current!=null)try{R(w.current,M.current);}finally{M.current=null;}}},[m,R,D]);let B=Oe.useCallback((q,Q)=>{if(p?.(q),q===""){h?.();return}if(x&&b&&Q!==void 0){let T=q.slice(0,Q),E=typeof x=="string"?new RegExp(`\\${x}([^\\s]*)$`):x,O=T.match(E);if(O){let A=O[1]||"",C=Q-O[0].length;b({query:A,position:Q,startIndex:C});}else h?.();}},[p,x,b,h]),Y=Oe.useCallback(q=>{if(!f||!p)return;let Q=g.filter(E=>E.id!==q);f(Q);let T=m.replace(new RegExp(`\\{\\{${q}\\}\\}`,"g"),"");p(T);},[g,f,m,p]),H=Oe.useCallback(q=>y?y(q,()=>Y(q.id)):jsxRuntime.jsx($r,{variant:v,size:I,onRemove:c?void 0:()=>Y(q.id),isDisabled:c,className:"py-0.5 px-1.5 gap-1 text-xs leading-none rounded-md",children:q.label},q.id),[y,v,I,Y,c]),W=()=>{let q=Ft({isInvalid:s,isDisabled:c,isFocused:D,transparent:i,size:o}),Q=`min-h-[100px] py-2 px-3 ${c?"resize-none":l?"resize-y":"resize-none"}`,T=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(q,Q,T,d)},Z=()=>m?m.split(/(\{\{[^}]+\}\})/g).map((Q,T)=>{let E=Q.match(/\{\{([^}]+)\}\}/);if(E){let O=E[1],A=g.find(C=>C.id===O);if(A)return jsxRuntime.jsx("span",{className:"inline-block align-baseline cursor-pointer",contentEditable:false,suppressContentEditableWarning:true,"data-chip-id":O,style:{userSelect:"none",verticalAlign:"baseline",lineHeight:"1"},onClick:C=>{C.preventDefault();let F=window.getSelection(),z=document.createRange();z.selectNode(C.currentTarget),F?.removeAllRanges(),F?.addRange(z);},children:H(A)},`chip-${O}-${T}`)}return Q.includes(`
45
+ `)?Q.split(`
46
+ `).map((O,A)=>jsxRuntime.jsxs(Oe__namespace.default.Fragment,{children:[O,A<Q.split(`
47
+ `).length-1&&jsxRuntime.jsx("br",{})]},`line-${T}-${A}`)):Q}):null;return jsxRuntime.jsx("div",{className:"group flex flex-col",children:jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(ze,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(bt,{children:jsxRuntime.jsx("div",{ref:w,contentEditable:!c,suppressContentEditableWarning:true,onInput:q=>{if(c)return;let Q=q.target,T=Q.querySelector("[data-chip-id]")!==null,E;if(T?(E=L(Q),E=E.replace(/(\{\{[^}]+\}\})\s{2,}/g,"$1 ").replace(/\s{2,}(\{\{[^}]+\}\})/g," $1")):E=Q.textContent||"",E===""){try{let C=document.createRange();C.selectNodeContents(Q),C.collapse(!0);let F=window.getSelection();F?.removeAllRanges(),F?.addRange(C),M.current=0;}catch{}B("",0);return}if(E===m)return;let O=window.getSelection(),A=0;if(O&&O.rangeCount>0)try{let C=O.getRangeAt(0);if(T){let F=0,z=!1,G=oe=>{if(z)return !0;if(oe===C.startContainer)return F+=C.startOffset,z=!0,!0;if(oe.nodeType===Node.TEXT_NODE){if(!oe.parentElement?.closest("[data-chip-id]")){if(oe.contains(C.startContainer))return F+=C.startOffset,z=!0,!0;F+=(oe.textContent||"").length;}}else if(oe.nodeType===Node.ELEMENT_NODE){let ue=oe;if(ue.hasAttribute("data-chip-id")){if(ue.contains(C.startContainer)||ue===C.startContainer){let le=ue.getAttribute("data-chip-id");return F+=`{{${le}}}`.length,z=!0,!0}let te=ue.getAttribute("data-chip-id");return F+=`{{${te}}}`.length,!1}else if(ue.tagName==="BR")return ue===C.startContainer?(z=!0,!0):(F+=1,!1)}for(let ue=0;ue<oe.childNodes.length;ue++)if(G(oe.childNodes[ue]))return !0;return !1};G(Q),A=F;}else {let F=document.createRange();F.setStart(Q,0),F.setEnd(C.startContainer,C.startOffset),A=F.toString().length;}}catch{A=E.length;}M.current=A,B(E,A);},onKeyDown:q=>{if(c)return;let Q=window.getSelection();if(!(!Q||Q.rangeCount===0))try{let T=Q.getRangeAt(0),E=T.commonAncestorContainer;if(q.key==="ArrowLeft"||q.key==="ArrowRight"){let O=E.nodeType===Node.TEXT_NODE?E.parentElement?.closest("[data-chip-id]"):E.closest("[data-chip-id]");if(O){q.preventDefault();try{let A=document.createRange(),C=window.getSelection();q.key==="ArrowLeft"?A.setStartBefore(O):A.setStartAfter(O),A.collapse(!0),C?.removeAllRanges(),C?.addRange(A);}catch{}}}if(q.key==="Backspace"){let O=null;if(O=(E.nodeType===Node.TEXT_NODE?E.parentElement?.closest("[data-chip-id]"):E.closest("[data-chip-id]"))||null,!O)if(E.nodeType===Node.TEXT_NODE){let A=E;if(T.startOffset===0&&A.parentElement){let C=A.previousSibling;if(C&&C.nodeType===Node.ELEMENT_NODE){let F=C.closest("[data-chip-id]");F&&(O=F);}}}else {let A=E;if(T.startOffset>0){let C=A.childNodes[T.startOffset-1];if(C&&C.nodeType===Node.ELEMENT_NODE){let F=C.closest("[data-chip-id]");F&&(O=F);}}}if(O){q.preventDefault(),q.stopPropagation();let A=O.getAttribute("data-chip-id");if(!A)return;let C=`{{${A}}}`,F=m.indexOf(C);if(F!==-1){let z=m.slice(0,F)+m.slice(F+C.length),G=g.filter(oe=>oe.id!==A);M.current=F;try{window.getSelection()?.removeAllRanges();}catch{}f?.(G),p?.(z);}}}}catch{}},onFocus:q=>{c||(N.onFocus&&N.onFocus(q),k(q));},onBlur:q=>{c||(N.onBlur&&N.onBlur(q),P(q));},className:W(),style:{whiteSpace:"pre-wrap",wordBreak:"break-word",...N.style},"data-placeholder":N.placeholder,children:Z()},m===""?"empty":"content")}),t&&jsxRuntime.jsx(Te,{size:o,className:"mt-3",children:t}),typeof r=="string"&&jsxRuntime.jsx(be,{size:o,className:"mt-1",children:r}),typeof r=="function"&&u&&jsxRuntime.jsx(be,{size:o,className:"mt-1",children:r(u)})]})})}function ZD({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 Oy({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,isDisabled:i,isInvalid:s,reserveErrorSpace:c=true,validationResult:l,className:d,descriptionPlacement:u="below",...m}){return jsxRuntime.jsxs(reactAriaComponents.TimeField,{...m,isDisabled:i,isRequired:a,isInvalid:s,className:ke(d,"flex flex-col gap-1"),children:[e&&jsxRuntime.jsx(ze,{size:o,tooltip:n,description:u==="tooltip"||u==="inline"?t:void 0,descriptionPlacement:u,isRequired:a,children:e}),jsxRuntime.jsx(bt,{children:jsxRuntime.jsx(reactAriaComponents.DateInput,{className:tailwindMerge.twMerge(Io({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:ZD({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(be,{size:o,children:r}):typeof r=="function"&&l?jsxRuntime.jsx(be,{size:o,children:r(l)}):t&&u==="below"?jsxRuntime.jsx(Te,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(be,{size:o,className:"mt-1",children:r}):typeof r=="function"&&l?jsxRuntime.jsx(be,{size:o,className:"mt-1",children:r(l)}):t&&u==="below"?jsxRuntime.jsx(Te,{size:o,className:"mt-1",children:t}):null})]})}function Hy({children:e,className:t=""}){return jsxRuntime.jsx("div",{className:`flex flex-col ${t}`.trim(),role:"list",children:e})}function Wy({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 rL(e){return "primary"}var oL="flex font-medium justify-center items-center gap-2 text-center transition whitespace-nowrap box-border",Gy={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]"}},nL="opacity-[--control-hover-opacity] cursor-not-allowed pointer-events-none grayscale",aL="opacity-100 cursor-pointer",iL={"top-right":"-right-2 -top-2","top-left":"-left-2 -top-2","bottom-right":"-right-2 -bottom-2","bottom-left":"-left-2 -bottom-2"},sL={primary:"bg-action-primary text-[color:var(--color-action-primary-text)]",destructive:"bg-feedback-error-border text-text-inverse"};function lL(e){let{variant:t="primary",size:r="md",isDisabled:o,isSelected:n,borderRadius:a,borderRight:i,borderLeft:s}=e,c=rL(),l=`${oL} ${n?Gy[c].selected:Gy[c].unselected}`;return l+=` ${We[r].text} ${We[r].height} ${We[r].padding} ${We[r].gap}`,l+=` ${o?nL:aL}`,a==="left"&&(l+=" rounded-l-sm"),a==="right"&&(l+=" rounded-r-sm"),i&&(l+=" border-r"),s&&(l+=" border-l"),l+=` ${Ye()}`,(l+=" focus-visible:outline-action-primary"),tailwindMerge.twMerge(l)}function Ky(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,x=()=>{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(lL(e),t),"aria-busy":s,children:x()});return u&&u>0?jsxRuntime.jsxs("div",{className:"relative",children:[b,jsxRuntime.jsx("span",{className:`absolute ${iL[p]} flex h-5 w-5 items-center justify-center rounded-full ${sL[m]} text-xs`,"aria-label":`${u} items`,children:u})]}):b}var dL={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"}},uL={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}},Ja={app:{icon:"AppWindow",category:"platform",label:{singular:"App",plural:"Apps"},description:"Workspace tools and third-party integrations"},site:{icon:"MapPin",category:"platform",label:{singular:"Site",plural:"Sites"},description:"Physical location housing energy systems"},device:{icon:"ShareNetwork",category:"platform",label:{singular:"Device",plural:"Devices"},description:"Connected, controllable energy device"},customer:{icon:"Users",category:"platform",label:{singular:"Customer",plural:"Customers"},description:"End customer or owner of one or more sites"},contact:{icon:"Users",category:"platform",label:{singular:"Contact",plural:"Contacts"},description:"Person associated with a customer or site"},program:{icon:"ClipboardText",category:"platform",label:{singular:"Program",plural:"Programs"},description:"Demand-response or virtual power plant program"},workflow:{icon:"FlowArrow",category:"platform",label:{singular:"Workflow",plural:"Workflows"},description:"Automated rule that runs in response to events"},collection:{icon:"Stack",category:"platform",label:{singular:"Collection",plural:"Collections"},description:"Named group of related entities or records"},board:{icon:"SquaresFour",category:"platform",label:{singular:"Board",plural:"Boards"},description:"Dashboard for monitoring metrics and devices"},report:{icon:"ChartLine",category:"platform",label:{singular:"Report",plural:"Reports"},description:"Saved analytics view or generated report"},event:{icon:"ClockCounterClockwise",category:"platform",label:{singular:"Event",plural:"Events"},description:"Recorded system event or logged activity"},alert:{icon:"Warning",category:"platform",label:{singular:"Alert",plural:"Alerts"},description:"Notification raised when attention is needed"},monitor:{icon:"Pulse",category:"platform",label:{singular:"Monitor",plural:"Monitors"},description:"Rule that watches a metric against a threshold"},command:{icon:"Play",category:"platform",label:{singular:"Command",plural:"Commands"},description:"Control action issued to a connected device"},source:{icon:"TextureSource",category:"grid",label:{singular:"Source",plural:"Sources"},description:"Upstream feed where the network originates"},substation:{icon:"TextureSource",category:"grid",label:{singular:"Substation",plural:"Substations"},description:"Facility that steps down transmission voltage"},capacitor:{icon:"TextureCapacitor",category:"grid",label:{singular:"Capacitor",plural:"Capacitors"},description:"Capacitor bank for power-factor and voltage support"},switch:{icon:"TextureSwitchClosed",category:"grid",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",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",label:{singular:"Relay",plural:"Relays"},description:"Microprocessor relay that senses faults and trips devices"},transformer:{icon:"TextureTransformer",category:"grid",label:{singular:"Transformer",plural:"Transformers"},description:"Transformer that steps voltage up or down"},meter:{icon:"Gauge",category:"grid",label:{singular:"Meter",plural:"Meters"},description:"Revenue meter at the point of consumption"},consumer:{icon:"Gauge",category:"grid",label:{singular:"Consumer",plural:"Consumers"},description:"Service point or customer premise on the grid"},singlePhaseOverheadLine:{icon:"TextureSinglePhaseOverheadLine",category:"grid",label:{singular:"Single-Phase Overhead Line",plural:"Single-Phase Overhead Lines"},description:"Overhead line carrying one phase conductor"},twoPhaseOverheadLine:{icon:"TextureTwoPhaseOverheadLine",category:"grid",label:{singular:"Two-Phase Overhead Line",plural:"Two-Phase Overhead Lines"},description:"Overhead line carrying two phase conductors"},threePhaseOverheadLine:{icon:"TextureThreePhaseOverheadLine",category:"grid",label:{singular:"Three-Phase Overhead Line",plural:"Three-Phase Overhead Lines"},description:"Overhead line carrying three phase conductors"},singlePhaseUndergroundLine:{icon:"TextureSinglePhaseUndergroundLine",category:"grid",label:{singular:"Single-Phase Underground Line",plural:"Single-Phase Underground Lines"},description:"Buried line carrying one phase conductor"},twoPhaseUndergroundLine:{icon:"TextureTwoPhaseUndergroundLine",category:"grid",label:{singular:"Two-Phase Underground Line",plural:"Two-Phase Underground Lines"},description:"Buried line carrying two phase conductors"},threePhaseUndergroundLine:{icon:"TextureThreePhaseUndergroundLine",category:"grid",label:{singular:"Three-Phase Underground Line",plural:"Three-Phase Underground Lines"},description:"Buried line carrying three phase conductors"},motorSwitch:{icon:"Diamond",category:"grid",label:{singular:"Motor Switch",plural:"Motor Switches"},description:"Motor-operated switch or motor load element"},recloser:{icon:"TextureRecloser",category:"grid",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",label:{singular:"Fuse",plural:"Fuses"},description:"Fusible element providing overcurrent protection"},breaker:{icon:"TextureBreaker",category:"grid",label:{singular:"Breaker",plural:"Breakers"},description:"Circuit breaker that interrupts fault current",states:{open:{color:"open"},closed:{color:"closed"}}},generator:{icon:"Wind",category:"grid",label:{singular:"Generator",plural:"Generators"},description:"Distributed generation unit feeding the grid"},regulator:{icon:"TextureRegulator",category:"grid",label:{singular:"Regulator",plural:"Regulators"},description:"Voltage regulator that holds line voltage in range"},supportStructure:{icon:"TextureSupportStructure",category:"grid",label:{singular:"Support Structure",plural:"Support Structures"},description:"Structure carrying overhead line equipment"},battery:{icon:"BatteryHigh",category:"device",label:{singular:"Battery",plural:"Batteries"},description:"Behind-the-meter battery or storage system"},evCharger:{icon:"ChargingStation",category:"device",label:{singular:"EV Charger",plural:"EV Chargers"},description:"Electric-vehicle charging station or port"},inverter:{icon:"Sun",category:"device",label:{singular:"Solar / Inverter",plural:"Solar / Inverters"},description:"Solar PV inverter and its connected array"},thermostat:{icon:"Thermometer",category:"device",label:{singular:"Thermostat",plural:"Thermostats"},description:"Smart thermostat or connected HVAC control"},vehicle:{icon:"Car",category:"device",label:{singular:"EV",plural:"EVs"},description:"Electric vehicle managed as a flexible load"},waterHeater:{icon:"Drop",category:"device",label:{singular:"Water Heater",plural:"Water Heaters"},description:"Connected or smart electric water heater"}};function pL(e){return Ja[e]}function mL(e){return Ja[e].icon}function fL(e,t=false){return t?Ja[e].label.plural:Ja[e].label.singular}function gL(e){return Ja[e].category}function bL({formId:e="dialog-form",onSubmit:t,primaryLabel:r="Save",secondaryLabel:o="Cancel",onCancel:n,primaryVariant:a,secondaryVariant:i="secondary",children:s,title:c,...l}){return jsxRuntime.jsx(Sr,{title:c,primaryAction:{label:r,onPress:()=>{let u=document.getElementById(e);u&&u.requestSubmit();},variant:a},secondaryAction:n?{label:o,onPress:n,variant:i}:void 0,...l,children:jsxRuntime.jsx(Ia,{id:e,onSubmit:t,children:s})})}function xL({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(Mi,{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(Ia,{id:e,onSubmit:t,className:"mt-2",children:s})})}function yL({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 SL={sm:"gap-2",md:"gap-4",lg:"gap-6"};function wL(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 NL({cols:e={base:1},gap:t="lg",className:r,...o}){return jsxRuntime.jsx("div",{...o,className:tailwindMerge.twMerge("grid",wL(e),SL[t],r)})}function PL({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(qt,{tag:"h3",size:"sm",children:e}):e,t?jsxRuntime.jsx(Te,{size:"lg",children:t}):null]}),jsxRuntime.jsx("div",{className:"flex flex-col gap-6",children:n}),r&&jsxRuntime.jsx("hr",{className:"mt-2 border-border-muted"})]})}function RL(){return jsxRuntime.jsx("hr",{className:"border-border-muted"})}function ML({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 LL({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(ee,{variant:"secondary",onPress:o,children:a}),jsxRuntime.jsx(ee,{type:"submit",form:e,isDisabled:!!r,children:r?"Saving...":n})]})]})}):null}function EL({when:e,message:t="You have unsaved changes. Leave anyway?"}){return Oe__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 AL({steps:e,initialStepId:t,canNavigate:r}){if(e.length===0)throw new Error("useWizard: steps array cannot be empty");let[o,n]=Oe__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 Wre(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}});exports.ActionCell=Kb;exports.ActionMenu=ma;exports.ActivityFeed=Cd;exports.ActivityFeedGroup=bs;exports.ActivityItem=xs;exports.Alert=uf;exports.AppShell=hf;exports.AreaSeries=Go;exports.AutoMobileRenderer=Cl;exports.Autocomplete=Ts;exports.Avatar=fo;exports.BREAKPOINTS=nn;exports.Badge=tt;exports.BadgeCell=Jb;exports.Banner=Rs;exports.BarSeries=Os;exports.BooleanCell=Xb;exports.BrandProvider=Em;exports.BreadcrumbItem=Ds;exports.Breadcrumbs=Ms;exports.Button=ee;exports.CUSTOM_ICON_REGISTRY=la;exports.Calendar=ba;exports.Card=Ge;exports.CardContent=fd;exports.CardFooter=gd;exports.CardHeader=pd;exports.CardMedia=md;exports.CardMobileRenderer=Sl;exports.CarouselAutoplayTrigger=Jf;exports.CarouselControl=Gf;exports.CarouselIndicator=Ud;exports.CarouselIndicatorGroup=Yf;exports.CarouselItem=Wf;exports.CarouselItemGroup=Hf;exports.CarouselNextTrigger=Kf;exports.CarouselPrevTrigger=Uf;exports.CarouselProgressText=Xf;exports.CarouselRoot=Of;exports.CategoryBarChart=wg;exports.ChartAxis=Tr;exports.ChartBottomBar=Na;exports.ChartContainer=Gg;exports.ChartContext=kr;exports.ChartEventMarkers=Ys;exports.ChartEventSpans=Js;exports.ChartTooltip=Uo;exports.Checkbox=vn;exports.CheckboxGroup=Kd;exports.Chip=$r;exports.ChipInputField=eg;exports.ClearButton=ai;exports.CodeEditor=og;exports.Collapse=xa;exports.CollapseContent=Ho;exports.CollapseHeader=Oo;exports.CollapseItem=zo;exports.ColorField=CN;exports.ColorModeProvider=Um;exports.CommandPalette=Bx;exports.Confirm=cg;exports.ConnectionStatusBadge=dg;exports.ContactCard=ug;exports.ContactMetaCell=qb;exports.ContactMetaDisplay=Fs;exports.ContainerQueryProvider=mg;exports.CopyToClipboard=Fo;exports.CustomCell=Qb;exports.DEFAULT_MAP_TYPE=ql;exports.DataControls=Ib;exports.DataTable=Nx;exports.DateCell=Zb;exports.DateField=Vb;exports.DateRangePicker=al;exports.Description=Te;exports.DeviceHealthBadge=Tx;exports.DeviceMetaCell=$b;exports.DeviceMetaDisplay=ul;exports.DeviceStateBadge=Bn;exports.DeviceStateCell=rx;exports.DeviceStateWithMetric=fl;exports.DeviceTypeIcon=Rx;exports.Dialog=Sr;exports.DialogForm=bL;exports.DialogHeader=zt;exports.Drawer=Mi;exports.DrawerForm=xL;exports.ENTITY_CATEGORY_CONFIG=uL;exports.ENTITY_CONFIG=Ja;exports.EmptyState=Zs;exports.EnrollmentStatusBadge=Dx;exports.ErrorBoundary=Vr;exports.FieldError=be;exports.FieldGroup=Cf;exports.FileUpload=Ex;exports.FilterChips=Fb;exports.FilterDialog=Wb;exports.FirmwareVersionBadge=Ix;exports.Form=Ia;exports.FormActions=yL;exports.FormDivider=RL;exports.FormGrid=NL;exports.FormSection=PL;exports.FormStepper=ML;exports.FormatRegistry=ne;exports.FormattedCell=nx;exports.FunnelSeries=Jg;exports.GRID_STATE_COLORS=dL;exports.GlobalSearch=Ox;exports.Grid=Yu;exports.GridStateBadge=ml;exports.Heading=qt;exports.HierarchyExplorer=mh;exports.HorizontalBarCell=Au;exports.HoverCard=xR;exports.Icon=V;exports.InfiniteScrollIndicator=Cr;exports.Input=ws;exports.InputWrapper=bt;exports.InteractiveMap=Wi;exports.Kpi=xh;exports.KpiGroup=$u;exports.Label=ze;exports.LineSeries=kn;exports.List=wh;exports.ListBox=RR;exports.ListBoxItem=Zt;exports.ListItem=kh;exports.ListPane=Th;exports.Loader=mo;exports.Logo=ga;exports.MAP_TYPES=Zh;exports.Meter=ry;exports.MiniBarCell=Iu;exports.ModalBackdrop=sr;exports.Notice=ec;exports.NoticeContainer=tc;exports.NoticeProvider=ny;exports.NumberCell=cx;exports.NumberField=Ni;exports.PageBanner=Ef;exports.PageLayout=jn;exports.PercentBarCell=Fu;exports.PlaceSearch=py;exports.Popover=nt;exports.ProgressBar=fy;exports.Prose=gy;exports.Radio=vy;exports.RadioCard=by;exports.RadioCardGroup=xy;exports.RadioGroup=yy;exports.RangeCalendar=Ra;exports.ResultsCount=vi;exports.RichTextEditor=wy;exports.SKELETON_SIZES=jo;exports.SOURCE_UNIT_TO_WH=zc;exports.SaveBar=LL;exports.SearchControl=En;exports.SearchEmptyState=Hx;exports.SearchLoadingState=Gx;exports.SearchResultGroup=Kx;exports.SearchResultItem=Yx;exports.SearchResultsList=Jx;exports.SearchTrigger=jx;exports.Section=Ga;exports.SectionNav=ac;exports.SegmentedControl=$s;exports.Select=gn;exports.SelectCell=ux;exports.SideNav=ys;exports.SiteCard=Ny;exports.SiteContactCard=Ty;exports.SiteMetaCell=mx;exports.SiteMetaDisplay=xl;exports.Skeleton=K;exports.Slider=Py;exports.SortControl=Ci;exports.SparklineCell=Bu;exports.SplitPane=pc;exports.StackNav=vs;exports.StatList=Dl;exports.StaticMap=Wa;exports.Switch=il;exports.Tab=dc;exports.TabList=cc;exports.TabPanel=cy;exports.Tabs=lc;exports.TextArea=Ay;exports.TextAreaWithChips=Vy;exports.TextCell=xx;exports.TextField=Mr;exports.TextLink=Qe;exports.TiledTimeSeriesChart=Qs;exports.TiledTimeSeriesExplorer=Mb;exports.TimeControls=el;exports.TimeField=Oy;exports.Timeline=Hy;exports.TimelineItem=Wy;exports.ToggleButton=Ky;exports.Tooltip=Qt;exports.TopNav=ni;exports.Tray=at;exports.UnsavedChangesPrompt=EL;exports.activeDeviceStates=q1;exports.addFilterCondition=Xo;exports.applyDataOperations=hc;exports.assembleSeries=ub;exports.autoScaleCurrent=t0;exports.autoScaleDistance=_p;exports.autoScaleEnergy=rm;exports.autoScalePower=c0;exports.autoScaleResistance=d0;exports.autoScaleVoltage=x0;exports.baselineFromPoint=JN;exports.camelCaseToWords=hm;exports.capitalize=bm;exports.celsiusToFahrenheit=u0;exports.celsiusToKelvin=PA;exports.centimetersToInches=lA;exports.clearColorCache=ds;exports.createCategoryColorMap=iC;exports.createEmptyFilter=Si;exports.createFilter=p1;exports.createFilters=m1;exports.createFormat=e5;exports.createTextureIcon=ot;exports.createTiledCameraSyncGroup=Xg;exports.createXScale=tu;exports.createYScale=ui;exports.csvUnitFor=Qc;exports.csvValueFor=Cm;exports.defaultMargin=Ae;exports.deviceStateLabels=Q1;exports.deviceStateMetricFormats=sU;exports.emptyStore=pb;exports.enumToSentenceCase=g0;exports.exportChart=au;exports.exportTableAsCSV=kc;exports.fahrenheitToCelsius=p0;exports.fahrenheitToKelvin=RA;exports.feetToMeters=$E;exports.feetToMiles=rA;exports.filterToChips=f1;exports.formatBoolean=Kp;exports.formatCapacity=LE;exports.formatComponentValue=Xr;exports.formatCurrency=qp;exports.formatCurrent=Mc;exports.formatDate=Qp;exports.formatDistance=$p;exports.formatEmptyValue=cl;exports.formatEnergy=Oc;exports.formatFieldValue=Fr;exports.formatInternationalPhone=Hc;exports.formatNumber=jp;exports.formatPercent=Jp;exports.formatPhone=om;exports.formatPhoneNumber=na;exports.formatPower=Kc;exports.formatPowerRating=EE;exports.formatResistance=Jc;exports.formatTemperature=um;exports.formatText=vm;exports.formatUSPhone=rs;exports.formatVoltage=qc;exports.getBadgeClasses=Gb;exports.getBooleanBadgeVariant=Ub;exports.getCellAlignmentClasses=Ru;exports.getCellContainerClasses=Me;exports.getCellTextClasses=Dr;exports.getContrastingTextColor=sC;exports.getDateParts=XE;exports.getDefaultChartColor=Qa;exports.getDefaultColors=Im;exports.getDeviceStateDisplayLabel=Lu;exports.getDeviceStateLabel=Lu;exports.getEntityCategory=gL;exports.getEntityConfig=pL;exports.getEntityIcon=mL;exports.getEntityLabel=fL;exports.getEventColor=bo;exports.getExportFormatName=xk;exports.getExportHeaders=Gv;exports.getFieldGroupStyles=TS;exports.getFilterFields=In;exports.getGridStateLabel=tx;exports.getInputBackgroundStyles=vf;exports.getInputBaseStyles=Ft;exports.getInputStateStyles=Io;exports.getLinkClasses=Mu;exports.getNumericColorClasses=dl;exports.getResolvedColor=Nt;exports.getSkeletonSize=or;exports.getStateTone=Wre;exports.getThemeCategoricalColors=sn;exports.getYFormatSettings=Or;exports.gridStateLabels=_1;exports.inchesToCentimeters=sA;exports.isActiveDeviceState=Du;exports.isActiveState=Du;exports.isCustomPinsLayer=lp;exports.isExportSupported=bk;exports.isFilterEmpty=nl;exports.isGeoJsonLayer=sp;exports.isLightColor=Fm;exports.isNil=pe;exports.isRasterLayer=cp;exports.isVectorLayer=ip;exports.kelvinToCelsius=m0;exports.kelvinToFahrenheit=MA;exports.kilometersToMiles=tA;exports.layer=ap;exports.mapValuesToCategoricalColors=td;exports.metersToFeet=_E;exports.metersToMiles=oA;exports.metersToYards=iA;exports.milesToFeet=Zp;exports.milesToKilometers=eA;exports.milesToMeters=nA;exports.parseBoolean=Do;exports.pickEnergyUnit=Vc;exports.prepareTableDataForExport=Wv;exports.registerPhosphorIcon=ey;exports.removeFilterCondition=An;exports.resolveValue=Ce;exports.snakeCaseToWords=ym;exports.temperatureStringToSymbol=im;exports.tierForViewport=mu;exports.tileIndexAt=xT;exports.tileKey=tr;exports.tileReducer=mb;exports.tilesForViewport=Ko;exports.toA=GE;exports.toActiveInactive=Jv;exports.toAmps=es;exports.toBoolean=Mo;exports.toCelsius=lm;exports.toCentimeters=i0;exports.toCheckmark=jv;exports.toCompactNumber=_v;exports.toCurrency=Xp;exports.toCustomDateFormat=a0;exports.toDateString=r0;exports.toEnabledDisabled=Kv;exports.toFahrenheit=sm;exports.toFeet=Ec;exports.toFloat=Qv;exports.toFormattedNumber=Zv;exports.toFullDateTime=o0;exports.toGW=vA;exports.toGWh=tm;exports.toGigawatts=Uc;exports.toISOString=n0;exports.toInches=l0;exports.toInteger=qv;exports.toKA=UE;exports.toKV=VA;exports.toKW=hA;exports.toKelvin=cm;exports.toKiloamps=Rc;exports.toKilohms=nm;exports.toKilometers=Lc;exports.toKilovolts=jc;exports.toKilowatts=Wc;exports.toLowerCase=mm;exports.toMA=WE;exports.toMV=FA;exports.toMW=yA;exports.toMWh=em;exports.toMegawatts=Gc;exports.toMegohms=am;exports.toMeters=Dc;exports.toMiles=Ac;exports.toMilliamps=Pc;exports.toMillimeters=s0;exports.toMilliohms=Yc;exports.toMillivolts=Xc;exports.toNauticalMiles=ZE;exports.toOhms=ns;exports.toOnOff=Yv;exports.toPercentage=Yp;exports.toRelativeTime=ts;exports.toScientificNotation=$v;exports.toSecret=b0;exports.toSentenceCase=fm;exports.toTemperature=dm;exports.toTitleCase=gm;exports.toTrueFalse=Xv;exports.toUpperCase=pm;exports.toV=BA;exports.toVolts=ss;exports.toW=xA;exports.toWatts=os;exports.toWh=Fc;exports.toYards=Ic;exports.tokWh=Bc;exports.truncateEnd=is;exports.truncateMiddle=aa;exports.truncateStart=as;exports.typeRole=pt;exports.typographyRole=jr;exports.ucFirst=xm;exports.useBreakpoint=Jt;exports.useChartContext=Nn;exports.useClientDataControls=Qi;exports.useColorMode=It;exports.useComponentFormatter=BE;exports.useContainerBreakpoint=Ip;exports.useDataControls=Fp;exports.useDebounce=Po;exports.useElementSize=oa;exports.useInfiniteScroll=Ro;exports.useInputFocus=Nr;exports.useLocalStorage=_i;exports.useMediaQuery=Yt;exports.useNotice=iy;exports.useServerDataControls=Zi;exports.useTableExport=Up;exports.useTileWindow=vb;exports.useTiledTimeSeries=bu;exports.useWizard=AL;exports.wrapWithLink=no;exports.yardsToMeters=aA;//# sourceMappingURL=index.cjs.map
84
48
  //# sourceMappingURL=index.cjs.map