adminizer 5.2.0-build.34 → 5.2.0-build.35

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 (90) hide show
  1. package/assets/{abnfDiagram-VCTEODGH-BbJTXfTE.js → abnfDiagram-VCTEODGH-VlwaoUTb.js} +1 -1
  2. package/assets/{add-UCuYfqnA.js → add-CqSZIEWV.js} +1 -1
  3. package/assets/{add-group-Dqy51mK7.js → add-group-BOsQ0Q3j.js} +1 -1
  4. package/assets/{add-user-lHPqrZLh.js → add-user-L2wD_b_T.js} +1 -1
  5. package/assets/ai-assistant/agent.es.js +3345 -3328
  6. package/assets/{app-BKhgReUT.js → app-CWlMJiPe.js} +2 -2
  7. package/assets/{architectureDiagram-5GKGNRK7-DcRt--3g.js → architectureDiagram-5GKGNRK7-u57qIB-M.js} +1 -1
  8. package/assets/{blockDiagram-I7D4REHJ-8_cCt-vW.js → blockDiagram-I7D4REHJ-DV90TjcV.js} +1 -1
  9. package/assets/{c4Diagram-7LVT6UL2-Bsn2OlKb.js → c4Diagram-7LVT6UL2-t5nM_yE6.js} +1 -1
  10. package/assets/{catalog-DfYJNiry.js → catalog-D6aEgpu7.js} +1 -1
  11. package/assets/channel-BObXBllO.js +1 -0
  12. package/assets/{chunk-2Q5K7J3B-BzrtylLu.js → chunk-2Q5K7J3B-Bvean9Oy.js} +1 -1
  13. package/assets/{chunk-5VM5RSS4-D7pDUki8.js → chunk-5VM5RSS4-C4yczpcm.js} +1 -1
  14. package/assets/{chunk-F27PBJKO-Bw8mEYY6.js → chunk-F27PBJKO-CZQTtsTa.js} +1 -1
  15. package/assets/{chunk-IMKFNOWR-nZKNEeNv.js → chunk-IMKFNOWR-CvCLehQX.js} +1 -1
  16. package/assets/{chunk-JWPE2WC7-DxUX2M-J.js → chunk-JWPE2WC7-BEsqzX-T.js} +1 -1
  17. package/assets/{chunk-POPQ4Y6H-Bgt0Kaqd.js → chunk-POPQ4Y6H-BPKiJml-.js} +1 -1
  18. package/assets/{chunk-SVP7TREG-DLigtJWk.js → chunk-SVP7TREG-BVkc4_Yf.js} +1 -1
  19. package/assets/{chunk-TICWLB2K-B5WjdD1M.js → chunk-TICWLB2K-nbzNG2Lg.js} +1 -1
  20. package/assets/{chunk-XXDRQBXY-BJS0Ht92.js → chunk-XXDRQBXY-BAn4BRVo.js} +1 -1
  21. package/assets/classDiagram-ZZMXUADV-Dyvh9xeB.js +1 -0
  22. package/assets/classDiagram-v2-VYDZK3BY-Dyvh9xeB.js +1 -0
  23. package/assets/controls/jsoneditor.es.js +5 -6
  24. package/assets/controls/toast-ui.es.js +3570 -3571
  25. package/assets/{cose-bilkent-JH36ORCC-Be1z_i9Q.js → cose-bilkent-JH36ORCC-DjIWkId6.js} +1 -1
  26. package/assets/{cynefin-OW5HDTMX-na8kWeny.js → cynefin-OW5HDTMX-DA3WSPz5.js} +1 -1
  27. package/assets/{cynefinDiagram-5FMLGOSQ-ql71XTsQ.js → cynefinDiagram-5FMLGOSQ-CctOa4fE.js} +1 -1
  28. package/assets/cytoscape.esm-BHa1VTXv.js +321 -0
  29. package/assets/{dagre-GXQ25YYZ-BuKFYbmi.js → dagre-GXQ25YYZ-BeP3E0b5.js} +1 -1
  30. package/assets/{dashboard-Drm_gp-G.js → dashboard-C0pXUDqP.js} +1 -1
  31. package/assets/{diagram-S7CK7UJ4-znl5Fq0J.js → diagram-S7CK7UJ4-B85fwkaf.js} +1 -1
  32. package/assets/{diagram-UQ7AKVKN-CRFVfrL1.js → diagram-UQ7AKVKN-CqkEko9N.js} +1 -1
  33. package/assets/{diagram-VSXAHHWV-CIVgZDJa.js → diagram-VSXAHHWV-x-PrtWHy.js} +1 -1
  34. package/assets/{diagram-VX7I27RA-DIQB8SES.js → diagram-VX7I27RA-BYJBRYa8.js} +1 -1
  35. package/assets/{diagram-Z3DM3KII-DeY6yMBN.js → diagram-Z3DM3KII-DCiL-xro.js} +1 -1
  36. package/assets/{docs-B6LIpITJ.js → docs-Db-NexCf.js} +1 -1
  37. package/assets/{ebnfDiagram-PWID7BFC-Im7jHJ-6.js → ebnfDiagram-PWID7BFC-CwM3RllY.js} +1 -1
  38. package/assets/{erDiagram-RLTQ6QDP-CCvI6JHH.js → erDiagram-RLTQ6QDP-D_h8KziD.js} +1 -1
  39. package/assets/{flowDiagram-HODETNUW-DgdTOUM1.js → flowDiagram-HODETNUW-DGimFqFm.js} +1 -1
  40. package/assets/{ganttDiagram-EL5Y4UJY-BZ5DzFSb.js → ganttDiagram-EL5Y4UJY-CJpR4o0I.js} +1 -1
  41. package/assets/{gitGraphDiagram-WWUBYQGX-CQklLXfY.js → gitGraphDiagram-WWUBYQGX-Dg_f7BHs.js} +1 -1
  42. package/assets/{history-CbgCLusU.js → history-DXiUYmwU.js} +1 -1
  43. package/assets/{infoDiagram-27XIBGKW-inaVWWG7.js → infoDiagram-27XIBGKW-wV9lWzkf.js} +1 -1
  44. package/assets/{init-user-DmWRf1Jr.js → init-user-pCW_Q05s.js} +1 -1
  45. package/assets/{ishikawaDiagram-5VMMS53U-R9uOXdb9.js → ishikawaDiagram-5VMMS53U-BsTDr38x.js} +1 -1
  46. package/assets/{journeyDiagram-3NMN7TZE-YhsaQCHu.js → journeyDiagram-3NMN7TZE-CNHbwqwc.js} +1 -1
  47. package/assets/{kanban-definition-UXKFOSKX-SFHx0aHd.js → kanban-definition-UXKFOSKX-CVhJsHlN.js} +1 -1
  48. package/assets/{layout-CryHDwUP.js → layout-BfAIponG.js} +1 -1
  49. package/assets/{list-CMYKENzO.js → list-DUvMtSpV.js} +1 -1
  50. package/assets/{login-inT0h68O.js → login-E_Y7wut5.js} +1 -1
  51. package/assets/manifest.json +268 -268
  52. package/assets/{media-manager-DLwgt3w-.js → media-manager-SrUV61oz.js} +1 -1
  53. package/assets/{mermaid.core-BJx2V7Fx.js → mermaid.core-dItKH28w.js} +5 -5
  54. package/assets/{mindmap-definition-YA3MSWOX-DavgP5bX.js → mindmap-definition-YA3MSWOX-CeNd0CHT.js} +1 -1
  55. package/assets/{module-Cd8HVyqp.js → module-BLZcWhbK.js} +1 -1
  56. package/assets/{notification-NHcn4uVC.js → notification-Dud_cS95.js} +1 -1
  57. package/assets/{pegDiagram-XKGWAZYB-yFW3IMW-.js → pegDiagram-XKGWAZYB-XkpCeLx7.js} +1 -1
  58. package/assets/{pieDiagram-E7YTZNPT-CQTyXz50.js → pieDiagram-E7YTZNPT-IfctYNg6.js} +1 -1
  59. package/assets/{quadrantDiagram-AXDQQJYC-Cqjg5HSm.js → quadrantDiagram-AXDQQJYC-Dl71kVWH.js} +1 -1
  60. package/assets/{railroadDiagram-O6MQD6OU-DzL2XDLc.js → railroadDiagram-O6MQD6OU-DFZCwxEi.js} +1 -1
  61. package/assets/{register-BrZOgrIT.js → register-CLXNA3RH.js} +1 -1
  62. package/assets/{requirementDiagram-BXWQKSXE-CWcLe5E-.js → requirementDiagram-BXWQKSXE-gwMr2hhN.js} +1 -1
  63. package/assets/{ru-DqbXrFdY.js → ru-BuRkfrV3.js} +1 -1
  64. package/assets/{sankeyDiagram-P5KCCOFB-BzTZcPVf.js → sankeyDiagram-P5KCCOFB-D4m9TUBM.js} +1 -1
  65. package/assets/{sequenceDiagram-WJ2MYXX4-DM48lXLE.js → sequenceDiagram-WJ2MYXX4-JrZmoS_N.js} +1 -1
  66. package/assets/{sizeCapture-INFHLROL-D7cx9va2.js → sizeCapture-INFHLROL-Bi7VDSTt.js} +1 -1
  67. package/assets/{stateDiagram-D77RDMKH-CUReM6ha.js → stateDiagram-D77RDMKH-CoOTX1h8.js} +1 -1
  68. package/assets/stateDiagram-v2-MP3YSRHH-DSV0uD3M.js +1 -0
  69. package/assets/{swimlanes-42K2YHIH-DEqEyhLN.js → swimlanes-42K2YHIH-CgtKaw_1.js} +1 -1
  70. package/assets/swimlanesDiagram-VR7AAH4N-tGoQkrWA.js +8 -0
  71. package/assets/{timeline-definition-24CTP7MA-_OQxzNu9.js → timeline-definition-24CTP7MA-DrSuUziH.js} +1 -1
  72. package/assets/{use-appearance-BfSu2Tjm.js → use-appearance-CSP6Ml4F.js} +1 -1
  73. package/assets/{user-filters-list-LqHail28.js → user-filters-list-Cv2Z3Fwm.js} +1 -1
  74. package/assets/{vennDiagram-4TSXK5OY-wUfSnIxp.js → vennDiagram-4TSXK5OY-BIeLKAIy.js} +1 -1
  75. package/assets/{wardleyDiagram-VM6X3IG4-BPcd3HO7.js → wardleyDiagram-VM6X3IG4-CwmxxXr9.js} +1 -1
  76. package/assets/{welcome-XTbUvCzA.js → welcome-CXTRhMo9.js} +1 -1
  77. package/assets/{with-app-layout-CTv_hHug.js → with-app-layout-DVk7VpSG.js} +22 -22
  78. package/assets/{xychartDiagram-S5SC5T6Z-DBXGC8lX.js → xychartDiagram-S5SC5T6Z-DCx2Vin2.js} +1 -1
  79. package/interfaces/adminpanelConfig.d.ts +7 -0
  80. package/lib/app-manager/ContextHandler.d.ts +12 -1
  81. package/lib/app-manager/ContextHandler.js +9 -0
  82. package/package.json +1 -1
  83. package/system/bindInertia.js +5 -0
  84. package/translations/ru.json +1 -0
  85. package/assets/channel-0VXWsV6U.js +0 -1
  86. package/assets/classDiagram-ZZMXUADV-DgvmCbKR.js +0 -1
  87. package/assets/classDiagram-v2-VYDZK3BY-DgvmCbKR.js +0 -1
  88. package/assets/cytoscape.esm-BDkkwuE4.js +0 -321
  89. package/assets/stateDiagram-v2-MP3YSRHH-UNjCyT1j.js +0 -1
  90. package/assets/swimlanesDiagram-VR7AAH4N-Dh-s4bKd.js +0 -8
@@ -1,4 +1,4 @@
1
- import{g as gt}from"./chunk-5VM5RSS4-D7pDUki8.js";import{a as mt,b as lt,h as xt,d as kt}from"./chunk-F27PBJKO-Bw8mEYY6.js";import{g as _t,s as vt,a as bt,b as wt,o as Tt,n as St,_ as s,c as R,j as X,d as $t,p as Mt,F as it}from"./mermaid.core-BJx2V7Fx.js";import"./app-BKhgReUT.js";import"./isObject-DL-BuaBl.js";var U=(function(){var t=s(function(h,r,n,l){for(n=n||{},l=h.length;l--;n[h[l]]=r);return n},"o"),e=[6,8,10,11,12,14,16,17,18],a=[1,9],f=[1,10],i=[1,11],u=[1,12],p=[1,13],o=[1,14],g={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(r,n,l,y,d,c,v){var k=c.length-1;switch(d){case 1:return c[k-1];case 2:this.$=[];break;case 3:c[k-1].push(c[k]),this.$=c[k-1];break;case 4:case 5:this.$=c[k];break;case 6:case 7:this.$=[];break;case 8:y.setDiagramTitle(c[k].substr(6)),this.$=c[k].substr(6);break;case 9:this.$=c[k].trim(),y.setAccTitle(this.$);break;case 10:case 11:this.$=c[k].trim(),y.setAccDescription(this.$);break;case 12:y.addSection(c[k].substr(8)),this.$=c[k].substr(8);break;case 13:y.addTask(c[k-1],c[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:a,12:f,14:i,16:u,17:p,18:o},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:a,12:f,14:i,16:u,17:p,18:o},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(r,n){if(n.recoverable)this.trace(r);else{var l=new Error(r);throw l.hash=n,l}},"parseError"),parse:s(function(r){var n=this,l=[0],y=[],d=[null],c=[],v=this.table,k="",C=0,Q=0,yt=2,D=1,dt=c.slice.call(arguments,1),_=Object.create(this.lexer),I={yy:{}};for(var O in this.yy)Object.prototype.hasOwnProperty.call(this.yy,O)&&(I.yy[O]=this.yy[O]);_.setInput(r,I.yy),I.yy.lexer=_,I.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var Y=_.yylloc;c.push(Y);var ft=_.options&&_.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pt(w){l.length=l.length-2*w,d.length=d.length-w,c.length=c.length-w}s(pt,"popStack");function tt(){var w;return w=y.pop()||_.lex()||D,typeof w!="number"&&(w instanceof Array&&(y=w,w=y.pop()),w=n.symbols_[w]||w),w}s(tt,"lex");for(var b,A,T,q,F={},N,M,et,z;;){if(A=l[l.length-1],this.defaultActions[A]?T=this.defaultActions[A]:((b===null||typeof b>"u")&&(b=tt()),T=v[A]&&v[A][b]),typeof T>"u"||!T.length||!T[0]){var H="";z=[];for(N in v[A])this.terminals_[N]&&N>yt&&z.push("'"+this.terminals_[N]+"'");_.showPosition?H="Parse error on line "+(C+1)+`:
1
+ import{g as gt}from"./chunk-5VM5RSS4-C4yczpcm.js";import{a as mt,b as lt,h as xt,d as kt}from"./chunk-F27PBJKO-CZQTtsTa.js";import{g as _t,s as vt,a as bt,b as wt,o as Tt,n as St,_ as s,c as R,j as X,d as $t,p as Mt,F as it}from"./mermaid.core-dItKH28w.js";import"./app-CWlMJiPe.js";import"./isObject-DL-BuaBl.js";var U=(function(){var t=s(function(h,r,n,l){for(n=n||{},l=h.length;l--;n[h[l]]=r);return n},"o"),e=[6,8,10,11,12,14,16,17,18],a=[1,9],f=[1,10],i=[1,11],u=[1,12],p=[1,13],o=[1,14],g={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(r,n,l,y,d,c,v){var k=c.length-1;switch(d){case 1:return c[k-1];case 2:this.$=[];break;case 3:c[k-1].push(c[k]),this.$=c[k-1];break;case 4:case 5:this.$=c[k];break;case 6:case 7:this.$=[];break;case 8:y.setDiagramTitle(c[k].substr(6)),this.$=c[k].substr(6);break;case 9:this.$=c[k].trim(),y.setAccTitle(this.$);break;case 10:case 11:this.$=c[k].trim(),y.setAccDescription(this.$);break;case 12:y.addSection(c[k].substr(8)),this.$=c[k].substr(8);break;case 13:y.addTask(c[k-1],c[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:a,12:f,14:i,16:u,17:p,18:o},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:a,12:f,14:i,16:u,17:p,18:o},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(r,n){if(n.recoverable)this.trace(r);else{var l=new Error(r);throw l.hash=n,l}},"parseError"),parse:s(function(r){var n=this,l=[0],y=[],d=[null],c=[],v=this.table,k="",C=0,Q=0,yt=2,D=1,dt=c.slice.call(arguments,1),_=Object.create(this.lexer),I={yy:{}};for(var O in this.yy)Object.prototype.hasOwnProperty.call(this.yy,O)&&(I.yy[O]=this.yy[O]);_.setInput(r,I.yy),I.yy.lexer=_,I.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var Y=_.yylloc;c.push(Y);var ft=_.options&&_.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pt(w){l.length=l.length-2*w,d.length=d.length-w,c.length=c.length-w}s(pt,"popStack");function tt(){var w;return w=y.pop()||_.lex()||D,typeof w!="number"&&(w instanceof Array&&(y=w,w=y.pop()),w=n.symbols_[w]||w),w}s(tt,"lex");for(var b,A,T,q,F={},N,M,et,z;;){if(A=l[l.length-1],this.defaultActions[A]?T=this.defaultActions[A]:((b===null||typeof b>"u")&&(b=tt()),T=v[A]&&v[A][b]),typeof T>"u"||!T.length||!T[0]){var H="";z=[];for(N in v[A])this.terminals_[N]&&N>yt&&z.push("'"+this.terminals_[N]+"'");_.showPosition?H="Parse error on line "+(C+1)+`:
2
2
  `+_.showPosition()+`
3
3
  Expecting `+z.join(", ")+", got '"+(this.terminals_[b]||b)+"'":H="Parse error on line "+(C+1)+": Unexpected "+(b==D?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(H,{text:_.match,token:this.terminals_[b]||b,line:_.yylineno,loc:Y,expected:z})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+b);switch(T[0]){case 1:l.push(b),d.push(_.yytext),c.push(_.yylloc),l.push(T[1]),b=null,Q=_.yyleng,k=_.yytext,C=_.yylineno,Y=_.yylloc;break;case 2:if(M=this.productions_[T[1]][1],F.$=d[d.length-M],F._$={first_line:c[c.length-(M||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(M||1)].first_column,last_column:c[c.length-1].last_column},ft&&(F._$.range=[c[c.length-(M||1)].range[0],c[c.length-1].range[1]]),q=this.performAction.apply(F,[k,Q,C,I.yy,T[1],d,c].concat(dt)),typeof q<"u")return q;M&&(l=l.slice(0,-1*M*2),d=d.slice(0,-1*M),c=c.slice(0,-1*M)),l.push(this.productions_[T[1]][0]),d.push(F.$),c.push(F._$),et=v[l[l.length-2]][l[l.length-1]],l.push(et);break;case 3:return!0}}return!0},"parse")},m=(function(){var h={EOF:1,parseError:s(function(n,l){if(this.yy.parser)this.yy.parser.parseError(n,l);else throw new Error(n)},"parseError"),setInput:s(function(r,n){return this.yy=n||this.yy||{},this._input=r,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 r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var n=r.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),r},"input"),unput:s(function(r){var n=r.length,l=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;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),l.length-1&&(this.yylineno-=l.length-1);var d=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:l?(l.length===y.length?this.yylloc.first_column:0)+y[y.length-l.length].length-l[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-n]),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(r){this.unput(this.match.slice(r))},"less"),pastInput:s(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var r=this.pastInput(),n=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import{_ as o,l as te,c as H,D as fe,a5 as ye,a6 as me,a7 as be,a3 as _e,B as K,i as F,M as ke,N as Ee,a0 as Se,a1 as ce,a2 as le}from"./mermaid.core-BJx2V7Fx.js";import{g as Ne}from"./chunk-5VM5RSS4-D7pDUki8.js";import"./app-BKhgReUT.js";import"./isObject-DL-BuaBl.js";var $=(function(){var e=o(function(O,i,n,r){for(n=n||{},r=O.length;r--;n[O[r]]=i);return n},"o"),h=[1,4],p=[1,13],s=[1,12],d=[1,15],_=[1,16],b=[1,20],l=[1,19],D=[6,7,8],I=[1,26],g=[1,24],w=[1,25],k=[6,7,11],G=[1,31],N=[6,7,11,24],B=[1,6,13,16,17,20,23],f=[1,35],A=[1,36],L=[1,6,7,11,13,16,17,20,23],M=[1,38],T={trace:o(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:o(function(i,n,r,a,u,t,U){var c=t.length-1;switch(u){case 6:case 7:return a;case 8:a.getLogger().trace("Stop NL ");break;case 9:a.getLogger().trace("Stop EOF ");break;case 11:a.getLogger().trace("Stop NL2 ");break;case 12:a.getLogger().trace("Stop EOF2 ");break;case 15:a.getLogger().info("Node: ",t[c-1].id),a.addNode(t[c-2].length,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 16:a.getLogger().info("Node: ",t[c].id),a.addNode(t[c-1].length,t[c].id,t[c].descr,t[c].type);break;case 17:a.getLogger().trace("Icon: ",t[c]),a.decorateNode({icon:t[c]});break;case 18:case 23:a.decorateNode({class:t[c]});break;case 19:a.getLogger().trace("SPACELIST");break;case 20:a.getLogger().trace("Node: ",t[c-1].id),a.addNode(0,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 21:a.getLogger().trace("Node: ",t[c].id),a.addNode(0,t[c].id,t[c].descr,t[c].type);break;case 22:a.decorateNode({icon:t[c]});break;case 27:a.getLogger().trace("node found ..",t[c-2]),this.$={id:t[c-1],descr:t[c-1],type:a.getType(t[c-2],t[c])};break;case 28:this.$={id:t[c],descr:t[c],type:0};break;case 29:a.getLogger().trace("node found ..",t[c-3]),this.$={id:t[c-3],descr:t[c-1],type:a.getType(t[c-2],t[c])};break;case 30:this.$=t[c-1]+t[c];break;case 31:this.$=t[c];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:p,7:[1,10],9:9,12:11,13:s,14:14,16:d,17:_,18:17,19:18,20:b,23:l},e(D,[2,3]),{1:[2,2]},e(D,[2,4]),e(D,[2,5]),{1:[2,6],6:p,12:21,13:s,14:14,16:d,17:_,18:17,19:18,20:b,23:l},{6:p,9:22,12:11,13:s,14:14,16:d,17:_,18:17,19:18,20:b,23:l},{6:I,7:g,10:23,11:w},e(k,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:b,23:l}),e(k,[2,19]),e(k,[2,21],{15:30,24:G}),e(k,[2,22]),e(k,[2,23]),e(N,[2,25]),e(N,[2,26]),e(N,[2,28],{20:[1,32]}),{21:[1,33]},{6:I,7:g,10:34,11:w},{1:[2,7],6:p,12:21,13:s,14:14,16:d,17:_,18:17,19:18,20:b,23:l},e(B,[2,14],{7:f,11:A}),e(L,[2,8]),e(L,[2,9]),e(L,[2,10]),e(k,[2,16],{15:37,24:G}),e(k,[2,17]),e(k,[2,18]),e(k,[2,20],{24:M}),e(N,[2,31]),{21:[1,39]},{22:[1,40]},e(B,[2,13],{7:f,11:A}),e(L,[2,11]),e(L,[2,12]),e(k,[2,15],{24:M}),e(N,[2,30]),{22:[1,41]},e(N,[2,27]),e(N,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(i,n){if(n.recoverable)this.trace(i);else{var r=new Error(i);throw r.hash=n,r}},"parseError"),parse:o(function(i){var n=this,r=[0],a=[],u=[null],t=[],U=this.table,c="",W=0,se=0,ue=2,re=1,ge=t.slice.call(arguments,1),m=Object.create(this.lexer),R={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(R.yy[J]=this.yy[J]);m.setInput(i,R.yy),R.yy.lexer=m,R.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var q=m.yylloc;t.push(q);var de=m.options&&m.options.ranges;typeof R.yy.parseError=="function"?this.parseError=R.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pe(S){r.length=r.length-2*S,u.length=u.length-S,t.length=t.length-S}o(pe,"popStack");function ae(){var S;return S=a.pop()||m.lex()||re,typeof S!="number"&&(S instanceof Array&&(a=S,S=a.pop()),S=n.symbols_[S]||S),S}o(ae,"lex");for(var E,P,x,Q,j={},z,C,oe,X;;){if(P=r[r.length-1],this.defaultActions[P]?x=this.defaultActions[P]:((E===null||typeof E>"u")&&(E=ae()),x=U[P]&&U[P][E]),typeof x>"u"||!x.length||!x[0]){var Z="";X=[];for(z in U[P])this.terminals_[z]&&z>ue&&X.push("'"+this.terminals_[z]+"'");m.showPosition?Z="Parse error on line "+(W+1)+`:
1
+ import{_ as o,l as te,c as H,D as fe,a5 as ye,a6 as me,a7 as be,a3 as _e,B as K,i as F,M as ke,N as Ee,a0 as Se,a1 as ce,a2 as le}from"./mermaid.core-dItKH28w.js";import{g as Ne}from"./chunk-5VM5RSS4-C4yczpcm.js";import"./app-CWlMJiPe.js";import"./isObject-DL-BuaBl.js";var $=(function(){var e=o(function(O,i,n,r){for(n=n||{},r=O.length;r--;n[O[r]]=i);return n},"o"),h=[1,4],p=[1,13],s=[1,12],d=[1,15],_=[1,16],b=[1,20],l=[1,19],D=[6,7,8],I=[1,26],g=[1,24],w=[1,25],k=[6,7,11],G=[1,31],N=[6,7,11,24],B=[1,6,13,16,17,20,23],f=[1,35],A=[1,36],L=[1,6,7,11,13,16,17,20,23],M=[1,38],T={trace:o(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:o(function(i,n,r,a,u,t,U){var c=t.length-1;switch(u){case 6:case 7:return a;case 8:a.getLogger().trace("Stop NL ");break;case 9:a.getLogger().trace("Stop EOF ");break;case 11:a.getLogger().trace("Stop NL2 ");break;case 12:a.getLogger().trace("Stop EOF2 ");break;case 15:a.getLogger().info("Node: ",t[c-1].id),a.addNode(t[c-2].length,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 16:a.getLogger().info("Node: ",t[c].id),a.addNode(t[c-1].length,t[c].id,t[c].descr,t[c].type);break;case 17:a.getLogger().trace("Icon: ",t[c]),a.decorateNode({icon:t[c]});break;case 18:case 23:a.decorateNode({class:t[c]});break;case 19:a.getLogger().trace("SPACELIST");break;case 20:a.getLogger().trace("Node: ",t[c-1].id),a.addNode(0,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 21:a.getLogger().trace("Node: ",t[c].id),a.addNode(0,t[c].id,t[c].descr,t[c].type);break;case 22:a.decorateNode({icon:t[c]});break;case 27:a.getLogger().trace("node found ..",t[c-2]),this.$={id:t[c-1],descr:t[c-1],type:a.getType(t[c-2],t[c])};break;case 28:this.$={id:t[c],descr:t[c],type:0};break;case 29:a.getLogger().trace("node found ..",t[c-3]),this.$={id:t[c-3],descr:t[c-1],type:a.getType(t[c-2],t[c])};break;case 30:this.$=t[c-1]+t[c];break;case 31:this.$=t[c];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:p,7:[1,10],9:9,12:11,13:s,14:14,16:d,17:_,18:17,19:18,20:b,23:l},e(D,[2,3]),{1:[2,2]},e(D,[2,4]),e(D,[2,5]),{1:[2,6],6:p,12:21,13:s,14:14,16:d,17:_,18:17,19:18,20:b,23:l},{6:p,9:22,12:11,13:s,14:14,16:d,17:_,18:17,19:18,20:b,23:l},{6:I,7:g,10:23,11:w},e(k,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:b,23:l}),e(k,[2,19]),e(k,[2,21],{15:30,24:G}),e(k,[2,22]),e(k,[2,23]),e(N,[2,25]),e(N,[2,26]),e(N,[2,28],{20:[1,32]}),{21:[1,33]},{6:I,7:g,10:34,11:w},{1:[2,7],6:p,12:21,13:s,14:14,16:d,17:_,18:17,19:18,20:b,23:l},e(B,[2,14],{7:f,11:A}),e(L,[2,8]),e(L,[2,9]),e(L,[2,10]),e(k,[2,16],{15:37,24:G}),e(k,[2,17]),e(k,[2,18]),e(k,[2,20],{24:M}),e(N,[2,31]),{21:[1,39]},{22:[1,40]},e(B,[2,13],{7:f,11:A}),e(L,[2,11]),e(L,[2,12]),e(k,[2,15],{24:M}),e(N,[2,30]),{22:[1,41]},e(N,[2,27]),e(N,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(i,n){if(n.recoverable)this.trace(i);else{var r=new Error(i);throw r.hash=n,r}},"parseError"),parse:o(function(i){var n=this,r=[0],a=[],u=[null],t=[],U=this.table,c="",W=0,se=0,ue=2,re=1,ge=t.slice.call(arguments,1),m=Object.create(this.lexer),R={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(R.yy[J]=this.yy[J]);m.setInput(i,R.yy),R.yy.lexer=m,R.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var q=m.yylloc;t.push(q);var de=m.options&&m.options.ranges;typeof R.yy.parseError=="function"?this.parseError=R.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pe(S){r.length=r.length-2*S,u.length=u.length-S,t.length=t.length-S}o(pe,"popStack");function ae(){var S;return S=a.pop()||m.lex()||re,typeof S!="number"&&(S instanceof Array&&(a=S,S=a.pop()),S=n.symbols_[S]||S),S}o(ae,"lex");for(var E,P,x,Q,j={},z,C,oe,X;;){if(P=r[r.length-1],this.defaultActions[P]?x=this.defaultActions[P]:((E===null||typeof E>"u")&&(E=ae()),x=U[P]&&U[P][E]),typeof x>"u"||!x.length||!x[0]){var Z="";X=[];for(z in U[P])this.terminals_[z]&&z>ue&&X.push("'"+this.terminals_[z]+"'");m.showPosition?Z="Parse error on line "+(W+1)+`:
2
2
  `+m.showPosition()+`
3
3
  Expecting `+X.join(", ")+", got '"+(this.terminals_[E]||E)+"'":Z="Parse error on line "+(W+1)+": Unexpected "+(E==re?"end of input":"'"+(this.terminals_[E]||E)+"'"),this.parseError(Z,{text:m.match,token:this.terminals_[E]||E,line:m.yylineno,loc:q,expected:X})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+E);switch(x[0]){case 1:r.push(E),u.push(m.yytext),t.push(m.yylloc),r.push(x[1]),E=null,se=m.yyleng,c=m.yytext,W=m.yylineno,q=m.yylloc;break;case 2:if(C=this.productions_[x[1]][1],j.$=u[u.length-C],j._$={first_line:t[t.length-(C||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(C||1)].first_column,last_column:t[t.length-1].last_column},de&&(j._$.range=[t[t.length-(C||1)].range[0],t[t.length-1].range[1]]),Q=this.performAction.apply(j,[c,se,W,R.yy,x[1],u,t].concat(ge)),typeof Q<"u")return Q;C&&(r=r.slice(0,-1*C*2),u=u.slice(0,-1*C),t=t.slice(0,-1*C)),r.push(this.productions_[x[1]][0]),u.push(j.$),t.push(j._$),oe=U[r[r.length-2]][r[r.length-1]],r.push(oe);break;case 3:return!0}}return!0},"parse")},Y=(function(){var O={EOF:1,parseError:o(function(n,r){if(this.yy.parser)this.yy.parser.parseError(n,r);else throw new Error(n)},"parseError"),setInput:o(function(i,n){return this.yy=n||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 n=i.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),i},"input"),unput:o(function(i){var n=i.length,r=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;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),r.length-1&&(this.yylineno-=r.length-1);var u=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===a.length?this.yylloc.first_column:0)+a[a.length-r.length].length-r[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-n]),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(),n=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
@@ -1 +1 @@
1
- import{aA as ye,aB as Y,aC as V,aD as Ve,aE as oe,aF as Ue,aG as Cn,aH as We,aI as _n,aJ as kn,aK as jn,aL as xe,aM as ue,aN as fe,aO as B,aP as qe,aQ as Xe,aR as In,aS as T,aT as An,aU as Mn,aV as Rn,aW as Oe,aX as Sn,aY as Ke,aZ as N,a_ as $n,a$ as Fn,b0 as Bn,b1 as S,b2 as He,b3 as ze,b4 as Gn,b5 as de,b6 as Je,b7 as Dn,b8 as Ze,b9 as Yn,ba as Vn,X as x,bb as c,bc as Un,bd as m,be as M,bf as P,bg as U}from"./mermaid.core-BJx2V7Fx.js";import{i as y,b as se,c as Wn,r as qn,S as Ee,a as ne}from"./isObject-DL-BuaBl.js";import{t as Xn}from"./toNumber-DZb-r9sy.js";var Te=1/0,Kn=17976931348623157e292;function $(e){if(!e)return e===0?e:0;if(e=Xn(e),e===Te||e===-Te){var n=e<0?-1:1;return n*Kn}return e===e?e:0}function Hn(e){var n=$(e),r=n%1;return n===n?r?n-r:n:0}var Pe=Object.create,zn=(function(){function e(){}return function(n){if(!y(n))return{};if(Pe)return Pe(n);e.prototype=n;var r=new e;return e.prototype=void 0,r}})();function Jn(e,n){var r=-1,t=e.length;for(n||(n=Array(t));++r<t;)n[r]=e[r];return n}function W(e,n,r){n=="__proto__"&&ye?ye(e,n,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[n]=r}var Zn=Object.prototype,Qn=Zn.hasOwnProperty;function q(e,n,r){var t=e[n];(!(Qn.call(e,n)&&Y(t,r))||r===void 0&&!(n in e))&&W(e,n,r)}function er(e,n,r,t){var a=!r;r||(r={});for(var o=-1,i=n.length;++o<i;){var u=n[o],f=void 0;f===void 0&&(f=e[u]),a?W(r,u,f):q(r,u,f)}return r}function j(e,n,r){if(!y(r))return!1;var t=typeof n;return(t=="number"?V(r)&&Ve(n,r.length):t=="string"&&n in r)?Y(r[n],e):!1}function nr(e){return oe(function(n,r){var t=-1,a=r.length,o=a>1?r[a-1]:void 0,i=a>2?r[2]:void 0;for(o=e.length>3&&typeof o=="function"?(a--,o):void 0,i&&j(r[0],r[1],i)&&(o=a<3?void 0:o,a=1),n=Object(n);++t<a;){var u=r[t];u&&e(n,u,t,o)}return n})}function rr(e){var n=[];if(e!=null)for(var r in Object(e))n.push(r);return n}var tr=Object.prototype,ar=tr.hasOwnProperty;function ir(e){if(!y(e))return rr(e);var n=Ue(e),r=[];for(var t in e)t=="constructor"&&(n||!ar.call(e,t))||r.push(t);return r}function X(e){return V(e)?Cn(e,!0):ir(e)}function C(e){var n=e==null?0:e.length;return n?We(e):[]}function or(e){return _n(kn(e,void 0,C),e+"")}var Qe=jn(Object.getPrototypeOf,Object),ur="[object Object]",fr=Function.prototype,dr=Object.prototype,en=fr.toString,sr=dr.hasOwnProperty,cr=en.call(Object);function lr(e){if(!se(e)||Wn(e)!=ur)return!1;var n=Qe(e);if(n===null)return!0;var r=sr.call(n,"constructor")&&n.constructor;return typeof r=="function"&&r instanceof r&&en.call(r)==cr}var nn=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Le=nn&&typeof module=="object"&&module&&!module.nodeType&&module,hr=Le&&Le.exports===nn,Ne=hr?qn.Buffer:void 0,Ce=Ne?Ne.allocUnsafe:void 0;function rn(e,n){if(n)return e.slice();var r=e.length,t=Ce?Ce(r):new e.constructor(r);return e.copy(t),t}var vr=Object.prototype,pr=vr.hasOwnProperty;function br(e){var n=e.length,r=new e.constructor(n);return n&&typeof e[0]=="string"&&pr.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function ce(e){var n=new e.constructor(e.byteLength);return new xe(n).set(new xe(e)),n}function wr(e,n){var r=ce(e.buffer);return new e.constructor(r,e.byteOffset,e.byteLength)}var gr=/\w*$/;function mr(e){var n=new e.constructor(e.source,gr.exec(e));return n.lastIndex=e.lastIndex,n}var _e=Ee?Ee.prototype:void 0,ke=_e?_e.valueOf:void 0;function yr(e){return ke?Object(ke.call(e)):{}}function tn(e,n){var r=n?ce(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var xr="[object Boolean]",Or="[object Date]",Er="[object Map]",Tr="[object Number]",Pr="[object RegExp]",Lr="[object Set]",Nr="[object String]",Cr="[object Symbol]",_r="[object ArrayBuffer]",kr="[object DataView]",jr="[object Float32Array]",Ir="[object Float64Array]",Ar="[object Int8Array]",Mr="[object Int16Array]",Rr="[object Int32Array]",Sr="[object Uint8Array]",$r="[object Uint8ClampedArray]",Fr="[object Uint16Array]",Br="[object Uint32Array]";function Gr(e,n,r){var t=e.constructor;switch(n){case _r:return ce(e);case xr:case Or:return new t(+e);case kr:return wr(e);case jr:case Ir:case Ar:case Mr:case Rr:case Sr:case $r:case Fr:case Br:return tn(e,r);case Er:return new t;case Tr:case Nr:return new t(e);case Pr:return mr(e);case Lr:return new t;case Cr:return yr(e)}}function an(e){return typeof e.constructor=="function"&&!Ue(e)?zn(Qe(e)):{}}var Dr="[object Map]";function Yr(e){return se(e)&&ue(e)==Dr}var je=B&&B.isMap,Vr=je?fe(je):Yr,Ur="[object Set]";function Wr(e){return se(e)&&ue(e)==Ur}var Ie=B&&B.isSet,qr=Ie?fe(Ie):Wr,Xr=1,on="[object Arguments]",Kr="[object Array]",Hr="[object Boolean]",zr="[object Date]",Jr="[object Error]",un="[object Function]",Zr="[object GeneratorFunction]",Qr="[object Map]",et="[object Number]",fn="[object Object]",nt="[object RegExp]",rt="[object Set]",tt="[object String]",at="[object Symbol]",it="[object WeakMap]",ot="[object ArrayBuffer]",ut="[object DataView]",ft="[object Float32Array]",dt="[object Float64Array]",st="[object Int8Array]",ct="[object Int16Array]",lt="[object Int32Array]",ht="[object Uint8Array]",vt="[object Uint8ClampedArray]",pt="[object Uint16Array]",bt="[object Uint32Array]",b={};b[on]=b[Kr]=b[ot]=b[ut]=b[Hr]=b[zr]=b[ft]=b[dt]=b[st]=b[ct]=b[lt]=b[Qr]=b[et]=b[fn]=b[nt]=b[rt]=b[tt]=b[at]=b[ht]=b[vt]=b[pt]=b[bt]=!0;b[Jr]=b[un]=b[it]=!1;function F(e,n,r,t,a,o){var i,u=n&Xr;if(i!==void 0)return i;if(!y(e))return e;var f=T(e);if(f)i=br(e);else{var d=ue(e),s=d==un||d==Zr;if(qe(e))return rn(e,u);if(d==fn||d==on||s&&!a)i=s?{}:an(e);else{if(!b[d])return a?e:{};i=Gr(e,d,u)}}o||(o=new Xe);var l=o.get(e);if(l)return l;o.set(e,i),qr(e)?e.forEach(function(v){i.add(F(v,n,r,v,e,o))}):Vr(e)&&e.forEach(function(v,w){i.set(w,F(v,n,r,w,e,o))});var h=An,p=f?void 0:h(e);return In(p||e,function(v,w){p&&(w=v,v=e[w]),q(i,w,F(v,n,r,w,e,o))}),i}var wt=1,gt=4;function mt(e){return F(e,wt|gt)}var dn=Object.prototype,yt=dn.hasOwnProperty,xt=oe(function(e,n){e=Object(e);var r=-1,t=n.length,a=t>2?n[2]:void 0;for(a&&j(n[0],n[1],a)&&(t=1);++r<t;)for(var o=n[r],i=X(o),u=-1,f=i.length;++u<f;){var d=i[u],s=e[d];(s===void 0||Y(s,dn[d])&&!yt.call(e,d))&&(e[d]=o[d])}return e});function re(e,n,r){(r!==void 0&&!Y(e[n],r)||r===void 0&&!(n in e))&&W(e,n,r)}function te(e,n){if(!(n==="constructor"&&typeof e[n]=="function")&&n!="__proto__")return e[n]}function Ot(e){return er(e,X(e))}function Et(e,n,r,t,a,o,i){var u=te(e,r),f=te(n,r),d=i.get(f);if(d){re(e,r,d);return}var s=o?o(u,f,r+"",e,n,i):void 0,l=s===void 0;if(l){var h=T(f),p=!h&&qe(f),v=!h&&!p&&Mn(f);s=f,h||p||v?T(u)?s=u:Rn(u)?s=Jn(u):p?(l=!1,s=rn(f,!0)):v?(l=!1,s=tn(f,!0)):s=[]:lr(f)||Oe(f)?(s=u,Oe(u)?s=Ot(u):(!y(u)||Sn(u))&&(s=an(f))):l=!1}l&&(i.set(f,s),a(s,f,t,o,i),i.delete(f)),re(e,r,s)}function sn(e,n,r,t,a){e!==n&&Ke(n,function(o,i){if(a||(a=new Xe),y(o))Et(e,n,i,r,sn,t,a);else{var u=t?t(te(e,i),o,i+"",e,n,a):void 0;u===void 0&&(u=o),re(e,i,u)}},X)}function G(e){var n=e==null?0:e.length;return n?e[n-1]:void 0}function Tt(e){return function(n,r,t){var a=Object(n);if(!V(n)){var o=N(r);n=$n(n),r=function(u){return o(a[u],u,a)}}var i=e(n,r,t);return i>-1?a[o?n[i]:i]:void 0}}var Pt=Math.max;function Lt(e,n,r){var t=e==null?0:e.length;if(!t)return-1;var a=r==null?0:Hn(r);return a<0&&(a=Pt(t+a,0)),Fn(e,N(n),a)}var le=Tt(Lt);function cn(e,n){var r=-1,t=V(e)?Array(e.length):[];return Bn(e,function(a,o,i){t[++r]=n(a,o,i)}),t}function g(e,n){var r=T(e)?S:cn;return r(e,N(n))}function Nt(e,n){return e==null?e:Ke(e,He(n),X)}function Ct(e,n){return e&&ze(e,He(n))}function _t(e,n){return e>n}var kt=Object.prototype,jt=kt.hasOwnProperty;function It(e,n){return e!=null&&jt.call(e,n)}function ln(e,n){return e!=null&&Gn(e,n,It)}function hn(e,n){return e<n}function K(e,n){var r={};return n=N(n),ze(e,function(t,a,o){W(r,a,n(t,a,o))}),r}function he(e,n,r){for(var t=-1,a=e.length;++t<a;){var o=e[t],i=n(o);if(i!=null&&(u===void 0?i===i&&!ne(i):r(i,u)))var u=i,f=o}return f}function O(e){return e&&e.length?he(e,de,_t):void 0}var ae=nr(function(e,n,r){sn(e,n,r)});function I(e){return e&&e.length?he(e,de,hn):void 0}function ve(e,n){return e&&e.length?he(e,N(n),hn):void 0}function At(e,n,r,t){if(!y(e))return e;n=Je(n,e);for(var a=-1,o=n.length,i=o-1,u=e;u!=null&&++a<o;){var f=Dn(n[a]),d=r;if(f==="__proto__"||f==="constructor"||f==="prototype")return e;if(a!=i){var s=u[f];d=void 0,d===void 0&&(d=y(s)?s:Ve(n[a+1])?[]:{})}q(u,f,d),u=u[f]}return e}function Mt(e,n,r){for(var t=-1,a=n.length,o={};++t<a;){var i=n[t],u=Ze(e,i);r(u,i)&&At(o,Je(i,e),u)}return o}function Rt(e,n){var r=e.length;for(e.sort(n);r--;)e[r]=e[r].value;return e}function St(e,n){if(e!==n){var r=e!==void 0,t=e===null,a=e===e,o=ne(e),i=n!==void 0,u=n===null,f=n===n,d=ne(n);if(!u&&!d&&!o&&e>n||o&&i&&f&&!u&&!d||t&&i&&f||!r&&f||!a)return 1;if(!t&&!o&&!d&&e<n||d&&r&&a&&!t&&!o||u&&r&&a||!i&&a||!f)return-1}return 0}function $t(e,n,r){for(var t=-1,a=e.criteria,o=n.criteria,i=a.length,u=r.length;++t<i;){var f=St(a[t],o[t]);if(f){if(t>=u)return f;var d=r[t];return f*(d=="desc"?-1:1)}}return e.index-n.index}function Ft(e,n,r){n.length?n=S(n,function(o){return T(o)?function(i){return Ze(i,o.length===1?o[0]:o)}:o}):n=[de];var t=-1;n=S(n,fe(N));var a=cn(e,function(o,i,u){var f=S(n,function(d){return d(o)});return{criteria:f,index:++t,value:o}});return Rt(a,function(o,i){return $t(o,i,r)})}function Bt(e,n){return Mt(e,n,function(r,t){return Yn(e,t)})}var D=or(function(e,n){return e==null?{}:Bt(e,n)}),Gt=Math.ceil,Dt=Math.max;function Yt(e,n,r,t){for(var a=-1,o=Dt(Gt((n-e)/(r||1)),0),i=Array(o);o--;)i[++a]=e,e+=r;return i}function Vt(e){return function(n,r,t){return t&&typeof t!="number"&&j(n,r,t)&&(r=t=void 0),n=$(n),r===void 0?(r=n,n=0):r=$(r),t=t===void 0?n<r?1:-1:$(t),Yt(n,r,t)}}var L=Vt(),R=oe(function(e,n){if(e==null)return[];var r=n.length;return r>1&&j(e,n[0],n[1])?n=[]:r>2&&j(n[0],n[1],n[2])&&(n=[n[0]]),Ft(e,We(n),[])}),Ut=0;function pe(e){var n=++Ut;return Vn(e)+n}function Wt(e,n,r){for(var t=-1,a=e.length,o=n.length,i={};++t<a;){var u=t<o?n[t]:void 0;r(i,e[t],u)}return i}function qt(e,n){return Wt(e||[],n||[],q)}class Xt{constructor(){var n={};n._next=n._prev=n,this._sentinel=n}dequeue(){var n=this._sentinel,r=n._prev;if(r!==n)return Ae(r),r}enqueue(n){var r=this._sentinel;n._prev&&n._next&&Ae(n),n._next=r._next,r._next._prev=n,r._next=n,n._prev=r}toString(){for(var n=[],r=this._sentinel,t=r._prev;t!==r;)n.push(JSON.stringify(t,Kt)),t=t._prev;return"["+n.join(", ")+"]"}}function Ae(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function Kt(e,n){if(e!=="_next"&&e!=="_prev")return n}var Ht=Un(1);function zt(e,n){if(e.nodeCount()<=1)return[];var r=Zt(e,n||Ht),t=Jt(r.graph,r.buckets,r.zeroIdx);return C(g(t,function(a){return e.outEdges(a.v,a.w)}))}function Jt(e,n,r){for(var t=[],a=n[n.length-1],o=n[0],i;e.nodeCount();){for(;i=o.dequeue();)z(e,n,r,i);for(;i=a.dequeue();)z(e,n,r,i);if(e.nodeCount()){for(var u=n.length-2;u>0;--u)if(i=n[u].dequeue(),i){t=t.concat(z(e,n,r,i,!0));break}}}return t}function z(e,n,r,t,a){var o=a?[]:void 0;return c(e.inEdges(t.v),function(i){var u=e.edge(i),f=e.node(i.v);a&&o.push({v:i.v,w:i.w}),f.out-=u,ie(n,r,f)}),c(e.outEdges(t.v),function(i){var u=e.edge(i),f=i.w,d=e.node(f);d.in-=u,ie(n,r,d)}),e.removeNode(t.v),o}function Zt(e,n){var r=new x,t=0,a=0;c(e.nodes(),function(u){r.setNode(u,{v:u,in:0,out:0})}),c(e.edges(),function(u){var f=r.edge(u.v,u.w)||0,d=n(u),s=f+d;r.setEdge(u.v,u.w,s),a=Math.max(a,r.node(u.v).out+=d),t=Math.max(t,r.node(u.w).in+=d)});var o=L(a+t+3).map(function(){return new Xt}),i=t+1;return c(r.nodes(),function(u){ie(o,i,r.node(u))}),{graph:r,buckets:o,zeroIdx:i}}function ie(e,n,r){r.out?r.in?e[r.out-r.in+n].enqueue(r):e[e.length-1].enqueue(r):e[0].enqueue(r)}function Qt(e){var n=e.graph().acyclicer==="greedy"?zt(e,r(e)):ea(e);c(n,function(t){var a=e.edge(t);e.removeEdge(t),a.forwardName=t.name,a.reversed=!0,e.setEdge(t.w,t.v,a,pe("rev"))});function r(t){return function(a){return t.edge(a).weight}}}function ea(e){var n=[],r={},t={};function a(o){Object.prototype.hasOwnProperty.call(t,o)||(t[o]=!0,r[o]=!0,c(e.outEdges(o),function(i){Object.prototype.hasOwnProperty.call(r,i.w)?n.push(i):a(i.w)}),delete r[o])}return c(e.nodes(),a),n}function na(e){c(e.edges(),function(n){var r=e.edge(n);if(r.reversed){e.removeEdge(n);var t=r.forwardName;delete r.reversed,delete r.forwardName,e.setEdge(n.w,n.v,r,t)}})}function _(e,n,r,t){var a;do a=pe(t);while(e.hasNode(a));return r.dummy=n,e.setNode(a,r),a}function ra(e){var n=new x().setGraph(e.graph());return c(e.nodes(),function(r){n.setNode(r,e.node(r))}),c(e.edges(),function(r){var t=n.edge(r.v,r.w)||{weight:0,minlen:1},a=e.edge(r);n.setEdge(r.v,r.w,{weight:t.weight+a.weight,minlen:Math.max(t.minlen,a.minlen)})}),n}function vn(e){var n=new x({multigraph:e.isMultigraph()}).setGraph(e.graph());return c(e.nodes(),function(r){e.children(r).length||n.setNode(r,e.node(r))}),c(e.edges(),function(r){n.setEdge(r,e.edge(r))}),n}function Me(e,n){var r=e.x,t=e.y,a=n.x-r,o=n.y-t,i=e.width/2,u=e.height/2;if(!a&&!o)throw new Error("Not possible to find intersection inside of the rectangle");var f,d;return Math.abs(o)*i>Math.abs(a)*u?(o<0&&(u=-u),f=u*a/o,d=u):(a<0&&(i=-i),f=i,d=i*o/a),{x:r+f,y:t+d}}function H(e){var n=g(L(pn(e)+1),function(){return[]});return c(e.nodes(),function(r){var t=e.node(r),a=t.rank;m(a)||(n[a][t.order]=r)}),n}function ta(e){var n=I(g(e.nodes(),function(r){return e.node(r).rank}));c(e.nodes(),function(r){var t=e.node(r);ln(t,"rank")&&(t.rank-=n)})}function aa(e){var n=I(g(e.nodes(),function(o){return e.node(o).rank})),r=[];c(e.nodes(),function(o){var i=e.node(o).rank-n;r[i]||(r[i]=[]),r[i].push(o)});var t=0,a=e.graph().nodeRankFactor;c(r,function(o,i){m(o)&&i%a!==0?--t:t&&c(o,function(u){e.node(u).rank+=t})})}function Re(e,n,r,t){var a={width:0,height:0};return arguments.length>=4&&(a.rank=r,a.order=t),_(e,"border",a,n)}function pn(e){return O(g(e.nodes(),function(n){var r=e.node(n).rank;if(!m(r))return r}))}function ia(e,n){var r={lhs:[],rhs:[]};return c(e,function(t){n(t)?r.lhs.push(t):r.rhs.push(t)}),r}function oa(e,n){return n()}function ua(e){function n(r){var t=e.children(r),a=e.node(r);if(t.length&&c(t,n),Object.prototype.hasOwnProperty.call(a,"minRank")){a.borderLeft=[],a.borderRight=[];for(var o=a.minRank,i=a.maxRank+1;o<i;++o)Se(e,"borderLeft","_bl",r,a,o),Se(e,"borderRight","_br",r,a,o)}}c(e.children(),n)}function Se(e,n,r,t,a,o){var i={width:0,height:0,rank:o,borderType:n},u=a[n][o-1],f=_(e,"border",i,r);a[n][o]=f,e.setParent(f,t),u&&e.setEdge(u,f,{weight:1})}function fa(e){var n=e.graph().rankdir.toLowerCase();(n==="lr"||n==="rl")&&bn(e)}function da(e){var n=e.graph().rankdir.toLowerCase();(n==="bt"||n==="rl")&&sa(e),(n==="lr"||n==="rl")&&(ca(e),bn(e))}function bn(e){c(e.nodes(),function(n){$e(e.node(n))}),c(e.edges(),function(n){$e(e.edge(n))})}function $e(e){var n=e.width;e.width=e.height,e.height=n}function sa(e){c(e.nodes(),function(n){J(e.node(n))}),c(e.edges(),function(n){var r=e.edge(n);c(r.points,J),Object.prototype.hasOwnProperty.call(r,"y")&&J(r)})}function J(e){e.y=-e.y}function ca(e){c(e.nodes(),function(n){Z(e.node(n))}),c(e.edges(),function(n){var r=e.edge(n);c(r.points,Z),Object.prototype.hasOwnProperty.call(r,"x")&&Z(r)})}function Z(e){var n=e.x;e.x=e.y,e.y=n}function la(e){e.graph().dummyChains=[],c(e.edges(),function(n){ha(e,n)})}function ha(e,n){var r=n.v,t=e.node(r).rank,a=n.w,o=e.node(a).rank,i=n.name,u=e.edge(n),f=u.labelRank;if(o!==t+1){e.removeEdge(n);var d=void 0,s,l;for(l=0,++t;t<o;++l,++t)u.points=[],d={width:0,height:0,edgeLabel:u,edgeObj:n,rank:t},s=_(e,"edge",d,"_d"),t===f&&(d.width=u.width,d.height=u.height,d.dummy="edge-label",d.labelpos=u.labelpos),e.setEdge(r,s,{weight:u.weight},i),l===0&&e.graph().dummyChains.push(s),r=s;e.setEdge(r,a,{weight:u.weight},i)}}function va(e){c(e.graph().dummyChains,function(n){var r=e.node(n),t=r.edgeLabel,a;for(e.setEdge(r.edgeObj,t);r.dummy;)a=e.successors(n)[0],e.removeNode(n),t.points.push({x:r.x,y:r.y}),r.dummy==="edge-label"&&(t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height),n=a,r=e.node(n)})}function be(e){var n={};function r(t){var a=e.node(t);if(Object.prototype.hasOwnProperty.call(n,t))return a.rank;n[t]=!0;var o=I(g(e.outEdges(t),function(i){return r(i.w)-e.edge(i).minlen}));return(o===Number.POSITIVE_INFINITY||o===void 0||o===null)&&(o=0),a.rank=o}c(e.sources(),r)}function A(e,n){return e.node(n.w).rank-e.node(n.v).rank-e.edge(n).minlen}function wn(e){var n=new x({directed:!1}),r=e.nodes()[0],t=e.nodeCount();n.setNode(r,{});for(var a,o;pa(n,e)<t;)a=ba(n,e),o=n.hasNode(a.v)?A(e,a):-A(e,a),wa(n,e,o);return n}function pa(e,n){function r(t){c(n.nodeEdges(t),function(a){var o=a.v,i=t===o?a.w:o;!e.hasNode(i)&&!A(n,a)&&(e.setNode(i,{}),e.setEdge(t,i,{}),r(i))})}return c(e.nodes(),r),e.nodeCount()}function ba(e,n){return ve(n.edges(),function(r){if(e.hasNode(r.v)!==e.hasNode(r.w))return A(n,r)})}function wa(e,n,r){c(e.nodes(),function(t){n.node(t).rank+=r})}function ga(){}ga.prototype=new Error;function gn(e,n,r){T(n)||(n=[n]);var t=(e.isDirected()?e.successors:e.neighbors).bind(e),a=[],o={};return c(n,function(i){if(!e.hasNode(i))throw new Error("Graph does not have node: "+i);mn(e,i,r==="post",o,t,a)}),a}function mn(e,n,r,t,a,o){Object.prototype.hasOwnProperty.call(t,n)||(t[n]=!0,r||o.push(n),c(a(n),function(i){mn(e,i,r,t,a,o)}),r&&o.push(n))}function ma(e,n){return gn(e,n,"post")}function ya(e,n){return gn(e,n,"pre")}E.initLowLimValues=ge;E.initCutValues=we;E.calcCutValue=yn;E.leaveEdge=On;E.enterEdge=En;E.exchangeEdges=Tn;function E(e){e=ra(e),be(e);var n=wn(e);ge(n),we(n,e);for(var r,t;r=On(n);)t=En(n,e,r),Tn(n,e,r,t)}function we(e,n){var r=ma(e,e.nodes());r=r.slice(0,r.length-1),c(r,function(t){xa(e,n,t)})}function xa(e,n,r){var t=e.node(r),a=t.parent;e.edge(r,a).cutvalue=yn(e,n,r)}function yn(e,n,r){var t=e.node(r),a=t.parent,o=!0,i=n.edge(r,a),u=0;return i||(o=!1,i=n.edge(a,r)),u=i.weight,c(n.nodeEdges(r),function(f){var d=f.v===r,s=d?f.w:f.v;if(s!==a){var l=d===o,h=n.edge(f).weight;if(u+=l?h:-h,Ea(e,r,s)){var p=e.edge(r,s).cutvalue;u+=l?-p:p}}}),u}function ge(e,n){arguments.length<2&&(n=e.nodes()[0]),xn(e,{},1,n)}function xn(e,n,r,t,a){var o=r,i=e.node(t);return n[t]=!0,c(e.neighbors(t),function(u){Object.prototype.hasOwnProperty.call(n,u)||(r=xn(e,n,r,u,t))}),i.low=o,i.lim=r++,a?i.parent=a:delete i.parent,r}function On(e){return le(e.edges(),function(n){return e.edge(n).cutvalue<0})}function En(e,n,r){var t=r.v,a=r.w;n.hasEdge(t,a)||(t=r.w,a=r.v);var o=e.node(t),i=e.node(a),u=o,f=!1;o.lim>i.lim&&(u=i,f=!0);var d=M(n.edges(),function(s){return f===Fe(e,e.node(s.v),u)&&f!==Fe(e,e.node(s.w),u)});return ve(d,function(s){return A(n,s)})}function Tn(e,n,r,t){var a=r.v,o=r.w;e.removeEdge(a,o),e.setEdge(t.v,t.w,{}),ge(e),we(e,n),Oa(e,n)}function Oa(e,n){var r=le(e.nodes(),function(a){return!n.node(a).parent}),t=ya(e,r);t=t.slice(1),c(t,function(a){var o=e.node(a).parent,i=n.edge(a,o),u=!1;i||(i=n.edge(o,a),u=!0),n.node(a).rank=n.node(o).rank+(u?i.minlen:-i.minlen)})}function Ea(e,n,r){return e.hasEdge(n,r)}function Fe(e,n,r){return r.low<=n.lim&&n.lim<=r.lim}function Ta(e){switch(e.graph().ranker){case"network-simplex":Be(e);break;case"tight-tree":La(e);break;case"longest-path":Pa(e);break;default:Be(e)}}var Pa=be;function La(e){be(e),wn(e)}function Be(e){E(e)}function Na(e){var n=_(e,"root",{},"_root"),r=Ca(e),t=O(P(r))-1,a=2*t+1;e.graph().nestingRoot=n,c(e.edges(),function(i){e.edge(i).minlen*=a});var o=_a(e)+1;c(e.children(),function(i){Pn(e,n,a,o,t,r,i)}),e.graph().nodeRankFactor=a}function Pn(e,n,r,t,a,o,i){var u=e.children(i);if(!u.length){i!==n&&e.setEdge(n,i,{weight:0,minlen:r});return}var f=Re(e,"_bt"),d=Re(e,"_bb"),s=e.node(i);e.setParent(f,i),s.borderTop=f,e.setParent(d,i),s.borderBottom=d,c(u,function(l){Pn(e,n,r,t,a,o,l);var h=e.node(l),p=h.borderTop?h.borderTop:l,v=h.borderBottom?h.borderBottom:l,w=h.borderTop?t:2*t,k=p!==v?1:a-o[i]+1;e.setEdge(f,p,{weight:w,minlen:k,nestingEdge:!0}),e.setEdge(v,d,{weight:w,minlen:k,nestingEdge:!0})}),e.parent(i)||e.setEdge(n,f,{weight:0,minlen:a+o[i]})}function Ca(e){var n={};function r(t,a){var o=e.children(t);o&&o.length&&c(o,function(i){r(i,a+1)}),n[t]=a}return c(e.children(),function(t){r(t,1)}),n}function _a(e){return U(e.edges(),function(n,r){return n+e.edge(r).weight},0)}function ka(e){var n=e.graph();e.removeNode(n.nestingRoot),delete n.nestingRoot,c(e.edges(),function(r){var t=e.edge(r);t.nestingEdge&&e.removeEdge(r)})}function ja(e,n,r){var t={},a;c(r,function(o){for(var i=e.parent(o),u,f;i;){if(u=e.parent(i),u?(f=t[u],t[u]=i):(f=a,a=i),f&&f!==i){n.setEdge(f,i);return}i=u}})}function Ia(e,n,r){var t=Aa(e),a=new x({compound:!0}).setGraph({root:t}).setDefaultNodeLabel(function(o){return e.node(o)});return c(e.nodes(),function(o){var i=e.node(o),u=e.parent(o);(i.rank===n||i.minRank<=n&&n<=i.maxRank)&&(a.setNode(o),a.setParent(o,u||t),c(e[r](o),function(f){var d=f.v===o?f.w:f.v,s=a.edge(d,o),l=m(s)?0:s.weight;a.setEdge(d,o,{weight:e.edge(f).weight+l})}),Object.prototype.hasOwnProperty.call(i,"minRank")&&a.setNode(o,{borderLeft:i.borderLeft[n],borderRight:i.borderRight[n]}))}),a}function Aa(e){for(var n;e.hasNode(n=pe("_root")););return n}function Ma(e,n){for(var r=0,t=1;t<n.length;++t)r+=Ra(e,n[t-1],n[t]);return r}function Ra(e,n,r){for(var t=qt(r,g(r,function(d,s){return s})),a=C(g(n,function(d){return R(g(e.outEdges(d),function(s){return{pos:t[s.w],weight:e.edge(s).weight}}),"pos")})),o=1;o<r.length;)o<<=1;var i=2*o-1;o-=1;var u=g(new Array(i),function(){return 0}),f=0;return c(a.forEach(function(d){var s=d.pos+o;u[s]+=d.weight;for(var l=0;s>0;)s%2&&(l+=u[s+1]),s=s-1>>1,u[s]+=d.weight;f+=d.weight*l})),f}function Sa(e){var n={},r=M(e.nodes(),function(u){return!e.children(u).length}),t=O(g(r,function(u){return e.node(u).rank})),a=g(L(t+1),function(){return[]});function o(u){if(!ln(n,u)){n[u]=!0;var f=e.node(u);a[f.rank].push(u),c(e.successors(u),o)}}var i=R(r,function(u){return e.node(u).rank});return c(i,o),a}function $a(e,n){return g(n,function(r){var t=e.inEdges(r);if(t.length){var a=U(t,function(o,i){var u=e.edge(i),f=e.node(i.v);return{sum:o.sum+u.weight*f.order,weight:o.weight+u.weight}},{sum:0,weight:0});return{v:r,barycenter:a.sum/a.weight,weight:a.weight}}else return{v:r}})}function Fa(e,n){var r={};c(e,function(a,o){var i=r[a.v]={indegree:0,in:[],out:[],vs:[a.v],i:o};m(a.barycenter)||(i.barycenter=a.barycenter,i.weight=a.weight)}),c(n.edges(),function(a){var o=r[a.v],i=r[a.w];!m(o)&&!m(i)&&(i.indegree++,o.out.push(r[a.w]))});var t=M(r,function(a){return!a.indegree});return Ba(t)}function Ba(e){var n=[];function r(o){return function(i){i.merged||(m(i.barycenter)||m(o.barycenter)||i.barycenter>=o.barycenter)&&Ga(o,i)}}function t(o){return function(i){i.in.push(o),--i.indegree===0&&e.push(i)}}for(;e.length;){var a=e.pop();n.push(a),c(a.in.reverse(),r(a)),c(a.out,t(a))}return g(M(n,function(o){return!o.merged}),function(o){return D(o,["vs","i","barycenter","weight"])})}function Ga(e,n){var r=0,t=0;e.weight&&(r+=e.barycenter*e.weight,t+=e.weight),n.weight&&(r+=n.barycenter*n.weight,t+=n.weight),e.vs=n.vs.concat(e.vs),e.barycenter=r/t,e.weight=t,e.i=Math.min(n.i,e.i),n.merged=!0}function Da(e,n){var r=ia(e,function(s){return Object.prototype.hasOwnProperty.call(s,"barycenter")}),t=r.lhs,a=R(r.rhs,function(s){return-s.i}),o=[],i=0,u=0,f=0;t.sort(Ya(!!n)),f=Ge(o,a,f),c(t,function(s){f+=s.vs.length,o.push(s.vs),i+=s.barycenter*s.weight,u+=s.weight,f=Ge(o,a,f)});var d={vs:C(o)};return u&&(d.barycenter=i/u,d.weight=u),d}function Ge(e,n,r){for(var t;n.length&&(t=G(n)).i<=r;)n.pop(),e.push(t.vs),r++;return r}function Ya(e){return function(n,r){return n.barycenter<r.barycenter?-1:n.barycenter>r.barycenter?1:e?r.i-n.i:n.i-r.i}}function Ln(e,n,r,t){var a=e.children(n),o=e.node(n),i=o?o.borderLeft:void 0,u=o?o.borderRight:void 0,f={};i&&(a=M(a,function(v){return v!==i&&v!==u}));var d=$a(e,a);c(d,function(v){if(e.children(v.v).length){var w=Ln(e,v.v,r,t);f[v.v]=w,Object.prototype.hasOwnProperty.call(w,"barycenter")&&Ua(v,w)}});var s=Fa(d,r);Va(s,f);var l=Da(s,t);if(i&&(l.vs=C([i,l.vs,u]),e.predecessors(i).length)){var h=e.node(e.predecessors(i)[0]),p=e.node(e.predecessors(u)[0]);Object.prototype.hasOwnProperty.call(l,"barycenter")||(l.barycenter=0,l.weight=0),l.barycenter=(l.barycenter*l.weight+h.order+p.order)/(l.weight+2),l.weight+=2}return l}function Va(e,n){c(e,function(r){r.vs=C(r.vs.map(function(t){return n[t]?n[t].vs:t}))})}function Ua(e,n){m(e.barycenter)?(e.barycenter=n.barycenter,e.weight=n.weight):(e.barycenter=(e.barycenter*e.weight+n.barycenter*n.weight)/(e.weight+n.weight),e.weight+=n.weight)}function Wa(e){var n=pn(e),r=De(e,L(1,n+1),"inEdges"),t=De(e,L(n-1,-1,-1),"outEdges"),a=Sa(e);Ye(e,a);for(var o=Number.POSITIVE_INFINITY,i,u=0,f=0;f<4;++u,++f){qa(u%2?r:t,u%4>=2),a=H(e);var d=Ma(e,a);d<o&&(f=0,i=mt(a),o=d)}Ye(e,i)}function De(e,n,r){return g(n,function(t){return Ia(e,t,r)})}function qa(e,n){var r=new x;c(e,function(t){var a=t.graph().root,o=Ln(t,a,r,n);c(o.vs,function(i,u){t.node(i).order=u}),ja(t,r,o.vs)})}function Ye(e,n){c(n,function(r){c(r,function(t,a){e.node(t).order=a})})}function Xa(e){var n=Ha(e);c(e.graph().dummyChains,function(r){for(var t=e.node(r),a=t.edgeObj,o=Ka(e,n,a.v,a.w),i=o.path,u=o.lca,f=0,d=i[f],s=!0;r!==a.w;){if(t=e.node(r),s){for(;(d=i[f])!==u&&e.node(d).maxRank<t.rank;)f++;d===u&&(s=!1)}if(!s){for(;f<i.length-1&&e.node(d=i[f+1]).minRank<=t.rank;)f++;d=i[f]}e.setParent(r,d),r=e.successors(r)[0]}})}function Ka(e,n,r,t){var a=[],o=[],i=Math.min(n[r].low,n[t].low),u=Math.max(n[r].lim,n[t].lim),f,d;f=r;do f=e.parent(f),a.push(f);while(f&&(n[f].low>i||u>n[f].lim));for(d=f,f=t;(f=e.parent(f))!==d;)o.push(f);return{path:a.concat(o.reverse()),lca:d}}function Ha(e){var n={},r=0;function t(a){var o=r;c(e.children(a),t),n[a]={low:o,lim:r++}}return c(e.children(),t),n}function za(e,n){var r={};function t(a,o){var i=0,u=0,f=a.length,d=G(o);return c(o,function(s,l){var h=Za(e,s),p=h?e.node(h).order:f;(h||s===d)&&(c(o.slice(u,l+1),function(v){c(e.predecessors(v),function(w){var k=e.node(w),me=k.order;(me<i||p<me)&&!(k.dummy&&e.node(v).dummy)&&Nn(r,w,v)})}),u=l+1,i=p)}),o}return U(n,t),r}function Ja(e,n){var r={};function t(o,i,u,f,d){var s;c(L(i,u),function(l){s=o[l],e.node(s).dummy&&c(e.predecessors(s),function(h){var p=e.node(h);p.dummy&&(p.order<f||p.order>d)&&Nn(r,h,s)})})}function a(o,i){var u=-1,f,d=0;return c(i,function(s,l){if(e.node(s).dummy==="border"){var h=e.predecessors(s);h.length&&(f=e.node(h[0]).order,t(i,d,l,u,f),d=l,u=f)}t(i,d,i.length,f,o.length)}),i}return U(n,a),r}function Za(e,n){if(e.node(n).dummy)return le(e.predecessors(n),function(r){return e.node(r).dummy})}function Nn(e,n,r){if(n>r){var t=n;n=r,r=t}Object.prototype.hasOwnProperty.call(e,n)||Object.defineProperty(e,n,{enumerable:!0,configurable:!0,value:{},writable:!0});var a=e[n];Object.defineProperty(a,r,{enumerable:!0,configurable:!0,value:!0,writable:!0})}function Qa(e,n,r){if(n>r){var t=n;n=r,r=t}return!!e[n]&&Object.prototype.hasOwnProperty.call(e[n],r)}function ei(e,n,r,t){var a={},o={},i={};return c(n,function(u){c(u,function(f,d){a[f]=f,o[f]=f,i[f]=d})}),c(n,function(u){var f=-1;c(u,function(d){var s=t(d);if(s.length){s=R(s,function(w){return i[w]});for(var l=(s.length-1)/2,h=Math.floor(l),p=Math.ceil(l);h<=p;++h){var v=s[h];o[d]===d&&f<i[v]&&!Qa(r,d,v)&&(o[v]=d,o[d]=a[d]=a[v],f=i[v])}}})}),{root:a,align:o}}function ni(e,n,r,t,a){var o={},i=ri(e,n,r,a),u=a?"borderLeft":"borderRight";function f(l,h){for(var p=i.nodes(),v=p.pop(),w={};v;)w[v]?l(v):(w[v]=!0,p.push(v),p=p.concat(h(v))),v=p.pop()}function d(l){o[l]=i.inEdges(l).reduce(function(h,p){return Math.max(h,o[p.v]+i.edge(p))},0)}function s(l){var h=i.outEdges(l).reduce(function(v,w){return Math.min(v,o[w.w]-i.edge(w))},Number.POSITIVE_INFINITY),p=e.node(l);h!==Number.POSITIVE_INFINITY&&p.borderType!==u&&(o[l]=Math.max(o[l],h))}return f(d,i.predecessors.bind(i)),f(s,i.successors.bind(i)),c(t,function(l){o[l]=o[r[l]]}),o}function ri(e,n,r,t){var a=new x,o=e.graph(),i=ui(o.nodesep,o.edgesep,t);return c(n,function(u){var f;c(u,function(d){var s=r[d];if(a.setNode(s),f){var l=r[f],h=a.edge(l,s);a.setEdge(l,s,Math.max(i(e,d,f),h||0))}f=d})}),a}function ti(e,n){return ve(P(n),function(r){var t=Number.NEGATIVE_INFINITY,a=Number.POSITIVE_INFINITY;return Nt(r,function(o,i){var u=fi(e,i)/2;t=Math.max(o+u,t),a=Math.min(o-u,a)}),t-a})}function ai(e,n){var r=P(n),t=I(r),a=O(r);c(["u","d"],function(o){c(["l","r"],function(i){var u=o+i,f=e[u],d;if(f!==n){var s=P(f);d=i==="l"?t-I(s):a-O(s),d&&(e[u]=K(f,function(l){return l+d}))}})})}function ii(e,n){return K(e.ul,function(r,t){if(n)return e[n.toLowerCase()][t];var a=R(g(e,t));return(a[1]+a[2])/2})}function oi(e){var n=H(e),r=ae(za(e,n),Ja(e,n)),t={},a;c(["u","d"],function(i){a=i==="u"?n:P(n).reverse(),c(["l","r"],function(u){u==="r"&&(a=g(a,function(l){return P(l).reverse()}));var f=(i==="u"?e.predecessors:e.successors).bind(e),d=ei(e,a,r,f),s=ni(e,a,d.root,d.align,u==="r");u==="r"&&(s=K(s,function(l){return-l})),t[i+u]=s})});var o=ti(e,t);return ai(t,o),ii(t,e.graph().align)}function ui(e,n,r){return function(t,a,o){var i=t.node(a),u=t.node(o),f=0,d;if(f+=i.width/2,Object.prototype.hasOwnProperty.call(i,"labelpos"))switch(i.labelpos.toLowerCase()){case"l":d=-i.width/2;break;case"r":d=i.width/2;break}if(d&&(f+=r?d:-d),d=0,f+=(i.dummy?n:e)/2,f+=(u.dummy?n:e)/2,f+=u.width/2,Object.prototype.hasOwnProperty.call(u,"labelpos"))switch(u.labelpos.toLowerCase()){case"l":d=u.width/2;break;case"r":d=-u.width/2;break}return d&&(f+=r?d:-d),d=0,f}}function fi(e,n){return e.node(n).width}function di(e){e=vn(e),si(e),Ct(oi(e),function(n,r){e.node(r).x=n})}function si(e){var n=H(e),r=e.graph().ranksep,t=0;c(n,function(a){var o=O(g(a,function(i){return e.node(i).height}));c(a,function(i){e.node(i).y=t+o/2}),t+=o+r})}function $i(e,n){var r=oa;r("layout",()=>{var t=r(" buildLayoutGraph",()=>xi(e));r(" runLayout",()=>ci(t,r)),r(" updateInputGraph",()=>li(e,t))})}function ci(e,n){n(" makeSpaceForEdgeLabels",()=>Oi(e)),n(" removeSelfEdges",()=>ji(e)),n(" acyclic",()=>Qt(e)),n(" nestingGraph.run",()=>Na(e)),n(" rank",()=>Ta(vn(e))),n(" injectEdgeLabelProxies",()=>Ei(e)),n(" removeEmptyRanks",()=>aa(e)),n(" nestingGraph.cleanup",()=>ka(e)),n(" normalizeRanks",()=>ta(e)),n(" assignRankMinMax",()=>Ti(e)),n(" removeEdgeLabelProxies",()=>Pi(e)),n(" normalize.run",()=>la(e)),n(" parentDummyChains",()=>Xa(e)),n(" addBorderSegments",()=>ua(e)),n(" order",()=>Wa(e)),n(" insertSelfEdges",()=>Ii(e)),n(" adjustCoordinateSystem",()=>fa(e)),n(" position",()=>di(e)),n(" positionSelfEdges",()=>Ai(e)),n(" removeBorderNodes",()=>ki(e)),n(" normalize.undo",()=>va(e)),n(" fixupEdgeLabelCoords",()=>Ci(e)),n(" undoCoordinateSystem",()=>da(e)),n(" translateGraph",()=>Li(e)),n(" assignNodeIntersects",()=>Ni(e)),n(" reversePoints",()=>_i(e)),n(" acyclic.undo",()=>na(e))}function li(e,n){c(e.nodes(),function(r){var t=e.node(r),a=n.node(r);t&&(t.x=a.x,t.y=a.y,n.children(r).length&&(t.width=a.width,t.height=a.height))}),c(e.edges(),function(r){var t=e.edge(r),a=n.edge(r);t.points=a.points,Object.prototype.hasOwnProperty.call(a,"x")&&(t.x=a.x,t.y=a.y)}),e.graph().width=n.graph().width,e.graph().height=n.graph().height}var hi=["nodesep","edgesep","ranksep","marginx","marginy"],vi={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},pi=["acyclicer","ranker","rankdir","align"],bi=["width","height"],wi={width:0,height:0},gi=["minlen","weight","width","height","labeloffset"],mi={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},yi=["labelpos"];function xi(e){var n=new x({multigraph:!0,compound:!0}),r=ee(e.graph());return n.setGraph(ae({},vi,Q(r,hi),D(r,pi))),c(e.nodes(),function(t){var a=ee(e.node(t));n.setNode(t,xt(Q(a,bi),wi)),n.setParent(t,e.parent(t))}),c(e.edges(),function(t){var a=ee(e.edge(t));n.setEdge(t,ae({},mi,Q(a,gi),D(a,yi)))}),n}function Oi(e){var n=e.graph();n.ranksep/=2,c(e.edges(),function(r){var t=e.edge(r);t.minlen*=2,t.labelpos.toLowerCase()!=="c"&&(n.rankdir==="TB"||n.rankdir==="BT"?t.width+=t.labeloffset:t.height+=t.labeloffset)})}function Ei(e){c(e.edges(),function(n){var r=e.edge(n);if(r.width&&r.height){var t=e.node(n.v),a=e.node(n.w),o={rank:(a.rank-t.rank)/2+t.rank,e:n};_(e,"edge-proxy",o,"_ep")}})}function Ti(e){var n=0;c(e.nodes(),function(r){var t=e.node(r);t.borderTop&&(t.minRank=e.node(t.borderTop).rank,t.maxRank=e.node(t.borderBottom).rank,n=O(n,t.maxRank))}),e.graph().maxRank=n}function Pi(e){c(e.nodes(),function(n){var r=e.node(n);r.dummy==="edge-proxy"&&(e.edge(r.e).labelRank=r.rank,e.removeNode(n))})}function Li(e){var n=Number.POSITIVE_INFINITY,r=0,t=Number.POSITIVE_INFINITY,a=0,o=e.graph(),i=o.marginx||0,u=o.marginy||0;function f(d){var s=d.x,l=d.y,h=d.width,p=d.height;n=Math.min(n,s-h/2),r=Math.max(r,s+h/2),t=Math.min(t,l-p/2),a=Math.max(a,l+p/2)}c(e.nodes(),function(d){f(e.node(d))}),c(e.edges(),function(d){var s=e.edge(d);Object.prototype.hasOwnProperty.call(s,"x")&&f(s)}),n-=i,t-=u,c(e.nodes(),function(d){var s=e.node(d);s.x-=n,s.y-=t}),c(e.edges(),function(d){var s=e.edge(d);c(s.points,function(l){l.x-=n,l.y-=t}),Object.prototype.hasOwnProperty.call(s,"x")&&(s.x-=n),Object.prototype.hasOwnProperty.call(s,"y")&&(s.y-=t)}),o.width=r-n+i,o.height=a-t+u}function Ni(e){c(e.edges(),function(n){var r=e.edge(n),t=e.node(n.v),a=e.node(n.w),o,i;r.points?(o=r.points[0],i=r.points[r.points.length-1]):(r.points=[],o=a,i=t),r.points.unshift(Me(t,o)),r.points.push(Me(a,i))})}function Ci(e){c(e.edges(),function(n){var r=e.edge(n);if(Object.prototype.hasOwnProperty.call(r,"x"))switch((r.labelpos==="l"||r.labelpos==="r")&&(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset;break}})}function _i(e){c(e.edges(),function(n){var r=e.edge(n);r.reversed&&r.points.reverse()})}function ki(e){c(e.nodes(),function(n){if(e.children(n).length){var r=e.node(n),t=e.node(r.borderTop),a=e.node(r.borderBottom),o=e.node(G(r.borderLeft)),i=e.node(G(r.borderRight));r.width=Math.abs(i.x-o.x),r.height=Math.abs(a.y-t.y),r.x=o.x+r.width/2,r.y=t.y+r.height/2}}),c(e.nodes(),function(n){e.node(n).dummy==="border"&&e.removeNode(n)})}function ji(e){c(e.edges(),function(n){if(n.v===n.w){var r=e.node(n.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e:n,label:e.edge(n)}),e.removeEdge(n)}})}function Ii(e){var n=H(e);c(n,function(r){var t=0;c(r,function(a,o){var i=e.node(a);i.order=o+t,c(i.selfEdges,function(u){_(e,"selfedge",{width:u.label.width,height:u.label.height,rank:i.rank,order:o+ ++t,e:u.e,label:u.label},"_se")}),delete i.selfEdges})})}function Ai(e){c(e.nodes(),function(n){var r=e.node(n);if(r.dummy==="selfedge"){var t=e.node(r.e.v),a=t.x+t.width/2,o=t.y,i=r.x-a,u=t.height/2;e.setEdge(r.e,r.label),e.removeNode(n),r.label.points=[{x:a+2*i/3,y:o-u},{x:a+5*i/6,y:o-u},{x:a+i,y:o},{x:a+5*i/6,y:o+u},{x:a+2*i/3,y:o+u}],r.label.x=r.x,r.label.y=r.y}})}function Q(e,n){return K(D(e,n),Number)}function ee(e){var n={};return c(e,function(r,t){n[t.toLowerCase()]=r}),n}export{$i as l};
1
+ import{aA as ye,aB as Y,aC as V,aD as Ve,aE as oe,aF as Ue,aG as Cn,aH as We,aI as _n,aJ as kn,aK as jn,aL as xe,aM as ue,aN as fe,aO as B,aP as qe,aQ as Xe,aR as In,aS as T,aT as An,aU as Mn,aV as Rn,aW as Oe,aX as Sn,aY as Ke,aZ as N,a_ as $n,a$ as Fn,b0 as Bn,b1 as S,b2 as He,b3 as ze,b4 as Gn,b5 as de,b6 as Je,b7 as Dn,b8 as Ze,b9 as Yn,ba as Vn,X as x,bb as c,bc as Un,bd as m,be as M,bf as P,bg as U}from"./mermaid.core-dItKH28w.js";import{i as y,b as se,c as Wn,r as qn,S as Ee,a as ne}from"./isObject-DL-BuaBl.js";import{t as Xn}from"./toNumber-DZb-r9sy.js";var Te=1/0,Kn=17976931348623157e292;function $(e){if(!e)return e===0?e:0;if(e=Xn(e),e===Te||e===-Te){var n=e<0?-1:1;return n*Kn}return e===e?e:0}function Hn(e){var n=$(e),r=n%1;return n===n?r?n-r:n:0}var Pe=Object.create,zn=(function(){function e(){}return function(n){if(!y(n))return{};if(Pe)return Pe(n);e.prototype=n;var r=new e;return e.prototype=void 0,r}})();function Jn(e,n){var r=-1,t=e.length;for(n||(n=Array(t));++r<t;)n[r]=e[r];return n}function W(e,n,r){n=="__proto__"&&ye?ye(e,n,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[n]=r}var Zn=Object.prototype,Qn=Zn.hasOwnProperty;function q(e,n,r){var t=e[n];(!(Qn.call(e,n)&&Y(t,r))||r===void 0&&!(n in e))&&W(e,n,r)}function er(e,n,r,t){var a=!r;r||(r={});for(var o=-1,i=n.length;++o<i;){var u=n[o],f=void 0;f===void 0&&(f=e[u]),a?W(r,u,f):q(r,u,f)}return r}function j(e,n,r){if(!y(r))return!1;var t=typeof n;return(t=="number"?V(r)&&Ve(n,r.length):t=="string"&&n in r)?Y(r[n],e):!1}function nr(e){return oe(function(n,r){var t=-1,a=r.length,o=a>1?r[a-1]:void 0,i=a>2?r[2]:void 0;for(o=e.length>3&&typeof o=="function"?(a--,o):void 0,i&&j(r[0],r[1],i)&&(o=a<3?void 0:o,a=1),n=Object(n);++t<a;){var u=r[t];u&&e(n,u,t,o)}return n})}function rr(e){var n=[];if(e!=null)for(var r in Object(e))n.push(r);return n}var tr=Object.prototype,ar=tr.hasOwnProperty;function ir(e){if(!y(e))return rr(e);var n=Ue(e),r=[];for(var t in e)t=="constructor"&&(n||!ar.call(e,t))||r.push(t);return r}function X(e){return V(e)?Cn(e,!0):ir(e)}function C(e){var n=e==null?0:e.length;return n?We(e):[]}function or(e){return _n(kn(e,void 0,C),e+"")}var Qe=jn(Object.getPrototypeOf,Object),ur="[object Object]",fr=Function.prototype,dr=Object.prototype,en=fr.toString,sr=dr.hasOwnProperty,cr=en.call(Object);function lr(e){if(!se(e)||Wn(e)!=ur)return!1;var n=Qe(e);if(n===null)return!0;var r=sr.call(n,"constructor")&&n.constructor;return typeof r=="function"&&r instanceof r&&en.call(r)==cr}var nn=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Le=nn&&typeof module=="object"&&module&&!module.nodeType&&module,hr=Le&&Le.exports===nn,Ne=hr?qn.Buffer:void 0,Ce=Ne?Ne.allocUnsafe:void 0;function rn(e,n){if(n)return e.slice();var r=e.length,t=Ce?Ce(r):new e.constructor(r);return e.copy(t),t}var vr=Object.prototype,pr=vr.hasOwnProperty;function br(e){var n=e.length,r=new e.constructor(n);return n&&typeof e[0]=="string"&&pr.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function ce(e){var n=new e.constructor(e.byteLength);return new xe(n).set(new xe(e)),n}function wr(e,n){var r=ce(e.buffer);return new e.constructor(r,e.byteOffset,e.byteLength)}var gr=/\w*$/;function mr(e){var n=new e.constructor(e.source,gr.exec(e));return n.lastIndex=e.lastIndex,n}var _e=Ee?Ee.prototype:void 0,ke=_e?_e.valueOf:void 0;function yr(e){return ke?Object(ke.call(e)):{}}function tn(e,n){var r=n?ce(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var xr="[object Boolean]",Or="[object Date]",Er="[object Map]",Tr="[object Number]",Pr="[object RegExp]",Lr="[object Set]",Nr="[object String]",Cr="[object Symbol]",_r="[object ArrayBuffer]",kr="[object DataView]",jr="[object Float32Array]",Ir="[object Float64Array]",Ar="[object Int8Array]",Mr="[object Int16Array]",Rr="[object Int32Array]",Sr="[object Uint8Array]",$r="[object Uint8ClampedArray]",Fr="[object Uint16Array]",Br="[object Uint32Array]";function Gr(e,n,r){var t=e.constructor;switch(n){case _r:return ce(e);case xr:case Or:return new t(+e);case kr:return wr(e);case jr:case Ir:case Ar:case Mr:case Rr:case Sr:case $r:case Fr:case Br:return tn(e,r);case Er:return new t;case Tr:case Nr:return new t(e);case Pr:return mr(e);case Lr:return new t;case Cr:return yr(e)}}function an(e){return typeof e.constructor=="function"&&!Ue(e)?zn(Qe(e)):{}}var Dr="[object Map]";function Yr(e){return se(e)&&ue(e)==Dr}var je=B&&B.isMap,Vr=je?fe(je):Yr,Ur="[object Set]";function Wr(e){return se(e)&&ue(e)==Ur}var Ie=B&&B.isSet,qr=Ie?fe(Ie):Wr,Xr=1,on="[object Arguments]",Kr="[object Array]",Hr="[object Boolean]",zr="[object Date]",Jr="[object Error]",un="[object Function]",Zr="[object GeneratorFunction]",Qr="[object Map]",et="[object Number]",fn="[object Object]",nt="[object RegExp]",rt="[object Set]",tt="[object String]",at="[object Symbol]",it="[object WeakMap]",ot="[object ArrayBuffer]",ut="[object DataView]",ft="[object Float32Array]",dt="[object Float64Array]",st="[object Int8Array]",ct="[object Int16Array]",lt="[object Int32Array]",ht="[object Uint8Array]",vt="[object Uint8ClampedArray]",pt="[object Uint16Array]",bt="[object Uint32Array]",b={};b[on]=b[Kr]=b[ot]=b[ut]=b[Hr]=b[zr]=b[ft]=b[dt]=b[st]=b[ct]=b[lt]=b[Qr]=b[et]=b[fn]=b[nt]=b[rt]=b[tt]=b[at]=b[ht]=b[vt]=b[pt]=b[bt]=!0;b[Jr]=b[un]=b[it]=!1;function F(e,n,r,t,a,o){var i,u=n&Xr;if(i!==void 0)return i;if(!y(e))return e;var f=T(e);if(f)i=br(e);else{var d=ue(e),s=d==un||d==Zr;if(qe(e))return rn(e,u);if(d==fn||d==on||s&&!a)i=s?{}:an(e);else{if(!b[d])return a?e:{};i=Gr(e,d,u)}}o||(o=new Xe);var l=o.get(e);if(l)return l;o.set(e,i),qr(e)?e.forEach(function(v){i.add(F(v,n,r,v,e,o))}):Vr(e)&&e.forEach(function(v,w){i.set(w,F(v,n,r,w,e,o))});var h=An,p=f?void 0:h(e);return In(p||e,function(v,w){p&&(w=v,v=e[w]),q(i,w,F(v,n,r,w,e,o))}),i}var wt=1,gt=4;function mt(e){return F(e,wt|gt)}var dn=Object.prototype,yt=dn.hasOwnProperty,xt=oe(function(e,n){e=Object(e);var r=-1,t=n.length,a=t>2?n[2]:void 0;for(a&&j(n[0],n[1],a)&&(t=1);++r<t;)for(var o=n[r],i=X(o),u=-1,f=i.length;++u<f;){var d=i[u],s=e[d];(s===void 0||Y(s,dn[d])&&!yt.call(e,d))&&(e[d]=o[d])}return e});function re(e,n,r){(r!==void 0&&!Y(e[n],r)||r===void 0&&!(n in e))&&W(e,n,r)}function te(e,n){if(!(n==="constructor"&&typeof e[n]=="function")&&n!="__proto__")return e[n]}function Ot(e){return er(e,X(e))}function Et(e,n,r,t,a,o,i){var u=te(e,r),f=te(n,r),d=i.get(f);if(d){re(e,r,d);return}var s=o?o(u,f,r+"",e,n,i):void 0,l=s===void 0;if(l){var h=T(f),p=!h&&qe(f),v=!h&&!p&&Mn(f);s=f,h||p||v?T(u)?s=u:Rn(u)?s=Jn(u):p?(l=!1,s=rn(f,!0)):v?(l=!1,s=tn(f,!0)):s=[]:lr(f)||Oe(f)?(s=u,Oe(u)?s=Ot(u):(!y(u)||Sn(u))&&(s=an(f))):l=!1}l&&(i.set(f,s),a(s,f,t,o,i),i.delete(f)),re(e,r,s)}function sn(e,n,r,t,a){e!==n&&Ke(n,function(o,i){if(a||(a=new Xe),y(o))Et(e,n,i,r,sn,t,a);else{var u=t?t(te(e,i),o,i+"",e,n,a):void 0;u===void 0&&(u=o),re(e,i,u)}},X)}function G(e){var n=e==null?0:e.length;return n?e[n-1]:void 0}function Tt(e){return function(n,r,t){var a=Object(n);if(!V(n)){var o=N(r);n=$n(n),r=function(u){return o(a[u],u,a)}}var i=e(n,r,t);return i>-1?a[o?n[i]:i]:void 0}}var Pt=Math.max;function Lt(e,n,r){var t=e==null?0:e.length;if(!t)return-1;var a=r==null?0:Hn(r);return a<0&&(a=Pt(t+a,0)),Fn(e,N(n),a)}var le=Tt(Lt);function cn(e,n){var r=-1,t=V(e)?Array(e.length):[];return Bn(e,function(a,o,i){t[++r]=n(a,o,i)}),t}function g(e,n){var r=T(e)?S:cn;return r(e,N(n))}function Nt(e,n){return e==null?e:Ke(e,He(n),X)}function Ct(e,n){return e&&ze(e,He(n))}function _t(e,n){return e>n}var kt=Object.prototype,jt=kt.hasOwnProperty;function It(e,n){return e!=null&&jt.call(e,n)}function ln(e,n){return e!=null&&Gn(e,n,It)}function hn(e,n){return e<n}function K(e,n){var r={};return n=N(n),ze(e,function(t,a,o){W(r,a,n(t,a,o))}),r}function he(e,n,r){for(var t=-1,a=e.length;++t<a;){var o=e[t],i=n(o);if(i!=null&&(u===void 0?i===i&&!ne(i):r(i,u)))var u=i,f=o}return f}function O(e){return e&&e.length?he(e,de,_t):void 0}var ae=nr(function(e,n,r){sn(e,n,r)});function I(e){return e&&e.length?he(e,de,hn):void 0}function ve(e,n){return e&&e.length?he(e,N(n),hn):void 0}function At(e,n,r,t){if(!y(e))return e;n=Je(n,e);for(var a=-1,o=n.length,i=o-1,u=e;u!=null&&++a<o;){var f=Dn(n[a]),d=r;if(f==="__proto__"||f==="constructor"||f==="prototype")return e;if(a!=i){var s=u[f];d=void 0,d===void 0&&(d=y(s)?s:Ve(n[a+1])?[]:{})}q(u,f,d),u=u[f]}return e}function Mt(e,n,r){for(var t=-1,a=n.length,o={};++t<a;){var i=n[t],u=Ze(e,i);r(u,i)&&At(o,Je(i,e),u)}return o}function Rt(e,n){var r=e.length;for(e.sort(n);r--;)e[r]=e[r].value;return e}function St(e,n){if(e!==n){var r=e!==void 0,t=e===null,a=e===e,o=ne(e),i=n!==void 0,u=n===null,f=n===n,d=ne(n);if(!u&&!d&&!o&&e>n||o&&i&&f&&!u&&!d||t&&i&&f||!r&&f||!a)return 1;if(!t&&!o&&!d&&e<n||d&&r&&a&&!t&&!o||u&&r&&a||!i&&a||!f)return-1}return 0}function $t(e,n,r){for(var t=-1,a=e.criteria,o=n.criteria,i=a.length,u=r.length;++t<i;){var f=St(a[t],o[t]);if(f){if(t>=u)return f;var d=r[t];return f*(d=="desc"?-1:1)}}return e.index-n.index}function Ft(e,n,r){n.length?n=S(n,function(o){return T(o)?function(i){return Ze(i,o.length===1?o[0]:o)}:o}):n=[de];var t=-1;n=S(n,fe(N));var a=cn(e,function(o,i,u){var f=S(n,function(d){return d(o)});return{criteria:f,index:++t,value:o}});return Rt(a,function(o,i){return $t(o,i,r)})}function Bt(e,n){return Mt(e,n,function(r,t){return Yn(e,t)})}var D=or(function(e,n){return e==null?{}:Bt(e,n)}),Gt=Math.ceil,Dt=Math.max;function Yt(e,n,r,t){for(var a=-1,o=Dt(Gt((n-e)/(r||1)),0),i=Array(o);o--;)i[++a]=e,e+=r;return i}function Vt(e){return function(n,r,t){return t&&typeof t!="number"&&j(n,r,t)&&(r=t=void 0),n=$(n),r===void 0?(r=n,n=0):r=$(r),t=t===void 0?n<r?1:-1:$(t),Yt(n,r,t)}}var L=Vt(),R=oe(function(e,n){if(e==null)return[];var r=n.length;return r>1&&j(e,n[0],n[1])?n=[]:r>2&&j(n[0],n[1],n[2])&&(n=[n[0]]),Ft(e,We(n),[])}),Ut=0;function pe(e){var n=++Ut;return Vn(e)+n}function Wt(e,n,r){for(var t=-1,a=e.length,o=n.length,i={};++t<a;){var u=t<o?n[t]:void 0;r(i,e[t],u)}return i}function qt(e,n){return Wt(e||[],n||[],q)}class Xt{constructor(){var n={};n._next=n._prev=n,this._sentinel=n}dequeue(){var n=this._sentinel,r=n._prev;if(r!==n)return Ae(r),r}enqueue(n){var r=this._sentinel;n._prev&&n._next&&Ae(n),n._next=r._next,r._next._prev=n,r._next=n,n._prev=r}toString(){for(var n=[],r=this._sentinel,t=r._prev;t!==r;)n.push(JSON.stringify(t,Kt)),t=t._prev;return"["+n.join(", ")+"]"}}function Ae(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function Kt(e,n){if(e!=="_next"&&e!=="_prev")return n}var Ht=Un(1);function zt(e,n){if(e.nodeCount()<=1)return[];var r=Zt(e,n||Ht),t=Jt(r.graph,r.buckets,r.zeroIdx);return C(g(t,function(a){return e.outEdges(a.v,a.w)}))}function Jt(e,n,r){for(var t=[],a=n[n.length-1],o=n[0],i;e.nodeCount();){for(;i=o.dequeue();)z(e,n,r,i);for(;i=a.dequeue();)z(e,n,r,i);if(e.nodeCount()){for(var u=n.length-2;u>0;--u)if(i=n[u].dequeue(),i){t=t.concat(z(e,n,r,i,!0));break}}}return t}function z(e,n,r,t,a){var o=a?[]:void 0;return c(e.inEdges(t.v),function(i){var u=e.edge(i),f=e.node(i.v);a&&o.push({v:i.v,w:i.w}),f.out-=u,ie(n,r,f)}),c(e.outEdges(t.v),function(i){var u=e.edge(i),f=i.w,d=e.node(f);d.in-=u,ie(n,r,d)}),e.removeNode(t.v),o}function Zt(e,n){var r=new x,t=0,a=0;c(e.nodes(),function(u){r.setNode(u,{v:u,in:0,out:0})}),c(e.edges(),function(u){var f=r.edge(u.v,u.w)||0,d=n(u),s=f+d;r.setEdge(u.v,u.w,s),a=Math.max(a,r.node(u.v).out+=d),t=Math.max(t,r.node(u.w).in+=d)});var o=L(a+t+3).map(function(){return new Xt}),i=t+1;return c(r.nodes(),function(u){ie(o,i,r.node(u))}),{graph:r,buckets:o,zeroIdx:i}}function ie(e,n,r){r.out?r.in?e[r.out-r.in+n].enqueue(r):e[e.length-1].enqueue(r):e[0].enqueue(r)}function Qt(e){var n=e.graph().acyclicer==="greedy"?zt(e,r(e)):ea(e);c(n,function(t){var a=e.edge(t);e.removeEdge(t),a.forwardName=t.name,a.reversed=!0,e.setEdge(t.w,t.v,a,pe("rev"))});function r(t){return function(a){return t.edge(a).weight}}}function ea(e){var n=[],r={},t={};function a(o){Object.prototype.hasOwnProperty.call(t,o)||(t[o]=!0,r[o]=!0,c(e.outEdges(o),function(i){Object.prototype.hasOwnProperty.call(r,i.w)?n.push(i):a(i.w)}),delete r[o])}return c(e.nodes(),a),n}function na(e){c(e.edges(),function(n){var r=e.edge(n);if(r.reversed){e.removeEdge(n);var t=r.forwardName;delete r.reversed,delete r.forwardName,e.setEdge(n.w,n.v,r,t)}})}function _(e,n,r,t){var a;do a=pe(t);while(e.hasNode(a));return r.dummy=n,e.setNode(a,r),a}function ra(e){var n=new x().setGraph(e.graph());return c(e.nodes(),function(r){n.setNode(r,e.node(r))}),c(e.edges(),function(r){var t=n.edge(r.v,r.w)||{weight:0,minlen:1},a=e.edge(r);n.setEdge(r.v,r.w,{weight:t.weight+a.weight,minlen:Math.max(t.minlen,a.minlen)})}),n}function vn(e){var n=new x({multigraph:e.isMultigraph()}).setGraph(e.graph());return c(e.nodes(),function(r){e.children(r).length||n.setNode(r,e.node(r))}),c(e.edges(),function(r){n.setEdge(r,e.edge(r))}),n}function Me(e,n){var r=e.x,t=e.y,a=n.x-r,o=n.y-t,i=e.width/2,u=e.height/2;if(!a&&!o)throw new Error("Not possible to find intersection inside of the rectangle");var f,d;return Math.abs(o)*i>Math.abs(a)*u?(o<0&&(u=-u),f=u*a/o,d=u):(a<0&&(i=-i),f=i,d=i*o/a),{x:r+f,y:t+d}}function H(e){var n=g(L(pn(e)+1),function(){return[]});return c(e.nodes(),function(r){var t=e.node(r),a=t.rank;m(a)||(n[a][t.order]=r)}),n}function ta(e){var n=I(g(e.nodes(),function(r){return e.node(r).rank}));c(e.nodes(),function(r){var t=e.node(r);ln(t,"rank")&&(t.rank-=n)})}function aa(e){var n=I(g(e.nodes(),function(o){return e.node(o).rank})),r=[];c(e.nodes(),function(o){var i=e.node(o).rank-n;r[i]||(r[i]=[]),r[i].push(o)});var t=0,a=e.graph().nodeRankFactor;c(r,function(o,i){m(o)&&i%a!==0?--t:t&&c(o,function(u){e.node(u).rank+=t})})}function Re(e,n,r,t){var a={width:0,height:0};return arguments.length>=4&&(a.rank=r,a.order=t),_(e,"border",a,n)}function pn(e){return O(g(e.nodes(),function(n){var r=e.node(n).rank;if(!m(r))return r}))}function ia(e,n){var r={lhs:[],rhs:[]};return c(e,function(t){n(t)?r.lhs.push(t):r.rhs.push(t)}),r}function oa(e,n){return n()}function ua(e){function n(r){var t=e.children(r),a=e.node(r);if(t.length&&c(t,n),Object.prototype.hasOwnProperty.call(a,"minRank")){a.borderLeft=[],a.borderRight=[];for(var o=a.minRank,i=a.maxRank+1;o<i;++o)Se(e,"borderLeft","_bl",r,a,o),Se(e,"borderRight","_br",r,a,o)}}c(e.children(),n)}function Se(e,n,r,t,a,o){var i={width:0,height:0,rank:o,borderType:n},u=a[n][o-1],f=_(e,"border",i,r);a[n][o]=f,e.setParent(f,t),u&&e.setEdge(u,f,{weight:1})}function fa(e){var n=e.graph().rankdir.toLowerCase();(n==="lr"||n==="rl")&&bn(e)}function da(e){var n=e.graph().rankdir.toLowerCase();(n==="bt"||n==="rl")&&sa(e),(n==="lr"||n==="rl")&&(ca(e),bn(e))}function bn(e){c(e.nodes(),function(n){$e(e.node(n))}),c(e.edges(),function(n){$e(e.edge(n))})}function $e(e){var n=e.width;e.width=e.height,e.height=n}function sa(e){c(e.nodes(),function(n){J(e.node(n))}),c(e.edges(),function(n){var r=e.edge(n);c(r.points,J),Object.prototype.hasOwnProperty.call(r,"y")&&J(r)})}function J(e){e.y=-e.y}function ca(e){c(e.nodes(),function(n){Z(e.node(n))}),c(e.edges(),function(n){var r=e.edge(n);c(r.points,Z),Object.prototype.hasOwnProperty.call(r,"x")&&Z(r)})}function Z(e){var n=e.x;e.x=e.y,e.y=n}function la(e){e.graph().dummyChains=[],c(e.edges(),function(n){ha(e,n)})}function ha(e,n){var r=n.v,t=e.node(r).rank,a=n.w,o=e.node(a).rank,i=n.name,u=e.edge(n),f=u.labelRank;if(o!==t+1){e.removeEdge(n);var d=void 0,s,l;for(l=0,++t;t<o;++l,++t)u.points=[],d={width:0,height:0,edgeLabel:u,edgeObj:n,rank:t},s=_(e,"edge",d,"_d"),t===f&&(d.width=u.width,d.height=u.height,d.dummy="edge-label",d.labelpos=u.labelpos),e.setEdge(r,s,{weight:u.weight},i),l===0&&e.graph().dummyChains.push(s),r=s;e.setEdge(r,a,{weight:u.weight},i)}}function va(e){c(e.graph().dummyChains,function(n){var r=e.node(n),t=r.edgeLabel,a;for(e.setEdge(r.edgeObj,t);r.dummy;)a=e.successors(n)[0],e.removeNode(n),t.points.push({x:r.x,y:r.y}),r.dummy==="edge-label"&&(t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height),n=a,r=e.node(n)})}function be(e){var n={};function r(t){var a=e.node(t);if(Object.prototype.hasOwnProperty.call(n,t))return a.rank;n[t]=!0;var o=I(g(e.outEdges(t),function(i){return r(i.w)-e.edge(i).minlen}));return(o===Number.POSITIVE_INFINITY||o===void 0||o===null)&&(o=0),a.rank=o}c(e.sources(),r)}function A(e,n){return e.node(n.w).rank-e.node(n.v).rank-e.edge(n).minlen}function wn(e){var n=new x({directed:!1}),r=e.nodes()[0],t=e.nodeCount();n.setNode(r,{});for(var a,o;pa(n,e)<t;)a=ba(n,e),o=n.hasNode(a.v)?A(e,a):-A(e,a),wa(n,e,o);return n}function pa(e,n){function r(t){c(n.nodeEdges(t),function(a){var o=a.v,i=t===o?a.w:o;!e.hasNode(i)&&!A(n,a)&&(e.setNode(i,{}),e.setEdge(t,i,{}),r(i))})}return c(e.nodes(),r),e.nodeCount()}function ba(e,n){return ve(n.edges(),function(r){if(e.hasNode(r.v)!==e.hasNode(r.w))return A(n,r)})}function wa(e,n,r){c(e.nodes(),function(t){n.node(t).rank+=r})}function ga(){}ga.prototype=new Error;function gn(e,n,r){T(n)||(n=[n]);var t=(e.isDirected()?e.successors:e.neighbors).bind(e),a=[],o={};return c(n,function(i){if(!e.hasNode(i))throw new Error("Graph does not have node: "+i);mn(e,i,r==="post",o,t,a)}),a}function mn(e,n,r,t,a,o){Object.prototype.hasOwnProperty.call(t,n)||(t[n]=!0,r||o.push(n),c(a(n),function(i){mn(e,i,r,t,a,o)}),r&&o.push(n))}function ma(e,n){return gn(e,n,"post")}function ya(e,n){return gn(e,n,"pre")}E.initLowLimValues=ge;E.initCutValues=we;E.calcCutValue=yn;E.leaveEdge=On;E.enterEdge=En;E.exchangeEdges=Tn;function E(e){e=ra(e),be(e);var n=wn(e);ge(n),we(n,e);for(var r,t;r=On(n);)t=En(n,e,r),Tn(n,e,r,t)}function we(e,n){var r=ma(e,e.nodes());r=r.slice(0,r.length-1),c(r,function(t){xa(e,n,t)})}function xa(e,n,r){var t=e.node(r),a=t.parent;e.edge(r,a).cutvalue=yn(e,n,r)}function yn(e,n,r){var t=e.node(r),a=t.parent,o=!0,i=n.edge(r,a),u=0;return i||(o=!1,i=n.edge(a,r)),u=i.weight,c(n.nodeEdges(r),function(f){var d=f.v===r,s=d?f.w:f.v;if(s!==a){var l=d===o,h=n.edge(f).weight;if(u+=l?h:-h,Ea(e,r,s)){var p=e.edge(r,s).cutvalue;u+=l?-p:p}}}),u}function ge(e,n){arguments.length<2&&(n=e.nodes()[0]),xn(e,{},1,n)}function xn(e,n,r,t,a){var o=r,i=e.node(t);return n[t]=!0,c(e.neighbors(t),function(u){Object.prototype.hasOwnProperty.call(n,u)||(r=xn(e,n,r,u,t))}),i.low=o,i.lim=r++,a?i.parent=a:delete i.parent,r}function On(e){return le(e.edges(),function(n){return e.edge(n).cutvalue<0})}function En(e,n,r){var t=r.v,a=r.w;n.hasEdge(t,a)||(t=r.w,a=r.v);var o=e.node(t),i=e.node(a),u=o,f=!1;o.lim>i.lim&&(u=i,f=!0);var d=M(n.edges(),function(s){return f===Fe(e,e.node(s.v),u)&&f!==Fe(e,e.node(s.w),u)});return ve(d,function(s){return A(n,s)})}function Tn(e,n,r,t){var a=r.v,o=r.w;e.removeEdge(a,o),e.setEdge(t.v,t.w,{}),ge(e),we(e,n),Oa(e,n)}function Oa(e,n){var r=le(e.nodes(),function(a){return!n.node(a).parent}),t=ya(e,r);t=t.slice(1),c(t,function(a){var o=e.node(a).parent,i=n.edge(a,o),u=!1;i||(i=n.edge(o,a),u=!0),n.node(a).rank=n.node(o).rank+(u?i.minlen:-i.minlen)})}function Ea(e,n,r){return e.hasEdge(n,r)}function Fe(e,n,r){return r.low<=n.lim&&n.lim<=r.lim}function Ta(e){switch(e.graph().ranker){case"network-simplex":Be(e);break;case"tight-tree":La(e);break;case"longest-path":Pa(e);break;default:Be(e)}}var Pa=be;function La(e){be(e),wn(e)}function Be(e){E(e)}function Na(e){var n=_(e,"root",{},"_root"),r=Ca(e),t=O(P(r))-1,a=2*t+1;e.graph().nestingRoot=n,c(e.edges(),function(i){e.edge(i).minlen*=a});var o=_a(e)+1;c(e.children(),function(i){Pn(e,n,a,o,t,r,i)}),e.graph().nodeRankFactor=a}function Pn(e,n,r,t,a,o,i){var u=e.children(i);if(!u.length){i!==n&&e.setEdge(n,i,{weight:0,minlen:r});return}var f=Re(e,"_bt"),d=Re(e,"_bb"),s=e.node(i);e.setParent(f,i),s.borderTop=f,e.setParent(d,i),s.borderBottom=d,c(u,function(l){Pn(e,n,r,t,a,o,l);var h=e.node(l),p=h.borderTop?h.borderTop:l,v=h.borderBottom?h.borderBottom:l,w=h.borderTop?t:2*t,k=p!==v?1:a-o[i]+1;e.setEdge(f,p,{weight:w,minlen:k,nestingEdge:!0}),e.setEdge(v,d,{weight:w,minlen:k,nestingEdge:!0})}),e.parent(i)||e.setEdge(n,f,{weight:0,minlen:a+o[i]})}function Ca(e){var n={};function r(t,a){var o=e.children(t);o&&o.length&&c(o,function(i){r(i,a+1)}),n[t]=a}return c(e.children(),function(t){r(t,1)}),n}function _a(e){return U(e.edges(),function(n,r){return n+e.edge(r).weight},0)}function ka(e){var n=e.graph();e.removeNode(n.nestingRoot),delete n.nestingRoot,c(e.edges(),function(r){var t=e.edge(r);t.nestingEdge&&e.removeEdge(r)})}function ja(e,n,r){var t={},a;c(r,function(o){for(var i=e.parent(o),u,f;i;){if(u=e.parent(i),u?(f=t[u],t[u]=i):(f=a,a=i),f&&f!==i){n.setEdge(f,i);return}i=u}})}function Ia(e,n,r){var t=Aa(e),a=new x({compound:!0}).setGraph({root:t}).setDefaultNodeLabel(function(o){return e.node(o)});return c(e.nodes(),function(o){var i=e.node(o),u=e.parent(o);(i.rank===n||i.minRank<=n&&n<=i.maxRank)&&(a.setNode(o),a.setParent(o,u||t),c(e[r](o),function(f){var d=f.v===o?f.w:f.v,s=a.edge(d,o),l=m(s)?0:s.weight;a.setEdge(d,o,{weight:e.edge(f).weight+l})}),Object.prototype.hasOwnProperty.call(i,"minRank")&&a.setNode(o,{borderLeft:i.borderLeft[n],borderRight:i.borderRight[n]}))}),a}function Aa(e){for(var n;e.hasNode(n=pe("_root")););return n}function Ma(e,n){for(var r=0,t=1;t<n.length;++t)r+=Ra(e,n[t-1],n[t]);return r}function Ra(e,n,r){for(var t=qt(r,g(r,function(d,s){return s})),a=C(g(n,function(d){return R(g(e.outEdges(d),function(s){return{pos:t[s.w],weight:e.edge(s).weight}}),"pos")})),o=1;o<r.length;)o<<=1;var i=2*o-1;o-=1;var u=g(new Array(i),function(){return 0}),f=0;return c(a.forEach(function(d){var s=d.pos+o;u[s]+=d.weight;for(var l=0;s>0;)s%2&&(l+=u[s+1]),s=s-1>>1,u[s]+=d.weight;f+=d.weight*l})),f}function Sa(e){var n={},r=M(e.nodes(),function(u){return!e.children(u).length}),t=O(g(r,function(u){return e.node(u).rank})),a=g(L(t+1),function(){return[]});function o(u){if(!ln(n,u)){n[u]=!0;var f=e.node(u);a[f.rank].push(u),c(e.successors(u),o)}}var i=R(r,function(u){return e.node(u).rank});return c(i,o),a}function $a(e,n){return g(n,function(r){var t=e.inEdges(r);if(t.length){var a=U(t,function(o,i){var u=e.edge(i),f=e.node(i.v);return{sum:o.sum+u.weight*f.order,weight:o.weight+u.weight}},{sum:0,weight:0});return{v:r,barycenter:a.sum/a.weight,weight:a.weight}}else return{v:r}})}function Fa(e,n){var r={};c(e,function(a,o){var i=r[a.v]={indegree:0,in:[],out:[],vs:[a.v],i:o};m(a.barycenter)||(i.barycenter=a.barycenter,i.weight=a.weight)}),c(n.edges(),function(a){var o=r[a.v],i=r[a.w];!m(o)&&!m(i)&&(i.indegree++,o.out.push(r[a.w]))});var t=M(r,function(a){return!a.indegree});return Ba(t)}function Ba(e){var n=[];function r(o){return function(i){i.merged||(m(i.barycenter)||m(o.barycenter)||i.barycenter>=o.barycenter)&&Ga(o,i)}}function t(o){return function(i){i.in.push(o),--i.indegree===0&&e.push(i)}}for(;e.length;){var a=e.pop();n.push(a),c(a.in.reverse(),r(a)),c(a.out,t(a))}return g(M(n,function(o){return!o.merged}),function(o){return D(o,["vs","i","barycenter","weight"])})}function Ga(e,n){var r=0,t=0;e.weight&&(r+=e.barycenter*e.weight,t+=e.weight),n.weight&&(r+=n.barycenter*n.weight,t+=n.weight),e.vs=n.vs.concat(e.vs),e.barycenter=r/t,e.weight=t,e.i=Math.min(n.i,e.i),n.merged=!0}function Da(e,n){var r=ia(e,function(s){return Object.prototype.hasOwnProperty.call(s,"barycenter")}),t=r.lhs,a=R(r.rhs,function(s){return-s.i}),o=[],i=0,u=0,f=0;t.sort(Ya(!!n)),f=Ge(o,a,f),c(t,function(s){f+=s.vs.length,o.push(s.vs),i+=s.barycenter*s.weight,u+=s.weight,f=Ge(o,a,f)});var d={vs:C(o)};return u&&(d.barycenter=i/u,d.weight=u),d}function Ge(e,n,r){for(var t;n.length&&(t=G(n)).i<=r;)n.pop(),e.push(t.vs),r++;return r}function Ya(e){return function(n,r){return n.barycenter<r.barycenter?-1:n.barycenter>r.barycenter?1:e?r.i-n.i:n.i-r.i}}function Ln(e,n,r,t){var a=e.children(n),o=e.node(n),i=o?o.borderLeft:void 0,u=o?o.borderRight:void 0,f={};i&&(a=M(a,function(v){return v!==i&&v!==u}));var d=$a(e,a);c(d,function(v){if(e.children(v.v).length){var w=Ln(e,v.v,r,t);f[v.v]=w,Object.prototype.hasOwnProperty.call(w,"barycenter")&&Ua(v,w)}});var s=Fa(d,r);Va(s,f);var l=Da(s,t);if(i&&(l.vs=C([i,l.vs,u]),e.predecessors(i).length)){var h=e.node(e.predecessors(i)[0]),p=e.node(e.predecessors(u)[0]);Object.prototype.hasOwnProperty.call(l,"barycenter")||(l.barycenter=0,l.weight=0),l.barycenter=(l.barycenter*l.weight+h.order+p.order)/(l.weight+2),l.weight+=2}return l}function Va(e,n){c(e,function(r){r.vs=C(r.vs.map(function(t){return n[t]?n[t].vs:t}))})}function Ua(e,n){m(e.barycenter)?(e.barycenter=n.barycenter,e.weight=n.weight):(e.barycenter=(e.barycenter*e.weight+n.barycenter*n.weight)/(e.weight+n.weight),e.weight+=n.weight)}function Wa(e){var n=pn(e),r=De(e,L(1,n+1),"inEdges"),t=De(e,L(n-1,-1,-1),"outEdges"),a=Sa(e);Ye(e,a);for(var o=Number.POSITIVE_INFINITY,i,u=0,f=0;f<4;++u,++f){qa(u%2?r:t,u%4>=2),a=H(e);var d=Ma(e,a);d<o&&(f=0,i=mt(a),o=d)}Ye(e,i)}function De(e,n,r){return g(n,function(t){return Ia(e,t,r)})}function qa(e,n){var r=new x;c(e,function(t){var a=t.graph().root,o=Ln(t,a,r,n);c(o.vs,function(i,u){t.node(i).order=u}),ja(t,r,o.vs)})}function Ye(e,n){c(n,function(r){c(r,function(t,a){e.node(t).order=a})})}function Xa(e){var n=Ha(e);c(e.graph().dummyChains,function(r){for(var t=e.node(r),a=t.edgeObj,o=Ka(e,n,a.v,a.w),i=o.path,u=o.lca,f=0,d=i[f],s=!0;r!==a.w;){if(t=e.node(r),s){for(;(d=i[f])!==u&&e.node(d).maxRank<t.rank;)f++;d===u&&(s=!1)}if(!s){for(;f<i.length-1&&e.node(d=i[f+1]).minRank<=t.rank;)f++;d=i[f]}e.setParent(r,d),r=e.successors(r)[0]}})}function Ka(e,n,r,t){var a=[],o=[],i=Math.min(n[r].low,n[t].low),u=Math.max(n[r].lim,n[t].lim),f,d;f=r;do f=e.parent(f),a.push(f);while(f&&(n[f].low>i||u>n[f].lim));for(d=f,f=t;(f=e.parent(f))!==d;)o.push(f);return{path:a.concat(o.reverse()),lca:d}}function Ha(e){var n={},r=0;function t(a){var o=r;c(e.children(a),t),n[a]={low:o,lim:r++}}return c(e.children(),t),n}function za(e,n){var r={};function t(a,o){var i=0,u=0,f=a.length,d=G(o);return c(o,function(s,l){var h=Za(e,s),p=h?e.node(h).order:f;(h||s===d)&&(c(o.slice(u,l+1),function(v){c(e.predecessors(v),function(w){var k=e.node(w),me=k.order;(me<i||p<me)&&!(k.dummy&&e.node(v).dummy)&&Nn(r,w,v)})}),u=l+1,i=p)}),o}return U(n,t),r}function Ja(e,n){var r={};function t(o,i,u,f,d){var s;c(L(i,u),function(l){s=o[l],e.node(s).dummy&&c(e.predecessors(s),function(h){var p=e.node(h);p.dummy&&(p.order<f||p.order>d)&&Nn(r,h,s)})})}function a(o,i){var u=-1,f,d=0;return c(i,function(s,l){if(e.node(s).dummy==="border"){var h=e.predecessors(s);h.length&&(f=e.node(h[0]).order,t(i,d,l,u,f),d=l,u=f)}t(i,d,i.length,f,o.length)}),i}return U(n,a),r}function Za(e,n){if(e.node(n).dummy)return le(e.predecessors(n),function(r){return e.node(r).dummy})}function Nn(e,n,r){if(n>r){var t=n;n=r,r=t}Object.prototype.hasOwnProperty.call(e,n)||Object.defineProperty(e,n,{enumerable:!0,configurable:!0,value:{},writable:!0});var a=e[n];Object.defineProperty(a,r,{enumerable:!0,configurable:!0,value:!0,writable:!0})}function Qa(e,n,r){if(n>r){var t=n;n=r,r=t}return!!e[n]&&Object.prototype.hasOwnProperty.call(e[n],r)}function ei(e,n,r,t){var a={},o={},i={};return c(n,function(u){c(u,function(f,d){a[f]=f,o[f]=f,i[f]=d})}),c(n,function(u){var f=-1;c(u,function(d){var s=t(d);if(s.length){s=R(s,function(w){return i[w]});for(var l=(s.length-1)/2,h=Math.floor(l),p=Math.ceil(l);h<=p;++h){var v=s[h];o[d]===d&&f<i[v]&&!Qa(r,d,v)&&(o[v]=d,o[d]=a[d]=a[v],f=i[v])}}})}),{root:a,align:o}}function ni(e,n,r,t,a){var o={},i=ri(e,n,r,a),u=a?"borderLeft":"borderRight";function f(l,h){for(var p=i.nodes(),v=p.pop(),w={};v;)w[v]?l(v):(w[v]=!0,p.push(v),p=p.concat(h(v))),v=p.pop()}function d(l){o[l]=i.inEdges(l).reduce(function(h,p){return Math.max(h,o[p.v]+i.edge(p))},0)}function s(l){var h=i.outEdges(l).reduce(function(v,w){return Math.min(v,o[w.w]-i.edge(w))},Number.POSITIVE_INFINITY),p=e.node(l);h!==Number.POSITIVE_INFINITY&&p.borderType!==u&&(o[l]=Math.max(o[l],h))}return f(d,i.predecessors.bind(i)),f(s,i.successors.bind(i)),c(t,function(l){o[l]=o[r[l]]}),o}function ri(e,n,r,t){var a=new x,o=e.graph(),i=ui(o.nodesep,o.edgesep,t);return c(n,function(u){var f;c(u,function(d){var s=r[d];if(a.setNode(s),f){var l=r[f],h=a.edge(l,s);a.setEdge(l,s,Math.max(i(e,d,f),h||0))}f=d})}),a}function ti(e,n){return ve(P(n),function(r){var t=Number.NEGATIVE_INFINITY,a=Number.POSITIVE_INFINITY;return Nt(r,function(o,i){var u=fi(e,i)/2;t=Math.max(o+u,t),a=Math.min(o-u,a)}),t-a})}function ai(e,n){var r=P(n),t=I(r),a=O(r);c(["u","d"],function(o){c(["l","r"],function(i){var u=o+i,f=e[u],d;if(f!==n){var s=P(f);d=i==="l"?t-I(s):a-O(s),d&&(e[u]=K(f,function(l){return l+d}))}})})}function ii(e,n){return K(e.ul,function(r,t){if(n)return e[n.toLowerCase()][t];var a=R(g(e,t));return(a[1]+a[2])/2})}function oi(e){var n=H(e),r=ae(za(e,n),Ja(e,n)),t={},a;c(["u","d"],function(i){a=i==="u"?n:P(n).reverse(),c(["l","r"],function(u){u==="r"&&(a=g(a,function(l){return P(l).reverse()}));var f=(i==="u"?e.predecessors:e.successors).bind(e),d=ei(e,a,r,f),s=ni(e,a,d.root,d.align,u==="r");u==="r"&&(s=K(s,function(l){return-l})),t[i+u]=s})});var o=ti(e,t);return ai(t,o),ii(t,e.graph().align)}function ui(e,n,r){return function(t,a,o){var i=t.node(a),u=t.node(o),f=0,d;if(f+=i.width/2,Object.prototype.hasOwnProperty.call(i,"labelpos"))switch(i.labelpos.toLowerCase()){case"l":d=-i.width/2;break;case"r":d=i.width/2;break}if(d&&(f+=r?d:-d),d=0,f+=(i.dummy?n:e)/2,f+=(u.dummy?n:e)/2,f+=u.width/2,Object.prototype.hasOwnProperty.call(u,"labelpos"))switch(u.labelpos.toLowerCase()){case"l":d=u.width/2;break;case"r":d=-u.width/2;break}return d&&(f+=r?d:-d),d=0,f}}function fi(e,n){return e.node(n).width}function di(e){e=vn(e),si(e),Ct(oi(e),function(n,r){e.node(r).x=n})}function si(e){var n=H(e),r=e.graph().ranksep,t=0;c(n,function(a){var o=O(g(a,function(i){return e.node(i).height}));c(a,function(i){e.node(i).y=t+o/2}),t+=o+r})}function $i(e,n){var r=oa;r("layout",()=>{var t=r(" buildLayoutGraph",()=>xi(e));r(" runLayout",()=>ci(t,r)),r(" updateInputGraph",()=>li(e,t))})}function ci(e,n){n(" makeSpaceForEdgeLabels",()=>Oi(e)),n(" removeSelfEdges",()=>ji(e)),n(" acyclic",()=>Qt(e)),n(" nestingGraph.run",()=>Na(e)),n(" rank",()=>Ta(vn(e))),n(" injectEdgeLabelProxies",()=>Ei(e)),n(" removeEmptyRanks",()=>aa(e)),n(" nestingGraph.cleanup",()=>ka(e)),n(" normalizeRanks",()=>ta(e)),n(" assignRankMinMax",()=>Ti(e)),n(" removeEdgeLabelProxies",()=>Pi(e)),n(" normalize.run",()=>la(e)),n(" parentDummyChains",()=>Xa(e)),n(" addBorderSegments",()=>ua(e)),n(" order",()=>Wa(e)),n(" insertSelfEdges",()=>Ii(e)),n(" adjustCoordinateSystem",()=>fa(e)),n(" position",()=>di(e)),n(" positionSelfEdges",()=>Ai(e)),n(" removeBorderNodes",()=>ki(e)),n(" normalize.undo",()=>va(e)),n(" fixupEdgeLabelCoords",()=>Ci(e)),n(" undoCoordinateSystem",()=>da(e)),n(" translateGraph",()=>Li(e)),n(" assignNodeIntersects",()=>Ni(e)),n(" reversePoints",()=>_i(e)),n(" acyclic.undo",()=>na(e))}function li(e,n){c(e.nodes(),function(r){var t=e.node(r),a=n.node(r);t&&(t.x=a.x,t.y=a.y,n.children(r).length&&(t.width=a.width,t.height=a.height))}),c(e.edges(),function(r){var t=e.edge(r),a=n.edge(r);t.points=a.points,Object.prototype.hasOwnProperty.call(a,"x")&&(t.x=a.x,t.y=a.y)}),e.graph().width=n.graph().width,e.graph().height=n.graph().height}var hi=["nodesep","edgesep","ranksep","marginx","marginy"],vi={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},pi=["acyclicer","ranker","rankdir","align"],bi=["width","height"],wi={width:0,height:0},gi=["minlen","weight","width","height","labeloffset"],mi={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},yi=["labelpos"];function xi(e){var n=new x({multigraph:!0,compound:!0}),r=ee(e.graph());return n.setGraph(ae({},vi,Q(r,hi),D(r,pi))),c(e.nodes(),function(t){var a=ee(e.node(t));n.setNode(t,xt(Q(a,bi),wi)),n.setParent(t,e.parent(t))}),c(e.edges(),function(t){var a=ee(e.edge(t));n.setEdge(t,ae({},mi,Q(a,gi),D(a,yi)))}),n}function Oi(e){var n=e.graph();n.ranksep/=2,c(e.edges(),function(r){var t=e.edge(r);t.minlen*=2,t.labelpos.toLowerCase()!=="c"&&(n.rankdir==="TB"||n.rankdir==="BT"?t.width+=t.labeloffset:t.height+=t.labeloffset)})}function Ei(e){c(e.edges(),function(n){var r=e.edge(n);if(r.width&&r.height){var t=e.node(n.v),a=e.node(n.w),o={rank:(a.rank-t.rank)/2+t.rank,e:n};_(e,"edge-proxy",o,"_ep")}})}function Ti(e){var n=0;c(e.nodes(),function(r){var t=e.node(r);t.borderTop&&(t.minRank=e.node(t.borderTop).rank,t.maxRank=e.node(t.borderBottom).rank,n=O(n,t.maxRank))}),e.graph().maxRank=n}function Pi(e){c(e.nodes(),function(n){var r=e.node(n);r.dummy==="edge-proxy"&&(e.edge(r.e).labelRank=r.rank,e.removeNode(n))})}function Li(e){var n=Number.POSITIVE_INFINITY,r=0,t=Number.POSITIVE_INFINITY,a=0,o=e.graph(),i=o.marginx||0,u=o.marginy||0;function f(d){var s=d.x,l=d.y,h=d.width,p=d.height;n=Math.min(n,s-h/2),r=Math.max(r,s+h/2),t=Math.min(t,l-p/2),a=Math.max(a,l+p/2)}c(e.nodes(),function(d){f(e.node(d))}),c(e.edges(),function(d){var s=e.edge(d);Object.prototype.hasOwnProperty.call(s,"x")&&f(s)}),n-=i,t-=u,c(e.nodes(),function(d){var s=e.node(d);s.x-=n,s.y-=t}),c(e.edges(),function(d){var s=e.edge(d);c(s.points,function(l){l.x-=n,l.y-=t}),Object.prototype.hasOwnProperty.call(s,"x")&&(s.x-=n),Object.prototype.hasOwnProperty.call(s,"y")&&(s.y-=t)}),o.width=r-n+i,o.height=a-t+u}function Ni(e){c(e.edges(),function(n){var r=e.edge(n),t=e.node(n.v),a=e.node(n.w),o,i;r.points?(o=r.points[0],i=r.points[r.points.length-1]):(r.points=[],o=a,i=t),r.points.unshift(Me(t,o)),r.points.push(Me(a,i))})}function Ci(e){c(e.edges(),function(n){var r=e.edge(n);if(Object.prototype.hasOwnProperty.call(r,"x"))switch((r.labelpos==="l"||r.labelpos==="r")&&(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset;break}})}function _i(e){c(e.edges(),function(n){var r=e.edge(n);r.reversed&&r.points.reverse()})}function ki(e){c(e.nodes(),function(n){if(e.children(n).length){var r=e.node(n),t=e.node(r.borderTop),a=e.node(r.borderBottom),o=e.node(G(r.borderLeft)),i=e.node(G(r.borderRight));r.width=Math.abs(i.x-o.x),r.height=Math.abs(a.y-t.y),r.x=o.x+r.width/2,r.y=t.y+r.height/2}}),c(e.nodes(),function(n){e.node(n).dummy==="border"&&e.removeNode(n)})}function ji(e){c(e.edges(),function(n){if(n.v===n.w){var r=e.node(n.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e:n,label:e.edge(n)}),e.removeEdge(n)}})}function Ii(e){var n=H(e);c(n,function(r){var t=0;c(r,function(a,o){var i=e.node(a);i.order=o+t,c(i.selfEdges,function(u){_(e,"selfedge",{width:u.label.width,height:u.label.height,rank:i.rank,order:o+ ++t,e:u.e,label:u.label},"_se")}),delete i.selfEdges})})}function Ai(e){c(e.nodes(),function(n){var r=e.node(n);if(r.dummy==="selfedge"){var t=e.node(r.e.v),a=t.x+t.width/2,o=t.y,i=r.x-a,u=t.height/2;e.setEdge(r.e,r.label),e.removeNode(n),r.label.points=[{x:a+2*i/3,y:o-u},{x:a+5*i/6,y:o-u},{x:a+i,y:o},{x:a+5*i/6,y:o+u},{x:a+2*i/3,y:o+u}],r.label.x=r.x,r.label.y=r.y}})}function Q(e,n){return K(D(e,n),Number)}function ee(e){var n={};return c(e,function(r,t){n[t.toLowerCase()]=r}),n}export{$i as l};