studiograph 1.2.0 → 1.3.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 (38) hide show
  1. package/dist/cli/commands/redeploy.js +1 -3
  2. package/dist/cli/commands/redeploy.js.map +1 -1
  3. package/dist/server/routes/graph-api.js +10 -0
  4. package/dist/server/routes/graph-api.js.map +1 -1
  5. package/dist/web/_app/immutable/assets/6.Bm2i7O0j.css +1 -0
  6. package/dist/web/_app/immutable/assets/AppShell.D0rmbdqF.css +1 -0
  7. package/dist/web/_app/immutable/chunks/{nZKqDQ0w.js → BRsTRDZK.js} +1 -1
  8. package/dist/web/_app/immutable/chunks/BYsZRR-U.js +1 -0
  9. package/dist/web/_app/immutable/chunks/{3_5VIr68.js → Bopa-Ask.js} +1 -1
  10. package/dist/web/_app/immutable/chunks/CE_NBP4v.js +23 -0
  11. package/dist/web/_app/immutable/chunks/{CAXuTUkp.js → COwytaCP.js} +1 -1
  12. package/dist/web/_app/immutable/chunks/{fwnBoL5x.js → DEJSHbC3.js} +1 -1
  13. package/dist/web/_app/immutable/chunks/{F20aIBpJ.js → DTUXhwEY.js} +1 -1
  14. package/dist/web/_app/immutable/chunks/{DsERsGWg.js → DYYYEzhe.js} +1 -1
  15. package/dist/web/_app/immutable/chunks/Dml-u95b.js +2 -0
  16. package/dist/web/_app/immutable/chunks/{BButMJ6M.js → DvKVaE7M.js} +1 -1
  17. package/dist/web/_app/immutable/chunks/{BiubvAUI.js → MbiSz-iW.js} +1 -1
  18. package/dist/web/_app/immutable/chunks/{hHxe9oXh.js → bSAC733J.js} +1 -1
  19. package/dist/web/_app/immutable/entry/{app.B6Ngvu5P.js → app.DSgYfKwA.js} +2 -2
  20. package/dist/web/_app/immutable/entry/start.Dhp9m9KV.js +1 -0
  21. package/dist/web/_app/immutable/nodes/0.DfbCOBhn.js +2 -0
  22. package/dist/web/_app/immutable/nodes/{1.BR6DZ9ov.js → 1.rK3ajRu8.js} +1 -1
  23. package/dist/web/_app/immutable/nodes/{2.COSjVZ_C.js → 2.27FQOI32.js} +1 -1
  24. package/dist/web/_app/immutable/nodes/{3.B9r1XIlO.js → 3.cqvTkWN5.js} +1 -1
  25. package/dist/web/_app/immutable/nodes/{4.p-c6hlFf.js → 4.Ci1p8Ukm.js} +1 -1
  26. package/dist/web/_app/immutable/nodes/{5.CPc-Bqal.js → 5.dJUxpcPT.js} +1 -1
  27. package/dist/web/_app/immutable/nodes/6.BMtJECiy.js +2 -0
  28. package/dist/web/_app/version.json +1 -1
  29. package/dist/web/index.html +12 -12
  30. package/package.json +1 -1
  31. package/dist/web/_app/immutable/assets/6.CeHKR5ZY.css +0 -1
  32. package/dist/web/_app/immutable/assets/AppShell.CXdE5aqF.css +0 -1
  33. package/dist/web/_app/immutable/chunks/B0nldqWF.js +0 -23
  34. package/dist/web/_app/immutable/chunks/DPmdIe6Y.js +0 -1
  35. package/dist/web/_app/immutable/chunks/YFT1281h.js +0 -2
  36. package/dist/web/_app/immutable/entry/start.NykKAKQv.js +0 -1
  37. package/dist/web/_app/immutable/nodes/0.DQ5KdeNU.js +0 -1
  38. package/dist/web/_app/immutable/nodes/6.jJ67YnBc.js +0 -2
@@ -1 +1 @@
1
- var Bt=Array.isArray,Gt=Array.prototype.indexOf,ie=Array.prototype.includes,Vn=Array.from,Un=Object.defineProperty,pe=Object.getOwnPropertyDescriptor,Kt=Object.getOwnPropertyDescriptors,zt=Object.prototype,$t=Array.prototype,ot=Object.getPrototypeOf,et=Object.isExtensible;function Bn(e){return typeof e=="function"}const Xt=()=>{};function Gn(e){return e()}function Zt(e){for(var t=0;t<e.length;t++)e[t]()}function ut(){var e,t,n=new Promise((r,s)=>{e=r,t=s});return{promise:n,resolve:e,reject:t}}function Kn(e,t){if(Array.isArray(e))return e;if(!(Symbol.iterator in e))return Array.from(e);const n=[];for(const r of e)if(n.push(r),n.length===t)break;return n}const m=2,ae=4,le=8,He=1<<24,$=16,L=32,X=64,Wt=128,O=512,E=1024,T=2048,F=4096,P=8192,V=16384,ve=32768,Ae=65536,tt=1<<17,Jt=1<<18,de=1<<19,ct=1<<20,zn=1<<25,re=65536,Me=1<<21,qe=1<<22,U=1<<23,te=Symbol("$state"),$n=Symbol("legacy props"),Xn=Symbol(""),W=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Wn=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),Jn=1,ke=3,_t=8;function Ve(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Qt(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Qn(e,t,n){throw new Error("https://svelte.dev/e/each_key_duplicate")}function en(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function tn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function nn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function rn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function er(){throw new Error("https://svelte.dev/e/hydration_failed")}function tr(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function sn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function an(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function fn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function nr(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const rr=1,sr=2,ar=4,fr=8,ir=16,lr=1,or=2,ur=4,cr=8,_r=16,vr=1,dr=2,ln="[",on="[!",hr="[?",un="]",Ue={},b=Symbol(),cn="http://www.w3.org/1999/xhtml",pr="http://www.w3.org/2000/svg",wr="http://www.w3.org/1998/Math/MathML",yr="@attach";function Be(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Er(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function br(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let G=!1;function mr(e){G=e}let S;function oe(e){if(e===null)throw Be(),Ue;return S=e}function gr(){return oe(Z(S))}function Tr(e){if(G){if(Z(S)!==null)throw Be(),Ue;S=e}}function Ar(e=1){if(G){for(var t=e,n=S;t--;)n=Z(n);S=n}}function xr(e=!0){for(var t=0,n=S;;){if(n.nodeType===_t){var r=n.data;if(r===un){if(t===0)return n;t-=1}else(r===ln||r===on||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(t+=1)}var s=Z(n);e&&n.remove(),n=s}}function Sr(e){if(!e||e.nodeType!==_t)throw Be(),Ue;return e.data}function vt(e){return e===this.v}function _n(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function dt(e){return!_n(e,this.v)}let Ee=!1;function Rr(){Ee=!0}let p=null;function xe(e){p=e}function Nr(e){return Oe().get(e)}function kr(e,t){return Oe().set(e,t),t}function Or(e){return Oe().has(e)}function Dr(){return Oe()}function Cr(e,t=!1,n){p={p,i:!1,c:null,e:null,s:e,x:null,l:Ee&&!t?{s:null,u:null,$:[]}:null}}function Ir(e){var t=p,n=t.e;if(n!==null){t.e=null;for(var r of n)Dt(r)}return t.i=!0,p=t.p,{}}function be(){return!Ee||p!==null&&p.l===null}function Oe(e){return p===null&&Ve(),p.c??=new Map(vn(p)||void 0)}function vn(e){let t=e.p;for(;t!==null;){const n=t.c;if(n!==null)return n;t=t.p}return null}let J=[];function ht(){var e=J;J=[],Zt(e)}function Pe(e){if(J.length===0&&!we){var t=J;queueMicrotask(()=>{t===J&&ht()})}J.push(e)}function dn(){for(;J.length>0;)ht()}function hn(e){var t=d;if(t===null)return v.f|=U,e;if((t.f&ve)===0&&(t.f&ae)===0)throw e;Se(e,t)}function Se(e,t){for(;t!==null;){if((t.f&Wt)!==0){if((t.f&ve)===0)throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}const pn=-7169;function y(e,t){e.f=e.f&pn|t}function Ge(e){(e.f&O)!==0||e.deps===null?y(e,E):y(e,F)}function pt(e){if(e!==null)for(const t of e)(t.f&m)===0||(t.f&re)===0||(t.f^=re,pt(t.deps))}function wn(e,t,n){(e.f&T)!==0?t.add(e):(e.f&F)!==0&&n.add(e),pt(e.deps),y(e,E)}const ge=new Set;let w=null,nt=null,I=null,A=[],De=null,we=!1,ue=null;class fe{current=new Map;previous=new Map;#t=new Set;#s=new Set;#r=0;#a=0;#f=null;#i=new Set;#n=new Set;#e=new Map;is_fork=!1;#l=!1;#o(){return this.is_fork||this.#a>0}skip_effect(t){this.#e.has(t)||this.#e.set(t,{d:[],m:[]})}unskip_effect(t){var n=this.#e.get(t);if(n){this.#e.delete(t);for(var r of n.d)y(r,T),Y(r);for(r of n.m)y(r,F),Y(r)}}process(t){A=[],this.apply();var n=ue=[],r=[];for(const s of t)this.#u(s,n,r);if(ue=null,this.#o()){this.#c(r),this.#c(n);for(const[s,a]of this.#e)bt(s,a)}else{nt=this,w=null;for(const s of this.#t)s(this);this.#t.clear(),this.#r===0&&this.#_(),rt(r),rt(n),this.#i.clear(),this.#n.clear(),nt=null,this.#f?.resolve()}I=null}#u(t,n,r){t.f^=E;for(var s=t.first;s!==null;){var a=s.f,l=(a&(L|X))!==0,o=l&&(a&E)!==0,f=o||(a&P)!==0||this.#e.has(s);if(!f&&s.fn!==null){l?s.f^=E:(a&ae)!==0?n.push(s):me(s)&&((a&$)!==0&&this.#n.add(s),_e(s));var i=s.first;if(i!==null){s=i;continue}}for(;s!==null;){var u=s.next;if(u!==null){s=u;break}s=s.parent}}}#c(t){for(var n=0;n<t.length;n+=1)wn(t[n],this.#i,this.#n)}capture(t,n){n!==b&&!this.previous.has(t)&&this.previous.set(t,n),(t.f&U)===0&&(this.current.set(t,t.v),I?.set(t,t.v))}activate(){w=this,this.apply()}deactivate(){w===this&&(w=null,I=null)}flush(){if(A.length>0)w=this,wt();else if(this.#r===0&&!this.is_fork){for(const t of this.#t)t(this);this.#t.clear(),this.#_(),this.#f?.resolve()}this.deactivate()}discard(){for(const t of this.#s)t(this);this.#s.clear()}#_(){if(ge.size>1){this.previous.clear();var t=w,n=I,r=!0;for(const a of ge){if(a===this){r=!1;continue}const l=[];for(const[f,i]of this.current){if(a.current.has(f))if(r&&i!==a.current.get(f))a.current.set(f,i);else continue;l.push(f)}if(l.length===0)continue;const o=[...a.current.keys()].filter(f=>!this.current.has(f));if(o.length>0){var s=A;A=[];const f=new Set,i=new Map;for(const u of l)yt(u,o,f,i);if(A.length>0){w=a,a.apply();for(const u of A)a.#u(u,[],[]);a.deactivate()}A=s}}w=t,I=n}this.#e.clear(),ge.delete(this)}increment(t){this.#r+=1,t&&(this.#a+=1)}decrement(t){this.#r-=1,t&&(this.#a-=1),!this.#l&&(this.#l=!0,Pe(()=>{this.#l=!1,this.#o()?A.length>0&&this.flush():this.revive()}))}revive(){for(const t of this.#i)this.#n.delete(t),y(t,T),Y(t);for(const t of this.#n)y(t,F),Y(t);this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#s.add(t)}settled(){return(this.#f??=ut()).promise}static ensure(){if(w===null){const t=w=new fe;ge.add(w),we||Pe(()=>{w===t&&t.flush()})}return w}apply(){}}function yn(e){var t=we;we=!0;try{for(var n;;){if(dn(),A.length===0&&(w?.flush(),A.length===0))return De=null,n;wt()}}finally{we=t}}function wt(){var e=null;try{for(var t=0;A.length>0;){var n=fe.ensure();if(t++>1e3){var r,s;En()}n.process(A),B.clear()}}finally{A=[],De=null,ue=null}}function En(){try{rn()}catch(e){Se(e,De)}}let j=null;function rt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(V|P))===0&&me(r)&&(j=new Set,_e(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&It(r),j?.size>0)){B.clear();for(const s of j){if((s.f&(V|P))!==0)continue;const a=[s];let l=s.parent;for(;l!==null;)j.has(l)&&(j.delete(l),a.push(l)),l=l.parent;for(let o=a.length-1;o>=0;o--){const f=a[o];(f.f&(V|P))===0&&_e(f)}}j.clear()}}j=null}}function yt(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const s of e.reactions){const a=s.f;(a&m)!==0?yt(s,t,n,r):(a&(qe|$))!==0&&(a&T)===0&&Et(s,t,r)&&(y(s,T),Y(s))}}function Et(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const s of e.deps){if(ie.call(t,s))return!0;if((s.f&m)!==0&&Et(s,t,n))return n.set(s,!0),!0}return n.set(e,!1),!1}function Y(e){var t=De=e,n=t.b;if(n?.is_pending&&(e.f&(ae|le|He))!==0&&(e.f&ve)===0){n.defer_effect(e);return}for(;t.parent!==null;){t=t.parent;var r=t.f;if(ue!==null&&t===d&&(e.f&le)===0)return;if((r&(X|L))!==0){if((r&E)===0)return;t.f^=E}}A.push(t)}function bt(e,t){if(!((e.f&L)!==0&&(e.f&E)!==0)){(e.f&T)!==0?t.d.push(e):(e.f&F)!==0&&t.m.push(e),y(e,E);for(var n=e.first;n!==null;)bt(n,t),n=n.next}}function mt(e,t,n,r){const s=be()?Ke:gn;var a=e.filter(c=>!c.settled);if(n.length===0&&a.length===0){r(t.map(s));return}var l=d,o=bn(),f=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(c=>c.promise)):null;function i(c){o();try{r(c)}catch(_){(l.f&V)===0&&Se(_,l)}Fe()}if(n.length===0){f.then(()=>i(t.map(s)));return}function u(){o(),Promise.all(n.map(c=>mn(c))).then(c=>i([...t.map(s),...c])).catch(c=>Se(c,l))}f?f.then(u):u()}function bn(){var e=d,t=v,n=p,r=w;return function(a=!0){ce(e),z(t),xe(n),a&&r?.activate()}}function Fe(e=!0){ce(null),z(null),xe(null),e&&w?.deactivate()}function gt(){var e=d.b,t=w,n=e.is_rendered();return e.update_pending_count(1),t.increment(n),()=>{e.update_pending_count(-1),t.decrement(n)}}function Ke(e){var t=m|T,n=v!==null&&(v.f&m)!==0?v:null;return d!==null&&(d.f|=de),{ctx:p,deps:null,effects:null,equals:vt,f:t,fn:e,reactions:null,rv:0,v:b,wv:0,parent:n??d,ac:null}}function mn(e,t,n){d===null&&Qt();var s=void 0,a=$e(b),l=!v,o=new Map;return Mn(()=>{var f=ut();s=f.promise;try{Promise.resolve(e()).then(f.resolve,f.reject).finally(Fe)}catch(_){f.reject(_),Fe()}var i=w;if(l){var u=gt();o.get(i)?.reject(W),o.delete(i),o.set(i,f)}const c=(_,g=void 0)=>{if(i.activate(),g)g!==W&&(a.f|=U,je(a,g));else{(a.f&U)!==0&&(a.f^=U),je(a,_);for(const[h,C]of o){if(o.delete(h),h===i)break;C.reject(W)}}u&&u()};f.promise.then(c,_=>c(null,_||"unknown"))}),Cn(()=>{for(const f of o.values())f.reject(W)}),new Promise(f=>{function i(u){function c(){u===s?f(a):i(s)}u.then(c,c)}i(s)})}function Mr(e){const t=Ke(e);return Ft(t),t}function gn(e){const t=Ke(e);return t.equals=dt,t}function Tn(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)K(t[n])}}function An(e){for(var t=e.parent;t!==null;){if((t.f&m)===0)return(t.f&V)===0?t:null;t=t.parent}return null}function ze(e){var t,n=d;ce(An(e));try{e.f&=~re,Tn(e),t=Ht(e)}finally{ce(n)}return t}function Tt(e){var t=ze(e);if(!e.equals(t)&&(e.wv=jt(),(!w?.is_fork||e.deps===null)&&(e.v=t,e.deps===null))){y(e,E);return}se||(I!==null?(Ot()||w?.is_fork)&&I.set(e,t):Ge(e))}function xn(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(W),t.teardown=Xt,t.ac=null,ye(t,0),We(t))}function At(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&_e(t)}let Le=new Set;const B=new Map;let xt=!1;function $e(e,t){var n={f:0,v:e,reactions:null,equals:vt,rv:0,wv:0};return n}function H(e,t){const n=$e(e);return Ft(n),n}function Pr(e,t=!1,n=!0){const r=$e(e);return t||(r.equals=dt),Ee&&n&&p!==null&&p.l!==null&&(p.l.s??=[]).push(r),r}function q(e,t,n=!1){v!==null&&(!M||(v.f&tt)!==0)&&be()&&(v.f&(m|$|qe|tt))!==0&&(D===null||!ie.call(D,e))&&fn();let r=n?he(t):t;return je(e,r)}function je(e,t){if(!e.equals(t)){var n=e.v;se?B.set(e,t):B.set(e,n),e.v=t;var r=fe.ensure();if(r.capture(e,n),(e.f&m)!==0){const s=e;(e.f&T)!==0&&ze(s),Ge(s)}e.wv=jt(),St(e,T),be()&&d!==null&&(d.f&E)!==0&&(d.f&(L|X))===0&&(k===null?jn([e]):k.push(e)),!r.is_fork&&Le.size>0&&!xt&&Sn()}return t}function Sn(){xt=!1;for(const e of Le)(e.f&E)!==0&&y(e,F),me(e)&&_e(e);Le.clear()}function Fr(e,t=1){var n=ee(e),r=t===1?n++:n--;return q(e,n),r}function Ie(e){q(e,e.v+1)}function St(e,t){var n=e.reactions;if(n!==null)for(var r=be(),s=n.length,a=0;a<s;a++){var l=n[a],o=l.f;if(!(!r&&l===d)){var f=(o&T)===0;if(f&&y(l,t),(o&m)!==0){var i=l;I?.delete(i),(o&re)===0&&(o&O&&(l.f|=re),St(i,F))}else f&&((o&$)!==0&&j!==null&&j.add(l),Y(l))}}}function he(e){if(typeof e!="object"||e===null||te in e)return e;const t=ot(e);if(t!==zt&&t!==$t)return e;var n=new Map,r=Bt(e),s=H(0),a=ne,l=o=>{if(ne===a)return o();var f=v,i=ne;z(null),lt(a);var u=o();return z(f),lt(i),u};return r&&n.set("length",H(e.length)),new Proxy(e,{defineProperty(o,f,i){(!("value"in i)||i.configurable===!1||i.enumerable===!1||i.writable===!1)&&sn();var u=n.get(f);return u===void 0?l(()=>{var c=H(i.value);return n.set(f,c),c}):q(u,i.value,!0),!0},deleteProperty(o,f){var i=n.get(f);if(i===void 0){if(f in o){const u=l(()=>H(b));n.set(f,u),Ie(s)}}else q(i,b),Ie(s);return!0},get(o,f,i){if(f===te)return e;var u=n.get(f),c=f in o;if(u===void 0&&(!c||pe(o,f)?.writable)&&(u=l(()=>{var g=he(c?o[f]:b),h=H(g);return h}),n.set(f,u)),u!==void 0){var _=ee(u);return _===b?void 0:_}return Reflect.get(o,f,i)},getOwnPropertyDescriptor(o,f){var i=Reflect.getOwnPropertyDescriptor(o,f);if(i&&"value"in i){var u=n.get(f);u&&(i.value=ee(u))}else if(i===void 0){var c=n.get(f),_=c?.v;if(c!==void 0&&_!==b)return{enumerable:!0,configurable:!0,value:_,writable:!0}}return i},has(o,f){if(f===te)return!0;var i=n.get(f),u=i!==void 0&&i.v!==b||Reflect.has(o,f);if(i!==void 0||d!==null&&(!u||pe(o,f)?.writable)){i===void 0&&(i=l(()=>{var _=u?he(o[f]):b,g=H(_);return g}),n.set(f,i));var c=ee(i);if(c===b)return!1}return u},set(o,f,i,u){var c=n.get(f),_=f in o;if(r&&f==="length")for(var g=i;g<c.v;g+=1){var h=n.get(g+"");h!==void 0?q(h,b):g in o&&(h=l(()=>H(b)),n.set(g+"",h))}if(c===void 0)(!_||pe(o,f)?.writable)&&(c=l(()=>H(void 0)),q(c,he(i)),n.set(f,c));else{_=c.v!==b;var C=l(()=>he(i));q(c,C)}var Je=Reflect.getOwnPropertyDescriptor(o,f);if(Je?.set&&Je.set.call(u,i),!_){if(r&&typeof f=="string"){var Qe=n.get("length"),Ce=Number(f);Number.isInteger(Ce)&&Ce>=Qe.v&&q(Qe,Ce+1)}Ie(s)}return!0},ownKeys(o){ee(s);var f=Reflect.ownKeys(o).filter(c=>{var _=n.get(c);return _===void 0||_.v!==b});for(var[i,u]of n)u.v!==b&&!(i in o)&&f.push(i);return f},setPrototypeOf(){an()}})}function st(e){try{if(e!==null&&typeof e=="object"&&te in e)return e[te]}catch{}return e}function Lr(e,t){return Object.is(st(e),st(t))}var at,Rn,Nn,Rt,Nt;function jr(){if(at===void 0){at=window,Rn=document,Nn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Rt=pe(t,"firstChild").get,Nt=pe(t,"nextSibling").get,et(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),et(n)&&(n.__t=void 0)}}function Re(e=""){return document.createTextNode(e)}function Ne(e){return Rt.call(e)}function Z(e){return Nt.call(e)}function Yr(e,t){if(!G)return Ne(e);var n=Ne(S);if(n===null)n=S.appendChild(Re());else if(t&&n.nodeType!==ke){var r=Re();return n?.before(r),oe(r),r}return t&&Xe(n),oe(n),n}function Hr(e,t=!1){if(!G){var n=Ne(e);return n instanceof Comment&&n.data===""?Z(n):n}if(t){if(S?.nodeType!==ke){var r=Re();return S?.before(r),oe(r),r}Xe(S)}return S}function qr(e,t=1,n=!1){let r=G?S:e;for(var s;t--;)s=r,r=Z(r);if(!G)return r;if(n){if(r?.nodeType!==ke){var a=Re();return r===null?s?.after(a):r.before(a),oe(a),a}Xe(r)}return oe(r),r}function kn(e){e.textContent=""}function Vr(){return!1}function Ur(e,t,n){return document.createElementNS(t??cn,e,void 0)}function Xe(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===ke;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function Br(e,t){if(t){const n=document.body;e.autofocus=!0,Pe(()=>{document.activeElement===n&&e.focus()})}}function Gr(e){G&&Ne(e)!==null&&kn(e)}let ft=!1;function On(){ft||(ft=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function Ze(e){var t=v,n=d;z(null),ce(null);try{return e()}finally{z(t),ce(n)}}function Kr(e,t,n,r=n){e.addEventListener(t,()=>Ze(n));const s=e.__on_r;s?e.__on_r=()=>{s(),r(!0)}:e.__on_r=()=>r(!0),On()}function kt(e){d===null&&(v===null&&nn(),tn()),se&&en()}function Dn(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function N(e,t){var n=d;n!==null&&(n.f&P)!==0&&(e|=P);var r={ctx:p,deps:null,nodes:null,f:e|T|O,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},s=r;if((e&ae)!==0)ue!==null?ue.push(r):Y(r);else if(t!==null){try{_e(r)}catch(l){throw K(r),l}s.deps===null&&s.teardown===null&&s.nodes===null&&s.first===s.last&&(s.f&de)===0&&(s=s.first,(e&$)!==0&&(e&Ae)!==0&&s!==null&&(s.f|=Ae))}if(s!==null&&(s.parent=n,n!==null&&Dn(s,n),v!==null&&(v.f&m)!==0&&(e&X)===0)){var a=v;(a.effects??=[]).push(s)}return r}function Ot(){return v!==null&&!M}function Cn(e){const t=N(le,null);return y(t,E),t.teardown=e,t}function In(e){kt();var t=d.f,n=!v&&(t&L)!==0&&(t&ve)===0;if(n){var r=p;(r.e??=[]).push(e)}else return Dt(e)}function Dt(e){return N(ae|ct,e)}function zr(e){return kt(),N(le|ct,e)}function $r(e){fe.ensure();const t=N(X|de,e);return()=>{K(t)}}function Xr(e){fe.ensure();const t=N(X|de,e);return(n={})=>new Promise(r=>{n.outro?Ln(t,()=>{K(t),r(void 0)}):(K(t),r(void 0))})}function Zr(e){return N(ae,e)}function Mn(e){return N(qe|de,e)}function Wr(e,t=0){return N(le|t,e)}function Jr(e,t=[],n=[],r=[]){mt(r,t,n,s=>{N(le,()=>e(...s.map(ee)))})}function Qr(e,t=[],n=[],r=[]){if(n.length>0||r.length>0)var s=gt();mt(r,t,n,a=>{N(ae,()=>e(...a.map(ee))),s&&s()})}function es(e,t=0){var n=N($|t,e);return n}function ts(e,t=0){var n=N(He|t,e);return n}function ns(e){return N(L|de,e)}function Ct(e){var t=e.teardown;if(t!==null){const n=se,r=v;it(!0),z(null);try{t.call(null)}finally{it(n),z(r)}}}function We(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const s=n.ac;s!==null&&Ze(()=>{s.abort(W)});var r=n.next;(n.f&X)!==0?n.parent=null:K(n,t),n=r}}function Pn(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&L)===0&&K(t),t=n}}function K(e,t=!0){var n=!1;(t||(e.f&Jt)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Fn(e.nodes.start,e.nodes.end),n=!0),We(e,t&&!n),ye(e,0),y(e,V);var r=e.nodes&&e.nodes.t;if(r!==null)for(const a of r)a.stop();Ct(e);var s=e.parent;s!==null&&s.first!==null&&It(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function Fn(e,t){for(;e!==null;){var n=e===t?null:Z(e);e.remove(),e=n}}function It(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function Ln(e,t,n=!0){var r=[];Mt(e,r,!0);var s=()=>{n&&K(e),t&&t()},a=r.length;if(a>0){var l=()=>--a||s();for(var o of r)o.out(l)}else s()}function Mt(e,t,n){if((e.f&P)===0){e.f^=P;var r=e.nodes&&e.nodes.t;if(r!==null)for(const o of r)(o.is_global||n)&&t.push(o);for(var s=e.first;s!==null;){var a=s.next,l=(s.f&Ae)!==0||(s.f&L)!==0&&(e.f&$)!==0;Mt(s,t,l?n:!1),s=a}}}function rs(e){Pt(e,!0)}function Pt(e,t){if((e.f&P)!==0){e.f^=P,(e.f&E)===0&&(y(e,T),Y(e));for(var n=e.first;n!==null;){var r=n.next,s=(n.f&Ae)!==0||(n.f&L)!==0;Pt(n,s?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(const l of a)(l.is_global||t)&&l.in()}}function ss(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var s=n===r?null:Z(n);t.append(n),n=s}}let Te=!1,se=!1;function it(e){se=e}let v=null,M=!1;function z(e){v=e}let d=null;function ce(e){d=e}let D=null;function Ft(e){v!==null&&(D===null?D=[e]:D.push(e))}let x=null,R=0,k=null;function jn(e){k=e}let Lt=1,Q=0,ne=Q;function lt(e){ne=e}function jt(){return++Lt}function me(e){var t=e.f;if((t&T)!==0)return!0;if(t&m&&(e.f&=~re),(t&F)!==0){for(var n=e.deps,r=n.length,s=0;s<r;s++){var a=n[s];if(me(a)&&Tt(a),a.wv>e.wv)return!0}(t&O)!==0&&I===null&&y(e,E)}return!1}function Yt(e,t,n=!0){var r=e.reactions;if(r!==null&&!(D!==null&&ie.call(D,e)))for(var s=0;s<r.length;s++){var a=r[s];(a.f&m)!==0?Yt(a,t,!1):t===a&&(n?y(a,T):(a.f&E)!==0&&y(a,F),Y(a))}}function Ht(e){var t=x,n=R,r=k,s=v,a=D,l=p,o=M,f=ne,i=e.f;x=null,R=0,k=null,v=(i&(L|X))===0?e:null,D=null,xe(e.ctx),M=!1,ne=++Q,e.ac!==null&&(Ze(()=>{e.ac.abort(W)}),e.ac=null);try{e.f|=Me;var u=e.fn,c=u();e.f|=ve;var _=e.deps,g=w?.is_fork;if(x!==null){var h;if(g||ye(e,R),_!==null&&R>0)for(_.length=R+x.length,h=0;h<x.length;h++)_[R+h]=x[h];else e.deps=_=x;if(Ot()&&(e.f&O)!==0)for(h=R;h<_.length;h++)(_[h].reactions??=[]).push(e)}else!g&&_!==null&&R<_.length&&(ye(e,R),_.length=R);if(be()&&k!==null&&!M&&_!==null&&(e.f&(m|F|T))===0)for(h=0;h<k.length;h++)Yt(k[h],e);if(s!==null&&s!==e){if(Q++,s.deps!==null)for(let C=0;C<n;C+=1)s.deps[C].rv=Q;if(t!==null)for(const C of t)C.rv=Q;k!==null&&(r===null?r=k:r.push(...k))}return(e.f&U)!==0&&(e.f^=U),c}catch(C){return hn(C)}finally{e.f^=Me,x=t,R=n,k=r,v=s,D=a,xe(l),M=o,ne=f}}function Yn(e,t){let n=t.reactions;if(n!==null){var r=Gt.call(n,e);if(r!==-1){var s=n.length-1;s===0?n=t.reactions=null:(n[r]=n[s],n.pop())}}if(n===null&&(t.f&m)!==0&&(x===null||!ie.call(x,t))){var a=t;(a.f&O)!==0&&(a.f^=O,a.f&=~re),Ge(a),xn(a),ye(a,0)}}function ye(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Yn(e,n[r])}function _e(e){var t=e.f;if((t&V)===0){y(e,E);var n=d,r=Te;d=e,Te=!0;try{(t&($|He))!==0?Pn(e):We(e),Ct(e);var s=Ht(e);e.teardown=typeof s=="function"?s:null,e.wv=Lt;var a}finally{Te=r,d=n}}}async function as(){await Promise.resolve(),yn()}function fs(){return fe.ensure().settled()}function ee(e){var t=e.f,n=(t&m)!==0;if(v!==null&&!M){var r=d!==null&&(d.f&V)!==0;if(!r&&(D===null||!ie.call(D,e))){var s=v.deps;if((v.f&Me)!==0)e.rv<Q&&(e.rv=Q,x===null&&s!==null&&s[R]===e?R++:x===null?x=[e]:x.push(e));else{(v.deps??=[]).push(e);var a=e.reactions;a===null?e.reactions=[v]:ie.call(a,v)||a.push(v)}}}if(se&&B.has(e))return B.get(e);if(n){var l=e;if(se){var o=l.v;return((l.f&E)===0&&l.reactions!==null||Vt(l))&&(o=ze(l)),B.set(l,o),o}var f=(l.f&O)===0&&!M&&v!==null&&(Te||(v.f&O)!==0),i=(l.f&ve)===0;me(l)&&(f&&(l.f|=O),Tt(l)),f&&!i&&(At(l),qt(l))}if(I?.has(e))return I.get(e);if((e.f&U)!==0)throw e.v;return e.v}function qt(e){if(e.f|=O,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&m)!==0&&(t.f&O)===0&&(At(t),qt(t))}function Vt(e){if(e.v===b)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(B.has(t)||(t.f&m)!==0&&Vt(t))return!0;return!1}function Ut(e){var t=M;try{return M=!0,e()}finally{M=t}}function is(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(te in e)Ye(e);else if(!Array.isArray(e))for(let t in e){const n=e[t];typeof n=="object"&&n&&te in n&&Ye(n)}}}function Ye(e,t=new Set){if(typeof e=="object"&&e!==null&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let r in e)try{Ye(e[r],t)}catch{}const n=ot(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const r=Kt(n);for(let s in r){const a=r[s].get;if(a)try{a.call(e)}catch{}}}}}function Hn(e){p===null&&Ve(),Ee&&p.l!==null?qn(p).m.push(e):In(()=>{const t=Ut(e);if(typeof t=="function")return t})}function ls(e){p===null&&Ve(),Hn(()=>()=>Ut(e))}function qn(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}export{Rn as $,In as A,Ut as B,Zt as C,Gn as D,Ae as E,ee as F,is as G,ln as H,Ke as I,Rr as J,Jt as K,de as L,_t as M,Z as N,Ne as O,H as P,he as Q,kr as R,Hn as S,q as T,Qr as U,Hr as V,Fr as W,at as X,Mr as Y,Ot as Z,Wr as _,gr as a,ot as a$,$e as a0,Ie as a1,Pe as a2,d as a3,Wt as a4,on as a5,hr as a6,fe as a7,y as a8,T as a9,tr as aA,se as aB,V as aC,_r as aD,cr as aE,Ee as aF,or as aG,lr as aH,gn as aI,yn as aJ,Un as aK,Pr as aL,as as aM,Cn as aN,Ze as aO,Ur as aP,Nn as aQ,vr as aR,dr as aS,ve as aT,ke as aU,Xe as aV,ts as aW,Bt as aX,Er as aY,Lr as aZ,cn as a_,Y as aa,F as ab,wn as ac,ce as ad,z as ae,xe as af,hn as ag,v as ah,je as ai,Se as aj,nr as ak,br as al,jr as am,Ue as an,er as ao,kn as ap,Xr as aq,Vn as ar,un as as,Be as at,Zr as au,te as av,ur as aw,Bn as ax,$n as ay,pe as az,es as b,mt as b0,yr as b1,Wn as b2,Br as b3,b as b4,On as b5,Xn as b6,Kt as b7,Fn as b8,pr as b9,wr as ba,Gr as bb,ls as bc,Qn as bd,ar as be,sr as bf,rr as bg,ir as bh,zn as bi,P as bj,L as bk,fr as bl,Jn as bm,Kr as bn,nt as bo,Kn as bp,Xt as bq,be as br,ne as bs,Or as bt,Dr as bu,$r as bv,_n as bw,fs as bx,oe as c,mr as d,S as e,rs as f,K as g,G as h,Re as i,ns as j,w as k,Vr as l,ss as m,Cr as n,Nr as o,Ln as p,Ir as q,Sr as r,xr as s,Yr as t,qr as u,Ar as v,Tr as w,Jr as x,p as y,zr as z};
1
+ var Bt=Array.isArray,Gt=Array.prototype.indexOf,ie=Array.prototype.includes,Vn=Array.from,Un=Object.defineProperty,pe=Object.getOwnPropertyDescriptor,Kt=Object.getOwnPropertyDescriptors,zt=Object.prototype,$t=Array.prototype,ot=Object.getPrototypeOf,et=Object.isExtensible;function Bn(e){return typeof e=="function"}const Xt=()=>{};function Gn(e){return e()}function Zt(e){for(var t=0;t<e.length;t++)e[t]()}function ut(){var e,t,n=new Promise((r,s)=>{e=r,t=s});return{promise:n,resolve:e,reject:t}}function Kn(e,t){if(Array.isArray(e))return e;if(!(Symbol.iterator in e))return Array.from(e);const n=[];for(const r of e)if(n.push(r),n.length===t)break;return n}const m=2,ae=4,le=8,He=1<<24,$=16,L=32,X=64,Wt=128,O=512,E=1024,T=2048,F=4096,P=8192,V=16384,ve=32768,Ae=65536,tt=1<<17,Jt=1<<18,de=1<<19,ct=1<<20,zn=1<<25,re=65536,Me=1<<21,qe=1<<22,U=1<<23,te=Symbol("$state"),$n=Symbol("legacy props"),Xn=Symbol(""),W=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Wn=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),Jn=1,ke=3,_t=8;function Ve(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Qt(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Qn(e,t,n){throw new Error("https://svelte.dev/e/each_key_duplicate")}function en(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function tn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function nn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function rn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function er(){throw new Error("https://svelte.dev/e/hydration_failed")}function tr(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function sn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function an(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function fn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function nr(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const rr=1,sr=2,ar=4,fr=8,ir=16,lr=1,or=2,ur=4,cr=8,_r=16,vr=1,dr=2,ln="[",on="[!",hr="[?",un="]",Ue={},b=Symbol(),cn="http://www.w3.org/1999/xhtml",pr="http://www.w3.org/2000/svg",wr="http://www.w3.org/1998/Math/MathML",yr="@attach";function Be(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Er(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function br(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let G=!1;function mr(e){G=e}let S;function oe(e){if(e===null)throw Be(),Ue;return S=e}function gr(){return oe(Z(S))}function Tr(e){if(G){if(Z(S)!==null)throw Be(),Ue;S=e}}function Ar(e=1){if(G){for(var t=e,n=S;t--;)n=Z(n);S=n}}function xr(e=!0){for(var t=0,n=S;;){if(n.nodeType===_t){var r=n.data;if(r===un){if(t===0)return n;t-=1}else(r===ln||r===on||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(t+=1)}var s=Z(n);e&&n.remove(),n=s}}function Sr(e){if(!e||e.nodeType!==_t)throw Be(),Ue;return e.data}function vt(e){return e===this.v}function _n(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function dt(e){return!_n(e,this.v)}let Ee=!1;function Rr(){Ee=!0}let p=null;function xe(e){p=e}function Nr(e){return Oe().get(e)}function kr(e,t){return Oe().set(e,t),t}function Or(e){return Oe().has(e)}function Dr(){return Oe()}function Cr(e,t=!1,n){p={p,i:!1,c:null,e:null,s:e,x:null,l:Ee&&!t?{s:null,u:null,$:[]}:null}}function Ir(e){var t=p,n=t.e;if(n!==null){t.e=null;for(var r of n)Dt(r)}return t.i=!0,p=t.p,{}}function be(){return!Ee||p!==null&&p.l===null}function Oe(e){return p===null&&Ve(),p.c??=new Map(vn(p)||void 0)}function vn(e){let t=e.p;for(;t!==null;){const n=t.c;if(n!==null)return n;t=t.p}return null}let J=[];function ht(){var e=J;J=[],Zt(e)}function Pe(e){if(J.length===0&&!we){var t=J;queueMicrotask(()=>{t===J&&ht()})}J.push(e)}function dn(){for(;J.length>0;)ht()}function hn(e){var t=d;if(t===null)return v.f|=U,e;if((t.f&ve)===0&&(t.f&ae)===0)throw e;Se(e,t)}function Se(e,t){for(;t!==null;){if((t.f&Wt)!==0){if((t.f&ve)===0)throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}const pn=-7169;function y(e,t){e.f=e.f&pn|t}function Ge(e){(e.f&O)!==0||e.deps===null?y(e,E):y(e,F)}function pt(e){if(e!==null)for(const t of e)(t.f&m)===0||(t.f&re)===0||(t.f^=re,pt(t.deps))}function wn(e,t,n){(e.f&T)!==0?t.add(e):(e.f&F)!==0&&n.add(e),pt(e.deps),y(e,E)}const ge=new Set;let w=null,nt=null,I=null,A=[],De=null,we=!1,ue=null;class fe{current=new Map;previous=new Map;#t=new Set;#s=new Set;#r=0;#a=0;#f=null;#i=new Set;#n=new Set;#e=new Map;is_fork=!1;#l=!1;#o(){return this.is_fork||this.#a>0}skip_effect(t){this.#e.has(t)||this.#e.set(t,{d:[],m:[]})}unskip_effect(t){var n=this.#e.get(t);if(n){this.#e.delete(t);for(var r of n.d)y(r,T),Y(r);for(r of n.m)y(r,F),Y(r)}}process(t){A=[],this.apply();var n=ue=[],r=[];for(const s of t)this.#u(s,n,r);if(ue=null,this.#o()){this.#c(r),this.#c(n);for(const[s,a]of this.#e)bt(s,a)}else{nt=this,w=null;for(const s of this.#t)s(this);this.#t.clear(),this.#r===0&&this.#_(),rt(r),rt(n),this.#i.clear(),this.#n.clear(),nt=null,this.#f?.resolve()}I=null}#u(t,n,r){t.f^=E;for(var s=t.first;s!==null;){var a=s.f,l=(a&(L|X))!==0,o=l&&(a&E)!==0,f=o||(a&P)!==0||this.#e.has(s);if(!f&&s.fn!==null){l?s.f^=E:(a&ae)!==0?n.push(s):me(s)&&((a&$)!==0&&this.#n.add(s),_e(s));var i=s.first;if(i!==null){s=i;continue}}for(;s!==null;){var u=s.next;if(u!==null){s=u;break}s=s.parent}}}#c(t){for(var n=0;n<t.length;n+=1)wn(t[n],this.#i,this.#n)}capture(t,n){n!==b&&!this.previous.has(t)&&this.previous.set(t,n),(t.f&U)===0&&(this.current.set(t,t.v),I?.set(t,t.v))}activate(){w=this,this.apply()}deactivate(){w===this&&(w=null,I=null)}flush(){if(A.length>0)w=this,wt();else if(this.#r===0&&!this.is_fork){for(const t of this.#t)t(this);this.#t.clear(),this.#_(),this.#f?.resolve()}this.deactivate()}discard(){for(const t of this.#s)t(this);this.#s.clear()}#_(){if(ge.size>1){this.previous.clear();var t=w,n=I,r=!0;for(const a of ge){if(a===this){r=!1;continue}const l=[];for(const[f,i]of this.current){if(a.current.has(f))if(r&&i!==a.current.get(f))a.current.set(f,i);else continue;l.push(f)}if(l.length===0)continue;const o=[...a.current.keys()].filter(f=>!this.current.has(f));if(o.length>0){var s=A;A=[];const f=new Set,i=new Map;for(const u of l)yt(u,o,f,i);if(A.length>0){w=a,a.apply();for(const u of A)a.#u(u,[],[]);a.deactivate()}A=s}}w=t,I=n}this.#e.clear(),ge.delete(this)}increment(t){this.#r+=1,t&&(this.#a+=1)}decrement(t){this.#r-=1,t&&(this.#a-=1),!this.#l&&(this.#l=!0,Pe(()=>{this.#l=!1,this.#o()?A.length>0&&this.flush():this.revive()}))}revive(){for(const t of this.#i)this.#n.delete(t),y(t,T),Y(t);for(const t of this.#n)y(t,F),Y(t);this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#s.add(t)}settled(){return(this.#f??=ut()).promise}static ensure(){if(w===null){const t=w=new fe;ge.add(w),we||Pe(()=>{w===t&&t.flush()})}return w}apply(){}}function yn(e){var t=we;we=!0;try{for(var n;;){if(dn(),A.length===0&&(w?.flush(),A.length===0))return De=null,n;wt()}}finally{we=t}}function wt(){var e=null;try{for(var t=0;A.length>0;){var n=fe.ensure();if(t++>1e3){var r,s;En()}n.process(A),B.clear()}}finally{A=[],De=null,ue=null}}function En(){try{rn()}catch(e){Se(e,De)}}let j=null;function rt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(V|P))===0&&me(r)&&(j=new Set,_e(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&It(r),j?.size>0)){B.clear();for(const s of j){if((s.f&(V|P))!==0)continue;const a=[s];let l=s.parent;for(;l!==null;)j.has(l)&&(j.delete(l),a.push(l)),l=l.parent;for(let o=a.length-1;o>=0;o--){const f=a[o];(f.f&(V|P))===0&&_e(f)}}j.clear()}}j=null}}function yt(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const s of e.reactions){const a=s.f;(a&m)!==0?yt(s,t,n,r):(a&(qe|$))!==0&&(a&T)===0&&Et(s,t,r)&&(y(s,T),Y(s))}}function Et(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const s of e.deps){if(ie.call(t,s))return!0;if((s.f&m)!==0&&Et(s,t,n))return n.set(s,!0),!0}return n.set(e,!1),!1}function Y(e){var t=De=e,n=t.b;if(n?.is_pending&&(e.f&(ae|le|He))!==0&&(e.f&ve)===0){n.defer_effect(e);return}for(;t.parent!==null;){t=t.parent;var r=t.f;if(ue!==null&&t===d&&(e.f&le)===0)return;if((r&(X|L))!==0){if((r&E)===0)return;t.f^=E}}A.push(t)}function bt(e,t){if(!((e.f&L)!==0&&(e.f&E)!==0)){(e.f&T)!==0?t.d.push(e):(e.f&F)!==0&&t.m.push(e),y(e,E);for(var n=e.first;n!==null;)bt(n,t),n=n.next}}function mt(e,t,n,r){const s=be()?Ke:gn;var a=e.filter(c=>!c.settled);if(n.length===0&&a.length===0){r(t.map(s));return}var l=d,o=bn(),f=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(c=>c.promise)):null;function i(c){o();try{r(c)}catch(_){(l.f&V)===0&&Se(_,l)}Fe()}if(n.length===0){f.then(()=>i(t.map(s)));return}function u(){o(),Promise.all(n.map(c=>mn(c))).then(c=>i([...t.map(s),...c])).catch(c=>Se(c,l))}f?f.then(u):u()}function bn(){var e=d,t=v,n=p,r=w;return function(a=!0){ce(e),z(t),xe(n),a&&r?.activate()}}function Fe(e=!0){ce(null),z(null),xe(null),e&&w?.deactivate()}function gt(){var e=d.b,t=w,n=e.is_rendered();return e.update_pending_count(1),t.increment(n),()=>{e.update_pending_count(-1),t.decrement(n)}}function Ke(e){var t=m|T,n=v!==null&&(v.f&m)!==0?v:null;return d!==null&&(d.f|=de),{ctx:p,deps:null,effects:null,equals:vt,f:t,fn:e,reactions:null,rv:0,v:b,wv:0,parent:n??d,ac:null}}function mn(e,t,n){d===null&&Qt();var s=void 0,a=$e(b),l=!v,o=new Map;return Mn(()=>{var f=ut();s=f.promise;try{Promise.resolve(e()).then(f.resolve,f.reject).finally(Fe)}catch(_){f.reject(_),Fe()}var i=w;if(l){var u=gt();o.get(i)?.reject(W),o.delete(i),o.set(i,f)}const c=(_,g=void 0)=>{if(i.activate(),g)g!==W&&(a.f|=U,je(a,g));else{(a.f&U)!==0&&(a.f^=U),je(a,_);for(const[h,C]of o){if(o.delete(h),h===i)break;C.reject(W)}}u&&u()};f.promise.then(c,_=>c(null,_||"unknown"))}),Cn(()=>{for(const f of o.values())f.reject(W)}),new Promise(f=>{function i(u){function c(){u===s?f(a):i(s)}u.then(c,c)}i(s)})}function Mr(e){const t=Ke(e);return Ft(t),t}function gn(e){const t=Ke(e);return t.equals=dt,t}function Tn(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)K(t[n])}}function An(e){for(var t=e.parent;t!==null;){if((t.f&m)===0)return(t.f&V)===0?t:null;t=t.parent}return null}function ze(e){var t,n=d;ce(An(e));try{e.f&=~re,Tn(e),t=Ht(e)}finally{ce(n)}return t}function Tt(e){var t=ze(e);if(!e.equals(t)&&(e.wv=jt(),(!w?.is_fork||e.deps===null)&&(e.v=t,e.deps===null))){y(e,E);return}se||(I!==null?(Ot()||w?.is_fork)&&I.set(e,t):Ge(e))}function xn(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(W),t.teardown=Xt,t.ac=null,ye(t,0),We(t))}function At(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&_e(t)}let Le=new Set;const B=new Map;let xt=!1;function $e(e,t){var n={f:0,v:e,reactions:null,equals:vt,rv:0,wv:0};return n}function H(e,t){const n=$e(e);return Ft(n),n}function Pr(e,t=!1,n=!0){const r=$e(e);return t||(r.equals=dt),Ee&&n&&p!==null&&p.l!==null&&(p.l.s??=[]).push(r),r}function q(e,t,n=!1){v!==null&&(!M||(v.f&tt)!==0)&&be()&&(v.f&(m|$|qe|tt))!==0&&(D===null||!ie.call(D,e))&&fn();let r=n?he(t):t;return je(e,r)}function je(e,t){if(!e.equals(t)){var n=e.v;se?B.set(e,t):B.set(e,n),e.v=t;var r=fe.ensure();if(r.capture(e,n),(e.f&m)!==0){const s=e;(e.f&T)!==0&&ze(s),Ge(s)}e.wv=jt(),St(e,T),be()&&d!==null&&(d.f&E)!==0&&(d.f&(L|X))===0&&(k===null?jn([e]):k.push(e)),!r.is_fork&&Le.size>0&&!xt&&Sn()}return t}function Sn(){xt=!1;for(const e of Le)(e.f&E)!==0&&y(e,F),me(e)&&_e(e);Le.clear()}function Fr(e,t=1){var n=ee(e),r=t===1?n++:n--;return q(e,n),r}function Ie(e){q(e,e.v+1)}function St(e,t){var n=e.reactions;if(n!==null)for(var r=be(),s=n.length,a=0;a<s;a++){var l=n[a],o=l.f;if(!(!r&&l===d)){var f=(o&T)===0;if(f&&y(l,t),(o&m)!==0){var i=l;I?.delete(i),(o&re)===0&&(o&O&&(l.f|=re),St(i,F))}else f&&((o&$)!==0&&j!==null&&j.add(l),Y(l))}}}function he(e){if(typeof e!="object"||e===null||te in e)return e;const t=ot(e);if(t!==zt&&t!==$t)return e;var n=new Map,r=Bt(e),s=H(0),a=ne,l=o=>{if(ne===a)return o();var f=v,i=ne;z(null),lt(a);var u=o();return z(f),lt(i),u};return r&&n.set("length",H(e.length)),new Proxy(e,{defineProperty(o,f,i){(!("value"in i)||i.configurable===!1||i.enumerable===!1||i.writable===!1)&&sn();var u=n.get(f);return u===void 0?l(()=>{var c=H(i.value);return n.set(f,c),c}):q(u,i.value,!0),!0},deleteProperty(o,f){var i=n.get(f);if(i===void 0){if(f in o){const u=l(()=>H(b));n.set(f,u),Ie(s)}}else q(i,b),Ie(s);return!0},get(o,f,i){if(f===te)return e;var u=n.get(f),c=f in o;if(u===void 0&&(!c||pe(o,f)?.writable)&&(u=l(()=>{var g=he(c?o[f]:b),h=H(g);return h}),n.set(f,u)),u!==void 0){var _=ee(u);return _===b?void 0:_}return Reflect.get(o,f,i)},getOwnPropertyDescriptor(o,f){var i=Reflect.getOwnPropertyDescriptor(o,f);if(i&&"value"in i){var u=n.get(f);u&&(i.value=ee(u))}else if(i===void 0){var c=n.get(f),_=c?.v;if(c!==void 0&&_!==b)return{enumerable:!0,configurable:!0,value:_,writable:!0}}return i},has(o,f){if(f===te)return!0;var i=n.get(f),u=i!==void 0&&i.v!==b||Reflect.has(o,f);if(i!==void 0||d!==null&&(!u||pe(o,f)?.writable)){i===void 0&&(i=l(()=>{var _=u?he(o[f]):b,g=H(_);return g}),n.set(f,i));var c=ee(i);if(c===b)return!1}return u},set(o,f,i,u){var c=n.get(f),_=f in o;if(r&&f==="length")for(var g=i;g<c.v;g+=1){var h=n.get(g+"");h!==void 0?q(h,b):g in o&&(h=l(()=>H(b)),n.set(g+"",h))}if(c===void 0)(!_||pe(o,f)?.writable)&&(c=l(()=>H(void 0)),q(c,he(i)),n.set(f,c));else{_=c.v!==b;var C=l(()=>he(i));q(c,C)}var Je=Reflect.getOwnPropertyDescriptor(o,f);if(Je?.set&&Je.set.call(u,i),!_){if(r&&typeof f=="string"){var Qe=n.get("length"),Ce=Number(f);Number.isInteger(Ce)&&Ce>=Qe.v&&q(Qe,Ce+1)}Ie(s)}return!0},ownKeys(o){ee(s);var f=Reflect.ownKeys(o).filter(c=>{var _=n.get(c);return _===void 0||_.v!==b});for(var[i,u]of n)u.v!==b&&!(i in o)&&f.push(i);return f},setPrototypeOf(){an()}})}function st(e){try{if(e!==null&&typeof e=="object"&&te in e)return e[te]}catch{}return e}function Lr(e,t){return Object.is(st(e),st(t))}var at,Rn,Nn,Rt,Nt;function jr(){if(at===void 0){at=window,Rn=document,Nn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Rt=pe(t,"firstChild").get,Nt=pe(t,"nextSibling").get,et(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),et(n)&&(n.__t=void 0)}}function Re(e=""){return document.createTextNode(e)}function Ne(e){return Rt.call(e)}function Z(e){return Nt.call(e)}function Yr(e,t){if(!G)return Ne(e);var n=Ne(S);if(n===null)n=S.appendChild(Re());else if(t&&n.nodeType!==ke){var r=Re();return n?.before(r),oe(r),r}return t&&Xe(n),oe(n),n}function Hr(e,t=!1){if(!G){var n=Ne(e);return n instanceof Comment&&n.data===""?Z(n):n}if(t){if(S?.nodeType!==ke){var r=Re();return S?.before(r),oe(r),r}Xe(S)}return S}function qr(e,t=1,n=!1){let r=G?S:e;for(var s;t--;)s=r,r=Z(r);if(!G)return r;if(n){if(r?.nodeType!==ke){var a=Re();return r===null?s?.after(a):r.before(a),oe(a),a}Xe(r)}return oe(r),r}function kn(e){e.textContent=""}function Vr(){return!1}function Ur(e,t,n){return document.createElementNS(t??cn,e,void 0)}function Xe(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===ke;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function Br(e,t){if(t){const n=document.body;e.autofocus=!0,Pe(()=>{document.activeElement===n&&e.focus()})}}function Gr(e){G&&Ne(e)!==null&&kn(e)}let ft=!1;function On(){ft||(ft=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function Ze(e){var t=v,n=d;z(null),ce(null);try{return e()}finally{z(t),ce(n)}}function Kr(e,t,n,r=n){e.addEventListener(t,()=>Ze(n));const s=e.__on_r;s?e.__on_r=()=>{s(),r(!0)}:e.__on_r=()=>r(!0),On()}function kt(e){d===null&&(v===null&&nn(),tn()),se&&en()}function Dn(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function N(e,t){var n=d;n!==null&&(n.f&P)!==0&&(e|=P);var r={ctx:p,deps:null,nodes:null,f:e|T|O,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},s=r;if((e&ae)!==0)ue!==null?ue.push(r):Y(r);else if(t!==null){try{_e(r)}catch(l){throw K(r),l}s.deps===null&&s.teardown===null&&s.nodes===null&&s.first===s.last&&(s.f&de)===0&&(s=s.first,(e&$)!==0&&(e&Ae)!==0&&s!==null&&(s.f|=Ae))}if(s!==null&&(s.parent=n,n!==null&&Dn(s,n),v!==null&&(v.f&m)!==0&&(e&X)===0)){var a=v;(a.effects??=[]).push(s)}return r}function Ot(){return v!==null&&!M}function Cn(e){const t=N(le,null);return y(t,E),t.teardown=e,t}function In(e){kt();var t=d.f,n=!v&&(t&L)!==0&&(t&ve)===0;if(n){var r=p;(r.e??=[]).push(e)}else return Dt(e)}function Dt(e){return N(ae|ct,e)}function zr(e){return kt(),N(le|ct,e)}function $r(e){fe.ensure();const t=N(X|de,e);return()=>{K(t)}}function Xr(e){fe.ensure();const t=N(X|de,e);return(n={})=>new Promise(r=>{n.outro?Ln(t,()=>{K(t),r(void 0)}):(K(t),r(void 0))})}function Zr(e){return N(ae,e)}function Mn(e){return N(qe|de,e)}function Wr(e,t=0){return N(le|t,e)}function Jr(e,t=[],n=[],r=[]){mt(r,t,n,s=>{N(le,()=>e(...s.map(ee)))})}function Qr(e,t=[],n=[],r=[]){if(n.length>0||r.length>0)var s=gt();mt(r,t,n,a=>{N(ae,()=>e(...a.map(ee))),s&&s()})}function es(e,t=0){var n=N($|t,e);return n}function ts(e,t=0){var n=N(He|t,e);return n}function ns(e){return N(L|de,e)}function Ct(e){var t=e.teardown;if(t!==null){const n=se,r=v;it(!0),z(null);try{t.call(null)}finally{it(n),z(r)}}}function We(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const s=n.ac;s!==null&&Ze(()=>{s.abort(W)});var r=n.next;(n.f&X)!==0?n.parent=null:K(n,t),n=r}}function Pn(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&L)===0&&K(t),t=n}}function K(e,t=!0){var n=!1;(t||(e.f&Jt)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Fn(e.nodes.start,e.nodes.end),n=!0),We(e,t&&!n),ye(e,0),y(e,V);var r=e.nodes&&e.nodes.t;if(r!==null)for(const a of r)a.stop();Ct(e);var s=e.parent;s!==null&&s.first!==null&&It(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function Fn(e,t){for(;e!==null;){var n=e===t?null:Z(e);e.remove(),e=n}}function It(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function Ln(e,t,n=!0){var r=[];Mt(e,r,!0);var s=()=>{n&&K(e),t&&t()},a=r.length;if(a>0){var l=()=>--a||s();for(var o of r)o.out(l)}else s()}function Mt(e,t,n){if((e.f&P)===0){e.f^=P;var r=e.nodes&&e.nodes.t;if(r!==null)for(const o of r)(o.is_global||n)&&t.push(o);for(var s=e.first;s!==null;){var a=s.next,l=(s.f&Ae)!==0||(s.f&L)!==0&&(e.f&$)!==0;Mt(s,t,l?n:!1),s=a}}}function rs(e){Pt(e,!0)}function Pt(e,t){if((e.f&P)!==0){e.f^=P,(e.f&E)===0&&(y(e,T),Y(e));for(var n=e.first;n!==null;){var r=n.next,s=(n.f&Ae)!==0||(n.f&L)!==0;Pt(n,s?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(const l of a)(l.is_global||t)&&l.in()}}function ss(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var s=n===r?null:Z(n);t.append(n),n=s}}let Te=!1,se=!1;function it(e){se=e}let v=null,M=!1;function z(e){v=e}let d=null;function ce(e){d=e}let D=null;function Ft(e){v!==null&&(D===null?D=[e]:D.push(e))}let x=null,R=0,k=null;function jn(e){k=e}let Lt=1,Q=0,ne=Q;function lt(e){ne=e}function jt(){return++Lt}function me(e){var t=e.f;if((t&T)!==0)return!0;if(t&m&&(e.f&=~re),(t&F)!==0){for(var n=e.deps,r=n.length,s=0;s<r;s++){var a=n[s];if(me(a)&&Tt(a),a.wv>e.wv)return!0}(t&O)!==0&&I===null&&y(e,E)}return!1}function Yt(e,t,n=!0){var r=e.reactions;if(r!==null&&!(D!==null&&ie.call(D,e)))for(var s=0;s<r.length;s++){var a=r[s];(a.f&m)!==0?Yt(a,t,!1):t===a&&(n?y(a,T):(a.f&E)!==0&&y(a,F),Y(a))}}function Ht(e){var t=x,n=R,r=k,s=v,a=D,l=p,o=M,f=ne,i=e.f;x=null,R=0,k=null,v=(i&(L|X))===0?e:null,D=null,xe(e.ctx),M=!1,ne=++Q,e.ac!==null&&(Ze(()=>{e.ac.abort(W)}),e.ac=null);try{e.f|=Me;var u=e.fn,c=u();e.f|=ve;var _=e.deps,g=w?.is_fork;if(x!==null){var h;if(g||ye(e,R),_!==null&&R>0)for(_.length=R+x.length,h=0;h<x.length;h++)_[R+h]=x[h];else e.deps=_=x;if(Ot()&&(e.f&O)!==0)for(h=R;h<_.length;h++)(_[h].reactions??=[]).push(e)}else!g&&_!==null&&R<_.length&&(ye(e,R),_.length=R);if(be()&&k!==null&&!M&&_!==null&&(e.f&(m|F|T))===0)for(h=0;h<k.length;h++)Yt(k[h],e);if(s!==null&&s!==e){if(Q++,s.deps!==null)for(let C=0;C<n;C+=1)s.deps[C].rv=Q;if(t!==null)for(const C of t)C.rv=Q;k!==null&&(r===null?r=k:r.push(...k))}return(e.f&U)!==0&&(e.f^=U),c}catch(C){return hn(C)}finally{e.f^=Me,x=t,R=n,k=r,v=s,D=a,xe(l),M=o,ne=f}}function Yn(e,t){let n=t.reactions;if(n!==null){var r=Gt.call(n,e);if(r!==-1){var s=n.length-1;s===0?n=t.reactions=null:(n[r]=n[s],n.pop())}}if(n===null&&(t.f&m)!==0&&(x===null||!ie.call(x,t))){var a=t;(a.f&O)!==0&&(a.f^=O,a.f&=~re),Ge(a),xn(a),ye(a,0)}}function ye(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Yn(e,n[r])}function _e(e){var t=e.f;if((t&V)===0){y(e,E);var n=d,r=Te;d=e,Te=!0;try{(t&($|He))!==0?Pn(e):We(e),Ct(e);var s=Ht(e);e.teardown=typeof s=="function"?s:null,e.wv=Lt;var a}finally{Te=r,d=n}}}async function as(){await Promise.resolve(),yn()}function fs(){return fe.ensure().settled()}function ee(e){var t=e.f,n=(t&m)!==0;if(v!==null&&!M){var r=d!==null&&(d.f&V)!==0;if(!r&&(D===null||!ie.call(D,e))){var s=v.deps;if((v.f&Me)!==0)e.rv<Q&&(e.rv=Q,x===null&&s!==null&&s[R]===e?R++:x===null?x=[e]:x.push(e));else{(v.deps??=[]).push(e);var a=e.reactions;a===null?e.reactions=[v]:ie.call(a,v)||a.push(v)}}}if(se&&B.has(e))return B.get(e);if(n){var l=e;if(se){var o=l.v;return((l.f&E)===0&&l.reactions!==null||Vt(l))&&(o=ze(l)),B.set(l,o),o}var f=(l.f&O)===0&&!M&&v!==null&&(Te||(v.f&O)!==0),i=(l.f&ve)===0;me(l)&&(f&&(l.f|=O),Tt(l)),f&&!i&&(At(l),qt(l))}if(I?.has(e))return I.get(e);if((e.f&U)!==0)throw e.v;return e.v}function qt(e){if(e.f|=O,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&m)!==0&&(t.f&O)===0&&(At(t),qt(t))}function Vt(e){if(e.v===b)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(B.has(t)||(t.f&m)!==0&&Vt(t))return!0;return!1}function Ut(e){var t=M;try{return M=!0,e()}finally{M=t}}function is(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(te in e)Ye(e);else if(!Array.isArray(e))for(let t in e){const n=e[t];typeof n=="object"&&n&&te in n&&Ye(n)}}}function Ye(e,t=new Set){if(typeof e=="object"&&e!==null&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let r in e)try{Ye(e[r],t)}catch{}const n=ot(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const r=Kt(n);for(let s in r){const a=r[s].get;if(a)try{a.call(e)}catch{}}}}}function Hn(e){p===null&&Ve(),Ee&&p.l!==null?qn(p).m.push(e):In(()=>{const t=Ut(e);if(typeof t=="function")return t})}function ls(e){p===null&&Ve(),Hn(()=>()=>Ut(e))}function qn(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}export{Rn as $,In as A,Ut as B,Zt as C,Gn as D,Ae as E,ee as F,is as G,ln as H,Ke as I,Rr as J,Jt as K,de as L,_t as M,Z as N,Ne as O,H as P,he as Q,kr as R,Hn as S,q as T,Qr as U,Hr as V,Fr as W,at as X,Mr as Y,Ot as Z,Wr as _,gr as a,ot as a$,$e as a0,Ie as a1,Pe as a2,d as a3,Wt as a4,on as a5,hr as a6,fe as a7,y as a8,T as a9,tr as aA,se as aB,V as aC,_r as aD,cr as aE,Ee as aF,or as aG,lr as aH,gn as aI,yn as aJ,Un as aK,Pr as aL,as as aM,Cn as aN,Ze as aO,Ur as aP,Nn as aQ,vr as aR,dr as aS,ve as aT,ke as aU,Xe as aV,ts as aW,Bt as aX,Er as aY,Lr as aZ,cn as a_,Y as aa,F as ab,wn as ac,ce as ad,z as ae,xe as af,hn as ag,v as ah,je as ai,Se as aj,nr as ak,br as al,jr as am,Ue as an,er as ao,kn as ap,Xr as aq,Vn as ar,un as as,Be as at,Zr as au,te as av,ur as aw,Bn as ax,$n as ay,pe as az,es as b,mt as b0,yr as b1,Wn as b2,Br as b3,b as b4,On as b5,Xn as b6,Kt as b7,Fn as b8,pr as b9,wr as ba,Gr as bb,ls as bc,Kn as bd,Qn as be,ar as bf,sr as bg,rr as bh,ir as bi,zn as bj,P as bk,L as bl,fr as bm,Jn as bn,Kr as bo,nt as bp,Xt as bq,be as br,ne as bs,Or as bt,Dr as bu,$r as bv,_n as bw,fs as bx,oe as c,mr as d,S as e,rs as f,K as g,G as h,Re as i,ns as j,w as k,Vr as l,ss as m,Cr as n,Nr as o,Ln as p,Ir as q,Sr as r,xr as s,Yr as t,qr as u,Ar as v,Tr as w,Jr as x,p as y,zr as z};
@@ -1 +1 @@
1
- import{h as o,a as v,b as y,E as f,r as l,s as m,c as p,d as i,H as T,e as A}from"./fwnBoL5x.js";import{B as E}from"./3_5VIr68.js";function g(d,_,e){var s;o&&(s=A,v());var r=new E(d);y(()=>{var a=_()??null;if(o){var h=l(s),c=h===T,u=a!==null;if(c!==u){var t=m();p(t),r.anchor=t,i(!1),r.ensure(a,a&&(n=>e(n,a))),i(!0);return}}r.ensure(a,a&&(n=>e(n,a)))},f)}export{g as c};
1
+ import{h as o,a as v,b as y,E as f,r as l,s as m,c as p,d as i,H as T,e as A}from"./DEJSHbC3.js";import{B as E}from"./Bopa-Ask.js";function g(d,_,e){var s;o&&(s=A,v());var r=new E(d);y(()=>{var a=_()??null;if(o){var h=l(s),c=h===T,u=a!==null;if(c!==u){var t=m();p(t),r.anchor=t,i(!1),r.ensure(a,a&&(n=>e(n,a))),i(!0);return}}r.ensure(a,a&&(n=>e(n,a)))},f)}export{g as c};
@@ -1,4 +1,4 @@
1
- import{c as kt,d as J,a as v,g as At,f as I,j as Re,e as ns}from"./hHxe9oXh.js";import{x as ae,h as xt,a as bt,a3 as as,b8 as is,e as mt,M as ls,N as os,at as cs,an as hs,c as ps,aP as us,b9 as ds,ba as gs,O as Ge,V as K,n as rt,o as It,q as nt,u as B,t as S,w,v as Pe,P as te,Q as Fe,F as p,T as R,W as Ue,S as fs,aM as Ve,A as ks,bb as xs,Y as Xe}from"./fwnBoL5x.js";import{a as Pt,s as Ct,h as bs,w as ms,g as ws,b as vs}from"./YFT1281h.js";import{l as fe,s as ke,p as Je,i as D,r as ys,b as $s}from"./BButMJ6M.js";import{I as xe,s as be,n as C,X as _s,b as Ss,e as we,T as Rs,i as ve,a as Ts}from"./B0nldqWF.js";import"./CAXuTUkp.js";import{s as ye}from"./BiubvAUI.js";import{i as zs,g as As}from"./DPmdIe6Y.js";function wt(r,e,s=!1,n=!1,t=!1){var i=r,a="";ae(()=>{var o=as;if(a===(a=e()??"")){xt&&bt();return}if(o.nodes!==null&&(is(o.nodes.start,o.nodes.end),o.nodes=null),a!==""){if(xt){mt.data;for(var l=bt(),h=l;l!==null&&(l.nodeType!==ls||l.data!=="");)h=l,l=os(l);if(l===null)throw cs(),hs;kt(mt,h),i=ps(l);return}var c=s?ds:n?gs:void 0,d=us(s?"svg":n?"math":"template",c);d.innerHTML=a;var g=s||n?d:d.content;if(kt(Ge(g),g.lastChild),s||n)for(;Ge(g);)i.before(Ge(g));else i.before(g)}})}function vt(r,e){const s=fe(e,["children","$$slots","$$events","$$legacy"]);const n=[["path",{d:"M3 5h.01"}],["path",{d:"M3 12h.01"}],["path",{d:"M3 19h.01"}],["path",{d:"M8 5h13"}],["path",{d:"M8 12h13"}],["path",{d:"M8 19h13"}]];xe(r,ke({name:"list"},()=>s,{get iconNode(){return n},children:(t,i)=>{var a=J(),o=K(a);be(o,e,"default",{}),v(t,a)},$$slots:{default:!0}}))}function yt(r,e){const s=fe(e,["children","$$slots","$$events","$$legacy"]);const n=[["circle",{cx:"18",cy:"5",r:"3"}],["circle",{cx:"6",cy:"12",r:"3"}],["circle",{cx:"18",cy:"19",r:"3"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49"}]];xe(r,ke({name:"share-2"},()=>s,{get iconNode(){return n},children:(t,i)=>{var a=J(),o=K(a);be(o,e,"default",{}),v(t,a)},$$slots:{default:!0}}))}function Is(r,e){const s=fe(e,["children","$$slots","$$events","$$legacy"]);const n=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z"}]];xe(r,ke({name:"message-square"},()=>s,{get iconNode(){return n},children:(t,i)=>{var a=J(),o=K(a);be(o,e,"default",{}),v(t,a)},$$slots:{default:!0}}))}var Ps=I('<span class="toggle-btn active svelte-r6dy5f" aria-current="page"><!><span class="toggle-label">Details</span></span>'),Cs=I('<a class="toggle-btn svelte-r6dy5f"><!><span class="toggle-label">Details</span></a>'),Es=I('<span class="toggle-btn active svelte-r6dy5f" aria-current="page"><!><span class="toggle-label">Graph</span></span>'),Ls=I('<a class="toggle-btn svelte-r6dy5f" href="/graph"><!><span class="toggle-label">Graph</span></a>'),qs=I('<button class="chat-toggle svelte-r6dy5f" title="Open Agent"><!></button>'),Ms=I('<div class="view-toolbar svelte-r6dy5f"><div></div> <div class="view-toggles svelte-r6dy5f"><!> <!></div> <div class="toolbar-right svelte-r6dy5f"><!> <!></div></div>');function sn(r,e){rt(e,!0);let s=Je(e,"activeView",3,"entity");const n=It("chat");var t=Ms(),i=B(S(t),2),a=S(i);{var o=y=>{var b=Ps(),u=S(b);vt(u,{size:14}),Pe(),w(b),v(y,b)},l=y=>{var b=Cs(),u=S(b);vt(u,{size:14}),Pe(),w(b),ae(()=>Pt(b,"href",C.entityPath??"/")),v(y,b)};D(a,y=>{s()==="entity"?y(o):y(l,!1)})}var h=B(a,2);{var c=y=>{var b=Es(),u=S(b);yt(u,{size:14}),Pe(),w(b),v(y,b)},d=y=>{var b=Ls(),u=S(b);yt(u,{size:14}),Pe(),w(b),v(y,b)};D(h,y=>{s()==="graph"?y(c):y(d,!1)})}w(i);var g=B(i,2),T=S(g);{var m=y=>{var b=J(),u=K(b);Ct(u,()=>e.right),v(y,b)};D(T,y=>{e.right&&y(m)})}var L=B(T,2);{var Z=y=>{var b=qs(),u=S(b);Is(u,{size:14}),w(b),Re("click",b,function(...z){n.toggle?.apply(this,z)}),v(y,b)};D(L,y=>{n.open||y(Z)})}w(g),w(t),v(r,t),nt()}At(["click"]);function Ns(...r){return r.filter(Boolean).join(" ")}var js=I("<button><!></button>");function $e(r,e){rt(e,!0);let s=Je(e,"variant",3,"default"),n=Je(e,"size",3,"default"),t=ys(e,["$$slots","$$events","$$legacy","variant","size","children","class"]);var i=js();bs(i,o=>({class:o,...t}),[()=>Ns("btn",`btn-${s()}`,`btn-${n()}`,e.class)]);var a=S(i);Ct(a,()=>e.children),w(i),v(r,i),nt()}function Bs(r,e){const s=fe(e,["children","$$slots","$$events","$$legacy"]);const n=[["circle",{cx:"12",cy:"12",r:"10"}],["rect",{x:"9",y:"9",width:"6",height:"6",rx:"1"}]];xe(r,ke({name:"circle-stop"},()=>s,{get iconNode(){return n},children:(t,i)=>{var a=J(),o=K(a);be(o,e,"default",{}),v(t,a)},$$slots:{default:!0}}))}function Ds(r,e){const s=fe(e,["children","$$slots","$$events","$$legacy"]);const n=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z"}]];xe(r,ke({name:"square-pen"},()=>s,{get iconNode(){return n},children:(t,i)=>{var a=J(),o=K(a);be(o,e,"default",{}),v(t,a)},$$slots:{default:!0}}))}function Os(r,e){const s=fe(e,["children","$$slots","$$events","$$legacy"]);const n=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"M12 6v6l4 2"}]];xe(r,ke({name:"clock"},()=>s,{get iconNode(){return n},children:(t,i)=>{var a=J(),o=K(a);be(o,e,"default",{}),v(t,a)},$$slots:{default:!0}}))}function at(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var he=at();function Et(r){he=r}var oe={exec:()=>null};function x(r,e=""){let s=typeof r=="string"?r:r.source,n={replace:(t,i)=>{let a=typeof i=="string"?i:i.source;return a=a.replace(q.caret,"$1"),s=s.replace(t,a),n},getRegex:()=>new RegExp(s,e)};return n}var Zs=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),q={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:r=>new RegExp(`^( {0,3}${r})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}#`),htmlBeginRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}>`)},Hs=/^(?:[ \t]*(?:\n|$))+/,Qs=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Ws=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,ze=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Gs=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,it=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Lt=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,qt=x(Lt).replace(/bull/g,it).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Fs=x(Lt).replace(/bull/g,it).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),lt=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Us=/^[^\n]+/,ot=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Vs=x(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",ot).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Xs=x(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,it).getRegex(),je="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",ct=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Js=x("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",ct).replace("tag",je).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Mt=x(lt).replace("hr",ze).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",je).getRegex(),Ks=x(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Mt).getRegex(),ht={blockquote:Ks,code:Qs,def:Vs,fences:Ws,heading:Gs,hr:ze,html:Js,lheading:qt,list:Xs,newline:Hs,paragraph:Mt,table:oe,text:Us},$t=x("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",ze).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",je).getRegex(),Ys={...ht,lheading:Fs,table:$t,paragraph:x(lt).replace("hr",ze).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",$t).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",je).getRegex()},er={...ht,html:x(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ct).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:oe,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:x(lt).replace("hr",ze).replace("heading",` *#{1,6} *[^
1
+ import{c as kt,d as J,a as v,g as At,f as I,j as Re,e as ns}from"./bSAC733J.js";import{x as ae,h as xt,a as bt,a3 as as,b8 as is,e as mt,M as ls,N as os,at as cs,an as hs,c as ps,aP as us,b9 as ds,ba as gs,O as Ge,V as K,n as rt,o as It,q as nt,u as B,t as S,w,v as Pe,P as te,Q as Fe,F as p,T as R,W as Ue,S as fs,aM as Ve,A as ks,bb as xs,Y as Xe}from"./DEJSHbC3.js";import{a as Pt,s as Ct,h as bs,w as ms,g as ws,b as vs}from"./Dml-u95b.js";import{l as fe,s as ke,p as Je,i as D,r as ys,b as $s}from"./DvKVaE7M.js";import{I as xe,s as be,n as C,X as _s,b as Ss,e as we,T as Rs,i as ve,a as Ts}from"./CE_NBP4v.js";import"./COwytaCP.js";import{s as ye}from"./MbiSz-iW.js";import{i as zs,g as As}from"./BYsZRR-U.js";function wt(r,e,s=!1,n=!1,t=!1){var i=r,a="";ae(()=>{var o=as;if(a===(a=e()??"")){xt&&bt();return}if(o.nodes!==null&&(is(o.nodes.start,o.nodes.end),o.nodes=null),a!==""){if(xt){mt.data;for(var l=bt(),h=l;l!==null&&(l.nodeType!==ls||l.data!=="");)h=l,l=os(l);if(l===null)throw cs(),hs;kt(mt,h),i=ps(l);return}var c=s?ds:n?gs:void 0,d=us(s?"svg":n?"math":"template",c);d.innerHTML=a;var g=s||n?d:d.content;if(kt(Ge(g),g.lastChild),s||n)for(;Ge(g);)i.before(Ge(g));else i.before(g)}})}function vt(r,e){const s=fe(e,["children","$$slots","$$events","$$legacy"]);const n=[["path",{d:"M3 5h.01"}],["path",{d:"M3 12h.01"}],["path",{d:"M3 19h.01"}],["path",{d:"M8 5h13"}],["path",{d:"M8 12h13"}],["path",{d:"M8 19h13"}]];xe(r,ke({name:"list"},()=>s,{get iconNode(){return n},children:(t,i)=>{var a=J(),o=K(a);be(o,e,"default",{}),v(t,a)},$$slots:{default:!0}}))}function yt(r,e){const s=fe(e,["children","$$slots","$$events","$$legacy"]);const n=[["circle",{cx:"18",cy:"5",r:"3"}],["circle",{cx:"6",cy:"12",r:"3"}],["circle",{cx:"18",cy:"19",r:"3"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49"}]];xe(r,ke({name:"share-2"},()=>s,{get iconNode(){return n},children:(t,i)=>{var a=J(),o=K(a);be(o,e,"default",{}),v(t,a)},$$slots:{default:!0}}))}function Is(r,e){const s=fe(e,["children","$$slots","$$events","$$legacy"]);const n=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z"}]];xe(r,ke({name:"message-square"},()=>s,{get iconNode(){return n},children:(t,i)=>{var a=J(),o=K(a);be(o,e,"default",{}),v(t,a)},$$slots:{default:!0}}))}var Ps=I('<span class="toggle-btn active svelte-r6dy5f" aria-current="page"><!><span class="toggle-label">Details</span></span>'),Cs=I('<a class="toggle-btn svelte-r6dy5f"><!><span class="toggle-label">Details</span></a>'),Es=I('<span class="toggle-btn active svelte-r6dy5f" aria-current="page"><!><span class="toggle-label">Graph</span></span>'),Ls=I('<a class="toggle-btn svelte-r6dy5f" href="/graph"><!><span class="toggle-label">Graph</span></a>'),qs=I('<button class="chat-toggle svelte-r6dy5f" title="Open Agent"><!></button>'),Ms=I('<div class="view-toolbar svelte-r6dy5f"><div></div> <div class="view-toggles svelte-r6dy5f"><!> <!></div> <div class="toolbar-right svelte-r6dy5f"><!> <!></div></div>');function sn(r,e){rt(e,!0);let s=Je(e,"activeView",3,"entity");const n=It("chat");var t=Ms(),i=B(S(t),2),a=S(i);{var o=y=>{var b=Ps(),u=S(b);vt(u,{size:14}),Pe(),w(b),v(y,b)},l=y=>{var b=Cs(),u=S(b);vt(u,{size:14}),Pe(),w(b),ae(()=>Pt(b,"href",C.entityPath??"/")),v(y,b)};D(a,y=>{s()==="entity"?y(o):y(l,!1)})}var h=B(a,2);{var c=y=>{var b=Es(),u=S(b);yt(u,{size:14}),Pe(),w(b),v(y,b)},d=y=>{var b=Ls(),u=S(b);yt(u,{size:14}),Pe(),w(b),v(y,b)};D(h,y=>{s()==="graph"?y(c):y(d,!1)})}w(i);var g=B(i,2),T=S(g);{var m=y=>{var b=J(),u=K(b);Ct(u,()=>e.right),v(y,b)};D(T,y=>{e.right&&y(m)})}var L=B(T,2);{var Z=y=>{var b=qs(),u=S(b);Is(u,{size:14}),w(b),Re("click",b,function(...z){n.toggle?.apply(this,z)}),v(y,b)};D(L,y=>{n.open||y(Z)})}w(g),w(t),v(r,t),nt()}At(["click"]);function Ns(...r){return r.filter(Boolean).join(" ")}var js=I("<button><!></button>");function $e(r,e){rt(e,!0);let s=Je(e,"variant",3,"default"),n=Je(e,"size",3,"default"),t=ys(e,["$$slots","$$events","$$legacy","variant","size","children","class"]);var i=js();bs(i,o=>({class:o,...t}),[()=>Ns("btn",`btn-${s()}`,`btn-${n()}`,e.class)]);var a=S(i);Ct(a,()=>e.children),w(i),v(r,i),nt()}function Bs(r,e){const s=fe(e,["children","$$slots","$$events","$$legacy"]);const n=[["circle",{cx:"12",cy:"12",r:"10"}],["rect",{x:"9",y:"9",width:"6",height:"6",rx:"1"}]];xe(r,ke({name:"circle-stop"},()=>s,{get iconNode(){return n},children:(t,i)=>{var a=J(),o=K(a);be(o,e,"default",{}),v(t,a)},$$slots:{default:!0}}))}function Ds(r,e){const s=fe(e,["children","$$slots","$$events","$$legacy"]);const n=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z"}]];xe(r,ke({name:"square-pen"},()=>s,{get iconNode(){return n},children:(t,i)=>{var a=J(),o=K(a);be(o,e,"default",{}),v(t,a)},$$slots:{default:!0}}))}function Os(r,e){const s=fe(e,["children","$$slots","$$events","$$legacy"]);const n=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"M12 6v6l4 2"}]];xe(r,ke({name:"clock"},()=>s,{get iconNode(){return n},children:(t,i)=>{var a=J(),o=K(a);be(o,e,"default",{}),v(t,a)},$$slots:{default:!0}}))}function at(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var he=at();function Et(r){he=r}var oe={exec:()=>null};function x(r,e=""){let s=typeof r=="string"?r:r.source,n={replace:(t,i)=>{let a=typeof i=="string"?i:i.source;return a=a.replace(q.caret,"$1"),s=s.replace(t,a),n},getRegex:()=>new RegExp(s,e)};return n}var Zs=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),q={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:r=>new RegExp(`^( {0,3}${r})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}#`),htmlBeginRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}>`)},Hs=/^(?:[ \t]*(?:\n|$))+/,Qs=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Ws=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,ze=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Gs=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,it=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Lt=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,qt=x(Lt).replace(/bull/g,it).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Fs=x(Lt).replace(/bull/g,it).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),lt=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Us=/^[^\n]+/,ot=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Vs=x(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",ot).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Xs=x(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,it).getRegex(),je="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",ct=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Js=x("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",ct).replace("tag",je).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Mt=x(lt).replace("hr",ze).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",je).getRegex(),Ks=x(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Mt).getRegex(),ht={blockquote:Ks,code:Qs,def:Vs,fences:Ws,heading:Gs,hr:ze,html:Js,lheading:qt,list:Xs,newline:Hs,paragraph:Mt,table:oe,text:Us},$t=x("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",ze).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",je).getRegex(),Ys={...ht,lheading:Fs,table:$t,paragraph:x(lt).replace("hr",ze).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",$t).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",je).getRegex()},er={...ht,html:x(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ct).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:oe,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:x(lt).replace("hr",ze).replace("heading",` *#{1,6} *[^
2
2
  ]`).replace("lheading",qt).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},tr=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,sr=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Nt=/^( {2,}|\\)\n(?!\s*$)/,rr=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Be=/[\p{P}\p{S}]/u,pt=/[\s\p{P}\p{S}]/u,jt=/[^\s\p{P}\p{S}]/u,nr=x(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,pt).getRegex(),Bt=/(?!~)[\p{P}\p{S}]/u,ar=/(?!~)[\s\p{P}\p{S}]/u,ir=/(?:[^\s\p{P}\p{S}]|~)/u,Dt=/(?![*_])[\p{P}\p{S}]/u,lr=/(?![*_])[\s\p{P}\p{S}]/u,or=/(?:[^\s\p{P}\p{S}]|[*_])/u,cr=x(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",Zs?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Ot=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,hr=x(Ot,"u").replace(/punct/g,Be).getRegex(),pr=x(Ot,"u").replace(/punct/g,Bt).getRegex(),Zt="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",ur=x(Zt,"gu").replace(/notPunctSpace/g,jt).replace(/punctSpace/g,pt).replace(/punct/g,Be).getRegex(),dr=x(Zt,"gu").replace(/notPunctSpace/g,ir).replace(/punctSpace/g,ar).replace(/punct/g,Bt).getRegex(),gr=x("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,jt).replace(/punctSpace/g,pt).replace(/punct/g,Be).getRegex(),fr=x(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Dt).getRegex(),kr="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",xr=x(kr,"gu").replace(/notPunctSpace/g,or).replace(/punctSpace/g,lr).replace(/punct/g,Dt).getRegex(),br=x(/\\(punct)/,"gu").replace(/punct/g,Be).getRegex(),mr=x(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),wr=x(ct).replace("(?:-->|$)","-->").getRegex(),vr=x("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",wr).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),qe=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,yr=x(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",qe).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Ht=x(/^!?\[(label)\]\[(ref)\]/).replace("label",qe).replace("ref",ot).getRegex(),Qt=x(/^!?\[(ref)\](?:\[\])?/).replace("ref",ot).getRegex(),$r=x("reflink|nolink(?!\\()","g").replace("reflink",Ht).replace("nolink",Qt).getRegex(),_t=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,ut={_backpedal:oe,anyPunctuation:br,autolink:mr,blockSkip:cr,br:Nt,code:sr,del:oe,delLDelim:oe,delRDelim:oe,emStrongLDelim:hr,emStrongRDelimAst:ur,emStrongRDelimUnd:gr,escape:tr,link:yr,nolink:Qt,punctuation:nr,reflink:Ht,reflinkSearch:$r,tag:vr,text:rr,url:oe},_r={...ut,link:x(/^!?\[(label)\]\((.*?)\)/).replace("label",qe).getRegex(),reflink:x(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",qe).getRegex()},Ke={...ut,emStrongRDelimAst:dr,emStrongLDelim:pr,delLDelim:fr,delRDelim:xr,url:x(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",_t).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:x(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",_t).getRegex()},Sr={...Ke,br:x(Nt).replace("{2,}","*").getRegex(),text:x(Ke.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Ce={normal:ht,gfm:Ys,pedantic:er},_e={normal:ut,gfm:Ke,breaks:Sr,pedantic:_r},Rr={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},St=r=>Rr[r];function X(r,e){if(e){if(q.escapeTest.test(r))return r.replace(q.escapeReplace,St)}else if(q.escapeTestNoEncode.test(r))return r.replace(q.escapeReplaceNoEncode,St);return r}function Rt(r){try{r=encodeURI(r).replace(q.percentDecode,"%")}catch{return null}return r}function Tt(r,e){let s=r.replace(q.findPipe,(i,a,o)=>{let l=!1,h=a;for(;--h>=0&&o[h]==="\\";)l=!l;return l?"|":" |"}),n=s.split(q.splitPipe),t=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),e)if(n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;t<n.length;t++)n[t]=n[t].trim().replace(q.slashPipe,"|");return n}function Se(r,e,s){let n=r.length;if(n===0)return"";let t=0;for(;t<n&&r.charAt(n-t-1)===e;)t++;return r.slice(0,n-t)}function Tr(r,e){if(r.indexOf(e[1])===-1)return-1;let s=0;for(let n=0;n<r.length;n++)if(r[n]==="\\")n++;else if(r[n]===e[0])s++;else if(r[n]===e[1]&&(s--,s<0))return n;return s>0?-2:-1}function zr(r,e=0){let s=e,n="";for(let t of r)if(t===" "){let i=4-s%4;n+=" ".repeat(i),s+=i}else n+=t,s++;return n}function zt(r,e,s,n,t){let i=e.href,a=e.title||null,o=r[1].replace(t.other.outputLinkReplace,"$1");n.state.inLink=!0;let l={type:r[0].charAt(0)==="!"?"image":"link",raw:s,href:i,title:a,text:o,tokens:n.inlineTokens(o)};return n.state.inLink=!1,l}function Ar(r,e,s){let n=r.match(s.other.indentCodeCompensation);if(n===null)return e;let t=n[1];return e.split(`
3
3
  `).map(i=>{let a=i.match(s.other.beginningSpace);if(a===null)return i;let[o]=a;return o.length>=t.length?i.slice(t.length):i}).join(`
4
4
  `)}var Me=class{options;rules;lexer;constructor(r){this.options=r||he}space(r){let e=this.rules.block.newline.exec(r);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(r){let e=this.rules.block.code.exec(r);if(e){let s=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?s:Se(s,`
@@ -0,0 +1,2 @@
1
+ import{b as wt,E as mt,aW as it,g as V,j as at,au as st,h as F,aX as Et,aY as At,aZ as St,aN as Tt,a_ as _t,a$ as It,b0 as $t,F as a,b1 as Rt,b2 as W,d as q,b3 as Lt,b4 as Ot,a2 as Ut,b5 as kt,b6 as Pt,b7 as Ft,P as E,Q as j,T as p,Y as ut,W as Nt}from"./DEJSHbC3.js";import{B as jt}from"./Bopa-Ask.js";import{k as Mt,j as Gt,g as Jt,l as Wt,n as Bt,m as Ht}from"./bSAC733J.js";function Te(t,r,...e){var n=new jt(t);wt(()=>{const i=r()??null;n.ensure(i,i&&(f=>i(f,...e)))},mt)}function Yt(t,r){var e=void 0,n;it(()=>{e!==(e=r())&&(n&&(V(n),n=null),e&&(n=at(()=>{st(()=>e(t))})))})}function lt(t){var r,e,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(r=0;r<i;r++)t[r]&&(e=lt(t[r]))&&(n&&(n+=" "),n+=e)}else for(e in t)t[e]&&(n&&(n+=" "),n+=e);return n}function Dt(){for(var t,r,e=0,n="",i=arguments.length;e<i;e++)(t=arguments[e])&&(r=lt(t))&&(n&&(n+=" "),n+=r);return n}function Kt(t){return typeof t=="object"?Dt(t):t??""}const z=[...`
2
+ \r\f \v\uFEFF`];function Qt(t,r,e){var n=t==null?"":""+t;if(r&&(n=n?n+" "+r:r),e){for(var i of Object.keys(e))if(e[i])n=n?n+" "+i:i;else if(n.length)for(var f=i.length,d=0;(d=n.indexOf(i,d))>=0;){var y=d+f;(d===0||z.includes(n[d-1]))&&(y===n.length||z.includes(n[y]))?n=(d===0?"":n.substring(0,d))+n.substring(y+1):d=y}}return n===""?null:n}function x(t,r=!1){var e=r?" !important;":";",n="";for(var i of Object.keys(t)){var f=t[i];f!=null&&f!==""&&(n+=" "+i+": "+f+e)}return n}function K(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Vt(t,r){if(r){var e="",n,i;if(Array.isArray(r)?(n=r[0],i=r[1]):n=r,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var f=!1,d=0,y=!1,v=[];n&&v.push(...Object.keys(n).map(K)),i&&v.push(...Object.keys(i).map(K));var b=0,A=-1;const U=t.length;for(var C=0;C<U;C++){var l=t[C];if(y?l==="/"&&t[C-1]==="*"&&(y=!1):f?f===l&&(f=!1):l==="/"&&t[C+1]==="*"?y=!0:l==='"'||l==="'"?f=l:l==="("?d++:l===")"&&d--,!y&&f===!1&&d===0){if(l===":"&&A===-1)A=C;else if(l===";"||C===U-1){if(A!==-1){var O=K(t.substring(b,A).trim());if(!v.includes(O)){l!==";"&&C++;var _=t.substring(b,C).trim();e+=" "+_+";"}}b=C+1,A=-1}}}}return n&&(e+=x(n)),i&&(e+=x(i,!0)),e=e.trim(),e===""?null:e}return t==null?null:String(t)}function Xt(t,r,e,n,i,f){var d=t.__className;if(F||d!==e||d===void 0){var y=Qt(e,n,f);(!F||y!==t.getAttribute("class"))&&(y==null?t.removeAttribute("class"):r?t.className=y:t.setAttribute("class",y)),t.__className=e}else if(f&&i!==f)for(var v in f){var b=!!f[v];(i==null||b!==!!i[v])&&t.classList.toggle(v,b)}return f}function Q(t,r={},e,n){for(var i in e){var f=e[i];r[i]!==f&&(e[i]==null?t.style.removeProperty(i):t.style.setProperty(i,f,n))}}function Zt(t,r,e,n){var i=t.__style;if(F||i!==r){var f=Vt(r,n);(!F||f!==t.getAttribute("style"))&&(f==null?t.removeAttribute("style"):t.style.cssText=f),t.__style=r}else n&&(Array.isArray(n)?(Q(t,e?.[0],n[0]),Q(t,e?.[1],n[1],"important")):Q(t,e,n));return n}function X(t,r,e=!1){if(t.multiple){if(r==null)return;if(!Et(r))return At();for(var n of t.options)n.selected=r.includes(tt(n));return}for(n of t.options){var i=tt(n);if(St(i,r)){n.selected=!0;return}}(!e||r!==void 0)&&(t.selectedIndex=-1)}function qt(t){var r=new MutationObserver(()=>{X(t,t.__value)});r.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Tt(()=>{r.disconnect()})}function tt(t){return"__value"in t?t.__value:t.value}const G=Symbol("class"),J=Symbol("style"),ft=Symbol("is custom element"),ct=Symbol("is html"),zt=W?"link":"LINK",xt=W?"input":"INPUT",te=W?"option":"OPTION",ee=W?"select":"SELECT",re=W?"progress":"PROGRESS";function ne(t){if(F){var r=!1,e=()=>{if(!r){if(r=!0,t.hasAttribute("value")){var n=t.value;H(t,"value",null),t.value=n}if(t.hasAttribute("checked")){var i=t.checked;H(t,"checked",null),t.checked=i}}};t.__on_r=e,Ut(e),kt()}}function _e(t,r){var e=Z(t);e.value===(e.value=r??void 0)||t.value===r&&(r!==0||t.nodeName!==re)||(t.value=r??"")}function oe(t,r){r?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function H(t,r,e,n){var i=Z(t);F&&(i[r]=t.getAttribute(r),r==="src"||r==="srcset"||r==="href"&&t.nodeName===zt)||i[r]!==(i[r]=e)&&(r==="loading"&&(t[Pt]=e),e==null?t.removeAttribute(r):typeof e!="string"&&dt(t).includes(r)?t[r]=e:t.setAttribute(r,e))}function ie(t,r,e,n,i=!1,f=!1){if(F&&i&&t.nodeName===xt){var d=t,y=d.type==="checkbox"?"defaultChecked":"defaultValue";y in e||ne(d)}var v=Z(t),b=v[ft],A=!v[ct];let C=F&&b;C&&q(!1);var l=r||{},O=t.nodeName===te;for(var _ in r)_ in e||(e[_]=null);e.class?e.class=Kt(e.class):e[G]&&(e.class=null),e[J]&&(e.style??=null);var U=dt(t);for(const h in e){let g=e[h];if(O&&h==="value"&&g==null){t.value=t.__value="",l[h]=g;continue}if(h==="class"){var k=t.namespaceURI==="http://www.w3.org/1999/xhtml";Xt(t,k,g,n,r?.[G],e[G]),l[h]=g,l[G]=e[G];continue}if(h==="style"){Zt(t,g,r?.[J],e[J]),l[h]=g,l[J]=e[J];continue}var I=l[h];if(!(g===I&&!(g===void 0&&t.hasAttribute(h)))){l[h]=g;var M=h[0]+h[1];if(M!=="$$")if(M==="on"){const L={},P="$$"+h;let R=h.slice(2);var S=Ht(R);if(Mt(R)&&(R=R.slice(0,-7),L.capture=!0),!S&&I){if(g!=null)continue;t.removeEventListener(R,l[P],L),l[P]=null}if(S)Gt(R,t,g),Jt([R]);else if(g!=null){let Y=function(D){l[h].call(this,D)};l[P]=Wt(R,t,Y,L)}}else if(h==="style")H(t,h,g);else if(h==="autofocus")Lt(t,!!g);else if(!b&&(h==="__value"||h==="value"&&g!=null))t.value=t.__value=g;else if(h==="selected"&&O)oe(t,g);else{var m=h;A||(m=Bt(m));var B=m==="defaultValue"||m==="defaultChecked";if(g==null&&!b&&!B)if(v[h]=null,m==="value"||m==="checked"){let L=t;const P=r===void 0;if(m==="value"){let R=L.defaultValue;L.removeAttribute(m),L.defaultValue=R,L.value=L.__value=P?R:null}else{let R=L.defaultChecked;L.removeAttribute(m),L.defaultChecked=R,L.checked=P?R:!1}}else t.removeAttribute(h);else B||U.includes(m)&&(b||typeof g!="string")?(t[m]=g,m in v&&(v[m]=Ot)):typeof g!="function"&&H(t,m,g)}}}return C&&q(!0),l}function Ie(t,r,e=[],n=[],i=[],f,d=!1,y=!1){$t(i,e,n,v=>{var b=void 0,A={},C=t.nodeName===ee,l=!1;if(it(()=>{var _=r(...v.map(a)),U=ie(t,b,_,f,d,y);l&&C&&"value"in _&&X(t,_.value);for(let I of Object.getOwnPropertySymbols(A))_[I]||V(A[I]);for(let I of Object.getOwnPropertySymbols(_)){var k=_[I];I.description===Rt&&(!b||k!==b[I])&&(A[I]&&V(A[I]),A[I]=at(()=>Yt(t,()=>k))),U[I]=k}b=U}),C){var O=t;st(()=>{X(O,b.value,!0),qt(O)})}l=!0})}function Z(t){return t.__attributes??={[ft]:t.nodeName.includes("-"),[ct]:t.namespaceURI===_t}}var et=new Map;function dt(t){var r=t.getAttribute("is")||t.nodeName,e=et.get(r);if(e)return e;et.set(r,e=[]);for(var n,i=t,f=Element.prototype;f!==i;){n=Ft(i);for(var d in n)n[d].set&&e.push(d);i=It(i)}return e}const ae="";class se extends Error{constructor(r,e){super(e),this.status=r,this.name="ApiError"}}async function T(t,r){const e={...r?.headers};r?.body&&(e["Content-Type"]=e["Content-Type"]??"application/json");const n=await fetch(`${ae}${t}`,{...r,headers:e});if(!n.ok){const i=await n.json().catch(()=>({error:n.statusText}));throw new se(n.status,i.error??n.statusText)}return n.json()}function ue(){return T("/api/workspace")}function rt(){return T("/api/repos")}function le(t,r,e){return T("/api/repos",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:t,description:r,...e?{private:!0}:{}})})}function fe(t,r){return T(`/api/repos/${encodeURIComponent(t)}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:r})})}function ce(t){return T(`/api/repos/${encodeURIComponent(t)}`,{method:"DELETE"})}function de(){return T("/api/apps")}function pe(t){return T(`/api/repos/${encodeURIComponent(t)}/entities?summary=true`)}function $e(t,r,e){return T(`/api/repos/${encodeURIComponent(t)}/entities/${encodeURIComponent(r)}/${encodeURIComponent(e)}`)}function ge(t,r,e){return T(`/api/repos/${encodeURIComponent(t)}/entities/${encodeURIComponent(r)}/${encodeURIComponent(e)}/contents`)}function Re(t,r,e,n){return fetch(`/api/repos/${encodeURIComponent(t)}/entities/${encodeURIComponent(r)}/${encodeURIComponent(e)}/contents/${n}`).then(i=>{if(!i.ok)throw new Error(`Failed to load ${n}`);return i.text()})}function Le(t,r,e,n,i){return T(`/api/repos/${encodeURIComponent(t)}/entities`,{method:"POST",body:JSON.stringify({entityType:r,entityId:e,data:n,content:i})})}function Oe(t,r,e){return T(`/api/repos/${encodeURIComponent(t)}/entities/${encodeURIComponent(r)}/${encodeURIComponent(e)}`,{method:"DELETE"})}function Ue(t,r,e,n){return T(`/api/repos/${encodeURIComponent(t)}/entities/${encodeURIComponent(r)}/${encodeURIComponent(e)}`,{method:"PUT",body:JSON.stringify(n)})}function ke(t,r,e,n,i){return T(`/api/repos/${encodeURIComponent(t)}/entities/${encodeURIComponent(r)}/${encodeURIComponent(e)}/contents/${n}`,{method:"PUT",body:JSON.stringify({content:i})})}function he(t){return t.replace(/-/g," ").replace(/\b\w/g,r=>r.toUpperCase())}function ye(){let t=E(""),r=E(!1),e=E(j([])),n=E(j([])),i=E(!1),f=E(null),d=E(j({})),y=j({}),v=j({}),b=j({}),A=E(0),C=E(null),l=E(""),O=null,_=E(0),U=E(0),k=E("alpha");async function I(){p(i,!0),p(f,null);try{const[o,s,u]=await Promise.all([rt(),de().catch(()=>[]),ue().catch(()=>({name:""}))]);p(n,s,!0),p(t,u.name,!0),p(r,!0),p(e,o.map(c=>({name:c.name,type:c.type,private:c.private,count:null,entities:[],loading:!1,loaded:!1})),!0),await Promise.all(a(e).map(c=>m(c.name)))}catch(o){p(f,o.message,!0)}finally{p(i,!1)}}async function M(o){a(e).find(u=>u.name===o)&&await m(o,!0)}async function S(){p(_,0),p(U,0),await Promise.all(a(e).map(o=>m(o.name,!0)))}async function m(o,s=!1){const u=a(e).find(c=>c.name===o);if(!(!u||u.loading)&&!(!s&&u.loaded)){s||(u.loading=!0);try{const c=await pe(o);let w=0,N=0;for(const $ of c)w+=$.document?.wikilinks?.length??0,N+=$.subContentCount??0;p(_,a(_)+w),p(U,a(U)+N),u.entities=c.filter($=>!$.id.toLowerCase().startsWith("readme")).map($=>({id:$.id,title:$.data?.name??he($.id),entityType:$.entityType,repo:o,hasSubContent:!!$.hasSubContent,wikilinks:$.document?.wikilinks??[],createdAt:$.data?.created_at??null,updatedAt:$.data?.updated_at??null})).sort(($,Ct)=>$.title.localeCompare(Ct.title)),u.count=u.entities.length,u.loaded=!0}catch(c){console.error(`Failed to load entities for ${o}:`,c)}finally{u.loading=!1}}}function B(o){a(d)[o]=!a(d)[o]}function h(o){return a(d)[o]??!1}function g(o,s,u){return`${o}/${s}/${u}`}function L(o,s,u){const c=g(o,s,u),w=y[c]??!1;y[c]=!w,!w&&!v[c]?.loaded&&Y(o,s,u)}function P(o,s,u){return y[g(o,s,u)]??!1}function R(o,s,u){return v[g(o,s,u)]??{entries:[],loading:!1,loaded:!1}}async function Y(o,s,u){const c=g(o,s,u);v[c]={entries:[],loading:!0,loaded:!1};try{const w=await ge(o,s,u);v[c]={entries:w,loading:!1,loaded:!0}}catch(w){console.error(`Failed to load contents for ${c}:`,w),v[c]={entries:[],loading:!1,loaded:!0}}}function D(o){const s=a(l).trim().toLowerCase();if(!s)return o;const u=[];for(const c of o){const w=c.entities.filter(N=>N.title.toLowerCase().includes(s)||N.id.toLowerCase().includes(s));w.length>0&&u.push({...c,entities:w,count:w.length})}return u}function pt(o){if(o&&!a(l)?O={...a(d)}:!o&&a(l)&&O&&(p(d,O,!0),O=null),p(l,o,!0),o){const s=o.trim().toLowerCase();for(const u of a(e)){const c=u.entities.some(w=>w.title.toLowerCase().includes(s)||w.id.toLowerCase().includes(s));a(d)[u.name]=c}}}function gt(o){const s=o.startsWith("type:");b[o]=!(b[o]??s)}function ht(o){return b[o]??!1}function yt(o){return b[o]===!1}const vt=ut(()=>a(e).reduce((o,s)=>o+(s.count??0),0));function bt(o){return a(n).find(s=>s.entityTypes.includes(o))}return{get name(){return a(t)},get nameLoaded(){return a(r)},get repos(){return a(e)},get apps(){return a(n)},get loading(){return a(i)},get error(){return a(f)},get totalEntities(){return a(vt)},get totalLinks(){return a(_)},get totalFiles(){return a(U)},get sortedRepos(){const o=[...a(e)].sort((s,u)=>s.name.localeCompare(u.name));return D(o)},get filteredIds(){const o=a(l).trim().toLowerCase();if(!o)return null;const s=new Set;for(const u of a(e))for(const c of u.entities)(c.title.toLowerCase().includes(o)||c.id.toLowerCase().includes(o))&&s.add(c.id);return s},get filterQuery(){return a(l)},setFilterQuery:pt,get sortMode(){return a(k)},set sortMode(o){p(k,o,!0)},get recentEntities(){const o=a(l).trim().toLowerCase();let s=[];for(const u of a(e))for(const c of u.entities)o&&!c.title.toLowerCase().includes(o)&&!c.id.toLowerCase().includes(o)||s.push(c);return s.sort((u,c)=>{const w=u.updatedAt??"";return(c.updatedAt??"").localeCompare(w)})},get sidebarScrollTop(){return a(A)},set sidebarScrollTop(o){p(A,o,!0)},get lastAutoExpandedFor(){return a(C)},set lastAutoExpandedFor(o){p(C,o,!0)},load:I,loadEntities:m,refreshEntities:M,refreshAll:S,toggleRepo:B,isExpanded:h,toggleEntity:L,isEntityExpanded:P,getEntityContents:R,toggleFolder:gt,isFolderExpanded:ht,isFolderCollapsed:yt,getAppForEntityType:bt,async renameCollectionTo(o,s){await fe(o,s);const u=a(e).find(c=>c.name===o);u&&(u.name=s,a(d)[o]&&(a(d)[s]=!0,delete a(d)[o]))},async removeCollection(o){await ce(o),p(e,a(e).filter(s=>s.name!==o),!0),delete a(d)[o]},async addCollection(o,s,u){await le(o,s,u);const c=await rt();p(e,c.map(w=>a(e).find($=>$.name===w.name)??{name:w.name,type:w.type,private:w.private,count:null,entities:[],loading:!1,loaded:!1}),!0),a(d)[o]=!0,await m(o)}}}const Pe=ye();function ve(){return T("/api/status")}function nt(t){return T("/api/commit",{method:"POST",body:JSON.stringify({message:t})})}function ot(){return T("/api/push",{method:"POST",body:"{}"})}function be(){return T("/api/pull",{method:"POST",body:"{}"})}function Ce(){return T("/api/revert",{method:"POST",body:"{}"})}function we(){return T("/api/sync-status")}function me(){let t=E(j([])),r=E(!1),e=E(!1),n=E(!1),i=E(!1),f=E(!1),d=E(0),y=E(0),v=E(0);const b=ut(()=>a(t).reduce((S,m)=>S+m.changes.length,0));async function A(){p(r,!0);try{p(t,await ve(),!0)}catch(S){console.error("Failed to fetch git status:",S)}finally{p(r,!1),O()}}async function C(){try{const S=await we();p(y,S.ahead,!0),p(v,S.behind,!0)}catch(S){console.error("Failed to fetch sync status:",S)}}async function l(){await Promise.all([A(),C()])}function O(){typeof window<"u"&&window.dispatchEvent(new CustomEvent("studiograph:git-refresh"))}async function _(S){p(e,!0);try{await nt(S),await l()}finally{p(e,!1)}}async function U(){p(n,!0);try{await ot(),await C()}finally{p(n,!1)}}async function k(S){p(e,!0);try{await nt(S)}finally{p(e,!1)}p(n,!0);try{await ot()}finally{p(n,!1)}await l()}async function I(){p(i,!0);try{await be(),await l()}finally{p(i,!1)}}async function M(){p(f,!0);try{const S=await Ce();return Nt(d),await l(),S}finally{p(f,!1)}}return{get repoStatuses(){return a(t)},get totalChanges(){return a(b)},get loading(){return a(r)},get committing(){return a(e)},get pushing(){return a(n)},get pulling(){return a(i)},get reverting(){return a(f)},get revertCount(){return a(d)},get ahead(){return a(y)},get behind(){return a(v)},refresh:A,refreshSyncStatus:C,refreshAll:l,commit:_,push:U,commitAndPush:k,pull:I,revert:M}}const Fe=me();export{H as a,Xt as b,Kt as c,Re as d,_e as e,$e as f,Fe as g,Ie as h,Zt as i,T as j,Oe as k,Le as l,Dt as m,ke as n,ne as r,Te as s,Ue as u,Pe as w};
@@ -1 +1 @@
1
- import{b as F,h as O,a as H,E as M,r as j,H as C,a5 as U,s as m,c as q,d as A,e as z,au as G,_ as $,B as L,a2 as Q,av as R,a3 as T,a0 as W,W as D,ad as g,aw as N,F as S,ax as _,ay as Y,az as x,aA as Z,Q as J,T as V,aB as X,aC as k,aD as ee,aE as re,aF as ne,aG as se,aH as ie,I as ae,aI as ue}from"./fwnBoL5x.js";import{B as te}from"./3_5VIr68.js";function ve(e,r,s=!1){var n;O&&(n=z,H());var i=new te(e),a=s?M:0;function v(t,l){if(O){var o=j(n),f;if(o===C?f=0:o===U?f=!1:f=parseInt(o.substring(1)),t!==f){var h=m();q(h),i.anchor=h,A(!1),i.ensure(t,l),A(!0);return}}i.ensure(t,l)}F(()=>{var t=!1;r((l,o=0)=>{t=!0,v(o,l)}),t||v(!1,null)},a)}function B(e,r){return e===r||e?.[R]===r}function he(e={},r,s,n){return G(()=>{var i,a;return $(()=>{i=a,a=n?.()||[],L(()=>{e!==s(...a)&&(r(e,...a),i&&B(s(...i),e)&&r(null,...i))})}),()=>{Q(()=>{a&&B(s(...a),e)&&r(null,...a)})}}),e}let P=!1;function fe(e){var r=P;try{return P=!1,[e(),P]}finally{P=r}}const le={get(e,r){if(!e.exclude.includes(r))return e.props[r]},set(e,r){return!1},getOwnPropertyDescriptor(e,r){if(!e.exclude.includes(r)&&r in e.props)return{enumerable:!0,configurable:!0,value:e.props[r]}},has(e,r){return e.exclude.includes(r)?!1:r in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(r=>!e.exclude.includes(r))}};function be(e,r,s){return new Proxy({props:e,exclude:r},le)}const oe={get(e,r){if(!e.exclude.includes(r))return S(e.version),r in e.special?e.special[r]():e.props[r]},set(e,r,s){if(!(r in e.special)){var n=T;try{g(e.parent_effect),e.special[r]=pe({get[r](){return e.props[r]}},r,N)}finally{g(n)}}return e.special[r](s),D(e.version),!0},getOwnPropertyDescriptor(e,r){if(!e.exclude.includes(r)&&r in e.props)return{enumerable:!0,configurable:!0,value:e.props[r]}},deleteProperty(e,r){return e.exclude.includes(r)||(e.exclude.push(r),D(e.version)),!0},has(e,r){return e.exclude.includes(r)?!1:r in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(r=>!e.exclude.includes(r))}};function Pe(e,r){return new Proxy({props:e,exclude:r,special:{},version:W(0),parent_effect:T},oe)}const ce={get(e,r){let s=e.props.length;for(;s--;){let n=e.props[s];if(_(n)&&(n=n()),typeof n=="object"&&n!==null&&r in n)return n[r]}},set(e,r,s){let n=e.props.length;for(;n--;){let i=e.props[n];_(i)&&(i=i());const a=x(i,r);if(a&&a.set)return a.set(s),!0}return!1},getOwnPropertyDescriptor(e,r){let s=e.props.length;for(;s--;){let n=e.props[s];if(_(n)&&(n=n()),typeof n=="object"&&n!==null&&r in n){const i=x(n,r);return i&&!i.configurable&&(i.configurable=!0),i}}},has(e,r){if(r===R||r===Y)return!1;for(let s of e.props)if(_(s)&&(s=s()),s!=null&&r in s)return!0;return!1},ownKeys(e){const r=[];for(let s of e.props)if(_(s)&&(s=s()),!!s){for(const n in s)r.includes(n)||r.push(n);for(const n of Object.getOwnPropertySymbols(s))r.includes(n)||r.push(n)}return r}};function Se(...e){return new Proxy({props:e},ce)}function pe(e,r,s,n){var i=!ne||(s&se)!==0,a=(s&re)!==0,v=(s&ee)!==0,t=n,l=!0,o=()=>(l&&(l=!1,t=v?L(n):n),t),f;if(a){var h=R in e||Y in e;f=x(e,r)?.set??(h&&r in e?u=>e[r]=u:void 0)}var p,E=!1;a?[p,E]=fe(()=>e[r]):p=e[r],p===void 0&&n!==void 0&&(p=o(),f&&(i&&Z(),f(p)));var c;if(i?c=()=>{var u=e[r];return u===void 0?o():(l=!0,u)}:c=()=>{var u=e[r];return u!==void 0&&(t=void 0),u===void 0?t:u},i&&(s&N)===0)return c;if(f){var y=e.$$legacy;return(function(u,b){return arguments.length>0?((!i||!b||y||E)&&f(b?c():u),u):c()})}var w=!1,d=((s&ie)!==0?ae:ue)(()=>(w=!1,c()));a&&S(d);var K=T;return(function(u,b){if(arguments.length>0){const I=b?S(d):i&&a?J(u):u;return V(d,I),w=!0,t!==void 0&&(t=I),u}return X&&w||(K.f&k)!==0?d.v:S(d)})}export{he as b,ve as i,Pe as l,pe as p,be as r,Se as s};
1
+ import{b as F,h as O,a as H,E as M,r as j,H as C,a5 as U,s as m,c as q,d as A,e as z,au as G,_ as $,B as L,a2 as Q,av as R,a3 as T,a0 as W,W as D,ad as g,aw as N,F as S,ax as _,ay as Y,az as x,aA as Z,Q as J,T as V,aB as X,aC as k,aD as ee,aE as re,aF as ne,aG as se,aH as ie,I as ae,aI as ue}from"./DEJSHbC3.js";import{B as te}from"./Bopa-Ask.js";function ve(e,r,s=!1){var n;O&&(n=z,H());var i=new te(e),a=s?M:0;function v(t,l){if(O){var o=j(n),f;if(o===C?f=0:o===U?f=!1:f=parseInt(o.substring(1)),t!==f){var h=m();q(h),i.anchor=h,A(!1),i.ensure(t,l),A(!0);return}}i.ensure(t,l)}F(()=>{var t=!1;r((l,o=0)=>{t=!0,v(o,l)}),t||v(!1,null)},a)}function B(e,r){return e===r||e?.[R]===r}function he(e={},r,s,n){return G(()=>{var i,a;return $(()=>{i=a,a=n?.()||[],L(()=>{e!==s(...a)&&(r(e,...a),i&&B(s(...i),e)&&r(null,...i))})}),()=>{Q(()=>{a&&B(s(...a),e)&&r(null,...a)})}}),e}let P=!1;function fe(e){var r=P;try{return P=!1,[e(),P]}finally{P=r}}const le={get(e,r){if(!e.exclude.includes(r))return e.props[r]},set(e,r){return!1},getOwnPropertyDescriptor(e,r){if(!e.exclude.includes(r)&&r in e.props)return{enumerable:!0,configurable:!0,value:e.props[r]}},has(e,r){return e.exclude.includes(r)?!1:r in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(r=>!e.exclude.includes(r))}};function be(e,r,s){return new Proxy({props:e,exclude:r},le)}const oe={get(e,r){if(!e.exclude.includes(r))return S(e.version),r in e.special?e.special[r]():e.props[r]},set(e,r,s){if(!(r in e.special)){var n=T;try{g(e.parent_effect),e.special[r]=pe({get[r](){return e.props[r]}},r,N)}finally{g(n)}}return e.special[r](s),D(e.version),!0},getOwnPropertyDescriptor(e,r){if(!e.exclude.includes(r)&&r in e.props)return{enumerable:!0,configurable:!0,value:e.props[r]}},deleteProperty(e,r){return e.exclude.includes(r)||(e.exclude.push(r),D(e.version)),!0},has(e,r){return e.exclude.includes(r)?!1:r in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(r=>!e.exclude.includes(r))}};function Pe(e,r){return new Proxy({props:e,exclude:r,special:{},version:W(0),parent_effect:T},oe)}const ce={get(e,r){let s=e.props.length;for(;s--;){let n=e.props[s];if(_(n)&&(n=n()),typeof n=="object"&&n!==null&&r in n)return n[r]}},set(e,r,s){let n=e.props.length;for(;n--;){let i=e.props[n];_(i)&&(i=i());const a=x(i,r);if(a&&a.set)return a.set(s),!0}return!1},getOwnPropertyDescriptor(e,r){let s=e.props.length;for(;s--;){let n=e.props[s];if(_(n)&&(n=n()),typeof n=="object"&&n!==null&&r in n){const i=x(n,r);return i&&!i.configurable&&(i.configurable=!0),i}}},has(e,r){if(r===R||r===Y)return!1;for(let s of e.props)if(_(s)&&(s=s()),s!=null&&r in s)return!0;return!1},ownKeys(e){const r=[];for(let s of e.props)if(_(s)&&(s=s()),!!s){for(const n in s)r.includes(n)||r.push(n);for(const n of Object.getOwnPropertySymbols(s))r.includes(n)||r.push(n)}return r}};function Se(...e){return new Proxy({props:e},ce)}function pe(e,r,s,n){var i=!ne||(s&se)!==0,a=(s&re)!==0,v=(s&ee)!==0,t=n,l=!0,o=()=>(l&&(l=!1,t=v?L(n):n),t),f;if(a){var h=R in e||Y in e;f=x(e,r)?.set??(h&&r in e?u=>e[r]=u:void 0)}var p,E=!1;a?[p,E]=fe(()=>e[r]):p=e[r],p===void 0&&n!==void 0&&(p=o(),f&&(i&&Z(),f(p)));var c;if(i?c=()=>{var u=e[r];return u===void 0?o():(l=!0,u)}:c=()=>{var u=e[r];return u!==void 0&&(t=void 0),u===void 0?t:u},i&&(s&N)===0)return c;if(f){var y=e.$$legacy;return(function(u,b){return arguments.length>0?((!i||!b||y||E)&&f(b?c():u),u):c()})}var w=!1,d=((s&ie)!==0?ae:ue)(()=>(w=!1,c()));a&&S(d);var K=T;return(function(u,b){if(arguments.length>0){const I=b?S(d):i&&a?J(u):u;return V(d,I),w=!0,t!==void 0&&(t=I),u}return X&&w||(K.f&k)!==0?d.v:S(d)})}export{he as b,ve as i,Pe as l,pe as p,be as r,Se as s};
@@ -1,2 +1,2 @@
1
- import{Z as K,F as W,_ as Q,a0 as z,B as X,a1 as M,a2 as R,e as u,h as p,a3 as y,a4 as C,b as ee,a as te,a5 as se,a6 as H,j as c,i as J,a7 as F,p as O,m as re,a8 as B,a9 as ie,aa as L,ab as ne,ac as ae,ad as j,ae as q,af as $,ag as he,ah as fe,y as U,ai as oe,g as S,c as w,v as de,s as _e,aj as b,E as le,L as ce,ak as ue,al as pe,am as Y,O as ge,M as Z,H as ve,N as ye,an as k,d as E,ao as me,ap as be,aq as Ee,ar as Te,n as Re,as as we,at as De,q as Ne}from"./fwnBoL5x.js";import{b as Ae,r as P,h as V,i as Fe,c as Oe}from"./hHxe9oXh.js";function Se(i){let e=0,t=z(0),r;return()=>{K()&&(W(t),Q(()=>(e===0&&(r=X(()=>i(()=>M(t)))),e+=1,()=>{R(()=>{e-=1,e===0&&(r?.(),r=void 0,M(t))})})))}}var Ye=le|ce;function ke(i,e,t,r){new xe(i,e,t,r)}class xe{parent;is_pending=!1;transform_error;#t;#g=p?u:null;#i;#o;#e;#n=null;#s=null;#r=null;#a=null;#d=0;#f=0;#_=!1;#l=new Set;#c=new Set;#h=null;#m=Se(()=>(this.#h=z(this.#d),()=>{this.#h=null}));constructor(e,t,r,f){this.#t=e,this.#i=t,this.#o=s=>{var n=y;n.b=this,n.f|=C,r(s)},this.parent=y.b,this.transform_error=f??this.parent?.transform_error??(s=>s),this.#e=ee(()=>{if(p){const s=this.#g;te();const n=s.data===se;if(s.data.startsWith(H)){const a=JSON.parse(s.data.slice(H.length));this.#E(a)}else n?this.#T():this.#b()}else this.#v()},Ye),p&&(this.#t=u)}#b(){try{this.#n=c(()=>this.#o(this.#t))}catch(e){this.error(e)}}#E(e){const t=this.#i.failed;t&&(this.#r=c(()=>{t(this.#t,()=>e,()=>()=>{})}))}#T(){const e=this.#i.pending;e&&(this.is_pending=!0,this.#s=c(()=>e(this.#t)),R(()=>{var t=this.#a=document.createDocumentFragment(),r=J();t.append(r),this.#n=this.#p(()=>(F.ensure(),c(()=>this.#o(r)))),this.#f===0&&(this.#t.before(t),this.#a=null,O(this.#s,()=>{this.#s=null}),this.#u())}))}#v(){try{if(this.is_pending=this.has_pending_snippet(),this.#f=0,this.#d=0,this.#n=c(()=>{this.#o(this.#t)}),this.#f>0){var e=this.#a=document.createDocumentFragment();re(this.#n,e);const t=this.#i.pending;this.#s=c(()=>t(this.#t))}else this.#u()}catch(t){this.error(t)}}#u(){this.is_pending=!1;for(const e of this.#l)B(e,ie),L(e);for(const e of this.#c)B(e,ne),L(e);this.#l.clear(),this.#c.clear()}defer_effect(e){ae(e,this.#l,this.#c)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#i.pending}#p(e){var t=y,r=fe,f=U;j(this.#e),q(this.#e),$(this.#e.ctx);try{return e()}catch(s){return he(s),null}finally{j(t),q(r),$(f)}}#y(e){if(!this.has_pending_snippet()){this.parent&&this.parent.#y(e);return}this.#f+=e,this.#f===0&&(this.#u(),this.#s&&O(this.#s,()=>{this.#s=null}),this.#a&&(this.#t.before(this.#a),this.#a=null))}update_pending_count(e){this.#y(e),this.#d+=e,!(!this.#h||this.#_)&&(this.#_=!0,R(()=>{this.#_=!1,this.#h&&oe(this.#h,this.#d)}))}get_effect_pending(){return this.#m(),W(this.#h)}error(e){var t=this.#i.onerror;let r=this.#i.failed;if(!t&&!r)throw e;this.#n&&(S(this.#n),this.#n=null),this.#s&&(S(this.#s),this.#s=null),this.#r&&(S(this.#r),this.#r=null),p&&(w(this.#g),de(),w(_e()));var f=!1,s=!1;const n=()=>{if(f){pe();return}f=!0,s&&ue(),this.#r!==null&&O(this.#r,()=>{this.#r=null}),this.#p(()=>{F.ensure(),this.#v()})},l=a=>{try{s=!0,t?.(a,n),s=!1}catch(h){b(h,this.#e&&this.#e.parent)}r&&(this.#r=this.#p(()=>{F.ensure();try{return c(()=>{var h=y;h.b=this,h.f|=C,r(this.#t,()=>a,()=>n)})}catch(h){return b(h,this.#e.parent),null}}))};R(()=>{var a;try{a=this.transform_error(e)}catch(h){b(h,this.#e&&this.#e.parent);return}a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(l,h=>b(h,this.#e&&this.#e.parent)):l(a)})}}function He(i,e){var t=e==null?"":typeof e=="object"?`${e}`:e;t!==(i.__t??=i.nodeValue)&&(i.__t=t,i.nodeValue=`${t}`)}function Ie(i,e){return G(i,e)}function Be(i,e){Y(),e.intro=e.intro??!1;const t=e.target,r=p,f=u;try{for(var s=ge(t);s&&(s.nodeType!==Z||s.data!==ve);)s=ye(s);if(!s)throw k;E(!0),w(s);const n=G(i,{...e,anchor:s});return E(!1),n}catch(n){if(n instanceof Error&&n.message.split(`
1
+ import{Z as K,F as W,_ as Q,a0 as z,B as X,a1 as M,a2 as R,e as u,h as p,a3 as y,a4 as C,b as ee,a as te,a5 as se,a6 as H,j as c,i as J,a7 as F,p as O,m as re,a8 as B,a9 as ie,aa as L,ab as ne,ac as ae,ad as j,ae as q,af as $,ag as he,ah as fe,y as U,ai as oe,g as S,c as w,v as de,s as _e,aj as b,E as le,L as ce,ak as ue,al as pe,am as Y,O as ge,M as Z,H as ve,N as ye,an as k,d as E,ao as me,ap as be,aq as Ee,ar as Te,n as Re,as as we,at as De,q as Ne}from"./DEJSHbC3.js";import{b as Ae,r as P,h as V,i as Fe,c as Oe}from"./bSAC733J.js";function Se(i){let e=0,t=z(0),r;return()=>{K()&&(W(t),Q(()=>(e===0&&(r=X(()=>i(()=>M(t)))),e+=1,()=>{R(()=>{e-=1,e===0&&(r?.(),r=void 0,M(t))})})))}}var Ye=le|ce;function ke(i,e,t,r){new xe(i,e,t,r)}class xe{parent;is_pending=!1;transform_error;#t;#g=p?u:null;#i;#o;#e;#n=null;#s=null;#r=null;#a=null;#d=0;#f=0;#_=!1;#l=new Set;#c=new Set;#h=null;#m=Se(()=>(this.#h=z(this.#d),()=>{this.#h=null}));constructor(e,t,r,f){this.#t=e,this.#i=t,this.#o=s=>{var n=y;n.b=this,n.f|=C,r(s)},this.parent=y.b,this.transform_error=f??this.parent?.transform_error??(s=>s),this.#e=ee(()=>{if(p){const s=this.#g;te();const n=s.data===se;if(s.data.startsWith(H)){const a=JSON.parse(s.data.slice(H.length));this.#E(a)}else n?this.#T():this.#b()}else this.#v()},Ye),p&&(this.#t=u)}#b(){try{this.#n=c(()=>this.#o(this.#t))}catch(e){this.error(e)}}#E(e){const t=this.#i.failed;t&&(this.#r=c(()=>{t(this.#t,()=>e,()=>()=>{})}))}#T(){const e=this.#i.pending;e&&(this.is_pending=!0,this.#s=c(()=>e(this.#t)),R(()=>{var t=this.#a=document.createDocumentFragment(),r=J();t.append(r),this.#n=this.#p(()=>(F.ensure(),c(()=>this.#o(r)))),this.#f===0&&(this.#t.before(t),this.#a=null,O(this.#s,()=>{this.#s=null}),this.#u())}))}#v(){try{if(this.is_pending=this.has_pending_snippet(),this.#f=0,this.#d=0,this.#n=c(()=>{this.#o(this.#t)}),this.#f>0){var e=this.#a=document.createDocumentFragment();re(this.#n,e);const t=this.#i.pending;this.#s=c(()=>t(this.#t))}else this.#u()}catch(t){this.error(t)}}#u(){this.is_pending=!1;for(const e of this.#l)B(e,ie),L(e);for(const e of this.#c)B(e,ne),L(e);this.#l.clear(),this.#c.clear()}defer_effect(e){ae(e,this.#l,this.#c)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#i.pending}#p(e){var t=y,r=fe,f=U;j(this.#e),q(this.#e),$(this.#e.ctx);try{return e()}catch(s){return he(s),null}finally{j(t),q(r),$(f)}}#y(e){if(!this.has_pending_snippet()){this.parent&&this.parent.#y(e);return}this.#f+=e,this.#f===0&&(this.#u(),this.#s&&O(this.#s,()=>{this.#s=null}),this.#a&&(this.#t.before(this.#a),this.#a=null))}update_pending_count(e){this.#y(e),this.#d+=e,!(!this.#h||this.#_)&&(this.#_=!0,R(()=>{this.#_=!1,this.#h&&oe(this.#h,this.#d)}))}get_effect_pending(){return this.#m(),W(this.#h)}error(e){var t=this.#i.onerror;let r=this.#i.failed;if(!t&&!r)throw e;this.#n&&(S(this.#n),this.#n=null),this.#s&&(S(this.#s),this.#s=null),this.#r&&(S(this.#r),this.#r=null),p&&(w(this.#g),de(),w(_e()));var f=!1,s=!1;const n=()=>{if(f){pe();return}f=!0,s&&ue(),this.#r!==null&&O(this.#r,()=>{this.#r=null}),this.#p(()=>{F.ensure(),this.#v()})},l=a=>{try{s=!0,t?.(a,n),s=!1}catch(h){b(h,this.#e&&this.#e.parent)}r&&(this.#r=this.#p(()=>{F.ensure();try{return c(()=>{var h=y;h.b=this,h.f|=C,r(this.#t,()=>a,()=>n)})}catch(h){return b(h,this.#e.parent),null}}))};R(()=>{var a;try{a=this.transform_error(e)}catch(h){b(h,this.#e&&this.#e.parent);return}a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(l,h=>b(h,this.#e&&this.#e.parent)):l(a)})}}function He(i,e){var t=e==null?"":typeof e=="object"?`${e}`:e;t!==(i.__t??=i.nodeValue)&&(i.__t=t,i.nodeValue=`${t}`)}function Ie(i,e){return G(i,e)}function Be(i,e){Y(),e.intro=e.intro??!1;const t=e.target,r=p,f=u;try{for(var s=ge(t);s&&(s.nodeType!==Z||s.data!==ve);)s=ye(s);if(!s)throw k;E(!0),w(s);const n=G(i,{...e,anchor:s});return E(!1),n}catch(n){if(n instanceof Error&&n.message.split(`
2
2
  `).some(l=>l.startsWith("https://svelte.dev/e/")))throw n;return n!==k&&console.warn("Failed to hydrate: ",n),e.recover===!1&&me(),Y(),be(t),E(!1),Ie(i,e)}finally{E(r),w(f)}}const T=new Map;function G(i,{target:e,anchor:t,props:r={},events:f,context:s,intro:n=!0,transformError:l}){Y();var a=void 0,h=Ee(()=>{var m=t??e.appendChild(J());ke(m,{pending:()=>{}},o=>{Re({});var d=U;if(s&&(d.c=s),f&&(r.$$events=f),p&&Oe(o,null),a=i(o,r)||{},p&&(y.nodes.end=u,u===null||u.nodeType!==Z||u.data!==we))throw De(),k;Ne()},l);var D=new Set,N=o=>{for(var d=0;d<o.length;d++){var _=o[d];if(!D.has(_)){D.add(_);var v=Fe(_);for(const A of[e,document]){var g=T.get(A);g===void 0&&(g=new Map,T.set(A,g));var I=g.get(_);I===void 0?(A.addEventListener(_,V,{passive:v}),g.set(_,1)):g.set(_,I+1)}}}};return N(Te(Ae)),P.add(N),()=>{for(var o of D)for(const v of[e,document]){var d=T.get(v),_=d.get(o);--_==0?(v.removeEventListener(o,V),d.delete(o),d.size===0&&T.delete(v)):d.set(o,_)}P.delete(N),m!==t&&m.parentNode?.removeChild(m)}});return x.set(a,h),a}let x=new WeakMap;function Le(i,e){const t=x.get(i);return t?(x.delete(i),t(e)):Promise.resolve()}export{Se as c,Be as h,Ie as m,He as s,Le as u};
@@ -1 +1 @@
1
- import{aN as x,a2 as A,aO as P,aK as C,ae as b,ad as y,ah as I,a3 as g,aP as R,i as m,O as p,aQ as V,aR as D,aS as W,h as d,e as i,aT as $,a as M,M as B,aU as H,c as U,aV as j}from"./fwnBoL5x.js";function re(e){return e.endsWith("capture")&&e!=="gotpointercapture"&&e!=="lostpointercapture"}const q=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function ae(e){return q.includes(e)}const F={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function ne(e){return e=e.toLowerCase(),F[e]??e}const G=["touchstart","touchmove"];function oe(e){return G.includes(e)}const X=["textarea","script","style","title"];function se(e){return X.includes(e)}const f=Symbol("events"),z=new Set,K=new Set;function L(e,t,r,o={}){function n(a){if(o.capture||Q.call(t,a),!a.cancelBubble)return P(()=>r?.call(this,a))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?A(()=>{t.addEventListener(e,n,o)}):t.addEventListener(e,n,o),n}function ie(e,t,r,o={}){var n=L(t,e,r,o);return()=>{e.removeEventListener(t,n,o)}}function ue(e,t,r,o,n){var a={capture:o,passive:n},s=L(e,t,r,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&x(()=>{t.removeEventListener(e,s,a)})}function le(e,t,r){(t[f]??={})[e]=r}function ce(e){for(var t=0;t<e.length;t++)z.add(e[t]);for(var r of K)r(e)}let N=null;function Q(e){var t=this,r=t.ownerDocument,o=e.type,n=e.composedPath?.()||[],a=n[0]||e.target;N=e;var s=0,c=N===e&&e[f];if(c){var u=n.indexOf(c);if(u!==-1&&(t===document||t===window)){e[f]=t;return}var w=n.indexOf(t);if(w===-1)return;u<=w&&(s=u)}if(a=n[s]||e.target,a!==t){C(e,"currentTarget",{configurable:!0,get(){return a||r}});var O=I,k=g;b(null),y(null);try{for(var _,E=[];a!==null;){var h=a.assignedSlot||a.parentNode||a.host||null;try{var T=a[f]?.[o];T!=null&&(!a.disabled||e.target===a)&&T.call(a,e)}catch(v){_?E.push(v):_=v}if(e.cancelBubble||h===t||h===null)break;a=h}if(_){for(let v of E)queueMicrotask(()=>{throw v});throw _}}finally{e[f]=t,delete e.currentTarget,b(O),y(k)}}}const J=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function Y(e){return J?.createHTML(e)??e}function S(e){var t=R("template");return t.innerHTML=Y(e.replaceAll("<!>","<!---->")),t.content}function l(e,t){var r=g;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function de(e,t){var r=(t&D)!==0,o=(t&W)!==0,n,a=!e.startsWith("<!>");return()=>{if(d)return l(i,null),i;n===void 0&&(n=S(a?e:"<!>"+e),r||(n=p(n)));var s=o||V?document.importNode(n,!0):n.cloneNode(!0);if(r){var c=p(s),u=s.lastChild;l(c,u)}else l(s,s);return s}}function Z(e,t,r="svg"){var o=!e.startsWith("<!>"),n=`<${r}>${o?e:"<!>"+e}</${r}>`,a;return()=>{if(d)return l(i,null),i;if(!a){var s=S(n),c=p(s);a=p(c)}var u=a.cloneNode(!0);return l(u,u),u}}function fe(e,t){return Z(e,t,"svg")}function _e(e=""){if(!d){var t=m(e+"");return l(t,t),t}var r=i;return r.nodeType!==H?(r.before(r=m()),U(r)):j(r),l(r,r),r}function ve(){if(d)return l(i,null),i;var e=document.createDocumentFragment(),t=document.createComment(""),r=m();return e.append(t,r),l(t,r),e}function pe(e,t){if(d){var r=g;((r.f&$)===0||r.nodes.end===null)&&(r.nodes.end=i),M();return}e!==null&&e.before(t)}function he(){if(d&&i&&i.nodeType===B&&i.textContent?.startsWith("$")){const e=i.textContent.substring(1);return M(),e}return(window.__svelte??={}).uid??=1,`c${window.__svelte.uid++}`}const ee="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(ee);export{pe as a,z as b,l as c,ve as d,ue as e,de as f,ce as g,Q as h,oe as i,le as j,re as k,L as l,ae as m,ne as n,se as o,fe as p,ie as q,K as r,he as s,_e as t};
1
+ import{aN as x,a2 as A,aO as P,aK as C,ae as b,ad as y,ah as I,a3 as g,aP as R,i as m,O as p,aQ as V,aR as D,aS as W,h as d,e as i,aT as $,a as M,M as B,aU as H,c as U,aV as j}from"./DEJSHbC3.js";function re(e){return e.endsWith("capture")&&e!=="gotpointercapture"&&e!=="lostpointercapture"}const q=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function ae(e){return q.includes(e)}const F={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function ne(e){return e=e.toLowerCase(),F[e]??e}const G=["touchstart","touchmove"];function oe(e){return G.includes(e)}const X=["textarea","script","style","title"];function se(e){return X.includes(e)}const f=Symbol("events"),z=new Set,K=new Set;function L(e,t,r,o={}){function n(a){if(o.capture||Q.call(t,a),!a.cancelBubble)return P(()=>r?.call(this,a))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?A(()=>{t.addEventListener(e,n,o)}):t.addEventListener(e,n,o),n}function ie(e,t,r,o={}){var n=L(t,e,r,o);return()=>{e.removeEventListener(t,n,o)}}function ue(e,t,r,o,n){var a={capture:o,passive:n},s=L(e,t,r,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&x(()=>{t.removeEventListener(e,s,a)})}function le(e,t,r){(t[f]??={})[e]=r}function ce(e){for(var t=0;t<e.length;t++)z.add(e[t]);for(var r of K)r(e)}let N=null;function Q(e){var t=this,r=t.ownerDocument,o=e.type,n=e.composedPath?.()||[],a=n[0]||e.target;N=e;var s=0,c=N===e&&e[f];if(c){var u=n.indexOf(c);if(u!==-1&&(t===document||t===window)){e[f]=t;return}var w=n.indexOf(t);if(w===-1)return;u<=w&&(s=u)}if(a=n[s]||e.target,a!==t){C(e,"currentTarget",{configurable:!0,get(){return a||r}});var O=I,k=g;b(null),y(null);try{for(var _,E=[];a!==null;){var h=a.assignedSlot||a.parentNode||a.host||null;try{var T=a[f]?.[o];T!=null&&(!a.disabled||e.target===a)&&T.call(a,e)}catch(v){_?E.push(v):_=v}if(e.cancelBubble||h===t||h===null)break;a=h}if(_){for(let v of E)queueMicrotask(()=>{throw v});throw _}}finally{e[f]=t,delete e.currentTarget,b(O),y(k)}}}const J=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function Y(e){return J?.createHTML(e)??e}function S(e){var t=R("template");return t.innerHTML=Y(e.replaceAll("<!>","<!---->")),t.content}function l(e,t){var r=g;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function de(e,t){var r=(t&D)!==0,o=(t&W)!==0,n,a=!e.startsWith("<!>");return()=>{if(d)return l(i,null),i;n===void 0&&(n=S(a?e:"<!>"+e),r||(n=p(n)));var s=o||V?document.importNode(n,!0):n.cloneNode(!0);if(r){var c=p(s),u=s.lastChild;l(c,u)}else l(s,s);return s}}function Z(e,t,r="svg"){var o=!e.startsWith("<!>"),n=`<${r}>${o?e:"<!>"+e}</${r}>`,a;return()=>{if(d)return l(i,null),i;if(!a){var s=S(n),c=p(s);a=p(c)}var u=a.cloneNode(!0);return l(u,u),u}}function fe(e,t){return Z(e,t,"svg")}function _e(e=""){if(!d){var t=m(e+"");return l(t,t),t}var r=i;return r.nodeType!==H?(r.before(r=m()),U(r)):j(r),l(r,r),r}function ve(){if(d)return l(i,null),i;var e=document.createDocumentFragment(),t=document.createComment(""),r=m();return e.append(t,r),l(t,r),e}function pe(e,t){if(d){var r=g;((r.f&$)===0||r.nodes.end===null)&&(r.nodes.end=i),M();return}e!==null&&e.before(t)}function he(){if(d&&i&&i.nodeType===B&&i.textContent?.startsWith("$")){const e=i.textContent.substring(1);return M(),e}return(window.__svelte??={}).uid??=1,`c${window.__svelte.uid++}`}const ee="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(ee);export{pe as a,z as b,l as c,ve as d,ue as e,de as f,ce as g,Q as h,oe as i,le as j,re as k,L as l,ae as m,ne as n,se as o,fe as p,ie as q,K as r,he as s,_e as t};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.DQ5KdeNU.js","../chunks/hHxe9oXh.js","../chunks/fwnBoL5x.js","../chunks/YFT1281h.js","../chunks/3_5VIr68.js","../assets/0.CDbX4Cwz.css","../nodes/1.BR6DZ9ov.js","../chunks/CAXuTUkp.js","../chunks/BiubvAUI.js","../chunks/DPmdIe6Y.js","../nodes/2.COSjVZ_C.js","../chunks/BButMJ6M.js","../chunks/B0nldqWF.js","../assets/AppShell.CXdE5aqF.css","../chunks/DsERsGWg.js","../assets/ChatPanel.RFD5GGYI.css","../assets/2.DRHi7ABa.css","../nodes/3.B9r1XIlO.js","../chunks/nZKqDQ0w.js","../chunks/F20aIBpJ.js","../chunks/PPVm8Dsz.js","../assets/editor.CPAf2SRV.css","../assets/3.BJy7pVXi.css","../nodes/4.p-c6hlFf.js","../chunks/CqkleIqs.js","../assets/4.Ad16uh9o.css","../nodes/5.CPc-Bqal.js","../assets/5.BhKgiXd2.css","../nodes/6.jJ67YnBc.js","../assets/6.CeHKR5ZY.css"])))=>i.map(i=>d[i]);
2
- import{_ as l}from"../chunks/PPVm8Dsz.js";import{T as E,ay as F,F as m,aJ as G,aK as J,aL as K,n as B,z as H,A as N,S as Q,aM as U,V as y,u as W,q as X,P as b,t as Z,w as $,x as tt,Y as p}from"../chunks/fwnBoL5x.js";import{h as et,m as rt,u as at,s as st}from"../chunks/BiubvAUI.js";import{a as h,d as P,f as w,t as ot}from"../chunks/hHxe9oXh.js";import{p as O,i as R,b as x}from"../chunks/BButMJ6M.js";import{c as A}from"../chunks/F20aIBpJ.js";function nt(s){return class extends it{constructor(t){super({component:s,...t})}}}class it{#e;#t;constructor(t){var a=new Map,n=(e,r)=>{var c=K(r,!1,!1);return a.set(e,c),c};const i=new Proxy({...t.props||{},$$events:{}},{get(e,r){return m(a.get(r)??n(r,Reflect.get(e,r)))},has(e,r){return r===F?!0:(m(a.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r))},set(e,r,c){return E(a.get(r)??n(r,c),c),Reflect.set(e,r,c)}});this.#t=(t.hydrate?et:rt)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&G(),this.#e=i.$$events;for(const e of Object.keys(this.#t))e==="$set"||e==="$destroy"||e==="$on"||J(this,e,{get(){return this.#t[e]},set(r){this.#t[e]=r},enumerable:!0});this.#t.$set=e=>{Object.assign(i,e)},this.#t.$destroy=()=>{at(this.#t)}}$set(t){this.#t.$set(t)}$on(t,a){this.#e[t]=this.#e[t]||[];const n=(...i)=>a.call(this,...i);return this.#e[t].push(n),()=>{this.#e[t]=this.#e[t].filter(i=>i!==n)}}$destroy(){this.#t.$destroy()}}const Et={};var ct=w('<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>'),mt=w("<!> <!>",1);function ut(s,t){B(t,!0);let a=O(t,"components",23,()=>[]),n=O(t,"data_0",3,null),i=O(t,"data_1",3,null);H(()=>t.stores.page.set(t.page)),N(()=>{t.stores,t.page,t.constructors,a(),t.form,n(),i(),t.stores.page.notify()});let e=b(!1),r=b(!1),c=b(null);Q(()=>{const o=t.stores.page.subscribe(()=>{m(e)&&(E(r,!0),U().then(()=>{E(c,document.title||"untitled page",!0)}))});return E(e,!0),o});const I=p(()=>t.constructors[1]);var L=mt(),T=y(L);{var j=o=>{const u=p(()=>t.constructors[0]);var d=P(),v=y(d);A(v,()=>m(u),(_,f)=>{x(f(_,{get data(){return n()},get form(){return t.form},get params(){return t.page.params},children:(g,_t)=>{var V=P(),M=y(V);A(M,()=>m(I),(Y,q)=>{x(q(Y,{get data(){return i()},get form(){return t.form},get params(){return t.page.params}}),z=>a()[1]=z,()=>a()?.[1])}),h(g,V)},$$slots:{default:!0}}),g=>a()[0]=g,()=>a()?.[0])}),h(o,d)},k=o=>{const u=p(()=>t.constructors[0]);var d=P(),v=y(d);A(v,()=>m(u),(_,f)=>{x(f(_,{get data(){return n()},get form(){return t.form},get params(){return t.page.params}}),g=>a()[0]=g,()=>a()?.[0])}),h(o,d)};R(T,o=>{t.constructors[1]?o(j):o(k,!1)})}var C=W(T,2);{var S=o=>{var u=ct(),d=Z(u);{var v=_=>{var f=ot();tt(()=>st(f,m(c))),h(_,f)};R(d,_=>{m(r)&&_(v)})}$(u),h(o,u)};R(C,o=>{m(e)&&o(S)})}h(s,L),X()}const bt=nt(ut),pt=[()=>l(()=>import("../nodes/0.DQ5KdeNU.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url),()=>l(()=>import("../nodes/1.BR6DZ9ov.js"),__vite__mapDeps([6,1,2,7,8,9]),import.meta.url),()=>l(()=>import("../nodes/2.COSjVZ_C.js"),__vite__mapDeps([10,1,2,7,8,11,4,12,3,9,13,14,15,16]),import.meta.url),()=>l(()=>import("../nodes/3.B9r1XIlO.js"),__vite__mapDeps([17,3,2,4,1,8,11,12,9,7,13,14,15,18,19,20,21,22]),import.meta.url),()=>l(()=>import("../nodes/4.p-c6hlFf.js"),__vite__mapDeps([23,3,2,4,1,8,11,12,9,7,13,14,15,18,19,20,21,24,25]),import.meta.url),()=>l(()=>import("../nodes/5.CPc-Bqal.js"),__vite__mapDeps([26,3,2,4,1,8,11,12,9,7,13,27]),import.meta.url),()=>l(()=>import("../nodes/6.jJ67YnBc.js"),__vite__mapDeps([28,3,2,4,1,11,12,9,8,7,13,14,15,20,29]),import.meta.url)],Pt=[],Ot={"/":[2],"/graph":[6],"/[repo]/[type]/[id]":[3],"/[repo]/[type]/[id]/edit":[5],"/[repo]/[type]/[id]/[...path]":[4]},D={handleError:(({error:s})=>{console.error(s)}),reroute:(()=>{}),transport:{}},dt=Object.fromEntries(Object.entries(D.transport).map(([s,t])=>[s,t.decode])),Rt=Object.fromEntries(Object.entries(D.transport).map(([s,t])=>[s,t.encode])),xt=!1,At=(s,t)=>dt[s](t);export{At as decode,dt as decoders,Ot as dictionary,Rt as encoders,xt as hash,D as hooks,Et as matchers,pt as nodes,bt as root,Pt as server_loads};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.DfbCOBhn.js","../chunks/PPVm8Dsz.js","../chunks/bSAC733J.js","../chunks/DEJSHbC3.js","../chunks/Dml-u95b.js","../chunks/Bopa-Ask.js","../assets/0.CDbX4Cwz.css","../nodes/1.rK3ajRu8.js","../chunks/COwytaCP.js","../chunks/MbiSz-iW.js","../chunks/BYsZRR-U.js","../nodes/2.27FQOI32.js","../chunks/DvKVaE7M.js","../chunks/CE_NBP4v.js","../assets/AppShell.D0rmbdqF.css","../chunks/DYYYEzhe.js","../assets/ChatPanel.RFD5GGYI.css","../assets/2.DRHi7ABa.css","../nodes/3.cqvTkWN5.js","../chunks/BRsTRDZK.js","../chunks/DTUXhwEY.js","../assets/editor.CPAf2SRV.css","../assets/3.BJy7pVXi.css","../nodes/4.Ci1p8Ukm.js","../chunks/CqkleIqs.js","../assets/4.Ad16uh9o.css","../nodes/5.dJUxpcPT.js","../assets/5.BhKgiXd2.css","../nodes/6.BMtJECiy.js","../assets/6.Bm2i7O0j.css"])))=>i.map(i=>d[i]);
2
+ import{_ as l}from"../chunks/PPVm8Dsz.js";import{T as E,ay as F,F as m,aJ as G,aK as J,aL as K,n as B,z as H,A as N,S as Q,aM as U,V as y,u as W,q as X,P as b,t as Z,w as $,x as tt,Y as p}from"../chunks/DEJSHbC3.js";import{h as et,m as rt,u as at,s as st}from"../chunks/MbiSz-iW.js";import{a as h,d as P,f as w,t as ot}from"../chunks/bSAC733J.js";import{p as O,i as R,b as x}from"../chunks/DvKVaE7M.js";import{c as A}from"../chunks/DTUXhwEY.js";function nt(s){return class extends it{constructor(t){super({component:s,...t})}}}class it{#e;#t;constructor(t){var a=new Map,n=(e,r)=>{var c=K(r,!1,!1);return a.set(e,c),c};const i=new Proxy({...t.props||{},$$events:{}},{get(e,r){return m(a.get(r)??n(r,Reflect.get(e,r)))},has(e,r){return r===F?!0:(m(a.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r))},set(e,r,c){return E(a.get(r)??n(r,c),c),Reflect.set(e,r,c)}});this.#t=(t.hydrate?et:rt)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&G(),this.#e=i.$$events;for(const e of Object.keys(this.#t))e==="$set"||e==="$destroy"||e==="$on"||J(this,e,{get(){return this.#t[e]},set(r){this.#t[e]=r},enumerable:!0});this.#t.$set=e=>{Object.assign(i,e)},this.#t.$destroy=()=>{at(this.#t)}}$set(t){this.#t.$set(t)}$on(t,a){this.#e[t]=this.#e[t]||[];const n=(...i)=>a.call(this,...i);return this.#e[t].push(n),()=>{this.#e[t]=this.#e[t].filter(i=>i!==n)}}$destroy(){this.#t.$destroy()}}const Et={};var ct=w('<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>'),mt=w("<!> <!>",1);function ut(s,t){B(t,!0);let a=O(t,"components",23,()=>[]),n=O(t,"data_0",3,null),i=O(t,"data_1",3,null);H(()=>t.stores.page.set(t.page)),N(()=>{t.stores,t.page,t.constructors,a(),t.form,n(),i(),t.stores.page.notify()});let e=b(!1),r=b(!1),c=b(null);Q(()=>{const o=t.stores.page.subscribe(()=>{m(e)&&(E(r,!0),U().then(()=>{E(c,document.title||"untitled page",!0)}))});return E(e,!0),o});const I=p(()=>t.constructors[1]);var L=mt(),T=y(L);{var j=o=>{const u=p(()=>t.constructors[0]);var d=P(),v=y(d);A(v,()=>m(u),(_,f)=>{x(f(_,{get data(){return n()},get form(){return t.form},get params(){return t.page.params},children:(g,_t)=>{var V=P(),M=y(V);A(M,()=>m(I),(Y,q)=>{x(q(Y,{get data(){return i()},get form(){return t.form},get params(){return t.page.params}}),z=>a()[1]=z,()=>a()?.[1])}),h(g,V)},$$slots:{default:!0}}),g=>a()[0]=g,()=>a()?.[0])}),h(o,d)},k=o=>{const u=p(()=>t.constructors[0]);var d=P(),v=y(d);A(v,()=>m(u),(_,f)=>{x(f(_,{get data(){return n()},get form(){return t.form},get params(){return t.page.params}}),g=>a()[0]=g,()=>a()?.[0])}),h(o,d)};R(T,o=>{t.constructors[1]?o(j):o(k,!1)})}var C=W(T,2);{var S=o=>{var u=ct(),d=Z(u);{var v=_=>{var f=ot();tt(()=>st(f,m(c))),h(_,f)};R(d,_=>{m(r)&&_(v)})}$(u),h(o,u)};R(C,o=>{m(e)&&o(S)})}h(s,L),X()}const bt=nt(ut),pt=[()=>l(()=>import("../nodes/0.DfbCOBhn.js"),__vite__mapDeps([0,1,2,3,4,5,6]),import.meta.url),()=>l(()=>import("../nodes/1.rK3ajRu8.js"),__vite__mapDeps([7,2,3,8,9,10]),import.meta.url),()=>l(()=>import("../nodes/2.27FQOI32.js"),__vite__mapDeps([11,2,3,8,9,12,5,13,4,10,14,15,16,17]),import.meta.url),()=>l(()=>import("../nodes/3.cqvTkWN5.js"),__vite__mapDeps([18,4,3,5,2,9,12,13,10,8,14,15,16,19,20,1,21,22]),import.meta.url),()=>l(()=>import("../nodes/4.Ci1p8Ukm.js"),__vite__mapDeps([23,4,3,5,2,9,12,13,10,8,14,15,16,19,20,1,21,24,25]),import.meta.url),()=>l(()=>import("../nodes/5.dJUxpcPT.js"),__vite__mapDeps([26,4,3,5,2,9,12,13,10,8,14,27]),import.meta.url),()=>l(()=>import("../nodes/6.BMtJECiy.js"),__vite__mapDeps([28,2,3,12,5,13,4,10,9,8,14,15,16,1,29]),import.meta.url)],Pt=[],Ot={"/":[2],"/graph":[6],"/[repo]/[type]/[id]":[3],"/[repo]/[type]/[id]/edit":[5],"/[repo]/[type]/[id]/[...path]":[4]},D={handleError:(({error:s})=>{console.error(s)}),reroute:(()=>{}),transport:{}},dt=Object.fromEntries(Object.entries(D.transport).map(([s,t])=>[s,t.decode])),Rt=Object.fromEntries(Object.entries(D.transport).map(([s,t])=>[s,t.encode])),xt=!1,At=(s,t)=>dt[s](t);export{At as decode,dt as decoders,Ot as dictionary,Rt as encoders,xt as hash,D as hooks,Et as matchers,pt as nodes,bt as root,Pt as server_loads};
@@ -0,0 +1 @@
1
+ import{l as o,a as r}from"../chunks/BYsZRR-U.js";export{o as load_css,r as start};
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../chunks/BB_5th5W.js","../chunks/PPVm8Dsz.js","../chunks/CqkleIqs.js"])))=>i.map(i=>d[i]);
2
+ import{_ as v}from"../chunks/PPVm8Dsz.js";import{a as E,f as S}from"../chunks/bSAC733J.js";import{i as O,b as w,K as x,L as C,h as m,M as I,N as u,d as g,c as h,e as T,O as b,n as k,P as f,Q as A,R as p,A as F,F as a,S as D,x as M,q as P,T as n,U as R,t as L,w as N,$ as V}from"../chunks/DEJSHbC3.js";import{s as q,w as _,g as $,a as H}from"../chunks/Dml-u95b.js";function K(i,o){let r=null,t=m;var d;if(m){r=T;for(var e=b(document.head);e!==null&&(e.nodeType!==I||e.data!==i);)e=u(e);if(e===null)g(!1);else{var s=u(e);e.remove(),h(s)}}m||(d=document.head.appendChild(O()));try{w(()=>o(d),x|C)}finally{t&&(g(!0),h(r))}}var Q=S('<div style="display: contents;"><!></div>');function J(i,o){k(o,!0);const r=typeof localStorage<"u"?localStorage.getItem("theme"):null;let t=f(A(r==="light"?"light":"dark"));p("theme",{get current(){return a(t)},toggle(){n(t,a(t)==="dark"?"light":"dark",!0),localStorage.setItem("theme",a(t))}});const e=typeof localStorage<"u"?localStorage.getItem("chatOpen"):null;let s=f(e==="true");p("chat",{get open(){return a(s)},toggle(){n(s,!a(s)),localStorage.setItem("chatOpen",String(a(s)))},close(){n(s,!1),localStorage.setItem("chatOpen","false")}}),F(()=>{document.documentElement.setAttribute("data-theme",a(t))}),D(()=>{_.load(),$.refreshAll(),v(()=>import("../chunks/BB_5th5W.js"),__vite__mapDeps([0,1,2]),import.meta.url).catch(()=>{}),window.addEventListener("sg-theme-change",c=>{n(t,c.detail,!0)})});var l=Q();K("12qhfyh",c=>{R(()=>{V.title=(_.name||"Studiograph")??""})});var y=L(l);q(y,()=>o.children),N(l),M(()=>H(l,"data-theme",a(t))),E(i,l),P()}export{J as component};
@@ -1 +1 @@
1
- import{a as u,f as h}from"../chunks/hHxe9oXh.js";import{i as g}from"../chunks/CAXuTUkp.js";import{n as l,V as v,x as d,q as x,t as a,w as e,u as _}from"../chunks/fwnBoL5x.js";import{s as o}from"../chunks/BiubvAUI.js";import{s as $,p}from"../chunks/DPmdIe6Y.js";const k={get error(){return p.error},get status(){return p.status}};$.updated.check;const m=k;var b=h("<h1> </h1> <p> </p>",1);function y(i,f){l(f,!1),g();var t=b(),r=v(t),n=a(r,!0);e(r);var s=_(r,2),c=a(s,!0);e(s),d(()=>{o(n,m.status),o(c,m.error?.message)}),u(i,t),x()}export{y as component};
1
+ import{a as u,f as h}from"../chunks/bSAC733J.js";import{i as g}from"../chunks/COwytaCP.js";import{n as l,V as v,x as d,q as x,t as a,w as e,u as _}from"../chunks/DEJSHbC3.js";import{s as o}from"../chunks/MbiSz-iW.js";import{s as $,p}from"../chunks/BYsZRR-U.js";const k={get error(){return p.error},get status(){return p.status}};$.updated.check;const m=k;var b=h("<h1> </h1> <p> </p>",1);function y(i,f){l(f,!1),g();var t=b(),r=v(t),n=a(r,!0);e(r);var s=_(r,2),c=a(s,!0);e(s),d(()=>{o(n,m.status),o(c,m.error?.message)}),u(i,t),x()}export{y as component};
@@ -1 +1 @@
1
- import{a as v,f as d}from"../chunks/hHxe9oXh.js";import{i as b}from"../chunks/CAXuTUkp.js";import{n as y,o as C,q as S,t,u as l,v as V,w as e,x as k}from"../chunks/fwnBoL5x.js";import{s as A}from"../chunks/BiubvAUI.js";import{i as m}from"../chunks/BButMJ6M.js";import{n as P,A as q}from"../chunks/B0nldqWF.js";import{V as E,C as L}from"../chunks/DsERsGWg.js";import{w as p}from"../chunks/YFT1281h.js";var T=d('<h2 class="svelte-1uha8ag"> </h2>'),W=d('<div class="content-row svelte-1uha8ag"><div class="entity-area svelte-1uha8ag"><!> <div class="welcome svelte-1uha8ag"><!> <p class="svelte-1uha8ag">Select an entity from the sidebar to get started.</p></div></div> <!></div>');function K(c,f){y(f,!1);const h=C("chat");P.showEntity(),b(),q(c,{children:(g,j)=>{var o=W(),s=t(o),i=t(s);E(i,{activeView:"entity"});var n=l(i,2),u=t(n);{var _=a=>{var r=T(),$=t(r);e(r),k(()=>A($,`Welcome to ${(p.name||"Studiograph")??""}`)),v(a,r)};m(u,a=>{p.nameLoaded&&a(_)})}V(2),e(n),e(s);var w=l(s,2);{var x=a=>{L(a,{})};m(w,a=>{h.open&&a(x)})}e(o),v(g,o)},$$slots:{default:!0}}),S()}export{K as component};
1
+ import{a as v,f as d}from"../chunks/bSAC733J.js";import{i as b}from"../chunks/COwytaCP.js";import{n as y,o as C,q as S,t,u as l,v as V,w as e,x as k}from"../chunks/DEJSHbC3.js";import{s as A}from"../chunks/MbiSz-iW.js";import{i as m}from"../chunks/DvKVaE7M.js";import{n as P,A as q}from"../chunks/CE_NBP4v.js";import{V as E,C as L}from"../chunks/DYYYEzhe.js";import{w as p}from"../chunks/Dml-u95b.js";var T=d('<h2 class="svelte-1uha8ag"> </h2>'),W=d('<div class="content-row svelte-1uha8ag"><div class="entity-area svelte-1uha8ag"><!> <div class="welcome svelte-1uha8ag"><!> <p class="svelte-1uha8ag">Select an entity from the sidebar to get started.</p></div></div> <!></div>');function K(c,f){y(f,!1);const h=C("chat");P.showEntity(),b(),q(c,{children:(g,j)=>{var o=W(),s=t(o),i=t(s);E(i,{activeView:"entity"});var n=l(i,2),u=t(n);{var _=a=>{var r=T(),$=t(r);e(r),k(()=>A($,`Welcome to ${(p.name||"Studiograph")??""}`)),v(a,r)};m(u,a=>{p.nameLoaded&&a(_)})}V(2),e(n),e(s);var w=l(s,2);{var x=a=>{L(a,{})};m(w,a=>{h.open&&a(x)})}e(o),v(g,o)},$$slots:{default:!0}}),S()}export{K as component};
@@ -1 +1 @@
1
- import{f as lt,g as vt,w as z,c as ut,b as ft,a as yt}from"../chunks/YFT1281h.js";import{e as mt,a as y,f as _}from"../chunks/hHxe9oXh.js";import{n as _t,o as ht,P as m,Q as gt,A as Q,F as a,T as c,W as pt,q as bt,X as xt,t as v,u,Y as E,V as Ct,w as l,x as K}from"../chunks/fwnBoL5x.js";import{s as M}from"../chunks/BiubvAUI.js";import{i as w}from"../chunks/BButMJ6M.js";import{n as I,A as kt,e as wt,i as St}from"../chunks/B0nldqWF.js";import{g as X}from"../chunks/DPmdIe6Y.js";import{c as At,V as Pt,C as Tt}from"../chunks/DsERsGWg.js";import{e as o,I as Et,C as Kt,t as Mt}from"../chunks/nZKqDQ0w.js";const It=async({params:S,fetch:t})=>{const{repo:C,type:h,id:g}=S,p=await lt(C,h,g);return{repo:C,type:h,id:g,entity:p}},Gt=Object.freeze(Object.defineProperty({__proto__:null,load:It},Symbol.toStringTag,{value:"Module"}));var Ot=_('<span class="bc-sep svelte-1dc9loe">/</span>'),Vt=_("<!><span> </span>",1),Ft=_('<span class="status-text saving svelte-1dc9loe">Saving...</span>'),Rt=_('<span class="status-text error svelte-1dc9loe"> </span>'),jt=_('<a class="action-btn open-app svelte-1dc9loe"> </a>'),Dt=_('<div class="content-row svelte-1dc9loe"><div class="entity-area svelte-1dc9loe"><!> <div class="editor-bar svelte-1dc9loe"><div class="breadcrumb-path svelte-1dc9loe"></div> <div class="editor-actions svelte-1dc9loe"><!> <!></div></div> <div class="document-scroll svelte-1dc9loe"><!> <!></div></div> <!></div>');function Jt(S,t){_t(t,!0);const C=ht("chat"),h=E(()=>z.getAppForEntityType(t.data.entity.document?.frontmatter?.entity_type??t.data.type)),g=E(()=>()=>{const e=t.data.entity.path;if(e){const r=e.lastIndexOf(`/${t.data.repo}/`);if(r>=0)return e.substring(r+1).split("/")}return[t.data.repo,t.data.id,"main.md"]});let p=m(""),d=m(gt({})),O=m(0);const Y=E(()=>Mt(a(d)));let k=m(""),V=m(0),F=m(0);Q(()=>{const e=`${t.data.repo}/${t.data.type}/${t.data.id}`,r=vt.revertCount,i=At.mutationCount;(e!==a(k)||r!==a(V)||i!==a(F))&&(a(k)&&e!==a(k)&&o.flush(),c(k,e),c(V,r,!0),c(F,i,!0),c(p,(t.data.entity.document?.content??"").trim(),!0),c(d,{...t.data.entity.document?.frontmatter??t.data.entity.data??{}},!0),pt(O),o.reset())}),Q(()=>{I.select(t.data.repo,t.data.type,t.data.id),I.showEntity()});function B(e){c(p,e,!0),o.scheduleAutoSave(t.data.repo,t.data.type,t.data.id,{content:e})}function G(e,r){c(d,{...a(d),[e]:r},!0),o.scheduleAutoSave(t.data.repo,t.data.type,t.data.id,{data:a(d)})}function J(e){const{[e]:r,...i}=a(d);c(d,i,!0),o.scheduleAutoSave(t.data.repo,t.data.type,t.data.id,{data:a(d)})}function N(e,r){c(d,{...a(d),[e]:r},!0),o.scheduleAutoSave(t.data.repo,t.data.type,t.data.id,{data:a(d)})}function U(e,r){o.scheduleAutoSave(t.data.repo,t.data.type,t.data.id,{data:a(d)})}function Z(e){for(const r of z.repos){const i=r.entities.find(b=>b.id===e);if(i){X(`/${r.name}/${i.entityType}/${i.id}`);return}}}function $(e){(e.metaKey||e.ctrlKey)&&e.key==="s"&&(e.preventDefault(),o.flush()),e.key==="Escape"&&!(e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement)&&(o.flush(),I.deselect(),X("/"))}mt("keydown",xt,$),kt(S,{children:(e,r)=>{var i=Dt(),b=v(i),R=v(b);Pt(R,{activeView:"entity"});var A=u(R,2),P=v(A);wt(P,21,()=>a(g)(),St,(n,s,f)=>{var W=Vt(),q=Ct(W);{var it=x=>{var ct=Ot();y(x,ct)};w(q,x=>{f>0&&x(it)})}var T=u(q),st=v(T,!0);l(T),K(x=>{ft(T,1,x,"svelte-1dc9loe"),M(st,a(s))},[()=>ut(f===a(g)().length-1?"bc-current":"bc-segment")]),y(n,W)}),l(P);var j=u(P,2),D=v(j);{var tt=n=>{var s=Ft();y(n,s)},et=n=>{var s=Rt(),f=v(s,!0);l(s),K(()=>M(f,o.error)),y(n,s)};w(D,n=>{o.saving?n(tt):o.error&&n(et,1)})}var at=u(D,2);{var nt=n=>{var s=jt(),f=v(s);l(s),K(()=>{yt(s,"href",`/${t.data.repo??""}/${t.data.type??""}/${t.data.id??""}/edit`),M(f,`Open in ${a(h).name??""} →`)}),y(n,s)};w(at,n=>{a(h)&&n(nt)})}l(j),l(A);var H=u(A,2),L=v(H);Et(L,{get properties(){return a(Y)},editable:!0,onedit:G,onremove:J,onadd:N,ontypechange:U});var rt=u(L,2);Kt(rt,{get content(){return a(p)},readonly:!1,onchange:B,onsave:()=>o.flush(),onwikilinkclick:Z,get resetKey(){return a(O)}}),l(H),l(b);var ot=u(b,2);{var dt=n=>{Tt(n,{})};w(ot,n=>{C.open&&n(dt)})}l(i),y(e,i)},$$slots:{default:!0}}),bt()}export{Jt as component,Gt as universal};
1
+ import{f as lt,g as vt,w as z,c as ut,b as ft,a as yt}from"../chunks/Dml-u95b.js";import{e as mt,a as y,f as _}from"../chunks/bSAC733J.js";import{n as _t,o as ht,P as m,Q as gt,A as Q,F as a,T as c,W as pt,q as bt,X as xt,t as v,u,Y as E,V as Ct,w as l,x as K}from"../chunks/DEJSHbC3.js";import{s as M}from"../chunks/MbiSz-iW.js";import{i as w}from"../chunks/DvKVaE7M.js";import{n as I,A as kt,e as wt,i as St}from"../chunks/CE_NBP4v.js";import{g as X}from"../chunks/BYsZRR-U.js";import{c as At,V as Pt,C as Tt}from"../chunks/DYYYEzhe.js";import{e as o,I as Et,C as Kt,t as Mt}from"../chunks/BRsTRDZK.js";const It=async({params:S,fetch:t})=>{const{repo:C,type:h,id:g}=S,p=await lt(C,h,g);return{repo:C,type:h,id:g,entity:p}},Gt=Object.freeze(Object.defineProperty({__proto__:null,load:It},Symbol.toStringTag,{value:"Module"}));var Ot=_('<span class="bc-sep svelte-1dc9loe">/</span>'),Vt=_("<!><span> </span>",1),Ft=_('<span class="status-text saving svelte-1dc9loe">Saving...</span>'),Rt=_('<span class="status-text error svelte-1dc9loe"> </span>'),jt=_('<a class="action-btn open-app svelte-1dc9loe"> </a>'),Dt=_('<div class="content-row svelte-1dc9loe"><div class="entity-area svelte-1dc9loe"><!> <div class="editor-bar svelte-1dc9loe"><div class="breadcrumb-path svelte-1dc9loe"></div> <div class="editor-actions svelte-1dc9loe"><!> <!></div></div> <div class="document-scroll svelte-1dc9loe"><!> <!></div></div> <!></div>');function Jt(S,t){_t(t,!0);const C=ht("chat"),h=E(()=>z.getAppForEntityType(t.data.entity.document?.frontmatter?.entity_type??t.data.type)),g=E(()=>()=>{const e=t.data.entity.path;if(e){const r=e.lastIndexOf(`/${t.data.repo}/`);if(r>=0)return e.substring(r+1).split("/")}return[t.data.repo,t.data.id,"main.md"]});let p=m(""),d=m(gt({})),O=m(0);const Y=E(()=>Mt(a(d)));let k=m(""),V=m(0),F=m(0);Q(()=>{const e=`${t.data.repo}/${t.data.type}/${t.data.id}`,r=vt.revertCount,i=At.mutationCount;(e!==a(k)||r!==a(V)||i!==a(F))&&(a(k)&&e!==a(k)&&o.flush(),c(k,e),c(V,r,!0),c(F,i,!0),c(p,(t.data.entity.document?.content??"").trim(),!0),c(d,{...t.data.entity.document?.frontmatter??t.data.entity.data??{}},!0),pt(O),o.reset())}),Q(()=>{I.select(t.data.repo,t.data.type,t.data.id),I.showEntity()});function B(e){c(p,e,!0),o.scheduleAutoSave(t.data.repo,t.data.type,t.data.id,{content:e})}function G(e,r){c(d,{...a(d),[e]:r},!0),o.scheduleAutoSave(t.data.repo,t.data.type,t.data.id,{data:a(d)})}function J(e){const{[e]:r,...i}=a(d);c(d,i,!0),o.scheduleAutoSave(t.data.repo,t.data.type,t.data.id,{data:a(d)})}function N(e,r){c(d,{...a(d),[e]:r},!0),o.scheduleAutoSave(t.data.repo,t.data.type,t.data.id,{data:a(d)})}function U(e,r){o.scheduleAutoSave(t.data.repo,t.data.type,t.data.id,{data:a(d)})}function Z(e){for(const r of z.repos){const i=r.entities.find(b=>b.id===e);if(i){X(`/${r.name}/${i.entityType}/${i.id}`);return}}}function $(e){(e.metaKey||e.ctrlKey)&&e.key==="s"&&(e.preventDefault(),o.flush()),e.key==="Escape"&&!(e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement)&&(o.flush(),I.deselect(),X("/"))}mt("keydown",xt,$),kt(S,{children:(e,r)=>{var i=Dt(),b=v(i),R=v(b);Pt(R,{activeView:"entity"});var A=u(R,2),P=v(A);wt(P,21,()=>a(g)(),St,(n,s,f)=>{var W=Vt(),q=Ct(W);{var it=x=>{var ct=Ot();y(x,ct)};w(q,x=>{f>0&&x(it)})}var T=u(q),st=v(T,!0);l(T),K(x=>{ft(T,1,x,"svelte-1dc9loe"),M(st,a(s))},[()=>ut(f===a(g)().length-1?"bc-current":"bc-segment")]),y(n,W)}),l(P);var j=u(P,2),D=v(j);{var tt=n=>{var s=Ft();y(n,s)},et=n=>{var s=Rt(),f=v(s,!0);l(s),K(()=>M(f,o.error)),y(n,s)};w(D,n=>{o.saving?n(tt):o.error&&n(et,1)})}var at=u(D,2);{var nt=n=>{var s=jt(),f=v(s);l(s),K(()=>{yt(s,"href",`/${t.data.repo??""}/${t.data.type??""}/${t.data.id??""}/edit`),M(f,`Open in ${a(h).name??""} →`)}),y(n,s)};w(at,n=>{a(h)&&n(nt)})}l(j),l(A);var H=u(A,2),L=v(H);Et(L,{get properties(){return a(Y)},editable:!0,onedit:G,onremove:J,onadd:N,ontypechange:U});var rt=u(L,2);Kt(rt,{get content(){return a(p)},readonly:!1,onchange:B,onsave:()=>o.flush(),onwikilinkclick:Z,get resetKey(){return a(O)}}),l(H),l(b);var ot=u(b,2);{var dt=n=>{Tt(n,{})};w(ot,n=>{C.open&&n(dt)})}l(i),y(e,i)},$$slots:{default:!0}}),bt()}export{Jt as component,Gt as universal};
@@ -1,4 +1,4 @@
1
- import{d as Qt,r as jt,e as zt,b as Jt,c as Zt,w as Vt}from"../chunks/YFT1281h.js";import{g as Yt,j as ht,a as nt,f as it,e as Xt}from"../chunks/hHxe9oXh.js";import{n as Nt,P as yt,Q as Dt,A as Ft,t as U,u as X,F as l,w as z,x as At,T as N,v as Gt,q as Bt,o as $t,W as te,Y as Rt,X as ee,V as re}from"../chunks/fwnBoL5x.js";import{s as Mt}from"../chunks/BiubvAUI.js";import{i as Et,b as ne}from"../chunks/BButMJ6M.js";import{e as St,X as qt,i as Ot,P as Kt,n as It,A as ie}from"../chunks/B0nldqWF.js";import{g as se}from"../chunks/DPmdIe6Y.js";import{V as ae,C as oe}from"../chunks/DsERsGWg.js";import{e as ft,I as le,C as ue,t as he}from"../chunks/nZKqDQ0w.js";import{g as fe}from"../chunks/CqkleIqs.js";const de=async({params:O})=>{const{repo:v,type:w,id:a,path:F}=O,W=await Qt(v,w,a,F);return{repo:v,type:w,id:a,filePath:F,fileName:F.split("/").pop()??F,content:W}},Ie=Object.freeze(Object.defineProperty({__proto__:null,load:de},Symbol.toStringTag,{value:"Module"}));var xt={exports:{}};var ce=xt.exports,Wt;function pe(){return Wt||(Wt=1,(function(O,v){((w,a)=>{O.exports=a()})(ce,function w(){var a=typeof self<"u"?self:typeof window<"u"?window:a!==void 0?a:{},F,W=!a.document&&!!a.postMessage,H=a.IS_PAPA_WORKER||!1,J={},dt=0,d={};function Z(t){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},(function(e){var r=lt(e);r.chunkSize=parseInt(r.chunkSize),e.step||e.chunk||(r.chunkSize=null),this._handle=new vt(r),(this._handle.streamer=this)._config=r}).call(this,t),this.parseChunk=function(e,r){var s=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<s){let y=this._config.newline;y||(i=this._config.quoteChar||'"',y=this._handle.guessLineEndings(e,i)),e=[...e.split(y).slice(s)].join(y)}this.isFirstChunk&&m(this._config.beforeFirstChunk)&&(i=this._config.beforeFirstChunk(e))!==void 0&&(e=i),this.isFirstChunk=!1,this._halted=!1;var s=this._partialLine+e,i=(this._partialLine="",this._handle.parse(s,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(e=i.meta.cursor,s=(this._finished||(this._partialLine=s.substring(e-this._baseIndex),this._baseIndex=e),i&&i.data&&(this._rowCount+=i.data.length),this._finished||this._config.preview&&this._rowCount>=this._config.preview),H)a.postMessage({results:i,workerId:d.WORKER_ID,finished:s});else if(m(this._config.chunk)&&!r){if(this._config.chunk(i,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=i=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(i.data),this._completeResults.errors=this._completeResults.errors.concat(i.errors),this._completeResults.meta=i.meta),this._completed||!s||!m(this._config.complete)||i&&i.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),s||i&&i.meta.paused||this._nextChunk(),i}this._halted=!0},this._sendError=function(e){m(this._config.error)?this._config.error(e):H&&this._config.error&&a.postMessage({workerId:d.WORKER_ID,error:e,finished:!1})}}function $(t){var e;(t=t||{}).chunkSize||(t.chunkSize=d.RemoteChunkSize),Z.call(this,t),this._nextChunk=W?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(r){this._input=r,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(e=new XMLHttpRequest,this._config.withCredentials&&(e.withCredentials=this._config.withCredentials),W||(e.onload=b(this._chunkLoaded,this),e.onerror=b(this._chunkError,this)),e.open(this._config.downloadRequestBody?"POST":"GET",this._input,!W),this._config.downloadRequestHeaders){var r,s=this._config.downloadRequestHeaders;for(r in s)e.setRequestHeader(r,s[r])}var i;this._config.chunkSize&&(i=this._start+this._config.chunkSize-1,e.setRequestHeader("Range","bytes="+this._start+"-"+i));try{e.send(this._config.downloadRequestBody)}catch(y){this._chunkError(y.message)}W&&e.status===0&&this._chunkError()}},this._chunkLoaded=function(){e.readyState===4&&(e.status<200||400<=e.status?this._chunkError():(this._start+=this._config.chunkSize||e.responseText.length,this._finished=!this._config.chunkSize||this._start>=(r=>(r=r.getResponseHeader("Content-Range"))!==null?parseInt(r.substring(r.lastIndexOf("/")+1)):-1)(e),this.parseChunk(e.responseText)))},this._chunkError=function(r){r=e.statusText||r,this._sendError(new Error(r))}}function st(t){(t=t||{}).chunkSize||(t.chunkSize=d.LocalChunkSize),Z.call(this,t);var e,r,s=typeof FileReader<"u";this.stream=function(i){this._input=i,r=i.slice||i.webkitSlice||i.mozSlice,s?((e=new FileReader).onload=b(this._chunkLoaded,this),e.onerror=b(this._chunkError,this)):e=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var i=this._input,y=(this._config.chunkSize&&(y=Math.min(this._start+this._config.chunkSize,this._input.size),i=r.call(i,this._start,y)),e.readAsText(i,this._config.encoding));s||this._chunkLoaded({target:{result:y}})},this._chunkLoaded=function(i){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(i.target.result)},this._chunkError=function(){this._sendError(e.error)}}function at(t){var e;Z.call(this,t=t||{}),this.stream=function(r){return e=r,this._nextChunk()},this._nextChunk=function(){var r,s;if(!this._finished)return r=this._config.chunkSize,e=r?(s=e.substring(0,r),e.substring(r)):(s=e,""),this._finished=!e,this.parseChunk(s)}}function L(t){Z.call(this,t=t||{});var e=[],r=!0,s=!1;this.pause=function(){Z.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){Z.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(i){this._input=i,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){s&&e.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),e.length?this.parseChunk(e.shift()):r=!0},this._streamData=b(function(i){try{e.push(typeof i=="string"?i:i.toString(this._config.encoding)),r&&(r=!1,this._checkIsFinished(),this.parseChunk(e.shift()))}catch(y){this._streamError(y)}},this),this._streamError=b(function(i){this._streamCleanUp(),this._sendError(i)},this),this._streamEnd=b(function(){this._streamCleanUp(),s=!0,this._streamData("")},this),this._streamCleanUp=b(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function vt(t){var e,r,s,i,y=Math.pow(2,53),M=-y,u=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,h=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,n=this,R=0,f=0,q=!1,_=!1,c=[],o={data:[],errors:[],meta:{}};function D(k){return t.skipEmptyLines==="greedy"?k.join("").trim()==="":k.length===1&&k[0].length===0}function g(){if(o&&s&&(B("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+d.DefaultDelimiter+"'"),s=!1),t.skipEmptyLines&&(o.data=o.data.filter(function(p){return!D(p)})),A()){let p=function(j,K){m(t.transformHeader)&&(j=t.transformHeader(j,K)),c.push(j)};if(o)if(Array.isArray(o.data[0])){for(var k=0;A()&&k<o.data.length;k++)o.data[k].forEach(p);o.data.splice(0,1)}else o.data.forEach(p)}function C(p,j){for(var K=t.header?{}:[],x=0;x<p.length;x++){var T=x,S=p[x],S=((G,E)=>(I=>(t.dynamicTypingFunction&&t.dynamicTyping[I]===void 0&&(t.dynamicTyping[I]=t.dynamicTypingFunction(I)),(t.dynamicTyping[I]||t.dynamicTyping)===!0))(G)?E==="true"||E==="TRUE"||E!=="false"&&E!=="FALSE"&&((I=>{if(u.test(I)&&(I=parseFloat(I),M<I&&I<y))return 1})(E)?parseFloat(E):h.test(E)?new Date(E):E===""?null:E):E)(T=t.header?x>=c.length?"__parsed_extra":c[x]:T,S=t.transform?t.transform(S,T):S);T==="__parsed_extra"?(K[T]=K[T]||[],K[T].push(S)):K[T]=S}return t.header&&(x>c.length?B("FieldMismatch","TooManyFields","Too many fields: expected "+c.length+" fields but parsed "+x,f+j):x<c.length&&B("FieldMismatch","TooFewFields","Too few fields: expected "+c.length+" fields but parsed "+x,f+j)),K}var P;o&&(t.header||t.dynamicTyping||t.transform)&&(P=1,!o.data.length||Array.isArray(o.data[0])?(o.data=o.data.map(C),P=o.data.length):o.data=C(o.data,0),t.header&&o.meta&&(o.meta.fields=c),f+=P)}function A(){return t.header&&c.length===0}function B(k,C,P,p){k={type:k,code:C,message:P},p!==void 0&&(k.row=p),o.errors.push(k)}m(t.step)&&(i=t.step,t.step=function(k){o=k,A()?g():(g(),o.data.length!==0&&(R+=k.data.length,t.preview&&R>t.preview?r.abort():(o.data=o.data[0],i(o,n))))}),this.parse=function(k,C,P){var p=t.quoteChar||'"',p=(t.newline||(t.newline=this.guessLineEndings(k,p)),s=!1,t.delimiter?m(t.delimiter)&&(t.delimiter=t.delimiter(k),o.meta.delimiter=t.delimiter):((p=((j,K,x,T,S)=>{var G,E,I,gt;S=S||[","," ","|",";",d.RECORD_SEP,d.UNIT_SEP];for(var kt=0;kt<S.length;kt++){for(var tt,wt=S[kt],V=0,et=0,Q=0,Y=(I=void 0,new mt({comments:T,delimiter:wt,newline:K,preview:10}).parse(j)),ut=0;ut<Y.data.length;ut++)x&&D(Y.data[ut])?Q++:(tt=Y.data[ut].length,et+=tt,I===void 0?I=tt:0<tt&&(V+=Math.abs(tt-I),I=tt));0<Y.data.length&&(et/=Y.data.length-Q),(E===void 0||V<=E)&&(gt===void 0||gt<et)&&1.99<et&&(E=V,G=wt,gt=et)}return{successful:!!(t.delimiter=G),bestDelimiter:G}})(k,t.newline,t.skipEmptyLines,t.comments,t.delimitersToGuess)).successful?t.delimiter=p.bestDelimiter:(s=!0,t.delimiter=d.DefaultDelimiter),o.meta.delimiter=t.delimiter),lt(t));return t.preview&&t.header&&p.preview++,e=k,r=new mt(p),o=r.parse(e,C,P),g(),q?{meta:{paused:!0}}:o||{meta:{paused:!1}}},this.paused=function(){return q},this.pause=function(){q=!0,r.abort(),e=m(t.chunk)?"":e.substring(r.getCharIndex())},this.resume=function(){n.streamer._halted?(q=!1,n.streamer.parseChunk(e,!0)):setTimeout(n.resume,3)},this.aborted=function(){return _},this.abort=function(){_=!0,r.abort(),o.meta.aborted=!0,m(t.complete)&&t.complete(o),e=""},this.guessLineEndings=function(j,p){j=j.substring(0,1048576);var p=new RegExp(ot(p)+"([^]*?)"+ot(p),"gm"),P=(j=j.replace(p,"")).split("\r"),p=j.split(`
1
+ import{d as Qt,r as jt,e as zt,b as Jt,c as Zt,w as Vt}from"../chunks/Dml-u95b.js";import{g as Yt,j as ht,a as nt,f as it,e as Xt}from"../chunks/bSAC733J.js";import{n as Nt,P as yt,Q as Dt,A as Ft,t as U,u as X,F as l,w as z,x as At,T as N,v as Gt,q as Bt,o as $t,W as te,Y as Rt,X as ee,V as re}from"../chunks/DEJSHbC3.js";import{s as Mt}from"../chunks/MbiSz-iW.js";import{i as Et,b as ne}from"../chunks/DvKVaE7M.js";import{e as St,X as qt,i as Ot,P as Kt,n as It,A as ie}from"../chunks/CE_NBP4v.js";import{g as se}from"../chunks/BYsZRR-U.js";import{V as ae,C as oe}from"../chunks/DYYYEzhe.js";import{e as ft,I as le,C as ue,t as he}from"../chunks/BRsTRDZK.js";import{g as fe}from"../chunks/CqkleIqs.js";const de=async({params:O})=>{const{repo:v,type:w,id:a,path:F}=O,W=await Qt(v,w,a,F);return{repo:v,type:w,id:a,filePath:F,fileName:F.split("/").pop()??F,content:W}},Ie=Object.freeze(Object.defineProperty({__proto__:null,load:de},Symbol.toStringTag,{value:"Module"}));var xt={exports:{}};var ce=xt.exports,Wt;function pe(){return Wt||(Wt=1,(function(O,v){((w,a)=>{O.exports=a()})(ce,function w(){var a=typeof self<"u"?self:typeof window<"u"?window:a!==void 0?a:{},F,W=!a.document&&!!a.postMessage,H=a.IS_PAPA_WORKER||!1,J={},dt=0,d={};function Z(t){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},(function(e){var r=lt(e);r.chunkSize=parseInt(r.chunkSize),e.step||e.chunk||(r.chunkSize=null),this._handle=new vt(r),(this._handle.streamer=this)._config=r}).call(this,t),this.parseChunk=function(e,r){var s=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<s){let y=this._config.newline;y||(i=this._config.quoteChar||'"',y=this._handle.guessLineEndings(e,i)),e=[...e.split(y).slice(s)].join(y)}this.isFirstChunk&&m(this._config.beforeFirstChunk)&&(i=this._config.beforeFirstChunk(e))!==void 0&&(e=i),this.isFirstChunk=!1,this._halted=!1;var s=this._partialLine+e,i=(this._partialLine="",this._handle.parse(s,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(e=i.meta.cursor,s=(this._finished||(this._partialLine=s.substring(e-this._baseIndex),this._baseIndex=e),i&&i.data&&(this._rowCount+=i.data.length),this._finished||this._config.preview&&this._rowCount>=this._config.preview),H)a.postMessage({results:i,workerId:d.WORKER_ID,finished:s});else if(m(this._config.chunk)&&!r){if(this._config.chunk(i,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=i=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(i.data),this._completeResults.errors=this._completeResults.errors.concat(i.errors),this._completeResults.meta=i.meta),this._completed||!s||!m(this._config.complete)||i&&i.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),s||i&&i.meta.paused||this._nextChunk(),i}this._halted=!0},this._sendError=function(e){m(this._config.error)?this._config.error(e):H&&this._config.error&&a.postMessage({workerId:d.WORKER_ID,error:e,finished:!1})}}function $(t){var e;(t=t||{}).chunkSize||(t.chunkSize=d.RemoteChunkSize),Z.call(this,t),this._nextChunk=W?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(r){this._input=r,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(e=new XMLHttpRequest,this._config.withCredentials&&(e.withCredentials=this._config.withCredentials),W||(e.onload=b(this._chunkLoaded,this),e.onerror=b(this._chunkError,this)),e.open(this._config.downloadRequestBody?"POST":"GET",this._input,!W),this._config.downloadRequestHeaders){var r,s=this._config.downloadRequestHeaders;for(r in s)e.setRequestHeader(r,s[r])}var i;this._config.chunkSize&&(i=this._start+this._config.chunkSize-1,e.setRequestHeader("Range","bytes="+this._start+"-"+i));try{e.send(this._config.downloadRequestBody)}catch(y){this._chunkError(y.message)}W&&e.status===0&&this._chunkError()}},this._chunkLoaded=function(){e.readyState===4&&(e.status<200||400<=e.status?this._chunkError():(this._start+=this._config.chunkSize||e.responseText.length,this._finished=!this._config.chunkSize||this._start>=(r=>(r=r.getResponseHeader("Content-Range"))!==null?parseInt(r.substring(r.lastIndexOf("/")+1)):-1)(e),this.parseChunk(e.responseText)))},this._chunkError=function(r){r=e.statusText||r,this._sendError(new Error(r))}}function st(t){(t=t||{}).chunkSize||(t.chunkSize=d.LocalChunkSize),Z.call(this,t);var e,r,s=typeof FileReader<"u";this.stream=function(i){this._input=i,r=i.slice||i.webkitSlice||i.mozSlice,s?((e=new FileReader).onload=b(this._chunkLoaded,this),e.onerror=b(this._chunkError,this)):e=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var i=this._input,y=(this._config.chunkSize&&(y=Math.min(this._start+this._config.chunkSize,this._input.size),i=r.call(i,this._start,y)),e.readAsText(i,this._config.encoding));s||this._chunkLoaded({target:{result:y}})},this._chunkLoaded=function(i){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(i.target.result)},this._chunkError=function(){this._sendError(e.error)}}function at(t){var e;Z.call(this,t=t||{}),this.stream=function(r){return e=r,this._nextChunk()},this._nextChunk=function(){var r,s;if(!this._finished)return r=this._config.chunkSize,e=r?(s=e.substring(0,r),e.substring(r)):(s=e,""),this._finished=!e,this.parseChunk(s)}}function L(t){Z.call(this,t=t||{});var e=[],r=!0,s=!1;this.pause=function(){Z.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){Z.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(i){this._input=i,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){s&&e.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),e.length?this.parseChunk(e.shift()):r=!0},this._streamData=b(function(i){try{e.push(typeof i=="string"?i:i.toString(this._config.encoding)),r&&(r=!1,this._checkIsFinished(),this.parseChunk(e.shift()))}catch(y){this._streamError(y)}},this),this._streamError=b(function(i){this._streamCleanUp(),this._sendError(i)},this),this._streamEnd=b(function(){this._streamCleanUp(),s=!0,this._streamData("")},this),this._streamCleanUp=b(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function vt(t){var e,r,s,i,y=Math.pow(2,53),M=-y,u=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,h=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,n=this,R=0,f=0,q=!1,_=!1,c=[],o={data:[],errors:[],meta:{}};function D(k){return t.skipEmptyLines==="greedy"?k.join("").trim()==="":k.length===1&&k[0].length===0}function g(){if(o&&s&&(B("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+d.DefaultDelimiter+"'"),s=!1),t.skipEmptyLines&&(o.data=o.data.filter(function(p){return!D(p)})),A()){let p=function(j,K){m(t.transformHeader)&&(j=t.transformHeader(j,K)),c.push(j)};if(o)if(Array.isArray(o.data[0])){for(var k=0;A()&&k<o.data.length;k++)o.data[k].forEach(p);o.data.splice(0,1)}else o.data.forEach(p)}function C(p,j){for(var K=t.header?{}:[],x=0;x<p.length;x++){var T=x,S=p[x],S=((G,E)=>(I=>(t.dynamicTypingFunction&&t.dynamicTyping[I]===void 0&&(t.dynamicTyping[I]=t.dynamicTypingFunction(I)),(t.dynamicTyping[I]||t.dynamicTyping)===!0))(G)?E==="true"||E==="TRUE"||E!=="false"&&E!=="FALSE"&&((I=>{if(u.test(I)&&(I=parseFloat(I),M<I&&I<y))return 1})(E)?parseFloat(E):h.test(E)?new Date(E):E===""?null:E):E)(T=t.header?x>=c.length?"__parsed_extra":c[x]:T,S=t.transform?t.transform(S,T):S);T==="__parsed_extra"?(K[T]=K[T]||[],K[T].push(S)):K[T]=S}return t.header&&(x>c.length?B("FieldMismatch","TooManyFields","Too many fields: expected "+c.length+" fields but parsed "+x,f+j):x<c.length&&B("FieldMismatch","TooFewFields","Too few fields: expected "+c.length+" fields but parsed "+x,f+j)),K}var P;o&&(t.header||t.dynamicTyping||t.transform)&&(P=1,!o.data.length||Array.isArray(o.data[0])?(o.data=o.data.map(C),P=o.data.length):o.data=C(o.data,0),t.header&&o.meta&&(o.meta.fields=c),f+=P)}function A(){return t.header&&c.length===0}function B(k,C,P,p){k={type:k,code:C,message:P},p!==void 0&&(k.row=p),o.errors.push(k)}m(t.step)&&(i=t.step,t.step=function(k){o=k,A()?g():(g(),o.data.length!==0&&(R+=k.data.length,t.preview&&R>t.preview?r.abort():(o.data=o.data[0],i(o,n))))}),this.parse=function(k,C,P){var p=t.quoteChar||'"',p=(t.newline||(t.newline=this.guessLineEndings(k,p)),s=!1,t.delimiter?m(t.delimiter)&&(t.delimiter=t.delimiter(k),o.meta.delimiter=t.delimiter):((p=((j,K,x,T,S)=>{var G,E,I,gt;S=S||[","," ","|",";",d.RECORD_SEP,d.UNIT_SEP];for(var kt=0;kt<S.length;kt++){for(var tt,wt=S[kt],V=0,et=0,Q=0,Y=(I=void 0,new mt({comments:T,delimiter:wt,newline:K,preview:10}).parse(j)),ut=0;ut<Y.data.length;ut++)x&&D(Y.data[ut])?Q++:(tt=Y.data[ut].length,et+=tt,I===void 0?I=tt:0<tt&&(V+=Math.abs(tt-I),I=tt));0<Y.data.length&&(et/=Y.data.length-Q),(E===void 0||V<=E)&&(gt===void 0||gt<et)&&1.99<et&&(E=V,G=wt,gt=et)}return{successful:!!(t.delimiter=G),bestDelimiter:G}})(k,t.newline,t.skipEmptyLines,t.comments,t.delimitersToGuess)).successful?t.delimiter=p.bestDelimiter:(s=!0,t.delimiter=d.DefaultDelimiter),o.meta.delimiter=t.delimiter),lt(t));return t.preview&&t.header&&p.preview++,e=k,r=new mt(p),o=r.parse(e,C,P),g(),q?{meta:{paused:!0}}:o||{meta:{paused:!1}}},this.paused=function(){return q},this.pause=function(){q=!0,r.abort(),e=m(t.chunk)?"":e.substring(r.getCharIndex())},this.resume=function(){n.streamer._halted?(q=!1,n.streamer.parseChunk(e,!0)):setTimeout(n.resume,3)},this.aborted=function(){return _},this.abort=function(){_=!0,r.abort(),o.meta.aborted=!0,m(t.complete)&&t.complete(o),e=""},this.guessLineEndings=function(j,p){j=j.substring(0,1048576);var p=new RegExp(ot(p)+"([^]*?)"+ot(p),"gm"),P=(j=j.replace(p,"")).split("\r"),p=j.split(`
2
2
  `),j=1<p.length&&p[0].length<P[0].length;if(P.length===1||j)return`
3
3
  `;for(var K=0,x=0;x<P.length;x++)P[x][0]===`
4
4
  `&&K++;return K>=P.length/2?`\r
@@ -1,4 +1,4 @@
1
- import{f as dt,b as G,w as ut}from"../chunks/YFT1281h.js";import{a as k,f as M,d as ft}from"../chunks/hHxe9oXh.js";import{n as Z,A as $,S as mt,t as H,u as T,F as v,w as F,x as I,q as tt,P as J,T as S,V as ht,Y as vt}from"../chunks/fwnBoL5x.js";import{s as et}from"../chunks/BiubvAUI.js";import{b as Q,i as O}from"../chunks/BButMJ6M.js";import{n as X,A as yt}from"../chunks/B0nldqWF.js";import{g as pt}from"../chunks/DPmdIe6Y.js";const bt=async({params:g})=>{const{repo:o,type:l,id:c}=g,f=await dt(o,l,c);return{repo:o,type:l,id:c,entity:f}},Ht=Object.freeze(Object.defineProperty({__proto__:null,load:bt},Symbol.toStringTag,{value:"Module"}));var gt=M('<div class="loading-indicator svelte-1fltv0h">Loading editor...</div>'),wt=M('<div class="error-indicator svelte-1fltv0h"> </div>'),_t=M('<div><div class="header-mount svelte-1fltv0h"></div> <!> <!> <div></div></div>');function At(g,o){Z(o,!0);let l,c,f=J(!0),m=J(null),p=[],b=[],w=[],d={},y=[],h=null,_=null,A=0;function j(){const e=window.StudioChrome,i=document.querySelector(".sg-chrome-overflow-menu");if(i&&(i.innerHTML=""),e&&(e.clearViewAction(),e.clearSaveHandlers()),_&&(_.el.removeEventListener("click",_.handler,!0),_=null),e){e.unmountHeader();for(const{event:r,fn:s}of w)e.off(r,s)}w=[];for(const r of p)r.remove();p=[];for(const r of b)r.remove();b=[],h&&(h.remove(),h=null);for(const[r,s]of Object.entries(d))s===void 0?document.body.removeAttribute(r):document.body.setAttribute(r,s);d={};for(const r of y)document.body.classList.remove(r);y=[],c&&(c.innerHTML="")}async function q(){const e=++A;S(f,!0),S(m,null),j();try{const i=`${o.appMountPath}/edit/${encodeURIComponent(o.repo)}/${encodeURIComponent(o.entityId)}`,r=await fetch(i);if(!r.ok)throw new Error(`Failed to load editor: ${r.status}`);if(e!==A)return;const s=await r.text(),P=new DOMParser().parseFromString(s,"text/html"),at=P.querySelectorAll('link[rel="stylesheet"]');for(const t of at){if(t.href.includes("chrome.css"))continue;let n=t.getAttribute("href")||"";n&&!n.startsWith("http")&&!n.startsWith("/")&&(n=`${o.appMountPath}/${n}`);const a=document.createElement("link");a.rel="stylesheet",a.href=n,document.head.appendChild(a),p.push(a)}const it=P.querySelectorAll("head style");for(const t of it){const n=document.createElement("style");n.textContent=t.textContent,document.head.appendChild(n),p.push(n)}h=document.createElement("style"),h.textContent=`
1
+ import{f as dt,b as G,w as ut}from"../chunks/Dml-u95b.js";import{a as k,f as M,d as ft}from"../chunks/bSAC733J.js";import{n as Z,A as $,S as mt,t as H,u as T,F as v,w as F,x as I,q as tt,P as J,T as S,V as ht,Y as vt}from"../chunks/DEJSHbC3.js";import{s as et}from"../chunks/MbiSz-iW.js";import{b as Q,i as O}from"../chunks/DvKVaE7M.js";import{n as X,A as yt}from"../chunks/CE_NBP4v.js";import{g as pt}from"../chunks/BYsZRR-U.js";const bt=async({params:g})=>{const{repo:o,type:l,id:c}=g,f=await dt(o,l,c);return{repo:o,type:l,id:c,entity:f}},Ht=Object.freeze(Object.defineProperty({__proto__:null,load:bt},Symbol.toStringTag,{value:"Module"}));var gt=M('<div class="loading-indicator svelte-1fltv0h">Loading editor...</div>'),wt=M('<div class="error-indicator svelte-1fltv0h"> </div>'),_t=M('<div><div class="header-mount svelte-1fltv0h"></div> <!> <!> <div></div></div>');function At(g,o){Z(o,!0);let l,c,f=J(!0),m=J(null),p=[],b=[],w=[],d={},y=[],h=null,_=null,A=0;function j(){const e=window.StudioChrome,i=document.querySelector(".sg-chrome-overflow-menu");if(i&&(i.innerHTML=""),e&&(e.clearViewAction(),e.clearSaveHandlers()),_&&(_.el.removeEventListener("click",_.handler,!0),_=null),e){e.unmountHeader();for(const{event:r,fn:s}of w)e.off(r,s)}w=[];for(const r of p)r.remove();p=[];for(const r of b)r.remove();b=[],h&&(h.remove(),h=null);for(const[r,s]of Object.entries(d))s===void 0?document.body.removeAttribute(r):document.body.setAttribute(r,s);d={};for(const r of y)document.body.classList.remove(r);y=[],c&&(c.innerHTML="")}async function q(){const e=++A;S(f,!0),S(m,null),j();try{const i=`${o.appMountPath}/edit/${encodeURIComponent(o.repo)}/${encodeURIComponent(o.entityId)}`,r=await fetch(i);if(!r.ok)throw new Error(`Failed to load editor: ${r.status}`);if(e!==A)return;const s=await r.text(),P=new DOMParser().parseFromString(s,"text/html"),at=P.querySelectorAll('link[rel="stylesheet"]');for(const t of at){if(t.href.includes("chrome.css"))continue;let n=t.getAttribute("href")||"";n&&!n.startsWith("http")&&!n.startsWith("/")&&(n=`${o.appMountPath}/${n}`);const a=document.createElement("link");a.rel="stylesheet",a.href=n,document.head.appendChild(a),p.push(a)}const it=P.querySelectorAll("head style");for(const t of it){const n=document.createElement("style");n.textContent=t.textContent,document.head.appendChild(n),p.push(n)}h=document.createElement("style"),h.textContent=`
2
2
  body.sg-chrome-active { height: auto !important; }
3
3
  body.sg-chrome-active > :not(.sg-chrome-header):not(.sg-chrome-footer) { overflow: visible !important; }
4
4
  `,document.head.appendChild(h);const L=P.body;for(const t of Array.from(L.attributes))t.name.startsWith("data-")&&(d[t.name]=document.body.getAttribute(t.name)??void 0,document.body.setAttribute(t.name,t.value));const st=Array.from(L.classList);for(const t of st)t!=="sg-chrome-active"&&(document.body.classList.contains(t)||(document.body.classList.add(t),y.push(t)));const ct=L.querySelectorAll("script"),R=[],K=[];for(const t of ct){if(t.src){const n=t.getAttribute("src")||"";if(n.includes("chrome.js"))continue;let a=n;a&&!a.startsWith("http")&&!a.startsWith("/")&&(a=`${o.appMountPath}/${a}`),R.push(a)}else t.textContent&&K.push(t.textContent);t.remove()}c.innerHTML=L.innerHTML;const u=window.StudioChrome;if(u){u.updateBreadcrumb(o.repo,o.entityId),u.mountHeader(l);const t=document.body.dataset.sgViewUrl,n=document.body.dataset.sgViewLabel;t?u.setViewAction(t,n):u.clearViewAction();const a=l.querySelector(".sg-chrome-back");if(a){const N=Y=>{Y.preventDefault(),Y.stopPropagation(),pt(`/${o.repo}/${o.entityType}/${o.entityId}`)};a.addEventListener("click",N,!0),_={el:a,handler:N}}}let E=null;u&&(E=u.on,u.on=function(t,n){w.push({event:t,fn:n}),E.call(this,t,n)});const lt=`?_v=${Date.now()}`;for(const t of R){if(e!==A)return;await ot(t+lt)}for(const t of K){if(e!==A)return;const n=document.createElement("script");n.textContent=t,document.body.appendChild(n),b.push(n)}u&&E&&(u.on=E),S(f,!1)}catch(i){if(e!==A)return;S(m,i.message||"Failed to load editor",!0),S(f,!1)}}function ot(e){return new Promise((i,r)=>{const s=document.createElement("script");s.src=e,s.onload=()=>i(),s.onerror=()=>r(new Error(`Failed to load script: ${e}`)),document.body.appendChild(s),b.push(s)})}let x="";$(()=>{const e=`${o.appMountPath}|${o.repo}|${o.entityId}`;x&&x!==e&&c&&q(),x=e}),mt(()=>(q(),j));var C=_t();let V;var B=H(C);Q(B,e=>l=e,()=>l);var W=T(B,2);{var nt=e=>{var i=gt();k(e,i)};O(W,e=>{v(f)&&e(nt)})}var U=T(W,2);{var rt=e=>{var i=wt(),r=H(i,!0);F(i),I(()=>et(r,v(m))),k(e,i)};O(U,e=>{v(m)&&e(rt)})}var D=T(U,2);let z;Q(D,e=>c=e,()=>c),F(C),I(()=>{V=G(C,1,"editor-frame svelte-1fltv0h",null,V,{loading:v(f)}),z=G(D,1,"editor-container svelte-1fltv0h",null,z,{hidden:v(f)||!!v(m)})}),k(g,C),tt()}var St=M('<div class="no-editor svelte-bzivfp"> </div>');function Ft(g,o){Z(o,!0);const l=vt(()=>ut.getAppForEntityType(o.data.type));$(()=>{X.select(o.data.repo,o.data.type,o.data.id),X.showEntity()}),yt(g,{showSidebar:!1,children:(c,f)=>{var m=ft(),p=ht(m);{var b=d=>{At(d,{get appMountPath(){return v(l).mountPath},get repo(){return o.data.repo},get entityId(){return o.data.id},get entityType(){return o.data.type}})},w=d=>{var y=St(),h=H(y);F(y),I(()=>et(h,`No app editor available for entity type "${o.data.type??""}"`)),k(d,y)};O(p,d=>{v(l)?d(b):d(w,!1)})}k(c,m)},$$slots:{default:!0}}),tt()}export{Ft as component,Ht as universal};