@staticbolt/docs 0.0.1-beta.3 → 0.0.1-beta.5
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/README.md +16 -19
- package/lib/index.d.mts +62 -35
- package/lib/mermaid/abnfDiagram-PAR5IXJI-Ibbj5eGO.js +1 -0
- package/lib/mermaid/architecture-7GRP2DOG-M7G3SWCO-BJAoKIRD.js +1 -0
- package/lib/mermaid/architectureDiagram-2PNWDENW-CI3fLWIN.js +36 -0
- package/lib/mermaid/blockDiagram-PUWGUBOA-DAfWpjz7.js +129 -0
- package/lib/mermaid/c4Diagram-3NLNHZP5-at-f4FDi.js +38 -0
- package/lib/mermaid/chunk-2NMSUPJH-DuxvnX1p.js +1 -0
- package/lib/mermaid/chunk-32MCUW2P-D8U-Oy6M.js +206 -0
- package/lib/mermaid/chunk-3NPNU5GP-8WYybYAh.js +1 -0
- package/lib/mermaid/chunk-3SMGFRGC-C0WC5bhP.js +1 -0
- package/lib/mermaid/chunk-4CAJECRU-C_QnaDal.js +15 -0
- package/lib/mermaid/chunk-4OADUZ5Q-DHE3k_pb.js +10 -0
- package/lib/mermaid/chunk-5IMINLNL-Cl3N81sR.js +1 -0
- package/lib/mermaid/chunk-5IQCK5RY-Df5Ppxew.js +3 -0
- package/lib/mermaid/chunk-5MVFYWFU-DgXg5u6h.js +1 -0
- package/lib/mermaid/chunk-AQ6EADP3-CZhslHi-.js +1 -0
- package/lib/mermaid/chunk-AZZRMDJM-y-xJBuMz.js +15 -0
- package/lib/mermaid/chunk-CLS4B6BI-BRLlisnG.js +168 -0
- package/lib/mermaid/chunk-DZP67EKU-9RpG5Rdc.js +70 -0
- package/lib/mermaid/chunk-EICP7K5X-8YS1Gtlr.js +1 -0
- package/lib/mermaid/chunk-GDY2UAB4-QtXfmDIW.js +1 -0
- package/lib/mermaid/chunk-H7VHZCWX-CwFRFlEn.js +1 -0
- package/lib/mermaid/chunk-IJBDOHL6-CgcssvZb.js +1 -0
- package/lib/mermaid/chunk-JFFVMJIA-Cx1_ZSMR.js +1 -0
- package/lib/mermaid/chunk-JQRUD6KW-Dbva2Z17.js +1 -0
- package/lib/mermaid/chunk-JZGDI5JK-BspJQ1vQ.js +1 -0
- package/lib/mermaid/chunk-KD6SPIPN-4bKl37hM.js +2 -0
- package/lib/mermaid/chunk-NF366YI6-D1lnbapv.js +231 -0
- package/lib/mermaid/chunk-NUDPKBEF-CL0e9XiQ.js +34 -0
- package/lib/mermaid/chunk-OJINMHTS-rKnCIFV0.js +1 -0
- package/lib/mermaid/chunk-Q6NGPIAH-CM9NYxWM.js +2 -0
- package/lib/mermaid/chunk-QJSWEUOL-kvKBktmc.js +133 -0
- package/lib/mermaid/chunk-R7JDMUKV-CSyCOfYj.js +1 -0
- package/lib/mermaid/chunk-RCXAM2GK-BeKcutEV.js +1 -0
- package/lib/mermaid/chunk-RT4MAWR3-Cv_8LyN5.js +1 -0
- package/lib/mermaid/chunk-SFMINX4W-BW2NSwFJ.js +1 -0
- package/lib/mermaid/chunk-SLDQ463B-D15xTdNW.js +88 -0
- package/lib/mermaid/chunk-STOV2HOB-GnExfzIX.js +1 -0
- package/lib/mermaid/chunk-T5OCTHI4-DdZvN-9i.js +1 -0
- package/lib/mermaid/chunk-TCEHX7R3-BXjgPiQF.js +1 -0
- package/lib/mermaid/chunk-VQC2EELJ-sGo2yn97.js +1 -0
- package/lib/mermaid/chunk-VRZKL3EH-BzaZ6KlD.js +1 -0
- package/lib/mermaid/chunk-VTHDQ7BV-BqUEu5Ml.js +1 -0
- package/lib/mermaid/chunk-VY2OSTJR-BYk2nUI_.js +2 -0
- package/lib/mermaid/chunk-WUBWJARI-Z8MI6quX.js +1 -0
- package/lib/mermaid/chunk-YBMQ5JGJ-DlZ1nCKo.js +2 -0
- package/lib/mermaid/chunk-YDMLL4PJ-BHgx6nXf.js +1 -0
- package/lib/mermaid/chunk-Z6V44ARX-CWGOZvke.js +62 -0
- package/lib/mermaid/chunk-ZJJ7VQJP-CZ7qJzqZ.js +340 -0
- package/lib/mermaid/chunk-ZNLK7HRR-B-wIfXTw.js +1 -0
- package/lib/mermaid/chunk-ZQN7UHIL-CNp35E78.js +1 -0
- package/lib/mermaid/chunk-ZS6VBONO-D-IFTJgn.js +175 -0
- package/lib/mermaid/chunk-ZUNWM646-DRKPDcQl.js +1 -0
- package/lib/mermaid/classDiagram-FGAMPOII-D1sf64vv.js +1 -0
- package/lib/mermaid/classDiagram-v2-AI5RJEK4-D1sf64vv.js +1 -0
- package/lib/mermaid/cose-bilkent-Q72C2OJ3-iX90typn.js +1 -0
- package/lib/mermaid/cynefin-OW5HDTMX-6OCTWOGG-6jDAiaRu.js +1 -0
- package/lib/mermaid/cynefinDiagram-2OOWUY4M-5ACKe62t.js +62 -0
- package/lib/mermaid/dagre-MPVFI544-BUrJjGwd.js +4 -0
- package/lib/mermaid/diagram-AE4NWXFW-B3Lkw8MS.js +24 -0
- package/lib/mermaid/diagram-BUJID5UG-p2ajLLgr.js +41 -0
- package/lib/mermaid/diagram-C44CZ5NI-CO0U1GX-.js +24 -0
- package/lib/mermaid/diagram-EYOLEXXS-DDoUndBV.js +30 -0
- package/lib/mermaid/diagram-P7B6PWOJ-C_dSNQyG.js +3 -0
- package/lib/mermaid/ebnfDiagram-FTPZ3PV6-DIwB5te0.js +1 -0
- package/lib/mermaid/erDiagram-H3ERR26V-CN4pCzIq.js +99 -0
- package/lib/mermaid/eventmodeling-NTZA5JFV-WKSWQHFS-Ruta89_N.js +1 -0
- package/lib/mermaid/flowDiagram-YHGXBVSY-CrSHzFwR.js +1 -0
- package/lib/mermaid/ganttDiagram-RWFTB7ED-C-rfEOn5.js +292 -0
- package/lib/mermaid/gitGraph-4MIJSDKK-JH2HKYUO-B76vihW5.js +1 -0
- package/lib/mermaid/gitGraphDiagram-MAR6GKOP-peAd7EYO.js +106 -0
- package/lib/mermaid/index.js +15 -0
- package/lib/mermaid/info-A6RAGUB7-3TX3OFWW-DykwOJ0Z.js +1 -0
- package/lib/mermaid/infoDiagram-LV547AFH-C46dOKDG.js +2 -0
- package/lib/mermaid/ishikawaDiagram-PUJQGNDS-DUmHXvO9.js +70 -0
- package/lib/mermaid/journeyDiagram-EW5QJT4W-CNAhUHsQ.js +139 -0
- package/lib/mermaid/kanban-definition-JSQERAZB-uOEoksHt.js +89 -0
- package/lib/mermaid/katex-CZ4GXH2S-CaEE-8Xf.js +257 -0
- package/lib/mermaid/mindmap-definition-VBJCLQLM-DZceCWFq.js +96 -0
- package/lib/mermaid/packet-AYTQ26CC-MKII6P3Y-XqJQX7OO.js +1 -0
- package/lib/mermaid/pegDiagram-7WILOQTJ-DMKA8PUf.js +1 -0
- package/lib/mermaid/pie-WAS4IAKB-6B4OPMJ5-DpoRuAye.js +1 -0
- package/lib/mermaid/pieDiagram-EFA7CBSB-BzO4xw8C.js +39 -0
- package/lib/mermaid/quadrantDiagram-WARVYA7P-DMQd2xKZ.js +7 -0
- package/lib/mermaid/radar-RG4KPBEZ-UPTR3XUL-BcwE6tO1.js +1 -0
- package/lib/mermaid/railroad-74A4TZTK-MEFUPFMS-B2Kwx3Uk.js +1 -0
- package/lib/mermaid/railroad-abnf-HS5TGJTU-R5YG2S5D-uBY3fYzG.js +1 -0
- package/lib/mermaid/railroad-ebnf-LZEXJU2U-G5QEX2L6-AhpzdU_3.js +1 -0
- package/lib/mermaid/railroad-peg-WCYAUIDC-H5I2ZRY2-CrsmP7-8.js +1 -0
- package/lib/mermaid/railroadDiagram-5NIQVNLQ-BGyZ628g.js +1 -0
- package/lib/mermaid/requirementDiagram-SXREGOKZ-CtCO7u9U.js +84 -0
- package/lib/mermaid/sankeyDiagram-VV74M2VP-CPXqmSKK.js +40 -0
- package/lib/mermaid/sequenceDiagram-52ZFIFDL-B1rSqWZp.js +162 -0
- package/lib/mermaid/sizeCapture-FGA5AGYP-BEqQzsxs.js +1 -0
- package/lib/mermaid/stateDiagram-3QAKPIVI-3KzWPUq3.js +1 -0
- package/lib/mermaid/stateDiagram-v2-HN2P4RDZ-dXASbYMy.js +1 -0
- package/lib/mermaid/swimlanes-QLVP42QD-CLpR90IY.js +1 -0
- package/lib/mermaid/swimlanesDiagram-JKPDBFCN-C2sgVGQE.js +8 -0
- package/lib/mermaid/timeline-definition-GS45XAXW-DLn0_RV5.js +120 -0
- package/lib/mermaid/treeView-Q6P3EWNA-ZRJGANNQ-u1bD1sZ1.js +1 -0
- package/lib/mermaid/treemap-WGGIJYW6-K64VN5AS-DrIaTBlj.js +1 -0
- package/lib/mermaid/vennDiagram-QIQU2ZRJ-FxbUp7-Z.js +34 -0
- package/lib/mermaid/wardley-WFR3VGLG-D67OWCCH-Br9hyuFK.js +1 -0
- package/lib/mermaid/wardleyDiagram-U6YNM66N-l-Kvr0Az.js +78 -0
- package/lib/mermaid/xychartDiagram-XJAZEDNM-O9bztWNh.js +7 -0
- package/lib/plugins.mjs +213 -162
- package/package.json +3 -10
- package/sources/parts/document/document.part.html +7 -7
- package/sources/parts/header/header.part.html +2 -2
- package/sources/parts/header/header.style.css +4 -2
- package/sources/parts/mermaid/mermaid.part.html +1 -1
- package/sources/parts/pagefind/pagefind.part.html +5 -3
- package/sources/parts/sidebar/sidebar.part.html +1 -1
- package/sources/parts/sidebar/sidebar.style.css +10 -0
- package/sources/parts/table-of-content/table-of-content-desktop.part.html +2 -2
- package/sources/scripts/mermaid.ts +3 -1
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
import{t as e}from"./chunk-AQ6EADP3-CZhslHi-.js";import{V as t,q as n}from"./chunk-H7VHZCWX-CwFRFlEn.js";import{B as r,F as i,Q as a,R as o,V as s,X as c,Y as l,_ as u,h as d,q as f}from"./chunk-QJSWEUOL-kvKBktmc.js";import{o as p,y as m}from"./chunk-VY2OSTJR-BYk2nUI_.js";import{r as h}from"./chunk-YDMLL4PJ-BHgx6nXf.js";import{r as g}from"./chunk-EICP7K5X-8YS1Gtlr.js";import{t as _}from"./chunk-RCXAM2GK-BeKcutEV.js";import{t as v}from"./chunk-VTHDQ7BV-BqUEu5Ml.js";var y=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,2],r=[1,3],i=[1,4],a=[2,4],o=[1,9],s=[1,11],c=[1,16],l=[1,17],u=[1,18],d=[1,19],f=[1,33],p=[1,20],m=[1,21],h=[1,22],g=[1,23],_=[1,24],v=[1,26],y=[1,27],b=[1,28],x=[1,29],S=[1,30],C=[1,31],w=[1,32],T=[1,35],E=[1,36],D=[1,37],O=[1,38],k=[1,34],A=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],j=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],M=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],N={trace:e(function(){},`trace`),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:`error`,4:`SPACE`,5:`NL`,6:`SD`,14:`DESCR`,15:`-->`,16:`HIDE_EMPTY`,17:`scale`,18:`WIDTH`,19:`COMPOSIT_STATE`,20:`STRUCT_START`,21:`STRUCT_STOP`,22:`STATE_DESCR`,23:`AS`,24:`ID`,25:`FORK`,26:`JOIN`,27:`CHOICE`,28:`CONCURRENT`,29:`note`,31:`NOTE_TEXT`,33:`acc_title`,34:`acc_title_value`,35:`acc_descr`,36:`acc_descr_value`,37:`acc_descr_multiline_value`,38:`CLICK`,39:`STRING`,40:`HREF`,41:`classDef`,42:`CLASSDEF_ID`,43:`CLASSDEF_STYLEOPTS`,44:`DEFAULT`,45:`style`,46:`STYLE_IDS`,47:`STYLEDEF_STYLEOPTS`,48:`class`,49:`CLASSENTITY_IDS`,50:`STYLECLASS`,51:`direction_tb`,52:`direction_bt`,53:`direction_rl`,54:`direction_lr`,56:`;`,57:`EDGE_STATE`,58:`STYLE_SEPARATOR`,59:`left_of`,60:`right_of`},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 3:return r.setRootDoc(a[s]),a[s];case 4:this.$=[];break;case 5:a[s]!=`nl`&&(a[s-1].push(a[s]),this.$=a[s-1]);break;case 6:case 7:this.$=a[s];break;case 8:this.$=`nl`;break;case 12:this.$=a[s];break;case 13:let e=a[s-1];e.description=r.trimColon(a[s]),this.$=e;break;case 14:this.$={stmt:`relation`,state1:a[s-2],state2:a[s]};break;case 15:let t=r.trimColon(a[s]);this.$={stmt:`relation`,state1:a[s-3],state2:a[s-1],description:t};break;case 19:this.$={stmt:`state`,id:a[s-3],type:`default`,description:``,doc:a[s-1]};break;case 20:var c=a[s],l=a[s-2].trim();if(a[s].match(`:`)){var u=a[s].split(`:`);c=u[0],l=[l,u[1]]}this.$={stmt:`state`,id:c,type:`default`,description:l};break;case 21:this.$={stmt:`state`,id:a[s-3],type:`default`,description:a[s-5],doc:a[s-1]};break;case 22:this.$={stmt:`state`,id:a[s],type:`fork`};break;case 23:this.$={stmt:`state`,id:a[s],type:`join`};break;case 24:this.$={stmt:`state`,id:a[s],type:`choice`};break;case 25:this.$={stmt:`state`,id:r.getDividerId(),type:`divider`};break;case 26:this.$={stmt:`state`,id:a[s-1].trim(),note:{position:a[s-2].trim(),text:a[s].trim()}};break;case 29:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 30:case 31:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 32:this.$={stmt:`click`,id:a[s-3],url:a[s-2],tooltip:a[s-1]};break;case 33:this.$={stmt:`click`,id:a[s-3],url:a[s-1],tooltip:``};break;case 34:case 35:this.$={stmt:`classDef`,id:a[s-1].trim(),classes:a[s].trim()};break;case 36:this.$={stmt:`style`,id:a[s-1].trim(),styleClass:a[s].trim()};break;case 37:this.$={stmt:`applyClass`,id:a[s-1].trim(),styleClass:a[s].trim()};break;case 38:r.setDirection(`TB`),this.$={stmt:`dir`,value:`TB`};break;case 39:r.setDirection(`BT`),this.$={stmt:`dir`,value:`BT`};break;case 40:r.setDirection(`RL`),this.$={stmt:`dir`,value:`RL`};break;case 41:r.setDirection(`LR`),this.$={stmt:`dir`,value:`LR`};break;case 44:case 45:this.$={stmt:`state`,id:a[s].trim(),type:`default`,description:``};break;case 46:this.$={stmt:`state`,id:a[s-2].trim(),classes:[a[s].trim()],type:`default`,description:``};break;case 47:this.$={stmt:`state`,id:a[s-2].trim(),classes:[a[s].trim()],type:`default`,description:``}}},`anonymous`),table:[{3:1,4:n,5:r,6:i},{1:[3]},{3:5,4:n,5:r,6:i},{3:6,4:n,5:r,6:i},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],a,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:o,5:s,8:8,9:10,10:12,11:13,12:14,13:15,16:c,17:l,19:u,22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},t(A,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:c,17:l,19:u,22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},t(A,[2,7]),t(A,[2,8]),t(A,[2,9]),t(A,[2,10]),t(A,[2,11]),t(A,[2,12],{14:[1,40],15:[1,41]}),t(A,[2,16]),{18:[1,42]},t(A,[2,18],{20:[1,43]}),{23:[1,44]},t(A,[2,22]),t(A,[2,23]),t(A,[2,24]),t(A,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},t(A,[2,28]),{34:[1,49]},{36:[1,50]},t(A,[2,31]),{13:51,24:f,57:k},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},t(j,[2,44],{58:[1,56]}),t(j,[2,45],{58:[1,57]}),t(A,[2,38]),t(A,[2,39]),t(A,[2,40]),t(A,[2,41]),t(A,[2,6]),t(A,[2,13]),{13:58,24:f,57:k},t(A,[2,17]),t(M,a,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},t(A,[2,29]),t(A,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},t(A,[2,14],{14:[1,71]}),{4:o,5:s,8:8,9:10,10:12,11:13,12:14,13:15,16:c,17:l,19:u,21:[1,72],22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},t(A,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},t(A,[2,34]),t(A,[2,35]),t(A,[2,36]),t(A,[2,37]),t(j,[2,46]),t(j,[2,47]),t(A,[2,15]),t(A,[2,19]),t(M,a,{7:78}),t(A,[2,26]),t(A,[2,27]),{5:[1,79]},{5:[1,80]},{4:o,5:s,8:8,9:10,10:12,11:13,12:14,13:15,16:c,17:l,19:u,21:[1,81],22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},t(A,[2,32]),t(A,[2,33]),t(A,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:e(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e(function(t){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(t,g.yy),g.yy.lexer=h,g.yy.parser=this,typeof h.yylloc>`u`&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}e(b,`popStack`);function x(){var e;return e=i.pop()||h.lex()||p,typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:((S===null||typeof S>`u`)&&(S=x()),T=s[w]&&s[w][S]),typeof T>`u`||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
|
|
2
|
+
`+h.showPosition()+`
|
|
3
|
+
Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),typeof E<`u`)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};N.lexer=(function(){return{EOF:1,parseError:e(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:e(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:e(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:e(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:e(function(){return this._more=!0,this},`more`),reject:e(function(){if(this.options.backtrack_lexer)this._backtrack=!0;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).
|
|
4
|
+
`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:e(function(e){this.unput(this.match.slice(e))},`less`),pastInput:e(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:e(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:e(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
|
|
5
|
+
`+t+`^`},`showPosition`),test_match:e(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,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(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:e(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;a<i.length;a++)if(n=this._input.match(this.rules[i[a]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
+
`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:e(function(){return this.next()||this.lex()},`lex`),begin:e(function(e){this.conditionStack.push(e)},`begin`),popState:e(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:e(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:e(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:e(function(e){this.begin(e)},`pushState`),stateStackSize:e(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:e(function(t,n,r,i){function a(){let e=n.yytext.indexOf(`%%`);if(e===0)return!1;if(e>0){let r=n.yytext.slice(0,e),i=n.yytext.slice(e);i&&t.lexer.unput(i),n.yytext=r}return!0}switch(e(a,`processId`),r){case 0:return 38;case 1:return 40;case 2:return 39;case 3:return 44;case 4:return 51;case 5:return 52;case 6:return 53;case 7:return 54;case 8:return 5;case 9:break;case 10:break;case 11:break;case 12:break;case 13:return this.pushState(`SCALE`),17;case 14:return 18;case 15:this.popState();break;case 16:return this.begin(`acc_title`),33;case 17:return this.popState(),`acc_title_value`;case 18:return this.begin(`acc_descr`),35;case 19:return this.popState(),`acc_descr_value`;case 20:this.begin(`acc_descr_multiline`);break;case 21:this.popState();break;case 22:return`acc_descr_multiline_value`;case 23:return this.pushState(`CLASSDEF`),41;case 24:return this.popState(),this.pushState(`CLASSDEFID`),`DEFAULT_CLASSDEF_ID`;case 25:return this.popState(),this.pushState(`CLASSDEFID`),42;case 26:return this.popState(),43;case 27:return this.pushState(`CLASS`),48;case 28:return this.popState(),this.pushState(`CLASS_STYLE`),49;case 29:return this.popState(),50;case 30:return this.pushState(`STYLE`),45;case 31:return this.popState(),this.pushState(`STYLEDEF_STYLES`),46;case 32:return this.popState(),47;case 33:return this.pushState(`SCALE`),17;case 34:return 18;case 35:this.popState();break;case 36:this.pushState(`STATE`);break;case 37:return this.popState(),n.yytext=n.yytext.slice(0,-8).trim(),25;case 38:return this.popState(),n.yytext=n.yytext.slice(0,-8).trim(),26;case 39:return this.popState(),n.yytext=n.yytext.slice(0,-10).trim(),27;case 40:return this.popState(),n.yytext=n.yytext.slice(0,-8).trim(),25;case 41:return this.popState(),n.yytext=n.yytext.slice(0,-8).trim(),26;case 42:return this.popState(),n.yytext=n.yytext.slice(0,-10).trim(),27;case 43:return 51;case 44:return 52;case 45:return 53;case 46:return 54;case 47:this.pushState(`STATE_STRING`);break;case 48:return this.pushState(`STATE_ID`),`AS`;case 49:return a()?(this.popState(),`ID`):void 0;case 50:this.popState();break;case 51:return`STATE_DESCR`;case 52:throw Error(`Error: State name must be a single word. Found: "`+n.yytext.trim()+`"`);case 53:return 19;case 54:this.popState();break;case 55:return this.popState(),this.pushState(`struct`),20;case 56:return this.popState(),21;case 57:break;case 58:return this.begin(`NOTE`),29;case 59:return this.popState(),this.pushState(`NOTE_ID`),59;case 60:return this.popState(),this.pushState(`NOTE_ID`),60;case 61:this.popState(),this.pushState(`FLOATING_NOTE`);break;case 62:return this.popState(),this.pushState(`FLOATING_NOTE_ID`),`AS`;case 63:break;case 64:return`NOTE_TEXT`;case 65:return a()?(this.popState(),`ID`):void 0;case 66:return a()?(this.popState(),this.pushState(`NOTE_TEXT`),24):void 0;case 67:return this.popState(),n.yytext=n.yytext.substr(2).trim(),31;case 68:return this.popState(),n.yytext=n.yytext.slice(0,-8).trim(),31;case 69:return 6;case 70:return 6;case 71:return 16;case 72:return 57;case 73:return a()?24:void 0;case 74:return n.yytext=n.yytext.trim(),14;case 75:return 15;case 76:return 28;case 77:return 58;case 78:return 5;case 79:return`INVALID`}},`anonymous`),rules:[/^(?:click\b)/i,/^(?:href\b)/i,/^(?:"[^"]*")/i,/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:style\s+)/i,/^(?:[\w,]+\s+)/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<<fork>>)/i,/^(?:.*<<join>>)/i,/^(?:.*<<choice>>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\w+\s+\w+.*?\{)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?\n\s*end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:(?:[^:\n;]|:[^:\n;])+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?::::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[10,11,12],inclusive:!1},struct:{rules:[10,11,12,23,27,30,36,43,44,45,46,56,57,58,72,73,74,75,76,77],inclusive:!1},FLOATING_NOTE_ID:{rules:[65],inclusive:!1},FLOATING_NOTE:{rules:[62,63,64],inclusive:!1},NOTE_TEXT:{rules:[67,68],inclusive:!1},NOTE_ID:{rules:[66],inclusive:!1},NOTE:{rules:[59,60,61],inclusive:!1},STYLEDEF_STYLEOPTS:{rules:[],inclusive:!1},STYLEDEF_STYLES:{rules:[32],inclusive:!1},STYLE_IDS:{rules:[],inclusive:!1},STYLE:{rules:[31],inclusive:!1},CLASS_STYLE:{rules:[29],inclusive:!1},CLASS:{rules:[28],inclusive:!1},CLASSDEFID:{rules:[26],inclusive:!1},CLASSDEF:{rules:[24,25],inclusive:!1},acc_descr_multiline:{rules:[21,22],inclusive:!1},acc_descr:{rules:[19],inclusive:!1},acc_title:{rules:[17],inclusive:!1},SCALE:{rules:[14,15,34,35],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[49],inclusive:!1},STATE_STRING:{rules:[50,51],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[10,11,12,37,38,39,40,41,42,47,48,52,53,54,55],inclusive:!1},ID:{rules:[10,11,12],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,11,12,13,16,18,20,23,27,30,33,36,55,58,69,70,71,72,73,74,75,77,78,79],inclusive:!0}}}})();function P(){this.yy={}}return e(P,`Parser`),P.prototype=N,N.Parser=P,new P})();y.parser=y;var b=y,x=`state`,S=`root`,C=`relation`,w=`classDef`,T=`style`,E=`applyClass`,D=`default`,O=`divider`,k=`fill:none`,A=`fill: #333`,j=`markdown`,M=`normal`,N=`rect`,P=`rectWithTitle`,ee=`stateStart`,te=`stateEnd`,F=`divider`,I=`roundedWithTitle`,ne=`note`,re=`noteGroup`,L=`statediagram`,ie=`${L}-state`,R=`transition`,ae=`note`,oe=`${R} note-edge`,se=`${L}-${ae}`,ce=`${L}-cluster`,le=`${L}-cluster-alt`,z=`parent`,B=`note`,ue=`state`,V=`----`,de=`${V}${B}`,H=`${V}${z}`,U=e((e,t=`TB`)=>{if(!e.doc)return t;let n=t;for(let t of e.doc)t.stmt===`dir`&&(n=t.value);return n},`getDir`),fe={getClasses:e(function(e,t){return t.db.getClasses()},`getClasses`),draw:e(async function(e,t,i,a){n.info(`REF0:`),n.info(`Drawing state diagram (v2)`,t);let{securityLevel:o,state:s,layout:c}=r();a.db.extract(a.db.getRootDocV2());let l=a.db.getData(),u=_(t,o);l.type=a.type,l.layoutAlgorithm=c,l.nodeSpacing=s?.nodeSpacing||50,l.rankSpacing=s?.rankSpacing||50,l.markers=r().look===`neo`?[`barbNeo`]:[`barb`],l.diagramId=t,await h(l,u);try{(typeof a.db.getLinks==`function`?a.db.getLinks():new Map).forEach((e,t)=>{let r=typeof t==`string`?t:typeof t?.id==`string`?t.id:``,i=l.nodes.find(e=>e.id===r);if(!r){n.warn(`⚠️ Invalid or missing stateId from key:`,JSON.stringify(t));return}let a=u.node()?.querySelectorAll(`g.node, g.rough-node`),o;if(a?.forEach(e=>{let t=e.textContent?.trim();(e.id===i?.domId||t===r)&&(o=e)}),!o){n.warn(`⚠️ Could not find node matching text:`,r);return}let s=o.parentNode;if(!s){n.warn(`⚠️ Node has no parent, cannot wrap:`,r);return}let c=document.createElementNS(`http://www.w3.org/2000/svg`,`a`),d=e.url.replace(/^"+|"+$/g,``);if(c.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,d),c.setAttribute(`target`,`_blank`),e.tooltip){let t=e.tooltip.replace(/^"+|"+$/g,``);c.setAttribute(`title`,t),o.setAttribute(`title`,t)}s.replaceChild(c,o),c.appendChild(o),n.info(`🔗 Wrapped node in <a> tag for:`,r,e.url)})}catch(e){n.error(`❌ Error injecting clickable links:`,e)}p.insertTitle(u,`statediagramTitleText`,s?.titleTopMargin??25,a.db.getDiagramTitle()),v(u,8,L,s?.useMaxWidth??!0)},`draw`),getDir:U},W=new Map,G=0;function K(e=``,t=0,n=``,r=V){return`${ue}-${e}${n!==null&&n.length>0?`${r}${n}`:``}-${t}`}e(K,`stateDomId`);var pe=e((e,t,i,a,s,c,l,u)=>{n.trace(`items`,t),t.forEach(t=>{switch(t.stmt){case x:Z(e,t,i,a,s,c,l,u);break;case D:Z(e,t,i,a,s,c,l,u);break;case C:{Z(e,t.state1,i,a,s,c,l,u),Z(e,t.state2,i,a,s,c,l,u);let n=l===`neo`,d={id:`edge`+G,start:t.state1.id,end:t.state2.id,arrowhead:`normal`,arrowTypeEnd:n?`arrow_barb_neo`:`arrow_barb`,style:k,labelStyle:``,label:o.sanitizeText(t.description??``,r()),arrowheadStyle:A,labelpos:`c`,labelType:j,thickness:M,classes:R,look:l};s.push(d),G++}}})},`setupDoc`),q=e((e,t=`TB`)=>{let n=t;if(e.doc)for(let t of e.doc)t.stmt===`dir`&&(n=t.value);return n},`getDir`);function J(e,t,n){if(!t.id||t.id===`</join></fork>`||t.id===`</choice>`)return;t.cssClasses&&(Array.isArray(t.cssCompiledStyles)||(t.cssCompiledStyles=[]),t.cssClasses.split(` `).forEach(e=>{let r=n.get(e);r&&(t.cssCompiledStyles=[...t.cssCompiledStyles??[],...r.styles])}));let r=e.find(e=>e.id===t.id);r?Object.assign(r,t):e.push(t)}e(J,`insertOrUpdateNode`);function Y(e){return e?.classes?.join(` `)??``}e(Y,`getClassesFromDbInfo`);function X(e){return e?.styles??[]}e(X,`getStylesFromDbInfo`);var Z=e((e,t,i,a,s,c,l,u)=>{let d=t.id,f=i.get(d),p=Y(f),m=X(f),h=r();if(n.info(`dataFetcher parsedItem`,t,f,m),d!==`root`){let r=N;t.start===!0?r=ee:t.start===!1&&(r=te),t.type!==D&&(r=t.type),W.get(d)||W.set(d,{id:d,shape:r,description:o.sanitizeText(d,h),cssClasses:`${p} ${ie}`,cssStyles:m});let i=W.get(d);t.description&&(Array.isArray(i.description)?(i.shape=P,i.description.push(t.description)):i.description?.length&&i.description.length>0?(i.shape=P,i.description=i.description===d?[t.description]:[i.description,t.description]):(i.shape=N,i.description=t.description),i.description=o.sanitizeTextOrArray(i.description,h)),i.description?.length===1&&i.shape===P&&(i.shape=i.type===`group`?I:N),!i.type&&t.doc&&(n.info(`Setting cluster for XCX`,d,q(t)),i.type=`group`,i.isGroup=!0,i.dir=q(t),i.shape=t.type===O?F:I,i.cssClasses=`${i.cssClasses} ${ce} ${c?le:``}`);let f={labelStyle:``,shape:i.shape,label:i.description,cssClasses:i.cssClasses,cssCompiledStyles:[],cssStyles:i.cssStyles,id:d,dir:i.dir,domId:K(d,G),type:i.type,isGroup:i.type===`group`,padding:8,rx:10,ry:10,look:l,labelType:`markdown`};if(f.shape===F&&(f.label=``),e&&e.id!==`root`&&(n.trace(`Setting node `,d,` to be child of its parent `,e.id),f.parentId=e.id),f.centerLabel=!0,t.note){let e={labelStyle:``,shape:ne,label:t.note.text,labelType:`markdown`,cssClasses:se,cssStyles:[],cssCompiledStyles:[],id:d+de+`-`+G,domId:K(d,G,B),type:i.type,isGroup:i.type===`group`,padding:h.flowchart?.padding,look:l,position:t.note.position},n=d+H,r={labelStyle:``,shape:re,label:t.note.text,cssClasses:i.cssClasses,cssStyles:[],id:d+H,domId:K(d,G,z),type:`group`,isGroup:!0,padding:16,look:l,position:t.note.position};G++,r.id=n,e.parentId=n,J(a,r,u),J(a,e,u),J(a,f,u);let o=d,c=e.id;t.note.position===`left of`&&(o=e.id,c=d),s.push({id:o+`-`+c,start:o,end:c,arrowhead:`none`,arrowTypeEnd:``,style:k,labelStyle:``,classes:oe,arrowheadStyle:A,labelpos:`c`,labelType:j,thickness:M,look:l})}else J(a,f,u)}t.doc&&(n.trace(`Adding nodes children `),pe(t,t.doc,i,a,s,!c,l,u))},`dataFetcher`),me=e(()=>{W.clear(),G=0},`reset`),Q={START_NODE:`[*]`,START_TYPE:`start`,END_NODE:`[*]`,END_TYPE:`end`,COLOR_KEYWORD:`color`,FILL_KEYWORD:`fill`,BG_FILL:`bgFill`,STYLECLASS_SEP:`,`},he=e(()=>new Map,`newClassesList`),ge=e(()=>({relations:[],states:new Map,documents:{}}),`newDoc`),$=e(e=>JSON.parse(JSON.stringify(e)),`clone`),_e=class{constructor(e){this.version=e,this.nodes=[],this.edges=[],this.rootDoc=[],this.classes=he(),this.documents={root:ge()},this.currentDocument=this.documents.root,this.startEndCount=0,this.dividerCnt=0,this.links=new Map,this.funs=[],this.getAccTitle=s,this.setAccTitle=a,this.getAccDescription=f,this.setAccDescription=l,this.setDiagramTitle=i,this.getDiagramTitle=c,this.clear(),this.setRootDoc=this.setRootDoc.bind(this),this.getDividerId=this.getDividerId.bind(this),this.setDirection=this.setDirection.bind(this),this.trimColon=this.trimColon.bind(this),this.bindFunctions=this.bindFunctions.bind(this)}static{e(this,`StateDB`)}static{this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3}}extract(e){this.clear(!0);for(let t of Array.isArray(e)?e:e.doc)switch(t.stmt){case x:this.addState(t.id.trim(),t.type,t.doc,t.description,t.note);break;case C:this.addRelation(t.state1,t.state2,t.description);break;case w:this.addStyleClass(t.id.trim(),t.classes);break;case T:this.handleStyleDef(t);break;case E:this.setCssClass(t.id.trim(),t.styleClass);break;case`click`:this.addLink(t.id,t.url,t.tooltip)}let t=this.getStates(),n=r();me(),Z(void 0,this.getRootDocV2(),t,this.nodes,this.edges,!0,n.look,this.classes);for(let e of this.nodes)if(Array.isArray(e.label)){if(e.description=e.label.slice(1),e.isGroup&&e.description.length>0)throw Error(`Group nodes can only have label. Remove the additional description for node [${e.id}]`);e.label=e.label[0]}}handleStyleDef(e){let t=e.id.trim().split(`,`),n=e.styleClass.split(`,`);for(let e of t){let t=this.getState(e);if(!t){let n=e.trim();this.addState(n),t=this.getState(n)}t&&(t.styles=n.map(e=>e.replace(/;/g,``)?.trim()))}}setRootDoc(e){n.info(`Setting root doc`,e),this.rootDoc=e,this.version===1?this.extract(e):this.extract(this.getRootDocV2())}docTranslator(e,t,n){if(t.stmt===C){this.docTranslator(e,t.state1,!0),this.docTranslator(e,t.state2,!1);return}if(t.stmt===x&&(t.id===Q.START_NODE?(t.id=e.id+(n?`_start`:`_end`),t.start=n):t.id=t.id.trim()),t.stmt!==S&&t.stmt!==x||!t.doc)return;let r=[],i=[];for(let e of t.doc)if(e.type===O){let t=$(e);t.doc=$(i),r.push(t),i=[]}else i.push(e);if(r.length>0&&i.length>0){let e={stmt:x,id:m(),type:`divider`,doc:$(i)};r.push($(e)),t.doc=r}t.doc.forEach(e=>this.docTranslator(t,e,!0))}getRootDocV2(){return this.docTranslator({id:S,stmt:S},{id:S,stmt:S,doc:this.rootDoc},!0),{id:S,doc:this.rootDoc}}addState(e,t=D,i=void 0,a=void 0,s=void 0,c=void 0,l=void 0,u=void 0){let d=e?.trim();if(!this.currentDocument.states.has(d))n.info(`Adding state `,d,a),this.currentDocument.states.set(d,{stmt:x,id:d,descriptions:[],type:t,doc:i,note:s,classes:[],styles:[],textStyles:[]});else{let e=this.currentDocument.states.get(d);if(!e)throw Error(`State not found: ${d}`);e.doc||=i,e.type||=t}if(a&&(n.info(`Setting state description`,d,a),(Array.isArray(a)?a:[a]).forEach(e=>this.addDescription(d,e.trim()))),s){let e=this.currentDocument.states.get(d);if(!e)throw Error(`State not found: ${d}`);e.note=s,e.note.text=o.sanitizeText(e.note.text,r())}c&&(n.info(`Setting state classes`,d,c),(Array.isArray(c)?c:[c]).forEach(e=>this.setCssClass(d,e.trim()))),l&&(n.info(`Setting state styles`,d,l),(Array.isArray(l)?l:[l]).forEach(e=>this.setStyle(d,e.trim()))),u&&(n.info(`Setting state styles`,d,l),(Array.isArray(u)?u:[u]).forEach(e=>this.setTextStyle(d,e.trim())))}clear(e){this.nodes=[],this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.documents={root:ge()},this.currentDocument=this.documents.root,this.startEndCount=0,this.classes=he(),e||(this.links=new Map,d())}getState(e){return this.currentDocument.states.get(e)}getStates(){return this.currentDocument.states}logDocuments(){n.info(`Documents = `,this.documents)}getRelations(){return this.currentDocument.relations}addLink(e,t,r){this.links.set(e,{url:t,tooltip:r}),n.warn(`Adding link`,e,t,r)}getLinks(){return this.links}startIdIfNeeded(e=``){return e===Q.START_NODE?(this.startEndCount++,`${Q.START_TYPE}${this.startEndCount}`):e}startTypeIfNeeded(e=``,t=D){return e===Q.START_NODE?Q.START_TYPE:t}endIdIfNeeded(e=``){return e===Q.END_NODE?(this.startEndCount++,`${Q.END_TYPE}${this.startEndCount}`):e}endTypeIfNeeded(e=``,t=D){return e===Q.END_NODE?Q.END_TYPE:t}addRelationObjs(e,t,n=``){let i=this.startIdIfNeeded(e.id.trim()),a=this.startTypeIfNeeded(e.id.trim(),e.type),s=this.startIdIfNeeded(t.id.trim()),c=this.startTypeIfNeeded(t.id.trim(),t.type);this.addState(i,a,e.doc,e.description,e.note,e.classes,e.styles,e.textStyles),this.addState(s,c,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles),this.currentDocument.relations.push({id1:i,id2:s,relationTitle:o.sanitizeText(n,r())})}addRelation(e,t,n){if(typeof e==`object`&&typeof t==`object`)this.addRelationObjs(e,t,n);else if(typeof e==`string`&&typeof t==`string`){let i=this.startIdIfNeeded(e.trim()),a=this.startTypeIfNeeded(e),s=this.endIdIfNeeded(t.trim()),c=this.endTypeIfNeeded(t);this.addState(i,a),this.addState(s,c),this.currentDocument.relations.push({id1:i,id2:s,relationTitle:n?o.sanitizeText(n,r()):void 0})}}addDescription(e,t){let n=this.currentDocument.states.get(e),i=t.startsWith(`:`)?t.replace(`:`,``).trim():t;n?.descriptions?.push(o.sanitizeText(i,r()))}cleanupLabel(e){return e.startsWith(`:`)?e.slice(2).trim():e.trim()}getDividerId(){return this.dividerCnt++,`divider-id-${this.dividerCnt}`}addStyleClass(e,t=``){this.classes.has(e)||this.classes.set(e,{id:e,styles:[],textStyles:[]});let n=this.classes.get(e);t&&n&&t.split(Q.STYLECLASS_SEP).forEach(e=>{let t=e.replace(/([^;]*);/,`$1`).trim();if(RegExp(Q.COLOR_KEYWORD).exec(e)){let e=t.replace(Q.FILL_KEYWORD,Q.BG_FILL).replace(Q.COLOR_KEYWORD,Q.FILL_KEYWORD);n.textStyles.push(e)}n.styles.push(t)})}getClasses(){return this.classes}setupToolTips(e){let n=g();t(e).select(`svg`).selectAll(`g.node, g.rough-node`).on(`mouseover`,e=>{let r=t(e.currentTarget),i=r.attr(`title`);if(i===null)return;let a=e.currentTarget?.getBoundingClientRect();n.transition().duration(200).style(`opacity`,`.9`),n.style(`left`,window.scrollX+a.left+(a.right-a.left)/2+`px`).style(`top`,window.scrollY+a.bottom+`px`),n.html(u.sanitize(i)),r.classed(`hover`,!0)}).on(`mouseout`,e=>{n.transition().duration(500).style(`opacity`,0),t(e.currentTarget).classed(`hover`,!1)})}setCssClass(e,t){e.split(`,`).forEach(e=>{let n=this.getState(e);if(!n){let t=e.trim();this.addState(t),n=this.getState(t)}n?.classes?.push(t)})}setStyle(e,t){this.getState(e)?.styles?.push(t)}setTextStyle(e,t){this.getState(e)?.textStyles?.push(t)}bindFunctions(e){this.funs.forEach(t=>{t(e)})}getDirectionStatement(){return this.rootDoc.find(e=>e.stmt===`dir`)}getDirection(){return this.getDirectionStatement()?.value??`TB`}setDirection(e){let t=this.getDirectionStatement();t?t.value=e:this.rootDoc.unshift({stmt:`dir`,value:e})}trimColon(e){return e.startsWith(`:`)?e.slice(1).trim():e.trim()}getData(){let e=r();return{nodes:this.nodes,edges:this.edges,other:{},config:e,direction:U(this.getRootDocV2())}}getConfig(){return r().state}},ve=e(e=>`
|
|
7
|
+
defs [id$="-barbEnd"] {
|
|
8
|
+
fill: ${e.transitionColor};
|
|
9
|
+
stroke: ${e.transitionColor};
|
|
10
|
+
}
|
|
11
|
+
g.stateGroup text {
|
|
12
|
+
fill: ${e.nodeBorder};
|
|
13
|
+
stroke: none;
|
|
14
|
+
font-size: 10px;
|
|
15
|
+
}
|
|
16
|
+
g.stateGroup text {
|
|
17
|
+
fill: ${e.textColor};
|
|
18
|
+
stroke: none;
|
|
19
|
+
font-size: 10px;
|
|
20
|
+
|
|
21
|
+
}
|
|
22
|
+
g.stateGroup .state-title {
|
|
23
|
+
font-weight: bolder;
|
|
24
|
+
fill: ${e.stateLabelColor};
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
g.stateGroup rect {
|
|
28
|
+
fill: ${e.mainBkg};
|
|
29
|
+
stroke: ${e.nodeBorder};
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
g.stateGroup line {
|
|
33
|
+
stroke: ${e.lineColor};
|
|
34
|
+
stroke-width: ${e.strokeWidth||1};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.transition {
|
|
38
|
+
stroke: ${e.transitionColor};
|
|
39
|
+
stroke-width: ${e.strokeWidth||1};
|
|
40
|
+
fill: none;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.stateGroup .composit {
|
|
44
|
+
fill: ${e.background};
|
|
45
|
+
border-bottom: 1px
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.stateGroup .alt-composit {
|
|
49
|
+
fill: #e0e0e0;
|
|
50
|
+
border-bottom: 1px
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.state-note {
|
|
54
|
+
stroke: ${e.noteBorderColor};
|
|
55
|
+
fill: ${e.noteBkgColor};
|
|
56
|
+
|
|
57
|
+
text {
|
|
58
|
+
fill: ${e.noteTextColor};
|
|
59
|
+
stroke: none;
|
|
60
|
+
font-size: 10px;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.stateLabel .box {
|
|
65
|
+
stroke: none;
|
|
66
|
+
stroke-width: 0;
|
|
67
|
+
fill: ${e.mainBkg};
|
|
68
|
+
opacity: 0.5;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.edgeLabel .label rect {
|
|
72
|
+
fill: ${e.labelBackgroundColor};
|
|
73
|
+
opacity: 0.5;
|
|
74
|
+
}
|
|
75
|
+
.edgeLabel {
|
|
76
|
+
background-color: ${e.edgeLabelBackground};
|
|
77
|
+
p {
|
|
78
|
+
background-color: ${e.edgeLabelBackground};
|
|
79
|
+
}
|
|
80
|
+
rect {
|
|
81
|
+
opacity: 0.5;
|
|
82
|
+
background-color: ${e.edgeLabelBackground};
|
|
83
|
+
fill: ${e.edgeLabelBackground};
|
|
84
|
+
}
|
|
85
|
+
text-align: center;
|
|
86
|
+
}
|
|
87
|
+
.edgeLabel .label text {
|
|
88
|
+
fill: ${e.transitionLabelColor||e.tertiaryTextColor};
|
|
89
|
+
}
|
|
90
|
+
.label div .edgeLabel {
|
|
91
|
+
color: ${e.transitionLabelColor||e.tertiaryTextColor};
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.stateLabel text {
|
|
95
|
+
fill: ${e.stateLabelColor};
|
|
96
|
+
font-size: 10px;
|
|
97
|
+
font-weight: bold;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.node circle.state-start {
|
|
101
|
+
fill: ${e.specialStateColor};
|
|
102
|
+
stroke: ${e.specialStateColor};
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.node .fork-join {
|
|
106
|
+
fill: ${e.specialStateColor};
|
|
107
|
+
stroke: ${e.specialStateColor};
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.node circle.state-end {
|
|
111
|
+
fill: ${e.innerEndBackground};
|
|
112
|
+
stroke: ${e.background};
|
|
113
|
+
stroke-width: 1.5
|
|
114
|
+
}
|
|
115
|
+
.end-state-inner {
|
|
116
|
+
fill: ${e.compositeBackground||e.background};
|
|
117
|
+
// stroke: ${e.background};
|
|
118
|
+
stroke-width: 1.5
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.node rect {
|
|
122
|
+
fill: ${e.stateBkg||e.mainBkg};
|
|
123
|
+
stroke: ${e.stateBorder||e.nodeBorder};
|
|
124
|
+
stroke-width: ${e.strokeWidth||1}px;
|
|
125
|
+
}
|
|
126
|
+
.node polygon {
|
|
127
|
+
fill: ${e.mainBkg};
|
|
128
|
+
stroke: ${e.stateBorder||e.nodeBorder};;
|
|
129
|
+
stroke-width: ${e.strokeWidth||1}px;
|
|
130
|
+
}
|
|
131
|
+
[id$="-barbEnd"] {
|
|
132
|
+
fill: ${e.lineColor};
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.statediagram-cluster rect {
|
|
136
|
+
fill: ${e.compositeTitleBackground};
|
|
137
|
+
stroke: ${e.stateBorder||e.nodeBorder};
|
|
138
|
+
stroke-width: ${e.strokeWidth||1}px;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.cluster-label, .nodeLabel {
|
|
142
|
+
color: ${e.stateLabelColor};
|
|
143
|
+
// line-height: 1;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.statediagram-cluster rect.outer {
|
|
147
|
+
rx: 5px;
|
|
148
|
+
ry: 5px;
|
|
149
|
+
}
|
|
150
|
+
.statediagram-state .divider {
|
|
151
|
+
stroke: ${e.stateBorder||e.nodeBorder};
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.statediagram-state .title-state {
|
|
155
|
+
rx: 5px;
|
|
156
|
+
ry: 5px;
|
|
157
|
+
}
|
|
158
|
+
.statediagram-cluster.statediagram-cluster .inner {
|
|
159
|
+
fill: ${e.compositeBackground||e.background};
|
|
160
|
+
}
|
|
161
|
+
.statediagram-cluster.statediagram-cluster-alt .inner {
|
|
162
|
+
fill: ${e.altBackground?e.altBackground:`#efefef`};
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.statediagram-cluster .inner {
|
|
166
|
+
rx:0;
|
|
167
|
+
ry:0;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.statediagram-state rect.basic {
|
|
171
|
+
rx: 5px;
|
|
172
|
+
ry: 5px;
|
|
173
|
+
}
|
|
174
|
+
.statediagram-state rect.divider {
|
|
175
|
+
stroke-dasharray: 10,10;
|
|
176
|
+
fill: ${e.altBackground?e.altBackground:`#efefef`};
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.note-edge {
|
|
180
|
+
stroke-dasharray: 5;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.statediagram-note rect {
|
|
184
|
+
fill: ${e.noteBkgColor};
|
|
185
|
+
stroke: ${e.noteBorderColor};
|
|
186
|
+
stroke-width: 1px;
|
|
187
|
+
rx: 0;
|
|
188
|
+
ry: 0;
|
|
189
|
+
}
|
|
190
|
+
.statediagram-note rect {
|
|
191
|
+
fill: ${e.noteBkgColor};
|
|
192
|
+
stroke: ${e.noteBorderColor};
|
|
193
|
+
stroke-width: 1px;
|
|
194
|
+
rx: 0;
|
|
195
|
+
ry: 0;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.statediagram-note text {
|
|
199
|
+
fill: ${e.noteTextColor};
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.statediagram-note .nodeLabel {
|
|
203
|
+
color: ${e.noteTextColor};
|
|
204
|
+
}
|
|
205
|
+
.statediagram .edgeLabel {
|
|
206
|
+
color: red; // ${e.noteTextColor};
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
[id$="-dependencyStart"], [id$="-dependencyEnd"] {
|
|
210
|
+
fill: ${e.lineColor};
|
|
211
|
+
stroke: ${e.lineColor};
|
|
212
|
+
stroke-width: ${e.strokeWidth||1};
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.statediagramTitleText {
|
|
216
|
+
text-anchor: middle;
|
|
217
|
+
font-size: 18px;
|
|
218
|
+
fill: ${e.textColor};
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
[data-look="neo"].statediagram-cluster rect {
|
|
222
|
+
fill: ${e.mainBkg};
|
|
223
|
+
stroke: ${e.useGradient?`url(`+e.svgId+`-gradient)`:e.stateBorder||e.nodeBorder};
|
|
224
|
+
stroke-width: ${e.strokeWidth??1};
|
|
225
|
+
}
|
|
226
|
+
[data-look="neo"].statediagram-cluster rect.outer {
|
|
227
|
+
rx: ${e.radius}px;
|
|
228
|
+
ry: ${e.radius}px;
|
|
229
|
+
filter: ${e.dropShadow?e.dropShadow.replace(`url(#drop-shadow)`,`url(${e.svgId}-drop-shadow)`):`none`}
|
|
230
|
+
}
|
|
231
|
+
`,`getStyles`);export{fe as i,b as n,ve as r,_e as t};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import{t as e}from"./chunk-AQ6EADP3-CZhslHi-.js";function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}e(t,`getDefaultExportFromCjs`);var n={},r={},i={},a;function o(){if(a)return i;a=1;function t(e){return typeof e>`u`||e===null}e(t,`isNothing`);function n(e){return typeof e==`object`&&!!e}e(n,`isObject`);function r(e){return Array.isArray(e)?e:t(e)?[]:[e]}e(r,`toArray`);function o(e,t){if(t){let n=Object.keys(t);for(let r=0,i=n.length;r<i;r+=1){let i=n[r];e[i]=t[i]}}return e}e(o,`extend`);function s(e,t){let n=``;for(let r=0;r<t;r+=1)n+=e;return n}e(s,`repeat`);function c(e){return e===0&&1/e==-1/0}return e(c,`isNegativeZero`),i.isNothing=t,i.isObject=n,i.toArray=r,i.repeat=s,i.isNegativeZero=c,i.extend=o,i}e(o,`requireCommon`);var s,c;function l(){if(c)return s;c=1;function t(e,t){let n=``,r=e.reason||`(unknown reason)`;return e.mark?(e.mark.name&&(n+=`in "`+e.mark.name+`" `),n+=`(`+(e.mark.line+1)+`:`+(e.mark.column+1)+`)`,!t&&e.mark.snippet&&(n+=`
|
|
2
|
+
|
|
3
|
+
`+e.mark.snippet),r+` `+n):r}e(t,`formatError`);function n(e,n){Error.call(this),this.name=`YAMLException`,this.reason=e,this.mark=n,this.message=t(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack||``}return e(n,`YAMLException2`),n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n.prototype.toString=e(function(e){return this.name+`: `+t(this,e)},`toString`),s=n,s}e(l,`requireException`);var u,d;function f(){if(d)return u;d=1;let t=o();function n(e,t,n,r,i){let a=``,o=``,s=Math.floor(i/2)-1;return r-t>s&&(a=` ... `,t=r-s+a.length),n-r>s&&(o=` ...`,n=r+s-o.length),{str:a+e.slice(t,n).replace(/\t/g,`→`)+o,pos:r-t+a.length}}e(n,`getLine`);function r(e,n){return t.repeat(` `,n-e.length)+e}e(r,`padStart`);function i(e,i){if(i=Object.create(i||null),!e.buffer)return null;i.maxLength||(i.maxLength=79),typeof i.indent!=`number`&&(i.indent=1),typeof i.linesBefore!=`number`&&(i.linesBefore=3),typeof i.linesAfter!=`number`&&(i.linesAfter=2);let a=/\r?\n|\r|\0/g,o=[0],s=[],c,l=-1;for(;c=a.exec(e.buffer);)s.push(c.index),o.push(c.index+c[0].length),e.position<=c.index&&l<0&&(l=o.length-2);l<0&&(l=o.length-1);let u=``,d=Math.min(e.line+i.linesAfter,s.length).toString().length,f=i.maxLength-(i.indent+d+3);for(let a=1;a<=i.linesBefore&&!(l-a<0);a++){let c=n(e.buffer,o[l-a],s[l-a],e.position-(o[l]-o[l-a]),f);u=t.repeat(` `,i.indent)+r((e.line-a+1).toString(),d)+` | `+c.str+`
|
|
4
|
+
`+u}let p=n(e.buffer,o[l],s[l],e.position,f);u+=t.repeat(` `,i.indent)+r((e.line+1).toString(),d)+` | `+p.str+`
|
|
5
|
+
`,u+=t.repeat(`-`,i.indent+d+3+p.pos)+`^
|
|
6
|
+
`;for(let a=1;a<=i.linesAfter&&!(l+a>=s.length);a++){let c=n(e.buffer,o[l+a],s[l+a],e.position-(o[l]-o[l+a]),f);u+=t.repeat(` `,i.indent)+r((e.line+a+1).toString(),d)+` | `+c.str+`
|
|
7
|
+
`}return u.replace(/\n$/,``)}return e(i,`makeSnippet`),u=i,u}e(f,`requireSnippet`);var p,m;function h(){if(m)return p;m=1;let t=l(),n=[`kind`,`multi`,`resolve`,`construct`,`instanceOf`,`predicate`,`represent`,`representName`,`defaultStyle`,`styleAliases`],r=[`scalar`,`sequence`,`mapping`];function i(e){let t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(e){t[String(e)]=n})}),t}e(i,`compileStyleAliases`);function a(e,a){if(a||={},Object.keys(a).forEach(function(r){if(n.indexOf(r)===-1)throw new t(`Unknown option "`+r+`" is met in definition of "`+e+`" YAML type.`)}),this.options=a,this.tag=e,this.kind=a.kind||null,this.resolve=a.resolve||function(){return!0},this.construct=a.construct||function(e){return e},this.instanceOf=a.instanceOf||null,this.predicate=a.predicate||null,this.represent=a.represent||null,this.representName=a.representName||null,this.defaultStyle=a.defaultStyle||null,this.multi=a.multi||!1,this.styleAliases=i(a.styleAliases||null),r.indexOf(this.kind)===-1)throw new t(`Unknown kind "`+this.kind+`" is specified for "`+e+`" YAML type.`)}return e(a,`Type2`),p=a,p}e(h,`requireType`);var g,_;function v(){if(_)return g;_=1;let t=l(),n=h();function r(e,t){let n=[];return e[t].forEach(function(e){let t=n.length;n.forEach(function(n,r){n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi&&(t=r)}),n[t]=e}),n}e(r,`compileList`);function i(){let t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function n(e){e.multi?(t.multi[e.kind].push(e),t.multi.fallback.push(e)):t[e.kind][e.tag]=t.fallback[e.tag]=e}e(n,`collectType`);for(let e=0,t=arguments.length;e<t;e+=1)arguments[e].forEach(n);return t}e(i,`compileMap`);function a(e){return this.extend(e)}return e(a,`Schema2`),a.prototype.extend=e(function(e){let o=[],s=[];if(e instanceof n)s.push(e);else if(Array.isArray(e))s=s.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(o=o.concat(e.implicit)),e.explicit&&(s=s.concat(e.explicit));else throw new t(`Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })`);o.forEach(function(e){if(!(e instanceof n))throw new t(`Specified list of YAML types (or a single Type object) contains a non-Type object.`);if(e.loadKind&&e.loadKind!==`scalar`)throw new t(`There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.`);if(e.multi)throw new t(`There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.`)}),s.forEach(function(e){if(!(e instanceof n))throw new t(`Specified list of YAML types (or a single Type object) contains a non-Type object.`)});let c=Object.create(a.prototype);return c.implicit=(this.implicit||[]).concat(o),c.explicit=(this.explicit||[]).concat(s),c.compiledImplicit=r(c,`implicit`),c.compiledExplicit=r(c,`explicit`),c.compiledTypeMap=i(c.compiledImplicit,c.compiledExplicit),c},`extend`),g=a,g}e(v,`requireSchema`);var y,b;function x(){return b?y:(b=1,y=new(h())(`tag:yaml.org,2002:str`,{kind:`scalar`,construct:e(function(e){return e===null?``:e},`construct`)}),y)}e(x,`requireStr`);var S,C;function w(){return C?S:(C=1,S=new(h())(`tag:yaml.org,2002:seq`,{kind:`sequence`,construct:e(function(e){return e===null?[]:e},`construct`)}),S)}e(w,`requireSeq`);var T,E;function D(){return E?T:(E=1,T=new(h())(`tag:yaml.org,2002:map`,{kind:`mapping`,construct:e(function(e){return e===null?{}:e},`construct`)}),T)}e(D,`requireMap`);var O,k;function A(){return k?O:(k=1,O=new(v())({explicit:[x(),w(),D()]}),O)}e(A,`requireFailsafe`);var j,M;function N(){if(M)return j;M=1;let t=h();function n(e){if(e===null)return!0;let t=e.length;return t===1&&e===`~`||t===4&&(e===`null`||e===`Null`||e===`NULL`)}e(n,`resolveYamlNull`);function r(){return null}e(r,`constructYamlNull`);function i(e){return e===null}return e(i,`isNull`),j=new t(`tag:yaml.org,2002:null`,{kind:`scalar`,resolve:n,construct:r,predicate:i,represent:{canonical:e(function(){return`~`},`canonical`),lowercase:e(function(){return`null`},`lowercase`),uppercase:e(function(){return`NULL`},`uppercase`),camelcase:e(function(){return`Null`},`camelcase`),empty:e(function(){return``},`empty`)},defaultStyle:`lowercase`}),j}e(N,`require_null`);var P,F;function I(){if(F)return P;F=1;let t=h();function n(e){if(e===null)return!1;let t=e.length;return t===4&&(e===`true`||e===`True`||e===`TRUE`)||t===5&&(e===`false`||e===`False`||e===`FALSE`)}e(n,`resolveYamlBoolean`);function r(e){return e===`true`||e===`True`||e===`TRUE`}e(r,`constructYamlBoolean`);function i(e){return Object.prototype.toString.call(e)===`[object Boolean]`}return e(i,`isBoolean`),P=new t(`tag:yaml.org,2002:bool`,{kind:`scalar`,resolve:n,construct:r,predicate:i,represent:{lowercase:e(function(e){return e?`true`:`false`},`lowercase`),uppercase:e(function(e){return e?`TRUE`:`FALSE`},`uppercase`),camelcase:e(function(e){return e?`True`:`False`},`camelcase`)},defaultStyle:`lowercase`}),P}e(I,`requireBool`);var L,R;function z(){if(R)return L;R=1;let t=o(),n=h();function r(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}e(r,`isHexCode`);function i(e){return e>=48&&e<=55}e(i,`isOctCode`);function a(e){return e>=48&&e<=57}e(a,`isDecCode`);function s(e){if(e===null)return!1;let t=e.length,n=0,o=!1;if(!t)return!1;let s=e[n];if((s===`-`||s===`+`)&&(s=e[++n]),s===`0`){if(n+1===t)return!0;if(s=e[++n],s===`b`){for(n++;n<t;n++){if(s=e[n],s!==`0`&&s!==`1`)return!1;o=!0}return o&&isFinite(c(e))}if(s===`x`){for(n++;n<t;n++){if(!r(e.charCodeAt(n)))return!1;o=!0}return o&&isFinite(c(e))}if(s===`o`){for(n++;n<t;n++){if(!i(e.charCodeAt(n)))return!1;o=!0}return o&&isFinite(c(e))}}for(;n<t;n++){if(!a(e.charCodeAt(n)))return!1;o=!0}return o?isFinite(c(e)):!1}e(s,`resolveYamlInteger`);function c(e){let t=e,n=1,r=t[0];if((r===`-`||r===`+`)&&(r===`-`&&(n=-1),t=t.slice(1),r=t[0]),t===`0`)return 0;if(r===`0`){if(t[1]===`b`)return n*parseInt(t.slice(2),2);if(t[1]===`x`)return n*parseInt(t.slice(2),16);if(t[1]===`o`)return n*parseInt(t.slice(2),8)}return n*parseInt(t,10)}e(c,`parseYamlInteger`);function l(e){return c(e)}e(l,`constructYamlInteger`);function u(e){return Object.prototype.toString.call(e)===`[object Number]`&&e%1==0&&!t.isNegativeZero(e)}return e(u,`isInteger`),L=new n(`tag:yaml.org,2002:int`,{kind:`scalar`,resolve:s,construct:l,predicate:u,represent:{binary:e(function(e){return e>=0?`0b`+e.toString(2):`-0b`+e.toString(2).slice(1)},`binary`),octal:e(function(e){return e>=0?`0o`+e.toString(8):`-0o`+e.toString(8).slice(1)},`octal`),decimal:e(function(e){return e.toString(10)},`decimal`),hexadecimal:e(function(e){return e>=0?`0x`+e.toString(16).toUpperCase():`-0x`+e.toString(16).toUpperCase().slice(1)},`hexadecimal`)},defaultStyle:`decimal`,styleAliases:{binary:[2,`bin`],octal:[8,`oct`],decimal:[10,`dec`],hexadecimal:[16,`hex`]}}),L}e(z,`requireInt`);var B,V;function H(){if(V)return B;V=1;let t=o(),n=h(),r=RegExp(`^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`),i=RegExp(`^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`);function a(e){return e===null||!r.test(e)?!1:isFinite(parseFloat(e,10))?!0:i.test(e)}e(a,`resolveYamlFloat`);function s(e){let t=e.toLowerCase(),n=t[0]===`-`?-1:1;return`+-`.indexOf(t[0])>=0&&(t=t.slice(1)),t===`.inf`?n===1?1/0:-1/0:t===`.nan`?NaN:n*parseFloat(t,10)}e(s,`constructYamlFloat`);let c=/^[-+]?[0-9]+e/;function l(e,n){if(isNaN(e))switch(n){case`lowercase`:return`.nan`;case`uppercase`:return`.NAN`;case`camelcase`:return`.NaN`}else if(e===1/0)switch(n){case`lowercase`:return`.inf`;case`uppercase`:return`.INF`;case`camelcase`:return`.Inf`}else if(e===-1/0)switch(n){case`lowercase`:return`-.inf`;case`uppercase`:return`-.INF`;case`camelcase`:return`-.Inf`}else if(t.isNegativeZero(e))return`-0.0`;let r=e.toString(10);return c.test(r)?r.replace(`e`,`.e`):r}e(l,`representYamlFloat`);function u(e){return Object.prototype.toString.call(e)===`[object Number]`&&(e%1!=0||t.isNegativeZero(e))}return e(u,`isFloat`),B=new n(`tag:yaml.org,2002:float`,{kind:`scalar`,resolve:a,construct:s,predicate:u,represent:l,defaultStyle:`lowercase`}),B}e(H,`requireFloat`);var U,W;function G(){return W||(W=1,U=A().extend({implicit:[N(),I(),z(),H()]})),U}e(G,`requireJson`);var ee,te;function K(){return te||(te=1,ee=G()),ee}e(K,`requireCore`);var q,ne;function J(){if(ne)return q;ne=1;let t=h(),n=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$`),r=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$`);function i(e){return e===null?!1:n.exec(e)!==null||r.exec(e)!==null}e(i,`resolveYamlTimestamp`);function a(e){let t=0,i=null,a=n.exec(e);if(a===null&&(a=r.exec(e)),a===null)throw Error(`Date resolve error`);let o=+a[1],s=a[2]-1,c=+a[3];if(!a[4])return new Date(Date.UTC(o,s,c));let l=+a[4],u=+a[5],d=+a[6];if(a[7]){for(t=a[7].slice(0,3);t.length<3;)t+=`0`;t=+t}if(a[9]){let e=+a[10],t=+(a[11]||0);i=(e*60+t)*6e4,a[9]===`-`&&(i=-i)}let f=new Date(Date.UTC(o,s,c,l,u,d,t));return i&&f.setTime(f.getTime()-i),f}e(a,`constructYamlTimestamp`);function o(e){return e.toISOString()}return e(o,`representYamlTimestamp`),q=new t(`tag:yaml.org,2002:timestamp`,{kind:`scalar`,resolve:i,construct:a,instanceOf:Date,represent:o}),q}e(J,`requireTimestamp`);var Y,re;function X(){if(re)return Y;re=1;let t=h();function n(e){return e===`<<`||e===null}return e(n,`resolveYamlMerge`),Y=new t(`tag:yaml.org,2002:merge`,{kind:`scalar`,resolve:n}),Y}e(X,`requireMerge`);var Z,ie;function Q(){if(ie)return Z;ie=1;let t=h();function n(e){if(e===null)return!1;let t=0,n=e.length;for(let r=0;r<n;r++){let n=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
8
|
+
\r`.indexOf(e.charAt(r));if(!(n>64)){if(n<0)return!1;t+=6}}return t%8==0}e(n,`resolveYamlBinary`);function r(e){let t=e.replace(/[\r\n=]/g,``),n=t.length,r=0,i=[];for(let e=0;e<n;e++)e%4==0&&e&&(i.push(r>>16&255),i.push(r>>8&255),i.push(r&255)),r=r<<6|`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
9
|
+
\r`.indexOf(t.charAt(e));let a=n%4*6;return a===0?(i.push(r>>16&255),i.push(r>>8&255),i.push(r&255)):a===18?(i.push(r>>10&255),i.push(r>>2&255)):a===12&&i.push(r>>4&255),new Uint8Array(i)}e(r,`constructYamlBinary`);function i(e){let t=``,n=0,r=e.length,i=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
10
|
+
\r`;for(let a=0;a<r;a++)a%3==0&&a&&(t+=i[n>>18&63],t+=i[n>>12&63],t+=i[n>>6&63],t+=i[n&63]),n=(n<<8)+e[a];let a=r%3;return a===0?(t+=i[n>>18&63],t+=i[n>>12&63],t+=i[n>>6&63],t+=i[n&63]):a===2?(t+=i[n>>10&63],t+=i[n>>4&63],t+=i[n<<2&63],t+=i[64]):a===1&&(t+=i[n>>2&63],t+=i[n<<4&63],t+=i[64],t+=i[64]),t}e(i,`representYamlBinary`);function a(e){return Object.prototype.toString.call(e)===`[object Uint8Array]`}return e(a,`isBinary`),Z=new t(`tag:yaml.org,2002:binary`,{kind:`scalar`,resolve:n,construct:r,predicate:a,represent:i}),Z}e(Q,`requireBinary`);var $,ae;function oe(){if(ae)return $;ae=1;let t=h(),n=Object.prototype.hasOwnProperty,r=Object.prototype.toString;function i(e){if(e===null)return!0;let t=[],i=e;for(let e=0,a=i.length;e<a;e+=1){let a=i[e],o=!1;if(r.call(a)!==`[object Object]`)return!1;let s;for(s in a)if(n.call(a,s)){if(!o)o=!0;else return!1}if(!o)return!1;if(t.indexOf(s)===-1)t.push(s);else return!1}return!0}e(i,`resolveYamlOmap`);function a(e){return e===null?[]:e}return e(a,`constructYamlOmap`),$=new t(`tag:yaml.org,2002:omap`,{kind:`sequence`,resolve:i,construct:a}),$}e(oe,`requireOmap`);var se,ce;function le(){if(ce)return se;ce=1;let t=h(),n=Object.prototype.toString;function r(e){if(e===null)return!0;let t=e,r=Array(t.length);for(let e=0,i=t.length;e<i;e+=1){let i=t[e];if(n.call(i)!==`[object Object]`)return!1;let a=Object.keys(i);if(a.length!==1)return!1;r[e]=[a[0],i[a[0]]]}return!0}e(r,`resolveYamlPairs`);function i(e){if(e===null)return[];let t=e,n=Array(t.length);for(let e=0,r=t.length;e<r;e+=1){let r=t[e],i=Object.keys(r);n[e]=[i[0],r[i[0]]]}return n}return e(i,`constructYamlPairs`),se=new t(`tag:yaml.org,2002:pairs`,{kind:`sequence`,resolve:r,construct:i}),se}e(le,`requirePairs`);var ue,de;function fe(){if(de)return ue;de=1;let t=h(),n=Object.prototype.hasOwnProperty;function r(e){if(e===null)return!0;let t=e;for(let e in t)if(n.call(t,e)&&t[e]!==null)return!1;return!0}e(r,`resolveYamlSet`);function i(e){return e===null?{}:e}return e(i,`constructYamlSet`),ue=new t(`tag:yaml.org,2002:set`,{kind:`mapping`,resolve:r,construct:i}),ue}e(fe,`requireSet`);var pe,me;function he(){return me||(me=1,pe=K().extend({implicit:[J(),X()],explicit:[Q(),oe(),le(),fe()]})),pe}e(he,`require_default`);var ge;function _e(){if(ge)return r;ge=1;let t=o(),n=l(),i=f(),a=he(),s=Object.prototype.hasOwnProperty,c=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,u=/[\x85\u2028\u2029]/,d=/[,\[\]{}]/,p=/^(?:!|!!|![0-9A-Za-z-]+!)$/,m=/^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;function h(e){return Object.prototype.toString.call(e)}e(h,`_class`);function g(e){return e===10||e===13}e(g,`isEol`);function _(e){return e===9||e===32}e(_,`isWhiteSpace`);function v(e){return e===9||e===32||e===10||e===13}e(v,`isWsOrEol`);function y(e){return e===44||e===91||e===93||e===123||e===125}e(y,`isFlowIndicator`);function b(e){if(e>=48&&e<=57)return e-48;let t=e|32;return t>=97&&t<=102?t-97+10:-1}e(b,`fromHexCode`);function x(e){return e===120?2:e===117?4:e===85?8:0}e(x,`escapedHexLen`);function S(e){return e>=48&&e<=57?e-48:-1}e(S,`fromDecimalCode`);function C(e){switch(e){case 48:return`\0`;case 97:return`\x07`;case 98:return`\b`;case 116:return` `;case 9:return` `;case 110:return`
|
|
11
|
+
`;case 118:return`\v`;case 102:return`\f`;case 114:return`\r`;case 101:return`\x1B`;case 32:return` `;case 34:return`"`;case 47:return`/`;case 92:return`\\`;case 78:return`
`;case 95:return`\xA0`;case 76:return`\u2028`;case 80:return`\u2029`;default:return``}}e(C,`simpleEscapeSequence`);function w(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}e(w,`charFromCodepoint`);function T(e,t,n){t===`__proto__`?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:n}):e[t]=n}e(T,`setProperty`);let E=Array(256),D=Array(256);for(let e=0;e<256;e++)E[e]=+!!C(e),D[e]=C(e);function O(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||a,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.maxDepth=typeof t.maxDepth==`number`?t.maxDepth:100,this.maxTotalMergeKeys=typeof t.maxTotalMergeKeys==`number`?t.maxTotalMergeKeys:1e4,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.depth=0,this.totalMergeKeys=0,this.firstTabInLine=-1,this.documents=[],this.anchorMapTransactions=[]}e(O,`State`);function k(e,t){let r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=i(r),new n(t,r)}e(k,`generateError`);function A(e,t){throw k(e,t)}e(A,`throwError`);function j(e,t){e.onWarning&&e.onWarning.call(null,k(e,t))}e(j,`throwWarning`);function M(e,t,n){let r=e.anchorMapTransactions;if(r.length!==0){let n=r[r.length-1];s.call(n,t)||(n[t]={existed:s.call(e.anchorMap,t),value:e.anchorMap[t]})}e.anchorMap[t]=n}e(M,`storeAnchor`);function N(e){e.anchorMapTransactions.push(Object.create(null))}e(N,`beginAnchorTransaction`);function P(e){let t=e.anchorMapTransactions.pop(),n=e.anchorMapTransactions;if(n.length===0)return;let r=n[n.length-1],i=Object.keys(t);for(let e=0,n=i.length;e<n;e+=1){let n=i[e];s.call(r,n)||(r[n]=t[n])}}e(P,`commitAnchorTransaction`);function F(e){let t=e.anchorMapTransactions.pop(),n=Object.keys(t);for(let r=n.length-1;r>=0;--r){let i=t[n[r]];i.existed?e.anchorMap[n[r]]=i.value:delete e.anchorMap[n[r]]}}e(F,`rollbackAnchorTransaction`);function I(e){return{position:e.position,line:e.line,lineStart:e.lineStart,lineIndent:e.lineIndent,firstTabInLine:e.firstTabInLine,tag:e.tag,anchor:e.anchor,kind:e.kind,result:e.result}}e(I,`snapshotState`);function L(e,t){e.position=t.position,e.line=t.line,e.lineStart=t.lineStart,e.lineIndent=t.lineIndent,e.firstTabInLine=t.firstTabInLine,e.tag=t.tag,e.anchor=t.anchor,e.kind=t.kind,e.result=t.result}e(L,`restoreState`);let R={YAML:e(function(e,t,n){e.version!==null&&A(e,`duplication of %YAML directive`),n.length!==1&&A(e,`YAML directive accepts exactly one argument`);let r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]);r===null&&A(e,`ill-formed argument of the YAML directive`);let i=parseInt(r[1],10),a=parseInt(r[2],10);i!==1&&A(e,`unacceptable YAML version of the document`),e.version=n[0],e.checkLineBreaks=a<2,a!==1&&a!==2&&j(e,`unsupported YAML version of the document`)},`handleYamlDirective`),TAG:e(function(e,t,n){let r;n.length!==2&&A(e,`TAG directive accepts exactly two arguments`);let i=n[0];r=n[1],p.test(i)||A(e,`ill-formed tag handle (first argument) of the TAG directive`),s.call(e.tagMap,i)&&A(e,`there is a previously declared suffix for "`+i+`" tag handle`),m.test(r)||A(e,`ill-formed tag prefix (second argument) of the TAG directive`);try{r=decodeURIComponent(r)}catch{A(e,`tag prefix is malformed: `+r)}e.tagMap[i]=r},`handleTagDirective`)};function z(e,t,n,r){if(t<n){let i=e.input.slice(t,n);if(r)for(let t=0,n=i.length;t<n;t+=1){let n=i.charCodeAt(t);n===9||n>=32&&n<=1114111||A(e,`expected valid JSON character`)}else c.test(i)&&A(e,`the stream contains non-printable characters`);e.result+=i}}e(z,`captureSegment`);function B(e,n,r,i){t.isObject(r)||A(e,`cannot merge mappings; the provided source object is unacceptable`);let a=Object.keys(r);for(let t=0,o=a.length;t<o;t+=1){let o=a[t];e.maxTotalMergeKeys!==-1&&++e.totalMergeKeys>e.maxTotalMergeKeys&&A(e,`merge keys exceeded maxTotalMergeKeys (`+e.maxTotalMergeKeys+`)`),s.call(n,o)||(T(n,o,r[o]),i[o]=!0)}}e(B,`mergeMappings`);function V(e,t,n,r,i,a,o,c,l){if(Array.isArray(i)){i=Array.prototype.slice.call(i);for(let t=0,n=i.length;t<n;t+=1)Array.isArray(i[t])&&A(e,`nested arrays are not supported inside keys`),typeof i==`object`&&h(i[t])===`[object Object]`&&(i[t]=`[object Object]`)}if(typeof i==`object`&&h(i)===`[object Object]`&&(i=`[object Object]`),i=String(i),t===null&&(t={}),r===`tag:yaml.org,2002:merge`){if(Array.isArray(a))for(let r=0,i=a.length;r<i;r+=1)B(e,t,a[r],n);else B(e,t,a,n)}else!e.json&&!s.call(n,i)&&s.call(t,i)&&(e.line=o||e.line,e.lineStart=c||e.lineStart,e.position=l||e.position,A(e,`duplicated mapping key`)),T(t,i,a),delete n[i];return t}e(V,`storeMappingPair`);function H(e){let t=e.input.charCodeAt(e.position);t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):A(e,`a line break is expected`),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}e(H,`readLineBreak`);function U(e,t,n){let r=0,i=e.input.charCodeAt(e.position);for(;i!==0;){for(;_(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(g(i))for(H(e),i=e.input.charCodeAt(e.position),r++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return n!==-1&&r!==0&&e.lineIndent<n&&j(e,`deficient indentation`),r}e(U,`skipSeparationSpace`);function W(e){let t=e.position,n=e.input.charCodeAt(t);return!!((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)&&(t+=3,n=e.input.charCodeAt(t),n===0||v(n)))}e(W,`testDocumentSeparator`);function G(e,n){n===1?e.result+=` `:n>1&&(e.result+=t.repeat(`
|
|
12
|
+
`,n-1))}e(G,`writeFoldedLines`);function ee(e,t,n){let r,i,a,o,s,c,l=e.kind,u=e.result,d=e.input.charCodeAt(e.position);if(v(d)||y(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96)return!1;if(d===63||d===45){let t=e.input.charCodeAt(e.position+1);if(v(t)||n&&y(t))return!1}for(e.kind=`scalar`,e.result=``,r=i=e.position,a=!1;d!==0;){if(d===58){let t=e.input.charCodeAt(e.position+1);if(v(t)||n&&y(t))break}else if(d===35){if(v(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&W(e)||n&&y(d))break;if(g(d)){if(o=e.line,s=e.lineStart,c=e.lineIndent,U(e,!1,-1),e.lineIndent>=t){a=!0,d=e.input.charCodeAt(e.position);continue}e.position=i,e.line=o,e.lineStart=s,e.lineIndent=c;break}}a&&=(z(e,r,i,!1),G(e,e.line-o),r=i=e.position,!1),_(d)||(i=e.position+1),d=e.input.charCodeAt(++e.position)}return z(e,r,i,!1),e.result?!0:(e.kind=l,e.result=u,!1)}e(ee,`readPlainScalar`);function te(e,t){let n,r,i=e.input.charCodeAt(e.position);if(i!==39)return!1;for(e.kind=`scalar`,e.result=``,e.position++,n=r=e.position;(i=e.input.charCodeAt(e.position))!==0;)if(i===39){if(z(e,n,e.position,!0),i=e.input.charCodeAt(++e.position),i===39)n=e.position,e.position++,r=e.position;else return!0}else g(i)?(z(e,n,r,!0),G(e,U(e,!1,t)),n=r=e.position):e.position===e.lineStart&&W(e)?A(e,`unexpected end of the document within a single quoted scalar`):(e.position++,_(i)||(r=e.position));A(e,`unexpected end of the stream within a single quoted scalar`)}e(te,`readSingleQuotedScalar`);function K(e,t){let n,r,i,a=e.input.charCodeAt(e.position);if(a!==34)return!1;for(e.kind=`scalar`,e.result=``,e.position++,n=r=e.position;(a=e.input.charCodeAt(e.position))!==0;){if(a===34)return z(e,n,e.position,!0),e.position++,!0;if(a===92){if(z(e,n,e.position,!0),a=e.input.charCodeAt(++e.position),g(a))U(e,!1,t);else if(a<256&&E[a])e.result+=D[a],e.position++;else if((i=x(a))>0){let t=i,n=0;for(;t>0;t--)a=e.input.charCodeAt(++e.position),(i=b(a))>=0?n=(n<<4)+i:A(e,`expected hexadecimal character`);e.result+=w(n),e.position++}else A(e,`unknown escape sequence`);n=r=e.position}else g(a)?(z(e,n,r,!0),G(e,U(e,!1,t)),n=r=e.position):e.position===e.lineStart&&W(e)?A(e,`unexpected end of the document within a double quoted scalar`):(e.position++,_(a)||(r=e.position))}A(e,`unexpected end of the stream within a double quoted scalar`)}e(K,`readDoubleQuotedScalar`);function q(e,t){let n=!0,r,i,a,o=e.tag,s,c=e.anchor,l,u,d,f,p=Object.create(null),m,h,g,_=e.input.charCodeAt(e.position);if(_===91)l=93,f=!1,s=[];else if(_===123)l=125,f=!0,s={};else return!1;for(e.anchor!==null&&M(e,e.anchor,s),_=e.input.charCodeAt(++e.position);_!==0;){if(U(e,!0,t),_=e.input.charCodeAt(e.position),_===l)return e.position++,e.tag=o,e.anchor=c,e.kind=f?`mapping`:`sequence`,e.result=s,!0;n?_===44&&A(e,`expected the node content, but found ','`):A(e,`missed comma between flow collection entries`),h=m=g=null,u=d=!1,_===63&&v(e.input.charCodeAt(e.position+1))&&(u=d=!0,e.position++,U(e,!0,t)),r=e.line,i=e.lineStart,a=e.position,Q(e,t,1,!1,!0),h=e.tag,m=e.result,U(e,!0,t),_=e.input.charCodeAt(e.position),(d||e.line===r)&&_===58&&(u=!0,_=e.input.charCodeAt(++e.position),U(e,!0,t),Q(e,t,1,!1,!0),g=e.result),f?V(e,s,p,h,m,g,r,i,a):u?s.push(V(e,null,p,h,m,g,r,i,a)):s.push(m),U(e,!0,t),_=e.input.charCodeAt(e.position),_===44?(n=!0,_=e.input.charCodeAt(++e.position)):n=!1}A(e,`unexpected end of the stream within a flow collection`)}e(q,`readFlowCollection`);function ne(e,n){let r,i=1,a=!1,o=!1,s=n,c=0,l=!1,u,d=e.input.charCodeAt(e.position);if(d===124)r=!1;else if(d===62)r=!0;else return!1;for(e.kind=`scalar`,e.result=``;d!==0;)if(d=e.input.charCodeAt(++e.position),d===43||d===45)i===1?i=d===43?3:2:A(e,`repeat of a chomping mode identifier`);else if((u=S(d))>=0)u===0?A(e,`bad explicit indentation width of a block scalar; it cannot be less than one`):o?A(e,`repeat of an indentation width identifier`):(s=n+u-1,o=!0);else break;if(_(d)){do d=e.input.charCodeAt(++e.position);while(_(d));if(d===35)do d=e.input.charCodeAt(++e.position);while(!g(d)&&d!==0)}for(;d!==0;){for(H(e),e.lineIndent=0,d=e.input.charCodeAt(e.position);(!o||e.lineIndent<s)&&d===32;)e.lineIndent++,d=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>s&&(s=e.lineIndent),g(d)){c++;continue}if(!o&&s===0&&A(e,`missing indentation for block scalar`),e.lineIndent<s){i===3?e.result+=t.repeat(`
|
|
13
|
+
`,a?1+c:c):i===1&&a&&(e.result+=`
|
|
14
|
+
`);break}r?_(d)?(l=!0,e.result+=t.repeat(`
|
|
15
|
+
`,a?1+c:c)):l?(l=!1,e.result+=t.repeat(`
|
|
16
|
+
`,c+1)):c===0?a&&(e.result+=` `):e.result+=t.repeat(`
|
|
17
|
+
`,c):e.result+=t.repeat(`
|
|
18
|
+
`,a?1+c:c),a=!0,o=!0,c=0;let n=e.position;for(;!g(d)&&d!==0;)d=e.input.charCodeAt(++e.position);z(e,n,e.position,!1)}return!0}e(ne,`readBlockScalar`);function J(e,t){let n=e.tag,r=e.anchor,i=[],a=!1;if(e.firstTabInLine!==-1)return!1;e.anchor!==null&&M(e,e.anchor,i);let o=e.input.charCodeAt(e.position);for(;o!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,A(e,`tab characters must not be used in indentation`)),o===45)&&v(e.input.charCodeAt(e.position+1));){if(a=!0,e.position++,U(e,!0,-1)&&e.lineIndent<=t){i.push(null),o=e.input.charCodeAt(e.position);continue}let n=e.line;if(Q(e,t,3,!1,!0),i.push(e.result),U(e,!0,-1),o=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&o!==0)A(e,`bad indentation of a sequence entry`);else if(e.lineIndent<t)break}return a?(e.tag=n,e.anchor=r,e.kind=`sequence`,e.result=i,!0):!1}e(J,`readBlockSequence`);function Y(e,t,n){let r,i,a,o,s=e.tag,c=e.anchor,l={},u=Object.create(null),d=null,f=null,p=null,m=!1,h=!1;if(e.firstTabInLine!==-1)return!1;e.anchor!==null&&M(e,e.anchor,l);let g=e.input.charCodeAt(e.position);for(;g!==0;){!m&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,A(e,`tab characters must not be used in indentation`));let y=e.input.charCodeAt(e.position+1),b=e.line;if((g===63||g===58)&&v(y))g===63?(m&&(V(e,l,u,d,f,null,i,a,o),d=f=p=null),h=!0,m=!0,r=!0):m?(m=!1,r=!0):A(e,`incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line`),e.position+=1,g=y;else{if(i=e.line,a=e.lineStart,o=e.position,!Q(e,n,2,!1,!0))break;if(e.line===b){for(g=e.input.charCodeAt(e.position);_(g);)g=e.input.charCodeAt(++e.position);if(g===58)g=e.input.charCodeAt(++e.position),v(g)||A(e,`a whitespace character is expected after the key-value separator within a block mapping`),m&&(V(e,l,u,d,f,null,i,a,o),d=f=p=null),h=!0,m=!1,r=!1,d=e.tag,f=e.result;else if(h)A(e,`can not read an implicit mapping pair; a colon is missed`);else return e.tag=s,e.anchor=c,!0}else if(h)A(e,`can not read a block mapping entry; a multiline key may not be an implicit key`);else return e.tag=s,e.anchor=c,!0}if((e.line===b||e.lineIndent>t)&&(m&&(i=e.line,a=e.lineStart,o=e.position),Q(e,t,4,!0,r)&&(m?f=e.result:p=e.result),m||(V(e,l,u,d,f,p,i,a,o),d=f=p=null),U(e,!0,-1),g=e.input.charCodeAt(e.position)),(e.line===b||e.lineIndent>t)&&g!==0)A(e,`bad indentation of a mapping entry`);else if(e.lineIndent<t)break}return m&&V(e,l,u,d,f,null,i,a,o),h&&(e.tag=s,e.anchor=c,e.kind=`mapping`,e.result=l),h}e(Y,`readBlockMapping`);function re(e){let t=!1,n=!1,r,i,a=e.input.charCodeAt(e.position);if(a!==33)return!1;e.tag!==null&&A(e,`duplication of a tag property`),a=e.input.charCodeAt(++e.position),a===60?(t=!0,a=e.input.charCodeAt(++e.position)):a===33?(n=!0,r=`!!`,a=e.input.charCodeAt(++e.position)):r=`!`;let o=e.position;if(t){do a=e.input.charCodeAt(++e.position);while(a!==0&&a!==62);e.position<e.length?(i=e.input.slice(o,e.position),a=e.input.charCodeAt(++e.position)):A(e,`unexpected end of the stream within a verbatim tag`)}else{for(;a!==0&&!v(a);)a===33&&(n?A(e,`tag suffix cannot contain exclamation marks`):(r=e.input.slice(o-1,e.position+1),p.test(r)||A(e,`named tag handle cannot contain such characters`),n=!0,o=e.position+1)),a=e.input.charCodeAt(++e.position);i=e.input.slice(o,e.position),d.test(i)&&A(e,`tag suffix cannot contain flow indicator characters`)}i&&!m.test(i)&&A(e,`tag name cannot contain such characters: `+i);try{i=decodeURIComponent(i)}catch{A(e,`tag name is malformed: `+i)}return t?e.tag=i:s.call(e.tagMap,r)?e.tag=e.tagMap[r]+i:r===`!`?e.tag=`!`+i:r===`!!`?e.tag=`tag:yaml.org,2002:`+i:A(e,`undeclared tag handle "`+r+`"`),!0}e(re,`readTagProperty`);function X(e){let t=e.input.charCodeAt(e.position);if(t!==38)return!1;e.anchor!==null&&A(e,`duplication of an anchor property`),t=e.input.charCodeAt(++e.position);let n=e.position;for(;t!==0&&!v(t)&&!y(t);)t=e.input.charCodeAt(++e.position);return e.position===n&&A(e,`name of an anchor node must contain at least one character`),e.anchor=e.input.slice(n,e.position),!0}e(X,`readAnchorProperty`);function Z(e){let t=e.input.charCodeAt(e.position);if(t!==42)return!1;t=e.input.charCodeAt(++e.position);let n=e.position;for(;t!==0&&!v(t)&&!y(t);)t=e.input.charCodeAt(++e.position);e.position===n&&A(e,`name of an alias node must contain at least one character`);let r=e.input.slice(n,e.position);return s.call(e.anchorMap,r)||A(e,`unidentified alias "`+r+`"`),e.result=e.anchorMap[r],U(e,!0,-1),!0}e(Z,`readAlias`);function ie(e,t,n,r){let i=I(e);return N(e),L(e,t),e.tag=null,e.anchor=null,e.kind=null,e.result=null,Y(e,n,r)&&e.kind===`mapping`?(P(e),!0):(F(e),L(e,i),!1)}e(ie,`tryReadBlockMappingFromProperty`);function Q(e,t,n,r,i){let a,o,c=1,l=!1,u=!1,d=null,f,p,m;e.depth>=e.maxDepth&&A(e,`nesting exceeded maxDepth (`+e.maxDepth+`)`),e.depth+=1,e.listener!==null&&e.listener(`open`,e),e.tag=null,e.anchor=null,e.kind=null,e.result=null;let h=a=o=n===4||n===3;if(r&&U(e,!0,-1)&&(l=!0,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)),c===1)for(;;){let n=e.input.charCodeAt(e.position),r=I(e);if(l&&(n===33&&e.tag!==null||n===38&&e.anchor!==null)||!re(e)&&!X(e))break;d===null&&(d=r),U(e,!0,-1)?(l=!0,o=h,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)):o=!1}if(o&&=l||i,c===1||n===4){if(p=n===1||n===2?t:t+1,m=e.position-e.lineStart,c===1){if(o&&(J(e,m)||Y(e,m,p))||q(e,p))u=!0;else{let t=e.input.charCodeAt(e.position);d!==null&&h&&!o&&t!==124&&t!==62&&ie(e,d,d.position-d.lineStart,p)||a&&ne(e,p)||te(e,p)||K(e,p)?u=!0:Z(e)?(u=!0,(e.tag!==null||e.anchor!==null)&&A(e,`alias node should not have any properties`)):ee(e,p,n===1)&&(u=!0,e.tag===null&&(e.tag=`?`)),e.anchor!==null&&M(e,e.anchor,e.result)}}else c===0&&(u=o&&J(e,m))}if(e.tag===null)e.anchor!==null&&M(e,e.anchor,e.result);else if(e.tag===`?`){e.result!==null&&e.kind!==`scalar`&&A(e,`unacceptable node kind for !<?> tag; it should be "scalar", not "`+e.kind+`"`);for(let t=0,n=e.implicitTypes.length;t<n;t+=1)if(f=e.implicitTypes[t],f.resolve(e.result)){e.result=f.construct(e.result),e.tag=f.tag,e.anchor!==null&&M(e,e.anchor,e.result);break}}else if(e.tag!==`!`){if(s.call(e.typeMap[e.kind||`fallback`],e.tag))f=e.typeMap[e.kind||`fallback`][e.tag];else{f=null;let t=e.typeMap.multi[e.kind||`fallback`];for(let n=0,r=t.length;n<r;n+=1)if(e.tag.slice(0,t[n].tag.length)===t[n].tag){f=t[n];break}}f||A(e,`unknown tag !<`+e.tag+`>`),e.result!==null&&f.kind!==e.kind&&A(e,`unacceptable node kind for !<`+e.tag+`> tag; it should be "`+f.kind+`", not "`+e.kind+`"`),f.resolve(e.result,e.tag)?(e.result=f.construct(e.result,e.tag),e.anchor!==null&&M(e,e.anchor,e.result)):A(e,`cannot resolve a node with !<`+e.tag+`> explicit tag`)}return e.listener!==null&&e.listener(`close`,e),--e.depth,e.tag!==null||e.anchor!==null||u}e(Q,`composeNode`);function $(e){let t=e.position,n=!1,r;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(r=e.input.charCodeAt(e.position))!==0&&(U(e,!0,-1),r=e.input.charCodeAt(e.position),!(e.lineIndent>0||r!==37));){n=!0,r=e.input.charCodeAt(++e.position);let t=e.position;for(;r!==0&&!v(r);)r=e.input.charCodeAt(++e.position);let i=e.input.slice(t,e.position),a=[];for(i.length<1&&A(e,`directive name must not be less than one character in length`);r!==0;){for(;_(r);)r=e.input.charCodeAt(++e.position);if(r===35){do r=e.input.charCodeAt(++e.position);while(r!==0&&!g(r));break}if(g(r))break;for(t=e.position;r!==0&&!v(r);)r=e.input.charCodeAt(++e.position);a.push(e.input.slice(t,e.position))}r!==0&&H(e),s.call(R,i)?R[i](e,i,a):j(e,`unknown document directive "`+i+`"`)}if(U(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,U(e,!0,-1)):n&&A(e,`directives end mark is expected`),Q(e,e.lineIndent-1,4,!1,!0),U(e,!0,-1),e.checkLineBreaks&&u.test(e.input.slice(t,e.position))&&j(e,`non-ASCII line breaks are interpreted as content`),e.documents.push(e.result),e.position===e.lineStart&&W(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,U(e,!0,-1));return}e.position<e.length-1&&A(e,`end of the stream or a document separator is expected`)}e($,`readDocument`);function ae(e,t){e=String(e),t||={},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
|
|
19
|
+
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));let n=new O(e,t),r=e.indexOf(`\0`);for(r!==-1&&(n.position=r,A(n,`null byte is not allowed in input`)),n.input+=`\0`;n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)$(n);return n.documents}e(ae,`loadDocuments`);function oe(e,t,n){typeof t==`object`&&t&&typeof n>`u`&&(n=t,t=null);let r=ae(e,n);if(typeof t!=`function`)return r;for(let e=0,n=r.length;e<n;e+=1)t(r[e])}e(oe,`loadAll2`);function se(e,t){let r=ae(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new n(`expected a single document in the stream, but found more`)}}return e(se,`load2`),r.loadAll=oe,r.load=se,r}e(_e,`requireLoader`);var ve={},ye;function be(){if(ye)return ve;ye=1;let t=o(),n=l(),r=he(),i=Object.prototype.toString,a=Object.prototype.hasOwnProperty,s=65279,c={};c[0]=`\\0`,c[7]=`\\a`,c[8]=`\\b`,c[9]=`\\t`,c[10]=`\\n`,c[11]=`\\v`,c[12]=`\\f`,c[13]=`\\r`,c[27]=`\\e`,c[34]=`\\"`,c[92]=`\\\\`,c[133]=`\\N`,c[160]=`\\_`,c[8232]=`\\L`,c[8233]=`\\P`;let u=[`y`,`Y`,`yes`,`Yes`,`YES`,`on`,`On`,`ON`,`n`,`N`,`no`,`No`,`NO`,`off`,`Off`,`OFF`],d=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function f(e,t){if(t===null)return{};let n={},r=Object.keys(t);for(let i=0,o=r.length;i<o;i+=1){let o=r[i],s=String(t[o]);o.slice(0,2)===`!!`&&(o=`tag:yaml.org,2002:`+o.slice(2));let c=e.compiledTypeMap.fallback[o];c&&a.call(c.styleAliases,s)&&(s=c.styleAliases[s]),n[o]=s}return n}e(f,`compileStyleMap`);function p(e){let r,i,a=e.toString(16).toUpperCase();if(e<=255)r=`x`,i=2;else if(e<=65535)r=`u`,i=4;else if(e<=4294967295)r=`U`,i=8;else throw new n(`code point within a string may not be greater than 0xFFFFFFFF`);return`\\`+r+t.repeat(`0`,i-a.length)+a}e(p,`encodeHex`);function m(e){this.schema=e.schema||r,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=t.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=f(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType===`"`?2:1,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer==`function`?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result=``,this.duplicates=[],this.usedDuplicates=null}e(m,`State`);function h(e,n){let r=t.repeat(` `,n),i=0,a=``,o=e.length;for(;i<o;){let t,n=e.indexOf(`
|
|
20
|
+
`,i);n===-1?(t=e.slice(i),i=o):(t=e.slice(i,n+1),i=n+1),t.length&&t!==`
|
|
21
|
+
`&&(a+=r),a+=t}return a}e(h,`indentString`);function g(e,n){return`
|
|
22
|
+
`+t.repeat(` `,e.indent*n)}e(g,`generateNextLine`);function _(e,t){for(let n=0,r=e.implicitTypes.length;n<r;n+=1)if(e.implicitTypes[n].resolve(t))return!0;return!1}e(_,`testImplicitResolving`);function v(e){return e===32||e===9}e(v,`isWhitespace`);function y(e){return e>=32&&e<=126||e>=161&&e<=55295&&e!==8232&&e!==8233||e>=57344&&e<=65533&&e!==s||e>=65536&&e<=1114111}e(y,`isPrintable`);function b(e){return y(e)&&e!==s&&e!==13&&e!==10}e(b,`isNsCharOrWhitespace`);function x(e,t,n){let r=b(e),i=r&&!v(e);return(n?r:r&&e!==44&&e!==91&&e!==93&&e!==123&&e!==125)&&e!==35&&!(t===58&&!i)||b(t)&&!v(t)&&e===35||t===58&&i}e(x,`isPlainSafe`);function S(e){return y(e)&&e!==s&&!v(e)&&e!==45&&e!==63&&e!==58&&e!==44&&e!==91&&e!==93&&e!==123&&e!==125&&e!==35&&e!==38&&e!==42&&e!==33&&e!==124&&e!==61&&e!==62&&e!==39&&e!==34&&e!==37&&e!==64&&e!==96}e(S,`isPlainSafeFirst`);function C(e){return!v(e)&&e!==58}e(C,`isPlainSafeLast`);function w(e,t){let n=e.charCodeAt(t),r;return n>=55296&&n<=56319&&t+1<e.length&&(r=e.charCodeAt(t+1),r>=56320&&r<=57343)?(n-55296)*1024+r-56320+65536:n}e(w,`codePointAt`);function T(e){return/^\n* /.test(e)}e(T,`needIndentIndicator`);function E(e,t,n,r,i,a,o,s){let c,l=0,u=null,d=!1,f=!1,p=r!==-1,m=-1,h=S(w(e,0))&&C(w(e,e.length-1));if(t||o)for(c=0;c<e.length;l>=65536?c+=2:c++){if(l=w(e,c),!y(l))return 5;h&&=x(l,u,s),u=l}else{for(c=0;c<e.length;l>=65536?c+=2:c++){if(l=w(e,c),l===10)d=!0,p&&(f||=c-m-1>r&&e[m+1]!==` `,m=c);else if(!y(l))return 5;h&&=x(l,u,s),u=l}f||=p&&c-m-1>r&&e[m+1]!==` `}return!d&&!f?h&&!o&&!i(e)?1:a===2?5:2:n>9&&T(e)?5:o?a===2?5:2:f?4:3}e(E,`chooseScalarStyle`);function D(t,r,i,a,o){t.dump=(function(){if(r.length===0)return t.quotingType===2?`""`:`''`;if(!t.noCompatMode&&(u.indexOf(r)!==-1||d.test(r)))return t.quotingType===2?`"`+r+`"`:`'`+r+`'`;let s=t.indent*Math.max(1,i),c=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-s),l=a||t.flowLevel>-1&&i>=t.flowLevel;function f(e){return _(t,e)}switch(e(f,`testAmbiguity`),E(r,l,t.indent,c,f,t.quotingType,t.forceQuotes&&!a,o)){case 1:return r;case 2:return`'`+r.replace(/'/g,`''`)+`'`;case 3:return`|`+O(r,t.indent)+k(h(r,s));case 4:return`>`+O(r,t.indent)+k(h(A(r,c),s));case 5:return`"`+M(r)+`"`;default:throw new n(`impossible error: invalid scalar style`)}})()}e(D,`writeScalar`);function O(e,t){let n=T(e)?String(t):``,r=e[e.length-1]===`
|
|
23
|
+
`;return n+(r&&(e[e.length-2]===`
|
|
24
|
+
`||e===`
|
|
25
|
+
`)?`+`:r?``:`-`)+`
|
|
26
|
+
`}e(O,`blockHeader`);function k(e){return e[e.length-1]===`
|
|
27
|
+
`?e.slice(0,-1):e}e(k,`dropEndingNewline`);function A(e,t){let n=/(\n+)([^\n]*)/g,r=(function(){let r=e.indexOf(`
|
|
28
|
+
`);return r=r===-1?e.length:r,n.lastIndex=r,j(e.slice(0,r),t)})(),i=e[0]===`
|
|
29
|
+
`||e[0]===` `,a,o;for(;o=n.exec(e);){let e=o[1],n=o[2];a=n[0]===` `,r+=e+(!i&&!a&&n!==``?`
|
|
30
|
+
`:``)+j(n,t),i=a}return r}e(A,`foldString`);function j(e,t){if(e===``||e[0]===` `)return e;let n=/ [^ ]/g,r,i=0,a,o=0,s=0,c=``;for(;r=n.exec(e);)s=r.index,s-i>t&&(a=o>i?o:s,c+=`
|
|
31
|
+
`+e.slice(i,a),i=a+1),o=s;return c+=`
|
|
32
|
+
`,e.length-i>t&&o>i?c+=e.slice(i,o)+`
|
|
33
|
+
`+e.slice(o+1):c+=e.slice(i),c.slice(1)}e(j,`foldLine`);function M(e){let t=``,n=0;for(let r=0;r<e.length;n>=65536?r+=2:r++){n=w(e,r);let i=c[n];!i&&y(n)?(t+=e[r],n>=65536&&(t+=e[r+1])):t+=i||p(n)}return t}e(M,`escapeString`);function N(e,t,n){let r=``,i=e.tag;for(let i=0,a=n.length;i<a;i+=1){let a=n[i];e.replacer&&(a=e.replacer.call(n,String(i),a)),(R(e,t,a,!1,!1)||typeof a>`u`&&R(e,t,null,!1,!1))&&(r!==``&&(r+=`,`+(e.condenseFlow?``:` `)),r+=e.dump)}e.tag=i,e.dump=`[`+r+`]`}e(N,`writeFlowSequence`);function P(e,t,n,r){let i=``,a=e.tag;for(let a=0,o=n.length;a<o;a+=1){let o=n[a];e.replacer&&(o=e.replacer.call(n,String(a),o)),(R(e,t+1,o,!0,!0,!1,!0)||typeof o>`u`&&R(e,t+1,null,!0,!0,!1,!0))&&((!r||i!==``)&&(i+=g(e,t)),e.dump&&e.dump.charCodeAt(0)===10?i+=`-`:i+=`- `,i+=e.dump)}e.tag=a,e.dump=i||`[]`}e(P,`writeBlockSequence`);function F(e,t,n){let r=``,i=e.tag,a=Object.keys(n);for(let i=0,o=a.length;i<o;i+=1){let o=``;r!==``&&(o+=`, `),e.condenseFlow&&(o+=`"`);let s=a[i],c=n[s];e.replacer&&(c=e.replacer.call(n,s,c)),R(e,t,s,!1,!1)&&(e.dump.length>1024&&(o+=`? `),o+=e.dump+(e.condenseFlow?`"`:``)+`:`+(e.condenseFlow?``:` `),R(e,t,c,!1,!1)&&(o+=e.dump,r+=o))}e.tag=i,e.dump=`{`+r+`}`}e(F,`writeFlowMapping`);function I(e,t,r,i){let a=``,o=e.tag,s=Object.keys(r);if(e.sortKeys===!0)s.sort();else if(typeof e.sortKeys==`function`)s.sort(e.sortKeys);else if(e.sortKeys)throw new n(`sortKeys must be a boolean or a function`);for(let n=0,o=s.length;n<o;n+=1){let o=``;(!i||a!==``)&&(o+=g(e,t));let c=s[n],l=r[c];if(e.replacer&&(l=e.replacer.call(r,c,l)),!R(e,t+1,c,!0,!0,!0))continue;let u=e.tag!==null&&e.tag!==`?`||e.dump&&e.dump.length>1024;u&&(e.dump&&e.dump.charCodeAt(0)===10?o+=`?`:o+=`? `),o+=e.dump,u&&(o+=g(e,t)),R(e,t+1,l,!0,u)&&(e.dump&&e.dump.charCodeAt(0)===10?o+=`:`:o+=`: `,o+=e.dump,a+=o)}e.tag=o,e.dump=a||`{}`}e(I,`writeBlockMapping`);function L(e,t,r){let o=r?e.explicitTypes:e.implicitTypes;for(let s=0,c=o.length;s<c;s+=1){let c=o[s];if((c.instanceOf||c.predicate)&&(!c.instanceOf||typeof t==`object`&&t instanceof c.instanceOf)&&(!c.predicate||c.predicate(t))){if(e.tag=r?c.multi&&c.representName?c.representName(t):c.tag:`?`,c.represent){let r=e.styleMap[c.tag]||c.defaultStyle,o;if(i.call(c.represent)===`[object Function]`)o=c.represent(t,r);else if(a.call(c.represent,r))o=c.represent[r](t,r);else throw new n(`!<`+c.tag+`> tag resolver accepts not "`+r+`" style`);e.dump=o}return!0}}return!1}e(L,`detectType`);function R(e,t,r,a,o,s,c){e.tag=null,e.dump=r,L(e,r,!1)||L(e,r,!0);let l=i.call(e.dump),u=a;a&&=e.flowLevel<0||e.flowLevel>t;let d=l===`[object Object]`||l===`[object Array]`,f,p;if(d&&(f=e.duplicates.indexOf(r),p=f!==-1),(e.tag!==null&&e.tag!==`?`||p||e.indent!==2&&t>0)&&(o=!1),p&&e.usedDuplicates[f])e.dump=`*ref_`+f;else{if(d&&p&&!e.usedDuplicates[f]&&(e.usedDuplicates[f]=!0),l===`[object Object]`)a&&Object.keys(e.dump).length!==0?(I(e,t,e.dump,o),p&&(e.dump=`&ref_`+f+e.dump)):(F(e,t,e.dump),p&&(e.dump=`&ref_`+f+` `+e.dump));else if(l===`[object Array]`)a&&e.dump.length!==0?(e.noArrayIndent&&!c&&t>0?P(e,t-1,e.dump,o):P(e,t,e.dump,o),p&&(e.dump=`&ref_`+f+e.dump)):(N(e,t,e.dump),p&&(e.dump=`&ref_`+f+` `+e.dump));else if(l===`[object String]`)e.tag!==`?`&&D(e,e.dump,t,s,u);else{if(l===`[object Undefined]`||e.skipInvalid)return!1;throw new n(`unacceptable kind of an object to dump `+l)}if(e.tag!==null&&e.tag!==`?`){let t=encodeURI(e.tag[0]===`!`?e.tag.slice(1):e.tag).replace(/!/g,`%21`);t=e.tag[0]===`!`?`!`+t:t.slice(0,18)===`tag:yaml.org,2002:`?`!!`+t.slice(18):`!<`+t+`>`,e.dump=t+` `+e.dump}}return!0}e(R,`writeNode`);function z(e,t){let n=[],r=[];B(e,n,r);let i=r.length;for(let e=0;e<i;e+=1)t.duplicates.push(n[r[e]]);t.usedDuplicates=Array(i)}e(z,`getDuplicateReferences`);function B(e,t,n){if(typeof e==`object`&&e){let r=t.indexOf(e);if(r!==-1)n.indexOf(r)===-1&&n.push(r);else if(t.push(e),Array.isArray(e))for(let r=0,i=e.length;r<i;r+=1)B(e[r],t,n);else{let r=Object.keys(e);for(let i=0,a=r.length;i<a;i+=1)B(e[r[i]],t,n)}}}e(B,`inspectNode`);function V(e,t){t||={};let n=new m(t);n.noRefs||z(e,n);let r=e;return n.replacer&&(r=n.replacer.call({"":r},``,r)),R(n,0,r,!0,!0)?n.dump+`
|
|
34
|
+
`:``}return e(V,`dump2`),ve.dump=V,ve}e(be,`requireDumper`);var xe;function Se(){if(xe)return n;xe=1;let t=_e(),r=be();function i(e,t){return function(){throw Error(`Function yaml.`+e+` is removed in js-yaml 4. Use yaml.`+t+` instead, which is now safe by default.`)}}return e(i,`renamed`),n.Type=h(),n.Schema=v(),n.FAILSAFE_SCHEMA=A(),n.JSON_SCHEMA=G(),n.CORE_SCHEMA=K(),n.DEFAULT_SCHEMA=he(),n.load=t.load,n.loadAll=t.loadAll,n.dump=r.dump,n.YAMLException=l(),n.types={binary:Q(),float:H(),map:D(),null:N(),pairs:le(),set:fe(),timestamp:J(),bool:I(),int:z(),merge:X(),omap:oe(),seq:w(),str:x()},n.safeLoad=i(`safeLoad`,`load`),n.safeLoadAll=i(`safeLoadAll`,`loadAll`),n.safeDump=i(`safeDump`,`dump`),n}e(Se,`requireJsYaml`);var{Type:Ce,Schema:we,FAILSAFE_SCHEMA:Te,JSON_SCHEMA:Ee,CORE_SCHEMA:De,DEFAULT_SCHEMA:Oe,load:ke,loadAll:Ae,dump:je,YAMLException:Me,types:Ne,safeLoad:Pe,safeLoadAll:Fe,safeDump:Ie}=t(Se());export{ke as n,Ee as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./chunk-AQ6EADP3-CZhslHi-.js";import{S as t,c as n,i as r,m as i,n as a,o,r as s,t as c,y as l}from"./chunk-ZS6VBONO-D-IFTJgn.js";var u=class extends r{static{e(this,`EventModelingTokenBuilder`)}static{l(this,`EventModelingTokenBuilder`)}constructor(){super([`eventmodeling`])}},d=new Set([`cmd`,`command`]),f=new Set([`evt`,`event`]),p=new Set([`rmo`,`readmodel`]),m=new Set([`pcr`,`processor`]),h=new Set([`ui`]);function g(e){let t=e.validation.EventModelingValidator,n=e.validation.ValidationRegistry;if(n){let e={EmTimeFrame:t.checkSourceFrameTypes.bind(t),EmResetFrame:t.checkSourceFrameTypes.bind(t)};n.register(e,t)}}e(g,`registerValidationChecks`),l(g,`registerValidationChecks`);var _=class{static{e(this,`EventModelingValidator`)}static{l(this,`EventModelingValidator`)}checkSourceFrameTypes(e,t){e.sourceFrames.length!==0&&(d.has(e.modelEntityType)?this.validateSources(e,new Set([...h,...m]),`command`,`ui or processor`,t):f.has(e.modelEntityType)?this.validateSources(e,d,`event`,`command`,t):p.has(e.modelEntityType)?this.validateSources(e,f,`read model`,`event`,t):m.has(e.modelEntityType)?this.validateSources(e,p,`processor`,`read model`,t):h.has(e.modelEntityType)&&this.validateSources(e,p,`ui`,`read model`,t))}validateSources(e,t,n,r,i){for(let a of e.sourceFrames){let o=a.ref;o!==void 0&&!t.has(o.modelEntityType)&&i(`error`,`A ${n} can only receive input from a ${r}, not from '${o.modelEntityType}'.`,{node:e,property:`sourceFrames`})}}},v={parser:{TokenBuilder:l(()=>new u,`TokenBuilder`),ValueConverter:l(()=>new i,`ValueConverter`)},validation:{EventModelingValidator:l(()=>new _,`EventModelingValidator`)}};function y(e=n){let r=s(o(e),a),i=s(c({shared:r}),t,v);return r.ServiceRegistry.register(i),g(i),{shared:r,EventModel:i}}e(y,`createEventModelingServices`),l(y,`createEventModelingServices`);export{v as n,y as t};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{t as e}from"./chunk-AQ6EADP3-CZhslHi-.js";import{T as t,a as n,c as r,i,n as a,o,r as s,t as c,y as l}from"./chunk-ZS6VBONO-D-IFTJgn.js";var u=class extends i{static{e(this,`RailroadEbnfTokenBuilder`)}static{l(this,`RailroadEbnfTokenBuilder`)}constructor(){super([`railroad-ebnf-beta`])}},d=l(e=>{let t=e.slice(1,-1),n=``;for(let e=0;e<t.length;e++){let r=t[e];if(r===`\\`&&e+1<t.length){e++;let r=t[e];switch(r){case`n`:n+=`
|
|
2
|
+
`;break;case`r`:n+=`\r`;break;case`t`:n+=` `;break;default:n+=r}continue}n+=r}return n},`decodeEscapedString`),f=class extends n{static{e(this,`RailroadEbnfValueConverter`)}static{l(this,`RailroadEbnfValueConverter`)}runConverter(e,t,n){let r=super.runConverter(e,t,n);if(e.name===`TITLE`&&typeof r==`string`){let e=r.trim();if(e.startsWith(`"`)&&e.endsWith(`"`)||e.startsWith(`'`)&&e.endsWith(`'`))return d(e)}return r}runCustomConverter(e,t,n){if(e.name===`EBNF_STRING`)return d(t);if(e.name===`EBNF_SPECIAL_SEQUENCE`)return t.slice(1,-1).trim()}},p={parser:{TokenBuilder:l(()=>new u,`TokenBuilder`),ValueConverter:l(()=>new f,`ValueConverter`)}};function m(e=r){let n=s(o(e),a),i=s(c({shared:n}),t,p);return n.ServiceRegistry.register(i),{shared:n,RailroadEbnf:i}}e(m,`createRailroadEbnfServices`),l(m,`createRailroadEbnfServices`);export{m as n,p as t};
|