plan-assistant 1.3.4 → 1.4.0
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.
- package/build/client/_app/immutable/chunks/{BJs6I7qC.js → 10ZXP06Q.js} +1 -1
- package/build/client/_app/immutable/chunks/{ChJyFfSj.js → 1eL0zcBS.js} +1 -1
- package/build/client/_app/immutable/chunks/74GYr5Jz.js +3 -0
- package/build/client/_app/immutable/chunks/{B2fFwvWw.js → B-HTmPy1.js} +1 -1
- package/build/client/_app/immutable/chunks/{RIGBV7Ip.js → B2hVYoEJ.js} +1 -1
- package/build/client/_app/immutable/chunks/{DVXd8vwC.js → B628eJGB.js} +1 -1
- package/build/client/_app/immutable/chunks/{CpucjHJL.js → B80ongyB.js} +1 -1
- package/build/client/_app/immutable/chunks/{BXCtgyOT.js → B8FhIQG1.js} +1 -1
- package/build/client/_app/immutable/chunks/{DoIz7SoC.js → BCgSWfby.js} +1 -1
- package/build/client/_app/immutable/chunks/{B-25Ue8o.js → BFl4ofgi.js} +4 -4
- package/build/client/_app/immutable/chunks/{DK1zqZrn.js → BIKGXasq.js} +1 -1
- package/build/client/_app/immutable/chunks/{DlbZX2EZ.js → BNv9nR-i.js} +1 -1
- package/build/client/_app/immutable/chunks/{CeIvvAVV.js → BOjlNXC_.js} +1 -1
- package/build/client/_app/immutable/chunks/{a5eoTq-5.js → BRBMkxQw.js} +1 -1
- package/build/client/_app/immutable/chunks/{_2rlQOMN.js → BT3ImTYg.js} +1 -1
- package/build/client/_app/immutable/chunks/{BJxAjYQA.js → BUu_XsOv.js} +1 -1
- package/build/client/_app/immutable/chunks/{B9WViv7H.js → BVq6bo_n.js} +1 -1
- package/build/client/_app/immutable/chunks/{DteI5BLO.js → BZQqs639.js} +1 -1
- package/build/client/_app/immutable/chunks/{nFhgrnCT.js → BZTb6H6F.js} +1 -1
- package/build/client/_app/immutable/chunks/{Dl-inTne.js → BrjAEg64.js} +1 -1
- package/build/client/_app/immutable/chunks/{DSIQf7-a.js → Bt3MWn7w.js} +26 -26
- package/build/client/_app/immutable/chunks/{Dnz2r_pS.js → BvzznBFq.js} +1 -1
- package/build/client/_app/immutable/chunks/{DshYkidx.js → C4gCk_ik.js} +1 -1
- package/build/client/_app/immutable/chunks/{2wZlHG5k.js → C5wtj4WQ.js} +1 -1
- package/build/client/_app/immutable/chunks/{Dvli4fnO.js → CEqaJ7Yk.js} +1 -1
- package/build/client/_app/immutable/chunks/{3E04qp8C.js → CIGAXayx.js} +1 -1
- package/build/client/_app/immutable/chunks/COggdvXA.js +1 -0
- package/build/client/_app/immutable/chunks/{C47KpwkC.js → CYQe9sJG.js} +1 -1
- package/build/client/_app/immutable/chunks/{BrX0OiHa.js → CYxrEvMN.js} +1 -1
- package/build/client/_app/immutable/chunks/{CUqNPCjK.js → CaLUaLKT.js} +1 -1
- package/build/client/_app/immutable/chunks/{Cwd5DdSa.js → CdHvJ4_w.js} +1 -1
- package/build/client/_app/immutable/chunks/{CJ-lpX9h.js → Ckyou5Od.js} +1 -1
- package/build/client/_app/immutable/chunks/{C1YAjCKh.js → CmrXQ7MQ.js} +1 -1
- package/build/client/_app/immutable/chunks/{BWYga5zO.js → Cn53TYFN.js} +1 -1
- package/build/client/_app/immutable/chunks/{CD_kQCcy.js → CobJHAAW.js} +1 -1
- package/build/client/_app/immutable/chunks/{B51GwAfL.js → CpHaxpYy.js} +1 -1
- package/build/client/_app/immutable/chunks/{BdoKnygS.js → CuD0M7ml.js} +2 -2
- package/build/client/_app/immutable/chunks/{BfABZbDO.js → DGn8gxMH.js} +1 -1
- package/build/client/_app/immutable/chunks/{CbTVVa30.js → DJ4TnckQ.js} +1 -1
- package/build/client/_app/immutable/chunks/{C_qF9Ll1.js → DL-S4jBj.js} +1 -1
- package/build/client/_app/immutable/chunks/{ioQlYLW1.js → DLTGIy2S.js} +1 -1
- package/build/client/_app/immutable/chunks/{EodvFm9d.js → DcaEnsuI.js} +1 -1
- package/build/client/_app/immutable/chunks/{CH1RPLU9.js → DhPQR3Px.js} +1 -1
- package/build/client/_app/immutable/chunks/{gzN3DgKu.js → Dik5m9U4.js} +1 -1
- package/build/client/_app/immutable/chunks/{DSQnKfn-.js → Dj-iuGW3.js} +1 -1
- package/build/client/_app/immutable/chunks/{DePvhy8M.js → MQLxN4-w.js} +1 -1
- package/build/client/_app/immutable/chunks/{SbhBQTvy.js → N5edR_wk.js} +1 -1
- package/build/client/_app/immutable/chunks/{k7j8NQjk.js → NMQ8yb5B.js} +1 -1
- package/build/client/_app/immutable/chunks/{DJe5QTzh.js → S5LArjpJ.js} +1 -1
- package/build/client/_app/immutable/chunks/{CgJVu5ra.js → SsCjYNSL.js} +1 -1
- package/build/client/_app/immutable/chunks/UguYSyR_.js +1 -0
- package/build/client/_app/immutable/chunks/{CkIr3n4I.js → aOKoOpNt.js} +1 -1
- package/build/client/_app/immutable/chunks/{wOfVBGZS.js → dRJp6O4P.js} +1 -1
- package/build/client/_app/immutable/chunks/{CJ4vuw4Q.js → nlEqX7_u.js} +1 -1
- package/build/client/_app/immutable/chunks/{lFo8pWTB.js → q-tJjDlp.js} +1 -1
- package/build/client/_app/immutable/entry/{app.xXlXisbW.js → app.BR7HPYnZ.js} +2 -2
- package/build/client/_app/immutable/entry/start.DbhlkFfd.js +1 -0
- package/build/client/_app/immutable/nodes/0.BDKx-zUI.js +1 -0
- package/build/client/_app/immutable/nodes/{1.CduF9YQo.js → 1.B_9JaBUL.js} +1 -1
- package/build/client/_app/immutable/nodes/{2.ZFWOqsMm.js → 2.D_8Y7w6T.js} +1 -1
- package/build/client/_app/immutable/nodes/3.sgWOIIcg.js +1 -0
- package/build/client/_app/version.json +1 -1
- package/build/server/chunks/{0-F8UDIQlw.js → 0-C94QRPbG.js} +2 -2
- package/build/server/chunks/{0-F8UDIQlw.js.map → 0-C94QRPbG.js.map} +1 -1
- package/build/server/chunks/1-G6vwI4Kc.js +9 -0
- package/build/server/chunks/{1-YUd-zKqx.js.map → 1-G6vwI4Kc.js.map} +1 -1
- package/build/server/chunks/{2-tND4IT0j.js → 2-Cy9PX2zK.js} +2 -2
- package/build/server/chunks/{2-tND4IT0j.js.map → 2-Cy9PX2zK.js.map} +1 -1
- package/build/server/chunks/{3-DzwYMPfw.js → 3-CxxgkGJa.js} +3 -3
- package/build/server/chunks/{3-DzwYMPfw.js.map → 3-CxxgkGJa.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-BXgDoamA.js → _page.svelte-DdQY1QqH.js} +62 -3
- package/build/server/chunks/_page.svelte-DdQY1QqH.js.map +1 -0
- package/build/server/chunks/_server.ts-CEtvrNT1.js +13 -0
- package/build/server/chunks/_server.ts-CEtvrNT1.js.map +1 -0
- package/build/server/chunks/{_server.ts-p_sHg72N.js → _server.ts-sRxHDQa9.js} +2 -2
- package/build/server/chunks/{_server.ts-p_sHg72N.js.map → _server.ts-sRxHDQa9.js.map} +1 -1
- package/build/server/chunks/{hooks.server-CeNxBnIX.js → hooks.server-sBuk2932.js} +12 -2
- package/build/server/chunks/hooks.server-sBuk2932.js.map +1 -0
- package/build/server/chunks/idle-timer-CouFy_WF.js +49 -0
- package/build/server/chunks/idle-timer-CouFy_WF.js.map +1 -0
- package/build/server/chunks/{sse-manager-DpUiK2jt.js → sse-manager-C9ZLI_Nx.js} +13 -2
- package/build/server/chunks/sse-manager-C9ZLI_Nx.js.map +1 -0
- package/build/server/index.js +22 -3
- package/build/server/index.js.map +1 -1
- package/build/server/manifest.js +13 -6
- package/build/server/manifest.js.map +1 -1
- package/dist/cli/commands/review.js +34 -233
- package/dist/cli/commands/stop.js +64 -0
- package/dist/cli/index.js +7 -0
- package/dist/cli/server-client.js +209 -0
- package/dist/cli/session-reader.js +70 -1
- package/package.json +1 -1
- package/build/client/_app/immutable/chunks/BHAhR-ZH.js +0 -3
- package/build/client/_app/immutable/chunks/BPkIOP5x.js +0 -1
- package/build/client/_app/immutable/chunks/QMxLvN9k.js +0 -1
- package/build/client/_app/immutable/entry/start.C6hZEWOp.js +0 -1
- package/build/client/_app/immutable/nodes/0.BZ6p9IRV.js +0 -1
- package/build/client/_app/immutable/nodes/3.CfL49yTp.js +0 -1
- package/build/server/chunks/1-YUd-zKqx.js +0 -9
- package/build/server/chunks/_page.svelte-BXgDoamA.js.map +0 -1
- package/build/server/chunks/hooks.server-CeNxBnIX.js.map +0 -1
- package/build/server/chunks/sse-manager-DpUiK2jt.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as a,b as t,a as r,S as s}from"./
|
|
1
|
+
import{s as a,b as t,a as r,S as s}from"./BCgSWfby.js";import{_ as i}from"./BFl4ofgi.js";var _={parser:r,get db(){return new s(2)},renderer:t,styles:a,init:i(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};export{_ as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as r}from"./B2hVYoEJ.js";var e=4;function a(o){return r(o,e)}export{a as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as l}from"./
|
|
1
|
+
import{_ as l}from"./BFl4ofgi.js";function m(e,c){var i,t,o;e.accDescr&&((i=c.setAccDescription)==null||i.call(c,e.accDescr)),e.accTitle&&((t=c.setAccTitle)==null||t.call(c,e.accTitle)),e.title&&((o=c.setDiagramTitle)==null||o.call(c,e.title))}l(m,"populateCommonDb");export{m as p};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var Ie=Object.defineProperty;var ue=t=>{throw TypeError(t)};var Me=(t,e,r)=>e in t?Ie(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var j=(t,e,r)=>Me(t,typeof e!="symbol"?e+"":e,r),re=(t,e,r)=>e.has(t)||ue("Cannot "+r);var s=(t,e,r)=>(re(t,e,"read from private field"),r?r.call(t):e.get(t)),c=(t,e,r)=>e.has(t)?ue("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),n=(t,e,r,a)=>(re(t,e,"write to private field"),a?a.call(t,r):e.set(t,r),r),p=(t,e,r)=>(re(t,e,"access private method"),r);import{ab as Ye,g as me,J as Ce,ac as we,F as He,ad as _e,K as W,n as I,h as M,Q as x,ae as pe,e as Le,f as xe,j as Be,af as ge,x as k,w as Te,ag as se,v as ie,z as qe,ah as ve,ai as Pe,aj as ye,ak as Ve,al as We,am as U,an as X,ao as be,ap as $e,aq as Re,C as Se,ar as je,q as ae,l as Z,as as ze,k as Je,at as z,E as Ge,au as Ke,av as Qe,aw as Ue,ax as Xe,ay as Ze,az as et,aA as ne,$ as tt,aB as De,H as rt,aC as st,aD as fe,m as J,aE as it,aF as at,aG as nt,aH as ft,p as ht,aI as ot,aJ as lt,a as ct}from"./
|
|
1
|
+
var Ie=Object.defineProperty;var ue=t=>{throw TypeError(t)};var Me=(t,e,r)=>e in t?Ie(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var j=(t,e,r)=>Me(t,typeof e!="symbol"?e+"":e,r),re=(t,e,r)=>e.has(t)||ue("Cannot "+r);var s=(t,e,r)=>(re(t,e,"read from private field"),r?r.call(t):e.get(t)),c=(t,e,r)=>e.has(t)?ue("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),n=(t,e,r,a)=>(re(t,e,"write to private field"),a?a.call(t,r):e.set(t,r),r),p=(t,e,r)=>(re(t,e,"access private method"),r);import{ab as Ye,g as me,J as Ce,ac as we,F as He,ad as _e,K as W,n as I,h as M,Q as x,ae as pe,e as Le,f as xe,j as Be,af as ge,x as k,w as Te,ag as se,v as ie,z as qe,ah as ve,ai as Pe,aj as ye,ak as Ve,al as We,am as U,an as X,ao as be,ap as $e,aq as Re,C as Se,ar as je,q as ae,l as Z,as as ze,k as Je,at as z,E as Ge,au as Ke,av as Qe,aw as Ue,ax as Xe,ay as Ze,az as et,aA as ne,$ as tt,aB as De,H as rt,aC as st,aD as fe,m as J,aE as it,aF as at,aG as nt,aH as ft,p as ht,aI as ot,aJ as lt,a as ct}from"./CobJHAAW.js";import{b as dt}from"./BrjAEg64.js";function ut(t){let e=0,r=we(0),a;return()=>{Ye()&&(me(r),Ce(()=>(e===0&&(a=He(()=>t(()=>_e(r)))),e+=1,()=>{W(()=>{e-=1,e===0&&(a==null||a(),a=void 0,_e(r))})})))}}var _t=Ge|Ke;function pt(t,e,r,a){new gt(t,e,r,a)}var E,$,T,C,g,R,m,w,S,H,N,B,q,P,D,ee,o,Ae,Ne,Fe,he,K,Q,oe;class gt{constructor(e,r,a,h){c(this,o);j(this,"parent");j(this,"is_pending",!1);j(this,"transform_error");c(this,E);c(this,$,M?I:null);c(this,T);c(this,C);c(this,g);c(this,R,null);c(this,m,null);c(this,w,null);c(this,S,null);c(this,H,0);c(this,N,0);c(this,B,!1);c(this,q,new Set);c(this,P,new Set);c(this,D,null);c(this,ee,ut(()=>(n(this,D,we(s(this,H))),()=>{n(this,D,null)})));var i;n(this,E,e),n(this,T,r),n(this,C,f=>{var u=x;u.b=this,u.f|=pe,a(f)}),this.parent=x.b,this.transform_error=h??((i=this.parent)==null?void 0:i.transform_error)??(f=>f),n(this,g,Le(()=>{if(M){const f=s(this,$);xe();const u=f.data===Be;if(f.data.startsWith(ge)){const d=JSON.parse(f.data.slice(ge.length));p(this,o,Ne).call(this,d)}else u?p(this,o,Fe).call(this):p(this,o,Ae).call(this)}else p(this,o,he).call(this)},_t)),M&&n(this,E,I)}defer_effect(e){We(e,s(this,q),s(this,P))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!s(this,T).pending}update_pending_count(e){p(this,o,oe).call(this,e),n(this,H,s(this,H)+e),!(!s(this,D)||s(this,B))&&(n(this,B,!0),W(()=>{n(this,B,!1),s(this,D)&&je(s(this,D),s(this,H))}))}get_effect_pending(){return s(this,ee).call(this),me(s(this,D))}error(e){var r=s(this,T).onerror;let a=s(this,T).failed;if(!r&&!a)throw e;s(this,R)&&(ae(s(this,R)),n(this,R,null)),s(this,m)&&(ae(s(this,m)),n(this,m,null)),s(this,w)&&(ae(s(this,w)),n(this,w,null)),M&&(Z(s(this,$)),ze(),Z(Je()));var h=!1,i=!1;const f=()=>{if(h){Ue();return}h=!0,i&&Qe(),s(this,w)!==null&&ie(s(this,w),()=>{n(this,w,null)}),p(this,o,Q).call(this,()=>{se.ensure(),p(this,o,he).call(this)})},u=l=>{try{i=!0,r==null||r(l,f),i=!1}catch(d){z(d,s(this,g)&&s(this,g).parent)}a&&n(this,w,p(this,o,Q).call(this,()=>{se.ensure();try{return k(()=>{var d=x;d.b=this,d.f|=pe,a(s(this,E),()=>l,()=>f)})}catch(d){return z(d,s(this,g).parent),null}}))};W(()=>{var l;try{l=this.transform_error(e)}catch(d){z(d,s(this,g)&&s(this,g).parent);return}l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(u,d=>z(d,s(this,g)&&s(this,g).parent)):u(l)})}}E=new WeakMap,$=new WeakMap,T=new WeakMap,C=new WeakMap,g=new WeakMap,R=new WeakMap,m=new WeakMap,w=new WeakMap,S=new WeakMap,H=new WeakMap,N=new WeakMap,B=new WeakMap,q=new WeakMap,P=new WeakMap,D=new WeakMap,ee=new WeakMap,o=new WeakSet,Ae=function(){try{n(this,R,k(()=>s(this,C).call(this,s(this,E))))}catch(e){this.error(e)}},Ne=function(e){const r=s(this,T).failed;r&&n(this,w,k(()=>{r(s(this,E),()=>e,()=>()=>{})}))},Fe=function(){const e=s(this,T).pending;e&&(this.is_pending=!0,n(this,m,k(()=>e(s(this,E)))),W(()=>{var r=n(this,S,document.createDocumentFragment()),a=Te();r.append(a),n(this,R,p(this,o,Q).call(this,()=>(se.ensure(),k(()=>s(this,C).call(this,a))))),s(this,N)===0&&(s(this,E).before(r),n(this,S,null),ie(s(this,m),()=>{n(this,m,null)}),p(this,o,K).call(this))}))},he=function(){try{if(this.is_pending=this.has_pending_snippet(),n(this,N,0),n(this,H,0),n(this,R,k(()=>{s(this,C).call(this,s(this,E))})),s(this,N)>0){var e=n(this,S,document.createDocumentFragment());qe(s(this,R),e);const r=s(this,T).pending;n(this,m,k(()=>r(s(this,E))))}else p(this,o,K).call(this)}catch(r){this.error(r)}},K=function(){this.is_pending=!1;for(const e of s(this,q))ve(e,Pe),ye(e);for(const e of s(this,P))ve(e,Ve),ye(e);s(this,q).clear(),s(this,P).clear()},Q=function(e){var r=x,a=Re,h=Se;U(s(this,g)),X(s(this,g)),be(s(this,g).ctx);try{return e()}catch(i){return $e(i),null}finally{U(r),X(a),be(h)}},oe=function(e){var r;if(!this.has_pending_snippet()){this.parent&&p(r=this.parent,o,oe).call(r,e);return}n(this,N,s(this,N)+e),s(this,N)===0&&(p(this,o,K).call(this),s(this,m)&&ie(s(this,m),()=>{n(this,m,null)}),s(this,S)&&(s(this,E).before(s(this,S)),n(this,S,null)))};const vt=["touchstart","touchmove"];function yt(t){return vt.includes(t)}const Y=Symbol("events"),Oe=new Set,le=new Set;function bt(t,e,r,a={}){function h(i){if(a.capture||ce.call(e,i),!i.cancelBubble)return et(()=>r==null?void 0:r.call(this,i))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?W(()=>{e.addEventListener(t,h,a)}):e.addEventListener(t,h,a),h}function Rt(t,e,r,a,h){var i={capture:a,passive:h},f=bt(t,e,r,i);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Ze(()=>{e.removeEventListener(t,f,i)})}function St(t,e,r){(e[Y]??(e[Y]={}))[t]=r}function Dt(t){for(var e=0;e<t.length;e++)Oe.add(t[e]);for(var r of le)r(t)}let Ee=null;function ce(t){var F,b;var e=this,r=e.ownerDocument,a=t.type,h=((F=t.composedPath)==null?void 0:F.call(t))||[],i=h[0]||t.target;Ee=t;var f=0,u=Ee===t&&t[Y];if(u){var l=h.indexOf(u);if(l!==-1&&(e===document||e===window)){t[Y]=e;return}var d=h.indexOf(e);if(d===-1)return;l<=d&&(f=l)}if(i=h[f]||t.target,i!==e){Xe(t,"currentTarget",{configurable:!0,get(){return i||r}});var L=Re,V=x;X(null),U(null);try{for(var A,v=[];i!==null;){var _=i.assignedSlot||i.parentNode||i.host||null;try{var y=(b=i[Y])==null?void 0:b[a];y!=null&&(!i.disabled||t.target===i)&&y.call(i,t)}catch(O){A?v.push(O):A=O}if(t.cancelBubble||_===e||_===null)break;i=_}if(A){for(let O of v)queueMicrotask(()=>{throw O});throw A}}finally{t[Y]=e,delete t.currentTarget,X(L),U(V)}}}function At(t,e){var r=e==null?"":typeof e=="object"?`${e}`:e;r!==(t.__t??(t.__t=t.nodeValue))&&(t.__t=r,t.nodeValue=`${r}`)}function Et(t,e){return ke(t,e)}function Nt(t,e){ne(),e.intro=e.intro??!1;const r=e.target,a=M,h=I;try{for(var i=tt(r);i&&(i.nodeType!==De||i.data!==rt);)i=st(i);if(!i)throw fe;J(!0),Z(i);const f=ke(t,{...e,anchor:i});return J(!1),f}catch(f){if(f instanceof Error&&f.message.split(`
|
|
2
2
|
`).some(u=>u.startsWith("https://svelte.dev/e/")))throw f;return f!==fe&&console.warn("Failed to hydrate: ",f),e.recover===!1&&it(),ne(),at(r),J(!1),Et(t,e)}finally{J(a),Z(h)}}const G=new Map;function ke(t,{target:e,anchor:r,props:a={},events:h,context:i,intro:f=!0,transformError:u}){ne();var l=void 0,d=nt(()=>{var L=r??e.appendChild(Te());pt(L,{pending:()=>{}},v=>{ht({});var _=Se;if(i&&(_.c=i),h&&(a.$$events=h),M&&dt(v,null),l=t(v,a)||{},M&&(x.nodes.end=I,I===null||I.nodeType!==De||I.data!==ot))throw lt(),fe;ct()},u);var V=new Set,A=v=>{for(var _=0;_<v.length;_++){var y=v[_];if(!V.has(y)){V.add(y);var F=yt(y);for(const te of[e,document]){var b=G.get(te);b===void 0&&(b=new Map,G.set(te,b));var O=b.get(y);O===void 0?(te.addEventListener(y,ce,{passive:F}),b.set(y,1)):b.set(y,O+1)}}}};return A(ft(Oe)),le.add(A),()=>{var F;for(var v of V)for(const b of[e,document]){var _=G.get(b),y=_.get(v);--y==0?(b.removeEventListener(v,ce),_.delete(v),_.size===0&&G.delete(b)):_.set(v,y)}le.delete(A),L!==r&&((F=L.parentNode)==null||F.removeChild(L))}});return de.set(l,d),l}let de=new WeakMap;function Ft(t,e){const r=de.get(t);return r?(de.delete(t),r(e)):Promise.resolve()}export{St as a,Dt as d,Rt as e,Nt as h,Et as m,At as s,Ft as u};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as s,c as xt,l as E,d as q,V as kt,W as vt,X as _t,Y as bt,B as wt,$ as St,y as Et}from"./
|
|
1
|
+
import{_ as s,c as xt,l as E,d as q,V as kt,W as vt,X as _t,Y as bt,B as wt,$ as St,y as Et}from"./BFl4ofgi.js";import{d as nt}from"./BT3ImTYg.js";var X=(function(){var n=s(function(f,r,a,h){for(a=a||{},h=f.length;h--;a[f[h]]=r);return a},"o"),t=[6,8,10,11,12,14,16,17,20,21],e=[1,9],l=[1,10],i=[1,11],d=[1,12],c=[1,13],g=[1,16],m=[1,17],p={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",20:"period",21:"event"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[18,1],[19,1]],performAction:s(function(r,a,h,u,y,o,S){var k=o.length-1;switch(y){case 1:return o[k-1];case 2:this.$=[];break;case 3:o[k-1].push(o[k]),this.$=o[k-1];break;case 4:case 5:this.$=o[k];break;case 6:case 7:this.$=[];break;case 8:u.getCommonDb().setDiagramTitle(o[k].substr(6)),this.$=o[k].substr(6);break;case 9:this.$=o[k].trim(),u.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=o[k].trim(),u.getCommonDb().setAccDescription(this.$);break;case 12:u.addSection(o[k].substr(8)),this.$=o[k].substr(8);break;case 15:u.addTask(o[k],0,""),this.$=o[k];break;case 16:u.addEvent(o[k].substr(2)),this.$=o[k];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},n(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:e,12:l,14:i,16:d,17:c,18:14,19:15,20:g,21:m},n(t,[2,7],{1:[2,1]}),n(t,[2,3]),{9:18,11:e,12:l,14:i,16:d,17:c,18:14,19:15,20:g,21:m},n(t,[2,5]),n(t,[2,6]),n(t,[2,8]),{13:[1,19]},{15:[1,20]},n(t,[2,11]),n(t,[2,12]),n(t,[2,13]),n(t,[2,14]),n(t,[2,15]),n(t,[2,16]),n(t,[2,4]),n(t,[2,9]),n(t,[2,10])],defaultActions:{},parseError:s(function(r,a){if(a.recoverable)this.trace(r);else{var h=new Error(r);throw h.hash=a,h}},"parseError"),parse:s(function(r){var a=this,h=[0],u=[],y=[null],o=[],S=this.table,k="",$=0,C=0,B=2,J=1,O=o.slice.call(arguments,1),v=Object.create(this.lexer),N={yy:{}};for(var L in this.yy)Object.prototype.hasOwnProperty.call(this.yy,L)&&(N.yy[L]=this.yy[L]);v.setInput(r,N.yy),N.yy.lexer=v,N.yy.parser=this,typeof v.yylloc>"u"&&(v.yylloc={});var b=v.yylloc;o.push(b);var M=v.options&&v.options.ranges;typeof N.yy.parseError=="function"?this.parseError=N.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function R(T){h.length=h.length-2*T,y.length=y.length-T,o.length=o.length-T}s(R,"popStack");function A(){var T;return T=u.pop()||v.lex()||J,typeof T!="number"&&(T instanceof Array&&(u=T,T=u.pop()),T=a.symbols_[T]||T),T}s(A,"lex");for(var w,H,I,K,V={},j,P,et,G;;){if(H=h[h.length-1],this.defaultActions[H]?I=this.defaultActions[H]:((w===null||typeof w>"u")&&(w=A()),I=S[H]&&S[H][w]),typeof I>"u"||!I.length||!I[0]){var Q="";G=[];for(j in S[H])this.terminals_[j]&&j>B&&G.push("'"+this.terminals_[j]+"'");v.showPosition?Q="Parse error on line "+($+1)+`:
|
|
2
2
|
`+v.showPosition()+`
|
|
3
3
|
Expecting `+G.join(", ")+", got '"+(this.terminals_[w]||w)+"'":Q="Parse error on line "+($+1)+": Unexpected "+(w==J?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(Q,{text:v.match,token:this.terminals_[w]||w,line:v.yylineno,loc:b,expected:G})}if(I[0]instanceof Array&&I.length>1)throw new Error("Parse Error: multiple actions possible at state: "+H+", token: "+w);switch(I[0]){case 1:h.push(w),y.push(v.yytext),o.push(v.yylloc),h.push(I[1]),w=null,C=v.yyleng,k=v.yytext,$=v.yylineno,b=v.yylloc;break;case 2:if(P=this.productions_[I[1]][1],V.$=y[y.length-P],V._$={first_line:o[o.length-(P||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(P||1)].first_column,last_column:o[o.length-1].last_column},M&&(V._$.range=[o[o.length-(P||1)].range[0],o[o.length-1].range[1]]),K=this.performAction.apply(V,[k,C,$,N.yy,I[1],y,o].concat(O)),typeof K<"u")return K;P&&(h=h.slice(0,-1*P*2),y=y.slice(0,-1*P),o=o.slice(0,-1*P)),h.push(this.productions_[I[1]][0]),y.push(V.$),o.push(V._$),et=S[h[h.length-2]][h[h.length-1]],h.push(et);break;case 3:return!0}}return!0},"parse")},x=(function(){var f={EOF:1,parseError:s(function(a,h){if(this.yy.parser)this.yy.parser.parseError(a,h);else throw new Error(a)},"parseError"),setInput:s(function(r,a){return this.yy=a||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:s(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var a=r.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:s(function(r){var a=r.length,h=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),h.length-1&&(this.yylineno-=h.length-1);var y=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:h?(h.length===u.length?this.yylloc.first_column:0)+u[u.length-h.length].length-h[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[y[0],y[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},"unput"),more:s(function(){return this._more=!0,this},"more"),reject:s(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:s(function(r){this.unput(this.match.slice(r))},"less"),pastInput:s(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var r=this.pastInput(),a=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as le}from"./
|
|
1
|
+
import{g as le}from"./Cn53TYFN.js";import{s as he}from"./DhPQR3Px.js";import{_ as l,l as C,o as de,r as ge,E as j,c as X,i as F,aH as ue,W as pe,X as fe,Y as ye}from"./BFl4ofgi.js";const E=[];for(let t=0;t<256;++t)E.push((t+256).toString(16).slice(1));function me(t,e=0){return(E[t[e+0]]+E[t[e+1]]+E[t[e+2]]+E[t[e+3]]+"-"+E[t[e+4]]+E[t[e+5]]+"-"+E[t[e+6]]+E[t[e+7]]+"-"+E[t[e+8]]+E[t[e+9]]+"-"+E[t[e+10]]+E[t[e+11]]+E[t[e+12]]+E[t[e+13]]+E[t[e+14]]+E[t[e+15]]).toLowerCase()}let Y;const Ee=new Uint8Array(16);function _e(){if(!Y){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Y=crypto.getRandomValues.bind(crypto)}return Y(Ee)}const be=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),ne={randomUUID:be};function Se(t,e,n){var u;if(ne.randomUUID&&!t)return ne.randomUUID();t=t||{};const c=t.random??((u=t.rng)==null?void 0:u.call(t))??_e();if(c.length<16)throw new Error("Random bytes length must be >= 16");return c[6]=c[6]&15|64,c[8]=c[8]&63|128,me(c)}var q=(function(){var t=l(function(v,s,i,a){for(i=i||{},a=v.length;a--;i[v[a]]=s);return i},"o"),e=[1,4],n=[1,13],c=[1,12],u=[1,15],h=[1,16],p=[1,20],y=[1,19],_=[6,7,8],b=[1,26],m=[1,24],w=[1,25],D=[6,7,11],J=[1,6,13,15,16,19,22],K=[1,33],Q=[1,34],A=[1,6,7,11,13,15,16,19,22],G={trace:l(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:l(function(s,i,a,o,g,r,U){var d=r.length-1;switch(g){case 6:case 7:return o;case 8:o.getLogger().trace("Stop NL ");break;case 9:o.getLogger().trace("Stop EOF ");break;case 11:o.getLogger().trace("Stop NL2 ");break;case 12:o.getLogger().trace("Stop EOF2 ");break;case 15:o.getLogger().info("Node: ",r[d].id),o.addNode(r[d-1].length,r[d].id,r[d].descr,r[d].type);break;case 16:o.getLogger().trace("Icon: ",r[d]),o.decorateNode({icon:r[d]});break;case 17:case 21:o.decorateNode({class:r[d]});break;case 18:o.getLogger().trace("SPACELIST");break;case 19:o.getLogger().trace("Node: ",r[d].id),o.addNode(0,r[d].id,r[d].descr,r[d].type);break;case 20:o.decorateNode({icon:r[d]});break;case 25:o.getLogger().trace("node found ..",r[d-2]),this.$={id:r[d-1],descr:r[d-1],type:o.getType(r[d-2],r[d])};break;case 26:this.$={id:r[d],descr:r[d],type:o.nodeType.DEFAULT};break;case 27:o.getLogger().trace("node found ..",r[d-3]),this.$={id:r[d-3],descr:r[d-1],type:o.getType(r[d-2],r[d])};break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:e},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:e},{6:n,7:[1,10],9:9,12:11,13:c,14:14,15:u,16:h,17:17,18:18,19:p,22:y},t(_,[2,3]),{1:[2,2]},t(_,[2,4]),t(_,[2,5]),{1:[2,6],6:n,12:21,13:c,14:14,15:u,16:h,17:17,18:18,19:p,22:y},{6:n,9:22,12:11,13:c,14:14,15:u,16:h,17:17,18:18,19:p,22:y},{6:b,7:m,10:23,11:w},t(D,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:p,22:y}),t(D,[2,18]),t(D,[2,19]),t(D,[2,20]),t(D,[2,21]),t(D,[2,23]),t(D,[2,24]),t(D,[2,26],{19:[1,30]}),{20:[1,31]},{6:b,7:m,10:32,11:w},{1:[2,7],6:n,12:21,13:c,14:14,15:u,16:h,17:17,18:18,19:p,22:y},t(J,[2,14],{7:K,11:Q}),t(A,[2,8]),t(A,[2,9]),t(A,[2,10]),t(D,[2,15]),t(D,[2,16]),t(D,[2,17]),{20:[1,35]},{21:[1,36]},t(J,[2,13],{7:K,11:Q}),t(A,[2,11]),t(A,[2,12]),{21:[1,37]},t(D,[2,25]),t(D,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:l(function(s,i){if(i.recoverable)this.trace(s);else{var a=new Error(s);throw a.hash=i,a}},"parseError"),parse:l(function(s){var i=this,a=[0],o=[],g=[null],r=[],U=this.table,d="",M=0,Z=0,re=2,ee=1,ae=r.slice.call(arguments,1),f=Object.create(this.lexer),T={yy:{}};for(var H in this.yy)Object.prototype.hasOwnProperty.call(this.yy,H)&&(T.yy[H]=this.yy[H]);f.setInput(s,T.yy),T.yy.lexer=f,T.yy.parser=this,typeof f.yylloc>"u"&&(f.yylloc={});var $=f.yylloc;r.push($);var oe=f.options&&f.options.ranges;typeof T.yy.parseError=="function"?this.parseError=T.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ce(N){a.length=a.length-2*N,g.length=g.length-N,r.length=r.length-N}l(ce,"popStack");function te(){var N;return N=o.pop()||f.lex()||ee,typeof N!="number"&&(N instanceof Array&&(o=N,N=o.pop()),N=i.symbols_[N]||N),N}l(te,"lex");for(var S,O,k,W,I={},V,L,ie,B;;){if(O=a[a.length-1],this.defaultActions[O]?k=this.defaultActions[O]:((S===null||typeof S>"u")&&(S=te()),k=U[O]&&U[O][S]),typeof k>"u"||!k.length||!k[0]){var z="";B=[];for(V in U[O])this.terminals_[V]&&V>re&&B.push("'"+this.terminals_[V]+"'");f.showPosition?z="Parse error on line "+(M+1)+`:
|
|
2
2
|
`+f.showPosition()+`
|
|
3
3
|
Expecting `+B.join(", ")+", got '"+(this.terminals_[S]||S)+"'":z="Parse error on line "+(M+1)+": Unexpected "+(S==ee?"end of input":"'"+(this.terminals_[S]||S)+"'"),this.parseError(z,{text:f.match,token:this.terminals_[S]||S,line:f.yylineno,loc:$,expected:B})}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+O+", token: "+S);switch(k[0]){case 1:a.push(S),g.push(f.yytext),r.push(f.yylloc),a.push(k[1]),S=null,Z=f.yyleng,d=f.yytext,M=f.yylineno,$=f.yylloc;break;case 2:if(L=this.productions_[k[1]][1],I.$=g[g.length-L],I._$={first_line:r[r.length-(L||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(L||1)].first_column,last_column:r[r.length-1].last_column},oe&&(I._$.range=[r[r.length-(L||1)].range[0],r[r.length-1].range[1]]),W=this.performAction.apply(I,[d,Z,M,T.yy,k[1],g,r].concat(ae)),typeof W<"u")return W;L&&(a=a.slice(0,-1*L*2),g=g.slice(0,-1*L),r=r.slice(0,-1*L)),a.push(this.productions_[k[1]][0]),g.push(I.$),r.push(I._$),ie=U[a[a.length-2]][a[a.length-1]],a.push(ie);break;case 3:return!0}}return!0},"parse")},se=(function(){var v={EOF:1,parseError:l(function(i,a){if(this.yy.parser)this.yy.parser.parseError(i,a);else throw new Error(i)},"parseError"),setInput:l(function(s,i){return this.yy=i||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:l(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var i=s.match(/(?:\r\n?|\n).*/g);return i?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:l(function(s){var i=s.length,a=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i),this.offset-=i;var o=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var g=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===o.length?this.yylloc.first_column:0)+o[o.length-a.length].length-a[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[g[0],g[0]+this.yyleng-i]),this.yyleng=this.yytext.length,this},"unput"),more:l(function(){return this._more=!0,this},"more"),reject:l(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:l(function(s){this.unput(this.match.slice(s))},"less"),pastInput:l(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:l(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:l(function(){var s=this.pastInput(),i=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_app/immutable/nodes/0.
|
|
2
|
-
var B=e=>{throw TypeError(e)};var N=(e,t,r)=>t.has(e)||B("Cannot "+r);var i=(e,t,r)=>(N(e,t,"read from private field"),r?r.call(e):t.get(e)),k=(e,t,r)=>t.has(e)?B("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),w=(e,t,r,n)=>(N(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);import{p as j,b as I,_ as O}from"../chunks/
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_app/immutable/nodes/0.BDKx-zUI.js","_app/immutable/chunks/BrjAEg64.js","_app/immutable/chunks/CobJHAAW.js","_app/immutable/chunks/C5wtj4WQ.js","_app/immutable/assets/0.xgRkQ1lY.css","_app/immutable/nodes/1.B_9JaBUL.js","_app/immutable/chunks/dRJp6O4P.js","_app/immutable/chunks/74GYr5Jz.js","_app/immutable/chunks/DGn8gxMH.js","_app/immutable/nodes/2.D_8Y7w6T.js","_app/immutable/chunks/BZQqs639.js","_app/immutable/chunks/CuD0M7ml.js","_app/immutable/nodes/3.sgWOIIcg.js","_app/immutable/chunks/Bt3MWn7w.js","_app/immutable/chunks/Dj-iuGW3.js","_app/immutable/assets/3.OXdAvKD0.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
var B=e=>{throw TypeError(e)};var N=(e,t,r)=>t.has(e)||B("Cannot "+r);var i=(e,t,r)=>(N(e,t,"read from private field"),r?r.call(e):t.get(e)),k=(e,t,r)=>t.has(e)?B("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),w=(e,t,r,n)=>(N(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);import{p as j,b as I,_ as O}from"../chunks/Dj-iuGW3.js";import{h as F,f as U,e as W,E as X,i as $,k as tt,l as et,m as G,H as rt,n as at,b as A,Z as st,g as _,aK as nt,ax as ot,aL as ct,p as it,a6 as ut,B as dt,aM as ft,G as T,s as mt,a as _t,d as L,c as lt,r as ht,t as vt,u as C}from"../chunks/CobJHAAW.js";import{h as gt,m as yt,u as bt,s as Et}from"../chunks/dRJp6O4P.js";import{a as E,c as D,f as H,t as Rt}from"../chunks/BrjAEg64.js";import{o as Pt}from"../chunks/DGn8gxMH.js";import{i as S}from"../chunks/BZQqs639.js";import{B as xt}from"../chunks/C5wtj4WQ.js";function M(e,t,r){var n;F&&(n=at,U());var o=new xt(e);W(()=>{var c=t()??null;if(F){var a=$(n),s=a===rt,m=c!==null;if(s!==m){var R=tt();et(R),o.anchor=R,G(!1),o.ensure(c,c&&(y=>r(y,c))),G(!0);return}}o.ensure(c,c&&(y=>r(y,c)))},X)}function Ot(e){return class extends Tt{constructor(t){super({component:e,...t})}}}var l,d;class Tt{constructor(t){k(this,l);k(this,d);var c;var r=new Map,n=(a,s)=>{var m=ct(s,!1,!1);return r.set(a,m),m};const o=new Proxy({...t.props||{},$$events:{}},{get(a,s){return _(r.get(s)??n(s,Reflect.get(a,s)))},has(a,s){return s===st?!0:(_(r.get(s)??n(s,Reflect.get(a,s))),Reflect.has(a,s))},set(a,s,m){return A(r.get(s)??n(s,m),m),Reflect.set(a,s,m)}});w(this,d,(t.hydrate?gt:yt)(t.component,{target:t.target,anchor:t.anchor,props:o,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError})),(!((c=t==null?void 0:t.props)!=null&&c.$$host)||t.sync===!1)&&nt(),w(this,l,o.$$events);for(const a of Object.keys(i(this,d)))a==="$set"||a==="$destroy"||a==="$on"||ot(this,a,{get(){return i(this,d)[a]},set(s){i(this,d)[a]=s},enumerable:!0});i(this,d).$set=a=>{Object.assign(o,a)},i(this,d).$destroy=()=>{bt(i(this,d))}}$set(t){i(this,d).$set(t)}$on(t,r){i(this,l)[t]=i(this,l)[t]||[];const n=(...o)=>r.call(this,...o);return i(this,l)[t].push(n),()=>{i(this,l)[t]=i(this,l)[t].filter(o=>o!==n)}}$destroy(){i(this,d).$destroy()}}l=new WeakMap,d=new WeakMap;const Ft={};var At=H('<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>'),kt=H("<!> <!>",1);function wt(e,t){it(t,!0);let r=j(t,"components",23,()=>[]),n=j(t,"data_0",3,null),o=j(t,"data_1",3,null);ut(()=>t.stores.page.set(t.page)),dt(()=>{t.stores,t.page,t.constructors,r(),t.form,n(),o(),t.stores.page.notify()});let c=L(!1),a=L(!1),s=L(null);Pt(()=>{const u=t.stores.page.subscribe(()=>{_(c)&&(A(a,!0),ft().then(()=>{A(s,document.title||"untitled page",!0)}))});return A(c,!0),u});const m=C(()=>t.constructors[1]);var R=kt(),y=T(R);{var p=u=>{const h=C(()=>t.constructors[0]);var v=D(),P=T(v);M(P,()=>_(h),(g,b)=>{I(b(g,{get data(){return n()},get form(){return t.form},get params(){return t.page.params},children:(f,It)=>{var V=D(),z=T(V);M(z,()=>_(m),(J,Q)=>{I(Q(J,{get data(){return o()},get form(){return t.form},get params(){return t.page.params}}),x=>r()[1]=x,()=>{var x;return(x=r())==null?void 0:x[1]})}),E(f,V)},$$slots:{default:!0}}),f=>r()[0]=f,()=>{var f;return(f=r())==null?void 0:f[0]})}),E(u,v)},K=u=>{const h=C(()=>t.constructors[0]);var v=D(),P=T(v);M(P,()=>_(h),(g,b)=>{I(b(g,{get data(){return n()},get form(){return t.form},get params(){return t.page.params}}),f=>r()[0]=f,()=>{var f;return(f=r())==null?void 0:f[0]})}),E(u,v)};S(y,u=>{t.constructors[1]?u(p):u(K,!1)})}var Z=mt(y,2);{var q=u=>{var h=At(),v=lt(h);{var P=g=>{var b=Rt();vt(()=>Et(b,_(s))),E(g,b)};S(v,g=>{_(a)&&g(P)})}ht(h),E(u,h)};S(Z,u=>{_(c)&&u(q)})}E(e,R),_t()}const Gt=Ot(wt),Ht=[()=>O(()=>import("../nodes/0.BDKx-zUI.js"),__vite__mapDeps([0,1,2,3,4])),()=>O(()=>import("../nodes/1.B_9JaBUL.js"),__vite__mapDeps([5,1,2,6,7,8])),()=>O(()=>import("../nodes/2.D_8Y7w6T.js"),__vite__mapDeps([9,1,2,8,6,10,3,11])),()=>O(()=>import("../nodes/3.sgWOIIcg.js"),__vite__mapDeps([12,13,1,2,8,6,10,3,11,14,15]))],Yt=[],pt={"/":[-3],"/plan/[sessionId]":[-4]},Y={handleError:(({error:e})=>{console.error(e)}),reroute:(()=>{}),transport:{}},jt=Object.fromEntries(Object.entries(Y.transport).map(([e,t])=>[e,t.decode])),Kt=Object.fromEntries(Object.entries(Y.transport).map(([e,t])=>[e,t.encode])),Zt=!1,qt=(e,t)=>jt[e](t);export{qt as decode,jt as decoders,pt as dictionary,Kt as encoders,Zt as hash,Y as hooks,Ft as matchers,Ht as nodes,Gt as root,Yt as server_loads};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{l as o,a as r}from"../chunks/74GYr5Jz.js";export{o as load_css,r as start};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as s,a as c}from"../chunks/BrjAEg64.js";import{e as p,E as i,G as m}from"../chunks/CobJHAAW.js";import{B as f}from"../chunks/C5wtj4WQ.js";function l(a,r,...n){var o=new f(a);p(()=>{const e=r()??null;o.ensure(e,e&&(t=>e(t,...n)))},i)}function E(a,r){var n=s(),o=m(n);l(o,()=>r.children),c(a,n)}export{E as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as b,f as k}from"../chunks/
|
|
1
|
+
import{a as b,f as k}from"../chunks/BrjAEg64.js";import{C as x,a6 as y,B as i,F as $,a7 as l,a8 as B,g as v,a9 as C,W as E,aa as F,p as G,G as W,t as j,a as q,c as u,r as m,s as w}from"../chunks/CobJHAAW.js";import{s as g}from"../chunks/dRJp6O4P.js";import{s as z,p as _}from"../chunks/74GYr5Jz.js";function A(r=!1){const t=x,e=t.l.u;if(!e)return;let a=()=>C(t.s);if(r){let o=0,s={};const c=E(()=>{let n=!1;const p=t.s;for(const f in p)p[f]!==s[f]&&(s[f]=p[f],n=!0);return n&&o++,o});a=()=>v(c)}e.b.length&&y(()=>{d(t,a),l(e.b)}),i(()=>{const o=$(()=>e.m.map(B));return()=>{for(const s of o)typeof s=="function"&&s()}}),e.a.length&&i(()=>{d(t,a),l(e.a)})}function d(r,t){if(r.l.s)for(const e of r.l.s)v(e);t()}F();const D={get error(){return _.error},get status(){return _.status}};z.updated.check;const h=D;var H=k("<h1> </h1> <p> </p>",1);function M(r,t){G(t,!1),A();var e=H(),a=W(e),o=u(a,!0);m(a);var s=w(a,2),c=u(s,!0);m(s),j(()=>{var n;g(o,h.status),g(c,(n=h.error)==null?void 0:n.message)}),b(r,e),q()}export{M as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as i,f as d}from"../chunks/
|
|
1
|
+
import{a as i,f as d}from"../chunks/BrjAEg64.js";import{o as R}from"../chunks/DGn8gxMH.js";import{p as B,a as M,c as r,s as x,g as e,r as a,b as N,u as P,d as T,t as U}from"../chunks/CobJHAAW.js";import{s as f}from"../chunks/dRJp6O4P.js";import{i as V}from"../chunks/BZQqs639.js";import{e as W,s as q,a as z,b as F}from"../chunks/CuD0M7ml.js";var G=d('<div class="bg-surface border-border rounded-lg border p-8 text-center"><p class="text-text-dim mb-2 text-lg">No active sessions</p> <p class="text-text-dim text-sm">Run <code class="bg-surface2 rounded px-1.5 py-0.5 font-mono text-sm text-accent">/create_plan</code> in Claude Code to start a new plan review session.</p> <div class="text-text-dim mt-3 animate-pulse text-xs">Watching for new sessions...</div></div>'),H=d('<a class="bg-surface border-border hover:border-accent/50 flex items-center justify-between rounded-lg border p-5 transition-colors"><div><h2 class="mb-1 text-lg font-semibold"> </h2> <p class="text-text-dim text-sm"> </p></div> <span> </span></a>'),J=d('<div class="space-y-3"></div>'),K=d('<div class="min-h-screen p-8"><div class="mx-auto max-w-4xl"><h1 class="mb-1 text-2xl font-bold">Plan Assistant</h1> <p class="text-text-dim mb-8 text-sm">Review and annotate implementation plans from Claude Code</p> <!></div></div>');function tt(y,b){B(b,!0);let h=T(null),_=P(()=>e(h)??b.data.sessions);async function l(){try{const t=await fetch("/api/sessions");t.ok&&N(h,await t.json(),!0)}catch{}}R(()=>{const t=new EventSource("/api/sse/*");t.addEventListener("sessions-updated",()=>l()),t.addEventListener("plan-updated",()=>l());const s=setInterval(l,1e4);return()=>{t.close(),clearInterval(s)}});function S(t){return new Date(t).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"2-digit",minute:"2-digit"})}var c=K(),g=r(c),C=x(r(g),4);{var k=t=>{var s=G();i(t,s)},D=t=>{var s=J();W(s,21,()=>e(_),p=>p.id,(p,o)=>{var n=H(),v=r(n),m=r(v),E=r(m,!0);a(m);var w=x(m,2),L=r(w);a(w),a(v);var u=x(v,2),j=r(u,!0);a(u),a(n),U((A,I)=>{z(n,"href",`/plan/${e(o).id??""}`),f(E,e(o).planTitle),f(L,`v${e(o).planVersion??""} · ${A??""}`),F(u,1,`inline-block rounded-full px-3 py-1 text-xs font-semibold ${I??""}`),f(j,e(o).status)},[()=>S(e(o).updatedAt),()=>q(e(o).status)]),i(p,n)}),a(s),i(t,s)};V(C,t=>{e(_).length===0?t(k):t(D,!1)})}a(g),a(c),i(y,c),M()}export{tt as component};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as m}from"../chunks/Bt3MWn7w.js";export{m as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"
|
|
1
|
+
{"version":"1773652265990"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
const index = 0;
|
|
2
2
|
let component_cache;
|
|
3
3
|
const component = async () => component_cache ??= (await import('./_layout.svelte-D_wzPsk8.js')).default;
|
|
4
|
-
const imports = ["_app/immutable/nodes/0.
|
|
4
|
+
const imports = ["_app/immutable/nodes/0.BDKx-zUI.js","_app/immutable/chunks/BrjAEg64.js","_app/immutable/chunks/CobJHAAW.js","_app/immutable/chunks/C5wtj4WQ.js"];
|
|
5
5
|
const stylesheets = ["_app/immutable/assets/0.xgRkQ1lY.css"];
|
|
6
6
|
const fonts = [];
|
|
7
7
|
|
|
8
8
|
export { component, fonts, imports, index, stylesheets };
|
|
9
|
-
//# sourceMappingURL=0-
|
|
9
|
+
//# sourceMappingURL=0-C94QRPbG.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"0-
|
|
1
|
+
{"version":3,"file":"0-C94QRPbG.js","sources":["../../../.svelte-kit/adapter-node/nodes/0.js"],"sourcesContent":["\n\nexport const index = 0;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/_layout.svelte.js')).default;\nexport const imports = [\"_app/immutable/nodes/0.BDKx-zUI.js\",\"_app/immutable/chunks/BrjAEg64.js\",\"_app/immutable/chunks/CobJHAAW.js\",\"_app/immutable/chunks/C5wtj4WQ.js\"];\nexport const stylesheets = [\"_app/immutable/assets/0.xgRkQ1lY.css\"];\nexport const fonts = [];\n"],"names":[],"mappings":"AAEY,MAAC,KAAK,GAAG;AACrB,IAAI,eAAe;AACP,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,8BAAoC,CAAC,EAAE;AAClG,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AAC5J,MAAC,WAAW,GAAG,CAAC,sCAAsC;AACtD,MAAC,KAAK,GAAG;;;;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
const index = 1;
|
|
2
|
+
let component_cache;
|
|
3
|
+
const component = async () => component_cache ??= (await import('./error.svelte-BpKLDhDN.js')).default;
|
|
4
|
+
const imports = ["_app/immutable/nodes/1.B_9JaBUL.js","_app/immutable/chunks/BrjAEg64.js","_app/immutable/chunks/CobJHAAW.js","_app/immutable/chunks/dRJp6O4P.js","_app/immutable/chunks/74GYr5Jz.js","_app/immutable/chunks/DGn8gxMH.js"];
|
|
5
|
+
const stylesheets = [];
|
|
6
|
+
const fonts = [];
|
|
7
|
+
|
|
8
|
+
export { component, fonts, imports, index, stylesheets };
|
|
9
|
+
//# sourceMappingURL=1-G6vwI4Kc.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"1-
|
|
1
|
+
{"version":3,"file":"1-G6vwI4Kc.js","sources":["../../../.svelte-kit/adapter-node/nodes/1.js"],"sourcesContent":["\n\nexport const index = 1;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/fallbacks/error.svelte.js')).default;\nexport const imports = [\"_app/immutable/nodes/1.B_9JaBUL.js\",\"_app/immutable/chunks/BrjAEg64.js\",\"_app/immutable/chunks/CobJHAAW.js\",\"_app/immutable/chunks/dRJp6O4P.js\",\"_app/immutable/chunks/74GYr5Jz.js\",\"_app/immutable/chunks/DGn8gxMH.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"names":[],"mappings":"AAEY,MAAC,KAAK,GAAG;AACrB,IAAI,eAAe;AACP,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,4BAAsC,CAAC,EAAE;AACpG,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AACpO,MAAC,WAAW,GAAG;AACf,MAAC,KAAK,GAAG;;;;"}
|
|
@@ -18,9 +18,9 @@ const index = 2;
|
|
|
18
18
|
let component_cache;
|
|
19
19
|
const component = async () => component_cache ??= (await import('./_page.svelte-ByTjHRUq.js')).default;
|
|
20
20
|
const server_id = "src/routes/+page.server.ts";
|
|
21
|
-
const imports = ["_app/immutable/nodes/2.
|
|
21
|
+
const imports = ["_app/immutable/nodes/2.D_8Y7w6T.js","_app/immutable/chunks/BrjAEg64.js","_app/immutable/chunks/CobJHAAW.js","_app/immutable/chunks/DGn8gxMH.js","_app/immutable/chunks/dRJp6O4P.js","_app/immutable/chunks/BZQqs639.js","_app/immutable/chunks/C5wtj4WQ.js","_app/immutable/chunks/CuD0M7ml.js"];
|
|
22
22
|
const stylesheets = [];
|
|
23
23
|
const fonts = [];
|
|
24
24
|
|
|
25
25
|
export { component, fonts, imports, index, _page_server_ts as server, server_id, stylesheets };
|
|
26
|
-
//# sourceMappingURL=2-
|
|
26
|
+
//# sourceMappingURL=2-Cy9PX2zK.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"2-
|
|
1
|
+
{"version":3,"file":"2-Cy9PX2zK.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/_page.server.ts.js","../../../.svelte-kit/adapter-node/nodes/2.js"],"sourcesContent":["import { l as listSessions } from \"../../chunks/session-manager.js\";\nconst load = async () => {\n return {\n sessions: listSessions()\n };\n};\nexport {\n load\n};\n","import * as server from '../entries/pages/_page.server.ts.js';\n\nexport const index = 2;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/_page.svelte.js')).default;\nexport { server };\nexport const server_id = \"src/routes/+page.server.ts\";\nexport const imports = [\"_app/immutable/nodes/2.D_8Y7w6T.js\",\"_app/immutable/chunks/BrjAEg64.js\",\"_app/immutable/chunks/CobJHAAW.js\",\"_app/immutable/chunks/DGn8gxMH.js\",\"_app/immutable/chunks/dRJp6O4P.js\",\"_app/immutable/chunks/BZQqs639.js\",\"_app/immutable/chunks/C5wtj4WQ.js\",\"_app/immutable/chunks/CuD0M7ml.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"names":[],"mappings":";;;;;AACA,MAAM,IAAI,GAAG,YAAY;AACzB,EAAE,OAAO;AACT,IAAI,QAAQ,EAAE,YAAY;AAC1B,GAAG;AACH,CAAC;;;;;;;ACHW,MAAC,KAAK,GAAG;AACrB,IAAI,eAAe;AACP,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,4BAAkC,CAAC,EAAE;AAEhG,MAAC,SAAS,GAAG;AACb,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AAC5S,MAAC,WAAW,GAAG;AACf,MAAC,KAAK,GAAG;;;;"}
|
|
@@ -26,11 +26,11 @@ var _page_server_ts = /*#__PURE__*/Object.freeze({
|
|
|
26
26
|
|
|
27
27
|
const index = 3;
|
|
28
28
|
let component_cache;
|
|
29
|
-
const component = async () => component_cache ??= (await import('./_page.svelte-
|
|
29
|
+
const component = async () => component_cache ??= (await import('./_page.svelte-DdQY1QqH.js')).default;
|
|
30
30
|
const server_id = "src/routes/plan/[sessionId]/+page.server.ts";
|
|
31
|
-
const imports = ["_app/immutable/nodes/3.
|
|
31
|
+
const imports = ["_app/immutable/nodes/3.sgWOIIcg.js","_app/immutable/chunks/Bt3MWn7w.js","_app/immutable/chunks/BrjAEg64.js","_app/immutable/chunks/CobJHAAW.js","_app/immutable/chunks/DGn8gxMH.js","_app/immutable/chunks/dRJp6O4P.js","_app/immutable/chunks/BZQqs639.js","_app/immutable/chunks/C5wtj4WQ.js","_app/immutable/chunks/CuD0M7ml.js","_app/immutable/chunks/Dj-iuGW3.js"];
|
|
32
32
|
const stylesheets = ["_app/immutable/assets/3.OXdAvKD0.css"];
|
|
33
33
|
const fonts = [];
|
|
34
34
|
|
|
35
35
|
export { component, fonts, imports, index, _page_server_ts as server, server_id, stylesheets };
|
|
36
|
-
//# sourceMappingURL=3-
|
|
36
|
+
//# sourceMappingURL=3-CxxgkGJa.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"3-
|
|
1
|
+
{"version":3,"file":"3-CxxgkGJa.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/plan/_sessionId_/_page.server.ts.js","../../../.svelte-kit/adapter-node/nodes/3.js"],"sourcesContent":["import { error } from \"@sveltejs/kit\";\nimport { a as getSession, b as getPlan, d as getFeedback, e as listVersions } from \"../../../../chunks/session-manager.js\";\nconst load = async ({ params }) => {\n const session = getSession(params.sessionId);\n if (!session) throw error(404, \"Session not found\");\n const plan = getPlan(params.sessionId);\n const feedback = getFeedback(params.sessionId);\n const versions = listVersions(params.sessionId);\n return {\n session,\n plan,\n feedback,\n versions,\n sessionId: params.sessionId\n };\n};\nexport {\n load\n};\n","import * as server from '../entries/pages/plan/_sessionId_/_page.server.ts.js';\n\nexport const index = 3;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/plan/_sessionId_/_page.svelte.js')).default;\nexport { server };\nexport const server_id = \"src/routes/plan/[sessionId]/+page.server.ts\";\nexport const imports = [\"_app/immutable/nodes/3.sgWOIIcg.js\",\"_app/immutable/chunks/Bt3MWn7w.js\",\"_app/immutable/chunks/BrjAEg64.js\",\"_app/immutable/chunks/CobJHAAW.js\",\"_app/immutable/chunks/DGn8gxMH.js\",\"_app/immutable/chunks/dRJp6O4P.js\",\"_app/immutable/chunks/BZQqs639.js\",\"_app/immutable/chunks/C5wtj4WQ.js\",\"_app/immutable/chunks/CuD0M7ml.js\",\"_app/immutable/chunks/Dj-iuGW3.js\"];\nexport const stylesheets = [\"_app/immutable/assets/3.OXdAvKD0.css\"];\nexport const fonts = [];\n"],"names":[],"mappings":";;;;;;AAEA,MAAM,IAAI,GAAG,OAAO,EAAE,MAAM,EAAE,KAAK;AACnC,EAAE,MAAM,OAAO,GAAG,UAAU,CAAC,MAAM,CAAC,SAAS,CAAC;AAC9C,EAAE,IAAI,CAAC,OAAO,EAAE,MAAM,KAAK,CAAC,GAAG,EAAE,mBAAmB,CAAC;AACrD,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC;AACxC,EAAE,MAAM,QAAQ,GAAG,WAAW,CAAC,MAAM,CAAC,SAAS,CAAC;AAChD,EAAE,MAAM,QAAQ,GAAG,YAAY,CAAC,MAAM,CAAC,SAAS,CAAC;AACjD,EAAE,OAAO;AACT,IAAI,OAAO;AACX,IAAI,IAAI;AACR,IAAI,QAAQ;AACZ,IAAI,QAAQ;AACZ,IAAI,SAAS,EAAE,MAAM,CAAC;AACtB,GAAG;AACH,CAAC;;;;;;;ACbW,MAAC,KAAK,GAAG;AACrB,IAAI,eAAe;AACP,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,4BAAmD,CAAC,EAAE;AAEjH,MAAC,SAAS,GAAG;AACb,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AACpX,MAAC,WAAW,GAAG,CAAC,sCAAsC;AACtD,MAAC,KAAK,GAAG;;;;"}
|
|
@@ -10,12 +10,20 @@ function html(value) {
|
|
|
10
10
|
let instance$1 = null;
|
|
11
11
|
function createPlanStore() {
|
|
12
12
|
let currentPlan = null;
|
|
13
|
+
let idleRemainingMs = null;
|
|
14
|
+
let serverShutdown = false;
|
|
13
15
|
let eventSource = null;
|
|
14
16
|
let reconnectTimer = null;
|
|
15
17
|
return {
|
|
16
18
|
get plan() {
|
|
17
19
|
return currentPlan;
|
|
18
20
|
},
|
|
21
|
+
get idleRemainingMs() {
|
|
22
|
+
return idleRemainingMs;
|
|
23
|
+
},
|
|
24
|
+
get serverShutdown() {
|
|
25
|
+
return serverShutdown;
|
|
26
|
+
},
|
|
19
27
|
set(plan) {
|
|
20
28
|
currentPlan = plan;
|
|
21
29
|
},
|
|
@@ -30,9 +38,22 @@ function createPlanStore() {
|
|
|
30
38
|
} catch {
|
|
31
39
|
}
|
|
32
40
|
});
|
|
41
|
+
eventSource.addEventListener("idle-timer", (event) => {
|
|
42
|
+
try {
|
|
43
|
+
const data = JSON.parse(event.data);
|
|
44
|
+
idleRemainingMs = data.remainingMs;
|
|
45
|
+
} catch {
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
eventSource.addEventListener("server-shutdown", () => {
|
|
49
|
+
serverShutdown = true;
|
|
50
|
+
eventSource?.close();
|
|
51
|
+
});
|
|
33
52
|
eventSource.onerror = () => {
|
|
34
53
|
eventSource?.close();
|
|
35
|
-
|
|
54
|
+
if (!serverShutdown) {
|
|
55
|
+
reconnectTimer = setTimeout(connect, 3e3);
|
|
56
|
+
}
|
|
36
57
|
};
|
|
37
58
|
};
|
|
38
59
|
connect();
|
|
@@ -191,6 +212,42 @@ function getFeedbackStore() {
|
|
|
191
212
|
if (!instance) instance = createFeedbackStore();
|
|
192
213
|
return instance;
|
|
193
214
|
}
|
|
215
|
+
function IdleTimer($$renderer, $$props) {
|
|
216
|
+
$$renderer.component(($$renderer2) => {
|
|
217
|
+
const store = getPlanStore();
|
|
218
|
+
let display = derived(() => {
|
|
219
|
+
const ms = store.idleRemainingMs;
|
|
220
|
+
if (ms === null) return null;
|
|
221
|
+
if (store.serverShutdown) return "Server stopped";
|
|
222
|
+
const totalSec = Math.ceil(ms / 1e3);
|
|
223
|
+
const min = Math.floor(totalSec / 60);
|
|
224
|
+
const sec = totalSec % 60;
|
|
225
|
+
return `${min}:${sec.toString().padStart(2, "0")}`;
|
|
226
|
+
});
|
|
227
|
+
let isUrgent = derived(() => store.idleRemainingMs !== null && store.idleRemainingMs < 6e4);
|
|
228
|
+
let isShutdown = derived(() => store.serverShutdown);
|
|
229
|
+
if (display() !== null) {
|
|
230
|
+
$$renderer2.push("<!--[-->");
|
|
231
|
+
$$renderer2.push(`<span${attr_class("rounded-full px-3 py-1 text-xs font-semibold transition-colors", void 0, {
|
|
232
|
+
"bg-surface2": !isUrgent() && !isShutdown(),
|
|
233
|
+
"text-text-dim": !isUrgent() && !isShutdown(),
|
|
234
|
+
"bg-red-900": isUrgent() || isShutdown(),
|
|
235
|
+
"text-red-200": isUrgent() || isShutdown()
|
|
236
|
+
})}${attr("title", isShutdown() ? "Server has shut down due to inactivity" : `Server idle timeout: ${display()} remaining`)}>`);
|
|
237
|
+
if (isShutdown()) {
|
|
238
|
+
$$renderer2.push("<!--[-->");
|
|
239
|
+
$$renderer2.push(`Server stopped`);
|
|
240
|
+
} else {
|
|
241
|
+
$$renderer2.push("<!--[!-->");
|
|
242
|
+
$$renderer2.push(`⏱ ${escape_html(display())}`);
|
|
243
|
+
}
|
|
244
|
+
$$renderer2.push(`<!--]--></span>`);
|
|
245
|
+
} else {
|
|
246
|
+
$$renderer2.push("<!--[!-->");
|
|
247
|
+
}
|
|
248
|
+
$$renderer2.push(`<!--]-->`);
|
|
249
|
+
});
|
|
250
|
+
}
|
|
194
251
|
function PlanHeader($$renderer, $$props) {
|
|
195
252
|
$$renderer.component(($$renderer2) => {
|
|
196
253
|
let { meta, status } = $$props;
|
|
@@ -201,7 +258,9 @@ function PlanHeader($$renderer, $$props) {
|
|
|
201
258
|
} else {
|
|
202
259
|
$$renderer2.push("<!--[!-->");
|
|
203
260
|
}
|
|
204
|
-
$$renderer2.push(`<!--]--></p></div> <div class="flex items-center gap-2"
|
|
261
|
+
$$renderer2.push(`<!--]--></p></div> <div class="flex items-center gap-2">`);
|
|
262
|
+
IdleTimer($$renderer2);
|
|
263
|
+
$$renderer2.push(`<!----> <span class="bg-surface2 rounded-full px-3 py-1 text-xs font-semibold text-text-dim">v${escape_html(meta.version)}</span> <span${attr_class(`rounded-full px-3 py-1 text-xs font-semibold ${stringify(statusBadgeClass(status))}`)}>${escape_html(status)}</span></div></div> `);
|
|
205
264
|
if (meta.markdownPath) {
|
|
206
265
|
$$renderer2.push("<!--[-->");
|
|
207
266
|
$$renderer2.push(`<p class="text-text-dim mt-2 text-xs">Source: <code class="bg-surface2 text-accent rounded px-1 py-0.5 font-mono text-xs">${escape_html(meta.markdownPath)}</code></p>`);
|
|
@@ -735,4 +794,4 @@ function _page($$renderer, $$props) {
|
|
|
735
794
|
}
|
|
736
795
|
|
|
737
796
|
export { _page as default };
|
|
738
|
-
//# sourceMappingURL=_page.svelte-
|
|
797
|
+
//# sourceMappingURL=_page.svelte-DdQY1QqH.js.map
|