@copilotkitnext/react 0.0.22-alpha.7 → 0.0.22-alpha.8
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/package.json +4 -4
- package/dist/KaTeX_AMS-Regular-CYEKBG2K.woff +0 -0
- package/dist/KaTeX_AMS-Regular-JKX5W2C4.ttf +0 -0
- package/dist/KaTeX_AMS-Regular-U6PRYMIZ.woff2 +0 -0
- package/dist/KaTeX_Caligraphic-Bold-5QL5CMTE.woff2 +0 -0
- package/dist/KaTeX_Caligraphic-Bold-WZ3QSGD3.woff +0 -0
- package/dist/KaTeX_Caligraphic-Bold-ZTS3R3HK.ttf +0 -0
- package/dist/KaTeX_Caligraphic-Regular-3LKEU76G.woff +0 -0
- package/dist/KaTeX_Caligraphic-Regular-A7XRTZ5Q.ttf +0 -0
- package/dist/KaTeX_Caligraphic-Regular-KX5MEWCF.woff2 +0 -0
- package/dist/KaTeX_Fraktur-Bold-2QVFK6NQ.woff2 +0 -0
- package/dist/KaTeX_Fraktur-Bold-T4SWXBMT.woff +0 -0
- package/dist/KaTeX_Fraktur-Bold-WGHVTYOR.ttf +0 -0
- package/dist/KaTeX_Fraktur-Regular-2PEIFJSJ.woff2 +0 -0
- package/dist/KaTeX_Fraktur-Regular-5U4OPH2X.ttf +0 -0
- package/dist/KaTeX_Fraktur-Regular-PQMHCIK6.woff +0 -0
- package/dist/KaTeX_Main-Bold-2GA4IZIN.woff +0 -0
- package/dist/KaTeX_Main-Bold-W5FBVCZM.ttf +0 -0
- package/dist/KaTeX_Main-Bold-YP5VVQRP.woff2 +0 -0
- package/dist/KaTeX_Main-BoldItalic-4P4C7HJH.woff +0 -0
- package/dist/KaTeX_Main-BoldItalic-N4V3DX7S.woff2 +0 -0
- package/dist/KaTeX_Main-BoldItalic-ODMLBJJQ.ttf +0 -0
- package/dist/KaTeX_Main-Italic-I43T2HSR.ttf +0 -0
- package/dist/KaTeX_Main-Italic-RELBIK7M.woff2 +0 -0
- package/dist/KaTeX_Main-Italic-SASNQFN2.woff +0 -0
- package/dist/KaTeX_Main-Regular-ARRPAO67.woff2 +0 -0
- package/dist/KaTeX_Main-Regular-P5I74A2A.woff +0 -0
- package/dist/KaTeX_Main-Regular-W74P5G27.ttf +0 -0
- package/dist/KaTeX_Math-BoldItalic-6EBV3DK5.woff +0 -0
- package/dist/KaTeX_Math-BoldItalic-K4WTGH3J.woff2 +0 -0
- package/dist/KaTeX_Math-BoldItalic-VB447A4D.ttf +0 -0
- package/dist/KaTeX_Math-Italic-6KGCHLFN.woff2 +0 -0
- package/dist/KaTeX_Math-Italic-KKK3USB2.woff +0 -0
- package/dist/KaTeX_Math-Italic-SON4MRCA.ttf +0 -0
- package/dist/KaTeX_SansSerif-Bold-RRNVJFFW.woff2 +0 -0
- package/dist/KaTeX_SansSerif-Bold-STQ6RXC7.ttf +0 -0
- package/dist/KaTeX_SansSerif-Bold-X5M5EMOD.woff +0 -0
- package/dist/KaTeX_SansSerif-Italic-HMPFTM52.woff2 +0 -0
- package/dist/KaTeX_SansSerif-Italic-PSN4QKYX.woff +0 -0
- package/dist/KaTeX_SansSerif-Italic-WTBAZBGY.ttf +0 -0
- package/dist/KaTeX_SansSerif-Regular-2TL3USAE.ttf +0 -0
- package/dist/KaTeX_SansSerif-Regular-OQCII6EP.woff +0 -0
- package/dist/KaTeX_SansSerif-Regular-XIQ62X4E.woff2 +0 -0
- package/dist/KaTeX_Script-Regular-72OLXYNA.ttf +0 -0
- package/dist/KaTeX_Script-Regular-A5IFOEBS.woff +0 -0
- package/dist/KaTeX_Script-Regular-APUWIHLP.woff2 +0 -0
- package/dist/KaTeX_Size1-Regular-4HRHTS65.woff +0 -0
- package/dist/KaTeX_Size1-Regular-5LRUTBFT.woff2 +0 -0
- package/dist/KaTeX_Size1-Regular-7K6AASVL.ttf +0 -0
- package/dist/KaTeX_Size2-Regular-222HN3GT.ttf +0 -0
- package/dist/KaTeX_Size2-Regular-K5ZHAIS6.woff +0 -0
- package/dist/KaTeX_Size2-Regular-LELKET5D.woff2 +0 -0
- package/dist/KaTeX_Size3-Regular-TLFPAHDE.woff +0 -0
- package/dist/KaTeX_Size3-Regular-UFCO6WCA.ttf +0 -0
- package/dist/KaTeX_Size3-Regular-WQRQ47UD.woff2 +0 -0
- package/dist/KaTeX_Size4-Regular-7PGNVPQK.ttf +0 -0
- package/dist/KaTeX_Size4-Regular-CDMV7U5C.woff2 +0 -0
- package/dist/KaTeX_Size4-Regular-PKMWZHNC.woff +0 -0
- package/dist/KaTeX_Typewriter-Regular-3F5K6SQ6.ttf +0 -0
- package/dist/KaTeX_Typewriter-Regular-MJMFSK64.woff +0 -0
- package/dist/KaTeX_Typewriter-Regular-VBYJ4NRC.woff2 +0 -0
- package/dist/angular-html-LD6QEAZE.mjs +0 -7
- package/dist/angular-html-LD6QEAZE.mjs.map +0 -1
- package/dist/angular-ts-FGK7I2F5.mjs +0 -37
- package/dist/angular-ts-FGK7I2F5.mjs.map +0 -1
- package/dist/angular-ts-XZTE5LQS.mjs +0 -37
- package/dist/angular-ts-XZTE5LQS.mjs.map +0 -1
- package/dist/apl-VB2EG5RZ.mjs +0 -22
- package/dist/apl-VB2EG5RZ.mjs.map +0 -1
- package/dist/architectureDiagram-VXUJARFQ-PPLKSFYC.mjs +0 -8712
- package/dist/architectureDiagram-VXUJARFQ-PPLKSFYC.mjs.map +0 -1
- package/dist/blade-EZDWULER.mjs +0 -26
- package/dist/blade-EZDWULER.mjs.map +0 -1
- package/dist/blade-HS4Z7O3Y.mjs +0 -26
- package/dist/blade-HS4Z7O3Y.mjs.map +0 -1
- package/dist/blockDiagram-VD42YOAC-7SIEWHYD.mjs +0 -3618
- package/dist/blockDiagram-VD42YOAC-7SIEWHYD.mjs.map +0 -1
- package/dist/c4Diagram-YG6GDRKO-G2UUBRHQ.mjs +0 -2495
- package/dist/c4Diagram-YG6GDRKO-G2UUBRHQ.mjs.map +0 -1
- package/dist/chunk-2BAFECUC.mjs +0 -28
- package/dist/chunk-2BAFECUC.mjs.map +0 -1
- package/dist/chunk-BF5LDW2L.mjs +0 -65
- package/dist/chunk-BF5LDW2L.mjs.map +0 -1
- package/dist/chunk-BUEC2HNL.mjs +0 -762
- package/dist/chunk-BUEC2HNL.mjs.map +0 -1
- package/dist/chunk-CRGJ2YCV.mjs +0 -109
- package/dist/chunk-CRGJ2YCV.mjs.map +0 -1
- package/dist/chunk-DKZXT4VQ.mjs +0 -19
- package/dist/chunk-DKZXT4VQ.mjs.map +0 -1
- package/dist/chunk-DYQXFOGA.mjs +0 -34
- package/dist/chunk-DYQXFOGA.mjs.map +0 -1
- package/dist/chunk-ENI667QL.mjs +0 -806
- package/dist/chunk-ENI667QL.mjs.map +0 -1
- package/dist/chunk-GEUZOPED.mjs +0 -1834
- package/dist/chunk-GEUZOPED.mjs.map +0 -1
- package/dist/chunk-GU7334FJ.mjs +0 -538
- package/dist/chunk-GU7334FJ.mjs.map +0 -1
- package/dist/chunk-HNKEYT4A.mjs +0 -4693
- package/dist/chunk-HNKEYT4A.mjs.map +0 -1
- package/dist/chunk-HTMHAYGC.mjs +0 -14
- package/dist/chunk-HTMHAYGC.mjs.map +0 -1
- package/dist/chunk-JRLFMJ6U.mjs +0 -1923
- package/dist/chunk-JRLFMJ6U.mjs.map +0 -1
- package/dist/chunk-JYRND4DC.mjs +0 -22
- package/dist/chunk-JYRND4DC.mjs.map +0 -1
- package/dist/chunk-KFEPUFID.mjs +0 -52
- package/dist/chunk-KFEPUFID.mjs.map +0 -1
- package/dist/chunk-M3UH7XZX.mjs +0 -6222
- package/dist/chunk-M3UH7XZX.mjs.map +0 -1
- package/dist/chunk-ND4RYWG7.mjs +0 -12
- package/dist/chunk-ND4RYWG7.mjs.map +0 -1
- package/dist/chunk-VLSLBZME.mjs +0 -51
- package/dist/chunk-VLSLBZME.mjs.map +0 -1
- package/dist/chunk-WJBV3P3K.mjs +0 -55
- package/dist/chunk-WJBV3P3K.mjs.map +0 -1
- package/dist/chunk-X2TQ2HDS.mjs +0 -44
- package/dist/chunk-X2TQ2HDS.mjs.map +0 -1
- package/dist/chunk-YIDZOZG3.mjs +0 -103
- package/dist/chunk-YIDZOZG3.mjs.map +0 -1
- package/dist/chunk-YLW7IP7V.mjs +0 -14525
- package/dist/chunk-YLW7IP7V.mjs.map +0 -1
- package/dist/classDiagram-2ON5EDUG-WUV4PTK5.mjs +0 -38
- package/dist/classDiagram-2ON5EDUG-WUV4PTK5.mjs.map +0 -1
- package/dist/classDiagram-v2-WZHVMYZB-J4QNVYPE.mjs +0 -38
- package/dist/classDiagram-v2-WZHVMYZB-J4QNVYPE.mjs.map +0 -1
- package/dist/cobol-PNTKRG5I.mjs +0 -17
- package/dist/cobol-PNTKRG5I.mjs.map +0 -1
- package/dist/crystal-BSMHK65A.mjs +0 -23
- package/dist/crystal-BSMHK65A.mjs.map +0 -1
- package/dist/dagre-6UL2VRFP-XN667C7N.mjs +0 -710
- package/dist/dagre-6UL2VRFP-XN667C7N.mjs.map +0 -1
- package/dist/diagram-PSM6KHXK-VA2CF5LZ.mjs +0 -538
- package/dist/diagram-PSM6KHXK-VA2CF5LZ.mjs.map +0 -1
- package/dist/diagram-QEK2KX5R-H3EHES33.mjs +0 -319
- package/dist/diagram-QEK2KX5R-H3EHES33.mjs.map +0 -1
- package/dist/diagram-S2PKOQOG-FOQYPB22.mjs +0 -231
- package/dist/diagram-S2PKOQOG-FOQYPB22.mjs.map +0 -1
- package/dist/edge-JOI74UJM.mjs +0 -19
- package/dist/edge-JOI74UJM.mjs.map +0 -1
- package/dist/elixir-FEL6DDPJ.mjs +0 -15
- package/dist/elixir-FEL6DDPJ.mjs.map +0 -1
- package/dist/erDiagram-Q2GNP2WA-IXNJSD2A.mjs +0 -1175
- package/dist/erDiagram-Q2GNP2WA-IXNJSD2A.mjs.map +0 -1
- package/dist/erb-Q2D6FWX3.mjs +0 -32
- package/dist/erb-Q2D6FWX3.mjs.map +0 -1
- package/dist/flowDiagram-NV44I4VS-ISKGEBMD.mjs +0 -2349
- package/dist/flowDiagram-NV44I4VS-ISKGEBMD.mjs.map +0 -1
- package/dist/ganttDiagram-LVOFAZNH-OAL7V7IR.mjs +0 -2344
- package/dist/ganttDiagram-LVOFAZNH-OAL7V7IR.mjs.map +0 -1
- package/dist/gitGraphDiagram-NY62KEGX-RKN2CCAZ.mjs +0 -1221
- package/dist/gitGraphDiagram-NY62KEGX-RKN2CCAZ.mjs.map +0 -1
- package/dist/glimmer-js-B32LCGFA.mjs +0 -19
- package/dist/glimmer-js-B32LCGFA.mjs.map +0 -1
- package/dist/glimmer-ts-4PHFAQCG.mjs +0 -19
- package/dist/glimmer-ts-4PHFAQCG.mjs.map +0 -1
- package/dist/hack-3ZNSL4KD.mjs +0 -17
- package/dist/hack-3ZNSL4KD.mjs.map +0 -1
- package/dist/handlebars-ICBC3AZK.mjs +0 -19
- package/dist/handlebars-ICBC3AZK.mjs.map +0 -1
- package/dist/html-BGY5P773.mjs +0 -6
- package/dist/html-BGY5P773.mjs.map +0 -1
- package/dist/html-derivative-3HGXHHFE.mjs +0 -7
- package/dist/html-derivative-3HGXHHFE.mjs.map +0 -1
- package/dist/index.css +0 -2385
- package/dist/index.css.map +0 -1
- package/dist/infoDiagram-F6ZHWCRC-Z7KMJJ45.mjs +0 -49
- package/dist/infoDiagram-F6ZHWCRC-Z7KMJJ45.mjs.map +0 -1
- package/dist/jinja-WL6HNMB5.mjs +0 -22
- package/dist/jinja-WL6HNMB5.mjs.map +0 -1
- package/dist/journeyDiagram-XKPGCS4Q-BMTOBHZ4.mjs +0 -1259
- package/dist/journeyDiagram-XKPGCS4Q-BMTOBHZ4.mjs.map +0 -1
- package/dist/kanban-definition-3W4ZIXB7-MVFRARF4.mjs +0 -1062
- package/dist/kanban-definition-3W4ZIXB7-MVFRARF4.mjs.map +0 -1
- package/dist/katex-4R42CMCB.mjs +0 -4
- package/dist/katex-4R42CMCB.mjs.map +0 -1
- package/dist/liquid-YS3YPW54.mjs +0 -19
- package/dist/liquid-YS3YPW54.mjs.map +0 -1
- package/dist/logo-mark-OHF64HAY.svg +0 -8
- package/dist/mdc-A66KLOT4.mjs +0 -20
- package/dist/mdc-A66KLOT4.mjs.map +0 -1
- package/dist/mermaid.core-4OWTNZSL.mjs +0 -1587
- package/dist/mermaid.core-4OWTNZSL.mjs.map +0 -1
- package/dist/mermaid.core-7AUE4M6E.mjs +0 -1587
- package/dist/mermaid.core-7AUE4M6E.mjs.map +0 -1
- package/dist/mindmap-definition-VGOIOE7T-7FMA2CPY.mjs +0 -1112
- package/dist/mindmap-definition-VGOIOE7T-7FMA2CPY.mjs.map +0 -1
- package/dist/mindmap-definition-VGOIOE7T-VNF7JZOY.mjs +0 -1112
- package/dist/mindmap-definition-VGOIOE7T-VNF7JZOY.mjs.map +0 -1
- package/dist/nim-HUBKBJHZ.mjs +0 -26
- package/dist/nim-HUBKBJHZ.mjs.map +0 -1
- package/dist/perl-QHAMWWQ5.mjs +0 -22
- package/dist/perl-QHAMWWQ5.mjs.map +0 -1
- package/dist/php-FS5GKSPN.mjs +0 -11
- package/dist/php-FS5GKSPN.mjs.map +0 -1
- package/dist/pieDiagram-ADFJNKIX-EER3WTCU.mjs +0 -200
- package/dist/pieDiagram-ADFJNKIX-EER3WTCU.mjs.map +0 -1
- package/dist/pug-WTY5FMEA.mjs +0 -17
- package/dist/pug-WTY5FMEA.mjs.map +0 -1
- package/dist/quadrantDiagram-AYHSOK5B-WQCIRJOK.mjs +0 -1344
- package/dist/quadrantDiagram-AYHSOK5B-WQCIRJOK.mjs.map +0 -1
- package/dist/razor-BAB7LFWZ.mjs +0 -17
- package/dist/razor-BAB7LFWZ.mjs.map +0 -1
- package/dist/requirementDiagram-UZGBJVZJ-RVM6Q2TT.mjs +0 -1179
- package/dist/requirementDiagram-UZGBJVZJ-RVM6Q2TT.mjs.map +0 -1
- package/dist/rst-AY7U27YM.mjs +0 -41
- package/dist/rst-AY7U27YM.mjs.map +0 -1
- package/dist/rst-Y2VLYMJI.mjs +0 -41
- package/dist/rst-Y2VLYMJI.mjs.map +0 -1
- package/dist/ruby-K4BNEYWG.mjs +0 -22
- package/dist/ruby-K4BNEYWG.mjs.map +0 -1
- package/dist/sankeyDiagram-TZEHDZUN-H7BVEXGO.mjs +0 -1230
- package/dist/sankeyDiagram-TZEHDZUN-H7BVEXGO.mjs.map +0 -1
- package/dist/sequenceDiagram-WL72ISMW-XBGZSOYI.mjs +0 -3885
- package/dist/sequenceDiagram-WL72ISMW-XBGZSOYI.mjs.map +0 -1
- package/dist/soy-5QMQV2KL.mjs +0 -15
- package/dist/soy-5QMQV2KL.mjs.map +0 -1
- package/dist/stateDiagram-FKZM4ZOC-WRIBVFSJ.mjs +0 -467
- package/dist/stateDiagram-FKZM4ZOC-WRIBVFSJ.mjs.map +0 -1
- package/dist/stateDiagram-v2-4FDKWEC3-SPDO7R6D.mjs +0 -37
- package/dist/stateDiagram-v2-4FDKWEC3-SPDO7R6D.mjs.map +0 -1
- package/dist/templ-VSARRSO2.mjs +0 -17
- package/dist/templ-VSARRSO2.mjs.map +0 -1
- package/dist/timeline-definition-IT6M3QCI-PX4A2RIH.mjs +0 -1226
- package/dist/timeline-definition-IT6M3QCI-PX4A2RIH.mjs.map +0 -1
- package/dist/ts-tags-YK3Q2LIW.mjs +0 -68
- package/dist/ts-tags-YK3Q2LIW.mjs.map +0 -1
- package/dist/twig-HNMWLN6H.mjs +0 -40
- package/dist/twig-HNMWLN6H.mjs.map +0 -1
- package/dist/vue-7OSX6ZY5.mjs +0 -10
- package/dist/vue-7OSX6ZY5.mjs.map +0 -1
- package/dist/vue-html-AQH2V2EU.mjs +0 -20
- package/dist/vue-html-AQH2V2EU.mjs.map +0 -1
- package/dist/vue-vine-GCYT2IGV.mjs +0 -29
- package/dist/vue-vine-GCYT2IGV.mjs.map +0 -1
- package/dist/xychartDiagram-PRI3JC2R-65KZQZDU.mjs +0 -1865
- package/dist/xychartDiagram-PRI3JC2R-65KZQZDU.mjs.map +0 -1
|
@@ -1,1226 +0,0 @@
|
|
|
1
|
-
import { commonDb_exports, clear, getConfig2, setupGraphViewbox, is_dark_default, lighten_default, darken_default } from './chunk-HNKEYT4A.mjs';
|
|
2
|
-
import { __name, __export, select_default, log, arc_default } from './chunk-WHXHCOFP.mjs';
|
|
3
|
-
import './chunk-SH6YXSHR.mjs';
|
|
4
|
-
|
|
5
|
-
// ../../node_modules/.pnpm/mermaid@11.12.0/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-IT6M3QCI.mjs
|
|
6
|
-
var parser = function() {
|
|
7
|
-
var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
|
|
8
|
-
for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v) ;
|
|
9
|
-
return o2;
|
|
10
|
-
}, "o"), $V0 = [6, 8, 10, 11, 12, 14, 16, 17, 20, 21], $V1 = [1, 9], $V2 = [1, 10], $V3 = [1, 11], $V4 = [1, 12], $V5 = [1, 13], $V6 = [1, 16], $V7 = [1, 17];
|
|
11
|
-
var parser2 = {
|
|
12
|
-
trace: /* @__PURE__ */ __name(function trace() {
|
|
13
|
-
}, "trace"),
|
|
14
|
-
yy: {},
|
|
15
|
-
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 },
|
|
16
|
-
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" },
|
|
17
|
-
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]],
|
|
18
|
-
performAction: /* @__PURE__ */ __name(function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$) {
|
|
19
|
-
var $0 = $$.length - 1;
|
|
20
|
-
switch (yystate) {
|
|
21
|
-
case 1:
|
|
22
|
-
return $$[$0 - 1];
|
|
23
|
-
case 2:
|
|
24
|
-
this.$ = [];
|
|
25
|
-
break;
|
|
26
|
-
case 3:
|
|
27
|
-
$$[$0 - 1].push($$[$0]);
|
|
28
|
-
this.$ = $$[$0 - 1];
|
|
29
|
-
break;
|
|
30
|
-
case 4:
|
|
31
|
-
case 5:
|
|
32
|
-
this.$ = $$[$0];
|
|
33
|
-
break;
|
|
34
|
-
case 6:
|
|
35
|
-
case 7:
|
|
36
|
-
this.$ = [];
|
|
37
|
-
break;
|
|
38
|
-
case 8:
|
|
39
|
-
yy.getCommonDb().setDiagramTitle($$[$0].substr(6));
|
|
40
|
-
this.$ = $$[$0].substr(6);
|
|
41
|
-
break;
|
|
42
|
-
case 9:
|
|
43
|
-
this.$ = $$[$0].trim();
|
|
44
|
-
yy.getCommonDb().setAccTitle(this.$);
|
|
45
|
-
break;
|
|
46
|
-
case 10:
|
|
47
|
-
case 11:
|
|
48
|
-
this.$ = $$[$0].trim();
|
|
49
|
-
yy.getCommonDb().setAccDescription(this.$);
|
|
50
|
-
break;
|
|
51
|
-
case 12:
|
|
52
|
-
yy.addSection($$[$0].substr(8));
|
|
53
|
-
this.$ = $$[$0].substr(8);
|
|
54
|
-
break;
|
|
55
|
-
case 15:
|
|
56
|
-
yy.addTask($$[$0], 0, "");
|
|
57
|
-
this.$ = $$[$0];
|
|
58
|
-
break;
|
|
59
|
-
case 16:
|
|
60
|
-
yy.addEvent($$[$0].substr(2));
|
|
61
|
-
this.$ = $$[$0];
|
|
62
|
-
break;
|
|
63
|
-
}
|
|
64
|
-
}, "anonymous"),
|
|
65
|
-
table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, o($V0, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11: $V1, 12: $V2, 14: $V3, 16: $V4, 17: $V5, 18: 14, 19: 15, 20: $V6, 21: $V7 }, o($V0, [2, 7], { 1: [2, 1] }), o($V0, [2, 3]), { 9: 18, 11: $V1, 12: $V2, 14: $V3, 16: $V4, 17: $V5, 18: 14, 19: 15, 20: $V6, 21: $V7 }, o($V0, [2, 5]), o($V0, [2, 6]), o($V0, [2, 8]), { 13: [1, 19] }, { 15: [1, 20] }, o($V0, [2, 11]), o($V0, [2, 12]), o($V0, [2, 13]), o($V0, [2, 14]), o($V0, [2, 15]), o($V0, [2, 16]), o($V0, [2, 4]), o($V0, [2, 9]), o($V0, [2, 10])],
|
|
66
|
-
defaultActions: {},
|
|
67
|
-
parseError: /* @__PURE__ */ __name(function parseError(str, hash) {
|
|
68
|
-
if (hash.recoverable) {
|
|
69
|
-
this.trace(str);
|
|
70
|
-
} else {
|
|
71
|
-
var error = new Error(str);
|
|
72
|
-
error.hash = hash;
|
|
73
|
-
throw error;
|
|
74
|
-
}
|
|
75
|
-
}, "parseError"),
|
|
76
|
-
parse: /* @__PURE__ */ __name(function parse(input) {
|
|
77
|
-
var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = "", yylineno = 0, yyleng = 0, TERROR = 2, EOF = 1;
|
|
78
|
-
var args = lstack.slice.call(arguments, 1);
|
|
79
|
-
var lexer2 = Object.create(this.lexer);
|
|
80
|
-
var sharedState = { yy: {} };
|
|
81
|
-
for (var k in this.yy) {
|
|
82
|
-
if (Object.prototype.hasOwnProperty.call(this.yy, k)) {
|
|
83
|
-
sharedState.yy[k] = this.yy[k];
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
lexer2.setInput(input, sharedState.yy);
|
|
87
|
-
sharedState.yy.lexer = lexer2;
|
|
88
|
-
sharedState.yy.parser = this;
|
|
89
|
-
if (typeof lexer2.yylloc == "undefined") {
|
|
90
|
-
lexer2.yylloc = {};
|
|
91
|
-
}
|
|
92
|
-
var yyloc = lexer2.yylloc;
|
|
93
|
-
lstack.push(yyloc);
|
|
94
|
-
var ranges = lexer2.options && lexer2.options.ranges;
|
|
95
|
-
if (typeof sharedState.yy.parseError === "function") {
|
|
96
|
-
this.parseError = sharedState.yy.parseError;
|
|
97
|
-
} else {
|
|
98
|
-
this.parseError = Object.getPrototypeOf(this).parseError;
|
|
99
|
-
}
|
|
100
|
-
function popStack(n) {
|
|
101
|
-
stack.length = stack.length - 2 * n;
|
|
102
|
-
vstack.length = vstack.length - n;
|
|
103
|
-
lstack.length = lstack.length - n;
|
|
104
|
-
}
|
|
105
|
-
__name(popStack, "popStack");
|
|
106
|
-
function lex() {
|
|
107
|
-
var token;
|
|
108
|
-
token = tstack.pop() || lexer2.lex() || EOF;
|
|
109
|
-
if (typeof token !== "number") {
|
|
110
|
-
if (token instanceof Array) {
|
|
111
|
-
tstack = token;
|
|
112
|
-
token = tstack.pop();
|
|
113
|
-
}
|
|
114
|
-
token = self.symbols_[token] || token;
|
|
115
|
-
}
|
|
116
|
-
return token;
|
|
117
|
-
}
|
|
118
|
-
__name(lex, "lex");
|
|
119
|
-
var symbol, state, action, r, yyval = {}, p, len, newState, expected;
|
|
120
|
-
while (true) {
|
|
121
|
-
state = stack[stack.length - 1];
|
|
122
|
-
if (this.defaultActions[state]) {
|
|
123
|
-
action = this.defaultActions[state];
|
|
124
|
-
} else {
|
|
125
|
-
if (symbol === null || typeof symbol == "undefined") {
|
|
126
|
-
symbol = lex();
|
|
127
|
-
}
|
|
128
|
-
action = table[state] && table[state][symbol];
|
|
129
|
-
}
|
|
130
|
-
if (typeof action === "undefined" || !action.length || !action[0]) {
|
|
131
|
-
var errStr = "";
|
|
132
|
-
expected = [];
|
|
133
|
-
for (p in table[state]) {
|
|
134
|
-
if (this.terminals_[p] && p > TERROR) {
|
|
135
|
-
expected.push("'" + this.terminals_[p] + "'");
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
if (lexer2.showPosition) {
|
|
139
|
-
errStr = "Parse error on line " + (yylineno + 1) + ":\n" + lexer2.showPosition() + "\nExpecting " + expected.join(", ") + ", got '" + (this.terminals_[symbol] || symbol) + "'";
|
|
140
|
-
} else {
|
|
141
|
-
errStr = "Parse error on line " + (yylineno + 1) + ": Unexpected " + (symbol == EOF ? "end of input" : "'" + (this.terminals_[symbol] || symbol) + "'");
|
|
142
|
-
}
|
|
143
|
-
this.parseError(errStr, {
|
|
144
|
-
text: lexer2.match,
|
|
145
|
-
token: this.terminals_[symbol] || symbol,
|
|
146
|
-
line: lexer2.yylineno,
|
|
147
|
-
loc: yyloc,
|
|
148
|
-
expected
|
|
149
|
-
});
|
|
150
|
-
}
|
|
151
|
-
if (action[0] instanceof Array && action.length > 1) {
|
|
152
|
-
throw new Error("Parse Error: multiple actions possible at state: " + state + ", token: " + symbol);
|
|
153
|
-
}
|
|
154
|
-
switch (action[0]) {
|
|
155
|
-
case 1:
|
|
156
|
-
stack.push(symbol);
|
|
157
|
-
vstack.push(lexer2.yytext);
|
|
158
|
-
lstack.push(lexer2.yylloc);
|
|
159
|
-
stack.push(action[1]);
|
|
160
|
-
symbol = null;
|
|
161
|
-
{
|
|
162
|
-
yyleng = lexer2.yyleng;
|
|
163
|
-
yytext = lexer2.yytext;
|
|
164
|
-
yylineno = lexer2.yylineno;
|
|
165
|
-
yyloc = lexer2.yylloc;
|
|
166
|
-
}
|
|
167
|
-
break;
|
|
168
|
-
case 2:
|
|
169
|
-
len = this.productions_[action[1]][1];
|
|
170
|
-
yyval.$ = vstack[vstack.length - len];
|
|
171
|
-
yyval._$ = {
|
|
172
|
-
first_line: lstack[lstack.length - (len || 1)].first_line,
|
|
173
|
-
last_line: lstack[lstack.length - 1].last_line,
|
|
174
|
-
first_column: lstack[lstack.length - (len || 1)].first_column,
|
|
175
|
-
last_column: lstack[lstack.length - 1].last_column
|
|
176
|
-
};
|
|
177
|
-
if (ranges) {
|
|
178
|
-
yyval._$.range = [
|
|
179
|
-
lstack[lstack.length - (len || 1)].range[0],
|
|
180
|
-
lstack[lstack.length - 1].range[1]
|
|
181
|
-
];
|
|
182
|
-
}
|
|
183
|
-
r = this.performAction.apply(yyval, [
|
|
184
|
-
yytext,
|
|
185
|
-
yyleng,
|
|
186
|
-
yylineno,
|
|
187
|
-
sharedState.yy,
|
|
188
|
-
action[1],
|
|
189
|
-
vstack,
|
|
190
|
-
lstack
|
|
191
|
-
].concat(args));
|
|
192
|
-
if (typeof r !== "undefined") {
|
|
193
|
-
return r;
|
|
194
|
-
}
|
|
195
|
-
if (len) {
|
|
196
|
-
stack = stack.slice(0, -1 * len * 2);
|
|
197
|
-
vstack = vstack.slice(0, -1 * len);
|
|
198
|
-
lstack = lstack.slice(0, -1 * len);
|
|
199
|
-
}
|
|
200
|
-
stack.push(this.productions_[action[1]][0]);
|
|
201
|
-
vstack.push(yyval.$);
|
|
202
|
-
lstack.push(yyval._$);
|
|
203
|
-
newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
|
|
204
|
-
stack.push(newState);
|
|
205
|
-
break;
|
|
206
|
-
case 3:
|
|
207
|
-
return true;
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
return true;
|
|
211
|
-
}, "parse")
|
|
212
|
-
};
|
|
213
|
-
var lexer = /* @__PURE__ */ function() {
|
|
214
|
-
var lexer2 = {
|
|
215
|
-
EOF: 1,
|
|
216
|
-
parseError: /* @__PURE__ */ __name(function parseError(str, hash) {
|
|
217
|
-
if (this.yy.parser) {
|
|
218
|
-
this.yy.parser.parseError(str, hash);
|
|
219
|
-
} else {
|
|
220
|
-
throw new Error(str);
|
|
221
|
-
}
|
|
222
|
-
}, "parseError"),
|
|
223
|
-
// resets the lexer, sets new input
|
|
224
|
-
setInput: /* @__PURE__ */ __name(function(input, yy) {
|
|
225
|
-
this.yy = yy || this.yy || {};
|
|
226
|
-
this._input = input;
|
|
227
|
-
this._more = this._backtrack = this.done = false;
|
|
228
|
-
this.yylineno = this.yyleng = 0;
|
|
229
|
-
this.yytext = this.matched = this.match = "";
|
|
230
|
-
this.conditionStack = ["INITIAL"];
|
|
231
|
-
this.yylloc = {
|
|
232
|
-
first_line: 1,
|
|
233
|
-
first_column: 0,
|
|
234
|
-
last_line: 1,
|
|
235
|
-
last_column: 0
|
|
236
|
-
};
|
|
237
|
-
if (this.options.ranges) {
|
|
238
|
-
this.yylloc.range = [0, 0];
|
|
239
|
-
}
|
|
240
|
-
this.offset = 0;
|
|
241
|
-
return this;
|
|
242
|
-
}, "setInput"),
|
|
243
|
-
// consumes and returns one char from the input
|
|
244
|
-
input: /* @__PURE__ */ __name(function() {
|
|
245
|
-
var ch = this._input[0];
|
|
246
|
-
this.yytext += ch;
|
|
247
|
-
this.yyleng++;
|
|
248
|
-
this.offset++;
|
|
249
|
-
this.match += ch;
|
|
250
|
-
this.matched += ch;
|
|
251
|
-
var lines = ch.match(/(?:\r\n?|\n).*/g);
|
|
252
|
-
if (lines) {
|
|
253
|
-
this.yylineno++;
|
|
254
|
-
this.yylloc.last_line++;
|
|
255
|
-
} else {
|
|
256
|
-
this.yylloc.last_column++;
|
|
257
|
-
}
|
|
258
|
-
if (this.options.ranges) {
|
|
259
|
-
this.yylloc.range[1]++;
|
|
260
|
-
}
|
|
261
|
-
this._input = this._input.slice(1);
|
|
262
|
-
return ch;
|
|
263
|
-
}, "input"),
|
|
264
|
-
// unshifts one char (or a string) into the input
|
|
265
|
-
unput: /* @__PURE__ */ __name(function(ch) {
|
|
266
|
-
var len = ch.length;
|
|
267
|
-
var lines = ch.split(/(?:\r\n?|\n)/g);
|
|
268
|
-
this._input = ch + this._input;
|
|
269
|
-
this.yytext = this.yytext.substr(0, this.yytext.length - len);
|
|
270
|
-
this.offset -= len;
|
|
271
|
-
var oldLines = this.match.split(/(?:\r\n?|\n)/g);
|
|
272
|
-
this.match = this.match.substr(0, this.match.length - 1);
|
|
273
|
-
this.matched = this.matched.substr(0, this.matched.length - 1);
|
|
274
|
-
if (lines.length - 1) {
|
|
275
|
-
this.yylineno -= lines.length - 1;
|
|
276
|
-
}
|
|
277
|
-
var r = this.yylloc.range;
|
|
278
|
-
this.yylloc = {
|
|
279
|
-
first_line: this.yylloc.first_line,
|
|
280
|
-
last_line: this.yylineno + 1,
|
|
281
|
-
first_column: this.yylloc.first_column,
|
|
282
|
-
last_column: lines ? (lines.length === oldLines.length ? this.yylloc.first_column : 0) + oldLines[oldLines.length - lines.length].length - lines[0].length : this.yylloc.first_column - len
|
|
283
|
-
};
|
|
284
|
-
if (this.options.ranges) {
|
|
285
|
-
this.yylloc.range = [r[0], r[0] + this.yyleng - len];
|
|
286
|
-
}
|
|
287
|
-
this.yyleng = this.yytext.length;
|
|
288
|
-
return this;
|
|
289
|
-
}, "unput"),
|
|
290
|
-
// When called from action, caches matched text and appends it on next action
|
|
291
|
-
more: /* @__PURE__ */ __name(function() {
|
|
292
|
-
this._more = true;
|
|
293
|
-
return this;
|
|
294
|
-
}, "more"),
|
|
295
|
-
// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
|
|
296
|
-
reject: /* @__PURE__ */ __name(function() {
|
|
297
|
-
if (this.options.backtrack_lexer) {
|
|
298
|
-
this._backtrack = true;
|
|
299
|
-
} else {
|
|
300
|
-
return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n" + this.showPosition(), {
|
|
301
|
-
text: "",
|
|
302
|
-
token: null,
|
|
303
|
-
line: this.yylineno
|
|
304
|
-
});
|
|
305
|
-
}
|
|
306
|
-
return this;
|
|
307
|
-
}, "reject"),
|
|
308
|
-
// retain first n characters of the match
|
|
309
|
-
less: /* @__PURE__ */ __name(function(n) {
|
|
310
|
-
this.unput(this.match.slice(n));
|
|
311
|
-
}, "less"),
|
|
312
|
-
// displays already matched input, i.e. for error messages
|
|
313
|
-
pastInput: /* @__PURE__ */ __name(function() {
|
|
314
|
-
var past = this.matched.substr(0, this.matched.length - this.match.length);
|
|
315
|
-
return (past.length > 20 ? "..." : "") + past.substr(-20).replace(/\n/g, "");
|
|
316
|
-
}, "pastInput"),
|
|
317
|
-
// displays upcoming input, i.e. for error messages
|
|
318
|
-
upcomingInput: /* @__PURE__ */ __name(function() {
|
|
319
|
-
var next = this.match;
|
|
320
|
-
if (next.length < 20) {
|
|
321
|
-
next += this._input.substr(0, 20 - next.length);
|
|
322
|
-
}
|
|
323
|
-
return (next.substr(0, 20) + (next.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
324
|
-
}, "upcomingInput"),
|
|
325
|
-
// displays the character position where the lexing error occurred, i.e. for error messages
|
|
326
|
-
showPosition: /* @__PURE__ */ __name(function() {
|
|
327
|
-
var pre = this.pastInput();
|
|
328
|
-
var c = new Array(pre.length + 1).join("-");
|
|
329
|
-
return pre + this.upcomingInput() + "\n" + c + "^";
|
|
330
|
-
}, "showPosition"),
|
|
331
|
-
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
332
|
-
test_match: /* @__PURE__ */ __name(function(match, indexed_rule) {
|
|
333
|
-
var token, lines, backup;
|
|
334
|
-
if (this.options.backtrack_lexer) {
|
|
335
|
-
backup = {
|
|
336
|
-
yylineno: this.yylineno,
|
|
337
|
-
yylloc: {
|
|
338
|
-
first_line: this.yylloc.first_line,
|
|
339
|
-
last_line: this.last_line,
|
|
340
|
-
first_column: this.yylloc.first_column,
|
|
341
|
-
last_column: this.yylloc.last_column
|
|
342
|
-
},
|
|
343
|
-
yytext: this.yytext,
|
|
344
|
-
match: this.match,
|
|
345
|
-
matches: this.matches,
|
|
346
|
-
matched: this.matched,
|
|
347
|
-
yyleng: this.yyleng,
|
|
348
|
-
offset: this.offset,
|
|
349
|
-
_more: this._more,
|
|
350
|
-
_input: this._input,
|
|
351
|
-
yy: this.yy,
|
|
352
|
-
conditionStack: this.conditionStack.slice(0),
|
|
353
|
-
done: this.done
|
|
354
|
-
};
|
|
355
|
-
if (this.options.ranges) {
|
|
356
|
-
backup.yylloc.range = this.yylloc.range.slice(0);
|
|
357
|
-
}
|
|
358
|
-
}
|
|
359
|
-
lines = match[0].match(/(?:\r\n?|\n).*/g);
|
|
360
|
-
if (lines) {
|
|
361
|
-
this.yylineno += lines.length;
|
|
362
|
-
}
|
|
363
|
-
this.yylloc = {
|
|
364
|
-
first_line: this.yylloc.last_line,
|
|
365
|
-
last_line: this.yylineno + 1,
|
|
366
|
-
first_column: this.yylloc.last_column,
|
|
367
|
-
last_column: lines ? lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + match[0].length
|
|
368
|
-
};
|
|
369
|
-
this.yytext += match[0];
|
|
370
|
-
this.match += match[0];
|
|
371
|
-
this.matches = match;
|
|
372
|
-
this.yyleng = this.yytext.length;
|
|
373
|
-
if (this.options.ranges) {
|
|
374
|
-
this.yylloc.range = [this.offset, this.offset += this.yyleng];
|
|
375
|
-
}
|
|
376
|
-
this._more = false;
|
|
377
|
-
this._backtrack = false;
|
|
378
|
-
this._input = this._input.slice(match[0].length);
|
|
379
|
-
this.matched += match[0];
|
|
380
|
-
token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);
|
|
381
|
-
if (this.done && this._input) {
|
|
382
|
-
this.done = false;
|
|
383
|
-
}
|
|
384
|
-
if (token) {
|
|
385
|
-
return token;
|
|
386
|
-
} else if (this._backtrack) {
|
|
387
|
-
for (var k in backup) {
|
|
388
|
-
this[k] = backup[k];
|
|
389
|
-
}
|
|
390
|
-
return false;
|
|
391
|
-
}
|
|
392
|
-
return false;
|
|
393
|
-
}, "test_match"),
|
|
394
|
-
// return next match in input
|
|
395
|
-
next: /* @__PURE__ */ __name(function() {
|
|
396
|
-
if (this.done) {
|
|
397
|
-
return this.EOF;
|
|
398
|
-
}
|
|
399
|
-
if (!this._input) {
|
|
400
|
-
this.done = true;
|
|
401
|
-
}
|
|
402
|
-
var token, match, tempMatch, index;
|
|
403
|
-
if (!this._more) {
|
|
404
|
-
this.yytext = "";
|
|
405
|
-
this.match = "";
|
|
406
|
-
}
|
|
407
|
-
var rules = this._currentRules();
|
|
408
|
-
for (var i = 0; i < rules.length; i++) {
|
|
409
|
-
tempMatch = this._input.match(this.rules[rules[i]]);
|
|
410
|
-
if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {
|
|
411
|
-
match = tempMatch;
|
|
412
|
-
index = i;
|
|
413
|
-
if (this.options.backtrack_lexer) {
|
|
414
|
-
token = this.test_match(tempMatch, rules[i]);
|
|
415
|
-
if (token !== false) {
|
|
416
|
-
return token;
|
|
417
|
-
} else if (this._backtrack) {
|
|
418
|
-
match = false;
|
|
419
|
-
continue;
|
|
420
|
-
} else {
|
|
421
|
-
return false;
|
|
422
|
-
}
|
|
423
|
-
} else if (!this.options.flex) {
|
|
424
|
-
break;
|
|
425
|
-
}
|
|
426
|
-
}
|
|
427
|
-
}
|
|
428
|
-
if (match) {
|
|
429
|
-
token = this.test_match(match, rules[index]);
|
|
430
|
-
if (token !== false) {
|
|
431
|
-
return token;
|
|
432
|
-
}
|
|
433
|
-
return false;
|
|
434
|
-
}
|
|
435
|
-
if (this._input === "") {
|
|
436
|
-
return this.EOF;
|
|
437
|
-
} else {
|
|
438
|
-
return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
|
|
439
|
-
text: "",
|
|
440
|
-
token: null,
|
|
441
|
-
line: this.yylineno
|
|
442
|
-
});
|
|
443
|
-
}
|
|
444
|
-
}, "next"),
|
|
445
|
-
// return next match that has a token
|
|
446
|
-
lex: /* @__PURE__ */ __name(function lex() {
|
|
447
|
-
var r = this.next();
|
|
448
|
-
if (r) {
|
|
449
|
-
return r;
|
|
450
|
-
} else {
|
|
451
|
-
return this.lex();
|
|
452
|
-
}
|
|
453
|
-
}, "lex"),
|
|
454
|
-
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
|
|
455
|
-
begin: /* @__PURE__ */ __name(function begin(condition) {
|
|
456
|
-
this.conditionStack.push(condition);
|
|
457
|
-
}, "begin"),
|
|
458
|
-
// pop the previously active lexer condition state off the condition stack
|
|
459
|
-
popState: /* @__PURE__ */ __name(function popState() {
|
|
460
|
-
var n = this.conditionStack.length - 1;
|
|
461
|
-
if (n > 0) {
|
|
462
|
-
return this.conditionStack.pop();
|
|
463
|
-
} else {
|
|
464
|
-
return this.conditionStack[0];
|
|
465
|
-
}
|
|
466
|
-
}, "popState"),
|
|
467
|
-
// produce the lexer rule set which is active for the currently active lexer condition state
|
|
468
|
-
_currentRules: /* @__PURE__ */ __name(function _currentRules() {
|
|
469
|
-
if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {
|
|
470
|
-
return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
|
|
471
|
-
} else {
|
|
472
|
-
return this.conditions["INITIAL"].rules;
|
|
473
|
-
}
|
|
474
|
-
}, "_currentRules"),
|
|
475
|
-
// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
|
|
476
|
-
topState: /* @__PURE__ */ __name(function topState(n) {
|
|
477
|
-
n = this.conditionStack.length - 1 - Math.abs(n || 0);
|
|
478
|
-
if (n >= 0) {
|
|
479
|
-
return this.conditionStack[n];
|
|
480
|
-
} else {
|
|
481
|
-
return "INITIAL";
|
|
482
|
-
}
|
|
483
|
-
}, "topState"),
|
|
484
|
-
// alias for begin(condition)
|
|
485
|
-
pushState: /* @__PURE__ */ __name(function pushState(condition) {
|
|
486
|
-
this.begin(condition);
|
|
487
|
-
}, "pushState"),
|
|
488
|
-
// return the number of states currently on the stack
|
|
489
|
-
stateStackSize: /* @__PURE__ */ __name(function stateStackSize() {
|
|
490
|
-
return this.conditionStack.length;
|
|
491
|
-
}, "stateStackSize"),
|
|
492
|
-
options: { "case-insensitive": true },
|
|
493
|
-
performAction: /* @__PURE__ */ __name(function anonymous(yy, yy_, $avoiding_name_collisions, YY_START) {
|
|
494
|
-
switch ($avoiding_name_collisions) {
|
|
495
|
-
case 0:
|
|
496
|
-
break;
|
|
497
|
-
case 1:
|
|
498
|
-
break;
|
|
499
|
-
case 2:
|
|
500
|
-
return 10;
|
|
501
|
-
case 3:
|
|
502
|
-
break;
|
|
503
|
-
case 4:
|
|
504
|
-
break;
|
|
505
|
-
case 5:
|
|
506
|
-
return 4;
|
|
507
|
-
case 6:
|
|
508
|
-
return 11;
|
|
509
|
-
case 7:
|
|
510
|
-
this.begin("acc_title");
|
|
511
|
-
return 12;
|
|
512
|
-
case 8:
|
|
513
|
-
this.popState();
|
|
514
|
-
return "acc_title_value";
|
|
515
|
-
case 9:
|
|
516
|
-
this.begin("acc_descr");
|
|
517
|
-
return 14;
|
|
518
|
-
case 10:
|
|
519
|
-
this.popState();
|
|
520
|
-
return "acc_descr_value";
|
|
521
|
-
case 11:
|
|
522
|
-
this.begin("acc_descr_multiline");
|
|
523
|
-
break;
|
|
524
|
-
case 12:
|
|
525
|
-
this.popState();
|
|
526
|
-
break;
|
|
527
|
-
case 13:
|
|
528
|
-
return "acc_descr_multiline_value";
|
|
529
|
-
case 14:
|
|
530
|
-
return 17;
|
|
531
|
-
case 15:
|
|
532
|
-
return 21;
|
|
533
|
-
case 16:
|
|
534
|
-
return 20;
|
|
535
|
-
case 17:
|
|
536
|
-
return 6;
|
|
537
|
-
case 18:
|
|
538
|
-
return "INVALID";
|
|
539
|
-
}
|
|
540
|
-
}, "anonymous"),
|
|
541
|
-
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]|:(?!\s))+)/i, /^(?:[^#:\n]+)/i, /^(?:$)/i, /^(?:.)/i],
|
|
542
|
-
conditions: { "acc_descr_multiline": { "rules": [12, 13], "inclusive": false }, "acc_descr": { "rules": [10], "inclusive": false }, "acc_title": { "rules": [8], "inclusive": false }, "INITIAL": { "rules": [0, 1, 2, 3, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18], "inclusive": true } }
|
|
543
|
-
};
|
|
544
|
-
return lexer2;
|
|
545
|
-
}();
|
|
546
|
-
parser2.lexer = lexer;
|
|
547
|
-
function Parser() {
|
|
548
|
-
this.yy = {};
|
|
549
|
-
}
|
|
550
|
-
__name(Parser, "Parser");
|
|
551
|
-
Parser.prototype = parser2;
|
|
552
|
-
parser2.Parser = Parser;
|
|
553
|
-
return new Parser();
|
|
554
|
-
}();
|
|
555
|
-
parser.parser = parser;
|
|
556
|
-
var timeline_default = parser;
|
|
557
|
-
var timelineDb_exports = {};
|
|
558
|
-
__export(timelineDb_exports, {
|
|
559
|
-
addEvent: () => addEvent,
|
|
560
|
-
addSection: () => addSection,
|
|
561
|
-
addTask: () => addTask,
|
|
562
|
-
addTaskOrg: () => addTaskOrg,
|
|
563
|
-
clear: () => clear2,
|
|
564
|
-
default: () => timelineDb_default,
|
|
565
|
-
getCommonDb: () => getCommonDb,
|
|
566
|
-
getSections: () => getSections,
|
|
567
|
-
getTasks: () => getTasks
|
|
568
|
-
});
|
|
569
|
-
var currentSection = "";
|
|
570
|
-
var currentTaskId = 0;
|
|
571
|
-
var sections = [];
|
|
572
|
-
var tasks = [];
|
|
573
|
-
var rawTasks = [];
|
|
574
|
-
var getCommonDb = /* @__PURE__ */ __name(() => commonDb_exports, "getCommonDb");
|
|
575
|
-
var clear2 = /* @__PURE__ */ __name(function() {
|
|
576
|
-
sections.length = 0;
|
|
577
|
-
tasks.length = 0;
|
|
578
|
-
currentSection = "";
|
|
579
|
-
rawTasks.length = 0;
|
|
580
|
-
clear();
|
|
581
|
-
}, "clear");
|
|
582
|
-
var addSection = /* @__PURE__ */ __name(function(txt) {
|
|
583
|
-
currentSection = txt;
|
|
584
|
-
sections.push(txt);
|
|
585
|
-
}, "addSection");
|
|
586
|
-
var getSections = /* @__PURE__ */ __name(function() {
|
|
587
|
-
return sections;
|
|
588
|
-
}, "getSections");
|
|
589
|
-
var getTasks = /* @__PURE__ */ __name(function() {
|
|
590
|
-
let allItemsProcessed = compileTasks();
|
|
591
|
-
const maxDepth = 100;
|
|
592
|
-
let iterationCount = 0;
|
|
593
|
-
while (!allItemsProcessed && iterationCount < maxDepth) {
|
|
594
|
-
allItemsProcessed = compileTasks();
|
|
595
|
-
iterationCount++;
|
|
596
|
-
}
|
|
597
|
-
tasks.push(...rawTasks);
|
|
598
|
-
return tasks;
|
|
599
|
-
}, "getTasks");
|
|
600
|
-
var addTask = /* @__PURE__ */ __name(function(period, length, event) {
|
|
601
|
-
const rawTask = {
|
|
602
|
-
id: currentTaskId++,
|
|
603
|
-
section: currentSection,
|
|
604
|
-
type: currentSection,
|
|
605
|
-
task: period,
|
|
606
|
-
score: length ? length : 0,
|
|
607
|
-
//if event is defined, then add it the events array
|
|
608
|
-
events: event ? [event] : []
|
|
609
|
-
};
|
|
610
|
-
rawTasks.push(rawTask);
|
|
611
|
-
}, "addTask");
|
|
612
|
-
var addEvent = /* @__PURE__ */ __name(function(event) {
|
|
613
|
-
const currentTask = rawTasks.find((task) => task.id === currentTaskId - 1);
|
|
614
|
-
currentTask.events.push(event);
|
|
615
|
-
}, "addEvent");
|
|
616
|
-
var addTaskOrg = /* @__PURE__ */ __name(function(descr) {
|
|
617
|
-
const newTask = {
|
|
618
|
-
section: currentSection,
|
|
619
|
-
type: currentSection,
|
|
620
|
-
description: descr,
|
|
621
|
-
task: descr,
|
|
622
|
-
classes: []
|
|
623
|
-
};
|
|
624
|
-
tasks.push(newTask);
|
|
625
|
-
}, "addTaskOrg");
|
|
626
|
-
var compileTasks = /* @__PURE__ */ __name(function() {
|
|
627
|
-
const compileTask = /* @__PURE__ */ __name(function(pos) {
|
|
628
|
-
return rawTasks[pos].processed;
|
|
629
|
-
}, "compileTask");
|
|
630
|
-
let allProcessed = true;
|
|
631
|
-
for (const [i, rawTask] of rawTasks.entries()) {
|
|
632
|
-
compileTask(i);
|
|
633
|
-
allProcessed = allProcessed && rawTask.processed;
|
|
634
|
-
}
|
|
635
|
-
return allProcessed;
|
|
636
|
-
}, "compileTasks");
|
|
637
|
-
var timelineDb_default = {
|
|
638
|
-
clear: clear2,
|
|
639
|
-
getCommonDb,
|
|
640
|
-
addSection,
|
|
641
|
-
getSections,
|
|
642
|
-
getTasks,
|
|
643
|
-
addTask,
|
|
644
|
-
addTaskOrg,
|
|
645
|
-
addEvent
|
|
646
|
-
};
|
|
647
|
-
var MAX_SECTIONS = 12;
|
|
648
|
-
var drawRect = /* @__PURE__ */ __name(function(elem, rectData) {
|
|
649
|
-
const rectElem = elem.append("rect");
|
|
650
|
-
rectElem.attr("x", rectData.x);
|
|
651
|
-
rectElem.attr("y", rectData.y);
|
|
652
|
-
rectElem.attr("fill", rectData.fill);
|
|
653
|
-
rectElem.attr("stroke", rectData.stroke);
|
|
654
|
-
rectElem.attr("width", rectData.width);
|
|
655
|
-
rectElem.attr("height", rectData.height);
|
|
656
|
-
rectElem.attr("rx", rectData.rx);
|
|
657
|
-
rectElem.attr("ry", rectData.ry);
|
|
658
|
-
if (rectData.class !== void 0) {
|
|
659
|
-
rectElem.attr("class", rectData.class);
|
|
660
|
-
}
|
|
661
|
-
return rectElem;
|
|
662
|
-
}, "drawRect");
|
|
663
|
-
var drawFace = /* @__PURE__ */ __name(function(element, faceData) {
|
|
664
|
-
const radius = 15;
|
|
665
|
-
const circleElement = element.append("circle").attr("cx", faceData.cx).attr("cy", faceData.cy).attr("class", "face").attr("r", radius).attr("stroke-width", 2).attr("overflow", "visible");
|
|
666
|
-
const face = element.append("g");
|
|
667
|
-
face.append("circle").attr("cx", faceData.cx - radius / 3).attr("cy", faceData.cy - radius / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666");
|
|
668
|
-
face.append("circle").attr("cx", faceData.cx + radius / 3).attr("cy", faceData.cy - radius / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666");
|
|
669
|
-
function smile(face2) {
|
|
670
|
-
const arc = arc_default().startAngle(Math.PI / 2).endAngle(3 * (Math.PI / 2)).innerRadius(radius / 2).outerRadius(radius / 2.2);
|
|
671
|
-
face2.append("path").attr("class", "mouth").attr("d", arc).attr("transform", "translate(" + faceData.cx + "," + (faceData.cy + 2) + ")");
|
|
672
|
-
}
|
|
673
|
-
__name(smile, "smile");
|
|
674
|
-
function sad(face2) {
|
|
675
|
-
const arc = arc_default().startAngle(3 * Math.PI / 2).endAngle(5 * (Math.PI / 2)).innerRadius(radius / 2).outerRadius(radius / 2.2);
|
|
676
|
-
face2.append("path").attr("class", "mouth").attr("d", arc).attr("transform", "translate(" + faceData.cx + "," + (faceData.cy + 7) + ")");
|
|
677
|
-
}
|
|
678
|
-
__name(sad, "sad");
|
|
679
|
-
function ambivalent(face2) {
|
|
680
|
-
face2.append("line").attr("class", "mouth").attr("stroke", 2).attr("x1", faceData.cx - 5).attr("y1", faceData.cy + 7).attr("x2", faceData.cx + 5).attr("y2", faceData.cy + 7).attr("class", "mouth").attr("stroke-width", "1px").attr("stroke", "#666");
|
|
681
|
-
}
|
|
682
|
-
__name(ambivalent, "ambivalent");
|
|
683
|
-
if (faceData.score > 3) {
|
|
684
|
-
smile(face);
|
|
685
|
-
} else if (faceData.score < 3) {
|
|
686
|
-
sad(face);
|
|
687
|
-
} else {
|
|
688
|
-
ambivalent(face);
|
|
689
|
-
}
|
|
690
|
-
return circleElement;
|
|
691
|
-
}, "drawFace");
|
|
692
|
-
var drawCircle = /* @__PURE__ */ __name(function(element, circleData) {
|
|
693
|
-
const circleElement = element.append("circle");
|
|
694
|
-
circleElement.attr("cx", circleData.cx);
|
|
695
|
-
circleElement.attr("cy", circleData.cy);
|
|
696
|
-
circleElement.attr("class", "actor-" + circleData.pos);
|
|
697
|
-
circleElement.attr("fill", circleData.fill);
|
|
698
|
-
circleElement.attr("stroke", circleData.stroke);
|
|
699
|
-
circleElement.attr("r", circleData.r);
|
|
700
|
-
if (circleElement.class !== void 0) {
|
|
701
|
-
circleElement.attr("class", circleElement.class);
|
|
702
|
-
}
|
|
703
|
-
if (circleData.title !== void 0) {
|
|
704
|
-
circleElement.append("title").text(circleData.title);
|
|
705
|
-
}
|
|
706
|
-
return circleElement;
|
|
707
|
-
}, "drawCircle");
|
|
708
|
-
var drawText = /* @__PURE__ */ __name(function(elem, textData) {
|
|
709
|
-
const nText = textData.text.replace(/<br\s*\/?>/gi, " ");
|
|
710
|
-
const textElem = elem.append("text");
|
|
711
|
-
textElem.attr("x", textData.x);
|
|
712
|
-
textElem.attr("y", textData.y);
|
|
713
|
-
textElem.attr("class", "legend");
|
|
714
|
-
textElem.style("text-anchor", textData.anchor);
|
|
715
|
-
if (textData.class !== void 0) {
|
|
716
|
-
textElem.attr("class", textData.class);
|
|
717
|
-
}
|
|
718
|
-
const span = textElem.append("tspan");
|
|
719
|
-
span.attr("x", textData.x + textData.textMargin * 2);
|
|
720
|
-
span.text(nText);
|
|
721
|
-
return textElem;
|
|
722
|
-
}, "drawText");
|
|
723
|
-
var drawLabel = /* @__PURE__ */ __name(function(elem, txtObject) {
|
|
724
|
-
function genPoints(x, y, width, height, cut) {
|
|
725
|
-
return x + "," + y + " " + (x + width) + "," + y + " " + (x + width) + "," + (y + height - cut) + " " + (x + width - cut * 1.2) + "," + (y + height) + " " + x + "," + (y + height);
|
|
726
|
-
}
|
|
727
|
-
__name(genPoints, "genPoints");
|
|
728
|
-
const polygon = elem.append("polygon");
|
|
729
|
-
polygon.attr("points", genPoints(txtObject.x, txtObject.y, 50, 20, 7));
|
|
730
|
-
polygon.attr("class", "labelBox");
|
|
731
|
-
txtObject.y = txtObject.y + txtObject.labelMargin;
|
|
732
|
-
txtObject.x = txtObject.x + 0.5 * txtObject.labelMargin;
|
|
733
|
-
drawText(elem, txtObject);
|
|
734
|
-
}, "drawLabel");
|
|
735
|
-
var drawSection = /* @__PURE__ */ __name(function(elem, section, conf) {
|
|
736
|
-
const g = elem.append("g");
|
|
737
|
-
const rect = getNoteRect();
|
|
738
|
-
rect.x = section.x;
|
|
739
|
-
rect.y = section.y;
|
|
740
|
-
rect.fill = section.fill;
|
|
741
|
-
rect.width = conf.width;
|
|
742
|
-
rect.height = conf.height;
|
|
743
|
-
rect.class = "journey-section section-type-" + section.num;
|
|
744
|
-
rect.rx = 3;
|
|
745
|
-
rect.ry = 3;
|
|
746
|
-
drawRect(g, rect);
|
|
747
|
-
_drawTextCandidateFunc(conf)(
|
|
748
|
-
section.text,
|
|
749
|
-
g,
|
|
750
|
-
rect.x,
|
|
751
|
-
rect.y,
|
|
752
|
-
rect.width,
|
|
753
|
-
rect.height,
|
|
754
|
-
{ class: "journey-section section-type-" + section.num },
|
|
755
|
-
conf,
|
|
756
|
-
section.colour
|
|
757
|
-
);
|
|
758
|
-
}, "drawSection");
|
|
759
|
-
var taskCount = -1;
|
|
760
|
-
var drawTask = /* @__PURE__ */ __name(function(elem, task, conf) {
|
|
761
|
-
const center = task.x + conf.width / 2;
|
|
762
|
-
const g = elem.append("g");
|
|
763
|
-
taskCount++;
|
|
764
|
-
const maxHeight = 300 + 5 * 30;
|
|
765
|
-
g.append("line").attr("id", "task" + taskCount).attr("x1", center).attr("y1", task.y).attr("x2", center).attr("y2", maxHeight).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666");
|
|
766
|
-
drawFace(g, {
|
|
767
|
-
cx: center,
|
|
768
|
-
cy: 300 + (5 - task.score) * 30,
|
|
769
|
-
score: task.score
|
|
770
|
-
});
|
|
771
|
-
const rect = getNoteRect();
|
|
772
|
-
rect.x = task.x;
|
|
773
|
-
rect.y = task.y;
|
|
774
|
-
rect.fill = task.fill;
|
|
775
|
-
rect.width = conf.width;
|
|
776
|
-
rect.height = conf.height;
|
|
777
|
-
rect.class = "task task-type-" + task.num;
|
|
778
|
-
rect.rx = 3;
|
|
779
|
-
rect.ry = 3;
|
|
780
|
-
drawRect(g, rect);
|
|
781
|
-
_drawTextCandidateFunc(conf)(
|
|
782
|
-
task.task,
|
|
783
|
-
g,
|
|
784
|
-
rect.x,
|
|
785
|
-
rect.y,
|
|
786
|
-
rect.width,
|
|
787
|
-
rect.height,
|
|
788
|
-
{ class: "task" },
|
|
789
|
-
conf,
|
|
790
|
-
task.colour
|
|
791
|
-
);
|
|
792
|
-
}, "drawTask");
|
|
793
|
-
var drawBackgroundRect = /* @__PURE__ */ __name(function(elem, bounds) {
|
|
794
|
-
const rectElem = drawRect(elem, {
|
|
795
|
-
x: bounds.startx,
|
|
796
|
-
y: bounds.starty,
|
|
797
|
-
width: bounds.stopx - bounds.startx,
|
|
798
|
-
height: bounds.stopy - bounds.starty,
|
|
799
|
-
fill: bounds.fill,
|
|
800
|
-
class: "rect"
|
|
801
|
-
});
|
|
802
|
-
rectElem.lower();
|
|
803
|
-
}, "drawBackgroundRect");
|
|
804
|
-
var getTextObj = /* @__PURE__ */ __name(function() {
|
|
805
|
-
return {
|
|
806
|
-
x: 0,
|
|
807
|
-
y: 0,
|
|
808
|
-
fill: void 0,
|
|
809
|
-
"text-anchor": "start",
|
|
810
|
-
width: 100,
|
|
811
|
-
height: 100,
|
|
812
|
-
textMargin: 0,
|
|
813
|
-
rx: 0,
|
|
814
|
-
ry: 0
|
|
815
|
-
};
|
|
816
|
-
}, "getTextObj");
|
|
817
|
-
var getNoteRect = /* @__PURE__ */ __name(function() {
|
|
818
|
-
return {
|
|
819
|
-
x: 0,
|
|
820
|
-
y: 0,
|
|
821
|
-
width: 100,
|
|
822
|
-
anchor: "start",
|
|
823
|
-
height: 100,
|
|
824
|
-
rx: 0,
|
|
825
|
-
ry: 0
|
|
826
|
-
};
|
|
827
|
-
}, "getNoteRect");
|
|
828
|
-
var _drawTextCandidateFunc = /* @__PURE__ */ function() {
|
|
829
|
-
function byText(content, g, x, y, width, height, textAttrs, colour) {
|
|
830
|
-
const text = g.append("text").attr("x", x + width / 2).attr("y", y + height / 2 + 5).style("font-color", colour).style("text-anchor", "middle").text(content);
|
|
831
|
-
_setTextAttrs(text, textAttrs);
|
|
832
|
-
}
|
|
833
|
-
__name(byText, "byText");
|
|
834
|
-
function byTspan(content, g, x, y, width, height, textAttrs, conf, colour) {
|
|
835
|
-
const { taskFontSize, taskFontFamily } = conf;
|
|
836
|
-
const lines = content.split(/<br\s*\/?>/gi);
|
|
837
|
-
for (let i = 0; i < lines.length; i++) {
|
|
838
|
-
const dy = i * taskFontSize - taskFontSize * (lines.length - 1) / 2;
|
|
839
|
-
const text = g.append("text").attr("x", x + width / 2).attr("y", y).attr("fill", colour).style("text-anchor", "middle").style("font-size", taskFontSize).style("font-family", taskFontFamily);
|
|
840
|
-
text.append("tspan").attr("x", x + width / 2).attr("dy", dy).text(lines[i]);
|
|
841
|
-
text.attr("y", y + height / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central");
|
|
842
|
-
_setTextAttrs(text, textAttrs);
|
|
843
|
-
}
|
|
844
|
-
}
|
|
845
|
-
__name(byTspan, "byTspan");
|
|
846
|
-
function byFo(content, g, x, y, width, height, textAttrs, conf) {
|
|
847
|
-
const body = g.append("switch");
|
|
848
|
-
const f = body.append("foreignObject").attr("x", x).attr("y", y).attr("width", width).attr("height", height).attr("position", "fixed");
|
|
849
|
-
const text = f.append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
|
|
850
|
-
text.append("div").attr("class", "label").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(content);
|
|
851
|
-
byTspan(content, body, x, y, width, height, textAttrs, conf);
|
|
852
|
-
_setTextAttrs(text, textAttrs);
|
|
853
|
-
}
|
|
854
|
-
__name(byFo, "byFo");
|
|
855
|
-
function _setTextAttrs(toText, fromTextAttrsDict) {
|
|
856
|
-
for (const key in fromTextAttrsDict) {
|
|
857
|
-
if (key in fromTextAttrsDict) {
|
|
858
|
-
toText.attr(key, fromTextAttrsDict[key]);
|
|
859
|
-
}
|
|
860
|
-
}
|
|
861
|
-
}
|
|
862
|
-
__name(_setTextAttrs, "_setTextAttrs");
|
|
863
|
-
return function(conf) {
|
|
864
|
-
return conf.textPlacement === "fo" ? byFo : conf.textPlacement === "old" ? byText : byTspan;
|
|
865
|
-
};
|
|
866
|
-
}();
|
|
867
|
-
var initGraphics = /* @__PURE__ */ __name(function(graphics) {
|
|
868
|
-
graphics.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");
|
|
869
|
-
}, "initGraphics");
|
|
870
|
-
function wrap(text, width) {
|
|
871
|
-
text.each(function() {
|
|
872
|
-
var text2 = select_default(this), words = text2.text().split(/(\s+|<br>)/).reverse(), word, line = [], lineHeight = 1.1, y = text2.attr("y"), dy = parseFloat(text2.attr("dy")), tspan = text2.text(null).append("tspan").attr("x", 0).attr("y", y).attr("dy", dy + "em");
|
|
873
|
-
for (let j = 0; j < words.length; j++) {
|
|
874
|
-
word = words[words.length - 1 - j];
|
|
875
|
-
line.push(word);
|
|
876
|
-
tspan.text(line.join(" ").trim());
|
|
877
|
-
if (tspan.node().getComputedTextLength() > width || word === "<br>") {
|
|
878
|
-
line.pop();
|
|
879
|
-
tspan.text(line.join(" ").trim());
|
|
880
|
-
if (word === "<br>") {
|
|
881
|
-
line = [""];
|
|
882
|
-
} else {
|
|
883
|
-
line = [word];
|
|
884
|
-
}
|
|
885
|
-
tspan = text2.append("tspan").attr("x", 0).attr("y", y).attr("dy", lineHeight + "em").text(word);
|
|
886
|
-
}
|
|
887
|
-
}
|
|
888
|
-
});
|
|
889
|
-
}
|
|
890
|
-
__name(wrap, "wrap");
|
|
891
|
-
var drawNode = /* @__PURE__ */ __name(function(elem, node, fullSection, conf) {
|
|
892
|
-
const section = fullSection % MAX_SECTIONS - 1;
|
|
893
|
-
const nodeElem = elem.append("g");
|
|
894
|
-
node.section = section;
|
|
895
|
-
nodeElem.attr(
|
|
896
|
-
"class",
|
|
897
|
-
(node.class ? node.class + " " : "") + "timeline-node " + ("section-" + section)
|
|
898
|
-
);
|
|
899
|
-
const bkgElem = nodeElem.append("g");
|
|
900
|
-
const textElem = nodeElem.append("g");
|
|
901
|
-
const txt = textElem.append("text").text(node.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(wrap, node.width);
|
|
902
|
-
const bbox = txt.node().getBBox();
|
|
903
|
-
const fontSize = conf.fontSize?.replace ? conf.fontSize.replace("px", "") : conf.fontSize;
|
|
904
|
-
node.height = bbox.height + fontSize * 1.1 * 0.5 + node.padding;
|
|
905
|
-
node.height = Math.max(node.height, node.maxHeight);
|
|
906
|
-
node.width = node.width + 2 * node.padding;
|
|
907
|
-
textElem.attr("transform", "translate(" + node.width / 2 + ", " + node.padding / 2 + ")");
|
|
908
|
-
defaultBkg(bkgElem, node, section, conf);
|
|
909
|
-
return node;
|
|
910
|
-
}, "drawNode");
|
|
911
|
-
var getVirtualNodeHeight = /* @__PURE__ */ __name(function(elem, node, conf) {
|
|
912
|
-
const textElem = elem.append("g");
|
|
913
|
-
const txt = textElem.append("text").text(node.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(wrap, node.width);
|
|
914
|
-
const bbox = txt.node().getBBox();
|
|
915
|
-
const fontSize = conf.fontSize?.replace ? conf.fontSize.replace("px", "") : conf.fontSize;
|
|
916
|
-
textElem.remove();
|
|
917
|
-
return bbox.height + fontSize * 1.1 * 0.5 + node.padding;
|
|
918
|
-
}, "getVirtualNodeHeight");
|
|
919
|
-
var defaultBkg = /* @__PURE__ */ __name(function(elem, node, section) {
|
|
920
|
-
const rd = 5;
|
|
921
|
-
elem.append("path").attr("id", "node-" + node.id).attr("class", "node-bkg node-" + node.type).attr(
|
|
922
|
-
"d",
|
|
923
|
-
`M0 ${node.height - rd} v${-node.height + 2 * rd} q0,-5 5,-5 h${node.width - 2 * rd} q5,0 5,5 v${node.height - rd} H0 Z`
|
|
924
|
-
);
|
|
925
|
-
elem.append("line").attr("class", "node-line-" + section).attr("x1", 0).attr("y1", node.height).attr("x2", node.width).attr("y2", node.height);
|
|
926
|
-
}, "defaultBkg");
|
|
927
|
-
var svgDraw_default = {
|
|
928
|
-
drawRect,
|
|
929
|
-
drawCircle,
|
|
930
|
-
drawSection,
|
|
931
|
-
drawText,
|
|
932
|
-
drawLabel,
|
|
933
|
-
drawTask,
|
|
934
|
-
drawBackgroundRect,
|
|
935
|
-
getTextObj,
|
|
936
|
-
getNoteRect,
|
|
937
|
-
initGraphics,
|
|
938
|
-
drawNode,
|
|
939
|
-
getVirtualNodeHeight
|
|
940
|
-
};
|
|
941
|
-
var draw = /* @__PURE__ */ __name(function(text, id, version, diagObj) {
|
|
942
|
-
const conf = getConfig2();
|
|
943
|
-
const LEFT_MARGIN = conf.timeline?.leftMargin ?? 50;
|
|
944
|
-
log.debug("timeline", diagObj.db);
|
|
945
|
-
const securityLevel = conf.securityLevel;
|
|
946
|
-
let sandboxElement;
|
|
947
|
-
if (securityLevel === "sandbox") {
|
|
948
|
-
sandboxElement = select_default("#i" + id);
|
|
949
|
-
}
|
|
950
|
-
const root = securityLevel === "sandbox" ? select_default(sandboxElement.nodes()[0].contentDocument.body) : select_default("body");
|
|
951
|
-
const svg = root.select("#" + id);
|
|
952
|
-
svg.append("g");
|
|
953
|
-
const tasks2 = diagObj.db.getTasks();
|
|
954
|
-
const title = diagObj.db.getCommonDb().getDiagramTitle();
|
|
955
|
-
log.debug("task", tasks2);
|
|
956
|
-
svgDraw_default.initGraphics(svg);
|
|
957
|
-
const sections2 = diagObj.db.getSections();
|
|
958
|
-
log.debug("sections", sections2);
|
|
959
|
-
let maxSectionHeight = 0;
|
|
960
|
-
let maxTaskHeight = 0;
|
|
961
|
-
let depthY = 0;
|
|
962
|
-
let sectionBeginY = 0;
|
|
963
|
-
let masterX = 50 + LEFT_MARGIN;
|
|
964
|
-
let masterY = 50;
|
|
965
|
-
sectionBeginY = 50;
|
|
966
|
-
let sectionNumber = 0;
|
|
967
|
-
let hasSections = true;
|
|
968
|
-
sections2.forEach(function(section) {
|
|
969
|
-
const sectionNode = {
|
|
970
|
-
number: sectionNumber,
|
|
971
|
-
descr: section,
|
|
972
|
-
section: sectionNumber,
|
|
973
|
-
width: 150,
|
|
974
|
-
padding: 20,
|
|
975
|
-
maxHeight: maxSectionHeight
|
|
976
|
-
};
|
|
977
|
-
const sectionHeight = svgDraw_default.getVirtualNodeHeight(svg, sectionNode, conf);
|
|
978
|
-
log.debug("sectionHeight before draw", sectionHeight);
|
|
979
|
-
maxSectionHeight = Math.max(maxSectionHeight, sectionHeight + 20);
|
|
980
|
-
});
|
|
981
|
-
let maxEventCount = 0;
|
|
982
|
-
let maxEventLineLength = 0;
|
|
983
|
-
log.debug("tasks.length", tasks2.length);
|
|
984
|
-
for (const [i, task] of tasks2.entries()) {
|
|
985
|
-
const taskNode = {
|
|
986
|
-
number: i,
|
|
987
|
-
descr: task,
|
|
988
|
-
section: task.section,
|
|
989
|
-
width: 150,
|
|
990
|
-
padding: 20,
|
|
991
|
-
maxHeight: maxTaskHeight
|
|
992
|
-
};
|
|
993
|
-
const taskHeight = svgDraw_default.getVirtualNodeHeight(svg, taskNode, conf);
|
|
994
|
-
log.debug("taskHeight before draw", taskHeight);
|
|
995
|
-
maxTaskHeight = Math.max(maxTaskHeight, taskHeight + 20);
|
|
996
|
-
maxEventCount = Math.max(maxEventCount, task.events.length);
|
|
997
|
-
let maxEventLineLengthTemp = 0;
|
|
998
|
-
for (const event of task.events) {
|
|
999
|
-
const eventNode = {
|
|
1000
|
-
descr: event,
|
|
1001
|
-
section: task.section,
|
|
1002
|
-
number: task.section,
|
|
1003
|
-
width: 150,
|
|
1004
|
-
padding: 20,
|
|
1005
|
-
maxHeight: 50
|
|
1006
|
-
};
|
|
1007
|
-
maxEventLineLengthTemp += svgDraw_default.getVirtualNodeHeight(svg, eventNode, conf);
|
|
1008
|
-
}
|
|
1009
|
-
if (task.events.length > 0) {
|
|
1010
|
-
maxEventLineLengthTemp += (task.events.length - 1) * 10;
|
|
1011
|
-
}
|
|
1012
|
-
maxEventLineLength = Math.max(maxEventLineLength, maxEventLineLengthTemp);
|
|
1013
|
-
}
|
|
1014
|
-
log.debug("maxSectionHeight before draw", maxSectionHeight);
|
|
1015
|
-
log.debug("maxTaskHeight before draw", maxTaskHeight);
|
|
1016
|
-
if (sections2 && sections2.length > 0) {
|
|
1017
|
-
sections2.forEach((section) => {
|
|
1018
|
-
const tasksForSection = tasks2.filter((task) => task.section === section);
|
|
1019
|
-
const sectionNode = {
|
|
1020
|
-
number: sectionNumber,
|
|
1021
|
-
descr: section,
|
|
1022
|
-
section: sectionNumber,
|
|
1023
|
-
width: 200 * Math.max(tasksForSection.length, 1) - 50,
|
|
1024
|
-
padding: 20,
|
|
1025
|
-
maxHeight: maxSectionHeight
|
|
1026
|
-
};
|
|
1027
|
-
log.debug("sectionNode", sectionNode);
|
|
1028
|
-
const sectionNodeWrapper = svg.append("g");
|
|
1029
|
-
const node = svgDraw_default.drawNode(sectionNodeWrapper, sectionNode, sectionNumber, conf);
|
|
1030
|
-
log.debug("sectionNode output", node);
|
|
1031
|
-
sectionNodeWrapper.attr("transform", `translate(${masterX}, ${sectionBeginY})`);
|
|
1032
|
-
masterY += maxSectionHeight + 50;
|
|
1033
|
-
if (tasksForSection.length > 0) {
|
|
1034
|
-
drawTasks(
|
|
1035
|
-
svg,
|
|
1036
|
-
tasksForSection,
|
|
1037
|
-
sectionNumber,
|
|
1038
|
-
masterX,
|
|
1039
|
-
masterY,
|
|
1040
|
-
maxTaskHeight,
|
|
1041
|
-
conf,
|
|
1042
|
-
maxEventCount,
|
|
1043
|
-
maxEventLineLength,
|
|
1044
|
-
maxSectionHeight,
|
|
1045
|
-
false
|
|
1046
|
-
);
|
|
1047
|
-
}
|
|
1048
|
-
masterX += 200 * Math.max(tasksForSection.length, 1);
|
|
1049
|
-
masterY = sectionBeginY;
|
|
1050
|
-
sectionNumber++;
|
|
1051
|
-
});
|
|
1052
|
-
} else {
|
|
1053
|
-
hasSections = false;
|
|
1054
|
-
drawTasks(
|
|
1055
|
-
svg,
|
|
1056
|
-
tasks2,
|
|
1057
|
-
sectionNumber,
|
|
1058
|
-
masterX,
|
|
1059
|
-
masterY,
|
|
1060
|
-
maxTaskHeight,
|
|
1061
|
-
conf,
|
|
1062
|
-
maxEventCount,
|
|
1063
|
-
maxEventLineLength,
|
|
1064
|
-
maxSectionHeight,
|
|
1065
|
-
true
|
|
1066
|
-
);
|
|
1067
|
-
}
|
|
1068
|
-
const box = svg.node().getBBox();
|
|
1069
|
-
log.debug("bounds", box);
|
|
1070
|
-
if (title) {
|
|
1071
|
-
svg.append("text").text(title).attr("x", box.width / 2 - LEFT_MARGIN).attr("font-size", "4ex").attr("font-weight", "bold").attr("y", 20);
|
|
1072
|
-
}
|
|
1073
|
-
depthY = hasSections ? maxSectionHeight + maxTaskHeight + 150 : maxTaskHeight + 100;
|
|
1074
|
-
const lineWrapper = svg.append("g").attr("class", "lineWrapper");
|
|
1075
|
-
lineWrapper.append("line").attr("x1", LEFT_MARGIN).attr("y1", depthY).attr("x2", box.width + 3 * LEFT_MARGIN).attr("y2", depthY).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", "url(#arrowhead)");
|
|
1076
|
-
setupGraphViewbox(
|
|
1077
|
-
void 0,
|
|
1078
|
-
svg,
|
|
1079
|
-
conf.timeline?.padding ?? 50,
|
|
1080
|
-
conf.timeline?.useMaxWidth ?? false
|
|
1081
|
-
);
|
|
1082
|
-
}, "draw");
|
|
1083
|
-
var drawTasks = /* @__PURE__ */ __name(function(diagram2, tasks2, sectionColor, masterX, masterY, maxTaskHeight, conf, maxEventCount, maxEventLineLength, maxSectionHeight, isWithoutSections) {
|
|
1084
|
-
for (const task of tasks2) {
|
|
1085
|
-
const taskNode = {
|
|
1086
|
-
descr: task.task,
|
|
1087
|
-
section: sectionColor,
|
|
1088
|
-
number: sectionColor,
|
|
1089
|
-
width: 150,
|
|
1090
|
-
padding: 20,
|
|
1091
|
-
maxHeight: maxTaskHeight
|
|
1092
|
-
};
|
|
1093
|
-
log.debug("taskNode", taskNode);
|
|
1094
|
-
const taskWrapper = diagram2.append("g").attr("class", "taskWrapper");
|
|
1095
|
-
const node = svgDraw_default.drawNode(taskWrapper, taskNode, sectionColor, conf);
|
|
1096
|
-
const taskHeight = node.height;
|
|
1097
|
-
log.debug("taskHeight after draw", taskHeight);
|
|
1098
|
-
taskWrapper.attr("transform", `translate(${masterX}, ${masterY})`);
|
|
1099
|
-
maxTaskHeight = Math.max(maxTaskHeight, taskHeight);
|
|
1100
|
-
if (task.events) {
|
|
1101
|
-
const lineWrapper = diagram2.append("g").attr("class", "lineWrapper");
|
|
1102
|
-
let lineLength = maxTaskHeight;
|
|
1103
|
-
masterY += 100;
|
|
1104
|
-
lineLength = lineLength + drawEvents(diagram2, task.events, sectionColor, masterX, masterY, conf);
|
|
1105
|
-
masterY -= 100;
|
|
1106
|
-
lineWrapper.append("line").attr("x1", masterX + 190 / 2).attr("y1", masterY + maxTaskHeight).attr("x2", masterX + 190 / 2).attr("y2", masterY + maxTaskHeight + 100 + maxEventLineLength + 100).attr("stroke-width", 2).attr("stroke", "black").attr("marker-end", "url(#arrowhead)").attr("stroke-dasharray", "5,5");
|
|
1107
|
-
}
|
|
1108
|
-
masterX = masterX + 200;
|
|
1109
|
-
if (isWithoutSections && !conf.timeline?.disableMulticolor) {
|
|
1110
|
-
sectionColor++;
|
|
1111
|
-
}
|
|
1112
|
-
}
|
|
1113
|
-
masterY = masterY - 10;
|
|
1114
|
-
}, "drawTasks");
|
|
1115
|
-
var drawEvents = /* @__PURE__ */ __name(function(diagram2, events, sectionColor, masterX, masterY, conf) {
|
|
1116
|
-
let maxEventHeight = 0;
|
|
1117
|
-
const eventBeginY = masterY;
|
|
1118
|
-
masterY = masterY + 100;
|
|
1119
|
-
for (const event of events) {
|
|
1120
|
-
const eventNode = {
|
|
1121
|
-
descr: event,
|
|
1122
|
-
section: sectionColor,
|
|
1123
|
-
number: sectionColor,
|
|
1124
|
-
width: 150,
|
|
1125
|
-
padding: 20,
|
|
1126
|
-
maxHeight: 50
|
|
1127
|
-
};
|
|
1128
|
-
log.debug("eventNode", eventNode);
|
|
1129
|
-
const eventWrapper = diagram2.append("g").attr("class", "eventWrapper");
|
|
1130
|
-
const node = svgDraw_default.drawNode(eventWrapper, eventNode, sectionColor, conf);
|
|
1131
|
-
const eventHeight = node.height;
|
|
1132
|
-
maxEventHeight = maxEventHeight + eventHeight;
|
|
1133
|
-
eventWrapper.attr("transform", `translate(${masterX}, ${masterY})`);
|
|
1134
|
-
masterY = masterY + 10 + eventHeight;
|
|
1135
|
-
}
|
|
1136
|
-
masterY = eventBeginY;
|
|
1137
|
-
return maxEventHeight;
|
|
1138
|
-
}, "drawEvents");
|
|
1139
|
-
var timelineRenderer_default = {
|
|
1140
|
-
setConf: /* @__PURE__ */ __name(() => {
|
|
1141
|
-
}, "setConf"),
|
|
1142
|
-
draw
|
|
1143
|
-
};
|
|
1144
|
-
var genSections = /* @__PURE__ */ __name((options) => {
|
|
1145
|
-
let sections2 = "";
|
|
1146
|
-
for (let i = 0; i < options.THEME_COLOR_LIMIT; i++) {
|
|
1147
|
-
options["lineColor" + i] = options["lineColor" + i] || options["cScaleInv" + i];
|
|
1148
|
-
if (is_dark_default(options["lineColor" + i])) {
|
|
1149
|
-
options["lineColor" + i] = lighten_default(options["lineColor" + i], 20);
|
|
1150
|
-
} else {
|
|
1151
|
-
options["lineColor" + i] = darken_default(options["lineColor" + i], 20);
|
|
1152
|
-
}
|
|
1153
|
-
}
|
|
1154
|
-
for (let i = 0; i < options.THEME_COLOR_LIMIT; i++) {
|
|
1155
|
-
const sw = "" + (17 - 3 * i);
|
|
1156
|
-
sections2 += `
|
|
1157
|
-
.section-${i - 1} rect, .section-${i - 1} path, .section-${i - 1} circle, .section-${i - 1} path {
|
|
1158
|
-
fill: ${options["cScale" + i]};
|
|
1159
|
-
}
|
|
1160
|
-
.section-${i - 1} text {
|
|
1161
|
-
fill: ${options["cScaleLabel" + i]};
|
|
1162
|
-
}
|
|
1163
|
-
.node-icon-${i - 1} {
|
|
1164
|
-
font-size: 40px;
|
|
1165
|
-
color: ${options["cScaleLabel" + i]};
|
|
1166
|
-
}
|
|
1167
|
-
.section-edge-${i - 1}{
|
|
1168
|
-
stroke: ${options["cScale" + i]};
|
|
1169
|
-
}
|
|
1170
|
-
.edge-depth-${i - 1}{
|
|
1171
|
-
stroke-width: ${sw};
|
|
1172
|
-
}
|
|
1173
|
-
.section-${i - 1} line {
|
|
1174
|
-
stroke: ${options["cScaleInv" + i]} ;
|
|
1175
|
-
stroke-width: 3;
|
|
1176
|
-
}
|
|
1177
|
-
|
|
1178
|
-
.lineWrapper line{
|
|
1179
|
-
stroke: ${options["cScaleLabel" + i]} ;
|
|
1180
|
-
}
|
|
1181
|
-
|
|
1182
|
-
.disabled, .disabled circle, .disabled text {
|
|
1183
|
-
fill: lightgray;
|
|
1184
|
-
}
|
|
1185
|
-
.disabled text {
|
|
1186
|
-
fill: #efefef;
|
|
1187
|
-
}
|
|
1188
|
-
`;
|
|
1189
|
-
}
|
|
1190
|
-
return sections2;
|
|
1191
|
-
}, "genSections");
|
|
1192
|
-
var getStyles = /* @__PURE__ */ __name((options) => `
|
|
1193
|
-
.edge {
|
|
1194
|
-
stroke-width: 3;
|
|
1195
|
-
}
|
|
1196
|
-
${genSections(options)}
|
|
1197
|
-
.section-root rect, .section-root path, .section-root circle {
|
|
1198
|
-
fill: ${options.git0};
|
|
1199
|
-
}
|
|
1200
|
-
.section-root text {
|
|
1201
|
-
fill: ${options.gitBranchLabel0};
|
|
1202
|
-
}
|
|
1203
|
-
.icon-container {
|
|
1204
|
-
height:100%;
|
|
1205
|
-
display: flex;
|
|
1206
|
-
justify-content: center;
|
|
1207
|
-
align-items: center;
|
|
1208
|
-
}
|
|
1209
|
-
.edge {
|
|
1210
|
-
fill: none;
|
|
1211
|
-
}
|
|
1212
|
-
.eventWrapper {
|
|
1213
|
-
filter: brightness(120%);
|
|
1214
|
-
}
|
|
1215
|
-
`, "getStyles");
|
|
1216
|
-
var styles_default = getStyles;
|
|
1217
|
-
var diagram = {
|
|
1218
|
-
db: timelineDb_exports,
|
|
1219
|
-
renderer: timelineRenderer_default,
|
|
1220
|
-
parser: timeline_default,
|
|
1221
|
-
styles: styles_default
|
|
1222
|
-
};
|
|
1223
|
-
|
|
1224
|
-
export { diagram };
|
|
1225
|
-
//# sourceMappingURL=timeline-definition-IT6M3QCI-PX4A2RIH.mjs.map
|
|
1226
|
-
//# sourceMappingURL=timeline-definition-IT6M3QCI-PX4A2RIH.mjs.map
|