@digipair/skill-web-chatbot 0.90.0 → 0.91.0-0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (136) hide show
  1. package/.swcrc +28 -0
  2. package/README.md +7 -0
  3. package/eslint.config.mjs +22 -0
  4. package/package.json +22 -7
  5. package/rollup.config.cjs +28 -0
  6. package/src/digipair__engine.d.ts +2 -0
  7. package/src/handlebars.d.ts +1 -0
  8. package/src/index.html +18 -0
  9. package/src/lib/chat.element.ts +603 -0
  10. package/src/lib/common.data.ts +1 -0
  11. package/src/lib/config.ts +30 -0
  12. package/src/lib/digipair-full.data.ts +101 -0
  13. package/src/lib/digipair-full.element.ts +358 -0
  14. package/src/lib/digipair.data.ts +103 -0
  15. package/src/lib/digipair.element.ts +446 -0
  16. package/src/lib/inputs.element.ts +46 -0
  17. package/src/lib/mermaid.d.ts +1 -0
  18. package/src/lib/message.interface.ts +10 -0
  19. package/src/lib/pins/chatbot.actions.ts +32 -0
  20. package/src/lib/tools/css-selector.ts +12 -0
  21. package/tsconfig.json +13 -0
  22. package/tsconfig.lib.json +19 -0
  23. package/SAP-icons.cjs.js +0 -2489
  24. package/SAP-icons.cjs2.js +0 -2489
  25. package/SAP-icons.esm.js +0 -2482
  26. package/SAP-icons.esm2.js +0 -2482
  27. package/Tableau10-558cc280.cjs.js +0 -9
  28. package/Tableau10-558cc280.esm.js +0 -7
  29. package/arc-d1f6357e.cjs.js +0 -88
  30. package/arc-d1f6357e.esm.js +0 -86
  31. package/array-2ff2c7a6.cjs.js +0 -7
  32. package/array-2ff2c7a6.esm.js +0 -5
  33. package/blockDiagram-5dc23a45.cjs.js +0 -2921
  34. package/blockDiagram-5dc23a45.esm.js +0 -2919
  35. package/c4Diagram-1e775db3.cjs.js +0 -4387
  36. package/c4Diagram-1e775db3.esm.js +0 -4385
  37. package/channel-ebbc4130.cjs.js +0 -9
  38. package/channel-ebbc4130.esm.js +0 -7
  39. package/classDiagram-f52caa06.cjs.js +0 -209
  40. package/classDiagram-f52caa06.esm.js +0 -207
  41. package/classDiagram-v2-640c694e.cjs.js +0 -401
  42. package/classDiagram-v2-640c694e.esm.js +0 -399
  43. package/clone-afc2f047.cjs.js +0 -10
  44. package/clone-afc2f047.esm.js +0 -8
  45. package/createText-03b82060.cjs.js +0 -2936
  46. package/createText-03b82060.esm.js +0 -2933
  47. package/edges-16357fde.cjs.js +0 -1998
  48. package/edges-16357fde.esm.js +0 -1981
  49. package/erDiagram-c7ff1bec.cjs.js +0 -1807
  50. package/erDiagram-c7ff1bec.esm.js +0 -1805
  51. package/flowDb-9a89ea33.cjs.js +0 -5542
  52. package/flowDb-9a89ea33.esm.js +0 -5538
  53. package/flowDiagram-aadb13b0.cjs.js +0 -1351
  54. package/flowDiagram-aadb13b0.esm.js +0 -1349
  55. package/flowDiagram-v2-f2119625.cjs.js +0 -31
  56. package/flowDiagram-v2-f2119625.esm.js +0 -29
  57. package/flowchart-elk-definition-cf813a97.cjs.js +0 -50257
  58. package/flowchart-elk-definition-cf813a97.esm.js +0 -50255
  59. package/ganttDiagram-3c2fde2b.cjs.js +0 -3710
  60. package/ganttDiagram-3c2fde2b.esm.js +0 -3708
  61. package/gitGraphDiagram-c3a0619c.cjs.js +0 -3820
  62. package/gitGraphDiagram-c3a0619c.esm.js +0 -3818
  63. package/graph-0ee63739.cjs.js +0 -961
  64. package/graph-0ee63739.esm.js +0 -938
  65. package/index-bb6d8841.cjs.js +0 -648
  66. package/index-bb6d8841.esm.js +0 -646
  67. package/index.cjs.d.ts +0 -1
  68. package/index.cjs.js +0 -17
  69. package/index.cjs2.js +0 -60723
  70. package/index.esm.js +0 -1
  71. package/index.esm2.js +0 -60574
  72. package/infoDiagram-2f5c50c0.cjs.js +0 -460
  73. package/infoDiagram-2f5c50c0.esm.js +0 -458
  74. package/init-f9637058.cjs.js +0 -17
  75. package/init-f9637058.esm.js +0 -15
  76. package/journeyDiagram-14fe341a.cjs.js +0 -1061
  77. package/journeyDiagram-14fe341a.esm.js +0 -1059
  78. package/katex-d90b6d29.cjs.js +0 -25690
  79. package/katex-d90b6d29.esm.js +0 -25688
  80. package/layout-fd473db2.cjs.js +0 -1626
  81. package/layout-fd473db2.esm.js +0 -1619
  82. package/libs/engine/src/index.d.ts +0 -2
  83. package/libs/engine/src/lib/alias.interface.d.ts +0 -9
  84. package/libs/engine/src/lib/engine.d.ts +0 -13
  85. package/libs/engine/src/lib/pins-settings.interface.d.ts +0 -15
  86. package/libs/skill-web-chatbot/src/lib/chat.element.d.ts +0 -28
  87. package/libs/skill-web-chatbot/src/lib/common.data.d.ts +0 -1
  88. package/libs/skill-web-chatbot/src/lib/config.d.ts +0 -9
  89. package/libs/skill-web-chatbot/src/lib/digipair-full.data.d.ts +0 -1
  90. package/libs/skill-web-chatbot/src/lib/digipair-full.element.d.ts +0 -36
  91. package/libs/skill-web-chatbot/src/lib/digipair.data.d.ts +0 -1
  92. package/libs/skill-web-chatbot/src/lib/digipair.element.d.ts +0 -44
  93. package/libs/skill-web-chatbot/src/lib/inputs.element.d.ts +0 -10
  94. package/libs/skill-web-chatbot/src/lib/message.interface.d.ts +0 -10
  95. package/libs/skill-web-chatbot/src/lib/pins/chatbot.actions.d.ts +0 -1
  96. package/libs/skill-web-chatbot/src/lib/tools/css-selector.d.ts +0 -1
  97. package/line-24d93f1b.cjs.js +0 -34
  98. package/line-24d93f1b.esm.js +0 -32
  99. package/linear-9bcf74c4.cjs.js +0 -537
  100. package/linear-9bcf74c4.esm.js +0 -531
  101. package/mindmap-definition-9399c7e6.cjs.js +0 -20489
  102. package/mindmap-definition-9399c7e6.esm.js +0 -20487
  103. package/ordinal-5695958c.cjs.js +0 -331
  104. package/ordinal-5695958c.esm.js +0 -329
  105. package/path-428ebac9.cjs.js +0 -317
  106. package/path-428ebac9.esm.js +0 -314
  107. package/pieDiagram-828dae43.cjs.js +0 -951
  108. package/pieDiagram-828dae43.esm.js +0 -949
  109. package/quadrantDiagram-5fa00455.cjs.js +0 -2410
  110. package/quadrantDiagram-5fa00455.esm.js +0 -2408
  111. package/requirementDiagram-03163dc4.cjs.js +0 -2267
  112. package/requirementDiagram-03163dc4.esm.js +0 -2265
  113. package/sankeyDiagram-52ec8976.cjs.js +0 -1848
  114. package/sankeyDiagram-52ec8976.esm.js +0 -1846
  115. package/sequenceDiagram-b517d154.cjs.js +0 -5949
  116. package/sequenceDiagram-b517d154.esm.js +0 -5947
  117. package/stateDiagram-fca82b5b.cjs.js +0 -283
  118. package/stateDiagram-fca82b5b.esm.js +0 -281
  119. package/stateDiagram-v2-ed04200a.cjs.js +0 -373
  120. package/stateDiagram-v2-ed04200a.esm.js +0 -371
  121. package/styles-11e81fdd.cjs.js +0 -3944
  122. package/styles-11e81fdd.esm.js +0 -3940
  123. package/styles-cacbff60.cjs.js +0 -2120
  124. package/styles-cacbff60.esm.js +0 -2111
  125. package/styles-e75131e4.cjs.js +0 -671
  126. package/styles-e75131e4.esm.js +0 -661
  127. package/svgDrawCommon-ecc5f780.cjs.js +0 -68
  128. package/svgDrawCommon-ecc5f780.esm.js +0 -60
  129. package/timeline-definition-4ee9bff4.cjs.js +0 -1161
  130. package/timeline-definition-4ee9bff4.esm.js +0 -1159
  131. package/xychartDiagram-e5e6b652.cjs.js +0 -3150
  132. package/xychartDiagram-e5e6b652.esm.js +0 -3148
  133. /package/{index.d.ts → src/index.d.ts} +0 -0
  134. /package/{libs/skill-web-chatbot/src/index.d.ts → src/index.ts} +0 -0
  135. /package/{schema.fr.json → src/schema.fr.json} +0 -0
  136. /package/{schema.json → src/schema.json} +0 -0
@@ -1,2410 +0,0 @@
1
- 'use strict';
2
-
3
- var index = require('./index.cjs2.js');
4
- var linear9bcf74c4 = require('./linear-9bcf74c4.cjs.js');
5
- require('./init-f9637058.cjs.js');
6
-
7
- function _array_like_to_array(arr, len) {
8
- if (len == null || len > arr.length) len = arr.length;
9
- for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
10
- return arr2;
11
- }
12
- function _array_without_holes(arr) {
13
- if (Array.isArray(arr)) return _array_like_to_array(arr);
14
- }
15
- function _class_call_check(instance, Constructor) {
16
- if (!(instance instanceof Constructor)) {
17
- throw new TypeError("Cannot call a class as a function");
18
- }
19
- }
20
- function _defineProperties(target, props) {
21
- for(var i = 0; i < props.length; i++){
22
- var descriptor = props[i];
23
- descriptor.enumerable = descriptor.enumerable || false;
24
- descriptor.configurable = true;
25
- if ("value" in descriptor) descriptor.writable = true;
26
- Object.defineProperty(target, descriptor.key, descriptor);
27
- }
28
- }
29
- function _create_class(Constructor, protoProps, staticProps) {
30
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
31
- if (staticProps) _defineProperties(Constructor, staticProps);
32
- return Constructor;
33
- }
34
- function _define_property(obj, key, value) {
35
- if (key in obj) {
36
- Object.defineProperty(obj, key, {
37
- value: value,
38
- enumerable: true,
39
- configurable: true,
40
- writable: true
41
- });
42
- } else {
43
- obj[key] = value;
44
- }
45
- return obj;
46
- }
47
- function _instanceof(left, right) {
48
- if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
49
- return !!right[Symbol.hasInstance](left);
50
- } else {
51
- return left instanceof right;
52
- }
53
- }
54
- function _iterable_to_array(iter) {
55
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
56
- }
57
- function _non_iterable_spread() {
58
- throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
59
- }
60
- function _object_spread(target) {
61
- for(var i = 1; i < arguments.length; i++){
62
- var source = arguments[i] != null ? arguments[i] : {};
63
- var ownKeys = Object.keys(source);
64
- if (typeof Object.getOwnPropertySymbols === "function") {
65
- ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
66
- return Object.getOwnPropertyDescriptor(source, sym).enumerable;
67
- }));
68
- }
69
- ownKeys.forEach(function(key) {
70
- _define_property(target, key, source[key]);
71
- });
72
- }
73
- return target;
74
- }
75
- function _to_consumable_array(arr) {
76
- return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
77
- }
78
- function _type_of(obj) {
79
- "@swc/helpers - typeof";
80
- return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
81
- }
82
- function _unsupported_iterable_to_array(o, minLen) {
83
- if (!o) return;
84
- if (typeof o === "string") return _array_like_to_array(o, minLen);
85
- var n = Object.prototype.toString.call(o).slice(8, -1);
86
- if (n === "Object" && o.constructor) n = o.constructor.name;
87
- if (n === "Map" || n === "Set") return Array.from(n);
88
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
89
- }
90
- var pt = function() {
91
- var e = function e($, n, r, o) {
92
- for(r = r || {}, o = $.length; o--; r[$[o]] = n);
93
- return r;
94
- }, s = [
95
- 1,
96
- 3
97
- ], c = [
98
- 1,
99
- 4
100
- ], x = [
101
- 1,
102
- 5
103
- ], f = [
104
- 1,
105
- 6
106
- ], d = [
107
- 1,
108
- 7
109
- ], l = [
110
- 1,
111
- 5,
112
- 13,
113
- 15,
114
- 17,
115
- 19,
116
- 20,
117
- 25,
118
- 27,
119
- 28,
120
- 29,
121
- 30,
122
- 31,
123
- 32,
124
- 33,
125
- 34,
126
- 37,
127
- 38,
128
- 40,
129
- 41,
130
- 42,
131
- 43,
132
- 44,
133
- 45,
134
- 46,
135
- 47,
136
- 48,
137
- 49,
138
- 50
139
- ], g = [
140
- 1,
141
- 5,
142
- 6,
143
- 13,
144
- 15,
145
- 17,
146
- 19,
147
- 20,
148
- 25,
149
- 27,
150
- 28,
151
- 29,
152
- 30,
153
- 31,
154
- 32,
155
- 33,
156
- 34,
157
- 37,
158
- 38,
159
- 40,
160
- 41,
161
- 42,
162
- 43,
163
- 44,
164
- 45,
165
- 46,
166
- 47,
167
- 48,
168
- 49,
169
- 50
170
- ], i = [
171
- 32,
172
- 33,
173
- 34
174
- ], q = [
175
- 2,
176
- 7
177
- ], b = [
178
- 1,
179
- 13
180
- ], D = [
181
- 1,
182
- 17
183
- ], w = [
184
- 1,
185
- 18
186
- ], I = [
187
- 1,
188
- 19
189
- ], B = [
190
- 1,
191
- 20
192
- ], p = [
193
- 1,
194
- 21
195
- ], H = [
196
- 1,
197
- 22
198
- ], G = [
199
- 1,
200
- 23
201
- ], K = [
202
- 1,
203
- 24
204
- ], at = [
205
- 1,
206
- 25
207
- ], nt = [
208
- 1,
209
- 26
210
- ], et = [
211
- 1,
212
- 27
213
- ], Q = [
214
- 1,
215
- 30
216
- ], N = [
217
- 1,
218
- 31
219
- ], T = [
220
- 1,
221
- 32
222
- ], m = [
223
- 1,
224
- 33
225
- ], A = [
226
- 1,
227
- 34
228
- ], t = [
229
- 1,
230
- 35
231
- ], _ = [
232
- 1,
233
- 36
234
- ], S = [
235
- 1,
236
- 37
237
- ], k = [
238
- 1,
239
- 38
240
- ], F = [
241
- 1,
242
- 39
243
- ], P = [
244
- 1,
245
- 40
246
- ], v = [
247
- 1,
248
- 41
249
- ], L = [
250
- 1,
251
- 42
252
- ], M = [
253
- 1,
254
- 57
255
- ], X = [
256
- 1,
257
- 58
258
- ], C = [
259
- 5,
260
- 22,
261
- 26,
262
- 32,
263
- 33,
264
- 34,
265
- 40,
266
- 41,
267
- 42,
268
- 43,
269
- 44,
270
- 45,
271
- 46,
272
- 47,
273
- 48,
274
- 49,
275
- 50,
276
- 51
277
- ], ht = {
278
- trace: function trace() {},
279
- yy: {},
280
- symbols_: {
281
- error: 2,
282
- start: 3,
283
- eol: 4,
284
- SPACE: 5,
285
- QUADRANT: 6,
286
- document: 7,
287
- line: 8,
288
- statement: 9,
289
- axisDetails: 10,
290
- quadrantDetails: 11,
291
- points: 12,
292
- title: 13,
293
- title_value: 14,
294
- acc_title: 15,
295
- acc_title_value: 16,
296
- acc_descr: 17,
297
- acc_descr_value: 18,
298
- acc_descr_multiline_value: 19,
299
- section: 20,
300
- text: 21,
301
- point_start: 22,
302
- point_x: 23,
303
- point_y: 24,
304
- "X-AXIS": 25,
305
- "AXIS-TEXT-DELIMITER": 26,
306
- "Y-AXIS": 27,
307
- QUADRANT_1: 28,
308
- QUADRANT_2: 29,
309
- QUADRANT_3: 30,
310
- QUADRANT_4: 31,
311
- NEWLINE: 32,
312
- SEMI: 33,
313
- EOF: 34,
314
- alphaNumToken: 35,
315
- textNoTagsToken: 36,
316
- STR: 37,
317
- MD_STR: 38,
318
- alphaNum: 39,
319
- PUNCTUATION: 40,
320
- AMP: 41,
321
- NUM: 42,
322
- ALPHA: 43,
323
- COMMA: 44,
324
- PLUS: 45,
325
- EQUALS: 46,
326
- MULT: 47,
327
- DOT: 48,
328
- BRKT: 49,
329
- UNDERSCORE: 50,
330
- MINUS: 51,
331
- $accept: 0,
332
- $end: 1
333
- },
334
- terminals_: {
335
- 2: "error",
336
- 5: "SPACE",
337
- 6: "QUADRANT",
338
- 13: "title",
339
- 14: "title_value",
340
- 15: "acc_title",
341
- 16: "acc_title_value",
342
- 17: "acc_descr",
343
- 18: "acc_descr_value",
344
- 19: "acc_descr_multiline_value",
345
- 20: "section",
346
- 22: "point_start",
347
- 23: "point_x",
348
- 24: "point_y",
349
- 25: "X-AXIS",
350
- 26: "AXIS-TEXT-DELIMITER",
351
- 27: "Y-AXIS",
352
- 28: "QUADRANT_1",
353
- 29: "QUADRANT_2",
354
- 30: "QUADRANT_3",
355
- 31: "QUADRANT_4",
356
- 32: "NEWLINE",
357
- 33: "SEMI",
358
- 34: "EOF",
359
- 37: "STR",
360
- 38: "MD_STR",
361
- 40: "PUNCTUATION",
362
- 41: "AMP",
363
- 42: "NUM",
364
- 43: "ALPHA",
365
- 44: "COMMA",
366
- 45: "PLUS",
367
- 46: "EQUALS",
368
- 47: "MULT",
369
- 48: "DOT",
370
- 49: "BRKT",
371
- 50: "UNDERSCORE",
372
- 51: "MINUS"
373
- },
374
- productions_: [
375
- 0,
376
- [
377
- 3,
378
- 2
379
- ],
380
- [
381
- 3,
382
- 2
383
- ],
384
- [
385
- 3,
386
- 2
387
- ],
388
- [
389
- 7,
390
- 0
391
- ],
392
- [
393
- 7,
394
- 2
395
- ],
396
- [
397
- 8,
398
- 2
399
- ],
400
- [
401
- 9,
402
- 0
403
- ],
404
- [
405
- 9,
406
- 2
407
- ],
408
- [
409
- 9,
410
- 1
411
- ],
412
- [
413
- 9,
414
- 1
415
- ],
416
- [
417
- 9,
418
- 1
419
- ],
420
- [
421
- 9,
422
- 2
423
- ],
424
- [
425
- 9,
426
- 2
427
- ],
428
- [
429
- 9,
430
- 2
431
- ],
432
- [
433
- 9,
434
- 1
435
- ],
436
- [
437
- 9,
438
- 1
439
- ],
440
- [
441
- 12,
442
- 4
443
- ],
444
- [
445
- 10,
446
- 4
447
- ],
448
- [
449
- 10,
450
- 3
451
- ],
452
- [
453
- 10,
454
- 2
455
- ],
456
- [
457
- 10,
458
- 4
459
- ],
460
- [
461
- 10,
462
- 3
463
- ],
464
- [
465
- 10,
466
- 2
467
- ],
468
- [
469
- 11,
470
- 2
471
- ],
472
- [
473
- 11,
474
- 2
475
- ],
476
- [
477
- 11,
478
- 2
479
- ],
480
- [
481
- 11,
482
- 2
483
- ],
484
- [
485
- 4,
486
- 1
487
- ],
488
- [
489
- 4,
490
- 1
491
- ],
492
- [
493
- 4,
494
- 1
495
- ],
496
- [
497
- 21,
498
- 1
499
- ],
500
- [
501
- 21,
502
- 2
503
- ],
504
- [
505
- 21,
506
- 1
507
- ],
508
- [
509
- 21,
510
- 1
511
- ],
512
- [
513
- 39,
514
- 1
515
- ],
516
- [
517
- 39,
518
- 2
519
- ],
520
- [
521
- 35,
522
- 1
523
- ],
524
- [
525
- 35,
526
- 1
527
- ],
528
- [
529
- 35,
530
- 1
531
- ],
532
- [
533
- 35,
534
- 1
535
- ],
536
- [
537
- 35,
538
- 1
539
- ],
540
- [
541
- 35,
542
- 1
543
- ],
544
- [
545
- 35,
546
- 1
547
- ],
548
- [
549
- 35,
550
- 1
551
- ],
552
- [
553
- 35,
554
- 1
555
- ],
556
- [
557
- 35,
558
- 1
559
- ],
560
- [
561
- 35,
562
- 1
563
- ],
564
- [
565
- 36,
566
- 1
567
- ],
568
- [
569
- 36,
570
- 1
571
- ],
572
- [
573
- 36,
574
- 1
575
- ]
576
- ],
577
- performAction: function performAction(n, r, o, h, y, a, it) {
578
- var u = a.length - 1;
579
- switch(y){
580
- case 12:
581
- this.$ = a[u].trim(), h.setDiagramTitle(this.$);
582
- break;
583
- case 13:
584
- this.$ = a[u].trim(), h.setAccTitle(this.$);
585
- break;
586
- case 14:
587
- case 15:
588
- this.$ = a[u].trim(), h.setAccDescription(this.$);
589
- break;
590
- case 16:
591
- h.addSection(a[u].substr(8)), this.$ = a[u].substr(8);
592
- break;
593
- case 17:
594
- h.addPoint(a[u - 3], a[u - 1], a[u]);
595
- break;
596
- case 18:
597
- h.setXAxisLeftText(a[u - 2]), h.setXAxisRightText(a[u]);
598
- break;
599
- case 19:
600
- a[u - 1].text += " ⟶ ", h.setXAxisLeftText(a[u - 1]);
601
- break;
602
- case 20:
603
- h.setXAxisLeftText(a[u]);
604
- break;
605
- case 21:
606
- h.setYAxisBottomText(a[u - 2]), h.setYAxisTopText(a[u]);
607
- break;
608
- case 22:
609
- a[u - 1].text += " ⟶ ", h.setYAxisBottomText(a[u - 1]);
610
- break;
611
- case 23:
612
- h.setYAxisBottomText(a[u]);
613
- break;
614
- case 24:
615
- h.setQuadrant1Text(a[u]);
616
- break;
617
- case 25:
618
- h.setQuadrant2Text(a[u]);
619
- break;
620
- case 26:
621
- h.setQuadrant3Text(a[u]);
622
- break;
623
- case 27:
624
- h.setQuadrant4Text(a[u]);
625
- break;
626
- case 31:
627
- this.$ = {
628
- text: a[u],
629
- type: "text"
630
- };
631
- break;
632
- case 32:
633
- this.$ = {
634
- text: a[u - 1].text + "" + a[u],
635
- type: a[u - 1].type
636
- };
637
- break;
638
- case 33:
639
- this.$ = {
640
- text: a[u],
641
- type: "text"
642
- };
643
- break;
644
- case 34:
645
- this.$ = {
646
- text: a[u],
647
- type: "markdown"
648
- };
649
- break;
650
- case 35:
651
- this.$ = a[u];
652
- break;
653
- case 36:
654
- this.$ = a[u - 1] + "" + a[u];
655
- break;
656
- }
657
- },
658
- table: [
659
- {
660
- 3: 1,
661
- 4: 2,
662
- 5: s,
663
- 6: c,
664
- 32: x,
665
- 33: f,
666
- 34: d
667
- },
668
- {
669
- 1: [
670
- 3
671
- ]
672
- },
673
- {
674
- 3: 8,
675
- 4: 2,
676
- 5: s,
677
- 6: c,
678
- 32: x,
679
- 33: f,
680
- 34: d
681
- },
682
- {
683
- 3: 9,
684
- 4: 2,
685
- 5: s,
686
- 6: c,
687
- 32: x,
688
- 33: f,
689
- 34: d
690
- },
691
- e(l, [
692
- 2,
693
- 4
694
- ], {
695
- 7: 10
696
- }),
697
- e(g, [
698
- 2,
699
- 28
700
- ]),
701
- e(g, [
702
- 2,
703
- 29
704
- ]),
705
- e(g, [
706
- 2,
707
- 30
708
- ]),
709
- {
710
- 1: [
711
- 2,
712
- 1
713
- ]
714
- },
715
- {
716
- 1: [
717
- 2,
718
- 2
719
- ]
720
- },
721
- e(i, q, {
722
- 8: 11,
723
- 9: 12,
724
- 10: 14,
725
- 11: 15,
726
- 12: 16,
727
- 21: 28,
728
- 35: 29,
729
- 1: [
730
- 2,
731
- 3
732
- ],
733
- 5: b,
734
- 13: D,
735
- 15: w,
736
- 17: I,
737
- 19: B,
738
- 20: p,
739
- 25: H,
740
- 27: G,
741
- 28: K,
742
- 29: at,
743
- 30: nt,
744
- 31: et,
745
- 37: Q,
746
- 38: N,
747
- 40: T,
748
- 41: m,
749
- 42: A,
750
- 43: t,
751
- 44: _,
752
- 45: S,
753
- 46: k,
754
- 47: F,
755
- 48: P,
756
- 49: v,
757
- 50: L
758
- }),
759
- e(l, [
760
- 2,
761
- 5
762
- ]),
763
- {
764
- 4: 43,
765
- 32: x,
766
- 33: f,
767
- 34: d
768
- },
769
- e(i, q, {
770
- 10: 14,
771
- 11: 15,
772
- 12: 16,
773
- 21: 28,
774
- 35: 29,
775
- 9: 44,
776
- 5: b,
777
- 13: D,
778
- 15: w,
779
- 17: I,
780
- 19: B,
781
- 20: p,
782
- 25: H,
783
- 27: G,
784
- 28: K,
785
- 29: at,
786
- 30: nt,
787
- 31: et,
788
- 37: Q,
789
- 38: N,
790
- 40: T,
791
- 41: m,
792
- 42: A,
793
- 43: t,
794
- 44: _,
795
- 45: S,
796
- 46: k,
797
- 47: F,
798
- 48: P,
799
- 49: v,
800
- 50: L
801
- }),
802
- e(i, [
803
- 2,
804
- 9
805
- ]),
806
- e(i, [
807
- 2,
808
- 10
809
- ]),
810
- e(i, [
811
- 2,
812
- 11
813
- ]),
814
- {
815
- 14: [
816
- 1,
817
- 45
818
- ]
819
- },
820
- {
821
- 16: [
822
- 1,
823
- 46
824
- ]
825
- },
826
- {
827
- 18: [
828
- 1,
829
- 47
830
- ]
831
- },
832
- e(i, [
833
- 2,
834
- 15
835
- ]),
836
- e(i, [
837
- 2,
838
- 16
839
- ]),
840
- {
841
- 21: 48,
842
- 35: 29,
843
- 37: Q,
844
- 38: N,
845
- 40: T,
846
- 41: m,
847
- 42: A,
848
- 43: t,
849
- 44: _,
850
- 45: S,
851
- 46: k,
852
- 47: F,
853
- 48: P,
854
- 49: v,
855
- 50: L
856
- },
857
- {
858
- 21: 49,
859
- 35: 29,
860
- 37: Q,
861
- 38: N,
862
- 40: T,
863
- 41: m,
864
- 42: A,
865
- 43: t,
866
- 44: _,
867
- 45: S,
868
- 46: k,
869
- 47: F,
870
- 48: P,
871
- 49: v,
872
- 50: L
873
- },
874
- {
875
- 21: 50,
876
- 35: 29,
877
- 37: Q,
878
- 38: N,
879
- 40: T,
880
- 41: m,
881
- 42: A,
882
- 43: t,
883
- 44: _,
884
- 45: S,
885
- 46: k,
886
- 47: F,
887
- 48: P,
888
- 49: v,
889
- 50: L
890
- },
891
- {
892
- 21: 51,
893
- 35: 29,
894
- 37: Q,
895
- 38: N,
896
- 40: T,
897
- 41: m,
898
- 42: A,
899
- 43: t,
900
- 44: _,
901
- 45: S,
902
- 46: k,
903
- 47: F,
904
- 48: P,
905
- 49: v,
906
- 50: L
907
- },
908
- {
909
- 21: 52,
910
- 35: 29,
911
- 37: Q,
912
- 38: N,
913
- 40: T,
914
- 41: m,
915
- 42: A,
916
- 43: t,
917
- 44: _,
918
- 45: S,
919
- 46: k,
920
- 47: F,
921
- 48: P,
922
- 49: v,
923
- 50: L
924
- },
925
- {
926
- 21: 53,
927
- 35: 29,
928
- 37: Q,
929
- 38: N,
930
- 40: T,
931
- 41: m,
932
- 42: A,
933
- 43: t,
934
- 44: _,
935
- 45: S,
936
- 46: k,
937
- 47: F,
938
- 48: P,
939
- 49: v,
940
- 50: L
941
- },
942
- {
943
- 5: M,
944
- 22: [
945
- 1,
946
- 54
947
- ],
948
- 35: 56,
949
- 36: 55,
950
- 40: T,
951
- 41: m,
952
- 42: A,
953
- 43: t,
954
- 44: _,
955
- 45: S,
956
- 46: k,
957
- 47: F,
958
- 48: P,
959
- 49: v,
960
- 50: L,
961
- 51: X
962
- },
963
- e(C, [
964
- 2,
965
- 31
966
- ]),
967
- e(C, [
968
- 2,
969
- 33
970
- ]),
971
- e(C, [
972
- 2,
973
- 34
974
- ]),
975
- e(C, [
976
- 2,
977
- 37
978
- ]),
979
- e(C, [
980
- 2,
981
- 38
982
- ]),
983
- e(C, [
984
- 2,
985
- 39
986
- ]),
987
- e(C, [
988
- 2,
989
- 40
990
- ]),
991
- e(C, [
992
- 2,
993
- 41
994
- ]),
995
- e(C, [
996
- 2,
997
- 42
998
- ]),
999
- e(C, [
1000
- 2,
1001
- 43
1002
- ]),
1003
- e(C, [
1004
- 2,
1005
- 44
1006
- ]),
1007
- e(C, [
1008
- 2,
1009
- 45
1010
- ]),
1011
- e(C, [
1012
- 2,
1013
- 46
1014
- ]),
1015
- e(C, [
1016
- 2,
1017
- 47
1018
- ]),
1019
- e(l, [
1020
- 2,
1021
- 6
1022
- ]),
1023
- e(i, [
1024
- 2,
1025
- 8
1026
- ]),
1027
- e(i, [
1028
- 2,
1029
- 12
1030
- ]),
1031
- e(i, [
1032
- 2,
1033
- 13
1034
- ]),
1035
- e(i, [
1036
- 2,
1037
- 14
1038
- ]),
1039
- e(i, [
1040
- 2,
1041
- 20
1042
- ], {
1043
- 36: 55,
1044
- 35: 56,
1045
- 5: M,
1046
- 26: [
1047
- 1,
1048
- 59
1049
- ],
1050
- 40: T,
1051
- 41: m,
1052
- 42: A,
1053
- 43: t,
1054
- 44: _,
1055
- 45: S,
1056
- 46: k,
1057
- 47: F,
1058
- 48: P,
1059
- 49: v,
1060
- 50: L,
1061
- 51: X
1062
- }),
1063
- e(i, [
1064
- 2,
1065
- 23
1066
- ], {
1067
- 36: 55,
1068
- 35: 56,
1069
- 5: M,
1070
- 26: [
1071
- 1,
1072
- 60
1073
- ],
1074
- 40: T,
1075
- 41: m,
1076
- 42: A,
1077
- 43: t,
1078
- 44: _,
1079
- 45: S,
1080
- 46: k,
1081
- 47: F,
1082
- 48: P,
1083
- 49: v,
1084
- 50: L,
1085
- 51: X
1086
- }),
1087
- e(i, [
1088
- 2,
1089
- 24
1090
- ], {
1091
- 36: 55,
1092
- 35: 56,
1093
- 5: M,
1094
- 40: T,
1095
- 41: m,
1096
- 42: A,
1097
- 43: t,
1098
- 44: _,
1099
- 45: S,
1100
- 46: k,
1101
- 47: F,
1102
- 48: P,
1103
- 49: v,
1104
- 50: L,
1105
- 51: X
1106
- }),
1107
- e(i, [
1108
- 2,
1109
- 25
1110
- ], {
1111
- 36: 55,
1112
- 35: 56,
1113
- 5: M,
1114
- 40: T,
1115
- 41: m,
1116
- 42: A,
1117
- 43: t,
1118
- 44: _,
1119
- 45: S,
1120
- 46: k,
1121
- 47: F,
1122
- 48: P,
1123
- 49: v,
1124
- 50: L,
1125
- 51: X
1126
- }),
1127
- e(i, [
1128
- 2,
1129
- 26
1130
- ], {
1131
- 36: 55,
1132
- 35: 56,
1133
- 5: M,
1134
- 40: T,
1135
- 41: m,
1136
- 42: A,
1137
- 43: t,
1138
- 44: _,
1139
- 45: S,
1140
- 46: k,
1141
- 47: F,
1142
- 48: P,
1143
- 49: v,
1144
- 50: L,
1145
- 51: X
1146
- }),
1147
- e(i, [
1148
- 2,
1149
- 27
1150
- ], {
1151
- 36: 55,
1152
- 35: 56,
1153
- 5: M,
1154
- 40: T,
1155
- 41: m,
1156
- 42: A,
1157
- 43: t,
1158
- 44: _,
1159
- 45: S,
1160
- 46: k,
1161
- 47: F,
1162
- 48: P,
1163
- 49: v,
1164
- 50: L,
1165
- 51: X
1166
- }),
1167
- {
1168
- 23: [
1169
- 1,
1170
- 61
1171
- ]
1172
- },
1173
- e(C, [
1174
- 2,
1175
- 32
1176
- ]),
1177
- e(C, [
1178
- 2,
1179
- 48
1180
- ]),
1181
- e(C, [
1182
- 2,
1183
- 49
1184
- ]),
1185
- e(C, [
1186
- 2,
1187
- 50
1188
- ]),
1189
- e(i, [
1190
- 2,
1191
- 19
1192
- ], {
1193
- 35: 29,
1194
- 21: 62,
1195
- 37: Q,
1196
- 38: N,
1197
- 40: T,
1198
- 41: m,
1199
- 42: A,
1200
- 43: t,
1201
- 44: _,
1202
- 45: S,
1203
- 46: k,
1204
- 47: F,
1205
- 48: P,
1206
- 49: v,
1207
- 50: L
1208
- }),
1209
- e(i, [
1210
- 2,
1211
- 22
1212
- ], {
1213
- 35: 29,
1214
- 21: 63,
1215
- 37: Q,
1216
- 38: N,
1217
- 40: T,
1218
- 41: m,
1219
- 42: A,
1220
- 43: t,
1221
- 44: _,
1222
- 45: S,
1223
- 46: k,
1224
- 47: F,
1225
- 48: P,
1226
- 49: v,
1227
- 50: L
1228
- }),
1229
- {
1230
- 24: [
1231
- 1,
1232
- 64
1233
- ]
1234
- },
1235
- e(i, [
1236
- 2,
1237
- 18
1238
- ], {
1239
- 36: 55,
1240
- 35: 56,
1241
- 5: M,
1242
- 40: T,
1243
- 41: m,
1244
- 42: A,
1245
- 43: t,
1246
- 44: _,
1247
- 45: S,
1248
- 46: k,
1249
- 47: F,
1250
- 48: P,
1251
- 49: v,
1252
- 50: L,
1253
- 51: X
1254
- }),
1255
- e(i, [
1256
- 2,
1257
- 21
1258
- ], {
1259
- 36: 55,
1260
- 35: 56,
1261
- 5: M,
1262
- 40: T,
1263
- 41: m,
1264
- 42: A,
1265
- 43: t,
1266
- 44: _,
1267
- 45: S,
1268
- 46: k,
1269
- 47: F,
1270
- 48: P,
1271
- 49: v,
1272
- 50: L,
1273
- 51: X
1274
- }),
1275
- e(i, [
1276
- 2,
1277
- 17
1278
- ])
1279
- ],
1280
- defaultActions: {
1281
- 8: [
1282
- 2,
1283
- 1
1284
- ],
1285
- 9: [
1286
- 2,
1287
- 2
1288
- ]
1289
- },
1290
- parseError: function parseError(n, r) {
1291
- if (r.recoverable) this.trace(n);
1292
- else {
1293
- var o = new Error(n);
1294
- throw o.hash = r, o;
1295
- }
1296
- },
1297
- parse: function parse(n) {
1298
- var r = this, o = [
1299
- 0
1300
- ], h = [], y = [
1301
- null
1302
- ], a = [], it = this.table, u = "", st = 0, qt = 0, St = 2, Tt = 1, kt = a.slice.call(arguments, 1), z = Object.create(this.lexer), Z = {
1303
- yy: {}
1304
- };
1305
- for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy, dt) && (Z.yy[dt] = this.yy[dt]);
1306
- z.setInput(n, Z.yy), Z.yy.lexer = z, Z.yy.parser = this, _type_of(z.yylloc) > "u" && (z.yylloc = {});
1307
- var ut = z.yylloc;
1308
- a.push(ut);
1309
- var Ft = z.options && z.options.ranges;
1310
- typeof Z.yy.parseError == "function" ? this.parseError = Z.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
1311
- function Pt() {
1312
- var Y;
1313
- return Y = h.pop() || z.lex() || Tt, typeof Y != "number" && (_instanceof(Y, Array) && (h = Y, Y = h.pop()), Y = r.symbols_[Y] || Y), Y;
1314
- }
1315
- for(var W, J, U, xt, tt = {}, rt, O, mt, ot;;){
1316
- if (J = o[o.length - 1], this.defaultActions[J] ? U = this.defaultActions[J] : ((W === null || (typeof W === "undefined" ? "undefined" : _type_of(W)) > "u") && (W = Pt()), U = it[J] && it[J][W]), (typeof U === "undefined" ? "undefined" : _type_of(U)) > "u" || !U.length || !U[0]) {
1317
- var ft = "";
1318
- ot = [];
1319
- for(rt in it[J])this.terminals_[rt] && rt > St && ot.push("'" + this.terminals_[rt] + "'");
1320
- z.showPosition ? ft = "Parse error on line " + (st + 1) + ":\n" + z.showPosition() + "\nExpecting " + ot.join(", ") + ", got '" + (this.terminals_[W] || W) + "'" : ft = "Parse error on line " + (st + 1) + ": Unexpected " + (W == Tt ? "end of input" : "'" + (this.terminals_[W] || W) + "'"), this.parseError(ft, {
1321
- text: z.match,
1322
- token: this.terminals_[W] || W,
1323
- line: z.yylineno,
1324
- loc: ut,
1325
- expected: ot
1326
- });
1327
- }
1328
- if (_instanceof(U[0], Array) && U.length > 1) throw new Error("Parse Error: multiple actions possible at state: " + J + ", token: " + W);
1329
- switch(U[0]){
1330
- case 1:
1331
- o.push(W), y.push(z.yytext), a.push(z.yylloc), o.push(U[1]), W = null, qt = z.yyleng, u = z.yytext, st = z.yylineno, ut = z.yylloc;
1332
- break;
1333
- case 2:
1334
- if (O = this.productions_[U[1]][1], tt.$ = y[y.length - O], tt._$ = {
1335
- first_line: a[a.length - (O || 1)].first_line,
1336
- last_line: a[a.length - 1].last_line,
1337
- first_column: a[a.length - (O || 1)].first_column,
1338
- last_column: a[a.length - 1].last_column
1339
- }, Ft && (tt._$.range = [
1340
- a[a.length - (O || 1)].range[0],
1341
- a[a.length - 1].range[1]
1342
- ]), xt = this.performAction.apply(tt, [
1343
- u,
1344
- qt,
1345
- st,
1346
- Z.yy,
1347
- U[1],
1348
- y,
1349
- a
1350
- ].concat(kt)), (typeof xt === "undefined" ? "undefined" : _type_of(xt)) < "u") return xt;
1351
- O && (o = o.slice(0, -1 * O * 2), y = y.slice(0, -1 * O), a = a.slice(0, -1 * O)), o.push(this.productions_[U[1]][0]), y.push(tt.$), a.push(tt._$), mt = it[o[o.length - 2]][o[o.length - 1]], o.push(mt);
1352
- break;
1353
- case 3:
1354
- return !0;
1355
- }
1356
- }
1357
- return !0;
1358
- }
1359
- }, _t = function() {
1360
- var $ = {
1361
- EOF: 1,
1362
- parseError: function parseError(r, o) {
1363
- if (this.yy.parser) this.yy.parser.parseError(r, o);
1364
- else throw new Error(r);
1365
- },
1366
- // resets the lexer, sets new input
1367
- setInput: function setInput(n, r) {
1368
- return this.yy = r || 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 = [
1369
- "INITIAL"
1370
- ], this.yylloc = {
1371
- first_line: 1,
1372
- first_column: 0,
1373
- last_line: 1,
1374
- last_column: 0
1375
- }, this.options.ranges && (this.yylloc.range = [
1376
- 0,
1377
- 0
1378
- ]), this.offset = 0, this;
1379
- },
1380
- // consumes and returns one char from the input
1381
- input: function input() {
1382
- var n = this._input[0];
1383
- this.yytext += n, this.yyleng++, this.offset++, this.match += n, this.matched += n;
1384
- var r = n.match(/(?:\r\n?|\n).*/g);
1385
- return r ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), n;
1386
- },
1387
- // unshifts one char (or a string) into the input
1388
- unput: function unput(n) {
1389
- var r = n.length, o = n.split(/(?:\r\n?|\n)/g);
1390
- this._input = n + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - r), this.offset -= r;
1391
- var h = this.match.split(/(?:\r\n?|\n)/g);
1392
- this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), o.length - 1 && (this.yylineno -= o.length - 1);
1393
- var y = this.yylloc.range;
1394
- return this.yylloc = {
1395
- first_line: this.yylloc.first_line,
1396
- last_line: this.yylineno + 1,
1397
- first_column: this.yylloc.first_column,
1398
- last_column: o ? (o.length === h.length ? this.yylloc.first_column : 0) + h[h.length - o.length].length - o[0].length : this.yylloc.first_column - r
1399
- }, this.options.ranges && (this.yylloc.range = [
1400
- y[0],
1401
- y[0] + this.yyleng - r
1402
- ]), this.yyleng = this.yytext.length, this;
1403
- },
1404
- // When called from action, caches matched text and appends it on next action
1405
- more: function more() {
1406
- return this._more = !0, this;
1407
- },
1408
- // 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.
1409
- reject: function reject() {
1410
- if (this.options.backtrack_lexer) this._backtrack = !0;
1411
- else return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n" + this.showPosition(), {
1412
- text: "",
1413
- token: null,
1414
- line: this.yylineno
1415
- });
1416
- return this;
1417
- },
1418
- // retain first n characters of the match
1419
- less: function less(n) {
1420
- this.unput(this.match.slice(n));
1421
- },
1422
- // displays already matched input, i.e. for error messages
1423
- pastInput: function pastInput() {
1424
- var n = this.matched.substr(0, this.matched.length - this.match.length);
1425
- return (n.length > 20 ? "..." : "") + n.substr(-20).replace(/\n/g, "");
1426
- },
1427
- // displays upcoming input, i.e. for error messages
1428
- upcomingInput: function upcomingInput() {
1429
- var n = this.match;
1430
- return n.length < 20 && (n += this._input.substr(0, 20 - n.length)), (n.substr(0, 20) + (n.length > 20 ? "..." : "")).replace(/\n/g, "");
1431
- },
1432
- // displays the character position where the lexing error occurred, i.e. for error messages
1433
- showPosition: function showPosition() {
1434
- var n = this.pastInput(), r = new Array(n.length + 1).join("-");
1435
- return n + this.upcomingInput() + "\n" + r + "^";
1436
- },
1437
- // test the lexed token: return FALSE when not a match, otherwise return token
1438
- test_match: function test_match(n, r) {
1439
- var o, h, y;
1440
- if (this.options.backtrack_lexer && (y = {
1441
- yylineno: this.yylineno,
1442
- yylloc: {
1443
- first_line: this.yylloc.first_line,
1444
- last_line: this.last_line,
1445
- first_column: this.yylloc.first_column,
1446
- last_column: this.yylloc.last_column
1447
- },
1448
- yytext: this.yytext,
1449
- match: this.match,
1450
- matches: this.matches,
1451
- matched: this.matched,
1452
- yyleng: this.yyleng,
1453
- offset: this.offset,
1454
- _more: this._more,
1455
- _input: this._input,
1456
- yy: this.yy,
1457
- conditionStack: this.conditionStack.slice(0),
1458
- done: this.done
1459
- }, this.options.ranges && (y.yylloc.range = this.yylloc.range.slice(0))), h = n[0].match(/(?:\r\n?|\n).*/g), h && (this.yylineno += h.length), this.yylloc = {
1460
- first_line: this.yylloc.last_line,
1461
- last_line: this.yylineno + 1,
1462
- first_column: this.yylloc.last_column,
1463
- last_column: h ? h[h.length - 1].length - h[h.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + n[0].length
1464
- }, this.yytext += n[0], this.match += n[0], this.matches = n, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [
1465
- this.offset,
1466
- this.offset += this.yyleng
1467
- ]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(n[0].length), this.matched += n[0], o = this.performAction.call(this, this.yy, this, r, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), o) return o;
1468
- if (this._backtrack) {
1469
- for(var a in y)this[a] = y[a];
1470
- return !1;
1471
- }
1472
- return !1;
1473
- },
1474
- // return next match in input
1475
- next: function next() {
1476
- if (this.done) return this.EOF;
1477
- this._input || (this.done = !0);
1478
- var n, r, o, h;
1479
- this._more || (this.yytext = "", this.match = "");
1480
- for(var y = this._currentRules(), a = 0; a < y.length; a++)if (o = this._input.match(this.rules[y[a]]), o && (!r || o[0].length > r[0].length)) {
1481
- if (r = o, h = a, this.options.backtrack_lexer) {
1482
- if (n = this.test_match(o, y[a]), n !== !1) return n;
1483
- if (this._backtrack) {
1484
- r = !1;
1485
- continue;
1486
- } else return !1;
1487
- } else if (!this.options.flex) break;
1488
- }
1489
- return r ? (n = this.test_match(r, y[h]), n !== !1 ? n : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
1490
- text: "",
1491
- token: null,
1492
- line: this.yylineno
1493
- });
1494
- },
1495
- // return next match that has a token
1496
- lex: function lex() {
1497
- var r = this.next();
1498
- return r || this.lex();
1499
- },
1500
- // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
1501
- begin: function begin(r) {
1502
- this.conditionStack.push(r);
1503
- },
1504
- // pop the previously active lexer condition state off the condition stack
1505
- popState: function popState() {
1506
- var r = this.conditionStack.length - 1;
1507
- return r > 0 ? this.conditionStack.pop() : this.conditionStack[0];
1508
- },
1509
- // produce the lexer rule set which is active for the currently active lexer condition state
1510
- _currentRules: function _currentRules() {
1511
- return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
1512
- },
1513
- // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
1514
- topState: function topState(r) {
1515
- return r = this.conditionStack.length - 1 - Math.abs(r || 0), r >= 0 ? this.conditionStack[r] : "INITIAL";
1516
- },
1517
- // alias for begin(condition)
1518
- pushState: function pushState(r) {
1519
- this.begin(r);
1520
- },
1521
- // return the number of states currently on the stack
1522
- stateStackSize: function stateStackSize() {
1523
- return this.conditionStack.length;
1524
- },
1525
- options: {
1526
- "case-insensitive": !0
1527
- },
1528
- performAction: function performAction(r, o, h, y) {
1529
- switch(h){
1530
- case 0:
1531
- break;
1532
- case 1:
1533
- break;
1534
- case 2:
1535
- return 32;
1536
- case 3:
1537
- break;
1538
- case 4:
1539
- return this.begin("title"), 13;
1540
- case 5:
1541
- return this.popState(), "title_value";
1542
- case 6:
1543
- return this.begin("acc_title"), 15;
1544
- case 7:
1545
- return this.popState(), "acc_title_value";
1546
- case 8:
1547
- return this.begin("acc_descr"), 17;
1548
- case 9:
1549
- return this.popState(), "acc_descr_value";
1550
- case 10:
1551
- this.begin("acc_descr_multiline");
1552
- break;
1553
- case 11:
1554
- this.popState();
1555
- break;
1556
- case 12:
1557
- return "acc_descr_multiline_value";
1558
- case 13:
1559
- return 25;
1560
- case 14:
1561
- return 27;
1562
- case 15:
1563
- return 26;
1564
- case 16:
1565
- return 28;
1566
- case 17:
1567
- return 29;
1568
- case 18:
1569
- return 30;
1570
- case 19:
1571
- return 31;
1572
- case 20:
1573
- this.begin("md_string");
1574
- break;
1575
- case 21:
1576
- return "MD_STR";
1577
- case 22:
1578
- this.popState();
1579
- break;
1580
- case 23:
1581
- this.begin("string");
1582
- break;
1583
- case 24:
1584
- this.popState();
1585
- break;
1586
- case 25:
1587
- return "STR";
1588
- case 26:
1589
- return this.begin("point_start"), 22;
1590
- case 27:
1591
- return this.begin("point_x"), 23;
1592
- case 28:
1593
- this.popState();
1594
- break;
1595
- case 29:
1596
- this.popState(), this.begin("point_y");
1597
- break;
1598
- case 30:
1599
- return this.popState(), 24;
1600
- case 31:
1601
- return 6;
1602
- case 32:
1603
- return 43;
1604
- case 33:
1605
- return "COLON";
1606
- case 34:
1607
- return 45;
1608
- case 35:
1609
- return 44;
1610
- case 36:
1611
- return 46;
1612
- case 37:
1613
- return 46;
1614
- case 38:
1615
- return 47;
1616
- case 39:
1617
- return 49;
1618
- case 40:
1619
- return 50;
1620
- case 41:
1621
- return 48;
1622
- case 42:
1623
- return 41;
1624
- case 43:
1625
- return 51;
1626
- case 44:
1627
- return 42;
1628
- case 45:
1629
- return 5;
1630
- case 46:
1631
- return 33;
1632
- case 47:
1633
- return 40;
1634
- case 48:
1635
- return 34;
1636
- }
1637
- },
1638
- rules: [
1639
- /^(?:%%(?!\{)[^\n]*)/i,
1640
- /^(?:[^\}]%%[^\n]*)/i,
1641
- /^(?:[\n\r]+)/i,
1642
- /^(?:%%[^\n]*)/i,
1643
- /^(?:title\b)/i,
1644
- /^(?:(?!\n||)*[^\n]*)/i,
1645
- /^(?:accTitle\s*:\s*)/i,
1646
- /^(?:(?!\n||)*[^\n]*)/i,
1647
- /^(?:accDescr\s*:\s*)/i,
1648
- /^(?:(?!\n||)*[^\n]*)/i,
1649
- /^(?:accDescr\s*\{\s*)/i,
1650
- /^(?:[\}])/i,
1651
- /^(?:[^\}]*)/i,
1652
- /^(?: *x-axis *)/i,
1653
- /^(?: *y-axis *)/i,
1654
- /^(?: *--+> *)/i,
1655
- /^(?: *quadrant-1 *)/i,
1656
- /^(?: *quadrant-2 *)/i,
1657
- /^(?: *quadrant-3 *)/i,
1658
- /^(?: *quadrant-4 *)/i,
1659
- /^(?:["][`])/i,
1660
- /^(?:[^`"]+)/i,
1661
- /^(?:[`]["])/i,
1662
- /^(?:["])/i,
1663
- /^(?:["])/i,
1664
- /^(?:[^"]*)/i,
1665
- /^(?:\s*:\s*\[\s*)/i,
1666
- /^(?:(1)|(0(.\d+)?))/i,
1667
- /^(?:\s*\] *)/i,
1668
- /^(?:\s*,\s*)/i,
1669
- /^(?:(1)|(0(.\d+)?))/i,
1670
- /^(?: *quadrantChart *)/i,
1671
- /^(?:[A-Za-z]+)/i,
1672
- /^(?::)/i,
1673
- /^(?:\+)/i,
1674
- /^(?:,)/i,
1675
- /^(?:=)/i,
1676
- /^(?:=)/i,
1677
- /^(?:\*)/i,
1678
- /^(?:#)/i,
1679
- /^(?:[\_])/i,
1680
- /^(?:\.)/i,
1681
- /^(?:&)/i,
1682
- /^(?:-)/i,
1683
- /^(?:[0-9]+)/i,
1684
- /^(?:\s)/i,
1685
- /^(?:;)/i,
1686
- /^(?:[!"#$%&'*+,-.`?\\_/])/i,
1687
- /^(?:$)/i
1688
- ],
1689
- conditions: {
1690
- point_y: {
1691
- rules: [
1692
- 30
1693
- ],
1694
- inclusive: !1
1695
- },
1696
- point_x: {
1697
- rules: [
1698
- 29
1699
- ],
1700
- inclusive: !1
1701
- },
1702
- point_start: {
1703
- rules: [
1704
- 27,
1705
- 28
1706
- ],
1707
- inclusive: !1
1708
- },
1709
- acc_descr_multiline: {
1710
- rules: [
1711
- 11,
1712
- 12
1713
- ],
1714
- inclusive: !1
1715
- },
1716
- acc_descr: {
1717
- rules: [
1718
- 9
1719
- ],
1720
- inclusive: !1
1721
- },
1722
- acc_title: {
1723
- rules: [
1724
- 7
1725
- ],
1726
- inclusive: !1
1727
- },
1728
- title: {
1729
- rules: [
1730
- 5
1731
- ],
1732
- inclusive: !1
1733
- },
1734
- md_string: {
1735
- rules: [
1736
- 21,
1737
- 22
1738
- ],
1739
- inclusive: !1
1740
- },
1741
- string: {
1742
- rules: [
1743
- 24,
1744
- 25
1745
- ],
1746
- inclusive: !1
1747
- },
1748
- INITIAL: {
1749
- rules: [
1750
- 0,
1751
- 1,
1752
- 2,
1753
- 3,
1754
- 4,
1755
- 6,
1756
- 8,
1757
- 10,
1758
- 13,
1759
- 14,
1760
- 15,
1761
- 16,
1762
- 17,
1763
- 18,
1764
- 19,
1765
- 20,
1766
- 23,
1767
- 26,
1768
- 31,
1769
- 32,
1770
- 33,
1771
- 34,
1772
- 35,
1773
- 36,
1774
- 37,
1775
- 38,
1776
- 39,
1777
- 40,
1778
- 41,
1779
- 42,
1780
- 43,
1781
- 44,
1782
- 45,
1783
- 46,
1784
- 47,
1785
- 48
1786
- ],
1787
- inclusive: !0
1788
- }
1789
- }
1790
- };
1791
- return $;
1792
- }();
1793
- ht.lexer = _t;
1794
- function ct() {
1795
- this.yy = {};
1796
- }
1797
- return ct.prototype = ht, ht.Parser = ct, new ct();
1798
- }();
1799
- pt.parser = pt;
1800
- var Rt = pt, V = index.up();
1801
- var Vt = /*#__PURE__*/ function() {
1802
- function Vt() {
1803
- _class_call_check(this, Vt);
1804
- this.config = this.getDefaultConfig(), this.themeConfig = this.getDefaultThemeConfig(), this.data = this.getDefaultData();
1805
- }
1806
- _create_class(Vt, [
1807
- {
1808
- key: "getDefaultData",
1809
- value: function getDefaultData() {
1810
- return {
1811
- titleText: "",
1812
- quadrant1Text: "",
1813
- quadrant2Text: "",
1814
- quadrant3Text: "",
1815
- quadrant4Text: "",
1816
- xAxisLeftText: "",
1817
- xAxisRightText: "",
1818
- yAxisBottomText: "",
1819
- yAxisTopText: "",
1820
- points: []
1821
- };
1822
- }
1823
- },
1824
- {
1825
- key: "getDefaultConfig",
1826
- value: function getDefaultConfig() {
1827
- var s, c, x, f, d, l, g, i, q, b, D, w, I, B, p, H, G, K;
1828
- return {
1829
- showXAxis: !0,
1830
- showYAxis: !0,
1831
- showTitle: !0,
1832
- chartHeight: ((s = index.yp.quadrantChart) == null ? void 0 : s.chartWidth) || 500,
1833
- chartWidth: ((c = index.yp.quadrantChart) == null ? void 0 : c.chartHeight) || 500,
1834
- titlePadding: ((x = index.yp.quadrantChart) == null ? void 0 : x.titlePadding) || 10,
1835
- titleFontSize: ((f = index.yp.quadrantChart) == null ? void 0 : f.titleFontSize) || 20,
1836
- quadrantPadding: ((d = index.yp.quadrantChart) == null ? void 0 : d.quadrantPadding) || 5,
1837
- xAxisLabelPadding: ((l = index.yp.quadrantChart) == null ? void 0 : l.xAxisLabelPadding) || 5,
1838
- yAxisLabelPadding: ((g = index.yp.quadrantChart) == null ? void 0 : g.yAxisLabelPadding) || 5,
1839
- xAxisLabelFontSize: ((i = index.yp.quadrantChart) == null ? void 0 : i.xAxisLabelFontSize) || 16,
1840
- yAxisLabelFontSize: ((q = index.yp.quadrantChart) == null ? void 0 : q.yAxisLabelFontSize) || 16,
1841
- quadrantLabelFontSize: ((b = index.yp.quadrantChart) == null ? void 0 : b.quadrantLabelFontSize) || 16,
1842
- quadrantTextTopPadding: ((D = index.yp.quadrantChart) == null ? void 0 : D.quadrantTextTopPadding) || 5,
1843
- pointTextPadding: ((w = index.yp.quadrantChart) == null ? void 0 : w.pointTextPadding) || 5,
1844
- pointLabelFontSize: ((I = index.yp.quadrantChart) == null ? void 0 : I.pointLabelFontSize) || 12,
1845
- pointRadius: ((B = index.yp.quadrantChart) == null ? void 0 : B.pointRadius) || 5,
1846
- xAxisPosition: ((p = index.yp.quadrantChart) == null ? void 0 : p.xAxisPosition) || "top",
1847
- yAxisPosition: ((H = index.yp.quadrantChart) == null ? void 0 : H.yAxisPosition) || "left",
1848
- quadrantInternalBorderStrokeWidth: ((G = index.yp.quadrantChart) == null ? void 0 : G.quadrantInternalBorderStrokeWidth) || 1,
1849
- quadrantExternalBorderStrokeWidth: ((K = index.yp.quadrantChart) == null ? void 0 : K.quadrantExternalBorderStrokeWidth) || 2
1850
- };
1851
- }
1852
- },
1853
- {
1854
- key: "getDefaultThemeConfig",
1855
- value: function getDefaultThemeConfig() {
1856
- return {
1857
- quadrant1Fill: V.quadrant1Fill,
1858
- quadrant2Fill: V.quadrant2Fill,
1859
- quadrant3Fill: V.quadrant3Fill,
1860
- quadrant4Fill: V.quadrant4Fill,
1861
- quadrant1TextFill: V.quadrant1TextFill,
1862
- quadrant2TextFill: V.quadrant2TextFill,
1863
- quadrant3TextFill: V.quadrant3TextFill,
1864
- quadrant4TextFill: V.quadrant4TextFill,
1865
- quadrantPointFill: V.quadrantPointFill,
1866
- quadrantPointTextFill: V.quadrantPointTextFill,
1867
- quadrantXAxisTextFill: V.quadrantXAxisTextFill,
1868
- quadrantYAxisTextFill: V.quadrantYAxisTextFill,
1869
- quadrantTitleFill: V.quadrantTitleFill,
1870
- quadrantInternalBorderStrokeFill: V.quadrantInternalBorderStrokeFill,
1871
- quadrantExternalBorderStrokeFill: V.quadrantExternalBorderStrokeFill
1872
- };
1873
- }
1874
- },
1875
- {
1876
- key: "clear",
1877
- value: function clear() {
1878
- this.config = this.getDefaultConfig(), this.themeConfig = this.getDefaultThemeConfig(), this.data = this.getDefaultData(), index.L.info("clear called");
1879
- }
1880
- },
1881
- {
1882
- key: "setData",
1883
- value: function setData(s) {
1884
- this.data = _object_spread({}, this.data, s);
1885
- }
1886
- },
1887
- {
1888
- key: "addPoints",
1889
- value: function addPoints(s) {
1890
- this.data.points = _to_consumable_array(s).concat(_to_consumable_array(this.data.points));
1891
- }
1892
- },
1893
- {
1894
- key: "setConfig",
1895
- value: function setConfig(s) {
1896
- index.L.trace("setConfig called with: ", s), this.config = _object_spread({}, this.config, s);
1897
- }
1898
- },
1899
- {
1900
- key: "setThemeConfig",
1901
- value: function setThemeConfig(s) {
1902
- index.L.trace("setThemeConfig called with: ", s), this.themeConfig = _object_spread({}, this.themeConfig, s);
1903
- }
1904
- },
1905
- {
1906
- key: "calculateSpace",
1907
- value: function calculateSpace(s, c, x, f) {
1908
- var d = this.config.xAxisLabelPadding * 2 + this.config.xAxisLabelFontSize, l = {
1909
- top: s === "top" && c ? d : 0,
1910
- bottom: s === "bottom" && c ? d : 0
1911
- }, g = this.config.yAxisLabelPadding * 2 + this.config.yAxisLabelFontSize, i = {
1912
- left: this.config.yAxisPosition === "left" && x ? g : 0,
1913
- right: this.config.yAxisPosition === "right" && x ? g : 0
1914
- }, q = this.config.titleFontSize + this.config.titlePadding * 2, b = {
1915
- top: f ? q : 0
1916
- }, D = this.config.quadrantPadding + i.left, w = this.config.quadrantPadding + l.top + b.top, I = this.config.chartWidth - this.config.quadrantPadding * 2 - i.left - i.right, B = this.config.chartHeight - this.config.quadrantPadding * 2 - l.top - l.bottom - b.top, p = I / 2, H = B / 2;
1917
- return {
1918
- xAxisSpace: l,
1919
- yAxisSpace: i,
1920
- titleSpace: b,
1921
- quadrantSpace: {
1922
- quadrantLeft: D,
1923
- quadrantTop: w,
1924
- quadrantWidth: I,
1925
- quadrantHalfWidth: p,
1926
- quadrantHeight: B,
1927
- quadrantHalfHeight: H
1928
- }
1929
- };
1930
- }
1931
- },
1932
- {
1933
- key: "getAxisLabels",
1934
- value: function getAxisLabels(s, c, x, f) {
1935
- var d = f.quadrantSpace, l = f.titleSpace, g = d.quadrantHalfHeight, i = d.quadrantHeight, q = d.quadrantLeft, b = d.quadrantHalfWidth, D = d.quadrantTop, w = d.quadrantWidth, I = !!this.data.xAxisRightText, B = !!this.data.yAxisTopText, p = [];
1936
- return this.data.xAxisLeftText && c && p.push({
1937
- text: this.data.xAxisLeftText,
1938
- fill: this.themeConfig.quadrantXAxisTextFill,
1939
- x: q + (I ? b / 2 : 0),
1940
- y: s === "top" ? this.config.xAxisLabelPadding + l.top : this.config.xAxisLabelPadding + D + i + this.config.quadrantPadding,
1941
- fontSize: this.config.xAxisLabelFontSize,
1942
- verticalPos: I ? "center" : "left",
1943
- horizontalPos: "top",
1944
- rotation: 0
1945
- }), this.data.xAxisRightText && c && p.push({
1946
- text: this.data.xAxisRightText,
1947
- fill: this.themeConfig.quadrantXAxisTextFill,
1948
- x: q + b + (I ? b / 2 : 0),
1949
- y: s === "top" ? this.config.xAxisLabelPadding + l.top : this.config.xAxisLabelPadding + D + i + this.config.quadrantPadding,
1950
- fontSize: this.config.xAxisLabelFontSize,
1951
- verticalPos: I ? "center" : "left",
1952
- horizontalPos: "top",
1953
- rotation: 0
1954
- }), this.data.yAxisBottomText && x && p.push({
1955
- text: this.data.yAxisBottomText,
1956
- fill: this.themeConfig.quadrantYAxisTextFill,
1957
- x: this.config.yAxisPosition === "left" ? this.config.yAxisLabelPadding : this.config.yAxisLabelPadding + q + w + this.config.quadrantPadding,
1958
- y: D + i - (B ? g / 2 : 0),
1959
- fontSize: this.config.yAxisLabelFontSize,
1960
- verticalPos: B ? "center" : "left",
1961
- horizontalPos: "top",
1962
- rotation: -90
1963
- }), this.data.yAxisTopText && x && p.push({
1964
- text: this.data.yAxisTopText,
1965
- fill: this.themeConfig.quadrantYAxisTextFill,
1966
- x: this.config.yAxisPosition === "left" ? this.config.yAxisLabelPadding : this.config.yAxisLabelPadding + q + w + this.config.quadrantPadding,
1967
- y: D + g - (B ? g / 2 : 0),
1968
- fontSize: this.config.yAxisLabelFontSize,
1969
- verticalPos: B ? "center" : "left",
1970
- horizontalPos: "top",
1971
- rotation: -90
1972
- }), p;
1973
- }
1974
- },
1975
- {
1976
- key: "getQuadrants",
1977
- value: function getQuadrants(s) {
1978
- var c = s.quadrantSpace, x = c.quadrantHalfHeight, f = c.quadrantLeft, d = c.quadrantHalfWidth, l = c.quadrantTop, g = [
1979
- {
1980
- text: {
1981
- text: this.data.quadrant1Text,
1982
- fill: this.themeConfig.quadrant1TextFill,
1983
- x: 0,
1984
- y: 0,
1985
- fontSize: this.config.quadrantLabelFontSize,
1986
- verticalPos: "center",
1987
- horizontalPos: "middle",
1988
- rotation: 0
1989
- },
1990
- x: f + d,
1991
- y: l,
1992
- width: d,
1993
- height: x,
1994
- fill: this.themeConfig.quadrant1Fill
1995
- },
1996
- {
1997
- text: {
1998
- text: this.data.quadrant2Text,
1999
- fill: this.themeConfig.quadrant2TextFill,
2000
- x: 0,
2001
- y: 0,
2002
- fontSize: this.config.quadrantLabelFontSize,
2003
- verticalPos: "center",
2004
- horizontalPos: "middle",
2005
- rotation: 0
2006
- },
2007
- x: f,
2008
- y: l,
2009
- width: d,
2010
- height: x,
2011
- fill: this.themeConfig.quadrant2Fill
2012
- },
2013
- {
2014
- text: {
2015
- text: this.data.quadrant3Text,
2016
- fill: this.themeConfig.quadrant3TextFill,
2017
- x: 0,
2018
- y: 0,
2019
- fontSize: this.config.quadrantLabelFontSize,
2020
- verticalPos: "center",
2021
- horizontalPos: "middle",
2022
- rotation: 0
2023
- },
2024
- x: f,
2025
- y: l + x,
2026
- width: d,
2027
- height: x,
2028
- fill: this.themeConfig.quadrant3Fill
2029
- },
2030
- {
2031
- text: {
2032
- text: this.data.quadrant4Text,
2033
- fill: this.themeConfig.quadrant4TextFill,
2034
- x: 0,
2035
- y: 0,
2036
- fontSize: this.config.quadrantLabelFontSize,
2037
- verticalPos: "center",
2038
- horizontalPos: "middle",
2039
- rotation: 0
2040
- },
2041
- x: f + d,
2042
- y: l + x,
2043
- width: d,
2044
- height: x,
2045
- fill: this.themeConfig.quadrant4Fill
2046
- }
2047
- ];
2048
- var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
2049
- try {
2050
- for(var _iterator = g[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
2051
- var i = _step.value;
2052
- i.text.x = i.x + i.width / 2, this.data.points.length === 0 ? (i.text.y = i.y + i.height / 2, i.text.horizontalPos = "middle") : (i.text.y = i.y + this.config.quadrantTextTopPadding, i.text.horizontalPos = "top");
2053
- }
2054
- } catch (err) {
2055
- _didIteratorError = true;
2056
- _iteratorError = err;
2057
- } finally{
2058
- try {
2059
- if (!_iteratorNormalCompletion && _iterator.return != null) {
2060
- _iterator.return();
2061
- }
2062
- } finally{
2063
- if (_didIteratorError) {
2064
- throw _iteratorError;
2065
- }
2066
- }
2067
- }
2068
- return g;
2069
- }
2070
- },
2071
- {
2072
- key: "getQuadrantPoints",
2073
- value: function getQuadrantPoints(s) {
2074
- var _this = this;
2075
- var c = s.quadrantSpace, x = c.quadrantHeight, f = c.quadrantLeft, d = c.quadrantTop, l = c.quadrantWidth, g = linear9bcf74c4.Hn().domain([
2076
- 0,
2077
- 1
2078
- ]).range([
2079
- f,
2080
- l + f
2081
- ]), i = linear9bcf74c4.Hn().domain([
2082
- 0,
2083
- 1
2084
- ]).range([
2085
- x + d,
2086
- d
2087
- ]);
2088
- return this.data.points.map(function(b) {
2089
- return {
2090
- x: g(b.x),
2091
- y: i(b.y),
2092
- fill: _this.themeConfig.quadrantPointFill,
2093
- radius: _this.config.pointRadius,
2094
- text: {
2095
- text: b.text,
2096
- fill: _this.themeConfig.quadrantPointTextFill,
2097
- x: g(b.x),
2098
- y: i(b.y) + _this.config.pointTextPadding,
2099
- verticalPos: "center",
2100
- horizontalPos: "top",
2101
- fontSize: _this.config.pointLabelFontSize,
2102
- rotation: 0
2103
- }
2104
- };
2105
- });
2106
- }
2107
- },
2108
- {
2109
- key: "getBorders",
2110
- value: function getBorders(s) {
2111
- var c = this.config.quadrantExternalBorderStrokeWidth / 2, x = s.quadrantSpace, f = x.quadrantHalfHeight, d = x.quadrantHeight, l = x.quadrantLeft, g = x.quadrantHalfWidth, i = x.quadrantTop, q = x.quadrantWidth;
2112
- return [
2113
- // top border
2114
- {
2115
- strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
2116
- strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
2117
- x1: l - c,
2118
- y1: i,
2119
- x2: l + q + c,
2120
- y2: i
2121
- },
2122
- // right border
2123
- {
2124
- strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
2125
- strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
2126
- x1: l + q,
2127
- y1: i + c,
2128
- x2: l + q,
2129
- y2: i + d - c
2130
- },
2131
- // bottom border
2132
- {
2133
- strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
2134
- strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
2135
- x1: l - c,
2136
- y1: i + d,
2137
- x2: l + q + c,
2138
- y2: i + d
2139
- },
2140
- // left border
2141
- {
2142
- strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
2143
- strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
2144
- x1: l,
2145
- y1: i + c,
2146
- x2: l,
2147
- y2: i + d - c
2148
- },
2149
- // vertical inner border
2150
- {
2151
- strokeFill: this.themeConfig.quadrantInternalBorderStrokeFill,
2152
- strokeWidth: this.config.quadrantInternalBorderStrokeWidth,
2153
- x1: l + g,
2154
- y1: i + c,
2155
- x2: l + g,
2156
- y2: i + d - c
2157
- },
2158
- // horizontal inner border
2159
- {
2160
- strokeFill: this.themeConfig.quadrantInternalBorderStrokeFill,
2161
- strokeWidth: this.config.quadrantInternalBorderStrokeWidth,
2162
- x1: l + c,
2163
- y1: i + f,
2164
- x2: l + q - c,
2165
- y2: i + f
2166
- }
2167
- ];
2168
- }
2169
- },
2170
- {
2171
- key: "getTitle",
2172
- value: function getTitle(s) {
2173
- if (s) return {
2174
- text: this.data.titleText,
2175
- fill: this.themeConfig.quadrantTitleFill,
2176
- fontSize: this.config.titleFontSize,
2177
- horizontalPos: "top",
2178
- verticalPos: "center",
2179
- rotation: 0,
2180
- y: this.config.titlePadding,
2181
- x: this.config.chartWidth / 2
2182
- };
2183
- }
2184
- },
2185
- {
2186
- key: "build",
2187
- value: function build() {
2188
- var s = this.config.showXAxis && !!(this.data.xAxisLeftText || this.data.xAxisRightText), c = this.config.showYAxis && !!(this.data.yAxisTopText || this.data.yAxisBottomText), x = this.config.showTitle && !!this.data.titleText, f = this.data.points.length > 0 ? "bottom" : this.config.xAxisPosition, d = this.calculateSpace(f, s, c, x);
2189
- return {
2190
- points: this.getQuadrantPoints(d),
2191
- quadrants: this.getQuadrants(d),
2192
- axisLabels: this.getAxisLabels(f, s, c, d),
2193
- borderLines: this.getBorders(d),
2194
- title: this.getTitle(x)
2195
- };
2196
- }
2197
- }
2198
- ]);
2199
- return Vt;
2200
- }();
2201
- var Wt = index.Vn();
2202
- function j(e) {
2203
- return index.ai(e.trim(), Wt);
2204
- }
2205
- var R = new Vt();
2206
- function Nt(e) {
2207
- R.setData({
2208
- quadrant1Text: j(e.text)
2209
- });
2210
- }
2211
- function Ut(e) {
2212
- R.setData({
2213
- quadrant2Text: j(e.text)
2214
- });
2215
- }
2216
- function Qt(e) {
2217
- R.setData({
2218
- quadrant3Text: j(e.text)
2219
- });
2220
- }
2221
- function Ht(e) {
2222
- R.setData({
2223
- quadrant4Text: j(e.text)
2224
- });
2225
- }
2226
- function Mt(e) {
2227
- R.setData({
2228
- xAxisLeftText: j(e.text)
2229
- });
2230
- }
2231
- function Xt(e) {
2232
- R.setData({
2233
- xAxisRightText: j(e.text)
2234
- });
2235
- }
2236
- function Ot(e) {
2237
- R.setData({
2238
- yAxisTopText: j(e.text)
2239
- });
2240
- }
2241
- function Yt(e) {
2242
- R.setData({
2243
- yAxisBottomText: j(e.text)
2244
- });
2245
- }
2246
- function jt(e, s, c) {
2247
- R.addPoints([
2248
- {
2249
- x: s,
2250
- y: c,
2251
- text: j(e.text)
2252
- }
2253
- ]);
2254
- }
2255
- function Gt(e) {
2256
- R.setConfig({
2257
- chartWidth: e
2258
- });
2259
- }
2260
- function $t(e) {
2261
- R.setConfig({
2262
- chartHeight: e
2263
- });
2264
- }
2265
- function Kt() {
2266
- var e = index.Vn(), s = e.themeVariables, c = e.quadrantChart;
2267
- return c && R.setConfig(c), R.setThemeConfig({
2268
- quadrant1Fill: s.quadrant1Fill,
2269
- quadrant2Fill: s.quadrant2Fill,
2270
- quadrant3Fill: s.quadrant3Fill,
2271
- quadrant4Fill: s.quadrant4Fill,
2272
- quadrant1TextFill: s.quadrant1TextFill,
2273
- quadrant2TextFill: s.quadrant2TextFill,
2274
- quadrant3TextFill: s.quadrant3TextFill,
2275
- quadrant4TextFill: s.quadrant4TextFill,
2276
- quadrantPointFill: s.quadrantPointFill,
2277
- quadrantPointTextFill: s.quadrantPointTextFill,
2278
- quadrantXAxisTextFill: s.quadrantXAxisTextFill,
2279
- quadrantYAxisTextFill: s.quadrantYAxisTextFill,
2280
- quadrantExternalBorderStrokeFill: s.quadrantExternalBorderStrokeFill,
2281
- quadrantInternalBorderStrokeFill: s.quadrantInternalBorderStrokeFill,
2282
- quadrantTitleFill: s.quadrantTitleFill
2283
- }), R.setData({
2284
- titleText: index.O_()
2285
- }), R.build();
2286
- }
2287
- var Zt = function Zt() {
2288
- R.clear(), index.B_();
2289
- }, Jt = {
2290
- setWidth: Gt,
2291
- setHeight: $t,
2292
- setQuadrant1Text: Nt,
2293
- setQuadrant2Text: Ut,
2294
- setQuadrant3Text: Qt,
2295
- setQuadrant4Text: Ht,
2296
- setXAxisLeftText: Mt,
2297
- setXAxisRightText: Xt,
2298
- setYAxisTopText: Ot,
2299
- setYAxisBottomText: Yt,
2300
- addPoint: jt,
2301
- getQuadrantData: Kt,
2302
- clear: Zt,
2303
- setAccTitle: index.F_,
2304
- getAccTitle: index.A_,
2305
- setDiagramTitle: index.M_,
2306
- getDiagramTitle: index.O_,
2307
- getAccDescription: index.E_,
2308
- setAccDescription: index.L_
2309
- }, te = function(e, s, c, x) {
2310
- var f = function f(t) {
2311
- return t === "top" ? "hanging" : "middle";
2312
- };
2313
- var d = function d(t) {
2314
- return t === "left" ? "start" : "middle";
2315
- };
2316
- var l = function l(t) {
2317
- return "translate(".concat(t.x, ", ").concat(t.y, ") rotate(").concat(t.rotation || 0, ")");
2318
- };
2319
- var T, m, A;
2320
- var g = index.Vn();
2321
- index.L.debug("Rendering quadrant chart\n" + e);
2322
- var i = g.securityLevel;
2323
- var q;
2324
- i === "sandbox" && (q = index.bt("#i" + s));
2325
- var D = (i === "sandbox" ? index.bt(q.nodes()[0].contentDocument.body) : index.bt("body")).select('[id="'.concat(s, '"]')), w = D.append("g").attr("class", "main"), I = ((T = g.quadrantChart) == null ? void 0 : T.chartWidth) || 500, B = ((m = g.quadrantChart) == null ? void 0 : m.chartHeight) || 500;
2326
- index.Ol(D, B, I, ((A = g.quadrantChart) == null ? void 0 : A.useMaxWidth) || !0), D.attr("viewBox", "0 0 " + I + " " + B), x.db.setHeight(B), x.db.setWidth(I);
2327
- var p = x.db.getQuadrantData(), H = w.append("g").attr("class", "quadrants"), G = w.append("g").attr("class", "border"), K = w.append("g").attr("class", "data-points"), at = w.append("g").attr("class", "labels"), nt = w.append("g").attr("class", "title");
2328
- p.title && nt.append("text").attr("x", 0).attr("y", 0).attr("fill", p.title.fill).attr("font-size", p.title.fontSize).attr("dominant-baseline", f(p.title.horizontalPos)).attr("text-anchor", d(p.title.verticalPos)).attr("transform", l(p.title)).text(p.title.text), p.borderLines && G.selectAll("line").data(p.borderLines).enter().append("line").attr("x1", function(t) {
2329
- return t.x1;
2330
- }).attr("y1", function(t) {
2331
- return t.y1;
2332
- }).attr("x2", function(t) {
2333
- return t.x2;
2334
- }).attr("y2", function(t) {
2335
- return t.y2;
2336
- }).style("stroke", function(t) {
2337
- return t.strokeFill;
2338
- }).style("stroke-width", function(t) {
2339
- return t.strokeWidth;
2340
- });
2341
- var et = H.selectAll("g.quadrant").data(p.quadrants).enter().append("g").attr("class", "quadrant");
2342
- et.append("rect").attr("x", function(t) {
2343
- return t.x;
2344
- }).attr("y", function(t) {
2345
- return t.y;
2346
- }).attr("width", function(t) {
2347
- return t.width;
2348
- }).attr("height", function(t) {
2349
- return t.height;
2350
- }).attr("fill", function(t) {
2351
- return t.fill;
2352
- }), et.append("text").attr("x", 0).attr("y", 0).attr("fill", function(t) {
2353
- return t.text.fill;
2354
- }).attr("font-size", function(t) {
2355
- return t.text.fontSize;
2356
- }).attr("dominant-baseline", function(t) {
2357
- return f(t.text.horizontalPos);
2358
- }).attr("text-anchor", function(t) {
2359
- return d(t.text.verticalPos);
2360
- }).attr("transform", function(t) {
2361
- return l(t.text);
2362
- }).text(function(t) {
2363
- return t.text.text;
2364
- }), at.selectAll("g.label").data(p.axisLabels).enter().append("g").attr("class", "label").append("text").attr("x", 0).attr("y", 0).text(function(t) {
2365
- return t.text;
2366
- }).attr("fill", function(t) {
2367
- return t.fill;
2368
- }).attr("font-size", function(t) {
2369
- return t.fontSize;
2370
- }).attr("dominant-baseline", function(t) {
2371
- return f(t.horizontalPos);
2372
- }).attr("text-anchor", function(t) {
2373
- return d(t.verticalPos);
2374
- }).attr("transform", function(t) {
2375
- return l(t);
2376
- });
2377
- var N = K.selectAll("g.data-point").data(p.points).enter().append("g").attr("class", "data-point");
2378
- N.append("circle").attr("cx", function(t) {
2379
- return t.x;
2380
- }).attr("cy", function(t) {
2381
- return t.y;
2382
- }).attr("r", function(t) {
2383
- return t.radius;
2384
- }).attr("fill", function(t) {
2385
- return t.fill;
2386
- }), N.append("text").attr("x", 0).attr("y", 0).text(function(t) {
2387
- return t.text.text;
2388
- }).attr("fill", function(t) {
2389
- return t.text.fill;
2390
- }).attr("font-size", function(t) {
2391
- return t.text.fontSize;
2392
- }).attr("dominant-baseline", function(t) {
2393
- return f(t.text.horizontalPos);
2394
- }).attr("text-anchor", function(t) {
2395
- return d(t.text.verticalPos);
2396
- }).attr("transform", function(t) {
2397
- return l(t.text);
2398
- });
2399
- }, ee = {
2400
- draw: te
2401
- }, se = {
2402
- parser: Rt,
2403
- db: Jt,
2404
- renderer: ee,
2405
- styles: function() {
2406
- return "";
2407
- }
2408
- };
2409
-
2410
- exports.diagram = se;