react-semaphor 0.0.245 → 0.0.246

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.
@@ -1,4 +1,4 @@
1
- import { J as D, L as Pe, b as w, c as bs, u as je, j as e, M as ys, O as vs, P as z, Q as Ns, R as Cs, U as Ss, V as ws, W as ks, X as $, Y as de, Z as st, _ as Rt, $ as Ht, a0 as $t, a1 as Pt, a2 as Bt, a3 as Gt, a4 as $s, f as Z, a5 as Ve, a6 as Ut, a7 as tt, a8 as Ze, a9 as Xe, T as zs, e as at, g as Fs, aa as ke, ab as ze, ac as Fe, ad as Le, ae as _e, af as Me, ag as te, ah as Ls, G as o, ai as Ms, aj as Os, ak as Ds, w as nt, v as rt, t as ue, al as Kt, r as Wt, N as it, s as Qt, am as Jt, B as Yt, an as lt, ao as Zt, S as Ts, z as Xt, n as Ps, A as ot, ap as ms, aq as he, ar as ge, as as Re, at as ts, au as ct, av as ea, aw as sa, ax as dt, ay as ta, az as aa, aA as na, aB as ra, aC as ia, aD as xs, aE as la, aF as oa, aG as qe, aH as ps, aI as we, aJ as fs, aK as Bs, aL as ca, aM as da, aN as ha, aO as ua, aP as ma, aQ as us, aR as xa, aS as Gs, aT as pa, aU as Us, aV as fa, aW as ga, aX as ja, aY as ht, l as ba, C as ya, E as Qe, d as va, h as Na, aZ as Ca, i as Sa, o as wa, a_ as ka, m as za, H as as, a$ as Fa, b0 as ut, b1 as mt, b2 as Je, b3 as xt, b4 as Ye, b5 as Ks, b6 as ns, b7 as rs, b8 as is, b9 as pt, K as La, ba as Ma, bb as Oa, bc as As, bd as Oe, be as ft, bf as Da, bg as Ta, bh as Aa, bi as Ia, bj as Ea, bk as Ws, bl as qa, bm as Va, bn as _a, bo as Ra, bp as Ha, bq as $a, br as Pa, bs as Ba, bt as Ne, bu as B, bv as G, bw as Is, bx as U, by as Qs, bz as Ga, bA as Ua, bB as Ka, bC as Wa, bD as Qa, bE as Ja, bF as Ya, bG as Za, bH as Xa, bI as en } from "./index-XCmfOUgI.js";
1
+ import { J as D, L as Pe, b as w, c as bs, u as je, j as e, M as ys, O as vs, P as z, Q as Ns, R as Cs, U as Ss, V as ws, W as ks, X as $, Y as de, Z as st, _ as Rt, $ as Ht, a0 as $t, a1 as Pt, a2 as Bt, a3 as Gt, a4 as $s, f as Z, a5 as Ve, a6 as Ut, a7 as tt, a8 as Ze, a9 as Xe, T as zs, e as at, g as Fs, aa as ke, ab as ze, ac as Fe, ad as Le, ae as _e, af as Me, ag as te, ah as Ls, G as o, ai as Ms, aj as Os, ak as Ds, w as nt, v as rt, t as ue, al as Kt, r as Wt, N as it, s as Qt, am as Jt, B as Yt, an as lt, ao as Zt, S as Ts, z as Xt, n as Ps, A as ot, ap as ms, aq as he, ar as ge, as as Re, at as ts, au as ct, av as ea, aw as sa, ax as dt, ay as ta, az as aa, aA as na, aB as ra, aC as ia, aD as xs, aE as la, aF as oa, aG as qe, aH as ps, aI as we, aJ as fs, aK as Bs, aL as ca, aM as da, aN as ha, aO as ua, aP as ma, aQ as us, aR as xa, aS as Gs, aT as pa, aU as Us, aV as fa, aW as ga, aX as ja, aY as ht, l as ba, C as ya, E as Qe, d as va, h as Na, aZ as Ca, i as Sa, o as wa, a_ as ka, m as za, H as as, a$ as Fa, b0 as ut, b1 as mt, b2 as Je, b3 as xt, b4 as Ye, b5 as Ks, b6 as ns, b7 as rs, b8 as is, b9 as pt, K as La, ba as Ma, bb as Oa, bc as As, bd as Oe, be as ft, bf as Da, bg as Ta, bh as Aa, bi as Ia, bj as Ea, bk as Ws, bl as qa, bm as Va, bn as _a, bo as Ra, bp as Ha, bq as $a, br as Pa, bs as Ba, bt as Ne, bu as B, bv as G, bw as Is, bx as U, by as Qs, bz as Ga, bA as Ua, bB as Ka, bC as Wa, bD as Qa, bE as Ja, bF as Ya, bG as Za, bH as Xa, bI as en } from "./index-uCOEDYik.js";
2
2
  import * as Js from "react";
3
3
  import me, { useState as T, useMemo as gs, useEffect as Y, useRef as He } from "react";
4
4
  /**
@@ -618,7 +618,8 @@ function Dn() {
618
618
  className: Z(
619
619
  "size-3.5 text-muted-foreground hover:cursor-pointer hover:text-foreground group-hover:visible",
620
620
  {
621
- invisible: !u.isDefault
621
+ invisible: !u.isDefault,
622
+ "text-green-500": u.isDefault
622
623
  }
623
624
  ),
624
625
  strokeWidth: 1.5
@@ -1,4 +1,4 @@
1
- "use strict";const e=require("./index-lHh_nXy9.js"),S=require("react");function as(s){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const t in s)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(s,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>s[t]})}}return r.default=s,Object.freeze(r)}const Te=as(S);/**
1
+ "use strict";const e=require("./index-vW_7Osti.js"),S=require("react");function as(s){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const t in s)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(s,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>s[t]})}}return r.default=s,Object.freeze(r)}const Te=as(S);/**
2
2
  * @license lucide-react v0.379.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -163,7 +163,7 @@
163
163
  *
164
164
  * This source code is licensed under the ISC license.
165
165
  * See the LICENSE file in the root directory of this source tree.
166
- */const Is=e.createLucideIcon("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);function Le(s){var r;return{...s,sheets:(r=s==null?void 0:s.sheets)==null?void 0:r.map(t=>{var n;return{...t,frames:(n=t.frames)==null?void 0:n.map(i=>{var x;return{...i,cards:(x=i.cards)==null?void 0:x.map(o=>He(o))}})}})}}function He(s){var r,t,n,i;return{...s,cfg:{...s.cfg,data:{...(r=s.cfg)==null?void 0:r.data,labels:[],datasets:(i=(n=(t=s.cfg)==null?void 0:t.data)==null?void 0:n.datasets)==null?void 0:i.map(x=>({...x,data:[]}))}},customCfg:Ts(s.customCfg),data:[]}}function Ts(s){var r,t;return s?{...s,data:{...s==null?void 0:s.data,labels:[],datasets:(t=(r=s==null?void 0:s.data)==null?void 0:r.datasets)==null?void 0:t.map(n=>({...n,data:[]}))}}:null}async function zs(s,r,t,n){if(!n)return null;const i=JSON.stringify(r),x="https://semaphor.cloud/api/v1/lens";return await e.postRequest(x,n,{name:s,template:i,filterValues:t,operation:"create"})}async function Ce(s,r){if(!r)return null;const{id:t,template:n,filterValues:i,isDefault:x,shared:o}=s,a="https://semaphor.cloud/api/v1/lens";return await e.postRequest(a,r,{lensId:t,template:n,filterValues:i,isDefault:x,shared:o,operation:"update"})}async function Fs(s,r){if(!r)return null;const t="https://semaphor.cloud/api/v1/lens";return await e.postRequest(t,r,{operation:"delete",lensId:s})}function Ms(){const[s,r]=S.useState(""),[t,n]=S.useState(!1),i=e.useDashboardStore(R=>R.lenses),{setLenses:x,setSelectedLensId:o}=e.useDashboardActions(),[a,l]=S.useState(!1),[d,u]=S.useState(!1),j=e.useDashboardStore(R=>R.dashboard),E=e.useDashboardStore(R=>R.filterValues),{authToken:c}=e.useSemaphorContext();async function m(){l(!0);const R=Le(j),h=await zs(s,R,E,c==null?void 0:c.accessToken);h&&(x([...i||[],h]),o(h.id),u(!1)),l(!1)}return e.jsxRuntimeExports.jsxs(e.Dialog,{open:d,onOpenChange:u,children:[e.jsxRuntimeExports.jsx(e.DialogTrigger,{asChild:!0,children:e.jsxRuntimeExports.jsxs(e.Button,{variant:"secondary",className:"h-7 p-2",size:"sm",children:[e.jsxRuntimeExports.jsx(e.Plus,{className:"mr-2 h-4 w-4",strokeWidth:1.5}),"Lens"]})}),e.jsxRuntimeExports.jsxs(e.DialogContent,{className:"sm:max-w-[425px]",children:[e.jsxRuntimeExports.jsxs(e.DialogHeader,{children:[e.jsxRuntimeExports.jsx(e.DialogTitle,{children:"Create Lens"}),e.jsxRuntimeExports.jsx(e.DialogDescription,{children:"Lenses are private by default and are only visible to you."})]}),e.jsxRuntimeExports.jsx("div",{className:"grid gap-4 py-4",children:e.jsxRuntimeExports.jsxs("div",{className:"grid grid-cols-8 items-center gap-4",children:[e.jsxRuntimeExports.jsx(e.Label,{className:"text-right",children:"Name"}),e.jsxRuntimeExports.jsx(e.Input,{value:s,onChange:R=>{r(R.target.value)},id:"name",className:"col-span-7 focus-visible:ring-0 focus-visible:ring-ring focus-visible:ring-offset-0"})]})}),t&&e.jsxRuntimeExports.jsx("p",{className:"text-sm",children:"The lens name already exists. Use a differnet name."}),e.jsxRuntimeExports.jsx(e.DialogFooter,{children:e.jsxRuntimeExports.jsx(e.Button,{size:"sm",variant:"outline",type:"submit",onClick:m,disabled:a,children:a?"Creating...":"Add"})})]})]})}function Os(){const[s,r]=S.useState(!1),t=e.useDashboardStore(u=>u.lenses),n=e.useDashboardStore(u=>u.selectedLensId),{setLenses:i,setSelectedLensId:x}=e.useDashboardActions(),{authToken:o}=e.useSemaphorContext();async function a(u){x(u)}async function l(u){if(await Fs(u,o==null?void 0:o.accessToken)){const E=t==null?void 0:t.filter(c=>c.id!==u);i(E||[]),x("original")}}async function d(u){const j=t==null?void 0:t.map(m=>m.id===u.id?{...m,isDefault:!u.isDefault}:{...m,isDefault:!1});i(j||[]);const E={...u,isDefault:!u.isDefault};await Ce(E,o==null?void 0:o.accessToken);const c=t==null?void 0:t.find(m=>m.isDefault);if(c&&c.id!==u.id){const m={...c,isDefault:!1};await Ce(m,o==null?void 0:o.accessToken)}}return e.jsxRuntimeExports.jsxs(e.DropdownMenu,{open:s,onOpenChange:r,children:[e.jsxRuntimeExports.jsx(e.DropdownMenuTrigger,{asChild:!0,children:e.jsxRuntimeExports.jsx(e.Button,{variant:"ghost",className:"h-7 p-2",children:e.jsxRuntimeExports.jsx(ps,{className:"h-4 w-4",strokeWidth:1.5})})}),e.jsxRuntimeExports.jsxs(e.DropdownMenuContent,{align:"end",className:"w-60",children:[e.jsxRuntimeExports.jsx(e.DropdownMenuLabel,{className:"px-3",children:"Lenses"}),e.jsxRuntimeExports.jsx(e.DropdownMenuSeparator,{}),e.jsxRuntimeExports.jsxs(e.DropdownMenuRadioGroup,{value:n,onValueChange:a,children:[e.jsxRuntimeExports.jsx(e.DropdownMenuRadioItem,{value:"original",children:"Original"}),t==null?void 0:t.map(u=>e.jsxRuntimeExports.jsxs(e.DropdownMenuRadioItem,{className:"group flex justify-between",value:u.id,children:[e.jsxRuntimeExports.jsx("p",{children:u.name}),e.jsxRuntimeExports.jsxs("span",{className:"flex items-center gap-3",children:[e.jsxRuntimeExports.jsx(Es,{onClick:j=>{j.preventDefault(),d(u)},className:e.cn("size-3.5 text-muted-foreground hover:cursor-pointer hover:text-foreground group-hover:visible",{invisible:!u.isDefault}),strokeWidth:1.5}),e.jsxRuntimeExports.jsx(e.Cross2Icon,{onClick:j=>{j.preventDefault(),l(u.id)},className:"invisible size-3.5 text-muted-foreground hover:cursor-pointer hover:text-foreground group-hover:visible",strokeWidth:1.5})]})]},u.id))]})]})]})}function qs(){const{authToken:s}=e.useSemaphorContext(),r=e.useDashboardStore(f=>f.lenses),t=e.useDashboardStore(f=>f.selectedLensId),n=r==null?void 0:r.find(f=>f.id===t),i=e.useDashboardStore(f=>f.dashboard);e.useDashboardStore(f=>f.selectedSheetId);const x=e.useDashboardStore(f=>f.isDashboardEditing),[o,a]=S.useState(!1),l=e.useDashboardStore(f=>f.filterValues),d=e.useDashboardStore(f=>f.isVisualEditing),u=e.useDashboardStore(f=>f.showFilters);e.useDashboardStore(f=>f.showDashboardJSON);const j=e.useDashboardStore(f=>f.onSaveFunction),E=e.useDashboardStore(f=>f.actions.setShowFilters),{addFrame:c,setSelectedFrameId:m}=e.useDashboardStore(f=>f.actions),{getSelectedSheet:R,setIsDashboardEditing:h,setShowDashboardJSON:N}=e.useDashboardStore(f=>f.actions),k=R(),{tenantId:b,endUserId:z}=S.useMemo(()=>e.getTenantAndEndUserId(s==null?void 0:s.accessToken),[s==null?void 0:s.accessToken]),T=S.useMemo(()=>b||z,[b,z]),F=()=>{if(!x||!k)return;const f={id:e.v4(),title:"Title",description:"Description",preferences:{onClickFilter:[{columnIndex:0,expression:""}]},type:"bar",sql:"select COUNT(*) from YOUR_TABLE",data:[]},M={id:e.v4(),cards:[f],activeCardId:f.id};c(k.id,M),m(M.id)},w=()=>{h(!0)};async function y(){if(a(!0),!t||!n)return;const f=Le(i),M=JSON.stringify(f),O={...n,template:M,filterValues:l};await Ce(O,s==null?void 0:s.accessToken),e.Jt.success("Lens saved"),j==null||j(f),a(!1)}return d?null:e.jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-between gap-2 border-b bg-muted/50 py-2 pl-3 pr-2",role:"dashboard-controls",children:[!d&&e.jsxRuntimeExports.jsx("div",{className:"flex items-center gap-3",children:e.jsxRuntimeExports.jsx(e.Label,{children:n==null?void 0:n.name})}),e.jsxRuntimeExports.jsxs("div",{className:"flex gap-2",children:[x&&!d&&T&&e.jsxRuntimeExports.jsx(Ms,{}),!d&&T&&e.jsxRuntimeExports.jsx(Os,{}),x&&!d&&e.jsxRuntimeExports.jsxs(e.Button,{variant:"secondary",className:"h-7 p-2",size:"sm",disabled:!x,onClick:F,children:[e.jsxRuntimeExports.jsx(e.Plus,{className:"mr-2 h-4 w-4",strokeWidth:1.5}),"Frame"]}),!x&&e.jsxRuntimeExports.jsx(e.Button,{variant:"ghost",className:"h-7 p-2",onClick:w,size:"sm",children:e.jsxRuntimeExports.jsx(Ve,{className:"h-4 w-4",strokeWidth:1.5})}),x&&!d&&e.jsxRuntimeExports.jsx(e.Button,{variant:"ghost",role:"close",className:"h-7 p-2",onClick:()=>{h(!1),N(!1)},size:"sm",children:e.jsxRuntimeExports.jsx(e.Cross2Icon,{className:"h-4 w-4",strokeWidth:1.5})}),x&&!d&&T&&e.jsxRuntimeExports.jsx(e.Button,{className:"h-7 p-2",variant:"ghost",disabled:o,onClick:y,size:"sm",children:e.jsxRuntimeExports.jsx(Ns,{className:"h-4 w-4",strokeWidth:1.5})}),!u&&!d&&x&&e.jsxRuntimeExports.jsx(e.Button,{className:"h-7 p-2",variant:"ghost",onClick:()=>E(!0),size:"sm",children:e.jsxRuntimeExports.jsx(e.Filter,{className:"h-4 w-4",strokeWidth:1.5})}),!d&&x&&!1,!d&&!1]})]})}function le({title:s,items:r,value:t,isLoading:n,isError:i,connectionTooltip:x,onChange:o,showNone:a=!1,className:l,showIcon:d=!0,disabled:u=!1}){const j=n?"Loading...":i?"Error":t;function E(){if(s==="Connection")return e.jsxRuntimeExports.jsx(Cs,{className:"size-4 rotate-90"});if(s==="Database")return e.jsxRuntimeExports.jsx(us,{className:"size-4"});if(s==="Schema")return e.jsxRuntimeExports.jsx(ys,{className:"size-4"});if(s==="Table")return e.jsxRuntimeExports.jsx(e.Table,{className:"size-4"});if(s==="Model")return e.jsxRuntimeExports.jsx(cs,{className:"size-4"})}return e.jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2",children:[d&&e.jsxRuntimeExports.jsx("div",{className:"shrink-0",children:x?e.jsxRuntimeExports.jsxs(e.Tooltip,{children:[e.jsxRuntimeExports.jsx(e.TooltipTrigger,{children:E()}),e.jsxRuntimeExports.jsx(e.TooltipContent,{className:"text-xs",align:"start",children:x})]}):E()}),e.jsxRuntimeExports.jsxs(e.Select,{disabled:u,value:j,onValueChange:o,children:[e.jsxRuntimeExports.jsx(e.SelectTrigger,{className:e.cn("h-9 w-full focus:ring-1 focus:ring-offset-0",l),children:e.jsxRuntimeExports.jsx(e.SelectValue,{placeholder:n?"Loading...":i?"Error":`Select ${s}`})}),e.jsxRuntimeExports.jsx(e.SelectContent,{children:e.jsxRuntimeExports.jsxs(e.SelectGroup,{children:[n?e.jsxRuntimeExports.jsx(e.SelectLabel,{children:"Loading..."}):e.jsxRuntimeExports.jsx(e.SelectLabel,{children:s}),e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[a&&e.jsxRuntimeExports.jsx(e.SelectItem,{value:"none",children:"None"},"none"),r&&r.map((c,m)=>e.jsxRuntimeExports.jsx(e.SelectItem,{value:c.id,children:c.name},m))]}),(n||i)&&e.jsxRuntimeExports.jsx(e.SelectItem,{value:j,children:j})]})})]})]})}function Vs({column:s}){const[r,t]=S.useState(!1),n=e.useEditorStore(c=>c.selectedTableName),i=e.useEditorStore(c=>c.selectedSchemaName),x=e.useEditorStore(c=>c.selectedDatamodelId),o=e.useEditorStore(c=>c.sqlGen),{modelItems:a}=oe(),l=e.useEditorStore(c=>c.actions.setSqlGen),d=e.useEditorStore(c=>c.actions.setCardSql),u=e.useEditorStore(c=>c.actions.setRunSql);function j(c,m){var k;const R=e.createSqlGenConfig(c,o,m),h=(k=a==null?void 0:a.find(b=>b.id===x))==null?void 0:k.name;l(R);const N=e.getSql(R,e.fmt(i||""),e.fmt(n),h);N&&(d(N),u(!0)),t(!1)}function E(){return e.jsxRuntimeExports.jsxs("ul",{className:"text-xs",children:[e.jsxRuntimeExports.jsx("li",{onClick:()=>j(s,"COUNT"),className:"cursor-pointer p-1 px-3 transition-colors hover:bg-muted",children:"Count"}),e.jsxRuntimeExports.jsx("li",{onClick:()=>j(s,"AVG"),className:"cursor-pointer p-1 px-3 transition-colors hover:bg-muted",children:"Avg"}),e.jsxRuntimeExports.jsx("li",{onClick:()=>j(s,"SUM"),className:"cursor-pointer p-1 px-3 transition-colors hover:bg-muted",children:"Sum"}),e.jsxRuntimeExports.jsx("li",{onClick:()=>j(s,"MAX"),className:"cursor-pointer p-1 px-3 transition-colors hover:bg-muted",children:"Max"}),e.jsxRuntimeExports.jsx("li",{onClick:()=>j(s,"MIN"),className:"cursor-pointer p-1 px-3 transition-colors hover:bg-muted",children:"Min"})]})}return e.jsxRuntimeExports.jsxs(e.HoverCard,{openDelay:0,open:r,onOpenChange:t,children:[e.jsxRuntimeExports.jsx(e.HoverCardTrigger,{asChild:!0,children:e.jsxRuntimeExports.jsx(ds,{className:"invisible size-3.5 cursor-pointer text-foreground/40 group-hover:visible"})}),e.jsxRuntimeExports.jsx(e.HoverCardContent,{align:"center",className:"w-20 rounded-md p-0 shadow-none",children:E()})]})}function Pe({column:s}){return e.jsxRuntimeExports.jsxs(e.Tooltip,{children:[e.jsxRuntimeExports.jsx(e.$a093c7e1ec25a057$export$8c610744efcf8a1d,{asChild:!0,children:e.TEXT_DATA_TYPES.includes(s.data_type.toLowerCase())?e.jsxRuntimeExports.jsx(ke,{className:"size-3"}):e.NUMBER_DATA_TYPES.includes(s.data_type.toLowerCase())?e.jsxRuntimeExports.jsx(js,{className:"size-3"}):e.DATE_DATA_TYPES.includes(s.data_type.toLowerCase())?e.jsxRuntimeExports.jsx(e.Calendar,{className:"size-3"}):e.BOOLEAN_DATA_TYPES.includes(s.data_type.toLowerCase())?e.jsxRuntimeExports.jsx(As,{className:"size-3"}):e.jsxRuntimeExports.jsx(ws,{className:"size-3"})}),e.jsxRuntimeExports.jsx(e.TooltipContent,{children:e.jsxRuntimeExports.jsx("p",{className:"font-mono text-xs",children:s.data_type})})]})}function _s({schemaName:s,tableName:r,columns:t,status:n}){const i=e.useEditorStore(y=>y.sqlGen),x=e.useEditorStore(y=>y.selectedConnectionId),o=e.useEditorStore(y=>y.selectedDatabaseName),a=e.useEditorStore(y=>y.selectedSchemaName),l=e.useEditorStore(y=>y.selectedTableName),d=e.useEditorStore(y=>y.selectedDatamodelId),u=e.useDashboardStore(y=>y.dashboard.aiScopeTables),{setAIScopeTables:j}=e.useDashboardStore(y=>y.actions),E=e.useEditorStore(y=>y.actions.setRunSql),c=e.useEditorStore(y=>y.actions.setSqlGen),m=e.useEditorStore(y=>y.actions.setIsShowingVisual),R=e.useEditorStore(y=>y.actions.setCardSql),{connectionType:h,modelItems:N}=oe();function k(y){var D;const f=e.createSqlGenConfig(y,i);c(f);const M=(D=N==null?void 0:N.find(q=>q.id===d))==null?void 0:D.name,O=e.getSql(f,e.fmt(s),e.fmt(r),M);O&&(R(O),E(!0))}function b(){return(u==null?void 0:u.find(y=>y.connectinonId===x&&y.tableName===l))!==void 0}function z(y){if(y===!0&&l&&x){const f={connectinonId:x,connectionType:h,databaseName:o,schemaName:a,tableName:l},O=[...u||[],f].filter((D,q,P)=>P.findIndex(_=>_.connectinonId===D.connectinonId&&_.tableName===D.tableName)===q);j(O),e.Jt.success(`Added '${l}' to AI Scope`,{position:"top-right",duration:2500,richColors:!0})}else{const f=(u||[]).filter(M=>M.connectinonId!==x&&M.tableName!==l);j(f),e.Jt(`Removed '${l}' from AI Scope`,{position:"top-right",duration:2e3,richColors:!0})}}function T(){var D;let y=e.getQualifiedTableName(s,r);const f=(D=N==null?void 0:N.find(q=>q.id===d))==null?void 0:D.name;console.log("modelName",f),d&&d!=="none"&&(y=`${e.DATAMODEL_NAMESPCACE}.${f}`);let M=y;return(q=>/[A-Z]/.test(q))(r)&&(M=M.split(".").map(P=>`"${P}"`).join(".")),M}function F(){const y=T();m(!1);const f=h==="MSSQL"?`SELECT top 10 * FROM ${y}`:`SELECT * FROM ${y} LIMIT 10`;R(f),E(!0)}function w(){const y=T();R(`SELECT COUNT(*) as count FROM ${y}`),E(!0)}return e.jsxRuntimeExports.jsxs("div",{className:"flex grow flex-col space-y-4 px-4",children:[e.jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-center gap-1",children:[e.jsxRuntimeExports.jsx(e.Toggle,{title:`${b()?"Remove from":"Add to"} AI Scope`,pressed:b(),onPressedChange:z,variant:"outline",className:"h-9 px-2",children:e.jsxRuntimeExports.jsx(e.Bot,{className:e.cn("size-4",{"text-primary":b(),"text-muted-foreground":!b()})})}),e.jsxRuntimeExports.jsxs(e.Button,{disabled:n!=="Success",onClick:F,size:"sm",variant:"secondary",className:"flex",children:[n!=="Success"?e.jsxRuntimeExports.jsx(ce,{className:"mr-2 h-4 w-4 animate-spin text-foreground/50"}):e.jsxRuntimeExports.jsx(Ls,{className:"mr-2 size-4"}),"Top 10"]}),e.jsxRuntimeExports.jsxs(e.Button,{disabled:n!=="Success",onClick:w,size:"sm",variant:"secondary",className:"flex",children:[n!=="Success"?e.jsxRuntimeExports.jsx(ce,{className:"mr-2 h-4 w-4 animate-spin text-foreground/50"}):e.jsxRuntimeExports.jsx(ks,{className:"mr-2 size-4"}),"Count"]})]}),e.jsxRuntimeExports.jsxs(e.ScrollArea,{className:"flex-1 basis-0 overflow-y-auto border-b border-t border-muted py-3",children:[t==null?void 0:t.map(y=>e.jsxRuntimeExports.jsxs("div",{onClick:()=>k(y),className:e.cn("group mx-3 flex cursor-pointer items-center justify-between rounded px-2 py-[6px] text-sm transition-colors hover:bg-muted/50",{"bg-muted":e.isColumnInSqlGen(y,i)}),children:[e.jsxRuntimeExports.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsxRuntimeExports.jsx(Pe,{column:y}),e.jsxRuntimeExports.jsx("span",{children:y.column_name})]}),e.jsxRuntimeExports.jsx("div",{onClick:f=>f.stopPropagation(),className:"flex items-center justify-end",children:e.NUMBER_DATA_TYPES.includes(y.data_type)&&e.jsxRuntimeExports.jsx(Vs,{column:y})})]},y.column_name)),e.jsxRuntimeExports.jsx(e.ScrollBar,{orientation:"vertical"}),e.jsxRuntimeExports.jsx(e.ScrollBar,{orientation:"horizontal"})]})]})}function oe(s,r){var pe,de,he,je,p;let t=S.useMemo(()=>[],[]);const n=e.useSemaphorContext().authToken||s,i=e.useEditorStore(g=>g.selectedConnectionId),x=e.useEditorStore(g=>g.selectedDatamodelId),o=e.useEditorStore(g=>g.selectedDatabaseName),a=e.useEditorStore(g=>g.selectedSchemaName),l=e.useEditorStore(g=>g.selectedTableName),d=e.useEditorStore(g=>g.actions.setCurrentColumns),u=e.useEditorStore(g=>g.actions.setSelectedConnectionId),j=e.useEditorStore(g=>g.actions.setSelectedDatamodelId),E=e.useEditorStore(g=>g.actions.setSelectedDatabaseName),c=e.useEditorStore(g=>g.actions.setSelectedSchemaName),m=e.useEditorStore(g=>g.actions.setSelectedTableName),R=e.useEditorStore(g=>g.actions.setCardSql);function h(g){return i&&o&&a&&o!=="NA"?!0:i&&g==="API"?!1:!!(i&&g==="S3")}function N(g){return!!(i&&o&&o!=="NA"&&a&&l||i&&(g==="S3"||g==="API")||x&&x)}function k(g){return i&&g?!(g==="API"||g==="S3"):!1}const{data:b,isLoading:z,isError:T}=e.useQuery({queryKey:["connections"],queryFn:()=>e.getRequest("https://semaphor.cloud/api/v1/connections",(n==null?void 0:n.accessToken)||""),enabled:!!(n!=null&&n.accessToken)}),{data:F,isLoading:w,isError:y}=e.useQuery({queryKey:["models",i],queryFn:()=>e.getRequest("https://semaphor.cloud/api/v1/datamodels",(n==null?void 0:n.accessToken)||"",{connection_id:i}),enabled:!!(n!=null&&n.accessToken)&&!!i}),f=b==null?void 0:b.connections.find(g=>g.id===i),M=f==null?void 0:f.type,O=(f==null?void 0:f.type)==="API"||(f==null?void 0:f.type)==="S3",{data:D,isLoading:q,isFetching:P,isError:_,refetch:K}=e.useQuery({queryKey:["databases",i],queryFn:()=>e.getRequest("https://semaphor.cloud/api/v1/databases",(n==null?void 0:n.accessToken)||"",{connection_id:i}),enabled:k(M)}),{data:V,isLoading:W,isFetching:v,isError:L,refetch:H}=e.useQuery({queryKey:["schemas",i,o],queryFn:()=>e.getRequest("https://semaphor.cloud/api/v1/schemas",(n==null?void 0:n.accessToken)||"",{connection_id:i,database_name:o}),enabled:!!i&&!!o&&!O&&o!=="NA"}),{data:C,isLoading:A,isFetching:$,isError:I,refetch:G}=e.useQuery({queryKey:["tables",i,o,a],queryFn:()=>e.getRequest("https://semaphor.cloud/api/v1/tables",(n==null?void 0:n.accessToken)||"",{connection_id:i,database_name:o,schema_name:a}),enabled:h(M)}),{data:Q,isLoading:te,isFetching:ee,isError:B}=e.useQuery({queryKey:["columns",i,o,x,a,l],queryFn:()=>e.getRequest("https://semaphor.cloud/api/v1/columns",(n==null?void 0:n.accessToken)||"",{connection_id:i,datamodel_id:x||"",database_name:o,schema_name:a,table_name:l}),enabled:N(M)});S.useEffect(()=>{d(t)},[Q,d,t]),S.useEffect(()=>{},[O,R,m,c,E,f]);const J=(f==null?void 0:f.type)==="API"?(pe=f==null?void 0:f.type)==null?void 0:pe.toLowerCase():l||"",Y=O?"":a||"";function ne(g){c(g),m("")}function X(g){E(g==="none"?"":g),c(""),m(""),g!=="none"&&g!==""&&j("")}function se(g){u(g)}function Ae(g){j(g==="none"?"":g),g!=="none"&&g!==""&&E("")}D&&((de=D==null?void 0:D.databases)==null?void 0:de.length)>0,V&&((he=V==null?void 0:V.schemas)==null?void 0:he.length)>0,Q&&((je=Q==null?void 0:Q.columns)==null?void 0:je.length)>0&&(t=Q.columns.map(g=>({...g,data_type:g.data_type.toLowerCase()}))),_&&(t=[]),(B||T)&&(t=[]);const ie=b==null?void 0:b.connections.map(g=>({id:g.id,name:g.name,type:g.type})),be=(p=F==null?void 0:F.datamodels)==null?void 0:p.map(g=>({id:g.id,name:g.name})),me=D==null?void 0:D.databases.map(g=>({id:g.database_name,name:g.database_name})),Se=V==null?void 0:V.schemas.map(g=>({id:g.schema_name,name:g.schema_name})),ye=C==null?void 0:C.tables.map(g=>({id:g.table_name,name:g.table_name}));return{connectionItems:ie,isConnectionsLoading:z,isConnectionsError:T,modelItems:be,isModelsLoading:w,isModelsError:y,databaseItems:me,isDatabasesLoadingOrFetching:q||P,isDatabaseError:_,schemaItems:Se,isSchemaLoadingOrFetching:W||v,isSchemaError:L,tableItems:ye,isTableLoadingOrFetching:A||$,isTableError:I,columns:t,isColumnsLoadingOrFetching:te||ee,isColumnsError:B,isNonDbConnection:O,connectionType:M,tableName:J,schemaName:Y,handleConnectionChange:se,handleDatamodelChange:Ae,handleDatabaseChange:X,handleSchemaChange:ne}}function $e({ColumnsComponent:s}){var $;const r=e.useEditorStore(I=>I.selectedConnectionId),t=e.useEditorStore(I=>I.selectedDatamodelId),n=e.useEditorStore(I=>I.selectedDatabaseName),i=e.useEditorStore(I=>I.selectedSchemaName),x=e.useEditorStore(I=>I.selectedTableName),o=e.useEditorStore(I=>I.actions.setSelectedTableName),{connectionItems:a,modelItems:l,schemaItems:d,databaseItems:u,tableItems:j,columns:E,isConnectionsLoading:c,isModelsLoading:m,isConnectionsError:R,isModelsError:h,isDatabasesLoadingOrFetching:N,isDatabaseError:k,isSchemaLoadingOrFetching:b,isSchemaError:z,isColumnsError:T,isColumnsLoadingOrFetching:F,isTableLoadingOrFetching:w,isTableError:y,connectionType:f,isNonDbConnection:M,handleConnectionChange:O,handleDatabaseChange:D,handleSchemaChange:q,handleDatamodelChange:P,tableName:_,schemaName:K}=oe();function V(){return s?s(K,_,E):e.jsxRuntimeExports.jsx(_s,{schemaName:K,tableName:_,columns:E,status:F?"Loading...":T?"Error":"Success"})}function W(){window.location.href="mailto:support@semaphor.cloud?subject=Help&body=I need help with..."}function v(){if(!r||f==="S3"||f==="API")return null;if(!t||t==="none")return e.jsxRuntimeExports.jsx(le,{showNone:!0,onChange:D,isError:k,isLoading:N,items:u,value:n||"",title:"Database"})}function L(){if(r&&!M&&(!n||n==="none")&&(!t||t==="none"))return e.jsxRuntimeExports.jsxs("div",{className:"grid grid-cols-3",children:[e.jsxRuntimeExports.jsx("div",{className:"col-span-1 grid place-items-center",children:e.jsxRuntimeExports.jsx(e.Separator,{})}),e.jsxRuntimeExports.jsx("div",{className:"col-span-1 grid place-items-center",children:e.jsxRuntimeExports.jsx(e.Label,{children:"OR"})}),e.jsxRuntimeExports.jsx("div",{className:"col-span-1 grid place-items-center",children:e.jsxRuntimeExports.jsx(e.Separator,{})})]})}function H(){if(!r||f==="S3"||f==="API")return null;if(!n||n==="none")return e.jsxRuntimeExports.jsx(le,{showNone:!0,onChange:P,isError:h,isLoading:m,items:l,value:t||"",title:"Model"})}function C(){return!r||f==="S3"||f==="API"||!n||n==="none"?null:e.jsxRuntimeExports.jsx(le,{onChange:q,isError:z,isLoading:b,items:d,value:i||"",title:"Schema"})}function A(){function I(){let G=!1;return f==="API"?(G=!1,G):((f==="S3"||r&&n&&n!=="none"&&i)&&(G=!0),G)}return I()?e.jsxRuntimeExports.jsx(le,{onChange:o,isError:y,items:j,isLoading:w,value:x||"",title:"Table"}):null}return e.jsxRuntimeExports.jsxs("aside",{className:"xbg-red-100 flex grow flex-col justify-between",children:[e.jsxRuntimeExports.jsxs("section",{className:"space-y-3 px-6 py-4",children:[e.jsxRuntimeExports.jsx(le,{items:a,title:"Connection",value:r||"",onChange:O,isLoading:c,isError:R,connectionTooltip:(($=a==null?void 0:a.find(I=>I.id===r))==null?void 0:$.type)||""}),H(),L(),v(),C(),A()]}),V(),e.jsxRuntimeExports.jsx("div",{className:"flex items-end justify-center gap-2 px-6 py-4",children:e.jsxRuntimeExports.jsxs(e.Button,{onClick:W,size:"sm",variant:"secondary",className:"w-full",children:[e.jsxRuntimeExports.jsx(Ss,{className:"mr-2 size-4"}),"Help"]})})]})}function Bs(s){const r=s.toUpperCase().indexOf("WHERE"),t=s.toUpperCase().indexOf("GROUP BY"),n=s.toUpperCase().indexOf("LIMIT"),i=s.toUpperCase().indexOf("ORDER BY");let x=s.length;if(i!==-1&&(x=i),n!==-1&&n<x&&(x=n),r!==-1){const o=s.substring(0,r),a=s.substring(r);return`${o} {{ filters | where }} AND ${a.substring(6)}`}else if(t!==-1){const o=s.substring(0,t),a=s.substring(t);return`${o} {{ filters | where }} ${a}`}else{const o=s.substring(0,x),a=s.substring(x);return`${o} {{ filters | where }} ${a}`}}function Hs({error:s,setShowAIDialog:r,setUserInputforAI:t,setTriggerAIRun:n}){return e.jsxRuntimeExports.jsxs(e.HoverCard,{openDelay:0,children:[e.jsxRuntimeExports.jsx(e.HoverCardTrigger,{asChild:!0,children:e.jsxRuntimeExports.jsx(e.Button,{variant:"link",className:"h-5 p-0",children:e.jsxRuntimeExports.jsx(xs,{className:"h-4 w-4 text-red-500"})})}),e.jsxRuntimeExports.jsx(e.HoverCardContent,{align:"start",className:"min-w-fit max-w-[500px]",children:e.jsxRuntimeExports.jsx("div",{className:"flex justify-between space-x-4",children:e.jsxRuntimeExports.jsxs("div",{className:"flex grow flex-col space-y-2",children:[e.jsxRuntimeExports.jsx(e.ScrollArea,{className:"max-h-[250px] min-h-0 overflow-scroll",children:e.jsxRuntimeExports.jsx("p",{className:"overflow-auto rounded-md bg-muted p-2 text-xs leading-relaxed",children:s})}),e.jsxRuntimeExports.jsxs(e.Button,{onClick:()=>{r(!0),t(s),n(!0)},size:"sm",variant:"outline",children:[e.jsxRuntimeExports.jsx(hs,{className:"mr-2 h-4 w-4"}),"Debug with AI"]})]})})})]})}function Ps({text:s,onCheckedChange:r,checked:t}){return e.jsxRuntimeExports.jsxs("div",{className:"xbg-red-100 ml-6 flex items-center gap-2",children:[e.jsxRuntimeExports.jsx(e.Checkbox,{checked:t,onCheckedChange:r}),e.jsxRuntimeExports.jsx("label",{className:"text-xs leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:s})]})}function $s(){const{authToken:s}=e.useSemaphorContext(),r=e.useEditorStore(x=>x.selectedConnectionId),{data:t}=e.useQuery({queryKey:["connections"],queryFn:()=>e.getRequest("https://semaphor.cloud/api/v1/connections",(s==null?void 0:s.accessToken)||""),enabled:!!(s!=null&&s.accessToken)}),n=t==null?void 0:t.connections.find(x=>x.id===r);return n==null?void 0:n.type}function Gs(){const{authToken:s}=e.useSemaphorContext(),r=S.useRef(null),t=e.useEditorStore(l=>l.applyFilters),[n,i]=S.useState(""),x=e.useEditorStore(l=>l.filterValues),o=e.useEditorStore(l=>l.card.sql),a=$s();return e.jsxRuntimeExports.jsxs(e.HoverCard,{openDelay:0,onOpenChange:async l=>{if(!l)return;console.log("onOpenChange");const d=await e.postRequest("https://semaphor.cloud/api/v1/filter-sql",(s==null?void 0:s.accessToken)||"",{sql:o,active_filters:x,connection_type:a});console.log(d),d.sql?(console.log(d.records),i(d.sql)):i("Error")},children:[e.jsxRuntimeExports.jsx(e.HoverCardTrigger,{asChild:!0,children:t&&e.jsxRuntimeExports.jsx("p",{className:"p-0 text-xs hover:cursor-pointer",children:"|  Filter Query"})}),e.jsxRuntimeExports.jsxs(e.HoverCardContent,{align:"end",className:"w-[600px]",children:[e.jsxRuntimeExports.jsx("div",{className:"flex justify-between space-x-4",children:e.jsxRuntimeExports.jsx("div",{className:"rounded-sm bg-muted p-2",children:e.jsxRuntimeExports.jsxs("code",{ref:r,className:"font-mono text-sm",children:[n,e.jsxRuntimeExports.jsx(e.ClipboardCopyIcon,{onClick:()=>e.copyToClipboard(r),className:"ml-3 inline-block h-4 w-4 opacity-70 hover:cursor-pointer hover:opacity-100"})]})})}),e.jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2 pt-2",children:[e.jsxRuntimeExports.jsx(e.InfoCircledIcon,{className:"h-4 w-4 opacity-70"}),e.jsxRuntimeExports.jsx("span",{className:"text-xs text-muted-foreground",children:"A preview of the query with filters applied."})]})]})]})}const Qs=`
166
+ */const Is=e.createLucideIcon("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);function Le(s){var r;return{...s,sheets:(r=s==null?void 0:s.sheets)==null?void 0:r.map(t=>{var n;return{...t,frames:(n=t.frames)==null?void 0:n.map(i=>{var x;return{...i,cards:(x=i.cards)==null?void 0:x.map(o=>He(o))}})}})}}function He(s){var r,t,n,i;return{...s,cfg:{...s.cfg,data:{...(r=s.cfg)==null?void 0:r.data,labels:[],datasets:(i=(n=(t=s.cfg)==null?void 0:t.data)==null?void 0:n.datasets)==null?void 0:i.map(x=>({...x,data:[]}))}},customCfg:Ts(s.customCfg),data:[]}}function Ts(s){var r,t;return s?{...s,data:{...s==null?void 0:s.data,labels:[],datasets:(t=(r=s==null?void 0:s.data)==null?void 0:r.datasets)==null?void 0:t.map(n=>({...n,data:[]}))}}:null}async function zs(s,r,t,n){if(!n)return null;const i=JSON.stringify(r),x="https://semaphor.cloud/api/v1/lens";return await e.postRequest(x,n,{name:s,template:i,filterValues:t,operation:"create"})}async function Ce(s,r){if(!r)return null;const{id:t,template:n,filterValues:i,isDefault:x,shared:o}=s,a="https://semaphor.cloud/api/v1/lens";return await e.postRequest(a,r,{lensId:t,template:n,filterValues:i,isDefault:x,shared:o,operation:"update"})}async function Fs(s,r){if(!r)return null;const t="https://semaphor.cloud/api/v1/lens";return await e.postRequest(t,r,{operation:"delete",lensId:s})}function Ms(){const[s,r]=S.useState(""),[t,n]=S.useState(!1),i=e.useDashboardStore(R=>R.lenses),{setLenses:x,setSelectedLensId:o}=e.useDashboardActions(),[a,l]=S.useState(!1),[d,u]=S.useState(!1),j=e.useDashboardStore(R=>R.dashboard),E=e.useDashboardStore(R=>R.filterValues),{authToken:c}=e.useSemaphorContext();async function m(){l(!0);const R=Le(j),h=await zs(s,R,E,c==null?void 0:c.accessToken);h&&(x([...i||[],h]),o(h.id),u(!1)),l(!1)}return e.jsxRuntimeExports.jsxs(e.Dialog,{open:d,onOpenChange:u,children:[e.jsxRuntimeExports.jsx(e.DialogTrigger,{asChild:!0,children:e.jsxRuntimeExports.jsxs(e.Button,{variant:"secondary",className:"h-7 p-2",size:"sm",children:[e.jsxRuntimeExports.jsx(e.Plus,{className:"mr-2 h-4 w-4",strokeWidth:1.5}),"Lens"]})}),e.jsxRuntimeExports.jsxs(e.DialogContent,{className:"sm:max-w-[425px]",children:[e.jsxRuntimeExports.jsxs(e.DialogHeader,{children:[e.jsxRuntimeExports.jsx(e.DialogTitle,{children:"Create Lens"}),e.jsxRuntimeExports.jsx(e.DialogDescription,{children:"Lenses are private by default and are only visible to you."})]}),e.jsxRuntimeExports.jsx("div",{className:"grid gap-4 py-4",children:e.jsxRuntimeExports.jsxs("div",{className:"grid grid-cols-8 items-center gap-4",children:[e.jsxRuntimeExports.jsx(e.Label,{className:"text-right",children:"Name"}),e.jsxRuntimeExports.jsx(e.Input,{value:s,onChange:R=>{r(R.target.value)},id:"name",className:"col-span-7 focus-visible:ring-0 focus-visible:ring-ring focus-visible:ring-offset-0"})]})}),t&&e.jsxRuntimeExports.jsx("p",{className:"text-sm",children:"The lens name already exists. Use a differnet name."}),e.jsxRuntimeExports.jsx(e.DialogFooter,{children:e.jsxRuntimeExports.jsx(e.Button,{size:"sm",variant:"outline",type:"submit",onClick:m,disabled:a,children:a?"Creating...":"Add"})})]})]})}function Os(){const[s,r]=S.useState(!1),t=e.useDashboardStore(u=>u.lenses),n=e.useDashboardStore(u=>u.selectedLensId),{setLenses:i,setSelectedLensId:x}=e.useDashboardActions(),{authToken:o}=e.useSemaphorContext();async function a(u){x(u)}async function l(u){if(await Fs(u,o==null?void 0:o.accessToken)){const E=t==null?void 0:t.filter(c=>c.id!==u);i(E||[]),x("original")}}async function d(u){const j=t==null?void 0:t.map(m=>m.id===u.id?{...m,isDefault:!u.isDefault}:{...m,isDefault:!1});i(j||[]);const E={...u,isDefault:!u.isDefault};await Ce(E,o==null?void 0:o.accessToken);const c=t==null?void 0:t.find(m=>m.isDefault);if(c&&c.id!==u.id){const m={...c,isDefault:!1};await Ce(m,o==null?void 0:o.accessToken)}}return e.jsxRuntimeExports.jsxs(e.DropdownMenu,{open:s,onOpenChange:r,children:[e.jsxRuntimeExports.jsx(e.DropdownMenuTrigger,{asChild:!0,children:e.jsxRuntimeExports.jsx(e.Button,{variant:"ghost",className:"h-7 p-2",children:e.jsxRuntimeExports.jsx(ps,{className:"h-4 w-4",strokeWidth:1.5})})}),e.jsxRuntimeExports.jsxs(e.DropdownMenuContent,{align:"end",className:"w-60",children:[e.jsxRuntimeExports.jsx(e.DropdownMenuLabel,{className:"px-3",children:"Lenses"}),e.jsxRuntimeExports.jsx(e.DropdownMenuSeparator,{}),e.jsxRuntimeExports.jsxs(e.DropdownMenuRadioGroup,{value:n,onValueChange:a,children:[e.jsxRuntimeExports.jsx(e.DropdownMenuRadioItem,{value:"original",children:"Original"}),t==null?void 0:t.map(u=>e.jsxRuntimeExports.jsxs(e.DropdownMenuRadioItem,{className:"group flex justify-between",value:u.id,children:[e.jsxRuntimeExports.jsx("p",{children:u.name}),e.jsxRuntimeExports.jsxs("span",{className:"flex items-center gap-3",children:[e.jsxRuntimeExports.jsx(Es,{onClick:j=>{j.preventDefault(),d(u)},className:e.cn("size-3.5 text-muted-foreground hover:cursor-pointer hover:text-foreground group-hover:visible",{invisible:!u.isDefault,"text-green-500":u.isDefault}),strokeWidth:1.5}),e.jsxRuntimeExports.jsx(e.Cross2Icon,{onClick:j=>{j.preventDefault(),l(u.id)},className:"invisible size-3.5 text-muted-foreground hover:cursor-pointer hover:text-foreground group-hover:visible",strokeWidth:1.5})]})]},u.id))]})]})]})}function qs(){const{authToken:s}=e.useSemaphorContext(),r=e.useDashboardStore(f=>f.lenses),t=e.useDashboardStore(f=>f.selectedLensId),n=r==null?void 0:r.find(f=>f.id===t),i=e.useDashboardStore(f=>f.dashboard);e.useDashboardStore(f=>f.selectedSheetId);const x=e.useDashboardStore(f=>f.isDashboardEditing),[o,a]=S.useState(!1),l=e.useDashboardStore(f=>f.filterValues),d=e.useDashboardStore(f=>f.isVisualEditing),u=e.useDashboardStore(f=>f.showFilters);e.useDashboardStore(f=>f.showDashboardJSON);const j=e.useDashboardStore(f=>f.onSaveFunction),E=e.useDashboardStore(f=>f.actions.setShowFilters),{addFrame:c,setSelectedFrameId:m}=e.useDashboardStore(f=>f.actions),{getSelectedSheet:R,setIsDashboardEditing:h,setShowDashboardJSON:N}=e.useDashboardStore(f=>f.actions),k=R(),{tenantId:b,endUserId:z}=S.useMemo(()=>e.getTenantAndEndUserId(s==null?void 0:s.accessToken),[s==null?void 0:s.accessToken]),T=S.useMemo(()=>b||z,[b,z]),F=()=>{if(!x||!k)return;const f={id:e.v4(),title:"Title",description:"Description",preferences:{onClickFilter:[{columnIndex:0,expression:""}]},type:"bar",sql:"select COUNT(*) from YOUR_TABLE",data:[]},M={id:e.v4(),cards:[f],activeCardId:f.id};c(k.id,M),m(M.id)},w=()=>{h(!0)};async function y(){if(a(!0),!t||!n)return;const f=Le(i),M=JSON.stringify(f),O={...n,template:M,filterValues:l};await Ce(O,s==null?void 0:s.accessToken),e.Jt.success("Lens saved"),j==null||j(f),a(!1)}return d?null:e.jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-between gap-2 border-b bg-muted/50 py-2 pl-3 pr-2",role:"dashboard-controls",children:[!d&&e.jsxRuntimeExports.jsx("div",{className:"flex items-center gap-3",children:e.jsxRuntimeExports.jsx(e.Label,{children:n==null?void 0:n.name})}),e.jsxRuntimeExports.jsxs("div",{className:"flex gap-2",children:[x&&!d&&T&&e.jsxRuntimeExports.jsx(Ms,{}),!d&&T&&e.jsxRuntimeExports.jsx(Os,{}),x&&!d&&e.jsxRuntimeExports.jsxs(e.Button,{variant:"secondary",className:"h-7 p-2",size:"sm",disabled:!x,onClick:F,children:[e.jsxRuntimeExports.jsx(e.Plus,{className:"mr-2 h-4 w-4",strokeWidth:1.5}),"Frame"]}),!x&&e.jsxRuntimeExports.jsx(e.Button,{variant:"ghost",className:"h-7 p-2",onClick:w,size:"sm",children:e.jsxRuntimeExports.jsx(Ve,{className:"h-4 w-4",strokeWidth:1.5})}),x&&!d&&e.jsxRuntimeExports.jsx(e.Button,{variant:"ghost",role:"close",className:"h-7 p-2",onClick:()=>{h(!1),N(!1)},size:"sm",children:e.jsxRuntimeExports.jsx(e.Cross2Icon,{className:"h-4 w-4",strokeWidth:1.5})}),x&&!d&&T&&e.jsxRuntimeExports.jsx(e.Button,{className:"h-7 p-2",variant:"ghost",disabled:o,onClick:y,size:"sm",children:e.jsxRuntimeExports.jsx(Ns,{className:"h-4 w-4",strokeWidth:1.5})}),!u&&!d&&x&&e.jsxRuntimeExports.jsx(e.Button,{className:"h-7 p-2",variant:"ghost",onClick:()=>E(!0),size:"sm",children:e.jsxRuntimeExports.jsx(e.Filter,{className:"h-4 w-4",strokeWidth:1.5})}),!d&&x&&!1,!d&&!1]})]})}function le({title:s,items:r,value:t,isLoading:n,isError:i,connectionTooltip:x,onChange:o,showNone:a=!1,className:l,showIcon:d=!0,disabled:u=!1}){const j=n?"Loading...":i?"Error":t;function E(){if(s==="Connection")return e.jsxRuntimeExports.jsx(Cs,{className:"size-4 rotate-90"});if(s==="Database")return e.jsxRuntimeExports.jsx(us,{className:"size-4"});if(s==="Schema")return e.jsxRuntimeExports.jsx(ys,{className:"size-4"});if(s==="Table")return e.jsxRuntimeExports.jsx(e.Table,{className:"size-4"});if(s==="Model")return e.jsxRuntimeExports.jsx(cs,{className:"size-4"})}return e.jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2",children:[d&&e.jsxRuntimeExports.jsx("div",{className:"shrink-0",children:x?e.jsxRuntimeExports.jsxs(e.Tooltip,{children:[e.jsxRuntimeExports.jsx(e.TooltipTrigger,{children:E()}),e.jsxRuntimeExports.jsx(e.TooltipContent,{className:"text-xs",align:"start",children:x})]}):E()}),e.jsxRuntimeExports.jsxs(e.Select,{disabled:u,value:j,onValueChange:o,children:[e.jsxRuntimeExports.jsx(e.SelectTrigger,{className:e.cn("h-9 w-full focus:ring-1 focus:ring-offset-0",l),children:e.jsxRuntimeExports.jsx(e.SelectValue,{placeholder:n?"Loading...":i?"Error":`Select ${s}`})}),e.jsxRuntimeExports.jsx(e.SelectContent,{children:e.jsxRuntimeExports.jsxs(e.SelectGroup,{children:[n?e.jsxRuntimeExports.jsx(e.SelectLabel,{children:"Loading..."}):e.jsxRuntimeExports.jsx(e.SelectLabel,{children:s}),e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[a&&e.jsxRuntimeExports.jsx(e.SelectItem,{value:"none",children:"None"},"none"),r&&r.map((c,m)=>e.jsxRuntimeExports.jsx(e.SelectItem,{value:c.id,children:c.name},m))]}),(n||i)&&e.jsxRuntimeExports.jsx(e.SelectItem,{value:j,children:j})]})})]})]})}function Vs({column:s}){const[r,t]=S.useState(!1),n=e.useEditorStore(c=>c.selectedTableName),i=e.useEditorStore(c=>c.selectedSchemaName),x=e.useEditorStore(c=>c.selectedDatamodelId),o=e.useEditorStore(c=>c.sqlGen),{modelItems:a}=oe(),l=e.useEditorStore(c=>c.actions.setSqlGen),d=e.useEditorStore(c=>c.actions.setCardSql),u=e.useEditorStore(c=>c.actions.setRunSql);function j(c,m){var k;const R=e.createSqlGenConfig(c,o,m),h=(k=a==null?void 0:a.find(b=>b.id===x))==null?void 0:k.name;l(R);const N=e.getSql(R,e.fmt(i||""),e.fmt(n),h);N&&(d(N),u(!0)),t(!1)}function E(){return e.jsxRuntimeExports.jsxs("ul",{className:"text-xs",children:[e.jsxRuntimeExports.jsx("li",{onClick:()=>j(s,"COUNT"),className:"cursor-pointer p-1 px-3 transition-colors hover:bg-muted",children:"Count"}),e.jsxRuntimeExports.jsx("li",{onClick:()=>j(s,"AVG"),className:"cursor-pointer p-1 px-3 transition-colors hover:bg-muted",children:"Avg"}),e.jsxRuntimeExports.jsx("li",{onClick:()=>j(s,"SUM"),className:"cursor-pointer p-1 px-3 transition-colors hover:bg-muted",children:"Sum"}),e.jsxRuntimeExports.jsx("li",{onClick:()=>j(s,"MAX"),className:"cursor-pointer p-1 px-3 transition-colors hover:bg-muted",children:"Max"}),e.jsxRuntimeExports.jsx("li",{onClick:()=>j(s,"MIN"),className:"cursor-pointer p-1 px-3 transition-colors hover:bg-muted",children:"Min"})]})}return e.jsxRuntimeExports.jsxs(e.HoverCard,{openDelay:0,open:r,onOpenChange:t,children:[e.jsxRuntimeExports.jsx(e.HoverCardTrigger,{asChild:!0,children:e.jsxRuntimeExports.jsx(ds,{className:"invisible size-3.5 cursor-pointer text-foreground/40 group-hover:visible"})}),e.jsxRuntimeExports.jsx(e.HoverCardContent,{align:"center",className:"w-20 rounded-md p-0 shadow-none",children:E()})]})}function Pe({column:s}){return e.jsxRuntimeExports.jsxs(e.Tooltip,{children:[e.jsxRuntimeExports.jsx(e.$a093c7e1ec25a057$export$8c610744efcf8a1d,{asChild:!0,children:e.TEXT_DATA_TYPES.includes(s.data_type.toLowerCase())?e.jsxRuntimeExports.jsx(ke,{className:"size-3"}):e.NUMBER_DATA_TYPES.includes(s.data_type.toLowerCase())?e.jsxRuntimeExports.jsx(js,{className:"size-3"}):e.DATE_DATA_TYPES.includes(s.data_type.toLowerCase())?e.jsxRuntimeExports.jsx(e.Calendar,{className:"size-3"}):e.BOOLEAN_DATA_TYPES.includes(s.data_type.toLowerCase())?e.jsxRuntimeExports.jsx(As,{className:"size-3"}):e.jsxRuntimeExports.jsx(ws,{className:"size-3"})}),e.jsxRuntimeExports.jsx(e.TooltipContent,{children:e.jsxRuntimeExports.jsx("p",{className:"font-mono text-xs",children:s.data_type})})]})}function _s({schemaName:s,tableName:r,columns:t,status:n}){const i=e.useEditorStore(y=>y.sqlGen),x=e.useEditorStore(y=>y.selectedConnectionId),o=e.useEditorStore(y=>y.selectedDatabaseName),a=e.useEditorStore(y=>y.selectedSchemaName),l=e.useEditorStore(y=>y.selectedTableName),d=e.useEditorStore(y=>y.selectedDatamodelId),u=e.useDashboardStore(y=>y.dashboard.aiScopeTables),{setAIScopeTables:j}=e.useDashboardStore(y=>y.actions),E=e.useEditorStore(y=>y.actions.setRunSql),c=e.useEditorStore(y=>y.actions.setSqlGen),m=e.useEditorStore(y=>y.actions.setIsShowingVisual),R=e.useEditorStore(y=>y.actions.setCardSql),{connectionType:h,modelItems:N}=oe();function k(y){var D;const f=e.createSqlGenConfig(y,i);c(f);const M=(D=N==null?void 0:N.find(q=>q.id===d))==null?void 0:D.name,O=e.getSql(f,e.fmt(s),e.fmt(r),M);O&&(R(O),E(!0))}function b(){return(u==null?void 0:u.find(y=>y.connectinonId===x&&y.tableName===l))!==void 0}function z(y){if(y===!0&&l&&x){const f={connectinonId:x,connectionType:h,databaseName:o,schemaName:a,tableName:l},O=[...u||[],f].filter((D,q,P)=>P.findIndex(_=>_.connectinonId===D.connectinonId&&_.tableName===D.tableName)===q);j(O),e.Jt.success(`Added '${l}' to AI Scope`,{position:"top-right",duration:2500,richColors:!0})}else{const f=(u||[]).filter(M=>M.connectinonId!==x&&M.tableName!==l);j(f),e.Jt(`Removed '${l}' from AI Scope`,{position:"top-right",duration:2e3,richColors:!0})}}function T(){var D;let y=e.getQualifiedTableName(s,r);const f=(D=N==null?void 0:N.find(q=>q.id===d))==null?void 0:D.name;console.log("modelName",f),d&&d!=="none"&&(y=`${e.DATAMODEL_NAMESPCACE}.${f}`);let M=y;return(q=>/[A-Z]/.test(q))(r)&&(M=M.split(".").map(P=>`"${P}"`).join(".")),M}function F(){const y=T();m(!1);const f=h==="MSSQL"?`SELECT top 10 * FROM ${y}`:`SELECT * FROM ${y} LIMIT 10`;R(f),E(!0)}function w(){const y=T();R(`SELECT COUNT(*) as count FROM ${y}`),E(!0)}return e.jsxRuntimeExports.jsxs("div",{className:"flex grow flex-col space-y-4 px-4",children:[e.jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-center gap-1",children:[e.jsxRuntimeExports.jsx(e.Toggle,{title:`${b()?"Remove from":"Add to"} AI Scope`,pressed:b(),onPressedChange:z,variant:"outline",className:"h-9 px-2",children:e.jsxRuntimeExports.jsx(e.Bot,{className:e.cn("size-4",{"text-primary":b(),"text-muted-foreground":!b()})})}),e.jsxRuntimeExports.jsxs(e.Button,{disabled:n!=="Success",onClick:F,size:"sm",variant:"secondary",className:"flex",children:[n!=="Success"?e.jsxRuntimeExports.jsx(ce,{className:"mr-2 h-4 w-4 animate-spin text-foreground/50"}):e.jsxRuntimeExports.jsx(Ls,{className:"mr-2 size-4"}),"Top 10"]}),e.jsxRuntimeExports.jsxs(e.Button,{disabled:n!=="Success",onClick:w,size:"sm",variant:"secondary",className:"flex",children:[n!=="Success"?e.jsxRuntimeExports.jsx(ce,{className:"mr-2 h-4 w-4 animate-spin text-foreground/50"}):e.jsxRuntimeExports.jsx(ks,{className:"mr-2 size-4"}),"Count"]})]}),e.jsxRuntimeExports.jsxs(e.ScrollArea,{className:"flex-1 basis-0 overflow-y-auto border-b border-t border-muted py-3",children:[t==null?void 0:t.map(y=>e.jsxRuntimeExports.jsxs("div",{onClick:()=>k(y),className:e.cn("group mx-3 flex cursor-pointer items-center justify-between rounded px-2 py-[6px] text-sm transition-colors hover:bg-muted/50",{"bg-muted":e.isColumnInSqlGen(y,i)}),children:[e.jsxRuntimeExports.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsxRuntimeExports.jsx(Pe,{column:y}),e.jsxRuntimeExports.jsx("span",{children:y.column_name})]}),e.jsxRuntimeExports.jsx("div",{onClick:f=>f.stopPropagation(),className:"flex items-center justify-end",children:e.NUMBER_DATA_TYPES.includes(y.data_type)&&e.jsxRuntimeExports.jsx(Vs,{column:y})})]},y.column_name)),e.jsxRuntimeExports.jsx(e.ScrollBar,{orientation:"vertical"}),e.jsxRuntimeExports.jsx(e.ScrollBar,{orientation:"horizontal"})]})]})}function oe(s,r){var pe,de,he,je,p;let t=S.useMemo(()=>[],[]);const n=e.useSemaphorContext().authToken||s,i=e.useEditorStore(g=>g.selectedConnectionId),x=e.useEditorStore(g=>g.selectedDatamodelId),o=e.useEditorStore(g=>g.selectedDatabaseName),a=e.useEditorStore(g=>g.selectedSchemaName),l=e.useEditorStore(g=>g.selectedTableName),d=e.useEditorStore(g=>g.actions.setCurrentColumns),u=e.useEditorStore(g=>g.actions.setSelectedConnectionId),j=e.useEditorStore(g=>g.actions.setSelectedDatamodelId),E=e.useEditorStore(g=>g.actions.setSelectedDatabaseName),c=e.useEditorStore(g=>g.actions.setSelectedSchemaName),m=e.useEditorStore(g=>g.actions.setSelectedTableName),R=e.useEditorStore(g=>g.actions.setCardSql);function h(g){return i&&o&&a&&o!=="NA"?!0:i&&g==="API"?!1:!!(i&&g==="S3")}function N(g){return!!(i&&o&&o!=="NA"&&a&&l||i&&(g==="S3"||g==="API")||x&&x)}function k(g){return i&&g?!(g==="API"||g==="S3"):!1}const{data:b,isLoading:z,isError:T}=e.useQuery({queryKey:["connections"],queryFn:()=>e.getRequest("https://semaphor.cloud/api/v1/connections",(n==null?void 0:n.accessToken)||""),enabled:!!(n!=null&&n.accessToken)}),{data:F,isLoading:w,isError:y}=e.useQuery({queryKey:["models",i],queryFn:()=>e.getRequest("https://semaphor.cloud/api/v1/datamodels",(n==null?void 0:n.accessToken)||"",{connection_id:i}),enabled:!!(n!=null&&n.accessToken)&&!!i}),f=b==null?void 0:b.connections.find(g=>g.id===i),M=f==null?void 0:f.type,O=(f==null?void 0:f.type)==="API"||(f==null?void 0:f.type)==="S3",{data:D,isLoading:q,isFetching:P,isError:_,refetch:K}=e.useQuery({queryKey:["databases",i],queryFn:()=>e.getRequest("https://semaphor.cloud/api/v1/databases",(n==null?void 0:n.accessToken)||"",{connection_id:i}),enabled:k(M)}),{data:V,isLoading:W,isFetching:v,isError:L,refetch:H}=e.useQuery({queryKey:["schemas",i,o],queryFn:()=>e.getRequest("https://semaphor.cloud/api/v1/schemas",(n==null?void 0:n.accessToken)||"",{connection_id:i,database_name:o}),enabled:!!i&&!!o&&!O&&o!=="NA"}),{data:C,isLoading:A,isFetching:$,isError:I,refetch:G}=e.useQuery({queryKey:["tables",i,o,a],queryFn:()=>e.getRequest("https://semaphor.cloud/api/v1/tables",(n==null?void 0:n.accessToken)||"",{connection_id:i,database_name:o,schema_name:a}),enabled:h(M)}),{data:Q,isLoading:te,isFetching:ee,isError:B}=e.useQuery({queryKey:["columns",i,o,x,a,l],queryFn:()=>e.getRequest("https://semaphor.cloud/api/v1/columns",(n==null?void 0:n.accessToken)||"",{connection_id:i,datamodel_id:x||"",database_name:o,schema_name:a,table_name:l}),enabled:N(M)});S.useEffect(()=>{d(t)},[Q,d,t]),S.useEffect(()=>{},[O,R,m,c,E,f]);const J=(f==null?void 0:f.type)==="API"?(pe=f==null?void 0:f.type)==null?void 0:pe.toLowerCase():l||"",Y=O?"":a||"";function ne(g){c(g),m("")}function X(g){E(g==="none"?"":g),c(""),m(""),g!=="none"&&g!==""&&j("")}function se(g){u(g)}function Ae(g){j(g==="none"?"":g),g!=="none"&&g!==""&&E("")}D&&((de=D==null?void 0:D.databases)==null?void 0:de.length)>0,V&&((he=V==null?void 0:V.schemas)==null?void 0:he.length)>0,Q&&((je=Q==null?void 0:Q.columns)==null?void 0:je.length)>0&&(t=Q.columns.map(g=>({...g,data_type:g.data_type.toLowerCase()}))),_&&(t=[]),(B||T)&&(t=[]);const ie=b==null?void 0:b.connections.map(g=>({id:g.id,name:g.name,type:g.type})),be=(p=F==null?void 0:F.datamodels)==null?void 0:p.map(g=>({id:g.id,name:g.name})),me=D==null?void 0:D.databases.map(g=>({id:g.database_name,name:g.database_name})),Se=V==null?void 0:V.schemas.map(g=>({id:g.schema_name,name:g.schema_name})),ye=C==null?void 0:C.tables.map(g=>({id:g.table_name,name:g.table_name}));return{connectionItems:ie,isConnectionsLoading:z,isConnectionsError:T,modelItems:be,isModelsLoading:w,isModelsError:y,databaseItems:me,isDatabasesLoadingOrFetching:q||P,isDatabaseError:_,schemaItems:Se,isSchemaLoadingOrFetching:W||v,isSchemaError:L,tableItems:ye,isTableLoadingOrFetching:A||$,isTableError:I,columns:t,isColumnsLoadingOrFetching:te||ee,isColumnsError:B,isNonDbConnection:O,connectionType:M,tableName:J,schemaName:Y,handleConnectionChange:se,handleDatamodelChange:Ae,handleDatabaseChange:X,handleSchemaChange:ne}}function $e({ColumnsComponent:s}){var $;const r=e.useEditorStore(I=>I.selectedConnectionId),t=e.useEditorStore(I=>I.selectedDatamodelId),n=e.useEditorStore(I=>I.selectedDatabaseName),i=e.useEditorStore(I=>I.selectedSchemaName),x=e.useEditorStore(I=>I.selectedTableName),o=e.useEditorStore(I=>I.actions.setSelectedTableName),{connectionItems:a,modelItems:l,schemaItems:d,databaseItems:u,tableItems:j,columns:E,isConnectionsLoading:c,isModelsLoading:m,isConnectionsError:R,isModelsError:h,isDatabasesLoadingOrFetching:N,isDatabaseError:k,isSchemaLoadingOrFetching:b,isSchemaError:z,isColumnsError:T,isColumnsLoadingOrFetching:F,isTableLoadingOrFetching:w,isTableError:y,connectionType:f,isNonDbConnection:M,handleConnectionChange:O,handleDatabaseChange:D,handleSchemaChange:q,handleDatamodelChange:P,tableName:_,schemaName:K}=oe();function V(){return s?s(K,_,E):e.jsxRuntimeExports.jsx(_s,{schemaName:K,tableName:_,columns:E,status:F?"Loading...":T?"Error":"Success"})}function W(){window.location.href="mailto:support@semaphor.cloud?subject=Help&body=I need help with..."}function v(){if(!r||f==="S3"||f==="API")return null;if(!t||t==="none")return e.jsxRuntimeExports.jsx(le,{showNone:!0,onChange:D,isError:k,isLoading:N,items:u,value:n||"",title:"Database"})}function L(){if(r&&!M&&(!n||n==="none")&&(!t||t==="none"))return e.jsxRuntimeExports.jsxs("div",{className:"grid grid-cols-3",children:[e.jsxRuntimeExports.jsx("div",{className:"col-span-1 grid place-items-center",children:e.jsxRuntimeExports.jsx(e.Separator,{})}),e.jsxRuntimeExports.jsx("div",{className:"col-span-1 grid place-items-center",children:e.jsxRuntimeExports.jsx(e.Label,{children:"OR"})}),e.jsxRuntimeExports.jsx("div",{className:"col-span-1 grid place-items-center",children:e.jsxRuntimeExports.jsx(e.Separator,{})})]})}function H(){if(!r||f==="S3"||f==="API")return null;if(!n||n==="none")return e.jsxRuntimeExports.jsx(le,{showNone:!0,onChange:P,isError:h,isLoading:m,items:l,value:t||"",title:"Model"})}function C(){return!r||f==="S3"||f==="API"||!n||n==="none"?null:e.jsxRuntimeExports.jsx(le,{onChange:q,isError:z,isLoading:b,items:d,value:i||"",title:"Schema"})}function A(){function I(){let G=!1;return f==="API"?(G=!1,G):((f==="S3"||r&&n&&n!=="none"&&i)&&(G=!0),G)}return I()?e.jsxRuntimeExports.jsx(le,{onChange:o,isError:y,items:j,isLoading:w,value:x||"",title:"Table"}):null}return e.jsxRuntimeExports.jsxs("aside",{className:"xbg-red-100 flex grow flex-col justify-between",children:[e.jsxRuntimeExports.jsxs("section",{className:"space-y-3 px-6 py-4",children:[e.jsxRuntimeExports.jsx(le,{items:a,title:"Connection",value:r||"",onChange:O,isLoading:c,isError:R,connectionTooltip:(($=a==null?void 0:a.find(I=>I.id===r))==null?void 0:$.type)||""}),H(),L(),v(),C(),A()]}),V(),e.jsxRuntimeExports.jsx("div",{className:"flex items-end justify-center gap-2 px-6 py-4",children:e.jsxRuntimeExports.jsxs(e.Button,{onClick:W,size:"sm",variant:"secondary",className:"w-full",children:[e.jsxRuntimeExports.jsx(Ss,{className:"mr-2 size-4"}),"Help"]})})]})}function Bs(s){const r=s.toUpperCase().indexOf("WHERE"),t=s.toUpperCase().indexOf("GROUP BY"),n=s.toUpperCase().indexOf("LIMIT"),i=s.toUpperCase().indexOf("ORDER BY");let x=s.length;if(i!==-1&&(x=i),n!==-1&&n<x&&(x=n),r!==-1){const o=s.substring(0,r),a=s.substring(r);return`${o} {{ filters | where }} AND ${a.substring(6)}`}else if(t!==-1){const o=s.substring(0,t),a=s.substring(t);return`${o} {{ filters | where }} ${a}`}else{const o=s.substring(0,x),a=s.substring(x);return`${o} {{ filters | where }} ${a}`}}function Hs({error:s,setShowAIDialog:r,setUserInputforAI:t,setTriggerAIRun:n}){return e.jsxRuntimeExports.jsxs(e.HoverCard,{openDelay:0,children:[e.jsxRuntimeExports.jsx(e.HoverCardTrigger,{asChild:!0,children:e.jsxRuntimeExports.jsx(e.Button,{variant:"link",className:"h-5 p-0",children:e.jsxRuntimeExports.jsx(xs,{className:"h-4 w-4 text-red-500"})})}),e.jsxRuntimeExports.jsx(e.HoverCardContent,{align:"start",className:"min-w-fit max-w-[500px]",children:e.jsxRuntimeExports.jsx("div",{className:"flex justify-between space-x-4",children:e.jsxRuntimeExports.jsxs("div",{className:"flex grow flex-col space-y-2",children:[e.jsxRuntimeExports.jsx(e.ScrollArea,{className:"max-h-[250px] min-h-0 overflow-scroll",children:e.jsxRuntimeExports.jsx("p",{className:"overflow-auto rounded-md bg-muted p-2 text-xs leading-relaxed",children:s})}),e.jsxRuntimeExports.jsxs(e.Button,{onClick:()=>{r(!0),t(s),n(!0)},size:"sm",variant:"outline",children:[e.jsxRuntimeExports.jsx(hs,{className:"mr-2 h-4 w-4"}),"Debug with AI"]})]})})})]})}function Ps({text:s,onCheckedChange:r,checked:t}){return e.jsxRuntimeExports.jsxs("div",{className:"xbg-red-100 ml-6 flex items-center gap-2",children:[e.jsxRuntimeExports.jsx(e.Checkbox,{checked:t,onCheckedChange:r}),e.jsxRuntimeExports.jsx("label",{className:"text-xs leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:s})]})}function $s(){const{authToken:s}=e.useSemaphorContext(),r=e.useEditorStore(x=>x.selectedConnectionId),{data:t}=e.useQuery({queryKey:["connections"],queryFn:()=>e.getRequest("https://semaphor.cloud/api/v1/connections",(s==null?void 0:s.accessToken)||""),enabled:!!(s!=null&&s.accessToken)}),n=t==null?void 0:t.connections.find(x=>x.id===r);return n==null?void 0:n.type}function Gs(){const{authToken:s}=e.useSemaphorContext(),r=S.useRef(null),t=e.useEditorStore(l=>l.applyFilters),[n,i]=S.useState(""),x=e.useEditorStore(l=>l.filterValues),o=e.useEditorStore(l=>l.card.sql),a=$s();return e.jsxRuntimeExports.jsxs(e.HoverCard,{openDelay:0,onOpenChange:async l=>{if(!l)return;console.log("onOpenChange");const d=await e.postRequest("https://semaphor.cloud/api/v1/filter-sql",(s==null?void 0:s.accessToken)||"",{sql:o,active_filters:x,connection_type:a});console.log(d),d.sql?(console.log(d.records),i(d.sql)):i("Error")},children:[e.jsxRuntimeExports.jsx(e.HoverCardTrigger,{asChild:!0,children:t&&e.jsxRuntimeExports.jsx("p",{className:"p-0 text-xs hover:cursor-pointer",children:"|  Filter Query"})}),e.jsxRuntimeExports.jsxs(e.HoverCardContent,{align:"end",className:"w-[600px]",children:[e.jsxRuntimeExports.jsx("div",{className:"flex justify-between space-x-4",children:e.jsxRuntimeExports.jsx("div",{className:"rounded-sm bg-muted p-2",children:e.jsxRuntimeExports.jsxs("code",{ref:r,className:"font-mono text-sm",children:[n,e.jsxRuntimeExports.jsx(e.ClipboardCopyIcon,{onClick:()=>e.copyToClipboard(r),className:"ml-3 inline-block h-4 w-4 opacity-70 hover:cursor-pointer hover:opacity-100"})]})})}),e.jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2 pt-2",children:[e.jsxRuntimeExports.jsx(e.InfoCircledIcon,{className:"h-4 w-4 opacity-70"}),e.jsxRuntimeExports.jsx("span",{className:"text-xs text-muted-foreground",children:"A preview of the query with filters applied."})]})]})]})}const Qs=`
167
167
 
168
168
  Use the following syntax to create a chart query. Please replace the x-axis, y-axis, stack-by, label, and measure with the actual column names of the table.
169
169
 
@@ -10978,7 +10978,7 @@ function hV({
10978
10978
  if (!s || !s.dashboard)
10979
10979
  return;
10980
10980
  const { dashboard: T, filterValues: L, defaultLensId: F, lenses: K } = s;
10981
- m(T, L || []), F && _(F), K && w(K), M(), v((ee = T.sheets) == null ? void 0 : ee[0].id);
10981
+ m(T, L || []), F && _(F), K && w(K), v((ee = T.sheets) == null ? void 0 : ee[0].id);
10982
10982
  }, [
10983
10983
  s,
10984
10984
  p,
@@ -10986,9 +10986,9 @@ function hV({
10986
10986
  C,
10987
10987
  i,
10988
10988
  w,
10989
- M,
10990
10989
  m,
10991
10990
  _
10991
+ // applyStyles,
10992
10992
  ]), Se(() => {
10993
10993
  n && b(n), r && k(r);
10994
10994
  }, [n, b, r, k]), {
@@ -85,7 +85,7 @@ __p += '`),Mt&&(Re+=`' +
85
85
  function print() { __p += __j.call(arguments, '') }
86
86
  `:`;
87
87
  `)+Re+`return __p
88
- }`;var yt=PR(function(){return jt(B,Ye+"return "+Re).apply(n,q)});if(yt.source=Re,Vb(yt))throw yt;return yt}function Jj(d){return Ut(d).toLowerCase()}function Zj(d){return Ut(d).toUpperCase()}function ez(d,g,x){if(d=Ut(d),d&&(x||g===n))return NC(d);if(!d||!(g=Ur(g)))return d;var P=zo(d),k=zo(g),B=LC(P,k),q=FC(P,k)+1;return Ts(P,B,q).join("")}function tz(d,g,x){if(d=Ut(d),d&&(x||g===n))return d.slice(0,zC(d)+1);if(!d||!(g=Ur(g)))return d;var P=zo(d),k=FC(P,zo(g))+1;return Ts(P,0,k).join("")}function nz(d,g,x){if(d=Ut(d),d&&(x||g===n))return d.replace(Bn,"");if(!d||!(g=Ur(g)))return d;var P=zo(d),k=LC(P,zo(g));return Ts(P,k).join("")}function rz(d,g){var x=D,P=F;if(wn(g)){var k="separator"in g?g.separator:k;x="length"in g?pt(g.length):x,P="omission"in g?Ur(g.omission):P}d=Ut(d);var B=d.length;if(Vl(d)){var q=zo(d);B=q.length}if(x>=B)return d;var ne=x-Hl(P);if(ne<1)return P;var le=q?Ts(q,0,ne).join(""):d.slice(0,ne);if(k===n)return le+P;if(q&&(ne+=le.length-ne),Hb(k)){if(d.slice(ne).search(k)){var xe,we=le;for(k.global||(k=ib(k.source,Ut(qe.exec(k))+"g")),k.lastIndex=0;xe=k.exec(we);)var Re=xe.index;le=le.slice(0,Re===n?ne:Re)}}else if(d.indexOf(Ur(k),ne)!=ne){var je=le.lastIndexOf(k);je>-1&&(le=le.slice(0,je))}return le+P}function oz(d){return d=Ut(d),d&&On.test(d)?d.replace(Xt,k7):d}var iz=Xl(function(d,g,x){return d+(x?" ":"")+g.toUpperCase()}),qb=OE("toUpperCase");function RR(d,g,x){return d=Ut(d),g=x?n:g,g===n?O7(d)?N7(d):y7(d):d.match(g)||[]}var PR=St(function(d,g){try{return Hr(d,n,g)}catch(x){return Vb(x)?x:new ct(x)}}),sz=Bi(function(d,g){return yo(g,function(x){x=li(x),ji(d,x,zb(d[x],d))}),d});function az(d){var g=d==null?0:d.length,x=Je();return d=g?yn(d,function(P){if(typeof P[1]!="function")throw new xo(s);return[x(P[0]),P[1]]}):[],St(function(P){for(var k=-1;++k<g;){var B=d[k];if(Hr(B[0],this,P))return Hr(B[1],this,P)}})}function lz(d){return k6(_o(d,f))}function Gb(d){return function(){return d}}function cz(d,g){return d==null||d!==d?g:d}var uz=TE(),dz=TE(!0);function $r(d){return d}function Yb(d){return sE(typeof d=="function"?d:_o(d,f))}function fz(d){return lE(_o(d,f))}function hz(d,g){return cE(d,_o(g,f))}var pz=St(function(d,g){return function(x){return Fu(x,d,g)}}),gz=St(function(d,g){return function(x){return Fu(d,x,g)}});function Kb(d,g,x){var P=Hn(g),k=Hh(g,P);x==null&&!(wn(g)&&(k.length||!P.length))&&(x=g,g=d,d=this,k=Hh(g,Hn(g)));var B=!(wn(x)&&"chain"in x)||!!x.chain,q=Hi(d);return yo(k,function(ne){var le=g[ne];d[ne]=le,q&&(d.prototype[ne]=function(){var xe=this.__chain__;if(B||xe){var we=d(this.__wrapped__),Re=we.__actions__=Rr(this.__actions__);return Re.push({func:le,args:arguments,thisArg:d}),we.__chain__=xe,we}return le.apply(d,Cs([this.value()],arguments))})}),d}function mz(){return Gn._===this&&(Gn._=V7),this}function Xb(){}function vz(d){return d=pt(d),St(function(g){return uE(g,d)})}var bz=Pb(yn),yz=Pb(DC),xz=Pb(Jv);function OR(d){return Mb(d)?Zv(li(d)):X6(d)}function wz(d){return function(g){return d==null?n:Oa(d,g)}}var _z=AE(),Sz=AE(!0);function Qb(){return[]}function Jb(){return!1}function Cz(){return{}}function Ez(){return""}function Rz(){return!0}function Pz(d,g){if(d=pt(d),d<1||d>te)return[];var x=V,P=or(d,V);g=Je(g),d-=V;for(var k=nb(P,g);++x<d;)g(x);return k}function Oz(d){return ut(d)?yn(d,li):qr(d)?[d]:Rr(YE(Ut(d)))}function $z(d){var g=++z7;return Ut(d)+g}var Tz=Kh(function(d,g){return d+g},0),Dz=Ob("ceil"),Az=Kh(function(d,g){return d/g},1),kz=Ob("floor");function Mz(d){return d&&d.length?Vh(d,$r,hb):n}function Iz(d,g){return d&&d.length?Vh(d,Je(g,2),hb):n}function Nz(d){return MC(d,$r)}function Lz(d,g){return MC(d,Je(g,2))}function Fz(d){return d&&d.length?Vh(d,$r,vb):n}function jz(d,g){return d&&d.length?Vh(d,Je(g,2),vb):n}var zz=Kh(function(d,g){return d*g},1),Bz=Ob("round"),Vz=Kh(function(d,g){return d-g},0);function Hz(d){return d&&d.length?tb(d,$r):0}function Wz(d,g){return d&&d.length?tb(d,Je(g,2)):0}return z.after=f8,z.ary=iR,z.assign=Z8,z.assignIn=yR,z.assignInWith=lp,z.assignWith=ej,z.at=tj,z.before=sR,z.bind=zb,z.bindAll=sz,z.bindKey=aR,z.castArray=C8,z.chain=nR,z.chunk=k9,z.compact=M9,z.concat=I9,z.cond=az,z.conforms=lz,z.constant=Gb,z.countBy=H4,z.create=nj,z.curry=lR,z.curryRight=cR,z.debounce=uR,z.defaults=rj,z.defaultsDeep=oj,z.defer=h8,z.delay=p8,z.difference=N9,z.differenceBy=L9,z.differenceWith=F9,z.drop=j9,z.dropRight=z9,z.dropRightWhile=B9,z.dropWhile=V9,z.fill=H9,z.filter=U4,z.flatMap=Y4,z.flatMapDeep=K4,z.flatMapDepth=X4,z.flatten=JE,z.flattenDeep=W9,z.flattenDepth=U9,z.flip=g8,z.flow=uz,z.flowRight=dz,z.fromPairs=q9,z.functions=dj,z.functionsIn=fj,z.groupBy=Q4,z.initial=Y9,z.intersection=K9,z.intersectionBy=X9,z.intersectionWith=Q9,z.invert=pj,z.invertBy=gj,z.invokeMap=Z4,z.iteratee=Yb,z.keyBy=e8,z.keys=Hn,z.keysIn=Or,z.map=np,z.mapKeys=vj,z.mapValues=bj,z.matches=fz,z.matchesProperty=hz,z.memoize=op,z.merge=yj,z.mergeWith=xR,z.method=pz,z.methodOf=gz,z.mixin=Kb,z.negate=ip,z.nthArg=vz,z.omit=xj,z.omitBy=wj,z.once=m8,z.orderBy=t8,z.over=bz,z.overArgs=v8,z.overEvery=yz,z.overSome=xz,z.partial=Bb,z.partialRight=dR,z.partition=n8,z.pick=_j,z.pickBy=wR,z.property=OR,z.propertyOf=wz,z.pull=t4,z.pullAll=eR,z.pullAllBy=n4,z.pullAllWith=r4,z.pullAt=o4,z.range=_z,z.rangeRight=Sz,z.rearg=b8,z.reject=i8,z.remove=i4,z.rest=y8,z.reverse=Fb,z.sampleSize=a8,z.set=Cj,z.setWith=Ej,z.shuffle=l8,z.slice=s4,z.sortBy=d8,z.sortedUniq=h4,z.sortedUniqBy=p4,z.split=Yj,z.spread=x8,z.tail=g4,z.take=m4,z.takeRight=v4,z.takeRightWhile=b4,z.takeWhile=y4,z.tap=M4,z.throttle=w8,z.thru=tp,z.toArray=mR,z.toPairs=_R,z.toPairsIn=SR,z.toPath=Oz,z.toPlainObject=bR,z.transform=Rj,z.unary=_8,z.union=x4,z.unionBy=w4,z.unionWith=_4,z.uniq=S4,z.uniqBy=C4,z.uniqWith=E4,z.unset=Pj,z.unzip=jb,z.unzipWith=tR,z.update=Oj,z.updateWith=$j,z.values=Zl,z.valuesIn=Tj,z.without=R4,z.words=RR,z.wrap=S8,z.xor=P4,z.xorBy=O4,z.xorWith=$4,z.zip=T4,z.zipObject=D4,z.zipObjectDeep=A4,z.zipWith=k4,z.entries=_R,z.entriesIn=SR,z.extend=yR,z.extendWith=lp,Kb(z,z),z.add=Tz,z.attempt=PR,z.camelCase=Mj,z.capitalize=CR,z.ceil=Dz,z.clamp=Dj,z.clone=E8,z.cloneDeep=P8,z.cloneDeepWith=O8,z.cloneWith=R8,z.conformsTo=$8,z.deburr=ER,z.defaultTo=cz,z.divide=Az,z.endsWith=Ij,z.eq=Vo,z.escape=Nj,z.escapeRegExp=Lj,z.every=W4,z.find=q4,z.findIndex=XE,z.findKey=ij,z.findLast=G4,z.findLastIndex=QE,z.findLastKey=sj,z.floor=kz,z.forEach=rR,z.forEachRight=oR,z.forIn=aj,z.forInRight=lj,z.forOwn=cj,z.forOwnRight=uj,z.get=Wb,z.gt=T8,z.gte=D8,z.has=hj,z.hasIn=Ub,z.head=ZE,z.identity=$r,z.includes=J4,z.indexOf=G9,z.inRange=Aj,z.invoke=mj,z.isArguments=Da,z.isArray=ut,z.isArrayBuffer=A8,z.isArrayLike=Pr,z.isArrayLikeObject=$n,z.isBoolean=k8,z.isBuffer=Ds,z.isDate=M8,z.isElement=I8,z.isEmpty=N8,z.isEqual=L8,z.isEqualWith=F8,z.isError=Vb,z.isFinite=j8,z.isFunction=Hi,z.isInteger=fR,z.isLength=sp,z.isMap=hR,z.isMatch=z8,z.isMatchWith=B8,z.isNaN=V8,z.isNative=H8,z.isNil=U8,z.isNull=W8,z.isNumber=pR,z.isObject=wn,z.isObjectLike=Cn,z.isPlainObject=Wu,z.isRegExp=Hb,z.isSafeInteger=q8,z.isSet=gR,z.isString=ap,z.isSymbol=qr,z.isTypedArray=Jl,z.isUndefined=G8,z.isWeakMap=Y8,z.isWeakSet=K8,z.join=J9,z.kebabCase=Fj,z.last=Co,z.lastIndexOf=Z9,z.lowerCase=jj,z.lowerFirst=zj,z.lt=X8,z.lte=Q8,z.max=Mz,z.maxBy=Iz,z.mean=Nz,z.meanBy=Lz,z.min=Fz,z.minBy=jz,z.stubArray=Qb,z.stubFalse=Jb,z.stubObject=Cz,z.stubString=Ez,z.stubTrue=Rz,z.multiply=zz,z.nth=e4,z.noConflict=mz,z.noop=Xb,z.now=rp,z.pad=Bj,z.padEnd=Vj,z.padStart=Hj,z.parseInt=Wj,z.random=kj,z.reduce=r8,z.reduceRight=o8,z.repeat=Uj,z.replace=qj,z.result=Sj,z.round=Bz,z.runInContext=se,z.sample=s8,z.size=c8,z.snakeCase=Gj,z.some=u8,z.sortedIndex=a4,z.sortedIndexBy=l4,z.sortedIndexOf=c4,z.sortedLastIndex=u4,z.sortedLastIndexBy=d4,z.sortedLastIndexOf=f4,z.startCase=Kj,z.startsWith=Xj,z.subtract=Vz,z.sum=Hz,z.sumBy=Wz,z.template=Qj,z.times=Pz,z.toFinite=Wi,z.toInteger=pt,z.toLength=vR,z.toLower=Jj,z.toNumber=Eo,z.toSafeInteger=J8,z.toString=Ut,z.toUpper=Zj,z.trim=ez,z.trimEnd=tz,z.trimStart=nz,z.truncate=rz,z.unescape=oz,z.uniqueId=$z,z.upperCase=iz,z.upperFirst=qb,z.each=rR,z.eachRight=oR,z.first=ZE,Kb(z,function(){var d={};return si(z,function(g,x){Qt.call(z.prototype,x)||(d[x]=g)}),d}(),{chain:!1}),z.VERSION=r,yo(["bind","bindKey","curry","curryRight","partial","partialRight"],function(d){z[d].placeholder=z}),yo(["drop","take"],function(d,g){kt.prototype[d]=function(x){x=x===n?1:Nn(pt(x),0);var P=this.__filtered__&&!g?new kt(this):this.clone();return P.__filtered__?P.__takeCount__=or(x,P.__takeCount__):P.__views__.push({size:or(x,V),type:d+(P.__dir__<0?"Right":"")}),P},kt.prototype[d+"Right"]=function(x){return this.reverse()[d](x).reverse()}}),yo(["filter","map","takeWhile"],function(d,g){var x=g+1,P=x==ee||x==Z;kt.prototype[d]=function(k){var B=this.clone();return B.__iteratees__.push({iteratee:Je(k,3),type:x}),B.__filtered__=B.__filtered__||P,B}}),yo(["head","last"],function(d,g){var x="take"+(g?"Right":"");kt.prototype[d]=function(){return this[x](1).value()[0]}}),yo(["initial","tail"],function(d,g){var x="drop"+(g?"":"Right");kt.prototype[d]=function(){return this.__filtered__?new kt(this):this[x](1)}}),kt.prototype.compact=function(){return this.filter($r)},kt.prototype.find=function(d){return this.filter(d).head()},kt.prototype.findLast=function(d){return this.reverse().find(d)},kt.prototype.invokeMap=St(function(d,g){return typeof d=="function"?new kt(this):this.map(function(x){return Fu(x,d,g)})}),kt.prototype.reject=function(d){return this.filter(ip(Je(d)))},kt.prototype.slice=function(d,g){d=pt(d);var x=this;return x.__filtered__&&(d>0||g<0)?new kt(x):(d<0?x=x.takeRight(-d):d&&(x=x.drop(d)),g!==n&&(g=pt(g),x=g<0?x.dropRight(-g):x.take(g-d)),x)},kt.prototype.takeRightWhile=function(d){return this.reverse().takeWhile(d).reverse()},kt.prototype.toArray=function(){return this.take(V)},si(kt.prototype,function(d,g){var x=/^(?:filter|find|map|reject)|While$/.test(g),P=/^(?:head|last)$/.test(g),k=z[P?"take"+(g=="last"?"Right":""):g],B=P||/^find/.test(g);k&&(z.prototype[g]=function(){var q=this.__wrapped__,ne=P?[1]:arguments,le=q instanceof kt,xe=ne[0],we=le||ut(q),Re=function(Ot){var Mt=k.apply(z,Cs([Ot],ne));return P&&je?Mt[0]:Mt};we&&x&&typeof xe=="function"&&xe.length!=1&&(le=we=!1);var je=this.__chain__,Ye=!!this.__actions__.length,et=B&&!je,yt=le&&!Ye;if(!B&&we){q=yt?q:new kt(this);var tt=d.apply(q,ne);return tt.__actions__.push({func:tp,args:[Re],thisArg:n}),new wo(tt,je)}return et&&yt?d.apply(this,ne):(tt=this.thru(Re),et?P?tt.value()[0]:tt.value():tt)})}),yo(["pop","push","shift","sort","splice","unshift"],function(d){var g=Ph[d],x=/^(?:push|sort|unshift)$/.test(d)?"tap":"thru",P=/^(?:pop|shift)$/.test(d);z.prototype[d]=function(){var k=arguments;if(P&&!this.__chain__){var B=this.value();return g.apply(ut(B)?B:[],k)}return this[x](function(q){return g.apply(ut(q)?q:[],k)})}}),si(kt.prototype,function(d,g){var x=z[g];if(x){var P=x.name+"";Qt.call(Gl,P)||(Gl[P]=[]),Gl[P].push({name:g,func:x})}}),Gl[Yh(n,y).name]=[{name:"wrapper",func:n}],kt.prototype.clone=o6,kt.prototype.reverse=i6,kt.prototype.value=s6,z.prototype.at=I4,z.prototype.chain=N4,z.prototype.commit=L4,z.prototype.next=F4,z.prototype.plant=z4,z.prototype.reverse=B4,z.prototype.toJSON=z.prototype.valueOf=z.prototype.value=V4,z.prototype.first=z.prototype.head,Du&&(z.prototype[Du]=j4),z},Wl=L7();Sa?((Sa.exports=Wl)._=Wl,Yv._=Wl):Gn._=Wl}).call(qs)})(jg,jg.exports);var bc=jg.exports;const ll=Rl(bc);function YR({id:e,layouts:t,initialHeight:n,y:r,x:o,w:i,minH:s}){const a={i:e,x:o??0,y:r??1/0,w:i||20,h:n||35,minW:6,minH:s||10};return t||(t={}),cw.forEach(l=>{t!=null&&t[l]||(t={...t,[l]:[]});const c=t[l].reduce((u,f)=>Math.max(u,f.y+f.h),0);a.y=a.y===0?0:c,t[l].push(a)}),t}function KR(e,t){t&&cw.forEach(n=>{t!=null&&t[n]&&(t[n]=t[n].filter(r=>r.i!==e))})}const Pe=rD()(uD((e,t)=>({isSessionExpired:!1,currentBreakpoint:"lg",dashboard:{id:"",style:Lg},showContext:!1,selectedSheetId:null,selectedCardId:null,selectedFrameId:null,selectedCard:null,showFilters:!1,isDashboardEditing:!1,isVisualEditing:!1,showDashboardJSON:!1,filteringCards:[],actions:{setInitStore:()=>{e(n=>{n.isSessionExpired=!1,n.currentBreakpoint="lg",n.dashboard={id:"",style:Lg},n.showContext=!1,n.selectedSheetId=null,n.selectedCardId=null,n.selectedFrameId=null,n.selectedCard=null,n.showFilters=!1,n.isDashboardEditing=!1,n.isVisualEditing=!1,n.showDashboardJSON=!1,n.filteringCards=[],n.selectedLensId=void 0})},setLenses:n=>{e(r=>{r.lenses=n})},setSelectedLensId:n=>{e(r=>{r.selectedLensId=n})},deleteSheet:n=>{e(r=>{var i,s,a,l;const o=(i=r.dashboard.sheets)==null?void 0:i.findIndex(c=>c.id===n);o!==void 0&&o>-1&&((s=r.dashboard.sheets)==null||s.splice(o,1),r.selectedSheetId=(l=(a=r.dashboard.sheets)==null?void 0:a[0])==null?void 0:l.id)})},addSheet:n=>{e(r=>{r.dashboard.sheets||(r.dashboard.sheets=[]);const o=r.dashboard.filters;let i={};o==null||o.forEach(a=>{cw.forEach(l=>{i!=null&&i[l]||(i={...i,[l]:[]});const c={i:a.id,x:0,y:0,w:10,h:8};i[l].push(c)})});const s={...n,layouts:i};r.dashboard.sheets.push(s)})},setGlobalStyle:n=>{e(r=>{r.dashboard.globalStyle=n})},setAIScopeTables:n=>{e(r=>{r.dashboard.aiScopeTables=n})},setIsSessionExpired:n=>{e(()=>({isSessionExpired:n}))},setCardPython:(n,r)=>{e(o=>{var s,a;const i=(a=(s=o.dashboard)==null?void 0:s.sheets)==null?void 0:a.find(l=>l.id===o.selectedSheetId);i&&bc.forEach(i.frames,l=>{var u;const c=(u=l.cards)==null?void 0:u.find(f=>f.id===n);c&&(c.python=r)})})},addBaseQuery:n=>{e(r=>{var o;r.dashboard.baseQueries||(r.dashboard.baseQueries=[]),(o=r.dashboard.baseQueries)==null||o.push(n)})},removeBaseQuery:n=>{e(r=>{var i,s;const o=(i=r.dashboard.baseQueries)==null?void 0:i.findIndex(a=>a.id===n);o!=null&&o>-1&&((s=r.dashboard.baseQueries)==null||s.splice(o,1))})},setBaseQueries:n=>{e(r=>{r.dashboard.baseQueries=n})},setCurrentBreakpoint:n=>{e(()=>({currentBreakpoint:n}))},setFilteringCards:n=>{e(()=>({filteringCards:n}))},addFilteringCard:n=>{e(r=>{var o;(o=r.filteringCards)==null||o.push(n)})},removeFilteringCard:n=>{e(r=>{var i,s;const o=(i=r.filteringCards)==null?void 0:i.findIndex(a=>a.id===n.id);o!==void 0&&o>-1&&((s=r.filteringCards)==null||s.splice(o,1))})},setCustomCards:n=>{e(r=>{r.dashboard.customCards=n})},setAuthToken:n=>{e(()=>({authToken:n}))},setThemeStyle:n=>{e(()=>({themeStyle:n}))},setDashboard:n=>e({dashboard:n}),setDashboardWithFilterValues:(n,r)=>{e(o=>{o.dashboard=n,o.filterValues=r})},setDashboardTheme:n=>{e(r=>{r.theme=n})},setSheets:n=>{e(r=>{r.dashboard&&(r.dashboard.sheets=n)})},setSheetTitle:(n,r)=>{e(o=>{var s,a;const i=(a=(s=o.dashboard)==null?void 0:s.sheets)==null?void 0:a.find(l=>l.id===n);i&&(i.title=r)})},setCardTitle:(n,r,o)=>{e(i=>{var a,l;const s=(l=(a=i.dashboard)==null?void 0:a.sheets)==null?void 0:l.find(c=>c.id===n);s&&bc.forEach(s.frames,c=>{var f;const u=(f=c.cards)==null?void 0:f.find(h=>h.id===r);u&&(u.title=o)})})},setCardInfo:(n,r)=>{e(o=>{var s,a;const i=(a=(s=o.dashboard)==null?void 0:s.sheets)==null?void 0:a.find(l=>l.id===o.selectedSheetId);i&&bc.forEach(i.frames,l=>{var u;const c=(u=l.cards)==null?void 0:u.find(f=>f.id===n);c&&(c.info=r)})})},setCardDescription:(n,r,o)=>{e(i=>{var a,l;const s=(l=(a=i.dashboard)==null?void 0:a.sheets)==null?void 0:l.find(c=>c.id===n);s&&bc.forEach(s.frames,c=>{var f;const u=(f=c.cards)==null?void 0:f.find(h=>h.id===r);u&&(u.description=o)})})},setCardSql:(n,r,o)=>{e(i=>{var a,l,c,u;const s=(l=(a=i.dashboard)==null?void 0:a.sheets)==null?void 0:l.find(f=>f.id===n);if(s){const f=(c=s.cards)==null?void 0:c.find(h=>h.id===r);f&&(f.sql=o,(u=i.onUpdateCard)==null||u.call(i,f,n))}})},setFrameCardData:(n,r,o)=>{e(i=>{var a,l;const s=(l=(a=i.dashboard)==null?void 0:a.sheets)==null?void 0:l.find(c=>c.id===n);s&&bc.forEach(s.frames,c=>{var f;const u=(f=c.cards)==null?void 0:f.find(h=>h.id===r);u&&(u.data=o)})})},setSheetLayout:(n,r)=>{e(o=>{var s,a;const i=(a=(s=o.dashboard)==null?void 0:s.sheets)==null?void 0:a.find(l=>l.id===n);i&&(i.layout=r)})},setSheetLayouts:(n,r)=>{e(o=>{var s,a;const i=(a=(s=o.dashboard)==null?void 0:s.sheets)==null?void 0:a.find(l=>l.id===n);i&&(i.layouts=r)})},setShowContext:n=>{e(()=>({showContext:n}))},setShowFilters:n=>{e(()=>({showFilters:n}))},setFilterValues:n=>{e(()=>({filterValues:n}))},addOrUpdateFilterValue:n=>{e(r=>{if(r.filterValues){const o=r.filterValues.findIndex(i=>i.filterId===n.filterId);o>-1?r.filterValues.splice(o,1,n):r.filterValues.push(n)}else r.filterValues=[n]})},addOrUpdateFilterValues:n=>{e(r=>{r.filterValues?n.forEach(o=>{var s,a,l;const i=(s=r==null?void 0:r.filterValues)==null?void 0:s.findIndex(c=>c.filterId===o.filterId);i!==void 0&&i>-1?(a=r.filterValues)==null||a.splice(i,1,o):(l=r.filterValues)==null||l.push(o)}):r.filterValues=n})},removeFilterValue:n=>{e(r=>{if(r.filterValues){const o=r.filterValues.filter(i=>i.filterId!==n&&!i.filterId.startsWith(n));r.filterValues=o}})},replaceFilterValue:n=>{e(r=>{if(r.filterValues){const o=r.filterValues.findIndex(i=>i.filterId===n.filterId);o>-1&&r.filterValues.splice(o,1,n)}})},addFilter:n=>{e(r=>{var i,s;r.dashboard.filters?(i=r.dashboard.filters)==null||i.push(n):r.dashboard.filters=[n];const o=(s=r.dashboard.sheets)==null?void 0:s.find(a=>a.id===r.selectedSheetId);YR({id:n.id,layouts:o==null?void 0:o.layouts,y:0,initialHeight:8,minH:7,w:10})})},removeFilter:n=>{e(r=>{var o,i,s;if(r.dashboard.filters){const a=(o=r.dashboard.filters)==null?void 0:o.findIndex(l=>l.id===n);if(a>-1){(i=r.dashboard.filters)==null||i.splice(a,1);const l=(s=r.dashboard.sheets)==null?void 0:s.find(c=>c.id===r.selectedSheetId);KR(n,l==null?void 0:l.layouts)}}})},updateFrameCard:(n,r,o)=>{e(i=>{var l,c,u,f,h;const s=(c=(l=i.dashboard)==null?void 0:l.sheets)==null?void 0:c.find(p=>p.id===n);if(!s)return;const a=(u=s==null?void 0:s.frames)==null?void 0:u.find(p=>p.id===r);if(a){const p=(f=a.cards)==null?void 0:f.findIndex(v=>v.id===o.id);p>-1&&((h=a.cards)==null||h.splice(p,1,o))}})},updateFilter:n=>{e(r=>{var o,i;if(r.dashboard.filters){const s=(o=r.dashboard.filters)==null?void 0:o.findIndex(a=>a.id===n.id);s>-1&&((i=r.dashboard.filters)==null||i.splice(s,1,n))}})},setIsDashboardEditing:n=>{e(()=>({isDashboardEditing:n}))},setShowDashboardJSON:n=>{e(()=>({showDashboardJSON:n}))},setIsVisualEditing:n=>{e(()=>({isVisualEditing:n}))},addFrame:(n,r,o)=>{e(i=>{var a,l,c,u;const s=(l=(a=i.dashboard)==null?void 0:a.sheets)==null?void 0:l.find(f=>f.id===n);if(s){s.frames||(s.frames=[]),(c=s.frames)==null||c.push(r);let f=1/0;const h=0;o==="start"&&(f=0),YR({id:r.id,layouts:s.layouts,minH:10,x:h,y:f}),(u=i.onAddFrame)==null||u.call(i,r,n)}})},removeFrame:(n,r)=>{e(o=>{var s,a,l,c,u;const i=(a=(s=o.dashboard)==null?void 0:s.sheets)==null?void 0:a.find(f=>f.id===n);if(i){const f=(l=i.frames)==null?void 0:l.findIndex(h=>h.id===r);console.log(f),typeof f=="number"&&f>-1&&((c=i.frames)==null||c.splice(f,1),(u=i.layout)==null||u.splice(f,1),KR(r,i.layouts))}})},updateFrame:(n,r)=>{e(o=>{var a,l,c,u;const i=(l=(a=o.dashboard)==null?void 0:a.sheets)==null?void 0:l.find(f=>f.id===n),s=(c=i==null?void 0:i.frames)==null?void 0:c.findIndex(f=>f.id===r.id);i&&((u=i.frames)==null||u.splice(s,1,r))})},updateCard:(n,r)=>{e(o=>{var a,l,c,u,f;const i=(l=(a=o.dashboard)==null?void 0:a.sheets)==null?void 0:l.find(h=>h.id===n),s=(c=i==null?void 0:i.cards)==null?void 0:c.findIndex(h=>h.id===r.id);i&&((u=i.cards)==null||u.splice(s,1,r),(f=o.onUpdateCard)==null||f.call(o,r,n))})},removeCard:(n,r)=>{e(o=>{var a,l,c,u,f,h;const i=(l=(a=o.dashboard)==null?void 0:a.sheets)==null?void 0:l.find(p=>p.id===n),s=(c=i==null?void 0:i.cards)==null?void 0:c.findIndex(p=>p.id===r.id);i&&((u=i.cards)==null||u.splice(s,1),(f=i.layout)==null||f.splice(s,1),(h=o.onRemoveCard)==null||h.call(o,r,n))})},setStyle:n=>{e(r=>{r.dashboard&&(r.dashboard.style=n)})},setSelectedCardId:(n,r)=>{e(o=>{var s,a,l;const i=(a=(s=o.dashboard)==null?void 0:s.sheets)==null?void 0:a.find(c=>c.id===n);i&&(((l=i.cards)==null?void 0:l.find(u=>u.id===r))?o.selectedCardId=r:o.selectedCardId=null)})},setSelectedFrameId:n=>{e(r=>{var i,s;((s=(i=r.dashboard)==null?void 0:i.sheets)==null?void 0:s.find(a=>a.id===r.selectedSheetId))&&(r.selectedFrameId=n)})},setSelectedSheetId:n=>{e(r=>{var i,s;((s=(i=r.dashboard)==null?void 0:i.sheets)==null?void 0:s.find(a=>a.id===n))&&(r.selectedSheetId=n)})},setOnSaveFunction:n=>{e(()=>({onSaveFunction:n}))},setOnAddCard:n=>{e(()=>({onAddCard:n}))},setOnUpdateCard:n=>{e(()=>({onUpdateCard:n}))},setOnRemoveCard:n=>{e(()=>({onRemoveCard:n}))},setOnEvent:n=>{e(()=>({onEvent:n}))},getDashboard:()=>t().dashboard,getSelectedSheet:()=>{var n,r;return(r=(n=t().dashboard)==null?void 0:n.sheets)==null?void 0:r.find(o=>o.id===t().selectedSheetId)},getCardFrame:n=>{var o,i;const r=(o=t().dashboard)==null?void 0:o.sheets;if(r)for(let s=0;s<r.length;s++){const a=r[s].frames;if(a){for(let l=0;l<a.length;l++)if((i=a[l].cards)==null?void 0:i.find(u=>u.id===n))return a[l]}}},getSelectedFrame:()=>{var r,o,i;const n=(o=(r=t().dashboard)==null?void 0:r.sheets)==null?void 0:o.find(s=>s.id===t().selectedSheetId);return(i=n==null?void 0:n.frames)==null?void 0:i.find(s=>s.id===t().selectedFrameId)},getCard:n=>{var o,i;const r=(o=t().dashboard)==null?void 0:o.sheets;if(r)for(let s=0;s<r.length;s++){const a=r[s].frames;if(a)for(let l=0;l<a.length;l++){const c=(i=a[l].cards)==null?void 0:i.find(u=>u.id===n);if(c)return c}}},getSelectedSheetLayout:()=>{var r,o;const n=(o=(r=t().dashboard)==null?void 0:r.sheets)==null?void 0:o.find(i=>i.id===t().selectedSheetId);return n==null?void 0:n.layout},getSelectedSheetLayouts:()=>{var r,o;const n=(o=(r=t().dashboard)==null?void 0:r.sheets)==null?void 0:o.find(i=>i.id===t().selectedSheetId);return n==null?void 0:n.layouts},getStyle:()=>{var n;return(n=t().dashboard)==null?void 0:n.style},getCardSheet(n){var o,i;const r=(o=t().dashboard)==null?void 0:o.sheets;if(r)for(let s=0;s<r.length;s++){const a=r[s].frames;if(a){for(let l=0;l<a.length;l++)if((i=a[l].cards)==null?void 0:i.find(u=>u.id===n))return r[s]}}},handleDataPointClickAction:(n,r)=>{vV({card:n,dataPoint:r,set:e,get:t})}}}))),wr=()=>Pe(e=>e.actions),bV={theme:"system",setTheme:()=>null},vD=m.createContext(bV);function yV({children:e,defaultTheme:t="system",storageKey:n="vite-ui-theme",...r}){const[o,i]=m.useState(()=>localStorage.getItem(n)||t);m.useEffect(()=>{const a=window.document.documentElement;if(a.classList.remove("light","dark"),o==="system"){const l=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";a.classList.add(l);return}a.classList.add(o)},[o]);const s={theme:o,setTheme:a=>{localStorage.setItem(n,a),i(a)}};return R.jsx(vD.Provider,{...r,value:s,children:e})}const bD=()=>{const e=m.useContext(vD);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e};var Wf=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},tu=typeof window>"u"||"Deno"in window;function To(){}function xV(e,t){return typeof e=="function"?e(t):e}function ax(e){return typeof e=="number"&&e>=0&&e!==1/0}function yD(e,t){return Math.max(e+(t||0)-Date.now(),0)}function XR(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:s,stale:a}=e;if(s){if(r){if(t.queryHash!==fw(s,t.options))return!1}else if(!qd(t.queryKey,s))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||typeof o<"u"&&o!==t.state.fetchStatus||i&&!i(t))}function QR(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(Ud(t.options.mutationKey)!==Ud(i))return!1}else if(!qd(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function fw(e,t){return((t==null?void 0:t.queryKeyHashFn)||Ud)(e)}function Ud(e){return JSON.stringify(e,(t,n)=>cx(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function qd(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!qd(e[n],t[n])):!1}function xD(e,t){if(e===t)return e;const n=JR(e)&&JR(t);if(n||cx(e)&&cx(t)){const r=n?e:Object.keys(e),o=r.length,i=n?t:Object.keys(t),s=i.length,a=n?[]:{};let l=0;for(let c=0;c<s;c++){const u=n?c:i[c];!n&&e[u]===void 0&&t[u]===void 0&&r.includes(u)?(a[u]=void 0,l++):(a[u]=xD(e[u],t[u]),a[u]===e[u]&&e[u]!==void 0&&l++)}return o===s&&l===o?e:a}return t}function lx(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function JR(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function cx(e){if(!ZR(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!ZR(n)||!n.hasOwnProperty("isPrototypeOf"))}function ZR(e){return Object.prototype.toString.call(e)==="[object Object]"}function wV(e){return new Promise(t=>{setTimeout(t,e)})}function ux(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?xD(e,t):t}function _V(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function SV(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var el,Gs,Nc,jT,CV=(jT=class extends Wf{constructor(){super();Xe(this,el,void 0);Xe(this,Gs,void 0);Xe(this,Nc,void 0);Ve(this,Nc,t=>{if(!tu&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){ae(this,Gs)||this.setEventListener(ae(this,Nc))}onUnsubscribe(){var t;this.hasListeners()||((t=ae(this,Gs))==null||t.call(this),Ve(this,Gs,void 0))}setEventListener(t){var n;Ve(this,Nc,t),(n=ae(this,Gs))==null||n.call(this),Ve(this,Gs,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){ae(this,el)!==t&&(Ve(this,el,t),this.onFocus())}onFocus(){this.listeners.forEach(t=>{t()})}isFocused(){var t;return typeof ae(this,el)=="boolean"?ae(this,el):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},el=new WeakMap,Gs=new WeakMap,Nc=new WeakMap,jT),zg=new CV,Lc,Ys,Fc,zT,EV=(zT=class extends Wf{constructor(){super();Xe(this,Lc,!0);Xe(this,Ys,void 0);Xe(this,Fc,void 0);Ve(this,Fc,t=>{if(!tu&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){ae(this,Ys)||this.setEventListener(ae(this,Fc))}onUnsubscribe(){var t;this.hasListeners()||((t=ae(this,Ys))==null||t.call(this),Ve(this,Ys,void 0))}setEventListener(t){var n;Ve(this,Fc,t),(n=ae(this,Ys))==null||n.call(this),Ve(this,Ys,t(this.setOnline.bind(this)))}setOnline(t){ae(this,Lc)!==t&&(Ve(this,Lc,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return ae(this,Lc)}},Lc=new WeakMap,Ys=new WeakMap,Fc=new WeakMap,zT),Bg=new EV;function RV(e){return Math.min(1e3*2**e,3e4)}function Dm(e){return(e??"online")==="online"?Bg.isOnline():!0}var wD=class{constructor(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function a0(e){return e instanceof wD}function _D(e){let t=!1,n=0,r=!1,o,i,s;const a=new Promise((w,y)=>{i=w,s=y}),l=w=>{var y;r||(p(new wD(w)),(y=e.abort)==null||y.call(e))},c=()=>{t=!0},u=()=>{t=!1},f=()=>!zg.isFocused()||e.networkMode!=="always"&&!Bg.isOnline(),h=w=>{var y;r||(r=!0,(y=e.onSuccess)==null||y.call(e,w),o==null||o(),i(w))},p=w=>{var y;r||(r=!0,(y=e.onError)==null||y.call(e,w),o==null||o(),s(w))},v=()=>new Promise(w=>{var y;o=_=>{const S=r||!f();return S&&w(_),S},(y=e.onPause)==null||y.call(e)}).then(()=>{var w;o=void 0,r||(w=e.onContinue)==null||w.call(e)}),b=()=>{if(r)return;let w;try{w=e.fn()}catch(y){w=Promise.reject(y)}Promise.resolve(w).then(h).catch(y=>{var O;if(r)return;const _=e.retry??(tu?0:3),S=e.retryDelay??RV,C=typeof S=="function"?S(n,y):S,E=_===!0||typeof _=="number"&&n<_||typeof _=="function"&&_(n,y);if(t||!E){p(y);return}n++,(O=e.onFail)==null||O.call(e,n,y),wV(C).then(()=>{if(f())return v()}).then(()=>{t?p(y):b()})})};return Dm(e.networkMode)?b():v().then(b),{promise:a,cancel:l,continue:()=>(o==null?void 0:o())?a:Promise.resolve(),cancelRetry:c,continueRetry:u}}function PV(){let e=[],t=0,n=h=>{h()},r=h=>{h()},o=h=>setTimeout(h,0);const i=h=>{o=h},s=h=>{let p;t++;try{p=h()}finally{t--,t||c()}return p},a=h=>{t?e.push(h):o(()=>{n(h)})},l=h=>(...p)=>{a(()=>{h(...p)})},c=()=>{const h=e;e=[],h.length&&o(()=>{r(()=>{h.forEach(p=>{n(p)})})})};return{batch:s,batchCalls:l,schedule:a,setNotifyFunction:h=>{n=h},setBatchNotifyFunction:h=>{r=h},setScheduler:i}}var Qn=PV(),tl,BT,SD=(BT=class{constructor(){Xe(this,tl,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),ax(this.gcTime)&&Ve(this,tl,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(tu?1/0:5*60*1e3))}clearGcTimeout(){ae(this,tl)&&(clearTimeout(ae(this,tl)),Ve(this,tl,void 0))}},tl=new WeakMap,BT),jc,zc,Po,Ks,Oo,Wn,Df,nl,Bc,xg,Yo,Ki,VT,OV=(VT=class extends SD{constructor(t){super();Xe(this,Bc);Xe(this,Yo);Xe(this,jc,void 0);Xe(this,zc,void 0);Xe(this,Po,void 0);Xe(this,Ks,void 0);Xe(this,Oo,void 0);Xe(this,Wn,void 0);Xe(this,Df,void 0);Xe(this,nl,void 0);Ve(this,nl,!1),Ve(this,Df,t.defaultOptions),Ct(this,Bc,xg).call(this,t.options),Ve(this,Wn,[]),Ve(this,Po,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Ve(this,jc,t.state||$V(this.options)),this.state=ae(this,jc),this.scheduleGc()}get meta(){return this.options.meta}optionalRemove(){!ae(this,Wn).length&&this.state.fetchStatus==="idle"&&ae(this,Po).remove(this)}setData(t,n){const r=ux(this.state.data,t,this.options);return Ct(this,Yo,Ki).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Ct(this,Yo,Ki).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r;const n=ae(this,Ks);return(r=ae(this,Oo))==null||r.cancel(t),n?n.then(To).catch(To):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(ae(this,jc))}isActive(){return ae(this,Wn).some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||ae(this,Wn).some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!yD(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=ae(this,Wn).find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=ae(this,Oo))==null||n.continue()}onOnline(){var n;const t=ae(this,Wn).find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=ae(this,Oo))==null||n.continue()}addObserver(t){ae(this,Wn).includes(t)||(ae(this,Wn).push(t),this.clearGcTimeout(),ae(this,Po).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){ae(this,Wn).includes(t)&&(Ve(this,Wn,ae(this,Wn).filter(n=>n!==t)),ae(this,Wn).length||(ae(this,Oo)&&(ae(this,nl)?ae(this,Oo).cancel({revert:!0}):ae(this,Oo).cancelRetry()),this.scheduleGc()),ae(this,Po).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return ae(this,Wn).length}invalidate(){this.state.isInvalidated||Ct(this,Yo,Ki).call(this,{type:"invalidate"})}fetch(t,n){var c,u,f,h;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(ae(this,Ks))return(c=ae(this,Oo))==null||c.continueRetry(),ae(this,Ks)}if(t&&Ct(this,Bc,xg).call(this,t),!this.options.queryFn){const p=ae(this,Wn).find(v=>v.options.queryFn);p&&Ct(this,Bc,xg).call(this,p.options)}process.env.NODE_ENV!=="production"&&(Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const r=new AbortController,o={queryKey:this.queryKey,meta:this.meta},i=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(Ve(this,nl,!0),r.signal)})};i(o);const s=()=>this.options.queryFn?(Ve(this,nl,!1),this.options.persister?this.options.persister(this.options.queryFn,o,this):this.options.queryFn(o)):Promise.reject(new Error(`Missing queryFn: '${this.options.queryHash}'`)),a={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:s};i(a),(u=this.options.behavior)==null||u.onFetch(a,this),Ve(this,zc,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((f=a.fetchOptions)==null?void 0:f.meta))&&Ct(this,Yo,Ki).call(this,{type:"fetch",meta:(h=a.fetchOptions)==null?void 0:h.meta});const l=p=>{var v,b,w,y;a0(p)&&p.silent||Ct(this,Yo,Ki).call(this,{type:"error",error:p}),a0(p)||((b=(v=ae(this,Po).config).onError)==null||b.call(v,p,this),(y=(w=ae(this,Po).config).onSettled)==null||y.call(w,this.state.data,p,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return Ve(this,Oo,_D({fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:p=>{var v,b,w,y;if(typeof p>"u"){process.env.NODE_ENV!=="production"&&console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),l(new Error(`${this.queryHash} data is undefined`));return}this.setData(p),(b=(v=ae(this,Po).config).onSuccess)==null||b.call(v,p,this),(y=(w=ae(this,Po).config).onSettled)==null||y.call(w,p,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:l,onFail:(p,v)=>{Ct(this,Yo,Ki).call(this,{type:"failed",failureCount:p,error:v})},onPause:()=>{Ct(this,Yo,Ki).call(this,{type:"pause"})},onContinue:()=>{Ct(this,Yo,Ki).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode})),Ve(this,Ks,ae(this,Oo).promise),ae(this,Ks)}},jc=new WeakMap,zc=new WeakMap,Po=new WeakMap,Ks=new WeakMap,Oo=new WeakMap,Wn=new WeakMap,Df=new WeakMap,nl=new WeakMap,Bc=new WeakSet,xg=function(t){this.options={...ae(this,Df),...t},this.updateGcTime(this.options.gcTime)},Yo=new WeakSet,Ki=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:t.meta??null,fetchStatus:Dm(this.options.networkMode)?"fetching":"paused",...!r.dataUpdatedAt&&{error:null,status:"pending"}};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return a0(o)&&o.revert&&ae(this,zc)?{...ae(this,zc),fetchStatus:"idle"}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Qn.batch(()=>{ae(this,Wn).forEach(r=>{r.onQueryUpdate()}),ae(this,Po).notify({query:this,type:"updated",action:t})})},VT);function $V(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=typeof t<"u",r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var hi,HT,CD=(HT=class extends Wf{constructor(t={}){super();Xe(this,hi,void 0);this.config=t,Ve(this,hi,new Map)}build(t,n,r){const o=n.queryKey,i=n.queryHash??fw(o,n);let s=this.get(i);return s||(s=new OV({cache:this,queryKey:o,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(s)),s}add(t){ae(this,hi).has(t.queryHash)||(ae(this,hi).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=ae(this,hi).get(t.queryHash);n&&(t.destroy(),n===t&&ae(this,hi).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Qn.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return ae(this,hi).get(t)}getAll(){return[...ae(this,hi).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>XR(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>XR(t,r)):n}notify(t){Qn.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Qn.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Qn.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},hi=new WeakMap,HT),pi,Af,Zr,Vc,gi,zs,WT,TV=(WT=class extends SD{constructor(t){super();Xe(this,gi);Xe(this,pi,void 0);Xe(this,Af,void 0);Xe(this,Zr,void 0);Xe(this,Vc,void 0);this.mutationId=t.mutationId,Ve(this,Af,t.defaultOptions),Ve(this,Zr,t.mutationCache),Ve(this,pi,[]),this.state=t.state||DV(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...ae(this,Af),...t},this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){ae(this,pi).includes(t)||(ae(this,pi).push(t),this.clearGcTimeout(),ae(this,Zr).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Ve(this,pi,ae(this,pi).filter(n=>n!==t)),this.scheduleGc(),ae(this,Zr).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){ae(this,pi).length||(this.state.status==="pending"?this.scheduleGc():ae(this,Zr).remove(this))}continue(){var t;return((t=ae(this,Vc))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,i,s,a,l,c,u,f,h,p,v,b,w,y,_,S,C,E,O,T;const n=()=>(Ve(this,Vc,_D({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(M,I)=>{Ct(this,gi,zs).call(this,{type:"failed",failureCount:M,error:I})},onPause:()=>{Ct(this,gi,zs).call(this,{type:"pause"})},onContinue:()=>{Ct(this,gi,zs).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode})),ae(this,Vc).promise),r=this.state.status==="pending";try{if(!r){Ct(this,gi,zs).call(this,{type:"pending",variables:t}),await((i=(o=ae(this,Zr).config).onMutate)==null?void 0:i.call(o,t,this));const I=await((a=(s=this.options).onMutate)==null?void 0:a.call(s,t));I!==this.state.context&&Ct(this,gi,zs).call(this,{type:"pending",context:I,variables:t})}const M=await n();return await((c=(l=ae(this,Zr).config).onSuccess)==null?void 0:c.call(l,M,t,this.state.context,this)),await((f=(u=this.options).onSuccess)==null?void 0:f.call(u,M,t,this.state.context)),await((p=(h=ae(this,Zr).config).onSettled)==null?void 0:p.call(h,M,null,this.state.variables,this.state.context,this)),await((b=(v=this.options).onSettled)==null?void 0:b.call(v,M,null,t,this.state.context)),Ct(this,gi,zs).call(this,{type:"success",data:M}),M}catch(M){try{throw await((y=(w=ae(this,Zr).config).onError)==null?void 0:y.call(w,M,t,this.state.context,this)),await((S=(_=this.options).onError)==null?void 0:S.call(_,M,t,this.state.context)),await((E=(C=ae(this,Zr).config).onSettled)==null?void 0:E.call(C,void 0,M,this.state.variables,this.state.context,this)),await((T=(O=this.options).onSettled)==null?void 0:T.call(O,void 0,M,t,this.state.context)),M}finally{Ct(this,gi,zs).call(this,{type:"error",error:M})}}}},pi=new WeakMap,Af=new WeakMap,Zr=new WeakMap,Vc=new WeakMap,gi=new WeakSet,zs=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!Dm(this.options.networkMode),status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Qn.batch(()=>{ae(this,pi).forEach(r=>{r.onMutationUpdate(t)}),ae(this,Zr).notify({mutation:this,type:"updated",action:t})})},WT);function DV(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var $o,kf,rl,UT,AV=(UT=class extends Wf{constructor(t={}){super();Xe(this,$o,void 0);Xe(this,kf,void 0);Xe(this,rl,void 0);this.config=t,Ve(this,$o,[]),Ve(this,kf,0)}build(t,n,r){const o=new TV({mutationCache:this,mutationId:++cp(this,kf)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){ae(this,$o).push(t),this.notify({type:"added",mutation:t})}remove(t){Ve(this,$o,ae(this,$o).filter(n=>n!==t)),this.notify({type:"removed",mutation:t})}clear(){Qn.batch(()=>{ae(this,$o).forEach(t=>{this.remove(t)})})}getAll(){return ae(this,$o)}find(t){const n={exact:!0,...t};return ae(this,$o).find(r=>QR(n,r))}findAll(t={}){return ae(this,$o).filter(n=>QR(t,n))}notify(t){Qn.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){return Ve(this,rl,(ae(this,rl)??Promise.resolve()).then(()=>{const t=ae(this,$o).filter(n=>n.state.isPaused);return Qn.batch(()=>t.reduce((n,r)=>n.then(()=>r.continue().catch(To)),Promise.resolve()))}).then(()=>{Ve(this,rl,void 0)})),ae(this,rl)}},$o=new WeakMap,kf=new WeakMap,rl=new WeakMap,UT);function kV(e){return{onFetch:(t,n)=>{const r=async()=>{var v,b,w,y,_;const o=t.options,i=(w=(b=(v=t.fetchOptions)==null?void 0:v.meta)==null?void 0:b.fetchMore)==null?void 0:w.direction,s=((y=t.state.data)==null?void 0:y.pages)||[],a=((_=t.state.data)==null?void 0:_.pageParams)||[],l={pages:[],pageParams:[]};let c=!1;const u=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>(t.signal.aborted?c=!0:t.signal.addEventListener("abort",()=>{c=!0}),t.signal)})},f=t.options.queryFn||(()=>Promise.reject(new Error(`Missing queryFn: '${t.options.queryHash}'`))),h=async(S,C,E)=>{if(c)return Promise.reject();if(C==null&&S.pages.length)return Promise.resolve(S);const O={queryKey:t.queryKey,pageParam:C,direction:E?"backward":"forward",meta:t.options.meta};u(O);const T=await f(O),{maxPages:M}=t.options,I=E?SV:_V;return{pages:I(S.pages,T,M),pageParams:I(S.pageParams,C,M)}};let p;if(i&&s.length){const S=i==="backward",C=S?MV:eP,E={pages:s,pageParams:a},O=C(o,E);p=await h(E,O,S)}else{p=await h(l,a[0]??o.initialPageParam);const S=e??s.length;for(let C=1;C<S;C++){const E=eP(o,p);p=await h(p,E)}}return p};t.options.persister?t.fetchFn=()=>{var o,i;return(i=(o=t.options).persister)==null?void 0:i.call(o,r,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=r}}}function eP(e,{pages:t,pageParams:n}){const r=t.length-1;return e.getNextPageParam(t[r],t,n[r],n)}function MV(e,{pages:t,pageParams:n}){var r;return(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n)}var Ln,Xs,Qs,Hc,Wc,Js,Uc,qc,qT,IV=(qT=class{constructor(e={}){Xe(this,Ln,void 0);Xe(this,Xs,void 0);Xe(this,Qs,void 0);Xe(this,Hc,void 0);Xe(this,Wc,void 0);Xe(this,Js,void 0);Xe(this,Uc,void 0);Xe(this,qc,void 0);Ve(this,Ln,e.queryCache||new CD),Ve(this,Xs,e.mutationCache||new AV),Ve(this,Qs,e.defaultOptions||{}),Ve(this,Hc,new Map),Ve(this,Wc,new Map),Ve(this,Js,0)}mount(){cp(this,Js)._++,ae(this,Js)===1&&(Ve(this,Uc,zg.subscribe(()=>{zg.isFocused()&&(this.resumePausedMutations(),ae(this,Ln).onFocus())})),Ve(this,qc,Bg.subscribe(()=>{Bg.isOnline()&&(this.resumePausedMutations(),ae(this,Ln).onOnline())})))}unmount(){var e,t;cp(this,Js)._--,ae(this,Js)===0&&((e=ae(this,Uc))==null||e.call(this),Ve(this,Uc,void 0),(t=ae(this,qc))==null||t.call(this),Ve(this,qc,void 0))}isFetching(e){return ae(this,Ln).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return ae(this,Xs).findAll({...e,status:"pending"}).length}getQueryData(e){var t;return(t=ae(this,Ln).find({queryKey:e}))==null?void 0:t.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);return t!==void 0?Promise.resolve(t):this.fetchQuery(e)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=ae(this,Ln).find({queryKey:e}),o=r==null?void 0:r.state.data,i=xV(t,o);if(typeof i>"u")return;const s=this.defaultQueryOptions({queryKey:e});return ae(this,Ln).build(this,s).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return Qn.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var t;return(t=ae(this,Ln).find({queryKey:e}))==null?void 0:t.state}removeQueries(e){const t=ae(this,Ln);Qn.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=ae(this,Ln),r={type:"active",...e};return Qn.batch(()=>(n.findAll(e).forEach(o=>{o.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=Qn.batch(()=>ae(this,Ln).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(To).catch(To)}invalidateQueries(e={},t={}){return Qn.batch(()=>{if(ae(this,Ln).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=Qn.batch(()=>ae(this,Ln).findAll(e).filter(o=>!o.isDisabled()).map(o=>{let i=o.fetch(void 0,n);return n.throwOnError||(i=i.catch(To)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(To)}fetchQuery(e){const t=this.defaultQueryOptions(e);typeof t.retry>"u"&&(t.retry=!1);const n=ae(this,Ln).build(this,t);return n.isStaleByTime(t.staleTime)?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(To).catch(To)}fetchInfiniteQuery(e){return e.behavior=kV(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(To).catch(To)}resumePausedMutations(){return ae(this,Xs).resumePausedMutations()}getQueryCache(){return ae(this,Ln)}getMutationCache(){return ae(this,Xs)}getDefaultOptions(){return ae(this,Qs)}setDefaultOptions(e){Ve(this,Qs,e)}setQueryDefaults(e,t){ae(this,Hc).set(Ud(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...ae(this,Hc).values()];let n={};return t.forEach(r=>{qd(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){ae(this,Wc).set(Ud(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...ae(this,Wc).values()];let n={};return t.forEach(r=>{qd(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e!=null&&e._defaulted)return e;const t={...ae(this,Qs).queries,...(e==null?void 0:e.queryKey)&&this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=fw(t.queryKey,t)),typeof t.refetchOnReconnect>"u"&&(t.refetchOnReconnect=t.networkMode!=="always"),typeof t.throwOnError>"u"&&(t.throwOnError=!!t.suspense),typeof t.networkMode>"u"&&t.persister&&(t.networkMode="offlineFirst"),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...ae(this,Qs).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){ae(this,Ln).clear(),ae(this,Xs).clear()}},Ln=new WeakMap,Xs=new WeakMap,Qs=new WeakMap,Hc=new WeakMap,Wc=new WeakMap,Js=new WeakMap,Uc=new WeakMap,qc=new WeakMap,qT),Ir,fn,Mf,vr,ol,Gc,mi,If,Yc,Kc,il,sl,Zs,Xc,al,vd,Nf,dx,Lf,fx,Ff,hx,jf,px,zf,gx,Bf,mx,Vf,vx,Em,ED,GT,NV=(GT=class extends Wf{constructor(t,n){super();Xe(this,al);Xe(this,Nf);Xe(this,Lf);Xe(this,Ff);Xe(this,jf);Xe(this,zf);Xe(this,Bf);Xe(this,Vf);Xe(this,Em);Xe(this,Ir,void 0);Xe(this,fn,void 0);Xe(this,Mf,void 0);Xe(this,vr,void 0);Xe(this,ol,void 0);Xe(this,Gc,void 0);Xe(this,mi,void 0);Xe(this,If,void 0);Xe(this,Yc,void 0);Xe(this,Kc,void 0);Xe(this,il,void 0);Xe(this,sl,void 0);Xe(this,Zs,void 0);Xe(this,Xc,new Set);this.options=n,Ve(this,Ir,t),Ve(this,mi,null),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(ae(this,fn).addObserver(this),tP(ae(this,fn),this.options)?Ct(this,al,vd).call(this):this.updateResult(),Ct(this,jf,px).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return bx(ae(this,fn),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return bx(ae(this,fn),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Ct(this,zf,gx).call(this),Ct(this,Bf,mx).call(this),ae(this,fn).removeObserver(this)}setOptions(t,n){const r=this.options,o=ae(this,fn);if(this.options=ae(this,Ir).defaultQueryOptions(t),lx(r,this.options)||ae(this,Ir).getQueryCache().notify({type:"observerOptionsUpdated",query:ae(this,fn),observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=r.queryKey),Ct(this,Vf,vx).call(this);const i=this.hasListeners();i&&nP(ae(this,fn),o,this.options,r)&&Ct(this,al,vd).call(this),this.updateResult(n),i&&(ae(this,fn)!==o||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&Ct(this,Nf,dx).call(this);const s=Ct(this,Lf,fx).call(this);i&&(ae(this,fn)!==o||this.options.enabled!==r.enabled||s!==ae(this,Zs))&&Ct(this,Ff,hx).call(this,s)}getOptimisticResult(t){const n=ae(this,Ir).getQueryCache().build(ae(this,Ir),t),r=this.createResult(n,t);return FV(this,r)&&(Ve(this,vr,r),Ve(this,Gc,this.options),Ve(this,ol,ae(this,fn).state)),r}getCurrentResult(){return ae(this,vr)}trackResult(t){const n={};return Object.keys(t).forEach(r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(ae(this,Xc).add(r),t[r])})}),n}getCurrentQuery(){return ae(this,fn)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=ae(this,Ir).defaultQueryOptions(t),r=ae(this,Ir).getQueryCache().build(ae(this,Ir),n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(t){return Ct(this,al,vd).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),ae(this,vr)))}createResult(t,n){var O;const r=ae(this,fn),o=this.options,i=ae(this,vr),s=ae(this,ol),a=ae(this,Gc),c=t!==r?t.state:ae(this,Mf),{state:u}=t;let{error:f,errorUpdatedAt:h,fetchStatus:p,status:v}=u,b=!1,w;if(n._optimisticResults){const T=this.hasListeners(),M=!T&&tP(t,n),I=T&&nP(t,r,n,o);(M||I)&&(p=Dm(t.options.networkMode)?"fetching":"paused",u.dataUpdatedAt||(v="pending")),n._optimisticResults==="isRestoring"&&(p="idle")}if(n.select&&typeof u.data<"u")if(i&&u.data===(s==null?void 0:s.data)&&n.select===ae(this,If))w=ae(this,Yc);else try{Ve(this,If,n.select),w=n.select(u.data),w=ux(i==null?void 0:i.data,w,n),Ve(this,Yc,w),Ve(this,mi,null)}catch(T){Ve(this,mi,T)}else w=u.data;if(typeof n.placeholderData<"u"&&typeof w>"u"&&v==="pending"){let T;if(i!=null&&i.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData))T=i.data;else if(T=typeof n.placeholderData=="function"?n.placeholderData((O=ae(this,Kc))==null?void 0:O.state.data,ae(this,Kc)):n.placeholderData,n.select&&typeof T<"u")try{T=n.select(T),Ve(this,mi,null)}catch(M){Ve(this,mi,M)}typeof T<"u"&&(v="success",w=ux(i==null?void 0:i.data,T,n),b=!0)}ae(this,mi)&&(f=ae(this,mi),w=ae(this,Yc),h=Date.now(),v="error");const y=p==="fetching",_=v==="pending",S=v==="error",C=_&&y;return{status:v,fetchStatus:p,isPending:_,isSuccess:v==="success",isError:S,isInitialLoading:C,isLoading:C,data:w,dataUpdatedAt:u.dataUpdatedAt,error:f,errorUpdatedAt:h,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:u.dataUpdateCount>0||u.errorUpdateCount>0,isFetchedAfterMount:u.dataUpdateCount>c.dataUpdateCount||u.errorUpdateCount>c.errorUpdateCount,isFetching:y,isRefetching:y&&!_,isLoadingError:S&&u.dataUpdatedAt===0,isPaused:p==="paused",isPlaceholderData:b,isRefetchError:S&&u.dataUpdatedAt!==0,isStale:hw(t,n),refetch:this.refetch}}updateResult(t){const n=ae(this,vr),r=this.createResult(ae(this,fn),this.options);if(Ve(this,ol,ae(this,fn).state),Ve(this,Gc,this.options),ae(this,ol).data!==void 0&&Ve(this,Kc,ae(this,fn)),lx(r,n))return;Ve(this,vr,r);const o={},i=()=>{if(!n)return!0;const{notifyOnChangeProps:s}=this.options,a=typeof s=="function"?s():s;if(a==="all"||!a&&!ae(this,Xc).size)return!0;const l=new Set(a??ae(this,Xc));return this.options.throwOnError&&l.add("error"),Object.keys(ae(this,vr)).some(c=>{const u=c;return ae(this,vr)[u]!==n[u]&&l.has(u)})};(t==null?void 0:t.listeners)!==!1&&i()&&(o.listeners=!0),Ct(this,Em,ED).call(this,{...o,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Ct(this,jf,px).call(this)}},Ir=new WeakMap,fn=new WeakMap,Mf=new WeakMap,vr=new WeakMap,ol=new WeakMap,Gc=new WeakMap,mi=new WeakMap,If=new WeakMap,Yc=new WeakMap,Kc=new WeakMap,il=new WeakMap,sl=new WeakMap,Zs=new WeakMap,Xc=new WeakMap,al=new WeakSet,vd=function(t){Ct(this,Vf,vx).call(this);let n=ae(this,fn).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(To)),n},Nf=new WeakSet,dx=function(){if(Ct(this,zf,gx).call(this),tu||ae(this,vr).isStale||!ax(this.options.staleTime))return;const n=yD(ae(this,vr).dataUpdatedAt,this.options.staleTime)+1;Ve(this,il,setTimeout(()=>{ae(this,vr).isStale||this.updateResult()},n))},Lf=new WeakSet,fx=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(ae(this,fn)):this.options.refetchInterval)??!1},Ff=new WeakSet,hx=function(t){Ct(this,Bf,mx).call(this),Ve(this,Zs,t),!(tu||this.options.enabled===!1||!ax(ae(this,Zs))||ae(this,Zs)===0)&&Ve(this,sl,setInterval(()=>{(this.options.refetchIntervalInBackground||zg.isFocused())&&Ct(this,al,vd).call(this)},ae(this,Zs)))},jf=new WeakSet,px=function(){Ct(this,Nf,dx).call(this),Ct(this,Ff,hx).call(this,Ct(this,Lf,fx).call(this))},zf=new WeakSet,gx=function(){ae(this,il)&&(clearTimeout(ae(this,il)),Ve(this,il,void 0))},Bf=new WeakSet,mx=function(){ae(this,sl)&&(clearInterval(ae(this,sl)),Ve(this,sl,void 0))},Vf=new WeakSet,vx=function(){const t=ae(this,Ir).getQueryCache().build(ae(this,Ir),this.options);if(t===ae(this,fn))return;const n=ae(this,fn);Ve(this,fn,t),Ve(this,Mf,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},Em=new WeakSet,ED=function(t){Qn.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(ae(this,vr))}),ae(this,Ir).getQueryCache().notify({query:ae(this,fn),type:"observerResultsUpdated"})})},GT);function LV(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function tP(e,t){return LV(e,t)||e.state.dataUpdatedAt>0&&bx(e,t,t.refetchOnMount)}function bx(e,t,n){if(t.enabled!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&hw(e,t)}return!1}function nP(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&hw(e,n)}function hw(e,t){return e.isStaleByTime(t.staleTime)}function FV(e,t){return!lx(e.getCurrentResult(),t)}var RD=L.createContext(void 0),PD=e=>{const t=L.useContext(RD);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},jV=({client:e,children:t})=>(L.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),L.createElement(RD.Provider,{value:e},t)),OD=L.createContext(!1),zV=()=>L.useContext(OD);OD.Provider;function BV(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var VV=L.createContext(BV()),HV=()=>L.useContext(VV);function WV(e,t){return typeof e=="function"?e(...t):!!e}var UV=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},qV=e=>{L.useEffect(()=>{e.clearReset()},[e])},GV=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&WV(n,[e.error,r]),YV=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},KV=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,XV=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function QV(e,t,n){if(process.env.NODE_ENV!=="production"&&(typeof e!="object"||Array.isArray(e)))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const r=PD(n),o=zV(),i=HV(),s=r.defaultQueryOptions(e);s._optimisticResults=o?"isRestoring":"optimistic",YV(s),UV(s,i),qV(i);const[a]=L.useState(()=>new t(r,s)),l=a.getOptimisticResult(s);if(L.useSyncExternalStore(L.useCallback(c=>{const u=o?()=>{}:a.subscribe(Qn.batchCalls(c));return a.updateResult(),u},[a,o]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),L.useEffect(()=>{a.setOptions(s,{listeners:!1})},[s,a]),KV(s,l))throw XV(s,a,i);if(GV({result:l,errorResetBoundary:i,throwOnError:s.throwOnError,query:r.getQueryCache().get(s.queryHash)}))throw l.error;return s.notifyOnChangeProps?l:a.trackResult(l)}function Uf(e,t){return QV(e,NV,t)}function $D({children:e}){const{setIsSessionExpired:t}=wr(),n=new IV({queryCache:new CD({onError:r=>{console.error(`Something went wrong: ${r.message}`),r.message==="invalid token"&&t(!0)}}),defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1}}});return R.jsx(jV,{client:n,children:e})}const vu=m.forwardRef(({children:e,className:t,...n},r)=>R.jsx("div",{className:_e("semaphor-scope",t),ref:r,...n,children:e})),JV={id:"",authToken:void 0},TD=m.createContext(JV),DD=({children:e,dashboardProps:t})=>R.jsx($D,{children:R.jsx(TD.Provider,{value:t,children:R.jsx(vu,{style:{height:"100%"},children:e})})});function Oi(){const e=m.useContext(TD);if(e===void 0)throw new Error("useApplicationContext must be used within a ApplicationContextProvider");return e}function ZV(){const{authToken:e}=Oi(),t=Pe(s=>s.selectedLensId),{data:n,isLoading:r,isFetching:o,isError:i}=Uf({queryKey:["dashboard",t,e==null?void 0:e.accessToken],queryFn:()=>LB(e==null?void 0:e.accessToken,{lensId:t})});return{data:n,isLoading:r,isFetching:o,isError:i}}function AD(e){return e==="system"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e}function rP(e,t){const n=AD(e);return n==="dark"?ll.merge({...t==null?void 0:t.default},{...t==null?void 0:t.dark}):t==null?void 0:t.default}function eH({customStyle:e,currentTheme:t,onSave:n,onEvent:r}){const{authToken:o}=Oi(),i=Pe(D=>D.selectedLensId),{data:s,isLoading:a,isFetching:l,isError:c}=ZV(),{theme:u,setTheme:f}=bD(),h=Pe(D=>D.dashboard.globalStyle),{setDashboard:p,setDashboardWithFilterValues:v,setSelectedSheetId:b,setStyle:w,setOnSaveFunction:y,setLenses:_,setSelectedLensId:S,setInitStore:C}=Pe(D=>D.actions);Pe(D=>D.actions.setCustomCards);const E=Pe(D=>D.actions.setFilterValues),O=Pe(D=>D.actions.setThemeStyle),T=Pe(D=>D.actions.setDashboardTheme),M=Pe(D=>D.actions.setOnEvent);m.useEffect(()=>{o&&C()},[o,C]),m.useEffect(()=>{if(u){const D=AD(u);T(D)}},[u,T]),m.useEffect(()=>{t&&f(t)},[t,f]);const I=m.useCallback(()=>{const D=ll.cloneDeep(Lg),F=ll.merge(D,h);if(e){const j=ll.merge(F,e),K=rP(u,j);O(K),w(j)}else{const j=rP(u,F);O(j),w(Lg)}},[u,e,h,O,w]);return m.useEffect(()=>{s&&s.dashboard&&I()},[u,e,h,I,s]),m.useEffect(()=>{var ee;if(!s||!s.dashboard)return;const{dashboard:D,filterValues:F,defaultLensId:j,lenses:K}=s;v(D,F||[]),j&&S(j),K&&_(K),I(),b((ee=D.sheets)==null?void 0:ee[0].id)},[s,p,b,E,i,_,I,v,S]),m.useEffect(()=>{n&&y(n),r&&M(r)},[n,y,r,M]),{isFetching:l,isLoading:a,isError:c}}function Am({className:e,...t}){return R.jsx("div",{className:_e("animate-pulse rounded-md bg-muted",e),...t})}const pw=L.forwardRef(({className:e,...t},n)=>R.jsx("div",{ref:n,className:_e("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));pw.displayName="Card";const km=L.forwardRef(({className:e,...t},n)=>R.jsx("div",{ref:n,className:_e("flex flex-col space-y-1.5 p-6",e),...t}));km.displayName="CardHeader";const bu=L.forwardRef(({className:e,...t},n)=>R.jsx("h3",{ref:n,className:_e("text-2xl font-semibold leading-none tracking-tight",e),...t}));bu.displayName="CardTitle";const gw=L.forwardRef(({className:e,...t},n)=>R.jsx("p",{ref:n,className:_e("text-sm text-muted-foreground",e),...t}));gw.displayName="CardDescription";const Mm=L.forwardRef(({className:e,...t},n)=>R.jsx("div",{ref:n,className:_e("px-6 pt-0",e),...t}));Mm.displayName="CardContent";const mw=L.forwardRef(({className:e,...t},n)=>R.jsx("div",{ref:n,className:_e("flex items-center p-6 pt-0",e),...t}));mw.displayName="CardFooter";function kD({className:e,customStyle:t,onSave:n,onEvent:r,LoadingComponent:o,ErrorComponent:i,onChartElementClicked:s,id:a,authToken:l,currentTheme:c,version:u,customCards:f,showAssistant:h,...p}){Pe(S=>S.selectedSheetId);const v=Pe(S=>S.themeStyle),b=Pe(S=>S.isSessionExpired),{isLoading:w,isError:y,isFetching:_}=eH({authToken:l,customStyle:t,currentTheme:c,onSave:n,onEvent:r});return w||!l?(r==null||r({type:"info",message:"Loading dashboard"}),o?R.jsx(o,{message:"loading"}):R.jsx("div",{className:"flex items-center gap-3",children:R.jsx(Am,{className:"h-1 w-full dark:h-[2px]"})})):y?(r==null||r({type:"error",message:"Error fetching dashboard"}),i?(console.log("Error fetching dashboard"),R.jsx(i,{})):R.jsx("div",{children:"Error"})):b?(r==null||r({type:"error",message:"Session Expired"}),R.jsx("div",{className:"flex h-full items-center justify-center",children:R.jsxs("div",{className:"space-y-4 rounded-md border border-muted p-10",children:[R.jsx(bu,{children:"Session Expired"}),R.jsx("p",{className:"text-muted-foreground",children:"Please refresh your page to continue."})]})})):R.jsx("div",{className:_e("flex h-full flex-col justify-between",v==null?void 0:v.dashboardPanel,e),role:"dashboard-panel",...p})}function ce(){return ce=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ce.apply(this,arguments)}function Me(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function tr(e,t=[]){let n=[];function r(i,s){const a=m.createContext(s),l=n.length;n=[...n,s];function c(f){const{scope:h,children:p,...v}=f,b=(h==null?void 0:h[e][l])||a,w=m.useMemo(()=>v,Object.values(v));return m.createElement(b.Provider,{value:w},p)}function u(f,h){const p=(h==null?void 0:h[e][l])||a,v=m.useContext(p);if(v)return v;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${i}\``)}return c.displayName=i+"Provider",[c,u]}const o=()=>{const i=n.map(s=>m.createContext(s));return function(a){const l=(a==null?void 0:a[e])||i;return m.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,tH(o,...t)]}function tH(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((a,{useScope:l,scopeName:c})=>{const f=l(i)[`__scope${c}`];return{...a,...f}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function nH(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function fs(...e){return t=>e.forEach(n=>nH(n,t))}function _t(...e){return m.useCallback(fs(...e),e)}const yx=m.forwardRef((e,t)=>{const{children:n,...r}=e,o=m.Children.toArray(n),i=o.find(oH);if(i){const s=i.props.children,a=o.map(l=>l===i?m.Children.count(s)>1?m.Children.only(null):m.isValidElement(s)?s.props.children:null:l);return m.createElement(xx,ce({},r,{ref:t}),m.isValidElement(s)?m.cloneElement(s,void 0,a):null)}return m.createElement(xx,ce({},r,{ref:t}),n)});yx.displayName="Slot";const xx=m.forwardRef((e,t)=>{const{children:n,...r}=e;return m.isValidElement(n)?m.cloneElement(n,{...iH(r,n.props),ref:t?fs(t,n.ref):n.ref}):m.Children.count(n)>1?m.Children.only(null):null});xx.displayName="SlotClone";const rH=({children:e})=>m.createElement(m.Fragment,null,e);function oH(e){return m.isValidElement(e)&&e.type===rH}function iH(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{i(...a),o(...a)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Im(e){const t=e+"CollectionProvider",[n,r]=tr(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=p=>{const{scope:v,children:b}=p,w=m.useRef(null),y=m.useRef(new Map).current;return m.createElement(o,{scope:v,itemMap:y,collectionRef:w},b)},a=e+"CollectionSlot",l=m.forwardRef((p,v)=>{const{scope:b,children:w}=p,y=i(a,b),_=_t(v,y.collectionRef);return m.createElement(yx,{ref:_},w)}),c=e+"CollectionItemSlot",u="data-radix-collection-item",f=m.forwardRef((p,v)=>{const{scope:b,children:w,...y}=p,_=m.useRef(null),S=_t(v,_),C=i(c,b);return m.useEffect(()=>(C.itemMap.set(_,{ref:_,...y}),()=>void C.itemMap.delete(_))),m.createElement(yx,{[u]:"",ref:S},w)});function h(p){const v=i(e+"CollectionConsumer",p);return m.useCallback(()=>{const w=v.collectionRef.current;if(!w)return[];const y=Array.from(w.querySelectorAll(`[${u}]`));return Array.from(v.itemMap.values()).sort((C,E)=>y.indexOf(C.ref.current)-y.indexOf(E.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:s,Slot:l,ItemSlot:f},h,r]}const ur=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{},sH=L.useId||(()=>{});let aH=0;function Zo(e){const[t,n]=L.useState(sH());return ur(()=>{e||n(r=>r??String(aH++))},[e]),e||(t?`radix-${t}`:"")}const MD=m.forwardRef((e,t)=>{const{children:n,...r}=e,o=m.Children.toArray(n),i=o.find(cH);if(i){const s=i.props.children,a=o.map(l=>l===i?m.Children.count(s)>1?m.Children.only(null):m.isValidElement(s)?s.props.children:null:l);return m.createElement(wx,ce({},r,{ref:t}),m.isValidElement(s)?m.cloneElement(s,void 0,a):null)}return m.createElement(wx,ce({},r,{ref:t}),n)});MD.displayName="Slot";const wx=m.forwardRef((e,t)=>{const{children:n,...r}=e;return m.isValidElement(n)?m.cloneElement(n,{...uH(r,n.props),ref:t?fs(t,n.ref):n.ref}):m.Children.count(n)>1?m.Children.only(null):null});wx.displayName="SlotClone";const lH=({children:e})=>m.createElement(m.Fragment,null,e);function cH(e){return m.isValidElement(e)&&e.type===lH}function uH(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{i(...a),o(...a)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const dH=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Qe=dH.reduce((e,t)=>{const n=m.forwardRef((r,o)=>{const{asChild:i,...s}=r,a=i?MD:t;return m.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),m.createElement(a,ce({},s,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function ID(e,t){e&&Cr.flushSync(()=>e.dispatchEvent(t))}function jn(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function _r({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=fH({defaultProp:t,onChange:n}),i=e!==void 0,s=i?e:r,a=jn(n),l=m.useCallback(c=>{if(i){const f=typeof c=="function"?c(e):c;f!==e&&a(f)}else o(c)},[i,e,o,a]);return[s,l]}function fH({defaultProp:e,onChange:t}){const n=m.useState(e),[r]=n,o=m.useRef(r),i=jn(t);return m.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}const hH=m.createContext(void 0);function Pl(e){const t=m.useContext(hH);return e||t||"ltr"}const l0="rovingFocusGroup.onEntryFocus",pH={bubbles:!1,cancelable:!0},vw="RovingFocusGroup",[_x,ND,gH]=Im(vw),[mH,yu]=tr(vw,[gH]),[vH,bH]=mH(vw),yH=m.forwardRef((e,t)=>m.createElement(_x.Provider,{scope:e.__scopeRovingFocusGroup},m.createElement(_x.Slot,{scope:e.__scopeRovingFocusGroup},m.createElement(xH,ce({},e,{ref:t}))))),xH=m.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:s,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:l,onEntryFocus:c,...u}=e,f=m.useRef(null),h=_t(t,f),p=Pl(i),[v=null,b]=_r({prop:s,defaultProp:a,onChange:l}),[w,y]=m.useState(!1),_=jn(c),S=ND(n),C=m.useRef(!1),[E,O]=m.useState(0);return m.useEffect(()=>{const T=f.current;if(T)return T.addEventListener(l0,_),()=>T.removeEventListener(l0,_)},[_]),m.createElement(vH,{scope:n,orientation:r,dir:p,loop:o,currentTabStopId:v,onItemFocus:m.useCallback(T=>b(T),[b]),onItemShiftTab:m.useCallback(()=>y(!0),[]),onFocusableItemAdd:m.useCallback(()=>O(T=>T+1),[]),onFocusableItemRemove:m.useCallback(()=>O(T=>T-1),[])},m.createElement(Qe.div,ce({tabIndex:w||E===0?-1:0,"data-orientation":r},u,{ref:h,style:{outline:"none",...e.style},onMouseDown:Me(e.onMouseDown,()=>{C.current=!0}),onFocus:Me(e.onFocus,T=>{const M=!C.current;if(T.target===T.currentTarget&&M&&!w){const I=new CustomEvent(l0,pH);if(T.currentTarget.dispatchEvent(I),!I.defaultPrevented){const D=S().filter(H=>H.focusable),F=D.find(H=>H.active),j=D.find(H=>H.id===v),ee=[F,j,...D].filter(Boolean).map(H=>H.ref.current);LD(ee)}}C.current=!1}),onBlur:Me(e.onBlur,()=>y(!1))})))}),wH="RovingFocusGroupItem",_H=m.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,...s}=e,a=Zo(),l=i||a,c=bH(wH,n),u=c.currentTabStopId===l,f=ND(n),{onFocusableItemAdd:h,onFocusableItemRemove:p}=c;return m.useEffect(()=>{if(r)return h(),()=>p()},[r,h,p]),m.createElement(_x.ItemSlot,{scope:n,id:l,focusable:r,active:o},m.createElement(Qe.span,ce({tabIndex:u?0:-1,"data-orientation":c.orientation},s,{ref:t,onMouseDown:Me(e.onMouseDown,v=>{r?c.onItemFocus(l):v.preventDefault()}),onFocus:Me(e.onFocus,()=>c.onItemFocus(l)),onKeyDown:Me(e.onKeyDown,v=>{if(v.key==="Tab"&&v.shiftKey){c.onItemShiftTab();return}if(v.target!==v.currentTarget)return;const b=EH(v,c.orientation,c.dir);if(b!==void 0){v.preventDefault();let y=f().filter(_=>_.focusable).map(_=>_.ref.current);if(b==="last")y.reverse();else if(b==="prev"||b==="next"){b==="prev"&&y.reverse();const _=y.indexOf(v.currentTarget);y=c.loop?RH(y,_+1):y.slice(_+1)}setTimeout(()=>LD(y))}})})))}),SH={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function CH(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function EH(e,t,n){const r=CH(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return SH[r]}function LD(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function RH(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const bw=yH,yw=_H;function PH(e,t){return m.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const nr=e=>{const{present:t,children:n}=e,r=OH(t),o=typeof n=="function"?n({present:r.isPresent}):m.Children.only(n),i=_t(r.ref,o.ref);return typeof n=="function"||r.isPresent?m.cloneElement(o,{ref:i}):null};nr.displayName="Presence";function OH(e){const[t,n]=m.useState(),r=m.useRef({}),o=m.useRef(e),i=m.useRef("none"),s=e?"mounted":"unmounted",[a,l]=PH(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect(()=>{const c=hp(r.current);i.current=a==="mounted"?c:"none"},[a]),ur(()=>{const c=r.current,u=o.current;if(u!==e){const h=i.current,p=hp(c);e?l("MOUNT"):p==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&h!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),ur(()=>{if(t){const c=f=>{const p=hp(r.current).includes(f.animationName);f.target===t&&p&&Cr.flushSync(()=>l("ANIMATION_END"))},u=f=>{f.target===t&&(i.current=hp(r.current))};return t.addEventListener("animationstart",u),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{t.removeEventListener("animationstart",u),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:m.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function hp(e){return(e==null?void 0:e.animationName)||"none"}const FD="Tabs",[$H,f1e]=tr(FD,[yu]),jD=yu(),[TH,xw]=$H(FD),DH=m.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:i,orientation:s="horizontal",dir:a,activationMode:l="automatic",...c}=e,u=Pl(a),[f,h]=_r({prop:r,onChange:o,defaultProp:i});return m.createElement(TH,{scope:n,baseId:Zo(),value:f,onValueChange:h,orientation:s,dir:u,activationMode:l},m.createElement(Qe.div,ce({dir:u,"data-orientation":s},c,{ref:t})))}),AH="TabsList",kH=m.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,i=xw(AH,n),s=jD(n);return m.createElement(bw,ce({asChild:!0},s,{orientation:i.orientation,dir:i.dir,loop:r}),m.createElement(Qe.div,ce({role:"tablist","aria-orientation":i.orientation},o,{ref:t})))}),MH="TabsTrigger",IH=m.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...i}=e,s=xw(MH,n),a=jD(n),l=zD(s.baseId,r),c=BD(s.baseId,r),u=r===s.value;return m.createElement(yw,ce({asChild:!0},a,{focusable:!o,active:u}),m.createElement(Qe.button,ce({type:"button",role:"tab","aria-selected":u,"aria-controls":c,"data-state":u?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:l},i,{ref:t,onMouseDown:Me(e.onMouseDown,f=>{!o&&f.button===0&&f.ctrlKey===!1?s.onValueChange(r):f.preventDefault()}),onKeyDown:Me(e.onKeyDown,f=>{[" ","Enter"].includes(f.key)&&s.onValueChange(r)}),onFocus:Me(e.onFocus,()=>{const f=s.activationMode!=="manual";!u&&!o&&f&&s.onValueChange(r)})})))}),NH="TabsContent",LH=m.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:i,...s}=e,a=xw(NH,n),l=zD(a.baseId,r),c=BD(a.baseId,r),u=r===a.value,f=m.useRef(u);return m.useEffect(()=>{const h=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(h)},[]),m.createElement(nr,{present:o||u},({present:h})=>m.createElement(Qe.div,ce({"data-state":u?"active":"inactive","data-orientation":a.orientation,role:"tabpanel","aria-labelledby":l,hidden:!h,id:c,tabIndex:0},s,{ref:t,style:{...e.style,animationDuration:f.current?"0s":void 0}}),h&&i))});function zD(e,t){return`${e}-trigger-${t}`}function BD(e,t){return`${e}-content-${t}`}const FH=DH,VD=kH,HD=IH,WD=LH,ww=FH,Nm=L.forwardRef(({className:e,...t},n)=>R.jsx(VD,{ref:n,className:_e("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...t}));Nm.displayName=VD.displayName;const Lm=L.forwardRef(({className:e,...t},n)=>R.jsx(HD,{ref:n,className:_e("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",e),...t}));Lm.displayName=HD.displayName;const _w=L.forwardRef(({className:e,...t},n)=>R.jsx(WD,{ref:n,className:_e("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));_w.displayName=WD.displayName;var UD={exports:{}},qf={},Sx={exports:{}};(function(e,t){(function(n,r){r(t)})(qs,function(n){function r(Q){return function(ie,ve,Y,be,Se,$e,Te){return Q(ie,ve,Te)}}function o(Q){return function(ie,ve,Y,be){if(!ie||!ve||typeof ie!="object"||typeof ve!="object")return Q(ie,ve,Y,be);var Se=be.get(ie),$e=be.get(ve);if(Se&&$e)return Se===ve&&$e===ie;be.set(ie,ve),be.set(ve,ie);var Te=Q(ie,ve,Y,be);return be.delete(ie),be.delete(ve),Te}}function i(Q,J){var ie={};for(var ve in Q)ie[ve]=Q[ve];for(var ve in J)ie[ve]=J[ve];return ie}function s(Q){return Q.constructor===Object||Q.constructor==null}function a(Q){return typeof Q.then=="function"}function l(Q,J){return Q===J||Q!==Q&&J!==J}var c="[object Arguments]",u="[object Boolean]",f="[object Date]",h="[object RegExp]",p="[object Map]",v="[object Number]",b="[object Object]",w="[object Set]",y="[object String]",_=Object.prototype.toString;function S(Q){var J=Q.areArraysEqual,ie=Q.areDatesEqual,ve=Q.areMapsEqual,Y=Q.areObjectsEqual,be=Q.areRegExpsEqual,Se=Q.areSetsEqual,$e=Q.createIsNestedEqual,Te=$e(Ue);function Ue(Be,Ie,Ke){if(Be===Ie)return!0;if(!Be||!Ie||typeof Be!="object"||typeof Ie!="object")return Be!==Be&&Ie!==Ie;if(s(Be)&&s(Ie))return Y(Be,Ie,Te,Ke);var lt=Array.isArray(Be),It=Array.isArray(Ie);if(lt||It)return lt===It&&J(Be,Ie,Te,Ke);var Dt=_.call(Be);return Dt!==_.call(Ie)?!1:Dt===f?ie(Be,Ie,Te,Ke):Dt===h?be(Be,Ie,Te,Ke):Dt===p?ve(Be,Ie,Te,Ke):Dt===w?Se(Be,Ie,Te,Ke):Dt===b||Dt===c?a(Be)||a(Ie)?!1:Y(Be,Ie,Te,Ke):Dt===u||Dt===v||Dt===y?l(Be.valueOf(),Ie.valueOf()):!1}return Ue}function C(Q,J,ie,ve){var Y=Q.length;if(J.length!==Y)return!1;for(;Y-- >0;)if(!ie(Q[Y],J[Y],Y,Y,Q,J,ve))return!1;return!0}var E=o(C);function O(Q,J){return l(Q.valueOf(),J.valueOf())}function T(Q,J,ie,ve){var Y=Q.size===J.size;if(!Y)return!1;if(!Q.size)return!0;var be={},Se=0;return Q.forEach(function($e,Te){if(Y){var Ue=!1,Be=0;J.forEach(function(Ie,Ke){!Ue&&!be[Be]&&(Ue=ie(Te,Ke,Se,Be,Q,J,ve)&&ie($e,Ie,Te,Ke,Q,J,ve))&&(be[Be]=!0),Be++}),Se++,Y=Ue}}),Y}var M=o(T),I="_owner",D=Object.prototype.hasOwnProperty;function F(Q,J,ie,ve){var Y=Object.keys(Q),be=Y.length;if(Object.keys(J).length!==be)return!1;for(var Se;be-- >0;){if(Se=Y[be],Se===I){var $e=!!Q.$$typeof,Te=!!J.$$typeof;if(($e||Te)&&$e!==Te)return!1}if(!D.call(J,Se)||!ie(Q[Se],J[Se],Se,Se,Q,J,ve))return!1}return!0}var j=o(F);function K(Q,J){return Q.source===J.source&&Q.flags===J.flags}function ee(Q,J,ie,ve){var Y=Q.size===J.size;if(!Y)return!1;if(!Q.size)return!0;var be={};return Q.forEach(function(Se,$e){if(Y){var Te=!1,Ue=0;J.forEach(function(Be,Ie){!Te&&!be[Ue]&&(Te=ie(Se,Be,$e,Ie,Q,J,ve))&&(be[Ue]=!0),Ue++}),Y=Te}}),Y}var H=o(ee),Z=Object.freeze({areArraysEqual:C,areDatesEqual:O,areMapsEqual:T,areObjectsEqual:F,areRegExpsEqual:K,areSetsEqual:ee,createIsNestedEqual:r}),X=Object.freeze({areArraysEqual:E,areDatesEqual:O,areMapsEqual:M,areObjectsEqual:j,areRegExpsEqual:K,areSetsEqual:H,createIsNestedEqual:r}),te=S(Z);function W(Q,J){return te(Q,J,void 0)}var $=S(i(Z,{createIsNestedEqual:function(){return l}}));function V(Q,J){return $(Q,J,void 0)}var U=S(X);function N(Q,J){return U(Q,J,new WeakMap)}var re=S(i(X,{createIsNestedEqual:function(){return l}}));function ue(Q,J){return re(Q,J,new WeakMap)}function de(Q){return S(i(Z,Q(Z)))}function pe(Q){var J=S(i(X,Q(X)));return function(ie,ve,Y){return Y===void 0&&(Y=new WeakMap),J(ie,ve,Y)}}n.circularDeepEqual=N,n.circularShallowEqual=ue,n.createCustomCircularEqual=pe,n.createCustomEqual=de,n.deepEqual=W,n.sameValueZeroEqual=l,n.shallowEqual=V,Object.defineProperty(n,"__esModule",{value:!0})})})(Sx,Sx.exports);var Sw=Sx.exports;const Cw=rw(Kz);var Pt={},jH=function(t,n,r){return t===n?!0:t.className===n.className&&r(t.style,n.style)&&t.width===n.width&&t.autoSize===n.autoSize&&t.cols===n.cols&&t.draggableCancel===n.draggableCancel&&t.draggableHandle===n.draggableHandle&&r(t.verticalCompact,n.verticalCompact)&&r(t.compactType,n.compactType)&&r(t.layout,n.layout)&&r(t.margin,n.margin)&&r(t.containerPadding,n.containerPadding)&&t.rowHeight===n.rowHeight&&t.maxRows===n.maxRows&&t.isBounded===n.isBounded&&t.isDraggable===n.isDraggable&&t.isResizable===n.isResizable&&t.allowOverlap===n.allowOverlap&&t.preventCollision===n.preventCollision&&t.useCSSTransforms===n.useCSSTransforms&&t.transformScale===n.transformScale&&t.isDroppable===n.isDroppable&&r(t.resizeHandles,n.resizeHandles)&&r(t.resizeHandle,n.resizeHandle)&&t.onLayoutChange===n.onLayoutChange&&t.onDragStart===n.onDragStart&&t.onDrag===n.onDrag&&t.onDragStop===n.onDragStop&&t.onResizeStart===n.onResizeStart&&t.onResize===n.onResize&&t.onResizeStop===n.onResizeStop&&t.onDrop===n.onDrop&&r(t.droppingItem,n.droppingItem)&&r(t.innerRef,n.innerRef)};Object.defineProperty(Pt,"__esModule",{value:!0});Pt.bottom=Ew;Pt.childrenEqual=HH;Pt.cloneLayout=qD;Pt.cloneLayoutItem=cl;Pt.collides=Fm;Pt.compact=YD;Pt.compactItem=KD;Pt.compactType=rW;Pt.correctBounds=XD;Pt.fastPositionEqual=UH;Pt.fastRGLPropsEqual=void 0;Pt.getAllCollisions=QD;Pt.getFirstCollision=Xa;Pt.getLayoutItem=Rw;Pt.getStatics=Pw;Pt.modifyLayout=GD;Pt.moveElement=yd;Pt.moveElementAwayFromCollision=Ex;Pt.noop=void 0;Pt.perc=GH;Pt.resizeItemInDirection=ZH;Pt.setTopLeft=tW;Pt.setTransform=eW;Pt.sortLayoutItems=kw;Pt.sortLayoutItemsByColRow=nA;Pt.sortLayoutItemsByRowCol=tA;Pt.synchronizeLayoutWithChildren=nW;Pt.validateLayout=rA;Pt.withLayoutItem=VH;var oP=Sw,bd=zH(m);function zH(e){return e&&e.__esModule?e:{default:e}}const BH=process.env.NODE_ENV==="production";function Ew(e){let t=0,n;for(let r=0,o=e.length;r<o;r++)n=e[r].y+e[r].h,n>t&&(t=n);return t}function qD(e){const t=Array(e.length);for(let n=0,r=e.length;n<r;n++)t[n]=cl(e[n]);return t}function GD(e,t){const n=Array(e.length);for(let r=0,o=e.length;r<o;r++)t.i===e[r].i?n[r]=t:n[r]=e[r];return n}function VH(e,t,n){let r=Rw(e,t);return r?(r=n(cl(r)),e=GD(e,r),[e,r]):[e,null]}function cl(e){return{w:e.w,h:e.h,x:e.x,y:e.y,i:e.i,minW:e.minW,maxW:e.maxW,minH:e.minH,maxH:e.maxH,moved:!!e.moved,static:!!e.static,isDraggable:e.isDraggable,isResizable:e.isResizable,resizeHandles:e.resizeHandles,isBounded:e.isBounded}}function HH(e,t){return(0,oP.deepEqual)(bd.default.Children.map(e,n=>n==null?void 0:n.key),bd.default.Children.map(t,n=>n==null?void 0:n.key))&&(0,oP.deepEqual)(bd.default.Children.map(e,n=>n==null?void 0:n.props["data-grid"]),bd.default.Children.map(t,n=>n==null?void 0:n.props["data-grid"]))}const WH=jH;Pt.fastRGLPropsEqual=WH;function UH(e,t){return e.left===t.left&&e.top===t.top&&e.width===t.width&&e.height===t.height}function Fm(e,t){return!(e.i===t.i||e.x+e.w<=t.x||e.x>=t.x+t.w||e.y+e.h<=t.y||e.y>=t.y+t.h)}function YD(e,t,n,r){const o=Pw(e),i=kw(e,t),s=Array(e.length);for(let a=0,l=i.length;a<l;a++){let c=cl(i[a]);c.static||(c=KD(o,c,t,n,i,r),o.push(c)),s[e.indexOf(i[a])]=c,c.moved=!1}return s}const qH={x:"w",y:"h"};function Cx(e,t,n,r){const o=qH[r];t[r]+=1;const i=e.map(s=>s.i).indexOf(t.i);for(let s=i+1;s<e.length;s++){const a=e[s];if(!a.static){if(a.y>t.y+t.h)break;Fm(t,a)&&Cx(e,a,n+t[o],r)}}t[r]=n}function KD(e,t,n,r,o,i){const s=n==="vertical",a=n==="horizontal";if(s)for(t.y=Math.min(Ew(e),t.y);t.y>0&&!Xa(e,t);)t.y--;else if(a)for(;t.x>0&&!Xa(e,t);)t.x--;let l;for(;(l=Xa(e,t))&&!(n===null&&i);)if(a?Cx(o,t,l.x+l.w,"x"):Cx(o,t,l.y+l.h,"y"),a&&t.x+t.w>r)for(t.x=r-t.w,t.y++;t.x>0&&!Xa(e,t);)t.x--;return t.y=Math.max(t.y,0),t.x=Math.max(t.x,0),t}function XD(e,t){const n=Pw(e);for(let r=0,o=e.length;r<o;r++){const i=e[r];if(i.x+i.w>t.cols&&(i.x=t.cols-i.w),i.x<0&&(i.x=0,i.w=t.cols),!i.static)n.push(i);else for(;Xa(n,i);)i.y++}return e}function Rw(e,t){for(let n=0,r=e.length;n<r;n++)if(e[n].i===t)return e[n]}function Xa(e,t){for(let n=0,r=e.length;n<r;n++)if(Fm(e[n],t))return e[n]}function QD(e,t){return e.filter(n=>Fm(n,t))}function Pw(e){return e.filter(t=>t.static)}function yd(e,t,n,r,o,i,s,a,l){if(t.static&&t.isDraggable!==!0||t.y===r&&t.x===n)return e;"Moving element ".concat(t.i," to [").concat(String(n),",").concat(String(r),"] from [").concat(t.x,",").concat(t.y,"]");const c=t.x,u=t.y;typeof n=="number"&&(t.x=n),typeof r=="number"&&(t.y=r),t.moved=!0;let f=kw(e,s);(s==="vertical"&&typeof r=="number"?u>=r:s==="horizontal"&&typeof n=="number"?c>=n:!1)&&(f=f.reverse());const p=QD(f,t),v=p.length>0;if(v&&l)return qD(e);if(v&&i)return"Collision prevented on ".concat(t.i,", reverting."),t.x=c,t.y=u,t.moved=!1,e;for(let b=0,w=p.length;b<w;b++){const y=p[b];"Resolving collision between ".concat(t.i," at [").concat(t.x,",").concat(t.y,"] and ").concat(y.i," at [").concat(y.x,",").concat(y.y,"]"),!y.moved&&(y.static?e=Ex(e,y,t,o,s):e=Ex(e,t,y,o,s))}return e}function Ex(e,t,n,r,o,i){const s=o==="horizontal",a=o==="vertical",l=t.static;if(r){r=!1;const f={x:s?Math.max(t.x-n.w,0):n.x,y:a?Math.max(t.y-n.h,0):n.y,w:n.w,h:n.h,i:"-1"},h=Xa(e,f),p=h&&h.y+h.h>t.y,v=h&&t.x+t.w>h.x;if(h){if(p&&a)return yd(e,n,void 0,t.y+1,r,l,o);if(p&&o==null)return t.y=n.y,n.y=n.y+n.h,e;if(v&&s)return yd(e,t,n.x,void 0,r,l,o)}else return"Doing reverse collision on ".concat(n.i," up to [").concat(f.x,",").concat(f.y,"]."),yd(e,n,s?f.x:void 0,a?f.y:void 0,r,l,o)}const c=s?n.x+1:void 0,u=a?n.y+1:void 0;return c==null&&u==null?e:yd(e,n,s?n.x+1:void 0,a?n.y+1:void 0,r,l,o)}function GH(e){return e*100+"%"}const JD=(e,t,n,r)=>e+n>r?t:n,ZD=(e,t,n)=>e<0?t:n,eA=e=>Math.max(0,e),Ow=e=>Math.max(0,e),$w=(e,t,n)=>{let{left:r,height:o,width:i}=t;const s=e.top-(o-e.height);return{left:r,width:i,height:ZD(s,e.height,o),top:Ow(s)}},Tw=(e,t,n)=>{let{top:r,left:o,height:i,width:s}=t;return{top:r,height:i,width:JD(e.left,e.width,s,n),left:eA(o)}},Dw=(e,t,n)=>{let{top:r,height:o,width:i}=t;const s=e.left-(i-e.width);return{height:o,width:s<0?e.width:JD(e.left,e.width,i,n),top:Ow(r),left:eA(s)}},Aw=(e,t,n)=>{let{top:r,left:o,height:i,width:s}=t;return{width:s,left:o,height:ZD(r,e.height,i),top:Ow(r)}},YH=function(){return $w(arguments.length<=0?void 0:arguments[0],Tw(...arguments))},KH=function(){return $w(arguments.length<=0?void 0:arguments[0],Dw(...arguments))},XH=function(){return Aw(arguments.length<=0?void 0:arguments[0],Tw(...arguments))},QH=function(){return Aw(arguments.length<=0?void 0:arguments[0],Dw(...arguments))},JH={n:$w,ne:YH,e:Tw,se:XH,s:Aw,sw:QH,w:Dw,nw:KH};function ZH(e,t,n,r){const o=JH[e];return o?o(t,{...t,...n},r):n}function eW(e){let{top:t,left:n,width:r,height:o}=e;const i="translate(".concat(n,"px,").concat(t,"px)");return{transform:i,WebkitTransform:i,MozTransform:i,msTransform:i,OTransform:i,width:"".concat(r,"px"),height:"".concat(o,"px"),position:"absolute"}}function tW(e){let{top:t,left:n,width:r,height:o}=e;return{top:"".concat(t,"px"),left:"".concat(n,"px"),width:"".concat(r,"px"),height:"".concat(o,"px"),position:"absolute"}}function kw(e,t){return t==="horizontal"?nA(e):t==="vertical"?tA(e):e}function tA(e){return e.slice(0).sort(function(t,n){return t.y>n.y||t.y===n.y&&t.x>n.x?1:t.y===n.y&&t.x===n.x?0:-1})}function nA(e){return e.slice(0).sort(function(t,n){return t.x>n.x||t.x===n.x&&t.y>n.y?1:-1})}function nW(e,t,n,r,o){e=e||[];const i=[];bd.default.Children.forEach(t,a=>{if((a==null?void 0:a.key)==null)return;const l=Rw(e,String(a.key)),c=a.props["data-grid"];l&&c==null?i.push(cl(l)):c?(BH||rA([c],"ReactGridLayout.children"),i.push(cl({...c,i:a.key}))):i.push(cl({w:1,h:1,x:0,y:Ew(i),i:String(a.key)}))});const s=XD(i,{cols:n});return o?s:YD(s,r,n)}function rA(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Layout";const n=["x","y","w","h"];if(!Array.isArray(e))throw new Error(t+" must be an array!");for(let r=0,o=e.length;r<o;r++){const i=e[r];for(let s=0;s<n.length;s++)if(typeof i[n[s]]!="number")throw new Error("ReactGridLayout: "+t+"["+r+"]."+n[s]+" must be a number!")}}function rW(e){const{verticalCompact:t,compactType:n}=e||{};return t===!1?null:n}const oW=()=>{};Pt.noop=oW;var $i={};Object.defineProperty($i,"__esModule",{value:!0});$i.calcGridColWidth=jm;$i.calcGridItemPosition=iW;$i.calcGridItemWHPx=Rx;$i.calcWH=aW;$i.calcXY=sW;$i.clamp=Qa;function jm(e){const{margin:t,containerPadding:n,containerWidth:r,cols:o}=e;return(r-t[0]*(o-1)-n[0]*2)/o}function Rx(e,t,n){return Number.isFinite(e)?Math.round(t*e+Math.max(0,e-1)*n):e}function iW(e,t,n,r,o,i){const{margin:s,containerPadding:a,rowHeight:l}=e,c=jm(e),u={};return i&&i.resizing?(u.width=Math.round(i.resizing.width),u.height=Math.round(i.resizing.height)):(u.width=Rx(r,c,s[0]),u.height=Rx(o,l,s[1])),i&&i.dragging?(u.top=Math.round(i.dragging.top),u.left=Math.round(i.dragging.left)):i&&i.resizing&&typeof i.resizing.top=="number"&&typeof i.resizing.left=="number"?(u.top=Math.round(i.resizing.top),u.left=Math.round(i.resizing.left)):(u.top=Math.round((l+s[1])*n+a[1]),u.left=Math.round((c+s[0])*t+a[0])),u}function sW(e,t,n,r,o){const{margin:i,cols:s,rowHeight:a,maxRows:l}=e,c=jm(e);let u=Math.round((n-i[0])/(c+i[0])),f=Math.round((t-i[1])/(a+i[1]));return u=Qa(u,0,s-r),f=Qa(f,0,l-o),{x:u,y:f}}function aW(e,t,n,r,o,i){const{margin:s,maxRows:a,cols:l,rowHeight:c}=e,u=jm(e);let f=Math.round((t+s[0])/(u+s[0])),h=Math.round((n+s[1])/(c+s[1])),p=Qa(f,0,l-r),v=Qa(h,0,a-o);return["sw","w","nw"].indexOf(i)!==-1&&(p=Qa(f,0,l)),["nw","n","ne"].indexOf(i)!==-1&&(v=Qa(h,0,a)),{w:p,h:v}}function Qa(e,t,n){return Math.max(Math.min(e,n),t)}var zm={},Px={exports:{}},c0,iP;function Mw(){if(iP)return c0;iP=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return c0=e,c0}var u0,sP;function lW(){if(sP)return u0;sP=1;var e=Mw();function t(){}function n(){}return n.resetWarningCache=t,u0=function(){function r(s,a,l,c,u,f){if(f!==e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}r.isRequired=r;function o(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},u0}var pp={exports:{}},qt={};/** @license React v16.13.1
88
+ }`;var yt=PR(function(){return jt(B,Ye+"return "+Re).apply(n,q)});if(yt.source=Re,Vb(yt))throw yt;return yt}function Jj(d){return Ut(d).toLowerCase()}function Zj(d){return Ut(d).toUpperCase()}function ez(d,g,x){if(d=Ut(d),d&&(x||g===n))return NC(d);if(!d||!(g=Ur(g)))return d;var P=zo(d),k=zo(g),B=LC(P,k),q=FC(P,k)+1;return Ts(P,B,q).join("")}function tz(d,g,x){if(d=Ut(d),d&&(x||g===n))return d.slice(0,zC(d)+1);if(!d||!(g=Ur(g)))return d;var P=zo(d),k=FC(P,zo(g))+1;return Ts(P,0,k).join("")}function nz(d,g,x){if(d=Ut(d),d&&(x||g===n))return d.replace(Bn,"");if(!d||!(g=Ur(g)))return d;var P=zo(d),k=LC(P,zo(g));return Ts(P,k).join("")}function rz(d,g){var x=D,P=F;if(wn(g)){var k="separator"in g?g.separator:k;x="length"in g?pt(g.length):x,P="omission"in g?Ur(g.omission):P}d=Ut(d);var B=d.length;if(Vl(d)){var q=zo(d);B=q.length}if(x>=B)return d;var ne=x-Hl(P);if(ne<1)return P;var le=q?Ts(q,0,ne).join(""):d.slice(0,ne);if(k===n)return le+P;if(q&&(ne+=le.length-ne),Hb(k)){if(d.slice(ne).search(k)){var xe,we=le;for(k.global||(k=ib(k.source,Ut(qe.exec(k))+"g")),k.lastIndex=0;xe=k.exec(we);)var Re=xe.index;le=le.slice(0,Re===n?ne:Re)}}else if(d.indexOf(Ur(k),ne)!=ne){var je=le.lastIndexOf(k);je>-1&&(le=le.slice(0,je))}return le+P}function oz(d){return d=Ut(d),d&&On.test(d)?d.replace(Xt,k7):d}var iz=Xl(function(d,g,x){return d+(x?" ":"")+g.toUpperCase()}),qb=OE("toUpperCase");function RR(d,g,x){return d=Ut(d),g=x?n:g,g===n?O7(d)?N7(d):y7(d):d.match(g)||[]}var PR=St(function(d,g){try{return Hr(d,n,g)}catch(x){return Vb(x)?x:new ct(x)}}),sz=Bi(function(d,g){return yo(g,function(x){x=li(x),ji(d,x,zb(d[x],d))}),d});function az(d){var g=d==null?0:d.length,x=Je();return d=g?yn(d,function(P){if(typeof P[1]!="function")throw new xo(s);return[x(P[0]),P[1]]}):[],St(function(P){for(var k=-1;++k<g;){var B=d[k];if(Hr(B[0],this,P))return Hr(B[1],this,P)}})}function lz(d){return k6(_o(d,f))}function Gb(d){return function(){return d}}function cz(d,g){return d==null||d!==d?g:d}var uz=TE(),dz=TE(!0);function $r(d){return d}function Yb(d){return sE(typeof d=="function"?d:_o(d,f))}function fz(d){return lE(_o(d,f))}function hz(d,g){return cE(d,_o(g,f))}var pz=St(function(d,g){return function(x){return Fu(x,d,g)}}),gz=St(function(d,g){return function(x){return Fu(d,x,g)}});function Kb(d,g,x){var P=Hn(g),k=Hh(g,P);x==null&&!(wn(g)&&(k.length||!P.length))&&(x=g,g=d,d=this,k=Hh(g,Hn(g)));var B=!(wn(x)&&"chain"in x)||!!x.chain,q=Hi(d);return yo(k,function(ne){var le=g[ne];d[ne]=le,q&&(d.prototype[ne]=function(){var xe=this.__chain__;if(B||xe){var we=d(this.__wrapped__),Re=we.__actions__=Rr(this.__actions__);return Re.push({func:le,args:arguments,thisArg:d}),we.__chain__=xe,we}return le.apply(d,Cs([this.value()],arguments))})}),d}function mz(){return Gn._===this&&(Gn._=V7),this}function Xb(){}function vz(d){return d=pt(d),St(function(g){return uE(g,d)})}var bz=Pb(yn),yz=Pb(DC),xz=Pb(Jv);function OR(d){return Mb(d)?Zv(li(d)):X6(d)}function wz(d){return function(g){return d==null?n:Oa(d,g)}}var _z=AE(),Sz=AE(!0);function Qb(){return[]}function Jb(){return!1}function Cz(){return{}}function Ez(){return""}function Rz(){return!0}function Pz(d,g){if(d=pt(d),d<1||d>te)return[];var x=V,P=or(d,V);g=Je(g),d-=V;for(var k=nb(P,g);++x<d;)g(x);return k}function Oz(d){return ut(d)?yn(d,li):qr(d)?[d]:Rr(YE(Ut(d)))}function $z(d){var g=++z7;return Ut(d)+g}var Tz=Kh(function(d,g){return d+g},0),Dz=Ob("ceil"),Az=Kh(function(d,g){return d/g},1),kz=Ob("floor");function Mz(d){return d&&d.length?Vh(d,$r,hb):n}function Iz(d,g){return d&&d.length?Vh(d,Je(g,2),hb):n}function Nz(d){return MC(d,$r)}function Lz(d,g){return MC(d,Je(g,2))}function Fz(d){return d&&d.length?Vh(d,$r,vb):n}function jz(d,g){return d&&d.length?Vh(d,Je(g,2),vb):n}var zz=Kh(function(d,g){return d*g},1),Bz=Ob("round"),Vz=Kh(function(d,g){return d-g},0);function Hz(d){return d&&d.length?tb(d,$r):0}function Wz(d,g){return d&&d.length?tb(d,Je(g,2)):0}return z.after=f8,z.ary=iR,z.assign=Z8,z.assignIn=yR,z.assignInWith=lp,z.assignWith=ej,z.at=tj,z.before=sR,z.bind=zb,z.bindAll=sz,z.bindKey=aR,z.castArray=C8,z.chain=nR,z.chunk=k9,z.compact=M9,z.concat=I9,z.cond=az,z.conforms=lz,z.constant=Gb,z.countBy=H4,z.create=nj,z.curry=lR,z.curryRight=cR,z.debounce=uR,z.defaults=rj,z.defaultsDeep=oj,z.defer=h8,z.delay=p8,z.difference=N9,z.differenceBy=L9,z.differenceWith=F9,z.drop=j9,z.dropRight=z9,z.dropRightWhile=B9,z.dropWhile=V9,z.fill=H9,z.filter=U4,z.flatMap=Y4,z.flatMapDeep=K4,z.flatMapDepth=X4,z.flatten=JE,z.flattenDeep=W9,z.flattenDepth=U9,z.flip=g8,z.flow=uz,z.flowRight=dz,z.fromPairs=q9,z.functions=dj,z.functionsIn=fj,z.groupBy=Q4,z.initial=Y9,z.intersection=K9,z.intersectionBy=X9,z.intersectionWith=Q9,z.invert=pj,z.invertBy=gj,z.invokeMap=Z4,z.iteratee=Yb,z.keyBy=e8,z.keys=Hn,z.keysIn=Or,z.map=np,z.mapKeys=vj,z.mapValues=bj,z.matches=fz,z.matchesProperty=hz,z.memoize=op,z.merge=yj,z.mergeWith=xR,z.method=pz,z.methodOf=gz,z.mixin=Kb,z.negate=ip,z.nthArg=vz,z.omit=xj,z.omitBy=wj,z.once=m8,z.orderBy=t8,z.over=bz,z.overArgs=v8,z.overEvery=yz,z.overSome=xz,z.partial=Bb,z.partialRight=dR,z.partition=n8,z.pick=_j,z.pickBy=wR,z.property=OR,z.propertyOf=wz,z.pull=t4,z.pullAll=eR,z.pullAllBy=n4,z.pullAllWith=r4,z.pullAt=o4,z.range=_z,z.rangeRight=Sz,z.rearg=b8,z.reject=i8,z.remove=i4,z.rest=y8,z.reverse=Fb,z.sampleSize=a8,z.set=Cj,z.setWith=Ej,z.shuffle=l8,z.slice=s4,z.sortBy=d8,z.sortedUniq=h4,z.sortedUniqBy=p4,z.split=Yj,z.spread=x8,z.tail=g4,z.take=m4,z.takeRight=v4,z.takeRightWhile=b4,z.takeWhile=y4,z.tap=M4,z.throttle=w8,z.thru=tp,z.toArray=mR,z.toPairs=_R,z.toPairsIn=SR,z.toPath=Oz,z.toPlainObject=bR,z.transform=Rj,z.unary=_8,z.union=x4,z.unionBy=w4,z.unionWith=_4,z.uniq=S4,z.uniqBy=C4,z.uniqWith=E4,z.unset=Pj,z.unzip=jb,z.unzipWith=tR,z.update=Oj,z.updateWith=$j,z.values=Zl,z.valuesIn=Tj,z.without=R4,z.words=RR,z.wrap=S8,z.xor=P4,z.xorBy=O4,z.xorWith=$4,z.zip=T4,z.zipObject=D4,z.zipObjectDeep=A4,z.zipWith=k4,z.entries=_R,z.entriesIn=SR,z.extend=yR,z.extendWith=lp,Kb(z,z),z.add=Tz,z.attempt=PR,z.camelCase=Mj,z.capitalize=CR,z.ceil=Dz,z.clamp=Dj,z.clone=E8,z.cloneDeep=P8,z.cloneDeepWith=O8,z.cloneWith=R8,z.conformsTo=$8,z.deburr=ER,z.defaultTo=cz,z.divide=Az,z.endsWith=Ij,z.eq=Vo,z.escape=Nj,z.escapeRegExp=Lj,z.every=W4,z.find=q4,z.findIndex=XE,z.findKey=ij,z.findLast=G4,z.findLastIndex=QE,z.findLastKey=sj,z.floor=kz,z.forEach=rR,z.forEachRight=oR,z.forIn=aj,z.forInRight=lj,z.forOwn=cj,z.forOwnRight=uj,z.get=Wb,z.gt=T8,z.gte=D8,z.has=hj,z.hasIn=Ub,z.head=ZE,z.identity=$r,z.includes=J4,z.indexOf=G9,z.inRange=Aj,z.invoke=mj,z.isArguments=Da,z.isArray=ut,z.isArrayBuffer=A8,z.isArrayLike=Pr,z.isArrayLikeObject=$n,z.isBoolean=k8,z.isBuffer=Ds,z.isDate=M8,z.isElement=I8,z.isEmpty=N8,z.isEqual=L8,z.isEqualWith=F8,z.isError=Vb,z.isFinite=j8,z.isFunction=Hi,z.isInteger=fR,z.isLength=sp,z.isMap=hR,z.isMatch=z8,z.isMatchWith=B8,z.isNaN=V8,z.isNative=H8,z.isNil=U8,z.isNull=W8,z.isNumber=pR,z.isObject=wn,z.isObjectLike=Cn,z.isPlainObject=Wu,z.isRegExp=Hb,z.isSafeInteger=q8,z.isSet=gR,z.isString=ap,z.isSymbol=qr,z.isTypedArray=Jl,z.isUndefined=G8,z.isWeakMap=Y8,z.isWeakSet=K8,z.join=J9,z.kebabCase=Fj,z.last=Co,z.lastIndexOf=Z9,z.lowerCase=jj,z.lowerFirst=zj,z.lt=X8,z.lte=Q8,z.max=Mz,z.maxBy=Iz,z.mean=Nz,z.meanBy=Lz,z.min=Fz,z.minBy=jz,z.stubArray=Qb,z.stubFalse=Jb,z.stubObject=Cz,z.stubString=Ez,z.stubTrue=Rz,z.multiply=zz,z.nth=e4,z.noConflict=mz,z.noop=Xb,z.now=rp,z.pad=Bj,z.padEnd=Vj,z.padStart=Hj,z.parseInt=Wj,z.random=kj,z.reduce=r8,z.reduceRight=o8,z.repeat=Uj,z.replace=qj,z.result=Sj,z.round=Bz,z.runInContext=se,z.sample=s8,z.size=c8,z.snakeCase=Gj,z.some=u8,z.sortedIndex=a4,z.sortedIndexBy=l4,z.sortedIndexOf=c4,z.sortedLastIndex=u4,z.sortedLastIndexBy=d4,z.sortedLastIndexOf=f4,z.startCase=Kj,z.startsWith=Xj,z.subtract=Vz,z.sum=Hz,z.sumBy=Wz,z.template=Qj,z.times=Pz,z.toFinite=Wi,z.toInteger=pt,z.toLength=vR,z.toLower=Jj,z.toNumber=Eo,z.toSafeInteger=J8,z.toString=Ut,z.toUpper=Zj,z.trim=ez,z.trimEnd=tz,z.trimStart=nz,z.truncate=rz,z.unescape=oz,z.uniqueId=$z,z.upperCase=iz,z.upperFirst=qb,z.each=rR,z.eachRight=oR,z.first=ZE,Kb(z,function(){var d={};return si(z,function(g,x){Qt.call(z.prototype,x)||(d[x]=g)}),d}(),{chain:!1}),z.VERSION=r,yo(["bind","bindKey","curry","curryRight","partial","partialRight"],function(d){z[d].placeholder=z}),yo(["drop","take"],function(d,g){kt.prototype[d]=function(x){x=x===n?1:Nn(pt(x),0);var P=this.__filtered__&&!g?new kt(this):this.clone();return P.__filtered__?P.__takeCount__=or(x,P.__takeCount__):P.__views__.push({size:or(x,V),type:d+(P.__dir__<0?"Right":"")}),P},kt.prototype[d+"Right"]=function(x){return this.reverse()[d](x).reverse()}}),yo(["filter","map","takeWhile"],function(d,g){var x=g+1,P=x==ee||x==Z;kt.prototype[d]=function(k){var B=this.clone();return B.__iteratees__.push({iteratee:Je(k,3),type:x}),B.__filtered__=B.__filtered__||P,B}}),yo(["head","last"],function(d,g){var x="take"+(g?"Right":"");kt.prototype[d]=function(){return this[x](1).value()[0]}}),yo(["initial","tail"],function(d,g){var x="drop"+(g?"":"Right");kt.prototype[d]=function(){return this.__filtered__?new kt(this):this[x](1)}}),kt.prototype.compact=function(){return this.filter($r)},kt.prototype.find=function(d){return this.filter(d).head()},kt.prototype.findLast=function(d){return this.reverse().find(d)},kt.prototype.invokeMap=St(function(d,g){return typeof d=="function"?new kt(this):this.map(function(x){return Fu(x,d,g)})}),kt.prototype.reject=function(d){return this.filter(ip(Je(d)))},kt.prototype.slice=function(d,g){d=pt(d);var x=this;return x.__filtered__&&(d>0||g<0)?new kt(x):(d<0?x=x.takeRight(-d):d&&(x=x.drop(d)),g!==n&&(g=pt(g),x=g<0?x.dropRight(-g):x.take(g-d)),x)},kt.prototype.takeRightWhile=function(d){return this.reverse().takeWhile(d).reverse()},kt.prototype.toArray=function(){return this.take(V)},si(kt.prototype,function(d,g){var x=/^(?:filter|find|map|reject)|While$/.test(g),P=/^(?:head|last)$/.test(g),k=z[P?"take"+(g=="last"?"Right":""):g],B=P||/^find/.test(g);k&&(z.prototype[g]=function(){var q=this.__wrapped__,ne=P?[1]:arguments,le=q instanceof kt,xe=ne[0],we=le||ut(q),Re=function(Ot){var Mt=k.apply(z,Cs([Ot],ne));return P&&je?Mt[0]:Mt};we&&x&&typeof xe=="function"&&xe.length!=1&&(le=we=!1);var je=this.__chain__,Ye=!!this.__actions__.length,et=B&&!je,yt=le&&!Ye;if(!B&&we){q=yt?q:new kt(this);var tt=d.apply(q,ne);return tt.__actions__.push({func:tp,args:[Re],thisArg:n}),new wo(tt,je)}return et&&yt?d.apply(this,ne):(tt=this.thru(Re),et?P?tt.value()[0]:tt.value():tt)})}),yo(["pop","push","shift","sort","splice","unshift"],function(d){var g=Ph[d],x=/^(?:push|sort|unshift)$/.test(d)?"tap":"thru",P=/^(?:pop|shift)$/.test(d);z.prototype[d]=function(){var k=arguments;if(P&&!this.__chain__){var B=this.value();return g.apply(ut(B)?B:[],k)}return this[x](function(q){return g.apply(ut(q)?q:[],k)})}}),si(kt.prototype,function(d,g){var x=z[g];if(x){var P=x.name+"";Qt.call(Gl,P)||(Gl[P]=[]),Gl[P].push({name:g,func:x})}}),Gl[Yh(n,y).name]=[{name:"wrapper",func:n}],kt.prototype.clone=o6,kt.prototype.reverse=i6,kt.prototype.value=s6,z.prototype.at=I4,z.prototype.chain=N4,z.prototype.commit=L4,z.prototype.next=F4,z.prototype.plant=z4,z.prototype.reverse=B4,z.prototype.toJSON=z.prototype.valueOf=z.prototype.value=V4,z.prototype.first=z.prototype.head,Du&&(z.prototype[Du]=j4),z},Wl=L7();Sa?((Sa.exports=Wl)._=Wl,Yv._=Wl):Gn._=Wl}).call(qs)})(jg,jg.exports);var bc=jg.exports;const ll=Rl(bc);function YR({id:e,layouts:t,initialHeight:n,y:r,x:o,w:i,minH:s}){const a={i:e,x:o??0,y:r??1/0,w:i||20,h:n||35,minW:6,minH:s||10};return t||(t={}),cw.forEach(l=>{t!=null&&t[l]||(t={...t,[l]:[]});const c=t[l].reduce((u,f)=>Math.max(u,f.y+f.h),0);a.y=a.y===0?0:c,t[l].push(a)}),t}function KR(e,t){t&&cw.forEach(n=>{t!=null&&t[n]&&(t[n]=t[n].filter(r=>r.i!==e))})}const Pe=rD()(uD((e,t)=>({isSessionExpired:!1,currentBreakpoint:"lg",dashboard:{id:"",style:Lg},showContext:!1,selectedSheetId:null,selectedCardId:null,selectedFrameId:null,selectedCard:null,showFilters:!1,isDashboardEditing:!1,isVisualEditing:!1,showDashboardJSON:!1,filteringCards:[],actions:{setInitStore:()=>{e(n=>{n.isSessionExpired=!1,n.currentBreakpoint="lg",n.dashboard={id:"",style:Lg},n.showContext=!1,n.selectedSheetId=null,n.selectedCardId=null,n.selectedFrameId=null,n.selectedCard=null,n.showFilters=!1,n.isDashboardEditing=!1,n.isVisualEditing=!1,n.showDashboardJSON=!1,n.filteringCards=[],n.selectedLensId=void 0})},setLenses:n=>{e(r=>{r.lenses=n})},setSelectedLensId:n=>{e(r=>{r.selectedLensId=n})},deleteSheet:n=>{e(r=>{var i,s,a,l;const o=(i=r.dashboard.sheets)==null?void 0:i.findIndex(c=>c.id===n);o!==void 0&&o>-1&&((s=r.dashboard.sheets)==null||s.splice(o,1),r.selectedSheetId=(l=(a=r.dashboard.sheets)==null?void 0:a[0])==null?void 0:l.id)})},addSheet:n=>{e(r=>{r.dashboard.sheets||(r.dashboard.sheets=[]);const o=r.dashboard.filters;let i={};o==null||o.forEach(a=>{cw.forEach(l=>{i!=null&&i[l]||(i={...i,[l]:[]});const c={i:a.id,x:0,y:0,w:10,h:8};i[l].push(c)})});const s={...n,layouts:i};r.dashboard.sheets.push(s)})},setGlobalStyle:n=>{e(r=>{r.dashboard.globalStyle=n})},setAIScopeTables:n=>{e(r=>{r.dashboard.aiScopeTables=n})},setIsSessionExpired:n=>{e(()=>({isSessionExpired:n}))},setCardPython:(n,r)=>{e(o=>{var s,a;const i=(a=(s=o.dashboard)==null?void 0:s.sheets)==null?void 0:a.find(l=>l.id===o.selectedSheetId);i&&bc.forEach(i.frames,l=>{var u;const c=(u=l.cards)==null?void 0:u.find(f=>f.id===n);c&&(c.python=r)})})},addBaseQuery:n=>{e(r=>{var o;r.dashboard.baseQueries||(r.dashboard.baseQueries=[]),(o=r.dashboard.baseQueries)==null||o.push(n)})},removeBaseQuery:n=>{e(r=>{var i,s;const o=(i=r.dashboard.baseQueries)==null?void 0:i.findIndex(a=>a.id===n);o!=null&&o>-1&&((s=r.dashboard.baseQueries)==null||s.splice(o,1))})},setBaseQueries:n=>{e(r=>{r.dashboard.baseQueries=n})},setCurrentBreakpoint:n=>{e(()=>({currentBreakpoint:n}))},setFilteringCards:n=>{e(()=>({filteringCards:n}))},addFilteringCard:n=>{e(r=>{var o;(o=r.filteringCards)==null||o.push(n)})},removeFilteringCard:n=>{e(r=>{var i,s;const o=(i=r.filteringCards)==null?void 0:i.findIndex(a=>a.id===n.id);o!==void 0&&o>-1&&((s=r.filteringCards)==null||s.splice(o,1))})},setCustomCards:n=>{e(r=>{r.dashboard.customCards=n})},setAuthToken:n=>{e(()=>({authToken:n}))},setThemeStyle:n=>{e(()=>({themeStyle:n}))},setDashboard:n=>e({dashboard:n}),setDashboardWithFilterValues:(n,r)=>{e(o=>{o.dashboard=n,o.filterValues=r})},setDashboardTheme:n=>{e(r=>{r.theme=n})},setSheets:n=>{e(r=>{r.dashboard&&(r.dashboard.sheets=n)})},setSheetTitle:(n,r)=>{e(o=>{var s,a;const i=(a=(s=o.dashboard)==null?void 0:s.sheets)==null?void 0:a.find(l=>l.id===n);i&&(i.title=r)})},setCardTitle:(n,r,o)=>{e(i=>{var a,l;const s=(l=(a=i.dashboard)==null?void 0:a.sheets)==null?void 0:l.find(c=>c.id===n);s&&bc.forEach(s.frames,c=>{var f;const u=(f=c.cards)==null?void 0:f.find(h=>h.id===r);u&&(u.title=o)})})},setCardInfo:(n,r)=>{e(o=>{var s,a;const i=(a=(s=o.dashboard)==null?void 0:s.sheets)==null?void 0:a.find(l=>l.id===o.selectedSheetId);i&&bc.forEach(i.frames,l=>{var u;const c=(u=l.cards)==null?void 0:u.find(f=>f.id===n);c&&(c.info=r)})})},setCardDescription:(n,r,o)=>{e(i=>{var a,l;const s=(l=(a=i.dashboard)==null?void 0:a.sheets)==null?void 0:l.find(c=>c.id===n);s&&bc.forEach(s.frames,c=>{var f;const u=(f=c.cards)==null?void 0:f.find(h=>h.id===r);u&&(u.description=o)})})},setCardSql:(n,r,o)=>{e(i=>{var a,l,c,u;const s=(l=(a=i.dashboard)==null?void 0:a.sheets)==null?void 0:l.find(f=>f.id===n);if(s){const f=(c=s.cards)==null?void 0:c.find(h=>h.id===r);f&&(f.sql=o,(u=i.onUpdateCard)==null||u.call(i,f,n))}})},setFrameCardData:(n,r,o)=>{e(i=>{var a,l;const s=(l=(a=i.dashboard)==null?void 0:a.sheets)==null?void 0:l.find(c=>c.id===n);s&&bc.forEach(s.frames,c=>{var f;const u=(f=c.cards)==null?void 0:f.find(h=>h.id===r);u&&(u.data=o)})})},setSheetLayout:(n,r)=>{e(o=>{var s,a;const i=(a=(s=o.dashboard)==null?void 0:s.sheets)==null?void 0:a.find(l=>l.id===n);i&&(i.layout=r)})},setSheetLayouts:(n,r)=>{e(o=>{var s,a;const i=(a=(s=o.dashboard)==null?void 0:s.sheets)==null?void 0:a.find(l=>l.id===n);i&&(i.layouts=r)})},setShowContext:n=>{e(()=>({showContext:n}))},setShowFilters:n=>{e(()=>({showFilters:n}))},setFilterValues:n=>{e(()=>({filterValues:n}))},addOrUpdateFilterValue:n=>{e(r=>{if(r.filterValues){const o=r.filterValues.findIndex(i=>i.filterId===n.filterId);o>-1?r.filterValues.splice(o,1,n):r.filterValues.push(n)}else r.filterValues=[n]})},addOrUpdateFilterValues:n=>{e(r=>{r.filterValues?n.forEach(o=>{var s,a,l;const i=(s=r==null?void 0:r.filterValues)==null?void 0:s.findIndex(c=>c.filterId===o.filterId);i!==void 0&&i>-1?(a=r.filterValues)==null||a.splice(i,1,o):(l=r.filterValues)==null||l.push(o)}):r.filterValues=n})},removeFilterValue:n=>{e(r=>{if(r.filterValues){const o=r.filterValues.filter(i=>i.filterId!==n&&!i.filterId.startsWith(n));r.filterValues=o}})},replaceFilterValue:n=>{e(r=>{if(r.filterValues){const o=r.filterValues.findIndex(i=>i.filterId===n.filterId);o>-1&&r.filterValues.splice(o,1,n)}})},addFilter:n=>{e(r=>{var i,s;r.dashboard.filters?(i=r.dashboard.filters)==null||i.push(n):r.dashboard.filters=[n];const o=(s=r.dashboard.sheets)==null?void 0:s.find(a=>a.id===r.selectedSheetId);YR({id:n.id,layouts:o==null?void 0:o.layouts,y:0,initialHeight:8,minH:7,w:10})})},removeFilter:n=>{e(r=>{var o,i,s;if(r.dashboard.filters){const a=(o=r.dashboard.filters)==null?void 0:o.findIndex(l=>l.id===n);if(a>-1){(i=r.dashboard.filters)==null||i.splice(a,1);const l=(s=r.dashboard.sheets)==null?void 0:s.find(c=>c.id===r.selectedSheetId);KR(n,l==null?void 0:l.layouts)}}})},updateFrameCard:(n,r,o)=>{e(i=>{var l,c,u,f,h;const s=(c=(l=i.dashboard)==null?void 0:l.sheets)==null?void 0:c.find(p=>p.id===n);if(!s)return;const a=(u=s==null?void 0:s.frames)==null?void 0:u.find(p=>p.id===r);if(a){const p=(f=a.cards)==null?void 0:f.findIndex(v=>v.id===o.id);p>-1&&((h=a.cards)==null||h.splice(p,1,o))}})},updateFilter:n=>{e(r=>{var o,i;if(r.dashboard.filters){const s=(o=r.dashboard.filters)==null?void 0:o.findIndex(a=>a.id===n.id);s>-1&&((i=r.dashboard.filters)==null||i.splice(s,1,n))}})},setIsDashboardEditing:n=>{e(()=>({isDashboardEditing:n}))},setShowDashboardJSON:n=>{e(()=>({showDashboardJSON:n}))},setIsVisualEditing:n=>{e(()=>({isVisualEditing:n}))},addFrame:(n,r,o)=>{e(i=>{var a,l,c,u;const s=(l=(a=i.dashboard)==null?void 0:a.sheets)==null?void 0:l.find(f=>f.id===n);if(s){s.frames||(s.frames=[]),(c=s.frames)==null||c.push(r);let f=1/0;const h=0;o==="start"&&(f=0),YR({id:r.id,layouts:s.layouts,minH:10,x:h,y:f}),(u=i.onAddFrame)==null||u.call(i,r,n)}})},removeFrame:(n,r)=>{e(o=>{var s,a,l,c,u;const i=(a=(s=o.dashboard)==null?void 0:s.sheets)==null?void 0:a.find(f=>f.id===n);if(i){const f=(l=i.frames)==null?void 0:l.findIndex(h=>h.id===r);console.log(f),typeof f=="number"&&f>-1&&((c=i.frames)==null||c.splice(f,1),(u=i.layout)==null||u.splice(f,1),KR(r,i.layouts))}})},updateFrame:(n,r)=>{e(o=>{var a,l,c,u;const i=(l=(a=o.dashboard)==null?void 0:a.sheets)==null?void 0:l.find(f=>f.id===n),s=(c=i==null?void 0:i.frames)==null?void 0:c.findIndex(f=>f.id===r.id);i&&((u=i.frames)==null||u.splice(s,1,r))})},updateCard:(n,r)=>{e(o=>{var a,l,c,u,f;const i=(l=(a=o.dashboard)==null?void 0:a.sheets)==null?void 0:l.find(h=>h.id===n),s=(c=i==null?void 0:i.cards)==null?void 0:c.findIndex(h=>h.id===r.id);i&&((u=i.cards)==null||u.splice(s,1,r),(f=o.onUpdateCard)==null||f.call(o,r,n))})},removeCard:(n,r)=>{e(o=>{var a,l,c,u,f,h;const i=(l=(a=o.dashboard)==null?void 0:a.sheets)==null?void 0:l.find(p=>p.id===n),s=(c=i==null?void 0:i.cards)==null?void 0:c.findIndex(p=>p.id===r.id);i&&((u=i.cards)==null||u.splice(s,1),(f=i.layout)==null||f.splice(s,1),(h=o.onRemoveCard)==null||h.call(o,r,n))})},setStyle:n=>{e(r=>{r.dashboard&&(r.dashboard.style=n)})},setSelectedCardId:(n,r)=>{e(o=>{var s,a,l;const i=(a=(s=o.dashboard)==null?void 0:s.sheets)==null?void 0:a.find(c=>c.id===n);i&&(((l=i.cards)==null?void 0:l.find(u=>u.id===r))?o.selectedCardId=r:o.selectedCardId=null)})},setSelectedFrameId:n=>{e(r=>{var i,s;((s=(i=r.dashboard)==null?void 0:i.sheets)==null?void 0:s.find(a=>a.id===r.selectedSheetId))&&(r.selectedFrameId=n)})},setSelectedSheetId:n=>{e(r=>{var i,s;((s=(i=r.dashboard)==null?void 0:i.sheets)==null?void 0:s.find(a=>a.id===n))&&(r.selectedSheetId=n)})},setOnSaveFunction:n=>{e(()=>({onSaveFunction:n}))},setOnAddCard:n=>{e(()=>({onAddCard:n}))},setOnUpdateCard:n=>{e(()=>({onUpdateCard:n}))},setOnRemoveCard:n=>{e(()=>({onRemoveCard:n}))},setOnEvent:n=>{e(()=>({onEvent:n}))},getDashboard:()=>t().dashboard,getSelectedSheet:()=>{var n,r;return(r=(n=t().dashboard)==null?void 0:n.sheets)==null?void 0:r.find(o=>o.id===t().selectedSheetId)},getCardFrame:n=>{var o,i;const r=(o=t().dashboard)==null?void 0:o.sheets;if(r)for(let s=0;s<r.length;s++){const a=r[s].frames;if(a){for(let l=0;l<a.length;l++)if((i=a[l].cards)==null?void 0:i.find(u=>u.id===n))return a[l]}}},getSelectedFrame:()=>{var r,o,i;const n=(o=(r=t().dashboard)==null?void 0:r.sheets)==null?void 0:o.find(s=>s.id===t().selectedSheetId);return(i=n==null?void 0:n.frames)==null?void 0:i.find(s=>s.id===t().selectedFrameId)},getCard:n=>{var o,i;const r=(o=t().dashboard)==null?void 0:o.sheets;if(r)for(let s=0;s<r.length;s++){const a=r[s].frames;if(a)for(let l=0;l<a.length;l++){const c=(i=a[l].cards)==null?void 0:i.find(u=>u.id===n);if(c)return c}}},getSelectedSheetLayout:()=>{var r,o;const n=(o=(r=t().dashboard)==null?void 0:r.sheets)==null?void 0:o.find(i=>i.id===t().selectedSheetId);return n==null?void 0:n.layout},getSelectedSheetLayouts:()=>{var r,o;const n=(o=(r=t().dashboard)==null?void 0:r.sheets)==null?void 0:o.find(i=>i.id===t().selectedSheetId);return n==null?void 0:n.layouts},getStyle:()=>{var n;return(n=t().dashboard)==null?void 0:n.style},getCardSheet(n){var o,i;const r=(o=t().dashboard)==null?void 0:o.sheets;if(r)for(let s=0;s<r.length;s++){const a=r[s].frames;if(a){for(let l=0;l<a.length;l++)if((i=a[l].cards)==null?void 0:i.find(u=>u.id===n))return r[s]}}},handleDataPointClickAction:(n,r)=>{vV({card:n,dataPoint:r,set:e,get:t})}}}))),wr=()=>Pe(e=>e.actions),bV={theme:"system",setTheme:()=>null},vD=m.createContext(bV);function yV({children:e,defaultTheme:t="system",storageKey:n="vite-ui-theme",...r}){const[o,i]=m.useState(()=>localStorage.getItem(n)||t);m.useEffect(()=>{const a=window.document.documentElement;if(a.classList.remove("light","dark"),o==="system"){const l=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";a.classList.add(l);return}a.classList.add(o)},[o]);const s={theme:o,setTheme:a=>{localStorage.setItem(n,a),i(a)}};return R.jsx(vD.Provider,{...r,value:s,children:e})}const bD=()=>{const e=m.useContext(vD);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e};var Wf=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},tu=typeof window>"u"||"Deno"in window;function To(){}function xV(e,t){return typeof e=="function"?e(t):e}function ax(e){return typeof e=="number"&&e>=0&&e!==1/0}function yD(e,t){return Math.max(e+(t||0)-Date.now(),0)}function XR(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:s,stale:a}=e;if(s){if(r){if(t.queryHash!==fw(s,t.options))return!1}else if(!qd(t.queryKey,s))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||typeof o<"u"&&o!==t.state.fetchStatus||i&&!i(t))}function QR(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(Ud(t.options.mutationKey)!==Ud(i))return!1}else if(!qd(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function fw(e,t){return((t==null?void 0:t.queryKeyHashFn)||Ud)(e)}function Ud(e){return JSON.stringify(e,(t,n)=>cx(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function qd(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!qd(e[n],t[n])):!1}function xD(e,t){if(e===t)return e;const n=JR(e)&&JR(t);if(n||cx(e)&&cx(t)){const r=n?e:Object.keys(e),o=r.length,i=n?t:Object.keys(t),s=i.length,a=n?[]:{};let l=0;for(let c=0;c<s;c++){const u=n?c:i[c];!n&&e[u]===void 0&&t[u]===void 0&&r.includes(u)?(a[u]=void 0,l++):(a[u]=xD(e[u],t[u]),a[u]===e[u]&&e[u]!==void 0&&l++)}return o===s&&l===o?e:a}return t}function lx(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function JR(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function cx(e){if(!ZR(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!ZR(n)||!n.hasOwnProperty("isPrototypeOf"))}function ZR(e){return Object.prototype.toString.call(e)==="[object Object]"}function wV(e){return new Promise(t=>{setTimeout(t,e)})}function ux(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?xD(e,t):t}function _V(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function SV(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var el,Gs,Nc,jT,CV=(jT=class extends Wf{constructor(){super();Xe(this,el,void 0);Xe(this,Gs,void 0);Xe(this,Nc,void 0);Ve(this,Nc,t=>{if(!tu&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){ae(this,Gs)||this.setEventListener(ae(this,Nc))}onUnsubscribe(){var t;this.hasListeners()||((t=ae(this,Gs))==null||t.call(this),Ve(this,Gs,void 0))}setEventListener(t){var n;Ve(this,Nc,t),(n=ae(this,Gs))==null||n.call(this),Ve(this,Gs,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){ae(this,el)!==t&&(Ve(this,el,t),this.onFocus())}onFocus(){this.listeners.forEach(t=>{t()})}isFocused(){var t;return typeof ae(this,el)=="boolean"?ae(this,el):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},el=new WeakMap,Gs=new WeakMap,Nc=new WeakMap,jT),zg=new CV,Lc,Ys,Fc,zT,EV=(zT=class extends Wf{constructor(){super();Xe(this,Lc,!0);Xe(this,Ys,void 0);Xe(this,Fc,void 0);Ve(this,Fc,t=>{if(!tu&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){ae(this,Ys)||this.setEventListener(ae(this,Fc))}onUnsubscribe(){var t;this.hasListeners()||((t=ae(this,Ys))==null||t.call(this),Ve(this,Ys,void 0))}setEventListener(t){var n;Ve(this,Fc,t),(n=ae(this,Ys))==null||n.call(this),Ve(this,Ys,t(this.setOnline.bind(this)))}setOnline(t){ae(this,Lc)!==t&&(Ve(this,Lc,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return ae(this,Lc)}},Lc=new WeakMap,Ys=new WeakMap,Fc=new WeakMap,zT),Bg=new EV;function RV(e){return Math.min(1e3*2**e,3e4)}function Dm(e){return(e??"online")==="online"?Bg.isOnline():!0}var wD=class{constructor(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function a0(e){return e instanceof wD}function _D(e){let t=!1,n=0,r=!1,o,i,s;const a=new Promise((w,y)=>{i=w,s=y}),l=w=>{var y;r||(p(new wD(w)),(y=e.abort)==null||y.call(e))},c=()=>{t=!0},u=()=>{t=!1},f=()=>!zg.isFocused()||e.networkMode!=="always"&&!Bg.isOnline(),h=w=>{var y;r||(r=!0,(y=e.onSuccess)==null||y.call(e,w),o==null||o(),i(w))},p=w=>{var y;r||(r=!0,(y=e.onError)==null||y.call(e,w),o==null||o(),s(w))},v=()=>new Promise(w=>{var y;o=_=>{const S=r||!f();return S&&w(_),S},(y=e.onPause)==null||y.call(e)}).then(()=>{var w;o=void 0,r||(w=e.onContinue)==null||w.call(e)}),b=()=>{if(r)return;let w;try{w=e.fn()}catch(y){w=Promise.reject(y)}Promise.resolve(w).then(h).catch(y=>{var O;if(r)return;const _=e.retry??(tu?0:3),S=e.retryDelay??RV,C=typeof S=="function"?S(n,y):S,E=_===!0||typeof _=="number"&&n<_||typeof _=="function"&&_(n,y);if(t||!E){p(y);return}n++,(O=e.onFail)==null||O.call(e,n,y),wV(C).then(()=>{if(f())return v()}).then(()=>{t?p(y):b()})})};return Dm(e.networkMode)?b():v().then(b),{promise:a,cancel:l,continue:()=>(o==null?void 0:o())?a:Promise.resolve(),cancelRetry:c,continueRetry:u}}function PV(){let e=[],t=0,n=h=>{h()},r=h=>{h()},o=h=>setTimeout(h,0);const i=h=>{o=h},s=h=>{let p;t++;try{p=h()}finally{t--,t||c()}return p},a=h=>{t?e.push(h):o(()=>{n(h)})},l=h=>(...p)=>{a(()=>{h(...p)})},c=()=>{const h=e;e=[],h.length&&o(()=>{r(()=>{h.forEach(p=>{n(p)})})})};return{batch:s,batchCalls:l,schedule:a,setNotifyFunction:h=>{n=h},setBatchNotifyFunction:h=>{r=h},setScheduler:i}}var Qn=PV(),tl,BT,SD=(BT=class{constructor(){Xe(this,tl,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),ax(this.gcTime)&&Ve(this,tl,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(tu?1/0:5*60*1e3))}clearGcTimeout(){ae(this,tl)&&(clearTimeout(ae(this,tl)),Ve(this,tl,void 0))}},tl=new WeakMap,BT),jc,zc,Po,Ks,Oo,Wn,Df,nl,Bc,xg,Yo,Ki,VT,OV=(VT=class extends SD{constructor(t){super();Xe(this,Bc);Xe(this,Yo);Xe(this,jc,void 0);Xe(this,zc,void 0);Xe(this,Po,void 0);Xe(this,Ks,void 0);Xe(this,Oo,void 0);Xe(this,Wn,void 0);Xe(this,Df,void 0);Xe(this,nl,void 0);Ve(this,nl,!1),Ve(this,Df,t.defaultOptions),Ct(this,Bc,xg).call(this,t.options),Ve(this,Wn,[]),Ve(this,Po,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Ve(this,jc,t.state||$V(this.options)),this.state=ae(this,jc),this.scheduleGc()}get meta(){return this.options.meta}optionalRemove(){!ae(this,Wn).length&&this.state.fetchStatus==="idle"&&ae(this,Po).remove(this)}setData(t,n){const r=ux(this.state.data,t,this.options);return Ct(this,Yo,Ki).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Ct(this,Yo,Ki).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r;const n=ae(this,Ks);return(r=ae(this,Oo))==null||r.cancel(t),n?n.then(To).catch(To):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(ae(this,jc))}isActive(){return ae(this,Wn).some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||ae(this,Wn).some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!yD(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=ae(this,Wn).find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=ae(this,Oo))==null||n.continue()}onOnline(){var n;const t=ae(this,Wn).find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=ae(this,Oo))==null||n.continue()}addObserver(t){ae(this,Wn).includes(t)||(ae(this,Wn).push(t),this.clearGcTimeout(),ae(this,Po).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){ae(this,Wn).includes(t)&&(Ve(this,Wn,ae(this,Wn).filter(n=>n!==t)),ae(this,Wn).length||(ae(this,Oo)&&(ae(this,nl)?ae(this,Oo).cancel({revert:!0}):ae(this,Oo).cancelRetry()),this.scheduleGc()),ae(this,Po).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return ae(this,Wn).length}invalidate(){this.state.isInvalidated||Ct(this,Yo,Ki).call(this,{type:"invalidate"})}fetch(t,n){var c,u,f,h;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(ae(this,Ks))return(c=ae(this,Oo))==null||c.continueRetry(),ae(this,Ks)}if(t&&Ct(this,Bc,xg).call(this,t),!this.options.queryFn){const p=ae(this,Wn).find(v=>v.options.queryFn);p&&Ct(this,Bc,xg).call(this,p.options)}process.env.NODE_ENV!=="production"&&(Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const r=new AbortController,o={queryKey:this.queryKey,meta:this.meta},i=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(Ve(this,nl,!0),r.signal)})};i(o);const s=()=>this.options.queryFn?(Ve(this,nl,!1),this.options.persister?this.options.persister(this.options.queryFn,o,this):this.options.queryFn(o)):Promise.reject(new Error(`Missing queryFn: '${this.options.queryHash}'`)),a={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:s};i(a),(u=this.options.behavior)==null||u.onFetch(a,this),Ve(this,zc,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((f=a.fetchOptions)==null?void 0:f.meta))&&Ct(this,Yo,Ki).call(this,{type:"fetch",meta:(h=a.fetchOptions)==null?void 0:h.meta});const l=p=>{var v,b,w,y;a0(p)&&p.silent||Ct(this,Yo,Ki).call(this,{type:"error",error:p}),a0(p)||((b=(v=ae(this,Po).config).onError)==null||b.call(v,p,this),(y=(w=ae(this,Po).config).onSettled)==null||y.call(w,this.state.data,p,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return Ve(this,Oo,_D({fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:p=>{var v,b,w,y;if(typeof p>"u"){process.env.NODE_ENV!=="production"&&console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),l(new Error(`${this.queryHash} data is undefined`));return}this.setData(p),(b=(v=ae(this,Po).config).onSuccess)==null||b.call(v,p,this),(y=(w=ae(this,Po).config).onSettled)==null||y.call(w,p,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:l,onFail:(p,v)=>{Ct(this,Yo,Ki).call(this,{type:"failed",failureCount:p,error:v})},onPause:()=>{Ct(this,Yo,Ki).call(this,{type:"pause"})},onContinue:()=>{Ct(this,Yo,Ki).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode})),Ve(this,Ks,ae(this,Oo).promise),ae(this,Ks)}},jc=new WeakMap,zc=new WeakMap,Po=new WeakMap,Ks=new WeakMap,Oo=new WeakMap,Wn=new WeakMap,Df=new WeakMap,nl=new WeakMap,Bc=new WeakSet,xg=function(t){this.options={...ae(this,Df),...t},this.updateGcTime(this.options.gcTime)},Yo=new WeakSet,Ki=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:t.meta??null,fetchStatus:Dm(this.options.networkMode)?"fetching":"paused",...!r.dataUpdatedAt&&{error:null,status:"pending"}};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return a0(o)&&o.revert&&ae(this,zc)?{...ae(this,zc),fetchStatus:"idle"}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Qn.batch(()=>{ae(this,Wn).forEach(r=>{r.onQueryUpdate()}),ae(this,Po).notify({query:this,type:"updated",action:t})})},VT);function $V(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=typeof t<"u",r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var hi,HT,CD=(HT=class extends Wf{constructor(t={}){super();Xe(this,hi,void 0);this.config=t,Ve(this,hi,new Map)}build(t,n,r){const o=n.queryKey,i=n.queryHash??fw(o,n);let s=this.get(i);return s||(s=new OV({cache:this,queryKey:o,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(s)),s}add(t){ae(this,hi).has(t.queryHash)||(ae(this,hi).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=ae(this,hi).get(t.queryHash);n&&(t.destroy(),n===t&&ae(this,hi).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Qn.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return ae(this,hi).get(t)}getAll(){return[...ae(this,hi).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>XR(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>XR(t,r)):n}notify(t){Qn.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Qn.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Qn.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},hi=new WeakMap,HT),pi,Af,Zr,Vc,gi,zs,WT,TV=(WT=class extends SD{constructor(t){super();Xe(this,gi);Xe(this,pi,void 0);Xe(this,Af,void 0);Xe(this,Zr,void 0);Xe(this,Vc,void 0);this.mutationId=t.mutationId,Ve(this,Af,t.defaultOptions),Ve(this,Zr,t.mutationCache),Ve(this,pi,[]),this.state=t.state||DV(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...ae(this,Af),...t},this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){ae(this,pi).includes(t)||(ae(this,pi).push(t),this.clearGcTimeout(),ae(this,Zr).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Ve(this,pi,ae(this,pi).filter(n=>n!==t)),this.scheduleGc(),ae(this,Zr).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){ae(this,pi).length||(this.state.status==="pending"?this.scheduleGc():ae(this,Zr).remove(this))}continue(){var t;return((t=ae(this,Vc))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,i,s,a,l,c,u,f,h,p,v,b,w,y,_,S,C,E,O,T;const n=()=>(Ve(this,Vc,_D({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(M,I)=>{Ct(this,gi,zs).call(this,{type:"failed",failureCount:M,error:I})},onPause:()=>{Ct(this,gi,zs).call(this,{type:"pause"})},onContinue:()=>{Ct(this,gi,zs).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode})),ae(this,Vc).promise),r=this.state.status==="pending";try{if(!r){Ct(this,gi,zs).call(this,{type:"pending",variables:t}),await((i=(o=ae(this,Zr).config).onMutate)==null?void 0:i.call(o,t,this));const I=await((a=(s=this.options).onMutate)==null?void 0:a.call(s,t));I!==this.state.context&&Ct(this,gi,zs).call(this,{type:"pending",context:I,variables:t})}const M=await n();return await((c=(l=ae(this,Zr).config).onSuccess)==null?void 0:c.call(l,M,t,this.state.context,this)),await((f=(u=this.options).onSuccess)==null?void 0:f.call(u,M,t,this.state.context)),await((p=(h=ae(this,Zr).config).onSettled)==null?void 0:p.call(h,M,null,this.state.variables,this.state.context,this)),await((b=(v=this.options).onSettled)==null?void 0:b.call(v,M,null,t,this.state.context)),Ct(this,gi,zs).call(this,{type:"success",data:M}),M}catch(M){try{throw await((y=(w=ae(this,Zr).config).onError)==null?void 0:y.call(w,M,t,this.state.context,this)),await((S=(_=this.options).onError)==null?void 0:S.call(_,M,t,this.state.context)),await((E=(C=ae(this,Zr).config).onSettled)==null?void 0:E.call(C,void 0,M,this.state.variables,this.state.context,this)),await((T=(O=this.options).onSettled)==null?void 0:T.call(O,void 0,M,t,this.state.context)),M}finally{Ct(this,gi,zs).call(this,{type:"error",error:M})}}}},pi=new WeakMap,Af=new WeakMap,Zr=new WeakMap,Vc=new WeakMap,gi=new WeakSet,zs=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!Dm(this.options.networkMode),status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Qn.batch(()=>{ae(this,pi).forEach(r=>{r.onMutationUpdate(t)}),ae(this,Zr).notify({mutation:this,type:"updated",action:t})})},WT);function DV(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var $o,kf,rl,UT,AV=(UT=class extends Wf{constructor(t={}){super();Xe(this,$o,void 0);Xe(this,kf,void 0);Xe(this,rl,void 0);this.config=t,Ve(this,$o,[]),Ve(this,kf,0)}build(t,n,r){const o=new TV({mutationCache:this,mutationId:++cp(this,kf)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){ae(this,$o).push(t),this.notify({type:"added",mutation:t})}remove(t){Ve(this,$o,ae(this,$o).filter(n=>n!==t)),this.notify({type:"removed",mutation:t})}clear(){Qn.batch(()=>{ae(this,$o).forEach(t=>{this.remove(t)})})}getAll(){return ae(this,$o)}find(t){const n={exact:!0,...t};return ae(this,$o).find(r=>QR(n,r))}findAll(t={}){return ae(this,$o).filter(n=>QR(t,n))}notify(t){Qn.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){return Ve(this,rl,(ae(this,rl)??Promise.resolve()).then(()=>{const t=ae(this,$o).filter(n=>n.state.isPaused);return Qn.batch(()=>t.reduce((n,r)=>n.then(()=>r.continue().catch(To)),Promise.resolve()))}).then(()=>{Ve(this,rl,void 0)})),ae(this,rl)}},$o=new WeakMap,kf=new WeakMap,rl=new WeakMap,UT);function kV(e){return{onFetch:(t,n)=>{const r=async()=>{var v,b,w,y,_;const o=t.options,i=(w=(b=(v=t.fetchOptions)==null?void 0:v.meta)==null?void 0:b.fetchMore)==null?void 0:w.direction,s=((y=t.state.data)==null?void 0:y.pages)||[],a=((_=t.state.data)==null?void 0:_.pageParams)||[],l={pages:[],pageParams:[]};let c=!1;const u=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>(t.signal.aborted?c=!0:t.signal.addEventListener("abort",()=>{c=!0}),t.signal)})},f=t.options.queryFn||(()=>Promise.reject(new Error(`Missing queryFn: '${t.options.queryHash}'`))),h=async(S,C,E)=>{if(c)return Promise.reject();if(C==null&&S.pages.length)return Promise.resolve(S);const O={queryKey:t.queryKey,pageParam:C,direction:E?"backward":"forward",meta:t.options.meta};u(O);const T=await f(O),{maxPages:M}=t.options,I=E?SV:_V;return{pages:I(S.pages,T,M),pageParams:I(S.pageParams,C,M)}};let p;if(i&&s.length){const S=i==="backward",C=S?MV:eP,E={pages:s,pageParams:a},O=C(o,E);p=await h(E,O,S)}else{p=await h(l,a[0]??o.initialPageParam);const S=e??s.length;for(let C=1;C<S;C++){const E=eP(o,p);p=await h(p,E)}}return p};t.options.persister?t.fetchFn=()=>{var o,i;return(i=(o=t.options).persister)==null?void 0:i.call(o,r,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=r}}}function eP(e,{pages:t,pageParams:n}){const r=t.length-1;return e.getNextPageParam(t[r],t,n[r],n)}function MV(e,{pages:t,pageParams:n}){var r;return(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n)}var Ln,Xs,Qs,Hc,Wc,Js,Uc,qc,qT,IV=(qT=class{constructor(e={}){Xe(this,Ln,void 0);Xe(this,Xs,void 0);Xe(this,Qs,void 0);Xe(this,Hc,void 0);Xe(this,Wc,void 0);Xe(this,Js,void 0);Xe(this,Uc,void 0);Xe(this,qc,void 0);Ve(this,Ln,e.queryCache||new CD),Ve(this,Xs,e.mutationCache||new AV),Ve(this,Qs,e.defaultOptions||{}),Ve(this,Hc,new Map),Ve(this,Wc,new Map),Ve(this,Js,0)}mount(){cp(this,Js)._++,ae(this,Js)===1&&(Ve(this,Uc,zg.subscribe(()=>{zg.isFocused()&&(this.resumePausedMutations(),ae(this,Ln).onFocus())})),Ve(this,qc,Bg.subscribe(()=>{Bg.isOnline()&&(this.resumePausedMutations(),ae(this,Ln).onOnline())})))}unmount(){var e,t;cp(this,Js)._--,ae(this,Js)===0&&((e=ae(this,Uc))==null||e.call(this),Ve(this,Uc,void 0),(t=ae(this,qc))==null||t.call(this),Ve(this,qc,void 0))}isFetching(e){return ae(this,Ln).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return ae(this,Xs).findAll({...e,status:"pending"}).length}getQueryData(e){var t;return(t=ae(this,Ln).find({queryKey:e}))==null?void 0:t.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);return t!==void 0?Promise.resolve(t):this.fetchQuery(e)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=ae(this,Ln).find({queryKey:e}),o=r==null?void 0:r.state.data,i=xV(t,o);if(typeof i>"u")return;const s=this.defaultQueryOptions({queryKey:e});return ae(this,Ln).build(this,s).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return Qn.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var t;return(t=ae(this,Ln).find({queryKey:e}))==null?void 0:t.state}removeQueries(e){const t=ae(this,Ln);Qn.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=ae(this,Ln),r={type:"active",...e};return Qn.batch(()=>(n.findAll(e).forEach(o=>{o.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=Qn.batch(()=>ae(this,Ln).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(To).catch(To)}invalidateQueries(e={},t={}){return Qn.batch(()=>{if(ae(this,Ln).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=Qn.batch(()=>ae(this,Ln).findAll(e).filter(o=>!o.isDisabled()).map(o=>{let i=o.fetch(void 0,n);return n.throwOnError||(i=i.catch(To)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(To)}fetchQuery(e){const t=this.defaultQueryOptions(e);typeof t.retry>"u"&&(t.retry=!1);const n=ae(this,Ln).build(this,t);return n.isStaleByTime(t.staleTime)?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(To).catch(To)}fetchInfiniteQuery(e){return e.behavior=kV(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(To).catch(To)}resumePausedMutations(){return ae(this,Xs).resumePausedMutations()}getQueryCache(){return ae(this,Ln)}getMutationCache(){return ae(this,Xs)}getDefaultOptions(){return ae(this,Qs)}setDefaultOptions(e){Ve(this,Qs,e)}setQueryDefaults(e,t){ae(this,Hc).set(Ud(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...ae(this,Hc).values()];let n={};return t.forEach(r=>{qd(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){ae(this,Wc).set(Ud(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...ae(this,Wc).values()];let n={};return t.forEach(r=>{qd(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e!=null&&e._defaulted)return e;const t={...ae(this,Qs).queries,...(e==null?void 0:e.queryKey)&&this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=fw(t.queryKey,t)),typeof t.refetchOnReconnect>"u"&&(t.refetchOnReconnect=t.networkMode!=="always"),typeof t.throwOnError>"u"&&(t.throwOnError=!!t.suspense),typeof t.networkMode>"u"&&t.persister&&(t.networkMode="offlineFirst"),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...ae(this,Qs).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){ae(this,Ln).clear(),ae(this,Xs).clear()}},Ln=new WeakMap,Xs=new WeakMap,Qs=new WeakMap,Hc=new WeakMap,Wc=new WeakMap,Js=new WeakMap,Uc=new WeakMap,qc=new WeakMap,qT),Ir,fn,Mf,vr,ol,Gc,mi,If,Yc,Kc,il,sl,Zs,Xc,al,vd,Nf,dx,Lf,fx,Ff,hx,jf,px,zf,gx,Bf,mx,Vf,vx,Em,ED,GT,NV=(GT=class extends Wf{constructor(t,n){super();Xe(this,al);Xe(this,Nf);Xe(this,Lf);Xe(this,Ff);Xe(this,jf);Xe(this,zf);Xe(this,Bf);Xe(this,Vf);Xe(this,Em);Xe(this,Ir,void 0);Xe(this,fn,void 0);Xe(this,Mf,void 0);Xe(this,vr,void 0);Xe(this,ol,void 0);Xe(this,Gc,void 0);Xe(this,mi,void 0);Xe(this,If,void 0);Xe(this,Yc,void 0);Xe(this,Kc,void 0);Xe(this,il,void 0);Xe(this,sl,void 0);Xe(this,Zs,void 0);Xe(this,Xc,new Set);this.options=n,Ve(this,Ir,t),Ve(this,mi,null),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(ae(this,fn).addObserver(this),tP(ae(this,fn),this.options)?Ct(this,al,vd).call(this):this.updateResult(),Ct(this,jf,px).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return bx(ae(this,fn),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return bx(ae(this,fn),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Ct(this,zf,gx).call(this),Ct(this,Bf,mx).call(this),ae(this,fn).removeObserver(this)}setOptions(t,n){const r=this.options,o=ae(this,fn);if(this.options=ae(this,Ir).defaultQueryOptions(t),lx(r,this.options)||ae(this,Ir).getQueryCache().notify({type:"observerOptionsUpdated",query:ae(this,fn),observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=r.queryKey),Ct(this,Vf,vx).call(this);const i=this.hasListeners();i&&nP(ae(this,fn),o,this.options,r)&&Ct(this,al,vd).call(this),this.updateResult(n),i&&(ae(this,fn)!==o||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&Ct(this,Nf,dx).call(this);const s=Ct(this,Lf,fx).call(this);i&&(ae(this,fn)!==o||this.options.enabled!==r.enabled||s!==ae(this,Zs))&&Ct(this,Ff,hx).call(this,s)}getOptimisticResult(t){const n=ae(this,Ir).getQueryCache().build(ae(this,Ir),t),r=this.createResult(n,t);return FV(this,r)&&(Ve(this,vr,r),Ve(this,Gc,this.options),Ve(this,ol,ae(this,fn).state)),r}getCurrentResult(){return ae(this,vr)}trackResult(t){const n={};return Object.keys(t).forEach(r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(ae(this,Xc).add(r),t[r])})}),n}getCurrentQuery(){return ae(this,fn)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=ae(this,Ir).defaultQueryOptions(t),r=ae(this,Ir).getQueryCache().build(ae(this,Ir),n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(t){return Ct(this,al,vd).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),ae(this,vr)))}createResult(t,n){var O;const r=ae(this,fn),o=this.options,i=ae(this,vr),s=ae(this,ol),a=ae(this,Gc),c=t!==r?t.state:ae(this,Mf),{state:u}=t;let{error:f,errorUpdatedAt:h,fetchStatus:p,status:v}=u,b=!1,w;if(n._optimisticResults){const T=this.hasListeners(),M=!T&&tP(t,n),I=T&&nP(t,r,n,o);(M||I)&&(p=Dm(t.options.networkMode)?"fetching":"paused",u.dataUpdatedAt||(v="pending")),n._optimisticResults==="isRestoring"&&(p="idle")}if(n.select&&typeof u.data<"u")if(i&&u.data===(s==null?void 0:s.data)&&n.select===ae(this,If))w=ae(this,Yc);else try{Ve(this,If,n.select),w=n.select(u.data),w=ux(i==null?void 0:i.data,w,n),Ve(this,Yc,w),Ve(this,mi,null)}catch(T){Ve(this,mi,T)}else w=u.data;if(typeof n.placeholderData<"u"&&typeof w>"u"&&v==="pending"){let T;if(i!=null&&i.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData))T=i.data;else if(T=typeof n.placeholderData=="function"?n.placeholderData((O=ae(this,Kc))==null?void 0:O.state.data,ae(this,Kc)):n.placeholderData,n.select&&typeof T<"u")try{T=n.select(T),Ve(this,mi,null)}catch(M){Ve(this,mi,M)}typeof T<"u"&&(v="success",w=ux(i==null?void 0:i.data,T,n),b=!0)}ae(this,mi)&&(f=ae(this,mi),w=ae(this,Yc),h=Date.now(),v="error");const y=p==="fetching",_=v==="pending",S=v==="error",C=_&&y;return{status:v,fetchStatus:p,isPending:_,isSuccess:v==="success",isError:S,isInitialLoading:C,isLoading:C,data:w,dataUpdatedAt:u.dataUpdatedAt,error:f,errorUpdatedAt:h,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:u.dataUpdateCount>0||u.errorUpdateCount>0,isFetchedAfterMount:u.dataUpdateCount>c.dataUpdateCount||u.errorUpdateCount>c.errorUpdateCount,isFetching:y,isRefetching:y&&!_,isLoadingError:S&&u.dataUpdatedAt===0,isPaused:p==="paused",isPlaceholderData:b,isRefetchError:S&&u.dataUpdatedAt!==0,isStale:hw(t,n),refetch:this.refetch}}updateResult(t){const n=ae(this,vr),r=this.createResult(ae(this,fn),this.options);if(Ve(this,ol,ae(this,fn).state),Ve(this,Gc,this.options),ae(this,ol).data!==void 0&&Ve(this,Kc,ae(this,fn)),lx(r,n))return;Ve(this,vr,r);const o={},i=()=>{if(!n)return!0;const{notifyOnChangeProps:s}=this.options,a=typeof s=="function"?s():s;if(a==="all"||!a&&!ae(this,Xc).size)return!0;const l=new Set(a??ae(this,Xc));return this.options.throwOnError&&l.add("error"),Object.keys(ae(this,vr)).some(c=>{const u=c;return ae(this,vr)[u]!==n[u]&&l.has(u)})};(t==null?void 0:t.listeners)!==!1&&i()&&(o.listeners=!0),Ct(this,Em,ED).call(this,{...o,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Ct(this,jf,px).call(this)}},Ir=new WeakMap,fn=new WeakMap,Mf=new WeakMap,vr=new WeakMap,ol=new WeakMap,Gc=new WeakMap,mi=new WeakMap,If=new WeakMap,Yc=new WeakMap,Kc=new WeakMap,il=new WeakMap,sl=new WeakMap,Zs=new WeakMap,Xc=new WeakMap,al=new WeakSet,vd=function(t){Ct(this,Vf,vx).call(this);let n=ae(this,fn).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(To)),n},Nf=new WeakSet,dx=function(){if(Ct(this,zf,gx).call(this),tu||ae(this,vr).isStale||!ax(this.options.staleTime))return;const n=yD(ae(this,vr).dataUpdatedAt,this.options.staleTime)+1;Ve(this,il,setTimeout(()=>{ae(this,vr).isStale||this.updateResult()},n))},Lf=new WeakSet,fx=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(ae(this,fn)):this.options.refetchInterval)??!1},Ff=new WeakSet,hx=function(t){Ct(this,Bf,mx).call(this),Ve(this,Zs,t),!(tu||this.options.enabled===!1||!ax(ae(this,Zs))||ae(this,Zs)===0)&&Ve(this,sl,setInterval(()=>{(this.options.refetchIntervalInBackground||zg.isFocused())&&Ct(this,al,vd).call(this)},ae(this,Zs)))},jf=new WeakSet,px=function(){Ct(this,Nf,dx).call(this),Ct(this,Ff,hx).call(this,Ct(this,Lf,fx).call(this))},zf=new WeakSet,gx=function(){ae(this,il)&&(clearTimeout(ae(this,il)),Ve(this,il,void 0))},Bf=new WeakSet,mx=function(){ae(this,sl)&&(clearInterval(ae(this,sl)),Ve(this,sl,void 0))},Vf=new WeakSet,vx=function(){const t=ae(this,Ir).getQueryCache().build(ae(this,Ir),this.options);if(t===ae(this,fn))return;const n=ae(this,fn);Ve(this,fn,t),Ve(this,Mf,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},Em=new WeakSet,ED=function(t){Qn.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(ae(this,vr))}),ae(this,Ir).getQueryCache().notify({query:ae(this,fn),type:"observerResultsUpdated"})})},GT);function LV(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function tP(e,t){return LV(e,t)||e.state.dataUpdatedAt>0&&bx(e,t,t.refetchOnMount)}function bx(e,t,n){if(t.enabled!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&hw(e,t)}return!1}function nP(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&hw(e,n)}function hw(e,t){return e.isStaleByTime(t.staleTime)}function FV(e,t){return!lx(e.getCurrentResult(),t)}var RD=L.createContext(void 0),PD=e=>{const t=L.useContext(RD);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},jV=({client:e,children:t})=>(L.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),L.createElement(RD.Provider,{value:e},t)),OD=L.createContext(!1),zV=()=>L.useContext(OD);OD.Provider;function BV(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var VV=L.createContext(BV()),HV=()=>L.useContext(VV);function WV(e,t){return typeof e=="function"?e(...t):!!e}var UV=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},qV=e=>{L.useEffect(()=>{e.clearReset()},[e])},GV=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&WV(n,[e.error,r]),YV=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},KV=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,XV=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function QV(e,t,n){if(process.env.NODE_ENV!=="production"&&(typeof e!="object"||Array.isArray(e)))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const r=PD(n),o=zV(),i=HV(),s=r.defaultQueryOptions(e);s._optimisticResults=o?"isRestoring":"optimistic",YV(s),UV(s,i),qV(i);const[a]=L.useState(()=>new t(r,s)),l=a.getOptimisticResult(s);if(L.useSyncExternalStore(L.useCallback(c=>{const u=o?()=>{}:a.subscribe(Qn.batchCalls(c));return a.updateResult(),u},[a,o]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),L.useEffect(()=>{a.setOptions(s,{listeners:!1})},[s,a]),KV(s,l))throw XV(s,a,i);if(GV({result:l,errorResetBoundary:i,throwOnError:s.throwOnError,query:r.getQueryCache().get(s.queryHash)}))throw l.error;return s.notifyOnChangeProps?l:a.trackResult(l)}function Uf(e,t){return QV(e,NV,t)}function $D({children:e}){const{setIsSessionExpired:t}=wr(),n=new IV({queryCache:new CD({onError:r=>{console.error(`Something went wrong: ${r.message}`),r.message==="invalid token"&&t(!0)}}),defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1}}});return R.jsx(jV,{client:n,children:e})}const vu=m.forwardRef(({children:e,className:t,...n},r)=>R.jsx("div",{className:_e("semaphor-scope",t),ref:r,...n,children:e})),JV={id:"",authToken:void 0},TD=m.createContext(JV),DD=({children:e,dashboardProps:t})=>R.jsx($D,{children:R.jsx(TD.Provider,{value:t,children:R.jsx(vu,{style:{height:"100%"},children:e})})});function Oi(){const e=m.useContext(TD);if(e===void 0)throw new Error("useApplicationContext must be used within a ApplicationContextProvider");return e}function ZV(){const{authToken:e}=Oi(),t=Pe(s=>s.selectedLensId),{data:n,isLoading:r,isFetching:o,isError:i}=Uf({queryKey:["dashboard",t,e==null?void 0:e.accessToken],queryFn:()=>LB(e==null?void 0:e.accessToken,{lensId:t})});return{data:n,isLoading:r,isFetching:o,isError:i}}function AD(e){return e==="system"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e}function rP(e,t){const n=AD(e);return n==="dark"?ll.merge({...t==null?void 0:t.default},{...t==null?void 0:t.dark}):t==null?void 0:t.default}function eH({customStyle:e,currentTheme:t,onSave:n,onEvent:r}){const{authToken:o}=Oi(),i=Pe(D=>D.selectedLensId),{data:s,isLoading:a,isFetching:l,isError:c}=ZV(),{theme:u,setTheme:f}=bD(),h=Pe(D=>D.dashboard.globalStyle),{setDashboard:p,setDashboardWithFilterValues:v,setSelectedSheetId:b,setStyle:w,setOnSaveFunction:y,setLenses:_,setSelectedLensId:S,setInitStore:C}=Pe(D=>D.actions);Pe(D=>D.actions.setCustomCards);const E=Pe(D=>D.actions.setFilterValues),O=Pe(D=>D.actions.setThemeStyle),T=Pe(D=>D.actions.setDashboardTheme),M=Pe(D=>D.actions.setOnEvent);m.useEffect(()=>{o&&C()},[o,C]),m.useEffect(()=>{if(u){const D=AD(u);T(D)}},[u,T]),m.useEffect(()=>{t&&f(t)},[t,f]);const I=m.useCallback(()=>{const D=ll.cloneDeep(Lg),F=ll.merge(D,h);if(e){const j=ll.merge(F,e),K=rP(u,j);O(K),w(j)}else{const j=rP(u,F);O(j),w(Lg)}},[u,e,h,O,w]);return m.useEffect(()=>{s&&s.dashboard&&I()},[u,e,h,I,s]),m.useEffect(()=>{var ee;if(!s||!s.dashboard)return;const{dashboard:D,filterValues:F,defaultLensId:j,lenses:K}=s;v(D,F||[]),j&&S(j),K&&_(K),b((ee=D.sheets)==null?void 0:ee[0].id)},[s,p,b,E,i,_,v,S]),m.useEffect(()=>{n&&y(n),r&&M(r)},[n,y,r,M]),{isFetching:l,isLoading:a,isError:c}}function Am({className:e,...t}){return R.jsx("div",{className:_e("animate-pulse rounded-md bg-muted",e),...t})}const pw=L.forwardRef(({className:e,...t},n)=>R.jsx("div",{ref:n,className:_e("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));pw.displayName="Card";const km=L.forwardRef(({className:e,...t},n)=>R.jsx("div",{ref:n,className:_e("flex flex-col space-y-1.5 p-6",e),...t}));km.displayName="CardHeader";const bu=L.forwardRef(({className:e,...t},n)=>R.jsx("h3",{ref:n,className:_e("text-2xl font-semibold leading-none tracking-tight",e),...t}));bu.displayName="CardTitle";const gw=L.forwardRef(({className:e,...t},n)=>R.jsx("p",{ref:n,className:_e("text-sm text-muted-foreground",e),...t}));gw.displayName="CardDescription";const Mm=L.forwardRef(({className:e,...t},n)=>R.jsx("div",{ref:n,className:_e("px-6 pt-0",e),...t}));Mm.displayName="CardContent";const mw=L.forwardRef(({className:e,...t},n)=>R.jsx("div",{ref:n,className:_e("flex items-center p-6 pt-0",e),...t}));mw.displayName="CardFooter";function kD({className:e,customStyle:t,onSave:n,onEvent:r,LoadingComponent:o,ErrorComponent:i,onChartElementClicked:s,id:a,authToken:l,currentTheme:c,version:u,customCards:f,showAssistant:h,...p}){Pe(S=>S.selectedSheetId);const v=Pe(S=>S.themeStyle),b=Pe(S=>S.isSessionExpired),{isLoading:w,isError:y,isFetching:_}=eH({authToken:l,customStyle:t,currentTheme:c,onSave:n,onEvent:r});return w||!l?(r==null||r({type:"info",message:"Loading dashboard"}),o?R.jsx(o,{message:"loading"}):R.jsx("div",{className:"flex items-center gap-3",children:R.jsx(Am,{className:"h-1 w-full dark:h-[2px]"})})):y?(r==null||r({type:"error",message:"Error fetching dashboard"}),i?(console.log("Error fetching dashboard"),R.jsx(i,{})):R.jsx("div",{children:"Error"})):b?(r==null||r({type:"error",message:"Session Expired"}),R.jsx("div",{className:"flex h-full items-center justify-center",children:R.jsxs("div",{className:"space-y-4 rounded-md border border-muted p-10",children:[R.jsx(bu,{children:"Session Expired"}),R.jsx("p",{className:"text-muted-foreground",children:"Please refresh your page to continue."})]})})):R.jsx("div",{className:_e("flex h-full flex-col justify-between",v==null?void 0:v.dashboardPanel,e),role:"dashboard-panel",...p})}function ce(){return ce=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ce.apply(this,arguments)}function Me(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function tr(e,t=[]){let n=[];function r(i,s){const a=m.createContext(s),l=n.length;n=[...n,s];function c(f){const{scope:h,children:p,...v}=f,b=(h==null?void 0:h[e][l])||a,w=m.useMemo(()=>v,Object.values(v));return m.createElement(b.Provider,{value:w},p)}function u(f,h){const p=(h==null?void 0:h[e][l])||a,v=m.useContext(p);if(v)return v;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${i}\``)}return c.displayName=i+"Provider",[c,u]}const o=()=>{const i=n.map(s=>m.createContext(s));return function(a){const l=(a==null?void 0:a[e])||i;return m.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,tH(o,...t)]}function tH(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((a,{useScope:l,scopeName:c})=>{const f=l(i)[`__scope${c}`];return{...a,...f}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function nH(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function fs(...e){return t=>e.forEach(n=>nH(n,t))}function _t(...e){return m.useCallback(fs(...e),e)}const yx=m.forwardRef((e,t)=>{const{children:n,...r}=e,o=m.Children.toArray(n),i=o.find(oH);if(i){const s=i.props.children,a=o.map(l=>l===i?m.Children.count(s)>1?m.Children.only(null):m.isValidElement(s)?s.props.children:null:l);return m.createElement(xx,ce({},r,{ref:t}),m.isValidElement(s)?m.cloneElement(s,void 0,a):null)}return m.createElement(xx,ce({},r,{ref:t}),n)});yx.displayName="Slot";const xx=m.forwardRef((e,t)=>{const{children:n,...r}=e;return m.isValidElement(n)?m.cloneElement(n,{...iH(r,n.props),ref:t?fs(t,n.ref):n.ref}):m.Children.count(n)>1?m.Children.only(null):null});xx.displayName="SlotClone";const rH=({children:e})=>m.createElement(m.Fragment,null,e);function oH(e){return m.isValidElement(e)&&e.type===rH}function iH(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{i(...a),o(...a)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Im(e){const t=e+"CollectionProvider",[n,r]=tr(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=p=>{const{scope:v,children:b}=p,w=m.useRef(null),y=m.useRef(new Map).current;return m.createElement(o,{scope:v,itemMap:y,collectionRef:w},b)},a=e+"CollectionSlot",l=m.forwardRef((p,v)=>{const{scope:b,children:w}=p,y=i(a,b),_=_t(v,y.collectionRef);return m.createElement(yx,{ref:_},w)}),c=e+"CollectionItemSlot",u="data-radix-collection-item",f=m.forwardRef((p,v)=>{const{scope:b,children:w,...y}=p,_=m.useRef(null),S=_t(v,_),C=i(c,b);return m.useEffect(()=>(C.itemMap.set(_,{ref:_,...y}),()=>void C.itemMap.delete(_))),m.createElement(yx,{[u]:"",ref:S},w)});function h(p){const v=i(e+"CollectionConsumer",p);return m.useCallback(()=>{const w=v.collectionRef.current;if(!w)return[];const y=Array.from(w.querySelectorAll(`[${u}]`));return Array.from(v.itemMap.values()).sort((C,E)=>y.indexOf(C.ref.current)-y.indexOf(E.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:s,Slot:l,ItemSlot:f},h,r]}const ur=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{},sH=L.useId||(()=>{});let aH=0;function Zo(e){const[t,n]=L.useState(sH());return ur(()=>{e||n(r=>r??String(aH++))},[e]),e||(t?`radix-${t}`:"")}const MD=m.forwardRef((e,t)=>{const{children:n,...r}=e,o=m.Children.toArray(n),i=o.find(cH);if(i){const s=i.props.children,a=o.map(l=>l===i?m.Children.count(s)>1?m.Children.only(null):m.isValidElement(s)?s.props.children:null:l);return m.createElement(wx,ce({},r,{ref:t}),m.isValidElement(s)?m.cloneElement(s,void 0,a):null)}return m.createElement(wx,ce({},r,{ref:t}),n)});MD.displayName="Slot";const wx=m.forwardRef((e,t)=>{const{children:n,...r}=e;return m.isValidElement(n)?m.cloneElement(n,{...uH(r,n.props),ref:t?fs(t,n.ref):n.ref}):m.Children.count(n)>1?m.Children.only(null):null});wx.displayName="SlotClone";const lH=({children:e})=>m.createElement(m.Fragment,null,e);function cH(e){return m.isValidElement(e)&&e.type===lH}function uH(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{i(...a),o(...a)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const dH=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Qe=dH.reduce((e,t)=>{const n=m.forwardRef((r,o)=>{const{asChild:i,...s}=r,a=i?MD:t;return m.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),m.createElement(a,ce({},s,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function ID(e,t){e&&Cr.flushSync(()=>e.dispatchEvent(t))}function jn(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function _r({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=fH({defaultProp:t,onChange:n}),i=e!==void 0,s=i?e:r,a=jn(n),l=m.useCallback(c=>{if(i){const f=typeof c=="function"?c(e):c;f!==e&&a(f)}else o(c)},[i,e,o,a]);return[s,l]}function fH({defaultProp:e,onChange:t}){const n=m.useState(e),[r]=n,o=m.useRef(r),i=jn(t);return m.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}const hH=m.createContext(void 0);function Pl(e){const t=m.useContext(hH);return e||t||"ltr"}const l0="rovingFocusGroup.onEntryFocus",pH={bubbles:!1,cancelable:!0},vw="RovingFocusGroup",[_x,ND,gH]=Im(vw),[mH,yu]=tr(vw,[gH]),[vH,bH]=mH(vw),yH=m.forwardRef((e,t)=>m.createElement(_x.Provider,{scope:e.__scopeRovingFocusGroup},m.createElement(_x.Slot,{scope:e.__scopeRovingFocusGroup},m.createElement(xH,ce({},e,{ref:t}))))),xH=m.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:s,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:l,onEntryFocus:c,...u}=e,f=m.useRef(null),h=_t(t,f),p=Pl(i),[v=null,b]=_r({prop:s,defaultProp:a,onChange:l}),[w,y]=m.useState(!1),_=jn(c),S=ND(n),C=m.useRef(!1),[E,O]=m.useState(0);return m.useEffect(()=>{const T=f.current;if(T)return T.addEventListener(l0,_),()=>T.removeEventListener(l0,_)},[_]),m.createElement(vH,{scope:n,orientation:r,dir:p,loop:o,currentTabStopId:v,onItemFocus:m.useCallback(T=>b(T),[b]),onItemShiftTab:m.useCallback(()=>y(!0),[]),onFocusableItemAdd:m.useCallback(()=>O(T=>T+1),[]),onFocusableItemRemove:m.useCallback(()=>O(T=>T-1),[])},m.createElement(Qe.div,ce({tabIndex:w||E===0?-1:0,"data-orientation":r},u,{ref:h,style:{outline:"none",...e.style},onMouseDown:Me(e.onMouseDown,()=>{C.current=!0}),onFocus:Me(e.onFocus,T=>{const M=!C.current;if(T.target===T.currentTarget&&M&&!w){const I=new CustomEvent(l0,pH);if(T.currentTarget.dispatchEvent(I),!I.defaultPrevented){const D=S().filter(H=>H.focusable),F=D.find(H=>H.active),j=D.find(H=>H.id===v),ee=[F,j,...D].filter(Boolean).map(H=>H.ref.current);LD(ee)}}C.current=!1}),onBlur:Me(e.onBlur,()=>y(!1))})))}),wH="RovingFocusGroupItem",_H=m.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,...s}=e,a=Zo(),l=i||a,c=bH(wH,n),u=c.currentTabStopId===l,f=ND(n),{onFocusableItemAdd:h,onFocusableItemRemove:p}=c;return m.useEffect(()=>{if(r)return h(),()=>p()},[r,h,p]),m.createElement(_x.ItemSlot,{scope:n,id:l,focusable:r,active:o},m.createElement(Qe.span,ce({tabIndex:u?0:-1,"data-orientation":c.orientation},s,{ref:t,onMouseDown:Me(e.onMouseDown,v=>{r?c.onItemFocus(l):v.preventDefault()}),onFocus:Me(e.onFocus,()=>c.onItemFocus(l)),onKeyDown:Me(e.onKeyDown,v=>{if(v.key==="Tab"&&v.shiftKey){c.onItemShiftTab();return}if(v.target!==v.currentTarget)return;const b=EH(v,c.orientation,c.dir);if(b!==void 0){v.preventDefault();let y=f().filter(_=>_.focusable).map(_=>_.ref.current);if(b==="last")y.reverse();else if(b==="prev"||b==="next"){b==="prev"&&y.reverse();const _=y.indexOf(v.currentTarget);y=c.loop?RH(y,_+1):y.slice(_+1)}setTimeout(()=>LD(y))}})})))}),SH={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function CH(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function EH(e,t,n){const r=CH(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return SH[r]}function LD(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function RH(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const bw=yH,yw=_H;function PH(e,t){return m.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const nr=e=>{const{present:t,children:n}=e,r=OH(t),o=typeof n=="function"?n({present:r.isPresent}):m.Children.only(n),i=_t(r.ref,o.ref);return typeof n=="function"||r.isPresent?m.cloneElement(o,{ref:i}):null};nr.displayName="Presence";function OH(e){const[t,n]=m.useState(),r=m.useRef({}),o=m.useRef(e),i=m.useRef("none"),s=e?"mounted":"unmounted",[a,l]=PH(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect(()=>{const c=hp(r.current);i.current=a==="mounted"?c:"none"},[a]),ur(()=>{const c=r.current,u=o.current;if(u!==e){const h=i.current,p=hp(c);e?l("MOUNT"):p==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&h!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),ur(()=>{if(t){const c=f=>{const p=hp(r.current).includes(f.animationName);f.target===t&&p&&Cr.flushSync(()=>l("ANIMATION_END"))},u=f=>{f.target===t&&(i.current=hp(r.current))};return t.addEventListener("animationstart",u),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{t.removeEventListener("animationstart",u),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:m.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function hp(e){return(e==null?void 0:e.animationName)||"none"}const FD="Tabs",[$H,f1e]=tr(FD,[yu]),jD=yu(),[TH,xw]=$H(FD),DH=m.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:i,orientation:s="horizontal",dir:a,activationMode:l="automatic",...c}=e,u=Pl(a),[f,h]=_r({prop:r,onChange:o,defaultProp:i});return m.createElement(TH,{scope:n,baseId:Zo(),value:f,onValueChange:h,orientation:s,dir:u,activationMode:l},m.createElement(Qe.div,ce({dir:u,"data-orientation":s},c,{ref:t})))}),AH="TabsList",kH=m.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,i=xw(AH,n),s=jD(n);return m.createElement(bw,ce({asChild:!0},s,{orientation:i.orientation,dir:i.dir,loop:r}),m.createElement(Qe.div,ce({role:"tablist","aria-orientation":i.orientation},o,{ref:t})))}),MH="TabsTrigger",IH=m.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...i}=e,s=xw(MH,n),a=jD(n),l=zD(s.baseId,r),c=BD(s.baseId,r),u=r===s.value;return m.createElement(yw,ce({asChild:!0},a,{focusable:!o,active:u}),m.createElement(Qe.button,ce({type:"button",role:"tab","aria-selected":u,"aria-controls":c,"data-state":u?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:l},i,{ref:t,onMouseDown:Me(e.onMouseDown,f=>{!o&&f.button===0&&f.ctrlKey===!1?s.onValueChange(r):f.preventDefault()}),onKeyDown:Me(e.onKeyDown,f=>{[" ","Enter"].includes(f.key)&&s.onValueChange(r)}),onFocus:Me(e.onFocus,()=>{const f=s.activationMode!=="manual";!u&&!o&&f&&s.onValueChange(r)})})))}),NH="TabsContent",LH=m.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:i,...s}=e,a=xw(NH,n),l=zD(a.baseId,r),c=BD(a.baseId,r),u=r===a.value,f=m.useRef(u);return m.useEffect(()=>{const h=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(h)},[]),m.createElement(nr,{present:o||u},({present:h})=>m.createElement(Qe.div,ce({"data-state":u?"active":"inactive","data-orientation":a.orientation,role:"tabpanel","aria-labelledby":l,hidden:!h,id:c,tabIndex:0},s,{ref:t,style:{...e.style,animationDuration:f.current?"0s":void 0}}),h&&i))});function zD(e,t){return`${e}-trigger-${t}`}function BD(e,t){return`${e}-content-${t}`}const FH=DH,VD=kH,HD=IH,WD=LH,ww=FH,Nm=L.forwardRef(({className:e,...t},n)=>R.jsx(VD,{ref:n,className:_e("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...t}));Nm.displayName=VD.displayName;const Lm=L.forwardRef(({className:e,...t},n)=>R.jsx(HD,{ref:n,className:_e("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",e),...t}));Lm.displayName=HD.displayName;const _w=L.forwardRef(({className:e,...t},n)=>R.jsx(WD,{ref:n,className:_e("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));_w.displayName=WD.displayName;var UD={exports:{}},qf={},Sx={exports:{}};(function(e,t){(function(n,r){r(t)})(qs,function(n){function r(Q){return function(ie,ve,Y,be,Se,$e,Te){return Q(ie,ve,Te)}}function o(Q){return function(ie,ve,Y,be){if(!ie||!ve||typeof ie!="object"||typeof ve!="object")return Q(ie,ve,Y,be);var Se=be.get(ie),$e=be.get(ve);if(Se&&$e)return Se===ve&&$e===ie;be.set(ie,ve),be.set(ve,ie);var Te=Q(ie,ve,Y,be);return be.delete(ie),be.delete(ve),Te}}function i(Q,J){var ie={};for(var ve in Q)ie[ve]=Q[ve];for(var ve in J)ie[ve]=J[ve];return ie}function s(Q){return Q.constructor===Object||Q.constructor==null}function a(Q){return typeof Q.then=="function"}function l(Q,J){return Q===J||Q!==Q&&J!==J}var c="[object Arguments]",u="[object Boolean]",f="[object Date]",h="[object RegExp]",p="[object Map]",v="[object Number]",b="[object Object]",w="[object Set]",y="[object String]",_=Object.prototype.toString;function S(Q){var J=Q.areArraysEqual,ie=Q.areDatesEqual,ve=Q.areMapsEqual,Y=Q.areObjectsEqual,be=Q.areRegExpsEqual,Se=Q.areSetsEqual,$e=Q.createIsNestedEqual,Te=$e(Ue);function Ue(Be,Ie,Ke){if(Be===Ie)return!0;if(!Be||!Ie||typeof Be!="object"||typeof Ie!="object")return Be!==Be&&Ie!==Ie;if(s(Be)&&s(Ie))return Y(Be,Ie,Te,Ke);var lt=Array.isArray(Be),It=Array.isArray(Ie);if(lt||It)return lt===It&&J(Be,Ie,Te,Ke);var Dt=_.call(Be);return Dt!==_.call(Ie)?!1:Dt===f?ie(Be,Ie,Te,Ke):Dt===h?be(Be,Ie,Te,Ke):Dt===p?ve(Be,Ie,Te,Ke):Dt===w?Se(Be,Ie,Te,Ke):Dt===b||Dt===c?a(Be)||a(Ie)?!1:Y(Be,Ie,Te,Ke):Dt===u||Dt===v||Dt===y?l(Be.valueOf(),Ie.valueOf()):!1}return Ue}function C(Q,J,ie,ve){var Y=Q.length;if(J.length!==Y)return!1;for(;Y-- >0;)if(!ie(Q[Y],J[Y],Y,Y,Q,J,ve))return!1;return!0}var E=o(C);function O(Q,J){return l(Q.valueOf(),J.valueOf())}function T(Q,J,ie,ve){var Y=Q.size===J.size;if(!Y)return!1;if(!Q.size)return!0;var be={},Se=0;return Q.forEach(function($e,Te){if(Y){var Ue=!1,Be=0;J.forEach(function(Ie,Ke){!Ue&&!be[Be]&&(Ue=ie(Te,Ke,Se,Be,Q,J,ve)&&ie($e,Ie,Te,Ke,Q,J,ve))&&(be[Be]=!0),Be++}),Se++,Y=Ue}}),Y}var M=o(T),I="_owner",D=Object.prototype.hasOwnProperty;function F(Q,J,ie,ve){var Y=Object.keys(Q),be=Y.length;if(Object.keys(J).length!==be)return!1;for(var Se;be-- >0;){if(Se=Y[be],Se===I){var $e=!!Q.$$typeof,Te=!!J.$$typeof;if(($e||Te)&&$e!==Te)return!1}if(!D.call(J,Se)||!ie(Q[Se],J[Se],Se,Se,Q,J,ve))return!1}return!0}var j=o(F);function K(Q,J){return Q.source===J.source&&Q.flags===J.flags}function ee(Q,J,ie,ve){var Y=Q.size===J.size;if(!Y)return!1;if(!Q.size)return!0;var be={};return Q.forEach(function(Se,$e){if(Y){var Te=!1,Ue=0;J.forEach(function(Be,Ie){!Te&&!be[Ue]&&(Te=ie(Se,Be,$e,Ie,Q,J,ve))&&(be[Ue]=!0),Ue++}),Y=Te}}),Y}var H=o(ee),Z=Object.freeze({areArraysEqual:C,areDatesEqual:O,areMapsEqual:T,areObjectsEqual:F,areRegExpsEqual:K,areSetsEqual:ee,createIsNestedEqual:r}),X=Object.freeze({areArraysEqual:E,areDatesEqual:O,areMapsEqual:M,areObjectsEqual:j,areRegExpsEqual:K,areSetsEqual:H,createIsNestedEqual:r}),te=S(Z);function W(Q,J){return te(Q,J,void 0)}var $=S(i(Z,{createIsNestedEqual:function(){return l}}));function V(Q,J){return $(Q,J,void 0)}var U=S(X);function N(Q,J){return U(Q,J,new WeakMap)}var re=S(i(X,{createIsNestedEqual:function(){return l}}));function ue(Q,J){return re(Q,J,new WeakMap)}function de(Q){return S(i(Z,Q(Z)))}function pe(Q){var J=S(i(X,Q(X)));return function(ie,ve,Y){return Y===void 0&&(Y=new WeakMap),J(ie,ve,Y)}}n.circularDeepEqual=N,n.circularShallowEqual=ue,n.createCustomCircularEqual=pe,n.createCustomEqual=de,n.deepEqual=W,n.sameValueZeroEqual=l,n.shallowEqual=V,Object.defineProperty(n,"__esModule",{value:!0})})})(Sx,Sx.exports);var Sw=Sx.exports;const Cw=rw(Kz);var Pt={},jH=function(t,n,r){return t===n?!0:t.className===n.className&&r(t.style,n.style)&&t.width===n.width&&t.autoSize===n.autoSize&&t.cols===n.cols&&t.draggableCancel===n.draggableCancel&&t.draggableHandle===n.draggableHandle&&r(t.verticalCompact,n.verticalCompact)&&r(t.compactType,n.compactType)&&r(t.layout,n.layout)&&r(t.margin,n.margin)&&r(t.containerPadding,n.containerPadding)&&t.rowHeight===n.rowHeight&&t.maxRows===n.maxRows&&t.isBounded===n.isBounded&&t.isDraggable===n.isDraggable&&t.isResizable===n.isResizable&&t.allowOverlap===n.allowOverlap&&t.preventCollision===n.preventCollision&&t.useCSSTransforms===n.useCSSTransforms&&t.transformScale===n.transformScale&&t.isDroppable===n.isDroppable&&r(t.resizeHandles,n.resizeHandles)&&r(t.resizeHandle,n.resizeHandle)&&t.onLayoutChange===n.onLayoutChange&&t.onDragStart===n.onDragStart&&t.onDrag===n.onDrag&&t.onDragStop===n.onDragStop&&t.onResizeStart===n.onResizeStart&&t.onResize===n.onResize&&t.onResizeStop===n.onResizeStop&&t.onDrop===n.onDrop&&r(t.droppingItem,n.droppingItem)&&r(t.innerRef,n.innerRef)};Object.defineProperty(Pt,"__esModule",{value:!0});Pt.bottom=Ew;Pt.childrenEqual=HH;Pt.cloneLayout=qD;Pt.cloneLayoutItem=cl;Pt.collides=Fm;Pt.compact=YD;Pt.compactItem=KD;Pt.compactType=rW;Pt.correctBounds=XD;Pt.fastPositionEqual=UH;Pt.fastRGLPropsEqual=void 0;Pt.getAllCollisions=QD;Pt.getFirstCollision=Xa;Pt.getLayoutItem=Rw;Pt.getStatics=Pw;Pt.modifyLayout=GD;Pt.moveElement=yd;Pt.moveElementAwayFromCollision=Ex;Pt.noop=void 0;Pt.perc=GH;Pt.resizeItemInDirection=ZH;Pt.setTopLeft=tW;Pt.setTransform=eW;Pt.sortLayoutItems=kw;Pt.sortLayoutItemsByColRow=nA;Pt.sortLayoutItemsByRowCol=tA;Pt.synchronizeLayoutWithChildren=nW;Pt.validateLayout=rA;Pt.withLayoutItem=VH;var oP=Sw,bd=zH(m);function zH(e){return e&&e.__esModule?e:{default:e}}const BH=process.env.NODE_ENV==="production";function Ew(e){let t=0,n;for(let r=0,o=e.length;r<o;r++)n=e[r].y+e[r].h,n>t&&(t=n);return t}function qD(e){const t=Array(e.length);for(let n=0,r=e.length;n<r;n++)t[n]=cl(e[n]);return t}function GD(e,t){const n=Array(e.length);for(let r=0,o=e.length;r<o;r++)t.i===e[r].i?n[r]=t:n[r]=e[r];return n}function VH(e,t,n){let r=Rw(e,t);return r?(r=n(cl(r)),e=GD(e,r),[e,r]):[e,null]}function cl(e){return{w:e.w,h:e.h,x:e.x,y:e.y,i:e.i,minW:e.minW,maxW:e.maxW,minH:e.minH,maxH:e.maxH,moved:!!e.moved,static:!!e.static,isDraggable:e.isDraggable,isResizable:e.isResizable,resizeHandles:e.resizeHandles,isBounded:e.isBounded}}function HH(e,t){return(0,oP.deepEqual)(bd.default.Children.map(e,n=>n==null?void 0:n.key),bd.default.Children.map(t,n=>n==null?void 0:n.key))&&(0,oP.deepEqual)(bd.default.Children.map(e,n=>n==null?void 0:n.props["data-grid"]),bd.default.Children.map(t,n=>n==null?void 0:n.props["data-grid"]))}const WH=jH;Pt.fastRGLPropsEqual=WH;function UH(e,t){return e.left===t.left&&e.top===t.top&&e.width===t.width&&e.height===t.height}function Fm(e,t){return!(e.i===t.i||e.x+e.w<=t.x||e.x>=t.x+t.w||e.y+e.h<=t.y||e.y>=t.y+t.h)}function YD(e,t,n,r){const o=Pw(e),i=kw(e,t),s=Array(e.length);for(let a=0,l=i.length;a<l;a++){let c=cl(i[a]);c.static||(c=KD(o,c,t,n,i,r),o.push(c)),s[e.indexOf(i[a])]=c,c.moved=!1}return s}const qH={x:"w",y:"h"};function Cx(e,t,n,r){const o=qH[r];t[r]+=1;const i=e.map(s=>s.i).indexOf(t.i);for(let s=i+1;s<e.length;s++){const a=e[s];if(!a.static){if(a.y>t.y+t.h)break;Fm(t,a)&&Cx(e,a,n+t[o],r)}}t[r]=n}function KD(e,t,n,r,o,i){const s=n==="vertical",a=n==="horizontal";if(s)for(t.y=Math.min(Ew(e),t.y);t.y>0&&!Xa(e,t);)t.y--;else if(a)for(;t.x>0&&!Xa(e,t);)t.x--;let l;for(;(l=Xa(e,t))&&!(n===null&&i);)if(a?Cx(o,t,l.x+l.w,"x"):Cx(o,t,l.y+l.h,"y"),a&&t.x+t.w>r)for(t.x=r-t.w,t.y++;t.x>0&&!Xa(e,t);)t.x--;return t.y=Math.max(t.y,0),t.x=Math.max(t.x,0),t}function XD(e,t){const n=Pw(e);for(let r=0,o=e.length;r<o;r++){const i=e[r];if(i.x+i.w>t.cols&&(i.x=t.cols-i.w),i.x<0&&(i.x=0,i.w=t.cols),!i.static)n.push(i);else for(;Xa(n,i);)i.y++}return e}function Rw(e,t){for(let n=0,r=e.length;n<r;n++)if(e[n].i===t)return e[n]}function Xa(e,t){for(let n=0,r=e.length;n<r;n++)if(Fm(e[n],t))return e[n]}function QD(e,t){return e.filter(n=>Fm(n,t))}function Pw(e){return e.filter(t=>t.static)}function yd(e,t,n,r,o,i,s,a,l){if(t.static&&t.isDraggable!==!0||t.y===r&&t.x===n)return e;"Moving element ".concat(t.i," to [").concat(String(n),",").concat(String(r),"] from [").concat(t.x,",").concat(t.y,"]");const c=t.x,u=t.y;typeof n=="number"&&(t.x=n),typeof r=="number"&&(t.y=r),t.moved=!0;let f=kw(e,s);(s==="vertical"&&typeof r=="number"?u>=r:s==="horizontal"&&typeof n=="number"?c>=n:!1)&&(f=f.reverse());const p=QD(f,t),v=p.length>0;if(v&&l)return qD(e);if(v&&i)return"Collision prevented on ".concat(t.i,", reverting."),t.x=c,t.y=u,t.moved=!1,e;for(let b=0,w=p.length;b<w;b++){const y=p[b];"Resolving collision between ".concat(t.i," at [").concat(t.x,",").concat(t.y,"] and ").concat(y.i," at [").concat(y.x,",").concat(y.y,"]"),!y.moved&&(y.static?e=Ex(e,y,t,o,s):e=Ex(e,t,y,o,s))}return e}function Ex(e,t,n,r,o,i){const s=o==="horizontal",a=o==="vertical",l=t.static;if(r){r=!1;const f={x:s?Math.max(t.x-n.w,0):n.x,y:a?Math.max(t.y-n.h,0):n.y,w:n.w,h:n.h,i:"-1"},h=Xa(e,f),p=h&&h.y+h.h>t.y,v=h&&t.x+t.w>h.x;if(h){if(p&&a)return yd(e,n,void 0,t.y+1,r,l,o);if(p&&o==null)return t.y=n.y,n.y=n.y+n.h,e;if(v&&s)return yd(e,t,n.x,void 0,r,l,o)}else return"Doing reverse collision on ".concat(n.i," up to [").concat(f.x,",").concat(f.y,"]."),yd(e,n,s?f.x:void 0,a?f.y:void 0,r,l,o)}const c=s?n.x+1:void 0,u=a?n.y+1:void 0;return c==null&&u==null?e:yd(e,n,s?n.x+1:void 0,a?n.y+1:void 0,r,l,o)}function GH(e){return e*100+"%"}const JD=(e,t,n,r)=>e+n>r?t:n,ZD=(e,t,n)=>e<0?t:n,eA=e=>Math.max(0,e),Ow=e=>Math.max(0,e),$w=(e,t,n)=>{let{left:r,height:o,width:i}=t;const s=e.top-(o-e.height);return{left:r,width:i,height:ZD(s,e.height,o),top:Ow(s)}},Tw=(e,t,n)=>{let{top:r,left:o,height:i,width:s}=t;return{top:r,height:i,width:JD(e.left,e.width,s,n),left:eA(o)}},Dw=(e,t,n)=>{let{top:r,height:o,width:i}=t;const s=e.left-(i-e.width);return{height:o,width:s<0?e.width:JD(e.left,e.width,i,n),top:Ow(r),left:eA(s)}},Aw=(e,t,n)=>{let{top:r,left:o,height:i,width:s}=t;return{width:s,left:o,height:ZD(r,e.height,i),top:Ow(r)}},YH=function(){return $w(arguments.length<=0?void 0:arguments[0],Tw(...arguments))},KH=function(){return $w(arguments.length<=0?void 0:arguments[0],Dw(...arguments))},XH=function(){return Aw(arguments.length<=0?void 0:arguments[0],Tw(...arguments))},QH=function(){return Aw(arguments.length<=0?void 0:arguments[0],Dw(...arguments))},JH={n:$w,ne:YH,e:Tw,se:XH,s:Aw,sw:QH,w:Dw,nw:KH};function ZH(e,t,n,r){const o=JH[e];return o?o(t,{...t,...n},r):n}function eW(e){let{top:t,left:n,width:r,height:o}=e;const i="translate(".concat(n,"px,").concat(t,"px)");return{transform:i,WebkitTransform:i,MozTransform:i,msTransform:i,OTransform:i,width:"".concat(r,"px"),height:"".concat(o,"px"),position:"absolute"}}function tW(e){let{top:t,left:n,width:r,height:o}=e;return{top:"".concat(t,"px"),left:"".concat(n,"px"),width:"".concat(r,"px"),height:"".concat(o,"px"),position:"absolute"}}function kw(e,t){return t==="horizontal"?nA(e):t==="vertical"?tA(e):e}function tA(e){return e.slice(0).sort(function(t,n){return t.y>n.y||t.y===n.y&&t.x>n.x?1:t.y===n.y&&t.x===n.x?0:-1})}function nA(e){return e.slice(0).sort(function(t,n){return t.x>n.x||t.x===n.x&&t.y>n.y?1:-1})}function nW(e,t,n,r,o){e=e||[];const i=[];bd.default.Children.forEach(t,a=>{if((a==null?void 0:a.key)==null)return;const l=Rw(e,String(a.key)),c=a.props["data-grid"];l&&c==null?i.push(cl(l)):c?(BH||rA([c],"ReactGridLayout.children"),i.push(cl({...c,i:a.key}))):i.push(cl({w:1,h:1,x:0,y:Ew(i),i:String(a.key)}))});const s=XD(i,{cols:n});return o?s:YD(s,r,n)}function rA(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Layout";const n=["x","y","w","h"];if(!Array.isArray(e))throw new Error(t+" must be an array!");for(let r=0,o=e.length;r<o;r++){const i=e[r];for(let s=0;s<n.length;s++)if(typeof i[n[s]]!="number")throw new Error("ReactGridLayout: "+t+"["+r+"]."+n[s]+" must be a number!")}}function rW(e){const{verticalCompact:t,compactType:n}=e||{};return t===!1?null:n}const oW=()=>{};Pt.noop=oW;var $i={};Object.defineProperty($i,"__esModule",{value:!0});$i.calcGridColWidth=jm;$i.calcGridItemPosition=iW;$i.calcGridItemWHPx=Rx;$i.calcWH=aW;$i.calcXY=sW;$i.clamp=Qa;function jm(e){const{margin:t,containerPadding:n,containerWidth:r,cols:o}=e;return(r-t[0]*(o-1)-n[0]*2)/o}function Rx(e,t,n){return Number.isFinite(e)?Math.round(t*e+Math.max(0,e-1)*n):e}function iW(e,t,n,r,o,i){const{margin:s,containerPadding:a,rowHeight:l}=e,c=jm(e),u={};return i&&i.resizing?(u.width=Math.round(i.resizing.width),u.height=Math.round(i.resizing.height)):(u.width=Rx(r,c,s[0]),u.height=Rx(o,l,s[1])),i&&i.dragging?(u.top=Math.round(i.dragging.top),u.left=Math.round(i.dragging.left)):i&&i.resizing&&typeof i.resizing.top=="number"&&typeof i.resizing.left=="number"?(u.top=Math.round(i.resizing.top),u.left=Math.round(i.resizing.left)):(u.top=Math.round((l+s[1])*n+a[1]),u.left=Math.round((c+s[0])*t+a[0])),u}function sW(e,t,n,r,o){const{margin:i,cols:s,rowHeight:a,maxRows:l}=e,c=jm(e);let u=Math.round((n-i[0])/(c+i[0])),f=Math.round((t-i[1])/(a+i[1]));return u=Qa(u,0,s-r),f=Qa(f,0,l-o),{x:u,y:f}}function aW(e,t,n,r,o,i){const{margin:s,maxRows:a,cols:l,rowHeight:c}=e,u=jm(e);let f=Math.round((t+s[0])/(u+s[0])),h=Math.round((n+s[1])/(c+s[1])),p=Qa(f,0,l-r),v=Qa(h,0,a-o);return["sw","w","nw"].indexOf(i)!==-1&&(p=Qa(f,0,l)),["nw","n","ne"].indexOf(i)!==-1&&(v=Qa(h,0,a)),{w:p,h:v}}function Qa(e,t,n){return Math.max(Math.min(e,n),t)}var zm={},Px={exports:{}},c0,iP;function Mw(){if(iP)return c0;iP=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return c0=e,c0}var u0,sP;function lW(){if(sP)return u0;sP=1;var e=Mw();function t(){}function n(){}return n.resetWarningCache=t,u0=function(){function r(s,a,l,c,u,f){if(f!==e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}r.isRequired=r;function o(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},u0}var pp={exports:{}},qt={};/** @license React v16.13.1
89
89
  * react-is.development.js
90
90
  *
91
91
  * Copyright (c) Facebook, Inc. and its affiliates.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../chunks/index-lHh_nXy9.js");require("react");require("react-dom");exports.Dashboard=e.Dashboard;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../chunks/index-vW_7Osti.js");require("react");require("react-dom");exports.Dashboard=e.Dashboard;
@@ -1,4 +1,4 @@
1
- import { D as p } from "../chunks/index-XCmfOUgI.js";
1
+ import { D as p } from "../chunks/index-uCOEDYik.js";
2
2
  import "react";
3
3
  import "react-dom";
4
4
  export {
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/index-lHh_nXy9.js"),n=require("./chunks/dashboard-plus-kjtK1yiD.js"),I=require("react");require("react-dom");function N({card:t,footer:u,className:c,...h}){const{customCards:r}=e.useSemaphorContext(),m=I.useRef(null),{isError:p,isLoading:i,isFetching:a,cfg:x,visualKey:C,handleDatapointClick:f}=e.useDashboardCard(t),l=e.useDashboardStore(s=>s.themeStyle),d=e.useDashboardStore(s=>s.selectedSheetId),E=e.useDashboardStore(s=>s.selectedCardId),j=e.useDashboardStore(s=>s.isDashboardEditing),{setCardTitle:D,setCardDescription:g,setSelectedCardId:b}=e.useDashboardActions();function S(s){s.stopPropagation(),b(d,t.id)}function T(){if(r&&r.length>0){const s=r.find(o=>o.cardId===t.id);if(s&&s.replaceDefault){const o=s.content;if(o)return e.jsxRuntimeExports.jsx(o,{card:t})}}return t.type==="kpi"?t.data&&t.data.length>0&&e.jsxRuntimeExports.jsx(e.KPICard,{isLoading:i||a,card:t}):y}function R(){if(p)return e.jsxRuntimeExports.jsx("p",{className:"text-sm",children:"Oops! It seems like something went wrong. Please review your connection or filters."});if(t.type==="table"&&t.data&&t.data.length>0)return e.jsxRuntimeExports.jsxs(e.ScrollArea,{children:[e.jsxRuntimeExports.jsx(e.TableVisual,{card:t,data:t.data}),e.jsxRuntimeExports.jsx(e.ScrollBar,{orientation:"horizontal"})]});if(r&&r.length>0){const s=r.find(o=>o.cardId===t.id);if(s&&s.content){const o=s.content;return e.jsxRuntimeExports.jsx(o,{card:t})}}if(x)return e.jsxRuntimeExports.jsx(e.ChartJsVisual,{cfg:x,onDatapointClick:f},C)}function A(){if(r&&r.length>0){const s=r.find(o=>o.cardId===t.id);if(s&&s.footer){const o=s.footer;if(o)return e.jsxRuntimeExports.jsx(o,{card:t})}}return u||null}if(!t.id)return null;const y=e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsxs(e.CardHeader,{className:"pb-4",children:[e.jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxRuntimeExports.jsx(e.Editable,{text:t.title,onSave:s=>D(d,t.id,s),children:e.jsxRuntimeExports.jsx(e.CardTitle,{className:"text-base",children:t.title})}),t.refreshInterval&&e.jsxRuntimeExports.jsxs(e.Tooltip,{children:[e.jsxRuntimeExports.jsx(e.TooltipTrigger,{className:"pr-1",children:e.jsxRuntimeExports.jsx("div",{className:e.cn("h-2 w-2 rounded-full bg-green-500 transition-opacity",{"opacity-10":i||a})})}),e.jsxRuntimeExports.jsx(e.TooltipContent,{side:"right",align:"center",children:e.jsxRuntimeExports.jsx("p",{className:"text-xs",children:`Realtime (${t==null?void 0:t.refreshInterval})`})})]}),!t.refreshInterval&&(i||a)&&e.jsxRuntimeExports.jsx(n.LoaderCircle,{className:"h-4 w-4 animate-spin text-muted-foreground"})]}),e.jsxRuntimeExports.jsx(e.Editable,{text:(t==null?void 0:t.description)||"",onSave:s=>g(d,t.id,s),children:e.jsxRuntimeExports.jsxs(e.CardDescription,{children:[" ",t.description]})})]}),e.jsxRuntimeExports.jsx(e.CardContent,{className:"relative flex grow flex-col overflow-auto pb-0",children:R()}),e.jsxRuntimeExports.jsx(e.CardFooter,{children:A()})]});return e.jsxRuntimeExports.jsx(e.Card,{tabIndex:-1,ref:m,role:"dashboard-card",onClick:S,className:e.cn("relative flex h-full flex-col rounded-sm",{"border-dashed border-foreground/50":E===t.id&&j},l==null?void 0:l.dashboardCard,c),...h,children:T()})}exports.BOOLEAN_DATA_TYPES=e.BOOLEAN_DATA_TYPES;exports.DATE_DATA_TYPES=e.DATE_DATA_TYPES;exports.Dashboard=e.Dashboard;exports.DashboardWC=e.DashboardWC;exports.NUMBER_DATA_TYPES=e.NUMBER_DATA_TYPES;exports.SemaphorQueryClient=e.SemaphorQueryClient;exports.TEXT_DATA_TYPES=e.TEXT_DATA_TYPES;exports.createSqlGenConfig=e.createSqlGenConfig;exports.fmt=e.fmt;exports.getColumnDataType=e.getColumnDataType;exports.getFilterValueType=e.getFilterValueType;exports.getQualifiedTableName=e.getQualifiedTableName;exports.getSql=e.getSql;exports.isColumnInSqlGen=e.isColumnInSqlGen;exports.resolveDataType=e.resolveDataType;exports.useCard=e.useCard;exports.useDashboardActions=e.useDashboardActions;exports.useDashboardStore=e.useDashboardStore;exports.useEditorActions=e.useEditorActions;exports.useEditorStore=e.useEditorStore;exports.SelectComponent=n.SelectComponent;exports.Surfboard=n.DashboardPlus;exports.cleanCard=n.cleanCard;exports.getDashbaordStateWithoutData=n.getDashbaordStateWithoutData;exports.useEditorAside=n.useEditorAside;exports.DashboardCard=N;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/index-vW_7Osti.js"),n=require("./chunks/dashboard-plus-dEPjezMB.js"),I=require("react");require("react-dom");function N({card:t,footer:u,className:c,...h}){const{customCards:r}=e.useSemaphorContext(),m=I.useRef(null),{isError:p,isLoading:i,isFetching:a,cfg:x,visualKey:C,handleDatapointClick:f}=e.useDashboardCard(t),l=e.useDashboardStore(s=>s.themeStyle),d=e.useDashboardStore(s=>s.selectedSheetId),E=e.useDashboardStore(s=>s.selectedCardId),j=e.useDashboardStore(s=>s.isDashboardEditing),{setCardTitle:D,setCardDescription:g,setSelectedCardId:b}=e.useDashboardActions();function S(s){s.stopPropagation(),b(d,t.id)}function T(){if(r&&r.length>0){const s=r.find(o=>o.cardId===t.id);if(s&&s.replaceDefault){const o=s.content;if(o)return e.jsxRuntimeExports.jsx(o,{card:t})}}return t.type==="kpi"?t.data&&t.data.length>0&&e.jsxRuntimeExports.jsx(e.KPICard,{isLoading:i||a,card:t}):y}function R(){if(p)return e.jsxRuntimeExports.jsx("p",{className:"text-sm",children:"Oops! It seems like something went wrong. Please review your connection or filters."});if(t.type==="table"&&t.data&&t.data.length>0)return e.jsxRuntimeExports.jsxs(e.ScrollArea,{children:[e.jsxRuntimeExports.jsx(e.TableVisual,{card:t,data:t.data}),e.jsxRuntimeExports.jsx(e.ScrollBar,{orientation:"horizontal"})]});if(r&&r.length>0){const s=r.find(o=>o.cardId===t.id);if(s&&s.content){const o=s.content;return e.jsxRuntimeExports.jsx(o,{card:t})}}if(x)return e.jsxRuntimeExports.jsx(e.ChartJsVisual,{cfg:x,onDatapointClick:f},C)}function A(){if(r&&r.length>0){const s=r.find(o=>o.cardId===t.id);if(s&&s.footer){const o=s.footer;if(o)return e.jsxRuntimeExports.jsx(o,{card:t})}}return u||null}if(!t.id)return null;const y=e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsxs(e.CardHeader,{className:"pb-4",children:[e.jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxRuntimeExports.jsx(e.Editable,{text:t.title,onSave:s=>D(d,t.id,s),children:e.jsxRuntimeExports.jsx(e.CardTitle,{className:"text-base",children:t.title})}),t.refreshInterval&&e.jsxRuntimeExports.jsxs(e.Tooltip,{children:[e.jsxRuntimeExports.jsx(e.TooltipTrigger,{className:"pr-1",children:e.jsxRuntimeExports.jsx("div",{className:e.cn("h-2 w-2 rounded-full bg-green-500 transition-opacity",{"opacity-10":i||a})})}),e.jsxRuntimeExports.jsx(e.TooltipContent,{side:"right",align:"center",children:e.jsxRuntimeExports.jsx("p",{className:"text-xs",children:`Realtime (${t==null?void 0:t.refreshInterval})`})})]}),!t.refreshInterval&&(i||a)&&e.jsxRuntimeExports.jsx(n.LoaderCircle,{className:"h-4 w-4 animate-spin text-muted-foreground"})]}),e.jsxRuntimeExports.jsx(e.Editable,{text:(t==null?void 0:t.description)||"",onSave:s=>g(d,t.id,s),children:e.jsxRuntimeExports.jsxs(e.CardDescription,{children:[" ",t.description]})})]}),e.jsxRuntimeExports.jsx(e.CardContent,{className:"relative flex grow flex-col overflow-auto pb-0",children:R()}),e.jsxRuntimeExports.jsx(e.CardFooter,{children:A()})]});return e.jsxRuntimeExports.jsx(e.Card,{tabIndex:-1,ref:m,role:"dashboard-card",onClick:S,className:e.cn("relative flex h-full flex-col rounded-sm",{"border-dashed border-foreground/50":E===t.id&&j},l==null?void 0:l.dashboardCard,c),...h,children:T()})}exports.BOOLEAN_DATA_TYPES=e.BOOLEAN_DATA_TYPES;exports.DATE_DATA_TYPES=e.DATE_DATA_TYPES;exports.Dashboard=e.Dashboard;exports.DashboardWC=e.DashboardWC;exports.NUMBER_DATA_TYPES=e.NUMBER_DATA_TYPES;exports.SemaphorQueryClient=e.SemaphorQueryClient;exports.TEXT_DATA_TYPES=e.TEXT_DATA_TYPES;exports.createSqlGenConfig=e.createSqlGenConfig;exports.fmt=e.fmt;exports.getColumnDataType=e.getColumnDataType;exports.getFilterValueType=e.getFilterValueType;exports.getQualifiedTableName=e.getQualifiedTableName;exports.getSql=e.getSql;exports.isColumnInSqlGen=e.isColumnInSqlGen;exports.resolveDataType=e.resolveDataType;exports.useCard=e.useCard;exports.useDashboardActions=e.useDashboardActions;exports.useDashboardStore=e.useDashboardStore;exports.useEditorActions=e.useEditorActions;exports.useEditorStore=e.useEditorStore;exports.SelectComponent=n.SelectComponent;exports.Surfboard=n.DashboardPlus;exports.cleanCard=n.cleanCard;exports.getDashbaordStateWithoutData=n.getDashbaordStateWithoutData;exports.useEditorAside=n.useEditorAside;exports.DashboardCard=N;
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
- import { u as _, a as w, b as r, c as F, j as t, C as P, E as f, d as k, T as R, e as L, f as h, g as q, h as B, i as Y, k as G, l as K, K as O, S as V, m as z, n as H, o as Q } from "./chunks/index-XCmfOUgI.js";
2
- import { B as se, s as ae, D as oe, q as re, N as ne, I as ie, r as le, w as de, t as ue, y as ce, x as fe, A as he, v as Ce, z as me, F as xe, p as pe, H as ge, G as je } from "./chunks/index-XCmfOUgI.js";
3
- import { L as W } from "./chunks/dashboard-plus-9rfBGTmw.js";
4
- import { S as be, D as Se, c as Te, g as Ee, u as Ie } from "./chunks/dashboard-plus-9rfBGTmw.js";
1
+ import { u as _, a as w, b as r, c as F, j as t, C as P, E as f, d as k, T as R, e as L, f as h, g as q, h as B, i as Y, k as G, l as K, K as O, S as V, m as z, n as H, o as Q } from "./chunks/index-uCOEDYik.js";
2
+ import { B as se, s as ae, D as oe, q as re, N as ne, I as ie, r as le, w as de, t as ue, y as ce, x as fe, A as he, v as Ce, z as me, F as xe, p as pe, H as ge, G as je } from "./chunks/index-uCOEDYik.js";
3
+ import { L as W } from "./chunks/dashboard-plus-Ht9PASKI.js";
4
+ import { S as be, D as Se, c as Te, g as Ee, u as Ie } from "./chunks/dashboard-plus-Ht9PASKI.js";
5
5
  import J from "react";
6
6
  import "react-dom";
7
7
  function Z({
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .react-grid-layout{position:relative;transition:height .2s ease}.react-grid-item{transition:all .2s ease;transition-property:left,top,width,height}.react-grid-item img{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-grid-item.cssTransforms{transition-property:transform,width,height}.react-grid-item.resizing{transition:none;z-index:1;will-change:width,height}.react-grid-item.react-draggable-dragging{transition:none;z-index:3;will-change:transform}.react-grid-item.dropping{visibility:hidden}.react-grid-item.react-grid-placeholder{background:red;opacity:.2;transition-duration:.1s;z-index:2;-webkit-user-select:none;-moz-user-select:none;-o-user-select:none;user-select:none}.react-grid-item.react-grid-placeholder.placeholder-resizing{transition:none}.react-grid-item>.react-resizable-handle{position:absolute;width:20px;height:20px}.react-grid-item>.react-resizable-handle:after{content:"";position:absolute;right:3px;bottom:3px;width:5px;height:5px;border-right:2px solid rgba(0,0,0,.4);border-bottom:2px solid rgba(0,0,0,.4)}.react-resizable-hide>.react-resizable-handle{display:none}.react-grid-item>.react-resizable-handle.react-resizable-handle-sw{bottom:0;left:0;cursor:sw-resize;transform:rotate(90deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-se{bottom:0;right:0;cursor:se-resize}.react-grid-item>.react-resizable-handle.react-resizable-handle-nw{top:0;left:0;cursor:nw-resize;transform:rotate(180deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-ne{top:0;right:0;cursor:ne-resize;transform:rotate(270deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-w,.react-grid-item>.react-resizable-handle.react-resizable-handle-e{top:50%;margin-top:-10px;cursor:ew-resize}.react-grid-item>.react-resizable-handle.react-resizable-handle-w{left:0;transform:rotate(135deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-e{right:0;transform:rotate(315deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-n,.react-grid-item>.react-resizable-handle.react-resizable-handle-s{left:50%;margin-left:-10px;cursor:ns-resize}.react-grid-item>.react-resizable-handle.react-resizable-handle-n{top:0;transform:rotate(225deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-s{bottom:0;transform:rotate(45deg)}.react-resizable{position:relative}.react-resizable-handle{position:absolute;width:20px;height:20px;background-repeat:no-repeat;background-origin:content-box;box-sizing:border-box;background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2IDYiIHN0eWxlPSJiYWNrZ3JvdW5kLWNvbG9yOiNmZmZmZmYwMCIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI2cHgiIGhlaWdodD0iNnB4Ij48ZyBvcGFjaXR5PSIwLjMwMiI+PHBhdGggZD0iTSA2IDYgTCAwIDYgTCAwIDQuMiBMIDQgNC4yIEwgNC4yIDQuMiBMIDQuMiAwIEwgNiAwIEwgNiA2IEwgNiA2IFoiIGZpbGw9IiMwMDAwMDAiLz48L2c+PC9zdmc+);background-position:bottom right;padding:0 3px 3px 0}.react-resizable-handle-sw{bottom:0;left:0;cursor:sw-resize;transform:rotate(90deg)}.react-resizable-handle-se{bottom:0;right:0;cursor:se-resize}.react-resizable-handle-nw{top:0;left:0;cursor:nw-resize;transform:rotate(180deg)}.react-resizable-handle-ne{top:0;right:0;cursor:ne-resize;transform:rotate(270deg)}.react-resizable-handle-w,.react-resizable-handle-e{top:50%;margin-top:-10px;cursor:ew-resize}.react-resizable-handle-w{left:0;transform:rotate(135deg)}.react-resizable-handle-e{right:0;transform:rotate(315deg)}.react-resizable-handle-n,.react-resizable-handle-s{left:50%;margin-left:-10px;cursor:ns-resize}.react-resizable-handle-n{top:0;transform:rotate(225deg)}.react-resizable-handle-s{bottom:0;transform:rotate(45deg)}.react-resizable-handle{background-image:none!important;padding:0!important;height:10px!important;width:10px!important}.react-grid-item>.react-resizable-handle:after{border:none!important;content:none!important}.react-grid-item>.react-resizable-handle.react-resizable-handle-n,.react-grid-item>.react-resizable-handle.react-resizable-handle-e,.react-grid-item>.react-resizable-handle.react-resizable-handle-s,.react-grid-item>.react-resizable-handle.react-resizable-handle-w,.react-grid-item>.react-resizable-handle.react-resizable-handle-ne,.react-grid-item>.react-resizable-handle.react-resizable-handle-nw,.react-grid-item>.react-resizable-handle.react-resizable-handle-se,.react-grid-item>.react-resizable-handle.react-resizable-handle-sw{transform:none!important;margin:0!important}.react-grid-item.react-grid-placeholder{background-color:gray!important;background-image:none!important}.kpi-card{container-type:inline-size}@container (inline-size < 270px){.kpi-card>div:nth-of-type(2){display:none}}@container (inline-size > 270px){.kpi-card>div:nth-of-type(2){display:flex}}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}:root{--semaphor-background: 0 0% 100%;--semaphor-foreground: 240 10% 3.9%;--semaphor-card: 0 0% 100%;--semaphor-card-foreground: 240 10% 3.9%;--semaphor-popover: 0 0% 100%;--semaphor-popover-foreground: 240 10% 3.9%;--semaphor-primary: 240 5.9% 10%;--semaphor-primary-foreground: 0 0% 98%;--semaphor-secondary: 240 4.8% 95.9%;--semaphor-secondary-foreground: 240 5.9% 10%;--semaphor-muted: 240 4.8% 95.9%;--semaphor-muted-foreground: 240 3.8% 46.1%;--semaphor-accent: 240 4.8% 95.9%;--semaphor-accent-foreground: 240 5.9% 10%;--semaphor-destructive: 0 84.2% 60.2%;--semaphor-destructive-foreground: 0 0% 98%;--semaphor-border: 240 5.9% 90%;--semaphor-input: 240 5.9% 90%;--semaphor-ring: 240 5.9% 10%;--semaphor-radius: .5rem}.dark{--semaphor-background: 240 10% 10%;--semaphor-foreground: 0 0% 80%;--semaphor-card: 240 10% 10%;--semaphor-card-foreground: 0 0% 80%;--semaphor-popover: 240 10% 10%;--semaphor-popover-foreground: 0 0% 98%;--semaphor-primary: 0 0% 90%;--semaphor-primary-foreground: 240 5.9% 10%;--semaphor-secondary: 240 3.7% 15.9%;--semaphor-secondary-foreground: 0 0% 98%;--semaphor-muted: 240 3.7% 15.9%;--semaphor-muted-foreground: 240 5% 64.9%;--semaphor-accent: 240 3.7% 15.9%;--semaphor-accent-foreground: 0 0% 98%;--semaphor-destructive: 0 62.8% 30.6%;--semaphor-destructive-foreground: 0 0% 98%;--semaphor-border: 240 3.7% 15.9%;--semaphor-input: 240 3.7% 15.9%;--semaphor-ring: 240 4.9% 83.9%}*{border-color:hsl(var(--semaphor-border))}body{background-color:hsl(var(--semaphor-background));color:hsl(var(--semaphor-foreground))}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%;margin-right:auto;margin-left:auto;padding-right:2rem;padding-left:2rem}@media (min-width: 1400px){.container{max-width:1400px}}.semaphor-scope :is(.sr-only){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.semaphor-scope :is(.pointer-events-none){pointer-events:none}.semaphor-scope :is(.visible){visibility:visible}.semaphor-scope :is(.invisible){visibility:hidden}.semaphor-scope :is(.static){position:static}.semaphor-scope :is(.fixed){position:fixed}.semaphor-scope :is(.absolute){position:absolute}.semaphor-scope :is(.relative){position:relative}.semaphor-scope :is(.sticky){position:sticky}.semaphor-scope :is(.inset-0){top:0;right:0;bottom:0;left:0}.semaphor-scope :is(.inset-x-0){left:0;right:0}.semaphor-scope :is(.inset-y-0){top:0;bottom:0}.semaphor-scope :is(.-top-\[1px\]){top:-1px}.semaphor-scope :is(.bottom-0){bottom:0}.semaphor-scope :is(.bottom-4){bottom:1rem}.semaphor-scope :is(.left-0){left:0}.semaphor-scope :is(.left-1){left:.25rem}.semaphor-scope :is(.left-2){left:.5rem}.semaphor-scope :is(.left-\[50\%\]){left:50%}.semaphor-scope :is(.right-0){right:0}.semaphor-scope :is(.right-1){right:.25rem}.semaphor-scope :is(.right-2){right:.5rem}.semaphor-scope :is(.right-3){right:.75rem}.semaphor-scope :is(.right-4){right:1rem}.semaphor-scope :is(.right-6){right:1.5rem}.semaphor-scope :is(.top-0){top:0}.semaphor-scope :is(.top-2){top:.5rem}.semaphor-scope :is(.top-3){top:.75rem}.semaphor-scope :is(.top-4){top:1rem}.semaphor-scope :is(.top-6){top:1.5rem}.semaphor-scope :is(.top-\[50\%\]){top:50%}.semaphor-scope :is(.z-10){z-index:10}.semaphor-scope :is(.z-50){z-index:50}.semaphor-scope :is(.col-span-1){grid-column:span 1 / span 1}.semaphor-scope :is(.col-span-2){grid-column:span 2 / span 2}.semaphor-scope :is(.col-span-3){grid-column:span 3 / span 3}.semaphor-scope :is(.col-span-5){grid-column:span 5 / span 5}.semaphor-scope :is(.col-span-6){grid-column:span 6 / span 6}.semaphor-scope :is(.col-span-7){grid-column:span 7 / span 7}.semaphor-scope :is(.col-start-1){grid-column-start:1}.semaphor-scope :is(.col-start-2){grid-column-start:2}.semaphor-scope :is(.col-start-3){grid-column-start:3}.semaphor-scope :is(.m-2){margin:.5rem}.semaphor-scope :is(.m-auto){margin:auto}.semaphor-scope :is(.-mx-1){margin-left:-.25rem;margin-right:-.25rem}.semaphor-scope :is(.mx-1){margin-left:.25rem;margin-right:.25rem}.semaphor-scope :is(.mx-3){margin-left:.75rem;margin-right:.75rem}.semaphor-scope :is(.mx-6){margin-left:1.5rem;margin-right:1.5rem}.semaphor-scope :is(.mx-auto){margin-left:auto;margin-right:auto}.semaphor-scope :is(.my-1){margin-top:.25rem;margin-bottom:.25rem}.semaphor-scope :is(.my-2){margin-top:.5rem;margin-bottom:.5rem}.semaphor-scope :is(.my-3){margin-top:.75rem;margin-bottom:.75rem}.semaphor-scope :is(.my-4){margin-top:1rem;margin-bottom:1rem}.semaphor-scope :is(.my-6){margin-top:1.5rem;margin-bottom:1.5rem}.semaphor-scope :is(.mb-0){margin-bottom:0}.semaphor-scope :is(.mb-1){margin-bottom:.25rem}.semaphor-scope :is(.mb-2){margin-bottom:.5rem}.semaphor-scope :is(.mb-3){margin-bottom:.75rem}.semaphor-scope :is(.ml-0){margin-left:0}.semaphor-scope :is(.ml-0\.5){margin-left:.125rem}.semaphor-scope :is(.ml-1){margin-left:.25rem}.semaphor-scope :is(.ml-2){margin-left:.5rem}.semaphor-scope :is(.ml-3){margin-left:.75rem}.semaphor-scope :is(.ml-5){margin-left:1.25rem}.semaphor-scope :is(.ml-6){margin-left:1.5rem}.semaphor-scope :is(.ml-\[1px\]){margin-left:1px}.semaphor-scope :is(.ml-auto){margin-left:auto}.semaphor-scope :is(.mr-1){margin-right:.25rem}.semaphor-scope :is(.mr-2){margin-right:.5rem}.semaphor-scope :is(.mr-3){margin-right:.75rem}.semaphor-scope :is(.mt-0){margin-top:0}.semaphor-scope :is(.mt-1){margin-top:.25rem}.semaphor-scope :is(.mt-2){margin-top:.5rem}.semaphor-scope :is(.mt-4){margin-top:1rem}.semaphor-scope :is(.block){display:block}.semaphor-scope :is(.inline-block){display:inline-block}.semaphor-scope :is(.inline){display:inline}.semaphor-scope :is(.flex){display:flex}.semaphor-scope :is(.inline-flex){display:inline-flex}.semaphor-scope :is(.\!table){display:table!important}.semaphor-scope :is(.table){display:table}.semaphor-scope :is(.grid){display:grid}.semaphor-scope :is(.contents){display:contents}.semaphor-scope :is(.hidden){display:none}.semaphor-scope :is(.aspect-square){aspect-ratio:1 / 1}.semaphor-scope :is(.size-10){width:2.5rem;height:2.5rem}.semaphor-scope :is(.size-2){width:.5rem;height:.5rem}.semaphor-scope :is(.size-2\.5){width:.625rem;height:.625rem}.semaphor-scope :is(.size-3){width:.75rem;height:.75rem}.semaphor-scope :is(.size-3\.5){width:.875rem;height:.875rem}.semaphor-scope :is(.size-4){width:1rem;height:1rem}.semaphor-scope :is(.size-5){width:1.25rem;height:1.25rem}.semaphor-scope :is(.size-6){width:1.5rem;height:1.5rem}.semaphor-scope :is(.h-0){height:0px}.semaphor-scope :is(.h-1){height:.25rem}.semaphor-scope :is(.h-10){height:2.5rem}.semaphor-scope :is(.h-11){height:2.75rem}.semaphor-scope :is(.h-12){height:3rem}.semaphor-scope :is(.h-2){height:.5rem}.semaphor-scope :is(.h-2\.5){height:.625rem}.semaphor-scope :is(.h-24){height:6rem}.semaphor-scope :is(.h-3){height:.75rem}.semaphor-scope :is(.h-3\.5){height:.875rem}.semaphor-scope :is(.h-4){height:1rem}.semaphor-scope :is(.h-5){height:1.25rem}.semaphor-scope :is(.h-6){height:1.5rem}.semaphor-scope :is(.h-7){height:1.75rem}.semaphor-scope :is(.h-8){height:2rem}.semaphor-scope :is(.h-9){height:2.25rem}.semaphor-scope :is(.h-\[14px\]){height:14px}.semaphor-scope :is(.h-\[1px\]){height:1px}.semaphor-scope :is(.h-\[34px\]){height:34px}.semaphor-scope :is(.h-\[350px\]){height:350px}.semaphor-scope :is(.h-\[550px\]){height:550px}.semaphor-scope :is(.h-\[625px\]){height:625px}.semaphor-scope :is(.h-\[62vh\]){height:62vh}.semaphor-scope :is(.h-\[75vh\]){height:75vh}.semaphor-scope :is(.h-\[95\%\]){height:95%}.semaphor-scope :is(.h-\[99\%\]){height:99%}.semaphor-scope :is(.h-\[var\(--radix-select-trigger-height\)\]){height:var(--radix-select-trigger-height)}.semaphor-scope :is(.h-fit){height:-moz-fit-content;height:fit-content}.semaphor-scope :is(.h-full){height:100%}.semaphor-scope :is(.h-px){height:1px}.semaphor-scope :is(.h-screen){height:100vh}.semaphor-scope :is(.max-h-10){max-height:2.5rem}.semaphor-scope :is(.max-h-60){max-height:15rem}.semaphor-scope :is(.max-h-96){max-height:24rem}.semaphor-scope :is(.max-h-\[150px\]){max-height:150px}.semaphor-scope :is(.max-h-\[250px\]){max-height:250px}.semaphor-scope :is(.max-h-\[300px\]){max-height:300px}.semaphor-scope :is(.max-h-\[70vh\]){max-height:70vh}.semaphor-scope :is(.min-h-0){min-height:0px}.semaphor-scope :is(.min-h-10){min-height:2.5rem}.semaphor-scope :is(.min-h-7){min-height:1.75rem}.semaphor-scope :is(.min-h-\[220px\]){min-height:220px}.semaphor-scope :is(.min-h-\[250px\]){min-height:250px}.semaphor-scope :is(.min-h-\[500px\]){min-height:500px}.semaphor-scope :is(.min-h-\[70vh\]){min-height:70vh}.semaphor-scope :is(.min-h-\[80px\]){min-height:80px}.semaphor-scope :is(.min-h-fit){min-height:-moz-fit-content;min-height:fit-content}.semaphor-scope :is(.min-h-screen){min-height:100vh}.semaphor-scope :is(.w-1\/2){width:50%}.semaphor-scope :is(.w-1\/3){width:33.333333%}.semaphor-scope :is(.w-10){width:2.5rem}.semaphor-scope :is(.w-11){width:2.75rem}.semaphor-scope :is(.w-2){width:.5rem}.semaphor-scope :is(.w-2\.5){width:.625rem}.semaphor-scope :is(.w-20){width:5rem}.semaphor-scope :is(.w-3){width:.75rem}.semaphor-scope :is(.w-3\.5){width:.875rem}.semaphor-scope :is(.w-3\/4){width:75%}.semaphor-scope :is(.w-4){width:1rem}.semaphor-scope :is(.w-5){width:1.25rem}.semaphor-scope :is(.w-60){width:15rem}.semaphor-scope :is(.w-64){width:16rem}.semaphor-scope :is(.w-7){width:1.75rem}.semaphor-scope :is(.w-72){width:18rem}.semaphor-scope :is(.w-8){width:2rem}.semaphor-scope :is(.w-80){width:20rem}.semaphor-scope :is(.w-9){width:2.25rem}.semaphor-scope :is(.w-\[14px\]){width:14px}.semaphor-scope :is(.w-\[180px\]){width:180px}.semaphor-scope :is(.w-\[1px\]){width:1px}.semaphor-scope :is(.w-\[200px\]){width:200px}.semaphor-scope :is(.w-\[250px\]){width:250px}.semaphor-scope :is(.w-\[270px\]){width:270px}.semaphor-scope :is(.w-\[300px\]){width:300px}.semaphor-scope :is(.w-\[600px\]){width:600px}.semaphor-scope :is(.w-\[99\%\]){width:99%}.semaphor-scope :is(.w-\[99\.5\%\]){width:99.5%}.semaphor-scope :is(.w-auto){width:auto}.semaphor-scope :is(.w-fit){width:-moz-fit-content;width:fit-content}.semaphor-scope :is(.w-full){width:100%}.semaphor-scope :is(.w-px){width:1px}.semaphor-scope :is(.min-w-0){min-width:0px}.semaphor-scope :is(.min-w-14){min-width:3.5rem}.semaphor-scope :is(.min-w-\[275px\]){min-width:275px}.semaphor-scope :is(.min-w-\[320px\]){min-width:320px}.semaphor-scope :is(.min-w-\[350px\]){min-width:350px}.semaphor-scope :is(.min-w-\[8rem\]){min-width:8rem}.semaphor-scope :is(.min-w-\[900px\]){min-width:900px}.semaphor-scope :is(.min-w-\[var\(--radix-select-trigger-width\)\]){min-width:var(--radix-select-trigger-width)}.semaphor-scope :is(.min-w-fit){min-width:-moz-fit-content;min-width:fit-content}.semaphor-scope :is(.min-w-full){min-width:100%}.semaphor-scope :is(.max-w-\[1500px\]){max-width:1500px}.semaphor-scope :is(.max-w-\[200px\]){max-width:200px}.semaphor-scope :is(.max-w-\[500px\]){max-width:500px}.semaphor-scope :is(.max-w-lg){max-width:32rem}.semaphor-scope :is(.flex-1){flex:1 1 0%}.semaphor-scope :is(.shrink){flex-shrink:1}.semaphor-scope :is(.shrink-0){flex-shrink:0}.semaphor-scope :is(.flex-grow){flex-grow:1}.semaphor-scope :is(.grow){flex-grow:1}.semaphor-scope :is(.basis-0){flex-basis:0px}.semaphor-scope :is(.caption-bottom){caption-side:bottom}.semaphor-scope :is(.border-collapse){border-collapse:collapse}.semaphor-scope :is(.translate-x-\[-50\%\]){--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.semaphor-scope :is(.translate-y-\[-50\%\]){--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.semaphor-scope :is(.rotate-0){--tw-rotate: 0deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.semaphor-scope :is(.rotate-180){--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.semaphor-scope :is(.rotate-90){--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.semaphor-scope :is(.rotate-\[135deg\]){--tw-rotate: 135deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.semaphor-scope :is(.scale-0){--tw-scale-x: 0;--tw-scale-y: 0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.semaphor-scope :is(.scale-100){--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.semaphor-scope :is(.animate-pulse){animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.semaphor-scope :is(.animate-spin){animation:spin 1s linear infinite}.semaphor-scope :is(.cursor-default){cursor:default}.semaphor-scope :is(.cursor-pointer){cursor:pointer}.semaphor-scope :is(.touch-none){touch-action:none}.semaphor-scope :is(.select-none){-webkit-user-select:none;-moz-user-select:none;user-select:none}.semaphor-scope :is(.resize-none){resize:none}.semaphor-scope :is(.resize){resize:both}.semaphor-scope :is(.list-disc){list-style-type:disc}.semaphor-scope :is(.grid-cols-12){grid-template-columns:repeat(12,minmax(0,1fr))}.semaphor-scope :is(.grid-cols-3){grid-template-columns:repeat(3,minmax(0,1fr))}.semaphor-scope :is(.grid-cols-5){grid-template-columns:repeat(5,minmax(0,1fr))}.semaphor-scope :is(.grid-cols-6){grid-template-columns:repeat(6,minmax(0,1fr))}.semaphor-scope :is(.grid-cols-8){grid-template-columns:repeat(8,minmax(0,1fr))}.semaphor-scope :is(.grid-cols-9){grid-template-columns:repeat(9,minmax(0,1fr))}.semaphor-scope :is(.flex-row){flex-direction:row}.semaphor-scope :is(.flex-col){flex-direction:column}.semaphor-scope :is(.flex-col-reverse){flex-direction:column-reverse}.semaphor-scope :is(.flex-wrap){flex-wrap:wrap}.semaphor-scope :is(.place-items-center){place-items:center}.semaphor-scope :is(.items-start){align-items:flex-start}.semaphor-scope :is(.items-end){align-items:flex-end}.semaphor-scope :is(.items-center){align-items:center}.semaphor-scope :is(.justify-start){justify-content:flex-start}.semaphor-scope :is(.justify-end){justify-content:flex-end}.semaphor-scope :is(.justify-center){justify-content:center}.semaphor-scope :is(.justify-between){justify-content:space-between}.semaphor-scope :is(.gap-1){gap:.25rem}.semaphor-scope :is(.gap-1\.5){gap:.375rem}.semaphor-scope :is(.gap-2){gap:.5rem}.semaphor-scope :is(.gap-3){gap:.75rem}.semaphor-scope :is(.gap-4){gap:1rem}.semaphor-scope :is(.gap-5){gap:1.25rem}.semaphor-scope :is(.space-x-1>:not([hidden])~:not([hidden])){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.semaphor-scope :is(.space-x-2>:not([hidden])~:not([hidden])){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.semaphor-scope :is(.space-x-3>:not([hidden])~:not([hidden])){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.semaphor-scope :is(.space-x-4>:not([hidden])~:not([hidden])){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.semaphor-scope :is(.space-y-1>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.semaphor-scope :is(.space-y-1\.5>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.semaphor-scope :is(.space-y-2>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.semaphor-scope :is(.space-y-3>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.semaphor-scope :is(.space-y-4>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.semaphor-scope :is(.space-y-6>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.semaphor-scope :is(.self-start){align-self:flex-start}.semaphor-scope :is(.self-end){align-self:flex-end}.semaphor-scope :is(.self-baseline){align-self:baseline}.semaphor-scope :is(.overflow-auto){overflow:auto}.semaphor-scope :is(.overflow-hidden){overflow:hidden}.semaphor-scope :is(.overflow-scroll){overflow:scroll}.semaphor-scope :is(.overflow-y-auto){overflow-y:auto}.semaphor-scope :is(.overflow-x-hidden){overflow-x:hidden}.semaphor-scope :is(.overflow-x-scroll){overflow-x:scroll}.semaphor-scope :is(.overflow-y-scroll){overflow-y:scroll}.semaphor-scope :is(.whitespace-normal){white-space:normal}.semaphor-scope :is(.whitespace-nowrap){white-space:nowrap}.semaphor-scope :is(.whitespace-pre-wrap){white-space:pre-wrap}.semaphor-scope :is(.break-words){overflow-wrap:break-word}.semaphor-scope :is(.rounded){border-radius:.25rem}.semaphor-scope :is(.rounded-\[inherit\]){border-radius:inherit}.semaphor-scope :is(.rounded-full){border-radius:9999px}.semaphor-scope :is(.rounded-lg){border-radius:var(--semaphor-radius)}.semaphor-scope :is(.rounded-md){border-radius:calc(var(--semaphor-radius) - 2px)}.semaphor-scope :is(.rounded-none){border-radius:0}.semaphor-scope :is(.rounded-sm){border-radius:calc(var(--semaphor-radius) - 4px)}.semaphor-scope :is(.rounded-b){border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.semaphor-scope :is(.rounded-b-none){border-bottom-right-radius:0;border-bottom-left-radius:0}.semaphor-scope :is(.rounded-bl-md){border-bottom-left-radius:calc(var(--semaphor-radius) - 2px)}.semaphor-scope :is(.rounded-bl-none){border-bottom-left-radius:0}.semaphor-scope :is(.rounded-br-md){border-bottom-right-radius:calc(var(--semaphor-radius) - 2px)}.semaphor-scope :is(.rounded-br-none){border-bottom-right-radius:0}.semaphor-scope :is(.rounded-tl-md){border-top-left-radius:calc(var(--semaphor-radius) - 2px)}.semaphor-scope :is(.rounded-tl-none){border-top-left-radius:0}.semaphor-scope :is(.rounded-tr-md){border-top-right-radius:calc(var(--semaphor-radius) - 2px)}.semaphor-scope :is(.rounded-tr-none){border-top-right-radius:0}.semaphor-scope :is(.border){border-width:1px}.semaphor-scope :is(.border-2){border-width:2px}.semaphor-scope :is(.border-x){border-left-width:1px;border-right-width:1px}.semaphor-scope :is(.border-b){border-bottom-width:1px}.semaphor-scope :is(.border-b-0){border-bottom-width:0px}.semaphor-scope :is(.border-b-2){border-bottom-width:2px}.semaphor-scope :is(.border-l){border-left-width:1px}.semaphor-scope :is(.border-r){border-right-width:1px}.semaphor-scope :is(.border-r-\[1\.5px\]){border-right-width:1.5px}.semaphor-scope :is(.border-t){border-top-width:1px}.semaphor-scope :is(.border-t-0){border-top-width:0px}.semaphor-scope :is(.border-dashed){border-style:dashed}.semaphor-scope :is(.border-none){border-style:none}.semaphor-scope :is(.border-background){border-color:hsl(var(--semaphor-background))}.semaphor-scope :is(.border-foreground\/40){border-color:hsl(var(--semaphor-foreground) / .4)}.semaphor-scope :is(.border-foreground\/50){border-color:hsl(var(--semaphor-foreground) / .5)}.semaphor-scope :is(.border-input){border-color:hsl(var(--semaphor-input))}.semaphor-scope :is(.border-muted){border-color:hsl(var(--semaphor-muted))}.semaphor-scope :is(.border-primary){border-color:hsl(var(--semaphor-primary))}.semaphor-scope :is(.border-red-400){--tw-border-opacity: 1;border-color:rgb(248 113 113 / var(--tw-border-opacity))}.semaphor-scope :is(.border-red-700){--tw-border-opacity: 1;border-color:rgb(185 28 28 / var(--tw-border-opacity))}.semaphor-scope :is(.border-transparent){border-color:transparent}.semaphor-scope :is(.border-l-transparent){border-left-color:transparent}.semaphor-scope :is(.border-t-muted){border-top-color:hsl(var(--semaphor-muted))}.semaphor-scope :is(.border-t-transparent){border-top-color:transparent}.semaphor-scope :is(.bg-accent){background-color:hsl(var(--semaphor-accent))}.semaphor-scope :is(.bg-background){background-color:hsl(var(--semaphor-background))}.semaphor-scope :is(.bg-background\/50){background-color:hsl(var(--semaphor-background) / .5)}.semaphor-scope :is(.bg-background\/80){background-color:hsl(var(--semaphor-background) / .8)}.semaphor-scope :is(.bg-black\/80){background-color:#000c}.semaphor-scope :is(.bg-blue-300){--tw-bg-opacity: 1;background-color:rgb(147 197 253 / var(--tw-bg-opacity))}.semaphor-scope :is(.bg-border){background-color:hsl(var(--semaphor-border))}.semaphor-scope :is(.bg-card){background-color:hsl(var(--semaphor-card))}.semaphor-scope :is(.bg-destructive){background-color:hsl(var(--semaphor-destructive))}.semaphor-scope :is(.bg-destructive\/10){background-color:hsl(var(--semaphor-destructive) / .1)}.semaphor-scope :is(.bg-foreground\/10){background-color:hsl(var(--semaphor-foreground) / .1)}.semaphor-scope :is(.bg-green-100){--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity))}.semaphor-scope :is(.bg-green-500){--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity))}.semaphor-scope :is(.bg-green-600\/10){background-color:#16a34a1a}.semaphor-scope :is(.bg-muted){background-color:hsl(var(--semaphor-muted))}.semaphor-scope :is(.bg-muted-foreground){background-color:hsl(var(--semaphor-muted-foreground))}.semaphor-scope :is(.bg-muted\/30){background-color:hsl(var(--semaphor-muted) / .3)}.semaphor-scope :is(.bg-muted\/50){background-color:hsl(var(--semaphor-muted) / .5)}.semaphor-scope :is(.bg-muted\/70){background-color:hsl(var(--semaphor-muted) / .7)}.semaphor-scope :is(.bg-popover){background-color:hsl(var(--semaphor-popover))}.semaphor-scope :is(.bg-primary){background-color:hsl(var(--semaphor-primary))}.semaphor-scope :is(.bg-primary-foreground\/20){background-color:hsl(var(--semaphor-primary-foreground) / .2)}.semaphor-scope :is(.bg-red-100){--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity))}.semaphor-scope :is(.bg-red-500){--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity))}.semaphor-scope :is(.bg-secondary){background-color:hsl(var(--semaphor-secondary))}.semaphor-scope :is(.bg-transparent){background-color:transparent}.semaphor-scope :is(.fill-current){fill:currentColor}.semaphor-scope :is(.p-0){padding:0}.semaphor-scope :is(.p-1){padding:.25rem}.semaphor-scope :is(.p-10){padding:2.5rem}.semaphor-scope :is(.p-2){padding:.5rem}.semaphor-scope :is(.p-3){padding:.75rem}.semaphor-scope :is(.p-4){padding:1rem}.semaphor-scope :is(.p-5){padding:1.25rem}.semaphor-scope :is(.p-6){padding:1.5rem}.semaphor-scope :is(.p-\[1px\]){padding:1px}.semaphor-scope :is(.px-0){padding-left:0;padding-right:0}.semaphor-scope :is(.px-1){padding-left:.25rem;padding-right:.25rem}.semaphor-scope :is(.px-2){padding-left:.5rem;padding-right:.5rem}.semaphor-scope :is(.px-2\.5){padding-left:.625rem;padding-right:.625rem}.semaphor-scope :is(.px-3){padding-left:.75rem;padding-right:.75rem}.semaphor-scope :is(.px-4){padding-left:1rem;padding-right:1rem}.semaphor-scope :is(.px-5){padding-left:1.25rem;padding-right:1.25rem}.semaphor-scope :is(.px-6){padding-left:1.5rem;padding-right:1.5rem}.semaphor-scope :is(.px-8){padding-left:2rem;padding-right:2rem}.semaphor-scope :is(.px-\[10px\]){padding-left:10px;padding-right:10px}.semaphor-scope :is(.py-0){padding-top:0;padding-bottom:0}.semaphor-scope :is(.py-0\.5){padding-top:.125rem;padding-bottom:.125rem}.semaphor-scope :is(.py-1){padding-top:.25rem;padding-bottom:.25rem}.semaphor-scope :is(.py-1\.5){padding-top:.375rem;padding-bottom:.375rem}.semaphor-scope :is(.py-2){padding-top:.5rem;padding-bottom:.5rem}.semaphor-scope :is(.py-3){padding-top:.75rem;padding-bottom:.75rem}.semaphor-scope :is(.py-4){padding-top:1rem;padding-bottom:1rem}.semaphor-scope :is(.py-6){padding-top:1.5rem;padding-bottom:1.5rem}.semaphor-scope :is(.py-8){padding-top:2rem;padding-bottom:2rem}.semaphor-scope :is(.py-\[6px\]){padding-top:6px;padding-bottom:6px}.semaphor-scope :is(.pb-0){padding-bottom:0}.semaphor-scope :is(.pb-1){padding-bottom:.25rem}.semaphor-scope :is(.pb-3){padding-bottom:.75rem}.semaphor-scope :is(.pb-4){padding-bottom:1rem}.semaphor-scope :is(.pl-1){padding-left:.25rem}.semaphor-scope :is(.pl-10){padding-left:2.5rem}.semaphor-scope :is(.pl-3){padding-left:.75rem}.semaphor-scope :is(.pl-8){padding-left:2rem}.semaphor-scope :is(.pr-1){padding-right:.25rem}.semaphor-scope :is(.pr-10){padding-right:2.5rem}.semaphor-scope :is(.pr-2){padding-right:.5rem}.semaphor-scope :is(.pr-3){padding-right:.75rem}.semaphor-scope :is(.pr-4){padding-right:1rem}.semaphor-scope :is(.pt-0){padding-top:0}.semaphor-scope :is(.pt-1){padding-top:.25rem}.semaphor-scope :is(.pt-2){padding-top:.5rem}.semaphor-scope :is(.pt-3){padding-top:.75rem}.semaphor-scope :is(.pt-8){padding-top:2rem}.semaphor-scope :is(.text-left){text-align:left}.semaphor-scope :is(.text-center){text-align:center}.semaphor-scope :is(.text-right){text-align:right}.semaphor-scope :is(.align-middle){vertical-align:middle}.semaphor-scope :is(.font-mono){font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.semaphor-scope :is(.text-2xl){font-size:1.5rem;line-height:2rem}.semaphor-scope :is(.text-3xl){font-size:1.875rem;line-height:2.25rem}.semaphor-scope :is(.text-\[0\.8rem\]){font-size:.8rem}.semaphor-scope :is(.text-base){font-size:1rem;line-height:1.5rem}.semaphor-scope :is(.text-lg){font-size:1.125rem;line-height:1.75rem}.semaphor-scope :is(.text-sm){font-size:.875rem;line-height:1.25rem}.semaphor-scope :is(.text-xl){font-size:1.25rem;line-height:1.75rem}.semaphor-scope :is(.text-xs){font-size:.75rem;line-height:1rem}.semaphor-scope :is(.font-bold){font-weight:700}.semaphor-scope :is(.font-extralight){font-weight:200}.semaphor-scope :is(.font-medium){font-weight:500}.semaphor-scope :is(.font-normal){font-weight:400}.semaphor-scope :is(.font-semibold){font-weight:600}.semaphor-scope :is(.font-thin){font-weight:100}.semaphor-scope :is(.uppercase){text-transform:uppercase}.semaphor-scope :is(.italic){font-style:italic}.semaphor-scope :is(.leading-5){line-height:1.25rem}.semaphor-scope :is(.leading-none){line-height:1}.semaphor-scope :is(.leading-relaxed){line-height:1.625}.semaphor-scope :is(.tracking-tight){letter-spacing:-.025em}.semaphor-scope :is(.tracking-wide){letter-spacing:.025em}.semaphor-scope :is(.tracking-widest){letter-spacing:.1em}.semaphor-scope :is(.text-accent-foreground){color:hsl(var(--semaphor-accent-foreground))}.semaphor-scope :is(.text-background){color:hsl(var(--semaphor-background))}.semaphor-scope :is(.text-blue-500){--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.semaphor-scope :is(.text-blue-700){--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity))}.semaphor-scope :is(.text-card){color:hsl(var(--semaphor-card))}.semaphor-scope :is(.text-card-foreground){color:hsl(var(--semaphor-card-foreground))}.semaphor-scope :is(.text-current){color:currentColor}.semaphor-scope :is(.text-destructive){color:hsl(var(--semaphor-destructive))}.semaphor-scope :is(.text-destructive-foreground){color:hsl(var(--semaphor-destructive-foreground))}.semaphor-scope :is(.text-foreground){color:hsl(var(--semaphor-foreground))}.semaphor-scope :is(.text-foreground\/10){color:hsl(var(--semaphor-foreground) / .1)}.semaphor-scope :is(.text-foreground\/30){color:hsl(var(--semaphor-foreground) / .3)}.semaphor-scope :is(.text-foreground\/40){color:hsl(var(--semaphor-foreground) / .4)}.semaphor-scope :is(.text-foreground\/50){color:hsl(var(--semaphor-foreground) / .5)}.semaphor-scope :is(.text-foreground\/70){color:hsl(var(--semaphor-foreground) / .7)}.semaphor-scope :is(.text-foreground\/80){color:hsl(var(--semaphor-foreground) / .8)}.semaphor-scope :is(.text-foreground\/90){color:hsl(var(--semaphor-foreground) / .9)}.semaphor-scope :is(.text-gray-400){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.semaphor-scope :is(.text-gray-700){--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.semaphor-scope :is(.text-gray-900){--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.semaphor-scope :is(.text-green-600){--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity))}.semaphor-scope :is(.text-muted){color:hsl(var(--semaphor-muted))}.semaphor-scope :is(.text-muted-foreground){color:hsl(var(--semaphor-muted-foreground))}.semaphor-scope :is(.text-muted-foreground\/40){color:hsl(var(--semaphor-muted-foreground) / .4)}.semaphor-scope :is(.text-muted-foreground\/70){color:hsl(var(--semaphor-muted-foreground) / .7)}.semaphor-scope :is(.text-popover-foreground){color:hsl(var(--semaphor-popover-foreground))}.semaphor-scope :is(.text-primary){color:hsl(var(--semaphor-primary))}.semaphor-scope :is(.text-primary-foreground){color:hsl(var(--semaphor-primary-foreground))}.semaphor-scope :is(.text-red-500){--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.semaphor-scope :is(.text-red-800){--tw-text-opacity: 1;color:rgb(153 27 27 / var(--tw-text-opacity))}.semaphor-scope :is(.text-secondary-foreground){color:hsl(var(--semaphor-secondary-foreground))}.semaphor-scope :is(.underline){text-decoration-line:underline}.semaphor-scope :is(.underline-offset-4){text-underline-offset:4px}.semaphor-scope :is(.opacity-0){opacity:0}.semaphor-scope :is(.opacity-10){opacity:.1}.semaphor-scope :is(.opacity-100){opacity:1}.semaphor-scope :is(.opacity-50){opacity:.5}.semaphor-scope :is(.opacity-60){opacity:.6}.semaphor-scope :is(.opacity-70){opacity:.7}.semaphor-scope :is(.shadow-lg){--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.semaphor-scope :is(.shadow-md){--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.semaphor-scope :is(.shadow-none){--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.semaphor-scope :is(.shadow-sm){--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.semaphor-scope :is(.outline-none){outline:2px solid transparent;outline-offset:2px}.semaphor-scope :is(.outline){outline-style:solid}.semaphor-scope :is(.outline-dashed){outline-style:dashed}.semaphor-scope :is(.outline-\[0\.5px\]){outline-width:.5px}.semaphor-scope :is(.outline-primary\/50){outline-color:hsl(var(--semaphor-primary) / .5)}.semaphor-scope :is(.ring-0){--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.semaphor-scope :is(.ring-1){--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.semaphor-scope :is(.ring-black\/5){--tw-ring-color: rgb(0 0 0 / .05)}.semaphor-scope :is(.ring-offset-background){--tw-ring-offset-color: hsl(var(--semaphor-background))}.semaphor-scope :is(.blur){--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.semaphor-scope :is(.\!filter){filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.semaphor-scope :is(.filter){filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.semaphor-scope :is(.backdrop-blur-sm){--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.semaphor-scope :is(.transition){transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.semaphor-scope :is(.transition-all){transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.semaphor-scope :is(.transition-colors){transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.semaphor-scope :is(.transition-opacity){transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.semaphor-scope :is(.transition-transform){transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.semaphor-scope :is(.duration-100){transition-duration:.1s}.semaphor-scope :is(.duration-200){transition-duration:.2s}.semaphor-scope :is(.ease-in){transition-timing-function:cubic-bezier(.4,0,1,1)}.semaphor-scope :is(.ease-in-out){transition-timing-function:cubic-bezier(.4,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.semaphor-scope :is(.animate-in){animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.semaphor-scope :is(.fade-in-0){--tw-enter-opacity: 0}.semaphor-scope :is(.zoom-in-95){--tw-enter-scale: .95}.semaphor-scope :is(.duration-100){animation-duration:.1s}.semaphor-scope :is(.duration-200){animation-duration:.2s}.semaphor-scope :is(.ease-in){animation-timing-function:cubic-bezier(.4,0,1,1)}.semaphor-scope :is(.ease-in-out){animation-timing-function:cubic-bezier(.4,0,.2,1)}.semaphor-scope :is(.\@container){container-type:inline-size}.semaphor-scope :is(.file\:border-0)::file-selector-button{border-width:0px}.semaphor-scope :is(.file\:bg-transparent)::file-selector-button{background-color:transparent}.semaphor-scope :is(.file\:text-sm)::file-selector-button{font-size:.875rem;line-height:1.25rem}.semaphor-scope :is(.file\:font-medium)::file-selector-button{font-weight:500}.semaphor-scope :is(.placeholder\:text-muted-foreground)::-moz-placeholder{color:hsl(var(--semaphor-muted-foreground))}.semaphor-scope :is(.placeholder\:text-muted-foreground)::placeholder{color:hsl(var(--semaphor-muted-foreground))}.semaphor-scope :is(.after\:absolute):after{content:var(--tw-content);position:absolute}.semaphor-scope :is(.after\:inset-y-0):after{content:var(--tw-content);top:0;bottom:0}.semaphor-scope :is(.after\:left-1\/2):after{content:var(--tw-content);left:50%}.semaphor-scope :is(.after\:w-1):after{content:var(--tw-content);width:.25rem}.semaphor-scope :is(.after\:-translate-x-1\/2):after{content:var(--tw-content);--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.semaphor-scope :is(.after\:content-none):after{--tw-content: none;content:var(--tw-content)}.semaphor-scope :is(.focus-within\:relative:focus-within){position:relative}.semaphor-scope :is(.focus-within\:z-20:focus-within){z-index:20}.semaphor-scope :is(.hover\:cursor-pointer:hover){cursor:pointer}.semaphor-scope :is(.hover\:cursor-text:hover){cursor:text}.semaphor-scope :is(.hover\:bg-accent:hover){background-color:hsl(var(--semaphor-accent))}.semaphor-scope :is(.hover\:bg-destructive\/90:hover){background-color:hsl(var(--semaphor-destructive) / .9)}.semaphor-scope :is(.hover\:bg-gray-200\/50:hover){background-color:#e5e7eb80}.semaphor-scope :is(.hover\:bg-muted:hover){background-color:hsl(var(--semaphor-muted))}.semaphor-scope :is(.hover\:bg-muted-foreground\/50:hover){background-color:hsl(var(--semaphor-muted-foreground) / .5)}.semaphor-scope :is(.hover\:bg-muted\/50:hover){background-color:hsl(var(--semaphor-muted) / .5)}.semaphor-scope :is(.hover\:bg-primary:hover){background-color:hsl(var(--semaphor-primary))}.semaphor-scope :is(.hover\:bg-primary\/90:hover){background-color:hsl(var(--semaphor-primary) / .9)}.semaphor-scope :is(.hover\:bg-secondary\/80:hover){background-color:hsl(var(--semaphor-secondary) / .8)}.semaphor-scope :is(.hover\:text-accent-foreground:hover){color:hsl(var(--semaphor-accent-foreground))}.semaphor-scope :is(.hover\:text-background:hover){color:hsl(var(--semaphor-background))}.semaphor-scope :is(.hover\:text-foreground:hover){color:hsl(var(--semaphor-foreground))}.semaphor-scope :is(.hover\:text-foreground\/100:hover){color:hsl(var(--semaphor-foreground) / 1)}.semaphor-scope :is(.hover\:text-foreground\/50:hover){color:hsl(var(--semaphor-foreground) / .5)}.semaphor-scope :is(.hover\:text-muted-foreground:hover){color:hsl(var(--semaphor-muted-foreground))}.semaphor-scope :is(.hover\:text-primary-foreground:hover){color:hsl(var(--semaphor-primary-foreground))}.semaphor-scope :is(.hover\:underline:hover){text-decoration-line:underline}.semaphor-scope :is(.hover\:opacity-100:hover){opacity:1}.semaphor-scope :is(.focus\:bg-accent:focus){background-color:hsl(var(--semaphor-accent))}.semaphor-scope :is(.focus\:bg-primary:focus){background-color:hsl(var(--semaphor-primary))}.semaphor-scope :is(.focus\:text-accent-foreground:focus){color:hsl(var(--semaphor-accent-foreground))}.semaphor-scope :is(.focus\:text-primary-foreground:focus){color:hsl(var(--semaphor-primary-foreground))}.semaphor-scope :is(.focus\:outline-none:focus){outline:2px solid transparent;outline-offset:2px}.semaphor-scope :is(.focus\:ring-0:focus){--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.semaphor-scope :is(.focus\:ring-1:focus){--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.semaphor-scope :is(.focus\:ring-2:focus){--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.semaphor-scope :is(.focus\:ring-ring:focus){--tw-ring-color: hsl(var(--semaphor-ring))}.semaphor-scope :is(.focus\:ring-offset-0:focus){--tw-ring-offset-width: 0px}.semaphor-scope :is(.focus\:ring-offset-2:focus){--tw-ring-offset-width: 2px}.semaphor-scope :is(.focus-visible\:outline-none:focus-visible){outline:2px solid transparent;outline-offset:2px}.semaphor-scope :is(.focus-visible\:ring-0:focus-visible){--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.semaphor-scope :is(.focus-visible\:ring-1:focus-visible){--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.semaphor-scope :is(.focus-visible\:ring-2:focus-visible){--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.semaphor-scope :is(.focus-visible\:ring-background\/75:focus-visible){--tw-ring-color: hsl(var(--semaphor-background) / .75)}.semaphor-scope :is(.focus-visible\:ring-ring:focus-visible){--tw-ring-color: hsl(var(--semaphor-ring))}.semaphor-scope :is(.focus-visible\:ring-offset-0:focus-visible){--tw-ring-offset-width: 0px}.semaphor-scope :is(.focus-visible\:ring-offset-1:focus-visible){--tw-ring-offset-width: 1px}.semaphor-scope :is(.focus-visible\:ring-offset-2:focus-visible){--tw-ring-offset-width: 2px}.semaphor-scope :is(.focus-visible\:ring-offset-background:focus-visible){--tw-ring-offset-color: hsl(var(--semaphor-background))}.semaphor-scope :is(.disabled\:pointer-events-none:disabled){pointer-events:none}.semaphor-scope :is(.disabled\:cursor-not-allowed:disabled){cursor:not-allowed}.semaphor-scope :is(.disabled\:opacity-50:disabled){opacity:.5}.semaphor-scope :is(.group:hover .group-hover\:visible){visibility:visible}.semaphor-scope :is(.group:hover .group-hover\:border-2){border-width:2px}.semaphor-scope :is(.group:hover .group-hover\:border-b-0){border-bottom-width:0px}.semaphor-scope :is(.group:hover .group-hover\:border-l-0){border-left-width:0px}.semaphor-scope :is(.group:hover .group-hover\:border-r-0){border-right-width:0px}.semaphor-scope :is(.group:hover .group-hover\:border-t-0){border-top-width:0px}.semaphor-scope :is(.group.toaster .group-\[\.toaster\]\:border-border){border-color:hsl(var(--semaphor-border))}.semaphor-scope :is(.group.toast .group-\[\.toast\]\:bg-muted){background-color:hsl(var(--semaphor-muted))}.semaphor-scope :is(.group.toast .group-\[\.toast\]\:bg-primary){background-color:hsl(var(--semaphor-primary))}.semaphor-scope :is(.group.toaster .group-\[\.toaster\]\:bg-background){background-color:hsl(var(--semaphor-background))}.semaphor-scope :is(.group.toast .group-\[\.toast\]\:text-muted-foreground){color:hsl(var(--semaphor-muted-foreground))}.semaphor-scope :is(.group.toast .group-\[\.toast\]\:text-primary-foreground){color:hsl(var(--semaphor-primary-foreground))}.semaphor-scope :is(.group.toaster .group-\[\.toaster\]\:text-foreground){color:hsl(var(--semaphor-foreground))}.semaphor-scope :is(.group.toaster .group-\[\.toaster\]\:shadow-lg){--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.semaphor-scope :is(.peer:disabled~.peer-disabled\:cursor-not-allowed){cursor:not-allowed}.semaphor-scope :is(.peer:disabled~.peer-disabled\:opacity-70){opacity:.7}.semaphor-scope :is(.aria-selected\:bg-accent[aria-selected=true]){background-color:hsl(var(--semaphor-accent))}.semaphor-scope :is(.aria-selected\:bg-accent\/50[aria-selected=true]){background-color:hsl(var(--semaphor-accent) / .5)}.semaphor-scope :is(.aria-selected\:text-accent-foreground[aria-selected=true]){color:hsl(var(--semaphor-accent-foreground))}.semaphor-scope :is(.aria-selected\:text-muted-foreground[aria-selected=true]){color:hsl(var(--semaphor-muted-foreground))}.semaphor-scope :is(.aria-selected\:opacity-100[aria-selected=true]){opacity:1}.semaphor-scope :is(.aria-selected\:opacity-30[aria-selected=true]){opacity:.3}.semaphor-scope :is(.data-\[disabled\]\:pointer-events-none[data-disabled]){pointer-events:none}.semaphor-scope :is(.data-\[panel-group-direction\=vertical\]\:h-px[data-panel-group-direction=vertical]){height:1px}.semaphor-scope :is(.data-\[panel-group-direction\=vertical\]\:w-full[data-panel-group-direction=vertical]){width:100%}.semaphor-scope :is(.data-\[side\=bottom\]\:translate-y-1[data-side=bottom]){--tw-translate-y: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.semaphor-scope :is(.data-\[side\=left\]\:-translate-x-1[data-side=left]){--tw-translate-x: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.semaphor-scope :is(.data-\[side\=right\]\:translate-x-1[data-side=right]){--tw-translate-x: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.semaphor-scope :is(.data-\[side\=top\]\:-translate-y-1[data-side=top]){--tw-translate-y: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.semaphor-scope :is(.data-\[state\=checked\]\:translate-x-4[data-state=checked]){--tw-translate-x: 1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.semaphor-scope :is(.data-\[state\=checked\]\:translate-x-5[data-state=checked]){--tw-translate-x: 1.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.semaphor-scope :is(.data-\[state\=unchecked\]\:translate-x-0[data-state=unchecked]){--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes accordion-up{0%{height:var(--radix-accordion-content-height)}to{height:0}}.semaphor-scope :is(.data-\[state\=closed\]\:animate-accordion-up[data-state=closed]){animation:accordion-up .2s ease-out}@keyframes accordion-down{0%{height:0}to{height:var(--radix-accordion-content-height)}}.semaphor-scope :is(.data-\[state\=open\]\:animate-accordion-down[data-state=open]){animation:accordion-down .2s ease-out}.semaphor-scope :is(.data-\[panel-group-direction\=vertical\]\:flex-col[data-panel-group-direction=vertical]){flex-direction:column}.semaphor-scope :is(.data-\[state\=selected\]\:border-2[data-state=selected]){border-width:2px}.semaphor-scope :is(.data-\[state\=selected\]\:border-dashed[data-state=selected]){border-style:dashed}.semaphor-scope :is(.data-\[state\=active\]\:bg-background[data-state=active]){background-color:hsl(var(--semaphor-background))}.semaphor-scope :is(.data-\[state\=checked\]\:bg-foreground\/50[data-state=checked]){background-color:hsl(var(--semaphor-foreground) / .5)}.semaphor-scope :is(.data-\[state\=checked\]\:bg-primary[data-state=checked]){background-color:hsl(var(--semaphor-primary))}.semaphor-scope :is(.data-\[state\=on\]\:bg-accent[data-state=on]){background-color:hsl(var(--semaphor-accent))}.semaphor-scope :is(.data-\[state\=open\]\:bg-accent[data-state=open]){background-color:hsl(var(--semaphor-accent))}.semaphor-scope :is(.data-\[state\=open\]\:bg-secondary[data-state=open]){background-color:hsl(var(--semaphor-secondary))}.semaphor-scope :is(.data-\[state\=selected\]\:bg-muted[data-state=selected]){background-color:hsl(var(--semaphor-muted))}.semaphor-scope :is(.data-\[state\=unchecked\]\:bg-input[data-state=unchecked]){background-color:hsl(var(--semaphor-input))}.semaphor-scope :is(.data-\[state\=active\]\:text-foreground[data-state=active]){color:hsl(var(--semaphor-foreground))}.semaphor-scope :is(.data-\[state\=checked\]\:text-primary-foreground[data-state=checked]){color:hsl(var(--semaphor-primary-foreground))}.semaphor-scope :is(.data-\[state\=on\]\:text-accent-foreground[data-state=on]){color:hsl(var(--semaphor-accent-foreground))}.semaphor-scope :is(.data-\[state\=open\]\:text-muted-foreground[data-state=open]){color:hsl(var(--semaphor-muted-foreground))}.semaphor-scope :is(.data-\[disabled\]\:opacity-50[data-disabled]){opacity:.5}.semaphor-scope :is(.data-\[state\=active\]\:shadow-sm[data-state=active]){--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.semaphor-scope :is(.data-\[state\=closed\]\:duration-300[data-state=closed]){transition-duration:.3s}.semaphor-scope :is(.data-\[state\=open\]\:duration-500[data-state=open]){transition-duration:.5s}.semaphor-scope :is(.data-\[state\=open\]\:animate-in[data-state=open]){animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.semaphor-scope :is(.data-\[state\=closed\]\:animate-out[data-state=closed]){animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.semaphor-scope :is(.data-\[state\=closed\]\:fade-out-0[data-state=closed]){--tw-exit-opacity: 0}.semaphor-scope :is(.data-\[state\=open\]\:fade-in-0[data-state=open]){--tw-enter-opacity: 0}.semaphor-scope :is(.data-\[state\=closed\]\:zoom-out-95[data-state=closed]){--tw-exit-scale: .95}.semaphor-scope :is(.data-\[state\=open\]\:zoom-in-95[data-state=open]){--tw-enter-scale: .95}.semaphor-scope :is(.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]){--tw-enter-translate-y: -.5rem}.semaphor-scope :is(.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]){--tw-enter-translate-x: .5rem}.semaphor-scope :is(.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]){--tw-enter-translate-x: -.5rem}.semaphor-scope :is(.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]){--tw-enter-translate-y: .5rem}.semaphor-scope :is(.data-\[state\=closed\]\:slide-out-to-bottom[data-state=closed]){--tw-exit-translate-y: 100%}.semaphor-scope :is(.data-\[state\=closed\]\:slide-out-to-left[data-state=closed]){--tw-exit-translate-x: -100%}.semaphor-scope :is(.data-\[state\=closed\]\:slide-out-to-left-1\/2[data-state=closed]){--tw-exit-translate-x: -50%}.semaphor-scope :is(.data-\[state\=closed\]\:slide-out-to-right[data-state=closed]){--tw-exit-translate-x: 100%}.semaphor-scope :is(.data-\[state\=closed\]\:slide-out-to-top[data-state=closed]){--tw-exit-translate-y: -100%}.semaphor-scope :is(.data-\[state\=closed\]\:slide-out-to-top-\[48\%\][data-state=closed]){--tw-exit-translate-y: -48%}.semaphor-scope :is(.data-\[state\=open\]\:slide-in-from-bottom[data-state=open]){--tw-enter-translate-y: 100%}.semaphor-scope :is(.data-\[state\=open\]\:slide-in-from-left[data-state=open]){--tw-enter-translate-x: -100%}.semaphor-scope :is(.data-\[state\=open\]\:slide-in-from-left-1\/2[data-state=open]){--tw-enter-translate-x: -50%}.semaphor-scope :is(.data-\[state\=open\]\:slide-in-from-right[data-state=open]){--tw-enter-translate-x: 100%}.semaphor-scope :is(.data-\[state\=open\]\:slide-in-from-top[data-state=open]){--tw-enter-translate-y: -100%}.semaphor-scope :is(.data-\[state\=open\]\:slide-in-from-top-\[48\%\][data-state=open]){--tw-enter-translate-y: -48%}.semaphor-scope :is(.data-\[state\=closed\]\:duration-300[data-state=closed]){animation-duration:.3s}.semaphor-scope :is(.data-\[state\=open\]\:duration-500[data-state=open]){animation-duration:.5s}.semaphor-scope :is(.data-\[panel-group-direction\=vertical\]\:after\:left-0[data-panel-group-direction=vertical]):after{content:var(--tw-content);left:0}.semaphor-scope :is(.data-\[panel-group-direction\=vertical\]\:after\:h-1[data-panel-group-direction=vertical]):after{content:var(--tw-content);height:.25rem}.semaphor-scope :is(.data-\[panel-group-direction\=vertical\]\:after\:w-full[data-panel-group-direction=vertical]):after{content:var(--tw-content);width:100%}.semaphor-scope :is(.data-\[panel-group-direction\=vertical\]\:after\:-translate-y-1\/2[data-panel-group-direction=vertical]):after{content:var(--tw-content);--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.semaphor-scope :is(.data-\[panel-group-direction\=vertical\]\:after\:translate-x-0[data-panel-group-direction=vertical]):after{content:var(--tw-content);--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@container (min-width: 20rem){.semaphor-scope :is(.\@xs\:flex){display:flex}}.semaphor-scope :is(.dark .dark\:h-\[2px\]){height:2px}.semaphor-scope :is(.dark .dark\:-rotate-90){--tw-rotate: -90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.semaphor-scope :is(.dark .dark\:rotate-0){--tw-rotate: 0deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.semaphor-scope :is(.dark .dark\:scale-0){--tw-scale-x: 0;--tw-scale-y: 0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.semaphor-scope :is(.dark .dark\:scale-100){--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.semaphor-scope :is(.dark .dark\:border-foreground\/70){border-color:hsl(var(--semaphor-foreground) / .7)}.semaphor-scope :is(.dark .dark\:border-l-background){border-left-color:hsl(var(--semaphor-background))}.semaphor-scope :is(.dark .dark\:bg-foreground\/5){background-color:hsl(var(--semaphor-foreground) / .05)}@media (min-width: 640px){.semaphor-scope :is(.sm\:mt-0){margin-top:0}.semaphor-scope :is(.sm\:min-w-\[500px\]){min-width:500px}.semaphor-scope :is(.sm\:min-w-\[900px\]){min-width:900px}.semaphor-scope :is(.sm\:max-w-\[425px\]){max-width:425px}.semaphor-scope :is(.sm\:max-w-sm){max-width:24rem}.semaphor-scope :is(.sm\:flex-row){flex-direction:row}.semaphor-scope :is(.sm\:justify-end){justify-content:flex-end}.semaphor-scope :is(.sm\:space-x-2>:not([hidden])~:not([hidden])){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.semaphor-scope :is(.sm\:space-x-4>:not([hidden])~:not([hidden])){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.semaphor-scope :is(.sm\:space-y-0>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}.semaphor-scope :is(.sm\:rounded-lg){border-radius:var(--semaphor-radius)}.semaphor-scope :is(.sm\:text-left){text-align:left}.semaphor-scope :is(.sm\:text-sm){font-size:.875rem;line-height:1.25rem}}@media (min-width: 768px){.semaphor-scope :is(.md\:max-h-\[625px\]){max-height:625px}.semaphor-scope :is(.md\:min-w-\[625px\]){min-width:625px}.semaphor-scope :is(.md\:min-w-\[700px\]){min-width:700px}}@media (min-width: 1024px){.semaphor-scope :is(.lg\:min-w-\[1200px\]){min-width:1200px}.semaphor-scope :is(.lg\:min-w-\[900px\]){min-width:900px}}@media (min-width: 1280px){.semaphor-scope :is(.xl\:min-w-\[1000px\]){min-width:1000px}}.semaphor-scope :is(.\[\&\:has\(\[aria-selected\]\)\]\:bg-accent:has([aria-selected])){background-color:hsl(var(--semaphor-accent))}.semaphor-scope :is(.first\:\[\&\:has\(\[aria-selected\]\)\]\:rounded-l-md:has([aria-selected]):first-child){border-top-left-radius:calc(var(--semaphor-radius) - 2px);border-bottom-left-radius:calc(var(--semaphor-radius) - 2px)}.semaphor-scope :is(.last\:\[\&\:has\(\[aria-selected\]\)\]\:rounded-r-md:has([aria-selected]):last-child){border-top-right-radius:calc(var(--semaphor-radius) - 2px);border-bottom-right-radius:calc(var(--semaphor-radius) - 2px)}.semaphor-scope :is(.\[\&\:has\(\[aria-selected\]\.day-outside\)\]\:bg-accent\/50:has([aria-selected].day-outside)){background-color:hsl(var(--semaphor-accent) / .5)}.semaphor-scope :is(.\[\&\:has\(\[aria-selected\]\.day-range-end\)\]\:rounded-r-md:has([aria-selected].day-range-end)){border-top-right-radius:calc(var(--semaphor-radius) - 2px);border-bottom-right-radius:calc(var(--semaphor-radius) - 2px)}.semaphor-scope :is(.\[\&\:has\(\[role\=checkbox\]\)\]\:pr-0:has([role=checkbox])){padding-right:0}.semaphor-scope :is(.\[\&\>li\]\:mt-2>li){margin-top:.5rem}.semaphor-scope :is(.\[\&\>span\]\:line-clamp-1>span){overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.semaphor-scope :is(.\[\&\>tr\]\:last\:border-b-0:last-child>tr){border-bottom-width:0px}.semaphor-scope :is(.\[\&\[data-panel-group-direction\=vertical\]\>div\]\:rotate-90[data-panel-group-direction=vertical]>div){--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.semaphor-scope :is(.\[\&\[data-state\=open\]\>svg\]\:rotate-180[data-state=open]>svg){--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.semaphor-scope :is(.\[\&_\[cmdk-group-heading\]\]\:px-2 [cmdk-group-heading]){padding-left:.5rem;padding-right:.5rem}.semaphor-scope :is(.\[\&_\[cmdk-group-heading\]\]\:py-1\.5 [cmdk-group-heading]){padding-top:.375rem;padding-bottom:.375rem}.semaphor-scope :is(.\[\&_\[cmdk-group-heading\]\]\:text-xs [cmdk-group-heading]){font-size:.75rem;line-height:1rem}.semaphor-scope :is(.\[\&_\[cmdk-group-heading\]\]\:font-medium [cmdk-group-heading]){font-weight:500}.semaphor-scope :is(.\[\&_\[cmdk-group-heading\]\]\:text-muted-foreground [cmdk-group-heading]){color:hsl(var(--semaphor-muted-foreground))}.semaphor-scope :is(.\[\&_\[cmdk-group\]\:not\(\[hidden\]\)_\~\[cmdk-group\]\]\:pt-0 [cmdk-group]:not([hidden])~[cmdk-group]){padding-top:0}.semaphor-scope :is(.\[\&_\[cmdk-group\]\]\:px-2 [cmdk-group]){padding-left:.5rem;padding-right:.5rem}.semaphor-scope :is(.\[\&_\[cmdk-input-wrapper\]_svg\]\:h-5 [cmdk-input-wrapper] svg){height:1.25rem}.semaphor-scope :is(.\[\&_\[cmdk-input-wrapper\]_svg\]\:w-5 [cmdk-input-wrapper] svg){width:1.25rem}.semaphor-scope :is(.\[\&_\[cmdk-input\]\]\:h-12 [cmdk-input]){height:3rem}.semaphor-scope :is(.\[\&_\[cmdk-item\]\]\:px-2 [cmdk-item]){padding-left:.5rem;padding-right:.5rem}.semaphor-scope :is(.\[\&_\[cmdk-item\]\]\:py-3 [cmdk-item]){padding-top:.75rem;padding-bottom:.75rem}.semaphor-scope :is(.\[\&_\[cmdk-item\]_svg\]\:h-5 [cmdk-item] svg){height:1.25rem}.semaphor-scope :is(.\[\&_\[cmdk-item\]_svg\]\:w-5 [cmdk-item] svg){width:1.25rem}.semaphor-scope :is(.\[\&_tr\:last-child\]\:border-0 tr:last-child){border-width:0px}.semaphor-scope :is(.\[\&_tr\]\:border-b tr){border-bottom-width:1px}
1
+ .react-grid-layout{position:relative;transition:height .2s ease}.react-grid-item{transition:all .2s ease;transition-property:left,top,width,height}.react-grid-item img{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-grid-item.cssTransforms{transition-property:transform,width,height}.react-grid-item.resizing{transition:none;z-index:1;will-change:width,height}.react-grid-item.react-draggable-dragging{transition:none;z-index:3;will-change:transform}.react-grid-item.dropping{visibility:hidden}.react-grid-item.react-grid-placeholder{background:red;opacity:.2;transition-duration:.1s;z-index:2;-webkit-user-select:none;-moz-user-select:none;-o-user-select:none;user-select:none}.react-grid-item.react-grid-placeholder.placeholder-resizing{transition:none}.react-grid-item>.react-resizable-handle{position:absolute;width:20px;height:20px}.react-grid-item>.react-resizable-handle:after{content:"";position:absolute;right:3px;bottom:3px;width:5px;height:5px;border-right:2px solid rgba(0,0,0,.4);border-bottom:2px solid rgba(0,0,0,.4)}.react-resizable-hide>.react-resizable-handle{display:none}.react-grid-item>.react-resizable-handle.react-resizable-handle-sw{bottom:0;left:0;cursor:sw-resize;transform:rotate(90deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-se{bottom:0;right:0;cursor:se-resize}.react-grid-item>.react-resizable-handle.react-resizable-handle-nw{top:0;left:0;cursor:nw-resize;transform:rotate(180deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-ne{top:0;right:0;cursor:ne-resize;transform:rotate(270deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-w,.react-grid-item>.react-resizable-handle.react-resizable-handle-e{top:50%;margin-top:-10px;cursor:ew-resize}.react-grid-item>.react-resizable-handle.react-resizable-handle-w{left:0;transform:rotate(135deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-e{right:0;transform:rotate(315deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-n,.react-grid-item>.react-resizable-handle.react-resizable-handle-s{left:50%;margin-left:-10px;cursor:ns-resize}.react-grid-item>.react-resizable-handle.react-resizable-handle-n{top:0;transform:rotate(225deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-s{bottom:0;transform:rotate(45deg)}.react-resizable{position:relative}.react-resizable-handle{position:absolute;width:20px;height:20px;background-repeat:no-repeat;background-origin:content-box;box-sizing:border-box;background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2IDYiIHN0eWxlPSJiYWNrZ3JvdW5kLWNvbG9yOiNmZmZmZmYwMCIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI2cHgiIGhlaWdodD0iNnB4Ij48ZyBvcGFjaXR5PSIwLjMwMiI+PHBhdGggZD0iTSA2IDYgTCAwIDYgTCAwIDQuMiBMIDQgNC4yIEwgNC4yIDQuMiBMIDQuMiAwIEwgNiAwIEwgNiA2IEwgNiA2IFoiIGZpbGw9IiMwMDAwMDAiLz48L2c+PC9zdmc+);background-position:bottom right;padding:0 3px 3px 0}.react-resizable-handle-sw{bottom:0;left:0;cursor:sw-resize;transform:rotate(90deg)}.react-resizable-handle-se{bottom:0;right:0;cursor:se-resize}.react-resizable-handle-nw{top:0;left:0;cursor:nw-resize;transform:rotate(180deg)}.react-resizable-handle-ne{top:0;right:0;cursor:ne-resize;transform:rotate(270deg)}.react-resizable-handle-w,.react-resizable-handle-e{top:50%;margin-top:-10px;cursor:ew-resize}.react-resizable-handle-w{left:0;transform:rotate(135deg)}.react-resizable-handle-e{right:0;transform:rotate(315deg)}.react-resizable-handle-n,.react-resizable-handle-s{left:50%;margin-left:-10px;cursor:ns-resize}.react-resizable-handle-n{top:0;transform:rotate(225deg)}.react-resizable-handle-s{bottom:0;transform:rotate(45deg)}.react-resizable-handle{background-image:none!important;padding:0!important;height:10px!important;width:10px!important}.react-grid-item>.react-resizable-handle:after{border:none!important;content:none!important}.react-grid-item>.react-resizable-handle.react-resizable-handle-n,.react-grid-item>.react-resizable-handle.react-resizable-handle-e,.react-grid-item>.react-resizable-handle.react-resizable-handle-s,.react-grid-item>.react-resizable-handle.react-resizable-handle-w,.react-grid-item>.react-resizable-handle.react-resizable-handle-ne,.react-grid-item>.react-resizable-handle.react-resizable-handle-nw,.react-grid-item>.react-resizable-handle.react-resizable-handle-se,.react-grid-item>.react-resizable-handle.react-resizable-handle-sw{transform:none!important;margin:0!important}.react-grid-item.react-grid-placeholder{background-color:gray!important;background-image:none!important}.kpi-card{container-type:inline-size}@container (inline-size < 270px){.kpi-card>div:nth-of-type(2){display:none}}@container (inline-size > 270px){.kpi-card>div:nth-of-type(2){display:flex}}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}:root{--semaphor-background: 0 0% 100%;--semaphor-foreground: 240 10% 3.9%;--semaphor-card: 0 0% 100%;--semaphor-card-foreground: 240 10% 3.9%;--semaphor-popover: 0 0% 100%;--semaphor-popover-foreground: 240 10% 3.9%;--semaphor-primary: 240 5.9% 10%;--semaphor-primary-foreground: 0 0% 98%;--semaphor-secondary: 240 4.8% 95.9%;--semaphor-secondary-foreground: 240 5.9% 10%;--semaphor-muted: 240 4.8% 95.9%;--semaphor-muted-foreground: 240 3.8% 46.1%;--semaphor-accent: 240 4.8% 95.9%;--semaphor-accent-foreground: 240 5.9% 10%;--semaphor-destructive: 0 84.2% 60.2%;--semaphor-destructive-foreground: 0 0% 98%;--semaphor-border: 240 5.9% 90%;--semaphor-input: 240 5.9% 90%;--semaphor-ring: 240 5.9% 10%;--semaphor-radius: .5rem}.dark{--semaphor-background: 240 10% 10%;--semaphor-foreground: 0 0% 80%;--semaphor-card: 240 10% 10%;--semaphor-card-foreground: 0 0% 80%;--semaphor-popover: 240 10% 10%;--semaphor-popover-foreground: 0 0% 98%;--semaphor-primary: 0 0% 90%;--semaphor-primary-foreground: 240 5.9% 10%;--semaphor-secondary: 240 3.7% 15.9%;--semaphor-secondary-foreground: 0 0% 98%;--semaphor-muted: 240 3.7% 15.9%;--semaphor-muted-foreground: 240 5% 64.9%;--semaphor-accent: 240 3.7% 15.9%;--semaphor-accent-foreground: 0 0% 98%;--semaphor-destructive: 0 62.8% 30.6%;--semaphor-destructive-foreground: 0 0% 98%;--semaphor-border: 240 3.7% 15.9%;--semaphor-input: 240 3.7% 15.9%;--semaphor-ring: 240 4.9% 83.9%}*{border-color:hsl(var(--semaphor-border))}body{background-color:hsl(var(--semaphor-background));color:hsl(var(--semaphor-foreground))}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%;margin-right:auto;margin-left:auto;padding-right:2rem;padding-left:2rem}@media (min-width: 1400px){.container{max-width:1400px}}.semaphor-scope :is(.sr-only){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.semaphor-scope :is(.pointer-events-none){pointer-events:none}.semaphor-scope :is(.visible){visibility:visible}.semaphor-scope :is(.invisible){visibility:hidden}.semaphor-scope :is(.static){position:static}.semaphor-scope :is(.fixed){position:fixed}.semaphor-scope :is(.absolute){position:absolute}.semaphor-scope :is(.relative){position:relative}.semaphor-scope :is(.sticky){position:sticky}.semaphor-scope :is(.inset-0){top:0;right:0;bottom:0;left:0}.semaphor-scope :is(.inset-x-0){left:0;right:0}.semaphor-scope :is(.inset-y-0){top:0;bottom:0}.semaphor-scope :is(.-top-\[1px\]){top:-1px}.semaphor-scope :is(.bottom-0){bottom:0}.semaphor-scope :is(.bottom-4){bottom:1rem}.semaphor-scope :is(.left-0){left:0}.semaphor-scope :is(.left-1){left:.25rem}.semaphor-scope :is(.left-2){left:.5rem}.semaphor-scope :is(.left-\[50\%\]){left:50%}.semaphor-scope :is(.right-0){right:0}.semaphor-scope :is(.right-1){right:.25rem}.semaphor-scope :is(.right-2){right:.5rem}.semaphor-scope :is(.right-3){right:.75rem}.semaphor-scope :is(.right-4){right:1rem}.semaphor-scope :is(.right-6){right:1.5rem}.semaphor-scope :is(.top-0){top:0}.semaphor-scope :is(.top-2){top:.5rem}.semaphor-scope :is(.top-3){top:.75rem}.semaphor-scope :is(.top-4){top:1rem}.semaphor-scope :is(.top-6){top:1.5rem}.semaphor-scope :is(.top-\[50\%\]){top:50%}.semaphor-scope :is(.z-10){z-index:10}.semaphor-scope :is(.z-50){z-index:50}.semaphor-scope :is(.col-span-1){grid-column:span 1 / span 1}.semaphor-scope :is(.col-span-2){grid-column:span 2 / span 2}.semaphor-scope :is(.col-span-3){grid-column:span 3 / span 3}.semaphor-scope :is(.col-span-5){grid-column:span 5 / span 5}.semaphor-scope :is(.col-span-6){grid-column:span 6 / span 6}.semaphor-scope :is(.col-span-7){grid-column:span 7 / span 7}.semaphor-scope :is(.col-start-1){grid-column-start:1}.semaphor-scope :is(.col-start-2){grid-column-start:2}.semaphor-scope :is(.col-start-3){grid-column-start:3}.semaphor-scope :is(.m-2){margin:.5rem}.semaphor-scope :is(.m-auto){margin:auto}.semaphor-scope :is(.-mx-1){margin-left:-.25rem;margin-right:-.25rem}.semaphor-scope :is(.mx-1){margin-left:.25rem;margin-right:.25rem}.semaphor-scope :is(.mx-3){margin-left:.75rem;margin-right:.75rem}.semaphor-scope :is(.mx-6){margin-left:1.5rem;margin-right:1.5rem}.semaphor-scope :is(.mx-auto){margin-left:auto;margin-right:auto}.semaphor-scope :is(.my-1){margin-top:.25rem;margin-bottom:.25rem}.semaphor-scope :is(.my-2){margin-top:.5rem;margin-bottom:.5rem}.semaphor-scope :is(.my-3){margin-top:.75rem;margin-bottom:.75rem}.semaphor-scope :is(.my-4){margin-top:1rem;margin-bottom:1rem}.semaphor-scope :is(.my-6){margin-top:1.5rem;margin-bottom:1.5rem}.semaphor-scope :is(.mb-0){margin-bottom:0}.semaphor-scope :is(.mb-1){margin-bottom:.25rem}.semaphor-scope :is(.mb-2){margin-bottom:.5rem}.semaphor-scope :is(.mb-3){margin-bottom:.75rem}.semaphor-scope :is(.ml-0){margin-left:0}.semaphor-scope :is(.ml-0\.5){margin-left:.125rem}.semaphor-scope :is(.ml-1){margin-left:.25rem}.semaphor-scope :is(.ml-2){margin-left:.5rem}.semaphor-scope :is(.ml-3){margin-left:.75rem}.semaphor-scope :is(.ml-5){margin-left:1.25rem}.semaphor-scope :is(.ml-6){margin-left:1.5rem}.semaphor-scope :is(.ml-\[1px\]){margin-left:1px}.semaphor-scope :is(.ml-auto){margin-left:auto}.semaphor-scope :is(.mr-1){margin-right:.25rem}.semaphor-scope :is(.mr-2){margin-right:.5rem}.semaphor-scope :is(.mr-3){margin-right:.75rem}.semaphor-scope :is(.mt-0){margin-top:0}.semaphor-scope :is(.mt-1){margin-top:.25rem}.semaphor-scope :is(.mt-2){margin-top:.5rem}.semaphor-scope :is(.mt-4){margin-top:1rem}.semaphor-scope :is(.block){display:block}.semaphor-scope :is(.inline-block){display:inline-block}.semaphor-scope :is(.inline){display:inline}.semaphor-scope :is(.flex){display:flex}.semaphor-scope :is(.inline-flex){display:inline-flex}.semaphor-scope :is(.\!table){display:table!important}.semaphor-scope :is(.table){display:table}.semaphor-scope :is(.grid){display:grid}.semaphor-scope :is(.contents){display:contents}.semaphor-scope :is(.hidden){display:none}.semaphor-scope :is(.aspect-square){aspect-ratio:1 / 1}.semaphor-scope :is(.size-10){width:2.5rem;height:2.5rem}.semaphor-scope :is(.size-2){width:.5rem;height:.5rem}.semaphor-scope :is(.size-2\.5){width:.625rem;height:.625rem}.semaphor-scope :is(.size-3){width:.75rem;height:.75rem}.semaphor-scope :is(.size-3\.5){width:.875rem;height:.875rem}.semaphor-scope :is(.size-4){width:1rem;height:1rem}.semaphor-scope :is(.size-5){width:1.25rem;height:1.25rem}.semaphor-scope :is(.size-6){width:1.5rem;height:1.5rem}.semaphor-scope :is(.h-0){height:0px}.semaphor-scope :is(.h-1){height:.25rem}.semaphor-scope :is(.h-10){height:2.5rem}.semaphor-scope :is(.h-11){height:2.75rem}.semaphor-scope :is(.h-12){height:3rem}.semaphor-scope :is(.h-2){height:.5rem}.semaphor-scope :is(.h-2\.5){height:.625rem}.semaphor-scope :is(.h-24){height:6rem}.semaphor-scope :is(.h-3){height:.75rem}.semaphor-scope :is(.h-3\.5){height:.875rem}.semaphor-scope :is(.h-4){height:1rem}.semaphor-scope :is(.h-5){height:1.25rem}.semaphor-scope :is(.h-6){height:1.5rem}.semaphor-scope :is(.h-7){height:1.75rem}.semaphor-scope :is(.h-8){height:2rem}.semaphor-scope :is(.h-9){height:2.25rem}.semaphor-scope :is(.h-\[14px\]){height:14px}.semaphor-scope :is(.h-\[1px\]){height:1px}.semaphor-scope :is(.h-\[34px\]){height:34px}.semaphor-scope :is(.h-\[350px\]){height:350px}.semaphor-scope :is(.h-\[550px\]){height:550px}.semaphor-scope :is(.h-\[625px\]){height:625px}.semaphor-scope :is(.h-\[62vh\]){height:62vh}.semaphor-scope :is(.h-\[75vh\]){height:75vh}.semaphor-scope :is(.h-\[95\%\]){height:95%}.semaphor-scope :is(.h-\[99\%\]){height:99%}.semaphor-scope :is(.h-\[var\(--radix-select-trigger-height\)\]){height:var(--radix-select-trigger-height)}.semaphor-scope :is(.h-fit){height:-moz-fit-content;height:fit-content}.semaphor-scope :is(.h-full){height:100%}.semaphor-scope :is(.h-px){height:1px}.semaphor-scope :is(.h-screen){height:100vh}.semaphor-scope :is(.max-h-10){max-height:2.5rem}.semaphor-scope :is(.max-h-60){max-height:15rem}.semaphor-scope :is(.max-h-96){max-height:24rem}.semaphor-scope :is(.max-h-\[150px\]){max-height:150px}.semaphor-scope :is(.max-h-\[250px\]){max-height:250px}.semaphor-scope :is(.max-h-\[300px\]){max-height:300px}.semaphor-scope :is(.max-h-\[70vh\]){max-height:70vh}.semaphor-scope :is(.min-h-0){min-height:0px}.semaphor-scope :is(.min-h-10){min-height:2.5rem}.semaphor-scope :is(.min-h-7){min-height:1.75rem}.semaphor-scope :is(.min-h-\[220px\]){min-height:220px}.semaphor-scope :is(.min-h-\[250px\]){min-height:250px}.semaphor-scope :is(.min-h-\[500px\]){min-height:500px}.semaphor-scope :is(.min-h-\[70vh\]){min-height:70vh}.semaphor-scope :is(.min-h-\[80px\]){min-height:80px}.semaphor-scope :is(.min-h-fit){min-height:-moz-fit-content;min-height:fit-content}.semaphor-scope :is(.min-h-screen){min-height:100vh}.semaphor-scope :is(.w-1\/2){width:50%}.semaphor-scope :is(.w-1\/3){width:33.333333%}.semaphor-scope :is(.w-10){width:2.5rem}.semaphor-scope :is(.w-11){width:2.75rem}.semaphor-scope :is(.w-2){width:.5rem}.semaphor-scope :is(.w-2\.5){width:.625rem}.semaphor-scope :is(.w-20){width:5rem}.semaphor-scope :is(.w-3){width:.75rem}.semaphor-scope :is(.w-3\.5){width:.875rem}.semaphor-scope :is(.w-3\/4){width:75%}.semaphor-scope :is(.w-4){width:1rem}.semaphor-scope :is(.w-5){width:1.25rem}.semaphor-scope :is(.w-60){width:15rem}.semaphor-scope :is(.w-64){width:16rem}.semaphor-scope :is(.w-7){width:1.75rem}.semaphor-scope :is(.w-72){width:18rem}.semaphor-scope :is(.w-8){width:2rem}.semaphor-scope :is(.w-80){width:20rem}.semaphor-scope :is(.w-9){width:2.25rem}.semaphor-scope :is(.w-\[14px\]){width:14px}.semaphor-scope :is(.w-\[180px\]){width:180px}.semaphor-scope :is(.w-\[1px\]){width:1px}.semaphor-scope :is(.w-\[200px\]){width:200px}.semaphor-scope :is(.w-\[250px\]){width:250px}.semaphor-scope :is(.w-\[270px\]){width:270px}.semaphor-scope :is(.w-\[300px\]){width:300px}.semaphor-scope :is(.w-\[600px\]){width:600px}.semaphor-scope :is(.w-\[99\%\]){width:99%}.semaphor-scope :is(.w-\[99\.5\%\]){width:99.5%}.semaphor-scope :is(.w-auto){width:auto}.semaphor-scope :is(.w-fit){width:-moz-fit-content;width:fit-content}.semaphor-scope :is(.w-full){width:100%}.semaphor-scope :is(.w-px){width:1px}.semaphor-scope :is(.min-w-0){min-width:0px}.semaphor-scope :is(.min-w-14){min-width:3.5rem}.semaphor-scope :is(.min-w-\[275px\]){min-width:275px}.semaphor-scope :is(.min-w-\[320px\]){min-width:320px}.semaphor-scope :is(.min-w-\[350px\]){min-width:350px}.semaphor-scope :is(.min-w-\[8rem\]){min-width:8rem}.semaphor-scope :is(.min-w-\[900px\]){min-width:900px}.semaphor-scope :is(.min-w-\[var\(--radix-select-trigger-width\)\]){min-width:var(--radix-select-trigger-width)}.semaphor-scope :is(.min-w-fit){min-width:-moz-fit-content;min-width:fit-content}.semaphor-scope :is(.min-w-full){min-width:100%}.semaphor-scope :is(.max-w-\[1500px\]){max-width:1500px}.semaphor-scope :is(.max-w-\[200px\]){max-width:200px}.semaphor-scope :is(.max-w-\[500px\]){max-width:500px}.semaphor-scope :is(.max-w-lg){max-width:32rem}.semaphor-scope :is(.flex-1){flex:1 1 0%}.semaphor-scope :is(.shrink){flex-shrink:1}.semaphor-scope :is(.shrink-0){flex-shrink:0}.semaphor-scope :is(.flex-grow){flex-grow:1}.semaphor-scope :is(.grow){flex-grow:1}.semaphor-scope :is(.basis-0){flex-basis:0px}.semaphor-scope :is(.caption-bottom){caption-side:bottom}.semaphor-scope :is(.border-collapse){border-collapse:collapse}.semaphor-scope :is(.translate-x-\[-50\%\]){--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.semaphor-scope :is(.translate-y-\[-50\%\]){--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.semaphor-scope :is(.rotate-0){--tw-rotate: 0deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.semaphor-scope :is(.rotate-180){--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.semaphor-scope :is(.rotate-90){--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.semaphor-scope :is(.rotate-\[135deg\]){--tw-rotate: 135deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.semaphor-scope :is(.scale-0){--tw-scale-x: 0;--tw-scale-y: 0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.semaphor-scope :is(.scale-100){--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.semaphor-scope :is(.animate-pulse){animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.semaphor-scope :is(.animate-spin){animation:spin 1s linear infinite}.semaphor-scope :is(.cursor-default){cursor:default}.semaphor-scope :is(.cursor-pointer){cursor:pointer}.semaphor-scope :is(.touch-none){touch-action:none}.semaphor-scope :is(.select-none){-webkit-user-select:none;-moz-user-select:none;user-select:none}.semaphor-scope :is(.resize-none){resize:none}.semaphor-scope :is(.resize){resize:both}.semaphor-scope :is(.list-disc){list-style-type:disc}.semaphor-scope :is(.grid-cols-12){grid-template-columns:repeat(12,minmax(0,1fr))}.semaphor-scope :is(.grid-cols-3){grid-template-columns:repeat(3,minmax(0,1fr))}.semaphor-scope :is(.grid-cols-5){grid-template-columns:repeat(5,minmax(0,1fr))}.semaphor-scope :is(.grid-cols-6){grid-template-columns:repeat(6,minmax(0,1fr))}.semaphor-scope :is(.grid-cols-8){grid-template-columns:repeat(8,minmax(0,1fr))}.semaphor-scope :is(.grid-cols-9){grid-template-columns:repeat(9,minmax(0,1fr))}.semaphor-scope :is(.flex-row){flex-direction:row}.semaphor-scope :is(.flex-col){flex-direction:column}.semaphor-scope :is(.flex-col-reverse){flex-direction:column-reverse}.semaphor-scope :is(.flex-wrap){flex-wrap:wrap}.semaphor-scope :is(.place-items-center){place-items:center}.semaphor-scope :is(.items-start){align-items:flex-start}.semaphor-scope :is(.items-end){align-items:flex-end}.semaphor-scope :is(.items-center){align-items:center}.semaphor-scope :is(.justify-start){justify-content:flex-start}.semaphor-scope :is(.justify-end){justify-content:flex-end}.semaphor-scope :is(.justify-center){justify-content:center}.semaphor-scope :is(.justify-between){justify-content:space-between}.semaphor-scope :is(.gap-1){gap:.25rem}.semaphor-scope :is(.gap-1\.5){gap:.375rem}.semaphor-scope :is(.gap-2){gap:.5rem}.semaphor-scope :is(.gap-3){gap:.75rem}.semaphor-scope :is(.gap-4){gap:1rem}.semaphor-scope :is(.gap-5){gap:1.25rem}.semaphor-scope :is(.space-x-1>:not([hidden])~:not([hidden])){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.semaphor-scope :is(.space-x-2>:not([hidden])~:not([hidden])){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.semaphor-scope :is(.space-x-3>:not([hidden])~:not([hidden])){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.semaphor-scope :is(.space-x-4>:not([hidden])~:not([hidden])){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.semaphor-scope :is(.space-y-1>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.semaphor-scope :is(.space-y-1\.5>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.semaphor-scope :is(.space-y-2>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.semaphor-scope :is(.space-y-3>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.semaphor-scope :is(.space-y-4>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.semaphor-scope :is(.space-y-6>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.semaphor-scope :is(.self-start){align-self:flex-start}.semaphor-scope :is(.self-end){align-self:flex-end}.semaphor-scope :is(.self-baseline){align-self:baseline}.semaphor-scope :is(.overflow-auto){overflow:auto}.semaphor-scope :is(.overflow-hidden){overflow:hidden}.semaphor-scope :is(.overflow-scroll){overflow:scroll}.semaphor-scope :is(.overflow-y-auto){overflow-y:auto}.semaphor-scope :is(.overflow-x-hidden){overflow-x:hidden}.semaphor-scope :is(.overflow-x-scroll){overflow-x:scroll}.semaphor-scope :is(.overflow-y-scroll){overflow-y:scroll}.semaphor-scope :is(.whitespace-normal){white-space:normal}.semaphor-scope :is(.whitespace-nowrap){white-space:nowrap}.semaphor-scope :is(.whitespace-pre-wrap){white-space:pre-wrap}.semaphor-scope :is(.break-words){overflow-wrap:break-word}.semaphor-scope :is(.rounded){border-radius:.25rem}.semaphor-scope :is(.rounded-\[inherit\]){border-radius:inherit}.semaphor-scope :is(.rounded-full){border-radius:9999px}.semaphor-scope :is(.rounded-lg){border-radius:var(--semaphor-radius)}.semaphor-scope :is(.rounded-md){border-radius:calc(var(--semaphor-radius) - 2px)}.semaphor-scope :is(.rounded-none){border-radius:0}.semaphor-scope :is(.rounded-sm){border-radius:calc(var(--semaphor-radius) - 4px)}.semaphor-scope :is(.rounded-b){border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.semaphor-scope :is(.rounded-b-none){border-bottom-right-radius:0;border-bottom-left-radius:0}.semaphor-scope :is(.rounded-bl-md){border-bottom-left-radius:calc(var(--semaphor-radius) - 2px)}.semaphor-scope :is(.rounded-bl-none){border-bottom-left-radius:0}.semaphor-scope :is(.rounded-br-md){border-bottom-right-radius:calc(var(--semaphor-radius) - 2px)}.semaphor-scope :is(.rounded-br-none){border-bottom-right-radius:0}.semaphor-scope :is(.rounded-tl-md){border-top-left-radius:calc(var(--semaphor-radius) - 2px)}.semaphor-scope :is(.rounded-tl-none){border-top-left-radius:0}.semaphor-scope :is(.rounded-tr-md){border-top-right-radius:calc(var(--semaphor-radius) - 2px)}.semaphor-scope :is(.rounded-tr-none){border-top-right-radius:0}.semaphor-scope :is(.border){border-width:1px}.semaphor-scope :is(.border-2){border-width:2px}.semaphor-scope :is(.border-x){border-left-width:1px;border-right-width:1px}.semaphor-scope :is(.border-b){border-bottom-width:1px}.semaphor-scope :is(.border-b-0){border-bottom-width:0px}.semaphor-scope :is(.border-b-2){border-bottom-width:2px}.semaphor-scope :is(.border-l){border-left-width:1px}.semaphor-scope :is(.border-r){border-right-width:1px}.semaphor-scope :is(.border-r-\[1\.5px\]){border-right-width:1.5px}.semaphor-scope :is(.border-t){border-top-width:1px}.semaphor-scope :is(.border-t-0){border-top-width:0px}.semaphor-scope :is(.border-dashed){border-style:dashed}.semaphor-scope :is(.border-none){border-style:none}.semaphor-scope :is(.border-background){border-color:hsl(var(--semaphor-background))}.semaphor-scope :is(.border-foreground\/40){border-color:hsl(var(--semaphor-foreground) / .4)}.semaphor-scope :is(.border-foreground\/50){border-color:hsl(var(--semaphor-foreground) / .5)}.semaphor-scope :is(.border-input){border-color:hsl(var(--semaphor-input))}.semaphor-scope :is(.border-muted){border-color:hsl(var(--semaphor-muted))}.semaphor-scope :is(.border-primary){border-color:hsl(var(--semaphor-primary))}.semaphor-scope :is(.border-red-400){--tw-border-opacity: 1;border-color:rgb(248 113 113 / var(--tw-border-opacity))}.semaphor-scope :is(.border-red-700){--tw-border-opacity: 1;border-color:rgb(185 28 28 / var(--tw-border-opacity))}.semaphor-scope :is(.border-transparent){border-color:transparent}.semaphor-scope :is(.border-l-transparent){border-left-color:transparent}.semaphor-scope :is(.border-t-muted){border-top-color:hsl(var(--semaphor-muted))}.semaphor-scope :is(.border-t-transparent){border-top-color:transparent}.semaphor-scope :is(.bg-accent){background-color:hsl(var(--semaphor-accent))}.semaphor-scope :is(.bg-background){background-color:hsl(var(--semaphor-background))}.semaphor-scope :is(.bg-background\/50){background-color:hsl(var(--semaphor-background) / .5)}.semaphor-scope :is(.bg-background\/80){background-color:hsl(var(--semaphor-background) / .8)}.semaphor-scope :is(.bg-black\/80){background-color:#000c}.semaphor-scope :is(.bg-blue-300){--tw-bg-opacity: 1;background-color:rgb(147 197 253 / var(--tw-bg-opacity))}.semaphor-scope :is(.bg-border){background-color:hsl(var(--semaphor-border))}.semaphor-scope :is(.bg-card){background-color:hsl(var(--semaphor-card))}.semaphor-scope :is(.bg-destructive){background-color:hsl(var(--semaphor-destructive))}.semaphor-scope :is(.bg-destructive\/10){background-color:hsl(var(--semaphor-destructive) / .1)}.semaphor-scope :is(.bg-foreground\/10){background-color:hsl(var(--semaphor-foreground) / .1)}.semaphor-scope :is(.bg-green-100){--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity))}.semaphor-scope :is(.bg-green-500){--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity))}.semaphor-scope :is(.bg-green-600\/10){background-color:#16a34a1a}.semaphor-scope :is(.bg-muted){background-color:hsl(var(--semaphor-muted))}.semaphor-scope :is(.bg-muted-foreground){background-color:hsl(var(--semaphor-muted-foreground))}.semaphor-scope :is(.bg-muted\/30){background-color:hsl(var(--semaphor-muted) / .3)}.semaphor-scope :is(.bg-muted\/50){background-color:hsl(var(--semaphor-muted) / .5)}.semaphor-scope :is(.bg-muted\/70){background-color:hsl(var(--semaphor-muted) / .7)}.semaphor-scope :is(.bg-popover){background-color:hsl(var(--semaphor-popover))}.semaphor-scope :is(.bg-primary){background-color:hsl(var(--semaphor-primary))}.semaphor-scope :is(.bg-primary-foreground\/20){background-color:hsl(var(--semaphor-primary-foreground) / .2)}.semaphor-scope :is(.bg-red-100){--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity))}.semaphor-scope :is(.bg-red-500){--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity))}.semaphor-scope :is(.bg-secondary){background-color:hsl(var(--semaphor-secondary))}.semaphor-scope :is(.bg-transparent){background-color:transparent}.semaphor-scope :is(.fill-current){fill:currentColor}.semaphor-scope :is(.p-0){padding:0}.semaphor-scope :is(.p-1){padding:.25rem}.semaphor-scope :is(.p-10){padding:2.5rem}.semaphor-scope :is(.p-2){padding:.5rem}.semaphor-scope :is(.p-3){padding:.75rem}.semaphor-scope :is(.p-4){padding:1rem}.semaphor-scope :is(.p-5){padding:1.25rem}.semaphor-scope :is(.p-6){padding:1.5rem}.semaphor-scope :is(.p-\[1px\]){padding:1px}.semaphor-scope :is(.px-0){padding-left:0;padding-right:0}.semaphor-scope :is(.px-1){padding-left:.25rem;padding-right:.25rem}.semaphor-scope :is(.px-2){padding-left:.5rem;padding-right:.5rem}.semaphor-scope :is(.px-2\.5){padding-left:.625rem;padding-right:.625rem}.semaphor-scope :is(.px-3){padding-left:.75rem;padding-right:.75rem}.semaphor-scope :is(.px-4){padding-left:1rem;padding-right:1rem}.semaphor-scope :is(.px-5){padding-left:1.25rem;padding-right:1.25rem}.semaphor-scope :is(.px-6){padding-left:1.5rem;padding-right:1.5rem}.semaphor-scope :is(.px-8){padding-left:2rem;padding-right:2rem}.semaphor-scope :is(.px-\[10px\]){padding-left:10px;padding-right:10px}.semaphor-scope :is(.py-0){padding-top:0;padding-bottom:0}.semaphor-scope :is(.py-0\.5){padding-top:.125rem;padding-bottom:.125rem}.semaphor-scope :is(.py-1){padding-top:.25rem;padding-bottom:.25rem}.semaphor-scope :is(.py-1\.5){padding-top:.375rem;padding-bottom:.375rem}.semaphor-scope :is(.py-2){padding-top:.5rem;padding-bottom:.5rem}.semaphor-scope :is(.py-3){padding-top:.75rem;padding-bottom:.75rem}.semaphor-scope :is(.py-4){padding-top:1rem;padding-bottom:1rem}.semaphor-scope :is(.py-6){padding-top:1.5rem;padding-bottom:1.5rem}.semaphor-scope :is(.py-8){padding-top:2rem;padding-bottom:2rem}.semaphor-scope :is(.py-\[6px\]){padding-top:6px;padding-bottom:6px}.semaphor-scope :is(.pb-0){padding-bottom:0}.semaphor-scope :is(.pb-1){padding-bottom:.25rem}.semaphor-scope :is(.pb-3){padding-bottom:.75rem}.semaphor-scope :is(.pb-4){padding-bottom:1rem}.semaphor-scope :is(.pl-1){padding-left:.25rem}.semaphor-scope :is(.pl-10){padding-left:2.5rem}.semaphor-scope :is(.pl-3){padding-left:.75rem}.semaphor-scope :is(.pl-8){padding-left:2rem}.semaphor-scope :is(.pr-1){padding-right:.25rem}.semaphor-scope :is(.pr-10){padding-right:2.5rem}.semaphor-scope :is(.pr-2){padding-right:.5rem}.semaphor-scope :is(.pr-3){padding-right:.75rem}.semaphor-scope :is(.pr-4){padding-right:1rem}.semaphor-scope :is(.pt-0){padding-top:0}.semaphor-scope :is(.pt-1){padding-top:.25rem}.semaphor-scope :is(.pt-2){padding-top:.5rem}.semaphor-scope :is(.pt-3){padding-top:.75rem}.semaphor-scope :is(.pt-8){padding-top:2rem}.semaphor-scope :is(.text-left){text-align:left}.semaphor-scope :is(.text-center){text-align:center}.semaphor-scope :is(.text-right){text-align:right}.semaphor-scope :is(.align-middle){vertical-align:middle}.semaphor-scope :is(.font-mono){font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.semaphor-scope :is(.text-2xl){font-size:1.5rem;line-height:2rem}.semaphor-scope :is(.text-3xl){font-size:1.875rem;line-height:2.25rem}.semaphor-scope :is(.text-\[0\.8rem\]){font-size:.8rem}.semaphor-scope :is(.text-base){font-size:1rem;line-height:1.5rem}.semaphor-scope :is(.text-lg){font-size:1.125rem;line-height:1.75rem}.semaphor-scope :is(.text-sm){font-size:.875rem;line-height:1.25rem}.semaphor-scope :is(.text-xl){font-size:1.25rem;line-height:1.75rem}.semaphor-scope :is(.text-xs){font-size:.75rem;line-height:1rem}.semaphor-scope :is(.font-bold){font-weight:700}.semaphor-scope :is(.font-extralight){font-weight:200}.semaphor-scope :is(.font-medium){font-weight:500}.semaphor-scope :is(.font-normal){font-weight:400}.semaphor-scope :is(.font-semibold){font-weight:600}.semaphor-scope :is(.font-thin){font-weight:100}.semaphor-scope :is(.uppercase){text-transform:uppercase}.semaphor-scope :is(.italic){font-style:italic}.semaphor-scope :is(.leading-5){line-height:1.25rem}.semaphor-scope :is(.leading-none){line-height:1}.semaphor-scope :is(.leading-relaxed){line-height:1.625}.semaphor-scope :is(.tracking-tight){letter-spacing:-.025em}.semaphor-scope :is(.tracking-wide){letter-spacing:.025em}.semaphor-scope :is(.tracking-widest){letter-spacing:.1em}.semaphor-scope :is(.text-accent-foreground){color:hsl(var(--semaphor-accent-foreground))}.semaphor-scope :is(.text-background){color:hsl(var(--semaphor-background))}.semaphor-scope :is(.text-blue-500){--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.semaphor-scope :is(.text-blue-700){--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity))}.semaphor-scope :is(.text-card){color:hsl(var(--semaphor-card))}.semaphor-scope :is(.text-card-foreground){color:hsl(var(--semaphor-card-foreground))}.semaphor-scope :is(.text-current){color:currentColor}.semaphor-scope :is(.text-destructive){color:hsl(var(--semaphor-destructive))}.semaphor-scope :is(.text-destructive-foreground){color:hsl(var(--semaphor-destructive-foreground))}.semaphor-scope :is(.text-foreground){color:hsl(var(--semaphor-foreground))}.semaphor-scope :is(.text-foreground\/10){color:hsl(var(--semaphor-foreground) / .1)}.semaphor-scope :is(.text-foreground\/30){color:hsl(var(--semaphor-foreground) / .3)}.semaphor-scope :is(.text-foreground\/40){color:hsl(var(--semaphor-foreground) / .4)}.semaphor-scope :is(.text-foreground\/50){color:hsl(var(--semaphor-foreground) / .5)}.semaphor-scope :is(.text-foreground\/70){color:hsl(var(--semaphor-foreground) / .7)}.semaphor-scope :is(.text-foreground\/80){color:hsl(var(--semaphor-foreground) / .8)}.semaphor-scope :is(.text-foreground\/90){color:hsl(var(--semaphor-foreground) / .9)}.semaphor-scope :is(.text-gray-400){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.semaphor-scope :is(.text-gray-700){--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.semaphor-scope :is(.text-gray-900){--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.semaphor-scope :is(.text-green-500){--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity))}.semaphor-scope :is(.text-green-600){--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity))}.semaphor-scope :is(.text-muted){color:hsl(var(--semaphor-muted))}.semaphor-scope :is(.text-muted-foreground){color:hsl(var(--semaphor-muted-foreground))}.semaphor-scope :is(.text-muted-foreground\/40){color:hsl(var(--semaphor-muted-foreground) / .4)}.semaphor-scope :is(.text-muted-foreground\/70){color:hsl(var(--semaphor-muted-foreground) / .7)}.semaphor-scope :is(.text-popover-foreground){color:hsl(var(--semaphor-popover-foreground))}.semaphor-scope :is(.text-primary){color:hsl(var(--semaphor-primary))}.semaphor-scope :is(.text-primary-foreground){color:hsl(var(--semaphor-primary-foreground))}.semaphor-scope :is(.text-red-500){--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.semaphor-scope :is(.text-red-800){--tw-text-opacity: 1;color:rgb(153 27 27 / var(--tw-text-opacity))}.semaphor-scope :is(.text-secondary-foreground){color:hsl(var(--semaphor-secondary-foreground))}.semaphor-scope :is(.underline){text-decoration-line:underline}.semaphor-scope :is(.underline-offset-4){text-underline-offset:4px}.semaphor-scope :is(.opacity-0){opacity:0}.semaphor-scope :is(.opacity-10){opacity:.1}.semaphor-scope :is(.opacity-100){opacity:1}.semaphor-scope :is(.opacity-50){opacity:.5}.semaphor-scope :is(.opacity-60){opacity:.6}.semaphor-scope :is(.opacity-70){opacity:.7}.semaphor-scope :is(.shadow-lg){--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.semaphor-scope :is(.shadow-md){--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.semaphor-scope :is(.shadow-none){--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.semaphor-scope :is(.shadow-sm){--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.semaphor-scope :is(.outline-none){outline:2px solid transparent;outline-offset:2px}.semaphor-scope :is(.outline){outline-style:solid}.semaphor-scope :is(.outline-dashed){outline-style:dashed}.semaphor-scope :is(.outline-\[0\.5px\]){outline-width:.5px}.semaphor-scope :is(.outline-primary\/50){outline-color:hsl(var(--semaphor-primary) / .5)}.semaphor-scope :is(.ring-0){--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.semaphor-scope :is(.ring-1){--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.semaphor-scope :is(.ring-black\/5){--tw-ring-color: rgb(0 0 0 / .05)}.semaphor-scope :is(.ring-offset-background){--tw-ring-offset-color: hsl(var(--semaphor-background))}.semaphor-scope :is(.blur){--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.semaphor-scope :is(.\!filter){filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.semaphor-scope :is(.filter){filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.semaphor-scope :is(.backdrop-blur-sm){--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.semaphor-scope :is(.transition){transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.semaphor-scope :is(.transition-all){transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.semaphor-scope :is(.transition-colors){transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.semaphor-scope :is(.transition-opacity){transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.semaphor-scope :is(.transition-transform){transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.semaphor-scope :is(.duration-100){transition-duration:.1s}.semaphor-scope :is(.duration-200){transition-duration:.2s}.semaphor-scope :is(.ease-in){transition-timing-function:cubic-bezier(.4,0,1,1)}.semaphor-scope :is(.ease-in-out){transition-timing-function:cubic-bezier(.4,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.semaphor-scope :is(.animate-in){animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.semaphor-scope :is(.fade-in-0){--tw-enter-opacity: 0}.semaphor-scope :is(.zoom-in-95){--tw-enter-scale: .95}.semaphor-scope :is(.duration-100){animation-duration:.1s}.semaphor-scope :is(.duration-200){animation-duration:.2s}.semaphor-scope :is(.ease-in){animation-timing-function:cubic-bezier(.4,0,1,1)}.semaphor-scope :is(.ease-in-out){animation-timing-function:cubic-bezier(.4,0,.2,1)}.semaphor-scope :is(.\@container){container-type:inline-size}.semaphor-scope :is(.file\:border-0)::file-selector-button{border-width:0px}.semaphor-scope :is(.file\:bg-transparent)::file-selector-button{background-color:transparent}.semaphor-scope :is(.file\:text-sm)::file-selector-button{font-size:.875rem;line-height:1.25rem}.semaphor-scope :is(.file\:font-medium)::file-selector-button{font-weight:500}.semaphor-scope :is(.placeholder\:text-muted-foreground)::-moz-placeholder{color:hsl(var(--semaphor-muted-foreground))}.semaphor-scope :is(.placeholder\:text-muted-foreground)::placeholder{color:hsl(var(--semaphor-muted-foreground))}.semaphor-scope :is(.after\:absolute):after{content:var(--tw-content);position:absolute}.semaphor-scope :is(.after\:inset-y-0):after{content:var(--tw-content);top:0;bottom:0}.semaphor-scope :is(.after\:left-1\/2):after{content:var(--tw-content);left:50%}.semaphor-scope :is(.after\:w-1):after{content:var(--tw-content);width:.25rem}.semaphor-scope :is(.after\:-translate-x-1\/2):after{content:var(--tw-content);--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.semaphor-scope :is(.after\:content-none):after{--tw-content: none;content:var(--tw-content)}.semaphor-scope :is(.focus-within\:relative:focus-within){position:relative}.semaphor-scope :is(.focus-within\:z-20:focus-within){z-index:20}.semaphor-scope :is(.hover\:cursor-pointer:hover){cursor:pointer}.semaphor-scope :is(.hover\:cursor-text:hover){cursor:text}.semaphor-scope :is(.hover\:bg-accent:hover){background-color:hsl(var(--semaphor-accent))}.semaphor-scope :is(.hover\:bg-destructive\/90:hover){background-color:hsl(var(--semaphor-destructive) / .9)}.semaphor-scope :is(.hover\:bg-gray-200\/50:hover){background-color:#e5e7eb80}.semaphor-scope :is(.hover\:bg-muted:hover){background-color:hsl(var(--semaphor-muted))}.semaphor-scope :is(.hover\:bg-muted-foreground\/50:hover){background-color:hsl(var(--semaphor-muted-foreground) / .5)}.semaphor-scope :is(.hover\:bg-muted\/50:hover){background-color:hsl(var(--semaphor-muted) / .5)}.semaphor-scope :is(.hover\:bg-primary:hover){background-color:hsl(var(--semaphor-primary))}.semaphor-scope :is(.hover\:bg-primary\/90:hover){background-color:hsl(var(--semaphor-primary) / .9)}.semaphor-scope :is(.hover\:bg-secondary\/80:hover){background-color:hsl(var(--semaphor-secondary) / .8)}.semaphor-scope :is(.hover\:text-accent-foreground:hover){color:hsl(var(--semaphor-accent-foreground))}.semaphor-scope :is(.hover\:text-background:hover){color:hsl(var(--semaphor-background))}.semaphor-scope :is(.hover\:text-foreground:hover){color:hsl(var(--semaphor-foreground))}.semaphor-scope :is(.hover\:text-foreground\/100:hover){color:hsl(var(--semaphor-foreground) / 1)}.semaphor-scope :is(.hover\:text-foreground\/50:hover){color:hsl(var(--semaphor-foreground) / .5)}.semaphor-scope :is(.hover\:text-muted-foreground:hover){color:hsl(var(--semaphor-muted-foreground))}.semaphor-scope :is(.hover\:text-primary-foreground:hover){color:hsl(var(--semaphor-primary-foreground))}.semaphor-scope :is(.hover\:underline:hover){text-decoration-line:underline}.semaphor-scope :is(.hover\:opacity-100:hover){opacity:1}.semaphor-scope :is(.focus\:bg-accent:focus){background-color:hsl(var(--semaphor-accent))}.semaphor-scope :is(.focus\:bg-primary:focus){background-color:hsl(var(--semaphor-primary))}.semaphor-scope :is(.focus\:text-accent-foreground:focus){color:hsl(var(--semaphor-accent-foreground))}.semaphor-scope :is(.focus\:text-primary-foreground:focus){color:hsl(var(--semaphor-primary-foreground))}.semaphor-scope :is(.focus\:outline-none:focus){outline:2px solid transparent;outline-offset:2px}.semaphor-scope :is(.focus\:ring-0:focus){--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.semaphor-scope :is(.focus\:ring-1:focus){--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.semaphor-scope :is(.focus\:ring-2:focus){--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.semaphor-scope :is(.focus\:ring-ring:focus){--tw-ring-color: hsl(var(--semaphor-ring))}.semaphor-scope :is(.focus\:ring-offset-0:focus){--tw-ring-offset-width: 0px}.semaphor-scope :is(.focus\:ring-offset-2:focus){--tw-ring-offset-width: 2px}.semaphor-scope :is(.focus-visible\:outline-none:focus-visible){outline:2px solid transparent;outline-offset:2px}.semaphor-scope :is(.focus-visible\:ring-0:focus-visible){--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.semaphor-scope :is(.focus-visible\:ring-1:focus-visible){--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.semaphor-scope :is(.focus-visible\:ring-2:focus-visible){--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.semaphor-scope :is(.focus-visible\:ring-background\/75:focus-visible){--tw-ring-color: hsl(var(--semaphor-background) / .75)}.semaphor-scope :is(.focus-visible\:ring-ring:focus-visible){--tw-ring-color: hsl(var(--semaphor-ring))}.semaphor-scope :is(.focus-visible\:ring-offset-0:focus-visible){--tw-ring-offset-width: 0px}.semaphor-scope :is(.focus-visible\:ring-offset-1:focus-visible){--tw-ring-offset-width: 1px}.semaphor-scope :is(.focus-visible\:ring-offset-2:focus-visible){--tw-ring-offset-width: 2px}.semaphor-scope :is(.focus-visible\:ring-offset-background:focus-visible){--tw-ring-offset-color: hsl(var(--semaphor-background))}.semaphor-scope :is(.disabled\:pointer-events-none:disabled){pointer-events:none}.semaphor-scope :is(.disabled\:cursor-not-allowed:disabled){cursor:not-allowed}.semaphor-scope :is(.disabled\:opacity-50:disabled){opacity:.5}.semaphor-scope :is(.group:hover .group-hover\:visible){visibility:visible}.semaphor-scope :is(.group:hover .group-hover\:border-2){border-width:2px}.semaphor-scope :is(.group:hover .group-hover\:border-b-0){border-bottom-width:0px}.semaphor-scope :is(.group:hover .group-hover\:border-l-0){border-left-width:0px}.semaphor-scope :is(.group:hover .group-hover\:border-r-0){border-right-width:0px}.semaphor-scope :is(.group:hover .group-hover\:border-t-0){border-top-width:0px}.semaphor-scope :is(.group.toaster .group-\[\.toaster\]\:border-border){border-color:hsl(var(--semaphor-border))}.semaphor-scope :is(.group.toast .group-\[\.toast\]\:bg-muted){background-color:hsl(var(--semaphor-muted))}.semaphor-scope :is(.group.toast .group-\[\.toast\]\:bg-primary){background-color:hsl(var(--semaphor-primary))}.semaphor-scope :is(.group.toaster .group-\[\.toaster\]\:bg-background){background-color:hsl(var(--semaphor-background))}.semaphor-scope :is(.group.toast .group-\[\.toast\]\:text-muted-foreground){color:hsl(var(--semaphor-muted-foreground))}.semaphor-scope :is(.group.toast .group-\[\.toast\]\:text-primary-foreground){color:hsl(var(--semaphor-primary-foreground))}.semaphor-scope :is(.group.toaster .group-\[\.toaster\]\:text-foreground){color:hsl(var(--semaphor-foreground))}.semaphor-scope :is(.group.toaster .group-\[\.toaster\]\:shadow-lg){--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.semaphor-scope :is(.peer:disabled~.peer-disabled\:cursor-not-allowed){cursor:not-allowed}.semaphor-scope :is(.peer:disabled~.peer-disabled\:opacity-70){opacity:.7}.semaphor-scope :is(.aria-selected\:bg-accent[aria-selected=true]){background-color:hsl(var(--semaphor-accent))}.semaphor-scope :is(.aria-selected\:bg-accent\/50[aria-selected=true]){background-color:hsl(var(--semaphor-accent) / .5)}.semaphor-scope :is(.aria-selected\:text-accent-foreground[aria-selected=true]){color:hsl(var(--semaphor-accent-foreground))}.semaphor-scope :is(.aria-selected\:text-muted-foreground[aria-selected=true]){color:hsl(var(--semaphor-muted-foreground))}.semaphor-scope :is(.aria-selected\:opacity-100[aria-selected=true]){opacity:1}.semaphor-scope :is(.aria-selected\:opacity-30[aria-selected=true]){opacity:.3}.semaphor-scope :is(.data-\[disabled\]\:pointer-events-none[data-disabled]){pointer-events:none}.semaphor-scope :is(.data-\[panel-group-direction\=vertical\]\:h-px[data-panel-group-direction=vertical]){height:1px}.semaphor-scope :is(.data-\[panel-group-direction\=vertical\]\:w-full[data-panel-group-direction=vertical]){width:100%}.semaphor-scope :is(.data-\[side\=bottom\]\:translate-y-1[data-side=bottom]){--tw-translate-y: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.semaphor-scope :is(.data-\[side\=left\]\:-translate-x-1[data-side=left]){--tw-translate-x: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.semaphor-scope :is(.data-\[side\=right\]\:translate-x-1[data-side=right]){--tw-translate-x: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.semaphor-scope :is(.data-\[side\=top\]\:-translate-y-1[data-side=top]){--tw-translate-y: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.semaphor-scope :is(.data-\[state\=checked\]\:translate-x-4[data-state=checked]){--tw-translate-x: 1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.semaphor-scope :is(.data-\[state\=checked\]\:translate-x-5[data-state=checked]){--tw-translate-x: 1.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.semaphor-scope :is(.data-\[state\=unchecked\]\:translate-x-0[data-state=unchecked]){--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes accordion-up{0%{height:var(--radix-accordion-content-height)}to{height:0}}.semaphor-scope :is(.data-\[state\=closed\]\:animate-accordion-up[data-state=closed]){animation:accordion-up .2s ease-out}@keyframes accordion-down{0%{height:0}to{height:var(--radix-accordion-content-height)}}.semaphor-scope :is(.data-\[state\=open\]\:animate-accordion-down[data-state=open]){animation:accordion-down .2s ease-out}.semaphor-scope :is(.data-\[panel-group-direction\=vertical\]\:flex-col[data-panel-group-direction=vertical]){flex-direction:column}.semaphor-scope :is(.data-\[state\=selected\]\:border-2[data-state=selected]){border-width:2px}.semaphor-scope :is(.data-\[state\=selected\]\:border-dashed[data-state=selected]){border-style:dashed}.semaphor-scope :is(.data-\[state\=active\]\:bg-background[data-state=active]){background-color:hsl(var(--semaphor-background))}.semaphor-scope :is(.data-\[state\=checked\]\:bg-foreground\/50[data-state=checked]){background-color:hsl(var(--semaphor-foreground) / .5)}.semaphor-scope :is(.data-\[state\=checked\]\:bg-primary[data-state=checked]){background-color:hsl(var(--semaphor-primary))}.semaphor-scope :is(.data-\[state\=on\]\:bg-accent[data-state=on]){background-color:hsl(var(--semaphor-accent))}.semaphor-scope :is(.data-\[state\=open\]\:bg-accent[data-state=open]){background-color:hsl(var(--semaphor-accent))}.semaphor-scope :is(.data-\[state\=open\]\:bg-secondary[data-state=open]){background-color:hsl(var(--semaphor-secondary))}.semaphor-scope :is(.data-\[state\=selected\]\:bg-muted[data-state=selected]){background-color:hsl(var(--semaphor-muted))}.semaphor-scope :is(.data-\[state\=unchecked\]\:bg-input[data-state=unchecked]){background-color:hsl(var(--semaphor-input))}.semaphor-scope :is(.data-\[state\=active\]\:text-foreground[data-state=active]){color:hsl(var(--semaphor-foreground))}.semaphor-scope :is(.data-\[state\=checked\]\:text-primary-foreground[data-state=checked]){color:hsl(var(--semaphor-primary-foreground))}.semaphor-scope :is(.data-\[state\=on\]\:text-accent-foreground[data-state=on]){color:hsl(var(--semaphor-accent-foreground))}.semaphor-scope :is(.data-\[state\=open\]\:text-muted-foreground[data-state=open]){color:hsl(var(--semaphor-muted-foreground))}.semaphor-scope :is(.data-\[disabled\]\:opacity-50[data-disabled]){opacity:.5}.semaphor-scope :is(.data-\[state\=active\]\:shadow-sm[data-state=active]){--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.semaphor-scope :is(.data-\[state\=closed\]\:duration-300[data-state=closed]){transition-duration:.3s}.semaphor-scope :is(.data-\[state\=open\]\:duration-500[data-state=open]){transition-duration:.5s}.semaphor-scope :is(.data-\[state\=open\]\:animate-in[data-state=open]){animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.semaphor-scope :is(.data-\[state\=closed\]\:animate-out[data-state=closed]){animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.semaphor-scope :is(.data-\[state\=closed\]\:fade-out-0[data-state=closed]){--tw-exit-opacity: 0}.semaphor-scope :is(.data-\[state\=open\]\:fade-in-0[data-state=open]){--tw-enter-opacity: 0}.semaphor-scope :is(.data-\[state\=closed\]\:zoom-out-95[data-state=closed]){--tw-exit-scale: .95}.semaphor-scope :is(.data-\[state\=open\]\:zoom-in-95[data-state=open]){--tw-enter-scale: .95}.semaphor-scope :is(.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]){--tw-enter-translate-y: -.5rem}.semaphor-scope :is(.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]){--tw-enter-translate-x: .5rem}.semaphor-scope :is(.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]){--tw-enter-translate-x: -.5rem}.semaphor-scope :is(.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]){--tw-enter-translate-y: .5rem}.semaphor-scope :is(.data-\[state\=closed\]\:slide-out-to-bottom[data-state=closed]){--tw-exit-translate-y: 100%}.semaphor-scope :is(.data-\[state\=closed\]\:slide-out-to-left[data-state=closed]){--tw-exit-translate-x: -100%}.semaphor-scope :is(.data-\[state\=closed\]\:slide-out-to-left-1\/2[data-state=closed]){--tw-exit-translate-x: -50%}.semaphor-scope :is(.data-\[state\=closed\]\:slide-out-to-right[data-state=closed]){--tw-exit-translate-x: 100%}.semaphor-scope :is(.data-\[state\=closed\]\:slide-out-to-top[data-state=closed]){--tw-exit-translate-y: -100%}.semaphor-scope :is(.data-\[state\=closed\]\:slide-out-to-top-\[48\%\][data-state=closed]){--tw-exit-translate-y: -48%}.semaphor-scope :is(.data-\[state\=open\]\:slide-in-from-bottom[data-state=open]){--tw-enter-translate-y: 100%}.semaphor-scope :is(.data-\[state\=open\]\:slide-in-from-left[data-state=open]){--tw-enter-translate-x: -100%}.semaphor-scope :is(.data-\[state\=open\]\:slide-in-from-left-1\/2[data-state=open]){--tw-enter-translate-x: -50%}.semaphor-scope :is(.data-\[state\=open\]\:slide-in-from-right[data-state=open]){--tw-enter-translate-x: 100%}.semaphor-scope :is(.data-\[state\=open\]\:slide-in-from-top[data-state=open]){--tw-enter-translate-y: -100%}.semaphor-scope :is(.data-\[state\=open\]\:slide-in-from-top-\[48\%\][data-state=open]){--tw-enter-translate-y: -48%}.semaphor-scope :is(.data-\[state\=closed\]\:duration-300[data-state=closed]){animation-duration:.3s}.semaphor-scope :is(.data-\[state\=open\]\:duration-500[data-state=open]){animation-duration:.5s}.semaphor-scope :is(.data-\[panel-group-direction\=vertical\]\:after\:left-0[data-panel-group-direction=vertical]):after{content:var(--tw-content);left:0}.semaphor-scope :is(.data-\[panel-group-direction\=vertical\]\:after\:h-1[data-panel-group-direction=vertical]):after{content:var(--tw-content);height:.25rem}.semaphor-scope :is(.data-\[panel-group-direction\=vertical\]\:after\:w-full[data-panel-group-direction=vertical]):after{content:var(--tw-content);width:100%}.semaphor-scope :is(.data-\[panel-group-direction\=vertical\]\:after\:-translate-y-1\/2[data-panel-group-direction=vertical]):after{content:var(--tw-content);--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.semaphor-scope :is(.data-\[panel-group-direction\=vertical\]\:after\:translate-x-0[data-panel-group-direction=vertical]):after{content:var(--tw-content);--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@container (min-width: 20rem){.semaphor-scope :is(.\@xs\:flex){display:flex}}.semaphor-scope :is(.dark .dark\:h-\[2px\]){height:2px}.semaphor-scope :is(.dark .dark\:-rotate-90){--tw-rotate: -90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.semaphor-scope :is(.dark .dark\:rotate-0){--tw-rotate: 0deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.semaphor-scope :is(.dark .dark\:scale-0){--tw-scale-x: 0;--tw-scale-y: 0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.semaphor-scope :is(.dark .dark\:scale-100){--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.semaphor-scope :is(.dark .dark\:border-foreground\/70){border-color:hsl(var(--semaphor-foreground) / .7)}.semaphor-scope :is(.dark .dark\:border-l-background){border-left-color:hsl(var(--semaphor-background))}.semaphor-scope :is(.dark .dark\:bg-foreground\/5){background-color:hsl(var(--semaphor-foreground) / .05)}@media (min-width: 640px){.semaphor-scope :is(.sm\:mt-0){margin-top:0}.semaphor-scope :is(.sm\:min-w-\[500px\]){min-width:500px}.semaphor-scope :is(.sm\:min-w-\[900px\]){min-width:900px}.semaphor-scope :is(.sm\:max-w-\[425px\]){max-width:425px}.semaphor-scope :is(.sm\:max-w-sm){max-width:24rem}.semaphor-scope :is(.sm\:flex-row){flex-direction:row}.semaphor-scope :is(.sm\:justify-end){justify-content:flex-end}.semaphor-scope :is(.sm\:space-x-2>:not([hidden])~:not([hidden])){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.semaphor-scope :is(.sm\:space-x-4>:not([hidden])~:not([hidden])){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.semaphor-scope :is(.sm\:space-y-0>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}.semaphor-scope :is(.sm\:rounded-lg){border-radius:var(--semaphor-radius)}.semaphor-scope :is(.sm\:text-left){text-align:left}.semaphor-scope :is(.sm\:text-sm){font-size:.875rem;line-height:1.25rem}}@media (min-width: 768px){.semaphor-scope :is(.md\:max-h-\[625px\]){max-height:625px}.semaphor-scope :is(.md\:min-w-\[625px\]){min-width:625px}.semaphor-scope :is(.md\:min-w-\[700px\]){min-width:700px}}@media (min-width: 1024px){.semaphor-scope :is(.lg\:min-w-\[1200px\]){min-width:1200px}.semaphor-scope :is(.lg\:min-w-\[900px\]){min-width:900px}}@media (min-width: 1280px){.semaphor-scope :is(.xl\:min-w-\[1000px\]){min-width:1000px}}.semaphor-scope :is(.\[\&\:has\(\[aria-selected\]\)\]\:bg-accent:has([aria-selected])){background-color:hsl(var(--semaphor-accent))}.semaphor-scope :is(.first\:\[\&\:has\(\[aria-selected\]\)\]\:rounded-l-md:has([aria-selected]):first-child){border-top-left-radius:calc(var(--semaphor-radius) - 2px);border-bottom-left-radius:calc(var(--semaphor-radius) - 2px)}.semaphor-scope :is(.last\:\[\&\:has\(\[aria-selected\]\)\]\:rounded-r-md:has([aria-selected]):last-child){border-top-right-radius:calc(var(--semaphor-radius) - 2px);border-bottom-right-radius:calc(var(--semaphor-radius) - 2px)}.semaphor-scope :is(.\[\&\:has\(\[aria-selected\]\.day-outside\)\]\:bg-accent\/50:has([aria-selected].day-outside)){background-color:hsl(var(--semaphor-accent) / .5)}.semaphor-scope :is(.\[\&\:has\(\[aria-selected\]\.day-range-end\)\]\:rounded-r-md:has([aria-selected].day-range-end)){border-top-right-radius:calc(var(--semaphor-radius) - 2px);border-bottom-right-radius:calc(var(--semaphor-radius) - 2px)}.semaphor-scope :is(.\[\&\:has\(\[role\=checkbox\]\)\]\:pr-0:has([role=checkbox])){padding-right:0}.semaphor-scope :is(.\[\&\>li\]\:mt-2>li){margin-top:.5rem}.semaphor-scope :is(.\[\&\>span\]\:line-clamp-1>span){overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.semaphor-scope :is(.\[\&\>tr\]\:last\:border-b-0:last-child>tr){border-bottom-width:0px}.semaphor-scope :is(.\[\&\[data-panel-group-direction\=vertical\]\>div\]\:rotate-90[data-panel-group-direction=vertical]>div){--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.semaphor-scope :is(.\[\&\[data-state\=open\]\>svg\]\:rotate-180[data-state=open]>svg){--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.semaphor-scope :is(.\[\&_\[cmdk-group-heading\]\]\:px-2 [cmdk-group-heading]){padding-left:.5rem;padding-right:.5rem}.semaphor-scope :is(.\[\&_\[cmdk-group-heading\]\]\:py-1\.5 [cmdk-group-heading]){padding-top:.375rem;padding-bottom:.375rem}.semaphor-scope :is(.\[\&_\[cmdk-group-heading\]\]\:text-xs [cmdk-group-heading]){font-size:.75rem;line-height:1rem}.semaphor-scope :is(.\[\&_\[cmdk-group-heading\]\]\:font-medium [cmdk-group-heading]){font-weight:500}.semaphor-scope :is(.\[\&_\[cmdk-group-heading\]\]\:text-muted-foreground [cmdk-group-heading]){color:hsl(var(--semaphor-muted-foreground))}.semaphor-scope :is(.\[\&_\[cmdk-group\]\:not\(\[hidden\]\)_\~\[cmdk-group\]\]\:pt-0 [cmdk-group]:not([hidden])~[cmdk-group]){padding-top:0}.semaphor-scope :is(.\[\&_\[cmdk-group\]\]\:px-2 [cmdk-group]){padding-left:.5rem;padding-right:.5rem}.semaphor-scope :is(.\[\&_\[cmdk-input-wrapper\]_svg\]\:h-5 [cmdk-input-wrapper] svg){height:1.25rem}.semaphor-scope :is(.\[\&_\[cmdk-input-wrapper\]_svg\]\:w-5 [cmdk-input-wrapper] svg){width:1.25rem}.semaphor-scope :is(.\[\&_\[cmdk-input\]\]\:h-12 [cmdk-input]){height:3rem}.semaphor-scope :is(.\[\&_\[cmdk-item\]\]\:px-2 [cmdk-item]){padding-left:.5rem;padding-right:.5rem}.semaphor-scope :is(.\[\&_\[cmdk-item\]\]\:py-3 [cmdk-item]){padding-top:.75rem;padding-bottom:.75rem}.semaphor-scope :is(.\[\&_\[cmdk-item\]_svg\]\:h-5 [cmdk-item] svg){height:1.25rem}.semaphor-scope :is(.\[\&_\[cmdk-item\]_svg\]\:w-5 [cmdk-item] svg){width:1.25rem}.semaphor-scope :is(.\[\&_tr\:last-child\]\:border-0 tr:last-child){border-width:0px}.semaphor-scope :is(.\[\&_tr\]\:border-b tr){border-bottom-width:1px}
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../chunks/dashboard-plus-kjtK1yiD.js");require("../chunks/index-lHh_nXy9.js");require("react");require("react-dom");exports.Surfboard=r.DashboardPlus;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../chunks/dashboard-plus-dEPjezMB.js");require("../chunks/index-vW_7Osti.js");require("react");require("react-dom");exports.Surfboard=r.DashboardPlus;
@@ -1,5 +1,5 @@
1
- import { D as i } from "../chunks/dashboard-plus-9rfBGTmw.js";
2
- import "../chunks/index-XCmfOUgI.js";
1
+ import { D as i } from "../chunks/dashboard-plus-Ht9PASKI.js";
2
+ import "../chunks/index-uCOEDYik.js";
3
3
  import "react";
4
4
  import "react-dom";
5
5
  export {
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "email": "support@semaphor.cloud"
6
6
  },
7
7
  "license": "MIT",
8
- "version": "0.0.245",
8
+ "version": "0.0.246",
9
9
  "description": "Fully interactive and customizable dashboards for your apps.",
10
10
  "keywords": [
11
11
  "react",