studiograph 1.3.44-next.7 → 1.3.44

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 (123) hide show
  1. package/dist/server/chrome/chrome.css +1 -1
  2. package/dist/server/index.js +3 -0
  3. package/dist/server/index.js.map +1 -1
  4. package/dist/server/routes/meeting-ingest-api.d.ts +15 -0
  5. package/dist/server/routes/meeting-ingest-api.js +313 -0
  6. package/dist/server/routes/meeting-ingest-api.js.map +1 -0
  7. package/dist/services/markdown.js +3 -1
  8. package/dist/services/markdown.js.map +1 -1
  9. package/dist/services/sync/model-factory.d.ts +6 -3
  10. package/dist/services/sync/model-factory.js +19 -5
  11. package/dist/services/sync/model-factory.js.map +1 -1
  12. package/dist/web/_app/immutable/assets/0.DdizXOKi.css +1 -0
  13. package/dist/web/_app/immutable/assets/2.n7-yW_Fs.css +1 -0
  14. package/dist/web/_app/immutable/assets/3.BtaZagnv.css +1 -0
  15. package/dist/web/_app/immutable/assets/4.DSiqtN6T.css +1 -0
  16. package/dist/web/_app/immutable/assets/7.CjbDRbuG.css +1 -0
  17. package/dist/web/_app/immutable/assets/8.S1QdUGNM.css +1 -0
  18. package/dist/web/_app/immutable/assets/ViewToolbar.D-QW2oKe.css +1 -0
  19. package/dist/web/_app/immutable/chunks/37NdyH6G.js +32 -0
  20. package/dist/web/_app/immutable/chunks/{DShiqhaV.js → 4Hhzb6pv.js} +1 -1
  21. package/dist/web/_app/immutable/chunks/5aaTorNF.js +1 -0
  22. package/dist/web/_app/immutable/chunks/72bZS3G9.js +1 -0
  23. package/dist/web/_app/immutable/chunks/{i9c_RUF6.js → 7S2LGqoP.js} +2 -2
  24. package/dist/web/_app/immutable/chunks/{CGmpeyEq.js → B8SiwDlA.js} +1 -1
  25. package/dist/web/_app/immutable/chunks/BS2rFAVq.js +1 -0
  26. package/dist/web/_app/immutable/chunks/BSsDC_p4.js +1 -0
  27. package/dist/web/_app/immutable/chunks/BTX2Jr8_.js +1 -0
  28. package/dist/web/_app/immutable/chunks/BdkXdv-_.js +1 -0
  29. package/dist/web/_app/immutable/chunks/BnvLAYp7.js +2 -0
  30. package/dist/web/_app/immutable/chunks/Bsacq2UX.js +1 -0
  31. package/dist/web/_app/immutable/chunks/{idpnkm-U.js → BsapqaT9.js} +1 -1
  32. package/dist/web/_app/immutable/chunks/ByunV8un.js +1 -0
  33. package/dist/web/_app/immutable/chunks/{Dyc1xpsu.js → CDV5Q7RN.js} +1 -1
  34. package/dist/web/_app/immutable/chunks/CJ8__CWt.js +1 -0
  35. package/dist/web/_app/immutable/chunks/CJUKmosC.js +5 -0
  36. package/dist/web/_app/immutable/chunks/{CLFba8FK.js → CSVbGg_b.js} +5 -5
  37. package/dist/web/_app/immutable/chunks/{D5QAs2Bb.js → CT6oIU-C.js} +1 -1
  38. package/dist/web/_app/immutable/chunks/CXH6iFbA.js +1 -0
  39. package/dist/web/_app/immutable/chunks/CmCtpZ1Y.js +1 -0
  40. package/dist/web/_app/immutable/chunks/Cx4YdFMk.js +1 -0
  41. package/dist/web/_app/immutable/chunks/{vNjyIc_f.js → DGbA7IXh.js} +1 -1
  42. package/dist/web/_app/immutable/chunks/DM-YPK2t.js +1 -0
  43. package/dist/web/_app/immutable/chunks/DRO19fCg.js +2 -0
  44. package/dist/web/_app/immutable/chunks/{aCzYRRC_.js → DbbB6Up5.js} +1 -1
  45. package/dist/web/_app/immutable/chunks/DkgM8092.js +1 -0
  46. package/dist/web/_app/immutable/chunks/DtM5cEDu.js +1 -0
  47. package/dist/web/_app/immutable/chunks/J8AGYe-9.js +1 -0
  48. package/dist/web/_app/immutable/chunks/{C-G8n1LM.js → O9Eb9k00.js} +1 -1
  49. package/dist/web/_app/immutable/chunks/{G1IXQHaq.js → QF8MAmnc.js} +1 -1
  50. package/dist/web/_app/immutable/chunks/UjzxCpxn.js +1 -0
  51. package/dist/web/_app/immutable/chunks/{WI8VL4je.js → Y90OgS-9.js} +1 -1
  52. package/dist/web/_app/immutable/chunks/{CyOk_wEk.js → _xj7x2ng.js} +1 -1
  53. package/dist/web/_app/immutable/chunks/{rmAkpimd.js → cLyZlkXv.js} +1 -1
  54. package/dist/web/_app/immutable/chunks/iDtAARVW.js +2 -0
  55. package/dist/web/_app/immutable/chunks/oC_W7W7p.js +1 -0
  56. package/dist/web/_app/immutable/chunks/rJdWIgh-.js +1 -0
  57. package/dist/web/_app/immutable/chunks/tvOsokaa.js +1 -0
  58. package/dist/web/_app/immutable/chunks/uLEXaPwE.js +1 -0
  59. package/dist/web/_app/immutable/chunks/vSaooFHB.js +1 -0
  60. package/dist/web/_app/immutable/chunks/xbI1ujtV.js +1 -0
  61. package/dist/web/_app/immutable/entry/app.BLWSFL3K.js +2 -0
  62. package/dist/web/_app/immutable/entry/start.2wDxC5gH.js +1 -0
  63. package/dist/web/_app/immutable/nodes/0.CLArGAak.js +2 -0
  64. package/dist/web/_app/immutable/nodes/1.C7VaeFca.js +1 -0
  65. package/dist/web/_app/immutable/nodes/10.Bt7vR0zi.js +1 -0
  66. package/dist/web/_app/immutable/nodes/2.2DxFw_16.js +86 -0
  67. package/dist/web/_app/immutable/nodes/3.BPnkssmU.js +1 -0
  68. package/dist/web/_app/immutable/nodes/4.C8az7M-8.js +12 -0
  69. package/dist/web/_app/immutable/nodes/5.DqeRY7D3.js +4 -0
  70. package/dist/web/_app/immutable/nodes/6.DJt8m9cI.js +2 -0
  71. package/dist/web/_app/immutable/nodes/7.XSqorMNB.js +2 -0
  72. package/dist/web/_app/immutable/nodes/8.D4VY0uHj.js +1 -0
  73. package/dist/web/_app/immutable/nodes/9.TJQpPKfF.js +1 -0
  74. package/dist/web/_app/version.json +1 -1
  75. package/dist/web/index.html +11 -11
  76. package/package.json +1 -1
  77. package/dist/web/_app/immutable/assets/0.n3qM-DRk.css +0 -1
  78. package/dist/web/_app/immutable/assets/2.DNpjFx0k.css +0 -1
  79. package/dist/web/_app/immutable/assets/3.zsEg_MDN.css +0 -1
  80. package/dist/web/_app/immutable/assets/4.CjSyz-ka.css +0 -1
  81. package/dist/web/_app/immutable/assets/7.D55lTQ_F.css +0 -1
  82. package/dist/web/_app/immutable/assets/8.C6NPu9Wt.css +0 -1
  83. package/dist/web/_app/immutable/assets/ViewToolbar.Nsd-Xu-e.css +0 -1
  84. package/dist/web/_app/immutable/chunks/4LyimEQJ.js +0 -1
  85. package/dist/web/_app/immutable/chunks/6McgCjyP.js +0 -1
  86. package/dist/web/_app/immutable/chunks/BABAUxHY.js +0 -1
  87. package/dist/web/_app/immutable/chunks/BQ02KrBc.js +0 -1
  88. package/dist/web/_app/immutable/chunks/B_INF4yc.js +0 -1
  89. package/dist/web/_app/immutable/chunks/C6HYnZ9B.js +0 -1
  90. package/dist/web/_app/immutable/chunks/CBG_gV1M.js +0 -1
  91. package/dist/web/_app/immutable/chunks/CO6l7WgA.js +0 -1
  92. package/dist/web/_app/immutable/chunks/CXLBspz2.js +0 -1
  93. package/dist/web/_app/immutable/chunks/CXhc95B3.js +0 -1
  94. package/dist/web/_app/immutable/chunks/Cz70ZXua.js +0 -1
  95. package/dist/web/_app/immutable/chunks/D1C06aMd.js +0 -1
  96. package/dist/web/_app/immutable/chunks/D5-csRKQ.js +0 -2
  97. package/dist/web/_app/immutable/chunks/DG43S1MM.js +0 -1
  98. package/dist/web/_app/immutable/chunks/DGPyrIUy.js +0 -1
  99. package/dist/web/_app/immutable/chunks/DLdmnoGO.js +0 -2
  100. package/dist/web/_app/immutable/chunks/DT0iaiuH.js +0 -5
  101. package/dist/web/_app/immutable/chunks/DYrlFBgr.js +0 -1
  102. package/dist/web/_app/immutable/chunks/DskBjeV5.js +0 -1
  103. package/dist/web/_app/immutable/chunks/DznM_L__.js +0 -1
  104. package/dist/web/_app/immutable/chunks/L0_LR_aH.js +0 -1
  105. package/dist/web/_app/immutable/chunks/Ytolvt5S.js +0 -1
  106. package/dist/web/_app/immutable/chunks/hRv41LAy.js +0 -1
  107. package/dist/web/_app/immutable/chunks/hszZtVwQ.js +0 -1
  108. package/dist/web/_app/immutable/chunks/moYWbUS9.js +0 -1
  109. package/dist/web/_app/immutable/chunks/wFMNws6Z.js +0 -1
  110. package/dist/web/_app/immutable/entry/app.B85ae0iA.js +0 -2
  111. package/dist/web/_app/immutable/entry/start.m_J9aGEq.js +0 -1
  112. package/dist/web/_app/immutable/nodes/0.CQCVk8th.js +0 -2
  113. package/dist/web/_app/immutable/nodes/1.B85CB1ld.js +0 -1
  114. package/dist/web/_app/immutable/nodes/10.Caj-nwDy.js +0 -1
  115. package/dist/web/_app/immutable/nodes/2.DI-wvV6T.js +0 -84
  116. package/dist/web/_app/immutable/nodes/3.CzYTnYto.js +0 -1
  117. package/dist/web/_app/immutable/nodes/4.07tdQ-7s.js +0 -11
  118. package/dist/web/_app/immutable/nodes/5.C6-nBN5N.js +0 -4
  119. package/dist/web/_app/immutable/nodes/6.CHmJ5_Vj.js +0 -2
  120. package/dist/web/_app/immutable/nodes/7.BushPZwR.js +0 -2
  121. package/dist/web/_app/immutable/nodes/8.vUgzOWxy.js +0 -1
  122. package/dist/web/_app/immutable/nodes/9.DYYxoiNa.js +0 -1
  123. /package/dist/web/_app/immutable/assets/{checkbox.D6tMDJWk.css → index.D6tMDJWk.css} +0 -0
@@ -1 +0,0 @@
1
- import{i as z,Y as Q,aG as K,W as P,D as V,aA as Y,j as g,J as W,aH as X,aI as Z,ah as m,aJ as x,aK as ee,aL as se,g as re,aM as ae,aN as te,aO as I,w as H,aP as ie,aQ as fe,S as ue,aR as oe,aS as le}from"./D5QAs2Bb.js";import{B as ce}from"./DG43S1MM.js";import{i as ne,e as ve,d as _e,j as de,n as be,k as he}from"./DLdmnoGO.js";import{t as pe,c as Ae,s as ge}from"./vNjyIc_f.js";function Ue(e,r,...s){var a=new ce(e);z(()=>{const t=r()??null;a.ensure(t,t&&(c=>t(c,...s)))},Q)}function ye(e,r){var s=void 0,a;K(()=>{s!==(s=r())&&(a&&(P(a),a=null),s&&(a=V(()=>{Y(()=>s(e))})))})}function w(e,r={},s,a){for(var t in s){var c=s[t];r[t]!==c&&(s[t]==null?e.style.removeProperty(t):e.style.setProperty(t,c,a))}}function Te(e,r,s,a){var t=e.__style;if(g||t!==r){var c=pe(r,a);(!g||c!==e.getAttribute("style"))&&(c==null?e.removeAttribute("style"):e.style.cssText=c),e.__style=r}else a&&(Array.isArray(a)?(w(e,s?.[0],a[0]),w(e,s?.[1],a[1],"important")):w(e,s,a));return a}function M(e,r,s=!1){if(e.multiple){if(r==null)return;if(!W(r))return X();for(var a of e.options)a.selected=r.includes(j(a));return}for(a of e.options){var t=j(a);if(Z(t,r)){a.selected=!0;return}}(!s||r!==void 0)&&(e.selectedIndex=-1)}function Se(e){var r=new MutationObserver(()=>{M(e,e.__value)});r.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),m(()=>{r.disconnect()})}function j(e){return"__value"in e?e.__value:e.value}const N=Symbol("class"),E=Symbol("style"),$=Symbol("is custom element"),D=Symbol("is html"),Ne=I?"link":"LINK",Ee=I?"input":"INPUT",Ie=I?"option":"OPTION",Le=I?"select":"SELECT",Oe=I?"progress":"PROGRESS";function ke(e){if(g){var r=!1,s=()=>{if(!r){if(r=!0,e.hasAttribute("value")){var a=e.value;O(e,"value",null),e.value=a}if(e.hasAttribute("checked")){var t=e.checked;O(e,"checked",null),e.checked=t}}};e.__on_r=s,ue(s),oe()}}function He(e,r){var s=C(e);s.value===(s.value=r??void 0)||e.value===r&&(r!==0||e.nodeName!==Oe)||(e.value=r??"")}function we(e,r){r?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function O(e,r,s,a){var t=C(e);g&&(t[r]=e.getAttribute(r),r==="src"||r==="srcset"||r==="href"&&e.nodeName===Ne)||t[r]!==(t[r]=s)&&(r==="loading"&&(e[le]=s),s==null?e.removeAttribute(r):typeof s!="string"&&F(e).includes(r)?e[r]=s:e.setAttribute(r,s))}function Pe(e,r,s,a,t=!1,c=!1){if(g&&t&&e.nodeName===Ee){var b=e,k=b.type==="checkbox"?"defaultChecked":"defaultValue";k in s||ke(b)}var h=C(e),_=h[$],p=!h[D];let y=g&&_;y&&H(!1);var u=r||{},T=e.nodeName===Ie;for(var d in r)d in s||(s[d]=null);s.class?s.class=Ae(s.class):(a||s[N])&&(s.class=null),s[E]&&(s.style??=null);var L=F(e);for(const i in s){let f=s[i];if(T&&i==="value"&&f==null){e.value=e.__value="",u[i]=f;continue}if(i==="class"){var S=e.namespaceURI==="http://www.w3.org/1999/xhtml";ge(e,S,f,a,r?.[N],s[N]),u[i]=f,u[N]=s[N];continue}if(i==="style"){Te(e,f,r?.[E],s[E]),u[i]=f,u[E]=s[E];continue}var n=u[i];if(!(f===n&&!(f===void 0&&e.hasAttribute(i)))){u[i]=f;var R=i[0]+i[1];if(R!=="$$")if(R==="on"){const v={},A="$$"+i;let l=i.slice(2);var G=he(l);if(ne(l)&&(l=l.slice(0,-7),v.capture=!0),!G&&n){if(f!=null)continue;e.removeEventListener(l,u[A],v),u[A]=null}if(G)ve(l,e,f),_e([l]);else if(f!=null){let J=function(q){u[i].call(this,q)};u[A]=de(l,e,J,v)}}else if(i==="style")O(e,i,f);else if(i==="autofocus")ie(e,!!f);else if(!_&&(i==="__value"||i==="value"&&f!=null))e.value=e.__value=f;else if(i==="selected"&&T)we(e,f);else{var o=i;p||(o=be(o));var U=o==="defaultValue"||o==="defaultChecked";if(f==null&&!_&&!U)if(h[i]=null,o==="value"||o==="checked"){let v=e;const A=r===void 0;if(o==="value"){let l=v.defaultValue;v.removeAttribute(o),v.defaultValue=l,v.value=v.__value=A?l:null}else{let l=v.defaultChecked;v.removeAttribute(o),v.defaultChecked=l,v.checked=A?l:!1}}else e.removeAttribute(i);else U||L.includes(o)&&(_||typeof f!="string")?(e[o]=f,o in h&&(h[o]=fe)):typeof f!="function"&&O(e,o,f)}}}return y&&H(!0),u}function je(e,r,s=[],a=[],t=[],c,b=!1,k=!1){x(t,s,a,h=>{var _=void 0,p={},y=e.nodeName===Le,u=!1;if(K(()=>{var d=r(...h.map(re)),L=Pe(e,_,d,c,b,k);u&&y&&"value"in d&&M(e,d.value);for(let n of Object.getOwnPropertySymbols(p))d[n]||P(p[n]);for(let n of Object.getOwnPropertySymbols(d)){var S=d[n];n.description===ae&&(!_||S!==_[n])&&(p[n]&&P(p[n]),p[n]=V(()=>ye(e,()=>S))),L[n]=S}_=L}),y){var T=e;Y(()=>{M(T,_.value,!0),Se(T)})}u=!0})}function C(e){return e.__attributes??={[$]:e.nodeName.includes("-"),[D]:e.namespaceURI===ee}}var B=new Map;function F(e){var r=e.getAttribute("is")||e.nodeName,s=B.get(r);if(s)return s;B.set(r,s=[]);for(var a,t=e,c=Element.prototype;c!==t;){a=te(t);for(var b in a)a[b].set&&s.push(b);t=se(t)}return s}export{E as S,je as a,O as b,Te as c,He as d,ke as r,Ue as s};
@@ -1 +0,0 @@
1
- import{e as m,f as w,s as u,g as o,a4 as it}from"./D5QAs2Bb.js";import{a as d}from"./vNjyIc_f.js";function at(){return d("/api/workspace")}function st(e){return d("/api/workspace",{method:"PUT",body:JSON.stringify(e)})}function wt(){return d("/api/workspace/mcp-config")}function D(){return d("/api/repos")}function ct(e,i,s,f){return d("/api/repos",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:e,display_name:i||void 0,description:s,...f?{private:!0}:{}})})}function lt(e,i,s){return d(`/api/repos/${encodeURIComponent(e)}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:i,display_name:s||void 0})})}function ut(e){return d(`/api/repos/${encodeURIComponent(e)}`,{method:"DELETE"})}function dt(){return d("/api/apps")}function pt(e){return d(`/api/repos/${encodeURIComponent(e)}/entities?summary=true`)}function Et(e,i,s){return d(`/api/repos/${encodeURIComponent(e)}/entities/${encodeURIComponent(i)}/${encodeURIComponent(s)}`)}function St(e,i,s,f,c){return d(`/api/repos/${encodeURIComponent(e)}/entities`,{method:"POST",body:JSON.stringify({entityType:i,entityId:s,data:f,content:c})})}function bt(e,i,s){return d(`/api/repos/${encodeURIComponent(e)}/entities/${encodeURIComponent(i)}/${encodeURIComponent(s)}`,{method:"DELETE"})}function It(e,i,s,f){return d(`/api/repos/${encodeURIComponent(e)}/entities/${encodeURIComponent(i)}/${encodeURIComponent(s)}`,{method:"PUT",body:JSON.stringify(f)})}function Tt(e,i,s,f){return d(`/api/repos/${encodeURIComponent(e)}/change-type`,{method:"POST",body:JSON.stringify({entityType:i,entityId:s,newType:f})})}function $t(e,i,s,f,c){return d(`/api/repos/${encodeURIComponent(e)}/transfer`,{method:"POST",body:JSON.stringify({entityType:i,entityId:s,targetRepo:f,mode:c})})}function kt(){return d("/api/insights")}function vt(){return d("/api/insights/generate",{method:"POST"})}function Ut(){return d("/api/preferences")}function Pt(e){return d("/api/preferences",{method:"PUT",body:JSON.stringify(e)})}function Rt(){return d("/api/views")}function At(e,i,s){return d("/api/views",{method:"POST",body:JSON.stringify({name:e,viewType:s??"list",config:i})})}function Lt(e,i){return d(`/api/views/${e}`,{method:"PUT",body:JSON.stringify(i)})}function Ot(e){return d(`/api/views/${e}`,{method:"DELETE"})}function Mt(e){return d(`/api/repos/${encodeURIComponent(e)}/commit`,{method:"POST"})}function ft(e){return e.replace(/-/g," ").replace(/\b\w/g,i=>i.toUpperCase())}function _(e,i){return i||e.split("-").map(s=>s.charAt(0).toUpperCase()+s.slice(1)).join(" ")}const mt="#e05050";function v(e){if(typeof document>"u")return;const i=e||mt,s=parseInt(i.slice(1,3),16),f=parseInt(i.slice(3,5),16),c=parseInt(i.slice(5,7),16),E=[document.documentElement,document.querySelector("[data-theme]")].filter(Boolean);for(const h of E)h.style.setProperty("--color-accent",i),h.style.setProperty("--color-accent-hover",yt(i,15)),h.style.setProperty("--color-accent-muted",`rgba(${s}, ${f}, ${c}, 0.08)`),h.style.setProperty("--color-link",j(i,15)),h.style.setProperty("--color-badge-bg",`rgba(${s}, ${f}, ${c}, 0.1)`),h.style.setProperty("--color-badge-text",j(i,20))}function yt(e,i){const s=Math.max(0,Math.round(parseInt(e.slice(1,3),16)*(1-i/100))),f=Math.max(0,Math.round(parseInt(e.slice(3,5),16)*(1-i/100))),c=Math.max(0,Math.round(parseInt(e.slice(5,7),16)*(1-i/100)));return`#${s.toString(16).padStart(2,"0")}${f.toString(16).padStart(2,"0")}${c.toString(16).padStart(2,"0")}`}function j(e,i){const s=Math.min(255,Math.round(parseInt(e.slice(1,3),16)+(255-parseInt(e.slice(1,3),16))*i/100)),f=Math.min(255,Math.round(parseInt(e.slice(3,5),16)+(255-parseInt(e.slice(3,5),16))*i/100)),c=Math.min(255,Math.round(parseInt(e.slice(5,7),16)+(255-parseInt(e.slice(5,7),16))*i/100));return`#${s.toString(16).padStart(2,"0")}${f.toString(16).padStart(2,"0")}${c.toString(16).padStart(2,"0")}`}function gt(){let e=m(""),i=m(null),s=m(null),f=m(!1),c=m(w([]));const E={};let h=m(w([])),U=m(!1),P=m(null),g=m(w({})),R=w({}),A=w({}),T=w({}),F=m(0),x=m(null),C=m(""),$=null,S=m(0),b=m(0),J=m("alpha");async function W(){u(U,!0),u(P,null),u(S,0),u(b,0);try{const[t,n,r]=await Promise.all([D(),dt().catch(()=>[]),at().catch(()=>({name:""}))]);u(h,n,!0),u(e,r.name,!0),u(i,r.about??null,!0),u(s,r.accent_color??null,!0),u(f,!0),v(o(s)),u(c,t.map(a=>({name:a.name,displayName:_(a.name,a.display_name),type:a.type,private:a.private,sync:a.sync,count:null,entities:[],loading:!1,loaded:!1})),!0),await Promise.all(o(c).map(a=>I(a.name)))}catch(t){u(P,t.message,!0)}finally{u(U,!1)}}function V(t,n,r){const a=o(c).find(l=>l.name===t);a&&(a.entities=a.entities.filter(l=>!(l.id===r&&l.entityType===n)),a.count=a.entities.length)}async function Q(t){o(c).find(r=>r.name===t)&&await I(t,!0)}async function B(){u(S,0),u(b,0),await Promise.all(o(c).map(t=>I(t.name,!0)))}async function I(t,n=!1){const r=o(c).find(l=>l.name===t);if(!r||r.loading||!n&&r.loaded)return;const a=(E[t]??0)+1;E[t]=a,n||(r.loading=!0);try{const l=await pt(t);if(E[t]!==a)return;let y=0,L=0;for(const p of l)y+=p.document?.wikilinks?.length??0,L+=p.subContentCount??0;u(S,o(S)+y),u(b,o(b)+L);const O=new Set(["name","created_at","updated_at"]);r.entities=l.filter(p=>!p.id.toLowerCase().startsWith("readme")).map(p=>({id:p.id,title:p.data?.name??ft(p.id),entityType:p.entityType,repo:t,hasSubContent:!!p.hasSubContent,wikilinks:p.document?.wikilinks??[],createdAt:p.data?.created_at??null,updatedAt:p.data?.updated_at??null,fields:Object.fromEntries(Object.entries(p.data??{}).filter(([M])=>!O.has(M))),status:p.data?.status??void 0,priority:p.data?.priority??void 0,assignee:p.data?.assignee??void 0,dueDate:p.data?.due_date??void 0})).sort((p,M)=>p.title.localeCompare(M.title)),r.count=r.entities.length,r.loaded=!0}catch(l){console.error(`Failed to load entities for ${t}:`,l)}finally{r.loading=!1}}function K(t){o(g)[t]=!o(g)[t]}function q(t){return o(g)[t]??!1}function k(t,n,r){return`${t}/${n}/${r}`}function H(t,n,r){const a=k(t,n,r),l=R[a]??!1;R[a]=!l,!l&&!A[a]?.loaded&&z(t,n,r)}function N(t,n,r){return R[k(t,n,r)]??!1}function Y(t,n,r){return A[k(t,n,r)]??{entries:[],loading:!1,loaded:!1}}async function z(t,n,r){const a=k(t,n,r);A[a]={entries:[],loading:!1,loaded:!0}}function G(t){const n=o(C).trim().toLowerCase();if(!n)return t;const r=[];for(const a of t){const l=a.entities.filter(y=>y.title.toLowerCase().includes(n)||y.id.toLowerCase().includes(n));l.length>0&&r.push({...a,entities:l,count:l.length})}return r}function X(t){if(t&&!o(C)?$={...o(g)}:!t&&o(C)&&$&&(u(g,$,!0),$=null),u(C,t,!0),t){const n=t.trim().toLowerCase();for(const r of o(c)){const a=r.entities.some(l=>l.title.toLowerCase().includes(n)||l.id.toLowerCase().includes(n));o(g)[r.name]=a}}}function Z(t){const n=t.startsWith("type:");T[t]=!(T[t]??n)}function tt(t){return T[t]??!1}function et(t){return T[t]===!1}const nt=it(()=>o(c).reduce((t,n)=>t+(n.count??0),0));function ot(t){return o(h).find(n=>n.entityTypes.includes(t))}function rt(t){v(t||o(s))}return{get name(){return o(e)},get about(){return o(i)},get accentColor(){return o(s)},get nameLoaded(){return o(f)},async updateWorkspace(t){t.accent_color!==void 0&&(u(s,t.accent_color,!0),v(t.accent_color)),await st(t),t.name?.trim()&&u(e,t.name.trim(),!0),typeof t.about=="string"&&u(i,t.about,!0)},get repos(){return o(c)},get apps(){return o(h)},get loading(){return o(U)},get error(){return o(P)},get totalEntities(){return o(nt)},get totalLinks(){return o(S)},get totalFiles(){return o(b)},get hasTasks(){return o(c).some(t=>t.entities.some(n=>n.entityType==="task"))},get sortedRepos(){const t=[...o(c)].sort((n,r)=>n.name.localeCompare(r.name));return G(t)},get filteredIds(){const t=o(C).trim().toLowerCase();if(!t)return null;const n=new Set;for(const r of o(c))for(const a of r.entities)(a.title.toLowerCase().includes(t)||a.id.toLowerCase().includes(t))&&n.add(a.id);return n},get filterQuery(){return o(C)},setFilterQuery:X,get sortMode(){return o(J)},set sortMode(t){u(J,t,!0)},get recentEntities(){const t=o(C).trim().toLowerCase();let n=[];for(const r of o(c))for(const a of r.entities)t&&!a.title.toLowerCase().includes(t)&&!a.id.toLowerCase().includes(t)||n.push(a);return n.sort((r,a)=>{const l=r.updatedAt??"";return(a.updatedAt??"").localeCompare(l)})},get sidebarScrollTop(){return o(F)},set sidebarScrollTop(t){u(F,t,!0)},get lastAutoExpandedFor(){return o(x)},set lastAutoExpandedFor(t){u(x,t,!0)},load:W,loadEntities:I,removeEntity:V,refreshEntities:Q,refreshAll:B,toggleRepo:K,isExpanded:q,toggleEntity:H,isEntityExpanded:N,getEntityContents:Y,toggleFolder:Z,isFolderExpanded:tt,isFolderCollapsed:et,applyUserAccentColor:rt,applyAccentColor:v,getAppForEntityType:ot,async renameCollectionTo(t,n,r){await lt(t,n,r);const a=o(c).find(l=>l.name===t);a&&(a.name=n,a.displayName=r||_(n),o(g)[t]&&(o(g)[n]=!0,delete o(g)[t]))},async removeCollection(t){await ut(t),u(c,o(c).filter(n=>n.name!==t),!0),delete o(g)[t]},async addCollection(t,n,r,a){await ct(t,n,r,a);const l=await D();u(c,l.map(y=>o(c).find(O=>O.name===y.name)??{name:y.name,displayName:_(y.name,y.display_name),type:y.type,private:y.private,count:null,entities:[],loading:!1,loaded:!1}),!0),o(g)[t]=!0,await I(t)}}}const _t=gt();export{Mt as a,kt as b,At as c,Ot as d,Ut as e,Rt as f,vt as g,Et as h,It as i,wt as j,Tt as k,bt as l,St as m,Pt as s,$t as t,Lt as u,_t as w};
@@ -1 +0,0 @@
1
- import{a as p,s as C,f as h}from"./DLdmnoGO.js";import{i as M}from"./WI8VL4je.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"./D5QAs2Bb.js";import{i as P}from"./DG43S1MM.js";import{a as R}from"./hRv41LAy.js";import{l as g,p as b}from"./rmAkpimd.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 +0,0 @@
1
- import{c as I,a as f,b as A,p as ct,o as Qt,s as ut,f as Mt}from"./DLdmnoGO.js";import{J as $t,aL as te,bv as ee,a4 as h,g as s,a2 as Ct,a7 as re,s as g,e as U,p as V,a0 as k,b as E,a3 as ot,c as F,ae as tt,r as B,a6 as se,t as dt,l as It,d as vt,a as ie,n as oe,m as Rt}from"./D5QAs2Bb.js";import{a as W,s as L}from"./hRv41LAy.js";import{i as M}from"./DG43S1MM.js";import{c as et}from"./Cz70ZXua.js";import{p as l,r as j,s as X,l as Ot}from"./rmAkpimd.js";import{b as ne,c as pt}from"./BABAUxHY.js";import{C as ae}from"./BQ02KrBc.js";import{W as le,C as gt,s as nt,w as Y,E as bt,v as lt,N as it,y as yt,X as he,g as ue,B as At,V as Ht,m as Q,c as ft,b,Y as de,Z as ce,t as _t,_ as pe,$,a0 as st,a1 as Tt,a2 as Vt,a3 as Et,a4 as Kt,a5 as qt,a6 as ge,a7 as fe,a8 as ve,a9 as me,x as Ft,O as be,j as ye,aa as Ce,ab as Dt,R as Bt,A as _e,n as J,P as ke,f as we,F as Ne,l as xe}from"./DT0iaiuH.js";import{P as Se,a as Lt}from"./CBG_gV1M.js";import{i as zt}from"./WI8VL4je.js";import{e as Pe}from"./Dyc1xpsu.js";const Ie=[];function Ut(i,t=!1,e=!1){return ht(i,new Map,"",Ie,null,e)}function ht(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($t(i)){var a=Array(i.length);t.set(i,a),o!==null&&t.set(o,a);for(var d=0;d<i.length;d+=1){var m=i[d];d in i&&(a[d]=ht(m,t,e,r,null,u))}return a}if(te(i)===ee){a={},t.set(i,a),o!==null&&t.set(o,a);for(var c of Object.keys(i))a[c]=ht(i[c],t,e,r,null,u);return a}if(i instanceof Date)return structuredClone(i);if(typeof i.toJSON=="function"&&!u)return ht(i.toJSON(),t,e,r,i)}if(i instanceof EventTarget)return i;try{return structuredClone(i)}catch{return i}}const Re={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%)"},Oe=le(Re);class He{#t=()=>{};#e=h(()=>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 Te(i){Ct(()=>re(()=>i()))}const Wt=At({component:"checkbox",parts:["root","group","group-label","input"]}),Yt=new gt("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=nt(this.opts.ref)}addValue(t){if(t&&!this.opts.value.current.includes(t)){const e=[...Ut(this.opts.value.current),t];if(this.opts.value.current=e,Ht(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,!Ht(this.opts.value.current,r)&&this.opts.onValueChange.current(r)}#e=h(()=>({id:this.opts.id.current,role:"group","aria-labelledby":this.labelId,"data-disabled":it(this.opts.disabled.current),[Wt.group]:"",...this.attachment}));get props(){return s(this.#e)}set props(t){g(this.#e,t)}}const Gt=new gt("Checkbox.Root");class kt{static create(t,e=null){return Gt.set(new kt(t,e))}opts;group;#t=h(()=>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=h(()=>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=h(()=>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=h(()=>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=nt(this.opts.ref),this.onkeydown=this.onkeydown.bind(this),this.onclick=this.onclick.bind(this),Y.pre([()=>Ut(this.group?.opts.value.current),()=>this.opts.value.current],([r,o])=>{!r||!o||(this.opts.checked.current=r.includes(o))}),Y.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===bt){t.preventDefault(),this.opts.type.current==="submit"&&t.currentTarget.closest("form")?.requestSubmit();return}t.key===lt&&(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=h(()=>({checked:this.opts.checked.current,indeterminate:this.opts.indeterminate.current}));get snippetProps(){return s(this.#o)}set snippetProps(t){g(this.#o,t)}#n=h(()=>({id:this.opts.id.current,role:"checkbox",type:this.opts.type.current,disabled:this.trueDisabled,"aria-checked":he(this.opts.checked.current,this.opts.indeterminate.current),"aria-required":yt(this.trueRequired),"aria-readonly":yt(this.trueReadonly),"data-disabled":it(this.trueDisabled),"data-readonly":it(this.trueReadonly),"data-state":De(this.opts.checked.current,this.opts.indeterminate.current),[Wt.root]:"",onclick:this.onclick,onkeydown:this.onkeydown,...this.attachment}));get props(){return s(this.#n)}set props(t){g(this.#n,t)}}class wt{static create(){return new wt(Gt.get())}root;#t=h(()=>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=h(()=>!!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){ue(this.root.opts.ref.current)&&this.root.opts.ref.current.focus()}#r=h(()=>({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 De(i,t){return t?"indeterminate":i?"checked":"unchecked"}var Me=A("<input/>"),Ae=A("<input/>");function Jt(i,t){V(t,!0);let e=l(t,"value",15),r=j(t,["$$slots","$$events","$$legacy","value"]);const o=h(()=>Q(r,{"aria-hidden":"true",tabindex:-1,style:Oe}));var u=I(),n=k(u);{var a=m=>{var c=Me();W(c,()=>({...s(o),value:e()}),void 0,void 0,void 0,void 0,!0),f(m,c)},d=m=>{var c=Ae();W(c,()=>({...s(o)}),void 0,void 0,void 0,void 0,!0),ne(c,e),f(m,c)};M(n,m=>{s(o).type==="checkbox"?m(a):m(d,!1)})}f(i,u),E()}function Ve(i,t){V(t,!1);const e=wt.create();zt();var r=I(),o=k(r);{var u=n=>{Jt(n,X(()=>e.props))};M(o,n=>{e.shouldRender&&n(u)})}f(i,r),E()}var Ee=A("<button><!></button>"),Ke=A("<!> <!>",1);function qe(i,t){const e=ct();V(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),d=l(t,"value",3,"on"),m=l(t,"id",19,()=>ft(e)),c=l(t,"indeterminate",15,!1),p=l(t,"type",3,"button"),y=j(t,["$$slots","$$events","$$legacy","checked","ref","onCheckedChange","children","disabled","required","name","value","id","indeterminate","onIndeterminateChange","child","type","readonly"]);const w=Yt.getOr(null);w&&d()&&(w.opts.value.current.includes(d())?r(!0):r(!1)),Y.pre(()=>d(),()=>{w&&d()&&(w.opts.value.current.includes(d())?r(!0):r(!1))});const R=kt.create({checked:b(()=>r(),P=>{r(P),t.onCheckedChange?.(P)}),disabled:b(()=>u()??!1),required:b(()=>n()),name:b(()=>a()),value:b(()=>d()),id:b(()=>m()),ref:b(()=>o(),P=>o(P)),indeterminate:b(()=>c(),P=>{c(P),t.onIndeterminateChange?.(P)}),type:b(()=>p()),readonly:b(()=>!!t.readonly)},w),O=h(()=>Q({...y},R.props));var S=Ke(),C=k(S);{var v=P=>{var D=I(),N=k(D);{let K=h(()=>({props:s(O),...R.snippetProps}));L(N,()=>t.child,()=>s(K))}f(P,D)},_=P=>{var D=Ee();W(D,()=>({...s(O)}));var N=F(D);L(N,()=>t.children??tt,()=>R.snippetProps),B(D),f(P,D)};M(C,P=>{t.child?P(v):P(_,!1)})}var x=ot(C,2);Ve(x,{}),f(i,S),E()}class Fe{#t;#e=h(()=>this.#t.candidateValues());#r;constructor(t){this.#t=t,this.#r=de("",{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=ce(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 Be=[st,Vt,Et],Le=[$,Kt,qt],ze=[...Be,...Le],Ue=At({component:"select",parts:["trigger","content","item","viewport","scroll-up-button","scroll-down-button","group","group-label","separator","arrow","input","content-wrapper","item-text","value"]}),at=new gt("Select.Root | Combobox.Root"),We=new gt("Select.Content | Combobox.Content");class Xt{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=h(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-value"):null);get highlightedValue(){return s(this.#a)}set highlightedValue(t){g(this.#a,t)}#l=h(()=>{if(this.highlightedNode)return this.highlightedNode.id});get highlightedId(){return s(this.#l)}set highlightedId(t){g(this.#l,t)}#h=h(()=>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 _t(()=>null);constructor(t){this.opts=t,this.isCombobox=t.isCombobox,this.contentPresence=new _e({ref:b(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),se(()=>{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=>Ue.getAttr(t,this.isCombobox?"combobox":void 0)}class Ye extends Xt{opts;isMulti=!1;#t=h(()=>this.opts.value.current!=="");get hasValue(){return s(this.#t)}set hasValue(t){g(this.#t,t)}#e=h(()=>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=h(()=>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=h(()=>!(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,Ct(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),Y(()=>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(){Bt(()=>{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 Xt{opts;isMulti=!0;#t=h(()=>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,Ct(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),Y(()=>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(){Bt(()=>{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 Ye(r):new je(r);return at.set(o)}}class Nt{static create(t){return new Nt(t,at.get())}opts;root;attachment;#t;#e;constructor(t,e){this.opts=t,this.root=e,this.attachment=nt(t.ref,r=>this.root.triggerNode=r),this.root.domContext=new _t(t.ref),this.#t=new pe({getCurrentItem:()=>this.root.highlightedNode,onMatch:r=>{this.root.setHighlightedNode(r)},getActiveElement:()=>this.root.domContext.getActiveElement(),getWindow:()=>this.root.domContext.getWindow()}),this.#e=new Fe({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===st)&&t.preventDefault(),!this.root.opts.open.current){if(t.key===bt||t.key===lt||t.key===st||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===st){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===Tt){this.root.handleClose();return}if((t.key===bt||t.key===lt&&this.#t.search==="")&&!t.isComposing&&(t.preventDefault(),this.#i()))return;if(t.key===$&&t.altKey&&this.root.handleClose(),ze.includes(t.key)){t.preventDefault();const n=this.root.getCandidateNodes(),a=this.root.highlightedNode,d=a?n.indexOf(a):-1,m=this.root.opts.loop.current;let c;if(t.key===st?c=ge(n,d,m):t.key===$?c=fe(n,d,m):t.key===Kt?c=ve(n,d,10,m):t.key===Vt?c=me(n,d,10,m):t.key===Et?c=n[0]:t.key===qt&&(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===lt,u=this.root.getCandidateNodes();if(t.key!==Tt){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=h(()=>({id:this.opts.id.current,disabled:this.root.opts.disabled.current?!0:void 0,"aria-haspopup":"listbox","aria-expanded":yt(this.root.opts.open.current),"aria-activedescendant":this.root.highlightedId,"data-state":Ft(this.root.opts.open.current),"data-disabled":it(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 xt{static create(t){return We.set(new xt(t,at.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=nt(t.ref,r=>this.root.contentNode=r),this.domContext=new _t(this.opts.ref),this.root.domContext===null&&(this.root.domContext=this.domContext),be(()=>{this.root.contentNode=null,this.isPositioned=!1}),Y(()=>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=h(()=>ye(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=h(()=>({open:this.root.opts.open.current}));get snippetProps(){return s(this.#r)}set snippetProps(t){g(this.#r,t)}#s=h(()=>({id:this.opts.id.current,role:"listbox","aria-multiselectable":this.root.isMulti?"true":void 0,"data-state":Ft(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 St{static create(t){return new St(t,at.get())}opts;root;attachment;#t=h(()=>this.root.includesItem(this.opts.value.current));get isSelected(){return s(this.#t)}set isSelected(t){g(this.#t,t)}#e=h(()=>this.root.highlightedValue===this.opts.value.current);get isHighlighted(){return s(this.#e)}set isHighlighted(t){g(this.#e,t)}prevHighlighted=new He(()=>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=nt(t.ref),Y([()=>this.isHighlighted,()=>this.prevHighlighted.current],()=>{this.isHighlighted?this.opts.onHighlight.current():this.prevHighlighted.current&&this.opts.onUnhighlight.current()}),Y(()=>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=h(()=>({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"&&!Ce){Qt(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=h(()=>({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":it(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 Pt{static create(t){return new Pt(t,at.get())}opts;root;#t=h(()=>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=h(()=>({disabled:Dt(this.root.opts.disabled.current),required:Dt(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 mt(i,t){V(t,!0);let e=l(t,"value",15);const r=Pt.create({value:b(()=>e())});var o=I(),u=k(o);{var n=a=>{Jt(a,X(()=>r.props,{get autocomplete(){return t.autocomplete},get value(){return e()},set value(d){e(d)}}))};M(u,a=>{r.shouldRender&&a(n)})}f(i,o),E()}var Je=A("<div><div><!></div></div>"),Xe=A("<div><div><!></div></div>");function Ze(i,t){const e=ct();V(t,!0);let r=l(t,"id",19,()=>ft(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),d=l(t,"onEscapeKeydown",3,J),m=l(t,"preventScroll",3,!1),c=j(t,["$$slots","$$events","$$legacy","id","ref","forceMount","side","onInteractOutside","onEscapeKeydown","children","child","preventScroll","style"]);const p=xt.create({id:b(()=>r()),ref:b(()=>o(),C=>o(C)),onInteractOutside:b(()=>a()),onEscapeKeydown:b(()=>d())}),y=h(()=>Q(c,p.props));var w=I(),R=k(w);{var O=C=>{ke(C,X(()=>s(y),()=>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 m()},forceMount:!0,get shouldRender(){return p.shouldRender},popper:(_,x)=>{let P=()=>x?.().props,D=()=>x?.().wrapperProps;const N=h(()=>Q(P(),{style:p.props.style},{style:t.style}));var K=I(),G=k(K);{var Z=H=>{var T=I(),q=k(T);{let z=h(()=>({props:s(N),wrapperProps:D(),...p.snippetProps}));L(q,()=>t.child,()=>s(z))}f(H,T)},rt=H=>{var T=Je();W(T,()=>({...D()}));var q=F(T);W(q,()=>({...s(N)}));var z=F(q);L(z,()=>t.children??tt),B(q),B(T),f(H,T)};M(G,H=>{t.child?H(Z):H(rt,!1)})}f(_,K)},$$slots:{popper:!0}}))},S=C=>{we(C,X(()=>s(y),()=>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 m()},forceMount:!1,get shouldRender(){return p.shouldRender},popper:(_,x)=>{let P=()=>x?.().props,D=()=>x?.().wrapperProps;const N=h(()=>Q(P(),{style:p.props.style},{style:t.style}));var K=I(),G=k(K);{var Z=H=>{var T=I(),q=k(T);{let z=h(()=>({props:s(N),wrapperProps:D(),...p.snippetProps}));L(q,()=>t.child,()=>s(z))}f(H,T)},rt=H=>{var T=Xe();W(T,()=>({...D()}));var q=F(T);W(q,()=>({...s(N)}));var z=F(q);L(z,()=>t.children??tt),B(q),B(T),f(H,T)};M(G,H=>{t.child?H(Z):H(rt,!1)})}f(_,K)},$$slots:{popper:!0}}))};M(R,C=>{u()?C(O):u()||C(S,1)})}f(i,w),E()}function Qe(i,t){V(t,!0);let e=l(t,"mounted",15,!1),r=l(t,"onMountedChange",3,J);Te(()=>(e(!0),r()(!0),()=>{e(!1),r()(!1)})),E()}var $e=A("<div><!></div>"),tr=A("<!> <!>",1);function er(i,t){const e=ct();V(t,!0);let r=l(t,"id",19,()=>ft(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),d=l(t,"onUnhighlight",3,J),m=j(t,["$$slots","$$events","$$legacy","id","ref","value","label","disabled","children","child","onHighlight","onUnhighlight"]);const c=St.create({id:b(()=>r()),ref:b(()=>o(),C=>o(C)),value:b(()=>t.value),disabled:b(()=>n()),label:b(()=>u()),onHighlight:b(()=>a()),onUnhighlight:b(()=>d())}),p=h(()=>Q(m,c.props));var y=tr(),w=k(y);{var R=C=>{var v=I(),_=k(v);{let x=h(()=>({props:s(p),...c.snippetProps}));L(_,()=>t.child,()=>s(x))}f(C,v)},O=C=>{var v=$e();W(v,()=>({...s(p)}));var _=F(v);L(_,()=>t.children??tt,()=>c.snippetProps),B(v),f(C,v)};M(w,C=>{t.child?C(R):C(O,!1)})}var S=ot(w,2);Qe(S,{get mounted(){return c.mounted},set mounted(C){c.mounted=C}}),f(i,y),E()}var rr=A("<!> <!>",1);function sr(i,t){V(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),d=l(t,"onOpenChangeComplete",3,J),m=l(t,"loop",3,!1),c=l(t,"scrollAlignment",3,"nearest"),p=l(t,"required",3,!1),y=l(t,"items",19,()=>[]),w=l(t,"allowDeselect",3,!1);function R(){e()===void 0&&e(t.type==="single"?"":[])}R(),Y.pre(()=>e(),()=>{R()});let O=U("");const S=Ge.create({type:t.type,value:b(()=>e(),N=>{e(N),r()(N)}),disabled:b(()=>u()),required:b(()=>p()),open:b(()=>n(),N=>{n(N),a()(N)}),loop:b(()=>m()),scrollAlignment:b(()=>c()),name:b(()=>o()),isCombobox:!1,items:b(()=>y()),allowDeselect:b(()=>w()),inputValue:b(()=>s(O),N=>g(O,N,!0)),onOpenChangeComplete:b(()=>d())});var C=rr(),v=k(C);Ne(v,{children:(N,K)=>{var G=I(),Z=k(G);L(Z,()=>t.children??tt),f(N,G)},$$slots:{default:!0}});var _=ot(v,2);{var x=N=>{var K=I(),G=k(K);{var Z=H=>{mt(H,{get autocomplete(){return t.autocomplete}})},rt=H=>{var T=I(),q=k(T);Pe(q,16,()=>S.opts.value.current,z=>z,(z,Zt)=>{mt(z,{get value(){return Zt},get autocomplete(){return t.autocomplete}})}),f(H,T)};M(G,H=>{S.opts.value.current.length===0?H(Z):H(rt,!1)})}f(N,K)},P=h(()=>Array.isArray(S.opts.value.current)),D=N=>{mt(N,{get autocomplete(){return t.autocomplete},get value(){return S.opts.value.current},set value(K){S.opts.value.current=K}})};M(_,N=>{s(P)?N(x):N(D,!1)})}f(i,C),E()}var ir=A("<button><!></button>");function or(i,t){const e=ct();V(t,!0);let r=l(t,"id",19,()=>ft(e)),o=l(t,"ref",15,null),u=l(t,"type",3,"button"),n=j(t,["$$slots","$$events","$$legacy","id","ref","child","children","type"]);const a=Nt.create({id:b(()=>r()),ref:b(()=>o(),p=>o(p))}),d=h(()=>Q(n,a.props,{type:u()}));var m=I(),c=k(m);et(c,()=>xe,(p,y)=>{y(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);L(P,()=>t.child,()=>({props:s(d)})),f(_,x)},v=_=>{var x=ir();W(x,()=>({...s(d)}));var P=F(x);L(P,()=>t.children??tt),B(x),f(_,x)};M(S,_=>{t.child?_(C):_(v,!1)})}f(w,O)},$$slots:{default:!0}})}),f(i,m),E()}var nr=A("<span> </span>"),ar=A('<span class="select-placeholder"> </span>'),lr=A("<!> <!>",1);function Sr(i,t){V(t,!0);let e=l(t,"placeholder",3,"Select..."),r=l(t,"size",3,"default"),o=j(t,["$$slots","$$events","$$legacy","children","value","placeholder","class","size"]);var u=I(),n=k(u);{let a=h(()=>pt("select-trigger",r()==="sm"&&"select-trigger-sm",t.class));et(n,()=>or,(d,m)=>{m(d,X({get class(){return s(a)}},()=>o,{children:(c,p)=>{var y=lr(),w=k(y);{var R=v=>{var _=I(),x=k(_);L(x,()=>t.children),f(v,_)},O=v=>{var _=nr(),x=F(_,!0);B(_),dt(()=>ut(x,t.value)),f(v,_)},S=v=>{var _=ar(),x=F(_,!0);B(_),dt(()=>ut(x,e())),f(v,_)};M(w,v=>{t.children?v(R):t.value?v(O,1):v(S,!1)})}var C=ot(w,2);{let v=h(()=>r()==="sm"?12:14);ae(C,{get size(){return s(v)},class:"select-chevron"})}f(c,y)},$$slots:{default:!0}}))})}f(i,u),E()}function Pr(i,t){V(t,!0);let e=l(t,"side",3,"bottom"),r=l(t,"sideOffset",3,4),o=j(t,["$$slots","$$events","$$legacy","children","class","side","sideOffset"]);var u=I(),n=k(u);et(n,()=>Se,(a,d)=>{d(a,{children:(m,c)=>{var p=I(),y=k(p);{let w=h(()=>pt("select-content",t.class));et(y,()=>Ze,(R,O)=>{O(R,X({get class(){return s(w)},get side(){return e()},get sideOffset(){return r()}},()=>o,{children:(S,C)=>{var v=I(),_=k(v);L(_,()=>t.children),f(S,v)},$$slots:{default:!0}}))})}f(m,p)},$$slots:{default:!0}})}),f(i,u),E()}var hr=A('<span class="select-item-text"> </span> <!>',1);function Ir(i,t){V(t,!0);let e=l(t,"disabled",3,!1),r=j(t,["$$slots","$$events","$$legacy","value","label","disabled","class"]);var o=I(),u=k(o);{const n=(d,m)=>{let c=()=>m?.().selected;var p=hr(),y=k(p),w=F(y,!0);B(y);var R=ot(y,2);{var O=S=>{Lt(S,{size:12,class:"select-item-check"})};M(R,S=>{c()&&S(O)})}dt(()=>ut(w,t.label??t.value)),f(d,p)};let a=h(()=>pt("select-item",t.class));et(u,()=>er,(d,m)=>{m(d,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),E()}const Rr=sr;var ur=Mt("<title> </title>"),dr=Mt('<svg><!><path d="M8 15H24V17H8z"></path></svg>');function cr(i,t){const e=Ot(t,["children","$$slots","$$events","$$legacy"]),r=Ot(e,["size","title"]);V(t,!1);const o=Rt(),u=Rt();let n=l(t,"size",8,16),a=l(t,"title",8,void 0);It(()=>(vt(e),vt(a())),()=>{g(o,e["aria-label"]||e["aria-labelledby"]||a())}),It(()=>(s(o),vt(e)),()=>{g(u,{"aria-hidden":s(o)?void 0:!0,role:s(o)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),ie(),zt();var d=dr();W(d,()=>({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 m=F(d);{var c=p=>{var y=ur(),w=F(y,!0);B(y),dt(()=>ut(w,a())),f(p,y)};M(m,p=>{a()&&p(c)})}oe(),B(d),f(i,d),E()}var pr=A('<span class="flex items-center justify-center text-current"><!></span>');function Or(i,t){V(t,!0);let e=l(t,"checked",15,!1),r=l(t,"indeterminate",15,!1),o=l(t,"ref",15,null),u=j(t,["$$slots","$$events","$$legacy","class","checked","indeterminate","ref"]);var n=I(),a=k(n);{const d=(c,p)=>{let y=()=>p?.().checked,w=()=>p?.().indeterminate;var R=pr(),O=F(R);{var S=v=>{cr(v,{class:"size-3"})},C=v=>{Lt(v,{class:"size-3"})};M(O,v=>{w()?v(S):y()&&v(C,1)})}B(R),f(c,R)};let m=h(()=>pt("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));et(a,()=>qe,(c,p)=>{p(c,X({get class(){return s(m)}},()=>u,{get checked(){return e()},set checked(y){e(y)},get indeterminate(){return r()},set indeterminate(y){r(y)},get ref(){return o()},set ref(y){o(y)},children:d,$$slots:{default:!0}}))})}f(i,n),E()}export{Or as C,Rr as R,Sr as S,Pr as a,Ir as b,jt as c,Ut as s};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.CQCVk8th.js","../chunks/PPVm8Dsz.js","../chunks/DLdmnoGO.js","../chunks/D5QAs2Bb.js","../chunks/DG43S1MM.js","../chunks/hRv41LAy.js","../chunks/vNjyIc_f.js","../chunks/L0_LR_aH.js","../chunks/CyOk_wEk.js","../chunks/hszZtVwQ.js","../chunks/DShiqhaV.js","../chunks/aCzYRRC_.js","../chunks/D5-csRKQ.js","../chunks/CGmpeyEq.js","../chunks/6McgCjyP.js","../chunks/rmAkpimd.js","../chunks/DYrlFBgr.js","../chunks/Dyc1xpsu.js","../chunks/Cz70ZXua.js","../chunks/WI8VL4je.js","../assets/Toaster.rN8r_Hzv.css","../chunks/G1IXQHaq.js","../assets/0.n3qM-DRk.css","../nodes/1.B85CB1ld.js","../nodes/2.DI-wvV6T.js","../chunks/Ytolvt5S.js","../chunks/CBG_gV1M.js","../chunks/DT0iaiuH.js","../chunks/BQ02KrBc.js","../chunks/CdeYcEuU.js","../chunks/D1C06aMd.js","../chunks/CXLBspz2.js","../chunks/DGPyrIUy.js","../chunks/4LyimEQJ.js","../chunks/BABAUxHY.js","../chunks/C-G8n1LM.js","../chunks/C6HYnZ9B.js","../assets/Copy.FS8bdfxr.css","../chunks/DznM_L__.js","../chunks/idpnkm-U.js","../assets/2.DNpjFx0k.css","../nodes/3.CzYTnYto.js","../chunks/CO6l7WgA.js","../assets/ViewToolbar.Nsd-Xu-e.css","../assets/3.zsEg_MDN.css","../nodes/4.07tdQ-7s.js","../chunks/CXhc95B3.js","../chunks/moYWbUS9.js","../chunks/CqkleIqs.js","../assets/4.CjSyz-ka.css","../nodes/5.C6-nBN5N.js","../assets/5.DFeGxLYf.css","../nodes/6.CHmJ5_Vj.js","../assets/6.CquhUpOu.css","../nodes/7.BushPZwR.js","../chunks/wFMNws6Z.js","../assets/checkbox.D6tMDJWk.css","../assets/7.D55lTQ_F.css","../nodes/8.vUgzOWxy.js","../assets/8.C6NPu9Wt.css","../nodes/9.DYYxoiNa.js","../assets/9.CT4xL4K3.css","../nodes/10.Caj-nwDy.js","../assets/10.BUrHkYry.css"])))=>i.map(i=>d[i]);
2
- import{_ as i}from"../chunks/PPVm8Dsz.js";import{s as I,av as $,g as m,aC as tt,ai as et,m as rt,p as at,a6 as st,a2 as ot,aD as nt,aE as it,a0 as v,a3 as mt,b as ct,e as j,a4 as O,c as ut,r as _t,t as dt}from"../chunks/D5QAs2Bb.js";import{h as lt,m as ft,u as vt,a as _,c as E,b as Y,t as gt,s as ht}from"../chunks/DLdmnoGO.js";import{i as D,b as R}from"../chunks/DG43S1MM.js";import{c as A}from"../chunks/Cz70ZXua.js";import{p as L}from"../chunks/rmAkpimd.js";function Et(s){return class extends pt{constructor(t){super({component:s,...t})}}}class pt{#e;#t;constructor(t){var a=new Map,c=(r,e)=>{var u=rt(e,!1,!1);return a.set(r,u),u};const n=new Proxy({...t.props||{},$$events:{}},{get(r,e){return m(a.get(e)??c(e,Reflect.get(r,e)))},has(r,e){return e===$?!0:(m(a.get(e)??c(e,Reflect.get(r,e))),Reflect.has(r,e))},set(r,e,u){return I(a.get(e)??c(e,u),u),Reflect.set(r,e,u)}});this.#t=(t.hydrate?lt:ft)(t.component,{target:t.target,anchor:t.anchor,props:n,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&tt(),this.#e=n.$$events;for(const r of Object.keys(this.#t))r==="$set"||r==="$destroy"||r==="$on"||et(this,r,{get(){return this.#t[r]},set(e){this.#t[r]=e},enumerable:!0});this.#t.$set=r=>{Object.assign(n,r)},this.#t.$destroy=()=>{vt(this.#t)}}$set(t){this.#t.$set(t)}$on(t,a){this.#e[t]=this.#e[t]||[];const c=(...n)=>a.call(this,...n);return this.#e[t].push(c),()=>{this.#e[t]=this.#e[t].filter(n=>n!==c)}}$destroy(){this.#t.$destroy()}}const wt={};var yt=Y('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),Pt=Y("<!> <!>",1);function bt(s,t){at(t,!0);let a=L(t,"components",23,()=>[]),c=L(t,"data_0",3,null),n=L(t,"data_1",3,null),r=L(t,"data_2",3,null);st(()=>t.stores.page.set(t.page)),ot(()=>{t.stores,t.page,t.constructors,a(),t.form,c(),n(),r(),t.stores.page.notify()});let e=j(!1),u=j(!1),k=j(null);nt(()=>{const o=t.stores.page.subscribe(()=>{m(e)&&(I(u,!0),it().then(()=>{I(k,document.title||"untitled page",!0)}))});return I(e,!0),o});const z=O(()=>t.constructors[2]);var C=Pt(),S=v(C);{var B=o=>{const d=O(()=>t.constructors[0]);var l=E(),p=v(l);A(p,()=>m(d),(f,g)=>{R(g(f,{get data(){return c()},get form(){return t.form},get params(){return t.page.params},children:(y,Rt)=>{var M=E(),K=v(M);{var N=h=>{const T=O(()=>t.constructors[1]);var P=E(),V=v(P);A(V,()=>m(T),(x,w)=>{R(w(x,{get data(){return n()},get form(){return t.form},get params(){return t.page.params},children:(b,At)=>{var G=E(),U=v(G);A(U,()=>m(z),(W,X)=>{R(X(W,{get data(){return r()},get form(){return t.form},get params(){return t.page.params}}),Z=>a()[2]=Z,()=>a()?.[2])}),_(b,G)},$$slots:{default:!0}}),b=>a()[1]=b,()=>a()?.[1])}),_(h,P)},Q=h=>{const T=O(()=>t.constructors[1]);var P=E(),V=v(P);A(V,()=>m(T),(x,w)=>{R(w(x,{get data(){return n()},get form(){return t.form},get params(){return t.page.params}}),b=>a()[1]=b,()=>a()?.[1])}),_(h,P)};D(K,h=>{t.constructors[2]?h(N):h(Q,!1)})}_(y,M)},$$slots:{default:!0}}),y=>a()[0]=y,()=>a()?.[0])}),_(o,l)},F=o=>{const d=O(()=>t.constructors[0]);var l=E(),p=v(l);A(p,()=>m(d),(f,g)=>{R(g(f,{get data(){return c()},get form(){return t.form},get params(){return t.page.params}}),y=>a()[0]=y,()=>a()?.[0])}),_(o,l)};D(S,o=>{t.constructors[1]?o(B):o(F,!1)})}var H=mt(S,2);{var J=o=>{var d=yt(),l=ut(d);{var p=f=>{var g=gt();dt(()=>ht(g,m(k))),_(f,g)};D(l,f=>{m(u)&&f(p)})}_t(d),_(o,d)};D(H,o=>{m(e)&&o(J)})}_(s,C),ct()}const jt=Et(bt),kt=[()=>i(()=>import("../nodes/0.CQCVk8th.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22]),import.meta.url),()=>i(()=>import("../nodes/1.B85CB1ld.js"),__vite__mapDeps([23,2,3,19,8]),import.meta.url),()=>i(()=>import("../nodes/2.DI-wvV6T.js"),__vite__mapDeps([24,2,3,5,4,6,1,17,18,8,19,15,25,26,27,28,9,10,11,29,30,31,21,32,12,33,34,35,36,37,38,39,40]),import.meta.url),()=>i(()=>import("../nodes/3.CzYTnYto.js"),__vite__mapDeps([41,2,3,4,17,5,6,34,15,8,42,18,19,31,27,10,9,13,43,14,21,30,44]),import.meta.url),()=>i(()=>import("../nodes/4.07tdQ-7s.js"),__vite__mapDeps([45,9,3,6,1,2,4,17,18,15,8,46,19,5,42,34,31,27,10,13,43,29,32,26,12,11,33,47,48,25,39,49]),import.meta.url),()=>i(()=>import("../nodes/5.C6-nBN5N.js"),__vite__mapDeps([50,9,3,6,2,4,8,10,51]),import.meta.url),()=>i(()=>import("../nodes/6.CHmJ5_Vj.js"),__vite__mapDeps([52,2,3,42,5,4,6,17,18,34,15,8,19,31,27,10,9,13,43,1,29,39,53]),import.meta.url),()=>i(()=>import("../nodes/7.BushPZwR.js"),__vite__mapDeps([54,2,3,15,46,8,19,4,5,6,26,27,17,18,55,34,28,56,33,36,37,35,14,9,1,11,21,10,57]),import.meta.url),()=>i(()=>import("../nodes/8.vUgzOWxy.js"),__vite__mapDeps([58,2,3,4,42,5,6,17,18,34,15,8,19,31,27,10,9,13,43,29,38,26,25,55,28,56,35,47,59]),import.meta.url),()=>i(()=>import("../nodes/9.DYYxoiNa.js"),__vite__mapDeps([60,2,3,4,7,8,11,6,34,5,15,35,61]),import.meta.url),()=>i(()=>import("../nodes/10.Caj-nwDy.js"),__vite__mapDeps([62,2,3,4,7,8,11,6,9,34,5,15,35,63]),import.meta.url)],Ct=[],St={"/(app)":[3,[2]],"/(app)/graph":[6,[2]],"/login":[9],"/(app)/settings":[7,[2]],"/setup":[10],"/(app)/views/[id]":[8,[2]],"/(app)/[repo]/[type]/[id]":[4,[2]],"/(app)/[repo]/[type]/[id]/edit":[5,[2]]},q={handleError:(({error:s})=>{console.error(s)}),reroute:(()=>{}),transport:{}},Ot=Object.fromEntries(Object.entries(q.transport).map(([s,t])=>[s,t.decode])),Mt=Object.fromEntries(Object.entries(q.transport).map(([s,t])=>[s,t.encode])),Gt=!1,Yt=(s,t)=>Ot[s](t);export{Yt as decode,Ot as decoders,St as dictionary,Mt as encoders,Gt as hash,q as hooks,wt as matchers,kt as nodes,jt as root,Ct as server_loads};
@@ -1 +0,0 @@
1
- import{l as o,a as r}from"../chunks/CyOk_wEk.js";export{o as load_css,r as start};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../chunks/idpnkm-U.js","../chunks/D5QAs2Bb.js","../chunks/CyOk_wEk.js","../chunks/DShiqhaV.js","../chunks/hszZtVwQ.js","../chunks/vNjyIc_f.js","../chunks/BB_5th5W.js","../chunks/PPVm8Dsz.js","../chunks/CqkleIqs.js","../chunks/DnL9f0lc.js","../chunks/CX_61fY8.js","../chunks/CscoF-YL.js","../chunks/D7ZqAKi9.js","../chunks/C7VoTosa.js","../chunks/CrdV0ttd.js"])))=>i.map(i=>d[i]);
2
- import{_ as A}from"../chunks/PPVm8Dsz.js";import{a as _,s as T,f as z,b as te,c as ae}from"../chunks/DLdmnoGO.js";import{p as E,l as $,s,d as f,g as t,a as V,c as w,n as k,r as M,b as P,m as x,t as C,a1 as re,e as O,f as B,aX as j,a2 as N,aD as oe,a3 as ie,ac as ne,ad as le,a0 as se}from"../chunks/D5QAs2Bb.js";import{i as R}from"../chunks/DG43S1MM.js";import{a as D,b as de,s as ce}from"../chunks/hRv41LAy.js";import{h as ue}from"../chunks/L0_LR_aH.js";import{g as Y}from"../chunks/CyOk_wEk.js";import{w as U}from"../chunks/hszZtVwQ.js";import{n as me}from"../chunks/DShiqhaV.js";import{a as L}from"../chunks/aCzYRRC_.js";import{r as G}from"../chunks/D5-csRKQ.js";import{v as he}from"../chunks/CGmpeyEq.js";import{insightsStore as q}from"../chunks/6McgCjyP.js";import{l as I,p as y,s as pe,r as fe}from"../chunks/rmAkpimd.js";import{T as ve}from"../chunks/DYrlFBgr.js";import{R as ge}from"../chunks/G1IXQHaq.js";import{i as F}from"../chunks/WI8VL4je.js";var _e=z("<title> </title>"),be=z('<svg><!><path d="M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM14,21.5908l-5-5L10.5906,15,14,18.4092,21.41,11l1.5957,1.5859Z"></path><path fill="none" d="M14 21.591 9 16.591 10.591 15 14 18.409 21.41 11 23.005 12.585 14 21.591z" data-icon-path="inner-path"></path></svg>');function we(v,o){const e=I(o,["children","$$slots","$$events","$$legacy"]),g=I(e,["size","title"]);E(o,!1);const a=x(),m=x();let d=y(o,"size",8,16),n=y(o,"title",8,void 0);$(()=>(f(e),f(n())),()=>{s(a,e["aria-label"]||e["aria-labelledby"]||n())}),$(()=>(t(a),f(e)),()=>{s(m,{"aria-hidden":t(a)?void 0:!0,role:t(a)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),V(),F();var i=be();D(i,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:d(),height:d(),...t(m),...g}));var r=w(i);{var p=l=>{var c=_e(),h=w(c,!0);M(c),C(()=>T(h,n())),_(l,c)};R(r,l=>{n()&&l(p)})}k(2),M(i),_(v,i),P()}var Me=z("<title> </title>"),$e=z('<svg><!><path fill="none" d="M14.9 7.2H17.1V24.799H14.9z" data-icon-path="inner-path" transform="rotate(-45 16 16)"></path><path d="M16,2A13.914,13.914,0,0,0,2,16,13.914,13.914,0,0,0,16,30,13.914,13.914,0,0,0,30,16,13.914,13.914,0,0,0,16,2Zm5.4449,21L9,10.5557,10.5557,9,23,21.4448Z"></path></svg>');function xe(v,o){const e=I(o,["children","$$slots","$$events","$$legacy"]),g=I(e,["size","title"]);E(o,!1);const a=x(),m=x();let d=y(o,"size",8,16),n=y(o,"title",8,void 0);$(()=>(f(e),f(n())),()=>{s(a,e["aria-label"]||e["aria-labelledby"]||n())}),$(()=>(t(a),f(e)),()=>{s(m,{"aria-hidden":t(a)?void 0:!0,role:t(a)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),V(),F();var i=$e();D(i,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:d(),height:d(),...t(m),...g}));var r=w(i);{var p=l=>{var c=Me(),h=w(c,!0);M(c),C(()=>T(h,n())),_(l,c)};R(r,l=>{n()&&l(p)})}k(2),M(i),_(v,i),P()}var Ie=z("<title> </title>"),ye=z('<svg><!><path fill="none" d="M16,8a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,16,8Zm4,13.875H17.125v-8H13v2.25h1.875v5.75H12v2.25h8Z" data-icon-path="inner-path"></path><path d="M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,6a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,16,8Zm4,16.125H12v-2.25h2.875v-5.75H13v-2.25h4.125v8H20Z"></path></svg>');function ze(v,o){const e=I(o,["children","$$slots","$$events","$$legacy"]),g=I(e,["size","title"]);E(o,!1);const a=x(),m=x();let d=y(o,"size",8,16),n=y(o,"title",8,void 0);$(()=>(f(e),f(n())),()=>{s(a,e["aria-label"]||e["aria-labelledby"]||n())}),$(()=>(t(a),f(e)),()=>{s(m,{"aria-hidden":t(a)?void 0:!0,role:t(a)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),V(),F();var i=ye();D(i,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:d(),height:d(),...t(m),...g}));var r=w(i);{var p=l=>{var c=Ie(),h=w(c,!0);M(c),C(()=>T(h,n())),_(l,c)};R(r,l=>{n()&&l(p)})}k(2),M(i),_(v,i),P()}var Ae=z("<title> </title>"),Ee=z('<svg><!><path fill="none" d="M16,26a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,26Zm-1.125-5h2.25V12h-2.25Z" data-icon-path="inner-path"></path><path d="M16.002,6.1714h-.004L4.6487,27.9966,4.6506,28H27.3494l.0019-.0034ZM14.875,12h2.25v9h-2.25ZM16,26a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,26Z"></path><path d="M29,30H3a1,1,0,0,1-.8872-1.4614l13-25a1,1,0,0,1,1.7744,0l13,25A1,1,0,0,1,29,30ZM4.6507,28H27.3493l.002-.0033L16.002,6.1714h-.004L4.6487,27.9967Z"></path></svg>');function Pe(v,o){const e=I(o,["children","$$slots","$$events","$$legacy"]),g=I(e,["size","title"]);E(o,!1);const a=x(),m=x();let d=y(o,"size",8,16),n=y(o,"title",8,void 0);$(()=>(f(e),f(n())),()=>{s(a,e["aria-label"]||e["aria-labelledby"]||n())}),$(()=>(t(a),f(e)),()=>{s(m,{"aria-hidden":t(a)?void 0:!0,role:t(a)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),V(),F();var i=Ee();D(i,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:d(),height:d(),...t(m),...g}));var r=w(i);{var p=l=>{var c=Ae(),h=w(c,!0);M(c),C(()=>T(h,n())),_(l,c)};R(r,l=>{n()&&l(p)})}k(3),M(i),_(v,i),P()}function Se(v,o){E(o,!0);const e=re("theme");let g=fe(o,["$$slots","$$events","$$legacy"]);ve(v,pe({get theme(){return e.current},class:"toaster group",style:"--normal-bg: var(--color-bg-elevated); --normal-text: var(--color-text-primary); --normal-border: var(--color-border-strong);"},()=>g,{loadingIcon:r=>{ge(r,{class:"size-4 animate-spin"})},successIcon:r=>{we(r,{class:"size-4"})},errorIcon:r=>{xe(r,{class:"size-4"})},infoIcon:r=>{ze(r,{class:"size-4"})},warningIcon:r=>{Pe(r,{class:"size-4"})},$$slots:{loadingIcon:!0,successIcon:!0,errorIcon:!0,infoIcon:!0,warningIcon:!0}})),P()}var Ze=te('<div style="display: contents;"><!> <!></div>');function je(v,o){E(o,!0);const e=typeof localStorage<"u"?localStorage.getItem("theme"):null,g=typeof window<"u"&&window.matchMedia?.("(prefers-color-scheme: light)").matches?"light":"dark";let a=O(B(e||g));j("theme",{get current(){return t(a)},toggle(){s(a,t(a)==="dark"?"light":"dark",!0),localStorage.setItem("theme",t(a))}});const d=typeof localStorage<"u"?localStorage.getItem("chatMode"):null,n=typeof localStorage<"u"?localStorage.getItem("chatOpen"):null,i=d==="panel"||d==="full"?d:d==="closed"?"closed":n==="true"?"panel":"closed";let r=O(B(i)),p=O(B(i==="closed"?"panel":i));function l(){localStorage.setItem("chatMode",t(r))}j("chat",{get open(){return t(r)!=="closed"},get mode(){return t(r)},toggle(){s(r,t(r)==="closed"?t(p):"closed",!0),l()},close(){s(r,"closed"),l()},expand(){s(r,"full"),s(p,"full"),l()},collapse(){s(r,"panel"),s(p,"panel"),l()},sendPrompt(u){t(r)==="closed"&&(s(r,t(p),!0),l()),A(()=>import("../chunks/idpnkm-U.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url).then(b=>{b.chatStore.send(u),setTimeout(()=>b.chatStore.triggerScroll(),100)})}}),N(()=>{document.documentElement.setAttribute("data-theme",t(a))}),N(()=>{q.briefLoaded&&U.applyUserAccentColor(q.accentColor)});let h=O(null);N(()=>{if(L.loading)return;const u=L.user?.email??(L.authEnabled?null:"__open__");u&&u!==t(h)&&(t(h)!==null&&me.deselect(),s(h,u,!0),U.load(),he.load(),q.load(),G.connect()),!u&&t(h)&&(s(h,null),G.disconnect())}),oe(async()=>{const u=window.location.pathname,b=u==="/login",S=u==="/setup",{authenticated:X,authEnabled:Q,needsSetup:ee}=await L.checkAuth();if(ee&&!S){Y("/setup");return}if(Q&&!X&&!b){Y("/login");return}if(X&&(b||S)){Y("/");return}b||S||(A(()=>import("../chunks/BB_5th5W.js"),__vite__mapDeps([6,7,8]),import.meta.url).catch(()=>{}),Promise.all([A(()=>import("../chunks/CX_61fY8.js"),[],import.meta.url),A(()=>import("../chunks/DnL9f0lc.js").then(Z=>Z.i),__vite__mapDeps([9,10]),import.meta.url),A(()=>import("../chunks/CscoF-YL.js"),__vite__mapDeps([11,10,9,12,13,14]),import.meta.url),A(()=>import("../chunks/D7ZqAKi9.js"),__vite__mapDeps([12,13,10,9]),import.meta.url),A(()=>import("../chunks/C7VoTosa.js").then(Z=>Z.i),[],import.meta.url)]).catch(()=>{}),window.addEventListener("sg-theme-change",Z=>{s(a,Z.detail,!0)}))});var H=Ze();ue("12qhfyh",u=>{ne(()=>{le.title=(U.name||"Studiograph")??""})});var W=w(H);{var J=u=>{var b=ae(),S=se(b);ce(S,()=>o.children),_(u,b)};R(W,u=>{L.loading||u(J)})}var K=ie(W,2);Se(K,{}),M(H),C(()=>de(H,"data-theme",t(a))),_(v,H),P()}export{je as component};
@@ -1 +0,0 @@
1
- import{a as u,b as h,s}from"../chunks/DLdmnoGO.js";import{i as g}from"../chunks/WI8VL4je.js";import{p as l,a0 as v,t as d,b as _,c as e,r as o,a3 as x}from"../chunks/D5QAs2Bb.js";import{s as b,p}from"../chunks/CyOk_wEk.js";const $={get error(){return p.error},get status(){return p.status}};b.updated.check;const m=$;var k=h("<h1> </h1> <p> </p>",1);function y(i,c){l(c,!1),g();var t=k(),r=v(t),n=e(r,!0);o(r);var a=x(r,2),f=e(a,!0);o(a),d(()=>{s(n,m.status),s(f,m.error?.message)}),u(i,t),_()}export{y as component};
@@ -1 +0,0 @@
1
- import{g as H,a as w,t as J,s as $,b as I}from"../chunks/DLdmnoGO.js";import{p as K,t as q,b as M,ac as O,s as r,g as a,e as o,a3 as l,c as t,a4 as Q,ad as R,r as s,n as A}from"../chunks/D5QAs2Bb.js";import{i as T}from"../chunks/DG43S1MM.js";import{h as V}from"../chunks/L0_LR_aH.js";import{g as W}from"../chunks/CyOk_wEk.js";import{a as B}from"../chunks/aCzYRRC_.js";import{w as X}from"../chunks/hszZtVwQ.js";import{B as Z}from"../chunks/BABAUxHY.js";import{I as S}from"../chunks/C-G8n1LM.js";var ee=I('<p class="error-msg svelte-g40i6i"> </p>'),ae=I('<div class="setup-page svelte-g40i6i"><div class="setup-card svelte-g40i6i"><div class="logo svelte-g40i6i"><div class="logo-icon svelte-g40i6i"> </div> <span class="logo-text svelte-g40i6i"> </span></div> <p class="subtitle svelte-g40i6i">Create your admin account to get started.</p> <form class="svelte-g40i6i"><label class="field svelte-g40i6i"><span class="field-label svelte-g40i6i">Name</span> <!></label> <label class="field svelte-g40i6i"><span class="field-label svelte-g40i6i">Email</span> <!></label> <label class="field svelte-g40i6i"><span class="field-label svelte-g40i6i">Password</span> <!> <span class="field-hint svelte-g40i6i">At least 8 characters</span></label> <!> <!></form></div></div>');function ve(P,D){K(D,!0);const n=Q(()=>B.workspaceName||"Studiograph");let u=o(""),v=o(""),d=o(""),p=o(""),c=o(!1);async function E(e){e.preventDefault(),r(p,""),r(c,!0);try{await B.setup(a(u),a(v),a(d)||void 0),X.load(),W("/")}catch(i){r(p,i.message||"Setup failed",!0)}finally{r(c,!1)}}var m=ae();V("g40i6i",e=>{O(()=>{R.title=`Setup — ${a(n)??""}`})});var k=t(m),f=t(k),g=t(f),L=t(g,!0);s(g);var C=l(g,2),U=t(C,!0);s(C),s(f);var b=l(f,4),_=t(b),Y=l(t(_),2);S(Y,{type:"text",placeholder:"Your name",autocomplete:"name",autofocus:!0,class:"field-input",get value(){return a(d)},set value(e){r(d,e,!0)}}),s(_);var h=l(_,2),j=l(t(h),2);S(j,{type:"email",required:!0,autocomplete:"email",class:"field-input",get value(){return a(u)},set value(e){r(u,e,!0)}}),s(h);var x=l(h,2),z=l(t(x),2);S(z,{type:"password",required:!0,minlength:8,autocomplete:"new-password",class:"field-input",get value(){return a(v)},set value(e){r(v,e,!0)}}),A(2),s(x);var N=l(x,2);{var F=e=>{var i=ee(),y=t(i,!0);s(i),q(()=>$(y,a(p))),w(e,i)};T(N,e=>{a(p)&&e(F)})}var G=l(N,2);Z(G,{variant:"accent",type:"submit",class:"submit-btn",get disabled(){return a(c)},children:(e,i)=>{A();var y=J("Create account");w(e,y)},$$slots:{default:!0}}),s(b),s(k),s(m),q(e=>{$(L,e),$(U,a(n))},[()=>a(n).charAt(0).toUpperCase()]),H("submit",b,E),w(P,m),M()}export{ve as component};