@marimo-team/frontend 0.9.32-dev4 → 0.9.32
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-CvSQsD2I.js → ConnectedDataExplorerComponent-BZicEZpD.js} +1 -1
- package/dist/assets/{VegaLite-CoY8PVjY.js → VegaLite-Brp1jd6O.js} +1 -1
- package/dist/assets/{_baseEach-BrVa27U5.js → _baseEach-Btjn8DWQ.js} +1 -1
- package/dist/assets/_baseMap-CZJGqMAE.js +1 -0
- package/dist/assets/{_baseUniq-K6rkfNxU.js → _baseUniq-D9-gFZgt.js} +1 -1
- package/dist/assets/{any-language-editor-CM5Xb2I5.js → any-language-editor-DhjiD_pY.js} +1 -1
- package/dist/assets/{architectureDiagram-IFBEXTG3-BsZ2qY33.js → architectureDiagram-IFBEXTG3-DYHKAcwQ.js} +1 -1
- package/dist/assets/{blockDiagram-TCMKQVZ6-D_up7-EY.js → blockDiagram-TCMKQVZ6-BRhRnpHa.js} +1 -1
- package/dist/assets/{c4Diagram-ZCSEYPFN-DIfTvavi.js → c4Diagram-ZCSEYPFN-CxFhx4Pe.js} +1 -1
- package/dist/assets/channel-BFbgoyiQ.js +1 -0
- package/dist/assets/{chunk-4LC2V6XN-ZBJTHpvR.js → chunk-4LC2V6XN-twr9qAN4.js} +1 -1
- package/dist/assets/{chunk-5RIWM3LS-B1ZjZO1O.js → chunk-5RIWM3LS-DpGAfyoX.js} +1 -1
- package/dist/assets/{chunk-6JKP7OK7-ZrXR8TZD.js → chunk-6JKP7OK7-gd5CN8Ql.js} +1 -1
- package/dist/assets/{chunk-NGC4727B-CeT4qdsW.js → chunk-NGC4727B-C-WGk4jd.js} +1 -1
- package/dist/assets/{chunk-REEJFE46-BFkEss31.js → chunk-REEJFE46-DCmBKLAT.js} +1 -1
- package/dist/assets/{chunk-RYO7GUH3-CIs-OFIA.js → chunk-RYO7GUH3-DZgG5pzR.js} +1 -1
- package/dist/assets/{chunk-V35ELUW5-DhsPfJc_.js → chunk-V35ELUW5-B31kdcPB.js} +1 -1
- package/dist/assets/{classDiagram-Q73GJZWF-DTqj-riL.js → classDiagram-Q73GJZWF-Bu2i-12t.js} +1 -1
- package/dist/assets/{classDiagram-v2-C6QPLPW4-CgvsAOzr.js → classDiagram-v2-C6QPLPW4-DbJzkdx7.js} +1 -1
- package/dist/assets/clone-fMlCvkIr.js +1 -0
- package/dist/assets/{dagre-7KT5K2WU-D0NZvLLN.js → dagre-7KT5K2WU-C3ZeofBA.js} +1 -1
- package/dist/assets/{data-editor-BR_eNgnp.js → data-editor-B2zX1i7x.js} +1 -1
- package/dist/assets/{diagram-AVGMFHF7-UCJMbbmn.js → diagram-AVGMFHF7-CYHzUVK8.js} +1 -1
- package/dist/assets/{edit-page-u3F1kSfj.js → edit-page-DhHabc66.js} +3 -3
- package/dist/assets/{erDiagram-DKC2X5TE-lflZ6QnO.js → erDiagram-DKC2X5TE-zOYdkM8U.js} +1 -1
- package/dist/assets/{flowDiagram-NWEUNK3L-DXLaS8Sf.js → flowDiagram-NWEUNK3L-BG1zR-J8.js} +1 -1
- package/dist/assets/{ganttDiagram-HLVPPPRE-Cch4jYH7.js → ganttDiagram-HLVPPPRE-DtCB-EgN.js} +1 -1
- package/dist/assets/{gitGraph-YCYPL57B-Dxi9jHKO.js → gitGraph-YCYPL57B-DyIOaep9.js} +1 -1
- package/dist/assets/{gitGraphDiagram-JPZ3KUXI-Bxz6cWeg.js → gitGraphDiagram-JPZ3KUXI-BB6xLRDl.js} +1 -1
- package/dist/assets/{graph-C09v5HKT.js → graph-BoLxAN0w.js} +1 -1
- package/dist/assets/{home-page-Bxl88q8e.js → home-page-BpcBW_5U.js} +1 -1
- package/dist/assets/{index-WWofZ-no.js → index--AzyinYJ.js} +1 -1
- package/dist/assets/{index-DrEZnCPF.js → index-B5HXyZID.js} +1 -1
- package/dist/assets/{index-BC4Vuo4o.js → index-BJDlJXRX.js} +1 -1
- package/dist/assets/{index-DxbtMx9C.js → index-BV1aY2a1.js} +1 -1
- package/dist/assets/{index-CVY9p_xb.js → index-BV4BeI1Z.js} +1 -1
- package/dist/assets/{index-B_qeTNuj.js → index-BZq0qi_s.js} +4 -4
- package/dist/assets/{index-DZHzDXxK.js → index-BaP69CaL.js} +1 -1
- package/dist/assets/{index-BHMZiZko.js → index-C7AF2-cN.js} +1 -1
- package/dist/assets/{index-DKw8DBFI.js → index-C8DcziyG.js} +1 -1
- package/dist/assets/{index-BFhsUDfd.js → index-CQu6QLjz.js} +1 -1
- package/dist/assets/{index-vic_--wH.js → index-CcWyA184.js} +1 -1
- package/dist/assets/{index-CIaShiO4.js → index-CigCr3W7.js} +1 -1
- package/dist/assets/{index-BdGze-xt.js → index-Dv_eSiyb.js} +1 -1
- package/dist/assets/{index-DWkV2snP.js → index-HeAf4AJd.js} +1 -1
- package/dist/assets/{index-C-pyWefW.js → index-atoDB6Sw.js} +1 -1
- package/dist/assets/{index-D98g--9M.js → index-fvps7Uon.js} +1 -1
- package/dist/assets/{index-vOFh9lMd.js → index-mxaqwke-.js} +1 -1
- package/dist/assets/{infoDiagram-RZZSJVI2-RIkzDntB.js → infoDiagram-RZZSJVI2-CYyaP20P.js} +1 -1
- package/dist/assets/{journeyDiagram-BLD6N6MZ-CYxOMPuI.js → journeyDiagram-BLD6N6MZ-DiuX_bIE.js} +1 -1
- package/dist/assets/{json-DGwUU0t8.js → json-D1QdIx2s.js} +1 -1
- package/dist/assets/{layout-NmYNL-zW.js → layout-fN-MXPWn.js} +1 -1
- package/dist/assets/{linear-XwuxSpnz.js → linear-UFUi_4jR.js} +1 -1
- package/dist/assets/{mermaid-B9T_t1VS.js → mermaid-iClmPwlt.js} +3 -3
- package/dist/assets/{min-DbQvJmPK.js → min-B5iTRMOH.js} +1 -1
- package/dist/assets/{mindmap-definition-OEB2RXX2-DIflNLwC.js → mindmap-definition-OEB2RXX2-Bfkp8XgN.js} +1 -1
- package/dist/assets/{pieDiagram-X7YZ5ZEZ-kJjFXChG.js → pieDiagram-X7YZ5ZEZ-c85_b74l.js} +1 -1
- package/dist/assets/{quadrantDiagram-F36EZAVT--sYjmvyN.js → quadrantDiagram-F36EZAVT-BwBjMXL9.js} +1 -1
- package/dist/assets/{react-plotly-dsUy-5hX.js → react-plotly-BiW-aNSI.js} +1 -1
- package/dist/assets/{requirementDiagram-JG2LMPGF-MV4TnkN1.js → requirementDiagram-JG2LMPGF-DvfMQdYN.js} +1 -1
- package/dist/assets/{run-page-0eXhE3nn.js → run-page-lMqxhlQg.js} +1 -1
- package/dist/assets/{sankeyDiagram-ATFNWWW6-CzpnA5xh.js → sankeyDiagram-ATFNWWW6-BlXRSK6U.js} +1 -1
- package/dist/assets/{sequenceDiagram-WK7YDQ3N-BR2bJmYR.js → sequenceDiagram-WK7YDQ3N-BoVF0CIk.js} +1 -1
- package/dist/assets/{slides-component-w3inGIm3.js → slides-component-BKd1_7mR.js} +1 -1
- package/dist/assets/{sortBy-BBpd73Mc.js → sortBy-SuQIXsW7.js} +1 -1
- package/dist/assets/{stateDiagram-4JV6CC6H-Db92ulGt.js → stateDiagram-4JV6CC6H-TDt6NjOy.js} +1 -1
- package/dist/assets/stateDiagram-v2-7KT6RKTD-fRktv2HU.js +1 -0
- package/dist/assets/{terminal-B-yEGq3_.js → terminal-Bdm-1u01.js} +1 -1
- package/dist/assets/{time-DO_1UimG.js → time-BPXogejC.js} +1 -1
- package/dist/assets/{timeline-definition-3ZMEY6HS-nqTITc4K.js → timeline-definition-3ZMEY6HS-CghX89UE.js} +1 -1
- package/dist/assets/{transform-A2OerWfD.js → transform-BShWnqc2.js} +1 -1
- package/dist/assets/{tree-DX5VzemZ.js → tree-DAWUsQaV.js} +1 -1
- package/dist/assets/{useMarimoWebSocket-D7x0KF1A.js → useMarimoWebSocket-WEzrwsbC.js} +3 -3
- package/dist/assets/{vega-component-JoScgTw6.js → vega-component-CxVsQtUg.js} +1 -1
- package/dist/assets/{xychartDiagram-KECQ2H5Q-CAfXcvM2.js → xychartDiagram-KECQ2H5Q-DnGNtSy8.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/_baseMap-DO4Mg8_f.js +0 -1
- package/dist/assets/channel-Bunxyl92.js +0 -1
- package/dist/assets/clone-B4p58Lq1.js +0 -1
- package/dist/assets/stateDiagram-v2-7KT6RKTD-B-okZ2hv.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-CK-RIWfW.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-CK-RIWfW.js";import{c as o,a as u}from"./linear-UFUi_4jR.js";import{i as c}from"./init-DLRA0X12.js";import{aw as l,ax as f,ay as h,az as p,aA as y,aB as w,aC as v,aD as b,aE as g,aF as m,aG as d,aH as M,aI as N,aJ as D,aK as I,aL as j,aM as k,aN as x,aO as P,aP as A,aQ as B,aR as C,aS as F,aT as L}from"./index-BZq0qi_s.js";function R(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 S(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 q(t,n,a,r,i,e){const s=[[v,1,b],[v,5,5*b],[v,15,15*b],[v,30,30*b],[e,1,g],[e,5,5*g],[e,15,15*g],[e,30,30*g],[i,1,m],[i,3,3*m],[i,6,6*m],[i,12,12*m],[r,1,d],[r,2,2*d],[a,1,M],[n,1,N],[n,3,3*N],[t,1,h]];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(f(n/h,a/h,r));if(0===e)return p.every(Math.max(f(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[z,E]=q(y,x,k,j,I,D),[G,H]=q(w,F,C,B,A,P),J=Math.PI/180,K=180/Math.PI,O=.96422,Q=.82521,T=4/29,Y=6/29,U=3*Y*Y,V=Y*Y*Y;function W(a){if(a instanceof Z)return new Z(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=$((.2225045*e+.7168786*s+.0606169*o)/1);return e===s&&s===o?r=i=u:(r=$((.4360747*e+.3850649*s+.1430804*o)/O),i=$((.0139322*e+.0971045*s+.7141733*o)/Q)),new Z(116*u-16,500*(r-u),200*(u-i),a.opacity)}function X(t,n,a,r){return 1===arguments.length?W(t):new Z(t,n,a,null==r?1:r)}function Z(t,n,a,r){this.l=+t,this.a=+n,this.b=+a,this.opacity=+r}function $(t){return t>V?Math.pow(t,1/3):t/U+T}function _(t){return t>Y?t*t*t:U*(t-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 Z||(t=W(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)*K;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 Z(t.l,0,0,t.opacity);var n=t.h*J;return new Z(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(Z,X,r(i,{brighter(t){return new Z(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker(t){return new Z(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=O*_(a),n=1*_(n),r=Q*_(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,y=h.domain,w=f(".%L"),v=f(":%S"),b=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?w:c(t)<t?v:s(t)<t?b: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?y(Array.from(t,lt)):y().map(ct)},h.ticks=function(n){var a=y();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=y();return t&&"function"==typeof t.range||(t=n(a[0],a[a.length-1],null==t?10:t)),t?y(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(G,H,w,F,C,B,A,P,v,L).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}export{R as a,z as b,ft as c,K as d,at as e,ot as h,st as i,X as l,S as m,ut as n,J as r,ht as t,E as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as t,a0 as e,a1 as n,t as i,d as s,l as r,P as a,a2 as o,a3 as c,a4 as l}from"./mermaid-B9T_t1VS.js";import{s as h}from"./transform-A2OerWfD.js";import{d}from"./arc-lt4NHaVr.js";import"./index-B_qeTNuj.js";import"./step-CNn2V7Th.js";import"./timer-CK-RIWfW.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={};e(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((()=>n),"getCommonDb"),_=t((function(){m.length=0,x.length=0,g="",b.length=0,i()}),"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"),P=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"),j=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,P(e,n)}),"drawLabel"),L=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:L,drawText:P,drawLabel:j,drawTask:O,drawBackgroundRect:R,getTextObj:D,getNoteRect:z,initGraphics:F,drawNode:V,getVirtualNodeHeight:G},X=t((function(t,e,n,i){var o,c;const l=s(),d=l.leftMargin??50;r.debug("timeline",i.db);const u=l.securityLevel;let p;"sandbox"===u&&(p=h("#i"+e));const y=h("sandbox"===u?p.nodes()[0].contentDocument.body:"body").select("#"+e);y.append("g");const g=i.db.getTasks(),f=i.db.getCommonDb().getDiagramTitle();r.debug("task",g),U.initGraphics(y);const m=i.db.getSections();r.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},n=U.getVirtualNodeHeight(y,e,l);r.debug("sectionHeight before draw",n),x=Math.max(x,n+20)}));let E=0,T=0;r.debug("tasks.length",g.length);for(const[s,a]of g.entries()){const t={number:s,descr:a,section:a.section,width:150,padding:20,maxHeight:b},e=U.getVirtualNodeHeight(y,t,l);r.debug("taskHeight before draw",e),b=Math.max(b,e+20),E=Math.max(E,a.events.length);let n=0;for(const i of a.events){const t={descr:i,section:a.section,number:a.section,width:150,padding:20,maxHeight:50};n+=U.getVirtualNodeHeight(y,t,l)}T=Math.max(T,n)}r.debug("maxSectionHeight before draw",x),r.debug("maxTaskHeight before draw",b),m&&m.length>0?m.forEach((t=>{const e=g.filter((e=>e.section===t)),n={number:S,descr:t,section:S,width:200*Math.max(e.length,1)-50,padding:20,maxHeight:x};r.debug("sectionNode",n);const i=y.append("g"),s=U.drawNode(i,n,S,l);r.debug("sectionNode output",s),i.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();r.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)"),a(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,n,i,s,a,o,c,l,h,d){var u;for(const p of e){const e={descr:p.task,section:n,number:n,width:150,padding:20,maxHeight:a};r.debug("taskNode",e);const c=t.append("g").attr("class","taskWrapper"),y=U.drawNode(c,e,n,o).height;if(r.debug("taskHeight after draw",y),c.attr("transform",`translate(${i}, ${s})`),a=Math.max(a,y),p.events){const e=t.append("g").attr("class","lineWrapper");let r=a;s+=100,r+=Z(t,p.events,n,i,s,o),s-=100,e.append("line").attr("x1",i+95).attr("y1",s+a).attr("x2",i+95).attr("y2",s+a+(d?a:h)+l+120).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5")}i+=200,d&&!(null==(u=o.timeline)?void 0:u.disableMulticolor)&&n++}s-=10}),"drawTasks"),Z=t((function(t,e,n,i,s,a){let o=0;const c=s;s+=100;for(const l of e){const e={descr:l,section:n,number:n,width:150,padding:20,maxHeight:50};r.debug("eventNode",e);const c=t.append("g").attr("class","eventWrapper"),h=U.drawNode(c,e,n,a).height;o+=h,c.attr("transform",`translate(${i}, ${s})`),s=s+10+h}return s=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],o(t["lineColor"+n])?t["lineColor"+n]=c(t["lineColor"+n],20):t["lineColor"+n]=l(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,a0 as e,a1 as n,t as i,d as s,l as r,P as a,a2 as o,a3 as c,a4 as l}from"./mermaid-iClmPwlt.js";import{s as h}from"./transform-BShWnqc2.js";import{d}from"./arc-lt4NHaVr.js";import"./index-BZq0qi_s.js";import"./step-CNn2V7Th.js";import"./timer-CK-RIWfW.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={};e(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((()=>n),"getCommonDb"),_=t((function(){m.length=0,x.length=0,g="",b.length=0,i()}),"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"),P=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"),j=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,P(e,n)}),"drawLabel"),L=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:L,drawText:P,drawLabel:j,drawTask:O,drawBackgroundRect:R,getTextObj:D,getNoteRect:z,initGraphics:F,drawNode:V,getVirtualNodeHeight:G},X=t((function(t,e,n,i){var o,c;const l=s(),d=l.leftMargin??50;r.debug("timeline",i.db);const u=l.securityLevel;let p;"sandbox"===u&&(p=h("#i"+e));const y=h("sandbox"===u?p.nodes()[0].contentDocument.body:"body").select("#"+e);y.append("g");const g=i.db.getTasks(),f=i.db.getCommonDb().getDiagramTitle();r.debug("task",g),U.initGraphics(y);const m=i.db.getSections();r.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},n=U.getVirtualNodeHeight(y,e,l);r.debug("sectionHeight before draw",n),x=Math.max(x,n+20)}));let E=0,T=0;r.debug("tasks.length",g.length);for(const[s,a]of g.entries()){const t={number:s,descr:a,section:a.section,width:150,padding:20,maxHeight:b},e=U.getVirtualNodeHeight(y,t,l);r.debug("taskHeight before draw",e),b=Math.max(b,e+20),E=Math.max(E,a.events.length);let n=0;for(const i of a.events){const t={descr:i,section:a.section,number:a.section,width:150,padding:20,maxHeight:50};n+=U.getVirtualNodeHeight(y,t,l)}T=Math.max(T,n)}r.debug("maxSectionHeight before draw",x),r.debug("maxTaskHeight before draw",b),m&&m.length>0?m.forEach((t=>{const e=g.filter((e=>e.section===t)),n={number:S,descr:t,section:S,width:200*Math.max(e.length,1)-50,padding:20,maxHeight:x};r.debug("sectionNode",n);const i=y.append("g"),s=U.drawNode(i,n,S,l);r.debug("sectionNode output",s),i.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();r.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)"),a(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,n,i,s,a,o,c,l,h,d){var u;for(const p of e){const e={descr:p.task,section:n,number:n,width:150,padding:20,maxHeight:a};r.debug("taskNode",e);const c=t.append("g").attr("class","taskWrapper"),y=U.drawNode(c,e,n,o).height;if(r.debug("taskHeight after draw",y),c.attr("transform",`translate(${i}, ${s})`),a=Math.max(a,y),p.events){const e=t.append("g").attr("class","lineWrapper");let r=a;s+=100,r+=Z(t,p.events,n,i,s,o),s-=100,e.append("line").attr("x1",i+95).attr("y1",s+a).attr("x2",i+95).attr("y2",s+a+(d?a:h)+l+120).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5")}i+=200,d&&!(null==(u=o.timeline)?void 0:u.disableMulticolor)&&n++}s-=10}),"drawTasks"),Z=t((function(t,e,n,i,s,a){let o=0;const c=s;s+=100;for(const l of e){const e={descr:l,section:n,number:n,width:150,padding:20,maxHeight:50};r.debug("eventNode",e);const c=t.append("g").attr("class","eventWrapper"),h=U.drawNode(c,e,n,a).height;o+=h,c.attr("transform",`translate(${i}, ${s})`),s=s+10+h}return s=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],o(t["lineColor"+n])?t["lineColor"+n]=c(t["lineColor"+n],20):t["lineColor"+n]=l(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 +1 @@
|
|
|
1
|
-
import{cB as t,cC as n,ad as e}from"./index-B_qeTNuj.js";import{T as r,g as i,t as o,i as u,a,b as s,f as l,j as c,k as f,l as h}from"./timer-CK-RIWfW.js";function p(r,i){return t(n(r,i,e),r+"")}var _=function(t,n,e){for(var r=-1,i=Object(t),o=e(t),u=o.length;u--;){var a=o[++r];if(!1===n(i[a],a,i))break}return t},v="http://www.w3.org/1999/xhtml";const d={svg:"http://www.w3.org/2000/svg",xhtml:v,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function y(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),d.hasOwnProperty(n)?{space:d[n],local:t}:t}function m(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===v&&n.documentElement.namespaceURI===v?n.createElement(t):n.createElementNS(e,t)}}function g(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function w(t){var n=y(t);return(n.local?g:m)(n)}function A(){}function x(t){return null==t?A:function(){return this.querySelector(t)}}function b(){return[]}function E(t){return null==t?b:function(){return this.querySelectorAll(t)}}function S(t){return function(){return null==(n=t.apply(this,arguments))?[]:Array.isArray(n)?n:Array.from(n);var n}}function N(t){return function(){return this.matches(t)}}function C(t){return function(n){return n.matches(t)}}var k=Array.prototype.find;function P(){return this.firstElementChild}var T=Array.prototype.filter;function L(){return Array.from(this.children)}function B(t){return new Array(t.length)}function j(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}function M(t,n,e,r,i,o){for(var u,a=0,s=n.length,l=o.length;a<l;++a)(u=n[a])?(u.__data__=o[a],r[a]=u):e[a]=new j(t,o[a]);for(;a<s;++a)(u=n[a])&&(i[a]=u)}function O(t,n,e,r,i,o,u){var a,s,l,c=new Map,f=n.length,h=o.length,p=new Array(f);for(a=0;a<f;++a)(s=n[a])&&(p[a]=l=u.call(s,s.__data__,a,n)+"",c.has(l)?i[a]=s:c.set(l,s));for(a=0;a<h;++a)l=u.call(t,o[a],a,o)+"",(s=c.get(l))?(r[a]=s,s.__data__=o[a],c.delete(l)):e[a]=new j(t,o[a]);for(a=0;a<f;++a)(s=n[a])&&c.get(p[a])===s&&(i[a]=s)}function q(t){return t.__data__}function D(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function V(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function X(t){return function(){this.removeAttribute(t)}}function z(t){return function(){this.removeAttributeNS(t.space,t.local)}}function H(t,n){return function(){this.setAttribute(t,n)}}function I(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function R(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function U(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function Y(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function $(t){return function(){this.style.removeProperty(t)}}function F(t,n,e){return function(){this.style.setProperty(t,n,e)}}function G(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}function J(t,n){return t.style.getPropertyValue(n)||Y(t).getComputedStyle(t,null).getPropertyValue(n)}function K(t){return function(){delete this[t]}}function Q(t,n){return function(){this[t]=n}}function W(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function Z(t){return t.trim().split(/^|\s+/)}function tt(t){return t.classList||new nt(t)}function nt(t){this._node=t,this._names=Z(t.getAttribute("class")||"")}function et(t,n){for(var e=tt(t),r=-1,i=n.length;++r<i;)e.add(n[r])}function rt(t,n){for(var e=tt(t),r=-1,i=n.length;++r<i;)e.remove(n[r])}function it(t){return function(){et(this,t)}}function ot(t){return function(){rt(this,t)}}function ut(t,n){return function(){(n.apply(this,arguments)?et:rt)(this,t)}}function at(){this.textContent=""}function st(t){return function(){this.textContent=t}}function lt(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}function ct(){this.innerHTML=""}function ft(t){return function(){this.innerHTML=t}}function ht(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}function pt(){this.nextSibling&&this.parentNode.appendChild(this)}function _t(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function vt(){return null}function dt(){var t=this.parentNode;t&&t.removeChild(this)}function yt(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function mt(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function gt(t){return function(){var n=this.__on;if(n){for(var e,r=0,i=-1,o=n.length;r<o;++r)e=n[r],t.type&&e.type!==t.type||e.name!==t.name?n[++i]=e:this.removeEventListener(e.type,e.listener,e.options);++i?n.length=i:delete this.__on}}}function wt(t,n,e){return function(){var r,i=this.__on,o=function(t){return function(n){t.call(this,n,this.__data__)}}(n);if(i)for(var u=0,a=i.length;u<a;++u)if((r=i[u]).type===t.type&&r.name===t.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=e),void(r.value=n);this.addEventListener(t.type,o,e),r={type:t.type,name:t.name,value:n,listener:o,options:e},i?i.push(r):this.__on=[r]}}function At(t,n,e){var r=Y(t),i=r.CustomEvent;"function"==typeof i?i=new i(n,e):(i=r.document.createEvent("Event"),e?(i.initEvent(n,e.bubbles,e.cancelable),i.detail=e.detail):i.initEvent(n,!1,!1)),t.dispatchEvent(i)}function xt(t,n){return function(){return At(this,t,n)}}function bt(t,n){return function(){return At(this,t,n.apply(this,arguments))}}j.prototype={constructor:j,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}},nt.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Et=[null];function St(t,n){this._groups=t,this._parents=n}function Nt(){return new St([[document.documentElement]],Et)}function Ct(t){return"string"==typeof t?new St([[document.querySelector(t)]],[document.documentElement]):new St([[t]],Et)}function kt(t,n,e){var i=new r;return n=null==n?0:+n,i.restart((e=>{i.stop(),t(e+n)}),n,e),i}St.prototype=Nt.prototype={constructor:St,select:function(t){"function"!=typeof t&&(t=x(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,u,a=n[i],s=a.length,l=r[i]=new Array(s),c=0;c<s;++c)(o=a[c])&&(u=t.call(o,o.__data__,c,a))&&("__data__"in o&&(u.__data__=o.__data__),l[c]=u);return new St(r,this._parents)},selectAll:function(t){t="function"==typeof t?S(t):E(t);for(var n=this._groups,e=n.length,r=[],i=[],o=0;o<e;++o)for(var u,a=n[o],s=a.length,l=0;l<s;++l)(u=a[l])&&(r.push(t.call(u,u.__data__,l,a)),i.push(u));return new St(r,i)},selectChild:function(t){return this.select(null==t?P:function(t){return function(){return k.call(this.children,t)}}("function"==typeof t?t:C(t)))},selectChildren:function(t){return this.selectAll(null==t?L:function(t){return function(){return T.call(this.children,t)}}("function"==typeof t?t:C(t)))},filter:function(t){"function"!=typeof t&&(t=N(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,u=n[i],a=u.length,s=r[i]=[],l=0;l<a;++l)(o=u[l])&&t.call(o,o.__data__,l,u)&&s.push(o);return new St(r,this._parents)},data:function(t,n){if(!arguments.length)return Array.from(this,q);var e,r=n?O:M,i=this._parents,o=this._groups;"function"!=typeof t&&(e=t,t=function(){return e});for(var u=o.length,a=new Array(u),s=new Array(u),l=new Array(u),c=0;c<u;++c){var f=i[c],h=o[c],p=h.length,_=D(t.call(f,f&&f.__data__,c,i)),v=_.length,d=s[c]=new Array(v),y=a[c]=new Array(v);r(f,h,d,y,l[c]=new Array(p),_,n);for(var m,g,w=0,A=0;w<v;++w)if(m=d[w]){for(w>=A&&(A=w+1);!(g=y[A])&&++A<v;);m._next=g||null}}return(a=new St(a,i))._enter=s,a._exit=l,a},enter:function(){return new St(this._enter||this._groups.map(B),this._parents)},exit:function(){return new St(this._exit||this._groups.map(B),this._parents)},join:function(t,n,e){var r=this.enter(),i=this,o=this.exit();return"function"==typeof t?(r=t(r))&&(r=r.selection()):r=r.append(t+""),null!=n&&(i=n(i))&&(i=i.selection()),null==e?o.remove():e(o),r&&i?r.merge(i).order():i},merge:function(t){for(var n=t.selection?t.selection():t,e=this._groups,r=n._groups,i=e.length,o=r.length,u=Math.min(i,o),a=new Array(i),s=0;s<u;++s)for(var l,c=e[s],f=r[s],h=c.length,p=a[s]=new Array(h),_=0;_<h;++_)(l=c[_]||f[_])&&(p[_]=l);for(;s<i;++s)a[s]=e[s];return new St(a,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,n=-1,e=t.length;++n<e;)for(var r,i=t[n],o=i.length-1,u=i[o];--o>=0;)(r=i[o])&&(u&&4^r.compareDocumentPosition(u)&&u.parentNode.insertBefore(r,u),u=r);return this},sort:function(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=V);for(var e=this._groups,r=e.length,i=new Array(r),o=0;o<r;++o){for(var u,a=e[o],s=a.length,l=i[o]=new Array(s),c=0;c<s;++c)(u=a[c])&&(l[c]=u);l.sort(n)}return new St(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r=t[n],i=0,o=r.length;i<o;++i){var u=r[i];if(u)return u}return null},size:function(){let t=0;for(const n of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var n=this._groups,e=0,r=n.length;e<r;++e)for(var i,o=n[e],u=0,a=o.length;u<a;++u)(i=o[u])&&t.call(i,i.__data__,u,o);return this},attr:function(t,n){var e=y(t);if(arguments.length<2){var r=this.node();return e.local?r.getAttributeNS(e.space,e.local):r.getAttribute(e)}return this.each((null==n?e.local?z:X:"function"==typeof n?e.local?U:R:e.local?I:H)(e,n))},style:function(t,n,e){return arguments.length>1?this.each((null==n?$:"function"==typeof n?G:F)(t,n,null==e?"":e)):J(this.node(),t)},property:function(t,n){return arguments.length>1?this.each((null==n?K:"function"==typeof n?W:Q)(t,n)):this.node()[t]},classed:function(t,n){var e=Z(t+"");if(arguments.length<2){for(var r=tt(this.node()),i=-1,o=e.length;++i<o;)if(!r.contains(e[i]))return!1;return!0}return this.each(("function"==typeof n?ut:n?it:ot)(e,n))},text:function(t){return arguments.length?this.each(null==t?at:("function"==typeof t?lt:st)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?ct:("function"==typeof t?ht:ft)(t)):this.node().innerHTML},raise:function(){return this.each(pt)},lower:function(){return this.each(_t)},append:function(t){var n="function"==typeof t?t:w(t);return this.select((function(){return this.appendChild(n.apply(this,arguments))}))},insert:function(t,n){var e="function"==typeof t?t:w(t),r=null==n?vt:"function"==typeof n?n:x(n);return this.select((function(){return this.insertBefore(e.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(dt)},clone:function(t){return this.select(t?mt:yt)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,n,e){var r,i,o=function(t){return t.trim().split(/^|\s+/).map((function(t){var n="",e=t.indexOf(".");return e>=0&&(n=t.slice(e+1),t=t.slice(0,e)),{type:t,name:n}}))}(t+""),u=o.length;if(!(arguments.length<2)){for(a=n?wt:gt,r=0;r<u;++r)this.each(a(o[r],n,e));return this}var a=this.node().__on;if(a)for(var s,l=0,c=a.length;l<c;++l)for(r=0,s=a[l];r<u;++r)if((i=o[r]).type===s.type&&i.name===s.name)return s.value},dispatch:function(t,n){return this.each(("function"==typeof n?bt:xt)(t,n))},[Symbol.iterator]:function*(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r,i=t[n],o=0,u=i.length;o<u;++o)(r=i[o])&&(yield r)}};var Pt=i("start","end","cancel","interrupt"),Tt=[];function Lt(t,n,e,r,i,u){var a=t.__transition;if(a){if(e in a)return}else t.__transition={};!function(t,n,e){var r,i=t.__transition;function u(t){e.state=1,e.timer.restart(a,e.delay,e.time),e.delay<=t&&a(t-e.delay)}function a(o){var u,c,f,h;if(1!==e.state)return l();for(u in i)if((h=i[u]).name===e.name){if(3===h.state)return kt(a);4===h.state?(h.state=6,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete i[u]):+u<n&&(h.state=6,h.timer.stop(),h.on.call("cancel",t,t.__data__,h.index,h.group),delete i[u])}if(kt((function(){3===e.state&&(e.state=4,e.timer.restart(s,e.delay,e.time),s(o))})),e.state=2,e.on.call("start",t,t.__data__,e.index,e.group),2===e.state){for(e.state=3,r=new Array(f=e.tween.length),u=0,c=-1;u<f;++u)(h=e.tween[u].value.call(t,t.__data__,e.index,e.group))&&(r[++c]=h);r.length=c+1}}function s(n){for(var i=n<e.duration?e.ease.call(null,n/e.duration):(e.timer.restart(l),e.state=5,1),o=-1,u=r.length;++o<u;)r[o].call(t,i);5===e.state&&(e.on.call("end",t,t.__data__,e.index,e.group),l())}function l(){for(var r in e.state=6,e.timer.stop(),delete i[n],i)return;delete t.__transition}i[n]=e,e.timer=o(u,0,e.time)}(t,e,{name:n,index:r,group:i,on:Pt,tween:Tt,time:u.time,delay:u.delay,duration:u.duration,ease:u.ease,timer:null,state:0})}function Bt(t,n){var e=Mt(t,n);if(e.state>0)throw new Error("too late; already scheduled");return e}function jt(t,n){var e=Mt(t,n);if(e.state>3)throw new Error("too late; already running");return e}function Mt(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}function Ot(t,n){var e,r,i,o=t.__transition,u=!0;if(o){for(i in n=null==n?null:n+"",o)(e=o[i]).name===n?(r=e.state>2&&e.state<5,e.state=6,e.timer.stop(),e.on.call(r?"interrupt":"cancel",t,t.__data__,e.index,e.group),delete o[i]):u=!1;u&&delete t.__transition}}function qt(t,n){var e,r;return function(){var i=jt(this,t),o=i.tween;if(o!==e)for(var u=0,a=(r=e=o).length;u<a;++u)if(r[u].name===n){(r=r.slice()).splice(u,1);break}i.tween=r}}function Dt(t,n,e){var r,i;if("function"!=typeof e)throw new Error;return function(){var o=jt(this,t),u=o.tween;if(u!==r){i=(r=u).slice();for(var a={name:n,value:e},s=0,l=i.length;s<l;++s)if(i[s].name===n){i[s]=a;break}s===l&&i.push(a)}o.tween=i}}function Vt(t,n,e){var r=t._id;return t.each((function(){var t=jt(this,r);(t.value||(t.value={}))[n]=e.apply(this,arguments)})),function(t){return Mt(t,r).value[n]}}function Xt(t,n){var e;return("number"==typeof n?u:n instanceof a?s:(e=a(n))?(n=e,s):l)(t,n)}function zt(t){return function(){this.removeAttribute(t)}}function Ht(t){return function(){this.removeAttributeNS(t.space,t.local)}}function It(t,n,e){var r,i,o=e+"";return function(){var u=this.getAttribute(t);return u===o?null:u===r?i:i=n(r=u,e)}}function Rt(t,n,e){var r,i,o=e+"";return function(){var u=this.getAttributeNS(t.space,t.local);return u===o?null:u===r?i:i=n(r=u,e)}}function Ut(t,n,e){var r,i,o;return function(){var u,a,s=e(this);if(null!=s)return(u=this.getAttribute(t))===(a=s+"")?null:u===r&&a===i?o:(i=a,o=n(r=u,s));this.removeAttribute(t)}}function Yt(t,n,e){var r,i,o;return function(){var u,a,s=e(this);if(null!=s)return(u=this.getAttributeNS(t.space,t.local))===(a=s+"")?null:u===r&&a===i?o:(i=a,o=n(r=u,s));this.removeAttributeNS(t.space,t.local)}}function $t(t,n){var e,r;function i(){var i=n.apply(this,arguments);return i!==r&&(e=(r=i)&&function(t,n){return function(e){this.setAttributeNS(t.space,t.local,n.call(this,e))}}(t,i)),e}return i._value=n,i}function Ft(t,n){var e,r;function i(){var i=n.apply(this,arguments);return i!==r&&(e=(r=i)&&function(t,n){return function(e){this.setAttribute(t,n.call(this,e))}}(t,i)),e}return i._value=n,i}function Gt(t,n){return function(){Bt(this,t).delay=+n.apply(this,arguments)}}function Jt(t,n){return n=+n,function(){Bt(this,t).delay=n}}function Kt(t,n){return function(){jt(this,t).duration=+n.apply(this,arguments)}}function Qt(t,n){return n=+n,function(){jt(this,t).duration=n}}var Wt=Nt.prototype.constructor;function Zt(t){return function(){this.style.removeProperty(t)}}var tn=0;function nn(t,n,e,r){this._groups=t,this._parents=n,this._name=e,this._id=r}function en(){return++tn}var rn=Nt.prototype;nn.prototype={constructor:nn,select:function(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=x(t));for(var r=this._groups,i=r.length,o=new Array(i),u=0;u<i;++u)for(var a,s,l=r[u],c=l.length,f=o[u]=new Array(c),h=0;h<c;++h)(a=l[h])&&(s=t.call(a,a.__data__,h,l))&&("__data__"in a&&(s.__data__=a.__data__),f[h]=s,Lt(f[h],n,e,h,f,Mt(a,e)));return new nn(o,this._parents,n,e)},selectAll:function(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=E(t));for(var r=this._groups,i=r.length,o=[],u=[],a=0;a<i;++a)for(var s,l=r[a],c=l.length,f=0;f<c;++f)if(s=l[f]){for(var h,p=t.call(s,s.__data__,f,l),_=Mt(s,e),v=0,d=p.length;v<d;++v)(h=p[v])&&Lt(h,n,e,v,p,_);o.push(p),u.push(s)}return new nn(o,u,n,e)},selectChild:rn.selectChild,selectChildren:rn.selectChildren,filter:function(t){"function"!=typeof t&&(t=N(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,u=n[i],a=u.length,s=r[i]=[],l=0;l<a;++l)(o=u[l])&&t.call(o,o.__data__,l,u)&&s.push(o);return new nn(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var n=this._groups,e=t._groups,r=n.length,i=e.length,o=Math.min(r,i),u=new Array(r),a=0;a<o;++a)for(var s,l=n[a],c=e[a],f=l.length,h=u[a]=new Array(f),p=0;p<f;++p)(s=l[p]||c[p])&&(h[p]=s);for(;a<r;++a)u[a]=n[a];return new nn(u,this._parents,this._name,this._id)},selection:function(){return new Wt(this._groups,this._parents)},transition:function(){for(var t=this._name,n=this._id,e=en(),r=this._groups,i=r.length,o=0;o<i;++o)for(var u,a=r[o],s=a.length,l=0;l<s;++l)if(u=a[l]){var c=Mt(u,n);Lt(u,t,e,l,a,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new nn(r,this._parents,t,e)},call:rn.call,nodes:rn.nodes,node:rn.node,size:rn.size,empty:rn.empty,each:rn.each,on:function(t,n){var e=this._id;return arguments.length<2?Mt(this.node(),e).on.on(t):this.each(function(t,n,e){var r,i,o=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||"start"===t}))}(n)?Bt:jt;return function(){var u=o(this,t),a=u.on;a!==r&&(i=(r=a).copy()).on(n,e),u.on=i}}(e,t,n))},attr:function(t,n){var e=y(t),r="transform"===e?c:Xt;return this.attrTween(t,"function"==typeof n?(e.local?Yt:Ut)(e,r,Vt(this,"attr."+t,n)):null==n?(e.local?Ht:zt)(e):(e.local?Rt:It)(e,r,n))},attrTween:function(t,n){var e="attr."+t;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(null==n)return this.tween(e,null);if("function"!=typeof n)throw new Error;var r=y(t);return this.tween(e,(r.local?$t:Ft)(r,n))},style:function(t,n,e){var r="transform"==(t+="")?f:Xt;return null==n?this.styleTween(t,function(t,n){var e,r,i;return function(){var o=J(this,t),u=(this.style.removeProperty(t),J(this,t));return o===u?null:o===e&&u===r?i:i=n(e=o,r=u)}}(t,r)).on("end.style."+t,Zt(t)):"function"==typeof n?this.styleTween(t,function(t,n,e){var r,i,o;return function(){var u=J(this,t),a=e(this),s=a+"";return null==a&&(this.style.removeProperty(t),s=a=J(this,t)),u===s?null:u===r&&s===i?o:(i=s,o=n(r=u,a))}}(t,r,Vt(this,"style."+t,n))).each(function(t,n){var e,r,i,o,u="style."+n,a="end."+u;return function(){var s=jt(this,t),l=s.on,c=null==s.value[u]?o||(o=Zt(n)):void 0;l===e&&i===c||(r=(e=l).copy()).on(a,i=c),s.on=r}}(this._id,t)):this.styleTween(t,function(t,n,e){var r,i,o=e+"";return function(){var u=J(this,t);return u===o?null:u===r?i:i=n(r=u,e)}}(t,r,n),e).on("end.style."+t,null)},styleTween:function(t,n,e){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==n)return this.tween(r,null);if("function"!=typeof n)throw new Error;return this.tween(r,function(t,n,e){var r,i;function o(){var o=n.apply(this,arguments);return o!==i&&(r=(i=o)&&function(t,n,e){return function(r){this.style.setProperty(t,n.call(this,r),e)}}(t,o,e)),r}return o._value=n,o}(t,n,null==e?"":e))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var n=t(this);this.textContent=null==n?"":n}}(Vt(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;return this.tween(n,function(t){var n,e;function r(){var r=t.apply(this,arguments);return r!==e&&(n=(e=r)&&function(t){return function(n){this.textContent=t.call(this,n)}}(r)),n}return r._value=t,r}(t))},remove:function(){return this.on("end.remove",(t=this._id,function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}));var t},tween:function(t,n){var e=this._id;if(t+="",arguments.length<2){for(var r,i=Mt(this.node(),e).tween,o=0,u=i.length;o<u;++o)if((r=i[o]).name===t)return r.value;return null}return this.each((null==n?qt:Dt)(e,t,n))},delay:function(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?Gt:Jt)(n,t)):Mt(this.node(),n).delay},duration:function(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?Kt:Qt)(n,t)):Mt(this.node(),n).duration},ease:function(t){var n=this._id;return arguments.length?this.each(function(t,n){if("function"!=typeof n)throw new Error;return function(){jt(this,t).ease=n}}(n,t)):Mt(this.node(),n).ease},easeVarying:function(t){if("function"!=typeof t)throw new Error;return this.each(function(t,n){return function(){var e=n.apply(this,arguments);if("function"!=typeof e)throw new Error;jt(this,t).ease=e}}(this._id,t))},end:function(){var t,n,e=this,r=e._id,i=e.size();return new Promise((function(o,u){var a={value:u},s={value:function(){0==--i&&o()}};e.each((function(){var e=jt(this,r),i=e.on;i!==t&&((n=(t=i).copy())._.cancel.push(a),n._.interrupt.push(a),n._.end.push(s)),e.on=n})),0===i&&o()}))},[Symbol.iterator]:rn[Symbol.iterator]};var on={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function un(t,n){for(var e;!(e=t.__transition)||!(e=e[n]);)if(!(t=t.parentNode))throw new Error(`transition ${n} not found`);return e}function an(t,n,e){this.k=t,this.x=n,this.y=e}Nt.prototype.interrupt=function(t){return this.each((function(){Ot(this,t)}))},Nt.prototype.transition=function(t){var n,e;t instanceof nn?(n=t._id,t=t._name):(n=en(),(e=on).time=h(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var u,a=r[o],s=a.length,l=0;l<s;++l)(u=a[l])&&Lt(u,t,n,l,a,e||un(u,n));return new nn(r,this._parents,t,n)},an.prototype={constructor:an,scale:function(t){return 1===t?this:new an(this.k*t,this.x,this.y)},translate:function(t,n){return 0===t&0===n?this:new an(this.k,this.x+this.k*t,this.y+this.k*n)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var sn=new an(1,0,0);an.prototype;export{an as T,_ as a,p as b,Ot as c,sn as i,Ct as s};
|
|
1
|
+
import{cB as t,cC as n,ad as e}from"./index-BZq0qi_s.js";import{T as r,g as i,t as o,i as u,a,b as s,f as l,j as c,k as f,l as h}from"./timer-CK-RIWfW.js";function p(r,i){return t(n(r,i,e),r+"")}var _=function(t,n,e){for(var r=-1,i=Object(t),o=e(t),u=o.length;u--;){var a=o[++r];if(!1===n(i[a],a,i))break}return t},v="http://www.w3.org/1999/xhtml";const d={svg:"http://www.w3.org/2000/svg",xhtml:v,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function y(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),d.hasOwnProperty(n)?{space:d[n],local:t}:t}function m(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===v&&n.documentElement.namespaceURI===v?n.createElement(t):n.createElementNS(e,t)}}function g(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function w(t){var n=y(t);return(n.local?g:m)(n)}function A(){}function x(t){return null==t?A:function(){return this.querySelector(t)}}function b(){return[]}function E(t){return null==t?b:function(){return this.querySelectorAll(t)}}function S(t){return function(){return null==(n=t.apply(this,arguments))?[]:Array.isArray(n)?n:Array.from(n);var n}}function N(t){return function(){return this.matches(t)}}function C(t){return function(n){return n.matches(t)}}var k=Array.prototype.find;function P(){return this.firstElementChild}var T=Array.prototype.filter;function L(){return Array.from(this.children)}function B(t){return new Array(t.length)}function j(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}function M(t,n,e,r,i,o){for(var u,a=0,s=n.length,l=o.length;a<l;++a)(u=n[a])?(u.__data__=o[a],r[a]=u):e[a]=new j(t,o[a]);for(;a<s;++a)(u=n[a])&&(i[a]=u)}function O(t,n,e,r,i,o,u){var a,s,l,c=new Map,f=n.length,h=o.length,p=new Array(f);for(a=0;a<f;++a)(s=n[a])&&(p[a]=l=u.call(s,s.__data__,a,n)+"",c.has(l)?i[a]=s:c.set(l,s));for(a=0;a<h;++a)l=u.call(t,o[a],a,o)+"",(s=c.get(l))?(r[a]=s,s.__data__=o[a],c.delete(l)):e[a]=new j(t,o[a]);for(a=0;a<f;++a)(s=n[a])&&c.get(p[a])===s&&(i[a]=s)}function q(t){return t.__data__}function D(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function V(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function X(t){return function(){this.removeAttribute(t)}}function z(t){return function(){this.removeAttributeNS(t.space,t.local)}}function H(t,n){return function(){this.setAttribute(t,n)}}function I(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function R(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function U(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function Y(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function $(t){return function(){this.style.removeProperty(t)}}function F(t,n,e){return function(){this.style.setProperty(t,n,e)}}function G(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}function J(t,n){return t.style.getPropertyValue(n)||Y(t).getComputedStyle(t,null).getPropertyValue(n)}function K(t){return function(){delete this[t]}}function Q(t,n){return function(){this[t]=n}}function W(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function Z(t){return t.trim().split(/^|\s+/)}function tt(t){return t.classList||new nt(t)}function nt(t){this._node=t,this._names=Z(t.getAttribute("class")||"")}function et(t,n){for(var e=tt(t),r=-1,i=n.length;++r<i;)e.add(n[r])}function rt(t,n){for(var e=tt(t),r=-1,i=n.length;++r<i;)e.remove(n[r])}function it(t){return function(){et(this,t)}}function ot(t){return function(){rt(this,t)}}function ut(t,n){return function(){(n.apply(this,arguments)?et:rt)(this,t)}}function at(){this.textContent=""}function st(t){return function(){this.textContent=t}}function lt(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}function ct(){this.innerHTML=""}function ft(t){return function(){this.innerHTML=t}}function ht(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}function pt(){this.nextSibling&&this.parentNode.appendChild(this)}function _t(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function vt(){return null}function dt(){var t=this.parentNode;t&&t.removeChild(this)}function yt(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function mt(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function gt(t){return function(){var n=this.__on;if(n){for(var e,r=0,i=-1,o=n.length;r<o;++r)e=n[r],t.type&&e.type!==t.type||e.name!==t.name?n[++i]=e:this.removeEventListener(e.type,e.listener,e.options);++i?n.length=i:delete this.__on}}}function wt(t,n,e){return function(){var r,i=this.__on,o=function(t){return function(n){t.call(this,n,this.__data__)}}(n);if(i)for(var u=0,a=i.length;u<a;++u)if((r=i[u]).type===t.type&&r.name===t.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=e),void(r.value=n);this.addEventListener(t.type,o,e),r={type:t.type,name:t.name,value:n,listener:o,options:e},i?i.push(r):this.__on=[r]}}function At(t,n,e){var r=Y(t),i=r.CustomEvent;"function"==typeof i?i=new i(n,e):(i=r.document.createEvent("Event"),e?(i.initEvent(n,e.bubbles,e.cancelable),i.detail=e.detail):i.initEvent(n,!1,!1)),t.dispatchEvent(i)}function xt(t,n){return function(){return At(this,t,n)}}function bt(t,n){return function(){return At(this,t,n.apply(this,arguments))}}j.prototype={constructor:j,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}},nt.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Et=[null];function St(t,n){this._groups=t,this._parents=n}function Nt(){return new St([[document.documentElement]],Et)}function Ct(t){return"string"==typeof t?new St([[document.querySelector(t)]],[document.documentElement]):new St([[t]],Et)}function kt(t,n,e){var i=new r;return n=null==n?0:+n,i.restart((e=>{i.stop(),t(e+n)}),n,e),i}St.prototype=Nt.prototype={constructor:St,select:function(t){"function"!=typeof t&&(t=x(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,u,a=n[i],s=a.length,l=r[i]=new Array(s),c=0;c<s;++c)(o=a[c])&&(u=t.call(o,o.__data__,c,a))&&("__data__"in o&&(u.__data__=o.__data__),l[c]=u);return new St(r,this._parents)},selectAll:function(t){t="function"==typeof t?S(t):E(t);for(var n=this._groups,e=n.length,r=[],i=[],o=0;o<e;++o)for(var u,a=n[o],s=a.length,l=0;l<s;++l)(u=a[l])&&(r.push(t.call(u,u.__data__,l,a)),i.push(u));return new St(r,i)},selectChild:function(t){return this.select(null==t?P:function(t){return function(){return k.call(this.children,t)}}("function"==typeof t?t:C(t)))},selectChildren:function(t){return this.selectAll(null==t?L:function(t){return function(){return T.call(this.children,t)}}("function"==typeof t?t:C(t)))},filter:function(t){"function"!=typeof t&&(t=N(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,u=n[i],a=u.length,s=r[i]=[],l=0;l<a;++l)(o=u[l])&&t.call(o,o.__data__,l,u)&&s.push(o);return new St(r,this._parents)},data:function(t,n){if(!arguments.length)return Array.from(this,q);var e,r=n?O:M,i=this._parents,o=this._groups;"function"!=typeof t&&(e=t,t=function(){return e});for(var u=o.length,a=new Array(u),s=new Array(u),l=new Array(u),c=0;c<u;++c){var f=i[c],h=o[c],p=h.length,_=D(t.call(f,f&&f.__data__,c,i)),v=_.length,d=s[c]=new Array(v),y=a[c]=new Array(v);r(f,h,d,y,l[c]=new Array(p),_,n);for(var m,g,w=0,A=0;w<v;++w)if(m=d[w]){for(w>=A&&(A=w+1);!(g=y[A])&&++A<v;);m._next=g||null}}return(a=new St(a,i))._enter=s,a._exit=l,a},enter:function(){return new St(this._enter||this._groups.map(B),this._parents)},exit:function(){return new St(this._exit||this._groups.map(B),this._parents)},join:function(t,n,e){var r=this.enter(),i=this,o=this.exit();return"function"==typeof t?(r=t(r))&&(r=r.selection()):r=r.append(t+""),null!=n&&(i=n(i))&&(i=i.selection()),null==e?o.remove():e(o),r&&i?r.merge(i).order():i},merge:function(t){for(var n=t.selection?t.selection():t,e=this._groups,r=n._groups,i=e.length,o=r.length,u=Math.min(i,o),a=new Array(i),s=0;s<u;++s)for(var l,c=e[s],f=r[s],h=c.length,p=a[s]=new Array(h),_=0;_<h;++_)(l=c[_]||f[_])&&(p[_]=l);for(;s<i;++s)a[s]=e[s];return new St(a,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,n=-1,e=t.length;++n<e;)for(var r,i=t[n],o=i.length-1,u=i[o];--o>=0;)(r=i[o])&&(u&&4^r.compareDocumentPosition(u)&&u.parentNode.insertBefore(r,u),u=r);return this},sort:function(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=V);for(var e=this._groups,r=e.length,i=new Array(r),o=0;o<r;++o){for(var u,a=e[o],s=a.length,l=i[o]=new Array(s),c=0;c<s;++c)(u=a[c])&&(l[c]=u);l.sort(n)}return new St(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r=t[n],i=0,o=r.length;i<o;++i){var u=r[i];if(u)return u}return null},size:function(){let t=0;for(const n of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var n=this._groups,e=0,r=n.length;e<r;++e)for(var i,o=n[e],u=0,a=o.length;u<a;++u)(i=o[u])&&t.call(i,i.__data__,u,o);return this},attr:function(t,n){var e=y(t);if(arguments.length<2){var r=this.node();return e.local?r.getAttributeNS(e.space,e.local):r.getAttribute(e)}return this.each((null==n?e.local?z:X:"function"==typeof n?e.local?U:R:e.local?I:H)(e,n))},style:function(t,n,e){return arguments.length>1?this.each((null==n?$:"function"==typeof n?G:F)(t,n,null==e?"":e)):J(this.node(),t)},property:function(t,n){return arguments.length>1?this.each((null==n?K:"function"==typeof n?W:Q)(t,n)):this.node()[t]},classed:function(t,n){var e=Z(t+"");if(arguments.length<2){for(var r=tt(this.node()),i=-1,o=e.length;++i<o;)if(!r.contains(e[i]))return!1;return!0}return this.each(("function"==typeof n?ut:n?it:ot)(e,n))},text:function(t){return arguments.length?this.each(null==t?at:("function"==typeof t?lt:st)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?ct:("function"==typeof t?ht:ft)(t)):this.node().innerHTML},raise:function(){return this.each(pt)},lower:function(){return this.each(_t)},append:function(t){var n="function"==typeof t?t:w(t);return this.select((function(){return this.appendChild(n.apply(this,arguments))}))},insert:function(t,n){var e="function"==typeof t?t:w(t),r=null==n?vt:"function"==typeof n?n:x(n);return this.select((function(){return this.insertBefore(e.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(dt)},clone:function(t){return this.select(t?mt:yt)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,n,e){var r,i,o=function(t){return t.trim().split(/^|\s+/).map((function(t){var n="",e=t.indexOf(".");return e>=0&&(n=t.slice(e+1),t=t.slice(0,e)),{type:t,name:n}}))}(t+""),u=o.length;if(!(arguments.length<2)){for(a=n?wt:gt,r=0;r<u;++r)this.each(a(o[r],n,e));return this}var a=this.node().__on;if(a)for(var s,l=0,c=a.length;l<c;++l)for(r=0,s=a[l];r<u;++r)if((i=o[r]).type===s.type&&i.name===s.name)return s.value},dispatch:function(t,n){return this.each(("function"==typeof n?bt:xt)(t,n))},[Symbol.iterator]:function*(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r,i=t[n],o=0,u=i.length;o<u;++o)(r=i[o])&&(yield r)}};var Pt=i("start","end","cancel","interrupt"),Tt=[];function Lt(t,n,e,r,i,u){var a=t.__transition;if(a){if(e in a)return}else t.__transition={};!function(t,n,e){var r,i=t.__transition;function u(t){e.state=1,e.timer.restart(a,e.delay,e.time),e.delay<=t&&a(t-e.delay)}function a(o){var u,c,f,h;if(1!==e.state)return l();for(u in i)if((h=i[u]).name===e.name){if(3===h.state)return kt(a);4===h.state?(h.state=6,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete i[u]):+u<n&&(h.state=6,h.timer.stop(),h.on.call("cancel",t,t.__data__,h.index,h.group),delete i[u])}if(kt((function(){3===e.state&&(e.state=4,e.timer.restart(s,e.delay,e.time),s(o))})),e.state=2,e.on.call("start",t,t.__data__,e.index,e.group),2===e.state){for(e.state=3,r=new Array(f=e.tween.length),u=0,c=-1;u<f;++u)(h=e.tween[u].value.call(t,t.__data__,e.index,e.group))&&(r[++c]=h);r.length=c+1}}function s(n){for(var i=n<e.duration?e.ease.call(null,n/e.duration):(e.timer.restart(l),e.state=5,1),o=-1,u=r.length;++o<u;)r[o].call(t,i);5===e.state&&(e.on.call("end",t,t.__data__,e.index,e.group),l())}function l(){for(var r in e.state=6,e.timer.stop(),delete i[n],i)return;delete t.__transition}i[n]=e,e.timer=o(u,0,e.time)}(t,e,{name:n,index:r,group:i,on:Pt,tween:Tt,time:u.time,delay:u.delay,duration:u.duration,ease:u.ease,timer:null,state:0})}function Bt(t,n){var e=Mt(t,n);if(e.state>0)throw new Error("too late; already scheduled");return e}function jt(t,n){var e=Mt(t,n);if(e.state>3)throw new Error("too late; already running");return e}function Mt(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}function Ot(t,n){var e,r,i,o=t.__transition,u=!0;if(o){for(i in n=null==n?null:n+"",o)(e=o[i]).name===n?(r=e.state>2&&e.state<5,e.state=6,e.timer.stop(),e.on.call(r?"interrupt":"cancel",t,t.__data__,e.index,e.group),delete o[i]):u=!1;u&&delete t.__transition}}function qt(t,n){var e,r;return function(){var i=jt(this,t),o=i.tween;if(o!==e)for(var u=0,a=(r=e=o).length;u<a;++u)if(r[u].name===n){(r=r.slice()).splice(u,1);break}i.tween=r}}function Dt(t,n,e){var r,i;if("function"!=typeof e)throw new Error;return function(){var o=jt(this,t),u=o.tween;if(u!==r){i=(r=u).slice();for(var a={name:n,value:e},s=0,l=i.length;s<l;++s)if(i[s].name===n){i[s]=a;break}s===l&&i.push(a)}o.tween=i}}function Vt(t,n,e){var r=t._id;return t.each((function(){var t=jt(this,r);(t.value||(t.value={}))[n]=e.apply(this,arguments)})),function(t){return Mt(t,r).value[n]}}function Xt(t,n){var e;return("number"==typeof n?u:n instanceof a?s:(e=a(n))?(n=e,s):l)(t,n)}function zt(t){return function(){this.removeAttribute(t)}}function Ht(t){return function(){this.removeAttributeNS(t.space,t.local)}}function It(t,n,e){var r,i,o=e+"";return function(){var u=this.getAttribute(t);return u===o?null:u===r?i:i=n(r=u,e)}}function Rt(t,n,e){var r,i,o=e+"";return function(){var u=this.getAttributeNS(t.space,t.local);return u===o?null:u===r?i:i=n(r=u,e)}}function Ut(t,n,e){var r,i,o;return function(){var u,a,s=e(this);if(null!=s)return(u=this.getAttribute(t))===(a=s+"")?null:u===r&&a===i?o:(i=a,o=n(r=u,s));this.removeAttribute(t)}}function Yt(t,n,e){var r,i,o;return function(){var u,a,s=e(this);if(null!=s)return(u=this.getAttributeNS(t.space,t.local))===(a=s+"")?null:u===r&&a===i?o:(i=a,o=n(r=u,s));this.removeAttributeNS(t.space,t.local)}}function $t(t,n){var e,r;function i(){var i=n.apply(this,arguments);return i!==r&&(e=(r=i)&&function(t,n){return function(e){this.setAttributeNS(t.space,t.local,n.call(this,e))}}(t,i)),e}return i._value=n,i}function Ft(t,n){var e,r;function i(){var i=n.apply(this,arguments);return i!==r&&(e=(r=i)&&function(t,n){return function(e){this.setAttribute(t,n.call(this,e))}}(t,i)),e}return i._value=n,i}function Gt(t,n){return function(){Bt(this,t).delay=+n.apply(this,arguments)}}function Jt(t,n){return n=+n,function(){Bt(this,t).delay=n}}function Kt(t,n){return function(){jt(this,t).duration=+n.apply(this,arguments)}}function Qt(t,n){return n=+n,function(){jt(this,t).duration=n}}var Wt=Nt.prototype.constructor;function Zt(t){return function(){this.style.removeProperty(t)}}var tn=0;function nn(t,n,e,r){this._groups=t,this._parents=n,this._name=e,this._id=r}function en(){return++tn}var rn=Nt.prototype;nn.prototype={constructor:nn,select:function(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=x(t));for(var r=this._groups,i=r.length,o=new Array(i),u=0;u<i;++u)for(var a,s,l=r[u],c=l.length,f=o[u]=new Array(c),h=0;h<c;++h)(a=l[h])&&(s=t.call(a,a.__data__,h,l))&&("__data__"in a&&(s.__data__=a.__data__),f[h]=s,Lt(f[h],n,e,h,f,Mt(a,e)));return new nn(o,this._parents,n,e)},selectAll:function(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=E(t));for(var r=this._groups,i=r.length,o=[],u=[],a=0;a<i;++a)for(var s,l=r[a],c=l.length,f=0;f<c;++f)if(s=l[f]){for(var h,p=t.call(s,s.__data__,f,l),_=Mt(s,e),v=0,d=p.length;v<d;++v)(h=p[v])&&Lt(h,n,e,v,p,_);o.push(p),u.push(s)}return new nn(o,u,n,e)},selectChild:rn.selectChild,selectChildren:rn.selectChildren,filter:function(t){"function"!=typeof t&&(t=N(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,u=n[i],a=u.length,s=r[i]=[],l=0;l<a;++l)(o=u[l])&&t.call(o,o.__data__,l,u)&&s.push(o);return new nn(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var n=this._groups,e=t._groups,r=n.length,i=e.length,o=Math.min(r,i),u=new Array(r),a=0;a<o;++a)for(var s,l=n[a],c=e[a],f=l.length,h=u[a]=new Array(f),p=0;p<f;++p)(s=l[p]||c[p])&&(h[p]=s);for(;a<r;++a)u[a]=n[a];return new nn(u,this._parents,this._name,this._id)},selection:function(){return new Wt(this._groups,this._parents)},transition:function(){for(var t=this._name,n=this._id,e=en(),r=this._groups,i=r.length,o=0;o<i;++o)for(var u,a=r[o],s=a.length,l=0;l<s;++l)if(u=a[l]){var c=Mt(u,n);Lt(u,t,e,l,a,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new nn(r,this._parents,t,e)},call:rn.call,nodes:rn.nodes,node:rn.node,size:rn.size,empty:rn.empty,each:rn.each,on:function(t,n){var e=this._id;return arguments.length<2?Mt(this.node(),e).on.on(t):this.each(function(t,n,e){var r,i,o=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||"start"===t}))}(n)?Bt:jt;return function(){var u=o(this,t),a=u.on;a!==r&&(i=(r=a).copy()).on(n,e),u.on=i}}(e,t,n))},attr:function(t,n){var e=y(t),r="transform"===e?c:Xt;return this.attrTween(t,"function"==typeof n?(e.local?Yt:Ut)(e,r,Vt(this,"attr."+t,n)):null==n?(e.local?Ht:zt)(e):(e.local?Rt:It)(e,r,n))},attrTween:function(t,n){var e="attr."+t;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(null==n)return this.tween(e,null);if("function"!=typeof n)throw new Error;var r=y(t);return this.tween(e,(r.local?$t:Ft)(r,n))},style:function(t,n,e){var r="transform"==(t+="")?f:Xt;return null==n?this.styleTween(t,function(t,n){var e,r,i;return function(){var o=J(this,t),u=(this.style.removeProperty(t),J(this,t));return o===u?null:o===e&&u===r?i:i=n(e=o,r=u)}}(t,r)).on("end.style."+t,Zt(t)):"function"==typeof n?this.styleTween(t,function(t,n,e){var r,i,o;return function(){var u=J(this,t),a=e(this),s=a+"";return null==a&&(this.style.removeProperty(t),s=a=J(this,t)),u===s?null:u===r&&s===i?o:(i=s,o=n(r=u,a))}}(t,r,Vt(this,"style."+t,n))).each(function(t,n){var e,r,i,o,u="style."+n,a="end."+u;return function(){var s=jt(this,t),l=s.on,c=null==s.value[u]?o||(o=Zt(n)):void 0;l===e&&i===c||(r=(e=l).copy()).on(a,i=c),s.on=r}}(this._id,t)):this.styleTween(t,function(t,n,e){var r,i,o=e+"";return function(){var u=J(this,t);return u===o?null:u===r?i:i=n(r=u,e)}}(t,r,n),e).on("end.style."+t,null)},styleTween:function(t,n,e){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==n)return this.tween(r,null);if("function"!=typeof n)throw new Error;return this.tween(r,function(t,n,e){var r,i;function o(){var o=n.apply(this,arguments);return o!==i&&(r=(i=o)&&function(t,n,e){return function(r){this.style.setProperty(t,n.call(this,r),e)}}(t,o,e)),r}return o._value=n,o}(t,n,null==e?"":e))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var n=t(this);this.textContent=null==n?"":n}}(Vt(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;return this.tween(n,function(t){var n,e;function r(){var r=t.apply(this,arguments);return r!==e&&(n=(e=r)&&function(t){return function(n){this.textContent=t.call(this,n)}}(r)),n}return r._value=t,r}(t))},remove:function(){return this.on("end.remove",(t=this._id,function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}));var t},tween:function(t,n){var e=this._id;if(t+="",arguments.length<2){for(var r,i=Mt(this.node(),e).tween,o=0,u=i.length;o<u;++o)if((r=i[o]).name===t)return r.value;return null}return this.each((null==n?qt:Dt)(e,t,n))},delay:function(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?Gt:Jt)(n,t)):Mt(this.node(),n).delay},duration:function(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?Kt:Qt)(n,t)):Mt(this.node(),n).duration},ease:function(t){var n=this._id;return arguments.length?this.each(function(t,n){if("function"!=typeof n)throw new Error;return function(){jt(this,t).ease=n}}(n,t)):Mt(this.node(),n).ease},easeVarying:function(t){if("function"!=typeof t)throw new Error;return this.each(function(t,n){return function(){var e=n.apply(this,arguments);if("function"!=typeof e)throw new Error;jt(this,t).ease=e}}(this._id,t))},end:function(){var t,n,e=this,r=e._id,i=e.size();return new Promise((function(o,u){var a={value:u},s={value:function(){0==--i&&o()}};e.each((function(){var e=jt(this,r),i=e.on;i!==t&&((n=(t=i).copy())._.cancel.push(a),n._.interrupt.push(a),n._.end.push(s)),e.on=n})),0===i&&o()}))},[Symbol.iterator]:rn[Symbol.iterator]};var on={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function un(t,n){for(var e;!(e=t.__transition)||!(e=e[n]);)if(!(t=t.parentNode))throw new Error(`transition ${n} not found`);return e}function an(t,n,e){this.k=t,this.x=n,this.y=e}Nt.prototype.interrupt=function(t){return this.each((function(){Ot(this,t)}))},Nt.prototype.transition=function(t){var n,e;t instanceof nn?(n=t._id,t=t._name):(n=en(),(e=on).time=h(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var u,a=r[o],s=a.length,l=0;l<s;++l)(u=a[l])&&Lt(u,t,n,l,a,e||un(u,n));return new nn(r,this._parents,t,n)},an.prototype={constructor:an,scale:function(t){return 1===t?this:new an(this.k*t,this.x,this.y)},translate:function(t,n){return 0===t&0===n?this:new an(this.k,this.x+this.k*t,this.y+this.k*n)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var sn=new an(1,0,0);an.prototype;export{an as T,_ as a,p as b,Ot as c,sn as i,Ct as s};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b0 as e,b$ as t,am as n,dE as r,R as o,D as i,es as s,K as a,by as c,bE as l,cZ as u,at as d,et as f,G as h,cd as p,a7 as g,b2 as m,dX as v,dr as y,eu as b,ev as w,ew as x,av as T,cQ as D,ex as S,ey as O,ez as R,eA as j,eB as C,eC as N,eD as k,ar as P,eE as E,b6 as I,bq as _,cV as M,W as q,dO as A,a1 as L,$ as F,a0 as H,eF as W,eG as U,eH as B,eI as z,eJ as $,eK as V,eL as K,eM as G,d6 as J,e7 as Y,eN as X,eO as Z,eP as Q,eQ as ee,H as te,b9 as ne,al as re,eR as oe,b1 as ie,eS as se,as as ae,dj as ce,eT as le,bo as ue,eU as de,eV as fe,eW as he,U as pe,eX as ge,eY as me,X as ve,Y as ye,Z as be,eZ as we,e_ as xe,e$ as Te,dl as De,f0 as Se,f1 as Oe,f2 as Re,f3 as je,f4 as Ce,f5 as Ne,f6 as ke,f7 as Pe,bp as Ee,f8 as Ie,f9 as _e,fa as Me,fb as qe,fc as Ae,fd as Le,cS as Fe,fe as He,ff as We,d$ as Ue,fg as Be,fh as ze,fi as $e,fj as Ve,V as Ke,fk as Ge,fl as Je,fm as Ye,fn as Xe,fo as Ze}from"./index-
|
|
1
|
+
import{b0 as e,b$ as t,am as n,dE as r,R as o,D as i,es as s,K as a,by as c,bE as l,cZ as u,at as d,et as f,G as h,cd as p,a7 as g,b2 as m,dX as v,dr as y,eu as b,ev as w,ew as x,av as T,cQ as D,ex as S,ey as O,ez as R,eA as j,eB as C,eC as N,eD as k,ar as P,eE as E,b6 as I,bq as _,cV as M,W as q,dO as A,a1 as L,$ as F,a0 as H,eF as W,eG as U,eH as B,eI as z,eJ as $,eK as V,eL as K,eM as G,d6 as J,e7 as Y,eN as X,eO as Z,eP as Q,eQ as ee,H as te,b9 as ne,al as re,eR as oe,b1 as ie,eS as se,as as ae,dj as ce,eT as le,bo as ue,eU as de,eV as fe,eW as he,U as pe,eX as ge,eY as me,X as ve,Y as ye,Z as be,eZ as we,e_ as xe,e$ as Te,dl as De,f0 as Se,f1 as Oe,f2 as Re,f3 as je,f4 as Ce,f5 as Ne,f6 as ke,f7 as Pe,bp as Ee,f8 as Ie,f9 as _e,fa as Me,fb as qe,fc as Ae,fd as Le,cS as Fe,fe as He,ff as We,d$ as Ue,fg as Be,fh as ze,fi as $e,fj as Ve,V as Ke,fk as Ge,fl as Je,fm as Ye,fn as Xe,fo as Ze}from"./index-BZq0qi_s.js";import{i as Qe,c as et,r as tt,e as nt,m as rt}from"./main-cdvIQCIX.js";import{e as ot}from"./index-HeAf4AJd.js";
|
|
2
2
|
/**
|
|
3
3
|
* @license lucide-react v0.428.0 - ISC
|
|
4
4
|
*
|