studiograph 1.3.44 → 1.3.45-next.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/dist/web/_app/immutable/chunks/{BsapqaT9.js → -fA8HDi_.js} +1 -1
  2. package/dist/web/_app/immutable/chunks/6foq42_N.js +2 -0
  3. package/dist/web/_app/immutable/chunks/{DRO19fCg.js → 7q93FwYm.js} +1 -1
  4. package/dist/web/_app/immutable/chunks/{J8AGYe-9.js → BDMSIaLs.js} +1 -1
  5. package/dist/web/_app/immutable/chunks/{5aaTorNF.js → BpR5QCKo.js} +1 -1
  6. package/dist/web/_app/immutable/chunks/{_xj7x2ng.js → CvFx8j0G.js} +1 -1
  7. package/dist/web/_app/immutable/chunks/{DkgM8092.js → DTzAvSuJ.js} +1 -1
  8. package/dist/web/_app/immutable/chunks/{B8SiwDlA.js → DYIe2tUY.js} +1 -1
  9. package/dist/web/_app/immutable/chunks/{DM-YPK2t.js → XRvfVlfm.js} +1 -1
  10. package/dist/web/_app/immutable/chunks/{BdkXdv-_.js → i0csSje2.js} +1 -1
  11. package/dist/web/_app/immutable/chunks/{xbI1ujtV.js → rhIPZVCA.js} +1 -1
  12. package/dist/web/_app/immutable/entry/{app.BLWSFL3K.js → app.B5TR1ABg.js} +2 -2
  13. package/dist/web/_app/immutable/entry/start.UgeqDi_v.js +1 -0
  14. package/dist/web/_app/immutable/nodes/{0.CLArGAak.js → 0.DxvzWp_E.js} +2 -2
  15. package/dist/web/_app/immutable/nodes/{1.C7VaeFca.js → 1.DIZAKqrK.js} +1 -1
  16. package/dist/web/_app/immutable/nodes/{10.Bt7vR0zi.js → 10.DUdNmxGb.js} +1 -1
  17. package/dist/web/_app/immutable/nodes/{2.2DxFw_16.js → 2.Cp-RKICj.js} +3 -3
  18. package/dist/web/_app/immutable/nodes/{3.BPnkssmU.js → 3.CJJIuTR_.js} +1 -1
  19. package/dist/web/_app/immutable/nodes/{4.C8az7M-8.js → 4.D0VDY5Aa.js} +4 -4
  20. package/dist/web/_app/immutable/nodes/{5.DqeRY7D3.js → 5.B74dxMAn.js} +1 -1
  21. package/dist/web/_app/immutable/nodes/{6.DJt8m9cI.js → 6.DtGgsDIC.js} +1 -1
  22. package/dist/web/_app/immutable/nodes/{7.XSqorMNB.js → 7.DnJR0IVy.js} +1 -1
  23. package/dist/web/_app/immutable/nodes/{8.D4VY0uHj.js → 8.ChUgRhne.js} +1 -1
  24. package/dist/web/_app/immutable/nodes/{9.TJQpPKfF.js → 9.HB7sO92y.js} +1 -1
  25. package/dist/web/_app/version.json +1 -1
  26. package/dist/web/index.html +6 -6
  27. package/package.json +1 -1
  28. package/dist/web/_app/immutable/chunks/BnvLAYp7.js +0 -2
  29. package/dist/web/_app/immutable/entry/start.2wDxC5gH.js +0 -1
@@ -1 +1 @@
1
- import{c as m,a,f as l}from"./iDtAARVW.js";import{h as w}from"./CT6oIU-C.js";import{i as n}from"./72bZS3G9.js";import{p as d}from"./cLyZlkXv.js";import{L as b,T as k}from"./DkgM8092.js";import{t as y}from"./DRO19fCg.js";import{u as S}from"./DRO19fCg.js";var u=l('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20"><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z" clip-rule="evenodd"></path></svg>'),x=l('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20"><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z" clip-rule="evenodd"></path></svg>'),_=l('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20"><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z" clip-rule="evenodd"></path></svg>'),z=l('<svg viewBox="0 0 64 64" fill="currentColor" height="20" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M32.427,7.987c2.183,0.124 4,1.165 5.096,3.281l17.936,36.208c1.739,3.66 -0.954,8.585 -5.373,8.656l-36.119,0c-4.022,-0.064 -7.322,-4.631 -5.352,-8.696l18.271,-36.207c0.342,-0.65 0.498,-0.838 0.793,-1.179c1.186,-1.375 2.483,-2.111 4.748,-2.063Zm-0.295,3.997c-0.687,0.034 -1.316,0.419 -1.659,1.017c-6.312,11.979 -12.397,24.081 -18.301,36.267c-0.546,1.225 0.391,2.797 1.762,2.863c12.06,0.195 24.125,0.195 36.185,0c1.325,-0.064 2.321,-1.584 1.769,-2.85c-5.793,-12.184 -11.765,-24.286 -17.966,-36.267c-0.366,-0.651 -0.903,-1.042 -1.79,-1.03Z"></path><path d="M33.631,40.581l-3.348,0l-0.368,-16.449l4.1,0l-0.384,16.449Zm-3.828,5.03c0,-0.609 0.197,-1.113 0.592,-1.514c0.396,-0.4 0.935,-0.601 1.618,-0.601c0.684,0 1.223,0.201 1.618,0.601c0.395,0.401 0.593,0.905 0.593,1.514c0,0.587 -0.193,1.078 -0.577,1.473c-0.385,0.395 -0.929,0.593 -1.634,0.593c-0.705,0 -1.249,-0.198 -1.634,-0.593c-0.384,-0.395 -0.576,-0.886 -0.576,-1.473Z"></path></svg>');function H(s,v){const t=d(v,"type",3,"success");var e=m(),c=w(e);{var i=o=>{var r=u();a(o,r)},p=o=>{var r=x();a(o,r)},h=o=>{var r=_();a(o,r)},g=o=>{var r=z();a(o,r)},f=o=>{};n(c,o=>{t()==="success"?o(i):t()==="error"?o(p,1):t()==="info"?o(h,2):t()==="warning"?o(g,3):o(f,!1)})}a(s,e)}export{H as Icon,b as Loader,k as Toaster,y as toast,S as useSonner};
1
+ import{c as m,a,f as l}from"./iDtAARVW.js";import{h as w}from"./CT6oIU-C.js";import{i as n}from"./72bZS3G9.js";import{p as d}from"./cLyZlkXv.js";import{L as b,T as k}from"./DTzAvSuJ.js";import{t as y}from"./7q93FwYm.js";import{u as S}from"./7q93FwYm.js";var u=l('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20"><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z" clip-rule="evenodd"></path></svg>'),x=l('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20"><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z" clip-rule="evenodd"></path></svg>'),_=l('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20"><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z" clip-rule="evenodd"></path></svg>'),z=l('<svg viewBox="0 0 64 64" fill="currentColor" height="20" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M32.427,7.987c2.183,0.124 4,1.165 5.096,3.281l17.936,36.208c1.739,3.66 -0.954,8.585 -5.373,8.656l-36.119,0c-4.022,-0.064 -7.322,-4.631 -5.352,-8.696l18.271,-36.207c0.342,-0.65 0.498,-0.838 0.793,-1.179c1.186,-1.375 2.483,-2.111 4.748,-2.063Zm-0.295,3.997c-0.687,0.034 -1.316,0.419 -1.659,1.017c-6.312,11.979 -12.397,24.081 -18.301,36.267c-0.546,1.225 0.391,2.797 1.762,2.863c12.06,0.195 24.125,0.195 36.185,0c1.325,-0.064 2.321,-1.584 1.769,-2.85c-5.793,-12.184 -11.765,-24.286 -17.966,-36.267c-0.366,-0.651 -0.903,-1.042 -1.79,-1.03Z"></path><path d="M33.631,40.581l-3.348,0l-0.368,-16.449l4.1,0l-0.384,16.449Zm-3.828,5.03c0,-0.609 0.197,-1.113 0.592,-1.514c0.396,-0.4 0.935,-0.601 1.618,-0.601c0.684,0 1.223,0.201 1.618,0.601c0.395,0.401 0.593,0.905 0.593,1.514c0,0.587 -0.193,1.078 -0.577,1.473c-0.385,0.395 -0.929,0.593 -1.634,0.593c-0.705,0 -1.249,-0.198 -1.634,-0.593c-0.384,-0.395 -0.576,-0.886 -0.576,-1.473Z"></path></svg>');function H(s,v){const t=d(v,"type",3,"success");var e=m(),c=w(e);{var i=o=>{var r=u();a(o,r)},p=o=>{var r=x();a(o,r)},h=o=>{var r=_();a(o,r)},g=o=>{var r=z();a(o,r)},f=o=>{};n(c,o=>{t()==="success"?o(i):t()==="error"?o(p,1):t()==="info"?o(h,2):t()==="warning"?o(g,3):o(f,!1)})}a(s,e)}export{H as Icon,b as Loader,k as Toaster,y as toast,S as useSonner};
@@ -1 +1 @@
1
- import{O as _,f as P,g as b,e as W,w as m,a as G,t as k,c as A,r as I,b as q,d as j,h as V,i as R,j as z,k as C,l as K,D as Q,p as X,m as Z}from"./CSVbGg_b.js";import{r as O}from"./DRO19fCg.js";const T=3e4;class $ extends _{constructor(n){super(),this.doc=n,this.clientID=n.clientID,this.states=new Map,this.meta=new Map,this._checkInterval=setInterval(()=>{const e=b();this.getLocalState()!==null&&T/2<=e-this.meta.get(this.clientID).lastUpdated&&this.setLocalState(this.getLocalState());const s=[];this.meta.forEach((a,c)=>{c!==this.clientID&&T<=e-a.lastUpdated&&this.states.has(c)&&s.push(c)}),s.length>0&&Y(this,s,"timeout")},P(T/10)),n.on("destroy",()=>{this.destroy()}),this.setLocalState({})}destroy(){this.emit("destroy",[this]),this.setLocalState(null),super.destroy(),clearInterval(this._checkInterval)}getLocalState(){return this.states.get(this.clientID)||null}setLocalState(n){const e=this.clientID,s=this.meta.get(e),a=s===void 0?0:s.clock+1,c=this.states.get(e);n===null?this.states.delete(e):this.states.set(e,n),this.meta.set(e,{clock:a,lastUpdated:b()});const i=[],u=[],r=[],f=[];n===null?f.push(e):c==null?n!=null&&i.push(e):(u.push(e),W(c,n)||r.push(e)),(i.length>0||r.length>0||f.length>0)&&this.emit("change",[{added:i,updated:r,removed:f},"local"]),this.emit("update",[{added:i,updated:u,removed:f},"local"])}setLocalStateField(n,e){const s=this.getLocalState();s!==null&&this.setLocalState({...s,[n]:e})}getStates(){return this.states}}const Y=(t,n,e)=>{const s=[];for(let a=0;a<n.length;a++){const c=n[a];if(t.states.has(c)){if(t.states.delete(c),c===t.clientID){const i=t.meta.get(c);t.meta.set(c,{clock:i.clock+1,lastUpdated:b()})}s.push(c)}}s.length>0&&(t.emit("change",[{added:[],updated:[],removed:s},e]),t.emit("update",[{added:[],updated:[],removed:s},e]))},H=(t,n,e=t.states)=>{const s=n.length,a=A();m(a,s);for(let c=0;c<s;c++){const i=n[c],u=e.get(i)||null,r=t.meta.get(i).clock;m(a,i),m(a,r),G(a,JSON.stringify(u))}return k(a)},tt=(t,n,e)=>{const s=j(n),a=b(),c=[],i=[],u=[],r=[],f=I(s);for(let w=0;w<f;w++){const d=I(s);let y=I(s);const h=JSON.parse(q(s)),g=t.meta.get(d),U=t.states.get(d),S=g===void 0?0:g.clock;(S<y||S===y&&h===null&&t.states.has(d))&&(h===null?d===t.clientID&&t.getLocalState()!=null?y++:t.states.delete(d):t.states.set(d,h),t.meta.set(d,{clock:y,lastUpdated:a}),g===void 0&&h!==null?c.push(d):g!==void 0&&h===null?r.push(d):h!==null&&(W(h,U)||u.push(d),i.push(d)))}(c.length>0||u.length>0||r.length>0)&&t.emit("change",[{added:c,updated:u,removed:r},e]),(c.length>0||i.length>0||r.length>0)&&t.emit("update",[{added:c,updated:i,removed:r},e])},B=0,M=1,N=2,et=(t,n)=>{m(t,B);const e=R(n);V(t,e)},nt=(t,n,e)=>{m(t,M),V(t,K(n,e))},st=(t,n,e)=>nt(n,e,C(t)),F=(t,n,e,s)=>{try{z(n,C(t),e)}catch(a){s?.(a),console.error("Caught error while handling a Yjs update",a)}},at=(t,n)=>{m(t,N),V(t,n)},ct=F,ot=(t,n,e,s,a)=>{const c=I(t);switch(c){case B:st(t,n,e);break;case M:F(t,e,s,a);break;case N:ct(t,e,s,a);break;default:throw new Error("Unknown message type")}return c},L=0,x=1;function it(t,n,e){const s=new TextEncoder().encode(t),a=new ArrayBuffer(2+s.length+1+e.length);return new DataView(a).setUint16(0,s.length),new Uint8Array(a,2,s.length).set(s),new Uint8Array(a)[2+s.length]=n,new Uint8Array(a,2+s.length+1).set(e),a}function lt(t){if(t.byteLength<3)return null;const e=new DataView(t).getUint16(0);if(t.byteLength<2+e+1)return null;const s=new TextDecoder().decode(new Uint8Array(t,2,e)),a=new Uint8Array(t)[2+e],c=new Uint8Array(t,2+e+1);return{docName:s,msgType:a,payload:c}}function ut(t,n){const e=new Q,s=e.getText("content"),a=new $(e);a.setLocalStateField("user",{name:n.name,color:n.color,colorLight:n.colorLight??n.color+"33"});let c=null,i=!1,u=!1;function r(){return O.ws??null}function f(o,p){const l=r();!l||l.readyState!==WebSocket.OPEN||l.send(it(t,o,p))}function w(){const o=A();et(o,e),f(L,k(o))}function d(o){const p=o??[e.clientID],l=H(a,p);f(x,l)}function y(o){if(i||typeof o.data=="string")return;const p=o.data instanceof ArrayBuffer?o.data:null;if(!p)return;const l=lt(p);if(!(!l||l.docName!==t))if(l.msgType===L){const v=j(l.payload),D=X(v),E=A();ot(v,E,e,"ws-server"),Z(E)>0&&f(L,k(E)),!u&&(D===M||D===N)&&(u=!0,S.synced=!0)}else l.msgType===x&&tt(a,l.payload,"ws-server")}function h(o,p){if(i||p==="ws-server")return;const l=A();at(l,o),f(L,k(l))}function g({added:o,updated:p,removed:l},v){if(i||v==="ws-server")return;const D=o.concat(p,l);d(D)}function U(){if(i)return;const o=r();!o||o.readyState!==WebSocket.OPEN||(o.send(JSON.stringify({type:"collab:join",docName:t})),c&&o.removeEventListener("message",c),c=y,o.addEventListener("message",c),w(),d())}const S={ydoc:e,ytext:s,awareness:a,synced:!1,destroy:J};e.on("update",h),a.on("update",g),U(),O.addConnectHandler(U);function J(){if(i)return;i=!0,Y(a,[e.clientID],"local"),d([e.clientID]);const o=r();o&&o.readyState===WebSocket.OPEN&&o.send(JSON.stringify({type:"collab:leave",docName:t})),c&&o&&(o.removeEventListener("message",c),c=null),e.off("update",h),a.off("update",g),a.destroy(),e.destroy()}return S}export{ut as createCollabSession};
1
+ import{O as _,f as P,g as b,e as W,w as m,a as G,t as k,c as A,r as I,b as q,d as j,h as V,i as R,j as z,k as C,l as K,D as Q,p as X,m as Z}from"./CSVbGg_b.js";import{r as O}from"./7q93FwYm.js";const T=3e4;class $ extends _{constructor(n){super(),this.doc=n,this.clientID=n.clientID,this.states=new Map,this.meta=new Map,this._checkInterval=setInterval(()=>{const e=b();this.getLocalState()!==null&&T/2<=e-this.meta.get(this.clientID).lastUpdated&&this.setLocalState(this.getLocalState());const s=[];this.meta.forEach((a,c)=>{c!==this.clientID&&T<=e-a.lastUpdated&&this.states.has(c)&&s.push(c)}),s.length>0&&Y(this,s,"timeout")},P(T/10)),n.on("destroy",()=>{this.destroy()}),this.setLocalState({})}destroy(){this.emit("destroy",[this]),this.setLocalState(null),super.destroy(),clearInterval(this._checkInterval)}getLocalState(){return this.states.get(this.clientID)||null}setLocalState(n){const e=this.clientID,s=this.meta.get(e),a=s===void 0?0:s.clock+1,c=this.states.get(e);n===null?this.states.delete(e):this.states.set(e,n),this.meta.set(e,{clock:a,lastUpdated:b()});const i=[],u=[],r=[],f=[];n===null?f.push(e):c==null?n!=null&&i.push(e):(u.push(e),W(c,n)||r.push(e)),(i.length>0||r.length>0||f.length>0)&&this.emit("change",[{added:i,updated:r,removed:f},"local"]),this.emit("update",[{added:i,updated:u,removed:f},"local"])}setLocalStateField(n,e){const s=this.getLocalState();s!==null&&this.setLocalState({...s,[n]:e})}getStates(){return this.states}}const Y=(t,n,e)=>{const s=[];for(let a=0;a<n.length;a++){const c=n[a];if(t.states.has(c)){if(t.states.delete(c),c===t.clientID){const i=t.meta.get(c);t.meta.set(c,{clock:i.clock+1,lastUpdated:b()})}s.push(c)}}s.length>0&&(t.emit("change",[{added:[],updated:[],removed:s},e]),t.emit("update",[{added:[],updated:[],removed:s},e]))},H=(t,n,e=t.states)=>{const s=n.length,a=A();m(a,s);for(let c=0;c<s;c++){const i=n[c],u=e.get(i)||null,r=t.meta.get(i).clock;m(a,i),m(a,r),G(a,JSON.stringify(u))}return k(a)},tt=(t,n,e)=>{const s=j(n),a=b(),c=[],i=[],u=[],r=[],f=I(s);for(let w=0;w<f;w++){const d=I(s);let y=I(s);const h=JSON.parse(q(s)),g=t.meta.get(d),U=t.states.get(d),S=g===void 0?0:g.clock;(S<y||S===y&&h===null&&t.states.has(d))&&(h===null?d===t.clientID&&t.getLocalState()!=null?y++:t.states.delete(d):t.states.set(d,h),t.meta.set(d,{clock:y,lastUpdated:a}),g===void 0&&h!==null?c.push(d):g!==void 0&&h===null?r.push(d):h!==null&&(W(h,U)||u.push(d),i.push(d)))}(c.length>0||u.length>0||r.length>0)&&t.emit("change",[{added:c,updated:u,removed:r},e]),(c.length>0||i.length>0||r.length>0)&&t.emit("update",[{added:c,updated:i,removed:r},e])},B=0,M=1,N=2,et=(t,n)=>{m(t,B);const e=R(n);V(t,e)},nt=(t,n,e)=>{m(t,M),V(t,K(n,e))},st=(t,n,e)=>nt(n,e,C(t)),F=(t,n,e,s)=>{try{z(n,C(t),e)}catch(a){s?.(a),console.error("Caught error while handling a Yjs update",a)}},at=(t,n)=>{m(t,N),V(t,n)},ct=F,ot=(t,n,e,s,a)=>{const c=I(t);switch(c){case B:st(t,n,e);break;case M:F(t,e,s,a);break;case N:ct(t,e,s,a);break;default:throw new Error("Unknown message type")}return c},L=0,x=1;function it(t,n,e){const s=new TextEncoder().encode(t),a=new ArrayBuffer(2+s.length+1+e.length);return new DataView(a).setUint16(0,s.length),new Uint8Array(a,2,s.length).set(s),new Uint8Array(a)[2+s.length]=n,new Uint8Array(a,2+s.length+1).set(e),a}function lt(t){if(t.byteLength<3)return null;const e=new DataView(t).getUint16(0);if(t.byteLength<2+e+1)return null;const s=new TextDecoder().decode(new Uint8Array(t,2,e)),a=new Uint8Array(t)[2+e],c=new Uint8Array(t,2+e+1);return{docName:s,msgType:a,payload:c}}function ut(t,n){const e=new Q,s=e.getText("content"),a=new $(e);a.setLocalStateField("user",{name:n.name,color:n.color,colorLight:n.colorLight??n.color+"33"});let c=null,i=!1,u=!1;function r(){return O.ws??null}function f(o,p){const l=r();!l||l.readyState!==WebSocket.OPEN||l.send(it(t,o,p))}function w(){const o=A();et(o,e),f(L,k(o))}function d(o){const p=o??[e.clientID],l=H(a,p);f(x,l)}function y(o){if(i||typeof o.data=="string")return;const p=o.data instanceof ArrayBuffer?o.data:null;if(!p)return;const l=lt(p);if(!(!l||l.docName!==t))if(l.msgType===L){const v=j(l.payload),D=X(v),E=A();ot(v,E,e,"ws-server"),Z(E)>0&&f(L,k(E)),!u&&(D===M||D===N)&&(u=!0,S.synced=!0)}else l.msgType===x&&tt(a,l.payload,"ws-server")}function h(o,p){if(i||p==="ws-server")return;const l=A();at(l,o),f(L,k(l))}function g({added:o,updated:p,removed:l},v){if(i||v==="ws-server")return;const D=o.concat(p,l);d(D)}function U(){if(i)return;const o=r();!o||o.readyState!==WebSocket.OPEN||(o.send(JSON.stringify({type:"collab:join",docName:t})),c&&o.removeEventListener("message",c),c=y,o.addEventListener("message",c),w(),d())}const S={ydoc:e,ytext:s,awareness:a,synced:!1,destroy:J};e.on("update",h),a.on("update",g),U(),O.addConnectHandler(U);function J(){if(i)return;i=!0,Y(a,[e.clientID],"local"),d([e.clientID]);const o=r();o&&o.readyState===WebSocket.OPEN&&o.send(JSON.stringify({type:"collab:leave",docName:t})),c&&o&&(o.removeEventListener("message",c),c=null),e.off("update",h),a.off("update",g),a.destroy(),e.destroy()}return S}export{ut as createCollabSession};
@@ -1 +1 @@
1
- import{s as e}from"./_xj7x2ng.js";const r=()=>{const s=e;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},b={subscribe(s){return r().page.subscribe(s)}};export{b as p};
1
+ import{s as e}from"./CvFx8j0G.js";const r=()=>{const s=e;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},b={subscribe(s){return r().page.subscribe(s)}};export{b as p};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.CLArGAak.js","../chunks/PPVm8Dsz.js","../chunks/iDtAARVW.js","../chunks/CT6oIU-C.js","../chunks/72bZS3G9.js","../chunks/CmCtpZ1Y.js","../chunks/DGbA7IXh.js","../chunks/Bsacq2UX.js","../chunks/_xj7x2ng.js","../chunks/CJ8__CWt.js","../chunks/4Hhzb6pv.js","../chunks/DbbB6Up5.js","../chunks/DRO19fCg.js","../chunks/B8SiwDlA.js","../chunks/BTX2Jr8_.js","../chunks/cLyZlkXv.js","../chunks/DkgM8092.js","../chunks/CDV5Q7RN.js","../chunks/CXH6iFbA.js","../chunks/Y90OgS-9.js","../assets/Toaster.rN8r_Hzv.css","../chunks/QF8MAmnc.js","../assets/0.DdizXOKi.css","../nodes/1.C7VaeFca.js","../nodes/2.2DxFw_16.js","../chunks/vSaooFHB.js","../chunks/UjzxCpxn.js","../chunks/BS2rFAVq.js","../chunks/CJUKmosC.js","../chunks/CdeYcEuU.js","../chunks/rJdWIgh-.js","../chunks/ByunV8un.js","../chunks/J8AGYe-9.js","../chunks/oC_W7W7p.js","../chunks/O9Eb9k00.js","../chunks/uLEXaPwE.js","../assets/Copy.FS8bdfxr.css","../chunks/BSsDC_p4.js","../chunks/BsapqaT9.js","../chunks/DtM5cEDu.js","../assets/2.n7-yW_Fs.css","../nodes/3.BPnkssmU.js","../chunks/5aaTorNF.js","../assets/ViewToolbar.D-QW2oKe.css","../assets/3.BtaZagnv.css","../nodes/4.C8az7M-8.js","../chunks/xbI1ujtV.js","../chunks/Cx4YdFMk.js","../assets/index.D6tMDJWk.css","../chunks/CqkleIqs.js","../assets/4.DSiqtN6T.css","../nodes/5.DqeRY7D3.js","../assets/5.DFeGxLYf.css","../nodes/6.DJt8m9cI.js","../assets/6.CquhUpOu.css","../nodes/7.XSqorMNB.js","../chunks/tvOsokaa.js","../assets/7.CjbDRbuG.css","../nodes/8.D4VY0uHj.js","../assets/8.S1QdUGNM.css","../nodes/9.TJQpPKfF.js","../assets/9.CT4xL4K3.css","../nodes/10.Bt7vR0zi.js","../assets/10.BUrHkYry.css"])))=>i.map(i=>d[i]);
2
- import{_ as i}from"../chunks/PPVm8Dsz.js";import{s as I,au as $,g as m,aD as tt,ah as et,m as rt,p as at,a4 as st,a5 as ot,aE as nt,aF as it,h as v,i as mt,b as ct,e as j,u as O,c as ut,r as _t,t as dt}from"../chunks/CT6oIU-C.js";import{h as lt,m as ft,u as vt,a as _,c as E,b as G,t as gt,s as ht}from"../chunks/iDtAARVW.js";import{i as D,b as R}from"../chunks/72bZS3G9.js";import{c as A}from"../chunks/CXH6iFbA.js";import{p as L}from"../chunks/cLyZlkXv.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=G('<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=G("<!> <!>",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 q=O(()=>t.constructors[2]);var C=Pt(),S=v(C);{var z=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 F=E(),U=v(F);A(U,()=>m(q),(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,F)},$$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)},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}}),y=>a()[0]=y,()=>a()?.[0])}),_(o,l)};D(S,o=>{t.constructors[1]?o(z):o(B,!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.CLArGAak.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.C7VaeFca.js"),__vite__mapDeps([23,2,3,19,8]),import.meta.url),()=>i(()=>import("../nodes/2.2DxFw_16.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.BPnkssmU.js"),__vite__mapDeps([41,2,3,4,17,6,8,42,5,18,27,15,19,25,10,9,13,28,43,37,14,21,31,44]),import.meta.url),()=>i(()=>import("../nodes/4.C8az7M-8.js"),__vite__mapDeps([45,9,3,6,1,2,4,17,18,15,8,46,42,5,27,19,25,10,13,28,43,29,47,26,48,32,12,11,30,49,38,50]),import.meta.url),()=>i(()=>import("../nodes/5.DqeRY7D3.js"),__vite__mapDeps([51,9,3,6,2,4,8,10,52]),import.meta.url),()=>i(()=>import("../nodes/6.DJt8m9cI.js"),__vite__mapDeps([53,2,3,42,5,4,6,17,18,27,15,8,19,25,10,9,13,28,43,1,29,38,54]),import.meta.url),()=>i(()=>import("../nodes/7.XSqorMNB.js"),__vite__mapDeps([55,2,3,15,46,8,4,28,5,6,18,27,17,47,19,26,48,35,36,34,14,9,30,33,1,11,21,10,56,57]),import.meta.url),()=>i(()=>import("../nodes/8.D4VY0uHj.js"),__vite__mapDeps([58,2,3,4,42,5,6,17,18,27,15,8,19,25,10,9,13,28,43,29,37,39,26,47,48,33,34,56,59]),import.meta.url),()=>i(()=>import("../nodes/9.TJQpPKfF.js"),__vite__mapDeps([60,2,3,4,7,8,11,6,27,5,15,34,61]),import.meta.url),()=>i(()=>import("../nodes/10.Bt7vR0zi.js"),__vite__mapDeps([62,2,3,4,7,8,11,6,9,27,5,15,34,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]]},Y={handleError:(({error:s})=>{console.error(s)}),reroute:(()=>{}),transport:{}},Ot=Object.fromEntries(Object.entries(Y.transport).map(([s,t])=>[s,t.decode])),Mt=Object.fromEntries(Object.entries(Y.transport).map(([s,t])=>[s,t.encode])),Ft=!1,Gt=(s,t)=>Ot[s](t);export{Gt as decode,Ot as decoders,St as dictionary,Mt as encoders,Ft as hash,Y as hooks,wt as matchers,kt as nodes,jt as root,Ct as server_loads};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.DxvzWp_E.js","../chunks/PPVm8Dsz.js","../chunks/iDtAARVW.js","../chunks/CT6oIU-C.js","../chunks/72bZS3G9.js","../chunks/CmCtpZ1Y.js","../chunks/DGbA7IXh.js","../chunks/Bsacq2UX.js","../chunks/CvFx8j0G.js","../chunks/CJ8__CWt.js","../chunks/4Hhzb6pv.js","../chunks/DbbB6Up5.js","../chunks/7q93FwYm.js","../chunks/DYIe2tUY.js","../chunks/BTX2Jr8_.js","../chunks/cLyZlkXv.js","../chunks/DTzAvSuJ.js","../chunks/CDV5Q7RN.js","../chunks/CXH6iFbA.js","../chunks/Y90OgS-9.js","../assets/Toaster.rN8r_Hzv.css","../chunks/QF8MAmnc.js","../assets/0.DdizXOKi.css","../nodes/1.DIZAKqrK.js","../nodes/2.Cp-RKICj.js","../chunks/vSaooFHB.js","../chunks/UjzxCpxn.js","../chunks/BS2rFAVq.js","../chunks/CJUKmosC.js","../chunks/CdeYcEuU.js","../chunks/rJdWIgh-.js","../chunks/ByunV8un.js","../chunks/BDMSIaLs.js","../chunks/oC_W7W7p.js","../chunks/O9Eb9k00.js","../chunks/uLEXaPwE.js","../assets/Copy.FS8bdfxr.css","../chunks/BSsDC_p4.js","../chunks/-fA8HDi_.js","../chunks/DtM5cEDu.js","../assets/2.n7-yW_Fs.css","../nodes/3.CJJIuTR_.js","../chunks/BpR5QCKo.js","../assets/ViewToolbar.D-QW2oKe.css","../assets/3.BtaZagnv.css","../nodes/4.D0VDY5Aa.js","../chunks/rhIPZVCA.js","../chunks/Cx4YdFMk.js","../assets/index.D6tMDJWk.css","../chunks/CqkleIqs.js","../assets/4.DSiqtN6T.css","../nodes/5.B74dxMAn.js","../assets/5.DFeGxLYf.css","../nodes/6.DtGgsDIC.js","../assets/6.CquhUpOu.css","../nodes/7.DnJR0IVy.js","../chunks/tvOsokaa.js","../assets/7.CjbDRbuG.css","../nodes/8.ChUgRhne.js","../assets/8.S1QdUGNM.css","../nodes/9.HB7sO92y.js","../assets/9.CT4xL4K3.css","../nodes/10.DUdNmxGb.js","../assets/10.BUrHkYry.css"])))=>i.map(i=>d[i]);
2
+ import{_ as i}from"../chunks/PPVm8Dsz.js";import{s as I,au as $,g as m,aD as tt,ah as et,m as rt,p as at,a4 as st,a5 as ot,aE as nt,aF as it,h as v,i as mt,b as ct,e as j,u as O,c as ut,r as _t,t as dt}from"../chunks/CT6oIU-C.js";import{h as lt,m as ft,u as vt,a as _,c as E,b as G,t as gt,s as ht}from"../chunks/iDtAARVW.js";import{i as D,b as R}from"../chunks/72bZS3G9.js";import{c as A}from"../chunks/CXH6iFbA.js";import{p as L}from"../chunks/cLyZlkXv.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=G('<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=G("<!> <!>",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 q=O(()=>t.constructors[2]);var C=Pt(),S=v(C);{var z=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 F=E(),U=v(F);A(U,()=>m(q),(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,F)},$$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)},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}}),y=>a()[0]=y,()=>a()?.[0])}),_(o,l)};D(S,o=>{t.constructors[1]?o(z):o(B,!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.DxvzWp_E.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.DIZAKqrK.js"),__vite__mapDeps([23,2,3,19,8]),import.meta.url),()=>i(()=>import("../nodes/2.Cp-RKICj.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.CJJIuTR_.js"),__vite__mapDeps([41,2,3,4,17,6,8,42,5,18,27,15,19,25,10,9,13,28,43,37,14,21,31,44]),import.meta.url),()=>i(()=>import("../nodes/4.D0VDY5Aa.js"),__vite__mapDeps([45,9,3,6,1,2,4,17,18,15,8,46,42,5,27,19,25,10,13,28,43,29,47,26,48,32,12,11,30,49,38,50]),import.meta.url),()=>i(()=>import("../nodes/5.B74dxMAn.js"),__vite__mapDeps([51,9,3,6,2,4,8,10,52]),import.meta.url),()=>i(()=>import("../nodes/6.DtGgsDIC.js"),__vite__mapDeps([53,2,3,42,5,4,6,17,18,27,15,8,19,25,10,9,13,28,43,1,29,38,54]),import.meta.url),()=>i(()=>import("../nodes/7.DnJR0IVy.js"),__vite__mapDeps([55,2,3,15,46,8,4,28,5,6,18,27,17,47,19,26,48,35,36,34,14,9,30,33,1,11,21,10,56,57]),import.meta.url),()=>i(()=>import("../nodes/8.ChUgRhne.js"),__vite__mapDeps([58,2,3,4,42,5,6,17,18,27,15,8,19,25,10,9,13,28,43,29,37,39,26,47,48,33,34,56,59]),import.meta.url),()=>i(()=>import("../nodes/9.HB7sO92y.js"),__vite__mapDeps([60,2,3,4,7,8,11,6,27,5,15,34,61]),import.meta.url),()=>i(()=>import("../nodes/10.DUdNmxGb.js"),__vite__mapDeps([62,2,3,4,7,8,11,6,9,27,5,15,34,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]]},Y={handleError:(({error:s})=>{console.error(s)}),reroute:(()=>{}),transport:{}},Ot=Object.fromEntries(Object.entries(Y.transport).map(([s,t])=>[s,t.decode])),Mt=Object.fromEntries(Object.entries(Y.transport).map(([s,t])=>[s,t.encode])),Ft=!1,Gt=(s,t)=>Ot[s](t);export{Gt as decode,Ot as decoders,St as dictionary,Mt as encoders,Ft as hash,Y as hooks,wt as matchers,kt as nodes,jt as root,Ct as server_loads};
@@ -0,0 +1 @@
1
+ import{l as o,a as r}from"../chunks/CvFx8j0G.js";export{o as load_css,r as start};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../chunks/BsapqaT9.js","../chunks/CT6oIU-C.js","../chunks/_xj7x2ng.js","../chunks/4Hhzb6pv.js","../chunks/CJ8__CWt.js","../chunks/DGbA7IXh.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/iDtAARVW.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,aC as re,e as O,f as B,aX as j,a5 as N,aE as oe,i as ie,ab as ne,ac as le,h as se}from"../chunks/CT6oIU-C.js";import{i as R}from"../chunks/72bZS3G9.js";import{a as D,s as de,b as ce}from"../chunks/CmCtpZ1Y.js";import{h as ue}from"../chunks/Bsacq2UX.js";import{g as Y}from"../chunks/_xj7x2ng.js";import{w as U}from"../chunks/CJ8__CWt.js";import{n as me}from"../chunks/4Hhzb6pv.js";import{a as L}from"../chunks/DbbB6Up5.js";import{r as G}from"../chunks/DRO19fCg.js";import{v as he}from"../chunks/B8SiwDlA.js";import{insightsStore as q}from"../chunks/BTX2Jr8_.js";import{l as I,p as y,s as pe,r as fe}from"../chunks/cLyZlkXv.js";import{T as ve}from"../chunks/DkgM8092.js";import{R as ge}from"../chunks/QF8MAmnc.js";import{i as F}from"../chunks/Y90OgS-9.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/BsapqaT9.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
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../chunks/-fA8HDi_.js","../chunks/CT6oIU-C.js","../chunks/CvFx8j0G.js","../chunks/4Hhzb6pv.js","../chunks/CJ8__CWt.js","../chunks/DGbA7IXh.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/iDtAARVW.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,aC as re,e as O,f as B,aX as j,a5 as N,aE as oe,i as ie,ab as ne,ac as le,h as se}from"../chunks/CT6oIU-C.js";import{i as R}from"../chunks/72bZS3G9.js";import{a as D,s as de,b as ce}from"../chunks/CmCtpZ1Y.js";import{h as ue}from"../chunks/Bsacq2UX.js";import{g as Y}from"../chunks/CvFx8j0G.js";import{w as U}from"../chunks/CJ8__CWt.js";import{n as me}from"../chunks/4Hhzb6pv.js";import{a as L}from"../chunks/DbbB6Up5.js";import{r as G}from"../chunks/7q93FwYm.js";import{v as he}from"../chunks/DYIe2tUY.js";import{insightsStore as q}from"../chunks/BTX2Jr8_.js";import{l as I,p as y,s as pe,r as fe}from"../chunks/cLyZlkXv.js";import{T as ve}from"../chunks/DTzAvSuJ.js";import{R as ge}from"../chunks/QF8MAmnc.js";import{i as F}from"../chunks/Y90OgS-9.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/-fA8HDi_.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 +1 @@
1
- import{a as h,b as u,s as a}from"../chunks/iDtAARVW.js";import{i as g}from"../chunks/Y90OgS-9.js";import{p as l,h as v,t as d,b as _,c as e,r as o,i as x}from"../chunks/CT6oIU-C.js";import{s as b,p}from"../chunks/_xj7x2ng.js";const $={get error(){return p.error},get status(){return p.status}};b.updated.check;const i=$;var k=u("<h1> </h1> <p> </p>",1);function y(m,c){l(c,!1),g();var t=k(),r=v(t),n=e(r,!0);o(r);var s=x(r,2),f=e(s,!0);o(s),d(()=>{a(n,i.status),a(f,i.error?.message)}),h(m,t),_()}export{y as component};
1
+ import{a as h,b as u,s as a}from"../chunks/iDtAARVW.js";import{i as g}from"../chunks/Y90OgS-9.js";import{p as l,h as v,t as d,b as _,c as e,r as o,i as x}from"../chunks/CT6oIU-C.js";import{s as b,p}from"../chunks/CvFx8j0G.js";const $={get error(){return p.error},get status(){return p.status}};b.updated.check;const i=$;var k=u("<h1> </h1> <p> </p>",1);function y(m,c){l(c,!1),g();var t=k(),r=v(t),n=e(r,!0);o(r);var s=x(r,2),f=e(s,!0);o(s),d(()=>{a(n,i.status),a(f,i.error?.message)}),h(m,t),_()}export{y as component};
@@ -1 +1 @@
1
- import{e as H,a as w,t as J,s as $,b as I}from"../chunks/iDtAARVW.js";import{p as K,t as q,b as M,ab as O,s as r,g as a,e as o,i as l,c as t,u as Q,ac as R,r as s,n as A}from"../chunks/CT6oIU-C.js";import{i as T}from"../chunks/72bZS3G9.js";import{h as V}from"../chunks/Bsacq2UX.js";import{g as W}from"../chunks/_xj7x2ng.js";import{a as B}from"../chunks/DbbB6Up5.js";import{w as X}from"../chunks/CJ8__CWt.js";import{B as Z}from"../chunks/BS2rFAVq.js";import{I as S}from"../chunks/O9Eb9k00.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 u=Q(()=>B.workspaceName||"Studiograph");let n=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(n),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(u)??""}`})});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(n)},set value(e){r(n,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(u))},[()=>a(u).charAt(0).toUpperCase()]),H("submit",b,E),w(P,m),M()}export{ve as component};
1
+ import{e as H,a as w,t as J,s as $,b as I}from"../chunks/iDtAARVW.js";import{p as K,t as q,b as M,ab as O,s as r,g as a,e as o,i as l,c as t,u as Q,ac as R,r as s,n as A}from"../chunks/CT6oIU-C.js";import{i as T}from"../chunks/72bZS3G9.js";import{h as V}from"../chunks/Bsacq2UX.js";import{g as W}from"../chunks/CvFx8j0G.js";import{a as B}from"../chunks/DbbB6Up5.js";import{w as X}from"../chunks/CJ8__CWt.js";import{B as Z}from"../chunks/BS2rFAVq.js";import{I as S}from"../chunks/O9Eb9k00.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 u=Q(()=>B.workspaceName||"Studiograph");let n=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(n),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(u)??""}`})});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(n)},set value(e){r(n,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(u))},[()=>a(u).charAt(0).toUpperCase()]),H("submit",b,E),w(P,m),M()}export{ve as component};