@marimo-team/frontend 0.13.7-dev5 → 0.13.7-dev6
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/dist/assets/{ConnectedDataExplorerComponent-D9o6hCFF.js → ConnectedDataExplorerComponent-DYO4zMqc.js} +1 -1
- package/dist/assets/{VegaLite-COeaO8XU.js → VegaLite-CNKZYR1c.js} +1 -1
- package/dist/assets/{_baseEach-Dipk4Qfw.js → _baseEach-BOi1xMzz.js} +1 -1
- package/dist/assets/_baseMap-D2kyVuny.js +1 -0
- package/dist/assets/{_baseUniq-CWPdB_dq.js → _baseUniq-EQxa8zIF.js} +1 -1
- package/dist/assets/{_createAggregator-CiiGic_e.js → _createAggregator-Dvx5-qYj.js} +1 -1
- package/dist/assets/{any-language-editor-Dvmn1QF2.js → any-language-editor-D9fEgqG1.js} +1 -1
- package/dist/assets/{architectureDiagram-IEHRJDOE-CU0QICJs.js → architectureDiagram-IEHRJDOE-v-T5Y1-p.js} +1 -1
- package/dist/assets/{blockDiagram-JOT3LUYC-CatesY43.js → blockDiagram-JOT3LUYC-gYxXk9dX.js} +1 -1
- package/dist/assets/{c4Diagram-VJAJSXHY-C4mhf3Aa.js → c4Diagram-VJAJSXHY-DNHzSaJu.js} +1 -1
- package/dist/assets/channel-B7Urz9Qw.js +1 -0
- package/dist/assets/{chunk-4BMEZGHF-BIy5YQYp.js → chunk-4BMEZGHF-CNlj2iKt.js} +1 -1
- package/dist/assets/{chunk-A2AXSNBT-C_xpJ-hN.js → chunk-A2AXSNBT-CsfD1o8e.js} +1 -1
- package/dist/assets/{chunk-AEK57VVT-k8f1agAG.js → chunk-AEK57VVT-DHti-T9J.js} +1 -1
- package/dist/assets/{chunk-D6G4REZN--WuDmds7.js → chunk-D6G4REZN-Ca9tCcNK.js} +1 -1
- package/dist/assets/{chunk-RZ5BOZE2-B3GqrIXs.js → chunk-RZ5BOZE2-S4AIQ3i1.js} +1 -1
- package/dist/assets/{chunk-XZIHB7SX-Cwjiz9xg.js → chunk-XZIHB7SX-BcCHvDgC.js} +1 -1
- package/dist/assets/{circle-play-B3IPtL97.js → circle-play-Bc0uRvfe.js} +1 -1
- package/dist/assets/classDiagram-GIVACNV2-Dw-L5tk0.js +1 -0
- package/dist/assets/classDiagram-v2-COTLJTTW-Dw-L5tk0.js +1 -0
- package/dist/assets/clone-2VLlfYv8.js +1 -0
- package/dist/assets/{compile-BVb0Xhkk.js → compile-DhiD2OIl.js} +1 -1
- package/dist/assets/{dagre-OKDRZEBW-DE3xoxsa.js → dagre-OKDRZEBW-D2Qg0Imy.js} +1 -1
- package/dist/assets/{data-editor-B622NT6D.js → data-editor-CG3MBzRh.js} +1 -1
- package/dist/assets/{diagram-SSKATNLV-DRGoOkB7.js → diagram-SSKATNLV-DxHLKgNC.js} +1 -1
- package/dist/assets/{diagram-VNBRO52H-j3UmS0Ll.js → diagram-VNBRO52H-D6KRYowD.js} +1 -1
- package/dist/assets/edit-page-ByAm3pnm.js +8 -0
- package/dist/assets/{erDiagram-Q7BY3M3F-DWHoCgAJ.js → erDiagram-Q7BY3M3F-CWDap52H.js} +1 -1
- package/dist/assets/{flowDiagram-4HSFHLVR-D_rCoypN.js → flowDiagram-4HSFHLVR-BfiYb11e.js} +1 -1
- package/dist/assets/{ganttDiagram-APWFNJXF-CHIT-PcJ.js → ganttDiagram-APWFNJXF-CQV1P3oH.js} +1 -1
- package/dist/assets/{gitGraphDiagram-7IBYFJ6S-ErZPaKoV.js → gitGraphDiagram-7IBYFJ6S-BkR4L5qA.js} +1 -1
- package/dist/assets/{graph-UJGOb4iX.js → graph-DCc8CUpI.js} +1 -1
- package/dist/assets/{home-page-CS3aipva.js → home-page-DBmHL8mR.js} +1 -1
- package/dist/assets/{index-CvPoYLZ2.js → index-B6SjbC50.js} +1 -1
- package/dist/assets/{index-C546D0ll.js → index-BD18meo4.js} +1 -1
- package/dist/assets/index-BbEv2iVN.css +1 -0
- package/dist/assets/{index-57xNO1if.js → index-BkczaLMR.js} +1 -1
- package/dist/assets/{index-BBlc_oCU.js → index-CDrhBJh5.js} +1 -1
- package/dist/assets/{index-KXLr4M13.js → index-CSvNPv2W.js} +1 -1
- package/dist/assets/{index-6zO4OfLS.js → index-Cm_Gezq1.js} +1 -1
- package/dist/assets/{index-BHXWEyd0.js → index-Cu1YZJKo.js} +1 -1
- package/dist/assets/{index-Z1O8-oVl.js → index-Cxi84xou.js} +1 -1
- package/dist/assets/{index-CnoBeGie.js → index-D-nbCOVY.js} +1 -1
- package/dist/assets/{index-qlq3rtTI.js → index-D0xs4wpq.js} +1 -1
- package/dist/assets/index-D25ZVZoz.js +87 -0
- package/dist/assets/{index-CDSif2Eo.js → index-DXL9W3IU.js} +1 -1
- package/dist/assets/{index-BFUZwCtx.js → index-DZ4-or1K.js} +1 -1
- package/dist/assets/{index-De2hEZfe.js → index-Dvf3vz4o.js} +1 -1
- package/dist/assets/{index-BKq2imIU.js → index-W7aBJ9gy.js} +1 -1
- package/dist/assets/{index-BW8Zm1Wv.js → index-XQJA6HPM.js} +1 -1
- package/dist/assets/{index-_0tY9ze_.js → index-c7qrzQb-.js} +1 -1
- package/dist/assets/{index-Bl3VaYjI.js → index-vtzfPcuf.js} +1 -1
- package/dist/assets/{index-Br-JkW3g.js → index-yYteRT7n.js} +1 -1
- package/dist/assets/infoDiagram-PH2N3AL5-D-Eqt5lr.js +1 -0
- package/dist/assets/{journeyDiagram-U35MCT3I-DiK9Dw9g.js → journeyDiagram-U35MCT3I-B_5-obIw.js} +1 -1
- package/dist/assets/{kanban-definition-NDS4AKOZ-CjYNE8xn.js → kanban-definition-NDS4AKOZ-Bc_pNgjQ.js} +1 -1
- package/dist/assets/{layout-BjbDeGc_.js → layout-C4Z666Y5.js} +1 -1
- package/dist/assets/{linear-O-YCKOSR.js → linear-WjwPNEQl.js} +1 -1
- package/dist/assets/{mermaid-DNVHAxFt.js → mermaid-D2SdoFUx.js} +2 -2
- package/dist/assets/{min-W2JRkwEB.js → min-Dg--LZAL.js} +1 -1
- package/dist/assets/{mindmap-definition-ALO5MXBD-Ds099Ktp.js → mindmap-definition-ALO5MXBD-DX-U9wBy.js} +1 -1
- package/dist/assets/{pieDiagram-IB7DONF6--fIB0xWO.js → pieDiagram-IB7DONF6-BubIPQJh.js} +1 -1
- package/dist/assets/{quadrantDiagram-7GDLP6J5-DrySMa8i.js → quadrantDiagram-7GDLP6J5-BHeylzWe.js} +1 -1
- package/dist/assets/{radar-MK3ICKWK-BJ67P_5r.js → radar-MK3ICKWK-DRTZUi9y.js} +1 -1
- package/dist/assets/{react-plotly-DI7dGePo.js → react-plotly-DKU7Ou4l.js} +1 -1
- package/dist/assets/{requirementDiagram-KVF5MWMF-CrGS2s0Z.js → requirementDiagram-KVF5MWMF-BdBi4uFV.js} +1 -1
- package/dist/assets/{run-page-Q-WbWUmv.js → run-page-Shivl0hH.js} +1 -1
- package/dist/assets/{sankeyDiagram-QLVOVGJD-DKjckX4b.js → sankeyDiagram-QLVOVGJD-D5qRjQPK.js} +1 -1
- package/dist/assets/{sequenceDiagram-X6HHIX6F-C6VC8LOY.js → sequenceDiagram-X6HHIX6F-VDxd_dJn.js} +1 -1
- package/dist/assets/{slides-component-BqWYp_FB.js → slides-component-C53UoNKL.js} +1 -1
- package/dist/assets/{sortBy-MHvTYKSP.js → sortBy-BWYzlL2q.js} +1 -1
- package/dist/assets/{stateDiagram-DGXRK772-CTMc5Gvb.js → stateDiagram-DGXRK772-BPFYFRuA.js} +1 -1
- package/dist/assets/stateDiagram-v2-YXO3MK2T-CN_rBf9z.js +1 -0
- package/dist/assets/{terminal-mbvW7Xk5.js → terminal-BMjRJT_H.js} +1 -1
- package/dist/assets/{time-B69UfemB.js → time-J7OIP1Ve.js} +1 -1
- package/dist/assets/{timeline-definition-BDJGKUSR-DxC35mOc.js → timeline-definition-BDJGKUSR-DEPlt-q1.js} +1 -1
- package/dist/assets/{tracing-DDaw37xD.js → tracing--bLHkrsQ.js} +3 -3
- package/dist/assets/{tree-DxEOaINK.js → tree-gS-oXpYe.js} +1 -1
- package/dist/assets/{useMarimoWebSocket-xQ57O6MQ.js → useMarimoWebSocket-C7Q2pfmw.js} +3 -3
- package/dist/assets/{vega-component-Cw4CVdyb.js → vega-component-DYEjmga7.js} +1 -1
- package/dist/assets/{xychartDiagram-VJFVF3MP-DHps7gn-.js → xychartDiagram-VJFVF3MP-D7Uukgqz.js} +1 -1
- package/dist/index.html +2 -2
- package/package.json +1 -1
- package/dist/assets/_baseMap-d7_s2dxj.js +0 -1
- package/dist/assets/channel-DqVPz42W.js +0 -1
- package/dist/assets/classDiagram-GIVACNV2-CDT_8kPv.js +0 -1
- package/dist/assets/classDiagram-v2-COTLJTTW-CDT_8kPv.js +0 -1
- package/dist/assets/clone-Cei_W01Q.js +0 -1
- package/dist/assets/edit-page-DBO2lLpw.js +0 -8
- package/dist/assets/index-BTHBullW.js +0 -87
- package/dist/assets/index-KBPV2vq8.css +0 -1
- package/dist/assets/infoDiagram-PH2N3AL5-k9F5eQpB.js +0 -1
- package/dist/assets/stateDiagram-v2-YXO3MK2T-DnNajpIH.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as t,r as n,d as a,e as r,C as i,n as e,h as s}from"./timer-DFzT7np-.js";import{c as o,a as u}from"./linear-
|
|
1
|
+
import{R as t,r as n,d as a,e as r,C as i,n as e,h as s}from"./timer-DFzT7np-.js";import{c as o,a as u}from"./linear-WjwPNEQl.js";import{i as c}from"./init-DLRA0X12.js";import{aP as l,aQ as f,aR as h,aS as p,aT as b,aU as y,aV as v,aW as w,aX as g,aY as m,aZ as d,a_ as M,a$ as N,b0 as D,b1 as j,b2 as k,b3 as I,b4 as x,b5 as P,b6 as R,b7 as S,b8 as Y,b9 as q,ba as A}from"./index-D25ZVZoz.js";function B(t,n){let a;if(void 0===n)for(const r of t)null!=r&&(a<r||void 0===a&&r>=r)&&(a=r);else{let r=-1;for(let i of t)null!=(i=n(i,++r,t))&&(a<i||void 0===a&&i>=i)&&(a=i)}return a}function C(t,n){let a;if(void 0===n)for(const r of t)null!=r&&(a>r||void 0===a&&r>=r)&&(a=r);else{let r=-1;for(let i of t)null!=(i=n(i,++r,t))&&(a>i||void 0===a&&i>=i)&&(a=i)}return a}function F(t,n,a,r,i,e){const s=[[f,1,h],[f,5,5*h],[f,15,15*h],[f,30,30*h],[e,1,p],[e,5,5*p],[e,15,15*p],[e,30,30*p],[i,1,b],[i,3,3*b],[i,6,6*b],[i,12,12*b],[r,1,y],[r,2,2*y],[a,1,v],[n,1,w],[n,3,3*w],[t,1,g]];function o(n,a,r){const i=Math.abs(a-n)/r,e=l((([,,t])=>t)).right(s,i);if(e===s.length)return t.every(m(n/g,a/g,r));if(0===e)return d.every(Math.max(m(n,a,r),1));const[o,u]=s[i/s[e-1][2]<s[e][2]/i?e-1:e];return o.every(u)}return[function(t,n,a){const r=n<t;r&&([t,n]=[n,t]);const i=a&&"function"==typeof a.range?a:o(t,n,a),e=i?i.range(t,+n+1):[];return r?e.reverse():e},o]}const[L,Q]=F(q,Y,S,R,P,x),[T,U]=F(I,k,j,D,N,M),V=Math.PI/180,W=180/Math.PI,X=.96422,Z=.82521,$=4/29,_=6/29,z=3*_*_,E=_*_*_;function G(a){if(a instanceof J)return new J(a.l,a.a,a.b,a.opacity);if(a instanceof rt)return it(a);a instanceof t||(a=n(a));var r,i,e=nt(a.r),s=nt(a.g),o=nt(a.b),u=K((.2225045*e+.7168786*s+.0606169*o)/1);return e===s&&s===o?r=i=u:(r=K((.4360747*e+.3850649*s+.1430804*o)/X),i=K((.0139322*e+.0971045*s+.7141733*o)/Z)),new J(116*u-16,500*(r-u),200*(u-i),a.opacity)}function H(t,n,a,r){return 1===arguments.length?G(t):new J(t,n,a,null==r?1:r)}function J(t,n,a,r){this.l=+t,this.a=+n,this.b=+a,this.opacity=+r}function K(t){return t>E?Math.pow(t,1/3):t/z+$}function O(t){return t>_?t*t*t:z*(t-$)}function tt(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function nt(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function at(t,n,a,r){return 1===arguments.length?function(t){if(t instanceof rt)return new rt(t.h,t.c,t.l,t.opacity);if(t instanceof J||(t=G(t)),0===t.a&&0===t.b)return new rt(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var n=Math.atan2(t.b,t.a)*W;return new rt(n<0?n+360:n,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new rt(t,n,a,null==r?1:r)}function rt(t,n,a,r){this.h=+t,this.c=+n,this.l=+a,this.opacity=+r}function it(t){if(isNaN(t.h))return new J(t.l,0,0,t.opacity);var n=t.h*V;return new J(t.l,Math.cos(n)*t.c,Math.sin(n)*t.c,t.opacity)}function et(t){return function(n,a){var r=t((n=at(n)).h,(a=at(a)).h),i=e(n.c,a.c),s=e(n.l,a.l),o=e(n.opacity,a.opacity);return function(t){return n.h=r(t),n.c=i(t),n.l=s(t),n.opacity=o(t),n+""}}}a(J,H,r(i,{brighter(t){return new J(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker(t){return new J(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb(){var n=(this.l+16)/116,a=isNaN(this.a)?n:n+this.a/500,r=isNaN(this.b)?n:n-this.b/200;return a=X*O(a),n=1*O(n),r=Z*O(r),new t(tt(3.1338561*a-1.6168667*n-.4906146*r),tt(-.9787684*a+1.9161415*n+.033454*r),tt(.0719453*a-.2289914*n+1.4052427*r),this.opacity)}})),a(rt,at,r(i,{brighter(t){return new rt(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker(t){return new rt(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb(){return it(this).rgb()}}));const st=et(s);var ot=et(e);function ut(t,n){var a,r=0,i=(t=t.slice()).length-1,e=t[r],s=t[i];return s<e&&(a=r,r=i,i=a,a=e,e=s,s=a),t[r]=n.floor(e),t[i]=n.ceil(s),t}function ct(t){return new Date(t)}function lt(t){return t instanceof Date?+t:+new Date(+t)}function ft(t,n,a,r,i,e,s,c,l,f){var h=o(),p=h.invert,b=h.domain,y=f(".%L"),v=f(":%S"),w=f("%I:%M"),g=f("%I %p"),m=f("%a %d"),d=f("%b %d"),M=f("%B"),N=f("%Y");function D(t){return(l(t)<t?y:c(t)<t?v:s(t)<t?w:e(t)<t?g:r(t)<t?i(t)<t?m:d:a(t)<t?M:N)(t)}return h.invert=function(t){return new Date(p(t))},h.domain=function(t){return arguments.length?b(Array.from(t,lt)):b().map(ct)},h.ticks=function(n){var a=b();return t(a[0],a[a.length-1],null==n?10:n)},h.tickFormat=function(t,n){return null==n?D:f(n)},h.nice=function(t){var a=b();return t&&"function"==typeof t.range||(t=n(a[0],a[a.length-1],null==t?10:t)),t?b(ut(a,t)):h},h.copy=function(){return u(h,ft(t,n,a,r,i,e,s,c,l,f))},h}function ht(){return c.apply(ft(T,U,I,k,j,D,N,M,f,A).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}export{B as a,L as b,ft as c,W as d,at as e,ot as h,st as i,H as l,C as m,ut as n,V as r,ht as t,Q as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as t,c as e,l as n,S as i,T as s,V as r,W as a,B as o,X as c,y as l}from"./mermaid-DNVHAxFt.js";import{s as h}from"./transform-DjHZbYKP.js";import{d}from"./arc-Cuwikxov.js";import"./index-BTHBullW.js";import"./step-BwsUM5iJ.js";import"./timer-DFzT7np-.js";var u=function(){var e=t((function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n}),"o"),n=[6,8,10,11,12,14,16,17,20,21],i=[1,9],s=[1,10],r=[1,11],a=[1,12],o=[1,13],c=[1,16],l=[1,17],h={trace:t((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:t((function(t,e,n,i,s,r,a){var o=r.length-1;switch(s){case 1:return r[o-1];case 2:case 6:case 7:this.$=[];break;case 3:r[o-1].push(r[o]),this.$=r[o-1];break;case 4:case 5:this.$=r[o];break;case 8:i.getCommonDb().setDiagramTitle(r[o].substr(6)),this.$=r[o].substr(6);break;case 9:this.$=r[o].trim(),i.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=r[o].trim(),i.getCommonDb().setAccDescription(this.$);break;case 12:i.addSection(r[o].substr(8)),this.$=r[o].substr(8);break;case 15:i.addTask(r[o],0,""),this.$=r[o];break;case 16:i.addEvent(r[o].substr(2)),this.$=r[o]}}),"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(n,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:i,12:s,14:r,16:a,17:o,18:14,19:15,20:c,21:l},e(n,[2,7],{1:[2,1]}),e(n,[2,3]),{9:18,11:i,12:s,14:r,16:a,17:o,18:14,19:15,20:c,21:l},e(n,[2,5]),e(n,[2,6]),e(n,[2,8]),{13:[1,19]},{15:[1,20]},e(n,[2,11]),e(n,[2,12]),e(n,[2,13]),e(n,[2,14]),e(n,[2,15]),e(n,[2,16]),e(n,[2,4]),e(n,[2,9]),e(n,[2,10])],defaultActions:{},parseError:t((function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)}),"parseError"),parse:t((function(e){var n=this,i=[0],s=[],r=[null],a=[],o=this.table,c="",l=0,h=0,d=a.slice.call(arguments,1),u=Object.create(this.lexer),p={yy:{}};for(var y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y)&&(p.yy[y]=this.yy[y]);u.setInput(e,p.yy),p.yy.lexer=u,p.yy.parser=this,void 0===u.yylloc&&(u.yylloc={});var g=u.yylloc;a.push(g);var f=u.options&&u.options.ranges;function m(){var t;return"number"!=typeof(t=s.pop()||u.lex()||1)&&(t instanceof Array&&(t=(s=t).pop()),t=n.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,t((function(t){i.length=i.length-2*t,r.length=r.length-t,a.length=a.length-t}),"popStack"),t(m,"lex");for(var x,b,k,_,w,v,S,$,E={};;){if(b=i[i.length-1],this.defaultActions[b]?k=this.defaultActions[b]:(null==x&&(x=m()),k=o[b]&&o[b][x]),void 0===k||!k.length||!k[0]){var T="";for(w in $=[],o[b])this.terminals_[w]&&w>2&&$.push("'"+this.terminals_[w]+"'");T=u.showPosition?"Parse error on line "+(l+1)+":\n"+u.showPosition()+"\nExpecting "+$.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==x?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(T,{text:u.match,token:this.terminals_[x]||x,line:u.yylineno,loc:g,expected:$})}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+b+", token: "+x);switch(k[0]){case 1:i.push(x),r.push(u.yytext),a.push(u.yylloc),i.push(k[1]),x=null,h=u.yyleng,c=u.yytext,l=u.yylineno,g=u.yylloc;break;case 2:if(v=this.productions_[k[1]][1],E.$=r[r.length-v],E._$={first_line:a[a.length-(v||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(v||1)].first_column,last_column:a[a.length-1].last_column},f&&(E._$.range=[a[a.length-(v||1)].range[0],a[a.length-1].range[1]]),void 0!==(_=this.performAction.apply(E,[c,h,l,p.yy,k[1],r,a].concat(d))))return _;v&&(i=i.slice(0,-1*v*2),r=r.slice(0,-1*v),a=a.slice(0,-1*v)),i.push(this.productions_[k[1]][0]),r.push(E.$),a.push(E._$),S=o[i[i.length-2]][i[i.length-1]],i.push(S);break;case 3:return!0}}return!0}),"parse")},d=function(){return{EOF:1,parseError:t((function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)}),"parseError"),setInput:t((function(t,e){return this.yy=e||this.yy||{},this._input=t,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:t((function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t}),"input"),unput:t((function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=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),n.length-1&&(this.yylineno-=n.length-1);var s=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:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[s[0],s[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this}),"unput"),more:t((function(){return this._more=!0,this}),"more"),reject:t((function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}),"reject"),less:t((function(t){this.unput(this.match.slice(t))}),"less"),pastInput:t((function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")}),"pastInput"),upcomingInput:t((function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")}),"upcomingInput"),showPosition:t((function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"}),"showPosition"),test_match:t((function(t,e){var n,i,s;if(this.options.backtrack_lexer&&(s={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(s.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var r in s)this[r]=s[r];return!1}return!1}),"test_match"),next:t((function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var s=this._currentRules(),r=0;r<s.length;r++)if((n=this._input.match(this.rules[s[r]]))&&(!e||n[0].length>e[0].length)){if(e=n,i=r,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,s[r])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,s[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}),"next"),lex:t((function(){var t=this.next();return t||this.lex()}),"lex"),begin:t((function(t){this.conditionStack.push(t)}),"begin"),popState:t((function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]}),"popState"),_currentRules:t((function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules}),"_currentRules"),topState:t((function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"}),"topState"),pushState:t((function(t){this.begin(t)}),"pushState"),stateStackSize:t((function(){return this.conditionStack.length}),"stateStackSize"),options:{"case-insensitive":!0},performAction:t((function(t,e,n,i){switch(n){case 0:case 1:case 3:case 4:break;case 2:return 10;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 21;case 16:return 20;case 17:return 6;case 18:return"INVALID"}}),"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^:\n]+)/i,/^(?::\s[^:\n]+)/i,/^(?:[^#:\n]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18],inclusive:!0}}}}();function u(){this.yy={}}return h.lexer=d,t(u,"Parser"),u.prototype=h,h.Parser=u,new u}();u.parser=u;var p=u,y={};o(y,{addEvent:()=>E,addSection:()=>w,addTask:()=>$,addTaskOrg:()=>T,clear:()=>_,default:()=>M,getCommonDb:()=>k,getSections:()=>v,getTasks:()=>S});var g="",f=0,m=[],x=[],b=[],k=t((()=>c),"getCommonDb"),_=t((function(){m.length=0,x.length=0,g="",b.length=0,l()}),"clear"),w=t((function(t){g=t,m.push(t)}),"addSection"),v=t((function(){return m}),"getSections"),S=t((function(){let t=I();let e=0;for(;!t&&e<100;)t=I(),e++;return x.push(...b),x}),"getTasks"),$=t((function(t,e,n){const i={id:f++,section:g,type:g,task:t,score:e||0,events:n?[n]:[]};b.push(i)}),"addTask"),E=t((function(t){b.find((t=>t.id===f-1)).events.push(t)}),"addEvent"),T=t((function(t){const e={section:g,type:g,description:t,task:t,classes:[]};x.push(e)}),"addTaskOrg"),I=t((function(){const e=t((function(t){return b[t].processed}),"compileTask");let n=!0;for(const[t,i]of b.entries())e(t),n=n&&i.processed;return n}),"compileTasks"),M={clear:_,getCommonDb:k,addSection:w,getSections:v,getTasks:S,addTask:$,addTaskOrg:T,addEvent:E},N=t((function(t,e){const n=t.append("rect");return n.attr("x",e.x),n.attr("y",e.y),n.attr("fill",e.fill),n.attr("stroke",e.stroke),n.attr("width",e.width),n.attr("height",e.height),n.attr("rx",e.rx),n.attr("ry",e.ry),void 0!==e.class&&n.attr("class",e.class),n}),"drawRect"),A=t((function(e,n){const i=15,s=e.append("circle").attr("cx",n.cx).attr("cy",n.cy).attr("class","face").attr("r",i).attr("stroke-width",2).attr("overflow","visible"),r=e.append("g");function a(t){const e=d().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(7.5).outerRadius(i/2.2);t.append("path").attr("class","mouth").attr("d",e).attr("transform","translate("+n.cx+","+(n.cy+2)+")")}function o(t){const e=d().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(7.5).outerRadius(i/2.2);t.append("path").attr("class","mouth").attr("d",e).attr("transform","translate("+n.cx+","+(n.cy+7)+")")}function c(t){t.append("line").attr("class","mouth").attr("stroke",2).attr("x1",n.cx-5).attr("y1",n.cy+7).attr("x2",n.cx+5).attr("y2",n.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return r.append("circle").attr("cx",n.cx-5).attr("cy",n.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),r.append("circle").attr("cx",n.cx+5).attr("cy",n.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),t(a,"smile"),t(o,"sad"),t(c,"ambivalent"),n.score>3?a(r):n.score<3?o(r):c(r),s}),"drawFace"),C=t((function(t,e){const n=t.append("circle");return n.attr("cx",e.cx),n.attr("cy",e.cy),n.attr("class","actor-"+e.pos),n.attr("fill",e.fill),n.attr("stroke",e.stroke),n.attr("r",e.r),void 0!==n.class&&n.attr("class",n.class),void 0!==e.title&&n.append("title").text(e.title),n}),"drawCircle"),j=t((function(t,e){const n=e.text.replace(/<br\s*\/?>/gi," "),i=t.append("text");i.attr("x",e.x),i.attr("y",e.y),i.attr("class","legend"),i.style("text-anchor",e.anchor),void 0!==e.class&&i.attr("class",e.class);const s=i.append("tspan");return s.attr("x",e.x+2*e.textMargin),s.text(n),i}),"drawText"),L=t((function(e,n){function i(t,e,n,i,s){return t+","+e+" "+(t+n)+","+e+" "+(t+n)+","+(e+i-s)+" "+(t+n-1.2*s)+","+(e+i)+" "+t+","+(e+i)}t(i,"genPoints");const s=e.append("polygon");s.attr("points",i(n.x,n.y,50,20,7)),s.attr("class","labelBox"),n.y=n.y+n.labelMargin,n.x=n.x+.5*n.labelMargin,j(e,n)}),"drawLabel"),P=t((function(t,e,n){const i=t.append("g"),s=z();s.x=e.x,s.y=e.y,s.fill=e.fill,s.width=n.width,s.height=n.height,s.class="journey-section section-type-"+e.num,s.rx=3,s.ry=3,N(i,s),B(n)(e.text,i,s.x,s.y,s.width,s.height,{class:"journey-section section-type-"+e.num},n,e.colour)}),"drawSection"),H=-1,O=t((function(t,e,n){const i=e.x+n.width/2,s=t.append("g");H++;s.append("line").attr("id","task"+H).attr("x1",i).attr("y1",e.y).attr("x2",i).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),A(s,{cx:i,cy:300+30*(5-e.score),score:e.score});const r=z();r.x=e.x,r.y=e.y,r.fill=e.fill,r.width=n.width,r.height=n.height,r.class="task task-type-"+e.num,r.rx=3,r.ry=3,N(s,r),B(n)(e.task,s,r.x,r.y,r.width,r.height,{class:"task"},n,e.colour)}),"drawTask"),R=t((function(t,e){N(t,{x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,class:"rect"}).lower()}),"drawBackgroundRect"),D=t((function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}}),"getTextObj"),z=t((function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}}),"getNoteRect"),B=function(){function e(t,e,n,i,r,a,o,c){s(e.append("text").attr("x",n+r/2).attr("y",i+a/2+5).style("font-color",c).style("text-anchor","middle").text(t),o)}function n(t,e,n,i,r,a,o,c,l){const{taskFontSize:h,taskFontFamily:d}=c,u=t.split(/<br\s*\/?>/gi);for(let p=0;p<u.length;p++){const t=p*h-h*(u.length-1)/2,c=e.append("text").attr("x",n+r/2).attr("y",i).attr("fill",l).style("text-anchor","middle").style("font-size",h).style("font-family",d);c.append("tspan").attr("x",n+r/2).attr("dy",t).text(u[p]),c.attr("y",i+a/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),s(c,o)}}function i(t,e,i,r,a,o,c,l){const h=e.append("switch"),d=h.append("foreignObject").attr("x",i).attr("y",r).attr("width",a).attr("height",o).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");d.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),n(t,h,i,r,a,o,c,l),s(d,c)}function s(t,e){for(const n in e)n in e&&t.attr(n,e[n])}return t(e,"byText"),t(n,"byTspan"),t(i,"byFo"),t(s,"_setTextAttrs"),function(t){return"fo"===t.textPlacement?i:"old"===t.textPlacement?e:n}}(),F=t((function(t){t.append("defs").append("marker").attr("id","arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")}),"initGraphics");function W(t,e){t.each((function(){var t,n=h(this),i=n.text().split(/(\s+|<br>)/).reverse(),s=[],r=n.attr("y"),a=parseFloat(n.attr("dy")),o=n.text(null).append("tspan").attr("x",0).attr("y",r).attr("dy",a+"em");for(let c=0;c<i.length;c++)t=i[i.length-1-c],s.push(t),o.text(s.join(" ").trim()),(o.node().getComputedTextLength()>e||"<br>"===t)&&(s.pop(),o.text(s.join(" ").trim()),s="<br>"===t?[""]:[t],o=n.append("tspan").attr("x",0).attr("y",r).attr("dy","1.1em").text(t))}))}t(W,"wrap");var V=t((function(t,e,n,i){var s;const r=n%12-1,a=t.append("g");e.section=r,a.attr("class",(e.class?e.class+" ":"")+"timeline-node section-"+r);const o=a.append("g"),c=a.append("g"),l=c.append("text").text(e.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(W,e.width).node().getBBox(),h=(null==(s=i.fontSize)?void 0:s.replace)?i.fontSize.replace("px",""):i.fontSize;return e.height=l.height+1.1*h*.5+e.padding,e.height=Math.max(e.height,e.maxHeight),e.width=e.width+2*e.padding,c.attr("transform","translate("+e.width/2+", "+e.padding/2+")"),q(o,e,r,i),e}),"drawNode"),G=t((function(t,e,n){var i;const s=t.append("g"),r=s.append("text").text(e.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(W,e.width).node().getBBox(),a=(null==(i=n.fontSize)?void 0:i.replace)?n.fontSize.replace("px",""):n.fontSize;return s.remove(),r.height+1.1*a*.5+e.padding}),"getVirtualNodeHeight"),q=t((function(t,e,n){t.append("path").attr("id","node-"+e.id).attr("class","node-bkg node-"+e.type).attr("d",`M0 ${e.height-5} v${10-e.height} q0,-5 5,-5 h${e.width-10} q5,0 5,5 v${e.height-5} H0 Z`),t.append("line").attr("class","node-line-"+n).attr("x1",0).attr("y1",e.height).attr("x2",e.width).attr("y2",e.height)}),"defaultBkg"),U={drawRect:N,drawCircle:C,drawSection:P,drawText:j,drawLabel:L,drawTask:O,drawBackgroundRect:R,getTextObj:D,getNoteRect:z,initGraphics:F,drawNode:V,getVirtualNodeHeight:G},X=t((function(t,s,r,a){var o,c;const l=e(),d=l.leftMargin??50;n.debug("timeline",a.db);const u=l.securityLevel;let p;"sandbox"===u&&(p=h("#i"+s));const y=h("sandbox"===u?p.nodes()[0].contentDocument.body:"body").select("#"+s);y.append("g");const g=a.db.getTasks(),f=a.db.getCommonDb().getDiagramTitle();n.debug("task",g),U.initGraphics(y);const m=a.db.getSections();n.debug("sections",m);let x=0,b=0,k=0,_=0,w=50+d,v=50;_=50;let S=0,$=!0;m.forEach((function(t){const e={number:S,descr:t,section:S,width:150,padding:20,maxHeight:x},i=U.getVirtualNodeHeight(y,e,l);n.debug("sectionHeight before draw",i),x=Math.max(x,i+20)}));let E=0,T=0;n.debug("tasks.length",g.length);for(const[e,i]of g.entries()){const t={number:e,descr:i,section:i.section,width:150,padding:20,maxHeight:b},s=U.getVirtualNodeHeight(y,t,l);n.debug("taskHeight before draw",s),b=Math.max(b,s+20),E=Math.max(E,i.events.length);let r=0;for(const e of i.events){const t={descr:e,section:i.section,number:i.section,width:150,padding:20,maxHeight:50};r+=U.getVirtualNodeHeight(y,t,l)}T=Math.max(T,r)}n.debug("maxSectionHeight before draw",x),n.debug("maxTaskHeight before draw",b),m&&m.length>0?m.forEach((t=>{const e=g.filter((e=>e.section===t)),i={number:S,descr:t,section:S,width:200*Math.max(e.length,1)-50,padding:20,maxHeight:x};n.debug("sectionNode",i);const s=y.append("g"),r=U.drawNode(s,i,S,l);n.debug("sectionNode output",r),s.attr("transform",`translate(${w}, 50)`),v+=x+50,e.length>0&&Y(y,e,S,w,v,b,l,E,T,x,!1),w+=200*Math.max(e.length,1),v=50,S++})):($=!1,Y(y,g,S,w,v,b,l,E,T,x,!0));const I=y.node().getBBox();n.debug("bounds",I),f&&y.append("text").text(f).attr("x",I.width/2-d).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),k=$?x+b+150:b+100;y.append("g").attr("class","lineWrapper").append("line").attr("x1",d).attr("y1",k).attr("x2",I.width+3*d).attr("y2",k).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),i(void 0,y,(null==(o=l.timeline)?void 0:o.padding)??50,(null==(c=l.timeline)?void 0:c.useMaxWidth)??!1)}),"draw"),Y=t((function(t,e,i,s,r,a,o,c,l,h,d){var u;for(const p of e){const e={descr:p.task,section:i,number:i,width:150,padding:20,maxHeight:a};n.debug("taskNode",e);const c=t.append("g").attr("class","taskWrapper"),y=U.drawNode(c,e,i,o).height;if(n.debug("taskHeight after draw",y),c.attr("transform",`translate(${s}, ${r})`),a=Math.max(a,y),p.events){const e=t.append("g").attr("class","lineWrapper");let n=a;r+=100,n+=Z(t,p.events,i,s,r,o),r-=100,e.append("line").attr("x1",s+95).attr("y1",r+a).attr("x2",s+95).attr("y2",r+a+(d?a:h)+l+120).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5")}s+=200,d&&!(null==(u=o.timeline)?void 0:u.disableMulticolor)&&i++}r-=10}),"drawTasks"),Z=t((function(t,e,i,s,r,a){let o=0;const c=r;r+=100;for(const l of e){const e={descr:l,section:i,number:i,width:150,padding:20,maxHeight:50};n.debug("eventNode",e);const c=t.append("g").attr("class","eventWrapper"),h=U.drawNode(c,e,i,a).height;o+=h,c.attr("transform",`translate(${s}, ${r})`),r=r+10+h}return r=c,o}),"drawEvents"),J={setConf:t((()=>{}),"setConf"),draw:X},K=t((t=>{let e="";for(let n=0;n<t.THEME_COLOR_LIMIT;n++)t["lineColor"+n]=t["lineColor"+n]||t["cScaleInv"+n],s(t["lineColor"+n])?t["lineColor"+n]=r(t["lineColor"+n],20):t["lineColor"+n]=a(t["lineColor"+n],20);for(let n=0;n<t.THEME_COLOR_LIMIT;n++){const i=""+(17-3*n);e+=`\n .section-${n-1} rect, .section-${n-1} path, .section-${n-1} circle, .section-${n-1} path {\n fill: ${t["cScale"+n]};\n }\n .section-${n-1} text {\n fill: ${t["cScaleLabel"+n]};\n }\n .node-icon-${n-1} {\n font-size: 40px;\n color: ${t["cScaleLabel"+n]};\n }\n .section-edge-${n-1}{\n stroke: ${t["cScale"+n]};\n }\n .edge-depth-${n-1}{\n stroke-width: ${i};\n }\n .section-${n-1} line {\n stroke: ${t["cScaleInv"+n]} ;\n stroke-width: 3;\n }\n\n .lineWrapper line{\n stroke: ${t["cScaleLabel"+n]} ;\n }\n\n .disabled, .disabled circle, .disabled text {\n fill: lightgray;\n }\n .disabled text {\n fill: #efefef;\n }\n `}return e}),"genSections"),Q={db:y,renderer:J,parser:p,styles:t((t=>`\n .edge {\n stroke-width: 3;\n }\n ${K(t)}\n .section-root rect, .section-root path, .section-root circle {\n fill: ${t.git0};\n }\n .section-root text {\n fill: ${t.gitBranchLabel0};\n }\n .icon-container {\n height:100%;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n .edge {\n fill: none;\n }\n .eventWrapper {\n filter: brightness(120%);\n }\n`),"getStyles")};export{Q as diagram};
|
|
1
|
+
import{_ as t,c as e,l as n,S as i,T as s,V as r,W as a,B as o,X as c,y as l}from"./mermaid-D2SdoFUx.js";import{s as h}from"./transform-DjHZbYKP.js";import{d}from"./arc-Cuwikxov.js";import"./index-D25ZVZoz.js";import"./step-BwsUM5iJ.js";import"./timer-DFzT7np-.js";var u=function(){var e=t((function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n}),"o"),n=[6,8,10,11,12,14,16,17,20,21],i=[1,9],s=[1,10],r=[1,11],a=[1,12],o=[1,13],c=[1,16],l=[1,17],h={trace:t((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:t((function(t,e,n,i,s,r,a){var o=r.length-1;switch(s){case 1:return r[o-1];case 2:case 6:case 7:this.$=[];break;case 3:r[o-1].push(r[o]),this.$=r[o-1];break;case 4:case 5:this.$=r[o];break;case 8:i.getCommonDb().setDiagramTitle(r[o].substr(6)),this.$=r[o].substr(6);break;case 9:this.$=r[o].trim(),i.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=r[o].trim(),i.getCommonDb().setAccDescription(this.$);break;case 12:i.addSection(r[o].substr(8)),this.$=r[o].substr(8);break;case 15:i.addTask(r[o],0,""),this.$=r[o];break;case 16:i.addEvent(r[o].substr(2)),this.$=r[o]}}),"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(n,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:i,12:s,14:r,16:a,17:o,18:14,19:15,20:c,21:l},e(n,[2,7],{1:[2,1]}),e(n,[2,3]),{9:18,11:i,12:s,14:r,16:a,17:o,18:14,19:15,20:c,21:l},e(n,[2,5]),e(n,[2,6]),e(n,[2,8]),{13:[1,19]},{15:[1,20]},e(n,[2,11]),e(n,[2,12]),e(n,[2,13]),e(n,[2,14]),e(n,[2,15]),e(n,[2,16]),e(n,[2,4]),e(n,[2,9]),e(n,[2,10])],defaultActions:{},parseError:t((function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)}),"parseError"),parse:t((function(e){var n=this,i=[0],s=[],r=[null],a=[],o=this.table,c="",l=0,h=0,d=a.slice.call(arguments,1),u=Object.create(this.lexer),p={yy:{}};for(var y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y)&&(p.yy[y]=this.yy[y]);u.setInput(e,p.yy),p.yy.lexer=u,p.yy.parser=this,void 0===u.yylloc&&(u.yylloc={});var g=u.yylloc;a.push(g);var f=u.options&&u.options.ranges;function m(){var t;return"number"!=typeof(t=s.pop()||u.lex()||1)&&(t instanceof Array&&(t=(s=t).pop()),t=n.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,t((function(t){i.length=i.length-2*t,r.length=r.length-t,a.length=a.length-t}),"popStack"),t(m,"lex");for(var x,b,k,_,w,v,S,$,E={};;){if(b=i[i.length-1],this.defaultActions[b]?k=this.defaultActions[b]:(null==x&&(x=m()),k=o[b]&&o[b][x]),void 0===k||!k.length||!k[0]){var T="";for(w in $=[],o[b])this.terminals_[w]&&w>2&&$.push("'"+this.terminals_[w]+"'");T=u.showPosition?"Parse error on line "+(l+1)+":\n"+u.showPosition()+"\nExpecting "+$.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==x?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(T,{text:u.match,token:this.terminals_[x]||x,line:u.yylineno,loc:g,expected:$})}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+b+", token: "+x);switch(k[0]){case 1:i.push(x),r.push(u.yytext),a.push(u.yylloc),i.push(k[1]),x=null,h=u.yyleng,c=u.yytext,l=u.yylineno,g=u.yylloc;break;case 2:if(v=this.productions_[k[1]][1],E.$=r[r.length-v],E._$={first_line:a[a.length-(v||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(v||1)].first_column,last_column:a[a.length-1].last_column},f&&(E._$.range=[a[a.length-(v||1)].range[0],a[a.length-1].range[1]]),void 0!==(_=this.performAction.apply(E,[c,h,l,p.yy,k[1],r,a].concat(d))))return _;v&&(i=i.slice(0,-1*v*2),r=r.slice(0,-1*v),a=a.slice(0,-1*v)),i.push(this.productions_[k[1]][0]),r.push(E.$),a.push(E._$),S=o[i[i.length-2]][i[i.length-1]],i.push(S);break;case 3:return!0}}return!0}),"parse")},d=function(){return{EOF:1,parseError:t((function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)}),"parseError"),setInput:t((function(t,e){return this.yy=e||this.yy||{},this._input=t,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:t((function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t}),"input"),unput:t((function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=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),n.length-1&&(this.yylineno-=n.length-1);var s=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:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[s[0],s[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this}),"unput"),more:t((function(){return this._more=!0,this}),"more"),reject:t((function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}),"reject"),less:t((function(t){this.unput(this.match.slice(t))}),"less"),pastInput:t((function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")}),"pastInput"),upcomingInput:t((function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")}),"upcomingInput"),showPosition:t((function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"}),"showPosition"),test_match:t((function(t,e){var n,i,s;if(this.options.backtrack_lexer&&(s={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(s.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var r in s)this[r]=s[r];return!1}return!1}),"test_match"),next:t((function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var s=this._currentRules(),r=0;r<s.length;r++)if((n=this._input.match(this.rules[s[r]]))&&(!e||n[0].length>e[0].length)){if(e=n,i=r,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,s[r])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,s[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}),"next"),lex:t((function(){var t=this.next();return t||this.lex()}),"lex"),begin:t((function(t){this.conditionStack.push(t)}),"begin"),popState:t((function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]}),"popState"),_currentRules:t((function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules}),"_currentRules"),topState:t((function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"}),"topState"),pushState:t((function(t){this.begin(t)}),"pushState"),stateStackSize:t((function(){return this.conditionStack.length}),"stateStackSize"),options:{"case-insensitive":!0},performAction:t((function(t,e,n,i){switch(n){case 0:case 1:case 3:case 4:break;case 2:return 10;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 21;case 16:return 20;case 17:return 6;case 18:return"INVALID"}}),"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^:\n]+)/i,/^(?::\s[^:\n]+)/i,/^(?:[^#:\n]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18],inclusive:!0}}}}();function u(){this.yy={}}return h.lexer=d,t(u,"Parser"),u.prototype=h,h.Parser=u,new u}();u.parser=u;var p=u,y={};o(y,{addEvent:()=>E,addSection:()=>w,addTask:()=>$,addTaskOrg:()=>T,clear:()=>_,default:()=>M,getCommonDb:()=>k,getSections:()=>v,getTasks:()=>S});var g="",f=0,m=[],x=[],b=[],k=t((()=>c),"getCommonDb"),_=t((function(){m.length=0,x.length=0,g="",b.length=0,l()}),"clear"),w=t((function(t){g=t,m.push(t)}),"addSection"),v=t((function(){return m}),"getSections"),S=t((function(){let t=I();let e=0;for(;!t&&e<100;)t=I(),e++;return x.push(...b),x}),"getTasks"),$=t((function(t,e,n){const i={id:f++,section:g,type:g,task:t,score:e||0,events:n?[n]:[]};b.push(i)}),"addTask"),E=t((function(t){b.find((t=>t.id===f-1)).events.push(t)}),"addEvent"),T=t((function(t){const e={section:g,type:g,description:t,task:t,classes:[]};x.push(e)}),"addTaskOrg"),I=t((function(){const e=t((function(t){return b[t].processed}),"compileTask");let n=!0;for(const[t,i]of b.entries())e(t),n=n&&i.processed;return n}),"compileTasks"),M={clear:_,getCommonDb:k,addSection:w,getSections:v,getTasks:S,addTask:$,addTaskOrg:T,addEvent:E},N=t((function(t,e){const n=t.append("rect");return n.attr("x",e.x),n.attr("y",e.y),n.attr("fill",e.fill),n.attr("stroke",e.stroke),n.attr("width",e.width),n.attr("height",e.height),n.attr("rx",e.rx),n.attr("ry",e.ry),void 0!==e.class&&n.attr("class",e.class),n}),"drawRect"),A=t((function(e,n){const i=15,s=e.append("circle").attr("cx",n.cx).attr("cy",n.cy).attr("class","face").attr("r",i).attr("stroke-width",2).attr("overflow","visible"),r=e.append("g");function a(t){const e=d().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(7.5).outerRadius(i/2.2);t.append("path").attr("class","mouth").attr("d",e).attr("transform","translate("+n.cx+","+(n.cy+2)+")")}function o(t){const e=d().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(7.5).outerRadius(i/2.2);t.append("path").attr("class","mouth").attr("d",e).attr("transform","translate("+n.cx+","+(n.cy+7)+")")}function c(t){t.append("line").attr("class","mouth").attr("stroke",2).attr("x1",n.cx-5).attr("y1",n.cy+7).attr("x2",n.cx+5).attr("y2",n.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return r.append("circle").attr("cx",n.cx-5).attr("cy",n.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),r.append("circle").attr("cx",n.cx+5).attr("cy",n.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),t(a,"smile"),t(o,"sad"),t(c,"ambivalent"),n.score>3?a(r):n.score<3?o(r):c(r),s}),"drawFace"),C=t((function(t,e){const n=t.append("circle");return n.attr("cx",e.cx),n.attr("cy",e.cy),n.attr("class","actor-"+e.pos),n.attr("fill",e.fill),n.attr("stroke",e.stroke),n.attr("r",e.r),void 0!==n.class&&n.attr("class",n.class),void 0!==e.title&&n.append("title").text(e.title),n}),"drawCircle"),j=t((function(t,e){const n=e.text.replace(/<br\s*\/?>/gi," "),i=t.append("text");i.attr("x",e.x),i.attr("y",e.y),i.attr("class","legend"),i.style("text-anchor",e.anchor),void 0!==e.class&&i.attr("class",e.class);const s=i.append("tspan");return s.attr("x",e.x+2*e.textMargin),s.text(n),i}),"drawText"),L=t((function(e,n){function i(t,e,n,i,s){return t+","+e+" "+(t+n)+","+e+" "+(t+n)+","+(e+i-s)+" "+(t+n-1.2*s)+","+(e+i)+" "+t+","+(e+i)}t(i,"genPoints");const s=e.append("polygon");s.attr("points",i(n.x,n.y,50,20,7)),s.attr("class","labelBox"),n.y=n.y+n.labelMargin,n.x=n.x+.5*n.labelMargin,j(e,n)}),"drawLabel"),P=t((function(t,e,n){const i=t.append("g"),s=z();s.x=e.x,s.y=e.y,s.fill=e.fill,s.width=n.width,s.height=n.height,s.class="journey-section section-type-"+e.num,s.rx=3,s.ry=3,N(i,s),B(n)(e.text,i,s.x,s.y,s.width,s.height,{class:"journey-section section-type-"+e.num},n,e.colour)}),"drawSection"),H=-1,O=t((function(t,e,n){const i=e.x+n.width/2,s=t.append("g");H++;s.append("line").attr("id","task"+H).attr("x1",i).attr("y1",e.y).attr("x2",i).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),A(s,{cx:i,cy:300+30*(5-e.score),score:e.score});const r=z();r.x=e.x,r.y=e.y,r.fill=e.fill,r.width=n.width,r.height=n.height,r.class="task task-type-"+e.num,r.rx=3,r.ry=3,N(s,r),B(n)(e.task,s,r.x,r.y,r.width,r.height,{class:"task"},n,e.colour)}),"drawTask"),R=t((function(t,e){N(t,{x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,class:"rect"}).lower()}),"drawBackgroundRect"),D=t((function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}}),"getTextObj"),z=t((function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}}),"getNoteRect"),B=function(){function e(t,e,n,i,r,a,o,c){s(e.append("text").attr("x",n+r/2).attr("y",i+a/2+5).style("font-color",c).style("text-anchor","middle").text(t),o)}function n(t,e,n,i,r,a,o,c,l){const{taskFontSize:h,taskFontFamily:d}=c,u=t.split(/<br\s*\/?>/gi);for(let p=0;p<u.length;p++){const t=p*h-h*(u.length-1)/2,c=e.append("text").attr("x",n+r/2).attr("y",i).attr("fill",l).style("text-anchor","middle").style("font-size",h).style("font-family",d);c.append("tspan").attr("x",n+r/2).attr("dy",t).text(u[p]),c.attr("y",i+a/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),s(c,o)}}function i(t,e,i,r,a,o,c,l){const h=e.append("switch"),d=h.append("foreignObject").attr("x",i).attr("y",r).attr("width",a).attr("height",o).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");d.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),n(t,h,i,r,a,o,c,l),s(d,c)}function s(t,e){for(const n in e)n in e&&t.attr(n,e[n])}return t(e,"byText"),t(n,"byTspan"),t(i,"byFo"),t(s,"_setTextAttrs"),function(t){return"fo"===t.textPlacement?i:"old"===t.textPlacement?e:n}}(),F=t((function(t){t.append("defs").append("marker").attr("id","arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")}),"initGraphics");function W(t,e){t.each((function(){var t,n=h(this),i=n.text().split(/(\s+|<br>)/).reverse(),s=[],r=n.attr("y"),a=parseFloat(n.attr("dy")),o=n.text(null).append("tspan").attr("x",0).attr("y",r).attr("dy",a+"em");for(let c=0;c<i.length;c++)t=i[i.length-1-c],s.push(t),o.text(s.join(" ").trim()),(o.node().getComputedTextLength()>e||"<br>"===t)&&(s.pop(),o.text(s.join(" ").trim()),s="<br>"===t?[""]:[t],o=n.append("tspan").attr("x",0).attr("y",r).attr("dy","1.1em").text(t))}))}t(W,"wrap");var V=t((function(t,e,n,i){var s;const r=n%12-1,a=t.append("g");e.section=r,a.attr("class",(e.class?e.class+" ":"")+"timeline-node section-"+r);const o=a.append("g"),c=a.append("g"),l=c.append("text").text(e.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(W,e.width).node().getBBox(),h=(null==(s=i.fontSize)?void 0:s.replace)?i.fontSize.replace("px",""):i.fontSize;return e.height=l.height+1.1*h*.5+e.padding,e.height=Math.max(e.height,e.maxHeight),e.width=e.width+2*e.padding,c.attr("transform","translate("+e.width/2+", "+e.padding/2+")"),q(o,e,r,i),e}),"drawNode"),G=t((function(t,e,n){var i;const s=t.append("g"),r=s.append("text").text(e.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(W,e.width).node().getBBox(),a=(null==(i=n.fontSize)?void 0:i.replace)?n.fontSize.replace("px",""):n.fontSize;return s.remove(),r.height+1.1*a*.5+e.padding}),"getVirtualNodeHeight"),q=t((function(t,e,n){t.append("path").attr("id","node-"+e.id).attr("class","node-bkg node-"+e.type).attr("d",`M0 ${e.height-5} v${10-e.height} q0,-5 5,-5 h${e.width-10} q5,0 5,5 v${e.height-5} H0 Z`),t.append("line").attr("class","node-line-"+n).attr("x1",0).attr("y1",e.height).attr("x2",e.width).attr("y2",e.height)}),"defaultBkg"),U={drawRect:N,drawCircle:C,drawSection:P,drawText:j,drawLabel:L,drawTask:O,drawBackgroundRect:R,getTextObj:D,getNoteRect:z,initGraphics:F,drawNode:V,getVirtualNodeHeight:G},X=t((function(t,s,r,a){var o,c;const l=e(),d=l.leftMargin??50;n.debug("timeline",a.db);const u=l.securityLevel;let p;"sandbox"===u&&(p=h("#i"+s));const y=h("sandbox"===u?p.nodes()[0].contentDocument.body:"body").select("#"+s);y.append("g");const g=a.db.getTasks(),f=a.db.getCommonDb().getDiagramTitle();n.debug("task",g),U.initGraphics(y);const m=a.db.getSections();n.debug("sections",m);let x=0,b=0,k=0,_=0,w=50+d,v=50;_=50;let S=0,$=!0;m.forEach((function(t){const e={number:S,descr:t,section:S,width:150,padding:20,maxHeight:x},i=U.getVirtualNodeHeight(y,e,l);n.debug("sectionHeight before draw",i),x=Math.max(x,i+20)}));let E=0,T=0;n.debug("tasks.length",g.length);for(const[e,i]of g.entries()){const t={number:e,descr:i,section:i.section,width:150,padding:20,maxHeight:b},s=U.getVirtualNodeHeight(y,t,l);n.debug("taskHeight before draw",s),b=Math.max(b,s+20),E=Math.max(E,i.events.length);let r=0;for(const e of i.events){const t={descr:e,section:i.section,number:i.section,width:150,padding:20,maxHeight:50};r+=U.getVirtualNodeHeight(y,t,l)}T=Math.max(T,r)}n.debug("maxSectionHeight before draw",x),n.debug("maxTaskHeight before draw",b),m&&m.length>0?m.forEach((t=>{const e=g.filter((e=>e.section===t)),i={number:S,descr:t,section:S,width:200*Math.max(e.length,1)-50,padding:20,maxHeight:x};n.debug("sectionNode",i);const s=y.append("g"),r=U.drawNode(s,i,S,l);n.debug("sectionNode output",r),s.attr("transform",`translate(${w}, 50)`),v+=x+50,e.length>0&&Y(y,e,S,w,v,b,l,E,T,x,!1),w+=200*Math.max(e.length,1),v=50,S++})):($=!1,Y(y,g,S,w,v,b,l,E,T,x,!0));const I=y.node().getBBox();n.debug("bounds",I),f&&y.append("text").text(f).attr("x",I.width/2-d).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),k=$?x+b+150:b+100;y.append("g").attr("class","lineWrapper").append("line").attr("x1",d).attr("y1",k).attr("x2",I.width+3*d).attr("y2",k).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),i(void 0,y,(null==(o=l.timeline)?void 0:o.padding)??50,(null==(c=l.timeline)?void 0:c.useMaxWidth)??!1)}),"draw"),Y=t((function(t,e,i,s,r,a,o,c,l,h,d){var u;for(const p of e){const e={descr:p.task,section:i,number:i,width:150,padding:20,maxHeight:a};n.debug("taskNode",e);const c=t.append("g").attr("class","taskWrapper"),y=U.drawNode(c,e,i,o).height;if(n.debug("taskHeight after draw",y),c.attr("transform",`translate(${s}, ${r})`),a=Math.max(a,y),p.events){const e=t.append("g").attr("class","lineWrapper");let n=a;r+=100,n+=Z(t,p.events,i,s,r,o),r-=100,e.append("line").attr("x1",s+95).attr("y1",r+a).attr("x2",s+95).attr("y2",r+a+(d?a:h)+l+120).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5")}s+=200,d&&!(null==(u=o.timeline)?void 0:u.disableMulticolor)&&i++}r-=10}),"drawTasks"),Z=t((function(t,e,i,s,r,a){let o=0;const c=r;r+=100;for(const l of e){const e={descr:l,section:i,number:i,width:150,padding:20,maxHeight:50};n.debug("eventNode",e);const c=t.append("g").attr("class","eventWrapper"),h=U.drawNode(c,e,i,a).height;o+=h,c.attr("transform",`translate(${s}, ${r})`),r=r+10+h}return r=c,o}),"drawEvents"),J={setConf:t((()=>{}),"setConf"),draw:X},K=t((t=>{let e="";for(let n=0;n<t.THEME_COLOR_LIMIT;n++)t["lineColor"+n]=t["lineColor"+n]||t["cScaleInv"+n],s(t["lineColor"+n])?t["lineColor"+n]=r(t["lineColor"+n],20):t["lineColor"+n]=a(t["lineColor"+n],20);for(let n=0;n<t.THEME_COLOR_LIMIT;n++){const i=""+(17-3*n);e+=`\n .section-${n-1} rect, .section-${n-1} path, .section-${n-1} circle, .section-${n-1} path {\n fill: ${t["cScale"+n]};\n }\n .section-${n-1} text {\n fill: ${t["cScaleLabel"+n]};\n }\n .node-icon-${n-1} {\n font-size: 40px;\n color: ${t["cScaleLabel"+n]};\n }\n .section-edge-${n-1}{\n stroke: ${t["cScale"+n]};\n }\n .edge-depth-${n-1}{\n stroke-width: ${i};\n }\n .section-${n-1} line {\n stroke: ${t["cScaleInv"+n]} ;\n stroke-width: 3;\n }\n\n .lineWrapper line{\n stroke: ${t["cScaleLabel"+n]} ;\n }\n\n .disabled, .disabled circle, .disabled text {\n fill: lightgray;\n }\n .disabled text {\n fill: #efefef;\n }\n `}return e}),"genSections"),Q={db:y,renderer:J,parser:p,styles:t((t=>`\n .edge {\n stroke-width: 3;\n }\n ${K(t)}\n .section-root rect, .section-root path, .section-root circle {\n fill: ${t.git0};\n }\n .section-root text {\n fill: ${t.gitBranchLabel0};\n }\n .icon-container {\n height:100%;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n .edge {\n fill: none;\n }\n .eventWrapper {\n filter: brightness(120%);\n }\n`),"getStyles")};export{Q as diagram};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-
|
|
2
|
-
import{u as e,d as s,T as t,aj as r,af as i,S as o,j as l,R as a,ak as n,al as m,am as p,an as c,ag as d,ao as j,ap as u,aq as h,ar as x,as as f}from"./index-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-Dvf3vz4o.js","./VegaLite-CNKZYR1c.js","./index-D25ZVZoz.js","./index-BbEv2iVN.css","./compile-DhiD2OIl.js","./time-J7OIP1Ve.js","./timer-DFzT7np-.js","./linear-WjwPNEQl.js","./init-DLRA0X12.js","./range-CtcPcB_L.js","./zoom-COrs4lFh.js","./ordinal-DDUp3AbE.js","./colors-bszWmPJw.js","./arc-Cuwikxov.js","./step-BwsUM5iJ.js","./index-D0xs4wpq.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{u as e,d as s,T as t,aj as r,af as i,S as o,j as l,R as a,ak as n,al as m,am as p,an as c,ag as d,ao as j,ap as u,aq as h,ar as x,as as f}from"./index-D25ZVZoz.js";import{P as g,C as v,f as y,E as b,a as I,u as S}from"./edit-page-ByAm3pnm.js";import{c as k}from"./compile-DhiD2OIl.js";import{r as N,b as T}from"./useMarimoWebSocket-C7Q2pfmw.js";import{A as w}from"./tree-gS-oXpYe.js";import{C as R}from"./circle-play-Bc0uRvfe.js";import"./_createAggregator-Dvx5-qYj.js";import"./_baseEach-BOi1xMzz.js";import"./transform-DjHZbYKP.js";import"./timer-DFzT7np-.js";import"./zoom-COrs4lFh.js";import"./sortBy-BWYzlL2q.js";import"./_baseMap-D2kyVuny.js";import"./time-J7OIP1Ve.js";import"./linear-WjwPNEQl.js";import"./init-DLRA0X12.js";import"./range-CtcPcB_L.js";import"./ordinal-DDUp3AbE.js";import"./colors-bszWmPJw.js";import"./arc-Cuwikxov.js";import"./step-BwsUM5iJ.js";import"./index-yYteRT7n.js";import"./index-CDrhBJh5.js";import"./index-CSvNPv2W.js";import"./index-DZ4-or1K.js";import"./index-D-nbCOVY.js";import"./index-W7aBJ9gy.js";import"./index-B6SjbC50.js";import"./index-Cxi84xou.js";import"./index-BD18meo4.js";import"./index-c7qrzQb-.js";import"./index-BkczaLMR.js";import"./index-XQJA6HPM.js";import"./index-vtzfPcuf.js";import"./apl-CXdQSnD-.js";import"./asciiarmor-D5V0T9Cu.js";import"./asterisk-B46aRdXb.js";import"./brainfuck-CtZaYBKt.js";import"./clike-BgBwzOhw.js";import"./cmake-DXn5xaP-.js";import"./cobol-stawOqaz.js";import"./coffeescript-BTDxI-eT.js";import"./commonlisp-vq6DHwts.js";import"./crystal-CRzZ78HM.js";import"./cypher-gJDei3ni.js";import"./d-BShv7fp-.js";import"./diff-UJJ5BM9S.js";import"./dockerfile-knGOOxt4.js";import"./simple-mode-C3vEBAcb.js";import"./dtd-DI9Herc-.js";import"./dylan-CHJ5qNM_.js";import"./ebnf-B-Df8AvO.js";import"./ecl-DPFc0Uaf.js";import"./eiffel-DR5c0IrL.js";import"./elm-D7xaZ7Da.js";import"./erlang-BuqgqA5h.js";import"./factor-CFXhaUWb.js";import"./fcl-CVaBTCzQ.js";import"./forth-Dri_5nFc.js";import"./fortran-DL7KluxX.js";import"./gas-5kEe4nk0.js";import"./gherkin-B6X1vGSW.js";import"./groovy-DnIzCrpZ.js";import"./haskell-CmdsSjFB.js";import"./haxe-D25e-2l-.js";import"./http-BKJkqRj4.js";import"./idl-pcmmZuaN.js";import"./jinja2-DhgKlfW7.js";import"./julia-DjdwvFuI.js";import"./livescript-HO6ttBFx.js";import"./lua-8DXOpKDz.js";import"./mathematica-IIbmv7SK.js";import"./mbox-DoeuZPxA.js";import"./mirc-DkvFAiy5.js";import"./modelica-DSrSSXCg.js";import"./mscgen-B2igx18G.js";import"./mumps-zvxmGV4l.js";import"./nginx-B4hAVlXN.js";import"./nsis-BvKfQ9lQ.js";import"./ntriples-FFvkTduk.js";import"./octave-C4hdQ5Hf.js";import"./oz-qQq7irPq.js";import"./pascal-CafrKXZF.js";import"./perl-tdMlh9QA.js";import"./pig-CwGJVRC4.js";import"./powershell-D1ly3AHC.js";import"./properties-_nPj978X.js";import"./protobuf-B4y9do6W.js";import"./puppet-Bc-yJKzi.js";import"./q-B0kTJ4cI.js";import"./r-BA4EbLKE.js";import"./ruby-CR-u2WLS.js";import"./sas-Bqaci40L.js";import"./scheme-qjP0V5Ag.js";import"./shell-BLav31RL.js";import"./sieve-r025o_jW.js";import"./smalltalk-C7J3IyEP.js";import"./solr-78MBEUkU.js";import"./sparql-BRLJFz69.js";import"./spreadsheet-CGlWr0eM.js";import"./stylus-OdhglgkO.js";import"./swift-B_XXVlXX.js";import"./tcl-B2fODqDH.js";import"./textile-BuVhTOzU.js";import"./tiddlywiki-BgR6AEZu.js";import"./tiki-CI-ztowC.js";import"./toml-BQXy8elZ.js";import"./troff-Ce85hlLp.js";import"./ttcn-BxnYHtq8.js";import"./turtle-BkSuIpt-.js";import"./vb-BHgjm0DN.js";import"./vbscript-Dawdd5GZ.js";import"./velocity-BdD_26Jv.js";import"./verilog-B4LBqg_1.js";import"./vhdl-CWWH2SUo.js";import"./webidl-CGwyPRYs.js";import"./xquery-CVDBqZPY.js";import"./yacas-I8QjZlxf.js";import"./z80-D8p3gKXp.js";import"./index-D0xs4wpq.js";
|
|
3
3
|
/**
|
|
4
4
|
* @license lucide-react v0.503.0 - ISC
|
|
5
5
|
*
|
|
6
6
|
* This source code is licensed under the ISC license.
|
|
7
7
|
* See the LICENSE file in the root directory of this source tree.
|
|
8
|
-
*/const E=e("circle-ellipsis",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M17 12h.01",key:"1m0b6t"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M7 12h.01",key:"eqddd0"}]]),M="hoveredCellId",_="cellHover",C="startTimestamp",$="endTimestamp";const z=r(new Map),L=()=>{const e=s.c(28),{runIds:r,runMap:a}=t(N),n=t(z),{clearRuns:m}=T(),{theme:p}=i(),[c,d]=o.useState("above");let j;e[0]!==c?(j=()=>{d("above"===c?"sideBySide":"above")},e[0]=c,e[1]=j):j=e[1];const u=j;if(0===r.length){let s;return e[2]===Symbol.for("react.memo_cache_sentinel")?(s=l.jsx(g,{title:"No traces",description:l.jsx("span",{children:"Cells that have ran will appear here."}),icon:l.jsx(w,{})}),e[2]=s):s=e[2],s}let h;e[3]===Symbol.for("react.memo_cache_sentinel")?(h=l.jsx("label",{htmlFor:"chartPosition",className:"text-xs",children:"Inline chart"}),e[3]=h):h=e[3];const x="sideBySide"===c;let f,y,b,I,S,k;if(e[4]!==x||e[5]!==u?(f=l.jsxs("div",{className:"flex flex-row gap-1 items-center",children:[h,l.jsx("input",{type:"checkbox",name:"chartPosition",id:"chartPosition",onClick:u,defaultChecked:x,className:"h-3 cursor-pointer"})]}),e[4]=x,e[5]=u,e[6]=f):f=e[6],e[7]!==m?(y=l.jsx(v,{dataTestId:"clear-traces-button",onClick:m}),e[7]=m,e[8]=y):y=e[8],e[9]!==f||e[10]!==y?(b=l.jsxs("div",{className:"flex flex-row justify-end gap-3",children:[f,y]}),e[9]=f,e[10]=y,e[11]=b):b=e[11],e[12]!==c||e[13]!==n||e[14]!==r||e[15]!==a||e[16]!==p){let s;e[18]!==c||e[19]!==n||e[20]!==a||e[21]!==p?(s=(e,s)=>{const t=a.get(e);if(t)return l.jsx(B,{run:t,isExpanded:n.get(t.runId),isMostRecentRun:0===s,chartPosition:c,theme:p},t.runId)},e[18]=c,e[19]=n,e[20]=a,e[21]=p,e[22]=s):s=e[22],I=r.map(s),e[12]=c,e[13]=n,e[14]=r,e[15]=a,e[16]=p,e[17]=I}else I=e[17];return e[23]!==I?(S=l.jsx("div",{className:"flex flex-col gap-3",children:I}),e[23]=I,e[24]=S):S=e[24],e[25]!==b||e[26]!==S?(k=l.jsxs("div",{className:"py-1 px-2 overflow-y-scroll",children:[b,S]}),e[25]=b,e[26]=S,e[27]=k):k=e[27],k},P=a.lazy((()=>n((()=>import("./index-
|
|
8
|
+
*/const E=e("circle-ellipsis",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M17 12h.01",key:"1m0b6t"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M7 12h.01",key:"eqddd0"}]]),M="hoveredCellId",_="cellHover",C="startTimestamp",$="endTimestamp";const z=r(new Map),L=()=>{const e=s.c(28),{runIds:r,runMap:a}=t(N),n=t(z),{clearRuns:m}=T(),{theme:p}=i(),[c,d]=o.useState("above");let j;e[0]!==c?(j=()=>{d("above"===c?"sideBySide":"above")},e[0]=c,e[1]=j):j=e[1];const u=j;if(0===r.length){let s;return e[2]===Symbol.for("react.memo_cache_sentinel")?(s=l.jsx(g,{title:"No traces",description:l.jsx("span",{children:"Cells that have ran will appear here."}),icon:l.jsx(w,{})}),e[2]=s):s=e[2],s}let h;e[3]===Symbol.for("react.memo_cache_sentinel")?(h=l.jsx("label",{htmlFor:"chartPosition",className:"text-xs",children:"Inline chart"}),e[3]=h):h=e[3];const x="sideBySide"===c;let f,y,b,I,S,k;if(e[4]!==x||e[5]!==u?(f=l.jsxs("div",{className:"flex flex-row gap-1 items-center",children:[h,l.jsx("input",{type:"checkbox",name:"chartPosition",id:"chartPosition",onClick:u,defaultChecked:x,className:"h-3 cursor-pointer"})]}),e[4]=x,e[5]=u,e[6]=f):f=e[6],e[7]!==m?(y=l.jsx(v,{dataTestId:"clear-traces-button",onClick:m}),e[7]=m,e[8]=y):y=e[8],e[9]!==f||e[10]!==y?(b=l.jsxs("div",{className:"flex flex-row justify-end gap-3",children:[f,y]}),e[9]=f,e[10]=y,e[11]=b):b=e[11],e[12]!==c||e[13]!==n||e[14]!==r||e[15]!==a||e[16]!==p){let s;e[18]!==c||e[19]!==n||e[20]!==a||e[21]!==p?(s=(e,s)=>{const t=a.get(e);if(t)return l.jsx(B,{run:t,isExpanded:n.get(t.runId),isMostRecentRun:0===s,chartPosition:c,theme:p},t.runId)},e[18]=c,e[19]=n,e[20]=a,e[21]=p,e[22]=s):s=e[22],I=r.map(s),e[12]=c,e[13]=n,e[14]=r,e[15]=a,e[16]=p,e[17]=I}else I=e[17];return e[23]!==I?(S=l.jsx("div",{className:"flex flex-col gap-3",children:I}),e[23]=I,e[24]=S):S=e[24],e[25]!==b||e[26]!==S?(k=l.jsxs("div",{className:"py-1 px-2 overflow-y-scroll",children:[b,S]}),e[25]=b,e[26]=S,e[27]=k):k=e[27],k},P=a.lazy((()=>n((()=>import("./index-Dvf3vz4o.js")),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]),import.meta.url).then((e=>({default:e.Vega}))))),q=e=>{const t=s.c(10),{ref:r,width:i}=S(),o=void 0===i?300:i,a="dark"===e.theme?"dark":void 0,n=o-50;let m,p;return t[0]!==e.height||t[1]!==e.signalListeners||t[2]!==e.vegaSpec||t[3]!==a||t[4]!==n?(m=l.jsx(P,{spec:e.vegaSpec,theme:a,width:n,height:e.height,signalListeners:e.signalListeners,actions:!1}),t[0]=e.height,t[1]=e.signalListeners,t[2]=e.vegaSpec,t[3]=a,t[4]=n,t[5]=m):m=t[5],t[6]!==e.className||t[7]!==r||t[8]!==m?(p=l.jsx("div",{className:e.className,ref:r,children:m}),t[6]=e.className,t[7]=r,t[8]=m,t[9]=p):p=t[9],p},B=({run:e,isMostRecentRun:s,chartPosition:t,isExpanded:r,theme:i})=>{const o=m(z),a=(r=r??s)?h:x,n=l.jsx(a,{height:16,className:"inline"}),c=l.jsxs("span",{className:"text-sm cursor-pointer",onClick:()=>{o((s=>{const t=new Map(s);return t.set(e.runId,!r),t}))},children:["Run - ",p(e.runStartTime),n]});return r?l.jsx(H,{run:e,chartPosition:t,theme:i,title:c},e.runId):l.jsx("div",{className:"flex flex-col",children:l.jsx("pre",{className:"font-mono font-semibold",children:c})},e.runId)},H=e=>{const t=s.c(32),{run:r,chartPosition:i,theme:a,title:n}=e,[m,p]=o.useState();let d;t[0]===Symbol.for("react.memo_cache_sentinel")?(d={[_]:(e,s)=>{var t;const r=null==(t=s.cell)?void 0:t[0];p(r??null)}},t[0]=d):d=t[0];const j=d,u=c();let h,x;if(t[1]!==u||t[2]!==i||t[3]!==r.cellRuns||t[4]!==r.runId||t[5]!==a){const e=[...r.cellRuns.values()].map((e=>{const s=e.elapsedTime??0;return{cell:e.cellId,cellNum:u.inOrderIds.indexOf(e.cellId),startTimestamp:O(e.startTime),endTimestamp:O(e.startTime+s),elapsedTime:y(1e3*s),status:e.status}}));h=`hiddenInputElement-${r.runId}`,x=k(function(e,s,t,r){return{$schema:"https://vega.github.io/schema/vega-lite/v5.json",background:"dark"===r?"black":void 0,mark:{type:"bar",cornerRadius:2},params:[{name:M,bind:{element:`#${s}`}},{name:_,select:{type:"point",on:"mouseover",fields:["cell"],clear:"mouseout"}}],height:{step:"above"===t?21:26},encoding:{y:{field:"cellNum",scale:{paddingInner:.2},sort:{field:C},title:"cell",axis:"sideBySide"===t?null:void 0},x:{field:C,type:"temporal",axis:{orient:"top",title:null}},x2:{field:$,type:"temporal"},tooltip:[{field:C,type:"temporal",timeUnit:"hoursminutessecondsmilliseconds",title:"Start"},{field:$,type:"temporal",timeUnit:"hoursminutessecondsmilliseconds",title:"End"}],size:{value:{expr:`${M} == toString(datum.cell) ? 19.5 : 18`}},color:{field:"status",scale:{domain:["success","error"],range:["#37BE5F","red"]},legend:null}},data:{values:e},config:{view:{stroke:"transparent"}}}}(e,h,i,a)),t[1]=u,t[2]=i,t[3]=r.cellRuns,t[4]=r.runId,t[5]=a,t[6]=h,t[7]=x}else h=t[6],x=t[7];const f=x.spec;let g;t[8]!==h||t[9]!==m||t[10]!==r?(g=l.jsx(A,{run:r,hoveredCellId:m,hiddenInputElementId:h}),t[8]=h,t[9]=m,t[10]=r,t[11]=g):g=t[11];const v=g;if("above"===i){let e,s,i;return t[12]!==a||t[13]!==f?(e=l.jsx(q,{vegaSpec:f,height:120,signalListeners:j,theme:a}),t[12]=a,t[13]=f,t[14]=e):e=t[14],t[15]!==e||t[16]!==n||t[17]!==v?(s=l.jsxs("pre",{className:"font-mono font-semibold",children:[n,e,v]}),t[15]=e,t[16]=n,t[17]=v,t[18]=s):s=t[18],t[19]!==r.runId||t[20]!==s?(i=l.jsx("div",{className:"flex flex-col",children:s},r.runId),t[19]=r.runId,t[20]=s,t[21]=i):i=t[21],i}let b,I,S;return t[22]!==n||t[23]!==v?(b=l.jsxs("pre",{className:"font-mono font-semibold",children:[n,v]}),t[22]=n,t[23]=v,t[24]=b):b=t[24],t[25]!==a||t[26]!==f?(I=l.jsx(q,{className:"-mt-0.5 flex-1",vegaSpec:f,height:100,signalListeners:j,theme:a}),t[25]=a,t[26]=f,t[27]=I):I=t[27],t[28]!==r.runId||t[29]!==b||t[30]!==I?(S=l.jsxs("div",{className:"flex flex-row",children:[b,I]},r.runId),t[28]=r.runId,t[29]=b,t[30]=I,t[31]=S):S=t[31],S},A=e=>{const t=s.c(12),{run:r,hoveredCellId:i,hiddenInputElementId:a}=e,n=o.useRef(null);let m;t[0]===Symbol.for("react.memo_cache_sentinel")?(m=e=>{n.current&&(n.current.value=String(e),n.current.dispatchEvent(new Event("input",{bubbles:!0})))},t[0]=m):m=t[0];const p=m,c=i||"";let d,j,u,h;return t[1]!==a||t[2]!==c?(d=l.jsx("input",{type:"text",id:a,defaultValue:c,hidden:!0,ref:n}),t[1]=a,t[2]=c,t[3]=d):d=t[3],t[4]!==r.cellRuns?(j=[...r.cellRuns.values()],t[4]=r.cellRuns,t[5]=j):j=t[5],t[6]!==i||t[7]!==j?(u=j.map((e=>l.jsx(F,{cellRun:e,hovered:e.cellId===i,dispatchHoverEvent:p},e.cellId))),t[6]=i,t[7]=j,t[8]=u):u=t[8],t[9]!==d||t[10]!==u?(h=l.jsxs("div",{className:"text-xs mt-0.5 ml-3 flex flex-col gap-0.5",children:[d,u]}),t[9]=d,t[10]=u,t[11]=h):h=t[11],h},D={success:l.jsx(I,{color:"green",size:14}),running:l.jsx(R,{color:"var(--blue-10)",size:14}),error:l.jsx(f,{color:"red",size:14}),queued:l.jsx(E,{color:"grey",size:14})},F=e=>{const t=s.c(39),{cellRun:r,hovered:i,dispatchHoverEvent:o}=e;let a;t[0]!==r.elapsedTime?(a=r.elapsedTime?y(1e3*r.elapsedTime):"-",t[0]=r.elapsedTime,t[1]=a):a=t[1];const n=a;let m;t[2]!==r.elapsedTime||t[3]!==n?(m=r.elapsedTime?l.jsxs("span",{children:["This cell took ",l.jsx(b,{elapsedTime:n})," to run"]}):l.jsx("span",{children:"This cell has not been run"}),t[2]=r.elapsedTime,t[3]=n,t[4]=m):m=t[4];const c=m;let h;t[5]!==r.cellId||t[6]!==o?(h=()=>{o(r.cellId)},t[5]=r.cellId,t[6]=o,t[7]=h):h=t[7];const x=h;let f;t[8]!==o?(f=()=>{o(null)},t[8]=o,t[9]=f):f=t[9];const g=f,v=i&&"bg-[var(--gray-3)] opacity-100";let I,S,k,N,T,w,R;t[10]!==v?(I=d("flex flex-row gap-2 py-1 px-1 opacity-70 hover:bg-[var(--gray-3)] hover:opacity-100",v),t[10]=v,t[11]=I):I=t[11],t[12]!==r.startTime?(S=p(r.startTime),t[12]=r.startTime,t[13]=S):S=t[13],t[14]!==S?(k=l.jsxs("span",{className:"text-[var(--gray-10)] dark:text-[var(--gray-11)]",children:["[",S,"]"]}),t[14]=S,t[15]=k):k=t[15],t[16]!==r.cellId?(N=l.jsxs("span",{className:"text-[var(--gray-10)] w-16",children:["(",l.jsx(j,{cellId:r.cellId}),")"]}),t[16]=r.cellId,t[17]=N):N=t[17],t[18]!==r.code?(T=l.jsx("span",{className:"w-40 truncate -ml-1",children:r.code}),t[18]=r.code,t[19]=T):T=t[19],t[20]!==n?(w=l.jsx("span",{className:"text-[var(--gray-10)] dark:text-[var(--gray-11)]",children:n}),t[20]=n,t[21]=w):w=t[21],t[22]!==c||t[23]!==w?(R=l.jsx(u,{content:c,children:w}),t[22]=c,t[23]=w,t[24]=R):R=t[24];const E=D[r.status];let M,_,C;return t[25]!==r.status||t[26]!==E?(M=l.jsx(u,{content:r.status,children:E}),t[25]=r.status,t[26]=E,t[27]=M):M=t[27],t[28]!==R||t[29]!==M?(_=l.jsxs("div",{className:"flex flex-row gap-1 w-16 justify-end -ml-2",children:[R,M]}),t[28]=R,t[29]=M,t[30]=_):_=t[30],t[31]!==x||t[32]!==g||t[33]!==T||t[34]!==_||t[35]!==I||t[36]!==k||t[37]!==N?(C=l.jsxs("div",{className:I,onMouseEnter:x,onMouseLeave:g,children:[k,N,T,_]}),t[31]=x,t[32]=g,t[33]=T,t[34]=_,t[35]=I,t[36]=k,t[37]=N,t[38]=C):C=t[38],C};function O(e){try{const s=new Date(1e3*e),t=s.getFullYear(),r=String(s.getMonth()+1).padStart(2,"0"),i=String(s.getDate()).padStart(2,"0"),o=String(s.getHours()).padStart(2,"0"),l=String(s.getMinutes()).padStart(2,"0"),a=String(s.getSeconds()).padStart(2,"0");return`${t}-${r}-${i} ${o}:${l}:${a}.${String(s.getMilliseconds()).padStart(3,"0")}`}catch{return""}}export{L as Tracing,O as formatChartTime};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{ca as e,aI as t,u as n,el as r,R as i,d as o,f6 as s,j as a,bs as l,ac as c,bB as u,dM as d,ap as h,f7 as f,S as p,cx as g,ag as m,f8 as v,eb as y,aj as x,f9 as b,fa as j,bc as w,fb as I,L as S,fc as O,fd as C,fe as k,ff as N,fg as D,ch as E,fh as T,a8 as _,al as P,bw as A,bK as M,fi as R,a2 as L,dI as F,eB as H,a9 as z,a7 as U,fj as q,fk as V,fl as B,fm as W,fn as K,fo as G,fp as $,fq as Y,fr as X,fs as Q,ft as Z,fu as J,di as ee,f0 as te,fv as ne,fw as re,fx as ie,fy as oe,fz as se,fA as ae,aH as le,T as ce,fB as ue,bb as de,fC as he,aJ as fe,e0 as pe,fD as ge,fE as me,bI as ve,fF as ye,fG as xe,fH as be,a0 as je,fI as we,fJ as Ie,a3 as Se,a4 as Oe,a5 as Ce,aE as ke,fK as Ne,fL as De,as as Ee,fM as Te,bt as _e,fN as Pe,fO as Ae,E as Me,fP as Re,fQ as Le,fR as Fe,fS as He,fT as ze,eZ as Ue,fU as qe,fV as Ve,fW as Be,fX as We,fY as Ke,fZ as Ge,f_ as $e,f$ as Ye,g0 as Xe,g1 as Qe,g2 as Ze,g3 as Je,g4 as et,g5 as tt,g6 as nt,bJ as rt,g7 as it,g8 as ot,dG as st,dz as at,bG as lt,g9 as ct,cd as ut,ga as dt,gb as ht,eQ as ft,gc as pt,gd as gt,ge as mt,gf as vt,a1 as yt,gg as xt,gh as bt,gi as jt,gj as wt,gk as It}from"./index-
|
|
1
|
+
import{ca as e,aI as t,u as n,el as r,R as i,d as o,f6 as s,j as a,bs as l,ac as c,bB as u,dM as d,ap as h,f7 as f,S as p,cx as g,ag as m,f8 as v,eb as y,aj as x,f9 as b,fa as j,bc as w,fb as I,L as S,fc as O,fd as C,fe as k,ff as N,fg as D,ch as E,fh as T,a8 as _,al as P,bw as A,bK as M,fi as R,a2 as L,dI as F,eB as H,a9 as z,a7 as U,fj as q,fk as V,fl as B,fm as W,fn as K,fo as G,fp as $,fq as Y,fr as X,fs as Q,ft as Z,fu as J,di as ee,f0 as te,fv as ne,fw as re,fx as ie,fy as oe,fz as se,fA as ae,aH as le,T as ce,fB as ue,bb as de,fC as he,aJ as fe,e0 as pe,fD as ge,fE as me,bI as ve,fF as ye,fG as xe,fH as be,a0 as je,fI as we,fJ as Ie,a3 as Se,a4 as Oe,a5 as Ce,aE as ke,fK as Ne,fL as De,as as Ee,fM as Te,bt as _e,fN as Pe,fO as Ae,E as Me,fP as Re,fQ as Le,fR as Fe,fS as He,fT as ze,eZ as Ue,fU as qe,fV as Ve,fW as Be,fX as We,fY as Ke,fZ as Ge,f_ as $e,f$ as Ye,g0 as Xe,g1 as Qe,g2 as Ze,g3 as Je,g4 as et,g5 as tt,g6 as nt,bJ as rt,g7 as it,g8 as ot,dG as st,dz as at,bG as lt,g9 as ct,cd as ut,ga as dt,gb as ht,eQ as ft,gc as pt,gd as gt,ge as mt,gf as vt,a1 as yt,gg as xt,gh as bt,gi as jt,gj as wt,gk as It}from"./index-D25ZVZoz.js";import{e as St}from"./index-D0xs4wpq.js";
|
|
2
2
|
/**
|
|
3
3
|
* @license lucide-react v0.503.0 - ISC
|
|
4
4
|
*
|