orbitchat 2.2.5 → 2.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/bin/orbitchat.js +46 -58
  2. package/dist/assets/{_basePickBy-BjEly54R-DqvpNhss.js → _basePickBy-BjEly54R-XZ-uT-Uj.js} +1 -1
  3. package/dist/assets/{_baseUniq-DRc_T5HB-BD-eiKhZ.js → _baseUniq-DRc_T5HB-BsnuNSgv.js} +1 -1
  4. package/dist/assets/{api-B0lJClJq.js → api-RpN2_Bta.js} +1 -1
  5. package/dist/assets/{arc-CZCQSTaI-COU74SO_.js → arc-CZCQSTaI-C-VU_J9B.js} +1 -1
  6. package/dist/assets/{architectureDiagram-VXUJARFQ-Cfm45ePu-DpyHVagy.js → architectureDiagram-VXUJARFQ-Cfm45ePu-CSKO1yu3.js} +1 -1
  7. package/dist/assets/{blockDiagram-VD42YOAC-BRbgLESd-Ck20-ft3.js → blockDiagram-VD42YOAC-BRbgLESd-Bbm-oCAg.js} +1 -1
  8. package/dist/assets/{c4Diagram-YG6GDRKO-DLei6MnZ-CyXWsii7.js → c4Diagram-YG6GDRKO-DLei6MnZ-SeObXeAe.js} +1 -1
  9. package/dist/assets/channel-DkFrLL9m-oLu-Ehez.js +1 -0
  10. package/dist/assets/{chunk-4BX2VUAB-DeMNg1Xd-CrtFwSE5.js → chunk-4BX2VUAB-DeMNg1Xd-CMa4zZ7K.js} +1 -1
  11. package/dist/assets/{chunk-55IACEB6-_r7qMy9s-CVsj1DxS.js → chunk-55IACEB6-_r7qMy9s-Dy635JXO.js} +1 -1
  12. package/dist/assets/{chunk-B4BG7PRW-CIxgz8SC-at5hJRU9.js → chunk-B4BG7PRW-CIxgz8SC-Cg2SKJYD.js} +1 -1
  13. package/dist/assets/{chunk-DI55MBZ5-i035IDz6-DxOVU1og.js → chunk-DI55MBZ5-i035IDz6-DxyMtoDb.js} +1 -1
  14. package/dist/assets/{chunk-FMBD7UC4-Bm0ev8jq-BTHOwKty.js → chunk-FMBD7UC4-Bm0ev8jq-DBEEbKOi.js} +1 -1
  15. package/dist/assets/{chunk-QN33PNHL-C8-RyAc3-DADdydNm.js → chunk-QN33PNHL-C8-RyAc3-Bziqpynq.js} +1 -1
  16. package/dist/assets/{chunk-QZHKN3VN-DMEEp6GB-MKN7DFjX.js → chunk-QZHKN3VN-DMEEp6GB-NSbjkrZ8.js} +1 -1
  17. package/dist/assets/{chunk-TZMSLE5B-CNFsEzOl-BT3YM95Y.js → chunk-TZMSLE5B-CNFsEzOl-DVds0hZJ.js} +1 -1
  18. package/dist/assets/{classDiagram-2ON5EDUG-DnsiOvOV-CXFnq-_j.js → classDiagram-2ON5EDUG-DnsiOvOV-O_0UXE1J.js} +1 -1
  19. package/dist/assets/{classDiagram-v2-WZHVMYZB-DnsiOvOV-CXFnq-_j.js → classDiagram-v2-WZHVMYZB-DnsiOvOV-O_0UXE1J.js} +1 -1
  20. package/dist/assets/clone-DduvFCk3-BjQT37Sj.js +1 -0
  21. package/dist/assets/{cose-bilkent-S5V4N54A-VxeRCpgs-ToXg3tv0.js → cose-bilkent-S5V4N54A-VxeRCpgs-DsXa8Zq3.js} +1 -1
  22. package/dist/assets/{dagre-6UL2VRFP-B-o0qgxK-B7jIOGhI.js → dagre-6UL2VRFP-B-o0qgxK-DfZm7xId.js} +1 -1
  23. package/dist/assets/{diagram-PSM6KHXK-CoKmJ9sN-CeSAdKE7.js → diagram-PSM6KHXK-CoKmJ9sN-rwg0eDKT.js} +1 -1
  24. package/dist/assets/{diagram-QEK2KX5R-ETMfkzYL-BXfUD6Bz.js → diagram-QEK2KX5R-ETMfkzYL-Bawb4i2Y.js} +1 -1
  25. package/dist/assets/{diagram-S2PKOQOG-BgLbl6rv-Bq7z4qcN.js → diagram-S2PKOQOG-BgLbl6rv-fjzP4qrY.js} +1 -1
  26. package/dist/assets/{erDiagram-Q2GNP2WA-Swwdy5pk-CDqK5rW5.js → erDiagram-Q2GNP2WA-Swwdy5pk-TsPzHVEQ.js} +1 -1
  27. package/dist/assets/{flowDiagram-NV44I4VS-DXJdBBSZ-BwK5ukuy.js → flowDiagram-NV44I4VS-DXJdBBSZ-DNo_92-L.js} +1 -1
  28. package/dist/assets/{ganttDiagram-LVOFAZNH-DmRbHwxf-DcLr4kCw.js → ganttDiagram-LVOFAZNH-DmRbHwxf-Cwvlwlkm.js} +1 -1
  29. package/dist/assets/{gitGraphDiagram-NY62KEGX-D30uHfXn-CQ3udd86.js → gitGraphDiagram-NY62KEGX-D30uHfXn-C_O3r_x5.js} +1 -1
  30. package/dist/assets/{graph-ClfIprSM-Bo9NcOv2.js → graph-ClfIprSM-BZwHPDDo.js} +1 -1
  31. package/dist/assets/{index-Bny2bm5_-BTHX9t_s.js → index-Bny2bm5_-BBHjCfey.js} +1 -1
  32. package/dist/assets/{index-CIi9dO9d.js → index-Dwfg9sR1.js} +86 -86
  33. package/dist/assets/{infoDiagram-ER5ION4S-C0DTNQfZ-LvJs62gz.js → infoDiagram-ER5ION4S-C0DTNQfZ-DOapqc3o.js} +1 -1
  34. package/dist/assets/{journeyDiagram-XKPGCS4Q-53CUbf20-CN2QFlhq.js → journeyDiagram-XKPGCS4Q-53CUbf20-Dh7OAcXv.js} +1 -1
  35. package/dist/assets/{kanban-definition-3W4ZIXB7-B-HAgUf7-CCmqybnp.js → kanban-definition-3W4ZIXB7-B-HAgUf7-KfKbtZ09.js} +1 -1
  36. package/dist/assets/{layout-DoRwGyA9-iPNfcIdd.js → layout-DoRwGyA9-CrmvCQM-.js} +1 -1
  37. package/dist/assets/{mindmap-definition-VGOIOE7T-JxieKS1D-C0G1Iimv.js → mindmap-definition-VGOIOE7T-JxieKS1D-DwQCKBi2.js} +1 -1
  38. package/dist/assets/{pieDiagram-ADFJNKIX-vEsBIPBi-B9KBvrYJ.js → pieDiagram-ADFJNKIX-vEsBIPBi-BNA3SacN.js} +1 -1
  39. package/dist/assets/{quadrantDiagram-AYHSOK5B-DuNXQUnS-aaneQodw.js → quadrantDiagram-AYHSOK5B-DuNXQUnS-DiYTe8-4.js} +1 -1
  40. package/dist/assets/{requirementDiagram-UZGBJVZJ-Ajt9-U96-DJ47o9fU.js → requirementDiagram-UZGBJVZJ-Ajt9-U96-CaUedp2k.js} +1 -1
  41. package/dist/assets/{sankeyDiagram-TZEHDZUN-BNMEPupP-BUQLAXZ-.js → sankeyDiagram-TZEHDZUN-BNMEPupP-CoW39JHu.js} +1 -1
  42. package/dist/assets/{sequenceDiagram-WL72ISMW-D2j881gi-DESm0zUV.js → sequenceDiagram-WL72ISMW-D2j881gi-CpM-9Ot5.js} +1 -1
  43. package/dist/assets/{stateDiagram-FKZM4ZOC-D9G5SS9f-BGFYCrOw.js → stateDiagram-FKZM4ZOC-D9G5SS9f-DyhUPTNH.js} +1 -1
  44. package/dist/assets/{stateDiagram-v2-4FDKWEC3-D0cjqibA-CBYfNThC.js → stateDiagram-v2-4FDKWEC3-D0cjqibA-Db7olDTG.js} +1 -1
  45. package/dist/assets/{timeline-definition-IT6M3QCI-B95452nE-BhqaFUs-.js → timeline-definition-IT6M3QCI-B95452nE-BtUwy1tt.js} +1 -1
  46. package/dist/assets/{treemap-KMMF4GRG-Dfxm7cSf-B7pg2atG.js → treemap-KMMF4GRG-Dfxm7cSf-Dp6bDrrM.js} +1 -1
  47. package/dist/assets/{xychartDiagram-PRI3JC2R-CZX71UOJ-zWpWPPXY.js → xychartDiagram-PRI3JC2R-CZX71UOJ-DZlx6d4_.js} +1 -1
  48. package/dist/index.html +1 -1
  49. package/package.json +1 -1
  50. package/dist/assets/channel-DkFrLL9m-pXEXdU8i.js +0 -1
  51. package/dist/assets/clone-DduvFCk3-BXgbo_Py.js +0 -1
@@ -1,2 +1,2 @@
1
- import{R as e,O as s,am as i,B as n,an as d}from"./index-CIi9dO9d.js";import{N as p}from"./treemap-KMMF4GRG-Dfxm7cSf-B7pg2atG.js";import"./_baseUniq-DRc_T5HB-BD-eiKhZ.js";import"./_basePickBy-BjEly54R-DqvpNhss.js";import"./clone-DduvFCk3-BXgbo_Py.js";var m={parse:e(async r=>{const a=await p("info",r);s.debug(a)},"parse")},g={version:d.version+""},v=e(()=>g.version,"getVersion"),c={getVersion:v},f=e((r,a,o)=>{s.debug(`rendering info diagram
1
+ import{R as e,O as s,am as i,B as n,an as d}from"./index-Dwfg9sR1.js";import{N as p}from"./treemap-KMMF4GRG-Dfxm7cSf-Dp6bDrrM.js";import"./_baseUniq-DRc_T5HB-BsnuNSgv.js";import"./_basePickBy-BjEly54R-XZ-uT-Uj.js";import"./clone-DduvFCk3-BjQT37Sj.js";var m={parse:e(async r=>{const a=await p("info",r);s.debug(a)},"parse")},g={version:d.version+""},v=e(()=>g.version,"getVersion"),c={getVersion:v},f=e((r,a,o)=>{s.debug(`rendering info diagram
2
2
  `+r);const t=i(a);n(t,100,400,!0),t.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${o}`)},"draw"),x={draw:f},N={parser:m,db:c,renderer:x};export{N as diagram};
@@ -1,4 +1,4 @@
1
- import{d as ft,y as rt,g as gt,x as mt}from"./chunk-TZMSLE5B-CNFsEzOl-BT3YM95Y.js";import{l as xt}from"./chunk-FMBD7UC4-Bm0ev8jq-BTHOwKty.js";import{R as s,u as kt,f as _t,l as bt,s as wt,o as $t,n as vt,c as V,e as X,B as St,t as Mt}from"./index-CIi9dO9d.js";import{h as tt}from"./arc-CZCQSTaI-COU74SO_.js";var U=function(){var t=s(function(y,i,a,u){for(a=a||{},u=y.length;u--;a[y[u]]=i);return a},"o"),e=[6,8,10,11,12,14,16,17,18],r=[1,9],l=[1,10],n=[1,11],c=[1,12],d=[1,13],h=[1,14],f={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:s(function(y,i,a,u,p,o,x){var k=o.length-1;switch(p){case 1:return o[k-1];case 2:this.$=[];break;case 3:o[k-1].push(o[k]),this.$=o[k-1];break;case 4:case 5:this.$=o[k];break;case 6:case 7:this.$=[];break;case 8:u.setDiagramTitle(o[k].substr(6)),this.$=o[k].substr(6);break;case 9:this.$=o[k].trim(),u.setAccTitle(this.$);break;case 10:case 11:this.$=o[k].trim(),u.setAccDescription(this.$);break;case 12:u.addSection(o[k].substr(8)),this.$=o[k].substr(8);break;case 13:u.addTask(o[k-1],o[k]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:r,12:l,14:n,16:c,17:d,18:h},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:r,12:l,14:n,16:c,17:d,18:h},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:s(function(y,i){if(i.recoverable)this.trace(y);else{var a=new Error(y);throw a.hash=i,a}},"parseError"),parse:s(function(y){var i=this,a=[0],u=[],p=[null],o=[],x=this.table,k="",T=0,A=0,ut=2,Z=1,pt=o.slice.call(arguments,1),_=Object.create(this.lexer),I={yy:{}};for(var Y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Y)&&(I.yy[Y]=this.yy[Y]);_.setInput(y,I.yy),I.yy.lexer=_,I.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var z=_.yylloc;o.push(z);var yt=_.options&&_.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function dt(w){a.length=a.length-2*w,p.length=p.length-w,o.length=o.length-w}s(dt,"popStack");function J(){var w;return w=u.pop()||_.lex()||Z,typeof w!="number"&&(w instanceof Array&&(u=w,w=u.pop()),w=i.symbols_[w]||w),w}s(J,"lex");for(var b,P,$,W,j={},D,M,H,O;;){if(P=a[a.length-1],this.defaultActions[P]?$=this.defaultActions[P]:((b===null||typeof b>"u")&&(b=J()),$=x[P]&&x[P][b]),typeof $>"u"||!$.length||!$[0]){var G="";O=[];for(D in x[P])this.terminals_[D]&&D>ut&&O.push("'"+this.terminals_[D]+"'");_.showPosition?G="Parse error on line "+(T+1)+`:
1
+ import{d as ft,y as rt,g as gt,x as mt}from"./chunk-TZMSLE5B-CNFsEzOl-DVds0hZJ.js";import{l as xt}from"./chunk-FMBD7UC4-Bm0ev8jq-DBEEbKOi.js";import{R as s,u as kt,f as _t,l as bt,s as wt,o as $t,n as vt,c as V,e as X,B as St,t as Mt}from"./index-Dwfg9sR1.js";import{h as tt}from"./arc-CZCQSTaI-C-VU_J9B.js";var U=function(){var t=s(function(y,i,a,u){for(a=a||{},u=y.length;u--;a[y[u]]=i);return a},"o"),e=[6,8,10,11,12,14,16,17,18],r=[1,9],l=[1,10],n=[1,11],c=[1,12],d=[1,13],h=[1,14],f={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:s(function(y,i,a,u,p,o,x){var k=o.length-1;switch(p){case 1:return o[k-1];case 2:this.$=[];break;case 3:o[k-1].push(o[k]),this.$=o[k-1];break;case 4:case 5:this.$=o[k];break;case 6:case 7:this.$=[];break;case 8:u.setDiagramTitle(o[k].substr(6)),this.$=o[k].substr(6);break;case 9:this.$=o[k].trim(),u.setAccTitle(this.$);break;case 10:case 11:this.$=o[k].trim(),u.setAccDescription(this.$);break;case 12:u.addSection(o[k].substr(8)),this.$=o[k].substr(8);break;case 13:u.addTask(o[k-1],o[k]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:r,12:l,14:n,16:c,17:d,18:h},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:r,12:l,14:n,16:c,17:d,18:h},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:s(function(y,i){if(i.recoverable)this.trace(y);else{var a=new Error(y);throw a.hash=i,a}},"parseError"),parse:s(function(y){var i=this,a=[0],u=[],p=[null],o=[],x=this.table,k="",T=0,A=0,ut=2,Z=1,pt=o.slice.call(arguments,1),_=Object.create(this.lexer),I={yy:{}};for(var Y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Y)&&(I.yy[Y]=this.yy[Y]);_.setInput(y,I.yy),I.yy.lexer=_,I.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var z=_.yylloc;o.push(z);var yt=_.options&&_.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function dt(w){a.length=a.length-2*w,p.length=p.length-w,o.length=o.length-w}s(dt,"popStack");function J(){var w;return w=u.pop()||_.lex()||Z,typeof w!="number"&&(w instanceof Array&&(u=w,w=u.pop()),w=i.symbols_[w]||w),w}s(J,"lex");for(var b,P,$,W,j={},D,M,H,O;;){if(P=a[a.length-1],this.defaultActions[P]?$=this.defaultActions[P]:((b===null||typeof b>"u")&&(b=J()),$=x[P]&&x[P][b]),typeof $>"u"||!$.length||!$[0]){var G="";O=[];for(D in x[P])this.terminals_[D]&&D>ut&&O.push("'"+this.terminals_[D]+"'");_.showPosition?G="Parse error on line "+(T+1)+`:
2
2
  `+_.showPosition()+`
3
3
  Expecting `+O.join(", ")+", got '"+(this.terminals_[b]||b)+"'":G="Parse error on line "+(T+1)+": Unexpected "+(b==Z?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(G,{text:_.match,token:this.terminals_[b]||b,line:_.yylineno,loc:z,expected:O})}if($[0]instanceof Array&&$.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+b);switch($[0]){case 1:a.push(b),p.push(_.yytext),o.push(_.yylloc),a.push($[1]),b=null,A=_.yyleng,k=_.yytext,T=_.yylineno,z=_.yylloc;break;case 2:if(M=this.productions_[$[1]][1],j.$=p[p.length-M],j._$={first_line:o[o.length-(M||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(M||1)].first_column,last_column:o[o.length-1].last_column},yt&&(j._$.range=[o[o.length-(M||1)].range[0],o[o.length-1].range[1]]),W=this.performAction.apply(j,[k,A,T,I.yy,$[1],p,o].concat(pt)),typeof W<"u")return W;M&&(a=a.slice(0,-1*M*2),p=p.slice(0,-1*M),o=o.slice(0,-1*M)),a.push(this.productions_[$[1]][0]),p.push(j.$),o.push(j._$),H=x[a[a.length-2]][a[a.length-1]],a.push(H);break;case 3:return!0}}return!0},"parse")},m=function(){var y={EOF:1,parseError:s(function(i,a){if(this.yy.parser)this.yy.parser.parseError(i,a);else throw new Error(i)},"parseError"),setInput:s(function(i,a){return this.yy=a||this.yy||{},this._input=i,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:s(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var a=i.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:s(function(i){var a=i.length,u=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var p=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),u.length-1&&(this.yylineno-=u.length-1);var o=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:u?(u.length===p.length?this.yylloc.first_column:0)+p[p.length-u.length].length-u[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[o[0],o[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},"unput"),more:s(function(){return this._more=!0,this},"more"),reject:s(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
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:s(function(i){this.unput(this.match.slice(i))},"less"),pastInput:s(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var i=this.pastInput(),a=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import{R as a,O as ee,c as W,am as pe,b as ye,m as fe,Y as me,aT as be,M as K,w as G,v as _e,y as Ee,aU as Se,aV as ae,aW as le}from"./index-CIi9dO9d.js";import{l as ke}from"./chunk-FMBD7UC4-Bm0ev8jq-BTHOwKty.js";var Q=function(){var i=a(function(k,e,n,r){for(n=n||{},r=k.length;r--;n[k[r]]=e);return n},"o"),u=[1,4],d=[1,13],s=[1,12],g=[1,15],D=[1,16],S=[1,20],h=[1,19],O=[6,7,8],b=[1,26],_=[1,24],C=[1,25],o=[6,7,11],M=[1,31],w=[6,7,11,24],T=[1,6,13,16,17,20,23],$=[1,35],H=[1,36],I=[1,6,7,11,13,16,17,20,23],U=[1,38],y={trace:a(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:a(function(k,e,n,r,c,t,m){var l=t.length-1;switch(c){case 6:case 7:return r;case 8:r.getLogger().trace("Stop NL ");break;case 9:r.getLogger().trace("Stop EOF ");break;case 11:r.getLogger().trace("Stop NL2 ");break;case 12:r.getLogger().trace("Stop EOF2 ");break;case 15:r.getLogger().info("Node: ",t[l-1].id),r.addNode(t[l-2].length,t[l-1].id,t[l-1].descr,t[l-1].type,t[l]);break;case 16:r.getLogger().info("Node: ",t[l].id),r.addNode(t[l-1].length,t[l].id,t[l].descr,t[l].type);break;case 17:r.getLogger().trace("Icon: ",t[l]),r.decorateNode({icon:t[l]});break;case 18:case 23:r.decorateNode({class:t[l]});break;case 19:r.getLogger().trace("SPACELIST");break;case 20:r.getLogger().trace("Node: ",t[l-1].id),r.addNode(0,t[l-1].id,t[l-1].descr,t[l-1].type,t[l]);break;case 21:r.getLogger().trace("Node: ",t[l].id),r.addNode(0,t[l].id,t[l].descr,t[l].type);break;case 22:r.decorateNode({icon:t[l]});break;case 27:r.getLogger().trace("node found ..",t[l-2]),this.$={id:t[l-1],descr:t[l-1],type:r.getType(t[l-2],t[l])};break;case 28:this.$={id:t[l],descr:t[l],type:0};break;case 29:r.getLogger().trace("node found ..",t[l-3]),this.$={id:t[l-3],descr:t[l-1],type:r.getType(t[l-2],t[l])};break;case 30:this.$=t[l-1]+t[l];break;case 31:this.$=t[l];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:u},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:u},{6:d,7:[1,10],9:9,12:11,13:s,14:14,16:g,17:D,18:17,19:18,20:S,23:h},i(O,[2,3]),{1:[2,2]},i(O,[2,4]),i(O,[2,5]),{1:[2,6],6:d,12:21,13:s,14:14,16:g,17:D,18:17,19:18,20:S,23:h},{6:d,9:22,12:11,13:s,14:14,16:g,17:D,18:17,19:18,20:S,23:h},{6:b,7:_,10:23,11:C},i(o,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:S,23:h}),i(o,[2,19]),i(o,[2,21],{15:30,24:M}),i(o,[2,22]),i(o,[2,23]),i(w,[2,25]),i(w,[2,26]),i(w,[2,28],{20:[1,32]}),{21:[1,33]},{6:b,7:_,10:34,11:C},{1:[2,7],6:d,12:21,13:s,14:14,16:g,17:D,18:17,19:18,20:S,23:h},i(T,[2,14],{7:$,11:H}),i(I,[2,8]),i(I,[2,9]),i(I,[2,10]),i(o,[2,16],{15:37,24:M}),i(o,[2,17]),i(o,[2,18]),i(o,[2,20],{24:U}),i(w,[2,31]),{21:[1,39]},{22:[1,40]},i(T,[2,13],{7:$,11:H}),i(I,[2,11]),i(I,[2,12]),i(o,[2,15],{24:U}),i(w,[2,30]),{22:[1,41]},i(w,[2,27]),i(w,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:a(function(k,e){if(e.recoverable)this.trace(k);else{var n=new Error(k);throw n.hash=e,n}},"parseError"),parse:a(function(k){var e=this,n=[0],r=[],c=[null],t=[],m=this.table,l="",F=0,ne=0,he=2,se=1,ue=t.slice.call(arguments,1),f=Object.create(this.lexer),P={yy:{}};for(var q in this.yy)Object.prototype.hasOwnProperty.call(this.yy,q)&&(P.yy[q]=this.yy[q]);f.setInput(k,P.yy),P.yy.lexer=f,P.yy.parser=this,typeof f.yylloc>"u"&&(f.yylloc={});var X=f.yylloc;t.push(X);var ge=f.options&&f.options.ranges;typeof P.yy.parseError=="function"?this.parseError=P.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function de(N){n.length=n.length-2*N,c.length=c.length-N,t.length=t.length-N}a(de,"popStack");function re(){var N;return N=r.pop()||f.lex()||se,typeof N!="number"&&(N instanceof Array&&(r=N,N=r.pop()),N=e.symbols_[N]||N),N}a(re,"lex");for(var E,B,x,Y,j={},z,A,oe,V;;){if(B=n[n.length-1],this.defaultActions[B]?x=this.defaultActions[B]:((E===null||typeof E>"u")&&(E=re()),x=m[B]&&m[B][E]),typeof x>"u"||!x.length||!x[0]){var J="";V=[];for(z in m[B])this.terminals_[z]&&z>he&&V.push("'"+this.terminals_[z]+"'");f.showPosition?J="Parse error on line "+(F+1)+`:
1
+ import{R as a,O as ee,c as W,am as pe,b as ye,m as fe,Y as me,aT as be,M as K,w as G,v as _e,y as Ee,aU as Se,aV as ae,aW as le}from"./index-Dwfg9sR1.js";import{l as ke}from"./chunk-FMBD7UC4-Bm0ev8jq-DBEEbKOi.js";var Q=function(){var i=a(function(k,e,n,r){for(n=n||{},r=k.length;r--;n[k[r]]=e);return n},"o"),u=[1,4],d=[1,13],s=[1,12],g=[1,15],D=[1,16],S=[1,20],h=[1,19],O=[6,7,8],b=[1,26],_=[1,24],C=[1,25],o=[6,7,11],M=[1,31],w=[6,7,11,24],T=[1,6,13,16,17,20,23],$=[1,35],H=[1,36],I=[1,6,7,11,13,16,17,20,23],U=[1,38],y={trace:a(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:a(function(k,e,n,r,c,t,m){var l=t.length-1;switch(c){case 6:case 7:return r;case 8:r.getLogger().trace("Stop NL ");break;case 9:r.getLogger().trace("Stop EOF ");break;case 11:r.getLogger().trace("Stop NL2 ");break;case 12:r.getLogger().trace("Stop EOF2 ");break;case 15:r.getLogger().info("Node: ",t[l-1].id),r.addNode(t[l-2].length,t[l-1].id,t[l-1].descr,t[l-1].type,t[l]);break;case 16:r.getLogger().info("Node: ",t[l].id),r.addNode(t[l-1].length,t[l].id,t[l].descr,t[l].type);break;case 17:r.getLogger().trace("Icon: ",t[l]),r.decorateNode({icon:t[l]});break;case 18:case 23:r.decorateNode({class:t[l]});break;case 19:r.getLogger().trace("SPACELIST");break;case 20:r.getLogger().trace("Node: ",t[l-1].id),r.addNode(0,t[l-1].id,t[l-1].descr,t[l-1].type,t[l]);break;case 21:r.getLogger().trace("Node: ",t[l].id),r.addNode(0,t[l].id,t[l].descr,t[l].type);break;case 22:r.decorateNode({icon:t[l]});break;case 27:r.getLogger().trace("node found ..",t[l-2]),this.$={id:t[l-1],descr:t[l-1],type:r.getType(t[l-2],t[l])};break;case 28:this.$={id:t[l],descr:t[l],type:0};break;case 29:r.getLogger().trace("node found ..",t[l-3]),this.$={id:t[l-3],descr:t[l-1],type:r.getType(t[l-2],t[l])};break;case 30:this.$=t[l-1]+t[l];break;case 31:this.$=t[l];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:u},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:u},{6:d,7:[1,10],9:9,12:11,13:s,14:14,16:g,17:D,18:17,19:18,20:S,23:h},i(O,[2,3]),{1:[2,2]},i(O,[2,4]),i(O,[2,5]),{1:[2,6],6:d,12:21,13:s,14:14,16:g,17:D,18:17,19:18,20:S,23:h},{6:d,9:22,12:11,13:s,14:14,16:g,17:D,18:17,19:18,20:S,23:h},{6:b,7:_,10:23,11:C},i(o,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:S,23:h}),i(o,[2,19]),i(o,[2,21],{15:30,24:M}),i(o,[2,22]),i(o,[2,23]),i(w,[2,25]),i(w,[2,26]),i(w,[2,28],{20:[1,32]}),{21:[1,33]},{6:b,7:_,10:34,11:C},{1:[2,7],6:d,12:21,13:s,14:14,16:g,17:D,18:17,19:18,20:S,23:h},i(T,[2,14],{7:$,11:H}),i(I,[2,8]),i(I,[2,9]),i(I,[2,10]),i(o,[2,16],{15:37,24:M}),i(o,[2,17]),i(o,[2,18]),i(o,[2,20],{24:U}),i(w,[2,31]),{21:[1,39]},{22:[1,40]},i(T,[2,13],{7:$,11:H}),i(I,[2,11]),i(I,[2,12]),i(o,[2,15],{24:U}),i(w,[2,30]),{22:[1,41]},i(w,[2,27]),i(w,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:a(function(k,e){if(e.recoverable)this.trace(k);else{var n=new Error(k);throw n.hash=e,n}},"parseError"),parse:a(function(k){var e=this,n=[0],r=[],c=[null],t=[],m=this.table,l="",F=0,ne=0,he=2,se=1,ue=t.slice.call(arguments,1),f=Object.create(this.lexer),P={yy:{}};for(var q in this.yy)Object.prototype.hasOwnProperty.call(this.yy,q)&&(P.yy[q]=this.yy[q]);f.setInput(k,P.yy),P.yy.lexer=f,P.yy.parser=this,typeof f.yylloc>"u"&&(f.yylloc={});var X=f.yylloc;t.push(X);var ge=f.options&&f.options.ranges;typeof P.yy.parseError=="function"?this.parseError=P.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function de(N){n.length=n.length-2*N,c.length=c.length-N,t.length=t.length-N}a(de,"popStack");function re(){var N;return N=r.pop()||f.lex()||se,typeof N!="number"&&(N instanceof Array&&(r=N,N=r.pop()),N=e.symbols_[N]||N),N}a(re,"lex");for(var E,B,x,Y,j={},z,A,oe,V;;){if(B=n[n.length-1],this.defaultActions[B]?x=this.defaultActions[B]:((E===null||typeof E>"u")&&(E=re()),x=m[B]&&m[B][E]),typeof x>"u"||!x.length||!x[0]){var J="";V=[];for(z in m[B])this.terminals_[z]&&z>he&&V.push("'"+this.terminals_[z]+"'");f.showPosition?J="Parse error on line "+(F+1)+`:
2
2
  `+f.showPosition()+`
3
3
  Expecting `+V.join(", ")+", got '"+(this.terminals_[E]||E)+"'":J="Parse error on line "+(F+1)+": Unexpected "+(E==se?"end of input":"'"+(this.terminals_[E]||E)+"'"),this.parseError(J,{text:f.match,token:this.terminals_[E]||E,line:f.yylineno,loc:X,expected:V})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+B+", token: "+E);switch(x[0]){case 1:n.push(E),c.push(f.yytext),t.push(f.yylloc),n.push(x[1]),E=null,ne=f.yyleng,l=f.yytext,F=f.yylineno,X=f.yylloc;break;case 2:if(A=this.productions_[x[1]][1],j.$=c[c.length-A],j._$={first_line:t[t.length-(A||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(A||1)].first_column,last_column:t[t.length-1].last_column},ge&&(j._$.range=[t[t.length-(A||1)].range[0],t[t.length-1].range[1]]),Y=this.performAction.apply(j,[l,ne,F,P.yy,x[1],c,t].concat(ue)),typeof Y<"u")return Y;A&&(n=n.slice(0,-1*A*2),c=c.slice(0,-1*A),t=t.slice(0,-1*A)),n.push(this.productions_[x[1]][0]),c.push(j.$),t.push(j._$),oe=m[n[n.length-2]][n[n.length-1]],n.push(oe);break;case 3:return!0}}return!0},"parse")},R=function(){var k={EOF:1,parseError:a(function(e,n){if(this.yy.parser)this.yy.parser.parseError(e,n);else throw new Error(e)},"parseError"),setInput:a(function(e,n){return this.yy=n||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:a(function(){var e=this._input[0];this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e;var n=e.match(/(?:\r\n?|\n).*/g);return n?(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:a(function(e){var n=e.length,r=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var c=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),r.length-1&&(this.yylineno-=r.length-1);var t=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:r?(r.length===c.length?this.yylloc.first_column:0)+c[c.length-r.length].length-r[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[t[0],t[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:a(function(){return this._more=!0,this},"more"),reject:a(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
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:a(function(e){this.unput(this.match.slice(e))},"less"),pastInput:a(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:a(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:a(function(){var e=this.pastInput(),n=new Array(e.length+1).join("-");return e+this.upcomingInput()+`
@@ -1 +1 @@
1
- import{L as m}from"./graph-ClfIprSM-Bo9NcOv2.js";import{O as Mn,$ as s,b as $,y as Tn,L as H,E as x,S as b,l as hn,a as Sn,I as T,_ as L,m as Cn,c as gn,i as $n,N as nn}from"./_baseUniq-DRc_T5HB-BD-eiKhZ.js";import{d as Gn,u as j,f as N,V as Fn,m as _,b as p,g as vn,t as ln,X as G,o as Vn,h as J,r as Bn}from"./_basePickBy-BjEly54R-DqvpNhss.js";import{aE as Yn,aF as z,aG as A,aH as qn,aI as zn,aJ as pn,aK as wn,aL as An,aM as Dn,aN as Hn,aO as Jn,aP as Qn,aQ as Kn}from"./index-CIi9dO9d.js";function Un(n){return qn(zn(n,void 0,N),n+"")}var Zn=1,Xn=4;function Wn(n){return Cn(n,Zn|Xn)}function nr(n,r){return n==null?n:Qn(n,gn(r),Kn)}function rr(n,r){return n&&hn(n,gn(r))}function er(n,r){return n>r}function S(n,r){var e={};return r=H(r),hn(n,function(t,o,i){Dn(e,o,r(t,o,i))}),e}function y(n){return n&&n.length?ln(n,wn,er):void 0}function Q(n,r){return n&&n.length?ln(n,H(r),Bn):void 0}function tr(n,r){var e=n.length;for(n.sort(r);e--;)n[e]=n[e].value;return n}function or(n,r){if(n!==r){var e=n!==void 0,t=n===null,o=n===n,i=nn(n),a=r!==void 0,u=r===null,d=r===r,c=nn(r);if(!u&&!c&&!i&&n>r||i&&a&&d&&!u&&!c||t&&a&&d||!e&&d||!o)return 1;if(!t&&!i&&!c&&n<r||c&&e&&o&&!t&&!i||u&&e&&o||!a&&o||!d)return-1}return 0}function ir(n,r,e){for(var t=-1,o=n.criteria,i=r.criteria,a=o.length,u=e.length;++t<a;){var d=or(o[t],i[t]);if(d){if(t>=u)return d;var c=e[t];return d*(c=="desc"?-1:1)}}return n.index-r.index}function ar(n,r,e){r.length?r=$(r,function(i){return pn(i)?function(a){return Tn(a,i.length===1?i[0]:i)}:i}):r=[wn];var t=-1;r=$(r,An(H));var o=Fn(n,function(i,a,u){var d=$(r,function(c){return c(i)});return{criteria:d,index:++t,value:i}});return tr(o,function(i,a){return ir(i,a,e)})}function ur(n,r){return Vn(n,r,function(e,t){return $n(n,t)})}var M=Un(function(n,r){return n==null?{}:ur(n,r)}),dr=Math.ceil,cr=Math.max;function sr(n,r,e,t){for(var o=-1,i=cr(dr((r-n)/(e||1)),0),a=Array(i);i--;)a[++o]=n,n+=e;return a}function fr(n){return function(r,e,t){return t&&typeof t!="number"&&z(r,e,t)&&(e=t=void 0),r=G(r),e===void 0?(e=r,r=0):e=G(e),t=t===void 0?r<e?1:-1:G(t),sr(r,e,t)}}var E=fr(),R=Yn(function(n,r){if(n==null)return[];var e=r.length;return e>1&&z(n,r[0],r[1])?r=[]:e>2&&z(r[0],r[1],r[2])&&(r=[r[0]]),ar(n,Mn(r),[])}),hr=0;function K(n){var r=++hr;return Sn(n)+r}function gr(n,r,e){for(var t=-1,o=n.length,i=r.length,a={};++t<o;){var u=t<i?r[t]:void 0;e(a,n[t],u)}return a}function vr(n,r){return gr(n||[],r||[],Jn)}class lr{constructor(){var r={};r._next=r._prev=r,this._sentinel=r}dequeue(){var r=this._sentinel,e=r._prev;if(e!==r)return rn(e),e}enqueue(r){var e=this._sentinel;r._prev&&r._next&&rn(r),r._next=e._next,e._next._prev=r,e._next=r,r._prev=e}toString(){for(var r=[],e=this._sentinel,t=e._prev;t!==e;)r.push(JSON.stringify(t,pr)),t=t._prev;return"["+r.join(", ")+"]"}}function rn(n){n._prev._next=n._next,n._next._prev=n._prev,delete n._next,delete n._prev}function pr(n,r){if(n!=="_next"&&n!=="_prev")return r}var wr=Hn(1);function br(n,r){if(n.nodeCount()<=1)return[];var e=yr(n,r||wr),t=mr(e.graph,e.buckets,e.zeroIdx);return N(p(t,function(o){return n.outEdges(o.v,o.w)}))}function mr(n,r,e){for(var t=[],o=r[r.length-1],i=r[0],a;n.nodeCount();){for(;a=i.dequeue();)F(n,r,e,a);for(;a=o.dequeue();)F(n,r,e,a);if(n.nodeCount()){for(var u=r.length-2;u>0;--u)if(a=r[u].dequeue(),a){t=t.concat(F(n,r,e,a,!0));break}}}return t}function F(n,r,e,t,o){var i=o?[]:void 0;return s(n.inEdges(t.v),function(a){var u=n.edge(a),d=n.node(a.v);o&&i.push({v:a.v,w:a.w}),d.out-=u,D(r,e,d)}),s(n.outEdges(t.v),function(a){var u=n.edge(a),d=a.w,c=n.node(d);c.in-=u,D(r,e,c)}),n.removeNode(t.v),i}function yr(n,r){var e=new m,t=0,o=0;s(n.nodes(),function(u){e.setNode(u,{v:u,in:0,out:0})}),s(n.edges(),function(u){var d=e.edge(u.v,u.w)||0,c=r(u),f=d+c;e.setEdge(u.v,u.w,f),o=Math.max(o,e.node(u.v).out+=c),t=Math.max(t,e.node(u.w).in+=c)});var i=E(o+t+3).map(function(){return new lr}),a=t+1;return s(e.nodes(),function(u){D(i,a,e.node(u))}),{graph:e,buckets:i,zeroIdx:a}}function D(n,r,e){e.out?e.in?n[e.out-e.in+r].enqueue(e):n[n.length-1].enqueue(e):n[0].enqueue(e)}function kr(n){var r=n.graph().acyclicer==="greedy"?br(n,e(n)):xr(n);s(r,function(t){var o=n.edge(t);n.removeEdge(t),o.forwardName=t.name,o.reversed=!0,n.setEdge(t.w,t.v,o,K("rev"))});function e(t){return function(o){return t.edge(o).weight}}}function xr(n){var r=[],e={},t={};function o(i){Object.prototype.hasOwnProperty.call(t,i)||(t[i]=!0,e[i]=!0,s(n.outEdges(i),function(a){Object.prototype.hasOwnProperty.call(e,a.w)?r.push(a):o(a.w)}),delete e[i])}return s(n.nodes(),o),r}function Er(n){s(n.edges(),function(r){var e=n.edge(r);if(e.reversed){n.removeEdge(r);var t=e.forwardName;delete e.reversed,delete e.forwardName,n.setEdge(r.w,r.v,e,t)}})}function O(n,r,e,t){var o;do o=K(t);while(n.hasNode(o));return e.dummy=r,n.setNode(o,e),o}function Nr(n){var r=new m().setGraph(n.graph());return s(n.nodes(),function(e){r.setNode(e,n.node(e))}),s(n.edges(),function(e){var t=r.edge(e.v,e.w)||{weight:0,minlen:1},o=n.edge(e);r.setEdge(e.v,e.w,{weight:t.weight+o.weight,minlen:Math.max(t.minlen,o.minlen)})}),r}function bn(n){var r=new m({multigraph:n.isMultigraph()}).setGraph(n.graph());return s(n.nodes(),function(e){n.children(e).length||r.setNode(e,n.node(e))}),s(n.edges(),function(e){r.setEdge(e,n.edge(e))}),r}function en(n,r){var e=n.x,t=n.y,o=r.x-e,i=r.y-t,a=n.width/2,u=n.height/2;if(!o&&!i)throw new Error("Not possible to find intersection inside of the rectangle");var d,c;return Math.abs(i)*a>Math.abs(o)*u?(i<0&&(u=-u),d=u*o/i,c=u):(o<0&&(a=-a),d=a,c=a*i/o),{x:e+d,y:t+c}}function C(n){var r=p(E(mn(n)+1),function(){return[]});return s(n.nodes(),function(e){var t=n.node(e),o=t.rank;b(o)||(r[o][t.order]=e)}),r}function Or(n){var r=_(p(n.nodes(),function(e){return n.node(e).rank}));s(n.nodes(),function(e){var t=n.node(e);vn(t,"rank")&&(t.rank-=r)})}function Ir(n){var r=_(p(n.nodes(),function(i){return n.node(i).rank})),e=[];s(n.nodes(),function(i){var a=n.node(i).rank-r;e[a]||(e[a]=[]),e[a].push(i)});var t=0,o=n.graph().nodeRankFactor;s(e,function(i,a){b(i)&&a%o!==0?--t:t&&s(i,function(u){n.node(u).rank+=t})})}function tn(n,r,e,t){var o={width:0,height:0};return arguments.length>=4&&(o.rank=e,o.order=t),O(n,"border",o,r)}function mn(n){return y(p(n.nodes(),function(r){var e=n.node(r).rank;if(!b(e))return e}))}function _r(n,r){var e={lhs:[],rhs:[]};return s(n,function(t){r(t)?e.lhs.push(t):e.rhs.push(t)}),e}function Pr(n,r){return r()}function Lr(n){function r(e){var t=n.children(e),o=n.node(e);if(t.length&&s(t,r),Object.prototype.hasOwnProperty.call(o,"minRank")){o.borderLeft=[],o.borderRight=[];for(var i=o.minRank,a=o.maxRank+1;i<a;++i)on(n,"borderLeft","_bl",e,o,i),on(n,"borderRight","_br",e,o,i)}}s(n.children(),r)}function on(n,r,e,t,o,i){var a={width:0,height:0,rank:i,borderType:r},u=o[r][i-1],d=O(n,"border",a,e);o[r][i]=d,n.setParent(d,t),u&&n.setEdge(u,d,{weight:1})}function Rr(n){var r=n.graph().rankdir.toLowerCase();(r==="lr"||r==="rl")&&yn(n)}function jr(n){var r=n.graph().rankdir.toLowerCase();(r==="bt"||r==="rl")&&Mr(n),(r==="lr"||r==="rl")&&(Tr(n),yn(n))}function yn(n){s(n.nodes(),function(r){an(n.node(r))}),s(n.edges(),function(r){an(n.edge(r))})}function an(n){var r=n.width;n.width=n.height,n.height=r}function Mr(n){s(n.nodes(),function(r){V(n.node(r))}),s(n.edges(),function(r){var e=n.edge(r);s(e.points,V),Object.prototype.hasOwnProperty.call(e,"y")&&V(e)})}function V(n){n.y=-n.y}function Tr(n){s(n.nodes(),function(r){B(n.node(r))}),s(n.edges(),function(r){var e=n.edge(r);s(e.points,B),Object.prototype.hasOwnProperty.call(e,"x")&&B(e)})}function B(n){var r=n.x;n.x=n.y,n.y=r}function Sr(n){n.graph().dummyChains=[],s(n.edges(),function(r){Cr(n,r)})}function Cr(n,r){var e=r.v,t=n.node(e).rank,o=r.w,i=n.node(o).rank,a=r.name,u=n.edge(r),d=u.labelRank;if(i!==t+1){n.removeEdge(r);var c=void 0,f,h;for(h=0,++t;t<i;++h,++t)u.points=[],c={width:0,height:0,edgeLabel:u,edgeObj:r,rank:t},f=O(n,"edge",c,"_d"),t===d&&(c.width=u.width,c.height=u.height,c.dummy="edge-label",c.labelpos=u.labelpos),n.setEdge(e,f,{weight:u.weight},a),h===0&&n.graph().dummyChains.push(f),e=f;n.setEdge(e,o,{weight:u.weight},a)}}function $r(n){s(n.graph().dummyChains,function(r){var e=n.node(r),t=e.edgeLabel,o;for(n.setEdge(e.edgeObj,t);e.dummy;)o=n.successors(r)[0],n.removeNode(r),t.points.push({x:e.x,y:e.y}),e.dummy==="edge-label"&&(t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height),r=o,e=n.node(r)})}function U(n){var r={};function e(t){var o=n.node(t);if(Object.prototype.hasOwnProperty.call(r,t))return o.rank;r[t]=!0;var i=_(p(n.outEdges(t),function(a){return e(a.w)-n.edge(a).minlen}));return(i===Number.POSITIVE_INFINITY||i===void 0||i===null)&&(i=0),o.rank=i}s(n.sources(),e)}function P(n,r){return n.node(r.w).rank-n.node(r.v).rank-n.edge(r).minlen}function kn(n){var r=new m({directed:!1}),e=n.nodes()[0],t=n.nodeCount();r.setNode(e,{});for(var o,i;Gr(r,n)<t;)o=Fr(r,n),i=r.hasNode(o.v)?P(n,o):-P(n,o),Vr(r,n,i);return r}function Gr(n,r){function e(t){s(r.nodeEdges(t),function(o){var i=o.v,a=t===i?o.w:i;!n.hasNode(a)&&!P(r,o)&&(n.setNode(a,{}),n.setEdge(t,a,{}),e(a))})}return s(n.nodes(),e),n.nodeCount()}function Fr(n,r){return Q(r.edges(),function(e){if(n.hasNode(e.v)!==n.hasNode(e.w))return P(r,e)})}function Vr(n,r,e){s(n.nodes(),function(t){r.node(t).rank+=e})}function xn(n,r,e){pn(r)||(r=[r]);var t=(n.isDirected()?n.successors:n.neighbors).bind(n),o=[],i={};return s(r,function(a){if(!n.hasNode(a))throw new Error("Graph does not have node: "+a);En(n,a,e==="post",i,t,o)}),o}function En(n,r,e,t,o,i){Object.prototype.hasOwnProperty.call(t,r)||(t[r]=!0,e||i.push(r),s(o(r),function(a){En(n,a,e,t,o,i)}),e&&i.push(r))}function Br(n,r){return xn(n,r,"post")}function Yr(n,r){return xn(n,r,"pre")}k.initLowLimValues=X;k.initCutValues=Z;k.calcCutValue=Nn;k.leaveEdge=In;k.enterEdge=_n;k.exchangeEdges=Pn;function k(n){n=Nr(n),U(n);var r=kn(n);X(r),Z(r,n);for(var e,t;e=In(r);)t=_n(r,n,e),Pn(r,n,e,t)}function Z(n,r){var e=Br(n,n.nodes());e=e.slice(0,e.length-1),s(e,function(t){qr(n,r,t)})}function qr(n,r,e){var t=n.node(e),o=t.parent;n.edge(e,o).cutvalue=Nn(n,r,e)}function Nn(n,r,e){var t=n.node(e),o=t.parent,i=!0,a=r.edge(e,o),u=0;return a||(i=!1,a=r.edge(o,e)),u=a.weight,s(r.nodeEdges(e),function(d){var c=d.v===e,f=c?d.w:d.v;if(f!==o){var h=c===i,g=r.edge(d).weight;if(u+=h?g:-g,Ar(n,e,f)){var v=n.edge(e,f).cutvalue;u+=h?-v:v}}}),u}function X(n,r){arguments.length<2&&(r=n.nodes()[0]),On(n,{},1,r)}function On(n,r,e,t,o){var i=e,a=n.node(t);return r[t]=!0,s(n.neighbors(t),function(u){Object.prototype.hasOwnProperty.call(r,u)||(e=On(n,r,e,u,t))}),a.low=i,a.lim=e++,o?a.parent=o:delete a.parent,e}function In(n){return J(n.edges(),function(r){return n.edge(r).cutvalue<0})}function _n(n,r,e){var t=e.v,o=e.w;r.hasEdge(t,o)||(t=e.w,o=e.v);var i=n.node(t),a=n.node(o),u=i,d=!1;i.lim>a.lim&&(u=a,d=!0);var c=L(r.edges(),function(f){return d===un(n,n.node(f.v),u)&&d!==un(n,n.node(f.w),u)});return Q(c,function(f){return P(r,f)})}function Pn(n,r,e,t){var o=e.v,i=e.w;n.removeEdge(o,i),n.setEdge(t.v,t.w,{}),X(n),Z(n,r),zr(n,r)}function zr(n,r){var e=J(n.nodes(),function(o){return!r.node(o).parent}),t=Yr(n,e);t=t.slice(1),s(t,function(o){var i=n.node(o).parent,a=r.edge(o,i),u=!1;a||(a=r.edge(i,o),u=!0),r.node(o).rank=r.node(i).rank+(u?a.minlen:-a.minlen)})}function Ar(n,r,e){return n.hasEdge(r,e)}function un(n,r,e){return e.low<=r.lim&&r.lim<=e.lim}function Dr(n){switch(n.graph().ranker){case"network-simplex":dn(n);break;case"tight-tree":Jr(n);break;case"longest-path":Hr(n);break;default:dn(n)}}var Hr=U;function Jr(n){U(n),kn(n)}function dn(n){k(n)}function Qr(n){var r=O(n,"root",{},"_root"),e=Kr(n),t=y(x(e))-1,o=2*t+1;n.graph().nestingRoot=r,s(n.edges(),function(a){n.edge(a).minlen*=o});var i=Ur(n)+1;s(n.children(),function(a){Ln(n,r,o,i,t,e,a)}),n.graph().nodeRankFactor=o}function Ln(n,r,e,t,o,i,a){var u=n.children(a);if(!u.length){a!==r&&n.setEdge(r,a,{weight:0,minlen:e});return}var d=tn(n,"_bt"),c=tn(n,"_bb"),f=n.node(a);n.setParent(d,a),f.borderTop=d,n.setParent(c,a),f.borderBottom=c,s(u,function(h){Ln(n,r,e,t,o,i,h);var g=n.node(h),v=g.borderTop?g.borderTop:h,l=g.borderBottom?g.borderBottom:h,w=g.borderTop?t:2*t,I=v!==l?1:o-i[a]+1;n.setEdge(d,v,{weight:w,minlen:I,nestingEdge:!0}),n.setEdge(l,c,{weight:w,minlen:I,nestingEdge:!0})}),n.parent(a)||n.setEdge(r,d,{weight:0,minlen:o+i[a]})}function Kr(n){var r={};function e(t,o){var i=n.children(t);i&&i.length&&s(i,function(a){e(a,o+1)}),r[t]=o}return s(n.children(),function(t){e(t,1)}),r}function Ur(n){return T(n.edges(),function(r,e){return r+n.edge(e).weight},0)}function Zr(n){var r=n.graph();n.removeNode(r.nestingRoot),delete r.nestingRoot,s(n.edges(),function(e){var t=n.edge(e);t.nestingEdge&&n.removeEdge(e)})}function Xr(n,r,e){var t={},o;s(e,function(i){for(var a=n.parent(i),u,d;a;){if(u=n.parent(a),u?(d=t[u],t[u]=a):(d=o,o=a),d&&d!==a){r.setEdge(d,a);return}a=u}})}function Wr(n,r,e){var t=ne(n),o=new m({compound:!0}).setGraph({root:t}).setDefaultNodeLabel(function(i){return n.node(i)});return s(n.nodes(),function(i){var a=n.node(i),u=n.parent(i);(a.rank===r||a.minRank<=r&&r<=a.maxRank)&&(o.setNode(i),o.setParent(i,u||t),s(n[e](i),function(d){var c=d.v===i?d.w:d.v,f=o.edge(c,i),h=b(f)?0:f.weight;o.setEdge(c,i,{weight:n.edge(d).weight+h})}),Object.prototype.hasOwnProperty.call(a,"minRank")&&o.setNode(i,{borderLeft:a.borderLeft[r],borderRight:a.borderRight[r]}))}),o}function ne(n){for(var r;n.hasNode(r=K("_root")););return r}function re(n,r){for(var e=0,t=1;t<r.length;++t)e+=ee(n,r[t-1],r[t]);return e}function ee(n,r,e){for(var t=vr(e,p(e,function(c,f){return f})),o=N(p(r,function(c){return R(p(n.outEdges(c),function(f){return{pos:t[f.w],weight:n.edge(f).weight}}),"pos")})),i=1;i<e.length;)i<<=1;var a=2*i-1;i-=1;var u=p(new Array(a),function(){return 0}),d=0;return s(o.forEach(function(c){var f=c.pos+i;u[f]+=c.weight;for(var h=0;f>0;)f%2&&(h+=u[f+1]),f=f-1>>1,u[f]+=c.weight;d+=c.weight*h})),d}function te(n){var r={},e=L(n.nodes(),function(u){return!n.children(u).length}),t=y(p(e,function(u){return n.node(u).rank})),o=p(E(t+1),function(){return[]});function i(u){if(!vn(r,u)){r[u]=!0;var d=n.node(u);o[d.rank].push(u),s(n.successors(u),i)}}var a=R(e,function(u){return n.node(u).rank});return s(a,i),o}function oe(n,r){return p(r,function(e){var t=n.inEdges(e);if(t.length){var o=T(t,function(i,a){var u=n.edge(a),d=n.node(a.v);return{sum:i.sum+u.weight*d.order,weight:i.weight+u.weight}},{sum:0,weight:0});return{v:e,barycenter:o.sum/o.weight,weight:o.weight}}else return{v:e}})}function ie(n,r){var e={};s(n,function(o,i){var a=e[o.v]={indegree:0,in:[],out:[],vs:[o.v],i};b(o.barycenter)||(a.barycenter=o.barycenter,a.weight=o.weight)}),s(r.edges(),function(o){var i=e[o.v],a=e[o.w];!b(i)&&!b(a)&&(a.indegree++,i.out.push(e[o.w]))});var t=L(e,function(o){return!o.indegree});return ae(t)}function ae(n){var r=[];function e(i){return function(a){a.merged||(b(a.barycenter)||b(i.barycenter)||a.barycenter>=i.barycenter)&&ue(i,a)}}function t(i){return function(a){a.in.push(i),--a.indegree===0&&n.push(a)}}for(;n.length;){var o=n.pop();r.push(o),s(o.in.reverse(),e(o)),s(o.out,t(o))}return p(L(r,function(i){return!i.merged}),function(i){return M(i,["vs","i","barycenter","weight"])})}function ue(n,r){var e=0,t=0;n.weight&&(e+=n.barycenter*n.weight,t+=n.weight),r.weight&&(e+=r.barycenter*r.weight,t+=r.weight),n.vs=r.vs.concat(n.vs),n.barycenter=e/t,n.weight=t,n.i=Math.min(r.i,n.i),r.merged=!0}function de(n,r){var e=_r(n,function(f){return Object.prototype.hasOwnProperty.call(f,"barycenter")}),t=e.lhs,o=R(e.rhs,function(f){return-f.i}),i=[],a=0,u=0,d=0;t.sort(ce(!!r)),d=cn(i,o,d),s(t,function(f){d+=f.vs.length,i.push(f.vs),a+=f.barycenter*f.weight,u+=f.weight,d=cn(i,o,d)});var c={vs:N(i)};return u&&(c.barycenter=a/u,c.weight=u),c}function cn(n,r,e){for(var t;r.length&&(t=j(r)).i<=e;)r.pop(),n.push(t.vs),e++;return e}function ce(n){return function(r,e){return r.barycenter<e.barycenter?-1:r.barycenter>e.barycenter?1:n?e.i-r.i:r.i-e.i}}function Rn(n,r,e,t){var o=n.children(r),i=n.node(r),a=i?i.borderLeft:void 0,u=i?i.borderRight:void 0,d={};a&&(o=L(o,function(l){return l!==a&&l!==u}));var c=oe(n,o);s(c,function(l){if(n.children(l.v).length){var w=Rn(n,l.v,e,t);d[l.v]=w,Object.prototype.hasOwnProperty.call(w,"barycenter")&&fe(l,w)}});var f=ie(c,e);se(f,d);var h=de(f,t);if(a&&(h.vs=N([a,h.vs,u]),n.predecessors(a).length)){var g=n.node(n.predecessors(a)[0]),v=n.node(n.predecessors(u)[0]);Object.prototype.hasOwnProperty.call(h,"barycenter")||(h.barycenter=0,h.weight=0),h.barycenter=(h.barycenter*h.weight+g.order+v.order)/(h.weight+2),h.weight+=2}return h}function se(n,r){s(n,function(e){e.vs=N(e.vs.map(function(t){return r[t]?r[t].vs:t}))})}function fe(n,r){b(n.barycenter)?(n.barycenter=r.barycenter,n.weight=r.weight):(n.barycenter=(n.barycenter*n.weight+r.barycenter*r.weight)/(n.weight+r.weight),n.weight+=r.weight)}function he(n){var r=mn(n),e=sn(n,E(1,r+1),"inEdges"),t=sn(n,E(r-1,-1,-1),"outEdges"),o=te(n);fn(n,o);for(var i=Number.POSITIVE_INFINITY,a,u=0,d=0;d<4;++u,++d){ge(u%2?e:t,u%4>=2),o=C(n);var c=re(n,o);c<i&&(d=0,a=Wn(o),i=c)}fn(n,a)}function sn(n,r,e){return p(r,function(t){return Wr(n,t,e)})}function ge(n,r){var e=new m;s(n,function(t){var o=t.graph().root,i=Rn(t,o,e,r);s(i.vs,function(a,u){t.node(a).order=u}),Xr(t,e,i.vs)})}function fn(n,r){s(r,function(e){s(e,function(t,o){n.node(t).order=o})})}function ve(n){var r=pe(n);s(n.graph().dummyChains,function(e){for(var t=n.node(e),o=t.edgeObj,i=le(n,r,o.v,o.w),a=i.path,u=i.lca,d=0,c=a[d],f=!0;e!==o.w;){if(t=n.node(e),f){for(;(c=a[d])!==u&&n.node(c).maxRank<t.rank;)d++;c===u&&(f=!1)}if(!f){for(;d<a.length-1&&n.node(c=a[d+1]).minRank<=t.rank;)d++;c=a[d]}n.setParent(e,c),e=n.successors(e)[0]}})}function le(n,r,e,t){var o=[],i=[],a=Math.min(r[e].low,r[t].low),u=Math.max(r[e].lim,r[t].lim),d,c;d=e;do d=n.parent(d),o.push(d);while(d&&(r[d].low>a||u>r[d].lim));for(c=d,d=t;(d=n.parent(d))!==c;)i.push(d);return{path:o.concat(i.reverse()),lca:c}}function pe(n){var r={},e=0;function t(o){var i=e;s(n.children(o),t),r[o]={low:i,lim:e++}}return s(n.children(),t),r}function we(n,r){var e={};function t(o,i){var a=0,u=0,d=o.length,c=j(i);return s(i,function(f,h){var g=me(n,f),v=g?n.node(g).order:d;(g||f===c)&&(s(i.slice(u,h+1),function(l){s(n.predecessors(l),function(w){var I=n.node(w),W=I.order;(W<a||v<W)&&!(I.dummy&&n.node(l).dummy)&&jn(e,w,l)})}),u=h+1,a=v)}),i}return T(r,t),e}function be(n,r){var e={};function t(i,a,u,d,c){var f;s(E(a,u),function(h){f=i[h],n.node(f).dummy&&s(n.predecessors(f),function(g){var v=n.node(g);v.dummy&&(v.order<d||v.order>c)&&jn(e,g,f)})})}function o(i,a){var u=-1,d,c=0;return s(a,function(f,h){if(n.node(f).dummy==="border"){var g=n.predecessors(f);g.length&&(d=n.node(g[0]).order,t(a,c,h,u,d),c=h,u=d)}t(a,c,a.length,d,i.length)}),a}return T(r,o),e}function me(n,r){if(n.node(r).dummy)return J(n.predecessors(r),function(e){return n.node(e).dummy})}function jn(n,r,e){if(r>e){var t=r;r=e,e=t}Object.prototype.hasOwnProperty.call(n,r)||Object.defineProperty(n,r,{enumerable:!0,configurable:!0,value:{},writable:!0});var o=n[r];Object.defineProperty(o,e,{enumerable:!0,configurable:!0,value:!0,writable:!0})}function ye(n,r,e){if(r>e){var t=r;r=e,e=t}return!!n[r]&&Object.prototype.hasOwnProperty.call(n[r],e)}function ke(n,r,e,t){var o={},i={},a={};return s(r,function(u){s(u,function(d,c){o[d]=d,i[d]=d,a[d]=c})}),s(r,function(u){var d=-1;s(u,function(c){var f=t(c);if(f.length){f=R(f,function(w){return a[w]});for(var h=(f.length-1)/2,g=Math.floor(h),v=Math.ceil(h);g<=v;++g){var l=f[g];i[c]===c&&d<a[l]&&!ye(e,c,l)&&(i[l]=c,i[c]=o[c]=o[l],d=a[l])}}})}),{root:o,align:i}}function xe(n,r,e,t,o){var i={},a=Ee(n,r,e,o),u=o?"borderLeft":"borderRight";function d(h,g){for(var v=a.nodes(),l=v.pop(),w={};l;)w[l]?h(l):(w[l]=!0,v.push(l),v=v.concat(g(l))),l=v.pop()}function c(h){i[h]=a.inEdges(h).reduce(function(g,v){return Math.max(g,i[v.v]+a.edge(v))},0)}function f(h){var g=a.outEdges(h).reduce(function(l,w){return Math.min(l,i[w.w]-a.edge(w))},Number.POSITIVE_INFINITY),v=n.node(h);g!==Number.POSITIVE_INFINITY&&v.borderType!==u&&(i[h]=Math.max(i[h],g))}return d(c,a.predecessors.bind(a)),d(f,a.successors.bind(a)),s(t,function(h){i[h]=i[e[h]]}),i}function Ee(n,r,e,t){var o=new m,i=n.graph(),a=Pe(i.nodesep,i.edgesep,t);return s(r,function(u){var d;s(u,function(c){var f=e[c];if(o.setNode(f),d){var h=e[d],g=o.edge(h,f);o.setEdge(h,f,Math.max(a(n,c,d),g||0))}d=c})}),o}function Ne(n,r){return Q(x(r),function(e){var t=Number.NEGATIVE_INFINITY,o=Number.POSITIVE_INFINITY;return nr(e,function(i,a){var u=Le(n,a)/2;t=Math.max(i+u,t),o=Math.min(i-u,o)}),t-o})}function Oe(n,r){var e=x(r),t=_(e),o=y(e);s(["u","d"],function(i){s(["l","r"],function(a){var u=i+a,d=n[u],c;if(d!==r){var f=x(d);c=a==="l"?t-_(f):o-y(f),c&&(n[u]=S(d,function(h){return h+c}))}})})}function Ie(n,r){return S(n.ul,function(e,t){if(r)return n[r.toLowerCase()][t];var o=R(p(n,t));return(o[1]+o[2])/2})}function _e(n){var r=C(n),e=A(we(n,r),be(n,r)),t={},o;s(["u","d"],function(a){o=a==="u"?r:x(r).reverse(),s(["l","r"],function(u){u==="r"&&(o=p(o,function(h){return x(h).reverse()}));var d=(a==="u"?n.predecessors:n.successors).bind(n),c=ke(n,o,e,d),f=xe(n,o,c.root,c.align,u==="r");u==="r"&&(f=S(f,function(h){return-h})),t[a+u]=f})});var i=Ne(n,t);return Oe(t,i),Ie(t,n.graph().align)}function Pe(n,r,e){return function(t,o,i){var a=t.node(o),u=t.node(i),d=0,c;if(d+=a.width/2,Object.prototype.hasOwnProperty.call(a,"labelpos"))switch(a.labelpos.toLowerCase()){case"l":c=-a.width/2;break;case"r":c=a.width/2;break}if(c&&(d+=e?c:-c),c=0,d+=(a.dummy?r:n)/2,d+=(u.dummy?r:n)/2,d+=u.width/2,Object.prototype.hasOwnProperty.call(u,"labelpos"))switch(u.labelpos.toLowerCase()){case"l":c=u.width/2;break;case"r":c=-u.width/2;break}return c&&(d+=e?c:-c),c=0,d}}function Le(n,r){return n.node(r).width}function Re(n){n=bn(n),je(n),rr(_e(n),function(r,e){n.node(e).x=r})}function je(n){var r=C(n),e=n.graph().ranksep,t=0;s(r,function(o){var i=y(p(o,function(a){return n.node(a).height}));s(o,function(a){n.node(a).y=t+i/2}),t+=i+e})}function it(n,r){var e=Pr;e("layout",()=>{var t=e(" buildLayoutGraph",()=>qe(n));e(" runLayout",()=>Me(t,e)),e(" updateInputGraph",()=>Te(n,t))})}function Me(n,r){r(" makeSpaceForEdgeLabels",()=>ze(n)),r(" removeSelfEdges",()=>Xe(n)),r(" acyclic",()=>kr(n)),r(" nestingGraph.run",()=>Qr(n)),r(" rank",()=>Dr(bn(n))),r(" injectEdgeLabelProxies",()=>Ae(n)),r(" removeEmptyRanks",()=>Ir(n)),r(" nestingGraph.cleanup",()=>Zr(n)),r(" normalizeRanks",()=>Or(n)),r(" assignRankMinMax",()=>De(n)),r(" removeEdgeLabelProxies",()=>He(n)),r(" normalize.run",()=>Sr(n)),r(" parentDummyChains",()=>ve(n)),r(" addBorderSegments",()=>Lr(n)),r(" order",()=>he(n)),r(" insertSelfEdges",()=>We(n)),r(" adjustCoordinateSystem",()=>Rr(n)),r(" position",()=>Re(n)),r(" positionSelfEdges",()=>nt(n)),r(" removeBorderNodes",()=>Ze(n)),r(" normalize.undo",()=>$r(n)),r(" fixupEdgeLabelCoords",()=>Ke(n)),r(" undoCoordinateSystem",()=>jr(n)),r(" translateGraph",()=>Je(n)),r(" assignNodeIntersects",()=>Qe(n)),r(" reversePoints",()=>Ue(n)),r(" acyclic.undo",()=>Er(n))}function Te(n,r){s(n.nodes(),function(e){var t=n.node(e),o=r.node(e);t&&(t.x=o.x,t.y=o.y,r.children(e).length&&(t.width=o.width,t.height=o.height))}),s(n.edges(),function(e){var t=n.edge(e),o=r.edge(e);t.points=o.points,Object.prototype.hasOwnProperty.call(o,"x")&&(t.x=o.x,t.y=o.y)}),n.graph().width=r.graph().width,n.graph().height=r.graph().height}var Se=["nodesep","edgesep","ranksep","marginx","marginy"],Ce={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},$e=["acyclicer","ranker","rankdir","align"],Ge=["width","height"],Fe={width:0,height:0},Ve=["minlen","weight","width","height","labeloffset"],Be={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},Ye=["labelpos"];function qe(n){var r=new m({multigraph:!0,compound:!0}),e=q(n.graph());return r.setGraph(A({},Ce,Y(e,Se),M(e,$e))),s(n.nodes(),function(t){var o=q(n.node(t));r.setNode(t,Gn(Y(o,Ge),Fe)),r.setParent(t,n.parent(t))}),s(n.edges(),function(t){var o=q(n.edge(t));r.setEdge(t,A({},Be,Y(o,Ve),M(o,Ye)))}),r}function ze(n){var r=n.graph();r.ranksep/=2,s(n.edges(),function(e){var t=n.edge(e);t.minlen*=2,t.labelpos.toLowerCase()!=="c"&&(r.rankdir==="TB"||r.rankdir==="BT"?t.width+=t.labeloffset:t.height+=t.labeloffset)})}function Ae(n){s(n.edges(),function(r){var e=n.edge(r);if(e.width&&e.height){var t=n.node(r.v),o=n.node(r.w),i={rank:(o.rank-t.rank)/2+t.rank,e:r};O(n,"edge-proxy",i,"_ep")}})}function De(n){var r=0;s(n.nodes(),function(e){var t=n.node(e);t.borderTop&&(t.minRank=n.node(t.borderTop).rank,t.maxRank=n.node(t.borderBottom).rank,r=y(r,t.maxRank))}),n.graph().maxRank=r}function He(n){s(n.nodes(),function(r){var e=n.node(r);e.dummy==="edge-proxy"&&(n.edge(e.e).labelRank=e.rank,n.removeNode(r))})}function Je(n){var r=Number.POSITIVE_INFINITY,e=0,t=Number.POSITIVE_INFINITY,o=0,i=n.graph(),a=i.marginx||0,u=i.marginy||0;function d(c){var f=c.x,h=c.y,g=c.width,v=c.height;r=Math.min(r,f-g/2),e=Math.max(e,f+g/2),t=Math.min(t,h-v/2),o=Math.max(o,h+v/2)}s(n.nodes(),function(c){d(n.node(c))}),s(n.edges(),function(c){var f=n.edge(c);Object.prototype.hasOwnProperty.call(f,"x")&&d(f)}),r-=a,t-=u,s(n.nodes(),function(c){var f=n.node(c);f.x-=r,f.y-=t}),s(n.edges(),function(c){var f=n.edge(c);s(f.points,function(h){h.x-=r,h.y-=t}),Object.prototype.hasOwnProperty.call(f,"x")&&(f.x-=r),Object.prototype.hasOwnProperty.call(f,"y")&&(f.y-=t)}),i.width=e-r+a,i.height=o-t+u}function Qe(n){s(n.edges(),function(r){var e=n.edge(r),t=n.node(r.v),o=n.node(r.w),i,a;e.points?(i=e.points[0],a=e.points[e.points.length-1]):(e.points=[],i=o,a=t),e.points.unshift(en(t,i)),e.points.push(en(o,a))})}function Ke(n){s(n.edges(),function(r){var e=n.edge(r);if(Object.prototype.hasOwnProperty.call(e,"x"))switch((e.labelpos==="l"||e.labelpos==="r")&&(e.width-=e.labeloffset),e.labelpos){case"l":e.x-=e.width/2+e.labeloffset;break;case"r":e.x+=e.width/2+e.labeloffset;break}})}function Ue(n){s(n.edges(),function(r){var e=n.edge(r);e.reversed&&e.points.reverse()})}function Ze(n){s(n.nodes(),function(r){if(n.children(r).length){var e=n.node(r),t=n.node(e.borderTop),o=n.node(e.borderBottom),i=n.node(j(e.borderLeft)),a=n.node(j(e.borderRight));e.width=Math.abs(a.x-i.x),e.height=Math.abs(o.y-t.y),e.x=i.x+e.width/2,e.y=t.y+e.height/2}}),s(n.nodes(),function(r){n.node(r).dummy==="border"&&n.removeNode(r)})}function Xe(n){s(n.edges(),function(r){if(r.v===r.w){var e=n.node(r.v);e.selfEdges||(e.selfEdges=[]),e.selfEdges.push({e:r,label:n.edge(r)}),n.removeEdge(r)}})}function We(n){var r=C(n);s(r,function(e){var t=0;s(e,function(o,i){var a=n.node(o);a.order=i+t,s(a.selfEdges,function(u){O(n,"selfedge",{width:u.label.width,height:u.label.height,rank:a.rank,order:i+ ++t,e:u.e,label:u.label},"_se")}),delete a.selfEdges})})}function nt(n){s(n.nodes(),function(r){var e=n.node(r);if(e.dummy==="selfedge"){var t=n.node(e.e.v),o=t.x+t.width/2,i=t.y,a=e.x-o,u=t.height/2;n.setEdge(e.e,e.label),n.removeNode(r),e.label.points=[{x:o+2*a/3,y:i-u},{x:o+5*a/6,y:i-u},{x:o+a,y:i},{x:o+5*a/6,y:i+u},{x:o+2*a/3,y:i+u}],e.label.x=e.x,e.label.y=e.y}})}function Y(n,r){return S(M(n,r),Number)}function q(n){var r={};return s(n,function(e,t){r[t.toLowerCase()]=e}),r}export{it as o};
1
+ import{L as m}from"./graph-ClfIprSM-BZwHPDDo.js";import{O as Mn,$ as s,b as $,y as Tn,L as H,E as x,S as b,l as hn,a as Sn,I as T,_ as L,m as Cn,c as gn,i as $n,N as nn}from"./_baseUniq-DRc_T5HB-BsnuNSgv.js";import{d as Gn,u as j,f as N,V as Fn,m as _,b as p,g as vn,t as ln,X as G,o as Vn,h as J,r as Bn}from"./_basePickBy-BjEly54R-XZ-uT-Uj.js";import{aE as Yn,aF as z,aG as A,aH as qn,aI as zn,aJ as pn,aK as wn,aL as An,aM as Dn,aN as Hn,aO as Jn,aP as Qn,aQ as Kn}from"./index-Dwfg9sR1.js";function Un(n){return qn(zn(n,void 0,N),n+"")}var Zn=1,Xn=4;function Wn(n){return Cn(n,Zn|Xn)}function nr(n,r){return n==null?n:Qn(n,gn(r),Kn)}function rr(n,r){return n&&hn(n,gn(r))}function er(n,r){return n>r}function S(n,r){var e={};return r=H(r),hn(n,function(t,o,i){Dn(e,o,r(t,o,i))}),e}function y(n){return n&&n.length?ln(n,wn,er):void 0}function Q(n,r){return n&&n.length?ln(n,H(r),Bn):void 0}function tr(n,r){var e=n.length;for(n.sort(r);e--;)n[e]=n[e].value;return n}function or(n,r){if(n!==r){var e=n!==void 0,t=n===null,o=n===n,i=nn(n),a=r!==void 0,u=r===null,d=r===r,c=nn(r);if(!u&&!c&&!i&&n>r||i&&a&&d&&!u&&!c||t&&a&&d||!e&&d||!o)return 1;if(!t&&!i&&!c&&n<r||c&&e&&o&&!t&&!i||u&&e&&o||!a&&o||!d)return-1}return 0}function ir(n,r,e){for(var t=-1,o=n.criteria,i=r.criteria,a=o.length,u=e.length;++t<a;){var d=or(o[t],i[t]);if(d){if(t>=u)return d;var c=e[t];return d*(c=="desc"?-1:1)}}return n.index-r.index}function ar(n,r,e){r.length?r=$(r,function(i){return pn(i)?function(a){return Tn(a,i.length===1?i[0]:i)}:i}):r=[wn];var t=-1;r=$(r,An(H));var o=Fn(n,function(i,a,u){var d=$(r,function(c){return c(i)});return{criteria:d,index:++t,value:i}});return tr(o,function(i,a){return ir(i,a,e)})}function ur(n,r){return Vn(n,r,function(e,t){return $n(n,t)})}var M=Un(function(n,r){return n==null?{}:ur(n,r)}),dr=Math.ceil,cr=Math.max;function sr(n,r,e,t){for(var o=-1,i=cr(dr((r-n)/(e||1)),0),a=Array(i);i--;)a[++o]=n,n+=e;return a}function fr(n){return function(r,e,t){return t&&typeof t!="number"&&z(r,e,t)&&(e=t=void 0),r=G(r),e===void 0?(e=r,r=0):e=G(e),t=t===void 0?r<e?1:-1:G(t),sr(r,e,t)}}var E=fr(),R=Yn(function(n,r){if(n==null)return[];var e=r.length;return e>1&&z(n,r[0],r[1])?r=[]:e>2&&z(r[0],r[1],r[2])&&(r=[r[0]]),ar(n,Mn(r),[])}),hr=0;function K(n){var r=++hr;return Sn(n)+r}function gr(n,r,e){for(var t=-1,o=n.length,i=r.length,a={};++t<o;){var u=t<i?r[t]:void 0;e(a,n[t],u)}return a}function vr(n,r){return gr(n||[],r||[],Jn)}class lr{constructor(){var r={};r._next=r._prev=r,this._sentinel=r}dequeue(){var r=this._sentinel,e=r._prev;if(e!==r)return rn(e),e}enqueue(r){var e=this._sentinel;r._prev&&r._next&&rn(r),r._next=e._next,e._next._prev=r,e._next=r,r._prev=e}toString(){for(var r=[],e=this._sentinel,t=e._prev;t!==e;)r.push(JSON.stringify(t,pr)),t=t._prev;return"["+r.join(", ")+"]"}}function rn(n){n._prev._next=n._next,n._next._prev=n._prev,delete n._next,delete n._prev}function pr(n,r){if(n!=="_next"&&n!=="_prev")return r}var wr=Hn(1);function br(n,r){if(n.nodeCount()<=1)return[];var e=yr(n,r||wr),t=mr(e.graph,e.buckets,e.zeroIdx);return N(p(t,function(o){return n.outEdges(o.v,o.w)}))}function mr(n,r,e){for(var t=[],o=r[r.length-1],i=r[0],a;n.nodeCount();){for(;a=i.dequeue();)F(n,r,e,a);for(;a=o.dequeue();)F(n,r,e,a);if(n.nodeCount()){for(var u=r.length-2;u>0;--u)if(a=r[u].dequeue(),a){t=t.concat(F(n,r,e,a,!0));break}}}return t}function F(n,r,e,t,o){var i=o?[]:void 0;return s(n.inEdges(t.v),function(a){var u=n.edge(a),d=n.node(a.v);o&&i.push({v:a.v,w:a.w}),d.out-=u,D(r,e,d)}),s(n.outEdges(t.v),function(a){var u=n.edge(a),d=a.w,c=n.node(d);c.in-=u,D(r,e,c)}),n.removeNode(t.v),i}function yr(n,r){var e=new m,t=0,o=0;s(n.nodes(),function(u){e.setNode(u,{v:u,in:0,out:0})}),s(n.edges(),function(u){var d=e.edge(u.v,u.w)||0,c=r(u),f=d+c;e.setEdge(u.v,u.w,f),o=Math.max(o,e.node(u.v).out+=c),t=Math.max(t,e.node(u.w).in+=c)});var i=E(o+t+3).map(function(){return new lr}),a=t+1;return s(e.nodes(),function(u){D(i,a,e.node(u))}),{graph:e,buckets:i,zeroIdx:a}}function D(n,r,e){e.out?e.in?n[e.out-e.in+r].enqueue(e):n[n.length-1].enqueue(e):n[0].enqueue(e)}function kr(n){var r=n.graph().acyclicer==="greedy"?br(n,e(n)):xr(n);s(r,function(t){var o=n.edge(t);n.removeEdge(t),o.forwardName=t.name,o.reversed=!0,n.setEdge(t.w,t.v,o,K("rev"))});function e(t){return function(o){return t.edge(o).weight}}}function xr(n){var r=[],e={},t={};function o(i){Object.prototype.hasOwnProperty.call(t,i)||(t[i]=!0,e[i]=!0,s(n.outEdges(i),function(a){Object.prototype.hasOwnProperty.call(e,a.w)?r.push(a):o(a.w)}),delete e[i])}return s(n.nodes(),o),r}function Er(n){s(n.edges(),function(r){var e=n.edge(r);if(e.reversed){n.removeEdge(r);var t=e.forwardName;delete e.reversed,delete e.forwardName,n.setEdge(r.w,r.v,e,t)}})}function O(n,r,e,t){var o;do o=K(t);while(n.hasNode(o));return e.dummy=r,n.setNode(o,e),o}function Nr(n){var r=new m().setGraph(n.graph());return s(n.nodes(),function(e){r.setNode(e,n.node(e))}),s(n.edges(),function(e){var t=r.edge(e.v,e.w)||{weight:0,minlen:1},o=n.edge(e);r.setEdge(e.v,e.w,{weight:t.weight+o.weight,minlen:Math.max(t.minlen,o.minlen)})}),r}function bn(n){var r=new m({multigraph:n.isMultigraph()}).setGraph(n.graph());return s(n.nodes(),function(e){n.children(e).length||r.setNode(e,n.node(e))}),s(n.edges(),function(e){r.setEdge(e,n.edge(e))}),r}function en(n,r){var e=n.x,t=n.y,o=r.x-e,i=r.y-t,a=n.width/2,u=n.height/2;if(!o&&!i)throw new Error("Not possible to find intersection inside of the rectangle");var d,c;return Math.abs(i)*a>Math.abs(o)*u?(i<0&&(u=-u),d=u*o/i,c=u):(o<0&&(a=-a),d=a,c=a*i/o),{x:e+d,y:t+c}}function C(n){var r=p(E(mn(n)+1),function(){return[]});return s(n.nodes(),function(e){var t=n.node(e),o=t.rank;b(o)||(r[o][t.order]=e)}),r}function Or(n){var r=_(p(n.nodes(),function(e){return n.node(e).rank}));s(n.nodes(),function(e){var t=n.node(e);vn(t,"rank")&&(t.rank-=r)})}function Ir(n){var r=_(p(n.nodes(),function(i){return n.node(i).rank})),e=[];s(n.nodes(),function(i){var a=n.node(i).rank-r;e[a]||(e[a]=[]),e[a].push(i)});var t=0,o=n.graph().nodeRankFactor;s(e,function(i,a){b(i)&&a%o!==0?--t:t&&s(i,function(u){n.node(u).rank+=t})})}function tn(n,r,e,t){var o={width:0,height:0};return arguments.length>=4&&(o.rank=e,o.order=t),O(n,"border",o,r)}function mn(n){return y(p(n.nodes(),function(r){var e=n.node(r).rank;if(!b(e))return e}))}function _r(n,r){var e={lhs:[],rhs:[]};return s(n,function(t){r(t)?e.lhs.push(t):e.rhs.push(t)}),e}function Pr(n,r){return r()}function Lr(n){function r(e){var t=n.children(e),o=n.node(e);if(t.length&&s(t,r),Object.prototype.hasOwnProperty.call(o,"minRank")){o.borderLeft=[],o.borderRight=[];for(var i=o.minRank,a=o.maxRank+1;i<a;++i)on(n,"borderLeft","_bl",e,o,i),on(n,"borderRight","_br",e,o,i)}}s(n.children(),r)}function on(n,r,e,t,o,i){var a={width:0,height:0,rank:i,borderType:r},u=o[r][i-1],d=O(n,"border",a,e);o[r][i]=d,n.setParent(d,t),u&&n.setEdge(u,d,{weight:1})}function Rr(n){var r=n.graph().rankdir.toLowerCase();(r==="lr"||r==="rl")&&yn(n)}function jr(n){var r=n.graph().rankdir.toLowerCase();(r==="bt"||r==="rl")&&Mr(n),(r==="lr"||r==="rl")&&(Tr(n),yn(n))}function yn(n){s(n.nodes(),function(r){an(n.node(r))}),s(n.edges(),function(r){an(n.edge(r))})}function an(n){var r=n.width;n.width=n.height,n.height=r}function Mr(n){s(n.nodes(),function(r){V(n.node(r))}),s(n.edges(),function(r){var e=n.edge(r);s(e.points,V),Object.prototype.hasOwnProperty.call(e,"y")&&V(e)})}function V(n){n.y=-n.y}function Tr(n){s(n.nodes(),function(r){B(n.node(r))}),s(n.edges(),function(r){var e=n.edge(r);s(e.points,B),Object.prototype.hasOwnProperty.call(e,"x")&&B(e)})}function B(n){var r=n.x;n.x=n.y,n.y=r}function Sr(n){n.graph().dummyChains=[],s(n.edges(),function(r){Cr(n,r)})}function Cr(n,r){var e=r.v,t=n.node(e).rank,o=r.w,i=n.node(o).rank,a=r.name,u=n.edge(r),d=u.labelRank;if(i!==t+1){n.removeEdge(r);var c=void 0,f,h;for(h=0,++t;t<i;++h,++t)u.points=[],c={width:0,height:0,edgeLabel:u,edgeObj:r,rank:t},f=O(n,"edge",c,"_d"),t===d&&(c.width=u.width,c.height=u.height,c.dummy="edge-label",c.labelpos=u.labelpos),n.setEdge(e,f,{weight:u.weight},a),h===0&&n.graph().dummyChains.push(f),e=f;n.setEdge(e,o,{weight:u.weight},a)}}function $r(n){s(n.graph().dummyChains,function(r){var e=n.node(r),t=e.edgeLabel,o;for(n.setEdge(e.edgeObj,t);e.dummy;)o=n.successors(r)[0],n.removeNode(r),t.points.push({x:e.x,y:e.y}),e.dummy==="edge-label"&&(t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height),r=o,e=n.node(r)})}function U(n){var r={};function e(t){var o=n.node(t);if(Object.prototype.hasOwnProperty.call(r,t))return o.rank;r[t]=!0;var i=_(p(n.outEdges(t),function(a){return e(a.w)-n.edge(a).minlen}));return(i===Number.POSITIVE_INFINITY||i===void 0||i===null)&&(i=0),o.rank=i}s(n.sources(),e)}function P(n,r){return n.node(r.w).rank-n.node(r.v).rank-n.edge(r).minlen}function kn(n){var r=new m({directed:!1}),e=n.nodes()[0],t=n.nodeCount();r.setNode(e,{});for(var o,i;Gr(r,n)<t;)o=Fr(r,n),i=r.hasNode(o.v)?P(n,o):-P(n,o),Vr(r,n,i);return r}function Gr(n,r){function e(t){s(r.nodeEdges(t),function(o){var i=o.v,a=t===i?o.w:i;!n.hasNode(a)&&!P(r,o)&&(n.setNode(a,{}),n.setEdge(t,a,{}),e(a))})}return s(n.nodes(),e),n.nodeCount()}function Fr(n,r){return Q(r.edges(),function(e){if(n.hasNode(e.v)!==n.hasNode(e.w))return P(r,e)})}function Vr(n,r,e){s(n.nodes(),function(t){r.node(t).rank+=e})}function xn(n,r,e){pn(r)||(r=[r]);var t=(n.isDirected()?n.successors:n.neighbors).bind(n),o=[],i={};return s(r,function(a){if(!n.hasNode(a))throw new Error("Graph does not have node: "+a);En(n,a,e==="post",i,t,o)}),o}function En(n,r,e,t,o,i){Object.prototype.hasOwnProperty.call(t,r)||(t[r]=!0,e||i.push(r),s(o(r),function(a){En(n,a,e,t,o,i)}),e&&i.push(r))}function Br(n,r){return xn(n,r,"post")}function Yr(n,r){return xn(n,r,"pre")}k.initLowLimValues=X;k.initCutValues=Z;k.calcCutValue=Nn;k.leaveEdge=In;k.enterEdge=_n;k.exchangeEdges=Pn;function k(n){n=Nr(n),U(n);var r=kn(n);X(r),Z(r,n);for(var e,t;e=In(r);)t=_n(r,n,e),Pn(r,n,e,t)}function Z(n,r){var e=Br(n,n.nodes());e=e.slice(0,e.length-1),s(e,function(t){qr(n,r,t)})}function qr(n,r,e){var t=n.node(e),o=t.parent;n.edge(e,o).cutvalue=Nn(n,r,e)}function Nn(n,r,e){var t=n.node(e),o=t.parent,i=!0,a=r.edge(e,o),u=0;return a||(i=!1,a=r.edge(o,e)),u=a.weight,s(r.nodeEdges(e),function(d){var c=d.v===e,f=c?d.w:d.v;if(f!==o){var h=c===i,g=r.edge(d).weight;if(u+=h?g:-g,Ar(n,e,f)){var v=n.edge(e,f).cutvalue;u+=h?-v:v}}}),u}function X(n,r){arguments.length<2&&(r=n.nodes()[0]),On(n,{},1,r)}function On(n,r,e,t,o){var i=e,a=n.node(t);return r[t]=!0,s(n.neighbors(t),function(u){Object.prototype.hasOwnProperty.call(r,u)||(e=On(n,r,e,u,t))}),a.low=i,a.lim=e++,o?a.parent=o:delete a.parent,e}function In(n){return J(n.edges(),function(r){return n.edge(r).cutvalue<0})}function _n(n,r,e){var t=e.v,o=e.w;r.hasEdge(t,o)||(t=e.w,o=e.v);var i=n.node(t),a=n.node(o),u=i,d=!1;i.lim>a.lim&&(u=a,d=!0);var c=L(r.edges(),function(f){return d===un(n,n.node(f.v),u)&&d!==un(n,n.node(f.w),u)});return Q(c,function(f){return P(r,f)})}function Pn(n,r,e,t){var o=e.v,i=e.w;n.removeEdge(o,i),n.setEdge(t.v,t.w,{}),X(n),Z(n,r),zr(n,r)}function zr(n,r){var e=J(n.nodes(),function(o){return!r.node(o).parent}),t=Yr(n,e);t=t.slice(1),s(t,function(o){var i=n.node(o).parent,a=r.edge(o,i),u=!1;a||(a=r.edge(i,o),u=!0),r.node(o).rank=r.node(i).rank+(u?a.minlen:-a.minlen)})}function Ar(n,r,e){return n.hasEdge(r,e)}function un(n,r,e){return e.low<=r.lim&&r.lim<=e.lim}function Dr(n){switch(n.graph().ranker){case"network-simplex":dn(n);break;case"tight-tree":Jr(n);break;case"longest-path":Hr(n);break;default:dn(n)}}var Hr=U;function Jr(n){U(n),kn(n)}function dn(n){k(n)}function Qr(n){var r=O(n,"root",{},"_root"),e=Kr(n),t=y(x(e))-1,o=2*t+1;n.graph().nestingRoot=r,s(n.edges(),function(a){n.edge(a).minlen*=o});var i=Ur(n)+1;s(n.children(),function(a){Ln(n,r,o,i,t,e,a)}),n.graph().nodeRankFactor=o}function Ln(n,r,e,t,o,i,a){var u=n.children(a);if(!u.length){a!==r&&n.setEdge(r,a,{weight:0,minlen:e});return}var d=tn(n,"_bt"),c=tn(n,"_bb"),f=n.node(a);n.setParent(d,a),f.borderTop=d,n.setParent(c,a),f.borderBottom=c,s(u,function(h){Ln(n,r,e,t,o,i,h);var g=n.node(h),v=g.borderTop?g.borderTop:h,l=g.borderBottom?g.borderBottom:h,w=g.borderTop?t:2*t,I=v!==l?1:o-i[a]+1;n.setEdge(d,v,{weight:w,minlen:I,nestingEdge:!0}),n.setEdge(l,c,{weight:w,minlen:I,nestingEdge:!0})}),n.parent(a)||n.setEdge(r,d,{weight:0,minlen:o+i[a]})}function Kr(n){var r={};function e(t,o){var i=n.children(t);i&&i.length&&s(i,function(a){e(a,o+1)}),r[t]=o}return s(n.children(),function(t){e(t,1)}),r}function Ur(n){return T(n.edges(),function(r,e){return r+n.edge(e).weight},0)}function Zr(n){var r=n.graph();n.removeNode(r.nestingRoot),delete r.nestingRoot,s(n.edges(),function(e){var t=n.edge(e);t.nestingEdge&&n.removeEdge(e)})}function Xr(n,r,e){var t={},o;s(e,function(i){for(var a=n.parent(i),u,d;a;){if(u=n.parent(a),u?(d=t[u],t[u]=a):(d=o,o=a),d&&d!==a){r.setEdge(d,a);return}a=u}})}function Wr(n,r,e){var t=ne(n),o=new m({compound:!0}).setGraph({root:t}).setDefaultNodeLabel(function(i){return n.node(i)});return s(n.nodes(),function(i){var a=n.node(i),u=n.parent(i);(a.rank===r||a.minRank<=r&&r<=a.maxRank)&&(o.setNode(i),o.setParent(i,u||t),s(n[e](i),function(d){var c=d.v===i?d.w:d.v,f=o.edge(c,i),h=b(f)?0:f.weight;o.setEdge(c,i,{weight:n.edge(d).weight+h})}),Object.prototype.hasOwnProperty.call(a,"minRank")&&o.setNode(i,{borderLeft:a.borderLeft[r],borderRight:a.borderRight[r]}))}),o}function ne(n){for(var r;n.hasNode(r=K("_root")););return r}function re(n,r){for(var e=0,t=1;t<r.length;++t)e+=ee(n,r[t-1],r[t]);return e}function ee(n,r,e){for(var t=vr(e,p(e,function(c,f){return f})),o=N(p(r,function(c){return R(p(n.outEdges(c),function(f){return{pos:t[f.w],weight:n.edge(f).weight}}),"pos")})),i=1;i<e.length;)i<<=1;var a=2*i-1;i-=1;var u=p(new Array(a),function(){return 0}),d=0;return s(o.forEach(function(c){var f=c.pos+i;u[f]+=c.weight;for(var h=0;f>0;)f%2&&(h+=u[f+1]),f=f-1>>1,u[f]+=c.weight;d+=c.weight*h})),d}function te(n){var r={},e=L(n.nodes(),function(u){return!n.children(u).length}),t=y(p(e,function(u){return n.node(u).rank})),o=p(E(t+1),function(){return[]});function i(u){if(!vn(r,u)){r[u]=!0;var d=n.node(u);o[d.rank].push(u),s(n.successors(u),i)}}var a=R(e,function(u){return n.node(u).rank});return s(a,i),o}function oe(n,r){return p(r,function(e){var t=n.inEdges(e);if(t.length){var o=T(t,function(i,a){var u=n.edge(a),d=n.node(a.v);return{sum:i.sum+u.weight*d.order,weight:i.weight+u.weight}},{sum:0,weight:0});return{v:e,barycenter:o.sum/o.weight,weight:o.weight}}else return{v:e}})}function ie(n,r){var e={};s(n,function(o,i){var a=e[o.v]={indegree:0,in:[],out:[],vs:[o.v],i};b(o.barycenter)||(a.barycenter=o.barycenter,a.weight=o.weight)}),s(r.edges(),function(o){var i=e[o.v],a=e[o.w];!b(i)&&!b(a)&&(a.indegree++,i.out.push(e[o.w]))});var t=L(e,function(o){return!o.indegree});return ae(t)}function ae(n){var r=[];function e(i){return function(a){a.merged||(b(a.barycenter)||b(i.barycenter)||a.barycenter>=i.barycenter)&&ue(i,a)}}function t(i){return function(a){a.in.push(i),--a.indegree===0&&n.push(a)}}for(;n.length;){var o=n.pop();r.push(o),s(o.in.reverse(),e(o)),s(o.out,t(o))}return p(L(r,function(i){return!i.merged}),function(i){return M(i,["vs","i","barycenter","weight"])})}function ue(n,r){var e=0,t=0;n.weight&&(e+=n.barycenter*n.weight,t+=n.weight),r.weight&&(e+=r.barycenter*r.weight,t+=r.weight),n.vs=r.vs.concat(n.vs),n.barycenter=e/t,n.weight=t,n.i=Math.min(r.i,n.i),r.merged=!0}function de(n,r){var e=_r(n,function(f){return Object.prototype.hasOwnProperty.call(f,"barycenter")}),t=e.lhs,o=R(e.rhs,function(f){return-f.i}),i=[],a=0,u=0,d=0;t.sort(ce(!!r)),d=cn(i,o,d),s(t,function(f){d+=f.vs.length,i.push(f.vs),a+=f.barycenter*f.weight,u+=f.weight,d=cn(i,o,d)});var c={vs:N(i)};return u&&(c.barycenter=a/u,c.weight=u),c}function cn(n,r,e){for(var t;r.length&&(t=j(r)).i<=e;)r.pop(),n.push(t.vs),e++;return e}function ce(n){return function(r,e){return r.barycenter<e.barycenter?-1:r.barycenter>e.barycenter?1:n?e.i-r.i:r.i-e.i}}function Rn(n,r,e,t){var o=n.children(r),i=n.node(r),a=i?i.borderLeft:void 0,u=i?i.borderRight:void 0,d={};a&&(o=L(o,function(l){return l!==a&&l!==u}));var c=oe(n,o);s(c,function(l){if(n.children(l.v).length){var w=Rn(n,l.v,e,t);d[l.v]=w,Object.prototype.hasOwnProperty.call(w,"barycenter")&&fe(l,w)}});var f=ie(c,e);se(f,d);var h=de(f,t);if(a&&(h.vs=N([a,h.vs,u]),n.predecessors(a).length)){var g=n.node(n.predecessors(a)[0]),v=n.node(n.predecessors(u)[0]);Object.prototype.hasOwnProperty.call(h,"barycenter")||(h.barycenter=0,h.weight=0),h.barycenter=(h.barycenter*h.weight+g.order+v.order)/(h.weight+2),h.weight+=2}return h}function se(n,r){s(n,function(e){e.vs=N(e.vs.map(function(t){return r[t]?r[t].vs:t}))})}function fe(n,r){b(n.barycenter)?(n.barycenter=r.barycenter,n.weight=r.weight):(n.barycenter=(n.barycenter*n.weight+r.barycenter*r.weight)/(n.weight+r.weight),n.weight+=r.weight)}function he(n){var r=mn(n),e=sn(n,E(1,r+1),"inEdges"),t=sn(n,E(r-1,-1,-1),"outEdges"),o=te(n);fn(n,o);for(var i=Number.POSITIVE_INFINITY,a,u=0,d=0;d<4;++u,++d){ge(u%2?e:t,u%4>=2),o=C(n);var c=re(n,o);c<i&&(d=0,a=Wn(o),i=c)}fn(n,a)}function sn(n,r,e){return p(r,function(t){return Wr(n,t,e)})}function ge(n,r){var e=new m;s(n,function(t){var o=t.graph().root,i=Rn(t,o,e,r);s(i.vs,function(a,u){t.node(a).order=u}),Xr(t,e,i.vs)})}function fn(n,r){s(r,function(e){s(e,function(t,o){n.node(t).order=o})})}function ve(n){var r=pe(n);s(n.graph().dummyChains,function(e){for(var t=n.node(e),o=t.edgeObj,i=le(n,r,o.v,o.w),a=i.path,u=i.lca,d=0,c=a[d],f=!0;e!==o.w;){if(t=n.node(e),f){for(;(c=a[d])!==u&&n.node(c).maxRank<t.rank;)d++;c===u&&(f=!1)}if(!f){for(;d<a.length-1&&n.node(c=a[d+1]).minRank<=t.rank;)d++;c=a[d]}n.setParent(e,c),e=n.successors(e)[0]}})}function le(n,r,e,t){var o=[],i=[],a=Math.min(r[e].low,r[t].low),u=Math.max(r[e].lim,r[t].lim),d,c;d=e;do d=n.parent(d),o.push(d);while(d&&(r[d].low>a||u>r[d].lim));for(c=d,d=t;(d=n.parent(d))!==c;)i.push(d);return{path:o.concat(i.reverse()),lca:c}}function pe(n){var r={},e=0;function t(o){var i=e;s(n.children(o),t),r[o]={low:i,lim:e++}}return s(n.children(),t),r}function we(n,r){var e={};function t(o,i){var a=0,u=0,d=o.length,c=j(i);return s(i,function(f,h){var g=me(n,f),v=g?n.node(g).order:d;(g||f===c)&&(s(i.slice(u,h+1),function(l){s(n.predecessors(l),function(w){var I=n.node(w),W=I.order;(W<a||v<W)&&!(I.dummy&&n.node(l).dummy)&&jn(e,w,l)})}),u=h+1,a=v)}),i}return T(r,t),e}function be(n,r){var e={};function t(i,a,u,d,c){var f;s(E(a,u),function(h){f=i[h],n.node(f).dummy&&s(n.predecessors(f),function(g){var v=n.node(g);v.dummy&&(v.order<d||v.order>c)&&jn(e,g,f)})})}function o(i,a){var u=-1,d,c=0;return s(a,function(f,h){if(n.node(f).dummy==="border"){var g=n.predecessors(f);g.length&&(d=n.node(g[0]).order,t(a,c,h,u,d),c=h,u=d)}t(a,c,a.length,d,i.length)}),a}return T(r,o),e}function me(n,r){if(n.node(r).dummy)return J(n.predecessors(r),function(e){return n.node(e).dummy})}function jn(n,r,e){if(r>e){var t=r;r=e,e=t}Object.prototype.hasOwnProperty.call(n,r)||Object.defineProperty(n,r,{enumerable:!0,configurable:!0,value:{},writable:!0});var o=n[r];Object.defineProperty(o,e,{enumerable:!0,configurable:!0,value:!0,writable:!0})}function ye(n,r,e){if(r>e){var t=r;r=e,e=t}return!!n[r]&&Object.prototype.hasOwnProperty.call(n[r],e)}function ke(n,r,e,t){var o={},i={},a={};return s(r,function(u){s(u,function(d,c){o[d]=d,i[d]=d,a[d]=c})}),s(r,function(u){var d=-1;s(u,function(c){var f=t(c);if(f.length){f=R(f,function(w){return a[w]});for(var h=(f.length-1)/2,g=Math.floor(h),v=Math.ceil(h);g<=v;++g){var l=f[g];i[c]===c&&d<a[l]&&!ye(e,c,l)&&(i[l]=c,i[c]=o[c]=o[l],d=a[l])}}})}),{root:o,align:i}}function xe(n,r,e,t,o){var i={},a=Ee(n,r,e,o),u=o?"borderLeft":"borderRight";function d(h,g){for(var v=a.nodes(),l=v.pop(),w={};l;)w[l]?h(l):(w[l]=!0,v.push(l),v=v.concat(g(l))),l=v.pop()}function c(h){i[h]=a.inEdges(h).reduce(function(g,v){return Math.max(g,i[v.v]+a.edge(v))},0)}function f(h){var g=a.outEdges(h).reduce(function(l,w){return Math.min(l,i[w.w]-a.edge(w))},Number.POSITIVE_INFINITY),v=n.node(h);g!==Number.POSITIVE_INFINITY&&v.borderType!==u&&(i[h]=Math.max(i[h],g))}return d(c,a.predecessors.bind(a)),d(f,a.successors.bind(a)),s(t,function(h){i[h]=i[e[h]]}),i}function Ee(n,r,e,t){var o=new m,i=n.graph(),a=Pe(i.nodesep,i.edgesep,t);return s(r,function(u){var d;s(u,function(c){var f=e[c];if(o.setNode(f),d){var h=e[d],g=o.edge(h,f);o.setEdge(h,f,Math.max(a(n,c,d),g||0))}d=c})}),o}function Ne(n,r){return Q(x(r),function(e){var t=Number.NEGATIVE_INFINITY,o=Number.POSITIVE_INFINITY;return nr(e,function(i,a){var u=Le(n,a)/2;t=Math.max(i+u,t),o=Math.min(i-u,o)}),t-o})}function Oe(n,r){var e=x(r),t=_(e),o=y(e);s(["u","d"],function(i){s(["l","r"],function(a){var u=i+a,d=n[u],c;if(d!==r){var f=x(d);c=a==="l"?t-_(f):o-y(f),c&&(n[u]=S(d,function(h){return h+c}))}})})}function Ie(n,r){return S(n.ul,function(e,t){if(r)return n[r.toLowerCase()][t];var o=R(p(n,t));return(o[1]+o[2])/2})}function _e(n){var r=C(n),e=A(we(n,r),be(n,r)),t={},o;s(["u","d"],function(a){o=a==="u"?r:x(r).reverse(),s(["l","r"],function(u){u==="r"&&(o=p(o,function(h){return x(h).reverse()}));var d=(a==="u"?n.predecessors:n.successors).bind(n),c=ke(n,o,e,d),f=xe(n,o,c.root,c.align,u==="r");u==="r"&&(f=S(f,function(h){return-h})),t[a+u]=f})});var i=Ne(n,t);return Oe(t,i),Ie(t,n.graph().align)}function Pe(n,r,e){return function(t,o,i){var a=t.node(o),u=t.node(i),d=0,c;if(d+=a.width/2,Object.prototype.hasOwnProperty.call(a,"labelpos"))switch(a.labelpos.toLowerCase()){case"l":c=-a.width/2;break;case"r":c=a.width/2;break}if(c&&(d+=e?c:-c),c=0,d+=(a.dummy?r:n)/2,d+=(u.dummy?r:n)/2,d+=u.width/2,Object.prototype.hasOwnProperty.call(u,"labelpos"))switch(u.labelpos.toLowerCase()){case"l":c=u.width/2;break;case"r":c=-u.width/2;break}return c&&(d+=e?c:-c),c=0,d}}function Le(n,r){return n.node(r).width}function Re(n){n=bn(n),je(n),rr(_e(n),function(r,e){n.node(e).x=r})}function je(n){var r=C(n),e=n.graph().ranksep,t=0;s(r,function(o){var i=y(p(o,function(a){return n.node(a).height}));s(o,function(a){n.node(a).y=t+i/2}),t+=i+e})}function it(n,r){var e=Pr;e("layout",()=>{var t=e(" buildLayoutGraph",()=>qe(n));e(" runLayout",()=>Me(t,e)),e(" updateInputGraph",()=>Te(n,t))})}function Me(n,r){r(" makeSpaceForEdgeLabels",()=>ze(n)),r(" removeSelfEdges",()=>Xe(n)),r(" acyclic",()=>kr(n)),r(" nestingGraph.run",()=>Qr(n)),r(" rank",()=>Dr(bn(n))),r(" injectEdgeLabelProxies",()=>Ae(n)),r(" removeEmptyRanks",()=>Ir(n)),r(" nestingGraph.cleanup",()=>Zr(n)),r(" normalizeRanks",()=>Or(n)),r(" assignRankMinMax",()=>De(n)),r(" removeEdgeLabelProxies",()=>He(n)),r(" normalize.run",()=>Sr(n)),r(" parentDummyChains",()=>ve(n)),r(" addBorderSegments",()=>Lr(n)),r(" order",()=>he(n)),r(" insertSelfEdges",()=>We(n)),r(" adjustCoordinateSystem",()=>Rr(n)),r(" position",()=>Re(n)),r(" positionSelfEdges",()=>nt(n)),r(" removeBorderNodes",()=>Ze(n)),r(" normalize.undo",()=>$r(n)),r(" fixupEdgeLabelCoords",()=>Ke(n)),r(" undoCoordinateSystem",()=>jr(n)),r(" translateGraph",()=>Je(n)),r(" assignNodeIntersects",()=>Qe(n)),r(" reversePoints",()=>Ue(n)),r(" acyclic.undo",()=>Er(n))}function Te(n,r){s(n.nodes(),function(e){var t=n.node(e),o=r.node(e);t&&(t.x=o.x,t.y=o.y,r.children(e).length&&(t.width=o.width,t.height=o.height))}),s(n.edges(),function(e){var t=n.edge(e),o=r.edge(e);t.points=o.points,Object.prototype.hasOwnProperty.call(o,"x")&&(t.x=o.x,t.y=o.y)}),n.graph().width=r.graph().width,n.graph().height=r.graph().height}var Se=["nodesep","edgesep","ranksep","marginx","marginy"],Ce={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},$e=["acyclicer","ranker","rankdir","align"],Ge=["width","height"],Fe={width:0,height:0},Ve=["minlen","weight","width","height","labeloffset"],Be={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},Ye=["labelpos"];function qe(n){var r=new m({multigraph:!0,compound:!0}),e=q(n.graph());return r.setGraph(A({},Ce,Y(e,Se),M(e,$e))),s(n.nodes(),function(t){var o=q(n.node(t));r.setNode(t,Gn(Y(o,Ge),Fe)),r.setParent(t,n.parent(t))}),s(n.edges(),function(t){var o=q(n.edge(t));r.setEdge(t,A({},Be,Y(o,Ve),M(o,Ye)))}),r}function ze(n){var r=n.graph();r.ranksep/=2,s(n.edges(),function(e){var t=n.edge(e);t.minlen*=2,t.labelpos.toLowerCase()!=="c"&&(r.rankdir==="TB"||r.rankdir==="BT"?t.width+=t.labeloffset:t.height+=t.labeloffset)})}function Ae(n){s(n.edges(),function(r){var e=n.edge(r);if(e.width&&e.height){var t=n.node(r.v),o=n.node(r.w),i={rank:(o.rank-t.rank)/2+t.rank,e:r};O(n,"edge-proxy",i,"_ep")}})}function De(n){var r=0;s(n.nodes(),function(e){var t=n.node(e);t.borderTop&&(t.minRank=n.node(t.borderTop).rank,t.maxRank=n.node(t.borderBottom).rank,r=y(r,t.maxRank))}),n.graph().maxRank=r}function He(n){s(n.nodes(),function(r){var e=n.node(r);e.dummy==="edge-proxy"&&(n.edge(e.e).labelRank=e.rank,n.removeNode(r))})}function Je(n){var r=Number.POSITIVE_INFINITY,e=0,t=Number.POSITIVE_INFINITY,o=0,i=n.graph(),a=i.marginx||0,u=i.marginy||0;function d(c){var f=c.x,h=c.y,g=c.width,v=c.height;r=Math.min(r,f-g/2),e=Math.max(e,f+g/2),t=Math.min(t,h-v/2),o=Math.max(o,h+v/2)}s(n.nodes(),function(c){d(n.node(c))}),s(n.edges(),function(c){var f=n.edge(c);Object.prototype.hasOwnProperty.call(f,"x")&&d(f)}),r-=a,t-=u,s(n.nodes(),function(c){var f=n.node(c);f.x-=r,f.y-=t}),s(n.edges(),function(c){var f=n.edge(c);s(f.points,function(h){h.x-=r,h.y-=t}),Object.prototype.hasOwnProperty.call(f,"x")&&(f.x-=r),Object.prototype.hasOwnProperty.call(f,"y")&&(f.y-=t)}),i.width=e-r+a,i.height=o-t+u}function Qe(n){s(n.edges(),function(r){var e=n.edge(r),t=n.node(r.v),o=n.node(r.w),i,a;e.points?(i=e.points[0],a=e.points[e.points.length-1]):(e.points=[],i=o,a=t),e.points.unshift(en(t,i)),e.points.push(en(o,a))})}function Ke(n){s(n.edges(),function(r){var e=n.edge(r);if(Object.prototype.hasOwnProperty.call(e,"x"))switch((e.labelpos==="l"||e.labelpos==="r")&&(e.width-=e.labeloffset),e.labelpos){case"l":e.x-=e.width/2+e.labeloffset;break;case"r":e.x+=e.width/2+e.labeloffset;break}})}function Ue(n){s(n.edges(),function(r){var e=n.edge(r);e.reversed&&e.points.reverse()})}function Ze(n){s(n.nodes(),function(r){if(n.children(r).length){var e=n.node(r),t=n.node(e.borderTop),o=n.node(e.borderBottom),i=n.node(j(e.borderLeft)),a=n.node(j(e.borderRight));e.width=Math.abs(a.x-i.x),e.height=Math.abs(o.y-t.y),e.x=i.x+e.width/2,e.y=t.y+e.height/2}}),s(n.nodes(),function(r){n.node(r).dummy==="border"&&n.removeNode(r)})}function Xe(n){s(n.edges(),function(r){if(r.v===r.w){var e=n.node(r.v);e.selfEdges||(e.selfEdges=[]),e.selfEdges.push({e:r,label:n.edge(r)}),n.removeEdge(r)}})}function We(n){var r=C(n);s(r,function(e){var t=0;s(e,function(o,i){var a=n.node(o);a.order=i+t,s(a.selfEdges,function(u){O(n,"selfedge",{width:u.label.width,height:u.label.height,rank:a.rank,order:i+ ++t,e:u.e,label:u.label},"_se")}),delete a.selfEdges})})}function nt(n){s(n.nodes(),function(r){var e=n.node(r);if(e.dummy==="selfedge"){var t=n.node(e.e.v),o=t.x+t.width/2,i=t.y,a=e.x-o,u=t.height/2;n.setEdge(e.e,e.label),n.removeNode(r),e.label.points=[{x:o+2*a/3,y:i-u},{x:o+5*a/6,y:i-u},{x:o+a,y:i},{x:o+5*a/6,y:i+u},{x:o+2*a/3,y:i+u}],e.label.x=e.x,e.label.y=e.y}})}function Y(n,r){return S(M(n,r),Number)}function q(n){var r={};return s(n,function(e,t){r[t.toLowerCase()]=e}),r}export{it as o};
@@ -1,4 +1,4 @@
1
- import{d as ce}from"./chunk-55IACEB6-_r7qMy9s-CVsj1DxS.js";import{d as he}from"./chunk-QN33PNHL-C8-RyAc3-DADdydNm.js";import{R as a,O as I,Z as le,X as de,M,c as X,w as P,b9 as ge,aU as ue,aV as pe,aW as ye}from"./index-CIi9dO9d.js";const m=[];for(let e=0;e<256;++e)m.push((e+256).toString(16).slice(1));function fe(e,s=0){return(m[e[s+0]]+m[e[s+1]]+m[e[s+2]]+m[e[s+3]]+"-"+m[e[s+4]]+m[e[s+5]]+"-"+m[e[s+6]]+m[e[s+7]]+"-"+m[e[s+8]]+m[e[s+9]]+"-"+m[e[s+10]]+m[e[s+11]]+m[e[s+12]]+m[e[s+13]]+m[e[s+14]]+m[e[s+15]]).toLowerCase()}let W;const me=new Uint8Array(16);function Ee(){if(!W){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");W=crypto.getRandomValues.bind(crypto)}return W(me)}const _e=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),ne={randomUUID:_e};function be(e,s,i){var c;if(ne.randomUUID&&!e)return ne.randomUUID();e=e||{};const h=e.random??((c=e.rng)==null?void 0:c.call(e))??Ee();if(h.length<16)throw new Error("Random bytes length must be >= 16");return h[6]=h[6]&15|64,h[8]=h[8]&63|128,fe(h)}var q=function(){var e=a(function(S,t,r,o){for(r=r||{},o=S.length;o--;r[S[o]]=t);return r},"o"),s=[1,4],i=[1,13],c=[1,12],h=[1,15],y=[1,16],u=[1,20],g=[1,19],L=[6,7,8],p=[1,26],C=[1,24],z=[1,25],b=[6,7,11],Y=[1,6,13,15,16,19,22],J=[1,33],K=[1,34],R=[1,6,7,11,13,15,16,19,22],B={trace:a(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:a(function(S,t,r,o,l,n,E){var d=n.length-1;switch(l){case 6:case 7:return o;case 8:o.getLogger().trace("Stop NL ");break;case 9:o.getLogger().trace("Stop EOF ");break;case 11:o.getLogger().trace("Stop NL2 ");break;case 12:o.getLogger().trace("Stop EOF2 ");break;case 15:o.getLogger().info("Node: ",n[d].id),o.addNode(n[d-1].length,n[d].id,n[d].descr,n[d].type);break;case 16:o.getLogger().trace("Icon: ",n[d]),o.decorateNode({icon:n[d]});break;case 17:case 21:o.decorateNode({class:n[d]});break;case 18:o.getLogger().trace("SPACELIST");break;case 19:o.getLogger().trace("Node: ",n[d].id),o.addNode(0,n[d].id,n[d].descr,n[d].type);break;case 20:o.decorateNode({icon:n[d]});break;case 25:o.getLogger().trace("node found ..",n[d-2]),this.$={id:n[d-1],descr:n[d-1],type:o.getType(n[d-2],n[d])};break;case 26:this.$={id:n[d],descr:n[d],type:o.nodeType.DEFAULT};break;case 27:o.getLogger().trace("node found ..",n[d-3]),this.$={id:n[d-3],descr:n[d-1],type:o.getType(n[d-2],n[d])};break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:s},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:s},{6:i,7:[1,10],9:9,12:11,13:c,14:14,15:h,16:y,17:17,18:18,19:u,22:g},e(L,[2,3]),{1:[2,2]},e(L,[2,4]),e(L,[2,5]),{1:[2,6],6:i,12:21,13:c,14:14,15:h,16:y,17:17,18:18,19:u,22:g},{6:i,9:22,12:11,13:c,14:14,15:h,16:y,17:17,18:18,19:u,22:g},{6:p,7:C,10:23,11:z},e(b,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:u,22:g}),e(b,[2,18]),e(b,[2,19]),e(b,[2,20]),e(b,[2,21]),e(b,[2,23]),e(b,[2,24]),e(b,[2,26],{19:[1,30]}),{20:[1,31]},{6:p,7:C,10:32,11:z},{1:[2,7],6:i,12:21,13:c,14:14,15:h,16:y,17:17,18:18,19:u,22:g},e(Y,[2,14],{7:J,11:K}),e(R,[2,8]),e(R,[2,9]),e(R,[2,10]),e(b,[2,15]),e(b,[2,16]),e(b,[2,17]),{20:[1,35]},{21:[1,36]},e(Y,[2,13],{7:J,11:K}),e(R,[2,11]),e(R,[2,12]),{21:[1,37]},e(b,[2,25]),e(b,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:a(function(S,t){if(t.recoverable)this.trace(S);else{var r=new Error(S);throw r.hash=t,r}},"parseError"),parse:a(function(S){var t=this,r=[0],o=[],l=[null],n=[],E=this.table,d="",A=0,Q=0,se=2,V=1,re=n.slice.call(arguments,1),f=Object.create(this.lexer),x={yy:{}};for(var j in this.yy)Object.prototype.hasOwnProperty.call(this.yy,j)&&(x.yy[j]=this.yy[j]);f.setInput(S,x.yy),x.yy.lexer=f,x.yy.parser=this,typeof f.yylloc>"u"&&(f.yylloc={});var F=f.yylloc;n.push(F);var oe=f.options&&f.options.ranges;typeof x.yy.parseError=="function"?this.parseError=x.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ae(N){r.length=r.length-2*N,l.length=l.length-N,n.length=n.length-N}a(ae,"popStack");function ee(){var N;return N=o.pop()||f.lex()||V,typeof N!="number"&&(N instanceof Array&&(o=N,N=o.pop()),N=t.symbols_[N]||N),N}a(ee,"lex");for(var _,T,D,G,O={},$,k,te,U;;){if(T=r[r.length-1],this.defaultActions[T]?D=this.defaultActions[T]:((_===null||typeof _>"u")&&(_=ee()),D=E[T]&&E[T][_]),typeof D>"u"||!D.length||!D[0]){var H="";U=[];for($ in E[T])this.terminals_[$]&&$>se&&U.push("'"+this.terminals_[$]+"'");f.showPosition?H="Parse error on line "+(A+1)+`:
1
+ import{d as ce}from"./chunk-55IACEB6-_r7qMy9s-Dy635JXO.js";import{d as he}from"./chunk-QN33PNHL-C8-RyAc3-Bziqpynq.js";import{R as a,O as I,Z as le,X as de,M,c as X,w as P,b9 as ge,aU as ue,aV as pe,aW as ye}from"./index-Dwfg9sR1.js";const m=[];for(let e=0;e<256;++e)m.push((e+256).toString(16).slice(1));function fe(e,s=0){return(m[e[s+0]]+m[e[s+1]]+m[e[s+2]]+m[e[s+3]]+"-"+m[e[s+4]]+m[e[s+5]]+"-"+m[e[s+6]]+m[e[s+7]]+"-"+m[e[s+8]]+m[e[s+9]]+"-"+m[e[s+10]]+m[e[s+11]]+m[e[s+12]]+m[e[s+13]]+m[e[s+14]]+m[e[s+15]]).toLowerCase()}let W;const me=new Uint8Array(16);function Ee(){if(!W){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");W=crypto.getRandomValues.bind(crypto)}return W(me)}const _e=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),ne={randomUUID:_e};function be(e,s,i){var c;if(ne.randomUUID&&!e)return ne.randomUUID();e=e||{};const h=e.random??((c=e.rng)==null?void 0:c.call(e))??Ee();if(h.length<16)throw new Error("Random bytes length must be >= 16");return h[6]=h[6]&15|64,h[8]=h[8]&63|128,fe(h)}var q=function(){var e=a(function(S,t,r,o){for(r=r||{},o=S.length;o--;r[S[o]]=t);return r},"o"),s=[1,4],i=[1,13],c=[1,12],h=[1,15],y=[1,16],u=[1,20],g=[1,19],L=[6,7,8],p=[1,26],C=[1,24],z=[1,25],b=[6,7,11],Y=[1,6,13,15,16,19,22],J=[1,33],K=[1,34],R=[1,6,7,11,13,15,16,19,22],B={trace:a(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:a(function(S,t,r,o,l,n,E){var d=n.length-1;switch(l){case 6:case 7:return o;case 8:o.getLogger().trace("Stop NL ");break;case 9:o.getLogger().trace("Stop EOF ");break;case 11:o.getLogger().trace("Stop NL2 ");break;case 12:o.getLogger().trace("Stop EOF2 ");break;case 15:o.getLogger().info("Node: ",n[d].id),o.addNode(n[d-1].length,n[d].id,n[d].descr,n[d].type);break;case 16:o.getLogger().trace("Icon: ",n[d]),o.decorateNode({icon:n[d]});break;case 17:case 21:o.decorateNode({class:n[d]});break;case 18:o.getLogger().trace("SPACELIST");break;case 19:o.getLogger().trace("Node: ",n[d].id),o.addNode(0,n[d].id,n[d].descr,n[d].type);break;case 20:o.decorateNode({icon:n[d]});break;case 25:o.getLogger().trace("node found ..",n[d-2]),this.$={id:n[d-1],descr:n[d-1],type:o.getType(n[d-2],n[d])};break;case 26:this.$={id:n[d],descr:n[d],type:o.nodeType.DEFAULT};break;case 27:o.getLogger().trace("node found ..",n[d-3]),this.$={id:n[d-3],descr:n[d-1],type:o.getType(n[d-2],n[d])};break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:s},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:s},{6:i,7:[1,10],9:9,12:11,13:c,14:14,15:h,16:y,17:17,18:18,19:u,22:g},e(L,[2,3]),{1:[2,2]},e(L,[2,4]),e(L,[2,5]),{1:[2,6],6:i,12:21,13:c,14:14,15:h,16:y,17:17,18:18,19:u,22:g},{6:i,9:22,12:11,13:c,14:14,15:h,16:y,17:17,18:18,19:u,22:g},{6:p,7:C,10:23,11:z},e(b,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:u,22:g}),e(b,[2,18]),e(b,[2,19]),e(b,[2,20]),e(b,[2,21]),e(b,[2,23]),e(b,[2,24]),e(b,[2,26],{19:[1,30]}),{20:[1,31]},{6:p,7:C,10:32,11:z},{1:[2,7],6:i,12:21,13:c,14:14,15:h,16:y,17:17,18:18,19:u,22:g},e(Y,[2,14],{7:J,11:K}),e(R,[2,8]),e(R,[2,9]),e(R,[2,10]),e(b,[2,15]),e(b,[2,16]),e(b,[2,17]),{20:[1,35]},{21:[1,36]},e(Y,[2,13],{7:J,11:K}),e(R,[2,11]),e(R,[2,12]),{21:[1,37]},e(b,[2,25]),e(b,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:a(function(S,t){if(t.recoverable)this.trace(S);else{var r=new Error(S);throw r.hash=t,r}},"parseError"),parse:a(function(S){var t=this,r=[0],o=[],l=[null],n=[],E=this.table,d="",A=0,Q=0,se=2,V=1,re=n.slice.call(arguments,1),f=Object.create(this.lexer),x={yy:{}};for(var j in this.yy)Object.prototype.hasOwnProperty.call(this.yy,j)&&(x.yy[j]=this.yy[j]);f.setInput(S,x.yy),x.yy.lexer=f,x.yy.parser=this,typeof f.yylloc>"u"&&(f.yylloc={});var F=f.yylloc;n.push(F);var oe=f.options&&f.options.ranges;typeof x.yy.parseError=="function"?this.parseError=x.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ae(N){r.length=r.length-2*N,l.length=l.length-N,n.length=n.length-N}a(ae,"popStack");function ee(){var N;return N=o.pop()||f.lex()||V,typeof N!="number"&&(N instanceof Array&&(o=N,N=o.pop()),N=t.symbols_[N]||N),N}a(ee,"lex");for(var _,T,D,G,O={},$,k,te,U;;){if(T=r[r.length-1],this.defaultActions[T]?D=this.defaultActions[T]:((_===null||typeof _>"u")&&(_=ee()),D=E[T]&&E[T][_]),typeof D>"u"||!D.length||!D[0]){var H="";U=[];for($ in E[T])this.terminals_[$]&&$>se&&U.push("'"+this.terminals_[$]+"'");f.showPosition?H="Parse error on line "+(A+1)+`:
2
2
  `+f.showPosition()+`
3
3
  Expecting `+U.join(", ")+", got '"+(this.terminals_[_]||_)+"'":H="Parse error on line "+(A+1)+": Unexpected "+(_==V?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(H,{text:f.match,token:this.terminals_[_]||_,line:f.yylineno,loc:F,expected:U})}if(D[0]instanceof Array&&D.length>1)throw new Error("Parse Error: multiple actions possible at state: "+T+", token: "+_);switch(D[0]){case 1:r.push(_),l.push(f.yytext),n.push(f.yylloc),r.push(D[1]),_=null,Q=f.yyleng,d=f.yytext,A=f.yylineno,F=f.yylloc;break;case 2:if(k=this.productions_[D[1]][1],O.$=l[l.length-k],O._$={first_line:n[n.length-(k||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(k||1)].first_column,last_column:n[n.length-1].last_column},oe&&(O._$.range=[n[n.length-(k||1)].range[0],n[n.length-1].range[1]]),G=this.performAction.apply(O,[d,Q,A,x.yy,D[1],l,n].concat(re)),typeof G<"u")return G;k&&(r=r.slice(0,-1*k*2),l=l.slice(0,-1*k),n=n.slice(0,-1*k)),r.push(this.productions_[D[1]][0]),l.push(O.$),n.push(O._$),te=E[r[r.length-2]][r[r.length-1]],r.push(te);break;case 3:return!0}}return!0},"parse")},ie=function(){var S={EOF:1,parseError:a(function(t,r){if(this.yy.parser)this.yy.parser.parseError(t,r);else throw new Error(t)},"parseError"),setInput:a(function(t,r){return this.yy=r||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:a(function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var r=t.match(/(?:\r\n?|\n).*/g);return r?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:a(function(t){var r=t.length,o=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var l=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),o.length-1&&(this.yylineno-=o.length-1);var n=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:o?(o.length===l.length?this.yylloc.first_column:0)+l[l.length-o.length].length-o[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-r]),this.yyleng=this.yytext.length,this},"unput"),more:a(function(){return this._more=!0,this},"more"),reject:a(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
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:a(function(t){this.unput(this.match.slice(t))},"less"),pastInput:a(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:a(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:a(function(){var t=this.pastInput(),r=new Array(t.length+1).join("-");return t+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import{R as p,u as U,f as Z,l as _,s as j,o as H,n as K,O as z,c as Q,J as X,am as Y,ao as ee,ap as te,B as ae,t as ne,M as ie,aq as w,ar as re,as as R}from"./index-CIi9dO9d.js";import{m as le}from"./chunk-4BX2VUAB-DeMNg1Xd-CrtFwSE5.js";import{N as se}from"./treemap-KMMF4GRG-Dfxm7cSf-B7pg2atG.js";import{h as L}from"./arc-CZCQSTaI-COU74SO_.js";import"./_baseUniq-DRc_T5HB-BD-eiKhZ.js";import"./_basePickBy-BjEly54R-DqvpNhss.js";import"./clone-DduvFCk3-BXgbo_Py.js";function oe(e,a){return a<e?-1:a>e?1:a>=e?0:NaN}function ce(e){return e}function ue(){var e=ce,a=oe,f=null,s=w(0),o=w(R),y=w(0);function l(t){var i,c=(t=re(t)).length,d,v,x=0,u=new Array(c),r=new Array(c),h=+s.apply(this,arguments),S=Math.min(R,Math.max(-R,o.apply(this,arguments)-h)),m,b=Math.min(Math.abs(S)/c,y.apply(this,arguments)),C=b*(S<0?-1:1),g;for(i=0;i<c;++i)(g=r[u[i]=i]=+e(t[i],i,t))>0&&(x+=g);for(a!=null?u.sort(function($,A){return a(r[$],r[A])}):f!=null&&u.sort(function($,A){return f(t[$],t[A])}),i=0,v=x?(S-c*C)/x:0;i<c;++i,h=m)d=u[i],g=r[d],m=h+(g>0?g*v:0)+C,r[d]={data:t[d],index:i,value:g,startAngle:h,endAngle:m,padAngle:b};return r}return l.value=function(t){return arguments.length?(e=typeof t=="function"?t:w(+t),l):e},l.sortValues=function(t){return arguments.length?(a=t,f=null,l):a},l.sort=function(t){return arguments.length?(f=t,a=null,l):f},l.startAngle=function(t){return arguments.length?(s=typeof t=="function"?t:w(+t),l):s},l.endAngle=function(t){return arguments.length?(o=typeof t=="function"?t:w(+t),l):o},l.padAngle=function(t){return arguments.length?(y=typeof t=="function"?t:w(+t),l):y},l}var pe=ie.pie,N={sections:new Map,showData:!1},D=N.sections,B=N.showData,de=structuredClone(pe),ge=p(()=>structuredClone(de),"getConfig"),fe=p(()=>{D=new Map,B=N.showData,ne()},"clear"),he=p(({label:e,value:a})=>{if(a<0)throw new Error(`"${e}" has invalid value: ${a}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);D.has(e)||(D.set(e,a),z.debug(`added new section: ${e}, with value: ${a}`))},"addSection"),me=p(()=>D,"getSections"),xe=p(e=>{B=e},"setShowData"),we=p(()=>B,"getShowData"),V={getConfig:ge,clear:fe,setDiagramTitle:K,getDiagramTitle:H,setAccTitle:j,getAccTitle:_,setAccDescription:Z,getAccDescription:U,addSection:he,getSections:me,setShowData:xe,getShowData:we},ye=p((e,a)=>{le(e,a),a.setShowData(e.showData),e.sections.map(a.addSection)},"populateDb"),ve={parse:p(async e=>{const a=await se("pie",e);z.debug(a),ye(a,V)},"parse")},Se=p(e=>`
1
+ import{R as p,u as U,f as Z,l as _,s as j,o as H,n as K,O as z,c as Q,J as X,am as Y,ao as ee,ap as te,B as ae,t as ne,M as ie,aq as w,ar as re,as as R}from"./index-Dwfg9sR1.js";import{m as le}from"./chunk-4BX2VUAB-DeMNg1Xd-CMa4zZ7K.js";import{N as se}from"./treemap-KMMF4GRG-Dfxm7cSf-Dp6bDrrM.js";import{h as L}from"./arc-CZCQSTaI-C-VU_J9B.js";import"./_baseUniq-DRc_T5HB-BsnuNSgv.js";import"./_basePickBy-BjEly54R-XZ-uT-Uj.js";import"./clone-DduvFCk3-BjQT37Sj.js";function oe(e,a){return a<e?-1:a>e?1:a>=e?0:NaN}function ce(e){return e}function ue(){var e=ce,a=oe,f=null,s=w(0),o=w(R),y=w(0);function l(t){var i,c=(t=re(t)).length,d,v,x=0,u=new Array(c),r=new Array(c),h=+s.apply(this,arguments),S=Math.min(R,Math.max(-R,o.apply(this,arguments)-h)),m,b=Math.min(Math.abs(S)/c,y.apply(this,arguments)),C=b*(S<0?-1:1),g;for(i=0;i<c;++i)(g=r[u[i]=i]=+e(t[i],i,t))>0&&(x+=g);for(a!=null?u.sort(function($,A){return a(r[$],r[A])}):f!=null&&u.sort(function($,A){return f(t[$],t[A])}),i=0,v=x?(S-c*C)/x:0;i<c;++i,h=m)d=u[i],g=r[d],m=h+(g>0?g*v:0)+C,r[d]={data:t[d],index:i,value:g,startAngle:h,endAngle:m,padAngle:b};return r}return l.value=function(t){return arguments.length?(e=typeof t=="function"?t:w(+t),l):e},l.sortValues=function(t){return arguments.length?(a=t,f=null,l):a},l.sort=function(t){return arguments.length?(f=t,a=null,l):f},l.startAngle=function(t){return arguments.length?(s=typeof t=="function"?t:w(+t),l):s},l.endAngle=function(t){return arguments.length?(o=typeof t=="function"?t:w(+t),l):o},l.padAngle=function(t){return arguments.length?(y=typeof t=="function"?t:w(+t),l):y},l}var pe=ie.pie,N={sections:new Map,showData:!1},D=N.sections,B=N.showData,de=structuredClone(pe),ge=p(()=>structuredClone(de),"getConfig"),fe=p(()=>{D=new Map,B=N.showData,ne()},"clear"),he=p(({label:e,value:a})=>{if(a<0)throw new Error(`"${e}" has invalid value: ${a}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);D.has(e)||(D.set(e,a),z.debug(`added new section: ${e}, with value: ${a}`))},"addSection"),me=p(()=>D,"getSections"),xe=p(e=>{B=e},"setShowData"),we=p(()=>B,"getShowData"),V={getConfig:ge,clear:fe,setDiagramTitle:K,getDiagramTitle:H,setAccTitle:j,getAccTitle:_,setAccDescription:Z,getAccDescription:U,addSection:he,getSections:me,setShowData:xe,getShowData:we},ye=p((e,a)=>{le(e,a),a.setShowData(e.showData),e.sections.map(a.addSection)},"populateDb"),ve={parse:p(async e=>{const a=await se("pie",e);z.debug(a),ye(a,V)},"parse")},Se=p(e=>`
2
2
  .pieCircle{
3
3
  stroke: ${e.pieStrokeColor};
4
4
  stroke-width : ${e.pieStrokeWidth};
@@ -1,4 +1,4 @@
1
- import{R as l,f as be,u as _e,o as ee,n as Se,l as ke,s as Fe,c as zt,O as mt,e as vt,B as Pe,t as ve,M as D,at as Ce,U as te,w as Le}from"./index-CIi9dO9d.js";var Et=function(){var t=l(function(Q,n,d,c){for(d=d||{},c=Q.length;c--;d[Q[c]]=n);return d},"o"),a=[1,3],f=[1,4],u=[1,5],o=[1,6],x=[1,7],b=[1,4,5,10,12,13,14,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],h=[1,4,5,10,12,13,14,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],s=[55,56,57],_=[2,36],p=[1,37],q=[1,36],T=[1,38],y=[1,35],g=[1,43],m=[1,41],H=[1,14],C=[1,23],ct=[1,18],dt=[1,19],ut=[1,20],xt=[1,21],ft=[1,22],ot=[1,24],ht=[1,25],i=[1,26],It=[1,27],Wt=[1,28],Rt=[1,29],U=[1,32],N=[1,33],S=[1,34],k=[1,39],F=[1,40],P=[1,42],v=[1,44],Y=[1,62],M=[1,61],L=[4,5,8,10,12,13,14,18,44,47,49,55,56,57,63,64,65,66,67],wt=[1,65],Bt=[1,66],$t=[1,67],Ot=[1,68],Ut=[1,69],Nt=[1,70],Qt=[1,71],Xt=[1,72],Ht=[1,73],Yt=[1,74],Mt=[1,75],jt=[1,76],W=[4,5,6,7,8,9,10,11,12,13,14,15,18],V=[1,90],J=[1,91],Z=[1,92],tt=[1,99],et=[1,93],it=[1,96],at=[1,94],nt=[1,95],st=[1,97],rt=[1,98],bt=[1,102],Gt=[10,55,56,57],$=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],_t={trace:l(function(){},"trace"),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:"error",4:"ALPHA",5:"NUM",6:"NODE_STRING",7:"DOWN",8:"MINUS",9:"DEFAULT",10:"COMMA",11:"COLON",12:"AMP",13:"BRKT",14:"MULT",15:"UNICODE_TEXT",17:"UNIT",18:"SPACE",19:"STYLE",20:"PCT",25:"CLASSDEF",28:"QUADRANT",35:"title",36:"title_value",37:"acc_title",38:"acc_title_value",39:"acc_descr",40:"acc_descr_value",41:"acc_descr_multiline_value",42:"section",44:"point_start",45:"point_x",46:"point_y",47:"class_name",48:"X-AXIS",49:"AXIS-TEXT-DELIMITER",50:"Y-AXIS",51:"QUADRANT_1",52:"QUADRANT_2",53:"QUADRANT_3",54:"QUADRANT_4",55:"NEWLINE",56:"SEMI",57:"EOF",60:"STR",61:"MD_STR",63:"PUNCTUATION",64:"PLUS",65:"EQUALS",66:"DOT",67:"UNDERSCORE"},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:l(function(Q,n,d,c,A,e,R){var r=e.length-1;switch(A){case 23:this.$=e[r];break;case 24:this.$=e[r-1]+""+e[r];break;case 26:this.$=e[r-1]+e[r];break;case 27:this.$=[e[r].trim()];break;case 28:e[r-2].push(e[r].trim()),this.$=e[r-2];break;case 29:this.$=e[r-4],c.addClass(e[r-2],e[r]);break;case 37:this.$=[];break;case 42:this.$=e[r].trim(),c.setDiagramTitle(this.$);break;case 43:this.$=e[r].trim(),c.setAccTitle(this.$);break;case 44:case 45:this.$=e[r].trim(),c.setAccDescription(this.$);break;case 46:c.addSection(e[r].substr(8)),this.$=e[r].substr(8);break;case 47:c.addPoint(e[r-3],"",e[r-1],e[r],[]);break;case 48:c.addPoint(e[r-4],e[r-3],e[r-1],e[r],[]);break;case 49:c.addPoint(e[r-4],"",e[r-2],e[r-1],e[r]);break;case 50:c.addPoint(e[r-5],e[r-4],e[r-2],e[r-1],e[r]);break;case 51:c.setXAxisLeftText(e[r-2]),c.setXAxisRightText(e[r]);break;case 52:e[r-1].text+=" ⟶ ",c.setXAxisLeftText(e[r-1]);break;case 53:c.setXAxisLeftText(e[r]);break;case 54:c.setYAxisBottomText(e[r-2]),c.setYAxisTopText(e[r]);break;case 55:e[r-1].text+=" ⟶ ",c.setYAxisBottomText(e[r-1]);break;case 56:c.setYAxisBottomText(e[r]);break;case 57:c.setQuadrant1Text(e[r]);break;case 58:c.setQuadrant2Text(e[r]);break;case 59:c.setQuadrant3Text(e[r]);break;case 60:c.setQuadrant4Text(e[r]);break;case 64:this.$={text:e[r],type:"text"};break;case 65:this.$={text:e[r-1].text+""+e[r],type:e[r-1].type};break;case 66:this.$={text:e[r],type:"text"};break;case 67:this.$={text:e[r],type:"markdown"};break;case 68:this.$=e[r];break;case 69:this.$=e[r-1]+""+e[r];break}},"anonymous"),table:[{18:a,26:1,27:2,28:f,55:u,56:o,57:x},{1:[3]},{18:a,26:8,27:2,28:f,55:u,56:o,57:x},{18:a,26:9,27:2,28:f,55:u,56:o,57:x},t(b,[2,33],{29:10}),t(h,[2,61]),t(h,[2,62]),t(h,[2,63]),{1:[2,30]},{1:[2,31]},t(s,_,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:p,5:q,10:T,12:y,13:g,14:m,18:H,25:C,35:ct,37:dt,39:ut,41:xt,42:ft,48:ot,50:ht,51:i,52:It,53:Wt,54:Rt,60:U,61:N,63:S,64:k,65:F,66:P,67:v}),t(b,[2,34]),{27:45,55:u,56:o,57:x},t(s,[2,37]),t(s,_,{24:13,32:15,33:16,34:17,43:30,58:31,31:46,4:p,5:q,10:T,12:y,13:g,14:m,18:H,25:C,35:ct,37:dt,39:ut,41:xt,42:ft,48:ot,50:ht,51:i,52:It,53:Wt,54:Rt,60:U,61:N,63:S,64:k,65:F,66:P,67:v}),t(s,[2,39]),t(s,[2,40]),t(s,[2,41]),{36:[1,47]},{38:[1,48]},{40:[1,49]},t(s,[2,45]),t(s,[2,46]),{18:[1,50]},{4:p,5:q,10:T,12:y,13:g,14:m,43:51,58:31,60:U,61:N,63:S,64:k,65:F,66:P,67:v},{4:p,5:q,10:T,12:y,13:g,14:m,43:52,58:31,60:U,61:N,63:S,64:k,65:F,66:P,67:v},{4:p,5:q,10:T,12:y,13:g,14:m,43:53,58:31,60:U,61:N,63:S,64:k,65:F,66:P,67:v},{4:p,5:q,10:T,12:y,13:g,14:m,43:54,58:31,60:U,61:N,63:S,64:k,65:F,66:P,67:v},{4:p,5:q,10:T,12:y,13:g,14:m,43:55,58:31,60:U,61:N,63:S,64:k,65:F,66:P,67:v},{4:p,5:q,10:T,12:y,13:g,14:m,43:56,58:31,60:U,61:N,63:S,64:k,65:F,66:P,67:v},{4:p,5:q,8:Y,10:T,12:y,13:g,14:m,18:M,44:[1,57],47:[1,58],58:60,59:59,63:S,64:k,65:F,66:P,67:v},t(L,[2,64]),t(L,[2,66]),t(L,[2,67]),t(L,[2,70]),t(L,[2,71]),t(L,[2,72]),t(L,[2,73]),t(L,[2,74]),t(L,[2,75]),t(L,[2,76]),t(L,[2,77]),t(L,[2,78]),t(L,[2,79]),t(L,[2,80]),t(b,[2,35]),t(s,[2,38]),t(s,[2,42]),t(s,[2,43]),t(s,[2,44]),{3:64,4:wt,5:Bt,6:$t,7:Ot,8:Ut,9:Nt,10:Qt,11:Xt,12:Ht,13:Yt,14:Mt,15:jt,21:63},t(s,[2,53],{59:59,58:60,4:p,5:q,8:Y,10:T,12:y,13:g,14:m,18:M,49:[1,77],63:S,64:k,65:F,66:P,67:v}),t(s,[2,56],{59:59,58:60,4:p,5:q,8:Y,10:T,12:y,13:g,14:m,18:M,49:[1,78],63:S,64:k,65:F,66:P,67:v}),t(s,[2,57],{59:59,58:60,4:p,5:q,8:Y,10:T,12:y,13:g,14:m,18:M,63:S,64:k,65:F,66:P,67:v}),t(s,[2,58],{59:59,58:60,4:p,5:q,8:Y,10:T,12:y,13:g,14:m,18:M,63:S,64:k,65:F,66:P,67:v}),t(s,[2,59],{59:59,58:60,4:p,5:q,8:Y,10:T,12:y,13:g,14:m,18:M,63:S,64:k,65:F,66:P,67:v}),t(s,[2,60],{59:59,58:60,4:p,5:q,8:Y,10:T,12:y,13:g,14:m,18:M,63:S,64:k,65:F,66:P,67:v}),{45:[1,79]},{44:[1,80]},t(L,[2,65]),t(L,[2,81]),t(L,[2,82]),t(L,[2,83]),{3:82,4:wt,5:Bt,6:$t,7:Ot,8:Ut,9:Nt,10:Qt,11:Xt,12:Ht,13:Yt,14:Mt,15:jt,18:[1,81]},t(W,[2,23]),t(W,[2,1]),t(W,[2,2]),t(W,[2,3]),t(W,[2,4]),t(W,[2,5]),t(W,[2,6]),t(W,[2,7]),t(W,[2,8]),t(W,[2,9]),t(W,[2,10]),t(W,[2,11]),t(W,[2,12]),t(s,[2,52],{58:31,43:83,4:p,5:q,10:T,12:y,13:g,14:m,60:U,61:N,63:S,64:k,65:F,66:P,67:v}),t(s,[2,55],{58:31,43:84,4:p,5:q,10:T,12:y,13:g,14:m,60:U,61:N,63:S,64:k,65:F,66:P,67:v}),{46:[1,85]},{45:[1,86]},{4:V,5:J,6:Z,8:tt,11:et,13:it,16:89,17:at,18:nt,19:st,20:rt,22:88,23:87},t(W,[2,24]),t(s,[2,51],{59:59,58:60,4:p,5:q,8:Y,10:T,12:y,13:g,14:m,18:M,63:S,64:k,65:F,66:P,67:v}),t(s,[2,54],{59:59,58:60,4:p,5:q,8:Y,10:T,12:y,13:g,14:m,18:M,63:S,64:k,65:F,66:P,67:v}),t(s,[2,47],{22:88,16:89,23:100,4:V,5:J,6:Z,8:tt,11:et,13:it,17:at,18:nt,19:st,20:rt}),{46:[1,101]},t(s,[2,29],{10:bt}),t(Gt,[2,27],{16:103,4:V,5:J,6:Z,8:tt,11:et,13:it,17:at,18:nt,19:st,20:rt}),t($,[2,25]),t($,[2,13]),t($,[2,14]),t($,[2,15]),t($,[2,16]),t($,[2,17]),t($,[2,18]),t($,[2,19]),t($,[2,20]),t($,[2,21]),t($,[2,22]),t(s,[2,49],{10:bt}),t(s,[2,48],{22:88,16:89,23:104,4:V,5:J,6:Z,8:tt,11:et,13:it,17:at,18:nt,19:st,20:rt}),{4:V,5:J,6:Z,8:tt,11:et,13:it,16:89,17:at,18:nt,19:st,20:rt,22:105},t($,[2,26]),t(s,[2,50],{10:bt}),t(Gt,[2,28],{16:103,4:V,5:J,6:Z,8:tt,11:et,13:it,17:at,18:nt,19:st,20:rt})],defaultActions:{8:[2,30],9:[2,31]},parseError:l(function(Q,n){if(n.recoverable)this.trace(Q);else{var d=new Error(Q);throw d.hash=n,d}},"parseError"),parse:l(function(Q){var n=this,d=[0],c=[],A=[null],e=[],R=this.table,r="",pt=0,Kt=0,Te=2,Vt=1,qe=e.slice.call(arguments,1),E=Object.create(this.lexer),G={yy:{}};for(var St in this.yy)Object.prototype.hasOwnProperty.call(this.yy,St)&&(G.yy[St]=this.yy[St]);E.setInput(Q,G.yy),G.yy.lexer=E,G.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var kt=E.yylloc;e.push(kt);var me=E.options&&E.options.ranges;typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ae(B){d.length=d.length-2*B,A.length=A.length-B,e.length=e.length-B}l(Ae,"popStack");function Jt(){var B;return B=c.pop()||E.lex()||Vt,typeof B!="number"&&(B instanceof Array&&(c=B,B=c.pop()),B=n.symbols_[B]||B),B}l(Jt,"lex");for(var w,K,O,Ft,lt={},yt,j,Zt,Tt;;){if(K=d[d.length-1],this.defaultActions[K]?O=this.defaultActions[K]:((w===null||typeof w>"u")&&(w=Jt()),O=R[K]&&R[K][w]),typeof O>"u"||!O.length||!O[0]){var Pt="";Tt=[];for(yt in R[K])this.terminals_[yt]&&yt>Te&&Tt.push("'"+this.terminals_[yt]+"'");E.showPosition?Pt="Parse error on line "+(pt+1)+`:
1
+ import{R as l,f as be,u as _e,o as ee,n as Se,l as ke,s as Fe,c as zt,O as mt,e as vt,B as Pe,t as ve,M as D,at as Ce,U as te,w as Le}from"./index-Dwfg9sR1.js";var Et=function(){var t=l(function(Q,n,d,c){for(d=d||{},c=Q.length;c--;d[Q[c]]=n);return d},"o"),a=[1,3],f=[1,4],u=[1,5],o=[1,6],x=[1,7],b=[1,4,5,10,12,13,14,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],h=[1,4,5,10,12,13,14,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],s=[55,56,57],_=[2,36],p=[1,37],q=[1,36],T=[1,38],y=[1,35],g=[1,43],m=[1,41],H=[1,14],C=[1,23],ct=[1,18],dt=[1,19],ut=[1,20],xt=[1,21],ft=[1,22],ot=[1,24],ht=[1,25],i=[1,26],It=[1,27],Wt=[1,28],Rt=[1,29],U=[1,32],N=[1,33],S=[1,34],k=[1,39],F=[1,40],P=[1,42],v=[1,44],Y=[1,62],M=[1,61],L=[4,5,8,10,12,13,14,18,44,47,49,55,56,57,63,64,65,66,67],wt=[1,65],Bt=[1,66],$t=[1,67],Ot=[1,68],Ut=[1,69],Nt=[1,70],Qt=[1,71],Xt=[1,72],Ht=[1,73],Yt=[1,74],Mt=[1,75],jt=[1,76],W=[4,5,6,7,8,9,10,11,12,13,14,15,18],V=[1,90],J=[1,91],Z=[1,92],tt=[1,99],et=[1,93],it=[1,96],at=[1,94],nt=[1,95],st=[1,97],rt=[1,98],bt=[1,102],Gt=[10,55,56,57],$=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],_t={trace:l(function(){},"trace"),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:"error",4:"ALPHA",5:"NUM",6:"NODE_STRING",7:"DOWN",8:"MINUS",9:"DEFAULT",10:"COMMA",11:"COLON",12:"AMP",13:"BRKT",14:"MULT",15:"UNICODE_TEXT",17:"UNIT",18:"SPACE",19:"STYLE",20:"PCT",25:"CLASSDEF",28:"QUADRANT",35:"title",36:"title_value",37:"acc_title",38:"acc_title_value",39:"acc_descr",40:"acc_descr_value",41:"acc_descr_multiline_value",42:"section",44:"point_start",45:"point_x",46:"point_y",47:"class_name",48:"X-AXIS",49:"AXIS-TEXT-DELIMITER",50:"Y-AXIS",51:"QUADRANT_1",52:"QUADRANT_2",53:"QUADRANT_3",54:"QUADRANT_4",55:"NEWLINE",56:"SEMI",57:"EOF",60:"STR",61:"MD_STR",63:"PUNCTUATION",64:"PLUS",65:"EQUALS",66:"DOT",67:"UNDERSCORE"},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:l(function(Q,n,d,c,A,e,R){var r=e.length-1;switch(A){case 23:this.$=e[r];break;case 24:this.$=e[r-1]+""+e[r];break;case 26:this.$=e[r-1]+e[r];break;case 27:this.$=[e[r].trim()];break;case 28:e[r-2].push(e[r].trim()),this.$=e[r-2];break;case 29:this.$=e[r-4],c.addClass(e[r-2],e[r]);break;case 37:this.$=[];break;case 42:this.$=e[r].trim(),c.setDiagramTitle(this.$);break;case 43:this.$=e[r].trim(),c.setAccTitle(this.$);break;case 44:case 45:this.$=e[r].trim(),c.setAccDescription(this.$);break;case 46:c.addSection(e[r].substr(8)),this.$=e[r].substr(8);break;case 47:c.addPoint(e[r-3],"",e[r-1],e[r],[]);break;case 48:c.addPoint(e[r-4],e[r-3],e[r-1],e[r],[]);break;case 49:c.addPoint(e[r-4],"",e[r-2],e[r-1],e[r]);break;case 50:c.addPoint(e[r-5],e[r-4],e[r-2],e[r-1],e[r]);break;case 51:c.setXAxisLeftText(e[r-2]),c.setXAxisRightText(e[r]);break;case 52:e[r-1].text+=" ⟶ ",c.setXAxisLeftText(e[r-1]);break;case 53:c.setXAxisLeftText(e[r]);break;case 54:c.setYAxisBottomText(e[r-2]),c.setYAxisTopText(e[r]);break;case 55:e[r-1].text+=" ⟶ ",c.setYAxisBottomText(e[r-1]);break;case 56:c.setYAxisBottomText(e[r]);break;case 57:c.setQuadrant1Text(e[r]);break;case 58:c.setQuadrant2Text(e[r]);break;case 59:c.setQuadrant3Text(e[r]);break;case 60:c.setQuadrant4Text(e[r]);break;case 64:this.$={text:e[r],type:"text"};break;case 65:this.$={text:e[r-1].text+""+e[r],type:e[r-1].type};break;case 66:this.$={text:e[r],type:"text"};break;case 67:this.$={text:e[r],type:"markdown"};break;case 68:this.$=e[r];break;case 69:this.$=e[r-1]+""+e[r];break}},"anonymous"),table:[{18:a,26:1,27:2,28:f,55:u,56:o,57:x},{1:[3]},{18:a,26:8,27:2,28:f,55:u,56:o,57:x},{18:a,26:9,27:2,28:f,55:u,56:o,57:x},t(b,[2,33],{29:10}),t(h,[2,61]),t(h,[2,62]),t(h,[2,63]),{1:[2,30]},{1:[2,31]},t(s,_,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:p,5:q,10:T,12:y,13:g,14:m,18:H,25:C,35:ct,37:dt,39:ut,41:xt,42:ft,48:ot,50:ht,51:i,52:It,53:Wt,54:Rt,60:U,61:N,63:S,64:k,65:F,66:P,67:v}),t(b,[2,34]),{27:45,55:u,56:o,57:x},t(s,[2,37]),t(s,_,{24:13,32:15,33:16,34:17,43:30,58:31,31:46,4:p,5:q,10:T,12:y,13:g,14:m,18:H,25:C,35:ct,37:dt,39:ut,41:xt,42:ft,48:ot,50:ht,51:i,52:It,53:Wt,54:Rt,60:U,61:N,63:S,64:k,65:F,66:P,67:v}),t(s,[2,39]),t(s,[2,40]),t(s,[2,41]),{36:[1,47]},{38:[1,48]},{40:[1,49]},t(s,[2,45]),t(s,[2,46]),{18:[1,50]},{4:p,5:q,10:T,12:y,13:g,14:m,43:51,58:31,60:U,61:N,63:S,64:k,65:F,66:P,67:v},{4:p,5:q,10:T,12:y,13:g,14:m,43:52,58:31,60:U,61:N,63:S,64:k,65:F,66:P,67:v},{4:p,5:q,10:T,12:y,13:g,14:m,43:53,58:31,60:U,61:N,63:S,64:k,65:F,66:P,67:v},{4:p,5:q,10:T,12:y,13:g,14:m,43:54,58:31,60:U,61:N,63:S,64:k,65:F,66:P,67:v},{4:p,5:q,10:T,12:y,13:g,14:m,43:55,58:31,60:U,61:N,63:S,64:k,65:F,66:P,67:v},{4:p,5:q,10:T,12:y,13:g,14:m,43:56,58:31,60:U,61:N,63:S,64:k,65:F,66:P,67:v},{4:p,5:q,8:Y,10:T,12:y,13:g,14:m,18:M,44:[1,57],47:[1,58],58:60,59:59,63:S,64:k,65:F,66:P,67:v},t(L,[2,64]),t(L,[2,66]),t(L,[2,67]),t(L,[2,70]),t(L,[2,71]),t(L,[2,72]),t(L,[2,73]),t(L,[2,74]),t(L,[2,75]),t(L,[2,76]),t(L,[2,77]),t(L,[2,78]),t(L,[2,79]),t(L,[2,80]),t(b,[2,35]),t(s,[2,38]),t(s,[2,42]),t(s,[2,43]),t(s,[2,44]),{3:64,4:wt,5:Bt,6:$t,7:Ot,8:Ut,9:Nt,10:Qt,11:Xt,12:Ht,13:Yt,14:Mt,15:jt,21:63},t(s,[2,53],{59:59,58:60,4:p,5:q,8:Y,10:T,12:y,13:g,14:m,18:M,49:[1,77],63:S,64:k,65:F,66:P,67:v}),t(s,[2,56],{59:59,58:60,4:p,5:q,8:Y,10:T,12:y,13:g,14:m,18:M,49:[1,78],63:S,64:k,65:F,66:P,67:v}),t(s,[2,57],{59:59,58:60,4:p,5:q,8:Y,10:T,12:y,13:g,14:m,18:M,63:S,64:k,65:F,66:P,67:v}),t(s,[2,58],{59:59,58:60,4:p,5:q,8:Y,10:T,12:y,13:g,14:m,18:M,63:S,64:k,65:F,66:P,67:v}),t(s,[2,59],{59:59,58:60,4:p,5:q,8:Y,10:T,12:y,13:g,14:m,18:M,63:S,64:k,65:F,66:P,67:v}),t(s,[2,60],{59:59,58:60,4:p,5:q,8:Y,10:T,12:y,13:g,14:m,18:M,63:S,64:k,65:F,66:P,67:v}),{45:[1,79]},{44:[1,80]},t(L,[2,65]),t(L,[2,81]),t(L,[2,82]),t(L,[2,83]),{3:82,4:wt,5:Bt,6:$t,7:Ot,8:Ut,9:Nt,10:Qt,11:Xt,12:Ht,13:Yt,14:Mt,15:jt,18:[1,81]},t(W,[2,23]),t(W,[2,1]),t(W,[2,2]),t(W,[2,3]),t(W,[2,4]),t(W,[2,5]),t(W,[2,6]),t(W,[2,7]),t(W,[2,8]),t(W,[2,9]),t(W,[2,10]),t(W,[2,11]),t(W,[2,12]),t(s,[2,52],{58:31,43:83,4:p,5:q,10:T,12:y,13:g,14:m,60:U,61:N,63:S,64:k,65:F,66:P,67:v}),t(s,[2,55],{58:31,43:84,4:p,5:q,10:T,12:y,13:g,14:m,60:U,61:N,63:S,64:k,65:F,66:P,67:v}),{46:[1,85]},{45:[1,86]},{4:V,5:J,6:Z,8:tt,11:et,13:it,16:89,17:at,18:nt,19:st,20:rt,22:88,23:87},t(W,[2,24]),t(s,[2,51],{59:59,58:60,4:p,5:q,8:Y,10:T,12:y,13:g,14:m,18:M,63:S,64:k,65:F,66:P,67:v}),t(s,[2,54],{59:59,58:60,4:p,5:q,8:Y,10:T,12:y,13:g,14:m,18:M,63:S,64:k,65:F,66:P,67:v}),t(s,[2,47],{22:88,16:89,23:100,4:V,5:J,6:Z,8:tt,11:et,13:it,17:at,18:nt,19:st,20:rt}),{46:[1,101]},t(s,[2,29],{10:bt}),t(Gt,[2,27],{16:103,4:V,5:J,6:Z,8:tt,11:et,13:it,17:at,18:nt,19:st,20:rt}),t($,[2,25]),t($,[2,13]),t($,[2,14]),t($,[2,15]),t($,[2,16]),t($,[2,17]),t($,[2,18]),t($,[2,19]),t($,[2,20]),t($,[2,21]),t($,[2,22]),t(s,[2,49],{10:bt}),t(s,[2,48],{22:88,16:89,23:104,4:V,5:J,6:Z,8:tt,11:et,13:it,17:at,18:nt,19:st,20:rt}),{4:V,5:J,6:Z,8:tt,11:et,13:it,16:89,17:at,18:nt,19:st,20:rt,22:105},t($,[2,26]),t(s,[2,50],{10:bt}),t(Gt,[2,28],{16:103,4:V,5:J,6:Z,8:tt,11:et,13:it,17:at,18:nt,19:st,20:rt})],defaultActions:{8:[2,30],9:[2,31]},parseError:l(function(Q,n){if(n.recoverable)this.trace(Q);else{var d=new Error(Q);throw d.hash=n,d}},"parseError"),parse:l(function(Q){var n=this,d=[0],c=[],A=[null],e=[],R=this.table,r="",pt=0,Kt=0,Te=2,Vt=1,qe=e.slice.call(arguments,1),E=Object.create(this.lexer),G={yy:{}};for(var St in this.yy)Object.prototype.hasOwnProperty.call(this.yy,St)&&(G.yy[St]=this.yy[St]);E.setInput(Q,G.yy),G.yy.lexer=E,G.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var kt=E.yylloc;e.push(kt);var me=E.options&&E.options.ranges;typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ae(B){d.length=d.length-2*B,A.length=A.length-B,e.length=e.length-B}l(Ae,"popStack");function Jt(){var B;return B=c.pop()||E.lex()||Vt,typeof B!="number"&&(B instanceof Array&&(c=B,B=c.pop()),B=n.symbols_[B]||B),B}l(Jt,"lex");for(var w,K,O,Ft,lt={},yt,j,Zt,Tt;;){if(K=d[d.length-1],this.defaultActions[K]?O=this.defaultActions[K]:((w===null||typeof w>"u")&&(w=Jt()),O=R[K]&&R[K][w]),typeof O>"u"||!O.length||!O[0]){var Pt="";Tt=[];for(yt in R[K])this.terminals_[yt]&&yt>Te&&Tt.push("'"+this.terminals_[yt]+"'");E.showPosition?Pt="Parse error on line "+(pt+1)+`:
2
2
  `+E.showPosition()+`
3
3
  Expecting `+Tt.join(", ")+", got '"+(this.terminals_[w]||w)+"'":Pt="Parse error on line "+(pt+1)+": Unexpected "+(w==Vt?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(Pt,{text:E.match,token:this.terminals_[w]||w,line:E.yylineno,loc:kt,expected:Tt})}if(O[0]instanceof Array&&O.length>1)throw new Error("Parse Error: multiple actions possible at state: "+K+", token: "+w);switch(O[0]){case 1:d.push(w),A.push(E.yytext),e.push(E.yylloc),d.push(O[1]),w=null,Kt=E.yyleng,r=E.yytext,pt=E.yylineno,kt=E.yylloc;break;case 2:if(j=this.productions_[O[1]][1],lt.$=A[A.length-j],lt._$={first_line:e[e.length-(j||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(j||1)].first_column,last_column:e[e.length-1].last_column},me&&(lt._$.range=[e[e.length-(j||1)].range[0],e[e.length-1].range[1]]),Ft=this.performAction.apply(lt,[r,Kt,pt,G.yy,O[1],A,e].concat(qe)),typeof Ft<"u")return Ft;j&&(d=d.slice(0,-1*j*2),A=A.slice(0,-1*j),e=e.slice(0,-1*j)),d.push(this.productions_[O[1]][0]),A.push(lt.$),e.push(lt._$),Zt=R[d[d.length-2]][d[d.length-1]],d.push(Zt);break;case 3:return!0}}return!0},"parse")},ye=function(){var Q={EOF:1,parseError:l(function(n,d){if(this.yy.parser)this.yy.parser.parseError(n,d);else throw new Error(n)},"parseError"),setInput:l(function(n,d){return this.yy=d||this.yy||{},this._input=n,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={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:l(function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var d=n.match(/(?:\r\n?|\n).*/g);return d?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},"input"),unput:l(function(n){var d=n.length,c=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var A=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),c.length-1&&(this.yylineno-=c.length-1);var e=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:c?(c.length===A.length?this.yylloc.first_column:0)+A[A.length-c.length].length-c[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[e[0],e[0]+this.yyleng-d]),this.yyleng=this.yytext.length,this},"unput"),more:l(function(){return this._more=!0,this},"more"),reject:l(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
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:l(function(n){this.unput(this.match.slice(n))},"less"),pastInput:l(function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:l(function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:l(function(){var n=this.pastInput(),d=new Array(n.length+1).join("-");return n+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import{d as We}from"./chunk-55IACEB6-_r7qMy9s-CVsj1DxS.js";import{d as Ge}from"./chunk-QN33PNHL-C8-RyAc3-DADdydNm.js";import{R as o,s as Xe,l as Ze,f as ze,u as Je,n as et,o as tt,c as ke,O as Ne,t as st,E as it,Z as rt,X as nt,k as at}from"./index-CIi9dO9d.js";var Ce=function(){var e=o(function(F,i,r,s){for(r=r||{},s=F.length;s--;r[F[s]]=i);return r},"o"),E=[1,3],h=[1,4],c=[1,5],a=[1,6],m=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],f=[1,22],l=[2,7],u=[1,26],g=[1,27],b=[1,28],C=[1,29],A=[1,33],q=[1,34],v=[1,35],L=[1,36],O=[1,37],x=[1,38],w=[1,24],D=[1,31],M=[1,32],$=[1,30],d=[1,39],R=[1,40],p=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],U=[1,61],Z=[89,90],Ae=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],me=[27,29],qe=[1,70],ve=[1,71],Le=[1,72],Oe=[1,73],xe=[1,74],we=[1,75],De=[1,76],J=[1,83],V=[1,80],ee=[1,84],te=[1,85],se=[1,86],ie=[1,87],re=[1,88],ne=[1,89],ae=[1,90],le=[1,91],ce=[1,92],Ee=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Y=[63,64],Me=[1,101],$e=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],k=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],B=[1,110],Q=[1,106],H=[1,107],K=[1,108],j=[1,109],W=[1,111],oe=[1,116],he=[1,117],ue=[1,114],ye=[1,115],_e={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",21:"direction_tb",22:"direction_bt",23:"direction_rl",24:"direction_lr",27:"STRUCT_START",29:"STYLE_SEPARATOR",31:"ID",32:"COLONSEP",34:"TEXT",36:"RISK",38:"VERIFYMTHD",40:"STRUCT_STOP",41:"REQUIREMENT",42:"FUNCTIONAL_REQUIREMENT",43:"INTERFACE_REQUIREMENT",44:"PERFORMANCE_REQUIREMENT",45:"PHYSICAL_REQUIREMENT",46:"DESIGN_CONSTRAINT",47:"LOW_RISK",48:"MED_RISK",49:"HIGH_RISK",50:"VERIFY_ANALYSIS",51:"VERIFY_DEMONSTRATION",52:"VERIFY_INSPECTION",53:"VERIFY_TEST",54:"ELEMENT",57:"TYPE",59:"DOCREF",61:"END_ARROW_L",63:"LINE",64:"END_ARROW_R",65:"CONTAINS",66:"COPIES",67:"DERIVES",68:"SATISFIES",69:"VERIFIES",70:"REFINES",71:"TRACES",72:"CLASSDEF",74:"CLASS",75:"ALPHA",76:"COMMA",77:"STYLE",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",86:"MINUS",87:"LABEL",88:"SEMICOLON",89:"unqString",90:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:o(function(F,i,r,s,y,t,S){var n=t.length-1;switch(y){case 4:this.$=t[n].trim(),s.setAccTitle(this.$);break;case 5:case 6:this.$=t[n].trim(),s.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:s.setDirection("TB");break;case 18:s.setDirection("BT");break;case 19:s.setDirection("RL");break;case 20:s.setDirection("LR");break;case 21:s.addRequirement(t[n-3],t[n-4]);break;case 22:s.addRequirement(t[n-5],t[n-6]),s.setClass([t[n-5]],t[n-3]);break;case 23:s.setNewReqId(t[n-2]);break;case 24:s.setNewReqText(t[n-2]);break;case 25:s.setNewReqRisk(t[n-2]);break;case 26:s.setNewReqVerifyMethod(t[n-2]);break;case 29:this.$=s.RequirementType.REQUIREMENT;break;case 30:this.$=s.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=s.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=s.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=s.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=s.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=s.RiskLevel.LOW_RISK;break;case 36:this.$=s.RiskLevel.MED_RISK;break;case 37:this.$=s.RiskLevel.HIGH_RISK;break;case 38:this.$=s.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=s.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=s.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=s.VerifyType.VERIFY_TEST;break;case 42:s.addElement(t[n-3]);break;case 43:s.addElement(t[n-5]),s.setClass([t[n-5]],t[n-3]);break;case 44:s.setNewElementType(t[n-2]);break;case 45:s.setNewElementDocRef(t[n-2]);break;case 48:s.addRelationship(t[n-2],t[n],t[n-4]);break;case 49:s.addRelationship(t[n-2],t[n-4],t[n]);break;case 50:this.$=s.Relationships.CONTAINS;break;case 51:this.$=s.Relationships.COPIES;break;case 52:this.$=s.Relationships.DERIVES;break;case 53:this.$=s.Relationships.SATISFIES;break;case 54:this.$=s.Relationships.VERIFIES;break;case 55:this.$=s.Relationships.REFINES;break;case 56:this.$=s.Relationships.TRACES;break;case 57:this.$=t[n-2],s.defineClass(t[n-1],t[n]);break;case 58:s.setClass(t[n-1],t[n]);break;case 59:s.setClass([t[n-2]],t[n]);break;case 60:case 62:this.$=[t[n]];break;case 61:case 63:this.$=t[n-2].concat([t[n]]);break;case 64:this.$=t[n-2],s.setCssStyle(t[n-1],t[n]);break;case 65:this.$=[t[n]];break;case 66:t[n-2].push(t[n]),this.$=t[n-2];break;case 68:this.$=t[n-1]+t[n];break}},"anonymous"),table:[{3:1,4:2,6:E,9:h,11:c,13:a},{1:[3]},{3:8,4:2,5:[1,7],6:E,9:h,11:c,13:a},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(m,[2,6]),{3:12,4:2,6:E,9:h,11:c,13:a},{1:[2,2]},{4:17,5:f,7:13,8:l,9:h,11:c,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:g,23:b,24:C,25:23,33:25,41:A,42:q,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:d,90:R},e(m,[2,4]),e(m,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:f,7:42,8:l,9:h,11:c,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:g,23:b,24:C,25:23,33:25,41:A,42:q,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:d,90:R},{4:17,5:f,7:43,8:l,9:h,11:c,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:g,23:b,24:C,25:23,33:25,41:A,42:q,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:d,90:R},{4:17,5:f,7:44,8:l,9:h,11:c,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:g,23:b,24:C,25:23,33:25,41:A,42:q,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:d,90:R},{4:17,5:f,7:45,8:l,9:h,11:c,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:g,23:b,24:C,25:23,33:25,41:A,42:q,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:d,90:R},{4:17,5:f,7:46,8:l,9:h,11:c,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:g,23:b,24:C,25:23,33:25,41:A,42:q,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:d,90:R},{4:17,5:f,7:47,8:l,9:h,11:c,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:g,23:b,24:C,25:23,33:25,41:A,42:q,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:d,90:R},{4:17,5:f,7:48,8:l,9:h,11:c,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:g,23:b,24:C,25:23,33:25,41:A,42:q,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:d,90:R},{4:17,5:f,7:49,8:l,9:h,11:c,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:g,23:b,24:C,25:23,33:25,41:A,42:q,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:d,90:R},{4:17,5:f,7:50,8:l,9:h,11:c,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:g,23:b,24:C,25:23,33:25,41:A,42:q,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:d,90:R},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},e(p,[2,17]),e(p,[2,18]),e(p,[2,19]),e(p,[2,20]),{30:60,33:62,75:U,89:d,90:R},{30:63,33:62,75:U,89:d,90:R},{30:64,33:62,75:U,89:d,90:R},e(Z,[2,29]),e(Z,[2,30]),e(Z,[2,31]),e(Z,[2,32]),e(Z,[2,33]),e(Z,[2,34]),e(Ae,[2,81]),e(Ae,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},e(me,[2,79]),e(me,[2,80]),{27:[1,67],29:[1,68]},e(me,[2,85]),e(me,[2,86]),{62:69,65:qe,66:ve,67:Le,68:Oe,69:xe,70:we,71:De},{62:77,65:qe,66:ve,67:Le,68:Oe,69:xe,70:we,71:De},{30:78,33:62,75:U,89:d,90:R},{73:79,75:J,76:V,78:81,79:82,80:ee,81:te,82:se,83:ie,84:re,85:ne,86:ae,87:le,88:ce},e(Ee,[2,60]),e(Ee,[2,62]),{73:93,75:J,76:V,78:81,79:82,80:ee,81:te,82:se,83:ie,84:re,85:ne,86:ae,87:le,88:ce},{30:94,33:62,75:U,76:V,89:d,90:R},{5:[1,95]},{30:96,33:62,75:U,89:d,90:R},{5:[1,97]},{30:98,33:62,75:U,89:d,90:R},{63:[1,99]},e(Y,[2,50]),e(Y,[2,51]),e(Y,[2,52]),e(Y,[2,53]),e(Y,[2,54]),e(Y,[2,55]),e(Y,[2,56]),{64:[1,100]},e(p,[2,59],{76:V}),e(p,[2,64],{76:Me}),{33:103,75:[1,102],89:d,90:R},e($e,[2,65],{79:104,75:J,80:ee,81:te,82:se,83:ie,84:re,85:ne,86:ae,87:le,88:ce}),e(k,[2,67]),e(k,[2,69]),e(k,[2,70]),e(k,[2,71]),e(k,[2,72]),e(k,[2,73]),e(k,[2,74]),e(k,[2,75]),e(k,[2,76]),e(k,[2,77]),e(k,[2,78]),e(p,[2,57],{76:Me}),e(p,[2,58],{76:V}),{5:B,28:105,31:Q,34:H,36:K,38:j,40:W},{27:[1,112],76:V},{5:oe,40:he,56:113,57:ue,59:ye},{27:[1,118],76:V},{33:119,89:d,90:R},{33:120,89:d,90:R},{75:J,78:121,79:82,80:ee,81:te,82:se,83:ie,84:re,85:ne,86:ae,87:le,88:ce},e(Ee,[2,61]),e(Ee,[2,63]),e(k,[2,68]),e(p,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:B,28:126,31:Q,34:H,36:K,38:j,40:W},e(p,[2,28]),{5:[1,127]},e(p,[2,42]),{32:[1,128]},{32:[1,129]},{5:oe,40:he,56:130,57:ue,59:ye},e(p,[2,47]),{5:[1,131]},e(p,[2,48]),e(p,[2,49]),e($e,[2,66],{79:104,75:J,80:ee,81:te,82:se,83:ie,84:re,85:ne,86:ae,87:le,88:ce}),{33:132,89:d,90:R},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},e(p,[2,27]),{5:B,28:145,31:Q,34:H,36:K,38:j,40:W},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},e(p,[2,46]),{5:oe,40:he,56:152,57:ue,59:ye},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},e(p,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},e(p,[2,43]),{5:B,28:159,31:Q,34:H,36:K,38:j,40:W},{5:B,28:160,31:Q,34:H,36:K,38:j,40:W},{5:B,28:161,31:Q,34:H,36:K,38:j,40:W},{5:B,28:162,31:Q,34:H,36:K,38:j,40:W},{5:oe,40:he,56:163,57:ue,59:ye},{5:oe,40:he,56:164,57:ue,59:ye},e(p,[2,23]),e(p,[2,24]),e(p,[2,25]),e(p,[2,26]),e(p,[2,44]),e(p,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:o(function(F,i){if(i.recoverable)this.trace(F);else{var r=new Error(F);throw r.hash=i,r}},"parseError"),parse:o(function(F){var i=this,r=[0],s=[],y=[null],t=[],S=this.table,n="",de=0,Fe=0,Qe=2,Pe=1,He=t.slice.call(arguments,1),_=Object.create(this.lexer),G={yy:{}};for(var ge in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ge)&&(G.yy[ge]=this.yy[ge]);_.setInput(F,G.yy),G.yy.lexer=_,G.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var Se=_.yylloc;t.push(Se);var Ke=_.options&&_.options.ranges;typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function je(T){r.length=r.length-2*T,y.length=y.length-T,t.length=t.length-T}o(je,"popStack");function Ue(){var T;return T=s.pop()||_.lex()||Pe,typeof T!="number"&&(T instanceof Array&&(s=T,T=s.pop()),T=i.symbols_[T]||T),T}o(Ue,"lex");for(var I,X,N,Ie,z={},Re,P,Ve,fe;;){if(X=r[r.length-1],this.defaultActions[X]?N=this.defaultActions[X]:((I===null||typeof I>"u")&&(I=Ue()),N=S[X]&&S[X][I]),typeof N>"u"||!N.length||!N[0]){var Te="";fe=[];for(Re in S[X])this.terminals_[Re]&&Re>Qe&&fe.push("'"+this.terminals_[Re]+"'");_.showPosition?Te="Parse error on line "+(de+1)+`:
1
+ import{d as We}from"./chunk-55IACEB6-_r7qMy9s-Dy635JXO.js";import{d as Ge}from"./chunk-QN33PNHL-C8-RyAc3-Bziqpynq.js";import{R as o,s as Xe,l as Ze,f as ze,u as Je,n as et,o as tt,c as ke,O as Ne,t as st,E as it,Z as rt,X as nt,k as at}from"./index-Dwfg9sR1.js";var Ce=function(){var e=o(function(F,i,r,s){for(r=r||{},s=F.length;s--;r[F[s]]=i);return r},"o"),E=[1,3],h=[1,4],c=[1,5],a=[1,6],m=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],f=[1,22],l=[2,7],u=[1,26],g=[1,27],b=[1,28],C=[1,29],A=[1,33],q=[1,34],v=[1,35],L=[1,36],O=[1,37],x=[1,38],w=[1,24],D=[1,31],M=[1,32],$=[1,30],d=[1,39],R=[1,40],p=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],U=[1,61],Z=[89,90],Ae=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],me=[27,29],qe=[1,70],ve=[1,71],Le=[1,72],Oe=[1,73],xe=[1,74],we=[1,75],De=[1,76],J=[1,83],V=[1,80],ee=[1,84],te=[1,85],se=[1,86],ie=[1,87],re=[1,88],ne=[1,89],ae=[1,90],le=[1,91],ce=[1,92],Ee=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Y=[63,64],Me=[1,101],$e=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],k=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],B=[1,110],Q=[1,106],H=[1,107],K=[1,108],j=[1,109],W=[1,111],oe=[1,116],he=[1,117],ue=[1,114],ye=[1,115],_e={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",21:"direction_tb",22:"direction_bt",23:"direction_rl",24:"direction_lr",27:"STRUCT_START",29:"STYLE_SEPARATOR",31:"ID",32:"COLONSEP",34:"TEXT",36:"RISK",38:"VERIFYMTHD",40:"STRUCT_STOP",41:"REQUIREMENT",42:"FUNCTIONAL_REQUIREMENT",43:"INTERFACE_REQUIREMENT",44:"PERFORMANCE_REQUIREMENT",45:"PHYSICAL_REQUIREMENT",46:"DESIGN_CONSTRAINT",47:"LOW_RISK",48:"MED_RISK",49:"HIGH_RISK",50:"VERIFY_ANALYSIS",51:"VERIFY_DEMONSTRATION",52:"VERIFY_INSPECTION",53:"VERIFY_TEST",54:"ELEMENT",57:"TYPE",59:"DOCREF",61:"END_ARROW_L",63:"LINE",64:"END_ARROW_R",65:"CONTAINS",66:"COPIES",67:"DERIVES",68:"SATISFIES",69:"VERIFIES",70:"REFINES",71:"TRACES",72:"CLASSDEF",74:"CLASS",75:"ALPHA",76:"COMMA",77:"STYLE",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",86:"MINUS",87:"LABEL",88:"SEMICOLON",89:"unqString",90:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:o(function(F,i,r,s,y,t,S){var n=t.length-1;switch(y){case 4:this.$=t[n].trim(),s.setAccTitle(this.$);break;case 5:case 6:this.$=t[n].trim(),s.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:s.setDirection("TB");break;case 18:s.setDirection("BT");break;case 19:s.setDirection("RL");break;case 20:s.setDirection("LR");break;case 21:s.addRequirement(t[n-3],t[n-4]);break;case 22:s.addRequirement(t[n-5],t[n-6]),s.setClass([t[n-5]],t[n-3]);break;case 23:s.setNewReqId(t[n-2]);break;case 24:s.setNewReqText(t[n-2]);break;case 25:s.setNewReqRisk(t[n-2]);break;case 26:s.setNewReqVerifyMethod(t[n-2]);break;case 29:this.$=s.RequirementType.REQUIREMENT;break;case 30:this.$=s.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=s.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=s.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=s.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=s.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=s.RiskLevel.LOW_RISK;break;case 36:this.$=s.RiskLevel.MED_RISK;break;case 37:this.$=s.RiskLevel.HIGH_RISK;break;case 38:this.$=s.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=s.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=s.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=s.VerifyType.VERIFY_TEST;break;case 42:s.addElement(t[n-3]);break;case 43:s.addElement(t[n-5]),s.setClass([t[n-5]],t[n-3]);break;case 44:s.setNewElementType(t[n-2]);break;case 45:s.setNewElementDocRef(t[n-2]);break;case 48:s.addRelationship(t[n-2],t[n],t[n-4]);break;case 49:s.addRelationship(t[n-2],t[n-4],t[n]);break;case 50:this.$=s.Relationships.CONTAINS;break;case 51:this.$=s.Relationships.COPIES;break;case 52:this.$=s.Relationships.DERIVES;break;case 53:this.$=s.Relationships.SATISFIES;break;case 54:this.$=s.Relationships.VERIFIES;break;case 55:this.$=s.Relationships.REFINES;break;case 56:this.$=s.Relationships.TRACES;break;case 57:this.$=t[n-2],s.defineClass(t[n-1],t[n]);break;case 58:s.setClass(t[n-1],t[n]);break;case 59:s.setClass([t[n-2]],t[n]);break;case 60:case 62:this.$=[t[n]];break;case 61:case 63:this.$=t[n-2].concat([t[n]]);break;case 64:this.$=t[n-2],s.setCssStyle(t[n-1],t[n]);break;case 65:this.$=[t[n]];break;case 66:t[n-2].push(t[n]),this.$=t[n-2];break;case 68:this.$=t[n-1]+t[n];break}},"anonymous"),table:[{3:1,4:2,6:E,9:h,11:c,13:a},{1:[3]},{3:8,4:2,5:[1,7],6:E,9:h,11:c,13:a},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(m,[2,6]),{3:12,4:2,6:E,9:h,11:c,13:a},{1:[2,2]},{4:17,5:f,7:13,8:l,9:h,11:c,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:g,23:b,24:C,25:23,33:25,41:A,42:q,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:d,90:R},e(m,[2,4]),e(m,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:f,7:42,8:l,9:h,11:c,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:g,23:b,24:C,25:23,33:25,41:A,42:q,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:d,90:R},{4:17,5:f,7:43,8:l,9:h,11:c,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:g,23:b,24:C,25:23,33:25,41:A,42:q,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:d,90:R},{4:17,5:f,7:44,8:l,9:h,11:c,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:g,23:b,24:C,25:23,33:25,41:A,42:q,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:d,90:R},{4:17,5:f,7:45,8:l,9:h,11:c,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:g,23:b,24:C,25:23,33:25,41:A,42:q,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:d,90:R},{4:17,5:f,7:46,8:l,9:h,11:c,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:g,23:b,24:C,25:23,33:25,41:A,42:q,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:d,90:R},{4:17,5:f,7:47,8:l,9:h,11:c,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:g,23:b,24:C,25:23,33:25,41:A,42:q,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:d,90:R},{4:17,5:f,7:48,8:l,9:h,11:c,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:g,23:b,24:C,25:23,33:25,41:A,42:q,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:d,90:R},{4:17,5:f,7:49,8:l,9:h,11:c,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:g,23:b,24:C,25:23,33:25,41:A,42:q,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:d,90:R},{4:17,5:f,7:50,8:l,9:h,11:c,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:g,23:b,24:C,25:23,33:25,41:A,42:q,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:d,90:R},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},e(p,[2,17]),e(p,[2,18]),e(p,[2,19]),e(p,[2,20]),{30:60,33:62,75:U,89:d,90:R},{30:63,33:62,75:U,89:d,90:R},{30:64,33:62,75:U,89:d,90:R},e(Z,[2,29]),e(Z,[2,30]),e(Z,[2,31]),e(Z,[2,32]),e(Z,[2,33]),e(Z,[2,34]),e(Ae,[2,81]),e(Ae,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},e(me,[2,79]),e(me,[2,80]),{27:[1,67],29:[1,68]},e(me,[2,85]),e(me,[2,86]),{62:69,65:qe,66:ve,67:Le,68:Oe,69:xe,70:we,71:De},{62:77,65:qe,66:ve,67:Le,68:Oe,69:xe,70:we,71:De},{30:78,33:62,75:U,89:d,90:R},{73:79,75:J,76:V,78:81,79:82,80:ee,81:te,82:se,83:ie,84:re,85:ne,86:ae,87:le,88:ce},e(Ee,[2,60]),e(Ee,[2,62]),{73:93,75:J,76:V,78:81,79:82,80:ee,81:te,82:se,83:ie,84:re,85:ne,86:ae,87:le,88:ce},{30:94,33:62,75:U,76:V,89:d,90:R},{5:[1,95]},{30:96,33:62,75:U,89:d,90:R},{5:[1,97]},{30:98,33:62,75:U,89:d,90:R},{63:[1,99]},e(Y,[2,50]),e(Y,[2,51]),e(Y,[2,52]),e(Y,[2,53]),e(Y,[2,54]),e(Y,[2,55]),e(Y,[2,56]),{64:[1,100]},e(p,[2,59],{76:V}),e(p,[2,64],{76:Me}),{33:103,75:[1,102],89:d,90:R},e($e,[2,65],{79:104,75:J,80:ee,81:te,82:se,83:ie,84:re,85:ne,86:ae,87:le,88:ce}),e(k,[2,67]),e(k,[2,69]),e(k,[2,70]),e(k,[2,71]),e(k,[2,72]),e(k,[2,73]),e(k,[2,74]),e(k,[2,75]),e(k,[2,76]),e(k,[2,77]),e(k,[2,78]),e(p,[2,57],{76:Me}),e(p,[2,58],{76:V}),{5:B,28:105,31:Q,34:H,36:K,38:j,40:W},{27:[1,112],76:V},{5:oe,40:he,56:113,57:ue,59:ye},{27:[1,118],76:V},{33:119,89:d,90:R},{33:120,89:d,90:R},{75:J,78:121,79:82,80:ee,81:te,82:se,83:ie,84:re,85:ne,86:ae,87:le,88:ce},e(Ee,[2,61]),e(Ee,[2,63]),e(k,[2,68]),e(p,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:B,28:126,31:Q,34:H,36:K,38:j,40:W},e(p,[2,28]),{5:[1,127]},e(p,[2,42]),{32:[1,128]},{32:[1,129]},{5:oe,40:he,56:130,57:ue,59:ye},e(p,[2,47]),{5:[1,131]},e(p,[2,48]),e(p,[2,49]),e($e,[2,66],{79:104,75:J,80:ee,81:te,82:se,83:ie,84:re,85:ne,86:ae,87:le,88:ce}),{33:132,89:d,90:R},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},e(p,[2,27]),{5:B,28:145,31:Q,34:H,36:K,38:j,40:W},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},e(p,[2,46]),{5:oe,40:he,56:152,57:ue,59:ye},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},e(p,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},e(p,[2,43]),{5:B,28:159,31:Q,34:H,36:K,38:j,40:W},{5:B,28:160,31:Q,34:H,36:K,38:j,40:W},{5:B,28:161,31:Q,34:H,36:K,38:j,40:W},{5:B,28:162,31:Q,34:H,36:K,38:j,40:W},{5:oe,40:he,56:163,57:ue,59:ye},{5:oe,40:he,56:164,57:ue,59:ye},e(p,[2,23]),e(p,[2,24]),e(p,[2,25]),e(p,[2,26]),e(p,[2,44]),e(p,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:o(function(F,i){if(i.recoverable)this.trace(F);else{var r=new Error(F);throw r.hash=i,r}},"parseError"),parse:o(function(F){var i=this,r=[0],s=[],y=[null],t=[],S=this.table,n="",de=0,Fe=0,Qe=2,Pe=1,He=t.slice.call(arguments,1),_=Object.create(this.lexer),G={yy:{}};for(var ge in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ge)&&(G.yy[ge]=this.yy[ge]);_.setInput(F,G.yy),G.yy.lexer=_,G.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var Se=_.yylloc;t.push(Se);var Ke=_.options&&_.options.ranges;typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function je(T){r.length=r.length-2*T,y.length=y.length-T,t.length=t.length-T}o(je,"popStack");function Ue(){var T;return T=s.pop()||_.lex()||Pe,typeof T!="number"&&(T instanceof Array&&(s=T,T=s.pop()),T=i.symbols_[T]||T),T}o(Ue,"lex");for(var I,X,N,Ie,z={},Re,P,Ve,fe;;){if(X=r[r.length-1],this.defaultActions[X]?N=this.defaultActions[X]:((I===null||typeof I>"u")&&(I=Ue()),N=S[X]&&S[X][I]),typeof N>"u"||!N.length||!N[0]){var Te="";fe=[];for(Re in S[X])this.terminals_[Re]&&Re>Qe&&fe.push("'"+this.terminals_[Re]+"'");_.showPosition?Te="Parse error on line "+(de+1)+`:
2
2
  `+_.showPosition()+`
3
3
  Expecting `+fe.join(", ")+", got '"+(this.terminals_[I]||I)+"'":Te="Parse error on line "+(de+1)+": Unexpected "+(I==Pe?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(Te,{text:_.match,token:this.terminals_[I]||I,line:_.yylineno,loc:Se,expected:fe})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+X+", token: "+I);switch(N[0]){case 1:r.push(I),y.push(_.yytext),t.push(_.yylloc),r.push(N[1]),I=null,Fe=_.yyleng,n=_.yytext,de=_.yylineno,Se=_.yylloc;break;case 2:if(P=this.productions_[N[1]][1],z.$=y[y.length-P],z._$={first_line:t[t.length-(P||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(P||1)].first_column,last_column:t[t.length-1].last_column},Ke&&(z._$.range=[t[t.length-(P||1)].range[0],t[t.length-1].range[1]]),Ie=this.performAction.apply(z,[n,Fe,de,G.yy,N[1],y,t].concat(He)),typeof Ie<"u")return Ie;P&&(r=r.slice(0,-1*P*2),y=y.slice(0,-1*P),t=t.slice(0,-1*P)),r.push(this.productions_[N[1]][0]),y.push(z.$),t.push(z._$),Ve=S[r[r.length-2]][r[r.length-1]],r.push(Ve);break;case 3:return!0}}return!0},"parse")},Be=function(){var F={EOF:1,parseError:o(function(i,r){if(this.yy.parser)this.yy.parser.parseError(i,r);else throw new Error(i)},"parseError"),setInput:o(function(i,r){return this.yy=r||this.yy||{},this._input=i,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:o(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var r=i.match(/(?:\r\n?|\n).*/g);return r?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:o(function(i){var r=i.length,s=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var y=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),s.length-1&&(this.yylineno-=s.length-1);var t=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:s?(s.length===y.length?this.yylloc.first_column:0)+y[y.length-s.length].length-s[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[t[0],t[0]+this.yyleng-r]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(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
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(i){this.unput(this.match.slice(i))},"less"),pastInput:o(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var i=this.pastInput(),r=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import{R as p,n as xt,o as kt,f as vt,u as bt,s as wt,l as St,c as lt,D as Et,e as X,ap as Lt,aT as Mt,t as At,x as Tt}from"./index-CIi9dO9d.js";function Pt(t){for(var n=t.length/6|0,r=new Array(n),a=0;a<n;)r[a]="#"+t.slice(a*6,++a*6);return r}const Nt=Pt("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function ct(t,n){let r;if(n===void 0)for(const a of t)a!=null&&(r<a||r===void 0&&a>=a)&&(r=a);else{let a=-1;for(let c of t)(c=n(c,++a,t))!=null&&(r<c||r===void 0&&c>=c)&&(r=c)}return r}function pt(t,n){let r;if(n===void 0)for(const a of t)a!=null&&(r>a||r===void 0&&a>=a)&&(r=a);else{let a=-1;for(let c of t)(c=n(c,++a,t))!=null&&(r>c||r===void 0&&c>=c)&&(r=c)}return r}function tt(t,n){let r=0;if(n===void 0)for(let a of t)(a=+a)&&(r+=a);else{let a=-1;for(let c of t)(c=+n(c,++a,t))&&(r+=c)}return r}function Ot(t){return t.target.depth}function Ct(t){return t.depth}function It(t,n){return n-1-t.height}function _t(t,n){return t.sourceLinks.length?t.depth:n-1}function Dt(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?pt(t.sourceLinks,Ot)-1:0}function Y(t){return function(){return t}}function ut(t,n){return K(t.source,n.source)||t.index-n.index}function ht(t,n){return K(t.target,n.target)||t.index-n.index}function K(t,n){return t.y0-n.y0}function et(t){return t.value}function $t(t){return t.index}function jt(t){return t.nodes}function zt(t){return t.links}function ft(t,n){const r=t.get(n);if(!r)throw new Error("missing: "+n);return r}function yt({nodes:t}){for(const n of t){let r=n.y0,a=r;for(const c of n.sourceLinks)c.y0=r+c.width/2,r+=c.width;for(const c of n.targetLinks)c.y1=a+c.width/2,a+=c.width}}function Ft(){let t=0,n=0,r=1,a=1,c=24,k=8,_,m=$t,i=_t,o,f,d=jt,y=zt,w=6;function v(){const e={nodes:d.apply(null,arguments),links:y.apply(null,arguments)};return N(e),A(e),T(e),I(e),O(e),yt(e),e}v.update=function(e){return yt(e),e},v.nodeId=function(e){return arguments.length?(m=typeof e=="function"?e:Y(e),v):m},v.nodeAlign=function(e){return arguments.length?(i=typeof e=="function"?e:Y(e),v):i},v.nodeSort=function(e){return arguments.length?(o=e,v):o},v.nodeWidth=function(e){return arguments.length?(c=+e,v):c},v.nodePadding=function(e){return arguments.length?(k=_=+e,v):k},v.nodes=function(e){return arguments.length?(d=typeof e=="function"?e:Y(e),v):d},v.links=function(e){return arguments.length?(y=typeof e=="function"?e:Y(e),v):y},v.linkSort=function(e){return arguments.length?(f=e,v):f},v.size=function(e){return arguments.length?(t=n=0,r=+e[0],a=+e[1],v):[r-t,a-n]},v.extent=function(e){return arguments.length?(t=+e[0][0],r=+e[1][0],n=+e[0][1],a=+e[1][1],v):[[t,n],[r,a]]},v.iterations=function(e){return arguments.length?(w=+e,v):w};function N({nodes:e,links:h}){for(const[u,s]of e.entries())s.index=u,s.sourceLinks=[],s.targetLinks=[];const l=new Map(e.map((u,s)=>[m(u,s,e),u]));for(const[u,s]of h.entries()){s.index=u;let{source:x,target:b}=s;typeof x!="object"&&(x=s.source=ft(l,x)),typeof b!="object"&&(b=s.target=ft(l,b)),x.sourceLinks.push(s),b.targetLinks.push(s)}if(f!=null)for(const{sourceLinks:u,targetLinks:s}of e)u.sort(f),s.sort(f)}function A({nodes:e}){for(const h of e)h.value=h.fixedValue===void 0?Math.max(tt(h.sourceLinks,et),tt(h.targetLinks,et)):h.fixedValue}function T({nodes:e}){const h=e.length;let l=new Set(e),u=new Set,s=0;for(;l.size;){for(const x of l){x.depth=s;for(const{target:b}of x.sourceLinks)u.add(b)}if(++s>h)throw new Error("circular link");l=u,u=new Set}}function I({nodes:e}){const h=e.length;let l=new Set(e),u=new Set,s=0;for(;l.size;){for(const x of l){x.height=s;for(const{source:b}of x.targetLinks)u.add(b)}if(++s>h)throw new Error("circular link");l=u,u=new Set}}function P({nodes:e}){const h=ct(e,s=>s.depth)+1,l=(r-t-c)/(h-1),u=new Array(h);for(const s of e){const x=Math.max(0,Math.min(h-1,Math.floor(i.call(null,s,h))));s.layer=x,s.x0=t+x*l,s.x1=s.x0+c,u[x]?u[x].push(s):u[x]=[s]}if(o)for(const s of u)s.sort(o);return u}function S(e){const h=pt(e,l=>(a-n-(l.length-1)*_)/tt(l,et));for(const l of e){let u=n;for(const s of l){s.y0=u,s.y1=u+s.value*h,u=s.y1+_;for(const x of s.sourceLinks)x.width=x.value*h}u=(a-u+_)/(l.length+1);for(let s=0;s<l.length;++s){const x=l[s];x.y0+=u*(s+1),x.y1+=u*(s+1)}$(l)}}function O(e){const h=P(e);_=Math.min(k,(a-n)/(ct(h,l=>l.length)-1)),S(h);for(let l=0;l<w;++l){const u=Math.pow(.99,l),s=Math.max(1-u,(l+1)/w);C(h,u,s),D(h,u,s)}}function D(e,h,l){for(let u=1,s=e.length;u<s;++u){const x=e[u];for(const b of x){let W=0,j=0;for(const{source:R,value:H}of b.targetLinks){let V=H*(b.layer-R.layer);W+=M(R,b)*V,j+=V}if(!(j>0))continue;let q=(W/j-b.y0)*h;b.y0+=q,b.y1+=q,E(b)}o===void 0&&x.sort(K),g(x,l)}}function C(e,h,l){for(let u=e.length,s=u-2;s>=0;--s){const x=e[s];for(const b of x){let W=0,j=0;for(const{target:R,value:H}of b.sourceLinks){let V=H*(R.layer-b.layer);W+=G(b,R)*V,j+=V}if(!(j>0))continue;let q=(W/j-b.y0)*h;b.y0+=q,b.y1+=q,E(b)}o===void 0&&x.sort(K),g(x,l)}}function g(e,h){const l=e.length>>1,u=e[l];U(e,u.y0-_,l-1,h),L(e,u.y1+_,l+1,h),U(e,a,e.length-1,h),L(e,n,0,h)}function L(e,h,l,u){for(;l<e.length;++l){const s=e[l],x=(h-s.y0)*u;x>1e-6&&(s.y0+=x,s.y1+=x),h=s.y1+_}}function U(e,h,l,u){for(;l>=0;--l){const s=e[l],x=(s.y1-h)*u;x>1e-6&&(s.y0-=x,s.y1-=x),h=s.y0-_}}function E({sourceLinks:e,targetLinks:h}){if(f===void 0){for(const{source:{sourceLinks:l}}of h)l.sort(ht);for(const{target:{targetLinks:l}}of e)l.sort(ut)}}function $(e){if(f===void 0)for(const{sourceLinks:h,targetLinks:l}of e)h.sort(ht),l.sort(ut)}function M(e,h){let l=e.y0-(e.sourceLinks.length-1)*_/2;for(const{target:u,width:s}of e.sourceLinks){if(u===h)break;l+=s+_}for(const{source:u,width:s}of h.targetLinks){if(u===e)break;l-=s}return l}function G(e,h){let l=h.y0-(h.targetLinks.length-1)*_/2;for(const{source:u,width:s}of h.targetLinks){if(u===e)break;l+=s+_}for(const{target:u,width:s}of e.sourceLinks){if(u===h)break;l-=s}return l}return v}var rt=Math.PI,st=2*rt,z=1e-6,Ut=st-z;function ot(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function mt(){return new ot}ot.prototype=mt.prototype={constructor:ot,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,r,a){this._+="Q"+ +t+","+ +n+","+(this._x1=+r)+","+(this._y1=+a)},bezierCurveTo:function(t,n,r,a,c,k){this._+="C"+ +t+","+ +n+","+ +r+","+ +a+","+(this._x1=+c)+","+(this._y1=+k)},arcTo:function(t,n,r,a,c){t=+t,n=+n,r=+r,a=+a,c=+c;var k=this._x1,_=this._y1,m=r-t,i=a-n,o=k-t,f=_-n,d=o*o+f*f;if(c<0)throw new Error("negative radius: "+c);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(d>z)if(!(Math.abs(f*m-i*o)>z)||!c)this._+="L"+(this._x1=t)+","+(this._y1=n);else{var y=r-k,w=a-_,v=m*m+i*i,N=y*y+w*w,A=Math.sqrt(v),T=Math.sqrt(d),I=c*Math.tan((rt-Math.acos((v+d-N)/(2*A*T)))/2),P=I/T,S=I/A;Math.abs(P-1)>z&&(this._+="L"+(t+P*o)+","+(n+P*f)),this._+="A"+c+","+c+",0,0,"+ +(f*y>o*w)+","+(this._x1=t+S*m)+","+(this._y1=n+S*i)}},arc:function(t,n,r,a,c,k){t=+t,n=+n,r=+r,k=!!k;var _=r*Math.cos(a),m=r*Math.sin(a),i=t+_,o=n+m,f=1^k,d=k?a-c:c-a;if(r<0)throw new Error("negative radius: "+r);this._x1===null?this._+="M"+i+","+o:(Math.abs(this._x1-i)>z||Math.abs(this._y1-o)>z)&&(this._+="L"+i+","+o),r&&(d<0&&(d=d%st+st),d>Ut?this._+="A"+r+","+r+",0,1,"+f+","+(t-_)+","+(n-m)+"A"+r+","+r+",0,1,"+f+","+(this._x1=i)+","+(this._y1=o):d>z&&(this._+="A"+r+","+r+",0,"+ +(d>=rt)+","+f+","+(this._x1=t+r*Math.cos(c))+","+(this._y1=n+r*Math.sin(c))))},rect:function(t,n,r,a){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +r+"v"+ +a+"h"+-r+"Z"},toString:function(){return this._}};function gt(t){return function(){return t}}function Gt(t){return t[0]}function Wt(t){return t[1]}var qt=Array.prototype.slice;function Rt(t){return t.source}function Vt(t){return t.target}function Xt(t){var n=Rt,r=Vt,a=Gt,c=Wt,k=null;function _(){var m,i=qt.call(arguments),o=n.apply(this,i),f=r.apply(this,i);if(k||(k=m=mt()),t(k,+a.apply(this,(i[0]=o,i)),+c.apply(this,i),+a.apply(this,(i[0]=f,i)),+c.apply(this,i)),m)return k=null,m+""||null}return _.source=function(m){return arguments.length?(n=m,_):n},_.target=function(m){return arguments.length?(r=m,_):r},_.x=function(m){return arguments.length?(a=typeof m=="function"?m:gt(+m),_):a},_.y=function(m){return arguments.length?(c=typeof m=="function"?m:gt(+m),_):c},_.context=function(m){return arguments.length?(k=m??null,_):k},_}function Yt(t,n,r,a,c){t.moveTo(n,r),t.bezierCurveTo(n=(n+a)/2,r,n,c,a,c)}function Kt(){return Xt(Yt)}function Qt(t){return[t.source.x1,t.y0]}function Zt(t){return[t.target.x0,t.y1]}function Bt(){return Kt().source(Qt).target(Zt)}var at=function(){var t=p(function(m,i,o,f){for(o=o||{},f=m.length;f--;o[m[f]]=i);return o},"o"),n=[1,9],r=[1,10],a=[1,5,10,12],c={trace:p(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:p(function(m,i,o,f,d,y,w){var v=y.length-1;switch(d){case 7:const N=f.findOrCreateNode(y[v-4].trim().replaceAll('""','"')),A=f.findOrCreateNode(y[v-2].trim().replaceAll('""','"')),T=parseFloat(y[v].trim());f.addLink(N,A,T);break;case 8:case 9:case 11:this.$=y[v];break;case 10:this.$=y[v-1];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:n,20:r},{1:[2,6],7:11,10:[1,12]},t(r,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(a,[2,8]),t(a,[2,9]),{19:[1,16]},t(a,[2,11]),{1:[2,1]},{1:[2,5]},t(r,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:n,20:r},{15:18,16:7,17:8,18:n,20:r},{18:[1,19]},t(r,[2,3]),{12:[1,20]},t(a,[2,10]),{15:21,16:7,17:8,18:n,20:r},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:p(function(m,i){if(i.recoverable)this.trace(m);else{var o=new Error(m);throw o.hash=i,o}},"parseError"),parse:p(function(m){var i=this,o=[0],f=[],d=[null],y=[],w=this.table,v="",N=0,A=0,T=2,I=1,P=y.slice.call(arguments,1),S=Object.create(this.lexer),O={yy:{}};for(var D in this.yy)Object.prototype.hasOwnProperty.call(this.yy,D)&&(O.yy[D]=this.yy[D]);S.setInput(m,O.yy),O.yy.lexer=S,O.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var C=S.yylloc;y.push(C);var g=S.options&&S.options.ranges;typeof O.yy.parseError=="function"?this.parseError=O.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function L(b){o.length=o.length-2*b,d.length=d.length-b,y.length=y.length-b}p(L,"popStack");function U(){var b;return b=f.pop()||S.lex()||I,typeof b!="number"&&(b instanceof Array&&(f=b,b=f.pop()),b=i.symbols_[b]||b),b}p(U,"lex");for(var E,$,M,G,e={},h,l,u,s;;){if($=o[o.length-1],this.defaultActions[$]?M=this.defaultActions[$]:((E===null||typeof E>"u")&&(E=U()),M=w[$]&&w[$][E]),typeof M>"u"||!M.length||!M[0]){var x="";s=[];for(h in w[$])this.terminals_[h]&&h>T&&s.push("'"+this.terminals_[h]+"'");S.showPosition?x="Parse error on line "+(N+1)+`:
1
+ import{R as p,n as xt,o as kt,f as vt,u as bt,s as wt,l as St,c as lt,D as Et,e as X,ap as Lt,aT as Mt,t as At,x as Tt}from"./index-Dwfg9sR1.js";function Pt(t){for(var n=t.length/6|0,r=new Array(n),a=0;a<n;)r[a]="#"+t.slice(a*6,++a*6);return r}const Nt=Pt("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function ct(t,n){let r;if(n===void 0)for(const a of t)a!=null&&(r<a||r===void 0&&a>=a)&&(r=a);else{let a=-1;for(let c of t)(c=n(c,++a,t))!=null&&(r<c||r===void 0&&c>=c)&&(r=c)}return r}function pt(t,n){let r;if(n===void 0)for(const a of t)a!=null&&(r>a||r===void 0&&a>=a)&&(r=a);else{let a=-1;for(let c of t)(c=n(c,++a,t))!=null&&(r>c||r===void 0&&c>=c)&&(r=c)}return r}function tt(t,n){let r=0;if(n===void 0)for(let a of t)(a=+a)&&(r+=a);else{let a=-1;for(let c of t)(c=+n(c,++a,t))&&(r+=c)}return r}function Ot(t){return t.target.depth}function Ct(t){return t.depth}function It(t,n){return n-1-t.height}function _t(t,n){return t.sourceLinks.length?t.depth:n-1}function Dt(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?pt(t.sourceLinks,Ot)-1:0}function Y(t){return function(){return t}}function ut(t,n){return K(t.source,n.source)||t.index-n.index}function ht(t,n){return K(t.target,n.target)||t.index-n.index}function K(t,n){return t.y0-n.y0}function et(t){return t.value}function $t(t){return t.index}function jt(t){return t.nodes}function zt(t){return t.links}function ft(t,n){const r=t.get(n);if(!r)throw new Error("missing: "+n);return r}function yt({nodes:t}){for(const n of t){let r=n.y0,a=r;for(const c of n.sourceLinks)c.y0=r+c.width/2,r+=c.width;for(const c of n.targetLinks)c.y1=a+c.width/2,a+=c.width}}function Ft(){let t=0,n=0,r=1,a=1,c=24,k=8,_,m=$t,i=_t,o,f,d=jt,y=zt,w=6;function v(){const e={nodes:d.apply(null,arguments),links:y.apply(null,arguments)};return N(e),A(e),T(e),I(e),O(e),yt(e),e}v.update=function(e){return yt(e),e},v.nodeId=function(e){return arguments.length?(m=typeof e=="function"?e:Y(e),v):m},v.nodeAlign=function(e){return arguments.length?(i=typeof e=="function"?e:Y(e),v):i},v.nodeSort=function(e){return arguments.length?(o=e,v):o},v.nodeWidth=function(e){return arguments.length?(c=+e,v):c},v.nodePadding=function(e){return arguments.length?(k=_=+e,v):k},v.nodes=function(e){return arguments.length?(d=typeof e=="function"?e:Y(e),v):d},v.links=function(e){return arguments.length?(y=typeof e=="function"?e:Y(e),v):y},v.linkSort=function(e){return arguments.length?(f=e,v):f},v.size=function(e){return arguments.length?(t=n=0,r=+e[0],a=+e[1],v):[r-t,a-n]},v.extent=function(e){return arguments.length?(t=+e[0][0],r=+e[1][0],n=+e[0][1],a=+e[1][1],v):[[t,n],[r,a]]},v.iterations=function(e){return arguments.length?(w=+e,v):w};function N({nodes:e,links:h}){for(const[u,s]of e.entries())s.index=u,s.sourceLinks=[],s.targetLinks=[];const l=new Map(e.map((u,s)=>[m(u,s,e),u]));for(const[u,s]of h.entries()){s.index=u;let{source:x,target:b}=s;typeof x!="object"&&(x=s.source=ft(l,x)),typeof b!="object"&&(b=s.target=ft(l,b)),x.sourceLinks.push(s),b.targetLinks.push(s)}if(f!=null)for(const{sourceLinks:u,targetLinks:s}of e)u.sort(f),s.sort(f)}function A({nodes:e}){for(const h of e)h.value=h.fixedValue===void 0?Math.max(tt(h.sourceLinks,et),tt(h.targetLinks,et)):h.fixedValue}function T({nodes:e}){const h=e.length;let l=new Set(e),u=new Set,s=0;for(;l.size;){for(const x of l){x.depth=s;for(const{target:b}of x.sourceLinks)u.add(b)}if(++s>h)throw new Error("circular link");l=u,u=new Set}}function I({nodes:e}){const h=e.length;let l=new Set(e),u=new Set,s=0;for(;l.size;){for(const x of l){x.height=s;for(const{source:b}of x.targetLinks)u.add(b)}if(++s>h)throw new Error("circular link");l=u,u=new Set}}function P({nodes:e}){const h=ct(e,s=>s.depth)+1,l=(r-t-c)/(h-1),u=new Array(h);for(const s of e){const x=Math.max(0,Math.min(h-1,Math.floor(i.call(null,s,h))));s.layer=x,s.x0=t+x*l,s.x1=s.x0+c,u[x]?u[x].push(s):u[x]=[s]}if(o)for(const s of u)s.sort(o);return u}function S(e){const h=pt(e,l=>(a-n-(l.length-1)*_)/tt(l,et));for(const l of e){let u=n;for(const s of l){s.y0=u,s.y1=u+s.value*h,u=s.y1+_;for(const x of s.sourceLinks)x.width=x.value*h}u=(a-u+_)/(l.length+1);for(let s=0;s<l.length;++s){const x=l[s];x.y0+=u*(s+1),x.y1+=u*(s+1)}$(l)}}function O(e){const h=P(e);_=Math.min(k,(a-n)/(ct(h,l=>l.length)-1)),S(h);for(let l=0;l<w;++l){const u=Math.pow(.99,l),s=Math.max(1-u,(l+1)/w);C(h,u,s),D(h,u,s)}}function D(e,h,l){for(let u=1,s=e.length;u<s;++u){const x=e[u];for(const b of x){let W=0,j=0;for(const{source:R,value:H}of b.targetLinks){let V=H*(b.layer-R.layer);W+=M(R,b)*V,j+=V}if(!(j>0))continue;let q=(W/j-b.y0)*h;b.y0+=q,b.y1+=q,E(b)}o===void 0&&x.sort(K),g(x,l)}}function C(e,h,l){for(let u=e.length,s=u-2;s>=0;--s){const x=e[s];for(const b of x){let W=0,j=0;for(const{target:R,value:H}of b.sourceLinks){let V=H*(R.layer-b.layer);W+=G(b,R)*V,j+=V}if(!(j>0))continue;let q=(W/j-b.y0)*h;b.y0+=q,b.y1+=q,E(b)}o===void 0&&x.sort(K),g(x,l)}}function g(e,h){const l=e.length>>1,u=e[l];U(e,u.y0-_,l-1,h),L(e,u.y1+_,l+1,h),U(e,a,e.length-1,h),L(e,n,0,h)}function L(e,h,l,u){for(;l<e.length;++l){const s=e[l],x=(h-s.y0)*u;x>1e-6&&(s.y0+=x,s.y1+=x),h=s.y1+_}}function U(e,h,l,u){for(;l>=0;--l){const s=e[l],x=(s.y1-h)*u;x>1e-6&&(s.y0-=x,s.y1-=x),h=s.y0-_}}function E({sourceLinks:e,targetLinks:h}){if(f===void 0){for(const{source:{sourceLinks:l}}of h)l.sort(ht);for(const{target:{targetLinks:l}}of e)l.sort(ut)}}function $(e){if(f===void 0)for(const{sourceLinks:h,targetLinks:l}of e)h.sort(ht),l.sort(ut)}function M(e,h){let l=e.y0-(e.sourceLinks.length-1)*_/2;for(const{target:u,width:s}of e.sourceLinks){if(u===h)break;l+=s+_}for(const{source:u,width:s}of h.targetLinks){if(u===e)break;l-=s}return l}function G(e,h){let l=h.y0-(h.targetLinks.length-1)*_/2;for(const{source:u,width:s}of h.targetLinks){if(u===e)break;l+=s+_}for(const{target:u,width:s}of e.sourceLinks){if(u===h)break;l-=s}return l}return v}var rt=Math.PI,st=2*rt,z=1e-6,Ut=st-z;function ot(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function mt(){return new ot}ot.prototype=mt.prototype={constructor:ot,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,r,a){this._+="Q"+ +t+","+ +n+","+(this._x1=+r)+","+(this._y1=+a)},bezierCurveTo:function(t,n,r,a,c,k){this._+="C"+ +t+","+ +n+","+ +r+","+ +a+","+(this._x1=+c)+","+(this._y1=+k)},arcTo:function(t,n,r,a,c){t=+t,n=+n,r=+r,a=+a,c=+c;var k=this._x1,_=this._y1,m=r-t,i=a-n,o=k-t,f=_-n,d=o*o+f*f;if(c<0)throw new Error("negative radius: "+c);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(d>z)if(!(Math.abs(f*m-i*o)>z)||!c)this._+="L"+(this._x1=t)+","+(this._y1=n);else{var y=r-k,w=a-_,v=m*m+i*i,N=y*y+w*w,A=Math.sqrt(v),T=Math.sqrt(d),I=c*Math.tan((rt-Math.acos((v+d-N)/(2*A*T)))/2),P=I/T,S=I/A;Math.abs(P-1)>z&&(this._+="L"+(t+P*o)+","+(n+P*f)),this._+="A"+c+","+c+",0,0,"+ +(f*y>o*w)+","+(this._x1=t+S*m)+","+(this._y1=n+S*i)}},arc:function(t,n,r,a,c,k){t=+t,n=+n,r=+r,k=!!k;var _=r*Math.cos(a),m=r*Math.sin(a),i=t+_,o=n+m,f=1^k,d=k?a-c:c-a;if(r<0)throw new Error("negative radius: "+r);this._x1===null?this._+="M"+i+","+o:(Math.abs(this._x1-i)>z||Math.abs(this._y1-o)>z)&&(this._+="L"+i+","+o),r&&(d<0&&(d=d%st+st),d>Ut?this._+="A"+r+","+r+",0,1,"+f+","+(t-_)+","+(n-m)+"A"+r+","+r+",0,1,"+f+","+(this._x1=i)+","+(this._y1=o):d>z&&(this._+="A"+r+","+r+",0,"+ +(d>=rt)+","+f+","+(this._x1=t+r*Math.cos(c))+","+(this._y1=n+r*Math.sin(c))))},rect:function(t,n,r,a){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +r+"v"+ +a+"h"+-r+"Z"},toString:function(){return this._}};function gt(t){return function(){return t}}function Gt(t){return t[0]}function Wt(t){return t[1]}var qt=Array.prototype.slice;function Rt(t){return t.source}function Vt(t){return t.target}function Xt(t){var n=Rt,r=Vt,a=Gt,c=Wt,k=null;function _(){var m,i=qt.call(arguments),o=n.apply(this,i),f=r.apply(this,i);if(k||(k=m=mt()),t(k,+a.apply(this,(i[0]=o,i)),+c.apply(this,i),+a.apply(this,(i[0]=f,i)),+c.apply(this,i)),m)return k=null,m+""||null}return _.source=function(m){return arguments.length?(n=m,_):n},_.target=function(m){return arguments.length?(r=m,_):r},_.x=function(m){return arguments.length?(a=typeof m=="function"?m:gt(+m),_):a},_.y=function(m){return arguments.length?(c=typeof m=="function"?m:gt(+m),_):c},_.context=function(m){return arguments.length?(k=m??null,_):k},_}function Yt(t,n,r,a,c){t.moveTo(n,r),t.bezierCurveTo(n=(n+a)/2,r,n,c,a,c)}function Kt(){return Xt(Yt)}function Qt(t){return[t.source.x1,t.y0]}function Zt(t){return[t.target.x0,t.y1]}function Bt(){return Kt().source(Qt).target(Zt)}var at=function(){var t=p(function(m,i,o,f){for(o=o||{},f=m.length;f--;o[m[f]]=i);return o},"o"),n=[1,9],r=[1,10],a=[1,5,10,12],c={trace:p(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:p(function(m,i,o,f,d,y,w){var v=y.length-1;switch(d){case 7:const N=f.findOrCreateNode(y[v-4].trim().replaceAll('""','"')),A=f.findOrCreateNode(y[v-2].trim().replaceAll('""','"')),T=parseFloat(y[v].trim());f.addLink(N,A,T);break;case 8:case 9:case 11:this.$=y[v];break;case 10:this.$=y[v-1];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:n,20:r},{1:[2,6],7:11,10:[1,12]},t(r,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(a,[2,8]),t(a,[2,9]),{19:[1,16]},t(a,[2,11]),{1:[2,1]},{1:[2,5]},t(r,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:n,20:r},{15:18,16:7,17:8,18:n,20:r},{18:[1,19]},t(r,[2,3]),{12:[1,20]},t(a,[2,10]),{15:21,16:7,17:8,18:n,20:r},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:p(function(m,i){if(i.recoverable)this.trace(m);else{var o=new Error(m);throw o.hash=i,o}},"parseError"),parse:p(function(m){var i=this,o=[0],f=[],d=[null],y=[],w=this.table,v="",N=0,A=0,T=2,I=1,P=y.slice.call(arguments,1),S=Object.create(this.lexer),O={yy:{}};for(var D in this.yy)Object.prototype.hasOwnProperty.call(this.yy,D)&&(O.yy[D]=this.yy[D]);S.setInput(m,O.yy),O.yy.lexer=S,O.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var C=S.yylloc;y.push(C);var g=S.options&&S.options.ranges;typeof O.yy.parseError=="function"?this.parseError=O.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function L(b){o.length=o.length-2*b,d.length=d.length-b,y.length=y.length-b}p(L,"popStack");function U(){var b;return b=f.pop()||S.lex()||I,typeof b!="number"&&(b instanceof Array&&(f=b,b=f.pop()),b=i.symbols_[b]||b),b}p(U,"lex");for(var E,$,M,G,e={},h,l,u,s;;){if($=o[o.length-1],this.defaultActions[$]?M=this.defaultActions[$]:((E===null||typeof E>"u")&&(E=U()),M=w[$]&&w[$][E]),typeof M>"u"||!M.length||!M[0]){var x="";s=[];for(h in w[$])this.terminals_[h]&&h>T&&s.push("'"+this.terminals_[h]+"'");S.showPosition?x="Parse error on line "+(N+1)+`:
2
2
  `+S.showPosition()+`
3
3
  Expecting `+s.join(", ")+", got '"+(this.terminals_[E]||E)+"'":x="Parse error on line "+(N+1)+": Unexpected "+(E==I?"end of input":"'"+(this.terminals_[E]||E)+"'"),this.parseError(x,{text:S.match,token:this.terminals_[E]||E,line:S.yylineno,loc:C,expected:s})}if(M[0]instanceof Array&&M.length>1)throw new Error("Parse Error: multiple actions possible at state: "+$+", token: "+E);switch(M[0]){case 1:o.push(E),d.push(S.yytext),y.push(S.yylloc),o.push(M[1]),E=null,A=S.yyleng,v=S.yytext,N=S.yylineno,C=S.yylloc;break;case 2:if(l=this.productions_[M[1]][1],e.$=d[d.length-l],e._$={first_line:y[y.length-(l||1)].first_line,last_line:y[y.length-1].last_line,first_column:y[y.length-(l||1)].first_column,last_column:y[y.length-1].last_column},g&&(e._$.range=[y[y.length-(l||1)].range[0],y[y.length-1].range[1]]),G=this.performAction.apply(e,[v,A,N,O.yy,M[1],d,y].concat(P)),typeof G<"u")return G;l&&(o=o.slice(0,-1*l*2),d=d.slice(0,-1*l),y=y.slice(0,-1*l)),o.push(this.productions_[M[1]][0]),d.push(e.$),y.push(e._$),u=w[o[o.length-2]][o[o.length-1]],o.push(u);break;case 3:return!0}}return!0},"parse")},k=function(){var m={EOF:1,parseError:p(function(i,o){if(this.yy.parser)this.yy.parser.parseError(i,o);else throw new Error(i)},"parseError"),setInput:p(function(i,o){return this.yy=o||this.yy||{},this._input=i,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:p(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var o=i.match(/(?:\r\n?|\n).*/g);return o?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:p(function(i){var o=i.length,f=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o),this.offset-=o;var d=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),f.length-1&&(this.yylineno-=f.length-1);var y=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:f?(f.length===d.length?this.yylloc.first_column:0)+d[d.length-f.length].length-f[0].length:this.yylloc.first_column-o},this.options.ranges&&(this.yylloc.range=[y[0],y[0]+this.yyleng-o]),this.yyleng=this.yytext.length,this},"unput"),more:p(function(){return this._more=!0,this},"more"),reject:p(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
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:p(function(i){this.unput(this.match.slice(i))},"less"),pastInput:p(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:p(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:p(function(){var i=this.pastInput(),o=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import{d as Ee,p as Ut,y as lt,x as we,m as Gt,h as Kt}from"./chunk-TZMSLE5B-CNFsEzOl-BT3YM95Y.js";import{R as y,j as Ie,c as at,e as At,O as X,A as re,B as ke,C as Le,x as L,s as ee,f as ve,n as Pe,l as _e,u as Ae,o as Ne,v as Me,y as Oe,t as Se,w as Nt,k as V,ax as kt,ay as W,ao as se,az as De,aA as $e,aB as ie,L as qt}from"./index-CIi9dO9d.js";import{e as Re}from"./chunk-QZHKN3VN-DMEEp6GB-MKN7DFjX.js";var zt=function(){var e=y(function(ct,I,k,E){for(k=k||{},E=ct.length;E--;k[ct[E]]=I);return k},"o"),t=[1,2],o=[1,3],a=[1,4],r=[2,4],s=[1,9],c=[1,11],h=[1,13],g=[1,14],i=[1,16],d=[1,17],n=[1,18],u=[1,24],b=[1,25],T=[1,26],w=[1,27],P=[1,28],A=[1,29],N=[1,30],M=[1,31],$=[1,32],B=[1,33],q=[1,34],Z=[1,35],rt=[1,36],z=[1,37],H=[1,38],F=[1,39],R=[1,41],Q=[1,42],j=[1,43],J=[1,44],st=[1,45],D=[1,46],f=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,55,60,61,62,63,71],v=[2,71],U=[4,5,16,50,52,53],tt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,55,60,61,62,63,71],S=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,55,60,61,62,63,71],Rt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,55,60,61,62,63,71],Xt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,55,60,61,62,63,71],nt=[69,70,71],ht=[1,127],Ct={trace:y(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,actor_with_config:54,note:55,placement:56,text2:57,over:58,actor_pair:59,links:60,link:61,properties:62,details:63,spaceList:64,",":65,left_of:66,right_of:67,signaltype:68,"+":69,"-":70,ACTOR:71,config_object:72,CONFIG_START:73,CONFIG_CONTENT:74,CONFIG_END:75,SOLID_OPEN_ARROW:76,DOTTED_OPEN_ARROW:77,SOLID_ARROW:78,BIDIRECTIONAL_SOLID_ARROW:79,DOTTED_ARROW:80,BIDIRECTIONAL_DOTTED_ARROW:81,SOLID_CROSS:82,DOTTED_CROSS:83,SOLID_POINT:84,DOTTED_POINT:85,TXT:86,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",29:"title",30:"legacy_title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"loop",37:"rect",38:"opt",39:"alt",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",55:"note",58:"over",60:"links",61:"link",62:"properties",63:"details",65:",",66:"left_of",67:"right_of",69:"+",70:"-",71:"ACTOR",73:"CONFIG_START",74:"CONFIG_CONTENT",75:"CONFIG_END",76:"SOLID_OPEN_ARROW",77:"DOTTED_OPEN_ARROW",78:"SOLID_ARROW",79:"BIDIRECTIONAL_SOLID_ARROW",80:"DOTTED_ARROW",81:"BIDIRECTIONAL_DOTTED_ARROW",82:"SOLID_CROSS",83:"DOTTED_CROSS",84:"SOLID_POINT",85:"DOTTED_POINT",86:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[64,2],[64,1],[59,3],[59,1],[56,1],[56,1],[17,5],[17,5],[17,4],[54,2],[72,3],[22,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[57,1]],performAction:y(function(ct,I,k,E,O,p,G){var x=p.length-1;switch(O){case 3:return E.apply(p[x]),p[x];case 4:case 9:this.$=[];break;case 5:case 10:p[x-1].push(p[x]),this.$=p[x-1];break;case 6:case 7:case 11:case 12:this.$=p[x];break;case 8:case 13:this.$=[];break;case 15:p[x].type="createParticipant",this.$=p[x];break;case 16:p[x-1].unshift({type:"boxStart",boxData:E.parseBoxData(p[x-2])}),p[x-1].push({type:"boxEnd",boxText:p[x-2]}),this.$=p[x-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(p[x-2]),sequenceIndexStep:Number(p[x-1]),sequenceVisible:!0,signalType:E.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(p[x-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:E.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:E.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:E.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:E.LINETYPE.ACTIVE_START,actor:p[x-1].actor};break;case 23:this.$={type:"activeEnd",signalType:E.LINETYPE.ACTIVE_END,actor:p[x-1].actor};break;case 29:E.setDiagramTitle(p[x].substring(6)),this.$=p[x].substring(6);break;case 30:E.setDiagramTitle(p[x].substring(7)),this.$=p[x].substring(7);break;case 31:this.$=p[x].trim(),E.setAccTitle(this.$);break;case 32:case 33:this.$=p[x].trim(),E.setAccDescription(this.$);break;case 34:p[x-1].unshift({type:"loopStart",loopText:E.parseMessage(p[x-2]),signalType:E.LINETYPE.LOOP_START}),p[x-1].push({type:"loopEnd",loopText:p[x-2],signalType:E.LINETYPE.LOOP_END}),this.$=p[x-1];break;case 35:p[x-1].unshift({type:"rectStart",color:E.parseMessage(p[x-2]),signalType:E.LINETYPE.RECT_START}),p[x-1].push({type:"rectEnd",color:E.parseMessage(p[x-2]),signalType:E.LINETYPE.RECT_END}),this.$=p[x-1];break;case 36:p[x-1].unshift({type:"optStart",optText:E.parseMessage(p[x-2]),signalType:E.LINETYPE.OPT_START}),p[x-1].push({type:"optEnd",optText:E.parseMessage(p[x-2]),signalType:E.LINETYPE.OPT_END}),this.$=p[x-1];break;case 37:p[x-1].unshift({type:"altStart",altText:E.parseMessage(p[x-2]),signalType:E.LINETYPE.ALT_START}),p[x-1].push({type:"altEnd",signalType:E.LINETYPE.ALT_END}),this.$=p[x-1];break;case 38:p[x-1].unshift({type:"parStart",parText:E.parseMessage(p[x-2]),signalType:E.LINETYPE.PAR_START}),p[x-1].push({type:"parEnd",signalType:E.LINETYPE.PAR_END}),this.$=p[x-1];break;case 39:p[x-1].unshift({type:"parStart",parText:E.parseMessage(p[x-2]),signalType:E.LINETYPE.PAR_OVER_START}),p[x-1].push({type:"parEnd",signalType:E.LINETYPE.PAR_END}),this.$=p[x-1];break;case 40:p[x-1].unshift({type:"criticalStart",criticalText:E.parseMessage(p[x-2]),signalType:E.LINETYPE.CRITICAL_START}),p[x-1].push({type:"criticalEnd",signalType:E.LINETYPE.CRITICAL_END}),this.$=p[x-1];break;case 41:p[x-1].unshift({type:"breakStart",breakText:E.parseMessage(p[x-2]),signalType:E.LINETYPE.BREAK_START}),p[x-1].push({type:"breakEnd",optText:E.parseMessage(p[x-2]),signalType:E.LINETYPE.BREAK_END}),this.$=p[x-1];break;case 43:this.$=p[x-3].concat([{type:"option",optionText:E.parseMessage(p[x-1]),signalType:E.LINETYPE.CRITICAL_OPTION},p[x]]);break;case 45:this.$=p[x-3].concat([{type:"and",parText:E.parseMessage(p[x-1]),signalType:E.LINETYPE.PAR_AND},p[x]]);break;case 47:this.$=p[x-3].concat([{type:"else",altText:E.parseMessage(p[x-1]),signalType:E.LINETYPE.ALT_ELSE},p[x]]);break;case 48:p[x-3].draw="participant",p[x-3].type="addParticipant",p[x-3].description=E.parseMessage(p[x-1]),this.$=p[x-3];break;case 49:p[x-1].draw="participant",p[x-1].type="addParticipant",this.$=p[x-1];break;case 50:p[x-3].draw="actor",p[x-3].type="addParticipant",p[x-3].description=E.parseMessage(p[x-1]),this.$=p[x-3];break;case 51:p[x-1].draw="actor",p[x-1].type="addParticipant",this.$=p[x-1];break;case 52:p[x-1].type="destroyParticipant",this.$=p[x-1];break;case 53:p[x-1].draw="participant",p[x-1].type="addParticipant",this.$=p[x-1];break;case 54:this.$=[p[x-1],{type:"addNote",placement:p[x-2],actor:p[x-1].actor,text:p[x]}];break;case 55:p[x-2]=[].concat(p[x-1],p[x-1]).slice(0,2),p[x-2][0]=p[x-2][0].actor,p[x-2][1]=p[x-2][1].actor,this.$=[p[x-1],{type:"addNote",placement:E.PLACEMENT.OVER,actor:p[x-2].slice(0,2),text:p[x]}];break;case 56:this.$=[p[x-1],{type:"addLinks",actor:p[x-1].actor,text:p[x]}];break;case 57:this.$=[p[x-1],{type:"addALink",actor:p[x-1].actor,text:p[x]}];break;case 58:this.$=[p[x-1],{type:"addProperties",actor:p[x-1].actor,text:p[x]}];break;case 59:this.$=[p[x-1],{type:"addDetails",actor:p[x-1].actor,text:p[x]}];break;case 62:this.$=[p[x-2],p[x]];break;case 63:this.$=p[x];break;case 64:this.$=E.PLACEMENT.LEFTOF;break;case 65:this.$=E.PLACEMENT.RIGHTOF;break;case 66:this.$=[p[x-4],p[x-1],{type:"addMessage",from:p[x-4].actor,to:p[x-1].actor,signalType:p[x-3],msg:p[x],activate:!0},{type:"activeStart",signalType:E.LINETYPE.ACTIVE_START,actor:p[x-1].actor}];break;case 67:this.$=[p[x-4],p[x-1],{type:"addMessage",from:p[x-4].actor,to:p[x-1].actor,signalType:p[x-3],msg:p[x]},{type:"activeEnd",signalType:E.LINETYPE.ACTIVE_END,actor:p[x-4].actor}];break;case 68:this.$=[p[x-3],p[x-1],{type:"addMessage",from:p[x-3].actor,to:p[x-1].actor,signalType:p[x-2],msg:p[x]}];break;case 69:this.$={type:"addParticipant",actor:p[x-1],config:p[x]};break;case 70:this.$=p[x-1].trim();break;case 71:this.$={type:"addParticipant",actor:p[x]};break;case 72:this.$=E.LINETYPE.SOLID_OPEN;break;case 73:this.$=E.LINETYPE.DOTTED_OPEN;break;case 74:this.$=E.LINETYPE.SOLID;break;case 75:this.$=E.LINETYPE.BIDIRECTIONAL_SOLID;break;case 76:this.$=E.LINETYPE.DOTTED;break;case 77:this.$=E.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 78:this.$=E.LINETYPE.SOLID_CROSS;break;case 79:this.$=E.LINETYPE.DOTTED_CROSS;break;case 80:this.$=E.LINETYPE.SOLID_POINT;break;case 81:this.$=E.LINETYPE.DOTTED_POINT;break;case 82:this.$=E.parseMessage(p[x].trim().substring(1));break}},"anonymous"),table:[{3:1,4:t,5:o,6:a},{1:[3]},{3:5,4:t,5:o,6:a},{3:6,4:t,5:o,6:a},e([1,4,5,13,14,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,55,60,61,62,63,71],r,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:s,5:c,8:8,9:10,12:12,13:h,14:g,17:15,18:i,21:d,22:40,23:n,24:19,25:20,26:21,27:22,28:23,29:u,30:b,31:T,33:w,35:P,36:A,37:N,38:M,39:$,41:B,43:q,44:Z,46:rt,50:z,52:H,53:F,55:R,60:Q,61:j,62:J,63:st,71:D},e(f,[2,5]),{9:47,12:12,13:h,14:g,17:15,18:i,21:d,22:40,23:n,24:19,25:20,26:21,27:22,28:23,29:u,30:b,31:T,33:w,35:P,36:A,37:N,38:M,39:$,41:B,43:q,44:Z,46:rt,50:z,52:H,53:F,55:R,60:Q,61:j,62:J,63:st,71:D},e(f,[2,7]),e(f,[2,8]),e(f,[2,14]),{12:48,50:z,52:H,53:F},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,71:D},{22:55,71:D},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},e(f,[2,29]),e(f,[2,30]),{32:[1,61]},{34:[1,62]},e(f,[2,33]),{15:[1,63]},{15:[1,64]},{15:[1,65]},{15:[1,66]},{15:[1,67]},{15:[1,68]},{15:[1,69]},{15:[1,70]},{22:71,54:72,71:[1,73]},{22:74,71:D},{22:75,71:D},{68:76,76:[1,77],77:[1,78],78:[1,79],79:[1,80],80:[1,81],81:[1,82],82:[1,83],83:[1,84],84:[1,85],85:[1,86]},{56:87,58:[1,88],66:[1,89],67:[1,90]},{22:91,71:D},{22:92,71:D},{22:93,71:D},{22:94,71:D},e([5,51,65,76,77,78,79,80,81,82,83,84,85,86],v),e(f,[2,6]),e(f,[2,15]),e(U,[2,9],{10:95}),e(f,[2,17]),{5:[1,97],19:[1,96]},{5:[1,98]},e(f,[2,21]),{5:[1,99]},{5:[1,100]},e(f,[2,24]),e(f,[2,25]),e(f,[2,26]),e(f,[2,27]),e(f,[2,28]),e(f,[2,31]),e(f,[2,32]),e(tt,r,{7:101}),e(tt,r,{7:102}),e(tt,r,{7:103}),e(S,r,{40:104,7:105}),e(Rt,r,{42:106,7:107}),e(Rt,r,{7:107,42:108}),e(Xt,r,{45:109,7:110}),e(tt,r,{7:111}),{5:[1,113],51:[1,112]},{5:[1,114]},e([5,51],v,{72:115,73:[1,116]}),{5:[1,118],51:[1,117]},{5:[1,119]},{22:122,69:[1,120],70:[1,121],71:D},e(nt,[2,72]),e(nt,[2,73]),e(nt,[2,74]),e(nt,[2,75]),e(nt,[2,76]),e(nt,[2,77]),e(nt,[2,78]),e(nt,[2,79]),e(nt,[2,80]),e(nt,[2,81]),{22:123,71:D},{22:125,59:124,71:D},{71:[2,64]},{71:[2,65]},{57:126,86:ht},{57:128,86:ht},{57:129,86:ht},{57:130,86:ht},{4:[1,133],5:[1,135],11:132,12:134,16:[1,131],50:z,52:H,53:F},{5:[1,136]},e(f,[2,19]),e(f,[2,20]),e(f,[2,22]),e(f,[2,23]),{4:s,5:c,8:8,9:10,12:12,13:h,14:g,16:[1,137],17:15,18:i,21:d,22:40,23:n,24:19,25:20,26:21,27:22,28:23,29:u,30:b,31:T,33:w,35:P,36:A,37:N,38:M,39:$,41:B,43:q,44:Z,46:rt,50:z,52:H,53:F,55:R,60:Q,61:j,62:J,63:st,71:D},{4:s,5:c,8:8,9:10,12:12,13:h,14:g,16:[1,138],17:15,18:i,21:d,22:40,23:n,24:19,25:20,26:21,27:22,28:23,29:u,30:b,31:T,33:w,35:P,36:A,37:N,38:M,39:$,41:B,43:q,44:Z,46:rt,50:z,52:H,53:F,55:R,60:Q,61:j,62:J,63:st,71:D},{4:s,5:c,8:8,9:10,12:12,13:h,14:g,16:[1,139],17:15,18:i,21:d,22:40,23:n,24:19,25:20,26:21,27:22,28:23,29:u,30:b,31:T,33:w,35:P,36:A,37:N,38:M,39:$,41:B,43:q,44:Z,46:rt,50:z,52:H,53:F,55:R,60:Q,61:j,62:J,63:st,71:D},{16:[1,140]},{4:s,5:c,8:8,9:10,12:12,13:h,14:g,16:[2,46],17:15,18:i,21:d,22:40,23:n,24:19,25:20,26:21,27:22,28:23,29:u,30:b,31:T,33:w,35:P,36:A,37:N,38:M,39:$,41:B,43:q,44:Z,46:rt,49:[1,141],50:z,52:H,53:F,55:R,60:Q,61:j,62:J,63:st,71:D},{16:[1,142]},{4:s,5:c,8:8,9:10,12:12,13:h,14:g,16:[2,44],17:15,18:i,21:d,22:40,23:n,24:19,25:20,26:21,27:22,28:23,29:u,30:b,31:T,33:w,35:P,36:A,37:N,38:M,39:$,41:B,43:q,44:Z,46:rt,48:[1,143],50:z,52:H,53:F,55:R,60:Q,61:j,62:J,63:st,71:D},{16:[1,144]},{16:[1,145]},{4:s,5:c,8:8,9:10,12:12,13:h,14:g,16:[2,42],17:15,18:i,21:d,22:40,23:n,24:19,25:20,26:21,27:22,28:23,29:u,30:b,31:T,33:w,35:P,36:A,37:N,38:M,39:$,41:B,43:q,44:Z,46:rt,47:[1,146],50:z,52:H,53:F,55:R,60:Q,61:j,62:J,63:st,71:D},{4:s,5:c,8:8,9:10,12:12,13:h,14:g,16:[1,147],17:15,18:i,21:d,22:40,23:n,24:19,25:20,26:21,27:22,28:23,29:u,30:b,31:T,33:w,35:P,36:A,37:N,38:M,39:$,41:B,43:q,44:Z,46:rt,50:z,52:H,53:F,55:R,60:Q,61:j,62:J,63:st,71:D},{15:[1,148]},e(f,[2,49]),e(f,[2,53]),{5:[2,69]},{74:[1,149]},{15:[1,150]},e(f,[2,51]),e(f,[2,52]),{22:151,71:D},{22:152,71:D},{57:153,86:ht},{57:154,86:ht},{57:155,86:ht},{65:[1,156],86:[2,63]},{5:[2,56]},{5:[2,82]},{5:[2,57]},{5:[2,58]},{5:[2,59]},e(f,[2,16]),e(U,[2,10]),{12:157,50:z,52:H,53:F},e(U,[2,12]),e(U,[2,13]),e(f,[2,18]),e(f,[2,34]),e(f,[2,35]),e(f,[2,36]),e(f,[2,37]),{15:[1,158]},e(f,[2,38]),{15:[1,159]},e(f,[2,39]),e(f,[2,40]),{15:[1,160]},e(f,[2,41]),{5:[1,161]},{75:[1,162]},{5:[1,163]},{57:164,86:ht},{57:165,86:ht},{5:[2,68]},{5:[2,54]},{5:[2,55]},{22:166,71:D},e(U,[2,11]),e(S,r,{7:105,40:167}),e(Rt,r,{7:107,42:168}),e(Xt,r,{7:110,45:169}),e(f,[2,48]),{5:[2,70]},e(f,[2,50]),{5:[2,66]},{5:[2,67]},{86:[2,62]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],89:[2,64],90:[2,65],115:[2,69],126:[2,56],127:[2,82],128:[2,57],129:[2,58],130:[2,59],153:[2,68],154:[2,54],155:[2,55],162:[2,70],164:[2,66],165:[2,67],166:[2,62],167:[2,47],168:[2,45],169:[2,43]},parseError:y(function(ct,I){if(I.recoverable)this.trace(ct);else{var k=new Error(ct);throw k.hash=I,k}},"parseError"),parse:y(function(ct){var I=this,k=[0],E=[],O=[null],p=[],G=this.table,x="",vt=0,Zt=0,be=2,Qt=1,me=p.slice.call(arguments,1),Y=Object.create(this.lexer),yt={yy:{}};for(var Bt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Bt)&&(yt.yy[Bt]=this.yy[Bt]);Y.setInput(ct,yt.yy),yt.yy.lexer=Y,yt.yy.parser=this,typeof Y.yylloc>"u"&&(Y.yylloc={});var Yt=Y.yylloc;p.push(Yt);var Te=Y.options&&Y.options.ranges;typeof yt.yy.parseError=="function"?this.parseError=yt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function fe(et){k.length=k.length-2*et,O.length=O.length-et,p.length=p.length-et}y(fe,"popStack");function Jt(){var et;return et=E.pop()||Y.lex()||Qt,typeof et!="number"&&(et instanceof Array&&(E=et,et=E.pop()),et=I.symbols_[et]||et),et}y(Jt,"lex");for(var K,bt,it,Vt,ft={},Pt,dt,te,_t;;){if(bt=k[k.length-1],this.defaultActions[bt]?it=this.defaultActions[bt]:((K===null||typeof K>"u")&&(K=Jt()),it=G[bt]&&G[bt][K]),typeof it>"u"||!it.length||!it[0]){var Ft="";_t=[];for(Pt in G[bt])this.terminals_[Pt]&&Pt>be&&_t.push("'"+this.terminals_[Pt]+"'");Y.showPosition?Ft="Parse error on line "+(vt+1)+`:
1
+ import{d as Ee,p as Ut,y as lt,x as we,m as Gt,h as Kt}from"./chunk-TZMSLE5B-CNFsEzOl-DVds0hZJ.js";import{R as y,j as Ie,c as at,e as At,O as X,A as re,B as ke,C as Le,x as L,s as ee,f as ve,n as Pe,l as _e,u as Ae,o as Ne,v as Me,y as Oe,t as Se,w as Nt,k as V,ax as kt,ay as W,ao as se,az as De,aA as $e,aB as ie,L as qt}from"./index-Dwfg9sR1.js";import{e as Re}from"./chunk-QZHKN3VN-DMEEp6GB-NSbjkrZ8.js";var zt=function(){var e=y(function(ct,I,k,E){for(k=k||{},E=ct.length;E--;k[ct[E]]=I);return k},"o"),t=[1,2],o=[1,3],a=[1,4],r=[2,4],s=[1,9],c=[1,11],h=[1,13],g=[1,14],i=[1,16],d=[1,17],n=[1,18],u=[1,24],b=[1,25],T=[1,26],w=[1,27],P=[1,28],A=[1,29],N=[1,30],M=[1,31],$=[1,32],B=[1,33],q=[1,34],Z=[1,35],rt=[1,36],z=[1,37],H=[1,38],F=[1,39],R=[1,41],Q=[1,42],j=[1,43],J=[1,44],st=[1,45],D=[1,46],f=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,55,60,61,62,63,71],v=[2,71],U=[4,5,16,50,52,53],tt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,55,60,61,62,63,71],S=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,55,60,61,62,63,71],Rt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,55,60,61,62,63,71],Xt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,55,60,61,62,63,71],nt=[69,70,71],ht=[1,127],Ct={trace:y(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,actor_with_config:54,note:55,placement:56,text2:57,over:58,actor_pair:59,links:60,link:61,properties:62,details:63,spaceList:64,",":65,left_of:66,right_of:67,signaltype:68,"+":69,"-":70,ACTOR:71,config_object:72,CONFIG_START:73,CONFIG_CONTENT:74,CONFIG_END:75,SOLID_OPEN_ARROW:76,DOTTED_OPEN_ARROW:77,SOLID_ARROW:78,BIDIRECTIONAL_SOLID_ARROW:79,DOTTED_ARROW:80,BIDIRECTIONAL_DOTTED_ARROW:81,SOLID_CROSS:82,DOTTED_CROSS:83,SOLID_POINT:84,DOTTED_POINT:85,TXT:86,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",29:"title",30:"legacy_title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"loop",37:"rect",38:"opt",39:"alt",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",55:"note",58:"over",60:"links",61:"link",62:"properties",63:"details",65:",",66:"left_of",67:"right_of",69:"+",70:"-",71:"ACTOR",73:"CONFIG_START",74:"CONFIG_CONTENT",75:"CONFIG_END",76:"SOLID_OPEN_ARROW",77:"DOTTED_OPEN_ARROW",78:"SOLID_ARROW",79:"BIDIRECTIONAL_SOLID_ARROW",80:"DOTTED_ARROW",81:"BIDIRECTIONAL_DOTTED_ARROW",82:"SOLID_CROSS",83:"DOTTED_CROSS",84:"SOLID_POINT",85:"DOTTED_POINT",86:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[64,2],[64,1],[59,3],[59,1],[56,1],[56,1],[17,5],[17,5],[17,4],[54,2],[72,3],[22,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[57,1]],performAction:y(function(ct,I,k,E,O,p,G){var x=p.length-1;switch(O){case 3:return E.apply(p[x]),p[x];case 4:case 9:this.$=[];break;case 5:case 10:p[x-1].push(p[x]),this.$=p[x-1];break;case 6:case 7:case 11:case 12:this.$=p[x];break;case 8:case 13:this.$=[];break;case 15:p[x].type="createParticipant",this.$=p[x];break;case 16:p[x-1].unshift({type:"boxStart",boxData:E.parseBoxData(p[x-2])}),p[x-1].push({type:"boxEnd",boxText:p[x-2]}),this.$=p[x-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(p[x-2]),sequenceIndexStep:Number(p[x-1]),sequenceVisible:!0,signalType:E.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(p[x-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:E.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:E.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:E.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:E.LINETYPE.ACTIVE_START,actor:p[x-1].actor};break;case 23:this.$={type:"activeEnd",signalType:E.LINETYPE.ACTIVE_END,actor:p[x-1].actor};break;case 29:E.setDiagramTitle(p[x].substring(6)),this.$=p[x].substring(6);break;case 30:E.setDiagramTitle(p[x].substring(7)),this.$=p[x].substring(7);break;case 31:this.$=p[x].trim(),E.setAccTitle(this.$);break;case 32:case 33:this.$=p[x].trim(),E.setAccDescription(this.$);break;case 34:p[x-1].unshift({type:"loopStart",loopText:E.parseMessage(p[x-2]),signalType:E.LINETYPE.LOOP_START}),p[x-1].push({type:"loopEnd",loopText:p[x-2],signalType:E.LINETYPE.LOOP_END}),this.$=p[x-1];break;case 35:p[x-1].unshift({type:"rectStart",color:E.parseMessage(p[x-2]),signalType:E.LINETYPE.RECT_START}),p[x-1].push({type:"rectEnd",color:E.parseMessage(p[x-2]),signalType:E.LINETYPE.RECT_END}),this.$=p[x-1];break;case 36:p[x-1].unshift({type:"optStart",optText:E.parseMessage(p[x-2]),signalType:E.LINETYPE.OPT_START}),p[x-1].push({type:"optEnd",optText:E.parseMessage(p[x-2]),signalType:E.LINETYPE.OPT_END}),this.$=p[x-1];break;case 37:p[x-1].unshift({type:"altStart",altText:E.parseMessage(p[x-2]),signalType:E.LINETYPE.ALT_START}),p[x-1].push({type:"altEnd",signalType:E.LINETYPE.ALT_END}),this.$=p[x-1];break;case 38:p[x-1].unshift({type:"parStart",parText:E.parseMessage(p[x-2]),signalType:E.LINETYPE.PAR_START}),p[x-1].push({type:"parEnd",signalType:E.LINETYPE.PAR_END}),this.$=p[x-1];break;case 39:p[x-1].unshift({type:"parStart",parText:E.parseMessage(p[x-2]),signalType:E.LINETYPE.PAR_OVER_START}),p[x-1].push({type:"parEnd",signalType:E.LINETYPE.PAR_END}),this.$=p[x-1];break;case 40:p[x-1].unshift({type:"criticalStart",criticalText:E.parseMessage(p[x-2]),signalType:E.LINETYPE.CRITICAL_START}),p[x-1].push({type:"criticalEnd",signalType:E.LINETYPE.CRITICAL_END}),this.$=p[x-1];break;case 41:p[x-1].unshift({type:"breakStart",breakText:E.parseMessage(p[x-2]),signalType:E.LINETYPE.BREAK_START}),p[x-1].push({type:"breakEnd",optText:E.parseMessage(p[x-2]),signalType:E.LINETYPE.BREAK_END}),this.$=p[x-1];break;case 43:this.$=p[x-3].concat([{type:"option",optionText:E.parseMessage(p[x-1]),signalType:E.LINETYPE.CRITICAL_OPTION},p[x]]);break;case 45:this.$=p[x-3].concat([{type:"and",parText:E.parseMessage(p[x-1]),signalType:E.LINETYPE.PAR_AND},p[x]]);break;case 47:this.$=p[x-3].concat([{type:"else",altText:E.parseMessage(p[x-1]),signalType:E.LINETYPE.ALT_ELSE},p[x]]);break;case 48:p[x-3].draw="participant",p[x-3].type="addParticipant",p[x-3].description=E.parseMessage(p[x-1]),this.$=p[x-3];break;case 49:p[x-1].draw="participant",p[x-1].type="addParticipant",this.$=p[x-1];break;case 50:p[x-3].draw="actor",p[x-3].type="addParticipant",p[x-3].description=E.parseMessage(p[x-1]),this.$=p[x-3];break;case 51:p[x-1].draw="actor",p[x-1].type="addParticipant",this.$=p[x-1];break;case 52:p[x-1].type="destroyParticipant",this.$=p[x-1];break;case 53:p[x-1].draw="participant",p[x-1].type="addParticipant",this.$=p[x-1];break;case 54:this.$=[p[x-1],{type:"addNote",placement:p[x-2],actor:p[x-1].actor,text:p[x]}];break;case 55:p[x-2]=[].concat(p[x-1],p[x-1]).slice(0,2),p[x-2][0]=p[x-2][0].actor,p[x-2][1]=p[x-2][1].actor,this.$=[p[x-1],{type:"addNote",placement:E.PLACEMENT.OVER,actor:p[x-2].slice(0,2),text:p[x]}];break;case 56:this.$=[p[x-1],{type:"addLinks",actor:p[x-1].actor,text:p[x]}];break;case 57:this.$=[p[x-1],{type:"addALink",actor:p[x-1].actor,text:p[x]}];break;case 58:this.$=[p[x-1],{type:"addProperties",actor:p[x-1].actor,text:p[x]}];break;case 59:this.$=[p[x-1],{type:"addDetails",actor:p[x-1].actor,text:p[x]}];break;case 62:this.$=[p[x-2],p[x]];break;case 63:this.$=p[x];break;case 64:this.$=E.PLACEMENT.LEFTOF;break;case 65:this.$=E.PLACEMENT.RIGHTOF;break;case 66:this.$=[p[x-4],p[x-1],{type:"addMessage",from:p[x-4].actor,to:p[x-1].actor,signalType:p[x-3],msg:p[x],activate:!0},{type:"activeStart",signalType:E.LINETYPE.ACTIVE_START,actor:p[x-1].actor}];break;case 67:this.$=[p[x-4],p[x-1],{type:"addMessage",from:p[x-4].actor,to:p[x-1].actor,signalType:p[x-3],msg:p[x]},{type:"activeEnd",signalType:E.LINETYPE.ACTIVE_END,actor:p[x-4].actor}];break;case 68:this.$=[p[x-3],p[x-1],{type:"addMessage",from:p[x-3].actor,to:p[x-1].actor,signalType:p[x-2],msg:p[x]}];break;case 69:this.$={type:"addParticipant",actor:p[x-1],config:p[x]};break;case 70:this.$=p[x-1].trim();break;case 71:this.$={type:"addParticipant",actor:p[x]};break;case 72:this.$=E.LINETYPE.SOLID_OPEN;break;case 73:this.$=E.LINETYPE.DOTTED_OPEN;break;case 74:this.$=E.LINETYPE.SOLID;break;case 75:this.$=E.LINETYPE.BIDIRECTIONAL_SOLID;break;case 76:this.$=E.LINETYPE.DOTTED;break;case 77:this.$=E.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 78:this.$=E.LINETYPE.SOLID_CROSS;break;case 79:this.$=E.LINETYPE.DOTTED_CROSS;break;case 80:this.$=E.LINETYPE.SOLID_POINT;break;case 81:this.$=E.LINETYPE.DOTTED_POINT;break;case 82:this.$=E.parseMessage(p[x].trim().substring(1));break}},"anonymous"),table:[{3:1,4:t,5:o,6:a},{1:[3]},{3:5,4:t,5:o,6:a},{3:6,4:t,5:o,6:a},e([1,4,5,13,14,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,55,60,61,62,63,71],r,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:s,5:c,8:8,9:10,12:12,13:h,14:g,17:15,18:i,21:d,22:40,23:n,24:19,25:20,26:21,27:22,28:23,29:u,30:b,31:T,33:w,35:P,36:A,37:N,38:M,39:$,41:B,43:q,44:Z,46:rt,50:z,52:H,53:F,55:R,60:Q,61:j,62:J,63:st,71:D},e(f,[2,5]),{9:47,12:12,13:h,14:g,17:15,18:i,21:d,22:40,23:n,24:19,25:20,26:21,27:22,28:23,29:u,30:b,31:T,33:w,35:P,36:A,37:N,38:M,39:$,41:B,43:q,44:Z,46:rt,50:z,52:H,53:F,55:R,60:Q,61:j,62:J,63:st,71:D},e(f,[2,7]),e(f,[2,8]),e(f,[2,14]),{12:48,50:z,52:H,53:F},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,71:D},{22:55,71:D},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},e(f,[2,29]),e(f,[2,30]),{32:[1,61]},{34:[1,62]},e(f,[2,33]),{15:[1,63]},{15:[1,64]},{15:[1,65]},{15:[1,66]},{15:[1,67]},{15:[1,68]},{15:[1,69]},{15:[1,70]},{22:71,54:72,71:[1,73]},{22:74,71:D},{22:75,71:D},{68:76,76:[1,77],77:[1,78],78:[1,79],79:[1,80],80:[1,81],81:[1,82],82:[1,83],83:[1,84],84:[1,85],85:[1,86]},{56:87,58:[1,88],66:[1,89],67:[1,90]},{22:91,71:D},{22:92,71:D},{22:93,71:D},{22:94,71:D},e([5,51,65,76,77,78,79,80,81,82,83,84,85,86],v),e(f,[2,6]),e(f,[2,15]),e(U,[2,9],{10:95}),e(f,[2,17]),{5:[1,97],19:[1,96]},{5:[1,98]},e(f,[2,21]),{5:[1,99]},{5:[1,100]},e(f,[2,24]),e(f,[2,25]),e(f,[2,26]),e(f,[2,27]),e(f,[2,28]),e(f,[2,31]),e(f,[2,32]),e(tt,r,{7:101}),e(tt,r,{7:102}),e(tt,r,{7:103}),e(S,r,{40:104,7:105}),e(Rt,r,{42:106,7:107}),e(Rt,r,{7:107,42:108}),e(Xt,r,{45:109,7:110}),e(tt,r,{7:111}),{5:[1,113],51:[1,112]},{5:[1,114]},e([5,51],v,{72:115,73:[1,116]}),{5:[1,118],51:[1,117]},{5:[1,119]},{22:122,69:[1,120],70:[1,121],71:D},e(nt,[2,72]),e(nt,[2,73]),e(nt,[2,74]),e(nt,[2,75]),e(nt,[2,76]),e(nt,[2,77]),e(nt,[2,78]),e(nt,[2,79]),e(nt,[2,80]),e(nt,[2,81]),{22:123,71:D},{22:125,59:124,71:D},{71:[2,64]},{71:[2,65]},{57:126,86:ht},{57:128,86:ht},{57:129,86:ht},{57:130,86:ht},{4:[1,133],5:[1,135],11:132,12:134,16:[1,131],50:z,52:H,53:F},{5:[1,136]},e(f,[2,19]),e(f,[2,20]),e(f,[2,22]),e(f,[2,23]),{4:s,5:c,8:8,9:10,12:12,13:h,14:g,16:[1,137],17:15,18:i,21:d,22:40,23:n,24:19,25:20,26:21,27:22,28:23,29:u,30:b,31:T,33:w,35:P,36:A,37:N,38:M,39:$,41:B,43:q,44:Z,46:rt,50:z,52:H,53:F,55:R,60:Q,61:j,62:J,63:st,71:D},{4:s,5:c,8:8,9:10,12:12,13:h,14:g,16:[1,138],17:15,18:i,21:d,22:40,23:n,24:19,25:20,26:21,27:22,28:23,29:u,30:b,31:T,33:w,35:P,36:A,37:N,38:M,39:$,41:B,43:q,44:Z,46:rt,50:z,52:H,53:F,55:R,60:Q,61:j,62:J,63:st,71:D},{4:s,5:c,8:8,9:10,12:12,13:h,14:g,16:[1,139],17:15,18:i,21:d,22:40,23:n,24:19,25:20,26:21,27:22,28:23,29:u,30:b,31:T,33:w,35:P,36:A,37:N,38:M,39:$,41:B,43:q,44:Z,46:rt,50:z,52:H,53:F,55:R,60:Q,61:j,62:J,63:st,71:D},{16:[1,140]},{4:s,5:c,8:8,9:10,12:12,13:h,14:g,16:[2,46],17:15,18:i,21:d,22:40,23:n,24:19,25:20,26:21,27:22,28:23,29:u,30:b,31:T,33:w,35:P,36:A,37:N,38:M,39:$,41:B,43:q,44:Z,46:rt,49:[1,141],50:z,52:H,53:F,55:R,60:Q,61:j,62:J,63:st,71:D},{16:[1,142]},{4:s,5:c,8:8,9:10,12:12,13:h,14:g,16:[2,44],17:15,18:i,21:d,22:40,23:n,24:19,25:20,26:21,27:22,28:23,29:u,30:b,31:T,33:w,35:P,36:A,37:N,38:M,39:$,41:B,43:q,44:Z,46:rt,48:[1,143],50:z,52:H,53:F,55:R,60:Q,61:j,62:J,63:st,71:D},{16:[1,144]},{16:[1,145]},{4:s,5:c,8:8,9:10,12:12,13:h,14:g,16:[2,42],17:15,18:i,21:d,22:40,23:n,24:19,25:20,26:21,27:22,28:23,29:u,30:b,31:T,33:w,35:P,36:A,37:N,38:M,39:$,41:B,43:q,44:Z,46:rt,47:[1,146],50:z,52:H,53:F,55:R,60:Q,61:j,62:J,63:st,71:D},{4:s,5:c,8:8,9:10,12:12,13:h,14:g,16:[1,147],17:15,18:i,21:d,22:40,23:n,24:19,25:20,26:21,27:22,28:23,29:u,30:b,31:T,33:w,35:P,36:A,37:N,38:M,39:$,41:B,43:q,44:Z,46:rt,50:z,52:H,53:F,55:R,60:Q,61:j,62:J,63:st,71:D},{15:[1,148]},e(f,[2,49]),e(f,[2,53]),{5:[2,69]},{74:[1,149]},{15:[1,150]},e(f,[2,51]),e(f,[2,52]),{22:151,71:D},{22:152,71:D},{57:153,86:ht},{57:154,86:ht},{57:155,86:ht},{65:[1,156],86:[2,63]},{5:[2,56]},{5:[2,82]},{5:[2,57]},{5:[2,58]},{5:[2,59]},e(f,[2,16]),e(U,[2,10]),{12:157,50:z,52:H,53:F},e(U,[2,12]),e(U,[2,13]),e(f,[2,18]),e(f,[2,34]),e(f,[2,35]),e(f,[2,36]),e(f,[2,37]),{15:[1,158]},e(f,[2,38]),{15:[1,159]},e(f,[2,39]),e(f,[2,40]),{15:[1,160]},e(f,[2,41]),{5:[1,161]},{75:[1,162]},{5:[1,163]},{57:164,86:ht},{57:165,86:ht},{5:[2,68]},{5:[2,54]},{5:[2,55]},{22:166,71:D},e(U,[2,11]),e(S,r,{7:105,40:167}),e(Rt,r,{7:107,42:168}),e(Xt,r,{7:110,45:169}),e(f,[2,48]),{5:[2,70]},e(f,[2,50]),{5:[2,66]},{5:[2,67]},{86:[2,62]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],89:[2,64],90:[2,65],115:[2,69],126:[2,56],127:[2,82],128:[2,57],129:[2,58],130:[2,59],153:[2,68],154:[2,54],155:[2,55],162:[2,70],164:[2,66],165:[2,67],166:[2,62],167:[2,47],168:[2,45],169:[2,43]},parseError:y(function(ct,I){if(I.recoverable)this.trace(ct);else{var k=new Error(ct);throw k.hash=I,k}},"parseError"),parse:y(function(ct){var I=this,k=[0],E=[],O=[null],p=[],G=this.table,x="",vt=0,Zt=0,be=2,Qt=1,me=p.slice.call(arguments,1),Y=Object.create(this.lexer),yt={yy:{}};for(var Bt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Bt)&&(yt.yy[Bt]=this.yy[Bt]);Y.setInput(ct,yt.yy),yt.yy.lexer=Y,yt.yy.parser=this,typeof Y.yylloc>"u"&&(Y.yylloc={});var Yt=Y.yylloc;p.push(Yt);var Te=Y.options&&Y.options.ranges;typeof yt.yy.parseError=="function"?this.parseError=yt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function fe(et){k.length=k.length-2*et,O.length=O.length-et,p.length=p.length-et}y(fe,"popStack");function Jt(){var et;return et=E.pop()||Y.lex()||Qt,typeof et!="number"&&(et instanceof Array&&(E=et,et=E.pop()),et=I.symbols_[et]||et),et}y(Jt,"lex");for(var K,bt,it,Vt,ft={},Pt,dt,te,_t;;){if(bt=k[k.length-1],this.defaultActions[bt]?it=this.defaultActions[bt]:((K===null||typeof K>"u")&&(K=Jt()),it=G[bt]&&G[bt][K]),typeof it>"u"||!it.length||!it[0]){var Ft="";_t=[];for(Pt in G[bt])this.terminals_[Pt]&&Pt>be&&_t.push("'"+this.terminals_[Pt]+"'");Y.showPosition?Ft="Parse error on line "+(vt+1)+`:
2
2
  `+Y.showPosition()+`
3
3
  Expecting `+_t.join(", ")+", got '"+(this.terminals_[K]||K)+"'":Ft="Parse error on line "+(vt+1)+": Unexpected "+(K==Qt?"end of input":"'"+(this.terminals_[K]||K)+"'"),this.parseError(Ft,{text:Y.match,token:this.terminals_[K]||K,line:Y.yylineno,loc:Yt,expected:_t})}if(it[0]instanceof Array&&it.length>1)throw new Error("Parse Error: multiple actions possible at state: "+bt+", token: "+K);switch(it[0]){case 1:k.push(K),O.push(Y.yytext),p.push(Y.yylloc),k.push(it[1]),K=null,Zt=Y.yyleng,x=Y.yytext,vt=Y.yylineno,Yt=Y.yylloc;break;case 2:if(dt=this.productions_[it[1]][1],ft.$=O[O.length-dt],ft._$={first_line:p[p.length-(dt||1)].first_line,last_line:p[p.length-1].last_line,first_column:p[p.length-(dt||1)].first_column,last_column:p[p.length-1].last_column},Te&&(ft._$.range=[p[p.length-(dt||1)].range[0],p[p.length-1].range[1]]),Vt=this.performAction.apply(ft,[x,Zt,vt,yt.yy,it[1],O,p].concat(me)),typeof Vt<"u")return Vt;dt&&(k=k.slice(0,-1*dt*2),O=O.slice(0,-1*dt),p=p.slice(0,-1*dt)),k.push(this.productions_[it[1]][0]),O.push(ft.$),p.push(ft._$),te=G[k[k.length-2]][k[k.length-1]],k.push(te);break;case 3:return!0}}return!0},"parse")},ye=function(){var ct={EOF:1,parseError:y(function(I,k){if(this.yy.parser)this.yy.parser.parseError(I,k);else throw new Error(I)},"parseError"),setInput:y(function(I,k){return this.yy=k||this.yy||{},this._input=I,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:y(function(){var I=this._input[0];this.yytext+=I,this.yyleng++,this.offset++,this.match+=I,this.matched+=I;var k=I.match(/(?:\r\n?|\n).*/g);return k?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),I},"input"),unput:y(function(I){var k=I.length,E=I.split(/(?:\r\n?|\n)/g);this._input=I+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-k),this.offset-=k;var O=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),E.length-1&&(this.yylineno-=E.length-1);var p=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:E?(E.length===O.length?this.yylloc.first_column:0)+O[O.length-E.length].length-E[0].length:this.yylloc.first_column-k},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-k]),this.yyleng=this.yytext.length,this},"unput"),more:y(function(){return this._more=!0,this},"more"),reject:y(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
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:y(function(I){this.unput(this.match.slice(I))},"less"),pastInput:y(function(){var I=this.matched.substr(0,this.matched.length-this.match.length);return(I.length>20?"...":"")+I.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:y(function(){var I=this.match;return I.length<20&&(I+=this._input.substr(0,20-I.length)),(I.substr(0,20)+(I.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:y(function(){var I=this.pastInput(),k=new Array(I.length+1).join("-");return I+this.upcomingInput()+`