@kong-ui-public/documentation 0.8.27-pr.2132.c7fba69a4.0 → 0.8.27
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/_basePickBy-DF_KwdVi-HVXnmpaQ.js +151 -0
- package/dist/_baseUniq-DefQzZRT-CTix3bMY.js +614 -0
- package/dist/arc-B4xWw-B6-BGnuysbe.js +83 -0
- package/dist/architecture-I3QFYML2-7TNhn42L-52ENK4nk.js +5 -0
- package/dist/architectureDiagram-UYN6MBPD-Bg70hFZ--BirbHF75.js +4592 -0
- package/dist/astro-Uf8_VxKJ-CZxoSljj.js +16 -0
- package/dist/blockDiagram-ZHA2E4KO-Ylh05M-x-AVJfewxx.js +2247 -0
- package/dist/c-DASdrs7p-DASdrs7p.js +6 -0
- package/dist/c4Diagram-6F5ED5ID-BA0B_CmS-WdUKqC7Z.js +1581 -0
- package/dist/channel-B5uWur4x-BHu9WG2d.js +5 -0
- package/dist/chunk-5HRBRIJM-B7MbirM8-YDLjZbXN.js +24 -0
- package/dist/chunk-7U56Z5CX-CfNu7Hr2-BQzILIp1.js +1213 -0
- package/dist/chunk-ASOPGD6M-CwvgmaRl-BZAjlsEd.js +64 -0
- package/dist/chunk-KFBOBJHC-BB675Bua-GRhe6aGs.js +15 -0
- package/dist/chunk-T2TOU4HS-BgV1wucS-5Sa82KgW.js +1301 -0
- package/dist/chunk-TMUBEWPD-C22TGOO0-Bl2u--DY.js +9 -0
- package/dist/classDiagram-LNE6IOMH-D5SiSVyM-BbV9LB8E.js +14 -0
- package/dist/classDiagram-v2-MQ7JQ4JX-D5SiSVyM-BbV9LB8E.js +14 -0
- package/dist/clone-CmU1hwye-Lu5-ol5h.js +8 -0
- package/dist/csharp-CYWRhZ2R-CYWRhZ2R.js +6 -0
- package/dist/css-D1aVdRIU-D1aVdRIU.js +6 -0
- package/dist/csv-DvCncUGQ-Tno401i9.js +6 -0
- package/dist/cytoscape.esm-DAyNQ0qu-B7WxGuVh.js +16110 -0
- package/dist/dagre-4EVJKHTY-DMTVcQfE-C1Tr0EYY.js +447 -0
- package/dist/diagram-QW4FP2JN-jc61JuWr-DOMFELfS.js +126 -0
- package/dist/diff-XmNrvgM1-XmNrvgM1.js +6 -0
- package/dist/docker-DWH2onkn-DWH2onkn.js +6 -0
- package/dist/documentation.es.js +7 -0
- package/dist/documentation.umd.js +2404 -0
- package/dist/erDiagram-6RL3IURR-1byskxwI-B-wzYh8R.js +937 -0
- package/dist/flowDiagram-7ASYPVHJ-B3phEI8o-CVXSVDmh.js +1484 -0
- package/dist/ganttDiagram-NTVNEXSI-vYnO_T5c-Ccxkb7aQ.js +2491 -0
- package/dist/git-commit-BspYIY3P-VkbIfR3L.js +8 -0
- package/dist/git-rebase--zLBTjUa-DEW2tfKx.js +8 -0
- package/dist/gitGraph-YCYPL57B-DPx67Iu5-BPrLSH0g.js +5 -0
- package/dist/gitGraphDiagram-NRZ2UAAF-BHxB7Gjs-CeRxz6oW.js +712 -0
- package/dist/go-BErP6iv1-BErP6iv1.js +6 -0
- package/dist/graph-_eClejaU-DigE4Bf5.js +247 -0
- package/dist/graphql-DWpQF4JI-C-3VJmtp.js +14 -0
- package/dist/haml-CMN0hQaL-BV5BsZTy.js +10 -0
- package/dist/handlebars-Cc-7fXX5-B9YgDKzT.js +14 -0
- package/dist/haskell-CtlGos0K-CtlGos0K.js +6 -0
- package/dist/html-B0P_v3yU-BojM9zZg.js +10 -0
- package/dist/html-derivative-BJFFAxYV-iD6NAoKm.js +8 -0
- package/dist/http-Dcjm_K1m-1LFSbOE1.js +14 -0
- package/dist/index-B_RqyDIa.js +37033 -0
- package/dist/info-46DW6VJ7-DeIQKKyY-CVPexu5P.js +5 -0
- package/dist/infoDiagram-A4XQUW5V-Cx0WE_JZ-B_t8JIcX.js +22 -0
- package/dist/ini-BUcvsX-U-BUcvsX-U.js +6 -0
- package/dist/init-DjUOC4st-C8Nwz6AJ.js +16 -0
- package/dist/java-B7odJ7Ap-B7odJ7Ap.js +6 -0
- package/dist/javascript-fa8UlHZE-fa8UlHZE.js +6 -0
- package/dist/journeyDiagram-G5WM74LC-CUWL5R5G-DWlpHybW.js +810 -0
- package/dist/json-71t8ZF9g-71t8ZF9g.js +6 -0
- package/dist/json5-Z7F6rA6a-Z7F6rA6a.js +6 -0
- package/dist/jsonc-Dphhs4m2-Dphhs4m2.js +6 -0
- package/dist/jsonl-D9jj92Gg-D9jj92Gg.js +6 -0
- package/dist/jsx-Bkesy5tT-Bkesy5tT.js +6 -0
- package/dist/kanban-definition-QRCXZQQD-r5CdvT2h-BUkOeUnm.js +718 -0
- package/dist/katex-Qk2jHgyB-CF_fuFJb.js +11637 -0
- package/dist/kotlin-DCgZY7Ii-DCgZY7Ii.js +6 -0
- package/dist/latex-CZXk8SiZ-DbjDPp_f.js +11 -0
- package/dist/layout-DfjmtgNY-Bw6LFOXt.js +1321 -0
- package/dist/less-DQA4v-Nm-DQA4v-Nm.js +6 -0
- package/dist/linear-BGmbGdcc-C--Nxp9Q.js +423 -0
- package/dist/liquid-CvufO3kO-D90bBAdm.js +14 -0
- package/dist/lua-BVfhNLDr-DAa90qLN.js +8 -0
- package/dist/make-BjuHP00g-BjuHP00g.js +6 -0
- package/dist/markdown-B6guhLWd-B6guhLWd.js +6 -0
- package/dist/material-theme-lighter-BUBw43Yz-BUBw43Yz.js +4 -0
- package/dist/material-theme-palenight-C1RVm8K1-C1RVm8K1.js +4 -0
- package/dist/mdc-Bq810vct-Dr8CpN8f.js +12 -0
- package/dist/mdx-DIoECIFU-DIoECIFU.js +6 -0
- package/dist/mermaid-BZ7WHNIe-BZ7WHNIe.js +6 -0
- package/dist/mermaid-parser.core-DxgZuQQq-uP-grJig.js +12400 -0
- package/dist/mindmap-definition-GWI6TPTV-DX5GL05M-B8Eu6UCe.js +3219 -0
- package/dist/nginx-Can2eAjw-DKMoypYC.js +8 -0
- package/dist/objective-c-BGg9R27G-BGg9R27G.js +6 -0
- package/dist/ordinal-DfAQgscy-BEJTu10r.js +61 -0
- package/dist/packet-W2GHVCYJ-CI_-E3C--D1lo2o0i.js +5 -0
- package/dist/pascal-l2bqd7Dz-l2bqd7Dz.js +6 -0
- package/dist/perl-DaMQyPwp-Cxx4wmV7.js +16 -0
- package/dist/php-BL3EfPBi-BZu5YwDX.js +18 -0
- package/dist/pie-BEWT4RHE-B52QOymI-BoBX6ZnD.js +5 -0
- package/dist/pieDiagram-YF2LJOPJ-IHpbN7M9-BBPOh3m7.js +161 -0
- package/dist/plsql-oVq_K_wH-oVq_K_wH.js +6 -0
- package/dist/postcss-BZ3MNRIJ-BZ3MNRIJ.js +6 -0
- package/dist/powershell-Diwyv8Eh-Diwyv8Eh.js +6 -0
- package/dist/proto-o9HLmF90-o9HLmF90.js +6 -0
- package/dist/pug-HKe4Luo3-BYb0El_4.js +12 -0
- package/dist/python-xYxLFJY--xYxLFJY-.js +6 -0
- package/dist/quadrantDiagram-OS5C2QUG-DyfTAjs0-CvYOplDG.js +1024 -0
- package/dist/r-F-9I-ITZ-F-9I-ITZ.js +6 -0
- package/dist/reg-CMUdAgIP-CMUdAgIP.js +6 -0
- package/dist/requirementDiagram-MIRIMTAZ-DpFia6HM-BNS6fGqi.js +768 -0
- package/dist/rst-B8JEEtLI-Dyxh6LOj.js +22 -0
- package/dist/ruby-FDlfLkNa-nf7VLvCK.js +50 -0
- package/dist/rust-Pc7DCsZD-Pc7DCsZD.js +6 -0
- package/dist/sankeyDiagram-Y46BX6SQ-a6p3ZaX0-Cwasp0IA.js +805 -0
- package/dist/sass-iCyS6eP9-iCyS6eP9.js +6 -0
- package/dist/scss-DhHc4lxB-D1lMETuy.js +8 -0
- package/dist/sequenceDiagram-G6AWOVSC-DlZ7du4U-z70BwBnZ.js +2274 -0
- package/dist/shellscript-Dn0-btNd-Dn0-btNd.js +6 -0
- package/dist/shellsession-8OLo3sB6-DD6AdPYk.js +8 -0
- package/dist/splunk-CTqDjQdo-CTqDjQdo.js +6 -0
- package/dist/sql-DCkt643--DCkt643-.js +6 -0
- package/dist/ssh-config-DHHGll-v-DHHGll-v.js +6 -0
- package/dist/stateDiagram-MAYHULR4-tK3TdntS-PielUO6n.js +268 -0
- package/dist/stateDiagram-v2-4JROLMXI-Ib4sJL3A--uDyhxdT.js +14 -0
- package/dist/style.css +1 -0
- package/dist/stylus-n_9f0QQ5-n_9f0QQ5.js +6 -0
- package/dist/svelte-01qw6Rxm-Cjp5Srko.js +14 -0
- package/dist/swift-BAWqNR8A-BAWqNR8A.js +6 -0
- package/dist/timeline-definition-U7ZMHBDA-Db9d-9_E-kHwjVd5T.js +804 -0
- package/dist/toml-CQSfOn0e-CQSfOn0e.js +6 -0
- package/dist/tsx-DiGsgWT8-DiGsgWT8.js +6 -0
- package/dist/twig-DxrNSc26-BIWbKTFO.js +18 -0
- package/dist/types/components/DocumentationContent.vue.d.ts +177 -0
- package/dist/types/components/DocumentationContent.vue.d.ts.map +1 -0
- package/dist/types/components/DocumentationDisplay.vue.d.ts +323 -0
- package/dist/types/components/DocumentationDisplay.vue.d.ts.map +1 -0
- package/dist/types/components/DocumentationPageEmptyState.vue.d.ts +30 -0
- package/dist/types/components/DocumentationPageEmptyState.vue.d.ts.map +1 -0
- package/dist/types/components/ProductDocumentModal.vue.d.ts +71 -0
- package/dist/types/components/ProductDocumentModal.vue.d.ts.map +1 -0
- package/dist/types/composables/index.d.ts +6 -0
- package/dist/types/composables/index.d.ts.map +1 -0
- package/dist/types/composables/useI18n.d.ts +9 -0
- package/dist/types/composables/useI18n.d.ts.map +1 -0
- package/dist/types/external-links.d.ts +5 -0
- package/dist/types/external-links.d.ts.map +1 -0
- package/dist/types/helpers.d.ts +8 -0
- package/dist/types/helpers.d.ts.map +1 -0
- package/dist/types/index.d.ts +7 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/types/document-list.d.ts +28 -0
- package/dist/types/types/document-list.d.ts.map +1 -0
- package/dist/types/types/document-modal.d.ts +8 -0
- package/dist/types/types/document-modal.d.ts.map +1 -0
- package/dist/types/types/index.d.ts +3 -0
- package/dist/types/types/index.d.ts.map +1 -0
- package/dist/typescript-buWNZFwO-buWNZFwO.js +6 -0
- package/dist/v-wa8Orrdd-wa8Orrdd.js +6 -0
- package/dist/vb-E2_-jk4M-E2_-jk4M.js +6 -0
- package/dist/viml-B-zWOd7Z-B-zWOd7Z.js +6 -0
- package/dist/vue-DdqTpW8B-BrYVXV7A.js +31 -0
- package/dist/vue-html-B9t4RWro-D1UeMTSX.js +10 -0
- package/dist/wasm-Bv5f0gKv-Bv5f0gKv.js +6 -0
- package/dist/wgsl-DnPoPGDU-DnPoPGDU.js +6 -0
- package/dist/xml-ChBsf5uy-0Ovnixsj.js +8 -0
- package/dist/xsl-BefjlXrd-CZ7IlB9K.js +8 -0
- package/dist/xychartDiagram-6QU3TZC5-L2EgHpF7-Dbx9eZ7M.js +1304 -0
- package/dist/yaml-Bbg74JKr-Bbg74JKr.js +6 -0
- package/package.json +2 -2
|
@@ -0,0 +1,1024 @@
|
|
|
1
|
+
import { _ as o, bd as _e, g as zt, aB as D, l as qt, ae as be, am as ee, a5 as Se, a6 as ke, al as Fe, a7 as Pe, a8 as ve, ar as Ce, af as vt, ag as Le } from "./index-B_RqyDIa.js";
|
|
2
|
+
import { Z as te } from "./linear-BGmbGdcc-C--Nxp9Q.js";
|
|
3
|
+
var Et = function() {
|
|
4
|
+
var t = /* @__PURE__ */ o(function(Q, n, d, c) {
|
|
5
|
+
for (d = d || {}, c = Q.length; c--; d[Q[c]] = n) ;
|
|
6
|
+
return d;
|
|
7
|
+
}, "o"), a = [1, 3], g = [1, 4], u = [1, 5], l = [1, 6], x = [1, 7], _ = [1, 4, 5, 10, 12, 13, 14, 18, 25, 35, 37, 39, 41, 42, 48, 50, 51, 52, 53, 54, 55, 56, 57, 60, 61, 63, 64, 65, 66, 67], h = [1, 4, 5, 10, 12, 13, 14, 18, 25, 28, 35, 37, 39, 41, 42, 48, 50, 51, 52, 53, 54, 55, 56, 57, 60, 61, 63, 64, 65, 66, 67], s = [55, 56, 57], b = [2, 36], p = [1, 37], m = [1, 36], T = [1, 38], y = [1, 35], f = [1, 43], q = [1, 41], H = [1, 14], C = [1, 23], ct = [1, 18], dt = [1, 19], ut = [1, 20], xt = [1, 21], gt = [1, 22], lt = [1, 24], ht = [1, 25], i = [1, 26], It = [1, 27], Wt = [1, 28], Rt = [1, 29], N = [1, 32], O = [1, 33], S = [1, 34], k = [1, 39], F = [1, 40], P = [1, 42], v = [1, 44], Y = [1, 62], M = [1, 61], L = [4, 5, 8, 10, 12, 13, 14, 18, 44, 47, 49, 55, 56, 57, 63, 64, 65, 66, 67], Bt = [1, 65], wt = [1, 66], $t = [1, 67], Ut = [1, 68], Nt = [1, 69], Ot = [1, 70], Qt = [1, 71], Xt = [1, 72], Ht = [1, 73], Yt = [1, 74], Mt = [1, 75], jt = [1, 76], W = [4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 18], K = [1, 90], J = [1, 91], Z = [1, 92], tt = [1, 99], et = [1, 93], it = [1, 96], at = [1, 94], nt = [1, 95], st = [1, 97], rt = [1, 98], _t = [1, 102], Gt = [10, 55, 56, 57], $ = [4, 5, 6, 8, 10, 11, 13, 17, 18, 19, 20, 55, 56, 57], bt = {
|
|
8
|
+
trace: /* @__PURE__ */ o(function() {
|
|
9
|
+
}, "trace"),
|
|
10
|
+
yy: {},
|
|
11
|
+
symbols_: { error: 2, idStringToken: 3, ALPHA: 4, NUM: 5, NODE_STRING: 6, DOWN: 7, MINUS: 8, DEFAULT: 9, COMMA: 10, COLON: 11, AMP: 12, BRKT: 13, MULT: 14, UNICODE_TEXT: 15, styleComponent: 16, UNIT: 17, SPACE: 18, STYLE: 19, PCT: 20, idString: 21, style: 22, stylesOpt: 23, classDefStatement: 24, CLASSDEF: 25, start: 26, eol: 27, QUADRANT: 28, document: 29, line: 30, statement: 31, axisDetails: 32, quadrantDetails: 33, points: 34, title: 35, title_value: 36, acc_title: 37, acc_title_value: 38, acc_descr: 39, acc_descr_value: 40, acc_descr_multiline_value: 41, section: 42, text: 43, point_start: 44, point_x: 45, point_y: 46, class_name: 47, "X-AXIS": 48, "AXIS-TEXT-DELIMITER": 49, "Y-AXIS": 50, QUADRANT_1: 51, QUADRANT_2: 52, QUADRANT_3: 53, QUADRANT_4: 54, NEWLINE: 55, SEMI: 56, EOF: 57, alphaNumToken: 58, textNoTagsToken: 59, STR: 60, MD_STR: 61, alphaNum: 62, PUNCTUATION: 63, PLUS: 64, EQUALS: 65, DOT: 66, UNDERSCORE: 67, $accept: 0, $end: 1 },
|
|
12
|
+
terminals_: { 2: "error", 4: "ALPHA", 5: "NUM", 6: "NODE_STRING", 7: "DOWN", 8: "MINUS", 9: "DEFAULT", 10: "COMMA", 11: "COLON", 12: "AMP", 13: "BRKT", 14: "MULT", 15: "UNICODE_TEXT", 17: "UNIT", 18: "SPACE", 19: "STYLE", 20: "PCT", 25: "CLASSDEF", 28: "QUADRANT", 35: "title", 36: "title_value", 37: "acc_title", 38: "acc_title_value", 39: "acc_descr", 40: "acc_descr_value", 41: "acc_descr_multiline_value", 42: "section", 44: "point_start", 45: "point_x", 46: "point_y", 47: "class_name", 48: "X-AXIS", 49: "AXIS-TEXT-DELIMITER", 50: "Y-AXIS", 51: "QUADRANT_1", 52: "QUADRANT_2", 53: "QUADRANT_3", 54: "QUADRANT_4", 55: "NEWLINE", 56: "SEMI", 57: "EOF", 60: "STR", 61: "MD_STR", 63: "PUNCTUATION", 64: "PLUS", 65: "EQUALS", 66: "DOT", 67: "UNDERSCORE" },
|
|
13
|
+
productions_: [0, [3, 1], [3, 1], [3, 1], [3, 1], [3, 1], [3, 1], [3, 1], [3, 1], [3, 1], [3, 1], [3, 1], [3, 1], [16, 1], [16, 1], [16, 1], [16, 1], [16, 1], [16, 1], [16, 1], [16, 1], [16, 1], [16, 1], [21, 1], [21, 2], [22, 1], [22, 2], [23, 1], [23, 3], [24, 5], [26, 2], [26, 2], [26, 2], [29, 0], [29, 2], [30, 2], [31, 0], [31, 1], [31, 2], [31, 1], [31, 1], [31, 1], [31, 2], [31, 2], [31, 2], [31, 1], [31, 1], [34, 4], [34, 5], [34, 5], [34, 6], [32, 4], [32, 3], [32, 2], [32, 4], [32, 3], [32, 2], [33, 2], [33, 2], [33, 2], [33, 2], [27, 1], [27, 1], [27, 1], [43, 1], [43, 2], [43, 1], [43, 1], [62, 1], [62, 2], [58, 1], [58, 1], [58, 1], [58, 1], [58, 1], [58, 1], [58, 1], [58, 1], [58, 1], [58, 1], [58, 1], [59, 1], [59, 1], [59, 1]],
|
|
14
|
+
performAction: /* @__PURE__ */ o(function(Q, n, d, c, A, e, R) {
|
|
15
|
+
var r = e.length - 1;
|
|
16
|
+
switch (A) {
|
|
17
|
+
case 23:
|
|
18
|
+
this.$ = e[r];
|
|
19
|
+
break;
|
|
20
|
+
case 24:
|
|
21
|
+
this.$ = e[r - 1] + "" + e[r];
|
|
22
|
+
break;
|
|
23
|
+
case 26:
|
|
24
|
+
this.$ = e[r - 1] + e[r];
|
|
25
|
+
break;
|
|
26
|
+
case 27:
|
|
27
|
+
this.$ = [e[r].trim()];
|
|
28
|
+
break;
|
|
29
|
+
case 28:
|
|
30
|
+
e[r - 2].push(e[r].trim()), this.$ = e[r - 2];
|
|
31
|
+
break;
|
|
32
|
+
case 29:
|
|
33
|
+
this.$ = e[r - 4], c.addClass(e[r - 2], e[r]);
|
|
34
|
+
break;
|
|
35
|
+
case 37:
|
|
36
|
+
this.$ = [];
|
|
37
|
+
break;
|
|
38
|
+
case 42:
|
|
39
|
+
this.$ = e[r].trim(), c.setDiagramTitle(this.$);
|
|
40
|
+
break;
|
|
41
|
+
case 43:
|
|
42
|
+
this.$ = e[r].trim(), c.setAccTitle(this.$);
|
|
43
|
+
break;
|
|
44
|
+
case 44:
|
|
45
|
+
case 45:
|
|
46
|
+
this.$ = e[r].trim(), c.setAccDescription(this.$);
|
|
47
|
+
break;
|
|
48
|
+
case 46:
|
|
49
|
+
c.addSection(e[r].substr(8)), this.$ = e[r].substr(8);
|
|
50
|
+
break;
|
|
51
|
+
case 47:
|
|
52
|
+
c.addPoint(e[r - 3], "", e[r - 1], e[r], []);
|
|
53
|
+
break;
|
|
54
|
+
case 48:
|
|
55
|
+
c.addPoint(e[r - 4], e[r - 3], e[r - 1], e[r], []);
|
|
56
|
+
break;
|
|
57
|
+
case 49:
|
|
58
|
+
c.addPoint(e[r - 4], "", e[r - 2], e[r - 1], e[r]);
|
|
59
|
+
break;
|
|
60
|
+
case 50:
|
|
61
|
+
c.addPoint(e[r - 5], e[r - 4], e[r - 2], e[r - 1], e[r]);
|
|
62
|
+
break;
|
|
63
|
+
case 51:
|
|
64
|
+
c.setXAxisLeftText(e[r - 2]), c.setXAxisRightText(e[r]);
|
|
65
|
+
break;
|
|
66
|
+
case 52:
|
|
67
|
+
e[r - 1].text += " ⟶ ", c.setXAxisLeftText(e[r - 1]);
|
|
68
|
+
break;
|
|
69
|
+
case 53:
|
|
70
|
+
c.setXAxisLeftText(e[r]);
|
|
71
|
+
break;
|
|
72
|
+
case 54:
|
|
73
|
+
c.setYAxisBottomText(e[r - 2]), c.setYAxisTopText(e[r]);
|
|
74
|
+
break;
|
|
75
|
+
case 55:
|
|
76
|
+
e[r - 1].text += " ⟶ ", c.setYAxisBottomText(e[r - 1]);
|
|
77
|
+
break;
|
|
78
|
+
case 56:
|
|
79
|
+
c.setYAxisBottomText(e[r]);
|
|
80
|
+
break;
|
|
81
|
+
case 57:
|
|
82
|
+
c.setQuadrant1Text(e[r]);
|
|
83
|
+
break;
|
|
84
|
+
case 58:
|
|
85
|
+
c.setQuadrant2Text(e[r]);
|
|
86
|
+
break;
|
|
87
|
+
case 59:
|
|
88
|
+
c.setQuadrant3Text(e[r]);
|
|
89
|
+
break;
|
|
90
|
+
case 60:
|
|
91
|
+
c.setQuadrant4Text(e[r]);
|
|
92
|
+
break;
|
|
93
|
+
case 64:
|
|
94
|
+
this.$ = { text: e[r], type: "text" };
|
|
95
|
+
break;
|
|
96
|
+
case 65:
|
|
97
|
+
this.$ = { text: e[r - 1].text + "" + e[r], type: e[r - 1].type };
|
|
98
|
+
break;
|
|
99
|
+
case 66:
|
|
100
|
+
this.$ = { text: e[r], type: "text" };
|
|
101
|
+
break;
|
|
102
|
+
case 67:
|
|
103
|
+
this.$ = { text: e[r], type: "markdown" };
|
|
104
|
+
break;
|
|
105
|
+
case 68:
|
|
106
|
+
this.$ = e[r];
|
|
107
|
+
break;
|
|
108
|
+
case 69:
|
|
109
|
+
this.$ = e[r - 1] + "" + e[r];
|
|
110
|
+
break;
|
|
111
|
+
}
|
|
112
|
+
}, "anonymous"),
|
|
113
|
+
table: [{ 18: a, 26: 1, 27: 2, 28: g, 55: u, 56: l, 57: x }, { 1: [3] }, { 18: a, 26: 8, 27: 2, 28: g, 55: u, 56: l, 57: x }, { 18: a, 26: 9, 27: 2, 28: g, 55: u, 56: l, 57: x }, t(_, [2, 33], { 29: 10 }), t(h, [2, 61]), t(h, [2, 62]), t(h, [2, 63]), { 1: [2, 30] }, { 1: [2, 31] }, t(s, b, { 30: 11, 31: 12, 24: 13, 32: 15, 33: 16, 34: 17, 43: 30, 58: 31, 1: [2, 32], 4: p, 5: m, 10: T, 12: y, 13: f, 14: q, 18: H, 25: C, 35: ct, 37: dt, 39: ut, 41: xt, 42: gt, 48: lt, 50: ht, 51: i, 52: It, 53: Wt, 54: Rt, 60: N, 61: O, 63: S, 64: k, 65: F, 66: P, 67: v }), t(_, [2, 34]), { 27: 45, 55: u, 56: l, 57: x }, t(s, [2, 37]), t(s, b, { 24: 13, 32: 15, 33: 16, 34: 17, 43: 30, 58: 31, 31: 46, 4: p, 5: m, 10: T, 12: y, 13: f, 14: q, 18: H, 25: C, 35: ct, 37: dt, 39: ut, 41: xt, 42: gt, 48: lt, 50: ht, 51: i, 52: It, 53: Wt, 54: Rt, 60: N, 61: O, 63: S, 64: k, 65: F, 66: P, 67: v }), t(s, [2, 39]), t(s, [2, 40]), t(s, [2, 41]), { 36: [1, 47] }, { 38: [1, 48] }, { 40: [1, 49] }, t(s, [2, 45]), t(s, [2, 46]), { 18: [1, 50] }, { 4: p, 5: m, 10: T, 12: y, 13: f, 14: q, 43: 51, 58: 31, 60: N, 61: O, 63: S, 64: k, 65: F, 66: P, 67: v }, { 4: p, 5: m, 10: T, 12: y, 13: f, 14: q, 43: 52, 58: 31, 60: N, 61: O, 63: S, 64: k, 65: F, 66: P, 67: v }, { 4: p, 5: m, 10: T, 12: y, 13: f, 14: q, 43: 53, 58: 31, 60: N, 61: O, 63: S, 64: k, 65: F, 66: P, 67: v }, { 4: p, 5: m, 10: T, 12: y, 13: f, 14: q, 43: 54, 58: 31, 60: N, 61: O, 63: S, 64: k, 65: F, 66: P, 67: v }, { 4: p, 5: m, 10: T, 12: y, 13: f, 14: q, 43: 55, 58: 31, 60: N, 61: O, 63: S, 64: k, 65: F, 66: P, 67: v }, { 4: p, 5: m, 10: T, 12: y, 13: f, 14: q, 43: 56, 58: 31, 60: N, 61: O, 63: S, 64: k, 65: F, 66: P, 67: v }, { 4: p, 5: m, 8: Y, 10: T, 12: y, 13: f, 14: q, 18: M, 44: [1, 57], 47: [1, 58], 58: 60, 59: 59, 63: S, 64: k, 65: F, 66: P, 67: v }, t(L, [2, 64]), t(L, [2, 66]), t(L, [2, 67]), t(L, [2, 70]), t(L, [2, 71]), t(L, [2, 72]), t(L, [2, 73]), t(L, [2, 74]), t(L, [2, 75]), t(L, [2, 76]), t(L, [2, 77]), t(L, [2, 78]), t(L, [2, 79]), t(L, [2, 80]), t(_, [2, 35]), t(s, [2, 38]), t(s, [2, 42]), t(s, [2, 43]), t(s, [2, 44]), { 3: 64, 4: Bt, 5: wt, 6: $t, 7: Ut, 8: Nt, 9: Ot, 10: Qt, 11: Xt, 12: Ht, 13: Yt, 14: Mt, 15: jt, 21: 63 }, t(s, [2, 53], { 59: 59, 58: 60, 4: p, 5: m, 8: Y, 10: T, 12: y, 13: f, 14: q, 18: M, 49: [1, 77], 63: S, 64: k, 65: F, 66: P, 67: v }), t(s, [2, 56], { 59: 59, 58: 60, 4: p, 5: m, 8: Y, 10: T, 12: y, 13: f, 14: q, 18: M, 49: [1, 78], 63: S, 64: k, 65: F, 66: P, 67: v }), t(s, [2, 57], { 59: 59, 58: 60, 4: p, 5: m, 8: Y, 10: T, 12: y, 13: f, 14: q, 18: M, 63: S, 64: k, 65: F, 66: P, 67: v }), t(s, [2, 58], { 59: 59, 58: 60, 4: p, 5: m, 8: Y, 10: T, 12: y, 13: f, 14: q, 18: M, 63: S, 64: k, 65: F, 66: P, 67: v }), t(s, [2, 59], { 59: 59, 58: 60, 4: p, 5: m, 8: Y, 10: T, 12: y, 13: f, 14: q, 18: M, 63: S, 64: k, 65: F, 66: P, 67: v }), t(s, [2, 60], { 59: 59, 58: 60, 4: p, 5: m, 8: Y, 10: T, 12: y, 13: f, 14: q, 18: M, 63: S, 64: k, 65: F, 66: P, 67: v }), { 45: [1, 79] }, { 44: [1, 80] }, t(L, [2, 65]), t(L, [2, 81]), t(L, [2, 82]), t(L, [2, 83]), { 3: 82, 4: Bt, 5: wt, 6: $t, 7: Ut, 8: Nt, 9: Ot, 10: Qt, 11: Xt, 12: Ht, 13: Yt, 14: Mt, 15: jt, 18: [1, 81] }, t(W, [2, 23]), t(W, [2, 1]), t(W, [2, 2]), t(W, [2, 3]), t(W, [2, 4]), t(W, [2, 5]), t(W, [2, 6]), t(W, [2, 7]), t(W, [2, 8]), t(W, [2, 9]), t(W, [2, 10]), t(W, [2, 11]), t(W, [2, 12]), t(s, [2, 52], { 58: 31, 43: 83, 4: p, 5: m, 10: T, 12: y, 13: f, 14: q, 60: N, 61: O, 63: S, 64: k, 65: F, 66: P, 67: v }), t(s, [2, 55], { 58: 31, 43: 84, 4: p, 5: m, 10: T, 12: y, 13: f, 14: q, 60: N, 61: O, 63: S, 64: k, 65: F, 66: P, 67: v }), { 46: [1, 85] }, { 45: [1, 86] }, { 4: K, 5: J, 6: Z, 8: tt, 11: et, 13: it, 16: 89, 17: at, 18: nt, 19: st, 20: rt, 22: 88, 23: 87 }, t(W, [2, 24]), t(s, [2, 51], { 59: 59, 58: 60, 4: p, 5: m, 8: Y, 10: T, 12: y, 13: f, 14: q, 18: M, 63: S, 64: k, 65: F, 66: P, 67: v }), t(s, [2, 54], { 59: 59, 58: 60, 4: p, 5: m, 8: Y, 10: T, 12: y, 13: f, 14: q, 18: M, 63: S, 64: k, 65: F, 66: P, 67: v }), t(s, [2, 47], { 22: 88, 16: 89, 23: 100, 4: K, 5: J, 6: Z, 8: tt, 11: et, 13: it, 17: at, 18: nt, 19: st, 20: rt }), { 46: [1, 101] }, t(s, [2, 29], { 10: _t }), t(Gt, [2, 27], { 16: 103, 4: K, 5: J, 6: Z, 8: tt, 11: et, 13: it, 17: at, 18: nt, 19: st, 20: rt }), t($, [2, 25]), t($, [2, 13]), t($, [2, 14]), t($, [2, 15]), t($, [2, 16]), t($, [2, 17]), t($, [2, 18]), t($, [2, 19]), t($, [2, 20]), t($, [2, 21]), t($, [2, 22]), t(s, [2, 49], { 10: _t }), t(s, [2, 48], { 22: 88, 16: 89, 23: 104, 4: K, 5: J, 6: Z, 8: tt, 11: et, 13: it, 17: at, 18: nt, 19: st, 20: rt }), { 4: K, 5: J, 6: Z, 8: tt, 11: et, 13: it, 16: 89, 17: at, 18: nt, 19: st, 20: rt, 22: 105 }, t($, [2, 26]), t(s, [2, 50], { 10: _t }), t(Gt, [2, 28], { 16: 103, 4: K, 5: J, 6: Z, 8: tt, 11: et, 13: it, 17: at, 18: nt, 19: st, 20: rt })],
|
|
114
|
+
defaultActions: { 8: [2, 30], 9: [2, 31] },
|
|
115
|
+
parseError: /* @__PURE__ */ o(function(Q, n) {
|
|
116
|
+
if (n.recoverable)
|
|
117
|
+
this.trace(Q);
|
|
118
|
+
else {
|
|
119
|
+
var d = new Error(Q);
|
|
120
|
+
throw d.hash = n, d;
|
|
121
|
+
}
|
|
122
|
+
}, "parseError"),
|
|
123
|
+
parse: /* @__PURE__ */ o(function(Q) {
|
|
124
|
+
var n = this, d = [0], c = [], A = [null], e = [], R = this.table, r = "", pt = 0, Vt = 0, Te = 2, Kt = 1, me = e.slice.call(arguments, 1), E = Object.create(this.lexer), G = { yy: {} };
|
|
125
|
+
for (var St in this.yy)
|
|
126
|
+
Object.prototype.hasOwnProperty.call(this.yy, St) && (G.yy[St] = this.yy[St]);
|
|
127
|
+
E.setInput(Q, G.yy), G.yy.lexer = E, G.yy.parser = this, typeof E.yylloc > "u" && (E.yylloc = {});
|
|
128
|
+
var kt = E.yylloc;
|
|
129
|
+
e.push(kt);
|
|
130
|
+
var qe = E.options && E.options.ranges;
|
|
131
|
+
typeof G.yy.parseError == "function" ? this.parseError = G.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
132
|
+
function Ae(w) {
|
|
133
|
+
d.length = d.length - 2 * w, A.length = A.length - w, e.length = e.length - w;
|
|
134
|
+
}
|
|
135
|
+
o(Ae, "popStack");
|
|
136
|
+
function Jt() {
|
|
137
|
+
var w;
|
|
138
|
+
return w = c.pop() || E.lex() || Kt, typeof w != "number" && (w instanceof Array && (c = w, w = c.pop()), w = n.symbols_[w] || w), w;
|
|
139
|
+
}
|
|
140
|
+
o(Jt, "lex");
|
|
141
|
+
for (var B, V, U, Ft, ot = {}, yt, j, Zt, Tt; ; ) {
|
|
142
|
+
if (V = d[d.length - 1], this.defaultActions[V] ? U = this.defaultActions[V] : ((B === null || typeof B > "u") && (B = Jt()), U = R[V] && R[V][B]), typeof U > "u" || !U.length || !U[0]) {
|
|
143
|
+
var Pt = "";
|
|
144
|
+
Tt = [];
|
|
145
|
+
for (yt in R[V])
|
|
146
|
+
this.terminals_[yt] && yt > Te && Tt.push("'" + this.terminals_[yt] + "'");
|
|
147
|
+
E.showPosition ? Pt = "Parse error on line " + (pt + 1) + `:
|
|
148
|
+
` + E.showPosition() + `
|
|
149
|
+
Expecting ` + Tt.join(", ") + ", got '" + (this.terminals_[B] || B) + "'" : Pt = "Parse error on line " + (pt + 1) + ": Unexpected " + (B == Kt ? "end of input" : "'" + (this.terminals_[B] || B) + "'"), this.parseError(Pt, {
|
|
150
|
+
text: E.match,
|
|
151
|
+
token: this.terminals_[B] || B,
|
|
152
|
+
line: E.yylineno,
|
|
153
|
+
loc: kt,
|
|
154
|
+
expected: Tt
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
if (U[0] instanceof Array && U.length > 1)
|
|
158
|
+
throw new Error("Parse Error: multiple actions possible at state: " + V + ", token: " + B);
|
|
159
|
+
switch (U[0]) {
|
|
160
|
+
case 1:
|
|
161
|
+
d.push(B), A.push(E.yytext), e.push(E.yylloc), d.push(U[1]), B = null, Vt = E.yyleng, r = E.yytext, pt = E.yylineno, kt = E.yylloc;
|
|
162
|
+
break;
|
|
163
|
+
case 2:
|
|
164
|
+
if (j = this.productions_[U[1]][1], ot.$ = A[A.length - j], ot._$ = {
|
|
165
|
+
first_line: e[e.length - (j || 1)].first_line,
|
|
166
|
+
last_line: e[e.length - 1].last_line,
|
|
167
|
+
first_column: e[e.length - (j || 1)].first_column,
|
|
168
|
+
last_column: e[e.length - 1].last_column
|
|
169
|
+
}, qe && (ot._$.range = [
|
|
170
|
+
e[e.length - (j || 1)].range[0],
|
|
171
|
+
e[e.length - 1].range[1]
|
|
172
|
+
]), Ft = this.performAction.apply(ot, [
|
|
173
|
+
r,
|
|
174
|
+
Vt,
|
|
175
|
+
pt,
|
|
176
|
+
G.yy,
|
|
177
|
+
U[1],
|
|
178
|
+
A,
|
|
179
|
+
e
|
|
180
|
+
].concat(me)), typeof Ft < "u")
|
|
181
|
+
return Ft;
|
|
182
|
+
j && (d = d.slice(0, -1 * j * 2), A = A.slice(0, -1 * j), e = e.slice(0, -1 * j)), d.push(this.productions_[U[1]][0]), A.push(ot.$), e.push(ot._$), Zt = R[d[d.length - 2]][d[d.length - 1]], d.push(Zt);
|
|
183
|
+
break;
|
|
184
|
+
case 3:
|
|
185
|
+
return !0;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
return !0;
|
|
189
|
+
}, "parse")
|
|
190
|
+
}, ye = /* @__PURE__ */ function() {
|
|
191
|
+
var Q = {
|
|
192
|
+
EOF: 1,
|
|
193
|
+
parseError: /* @__PURE__ */ o(function(n, d) {
|
|
194
|
+
if (this.yy.parser)
|
|
195
|
+
this.yy.parser.parseError(n, d);
|
|
196
|
+
else
|
|
197
|
+
throw new Error(n);
|
|
198
|
+
}, "parseError"),
|
|
199
|
+
// resets the lexer, sets new input
|
|
200
|
+
setInput: /* @__PURE__ */ o(function(n, d) {
|
|
201
|
+
return this.yy = d || this.yy || {}, this._input = n, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
202
|
+
first_line: 1,
|
|
203
|
+
first_column: 0,
|
|
204
|
+
last_line: 1,
|
|
205
|
+
last_column: 0
|
|
206
|
+
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
|
207
|
+
}, "setInput"),
|
|
208
|
+
// consumes and returns one char from the input
|
|
209
|
+
input: /* @__PURE__ */ o(function() {
|
|
210
|
+
var n = this._input[0];
|
|
211
|
+
this.yytext += n, this.yyleng++, this.offset++, this.match += n, this.matched += n;
|
|
212
|
+
var d = n.match(/(?:\r\n?|\n).*/g);
|
|
213
|
+
return d ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), n;
|
|
214
|
+
}, "input"),
|
|
215
|
+
// unshifts one char (or a string) into the input
|
|
216
|
+
unput: /* @__PURE__ */ o(function(n) {
|
|
217
|
+
var d = n.length, c = n.split(/(?:\r\n?|\n)/g);
|
|
218
|
+
this._input = n + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - d), this.offset -= d;
|
|
219
|
+
var A = this.match.split(/(?:\r\n?|\n)/g);
|
|
220
|
+
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), c.length - 1 && (this.yylineno -= c.length - 1);
|
|
221
|
+
var e = this.yylloc.range;
|
|
222
|
+
return this.yylloc = {
|
|
223
|
+
first_line: this.yylloc.first_line,
|
|
224
|
+
last_line: this.yylineno + 1,
|
|
225
|
+
first_column: this.yylloc.first_column,
|
|
226
|
+
last_column: c ? (c.length === A.length ? this.yylloc.first_column : 0) + A[A.length - c.length].length - c[0].length : this.yylloc.first_column - d
|
|
227
|
+
}, this.options.ranges && (this.yylloc.range = [e[0], e[0] + this.yyleng - d]), this.yyleng = this.yytext.length, this;
|
|
228
|
+
}, "unput"),
|
|
229
|
+
// When called from action, caches matched text and appends it on next action
|
|
230
|
+
more: /* @__PURE__ */ o(function() {
|
|
231
|
+
return this._more = !0, this;
|
|
232
|
+
}, "more"),
|
|
233
|
+
// 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.
|
|
234
|
+
reject: /* @__PURE__ */ o(function() {
|
|
235
|
+
if (this.options.backtrack_lexer)
|
|
236
|
+
this._backtrack = !0;
|
|
237
|
+
else
|
|
238
|
+
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).
|
|
239
|
+
` + this.showPosition(), {
|
|
240
|
+
text: "",
|
|
241
|
+
token: null,
|
|
242
|
+
line: this.yylineno
|
|
243
|
+
});
|
|
244
|
+
return this;
|
|
245
|
+
}, "reject"),
|
|
246
|
+
// retain first n characters of the match
|
|
247
|
+
less: /* @__PURE__ */ o(function(n) {
|
|
248
|
+
this.unput(this.match.slice(n));
|
|
249
|
+
}, "less"),
|
|
250
|
+
// displays already matched input, i.e. for error messages
|
|
251
|
+
pastInput: /* @__PURE__ */ o(function() {
|
|
252
|
+
var n = this.matched.substr(0, this.matched.length - this.match.length);
|
|
253
|
+
return (n.length > 20 ? "..." : "") + n.substr(-20).replace(/\n/g, "");
|
|
254
|
+
}, "pastInput"),
|
|
255
|
+
// displays upcoming input, i.e. for error messages
|
|
256
|
+
upcomingInput: /* @__PURE__ */ o(function() {
|
|
257
|
+
var n = this.match;
|
|
258
|
+
return n.length < 20 && (n += this._input.substr(0, 20 - n.length)), (n.substr(0, 20) + (n.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
259
|
+
}, "upcomingInput"),
|
|
260
|
+
// displays the character position where the lexing error occurred, i.e. for error messages
|
|
261
|
+
showPosition: /* @__PURE__ */ o(function() {
|
|
262
|
+
var n = this.pastInput(), d = new Array(n.length + 1).join("-");
|
|
263
|
+
return n + this.upcomingInput() + `
|
|
264
|
+
` + d + "^";
|
|
265
|
+
}, "showPosition"),
|
|
266
|
+
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
267
|
+
test_match: /* @__PURE__ */ o(function(n, d) {
|
|
268
|
+
var c, A, e;
|
|
269
|
+
if (this.options.backtrack_lexer && (e = {
|
|
270
|
+
yylineno: this.yylineno,
|
|
271
|
+
yylloc: {
|
|
272
|
+
first_line: this.yylloc.first_line,
|
|
273
|
+
last_line: this.last_line,
|
|
274
|
+
first_column: this.yylloc.first_column,
|
|
275
|
+
last_column: this.yylloc.last_column
|
|
276
|
+
},
|
|
277
|
+
yytext: this.yytext,
|
|
278
|
+
match: this.match,
|
|
279
|
+
matches: this.matches,
|
|
280
|
+
matched: this.matched,
|
|
281
|
+
yyleng: this.yyleng,
|
|
282
|
+
offset: this.offset,
|
|
283
|
+
_more: this._more,
|
|
284
|
+
_input: this._input,
|
|
285
|
+
yy: this.yy,
|
|
286
|
+
conditionStack: this.conditionStack.slice(0),
|
|
287
|
+
done: this.done
|
|
288
|
+
}, this.options.ranges && (e.yylloc.range = this.yylloc.range.slice(0))), A = n[0].match(/(?:\r\n?|\n).*/g), A && (this.yylineno += A.length), this.yylloc = {
|
|
289
|
+
first_line: this.yylloc.last_line,
|
|
290
|
+
last_line: this.yylineno + 1,
|
|
291
|
+
first_column: this.yylloc.last_column,
|
|
292
|
+
last_column: A ? A[A.length - 1].length - A[A.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + n[0].length
|
|
293
|
+
}, this.yytext += n[0], this.match += n[0], this.matches = n, 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(n[0].length), this.matched += n[0], c = this.performAction.call(this, this.yy, this, d, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), c)
|
|
294
|
+
return c;
|
|
295
|
+
if (this._backtrack) {
|
|
296
|
+
for (var R in e)
|
|
297
|
+
this[R] = e[R];
|
|
298
|
+
return !1;
|
|
299
|
+
}
|
|
300
|
+
return !1;
|
|
301
|
+
}, "test_match"),
|
|
302
|
+
// return next match in input
|
|
303
|
+
next: /* @__PURE__ */ o(function() {
|
|
304
|
+
if (this.done)
|
|
305
|
+
return this.EOF;
|
|
306
|
+
this._input || (this.done = !0);
|
|
307
|
+
var n, d, c, A;
|
|
308
|
+
this._more || (this.yytext = "", this.match = "");
|
|
309
|
+
for (var e = this._currentRules(), R = 0; R < e.length; R++)
|
|
310
|
+
if (c = this._input.match(this.rules[e[R]]), c && (!d || c[0].length > d[0].length)) {
|
|
311
|
+
if (d = c, A = R, this.options.backtrack_lexer) {
|
|
312
|
+
if (n = this.test_match(c, e[R]), n !== !1)
|
|
313
|
+
return n;
|
|
314
|
+
if (this._backtrack) {
|
|
315
|
+
d = !1;
|
|
316
|
+
continue;
|
|
317
|
+
} else
|
|
318
|
+
return !1;
|
|
319
|
+
} else if (!this.options.flex)
|
|
320
|
+
break;
|
|
321
|
+
}
|
|
322
|
+
return d ? (n = this.test_match(d, e[A]), n !== !1 ? n : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
|
323
|
+
` + this.showPosition(), {
|
|
324
|
+
text: "",
|
|
325
|
+
token: null,
|
|
326
|
+
line: this.yylineno
|
|
327
|
+
});
|
|
328
|
+
}, "next"),
|
|
329
|
+
// return next match that has a token
|
|
330
|
+
lex: /* @__PURE__ */ o(function() {
|
|
331
|
+
var n = this.next();
|
|
332
|
+
return n || this.lex();
|
|
333
|
+
}, "lex"),
|
|
334
|
+
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
|
|
335
|
+
begin: /* @__PURE__ */ o(function(n) {
|
|
336
|
+
this.conditionStack.push(n);
|
|
337
|
+
}, "begin"),
|
|
338
|
+
// pop the previously active lexer condition state off the condition stack
|
|
339
|
+
popState: /* @__PURE__ */ o(function() {
|
|
340
|
+
var n = this.conditionStack.length - 1;
|
|
341
|
+
return n > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
342
|
+
}, "popState"),
|
|
343
|
+
// produce the lexer rule set which is active for the currently active lexer condition state
|
|
344
|
+
_currentRules: /* @__PURE__ */ o(function() {
|
|
345
|
+
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
346
|
+
}, "_currentRules"),
|
|
347
|
+
// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
|
|
348
|
+
topState: /* @__PURE__ */ o(function(n) {
|
|
349
|
+
return n = this.conditionStack.length - 1 - Math.abs(n || 0), n >= 0 ? this.conditionStack[n] : "INITIAL";
|
|
350
|
+
}, "topState"),
|
|
351
|
+
// alias for begin(condition)
|
|
352
|
+
pushState: /* @__PURE__ */ o(function(n) {
|
|
353
|
+
this.begin(n);
|
|
354
|
+
}, "pushState"),
|
|
355
|
+
// return the number of states currently on the stack
|
|
356
|
+
stateStackSize: /* @__PURE__ */ o(function() {
|
|
357
|
+
return this.conditionStack.length;
|
|
358
|
+
}, "stateStackSize"),
|
|
359
|
+
options: { "case-insensitive": !0 },
|
|
360
|
+
performAction: /* @__PURE__ */ o(function(n, d, c, A) {
|
|
361
|
+
switch (c) {
|
|
362
|
+
case 0:
|
|
363
|
+
break;
|
|
364
|
+
case 1:
|
|
365
|
+
break;
|
|
366
|
+
case 2:
|
|
367
|
+
return 55;
|
|
368
|
+
case 3:
|
|
369
|
+
break;
|
|
370
|
+
case 4:
|
|
371
|
+
return this.begin("title"), 35;
|
|
372
|
+
case 5:
|
|
373
|
+
return this.popState(), "title_value";
|
|
374
|
+
case 6:
|
|
375
|
+
return this.begin("acc_title"), 37;
|
|
376
|
+
case 7:
|
|
377
|
+
return this.popState(), "acc_title_value";
|
|
378
|
+
case 8:
|
|
379
|
+
return this.begin("acc_descr"), 39;
|
|
380
|
+
case 9:
|
|
381
|
+
return this.popState(), "acc_descr_value";
|
|
382
|
+
case 10:
|
|
383
|
+
this.begin("acc_descr_multiline");
|
|
384
|
+
break;
|
|
385
|
+
case 11:
|
|
386
|
+
this.popState();
|
|
387
|
+
break;
|
|
388
|
+
case 12:
|
|
389
|
+
return "acc_descr_multiline_value";
|
|
390
|
+
case 13:
|
|
391
|
+
return 48;
|
|
392
|
+
case 14:
|
|
393
|
+
return 50;
|
|
394
|
+
case 15:
|
|
395
|
+
return 49;
|
|
396
|
+
case 16:
|
|
397
|
+
return 51;
|
|
398
|
+
case 17:
|
|
399
|
+
return 52;
|
|
400
|
+
case 18:
|
|
401
|
+
return 53;
|
|
402
|
+
case 19:
|
|
403
|
+
return 54;
|
|
404
|
+
case 20:
|
|
405
|
+
return 25;
|
|
406
|
+
case 21:
|
|
407
|
+
this.begin("md_string");
|
|
408
|
+
break;
|
|
409
|
+
case 22:
|
|
410
|
+
return "MD_STR";
|
|
411
|
+
case 23:
|
|
412
|
+
this.popState();
|
|
413
|
+
break;
|
|
414
|
+
case 24:
|
|
415
|
+
this.begin("string");
|
|
416
|
+
break;
|
|
417
|
+
case 25:
|
|
418
|
+
this.popState();
|
|
419
|
+
break;
|
|
420
|
+
case 26:
|
|
421
|
+
return "STR";
|
|
422
|
+
case 27:
|
|
423
|
+
this.begin("class_name");
|
|
424
|
+
break;
|
|
425
|
+
case 28:
|
|
426
|
+
return this.popState(), 47;
|
|
427
|
+
case 29:
|
|
428
|
+
return this.begin("point_start"), 44;
|
|
429
|
+
case 30:
|
|
430
|
+
return this.begin("point_x"), 45;
|
|
431
|
+
case 31:
|
|
432
|
+
this.popState();
|
|
433
|
+
break;
|
|
434
|
+
case 32:
|
|
435
|
+
this.popState(), this.begin("point_y");
|
|
436
|
+
break;
|
|
437
|
+
case 33:
|
|
438
|
+
return this.popState(), 46;
|
|
439
|
+
case 34:
|
|
440
|
+
return 28;
|
|
441
|
+
case 35:
|
|
442
|
+
return 4;
|
|
443
|
+
case 36:
|
|
444
|
+
return 11;
|
|
445
|
+
case 37:
|
|
446
|
+
return 64;
|
|
447
|
+
case 38:
|
|
448
|
+
return 10;
|
|
449
|
+
case 39:
|
|
450
|
+
return 65;
|
|
451
|
+
case 40:
|
|
452
|
+
return 65;
|
|
453
|
+
case 41:
|
|
454
|
+
return 14;
|
|
455
|
+
case 42:
|
|
456
|
+
return 13;
|
|
457
|
+
case 43:
|
|
458
|
+
return 67;
|
|
459
|
+
case 44:
|
|
460
|
+
return 66;
|
|
461
|
+
case 45:
|
|
462
|
+
return 12;
|
|
463
|
+
case 46:
|
|
464
|
+
return 8;
|
|
465
|
+
case 47:
|
|
466
|
+
return 5;
|
|
467
|
+
case 48:
|
|
468
|
+
return 18;
|
|
469
|
+
case 49:
|
|
470
|
+
return 56;
|
|
471
|
+
case 50:
|
|
472
|
+
return 63;
|
|
473
|
+
case 51:
|
|
474
|
+
return 57;
|
|
475
|
+
}
|
|
476
|
+
}, "anonymous"),
|
|
477
|
+
rules: [/^(?:%%(?!\{)[^\n]*)/i, /^(?:[^\}]%%[^\n]*)/i, /^(?:[\n\r]+)/i, /^(?:%%[^\n]*)/i, /^(?:title\b)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?: *x-axis *)/i, /^(?: *y-axis *)/i, /^(?: *--+> *)/i, /^(?: *quadrant-1 *)/i, /^(?: *quadrant-2 *)/i, /^(?: *quadrant-3 *)/i, /^(?: *quadrant-4 *)/i, /^(?:classDef\b)/i, /^(?:["][`])/i, /^(?:[^`"]+)/i, /^(?:[`]["])/i, /^(?:["])/i, /^(?:["])/i, /^(?:[^"]*)/i, /^(?::::)/i, /^(?:^\w+)/i, /^(?:\s*:\s*\[\s*)/i, /^(?:(1)|(0(.\d+)?))/i, /^(?:\s*\] *)/i, /^(?:\s*,\s*)/i, /^(?:(1)|(0(.\d+)?))/i, /^(?: *quadrantChart *)/i, /^(?:[A-Za-z]+)/i, /^(?::)/i, /^(?:\+)/i, /^(?:,)/i, /^(?:=)/i, /^(?:=)/i, /^(?:\*)/i, /^(?:#)/i, /^(?:[\_])/i, /^(?:\.)/i, /^(?:&)/i, /^(?:-)/i, /^(?:[0-9]+)/i, /^(?:\s)/i, /^(?:;)/i, /^(?:[!"#$%&'*+,-.`?\\_/])/i, /^(?:$)/i],
|
|
478
|
+
conditions: { class_name: { rules: [28], inclusive: !1 }, point_y: { rules: [33], inclusive: !1 }, point_x: { rules: [32], inclusive: !1 }, point_start: { rules: [30, 31], inclusive: !1 }, acc_descr_multiline: { rules: [11, 12], inclusive: !1 }, acc_descr: { rules: [9], inclusive: !1 }, acc_title: { rules: [7], inclusive: !1 }, title: { rules: [5], inclusive: !1 }, md_string: { rules: [22, 23], inclusive: !1 }, string: { rules: [25, 26], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 6, 8, 10, 13, 14, 15, 16, 17, 18, 19, 20, 21, 24, 27, 29, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51], inclusive: !0 } }
|
|
479
|
+
};
|
|
480
|
+
return Q;
|
|
481
|
+
}();
|
|
482
|
+
bt.lexer = ye;
|
|
483
|
+
function ft() {
|
|
484
|
+
this.yy = {};
|
|
485
|
+
}
|
|
486
|
+
return o(ft, "Parser"), ft.prototype = bt, bt.Parser = ft, new ft();
|
|
487
|
+
}();
|
|
488
|
+
Et.parser = Et;
|
|
489
|
+
var Ee = Et, I = _e(), Ct, De = (Ct = class {
|
|
490
|
+
constructor() {
|
|
491
|
+
this.classes = /* @__PURE__ */ new Map(), this.config = this.getDefaultConfig(), this.themeConfig = this.getDefaultThemeConfig(), this.data = this.getDefaultData();
|
|
492
|
+
}
|
|
493
|
+
getDefaultData() {
|
|
494
|
+
return {
|
|
495
|
+
titleText: "",
|
|
496
|
+
quadrant1Text: "",
|
|
497
|
+
quadrant2Text: "",
|
|
498
|
+
quadrant3Text: "",
|
|
499
|
+
quadrant4Text: "",
|
|
500
|
+
xAxisLeftText: "",
|
|
501
|
+
xAxisRightText: "",
|
|
502
|
+
yAxisBottomText: "",
|
|
503
|
+
yAxisTopText: "",
|
|
504
|
+
points: []
|
|
505
|
+
};
|
|
506
|
+
}
|
|
507
|
+
getDefaultConfig() {
|
|
508
|
+
var t, a, g, u, l, x, _, h, s, b, p, m, T, y, f, q, H, C;
|
|
509
|
+
return {
|
|
510
|
+
showXAxis: !0,
|
|
511
|
+
showYAxis: !0,
|
|
512
|
+
showTitle: !0,
|
|
513
|
+
chartHeight: ((t = D.quadrantChart) == null ? void 0 : t.chartWidth) || 500,
|
|
514
|
+
chartWidth: ((a = D.quadrantChart) == null ? void 0 : a.chartHeight) || 500,
|
|
515
|
+
titlePadding: ((g = D.quadrantChart) == null ? void 0 : g.titlePadding) || 10,
|
|
516
|
+
titleFontSize: ((u = D.quadrantChart) == null ? void 0 : u.titleFontSize) || 20,
|
|
517
|
+
quadrantPadding: ((l = D.quadrantChart) == null ? void 0 : l.quadrantPadding) || 5,
|
|
518
|
+
xAxisLabelPadding: ((x = D.quadrantChart) == null ? void 0 : x.xAxisLabelPadding) || 5,
|
|
519
|
+
yAxisLabelPadding: ((_ = D.quadrantChart) == null ? void 0 : _.yAxisLabelPadding) || 5,
|
|
520
|
+
xAxisLabelFontSize: ((h = D.quadrantChart) == null ? void 0 : h.xAxisLabelFontSize) || 16,
|
|
521
|
+
yAxisLabelFontSize: ((s = D.quadrantChart) == null ? void 0 : s.yAxisLabelFontSize) || 16,
|
|
522
|
+
quadrantLabelFontSize: ((b = D.quadrantChart) == null ? void 0 : b.quadrantLabelFontSize) || 16,
|
|
523
|
+
quadrantTextTopPadding: ((p = D.quadrantChart) == null ? void 0 : p.quadrantTextTopPadding) || 5,
|
|
524
|
+
pointTextPadding: ((m = D.quadrantChart) == null ? void 0 : m.pointTextPadding) || 5,
|
|
525
|
+
pointLabelFontSize: ((T = D.quadrantChart) == null ? void 0 : T.pointLabelFontSize) || 12,
|
|
526
|
+
pointRadius: ((y = D.quadrantChart) == null ? void 0 : y.pointRadius) || 5,
|
|
527
|
+
xAxisPosition: ((f = D.quadrantChart) == null ? void 0 : f.xAxisPosition) || "top",
|
|
528
|
+
yAxisPosition: ((q = D.quadrantChart) == null ? void 0 : q.yAxisPosition) || "left",
|
|
529
|
+
quadrantInternalBorderStrokeWidth: ((H = D.quadrantChart) == null ? void 0 : H.quadrantInternalBorderStrokeWidth) || 1,
|
|
530
|
+
quadrantExternalBorderStrokeWidth: ((C = D.quadrantChart) == null ? void 0 : C.quadrantExternalBorderStrokeWidth) || 2
|
|
531
|
+
};
|
|
532
|
+
}
|
|
533
|
+
getDefaultThemeConfig() {
|
|
534
|
+
return {
|
|
535
|
+
quadrant1Fill: I.quadrant1Fill,
|
|
536
|
+
quadrant2Fill: I.quadrant2Fill,
|
|
537
|
+
quadrant3Fill: I.quadrant3Fill,
|
|
538
|
+
quadrant4Fill: I.quadrant4Fill,
|
|
539
|
+
quadrant1TextFill: I.quadrant1TextFill,
|
|
540
|
+
quadrant2TextFill: I.quadrant2TextFill,
|
|
541
|
+
quadrant3TextFill: I.quadrant3TextFill,
|
|
542
|
+
quadrant4TextFill: I.quadrant4TextFill,
|
|
543
|
+
quadrantPointFill: I.quadrantPointFill,
|
|
544
|
+
quadrantPointTextFill: I.quadrantPointTextFill,
|
|
545
|
+
quadrantXAxisTextFill: I.quadrantXAxisTextFill,
|
|
546
|
+
quadrantYAxisTextFill: I.quadrantYAxisTextFill,
|
|
547
|
+
quadrantTitleFill: I.quadrantTitleFill,
|
|
548
|
+
quadrantInternalBorderStrokeFill: I.quadrantInternalBorderStrokeFill,
|
|
549
|
+
quadrantExternalBorderStrokeFill: I.quadrantExternalBorderStrokeFill
|
|
550
|
+
};
|
|
551
|
+
}
|
|
552
|
+
clear() {
|
|
553
|
+
this.config = this.getDefaultConfig(), this.themeConfig = this.getDefaultThemeConfig(), this.data = this.getDefaultData(), this.classes = /* @__PURE__ */ new Map(), qt.info("clear called");
|
|
554
|
+
}
|
|
555
|
+
setData(t) {
|
|
556
|
+
this.data = { ...this.data, ...t };
|
|
557
|
+
}
|
|
558
|
+
addPoints(t) {
|
|
559
|
+
this.data.points = [...t, ...this.data.points];
|
|
560
|
+
}
|
|
561
|
+
addClass(t, a) {
|
|
562
|
+
this.classes.set(t, a);
|
|
563
|
+
}
|
|
564
|
+
setConfig(t) {
|
|
565
|
+
qt.trace("setConfig called with: ", t), this.config = { ...this.config, ...t };
|
|
566
|
+
}
|
|
567
|
+
setThemeConfig(t) {
|
|
568
|
+
qt.trace("setThemeConfig called with: ", t), this.themeConfig = { ...this.themeConfig, ...t };
|
|
569
|
+
}
|
|
570
|
+
calculateSpace(t, a, g, u) {
|
|
571
|
+
const l = this.config.xAxisLabelPadding * 2 + this.config.xAxisLabelFontSize, x = {
|
|
572
|
+
top: t === "top" && a ? l : 0,
|
|
573
|
+
bottom: t === "bottom" && a ? l : 0
|
|
574
|
+
}, _ = this.config.yAxisLabelPadding * 2 + this.config.yAxisLabelFontSize, h = {
|
|
575
|
+
left: this.config.yAxisPosition === "left" && g ? _ : 0,
|
|
576
|
+
right: this.config.yAxisPosition === "right" && g ? _ : 0
|
|
577
|
+
}, s = this.config.titleFontSize + this.config.titlePadding * 2, b = {
|
|
578
|
+
top: u ? s : 0
|
|
579
|
+
}, p = this.config.quadrantPadding + h.left, m = this.config.quadrantPadding + x.top + b.top, T = this.config.chartWidth - this.config.quadrantPadding * 2 - h.left - h.right, y = this.config.chartHeight - this.config.quadrantPadding * 2 - x.top - x.bottom - b.top, f = T / 2, q = y / 2;
|
|
580
|
+
return {
|
|
581
|
+
xAxisSpace: x,
|
|
582
|
+
yAxisSpace: h,
|
|
583
|
+
titleSpace: b,
|
|
584
|
+
quadrantSpace: {
|
|
585
|
+
quadrantLeft: p,
|
|
586
|
+
quadrantTop: m,
|
|
587
|
+
quadrantWidth: T,
|
|
588
|
+
quadrantHalfWidth: f,
|
|
589
|
+
quadrantHeight: y,
|
|
590
|
+
quadrantHalfHeight: q
|
|
591
|
+
}
|
|
592
|
+
};
|
|
593
|
+
}
|
|
594
|
+
getAxisLabels(t, a, g, u) {
|
|
595
|
+
const { quadrantSpace: l, titleSpace: x } = u, {
|
|
596
|
+
quadrantHalfHeight: _,
|
|
597
|
+
quadrantHeight: h,
|
|
598
|
+
quadrantLeft: s,
|
|
599
|
+
quadrantHalfWidth: b,
|
|
600
|
+
quadrantTop: p,
|
|
601
|
+
quadrantWidth: m
|
|
602
|
+
} = l, T = !!this.data.xAxisRightText, y = !!this.data.yAxisTopText, f = [];
|
|
603
|
+
return this.data.xAxisLeftText && a && f.push({
|
|
604
|
+
text: this.data.xAxisLeftText,
|
|
605
|
+
fill: this.themeConfig.quadrantXAxisTextFill,
|
|
606
|
+
x: s + (T ? b / 2 : 0),
|
|
607
|
+
y: t === "top" ? this.config.xAxisLabelPadding + x.top : this.config.xAxisLabelPadding + p + h + this.config.quadrantPadding,
|
|
608
|
+
fontSize: this.config.xAxisLabelFontSize,
|
|
609
|
+
verticalPos: T ? "center" : "left",
|
|
610
|
+
horizontalPos: "top",
|
|
611
|
+
rotation: 0
|
|
612
|
+
}), this.data.xAxisRightText && a && f.push({
|
|
613
|
+
text: this.data.xAxisRightText,
|
|
614
|
+
fill: this.themeConfig.quadrantXAxisTextFill,
|
|
615
|
+
x: s + b + (T ? b / 2 : 0),
|
|
616
|
+
y: t === "top" ? this.config.xAxisLabelPadding + x.top : this.config.xAxisLabelPadding + p + h + this.config.quadrantPadding,
|
|
617
|
+
fontSize: this.config.xAxisLabelFontSize,
|
|
618
|
+
verticalPos: T ? "center" : "left",
|
|
619
|
+
horizontalPos: "top",
|
|
620
|
+
rotation: 0
|
|
621
|
+
}), this.data.yAxisBottomText && g && f.push({
|
|
622
|
+
text: this.data.yAxisBottomText,
|
|
623
|
+
fill: this.themeConfig.quadrantYAxisTextFill,
|
|
624
|
+
x: this.config.yAxisPosition === "left" ? this.config.yAxisLabelPadding : this.config.yAxisLabelPadding + s + m + this.config.quadrantPadding,
|
|
625
|
+
y: p + h - (y ? _ / 2 : 0),
|
|
626
|
+
fontSize: this.config.yAxisLabelFontSize,
|
|
627
|
+
verticalPos: y ? "center" : "left",
|
|
628
|
+
horizontalPos: "top",
|
|
629
|
+
rotation: -90
|
|
630
|
+
}), this.data.yAxisTopText && g && f.push({
|
|
631
|
+
text: this.data.yAxisTopText,
|
|
632
|
+
fill: this.themeConfig.quadrantYAxisTextFill,
|
|
633
|
+
x: this.config.yAxisPosition === "left" ? this.config.yAxisLabelPadding : this.config.yAxisLabelPadding + s + m + this.config.quadrantPadding,
|
|
634
|
+
y: p + _ - (y ? _ / 2 : 0),
|
|
635
|
+
fontSize: this.config.yAxisLabelFontSize,
|
|
636
|
+
verticalPos: y ? "center" : "left",
|
|
637
|
+
horizontalPos: "top",
|
|
638
|
+
rotation: -90
|
|
639
|
+
}), f;
|
|
640
|
+
}
|
|
641
|
+
getQuadrants(t) {
|
|
642
|
+
const { quadrantSpace: a } = t, { quadrantHalfHeight: g, quadrantLeft: u, quadrantHalfWidth: l, quadrantTop: x } = a, _ = [
|
|
643
|
+
{
|
|
644
|
+
text: {
|
|
645
|
+
text: this.data.quadrant1Text,
|
|
646
|
+
fill: this.themeConfig.quadrant1TextFill,
|
|
647
|
+
x: 0,
|
|
648
|
+
y: 0,
|
|
649
|
+
fontSize: this.config.quadrantLabelFontSize,
|
|
650
|
+
verticalPos: "center",
|
|
651
|
+
horizontalPos: "middle",
|
|
652
|
+
rotation: 0
|
|
653
|
+
},
|
|
654
|
+
x: u + l,
|
|
655
|
+
y: x,
|
|
656
|
+
width: l,
|
|
657
|
+
height: g,
|
|
658
|
+
fill: this.themeConfig.quadrant1Fill
|
|
659
|
+
},
|
|
660
|
+
{
|
|
661
|
+
text: {
|
|
662
|
+
text: this.data.quadrant2Text,
|
|
663
|
+
fill: this.themeConfig.quadrant2TextFill,
|
|
664
|
+
x: 0,
|
|
665
|
+
y: 0,
|
|
666
|
+
fontSize: this.config.quadrantLabelFontSize,
|
|
667
|
+
verticalPos: "center",
|
|
668
|
+
horizontalPos: "middle",
|
|
669
|
+
rotation: 0
|
|
670
|
+
},
|
|
671
|
+
x: u,
|
|
672
|
+
y: x,
|
|
673
|
+
width: l,
|
|
674
|
+
height: g,
|
|
675
|
+
fill: this.themeConfig.quadrant2Fill
|
|
676
|
+
},
|
|
677
|
+
{
|
|
678
|
+
text: {
|
|
679
|
+
text: this.data.quadrant3Text,
|
|
680
|
+
fill: this.themeConfig.quadrant3TextFill,
|
|
681
|
+
x: 0,
|
|
682
|
+
y: 0,
|
|
683
|
+
fontSize: this.config.quadrantLabelFontSize,
|
|
684
|
+
verticalPos: "center",
|
|
685
|
+
horizontalPos: "middle",
|
|
686
|
+
rotation: 0
|
|
687
|
+
},
|
|
688
|
+
x: u,
|
|
689
|
+
y: x + g,
|
|
690
|
+
width: l,
|
|
691
|
+
height: g,
|
|
692
|
+
fill: this.themeConfig.quadrant3Fill
|
|
693
|
+
},
|
|
694
|
+
{
|
|
695
|
+
text: {
|
|
696
|
+
text: this.data.quadrant4Text,
|
|
697
|
+
fill: this.themeConfig.quadrant4TextFill,
|
|
698
|
+
x: 0,
|
|
699
|
+
y: 0,
|
|
700
|
+
fontSize: this.config.quadrantLabelFontSize,
|
|
701
|
+
verticalPos: "center",
|
|
702
|
+
horizontalPos: "middle",
|
|
703
|
+
rotation: 0
|
|
704
|
+
},
|
|
705
|
+
x: u + l,
|
|
706
|
+
y: x + g,
|
|
707
|
+
width: l,
|
|
708
|
+
height: g,
|
|
709
|
+
fill: this.themeConfig.quadrant4Fill
|
|
710
|
+
}
|
|
711
|
+
];
|
|
712
|
+
for (const h of _)
|
|
713
|
+
h.text.x = h.x + h.width / 2, this.data.points.length === 0 ? (h.text.y = h.y + h.height / 2, h.text.horizontalPos = "middle") : (h.text.y = h.y + this.config.quadrantTextTopPadding, h.text.horizontalPos = "top");
|
|
714
|
+
return _;
|
|
715
|
+
}
|
|
716
|
+
getQuadrantPoints(t) {
|
|
717
|
+
const { quadrantSpace: a } = t, { quadrantHeight: g, quadrantLeft: u, quadrantTop: l, quadrantWidth: x } = a, _ = te().domain([0, 1]).range([u, x + u]), h = te().domain([0, 1]).range([g + l, l]);
|
|
718
|
+
return this.data.points.map((s) => {
|
|
719
|
+
const b = this.classes.get(s.className);
|
|
720
|
+
return b && (s = { ...b, ...s }), {
|
|
721
|
+
x: _(s.x),
|
|
722
|
+
y: h(s.y),
|
|
723
|
+
fill: s.color ?? this.themeConfig.quadrantPointFill,
|
|
724
|
+
radius: s.radius ?? this.config.pointRadius,
|
|
725
|
+
text: {
|
|
726
|
+
text: s.text,
|
|
727
|
+
fill: this.themeConfig.quadrantPointTextFill,
|
|
728
|
+
x: _(s.x),
|
|
729
|
+
y: h(s.y) + this.config.pointTextPadding,
|
|
730
|
+
verticalPos: "center",
|
|
731
|
+
horizontalPos: "top",
|
|
732
|
+
fontSize: this.config.pointLabelFontSize,
|
|
733
|
+
rotation: 0
|
|
734
|
+
},
|
|
735
|
+
strokeColor: s.strokeColor ?? this.themeConfig.quadrantPointFill,
|
|
736
|
+
strokeWidth: s.strokeWidth ?? "0px"
|
|
737
|
+
};
|
|
738
|
+
});
|
|
739
|
+
}
|
|
740
|
+
getBorders(t) {
|
|
741
|
+
const a = this.config.quadrantExternalBorderStrokeWidth / 2, { quadrantSpace: g } = t, {
|
|
742
|
+
quadrantHalfHeight: u,
|
|
743
|
+
quadrantHeight: l,
|
|
744
|
+
quadrantLeft: x,
|
|
745
|
+
quadrantHalfWidth: _,
|
|
746
|
+
quadrantTop: h,
|
|
747
|
+
quadrantWidth: s
|
|
748
|
+
} = g;
|
|
749
|
+
return [
|
|
750
|
+
// top border
|
|
751
|
+
{
|
|
752
|
+
strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
|
|
753
|
+
strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
|
|
754
|
+
x1: x - a,
|
|
755
|
+
y1: h,
|
|
756
|
+
x2: x + s + a,
|
|
757
|
+
y2: h
|
|
758
|
+
},
|
|
759
|
+
// right border
|
|
760
|
+
{
|
|
761
|
+
strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
|
|
762
|
+
strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
|
|
763
|
+
x1: x + s,
|
|
764
|
+
y1: h + a,
|
|
765
|
+
x2: x + s,
|
|
766
|
+
y2: h + l - a
|
|
767
|
+
},
|
|
768
|
+
// bottom border
|
|
769
|
+
{
|
|
770
|
+
strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
|
|
771
|
+
strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
|
|
772
|
+
x1: x - a,
|
|
773
|
+
y1: h + l,
|
|
774
|
+
x2: x + s + a,
|
|
775
|
+
y2: h + l
|
|
776
|
+
},
|
|
777
|
+
// left border
|
|
778
|
+
{
|
|
779
|
+
strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
|
|
780
|
+
strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
|
|
781
|
+
x1: x,
|
|
782
|
+
y1: h + a,
|
|
783
|
+
x2: x,
|
|
784
|
+
y2: h + l - a
|
|
785
|
+
},
|
|
786
|
+
// vertical inner border
|
|
787
|
+
{
|
|
788
|
+
strokeFill: this.themeConfig.quadrantInternalBorderStrokeFill,
|
|
789
|
+
strokeWidth: this.config.quadrantInternalBorderStrokeWidth,
|
|
790
|
+
x1: x + _,
|
|
791
|
+
y1: h + a,
|
|
792
|
+
x2: x + _,
|
|
793
|
+
y2: h + l - a
|
|
794
|
+
},
|
|
795
|
+
// horizontal inner border
|
|
796
|
+
{
|
|
797
|
+
strokeFill: this.themeConfig.quadrantInternalBorderStrokeFill,
|
|
798
|
+
strokeWidth: this.config.quadrantInternalBorderStrokeWidth,
|
|
799
|
+
x1: x + a,
|
|
800
|
+
y1: h + u,
|
|
801
|
+
x2: x + s - a,
|
|
802
|
+
y2: h + u
|
|
803
|
+
}
|
|
804
|
+
];
|
|
805
|
+
}
|
|
806
|
+
getTitle(t) {
|
|
807
|
+
if (t)
|
|
808
|
+
return {
|
|
809
|
+
text: this.data.titleText,
|
|
810
|
+
fill: this.themeConfig.quadrantTitleFill,
|
|
811
|
+
fontSize: this.config.titleFontSize,
|
|
812
|
+
horizontalPos: "top",
|
|
813
|
+
verticalPos: "center",
|
|
814
|
+
rotation: 0,
|
|
815
|
+
y: this.config.titlePadding,
|
|
816
|
+
x: this.config.chartWidth / 2
|
|
817
|
+
};
|
|
818
|
+
}
|
|
819
|
+
build() {
|
|
820
|
+
const t = this.config.showXAxis && !!(this.data.xAxisLeftText || this.data.xAxisRightText), a = this.config.showYAxis && !!(this.data.yAxisTopText || this.data.yAxisBottomText), g = this.config.showTitle && !!this.data.titleText, u = this.data.points.length > 0 ? "bottom" : this.config.xAxisPosition, l = this.calculateSpace(u, t, a, g);
|
|
821
|
+
return {
|
|
822
|
+
points: this.getQuadrantPoints(l),
|
|
823
|
+
quadrants: this.getQuadrants(l),
|
|
824
|
+
axisLabels: this.getAxisLabels(u, t, a, l),
|
|
825
|
+
borderLines: this.getBorders(l),
|
|
826
|
+
title: this.getTitle(g)
|
|
827
|
+
};
|
|
828
|
+
}
|
|
829
|
+
}, o(Ct, "QuadrantBuilder"), Ct), Lt, mt = (Lt = class extends Error {
|
|
830
|
+
constructor(t, a, g) {
|
|
831
|
+
super(`value for ${t} ${a} is invalid, please use a valid ${g}`), this.name = "InvalidStyleError";
|
|
832
|
+
}
|
|
833
|
+
}, o(Lt, "InvalidStyleError"), Lt);
|
|
834
|
+
function Dt(t) {
|
|
835
|
+
return !/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(t);
|
|
836
|
+
}
|
|
837
|
+
o(Dt, "validateHexCode");
|
|
838
|
+
function ie(t) {
|
|
839
|
+
return !/^\d+$/.test(t);
|
|
840
|
+
}
|
|
841
|
+
o(ie, "validateNumber");
|
|
842
|
+
function ae(t) {
|
|
843
|
+
return !/^\d+px$/.test(t);
|
|
844
|
+
}
|
|
845
|
+
o(ae, "validateSizeInPixels");
|
|
846
|
+
var ze = zt();
|
|
847
|
+
function X(t) {
|
|
848
|
+
return be(t.trim(), ze);
|
|
849
|
+
}
|
|
850
|
+
o(X, "textSanitizer");
|
|
851
|
+
var z = new De();
|
|
852
|
+
function ne(t) {
|
|
853
|
+
z.setData({ quadrant1Text: X(t.text) });
|
|
854
|
+
}
|
|
855
|
+
o(ne, "setQuadrant1Text");
|
|
856
|
+
function se(t) {
|
|
857
|
+
z.setData({ quadrant2Text: X(t.text) });
|
|
858
|
+
}
|
|
859
|
+
o(se, "setQuadrant2Text");
|
|
860
|
+
function re(t) {
|
|
861
|
+
z.setData({ quadrant3Text: X(t.text) });
|
|
862
|
+
}
|
|
863
|
+
o(re, "setQuadrant3Text");
|
|
864
|
+
function oe(t) {
|
|
865
|
+
z.setData({ quadrant4Text: X(t.text) });
|
|
866
|
+
}
|
|
867
|
+
o(oe, "setQuadrant4Text");
|
|
868
|
+
function le(t) {
|
|
869
|
+
z.setData({ xAxisLeftText: X(t.text) });
|
|
870
|
+
}
|
|
871
|
+
o(le, "setXAxisLeftText");
|
|
872
|
+
function he(t) {
|
|
873
|
+
z.setData({ xAxisRightText: X(t.text) });
|
|
874
|
+
}
|
|
875
|
+
o(he, "setXAxisRightText");
|
|
876
|
+
function ce(t) {
|
|
877
|
+
z.setData({ yAxisTopText: X(t.text) });
|
|
878
|
+
}
|
|
879
|
+
o(ce, "setYAxisTopText");
|
|
880
|
+
function de(t) {
|
|
881
|
+
z.setData({ yAxisBottomText: X(t.text) });
|
|
882
|
+
}
|
|
883
|
+
o(de, "setYAxisBottomText");
|
|
884
|
+
function At(t) {
|
|
885
|
+
const a = {};
|
|
886
|
+
for (const g of t) {
|
|
887
|
+
const [u, l] = g.trim().split(/\s*:\s*/);
|
|
888
|
+
if (u === "radius") {
|
|
889
|
+
if (ie(l))
|
|
890
|
+
throw new mt(u, l, "number");
|
|
891
|
+
a.radius = parseInt(l);
|
|
892
|
+
} else if (u === "color") {
|
|
893
|
+
if (Dt(l))
|
|
894
|
+
throw new mt(u, l, "hex code");
|
|
895
|
+
a.color = l;
|
|
896
|
+
} else if (u === "stroke-color") {
|
|
897
|
+
if (Dt(l))
|
|
898
|
+
throw new mt(u, l, "hex code");
|
|
899
|
+
a.strokeColor = l;
|
|
900
|
+
} else if (u === "stroke-width") {
|
|
901
|
+
if (ae(l))
|
|
902
|
+
throw new mt(u, l, "number of pixels (eg. 10px)");
|
|
903
|
+
a.strokeWidth = l;
|
|
904
|
+
} else
|
|
905
|
+
throw new Error(`style named ${u} is not supported.`);
|
|
906
|
+
}
|
|
907
|
+
return a;
|
|
908
|
+
}
|
|
909
|
+
o(At, "parseStyles");
|
|
910
|
+
function ue(t, a, g, u, l) {
|
|
911
|
+
const x = At(l);
|
|
912
|
+
z.addPoints([
|
|
913
|
+
{
|
|
914
|
+
x: g,
|
|
915
|
+
y: u,
|
|
916
|
+
text: X(t.text),
|
|
917
|
+
className: a,
|
|
918
|
+
...x
|
|
919
|
+
}
|
|
920
|
+
]);
|
|
921
|
+
}
|
|
922
|
+
o(ue, "addPoint");
|
|
923
|
+
function xe(t, a) {
|
|
924
|
+
z.addClass(t, At(a));
|
|
925
|
+
}
|
|
926
|
+
o(xe, "addClass");
|
|
927
|
+
function ge(t) {
|
|
928
|
+
z.setConfig({ chartWidth: t });
|
|
929
|
+
}
|
|
930
|
+
o(ge, "setWidth");
|
|
931
|
+
function fe(t) {
|
|
932
|
+
z.setConfig({ chartHeight: t });
|
|
933
|
+
}
|
|
934
|
+
o(fe, "setHeight");
|
|
935
|
+
function pe() {
|
|
936
|
+
const t = zt(), { themeVariables: a, quadrantChart: g } = t;
|
|
937
|
+
return g && z.setConfig(g), z.setThemeConfig({
|
|
938
|
+
quadrant1Fill: a.quadrant1Fill,
|
|
939
|
+
quadrant2Fill: a.quadrant2Fill,
|
|
940
|
+
quadrant3Fill: a.quadrant3Fill,
|
|
941
|
+
quadrant4Fill: a.quadrant4Fill,
|
|
942
|
+
quadrant1TextFill: a.quadrant1TextFill,
|
|
943
|
+
quadrant2TextFill: a.quadrant2TextFill,
|
|
944
|
+
quadrant3TextFill: a.quadrant3TextFill,
|
|
945
|
+
quadrant4TextFill: a.quadrant4TextFill,
|
|
946
|
+
quadrantPointFill: a.quadrantPointFill,
|
|
947
|
+
quadrantPointTextFill: a.quadrantPointTextFill,
|
|
948
|
+
quadrantXAxisTextFill: a.quadrantXAxisTextFill,
|
|
949
|
+
quadrantYAxisTextFill: a.quadrantYAxisTextFill,
|
|
950
|
+
quadrantExternalBorderStrokeFill: a.quadrantExternalBorderStrokeFill,
|
|
951
|
+
quadrantInternalBorderStrokeFill: a.quadrantInternalBorderStrokeFill,
|
|
952
|
+
quadrantTitleFill: a.quadrantTitleFill
|
|
953
|
+
}), z.setData({ titleText: ee() }), z.build();
|
|
954
|
+
}
|
|
955
|
+
o(pe, "getQuadrantData");
|
|
956
|
+
var Ie = /* @__PURE__ */ o(function() {
|
|
957
|
+
z.clear(), Ce();
|
|
958
|
+
}, "clear"), We = {
|
|
959
|
+
setWidth: ge,
|
|
960
|
+
setHeight: fe,
|
|
961
|
+
setQuadrant1Text: ne,
|
|
962
|
+
setQuadrant2Text: se,
|
|
963
|
+
setQuadrant3Text: re,
|
|
964
|
+
setQuadrant4Text: oe,
|
|
965
|
+
setXAxisLeftText: le,
|
|
966
|
+
setXAxisRightText: he,
|
|
967
|
+
setYAxisTopText: ce,
|
|
968
|
+
setYAxisBottomText: de,
|
|
969
|
+
parseStyles: At,
|
|
970
|
+
addPoint: ue,
|
|
971
|
+
addClass: xe,
|
|
972
|
+
getQuadrantData: pe,
|
|
973
|
+
clear: Ie,
|
|
974
|
+
setAccTitle: Se,
|
|
975
|
+
getAccTitle: ke,
|
|
976
|
+
setDiagramTitle: Fe,
|
|
977
|
+
getDiagramTitle: ee,
|
|
978
|
+
getAccDescription: Pe,
|
|
979
|
+
setAccDescription: ve
|
|
980
|
+
}, Re = /* @__PURE__ */ o((t, a, g, u) => {
|
|
981
|
+
var l, x, _;
|
|
982
|
+
function h(i) {
|
|
983
|
+
return i === "top" ? "hanging" : "middle";
|
|
984
|
+
}
|
|
985
|
+
o(h, "getDominantBaseLine");
|
|
986
|
+
function s(i) {
|
|
987
|
+
return i === "left" ? "start" : "middle";
|
|
988
|
+
}
|
|
989
|
+
o(s, "getTextAnchor");
|
|
990
|
+
function b(i) {
|
|
991
|
+
return `translate(${i.x}, ${i.y}) rotate(${i.rotation || 0})`;
|
|
992
|
+
}
|
|
993
|
+
o(b, "getTransformation");
|
|
994
|
+
const p = zt();
|
|
995
|
+
qt.debug(`Rendering quadrant chart
|
|
996
|
+
` + t);
|
|
997
|
+
const m = p.securityLevel;
|
|
998
|
+
let T;
|
|
999
|
+
m === "sandbox" && (T = vt("#i" + a));
|
|
1000
|
+
const y = (m === "sandbox" ? vt(T.nodes()[0].contentDocument.body) : vt("body")).select(`[id="${a}"]`), f = y.append("g").attr("class", "main"), q = ((l = p.quadrantChart) == null ? void 0 : l.chartWidth) ?? 500, H = ((x = p.quadrantChart) == null ? void 0 : x.chartHeight) ?? 500;
|
|
1001
|
+
Le(y, H, q, ((_ = p.quadrantChart) == null ? void 0 : _.useMaxWidth) ?? !0), y.attr("viewBox", "0 0 " + q + " " + H), u.db.setHeight(H), u.db.setWidth(q);
|
|
1002
|
+
const C = u.db.getQuadrantData(), ct = f.append("g").attr("class", "quadrants"), dt = f.append("g").attr("class", "border"), ut = f.append("g").attr("class", "data-points"), xt = f.append("g").attr("class", "labels"), gt = f.append("g").attr("class", "title");
|
|
1003
|
+
C.title && gt.append("text").attr("x", 0).attr("y", 0).attr("fill", C.title.fill).attr("font-size", C.title.fontSize).attr("dominant-baseline", h(C.title.horizontalPos)).attr("text-anchor", s(C.title.verticalPos)).attr("transform", b(C.title)).text(C.title.text), C.borderLines && dt.selectAll("line").data(C.borderLines).enter().append("line").attr("x1", (i) => i.x1).attr("y1", (i) => i.y1).attr("x2", (i) => i.x2).attr("y2", (i) => i.y2).style("stroke", (i) => i.strokeFill).style("stroke-width", (i) => i.strokeWidth);
|
|
1004
|
+
const lt = ct.selectAll("g.quadrant").data(C.quadrants).enter().append("g").attr("class", "quadrant");
|
|
1005
|
+
lt.append("rect").attr("x", (i) => i.x).attr("y", (i) => i.y).attr("width", (i) => i.width).attr("height", (i) => i.height).attr("fill", (i) => i.fill), lt.append("text").attr("x", 0).attr("y", 0).attr("fill", (i) => i.text.fill).attr("font-size", (i) => i.text.fontSize).attr(
|
|
1006
|
+
"dominant-baseline",
|
|
1007
|
+
(i) => h(i.text.horizontalPos)
|
|
1008
|
+
).attr("text-anchor", (i) => s(i.text.verticalPos)).attr("transform", (i) => b(i.text)).text((i) => i.text.text), xt.selectAll("g.label").data(C.axisLabels).enter().append("g").attr("class", "label").append("text").attr("x", 0).attr("y", 0).text((i) => i.text).attr("fill", (i) => i.fill).attr("font-size", (i) => i.fontSize).attr("dominant-baseline", (i) => h(i.horizontalPos)).attr("text-anchor", (i) => s(i.verticalPos)).attr("transform", (i) => b(i));
|
|
1009
|
+
const ht = ut.selectAll("g.data-point").data(C.points).enter().append("g").attr("class", "data-point");
|
|
1010
|
+
ht.append("circle").attr("cx", (i) => i.x).attr("cy", (i) => i.y).attr("r", (i) => i.radius).attr("fill", (i) => i.fill).attr("stroke", (i) => i.strokeColor).attr("stroke-width", (i) => i.strokeWidth), ht.append("text").attr("x", 0).attr("y", 0).text((i) => i.text.text).attr("fill", (i) => i.text.fill).attr("font-size", (i) => i.text.fontSize).attr(
|
|
1011
|
+
"dominant-baseline",
|
|
1012
|
+
(i) => h(i.text.horizontalPos)
|
|
1013
|
+
).attr("text-anchor", (i) => s(i.text.verticalPos)).attr("transform", (i) => b(i.text));
|
|
1014
|
+
}, "draw"), Be = {
|
|
1015
|
+
draw: Re
|
|
1016
|
+
}, Ue = {
|
|
1017
|
+
parser: Ee,
|
|
1018
|
+
db: We,
|
|
1019
|
+
renderer: Be,
|
|
1020
|
+
styles: /* @__PURE__ */ o(() => "", "styles")
|
|
1021
|
+
};
|
|
1022
|
+
export {
|
|
1023
|
+
Ue as diagram
|
|
1024
|
+
};
|