studiograph 1.3.44-next.13 → 1.3.44-next.15

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.
Files changed (64) hide show
  1. package/dist/web/_app/immutable/assets/2.Dp4DXq6m.css +1 -0
  2. package/dist/web/_app/immutable/assets/4.DPdQ7P6j.css +1 -0
  3. package/dist/web/_app/immutable/assets/{8.typoxX8e.css → 8.DXc-iTTx.css} +1 -1
  4. package/dist/web/_app/immutable/chunks/{D6cVys5p.js → 2U5cDetP.js} +1 -1
  5. package/dist/web/_app/immutable/chunks/{D3QkosGt.js → 4uEV2Hr-.js} +1 -1
  6. package/dist/web/_app/immutable/chunks/{DYvpKXdA.js → 9rXsO0Bz.js} +1 -1
  7. package/dist/web/_app/immutable/chunks/{BYR-dNJ1.js → B0EJwvaI.js} +1 -1
  8. package/dist/web/_app/immutable/chunks/{DLWveUsw.js → B4jNhkRC.js} +1 -1
  9. package/dist/web/_app/immutable/chunks/{Zhai-RNf.js → BKUmpdNY.js} +1 -1
  10. package/dist/web/_app/immutable/chunks/{D6Lva3KM.js → BSSN_IAc.js} +1 -1
  11. package/dist/web/_app/immutable/chunks/{BJBX4SKZ.js → BdF6nRVd.js} +1 -1
  12. package/dist/web/_app/immutable/chunks/{DxfAvVJc.js → BdOJnB5W.js} +1 -1
  13. package/dist/web/_app/immutable/chunks/{MumxzvFg.js → BlhrCD_-.js} +2 -2
  14. package/dist/web/_app/immutable/chunks/{CHat18Z1.js → BnpnuDO4.js} +1 -1
  15. package/dist/web/_app/immutable/chunks/{Bk8fVkoK.js → BtBweNkk.js} +1 -1
  16. package/dist/web/_app/immutable/chunks/{CzDsEODJ.js → BxUeCm7h.js} +1 -1
  17. package/dist/web/_app/immutable/chunks/{BEGjic-p.js → C8u4qksr.js} +1 -1
  18. package/dist/web/_app/immutable/chunks/{CcZpH1ju.js → CO5wfegi.js} +1 -1
  19. package/dist/web/_app/immutable/chunks/Ce71etNw.js +1 -0
  20. package/dist/web/_app/immutable/chunks/{EihZTlx6.js → CiAwDBAJ.js} +1 -1
  21. package/dist/web/_app/immutable/chunks/{CIhtHHtB.js → CkIXD8Ce.js} +1 -1
  22. package/dist/web/_app/immutable/chunks/{nvDiOb2E.js → CoRi7XbI.js} +1 -1
  23. package/dist/web/_app/immutable/chunks/{C6o4-5Jc.js → D94pMxcD.js} +1 -1
  24. package/dist/web/_app/immutable/chunks/{DvO9pXIe.js → DBGzF5AH.js} +1 -1
  25. package/dist/web/_app/immutable/chunks/DJQi596I.js +1 -0
  26. package/dist/web/_app/immutable/chunks/{iZnTs-Zk.js → DNrFMx27.js} +1 -1
  27. package/dist/web/_app/immutable/chunks/{DmbGlfj8.js → DSHYHas-.js} +1 -1
  28. package/dist/web/_app/immutable/chunks/{Btb43C3I.js → DhsBMOEB.js} +1 -1
  29. package/dist/web/_app/immutable/chunks/{Z7amP7yh.js → Dp_zRVHI.js} +1 -1
  30. package/dist/web/_app/immutable/chunks/{bJHY9GmW.js → DsYH5GX4.js} +1 -1
  31. package/dist/web/_app/immutable/chunks/{xwFtwYnE.js → DvmL5xMZ.js} +1 -1
  32. package/dist/web/_app/immutable/chunks/{LMiDqdV2.js → DycWivyI.js} +1 -1
  33. package/dist/web/_app/immutable/chunks/{C8Y6xIC4.js → OZfYVFGq.js} +1 -1
  34. package/dist/web/_app/immutable/chunks/{CrUJgkXY.js → faGDeGnG.js} +1 -1
  35. package/dist/web/_app/immutable/chunks/{BZEMt5cm.js → gawey_BW.js} +1 -1
  36. package/dist/web/_app/immutable/chunks/{AtgAMDzg.js → ghYWEYsA.js} +1 -1
  37. package/dist/web/_app/immutable/chunks/{D1SfcMkP.js → pwfF2-tA.js} +1 -1
  38. package/dist/web/_app/immutable/chunks/{e913tUZv.js → sZJoCX5N.js} +1 -1
  39. package/dist/web/_app/immutable/chunks/{DWXBtS4C.js → vDYEuD31.js} +1 -1
  40. package/dist/web/_app/immutable/entry/app.WkFuTl18.js +2 -0
  41. package/dist/web/_app/immutable/entry/start.Bt-UTKkT.js +1 -0
  42. package/dist/web/_app/immutable/nodes/{0.BdgXr-pL.js → 0.BdzLhs6y.js} +2 -2
  43. package/dist/web/_app/immutable/nodes/{1.TbRWZdMF.js → 1.DOsT3YpP.js} +1 -1
  44. package/dist/web/_app/immutable/nodes/{10.BKT_t6uj.js → 10.vlYVIeYh.js} +1 -1
  45. package/dist/web/_app/immutable/nodes/2.Ck0Fw-RM.js +84 -0
  46. package/dist/web/_app/immutable/nodes/{3.BN2A-Xvj.js → 3.HmWHFWtD.js} +1 -1
  47. package/dist/web/_app/immutable/nodes/4.iAotNgHN.js +11 -0
  48. package/dist/web/_app/immutable/nodes/{5.bQNmtfyR.js → 5.D0WGwkld.js} +1 -1
  49. package/dist/web/_app/immutable/nodes/{6.pIg7-OuF.js → 6.ve0vFfHO.js} +1 -1
  50. package/dist/web/_app/immutable/nodes/{7.GE6wU3-T.js → 7.CMXqOBXH.js} +1 -1
  51. package/dist/web/_app/immutable/nodes/{8.BdAUYAfR.js → 8.BRPlhPIO.js} +1 -1
  52. package/dist/web/_app/immutable/nodes/{9.BB838-uI.js → 9._H99xxvk.js} +1 -1
  53. package/dist/web/_app/version.json +1 -1
  54. package/dist/web/index.html +11 -11
  55. package/package.json +1 -1
  56. package/dist/web/_app/immutable/assets/2.DNpjFx0k.css +0 -1
  57. package/dist/web/_app/immutable/assets/4.DNq68wHi.css +0 -1
  58. package/dist/web/_app/immutable/chunks/BsdMYUpR.js +0 -1
  59. package/dist/web/_app/immutable/chunks/BvV0_74V.js +0 -1
  60. package/dist/web/_app/immutable/chunks/eJ_5ITus.js +0 -1
  61. package/dist/web/_app/immutable/entry/app.6jFeVTd5.js +0 -2
  62. package/dist/web/_app/immutable/entry/start.Br78T-IN.js +0 -1
  63. package/dist/web/_app/immutable/nodes/2.BxoTrZf-.js +0 -84
  64. package/dist/web/_app/immutable/nodes/4.lZR-3hqX.js +0 -11
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./CcZpH1ju.js","./e913tUZv.js","./xwFtwYnE.js","./C8Y6xIC4.js"])))=>i.map(i=>d[i]);
2
- import{_ as G}from"./PPVm8Dsz.js";import{aW as Y,a1 as C,aV as q,e as S,f as P,g,s as c,a7 as D,a4 as z}from"./e913tUZv.js";import{i as K}from"./BsdMYUpR.js";import{i as H,w as h}from"./xwFtwYnE.js";import{a as Q}from"./Bk8fVkoK.js";import{n as $}from"./CIhtHHtB.js";import{l as X,o as N}from"./BJBX4SKZ.js";function Ct(...t){return t.filter(Boolean).join(" ")}const Z=typeof document<"u",v=typeof window<"u"?window:void 0;function tt(t){let e=t.activeElement;for(;e?.shadowRoot;){const s=e.shadowRoot.activeElement;if(s===e)break;e=s}return e}class et{#e;#t;constructor(e={}){const{window:s=v,document:i=s?.document}=e;s!==void 0&&(this.#e=i,this.#t=X(n=>{const r=N(s,"focusin",n),o=N(s,"focusout",n);return()=>{r(),o()}}))}get current(){return this.#t?.(),this.#e?tt(this.#e):null}}new et;class st{#e;#t;constructor(e){this.#e=e,this.#t=Symbol(e)}get key(){return this.#t}exists(){return Y(this.#t)}get(){const e=C(this.#t);if(e===void 0)throw new Error(`Context "${this.#e}" not found`);return e}getOr(e){const s=C(this.#t);return s===void 0?e:s}set(e){return q(this.#t,e)}}const it=new st("<Toaster/>");let U=0;class nt{#e=S(P([]));get toasts(){return g(this.#e)}set toasts(e){c(this.#e,e,!0)}#t=S(P([]));get heights(){return g(this.#t)}set heights(e){c(this.#t,e,!0)}#s=e=>{const s=this.toasts.findIndex(i=>i.id===e);return s===-1?null:s};addToast=e=>{Z&&this.toasts.unshift(e)};updateToast=({id:e,data:s,type:i,message:n})=>{const r=this.toasts.findIndex(f=>f.id===e),o=this.toasts[r];this.toasts[r]={...o,...s,id:e,title:n,type:i,updated:!0}};create=e=>{const{message:s,...i}=e,n=typeof e?.id=="number"||e.id&&e.id?.length>0?e.id:U++,r=e.dismissible!==void 0?e.dismissible:e.dismissable!==void 0?e.dismissable:!0,o=e.type===void 0?"default":e.type;return D(()=>{this.toasts.find(E=>E.id===n)?this.updateToast({id:n,data:e,type:o,message:s,dismissible:r}):this.addToast({...i,id:n,title:s,dismissible:r,type:o})}),n};dismiss=e=>(D(()=>{if(e===void 0){this.toasts=this.toasts.map(i=>({...i,dismiss:!0}));return}const s=this.toasts.findIndex(i=>i.id===e);this.toasts[s]&&(this.toasts[s]={...this.toasts[s],dismiss:!0})}),e);remove=e=>{if(e===void 0){this.toasts=[];return}const s=this.#s(e);if(s!==null)return this.toasts.splice(s,1),e};message=(e,s)=>this.create({...s,type:"default",message:e});error=(e,s)=>this.create({...s,type:"error",message:e});success=(e,s)=>this.create({...s,type:"success",message:e});info=(e,s)=>this.create({...s,type:"info",message:e});warning=(e,s)=>this.create({...s,type:"warning",message:e});loading=(e,s)=>this.create({...s,type:"loading",message:e});promise=(e,s)=>{if(!s)return;let i;s.loading!==void 0&&(i=this.create({...s,promise:e,type:"loading",message:typeof s.loading=="string"?s.loading:s.loading()}));const n=e instanceof Promise?e:e();let r=i!==void 0;return n.then(o=>{if(typeof o=="object"&&o&&"ok"in o&&typeof o.ok=="boolean"&&!o.ok){r=!1;const f=rt(o);this.create({id:i,type:"error",message:f})}else if(s.success!==void 0){r=!1;const f=typeof s.success=="function"?s.success(o):s.success;this.create({id:i,type:"success",message:f})}}).catch(o=>{if(s.error!==void 0){r=!1;const f=typeof s.error=="function"?s.error(o):s.error;this.create({id:i,type:"error",message:f})}}).finally(()=>{r&&(this.dismiss(i),i=void 0),s.finally?.()}),i};custom=(e,s)=>{const i=s?.id||U++;return this.create({component:e,id:i,...s}),i};removeHeight=e=>{this.heights=this.heights.filter(s=>s.toastId!==e)};setHeight=e=>{const s=this.#s(e.toastId);if(s===null){this.heights.push(e);return}this.heights[s]=e};reset=()=>{this.toasts=[],this.heights=[]}}function rt(t){return t&&typeof t=="object"&&"status"in t?`HTTP error! Status: ${t.status}`:`Error! ${t}`}const d=new nt;function ot(t,e){return d.create({message:t,...e})}class Pt{#e=z(()=>d.toasts.filter(e=>!e.dismiss));get toasts(){return g(this.#e)}}function Dt(){return it.get()}const ct=ot,u=Object.assign(ct,{success:d.success,info:d.info,warning:d.warning,error:d.error,custom:d.custom,message:d.message,promise:d.promise,dismiss:d.dismiss,loading:d.loading,getActiveToasts:()=>d.toasts.filter(t=>!t.dismiss)}),at=800;function ut(){let t=S(!1),e=S(null),s=S(null),i=null,n=null,r=!1;function o(p,w,m,l){i&&i.repo===p&&i.type===w&&i.id===m?(l.data!==void 0&&(i.payload.data=l.data),l.content!==void 0&&(i.payload.content=l.content)):i={repo:p,type:w,id:m,payload:{...l}},f()}function f(){n&&clearTimeout(n),n=setTimeout(E,at)}async function E(){if(n=null,!r&&i){const{repo:p,type:w,id:m,payload:l}=i;i=null,r=!0,c(t,!0),c(s,null);try{if(await H(p,w,m,l),c(e,new Date,!0),l.data?.name){const b=h.repos.find(O=>O.name===p)?.entities.find(O=>O.id===m);b&&(b.title=l.data.name)}}catch(y){c(s,y.message??"Save failed",!0);const b=y.status??y.statusCode;(!b||b>=500)&&(i={repo:p,type:w,id:m,payload:l})}finally{c(t,!1),r=!1,i&&E()}}}function J(){n&&(clearTimeout(n),n=null),i&&E()}async function V(p,w,m,l){c(t,!0),c(s,null);try{const y=await H(p,w,m,l);return c(e,new Date,!0),y}catch(y){return c(s,y.message??"Save failed",!0),null}finally{c(t,!1)}}function L(){c(s,null),c(e,null),i=null,n&&(clearTimeout(n),n=null)}return{get saving(){return g(t)},get lastSaved(){return g(e)},get error(){return g(s)},get hasPending(){return!!(i||r)},scheduleAutoSave:o,flush:J,saveEntity:V,reset:L}}const lt=ut();let a=null,B=null,R=null,W=[],I=null,_=1e3,k=S(!1),F=S(null);const T=new Map,x={},A={};function j(t,e){T.delete(t);const s=e.entities.length,i=s===1?`${t} updated ${e.entities[0]}`:`${t} updated ${s} entities`;u(i)}function dt(t){for(const[e,s]of T)s.repo===t&&(clearTimeout(s.timer),T.delete(e))}function ft(t){const e=Q.user?.displayName;if(t.type==="sync_progress"){const s=x[t.repo];if(s){const i=t.message.trim(),n=i.match(/^Syncing from source:\s*(.+)$/i);n&&(A[t.repo]=`Syncing ${n[1].trim()}…`);const r=A[t.repo]??`Syncing ${t.repo}…`;u.loading(r,{id:s,description:i,duration:36e5})}return}if(t.type==="entity_change"){if(e&&t.actor===e&&t.source==="api"){h.refreshEntities(t.repo);return}if(h.refreshEntities(t.repo),$.selectedRepo===t.repo&&$.selectedType===t.entityType&&$.selectedId===t.entityId){lt.hasPending?u(`${t.actor} also saved changes to this entity`):K();return}const i=T.get(t.actor);if(i)clearTimeout(i.timer),i.entities.includes(t.entityId)||i.entities.push(t.entityId),i.timer=setTimeout(()=>j(t.actor,i),1e4);else{const n={entities:[t.entityId],repo:t.repo,timer:setTimeout(()=>j(t.actor,n),1e4)};T.set(t.actor,n)}return}if(t.type==="session_commit"){if(e&&t.actor===e){c(F,t.timestamp,!0);return}const s=t.entities.length,i=s===1?`${t.actor} saved changes to ${t.entities[0]}`:`${t.actor} saved ${s} changes in ${t.repo}`;u(i),h.refreshEntities(t.repo);return}if(t.type==="sync_complete"){if(dt(t.repo),!x[t.repo]){const s=t.created+t.updated+t.deleted,i=s===0?`Sync complete · no changes in ${t.repo}`:`Sync complete · ${s} ${s===1?"entity":"entities"} from ${t.source}`;u.success(i)}h.refreshEntities(t.repo);return}if(t.type==="collection_created"){u(`${t.actor} created collection ${t.repo}`),h.refreshEntities(t.repo);return}if(t.type==="collection_deleted"){u(`${t.actor} deleted collection ${t.repo}`);return}if(t.type==="repo_sync"){u(`${t.actor} pushed to ${t.repo}`),h.refreshEntities(t.repo);return}if(t.type==="presence"){B?.(t);return}if(t.type==="online"){R?.(t);return}if(t.type==="insights_updated"){G(()=>import("./CcZpH1ju.js"),__vite__mapDeps([0,1,2,3]),import.meta.url).then(s=>s.insightsStore.load());return}if(t.type==="access_granted"||t.type==="access_revoked"){t.type==="access_revoked"&&$.selectedRepo===t.repo&&$.deselect(),h.load();return}}function M(){if(typeof window>"u"||a&&(a.readyState===WebSocket.OPEN||a.readyState===WebSocket.CONNECTING))return;const e=`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/ws`;a=new WebSocket(e),a.binaryType="arraybuffer",a.onopen=()=>{c(k,!0),_=1e3,h.refreshAll();for(const s of W)s()},a.onmessage=s=>{if(!(s.data instanceof ArrayBuffer))try{const i=JSON.parse(s.data);if(i?.type==="ping"){a?.send(JSON.stringify({type:"pong"}));return}const n=i;n.type&&n.type!=="toast"&&ft(n)}catch{}},a.onclose=()=>{c(k,!1),a=null,I=setTimeout(()=>{_=Math.min(_*2,1e4),M()},_)},a.onerror=()=>{}}function ht(){I&&(clearTimeout(I),I=null),a&&(a.close(),a=null),c(k,!1);for(const[,t]of T)clearTimeout(t.timer);T.clear()}function pt(t,e=4e3){u(t,{duration:e})}function mt(t,e){const s=crypto.randomUUID();return e?.loading?u.loading(t,{id:s,duration:36e5}):u(t,{id:s}),s}function yt(t,e,s){if(s?.loading){u.loading(e,{id:t});return}/failed|error/i.test(e)?u.error(e,{id:t,duration:s?.duration??6e3}):u.success(e,{id:t,duration:s?.duration??4e3})}function gt(t){const e=crypto.randomUUID();x[t]=e,u.loading(`Syncing ${t}…`,{id:e,duration:36e5})}function wt(t,e,s){const i=x[t];i&&(delete x[t],delete A[t],s?u.error(e,{id:i,duration:6e3}):u.success(e,{id:i,duration:4e3}))}function St(t){B=t}function Tt(t){R=t}function Et(t){W.push(t)}function bt(t){a?.readyState===WebSocket.OPEN&&a.send(JSON.stringify(t))}const Ht={get connected(){return g(k)},get lastAutoSaved(){return g(F)},get ws(){return a},connect:M,disconnect:ht,showToast:pt,showPersistentToast:mt,updateToast:yt,startSyncToast:gt,finishSyncToast:wt,send:bt,setPresenceHandler:St,setOnlineHandler:Tt,addConnectHandler:Et};export{Pt as S,d as a,Ct as c,lt as e,Ht as r,it as s,u as t,Dt as u};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./CO5wfegi.js","./sZJoCX5N.js","./DvmL5xMZ.js","./OZfYVFGq.js"])))=>i.map(i=>d[i]);
2
+ import{_ as G}from"./PPVm8Dsz.js";import{aW as Y,a1 as C,aV as q,e as S,f as P,g,s as c,a7 as D,a4 as z}from"./sZJoCX5N.js";import{i as K}from"./Ce71etNw.js";import{i as H,w as h}from"./DvmL5xMZ.js";import{a as Q}from"./BtBweNkk.js";import{n as $}from"./CkIXD8Ce.js";import{l as X,o as N}from"./BdF6nRVd.js";function Ct(...t){return t.filter(Boolean).join(" ")}const Z=typeof document<"u",v=typeof window<"u"?window:void 0;function tt(t){let e=t.activeElement;for(;e?.shadowRoot;){const s=e.shadowRoot.activeElement;if(s===e)break;e=s}return e}class et{#e;#t;constructor(e={}){const{window:s=v,document:i=s?.document}=e;s!==void 0&&(this.#e=i,this.#t=X(n=>{const r=N(s,"focusin",n),o=N(s,"focusout",n);return()=>{r(),o()}}))}get current(){return this.#t?.(),this.#e?tt(this.#e):null}}new et;class st{#e;#t;constructor(e){this.#e=e,this.#t=Symbol(e)}get key(){return this.#t}exists(){return Y(this.#t)}get(){const e=C(this.#t);if(e===void 0)throw new Error(`Context "${this.#e}" not found`);return e}getOr(e){const s=C(this.#t);return s===void 0?e:s}set(e){return q(this.#t,e)}}const it=new st("<Toaster/>");let U=0;class nt{#e=S(P([]));get toasts(){return g(this.#e)}set toasts(e){c(this.#e,e,!0)}#t=S(P([]));get heights(){return g(this.#t)}set heights(e){c(this.#t,e,!0)}#s=e=>{const s=this.toasts.findIndex(i=>i.id===e);return s===-1?null:s};addToast=e=>{Z&&this.toasts.unshift(e)};updateToast=({id:e,data:s,type:i,message:n})=>{const r=this.toasts.findIndex(f=>f.id===e),o=this.toasts[r];this.toasts[r]={...o,...s,id:e,title:n,type:i,updated:!0}};create=e=>{const{message:s,...i}=e,n=typeof e?.id=="number"||e.id&&e.id?.length>0?e.id:U++,r=e.dismissible!==void 0?e.dismissible:e.dismissable!==void 0?e.dismissable:!0,o=e.type===void 0?"default":e.type;return D(()=>{this.toasts.find(E=>E.id===n)?this.updateToast({id:n,data:e,type:o,message:s,dismissible:r}):this.addToast({...i,id:n,title:s,dismissible:r,type:o})}),n};dismiss=e=>(D(()=>{if(e===void 0){this.toasts=this.toasts.map(i=>({...i,dismiss:!0}));return}const s=this.toasts.findIndex(i=>i.id===e);this.toasts[s]&&(this.toasts[s]={...this.toasts[s],dismiss:!0})}),e);remove=e=>{if(e===void 0){this.toasts=[];return}const s=this.#s(e);if(s!==null)return this.toasts.splice(s,1),e};message=(e,s)=>this.create({...s,type:"default",message:e});error=(e,s)=>this.create({...s,type:"error",message:e});success=(e,s)=>this.create({...s,type:"success",message:e});info=(e,s)=>this.create({...s,type:"info",message:e});warning=(e,s)=>this.create({...s,type:"warning",message:e});loading=(e,s)=>this.create({...s,type:"loading",message:e});promise=(e,s)=>{if(!s)return;let i;s.loading!==void 0&&(i=this.create({...s,promise:e,type:"loading",message:typeof s.loading=="string"?s.loading:s.loading()}));const n=e instanceof Promise?e:e();let r=i!==void 0;return n.then(o=>{if(typeof o=="object"&&o&&"ok"in o&&typeof o.ok=="boolean"&&!o.ok){r=!1;const f=rt(o);this.create({id:i,type:"error",message:f})}else if(s.success!==void 0){r=!1;const f=typeof s.success=="function"?s.success(o):s.success;this.create({id:i,type:"success",message:f})}}).catch(o=>{if(s.error!==void 0){r=!1;const f=typeof s.error=="function"?s.error(o):s.error;this.create({id:i,type:"error",message:f})}}).finally(()=>{r&&(this.dismiss(i),i=void 0),s.finally?.()}),i};custom=(e,s)=>{const i=s?.id||U++;return this.create({component:e,id:i,...s}),i};removeHeight=e=>{this.heights=this.heights.filter(s=>s.toastId!==e)};setHeight=e=>{const s=this.#s(e.toastId);if(s===null){this.heights.push(e);return}this.heights[s]=e};reset=()=>{this.toasts=[],this.heights=[]}}function rt(t){return t&&typeof t=="object"&&"status"in t?`HTTP error! Status: ${t.status}`:`Error! ${t}`}const d=new nt;function ot(t,e){return d.create({message:t,...e})}class Pt{#e=z(()=>d.toasts.filter(e=>!e.dismiss));get toasts(){return g(this.#e)}}function Dt(){return it.get()}const ct=ot,u=Object.assign(ct,{success:d.success,info:d.info,warning:d.warning,error:d.error,custom:d.custom,message:d.message,promise:d.promise,dismiss:d.dismiss,loading:d.loading,getActiveToasts:()=>d.toasts.filter(t=>!t.dismiss)}),at=800;function ut(){let t=S(!1),e=S(null),s=S(null),i=null,n=null,r=!1;function o(p,w,m,l){i&&i.repo===p&&i.type===w&&i.id===m?(l.data!==void 0&&(i.payload.data=l.data),l.content!==void 0&&(i.payload.content=l.content)):i={repo:p,type:w,id:m,payload:{...l}},f()}function f(){n&&clearTimeout(n),n=setTimeout(E,at)}async function E(){if(n=null,!r&&i){const{repo:p,type:w,id:m,payload:l}=i;i=null,r=!0,c(t,!0),c(s,null);try{if(await H(p,w,m,l),c(e,new Date,!0),l.data?.name){const b=h.repos.find(O=>O.name===p)?.entities.find(O=>O.id===m);b&&(b.title=l.data.name)}}catch(y){c(s,y.message??"Save failed",!0);const b=y.status??y.statusCode;(!b||b>=500)&&(i={repo:p,type:w,id:m,payload:l})}finally{c(t,!1),r=!1,i&&E()}}}function J(){n&&(clearTimeout(n),n=null),i&&E()}async function V(p,w,m,l){c(t,!0),c(s,null);try{const y=await H(p,w,m,l);return c(e,new Date,!0),y}catch(y){return c(s,y.message??"Save failed",!0),null}finally{c(t,!1)}}function L(){c(s,null),c(e,null),i=null,n&&(clearTimeout(n),n=null)}return{get saving(){return g(t)},get lastSaved(){return g(e)},get error(){return g(s)},get hasPending(){return!!(i||r)},scheduleAutoSave:o,flush:J,saveEntity:V,reset:L}}const lt=ut();let a=null,B=null,R=null,W=[],I=null,_=1e3,k=S(!1),F=S(null);const T=new Map,x={},A={};function j(t,e){T.delete(t);const s=e.entities.length,i=s===1?`${t} updated ${e.entities[0]}`:`${t} updated ${s} entities`;u(i)}function dt(t){for(const[e,s]of T)s.repo===t&&(clearTimeout(s.timer),T.delete(e))}function ft(t){const e=Q.user?.displayName;if(t.type==="sync_progress"){const s=x[t.repo];if(s){const i=t.message.trim(),n=i.match(/^Syncing from source:\s*(.+)$/i);n&&(A[t.repo]=`Syncing ${n[1].trim()}…`);const r=A[t.repo]??`Syncing ${t.repo}…`;u.loading(r,{id:s,description:i,duration:36e5})}return}if(t.type==="entity_change"){if(e&&t.actor===e&&t.source==="api"){h.refreshEntities(t.repo);return}if(h.refreshEntities(t.repo),$.selectedRepo===t.repo&&$.selectedType===t.entityType&&$.selectedId===t.entityId){lt.hasPending?u(`${t.actor} also saved changes to this entity`):K();return}const i=T.get(t.actor);if(i)clearTimeout(i.timer),i.entities.includes(t.entityId)||i.entities.push(t.entityId),i.timer=setTimeout(()=>j(t.actor,i),1e4);else{const n={entities:[t.entityId],repo:t.repo,timer:setTimeout(()=>j(t.actor,n),1e4)};T.set(t.actor,n)}return}if(t.type==="session_commit"){if(e&&t.actor===e){c(F,t.timestamp,!0);return}const s=t.entities.length,i=s===1?`${t.actor} saved changes to ${t.entities[0]}`:`${t.actor} saved ${s} changes in ${t.repo}`;u(i),h.refreshEntities(t.repo);return}if(t.type==="sync_complete"){if(dt(t.repo),!x[t.repo]){const s=t.created+t.updated+t.deleted,i=s===0?`Sync complete · no changes in ${t.repo}`:`Sync complete · ${s} ${s===1?"entity":"entities"} from ${t.source}`;u.success(i)}h.refreshEntities(t.repo);return}if(t.type==="collection_created"){u(`${t.actor} created collection ${t.repo}`),h.refreshEntities(t.repo);return}if(t.type==="collection_deleted"){u(`${t.actor} deleted collection ${t.repo}`);return}if(t.type==="repo_sync"){u(`${t.actor} pushed to ${t.repo}`),h.refreshEntities(t.repo);return}if(t.type==="presence"){B?.(t);return}if(t.type==="online"){R?.(t);return}if(t.type==="insights_updated"){G(()=>import("./CO5wfegi.js"),__vite__mapDeps([0,1,2,3]),import.meta.url).then(s=>s.insightsStore.load());return}if(t.type==="access_granted"||t.type==="access_revoked"){t.type==="access_revoked"&&$.selectedRepo===t.repo&&$.deselect(),h.load();return}}function M(){if(typeof window>"u"||a&&(a.readyState===WebSocket.OPEN||a.readyState===WebSocket.CONNECTING))return;const e=`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/ws`;a=new WebSocket(e),a.binaryType="arraybuffer",a.onopen=()=>{c(k,!0),_=1e3,h.refreshAll();for(const s of W)s()},a.onmessage=s=>{if(!(s.data instanceof ArrayBuffer))try{const i=JSON.parse(s.data);if(i?.type==="ping"){a?.send(JSON.stringify({type:"pong"}));return}const n=i;n.type&&n.type!=="toast"&&ft(n)}catch{}},a.onclose=()=>{c(k,!1),a=null,I=setTimeout(()=>{_=Math.min(_*2,1e4),M()},_)},a.onerror=()=>{}}function ht(){I&&(clearTimeout(I),I=null),a&&(a.close(),a=null),c(k,!1);for(const[,t]of T)clearTimeout(t.timer);T.clear()}function pt(t,e=4e3){u(t,{duration:e})}function mt(t,e){const s=crypto.randomUUID();return e?.loading?u.loading(t,{id:s,duration:36e5}):u(t,{id:s}),s}function yt(t,e,s){if(s?.loading){u.loading(e,{id:t});return}/failed|error/i.test(e)?u.error(e,{id:t,duration:s?.duration??6e3}):u.success(e,{id:t,duration:s?.duration??4e3})}function gt(t){const e=crypto.randomUUID();x[t]=e,u.loading(`Syncing ${t}…`,{id:e,duration:36e5})}function wt(t,e,s){const i=x[t];i&&(delete x[t],delete A[t],s?u.error(e,{id:i,duration:6e3}):u.success(e,{id:i,duration:4e3}))}function St(t){B=t}function Tt(t){R=t}function Et(t){W.push(t)}function bt(t){a?.readyState===WebSocket.OPEN&&a.send(JSON.stringify(t))}const Ht={get connected(){return g(k)},get lastAutoSaved(){return g(F)},get ws(){return a},connect:M,disconnect:ht,showToast:pt,showPersistentToast:mt,updateToast:yt,startSyncToast:gt,finishSyncToast:wt,send:bt,setPresenceHandler:St,setOnlineHandler:Tt,addConnectHandler:Et};export{Pt as S,d as a,Ct as c,lt as e,Ht as r,it as s,u as t,Dt as u};
@@ -1 +1 @@
1
- import{a as p,s as H,f as b}from"./BJBX4SKZ.js";import{i as M}from"./CrUJgkXY.js";import{p as $,l as c,a as R,g as i,c as m,n as V,r as _,b as Z,m as h,s as u,d as n,t as k}from"./e913tUZv.js";import{i as B}from"./D6Lva3KM.js";import{a as C}from"./Zhai-RNf.js";import{l as v,p as g}from"./iZnTs-Zk.js";var N=b("<title> </title>"),P=b('<svg><!><path d="M12,10H6.78A11,11,0,0,1,27,16h2A13,13,0,0,0,6,7.68V4H4v8h8Z"></path><path d="M20,22h5.22A11,11,0,0,1,5,16H3a13,13,0,0,0,23,8.32V28h2V20H20Z"></path></svg>');function G(x,t){const e=v(t,["children","$$slots","$$events","$$legacy"]),w=v(e,["size","title"]);$(t,!1);const a=h(),d=h();let f=g(t,"size",8,16),s=g(t,"title",8,void 0);c(()=>(n(e),n(s())),()=>{u(a,e["aria-label"]||e["aria-labelledby"]||s())}),c(()=>(i(a),n(e)),()=>{u(d,{"aria-hidden":i(a)?void 0:!0,role:i(a)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),R(),M();var r=P();C(r,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:f(),height:f(),...i(d),...w}));var y=m(r);{var z=o=>{var l=N(),A=m(l,!0);_(l),k(()=>H(A,s())),p(o,l)};B(y,o=>{s()&&o(z)})}V(2),_(r),p(x,r),Z()}export{G as R};
1
+ import{a as p,s as H,f as b}from"./BdF6nRVd.js";import{i as M}from"./faGDeGnG.js";import{p as $,l as c,a as R,g as i,c as m,n as V,r as _,b as Z,m as h,s as u,d as n,t as k}from"./sZJoCX5N.js";import{i as B}from"./BSSN_IAc.js";import{a as C}from"./BKUmpdNY.js";import{l as v,p as g}from"./DNrFMx27.js";var N=b("<title> </title>"),P=b('<svg><!><path d="M12,10H6.78A11,11,0,0,1,27,16h2A13,13,0,0,0,6,7.68V4H4v8h8Z"></path><path d="M20,22h5.22A11,11,0,0,1,5,16H3a13,13,0,0,0,23,8.32V28h2V20H20Z"></path></svg>');function G(x,t){const e=v(t,["children","$$slots","$$events","$$legacy"]),w=v(e,["size","title"]);$(t,!1);const a=h(),d=h();let f=g(t,"size",8,16),s=g(t,"title",8,void 0);c(()=>(n(e),n(s())),()=>{u(a,e["aria-label"]||e["aria-labelledby"]||s())}),c(()=>(i(a),n(e)),()=>{u(d,{"aria-hidden":i(a)?void 0:!0,role:i(a)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),R(),M();var r=P();C(r,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:f(),height:f(),...i(d),...w}));var y=m(r);{var z=o=>{var l=N(),A=m(l,!0);_(l),k(()=>H(A,s())),p(o,l)};B(y,o=>{s()&&o(z)})}V(2),_(r),p(x,r),Z()}export{G as R};
@@ -1 +1 @@
1
- import{g as n,e as o,s as t}from"./e913tUZv.js";import{a as u}from"./C8Y6xIC4.js";function f(){return u("/api/auth/status")}function p(){return u("/api/auth/me")}function g(e,a){return u("/api/auth/login",{method:"POST",body:JSON.stringify({email:e,password:a})})}function S(){return u("/api/auth/logout",{method:"POST"})}function b(e,a,r){return u("/api/auth/setup",{method:"POST",body:JSON.stringify({email:e,password:a,displayName:r})})}function w(){return u("/api/auth/users")}function O(e,a,r,i){return u("/api/auth/users",{method:"POST",body:JSON.stringify({email:e,password:a,displayName:r,role:i})})}function N(e){return u(`/api/auth/users/${e}`,{method:"DELETE"})}function P(e,a){return u(`/api/auth/users/${e}/password`,{method:"PATCH",body:JSON.stringify({password:a})})}let l=o(null),d=o(!1),c=o(!1),s=o(!0),h=o("");const m={get user(){return n(l)},get authEnabled(){return n(d)},get needsSetup(){return n(c)},get loading(){return n(s)},get workspaceName(){return n(h)},async checkAuth(){t(s,!0);try{const e=await f();if(t(d,e.authEnabled,!0),t(c,e.userCount===0),e.workspaceName&&t(h,e.workspaceName,!0),n(c))return t(s,!1),{authenticated:!1,authEnabled:!1,needsSetup:!0};if(!e.authEnabled)return t(s,!1),{authenticated:!0,authEnabled:!1,needsSetup:!1};try{const{user:a}=await p();return t(l,a,!0),t(s,!1),{authenticated:!0,authEnabled:!0,needsSetup:!1}}catch{return t(l,null),t(s,!1),{authenticated:!1,authEnabled:!0,needsSetup:!1}}}catch{return t(s,!1),{authenticated:!0,authEnabled:!1,needsSetup:!1}}},async login(e,a){const{user:r}=await g(e,a);return t(l,r,!0),t(d,!0),r},async setup(e,a,r){const{user:i}=await b(e,a,r);return t(l,i,!0),t(d,!0),t(c,!1),i},async logout(){await S(),t(l,null)}},T=Object.freeze(Object.defineProperty({__proto__:null,auth:m},Symbol.toStringTag,{value:"Module"}));export{m as a,T as b,O as c,N as d,w as l,P as r};
1
+ import{g as n,e as o,s as t}from"./sZJoCX5N.js";import{a as u}from"./OZfYVFGq.js";function f(){return u("/api/auth/status")}function p(){return u("/api/auth/me")}function g(e,a){return u("/api/auth/login",{method:"POST",body:JSON.stringify({email:e,password:a})})}function S(){return u("/api/auth/logout",{method:"POST"})}function b(e,a,r){return u("/api/auth/setup",{method:"POST",body:JSON.stringify({email:e,password:a,displayName:r})})}function w(){return u("/api/auth/users")}function O(e,a,r,i){return u("/api/auth/users",{method:"POST",body:JSON.stringify({email:e,password:a,displayName:r,role:i})})}function N(e){return u(`/api/auth/users/${e}`,{method:"DELETE"})}function P(e,a){return u(`/api/auth/users/${e}/password`,{method:"PATCH",body:JSON.stringify({password:a})})}let l=o(null),d=o(!1),c=o(!1),s=o(!0),h=o("");const m={get user(){return n(l)},get authEnabled(){return n(d)},get needsSetup(){return n(c)},get loading(){return n(s)},get workspaceName(){return n(h)},async checkAuth(){t(s,!0);try{const e=await f();if(t(d,e.authEnabled,!0),t(c,e.userCount===0),e.workspaceName&&t(h,e.workspaceName,!0),n(c))return t(s,!1),{authenticated:!1,authEnabled:!1,needsSetup:!0};if(!e.authEnabled)return t(s,!1),{authenticated:!0,authEnabled:!1,needsSetup:!1};try{const{user:a}=await p();return t(l,a,!0),t(s,!1),{authenticated:!0,authEnabled:!0,needsSetup:!1}}catch{return t(l,null),t(s,!1),{authenticated:!1,authEnabled:!0,needsSetup:!1}}}catch{return t(s,!1),{authenticated:!0,authEnabled:!1,needsSetup:!1}}},async login(e,a){const{user:r}=await g(e,a);return t(l,r,!0),t(d,!0),r},async setup(e,a,r){const{user:i}=await b(e,a,r);return t(l,i,!0),t(d,!0),t(c,!1),i},async logout(){await S(),t(l,null)}},T=Object.freeze(Object.defineProperty({__proto__:null,auth:m},Symbol.toStringTag,{value:"Module"}));export{m as a,T as b,O as c,N as d,w as l,P as r};
@@ -1 +1 @@
1
- import{e as i,f as y,g as r,s as n}from"./e913tUZv.js";import{g as l}from"./BsdMYUpR.js";import{d as v,u as V,c as F,f as h}from"./xwFtwYnE.js";const d={selectedType:null,groupBy:null,sortKey:"name",sortAsc:!0,filters:{text:{},enum:{},date:{}}};function x(){let a=i(y([])),o=i(null),c=i(!1);async function w(){try{n(a,await h(),!0),n(c,!0)}catch(e){console.error("Failed to load views:",e)}}async function f(e,t="list"){const s=t==="calendar"?{...d,calendar:{dateField:"due_date",year:new Date().getFullYear(),month:new Date().getMonth()+1}}:d,u=await F(e,s,t);return n(a,[...r(a),u],!0),u}async function g(e,t){await V(e,t),n(a,r(a).map(s=>s.id===e?{...s,...t}:s),!0)}async function m(e){if(await v(e),n(a,r(a).filter(t=>t.id!==e),!0),r(o)===e){const t=r(a)[0];t?(n(o,t.id,!0),l(`/views/${t.id}`,{replaceState:!0})):(n(o,null),l("/",{replaceState:!0}))}}function p(e){n(o,e,!0)}return{get views(){return r(a)},get activeViewId(){return r(o)},get loaded(){return r(c)},load:w,create:f,update:g,remove:m,setActive:p}}const D=x();export{D as v};
1
+ import{e as i,f as y,g as r,s as n}from"./sZJoCX5N.js";import{g as l}from"./Ce71etNw.js";import{d as v,u as V,c as F,f as h}from"./DvmL5xMZ.js";const d={selectedType:null,groupBy:null,sortKey:"name",sortAsc:!0,filters:{text:{},enum:{},date:{}}};function x(){let a=i(y([])),o=i(null),c=i(!1);async function w(){try{n(a,await h(),!0),n(c,!0)}catch(e){console.error("Failed to load views:",e)}}async function f(e,t="list"){const s=t==="calendar"?{...d,calendar:{dateField:"due_date",year:new Date().getFullYear(),month:new Date().getMonth()+1}}:d,u=await F(e,s,t);return n(a,[...r(a),u],!0),u}async function g(e,t){await V(e,t),n(a,r(a).map(s=>s.id===e?{...s,...t}:s),!0)}async function m(e){if(await v(e),n(a,r(a).filter(t=>t.id!==e),!0),r(o)===e){const t=r(a)[0];t?(n(o,t.id,!0),l(`/views/${t.id}`,{replaceState:!0})):(n(o,null),l("/",{replaceState:!0}))}}function p(e){n(o,e,!0)}return{get views(){return r(a)},get activeViewId(){return r(o)},get loaded(){return r(c)},load:w,create:f,update:g,remove:m,setActive:p}}const D=x();export{D as v};
@@ -1 +1 @@
1
- import{o as St,p as le,c as j,a as u,b as I,s as Ht,f as Ot,d as fe,e as L,t as Nt,g as ve}from"./BJBX4SKZ.js";import{e as F,s as c,g as o,a4 as T,p as _t,a0 as A,b as yt,c as g,ae as Kt,r as _,l as At,d as et,a as Gt,n as Z,m as Mt,t as dt,a1 as me,a2 as be,a3 as z}from"./e913tUZv.js";import{s as ut,a as ct,r as ge,b as _e}from"./Zhai-RNf.js";import{i as S,b as ye}from"./D6Lva3KM.js";import{e as Ce}from"./BZEMt5cm.js";import{c as X}from"./D3QkosGt.js";import{s as Wt}from"./C8Y6xIC4.js";import{b as we,B as Pe}from"./DYvpKXdA.js";import{p as f,s as ee,r as he,l as Vt}from"./iZnTs-Zk.js";import{g as oe}from"./BsdMYUpR.js";import{i as Ut}from"./CrUJgkXY.js";import{A as xe,C as re}from"./DLWveUsw.js";import{n as U}from"./CIhtHHtB.js";import{v as $t}from"./CzDsEODJ.js";import{w as He}from"./xwFtwYnE.js";import{w as Zt,g as Ae,i as gt,C as Me,a as de,D as Ve,b as Yt,E as Oe,S as ke,c as ue,d as Te,e as De,P as ne,f as D,h as Ie,j as ce,n as xt,k as ze,l as Fe,m as Bt,o as se,F as Ee,p as Se,A as Ne,q as We,r as $e,s as Be,t as Ke,u as Ye,v as Le,x as Xe}from"./DxfAvVJc.js";function ie(v,t){const[e,s]=v;let n=!1;const r=t.length;for(let d=0,i=r-1;d<r;i=d++){const[p,P]=t[d]??[0,0],[y,a]=t[i]??[0,0];P>=s!=a>=s&&e<=(y-p)*(s-P)/(a-P)+p&&(n=!n)}return n}function ae(v,t){return v[0]>=t.left&&v[0]<=t.right&&v[1]>=t.top&&v[1]<=t.bottom}function je(v,t){const e=v.left+v.width/2,s=v.top+v.height/2,n=t.left+t.width/2,r=t.top+t.height/2,d=n-e,i=r-s;return Math.abs(d)>Math.abs(i)?d>0?"right":"left":i>0?"bottom":"top"}class qe{#t;#n;#o=null;#e=null;#s=null;#a(){this.#s!==null&&(cancelAnimationFrame(this.#s),this.#s=null)}#h(){this.#a(),this.#s=requestAnimationFrame(()=>{this.#s=null,!(!this.#o||!this.#e)&&(this.#r(),this.#t.onPointerExit())})}constructor(t){this.#t=t,this.#n=t.buffer??1,Zt([t.triggerNode,t.contentNode,t.enabled],([e,s,n])=>{if(!e||!s||!n){this.#r();return}const r=Ae(e),d=a=>{this.#i([a.clientX,a.clientY],e,s)},i=a=>{const l=a.relatedTarget;if(gt(l)&&s.contains(l))return;const x=this.#t.ignoredTargets?.()??[];if(!(gt(l)&&x.some(H=>H===l||H.contains(l)))){if(gt(l)&&!e.contains(l)&&!s.contains(l)&&!l.contains(s)){this.#r(),this.#t.onPointerExit();return}this.#o=[a.clientX,a.clientY],this.#e="content",this.#h()}},p=()=>{this.#r()},P=()=>{this.#r()},y=a=>{const l=a.relatedTarget;gt(l)&&e.contains(l)||(this.#o=[a.clientX,a.clientY],this.#e="trigger",this.#h())};return[St(r,"pointermove",d),St(e,"pointerleave",i),St(e,"pointerenter",p),St(s,"pointerenter",P),St(s,"pointerleave",y)].reduce((a,l)=>()=>{a(),l()},()=>{})})}#i(t,e,s){if(!this.#o||!this.#e)return;this.#a();const n=e.getBoundingClientRect(),r=s.getBoundingClientRect();if(this.#e==="content"&&ae(t,r)){this.#r();return}if(this.#e==="trigger"&&ae(t,n)){this.#r();return}const d=je(n,r),i=this.#l(n,r,d);if(i&&ie(t,i))return;const p=this.#e==="content"?r:n,P=this.#d(this.#o,p,d,this.#e);ie(t,P)||(this.#r(),this.#t.onPointerExit())}#r(){this.#o=null,this.#e=null,this.#a()}#l(t,e,s){const n=this.#n;switch(s){case"top":return[[Math.min(t.left,e.left)-n,t.top],[Math.min(t.left,e.left)-n,e.bottom],[Math.max(t.right,e.right)+n,e.bottom],[Math.max(t.right,e.right)+n,t.top]];case"bottom":return[[Math.min(t.left,e.left)-n,t.bottom],[Math.min(t.left,e.left)-n,e.top],[Math.max(t.right,e.right)+n,e.top],[Math.max(t.right,e.right)+n,t.bottom]];case"left":return[[t.left,Math.min(t.top,e.top)-n],[e.right,Math.min(t.top,e.top)-n],[e.right,Math.max(t.bottom,e.bottom)+n],[t.left,Math.max(t.bottom,e.bottom)+n]];case"right":return[[t.right,Math.min(t.top,e.top)-n],[e.left,Math.min(t.top,e.top)-n],[e.left,Math.max(t.bottom,e.bottom)+n],[t.right,Math.max(t.bottom,e.bottom)+n]]}}#d(t,e,s,n){const r=this.#n*4,[d,i]=t;switch(n==="trigger"?this.#u(s):s){case"top":return[[d-r,i+r],[d+r,i+r],[e.right+r,e.bottom],[e.right+r,e.top],[e.left-r,e.top],[e.left-r,e.bottom]];case"bottom":return[[d-r,i-r],[d+r,i-r],[e.right+r,e.top],[e.right+r,e.bottom],[e.left-r,e.bottom],[e.left-r,e.top]];case"left":return[[d+r,i-r],[d+r,i+r],[e.right,e.bottom+r],[e.left,e.bottom+r],[e.left,e.top-r],[e.right,e.top-r]];case"right":return[[d-r,i-r],[d-r,i+r],[e.left,e.bottom+r],[e.right,e.bottom+r],[e.right,e.top-r],[e.left,e.top-r]]}}#u(t){switch(t){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left"}}}const qt=Ie({component:"popover",parts:["root","trigger","content","close","overlay"]}),Jt=new Me("Popover.Root");class Qt{static create(t){return Jt.set(new Qt(t))}opts;#t=F(null);get contentNode(){return o(this.#t)}set contentNode(t){c(this.#t,t,!0)}contentPresence;#n=F(null);get triggerNode(){return o(this.#n)}set triggerNode(t){c(this.#n,t,!0)}#o=F(null);get overlayNode(){return o(this.#o)}set overlayNode(t){c(this.#o,t,!0)}overlayPresence;#e=F(!1);get openedViaHover(){return o(this.#e)}set openedViaHover(t){c(this.#e,t,!0)}#s=F(!1);get hasInteractedWithContent(){return o(this.#s)}set hasInteractedWithContent(t){c(this.#s,t,!0)}#a=F(!1);get hoverCooldown(){return o(this.#a)}set hoverCooldown(t){c(this.#a,t,!0)}#h=F(0);get closeDelay(){return o(this.#h)}set closeDelay(t){c(this.#h,t,!0)}#i=null;#r=null;constructor(t){this.opts=t,this.contentPresence=new ne({ref:D(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new ne({ref:D(()=>this.overlayNode),open:this.opts.open}),Zt(()=>this.opts.open.current,e=>{e||(this.openedViaHover=!1,this.hasInteractedWithContent=!1,this.#l())})}setDomContext(t){this.#r=t}#l(){this.#i!==null&&this.#r&&(this.#r.clearTimeout(this.#i),this.#i=null)}toggleOpen(){this.#l(),this.opts.open.current=!this.opts.open.current}handleClose(){this.#l(),this.opts.open.current&&(this.opts.open.current=!1)}handleHoverOpen(){this.#l(),!this.opts.open.current&&(this.openedViaHover=!0,this.opts.open.current=!0)}handleHoverClose(){this.opts.open.current&&this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1)}handleDelayedHoverClose(){this.opts.open.current&&(!this.openedViaHover||this.hasInteractedWithContent||(this.#l(),this.closeDelay<=0?this.opts.open.current=!1:this.#r&&(this.#i=this.#r.setTimeout(()=>{this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1),this.#i=null},this.closeDelay))))}cancelDelayedClose(){this.#l()}markInteraction(){this.hasInteractedWithContent=!0,this.#l()}}class Rt{static create(t){return new Rt(t,Jt.get())}opts;root;attachment;domContext;#t=null;#n=null;#o=F(!1);constructor(t,e){this.opts=t,this.root=e,this.attachment=de(this.opts.ref,s=>this.root.triggerNode=s),this.domContext=new Ve(t.ref),this.root.setDomContext(this.domContext),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),Zt(()=>this.opts.closeDelay.current,s=>{this.root.closeDelay=s})}#e(){this.#t!==null&&(this.domContext.clearTimeout(this.#t),this.#t=null)}#s(){this.#n!==null&&(this.domContext.clearTimeout(this.#n),this.#n=null)}#a(){this.#e(),this.#s()}onpointerenter(t){if(this.opts.disabled.current||!this.opts.openOnHover.current||Yt(t)||(c(this.#o,!0),this.#s(),this.root.cancelDelayedClose(),this.root.opts.open.current||this.root.hoverCooldown))return;const e=this.opts.openDelay.current;e<=0?this.root.handleHoverOpen():this.#t=this.domContext.setTimeout(()=>{this.root.handleHoverOpen(),this.#t=null},e)}onpointerleave(t){this.opts.disabled.current||this.opts.openOnHover.current&&(Yt(t)||(c(this.#o,!1),this.#e(),this.root.hoverCooldown=!1))}onclick(t){if(!this.opts.disabled.current&&t.button===0){if(this.#a(),o(this.#o)&&this.root.opts.open.current&&this.root.openedViaHover){this.root.openedViaHover=!1,this.root.hasInteractedWithContent=!0;return}o(this.#o)&&this.opts.openOnHover.current&&this.root.opts.open.current&&(this.root.hoverCooldown=!0),this.root.hoverCooldown&&!this.root.opts.open.current&&(this.root.hoverCooldown=!1),this.root.toggleOpen()}}onkeydown(t){this.opts.disabled.current||(t.key===Oe||t.key===ke)&&(t.preventDefault(),this.#a(),this.root.toggleOpen())}#h(){if(this.root.opts.open.current&&this.root.contentNode?.id)return this.root.contentNode?.id}#i=T(()=>({id:this.opts.id.current,"aria-haspopup":"dialog","aria-expanded":Te(this.root.opts.open.current),"data-state":ue(this.root.opts.open.current),"aria-controls":this.#h(),[qt.trigger]:"",disabled:this.opts.disabled.current,onkeydown:this.onkeydown,onclick:this.onclick,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment}));get props(){return o(this.#i)}set props(t){c(this.#i,t)}}class te{static create(t){return new te(t,Jt.get())}opts;root;attachment;constructor(t,e){this.opts=t,this.root=e,this.attachment=de(this.opts.ref,s=>this.root.contentNode=s),this.onpointerdown=this.onpointerdown.bind(this),this.onfocusin=this.onfocusin.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),new qe({triggerNode:()=>this.root.triggerNode,contentNode:()=>this.root.contentNode,enabled:()=>this.root.opts.open.current&&this.root.openedViaHover&&!this.root.hasInteractedWithContent,onPointerExit:()=>{this.root.handleDelayedHoverClose()}})}onpointerdown(t){this.root.markInteraction()}onfocusin(t){const e=t.target;gt(e)&&De(e)&&this.root.markInteraction()}onpointerenter(t){Yt(t)||this.root.cancelDelayedClose()}onpointerleave(t){Yt(t)}onInteractOutside=t=>{if(this.opts.onInteractOutside.current(t),t.defaultPrevented||!gt(t.target))return;const e=t.target.closest(qt.selector("trigger"));if(!(e&&e===this.root.triggerNode)){if(this.opts.customAnchor.current){if(gt(this.opts.customAnchor.current)){if(this.opts.customAnchor.current.contains(t.target))return}else if(typeof this.opts.customAnchor.current=="string"){const s=document.querySelector(this.opts.customAnchor.current);if(s&&s.contains(t.target))return}}this.root.handleClose()}};onEscapeKeydown=t=>{this.opts.onEscapeKeydown.current(t),!t.defaultPrevented&&this.root.handleClose()};get shouldRender(){return this.root.contentPresence.shouldRender}get shouldTrapFocus(){return!(this.root.openedViaHover&&!this.root.hasInteractedWithContent)}#t=T(()=>({open:this.root.opts.open.current}));get snippetProps(){return o(this.#t)}set snippetProps(t){c(this.#t,t)}#n=T(()=>({id:this.opts.id.current,tabindex:-1,"data-state":ue(this.root.opts.open.current),[qt.content]:"",style:{pointerEvents:"auto",contain:"layout style"},onpointerdown:this.onpointerdown,onfocusin:this.onfocusin,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment}));get props(){return o(this.#n)}set props(t){c(this.#n,t)}popperProps={onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown}}var Ge=I("<div><div><!></div></div>"),Ue=I("<div><div><!></div></div>");function Ze(v,t){const e=le();_t(t,!0);let s=f(t,"ref",15,null),n=f(t,"id",19,()=>ce(e)),r=f(t,"forceMount",3,!1),d=f(t,"onOpenAutoFocus",3,xt),i=f(t,"onCloseAutoFocus",3,xt),p=f(t,"onEscapeKeydown",3,xt),P=f(t,"onInteractOutside",3,xt),y=f(t,"trapFocus",3,!0),a=f(t,"preventScroll",3,!1),l=f(t,"customAnchor",3,null),x=he(t,["$$slots","$$events","$$legacy","child","children","ref","id","forceMount","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","customAnchor","style"]);const H=te.create({id:D(()=>n()),ref:D(()=>s(),O=>s(O)),onInteractOutside:D(()=>P()),onEscapeKeydown:D(()=>p()),customAnchor:D(()=>l())}),ot=T(()=>Bt(x,H.props)),Ct=T(()=>y()&&H.shouldTrapFocus);function wt(O){H.shouldTrapFocus||O.preventDefault(),d()(O)}var N=j(),q=A(N);{var B=O=>{ze(O,ee(()=>o(ot),()=>H.popperProps,{get ref(){return H.opts.ref},get enabled(){return H.root.opts.open.current},get id(){return n()},get trapFocus(){return o(Ct)},get preventScroll(){return a()},loop:!0,forceMount:!0,get customAnchor(){return l()},onOpenAutoFocus:wt,get onCloseAutoFocus(){return i()},get shouldRender(){return H.shouldRender},popper:(pt,nt)=>{let ft=()=>nt?.().props,st=()=>nt?.().wrapperProps;const it=T(()=>Bt(ft(),{style:se("popover")},{style:t.style}));var at=j(),Tt=A(at);{var Dt=V=>{var M=j(),E=A(M);{let J=T(()=>({props:o(it),wrapperProps:st(),...H.snippetProps}));ut(E,()=>t.child,()=>o(J))}u(V,M)},Pt=V=>{var M=Ge();ct(M,()=>({...st()}));var E=g(M);ct(E,()=>({...o(it)}));var J=g(E);ut(J,()=>t.children??Kt),_(E),_(M),u(V,M)};S(Tt,V=>{t.child?V(Dt):V(Pt,!1)})}u(pt,at)},$$slots:{popper:!0}}))},rt=O=>{Fe(O,ee(()=>o(ot),()=>H.popperProps,{get ref(){return H.opts.ref},get open(){return H.root.opts.open.current},get id(){return n()},get trapFocus(){return o(Ct)},get preventScroll(){return a()},loop:!0,forceMount:!1,get customAnchor(){return l()},onOpenAutoFocus:wt,get onCloseAutoFocus(){return i()},get shouldRender(){return H.shouldRender},popper:(pt,nt)=>{let ft=()=>nt?.().props,st=()=>nt?.().wrapperProps;const it=T(()=>Bt(ft(),{style:se("popover")},{style:t.style}));var at=j(),Tt=A(at);{var Dt=V=>{var M=j(),E=A(M);{let J=T(()=>({props:o(it),wrapperProps:st(),...H.snippetProps}));ut(E,()=>t.child,()=>o(J))}u(V,M)},Pt=V=>{var M=Ue();ct(M,()=>({...st()}));var E=g(M);ct(E,()=>({...o(it)}));var J=g(E);ut(J,()=>t.children??Kt),_(E),_(M),u(V,M)};S(Tt,V=>{t.child?V(Dt):V(Pt,!1)})}u(pt,at)},$$slots:{popper:!0}}))};S(q,O=>{r()?O(B):r()||O(rt,1)})}u(v,N),yt()}var Je=I("<button><!></button>");function Qe(v,t){const e=le();_t(t,!0);let s=f(t,"id",19,()=>ce(e)),n=f(t,"ref",15,null),r=f(t,"type",3,"button"),d=f(t,"disabled",3,!1),i=f(t,"openOnHover",3,!1),p=f(t,"openDelay",3,700),P=f(t,"closeDelay",3,300),y=he(t,["$$slots","$$events","$$legacy","children","child","id","ref","type","disabled","openOnHover","openDelay","closeDelay"]);const a=Rt.create({id:D(()=>s()),ref:D(()=>n(),x=>n(x)),disabled:D(()=>!!d()),openOnHover:D(()=>i()),openDelay:D(()=>p()),closeDelay:D(()=>P())}),l=T(()=>Bt(y,a.props,{type:r()}));Ee(v,{get id(){return s()},get ref(){return a.opts.ref},children:(x,H)=>{var ot=j(),Ct=A(ot);{var wt=q=>{var B=j(),rt=A(B);ut(rt,()=>t.child,()=>({props:o(l)})),u(q,B)},N=q=>{var B=Je();ct(B,()=>({...o(l)}));var rt=g(B);ut(rt,()=>t.children??Kt),_(B),u(q,B)};S(Ct,q=>{t.child?q(wt):q(N,!1)})}u(x,ot)},$$slots:{default:!0}}),yt()}function Re(v,t){_t(t,!0);let e=f(t,"open",15,!1),s=f(t,"onOpenChange",3,xt),n=f(t,"onOpenChangeComplete",3,xt);Qt.create({open:D(()=>e(),r=>{e(r),s()(r)}),onOpenChangeComplete:D(()=>n())}),Se(v,{children:(r,d)=>{var i=j(),p=A(i);ut(p,()=>t.children??Kt),u(r,i)},$$slots:{default:!0}}),yt()}var to=Ot("<title> </title>"),eo=Ot('<svg><!><path d="M17.74,30,16,29l4-7h6a2,2,0,0,0,2-2V8a2,2,0,0,0-2-2H6A2,2,0,0,0,4,8V20a2,2,0,0,0,2,2h9v2H6a4,4,0,0,1-4-4V8A4,4,0,0,1,6,4H26a4,4,0,0,1,4,4V20a4,4,0,0,1-4,4H21.16Z"></path><path d="M8 10H24V12H8z"></path><path d="M8 16H18V18H8z"></path></svg>');function oo(v,t){const e=Vt(t,["children","$$slots","$$events","$$legacy"]),s=Vt(e,["size","title"]);_t(t,!1);const n=Mt(),r=Mt();let d=f(t,"size",8,16),i=f(t,"title",8,void 0);At(()=>(et(e),et(i())),()=>{c(n,e["aria-label"]||e["aria-labelledby"]||i())}),At(()=>(o(n),et(e)),()=>{c(r,{"aria-hidden":o(n)?void 0:!0,role:o(n)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),Gt(),Ut();var p=eo();ct(p,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:d(),height:d(),...o(r),...s}));var P=g(p);{var y=a=>{var l=to(),x=g(l,!0);_(l),dt(()=>Ht(x,i())),u(a,l)};S(P,a=>{i()&&a(y)})}Z(3),_(p),u(v,p),yt()}var ro=Ot("<title> </title>"),no=Ot('<svg><!><path d="M10 6H28V8H10z"></path><path d="M10 24H28V26H10z"></path><path d="M10 15H28V17H10z"></path><path d="M4 15H6V17H4z"></path><path d="M4 6H6V8H4z"></path><path d="M4 24H6V26H4z"></path></svg>');function so(v,t){const e=Vt(t,["children","$$slots","$$events","$$legacy"]),s=Vt(e,["size","title"]);_t(t,!1);const n=Mt(),r=Mt();let d=f(t,"size",8,16),i=f(t,"title",8,void 0);At(()=>(et(e),et(i())),()=>{c(n,e["aria-label"]||e["aria-labelledby"]||i())}),At(()=>(o(n),et(e)),()=>{c(r,{"aria-hidden":o(n)?void 0:!0,role:o(n)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),Gt(),Ut();var p=no();ct(p,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:d(),height:d(),...o(r),...s}));var P=g(p);{var y=a=>{var l=ro(),x=g(l,!0);_(l),dt(()=>Ht(x,i())),u(a,l)};S(P,a=>{i()&&a(y)})}Z(6),_(p),u(v,p),yt()}var io=Ot("<title> </title>"),ao=Ot('<svg><!><path d="M26,4h-4V2h-2v2h-8V2h-2v2H6C4.9,4,4,4.9,4,6v20c0,1.1,0.9,2,2,2h20c1.1,0,2-0.9,2-2V6C28,4.9,27.1,4,26,4z M26,26H6V12h20 V26z M26,10H6V6h4v2h2V6h8v2h2V6h4V10z"></path></svg>');function lo(v,t){const e=Vt(t,["children","$$slots","$$events","$$legacy"]),s=Vt(e,["size","title"]);_t(t,!1);const n=Mt(),r=Mt();let d=f(t,"size",8,16),i=f(t,"title",8,void 0);At(()=>(et(e),et(i())),()=>{c(n,e["aria-label"]||e["aria-labelledby"]||i())}),At(()=>(o(n),et(e)),()=>{c(r,{"aria-hidden":o(n)?void 0:!0,role:o(n)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),Gt(),Ut();var p=ao();ct(p,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:d(),height:d(),...o(r),...s}));var P=g(p);{var y=a=>{var l=io(),x=g(l,!0);_(l),dt(()=>Ht(x,i())),u(a,l)};S(P,a=>{i()&&a(y)})}Z(),_(p),u(v,p),yt()}const ho=Re,uo=Qe,co=Ze;var po=I('<div class="tab active svelte-r6dy5f"><input class="tab-rename-input svelte-r6dy5f"/></div>'),fo=I('<span class="tab-close svelte-r6dy5f" title="Close"><!></span>'),vo=I('<button><span class="tab-label svelte-r6dy5f"> </span> <!></button>'),mo=I('<span class="tab-close svelte-r6dy5f" title="Close"><!></span>'),bo=I('<button><span class="tab-label svelte-r6dy5f"> </span> <!></button>'),go=I("<!> <span>New View</span>",1),_o=I('<button class="add-view-option svelte-r6dy5f"><!> List</button> <button class="add-view-option svelte-r6dy5f"><!> Calendar</button>',1),yo=I("<!> <!>",1),Co=I("<!> <!>",1),wo=I("<!> <!>",1),Po=I("<!> <!>",1),xo=I('<div class="tab-bar svelte-r6dy5f"><div class="tabs-scroll svelte-r6dy5f"><button><span class="tab-label svelte-r6dy5f">Home</span></button> <button><span class="tab-label svelte-r6dy5f">Graph</span></button> <!> <!> <!></div> <div class="bar-right svelte-r6dy5f"><!> <!></div></div> <!>',1);function Bo(v,t){_t(t,!0);let e=f(t,"activeView",3,"entity");const s=me("chat");function n(h){oe(h,{noScroll:!0})}const r=T(()=>U.selectedId!==null),d=T(()=>{if(!U.selectedRepo||!U.selectedId)return"";for(const h of He.repos){if(h.name!==U.selectedRepo)continue;const m=h.entities.find(C=>C.id===U.selectedId);if(m)return m.title}return U.selectedId.replace(/-/g," ").replace(/\b\w/g,h=>h.toUpperCase())});function i(){U.deselect(),n("/")}let p=F(!1);async function P(h){c(p,!1);const m=h==="calendar"?"Calendar":"List",C=await $t.create(m,h);oe(`/views/${C.id}`)}let y=F(null),a=F(""),l=F(null),x=F(!1);function H(h){c(x,!1),c(y,h.id,!0),c(a,h.name,!0)}be(()=>{o(y)&&o(l)&&(o(l).focus(),o(l).select(),setTimeout(()=>{c(x,!0)},50))});function ot(){o(x)&&(o(y)&&o(a).trim()&&$t.update(o(y),{name:o(a).trim()}),c(y,null),c(x,!1))}function Ct(){c(y,null),c(x,!1)}function wt(h){h.key==="Enter"&&(h.preventDefault(),c(x,!0),ot()),h.key==="Escape"&&(h.preventDefault(),Ct())}let N=F(null);function q(h,m){h.stopPropagation(),c(N,m,!0)}async function B(){o(N)&&(await $t.remove(o(N).id),c(N,null))}var rt=xo(),O=A(rt),kt=g(O),pt=g(kt);let nt;var ft=z(pt,2);let st;var it=z(ft,2);Ce(it,17,()=>$t.views,h=>h.id,(h,m)=>{var C=j(),Q=A(C);{var R=W=>{var k=po(),b=g(k);ge(b),ye(b,w=>c(l,w),()=>o(l)),_(k),dt(w=>_e(b,"size",w),[()=>Math.max(o(a).length,1)]),L("keydown",b,wt),L("input",b,w=>{c(a,w.currentTarget.value,!0)}),ve("blur",b,ot),we(b,()=>o(a),w=>c(a,w)),u(W,k)},tt=W=>{const k=T(()=>e()==="view"&&U.activeViewId===o(m).id);var b=vo();let w;var lt=g(b),$=g(lt,!0);_(lt);var K=z(lt,2);{var It=Y=>{var G=fo(),zt=g(G);re(zt,{size:12}),_(G),L("click",G,Lt=>q(Lt,o(m))),u(Y,G)};S(K,Y=>{o(k)&&Y(It)})}_(b),dt(()=>{w=Wt(b,1,"tab svelte-r6dy5f",null,w,{"tab-permanent":!o(k),active:o(k)}),Ht($,o(m).name)}),L("click",b,()=>n(`/views/${o(m).id}`)),L("dblclick",b,()=>H(o(m))),u(W,b)};S(Q,W=>{o(y)===o(m).id?W(R):W(tt,!1)})}u(h,C)});var at=z(it,2);{var Tt=h=>{const m=T(()=>e()==="entity"&&o(r));var C=bo();let Q;var R=g(C),tt=g(R,!0);_(R);var W=z(R,2);{var k=b=>{var w=mo(),lt=g(w);re(lt,{size:12}),_(w),L("click",w,$=>{$.stopPropagation(),i()}),u(b,w)};S(W,b=>{o(m)&&b(k)})}_(C),dt(()=>{Q=Wt(C,1,"tab svelte-r6dy5f",null,Q,{"tab-permanent":!o(m),active:o(m)}),Ht(tt,o(d))}),L("click",C,()=>n(U.entityPath??"/")),u(h,C)};S(at,h=>{o(r)&&h(Tt)})}var Dt=z(at,2);X(Dt,()=>ho,(h,m)=>{m(h,{get open(){return o(p)},set open(C){c(p,C,!0)},children:(C,Q)=>{var R=yo(),tt=A(R);X(tt,()=>uo,(k,b)=>{b(k,{class:"new-view-btn",title:"New view",children:(w,lt)=>{var $=go(),K=A($);xe(K,{size:16}),Z(2),u(w,$)},$$slots:{default:!0}})});var W=z(tt,2);X(W,()=>co,(k,b)=>{b(k,{class:"add-view-menu",sideOffset:4,align:"start",children:(w,lt)=>{var $=_o(),K=A($),It=g(K);so(It,{size:14}),Z(),_(K);var Y=z(K,2),G=g(Y);lo(G,{size:14}),Z(),_(Y),L("click",K,()=>P("list")),L("click",Y,()=>P("calendar")),u(w,$)},$$slots:{default:!0}})}),u(C,R)},$$slots:{default:!0}})}),_(kt);var Pt=z(kt,2),V=g(Pt);{var M=h=>{var m=j(),C=A(m);ut(C,()=>t.right),u(h,m)};S(V,h=>{t.right&&h(M)})}var E=z(V,2);{var J=h=>{Pe(h,{variant:"accent",size:"icon",class:"chat-toggle",title:"Open Agent",get onclick(){return s.toggle},children:(m,C)=>{oo(m,{size:14})},$$slots:{default:!0}})};S(E,h=>{s.open||h(J)})}_(Pt),_(O);var pe=z(O,2);{let h=T(()=>!!o(N));X(pe,()=>Xe,(m,C)=>{C(m,{get open(){return o(h)},onOpenChange:Q=>{Q||c(N,null)},children:(Q,R)=>{var tt=j(),W=A(tt);X(W,()=>Ne,(k,b)=>{b(k,{children:(w,lt)=>{var $=Po(),K=A($);X(K,()=>We,(Y,G)=>{G(Y,{children:(zt,Lt)=>{var Ft=Co(),Et=A(Ft);X(Et,()=>$e,(vt,mt)=>{mt(vt,{children:(bt,jt)=>{Z();var ht=Nt("Delete view?");u(bt,ht)},$$slots:{default:!0}})});var Xt=z(Et,2);X(Xt,()=>Be,(vt,mt)=>{mt(vt,{children:(bt,jt)=>{Z();var ht=Nt();dt(()=>Ht(ht,`The view "${o(N)?.name??""}" will be permanently deleted.`)),u(bt,ht)},$$slots:{default:!0}})}),u(zt,Ft)},$$slots:{default:!0}})});var It=z(K,2);X(It,()=>Ke,(Y,G)=>{G(Y,{children:(zt,Lt)=>{var Ft=wo(),Et=A(Ft);X(Et,()=>Ye,(vt,mt)=>{mt(vt,{children:(bt,jt)=>{Z();var ht=Nt("Cancel");u(bt,ht)},$$slots:{default:!0}})});var Xt=z(Et,2);X(Xt,()=>Le,(vt,mt)=>{mt(vt,{onclick:B,children:(bt,jt)=>{Z();var ht=Nt("Delete");u(bt,ht)},$$slots:{default:!0}})}),u(zt,Ft)},$$slots:{default:!0}})}),u(w,$)},$$slots:{default:!0}})}),u(Q,tt)},$$slots:{default:!0}})})}dt(()=>{nt=Wt(pt,1,"tab tab-permanent svelte-r6dy5f",null,nt,{active:e()==="entity"&&!o(r)}),st=Wt(ft,1,"tab tab-permanent svelte-r6dy5f",null,st,{active:e()==="graph"})}),L("click",pt,()=>{U.deselect(),n("/")}),L("click",ft,()=>e()!=="graph"&&n("/graph")),u(v,rt),yt()}fe(["click","keydown","input","dblclick"]);export{co as C,ho as R,uo as T,Bo as V,lo as a};
1
+ import{o as St,p as le,c as j,a as u,b as I,s as Ht,f as Ot,d as fe,e as L,t as Nt,g as ve}from"./BdF6nRVd.js";import{e as F,s as c,g as o,a4 as T,p as _t,a0 as A,b as yt,c as g,ae as Kt,r as _,l as At,d as et,a as Gt,n as Z,m as Mt,t as dt,a1 as me,a2 as be,a3 as z}from"./sZJoCX5N.js";import{s as ut,a as ct,r as ge,b as _e}from"./BKUmpdNY.js";import{i as S,b as ye}from"./BSSN_IAc.js";import{e as Ce}from"./gawey_BW.js";import{c as X}from"./4uEV2Hr-.js";import{s as Wt}from"./OZfYVFGq.js";import{b as we,B as Pe}from"./9rXsO0Bz.js";import{p as f,s as ee,r as he,l as Vt}from"./DNrFMx27.js";import{g as oe}from"./Ce71etNw.js";import{i as Ut}from"./faGDeGnG.js";import{A as xe,C as re}from"./B4jNhkRC.js";import{n as U}from"./CkIXD8Ce.js";import{v as $t}from"./BxUeCm7h.js";import{w as He}from"./DvmL5xMZ.js";import{w as Zt,g as Ae,i as gt,C as Me,a as de,D as Ve,b as Yt,E as Oe,S as ke,c as ue,d as Te,e as De,P as ne,f as D,h as Ie,j as ce,n as xt,k as ze,l as Fe,m as Bt,o as se,F as Ee,p as Se,A as Ne,q as We,r as $e,s as Be,t as Ke,u as Ye,v as Le,x as Xe}from"./BdOJnB5W.js";function ie(v,t){const[e,s]=v;let n=!1;const r=t.length;for(let d=0,i=r-1;d<r;i=d++){const[p,P]=t[d]??[0,0],[y,a]=t[i]??[0,0];P>=s!=a>=s&&e<=(y-p)*(s-P)/(a-P)+p&&(n=!n)}return n}function ae(v,t){return v[0]>=t.left&&v[0]<=t.right&&v[1]>=t.top&&v[1]<=t.bottom}function je(v,t){const e=v.left+v.width/2,s=v.top+v.height/2,n=t.left+t.width/2,r=t.top+t.height/2,d=n-e,i=r-s;return Math.abs(d)>Math.abs(i)?d>0?"right":"left":i>0?"bottom":"top"}class qe{#t;#n;#o=null;#e=null;#s=null;#a(){this.#s!==null&&(cancelAnimationFrame(this.#s),this.#s=null)}#h(){this.#a(),this.#s=requestAnimationFrame(()=>{this.#s=null,!(!this.#o||!this.#e)&&(this.#r(),this.#t.onPointerExit())})}constructor(t){this.#t=t,this.#n=t.buffer??1,Zt([t.triggerNode,t.contentNode,t.enabled],([e,s,n])=>{if(!e||!s||!n){this.#r();return}const r=Ae(e),d=a=>{this.#i([a.clientX,a.clientY],e,s)},i=a=>{const l=a.relatedTarget;if(gt(l)&&s.contains(l))return;const x=this.#t.ignoredTargets?.()??[];if(!(gt(l)&&x.some(H=>H===l||H.contains(l)))){if(gt(l)&&!e.contains(l)&&!s.contains(l)&&!l.contains(s)){this.#r(),this.#t.onPointerExit();return}this.#o=[a.clientX,a.clientY],this.#e="content",this.#h()}},p=()=>{this.#r()},P=()=>{this.#r()},y=a=>{const l=a.relatedTarget;gt(l)&&e.contains(l)||(this.#o=[a.clientX,a.clientY],this.#e="trigger",this.#h())};return[St(r,"pointermove",d),St(e,"pointerleave",i),St(e,"pointerenter",p),St(s,"pointerenter",P),St(s,"pointerleave",y)].reduce((a,l)=>()=>{a(),l()},()=>{})})}#i(t,e,s){if(!this.#o||!this.#e)return;this.#a();const n=e.getBoundingClientRect(),r=s.getBoundingClientRect();if(this.#e==="content"&&ae(t,r)){this.#r();return}if(this.#e==="trigger"&&ae(t,n)){this.#r();return}const d=je(n,r),i=this.#l(n,r,d);if(i&&ie(t,i))return;const p=this.#e==="content"?r:n,P=this.#d(this.#o,p,d,this.#e);ie(t,P)||(this.#r(),this.#t.onPointerExit())}#r(){this.#o=null,this.#e=null,this.#a()}#l(t,e,s){const n=this.#n;switch(s){case"top":return[[Math.min(t.left,e.left)-n,t.top],[Math.min(t.left,e.left)-n,e.bottom],[Math.max(t.right,e.right)+n,e.bottom],[Math.max(t.right,e.right)+n,t.top]];case"bottom":return[[Math.min(t.left,e.left)-n,t.bottom],[Math.min(t.left,e.left)-n,e.top],[Math.max(t.right,e.right)+n,e.top],[Math.max(t.right,e.right)+n,t.bottom]];case"left":return[[t.left,Math.min(t.top,e.top)-n],[e.right,Math.min(t.top,e.top)-n],[e.right,Math.max(t.bottom,e.bottom)+n],[t.left,Math.max(t.bottom,e.bottom)+n]];case"right":return[[t.right,Math.min(t.top,e.top)-n],[e.left,Math.min(t.top,e.top)-n],[e.left,Math.max(t.bottom,e.bottom)+n],[t.right,Math.max(t.bottom,e.bottom)+n]]}}#d(t,e,s,n){const r=this.#n*4,[d,i]=t;switch(n==="trigger"?this.#u(s):s){case"top":return[[d-r,i+r],[d+r,i+r],[e.right+r,e.bottom],[e.right+r,e.top],[e.left-r,e.top],[e.left-r,e.bottom]];case"bottom":return[[d-r,i-r],[d+r,i-r],[e.right+r,e.top],[e.right+r,e.bottom],[e.left-r,e.bottom],[e.left-r,e.top]];case"left":return[[d+r,i-r],[d+r,i+r],[e.right,e.bottom+r],[e.left,e.bottom+r],[e.left,e.top-r],[e.right,e.top-r]];case"right":return[[d-r,i-r],[d-r,i+r],[e.left,e.bottom+r],[e.right,e.bottom+r],[e.right,e.top-r],[e.left,e.top-r]]}}#u(t){switch(t){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left"}}}const qt=Ie({component:"popover",parts:["root","trigger","content","close","overlay"]}),Jt=new Me("Popover.Root");class Qt{static create(t){return Jt.set(new Qt(t))}opts;#t=F(null);get contentNode(){return o(this.#t)}set contentNode(t){c(this.#t,t,!0)}contentPresence;#n=F(null);get triggerNode(){return o(this.#n)}set triggerNode(t){c(this.#n,t,!0)}#o=F(null);get overlayNode(){return o(this.#o)}set overlayNode(t){c(this.#o,t,!0)}overlayPresence;#e=F(!1);get openedViaHover(){return o(this.#e)}set openedViaHover(t){c(this.#e,t,!0)}#s=F(!1);get hasInteractedWithContent(){return o(this.#s)}set hasInteractedWithContent(t){c(this.#s,t,!0)}#a=F(!1);get hoverCooldown(){return o(this.#a)}set hoverCooldown(t){c(this.#a,t,!0)}#h=F(0);get closeDelay(){return o(this.#h)}set closeDelay(t){c(this.#h,t,!0)}#i=null;#r=null;constructor(t){this.opts=t,this.contentPresence=new ne({ref:D(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new ne({ref:D(()=>this.overlayNode),open:this.opts.open}),Zt(()=>this.opts.open.current,e=>{e||(this.openedViaHover=!1,this.hasInteractedWithContent=!1,this.#l())})}setDomContext(t){this.#r=t}#l(){this.#i!==null&&this.#r&&(this.#r.clearTimeout(this.#i),this.#i=null)}toggleOpen(){this.#l(),this.opts.open.current=!this.opts.open.current}handleClose(){this.#l(),this.opts.open.current&&(this.opts.open.current=!1)}handleHoverOpen(){this.#l(),!this.opts.open.current&&(this.openedViaHover=!0,this.opts.open.current=!0)}handleHoverClose(){this.opts.open.current&&this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1)}handleDelayedHoverClose(){this.opts.open.current&&(!this.openedViaHover||this.hasInteractedWithContent||(this.#l(),this.closeDelay<=0?this.opts.open.current=!1:this.#r&&(this.#i=this.#r.setTimeout(()=>{this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1),this.#i=null},this.closeDelay))))}cancelDelayedClose(){this.#l()}markInteraction(){this.hasInteractedWithContent=!0,this.#l()}}class Rt{static create(t){return new Rt(t,Jt.get())}opts;root;attachment;domContext;#t=null;#n=null;#o=F(!1);constructor(t,e){this.opts=t,this.root=e,this.attachment=de(this.opts.ref,s=>this.root.triggerNode=s),this.domContext=new Ve(t.ref),this.root.setDomContext(this.domContext),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),Zt(()=>this.opts.closeDelay.current,s=>{this.root.closeDelay=s})}#e(){this.#t!==null&&(this.domContext.clearTimeout(this.#t),this.#t=null)}#s(){this.#n!==null&&(this.domContext.clearTimeout(this.#n),this.#n=null)}#a(){this.#e(),this.#s()}onpointerenter(t){if(this.opts.disabled.current||!this.opts.openOnHover.current||Yt(t)||(c(this.#o,!0),this.#s(),this.root.cancelDelayedClose(),this.root.opts.open.current||this.root.hoverCooldown))return;const e=this.opts.openDelay.current;e<=0?this.root.handleHoverOpen():this.#t=this.domContext.setTimeout(()=>{this.root.handleHoverOpen(),this.#t=null},e)}onpointerleave(t){this.opts.disabled.current||this.opts.openOnHover.current&&(Yt(t)||(c(this.#o,!1),this.#e(),this.root.hoverCooldown=!1))}onclick(t){if(!this.opts.disabled.current&&t.button===0){if(this.#a(),o(this.#o)&&this.root.opts.open.current&&this.root.openedViaHover){this.root.openedViaHover=!1,this.root.hasInteractedWithContent=!0;return}o(this.#o)&&this.opts.openOnHover.current&&this.root.opts.open.current&&(this.root.hoverCooldown=!0),this.root.hoverCooldown&&!this.root.opts.open.current&&(this.root.hoverCooldown=!1),this.root.toggleOpen()}}onkeydown(t){this.opts.disabled.current||(t.key===Oe||t.key===ke)&&(t.preventDefault(),this.#a(),this.root.toggleOpen())}#h(){if(this.root.opts.open.current&&this.root.contentNode?.id)return this.root.contentNode?.id}#i=T(()=>({id:this.opts.id.current,"aria-haspopup":"dialog","aria-expanded":Te(this.root.opts.open.current),"data-state":ue(this.root.opts.open.current),"aria-controls":this.#h(),[qt.trigger]:"",disabled:this.opts.disabled.current,onkeydown:this.onkeydown,onclick:this.onclick,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment}));get props(){return o(this.#i)}set props(t){c(this.#i,t)}}class te{static create(t){return new te(t,Jt.get())}opts;root;attachment;constructor(t,e){this.opts=t,this.root=e,this.attachment=de(this.opts.ref,s=>this.root.contentNode=s),this.onpointerdown=this.onpointerdown.bind(this),this.onfocusin=this.onfocusin.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),new qe({triggerNode:()=>this.root.triggerNode,contentNode:()=>this.root.contentNode,enabled:()=>this.root.opts.open.current&&this.root.openedViaHover&&!this.root.hasInteractedWithContent,onPointerExit:()=>{this.root.handleDelayedHoverClose()}})}onpointerdown(t){this.root.markInteraction()}onfocusin(t){const e=t.target;gt(e)&&De(e)&&this.root.markInteraction()}onpointerenter(t){Yt(t)||this.root.cancelDelayedClose()}onpointerleave(t){Yt(t)}onInteractOutside=t=>{if(this.opts.onInteractOutside.current(t),t.defaultPrevented||!gt(t.target))return;const e=t.target.closest(qt.selector("trigger"));if(!(e&&e===this.root.triggerNode)){if(this.opts.customAnchor.current){if(gt(this.opts.customAnchor.current)){if(this.opts.customAnchor.current.contains(t.target))return}else if(typeof this.opts.customAnchor.current=="string"){const s=document.querySelector(this.opts.customAnchor.current);if(s&&s.contains(t.target))return}}this.root.handleClose()}};onEscapeKeydown=t=>{this.opts.onEscapeKeydown.current(t),!t.defaultPrevented&&this.root.handleClose()};get shouldRender(){return this.root.contentPresence.shouldRender}get shouldTrapFocus(){return!(this.root.openedViaHover&&!this.root.hasInteractedWithContent)}#t=T(()=>({open:this.root.opts.open.current}));get snippetProps(){return o(this.#t)}set snippetProps(t){c(this.#t,t)}#n=T(()=>({id:this.opts.id.current,tabindex:-1,"data-state":ue(this.root.opts.open.current),[qt.content]:"",style:{pointerEvents:"auto",contain:"layout style"},onpointerdown:this.onpointerdown,onfocusin:this.onfocusin,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment}));get props(){return o(this.#n)}set props(t){c(this.#n,t)}popperProps={onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown}}var Ge=I("<div><div><!></div></div>"),Ue=I("<div><div><!></div></div>");function Ze(v,t){const e=le();_t(t,!0);let s=f(t,"ref",15,null),n=f(t,"id",19,()=>ce(e)),r=f(t,"forceMount",3,!1),d=f(t,"onOpenAutoFocus",3,xt),i=f(t,"onCloseAutoFocus",3,xt),p=f(t,"onEscapeKeydown",3,xt),P=f(t,"onInteractOutside",3,xt),y=f(t,"trapFocus",3,!0),a=f(t,"preventScroll",3,!1),l=f(t,"customAnchor",3,null),x=he(t,["$$slots","$$events","$$legacy","child","children","ref","id","forceMount","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","customAnchor","style"]);const H=te.create({id:D(()=>n()),ref:D(()=>s(),O=>s(O)),onInteractOutside:D(()=>P()),onEscapeKeydown:D(()=>p()),customAnchor:D(()=>l())}),ot=T(()=>Bt(x,H.props)),Ct=T(()=>y()&&H.shouldTrapFocus);function wt(O){H.shouldTrapFocus||O.preventDefault(),d()(O)}var N=j(),q=A(N);{var B=O=>{ze(O,ee(()=>o(ot),()=>H.popperProps,{get ref(){return H.opts.ref},get enabled(){return H.root.opts.open.current},get id(){return n()},get trapFocus(){return o(Ct)},get preventScroll(){return a()},loop:!0,forceMount:!0,get customAnchor(){return l()},onOpenAutoFocus:wt,get onCloseAutoFocus(){return i()},get shouldRender(){return H.shouldRender},popper:(pt,nt)=>{let ft=()=>nt?.().props,st=()=>nt?.().wrapperProps;const it=T(()=>Bt(ft(),{style:se("popover")},{style:t.style}));var at=j(),Tt=A(at);{var Dt=V=>{var M=j(),E=A(M);{let J=T(()=>({props:o(it),wrapperProps:st(),...H.snippetProps}));ut(E,()=>t.child,()=>o(J))}u(V,M)},Pt=V=>{var M=Ge();ct(M,()=>({...st()}));var E=g(M);ct(E,()=>({...o(it)}));var J=g(E);ut(J,()=>t.children??Kt),_(E),_(M),u(V,M)};S(Tt,V=>{t.child?V(Dt):V(Pt,!1)})}u(pt,at)},$$slots:{popper:!0}}))},rt=O=>{Fe(O,ee(()=>o(ot),()=>H.popperProps,{get ref(){return H.opts.ref},get open(){return H.root.opts.open.current},get id(){return n()},get trapFocus(){return o(Ct)},get preventScroll(){return a()},loop:!0,forceMount:!1,get customAnchor(){return l()},onOpenAutoFocus:wt,get onCloseAutoFocus(){return i()},get shouldRender(){return H.shouldRender},popper:(pt,nt)=>{let ft=()=>nt?.().props,st=()=>nt?.().wrapperProps;const it=T(()=>Bt(ft(),{style:se("popover")},{style:t.style}));var at=j(),Tt=A(at);{var Dt=V=>{var M=j(),E=A(M);{let J=T(()=>({props:o(it),wrapperProps:st(),...H.snippetProps}));ut(E,()=>t.child,()=>o(J))}u(V,M)},Pt=V=>{var M=Ue();ct(M,()=>({...st()}));var E=g(M);ct(E,()=>({...o(it)}));var J=g(E);ut(J,()=>t.children??Kt),_(E),_(M),u(V,M)};S(Tt,V=>{t.child?V(Dt):V(Pt,!1)})}u(pt,at)},$$slots:{popper:!0}}))};S(q,O=>{r()?O(B):r()||O(rt,1)})}u(v,N),yt()}var Je=I("<button><!></button>");function Qe(v,t){const e=le();_t(t,!0);let s=f(t,"id",19,()=>ce(e)),n=f(t,"ref",15,null),r=f(t,"type",3,"button"),d=f(t,"disabled",3,!1),i=f(t,"openOnHover",3,!1),p=f(t,"openDelay",3,700),P=f(t,"closeDelay",3,300),y=he(t,["$$slots","$$events","$$legacy","children","child","id","ref","type","disabled","openOnHover","openDelay","closeDelay"]);const a=Rt.create({id:D(()=>s()),ref:D(()=>n(),x=>n(x)),disabled:D(()=>!!d()),openOnHover:D(()=>i()),openDelay:D(()=>p()),closeDelay:D(()=>P())}),l=T(()=>Bt(y,a.props,{type:r()}));Ee(v,{get id(){return s()},get ref(){return a.opts.ref},children:(x,H)=>{var ot=j(),Ct=A(ot);{var wt=q=>{var B=j(),rt=A(B);ut(rt,()=>t.child,()=>({props:o(l)})),u(q,B)},N=q=>{var B=Je();ct(B,()=>({...o(l)}));var rt=g(B);ut(rt,()=>t.children??Kt),_(B),u(q,B)};S(Ct,q=>{t.child?q(wt):q(N,!1)})}u(x,ot)},$$slots:{default:!0}}),yt()}function Re(v,t){_t(t,!0);let e=f(t,"open",15,!1),s=f(t,"onOpenChange",3,xt),n=f(t,"onOpenChangeComplete",3,xt);Qt.create({open:D(()=>e(),r=>{e(r),s()(r)}),onOpenChangeComplete:D(()=>n())}),Se(v,{children:(r,d)=>{var i=j(),p=A(i);ut(p,()=>t.children??Kt),u(r,i)},$$slots:{default:!0}}),yt()}var to=Ot("<title> </title>"),eo=Ot('<svg><!><path d="M17.74,30,16,29l4-7h6a2,2,0,0,0,2-2V8a2,2,0,0,0-2-2H6A2,2,0,0,0,4,8V20a2,2,0,0,0,2,2h9v2H6a4,4,0,0,1-4-4V8A4,4,0,0,1,6,4H26a4,4,0,0,1,4,4V20a4,4,0,0,1-4,4H21.16Z"></path><path d="M8 10H24V12H8z"></path><path d="M8 16H18V18H8z"></path></svg>');function oo(v,t){const e=Vt(t,["children","$$slots","$$events","$$legacy"]),s=Vt(e,["size","title"]);_t(t,!1);const n=Mt(),r=Mt();let d=f(t,"size",8,16),i=f(t,"title",8,void 0);At(()=>(et(e),et(i())),()=>{c(n,e["aria-label"]||e["aria-labelledby"]||i())}),At(()=>(o(n),et(e)),()=>{c(r,{"aria-hidden":o(n)?void 0:!0,role:o(n)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),Gt(),Ut();var p=eo();ct(p,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:d(),height:d(),...o(r),...s}));var P=g(p);{var y=a=>{var l=to(),x=g(l,!0);_(l),dt(()=>Ht(x,i())),u(a,l)};S(P,a=>{i()&&a(y)})}Z(3),_(p),u(v,p),yt()}var ro=Ot("<title> </title>"),no=Ot('<svg><!><path d="M10 6H28V8H10z"></path><path d="M10 24H28V26H10z"></path><path d="M10 15H28V17H10z"></path><path d="M4 15H6V17H4z"></path><path d="M4 6H6V8H4z"></path><path d="M4 24H6V26H4z"></path></svg>');function so(v,t){const e=Vt(t,["children","$$slots","$$events","$$legacy"]),s=Vt(e,["size","title"]);_t(t,!1);const n=Mt(),r=Mt();let d=f(t,"size",8,16),i=f(t,"title",8,void 0);At(()=>(et(e),et(i())),()=>{c(n,e["aria-label"]||e["aria-labelledby"]||i())}),At(()=>(o(n),et(e)),()=>{c(r,{"aria-hidden":o(n)?void 0:!0,role:o(n)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),Gt(),Ut();var p=no();ct(p,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:d(),height:d(),...o(r),...s}));var P=g(p);{var y=a=>{var l=ro(),x=g(l,!0);_(l),dt(()=>Ht(x,i())),u(a,l)};S(P,a=>{i()&&a(y)})}Z(6),_(p),u(v,p),yt()}var io=Ot("<title> </title>"),ao=Ot('<svg><!><path d="M26,4h-4V2h-2v2h-8V2h-2v2H6C4.9,4,4,4.9,4,6v20c0,1.1,0.9,2,2,2h20c1.1,0,2-0.9,2-2V6C28,4.9,27.1,4,26,4z M26,26H6V12h20 V26z M26,10H6V6h4v2h2V6h8v2h2V6h4V10z"></path></svg>');function lo(v,t){const e=Vt(t,["children","$$slots","$$events","$$legacy"]),s=Vt(e,["size","title"]);_t(t,!1);const n=Mt(),r=Mt();let d=f(t,"size",8,16),i=f(t,"title",8,void 0);At(()=>(et(e),et(i())),()=>{c(n,e["aria-label"]||e["aria-labelledby"]||i())}),At(()=>(o(n),et(e)),()=>{c(r,{"aria-hidden":o(n)?void 0:!0,role:o(n)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),Gt(),Ut();var p=ao();ct(p,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:d(),height:d(),...o(r),...s}));var P=g(p);{var y=a=>{var l=io(),x=g(l,!0);_(l),dt(()=>Ht(x,i())),u(a,l)};S(P,a=>{i()&&a(y)})}Z(),_(p),u(v,p),yt()}const ho=Re,uo=Qe,co=Ze;var po=I('<div class="tab active svelte-r6dy5f"><input class="tab-rename-input svelte-r6dy5f"/></div>'),fo=I('<span class="tab-close svelte-r6dy5f" title="Close"><!></span>'),vo=I('<button><span class="tab-label svelte-r6dy5f"> </span> <!></button>'),mo=I('<span class="tab-close svelte-r6dy5f" title="Close"><!></span>'),bo=I('<button><span class="tab-label svelte-r6dy5f"> </span> <!></button>'),go=I("<!> <span>New View</span>",1),_o=I('<button class="add-view-option svelte-r6dy5f"><!> List</button> <button class="add-view-option svelte-r6dy5f"><!> Calendar</button>',1),yo=I("<!> <!>",1),Co=I("<!> <!>",1),wo=I("<!> <!>",1),Po=I("<!> <!>",1),xo=I('<div class="tab-bar svelte-r6dy5f"><div class="tabs-scroll svelte-r6dy5f"><button><span class="tab-label svelte-r6dy5f">Home</span></button> <button><span class="tab-label svelte-r6dy5f">Graph</span></button> <!> <!> <!></div> <div class="bar-right svelte-r6dy5f"><!> <!></div></div> <!>',1);function Bo(v,t){_t(t,!0);let e=f(t,"activeView",3,"entity");const s=me("chat");function n(h){oe(h,{noScroll:!0})}const r=T(()=>U.selectedId!==null),d=T(()=>{if(!U.selectedRepo||!U.selectedId)return"";for(const h of He.repos){if(h.name!==U.selectedRepo)continue;const m=h.entities.find(C=>C.id===U.selectedId);if(m)return m.title}return U.selectedId.replace(/-/g," ").replace(/\b\w/g,h=>h.toUpperCase())});function i(){U.deselect(),n("/")}let p=F(!1);async function P(h){c(p,!1);const m=h==="calendar"?"Calendar":"List",C=await $t.create(m,h);oe(`/views/${C.id}`)}let y=F(null),a=F(""),l=F(null),x=F(!1);function H(h){c(x,!1),c(y,h.id,!0),c(a,h.name,!0)}be(()=>{o(y)&&o(l)&&(o(l).focus(),o(l).select(),setTimeout(()=>{c(x,!0)},50))});function ot(){o(x)&&(o(y)&&o(a).trim()&&$t.update(o(y),{name:o(a).trim()}),c(y,null),c(x,!1))}function Ct(){c(y,null),c(x,!1)}function wt(h){h.key==="Enter"&&(h.preventDefault(),c(x,!0),ot()),h.key==="Escape"&&(h.preventDefault(),Ct())}let N=F(null);function q(h,m){h.stopPropagation(),c(N,m,!0)}async function B(){o(N)&&(await $t.remove(o(N).id),c(N,null))}var rt=xo(),O=A(rt),kt=g(O),pt=g(kt);let nt;var ft=z(pt,2);let st;var it=z(ft,2);Ce(it,17,()=>$t.views,h=>h.id,(h,m)=>{var C=j(),Q=A(C);{var R=W=>{var k=po(),b=g(k);ge(b),ye(b,w=>c(l,w),()=>o(l)),_(k),dt(w=>_e(b,"size",w),[()=>Math.max(o(a).length,1)]),L("keydown",b,wt),L("input",b,w=>{c(a,w.currentTarget.value,!0)}),ve("blur",b,ot),we(b,()=>o(a),w=>c(a,w)),u(W,k)},tt=W=>{const k=T(()=>e()==="view"&&U.activeViewId===o(m).id);var b=vo();let w;var lt=g(b),$=g(lt,!0);_(lt);var K=z(lt,2);{var It=Y=>{var G=fo(),zt=g(G);re(zt,{size:12}),_(G),L("click",G,Lt=>q(Lt,o(m))),u(Y,G)};S(K,Y=>{o(k)&&Y(It)})}_(b),dt(()=>{w=Wt(b,1,"tab svelte-r6dy5f",null,w,{"tab-permanent":!o(k),active:o(k)}),Ht($,o(m).name)}),L("click",b,()=>n(`/views/${o(m).id}`)),L("dblclick",b,()=>H(o(m))),u(W,b)};S(Q,W=>{o(y)===o(m).id?W(R):W(tt,!1)})}u(h,C)});var at=z(it,2);{var Tt=h=>{const m=T(()=>e()==="entity"&&o(r));var C=bo();let Q;var R=g(C),tt=g(R,!0);_(R);var W=z(R,2);{var k=b=>{var w=mo(),lt=g(w);re(lt,{size:12}),_(w),L("click",w,$=>{$.stopPropagation(),i()}),u(b,w)};S(W,b=>{o(m)&&b(k)})}_(C),dt(()=>{Q=Wt(C,1,"tab svelte-r6dy5f",null,Q,{"tab-permanent":!o(m),active:o(m)}),Ht(tt,o(d))}),L("click",C,()=>n(U.entityPath??"/")),u(h,C)};S(at,h=>{o(r)&&h(Tt)})}var Dt=z(at,2);X(Dt,()=>ho,(h,m)=>{m(h,{get open(){return o(p)},set open(C){c(p,C,!0)},children:(C,Q)=>{var R=yo(),tt=A(R);X(tt,()=>uo,(k,b)=>{b(k,{class:"new-view-btn",title:"New view",children:(w,lt)=>{var $=go(),K=A($);xe(K,{size:16}),Z(2),u(w,$)},$$slots:{default:!0}})});var W=z(tt,2);X(W,()=>co,(k,b)=>{b(k,{class:"add-view-menu",sideOffset:4,align:"start",children:(w,lt)=>{var $=_o(),K=A($),It=g(K);so(It,{size:14}),Z(),_(K);var Y=z(K,2),G=g(Y);lo(G,{size:14}),Z(),_(Y),L("click",K,()=>P("list")),L("click",Y,()=>P("calendar")),u(w,$)},$$slots:{default:!0}})}),u(C,R)},$$slots:{default:!0}})}),_(kt);var Pt=z(kt,2),V=g(Pt);{var M=h=>{var m=j(),C=A(m);ut(C,()=>t.right),u(h,m)};S(V,h=>{t.right&&h(M)})}var E=z(V,2);{var J=h=>{Pe(h,{variant:"accent",size:"icon",class:"chat-toggle",title:"Open Agent",get onclick(){return s.toggle},children:(m,C)=>{oo(m,{size:14})},$$slots:{default:!0}})};S(E,h=>{s.open||h(J)})}_(Pt),_(O);var pe=z(O,2);{let h=T(()=>!!o(N));X(pe,()=>Xe,(m,C)=>{C(m,{get open(){return o(h)},onOpenChange:Q=>{Q||c(N,null)},children:(Q,R)=>{var tt=j(),W=A(tt);X(W,()=>Ne,(k,b)=>{b(k,{children:(w,lt)=>{var $=Po(),K=A($);X(K,()=>We,(Y,G)=>{G(Y,{children:(zt,Lt)=>{var Ft=Co(),Et=A(Ft);X(Et,()=>$e,(vt,mt)=>{mt(vt,{children:(bt,jt)=>{Z();var ht=Nt("Delete view?");u(bt,ht)},$$slots:{default:!0}})});var Xt=z(Et,2);X(Xt,()=>Be,(vt,mt)=>{mt(vt,{children:(bt,jt)=>{Z();var ht=Nt();dt(()=>Ht(ht,`The view "${o(N)?.name??""}" will be permanently deleted.`)),u(bt,ht)},$$slots:{default:!0}})}),u(zt,Ft)},$$slots:{default:!0}})});var It=z(K,2);X(It,()=>Ke,(Y,G)=>{G(Y,{children:(zt,Lt)=>{var Ft=wo(),Et=A(Ft);X(Et,()=>Ye,(vt,mt)=>{mt(vt,{children:(bt,jt)=>{Z();var ht=Nt("Cancel");u(bt,ht)},$$slots:{default:!0}})});var Xt=z(Et,2);X(Xt,()=>Le,(vt,mt)=>{mt(vt,{onclick:B,children:(bt,jt)=>{Z();var ht=Nt("Delete");u(bt,ht)},$$slots:{default:!0}})}),u(zt,Ft)},$$slots:{default:!0}})}),u(w,$)},$$slots:{default:!0}})}),u(Q,tt)},$$slots:{default:!0}})})}dt(()=>{nt=Wt(pt,1,"tab tab-permanent svelte-r6dy5f",null,nt,{active:e()==="entity"&&!o(r)}),st=Wt(ft,1,"tab tab-permanent svelte-r6dy5f",null,st,{active:e()==="graph"})}),L("click",pt,()=>{U.deselect(),n("/")}),L("click",ft,()=>e()!=="graph"&&n("/graph")),u(v,rt),yt()}fe(["click","keydown","input","dblclick"]);export{co as C,ho as R,uo as T,Bo as V,lo as a};
@@ -1 +1 @@
1
- import{e as r,f as w,g as n,s as e}from"./e913tUZv.js";import{s as f,g as A,b as _,e as v}from"./xwFtwYnE.js";function B(){let a=r(w([])),s=r(null),l=r(!1),o=r(!1),i=r(""),u=r(null),c=r(!1),g=r(null);async function d(){try{const[t,h]=await Promise.all([_(),v()]);e(a,t.insights??[],!0),e(s,t.generatedAt??null,!0),e(i,h.home_brief??"",!0),e(u,h.accent_color??null,!0),e(o,!0),e(c,!0)}catch(t){console.error("Failed to load insights:",t),e(o,!0),e(c,!0)}}async function m(){e(l,!0),e(g,null);try{const t=await A();e(a,t.insights??[],!0),e(s,t.generatedAt??null,!0),e(o,!0)}catch(t){console.error("Failed to generate insights:",t),e(g,t?.message??"Failed to generate insights",!0)}finally{e(l,!1)}}async function y(t){e(i,t,!0),await f({home_brief:t})}async function b(t){e(u,t,!0),await f({accent_color:t})}async function p(){await f({home_brief:""}),e(i,""),e(a,[],!0),e(s,null)}return{get insights(){return n(a)},get generatedAt(){return n(s)},get loading(){return n(l)},get loaded(){return n(o)},get homeBrief(){return n(i)},get accentColor(){return n(u)},get briefLoaded(){return n(c)},get error(){return n(g)},load:d,generate:m,saveBrief:y,saveAccentColor:b,reset:p}}const I=B();export{I as insightsStore};
1
+ import{e as r,f as w,g as n,s as e}from"./sZJoCX5N.js";import{s as f,g as A,b as _,e as v}from"./DvmL5xMZ.js";function B(){let a=r(w([])),s=r(null),l=r(!1),o=r(!1),i=r(""),u=r(null),c=r(!1),g=r(null);async function d(){try{const[t,h]=await Promise.all([_(),v()]);e(a,t.insights??[],!0),e(s,t.generatedAt??null,!0),e(i,h.home_brief??"",!0),e(u,h.accent_color??null,!0),e(o,!0),e(c,!0)}catch(t){console.error("Failed to load insights:",t),e(o,!0),e(c,!0)}}async function m(){e(l,!0),e(g,null);try{const t=await A();e(a,t.insights??[],!0),e(s,t.generatedAt??null,!0),e(o,!0)}catch(t){console.error("Failed to generate insights:",t),e(g,t?.message??"Failed to generate insights",!0)}finally{e(l,!1)}}async function y(t){e(i,t,!0),await f({home_brief:t})}async function b(t){e(u,t,!0),await f({accent_color:t})}async function p(){await f({home_brief:""}),e(i,""),e(a,[],!0),e(s,null)}return{get insights(){return n(a)},get generatedAt(){return n(s)},get loading(){return n(l)},get loaded(){return n(o)},get homeBrief(){return n(i)},get accentColor(){return n(u)},get briefLoaded(){return n(c)},get error(){return n(g)},load:d,generate:m,saveBrief:y,saveAccentColor:b,reset:p}}const I=B();export{I as insightsStore};
@@ -0,0 +1 @@
1
+ import{bB as Le,aD as Ge,e as A,g as U,s as P,aE as ne,bC as vt}from"./sZJoCX5N.js";class Ae{constructor(t,n){this.status=t,typeof n=="string"?this.body={message:n}:n?this.body=n:this.body={message:`Error: ${t}`}}toString(){return JSON.stringify(this.body)}}class Ue{constructor(t,n){this.status=t,this.location=n}}class Pe extends Error{constructor(t,n,r){super(r),this.status=t,this.text=n}}new URL("sveltekit-internal://");function wt(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function yt(e){return e.split("%25").map(decodeURI).join("%25")}function bt(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function me({href:e}){return e.split("#")[0]}function kt(e,t,n,r=!1){const a=new URL(e);Object.defineProperty(a,"searchParams",{value:new Proxy(a.searchParams,{get(s,o){if(o==="get"||o==="getAll"||o==="has")return(c,...d)=>(n(c),s[o](c,...d));t();const l=Reflect.get(s,o);return typeof l=="function"?l.bind(s):l}}),enumerable:!0,configurable:!0});const i=["href","pathname","search","toString","toJSON"];r&&i.push("hash");for(const s of i)Object.defineProperty(a,s,{get(){return t(),e[s]},enumerable:!0,configurable:!0});return a}function Et(...e){let t=5381;for(const n of e)if(typeof n=="string"){let r=n.length;for(;r;)t=t*33^n.charCodeAt(--r)}else if(ArrayBuffer.isView(n)){const r=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let a=r.length;for(;a;)t=t*33^r[--a]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}new TextEncoder;new TextDecoder;function St(e){const t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n}const Rt=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&G.delete(Te(e)),Rt(e,t));const G=new Map;function xt(e,t){const n=Te(e,t),r=document.querySelector(n);if(r?.textContent){r.remove();let{body:a,...i}=JSON.parse(r.textContent);const s=r.getAttribute("data-ttl");return s&&G.set(n,{body:a,init:i,ttl:1e3*Number(s)}),r.getAttribute("data-b64")!==null&&(a=St(a)),Promise.resolve(new Response(a,i))}return window.fetch(e,t)}function Lt(e,t,n){if(G.size>0){const r=Te(e,n),a=G.get(r);if(a){if(performance.now()<a.ttl&&["default","force-cache","only-if-cached",void 0].includes(n?.cache))return new Response(a.body,a.init);G.delete(r)}}return window.fetch(t,n)}function Te(e,t){let r=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){const a=[];t.headers&&a.push([...new Headers(t.headers)].join(",")),t.body&&(typeof t.body=="string"||ArrayBuffer.isView(t.body))&&a.push(t.body),r+=`[data-hash="${Et(...a)}"]`}return r}const At=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function Ut(e){const t=[];return{pattern:e==="/"?/^\/$/:new RegExp(`^${Tt(e).map(r=>{const a=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(r);if(a)return t.push({name:a[1],matcher:a[2],optional:!1,rest:!0,chained:!0}),"(?:/([^]*))?";const i=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(r);if(i)return t.push({name:i[1],matcher:i[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!r)return;const s=r.split(/\[(.+?)\](?!\])/);return"/"+s.map((l,c)=>{if(c%2){if(l.startsWith("x+"))return _e(String.fromCharCode(parseInt(l.slice(2),16)));if(l.startsWith("u+"))return _e(String.fromCharCode(...l.slice(2).split("-").map(v=>parseInt(v,16))));const d=At.exec(l),[,p,f,u,h]=d;return t.push({name:u,matcher:h,optional:!!p,rest:!!f,chained:f?c===1&&s[0]==="":!1}),f?"([^]*?)":p?"([^/]*)?":"([^/]+?)"}return _e(l)}).join("")}).join("")}/?$`),params:t}}function Pt(e){return e!==""&&!/^\([^)]+\)$/.test(e)}function Tt(e){return e.slice(1).split("/").filter(Pt)}function It(e,t,n){const r={},a=e.slice(1),i=a.filter(o=>o!==void 0);let s=0;for(let o=0;o<t.length;o+=1){const l=t[o];let c=a[o-s];if(l.chained&&l.rest&&s&&(c=a.slice(o-s,o+1).filter(d=>d).join("/"),s=0),c===void 0)if(l.rest)c="";else continue;if(!l.matcher||n[l.matcher](c)){r[l.name]=c;const d=t[o+1],p=a[o+1];d&&!d.rest&&d.optional&&p&&l.chained&&(s=0),!d&&!p&&Object.keys(r).length===i.length&&(s=0);continue}if(l.optional&&l.chained){s++;continue}return}if(!s)return r}function _e(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Ot({nodes:e,server_loads:t,dictionary:n,matchers:r}){const a=new Set(t);return Object.entries(n).map(([o,[l,c,d]])=>{const{pattern:p,params:f}=Ut(o),u={id:o,exec:h=>{const v=p.exec(h);if(v)return It(v,f,r)},errors:[1,...d||[]].map(h=>e[h]),layouts:[0,...c||[]].map(s),leaf:i(l)};return u.errors.length=u.layouts.length=Math.max(u.errors.length,u.layouts.length),u});function i(o){const l=o<0;return l&&(o=~o),[l,e[o]]}function s(o){return o===void 0?o:[a.has(o),e[o]]}}function Xe(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function Me(e,t,n=JSON.stringify){const r=n(t);try{sessionStorage[e]=r}catch{}}const x=globalThis.__sveltekit_fdmr6g?.base??"",Ct=globalThis.__sveltekit_fdmr6g?.assets??x??"",$t="1774885831645",Qe="sveltekit:snapshot",Ze="sveltekit:scroll",et="sveltekit:states",jt="sveltekit:pageurl",B="sveltekit:history",H="sveltekit:navigation",N={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},he=location.origin;function Ie(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){const n=document.getElementsByTagName("base");t=n.length?n[0].href:document.URL}return new URL(e,t)}function D(){return{x:pageXOffset,y:pageYOffset}}function V(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const He={...N,"":N.hover};function tt(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function nt(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=tt(e)}}function be(e,t,n){let r;try{if(r=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){const o=location.hash.split("#")[1]||"/";r.hash=`#${o}${r.hash}`}}catch{}const a=e instanceof SVGAElement?e.target.baseVal:e.target,i=!r||!!a||pe(r,t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),s=r?.origin===he&&e.hasAttribute("download");return{url:r,external:i,target:a,download:s}}function re(e){let t=null,n=null,r=null,a=null,i=null,s=null,o=e;for(;o&&o!==document.documentElement;)r===null&&(r=V(o,"preload-code")),a===null&&(a=V(o,"preload-data")),t===null&&(t=V(o,"keepfocus")),n===null&&(n=V(o,"noscroll")),i===null&&(i=V(o,"reload")),s===null&&(s=V(o,"replacestate")),o=tt(o);function l(c){switch(c){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:He[r??"off"],preload_data:He[a??"off"],keepfocus:l(t),noscroll:l(n),reload:l(i),replace_state:l(s)}}function We(e){const t=Le(e);let n=!0;function r(){n=!0,t.update(s=>s)}function a(s){n=!1,t.set(s)}function i(s){let o;return t.subscribe(l=>{(o===void 0||n&&l!==o)&&s(o=l)})}return{notify:r,set:a,subscribe:i}}const rt={v:()=>{}};function Nt(){const{set:e,subscribe:t}=Le(!1);let n;async function r(){clearTimeout(n);try{const a=await fetch(`${Ct}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const s=(await a.json()).version!==$t;return s&&(e(!0),rt.v(),clearTimeout(n)),s}catch{return!1}}return{subscribe:t,check:r}}function pe(e,t,n){return e.origin!==he||!e.pathname.startsWith(t)?!0:n?e.pathname!==location.pathname:!1}function cn(e){}const at=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...at];const Dt=new Set([...at]);[...Dt];function qt(e){return e.filter(t=>t!=null)}function Oe(e){return e instanceof Ae||e instanceof Pe?e.status:500}function Vt(e){return e instanceof Pe?e.text:"Internal Error"}let b,W,ve;const Bt=Ge.toString().includes("$$")||/function \w+\(\) \{\}/.test(Ge.toString());Bt?(b={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL("https://example.com")},W={current:null},ve={current:!1}):(b=new class{#e=A({});get data(){return U(this.#e)}set data(t){P(this.#e,t)}#t=A(null);get form(){return U(this.#t)}set form(t){P(this.#t,t)}#n=A(null);get error(){return U(this.#n)}set error(t){P(this.#n,t)}#r=A({});get params(){return U(this.#r)}set params(t){P(this.#r,t)}#a=A({id:null});get route(){return U(this.#a)}set route(t){P(this.#a,t)}#o=A({});get state(){return U(this.#o)}set state(t){P(this.#o,t)}#s=A(-1);get status(){return U(this.#s)}set status(t){P(this.#s,t)}#i=A(new URL("https://example.com"));get url(){return U(this.#i)}set url(t){P(this.#i,t)}},W=new class{#e=A(null);get current(){return U(this.#e)}set current(t){P(this.#e,t)}},ve=new class{#e=A(!1);get current(){return U(this.#e)}set current(t){P(this.#e,t)}},rt.v=()=>ve.current=!0);function ot(e){Object.assign(b,e)}const Je={spanContext(){return Kt},setAttribute(){return this},setAttributes(){return this},addEvent(){return this},setStatus(){return this},updateName(){return this},end(){return this},isRecording(){return!1},recordException(){return this},addLink(){return this},addLinks(){return this}},Kt={traceId:"",spanId:"",traceFlags:0},Ft=new Set(["icon","shortcut icon","apple-touch-icon"]),j=Xe(Ze)??{},J=Xe(Qe)??{},$={url:We({}),page:We({}),navigating:Le(null),updated:Nt()};function Ce(e){j[e]=D()}function Gt(e,t){let n=e+1;for(;j[n];)delete j[n],n+=1;for(n=t+1;J[n];)delete J[n],n+=1}function Y(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(()=>{})}async function st(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(x||"/");e&&await e.update()}}function ke(){}let $e,Ee,ae,T,Se,w;const oe=[],se=[];let L=null;function ie(){L?.fork?.then(e=>e?.discard()),L=null}const te=new Map,it=new Set,Mt=new Set,M=new Set;let _={branch:[],error:null,url:null},lt=!1,le=!1,Ye=!0,z=!1,F=!1,ct=!1,Q=!1,je,y,R,I;const ce=new Set;let we;const ue=new Map;async function hn(e,t,n){globalThis.__sveltekit_fdmr6g?.data&&globalThis.__sveltekit_fdmr6g.data,document.URL!==location.href&&(location.href=location.href),w=e,await e.hooks.init?.(),$e=Ot(e),T=document.documentElement,Se=t,Ee=e.nodes[0],ae=e.nodes[1],Ee(),ae(),y=history.state?.[B],R=history.state?.[H],y||(y=R=Date.now(),history.replaceState({...history.state,[B]:y,[H]:R},""));const r=j[y];function a(){r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y))}n?(a(),await rn(Se,n)):(await K({type:"enter",url:Ie(w.hash?sn(new URL(location.href)):location.href),replace_state:!0}),a()),nn()}async function Ht(e=!0,t=!0){if(await(we||=Promise.resolve()),!we)return;we=null;const n=I={},r=await Z(_.url,!0);if(ie(),Q&&ue.forEach(({resource:a})=>{a.refresh?.()}),e){const a=b.state,i=r&&await Ve(r);if(!i||n!==I)return;if(i.type==="redirect")return Ne(new URL(i.location,_.url).href,{replaceState:!0},1,n);t||(i.props.page.state=a),ot(i.props.page),_=i.state,Re(),je.$set(i.props)}else Re();await Promise.all([...ue.values()].map(({resource:a})=>a)).catch(ke)}function Re(){oe.length=0,Q=!1}function ut(e){se.some(t=>t?.snapshot)&&(J[e]=se.map(t=>t?.snapshot?.capture()))}function ft(e){J[e]?.forEach((t,n)=>{se[n]?.snapshot?.restore(t)})}function ze(){Ce(y),Me(Ze,j),ut(R),Me(Qe,J)}async function Ne(e,t,n,r){let a;t.invalidateAll&&ie(),await K({type:"goto",url:Ie(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:r,accept:()=>{t.invalidateAll&&(Q=!0,a=[...ue.keys()]),t.invalidate&&t.invalidate.forEach(tn)}}),t.invalidateAll&&ne().then(ne).then(()=>{ue.forEach(({resource:i},s)=>{a?.includes(s)&&i.refresh?.()})})}async function Wt(e){if(e.id!==L?.id){ie();const t={};ce.add(t),L={id:e.id,token:t,promise:Ve({...e,preload:t}).then(n=>(ce.delete(t),n.type==="loaded"&&n.state.error&&ie(),n)),fork:null}}return L.promise}async function ye(e){const t=(await Z(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].filter(Boolean).map(n=>n[1]()))}async function dt(e,t,n){_=e.state;const r=document.querySelector("style[data-sveltekit]");if(r&&r.remove(),Object.assign(b,e.props.page),je=new w.root({target:t,props:{...e.props,stores:$,components:se},hydrate:n,sync:!1}),await Promise.resolve(),ft(R),n){const a={from:null,to:{params:_.params,route:{id:_.route?.id??null},url:new URL(location.href),scroll:j[y]??D()},willUnload:!1,type:"enter",complete:Promise.resolve()};M.forEach(i=>i(a))}le=!0}function fe({url:e,params:t,branch:n,status:r,error:a,route:i,form:s}){let o="never";if(x&&(e.pathname===x||e.pathname===x+"/"))o="always";else for(const u of n)u?.slash!==void 0&&(o=u.slash);e.pathname=wt(e.pathname,o),e.search=e.search;const l={type:"loaded",state:{url:e,params:t,branch:n,error:a,route:i},props:{constructors:qt(n).map(u=>u.node.component),page:Fe(b)}};s!==void 0&&(l.props.form=s);let c={},d=!b,p=0;for(let u=0;u<Math.max(n.length,_.branch.length);u+=1){const h=n[u],v=_.branch[u];h?.data!==v?.data&&(d=!0),h&&(c={...c,...h.data},d&&(l.props[`data_${p}`]=c),p+=1)}return(!_.url||e.href!==_.url.href||_.error!==a||s!==void 0&&s!==b.form||d)&&(l.props.page={error:a,params:t,route:{id:i?.id??null},state:{},status:r,url:new URL(e),form:s??null,data:d?c:b.data}),l}async function De({loader:e,parent:t,url:n,params:r,route:a,server_data_node:i}){let s=null,o=!0;const l={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},c=await e();if(c.universal?.load){let d=function(...f){for(const u of f){const{href:h}=new URL(u,n);l.dependencies.add(h)}};const p={tracing:{enabled:!1,root:Je,current:Je},route:new Proxy(a,{get:(f,u)=>(o&&(l.route=!0),f[u])}),params:new Proxy(r,{get:(f,u)=>(o&&l.params.add(u),f[u])}),data:i?.data??null,url:kt(n,()=>{o&&(l.url=!0)},f=>{o&&l.search_params.add(f)},w.hash),async fetch(f,u){f instanceof Request&&(u={body:f.method==="GET"||f.method==="HEAD"?void 0:await f.blob(),cache:f.cache,credentials:f.credentials,headers:[...f.headers].length>0?f?.headers:void 0,integrity:f.integrity,keepalive:f.keepalive,method:f.method,mode:f.mode,redirect:f.redirect,referrer:f.referrer,referrerPolicy:f.referrerPolicy,signal:f.signal,...u});const{resolved:h,promise:v}=ht(f,u,n);return o&&d(h.href),v},setHeaders:()=>{},depends:d,parent(){return o&&(l.parent=!0),t()},untrack(f){o=!1;try{return f()}finally{o=!0}}};s=await c.universal.load.call(null,p)??null}return{node:c,loader:e,server:i,universal:c.universal?.load?{type:"data",data:s,uses:l}:null,data:s??i?.data??null,slash:c.universal?.trailingSlash??i?.slash}}function ht(e,t,n){let r=e instanceof Request?e.url:e;const a=new URL(r,n);a.origin===n.origin&&(r=a.href.slice(n.origin.length));const i=le?Lt(r,a.href,t):xt(r,t);return{resolved:a,promise:i}}function Jt(e,t,n,r,a,i){if(Q)return!0;if(!a)return!1;if(a.parent&&e||a.route&&t||a.url&&n)return!0;for(const s of a.search_params)if(r.has(s))return!0;for(const s of a.params)if(i[s]!==_.params[s])return!0;for(const s of a.dependencies)if(oe.some(o=>o(new URL(s))))return!0;return!1}function qe(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function Yt(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const r of n){const a=e.searchParams.getAll(r),i=t.searchParams.getAll(r);a.every(s=>i.includes(s))&&i.every(s=>a.includes(s))&&n.delete(r)}return n}function zt({error:e,url:t,route:n,params:r}){return{type:"loaded",state:{error:e,url:t,route:n,params:r,branch:[]},props:{page:Fe(b),constructors:[]}}}async function Ve({id:e,invalidating:t,url:n,params:r,route:a,preload:i}){if(L?.id===e)return ce.delete(L.token),L.promise;const{errors:s,layouts:o,leaf:l}=a,c=[...o,l];s.forEach(m=>m?.().catch(()=>{})),c.forEach(m=>m?.[1]().catch(()=>{}));const d=_.url?e!==de(_.url):!1,p=_.route?a.id!==_.route.id:!1,f=Yt(_.url,n);let u=!1;const h=c.map(async(m,g)=>{if(!m)return;const E=_.branch[g];return m[1]===E?.loader&&!Jt(u,p,d,f,E.universal?.uses,r)?E:(u=!0,De({loader:m[1],url:n,params:r,route:a,parent:async()=>{const O={};for(let C=0;C<g;C+=1)Object.assign(O,(await h[C])?.data);return O},server_data_node:qe(m[0]?{type:"skip"}:null,m[0]?E?.server:void 0)}))});for(const m of h)m.catch(()=>{});const v=[];for(let m=0;m<c.length;m+=1)if(c[m])try{v.push(await h[m])}catch(g){if(g instanceof Ue)return{type:"redirect",location:g.location};if(ce.has(i))return zt({error:await X(g,{params:r,url:n,route:{id:a.id}}),url:n,params:r,route:a});let E=Oe(g),S;if(g instanceof Ae)S=g.body;else{if(await $.updated.check())return await st(),await Y(n);S=await X(g,{params:r,url:n,route:{id:a.id}})}const O=await Xt(m,v,s);return O?fe({url:n,params:r,branch:v.slice(0,O.idx).concat(O.node),status:E,error:S,route:a}):await gt(n,{id:a.id},S,E)}else v.push(void 0);return fe({url:n,params:r,branch:v,status:200,error:null,route:a,form:t?void 0:null})}async function Xt(e,t,n){for(;e--;)if(n[e]){let r=e;for(;!t[r];)r-=1;try{return{idx:r+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function Be({status:e,error:t,url:n,route:r}){const a={};let i=null;try{const s=await De({loader:Ee,url:n,params:a,route:r,parent:()=>Promise.resolve({}),server_data_node:qe(i)}),o={node:await ae(),loader:ae,universal:null,server:null,data:null};return fe({url:n,params:a,branch:[s,o],status:e,error:t,route:null})}catch(s){if(s instanceof Ue)return Ne(new URL(s.location,location.href),{},0);throw s}}async function Qt(e){const t=e.href;if(te.has(t))return te.get(t);let n;try{const r=(async()=>{let a=await w.hooks.reroute({url:new URL(e),fetch:async(i,s)=>ht(i,s,e).promise})??e;if(typeof a=="string"){const i=new URL(e);w.hash?i.hash=a:i.pathname=a,a=i}return a})();te.set(t,r),n=await r}catch{te.delete(t);return}return n}async function Z(e,t){if(e&&!pe(e,x,w.hash)){const n=await Qt(e);if(!n)return;const r=Zt(n);for(const a of $e){const i=a.exec(r);if(i)return{id:de(e),invalidating:t,route:a,params:bt(i),url:e}}}}function Zt(e){return yt(w.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(x.length))||"/"}function de(e){return(w.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function pt({url:e,type:t,intent:n,delta:r,event:a,scroll:i}){let s=!1;const o=Ke(_,n,e,t,i??null);r!==void 0&&(o.navigation.delta=r),a!==void 0&&(o.navigation.event=a);const l={...o.navigation,cancel:()=>{s=!0,o.reject(new Error("navigation cancelled"))}};return z||it.forEach(c=>c(l)),s?null:o}async function K({type:e,url:t,popped:n,keepfocus:r,noscroll:a,replace_state:i,state:s={},redirect_count:o=0,nav_token:l={},accept:c=ke,block:d=ke,event:p}){const f=I;I=l;const u=await Z(t,!1),h=e==="enter"?Ke(_,u,t,e):pt({url:t,type:e,delta:n?.delta,intent:u,scroll:n?.scroll,event:p});if(!h){d(),I===l&&(I=f);return}const v=y,m=R;c(),z=!0,le&&h.navigation.type!=="enter"&&$.navigating.set(W.current=h.navigation);let g=u&&await Ve(u);if(!g){if(pe(t,x,w.hash))return await Y(t,i);g=await gt(t,{id:null},await X(new Pe(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,i)}if(t=u?.url||t,I!==l)return h.reject(new Error("navigation aborted")),!1;if(g.type==="redirect"){if(o<20){await K({type:e,url:new URL(g.location,t),popped:n,keepfocus:r,noscroll:a,replace_state:i,state:s,redirect_count:o+1,nav_token:l}),h.fulfil(void 0);return}g=await Be({status:500,error:await X(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}})}else g.props.page.status>=400&&await $.updated.check()&&(await st(),await Y(t,i));if(Re(),Ce(v),ut(m),g.props.page.url.pathname!==t.pathname&&(t.pathname=g.props.page.url.pathname),s=n?n.state:s,!n){const k=i?0:1,ee={[B]:y+=k,[H]:R+=k,[et]:s};(i?history.replaceState:history.pushState).call(history,ee,"",t),i||Gt(y,R)}const E=u&&L?.id===u.id?L.fork:null;L=null,g.props.page.state=s;let S;if(le){const k=(await Promise.all(Array.from(Mt,q=>q(h.navigation)))).filter(q=>typeof q=="function");if(k.length>0){let q=function(){k.forEach(ge=>{M.delete(ge)})};k.push(q),k.forEach(ge=>{M.add(ge)})}_=g.state,g.props.page&&(g.props.page.url=t);const ee=E&&await E;ee?S=ee.commit():(je.$set(g.props),ot(g.props.page),S=vt?.()),ct=!0}else await dt(g,Se,!1);const{activeElement:O}=document;await S,await ne(),await ne();let C=null;if(Ye){const k=n?n.scroll:a?D():null;k?scrollTo(k.x,k.y):(C=t.hash&&document.getElementById(mt(t)))?C.scrollIntoView():scrollTo(0,0)}const _t=document.activeElement!==O&&document.activeElement!==document.body;!r&&!_t&&on(t,!C),Ye=!0,g.props.page&&Object.assign(b,g.props.page),z=!1,e==="popstate"&&ft(R),h.fulfil(void 0),h.navigation.to&&(h.navigation.to.scroll=D()),M.forEach(k=>k(h.navigation)),$.navigating.set(W.current=null)}async function gt(e,t,n,r,a){return e.origin===he&&e.pathname===location.pathname&&!lt?await Be({status:r,error:n,url:e,route:t}):await Y(e,a)}function en(){let e,t={element:void 0,href:void 0},n;T.addEventListener("mousemove",o=>{const l=o.target;clearTimeout(e),e=setTimeout(()=>{i(l,N.hover)},20)});function r(o){o.defaultPrevented||i(o.composedPath()[0],N.tap)}T.addEventListener("mousedown",r),T.addEventListener("touchstart",r,{passive:!0});const a=new IntersectionObserver(o=>{for(const l of o)l.isIntersecting&&(ye(new URL(l.target.href)),a.unobserve(l.target))},{threshold:0});async function i(o,l){const c=nt(o,T),d=c===t.element&&c?.href===t.href&&l>=n;if(!c||d)return;const{url:p,external:f,download:u}=be(c,x,w.hash);if(f||u)return;const h=re(c),v=p&&de(_.url)===de(p);if(!(h.reload||v))if(l<=h.preload_data){t={element:c,href:c.href},n=N.tap;const m=await Z(p,!1);if(!m)return;Wt(m)}else l<=h.preload_code&&(t={element:c,href:c.href},n=l,ye(p))}function s(){a.disconnect();for(const o of T.querySelectorAll("a")){const{url:l,external:c,download:d}=be(o,x,w.hash);if(c||d)continue;const p=re(o);p.reload||(p.preload_code===N.viewport&&a.observe(o),p.preload_code===N.eager&&ye(l))}}M.add(s),s()}function X(e,t){if(e instanceof Ae)return e.body;const n=Oe(e),r=Vt(e);return w.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function pn(e,t={}){return e=new URL(Ie(e)),e.origin!==he?Promise.reject(new Error("goto: invalid URL")):Ne(e,t,0)}function tn(e){if(typeof e=="function")oe.push(e);else{const{href:t}=new URL(e,location.href);oe.push(n=>n.href===t)}}function gn(){return Q=!0,Ht()}function nn(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let n=!1;if(ze(),!z){const r=Ke(_,void 0,null,"leave"),a={...r.navigation,cancel:()=>{n=!0,r.reject(new Error("navigation cancelled"))}};it.forEach(i=>i(a))}n?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&ze()}),navigator.connection?.saveData||en(),T.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const n=nt(t.composedPath()[0],T);if(!n)return;const{url:r,external:a,target:i,download:s}=be(n,x,w.hash);if(!r)return;if(i==="_parent"||i==="_top"){if(window.parent!==window)return}else if(i&&i!=="_self")return;const o=re(n);if(!(n instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol==="https:"||r.protocol==="http:")||s)return;const[c,d]=(w.hash?r.hash.replace(/^#/,""):r.href).split("#"),p=c===me(location);if(a||o.reload&&(!p||!d)){pt({url:r,type:"link",event:t})?z=!0:t.preventDefault();return}if(d!==void 0&&p){const[,f]=_.url.href.split("#");if(f===d){if(t.preventDefault(),d===""||d==="top"&&n.ownerDocument.getElementById("top")===null)scrollTo({top:0});else{const u=n.ownerDocument.getElementById(decodeURIComponent(d));u&&(u.scrollIntoView(),u.focus())}return}if(F=!0,Ce(y),e(r),!o.replace_state)return;F=!1}t.preventDefault(),await new Promise(f=>{requestAnimationFrame(()=>{setTimeout(f,0)}),setTimeout(f,100)}),await K({type:"link",url:r,keepfocus:o.keepfocus,noscroll:o.noscroll,replace_state:o.replace_state??r.href===location.href,event:t})}),T.addEventListener("submit",t=>{if(t.defaultPrevented)return;const n=HTMLFormElement.prototype.cloneNode.call(t.target),r=t.submitter;if((r?.formTarget||n.target)==="_blank"||(r?.formMethod||n.method)!=="get")return;const s=new URL(r?.hasAttribute("formaction")&&r?.formAction||n.action);if(pe(s,x,!1))return;const o=t.target,l=re(o);if(l.reload)return;t.preventDefault(),t.stopPropagation();const c=new FormData(o,r);s.search=new URLSearchParams(c).toString(),K({type:"form",url:s,keepfocus:l.keepfocus,noscroll:l.noscroll,replace_state:l.replace_state??s.href===location.href,event:t})}),addEventListener("popstate",async t=>{if(!xe){if(t.state?.[B]){const n=t.state[B];if(I={},n===y)return;const r=j[n],a=t.state[et]??{},i=new URL(t.state[jt]??location.href),s=t.state[H],o=_.url?me(location)===me(_.url):!1;if(s===R&&(ct||o)){a!==b.state&&(b.state=a),e(i),j[y]=D(),r&&scrollTo(r.x,r.y),y=n;return}const c=n-y;await K({type:"popstate",url:i,popped:{state:a,scroll:r,delta:c},accept:()=>{y=n,R=s},block:()=>{history.go(-c)},nav_token:I,event:t})}else if(!F){const n=new URL(location.href);e(n),w.hash&&location.reload()}}}),addEventListener("hashchange",()=>{F&&(F=!1,history.replaceState({...history.state,[B]:++y,[H]:R},"",location.href))});for(const t of document.querySelectorAll("link"))Ft.has(t.rel)&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&$.navigating.set(W.current=null)});function e(t){_.url=b.url=t,$.page.set(Fe(b)),$.page.notify()}}async function rn(e,{status:t=200,error:n,node_ids:r,params:a,route:i,server_route:s,data:o,form:l}){lt=!0;const c=new URL(location.href);let d;({params:a={},route:i={id:null}}=await Z(c,!1)||{}),d=$e.find(({id:u})=>u===i.id);let p,f=!0;try{const u=r.map(async(v,m)=>{const g=o[m];return g?.uses&&(g.uses=an(g.uses)),De({loader:w.nodes[v],url:c,params:a,route:i,parent:async()=>{const E={};for(let S=0;S<m;S+=1)Object.assign(E,(await u[S]).data);return E},server_data_node:qe(g)})}),h=await Promise.all(u);if(d){const v=d.layouts;for(let m=0;m<v.length;m++)v[m]||h.splice(m,0,void 0)}p=fe({url:c,params:a,branch:h,status:t,error:n,form:l,route:d??null})}catch(u){if(u instanceof Ue){await Y(new URL(u.location,location.href));return}p=await Be({status:Oe(u),error:await X(u,{url:c,params:a,route:i}),url:c,route:i}),e.textContent="",f=!1}p.props.page&&(p.props.page.state={}),await dt(p,e,f)}function an(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}let xe=!1;function on(e,t=!0){const n=document.querySelector("[autofocus]");if(n)n.focus();else{const r=mt(e);if(r&&document.getElementById(r)){const{x:i,y:s}=D();setTimeout(()=>{const o=history.state;xe=!0,location.replace(new URL(`#${r}`,location.href)),history.replaceState(o,"",e),t&&scrollTo(i,s),xe=!1})}else{const i=document.body,s=i.getAttribute("tabindex");i.tabIndex=-1,i.focus({preventScroll:!0,focusVisible:!1}),s!==null?i.setAttribute("tabindex",s):i.removeAttribute("tabindex")}const a=getSelection();if(a&&a.type!=="None"){const i=[];for(let s=0;s<a.rangeCount;s+=1)i.push(a.getRangeAt(s));setTimeout(()=>{if(a.rangeCount===i.length){for(let s=0;s<a.rangeCount;s+=1){const o=i[s],l=a.getRangeAt(s);if(o.commonAncestorContainer!==l.commonAncestorContainer||o.startContainer!==l.startContainer||o.endContainer!==l.endContainer||o.startOffset!==l.startOffset||o.endOffset!==l.endOffset)return}a.removeAllRanges()}})}}}function Ke(e,t,n,r,a=null){let i,s;const o=new Promise((c,d)=>{i=c,s=d});return o.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url,scroll:D()},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n,scroll:a},willUnload:!t,type:r,complete:o},fulfil:i,reject:s}}function Fe(e){return{data:e.data,error:e.error,form:e.form,params:e.params,route:e.route,state:e.state,status:e.status,url:e.url}}function sn(e){const t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function mt(e){let t;if(w.hash){const[,,n]=e.hash.split("#",3);t=n??""}else t=e.hash.slice(1);return decodeURIComponent(t)}export{hn as a,pn as g,gn as i,cn as l,b as p,$ as s};
@@ -1 +1 @@
1
- import{a as l,s as ie,f as q,c as C,p as be,b as A}from"./BJBX4SKZ.js";import{i as de}from"./CrUJgkXY.js";import{p as m,l as W,s as j,d as M,g as u,a as ce,c as D,n as ue,r as O,b,m as Q,t as Y,a0 as _,ae as fe,a3 as $,a4 as U}from"./e913tUZv.js";import{i as I}from"./D6Lva3KM.js";import{a as ee,s as P}from"./Zhai-RNf.js";import{l as X,p as s,s as R,r as te}from"./iZnTs-Zk.js";import{c as K}from"./D3QkosGt.js";import{n as F,Q as ye,f as L,j as Ce,R as Pe,T as De,U as Oe,V as Se,W as we,X as le,m as J,O as xe,Y as ze,Z as Fe}from"./DxfAvVJc.js";import{c as Z}from"./DYvpKXdA.js";import{c as re,s as oe}from"./C8Y6xIC4.js";var Me=q("<title> </title>"),Ae=q('<svg><!><path d="M2 26H30V28H2z"></path><path d="M25.4,9c0.8-0.8,0.8-2,0-2.8c0,0,0,0,0,0l-3.6-3.6c-0.8-0.8-2-0.8-2.8,0c0,0,0,0,0,0l-15,15V24h6.4L25.4,9z M20.4,4L24,7.6 l-3,3L17.4,7L20.4,4z M6,22v-3.6l10-10l3.6,3.6l-10,10H6z"></path></svg>');function rt(a,e){const t=X(e,["children","$$slots","$$events","$$legacy"]),n=X(t,["size","title"]);m(e,!1);const r=Q(),c=Q();let f=s(e,"size",8,16),o=s(e,"title",8,void 0);W(()=>(M(t),M(o())),()=>{j(r,t["aria-label"]||t["aria-labelledby"]||o())}),W(()=>(u(r),M(t)),()=>{j(c,{"aria-hidden":u(r)?void 0:!0,role:u(r)?"img":void 0,focusable:Number(t.tabindex)===0?!0:void 0})}),ce(),de();var i=Ae();ee(i,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:f(),height:f(),...u(c),...n}));var p=D(i);{var g=v=>{var h=Me(),y=D(h,!0);O(h),Y(()=>ie(y,o())),l(v,h)};I(p,v=>{o()&&v(g)})}ue(2),O(i),l(a,i),b()}function He(a,e){m(e,!0);let t=s(e,"open",15,!1),n=s(e,"onOpenChange",3,F),r=s(e,"onOpenChangeComplete",3,F);ye.create({variant:L(()=>"dialog"),open:L(()=>t(),o=>{t(o),n()(o)}),onOpenChangeComplete:L(()=>r())});var c=C(),f=_(c);P(f,()=>e.children??fe),l(a,c),b()}var Ve=A("<!> <!>",1),Ee=A("<!> <div><!></div>",1);function Ie(a,e){const t=be();m(e,!0);let n=s(e,"id",19,()=>Ce(t)),r=s(e,"ref",15,null),c=s(e,"forceMount",3,!1),f=s(e,"onCloseAutoFocus",3,F),o=s(e,"onOpenAutoFocus",3,F),i=s(e,"onEscapeKeydown",3,F),p=s(e,"onInteractOutside",3,F),g=s(e,"trapFocus",3,!0),v=s(e,"preventScroll",3,!0),h=s(e,"restoreScrollDelay",3,null),y=te(e,["$$slots","$$events","$$legacy","id","children","child","ref","forceMount","onCloseAutoFocus","onOpenAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","restoreScrollDelay"]);const d=Pe.create({id:L(()=>n()),ref:L(()=>r(),w=>r(w))}),S=U(()=>J(y,d.props));var k=C(),ae=_(k);{var B=w=>{De(w,{get ref(){return d.opts.ref},loop:!0,get trapFocus(){return g()},get enabled(){return d.root.opts.open.current},get onOpenAutoFocus(){return o()},get onCloseAutoFocus(){return f()},focusScope:(ve,ge)=>{let ne=()=>ge?.().props;Oe(ve,R(()=>u(S),{get enabled(){return d.root.opts.open.current},get ref(){return d.opts.ref},onEscapeKeydown:N=>{i()(N),!N.defaultPrevented&&d.root.handleClose()},children:(N,Ne)=>{Se(N,R(()=>u(S),{get ref(){return d.opts.ref},get enabled(){return d.root.opts.open.current},onInteractOutside:T=>{p()(T),!T.defaultPrevented&&d.root.handleClose()},children:(T,Te)=>{we(T,R(()=>u(S),{get ref(){return d.opts.ref},get enabled(){return d.root.opts.open.current},children:(_e,We)=>{var se=C(),he=_(se);{var pe=z=>{var H=Ve(),V=_(H);{var E=x=>{le(x,{get preventScroll(){return v()},get restoreScrollDelay(){return h()}})};I(V,x=>{d.root.opts.open.current&&x(E)})}var G=$(V,2);{let x=U(()=>({props:J(u(S),ne()),...d.snippetProps}));P(G,()=>e.child,()=>u(x))}l(z,H)},me=z=>{var H=Ee(),V=_(H);le(V,{get preventScroll(){return v()}});var E=$(V,2);ee(E,x=>({...x}),[()=>J(u(S),ne())]);var G=D(E);P(G,()=>e.children??fe),O(E),l(z,H)};I(he,z=>{e.child?z(pe):z(me,!1)})}l(_e,se)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{focusScope:!0}})};I(ae,w=>{(d.shouldRender||c())&&w(B)})}l(a,k),b()}function ot(a,e){m(e,!0);let t=s(e,"open",15,!1),n=te(e,["$$slots","$$events","$$legacy","open","onOpenChange","children"]);var r=C(),c=_(r);K(c,()=>He,(f,o)=>{o(f,R({get onOpenChange(){return e.onOpenChange}},()=>n,{get open(){return t()},set open(i){t(i)},children:(i,p)=>{var g=C(),v=_(g);P(v,()=>e.children),l(i,g)},$$slots:{default:!0}}))}),l(a,r),b()}var Re=A("<!> <!>",1);function at(a,e){m(e,!0);let t=s(e,"size",3,"md"),n=te(e,["$$slots","$$events","$$legacy","children","class","size"]);var r=C(),c=_(r);K(c,()=>xe,(f,o)=>{o(f,{children:(i,p)=>{var g=Re(),v=_(g);K(v,()=>ze,(y,d)=>{d(y,{class:"dialog-overlay"})});var h=$(v,2);{let y=U(()=>Z("dialog-content",`dialog-${t()}`,e.class));K(h,()=>Ie,(d,S)=>{S(d,R({get class(){return u(y)}},()=>n,{children:(k,ae)=>{var B=C(),w=_(B);P(w,()=>e.children),l(k,B)},$$slots:{default:!0}}))})}l(i,g)},$$slots:{default:!0}})}),l(a,r),b()}var Ke=A("<div><!></div>");function nt(a,e){m(e,!0);var t=Ke(),n=D(t);P(n,()=>e.children),O(t),Y(r=>oe(t,1,r),[()=>re(Z("dialog-header",e.class))]),l(a,t),b()}function st(a,e){m(e,!0);var t=C(),n=_(t);{let r=U(()=>Z("dialog-title",e.class));K(n,()=>Fe,(c,f)=>{f(c,{get class(){return u(r)},children:(o,i)=>{var p=C(),g=_(p);P(g,()=>e.children),l(o,p)},$$slots:{default:!0}})})}l(a,t),b()}var Le=A("<div><!></div>");function lt(a,e){m(e,!0);var t=Le(),n=D(t);P(n,()=>e.children),O(t),Y(r=>oe(t,1,r),[()=>re(Z("dialog-body",e.class))]),l(a,t),b()}var Ye=A("<div><!></div>");function it(a,e){m(e,!0);var t=Ye(),n=D(t);P(n,()=>e.children),O(t),Y(r=>oe(t,1,r),[()=>re(Z("dialog-footer",e.class))]),l(a,t),b()}var Ze=q("<title> </title>"),ke=q('<svg><!><path d="M28,10V28H10V10H28m0-2H10a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2Z"></path><path d="M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z"></path></svg>');function dt(a,e){const t=X(e,["children","$$slots","$$events","$$legacy"]),n=X(t,["size","title"]);m(e,!1);const r=Q(),c=Q();let f=s(e,"size",8,16),o=s(e,"title",8,void 0);W(()=>(M(t),M(o())),()=>{j(r,t["aria-label"]||t["aria-labelledby"]||o())}),W(()=>(u(r),M(t)),()=>{j(c,{"aria-hidden":u(r)?void 0:!0,role:u(r)?"img":void 0,focusable:Number(t.tabindex)===0?!0:void 0})}),ce(),de();var i=ke();ee(i,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:f(),height:f(),...u(c),...n}));var p=D(i);{var g=v=>{var h=Ze(),y=D(h,!0);O(h),Y(()=>ie(y,o())),l(v,h)};I(p,v=>{o()&&v(g)})}ue(2),O(i),l(a,i),b()}export{dt as C,at as D,rt as E,nt as a,st as b,lt as c,it as d,ot as e};
1
+ import{a as l,s as ie,f as q,c as C,p as be,b as A}from"./BdF6nRVd.js";import{i as de}from"./faGDeGnG.js";import{p as m,l as W,s as j,d as M,g as u,a as ce,c as D,n as ue,r as O,b,m as Q,t as Y,a0 as _,ae as fe,a3 as $,a4 as U}from"./sZJoCX5N.js";import{i as I}from"./BSSN_IAc.js";import{a as ee,s as P}from"./BKUmpdNY.js";import{l as X,p as s,s as R,r as te}from"./DNrFMx27.js";import{c as K}from"./4uEV2Hr-.js";import{n as F,Q as ye,f as L,j as Ce,R as Pe,T as De,U as Oe,V as Se,W as we,X as le,m as J,O as xe,Y as ze,Z as Fe}from"./BdOJnB5W.js";import{c as Z}from"./9rXsO0Bz.js";import{c as re,s as oe}from"./OZfYVFGq.js";var Me=q("<title> </title>"),Ae=q('<svg><!><path d="M2 26H30V28H2z"></path><path d="M25.4,9c0.8-0.8,0.8-2,0-2.8c0,0,0,0,0,0l-3.6-3.6c-0.8-0.8-2-0.8-2.8,0c0,0,0,0,0,0l-15,15V24h6.4L25.4,9z M20.4,4L24,7.6 l-3,3L17.4,7L20.4,4z M6,22v-3.6l10-10l3.6,3.6l-10,10H6z"></path></svg>');function rt(a,e){const t=X(e,["children","$$slots","$$events","$$legacy"]),n=X(t,["size","title"]);m(e,!1);const r=Q(),c=Q();let f=s(e,"size",8,16),o=s(e,"title",8,void 0);W(()=>(M(t),M(o())),()=>{j(r,t["aria-label"]||t["aria-labelledby"]||o())}),W(()=>(u(r),M(t)),()=>{j(c,{"aria-hidden":u(r)?void 0:!0,role:u(r)?"img":void 0,focusable:Number(t.tabindex)===0?!0:void 0})}),ce(),de();var i=Ae();ee(i,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:f(),height:f(),...u(c),...n}));var p=D(i);{var g=v=>{var h=Me(),y=D(h,!0);O(h),Y(()=>ie(y,o())),l(v,h)};I(p,v=>{o()&&v(g)})}ue(2),O(i),l(a,i),b()}function He(a,e){m(e,!0);let t=s(e,"open",15,!1),n=s(e,"onOpenChange",3,F),r=s(e,"onOpenChangeComplete",3,F);ye.create({variant:L(()=>"dialog"),open:L(()=>t(),o=>{t(o),n()(o)}),onOpenChangeComplete:L(()=>r())});var c=C(),f=_(c);P(f,()=>e.children??fe),l(a,c),b()}var Ve=A("<!> <!>",1),Ee=A("<!> <div><!></div>",1);function Ie(a,e){const t=be();m(e,!0);let n=s(e,"id",19,()=>Ce(t)),r=s(e,"ref",15,null),c=s(e,"forceMount",3,!1),f=s(e,"onCloseAutoFocus",3,F),o=s(e,"onOpenAutoFocus",3,F),i=s(e,"onEscapeKeydown",3,F),p=s(e,"onInteractOutside",3,F),g=s(e,"trapFocus",3,!0),v=s(e,"preventScroll",3,!0),h=s(e,"restoreScrollDelay",3,null),y=te(e,["$$slots","$$events","$$legacy","id","children","child","ref","forceMount","onCloseAutoFocus","onOpenAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","restoreScrollDelay"]);const d=Pe.create({id:L(()=>n()),ref:L(()=>r(),w=>r(w))}),S=U(()=>J(y,d.props));var k=C(),ae=_(k);{var B=w=>{De(w,{get ref(){return d.opts.ref},loop:!0,get trapFocus(){return g()},get enabled(){return d.root.opts.open.current},get onOpenAutoFocus(){return o()},get onCloseAutoFocus(){return f()},focusScope:(ve,ge)=>{let ne=()=>ge?.().props;Oe(ve,R(()=>u(S),{get enabled(){return d.root.opts.open.current},get ref(){return d.opts.ref},onEscapeKeydown:N=>{i()(N),!N.defaultPrevented&&d.root.handleClose()},children:(N,Ne)=>{Se(N,R(()=>u(S),{get ref(){return d.opts.ref},get enabled(){return d.root.opts.open.current},onInteractOutside:T=>{p()(T),!T.defaultPrevented&&d.root.handleClose()},children:(T,Te)=>{we(T,R(()=>u(S),{get ref(){return d.opts.ref},get enabled(){return d.root.opts.open.current},children:(_e,We)=>{var se=C(),he=_(se);{var pe=z=>{var H=Ve(),V=_(H);{var E=x=>{le(x,{get preventScroll(){return v()},get restoreScrollDelay(){return h()}})};I(V,x=>{d.root.opts.open.current&&x(E)})}var G=$(V,2);{let x=U(()=>({props:J(u(S),ne()),...d.snippetProps}));P(G,()=>e.child,()=>u(x))}l(z,H)},me=z=>{var H=Ee(),V=_(H);le(V,{get preventScroll(){return v()}});var E=$(V,2);ee(E,x=>({...x}),[()=>J(u(S),ne())]);var G=D(E);P(G,()=>e.children??fe),O(E),l(z,H)};I(he,z=>{e.child?z(pe):z(me,!1)})}l(_e,se)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{focusScope:!0}})};I(ae,w=>{(d.shouldRender||c())&&w(B)})}l(a,k),b()}function ot(a,e){m(e,!0);let t=s(e,"open",15,!1),n=te(e,["$$slots","$$events","$$legacy","open","onOpenChange","children"]);var r=C(),c=_(r);K(c,()=>He,(f,o)=>{o(f,R({get onOpenChange(){return e.onOpenChange}},()=>n,{get open(){return t()},set open(i){t(i)},children:(i,p)=>{var g=C(),v=_(g);P(v,()=>e.children),l(i,g)},$$slots:{default:!0}}))}),l(a,r),b()}var Re=A("<!> <!>",1);function at(a,e){m(e,!0);let t=s(e,"size",3,"md"),n=te(e,["$$slots","$$events","$$legacy","children","class","size"]);var r=C(),c=_(r);K(c,()=>xe,(f,o)=>{o(f,{children:(i,p)=>{var g=Re(),v=_(g);K(v,()=>ze,(y,d)=>{d(y,{class:"dialog-overlay"})});var h=$(v,2);{let y=U(()=>Z("dialog-content",`dialog-${t()}`,e.class));K(h,()=>Ie,(d,S)=>{S(d,R({get class(){return u(y)}},()=>n,{children:(k,ae)=>{var B=C(),w=_(B);P(w,()=>e.children),l(k,B)},$$slots:{default:!0}}))})}l(i,g)},$$slots:{default:!0}})}),l(a,r),b()}var Ke=A("<div><!></div>");function nt(a,e){m(e,!0);var t=Ke(),n=D(t);P(n,()=>e.children),O(t),Y(r=>oe(t,1,r),[()=>re(Z("dialog-header",e.class))]),l(a,t),b()}function st(a,e){m(e,!0);var t=C(),n=_(t);{let r=U(()=>Z("dialog-title",e.class));K(n,()=>Fe,(c,f)=>{f(c,{get class(){return u(r)},children:(o,i)=>{var p=C(),g=_(p);P(g,()=>e.children),l(o,p)},$$slots:{default:!0}})})}l(a,t),b()}var Le=A("<div><!></div>");function lt(a,e){m(e,!0);var t=Le(),n=D(t);P(n,()=>e.children),O(t),Y(r=>oe(t,1,r),[()=>re(Z("dialog-body",e.class))]),l(a,t),b()}var Ye=A("<div><!></div>");function it(a,e){m(e,!0);var t=Ye(),n=D(t);P(n,()=>e.children),O(t),Y(r=>oe(t,1,r),[()=>re(Z("dialog-footer",e.class))]),l(a,t),b()}var Ze=q("<title> </title>"),ke=q('<svg><!><path d="M28,10V28H10V10H28m0-2H10a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2Z"></path><path d="M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z"></path></svg>');function dt(a,e){const t=X(e,["children","$$slots","$$events","$$legacy"]),n=X(t,["size","title"]);m(e,!1);const r=Q(),c=Q();let f=s(e,"size",8,16),o=s(e,"title",8,void 0);W(()=>(M(t),M(o())),()=>{j(r,t["aria-label"]||t["aria-labelledby"]||o())}),W(()=>(u(r),M(t)),()=>{j(c,{"aria-hidden":u(r)?void 0:!0,role:u(r)?"img":void 0,focusable:Number(t.tabindex)===0?!0:void 0})}),ce(),de();var i=ke();ee(i,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:f(),height:f(),...u(c),...n}));var p=D(i);{var g=v=>{var h=Ze(),y=D(h,!0);O(h),Y(()=>ie(y,o())),l(v,h)};I(p,v=>{o()&&v(g)})}ue(2),O(i),l(a,i),b()}export{dt as C,at as D,rt as E,nt as a,st as b,lt as c,it as d,ot as e};
@@ -1 +1 @@
1
- import{g as t,s as e,e as u}from"./e913tUZv.js";import{a as p}from"./xwFtwYnE.js";function E(){let l=u(null),i=u(null),r=u(null),o=u(null),s=u("entity"),f=u(null),g=u(null),d=u("preferences"),h=u(!1);function v(n,c){t(l)&&(t(l)!==n||t(r)!==c)&&p(t(l)).catch(()=>{})}function w(n,c,a,V){v(n,a),e(l,n,!0),e(i,c,!0),e(r,a,!0),e(o,V??null,!0)}function y(){e(s,"entity")}function b(){e(s,"graph")}function I(n){e(s,"view"),e(f,n,!0)}function S(){e(s,"settings"),e(d,"preferences")}function m(n,c,a){t(r)===a&&t(l)===n?(e(l,null),e(i,null),e(r,null)):(e(l,n,!0),e(i,c,!0),e(r,a,!0)),e(o,null)}function T(){t(l)&&p(t(l)).catch(()=>{}),e(l,null),e(i,null),e(r,null),e(o,null)}return{get selectedRepo(){return t(l)},get selectedType(){return t(i)},get selectedId(){return t(r)},get selectedSubPath(){return t(o)},get activeView(){return t(s)},get entityPath(){return t(l)&&t(i)&&t(r)?`/${t(l)}/${t(i)}/${t(r)}`:null},get hoveredEntityId(){return t(g)},set hoveredEntityId(n){e(g,n,!0)},get settingsTab(){return t(d)},set settingsTab(n){e(d,n,!0)},get hideSidebar(){return t(h)},set hideSidebar(n){e(h,n,!0)},select:w,deselect:T,selectOnGraph:m,showEntity:y,showGraph:b,get activeViewId(){return t(f)},showView:I,showSettings:S}}const $=E();export{$ as n};
1
+ import{g as t,s as e,e as u}from"./sZJoCX5N.js";import{a as p}from"./DvmL5xMZ.js";function E(){let l=u(null),i=u(null),r=u(null),o=u(null),s=u("entity"),f=u(null),g=u(null),d=u("preferences"),h=u(!1);function v(n,c){t(l)&&(t(l)!==n||t(r)!==c)&&p(t(l)).catch(()=>{})}function w(n,c,a,V){v(n,a),e(l,n,!0),e(i,c,!0),e(r,a,!0),e(o,V??null,!0)}function y(){e(s,"entity")}function b(){e(s,"graph")}function I(n){e(s,"view"),e(f,n,!0)}function S(){e(s,"settings"),e(d,"preferences")}function m(n,c,a){t(r)===a&&t(l)===n?(e(l,null),e(i,null),e(r,null)):(e(l,n,!0),e(i,c,!0),e(r,a,!0)),e(o,null)}function T(){t(l)&&p(t(l)).catch(()=>{}),e(l,null),e(i,null),e(r,null),e(o,null)}return{get selectedRepo(){return t(l)},get selectedType(){return t(i)},get selectedId(){return t(r)},get selectedSubPath(){return t(o)},get activeView(){return t(s)},get entityPath(){return t(l)&&t(i)&&t(r)?`/${t(l)}/${t(i)}/${t(r)}`:null},get hoveredEntityId(){return t(g)},set hoveredEntityId(n){e(g,n,!0)},get settingsTab(){return t(d)},set settingsTab(n){e(d,n,!0)},get hideSidebar(){return t(h)},set hideSidebar(n){e(h,n,!0)},select:w,deselect:T,selectOnGraph:m,showEntity:y,showGraph:b,get activeViewId(){return t(f)},showView:I,showSettings:S}}const $=E();export{$ as n};
@@ -1 +1 @@
1
- import{a as p,s as C,f as h}from"./BJBX4SKZ.js";import{i as M}from"./CrUJgkXY.js";import{p as k,l as c,s as m,d as f,g as i,a as A,c as _,n as B,r as u,b as L,m as v,t as N}from"./e913tUZv.js";import{i as P}from"./D6Lva3KM.js";import{a as R}from"./Zhai-RNf.js";import{l as g,p as b}from"./iZnTs-Zk.js";var Y=h("<title> </title>"),j=h('<svg><!><path d="M10 16 20 6 21.4 7.4 12.8 16 21.4 24.6 20 26z"></path></svg>');function I(x,t){const e=g(t,["children","$$slots","$$events","$$legacy"]),w=g(e,["size","title"]);k(t,!1);const a=v(),n=v();let d=b(t,"size",8,16),s=b(t,"title",8,void 0);c(()=>(f(e),f(s())),()=>{m(a,e["aria-label"]||e["aria-labelledby"]||s())}),c(()=>(i(a),f(e)),()=>{m(n,{"aria-hidden":i(a)?void 0:!0,role:i(a)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),A(),M();var r=j();R(r,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:d(),height:d(),...i(n),...w}));var y=_(r);{var z=o=>{var l=Y(),$=_(l,!0);u(l),N(()=>C($,s())),p(o,l)};P(y,o=>{s()&&o(z)})}B(),u(r),p(x,r),L()}export{I as C};
1
+ import{a as p,s as C,f as h}from"./BdF6nRVd.js";import{i as M}from"./faGDeGnG.js";import{p as k,l as c,s as m,d as f,g as i,a as A,c as _,n as B,r as u,b as L,m as v,t as N}from"./sZJoCX5N.js";import{i as P}from"./BSSN_IAc.js";import{a as R}from"./BKUmpdNY.js";import{l as g,p as b}from"./DNrFMx27.js";var Y=h("<title> </title>"),j=h('<svg><!><path d="M10 16 20 6 21.4 7.4 12.8 16 21.4 24.6 20 26z"></path></svg>');function I(x,t){const e=g(t,["children","$$slots","$$events","$$legacy"]),w=g(e,["size","title"]);k(t,!1);const a=v(),n=v();let d=b(t,"size",8,16),s=b(t,"title",8,void 0);c(()=>(f(e),f(s())),()=>{m(a,e["aria-label"]||e["aria-labelledby"]||s())}),c(()=>(i(a),f(e)),()=>{m(n,{"aria-hidden":i(a)?void 0:!0,role:i(a)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),A(),M();var r=j();R(r,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:d(),height:d(),...i(n),...w}));var y=_(r);{var z=o=>{var l=Y(),$=_(l,!0);u(l),N(()=>C($,s())),p(o,l)};P(y,o=>{s()&&o(z)})}B(),u(r),p(x,r),L()}export{I as C};
@@ -1 +1 @@
1
- import{h as y,i as _,_ as o,$ as u,j as t,C as g,X as i,w as l,k as d,x as p,o as m}from"./e913tUZv.js";function C(n,r){let s=null,E=t;var a;if(t){s=p;for(var e=m(document.head);e!==null&&(e.nodeType!==g||e.data!==n);)e=i(e);if(e===null)l(!1);else{var f=i(e);e.remove(),d(f)}}t||(a=document.head.appendChild(y()));try{_(()=>r(a),o|u)}finally{E&&(l(!0),d(s))}}export{C as h};
1
+ import{h as y,i as _,_ as o,$ as u,j as t,C as g,X as i,w as l,k as d,x as p,o as m}from"./sZJoCX5N.js";function C(n,r){let s=null,E=t;var a;if(t){s=p;for(var e=m(document.head);e!==null&&(e.nodeType!==g||e.data!==n);)e=i(e);if(e===null)l(!1);else{var f=i(e);e.remove(),d(f)}}t||(a=document.head.appendChild(y()));try{_(()=>r(a),o|u)}finally{E&&(l(!0),d(s))}}export{C as h};
@@ -1,4 +1,4 @@
1
- import{e as h,f as U,s as a,g as t,ax as x}from"./e913tUZv.js";import{i as L,g as V}from"./BsdMYUpR.js";import{n as y}from"./CIhtHHtB.js";import{w as W}from"./xwFtwYnE.js";function X(g,c,o){fetch("/api/chat/stream",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(g),signal:o}).then(async n=>{if(!n.ok){c({type:"error",message:`HTTP ${n.status}`});return}const r=n.body?.getReader();if(!r){c({type:"error",message:"No response body"});return}const p=new TextDecoder;let m="";for(;;){const{done:k,value:O}=await r.read();if(k)break;m+=p.decode(O,{stream:!0});const A=m.split(`
1
+ import{e as h,f as U,s as a,g as t,ax as x}from"./sZJoCX5N.js";import{i as L,g as V}from"./Ce71etNw.js";import{n as y}from"./CkIXD8Ce.js";import{w as W}from"./DvmL5xMZ.js";function X(g,c,o){fetch("/api/chat/stream",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(g),signal:o}).then(async n=>{if(!n.ok){c({type:"error",message:`HTTP ${n.status}`});return}const r=n.body?.getReader();if(!r){c({type:"error",message:"No response body"});return}const p=new TextDecoder;let m="";for(;;){const{done:k,value:O}=await r.read();if(k)break;m+=p.decode(O,{stream:!0});const A=m.split(`
2
2
  `);m=A.pop()??"";for(const C of A)if(C.startsWith("data: "))try{const f=JSON.parse(C.slice(6));c(f)}catch{}}}).catch(n=>{n.name!=="AbortError"&&c({type:"error",message:n.message})})}const D="sg-chat-sessions",J="sg-chat-version",z=14;function b(){try{const g=localStorage.getItem(D);if(!g)return[];if(localStorage.getItem(J)==="2")return JSON.parse(g);const n=JSON.parse(g).map(r=>({id:crypto.randomUUID(),createdAt:r.date+"T00:00:00.000Z",updatedAt:r.date+"T00:00:00.000Z",title:r.messages.find(p=>p.role==="user")?.content.slice(0,50)||"New chat",messages:r.messages}));return localStorage.setItem(D,JSON.stringify(n)),localStorage.setItem(J,"2"),n}catch{return[]}}function _(g){const o=[...g].sort((n,r)=>r.updatedAt.localeCompare(n.updatedAt)).slice(0,z);try{localStorage.setItem(D,JSON.stringify(o)),localStorage.setItem(J,"2")}catch{}}function N(g,c){const o=b(),n=c.map(({streaming:p,...m})=>m),r=o.findIndex(p=>p.id===g);r>=0&&(o[r].messages=n,o[r].updatedAt=new Date().toISOString()),_(o)}function B(){const c=b().sort((e,i)=>i.updatedAt.localeCompare(e.updatedAt))[0];let o=h(U(c?c.messages.map(e=>({...e,streaming:!1})):[])),n=h(U(c?.id??null)),r=h(!1),p=h(0),m=h(0),k=h(0),O=h(null),A=null,C=h(""),f=h(U(!!c));const R=new Set(["create_entity","update_entity","delete_entity","move_entity"]);function M(){$();const e=crypto.randomUUID();a(n,e,!0),a(o,[],!0),a(f,!1)}function E(){if(t(n)&&t(f))return t(n);const e=t(n)||crypto.randomUUID();a(n,e,!0);const i=new Date().toISOString(),d=b();return d.push({id:e,createdAt:i,updatedAt:i,title:"New chat",messages:[]}),_(d),a(f,!0),e}function K(e){if(!e.trim()||t(r))return;a(O,null);const i=E();t(o).push({role:"user",content:e}),t(o).push({role:"agent",content:"",segments:[],streaming:!0}),a(r,!0);const d=b(),l=d.find(s=>s.id===i);l&&l.title==="New chat"&&(l.title=e.slice(0,50),_(d)),N(i,t(o));let T=!1,w=null;A=new AbortController;const G=y.selectedSubPath?`${y.selectedRepo}/${y.selectedType}/${y.selectedId}/${y.selectedSubPath}`:y.selectedId?`${y.selectedRepo}/${y.selectedType}/${y.selectedId}`:null,P=t(o).slice(0,-2).map(s=>({role:s.role==="agent"?"assistant":s.role,content:s.content})),H={message:e,context:G??void 0,sessionId:i,history:P.length>0?P:void 0};X(H,s=>{if(!t(r))return;const u=t(o)[t(o).length-1];if(!u||u.role!=="agent")return;const S=u.segments;switch(s.type){case"token":{u.content+=s.text??"";const I=S[S.length-1];I&&I.type==="text"?I.content+=s.text??"":S.push({type:"text",content:s.text??""}),u.segments=S,x(m);break}case"tool_start":if(s.name){R.has(s.name)&&(T=!0);const I=S[S.length-1];I&&I.type==="tools"?I.names=[...I.names,s.name]:S.push({type:"tools",names:[s.name]}),u.segments=S,x(m)}break;case"mutation":T=!0,s.action==="created"&&s.repo&&s.entityType&&s.entityId&&(w={repo:s.repo,entityType:s.entityType,entityId:s.entityId}),window.StudioChrome?.emitMutation?.({action:s.action,repo:s.repo,entityType:s.entityType,entityId:s.entityId});break;case"highlight":a(O,s.entityIds&&s.entityIds.length>0?new Set(s.entityIds):null,!0);break;case"done":s.message&&!u.content&&(u.content=s.message,u.segments=[{type:"text",content:s.message}]),u.streaming=!1,a(r,!1),N(i,t(o)),T&&(L().then(()=>{x(p)}),W.refreshAll().then(()=>{w&&V(`/${w.repo}/${w.entityType}/${w.entityId}`)}));break;case"error":u.content+=`
3
3
 
4
4
  Error: ${s.message}`,u.streaming=!1,a(r,!1),N(i,t(o));break}},A.signal)}function $(){if(!t(r))return;fetch("/api/chat/abort",{method:"POST",credentials:"include"}).catch(()=>{}),A?.abort(),A=null,a(r,!1);const e=t(o)[t(o).length-1];e?.streaming&&(e.streaming=!1,t(n)&&N(t(n),t(o)))}function Y(){$(),a(o,[],!0),t(n)&&t(f)&&N(t(n),t(o))}function Z(e){const d=b().filter(l=>l.id!==e);if(_(d),t(n)===e){const l=d.sort((T,w)=>w.updatedAt.localeCompare(T.updatedAt));l.length>0?(a(n,l[0].id,!0),a(o,l[0].messages.map(T=>({...T,streaming:!1})),!0),a(f,!0)):(a(n,null),a(o,[],!0),a(f,!1))}}function j(e){const d=b().find(l=>l.id===e);d&&($(),a(n,d.id,!0),a(o,d.messages.map(l=>({...l,streaming:!1})),!0),a(f,!0))}function q(){return b().sort((e,i)=>i.updatedAt.localeCompare(e.updatedAt)).map(e=>({id:e.id,title:e.title,createdAt:e.createdAt,updatedAt:e.updatedAt,preview:e.messages.find(i=>i.role==="user")?.content.slice(0,80)||"",count:e.messages.length,active:e.id===t(n)}))}return{get messages(){return t(o)},get streaming(){return t(r)},get mutationCount(){return t(p)},get scrollTick(){return t(m)},get forceScroll(){return t(k)},triggerScroll(){x(k)},get highlightedIds(){return t(O)},get activeSessionId(){return t(n)},get draftInput(){return t(C)},set draftInput(e){a(C,e,!0)},send:K,stop:$,clear:Y,newSession:M,deleteSession:Z,getSessions:q,loadSession:j}}const te=B();export{te as chatStore};
@@ -0,0 +1 @@
1
+ import{c as I,a as f,b as E,p as vt,o as te,s as ot,f as mt}from"./BdF6nRVd.js";import{J as ee,aL as re,bt as se,a4 as d,g as s,a2 as Nt,a7 as ie,s as g,e as U,p as K,a0 as k,b as q,a3 as lt,c as A,ae as et,r as V,a6 as oe,l as pt,d as tt,a as Vt,n as Et,m as gt,t as nt}from"./sZJoCX5N.js";import{a as W,s as B}from"./BKUmpdNY.js";import{i as T}from"./BSSN_IAc.js";import{c as rt}from"./4uEV2Hr-.js";import{p as l,r as G,s as X,l as ft}from"./DNrFMx27.js";import{b as ne,c as bt}from"./9rXsO0Bz.js";import{i as xt}from"./faGDeGnG.js";import{a3 as ae,C as yt,a as ht,w as j,E as wt,S as dt,_ as at,d as kt,a4 as le,G as he,h as Kt,a1 as Tt,m as Z,j as Ct,f as y,a5 as ue,a6 as de,D as St,a7 as ce,a8 as $,a9 as it,aa as Dt,ab as qt,ac as zt,ad as Ft,ae as Bt,af as pe,ag as ge,ah as fe,ai as ve,c as Lt,aj as me,o as be,ak as ye,al as At,$ as Ut,P as Ce,n as J,k as _e,l as we,p as ke,F as Ne,O as xe}from"./BdOJnB5W.js";import{a as Wt}from"./DycWivyI.js";import{e as Se}from"./gawey_BW.js";const Pe=[];function jt(i,t=!1,e=!1){return ct(i,new Map,"",Pe,null,e)}function ct(i,t,e,r,o=null,u=!1){if(typeof i=="object"&&i!==null){var n=t.get(i);if(n!==void 0)return n;if(i instanceof Map)return new Map(i);if(i instanceof Set)return new Set(i);if(ee(i)){var a=Array(i.length);t.set(i,a),o!==null&&t.set(o,a);for(var h=0;h<i.length;h+=1){var v=i[h];h in i&&(a[h]=ct(v,t,e,r,null,u))}return a}if(re(i)===se){a={},t.set(i,a),o!==null&&t.set(o,a);for(var c of Object.keys(i))a[c]=ct(i[c],t,e,r,null,u);return a}if(i instanceof Date)return structuredClone(i);if(typeof i.toJSON=="function"&&!u)return ct(i.toJSON(),t,e,r,i)}if(i instanceof EventTarget)return i;try{return structuredClone(i)}catch{return i}}const Ie={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",transform:"translateX(-100%)"},Re=ae(Ie);class Oe{#t=()=>{};#e=d(()=>this.#t());constructor(t,e){let r;e!==void 0&&(r=e),this.#t=()=>{try{return r}finally{r=t()}}}get current(){return s(this.#e)}}function He(i){Nt(()=>ie(()=>i()))}const Gt=Kt({component:"checkbox",parts:["root","group","group-label","input"]}),Yt=new yt("Checkbox.Group");class Jt{static create(t){return Yt.set(new Jt(t))}opts;attachment;#t=U(void 0);get labelId(){return s(this.#t)}set labelId(t){g(this.#t,t,!0)}constructor(t){this.opts=t,this.attachment=ht(this.opts.ref)}addValue(t){if(t&&!this.opts.value.current.includes(t)){const e=[...jt(this.opts.value.current),t];if(this.opts.value.current=e,Tt(this.opts.value.current,e))return;this.opts.onValueChange.current(e)}}removeValue(t){if(!t||this.opts.value.current.indexOf(t)===-1)return;const r=this.opts.value.current.filter(o=>o!==t);this.opts.value.current=r,!Tt(this.opts.value.current,r)&&this.opts.onValueChange.current(r)}#e=d(()=>({id:this.opts.id.current,role:"group","aria-labelledby":this.labelId,"data-disabled":at(this.opts.disabled.current),[Gt.group]:"",...this.attachment}));get props(){return s(this.#e)}set props(t){g(this.#e,t)}}const Xt=new yt("Checkbox.Root");class Pt{static create(t,e=null){return Xt.set(new Pt(t,e))}opts;group;#t=d(()=>this.group&&this.group.opts.name.current?this.group.opts.name.current:this.opts.name.current);get trueName(){return s(this.#t)}set trueName(t){g(this.#t,t)}#e=d(()=>this.group&&this.group.opts.required.current?!0:this.opts.required.current);get trueRequired(){return s(this.#e)}set trueRequired(t){g(this.#e,t)}#r=d(()=>this.group&&this.group.opts.disabled.current?!0:this.opts.disabled.current);get trueDisabled(){return s(this.#r)}set trueDisabled(t){g(this.#r,t)}#s=d(()=>this.group&&this.group.opts.readonly.current?!0:this.opts.readonly.current);get trueReadonly(){return s(this.#s)}set trueReadonly(t){g(this.#s,t)}attachment;constructor(t,e){this.opts=t,this.group=e,this.attachment=ht(this.opts.ref),this.onkeydown=this.onkeydown.bind(this),this.onclick=this.onclick.bind(this),j.pre([()=>jt(this.group?.opts.value.current),()=>this.opts.value.current],([r,o])=>{!r||!o||(this.opts.checked.current=r.includes(o))}),j.pre(()=>this.opts.checked.current,r=>{this.group&&(r?this.group?.addValue(this.opts.value.current):this.group?.removeValue(this.opts.value.current))})}onkeydown(t){if(!(this.trueDisabled||this.trueReadonly)){if(t.key===wt){t.preventDefault(),this.opts.type.current==="submit"&&t.currentTarget.closest("form")?.requestSubmit();return}t.key===dt&&(t.preventDefault(),this.#i())}}#i(){this.opts.indeterminate.current?(this.opts.indeterminate.current=!1,this.opts.checked.current=!0):this.opts.checked.current=!this.opts.checked.current}onclick(t){if(!(this.trueDisabled||this.trueReadonly)){if(this.opts.type.current==="submit"){this.#i();return}t.preventDefault(),this.#i()}}#o=d(()=>({checked:this.opts.checked.current,indeterminate:this.opts.indeterminate.current}));get snippetProps(){return s(this.#o)}set snippetProps(t){g(this.#o,t)}#n=d(()=>({id:this.opts.id.current,role:"checkbox",type:this.opts.type.current,disabled:this.trueDisabled,"aria-checked":le(this.opts.checked.current,this.opts.indeterminate.current),"aria-required":kt(this.trueRequired),"aria-readonly":kt(this.trueReadonly),"data-disabled":at(this.trueDisabled),"data-readonly":at(this.trueReadonly),"data-state":Me(this.opts.checked.current,this.opts.indeterminate.current),[Gt.root]:"",onclick:this.onclick,onkeydown:this.onkeydown,...this.attachment}));get props(){return s(this.#n)}set props(t){g(this.#n,t)}}class It{static create(){return new It(Xt.get())}root;#t=d(()=>this.root.group?!!(this.root.opts.value.current!==void 0&&this.root.group.opts.value.current.includes(this.root.opts.value.current)):this.root.opts.checked.current);get trueChecked(){return s(this.#t)}set trueChecked(t){g(this.#t,t)}#e=d(()=>!!this.root.trueName);get shouldRender(){return s(this.#e)}set shouldRender(t){g(this.#e,t)}constructor(t){this.root=t,this.onfocus=this.onfocus.bind(this)}onfocus(t){he(this.root.opts.ref.current)&&this.root.opts.ref.current.focus()}#r=d(()=>({type:"checkbox",checked:this.root.opts.checked.current===!0,disabled:this.root.trueDisabled,required:this.root.trueRequired,name:this.root.trueName,value:this.root.opts.value.current,readonly:this.root.trueReadonly,onfocus:this.onfocus}));get props(){return s(this.#r)}set props(t){g(this.#r,t)}}function Me(i,t){return t?"indeterminate":i?"checked":"unchecked"}var Te=E("<input/>"),De=E("<input/>");function Qt(i,t){K(t,!0);let e=l(t,"value",15),r=G(t,["$$slots","$$events","$$legacy","value"]);const o=d(()=>Z(r,{"aria-hidden":"true",tabindex:-1,style:Re}));var u=I(),n=k(u);{var a=v=>{var c=Te();W(c,()=>({...s(o),value:e()}),void 0,void 0,void 0,void 0,!0),f(v,c)},h=v=>{var c=De();W(c,()=>({...s(o)}),void 0,void 0,void 0,void 0,!0),ne(c,e),f(v,c)};T(n,v=>{s(o).type==="checkbox"?v(a):v(h,!1)})}f(i,u),q()}function Ae(i,t){K(t,!1);const e=It.create();xt();var r=I(),o=k(r);{var u=n=>{Qt(n,X(()=>e.props))};T(o,n=>{e.shouldRender&&n(u)})}f(i,r),q()}var Ve=E("<button><!></button>"),Ee=E("<!> <!>",1);function Ke(i,t){const e=vt();K(t,!0);let r=l(t,"checked",15,!1),o=l(t,"ref",15,null),u=l(t,"disabled",3,!1),n=l(t,"required",3,!1),a=l(t,"name",3,void 0),h=l(t,"value",3,"on"),v=l(t,"id",19,()=>Ct(e)),c=l(t,"indeterminate",15,!1),p=l(t,"type",3,"button"),b=G(t,["$$slots","$$events","$$legacy","checked","ref","onCheckedChange","children","disabled","required","name","value","id","indeterminate","onIndeterminateChange","child","type","readonly"]);const w=Yt.getOr(null);w&&h()&&(w.opts.value.current.includes(h())?r(!0):r(!1)),j.pre(()=>h(),()=>{w&&h()&&(w.opts.value.current.includes(h())?r(!0):r(!1))});const R=Pt.create({checked:y(()=>r(),P=>{r(P),t.onCheckedChange?.(P)}),disabled:y(()=>u()??!1),required:y(()=>n()),name:y(()=>a()),value:y(()=>h()),id:y(()=>v()),ref:y(()=>o(),P=>o(P)),indeterminate:y(()=>c(),P=>{c(P),t.onIndeterminateChange?.(P)}),type:y(()=>p()),readonly:y(()=>!!t.readonly)},w),O=d(()=>Z({...b},R.props));var S=Ee(),C=k(S);{var m=P=>{var D=I(),N=k(D);{let z=d(()=>({props:s(O),...R.snippetProps}));B(N,()=>t.child,()=>s(z))}f(P,D)},_=P=>{var D=Ve();W(D,()=>({...s(O)}));var N=A(D);B(N,()=>t.children??et,()=>R.snippetProps),V(D),f(P,D)};T(C,P=>{t.child?P(m):P(_,!1)})}var x=lt(C,2);Ae(x,{}),f(i,S),q()}class qe{#t;#e=d(()=>this.#t.candidateValues());#r;constructor(t){this.#t=t,this.#r=ue("",{afterMs:1e3,getWindow:this.#t.getWindow}),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(t){if(!this.#t.enabled()||!s(this.#e).length)return;this.#r.current=this.#r.current+t;const e=this.#t.getCurrentItem(),r=s(this.#e).find(a=>a===e)??"",o=s(this.#e).map(a=>a??""),u=de(o,this.#r.current,r),n=s(this.#e).find(a=>a===u);return n&&this.#t.onMatch(n),n}resetTypeahead(){this.#r.current=""}}const ze=[it,qt,zt],Fe=[$,Ft,Bt],Be=[...ze,...Fe],Le=Kt({component:"select",parts:["trigger","content","item","viewport","scroll-up-button","scroll-down-button","group","group-label","separator","arrow","input","content-wrapper","item-text","value"]}),ut=new yt("Select.Root | Combobox.Root"),Ue=new yt("Select.Content | Combobox.Content");class Zt{opts;#t=U(!1);get touchedInput(){return s(this.#t)}set touchedInput(t){g(this.#t,t,!0)}#e=U(null);get inputNode(){return s(this.#e)}set inputNode(t){g(this.#e,t,!0)}#r=U(null);get contentNode(){return s(this.#r)}set contentNode(t){g(this.#r,t,!0)}contentPresence;#s=U(null);get viewportNode(){return s(this.#s)}set viewportNode(t){g(this.#s,t,!0)}#i=U(null);get triggerNode(){return s(this.#i)}set triggerNode(t){g(this.#i,t,!0)}#o=U("");get valueId(){return s(this.#o)}set valueId(t){g(this.#o,t,!0)}#n=U(null);get highlightedNode(){return s(this.#n)}set highlightedNode(t){g(this.#n,t,!0)}#a=d(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-value"):null);get highlightedValue(){return s(this.#a)}set highlightedValue(t){g(this.#a,t)}#l=d(()=>{if(this.highlightedNode)return this.highlightedNode.id});get highlightedId(){return s(this.#l)}set highlightedId(t){g(this.#l,t)}#h=d(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-label"):null);get highlightedLabel(){return s(this.#h)}set highlightedLabel(t){g(this.#h,t)}isUsingKeyboard=!1;isCombobox=!1;domContext=new St(()=>null);constructor(t){this.opts=t,this.isCombobox=t.isCombobox,this.contentPresence=new Ce({ref:y(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),oe(()=>{this.opts.open.current||this.setHighlightedNode(null)})}setHighlightedNode(t,e=!1){this.highlightedNode=t,t&&(this.isUsingKeyboard||e)&&t.scrollIntoView({block:this.opts.scrollAlignment.current})}getCandidateNodes(){const t=this.contentNode;return t?Array.from(t.querySelectorAll(`[${this.getBitsAttr("item")}]:not([data-disabled])`)):[]}setHighlightedToFirstCandidate(t=!1){this.setHighlightedNode(null);let e=this.getCandidateNodes();if(e.length){if(this.viewportNode){const r=this.viewportNode.getBoundingClientRect();e=e.filter(o=>{if(!this.viewportNode)return!1;const u=o.getBoundingClientRect();return u.right<=r.right&&u.left>=r.left&&u.bottom<=r.bottom&&u.top>=r.top})}this.setHighlightedNode(e[0],t)}}getNodeByValue(t){return this.getCandidateNodes().find(r=>r.dataset.value===t)??null}setOpen(t){this.opts.open.current=t}toggleOpen(){this.opts.open.current=!this.opts.open.current}handleOpen(){this.setOpen(!0)}handleClose(){this.setHighlightedNode(null),this.setOpen(!1)}toggleMenu(){this.toggleOpen()}getBitsAttr=t=>Le.getAttr(t,this.isCombobox?"combobox":void 0)}class We extends Zt{opts;isMulti=!1;#t=d(()=>this.opts.value.current!=="");get hasValue(){return s(this.#t)}set hasValue(t){g(this.#t,t)}#e=d(()=>this.opts.items.current.length?this.opts.items.current.find(t=>t.value===this.opts.value.current)?.label??"":"");get currentLabel(){return s(this.#e)}set currentLabel(t){g(this.#e,t)}#r=d(()=>this.opts.items.current.length?this.opts.items.current.filter(e=>!e.disabled).map(e=>e.label):[]);get candidateLabels(){return s(this.#r)}set candidateLabels(t){g(this.#r,t)}#s=d(()=>!(this.isMulti||this.opts.items.current.length===0));get dataTypeaheadEnabled(){return s(this.#s)}set dataTypeaheadEnabled(t){g(this.#s,t)}constructor(t){super(t),this.opts=t,Nt(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),j(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}includesItem(t){return this.opts.value.current===t}toggleItem(t,e=t){const r=this.includesItem(t)?"":t;this.opts.value.current=r,r!==""&&(this.opts.inputValue.current=e)}setInitialHighlightedNode(){Ut(()=>{if(!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current!==""){const t=this.getNodeByValue(this.opts.value.current);if(t){this.setHighlightedNode(t,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}}class je extends Zt{opts;isMulti=!0;#t=d(()=>this.opts.value.current.length>0);get hasValue(){return s(this.#t)}set hasValue(t){g(this.#t,t)}constructor(t){super(t),this.opts=t,Nt(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),j(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}includesItem(t){return this.opts.value.current.includes(t)}toggleItem(t,e=t){this.includesItem(t)?this.opts.value.current=this.opts.value.current.filter(r=>r!==t):this.opts.value.current=[...this.opts.value.current,t],this.opts.inputValue.current=e}setInitialHighlightedNode(){Ut(()=>{if(this.domContext&&!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current.length&&this.opts.value.current[0]!==""){const t=this.getNodeByValue(this.opts.value.current[0]);if(t){this.setHighlightedNode(t,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}}class Ge{static create(t){const{type:e,...r}=t,o=e==="single"?new We(r):new je(r);return ut.set(o)}}class Rt{static create(t){return new Rt(t,ut.get())}opts;root;attachment;#t;#e;constructor(t,e){this.opts=t,this.root=e,this.attachment=ht(t.ref,r=>this.root.triggerNode=r),this.root.domContext=new St(t.ref),this.#t=new ce({getCurrentItem:()=>this.root.highlightedNode,onMatch:r=>{this.root.setHighlightedNode(r)},getActiveElement:()=>this.root.domContext.getActiveElement(),getWindow:()=>this.root.domContext.getWindow()}),this.#e=new qe({getCurrentItem:()=>this.root.isMulti?"":this.root.currentLabel,onMatch:r=>{if(this.root.isMulti||!this.root.opts.items.current)return;const o=this.root.opts.items.current.find(u=>u.label===r);o&&(this.root.opts.value.current=o.value)},enabled:()=>!this.root.isMulti&&this.root.dataTypeaheadEnabled,candidateValues:()=>this.root.isMulti?[]:this.root.candidateLabels,getWindow:()=>this.root.domContext.getWindow()}),this.onkeydown=this.onkeydown.bind(this),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onclick=this.onclick.bind(this)}#r(){this.root.opts.open.current=!0,this.#e.resetTypeahead(),this.#t.resetTypeahead()}#s(t){this.#r()}#i(){const t=this.root.highlightedValue===this.root.opts.value.current;return!this.root.opts.allowDeselect.current&&t&&!this.root.isMulti?(this.root.handleClose(),!0):(this.root.highlightedValue!==null&&this.root.toggleItem(this.root.highlightedValue,this.root.highlightedLabel??void 0),!this.root.isMulti&&!t?(this.root.handleClose(),!0):!1)}onkeydown(t){if(this.root.isUsingKeyboard=!0,(t.key===$||t.key===it)&&t.preventDefault(),!this.root.opts.open.current){if(t.key===wt||t.key===dt||t.key===it||t.key===$)t.preventDefault(),this.root.handleOpen();else if(!this.root.isMulti&&this.root.dataTypeaheadEnabled){this.#e.handleTypeaheadSearch(t.key);return}if(this.root.hasValue)return;const n=this.root.getCandidateNodes();if(!n.length)return;if(t.key===it){const a=n[0];this.root.setHighlightedNode(a)}else if(t.key===$){const a=n[n.length-1];this.root.setHighlightedNode(a)}return}if(t.key===Dt){this.root.handleClose();return}if((t.key===wt||t.key===dt&&this.#t.search==="")&&!t.isComposing&&(t.preventDefault(),this.#i()))return;if(t.key===$&&t.altKey&&this.root.handleClose(),Be.includes(t.key)){t.preventDefault();const n=this.root.getCandidateNodes(),a=this.root.highlightedNode,h=a?n.indexOf(a):-1,v=this.root.opts.loop.current;let c;if(t.key===it?c=pe(n,h,v):t.key===$?c=ge(n,h,v):t.key===Ft?c=fe(n,h,10,v):t.key===qt?c=ve(n,h,10,v):t.key===zt?c=n[0]:t.key===Bt&&(c=n[n.length-1]),!c)return;this.root.setHighlightedNode(c);return}const e=t.ctrlKey||t.altKey||t.metaKey,r=t.key.length===1,o=t.key===dt,u=this.root.getCandidateNodes();if(t.key!==Dt){if(!e&&(r||o)){!this.#t.handleTypeaheadSearch(t.key,u)&&o&&(t.preventDefault(),this.#i());return}this.root.highlightedNode||this.root.setHighlightedToFirstCandidate()}}onclick(t){t.currentTarget.focus()}onpointerdown(t){if(this.root.opts.disabled.current)return;if(t.pointerType==="touch")return t.preventDefault();const e=t.target;e?.hasPointerCapture(t.pointerId)&&e?.releasePointerCapture(t.pointerId),t.button===0&&t.ctrlKey===!1&&(this.root.opts.open.current===!1?this.#s(t):this.root.handleClose())}onpointerup(t){this.root.opts.disabled.current||(t.preventDefault(),t.pointerType==="touch"&&(this.root.opts.open.current===!1?this.#s(t):this.root.handleClose()))}#o=d(()=>({id:this.opts.id.current,disabled:this.root.opts.disabled.current?!0:void 0,"aria-haspopup":"listbox","aria-expanded":kt(this.root.opts.open.current),"aria-activedescendant":this.root.highlightedId,"data-state":Lt(this.root.opts.open.current),"data-disabled":at(this.root.opts.disabled.current),"data-placeholder":this.root.hasValue?void 0:"",[this.root.getBitsAttr("trigger")]:"",onpointerdown:this.onpointerdown,onkeydown:this.onkeydown,onclick:this.onclick,onpointerup:this.onpointerup,...this.attachment}));get props(){return s(this.#o)}set props(t){g(this.#o,t)}}class Ot{static create(t){return Ue.set(new Ot(t,ut.get()))}opts;root;attachment;#t=U(!1);get isPositioned(){return s(this.#t)}set isPositioned(t){g(this.#t,t,!0)}domContext;constructor(t,e){this.opts=t,this.root=e,this.attachment=ht(t.ref,r=>this.root.contentNode=r),this.domContext=new St(this.opts.ref),this.root.domContext===null&&(this.root.domContext=this.domContext),me(()=>{this.root.contentNode=null,this.isPositioned=!1}),j(()=>this.root.opts.open.current,()=>{this.root.opts.open.current||(this.isPositioned=!1)}),this.onpointermove=this.onpointermove.bind(this)}onpointermove(t){this.root.isUsingKeyboard=!1}#e=d(()=>be(this.root.isCombobox?"combobox":"select"));onInteractOutside=t=>{if(t.target===this.root.triggerNode||t.target===this.root.inputNode){t.preventDefault();return}this.opts.onInteractOutside.current(t),!t.defaultPrevented&&this.root.handleClose()};onEscapeKeydown=t=>{this.opts.onEscapeKeydown.current(t),!t.defaultPrevented&&this.root.handleClose()};onOpenAutoFocus=t=>{t.preventDefault()};onCloseAutoFocus=t=>{t.preventDefault()};get shouldRender(){return this.root.contentPresence.shouldRender}#r=d(()=>({open:this.root.opts.open.current}));get snippetProps(){return s(this.#r)}set snippetProps(t){g(this.#r,t)}#s=d(()=>({id:this.opts.id.current,role:"listbox","aria-multiselectable":this.root.isMulti?"true":void 0,"data-state":Lt(this.root.opts.open.current),[this.root.getBitsAttr("content")]:"",style:{display:"flex",flexDirection:"column",outline:"none",boxSizing:"border-box",pointerEvents:"auto",...s(this.#e)},onpointermove:this.onpointermove,...this.attachment}));get props(){return s(this.#s)}set props(t){g(this.#s,t)}popperProps={onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown,onOpenAutoFocus:this.onOpenAutoFocus,onCloseAutoFocus:this.onCloseAutoFocus,trapFocus:!1,loop:!1,onPlaced:()=>{this.root.opts.open.current&&(this.isPositioned=!0)}}}class Ht{static create(t){return new Ht(t,ut.get())}opts;root;attachment;#t=d(()=>this.root.includesItem(this.opts.value.current));get isSelected(){return s(this.#t)}set isSelected(t){g(this.#t,t)}#e=d(()=>this.root.highlightedValue===this.opts.value.current);get isHighlighted(){return s(this.#e)}set isHighlighted(t){g(this.#e,t)}prevHighlighted=new Oe(()=>this.isHighlighted);#r=U(!1);get mounted(){return s(this.#r)}set mounted(t){g(this.#r,t,!0)}constructor(t,e){this.opts=t,this.root=e,this.attachment=ht(t.ref),j([()=>this.isHighlighted,()=>this.prevHighlighted.current],()=>{this.isHighlighted?this.opts.onHighlight.current():this.prevHighlighted.current&&this.opts.onUnhighlight.current()}),j(()=>this.mounted,()=>{this.mounted&&this.root.setInitialHighlightedNode()}),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onpointermove=this.onpointermove.bind(this)}handleSelect(){if(this.opts.disabled.current)return;const t=this.opts.value.current===this.root.opts.value.current;if(!this.root.opts.allowDeselect.current&&t&&!this.root.isMulti){this.root.handleClose();return}this.root.toggleItem(this.opts.value.current,this.opts.label.current),!this.root.isMulti&&!t&&this.root.handleClose()}#s=d(()=>({selected:this.isSelected,highlighted:this.isHighlighted}));get snippetProps(){return s(this.#s)}set snippetProps(t){g(this.#s,t)}onpointerdown(t){t.preventDefault()}onpointerup(t){if(!(t.defaultPrevented||!this.opts.ref.current)){if(t.pointerType==="touch"&&!ye){te(this.opts.ref.current,"click",()=>{this.handleSelect(),this.root.setHighlightedNode(this.opts.ref.current)},{once:!0});return}t.preventDefault(),this.handleSelect(),t.pointerType==="touch"&&this.root.setHighlightedNode(this.opts.ref.current)}}onpointermove(t){t.pointerType!=="touch"&&this.root.highlightedNode!==this.opts.ref.current&&this.root.setHighlightedNode(this.opts.ref.current)}#i=d(()=>({id:this.opts.id.current,role:"option","aria-selected":this.root.includesItem(this.opts.value.current)?"true":void 0,"data-value":this.opts.value.current,"data-disabled":at(this.opts.disabled.current),"data-highlighted":this.root.highlightedValue===this.opts.value.current&&!this.opts.disabled.current?"":void 0,"data-selected":this.root.includesItem(this.opts.value.current)?"":void 0,"data-label":this.opts.label.current,[this.root.getBitsAttr("item")]:"",onpointermove:this.onpointermove,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,...this.attachment}));get props(){return s(this.#i)}set props(t){g(this.#i,t)}}class Mt{static create(t){return new Mt(t,ut.get())}opts;root;#t=d(()=>this.root.opts.name.current!=="");get shouldRender(){return s(this.#t)}set shouldRender(t){g(this.#t,t)}constructor(t,e){this.opts=t,this.root=e,this.onfocus=this.onfocus.bind(this)}onfocus(t){t.preventDefault(),this.root.isCombobox?this.root.inputNode?.focus():this.root.triggerNode?.focus()}#e=d(()=>({disabled:At(this.root.opts.disabled.current),required:At(this.root.opts.required.current),name:this.root.opts.name.current,value:this.opts.value.current,onfocus:this.onfocus}));get props(){return s(this.#e)}set props(t){g(this.#e,t)}}function _t(i,t){K(t,!0);let e=l(t,"value",15);const r=Mt.create({value:y(()=>e())});var o=I(),u=k(o);{var n=a=>{Qt(a,X(()=>r.props,{get autocomplete(){return t.autocomplete},get value(){return e()},set value(h){e(h)}}))};T(u,a=>{r.shouldRender&&a(n)})}f(i,o),q()}var Ye=E("<div><div><!></div></div>"),Je=E("<div><div><!></div></div>");function Xe(i,t){const e=vt();K(t,!0);let r=l(t,"id",19,()=>Ct(e)),o=l(t,"ref",15,null),u=l(t,"forceMount",3,!1),n=l(t,"side",3,"bottom"),a=l(t,"onInteractOutside",3,J),h=l(t,"onEscapeKeydown",3,J),v=l(t,"preventScroll",3,!1),c=G(t,["$$slots","$$events","$$legacy","id","ref","forceMount","side","onInteractOutside","onEscapeKeydown","children","child","preventScroll","style"]);const p=Ot.create({id:y(()=>r()),ref:y(()=>o(),C=>o(C)),onInteractOutside:y(()=>a()),onEscapeKeydown:y(()=>h())}),b=d(()=>Z(c,p.props));var w=I(),R=k(w);{var O=C=>{_e(C,X(()=>s(b),()=>p.popperProps,{get ref(){return p.opts.ref},get side(){return n()},get enabled(){return p.root.opts.open.current},get id(){return r()},get preventScroll(){return v()},forceMount:!0,get shouldRender(){return p.shouldRender},popper:(_,x)=>{let P=()=>x?.().props,D=()=>x?.().wrapperProps;const N=d(()=>Z(P(),{style:p.props.style},{style:t.style}));var z=I(),Y=k(z);{var Q=H=>{var M=I(),F=k(M);{let L=d(()=>({props:s(N),wrapperProps:D(),...p.snippetProps}));B(F,()=>t.child,()=>s(L))}f(H,M)},st=H=>{var M=Ye();W(M,()=>({...D()}));var F=A(M);W(F,()=>({...s(N)}));var L=A(F);B(L,()=>t.children??et),V(F),V(M),f(H,M)};T(Y,H=>{t.child?H(Q):H(st,!1)})}f(_,z)},$$slots:{popper:!0}}))},S=C=>{we(C,X(()=>s(b),()=>p.popperProps,{get ref(){return p.opts.ref},get side(){return n()},get open(){return p.root.opts.open.current},get id(){return r()},get preventScroll(){return v()},forceMount:!1,get shouldRender(){return p.shouldRender},popper:(_,x)=>{let P=()=>x?.().props,D=()=>x?.().wrapperProps;const N=d(()=>Z(P(),{style:p.props.style},{style:t.style}));var z=I(),Y=k(z);{var Q=H=>{var M=I(),F=k(M);{let L=d(()=>({props:s(N),wrapperProps:D(),...p.snippetProps}));B(F,()=>t.child,()=>s(L))}f(H,M)},st=H=>{var M=Je();W(M,()=>({...D()}));var F=A(M);W(F,()=>({...s(N)}));var L=A(F);B(L,()=>t.children??et),V(F),V(M),f(H,M)};T(Y,H=>{t.child?H(Q):H(st,!1)})}f(_,z)},$$slots:{popper:!0}}))};T(R,C=>{u()?C(O):u()||C(S,1)})}f(i,w),q()}function Qe(i,t){K(t,!0);let e=l(t,"mounted",15,!1),r=l(t,"onMountedChange",3,J);He(()=>(e(!0),r()(!0),()=>{e(!1),r()(!1)})),q()}var Ze=E("<div><!></div>"),$e=E("<!> <!>",1);function tr(i,t){const e=vt();K(t,!0);let r=l(t,"id",19,()=>Ct(e)),o=l(t,"ref",15,null),u=l(t,"label",19,()=>t.value),n=l(t,"disabled",3,!1),a=l(t,"onHighlight",3,J),h=l(t,"onUnhighlight",3,J),v=G(t,["$$slots","$$events","$$legacy","id","ref","value","label","disabled","children","child","onHighlight","onUnhighlight"]);const c=Ht.create({id:y(()=>r()),ref:y(()=>o(),C=>o(C)),value:y(()=>t.value),disabled:y(()=>n()),label:y(()=>u()),onHighlight:y(()=>a()),onUnhighlight:y(()=>h())}),p=d(()=>Z(v,c.props));var b=$e(),w=k(b);{var R=C=>{var m=I(),_=k(m);{let x=d(()=>({props:s(p),...c.snippetProps}));B(_,()=>t.child,()=>s(x))}f(C,m)},O=C=>{var m=Ze();W(m,()=>({...s(p)}));var _=A(m);B(_,()=>t.children??et,()=>c.snippetProps),V(m),f(C,m)};T(w,C=>{t.child?C(R):C(O,!1)})}var S=lt(w,2);Qe(S,{get mounted(){return c.mounted},set mounted(C){c.mounted=C}}),f(i,b),q()}var er=E("<!> <!>",1);function rr(i,t){K(t,!0);let e=l(t,"value",15),r=l(t,"onValueChange",3,J),o=l(t,"name",3,""),u=l(t,"disabled",3,!1),n=l(t,"open",15,!1),a=l(t,"onOpenChange",3,J),h=l(t,"onOpenChangeComplete",3,J),v=l(t,"loop",3,!1),c=l(t,"scrollAlignment",3,"nearest"),p=l(t,"required",3,!1),b=l(t,"items",19,()=>[]),w=l(t,"allowDeselect",3,!1);function R(){e()===void 0&&e(t.type==="single"?"":[])}R(),j.pre(()=>e(),()=>{R()});let O=U("");const S=Ge.create({type:t.type,value:y(()=>e(),N=>{e(N),r()(N)}),disabled:y(()=>u()),required:y(()=>p()),open:y(()=>n(),N=>{n(N),a()(N)}),loop:y(()=>v()),scrollAlignment:y(()=>c()),name:y(()=>o()),isCombobox:!1,items:y(()=>b()),allowDeselect:y(()=>w()),inputValue:y(()=>s(O),N=>g(O,N,!0)),onOpenChangeComplete:y(()=>h())});var C=er(),m=k(C);ke(m,{children:(N,z)=>{var Y=I(),Q=k(Y);B(Q,()=>t.children??et),f(N,Y)},$$slots:{default:!0}});var _=lt(m,2);{var x=N=>{var z=I(),Y=k(z);{var Q=H=>{_t(H,{get autocomplete(){return t.autocomplete}})},st=H=>{var M=I(),F=k(M);Se(F,16,()=>S.opts.value.current,L=>L,(L,$t)=>{_t(L,{get value(){return $t},get autocomplete(){return t.autocomplete}})}),f(H,M)};T(Y,H=>{S.opts.value.current.length===0?H(Q):H(st,!1)})}f(N,z)},P=d(()=>Array.isArray(S.opts.value.current)),D=N=>{_t(N,{get autocomplete(){return t.autocomplete},get value(){return S.opts.value.current},set value(z){S.opts.value.current=z}})};T(_,N=>{s(P)?N(x):N(D,!1)})}f(i,C),q()}var sr=E("<button><!></button>");function ir(i,t){const e=vt();K(t,!0);let r=l(t,"id",19,()=>Ct(e)),o=l(t,"ref",15,null),u=l(t,"type",3,"button"),n=G(t,["$$slots","$$events","$$legacy","id","ref","child","children","type"]);const a=Rt.create({id:y(()=>r()),ref:y(()=>o(),p=>o(p))}),h=d(()=>Z(n,a.props,{type:u()}));var v=I(),c=k(v);rt(c,()=>Ne,(p,b)=>{b(p,{get id(){return r()},get ref(){return a.opts.ref},children:(w,R)=>{var O=I(),S=k(O);{var C=_=>{var x=I(),P=k(x);B(P,()=>t.child,()=>({props:s(h)})),f(_,x)},m=_=>{var x=sr();W(x,()=>({...s(h)}));var P=A(x);B(P,()=>t.children??et),V(x),f(_,x)};T(S,_=>{t.child?_(C):_(m,!1)})}f(w,O)},$$slots:{default:!0}})}),f(i,v),q()}var or=mt("<title> </title>"),nr=mt('<svg><!><path d="M16 22 6 12 7.4 10.6 16 19.2 24.6 10.6 26 12z"></path></svg>');function ar(i,t){const e=ft(t,["children","$$slots","$$events","$$legacy"]),r=ft(e,["size","title"]);K(t,!1);const o=gt(),u=gt();let n=l(t,"size",8,16),a=l(t,"title",8,void 0);pt(()=>(tt(e),tt(a())),()=>{g(o,e["aria-label"]||e["aria-labelledby"]||a())}),pt(()=>(s(o),tt(e)),()=>{g(u,{"aria-hidden":s(o)?void 0:!0,role:s(o)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),Vt(),xt();var h=nr();W(h,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:n(),height:n(),...s(u),...r}));var v=A(h);{var c=p=>{var b=or(),w=A(b,!0);V(b),nt(()=>ot(w,a())),f(p,b)};T(v,p=>{a()&&p(c)})}Et(),V(h),f(i,h),q()}var lr=E("<span> </span>"),hr=E('<span class="select-placeholder"> </span>'),ur=E("<!> <!>",1);function Pr(i,t){K(t,!0);let e=l(t,"placeholder",3,"Select..."),r=l(t,"size",3,"default"),o=G(t,["$$slots","$$events","$$legacy","children","value","placeholder","class","size"]);var u=I(),n=k(u);{let a=d(()=>bt("select-trigger",r()==="sm"&&"select-trigger-sm",t.class));rt(n,()=>ir,(h,v)=>{v(h,X({get class(){return s(a)}},()=>o,{children:(c,p)=>{var b=ur(),w=k(b);{var R=m=>{var _=I(),x=k(_);B(x,()=>t.children),f(m,_)},O=m=>{var _=lr(),x=A(_,!0);V(_),nt(()=>ot(x,t.value)),f(m,_)},S=m=>{var _=hr(),x=A(_,!0);V(_),nt(()=>ot(x,e())),f(m,_)};T(w,m=>{t.children?m(R):t.value?m(O,1):m(S,!1)})}var C=lt(w,2);{let m=d(()=>r()==="sm"?12:14);ar(C,{get size(){return s(m)},class:"select-chevron"})}f(c,b)},$$slots:{default:!0}}))})}f(i,u),q()}function Ir(i,t){K(t,!0);let e=l(t,"side",3,"bottom"),r=l(t,"sideOffset",3,4),o=G(t,["$$slots","$$events","$$legacy","children","class","side","sideOffset"]);var u=I(),n=k(u);rt(n,()=>xe,(a,h)=>{h(a,{children:(v,c)=>{var p=I(),b=k(p);{let w=d(()=>bt("select-content",t.class));rt(b,()=>Xe,(R,O)=>{O(R,X({get class(){return s(w)},get side(){return e()},get sideOffset(){return r()}},()=>o,{children:(S,C)=>{var m=I(),_=k(m);B(_,()=>t.children),f(S,m)},$$slots:{default:!0}}))})}f(v,p)},$$slots:{default:!0}})}),f(i,u),q()}var dr=E('<span class="select-item-text"> </span> <!>',1);function Rr(i,t){K(t,!0);let e=l(t,"disabled",3,!1),r=G(t,["$$slots","$$events","$$legacy","value","label","disabled","class"]);var o=I(),u=k(o);{const n=(h,v)=>{let c=()=>v?.().selected;var p=dr(),b=k(p),w=A(b,!0);V(b);var R=lt(b,2);{var O=S=>{Wt(S,{size:12,class:"select-item-check"})};T(R,S=>{c()&&S(O)})}nt(()=>ot(w,t.label??t.value)),f(h,p)};let a=d(()=>bt("select-item",t.class));rt(u,()=>tr,(h,v)=>{v(h,X({get value(){return t.value},get label(){return t.label},get disabled(){return e()},get class(){return s(a)}},()=>r,{children:n,$$slots:{default:!0}}))})}f(i,o),q()}const Or=rr;var cr=mt("<title> </title>"),pr=mt('<svg><!><path d="M8 15H24V17H8z"></path></svg>');function gr(i,t){const e=ft(t,["children","$$slots","$$events","$$legacy"]),r=ft(e,["size","title"]);K(t,!1);const o=gt(),u=gt();let n=l(t,"size",8,16),a=l(t,"title",8,void 0);pt(()=>(tt(e),tt(a())),()=>{g(o,e["aria-label"]||e["aria-labelledby"]||a())}),pt(()=>(s(o),tt(e)),()=>{g(u,{"aria-hidden":s(o)?void 0:!0,role:s(o)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),Vt(),xt();var h=pr();W(h,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:n(),height:n(),...s(u),...r}));var v=A(h);{var c=p=>{var b=cr(),w=A(b,!0);V(b),nt(()=>ot(w,a())),f(p,b)};T(v,p=>{a()&&p(c)})}Et(),V(h),f(i,h),q()}var fr=E('<span class="flex items-center justify-center text-current"><!></span>');function Hr(i,t){K(t,!0);let e=l(t,"checked",15,!1),r=l(t,"indeterminate",15,!1),o=l(t,"ref",15,null),u=G(t,["$$slots","$$events","$$legacy","class","checked","indeterminate","ref"]);var n=I(),a=k(n);{const h=(c,p)=>{let b=()=>p?.().checked,w=()=>p?.().indeterminate;var R=fr(),O=A(R);{var S=m=>{gr(m,{class:"size-3"})},C=m=>{Wt(m,{class:"size-3"})};T(O,m=>{w()?m(S):b()&&m(C,1)})}V(R),f(c,R)};let v=d(()=>bt("peer inline-flex size-4 shrink-0 items-center justify-center rounded-sm border border-[var(--color-border)] bg-transparent transition-colors","hover:border-[var(--color-accent)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-accent)] focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--color-bg-primary)]","disabled:cursor-not-allowed disabled:opacity-50","data-[state=checked]:border-[var(--color-accent)] data-[state=checked]:bg-[var(--color-accent)] data-[state=checked]:text-white",t.class));rt(a,()=>Ke,(c,p)=>{p(c,X({get class(){return s(v)}},()=>u,{get checked(){return e()},set checked(b){e(b)},get indeterminate(){return r()},set indeterminate(b){r(b)},get ref(){return o()},set ref(b){o(b)},children:h,$$slots:{default:!0}}))})}f(i,n),q()}export{Hr as C,Or as R,Pr as S,Ir as a,Rr as b,Jt as c,jt as s};
@@ -1 +1 @@
1
- import{ae as I,m as U,af as j,ag as B,g as d,ah as M,ai as Y,s as y,aj as w,ak as $,al as D,f as q,am as z,an as h,ao as C,ap as G,a7 as Z,aq as F,ar as H,as as J,aa as Q,I as V,at as p,au as E,av as A,aw as W,N as X,ax as g,ay as R}from"./e913tUZv.js";let v=!1,S=Symbol();function ie(e,r,s){const n=s[r]??={store:null,source:U(void 0),unsubscribe:I};if(n.store!==e&&!(S in s))if(n.unsubscribe(),n.store=e??null,e==null)n.source.v=void 0,n.unsubscribe=I;else{var u=!0;n.unsubscribe=j(e,t=>{u?n.source.v=t:y(n.source,t)}),u=!1}return e&&S in s?B(e):d(n.source)}function te(){const e={};function r(){M(()=>{for(var s in e)e[s].unsubscribe();Y(e,S,{enumerable:!1,value:!0})})}return[e,r]}function k(e){var r=v;try{return v=!1,[e(),v]}finally{v=r}}const ee={get(e,r){if(!e.exclude.includes(r))return e.props[r]},set(e,r){return!1},getOwnPropertyDescriptor(e,r){if(!e.exclude.includes(r)&&r in e.props)return{enumerable:!0,configurable:!0,value:e.props[r]}},has(e,r){return e.exclude.includes(r)?!1:r in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(r=>!e.exclude.includes(r))}};function ae(e,r,s){return new Proxy({props:e,exclude:r},ee)}const re={get(e,r){if(!e.exclude.includes(r))return d(e.version),r in e.special?e.special[r]():e.props[r]},set(e,r,s){if(!(r in e.special)){var n=h;try{R(e.parent_effect),e.special[r]=se({get[r](){return e.props[r]}},r,D)}finally{R(n)}}return e.special[r](s),g(e.version),!0},getOwnPropertyDescriptor(e,r){if(!e.exclude.includes(r)&&r in e.props)return{enumerable:!0,configurable:!0,value:e.props[r]}},deleteProperty(e,r){return e.exclude.includes(r)||(e.exclude.push(r),g(e.version)),!0},has(e,r){return e.exclude.includes(r)?!1:r in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(r=>!e.exclude.includes(r))}};function fe(e,r){return new Proxy({props:e,exclude:r,special:{},version:X(0),parent_effect:h},re)}const ne={get(e,r){let s=e.props.length;for(;s--;){let n=e.props[s];if(p(n)&&(n=n()),typeof n=="object"&&n!==null&&r in n)return n[r]}},set(e,r,s){let n=e.props.length;for(;n--;){let u=e.props[n];p(u)&&(u=u());const t=w(u,r);if(t&&t.set)return t.set(s),!0}return!1},getOwnPropertyDescriptor(e,r){let s=e.props.length;for(;s--;){let n=e.props[s];if(p(n)&&(n=n()),typeof n=="object"&&n!==null&&r in n){const u=w(n,r);return u&&!u.configurable&&(u.configurable=!0),u}}},has(e,r){if(r===E||r===A)return!1;for(let s of e.props)if(p(s)&&(s=s()),s!=null&&r in s)return!0;return!1},ownKeys(e){const r=[];for(let s of e.props)if(p(s)&&(s=s()),!!s){for(const n in s)r.includes(n)||r.push(n);for(const n of Object.getOwnPropertySymbols(s))r.includes(n)||r.push(n)}return r}};function le(...e){return new Proxy({props:e},ne)}function se(e,r,s,n){var u=!F||(s&H)!==0,t=(s&G)!==0,T=(s&W)!==0,a=n,b=!0,x=()=>(b&&(b=!1,a=T?Z(n):n),a),l;if(t){var L=E in e||A in e;l=w(e,r)?.set??(L&&r in e?i=>e[r]=i:void 0)}var o,O=!1;t?[o,O]=k(()=>e[r]):o=e[r],o===void 0&&n!==void 0&&(o=x(),l&&(u&&$(),l(o)));var f;if(u?f=()=>{var i=e[r];return i===void 0?x():(b=!0,i)}:f=()=>{var i=e[r];return i!==void 0&&(a=void 0),i===void 0?a:i},u&&(s&D)===0)return f;if(l){var N=e.$$legacy;return(function(i,_){return arguments.length>0?((!u||!_||N||O)&&l(_?f():i),i):f()})}var P=!1,c=((s&J)!==0?Q:V)(()=>(P=!1,f()));t&&d(c);var K=h;return(function(i,_){if(arguments.length>0){const m=_?d(c):u&&t?q(i):i;return y(c,m),P=!0,a!==void 0&&(a=m),i}return z&&P||(K.f&C)!==0?c.v:d(c)})}export{ie as a,te as b,fe as l,se as p,ae as r,le as s};
1
+ import{ae as I,m as U,af as j,ag as B,g as d,ah as M,ai as Y,s as y,aj as w,ak as $,al as D,f as q,am as z,an as h,ao as C,ap as G,a7 as Z,aq as F,ar as H,as as J,aa as Q,I as V,at as p,au as E,av as A,aw as W,N as X,ax as g,ay as R}from"./sZJoCX5N.js";let v=!1,S=Symbol();function ie(e,r,s){const n=s[r]??={store:null,source:U(void 0),unsubscribe:I};if(n.store!==e&&!(S in s))if(n.unsubscribe(),n.store=e??null,e==null)n.source.v=void 0,n.unsubscribe=I;else{var u=!0;n.unsubscribe=j(e,t=>{u?n.source.v=t:y(n.source,t)}),u=!1}return e&&S in s?B(e):d(n.source)}function te(){const e={};function r(){M(()=>{for(var s in e)e[s].unsubscribe();Y(e,S,{enumerable:!1,value:!0})})}return[e,r]}function k(e){var r=v;try{return v=!1,[e(),v]}finally{v=r}}const ee={get(e,r){if(!e.exclude.includes(r))return e.props[r]},set(e,r){return!1},getOwnPropertyDescriptor(e,r){if(!e.exclude.includes(r)&&r in e.props)return{enumerable:!0,configurable:!0,value:e.props[r]}},has(e,r){return e.exclude.includes(r)?!1:r in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(r=>!e.exclude.includes(r))}};function ae(e,r,s){return new Proxy({props:e,exclude:r},ee)}const re={get(e,r){if(!e.exclude.includes(r))return d(e.version),r in e.special?e.special[r]():e.props[r]},set(e,r,s){if(!(r in e.special)){var n=h;try{R(e.parent_effect),e.special[r]=se({get[r](){return e.props[r]}},r,D)}finally{R(n)}}return e.special[r](s),g(e.version),!0},getOwnPropertyDescriptor(e,r){if(!e.exclude.includes(r)&&r in e.props)return{enumerable:!0,configurable:!0,value:e.props[r]}},deleteProperty(e,r){return e.exclude.includes(r)||(e.exclude.push(r),g(e.version)),!0},has(e,r){return e.exclude.includes(r)?!1:r in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(r=>!e.exclude.includes(r))}};function fe(e,r){return new Proxy({props:e,exclude:r,special:{},version:X(0),parent_effect:h},re)}const ne={get(e,r){let s=e.props.length;for(;s--;){let n=e.props[s];if(p(n)&&(n=n()),typeof n=="object"&&n!==null&&r in n)return n[r]}},set(e,r,s){let n=e.props.length;for(;n--;){let u=e.props[n];p(u)&&(u=u());const t=w(u,r);if(t&&t.set)return t.set(s),!0}return!1},getOwnPropertyDescriptor(e,r){let s=e.props.length;for(;s--;){let n=e.props[s];if(p(n)&&(n=n()),typeof n=="object"&&n!==null&&r in n){const u=w(n,r);return u&&!u.configurable&&(u.configurable=!0),u}}},has(e,r){if(r===E||r===A)return!1;for(let s of e.props)if(p(s)&&(s=s()),s!=null&&r in s)return!0;return!1},ownKeys(e){const r=[];for(let s of e.props)if(p(s)&&(s=s()),!!s){for(const n in s)r.includes(n)||r.push(n);for(const n of Object.getOwnPropertySymbols(s))r.includes(n)||r.push(n)}return r}};function le(...e){return new Proxy({props:e},ne)}function se(e,r,s,n){var u=!F||(s&H)!==0,t=(s&G)!==0,T=(s&W)!==0,a=n,b=!0,x=()=>(b&&(b=!1,a=T?Z(n):n),a),l;if(t){var L=E in e||A in e;l=w(e,r)?.set??(L&&r in e?i=>e[r]=i:void 0)}var o,O=!1;t?[o,O]=k(()=>e[r]):o=e[r],o===void 0&&n!==void 0&&(o=x(),l&&(u&&$(),l(o)));var f;if(u?f=()=>{var i=e[r];return i===void 0?x():(b=!0,i)}:f=()=>{var i=e[r];return i!==void 0&&(a=void 0),i===void 0?a:i},u&&(s&D)===0)return f;if(l){var N=e.$$legacy;return(function(i,_){return arguments.length>0?((!u||!_||N||O)&&l(_?f():i),i):f()})}var P=!1,c=((s&J)!==0?Q:V)(()=>(P=!1,f()));t&&d(c);var K=h;return(function(i,_){if(arguments.length>0){const m=_?d(c):u&&t?q(i):i;return y(c,m),P=!0,a!==void 0&&(a=m),i}return z&&P||(K.f&C)!==0?c.v:d(c)})}export{ie as a,te as b,fe as l,se as p,ae as r,le as s};
@@ -1 +1 @@
1
- import{s as A}from"./BsdMYUpR.js";import{a as f,s as M,f as x}from"./BJBX4SKZ.js";import{i as k}from"./CrUJgkXY.js";import{p as B,l as u,s as b,d as p,g as o,a as C,c as g,n as N,r as m,b as P,m as _,t as R}from"./e913tUZv.js";import{i as S}from"./D6Lva3KM.js";import{a as Y}from"./Zhai-RNf.js";import{l as v,p as h}from"./iZnTs-Zk.js";const j=()=>{const e=A;return{page:{subscribe:e.page.subscribe},navigating:{subscribe:e.navigating.subscribe},updated:e.updated}},L={subscribe(e){return j().page.subscribe(e)}};var q=x("<title> </title>"),D=x('<svg><!><path d="M17 15 17 8 15 8 15 15 8 15 8 17 15 17 15 24 17 24 17 17 24 17 24 15z"></path></svg>');function O(e,s){const t=v(s,["children","$$slots","$$events","$$legacy"]),w=v(t,["size","title"]);B(s,!1);const a=_(),c=_();let d=h(s,"size",8,16),r=h(s,"title",8,void 0);u(()=>(p(t),p(r())),()=>{b(a,t["aria-label"]||t["aria-labelledby"]||r())}),u(()=>(o(a),p(t)),()=>{b(c,{"aria-hidden":o(a)?void 0:!0,role:o(a)?"img":void 0,focusable:Number(t.tabindex)===0?!0:void 0})}),C(),k();var i=D();Y(i,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:d(),height:d(),...o(c),...w}));var y=g(i);{var z=n=>{var l=q(),$=g(l,!0);m(l),R(()=>M($,r())),f(n,l)};S(y,n=>{r()&&n(z)})}N(),m(i),f(e,i),P()}export{O as A,L as p};
1
+ import{s as A}from"./Ce71etNw.js";import{a as f,s as M,f as x}from"./BdF6nRVd.js";import{i as k}from"./faGDeGnG.js";import{p as B,l as u,s as b,d as p,g as o,a as C,c as g,n as N,r as m,b as P,m as _,t as R}from"./sZJoCX5N.js";import{i as S}from"./BSSN_IAc.js";import{a as Y}from"./BKUmpdNY.js";import{l as v,p as h}from"./DNrFMx27.js";const j=()=>{const e=A;return{page:{subscribe:e.page.subscribe},navigating:{subscribe:e.navigating.subscribe},updated:e.updated}},L={subscribe(e){return j().page.subscribe(e)}};var q=x("<title> </title>"),D=x('<svg><!><path d="M17 15 17 8 15 8 15 15 8 15 8 17 15 17 15 24 17 24 17 17 24 17 24 15z"></path></svg>');function O(e,s){const t=v(s,["children","$$slots","$$events","$$legacy"]),w=v(t,["size","title"]);B(s,!1);const a=_(),c=_();let d=h(s,"size",8,16),r=h(s,"title",8,void 0);u(()=>(p(t),p(r())),()=>{b(a,t["aria-label"]||t["aria-labelledby"]||r())}),u(()=>(o(a),p(t)),()=>{b(c,{"aria-hidden":o(a)?void 0:!0,role:o(a)?"img":void 0,focusable:Number(t.tabindex)===0?!0:void 0})}),C(),k();var i=D();Y(i,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:d(),height:d(),...o(c),...w}));var y=g(i);{var z=n=>{var l=q(),$=g(l,!0);m(l),R(()=>M($,r())),f(n,l)};S(y,n=>{r()&&n(z)})}N(),m(i),f(e,i),P()}export{O as A,L as p};
@@ -1 +1 @@
1
- import{a as c,s as M,f as h}from"./BJBX4SKZ.js";import{i as A}from"./CrUJgkXY.js";import{p as B,l as v,s as u,d as n,g as s,a as C,c as p,n as N,r as m,b as P,m as g,t as R}from"./e913tUZv.js";import{i as Y}from"./D6Lva3KM.js";import{a as k}from"./Zhai-RNf.js";import{l as _,p as b}from"./iZnTs-Zk.js";var D=h("<title> </title>"),U=h('<svg><!><path d="M16 4 6 14 7.41 15.41 15 7.83 15 28 17 28 17 7.83 24.59 15.41 26 14 16 4z"></path></svg>');function K(w,t){const e=_(t,["children","$$slots","$$events","$$legacy"]),x=_(e,["size","title"]);B(t,!1);const a=g(),d=g();let f=b(t,"size",8,16),r=b(t,"title",8,void 0);v(()=>(n(e),n(r())),()=>{u(a,e["aria-label"]||e["aria-labelledby"]||r())}),v(()=>(s(a),n(e)),()=>{u(d,{"aria-hidden":s(a)?void 0:!0,role:s(a)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),C(),A();var i=U();k(i,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:f(),height:f(),...s(d),...x}));var z=p(i);{var $=l=>{var o=D(),y=p(o,!0);m(o),R(()=>M(y,r())),c(l,o)};Y(z,l=>{r()&&l($)})}N(),m(i),c(w,i),P()}var j=h("<title> </title>"),q=h('<svg><!><path d="M24.59 16.59 17 24.17 17 4 15 4 15 24.17 7.41 16.59 6 18 16 28 26 18 24.59 16.59z"></path></svg>');function L(w,t){const e=_(t,["children","$$slots","$$events","$$legacy"]),x=_(e,["size","title"]);B(t,!1);const a=g(),d=g();let f=b(t,"size",8,16),r=b(t,"title",8,void 0);v(()=>(n(e),n(r())),()=>{u(a,e["aria-label"]||e["aria-labelledby"]||r())}),v(()=>(s(a),n(e)),()=>{u(d,{"aria-hidden":s(a)?void 0:!0,role:s(a)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),C(),A();var i=q();k(i,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:f(),height:f(),...s(d),...x}));var z=p(i);{var $=l=>{var o=j(),y=p(o,!0);m(o),R(()=>M(y,r())),c(l,o)};Y(z,l=>{r()&&l($)})}N(),m(i),c(w,i),P()}export{K as A,L as a};
1
+ import{a as c,s as M,f as h}from"./BdF6nRVd.js";import{i as A}from"./faGDeGnG.js";import{p as B,l as v,s as u,d as n,g as s,a as C,c as p,n as N,r as m,b as P,m as g,t as R}from"./sZJoCX5N.js";import{i as Y}from"./BSSN_IAc.js";import{a as k}from"./BKUmpdNY.js";import{l as _,p as b}from"./DNrFMx27.js";var D=h("<title> </title>"),U=h('<svg><!><path d="M16 4 6 14 7.41 15.41 15 7.83 15 28 17 28 17 7.83 24.59 15.41 26 14 16 4z"></path></svg>');function K(w,t){const e=_(t,["children","$$slots","$$events","$$legacy"]),x=_(e,["size","title"]);B(t,!1);const a=g(),d=g();let f=b(t,"size",8,16),r=b(t,"title",8,void 0);v(()=>(n(e),n(r())),()=>{u(a,e["aria-label"]||e["aria-labelledby"]||r())}),v(()=>(s(a),n(e)),()=>{u(d,{"aria-hidden":s(a)?void 0:!0,role:s(a)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),C(),A();var i=U();k(i,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:f(),height:f(),...s(d),...x}));var z=p(i);{var $=l=>{var o=D(),y=p(o,!0);m(o),R(()=>M(y,r())),c(l,o)};Y(z,l=>{r()&&l($)})}N(),m(i),c(w,i),P()}var j=h("<title> </title>"),q=h('<svg><!><path d="M24.59 16.59 17 24.17 17 4 15 4 15 24.17 7.41 16.59 6 18 16 28 26 18 24.59 16.59z"></path></svg>');function L(w,t){const e=_(t,["children","$$slots","$$events","$$legacy"]),x=_(e,["size","title"]);B(t,!1);const a=g(),d=g();let f=b(t,"size",8,16),r=b(t,"title",8,void 0);v(()=>(n(e),n(r())),()=>{u(a,e["aria-label"]||e["aria-labelledby"]||r())}),v(()=>(s(a),n(e)),()=>{u(d,{"aria-hidden":s(a)?void 0:!0,role:s(a)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),C(),A();var i=q();k(i,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:f(),height:f(),...s(d),...x}));var z=p(i);{var $=l=>{var o=j(),y=p(o,!0);m(o),R(()=>M(y,r())),c(l,o)};Y(z,l=>{r()&&l($)})}N(),m(i),c(w,i),P()}export{K as A,L as a};
@@ -1 +1 @@
1
- import{a as n,b as c}from"./BJBX4SKZ.js";import{b as d,c as p}from"./DYvpKXdA.js";import{p as u,b as f}from"./e913tUZv.js";import{a as m}from"./Zhai-RNf.js";import{b}from"./D6Lva3KM.js";import{p as a,r as v}from"./iZnTs-Zk.js";var x=c("<input/>");function P(l,r){u(r,!0);let e=a(r,"ref",15,null),s=a(r,"value",15),i=v(r,["$$slots","$$events","$$legacy","class","ref","value"]);var o=x();m(o,t=>({class:t,...i}),[()=>p("h-8 w-full rounded-md border border-[var(--color-border)] bg-[var(--color-bg)] px-2.5 text-[14px] text-[var(--color-text-primary)] font-[inherit] outline-none transition-colors placeholder:text-[var(--color-text-tertiary)] focus:border-[var(--color-accent,#e05050)] disabled:cursor-not-allowed disabled:opacity-50",r.class)],void 0,void 0,void 0,!0),b(o,t=>e(t),()=>e()),d(o,s),n(l,o),f()}export{P as I};
1
+ import{a as n,b as c}from"./BdF6nRVd.js";import{b as d,c as p}from"./9rXsO0Bz.js";import{p as u,b as f}from"./sZJoCX5N.js";import{a as m}from"./BKUmpdNY.js";import{b}from"./BSSN_IAc.js";import{p as a,r as v}from"./DNrFMx27.js";var x=c("<input/>");function P(l,r){u(r,!0);let e=a(r,"ref",15,null),s=a(r,"value",15),i=v(r,["$$slots","$$events","$$legacy","class","ref","value"]);var o=x();m(o,t=>({class:t,...i}),[()=>p("h-8 w-full rounded-md border border-[var(--color-border)] bg-[var(--color-bg)] px-2.5 text-[14px] text-[var(--color-text-primary)] font-[inherit] outline-none transition-colors placeholder:text-[var(--color-text-tertiary)] focus:border-[var(--color-accent,#e05050)] disabled:cursor-not-allowed disabled:opacity-50",r.class)],void 0,void 0,void 0,!0),b(o,t=>e(t),()=>e()),d(o,s),n(l,o),f()}export{P as I};