@galaxy-tool-util/gxwf-web 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. package/dist/generated/api-types.d.ts +10 -0
  2. package/dist/generated/api-types.d.ts.map +1 -1
  3. package/dist/workflows.d.ts.map +1 -1
  4. package/dist/workflows.js +10 -0
  5. package/dist/workflows.js.map +1 -1
  6. package/openapi.json +16 -0
  7. package/package.json +4 -4
  8. package/public/assets/FileView-BjO71gOh.css +1 -0
  9. package/public/assets/FileView-q3_6o2X1.js +1389 -0
  10. package/public/assets/WorkflowView-BcjbhIbS.js +534 -0
  11. package/public/assets/WorkflowView-CBM30n61.css +1 -0
  12. package/public/assets/_baseFor-CPf-8vV8.js +1 -0
  13. package/public/assets/arc-szYnh2gw.js +1 -0
  14. package/public/assets/architecture-YZFGNWBL-CFX_Zs-F.js +1 -0
  15. package/public/assets/architectureDiagram-Q4EWVU46-B26GSi_R.js +36 -0
  16. package/public/assets/array-Bjz-wYpJ.js +1 -0
  17. package/public/assets/blockDiagram-DXYQGD6D-BbiqDg2y.js +132 -0
  18. package/public/assets/c4Diagram-AHTNJAMY-BE-BuO8l.js +10 -0
  19. package/public/assets/channel-Bino8L_m.js +1 -0
  20. package/public/assets/chunk-2KRD3SAO-BPhREtQx.js +1 -0
  21. package/public/assets/chunk-336JU56O-Dee6iP7B.js +2 -0
  22. package/public/assets/chunk-426QAEUC-DXV1gkbm.js +1 -0
  23. package/public/assets/chunk-4BX2VUAB-D6r4iACB.js +1 -0
  24. package/public/assets/chunk-4TB4RGXK-gRibB_sS.js +206 -0
  25. package/public/assets/chunk-55IACEB6-BlStNsts.js +1 -0
  26. package/public/assets/chunk-5FUZZQ4R-DffKfG07.js +62 -0
  27. package/public/assets/chunk-5PVQY5BW-B-OnrP5E.js +2 -0
  28. package/public/assets/chunk-67CJDMHE-DI0Us1nJ.js +1 -0
  29. package/public/assets/chunk-7N4EOEYR-xUvGXupd.js +1 -0
  30. package/public/assets/chunk-AA7GKIK3-DXhdPAXI.js +1 -0
  31. package/public/assets/chunk-BSJP7CBP-D_hVKBlc.js +1 -0
  32. package/public/assets/chunk-CFjPhJqf.js +1 -0
  33. package/public/assets/chunk-CIAEETIT-DwWhajLf.js +1 -0
  34. package/public/assets/chunk-EDXVE4YY-S0w3WkGk.js +1 -0
  35. package/public/assets/chunk-ENJZ2VHE-C7icLdz6.js +10 -0
  36. package/public/assets/chunk-FMBD7UC4-B7ABCafS.js +15 -0
  37. package/public/assets/chunk-FOC6F5B3-_odtGFiS.js +1 -0
  38. package/public/assets/chunk-ICPOFSXX-CfF5UAgG.js +121 -0
  39. package/public/assets/chunk-K5T4RW27-Bl-C9WEM.js +94 -0
  40. package/public/assets/chunk-KGLVRYIC-DrUDDno9.js +1 -0
  41. package/public/assets/chunk-LIHQZDEY-TyC5seKg.js +1 -0
  42. package/public/assets/chunk-ORNJ4GCN-B1abkEdD.js +1 -0
  43. package/public/assets/chunk-OYMX7WX6-BYGN9DWP.js +231 -0
  44. package/public/assets/chunk-QZHKN3VN-mAPJLNAH.js +1 -0
  45. package/public/assets/chunk-U2HBQHQK-d3kA9u1g.js +70 -0
  46. package/public/assets/chunk-X2U36JSP-CO_x9xk_.js +1 -0
  47. package/public/assets/chunk-XPW4576I-ByJQk69S.js +32 -0
  48. package/public/assets/chunk-YZCP3GAM-D2TvAjZo.js +1 -0
  49. package/public/assets/chunk-ZZ45TVLE-DXtWbl8t.js +1 -0
  50. package/public/assets/classDiagram-6PBFFD2Q-CpKC25Y6.js +1 -0
  51. package/public/assets/classDiagram-v2-HSJHXN6E-DBow8wqU.js +1 -0
  52. package/public/assets/clone-CbEs08-f.js +1 -0
  53. package/public/assets/cose-bilkent-S5V4N54A-DjEommDh.js +1 -0
  54. package/public/assets/cytoscape.esm-BIYWHPG0.js +321 -0
  55. package/public/assets/dagre-Ci-lL7Bx.js +1 -0
  56. package/public/assets/dagre-KV5264BT-DSIYjC3z.js +4 -0
  57. package/public/assets/defaultLocale-BwmRmqJp.js +1 -0
  58. package/public/assets/diagram-5BDNPKRD-C9mwnBoW.js +10 -0
  59. package/public/assets/diagram-G4DWMVQ6-D8t323i2.js +24 -0
  60. package/public/assets/diagram-MMDJMWI5-C8l2MdnD.js +43 -0
  61. package/public/assets/diagram-TYMM5635-CNzPAJS6.js +24 -0
  62. package/public/assets/dist-Cvzfgfqr.js +1 -0
  63. package/public/assets/erDiagram-SMLLAGMA-B2C6_Fan.js +85 -0
  64. package/public/assets/flatten-CJeJD637.js +1 -0
  65. package/public/assets/flowDiagram-DWJPFMVM-BkDaHDJe.js +162 -0
  66. package/public/assets/ganttDiagram-T4ZO3ILL-Cu2mYDA9.js +292 -0
  67. package/public/assets/gitGraph-7Q5UKJZL-BQcMJkfN.js +1 -0
  68. package/public/assets/gitGraphDiagram-UUTBAWPF-Npz453U6.js +106 -0
  69. package/public/assets/graphlib-BgXH0qBD.js +1 -0
  70. package/public/assets/{iconv-lite-umd-B_p9IM1r.js → iconv-lite-umd-DcNwySjn.js} +1 -1
  71. package/public/assets/index-BWMJ_RaH.js +1824 -0
  72. package/public/assets/index-DwHu09Uc.css +1 -0
  73. package/public/assets/info-OMHHGYJF-_TL0IXVy.js +1 -0
  74. package/public/assets/infoDiagram-42DDH7IO-BrhdMXp3.js +2 -0
  75. package/public/assets/init-TPm5RB77.js +1 -0
  76. package/public/assets/isEmpty-D5KDGotR.js +1 -0
  77. package/public/assets/ishikawaDiagram-UXIWVN3A-WOlu2yaC.js +70 -0
  78. package/public/assets/journeyDiagram-VCZTEJTY-BBGEYsa6.js +139 -0
  79. package/public/assets/{jschardet-CGqe33Rd.js → jschardet-C2o0QlbC.js} +1 -1
  80. package/public/assets/kanban-definition-6JOO6SKY-DIVZe0z5.js +89 -0
  81. package/public/assets/katex-zjckjCBG.js +257 -0
  82. package/public/assets/line-DP7xV58b.js +1 -0
  83. package/public/assets/linear-CzczDuXP.js +1 -0
  84. package/public/assets/mermaid-parser.core-DK71dbhb.js +4 -0
  85. package/public/assets/mermaid.core-D-5TIxzl.js +11 -0
  86. package/public/assets/mindmap-definition-QFDTVHPH-CP0LxZZD.js +96 -0
  87. package/public/assets/ordinal-D7l-8DAO.js +1 -0
  88. package/public/assets/packet-4T2RLAQJ-BCabUoUB.js +1 -0
  89. package/public/assets/path-BVpCanzE.js +1 -0
  90. package/public/assets/pie-ZZUOXDRM-BjR2a0yV.js +1 -0
  91. package/public/assets/pieDiagram-DEJITSTG-sX4hGTAb.js +30 -0
  92. package/public/assets/purify.es-Dvrq_lOL.js +2 -0
  93. package/public/assets/quadrantDiagram-34T5L4WZ-DDFph1J4.js +7 -0
  94. package/public/assets/radar-PYXPWWZC-Bb7UYpEk.js +1 -0
  95. package/public/assets/reduce-CulceXYF.js +1 -0
  96. package/public/assets/requirementDiagram-MS252O5E-DukoYKG_.js +84 -0
  97. package/public/assets/rough.esm-BQX0AvsS.js +1 -0
  98. package/public/assets/sankeyDiagram-XADWPNL6-uow8FUYR.js +10 -0
  99. package/public/assets/sequenceDiagram-FGHM5R23-TplIPSpM.js +157 -0
  100. package/public/assets/src-D5nutLSt.js +1 -0
  101. package/public/assets/stateDiagram-FHFEXIEX-CSqYcdU8.js +1 -0
  102. package/public/assets/stateDiagram-v2-QKLJ7IA2-JE18b8Ra.js +1 -0
  103. package/public/assets/timeline-definition-GMOUNBTQ-DbBw5m3W.js +120 -0
  104. package/public/assets/treeView-SZITEDCU-Dparc68W.js +1 -0
  105. package/public/assets/treemap-W4RFUUIX-CoZ9aFRF.js +1 -0
  106. package/public/assets/useOperation-DOkaS7aT.js +74 -0
  107. package/public/assets/useWorkflows-CXet8B1S.js +1511 -0
  108. package/public/assets/vennDiagram-DHZGUBPP-CSf2s6zU.js +34 -0
  109. package/public/assets/wardley-RL74JXVD-Dgw-VWeM.js +1 -0
  110. package/public/assets/wardleyDiagram-NUSXRM2D-njtfi8sQ.js +20 -0
  111. package/public/assets/xychartDiagram-5P7HB3ND-DnlHuaer.js +7 -0
  112. package/public/index.html +4 -2
  113. package/public/assets/index-BuA7-9w3.js +0 -4768
  114. package/public/assets/index-CWluWhm0.css +0 -1
@@ -0,0 +1,120 @@
1
+ import{g as e,h as t,m as n,p as r}from"./src-D5nutLSt.js";import{K as i,Q as a,Z as o,a as s,b as c,et as l,o as u,y as d}from"./chunk-ICPOFSXX-CfF5UAgG.js";import{t as f}from"./arc-szYnh2gw.js";import{f as p}from"./chunk-5PVQY5BW-B-OnrP5E.js";import{t as m}from"./chunk-426QAEUC-DXV1gkbm.js";var h=(function(){var e=t(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[6,11,13,14,15,17,19,20,23,24],r=[1,12],i=[1,13],a=[1,14],o=[1,15],s=[1,16],c=[1,19],l=[1,20],u={trace:t(function(){},`trace`),yy:{},symbols_:{error:2,start:3,timeline_header:4,document:5,EOF:6,timeline:7,timeline_lr:8,timeline_td:9,line:10,SPACE:11,statement:12,NEWLINE:13,title:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,period_statement:21,event_statement:22,period:23,event:24,$accept:0,$end:1},terminals_:{2:`error`,6:`EOF`,7:`timeline`,8:`timeline_lr`,9:`timeline_td`,11:`SPACE`,13:`NEWLINE`,14:`title`,15:`acc_title`,16:`acc_title_value`,17:`acc_descr`,18:`acc_descr_value`,19:`acc_descr_multiline_value`,20:`section`,23:`period`,24:`event`},productions_:[0,[3,3],[4,1],[4,1],[4,1],[5,0],[5,2],[10,2],[10,1],[10,1],[10,1],[12,1],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[21,1],[22,1]],performAction:t(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:return a[s-1];case 3:r.setDirection(`LR`);break;case 4:r.setDirection(`TD`);break;case 5:this.$=[];break;case 6:a[s-1].push(a[s]),this.$=a[s-1];break;case 7:case 8:this.$=a[s];break;case 9:case 10:this.$=[];break;case 11:r.getCommonDb().setDiagramTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 12:this.$=a[s].trim(),r.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=a[s].trim(),r.getCommonDb().setAccDescription(this.$);break;case 15:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 18:r.addTask(a[s],0,``),this.$=a[s];break;case 19:r.addEvent(a[s].substr(2)),this.$=a[s];break}},`anonymous`),table:[{3:1,4:2,7:[1,3],8:[1,4],9:[1,5]},{1:[3]},e(n,[2,5],{5:6}),e(n,[2,2]),e(n,[2,3]),e(n,[2,4]),{6:[1,7],10:8,11:[1,9],12:10,13:[1,11],14:r,15:i,17:a,19:o,20:s,21:17,22:18,23:c,24:l},e(n,[2,10],{1:[2,1]}),e(n,[2,6]),{12:21,14:r,15:i,17:a,19:o,20:s,21:17,22:18,23:c,24:l},e(n,[2,8]),e(n,[2,9]),e(n,[2,11]),{16:[1,22]},{18:[1,23]},e(n,[2,14]),e(n,[2,15]),e(n,[2,16]),e(n,[2,17]),e(n,[2,18]),e(n,[2,19]),e(n,[2,7]),e(n,[2,12]),e(n,[2,13])],defaultActions:{},parseError:t(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:t(function(e){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}t(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}t(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
2
+ `+h.showPosition()+`
3
+ Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};u.lexer=(function(){return{EOF:1,parseError:t(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:t(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:t(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:t(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:t(function(){return this._more=!0,this},`more`),reject:t(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
+ `+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:t(function(e){this.unput(this.match.slice(e))},`less`),pastInput:t(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:t(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:t(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
5
+ `+t+`^`},`showPosition`),test_match:t(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:t(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;a<i.length;a++)if(n=this._input.match(this.rules[i[a]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}else return!1}else if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e===!1?!1:e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text.
6
+ `+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:t(function(){return this.next()||this.lex()},`lex`),begin:t(function(e){this.conditionStack.push(e)},`begin`),popState:t(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:t(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:t(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:t(function(e){this.begin(e)},`pushState`),stateStackSize:t(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:t(function(e,t,n,r){switch(n){case 0:break;case 1:break;case 2:return 13;case 3:break;case 4:break;case 5:return 8;case 6:return 9;case 7:return 7;case 8:return 14;case 9:return this.begin(`acc_title`),15;case 10:return this.popState(),`acc_title_value`;case 11:return this.begin(`acc_descr`),17;case 12:return this.popState(),`acc_descr_value`;case 13:this.begin(`acc_descr_multiline`);break;case 14:this.popState();break;case 15:return`acc_descr_multiline_value`;case 16:return 20;case 17:return 24;case 18:return 23;case 19:return 6;case 20:return`INVALID`}},`anonymous`),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline[ \t]+LR\b)/i,/^(?:timeline[ \t]+TD\b)/i,/^(?:timeline\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^:\n]+)/i,/^(?::\s(?:[^:\n]|:(?!\s))+)/i,/^(?:[^#:\n]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[14,15],inclusive:!1},acc_descr:{rules:[12],inclusive:!1},acc_title:{rules:[10],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,11,13,16,17,18,19,20],inclusive:!0}}}})();function d(){this.yy={}}return t(d,`Parser`),d.prototype=u,u.Parser=d,new d})();h.parser=h;var g=h,_={};n(_,{addEvent:()=>M,addSection:()=>O,addTask:()=>j,addTaskOrg:()=>N,clear:()=>T,default:()=>ee,getCommonDb:()=>w,getDirection:()=>D,getSections:()=>k,getTasks:()=>A,setDirection:()=>E});var v=``,y=0,b=`LR`,x=[],S=[],C=[],w=t(()=>u,`getCommonDb`),T=t(function(){x.length=0,S.length=0,v=``,C.length=0,b=`LR`,s()},`clear`),E=t(function(e){b=e},`setDirection`),D=t(function(){return b},`getDirection`),O=t(function(e){v=e,x.push(e)},`addSection`),k=t(function(){return x},`getSections`),A=t(function(){let e=P(),t=0;for(;!e&&t<100;)e=P(),t++;return S.push(...C),S},`getTasks`),j=t(function(e,t,n){let r={id:y++,section:v,type:v,task:e,score:t||0,events:n?[n]:[]};C.push(r)},`addTask`),M=t(function(e){C.find(e=>e.id===y-1).events.push(e)},`addEvent`),N=t(function(e){let t={section:v,type:v,description:e,task:e,classes:[]};S.push(t)},`addTaskOrg`),P=t(function(){let e=t(function(e){return C[e].processed},`compileTask`),n=!0;for(let[t,r]of C.entries())e(t),n&&=r.processed;return n},`compileTasks`),ee={clear:T,getCommonDb:w,getDirection:D,setDirection:E,addSection:O,getSections:k,getTasks:A,addTask:j,addTaskOrg:N,addEvent:M},F=0,I=t(function(e,t){let n=e.append(`rect`);return n.attr(`x`,t.x),n.attr(`y`,t.y),n.attr(`fill`,t.fill),n.attr(`stroke`,t.stroke),n.attr(`width`,t.width),n.attr(`height`,t.height),n.attr(`rx`,t.rx),n.attr(`ry`,t.ry),t.class!==void 0&&n.attr(`class`,t.class),n},`drawRect`),te=t(function(e,n){let r=e.append(`circle`).attr(`cx`,n.cx).attr(`cy`,n.cy).attr(`class`,`face`).attr(`r`,15).attr(`stroke-width`,2).attr(`overflow`,`visible`),i=e.append(`g`);i.append(`circle`).attr(`cx`,n.cx-15/3).attr(`cy`,n.cy-15/3).attr(`r`,1.5).attr(`stroke-width`,2).attr(`fill`,`#666`).attr(`stroke`,`#666`),i.append(`circle`).attr(`cx`,n.cx+15/3).attr(`cy`,n.cy-15/3).attr(`r`,1.5).attr(`stroke-width`,2).attr(`fill`,`#666`).attr(`stroke`,`#666`);function a(e){let t=f().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(15/2).outerRadius(15/2.2);e.append(`path`).attr(`class`,`mouth`).attr(`d`,t).attr(`transform`,`translate(`+n.cx+`,`+(n.cy+2)+`)`)}t(a,`smile`);function o(e){let t=f().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(15/2).outerRadius(15/2.2);e.append(`path`).attr(`class`,`mouth`).attr(`d`,t).attr(`transform`,`translate(`+n.cx+`,`+(n.cy+7)+`)`)}t(o,`sad`);function s(e){e.append(`line`).attr(`class`,`mouth`).attr(`stroke`,2).attr(`x1`,n.cx-5).attr(`y1`,n.cy+7).attr(`x2`,n.cx+5).attr(`y2`,n.cy+7).attr(`class`,`mouth`).attr(`stroke-width`,`1px`).attr(`stroke`,`#666`)}return t(s,`ambivalent`),n.score>3?a(i):n.score<3?o(i):s(i),r},`drawFace`),ne=t(function(e,t){let n=e.append(`circle`);return n.attr(`cx`,t.cx),n.attr(`cy`,t.cy),n.attr(`class`,`actor-`+t.pos),n.attr(`fill`,t.fill),n.attr(`stroke`,t.stroke),n.attr(`r`,t.r),n.class!==void 0&&n.attr(`class`,n.class),t.title!==void 0&&n.append(`title`).text(t.title),n},`drawCircle`),L=t(function(e,t){let n=t.text.replace(/<br\s*\/?>/gi,` `),r=e.append(`text`);r.attr(`x`,t.x),r.attr(`y`,t.y),r.attr(`class`,`legend`),r.style(`text-anchor`,t.anchor),t.class!==void 0&&r.attr(`class`,t.class);let i=r.append(`tspan`);return i.attr(`x`,t.x+t.textMargin*2),i.text(n),r},`drawText`),re=t(function(e,n){function r(e,t,n,r,i){return e+`,`+t+` `+(e+n)+`,`+t+` `+(e+n)+`,`+(t+r-i)+` `+(e+n-i*1.2)+`,`+(t+r)+` `+e+`,`+(t+r)}t(r,`genPoints`);let i=e.append(`polygon`);i.attr(`points`,r(n.x,n.y,50,20,7)),i.attr(`class`,`labelBox`),n.y+=n.labelMargin,n.x+=.5*n.labelMargin,L(e,n)},`drawLabel`),R=t(function(e,t,n){let r=e.append(`g`),i=B();i.x=t.x,i.y=t.y,i.fill=t.fill,i.width=n.width,i.height=n.height,i.class=`journey-section section-type-`+t.num,i.rx=3,i.ry=3,I(r,i),V(n)(t.text,r,i.x,i.y,i.width,i.height,{class:`journey-section section-type-`+t.num},n,t.colour)},`drawSection`),z=-1,ie=t(function(e,t,n,r){let i=t.x+n.width/2,a=e.append(`g`);z++,a.append(`line`).attr(`id`,r+`-task`+z).attr(`x1`,i).attr(`y1`,t.y).attr(`x2`,i).attr(`y2`,450).attr(`class`,`task-line`).attr(`stroke-width`,`1px`).attr(`stroke-dasharray`,`4 2`).attr(`stroke`,`#666`),te(a,{cx:i,cy:300+(5-t.score)*30,score:t.score});let o=B();o.x=t.x,o.y=t.y,o.fill=t.fill,o.width=n.width,o.height=n.height,o.class=`task task-type-`+t.num,o.rx=3,o.ry=3,I(a,o),V(n)(t.task,a,o.x,o.y,o.width,o.height,{class:`task`},n,t.colour)},`drawTask`),ae=t(function(e,t){I(e,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,class:`rect`}).lower()},`drawBackgroundRect`),oe=t(function(){return{x:0,y:0,fill:void 0,"text-anchor":`start`,width:100,height:100,textMargin:0,rx:0,ry:0}},`getTextObj`),B=t(function(){return{x:0,y:0,width:100,anchor:`start`,height:100,rx:0,ry:0}},`getNoteRect`),V=(function(){function e(e,t,n,r,a,o,s,c){i(t.append(`text`).attr(`x`,n+a/2).attr(`y`,r+o/2+5).style(`font-color`,c).style(`text-anchor`,`middle`).text(e),s)}t(e,`byText`);function n(e,t,n,r,a,o,s,c,l){let{taskFontSize:u,taskFontFamily:d}=c,f=e.split(/<br\s*\/?>/gi);for(let e=0;e<f.length;e++){let c=e*u-u*(f.length-1)/2,p=t.append(`text`).attr(`x`,n+a/2).attr(`y`,r).attr(`fill`,l).style(`text-anchor`,`middle`).style(`font-size`,u).style(`font-family`,d);p.append(`tspan`).attr(`x`,n+a/2).attr(`dy`,c).text(f[e]),p.attr(`y`,r+o/2).attr(`dominant-baseline`,`central`).attr(`alignment-baseline`,`central`),i(p,s)}}t(n,`byTspan`);function r(e,t,r,a,o,s,c,l){let u=t.append(`switch`),d=u.append(`foreignObject`).attr(`x`,r).attr(`y`,a).attr(`width`,o).attr(`height`,s).attr(`position`,`fixed`).append(`xhtml:div`).style(`display`,`table`).style(`height`,`100%`).style(`width`,`100%`);d.append(`div`).attr(`class`,`label`).style(`display`,`table-cell`).style(`text-align`,`center`).style(`vertical-align`,`middle`).text(e),n(e,u,r,a,o,s,c,l),i(d,c)}t(r,`byFo`);function i(e,t){for(let n in t)n in t&&e.attr(n,t[n])}return t(i,`_setTextAttrs`),function(t){return t.textPlacement===`fo`?r:t.textPlacement===`old`?e:n}})(),se=t(function(e,t){F=0,z=-1,e.append(`defs`).append(`marker`).attr(`id`,t+`-arrowhead`).attr(`refX`,5).attr(`refY`,2).attr(`markerWidth`,6).attr(`markerHeight`,4).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 0,0 V 4 L6,2 Z`)},`initGraphics`);function H(e,t){e.each(function(){var e=r(this),n=e.text().split(/(\s+|<br>)/).reverse(),i,a=[],o=1.1,s=e.attr(`y`),c=parseFloat(e.attr(`dy`)),l=e.text(null).append(`tspan`).attr(`x`,0).attr(`y`,s).attr(`dy`,c+`em`);for(let r=0;r<n.length;r++)i=n[n.length-1-r],a.push(i),l.text(a.join(` `).trim()),(l.node().getComputedTextLength()>t||i===`<br>`)&&(a.pop(),l.text(a.join(` `).trim()),a=i===`<br>`?[``]:[i],l=e.append(`tspan`).attr(`x`,0).attr(`y`,s).attr(`dy`,o+`em`).text(i))})}t(H,`wrap`);var ce=t(function(e,t,n,i,a,o=!1){let{theme:s,look:c}=i,l=s?.includes(`redux`),u=n%(i?.themeVariables?.THEME_COLOR_LIMIT??12)-1,d=e.append(`g`);t.section=u,d.attr(`class`,(t.class?t.class+` `:``)+`timeline-node `+(`section-`+u));let f=d.append(`g`),p=d.append(`g`),m=p.append(`text`).text(t.descr).attr(`dy`,`1em`).attr(`alignment-baseline`,`middle`).attr(`dominant-baseline`,`middle`).attr(`text-anchor`,`middle`).call(H,t.width).node().getBBox(),h=i.fontSize?.replace?i.fontSize.replace(`px`,``):i.fontSize;if(t.height=m.height+h*1.1*.5+t.padding,t.height=Math.max(t.height,t.maxHeight),t.width+=2*t.padding,p.attr(`transform`,`translate(`+t.width/2+`, `+t.padding/2+`)`),l&&p.attr(`transform`,`translate(${t.width/2}, ${o?t.padding/2+3:t.padding})`),ue(f,t,u,a,i),c===`neo`&&(d.attr(`data-look`,`neo`),l)){let t=s.includes(`dark`),n=r(e.node()?.ownerSVGElement??e.node()),i=n.attr(`id`)??``,a=i?`${i}-drop-shadow`:`drop-shadow`;if(n.select(`#${a}`).empty()){let e=n.select(`defs`);(e.empty()?n.append(`defs`):e).append(`filter`).attr(`id`,a).attr(`height`,`130%`).attr(`width`,`130%`).append(`feDropShadow`).attr(`dx`,`4`).attr(`dy`,`4`).attr(`stdDeviation`,0).attr(`flood-opacity`,t?`0.2`:`0.06`).attr(`flood-color`,t?`#FFFFFF`:`#000000`)}}return t},`drawNode`),le=t(function(e,t,n){let r=e.append(`g`),i=r.append(`text`).text(t.descr).attr(`dy`,`1em`).attr(`alignment-baseline`,`middle`).attr(`dominant-baseline`,`middle`).attr(`text-anchor`,`middle`).call(H,t.width).node().getBBox(),a=n.fontSize?.replace?n.fontSize.replace(`px`,``):n.fontSize;return r.remove(),i.height+a*1.1*.5+t.padding},`getVirtualNodeHeight`),ue=t(function(e,t,n,r,i){let{theme:a}=i,o=a?.includes(`redux`)?0:5,s=o>0?`M0 ${t.height-5} v${-t.height+10} q0,-${o},${o},-${o} h${t.width-10} q${o},0,${o},${o} v${t.height-5} H0 Z`:`M0 ${t.height-5} v${-(t.height-5)} h${t.width} v${t.height} H0 Z`;e.append(`path`).attr(`id`,r+`-node-`+ F++).attr(`class`,`node-bkg node-`+t.type).attr(`d`,s),a?.includes(`redux`)||e.append(`line`).attr(`class`,`node-line-`+n).attr(`x1`,0).attr(`y1`,t.height).attr(`x2`,t.width).attr(`y2`,t.height)},`defaultBkg`),U={drawRect:I,drawCircle:ne,drawSection:R,drawText:L,drawLabel:re,drawTask:ie,drawBackgroundRect:ae,getTextObj:oe,getNoteRect:B,initGraphics:se,drawNode:ce,getVirtualNodeHeight:le},de=t(function(t,n,a,o){let s=c(),{look:l,theme:u,themeVariables:d}=s,{useGradient:f,gradientStart:p,gradientStop:m}=d,h=s.timeline?.leftMargin??50;e.debug(`timeline`,o.db);let g=s.securityLevel,_;g===`sandbox`&&(_=r(`#i`+n));let v=r(g===`sandbox`?_.nodes()[0].contentDocument.body:`body`).select(`#`+n);v.append(`g`);let y=o.db.getTasks(),b=o.db.getCommonDb().getDiagramTitle();e.debug(`task`,y),U.initGraphics(v,n);let x=o.db.getSections();e.debug(`sections`,x);let S=0,C=0,w=0,T=0,E=50+h,D=50;T=50;let O=0,k=!0;x.forEach(function(t){let n={number:O,descr:t,section:O,width:150,padding:20,maxHeight:S},r=U.getVirtualNodeHeight(v,n,s);e.debug(`sectionHeight before draw`,r),S=Math.max(S,r+20)});let A=0,j=0;e.debug(`tasks.length`,y.length);for(let[t,n]of y.entries()){let r={number:t,descr:n,section:n.section,width:150,padding:20,maxHeight:C},i=U.getVirtualNodeHeight(v,r,s);e.debug(`taskHeight before draw`,i),C=Math.max(C,i+20),A=Math.max(A,n.events.length);let a=0;for(let e of n.events){let t={descr:e,section:n.section,number:n.section,width:150,padding:20,maxHeight:50};a+=U.getVirtualNodeHeight(v,t,s)}n.events.length>0&&(a+=(n.events.length-1)*10),j=Math.max(j,a)}e.debug(`maxSectionHeight before draw`,S),e.debug(`maxTaskHeight before draw`,C),x&&x.length>0?x.forEach(t=>{let r=y.filter(e=>e.section===t),i={number:O,descr:t,section:O,width:200*Math.max(r.length,1)-50,padding:20,maxHeight:S};e.debug(`sectionNode`,i);let a=v.append(`g`),o=U.drawNode(a,i,O,s,n);e.debug(`sectionNode output`,o),a.attr(`transform`,`translate(${E}, ${T})`),D+=S+50,r.length>0&&W(v,r,O,E,D,C,s,A,j,S,!1,n),E+=200*Math.max(r.length,1),D=T,O++}):(k=!1,W(v,y,O,E,D,C,s,A,j,S,!0,n));let M=v.node().getBBox();if(e.debug(`bounds`,M),b&&v.append(`text`).text(b).attr(`x`,l===`neo`?M.x*2+h:M.width/2-h).attr(`font-size`,`4ex`).attr(`font-weight`,`bold`).attr(`y`,20),w=k?S+C+150:C+100,v.append(`g`).attr(`class`,`lineWrapper`).append(`line`).attr(`x1`,h).attr(`y1`,w).attr(`x2`,M.width+3*h).attr(`y2`,w).attr(`stroke-width`,4).attr(`stroke`,`black`).attr(`marker-end`,`url(#${n}-arrowhead)`),l===`neo`&&f&&u!==`neutral`){let e=v.select(`defs`),t=(e.empty()?v.append(`defs`):e).append(`linearGradient`).attr(`id`,v.attr(`id`)+`-gradient`).attr(`gradientUnits`,`objectBoundingBox`).attr(`x1`,`0%`).attr(`y1`,`0%`).attr(`x2`,`100%`).attr(`y2`,`0%`);t.append(`stop`).attr(`offset`,`0%`).attr(`stop-color`,p).attr(`stop-opacity`,1),t.append(`stop`).attr(`offset`,`100%`).attr(`stop-color`,m).attr(`stop-opacity`,1)}i(void 0,v,s.timeline?.padding??50,s.timeline?.useMaxWidth??!1)},`draw`),W=t(function(t,n,r,i,a,o,s,c,l,u,d,f){for(let c of n){let n={descr:c.task,section:r,number:r,width:150,padding:20,maxHeight:o};e.debug(`taskNode`,n);let u=t.append(`g`).attr(`class`,`taskWrapper`),p=U.drawNode(u,n,r,s,f).height;if(e.debug(`taskHeight after draw`,p),u.attr(`transform`,`translate(${i}, ${a})`),o=Math.max(o,p),c.events){let e=t.append(`g`).attr(`class`,`lineWrapper`),n=o;a+=100,n+=fe(t,c.events,r,i,a,s,f),a-=100,e.append(`line`).attr(`x1`,i+190/2).attr(`y1`,a+o).attr(`x2`,i+190/2).attr(`y2`,a+o+100+l+100).attr(`stroke-width`,2).attr(`stroke`,`black`).attr(`marker-end`,`url(#${f}-arrowhead)`).attr(`stroke-dasharray`,`5,5`)}i+=200,d&&!s.timeline?.disableMulticolor&&r++}a-=10},`drawTasks`),fe=t(function(t,n,r,i,a,o,s){let c=0,l=a;a+=100;for(let l of n){let n={descr:l,section:r,number:r,width:150,padding:20,maxHeight:50};e.debug(`eventNode`,n);let u=t.append(`g`).attr(`class`,`eventWrapper`),d=U.drawNode(u,n,r,o,s,!0).height;c+=d,u.attr(`transform`,`translate(${i}, ${a})`),a=a+10+d}return a=l,c},`drawEvents`),pe={setConf:t(()=>{},`setConf`),draw:de},G=200,K=5,me=G+K*2,q=G+100,he=q+K*2,J=10,ge=0,Y=20,X=20,Z=30,Q=50,_e=t(function(t,n,r,a){let o=c(),s=o.timeline?.leftMargin??50;e.debug(`timeline`,a.db);let l=m(n);l.append(`g`);let u=a.db.getTasks(),d=a.db.getCommonDb().getDiagramTitle();e.debug(`task`,u),U.initGraphics(l);let f=a.db.getSections();e.debug(`sections`,f);let h=0,g=0,_=50+s,v=50,y=v,b=_,x=me+X,S=he+Q,C=b+x,w=0,T=f&&f.length>0,E=T?C:_+x,D=Math.max(50,x+S-K*2);f.forEach(function(t){let n={number:w,descr:t,section:w,width:D,padding:K,maxHeight:h},r=U.getVirtualNodeHeight(l,n,o);e.debug(`sectionHeight before draw`,r),h=Math.max(h,r)});let O=0;e.debug(`tasks.length`,u.length);for(let[t,n]of u.entries()){let r={number:t,descr:n,section:n.section,width:G,padding:K,maxHeight:g},i=U.getVirtualNodeHeight(l,r,o);e.debug(`taskHeight before draw`,i),g=Math.max(g,i);let a=0;for(let e of n.events){let t={descr:e,section:n.section,number:n.section,width:q,padding:K,maxHeight:50};a+=U.getVirtualNodeHeight(l,t,o)}n.events.length>0&&(a+=(n.events.length-1)*J),O=Math.max(O,a)+ge}e.debug(`maxSectionHeight before draw`,h),e.debug(`maxTaskHeight before draw`,g);let k=Math.max(g,O)+Z;T?f.forEach(t=>{let n=u.filter(e=>e.section===t),r={number:w,descr:t,section:w,width:D,padding:K,maxHeight:h};e.debug(`sectionNode`,r);let i=l.append(`g`),a=U.drawNode(i,r,w,o);e.debug(`sectionNode output`,a);let s=E-x;i.attr(`transform`,`translate(${s}, ${v})`);let c=v+a.height+Y;n.length>0&&$(l,n,w,E,c,g,o,k,!1);let d=n.length,f=a.height+Y+k*Math.max(d,1)-(d>0?Z*2:0);v+=f,w++}):$(l,u,w,E,v,g,o,k,!0);let A=l.node()?.getBBox();if(!A)throw Error(`bbox not found`);if(e.debug(`bounds`,A),d){if(l.append(`text`).text(d).attr(`x`,A.width/2-s).attr(`font-size`,`4ex`).attr(`font-weight`,`bold`).attr(`y`,20),A=l.node()?.getBBox(),!A)throw Error(`bbox not found`);e.debug(`bounds after title`,A)}let[j]=p(o.fontSize),M=(j??16)*2,N=(j??16)*.5+20,P=l.append(`g`).attr(`class`,`lineWrapper`);P.append(`line`).attr(`x1`,E).attr(`y1`,y-M).attr(`x2`,E).attr(`y2`,A.y+A.height+N).attr(`stroke-width`,4).attr(`stroke`,`black`).attr(`marker-end`,`url(#arrowhead)`),P.lower(),i(void 0,l,o.timeline?.padding??50,o.timeline?.useMaxWidth??!1)},`draw`),$=t(function(t,n,r,i,a,o,s,c,l){for(let u of n){let n={descr:u.task,section:r,number:r,width:G,padding:K,maxHeight:o};e.debug(`taskNode`,n);let d=t.append(`g`).attr(`class`,`taskWrapper`),f=U.drawNode(d,n,r,s),p=f.height;e.debug(`taskHeight after draw`,p);let m=i-X-f.width;if(d.attr(`transform`,`translate(${m}, ${a})`),o=Math.max(o,p),u.events&&u.events.length>0){let e=a,n=i+Q;ve(t,u.events,r,i,n,e,s)}a+=c,l&&!s.timeline?.disableMulticolor&&r++}},`drawTasks`),ve=t(function(t,n,r,i,a,o,s){let c=o;for(let o of n){let n={descr:o,section:r,number:r,width:q,padding:K,maxHeight:0};e.debug(`eventNode`,n);let l=t.append(`g`).attr(`class`,`eventWrapper`),u=U.drawNode(l,n,r,s).height;l.attr(`transform`,`translate(${a}, ${c})`);let d=t.append(`g`).attr(`class`,`lineWrapper`),f=c+u/2;d.append(`line`).attr(`x1`,i).attr(`y1`,f).attr(`x2`,a).attr(`y2`,f).attr(`stroke-width`,2).attr(`stroke`,`black`).attr(`marker-end`,`url(#arrowhead)`).attr(`stroke-dasharray`,`5,5`),c=c+u+J}return c-o},`drawEvents`),ye={setConf:t(()=>{},`setConf`),draw:_e},be=t(e=>{let{theme:t}=d(),n=t?.includes(`dark`),r=t?.includes(`color`),i=e.svgId?.replace(/^#/,``)??``,a=i?`url(#${i}-drop-shadow)`:e.dropShadow??`none`,o=``;for(let t=0;t<e.THEME_COLOR_LIMIT;t++){let i=`${17-3*t}`,s=r?e.borderColorArray[t]:e.mainBkg,c=r?e.borderColorArray[t]:e.nodeBorder;o+=`
7
+ .section-${t-1} rect,
8
+ .section-${t-1} path,
9
+ .section-${t-1} circle {
10
+ fill: ${n&&r?e.mainBkg:s};
11
+ stroke: ${c};
12
+ stroke-width: ${e.strokeWidth};
13
+ filter: ${a};
14
+ }
15
+
16
+ .section-${t-1} text {
17
+ fill: ${e.nodeBorder};
18
+ font-weight: ${e.fontWeight}
19
+ }
20
+
21
+ .node-icon-${t-1} {
22
+ font-size: 40px;
23
+ color: ${e[`cScaleLabel`+t]};
24
+ }
25
+
26
+ .section-edge-${t-1} {
27
+ stroke: ${e[`cScale`+t]};
28
+ }
29
+
30
+ .edge-depth-${t-1} {
31
+ stroke-width: ${i};
32
+ }
33
+
34
+ .section-${t-1} line {
35
+ stroke: ${e[`cScaleInv`+t]};
36
+ stroke-width: 3;
37
+ }
38
+
39
+ .lineWrapper line {
40
+ stroke: ${e.nodeBorder};
41
+ stroke-width:${e.strokeWidth}
42
+ }
43
+
44
+ .disabled,
45
+ .disabled circle,
46
+ .disabled text {
47
+ fill: ${e.tertiaryColor??`lightgray`};
48
+ }
49
+
50
+ .disabled text {
51
+ fill: ${e.clusterBorder??`#efefef`};
52
+ }
53
+ `}return o},`genReduxSections`),xe=t(e=>{let t=``;for(let t=0;t<e.THEME_COLOR_LIMIT;t++)e[`lineColor`+t]=e[`lineColor`+t]||e[`cScaleInv`+t],l(e[`lineColor`+t])?e[`lineColor`+t]=a(e[`lineColor`+t],20):e[`lineColor`+t]=o(e[`lineColor`+t],20);for(let n=0;n<e.THEME_COLOR_LIMIT;n++){let r=``+(17-3*n);t+=`
54
+ .section-${n-1} rect, .section-${n-1} path, .section-${n-1} circle, .section-${n-1} path {
55
+ fill: ${e[`cScale`+n]};
56
+ }
57
+ .section-${n-1} text {
58
+ fill: ${e[`cScaleLabel`+n]};
59
+ }
60
+ .node-icon-${n-1} {
61
+ font-size: 40px;
62
+ color: ${e[`cScaleLabel`+n]};
63
+ }
64
+ .section-edge-${n-1}{
65
+ stroke: ${e[`cScale`+n]};
66
+ }
67
+ .edge-depth-${n-1}{
68
+ stroke-width: ${r};
69
+ }
70
+ .section-${n-1} line {
71
+ stroke: ${e[`cScaleInv`+n]} ;
72
+ stroke-width: 3;
73
+ }
74
+
75
+ .lineWrapper line{
76
+ stroke: ${e[`cScaleLabel`+n]} ;
77
+ }
78
+
79
+ .disabled, .disabled circle, .disabled text {
80
+ fill: ${e.tertiaryColor??`lightgray`};
81
+ }
82
+ .disabled text {
83
+ fill: ${e.clusterBorder??`#efefef`};
84
+ }
85
+ `}return t},`genSections`),Se={db:_,renderer:{setConf:t(()=>{},`setConf`),draw:t((e,t,n,r)=>(r?.db?.getDirection?.()??`LR`)===`TD`?ye.draw(e,t,n,r):pe.draw(e,t,n,r),`draw`)},parser:g,styles:t(e=>{let{theme:t}=d(),n=t?.includes(`redux`),r=t===`neutral`,i=e.svgId?.replace(/^#/,``)??``,a=``;if(e.useGradient&&i&&e.THEME_COLOR_LIMIT&&!r)for(let t=0;t<e.THEME_COLOR_LIMIT;t++)a+=`
86
+ .section-${t-1}[data-look="neo"] rect,
87
+ .section-${t-1}[data-look="neo"] path,
88
+ .section-${t-1}[data-look="neo"] circle {
89
+ fill: ${e.mainBkg};
90
+ stroke: url(#${i}-gradient);
91
+ stroke-width: 2;
92
+ }
93
+ .section-${t-1}[data-look="neo"] line {
94
+ stroke: url(#${i}-gradient);
95
+ stroke-width: 2;
96
+ }`;return`
97
+ .edge {
98
+ stroke-width: 3;
99
+ }
100
+ ${n?be(e):xe(e)}
101
+ ${a}
102
+ .section-root rect, .section-root path, .section-root circle {
103
+ fill: ${e.git0};
104
+ }
105
+ .section-root text {
106
+ fill: ${e.gitBranchLabel0};
107
+ }
108
+ .icon-container {
109
+ height:100%;
110
+ display: flex;
111
+ justify-content: center;
112
+ align-items: center;
113
+ }
114
+ .edge {
115
+ fill: none;
116
+ }
117
+ .eventWrapper {
118
+ filter: brightness(120%);
119
+ }
120
+ `},`getStyles`)};export{Se as diagram};
@@ -0,0 +1 @@
1
+ import"./chunk-K5T4RW27-Bl-C9WEM.js";import{n as e}from"./chunk-ORNJ4GCN-B1abkEdD.js";export{e as createTreeViewServices};
@@ -0,0 +1 @@
1
+ import"./chunk-K5T4RW27-Bl-C9WEM.js";import{n as e}from"./chunk-LIHQZDEY-TyC5seKg.js";export{e as createTreemapServices};
@@ -0,0 +1,74 @@
1
+ import{N as e,S as t,Xt as n,Zt as r,_n as i,an as a,en as o,n as s,sn as c,vn as l}from"./useWorkflows-CXet8B1S.js";var u=e.extend({name:`progressspinner`,style:`
2
+ .p-progressspinner {
3
+ position: relative;
4
+ margin: 0 auto;
5
+ width: 100px;
6
+ height: 100px;
7
+ display: inline-block;
8
+ }
9
+
10
+ .p-progressspinner::before {
11
+ content: '';
12
+ display: block;
13
+ padding-top: 100%;
14
+ }
15
+
16
+ .p-progressspinner-spin {
17
+ height: 100%;
18
+ transform-origin: center center;
19
+ width: 100%;
20
+ position: absolute;
21
+ top: 0;
22
+ bottom: 0;
23
+ left: 0;
24
+ right: 0;
25
+ margin: auto;
26
+ animation: p-progressspinner-rotate 2s linear infinite;
27
+ }
28
+
29
+ .p-progressspinner-circle {
30
+ stroke-dasharray: 89, 200;
31
+ stroke-dashoffset: 0;
32
+ stroke: dt('progressspinner.colorOne');
33
+ animation:
34
+ p-progressspinner-dash 1.5s ease-in-out infinite,
35
+ p-progressspinner-color 6s ease-in-out infinite;
36
+ stroke-linecap: round;
37
+ }
38
+
39
+ @keyframes p-progressspinner-rotate {
40
+ 100% {
41
+ transform: rotate(360deg);
42
+ }
43
+ }
44
+ @keyframes p-progressspinner-dash {
45
+ 0% {
46
+ stroke-dasharray: 1, 200;
47
+ stroke-dashoffset: 0;
48
+ }
49
+ 50% {
50
+ stroke-dasharray: 89, 200;
51
+ stroke-dashoffset: -35px;
52
+ }
53
+ 100% {
54
+ stroke-dasharray: 89, 200;
55
+ stroke-dashoffset: -124px;
56
+ }
57
+ }
58
+ @keyframes p-progressspinner-color {
59
+ 100%,
60
+ 0% {
61
+ stroke: dt('progressspinner.color.one');
62
+ }
63
+ 40% {
64
+ stroke: dt('progressspinner.color.two');
65
+ }
66
+ 66% {
67
+ stroke: dt('progressspinner.color.three');
68
+ }
69
+ 80%,
70
+ 90% {
71
+ stroke: dt('progressspinner.color.four');
72
+ }
73
+ }
74
+ `,classes:{root:`p-progressspinner`,spin:`p-progressspinner-spin`,circle:`p-progressspinner-circle`}}),d={name:`ProgressSpinner`,extends:{name:`BaseProgressSpinner`,extends:t,props:{strokeWidth:{type:String,default:`2`},fill:{type:String,default:`none`},animationDuration:{type:String,default:`2s`}},style:u,provide:function(){return{$pcProgressSpinner:this,$parentInstance:this}}},inheritAttrs:!1,computed:{svgStyle:function(){return{"animation-duration":this.animationDuration}}}},f=[`fill`,`stroke-width`];function p(e,t,n,i,s,l){return c(),o(`div`,a({class:e.cx(`root`),role:`progressbar`},e.ptmi(`root`)),[(c(),o(`svg`,a({class:e.cx(`spin`),viewBox:`25 25 50 50`,style:l.svgStyle},e.ptm(`spin`)),[r(`circle`,a({class:e.cx(`circle`),cx:`50`,cy:`50`,r:`20`,fill:e.fill,"stroke-width":e.strokeWidth,strokeMiterlimit:`10`},e.ptm(`circle`)),null,16,f)],16))],16)}d.render=p;var m=l(null),h=l(!1),g=l(null);function _(){let e=s();async function t(){h.value=!0,g.value=null;try{let{data:t,error:n}=await e.GET(`/api/contents`,{});n?g.value=`Failed to load contents`:m.value=t??null}finally{h.value=!1}}async function n(t){let{data:n,error:r}=await e.GET(`/api/contents/{path}`,{params:{path:{path:t}}});if(r)throw Error(`Failed to load path: ${t}`);return n}async function r(t,n,r){let i={name:r.name,path:r.path,type:r.type,writable:r.writable,created:r.created,last_modified:r.last_modified,size:null,mimetype:r.mimetype??null,format:`text`,content:n},{data:a,error:o}=await e.PUT(`/api/contents/{path}`,{params:{path:{path:t}},headers:{"If-Unmodified-Since":r.last_modified},body:i});if(o||!a)throw Error(o?.status===409?`Conflict: file was modified externally. Re-open to get the latest version.`:`Failed to save file`);return a}async function i(t){let{data:n,error:r}=await e.POST(`/api/contents/{path}/checkpoints`,{params:{path:{path:t}}});if(r||!n)throw Error(`Failed to create checkpoint`);return n}async function a(t,n){let{error:r}=await e.POST(`/api/contents/{path}/checkpoints/{checkpoint_id}`,{params:{path:{path:t,checkpoint_id:n}}});if(r)throw Error(`Failed to restore checkpoint`)}return{root:m,loading:h,error:g,fetchRoot:t,fetchPath:n,writeFile:r,createCheckpoint:i,restoreCheckpoint:a}}var v=i({});function y(e){return v[e]||(v[e]={results:{},loading:{},error:{}}),v[e]}function b(e){delete v[e]}function x(e,t){let n=v[e];if(n)for(let e of Object.keys(n.results))e!==t&&delete n.results[e]}function S(e){let t=s(),r=n(()=>y(e).results.validate??null),i=n(()=>y(e).results.lint??null),a=n(()=>y(e).results.clean??null),o=n(()=>y(e).results.roundtrip??null),c=n(()=>y(e).results.export??null),l=n(()=>y(e).results.convert??null),u=n(()=>y(e).loading.validate??!1),d=n(()=>y(e).loading.lint??!1),f=n(()=>y(e).loading.clean??!1),p=n(()=>y(e).loading.roundtrip??!1),m=n(()=>y(e).loading.export??!1),h=n(()=>y(e).loading.convert??!1),g=n(()=>y(e).error.validate??null),_=n(()=>y(e).error.lint??null),v=n(()=>y(e).error.clean??null),b=n(()=>y(e).error.roundtrip??null),x=n(()=>y(e).error.export??null),S=n(()=>y(e).error.convert??null);async function C(n={}){let r=y(e);r.loading.validate=!0,r.error.validate=null;try{let{data:i,error:a}=await t.POST(`/workflows/{workflow_path}/validate`,{params:{path:{workflow_path:e},query:{strict_structure:n.strict_structure??!1,strict_encoding:n.strict_encoding??!1,mode:n.mode??void 0,clean_first:n.clean_first??!1}}});a?r.error.validate=`Failed to validate workflow`:r.results.validate=i??null}finally{r.loading.validate=!1}}async function w(n={}){let r=y(e);r.loading.lint=!0,r.error.lint=null;try{let{data:i,error:a}=await t.POST(`/workflows/{workflow_path}/lint`,{params:{path:{workflow_path:e},query:{strict_structure:n.strict_structure??!1,strict_encoding:n.strict_encoding??!1}}});a?r.error.lint=`Failed to lint workflow`:r.results.lint=i??null}finally{r.loading.lint=!1}}async function T(n={}){let r=y(e);r.loading.clean=!0,r.error.clean=null;try{let{data:i,error:a}=await t.POST(`/workflows/{workflow_path}/clean`,{params:{path:{workflow_path:e},query:{dry_run:n.dry_run??!1}}});a?r.error.clean=`Failed to clean workflow`:r.results.clean=i??null}finally{r.loading.clean=!1}}async function E(n={}){let r=y(e);r.loading.roundtrip=!0,r.error.roundtrip=null;try{let{data:i,error:a}=await t.POST(`/workflows/{workflow_path}/roundtrip`,{params:{path:{workflow_path:e},query:{strict_structure:n.strict_structure??!1,strict_encoding:n.strict_encoding??!1,strict_state:n.strict_state??!1,include_content:!0}}});a?r.error.roundtrip=`Failed to run roundtrip`:r.results.roundtrip=i??null}finally{r.loading.roundtrip=!1}}async function D(n={}){let r=y(e);r.loading.export=!0,r.error.export=null;try{let{data:i,error:a}=await t.POST(`/workflows/{workflow_path}/export`,{params:{path:{workflow_path:e},query:{dry_run:n.dry_run??!1}}});a?r.error.export=`Failed to export workflow`:r.results.export=i??null}finally{r.loading.export=!1}}async function O(n={}){let r=y(e);r.loading.convert=!0,r.error.convert=null;try{let{data:i,error:a}=await t.POST(`/workflows/{workflow_path}/convert`,{params:{path:{workflow_path:e},query:{dry_run:n.dry_run??!1}}});a?r.error.convert=`Failed to convert workflow`:r.results.convert=i??null}finally{r.loading.convert=!1}}return{validateResult:r,lintResult:i,cleanResult:a,roundtripResult:o,exportResult:c,convertResult:l,validateLoading:u,lintLoading:d,cleanLoading:f,roundtripLoading:p,exportLoading:m,convertLoading:h,validateError:g,lintError:_,cleanError:v,roundtripError:b,exportError:x,convertError:S,runValidate:C,runLint:w,runClean:T,runRoundtrip:E,runExport:D,runConvert:O}}export{d as a,_ as i,x as n,S as r,b as t};