@texturehq/edges 1.4.0 → 1.5.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/components.manifest.json +30 -6
- package/dist/generated/viz-runtime.css +3 -3
- package/dist/index.cjs +10 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +121 -18
- package/dist/index.d.ts +121 -18
- package/dist/index.js +10 -10
- package/dist/index.js.map +1 -1
- package/dist/{server-Utz6Sv9w.d.ts → server-B74FiF5M.d.cts} +110 -9
- package/dist/{server-Utz6Sv9w.d.cts → server-B74FiF5M.d.ts} +110 -9
- package/dist/server.cjs +1 -1
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +1 -1
- package/dist/server.d.ts +1 -1
- package/dist/server.js +1 -1
- package/dist/server.js.map +1 -1
- package/dist/styles.css +68 -84
- package/dist/utilities.manifest.json +12 -4
- package/package.json +3 -3
- package/dist/neutral-dark-ULOPSLHN.png +0 -0
- package/dist/neutral-light-IAPUNYDO.png +0 -0
- package/dist/satelite-light-CU3QG3IP.png +0 -0
- package/dist/streets-dark-47NJZQUE.png +0 -0
- package/dist/streets-light-YXBEDGBR.png +0 -0
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
'use strict';var lt=require('react'),jsxRuntime=require('react/jsx-runtime'),luxon=require('luxon'),reactAriaComponents=require('react-aria-components'),tailwindMerge=require('tailwind-merge'),Yc=require('@phosphor-icons/react'),reactStately=require('react-stately'),lucideReact=require('lucide-react'),bp=require('react-ace');require('ace-builds/src-noconflict/mode-json'),require('ace-builds/src-noconflict/mode-javascript'),require('ace-builds/src-noconflict/mode-typescript'),require('ace-builds/src-noconflict/mode-html'),require('ace-builds/src-noconflict/mode-css'),require('ace-builds/src-noconflict/mode-markdown'),require('ace-builds/src-noconflict/mode-yaml'),require('ace-builds/src-noconflict/mode-xml'),require('ace-builds/src-noconflict/mode-python'),require('ace-builds/src-noconflict/mode-sql'),require('ace-builds/src-noconflict/theme-github_dark'),require('ace-builds/src-noconflict/theme-github'),require('ace-builds/src-noconflict/ext-language_tools');var curve=require('@visx/curve'),shape=require('@visx/shape'),framerMotion=require('framer-motion'),axis=require('@visx/axis'),scale=require('@visx/scale'),d3Array=require('d3-array'),responsive=require('@visx/responsive'),fileSaver=require('file-saver'),jp=require('papaparse'),Cg=require('react-map-gl');require('mapbox-gl/dist/mapbox-gl.css');var reactDom=require('react-dom'),vb=require('@tiptap/extension-link'),react=require('@tiptap/react'),menus=require('@tiptap/react/menus'),wb=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 lt__namespace=/*#__PURE__*/_interopNamespace(lt);var Yc__namespace=/*#__PURE__*/_interopNamespace(Yc);var bp__default=/*#__PURE__*/_interopDefault(bp);var jp__default=/*#__PURE__*/_interopDefault(jp);var Cg__default=/*#__PURE__*/_interopDefault(Cg);var vb__default=/*#__PURE__*/_interopDefault(vb);var wb__default=/*#__PURE__*/_interopDefault(wb);var gc=Object.defineProperty;var bc=(e,t,r)=>t in e?gc(e,t,{enumerable:true,configurable:true,writable:true,value:r}):e[t]=r;var ir=(e,t,r)=>bc(e,typeof t!="symbol"?t+"":t,r);function $r(e,t=300){let[r,o]=lt.useState(e);return lt.useEffect(()=>{let n=setTimeout(()=>o(e),t);return ()=>clearTimeout(n)},[e,t]),r}function Ta(e,t){let[r,o]=lt.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}});lt.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=lt.useCallback(i=>{try{o(l=>i instanceof Function?i(l):i);}catch(l){console.error(`Error setting value for localStorage key "${e}":`,l);}},[e]),a=lt.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 zo=class{constructor(){ir(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();}},P=new zo;var Ke=(e,t="Yes",r="No")=>e==null?null:e?t:r,Cc=e=>Ke(e,"Enabled","Disabled"),Nc=e=>Ke(e,"On","Off"),Sc=e=>Ke(e,"Active","Inactive"),wc=e=>Ke(e,"True","False"),Pc=e=>Ke(e,"\u2713","\u2717"),_e=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},La=(e,t)=>{if(t.hideWhenNull&&e==null)return null;if(e==null)return t.nullText??null;let r=_e(e);return r===null?t.nullText??null:Ke(r,t.trueText??"Yes",t.falseText??"No")};P.register("boolean",(e,t,r)=>{let o=_e(e);return o!==null?Ke(o,typeof t=="string"?t:"Yes",typeof r=="string"?r:"No"):null});P.register("yesNo",e=>{let t=_e(e);return t!==null?Ke(t,"Yes","No"):null});P.register("enabledDisabled",e=>{let t=_e(e);return t!==null?Cc(t):null});P.register("onOff",e=>{let t=_e(e);return t!==null?Nc(t):null});P.register("activeInactive",e=>{let t=_e(e);return t!==null?Sc(t):null});P.register("trueFalse",e=>{let t=_e(e);return t!==null?wc(t):null});P.register("checkmark",e=>{let t=_e(e);return t!==null?Pc(t):null});function lr({value:e,formatter:t,emptyClassName:r="text-text-muted",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=sr(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=sr(e,{type:"date"});return jsxRuntime.jsx("time",{dateTime:e.toISOString(),title:e.toISOString(),children:n})}if(typeof e=="number")return sr(e,{type:"number"});if(typeof e=="boolean")return sr(e,{type:"boolean"})}return String(e)}function Vx(e,t,r){return lt__namespace.default.useCallback(o=>lr({value:o,formatter:e,emptyClassName:t,emptyText:r}),[e,t,r])}var D=e=>e==null,Rc=(e,t=0)=>D(e)?null:`${e.toFixed(t)}%`,Tc=e=>D(e)?null:Math.round(e).toString(),Lc=(e,t=1)=>D(e)?null:e.toFixed(t),Fc=(e,t,r=true)=>{if(D(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)},Mc=(e,t="short")=>D(e)?null:new Intl.NumberFormat("en-US",{notation:"compact",compactDisplay:t}).format(e),Ic=(e,t=2)=>D(e)?null:e.toExponential(t),Fa=(e,t="USD",r)=>{if(D(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)},Ma=(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)},Ia=(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:Fa(r,t.currency,t)};P.register("percentage",(e,t)=>typeof e=="number"?Rc(e,typeof t=="number"?t:0):null);P.register("integer",e=>typeof e=="number"?Tc(e):null);P.register("float",(e,t)=>typeof e=="number"?Lc(e,typeof t=="number"?t:1):null);P.register("number",(e,t,r)=>{let o=typeof e=="string"?parseFloat(e):Number(e);return isNaN(o)?null:Fc(o,typeof t=="number"?t:void 0,typeof r=="boolean"?r:true)});P.register("compact",(e,t)=>typeof e=="number"?Mc(e,t==="long"?"long":"short"):null);P.register("scientific",(e,t)=>typeof e=="number"?Ic(e,typeof t=="number"?t:2):null);P.register("currency",(e,t,r)=>typeof e=="number"?Fa(e,typeof t=="string"?t:"USD",typeof r=="object"&&r!==null?r:{}):null);var Ho=(e,t=0)=>{if(D(e))return null;let r=e*1e3;return t===0?`${Math.round(r)} mA`:`${r.toFixed(t)} mA`},Vr=(e,t=1)=>D(e)?null:`${e.toFixed(t)} A`,Go=(e,t=2)=>D(e)?null:`${(e/1e3).toFixed(t)} kA`,Ec=(e,t)=>{if(D(e))return null;let r=Math.abs(e);return r>=1e3?Go(e,t??2):r<1?Ho(e,t??0):Vr(e,t??1)},Oo=(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 Go(r,o??2);case "mA":return Ho(r,o??0);case "A":return Vr(r,o??1)}return t.autoScale!==false?Ec(r,o):Vr(r,o??1)};P.register("current",Oo);var _x=Ho,Zx=Vr,Ux=Go;var at=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},Dc=(e,t=false,r)=>{if(!e)return null;let o=at(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)},Ac=e=>{if(!e)return null;let t=at(e);return t?t.toRelative():"Invalid Date"},$c=(e,t)=>{if(!e)return null;let r=at(e);return r?(t?r.setZone(t):r).toLocaleString(luxon.DateTime.DATETIME_MED_WITH_WEEKDAY):"Invalid Date"},Bc=e=>{if(!e)return null;let t=at(e);return t?t.toISO():null},Vc=(e,t,r)=>{if(!e)return null;let o=at(e);return o?(r?o.setZone(r):o).toFormat(t):"Invalid Date"},Yx=e=>{let t=at(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},Ea=(e,t)=>{if(t.hideWhenNull&&e==null)return null;if(e==null)return t.nullText??null;let r=at(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)};P.register("date",(e,t,r)=>Dc(e,typeof t=="boolean"?t:false,typeof r=="string"?r:void 0));P.register("relativeTime",e=>Ac(e));P.register("fullDateTime",(e,t)=>$c(e,typeof t=="string"?t:void 0));P.register("isoString",e=>Bc(e));P.register("customDateFormat",(e,t,r)=>typeof t=="string"?Vc(e,t,typeof r=="string"?r:void 0):null);var Wo=(e,t=1)=>D(e)?null:`${e.toFixed(t)} m`,zc=(e,t=1)=>D(e)?null:`${(e*100).toFixed(t)} cm`,Hc=(e,t=0)=>D(e)?null:`${(e*1e3).toFixed(t)} mm`,Ko=(e,t=1)=>D(e)?null:`${(e/1e3).toFixed(t)} km`,_o=(e,t=0)=>D(e)?null:`${e.toFixed(t)} ft`,Gc=(e,t=1)=>D(e)?null:`${e.toFixed(t)} in`,Zo=(e,t=1)=>D(e)?null:`${e.toFixed(t)} mi`,Uo=(e,t=0)=>D(e)?null:`${e.toFixed(t)} yd`,th=(e,t=1)=>D(e)?null:`${e.toFixed(t)} nm`,rh=e=>e*3.28084,oh=e=>e/3.28084,nh=e=>e*1.60934,ah=e=>e/1.60934,ih=e=>e/5280,Da=e=>e*5280,sh=e=>e/1609.34,lh=e=>e*1609.34,ch=e=>e*.9144,dh=e=>e/.9144,uh=e=>e*2.54,ph=e=>e/2.54,Aa=(e,t=false,r=1)=>{if(D(e))return null;let o=Math.abs(e);return t?o>=1e3?Ko(e,r):o<.01?Hc(e*1e3,0):o<1?zc(e*100,r):Wo(e,r):o<.01?_o(Da(e),0):o<.1?Uo(Da(e)/3,0):Zo(e,r)},$a=(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 Aa(r,n,o)}switch(t.unit){case "km":return Ko(r,o);case "ft":return _o(r,o);case "mi":return Zo(r,o);case "yd":return Uo(r,o);case "m":default:return Wo(r,o)}};P.register("miles",(e,t)=>typeof e=="number"?Zo(e,typeof t=="number"?t:1):null);P.register("kilometers",(e,t)=>typeof e=="number"?Ko(e,typeof t=="number"?t:1):null);P.register("meters",(e,t)=>typeof e=="number"?Wo(e,typeof t=="number"?t:1):null);P.register("feet",(e,t)=>typeof e=="number"?_o(e,typeof t=="number"?t:0):null);P.register("yards",(e,t)=>typeof e=="number"?Uo(e,typeof t=="number"?t:0):null);P.register("inches",(e,t)=>typeof e=="number"?Gc(e,typeof t=="number"?t:1):null);P.register("autoScaleDistance",(e,t,r)=>typeof e=="number"?Aa(e,typeof t=="boolean"?t:false,typeof r=="number"?r:1):null);var jo=(e,t=1)=>D(e)?null:`${e.toFixed(t)} Wh`,qo=(e,t=1)=>D(e)?null:`${(e/1e3).toFixed(t)} kWh`,Ba=(e,t=1)=>D(e)?null:`${(e/1e6).toFixed(t)} MWh`,Va=(e,t=1)=>D(e)?null:`${(e/1e9).toFixed(t)} GWh`,za=(e,t=1)=>{if(D(e))return null;let r=Math.abs(e);return r>=1e9?Va(e,t):r>=1e6?Ba(e,t):r>=1e3?qo(e,t):jo(e,t)},Xo=(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.unit)switch(t.unit){case "GWh":return Va(r,o);case "MWh":return Ba(r,o);case "kWh":return qo(r,o);case "Wh":return jo(r,o)}return t.autoScale!==false?za(r,o):jo(r,o)};P.register("kWh",e=>typeof e=="number"?qo(e):null);P.register("autoScaleEnergy",(e,t)=>typeof e=="number"?za(e,typeof t=="number"?t:1):null);P.register("energy",Xo);var zr=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},Yo=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():zr(e)},Ha=e=>e?e.startsWith("+")||e.length>11?Yo(e):zr(e):null,Ga=(e,t)=>{if(t.hideWhenNull&&e==null)return null;if(e==null)return t.nullText??null;let r=String(e);if(t.international)return Yo(r);switch(t.country){case "US":case "CA":return zr(r);default:return Ha(r)}};P.register("phoneNumber",e=>typeof e=="string"?Ha(e):null);P.register("usPhone",e=>typeof e=="string"?zr(e):null);P.register("internationalPhone",e=>typeof e=="string"?Yo(e):null);var Hr=(e,t=0)=>D(e)?null:t===0?`${Math.round(e)} W`:`${e.toFixed(t)} W`,Jo=(e,t=1)=>D(e)?null:`${(e/1e3).toFixed(t)} kW`,Qo=(e,t=1)=>D(e)?null:`${(e/1e6).toFixed(t)} MW`,en=(e,t=2)=>D(e)?null:`${(e/1e9).toFixed(t)} GW`,Oc=(e,t)=>{if(D(e))return null;let r=Math.abs(e);return r>=1e9?en(e,t??2):r>=1e6?Qo(e,t??1):r>=1e3?Jo(e,t??1):Hr(e,t??0)},tn=(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 en(r,o??2);case "MW":return Qo(r,o??1);case "kW":return Jo(r,o??1);case "W":return Hr(r,o??0)}return t.autoScale!==false?Oc(r,o):Hr(r,o??0)};P.register("power",tn);var Ch=Hr,Nh=Jo,Sh=Qo,wh=en;var rn=(e,t=1)=>D(e)?null:`${(e*1e3).toFixed(t)} m\u03A9`,Gr=(e,t=1)=>D(e)?null:`${e.toFixed(t)} \u03A9`,Oa=(e,t=1)=>D(e)?null:`${(e/1e3).toFixed(t)} k\u03A9`,Wa=(e,t=2)=>D(e)?null:`${(e/1e6).toFixed(t)} M\u03A9`,Wc=(e,t)=>{if(D(e))return null;let r=Math.abs(e);return r>=1e6?Wa(e,t??2):r>=1e3?Oa(e,t??1):r<1?rn(e,t??1):Gr(e,t??1)},on=(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 Wa(r,o??2);case "k\u03A9":return Oa(r,o??1);case "m\u03A9":return rn(r,o??1);case "\u03A9":return Gr(r,o??1)}return t.autoScale!==false?Wc(r,o):Gr(r,o??1)};P.register("resistance",on);P.register("ohms",e=>typeof e=="number"?Gr(e):null);P.register("milliohms",e=>typeof e=="number"?rn(e):null);var Ka=e=>{switch(e){case "FAHRENHEIT":return "F";case "CELSIUS":return "C";case "KELVIN":return "K";default:return "F"}},_a=(e,t=0)=>D(e)?null:`${e.toFixed(t)}\xB0F`,Za=(e,t=true,r=0)=>D(e)?null:`${(t?(e-32)*(5/9):e).toFixed(r)}\xB0C`,Ua=(e,t=true,r=0)=>D(e)?null:`${(t?(e-32)*(5/9)+273.15:e+273.15).toFixed(r)}K`,Kc=e=>e*9/5+32,_c=e=>(e-32)*(5/9),Mh=e=>e+273.15,Zc=e=>e-273.15,Ih=e=>_c(e)+273.15,Eh=e=>Kc(Zc(e)),ja=(e,t="F",r=0)=>{if(D(e))return null;switch(typeof t=="string"&&t.length>1?Ka(t):t){case "C":return Za(e,true,r);case "K":return Ua(e,true,r);case "F":default:return _a(e,r)}},qa=(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?Ka(n):n){case "C":return ((r-32)*.5555555555555556).toFixed(o);case "K":return ((r-32)*.5555555555555556+273.15).toFixed(o);case "F":default:return r.toFixed(o)}return ja(r,n,o)};P.register("temperature",(e,t,r)=>typeof e=="number"?ja(e,typeof t=="string"?t:"F",typeof r=="number"?r:0):null);P.register("fahrenheit",(e,t)=>typeof e=="number"?_a(e,typeof t=="number"?t:0):null);P.register("celsius",(e,t,r)=>typeof e=="number"?Za(e,typeof t=="boolean"?t:true,typeof r=="number"?r:0):null);P.register("kelvin",(e,t,r)=>typeof e=="number"?Ua(e,typeof t=="boolean"?t:true,typeof r=="number"?r:0):null);var Uc=(e,t)=>!!(t.hideWhenNull&&e==null||t.hideWhenZero&&e===0),Xa=e=>e?.toUpperCase()??"",Ya=e=>e?.toLowerCase()??"",Ja=e=>e?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():"",Qa=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(" ")},ei=e=>e?e.split(/\s+/).map(t=>t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()).join(" "):"",ti=e=>e?e.charAt(0).toUpperCase()+e.slice(1):"",ri=e=>e?e.replace(/([A-Z])/g," $1").replace(/^./,t=>t.toUpperCase()).trim():"",oi=e=>e?e.toLowerCase().split("_").map(t=>ti(t)).join(" "):"",jc=e=>e?e.includes("_")?oi(e):e.toUpperCase()===e?ti(e.toLowerCase()):ri(e):"",ni=(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)}`},ai=(e,t=8)=>e?e.length<=t?e:`...${e.slice(-t)}`:"",ii=(e,t=16,r="...")=>e?e.length<=t?e:e.slice(0,t)+r:"",qc=e=>{if(!e)return "";let t=e.toString(),r=t.slice(-4),o=t.length-4;return o>0?"*".repeat(o)+r:t},si=(e,t)=>{if(Uc(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=Xa(r);break;case "lowercase":r=Ya(r);break;case "capitalize":r=ei(r);break;case "titleCase":r=Qa(r);break;case "sentenceCase":r=Ja(r);break}}),t.truncate){let{length:o,position:n,ellipsis:a="..."}=t.truncate;switch(n){case "start":r=ai(r,o);break;case "middle":r=ni(r,o);break;case "end":r=ii(r,o,a);break}}return r};P.register("uppercase",e=>Xa(String(e)));P.register("lowercase",e=>Ya(String(e)));P.register("sentenceCase",e=>Ja(String(e)));P.register("titleCase",e=>Qa(String(e)));P.register("capitalize",e=>ei(String(e)));P.register("camelCaseToWords",e=>ri(String(e)));P.register("snakeCaseToWords",e=>oi(String(e)));P.register("enumToSentenceCase",e=>jc(String(e)));P.register("truncateMiddle",(e,t)=>ni(String(e),typeof t=="number"?t:16));P.register("truncateStart",(e,t)=>ai(String(e),typeof t=="number"?t:8));P.register("truncateEnd",(e,t,r)=>ii(String(e),typeof t=="number"?t:16,typeof r=="string"?r:"..."));P.register("secret",e=>qc(String(e)));var nn=(e,t=0)=>{if(D(e))return null;let r=e*1e3;return t===0?`${Math.round(r)} mV`:`${r.toFixed(t)} mV`},Or=(e,t=0)=>D(e)?null:t===0?`${Math.round(e)} V`:`${e.toFixed(t)} V`,an=(e,t=1)=>D(e)?null:`${(e/1e3).toFixed(t)} kV`,Xc=(e,t)=>{if(D(e))return null;let r=Math.abs(e);return r>=1e3?an(e,t??1):r<1?nn(e,t??0):Or(e,t??0)},sn=(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 an(r,o??1);case "mV":return nn(r,o??0);case "V":return Or(r,o??0)}return t.autoScale!==false?Xc(r,o):Or(r,o??0)};P.register("voltage",sn);var zh=nn,Hh=Or,Gh=an;var sr=(e,t)=>{switch(t.type){case "text":return si(e,t);case "number":return Ma(e,t);case "currency":return Ia(e,t);case "date":return Ea(e,t);case "boolean":return La(e,t);case "energy":return Xo(e,t);case "power":return tn(e,t);case "voltage":return sn(e,t);case "current":return Oo(e,t);case "resistance":return on(e,t);case "temperature":return qa(e,t);case "distance":return $a(e,t);case "phone":return Ga(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}},ty=(e,t)=>({type:e,...t});var It={xs:16,sm:20,md:24,lg:32,xl:40,"2xl":48},v=lt.memo(({name:e,size:t="md",color:r,weight:o="regular",className:n,ariaLabel:a,...i})=>{let l=Yc__namespace[e];if(!l)return process.env.NODE_ENV==="development"&&console.error(`Icon "${e}" not found in @phosphor-icons/react`),null;let s=typeof t=="string"&&t in It?It[t]:t,d=tailwindMerge.twMerge("inline-block flex-shrink-0",!r&&"text-current",n);return jsxRuntime.jsx(l,{...i,size:s,color:r,weight:o,className:d,"aria-label":a||`${e} icon`,"data-testid":`icon-${e}`})});v.displayName="Icon";var di=lt.memo(({variant:e="subtle",shape:t="square",containerSize:r,containerClassName:o,size:n="md",className:a,name:i,color:l,weight:s,ariaLabel:d,ref:p,...c})=>{let u=typeof n=="string"&&n in It?It[n]:n,m=r?typeof r=="string"&&r in It?It[r]:r:u*1.75,b=tailwindMerge.twMerge("inline-flex items-center justify-center flex-shrink-0",t==="circle"?"rounded-full":"rounded-lg",e==="subtle"&&"bg-gray-100 dark:bg-gray-800",e==="solid"&&"bg-brand text-white",e==="outline"&&"border-2 border-current",o);return jsxRuntime.jsx("div",{className:b,style:{width:m,height:m},children:jsxRuntime.jsx(v,{...c,name:i,size:n,color:l,weight:s,className:a,ariaLabel:d})})});di.displayName="IconWithContainer";function pi({children:e,items:t,className:r,align:o="left",textAlign:n="left",size:a="md",onAction:i}){return jsxRuntime.jsx("div",{className:r,children:jsxRuntime.jsxs(reactAriaComponents.MenuTrigger,{children:[e,jsxRuntime.jsx(reactAriaComponents.Popover,{className:tailwindMerge.twMerge("w-fit min-w-[180px] overflow-auto rounded-md border border-border-default","bg-background-surface p-1 shadow-lg","entering:animate-in entering:fade-in entering:zoom-in-95","exiting:animate-out exiting:fade-out exiting:zoom-out-95"),placement:o==="right"?"bottom end":"bottom start",children:jsxRuntime.jsx(reactAriaComponents.Menu,{className:"outline-none",children:t.map(l=>jsxRuntime.jsx(rd,{id:l.id,onAction:()=>l.onAction?.()||i?.(l),textAlign:n,size:a,iconName:l.iconName,isDisabled:l.disabled,variant:l.variant,"data-testid":l.testId,children:l.name},l.id))})})]})})}function rd({textAlign:e="left",iconName:t,size:r="md",isDisabled:o,children:n,variant:a="default",...i}){let l={sm:"px-3 py-1.5 text-sm",md:"px-4 py-2 text-base"},s={default:"text-text-body hover:bg-background-hover focus:bg-background-hover",destructive:"text-feedback-error-text hover:bg-feedback-error-background focus:bg-feedback-error-background"};return jsxRuntime.jsxs(reactAriaComponents.MenuItem,{...i,isDisabled:o,className:tailwindMerge.twMerge("group box-border flex w-full cursor-pointer items-center rounded-sm outline-none transition-colors",l[r],s[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-2 flex-shrink-0"}),jsxRuntime.jsx("span",{className:"flex-1",children:n}),t&&e==="right"&&jsxRuntime.jsx(v,{name:t,size:r==="sm"?16:20,className:"ml-2 flex-shrink-0"})]})}var Wr=({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-body)",t){let s=r||270,d=s/270*80;return jsxRuntime.jsxs("svg",{width:s,height:d,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 Kr=({topItems:e=[],bottomItems:t=[],logo:r,showLogo:o=true,linkComponent:n="a",className:a="",mobileMenuId:i="app-mobile-menu",sidebarCollapseId:l="app-sidebar-collapse"})=>{let s=u=>u.length>0&&"items"in u[0],d=u=>s(u)?u:[{id:"default-section",items:u}],p=(u,m,b)=>jsxRuntime.jsxs("div",{className:"space-y-1",children:[u.title&&jsxRuntime.jsx("div",{className:"px-6 py-2 text-xs font-medium text-text-subtle uppercase tracking-wider","data-collapse-hide":"",children:u.title}),jsxRuntime.jsx("div",{className:"space-y-1",children:u.items.map(f=>c(f))}),m<b-1&&jsxRuntime.jsx("div",{className:"border-b border-border-subtle mx-6 my-4","data-collapse-hide":""})]},u.id),c=(u,m=false)=>{if(u.children&&u.children.length>0){let x=`category-${u.id}`;return jsxRuntime.jsxs("div",{className:"group/category",children:[jsxRuntime.jsx("input",{type:"checkbox",id:x,className:"peer/category hidden",defaultChecked:u.isExpanded,"aria-hidden":"true"}),jsxRuntime.jsxs("label",{htmlFor:x,className:"flex items-center gap-3 px-6 py-1 text-text-body hover:bg-background-hover hover:text-text-heading cursor-pointer transition-all duration-200","data-collapse-center":"",children:[u.icon&&jsxRuntime.jsx("span",{className:"flex-shrink-0 w-4 h-4 flex items-center justify-center transition-all duration-200","data-collapse-icon":"",children:u.icon}),jsxRuntime.jsx("span",{className:"transition-all duration-200","data-collapse-hide":"",children:u.label}),jsxRuntime.jsx("span",{className:"flex-1","data-collapse-hide":""}),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","data-collapse-hide":"",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","data-collapse-hide-category":"",children:u.children.map(h=>c(h,true))})]},u.id)}let b={href:u.href||"#",className:`flex items-center gap-3 transition-all duration-200 hover:bg-background-hover ${m?"pl-8 pr-6 py-1 text-sm":"px-6 py-1"} ${u.isActive?"bg-action-primary-light text-action-primary border-l-2 border-action-primary":"text-text-body hover:text-text-heading"}`,"aria-current":u.isActive?"page":void 0,"data-collapse-center":m?void 0:""},f=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[u.icon&&!m&&jsxRuntime.jsx("span",{className:"flex-shrink-0 w-4 h-4 flex items-center justify-center transition-all duration-200","data-collapse-icon":"",children:u.icon}),jsxRuntime.jsx("span",{className:"transition-all duration-200","data-collapse-hide":"",children:u.label})]});return n==="a"?jsxRuntime.jsx("a",{...b,children:f},u.id):jsxRuntime.jsx(n,{...b,children:f},u.id)};return jsxRuntime.jsxs("div",{className:`flex flex-col h-full ${a}`,children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between h-[60px] px-6 border-b border-border-default",children:[o&&jsxRuntime.jsx("div",{className:"transition-all duration-200","data-collapse-hide":"",children:r||jsxRuntime.jsx(Wr,{showWordmark:true,width:120})}),jsxRuntime.jsx("label",{htmlFor:l,className:"hidden md:flex items-center justify-center w-8 h-8 rounded hover:bg-background-hover cursor-pointer transition-all duration-200","aria-label":"Toggle sidebar","data-collapse-toggle":"",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:"M4 6h16M4 12h16M4 18h16"})})}),jsxRuntime.jsx("label",{htmlFor:i,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 pb-4 scrollbar-hide",children:d(e).map((u,m,b)=>p(u,m,b.length))}),t&&t.length>0&&jsxRuntime.jsx("div",{className:"flex-shrink-0 border-t bg-background-muted/30",children:jsxRuntime.jsx("div",{className:"mt-4 pb-4 space-y-1",children:t.map(u=>c(u))})})]})]})};var cr=({rightContent:e,showMobileMenu:t=true,avatar:r,showColorModeSwitcher:o=false,toggleTheme:n,isDarkThemeEnabled:a=false,actions:i,className:l="",mobileMenuId:s="app-mobile-menu"})=>jsxRuntime.jsx("header",{className:`h-[60px] bg-background-surface border-b ${l}`,children:jsxRuntime.jsxs("div",{className:"flex h-full items-center justify-between",children:[jsxRuntime.jsx("div",{className:"flex items-center h-full",children:t&&jsxRuntime.jsx("label",{htmlFor:s,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("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:"M4 6h16M4 12h16M4 18h16"})})})})}),jsxRuntime.jsxs("div",{className:"flex items-center gap-4 px-4",children:[e,o&&n&&jsxRuntime.jsx("button",{onClick:n,className:"hidden md:flex items-center justify-center w-8 h-8 rounded hover:bg-background-hover transition-colors","aria-label":a?"Switch to light mode":"Switch to dark mode",children:a?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:"M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"})}):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:"M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"})})}),i,r&&jsxRuntime.jsx("div",{className:"flex items-center",children:r}),!r&&o&&n&&jsxRuntime.jsx("button",{onClick:n,className:"md:hidden flex items-center justify-center w-8 h-8 rounded hover:bg-background-hover transition-colors","aria-label":a?"Switch to light mode":"Switch to dark mode",children:a?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:"M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"})}):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:"M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"})})})]})]})});function gi({sideNav:e,topNav:t,children:r,contentPaddingX:o="px-6 lg:px-10",contentPaddingY:n="py-6 lg:py-10",showSidebarBorder:a=true,mainClassName:i,enableJsEnhancements:l=false}){let s="app-mobile-menu",d="app-sidebar-collapse";return jsxRuntime.jsxs("div",{className:"min-h-screen bg-background text-text-body relative",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(cr,{...t,mobileMenuId:s,className:["sticky top-0 flex-shrink-0 z-30 md:hidden",t?.className].filter(Boolean).join(" ")}),jsxRuntime.jsxs("div",{className:"flex w-full h-[calc(100vh-60px)] md:h-screen relative overflow-hidden",children:[jsxRuntime.jsx("input",{type:"checkbox",id:s,className:"sr-only peer/mobile","aria-hidden":"true"}),jsxRuntime.jsx("label",{htmlFor:s,className:"fixed inset-0 bg-black/50 z-40 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("aside",{id:"app-sidebar",className:["bg-background-surface","border-r border-border-default","transition-all duration-300 ease-in-out","fixed md:relative","left-0 top-0 bottom-0","z-50","w-80 md:w-64","h-screen md:h-full","-translate-x-full","peer-checked/mobile:translate-x-0","md:translate-x-0",a?"":"!border-r-0",e?.className||""].filter(Boolean).join(" "),children:jsxRuntime.jsx(Kr,{...e,mobileMenuId:s,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",children:jsxRuntime.jsx(cr,{...t,className:t?.className})}),jsxRuntime.jsx("main",{id:"app-content",className:["flex-1 overflow-y-auto bg-background-body",o,n,i||""].join(" "),role:"main",children:r})]})]}),jsxRuntime.jsx("style",{dangerouslySetInnerHTML:{__html:`
|
|
1
|
+
'use strict';var ut=require('react'),jsxRuntime=require('react/jsx-runtime'),luxon=require('luxon'),reactAriaComponents=require('react-aria-components'),tailwindMerge=require('tailwind-merge'),fd=require('@phosphor-icons/react'),reactStately=require('react-stately'),lucideReact=require('lucide-react'),Mp=require('react-ace');require('ace-builds/src-noconflict/mode-json'),require('ace-builds/src-noconflict/mode-javascript'),require('ace-builds/src-noconflict/mode-typescript'),require('ace-builds/src-noconflict/mode-html'),require('ace-builds/src-noconflict/mode-css'),require('ace-builds/src-noconflict/mode-markdown'),require('ace-builds/src-noconflict/mode-yaml'),require('ace-builds/src-noconflict/mode-xml'),require('ace-builds/src-noconflict/mode-python'),require('ace-builds/src-noconflict/mode-sql'),require('ace-builds/src-noconflict/theme-github_dark'),require('ace-builds/src-noconflict/theme-github'),require('ace-builds/src-noconflict/ext-language_tools');var curve=require('@visx/curve'),shape=require('@visx/shape'),framerMotion=require('framer-motion'),axis=require('@visx/axis'),scale=require('@visx/scale'),d3Array=require('d3-array'),responsive=require('@visx/responsive'),fileSaver=require('file-saver'),um=require('papaparse'),Gg=require('react-map-gl');require('mapbox-gl/dist/mapbox-gl.css');var reactDom=require('react-dom'),Kb=require('@tiptap/extension-link'),react=require('@tiptap/react'),menus=require('@tiptap/react/menus'),Xb=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 ut__namespace=/*#__PURE__*/_interopNamespace(ut);var fd__namespace=/*#__PURE__*/_interopNamespace(fd);var Mp__default=/*#__PURE__*/_interopDefault(Mp);var um__default=/*#__PURE__*/_interopDefault(um);var Gg__default=/*#__PURE__*/_interopDefault(Gg);var Kb__default=/*#__PURE__*/_interopDefault(Kb);var Xb__default=/*#__PURE__*/_interopDefault(Xb);var Lc=Object.defineProperty;var Fc=(e,t,r)=>t in e?Lc(e,t,{enumerable:true,configurable:true,writable:true,value:r}):e[t]=r;var ur=(e,t,r)=>Fc(e,typeof t!="symbol"?t+"":t,r);function Xe(e,t=false){let[r,o]=ut.useState(t);return ut.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 st={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"};function za(e="base"){let t=Xe(`(min-width: ${st.sm})`,e!=="base"),r=Xe(`(min-width: ${st.md})`,["md","lg","xl","2xl"].includes(e)),o=Xe(`(min-width: ${st.lg})`,["lg","xl","2xl"].includes(e)),n=Xe(`(min-width: ${st.xl})`,["xl","2xl"].includes(e)),a=Xe(`(min-width: ${st["2xl"]})`,e==="2xl"),i=!r,l=r,s="base";return a?s="2xl":n?s="xl":o?s="lg":r?s="md":t&&(s="sm"),{current:s,isSm:t,isMd:r,isLg:o,isXl:n,is2Xl:a,isMobile:i,isDesktop:l}}function Wr(e,t=300){let[r,o]=ut.useState(e);return ut.useEffect(()=>{let n=setTimeout(()=>o(e),t);return ()=>clearTimeout(n)},[e,t]),r}function Ha(e,t){let[r,o]=ut.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}});ut.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=ut.useCallback(i=>{try{o(l=>i instanceof Function?i(l):i);}catch(l){console.error(`Error setting value for localStorage key "${e}":`,l);}},[e]),a=ut.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 Yo=class{constructor(){ur(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();}},P=new Yo;var Qe=(e,t="Yes",r="No")=>e==null?null:e?t:r,zc=e=>Qe(e,"Enabled","Disabled"),Oc=e=>Qe(e,"On","Off"),Hc=e=>Qe(e,"Active","Inactive"),Gc=e=>Qe(e,"True","False"),Wc=e=>Qe(e,"\u2713","\u2717"),je=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},Ga=(e,t)=>{if(t.hideWhenNull&&e==null)return null;if(e==null)return t.nullText??null;let r=je(e);return r===null?t.nullText??null:Qe(r,t.trueText??"Yes",t.falseText??"No")};P.register("boolean",(e,t,r)=>{let o=je(e);return o!==null?Qe(o,typeof t=="string"?t:"Yes",typeof r=="string"?r:"No"):null});P.register("yesNo",e=>{let t=je(e);return t!==null?Qe(t,"Yes","No"):null});P.register("enabledDisabled",e=>{let t=je(e);return t!==null?zc(t):null});P.register("onOff",e=>{let t=je(e);return t!==null?Oc(t):null});P.register("activeInactive",e=>{let t=je(e);return t!==null?Hc(t):null});P.register("trueFalse",e=>{let t=je(e);return t!==null?Gc(t):null});P.register("checkmark",e=>{let t=je(e);return t!==null?Wc(t):null});function mr({value:e,formatter:t,emptyClassName:r="text-text-muted",emptyText:o="\u2014"}){if(e==null)return jsxRuntime.jsx("span",{className:r,children:o});if(typeof t=="function")return t(e);if(t&&typeof t=="object"){let n=pr(e,t);return e instanceof Date&&n?jsxRuntime.jsx("time",{dateTime:e.toISOString(),title:e.toISOString(),children:n}):n||jsxRuntime.jsx("span",{className:r,children:o})}if(!t){if(typeof e=="string")return e;if(e instanceof Date){let n=pr(e,{type:"date"});return jsxRuntime.jsx("time",{dateTime:e.toISOString(),title:e.toISOString(),children:n})}if(typeof e=="number")return pr(e,{type:"number"});if(typeof e=="boolean")return pr(e,{type:"boolean"})}return String(e)}function fh(e,t,r){return ut__namespace.default.useCallback(o=>mr({value:o,formatter:e,emptyClassName:t,emptyText:r}),[e,t,r])}var V=e=>e==null,Jc=(e,t=0)=>V(e)?null:`${e.toFixed(t)}%`,Uc=e=>V(e)?null:Math.round(e).toString(),Yc=(e,t=1)=>V(e)?null:e.toFixed(t),Xc=(e,t,r=true)=>{if(V(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)},Qc=(e,t="short")=>V(e)?null:new Intl.NumberFormat("en-US",{notation:"compact",compactDisplay:t}).format(e),jc=(e,t=2)=>V(e)?null:e.toExponential(t),Wa=(e,t="USD",r)=>{if(V(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)},Ka=(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)},Ja=(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:Wa(r,t.currency,t)};P.register("percentage",(e,t)=>typeof e=="number"?Jc(e,typeof t=="number"?t:0):null);P.register("integer",e=>typeof e=="number"?Uc(e):null);P.register("float",(e,t)=>typeof e=="number"?Yc(e,typeof t=="number"?t:1):null);P.register("number",(e,t,r)=>{let o=typeof e=="string"?parseFloat(e):Number(e);return isNaN(o)?null:Xc(o,typeof t=="number"?t:void 0,typeof r=="boolean"?r:true)});P.register("compact",(e,t)=>typeof e=="number"?Qc(e,t==="long"?"long":"short"):null);P.register("scientific",(e,t)=>typeof e=="number"?jc(e,typeof t=="number"?t:2):null);P.register("currency",(e,t,r)=>typeof e=="number"?Wa(e,typeof t=="string"?t:"USD",typeof r=="object"&&r!==null?r:{}):null);var Xo=(e,t=0)=>{if(V(e))return null;let r=e*1e3;return t===0?`${Math.round(r)} mA`:`${r.toFixed(t)} mA`},Jr=(e,t=1)=>V(e)?null:`${e.toFixed(t)} A`,Qo=(e,t=2)=>V(e)?null:`${(e/1e3).toFixed(t)} kA`,Zc=(e,t)=>{if(V(e))return null;let r=Math.abs(e);return r>=1e3?Qo(e,t??2):r<1?Xo(e,t??0):Jr(e,t??1)},jo=(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 Qo(r,o??2);case "mA":return Xo(r,o??0);case "A":return Jr(r,o??1)}return t.autoScale!==false?Zc(r,o):Jr(r,o??1)};P.register("current",jo);var Ch=Xo,Nh=Jr,Sh=Qo;var lt=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},qc=(e,t=false,r)=>{if(!e)return null;let o=lt(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)},$c=e=>{if(!e)return null;let t=lt(e);return t?t.toRelative():"Invalid Date"},_c=(e,t)=>{if(!e)return null;let r=lt(e);return r?(t?r.setZone(t):r).toLocaleString(luxon.DateTime.DATETIME_MED_WITH_WEEKDAY):"Invalid Date"},ed=e=>{if(!e)return null;let t=lt(e);return t?t.toISO():null},td=(e,t,r)=>{if(!e)return null;let o=lt(e);return o?(r?o.setZone(r):o).toFormat(t):"Invalid Date"},Th=e=>{let t=lt(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},Ua=(e,t)=>{if(t.hideWhenNull&&e==null)return null;if(e==null)return t.nullText??null;let r=lt(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)};P.register("date",(e,t,r)=>qc(e,typeof t=="boolean"?t:false,typeof r=="string"?r:void 0));P.register("relativeTime",e=>$c(e));P.register("fullDateTime",(e,t)=>_c(e,typeof t=="string"?t:void 0));P.register("isoString",e=>ed(e));P.register("customDateFormat",(e,t,r)=>typeof t=="string"?td(e,t,typeof r=="string"?r:void 0):null);var Zo=(e,t=1)=>V(e)?null:`${e.toFixed(t)} m`,rd=(e,t=1)=>V(e)?null:`${(e*100).toFixed(t)} cm`,od=(e,t=0)=>V(e)?null:`${(e*1e3).toFixed(t)} mm`,qo=(e,t=1)=>V(e)?null:`${(e/1e3).toFixed(t)} km`,$o=(e,t=0)=>V(e)?null:`${e.toFixed(t)} ft`,nd=(e,t=1)=>V(e)?null:`${e.toFixed(t)} in`,_o=(e,t=1)=>V(e)?null:`${e.toFixed(t)} mi`,en=(e,t=0)=>V(e)?null:`${e.toFixed(t)} yd`,Fh=(e,t=1)=>V(e)?null:`${e.toFixed(t)} nm`,Bh=e=>e*3.28084,Mh=e=>e/3.28084,Dh=e=>e*1.60934,Eh=e=>e/1.60934,Ih=e=>e/5280,Ya=e=>e*5280,Vh=e=>e/1609.34,zh=e=>e*1609.34,Oh=e=>e*.9144,Hh=e=>e/.9144,Gh=e=>e*2.54,Wh=e=>e/2.54,Xa=(e,t=false,r=1)=>{if(V(e))return null;let o=Math.abs(e);return t?o>=1e3?qo(e,r):o<.01?od(e*1e3,0):o<1?rd(e*100,r):Zo(e,r):o<.01?$o(Ya(e),0):o<.1?en(Ya(e)/3,0):_o(e,r)},Qa=(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 Xa(r,n,o)}switch(t.unit){case "km":return qo(r,o);case "ft":return $o(r,o);case "mi":return _o(r,o);case "yd":return en(r,o);case "m":default:return Zo(r,o)}};P.register("miles",(e,t)=>typeof e=="number"?_o(e,typeof t=="number"?t:1):null);P.register("kilometers",(e,t)=>typeof e=="number"?qo(e,typeof t=="number"?t:1):null);P.register("meters",(e,t)=>typeof e=="number"?Zo(e,typeof t=="number"?t:1):null);P.register("feet",(e,t)=>typeof e=="number"?$o(e,typeof t=="number"?t:0):null);P.register("yards",(e,t)=>typeof e=="number"?en(e,typeof t=="number"?t:0):null);P.register("inches",(e,t)=>typeof e=="number"?nd(e,typeof t=="number"?t:1):null);P.register("autoScaleDistance",(e,t,r)=>typeof e=="number"?Xa(e,typeof t=="boolean"?t:false,typeof r=="number"?r:1):null);var tn=(e,t=1)=>V(e)?null:`${e.toFixed(t)} Wh`,rn=(e,t=1)=>V(e)?null:`${(e/1e3).toFixed(t)} kWh`,ja=(e,t=1)=>V(e)?null:`${(e/1e6).toFixed(t)} MWh`,Za=(e,t=1)=>V(e)?null:`${(e/1e9).toFixed(t)} GWh`,qa=(e,t=1)=>{if(V(e))return null;let r=Math.abs(e);return r>=1e9?Za(e,t):r>=1e6?ja(e,t):r>=1e3?rn(e,t):tn(e,t)},on=(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.unit)switch(t.unit){case "GWh":return Za(r,o);case "MWh":return ja(r,o);case "kWh":return rn(r,o);case "Wh":return tn(r,o)}return t.autoScale!==false?qa(r,o):tn(r,o)};P.register("kWh",e=>typeof e=="number"?rn(e):null);P.register("autoScaleEnergy",(e,t)=>typeof e=="number"?qa(e,typeof t=="number"?t:1):null);P.register("energy",on);var Ur=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},nn=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():Ur(e)},$a=e=>e?e.startsWith("+")||e.length>11?nn(e):Ur(e):null,_a=(e,t)=>{if(t.hideWhenNull&&e==null)return null;if(e==null)return t.nullText??null;let r=String(e);if(t.international)return nn(r);switch(t.country){case "US":case "CA":return Ur(r);default:return $a(r)}};P.register("phoneNumber",e=>typeof e=="string"?$a(e):null);P.register("usPhone",e=>typeof e=="string"?Ur(e):null);P.register("internationalPhone",e=>typeof e=="string"?nn(e):null);var Yr=(e,t=0)=>V(e)?null:t===0?`${Math.round(e)} W`:`${e.toFixed(t)} W`,an=(e,t=1)=>V(e)?null:`${(e/1e3).toFixed(t)} kW`,sn=(e,t=1)=>V(e)?null:`${(e/1e6).toFixed(t)} MW`,ln=(e,t=2)=>V(e)?null:`${(e/1e9).toFixed(t)} GW`,ad=(e,t)=>{if(V(e))return null;let r=Math.abs(e);return r>=1e9?ln(e,t??2):r>=1e6?sn(e,t??1):r>=1e3?an(e,t??1):Yr(e,t??0)},cn=(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 ln(r,o??2);case "MW":return sn(r,o??1);case "kW":return an(r,o??1);case "W":return Yr(r,o??0)}return t.autoScale!==false?ad(r,o):Yr(r,o??0)};P.register("power",cn);var qh=Yr,$h=an,_h=sn,ey=ln;var dn=(e,t=1)=>V(e)?null:`${(e*1e3).toFixed(t)} m\u03A9`,Xr=(e,t=1)=>V(e)?null:`${e.toFixed(t)} \u03A9`,ei=(e,t=1)=>V(e)?null:`${(e/1e3).toFixed(t)} k\u03A9`,ti=(e,t=2)=>V(e)?null:`${(e/1e6).toFixed(t)} M\u03A9`,id=(e,t)=>{if(V(e))return null;let r=Math.abs(e);return r>=1e6?ti(e,t??2):r>=1e3?ei(e,t??1):r<1?dn(e,t??1):Xr(e,t??1)},un=(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 ti(r,o??2);case "k\u03A9":return ei(r,o??1);case "m\u03A9":return dn(r,o??1);case "\u03A9":return Xr(r,o??1)}return t.autoScale!==false?id(r,o):Xr(r,o??1)};P.register("resistance",un);P.register("ohms",e=>typeof e=="number"?Xr(e):null);P.register("milliohms",e=>typeof e=="number"?dn(e):null);var ri=e=>{switch(e){case "FAHRENHEIT":return "F";case "CELSIUS":return "C";case "KELVIN":return "K";default:return "F"}},oi=(e,t=0)=>V(e)?null:`${e.toFixed(t)}\xB0F`,ni=(e,t=true,r=0)=>V(e)?null:`${(t?(e-32)*(5/9):e).toFixed(r)}\xB0C`,ai=(e,t=true,r=0)=>V(e)?null:`${(t?(e-32)*(5/9)+273.15:e+273.15).toFixed(r)}K`,sd=e=>e*9/5+32,ld=e=>(e-32)*(5/9),sy=e=>e+273.15,cd=e=>e-273.15,ly=e=>ld(e)+273.15,cy=e=>sd(cd(e)),ii=(e,t="F",r=0)=>{if(V(e))return null;switch(typeof t=="string"&&t.length>1?ri(t):t){case "C":return ni(e,true,r);case "K":return ai(e,true,r);case "F":default:return oi(e,r)}},si=(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?ri(n):n){case "C":return ((r-32)*.5555555555555556).toFixed(o);case "K":return ((r-32)*.5555555555555556+273.15).toFixed(o);case "F":default:return r.toFixed(o)}return ii(r,n,o)};P.register("temperature",(e,t,r)=>typeof e=="number"?ii(e,typeof t=="string"?t:"F",typeof r=="number"?r:0):null);P.register("fahrenheit",(e,t)=>typeof e=="number"?oi(e,typeof t=="number"?t:0):null);P.register("celsius",(e,t,r)=>typeof e=="number"?ni(e,typeof t=="boolean"?t:true,typeof r=="number"?r:0):null);P.register("kelvin",(e,t,r)=>typeof e=="number"?ai(e,typeof t=="boolean"?t:true,typeof r=="number"?r:0):null);var dd=(e,t)=>!!(t.hideWhenNull&&e==null||t.hideWhenZero&&e===0),li=e=>e?.toUpperCase()??"",ci=e=>e?.toLowerCase()??"",di=e=>e?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():"",ui=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(" ")},pi=e=>e?e.split(/\s+/).map(t=>t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()).join(" "):"",mi=e=>e?e.charAt(0).toUpperCase()+e.slice(1):"",fi=e=>e?e.replace(/([A-Z])/g," $1").replace(/^./,t=>t.toUpperCase()).trim():"",gi=e=>e?e.toLowerCase().split("_").map(t=>mi(t)).join(" "):"",ud=e=>e?e.includes("_")?gi(e):e.toUpperCase()===e?mi(e.toLowerCase()):fi(e):"",bi=(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)}`},xi=(e,t=8)=>e?e.length<=t?e:`...${e.slice(-t)}`:"",hi=(e,t=16,r="...")=>e?e.length<=t?e:e.slice(0,t)+r:"",pd=e=>{if(!e)return "";let t=e.toString(),r=t.slice(-4),o=t.length-4;return o>0?"*".repeat(o)+r:t},yi=(e,t)=>{if(dd(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=li(r);break;case "lowercase":r=ci(r);break;case "capitalize":r=pi(r);break;case "titleCase":r=ui(r);break;case "sentenceCase":r=di(r);break}}),t.truncate){let{length:o,position:n,ellipsis:a="..."}=t.truncate;switch(n){case "start":r=xi(r,o);break;case "middle":r=bi(r,o);break;case "end":r=hi(r,o,a);break}}return r};P.register("uppercase",e=>li(String(e)));P.register("lowercase",e=>ci(String(e)));P.register("sentenceCase",e=>di(String(e)));P.register("titleCase",e=>ui(String(e)));P.register("capitalize",e=>pi(String(e)));P.register("camelCaseToWords",e=>fi(String(e)));P.register("snakeCaseToWords",e=>gi(String(e)));P.register("enumToSentenceCase",e=>ud(String(e)));P.register("truncateMiddle",(e,t)=>bi(String(e),typeof t=="number"?t:16));P.register("truncateStart",(e,t)=>xi(String(e),typeof t=="number"?t:8));P.register("truncateEnd",(e,t,r)=>hi(String(e),typeof t=="number"?t:16,typeof r=="string"?r:"..."));P.register("secret",e=>pd(String(e)));var pn=(e,t=0)=>{if(V(e))return null;let r=e*1e3;return t===0?`${Math.round(r)} mV`:`${r.toFixed(t)} mV`},Qr=(e,t=0)=>V(e)?null:t===0?`${Math.round(e)} V`:`${e.toFixed(t)} V`,mn=(e,t=1)=>V(e)?null:`${(e/1e3).toFixed(t)} kV`,md=(e,t)=>{if(V(e))return null;let r=Math.abs(e);return r>=1e3?mn(e,t??1):r<1?pn(e,t??0):Qr(e,t??0)},fn=(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 mn(r,o??1);case "mV":return pn(r,o??0);case "V":return Qr(r,o??0)}return t.autoScale!==false?md(r,o):Qr(r,o??0)};P.register("voltage",fn);var gy=pn,by=Qr,xy=mn;var pr=(e,t)=>{switch(t.type){case "text":return yi(e,t);case "number":return Ka(e,t);case "currency":return Ja(e,t);case "date":return Ua(e,t);case "boolean":return Ga(e,t);case "energy":return on(e,t);case "power":return cn(e,t);case "voltage":return fn(e,t);case "current":return jo(e,t);case "resistance":return un(e,t);case "temperature":return si(e,t);case "distance":return Qa(e,t);case "phone":return _a(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}},Fy=(e,t)=>({type:e,...t});var Et={xs:16,sm:20,md:24,lg:32,xl:40,"2xl":48},C=ut.memo(({name:e,size:t="md",color:r,weight:o="regular",className:n,ariaLabel:a,...i})=>{let l=fd__namespace[e];if(!l)return process.env.NODE_ENV==="development"&&console.error(`Icon "${e}" not found in @phosphor-icons/react`),null;let s=typeof t=="string"&&t in Et?Et[t]:t,d=tailwindMerge.twMerge("inline-block flex-shrink-0",!r&&"text-current",n);return jsxRuntime.jsx(l,{...i,size:s,color:r,weight:o,className:d,"aria-label":a||`${e} icon`,"data-testid":`icon-${e}`})});C.displayName="Icon";var Ni=ut.memo(({variant:e="subtle",shape:t="square",containerSize:r,containerClassName:o,size:n="md",className:a,name:i,color:l,weight:s,ariaLabel:d,ref:p,...c})=>{let u=typeof n=="string"&&n in Et?Et[n]:n,m=r?typeof r=="string"&&r in Et?Et[r]:r:u*1.75,g=tailwindMerge.twMerge("inline-flex items-center justify-center flex-shrink-0",t==="circle"?"rounded-full":"rounded-lg",e==="subtle"&&"bg-gray-100 dark:bg-gray-800",e==="solid"&&"bg-brand text-white",e==="outline"&&"border-2 border-current",o);return jsxRuntime.jsx("div",{className:g,style:{width:m,height:m},children:jsxRuntime.jsx(C,{...c,name:i,size:n,color:l,weight:s,className:a,ariaLabel:d})})});Ni.displayName="IconWithContainer";function wi({children:e,items:t,className:r,align:o="left",textAlign:n="left",size:a="md",onAction:i}){return jsxRuntime.jsx("div",{className:r,children:jsxRuntime.jsxs(reactAriaComponents.MenuTrigger,{children:[e,jsxRuntime.jsx(reactAriaComponents.Popover,{className:tailwindMerge.twMerge("w-fit min-w-[180px] overflow-auto rounded-md border border-border-default","bg-background-surface p-1 shadow-lg","entering:animate-in entering:fade-in entering:zoom-in-95","exiting:animate-out exiting:fade-out exiting:zoom-out-95"),placement:o==="right"?"bottom end":"bottom start",children:jsxRuntime.jsx(reactAriaComponents.Menu,{className:"outline-none",children:t.map(l=>jsxRuntime.jsx(yd,{id:l.id,onAction:()=>l.onAction?.()||i?.(l),textAlign:n,size:a,iconName:l.iconName,isDisabled:l.disabled,variant:l.variant,"data-testid":l.testId,children:l.name},l.id))})})]})})}function yd({textAlign:e="left",iconName:t,size:r="md",isDisabled:o,children:n,variant:a="default",...i}){let l={sm:"px-3 py-1.5 text-sm",md:"px-4 py-2 text-base"},s={default:"text-text-body hover:bg-background-hover focus:bg-background-hover",destructive:"text-feedback-error-text hover:bg-feedback-error-background focus:bg-feedback-error-background"};return jsxRuntime.jsxs(reactAriaComponents.MenuItem,{...i,isDisabled:o,className:tailwindMerge.twMerge("group box-border flex w-full cursor-pointer items-center rounded-sm outline-none transition-colors",l[r],s[a],e==="right"?"justify-end":"justify-start",o&&"pointer-events-none opacity-50"),children:[t&&e==="left"&&jsxRuntime.jsx(C,{name:t,size:r==="sm"?16:20,className:"mr-2 flex-shrink-0"}),jsxRuntime.jsx("span",{className:"flex-1",children:n}),t&&e==="right"&&jsxRuntime.jsx(C,{name:t,size:r==="sm"?16:20,className:"ml-2 flex-shrink-0"})]})}var jr=({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-body)",t){let s=r||270,d=s/270*80;return jsxRuntime.jsxs("svg",{width:s,height:d,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 Zr=({topItems:e=[],bottomItems:t=[],logo:r,showLogo:o=true,linkComponent:n="a",className:a="",mobileMenuId:i="app-mobile-menu",sidebarCollapseId:l="app-sidebar-collapse"})=>{let s=u=>u.length>0&&"items"in u[0],d=u=>s(u)?u:[{id:"default-section",items:u}],p=(u,m,g)=>jsxRuntime.jsxs("div",{className:"space-y-0.5",children:[u.title&&jsxRuntime.jsx("div",{className:"px-6 py-1 text-xs font-medium text-text-subtle uppercase tracking-wider","data-collapse-hide":"",children:u.title}),jsxRuntime.jsx("div",{className:"space-y-0.5",children:u.items.map(f=>c(f))}),m<g-1&&jsxRuntime.jsx("div",{className:"border-b border-border-subtle mx-6 my-2","data-collapse-hide":""})]},u.id),c=(u,m=false)=>{if(u.children&&u.children.length>0){let h=`category-${u.id}`;return jsxRuntime.jsxs("div",{className:"group/category",children:[jsxRuntime.jsx("input",{type:"checkbox",id:h,className:"peer/category hidden",defaultChecked:u.isExpanded,"aria-hidden":"true"}),jsxRuntime.jsxs("label",{htmlFor:h,className:"flex items-center gap-3 px-6 py-1 text-text-body hover:bg-background-hover hover:text-text-heading cursor-pointer transition-all duration-200","data-collapse-center":"",children:[u.icon&&jsxRuntime.jsx("span",{className:"flex-shrink-0 w-4 h-4 flex items-center justify-center transition-all duration-200","data-collapse-icon":"",children:u.icon}),jsxRuntime.jsx("span",{className:"transition-all duration-200","data-collapse-hide":"",children:u.label}),jsxRuntime.jsx("span",{className:"flex-1","data-collapse-hide":""}),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","data-collapse-hide":"",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","data-collapse-hide-category":"",children:u.children.map(x=>c(x,true))})]},u.id)}let g={href:u.href||"#",className:`flex items-center gap-3 transition-all duration-200 hover:bg-background-hover ${m?"pl-8 pr-6 py-1 text-sm":"px-6 py-1"} ${u.isActive?"bg-action-primary-light text-action-primary border-l-2 border-action-primary":"text-text-body hover:text-text-heading"}`,"aria-current":u.isActive?"page":void 0,"data-collapse-center":m?void 0:""},f=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[u.icon&&!m&&jsxRuntime.jsx("span",{className:"flex-shrink-0 w-4 h-4 flex items-center justify-center transition-all duration-200","data-collapse-icon":"",children:u.icon}),jsxRuntime.jsx("span",{className:"transition-all duration-200","data-collapse-hide":"",children:u.label})]});return n==="a"?jsxRuntime.jsx("a",{...g,children:f},u.id):jsxRuntime.jsx(n,{...g,children:f},u.id)};return jsxRuntime.jsxs("div",{className:`flex flex-col h-full ${a}`,children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between h-[60px] px-6 border-b border-border-default",children:[o&&jsxRuntime.jsx("div",{className:"transition-all duration-200","data-collapse-hide":"",children:r||jsxRuntime.jsx(jr,{showWordmark:true,width:120})}),jsxRuntime.jsx("label",{htmlFor:l,className:"hidden md:flex items-center justify-center w-8 h-8 rounded hover:bg-background-hover cursor-pointer transition-all duration-200","aria-label":"Toggle sidebar","data-collapse-toggle":"",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:"M4 6h16M4 12h16M4 18h16"})})}),jsxRuntime.jsx("label",{htmlFor:i,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((u,m,g)=>p(u,m,g.length))}),t&&t.length>0&&jsxRuntime.jsx("div",{className:"flex-shrink-0 border-t bg-background-muted/30",children:jsxRuntime.jsx("div",{className:"mt-2 pb-2 space-y-0.5",children:t.map(u=>c(u))})})]})]})};var fr=({rightContent:e,showMobileMenu:t=true,avatar:r,showColorModeSwitcher:o=false,toggleTheme:n,isDarkThemeEnabled:a=false,actions:i,className:l="",mobileMenuId:s="app-mobile-menu"})=>jsxRuntime.jsx("header",{className:`h-[60px] bg-background-surface border-b ${l}`,children:jsxRuntime.jsxs("div",{className:"flex h-full items-center justify-between",children:[jsxRuntime.jsx("div",{className:"flex items-center h-full",children:t&&jsxRuntime.jsx("label",{htmlFor:s,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("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:"M4 6h16M4 12h16M4 18h16"})})})})}),jsxRuntime.jsxs("div",{className:"flex items-center gap-4 px-4",children:[e,o&&n&&jsxRuntime.jsx("button",{onClick:n,className:"hidden md:flex items-center justify-center w-8 h-8 rounded hover:bg-background-hover transition-colors","aria-label":a?"Switch to light mode":"Switch to dark mode",children:a?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:"M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"})}):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:"M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"})})}),i,r&&jsxRuntime.jsx("div",{className:"flex items-center",children:r}),!r&&o&&n&&jsxRuntime.jsx("button",{onClick:n,className:"md:hidden flex items-center justify-center w-8 h-8 rounded hover:bg-background-hover transition-colors","aria-label":a?"Switch to light mode":"Switch to dark mode",children:a?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:"M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"})}):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:"M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"})})})]})]})});function Ti({sideNav:e,topNav:t,children:r,contentPaddingX:o,contentPaddingY:n,showSidebarBorder:a=true,mainClassName:i,enableJsEnhancements:l=false}){let s="app-mobile-menu",d="app-sidebar-collapse";return jsxRuntime.jsxs("div",{className:"min-h-[100dvh] bg-background text-text-body relative",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(fr,{...t,mobileMenuId:s,className:["sticky top-0 flex-shrink-0 z-30 md:hidden",t?.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:s,className:"sr-only peer/mobile","aria-hidden":"true"}),jsxRuntime.jsx("label",{htmlFor:s,className:"fixed inset-0 bg-black/50 z-40 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("aside",{id:"app-sidebar",className:["bg-background-surface","border-r border-border-default","transition-all duration-300 ease-in-out","fixed md:relative","left-0 top-0 bottom-0","z-50","w-80 md:w-64","h-[100dvh] md:h-full","-translate-x-full","peer-checked/mobile:translate-x-0","md:translate-x-0",a?"":"!border-r-0",e?.className||""].filter(Boolean).join(" "),children:jsxRuntime.jsx(Zr,{...e,mobileMenuId:s,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",children:jsxRuntime.jsx(fr,{...t,className:t?.className})}),jsxRuntime.jsx("main",{id:"app-content",className:["flex-1 overflow-y-auto bg-background-body",o,n,i||""].join(" "),role:"main",children:r})]})]}),jsxRuntime.jsx("style",{dangerouslySetInnerHTML:{__html:`
|
|
2
2
|
@media (min-width: 768px) {
|
|
3
3
|
/* Collapse sidebar width */
|
|
4
4
|
#${d}:checked ~ * #app-sidebar {
|
|
@@ -73,13 +73,13 @@
|
|
|
73
73
|
});
|
|
74
74
|
}
|
|
75
75
|
})();
|
|
76
|
-
`}})]})}var _r={prefix:String(Math.round(Math.random()*1e10)),current:0},bi=lt__namespace.default.createContext(_r),id=lt__namespace.default.createContext(false);var sd=!!(typeof window<"u"&&window.document&&window.document.createElement),un=new WeakMap;function ld(e=false){let t=lt.useContext(bi),r=lt.useRef(null);if(r.current===null&&!e){var o,n;let a=(n=lt__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=un.get(a);i==null?un.set(a,{id:t.current,state:a.memoizedState}):a.memoizedState!==i.state&&(t.current=i.id,un.delete(a));}r.current=++t.current;}return r.current}function cd(e){let t=lt.useContext(bi);t===_r&&!sd&&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=ld(!!e),o=t===_r&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${o}-${r}`}function dd(e){let t=lt__namespace.default.useId(),[r]=lt.useState(Zr()),o=r||process.env.NODE_ENV==="test"?"react-aria":`react-aria${_r.prefix}`;return e||`${o}-${t}`}typeof lt__namespace.default.useId=="function"?dd:cd;function pd(){return false}function md(){return true}function fd(e){return ()=>{}}function Zr(){return typeof lt__namespace.default.useSyncExternalStore=="function"?lt__namespace.default.useSyncExternalStore(fd,pd,md):lt.useContext(id)}var gd=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),bd=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function mn(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 gd.has(r.script)}let t=e.split("-")[0];return bd.has(t)}var yd=Symbol.for("react-aria.i18n.locale");function hi(){let e=typeof window<"u"&&window[yd]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e]);}catch{e="en-US";}return {locale:e,direction:mn(e)?"rtl":"ltr"}}var fn=hi(),dr=new Set;function xi(){fn=hi();for(let e of dr)e(fn);}function yi(){let e=Zr(),[t,r]=lt.useState(fn);return lt.useEffect(()=>(dr.size===0&&window.addEventListener("languagechange",xi),dr.add(r),()=>{dr.delete(r),dr.size===0&&window.removeEventListener("languagechange",xi);}),[]),e?{locale:"en-US",direction:"ltr"}:t}var Nd=lt__namespace.default.createContext(null);function gn(){let e=yi();return lt.useContext(Nd)||e}var bn=new Map;function xn(e){let{locale:t}=gn(),r=t+(e?Object.entries(e).sort((n,a)=>n[0]<a[0]?-1:1).join():"");if(bn.has(r))return bn.get(r);let o=new Intl.Collator(t,e);return bn.set(r,o),o}function Ur(e){let t=xn({usage:"search",...e}),r=lt.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=lt.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=lt.useCallback((a,i)=>{if(i.length===0)return true;a=a.normalize("NFC"),i=i.normalize("NFC");let l=0,s=i.length;for(;l+s<=a.length;l++){let d=a.slice(l,l+s);if(t.compare(i,d)===0)return true}return false},[t]);return lt.useMemo(()=>({startsWith:r,endsWith:o,contains:n}),[r,o,n])}var ur=new Map,ct=(e,t="#000000")=>{if(typeof window>"u")return t;let r=e.startsWith("var(")?e.slice(4,-1):e.startsWith("--")?e:`--${e}`;if(!e.startsWith("--")&&!e.startsWith("var(")&&!r.startsWith("--color-")&&(r=`--color-${r.slice(2)}`),ur.has(r))return ur.get(r);try{let o=document.body||document.documentElement,a=getComputedStyle(o).getPropertyValue(r).trim();if(a)return ur.set(r,a),a;let i=document.createElement("div");i.style.color=`var(${r})`,document.body.appendChild(i);let l=getComputedStyle(i).color;return document.body.removeChild(i),l&&l!=="rgb(0, 0, 0)"?(ur.set(r,l),l):t}catch(o){return console.warn(`Failed to resolve color for ${e}:`,o),t}},Et=()=>{ur.clear();},jr=()=>{let e=[];for(let t=1;t<=6;t++){let r=ct(`--color-viz-categorical-${t}`);r&&e.push(r);}return e.length===0?vi():e},vi=()=>["#444ae1","#10b981","#f59e0b","#ef4444","#8b5cf6","#06b6d4","#ec4899","#f97316","#14b8a6","#6366f1"],yn=()=>ct("--color-viz-default","#444ae1"),wd=(e,t)=>{let r={},o=jr();return e.forEach((n,a)=>{t&&t[n]?r[n]=t[n]:r[n]=o[a%o.length];}),r};var Ci=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},Pd=e=>Ci(e)?ct("--text-body","#333333"):ct("--neutral-white","#ffffff");var Cn=lt.createContext({colorMode:"light",isDarkTheme:false,toggleTheme:()=>{}}),Te=()=>lt.useContext(Cn);function vn(){if(typeof window>"u")return "light";let e=localStorage.getItem("theme");return e==="dark"||e==="light"?e:document.body.classList.contains("theme-dark")||document.documentElement.classList.contains("theme-dark")||window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}var Si=({children:e})=>{let[t,r]=lt.useState(vn),o=t==="dark";lt.useEffect(()=>{Et();let a=()=>{let c=vn();c!==t&&r(c);};a();let i=setTimeout(a,100),l=window.matchMedia("(prefers-color-scheme: dark)"),s=c=>{localStorage.getItem("theme")||(Et(),r(c.matches?"dark":"light"));},d=()=>{let c=vn();c!==t&&(Et(),r(c));};l.addEventListener("change",s);let p=new MutationObserver(d);return p.observe(document.body,{attributes:true,attributeFilter:["class"]}),p.observe(document.documentElement,{attributes:true,attributeFilter:["class"]}),()=>{clearTimeout(i),l.removeEventListener("change",s),p.disconnect();}},[t]);let n=lt.useCallback(()=>{r(a=>{let i=a==="light"?"dark":"light";return localStorage.setItem("theme",i),i==="dark"?document.body.classList.add("theme-dark"):document.body.classList.remove("theme-dark"),Et(),i});},[]);return jsxRuntime.jsx(Cn.Provider,{value:{colorMode:t,isDarkTheme:o,toggleTheme:n},children:e})};function ae(e=false){return `${e?"outline outline-1 outline-border-input focus:outline-2 focus:outline-border-focus focus: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 focus-visible:outline focus-visible:outline-2 focus-visible:outline-border-focus 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 j(e,t){return reactAriaComponents.composeRenderProps(e,r=>tailwindMerge.twMerge(t,r))}var _={sm:{text:"text-[length:var(--control-text-sm)]",height:"h-[var(--control-sm-height)]",padding:"px-[var(--control-padding-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)]",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)]",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)]",gap:"gap-[var(--control-gap-xl)]"}};function Ze(){let[e,t]=lt__namespace.default.useState(false),r=lt__namespace.default.useCallback((n,a)=>{t(true),a?.(n);},[]),o=lt__namespace.default.useCallback((n,a)=>{t(false),a?.(n);},[]);return {isFocused:e,handleFocus:r,handleBlur:o}}function Ue({children:e,className:t}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("relative w-full",t),children:e})}function wi({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-1/2 -translate-y-1/2 transform text-text-muted hover:text-text-body",r),"aria-label":"Clear input",onMouseDown:o=>{o.preventDefault(),o.stopPropagation();},children:jsxRuntime.jsx(v,{name:"X",size:t==="sm"?16:20})})}function Dt(e){let{isInvalid:t,isDisabled:r,isFocused:o}=e,n="border rounded-[var(--control-border-radius)] ";return r?`${n} border-border-muted focus:outline-none`:t&&o?`${n} border-feedback-error-border outline-[1.5px] outline-[var(--control-focus-ring-color-error)]`:t?`${n} border-feedback-error-border`:o?`${n} !outline-[1.5px] !outline-[var(--control-focus-ring-color)] ![--tw-outline-style:solid]`:`${n}`}function qr(e){return e.isDisabled?"bg-background-muted":e.transparent?"bg-transparent":"bg-background-input"}function Oe(e){let{isInvalid:t,isDisabled:r,isFocused:o,transparent:n,size:a="md",className:i}=e;return tailwindMerge.twMerge("w-full",Dt({isInvalid:t,isDisabled:r,isFocused:o}),qr({transparent:n,isDisabled:r}),_[a].text,_[a].height,_[a].padding,i)}function pr(e){let{size:t="md",isFocusWithin:r,isInvalid:o,isDisabled:n,transparent:a,className:i}=e;return tailwindMerge.twMerge("group flex items-center rounded-sm overflow-hidden",qr({transparent:a,isDisabled:n}),_[t].height,Dt({isFocused:r,isInvalid:o,isDisabled:n}),i)}function Y({children:e,size:t="md",tooltip:r,isRequired:o,className:n,htmlFor:a}){return jsxRuntime.jsxs("label",{htmlFor:a,className:tailwindMerge.twMerge(_[t].text,"!text-text-caption flex items-center gap-1",n),children:[e,o&&jsxRuntime.jsx("span",{children:"*"}),r&&jsxRuntime.jsx("span",{className:"text-text-muted",children:jsxRuntime.jsx(v,{name:"Info",size:t==="sm"?16:20})})]})}function ee({size:e="md",className:t,children:r,...o}){return jsxRuntime.jsx("div",{...o,className:tailwindMerge.twMerge("leading-[2.25] text-text-muted",_[e].text,t),children:r})}function q({children:e,size:t="md",className:r}){return jsxRuntime.jsx("div",{role:"alert",className:tailwindMerge.twMerge(_[t].text,"text-feedback-error-text",r),children:e})}function Pi({size:e="md",isInvalid:t,isDisabled:r,isFocused:o,transparent:n,className:a,...i}){return jsxRuntime.jsx("input",{className:Oe({isInvalid:t,isDisabled:r,isFocused:o,transparent:n,size:e,className:a}),...i})}function Xr(e){let{children:t,...r}=e;return jsxRuntime.jsx("div",{...r,className:pr(e),children:typeof t=="function"?t(e):t})}var Bd={sm:"py-1",md:"py-2",lg:"py-3",xl:"py-4"},Vd={sm:"text-controlElementSm",md:"text-controlElementMd",lg:"text-controlElementLg",xl:"text-controlElementXl"};function ut({size:e="md",className:t,...r}){return jsxRuntime.jsx(reactAriaComponents.ListBoxItem,{...r,className:tailwindMerge.twMerge("flex cursor-default items-center gap-2 rounded-sm px-3 text-text-body outline-none data-[focused]:bg-background-hover data-[selected]:bg-background-selected data-[selected]:font-medium",Bd[e],Vd[e],t)})}function _d({isEntering:e,isExiting:t,className:r=""}){let o=["bg-white","dark:bg-zinc-900/70","dark:backdrop-blur-2xl","dark:backdrop-saturate-200","forced-colors:bg-[Canvas]","shadow-md","rounded-md","overflow-hidden","bg-clip-padding","border","border-gray-100","dark:border-white/5","dark:text-zinc-300"].join(" "),n=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(" "):"",a=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 [o,n,a,r].filter(Boolean).join(" ")}function pt({children:e,showArrow:t,className:r,...o}){let a=reactAriaComponents.useSlottedContext(reactAriaComponents.PopoverContext)?.trigger==="SubmenuTrigger",i=t?12:8;return i=a?i-6:i,jsxRuntime.jsxs(reactAriaComponents.Popover,{offset:i,...o,className:reactAriaComponents.composeRenderProps(r,(l,s)=>_d({...s,className:l})),children:[t&&jsxRuntime.jsx(reactAriaComponents.OverlayArrow,{className:"group",children:jsxRuntime.jsx("svg",{width:12,height:12,viewBox:"0 0 12 12",className:"block fill-white stroke-black/10 stroke-1 group-placement-left:-rotate-90 group-placement-right:rotate-90 group-placement-bottom:rotate-180 dark:fill-[#1f1f21] dark:stroke-zinc-600 forced-colors:fill-[Canvas] forced-colors:stroke-[ButtonBorder]",children:jsxRuntime.jsx("path",{d:"M0 0 L6 6 L12 0"})})}),e]})}var tu={sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6",xl:"h-7 w-7"},ru={sm:"pl-7",md:"pl-9",lg:"pl-10",xl:"pl-12"},ki={sm:"py-1",md:"py-2",lg:"py-3",xl:"py-4"};function ou(){let e=lt__namespace.default.useContext(reactAriaComponents.ComboBoxStateContext);return jsxRuntime.jsx(reactAriaComponents.Button,{slot:null,className:"clear-button","aria-label":"Clear",onPress:()=>e?.setSelectedKey(null),children:"\u2715"})}var kn=(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 nu(e,t,r){try{let o=e.url.replace("{q}",t),n=new URLSearchParams;e.extraParams&&Object.entries(e.extraParams).forEach(([s,d])=>{n.append(s,d.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 l=await i.json();return {items:e.transformResponse(l)}}catch(o){console.error("Error in REST request:",o);let n=o instanceof Error?o.message:"Unknown error occurred";return {items:[],error:n}}}async function au(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,l)=>i?.[l],a)),{items:e.transformResponse(a)}}catch(o){console.error("Error in GraphQL request:",o);let n=o instanceof Error?o.message:"Unknown error occurred";return {items:[],error:n}}}function Yr({label:e,staticItems:t=[],sections:r,selectedKey:o,defaultSelectedKey:n,onSelectionChange:a,requestConfig:i,defaultFilter:l,placeholder:s,errorMessage:d,description:p,size:c="md",tooltip:u,isRequired:m,isDisabled:b,isInvalid:f,validationResult:x,showErrors:h=true,renderItem:y,renderLeftIcon:S,renderSection:F,autoFocus:w=false}){let R=lt__namespace.default.useRef(null),[L,C]=lt__namespace.default.useState(),[k,I]=lt.useState(()=>kn(o||n,t,r)),[A,g]=lt.useState(false),N=$r(k),{contains:K}=Ur({sensitivity:"base"}),[B,U]=lt.useState(),re=_[c].text,ne=_[c].height,E=null;lt.useEffect(()=>{w&&g(true);},[w]),lt.useEffect(()=>{let M=()=>{R.current&&C(R.current.offsetWidth);};return M(),window.addEventListener("resize",M),()=>window.removeEventListener("resize",M)},[]),lt.useEffect(()=>{E&&E.setFilterText(N);},[N,E]),i&&(E=reactStately.useAsyncList({async load({signal:M,filterText:T=""}){if(!i.url||i.shouldLoad&&!i.shouldLoad(T))return {items:[]};try{let $;return i.requestType==="GraphQL"?$=await au(i,T,M):$=await nu(i,T,M),U($.error),{items:$.items}}catch($){return console.error("Error loading items:",$),U($ instanceof Error?$.message:"Unknown error occurred"),{items:[]}}},initialFilterText:""})),N===""&&(E=null);let G=M=>{let T=kn(M,t,r);I(T),a&&a(M);},X=M=>{I(M);let T=kn(o,t,r);o!=null&&M!==T&&a&&a(null);};return jsxRuntime.jsx(reactAriaComponents.ComboBox,{onSelectionChange:G,selectedKey:o||void 0,defaultSelectedKey:n||void 0,defaultItems:r?r.flatMap(M=>M.items):t,items:E?E.items:void 0,className:j("group flex flex-col","w-full"),menuTrigger:"focus",isDisabled:b,isInvalid:f||!!d,inputValue:k,onInputChange:X,autoFocus:w,defaultFilter:l||K,"aria-label":e||s||"Autocomplete",children:M=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(Y,{size:c,tooltip:u,isRequired:m,children:e}),jsxRuntime.jsxs(reactAriaComponents.Group,{ref:R,className:pr({size:c,isInvalid:f||!!d,isDisabled:b,isFocusWithin:A||M.isOpen,className:"w-full cursor-pointer"}),"aria-label":e||s||"Autocomplete",style:{position:"relative"},children:[S?jsxRuntime.jsx("div",{className:"absolute left-3",children:S(!!E?.isLoading)}):jsxRuntime.jsx(v,{name:"MagnifyingGlass",className:`${tu[c]} absolute left-3 text-inherit`}),jsxRuntime.jsx(reactAriaComponents.Input,{className:`flex-1 min-w-0 border-none pr-3 outline-0 placeholder:text-text-placeholder ${ru[c]} ${re} ${ne} ${b?"bg-background-muted":"bg-background-input"}`,placeholder:s,disabled:b,onFocus:()=>g(true),onBlur:()=>g(false)}),k&&!b&&jsxRuntime.jsx(ou,{}),jsxRuntime.jsx(reactAriaComponents.Button,{className:`px-2 text-text-body ${re} ${ne} ${b?"bg-background-muted":"bg-background-input"}`,"aria-label":"Toggle menu",isDisabled:b,children:({isPressed:T})=>jsxRuntime.jsx(v,{name:T?"CaretUp":"CaretDown",className:"h-4 w-4"})})]}),p&&jsxRuntime.jsx(ee,{size:c,children:p}),h&&B&&jsxRuntime.jsx(q,{size:c,className:"text-feedback-error-text",children:B}),h&&typeof d=="string"&&jsxRuntime.jsx(q,{size:c,className:"text-feedback-error-text",children:d}),h&&typeof d=="function"&&x&&jsxRuntime.jsx(q,{size:c,className:"text-feedback-error-text",children:d(x)}),jsxRuntime.jsx(pt,{className:"bg-background-input shadow-xl border border-border-input/20 backdrop-blur-sm ring-1 ring-black/5",style:{minWidth:L?`${L}px`:void 0},children:jsxRuntime.jsx(reactAriaComponents.ListBox,{className:`max-h-[300px] overflow-auto bg-background-input outline-none ${re}`,children:r?r.map(T=>{let $=T.items.map(V=>jsxRuntime.jsx(ut,{id:V.id,textValue:V.name,size:c,className:`flex cursor-default items-center gap-2 rounded-sm px-3 ${ki[c]} text-text-body outline-none data-[focused]:bg-background-hover data-[selected]:bg-background-selected data-[selected]:font-medium`,children:y?y(V):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[V.name,jsxRuntime.jsx(v,{name:"X",className:"ml-auto h-4 w-4 text-text-muted opacity-0 data-[focused]:opacity-100 data-[selected]:opacity-100"})]})},V.id));return F?F(T,$):jsxRuntime.jsxs(reactAriaComponents.ListBoxSection,{children:[jsxRuntime.jsx(reactAriaComponents.Header,{className:"px-3 py-1 text-sm font-bold text-text-muted",children:T.name}),$]},T.name)}):T=>jsxRuntime.jsx(ut,{id:T.id,textValue:T.name,size:c,className:`flex cursor-default items-center gap-2 rounded-sm px-3 ${ki[c]} text-text-body outline-none data-[focused]:bg-background-hover data-[selected]:bg-background-selected data-[selected]:font-medium`,children:y?y(T):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[T.name,jsxRuntime.jsx(v,{name:"X",className:"ml-auto h-4 w-4 text-text-muted opacity-0 data-[focused]:opacity-100 data-[selected]:opacity-100"})]})},T.id)})})]})})}function Fi({src:e,alt:t,firstName:r,lastName:o,fullName:n,onClick:a,size:i="md",shape:l="circle",variant:s="user",className:d,status:p,bordered:c=false}){let u={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"},m={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"},b={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"},f={online:"bg-feedback-success-background border-feedback-success-border",offline:"bg-text-muted border-border-muted",away:"bg-feedback-warning-background border-feedback-warning-border",busy:"bg-feedback-error-background border-feedback-error-border"},x={user:"bg-action-primary/10 text-action-primary",team:"bg-feedback-info-background text-feedback-info-text",organization:"bg-feedback-success-background text-feedback-success-text"},h=l==="circle"?"rounded-full":"rounded-md",y=tailwindMerge.twMerge("relative inline-flex items-center justify-center overflow-hidden transition-opacity",u[i],h,a&&"cursor-pointer hover:opacity-80",c&&"ring-2 ring-background-surface",d),F=(()=>{if(r||o){let L=r?.[0]||"",C=o?.[0]||"";return (L+C).toUpperCase()}if(n){let L=n.split(" "),C=L[0]?.[0]||"",k=L[L.length-1]?.[0]||"";return C===k?C.toUpperCase():(C+k).toUpperCase()}return ""})(),w=()=>{let L={xs:14,sm:16,md:20,lg:24,xl:32}[i];switch(s){case "team":return jsxRuntime.jsx(lucideReact.Users,{size:L});case "organization":return jsxRuntime.jsx(lucideReact.Building2,{size:L});default:return jsxRuntime.jsx(lucideReact.User,{size:L})}},R=()=>e?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("img",{src:e,alt:t||n||"Avatar",className:"h-full w-full object-cover",style:{fontSize:0}}),jsxRuntime.jsx("div",{className:"absolute inset-0 flex items-center justify-center -z-10",children:F?jsxRuntime.jsx("span",{className:"font-semibold",children:F}):w()})]}):F?jsxRuntime.jsx("span",{className:"font-semibold",children:F}):w();return jsxRuntime.jsxs("div",{className:"relative inline-block",children:[jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(y,e?"":x[s]),onClick:a,role:a?"button":void 0,tabIndex:a?0:void 0,children:R()}),p&&jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("absolute border-2 border-background-surface",h,m[i],b[i],f[p]),"aria-label":`Status: ${p}`})]})}var du={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",secondary:"bg-action-secondary/10 text-action-secondary",neutral:"bg-background-muted text-text-muted"},uu={sm:"px-2 py-1.5 text-xs",md:"px-3 py-2 text-sm",lg:"px-3.5 py-2.5 text-base"},pu={pill:"rounded-full",rounded:"rounded-lg",square:"rounded-sm"},mu={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",className:i}){let l=n&&jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("rounded-full bg-current opacity-75",mu[r]),"aria-hidden":"true"});return jsxRuntime.jsxs("span",{className:tailwindMerge.twMerge("inline-flex items-center gap-1.5 font-medium",uu[r],pu[o],du[t],i),children:[n&&a==="left"&&l,e,n&&a==="right"&&l]})}var Ln=({href:e,children:t,className:r="",external:o=false,title:n,variant:a="default",onClick:i,asButton:l=false,onPress:s,showArrow:d=false})=>{let p=o?{target:"_blank",rel:"noopener noreferrer"}:{},m=`hover:underline hover:decoration-1 hover:underline-offset-4 cursor-pointer ${{default:"text-text-link-default hover:text-text-link-hover visited:text-text-link-default",primary:"text-action-primary hover:text-action-primary-hover visited:text-action-primary",muted:"text-text-muted hover:text-text-muted visited:text-text-muted"}[a]} ${r}`,b=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[t,d&&jsxRuntime.jsxs("span",{children:["\xA0","\u2192"]})]});return l?jsxRuntime.jsx("button",{type:"button",className:m,onClick:s,title:n,children:b}):jsxRuntime.jsx("a",{href:e||"#",className:m,...p,title:n,onClick:i,children:b})};function Qr(e){return jsxRuntime.jsx(reactAriaComponents.Breadcrumbs,{...e,className:tailwindMerge.twMerge("flex gap-1",e.className)})}function eo(e){let{className:t,children:r,href:o,...n}=e;return jsxRuntime.jsx(reactAriaComponents.Breadcrumb,{className:j(t,"flex items-center gap-1"),...n,children:a=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Ln,{variant:"muted",href:o,children:typeof r=="function"?r(a):r}),o&&jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-3 w-3 text-text-muted"})]})})}var ku="flex font-medium justify-center items-center gap-2 text-center transition rounded-sm whitespace-nowrap box-border",Ru={default:"bg-neutral-black text-neutral-white hover:brightness-90 forced-colors:bg-[ButtonText] forced-colors:text-[ButtonFace] border-2 border-transparent",primary:"bg-action-primary text-neutral-white hover:brightness-90 forced-colors:bg-[ButtonText] forced-colors:text-[ButtonFace] border-2 border-transparent",secondary:"bg-transparent text-text-body border-2 border-border-muted hover:bg-text-body/5 forced-colors:border-[ButtonBorder] forced-colors:bg-[ButtonFace] forced-colors:text-[ButtonText]",ghost:"border-none text-text-body hover:bg-text-body/5 forced-colors:text-[ButtonText] forced-colors:hover:bg-[ButtonFace]",destructive:"bg-transparent text-action-destructive border-2 border-border-muted hover:bg-action-destructive/5 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-body hover:bg-text-body/5 forced-colors:text-[ButtonText] forced-colors:hover:bg-[ButtonFace] p-2 flex-shrink-0",unstyled:"bg-transparent"},Di={full:"w-full",default:"w-fit"},Tu="opacity-control-hover cursor-not-allowed pointer-events-none grayscale",Lu="opacity-100 cursor-pointer",Fu={"top-right":"-right-2 -top-2","top-left":"-left-2 -top-2","bottom-right":"-right-2 -bottom-2","bottom-left":"-left-2 -bottom-2"},Mu={primary:"bg-action-primary text-white",destructive:"bg-action-destructive text-white"};function Iu(e){let{variant:t="default",size:r="md",isDisabled:o,fullWidth:n=false,isLoading:a=false}=e,i=t==="unstyled"?"":`${ku} ${Ru[t]}`;return t!=="unstyled"&&(i+=` ${_[r].text} ${_[r].height} ${_[r].padding} ${_[r].gap}`),o||a?i+=` ${Tu}`:i+=` ${Lu}`,n?i+=` ${Di.full}`:i+=` ${Di.default}`,`${i} ${ae()}`}function H(e){let{icon:t,children:r,isLoading:o=false,loadingText:n,loadingIndicator:a,size:i="md",iconPosition:l="left",iconWeight:s,href:d,className:p,badgeNumber:c,badgeVariant:u="primary",badgePosition:m="top-right",style:b,target:f,rel:x,...h}=e,y=t?jsxRuntime.jsx(v,{name:t,className:`icon-[--control-icon-size-${i}]`,weight:s}):null,S=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[l==="left"&&y,typeof r=="function"?null:r,l==="right"&&y]}),F=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",className:`animate-spin icon-[--control-icon-size-${i}]`,"aria-hidden":"true"})}),jsxRuntime.jsx("div",{className:"invisible","aria-hidden":"true",children:S}),n&&jsxRuntime.jsx("span",{className:"sr-only",role:"status","aria-live":"polite",children:n})]}),w=tailwindMerge.twMerge(Iu(e),p,o?"aria-busy":""),R=d?{href:d,target:f,rel:x,...h}:{};if(d){let{onPress:C,onPressStart:k,onPressEnd:I,onPressChange:A,onPressUp:g,onAuxClick:N,onContextMenu:K,onDoubleClick:B,...U}=h;Object.assign(R,U);}let L=d?jsxRuntime.jsx(reactAriaComponents.Link,{...R,style:b,className:w,children:o?F:typeof r=="function"?(function(C){return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[l==="left"&&y,r(C),l==="right"&&y]})}):S}):jsxRuntime.jsx(reactAriaComponents.Button,{...h,style:b,className:w,children:o?F:typeof r=="function"?(function(C){return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[l==="left"&&y,r(C),l==="right"&&y]})}):S});return c&&c>0?jsxRuntime.jsxs("div",{className:"relative",children:[L,jsxRuntime.jsx("span",{className:`absolute ${Fu[m]} flex h-5 w-5 items-center justify-center rounded-full ${Mu[u]} text-xs`,"aria-label":`${c} items`,children:c})]}):L}function Ou({isSelected:e,isDisabled:t}){let r=[ae,"w-9 h-9 text-base cursor-default rounded-full flex items-center justify-center forced-color-adjust-none"];return t?r.push("text-gray-300 dark:text-zinc-600 forced-colors:text-[GrayText]"):e?r.push("bg-blue-600 invalid:bg-red-600 text-white forced-colors:bg-[Highlight] forced-colors:invalid:bg-[Mark] forced-colors:text-[HighlightText]"):r.push("text-zinc-900 dark:text-zinc-200 hover:bg-gray-100 dark:hover:bg-zinc-700 pressed:bg-gray-200 dark:pressed:bg-zinc-600"),r.join(" ")}function to({errorMessage:e,...t}){return jsxRuntime.jsxs(reactAriaComponents.Calendar,{...t,children:[jsxRuntime.jsx(ro,{}),jsxRuntime.jsxs(reactAriaComponents.CalendarGrid,{children:[jsxRuntime.jsx(oo,{}),jsxRuntime.jsx(reactAriaComponents.CalendarGridBody,{children:r=>jsxRuntime.jsx(reactAriaComponents.CalendarCell,{date:r,className:({isSelected:o,isDisabled:n})=>Ou({isSelected:o,isDisabled:n})})})]}),e&&jsxRuntime.jsx(reactAriaComponents.Text,{slot:"errorMessage",className:"text-sm text-red-600",children:e})]})}function ro(){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(H,{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-zinc-900 dark:text-zinc-200"}),jsxRuntime.jsx(H,{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 oo(){return jsxRuntime.jsx(reactAriaComponents.CalendarGridHeader,{children:e=>jsxRuntime.jsx(reactAriaComponents.CalendarHeaderCell,{className:"text-xs font-semibold text-text-caption",children:e})})}var Ku={xs:"text-lg font-semibold",sm:"text-xl font-semibold",md:"text-2xl font-semibold",lg:"text-3xl font-semibold",xl:"text-4xl font-semibold"},_u={page:"h-16 leading-[62px]"};function Ee({tag:e="h1",size:t="lg",height:r,className:o="",children:n}){let a=Ku[t],i=r?_u[r]:"";return jsxRuntime.jsx(e,{className:tailwindMerge.twMerge(a,i,o),children:n})}var z=({width:e,height:t,variant:r="rect",animation:o="pulse",gradient:n=false,flex:a=false,stack:i,responsive:l,delay:s=0,adjustAnimationSpeedBasedOnWidth:d=false,ariaLabel:p,className:c,"data-testid":u})=>{let[m,b]=lt.useState(s===0);if(lt.useEffect(()=>{if(s>0){let w=setTimeout(()=>b(true),s);return ()=>clearTimeout(w)}},[s]),!m)return null;let f=n?"bg-gradient-to-r from-[var(--skeleton-base)] via-[var(--skeleton-highlight)] to-[var(--skeleton-base)]":"bg-[var(--skeleton-base)]",x=d&&e?(()=>{let w=typeof e=="number"?e:parseFloat(String(e));return isNaN(w)?"":`animation-duration-[${Math.max(.8,w/100)}s]`})():"",h=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(--skeleton-wave)] before:to-transparent before:animate-wave ${x}`:"",y="rounded-sm";r==="circle"&&(y="rounded-full"),r==="text"&&(y="h-4 w-full rounded-sm");let S=a?"flex-1 min-w-0":"",F=l?Object.entries(l).map(([w,R])=>`${w}:w-[${R}]`).join(" "):"";return i?jsxRuntime.jsx("div",{className:"space-y-2","data-testid":u,children:i.map((w,R)=>jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(f,h,y,S,F,c),style:{width:w,height:t}},R))}):jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(f,h,y,S,F,c),style:{width:e,height:t},role:"presentation","aria-hidden":!p,"aria-label":p??void 0,"data-testid":u})},$i=({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 qu={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"},Xu="rounded-lg",In={square:"aspect-square",video:"aspect-video",wide:"aspect-[2/1]",auto:""},Yu={start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between"};function Ae({variant:e="outlined",className:t,children:r,isLoading:o=false}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-full overflow-hidden",qu[e],Xu,t),"data-testid":"card",children:o?jsxRuntime.jsx("div",{className:"p-6",children:jsxRuntime.jsx(z,{width:"100%",height:200})}):r})}function Bi({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(z,{width:120,height:20}),jsxRuntime.jsx(z,{width:24,height:24})]}),t&&jsxRuntime.jsx(z,{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(Ee,{tag:"h3",size:"sm",className:"text-text-heading",children:e}):e}),t&&jsxRuntime.jsx("div",{className:"text-sm text-text-muted",children:t})]}),r&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:r})]})})}function Vi({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",In[r],o),children:jsxRuntime.jsx(z,{width:"100%",height:"100%"})}):n?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-hidden",In[r],o),children:n}):e?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-hidden",In[r],o),children:jsxRuntime.jsx("img",{src:e,alt:t||"",className:"w-full h-full object-cover",loading:"lazy"})}):null}function zi({className:e,children:t,isLoading:r=false}){return r?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("px-6 py-4",e),children:jsxRuntime.jsxs("div",{className:"space-y-2",children:[jsxRuntime.jsx(z,{width:"100%",height:16}),jsxRuntime.jsx(z,{width:"80%",height:16}),jsxRuntime.jsx(z,{width:"60%",height:16})]})}):t?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("px-6 py-4 text-text-body",e),children:t}):null}function Hi({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(z,{width:80,height:32}),jsxRuntime.jsx(z,{width:60,height:32})]}):t?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("px-6 py-4 flex items-center gap-2",Yu[r],e),children:t}):null}Ae.Header=Bi;Ae.Media=Vi;Ae.Content=zi;Ae.Footer=Hi;function op(e){return jsxRuntime.jsxs(reactAriaComponents.CheckboxGroup,{...e,className:j(e.className,"flex flex-col gap-2"),children:[jsxRuntime.jsx(Y,{children:e.label}),e.children,e.description&&jsxRuntime.jsx(ee,{children:e.description}),jsxRuntime.jsx(q,{children:typeof e.errorMessage=="function"?void 0:e.errorMessage})]})}function np({isDisabled:e}){return `flex gap-2 items-center group text-sm transition ${e?"text-text-disabled":"text-text-caption"}`}function ap({isSelected:e,isInvalid:t,isDisabled:r,isIndeterminate:o}){let n="w-5 h-5 flex-shrink-0 rounded flex items-center justify-center border-2 transition ring-offset-2 focus:ring-2 focus:ring-border-focus",a="";return r?a="border-border-muted bg-background-muted":t?a="border-feedback-error-border bg-feedback-error-background":e||o?a="bg-action-primary border-action-primary hover:bg-action-primary-hover hover:border-action-primary-hover":a="bg-background-input border-border-input hover:border-border-focus",`${n} ${a}`}var Gi="w-4 h-4 text-text-onPrimary group-disabled:text-text-disabled";function br(e){let{children:t,...r}=e;return jsxRuntime.jsx(reactAriaComponents.Checkbox,{...r,className:reactAriaComponents.composeRenderProps(e.className,(o,n)=>`${np(n)} ${o||""}`),children:o=>{let{isSelected:n,isIndeterminate:a,...i}=o,l=jsxRuntime.jsx("div",{className:ap({isSelected:n,isIndeterminate:a,...i}),children:a?jsxRuntime.jsx(lucideReact.Minus,{"aria-hidden":true,className:Gi}):n?jsxRuntime.jsx(lucideReact.Check,{"aria-hidden":true,className:Gi}):null});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[l,typeof t=="function"?t(o):t]})}})}var lp={default:"bg-background-muted text-text-body border border-border-muted hover:bg-background-hover",primary:"bg-action-primary/10 text-action-primary border border-action-primary/20 hover:bg-action-primary/15",secondary:"bg-background-input text-text-body border border-border-input hover:bg-background-hover"},cp={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"},dp="opacity-75 cursor-not-allowed pointer-events-none";function Wi(e){let{variant:t,size:r,isDisabled:o,isClickable:n,className:a}=e;return tailwindMerge.twMerge("inline-flex items-center justify-center rounded-full font-medium transition-colors","whitespace-nowrap select-none",cp[r],_[r].text,lp[t],n&&!o&&"cursor-pointer",o&&dp,a)}function Bt({children:e,onRemove:t,size:r="md",variant:o="default",isRemovable:n=true,isDisabled:a=false,className:i,onClick:l}){let s=!!l&&!a,d=n&&t&&!a,p=m=>{m.stopPropagation(),m.preventDefault(),t&&!a&&t();},c=()=>{l&&!a&&l();},u=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("span",{className:"truncate",children:e}),d&&jsxRuntime.jsx("button",{type:"button",onClick:p,className:"flex-shrink-0 rounded-full p-0.5 hover:bg-black/10 transition-colors cursor-pointer","aria-label":"Remove",tabIndex:-1,children:jsxRuntime.jsx(v,{name:"X",size:r==="sm"?12:r==="md"?14:16,className:"text-current opacity-70 hover:opacity-100"})})]});return s?jsxRuntime.jsx("button",{type:"button",onClick:c,className:Wi({variant:o,size:r,isDisabled:a,isClickable:s,className:i}),disabled:a,children:u}):jsxRuntime.jsx("span",{className:Wi({variant:o,size:r,isDisabled:a,isClickable:s,className:i}),children:u})}function _i({value:e,readOnly:t=false,onChange:r,language:o="json",theme:n="github_dark",height:a,width:i="100%",className:l,lineHeight:s=19,minLines:d=3,maxLines:p=50,showLineNumbers:c=true,showGutter:u=true,fontSize:m=14,wrapEnabled:b=false}){let f=lt.useRef(null),x=lt.useMemo(()=>{if(a)return a;let h=(e.match(/\n/g)||[]).length+1;return `${Math.max(d,Math.min(h,p))*s+10}px`},[e,a,s,d,p]);return lt.useEffect(()=>{f.current?.editor&&f.current.editor.resize();},[x]),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-hidden rounded-md border border-border-input",l),style:{width:i,height:x},children:jsxRuntime.jsx(bp__default.default,{ref:f,mode:o,theme:n,value:e,onChange:r,readOnly:t,width:"100%",height:"100%",fontSize:m,showPrintMargin:false,showGutter:u,highlightActiveLine:!t,setOptions:{useWorker:true,showLineNumbers:c,tabSize:2,enableBasicAutocompletion:!t,enableLiveAutocompletion:!t,enableSnippets:!t,showFoldWidgets:true,wrap:b},editorProps:{$blockScrolling:true}})})}var Np=({isEntering:e,isExiting:t,className:r})=>["max-w-[200px] group bg-slate-700 dark:bg-slate-600 border border-slate-800 dark:border-white/10 shadow-[inset_0_1px_0_0_theme(colors.gray.600)] dark:shadow-none text-white 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 Dn({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)=>Np({...n,className:o})),children:[jsxRuntime.jsx(reactAriaComponents.OverlayArrow,{children:jsxRuntime.jsx("svg",{width:8,height:8,viewBox:"0 0 8 8",className:"fill-slate-700 stroke-gray-800 group-placement-left:-rotate-90 group-placement-right:rotate-90 group-placement-bottom:rotate-180 dark:fill-slate-600 dark:stroke-white/10 forced-colors:fill-[Canvas] forced-colors:stroke-[ButtonBorder]",children:jsxRuntime.jsx("path",{d:"M0 0 L4 4 L8 0"})})}),t]})]})}function no({value:e,children:t,className:r,size:o="sm"}){let[n,a]=lt.useState(false),s=jsxRuntime.jsx(H,{variant:"icon",size:o,onPress:()=>{let d=e||(typeof t=="string"?t:"");navigator.clipboard.writeText(d),a(true),setTimeout(()=>{a(false);},2e3);},className:"!px-2",children:jsxRuntime.jsx(v,{name:"Copy",size:o==="sm"?14:16})});return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center gap-1",r),children:[t,n?jsxRuntime.jsx(Dn,{content:"Copied!",children:s}):s]})}var Ui={duration:.5,ease:"easeInOut"},ao=lt.createContext(null),ft=()=>{let e=lt.useContext(ao);if(!e)throw new Error("useChartContext must be used within a ChartContextProvider");return e};var Vt=({data:e,color:t="#6b7280"})=>{let r=lt.useId(),o=lt.useId(),{xScale:n,yScale:a,animationSettings:i}=ft(),l=n.range(),s=a.range();return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("defs",{children:[jsxRuntime.jsxs("linearGradient",{id:r,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[jsxRuntime.jsx("stop",{offset:"50%",stopColor:t,stopOpacity:.1}),jsxRuntime.jsx("stop",{offset:"100%",stopColor:t,stopOpacity:0})]}),jsxRuntime.jsx("clipPath",{id:o,children:jsxRuntime.jsx("rect",{x:l[0],y:s[1],width:l[1]-l[0],height:s[0]-s[1]})})]}),jsxRuntime.jsx("g",{clipPath:`url(#${o})`,children:jsxRuntime.jsxs(framerMotion.motion.g,{initial:{scaleY:0},animate:{scaleY:1},transition:{duration:i.duration,ease:i.ease},style:{transformOrigin:`0 ${s[0]}px`,transformBox:"fill-box",isolation:"isolate"},children:[jsxRuntime.jsx(shape.AreaClosed,{data:e,x:d=>n(d.xValue),y:d=>a(d.yValue),yScale:a,fill:`url(#${r})`,curve:curve.curveLinear}),jsxRuntime.jsx(shape.LinePath,{data:e,x:d=>n(d.xValue),y:d=>a(d.yValue),stroke:t,strokeWidth:3,curve:curve.curveLinear})]})})]})};var Ht=({data:e,color:t="#6b7280",opacity:r=1,categoryColors:o={}})=>{let{xScale:n,yScale:a,animationSettings:i}=ft(),l=lt.useId(),s=n.range(),d=a.range(),p=[...e].sort((m,b)=>m.xValue.getTime()-b.xValue.getTime()),c=p.length>1?p[1].xValue.getTime()-p[0].xValue.getTime():15*6e4,u=Math.abs(n(new Date(p[0].xValue.getTime()+c))-n(p[0].xValue));return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("defs",{children:jsxRuntime.jsx("clipPath",{id:l,children:jsxRuntime.jsx("rect",{x:s[0],y:d[1],width:s[1]-s[0],height:d[0]-d[1]})})}),jsxRuntime.jsx("g",{clipPath:`url(#${l})`,children:jsxRuntime.jsx(framerMotion.motion.g,{initial:{scaleY:0},animate:{scaleY:1},transition:{duration:i.duration,ease:i.ease},style:{transformOrigin:`0 ${d[0]}px`,transformBox:"fill-box",isolation:"isolate"},children:p.map((m,b)=>{let f=n(m.xValue),x=a(m.yValue),h=d[0]-x,y=p[b+1],S=y?Math.abs(n(y.xValue)-f):u,F=m.category&&o[m.category]?o[m.category]:t;return jsxRuntime.jsx(shape.Bar,{x:f-S/2,y:x,width:S,height:h,fill:F,opacity:r,rx:1},m.xValue.getTime())})})})]})};var oe={top:20,right:20,bottom:50,left:60};function Gt(e,t="$"){let r=(o,n)=>o==null?"-":n(o);switch(e){case "number":return {format:o=>r(o,n=>n.toLocaleString()),tickFormat:o=>r(o,n=>n.toLocaleString())};case "percent":return {format:o=>r(o,n=>`${n.toFixed(1)}%`),tickFormat:o=>r(o,n=>`${n.toFixed(0)}%`),min:0,max:100,tickInterval:20};case "kWh":return {format:o=>r(o,n=>`${(n/1e3).toFixed(1)} kWh`),tickFormat:o=>r(o,n=>`${(n/1e3).toFixed(1)}`)};case "kW":return {format:o=>r(o,n=>`${(n/1e3).toFixed(1)} kW`),tickFormat:o=>r(o,n=>`${(n/1e3).toFixed(1)}`)};case "amperes":return {format:o=>r(o,n=>`${n.toFixed(1)} A`),tickFormat:o=>r(o,n=>`${n.toFixed(1)} A`)};case "temperature":return {format:o=>r(o,n=>`${n.toFixed(1)}\xB0`),tickFormat:o=>r(o,n=>`${n.toFixed(0)}\xB0`)};case "percentageChange":return {format:o=>r(o,n=>`${n>0?"+":""}${(n*100).toFixed(1)}%`),tickFormat:o=>r(o,n=>`${n>0?"+":""}${(n*100).toFixed(0)}%`),min:-100,max:100};case "decimal":return {format:o=>r(o,n=>n.toFixed(2)),tickFormat:o=>r(o,n=>n.toFixed(1))};case "currency":return {format:o=>r(o,n=>`${t}${n.toLocaleString()}`),tickFormat:o=>r(o,n=>`${t}${n.toLocaleString()}`)};case "scientific":return {format:o=>r(o,n=>n.toExponential(2)),tickFormat:o=>r(o,n=>n.toExponential(1))};case "integer":return {format:o=>r(o,n=>Math.round(n).toLocaleString()),tickFormat:o=>r(o,n=>Math.round(n).toLocaleString())};case "logarithmic":return {format:o=>r(o,n=>n.toExponential(1)),tickFormat:o=>r(o,n=>n.toExponential(0)),min:1,tickInterval:10};case "timeDuration":return {format:o=>r(o,n=>`${Math.floor(n/60)}:${(n%60).toString().padStart(2,"0")} min`),tickFormat:o=>r(o,n=>`${Math.floor(n/60)}m`),min:0};case "compact":return {format:o=>r(o,n=>new Intl.NumberFormat("en",{notation:"compact"}).format(n)),tickFormat:o=>r(o,n=>new Intl.NumberFormat("en",{notation:"compact"}).format(n))};case "si":return {format:o=>r(o,n=>new Intl.NumberFormat("en",{notation:"compact",maximumFractionDigits:2}).format(n)),tickFormat:o=>r(o,n=>new Intl.NumberFormat("en",{notation:"compact",maximumFractionDigits:1}).format(n))};case "bytes":return {format:o=>r(o,n=>{let a=["B","KB","MB","GB","TB"],i=0,l=n;for(;l>=1024&&i<a.length-1;)l/=1024,i++;return `${l.toFixed(1)} ${a[i]}`}),tickFormat:o=>r(o,n=>{let a=["B","KB","MB","GB","TB"],i=0,l=n;for(;l>=1024&&i<a.length-1;)l/=1024,i++;return `${l.toFixed(0)} ${a[i]}`}),min:0};case "rate":return {format:o=>r(o,n=>`${n.toFixed(1)} req/sec`),tickFormat:o=>r(o,n=>`${n.toFixed(0)}/s`)};case "ordinal":return {format:o=>r(o,n=>{let a=["th","st","nd","rd"],i=n%100;return n+(a[(i-20)%10]||a[i]||a[0])}),tickFormat:o=>r(o,n=>n.toString()),min:1};case "date":return {format:o=>r(o,n=>new Intl.DateTimeFormat("en",{dateStyle:"medium"}).format(new Date(n))),tickFormat:o=>r(o,n=>new Intl.DateTimeFormat("en",{dateStyle:"short"}).format(new Date(n))),min:0};case "largeCurrency":return {format:o=>r(o,n=>`${t}${(n/1e6).toFixed(2)}M`),tickFormat:o=>r(o,n=>`${t}${(n/1e6).toFixed(0)}M`)};case "coordinates":return {format:o=>r(o,n=>`${Math.abs(n).toFixed(3)}\xB0 ${n>=0?"N":"S"}`),tickFormat:o=>r(o,n=>`${Math.abs(n).toFixed(1)}\xB0 ${n>=0?"N":"S"}`),min:-90,max:90};case "ranked":return {format:o=>r(o,n=>`Rank: ${n}`),tickFormat:o=>r(o,n=>n.toString()),min:1};default:return {format:o=>r(o,n=>n.toLocaleString()),tickFormat:o=>r(o,n=>n.toLocaleString())}}}var $n=(e,t)=>{let r=d3Array.extent(e,o=>o.xValue);return scale.scaleTime({range:[oe.left,t-oe.right],domain:r,nice:true})},Bn=(e,t,r)=>{let o=Gt(r),n=d3Array.min(e,s=>s.yValue)||0,a=d3Array.max(e,s=>s.yValue)||0,i=o.min!==void 0?o.min:n>=0?0:n*1.1,l=o.max!==void 0?o.max:a<=0?0:a*1.1;return scale.scaleLinear({range:[t-oe.bottom,oe.top],domain:[i,l],nice:true})};var Op=({top:e,scale:t,width:r})=>jsxRuntime.jsx(axis.Axis,{orientation:"bottom",top:e,scale:t,numTicks:Math.min(6,Math.floor(r/100)),tickFormat:o=>{let n=o;return new Intl.DateTimeFormat("en",{month:"short",day:"numeric"}).format(n)},stroke:"#e5e7eb",tickStroke:"#e5e7eb",tickLabelProps:()=>({fill:"#6b7280",fontSize:12,textAnchor:"middle"})}),Wp=({left:e,scale:t,yFormatType:r})=>{let o=Gt(r);return jsxRuntime.jsx(axis.Axis,{orientation:"left",left:e,scale:t,numTicks:5,tickFormat:n=>(o.tickFormat||o.format)(n),stroke:"#e5e7eb",tickStroke:"#e5e7eb",tickLabelProps:()=>({fill:"#6b7280",fontSize:12,textAnchor:"end",dy:"0.33em"})})},hr={Bottom:Op,Left:Wp};var Up=({items:e})=>e.length===0?null:jsxRuntime.jsx("div",{className:"flex items-center gap-4",children:e.map(t=>jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("div",{className:"h-3 w-3 rounded-sm",style:{backgroundColor:t.fill}}),jsxRuntime.jsx("span",{className:"text-sm text-gray-600 dark:text-gray-400",children:t.category})]},t.category))}),so=({items:e,onExport:t})=>{let[r,o]=lt__namespace.default.useState(false),[n,a]=lt__namespace.default.useState(null),i=lt__namespace.default.useCallback(async l=>{let s=l;o(true),a(s);try{await t(s);}catch(d){console.error("Export failed:",d);}finally{o(false),a(null);}},[t]);return jsxRuntime.jsxs("div",{className:"mt-4 flex items-center justify-between overflow-y-hidden",children:[jsxRuntime.jsx(Up,{items:e}),jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{children:[jsxRuntime.jsxs(H,{variant:"secondary",size:"sm",isDisabled:r,children:[jsxRuntime.jsx(v,{name:"Export",size:16}),r?"Exporting...":"Export"]}),jsxRuntime.jsx(reactAriaComponents.Popover,{placement:"top end",className:"min-w-48 p-1 bg-white dark:bg-gray-800 rounded-lg shadow-xl ring-1 ring-gray-200 dark:ring-gray-700",children:jsxRuntime.jsxs(reactAriaComponents.Menu,{onAction:i,className:"outline-none",children:[jsxRuntime.jsx(reactAriaComponents.MenuItem,{id:"csv",className:"flex items-center gap-2 px-3 py-2 text-sm text-gray-700 hover:bg-gray-100 dark:text-gray-300 dark:hover:bg-gray-700 rounded cursor-pointer outline-none",isDisabled:r,children:jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(v,{name:"List",size:14}),n==="csv"?"Exporting...":"Export as CSV"]})}),jsxRuntime.jsx(reactAriaComponents.MenuItem,{id:"svg",className:"flex items-center gap-2 px-3 py-2 text-sm text-gray-700 hover:bg-gray-100 dark:text-gray-300 dark:hover:bg-gray-700 rounded cursor-pointer outline-none",isDisabled:r,children:jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(v,{name:"Code",size:14}),n==="svg"?"Exporting...":"Export as SVG"]})}),jsxRuntime.jsx(reactAriaComponents.MenuItem,{id:"png",className:"flex items-center gap-2 px-3 py-2 text-sm text-gray-700 hover:bg-gray-100 dark:text-gray-300 dark:hover:bg-gray-700 rounded cursor-pointer outline-none",isDisabled:r,children:jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(v,{name:"DownloadSimple",size:14}),n==="png"?"Exporting...":"Export as PNG"]})})]})})]})]})};function Gn(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 On(e,t,r={},o){let n=Array.isArray(t[0])?t:[t];try{switch(e){case "csv":await qp(n,r);break;case "svg":await Xp(o,r);break;case "png":await Yp(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 qp(e,t){try{let r=new Map;e.forEach(s=>{s.forEach(d=>{let p=d.xValue.getTime();r.has(p)||r.set(p,d.xValue);});});let n=Array.from(r.values()).sort((s,d)=>s.getTime()-d.getTime()).map(s=>{let d={[t.xLabel||"Date"]:s.toLocaleString("en-US",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"})};return e.forEach((p,c)=>{let u=t.seriesLabels?.[c]||`Series ${c+1}`,m=p.find(b=>b.xValue.getTime()===s.getTime());d[u]=m?m.yValue:"",m?.category&&(d[`${u} Category`]=m.category);}),d}),a=jp__default.default.unparse(n,{header:!0,skipEmptyLines:!0}),i=new Blob([a],{type:"text/csv;charset=utf-8;"}),l=Gn(t.filename||"chart-data","csv",t.timestamp!==!1);fileSaver.saveAs(i,l);}catch(r){throw new Error(`CSV export failed: ${r instanceof Error?r.message:"Unknown error"}`)}}async function Xp(e,t){if(!e.current)throw new Error("SVG element not found");try{let o=e.current.cloneNode(!0);if(!o.querySelector("rect[data-background]")){let d=document.createElementNS("http://www.w3.org/2000/svg","rect");d.setAttribute("width",o.getAttribute("width")||"100%"),d.setAttribute("height",o.getAttribute("height")||"100%"),d.setAttribute("fill","white"),d.setAttribute("data-background","true"),o.insertBefore(d,o.firstChild);}let i=new XMLSerializer().serializeToString(o);i.includes("<?xml")||(i=`<?xml version="1.0" encoding="UTF-8"?>
|
|
77
|
-
`+i),i.includes("xmlns=")||(i=i.replace("<svg",'<svg xmlns="http://www.w3.org/2000/svg"'));let l=new Blob([i],{type:"image/svg+xml;charset=utf-8"}),s=Gn(t.filename||"chart","svg",t.timestamp!==!1);fileSaver.saveAs(l,s);}catch(r){throw new Error(`SVG export failed: ${r instanceof Error?r.message:"Unknown error"}`)}}async function Yp(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);i.setAttribute("width",String(a.width)),i.setAttribute("height",String(a.height)),i.removeAttribute("transform");let l=i.getElementsByTagName("text");Array.from(l).forEach(u=>{u.style.fontFamily||(u.style.fontFamily="system-ui, -apple-system, sans-serif"),u.style.fontSize||(u.style.fontSize="12px");});let s=document.createElementNS("http://www.w3.org/2000/svg","rect");s.setAttribute("width",String(a.width)),s.setAttribute("height",String(a.height)),s.setAttribute("fill","white"),i.insertBefore(s,i.firstChild);let p=new XMLSerializer().serializeToString(i);p.includes("xmlns=")||(p=p.replace("<svg",'<svg xmlns="http://www.w3.org/2000/svg"'));let c=new Blob([p],{type:"image/svg+xml;charset=utf-8"});return o=URL.createObjectURL(c),new Promise((u,m)=>{let b=new Image,f=setTimeout(()=>{o&&URL.revokeObjectURL(o),m(new Error("Image loading timeout"));},1e4);b.onload=()=>{clearTimeout(f);try{let x=document.createElement("canvas");x.width=a.width*r,x.height=a.height*r;let h=x.getContext("2d");if(!h)throw new Error("Canvas context not available");h.imageSmoothingEnabled=!0,h.imageSmoothingQuality="high",h.scale(r,r),h.fillStyle="white",h.fillRect(0,0,a.width,a.height),h.drawImage(b,0,0,a.width,a.height),x.toBlob(y=>{if(y){let S=Gn(t.filename||"chart","png",t.timestamp!==!1);fileSaver.saveAs(y,S),u();}else m(new Error("Failed to create PNG blob"));o&&URL.revokeObjectURL(o);},"image/png",1);}catch(x){o&&URL.revokeObjectURL(o),m(x);}},b.onerror=()=>{clearTimeout(f),o&&URL.revokeObjectURL(o),m(new Error("Failed to load SVG as image"));},b.src=o;})}catch(n){throw o&&URL.revokeObjectURL(o),new Error(`PNG export failed: ${n instanceof Error?n.message:"Unknown error"}`)}}function Jp(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 Qp(e){return {csv:"CSV Spreadsheet",svg:"SVG Vector Image",png:"PNG Image"}[e]||"Unknown Format"}var lo=({data:e,formatType:t})=>{if(!e)return null;let r=Gt(t),o=lt__namespace.default.useRef(null),[n,a]=lt__namespace.default.useState({x:0,y:0,translate:"translate(-50%, -100%)"});lt__namespace.default.useEffect(()=>{if(!o.current)return;let s=o.current.getBoundingClientRect(),d=window.innerHeight,p=e.x,c=e.y,u=e.position==="left"?"translate(calc(-100% - 16px), -50%)":"translate(16px, -50%)";c-s.height/2<0?c=s.height/2:c+s.height/2>d&&(c=d-s.height/2),a({x:p,y:c,translate:u});},[e.x,e.y,e.position]);let i=l=>new Intl.DateTimeFormat("en",{month:"short",day:"numeric",year:"numeric"}).format(l);return jsxRuntime.jsx(framerMotion.AnimatePresence,{children:jsxRuntime.jsxs(framerMotion.motion.div,{ref:o,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-white p-4 text-sm shadow-xl ring-1 ring-gray-200 dark:bg-gray-800 dark:ring-gray-700",style:{left:n.x,top:n.y,transform:n.translate},children:[jsxRuntime.jsx("time",{className:"mb-1 font-medium text-gray-900 dark:text-gray-100",children:i(e.xValue)}),jsxRuntime.jsx("ul",{className:"list-none p-0",children:e.series.map(l=>jsxRuntime.jsxs("li",{className:"flex items-center gap-2 py-0.5",children:[jsxRuntime.jsx("div",{className:"h-2 w-2 rounded-full",style:{backgroundColor:l.color}}),jsxRuntime.jsxs("span",{className:"font-medium text-gray-700 dark:text-gray-300",children:[l.label,":"]}),jsxRuntime.jsx("span",{className:"text-gray-600 dark:text-gray-400",children:r.format(l.value)})]},l.label))})]})})};var Ot=({data:e,color:t="#6b7280",strokeWidth:r=3,strokeDasharray:o})=>{let{xScale:n,yScale:a,animationSettings:i}=ft(),l=a.range();return jsxRuntime.jsx(framerMotion.motion.g,{initial:{scaleY:0},animate:{scaleY:1},transition:{duration:i.duration,ease:i.ease},style:{transformOrigin:`0 ${l[0]}px`,transformBox:"fill-box",isolation:"isolate"},children:jsxRuntime.jsx(shape.LinePath,{data:e,x:s=>n(s.xValue),y:s=>a(s.yValue),stroke:t,strokeWidth:r,strokeDasharray:o,strokeLinecap:"round",curve:curve.curveLinear})})};var dm=d3Array.bisector(e=>e.xValue).left,um=()=>jsxRuntime.jsx("div",{className:"flex h-full items-center justify-center",children:jsxRuntime.jsx("p",{className:"text-gray-500",children:"No data available"})}),pm=()=>jsxRuntime.jsxs("div",{className:"flex h-full flex-col gap-4 p-4",children:[jsxRuntime.jsx(z,{className:"h-full w-full"}),jsxRuntime.jsxs("div",{className:"flex gap-4",children:[jsxRuntime.jsx(z,{className:"h-4 w-24"}),jsxRuntime.jsx(z,{className:"h-4 w-24"})]})]}),mm=({parentWidth:e,parentHeight:t,yFormatType:r="number",isLoading:o=false,children:n})=>{let[a,i]=lt.useState(null),l=lt.useRef(null),s=lt.useRef(0),d=lt.useMemo(()=>jr(),[]),p=lt.useMemo(()=>yn(),[]),{datasets:c,seriesMetadata:u}=lt.useMemo(()=>{let C=[],k=[],I=0,A=lt.Children.toArray(n).filter(g=>lt.isValidElement(g)&&(g.type===Vt||g.type===Ot||g.type===Ht)&&g.props.data).length;return lt.Children.forEach(n,g=>{if(lt.isValidElement(g)&&(g.type===Vt||g.type===Ot||g.type===Ht)&&g.props.data){C.push(g.props.data);let N=g.props.color||(A===1?p:d[I%d.length]);k.push({label:g.props.label||`Series ${C.length}`,color:N}),I++;}}),{datasets:C,seriesMetadata:k}},[n]),m=e,b=t-60,f=lt.useMemo(()=>c.flat(),[c]),x=lt.useMemo(()=>$n(f,m),[f,m]),h=lt.useMemo(()=>Bn(f,b,r),[f,b,r]),y=lt.useCallback(C=>{let{left:k}=l.current?.getBoundingClientRect()||{left:0},I=C.clientX-k;if(C.timeStamp-(s.current||0)<16)return;s.current=C.timeStamp;let A=x.invert(I),g=c.map((B,U)=>{if(!B||B.length===0)return null;let re=dm(B,A,1);if(re===0)return {point:B[0],datasetIndex:U};if(re>=B.length)return {point:B[B.length-1],datasetIndex:U};let ne=B[re-1],E=B[re];if(!ne||!E)return null;let G=Math.abs(ne.xValue.getTime()-A.getTime()),X=Math.abs(E.xValue.getTime()-A.getTime());return {point:G<X?ne:E,datasetIndex:U}}).filter(B=>B!==null&&u[B.datasetIndex]!==void 0).map(({point:B,datasetIndex:U})=>({label:u[U].label,value:B.yValue,color:u[U].color,point:B}));if(g.length===0){i(null);return}let N=x(g[0].point.xValue),K=N>(m-oe.right-oe.left)/2+oe.left;i({xValue:g[0].point.xValue,series:g.map(({label:B,value:U,color:re})=>({label:B,value:U,color:re})),x:N,y:h(g[0].value),position:K?"left":"right"});},[c,u,x,h,m]),S=()=>{i(null);},F={width:m,height:b,xScale:x,yScale:h,yFormatType:r,animationSettings:Ui,tooltip:{data:a,show:i,hide:()=>i(null)}},w=lt.Children.map(n,(C,k)=>lt.isValidElement(C)&&(C.type===Vt||C.type===Ot||C.type===Ht)?lt__namespace.default.cloneElement(C,{...C.props,color:u[k]?.color}):C),R=u.map(C=>({category:C.label,fill:C.color})),L=lt.useCallback(async C=>{try{await On(C,c,{xLabel:"Date",yLabel:"Value",seriesLabels:u.map(k=>k.label),timestamp:!0},l);}catch(k){console.error("Export failed:",k);}},[c,u]);return o?jsxRuntime.jsx(pm,{}):c.length===0?jsxRuntime.jsx(um,{}):jsxRuntime.jsx("div",{className:"relative flex h-full flex-col",children:jsxRuntime.jsxs(ao.Provider,{value:F,children:[jsxRuntime.jsxs("svg",{width:m,height:b,className:"overflow-visible",ref:l,children:[jsxRuntime.jsx("g",{children:h.ticks(5).map(C=>jsxRuntime.jsx(shape.Line,{from:{x:oe.left,y:h(C)},to:{x:m-oe.right,y:h(C)},stroke:"#e5e7eb",strokeWidth:1},`grid-line-${C}`))}),w,jsxRuntime.jsx(hr.Bottom,{top:b-oe.bottom,scale:x,width:m-oe.left-oe.right}),jsxRuntime.jsx(hr.Left,{left:oe.left,scale:h,yFormatType:r}),a?.series.map(C=>jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("circle",{cx:x(a.xValue),cy:h(C.value),r:8,fill:"white",stroke:C.color,strokeWidth:2,style:{transition:"all 100ms ease-out"}}),jsxRuntime.jsx("circle",{cx:x(a.xValue),cy:h(C.value),r:4,fill:C.color,style:{transition:"all 100ms ease-out"}})]},`highlight-${C.label}`)),jsxRuntime.jsx("rect",{x:oe.left,y:oe.top,width:m-oe.left-oe.right,height:b-oe.top-oe.bottom,fill:"transparent",style:{cursor:"crosshair"},onMouseMove:y,onMouseLeave:S})]}),jsxRuntime.jsx(lo,{data:a,formatType:r}),jsxRuntime.jsx(so,{onExport:L,items:R})]})})},ts=responsive.withParentSize(mm);function Un(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 $e(e="normal",t){return tailwindMerge.twMerge({high:"font-semibold text-text-body",normal:"text-text-body",low:"text-text-muted"}[e],t&&"hover:text-action-primary cursor-pointer transition-colors")}function se(e="left",t){return tailwindMerge.twMerge("flex items-center gap-1",Un(e),t)}function uo(e,t="\u2014"){return e==null||e===""?t:String(e)}var bt={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 Be(e="normal"){return {high:bt.lg,normal:bt.md,low:bt.sm}[e]}function Ce(e,t){return typeof e=="function"?e(t):e}function rs(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-green-100 text-green-800",error:"bg-red-100 text-red-800",warning:"bg-yellow-100 text-yellow-800",info:"bg-blue-100 text-blue-800",neutral:"bg-gray-100 text-gray-800"}[e])}function os(e){return e?"success":"neutral"}function po(e,t=false){return t?e>0?"text-green-600":e<0?"text-red-600":"text-text-body":"text-text-body"}function ns(e="hover"){switch(e){case "visible":return "text-action-primary underline hover:text-action-primary-hover cursor-pointer";case "hover":return "hover:underline hover:text-action-primary cursor-pointer transition-colors";case "none":return "cursor-pointer";default:return ""}}function xt(e,t,r,o="hover",n){if(!t)return e;let a=typeof t=="function"&&r?t(r):t,i=ns(o);return jsxRuntime.jsx("a",{href:a,className:tailwindMerge.twMerge(i,n),onClick:l=>{l.metaKey||l.ctrlKey;},children:e})}function as({row:e,context:t,actions:r,align:o="right",size:n="sm"}){let{isLoading:a}=t;if(a)return jsxRuntime.jsx(z,{className:bt.sm});let i=r.filter(s=>!Ce(s.hidden,e));if(i.length===0)return null;let l=se(o);return jsxRuntime.jsx("div",{className:l,children:i.map(s=>{let d=Ce(s.disabled,e);return s.variant==="icon"||!s.label?jsxRuntime.jsx(H,{variant:"icon",size:n,onPress:()=>{s.onClick(e);},isDisabled:d,"aria-label":s.label||s.id,children:jsxRuntime.jsx(v,{name:s.icon||"DotsThree",size:n==="sm"?16:20})},s.id):jsxRuntime.jsxs(H,{variant:s.variant||"secondary",size:n,onPress:()=>{s.onClick(e);},isDisabled:d,children:[s.icon&&jsxRuntime.jsx(v,{name:s.icon,size:n==="sm"?14:16}),s.label]},s.id)})})}function is({value:e,context:t,format:r="icon",trueText:o="Yes",falseText:n="No",trueIcon:a="Check",falseIcon:i="X",showFalse:l=true,align:s="center",emphasis:d="normal"}){let{isLoading:p}=t;if(p)return jsxRuntime.jsx(z,{className:Be(d)});let c=!!e;if(!c&&!l)return jsxRuntime.jsx("div",{className:se(s)});let u=se(s);switch(r){case "icon":return jsxRuntime.jsx("div",{className:u,children:jsxRuntime.jsx(v,{name:c?a:i,size:16,className:c?"text-green-600":"text-gray-400"})});case "text":return jsxRuntime.jsx("div",{className:u,children:jsxRuntime.jsx("span",{className:$e(d),children:c?o:n})});case "badge":return jsxRuntime.jsx("div",{className:u,children:jsxRuntime.jsx(At,{variant:c?"success":"neutral",size:"sm",children:c?o:n})});default:return null}}function ss({value:e,row:t,context:r,format:o="date",customFormat:n,emptyText:a="\u2014",align:i="left",emphasis:l="normal",href:s,linkBehavior:d="hover"}){let{isLoading:p}=r;if(p)return jsxRuntime.jsx(z,{className:Be(l)});if(!e)return jsxRuntime.jsx("div",{className:se(i,"text-text-muted"),children:a});let c=e instanceof Date?e:new Date(e);if(isNaN(c.getTime()))return jsxRuntime.jsx("div",{className:se(i,"text-text-muted"),children:a});let u;switch(o){case "date":u=c.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"});break;case "time":u=c.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit"});break;case "datetime":u=c.toLocaleString("en-US",{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"});break;case "relative":u=bm(c);break;case "custom":u=n?c.toLocaleString("en-US",n):c.toISOString();break;default:u=c.toLocaleDateString();}let m=se(i,$e(l)),b=Ce(s,t);return b?jsxRuntime.jsx("div",{className:m,children:xt(u,b,t,d)}):jsxRuntime.jsx("div",{className:m,children:u})}function bm(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 ls({value:e,row:t,context:r,format:o="number",decimals:n=0,prefix:a,suffix:i,emptyText:l="\u2014",align:s="right",emphasis:d="normal",href:p,linkBehavior:c="hover",showPositiveSign:u=false,colorCode:m=false}){let{isLoading:b}=r;if(b)return jsxRuntime.jsx(z,{className:Be(d)});if(e==null||isNaN(Number(e)))return jsxRuntime.jsx("div",{className:se(s,"text-text-muted"),children:l});let f=Number(e),x;switch(o){case "currency":x=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:n,maximumFractionDigits:n}).format(f);break;case "percent":x=new Intl.NumberFormat("en-US",{style:"percent",minimumFractionDigits:n,maximumFractionDigits:n}).format(f/100);break;case "compact":x=new Intl.NumberFormat("en-US",{notation:"compact",minimumFractionDigits:n>0?1:0,maximumFractionDigits:n}).format(f);break;default:x=new Intl.NumberFormat("en-US",{minimumFractionDigits:n,maximumFractionDigits:n}).format(f);}let y=`${u&&f>0?"+":""}${x}`,S=m?po(f,true):$e(d),F=se(s,S),w=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[a&&jsxRuntime.jsx("span",{className:"text-text-muted",children:a}),jsxRuntime.jsx("span",{children:y}),i&&jsxRuntime.jsx("span",{className:"text-text-muted",children:i})]}),R=Ce(p,t);return R?jsxRuntime.jsx("div",{className:F,children:xt(w,R,t,c)}):jsxRuntime.jsx("div",{className:F,children:w})}function cs({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:se(a),children:jsxRuntime.jsx(z,{className:"h-4 w-4 rounded"})});let l=Ce(n,e),s=se(a);return jsxRuntime.jsx("div",{className:s,children:jsxRuntime.jsx(br,{isSelected:r,onChange:d=>{o?.(e,d);},isDisabled:l,"aria-label":"Select row"})})}function ds({value:e,row:t,context:r,prefix:o,suffix:n,emptyText:a="\u2014",href:i,linkBehavior:l="visible",emphasis:s="normal",truncate:d=true,align:p="left"}){let{isLoading:c}=r;if(c)return jsxRuntime.jsx(z,{className:Be(s)});let u=uo(e,a),m=Ce(i,t),b=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[o&&jsxRuntime.jsx("span",{className:"text-text-muted",children:o}),jsxRuntime.jsx("span",{className:d?"truncate":"",children:u}),n&&jsxRuntime.jsx("span",{className:"text-text-muted",children:n})]}),f=se(p,$e(s));return m?jsxRuntime.jsx("div",{className:f,children:xt(b,m,t,l)}):jsxRuntime.jsx("div",{className:f,children:b})}var Cm={sm:"sm:hidden",md:"md:hidden",lg:"lg:hidden",xl:"xl:hidden"},Nm={sm:"hidden sm:grid",md:"hidden md:grid",lg:"hidden lg:grid",xl:"hidden xl:grid"};function fo(e,t){return t.accessor?typeof t.accessor=="function"?t.accessor(e):e[t.accessor]:null}function go(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 xo({row:e,columns:t,density:r,isLoading:o,onClick:n}){let a=t.filter(c=>c.mobile!==false).map(c=>{let u=c.mobile===false?null:c.mobile;return {...c,mobilePriority:u?.priority??2,mobileFormat:u?.format??"secondary",showLabel:u?.label??u?.format==="secondary",icon:u?.icon}}).sort((c,u)=>c.mobilePriority-u.mobilePriority),i=a.filter(c=>c.mobilePriority===1||c.mobileFormat==="primary"),l=a.filter(c=>c.mobilePriority===2&&c.mobileFormat!=="primary"),s=a.filter(c=>c.mobileFormat==="badge"),d={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(c=>{let u=fo(e,c);return jsxRuntime.jsx("div",{className:"font-medium text-text-body [&>*]:!justify-start [&>*]:!text-left",children:go(u,e,c,d)},c.id)})}),s.length>0&&jsxRuntime.jsx("div",{className:"ml-2 flex flex-wrap gap-1",children:s.map(c=>{let u=fo(e,c);return jsxRuntime.jsx("div",{className:"inline-flex",children:go(u,e,c,d)},c.id)})})]}),l.length>0&&jsxRuntime.jsx("div",{className:"space-y-1",children:l.map(c=>{let u=fo(e,c),m=c.showLabel&&c.label;return jsxRuntime.jsxs("div",{className:"flex items-center text-sm text-text-muted",children:[c.icon&&jsxRuntime.jsx(v,{name:c.icon,className:"mr-1.5 h-4 w-4 flex-shrink-0"}),m&&jsxRuntime.jsxs("span",{className:"mr-1 font-medium",children:[c.label,":"]}),jsxRuntime.jsx("span",{className:"truncate [&>*]:!justify-start [&>*]:!text-left",children:go(u,e,c,d)})]},c.id)})})]})}function ho({row:e,columns:t,density:r,isLoading:o,onClick:n}){let a=t.filter(s=>s.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((s,d)=>{let p=fo(e,s),c=d===0;return jsxRuntime.jsxs("div",{children:[!c&&jsxRuntime.jsx("div",{className:"text-xs text-text-muted",children:s.label}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(c?"font-medium text-text-body":"text-sm text-text-body","[&>*]:!justify-start [&>*]:!text-left"),children:go(p,e,s,i)})]},s.id)})})})}function us(e="md"){return {mobile:Cm[e],desktop:Nm[e]}}function ps({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 qn={compact:"py-1.5 px-3 text-sm",default:"py-3 px-4 text-sm",relaxed:"py-4 px-4 text-base"},Xn={left:"text-left justify-start",center:"text-center justify-center",right:"text-right justify-end"},wm={full:"w-full",auto:"w-auto inline-block",contained:"w-full max-w-6xl mx-auto"},Pm={auto:"table-auto",fixed:"table-fixed",responsive:"table-auto"};function Yn(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 km(e,t){return t.accessor?typeof t.accessor=="function"?t.accessor(e):e[t.accessor]:null}function Rm({column:e,sortConfig:t,onSort:r,stickyHeader:o,density:n="default"}){let a=t?.columnId===e.id,i=a?t.direction:null;return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center gap-1 border-b border-border-default bg-background-surface font-medium text-text-muted",qn[n],Xn[e.align||"left"],o&&"sticky top-0 z-10",e.sortable&&"cursor-pointer hover:bg-background-hover"),onClick:()=>e.sortable&&r(e.id),role:"columnheader","aria-sort":a?i==="asc"?"ascending":"descending":"none",style:Yn(e),children:[jsxRuntime.jsx("span",{className:"truncate",children:e.label}),e.sortable&&jsxRuntime.jsx("div",{className:"flex flex-col",children:jsxRuntime.jsx(v,{name:i==="asc"?"CaretUp":i==="desc"?"CaretDown":"CaretUp",size:12,className:a?"text-text-body":"text-text-muted opacity-50"})})]})}function Tm({column:e,row:t,rowIndex:r,columnIndex:o,isHovered:n,density:a="default",className:i}){let l=km(t,e),s={isLoading:false,isHovered:n,rowIndex:r,columnIndex:o,density:a},d;if(e.cell){let p=e.cell,c=typeof e.cellProps=="function"?e.cellProps(l,t):e.cellProps;d=jsxRuntime.jsx(p,{value:l,row:t,context:s,...c});}else e.render?d=e.render(l,t,s):d=jsxRuntime.jsx("span",{className:"truncate",children:l?.toString()??""});return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex items-center border-b border-border-default",qn[a],Xn[e.align||"left"],i),role:"cell",style:Yn(e),children:d})}function Lm({column:e,rowIndex:t,columnIndex:r,density:o="default"}){let n={isLoading:true,rowIndex:t,columnIndex:r,density:o},a;if(e.cell){let i=e.cell,l=typeof e.cellProps=="function"?e.cellProps(null,{}):e.cellProps;a=jsxRuntime.jsx(i,{value:null,row:{},context:n,...l});}else e.render?a=e.render(null,{},n):a=jsxRuntime.jsx(z,{className:"h-4 w-full max-w-[200px]"});return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex items-center border-b border-border-default",qn[o],Xn[e.align||"left"]),role:"cell",style:Yn(e),children:a})}function Fm({columns:e,row:t,rowIndex:r,density:o="default",onClick:n}){let[a,i]=lt.useState(false),l=lt.useCallback(()=>{n&&n(t);},[n,t]);return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("contents group",n&&"cursor-pointer"),role:"row",onClick:l,onMouseEnter:()=>i(true),onMouseLeave:()=>i(false),children:e.map((s,d)=>jsxRuntime.jsx(Tm,{column:s,row:t,rowIndex:r,columnIndex:d,isHovered:a,density:o,className:n?"group-hover:bg-background-hover":""},s.id))})}function Mm({columns:e,rowIndex:t,density:r="default"}){return jsxRuntime.jsx("div",{className:"contents",role:"row",children:e.map((o,n)=>jsxRuntime.jsx(Lm,{column:o,rowIndex:t,columnIndex:n,density:r},o.id))})}function gs({columns:e,data:t,className:r,density:o="default",width:n="full",height:a,maxHeight:i,layout:l="auto",mobileRenderer:s="auto",customMobileRowRender:d,mobileBreakpoint:p="md",isLoading:c=false,loadingRowCount:u=5,stickyHeader:m=false,onRowClick:b,getRowId:f,hideHeader:x=false,onSort:h,"aria-label":y}){let[S,F]=lt.useState(null),w=lt.useMemo(()=>e.map(g=>{if(g.width)return typeof g.width=="number"?`${g.width}px`:g.width;if(g.flex)return `${g.flex}fr`;if(g.minWidth&&g.maxWidth){let N=typeof g.minWidth=="number"?`${g.minWidth}px`:g.minWidth,K=typeof g.maxWidth=="number"?`${g.maxWidth}px`:g.maxWidth;return `minmax(${N}, ${K})`}return g.minWidth?`minmax(${typeof g.minWidth=="number"?`${g.minWidth}px`:g.minWidth}, 1fr)`:g.maxWidth?`minmax(0, ${typeof g.maxWidth=="number"?`${g.maxWidth}px`:g.maxWidth})`:"1fr"}).join(" "),[e]),R=lt.useCallback(g=>{if(!e.find(B=>B.id===g)?.sortable)return;let K=null;S?.columnId===g?S.direction==="asc"?K={columnId:g,direction:"desc"}:K=null:K={columnId:g,direction:"asc"},F(K),h?.(K);},[e,S,h]),L={};a&&(L.height=typeof a=="number"?`${a}px`:a,L.overflowY="auto"),i&&(L.maxHeight=typeof i=="number"?`${i}px`:i,L.overflowY="auto");let C=tailwindMerge.twMerge(wm[n],l==="responsive"?"overflow-x-auto":"overflow-auto",r),k=us(p),I=s!=="none",A=(g,N)=>I?s==="custom"&&d?d(g,N):jsxRuntime.jsx(s==="cards"?ho:xo,{row:g,columns:e,density:o,isLoading:c,onClick:b?()=>b(g):void 0}):null;return jsxRuntime.jsxs("div",{className:C,style:L,children:[jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("grid border-separate border-spacing-0",Pm[l],n==="auto"?"inline-grid w-auto":"w-full",I&&k.desktop),role:"table","aria-label":y,style:{gridTemplateColumns:w},children:[!x&&jsxRuntime.jsx("div",{className:"contents",role:"rowgroup",children:e.map(g=>jsxRuntime.jsx(Rm,{column:g,sortConfig:S,onSort:R,stickyHeader:m,density:o},g.id))}),jsxRuntime.jsx("div",{className:"contents",role:"rowgroup",children:c?Array.from({length:u}).map((g,N)=>jsxRuntime.jsx(Mm,{columns:e,rowIndex:N,density:o},`loading-${N}`)):t.length>0?t.map((g,N)=>{let K=f?f(g):`row-${N}`;return jsxRuntime.jsx(Fm,{columns:e,row:g,rowIndex:N,density:o,onClick:b},K)}):jsxRuntime.jsx("div",{className:"col-span-full py-12 text-center text-text-muted",role:"row",children:jsxRuntime.jsx("div",{role:"cell",children:"No data available"})})})]}),I&&jsxRuntime.jsx("div",{className:k.mobile,children:c?Array.from({length:u}).map((g,N)=>jsxRuntime.jsx(ps,{density:o},`mobile-loading-${N}`)):t.length>0?t.map((g,N)=>{let K=f?f(g):`mobile-row-${N}`;return jsxRuntime.jsx("div",{children:A(g,N)},K)}):jsxRuntime.jsx("div",{className:"py-12 text-center text-text-muted",children:"No data available"})})]})}function bs({label:e,description:t,errorMessage:r,showCalendar:o=false,...n}){let[a,i]=lt.useState(false),l=s=>{n.onChange&&s&&n.onChange(s),i(false);};return jsxRuntime.jsxs(reactAriaComponents.DateField,{...n,className:j(n.className,"flex flex-col gap-1"),children:[e&&jsxRuntime.jsx(Y,{children:e}),o?jsxRuntime.jsxs(Xr,{className:"w-auto min-w-[208px]",children:[jsxRuntime.jsx(Zt,{className:"min-w-[150px] flex-1"}),jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{isOpen:a,onOpenChange:i,children:[jsxRuntime.jsx(H,{variant:"icon",className:"mr-1 w-6 rounded outline-offset-0",children:jsxRuntime.jsx(lucideReact.CalendarIcon,{"aria-hidden":true,className:"h-4 w-4"})}),jsxRuntime.jsx(reactAriaComponents.Popover,{children:jsxRuntime.jsx(reactAriaComponents.Dialog,{className:"p-4",children:jsxRuntime.jsx(to,{value:n.value,onChange:l,minValue:n.minValue,maxValue:n.maxValue,isDisabled:n.isDisabled,isReadOnly:n.isReadOnly,isDateUnavailable:n.isDateUnavailable})})})]})]}):jsxRuntime.jsx(Zt,{}),t&&jsxRuntime.jsx(ee,{children:t}),typeof r=="string"?jsxRuntime.jsx(q,{children:r}):null]})}function Hm({isPlaceholder:e,isDisabled:t}){return ["inline box-content px-0.5 -my-0.5 rounded outline-none tabular-nums text-center transition-colors",e?"text-text-muted italic":"text-text-body",t?"text-text-disabled cursor-not-allowed":"cursor-text","hover:bg-text-body/5","data-[focused]:!outline-[1.5px] data-[focused]:!outline-[var(--control-focus-ring-color)] data-[focused]:![--tw-outline-style:solid]"].filter(Boolean).join(" ")}function Zt(e){return jsxRuntime.jsx(reactAriaComponents.DateInput,{className:t=>pr({...t,className:typeof e.className=="string"?e.className:"min-w-[150px] px-2 py-1.5 text-sm flex items-center gap-0.5"}),...e,children:t=>jsxRuntime.jsx(reactAriaComponents.DateSegment,{segment:t,className:Hm({isPlaceholder:t.isPlaceholder,isDisabled:!t.isEditable})})})}function Ut(e){return jsxRuntime.jsx(reactAriaComponents.Dialog,{...e,className:tailwindMerge.twMerge("relative h-auto max-h-[inherit] overflow-auto outline-none [[data-placement]>&]:p-4",e.className),role:"dialog"})}function qm({selectionState:e,isDisabled:t}){let r=`${ae} w-full h-full flex items-center justify-center rounded-sm forced-color-adjust-none font-semibold`,o={none:"text-text-body group-hover:bg-gray-200 group-pressed:bg-gray-200",middle:["group-hover:bg-gray-300 forced-colors:group-hover:bg-[Highlight]","group-invalid:group-hover:bg-red-200 forced-colors:group-invalid:group-hover:bg-[Mark]","group-pressed:bg-blue-300 forced-colors:group-pressed:bg-[Highlight] forced-colors:text-[HighlightText]","group-invalid:group-pressed:bg-red-300 forced-colors:group-invalid:group-pressed:bg-[Mark]"].join(" "),cap:" group-invalid:bg-red-600 forced-colors:bg-[Highlight] forced-colors:group-invalid:bg-[Mark] text-white forced-colors:text-white !bg-neutral-black"},n=t?"text-textFaint dark:text-zinc-600 forced-colors:text-textFaint font-light":"";return [r,o[e],n].filter(Boolean).join(" ")}function yo({errorMessage:e,...t}){return jsxRuntime.jsxs(reactAriaComponents.RangeCalendar,{...t,children:[jsxRuntime.jsx(ro,{}),jsxRuntime.jsxs(reactAriaComponents.CalendarGrid,{className:"w-full [&_td]:px-0",children:[jsxRuntime.jsx(oo,{}),jsxRuntime.jsx(reactAriaComponents.CalendarGridBody,{children:r=>jsxRuntime.jsx(reactAriaComponents.CalendarCell,{date:r,className:"selection-start:rounded-s-end selection-end:rounded-e-end [td:last-child_&]:rounded-e-end group h-9 w-9 cursor-default text-sm outline-none outside-month:text-gray-300 selected:bg-background-selected invalid:selected:bg-red-100 forced-colors:selected:bg-[Highlight] forced-colors:selected:text-white forced-colors:invalid:selected:bg-[Mark] [td:first-child_&]:rounded-s-full",children:({formattedDate:o,isSelected:n,isSelectionStart:a,isSelectionEnd:i,isFocusVisible:l,isDisabled:s})=>jsxRuntime.jsx("span",{className:qm({selectionState:n&&(a||i)?"cap":n?"middle":"none",isDisabled:s}),children:o})})})]}),e&&jsxRuntime.jsx(reactAriaComponents.Text,{slot:"errorMessage",className:"text-sm text-red-600",children:e})]})}function ys({label:e,description:t,errorMessage:r,...o}){return jsxRuntime.jsxs(reactAriaComponents.DateRangePicker,{...o,className:j(o.className,"group flex flex-col gap-1"),children:[e&&jsxRuntime.jsx(Y,{children:e}),jsxRuntime.jsxs(Xr,{className:"w-auto min-w-[208px]",children:[jsxRuntime.jsx(Zt,{slot:"start",className:"px-2 py-1.5 text-sm"}),jsxRuntime.jsx("span",{"aria-hidden":"true",className:"text-gray-800 group-disabled:text-gray-200 dark:text-zinc-200 group-disabled:dark:text-zinc-600 forced-colors:text-[ButtonText] group-disabled:forced-colors:text-[GrayText]",children:"\u2013"}),jsxRuntime.jsx(Zt,{slot:"end",className:"flex-1 px-2 py-1.5 text-sm"}),jsxRuntime.jsx(H,{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(ee,{children:t}),typeof r=="string"?jsxRuntime.jsx(q,{children:r}):null,jsxRuntime.jsx(pt,{children:jsxRuntime.jsx(Ut,{children:jsxRuntime.jsx(yo,{})})})]})}var qt=({title:e,onClose:t,hideCloseIcon:r=false,titleAlign:o="left",hasBackArrow:n=false,onBack:a,headerContent:i})=>jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("relative flex h-16 w-full items-center justify-between border-b px-4",e&&"border-b",o==="center"?"justify-center":""),children:[n&&jsxRuntime.jsx(H,{variant:"unstyled",onPress:a,className:"absolute left-4",children:jsxRuntime.jsx(v,{name:"CaretLeft","data-testid":"back-arrow"})}),i||jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[e&&jsxRuntime.jsx(Ee,{size:"xs",children:e}),t&&!r&&jsxRuntime.jsx(H,{variant:"unstyled",onPress:t,"aria-label":"Close dialog",children:jsxRuntime.jsx(v,{name:"X","data-testid":"close-button"})})]})]});var Xt=class extends lt.Component{constructor(){super(...arguments);ir(this,"state",{hasError:false});ir(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(Ae,{children:[this.props.title&&jsxRuntime.jsx(Ae.Header,{title:this.props.title}),jsxRuntime.jsx(Ae.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-red-500",children:this.state.error?.message||"Something went wrong"}),jsxRuntime.jsx("button",{className:"rounded bg-blue-500 px-4 py-2 text-white hover:bg-blue-600",onClick:this.handleRetry,children:"Retry"})]})})]}):this.props.children}};var ea=({children:e,title:t,headerContent:r,isOpen:o,slideInFrom:n="right",transparentOverlay:a=false,onClose:i,className:l,primaryAction:s,secondaryAction:d,footerContent:p,contentPadding:c=true,maxWidth:u="400px"})=>{let[m,b]=lt.useState(false);if(lt.useEffect(()=>{if(o){let h=setTimeout(()=>b(true),10);return ()=>clearTimeout(h)}else b(false);},[o]),!o)return null;let f=s||d,x=f||p;return jsxRuntime.jsx(Xt,{children:jsxRuntime.jsx(reactAriaComponents.ModalOverlay,{isOpen:o,onOpenChange:i,isDismissable:true,className:`fixed inset-0 z-50 ${a?"bg-transparent":"bg-black/50"}`,children:jsxRuntime.jsx(reactAriaComponents.Modal,{className:"flex justify-end",isDismissable:true,children:jsxRuntime.jsxs(Ut,{className:`fixed bottom-0 top-0 z-50 flex w-full flex-col bg-background-surface shadow-xl duration-300 h-full min-h-0 overflow-hidden dark:bg-gray-800 ${m?n==="right"?"animate-in slide-in-from-right":"animate-in slide-in-from-left":""} ${l||""}`,style:{[n==="right"?"right":"left"]:0,maxWidth:u,transform:m?void 0:n==="right"?"translateX(100%)":"translateX(-100%)"},children:[(t||r)&&jsxRuntime.jsx(qt,{title:t,headerContent:r,onClose:i||(()=>{})}),jsxRuntime.jsx("div",{className:`flex-1 overflow-y-auto overscroll-contain ${c?"p-6":"p-0"}`,children:e}),x&&jsxRuntime.jsxs("div",{className:"flex h-28 w-full flex-col items-center justify-center border-t p-4",children:[p&&jsxRuntime.jsx("div",{className:"flex h-10 justify-center",children:p}),f&&jsxRuntime.jsxs("div",{className:"flex h-full w-full items-center justify-between gap-4",children:[d&&jsxRuntime.jsx(H,{size:d.size||"lg",fullWidth:true,variant:d.variant||"secondary",onPress:d.onPress,isLoading:d.isLoading,isDisabled:d.isDisabled,children:d.label}),s&&jsxRuntime.jsx(H,{size:s.size||"lg",fullWidth:true,onPress:s.onPress,isLoading:s.isLoading,isDisabled:s.isDisabled,children:s.label})]})]})]})})})})};ea.displayName="Drawer";function Ss({value:e,onChange:t,onUrlChange:r,accept:o="image/*",maxSize:n,isDisabled:a=false,onUpload:i,className:l,showPreview:s=true,placeholder:d="Drop files here or click to browse"}){let[p,c]=lt.useState(false),[u,m]=lt.useState(false),[b,f]=lt.useState(null),[x,h]=lt.useState(e),y=lt.useRef(null),S=async R=>{if(f(null),n&&R.size>n){f(`File size must be less than ${(n/1024/1024).toFixed(2)}MB`);return}if(s&&R.type.startsWith("image/")){let L=new FileReader;L.onloadend=()=>{h(L.result);},L.readAsDataURL(R);}if(i){m(true);try{let L=await i(R);h(L),r?.(L);}catch(L){f("Failed to upload file"),console.error("Upload error:",L);}finally{m(false);}}t?.(R,x);},F=R=>{let L=R.items;if(L.length>0){let C=L[0];if(C.kind==="file"){let k=C.getAsFile();k&&S(k);}}c(false);},w=()=>{h(void 0),f(null),t?.(null),r?.(""),y.current&&(y.current.value="");};return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("w-full",l),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",p?"border-action-primary bg-action-primary/5":"border-border-muted hover:border-border-default",a&&"pointer-events-none opacity-50",b&&"border-feedback-error-border bg-feedback-error-background/50"),onDrop:F,onDropEnter:()=>c(true),onDropExit:()=>c(false),children:[x?jsxRuntime.jsxs("div",{className:"relative flex h-full w-full items-center justify-center p-4",children:[s&&x.startsWith("data:image")?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-muted"}),jsxRuntime.jsx("span",{className:"text-sm text-text-muted",children:"File uploaded"})]}),!a&&jsxRuntime.jsx(H,{variant:"icon",size:"sm",onPress:w,className:"absolute right-2 top-2 bg-background-surface shadow-md",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"})})]}):jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-4 p-6",children:[jsxRuntime.jsx(lucideReact.Upload,{className:"h-12 w-12 text-text-muted"}),jsxRuntime.jsxs("div",{className:"text-center",children:[jsxRuntime.jsx("p",{className:"text-sm text-text-body",children:d}),jsxRuntime.jsx("p",{className:"mt-1 text-xs text-text-muted",children:o==="image/*"?"PNG, JPG, GIF up to 10MB":`Accepts ${o}`})]}),jsxRuntime.jsx(reactAriaComponents.FileTrigger,{acceptedFileTypes:o.split(","),onSelect:R=>{let L=Array.from(R||[]);L.length>0&&S(L[0]);},children:jsxRuntime.jsx(H,{variant:"secondary",size:"sm",isDisabled:a,children:"Choose File"})})]}),u&&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-primary border-t-transparent"}),jsxRuntime.jsx("span",{className:"text-sm text-text-muted",children:"Uploading..."})]})})]}),b&&jsxRuntime.jsx("p",{className:"mt-2 text-sm text-feedback-error-text",children:b})]})}function ws(e){return jsxRuntime.jsx(reactAriaComponents.Form,{...e,className:tailwindMerge.twMerge("flex flex-col gap-4",e.className)})}var gf={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"},bf={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"}},xf={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"},hf={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"},yf={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"},vf={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},Cf={start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},Nf={row:"grid-flow-row",col:"grid-flow-col",dense:"grid-flow-dense","row-dense":"grid-flow-row-dense","col-dense":"grid-flow-col-dense"},Sf={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"},wf={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 ks(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 ta({cols:e=1,gap:t="md",gapX:r,gapY:o,align:n="stretch",justify:a="start",flow:i="row",autoFit:l,autoFill:s,className:d,children:p}){let c=tailwindMerge.twMerge("grid",l||s?"":ks(e,gf,bf),!r&&!o&&xf[t],r&&hf[r],o&&yf[o],vf[n],Cf[a],Nf[i],d),u={};return l?u.gridTemplateColumns=`repeat(auto-fit, minmax(${l}, 1fr))`:s&&(u.gridTemplateColumns=`repeat(auto-fill, minmax(${s}, 1fr))`),jsxRuntime.jsx("div",{className:c,style:u,children:p})}function Rs({span:e,className:t,children:r}){let o=tailwindMerge.twMerge(ks(e,Sf,wf),t);return jsxRuntime.jsx("div",{className:o,children:r})}ta.Item=Rs;function Pf(e,t){return lr({value:e,formatter:t,emptyClassName:"text-text-muted",emptyText:"\u2014"})}function kf(e,t="upIsGood"){if(e===0)return "text-text-muted";let r=e>0;return t==="upIsGood"?r?"text-feedback-success":"text-feedback-error":r?"text-feedback-error":"text-feedback-success"}function Rf({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 l=Math.min(...i),d=Math.max(...i)-l,p=m=>d===0?20/2:18-(m-l)/d*16,c=60/Math.max(e.length-1,1),u=e.map((m,b)=>{let f=2+b*c,x=p(typeof m.y=="number"?m.y:0);return `${b===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:u,fill:"none",strokeWidth:"1.5",className:"stroke-border-muted"})})}function Ls({label:e,value:t,formatter:r,delta:o,deltaPeriodLabel:n,deltaIntent:a="upIsGood",trend:i,status:l,helpText:s,size:d="md",orientation:p="vertical",loading:c,empty:u,error:m,onClick:b,className:f,renderValue:x,renderDelta:h,renderTrend:y}){let F={sm:{label:"text-xs",value:"text-base",delta:"text-xs",gap:"gap-1"},md:{label:"text-sm",value:"text-xl",delta:"text-sm",gap:"gap-2"},lg:{label:"text-base",value:"text-2xl",delta:"text-base",gap:"gap-3"}}[d],w=c?jsxRuntime.jsx(z,{className:"h-7 w-20"}):u?jsxRuntime.jsx("span",{className:"text-text-muted",children:"\u2014"}):m?jsxRuntime.jsx("span",{className:"text-feedback-error text-sm",children:typeof m=="string"?m:"Error"}):x?x(t):Pf(t,r),R=h?h(o):o!==void 0&&!c&&!u&&!m?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge(F.delta,kf(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-muted",children:["\xB7 ",n]})]}):c?jsxRuntime.jsx(z,{className:"h-4 w-24"}):null,L=y?y(i):i&&i.length>0&&!c&&!m?jsxRuntime.jsx(Rf,{points:i,ariaLabel:`${e} trend`,className:u?"opacity-30":""}):c?jsxRuntime.jsx(z,{className:"h-5 w-16"}):null;return jsxRuntime.jsxs("section",{className:tailwindMerge.twMerge("flex min-w-0",p==="horizontal"?`items-center ${F.gap}`:`flex-col ${F.gap}`,b&&"cursor-pointer hover:bg-background-muted rounded-lg px-3 py-2 -mx-3 -my-2 transition-colors",f),"aria-labelledby":`kpi-${e}`,onClick:b,children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("h3",{id:`kpi-${e}`,className:tailwindMerge.twMerge(F.label,"font-medium text-text-caption truncate"),children:c?jsxRuntime.jsx(z,{className:"h-4 w-24"}):e}),s&&!c&&jsxRuntime.jsx(v,{name:"Question",size:12,className:"text-text-muted cursor-help","aria-label":"Help"})]}),jsxRuntime.jsxs("div",{className:"flex items-baseline gap-2",children:[jsxRuntime.jsx("output",{className:tailwindMerge.twMerge(F.value,"font-semibold",m?"text-feedback-error":"text-text-heading"),"aria-label":`Value: ${w}`,children:w}),l&&!c&&!m&&jsxRuntime.jsx(At,{variant:l.tone||"neutral",size:"sm",children:l.value})]}),(R||L)&&jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[R,L]})]})}var Tf={xs:"gap-2",sm:"gap-3",md:"gap-4",lg:"gap-6",xl:"gap-8"},Lf={start:"items-start",center:"items-center",stretch:"items-stretch"};function Ff(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 oa({children:e,cols:t={base:1,sm:2,md:3,lg:4},gap:r="md",align:o="stretch",equalizeHeights:n=true,header:a,loading:i,className:l}){let s=i?lt__namespace.default.Children.map(e,d=>lt__namespace.default.isValidElement(d)&&d.type&&typeof d.type!="string"&&"displayName"in d.type?lt__namespace.default.cloneElement(d,{loading:true}):d):e;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:tailwindMerge.twMerge("grid",Ff(t),Tf[r],Lf[o],n&&"auto-rows-fr","w-full"),children:s})]})}oa.displayName="KpiGroup";function Ds({items:e,renderItem:t,selectedId:r,onSelect:o,onHoverChange:n,isLoading:a=false,error:i=null,emptyMessage:l="No results found.",variant:s="relaxed",showDividers:d=true,"aria-label":p,className:c="",style:u}){let[m,b]=lt.useState(null),f=lt.useRef(null),x=lt.useRef(new Map),h=lt.useCallback((k,I)=>{o?.(k,I);},[o]),y=lt.useCallback((k,I)=>{b(k),n?.(k,I);},[n]),S=lt.useCallback((k,I)=>{let A=k?.id;return typeof A=="string"&&A?A:`item-${I}`},[]),F=lt.useCallback(k=>{if(!f.current||e.length===0)return;let I=document.activeElement,A=e.findIndex((B,U)=>{let re=S(B,U),ne=x.current.get(re);return ne&&(ne===I||ne.contains(I))}),g=A;switch(k.key){case "ArrowDown":k.preventDefault(),g=A===-1?0:Math.min(A+1,e.length-1);break;case "ArrowUp":k.preventDefault(),g=A===-1?0:Math.max(A-1,0);break;case "Home":k.preventDefault(),g=0;break;case "End":k.preventDefault(),g=e.length-1;break;default:return}let N=S(e[g],g);x.current.get(N)?.focus();},[e,S]),w=["flex flex-col","bg-background-surface","border border-border-muted rounded-sm","focus:outline-none focus:ring-2 focus:ring-border-focus focus:ring-offset-2"],R={dense:"gap-0",relaxed:"gap-0"},L=d?"divide-y divide-border-muted":"",C=[...w,R[s],L,c].filter(Boolean).join(" ");return a?jsxRuntime.jsx("div",{ref:f,className:C,style:u,role:"listbox","aria-label":p,"aria-busy":"true","aria-live":"polite",children:jsxRuntime.jsx($i,{count:5,className:"space-y-0",children:jsxRuntime.jsxs("div",{className:"flex items-center gap-3 px-4 py-3",children:[jsxRuntime.jsx(z,{width:16,height:16,variant:"circle"}),jsxRuntime.jsxs("div",{className:"flex-1 space-y-2",children:[jsxRuntime.jsx(z,{width:"75%",height:16}),jsxRuntime.jsx(z,{width:"50%",height:14})]}),jsxRuntime.jsx(z,{width:60,height:20})]})})}):i?jsxRuntime.jsx("div",{ref:f,className:C,style:u,role:"listbox","aria-label":p,"aria-live":"polite",children:jsxRuntime.jsx("div",{className:"p-4 text-center text-action-destructive",children:i})}):e.length===0?jsxRuntime.jsx("div",{ref:f,className:C,style:u,role:"listbox","aria-label":p,"aria-live":"polite",children:jsxRuntime.jsx("div",{className:"p-4 text-center text-text-muted",children:l})}):jsxRuntime.jsx("div",{ref:f,className:C,style:u,role:"listbox","aria-label":p,"aria-live":"polite",onKeyDown:F,tabIndex:0,children:e.map((k,I)=>{let A=S(k,I),g=r===A,N=m===A,K={id:A,role:"option","aria-selected":g,"aria-current":g?"page":void 0,tabIndex:g||r==null&&I===0?0:-1,onClick:B=>h(B,k),onMouseEnter:B=>y(B,k),onMouseLeave:B=>y(null),onFocus:B=>y(B,k),onBlur:B=>y(null),ref:B=>{B?x.current.set(A,B):x.current.delete(A);}};return jsxRuntime.jsx("div",{children:t({item:k,index:I,isSelected:g,isHovered:N,rowProps:K})},A)})})}function Df({children:e,...t}){return jsxRuntime.jsx(reactAriaComponents.ListBox,{...t,className:j(t.className,"outline-0"),children:e})}function zf(e="md"){return `flex-1 text-start data-[placeholder]:text-text-placeholder ${_[e].text}`}function Hf(){let e=lt__namespace.default.useCallback((r,o)=>{o?.(r);},[]),t=lt__namespace.default.useCallback((r,o)=>{o?.(r);},[]);return {handleFocus:e,handleBlur:t}}function So({label:e,description:t,errorMessage:r,children:o,items:n,renderItem:a,size:i="md",selectedKey:l,defaultSelectedKey:s,onSelectionChange:d,placeholder:p,showErrors:c=false,tooltip:u,isRequired:m,transparent:b,...f}){let[x,h]=lt.useState(null),[y,S]=lt.useState(null),F=l??x??s,{handleFocus:w,handleBlur:R}=Hf(),L=I=>{d&&I!==null&&d(I),d||h(I);},C=lt.useRef(null),k=lt.useRef(null);return jsxRuntime.jsx(reactAriaComponents.Select,{...f,selectedKey:F,defaultSelectedKey:s,onSelectionChange:L,placeholder:p,className:j(f.className,"group flex w-full flex-col"),ref:C,onOpenChange:I=>{I&&k.current?S(k.current.offsetWidth):I||C.current?.blur();},children:({isDisabled:I,isInvalid:A,isOpen:g})=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(Y,{size:i,tooltip:u,isRequired:m,children:e}),jsxRuntime.jsx(Ue,{children:jsxRuntime.jsx("div",{ref:k,children:jsxRuntime.jsxs(H,{variant:"unstyled",className:tailwindMerge.twMerge(Oe({isInvalid:A||c&&!!r,isDisabled:I,isFocused:g,transparent:b,size:i}),"flex items-center text-start gap-4 cursor-pointer pl-[var(--control-padding-sm)]"),onFocus:N=>w(N,f.onFocus),onBlur:N=>R(N,f.onBlur),"data-open":g,children:[jsxRuntime.jsx(reactAriaComponents.SelectValue,{className:zf(i)}),jsxRuntime.jsx(v,{name:"CaretDown","aria-hidden":true,className:tailwindMerge.twMerge("h-4 w-4 text-text-body group-disabled:text-gray-200 forced-colors:text-[ButtonText] transition-transform",g&&"rotate-180")})]})})}),t&&jsxRuntime.jsx(ee,{size:i,className:"mt-3",children:t}),c&&jsxRuntime.jsx(q,{size:i,className:"mt-3 text-feedback-error-text",children:typeof r=="function"&&f.validationResult?r(f.validationResult):typeof r=="string"?r:null}),jsxRuntime.jsx(pt,{className:"bg-background-input shadow-xl border border-border-input/20 backdrop-blur-sm",style:{minWidth:y?`${y}px`:void 0},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?N=>jsxRuntime.jsx(ut,{id:N.id,textValue:N.label,size:i,children:a(N)},N.id):o})})]})})}var Kf=e=>{let t=Oe({isInvalid:e.isInvalid,isDisabled:e.isDisabled,isFocused:e.isFocused,transparent:e.transparent,size:e.size}),r=[e.showSearchIcon?"pl-8":"pl-3",e.isClearable&&e.hasValue||e.isPassword?"pr-8":"pr-3"].join(" ");return tailwindMerge.twMerge(t,r,e.className)};function Yt({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,transparent:i,showSearchIcon:l,isClearable:s,onClear:d,type:p,validationResult:c,...u}){let[m,b]=lt__namespace.default.useState(false),{isFocused:f,handleFocus:x,handleBlur:h}=Ze(),y=p==="password";return jsxRuntime.jsx(reactAriaComponents.TextField,{...u,isRequired:a,className:j(u.className,"group flex flex-col"),children:({isDisabled:S,isInvalid:F})=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(Y,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsxs(Ue,{children:[l&&jsxRuntime.jsx("div",{className:"pointer-events-none absolute left-2 top-1/2 -translate-y-1/2 transform",children:jsxRuntime.jsx(v,{name:"MagnifyingGlass",className:"h-4 w-4 text-text-muted"})}),jsxRuntime.jsx(Pi,{size:o,disabled:S,type:y?m?"text":"password":p,value:u.value,defaultValue:u.defaultValue,placeholder:u.placeholder,onFocus:w=>x(w,u.onFocus),onBlur:w=>h(w,u.onBlur),onChange:w=>u.onChange?.(w.target.value),className:Kf({isInvalid:F,isDisabled:S,isFocused:f,size:o,transparent:i,showSearchIcon:l,isClearable:s,hasValue:!!u.value,isPassword:y,className:typeof u.className=="string"?u.className:void 0})}),s&&u.value&&!S&&jsxRuntime.jsx(wi,{onClick:()=>{d?d():u.onChange&&u.onChange("");},size:o}),y&&!S&&jsxRuntime.jsx("button",{type:"button",onClick:()=>b(!m),className:"absolute right-3 top-1/2 -translate-y-1/2 transform text-text-muted hover:text-text-body","aria-label":m?"Hide password":"Show password",onMouseDown:w=>{w.preventDefault(),w.stopPropagation();},children:jsxRuntime.jsx(v,{name:m?"EyeSlash":"Eye",size:o==="sm"?16:20,className:"text-text-body"})})]}),t&&jsxRuntime.jsx(ee,{size:o,className:"mt-3",children:t}),typeof r=="string"&&jsxRuntime.jsx(q,{size:o,className:"mt-1",children:r}),typeof r=="function"&&c&&jsxRuntime.jsx(q,{size:o,className:"mt-1",children:r(c)})]})})}function Gs({title:e,search:t,filters:r=[],sort:o,actions:n,onClearAll:a,variant:i="spacious",className:l="",style:s}){let d=["flex flex-col gap-3","bg-background-surface","border-b border-border-muted","px-4 py-3"],p={compact:"px-3 py-2",spacious:"px-4 py-3"},c=[...d,p[i],l].filter(Boolean).join(" ");return jsxRuntime.jsxs("div",{className:c,style:s,children:[(e||n)&&jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e&&jsxRuntime.jsx("h2",{className:"text-lg font-semibold text-text-body truncate",children:e}),n&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:n})]}),jsxRuntime.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[jsxRuntime.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:gap-4 flex-1 min-w-0",children:[t&&jsxRuntime.jsx("div",{className:"flex-1 min-w-0 sm:max-w-sm",children:jsxRuntime.jsx(Yt,{value:t.value,placeholder:t.placeholder||"Search...",onChange:t.onChange,showSearchIcon:true,isClearable:!!t.value&&!!t.onClear,onClear:t.onClear,size:"sm"})}),r.length>0&&jsxRuntime.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[r.map(m=>jsxRuntime.jsxs(Bt,{variant:"secondary",size:"sm",onRemove:()=>m.onRemove(m.id),children:[m.label,": ",m.value]},m.id)),a&&jsxRuntime.jsx(H,{variant:"ghost",size:"sm",onClick:a,className:"text-text-muted hover:text-text-body",children:"Clear all"})]})]}),o&&jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("span",{className:"text-sm text-text-muted whitespace-nowrap",children:"Sort by:"}),jsxRuntime.jsx(So,{selectedKey:o.value,onSelectionChange:m=>o.onChange(m),size:"sm",className:"min-w-32",items:o.options.map(m=>({id:m.value,label:m.label,value:m.value})),renderItem:m=>m.label})]})]})]})}function Os({id:e,title:t,subtitle:r,meta:o,leading:n,trailing:a,isSelected:i=false,isHovered:l=false,disabled:s=false,href:d,onClick:p,onMouseEnter:c,onMouseLeave:u,className:m="",style:b}){let f=()=>{!s&&p&&p(e);},x=()=>{!s&&c&&c(e);},h=()=>{!s&&u&&u(e);},y=["flex items-center gap-3 w-full text-left transition-all duration-200 ease-in-out","px-4 py-3","border-l-2 border-l-transparent","rounded-sm",ae()],S=[l&&!i&&"bg-background-hover",i&&"bg-action-primary/5 border-l-action-primary shadow-sm",s&&"opacity-50 cursor-not-allowed",!s&&!i&&"hover:bg-background-hover"],F=[...y,...S,m].filter(Boolean).join(" "),w=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[n&&jsxRuntime.jsx("div",{className:"flex-shrink-0 w-4 h-4 flex items-center justify-center",children:n}),jsxRuntime.jsx("div",{className:"flex-1 min-w-0",children:jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-2",children:[jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsx("div",{className:"text-text-body font-medium truncate",title:typeof t=="string"?t:void 0,children:t}),r&&jsxRuntime.jsx("div",{className:"text-text-muted text-sm truncate",title:typeof r=="string"?r:void 0,children:r})]}),o&&jsxRuntime.jsx("div",{className:"flex-shrink-0 text-text-muted text-sm",children:o})]})}),a&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:a})]});return d?jsxRuntime.jsx("a",{href:d,className:F,style:b,onMouseEnter:x,onMouseLeave:h,"aria-selected":i,"aria-current":i?"page":void 0,tabIndex:s?-1:0,children:w}):jsxRuntime.jsx("button",{type:"button",className:F,style:b,onClick:f,onMouseEnter:x,onMouseLeave:h,disabled:s,"aria-selected":i,tabIndex:s?-1:0,children:w})}function Ws({header:e,children:t,footer:r,width:o="md",tone:n="neutral",elevation:a="sm",showDivider:i=true,"aria-label":l,"aria-labelledby":s,className:d="",style:p}){let c={sm:"w-64",md:"w-80",lg:"w-96",xl:"w-[28rem]","2xl":"w-[32rem]",auto:"w-auto"},u={neutral:"bg-background-surface",subtle:"bg-background-subtle",brand:"bg-background-brand"},m={none:"",sm:"shadow-sm",md:"shadow-md"},b=tailwindMerge.twMerge("flex flex-col h-full",c[o],u[n],m[a],i&&"border-r border-border-muted",d);return jsxRuntime.jsxs("div",{className:b,style:p,role:"complementary","aria-label":l,"aria-labelledby":s,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 _s=({className:e,size:t=24,color:r="text-action-primary"})=>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..."})});var ia=[{type:"navigation",position:"bottom-right",showCompass:true,showGeolocate:true,showResetZoom:true}];var Zs="./neutral-dark-ULOPSLHN.png";var Us="./neutral-light-IAPUNYDO.png";var js="./satelite-light-CU3QG3IP.png";var qs="./streets-dark-47NJZQUE.png";var Xs="./streets-light-YXBEDGBR.png";function Ys(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 tg="h-10 w-10 p-0 bg-background-surface hover:bg-background-hover shadow-lg border border-border";function Js(e){return tailwindMerge.twMerge(tg,e)}function Qe({position:e="top-right",className:t,style:r,children:o}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(Ys(e),t),style:r,children:o})}function Ve({icon:e,iconSize:t=20,onPress:r,isDisabled:o=false,className:n,iconClassName:a="text-text-primary",variant:i="secondary",isActive:l=false,ariaLabel:s,iconWeight:d="regular",...p}){let c=tailwindMerge.twMerge(Js(),l&&"bg-action-primary hover:bg-action-primary-hover border-action-primary",n),u=tailwindMerge.twMerge(a,l&&"text-text-onPrimary");return jsxRuntime.jsx(H,{...p,className:c,onPress:r,variant:i,size:"sm",isDisabled:o,"aria-label":s,"aria-pressed":l||void 0,type:"button",children:jsxRuntime.jsx(v,{name:e,size:t,className:u,weight:d})})}var sg=e=>[{id:"streets",name:"Streets",description:"Standard street map with traffic data",preview:e?qs:Xs},{id:"satellite",name:"Satellite",description:"Aerial imagery with street labels",preview:js},{id:"neutral",name:"Neutral",description:"Clean design with light/dark variants",preview:e?Zs:Us}];function lg({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 tl({position:e="bottom-left",className:t,style:r,currentMapType:o="streets",onMapTypeChange:n,layers:a=[],onLayerToggle:i}){let{isDarkTheme:l}=Te(),s=sg(l),d=c=>{n?.(c);},p=a.filter(c=>c.legend);return jsxRuntime.jsx(Qe,{position:e,className:t,style:r,children:jsxRuntime.jsx("div",{className:"relative",children:jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{children:[jsxRuntime.jsx(Ve,{icon:"Stack",ariaLabel:"Map layers and settings"}),jsxRuntime.jsx(reactAriaComponents.Popover,{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:jsxRuntime.jsxs("div",{className:"space-y-6",children:[jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("div",{className:"text-sm font-semibold text-text-body mb-3",children:"Map type"}),jsxRuntime.jsx("div",{className:"grid grid-cols-3 gap-3",children:s.map(c=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>d(c.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===c.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===c.id?"border-2 border-action-secondary":"border border-border-default"),children:jsxRuntime.jsx("img",{src:c.preview,alt:`${c.name} map preview`,className:"w-full h-full object-cover"})}),jsxRuntime.jsx("div",{className:"text-sm "+(o===c.id?"font-bold text-text-body":"font-normal text-text-muted"),children:c.name})]},c.id))})]}),p.length>0&&jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("div",{className:"text-sm font-semibold text-text-body mb-3",children:"Map details"}),jsxRuntime.jsx("div",{className:"space-y-2",children:p.map(c=>jsxRuntime.jsx(br,{isSelected:c.visible!==false,onChange:()=>i?.(c.id),children:jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[c.legend&&jsxRuntime.jsx(lg,{type:c.legend.swatch,color:c.legend.color}),jsxRuntime.jsx("span",{className:"text-sm text-text-body",children:c.legend?.label})]})},c.id))})]})]})})})]})})})}function ol({position:e="top-right",className:t,style:r,onToggle:o,isActive:n=false}){return jsxRuntime.jsx(Qe,{position:e,className:t,style:r,children:jsxRuntime.jsx(Ve,{icon:"ListDashes",onPress:o,isActive:n,ariaLabel:n?"Hide list view":"Show list view"})})}var dg={sm:"gap-2",md:"gap-4",lg:"gap-6"};function wo({position:e="top-right",className:t,style:r,children:o,orientation:n="vertical",spacing:a="md"}){return jsxRuntime.jsx(Qe,{position:e,style:r,children:jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex",n==="vertical"?"flex-col":"flex-row",dg[a],t),children:o})})}function al({mapRef:e,position:t="bottom-right",className:r,style:o,showCompass:n=true,showGeolocate:a=true,showResetZoom:i=false,onResetZoom:l,onCompassClick:s,onGeolocateClick:d}){let[p,c]=lt.useState(false),u=()=>{s?s():e.current&&e.current.easeTo({bearing:0,duration:500});},m=()=>{if(d)d();else {if(!navigator.geolocation){console.warn("Geolocation is not supported by this browser.");return}c(true),navigator.geolocation.getCurrentPosition(y=>{let{latitude:S,longitude:F}=y.coords;e.current&&e.current.flyTo({center:[F,S],zoom:15,duration:2e3}),c(false);},y=>{switch(console.warn("Error getting location:",y),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("Unknown location error occurred.");break}c(false);},{enableHighAccuracy:true,timeout:1e4,maximumAge:3e5});}};if(!n&&!a&&!i)return null;let b=!i&&n,f=!i&&!n&&a,x=!a&&n;return jsxRuntime.jsxs(wo,{position:t,className:r,style:o,spacing:"sm",children:[i&&jsxRuntime.jsx(Ve,{icon:"ArrowsOut",onPress:l,ariaLabel:"Reset zoom to show all points",className:tailwindMerge.twMerge(!(!a&&!n&&i)&&"rounded-b-none",n&&"border-b-0 lg:border-b")}),n&&jsxRuntime.jsx("div",{className:"block lg:hidden",children:jsxRuntime.jsx(Ve,{icon:"Compass",onPress:u,ariaLabel:"Reset map orientation",className:tailwindMerge.twMerge(!b&&"rounded-t-none border-t-0",!x&&"rounded-b-none border-b-0")})}),a&&jsxRuntime.jsx(Ve,{icon:p?"Spinner":"NavigationArrow",onPress:m,isDisabled:p,ariaLabel:"Go to my location",iconClassName:tailwindMerge.twMerge("text-text-primary",p&&"animate-spin"),className:tailwindMerge.twMerge(!f&&"rounded-t-none border-t-0",!f&&n&&"lg:rounded-t lg:border-t")})]})}function cl({position:e="top-left",className:t,style:r,onSearch:o,placeholder:n="Search places...",showSearchInput:a=true}){let[i,l]=lt.useState(false),[s,d]=lt.useState(""),p=()=>{a?l(!i):o&&o("");},c=m=>{m.preventDefault(),o&&s.trim()&&(o(s.trim()),l(false));},u=m=>{m.key==="Escape"&&l(false);};return jsxRuntime.jsx(Qe,{position:e,className:t,style:r,children:jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx(Ve,{icon:"MagnifyingGlass",onPress:p,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:c,children:jsxRuntime.jsxs("div",{className:"flex items-center space-x-2",children:[jsxRuntime.jsx("input",{type:"text",value:s,onChange:m=>d(m.target.value),onKeyDown:u,placeholder:n,className:tailwindMerge.twMerge("flex-1 px-3 py-2 text-sm rounded border","bg-background border-border text-text-primary placeholder-text-muted","focus:outline-none focus:ring-2 focus:ring-action-primary"),autoFocus:true}),jsxRuntime.jsx(H,{type:"submit",variant:"primary",size:"sm",className:"px-3 py-2",children:"Search"})]})})})]})})}var mg={navigation:"bottom-right",layers:"bottom-left",search:"top-left",list:"top-right",custom:"top-right"};function sa(e){return e.position??mg[e.type]}function dl(e,t,r){let o=sa(e),n=e.id??`${e.type}-${t}`;switch(e.type){case "navigation":{let a=e.showResetZoom&&r.showResetButton;return jsxRuntime.jsx(al,{mapRef:r.mapRef,position:o,showCompass:e.showCompass,showGeolocate:e.showGeolocate,showResetZoom:a,onResetZoom:e.onResetZoom,onCompassClick:e.onCompassClick,onGeolocateClick:e.onGeolocateClick,style:e.style,className:e.className},n)}case "layers":return jsxRuntime.jsx(tl,{position:o,currentMapType:e.currentMapType,onMapTypeChange:e.onMapTypeChange,layers:e.layers??r.layers,onLayerToggle:e.onLayerToggle,style:e.style,className:e.className},n);case "search":return jsxRuntime.jsx(cl,{position:o,onSearch:e.onSearch,placeholder:e.placeholder,showSearchInput:e.showSearchInput,style:e.style,className:e.className},n);case "list":return jsxRuntime.jsx(ol,{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 la(e,t){let r=e.reduce((n,a,i)=>{let l=sa(a);return n[l]||(n[l]=[]),n[l].push({control:a,index:i}),n},{}),o=[];for(let[n,a]of Object.entries(r)){if(a.length===1){o.push(dl(a[0].control,a[0].index,t));continue}o.push(jsxRuntime.jsx(wo,{position:n,spacing:"sm",children:a.map(({control:i,index:l})=>dl(i,l,t))},`group-${n}`));}return o}function Ro(){if(typeof process<"u"){if(process.env?.MAPBOX_ACCESS_TOKEN)return process.env.MAPBOX_ACCESS_TOKEN;if(process.env?.NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN)return process.env.NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN}if(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"){let e=({ url: (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href)) });if(e.env?.VITE_MAPBOX_ACCESS_TOKEN)return e.env.VITE_MAPBOX_ACCESS_TOKEN}throw new Error("Mapbox access token not found. Set MAPBOX_ACCESS_TOKEN, NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN, or VITE_MAPBOX_ACCESS_TOKEN in your environment.")}var ca={vector:e=>({kind:"vector",...e}),geojson:e=>({kind:"geojson",...e}),customPins:e=>({kind:"customPins",...e}),raster:e=>({kind:"raster",...e})};function da(e){return e.kind==="vector"}function ua(e){return e.kind==="geojson"}function pa(e){return e.kind==="customPins"}function ma(e){return e.kind==="raster"}function kr(e){let t=[...e].sort((r,o)=>(r.z??0)-(o.z??0));return jsxRuntime.jsx(jsxRuntime.Fragment,{children:t.map(r=>{if(!r.visible&&r.visible!==void 0)return null;switch(r.kind){case "vector":return jsxRuntime.jsx(gg,{spec:r},r.id);case "geojson":return jsxRuntime.jsx(bg,{spec:r},r.id);case "customPins":return jsxRuntime.jsx(xg,{spec:r},r.id);case "raster":return jsxRuntime.jsx(hg,{spec:r},r.id);default:return console.warn("[Layers] Unknown layer kind:",r.kind),null}})})}function gg({spec:e}){let{colorMode:t}=Te(),r=lt.useMemo(()=>ml(e.style,e.renderAs),[e.style,e.renderAs,t]),o=lt.useMemo(()=>({visibility:e.visible===false?"none":"visible"}),[e.visible]),n={id:e.id,type:pl(e.renderAs),"source-layer":e.sourceLayer,paint:r,layout:o};return e.filter!==void 0&&(n.filter=e.filter),e.minZoom!==void 0&&(n.minzoom=e.minZoom),e.maxZoom!==void 0&&(n.maxzoom=e.maxZoom),jsxRuntime.jsx(Cg.Source,{id:`${e.id}-source`,type:"vector",url:e.tileset,children:jsxRuntime.jsx(Cg.Layer,{...n})})}function bg({spec:e}){let{colorMode:t}=Te(),r=lt.useMemo(()=>ml(e.style,e.renderAs),[e.style,e.renderAs,t]),o=lt.useMemo(()=>({visibility:e.visible===false?"none":"visible"}),[e.visible]),n=lt.useMemo(()=>(typeof e.data=="string",e.data),[e.data]),a={id:`${e.id}-source`,type:"geojson",data:n};e.cluster?.enabled&&(a.cluster=true,a.clusterRadius=e.cluster.radius??50,a.clusterMaxZoom=e.cluster.maxZoom??14);let i={id:e.id,type:pl(e.renderAs),paint:r,layout:o};return e.minZoom!==void 0&&(i.minzoom=e.minZoom),e.maxZoom!==void 0&&(i.maxzoom=e.maxZoom),jsxRuntime.jsx(Cg.Source,{...a,children:jsxRuntime.jsx(Cg.Layer,{...i})})}function xg({spec:e}){let t=e.pin;return jsxRuntime.jsx(jsxRuntime.Fragment,{children:e.data.map((r,o)=>{let[n,a]=e.getPosition(r),i=e.pinProps?e.pinProps(r):{};return jsxRuntime.jsx(Cg.Marker,{longitude:n,latitude:a,anchor:"bottom",children:jsxRuntime.jsx(t,{...i})},`${e.id}-${o}`)})})}function hg({spec:e}){let t=lt.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(Cg.Source,{...r,children:jsxRuntime.jsx(Cg.Layer,{...o})})}function pl(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 ml(e,t,r){if(!e)return {};let o={};if(e.color){let n=Pr(e.color);switch(t){case "line":o["line-color"]=n;break;case "fill":o["fill-color"]=n;break;case "circle":o["circle-color"]=n;break}}if(e.width&&t==="line"&&(o["line-width"]=ul(e.width)),e.radius&&t==="circle"&&(o["circle-radius"]=ul(e.radius)),e.opacity!==void 0)switch(t){case "line":o["line-opacity"]=e.opacity;break;case "fill":o["fill-opacity"]=e.opacity;break;case "circle":o["circle-opacity"]=e.opacity;break}return e.fillOpacity!==void 0&&t==="fill"&&(o["fill-opacity"]=e.fillOpacity),t==="fill"&&e.borderWidth&&(o["fill-outline-color"]=e.borderColor?Pr(e.borderColor):Pr(e.color||"#000")),t==="circle"&&e.borderWidth&&(o["circle-stroke-width"]=e.borderWidth,o["circle-stroke-color"]=e.borderColor?Pr(e.borderColor):"#fff"),o}function yg(e,t){let r=e.by,o=e.mapping,n=["match",["get",r]];for(let[a,i]of Object.entries(o))n.push(a),n.push(Pr(i));return n.push("#666"),n}function Pr(e,t){return typeof e=="string"?e:"token"in e?ct(e.token)||e.token:"hex"in e?e.hex:"by"in e?yg(e):"#666"}function ul(e){return typeof e=="number"?e:"byZoom"in e?["interpolate",["linear"],["zoom"],...e.byZoom.flatMap(([t,r])=>[t,r])]:e}var gl={streets:"streets",satellite:"satellite",neutral:"neutral"};function Rr(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 hl({initialViewState:e,viewState:t,onViewStateChange:r,scrollEnabled:o=true,className:n,previewMode:a=false,previewModeCta:i,onPreviewModePress:l,mapType:s="streets",layers:d=[],mapboxAccessToken:p=Ro(),transformRequest:c,isLoading:u=false,controls:m="default"}){let{isDarkTheme:b}=Te(),f=lt.useRef(null),x=lt.useRef(null),[h,y]=lt.useState(null),S=lt.useMemo(()=>m===false||m===null?[]:m==="default"||m===void 0?ia:m,[m]),F=lt.useMemo(()=>a?null:la(S,{mapRef:f,layers:d}),[S,f,a,d]),w=lt.useMemo(()=>d.filter(g=>g.events?.onClick||g.events?.onMouseEnter||g.events?.onMouseLeave||g.tooltip).map(g=>g.id),[d]),R=lt.useMemo(()=>{let g=new Map;return d.forEach(N=>{N.events&&g.set(N.id,N.events);}),g},[d]),L=lt.useMemo(()=>{let g=new Map;return d.forEach(N=>{N.tooltip&&g.set(N.id,N.tooltip);}),g},[d]),C=lt.useCallback(g=>{if(a)return;let N=g.features?.[0];if(!N||!N.layer)return;let K=N.layer.id,B=R.get(K),U=L.get(K),re;N.geometry.type==="Point"?re=N.geometry.coordinates:re=[g.lngLat.lng,g.lngLat.lat];let ne={id:N.id,lngLat:re,properties:N.properties||{},layerId:K};if(B?.onClick&&B.onClick(ne),U&&U.trigger==="click"){let E=typeof U.content=="function"?U.content(ne):U.content;y({feature:ne,content:E});}},[R,L,a]),k=lt.useCallback(g=>{if(a)return;let N=g.features?.[0];if(!N||!N.layer)return;let K=N.layer.id,B=R.get(K),U=L.get(K),re;N.geometry.type==="Point"?re=N.geometry.coordinates:re=[g.lngLat.lng,g.lngLat.lat];let ne={id:N.id,lngLat:re,properties:N.properties||{},layerId:K};if(B?.onMouseEnter&&B.onMouseEnter(ne),U&&U.trigger==="hover"){let E=typeof U.content=="function"?U.content(ne):U.content;y({feature:ne,content:E});}f.current&&(f.current.getCanvas().style.cursor="pointer");},[R,L,a,f]),I=lt.useCallback(()=>{a||(R.forEach(g=>{g.onMouseLeave?.();}),h&&d.find(N=>N.id===h.feature.layerId)?.tooltip?.trigger==="hover"&&y(null),f.current&&(f.current.getCanvas().style.cursor=""));},[R,a,f,h,d]),A=(g,N)=>c?c(g,N):{url:g};return u?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("relative flex h-full w-full overflow-hidden",n),children:jsxRuntime.jsxs("div",{className:"relative h-full w-full overflow-hidden rounded-lg",style:{backgroundColor:"var(--color-skeleton-base)"},children:[jsxRuntime.jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(to bottom right, var(--color-skeleton-base), var(--color-skeleton-highlight))"}}),jsxRuntime.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:jsxRuntime.jsxs("div",{className:"flex flex-col items-center space-y-3",children:[jsxRuntime.jsx("div",{className:"h-8 w-8 animate-pulse rounded-full",style:{backgroundColor:"var(--color-skeleton-base)"}}),jsxRuntime.jsxs("div",{className:"space-y-2",children:[jsxRuntime.jsx("div",{className:"h-3 w-16 animate-pulse rounded",style:{backgroundColor:"var(--color-skeleton-base)"}}),jsxRuntime.jsx("div",{className:"h-2 w-12 animate-pulse rounded",style:{backgroundColor:"var(--color-skeleton-highlight)"}})]})]})}),jsxRuntime.jsx("div",{className:"absolute inset-0 opacity-20",children:jsxRuntime.jsx("div",{className:"h-full w-full",style:{backgroundImage:`
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
`,backgroundSize:"30px 30px"}})})]})}):jsxRuntime.jsx("div",{ref:x,className:tailwindMerge.twMerge("relative flex h-full w-full overflow-hidden",a&&"cursor-pointer",n),onClick:a?l:void 0,children:jsxRuntime.jsxs("div",{style:{flex:1},children:[jsxRuntime.jsxs(Cg__default.default,{ref:f,initialViewState:e,...t&&{longitude:t.longitude,latitude:t.latitude,zoom:t.zoom},style:{width:"100%",height:"100%"},mapStyle:Rr(s,b),mapboxAccessToken:p,transformRequest:A,onMove:a?void 0:g=>r?.(g.viewState),onClick:a?void 0:C,onMouseEnter:a?void 0:k,onMouseLeave:a?void 0:I,interactiveLayerIds:a?[]:w,scrollZoom:a?false:o,dragPan:!a,dragRotate:!a,doubleClickZoom:!a,interactive:!a,children:[F,kr(d),h&&jsxRuntime.jsx(Cg.Marker,{longitude:h.feature.lngLat[0],latitude:h.feature.lngLat[1],anchor:"bottom",offset:[0,-15],children:jsxRuntime.jsx("div",{className:"pointer-events-none rounded-lg border border-border-default bg-background-surface px-4 py-3 shadow-xl",children:h.content})})]},`map-${s}`),a&&i&&jsxRuntime.jsx("div",{className:"absolute bottom-8 right-8 z-10",children:i})]})})}function vl({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=Ro(),showMarker:l=true,className:s}){let{isDarkTheme:d}=Te(),p={width:typeof e=="number"?`${e}px`:e,height:typeof t=="number"?`${t}px`:t};return o?jsxRuntime.jsx("div",{style:p,className:s,children:jsxRuntime.jsx(z,{width:p.width,height:p.height})}):i?jsxRuntime.jsx("div",{style:p,className:s,children:jsxRuntime.jsxs(Cg__default.default,{mapboxAccessToken:i,initialViewState:r,style:p,mapStyle:Rr(n,d),scrollZoom:false,dragPan:false,dragRotate:false,doubleClickZoom:false,touchZoomRotate:false,interactive:false,children:[kr(a),l&&r.longitude!==void 0&&r.latitude!==void 0&&jsxRuntime.jsx(Cg.Marker,{longitude:r.longitude,latitude:r.latitude,anchor:"bottom",children:jsxRuntime.jsx(v,{name:"MapPin",size:36,className:"text-action-primary",weight:"fill"})})]})}):jsxRuntime.jsx("div",{style:p,className:`flex items-center justify-center bg-background-muted text-text-muted ${s}`,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:"Map requires Mapbox token"})]})})}var Rg={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 Cl({label:e,size:t="md",variant:r="default",showWarningIndicator:o=true,warningThreshold:n=80,className:a,...i}){let l=Rg[t];return jsxRuntime.jsx(reactAriaComponents.Meter,{...i,className:j(a,"flex flex-col gap-1"),children:({percentage:s,valueText:d})=>{let p=o&&s>=n,c=r==="default"?Tg(s):r;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{className:"flex justify-between gap-2",children:[e&&jsxRuntime.jsx(Y,{children:e}),jsxRuntime.jsxs("span",{className:tailwindMerge.twMerge(l.text,p?"text-feedback-error-text":"text-text-muted"),children:[p&&jsxRuntime.jsx(lucideReact.AlertTriangle,{"aria-label":"Warning: High value",className:tailwindMerge.twMerge("inline-block align-text-bottom mr-1",l.icon)}),d]})]}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("relative rounded-full bg-background-muted","ring-1 ring-inset ring-border-muted",l.bar),children:jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("absolute left-0 top-0 h-full rounded-full transition-all duration-300","forced-colors:bg-[Highlight]",Lg(c)),style:{width:`${Math.min(100,Math.max(0,s))}%`},role:"presentation","aria-hidden":"true"})})]})}})}function Tg(e){return e<50?"success":e<70?"info":e<90?"warning":"error"}function Lg(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-primary-background"}}var zg={success:{container:"bg-feedback-success-background border-feedback-success-border text-feedback-success-text",icon:lucideReact.CheckCircle},error:{container:"bg-feedback-error-background border-feedback-error-border text-feedback-error-text",icon:lucideReact.XCircle},warning:{container:"bg-feedback-warning-background border-feedback-warning-border text-feedback-warning-text",icon:lucideReact.AlertCircle},info:{container:"bg-feedback-info-background border-feedback-info-border text-feedback-info-text",icon:lucideReact.Info}};function Fo({id:e,message:t,variant:r="info",duration:o=5e3,dismissible:n=true,onDismiss:a,className:i}){let{container:l,icon:s}=zg[r];return lt.useEffect(()=>{if(o>0){let d=setTimeout(()=>{a?.();},o);return ()=>clearTimeout(d)}},[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-start gap-3 rounded-lg border p-4 shadow-lg",l,i),children:[jsxRuntime.jsx(s,{className:"h-5 w-5 flex-shrink-0"}),jsxRuntime.jsx("p",{className:"flex-1 text-sm font-medium",children:t}),n&&jsxRuntime.jsx("button",{onClick:a,className:"flex-shrink-0 rounded-md p-1 transition-colors hover:bg-black/10","aria-label":"Dismiss notification",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"})})]})}var Zg={"top-left":"top-4 left-4 items-start","top-center":"top-4 left-1/2 -translate-x-1/2 items-center","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-center","bottom-right":"bottom-4 right-4 items-end"};function Mo({notices:e,onDismiss:t,position:r="top-right",className:o}){let[n,a]=lt.useState(false);if(lt.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",Zg[r],o),"aria-live":"polite","aria-atomic":"true",children:jsxRuntime.jsx(framerMotion.AnimatePresence,{mode:"sync",children:e.map(l=>jsxRuntime.jsx(Fo,{id:l.id,message:l.message,variant:l.variant,duration:l.duration,dismissible:l.dismissible,onDismiss:()=>t(l.id)},l.id))})});return reactDom.createPortal(i,document.body)}var Nl=lt.createContext(void 0);function Sl({children:e,position:t="top-right",maxNotices:r=5,defaultDuration:o=5e3,defaultDismissible:n=true}){let[a,i]=lt.useState([]),l=lt.useCallback((c,u)=>{let m=`notice-${Date.now()}-${Math.random()}`,b={id:m,message:c,variant:u?.variant||"info",duration:u?.duration??o,dismissible:u?.dismissible??n};return i(f=>{let x=[...f,b];return x.length>r?x.slice(-r):x}),m},[r,o,n]),s=lt.useCallback(c=>{i(u=>u.filter(m=>m.id!==c));},[]),d=lt.useCallback(()=>{i([]);},[]),p={notices:a,addNotice:l,removeNotice:s,clearNotices:d};return jsxRuntime.jsxs(Nl.Provider,{value:p,children:[e,jsxRuntime.jsx(Mo,{notices:a,onDismiss:s,position:t})]})}function wl(){let e=lt.useContext(Nl);if(!e)throw new Error("useNoticeContext must be used within a NoticeProvider");return e}function Pl(){let{addNotice:e,removeNotice:t,clearNotices:r}=wl(),o=lt.useCallback((s,d)=>e(s,d),[e]),n=lt.useCallback((s,d)=>e(s,{...d,variant:"success"}),[e]),a=lt.useCallback((s,d)=>e(s,{...d,variant:"error"}),[e]),i=lt.useCallback((s,d)=>e(s,{...d,variant:"warning"}),[e]),l=lt.useCallback((s,d)=>e(s,{...d,variant:"info"}),[e]);return {show:o,success:n,error:a,warning:i,info:l,dismiss:t,clear:r}}var ob=e=>tailwindMerge.twMerge(Dt({isInvalid:e.isInvalid,isDisabled:e.isDisabled,isFocused:e.isFocused}),e.transparent?"bg-transparent":"bg-background-input","pr-9","[appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",e.className);function Rl({label:e,description:t,errorMessage:r,size:o,tooltip:n,isRequired:a,transparent:i,validationResult:l,...s}){let d=lt.useId();return jsxRuntime.jsx(reactAriaComponents.NumberField,{...s,id:d,isRequired:a,className:j(s.className,"group flex flex-col gap-1"),step:s.step??1,onChange:p=>{typeof p=="number"&&(s.maxValue!=null&&p>s.maxValue?s.onChange?.(s.maxValue):s.minValue!=null&&p<s.minValue?s.onChange?.(s.minValue):s.onChange?.(p));},isInvalid:!!r||typeof s.value=="number"&&(s.maxValue!=null&&s.value>s.maxValue||s.minValue!=null&&s.value<s.minValue),children:({isDisabled:p,isInvalid:c})=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(Y,{size:o,tooltip:n,isRequired:a,htmlFor:d,children:e}),jsxRuntime.jsx("div",{className:"relative",children:jsxRuntime.jsxs(reactAriaComponents.Group,{className:"relative",children:[jsxRuntime.jsx(reactAriaComponents.Input,{className:ob({isInvalid:c||!!r,isDisabled:p,transparent:i,className:typeof s.className=="string"?s.className:void 0})}),jsxRuntime.jsxs("div",{className:"absolute inset-y-[1px] right-[1px] flex flex-col divide-y border-l overflow-hidden rounded-r-[calc(var(--control-border-radius)-1px)]",children:[jsxRuntime.jsx(reactAriaComponents.Button,{slot:"increment",isDisabled:p,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:p,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})})]})]})}),t&&jsxRuntime.jsx(ee,{size:o,className:"mt-3",children:t}),r&&jsxRuntime.jsx(q,{size:o,className:"mt-3",children:typeof r=="function"?r(l):r})]})})}var Io=lt__namespace.createContext({variant:"default"});function lb({orientation:e,className:t=""}){return `flex flex-col w-full ${{horizontal:"",vertical:"flex-row"}[e]||""} ${t}`.trim()}function Do({variant:e="default",...t}){return jsxRuntime.jsx(Io.Provider,{value:{variant:e},children:jsxRuntime.jsx("div",{className:"w-full",children:jsxRuntime.jsx(reactAriaComponents.Tabs,{...t,className:reactAriaComponents.composeRenderProps(t.className,(r,o)=>lb({...o,className:r}))})})})}function cb({orientation:e,className:t=""}){return `flex gap-10 relative after:absolute after:bottom-0 after:left-0 after:right-0 after:h-[2px] after:bg-border-muted ${{horizontal:"flex-row w-full",vertical:"flex-col items-start"}[e]||""} ${t}`.trim()}function Ao({variant:e,...t}){let r=lt__namespace.useContext(Io),o=e??r.variant;return jsxRuntime.jsx(Io.Provider,{value:{variant:o},children:jsxRuntime.jsx(reactAriaComponents.TabList,{...t,className:reactAriaComponents.composeRenderProps(t.className,(n,a)=>cb({...a,className:n||""}))})})}function db({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",a=ae(),i="";return t?i="text-text-disabled forced-colors:text-[GrayText] cursor-not-allowed":e?r==="accent"?i="text-action-primary border-b-2 border-action-primary z-10 forced-colors:bg-[Highlight]":i="text-text-heading border-b-2 border-text-heading z-10 forced-colors:bg-[Highlight]":i="text-text-placeholder hover:text-text-muted",`${n} ${a} ${i} ${o}`.trim()}function $o(e){let{variant:t}=lt__namespace.useContext(Io);return jsxRuntime.jsx(reactAriaComponents.Tab,{...e,"data-testid":e.id?`tab-${e.id}`:void 0,className:reactAriaComponents.composeRenderProps(e.className,(r,o)=>db({...o,className:r,isSelected:o.isSelected,variant:t}))})}function ub({className:e=""}){let t="block w-full mt-4 text-text-body",r=ae();return `${t} ${r} ${e}`.trim()}function Tl(e){return jsxRuntime.jsx(reactAriaComponents.TabPanel,{...e,className:reactAriaComponents.composeRenderProps(e.className,(t,r)=>ub({...r,className:t||""}))})}function tt({children:e,maxWidth:t=1400,paddingXClass:r="px-4 md:px-6",paddingYClass:o="py-4 md:py-6",className:n}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(`w-full ${r} ${o}`,n),style:{marginInline:"auto",maxWidth:t},children:e})}function Ll({title:e,subtitle:t,breadcrumbs:r,breadcrumbsNode:o,meta:n,headingAs:a,className:i}){return jsxRuntime.jsxs("header",{className:tailwindMerge.twMerge("mb-4 md:mb-6",i),"aria-labelledby":"page-title",children:[o?jsxRuntime.jsx("div",{className:"mb-2",children:o}):r?.length?jsxRuntime.jsx("div",{className:"mb-2",children:jsxRuntime.jsx(Qr,{children:r.map((l,s)=>jsxRuntime.jsx(eo,{...l.href?{href:l.href}:{},children:l.label},`${l.label}-${s}`))})}):null,jsxRuntime.jsxs("div",{className:"flex items-start justify-between gap-4",children:[jsxRuntime.jsxs("div",{className:"min-w-0",children:[jsxRuntime.jsx("div",{id:"page-title",children:jsxRuntime.jsx(Ee,{tag:a||"h1",size:"xl",children:e})}),t?jsxRuntime.jsx("p",{className:"mt-1 text-text-muted",children:t}):null]}),n?jsxRuntime.jsx("div",{className:"shrink-0",children:n}):null]})]})}function Fl({primary:e,secondary:t,children:r,align:o="end",className:n}){return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge(`mb-3 md:mb-4 flex items-center gap-2 ${o==="end"?"justify-end":"justify-start"}`,n),children:[r,jsxRuntime.jsxs("div",{className:"ml-auto flex items-center gap-2",children:[t,e]})]})}function Ml({children:e,className:t,ariaLabel:r="Filters"}){return jsxRuntime.jsx("section",{"aria-label":r,className:tailwindMerge.twMerge("mb-4 md:mb-6 flex flex-wrap items-center gap-2",t),children:e})}function Il({tabs:e,value:t,defaultValue:r,onChange:o,className:n,children:a}){let i=l=>{o?.(l);};return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("mb-3 md:mb-4",n),children:jsxRuntime.jsxs(Do,{selectedKey:t,defaultSelectedKey:r||e[0]?.id,onSelectionChange:i,children:[jsxRuntime.jsx(Ao,{children:e.map(l=>jsxRuntime.jsx($o,{id:l.id,isDisabled:l.disabled,children:l.label},l.id))}),a]})})}function El({children:e,className:t}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-full",t),children:e})}function Dl({children:e,sticky:t=true,className:r}){return jsxRuntime.jsx("aside",{className:tailwindMerge.twMerge(t?"lg:sticky lg:top-20":"",r),children:e})}tt.Header=Ll;tt.Actions=Fl;tt.Filters=Ml;tt.Tabs=Il;tt.Content=El;tt.Aside=Dl;function pb(e){return typeof e=="object"&&e!==null&&"features"in e&&Array.isArray(e.features)&&"type"in e&&typeof e.type=="string"}var mb=process.env.NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN||"";function Bl({label:e="Search for a place",selectedKey:t,defaultSelectedKey:r,onSelectionChange:o,placeholder:n="Enter a location...",errorMessage:a,description:i,size:l="md",tooltip:s,isRequired:d,isDisabled:p,showErrors:c=true,autoFocus:u=false,onSelect:m,searchTypes:b=["place","address"],defaultFilter:f,validationResult:x,countryRestrictions:h,proximity:y="ip"}){let S=lt.useRef(new WeakMap),F=lt.useRef([]),w={requestType:"REST",method:"GET",url:"https://api.mapbox.com/geocoding/v5/mapbox.places/{q}.json",extraParams:{access_token:mb,types:b.join(","),limit:"5",...h?.length?{country:h.join(",").toLowerCase()}:{},...y?{proximity:y==="ip"?"ip":y.join(",")}:{}},shouldLoad:C=>C.length>0,transformResponse:C=>{if(!pb(C))return [];let k=C.features.map(I=>{let A={id:I.id,name:I.place_name};return S.current.set(A,{type:I.place_type[0],center:I.center}),A});return k.length>0&&(F.current=k),k}},R=C=>{let k=S.current.get(C),I=C.name.split(", "),A=I[0],g=I.slice(1).join(", ");return jsxRuntime.jsxs("div",{className:"flex items-center gap-3 py-0.5",children:[jsxRuntime.jsx(v,{name:k?.type==="address"?"MapPin":k?.type==="place"?"Buildings":k?.type==="region"?"MapPinArea":k?.type==="country"?"Flag":"Circle",className:"h-5 w-5 flex-shrink-0 text-text-muted"}),jsxRuntime.jsxs("div",{className:"flex min-w-0 flex-col",children:[jsxRuntime.jsx("span",{className:"truncate font-medium text-text-body",children:A}),g&&jsxRuntime.jsx("span",{className:"truncate text-sm text-text-muted",children:g})]})]})},L=C=>C?jsxRuntime.jsx(v,{name:"CircleNotch",className:"h-4 w-4 animate-spin text-text-muted"}):jsxRuntime.jsx(v,{name:"MagnifyingGlass",className:"h-4 w-4 text-text-muted"});return jsxRuntime.jsx(Yr,{"data-testid":"autocomplete","data-config":JSON.stringify({types:b.join(","),country:h?.join(",").toLowerCase(),proximity:y==="ip"?"ip":y?.join(",")}),label:e,selectedKey:t,defaultSelectedKey:r,onSelectionChange:C=>{if(o?.(C),C){let I=F.current.find(A=>A.id===C);if(I){let A=S.current.get(I);A&&m({id:I.id,place_name:I.name,place_type:[A.type],center:A.center});}}},requestConfig:w,placeholder:n,errorMessage:a,description:i,size:l,tooltip:s,isRequired:d,isDisabled:p,showErrors:c,autoFocus:u,renderItem:R,renderLeftIcon:L,defaultFilter:f,validationResult:x})}function zl({label:e,rightLabel:t,progressWidth:r=64,hideLabels:o=false,...n}){return jsxRuntime.jsx(reactAriaComponents.ProgressBar,{...n,className:j(n.className,"flex flex-col gap-1"),children:({percentage:a,valueText:i,isIndeterminate:l})=>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-heading",children:e}),jsxRuntime.jsx("span",{className:"text-sm text-text-heading",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-blue-600 dark:bg-blue-500 forced-colors:bg-[Highlight] ${l?"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:(l?40:a)+"%"}})})]})})}function Hl(e){return jsxRuntime.jsxs(reactAriaComponents.RadioGroup,{...e,className:j(e.className,"group flex flex-col gap-2"),children:[jsxRuntime.jsx(Y,{children:e.label}),jsxRuntime.jsx("div",{className:"flex gap-2 group-orientation-horizontal:gap-4 group-orientation-vertical:flex-col",children:e.children}),e.description&&jsxRuntime.jsx(ee,{children:e.description}),jsxRuntime.jsx(q,{children:typeof e.errorMessage=="function"&&e.validationResult?e.errorMessage(e.validationResult):typeof e.errorMessage=="string"?e.errorMessage:null})]})}function hb({isSelected:e,isInvalid:t,isDisabled:r}){let o=[ae(),"w-5 h-5 rounded-full border-2 bg-background-surface transition-all"];return r?o.push("border-border-muted forced-colors:!border-[GrayText]"):t?o.push("border-feedback-error-border group-pressed:border-feedback-error-border dark:group-pressed:border-feedback-error-border forced-colors:!border-[Mark]"):e?o.push("border-[7px] border-action-primary forced-colors:!border-[Highlight] group-pressed:border-action-primary-hover dark:group-pressed:border-action-primary-hover"):o.push("border-border-default group-pressed:border-border-focus dark:group-pressed:border-border-focus"),o.join(" ")}function Gl(e){return jsxRuntime.jsx(reactAriaComponents.Radio,{...e,className:j(e.className,"group flex items-center gap-2 text-sm text-text-body transition disabled:text-text-muted dark:text-text-body dark:disabled:text-text-muted forced-colors:disabled:text-[GrayText]"),children:t=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:hb(t)}),e.children]})})}var kt=({isActive:e=false,onPress:t,children:r})=>jsxRuntime.jsx(H,{variant:e?"secondary":"ghost",size:"sm",onPress:t,className:"p-1",children:r});function Tb({initialUrl:e,isOpen:t,onClose:r,onSubmit:o}){let[n,a]=lt.useState(e);return lt__namespace.default.useEffect(()=>{a(e);},[e]),jsxRuntime.jsx(reactAriaComponents.Modal,{isDismissable:true,isOpen:t,onOpenChange:l=>!l&&r(),children:jsxRuntime.jsx(reactAriaComponents.Dialog,{className:"relative",children:jsxRuntime.jsxs("form",{onSubmit:l=>{l.preventDefault(),o(n),r();},children:[jsxRuntime.jsx(qt,{title:"Insert Link",onClose:r}),jsxRuntime.jsx("div",{className:"p-6",children:jsxRuntime.jsx(Yt,{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(H,{variant:"secondary",onPress:r,children:"Cancel"}),jsxRuntime.jsx(H,{type:"submit",children:"Save"})]})]})})})}function Kl({initialContent:e="",onChange:t,className:r,isDisabled:o=false,placeholder:n="Start typing..."}){let[a,i]=lt.useState(false),l=react.useEditor({extensions:[wb__default.default.configure({heading:{levels:[1,2]}}),vb__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:p})=>{t?.(p.getHTML());},editorProps:{attributes:{class:tailwindMerge.twMerge("prose prose-sm max-w-none","focus:outline-none","[&>*:first-child]:mt-0 [&>*:last-child]:mb-0")}}}),s=()=>{i(true);},d=p=>{p===""?l?.chain().focus().unsetLink().run():l?.chain().focus().setLink({href:p}).run();};return l?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex flex-col rounded-md border border-border-input bg-background-input",o&&"opacity-50",r),children:[l&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs(menus.BubbleMenu,{editor:l,shouldShow:({editor:p})=>p.isActive("link")&&!a,className:"flex items-center gap-1 rounded-md border border-border-input bg-background-surface p-1 shadow-md",children:[jsxRuntime.jsxs(H,{variant:"ghost",size:"sm",className:"h-8 px-2",onPress:()=>{let p=l.getAttributes("link").href;window.open(p,"_blank");},children:[jsxRuntime.jsx(v,{name:"ArrowSquareOut",className:"mr-1 h-4 w-4"}),"Open"]}),jsxRuntime.jsxs(H,{variant:"ghost",size:"sm",className:"h-8 px-2",onPress:s,children:[jsxRuntime.jsx(v,{name:"PencilSimple",className:"mr-1 h-4 w-4"}),"Edit"]}),jsxRuntime.jsxs(H,{variant:"ghost",size:"sm",className:"h-8 px-2",onPress:()=>l.chain().focus().unsetLink().run(),children:[jsxRuntime.jsx(v,{name:"X",className:"mr-1 h-4 w-4"}),"Remove"]})]}),jsxRuntime.jsx(Tb,{isOpen:a,onClose:()=>i(false),onSubmit:d,initialUrl:l.getAttributes("link").href||""})]}),jsxRuntime.jsxs("div",{className:"flex items-center gap-1 border-b border-border-input p-2",children:[jsxRuntime.jsx(kt,{isActive:l.isActive("heading",{level:1}),onPress:()=>l.chain().focus().toggleHeading({level:1}).run(),children:jsxRuntime.jsx("span",{className:"text-xs font-bold",children:"H1"})}),jsxRuntime.jsx(kt,{isActive:l.isActive("heading",{level:2}),onPress:()=>l.chain().focus().toggleHeading({level:2}).run(),children:jsxRuntime.jsx("span",{className:"text-xs font-bold",children:"H2"})}),jsxRuntime.jsx(kt,{isActive:l.isActive("bold"),onPress:()=>l.chain().focus().toggleBold().run(),children:jsxRuntime.jsx("span",{className:"text-xs font-bold",children:"B"})}),jsxRuntime.jsx(kt,{isActive:l.isActive("italic"),onPress:()=>l.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(kt,{isActive:l.isActive("bulletList"),onPress:()=>l.chain().focus().toggleBulletList().run(),children:jsxRuntime.jsx(v,{name:"ListBullets",className:"h-4 w-4"})}),jsxRuntime.jsx(kt,{isActive:l.isActive("orderedList"),onPress:()=>l.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(kt,{isActive:l.isActive("link"),onPress:s,children:jsxRuntime.jsx(v,{name:"PaperclipHorizontal",className:"h-4 w-4"})})]}),jsxRuntime.jsxs("div",{className:"relative min-h-[200px] w-full",children:[jsxRuntime.jsx(react.EditorContent,{editor:l,className:tailwindMerge.twMerge("w-full p-4","[&_.ProseMirror]:min-h-[inherit]","[&_.ProseMirror]:outline-none","[&_.ProseMirror_h1]:mb-4 [&_.ProseMirror_h1]:text-2xl [&_.ProseMirror_h1]:font-bold","[&_.ProseMirror_h2]:mb-3 [&_.ProseMirror_h2]:text-xl [&_.ProseMirror_h2]:font-semibold","[&_.ProseMirror_p]:mb-2","[&_.ProseMirror_ul]:mb-2 [&_.ProseMirror_ul]:ml-6 [&_.ProseMirror_ul]:list-disc","[&_.ProseMirror_ol]:mb-2 [&_.ProseMirror_ol]:ml-6 [&_.ProseMirror_ol]:list-decimal","[&_.ProseMirror_li]:mb-1","[&_.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")}),l.isEmpty&&!o&&jsxRuntime.jsx("div",{className:"pointer-events-none absolute left-4 top-4 text-text-muted",children:n})]})]}):null}var Mb={plain:"",contained:"bg-background-surface rounded-lg border border-border-default p-6",bordered:"border-y border-border-default py-6"},Ib={none:"",sm:"my-4",md:"my-6 md:my-8",lg:"my-8 md:my-12"};function Zl({title:e,description:t,actions:r,variant:o="plain",spacing:n="md",withDivider:a=false,headingAs:i="h2",className:l,children:s}){let d=lt__namespace.default.useId(),p=e||t||r;return jsxRuntime.jsxs("section",{className:tailwindMerge.twMerge(Ib[n],Mb[o],l),"aria-labelledby":e?d:void 0,children:[p&&jsxRuntime.jsxs("header",{id:d,className:tailwindMerge.twMerge("flex flex-col sm:flex-row sm:items-start sm:justify-between gap-4",a&&"border-b border-border-default pb-4 mb-6",!a&&s&&"mb-4"),children:[jsxRuntime.jsxs("div",{className:"min-w-0 flex-1",children:[e&&jsxRuntime.jsx(Ee,{tag:i,size:"md",className:"text-text-heading",children:e}),t&&jsxRuntime.jsx("p",{className:"mt-1 text-sm text-text-muted",children:t})]}),r&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:r})]}),s&&jsxRuntime.jsx("div",{className:"",children:s})]})}var Db={sm:"h-8 text-xs",md:"h-10 text-sm",lg:"h-12 text-base",xl:"h-14 text-lg"},Ab={sm:14,md:16,lg:18,xl:20},$b=({isSelected:e,isFirst:t,isLast:r,isDisabled:o})=>tailwindMerge.twMerge(ae(),"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-selected text-text-body font-semibold forced-colors:!bg-[Highlight] forced-colors:!text-[HighlightText]":"text-text-muted hover:bg-background-hover pressed:bg-background-selected 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 ql({options:e,value:t,onChange:r,size:o="md",className:n,isDisabled:a,"aria-label":i}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("inline-flex overflow-hidden rounded-md border-2 border-border-muted",Db[o],n),role:"group","aria-label":i,children:e.map((l,s)=>jsxRuntime.jsxs(reactAriaComponents.ToggleButton,{isSelected:t===l.id,onChange:()=>r(l.id),className:$b({isSelected:t===l.id,isFirst:s===0,isLast:s===e.length-1,isDisabled:a}),isDisabled:a,"aria-label":l.label,children:[l.icon&&jsxRuntime.jsx(v,{name:l.icon,size:Ab[o]}),l.label]},l.id))})}function Xl({label:e,description:t,tooltip:r,errorMessage:o,size:n="md",className:a,value:i,defaultValue:l=0,onChange:s,min:d=0,max:p=100,step:c=1,disabled:u,showValue:m=true}){let b=typeof i=="number",[f,x]=lt__namespace.default.useState(l),h=b?i:f,y=Math.min(Math.max(h,d),p),S=Math.max(p-d,1e-5),F=(y-d)/S*100;return jsxRuntime.jsxs("div",{className:j(a,"group flex w-full flex-col gap-1"),children:[e&&jsxRuntime.jsx(Y,{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-primary",style:{width:`${F}%`},"aria-hidden":true}),jsxRuntime.jsx("input",{type:"range",min:d,max:p,step:c,value:h,disabled:u,"aria-invalid":!!o,onChange:w=>{let R=Number(w.currentTarget.value);b||x(R),s?.(R);},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-border-focus","[&::-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-border-focus",u?"cursor-not-allowed opacity-60":void 0)})]}),m&&jsxRuntime.jsx("div",{className:"min-w-10 text-right text-sm text-text-heading tabular-nums",children:Math.round(y)})]}),t&&jsxRuntime.jsx(ee,{className:"mt-2 text-text-muted",children:t}),o&&jsxRuntime.jsx(q,{className:"mt-1",children:o})]})}var Ob=lt__namespace.default.createContext({orientation:"horizontal",isResizing:false});function Vo({defaultSize:e=.7,minSize:t=240,maxSize:r=600,orientation:o="horizontal",resizable:n=true,onResize:a,className:i,children:l}){let s=lt.useRef(null),[d,p]=lt.useState(false),[c,u]=lt.useState(e>1?.7:e),m=lt.useCallback(S=>{if(!s.current||!d)return;let F=s.current.getBoundingClientRect(),w=o==="horizontal"?F.width:F.height,R=o==="horizontal"?F.left:F.top,C=(o==="horizontal"?S.clientX:S.clientY)-R,k=w-C;if(k<t||k>r)return;let I=C/w;u(I),a?.(I);},[d,o,t,r,a]),b=lt.useCallback(()=>{p(false);},[]),f=lt.useCallback(S=>{S.preventDefault(),S.stopPropagation(),p(true);},[]);lt.useEffect(()=>{if(d)return document.addEventListener("mousemove",m),document.addEventListener("mouseup",b),document.body.style.cursor=o==="horizontal"?"col-resize":"row-resize",document.body.style.userSelect="none",()=>{document.removeEventListener("mousemove",m),document.removeEventListener("mouseup",b),document.body.style.cursor="",document.body.style.userSelect="";}},[d,m,b,o]);let x=lt__namespace.default.Children.toArray(l).find(S=>lt__namespace.default.isValidElement(S)&&S.type===Ql),h=lt__namespace.default.Children.toArray(l).find(S=>lt__namespace.default.isValidElement(S)&&S.type===ec),y=`${c*100}%`;return jsxRuntime.jsx(Ob.Provider,{value:{orientation:o,isResizing:d},children:jsxRuntime.jsxs("div",{ref:s,className:tailwindMerge.twMerge("flex w-full h-full",o==="horizontal"?"flex-row":"flex-col",i),children:[jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-auto",o==="horizontal"?"h-full":"w-full"),style:{[o==="horizontal"?"width":"height"]:y},children:x}),n&&jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("relative group",o==="horizontal"?"w-2 -mx-1 cursor-col-resize":"h-2 -my-1 cursor-row-resize"),onMouseDown:f,role:"separator","aria-orientation":o,"aria-label":"Resize divider",tabIndex:0,onKeyDown:S=>{if(o==="horizontal"){if(S.key==="ArrowLeft"&&c>.3){let w=Math.max(.3,c-.01);u(w),a?.(w);}else if(S.key==="ArrowRight"&&c<.8){let w=Math.min(.8,c+.01);u(w),a?.(w);}}},children:[jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("absolute bg-border-default transition-all",o==="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-primary/50",d&&"bg-action-primary",d&&(o==="horizontal"?"w-1":"h-1"))}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("absolute",o==="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-1",o==="horizontal"?"h-full":"w-full"),children:h})]})})}function Ql({className:e,children:t}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-full h-full",e),children:t})}function ec({className:e,children:t}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-full h-full",e),children:t})}Vo.Main=Ql;Vo.Aside=ec;function Kb(e,t){return lr({value:e,formatter:t,emptyClassName:"text-text-muted",emptyText:"\u2014"})}function _b(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 Zb={neutral:"text-text-body",success:"text-feedback-success",warning:"text-feedback-warning",error:"text-feedback-error",info:"text-feedback-info"};function Ub({item:e,dense:t,valueAlign:r}){let o=_b(e),n=o?Zb[o]:"",a=Kb(e.value,e.formatter),i=typeof e.copyable=="function"?e.copyable(e.value):String(e.value),l=jsxRuntime.jsx("span",{className:e.href?"hover:underline cursor-pointer":"",children:a}),s=jsxRuntime.jsxs("dd",{className:tailwindMerge.twMerge(t?"text-sm":"text-base","font-medium",r==="start"?"text-left":"text-right",n,e.disabled&&"opacity-50"),children:[e.copyable?jsxRuntime.jsxs(no,{value:i,size:"sm",className:"flex items-center gap-1",children:[l,e.iconRight]}):jsxRuntime.jsxs("div",{className:"flex items-center gap-1",children:[l,e.iconRight]}),e.meta&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-xs text-text-muted mt-0.5",r==="start"?"text-left":"text-right"),children:e.meta})]}),d=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("dt",{className:tailwindMerge.twMerge(t?"text-xs":"text-sm","text-text-caption 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-muted","aria-label":"More information"})]}),e.href?jsxRuntime.jsx("a",{href:e.href,onClick:e.onAction,className:"block",children:s}):s]});return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("grid grid-cols-[1fr_auto] items-start",t?"gap-x-2":"gap-x-4"),children:d})}function tc({items:e,layout:t="one-column",dense:r=false,valueAlign:o="end",showDividers:n=false,skeleton:a=false,empty:i=false,error:l,className:s}){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",s),children:Array.from({length:e.length||4}).map((d,p)=>jsxRuntime.jsxs("div",{className:"grid grid-cols-[1fr_auto] items-start gap-x-4",children:[jsxRuntime.jsx(z,{className:"h-4 w-24"}),jsxRuntime.jsx(z,{className:"h-5 w-16"})]},p))}):l?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-sm text-feedback-error",s),children:l}):i||!e.length?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-sm text-text-muted",s),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",s),children:e.map((d,p)=>jsxRuntime.jsxs(lt__namespace.default.Fragment,{children:[n&&p>0&&t==="one-column"&&jsxRuntime.jsx("div",{className:"col-span-full border-t border-border-default -mt-1 mb-1"}),jsxRuntime.jsx(Ub,{item:d,dense:r,valueAlign:o})]},d.id))})}function Xb({isSelected:e,isDisabled:t}){return ["flex h-4 w-7 px-px items-center shrink-0 cursor-default rounded-full transition duration-200 ease-in-out shadow-inner border border-transparent",ae,e?"bg-gray-700 dark:bg-zinc-300 forced-colors:!bg-[Highlight] group-pressed:bg-gray-800 dark:group-pressed:bg-zinc-200":"bg-gray-400 dark:bg-zinc-400 group-pressed:bg-gray-500 dark:group-pressed:bg-zinc-300",t?"bg-gray-200 dark:bg-zinc-700 forced-colors:group-selected:!bg-[GrayText] forced-colors:border-[GrayText]":""].filter(Boolean).join(" ")}function Yb({isSelected:e,isDisabled:t}){return ["h-3 w-3 transform rounded-full bg-white dark:bg-zinc-900 outline-none shadow transition duration-200 ease-in-out",e?"translate-x-[100%]":"translate-x-0",t?"forced-colors:outline-[GrayText]":""].filter(Boolean).join(" ")}function rc({children:e,...t}){return jsxRuntime.jsx(reactAriaComponents.Switch,{...t,className:j(t.className,"group flex items-center gap-2 text-sm text-gray-800 transition disabled:text-gray-300 dark:text-zinc-200 dark:disabled:text-zinc-600 forced-colors:disabled:text-[GrayText]"),children:r=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:Xb(r),children:jsxRuntime.jsx("span",{className:Yb(r)})}),e]})})}var tx=e=>{let t=Oe({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":"resize-y"}`;return tailwindMerge.twMerge(t,r,e.className)};function oc({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,required:a,transparent:i,isInvalid:l,isDisabled:s,className:d,validationResult:p,...c}){let{isFocused:u,handleFocus:m,handleBlur:b}=Ze();return jsxRuntime.jsx("div",{className:"group flex flex-col",children:jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(Y,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(Ue,{children:jsxRuntime.jsx("textarea",{...c,required:a,onFocus:f=>{c.onFocus&&c.onFocus(f),m(f);},onBlur:f=>{c.onBlur&&c.onBlur(f),b(f);},className:tx({isInvalid:l,isDisabled:s,isFocused:u,size:o,transparent:i,className:d}),disabled:s})}),t&&jsxRuntime.jsx(ee,{size:o,className:"mt-3",children:t}),typeof r=="string"&&jsxRuntime.jsx(q,{size:o,className:"mt-1",children:r}),typeof r=="function"&&p&&jsxRuntime.jsx(q,{size:o,className:"mt-1",children:r(p)})]})})}function sc({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,required:a,transparent:i,isInvalid:l,isDisabled:s,className:d,validationResult:p,value:c="",onChange:u,chips:m=[],onChipsChange:b,triggerPattern:f="{{",onTriggerDetected:x,onTriggerDismissed:h,renderChip:y,chipVariant:S="primary",chipSize:F,...w}){let R=lt.useRef(null),{isFocused:L,handleFocus:C,handleBlur:k}=Ze(),I=F||"sm",A=lt.useRef(null),g=lt.useCallback(E=>{let G="",X=M=>{if(M.nodeType===Node.TEXT_NODE){if(!M.parentElement?.closest("[data-chip-id]")){let $=M.textContent||"";G+=$;}}else if(M.nodeType===Node.ELEMENT_NODE){let T=M;if(T.hasAttribute("data-chip-id")){let $=T.getAttribute("data-chip-id");G+=`{{${$}}}`;return}else if(T.tagName==="BR"){G+=`
|
|
81
|
-
`;return}else
|
|
82
|
-
`)?
|
|
83
|
-
`).map((
|
|
84
|
-
`).length-1&&jsxRuntime.jsx("br",{})]},`line-${X}-${$}`)):G}):null;return jsxRuntime.jsx("div",{className:"group flex flex-col",children:jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(Y,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(Ue,{children:jsxRuntime.jsx("div",{ref:R,contentEditable:!s,suppressContentEditableWarning:true,onInput:E=>{if(s)return;let G=E.target,X=G.querySelector("[data-chip-id]")!==null,M;if(X?(M=g(G),M=M.replace(/(\{\{[^}]+\}\})\s{2,}/g,"$1 ").replace(/\s{2,}(\{\{[^}]+\}\})/g," $1")):M=G.textContent||"",M===""){try{let V=document.createRange();V.selectNodeContents(G),V.collapse(!0);let O=window.getSelection();O?.removeAllRanges(),O?.addRange(V),A.current=0;}catch{}K("",0);return}if(M===c)return;let T=window.getSelection(),$=0;if(T&&T.rangeCount>0)try{let V=T.getRangeAt(0);if(X){let O=0,ce=!1,nt=ve=>{if(ce)return !0;if(ve===V.startContainer)return O+=V.startOffset,ce=!0,!0;if(ve.nodeType===Node.TEXT_NODE){if(!ve.parentElement?.closest("[data-chip-id]")){if(ve.contains(V.startContainer))return O+=V.startOffset,ce=!0,!0;O+=(ve.textContent||"").length;}}else if(ve.nodeType===Node.ELEMENT_NODE){let Ne=ve;if(Ne.hasAttribute("data-chip-id")){if(Ne.contains(V.startContainer)||Ne===V.startContainer){let fc=Ne.getAttribute("data-chip-id");return O+=`{{${fc}}}`.length,ce=!0,!0}let mc=Ne.getAttribute("data-chip-id");return O+=`{{${mc}}}`.length,!1}else if(Ne.tagName==="BR")return Ne===V.startContainer?(ce=!0,!0):(O+=1,!1)}for(let Ne=0;Ne<ve.childNodes.length;Ne++)if(nt(ve.childNodes[Ne]))return !0;return !1};nt(G),$=O;}else {let O=document.createRange();O.setStart(G,0),O.setEnd(V.startContainer,V.startOffset),$=O.toString().length;}}catch{$=M.length;}A.current=$,K(M,$);},onKeyDown:E=>{if(s)return;let G=window.getSelection();if(!(!G||G.rangeCount===0))try{let X=G.getRangeAt(0),M=X.commonAncestorContainer;if(E.key==="ArrowLeft"||E.key==="ArrowRight"){let T=M.nodeType===Node.TEXT_NODE?M.parentElement?.closest("[data-chip-id]"):M.closest("[data-chip-id]");if(T){E.preventDefault();try{let $=document.createRange(),V=window.getSelection();E.key==="ArrowLeft"?$.setStartBefore(T):$.setStartAfter(T),$.collapse(!0),V?.removeAllRanges(),V?.addRange($);}catch{}}}if(E.key==="Backspace"){let T=null;if(T=(M.nodeType===Node.TEXT_NODE?M.parentElement?.closest("[data-chip-id]"):M.closest("[data-chip-id]"))||null,!T)if(M.nodeType===Node.TEXT_NODE){let $=M;if(X.startOffset===0&&$.parentElement){let V=$.previousSibling;if(V&&V.nodeType===Node.ELEMENT_NODE){let O=V.closest("[data-chip-id]");O&&(T=O);}}}else {let $=M;if(X.startOffset>0){let V=$.childNodes[X.startOffset-1];if(V&&V.nodeType===Node.ELEMENT_NODE){let O=V.closest("[data-chip-id]");O&&(T=O);}}}if(T){E.preventDefault(),E.stopPropagation();let $=T.getAttribute("data-chip-id");if(!$)return;let V=`{{${$}}}`,O=c.indexOf(V);if(O!==-1){let ce=c.slice(0,O)+c.slice(O+V.length),nt=m.filter(ve=>ve.id!==$);A.current=O;try{window.getSelection()?.removeAllRanges();}catch{}b?.(nt),u?.(ce);}}}}catch{}},onFocus:E=>{s||(w.onFocus&&w.onFocus(E),C(E));},onBlur:E=>{s||(w.onBlur&&w.onBlur(E),k(E));},className:re(),style:{whiteSpace:"pre-wrap",wordBreak:"break-word",...w.style},"data-placeholder":w.placeholder,children:ne()},c===""?"empty":"content")}),t&&jsxRuntime.jsx(ee,{size:o,className:"mt-3",children:t}),typeof r=="string"&&jsxRuntime.jsx(q,{size:o,className:"mt-1",children:r}),typeof r=="function"&&p&&jsxRuntime.jsx(q,{size:o,className:"mt-1",children:r(p)})]})})}var px=e=>tailwindMerge.twMerge("w-full",Dt({isInvalid:e.isInvalid,isDisabled:e.isDisabled,isFocused:e.isFocused}),qr({transparent:e.transparent,isDisabled:e.isDisabled}),_[e.size||"md"].text,_[e.size||"md"].height,_[e.size||"md"].padding,"pl-[var(--control-padding-sm)]","flex items-center gap-0.5",e.className),mx=({isPlaceholder:e,isDisabled:t,isFocused:r,size:o="md"})=>tailwindMerge.twMerge("outline-none rounded transition-colors box-content tabular-nums text-center",e?"text-text-muted italic":"text-text-body",t?"text-text-disabled cursor-not-allowed":"cursor-text",_[o].text,"px-0.5 -my-0.5",r&&"!outline-[1.5px] !outline-[var(--control-focus-ring-color)] ![--tw-outline-style:solid]",!t&&!r&&"hover:bg-text-body/[0.05]");function cc({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,transparent:i,validationResult:l,...s}){let{isFocused:d}=Ze(),[p,c]=lt.useState(null),u=lt.useRef(null);return lt.useEffect(()=>{let m=x=>{let h=x.target;h.hasAttribute("data-type")&&c(h.getAttribute("data-type"));},b=()=>{c(null);},f=u.current;return f&&(f.addEventListener("focusin",m),f.addEventListener("focusout",b)),()=>{f&&(f.removeEventListener("focusin",m),f.removeEventListener("focusout",b));}},[]),jsxRuntime.jsx(reactAriaComponents.TimeField,{...s,children:({isDisabled:m,isInvalid:b})=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[e&&jsxRuntime.jsx(Y,{isRequired:a,tooltip:n,children:e}),jsxRuntime.jsx(reactAriaComponents.DateInput,{ref:u,className:px({size:o,transparent:i,isDisabled:m,isInvalid:b,isFocused:d}),children:f=>jsxRuntime.jsx(reactAriaComponents.DateSegment,{segment:f,className:mx({isPlaceholder:f.isPlaceholder,isDisabled:!f.isEditable,isFocused:p===f.type,size:o})})}),t&&jsxRuntime.jsx(ee,{children:t}),typeof r=="string"?jsxRuntime.jsx(q,{children:r}):null]})})}var xx="flex font-medium justify-center items-center gap-2 text-center transition whitespace-nowrap box-border",dc={default:{selected:"bg-text-body text-white hover:brightness-[var(--control-hover-opacity)] forced-colors:bg-[ButtonText] forced-colors:text-[ButtonFace] border-2 border-transparent",unselected:"bg-transparent text-text-body border-2 border-border-muted hover:bg-text-body/[0.05] forced-colors:border-[ButtonBorder] forced-colors:bg-[ButtonFace] forced-colors:text-[ButtonText]"},primary:{selected:"bg-action-primary text-white hover:brightness-[var(--control-hover-opacity)] forced-colors:bg-[ButtonText] forced-colors:text-[ButtonFace] border-2 border-transparent",unselected:"bg-transparent text-text-body border-2 border-border-muted hover:bg-text-body/[0.05] forced-colors:border-[ButtonBorder] forced-colors:bg-[ButtonFace] forced-colors:text-[ButtonText]"}},hx="opacity-[--control-hover-opacity] cursor-not-allowed pointer-events-none grayscale",yx="opacity-100 cursor-pointer",vx={"top-right":"-right-2 -top-2","top-left":"-left-2 -top-2","bottom-right":"-right-2 -bottom-2","bottom-left":"-left-2 -bottom-2"},Cx={primary:"bg-action-primary text-white",destructive:"bg-action-destructive text-white"};function Nx(e){let{variant:t="default",size:r="md",isDisabled:o,isSelected:n,borderRadius:a,borderRight:i,borderLeft:l}=e,s=`${xx} ${n?dc[t].selected:dc[t].unselected}`;return s+=` ${_[r].text} ${_[r].height} ${_[r].padding} ${_[r].gap}`,s+=` ${o?hx:yx}`,a==="left"&&(s+=" rounded-l-sm"),a==="right"&&(s+=" rounded-r-sm"),i&&(s+=" border-r"),l&&(s+=" border-l"),s+=` ${ae()}`,tailwindMerge.twMerge(s)}function pc(e){let{className:t,children:r,onPress:o,icon:n,iconPosition:a="left",iconWeight:i,isLoading:l=false,loadingText:s,loadingIndicator:d,size:p="md",badgeNumber:c,badgeVariant:u="primary",badgePosition:m="top-right",...b}=e,f=n?jsxRuntime.jsx(v,{name:n,className:`icon-[--control-icon-size-${p}]`,weight:i}):null,x=()=>{let y=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[a==="left"&&f,r,a==="right"&&f]});return l?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:d||jsxRuntime.jsx(v,{name:"CircleNotch",className:`animate-spin icon-[--control-icon-size-${p}]`,"aria-hidden":"true"})}),jsxRuntime.jsx("div",{className:"invisible","aria-hidden":"true",children:y}),s&&jsxRuntime.jsx("span",{className:"sr-only",role:"status","aria-live":"polite",children:s})]}):y},h=jsxRuntime.jsx(reactAriaComponents.ToggleButton,{onPress:o,...b,className:tailwindMerge.twMerge(Nx(e),t),"aria-busy":l,children:x()});return c&&c>0?jsxRuntime.jsxs("div",{className:"relative",children:[h,jsxRuntime.jsx("span",{className:`absolute ${vx[m]} flex h-5 w-5 items-center justify-center rounded-full ${Cx[u]} text-xs`,"aria-label":`${c} items`,children:c})]}):h}exports.ActionCell=as;exports.ActionMenu=pi;exports.AppShell=gi;exports.AreaSeries=Vt;exports.AutoMobileRenderer=xo;exports.Autocomplete=Yr;exports.Avatar=Fi;exports.Badge=At;exports.BarSeries=Ht;exports.BooleanCell=is;exports.Breadcrumb=eo;exports.Breadcrumbs=Qr;exports.Button=H;exports.Calendar=to;exports.Card=Ae;exports.CardMobileRenderer=ho;exports.ChartAxis=hr;exports.ChartBottomBar=so;exports.ChartContainer=ts;exports.ChartContext=ao;exports.ChartTooltip=lo;exports.Checkbox=br;exports.CheckboxGroup=op;exports.Chip=Bt;exports.ClearButton=wi;exports.CodeEditor=_i;exports.ColorModeProvider=Si;exports.CopyToClipboard=no;exports.DataTable=gs;exports.DateCell=ss;exports.DateField=bs;exports.DateRangePicker=ys;exports.Description=ee;exports.Dialog=Ut;exports.DialogHeader=qt;exports.Drawer=ea;exports.ErrorBoundary=Xt;exports.FieldError=q;exports.FieldGroup=Xr;exports.FileUpload=Ss;exports.Form=ws;exports.FormatRegistry=P;exports.Grid=ta;exports.Heading=Ee;exports.Icon=v;exports.Input=Pi;exports.InputWrapper=Ue;exports.InteractiveMap=hl;exports.Kpi=Ls;exports.KpiGroup=oa;exports.Label=Y;exports.LineSeries=Ot;exports.List=Ds;exports.ListBox=Df;exports.ListBoxItem=ut;exports.ListHeader=Gs;exports.ListItem=Os;exports.ListPane=Ws;exports.Loader=_s;exports.Logo=Wr;exports.MAP_TYPES=gl;exports.Meter=Cl;exports.Notice=Fo;exports.NoticeContainer=Mo;exports.NoticeProvider=Sl;exports.NumberCell=ls;exports.NumberField=Rl;exports.PageLayout=tt;exports.PlaceSearch=Bl;exports.Popover=pt;exports.ProgressBar=zl;exports.Radio=Gl;exports.RadioGroup=Hl;exports.RangeCalendar=yo;exports.RichTextEditor=Kl;exports.SKELETON_SIZES=bt;exports.Section=Zl;exports.SegmentedControl=ql;exports.Select=So;exports.SelectCell=cs;exports.SideNav=Kr;exports.Skeleton=z;exports.Slider=Xl;exports.SplitPane=Vo;exports.StatList=tc;exports.StaticMap=vl;exports.Switch=rc;exports.Tab=$o;exports.TabList=Ao;exports.TabPanel=Tl;exports.Tabs=Do;exports.TextArea=oc;exports.TextAreaWithChips=sc;exports.TextCell=ds;exports.TextField=Yt;exports.TextLink=Ln;exports.TimeField=cc;exports.ToggleButton=pc;exports.Tooltip=Dn;exports.TopNav=cr;exports.autoScaleCurrent=Ec;exports.autoScaleDistance=Aa;exports.autoScaleEnergy=za;exports.autoScalePower=Oc;exports.autoScaleResistance=Wc;exports.autoScaleVoltage=Xc;exports.camelCaseToWords=ri;exports.capitalize=ei;exports.celsiusToFahrenheit=Kc;exports.celsiusToKelvin=Mh;exports.centimetersToInches=ph;exports.clearColorCache=Et;exports.createCategoryColorMap=wd;exports.createFormat=ty;exports.createXScale=$n;exports.createYScale=Bn;exports.defaultMargin=oe;exports.enumToSentenceCase=jc;exports.exportChart=On;exports.fahrenheitToCelsius=_c;exports.fahrenheitToKelvin=Ih;exports.feetToMeters=oh;exports.feetToMiles=ih;exports.formatBoolean=La;exports.formatComponentValue=lr;exports.formatCurrency=Ia;exports.formatCurrent=Oo;exports.formatDate=Ea;exports.formatDistance=$a;exports.formatEmptyValue=uo;exports.formatEnergy=Xo;exports.formatFieldValue=sr;exports.formatInternationalPhone=Yo;exports.formatNumber=Ma;exports.formatPhone=Ga;exports.formatPhoneNumber=Ha;exports.formatPower=tn;exports.formatResistance=on;exports.formatTemperature=qa;exports.formatText=si;exports.formatUSPhone=zr;exports.formatVoltage=sn;exports.getBadgeClasses=rs;exports.getBooleanBadgeVariant=os;exports.getCellAlignmentClasses=Un;exports.getCellContainerClasses=se;exports.getCellTextClasses=$e;exports.getContrastingTextColor=Pd;exports.getDateParts=Yx;exports.getDefaultChartColor=yn;exports.getDefaultColors=vi;exports.getExportFormatName=Qp;exports.getFieldGroupStyles=pr;exports.getInputBackgroundStyles=qr;exports.getInputBaseStyles=Oe;exports.getInputStateStyles=Dt;exports.getNumericColorClasses=po;exports.getResolvedColor=ct;exports.getSkeletonSize=Be;exports.getThemeCategoricalColors=jr;exports.getYFormatSettings=Gt;exports.inchesToCentimeters=uh;exports.isCustomPinsLayer=pa;exports.isExportSupported=Jp;exports.isGeoJsonLayer=ua;exports.isLightColor=Ci;exports.isNil=D;exports.isRasterLayer=ma;exports.isVectorLayer=da;exports.kelvinToCelsius=Zc;exports.kelvinToFahrenheit=Eh;exports.kilometersToMiles=ah;exports.layer=ca;exports.metersToFeet=rh;exports.metersToMiles=sh;exports.metersToYards=dh;exports.milesToFeet=Da;exports.milesToKilometers=nh;exports.milesToMeters=lh;exports.parseBoolean=_e;exports.resolveValue=Ce;exports.snakeCaseToWords=oi;exports.temperatureStringToSymbol=Ka;exports.toA=Zx;exports.toActiveInactive=Sc;exports.toAmps=Vr;exports.toBoolean=Ke;exports.toCelsius=Za;exports.toCentimeters=zc;exports.toCheckmark=Pc;exports.toCompactNumber=Mc;exports.toCurrency=Fa;exports.toCustomDateFormat=Vc;exports.toDateString=Dc;exports.toEnabledDisabled=Cc;exports.toFahrenheit=_a;exports.toFeet=_o;exports.toFloat=Lc;exports.toFormattedNumber=Fc;exports.toFullDateTime=$c;exports.toGW=wh;exports.toGWh=Va;exports.toGigawatts=en;exports.toISOString=Bc;exports.toInches=Gc;exports.toInteger=Tc;exports.toKA=Ux;exports.toKV=Gh;exports.toKW=Nh;exports.toKelvin=Ua;exports.toKiloamps=Go;exports.toKilohms=Oa;exports.toKilometers=Ko;exports.toKilovolts=an;exports.toKilowatts=Jo;exports.toLowerCase=Ya;exports.toMA=_x;exports.toMV=zh;exports.toMW=Sh;exports.toMWh=Ba;exports.toMegawatts=Qo;exports.toMegohms=Wa;exports.toMeters=Wo;exports.toMiles=Zo;exports.toMilliamps=Ho;exports.toMillimeters=Hc;exports.toMilliohms=rn;exports.toMillivolts=nn;exports.toNauticalMiles=th;exports.toOhms=Gr;exports.toOnOff=Nc;exports.toPercentage=Rc;exports.toRelativeTime=Ac;exports.toScientificNotation=Ic;exports.toSecret=qc;exports.toSentenceCase=Ja;exports.toTemperature=ja;exports.toTitleCase=Qa;exports.toTrueFalse=wc;exports.toUpperCase=Xa;exports.toV=Hh;exports.toVolts=Or;exports.toW=Ch;exports.toWatts=Hr;exports.toWh=jo;exports.toYards=Uo;exports.tokWh=qo;exports.truncateEnd=ii;exports.truncateMiddle=ni;exports.truncateStart=ai;exports.ucFirst=ti;exports.useChartContext=ft;exports.useColorMode=Te;exports.useComponentFormatter=Vx;exports.useDebounce=$r;exports.useInputFocus=Ze;exports.useLocalStorage=Ta;exports.useNotice=Pl;exports.yardsToMeters=ch;//# sourceMappingURL=index.cjs.map
|
|
76
|
+
`}})]})}var qr={prefix:String(Math.round(Math.random()*1e10)),current:0},Ai=ut__namespace.default.createContext(qr),Sd=ut__namespace.default.createContext(false);var wd=!!(typeof window<"u"&&window.document&&window.document.createElement),hn=new WeakMap;function Pd(e=false){let t=ut.useContext(Ai),r=ut.useRef(null);if(r.current===null&&!e){var o,n;let a=(n=ut__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=hn.get(a);i==null?hn.set(a,{id:t.current,state:a.memoizedState}):a.memoizedState!==i.state&&(t.current=i.id,hn.delete(a));}r.current=++t.current;}return r.current}function kd(e){let t=ut.useContext(Ai);t===qr&&!wd&&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=Pd(!!e),o=t===qr&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${o}-${r}`}function Td(e){let t=ut__namespace.default.useId(),[r]=ut.useState($r()),o=r||process.env.NODE_ENV==="test"?"react-aria":`react-aria${qr.prefix}`;return e||`${o}-${t}`}typeof ut__namespace.default.useId=="function"?Td:kd;function Rd(){return false}function Ld(){return true}function Fd(e){return ()=>{}}function $r(){return typeof ut__namespace.default.useSyncExternalStore=="function"?ut__namespace.default.useSyncExternalStore(Fd,Rd,Ld):ut.useContext(Sd)}var Bd=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Md=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function vn(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 Bd.has(r.script)}let t=e.split("-")[0];return Md.has(t)}var Id=Symbol.for("react-aria.i18n.locale");function Li(){let e=typeof window<"u"&&window[Id]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e]);}catch{e="en-US";}return {locale:e,direction:vn(e)?"rtl":"ltr"}}var Cn=Li(),gr=new Set;function Ri(){Cn=Li();for(let e of gr)e(Cn);}function Fi(){let e=$r(),[t,r]=ut.useState(Cn);return ut.useEffect(()=>(gr.size===0&&window.addEventListener("languagechange",Ri),gr.add(r),()=>{gr.delete(r),gr.size===0&&window.removeEventListener("languagechange",Ri);}),[]),e?{locale:"en-US",direction:"ltr"}:t}var Od=ut__namespace.default.createContext(null);function Nn(){let e=Fi();return ut.useContext(Od)||e}var Sn=new Map;function wn(e){let{locale:t}=Nn(),r=t+(e?Object.entries(e).sort((n,a)=>n[0]<a[0]?-1:1).join():"");if(Sn.has(r))return Sn.get(r);let o=new Intl.Collator(t,e);return Sn.set(r,o),o}function _r(e){let t=wn({usage:"search",...e}),r=ut.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=ut.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=ut.useCallback((a,i)=>{if(i.length===0)return true;a=a.normalize("NFC"),i=i.normalize("NFC");let l=0,s=i.length;for(;l+s<=a.length;l++){let d=a.slice(l,l+s);if(t.compare(i,d)===0)return true}return false},[t]);return ut.useMemo(()=>({startsWith:r,endsWith:o,contains:n}),[r,o,n])}var br=new Map,Me=(e,t="#000000")=>{if(typeof window>"u")return t;let r=e.startsWith("var(")?e.slice(4,-1):e.startsWith("--")?e:`--${e}`;if(!e.startsWith("--")&&!e.startsWith("var(")&&!r.startsWith("--color-")&&(r=`--color-${r.slice(2)}`),br.has(r))return br.get(r);try{let o=document.body||document.documentElement,a=getComputedStyle(o).getPropertyValue(r).trim();if(a)return br.set(r,a),a;let i=document.createElement("div");i.style.color=`var(${r})`,document.body.appendChild(i);let l=getComputedStyle(i).color;return document.body.removeChild(i),l&&l!=="rgb(0, 0, 0)"?(br.set(r,l),l):t}catch(o){return console.warn(`Failed to resolve color for ${e}:`,o),t}},It=()=>{br.clear();},xr=()=>{let e=[];for(let t=1;t<=6;t++){let r=Me(`--color-viz-categorical-${t}`);r&&e.push(r);}return e.length===0?Bi():e},Bi=()=>["#444ae1","#10b981","#f59e0b","#ef4444","#8b5cf6","#06b6d4","#ec4899","#f97316","#14b8a6","#6366f1"],kn=()=>Me("--color-viz-default","#444ae1"),Gd=(e,t)=>{let r={},o=xr();return e.forEach((n,a)=>{t&&t[n]?r[n]=t[n]:r[n]=o[a%o.length];}),r};var Mi=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},Wd=e=>Mi(e)?Me("--text-body","#333333"):Me("--neutral-white","#ffffff"),Di=(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()},Ei=e=>{let t=xr(),r={};return e.forEach((o,n)=>{r[o]=t[n%t.length];}),r};var Tn=(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)},An=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]},Ii=(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},Vi=(e="viridis")=>{let t=`viz-sequential-${e}`,r=[];for(let o=1;o<=10;o++){let n=`${t}-${o}`,a=Me(n);r.push(a);}return r},zi=(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}`,l=Me(i);n.push(l);}return n};var Ln=ut.createContext({colorMode:"light",isDarkTheme:false,toggleTheme:()=>{}}),Re=()=>ut.useContext(Ln);function Rn(){if(typeof window>"u")return "light";let e=localStorage.getItem("theme");return e==="dark"||e==="light"?e:document.body.classList.contains("theme-dark")||document.documentElement.classList.contains("theme-dark")||window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}var Hi=({children:e})=>{let[t,r]=ut.useState(Rn),o=t==="dark";ut.useEffect(()=>{It();let a=()=>{let c=Rn();c!==t&&r(c);};a();let i=setTimeout(a,100),l=window.matchMedia("(prefers-color-scheme: dark)"),s=c=>{localStorage.getItem("theme")||(It(),r(c.matches?"dark":"light"));},d=()=>{let c=Rn();c!==t&&(It(),r(c));};l.addEventListener("change",s);let p=new MutationObserver(d);return p.observe(document.body,{attributes:true,attributeFilter:["class"]}),p.observe(document.documentElement,{attributes:true,attributeFilter:["class"]}),()=>{clearTimeout(i),l.removeEventListener("change",s),p.disconnect();}},[t]);let n=ut.useCallback(()=>{r(a=>{let i=a==="light"?"dark":"light";return localStorage.setItem("theme",i),i==="dark"?document.body.classList.add("theme-dark"):document.body.classList.remove("theme-dark"),It(),i});},[]);return jsxRuntime.jsx(Ln.Provider,{value:{colorMode:t,isDarkTheme:o,toggleTheme:n},children:e})};function ce(e=false){return `${e?"outline outline-1 outline-border-input focus:outline-2 focus:outline-border-focus focus: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 focus-visible:outline focus-visible:outline-2 focus-visible:outline-border-focus 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 q(e,t){return reactAriaComponents.composeRenderProps(e,r=>tailwindMerge.twMerge(t,r))}var X={sm:{text:"text-[length:var(--control-text-sm)]",height:"h-[var(--control-sm-height)]",padding:"px-[var(--control-padding-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)]",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)]",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)]",gap:"gap-[var(--control-gap-xl)]"}};function Ze(){let[e,t]=ut__namespace.default.useState(false),r=ut__namespace.default.useCallback((n,a)=>{t(true),a?.(n);},[]),o=ut__namespace.default.useCallback((n,a)=>{t(false),a?.(n);},[]);return {isFocused:e,handleFocus:r,handleBlur:o}}function qe({children:e,className:t}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("relative w-full",t),children:e})}function Gi({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-1/2 -translate-y-1/2 transform text-text-muted hover:text-text-body",r),"aria-label":"Clear input",onMouseDown:o=>{o.preventDefault(),o.stopPropagation();},children:jsxRuntime.jsx(C,{name:"X",size:t==="sm"?16:20})})}function Vt(e){let{isInvalid:t,isDisabled:r,isFocused:o}=e,n="border rounded-[var(--control-border-radius)] ";return r?`${n} border-border-muted focus:outline-none`:t&&o?`${n} border-feedback-error-border outline-[1.5px] outline-[var(--control-focus-ring-color-error)]`:t?`${n} border-feedback-error-border`:o?`${n} !outline-[1.5px] !outline-[var(--control-focus-ring-color)] ![--tw-outline-style:solid]`:`${n}`}function eo(e){return e.isDisabled?"bg-background-muted":e.transparent?"bg-transparent":"bg-background-input"}function Je(e){let{isInvalid:t,isDisabled:r,isFocused:o,transparent:n,size:a="md",className:i}=e;return tailwindMerge.twMerge("w-full",Vt({isInvalid:t,isDisabled:r,isFocused:o}),eo({transparent:n,isDisabled:r}),X[a].text,X[a].height,X[a].padding,i)}function hr(e){let{size:t="md",isFocusWithin:r,isInvalid:o,isDisabled:n,transparent:a,className:i}=e;return tailwindMerge.twMerge("group flex items-center rounded-sm overflow-hidden",eo({transparent:a,isDisabled:n}),X[t].height,Vt({isFocused:r,isInvalid:o,isDisabled:n}),i)}function te({children:e,size:t="md",tooltip:r,isRequired:o,className:n,htmlFor:a}){return jsxRuntime.jsxs("label",{htmlFor:a,className:tailwindMerge.twMerge(X[t].text,"!text-text-caption flex items-center gap-1",n),children:[e,o&&jsxRuntime.jsx("span",{children:"*"}),r&&jsxRuntime.jsx("span",{className:"text-text-muted",children:jsxRuntime.jsx(C,{name:"Info",size:t==="sm"?16:20})})]})}function ae({size:e="md",className:t,children:r,...o}){return jsxRuntime.jsx("div",{...o,className:tailwindMerge.twMerge("leading-[2.25] text-text-muted",X[e].text,t),children:r})}function $({children:e,size:t="md",className:r}){return jsxRuntime.jsx("div",{role:"alert",className:tailwindMerge.twMerge(X[t].text,"text-feedback-error-text",r),children:e})}function Wi({size:e="md",isInvalid:t,isDisabled:r,isFocused:o,transparent:n,className:a,...i}){return jsxRuntime.jsx("input",{className:Je({isInvalid:t,isDisabled:r,isFocused:o,transparent:n,size:e,className:a}),...i})}function to(e){let{children:t,...r}=e;return jsxRuntime.jsx("div",{...r,className:hr(e),children:typeof t=="function"?t(e):t})}var eu={sm:"py-1",md:"py-2",lg:"py-3",xl:"py-4"},tu={sm:"text-controlElementSm",md:"text-controlElementMd",lg:"text-controlElementLg",xl:"text-controlElementXl"};function mt({size:e="md",className:t,...r}){return jsxRuntime.jsx(reactAriaComponents.ListBoxItem,{...r,className:tailwindMerge.twMerge("flex cursor-default items-center gap-2 rounded-sm px-3 text-text-body outline-none data-[focused]:bg-background-hover data-[selected]:bg-background-selected data-[selected]:font-medium",eu[e],tu[e],t)})}function lu({isEntering:e,isExiting:t,className:r=""}){let o=["bg-white","dark:bg-zinc-900/70","dark:backdrop-blur-2xl","dark:backdrop-saturate-200","forced-colors:bg-[Canvas]","shadow-md","rounded-md","overflow-hidden","bg-clip-padding","border","border-gray-100","dark:border-white/5","dark:text-zinc-300"].join(" "),n=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(" "):"",a=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 [o,n,a,r].filter(Boolean).join(" ")}function ft({children:e,showArrow:t,className:r,...o}){let a=reactAriaComponents.useSlottedContext(reactAriaComponents.PopoverContext)?.trigger==="SubmenuTrigger",i=t?12:8;return i=a?i-6:i,jsxRuntime.jsxs(reactAriaComponents.Popover,{offset:i,...o,className:reactAriaComponents.composeRenderProps(r,(l,s)=>lu({...s,className:l})),children:[t&&jsxRuntime.jsx(reactAriaComponents.OverlayArrow,{className:"group",children:jsxRuntime.jsx("svg",{width:12,height:12,viewBox:"0 0 12 12",className:"block fill-white stroke-black/10 stroke-1 group-placement-left:-rotate-90 group-placement-right:rotate-90 group-placement-bottom:rotate-180 dark:fill-[#1f1f21] dark:stroke-zinc-600 forced-colors:fill-[Canvas] forced-colors:stroke-[ButtonBorder]",children:jsxRuntime.jsx("path",{d:"M0 0 L6 6 L12 0"})})}),e]})}var hu={sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6",xl:"h-7 w-7"},yu={sm:"pl-7",md:"pl-9",lg:"pl-10",xl:"pl-12"},Ki={sm:"py-1",md:"py-2",lg:"py-3",xl:"py-4"};function vu(){let e=ut__namespace.default.useContext(reactAriaComponents.ComboBoxStateContext);return jsxRuntime.jsx(reactAriaComponents.Button,{slot:null,className:"clear-button","aria-label":"Clear",onPress:()=>e?.setSelectedKey(null),children:"\u2715"})}var En=(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 Cu(e,t,r){try{let o=e.url.replace("{q}",t),n=new URLSearchParams;e.extraParams&&Object.entries(e.extraParams).forEach(([s,d])=>{n.append(s,d.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 l=await i.json();return {items:e.transformResponse(l)}}catch(o){console.error("Error in REST request:",o);let n=o instanceof Error?o.message:"Unknown error occurred";return {items:[],error:n}}}async function Nu(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,l)=>i?.[l],a)),{items:e.transformResponse(a)}}catch(o){console.error("Error in GraphQL request:",o);let n=o instanceof Error?o.message:"Unknown error occurred";return {items:[],error:n}}}function ro({label:e,staticItems:t=[],sections:r,selectedKey:o,defaultSelectedKey:n,onSelectionChange:a,requestConfig:i,defaultFilter:l,placeholder:s,errorMessage:d,description:p,size:c="md",tooltip:u,isRequired:m,isDisabled:g,isInvalid:f,validationResult:h,showErrors:x=true,renderItem:S,renderLeftIcon:w,renderSection:F,autoFocus:A=false}){let B=ut__namespace.default.useRef(null),[M,v]=ut__namespace.default.useState(),[T,R]=ut.useState(()=>En(o||n,t,r)),[E,b]=ut.useState(false),I=Wr(T),{contains:J}=_r({sensitivity:"base"}),[z,re]=ut.useState(),j=X[c].text,se=X[c].height,k=null;ut.useEffect(()=>{A&&b(true);},[A]),ut.useEffect(()=>{let D=()=>{B.current&&v(B.current.offsetWidth);};return D(),window.addEventListener("resize",D),()=>window.removeEventListener("resize",D)},[]),ut.useEffect(()=>{k&&k.setFilterText(I);},[I,k]),i&&(k=reactStately.useAsyncList({async load({signal:D,filterText:L=""}){if(!i.url||i.shouldLoad&&!i.shouldLoad(L))return {items:[]};try{let O;return i.requestType==="GraphQL"?O=await Nu(i,L,D):O=await Cu(i,L,D),re(O.error),{items:O.items}}catch(O){return console.error("Error loading items:",O),re(O instanceof Error?O.message:"Unknown error occurred"),{items:[]}}},initialFilterText:""})),I===""&&(k=null);let W=D=>{let L=En(D,t,r);R(L),a&&a(D);},Z=D=>{R(D);let L=En(o,t,r);o!=null&&D!==L&&a&&a(null);};return jsxRuntime.jsx(reactAriaComponents.ComboBox,{onSelectionChange:W,selectedKey:o||void 0,defaultSelectedKey:n||void 0,defaultItems:r?r.flatMap(D=>D.items):t,items:k?k.items:void 0,className:q("group flex flex-col","w-full"),menuTrigger:"focus",isDisabled:g,isInvalid:f||!!d,inputValue:T,onInputChange:Z,autoFocus:A,defaultFilter:l||J,"aria-label":e||s||"Autocomplete",children:D=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(te,{size:c,tooltip:u,isRequired:m,children:e}),jsxRuntime.jsxs(reactAriaComponents.Group,{ref:B,className:hr({size:c,isInvalid:f||!!d,isDisabled:g,isFocusWithin:E||D.isOpen,className:"w-full cursor-pointer"}),"aria-label":e||s||"Autocomplete",style:{position:"relative"},children:[w?jsxRuntime.jsx("div",{className:"absolute left-3",children:w(!!k?.isLoading)}):jsxRuntime.jsx(C,{name:"MagnifyingGlass",className:`${hu[c]} absolute left-3 text-inherit`}),jsxRuntime.jsx(reactAriaComponents.Input,{className:`flex-1 min-w-0 border-none pr-3 outline-0 placeholder:text-text-placeholder ${yu[c]} ${j} ${se} ${g?"bg-background-muted":"bg-background-input"}`,placeholder:s,disabled:g,onFocus:()=>b(true),onBlur:()=>b(false)}),T&&!g&&jsxRuntime.jsx(vu,{}),jsxRuntime.jsx(reactAriaComponents.Button,{className:`px-2 text-text-body ${j} ${se} ${g?"bg-background-muted":"bg-background-input"}`,"aria-label":"Toggle menu",isDisabled:g,children:({isPressed:L})=>jsxRuntime.jsx(C,{name:L?"CaretUp":"CaretDown",className:"h-4 w-4"})})]}),p&&jsxRuntime.jsx(ae,{size:c,children:p}),x&&z&&jsxRuntime.jsx($,{size:c,className:"text-feedback-error-text",children:z}),x&&typeof d=="string"&&jsxRuntime.jsx($,{size:c,className:"text-feedback-error-text",children:d}),x&&typeof d=="function"&&h&&jsxRuntime.jsx($,{size:c,className:"text-feedback-error-text",children:d(h)}),jsxRuntime.jsx(ft,{className:"bg-background-input shadow-xl border border-border-input/20 backdrop-blur-sm ring-1 ring-black/5",style:{minWidth:M?`${M}px`:void 0},children:jsxRuntime.jsx(reactAriaComponents.ListBox,{className:`max-h-[300px] overflow-auto bg-background-input outline-none ${j}`,children:r?r.map(L=>{let O=L.items.map(y=>jsxRuntime.jsx(mt,{id:y.id,textValue:y.name,size:c,className:`flex cursor-default items-center gap-2 rounded-sm px-3 ${Ki[c]} text-text-body outline-none data-[focused]:bg-background-hover data-[selected]:bg-background-selected data-[selected]:font-medium`,children:S?S(y):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[y.name,jsxRuntime.jsx(C,{name:"X",className:"ml-auto h-4 w-4 text-text-muted opacity-0 data-[focused]:opacity-100 data-[selected]:opacity-100"})]})},y.id));return F?F(L,O):jsxRuntime.jsxs(reactAriaComponents.ListBoxSection,{children:[jsxRuntime.jsx(reactAriaComponents.Header,{className:"px-3 py-1 text-sm font-bold text-text-muted",children:L.name}),O]},L.name)}):L=>jsxRuntime.jsx(mt,{id:L.id,textValue:L.name,size:c,className:`flex cursor-default items-center gap-2 rounded-sm px-3 ${Ki[c]} text-text-body outline-none data-[focused]:bg-background-hover data-[selected]:bg-background-selected data-[selected]:font-medium`,children:S?S(L):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[L.name,jsxRuntime.jsx(C,{name:"X",className:"ml-auto h-4 w-4 text-text-muted opacity-0 data-[focused]:opacity-100 data-[selected]:opacity-100"})]})},L.id)})})]})})}function Xi({src:e,alt:t,firstName:r,lastName:o,fullName:n,onClick:a,size:i="md",shape:l="circle",variant:s="user",className:d,status:p,bordered:c=false}){let u={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"},m={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"},g={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"},f={online:"bg-feedback-success-background border-feedback-success-border",offline:"bg-text-muted border-border-muted",away:"bg-feedback-warning-background border-feedback-warning-border",busy:"bg-feedback-error-background border-feedback-error-border"},h={user:"bg-action-primary/10 text-action-primary",team:"bg-feedback-info-background text-feedback-info-text",organization:"bg-feedback-success-background text-feedback-success-text"},x=l==="circle"?"rounded-full":"rounded-md",S=tailwindMerge.twMerge("relative inline-flex items-center justify-center overflow-hidden transition-opacity",u[i],x,a&&"cursor-pointer hover:opacity-80",c&&"ring-2 ring-background-surface",d),F=(()=>{if(r||o){let M=r?.[0]||"",v=o?.[0]||"";return (M+v).toUpperCase()}if(n){let M=n.split(" "),v=M[0]?.[0]||"",T=M[M.length-1]?.[0]||"";return v===T?v.toUpperCase():(v+T).toUpperCase()}return ""})(),A=()=>{let M={xs:14,sm:16,md:20,lg:24,xl:32}[i];switch(s){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})}},B=()=>e?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("img",{src:e,alt:t||n||"Avatar",className:"h-full w-full object-cover",style:{fontSize:0}}),jsxRuntime.jsx("div",{className:"absolute inset-0 flex items-center justify-center -z-10",children:F?jsxRuntime.jsx("span",{className:"font-semibold",children:F}):A()})]}):F?jsxRuntime.jsx("span",{className:"font-semibold",children:F}):A();return jsxRuntime.jsxs("div",{className:"relative inline-block",children:[jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(S,e?"":h[s]),onClick:a,role:a?"button":void 0,tabIndex:a?0:void 0,children:B()}),p&&jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("absolute border-2 border-background-surface",x,m[i],g[i],f[p]),"aria-label":`Status: ${p}`})]})}var Tu={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",secondary:"bg-action-secondary/10 text-action-secondary",neutral:"bg-background-muted text-text-muted"},Au={sm:"px-2 py-1.5 text-xs",md:"px-3 py-2 text-sm",lg:"px-3.5 py-2.5 text-base"},Ru={pill:"rounded-full",rounded:"rounded-lg",square:"rounded-sm"},Lu={sm:"w-1.5 h-1.5",md:"w-2 h-2",lg:"w-2.5 h-2.5"};function zt({children:e,variant:t="default",size:r="sm",shape:o="square",dot:n=false,dotPosition:a="left",className:i}){let l=n&&jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("rounded-full bg-current opacity-75",Lu[r]),"aria-hidden":"true"});return jsxRuntime.jsxs("span",{className:tailwindMerge.twMerge("inline-flex items-center gap-1.5 font-medium",Au[r],Ru[o],Tu[t],i),children:[n&&a==="left"&&l,e,n&&a==="right"&&l]})}var zn=({href:e,children:t,className:r="",external:o=false,title:n,variant:a="default",onClick:i,asButton:l=false,onPress:s,showArrow:d=false})=>{let p=o?{target:"_blank",rel:"noopener noreferrer"}:{},m=`hover:underline hover:decoration-1 hover:underline-offset-4 cursor-pointer ${{default:"text-text-link-default hover:text-text-link-hover visited:text-text-link-default",primary:"text-action-primary hover:text-action-primary-hover visited:text-action-primary",muted:"text-text-muted hover:text-text-muted visited:text-text-muted"}[a]} ${r}`,g=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[t,d&&jsxRuntime.jsxs("span",{children:["\xA0","\u2192"]})]});return l?jsxRuntime.jsx("button",{type:"button",className:m,onClick:s,title:n,children:g}):jsxRuntime.jsx("a",{href:e||"#",className:m,...p,title:n,onClick:i,children:g})};function no(e){return jsxRuntime.jsx(reactAriaComponents.Breadcrumbs,{...e,className:tailwindMerge.twMerge("flex gap-1",e.className)})}function ao(e){let{className:t,children:r,href:o,...n}=e;return jsxRuntime.jsx(reactAriaComponents.Breadcrumb,{className:q(t,"flex items-center gap-1"),...n,children:a=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(zn,{variant:"muted",href:o,children:typeof r=="function"?r(a):r}),o&&jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-3 w-3 text-text-muted"})]})})}var Ku="flex font-medium justify-center items-center gap-2 text-center transition rounded-sm whitespace-nowrap box-border",Ju={default:"bg-neutral-black text-neutral-white hover:brightness-90 forced-colors:bg-[ButtonText] forced-colors:text-[ButtonFace] border-2 border-transparent",primary:"bg-action-primary text-neutral-white hover:brightness-90 forced-colors:bg-[ButtonText] forced-colors:text-[ButtonFace] border-2 border-transparent",secondary:"bg-transparent text-text-body border-2 border-border-muted hover:bg-text-body/5 forced-colors:border-[ButtonBorder] forced-colors:bg-[ButtonFace] forced-colors:text-[ButtonText]",ghost:"border-none text-text-body hover:bg-text-body/5 forced-colors:text-[ButtonText] forced-colors:hover:bg-[ButtonFace]",destructive:"bg-transparent text-action-destructive border-2 border-border-muted hover:bg-action-destructive/5 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-body hover:bg-text-body/5 forced-colors:text-[ButtonText] forced-colors:hover:bg-[ButtonFace] p-2 flex-shrink-0",unstyled:"bg-transparent"},qi={full:"w-full",default:"w-fit"},Uu="opacity-control-hover cursor-not-allowed pointer-events-none grayscale",Yu="opacity-100 cursor-pointer",Xu={"top-right":"-right-2 -top-2","top-left":"-left-2 -top-2","bottom-right":"-right-2 -bottom-2","bottom-left":"-left-2 -bottom-2"},Qu={primary:"bg-action-primary text-white",destructive:"bg-action-destructive text-white"};function ju(e){let{variant:t="default",size:r="md",isDisabled:o,fullWidth:n=false,isLoading:a=false}=e,i=t==="unstyled"?"":`${Ku} ${Ju[t]}`;return t!=="unstyled"&&(i+=` ${X[r].text} ${X[r].height} ${X[r].padding} ${X[r].gap}`),o||a?i+=` ${Uu}`:i+=` ${Yu}`,n?i+=` ${qi.full}`:i+=` ${qi.default}`,`${i} ${ce()}`}function K(e){let{icon:t,children:r,isLoading:o=false,loadingText:n,loadingIndicator:a,size:i="md",iconPosition:l="left",iconWeight:s,href:d,className:p,badgeNumber:c,badgeVariant:u="primary",badgePosition:m="top-right",style:g,target:f,rel:h,...x}=e,S=t?jsxRuntime.jsx(C,{name:t,className:`icon-[--control-icon-size-${i}]`,weight:s}):null,w=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[l==="left"&&S,typeof r=="function"?null:r,l==="right"&&S]}),F=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(C,{name:"CircleNotch",className:`animate-spin icon-[--control-icon-size-${i}]`,"aria-hidden":"true"})}),jsxRuntime.jsx("div",{className:"invisible","aria-hidden":"true",children:w}),n&&jsxRuntime.jsx("span",{className:"sr-only",role:"status","aria-live":"polite",children:n})]}),A=tailwindMerge.twMerge(ju(e),p,o?"aria-busy":""),B=d?{href:d,target:f,rel:h,...x}:{};if(d){let{onPress:v,onPressStart:T,onPressEnd:R,onPressChange:E,onPressUp:b,onAuxClick:I,onContextMenu:J,onDoubleClick:z,...re}=x;Object.assign(B,re);}let M=d?jsxRuntime.jsx(reactAriaComponents.Link,{...B,style:g,className:A,children:o?F:typeof r=="function"?(function(v){return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[l==="left"&&S,r(v),l==="right"&&S]})}):w}):jsxRuntime.jsx(reactAriaComponents.Button,{...x,style:g,className:A,children:o?F:typeof r=="function"?(function(v){return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[l==="left"&&S,r(v),l==="right"&&S]})}):w});return c&&c>0?jsxRuntime.jsxs("div",{className:"relative",children:[M,jsxRuntime.jsx("span",{className:`absolute ${Xu[m]} flex h-5 w-5 items-center justify-center rounded-full ${Qu[u]} text-xs`,"aria-label":`${c} items`,children:c})]}):M}function ap({isSelected:e,isDisabled:t}){let r=[ce,"w-9 h-9 text-base cursor-default rounded-full flex items-center justify-center forced-color-adjust-none"];return t?r.push("text-gray-300 dark:text-zinc-600 forced-colors:text-[GrayText]"):e?r.push("bg-blue-600 invalid:bg-red-600 text-white forced-colors:bg-[Highlight] forced-colors:invalid:bg-[Mark] forced-colors:text-[HighlightText]"):r.push("text-zinc-900 dark:text-zinc-200 hover:bg-gray-100 dark:hover:bg-zinc-700 pressed:bg-gray-200 dark:pressed:bg-zinc-600"),r.join(" ")}function io({errorMessage:e,...t}){return jsxRuntime.jsxs(reactAriaComponents.Calendar,{...t,children:[jsxRuntime.jsx(so,{}),jsxRuntime.jsxs(reactAriaComponents.CalendarGrid,{children:[jsxRuntime.jsx(lo,{}),jsxRuntime.jsx(reactAriaComponents.CalendarGridBody,{children:r=>jsxRuntime.jsx(reactAriaComponents.CalendarCell,{date:r,className:({isSelected:o,isDisabled:n})=>ap({isSelected:o,isDisabled:n})})})]}),e&&jsxRuntime.jsx(reactAriaComponents.Text,{slot:"errorMessage",className:"text-sm text-red-600",children:e})]})}function so(){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(K,{variant:"icon",slot:"previous",className:"pl-0",children:e==="rtl"?jsxRuntime.jsx(C,{name:"CaretRight","aria-hidden":true,size:t}):jsxRuntime.jsx(C,{name:"CaretLeft","aria-hidden":true,size:t})}),jsxRuntime.jsx(reactAriaComponents.Heading,{className:"text-md mx-2 flex-1 text-center font-semibold text-zinc-900 dark:text-zinc-200"}),jsxRuntime.jsx(K,{variant:"icon",slot:"next",className:"pr-0",children:e==="rtl"?jsxRuntime.jsx(C,{name:"CaretLeft","aria-hidden":true,size:t}):jsxRuntime.jsx(C,{name:"CaretRight","aria-hidden":true,size:t})})]})}function lo(){return jsxRuntime.jsx(reactAriaComponents.CalendarGridHeader,{children:e=>jsxRuntime.jsx(reactAriaComponents.CalendarHeaderCell,{className:"text-xs font-semibold text-text-caption",children:e})})}var sp={xs:"text-lg font-semibold",sm:"text-xl font-semibold",md:"text-2xl font-semibold",lg:"text-3xl font-semibold",xl:"text-4xl font-semibold"},lp={page:"h-16 leading-[62px]"};function Ee({tag:e="h1",size:t="lg",height:r,className:o="",children:n}){let a=sp[t],i=r?lp[r]:"";return jsxRuntime.jsx(e,{className:tailwindMerge.twMerge(a,i,o),children:n})}var H=({width:e,height:t,variant:r="rect",animation:o="pulse",gradient:n=false,flex:a=false,stack:i,responsive:l,delay:s=0,adjustAnimationSpeedBasedOnWidth:d=false,ariaLabel:p,className:c,"data-testid":u})=>{let[m,g]=ut.useState(s===0);if(ut.useEffect(()=>{if(s>0){let A=setTimeout(()=>g(true),s);return ()=>clearTimeout(A)}},[s]),!m)return null;let f=n?"bg-gradient-to-r from-[var(--skeleton-base)] via-[var(--skeleton-highlight)] to-[var(--skeleton-base)]":"bg-[var(--skeleton-base)]",h=d&&e?(()=>{let A=typeof e=="number"?e:parseFloat(String(e));return isNaN(A)?"":`animation-duration-[${Math.max(.8,A/100)}s]`})():"",x=o==="pulse"?`animate-pulse ${h}`:o==="wave"?`relative overflow-hidden before:absolute before:inset-0 before:bg-gradient-to-r before:from-transparent before:via-[var(--skeleton-wave)] before:to-transparent before:animate-wave ${h}`:"",S="rounded-sm";r==="circle"&&(S="rounded-full"),r==="text"&&(S="h-4 w-full rounded-sm");let w=a?"flex-1 min-w-0":"",F=l?Object.entries(l).map(([A,B])=>`${A}:w-[${B}]`).join(" "):"";return i?jsxRuntime.jsx("div",{className:"space-y-2","data-testid":u,children:i.map((A,B)=>jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(f,x,S,w,F,c),style:{width:A,height:t}},B))}):jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(f,x,S,w,F,c),style:{width:e,height:t},role:"presentation","aria-hidden":!p,"aria-label":p??void 0,"data-testid":u})},_i=({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 pp={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"},mp="rounded-lg",Gn={square:"aspect-square",video:"aspect-video",wide:"aspect-[2/1]",auto:""},fp={start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between"};function Ve({variant:e="outlined",className:t,children:r,isLoading:o=false}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-full overflow-hidden",pp[e],mp,t),"data-testid":"card",children:o?jsxRuntime.jsx("div",{className:"p-6",children:jsxRuntime.jsx(H,{width:"100%",height:200})}):r})}function es({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(H,{width:120,height:20}),jsxRuntime.jsx(H,{width:24,height:24})]}),t&&jsxRuntime.jsx(H,{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(Ee,{tag:"h3",size:"sm",className:"text-text-heading",children:e}):e}),t&&jsxRuntime.jsx("div",{className:"text-sm text-text-muted",children:t})]}),r&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:r})]})})}function ts({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",Gn[r],o),children:jsxRuntime.jsx(H,{width:"100%",height:"100%"})}):n?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-hidden",Gn[r],o),children:n}):e?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-hidden",Gn[r],o),children:jsxRuntime.jsx("img",{src:e,alt:t||"",className:"w-full h-full object-cover",loading:"lazy"})}):null}function rs({className:e,children:t,isLoading:r=false}){return r?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("px-6 py-4",e),children:jsxRuntime.jsxs("div",{className:"space-y-2",children:[jsxRuntime.jsx(H,{width:"100%",height:16}),jsxRuntime.jsx(H,{width:"80%",height:16}),jsxRuntime.jsx(H,{width:"60%",height:16})]})}):t?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("px-6 py-4 text-text-body",e),children:t}):null}function os({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(H,{width:80,height:32}),jsxRuntime.jsx(H,{width:60,height:32})]}):t?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("px-6 py-4 flex items-center gap-2",fp[r],e),children:t}):null}Ve.Header=es;Ve.Media=ts;Ve.Content=rs;Ve.Footer=os;function vp(e){return jsxRuntime.jsxs(reactAriaComponents.CheckboxGroup,{...e,className:q(e.className,"flex flex-col gap-2"),children:[jsxRuntime.jsx(te,{children:e.label}),e.children,e.description&&jsxRuntime.jsx(ae,{children:e.description}),jsxRuntime.jsx($,{children:typeof e.errorMessage=="function"?void 0:e.errorMessage})]})}function Cp({isDisabled:e}){return `flex gap-2 items-center group text-sm transition ${e?"text-text-disabled":"text-text-caption"}`}function Np({isSelected:e,isInvalid:t,isDisabled:r,isIndeterminate:o}){let n="w-5 h-5 flex-shrink-0 rounded flex items-center justify-center border-2 transition ring-offset-2 focus:ring-2 focus:ring-border-focus",a="";return r?a="border-border-muted bg-background-muted":t?a="border-feedback-error-border bg-feedback-error-background":e||o?a="bg-action-primary border-action-primary hover:bg-action-primary-hover hover:border-action-primary-hover":a="bg-background-input border-border-input hover:border-border-focus",`${n} ${a}`}var ns="w-4 h-4 text-text-onPrimary group-disabled:text-text-disabled";function Nr(e){let{children:t,...r}=e;return jsxRuntime.jsx(reactAriaComponents.Checkbox,{...r,className:reactAriaComponents.composeRenderProps(e.className,(o,n)=>`${Cp(n)} ${o||""}`),children:o=>{let{isSelected:n,isIndeterminate:a,...i}=o,l=jsxRuntime.jsx("div",{className:Np({isSelected:n,isIndeterminate:a,...i}),children:a?jsxRuntime.jsx(lucideReact.Minus,{"aria-hidden":true,className:ns}):n?jsxRuntime.jsx(lucideReact.Check,{"aria-hidden":true,className:ns}):null});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[l,typeof t=="function"?t(o):t]})}})}var Pp={default:"bg-background-muted text-text-body border border-border-muted hover:bg-background-hover",primary:"bg-action-primary/10 text-action-primary border border-action-primary/20 hover:bg-action-primary/15",secondary:"bg-background-input text-text-body border border-border-input hover:bg-background-hover"},kp={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"},Tp="opacity-75 cursor-not-allowed pointer-events-none";function is(e){let{variant:t,size:r,isDisabled:o,isClickable:n,className:a}=e;return tailwindMerge.twMerge("inline-flex items-center justify-center rounded-full font-medium transition-colors","whitespace-nowrap select-none",kp[r],X[r].text,Pp[t],n&&!o&&"cursor-pointer",o&&Tp,a)}function Ht({children:e,onRemove:t,size:r="md",variant:o="default",isRemovable:n=true,isDisabled:a=false,className:i,onClick:l}){let s=!!l&&!a,d=n&&t&&!a,p=m=>{m.stopPropagation(),m.preventDefault(),t&&!a&&t();},c=()=>{l&&!a&&l();},u=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("span",{className:"truncate",children:e}),d&&jsxRuntime.jsx("button",{type:"button",onClick:p,className:"flex-shrink-0 rounded-full p-0.5 hover:bg-black/10 transition-colors cursor-pointer","aria-label":"Remove",tabIndex:-1,children:jsxRuntime.jsx(C,{name:"X",size:r==="sm"?12:r==="md"?14:16,className:"text-current opacity-70 hover:opacity-100"})})]});return s?jsxRuntime.jsx("button",{type:"button",onClick:c,className:is({variant:o,size:r,isDisabled:a,isClickable:s,className:i}),disabled:a,children:u}):jsxRuntime.jsx("span",{className:is({variant:o,size:r,isDisabled:a,isClickable:s,className:i}),children:u})}function ls({value:e,readOnly:t=false,onChange:r,language:o="json",theme:n="github_dark",height:a,width:i="100%",className:l,lineHeight:s=19,minLines:d=3,maxLines:p=50,showLineNumbers:c=true,showGutter:u=true,fontSize:m=14,wrapEnabled:g=false}){let f=ut.useRef(null),h=ut.useMemo(()=>{if(a)return a;let x=(e.match(/\n/g)||[]).length+1;return `${Math.max(d,Math.min(x,p))*s+10}px`},[e,a,s,d,p]);return ut.useEffect(()=>{f.current?.editor&&f.current.editor.resize();},[h]),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-hidden rounded-md border border-border-input",l),style:{width:i,height:h},children:jsxRuntime.jsx(Mp__default.default,{ref:f,mode:o,theme:n,value:e,onChange:r,readOnly:t,width:"100%",height:"100%",fontSize:m,showPrintMargin:false,showGutter:u,highlightActiveLine:!t,setOptions:{useWorker:true,showLineNumbers:c,tabSize:2,enableBasicAutocompletion:!t,enableLiveAutocompletion:!t,enableSnippets:!t,showFoldWidgets:true,wrap:g},editorProps:{$blockScrolling:true}})})}var Op=({isEntering:e,isExiting:t,className:r})=>["max-w-[200px] group bg-slate-700 dark:bg-slate-600 border border-slate-800 dark:border-white/10 shadow-[inset_0_1px_0_0_theme(colors.gray.600)] dark:shadow-none text-white 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 Kn({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)=>Op({...n,className:o})),children:[jsxRuntime.jsx(reactAriaComponents.OverlayArrow,{children:jsxRuntime.jsx("svg",{width:8,height:8,viewBox:"0 0 8 8",className:"fill-slate-700 stroke-gray-800 group-placement-left:-rotate-90 group-placement-right:rotate-90 group-placement-bottom:rotate-180 dark:fill-slate-600 dark:stroke-white/10 forced-colors:fill-[Canvas] forced-colors:stroke-[ButtonBorder]",children:jsxRuntime.jsx("path",{d:"M0 0 L4 4 L8 0"})})}),t]})]})}function co({value:e,children:t,className:r,size:o="sm"}){let[n,a]=ut.useState(false),s=jsxRuntime.jsx(K,{variant:"icon",size:o,onPress:()=>{let d=e||(typeof t=="string"?t:"");navigator.clipboard.writeText(d),a(true),setTimeout(()=>{a(false);},2e3);},className:"!px-2",children:jsxRuntime.jsx(C,{name:"Copy",size:o==="sm"?14:16})});return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center gap-1",r),children:[t,n?jsxRuntime.jsx(Kn,{content:"Copied!",children:s}):s]})}var ds={duration:.5,ease:"easeInOut"},uo=ut.createContext(null),bt=()=>{let e=ut.useContext(uo);if(!e)throw new Error("useChartContext must be used within a ChartContextProvider");return e};var Gt=({data:e,color:t="#6b7280"})=>{let r=ut.useId(),o=ut.useId(),{xScale:n,yScale:a,animationSettings:i}=bt(),l=n.range(),s=a.range();return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("defs",{children:[jsxRuntime.jsxs("linearGradient",{id:r,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[jsxRuntime.jsx("stop",{offset:"50%",stopColor:t,stopOpacity:.1}),jsxRuntime.jsx("stop",{offset:"100%",stopColor:t,stopOpacity:0})]}),jsxRuntime.jsx("clipPath",{id:o,children:jsxRuntime.jsx("rect",{x:l[0],y:s[1],width:l[1]-l[0],height:s[0]-s[1]})})]}),jsxRuntime.jsx("g",{clipPath:`url(#${o})`,children:jsxRuntime.jsxs(framerMotion.motion.g,{initial:{scaleY:0},animate:{scaleY:1},transition:{duration:i.duration,ease:i.ease},style:{transformOrigin:`0 ${s[0]}px`,transformBox:"fill-box",isolation:"isolate"},children:[jsxRuntime.jsx(shape.AreaClosed,{data:e,x:d=>n(d.xValue),y:d=>a(d.yValue),yScale:a,fill:`url(#${r})`,curve:curve.curveLinear}),jsxRuntime.jsx(shape.LinePath,{data:e,x:d=>n(d.xValue),y:d=>a(d.yValue),stroke:t,strokeWidth:3,curve:curve.curveLinear})]})})]})};var Kt=({data:e,color:t="#6b7280",opacity:r=1,categoryColors:o={}})=>{let{xScale:n,yScale:a,animationSettings:i}=bt(),l=ut.useId(),s=n.range(),d=a.range(),p=[...e].sort((m,g)=>m.xValue.getTime()-g.xValue.getTime()),c=p.length>1?p[1].xValue.getTime()-p[0].xValue.getTime():15*6e4,u=Math.abs(n(new Date(p[0].xValue.getTime()+c))-n(p[0].xValue));return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("defs",{children:jsxRuntime.jsx("clipPath",{id:l,children:jsxRuntime.jsx("rect",{x:s[0],y:d[1],width:s[1]-s[0],height:d[0]-d[1]})})}),jsxRuntime.jsx("g",{clipPath:`url(#${l})`,children:jsxRuntime.jsx(framerMotion.motion.g,{initial:{scaleY:0},animate:{scaleY:1},transition:{duration:i.duration,ease:i.ease},style:{transformOrigin:`0 ${d[0]}px`,transformBox:"fill-box",isolation:"isolate"},children:p.map((m,g)=>{let f=n(m.xValue),h=a(m.yValue),x=d[0]-h,S=p[g+1],w=S?Math.abs(n(S.xValue)-f):u,F=m.category&&o[m.category]?o[m.category]:t;return jsxRuntime.jsx(shape.Bar,{x:f-w/2,y:h,width:w,height:x,fill:F,opacity:r,rx:1},m.xValue.getTime())})})})]})};var le={top:20,right:20,bottom:50,left:60};function Jt(e,t="$"){let r=(o,n)=>o==null?"-":n(o);switch(e){case "number":return {format:o=>r(o,n=>n.toLocaleString()),tickFormat:o=>r(o,n=>n.toLocaleString())};case "percent":return {format:o=>r(o,n=>`${n.toFixed(1)}%`),tickFormat:o=>r(o,n=>`${n.toFixed(0)}%`),min:0,max:100,tickInterval:20};case "kWh":return {format:o=>r(o,n=>`${(n/1e3).toFixed(1)} kWh`),tickFormat:o=>r(o,n=>`${(n/1e3).toFixed(1)}`)};case "kW":return {format:o=>r(o,n=>`${(n/1e3).toFixed(1)} kW`),tickFormat:o=>r(o,n=>`${(n/1e3).toFixed(1)}`)};case "amperes":return {format:o=>r(o,n=>`${n.toFixed(1)} A`),tickFormat:o=>r(o,n=>`${n.toFixed(1)} A`)};case "temperature":return {format:o=>r(o,n=>`${n.toFixed(1)}\xB0`),tickFormat:o=>r(o,n=>`${n.toFixed(0)}\xB0`)};case "percentageChange":return {format:o=>r(o,n=>`${n>0?"+":""}${(n*100).toFixed(1)}%`),tickFormat:o=>r(o,n=>`${n>0?"+":""}${(n*100).toFixed(0)}%`),min:-100,max:100};case "decimal":return {format:o=>r(o,n=>n.toFixed(2)),tickFormat:o=>r(o,n=>n.toFixed(1))};case "currency":return {format:o=>r(o,n=>`${t}${n.toLocaleString()}`),tickFormat:o=>r(o,n=>`${t}${n.toLocaleString()}`)};case "scientific":return {format:o=>r(o,n=>n.toExponential(2)),tickFormat:o=>r(o,n=>n.toExponential(1))};case "integer":return {format:o=>r(o,n=>Math.round(n).toLocaleString()),tickFormat:o=>r(o,n=>Math.round(n).toLocaleString())};case "logarithmic":return {format:o=>r(o,n=>n.toExponential(1)),tickFormat:o=>r(o,n=>n.toExponential(0)),min:1,tickInterval:10};case "timeDuration":return {format:o=>r(o,n=>`${Math.floor(n/60)}:${(n%60).toString().padStart(2,"0")} min`),tickFormat:o=>r(o,n=>`${Math.floor(n/60)}m`),min:0};case "compact":return {format:o=>r(o,n=>new Intl.NumberFormat("en",{notation:"compact"}).format(n)),tickFormat:o=>r(o,n=>new Intl.NumberFormat("en",{notation:"compact"}).format(n))};case "si":return {format:o=>r(o,n=>new Intl.NumberFormat("en",{notation:"compact",maximumFractionDigits:2}).format(n)),tickFormat:o=>r(o,n=>new Intl.NumberFormat("en",{notation:"compact",maximumFractionDigits:1}).format(n))};case "bytes":return {format:o=>r(o,n=>{let a=["B","KB","MB","GB","TB"],i=0,l=n;for(;l>=1024&&i<a.length-1;)l/=1024,i++;return `${l.toFixed(1)} ${a[i]}`}),tickFormat:o=>r(o,n=>{let a=["B","KB","MB","GB","TB"],i=0,l=n;for(;l>=1024&&i<a.length-1;)l/=1024,i++;return `${l.toFixed(0)} ${a[i]}`}),min:0};case "rate":return {format:o=>r(o,n=>`${n.toFixed(1)} req/sec`),tickFormat:o=>r(o,n=>`${n.toFixed(0)}/s`)};case "ordinal":return {format:o=>r(o,n=>{let a=["th","st","nd","rd"],i=n%100;return n+(a[(i-20)%10]||a[i]||a[0])}),tickFormat:o=>r(o,n=>n.toString()),min:1};case "date":return {format:o=>r(o,n=>new Intl.DateTimeFormat("en",{dateStyle:"medium"}).format(new Date(n))),tickFormat:o=>r(o,n=>new Intl.DateTimeFormat("en",{dateStyle:"short"}).format(new Date(n))),min:0};case "largeCurrency":return {format:o=>r(o,n=>`${t}${(n/1e6).toFixed(2)}M`),tickFormat:o=>r(o,n=>`${t}${(n/1e6).toFixed(0)}M`)};case "coordinates":return {format:o=>r(o,n=>`${Math.abs(n).toFixed(3)}\xB0 ${n>=0?"N":"S"}`),tickFormat:o=>r(o,n=>`${Math.abs(n).toFixed(1)}\xB0 ${n>=0?"N":"S"}`),min:-90,max:90};case "ranked":return {format:o=>r(o,n=>`Rank: ${n}`),tickFormat:o=>r(o,n=>n.toString()),min:1};default:return {format:o=>r(o,n=>n.toLocaleString()),tickFormat:o=>r(o,n=>n.toLocaleString())}}}var Un=(e,t)=>{let r=d3Array.extent(e,o=>o.xValue);return scale.scaleTime({range:[le.left,t-le.right],domain:r,nice:true})},Yn=(e,t,r)=>{let o=Jt(r),n=d3Array.min(e,s=>s.yValue)||0,a=d3Array.max(e,s=>s.yValue)||0,i=o.min!==void 0?o.min:n>=0?0:n*1.1,l=o.max!==void 0?o.max:a<=0?0:a*1.1;return scale.scaleLinear({range:[t-le.bottom,le.top],domain:[i,l],nice:true})};var am=({top:e,scale:t,width:r})=>jsxRuntime.jsx(axis.Axis,{orientation:"bottom",top:e,scale:t,numTicks:Math.min(6,Math.floor(r/100)),tickFormat:o=>{let n=o;return new Intl.DateTimeFormat("en",{month:"short",day:"numeric"}).format(n)},stroke:"#e5e7eb",tickStroke:"#e5e7eb",tickLabelProps:()=>({fill:"#6b7280",fontSize:12,textAnchor:"middle"})}),im=({left:e,scale:t,yFormatType:r})=>{let o=Jt(r);return jsxRuntime.jsx(axis.Axis,{orientation:"left",left:e,scale:t,numTicks:5,tickFormat:n=>(o.tickFormat||o.format)(n),stroke:"#e5e7eb",tickStroke:"#e5e7eb",tickLabelProps:()=>({fill:"#6b7280",fontSize:12,textAnchor:"end",dy:"0.33em"})})},wr={Bottom:am,Left:im};var dm=({items:e})=>e.length===0?null:jsxRuntime.jsx("div",{className:"flex items-center gap-4",children:e.map(t=>jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("div",{className:"h-3 w-3 rounded-sm",style:{backgroundColor:t.fill}}),jsxRuntime.jsx("span",{className:"text-sm text-gray-600 dark:text-gray-400",children:t.category})]},t.category))}),mo=({items:e,onExport:t})=>{let[r,o]=ut__namespace.default.useState(false),[n,a]=ut__namespace.default.useState(null),i=ut__namespace.default.useCallback(async l=>{let s=l;o(true),a(s);try{await t(s);}catch(d){console.error("Export failed:",d);}finally{o(false),a(null);}},[t]);return jsxRuntime.jsxs("div",{className:"mt-4 flex items-center justify-between overflow-y-hidden",children:[jsxRuntime.jsx(dm,{items:e}),jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{children:[jsxRuntime.jsxs(K,{variant:"secondary",size:"sm",isDisabled:r,children:[jsxRuntime.jsx(C,{name:"Export",size:16}),r?"Exporting...":"Export"]}),jsxRuntime.jsx(reactAriaComponents.Popover,{placement:"top end",className:"min-w-48 p-1 bg-white dark:bg-gray-800 rounded-lg shadow-xl ring-1 ring-gray-200 dark:ring-gray-700",children:jsxRuntime.jsxs(reactAriaComponents.Menu,{onAction:i,className:"outline-none",children:[jsxRuntime.jsx(reactAriaComponents.MenuItem,{id:"csv",className:"flex items-center gap-2 px-3 py-2 text-sm text-gray-700 hover:bg-gray-100 dark:text-gray-300 dark:hover:bg-gray-700 rounded cursor-pointer outline-none",isDisabled:r,children:jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(C,{name:"List",size:14}),n==="csv"?"Exporting...":"Export as CSV"]})}),jsxRuntime.jsx(reactAriaComponents.MenuItem,{id:"svg",className:"flex items-center gap-2 px-3 py-2 text-sm text-gray-700 hover:bg-gray-100 dark:text-gray-300 dark:hover:bg-gray-700 rounded cursor-pointer outline-none",isDisabled:r,children:jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(C,{name:"Code",size:14}),n==="svg"?"Exporting...":"Export as SVG"]})}),jsxRuntime.jsx(reactAriaComponents.MenuItem,{id:"png",className:"flex items-center gap-2 px-3 py-2 text-sm text-gray-700 hover:bg-gray-100 dark:text-gray-300 dark:hover:bg-gray-700 rounded cursor-pointer outline-none",isDisabled:r,children:jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(C,{name:"DownloadSimple",size:14}),n==="png"?"Exporting...":"Export as PNG"]})})]})})]})]})};function Zn(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 qn(e,t,r={},o){let n=Array.isArray(t[0])?t:[t];try{switch(e){case "csv":await pm(n,r);break;case "svg":await mm(o,r);break;case "png":await fm(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 pm(e,t){try{let r=new Map;e.forEach(s=>{s.forEach(d=>{let p=d.xValue.getTime();r.has(p)||r.set(p,d.xValue);});});let n=Array.from(r.values()).sort((s,d)=>s.getTime()-d.getTime()).map(s=>{let d={[t.xLabel||"Date"]:s.toLocaleString("en-US",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"})};return e.forEach((p,c)=>{let u=t.seriesLabels?.[c]||`Series ${c+1}`,m=p.find(g=>g.xValue.getTime()===s.getTime());d[u]=m?m.yValue:"",m?.category&&(d[`${u} Category`]=m.category);}),d}),a=um__default.default.unparse(n,{header:!0,skipEmptyLines:!0}),i=new Blob([a],{type:"text/csv;charset=utf-8;"}),l=Zn(t.filename||"chart-data","csv",t.timestamp!==!1);fileSaver.saveAs(i,l);}catch(r){throw new Error(`CSV export failed: ${r instanceof Error?r.message:"Unknown error"}`)}}async function mm(e,t){if(!e.current)throw new Error("SVG element not found");try{let o=e.current.cloneNode(!0);if(!o.querySelector("rect[data-background]")){let d=document.createElementNS("http://www.w3.org/2000/svg","rect");d.setAttribute("width",o.getAttribute("width")||"100%"),d.setAttribute("height",o.getAttribute("height")||"100%"),d.setAttribute("fill","white"),d.setAttribute("data-background","true"),o.insertBefore(d,o.firstChild);}let i=new XMLSerializer().serializeToString(o);i.includes("<?xml")||(i=`<?xml version="1.0" encoding="UTF-8"?>
|
|
77
|
+
`+i),i.includes("xmlns=")||(i=i.replace("<svg",'<svg xmlns="http://www.w3.org/2000/svg"'));let l=new Blob([i],{type:"image/svg+xml;charset=utf-8"}),s=Zn(t.filename||"chart","svg",t.timestamp!==!1);fileSaver.saveAs(l,s);}catch(r){throw new Error(`SVG export failed: ${r instanceof Error?r.message:"Unknown error"}`)}}async function fm(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);i.setAttribute("width",String(a.width)),i.setAttribute("height",String(a.height)),i.removeAttribute("transform");let l=i.getElementsByTagName("text");Array.from(l).forEach(u=>{u.style.fontFamily||(u.style.fontFamily="system-ui, -apple-system, sans-serif"),u.style.fontSize||(u.style.fontSize="12px");});let s=document.createElementNS("http://www.w3.org/2000/svg","rect");s.setAttribute("width",String(a.width)),s.setAttribute("height",String(a.height)),s.setAttribute("fill","white"),i.insertBefore(s,i.firstChild);let p=new XMLSerializer().serializeToString(i);p.includes("xmlns=")||(p=p.replace("<svg",'<svg xmlns="http://www.w3.org/2000/svg"'));let c=new Blob([p],{type:"image/svg+xml;charset=utf-8"});return o=URL.createObjectURL(c),new Promise((u,m)=>{let g=new Image,f=setTimeout(()=>{o&&URL.revokeObjectURL(o),m(new Error("Image loading timeout"));},1e4);g.onload=()=>{clearTimeout(f);try{let h=document.createElement("canvas");h.width=a.width*r,h.height=a.height*r;let x=h.getContext("2d");if(!x)throw new Error("Canvas context not available");x.imageSmoothingEnabled=!0,x.imageSmoothingQuality="high",x.scale(r,r),x.fillStyle="white",x.fillRect(0,0,a.width,a.height),x.drawImage(g,0,0,a.width,a.height),h.toBlob(S=>{if(S){let w=Zn(t.filename||"chart","png",t.timestamp!==!1);fileSaver.saveAs(S,w),u();}else m(new Error("Failed to create PNG blob"));o&&URL.revokeObjectURL(o);},"image/png",1);}catch(h){o&&URL.revokeObjectURL(o),m(h);}},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 gm(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 bm(e){return {csv:"CSV Spreadsheet",svg:"SVG Vector Image",png:"PNG Image"}[e]||"Unknown Format"}var fo=({data:e,formatType:t})=>{if(!e)return null;let r=Jt(t),o=ut__namespace.default.useRef(null),[n,a]=ut__namespace.default.useState({x:0,y:0,translate:"translate(-50%, -100%)"});ut__namespace.default.useEffect(()=>{if(!o.current)return;let s=o.current.getBoundingClientRect(),d=window.innerHeight,p=e.x,c=e.y,u=e.position==="left"?"translate(calc(-100% - 16px), -50%)":"translate(16px, -50%)";c-s.height/2<0?c=s.height/2:c+s.height/2>d&&(c=d-s.height/2),a({x:p,y:c,translate:u});},[e.x,e.y,e.position]);let i=l=>new Intl.DateTimeFormat("en",{month:"short",day:"numeric",year:"numeric"}).format(l);return jsxRuntime.jsx(framerMotion.AnimatePresence,{children:jsxRuntime.jsxs(framerMotion.motion.div,{ref:o,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-white p-4 text-sm shadow-xl ring-1 ring-gray-200 dark:bg-gray-800 dark:ring-gray-700",style:{left:n.x,top:n.y,transform:n.translate},children:[jsxRuntime.jsx("time",{className:"mb-1 font-medium text-gray-900 dark:text-gray-100",children:i(e.xValue)}),jsxRuntime.jsx("ul",{className:"list-none p-0",children:e.series.map(l=>jsxRuntime.jsxs("li",{className:"flex items-center gap-2 py-0.5",children:[jsxRuntime.jsx("div",{className:"h-2 w-2 rounded-full",style:{backgroundColor:l.color}}),jsxRuntime.jsxs("span",{className:"font-medium text-gray-700 dark:text-gray-300",children:[l.label,":"]}),jsxRuntime.jsx("span",{className:"text-gray-600 dark:text-gray-400",children:r.format(l.value)})]},l.label))})]})})};var Ut=({data:e,color:t="#6b7280",strokeWidth:r=3,strokeDasharray:o})=>{let{xScale:n,yScale:a,animationSettings:i}=bt(),l=a.range();return jsxRuntime.jsx(framerMotion.motion.g,{initial:{scaleY:0},animate:{scaleY:1},transition:{duration:i.duration,ease:i.ease},style:{transformOrigin:`0 ${l[0]}px`,transformBox:"fill-box",isolation:"isolate"},children:jsxRuntime.jsx(shape.LinePath,{data:e,x:s=>n(s.xValue),y:s=>a(s.yValue),stroke:t,strokeWidth:r,strokeDasharray:o,strokeLinecap:"round",curve:curve.curveLinear})})};var Tm=d3Array.bisector(e=>e.xValue).left,Am=()=>jsxRuntime.jsx("div",{className:"flex h-full items-center justify-center",children:jsxRuntime.jsx("p",{className:"text-gray-500",children:"No data available"})}),Rm=()=>jsxRuntime.jsxs("div",{className:"flex h-full flex-col gap-4 p-4",children:[jsxRuntime.jsx(H,{className:"h-full w-full"}),jsxRuntime.jsxs("div",{className:"flex gap-4",children:[jsxRuntime.jsx(H,{className:"h-4 w-24"}),jsxRuntime.jsx(H,{className:"h-4 w-24"})]})]}),Lm=({parentWidth:e,parentHeight:t,yFormatType:r="number",isLoading:o=false,children:n})=>{let[a,i]=ut.useState(null),l=ut.useRef(null),s=ut.useRef(0),d=ut.useMemo(()=>xr(),[]),p=ut.useMemo(()=>kn(),[]),{datasets:c,seriesMetadata:u}=ut.useMemo(()=>{let v=[],T=[],R=0,E=ut.Children.toArray(n).filter(b=>ut.isValidElement(b)&&(b.type===Gt||b.type===Ut||b.type===Kt)&&b.props.data).length;return ut.Children.forEach(n,b=>{if(ut.isValidElement(b)&&(b.type===Gt||b.type===Ut||b.type===Kt)&&b.props.data){v.push(b.props.data);let I=b.props.color||(E===1?p:d[R%d.length]);T.push({label:b.props.label||`Series ${v.length}`,color:I}),R++;}}),{datasets:v,seriesMetadata:T}},[n]),m=e,g=t-60,f=ut.useMemo(()=>c.flat(),[c]),h=ut.useMemo(()=>Un(f,m),[f,m]),x=ut.useMemo(()=>Yn(f,g,r),[f,g,r]),S=ut.useCallback(v=>{let{left:T}=l.current?.getBoundingClientRect()||{left:0},R=v.clientX-T;if(v.timeStamp-(s.current||0)<16)return;s.current=v.timeStamp;let E=h.invert(R),b=c.map((z,re)=>{if(!z||z.length===0)return null;let j=Tm(z,E,1);if(j===0)return {point:z[0],datasetIndex:re};if(j>=z.length)return {point:z[z.length-1],datasetIndex:re};let se=z[j-1],k=z[j];if(!se||!k)return null;let W=Math.abs(se.xValue.getTime()-E.getTime()),Z=Math.abs(k.xValue.getTime()-E.getTime());return {point:W<Z?se:k,datasetIndex:re}}).filter(z=>z!==null&&u[z.datasetIndex]!==void 0).map(({point:z,datasetIndex:re})=>({label:u[re].label,value:z.yValue,color:u[re].color,point:z}));if(b.length===0){i(null);return}let I=h(b[0].point.xValue),J=I>(m-le.right-le.left)/2+le.left;i({xValue:b[0].point.xValue,series:b.map(({label:z,value:re,color:j})=>({label:z,value:re,color:j})),x:I,y:x(b[0].value),position:J?"left":"right"});},[c,u,h,x,m]),w=()=>{i(null);},F={width:m,height:g,xScale:h,yScale:x,yFormatType:r,animationSettings:ds,tooltip:{data:a,show:i,hide:()=>i(null)}},A=ut.Children.map(n,(v,T)=>ut.isValidElement(v)&&(v.type===Gt||v.type===Ut||v.type===Kt)?ut__namespace.default.cloneElement(v,{...v.props,color:u[T]?.color}):v),B=u.map(v=>({category:v.label,fill:v.color})),M=ut.useCallback(async v=>{try{await qn(v,c,{xLabel:"Date",yLabel:"Value",seriesLabels:u.map(T=>T.label),timestamp:!0},l);}catch(T){console.error("Export failed:",T);}},[c,u]);return o?jsxRuntime.jsx(Rm,{}):c.length===0?jsxRuntime.jsx(Am,{}):jsxRuntime.jsx("div",{className:"relative flex h-full flex-col",children:jsxRuntime.jsxs(uo.Provider,{value:F,children:[jsxRuntime.jsxs("svg",{width:m,height:g,className:"overflow-visible",ref:l,children:[jsxRuntime.jsx("g",{children:x.ticks(5).map(v=>jsxRuntime.jsx(shape.Line,{from:{x:le.left,y:x(v)},to:{x:m-le.right,y:x(v)},stroke:"#e5e7eb",strokeWidth:1},`grid-line-${v}`))}),A,jsxRuntime.jsx(wr.Bottom,{top:g-le.bottom,scale:h,width:m-le.left-le.right}),jsxRuntime.jsx(wr.Left,{left:le.left,scale:x,yFormatType:r}),a?.series.map(v=>jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("circle",{cx:h(a.xValue),cy:x(v.value),r:8,fill:"white",stroke:v.color,strokeWidth:2,style:{transition:"all 100ms ease-out"}}),jsxRuntime.jsx("circle",{cx:h(a.xValue),cy:x(v.value),r:4,fill:v.color,style:{transition:"all 100ms ease-out"}})]},`highlight-${v.label}`)),jsxRuntime.jsx("rect",{x:le.left,y:le.top,width:m-le.left-le.right,height:g-le.top-le.bottom,fill:"transparent",style:{cursor:"crosshair"},onMouseMove:S,onMouseLeave:w})]}),jsxRuntime.jsx(fo,{data:a,formatType:r}),jsxRuntime.jsx(mo,{onExport:M,items:B})]})})},hs=responsive.withParentSize(Lm);function ra(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 ze(e="normal",t){return tailwindMerge.twMerge({high:"font-semibold text-text-body",normal:"text-text-body",low:"text-text-muted"}[e],t&&"hover:text-action-primary cursor-pointer transition-colors")}function ue(e="left",t){return tailwindMerge.twMerge("flex items-center gap-1",ra(e),t)}function bo(e,t="\u2014"){return e==null||e===""?t:String(e)}var ht={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 Oe(e="normal"){return {high:ht.lg,normal:ht.md,low:ht.sm}[e]}function Se(e,t){return typeof e=="function"?e(t):e}function ys(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-green-100 text-green-800",error:"bg-red-100 text-red-800",warning:"bg-yellow-100 text-yellow-800",info:"bg-blue-100 text-blue-800",neutral:"bg-gray-100 text-gray-800"}[e])}function vs(e){return e?"success":"neutral"}function xo(e,t=false){return t?e>0?"text-green-600":e<0?"text-red-600":"text-text-body":"text-text-body"}function Cs(e="hover"){switch(e){case "visible":return "text-action-primary underline hover:text-action-primary-hover cursor-pointer";case "hover":return "hover:underline hover:text-action-primary cursor-pointer transition-colors";case "none":return "cursor-pointer";default:return ""}}function yt(e,t,r,o="hover",n){if(!t)return e;let a=typeof t=="function"&&r?t(r):t,i=Cs(o);return jsxRuntime.jsx("a",{href:a,className:tailwindMerge.twMerge(i,n),onClick:l=>{l.metaKey||l.ctrlKey;},children:e})}function Ns({row:e,context:t,actions:r,align:o="right",size:n="sm"}){let{isLoading:a}=t;if(a)return jsxRuntime.jsx(H,{className:ht.sm});let i=r.filter(s=>!Se(s.hidden,e));if(i.length===0)return null;let l=ue(o);return jsxRuntime.jsx("div",{className:l,children:i.map(s=>{let d=Se(s.disabled,e);return s.variant==="icon"||!s.label?jsxRuntime.jsx(K,{variant:"icon",size:n,onPress:()=>{s.onClick(e);},isDisabled:d,"aria-label":s.label||s.id,children:jsxRuntime.jsx(C,{name:s.icon||"DotsThree",size:n==="sm"?16:20})},s.id):jsxRuntime.jsxs(K,{variant:s.variant||"secondary",size:n,onPress:()=>{s.onClick(e);},isDisabled:d,children:[s.icon&&jsxRuntime.jsx(C,{name:s.icon,size:n==="sm"?14:16}),s.label]},s.id)})})}function Ss({value:e,context:t,format:r="icon",trueText:o="Yes",falseText:n="No",trueIcon:a="Check",falseIcon:i="X",showFalse:l=true,align:s="center",emphasis:d="normal"}){let{isLoading:p}=t;if(p)return jsxRuntime.jsx(H,{className:Oe(d)});let c=!!e;if(!c&&!l)return jsxRuntime.jsx("div",{className:ue(s)});let u=ue(s);switch(r){case "icon":return jsxRuntime.jsx("div",{className:u,children:jsxRuntime.jsx(C,{name:c?a:i,size:16,className:c?"text-green-600":"text-gray-400"})});case "text":return jsxRuntime.jsx("div",{className:u,children:jsxRuntime.jsx("span",{className:ze(d),children:c?o:n})});case "badge":return jsxRuntime.jsx("div",{className:u,children:jsxRuntime.jsx(zt,{variant:c?"success":"neutral",size:"sm",children:c?o:n})});default:return null}}function ws({value:e,row:t,context:r,format:o="date",customFormat:n,emptyText:a="\u2014",align:i="left",emphasis:l="normal",href:s,linkBehavior:d="hover"}){let{isLoading:p}=r;if(p)return jsxRuntime.jsx(H,{className:Oe(l)});if(!e)return jsxRuntime.jsx("div",{className:ue(i,"text-text-muted"),children:a});let c=e instanceof Date?e:new Date(e);if(isNaN(c.getTime()))return jsxRuntime.jsx("div",{className:ue(i,"text-text-muted"),children:a});let u;switch(o){case "date":u=c.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"});break;case "time":u=c.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit"});break;case "datetime":u=c.toLocaleString("en-US",{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"});break;case "relative":u=Mm(c);break;case "custom":u=n?c.toLocaleString("en-US",n):c.toISOString();break;default:u=c.toLocaleDateString();}let m=ue(i,ze(l)),g=Se(s,t);return g?jsxRuntime.jsx("div",{className:m,children:yt(u,g,t,d)}):jsxRuntime.jsx("div",{className:m,children:u})}function Mm(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 Ps({value:e,row:t,context:r,format:o="number",decimals:n=0,prefix:a,suffix:i,emptyText:l="\u2014",align:s="right",emphasis:d="normal",href:p,linkBehavior:c="hover",showPositiveSign:u=false,colorCode:m=false}){let{isLoading:g}=r;if(g)return jsxRuntime.jsx(H,{className:Oe(d)});if(e==null||isNaN(Number(e)))return jsxRuntime.jsx("div",{className:ue(s,"text-text-muted"),children:l});let f=Number(e),h;switch(o){case "currency":h=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:n,maximumFractionDigits:n}).format(f);break;case "percent":h=new Intl.NumberFormat("en-US",{style:"percent",minimumFractionDigits:n,maximumFractionDigits:n}).format(f/100);break;case "compact":h=new Intl.NumberFormat("en-US",{notation:"compact",minimumFractionDigits:n>0?1:0,maximumFractionDigits:n}).format(f);break;default:h=new Intl.NumberFormat("en-US",{minimumFractionDigits:n,maximumFractionDigits:n}).format(f);}let S=`${u&&f>0?"+":""}${h}`,w=m?xo(f,true):ze(d),F=ue(s,w),A=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[a&&jsxRuntime.jsx("span",{className:"text-text-muted",children:a}),jsxRuntime.jsx("span",{children:S}),i&&jsxRuntime.jsx("span",{className:"text-text-muted",children:i})]}),B=Se(p,t);return B?jsxRuntime.jsx("div",{className:F,children:yt(A,B,t,c)}):jsxRuntime.jsx("div",{className:F,children:A})}function ks({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:ue(a),children:jsxRuntime.jsx(H,{className:"h-4 w-4 rounded"})});let l=Se(n,e),s=ue(a);return jsxRuntime.jsx("div",{className:s,children:jsxRuntime.jsx(Nr,{isSelected:r,onChange:d=>{o?.(e,d);},isDisabled:l,"aria-label":"Select row"})})}function Ts({value:e,row:t,context:r,prefix:o,suffix:n,emptyText:a="\u2014",href:i,linkBehavior:l="visible",emphasis:s="normal",truncate:d=true,align:p="left"}){let{isLoading:c}=r;if(c)return jsxRuntime.jsx(H,{className:Oe(s)});let u=bo(e,a),m=Se(i,t),g=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[o&&jsxRuntime.jsx("span",{className:"text-text-muted",children:o}),jsxRuntime.jsx("span",{className:d?"truncate":"",children:u}),n&&jsxRuntime.jsx("span",{className:"text-text-muted",children:n})]}),f=ue(p,ze(s));return m?jsxRuntime.jsx("div",{className:f,children:yt(g,m,t,l)}):jsxRuntime.jsx("div",{className:f,children:g})}var zm={sm:"sm:hidden",md:"md:hidden",lg:"lg:hidden",xl:"xl:hidden"},Om={sm:"hidden sm:grid",md:"hidden md:grid",lg:"hidden lg:grid",xl:"hidden xl:grid"};function yo(e,t){return t.accessor?typeof t.accessor=="function"?t.accessor(e):e[t.accessor]:null}function vo(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 No({row:e,columns:t,density:r,isLoading:o,onClick:n}){let a=t.filter(c=>c.mobile!==false).map(c=>{let u=c.mobile===false?null:c.mobile;return {...c,mobilePriority:u?.priority??2,mobileFormat:u?.format??"secondary",showLabel:u?.label??u?.format==="secondary",icon:u?.icon}}).sort((c,u)=>c.mobilePriority-u.mobilePriority),i=a.filter(c=>c.mobilePriority===1||c.mobileFormat==="primary"),l=a.filter(c=>c.mobilePriority===2&&c.mobileFormat!=="primary"),s=a.filter(c=>c.mobileFormat==="badge"),d={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(c=>{let u=yo(e,c);return jsxRuntime.jsx("div",{className:"font-medium text-text-body [&>*]:!justify-start [&>*]:!text-left",children:vo(u,e,c,d)},c.id)})}),s.length>0&&jsxRuntime.jsx("div",{className:"ml-2 flex flex-wrap gap-1",children:s.map(c=>{let u=yo(e,c);return jsxRuntime.jsx("div",{className:"inline-flex",children:vo(u,e,c,d)},c.id)})})]}),l.length>0&&jsxRuntime.jsx("div",{className:"space-y-1",children:l.map(c=>{let u=yo(e,c),m=c.showLabel&&c.label;return jsxRuntime.jsxs("div",{className:"flex items-center text-sm text-text-muted",children:[c.icon&&jsxRuntime.jsx(C,{name:c.icon,className:"mr-1.5 h-4 w-4 flex-shrink-0"}),m&&jsxRuntime.jsxs("span",{className:"mr-1 font-medium",children:[c.label,":"]}),jsxRuntime.jsx("span",{className:"truncate [&>*]:!justify-start [&>*]:!text-left",children:vo(u,e,c,d)})]},c.id)})})]})}function So({row:e,columns:t,density:r,isLoading:o,onClick:n}){let a=t.filter(s=>s.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((s,d)=>{let p=yo(e,s),c=d===0;return jsxRuntime.jsxs("div",{children:[!c&&jsxRuntime.jsx("div",{className:"text-xs text-text-muted",children:s.label}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(c?"font-medium text-text-body":"text-sm text-text-body","[&>*]:!justify-start [&>*]:!text-left"),children:vo(p,e,s,i)})]},s.id)})})})}function As(e="md"){return {mobile:zm[e],desktop:Om[e]}}function Rs({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 na={compact:"py-1.5 px-3 text-sm",default:"py-3 px-4 text-sm",relaxed:"py-4 px-4 text-base"},aa={left:"text-left justify-start",center:"text-center justify-center",right:"text-right justify-end"},Gm={full:"w-full",auto:"w-auto inline-block",contained:"w-full max-w-6xl mx-auto"},Wm={auto:"table-auto",fixed:"table-fixed",responsive:"table-auto"};function ia(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 Km(e,t){return t.accessor?typeof t.accessor=="function"?t.accessor(e):e[t.accessor]:null}function Jm({column:e,sortConfig:t,onSort:r,stickyHeader:o,density:n="default"}){let a=t?.columnId===e.id,i=a?t.direction:null;return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex items-center gap-1 border-b border-border-default bg-background-surface font-medium text-text-muted",na[n],aa[e.align||"left"],o&&"sticky top-0 z-10",e.sortable&&"cursor-pointer hover:bg-background-hover"),onClick:()=>e.sortable&&r(e.id),role:"columnheader","aria-sort":a?i==="asc"?"ascending":"descending":"none",style:ia(e),children:[jsxRuntime.jsx("span",{className:"truncate",children:e.label}),e.sortable&&jsxRuntime.jsx("div",{className:"flex flex-col",children:jsxRuntime.jsx(C,{name:i==="asc"?"CaretUp":i==="desc"?"CaretDown":"CaretUp",size:12,className:a?"text-text-body":"text-text-muted opacity-50"})})]})}function Um({column:e,row:t,rowIndex:r,columnIndex:o,isHovered:n,density:a="default",className:i}){let l=Km(t,e),s={isLoading:false,isHovered:n,rowIndex:r,columnIndex:o,density:a},d;if(e.cell){let p=e.cell,c=typeof e.cellProps=="function"?e.cellProps(l,t):e.cellProps;d=jsxRuntime.jsx(p,{value:l,row:t,context:s,...c});}else e.render?d=e.render(l,t,s):d=jsxRuntime.jsx("span",{className:"truncate",children:l?.toString()??""});return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex items-center border-b border-border-default",na[a],aa[e.align||"left"],i),role:"cell",style:ia(e),children:d})}function Ym({column:e,rowIndex:t,columnIndex:r,density:o="default"}){let n={isLoading:true,rowIndex:t,columnIndex:r,density:o},a;if(e.cell){let i=e.cell,l=typeof e.cellProps=="function"?e.cellProps(null,{}):e.cellProps;a=jsxRuntime.jsx(i,{value:null,row:{},context:n,...l});}else e.render?a=e.render(null,{},n):a=jsxRuntime.jsx(H,{className:"h-4 w-full max-w-[200px]"});return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex items-center border-b border-border-default",na[o],aa[e.align||"left"]),role:"cell",style:ia(e),children:a})}function Xm({columns:e,row:t,rowIndex:r,density:o="default",onClick:n}){let[a,i]=ut.useState(false),l=ut.useCallback(()=>{n&&n(t);},[n,t]);return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("contents group",n&&"cursor-pointer"),role:"row",onClick:l,onMouseEnter:()=>i(true),onMouseLeave:()=>i(false),children:e.map((s,d)=>jsxRuntime.jsx(Um,{column:s,row:t,rowIndex:r,columnIndex:d,isHovered:a,density:o,className:n?"group-hover:bg-background-hover":""},s.id))})}function Qm({columns:e,rowIndex:t,density:r="default"}){return jsxRuntime.jsx("div",{className:"contents",role:"row",children:e.map((o,n)=>jsxRuntime.jsx(Ym,{column:o,rowIndex:t,columnIndex:n,density:r},o.id))})}function Bs({columns:e,data:t,className:r,density:o="default",width:n="full",height:a,maxHeight:i,layout:l="auto",mobileRenderer:s="auto",customMobileRowRender:d,mobileBreakpoint:p="md",isLoading:c=false,loadingRowCount:u=5,stickyHeader:m=false,onRowClick:g,getRowId:f,hideHeader:h=false,onSort:x,"aria-label":S}){let[w,F]=ut.useState(null),A=ut.useMemo(()=>e.map(b=>{if(b.width)return typeof b.width=="number"?`${b.width}px`:b.width;if(b.flex)return `${b.flex}fr`;if(b.minWidth&&b.maxWidth){let I=typeof b.minWidth=="number"?`${b.minWidth}px`:b.minWidth,J=typeof b.maxWidth=="number"?`${b.maxWidth}px`:b.maxWidth;return `minmax(${I}, ${J})`}return b.minWidth?`minmax(${typeof b.minWidth=="number"?`${b.minWidth}px`:b.minWidth}, 1fr)`:b.maxWidth?`minmax(0, ${typeof b.maxWidth=="number"?`${b.maxWidth}px`:b.maxWidth})`:"1fr"}).join(" "),[e]),B=ut.useCallback(b=>{if(!e.find(z=>z.id===b)?.sortable)return;let J=null;w?.columnId===b?w.direction==="asc"?J={columnId:b,direction:"desc"}:J=null:J={columnId:b,direction:"asc"},F(J),x?.(J);},[e,w,x]),M={};a&&(M.height=typeof a=="number"?`${a}px`:a,M.overflowY="auto"),i&&(M.maxHeight=typeof i=="number"?`${i}px`:i,M.overflowY="auto");let v=tailwindMerge.twMerge(Gm[n],l==="responsive"?"overflow-x-auto":"overflow-auto",r),T=As(p),R=s!=="none",E=(b,I)=>R?s==="custom"&&d?d(b,I):jsxRuntime.jsx(s==="cards"?So:No,{row:b,columns:e,density:o,isLoading:c,onClick:g?()=>g(b):void 0}):null;return jsxRuntime.jsxs("div",{className:v,style:M,children:[jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("grid border-separate border-spacing-0",Wm[l],n==="auto"?"inline-grid w-auto":"w-full",R&&T.desktop),role:"table","aria-label":S,style:{gridTemplateColumns:A},children:[!h&&jsxRuntime.jsx("div",{className:"contents",role:"rowgroup",children:e.map(b=>jsxRuntime.jsx(Jm,{column:b,sortConfig:w,onSort:B,stickyHeader:m,density:o},b.id))}),jsxRuntime.jsx("div",{className:"contents",role:"rowgroup",children:c?Array.from({length:u}).map((b,I)=>jsxRuntime.jsx(Qm,{columns:e,rowIndex:I,density:o},`loading-${I}`)):t.length>0?t.map((b,I)=>{let J=f?f(b):`row-${I}`;return jsxRuntime.jsx(Xm,{columns:e,row:b,rowIndex:I,density:o,onClick:g},J)}):jsxRuntime.jsx("div",{className:"col-span-full py-12 text-center text-text-muted",role:"row",children:jsxRuntime.jsx("div",{role:"cell",children:"No data available"})})})]}),R&&jsxRuntime.jsx("div",{className:T.mobile,children:c?Array.from({length:u}).map((b,I)=>jsxRuntime.jsx(Rs,{density:o},`mobile-loading-${I}`)):t.length>0?t.map((b,I)=>{let J=f?f(b):`mobile-row-${I}`;return jsxRuntime.jsx("div",{children:E(b,I)},J)}):jsxRuntime.jsx("div",{className:"py-12 text-center text-text-muted",children:"No data available"})})]})}function Ms({label:e,description:t,errorMessage:r,showCalendar:o=false,...n}){let[a,i]=ut.useState(false),l=s=>{n.onChange&&s&&n.onChange(s),i(false);};return jsxRuntime.jsxs(reactAriaComponents.DateField,{...n,className:q(n.className,"flex flex-col gap-1"),children:[e&&jsxRuntime.jsx(te,{children:e}),o?jsxRuntime.jsxs(to,{className:"w-auto min-w-[208px]",children:[jsxRuntime.jsx(jt,{className:"min-w-[150px] flex-1"}),jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{isOpen:a,onOpenChange:i,children:[jsxRuntime.jsx(K,{variant:"icon",className:"mr-1 w-6 rounded outline-offset-0",children:jsxRuntime.jsx(lucideReact.CalendarIcon,{"aria-hidden":true,className:"h-4 w-4"})}),jsxRuntime.jsx(reactAriaComponents.Popover,{children:jsxRuntime.jsx(reactAriaComponents.Dialog,{className:"p-4",children:jsxRuntime.jsx(io,{value:n.value,onChange:l,minValue:n.minValue,maxValue:n.maxValue,isDisabled:n.isDisabled,isReadOnly:n.isReadOnly,isDateUnavailable:n.isDateUnavailable})})})]})]}):jsxRuntime.jsx(jt,{}),t&&jsxRuntime.jsx(ae,{children:t}),typeof r=="string"?jsxRuntime.jsx($,{children:r}):null]})}function of({isPlaceholder:e,isDisabled:t}){return ["inline box-content px-0.5 -my-0.5 rounded outline-none tabular-nums text-center transition-colors",e?"text-text-muted italic":"text-text-body",t?"text-text-disabled cursor-not-allowed":"cursor-text","hover:bg-text-body/5","data-[focused]:!outline-[1.5px] data-[focused]:!outline-[var(--control-focus-ring-color)] data-[focused]:![--tw-outline-style:solid]"].filter(Boolean).join(" ")}function jt(e){return jsxRuntime.jsx(reactAriaComponents.DateInput,{className:t=>hr({...t,className:typeof e.className=="string"?e.className:"min-w-[150px] px-2 py-1.5 text-sm flex items-center gap-0.5"}),...e,children:t=>jsxRuntime.jsx(reactAriaComponents.DateSegment,{segment:t,className:of({isPlaceholder:t.isPlaceholder,isDisabled:!t.isEditable})})})}function Zt(e){return jsxRuntime.jsx(reactAriaComponents.Dialog,{...e,className:tailwindMerge.twMerge("relative h-auto max-h-[inherit] overflow-auto outline-none [[data-placement]>&]:p-4",e.className),role:"dialog"})}function mf({selectionState:e,isDisabled:t}){let r=`${ce} w-full h-full flex items-center justify-center rounded-sm forced-color-adjust-none font-semibold`,o={none:"text-text-body group-hover:bg-gray-200 group-pressed:bg-gray-200",middle:["group-hover:bg-gray-300 forced-colors:group-hover:bg-[Highlight]","group-invalid:group-hover:bg-red-200 forced-colors:group-invalid:group-hover:bg-[Mark]","group-pressed:bg-blue-300 forced-colors:group-pressed:bg-[Highlight] forced-colors:text-[HighlightText]","group-invalid:group-pressed:bg-red-300 forced-colors:group-invalid:group-pressed:bg-[Mark]"].join(" "),cap:" group-invalid:bg-red-600 forced-colors:bg-[Highlight] forced-colors:group-invalid:bg-[Mark] text-white forced-colors:text-white !bg-neutral-black"},n=t?"text-textFaint dark:text-zinc-600 forced-colors:text-textFaint font-light":"";return [r,o[e],n].filter(Boolean).join(" ")}function wo({errorMessage:e,...t}){return jsxRuntime.jsxs(reactAriaComponents.RangeCalendar,{...t,children:[jsxRuntime.jsx(so,{}),jsxRuntime.jsxs(reactAriaComponents.CalendarGrid,{className:"w-full [&_td]:px-0",children:[jsxRuntime.jsx(lo,{}),jsxRuntime.jsx(reactAriaComponents.CalendarGridBody,{children:r=>jsxRuntime.jsx(reactAriaComponents.CalendarCell,{date:r,className:"selection-start:rounded-s-end selection-end:rounded-e-end [td:last-child_&]:rounded-e-end group h-9 w-9 cursor-default text-sm outline-none outside-month:text-gray-300 selected:bg-background-selected invalid:selected:bg-red-100 forced-colors:selected:bg-[Highlight] forced-colors:selected:text-white forced-colors:invalid:selected:bg-[Mark] [td:first-child_&]:rounded-s-full",children:({formattedDate:o,isSelected:n,isSelectionStart:a,isSelectionEnd:i,isFocusVisible:l,isDisabled:s})=>jsxRuntime.jsx("span",{className:mf({selectionState:n&&(a||i)?"cap":n?"middle":"none",isDisabled:s}),children:o})})})]}),e&&jsxRuntime.jsx(reactAriaComponents.Text,{slot:"errorMessage",className:"text-sm text-red-600",children:e})]})}function Is({label:e,description:t,errorMessage:r,...o}){return jsxRuntime.jsxs(reactAriaComponents.DateRangePicker,{...o,className:q(o.className,"group flex flex-col gap-1"),children:[e&&jsxRuntime.jsx(te,{children:e}),jsxRuntime.jsxs(to,{className:"w-auto min-w-[208px]",children:[jsxRuntime.jsx(jt,{slot:"start",className:"px-2 py-1.5 text-sm"}),jsxRuntime.jsx("span",{"aria-hidden":"true",className:"text-gray-800 group-disabled:text-gray-200 dark:text-zinc-200 group-disabled:dark:text-zinc-600 forced-colors:text-[ButtonText] group-disabled:forced-colors:text-[GrayText]",children:"\u2013"}),jsxRuntime.jsx(jt,{slot:"end",className:"flex-1 px-2 py-1.5 text-sm"}),jsxRuntime.jsx(K,{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(ae,{children:t}),typeof r=="string"?jsxRuntime.jsx($,{children:r}):null,jsxRuntime.jsx(ft,{children:jsxRuntime.jsx(Zt,{children:jsxRuntime.jsx(wo,{})})})]})}var $t=({title:e,onClose:t,hideCloseIcon:r=false,titleAlign:o="left",hasBackArrow:n=false,onBack:a,headerContent:i})=>jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("relative flex h-16 w-full items-center justify-between border-b px-4",e&&"border-b",o==="center"?"justify-center":""),children:[n&&jsxRuntime.jsx(K,{variant:"unstyled",onPress:a,className:"absolute left-4",children:jsxRuntime.jsx(C,{name:"CaretLeft","data-testid":"back-arrow"})}),i||jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[e&&jsxRuntime.jsx(Ee,{size:"xs",children:e}),t&&!r&&jsxRuntime.jsx(K,{variant:"unstyled",onPress:t,"aria-label":"Close dialog",children:jsxRuntime.jsx(C,{name:"X","data-testid":"close-button"})})]})]});var _t=class extends ut.Component{constructor(){super(...arguments);ur(this,"state",{hasError:false});ur(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(Ve,{children:[this.props.title&&jsxRuntime.jsx(Ve.Header,{title:this.props.title}),jsxRuntime.jsx(Ve.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-red-500",children:this.state.error?.message||"Something went wrong"}),jsxRuntime.jsx("button",{className:"rounded bg-blue-500 px-4 py-2 text-white hover:bg-blue-600",onClick:this.handleRetry,children:"Retry"})]})})]}):this.props.children}};var ca=({children:e,title:t,headerContent:r,isOpen:o,slideInFrom:n="right",transparentOverlay:a=false,onClose:i,className:l,primaryAction:s,secondaryAction:d,footerContent:p,contentPadding:c=true,maxWidth:u="400px"})=>{let[m,g]=ut.useState(false);if(ut.useEffect(()=>{if(o){let x=setTimeout(()=>g(true),10);return ()=>clearTimeout(x)}else g(false);},[o]),!o)return null;let f=s||d,h=f||p;return jsxRuntime.jsx(_t,{children:jsxRuntime.jsx(reactAriaComponents.ModalOverlay,{isOpen:o,onOpenChange:i,isDismissable:true,className:`fixed inset-0 z-50 ${a?"bg-transparent":"bg-black/50"}`,children:jsxRuntime.jsx(reactAriaComponents.Modal,{className:"flex justify-end",isDismissable:true,children:jsxRuntime.jsxs(Zt,{className:`fixed bottom-0 top-0 z-50 flex w-full flex-col bg-background-surface shadow-xl duration-300 h-full min-h-0 overflow-hidden dark:bg-gray-800 ${m?n==="right"?"animate-in slide-in-from-right":"animate-in slide-in-from-left":""} ${l||""}`,style:{[n==="right"?"right":"left"]:0,maxWidth:u,transform:m?void 0:n==="right"?"translateX(100%)":"translateX(-100%)"},children:[(t||r)&&jsxRuntime.jsx($t,{title:t,headerContent:r,onClose:i||(()=>{})}),jsxRuntime.jsx("div",{className:`flex-1 overflow-y-auto overscroll-contain ${c?"p-6":"p-0"}`,children:e}),h&&jsxRuntime.jsxs("div",{className:"flex h-28 w-full flex-col items-center justify-center border-t p-4",children:[p&&jsxRuntime.jsx("div",{className:"flex h-10 justify-center",children:p}),f&&jsxRuntime.jsxs("div",{className:"flex h-full w-full items-center justify-between gap-4",children:[d&&jsxRuntime.jsx(K,{size:d.size||"lg",fullWidth:true,variant:d.variant||"secondary",onPress:d.onPress,isLoading:d.isLoading,isDisabled:d.isDisabled,children:d.label}),s&&jsxRuntime.jsx(K,{size:s.size||"lg",fullWidth:true,onPress:s.onPress,isLoading:s.isLoading,isDisabled:s.isDisabled,children:s.label})]})]})]})})})})};ca.displayName="Drawer";function Hs({value:e,onChange:t,onUrlChange:r,accept:o="image/*",maxSize:n,isDisabled:a=false,onUpload:i,className:l,showPreview:s=true,placeholder:d="Drop files here or click to browse"}){let[p,c]=ut.useState(false),[u,m]=ut.useState(false),[g,f]=ut.useState(null),[h,x]=ut.useState(e),S=ut.useRef(null),w=async B=>{if(f(null),n&&B.size>n){f(`File size must be less than ${(n/1024/1024).toFixed(2)}MB`);return}if(s&&B.type.startsWith("image/")){let M=new FileReader;M.onloadend=()=>{x(M.result);},M.readAsDataURL(B);}if(i){m(true);try{let M=await i(B);x(M),r?.(M);}catch(M){f("Failed to upload file"),console.error("Upload error:",M);}finally{m(false);}}t?.(B,h);},F=B=>{let M=B.items;if(M.length>0){let v=M[0];if(v.kind==="file"){let T=v.getAsFile();T&&w(T);}}c(false);},A=()=>{x(void 0),f(null),t?.(null),r?.(""),S.current&&(S.current.value="");};return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("w-full",l),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",p?"border-action-primary bg-action-primary/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:F,onDropEnter:()=>c(true),onDropExit:()=>c(false),children:[h?jsxRuntime.jsxs("div",{className:"relative flex h-full w-full items-center justify-center p-4",children:[s&&h.startsWith("data:image")?jsxRuntime.jsx("img",{src:h,alt:"Preview",className:"max-h-48 max-w-full rounded-md object-contain"}):jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-2",children:[jsxRuntime.jsx(lucideReact.Image,{className:"h-12 w-12 text-text-muted"}),jsxRuntime.jsx("span",{className:"text-sm text-text-muted",children:"File uploaded"})]}),!a&&jsxRuntime.jsx(K,{variant:"icon",size:"sm",onPress:A,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-muted"}),jsxRuntime.jsxs("div",{className:"text-center",children:[jsxRuntime.jsx("p",{className:"text-sm text-text-body",children:d}),jsxRuntime.jsx("p",{className:"mt-1 text-xs text-text-muted",children:o==="image/*"?"PNG, JPG, GIF up to 10MB":`Accepts ${o}`})]}),jsxRuntime.jsx(reactAriaComponents.FileTrigger,{acceptedFileTypes:o.split(","),onSelect:B=>{let M=Array.from(B||[]);M.length>0&&w(M[0]);},children:jsxRuntime.jsx(K,{variant:"secondary",size:"sm",isDisabled:a,children:"Choose File"})})]}),u&&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-primary border-t-transparent"}),jsxRuntime.jsx("span",{className:"text-sm text-text-muted",children:"Uploading..."})]})})]}),g&&jsxRuntime.jsx("p",{className:"mt-2 text-sm text-feedback-error-text",children:g})]})}function Gs(e){return jsxRuntime.jsx(reactAriaComponents.Form,{...e,className:tailwindMerge.twMerge("flex flex-col gap-4",e.className)})}var Bf={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"},Mf={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"}},Df={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"},Ef={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"},If={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"},Vf={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},zf={start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},Of={row:"grid-flow-row",col:"grid-flow-col",dense:"grid-flow-dense","row-dense":"grid-flow-row-dense","col-dense":"grid-flow-col-dense"},Hf={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"},Gf={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 Ks(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 da({cols:e=1,gap:t="md",gapX:r,gapY:o,align:n="stretch",justify:a="start",flow:i="row",autoFit:l,autoFill:s,className:d,children:p}){let c=tailwindMerge.twMerge("grid",l||s?"":Ks(e,Bf,Mf),!r&&!o&&Df[t],r&&Ef[r],o&&If[o],Vf[n],zf[a],Of[i],d),u={};return l?u.gridTemplateColumns=`repeat(auto-fit, minmax(${l}, 1fr))`:s&&(u.gridTemplateColumns=`repeat(auto-fill, minmax(${s}, 1fr))`),jsxRuntime.jsx("div",{className:c,style:u,children:p})}function Js({span:e,className:t,children:r}){let o=tailwindMerge.twMerge(Ks(e,Hf,Gf),t);return jsxRuntime.jsx("div",{className:o,children:r})}da.Item=Js;function Wf(e,t){return mr({value:e,formatter:t,emptyClassName:"text-text-muted",emptyText:"\u2014"})}function Kf(e,t="upIsGood"){if(e===0)return "text-text-muted";let r=e>0;return t==="upIsGood"?r?"text-feedback-success":"text-feedback-error":r?"text-feedback-error":"text-feedback-success"}function Jf({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 l=Math.min(...i),d=Math.max(...i)-l,p=m=>d===0?20/2:18-(m-l)/d*16,c=60/Math.max(e.length-1,1),u=e.map((m,g)=>{let f=2+g*c,h=p(typeof m.y=="number"?m.y:0);return `${g===0?"M":"L"} ${f} ${h}`}).join(" ");return jsxRuntime.jsx("svg",{width:64,height:20,role:"img","aria-label":r,className:tailwindMerge.twMerge("overflow-visible",t),children:jsxRuntime.jsx("path",{d:u,fill:"none",strokeWidth:"1.5",className:"stroke-border-muted"})})}function Ys({label:e,value:t,formatter:r,delta:o,deltaPeriodLabel:n,deltaIntent:a="upIsGood",trend:i,status:l,helpText:s,size:d="md",orientation:p="vertical",loading:c,empty:u,error:m,onClick:g,className:f,renderValue:h,renderDelta:x,renderTrend:S}){let F={sm:{label:"text-xs",value:"text-base",delta:"text-xs",gap:"gap-1"},md:{label:"text-sm",value:"text-xl",delta:"text-sm",gap:"gap-2"},lg:{label:"text-base",value:"text-2xl",delta:"text-base",gap:"gap-3"}}[d],A=c?jsxRuntime.jsx(H,{className:"h-7 w-20"}):u?jsxRuntime.jsx("span",{className:"text-text-muted",children:"\u2014"}):m?jsxRuntime.jsx("span",{className:"text-feedback-error text-sm",children:typeof m=="string"?m:"Error"}):h?h(t):Wf(t,r),B=x?x(o):o!==void 0&&!c&&!u&&!m?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge(F.delta,Kf(o,a),"flex items-center gap-1"),children:[o>0&&jsxRuntime.jsx(C,{name:"ArrowUp",size:12}),o<0&&jsxRuntime.jsx(C,{name:"ArrowDown",size:12}),o===0&&jsxRuntime.jsx(C,{name:"Minus",size:12}),jsxRuntime.jsxs("span",{children:[o>0?"+":"",Math.abs(o).toFixed(1),"%"]}),n&&jsxRuntime.jsxs("span",{className:"text-text-muted",children:["\xB7 ",n]})]}):c?jsxRuntime.jsx(H,{className:"h-4 w-24"}):null,M=S?S(i):i&&i.length>0&&!c&&!m?jsxRuntime.jsx(Jf,{points:i,ariaLabel:`${e} trend`,className:u?"opacity-30":""}):c?jsxRuntime.jsx(H,{className:"h-5 w-16"}):null;return jsxRuntime.jsxs("section",{className:tailwindMerge.twMerge("flex min-w-0",p==="horizontal"?`items-center ${F.gap}`:`flex-col ${F.gap}`,g&&"cursor-pointer hover:bg-background-muted rounded-lg px-3 py-2 -mx-3 -my-2 transition-colors",f),"aria-labelledby":`kpi-${e}`,onClick:g,children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("h3",{id:`kpi-${e}`,className:tailwindMerge.twMerge(F.label,"font-medium text-text-caption truncate"),children:c?jsxRuntime.jsx(H,{className:"h-4 w-24"}):e}),s&&!c&&jsxRuntime.jsx(C,{name:"Question",size:12,className:"text-text-muted cursor-help","aria-label":"Help"})]}),jsxRuntime.jsxs("div",{className:"flex items-baseline gap-2",children:[jsxRuntime.jsx("output",{className:tailwindMerge.twMerge(F.value,"font-semibold",m?"text-feedback-error":"text-text-heading"),"aria-label":`Value: ${A}`,children:A}),l&&!c&&!m&&jsxRuntime.jsx(zt,{variant:l.tone||"neutral",size:"sm",children:l.value})]}),(B||M)&&jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[B,M]})]})}var Uf={xs:"gap-2",sm:"gap-3",md:"gap-4",lg:"gap-6",xl:"gap-8"},Yf={start:"items-start",center:"items-center",stretch:"items-stretch"};function Xf(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 pa({children:e,cols:t={base:1,sm:2,md:3,lg:4},gap:r="md",align:o="stretch",equalizeHeights:n=true,header:a,loading:i,className:l}){let s=i?ut__namespace.default.Children.map(e,d=>ut__namespace.default.isValidElement(d)&&d.type&&typeof d.type!="string"&&"displayName"in d.type?ut__namespace.default.cloneElement(d,{loading:true}):d):e;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:tailwindMerge.twMerge("grid",Xf(t),Uf[r],Yf[o],n&&"auto-rows-fr","w-full"),children:s})]})}pa.displayName="KpiGroup";function qs({items:e,renderItem:t,selectedId:r,onSelect:o,onHoverChange:n,isLoading:a=false,error:i=null,emptyMessage:l="No results found.",variant:s="relaxed",showDividers:d=true,"aria-label":p,className:c="",style:u}){let[m,g]=ut.useState(null),f=ut.useRef(null),h=ut.useRef(new Map),x=ut.useCallback((T,R)=>{o?.(T,R);},[o]),S=ut.useCallback((T,R)=>{g(T),n?.(T,R);},[n]),w=ut.useCallback((T,R)=>{let E=T?.id;return typeof E=="string"&&E?E:`item-${R}`},[]),F=ut.useCallback(T=>{if(!f.current||e.length===0)return;let R=document.activeElement,E=e.findIndex((z,re)=>{let j=w(z,re),se=h.current.get(j);return se&&(se===R||se.contains(R))}),b=E;switch(T.key){case "ArrowDown":T.preventDefault(),b=E===-1?0:Math.min(E+1,e.length-1);break;case "ArrowUp":T.preventDefault(),b=E===-1?0:Math.max(E-1,0);break;case "Home":T.preventDefault(),b=0;break;case "End":T.preventDefault(),b=e.length-1;break;default:return}let I=w(e[b],b);h.current.get(I)?.focus();},[e,w]),A=["flex flex-col","bg-background-surface","focus:outline-none focus:ring-2 focus:ring-border-focus focus:ring-offset-2"],B={dense:"gap-0",relaxed:"gap-0"},M=d?"divide-y divide-border-muted":"",v=[...A,B[s],M,c].filter(Boolean).join(" ");return a?jsxRuntime.jsx("div",{ref:f,className:v,style:u,role:"listbox","aria-label":p,"aria-busy":"true","aria-live":"polite",children:jsxRuntime.jsx(_i,{count:5,className:"space-y-0",children:jsxRuntime.jsxs("div",{className:"flex items-center gap-3 px-4 py-3",children:[jsxRuntime.jsx(H,{width:16,height:16,variant:"circle"}),jsxRuntime.jsxs("div",{className:"flex-1 space-y-2",children:[jsxRuntime.jsx(H,{width:"75%",height:16}),jsxRuntime.jsx(H,{width:"50%",height:14})]}),jsxRuntime.jsx(H,{width:60,height:20})]})})}):i?jsxRuntime.jsx("div",{ref:f,className:v,style:u,role:"listbox","aria-label":p,"aria-live":"polite",children:jsxRuntime.jsx("div",{className:"p-4 text-center text-action-destructive",children:i})}):e.length===0?jsxRuntime.jsx("div",{ref:f,className:v,style:u,role:"listbox","aria-label":p,"aria-live":"polite",children:jsxRuntime.jsx("div",{className:"p-4 text-center text-text-muted",children:l})}):jsxRuntime.jsx("div",{ref:f,className:v,style:u,role:"listbox","aria-label":p,"aria-live":"polite",onKeyDown:F,tabIndex:0,children:e.map((T,R)=>{let E=w(T,R),b=r===E,I=m===E,J={id:E,role:"option","aria-selected":b,"aria-current":b?"page":void 0,tabIndex:b||r==null&&R===0?0:-1,onClick:z=>x(z,T),onMouseEnter:z=>S(z,T),onMouseLeave:z=>S(null),onFocus:z=>S(z,T),onBlur:z=>S(null),ref:z=>{z?h.current.set(E,z):h.current.delete(E);}};return jsxRuntime.jsx("div",{children:t({item:T,index:R,isSelected:b,isHovered:I,rowProps:J})},E)})})}function qf({children:e,...t}){return jsxRuntime.jsx(reactAriaComponents.ListBox,{...t,className:q(t.className,"outline-0"),children:e})}function rg(e="md"){return `flex-1 text-start data-[placeholder]:text-text-placeholder ${X[e].text}`}function og(){let e=ut__namespace.default.useCallback((r,o)=>{o?.(r);},[]),t=ut__namespace.default.useCallback((r,o)=>{o?.(r);},[]);return {handleFocus:e,handleBlur:t}}function Ao({label:e,description:t,errorMessage:r,children:o,items:n,renderItem:a,size:i="md",selectedKey:l,defaultSelectedKey:s,onSelectionChange:d,placeholder:p,showErrors:c=false,tooltip:u,isRequired:m,transparent:g,...f}){let[h,x]=ut.useState(null),[S,w]=ut.useState(null),F=l??h??s,{handleFocus:A,handleBlur:B}=og(),M=R=>{d&&R!==null&&d(R),d||x(R);},v=ut.useRef(null),T=ut.useRef(null);return jsxRuntime.jsx(reactAriaComponents.Select,{...f,selectedKey:F,defaultSelectedKey:s,onSelectionChange:M,placeholder:p,className:q(f.className,"group flex w-full flex-col"),ref:v,onOpenChange:R=>{R&&T.current?w(T.current.offsetWidth):R||v.current?.blur();},children:({isDisabled:R,isInvalid:E,isOpen:b})=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(te,{size:i,tooltip:u,isRequired:m,children:e}),jsxRuntime.jsx(qe,{children:jsxRuntime.jsx("div",{ref:T,children:jsxRuntime.jsxs(K,{variant:"unstyled",className:tailwindMerge.twMerge(Je({isInvalid:E||c&&!!r,isDisabled:R,isFocused:b,transparent:g,size:i}),"flex items-center text-start gap-4 cursor-pointer pl-[var(--control-padding-sm)]"),onFocus:I=>A(I,f.onFocus),onBlur:I=>B(I,f.onBlur),"data-open":b,children:[jsxRuntime.jsx(reactAriaComponents.SelectValue,{className:rg(i)}),jsxRuntime.jsx(C,{name:"CaretDown","aria-hidden":true,className:tailwindMerge.twMerge("h-4 w-4 text-text-body group-disabled:text-gray-200 forced-colors:text-[ButtonText] transition-transform",b&&"rotate-180")})]})})}),t&&jsxRuntime.jsx(ae,{size:i,className:"mt-3",children:t}),c&&jsxRuntime.jsx($,{size:i,className:"mt-3 text-feedback-error-text",children:typeof r=="function"&&f.validationResult?r(f.validationResult):typeof r=="string"?r:null}),jsxRuntime.jsx(ft,{className:"bg-background-input shadow-xl border border-border-input/20 backdrop-blur-sm",style:{minWidth:S?`${S}px`:void 0},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?I=>jsxRuntime.jsx(mt,{id:I.id,textValue:I.label,size:i,children:a(I)},I.id):o})})]})})}var sg=e=>{let t=Je({isInvalid:e.isInvalid,isDisabled:e.isDisabled,isFocused:e.isFocused,transparent:e.transparent,size:e.size}),r=[e.showSearchIcon?"pl-8":"pl-3",e.isClearable&&e.hasValue||e.isPassword?"pr-8":"pr-3"].join(" ");return tailwindMerge.twMerge(t,r,e.className)};function er({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,transparent:i,showSearchIcon:l,isClearable:s,onClear:d,type:p,validationResult:c,...u}){let[m,g]=ut__namespace.default.useState(false),{isFocused:f,handleFocus:h,handleBlur:x}=Ze(),S=p==="password";return jsxRuntime.jsx(reactAriaComponents.TextField,{...u,isRequired:a,className:q(u.className,"group flex flex-col"),children:({isDisabled:w,isInvalid:F})=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(te,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsxs(qe,{children:[l&&jsxRuntime.jsx("div",{className:"pointer-events-none absolute left-2 top-1/2 -translate-y-1/2 transform",children:jsxRuntime.jsx(C,{name:"MagnifyingGlass",className:"h-4 w-4 text-text-muted"})}),jsxRuntime.jsx(Wi,{size:o,disabled:w,type:S?m?"text":"password":p,value:u.value,defaultValue:u.defaultValue,placeholder:u.placeholder,onFocus:A=>h(A,u.onFocus),onBlur:A=>x(A,u.onBlur),onChange:A=>u.onChange?.(A.target.value),className:sg({isInvalid:F,isDisabled:w,isFocused:f,size:o,transparent:i,showSearchIcon:l,isClearable:s,hasValue:!!u.value,isPassword:S,className:typeof u.className=="string"?u.className:void 0})}),s&&u.value&&!w&&jsxRuntime.jsx(Gi,{onClick:()=>{d?d():u.onChange&&u.onChange("");},size:o}),S&&!w&&jsxRuntime.jsx("button",{type:"button",onClick:()=>g(!m),className:"absolute right-3 top-1/2 -translate-y-1/2 transform text-text-muted hover:text-text-body","aria-label":m?"Hide password":"Show password",onMouseDown:A=>{A.preventDefault(),A.stopPropagation();},children:jsxRuntime.jsx(C,{name:m?"EyeSlash":"Eye",size:o==="sm"?16:20,className:"text-text-body"})})]}),t&&jsxRuntime.jsx(ae,{size:o,className:"mt-3",children:t}),typeof r=="string"&&jsxRuntime.jsx($,{size:o,className:"mt-1",children:r}),typeof r=="function"&&c&&jsxRuntime.jsx($,{size:o,className:"mt-1",children:r(c)})]})})}function nl({title:e,search:t,filters:r=[],sort:o,actions:n,onClearAll:a,variant:i="spacious",className:l="",style:s}){let d=["flex flex-col gap-3","bg-background-surface","px-4 py-3"],p={compact:"px-3 py-2",spacious:"px-4 py-3"},c=[...d,p[i],l].filter(Boolean).join(" ");return jsxRuntime.jsxs("div",{className:c,style:s,children:[(e||n)&&jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e&&jsxRuntime.jsx("h2",{className:"text-lg font-semibold text-text-body truncate",children:e}),n&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:n})]}),jsxRuntime.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[jsxRuntime.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:gap-4 flex-1 min-w-0",children:[t&&jsxRuntime.jsx("div",{className:"flex-1 min-w-0 sm:max-w-sm",children:jsxRuntime.jsx(er,{value:t.value,placeholder:t.placeholder||"Search...",onChange:t.onChange,showSearchIcon:true,isClearable:!!t.value&&!!t.onClear,onClear:t.onClear,size:"sm"})}),r.length>0&&jsxRuntime.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[r.map(m=>jsxRuntime.jsxs(Ht,{variant:"secondary",size:"sm",onRemove:()=>m.onRemove(m.id),children:[m.label,": ",m.value]},m.id)),a&&jsxRuntime.jsx(K,{variant:"ghost",size:"sm",onClick:a,className:"text-text-muted hover:text-text-body",children:"Clear all"})]})]}),o&&jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("span",{className:"text-sm text-text-muted whitespace-nowrap",children:"Sort by:"}),jsxRuntime.jsx(Ao,{selectedKey:o.value,onSelectionChange:m=>o.onChange(m),size:"sm",className:"min-w-32",items:o.options.map(m=>({id:m.value,label:m.label,value:m.value})),renderItem:m=>m.label})]})]})]})}function il({id:e,title:t,subtitle:r,meta:o,leading:n,trailing:a,isSelected:i=false,isHovered:l=false,disabled:s=false,href:d,size:p="md",onClick:c,onMouseEnter:u,onMouseLeave:m,className:g="",style:f}){let h=()=>{!s&&c&&c(e);},x=()=>{!s&&u&&u(e);},S=()=>{!s&&m&&m(e);},F={sm:{container:"px-3 py-2 gap-2",title:"text-sm",subtitle:"text-xs",meta:"text-xs",subtitleSpacing:"mt-0.5",metaSpacing:"mt-1"},md:{container:"px-4 py-3 gap-3",title:"text-base",subtitle:"text-sm",meta:"text-sm",subtitleSpacing:"mt-0.5",metaSpacing:"mt-1.5"},lg:{container:"px-4 py-4 gap-3",title:"text-lg",subtitle:"text-base",meta:"text-sm",subtitleSpacing:"mt-0.5",metaSpacing:"mt-2"},xl:{container:"px-5 py-5 gap-4",title:"text-xl",subtitle:"text-base",meta:"text-base",subtitleSpacing:"mt-1",metaSpacing:"mt-2"}}[p],A=["flex items-center w-full text-left transition-all duration-200 ease-in-out",F.container,"border-l-2 border-l-transparent","rounded-sm",ce()],B=[l&&!i&&"bg-background-hover",i&&"bg-action-primary/5 border-l-action-primary shadow-sm",s&&"opacity-50 cursor-not-allowed",!s&&!i&&"hover:bg-background-hover"],M=[...A,...B,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-body font-medium truncate ${F.title}`,title:typeof t=="string"?t:void 0,children:t}),r&&jsxRuntime.jsx("div",{className:`text-text-caption truncate ${F.subtitle} ${F.subtitleSpacing}`,title:typeof r=="string"?r:void 0,children:r}),o&&jsxRuntime.jsx("div",{className:`text-text-muted ${F.meta} ${F.metaSpacing}`,children:o})]})})}),a&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:a})]});return d?jsxRuntime.jsx("a",{href:d,className:M,style:f,onMouseEnter:x,onMouseLeave:S,"aria-selected":i,"aria-current":i?"page":void 0,tabIndex:s?-1:0,children:v}):jsxRuntime.jsx("button",{type:"button",className:M,style:f,onClick:h,onMouseEnter:x,onMouseLeave:S,disabled:s,"aria-selected":i,tabIndex:s?-1:0,children:v})}function sl({header:e,children:t,footer:r,width:o="md",tone:n="neutral",elevation:a="sm",showDivider:i=true,"aria-label":l,"aria-labelledby":s,className:d="",style:p}){let c={sm:"w-64",md:"w-80",lg:"w-96",xl:"w-[28rem]","2xl":"w-[32rem]",auto:"w-auto"},u={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",c[o],u[n],m[a],i&&"border-r border-border-muted",d);return jsxRuntime.jsxs("div",{className:g,style:p,role:"complementary","aria-label":l,"aria-labelledby":s,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 cl=({className:e,size:t=24,color:r="text-action-primary"})=>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..."})});var fa=[{type:"navigation",position:"bottom-right",showCompass:true,showGeolocate:true,showResetZoom:true}];var dl="data:image/png;base64,iVBORw0KG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IokP7iJ+//S9/0JF4UWgALQSUifcPn+AvCxKcp8u7vR5XAiSC3WYDByQWZ1myzFUtOgbu577+f5ZPq/B5Pf+nAAAAAElFTkSuQmCC";function gl(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 mg="h-10 w-10 p-0 bg-background-surface hover:bg-background-hover shadow-lg border border-border";function bl(e){return tailwindMerge.twMerge(mg,e)}function rt({position:e="top-right",className:t,style:r,children:o}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(gl(e),t),style:r,children:o})}function He({icon:e,iconSize:t=20,onPress:r,isDisabled:o=false,className:n,iconClassName:a="text-text-primary",variant:i="secondary",isActive:l=false,ariaLabel:s,iconWeight:d="regular",...p}){let c=tailwindMerge.twMerge(bl(),l&&"bg-action-primary hover:bg-action-primary-hover border-action-primary",n),u=tailwindMerge.twMerge(a,l&&"text-text-onPrimary");return jsxRuntime.jsx(K,{...p,className:c,onPress:r,variant:i,size:"sm",isDisabled:o,"aria-label":s,"aria-pressed":l||void 0,type:"button",children:jsxRuntime.jsx(C,{name:e,size:t,className:u,weight:d})})}var yg=e=>[{id:"streets",name:"Streets",description:"Standard street map with traffic data",preview:e?ml:fl},{id:"satellite",name:"Satellite",description:"Aerial imagery with street labels",preview:pl},{id:"neutral",name:"Neutral",description:"Clean design with light/dark variants",preview:e?dl:ul}];function vg({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 yl({position:e="bottom-left",className:t,style:r,currentMapType:o="streets",onMapTypeChange:n,layers:a=[],onLayerToggle:i}){let{isDarkTheme:l}=Re(),s=yg(l),d=c=>{n?.(c);},p=a.filter(c=>c.legend);return jsxRuntime.jsx(rt,{position:e,className:t,style:r,children:jsxRuntime.jsx("div",{className:"relative",children:jsxRuntime.jsxs(reactAriaComponents.DialogTrigger,{children:[jsxRuntime.jsx(He,{icon:"Stack",ariaLabel:"Map layers and settings"}),jsxRuntime.jsx(reactAriaComponents.Popover,{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:jsxRuntime.jsxs("div",{className:"space-y-6",children:[jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("div",{className:"text-sm font-semibold text-text-body mb-3",children:"Map type"}),jsxRuntime.jsx("div",{className:"grid grid-cols-3 gap-3",children:s.map(c=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>d(c.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===c.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===c.id?"border-2 border-action-secondary":"border border-border-default"),children:jsxRuntime.jsx("img",{src:c.preview,alt:`${c.name} map preview`,className:"w-full h-full object-cover"})}),jsxRuntime.jsx("div",{className:"text-sm "+(o===c.id?"font-bold text-text-body":"font-normal text-text-muted"),children:c.name})]},c.id))})]}),p.length>0&&jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("div",{className:"text-sm font-semibold text-text-body mb-3",children:"Map details"}),jsxRuntime.jsx("div",{className:"space-y-2",children:p.map(c=>jsxRuntime.jsx(Nr,{isSelected:c.visible!==false,onChange:()=>i?.(c.id),children:jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[c.legend&&jsxRuntime.jsx(vg,{type:c.legend.swatch,color:c.legend.color}),jsxRuntime.jsx("span",{className:"text-sm text-text-body",children:c.legend?.label})]})},c.id))})]})]})})})]})})})}function Cl({position:e="top-right",className:t,style:r,onToggle:o,isActive:n=false}){return jsxRuntime.jsx(rt,{position:e,className:tailwindMerge.twMerge("md:hidden",t),style:r,children:jsxRuntime.jsx(He,{icon:"ListDashes",onPress:o,isActive:n,ariaLabel:n?"Hide list view":"Show list view"})})}var Sg={sm:"gap-2",md:"gap-4",lg:"gap-6"};function Ro({position:e="top-right",className:t,style:r,children:o,orientation:n="vertical",spacing:a="md"}){return jsxRuntime.jsx(rt,{position:e,style:r,children:jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex",n==="vertical"?"flex-col":"flex-row",Sg[a],t),children:o})})}function Sl({mapRef:e,position:t="bottom-right",className:r,style:o,showCompass:n=true,showGeolocate:a=true,showResetZoom:i=true,onResetZoom:l,onCompassClick:s,onGeolocateClick:d}){let[p,c]=ut.useState(false),u=ut.useRef(true);ut.useEffect(()=>()=>{u.current=false;},[]);let m=()=>{s?s():e.current&&e.current.easeTo({bearing:0,duration:500});},g=async()=>{if(!p)if(d)d();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{}c(true),navigator.geolocation.getCurrentPosition(w=>{if(!u.current)return;let{latitude:F,longitude:A}=w.coords;e.current&&e.current.flyTo({center:[A,F],zoom:15,duration:2e3}),c(false);},w=>{if(u.current){switch(console.warn("Geolocation error:",{code:w.code,message:w.message,PERMISSION_DENIED:w.PERMISSION_DENIED,POSITION_UNAVAILABLE:w.POSITION_UNAVAILABLE,TIMEOUT:w.TIMEOUT}),w.code){case w.PERMISSION_DENIED:console.warn("Location access denied. Please enable location services in your browser settings.");break;case w.POSITION_UNAVAILABLE:console.warn("Location information unavailable.");break;case w.TIMEOUT:console.warn("Location request timed out.");break;default:console.warn("Error getting location:",w.message);break}c(false);}},{enableHighAccuracy:true,timeout:1e4,maximumAge:0});}};if(!n&&!a&&!i)return null;let f=!i&&n,h=!i&&!n&&a,x=!a&&n;return jsxRuntime.jsxs(Ro,{position:t,className:r,style:o,spacing:"sm",children:[i&&jsxRuntime.jsx(He,{icon:"ArrowsOut",onPress:l,ariaLabel:"Reset zoom to show all points",className:tailwindMerge.twMerge(!(!a&&!n&&i)&&"rounded-b-none",n&&"border-b-0 lg:border-b")}),n&&jsxRuntime.jsx("div",{className:"block lg:hidden",children:jsxRuntime.jsx(He,{icon:"Compass",onPress:m,ariaLabel:"Reset map orientation",className:tailwindMerge.twMerge(!f&&"rounded-t-none border-t-0",!x&&"rounded-b-none border-b-0")})}),a&&jsxRuntime.jsx(He,{icon:p?"Spinner":"NavigationArrow",onPress:g,isDisabled:p,ariaLabel:"Go to my location",iconClassName:tailwindMerge.twMerge("text-text-primary",p&&"animate-spin"),className:tailwindMerge.twMerge(!h&&"rounded-t-none border-t-0",!h&&n&&"lg:rounded-t lg:border-t")})]})}function Tl({position:e="top-left",className:t,style:r,onSearch:o,placeholder:n="Search places...",showSearchInput:a=true}){let[i,l]=ut.useState(false),[s,d]=ut.useState(""),p=()=>{a?l(!i):o&&o("");},c=m=>{m.preventDefault(),o&&s.trim()&&(o(s.trim()),l(false));},u=m=>{m.key==="Escape"&&l(false);};return jsxRuntime.jsx(rt,{position:e,className:t,style:r,children:jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx(He,{icon:"MagnifyingGlass",onPress:p,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:c,children:jsxRuntime.jsxs("div",{className:"flex items-center space-x-2",children:[jsxRuntime.jsx("input",{type:"text",value:s,onChange:m=>d(m.target.value),onKeyDown:u,placeholder:n,className:tailwindMerge.twMerge("flex-1 px-3 py-2 text-sm rounded border","bg-background border-border text-text-primary placeholder-text-muted","focus:outline-none focus:ring-2 focus:ring-action-primary"),autoFocus:true}),jsxRuntime.jsx(K,{type:"submit",variant:"primary",size:"sm",className:"px-3 py-2",children:"Search"})]})})})]})})}var Ag={navigation:"bottom-right",layers:"bottom-left",search:"top-left",list:"top-right",custom:"top-right"};function ga(e){return e.position??Ag[e.type]}function Al(e,t,r){let o=ga(e),n=e.id??`${e.type}-${t}`;switch(e.type){case "navigation":{let a=e.showResetZoom&&r.showResetButton;return jsxRuntime.jsx(Sl,{mapRef:r.mapRef,position:o,showCompass:e.showCompass,showGeolocate:e.showGeolocate,showResetZoom:a,onResetZoom:e.onResetZoom,onCompassClick:e.onCompassClick,onGeolocateClick:e.onGeolocateClick,style:e.style,className:e.className},n)}case "layers":return jsxRuntime.jsx(yl,{position:o,currentMapType:e.currentMapType,onMapTypeChange:e.onMapTypeChange,layers:e.layers??r.layers,onLayerToggle:e.onLayerToggle,style:e.style,className:e.className},n);case "search":return jsxRuntime.jsx(Tl,{position:o,onSearch:e.onSearch,placeholder:e.placeholder,showSearchInput:e.showSearchInput,style:e.style,className:e.className},n);case "list":return jsxRuntime.jsx(Cl,{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 ba(e,t){let r=e.reduce((n,a,i)=>{let l=ga(a);return n[l]||(n[l]=[]),n[l].push({control:a,index:i}),n},{}),o=[];for(let[n,a]of Object.entries(r)){if(a.length===1){o.push(Al(a[0].control,a[0].index,t));continue}o.push(jsxRuntime.jsx(Ro,{position:n,spacing:"sm",children:a.map(({control:i,index:l})=>Al(i,l,t))},`group-${n}`));}return o}function Bo(){if(typeof process<"u"){if(process.env?.MAPBOX_ACCESS_TOKEN)return process.env.MAPBOX_ACCESS_TOKEN;if(process.env?.NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN)return process.env.NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN}if(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"){let e=({ url: (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href)) });if(e.env?.VITE_MAPBOX_ACCESS_TOKEN)return e.env.VITE_MAPBOX_ACCESS_TOKEN}throw new Error("Mapbox access token not found. Set MAPBOX_ACCESS_TOKEN, NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN, or VITE_MAPBOX_ACCESS_TOKEN in your environment.")}var xa={vector:e=>({kind:"vector",...e}),geojson:e=>({kind:"geojson",...e}),customPins:e=>({kind:"customPins",...e}),raster:e=>({kind:"raster",...e})};function ha(e){return e.kind==="vector"}function ya(e){return e.kind==="geojson"}function va(e){return e.kind==="customPins"}function Ca(e){return e.kind==="raster"}function Br(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(Lg,{spec:o,mapType:t},o.id);case "geojson":return jsxRuntime.jsx(Fg,{spec:o,mapType:t},o.id);case "customPins":return jsxRuntime.jsx(Bg,{spec:o,mapType:t},o.id);case "raster":return jsxRuntime.jsx(Mg,{spec:o},o.id);default:return console.warn("[Layers] Unknown layer kind:",o.kind),null}})})}function Lg({spec:e,mapType:t}){let{colorMode:r}=Re(),o=ut.useMemo(()=>Fl(e.style,e.renderAs,r,t),[e.style,e.renderAs,r,t]),n=ut.useMemo(()=>({visibility:e.visible===false?"none":"visible"}),[e.visible]),a={id:e.id,type:Ll(e.renderAs),"source-layer":e.sourceLayer,paint:o,layout:n};return e.filter!==void 0&&(a.filter=e.filter),e.minZoom!==void 0&&(a.minzoom=e.minZoom),e.maxZoom!==void 0&&(a.maxzoom=e.maxZoom),jsxRuntime.jsx(Gg.Source,{id:`${e.id}-source`,type:"vector",url:e.tileset,children:jsxRuntime.jsx(Gg.Layer,{...a})})}function Fg({spec:e,mapType:t}){let{colorMode:r}=Re(),o=ut.useMemo(()=>typeof e.data=="string"?null:e.data,[e.data]),n=ut.useMemo(()=>Fl(e.style,e.renderAs,r,t,o),[e.style,e.renderAs,r,t,o]),a=ut.useMemo(()=>({visibility:e.visible===false?"none":"visible"}),[e.visible]),i=ut.useMemo(()=>(typeof e.data=="string",e.data),[e.data]),l={id:`${e.id}-source`,type:"geojson",data:i};e.cluster?.enabled&&(l.cluster=true,l.clusterRadius=e.cluster.radius??50,l.clusterMaxZoom=e.cluster.maxZoom??14);let s={id:e.id,type:Ll(e.renderAs),paint:n,layout:a};return e.minZoom!==void 0&&(s.minzoom=e.minZoom),e.maxZoom!==void 0&&(s.maxzoom=e.maxZoom),jsxRuntime.jsx(Gg.Source,{...l,children:jsxRuntime.jsx(Gg.Layer,{...s})})}function Bg({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),l=e.pinProps?e.pinProps(o):{};return jsxRuntime.jsx(Gg.Marker,{longitude:a,latitude:i,anchor:"bottom",children:jsxRuntime.jsx(r,{...l})},`${e.id}-${n}`)})})}function Mg({spec:e}){let t=ut.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(Gg.Source,{...r,children:jsxRuntime.jsx(Gg.Layer,{...o})})}var ot="#666";function Ll(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 Fl(e,t,r,o,n){if(!e)return {};let a={};if(e.color){let i=Fr(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"]=Rl(e.width)),e.radius&&t==="circle"&&(a["circle-radius"]=Rl(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?Fr(e.borderColor,r,n):Fr(e.color||"#000",r,n)),t==="circle"&&e.borderWidth){a["circle-stroke-width"]=e.borderWidth;let i=e.borderColor?Fr(e.borderColor,r,n):Me(`map-${o}-border`,"#ffffff");a["circle-stroke-color"]=i;}return a}function Dg(e,t){let r=e.by,o=e.mapping,n=["match",["get",r]];for(let[a,i]of Object.entries(o))n.push(a),n.push(Fr(i));return n.push(ot),n}function Eg(e,t){let r=Di(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=Ei(r),n=["match",["get",e]];for(let[a,i]of Object.entries(o))n.push(a),n.push(i);return n.push(ot),n}function Ig(e,t="viridis",r,o){let n=Tn(r,e),a;if(o&&o!=="auto")a=o;else {if(a=An(n),n.length===0)return console.warn(`[Layers] No numeric values found for property "${e}"`),ot;console.log(`[Layers] Auto-calculated sequential scale for "${e}": ${a.min} to ${a.max}`);}let i=Vi(t),l=["interpolate",["linear"],["get",e]];return i.forEach((s,d)=>{let p=d/(i.length-1),c=a.min+p*(a.max-a.min);l.push(c,s);}),l}function Vg(e,t="redYellowBlue",r,o,n){let a=Tn(r,e),i=Ii(a,o),l;if(n&&n!=="auto")l=n;else {if(l=An(a),a.length===0)return console.warn(`[Layers] No numeric values found for property "${e}"`),ot;console.log(`[Layers] Auto-calculated diverging scale for "${e}": ${l.min} \u2190 ${i} \u2192 ${l.max}`);}let s=zi(t),d=4,p=["interpolate",["linear"],["get",e]];for(let c=0;c<=d;c++){let u=c/d,m=l.min+u*(i-l.min);p.push(m,s[c]);}for(let c=d+1;c<s.length;c++){let u=(c-d)/(s.length-1-d),m=i+u*(l.max-i);p.push(m,s[c]);}return p}function Fr(e,t,r){if(typeof e=="string")return e;if("token"in e)return Me(e.token)||e.token;if("hex"in e)return e.hex;if("by"in e){if("palette"in e){if(e.palette==="categorical")return r?Eg(e.by,r):(console.warn("[Layers] Categorical auto-assignment requires GeoJSON data (not URL-based data)"),ot);if(e.palette==="sequential")return r?Ig(e.by,e.scheme,r,e.scale):(console.warn("[Layers] Sequential palette requires GeoJSON data (not URL-based data)"),ot);if(e.palette==="diverging")return r?Vg(e.by,e.scheme,r,e.center,e.scale):(console.warn("[Layers] Diverging palette requires GeoJSON data (not URL-based data)"),ot)}if("mapping"in e)return Dg(e)}return ot}function Rl(e){return typeof e=="number"?e:"byZoom"in e?["interpolate",["linear"],["zoom"],...e.byZoom.flatMap(([t,r])=>[t,r])]:e}function Mo(){return jsxRuntime.jsx("div",{className:"absolute inset-0 z-50 bg-background-surface/90 backdrop-blur-sm","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:`
|
|
78
|
+
linear-gradient(rgba(0,0,0,0.15) 1px, transparent 1px),
|
|
79
|
+
linear-gradient(90deg, rgba(0,0,0,0.15) 1px, transparent 1px)
|
|
80
|
+
`,backgroundSize:"30px 30px"}})})})}var Ml={streets:"streets",satellite:"satellite",neutral:"neutral"};function Mr(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"}}var ka=ut__namespace.default.forwardRef(({initialViewState:e,viewState:t,onViewStateChange:r,scrollEnabled:o=true,className:n,previewMode:a=false,previewModeCta:i,onPreviewModePress:l,mapType:s="streets",layers:d=[],mapboxAccessToken:p=Bo(),transformRequest:c,isLoading:u=false,onLoad:m,controls:g="default"},f)=>{let{isDarkTheme:h}=Re(),x=ut.useRef(null),S=ut.useRef(null),[w,F]=ut.useState(false),[A,B]=ut.useState(false),[M,v]=ut.useState(false),T=ut.useRef(0),[R,E]=ut.useState(null);ut.useEffect(()=>{let y=setTimeout(()=>{w||B(true);},200);return ()=>clearTimeout(y)},[w]);let b=ut.useCallback(()=>{F(true),B(false),m?.();},[m]),I=ut.useCallback(()=>{x.current&&e&&(v(false),T.current=0,x.current.flyTo({center:[e.longitude||0,e.latitude||0],zoom:e.zoom||0,bearing:e.bearing||0,pitch:e.pitch||0,duration:1e3}));},[e]),J=ut.useMemo(()=>g===false||g===null?[]:g==="default"||g===void 0?fa:g,[g]),z=ut.useMemo(()=>{if(a)return null;let y=J.map(N=>N.type==="navigation"?{...N,onResetZoom:N.onResetZoom||I}:N);return ba(y,{mapRef:x,layers:d,showResetButton:M})},[J,x,a,d,I,M]),re=ut.useMemo(()=>d.filter(y=>y.events?.onClick||y.events?.onMouseEnter||y.events?.onMouseLeave||y.tooltip).map(y=>y.id),[d]),j=ut.useMemo(()=>{let y=new Map;return d.forEach(N=>{N.events&&y.set(N.id,N.events);}),y},[d]),se=ut.useMemo(()=>{let y=new Map;return d.forEach(N=>{N.tooltip&&y.set(N.id,N.tooltip);}),y},[d]),k=ut.useCallback(y=>{if(a)return;let N=y.features?.[0];if(!N||!N.layer)return;let G=N.layer.id,ee=j.get(G),U=se.get(G),_;N.geometry.type==="Point"?_=N.geometry.coordinates:_=[y.lngLat.lng,y.lngLat.lat];let Ae={id:N.id,lngLat:_,properties:N.properties||{},layerId:G};if(ee?.onClick&&ee.onClick(Ae),U&&U.trigger==="click"){let dr=typeof U.content=="function"?U.content(Ae):U.content;E({feature:Ae,content:dr});}},[j,se,a]),W=ut.useCallback(y=>{if(a)return;let N=y.features?.[0];if(!N||!N.layer)return;let G=N.layer.id,ee=j.get(G),U=se.get(G),_;N.geometry.type==="Point"?_=N.geometry.coordinates:_=[y.lngLat.lng,y.lngLat.lat];let Ae={id:N.id,lngLat:_,properties:N.properties||{},layerId:G};if(ee?.onMouseEnter&&ee.onMouseEnter(Ae),U&&U.trigger==="hover"){let dr=typeof U.content=="function"?U.content(Ae):U.content;E({feature:Ae,content:dr});}x.current&&(x.current.getCanvas().style.cursor="pointer");},[j,se,a,x]),Z=ut.useCallback(()=>{a||(j.forEach(y=>{y.onMouseLeave?.();}),R&&d.find(N=>N.id===R.feature.layerId)?.tooltip?.trigger==="hover"&&E(null),x.current&&(x.current.getCanvas().style.cursor=""));},[j,a,x,R,d]),D=ut.useCallback((y,N)=>{for(let G of d)if(G.tooltip&&!(N&&G.id!==N)){if(G.kind==="geojson"){if(typeof G.data=="string")continue;let ee=G.data,_=(ee.type==="FeatureCollection"?ee.features:[ee]).find(Ae=>Ae.id===y);if(_&&_.geometry.type==="Point")return {id:_.id,lngLat:_.geometry.coordinates,properties:_.properties||{},layerId:G.id}}else if(G.kind==="customPins"){let ee=G.data.find(U=>U.id===y||U._id===y||U.key===y);if(ee)return {id:y,lngLat:G.getPosition(ee),properties:ee,layerId:G.id}}}return null},[d]);ut.useImperativeHandle(f,()=>({showTooltip:(y,N)=>{let G=D(y,N);if(!G)return;let ee=d.find(_=>_.id===G.layerId);if(!ee?.tooltip)return;let U=typeof ee.tooltip.content=="function"?ee.tooltip.content(G):ee.tooltip.content;E({feature:G,content:U});},hideTooltip:()=>{E(null);},getMap:()=>x.current}),[D,d]);let L=(y,N)=>c?c(y,N):{url:y},O=u||A;return jsxRuntime.jsx("div",{ref:S,className:tailwindMerge.twMerge("relative flex h-full w-full overflow-hidden",a&&"cursor-pointer",n),onClick:a?l:void 0,children:jsxRuntime.jsxs("div",{style:{flex:1},children:[jsxRuntime.jsxs(Gg__default.default,{ref:x,initialViewState:e,...t&&t,style:{width:"100%",height:"100%"},mapStyle:Mr(s,h),mapboxAccessToken:p,transformRequest:L,onLoad:b,onMove:a?void 0:y=>{if(y.originalEvent){let N=y.originalEvent.type;N==="mousemove"||N==="touchmove"||N==="pointermove"?v(true):(N==="wheel"||N==="mousewheel")&&(T.current+=1,T.current>=3&&v(true));}r?.(y.viewState);},onClick:a?void 0:k,onMouseEnter:a?void 0:W,onMouseLeave:a?void 0:Z,interactiveLayerIds:a?[]:re,scrollZoom:a?false:o,dragPan:!a,dragRotate:!a,doubleClickZoom:!a,interactive:!a,children:[z,Br(d,s),R&&jsxRuntime.jsx(Gg.Marker,{longitude:R.feature.lngLat[0],latitude:R.feature.lngLat[1],anchor:"bottom",offset:[0,-15],children:jsxRuntime.jsx("div",{className:"pointer-events-none rounded-lg border border-border-default bg-background-surface px-4 py-3 shadow-xl",children:R.content})})]},`map-${s}`),O&&jsxRuntime.jsx(Mo,{}),a&&i&&jsxRuntime.jsx("div",{className:"absolute bottom-8 right-8 z-10",children:i})]})})});ka.displayName="InteractiveMap";function Il({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=Bo(),showMarker:l=true,onLoad:s,className:d}){let{isDarkTheme:p}=Re(),[c,u]=ut.useState(false),[m,g]=ut.useState(false),f={width:typeof e=="number"?`${e}px`:e,height:typeof t=="number"?`${t}px`:t};ut.useEffect(()=>{let S=setTimeout(()=>{c||g(true);},200);return ()=>clearTimeout(S)},[c]);let h=ut.useCallback(()=>{u(true),g(false),s?.();},[s]),x=o||m;return i?jsxRuntime.jsxs("div",{style:f,className:`relative ${d||""}`,children:[jsxRuntime.jsxs(Gg__default.default,{mapboxAccessToken:i,initialViewState:r,style:f,mapStyle:Mr(n,p),onLoad:h,scrollZoom:false,dragPan:false,dragRotate:false,doubleClickZoom:false,touchZoomRotate:false,interactive:false,children:[Br(a,n),l&&r.longitude!==void 0&&r.latitude!==void 0&&jsxRuntime.jsx(Gg.Marker,{longitude:r.longitude,latitude:r.latitude,anchor:"bottom",children:jsxRuntime.jsx(C,{name:"MapPin",size:36,className:"text-action-primary",weight:"fill"})})]}),x&&jsxRuntime.jsx(Mo,{})]}):jsxRuntime.jsx("div",{style:f,className:`flex items-center justify-center bg-background-muted text-text-muted ${d}`,children:jsxRuntime.jsxs("div",{className:"text-center",children:[jsxRuntime.jsx(C,{name:"MapPin",size:48,className:"mx-auto mb-2 opacity-50"}),jsxRuntime.jsx("p",{className:"text-sm",children:"Map requires Mapbox token"})]})})}var Zg={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 Vl({label:e,size:t="md",variant:r="default",showWarningIndicator:o=true,warningThreshold:n=80,className:a,...i}){let l=Zg[t];return jsxRuntime.jsx(reactAriaComponents.Meter,{...i,className:q(a,"flex flex-col gap-1"),children:({percentage:s,valueText:d})=>{let p=o&&s>=n,c=r==="default"?qg(s):r;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{className:"flex justify-between gap-2",children:[e&&jsxRuntime.jsx(te,{children:e}),jsxRuntime.jsxs("span",{className:tailwindMerge.twMerge(l.text,p?"text-feedback-error-text":"text-text-muted"),children:[p&&jsxRuntime.jsx(lucideReact.AlertTriangle,{"aria-label":"Warning: High value",className:tailwindMerge.twMerge("inline-block align-text-bottom mr-1",l.icon)}),d]})]}),jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("relative rounded-full bg-background-muted","ring-1 ring-inset ring-border-muted",l.bar),children:jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("absolute left-0 top-0 h-full rounded-full transition-all duration-300","forced-colors:bg-[Highlight]",$g(c)),style:{width:`${Math.min(100,Math.max(0,s))}%`},role:"presentation","aria-hidden":"true"})})]})}})}function qg(e){return e<50?"success":e<70?"info":e<90?"warning":"error"}function $g(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-primary-background"}}var lb={success:{container:"bg-feedback-success-background border-feedback-success-border text-feedback-success-text",icon:lucideReact.CheckCircle},error:{container:"bg-feedback-error-background border-feedback-error-border text-feedback-error-text",icon:lucideReact.XCircle},warning:{container:"bg-feedback-warning-background border-feedback-warning-border text-feedback-warning-text",icon:lucideReact.AlertCircle},info:{container:"bg-feedback-info-background border-feedback-info-border text-feedback-info-text",icon:lucideReact.Info}};function Vo({id:e,message:t,variant:r="info",duration:o=5e3,dismissible:n=true,onDismiss:a,className:i}){let{container:l,icon:s}=lb[r];return ut.useEffect(()=>{if(o>0){let d=setTimeout(()=>{a?.();},o);return ()=>clearTimeout(d)}},[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-start gap-3 rounded-lg border p-4 shadow-lg",l,i),children:[jsxRuntime.jsx(s,{className:"h-5 w-5 flex-shrink-0"}),jsxRuntime.jsx("p",{className:"flex-1 text-sm font-medium",children:t}),n&&jsxRuntime.jsx("button",{onClick:a,className:"flex-shrink-0 rounded-md p-1 transition-colors hover:bg-black/10","aria-label":"Dismiss notification",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"})})]})}var gb={"top-left":"top-4 left-4 items-start","top-center":"top-4 left-1/2 -translate-x-1/2 items-center","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-center","bottom-right":"bottom-4 right-4 items-end"};function zo({notices:e,onDismiss:t,position:r="top-right",className:o}){let[n,a]=ut.useState(false);if(ut.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",gb[r],o),"aria-live":"polite","aria-atomic":"true",children:jsxRuntime.jsx(framerMotion.AnimatePresence,{mode:"sync",children:e.map(l=>jsxRuntime.jsx(Vo,{id:l.id,message:l.message,variant:l.variant,duration:l.duration,dismissible:l.dismissible,onDismiss:()=>t(l.id)},l.id))})});return reactDom.createPortal(i,document.body)}var zl=ut.createContext(void 0);function Ol({children:e,position:t="top-right",maxNotices:r=5,defaultDuration:o=5e3,defaultDismissible:n=true}){let[a,i]=ut.useState([]),l=ut.useCallback((c,u)=>{let m=`notice-${Date.now()}-${Math.random()}`,g={id:m,message:c,variant:u?.variant||"info",duration:u?.duration??o,dismissible:u?.dismissible??n};return i(f=>{let h=[...f,g];return h.length>r?h.slice(-r):h}),m},[r,o,n]),s=ut.useCallback(c=>{i(u=>u.filter(m=>m.id!==c));},[]),d=ut.useCallback(()=>{i([]);},[]),p={notices:a,addNotice:l,removeNotice:s,clearNotices:d};return jsxRuntime.jsxs(zl.Provider,{value:p,children:[e,jsxRuntime.jsx(zo,{notices:a,onDismiss:s,position:t})]})}function Hl(){let e=ut.useContext(zl);if(!e)throw new Error("useNoticeContext must be used within a NoticeProvider");return e}function Gl(){let{addNotice:e,removeNotice:t,clearNotices:r}=Hl(),o=ut.useCallback((s,d)=>e(s,d),[e]),n=ut.useCallback((s,d)=>e(s,{...d,variant:"success"}),[e]),a=ut.useCallback((s,d)=>e(s,{...d,variant:"error"}),[e]),i=ut.useCallback((s,d)=>e(s,{...d,variant:"warning"}),[e]),l=ut.useCallback((s,d)=>e(s,{...d,variant:"info"}),[e]);return {show:o,success:n,error:a,warning:i,info:l,dismiss:t,clear:r}}var kb=e=>tailwindMerge.twMerge(Vt({isInvalid:e.isInvalid,isDisabled:e.isDisabled,isFocused:e.isFocused}),e.transparent?"bg-transparent":"bg-background-input","pr-9","[appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",e.className);function Kl({label:e,description:t,errorMessage:r,size:o,tooltip:n,isRequired:a,transparent:i,validationResult:l,...s}){let d=ut.useId();return jsxRuntime.jsx(reactAriaComponents.NumberField,{...s,id:d,isRequired:a,className:q(s.className,"group flex flex-col gap-1"),step:s.step??1,onChange:p=>{typeof p=="number"&&(s.maxValue!=null&&p>s.maxValue?s.onChange?.(s.maxValue):s.minValue!=null&&p<s.minValue?s.onChange?.(s.minValue):s.onChange?.(p));},isInvalid:!!r||typeof s.value=="number"&&(s.maxValue!=null&&s.value>s.maxValue||s.minValue!=null&&s.value<s.minValue),children:({isDisabled:p,isInvalid:c})=>jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(te,{size:o,tooltip:n,isRequired:a,htmlFor:d,children:e}),jsxRuntime.jsx("div",{className:"relative",children:jsxRuntime.jsxs(reactAriaComponents.Group,{className:"relative",children:[jsxRuntime.jsx(reactAriaComponents.Input,{className:kb({isInvalid:c||!!r,isDisabled:p,transparent:i,className:typeof s.className=="string"?s.className:void 0})}),jsxRuntime.jsxs("div",{className:"absolute inset-y-[1px] right-[1px] flex flex-col divide-y border-l overflow-hidden rounded-r-[calc(var(--control-border-radius)-1px)]",children:[jsxRuntime.jsx(reactAriaComponents.Button,{slot:"increment",isDisabled:p,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(C,{name:"CaretUp",size:14})}),jsxRuntime.jsx(reactAriaComponents.Button,{slot:"decrement",isDisabled:p,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(C,{name:"CaretDown",size:14})})]})]})}),t&&jsxRuntime.jsx(ae,{size:o,className:"mt-3",children:t}),r&&jsxRuntime.jsx($,{size:o,className:"mt-3",children:typeof r=="function"?r(l):r})]})})}var Oo=ut__namespace.createContext({variant:"default"});function Fb({orientation:e,className:t=""}){return `flex flex-col w-full ${{horizontal:"",vertical:"flex-row"}[e]||""} ${t}`.trim()}function Go({variant:e="default",...t}){return jsxRuntime.jsx(Oo.Provider,{value:{variant:e},children:jsxRuntime.jsx("div",{className:"w-full",children:jsxRuntime.jsx(reactAriaComponents.Tabs,{...t,className:reactAriaComponents.composeRenderProps(t.className,(r,o)=>Fb({...o,className:r}))})})})}function Bb({orientation:e,className:t=""}){return `flex gap-10 relative after:absolute after:bottom-0 after:left-0 after:right-0 after:h-[2px] after:bg-border-muted ${{horizontal:"flex-row w-full",vertical:"flex-col items-start"}[e]||""} ${t}`.trim()}function Wo({variant:e,...t}){let r=ut__namespace.useContext(Oo),o=e??r.variant;return jsxRuntime.jsx(Oo.Provider,{value:{variant:o},children:jsxRuntime.jsx(reactAriaComponents.TabList,{...t,className:reactAriaComponents.composeRenderProps(t.className,(n,a)=>Bb({...a,className:n||""}))})})}function Mb({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",a=ce(),i="";return t?i="text-text-disabled forced-colors:text-[GrayText] cursor-not-allowed":e?r==="accent"?i="text-action-primary border-b-2 border-action-primary z-10 forced-colors:bg-[Highlight]":i="text-text-heading border-b-2 border-text-heading z-10 forced-colors:bg-[Highlight]":i="text-text-placeholder hover:text-text-muted",`${n} ${a} ${i} ${o}`.trim()}function Ko(e){let{variant:t}=ut__namespace.useContext(Oo);return jsxRuntime.jsx(reactAriaComponents.Tab,{...e,"data-testid":e.id?`tab-${e.id}`:void 0,className:reactAriaComponents.composeRenderProps(e.className,(r,o)=>Mb({...o,className:r,isSelected:o.isSelected,variant:t}))})}function Db({className:e=""}){let t="block w-full mt-4 text-text-body",r=ce();return `${t} ${r} ${e}`.trim()}function Jl(e){return jsxRuntime.jsx(reactAriaComponents.TabPanel,{...e,className:reactAriaComponents.composeRenderProps(e.className,(t,r)=>Db({...r,className:t||""}))})}function nt({children:e,maxWidth:t=1400,paddingXClass:r="px-4 md:px-6",paddingYClass:o="py-4 md:py-6",className:n}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge(`w-full ${r} ${o}`,n),style:{marginInline:"auto",maxWidth:t},children:e})}function Ul({title:e,subtitle:t,breadcrumbs:r,breadcrumbsNode:o,meta:n,headingAs:a,className:i}){return jsxRuntime.jsxs("header",{className:tailwindMerge.twMerge("mb-4 md:mb-6",i),"aria-labelledby":"page-title",children:[o?jsxRuntime.jsx("div",{className:"mb-2",children:o}):r?.length?jsxRuntime.jsx("div",{className:"mb-2",children:jsxRuntime.jsx(no,{children:r.map((l,s)=>jsxRuntime.jsx(ao,{...l.href?{href:l.href}:{},children:l.label},`${l.label}-${s}`))})}):null,jsxRuntime.jsxs("div",{className:"flex items-start justify-between gap-4",children:[jsxRuntime.jsxs("div",{className:"min-w-0",children:[jsxRuntime.jsx("div",{id:"page-title",children:jsxRuntime.jsx(Ee,{tag:a||"h1",size:"xl",children:e})}),t?jsxRuntime.jsx("p",{className:"mt-1 text-text-muted",children:t}):null]}),n?jsxRuntime.jsx("div",{className:"shrink-0",children:n}):null]})]})}function Yl({primary:e,secondary:t,children:r,align:o="end",className:n}){return jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge(`mb-3 md:mb-4 flex items-center gap-2 ${o==="end"?"justify-end":"justify-start"}`,n),children:[r,jsxRuntime.jsxs("div",{className:"ml-auto flex items-center gap-2",children:[t,e]})]})}function Xl({children:e,className:t,ariaLabel:r="Filters"}){return jsxRuntime.jsx("section",{"aria-label":r,className:tailwindMerge.twMerge("mb-4 md:mb-6 flex flex-wrap items-center gap-2",t),children:e})}function Ql({tabs:e,value:t,defaultValue:r,onChange:o,className:n,children:a}){let i=l=>{o?.(l);};return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("mb-3 md:mb-4",n),children:jsxRuntime.jsxs(Go,{selectedKey:t,defaultSelectedKey:r||e[0]?.id,onSelectionChange:i,children:[jsxRuntime.jsx(Wo,{children:e.map(l=>jsxRuntime.jsx(Ko,{id:l.id,isDisabled:l.disabled,children:l.label},l.id))}),a]})})}function jl({children:e,className:t}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-full",t),children:e})}function Zl({children:e,sticky:t=true,className:r}){return jsxRuntime.jsx("aside",{className:tailwindMerge.twMerge(t?"lg:sticky lg:top-20":"",r),children:e})}nt.Header=Ul;nt.Actions=Yl;nt.Filters=Xl;nt.Tabs=Ql;nt.Content=jl;nt.Aside=Zl;function Eb(e){return typeof e=="object"&&e!==null&&"features"in e&&Array.isArray(e.features)&&"type"in e&&typeof e.type=="string"}var Ib=process.env.NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN||"";function _l({label:e="Search for a place",selectedKey:t,defaultSelectedKey:r,onSelectionChange:o,placeholder:n="Enter a location...",errorMessage:a,description:i,size:l="md",tooltip:s,isRequired:d,isDisabled:p,showErrors:c=true,autoFocus:u=false,onSelect:m,searchTypes:g=["place","address"],defaultFilter:f,validationResult:h,countryRestrictions:x,proximity:S="ip"}){let w=ut.useRef(new WeakMap),F=ut.useRef([]),A={requestType:"REST",method:"GET",url:"https://api.mapbox.com/geocoding/v5/mapbox.places/{q}.json",extraParams:{access_token:Ib,types:g.join(","),limit:"5",...x?.length?{country:x.join(",").toLowerCase()}:{},...S?{proximity:S==="ip"?"ip":S.join(",")}:{}},shouldLoad:v=>v.length>0,transformResponse:v=>{if(!Eb(v))return [];let T=v.features.map(R=>{let E={id:R.id,name:R.place_name};return w.current.set(E,{type:R.place_type[0],center:R.center}),E});return T.length>0&&(F.current=T),T}},B=v=>{let T=w.current.get(v),R=v.name.split(", "),E=R[0],b=R.slice(1).join(", ");return jsxRuntime.jsxs("div",{className:"flex items-center gap-3 py-0.5",children:[jsxRuntime.jsx(C,{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-muted"}),jsxRuntime.jsxs("div",{className:"flex min-w-0 flex-col",children:[jsxRuntime.jsx("span",{className:"truncate font-medium text-text-body",children:E}),b&&jsxRuntime.jsx("span",{className:"truncate text-sm text-text-muted",children:b})]})]})},M=v=>v?jsxRuntime.jsx(C,{name:"CircleNotch",className:"h-4 w-4 animate-spin text-text-muted"}):jsxRuntime.jsx(C,{name:"MagnifyingGlass",className:"h-4 w-4 text-text-muted"});return jsxRuntime.jsx(ro,{"data-testid":"autocomplete","data-config":JSON.stringify({types:g.join(","),country:x?.join(",").toLowerCase(),proximity:S==="ip"?"ip":S?.join(",")}),label:e,selectedKey:t,defaultSelectedKey:r,onSelectionChange:v=>{if(o?.(v),v){let R=F.current.find(E=>E.id===v);if(R){let E=w.current.get(R);E&&m({id:R.id,place_name:R.name,place_type:[E.type],center:E.center});}}},requestConfig:A,placeholder:n,errorMessage:a,description:i,size:l,tooltip:s,isRequired:d,isDisabled:p,showErrors:c,autoFocus:u,renderItem:B,renderLeftIcon:M,defaultFilter:f,validationResult:h})}function tc({label:e,rightLabel:t,progressWidth:r=64,hideLabels:o=false,...n}){return jsxRuntime.jsx(reactAriaComponents.ProgressBar,{...n,className:q(n.className,"flex flex-col gap-1"),children:({percentage:a,valueText:i,isIndeterminate:l})=>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-heading",children:e}),jsxRuntime.jsx("span",{className:"text-sm text-text-heading",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-blue-600 dark:bg-blue-500 forced-colors:bg-[Highlight] ${l?"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:(l?40:a)+"%"}})})]})})}function rc(e){return jsxRuntime.jsxs(reactAriaComponents.RadioGroup,{...e,className:q(e.className,"group flex flex-col gap-2"),children:[jsxRuntime.jsx(te,{children:e.label}),jsxRuntime.jsx("div",{className:"flex gap-2 group-orientation-horizontal:gap-4 group-orientation-vertical:flex-col",children:e.children}),e.description&&jsxRuntime.jsx(ae,{children:e.description}),jsxRuntime.jsx($,{children:typeof e.errorMessage=="function"&&e.validationResult?e.errorMessage(e.validationResult):typeof e.errorMessage=="string"?e.errorMessage:null})]})}function Gb({isSelected:e,isInvalid:t,isDisabled:r}){let o=[ce(),"w-5 h-5 rounded-full border-2 bg-background-surface transition-all"];return r?o.push("border-border-muted forced-colors:!border-[GrayText]"):t?o.push("border-feedback-error-border group-pressed:border-feedback-error-border dark:group-pressed:border-feedback-error-border forced-colors:!border-[Mark]"):e?o.push("border-[7px] border-action-primary forced-colors:!border-[Highlight] group-pressed:border-action-primary-hover dark:group-pressed:border-action-primary-hover"):o.push("border-border-default group-pressed:border-border-focus dark:group-pressed:border-border-focus"),o.join(" ")}function oc(e){return jsxRuntime.jsx(reactAriaComponents.Radio,{...e,className:q(e.className,"group flex items-center gap-2 text-sm text-text-body transition disabled:text-text-muted dark:text-text-body dark:disabled:text-text-muted forced-colors:disabled:text-[GrayText]"),children:t=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:Gb(t)}),e.children]})})}var Rt=({isActive:e=false,onPress:t,children:r})=>jsxRuntime.jsx(K,{variant:e?"secondary":"ghost",size:"sm",onPress:t,className:"p-1",children:r});function qb({initialUrl:e,isOpen:t,onClose:r,onSubmit:o}){let[n,a]=ut.useState(e);return ut__namespace.default.useEffect(()=>{a(e);},[e]),jsxRuntime.jsx(reactAriaComponents.Modal,{isDismissable:true,isOpen:t,onOpenChange:l=>!l&&r(),children:jsxRuntime.jsx(reactAriaComponents.Dialog,{className:"relative",children:jsxRuntime.jsxs("form",{onSubmit:l=>{l.preventDefault(),o(n),r();},children:[jsxRuntime.jsx($t,{title:"Insert Link",onClose:r}),jsxRuntime.jsx("div",{className:"p-6",children:jsxRuntime.jsx(er,{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(K,{variant:"secondary",onPress:r,children:"Cancel"}),jsxRuntime.jsx(K,{type:"submit",children:"Save"})]})]})})})}function ic({initialContent:e="",onChange:t,className:r,isDisabled:o=false,placeholder:n="Start typing..."}){let[a,i]=ut.useState(false),l=react.useEditor({extensions:[Xb__default.default.configure({heading:{levels:[1,2]}}),Kb__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:p})=>{t?.(p.getHTML());},editorProps:{attributes:{class:tailwindMerge.twMerge("prose prose-sm max-w-none","focus:outline-none","[&>*:first-child]:mt-0 [&>*:last-child]:mb-0")}}}),s=()=>{i(true);},d=p=>{p===""?l?.chain().focus().unsetLink().run():l?.chain().focus().setLink({href:p}).run();};return l?jsxRuntime.jsxs("div",{className:tailwindMerge.twMerge("flex flex-col rounded-md border border-border-input bg-background-input",o&&"opacity-50",r),children:[l&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs(menus.BubbleMenu,{editor:l,shouldShow:({editor:p})=>p.isActive("link")&&!a,className:"flex items-center gap-1 rounded-md border border-border-input bg-background-surface p-1 shadow-md",children:[jsxRuntime.jsxs(K,{variant:"ghost",size:"sm",className:"h-8 px-2",onPress:()=>{let p=l.getAttributes("link").href;window.open(p,"_blank");},children:[jsxRuntime.jsx(C,{name:"ArrowSquareOut",className:"mr-1 h-4 w-4"}),"Open"]}),jsxRuntime.jsxs(K,{variant:"ghost",size:"sm",className:"h-8 px-2",onPress:s,children:[jsxRuntime.jsx(C,{name:"PencilSimple",className:"mr-1 h-4 w-4"}),"Edit"]}),jsxRuntime.jsxs(K,{variant:"ghost",size:"sm",className:"h-8 px-2",onPress:()=>l.chain().focus().unsetLink().run(),children:[jsxRuntime.jsx(C,{name:"X",className:"mr-1 h-4 w-4"}),"Remove"]})]}),jsxRuntime.jsx(qb,{isOpen:a,onClose:()=>i(false),onSubmit:d,initialUrl:l.getAttributes("link").href||""})]}),jsxRuntime.jsxs("div",{className:"flex items-center gap-1 border-b border-border-input p-2",children:[jsxRuntime.jsx(Rt,{isActive:l.isActive("heading",{level:1}),onPress:()=>l.chain().focus().toggleHeading({level:1}).run(),children:jsxRuntime.jsx("span",{className:"text-xs font-bold",children:"H1"})}),jsxRuntime.jsx(Rt,{isActive:l.isActive("heading",{level:2}),onPress:()=>l.chain().focus().toggleHeading({level:2}).run(),children:jsxRuntime.jsx("span",{className:"text-xs font-bold",children:"H2"})}),jsxRuntime.jsx(Rt,{isActive:l.isActive("bold"),onPress:()=>l.chain().focus().toggleBold().run(),children:jsxRuntime.jsx("span",{className:"text-xs font-bold",children:"B"})}),jsxRuntime.jsx(Rt,{isActive:l.isActive("italic"),onPress:()=>l.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(Rt,{isActive:l.isActive("bulletList"),onPress:()=>l.chain().focus().toggleBulletList().run(),children:jsxRuntime.jsx(C,{name:"ListBullets",className:"h-4 w-4"})}),jsxRuntime.jsx(Rt,{isActive:l.isActive("orderedList"),onPress:()=>l.chain().focus().toggleOrderedList().run(),children:jsxRuntime.jsx(C,{name:"ListNumbers",className:"h-4 w-4"})}),jsxRuntime.jsx("div",{className:"mx-1 h-4 w-px bg-border-muted"}),jsxRuntime.jsx(Rt,{isActive:l.isActive("link"),onPress:s,children:jsxRuntime.jsx(C,{name:"PaperclipHorizontal",className:"h-4 w-4"})})]}),jsxRuntime.jsxs("div",{className:"relative min-h-[200px] w-full",children:[jsxRuntime.jsx(react.EditorContent,{editor:l,className:tailwindMerge.twMerge("w-full p-4","[&_.ProseMirror]:min-h-[inherit]","[&_.ProseMirror]:outline-none","[&_.ProseMirror_h1]:mb-4 [&_.ProseMirror_h1]:text-2xl [&_.ProseMirror_h1]:font-bold","[&_.ProseMirror_h2]:mb-3 [&_.ProseMirror_h2]:text-xl [&_.ProseMirror_h2]:font-semibold","[&_.ProseMirror_p]:mb-2","[&_.ProseMirror_ul]:mb-2 [&_.ProseMirror_ul]:ml-6 [&_.ProseMirror_ul]:list-disc","[&_.ProseMirror_ol]:mb-2 [&_.ProseMirror_ol]:ml-6 [&_.ProseMirror_ol]:list-decimal","[&_.ProseMirror_li]:mb-1","[&_.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")}),l.isEmpty&&!o&&jsxRuntime.jsx("div",{className:"pointer-events-none absolute left-4 top-4 text-text-muted",children:n})]})]}):null}var ex={plain:"",contained:"bg-background-surface rounded-lg border border-border-default p-6",bordered:"border-y border-border-default py-6"},tx={none:"",sm:"my-4",md:"my-6 md:my-8",lg:"my-8 md:my-12"};function lc({title:e,description:t,actions:r,variant:o="plain",spacing:n="md",withDivider:a=false,headingAs:i="h2",className:l,children:s}){let d=ut__namespace.default.useId(),p=e||t||r;return jsxRuntime.jsxs("section",{className:tailwindMerge.twMerge(tx[n],ex[o],l),"aria-labelledby":e?d:void 0,children:[p&&jsxRuntime.jsxs("header",{id:d,className:tailwindMerge.twMerge("flex flex-col sm:flex-row sm:items-start sm:justify-between gap-4",a&&"border-b border-border-default pb-4 mb-6",!a&&s&&"mb-4"),children:[jsxRuntime.jsxs("div",{className:"min-w-0 flex-1",children:[e&&jsxRuntime.jsx(Ee,{tag:i,size:"md",className:"text-text-heading",children:e}),t&&jsxRuntime.jsx("p",{className:"mt-1 text-sm text-text-muted",children:t})]}),r&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:r})]}),s&&jsxRuntime.jsx("div",{className:"",children:s})]})}var ox={sm:"h-8 text-xs",md:"h-10 text-sm",lg:"h-12 text-base",xl:"h-14 text-lg"},nx={sm:14,md:16,lg:18,xl:20},ax=({isSelected:e,isFirst:t,isLast:r,isDisabled:o})=>tailwindMerge.twMerge(ce(),"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-selected text-text-body font-semibold forced-colors:!bg-[Highlight] forced-colors:!text-[HighlightText]":"text-text-muted hover:bg-background-hover pressed:bg-background-selected 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 uc({options:e,value:t,onChange:r,size:o="md",className:n,isDisabled:a,"aria-label":i}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("inline-flex overflow-hidden rounded-md border-2 border-border-muted",ox[o],n),role:"group","aria-label":i,children:e.map((l,s)=>jsxRuntime.jsxs(reactAriaComponents.ToggleButton,{isSelected:t===l.id,onChange:()=>r(l.id),className:ax({isSelected:t===l.id,isFirst:s===0,isLast:s===e.length-1,isDisabled:a}),isDisabled:a,"aria-label":l.label,children:[l.icon&&jsxRuntime.jsx(C,{name:l.icon,size:nx[o]}),l.label]},l.id))})}function pc({label:e,description:t,tooltip:r,errorMessage:o,size:n="md",className:a,value:i,defaultValue:l=0,onChange:s,min:d=0,max:p=100,step:c=1,disabled:u,showValue:m=true}){let g=typeof i=="number",[f,h]=ut__namespace.default.useState(l),x=g?i:f,S=Math.min(Math.max(x,d),p),w=Math.max(p-d,1e-5),F=(S-d)/w*100;return jsxRuntime.jsxs("div",{className:q(a,"group flex w-full flex-col gap-1"),children:[e&&jsxRuntime.jsx(te,{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-primary",style:{width:`${F}%`},"aria-hidden":true}),jsxRuntime.jsx("input",{type:"range",min:d,max:p,step:c,value:x,disabled:u,"aria-invalid":!!o,onChange:A=>{let B=Number(A.currentTarget.value);g||h(B),s?.(B);},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-border-focus","[&::-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-border-focus",u?"cursor-not-allowed opacity-60":void 0)})]}),m&&jsxRuntime.jsx("div",{className:"min-w-10 text-right text-sm text-text-heading tabular-nums",children:Math.round(S)})]}),t&&jsxRuntime.jsx(ae,{className:"mt-2 text-text-muted",children:t}),o&&jsxRuntime.jsx($,{className:"mt-1",children:o})]})}var ux=ut__namespace.default.createContext({orientation:"horizontal",isResizing:false});function fc(e,t){return e===void 0?t:e}function px(e,t){return typeof e=="number"?e:typeof e=="string"&&e.endsWith("%")?Number.parseFloat(e)/100*t:Number.parseFloat(e.toString())}function Uo({asideWidth:e,asideHeight:t,minAsideWidth:r=240,minAsideHeight:o=200,minMainWidth:n=400,minMainHeight:a=300,orientation:i="horizontal",resizable:l=false,onAsideResize:s,onResizeStart:d,onResizeEnd:p,className:c,dividerClassName:u,children:m}){let g=ut.useRef(null),[f,h]=ut.useState(false),x=i==="horizontal"?400:300,S=fc(i==="horizontal"?e:t,x),[w,F]=ut.useState(null),A=ut.useCallback(b=>{if(!g.current||!f)return;let I=g.current.getBoundingClientRect(),J=i==="horizontal"?I.width:I.height,z=i==="horizontal"?b.clientX:b.clientY,j=(i==="horizontal"?I.right:I.bottom)-z,se=J-j,k=i==="horizontal"?r:o,W=i==="horizontal"?n:a;j<k||se<W||(F(j),s?.(j));},[f,i,r,o,n,a,s]),B=ut.useCallback(()=>{h(false),p?.();},[p]),M=ut.useCallback(b=>{b.preventDefault(),b.stopPropagation(),h(true),d?.();},[d]);ut.useEffect(()=>{if(f)return document.addEventListener("mousemove",A),document.addEventListener("mouseup",B),document.body.style.cursor=i==="horizontal"?"col-resize":"row-resize",document.body.style.userSelect="none",()=>{document.removeEventListener("mousemove",A),document.removeEventListener("mouseup",B),document.body.style.cursor="",document.body.style.userSelect="";}},[f,A,B,i]);let v=ut__namespace.default.Children.toArray(m).find(b=>ut__namespace.default.isValidElement(b)&&b.type===bc),T=ut__namespace.default.Children.toArray(m).find(b=>ut__namespace.default.isValidElement(b)&&b.type===xc),R=w??S,E=typeof R=="number"?`${R}px`:R;return jsxRuntime.jsx(ux.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",c),children:[jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("overflow-auto flex-1",i==="horizontal"?"h-full":"w-full"),children:v}),l&&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",u),onMouseDown:M,role:"separator","aria-orientation":i,"aria-label":"Resize divider",tabIndex:0,onKeyDown:b=>{if(!g.current)return;let I=g.current.getBoundingClientRect(),J=i==="horizontal"?I.width:I.height,z=w??px(S,J),re=20,j=i==="horizontal"?r:o,se=i==="horizontal"?n:a;if(i==="horizontal"){if(b.key==="ArrowLeft"){let k=Math.min(z+re,J-se);F(k),s?.(k);}else if(b.key==="ArrowRight"){let k=Math.max(z-re,j);F(k),s?.(k);}}else if(b.key==="ArrowUp"){let k=Math.min(z+re,J-se);F(k),s?.(k);}else if(b.key==="ArrowDown"){let k=Math.max(z-re,j);F(k),s?.(k);}},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-primary/50",f&&"bg-action-primary",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"]:E},children:T})]})})}function bc({className:e,children:t}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-full h-full",e),children:t})}function xc({className:e,children:t}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("w-full h-full",e),children:t})}Uo.Main=bc;Uo.Aside=xc;function fx(e,t){return mr({value:e,formatter:t,emptyClassName:"text-text-muted",emptyText:"\u2014"})}function gx(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 bx={neutral:"text-text-body",success:"text-feedback-success",warning:"text-feedback-warning",error:"text-feedback-error",info:"text-feedback-info"};function xx({item:e,dense:t,valueAlign:r}){let o=gx(e),n=o?bx[o]:"",a=fx(e.value,e.formatter),i=typeof e.copyable=="function"?e.copyable(e.value):String(e.value),l=jsxRuntime.jsx("span",{className:e.href?"hover:underline cursor-pointer":"",children:a}),s=jsxRuntime.jsxs("dd",{className:tailwindMerge.twMerge(t?"text-sm":"text-base","font-medium",r==="start"?"text-left":"text-right",n,e.disabled&&"opacity-50"),children:[e.copyable?jsxRuntime.jsxs(co,{value:i,size:"sm",className:"flex items-center gap-1",children:[l,e.iconRight]}):jsxRuntime.jsxs("div",{className:"flex items-center gap-1",children:[l,e.iconRight]}),e.meta&&jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-xs text-text-muted mt-0.5",r==="start"?"text-left":"text-right"),children:e.meta})]}),d=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("dt",{className:tailwindMerge.twMerge(t?"text-xs":"text-sm","text-text-caption 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(C,{name:"Question",size:10,className:"text-text-muted","aria-label":"More information"})]}),e.href?jsxRuntime.jsx("a",{href:e.href,onClick:e.onAction,className:"block",children:s}):s]});return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("grid grid-cols-[1fr_auto] items-start",t?"gap-x-2":"gap-x-4"),children:d})}function hc({items:e,layout:t="one-column",dense:r=false,valueAlign:o="end",showDividers:n=false,skeleton:a=false,empty:i=false,error:l,className:s}){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",s),children:Array.from({length:e.length||4}).map((d,p)=>jsxRuntime.jsxs("div",{className:"grid grid-cols-[1fr_auto] items-start gap-x-4",children:[jsxRuntime.jsx(H,{className:"h-4 w-24"}),jsxRuntime.jsx(H,{className:"h-5 w-16"})]},p))}):l?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-sm text-feedback-error",s),children:l}):i||!e.length?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("text-sm text-text-muted",s),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",s),children:e.map((d,p)=>jsxRuntime.jsxs(ut__namespace.default.Fragment,{children:[n&&p>0&&t==="one-column"&&jsxRuntime.jsx("div",{className:"col-span-full border-t border-border-default -mt-1 mb-1"}),jsxRuntime.jsx(xx,{item:d,dense:r,valueAlign:o})]},d.id))})}function vx({isSelected:e,isDisabled:t}){return ["flex h-4 w-7 px-px items-center shrink-0 cursor-default rounded-full transition duration-200 ease-in-out shadow-inner border border-transparent",ce,e?"bg-gray-700 dark:bg-zinc-300 forced-colors:!bg-[Highlight] group-pressed:bg-gray-800 dark:group-pressed:bg-zinc-200":"bg-gray-400 dark:bg-zinc-400 group-pressed:bg-gray-500 dark:group-pressed:bg-zinc-300",t?"bg-gray-200 dark:bg-zinc-700 forced-colors:group-selected:!bg-[GrayText] forced-colors:border-[GrayText]":""].filter(Boolean).join(" ")}function Cx({isSelected:e,isDisabled:t}){return ["h-3 w-3 transform rounded-full bg-white dark:bg-zinc-900 outline-none shadow transition duration-200 ease-in-out",e?"translate-x-[100%]":"translate-x-0",t?"forced-colors:outline-[GrayText]":""].filter(Boolean).join(" ")}function yc({children:e,...t}){return jsxRuntime.jsx(reactAriaComponents.Switch,{...t,className:q(t.className,"group flex items-center gap-2 text-sm text-gray-800 transition disabled:text-gray-300 dark:text-zinc-200 dark:disabled:text-zinc-600 forced-colors:disabled:text-[GrayText]"),children:r=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:vx(r),children:jsxRuntime.jsx("span",{className:Cx(r)})}),e]})})}var Px=e=>{let t=Je({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":"resize-y"}`;return tailwindMerge.twMerge(t,r,e.className)};function vc({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,required:a,transparent:i,isInvalid:l,isDisabled:s,className:d,validationResult:p,...c}){let{isFocused:u,handleFocus:m,handleBlur:g}=Ze();return jsxRuntime.jsx("div",{className:"group flex flex-col",children:jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(te,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(qe,{children:jsxRuntime.jsx("textarea",{...c,required:a,onFocus:f=>{c.onFocus&&c.onFocus(f),m(f);},onBlur:f=>{c.onBlur&&c.onBlur(f),g(f);},className:Px({isInvalid:l,isDisabled:s,isFocused:u,size:o,transparent:i,className:d}),disabled:s})}),t&&jsxRuntime.jsx(ae,{size:o,className:"mt-3",children:t}),typeof r=="string"&&jsxRuntime.jsx($,{size:o,className:"mt-1",children:r}),typeof r=="function"&&p&&jsxRuntime.jsx($,{size:o,className:"mt-1",children:r(p)})]})})}function wc({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,required:a,transparent:i,isInvalid:l,isDisabled:s,className:d,validationResult:p,value:c="",onChange:u,chips:m=[],onChipsChange:g,triggerPattern:f="{{",onTriggerDetected:h,onTriggerDismissed:x,renderChip:S,chipVariant:w="primary",chipSize:F,...A}){let B=ut.useRef(null),{isFocused:M,handleFocus:v,handleBlur:T}=Ze(),R=F||"sm",E=ut.useRef(null),b=ut.useCallback(k=>{let W="",Z=D=>{if(D.nodeType===Node.TEXT_NODE){if(!D.parentElement?.closest("[data-chip-id]")){let O=D.textContent||"";W+=O;}}else if(D.nodeType===Node.ELEMENT_NODE){let L=D;if(L.hasAttribute("data-chip-id")){let O=L.getAttribute("data-chip-id");W+=`{{${O}}}`;return}else if(L.tagName==="BR"){W+=`
|
|
81
|
+
`;return}else L.tagName;}for(let L=0;L<D.childNodes.length;L++)Z(D.childNodes[L]);};return Z(k),W},[]),I=ut.useCallback((k,W)=>{let Z=document.createTreeWalker(k,NodeFilter.SHOW_TEXT,{acceptNode:N=>{let G=N.parentElement;return G&&G.closest("[data-chip-id]")?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}}),D=Z.nextNode(),L=Math.max(0,W);for(;D;){let N=D.nodeValue||"";if(N.length>=L){let G=document.createRange();G.setStart(D,L),G.collapse(true);let ee=window.getSelection();ee?.removeAllRanges(),ee?.addRange(G);return}L-=N.length,D=Z.nextNode();}let O=window.getSelection(),y=document.createRange();y.selectNodeContents(k),y.collapse(false),O?.removeAllRanges(),O?.addRange(y);},[]);ut.useEffect(()=>{B.current&&!c&&B.current.textContent!==""&&(B.current.textContent="");},[c]),ut.useLayoutEffect(()=>{if(B.current){if(c===""){if(M)try{B.current.focus({preventScroll:!0}),I(B.current,0);}catch{}return}if(E.current!=null)try{I(B.current,E.current);}finally{E.current=null;}}},[c,I,M]);let J=ut.useCallback((k,W)=>{if(u?.(k),k===""){x?.();return}if(f&&h&&W!==void 0){let Z=k.slice(0,W),D=typeof f=="string"?new RegExp(`\\${f}([^\\s]*)$`):f,L=Z.match(D);if(L){let O=L[1]||"",y=W-L[0].length;h({query:O,position:W,startIndex:y});}else x?.();}},[u,f,h,x]),z=ut.useCallback(k=>{if(!g||!u)return;let W=m.filter(D=>D.id!==k);g(W);let Z=c.replace(new RegExp(`\\{\\{${k}\\}\\}`,"g"),"");u(Z);},[m,g,c,u]),re=ut.useCallback(k=>S?S(k,()=>z(k.id)):jsxRuntime.jsx(Ht,{variant:w,size:R,onRemove:s?void 0:()=>z(k.id),isDisabled:s,className:"py-0.5 px-1.5 gap-1 text-xs leading-none rounded-md",children:k.label},k.id),[S,w,R,z,s]),j=()=>{let k=Je({isInvalid:l,isDisabled:s,isFocused:M,transparent:i,size:o}),W=`min-h-[100px] py-2 px-3 ${s?"resize-none":"resize-y"}`,Z=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-placeholder [&:empty]:before:pointer-events-none");return tailwindMerge.twMerge(k,W,Z,d)},se=()=>c?c.split(/(\{\{[^}]+\}\})/g).map((W,Z)=>{let D=W.match(/\{\{([^}]+)\}\}/);if(D){let L=D[1],O=m.find(y=>y.id===L);if(O)return jsxRuntime.jsx("span",{className:"inline-block align-baseline cursor-pointer",contentEditable:false,suppressContentEditableWarning:true,"data-chip-id":L,style:{userSelect:"none",verticalAlign:"baseline",lineHeight:"1"},onClick:y=>{y.preventDefault();let N=window.getSelection(),G=document.createRange();G.selectNode(y.currentTarget),N?.removeAllRanges(),N?.addRange(G);},children:re(O)},`chip-${L}-${Z}`)}return W.includes(`
|
|
82
|
+
`)?W.split(`
|
|
83
|
+
`).map((L,O)=>jsxRuntime.jsxs(ut__namespace.default.Fragment,{children:[L,O<W.split(`
|
|
84
|
+
`).length-1&&jsxRuntime.jsx("br",{})]},`line-${Z}-${O}`)):W}):null;return jsxRuntime.jsx("div",{className:"group flex flex-col",children:jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(te,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(qe,{children:jsxRuntime.jsx("div",{ref:B,contentEditable:!s,suppressContentEditableWarning:true,onInput:k=>{if(s)return;let W=k.target,Z=W.querySelector("[data-chip-id]")!==null,D;if(Z?(D=b(W),D=D.replace(/(\{\{[^}]+\}\})\s{2,}/g,"$1 ").replace(/\s{2,}(\{\{[^}]+\}\})/g," $1")):D=W.textContent||"",D===""){try{let y=document.createRange();y.selectNodeContents(W),y.collapse(!0);let N=window.getSelection();N?.removeAllRanges(),N?.addRange(y),E.current=0;}catch{}J("",0);return}if(D===c)return;let L=window.getSelection(),O=0;if(L&&L.rangeCount>0)try{let y=L.getRangeAt(0);if(Z){let N=0,G=!1,ee=U=>{if(G)return !0;if(U===y.startContainer)return N+=y.startOffset,G=!0,!0;if(U.nodeType===Node.TEXT_NODE){if(!U.parentElement?.closest("[data-chip-id]")){if(U.contains(y.startContainer))return N+=y.startOffset,G=!0,!0;N+=(U.textContent||"").length;}}else if(U.nodeType===Node.ELEMENT_NODE){let _=U;if(_.hasAttribute("data-chip-id")){if(_.contains(y.startContainer)||_===y.startContainer){let dr=_.getAttribute("data-chip-id");return N+=`{{${dr}}}`.length,G=!0,!0}let Ae=_.getAttribute("data-chip-id");return N+=`{{${Ae}}}`.length,!1}else if(_.tagName==="BR")return _===y.startContainer?(G=!0,!0):(N+=1,!1)}for(let _=0;_<U.childNodes.length;_++)if(ee(U.childNodes[_]))return !0;return !1};ee(W),O=N;}else {let N=document.createRange();N.setStart(W,0),N.setEnd(y.startContainer,y.startOffset),O=N.toString().length;}}catch{O=D.length;}E.current=O,J(D,O);},onKeyDown:k=>{if(s)return;let W=window.getSelection();if(!(!W||W.rangeCount===0))try{let Z=W.getRangeAt(0),D=Z.commonAncestorContainer;if(k.key==="ArrowLeft"||k.key==="ArrowRight"){let L=D.nodeType===Node.TEXT_NODE?D.parentElement?.closest("[data-chip-id]"):D.closest("[data-chip-id]");if(L){k.preventDefault();try{let O=document.createRange(),y=window.getSelection();k.key==="ArrowLeft"?O.setStartBefore(L):O.setStartAfter(L),O.collapse(!0),y?.removeAllRanges(),y?.addRange(O);}catch{}}}if(k.key==="Backspace"){let L=null;if(L=(D.nodeType===Node.TEXT_NODE?D.parentElement?.closest("[data-chip-id]"):D.closest("[data-chip-id]"))||null,!L)if(D.nodeType===Node.TEXT_NODE){let O=D;if(Z.startOffset===0&&O.parentElement){let y=O.previousSibling;if(y&&y.nodeType===Node.ELEMENT_NODE){let N=y.closest("[data-chip-id]");N&&(L=N);}}}else {let O=D;if(Z.startOffset>0){let y=O.childNodes[Z.startOffset-1];if(y&&y.nodeType===Node.ELEMENT_NODE){let N=y.closest("[data-chip-id]");N&&(L=N);}}}if(L){k.preventDefault(),k.stopPropagation();let O=L.getAttribute("data-chip-id");if(!O)return;let y=`{{${O}}}`,N=c.indexOf(y);if(N!==-1){let G=c.slice(0,N)+c.slice(N+y.length),ee=m.filter(U=>U.id!==O);E.current=N;try{window.getSelection()?.removeAllRanges();}catch{}g?.(ee),u?.(G);}}}}catch{}},onFocus:k=>{s||(A.onFocus&&A.onFocus(k),v(k));},onBlur:k=>{s||(A.onBlur&&A.onBlur(k),T(k));},className:j(),style:{whiteSpace:"pre-wrap",wordBreak:"break-word",...A.style},"data-placeholder":A.placeholder,children:se()},c===""?"empty":"content")}),t&&jsxRuntime.jsx(ae,{size:o,className:"mt-3",children:t}),typeof r=="string"&&jsxRuntime.jsx($,{size:o,className:"mt-1",children:r}),typeof r=="function"&&p&&jsxRuntime.jsx($,{size:o,className:"mt-1",children:r(p)})]})})}var Ix=e=>tailwindMerge.twMerge("w-full",Vt({isInvalid:e.isInvalid,isDisabled:e.isDisabled,isFocused:e.isFocused}),eo({transparent:e.transparent,isDisabled:e.isDisabled}),X[e.size||"md"].text,X[e.size||"md"].height,X[e.size||"md"].padding,"pl-[var(--control-padding-sm)]","flex items-center gap-0.5",e.className),Vx=({isPlaceholder:e,isDisabled:t,isFocused:r,size:o="md"})=>tailwindMerge.twMerge("outline-none rounded transition-colors box-content tabular-nums text-center",e?"text-text-muted italic":"text-text-body",t?"text-text-disabled cursor-not-allowed":"cursor-text",X[o].text,"px-0.5 -my-0.5",r&&"!outline-[1.5px] !outline-[var(--control-focus-ring-color)] ![--tw-outline-style:solid]",!t&&!r&&"hover:bg-text-body/[0.05]");function kc({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,transparent:i,validationResult:l,...s}){let{isFocused:d}=Ze(),[p,c]=ut.useState(null),u=ut.useRef(null);return ut.useEffect(()=>{let m=h=>{let x=h.target;x.hasAttribute("data-type")&&c(x.getAttribute("data-type"));},g=()=>{c(null);},f=u.current;return f&&(f.addEventListener("focusin",m),f.addEventListener("focusout",g)),()=>{f&&(f.removeEventListener("focusin",m),f.removeEventListener("focusout",g));}},[]),jsxRuntime.jsx(reactAriaComponents.TimeField,{...s,children:({isDisabled:m,isInvalid:g})=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[e&&jsxRuntime.jsx(te,{isRequired:a,tooltip:n,children:e}),jsxRuntime.jsx(reactAriaComponents.DateInput,{ref:u,className:Ix({size:o,transparent:i,isDisabled:m,isInvalid:g,isFocused:d}),children:f=>jsxRuntime.jsx(reactAriaComponents.DateSegment,{segment:f,className:Vx({isPlaceholder:f.isPlaceholder,isDisabled:!f.isEditable,isFocused:p===f.type,size:o})})}),t&&jsxRuntime.jsx(ae,{children:t}),typeof r=="string"?jsxRuntime.jsx($,{children:r}):null]})})}var Gx="flex font-medium justify-center items-center gap-2 text-center transition whitespace-nowrap box-border",Tc={default:{selected:"bg-text-body text-white hover:brightness-[var(--control-hover-opacity)] forced-colors:bg-[ButtonText] forced-colors:text-[ButtonFace] border-2 border-transparent",unselected:"bg-transparent text-text-body border-2 border-border-muted hover:bg-text-body/[0.05] forced-colors:border-[ButtonBorder] forced-colors:bg-[ButtonFace] forced-colors:text-[ButtonText]"},primary:{selected:"bg-action-primary text-white hover:brightness-[var(--control-hover-opacity)] forced-colors:bg-[ButtonText] forced-colors:text-[ButtonFace] border-2 border-transparent",unselected:"bg-transparent text-text-body border-2 border-border-muted hover:bg-text-body/[0.05] forced-colors:border-[ButtonBorder] forced-colors:bg-[ButtonFace] forced-colors:text-[ButtonText]"}},Wx="opacity-[--control-hover-opacity] cursor-not-allowed pointer-events-none grayscale",Kx="opacity-100 cursor-pointer",Jx={"top-right":"-right-2 -top-2","top-left":"-left-2 -top-2","bottom-right":"-right-2 -bottom-2","bottom-left":"-left-2 -bottom-2"},Ux={primary:"bg-action-primary text-white",destructive:"bg-action-destructive text-white"};function Yx(e){let{variant:t="default",size:r="md",isDisabled:o,isSelected:n,borderRadius:a,borderRight:i,borderLeft:l}=e,s=`${Gx} ${n?Tc[t].selected:Tc[t].unselected}`;return s+=` ${X[r].text} ${X[r].height} ${X[r].padding} ${X[r].gap}`,s+=` ${o?Wx:Kx}`,a==="left"&&(s+=" rounded-l-sm"),a==="right"&&(s+=" rounded-r-sm"),i&&(s+=" border-r"),l&&(s+=" border-l"),s+=` ${ce()}`,tailwindMerge.twMerge(s)}function Rc(e){let{className:t,children:r,onPress:o,icon:n,iconPosition:a="left",iconWeight:i,isLoading:l=false,loadingText:s,loadingIndicator:d,size:p="md",badgeNumber:c,badgeVariant:u="primary",badgePosition:m="top-right",...g}=e,f=n?jsxRuntime.jsx(C,{name:n,className:`icon-[--control-icon-size-${p}]`,weight:i}):null,h=()=>{let S=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[a==="left"&&f,r,a==="right"&&f]});return l?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:d||jsxRuntime.jsx(C,{name:"CircleNotch",className:`animate-spin icon-[--control-icon-size-${p}]`,"aria-hidden":"true"})}),jsxRuntime.jsx("div",{className:"invisible","aria-hidden":"true",children:S}),s&&jsxRuntime.jsx("span",{className:"sr-only",role:"status","aria-live":"polite",children:s})]}):S},x=jsxRuntime.jsx(reactAriaComponents.ToggleButton,{onPress:o,...g,className:tailwindMerge.twMerge(Yx(e),t),"aria-busy":l,children:h()});return c&&c>0?jsxRuntime.jsxs("div",{className:"relative",children:[x,jsxRuntime.jsx("span",{className:`absolute ${Jx[m]} flex h-5 w-5 items-center justify-center rounded-full ${Ux[u]} text-xs`,"aria-label":`${c} items`,children:c})]}):x}exports.ActionCell=Ns;exports.ActionMenu=wi;exports.AppShell=Ti;exports.AreaSeries=Gt;exports.AutoMobileRenderer=No;exports.Autocomplete=ro;exports.Avatar=Xi;exports.BREAKPOINTS=st;exports.Badge=zt;exports.BarSeries=Kt;exports.BooleanCell=Ss;exports.Breadcrumb=ao;exports.Breadcrumbs=no;exports.Button=K;exports.Calendar=io;exports.Card=Ve;exports.CardMobileRenderer=So;exports.ChartAxis=wr;exports.ChartBottomBar=mo;exports.ChartContainer=hs;exports.ChartContext=uo;exports.ChartTooltip=fo;exports.Checkbox=Nr;exports.CheckboxGroup=vp;exports.Chip=Ht;exports.ClearButton=Gi;exports.CodeEditor=ls;exports.ColorModeProvider=Hi;exports.CopyToClipboard=co;exports.DataTable=Bs;exports.DateCell=ws;exports.DateField=Ms;exports.DateRangePicker=Is;exports.Description=ae;exports.Dialog=Zt;exports.DialogHeader=$t;exports.Drawer=ca;exports.ErrorBoundary=_t;exports.FieldError=$;exports.FieldGroup=to;exports.FileUpload=Hs;exports.Form=Gs;exports.FormatRegistry=P;exports.Grid=da;exports.Heading=Ee;exports.Icon=C;exports.Input=Wi;exports.InputWrapper=qe;exports.InteractiveMap=ka;exports.Kpi=Ys;exports.KpiGroup=pa;exports.Label=te;exports.LineSeries=Ut;exports.List=qs;exports.ListBox=qf;exports.ListBoxItem=mt;exports.ListHeader=nl;exports.ListItem=il;exports.ListPane=sl;exports.Loader=cl;exports.Logo=jr;exports.MAP_TYPES=Ml;exports.Meter=Vl;exports.Notice=Vo;exports.NoticeContainer=zo;exports.NoticeProvider=Ol;exports.NumberCell=Ps;exports.NumberField=Kl;exports.PageLayout=nt;exports.PlaceSearch=_l;exports.Popover=ft;exports.ProgressBar=tc;exports.Radio=oc;exports.RadioGroup=rc;exports.RangeCalendar=wo;exports.RichTextEditor=ic;exports.SKELETON_SIZES=ht;exports.Section=lc;exports.SegmentedControl=uc;exports.Select=Ao;exports.SelectCell=ks;exports.SideNav=Zr;exports.Skeleton=H;exports.Slider=pc;exports.SplitPane=Uo;exports.StatList=hc;exports.StaticMap=Il;exports.Switch=yc;exports.Tab=Ko;exports.TabList=Wo;exports.TabPanel=Jl;exports.Tabs=Go;exports.TextArea=vc;exports.TextAreaWithChips=wc;exports.TextCell=Ts;exports.TextField=er;exports.TextLink=zn;exports.TimeField=kc;exports.ToggleButton=Rc;exports.Tooltip=Kn;exports.TopNav=fr;exports.autoScaleCurrent=Zc;exports.autoScaleDistance=Xa;exports.autoScaleEnergy=qa;exports.autoScalePower=ad;exports.autoScaleResistance=id;exports.autoScaleVoltage=md;exports.camelCaseToWords=fi;exports.capitalize=pi;exports.celsiusToFahrenheit=sd;exports.celsiusToKelvin=sy;exports.centimetersToInches=Wh;exports.clearColorCache=It;exports.createCategoryColorMap=Gd;exports.createFormat=Fy;exports.createXScale=Un;exports.createYScale=Yn;exports.defaultMargin=le;exports.enumToSentenceCase=ud;exports.exportChart=qn;exports.fahrenheitToCelsius=ld;exports.fahrenheitToKelvin=ly;exports.feetToMeters=Mh;exports.feetToMiles=Ih;exports.formatBoolean=Ga;exports.formatComponentValue=mr;exports.formatCurrency=Ja;exports.formatCurrent=jo;exports.formatDate=Ua;exports.formatDistance=Qa;exports.formatEmptyValue=bo;exports.formatEnergy=on;exports.formatFieldValue=pr;exports.formatInternationalPhone=nn;exports.formatNumber=Ka;exports.formatPhone=_a;exports.formatPhoneNumber=$a;exports.formatPower=cn;exports.formatResistance=un;exports.formatTemperature=si;exports.formatText=yi;exports.formatUSPhone=Ur;exports.formatVoltage=fn;exports.getBadgeClasses=ys;exports.getBooleanBadgeVariant=vs;exports.getCellAlignmentClasses=ra;exports.getCellContainerClasses=ue;exports.getCellTextClasses=ze;exports.getContrastingTextColor=Wd;exports.getDateParts=Th;exports.getDefaultChartColor=kn;exports.getDefaultColors=Bi;exports.getExportFormatName=bm;exports.getFieldGroupStyles=hr;exports.getInputBackgroundStyles=eo;exports.getInputBaseStyles=Je;exports.getInputStateStyles=Vt;exports.getNumericColorClasses=xo;exports.getResolvedColor=Me;exports.getSkeletonSize=Oe;exports.getThemeCategoricalColors=xr;exports.getYFormatSettings=Jt;exports.inchesToCentimeters=Gh;exports.isCustomPinsLayer=va;exports.isExportSupported=gm;exports.isGeoJsonLayer=ya;exports.isLightColor=Mi;exports.isNil=V;exports.isRasterLayer=Ca;exports.isVectorLayer=ha;exports.kelvinToCelsius=cd;exports.kelvinToFahrenheit=cy;exports.kilometersToMiles=Eh;exports.layer=xa;exports.metersToFeet=Bh;exports.metersToMiles=Vh;exports.metersToYards=Hh;exports.milesToFeet=Ya;exports.milesToKilometers=Dh;exports.milesToMeters=zh;exports.parseBoolean=je;exports.resolveValue=Se;exports.snakeCaseToWords=gi;exports.temperatureStringToSymbol=ri;exports.toA=Nh;exports.toActiveInactive=Hc;exports.toAmps=Jr;exports.toBoolean=Qe;exports.toCelsius=ni;exports.toCentimeters=rd;exports.toCheckmark=Wc;exports.toCompactNumber=Qc;exports.toCurrency=Wa;exports.toCustomDateFormat=td;exports.toDateString=qc;exports.toEnabledDisabled=zc;exports.toFahrenheit=oi;exports.toFeet=$o;exports.toFloat=Yc;exports.toFormattedNumber=Xc;exports.toFullDateTime=_c;exports.toGW=ey;exports.toGWh=Za;exports.toGigawatts=ln;exports.toISOString=ed;exports.toInches=nd;exports.toInteger=Uc;exports.toKA=Sh;exports.toKV=xy;exports.toKW=$h;exports.toKelvin=ai;exports.toKiloamps=Qo;exports.toKilohms=ei;exports.toKilometers=qo;exports.toKilovolts=mn;exports.toKilowatts=an;exports.toLowerCase=ci;exports.toMA=Ch;exports.toMV=gy;exports.toMW=_h;exports.toMWh=ja;exports.toMegawatts=sn;exports.toMegohms=ti;exports.toMeters=Zo;exports.toMiles=_o;exports.toMilliamps=Xo;exports.toMillimeters=od;exports.toMilliohms=dn;exports.toMillivolts=pn;exports.toNauticalMiles=Fh;exports.toOhms=Xr;exports.toOnOff=Oc;exports.toPercentage=Jc;exports.toRelativeTime=$c;exports.toScientificNotation=jc;exports.toSecret=pd;exports.toSentenceCase=di;exports.toTemperature=ii;exports.toTitleCase=ui;exports.toTrueFalse=Gc;exports.toUpperCase=li;exports.toV=by;exports.toVolts=Qr;exports.toW=qh;exports.toWatts=Yr;exports.toWh=tn;exports.toYards=en;exports.tokWh=rn;exports.truncateEnd=hi;exports.truncateMiddle=bi;exports.truncateStart=xi;exports.ucFirst=mi;exports.useBreakpoint=za;exports.useChartContext=bt;exports.useColorMode=Re;exports.useComponentFormatter=fh;exports.useDebounce=Wr;exports.useInputFocus=Ze;exports.useLocalStorage=Ha;exports.useMediaQuery=Xe;exports.useNotice=Gl;exports.yardsToMeters=Oh;//# sourceMappingURL=index.cjs.map
|
|
85
85
|
//# sourceMappingURL=index.cjs.map
|